plugin.ts.html 65 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <title>Code coverage report for plugin.ts</title>
  5. <meta charset="utf-8" />
  6. <link rel="stylesheet" href="prettify.css" />
  7. <link rel="stylesheet" href="base.css" />
  8. <link rel="shortcut icon" type="image/x-icon" href="favicon.png" />
  9. <meta name="viewport" content="width=device-width, initial-scale=1" />
  10. <style type='text/css'>
  11. .coverage-summary .sorter {
  12. background-image: url(sort-arrow-sprite.png);
  13. }
  14. </style>
  15. </head>
  16. <body>
  17. <div class='wrapper'>
  18. <div class='pad1'>
  19. <h1><a href="index.html">All files</a> plugin.ts</h1>
  20. <div class='clearfix'>
  21. <div class='fl pad1y space-right2'>
  22. <span class="strong">68.97% </span>
  23. <span class="quiet">Statements</span>
  24. <span class='fraction'>80/116</span>
  25. </div>
  26. <div class='fl pad1y space-right2'>
  27. <span class="strong">65.38% </span>
  28. <span class="quiet">Branches</span>
  29. <span class='fraction'>51/78</span>
  30. </div>
  31. <div class='fl pad1y space-right2'>
  32. <span class="strong">77.27% </span>
  33. <span class="quiet">Functions</span>
  34. <span class='fraction'>17/22</span>
  35. </div>
  36. <div class='fl pad1y space-right2'>
  37. <span class="strong">68.42% </span>
  38. <span class="quiet">Lines</span>
  39. <span class='fraction'>78/114</span>
  40. </div>
  41. </div>
  42. <p class="quiet">
  43. Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
  44. </p>
  45. <template id="filterTemplate">
  46. <div class="quiet">
  47. Filter:
  48. <input oninput="onInput()" type="search" id="fileSearch">
  49. </div>
  50. </template>
  51. </div>
  52. <div class='status-line medium'></div>
  53. <pre><table class="coverage">
  54. <tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
  55. <a name='L2'></a><a href='#L2'>2</a>
  56. <a name='L3'></a><a href='#L3'>3</a>
  57. <a name='L4'></a><a href='#L4'>4</a>
  58. <a name='L5'></a><a href='#L5'>5</a>
  59. <a name='L6'></a><a href='#L6'>6</a>
  60. <a name='L7'></a><a href='#L7'>7</a>
  61. <a name='L8'></a><a href='#L8'>8</a>
  62. <a name='L9'></a><a href='#L9'>9</a>
  63. <a name='L10'></a><a href='#L10'>10</a>
  64. <a name='L11'></a><a href='#L11'>11</a>
  65. <a name='L12'></a><a href='#L12'>12</a>
  66. <a name='L13'></a><a href='#L13'>13</a>
  67. <a name='L14'></a><a href='#L14'>14</a>
  68. <a name='L15'></a><a href='#L15'>15</a>
  69. <a name='L16'></a><a href='#L16'>16</a>
  70. <a name='L17'></a><a href='#L17'>17</a>
  71. <a name='L18'></a><a href='#L18'>18</a>
  72. <a name='L19'></a><a href='#L19'>19</a>
  73. <a name='L20'></a><a href='#L20'>20</a>
  74. <a name='L21'></a><a href='#L21'>21</a>
  75. <a name='L22'></a><a href='#L22'>22</a>
  76. <a name='L23'></a><a href='#L23'>23</a>
  77. <a name='L24'></a><a href='#L24'>24</a>
  78. <a name='L25'></a><a href='#L25'>25</a>
  79. <a name='L26'></a><a href='#L26'>26</a>
  80. <a name='L27'></a><a href='#L27'>27</a>
  81. <a name='L28'></a><a href='#L28'>28</a>
  82. <a name='L29'></a><a href='#L29'>29</a>
  83. <a name='L30'></a><a href='#L30'>30</a>
  84. <a name='L31'></a><a href='#L31'>31</a>
  85. <a name='L32'></a><a href='#L32'>32</a>
  86. <a name='L33'></a><a href='#L33'>33</a>
  87. <a name='L34'></a><a href='#L34'>34</a>
  88. <a name='L35'></a><a href='#L35'>35</a>
  89. <a name='L36'></a><a href='#L36'>36</a>
  90. <a name='L37'></a><a href='#L37'>37</a>
  91. <a name='L38'></a><a href='#L38'>38</a>
  92. <a name='L39'></a><a href='#L39'>39</a>
  93. <a name='L40'></a><a href='#L40'>40</a>
  94. <a name='L41'></a><a href='#L41'>41</a>
  95. <a name='L42'></a><a href='#L42'>42</a>
  96. <a name='L43'></a><a href='#L43'>43</a>
  97. <a name='L44'></a><a href='#L44'>44</a>
  98. <a name='L45'></a><a href='#L45'>45</a>
  99. <a name='L46'></a><a href='#L46'>46</a>
  100. <a name='L47'></a><a href='#L47'>47</a>
  101. <a name='L48'></a><a href='#L48'>48</a>
  102. <a name='L49'></a><a href='#L49'>49</a>
  103. <a name='L50'></a><a href='#L50'>50</a>
  104. <a name='L51'></a><a href='#L51'>51</a>
  105. <a name='L52'></a><a href='#L52'>52</a>
  106. <a name='L53'></a><a href='#L53'>53</a>
  107. <a name='L54'></a><a href='#L54'>54</a>
  108. <a name='L55'></a><a href='#L55'>55</a>
  109. <a name='L56'></a><a href='#L56'>56</a>
  110. <a name='L57'></a><a href='#L57'>57</a>
  111. <a name='L58'></a><a href='#L58'>58</a>
  112. <a name='L59'></a><a href='#L59'>59</a>
  113. <a name='L60'></a><a href='#L60'>60</a>
  114. <a name='L61'></a><a href='#L61'>61</a>
  115. <a name='L62'></a><a href='#L62'>62</a>
  116. <a name='L63'></a><a href='#L63'>63</a>
  117. <a name='L64'></a><a href='#L64'>64</a>
  118. <a name='L65'></a><a href='#L65'>65</a>
  119. <a name='L66'></a><a href='#L66'>66</a>
  120. <a name='L67'></a><a href='#L67'>67</a>
  121. <a name='L68'></a><a href='#L68'>68</a>
  122. <a name='L69'></a><a href='#L69'>69</a>
  123. <a name='L70'></a><a href='#L70'>70</a>
  124. <a name='L71'></a><a href='#L71'>71</a>
  125. <a name='L72'></a><a href='#L72'>72</a>
  126. <a name='L73'></a><a href='#L73'>73</a>
  127. <a name='L74'></a><a href='#L74'>74</a>
  128. <a name='L75'></a><a href='#L75'>75</a>
  129. <a name='L76'></a><a href='#L76'>76</a>
  130. <a name='L77'></a><a href='#L77'>77</a>
  131. <a name='L78'></a><a href='#L78'>78</a>
  132. <a name='L79'></a><a href='#L79'>79</a>
  133. <a name='L80'></a><a href='#L80'>80</a>
  134. <a name='L81'></a><a href='#L81'>81</a>
  135. <a name='L82'></a><a href='#L82'>82</a>
  136. <a name='L83'></a><a href='#L83'>83</a>
  137. <a name='L84'></a><a href='#L84'>84</a>
  138. <a name='L85'></a><a href='#L85'>85</a>
  139. <a name='L86'></a><a href='#L86'>86</a>
  140. <a name='L87'></a><a href='#L87'>87</a>
  141. <a name='L88'></a><a href='#L88'>88</a>
  142. <a name='L89'></a><a href='#L89'>89</a>
  143. <a name='L90'></a><a href='#L90'>90</a>
  144. <a name='L91'></a><a href='#L91'>91</a>
  145. <a name='L92'></a><a href='#L92'>92</a>
  146. <a name='L93'></a><a href='#L93'>93</a>
  147. <a name='L94'></a><a href='#L94'>94</a>
  148. <a name='L95'></a><a href='#L95'>95</a>
  149. <a name='L96'></a><a href='#L96'>96</a>
  150. <a name='L97'></a><a href='#L97'>97</a>
  151. <a name='L98'></a><a href='#L98'>98</a>
  152. <a name='L99'></a><a href='#L99'>99</a>
  153. <a name='L100'></a><a href='#L100'>100</a>
  154. <a name='L101'></a><a href='#L101'>101</a>
  155. <a name='L102'></a><a href='#L102'>102</a>
  156. <a name='L103'></a><a href='#L103'>103</a>
  157. <a name='L104'></a><a href='#L104'>104</a>
  158. <a name='L105'></a><a href='#L105'>105</a>
  159. <a name='L106'></a><a href='#L106'>106</a>
  160. <a name='L107'></a><a href='#L107'>107</a>
  161. <a name='L108'></a><a href='#L108'>108</a>
  162. <a name='L109'></a><a href='#L109'>109</a>
  163. <a name='L110'></a><a href='#L110'>110</a>
  164. <a name='L111'></a><a href='#L111'>111</a>
  165. <a name='L112'></a><a href='#L112'>112</a>
  166. <a name='L113'></a><a href='#L113'>113</a>
  167. <a name='L114'></a><a href='#L114'>114</a>
  168. <a name='L115'></a><a href='#L115'>115</a>
  169. <a name='L116'></a><a href='#L116'>116</a>
  170. <a name='L117'></a><a href='#L117'>117</a>
  171. <a name='L118'></a><a href='#L118'>118</a>
  172. <a name='L119'></a><a href='#L119'>119</a>
  173. <a name='L120'></a><a href='#L120'>120</a>
  174. <a name='L121'></a><a href='#L121'>121</a>
  175. <a name='L122'></a><a href='#L122'>122</a>
  176. <a name='L123'></a><a href='#L123'>123</a>
  177. <a name='L124'></a><a href='#L124'>124</a>
  178. <a name='L125'></a><a href='#L125'>125</a>
  179. <a name='L126'></a><a href='#L126'>126</a>
  180. <a name='L127'></a><a href='#L127'>127</a>
  181. <a name='L128'></a><a href='#L128'>128</a>
  182. <a name='L129'></a><a href='#L129'>129</a>
  183. <a name='L130'></a><a href='#L130'>130</a>
  184. <a name='L131'></a><a href='#L131'>131</a>
  185. <a name='L132'></a><a href='#L132'>132</a>
  186. <a name='L133'></a><a href='#L133'>133</a>
  187. <a name='L134'></a><a href='#L134'>134</a>
  188. <a name='L135'></a><a href='#L135'>135</a>
  189. <a name='L136'></a><a href='#L136'>136</a>
  190. <a name='L137'></a><a href='#L137'>137</a>
  191. <a name='L138'></a><a href='#L138'>138</a>
  192. <a name='L139'></a><a href='#L139'>139</a>
  193. <a name='L140'></a><a href='#L140'>140</a>
  194. <a name='L141'></a><a href='#L141'>141</a>
  195. <a name='L142'></a><a href='#L142'>142</a>
  196. <a name='L143'></a><a href='#L143'>143</a>
  197. <a name='L144'></a><a href='#L144'>144</a>
  198. <a name='L145'></a><a href='#L145'>145</a>
  199. <a name='L146'></a><a href='#L146'>146</a>
  200. <a name='L147'></a><a href='#L147'>147</a>
  201. <a name='L148'></a><a href='#L148'>148</a>
  202. <a name='L149'></a><a href='#L149'>149</a>
  203. <a name='L150'></a><a href='#L150'>150</a>
  204. <a name='L151'></a><a href='#L151'>151</a>
  205. <a name='L152'></a><a href='#L152'>152</a>
  206. <a name='L153'></a><a href='#L153'>153</a>
  207. <a name='L154'></a><a href='#L154'>154</a>
  208. <a name='L155'></a><a href='#L155'>155</a>
  209. <a name='L156'></a><a href='#L156'>156</a>
  210. <a name='L157'></a><a href='#L157'>157</a>
  211. <a name='L158'></a><a href='#L158'>158</a>
  212. <a name='L159'></a><a href='#L159'>159</a>
  213. <a name='L160'></a><a href='#L160'>160</a>
  214. <a name='L161'></a><a href='#L161'>161</a>
  215. <a name='L162'></a><a href='#L162'>162</a>
  216. <a name='L163'></a><a href='#L163'>163</a>
  217. <a name='L164'></a><a href='#L164'>164</a>
  218. <a name='L165'></a><a href='#L165'>165</a>
  219. <a name='L166'></a><a href='#L166'>166</a>
  220. <a name='L167'></a><a href='#L167'>167</a>
  221. <a name='L168'></a><a href='#L168'>168</a>
  222. <a name='L169'></a><a href='#L169'>169</a>
  223. <a name='L170'></a><a href='#L170'>170</a>
  224. <a name='L171'></a><a href='#L171'>171</a>
  225. <a name='L172'></a><a href='#L172'>172</a>
  226. <a name='L173'></a><a href='#L173'>173</a>
  227. <a name='L174'></a><a href='#L174'>174</a>
  228. <a name='L175'></a><a href='#L175'>175</a>
  229. <a name='L176'></a><a href='#L176'>176</a>
  230. <a name='L177'></a><a href='#L177'>177</a>
  231. <a name='L178'></a><a href='#L178'>178</a>
  232. <a name='L179'></a><a href='#L179'>179</a>
  233. <a name='L180'></a><a href='#L180'>180</a>
  234. <a name='L181'></a><a href='#L181'>181</a>
  235. <a name='L182'></a><a href='#L182'>182</a>
  236. <a name='L183'></a><a href='#L183'>183</a>
  237. <a name='L184'></a><a href='#L184'>184</a>
  238. <a name='L185'></a><a href='#L185'>185</a>
  239. <a name='L186'></a><a href='#L186'>186</a>
  240. <a name='L187'></a><a href='#L187'>187</a>
  241. <a name='L188'></a><a href='#L188'>188</a>
  242. <a name='L189'></a><a href='#L189'>189</a>
  243. <a name='L190'></a><a href='#L190'>190</a>
  244. <a name='L191'></a><a href='#L191'>191</a>
  245. <a name='L192'></a><a href='#L192'>192</a>
  246. <a name='L193'></a><a href='#L193'>193</a>
  247. <a name='L194'></a><a href='#L194'>194</a>
  248. <a name='L195'></a><a href='#L195'>195</a>
  249. <a name='L196'></a><a href='#L196'>196</a>
  250. <a name='L197'></a><a href='#L197'>197</a>
  251. <a name='L198'></a><a href='#L198'>198</a>
  252. <a name='L199'></a><a href='#L199'>199</a>
  253. <a name='L200'></a><a href='#L200'>200</a>
  254. <a name='L201'></a><a href='#L201'>201</a>
  255. <a name='L202'></a><a href='#L202'>202</a>
  256. <a name='L203'></a><a href='#L203'>203</a>
  257. <a name='L204'></a><a href='#L204'>204</a>
  258. <a name='L205'></a><a href='#L205'>205</a>
  259. <a name='L206'></a><a href='#L206'>206</a>
  260. <a name='L207'></a><a href='#L207'>207</a>
  261. <a name='L208'></a><a href='#L208'>208</a>
  262. <a name='L209'></a><a href='#L209'>209</a>
  263. <a name='L210'></a><a href='#L210'>210</a>
  264. <a name='L211'></a><a href='#L211'>211</a>
  265. <a name='L212'></a><a href='#L212'>212</a>
  266. <a name='L213'></a><a href='#L213'>213</a>
  267. <a name='L214'></a><a href='#L214'>214</a>
  268. <a name='L215'></a><a href='#L215'>215</a>
  269. <a name='L216'></a><a href='#L216'>216</a>
  270. <a name='L217'></a><a href='#L217'>217</a>
  271. <a name='L218'></a><a href='#L218'>218</a>
  272. <a name='L219'></a><a href='#L219'>219</a>
  273. <a name='L220'></a><a href='#L220'>220</a>
  274. <a name='L221'></a><a href='#L221'>221</a>
  275. <a name='L222'></a><a href='#L222'>222</a>
  276. <a name='L223'></a><a href='#L223'>223</a>
  277. <a name='L224'></a><a href='#L224'>224</a>
  278. <a name='L225'></a><a href='#L225'>225</a>
  279. <a name='L226'></a><a href='#L226'>226</a>
  280. <a name='L227'></a><a href='#L227'>227</a>
  281. <a name='L228'></a><a href='#L228'>228</a>
  282. <a name='L229'></a><a href='#L229'>229</a>
  283. <a name='L230'></a><a href='#L230'>230</a>
  284. <a name='L231'></a><a href='#L231'>231</a>
  285. <a name='L232'></a><a href='#L232'>232</a>
  286. <a name='L233'></a><a href='#L233'>233</a>
  287. <a name='L234'></a><a href='#L234'>234</a>
  288. <a name='L235'></a><a href='#L235'>235</a>
  289. <a name='L236'></a><a href='#L236'>236</a>
  290. <a name='L237'></a><a href='#L237'>237</a>
  291. <a name='L238'></a><a href='#L238'>238</a>
  292. <a name='L239'></a><a href='#L239'>239</a>
  293. <a name='L240'></a><a href='#L240'>240</a>
  294. <a name='L241'></a><a href='#L241'>241</a>
  295. <a name='L242'></a><a href='#L242'>242</a>
  296. <a name='L243'></a><a href='#L243'>243</a>
  297. <a name='L244'></a><a href='#L244'>244</a>
  298. <a name='L245'></a><a href='#L245'>245</a>
  299. <a name='L246'></a><a href='#L246'>246</a>
  300. <a name='L247'></a><a href='#L247'>247</a>
  301. <a name='L248'></a><a href='#L248'>248</a>
  302. <a name='L249'></a><a href='#L249'>249</a>
  303. <a name='L250'></a><a href='#L250'>250</a>
  304. <a name='L251'></a><a href='#L251'>251</a>
  305. <a name='L252'></a><a href='#L252'>252</a>
  306. <a name='L253'></a><a href='#L253'>253</a>
  307. <a name='L254'></a><a href='#L254'>254</a>
  308. <a name='L255'></a><a href='#L255'>255</a>
  309. <a name='L256'></a><a href='#L256'>256</a>
  310. <a name='L257'></a><a href='#L257'>257</a>
  311. <a name='L258'></a><a href='#L258'>258</a>
  312. <a name='L259'></a><a href='#L259'>259</a>
  313. <a name='L260'></a><a href='#L260'>260</a>
  314. <a name='L261'></a><a href='#L261'>261</a>
  315. <a name='L262'></a><a href='#L262'>262</a>
  316. <a name='L263'></a><a href='#L263'>263</a>
  317. <a name='L264'></a><a href='#L264'>264</a>
  318. <a name='L265'></a><a href='#L265'>265</a>
  319. <a name='L266'></a><a href='#L266'>266</a>
  320. <a name='L267'></a><a href='#L267'>267</a>
  321. <a name='L268'></a><a href='#L268'>268</a>
  322. <a name='L269'></a><a href='#L269'>269</a>
  323. <a name='L270'></a><a href='#L270'>270</a>
  324. <a name='L271'></a><a href='#L271'>271</a>
  325. <a name='L272'></a><a href='#L272'>272</a>
  326. <a name='L273'></a><a href='#L273'>273</a>
  327. <a name='L274'></a><a href='#L274'>274</a>
  328. <a name='L275'></a><a href='#L275'>275</a>
  329. <a name='L276'></a><a href='#L276'>276</a>
  330. <a name='L277'></a><a href='#L277'>277</a>
  331. <a name='L278'></a><a href='#L278'>278</a>
  332. <a name='L279'></a><a href='#L279'>279</a>
  333. <a name='L280'></a><a href='#L280'>280</a>
  334. <a name='L281'></a><a href='#L281'>281</a>
  335. <a name='L282'></a><a href='#L282'>282</a>
  336. <a name='L283'></a><a href='#L283'>283</a>
  337. <a name='L284'></a><a href='#L284'>284</a>
  338. <a name='L285'></a><a href='#L285'>285</a>
  339. <a name='L286'></a><a href='#L286'>286</a>
  340. <a name='L287'></a><a href='#L287'>287</a>
  341. <a name='L288'></a><a href='#L288'>288</a>
  342. <a name='L289'></a><a href='#L289'>289</a>
  343. <a name='L290'></a><a href='#L290'>290</a>
  344. <a name='L291'></a><a href='#L291'>291</a>
  345. <a name='L292'></a><a href='#L292'>292</a>
  346. <a name='L293'></a><a href='#L293'>293</a>
  347. <a name='L294'></a><a href='#L294'>294</a>
  348. <a name='L295'></a><a href='#L295'>295</a>
  349. <a name='L296'></a><a href='#L296'>296</a>
  350. <a name='L297'></a><a href='#L297'>297</a>
  351. <a name='L298'></a><a href='#L298'>298</a>
  352. <a name='L299'></a><a href='#L299'>299</a>
  353. <a name='L300'></a><a href='#L300'>300</a>
  354. <a name='L301'></a><a href='#L301'>301</a>
  355. <a name='L302'></a><a href='#L302'>302</a>
  356. <a name='L303'></a><a href='#L303'>303</a>
  357. <a name='L304'></a><a href='#L304'>304</a>
  358. <a name='L305'></a><a href='#L305'>305</a>
  359. <a name='L306'></a><a href='#L306'>306</a>
  360. <a name='L307'></a><a href='#L307'>307</a>
  361. <a name='L308'></a><a href='#L308'>308</a>
  362. <a name='L309'></a><a href='#L309'>309</a>
  363. <a name='L310'></a><a href='#L310'>310</a>
  364. <a name='L311'></a><a href='#L311'>311</a>
  365. <a name='L312'></a><a href='#L312'>312</a>
  366. <a name='L313'></a><a href='#L313'>313</a>
  367. <a name='L314'></a><a href='#L314'>314</a>
  368. <a name='L315'></a><a href='#L315'>315</a>
  369. <a name='L316'></a><a href='#L316'>316</a>
  370. <a name='L317'></a><a href='#L317'>317</a>
  371. <a name='L318'></a><a href='#L318'>318</a>
  372. <a name='L319'></a><a href='#L319'>319</a>
  373. <a name='L320'></a><a href='#L320'>320</a>
  374. <a name='L321'></a><a href='#L321'>321</a>
  375. <a name='L322'></a><a href='#L322'>322</a>
  376. <a name='L323'></a><a href='#L323'>323</a>
  377. <a name='L324'></a><a href='#L324'>324</a>
  378. <a name='L325'></a><a href='#L325'>325</a>
  379. <a name='L326'></a><a href='#L326'>326</a>
  380. <a name='L327'></a><a href='#L327'>327</a>
  381. <a name='L328'></a><a href='#L328'>328</a>
  382. <a name='L329'></a><a href='#L329'>329</a>
  383. <a name='L330'></a><a href='#L330'>330</a>
  384. <a name='L331'></a><a href='#L331'>331</a>
  385. <a name='L332'></a><a href='#L332'>332</a>
  386. <a name='L333'></a><a href='#L333'>333</a>
  387. <a name='L334'></a><a href='#L334'>334</a>
  388. <a name='L335'></a><a href='#L335'>335</a>
  389. <a name='L336'></a><a href='#L336'>336</a>
  390. <a name='L337'></a><a href='#L337'>337</a>
  391. <a name='L338'></a><a href='#L338'>338</a>
  392. <a name='L339'></a><a href='#L339'>339</a>
  393. <a name='L340'></a><a href='#L340'>340</a>
  394. <a name='L341'></a><a href='#L341'>341</a>
  395. <a name='L342'></a><a href='#L342'>342</a>
  396. <a name='L343'></a><a href='#L343'>343</a>
  397. <a name='L344'></a><a href='#L344'>344</a>
  398. <a name='L345'></a><a href='#L345'>345</a>
  399. <a name='L346'></a><a href='#L346'>346</a>
  400. <a name='L347'></a><a href='#L347'>347</a>
  401. <a name='L348'></a><a href='#L348'>348</a>
  402. <a name='L349'></a><a href='#L349'>349</a>
  403. <a name='L350'></a><a href='#L350'>350</a>
  404. <a name='L351'></a><a href='#L351'>351</a>
  405. <a name='L352'></a><a href='#L352'>352</a>
  406. <a name='L353'></a><a href='#L353'>353</a>
  407. <a name='L354'></a><a href='#L354'>354</a>
  408. <a name='L355'></a><a href='#L355'>355</a>
  409. <a name='L356'></a><a href='#L356'>356</a>
  410. <a name='L357'></a><a href='#L357'>357</a>
  411. <a name='L358'></a><a href='#L358'>358</a>
  412. <a name='L359'></a><a href='#L359'>359</a>
  413. <a name='L360'></a><a href='#L360'>360</a>
  414. <a name='L361'></a><a href='#L361'>361</a>
  415. <a name='L362'></a><a href='#L362'>362</a>
  416. <a name='L363'></a><a href='#L363'>363</a>
  417. <a name='L364'></a><a href='#L364'>364</a>
  418. <a name='L365'></a><a href='#L365'>365</a>
  419. <a name='L366'></a><a href='#L366'>366</a>
  420. <a name='L367'></a><a href='#L367'>367</a>
  421. <a name='L368'></a><a href='#L368'>368</a>
  422. <a name='L369'></a><a href='#L369'>369</a>
  423. <a name='L370'></a><a href='#L370'>370</a>
  424. <a name='L371'></a><a href='#L371'>371</a>
  425. <a name='L372'></a><a href='#L372'>372</a>
  426. <a name='L373'></a><a href='#L373'>373</a>
  427. <a name='L374'></a><a href='#L374'>374</a>
  428. <a name='L375'></a><a href='#L375'>375</a>
  429. <a name='L376'></a><a href='#L376'>376</a>
  430. <a name='L377'></a><a href='#L377'>377</a>
  431. <a name='L378'></a><a href='#L378'>378</a>
  432. <a name='L379'></a><a href='#L379'>379</a>
  433. <a name='L380'></a><a href='#L380'>380</a>
  434. <a name='L381'></a><a href='#L381'>381</a>
  435. <a name='L382'></a><a href='#L382'>382</a>
  436. <a name='L383'></a><a href='#L383'>383</a>
  437. <a name='L384'></a><a href='#L384'>384</a>
  438. <a name='L385'></a><a href='#L385'>385</a>
  439. <a name='L386'></a><a href='#L386'>386</a>
  440. <a name='L387'></a><a href='#L387'>387</a>
  441. <a name='L388'></a><a href='#L388'>388</a>
  442. <a name='L389'></a><a href='#L389'>389</a>
  443. <a name='L390'></a><a href='#L390'>390</a>
  444. <a name='L391'></a><a href='#L391'>391</a>
  445. <a name='L392'></a><a href='#L392'>392</a>
  446. <a name='L393'></a><a href='#L393'>393</a>
  447. <a name='L394'></a><a href='#L394'>394</a>
  448. <a name='L395'></a><a href='#L395'>395</a>
  449. <a name='L396'></a><a href='#L396'>396</a>
  450. <a name='L397'></a><a href='#L397'>397</a>
  451. <a name='L398'></a><a href='#L398'>398</a>
  452. <a name='L399'></a><a href='#L399'>399</a>
  453. <a name='L400'></a><a href='#L400'>400</a>
  454. <a name='L401'></a><a href='#L401'>401</a>
  455. <a name='L402'></a><a href='#L402'>402</a>
  456. <a name='L403'></a><a href='#L403'>403</a>
  457. <a name='L404'></a><a href='#L404'>404</a>
  458. <a name='L405'></a><a href='#L405'>405</a>
  459. <a name='L406'></a><a href='#L406'>406</a>
  460. <a name='L407'></a><a href='#L407'>407</a>
  461. <a name='L408'></a><a href='#L408'>408</a>
  462. <a name='L409'></a><a href='#L409'>409</a>
  463. <a name='L410'></a><a href='#L410'>410</a>
  464. <a name='L411'></a><a href='#L411'>411</a>
  465. <a name='L412'></a><a href='#L412'>412</a>
  466. <a name='L413'></a><a href='#L413'>413</a>
  467. <a name='L414'></a><a href='#L414'>414</a>
  468. <a name='L415'></a><a href='#L415'>415</a>
  469. <a name='L416'></a><a href='#L416'>416</a>
  470. <a name='L417'></a><a href='#L417'>417</a>
  471. <a name='L418'></a><a href='#L418'>418</a>
  472. <a name='L419'></a><a href='#L419'>419</a>
  473. <a name='L420'></a><a href='#L420'>420</a>
  474. <a name='L421'></a><a href='#L421'>421</a>
  475. <a name='L422'></a><a href='#L422'>422</a>
  476. <a name='L423'></a><a href='#L423'>423</a>
  477. <a name='L424'></a><a href='#L424'>424</a>
  478. <a name='L425'></a><a href='#L425'>425</a>
  479. <a name='L426'></a><a href='#L426'>426</a>
  480. <a name='L427'></a><a href='#L427'>427</a>
  481. <a name='L428'></a><a href='#L428'>428</a>
  482. <a name='L429'></a><a href='#L429'>429</a>
  483. <a name='L430'></a><a href='#L430'>430</a>
  484. <a name='L431'></a><a href='#L431'>431</a>
  485. <a name='L432'></a><a href='#L432'>432</a>
  486. <a name='L433'></a><a href='#L433'>433</a>
  487. <a name='L434'></a><a href='#L434'>434</a>
  488. <a name='L435'></a><a href='#L435'>435</a>
  489. <a name='L436'></a><a href='#L436'>436</a>
  490. <a name='L437'></a><a href='#L437'>437</a>
  491. <a name='L438'></a><a href='#L438'>438</a>
  492. <a name='L439'></a><a href='#L439'>439</a>
  493. <a name='L440'></a><a href='#L440'>440</a>
  494. <a name='L441'></a><a href='#L441'>441</a>
  495. <a name='L442'></a><a href='#L442'>442</a>
  496. <a name='L443'></a><a href='#L443'>443</a>
  497. <a name='L444'></a><a href='#L444'>444</a>
  498. <a name='L445'></a><a href='#L445'>445</a>
  499. <a name='L446'></a><a href='#L446'>446</a>
  500. <a name='L447'></a><a href='#L447'>447</a>
  501. <a name='L448'></a><a href='#L448'>448</a>
  502. <a name='L449'></a><a href='#L449'>449</a>
  503. <a name='L450'></a><a href='#L450'>450</a>
  504. <a name='L451'></a><a href='#L451'>451</a>
  505. <a name='L452'></a><a href='#L452'>452</a>
  506. <a name='L453'></a><a href='#L453'>453</a>
  507. <a name='L454'></a><a href='#L454'>454</a>
  508. <a name='L455'></a><a href='#L455'>455</a>
  509. <a name='L456'></a><a href='#L456'>456</a>
  510. <a name='L457'></a><a href='#L457'>457</a>
  511. <a name='L458'></a><a href='#L458'>458</a>
  512. <a name='L459'></a><a href='#L459'>459</a>
  513. <a name='L460'></a><a href='#L460'>460</a>
  514. <a name='L461'></a><a href='#L461'>461</a>
  515. <a name='L462'></a><a href='#L462'>462</a>
  516. <a name='L463'></a><a href='#L463'>463</a>
  517. <a name='L464'></a><a href='#L464'>464</a>
  518. <a name='L465'></a><a href='#L465'>465</a>
  519. <a name='L466'></a><a href='#L466'>466</a>
  520. <a name='L467'></a><a href='#L467'>467</a>
  521. <a name='L468'></a><a href='#L468'>468</a>
  522. <a name='L469'></a><a href='#L469'>469</a>
  523. <a name='L470'></a><a href='#L470'>470</a>
  524. <a name='L471'></a><a href='#L471'>471</a>
  525. <a name='L472'></a><a href='#L472'>472</a>
  526. <a name='L473'></a><a href='#L473'>473</a>
  527. <a name='L474'></a><a href='#L474'>474</a>
  528. <a name='L475'></a><a href='#L475'>475</a>
  529. <a name='L476'></a><a href='#L476'>476</a>
  530. <a name='L477'></a><a href='#L477'>477</a>
  531. <a name='L478'></a><a href='#L478'>478</a>
  532. <a name='L479'></a><a href='#L479'>479</a>
  533. <a name='L480'></a><a href='#L480'>480</a>
  534. <a name='L481'></a><a href='#L481'>481</a>
  535. <a name='L482'></a><a href='#L482'>482</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
  536. <span class="cline-any cline-yes">1x</span>
  537. <span class="cline-any cline-yes">1x</span>
  538. <span class="cline-any cline-yes">1x</span>
  539. <span class="cline-any cline-yes">1x</span>
  540. <span class="cline-any cline-neutral">&nbsp;</span>
  541. <span class="cline-any cline-neutral">&nbsp;</span>
  542. <span class="cline-any cline-neutral">&nbsp;</span>
  543. <span class="cline-any cline-neutral">&nbsp;</span>
  544. <span class="cline-any cline-neutral">&nbsp;</span>
  545. <span class="cline-any cline-neutral">&nbsp;</span>
  546. <span class="cline-any cline-neutral">&nbsp;</span>
  547. <span class="cline-any cline-neutral">&nbsp;</span>
  548. <span class="cline-any cline-neutral">&nbsp;</span>
  549. <span class="cline-any cline-neutral">&nbsp;</span>
  550. <span class="cline-any cline-neutral">&nbsp;</span>
  551. <span class="cline-any cline-neutral">&nbsp;</span>
  552. <span class="cline-any cline-neutral">&nbsp;</span>
  553. <span class="cline-any cline-neutral">&nbsp;</span>
  554. <span class="cline-any cline-neutral">&nbsp;</span>
  555. <span class="cline-any cline-neutral">&nbsp;</span>
  556. <span class="cline-any cline-neutral">&nbsp;</span>
  557. <span class="cline-any cline-neutral">&nbsp;</span>
  558. <span class="cline-any cline-neutral">&nbsp;</span>
  559. <span class="cline-any cline-neutral">&nbsp;</span>
  560. <span class="cline-any cline-neutral">&nbsp;</span>
  561. <span class="cline-any cline-neutral">&nbsp;</span>
  562. <span class="cline-any cline-neutral">&nbsp;</span>
  563. <span class="cline-any cline-neutral">&nbsp;</span>
  564. <span class="cline-any cline-neutral">&nbsp;</span>
  565. <span class="cline-any cline-neutral">&nbsp;</span>
  566. <span class="cline-any cline-neutral">&nbsp;</span>
  567. <span class="cline-any cline-neutral">&nbsp;</span>
  568. <span class="cline-any cline-neutral">&nbsp;</span>
  569. <span class="cline-any cline-neutral">&nbsp;</span>
  570. <span class="cline-any cline-neutral">&nbsp;</span>
  571. <span class="cline-any cline-neutral">&nbsp;</span>
  572. <span class="cline-any cline-neutral">&nbsp;</span>
  573. <span class="cline-any cline-neutral">&nbsp;</span>
  574. <span class="cline-any cline-neutral">&nbsp;</span>
  575. <span class="cline-any cline-neutral">&nbsp;</span>
  576. <span class="cline-any cline-neutral">&nbsp;</span>
  577. <span class="cline-any cline-neutral">&nbsp;</span>
  578. <span class="cline-any cline-neutral">&nbsp;</span>
  579. <span class="cline-any cline-neutral">&nbsp;</span>
  580. <span class="cline-any cline-neutral">&nbsp;</span>
  581. <span class="cline-any cline-neutral">&nbsp;</span>
  582. <span class="cline-any cline-neutral">&nbsp;</span>
  583. <span class="cline-any cline-neutral">&nbsp;</span>
  584. <span class="cline-any cline-neutral">&nbsp;</span>
  585. <span class="cline-any cline-neutral">&nbsp;</span>
  586. <span class="cline-any cline-neutral">&nbsp;</span>
  587. <span class="cline-any cline-neutral">&nbsp;</span>
  588. <span class="cline-any cline-neutral">&nbsp;</span>
  589. <span class="cline-any cline-neutral">&nbsp;</span>
  590. <span class="cline-any cline-neutral">&nbsp;</span>
  591. <span class="cline-any cline-neutral">&nbsp;</span>
  592. <span class="cline-any cline-neutral">&nbsp;</span>
  593. <span class="cline-any cline-neutral">&nbsp;</span>
  594. <span class="cline-any cline-neutral">&nbsp;</span>
  595. <span class="cline-any cline-neutral">&nbsp;</span>
  596. <span class="cline-any cline-neutral">&nbsp;</span>
  597. <span class="cline-any cline-neutral">&nbsp;</span>
  598. <span class="cline-any cline-neutral">&nbsp;</span>
  599. <span class="cline-any cline-neutral">&nbsp;</span>
  600. <span class="cline-any cline-neutral">&nbsp;</span>
  601. <span class="cline-any cline-neutral">&nbsp;</span>
  602. <span class="cline-any cline-neutral">&nbsp;</span>
  603. <span class="cline-any cline-neutral">&nbsp;</span>
  604. <span class="cline-any cline-neutral">&nbsp;</span>
  605. <span class="cline-any cline-neutral">&nbsp;</span>
  606. <span class="cline-any cline-neutral">&nbsp;</span>
  607. <span class="cline-any cline-neutral">&nbsp;</span>
  608. <span class="cline-any cline-neutral">&nbsp;</span>
  609. <span class="cline-any cline-neutral">&nbsp;</span>
  610. <span class="cline-any cline-neutral">&nbsp;</span>
  611. <span class="cline-any cline-neutral">&nbsp;</span>
  612. <span class="cline-any cline-neutral">&nbsp;</span>
  613. <span class="cline-any cline-neutral">&nbsp;</span>
  614. <span class="cline-any cline-neutral">&nbsp;</span>
  615. <span class="cline-any cline-neutral">&nbsp;</span>
  616. <span class="cline-any cline-neutral">&nbsp;</span>
  617. <span class="cline-any cline-neutral">&nbsp;</span>
  618. <span class="cline-any cline-neutral">&nbsp;</span>
  619. <span class="cline-any cline-neutral">&nbsp;</span>
  620. <span class="cline-any cline-neutral">&nbsp;</span>
  621. <span class="cline-any cline-neutral">&nbsp;</span>
  622. <span class="cline-any cline-neutral">&nbsp;</span>
  623. <span class="cline-any cline-neutral">&nbsp;</span>
  624. <span class="cline-any cline-neutral">&nbsp;</span>
  625. <span class="cline-any cline-neutral">&nbsp;</span>
  626. <span class="cline-any cline-neutral">&nbsp;</span>
  627. <span class="cline-any cline-neutral">&nbsp;</span>
  628. <span class="cline-any cline-neutral">&nbsp;</span>
  629. <span class="cline-any cline-neutral">&nbsp;</span>
  630. <span class="cline-any cline-neutral">&nbsp;</span>
  631. <span class="cline-any cline-neutral">&nbsp;</span>
  632. <span class="cline-any cline-neutral">&nbsp;</span>
  633. <span class="cline-any cline-neutral">&nbsp;</span>
  634. <span class="cline-any cline-neutral">&nbsp;</span>
  635. <span class="cline-any cline-neutral">&nbsp;</span>
  636. <span class="cline-any cline-neutral">&nbsp;</span>
  637. <span class="cline-any cline-neutral">&nbsp;</span>
  638. <span class="cline-any cline-neutral">&nbsp;</span>
  639. <span class="cline-any cline-neutral">&nbsp;</span>
  640. <span class="cline-any cline-neutral">&nbsp;</span>
  641. <span class="cline-any cline-neutral">&nbsp;</span>
  642. <span class="cline-any cline-neutral">&nbsp;</span>
  643. <span class="cline-any cline-neutral">&nbsp;</span>
  644. <span class="cline-any cline-neutral">&nbsp;</span>
  645. <span class="cline-any cline-neutral">&nbsp;</span>
  646. <span class="cline-any cline-neutral">&nbsp;</span>
  647. <span class="cline-any cline-neutral">&nbsp;</span>
  648. <span class="cline-any cline-neutral">&nbsp;</span>
  649. <span class="cline-any cline-neutral">&nbsp;</span>
  650. <span class="cline-any cline-neutral">&nbsp;</span>
  651. <span class="cline-any cline-neutral">&nbsp;</span>
  652. <span class="cline-any cline-neutral">&nbsp;</span>
  653. <span class="cline-any cline-neutral">&nbsp;</span>
  654. <span class="cline-any cline-neutral">&nbsp;</span>
  655. <span class="cline-any cline-yes">1x</span>
  656. <span class="cline-any cline-neutral">&nbsp;</span>
  657. <span class="cline-any cline-yes">1x</span>
  658. <span class="cline-any cline-yes">3x</span>
  659. <span class="cline-any cline-yes">3x</span>
  660. <span class="cline-any cline-neutral">&nbsp;</span>
  661. <span class="cline-any cline-neutral">&nbsp;</span>
  662. <span class="cline-any cline-neutral">&nbsp;</span>
  663. <span class="cline-any cline-neutral">&nbsp;</span>
  664. <span class="cline-any cline-neutral">&nbsp;</span>
  665. <span class="cline-any cline-neutral">&nbsp;</span>
  666. <span class="cline-any cline-neutral">&nbsp;</span>
  667. <span class="cline-any cline-neutral">&nbsp;</span>
  668. <span class="cline-any cline-neutral">&nbsp;</span>
  669. <span class="cline-any cline-yes">3x</span>
  670. <span class="cline-any cline-yes">3x</span>
  671. <span class="cline-any cline-neutral">&nbsp;</span>
  672. <span class="cline-any cline-yes">3x</span>
  673. <span class="cline-any cline-yes">3x</span>
  674. <span class="cline-any cline-neutral">&nbsp;</span>
  675. <span class="cline-any cline-neutral">&nbsp;</span>
  676. <span class="cline-any cline-neutral">&nbsp;</span>
  677. <span class="cline-any cline-yes">3x</span>
  678. <span class="cline-any cline-neutral">&nbsp;</span>
  679. <span class="cline-any cline-neutral">&nbsp;</span>
  680. <span class="cline-any cline-neutral">&nbsp;</span>
  681. <span class="cline-any cline-neutral">&nbsp;</span>
  682. <span class="cline-any cline-yes">3x</span>
  683. <span class="cline-any cline-yes">3x</span>
  684. <span class="cline-any cline-neutral">&nbsp;</span>
  685. <span class="cline-any cline-yes">3x</span>
  686. <span class="cline-any cline-yes">3x</span>
  687. <span class="cline-any cline-yes">3x</span>
  688. <span class="cline-any cline-yes">3x</span>
  689. <span class="cline-any cline-neutral">&nbsp;</span>
  690. <span class="cline-any cline-neutral">&nbsp;</span>
  691. <span class="cline-any cline-yes">3x</span>
  692. <span class="cline-any cline-neutral">&nbsp;</span>
  693. <span class="cline-any cline-neutral">&nbsp;</span>
  694. <span class="cline-any cline-neutral">&nbsp;</span>
  695. <span class="cline-any cline-neutral">&nbsp;</span>
  696. <span class="cline-any cline-neutral">&nbsp;</span>
  697. <span class="cline-any cline-yes">3x</span>
  698. <span class="cline-any cline-yes">1x</span>
  699. <span class="cline-any cline-yes">1x</span>
  700. <span class="cline-any cline-yes">1x</span>
  701. <span class="cline-any cline-yes">1x</span>
  702. <span class="cline-any cline-yes">2x</span>
  703. <span class="cline-any cline-yes">1x</span>
  704. <span class="cline-any cline-neutral">&nbsp;</span>
  705. <span class="cline-any cline-neutral">&nbsp;</span>
  706. <span class="cline-any cline-neutral">&nbsp;</span>
  707. <span class="cline-any cline-neutral">&nbsp;</span>
  708. <span class="cline-any cline-neutral">&nbsp;</span>
  709. <span class="cline-any cline-neutral">&nbsp;</span>
  710. <span class="cline-any cline-yes">1x</span>
  711. <span class="cline-any cline-neutral">&nbsp;</span>
  712. <span class="cline-any cline-neutral">&nbsp;</span>
  713. <span class="cline-any cline-neutral">&nbsp;</span>
  714. <span class="cline-any cline-neutral">&nbsp;</span>
  715. <span class="cline-any cline-neutral">&nbsp;</span>
  716. <span class="cline-any cline-yes">1x</span>
  717. <span class="cline-any cline-yes">6x</span>
  718. <span class="cline-any cline-no">&nbsp;</span>
  719. <span class="cline-any cline-neutral">&nbsp;</span>
  720. <span class="cline-any cline-neutral">&nbsp;</span>
  721. <span class="cline-any cline-no">&nbsp;</span>
  722. <span class="cline-any cline-neutral">&nbsp;</span>
  723. <span class="cline-any cline-neutral">&nbsp;</span>
  724. <span class="cline-any cline-neutral">&nbsp;</span>
  725. <span class="cline-any cline-neutral">&nbsp;</span>
  726. <span class="cline-any cline-neutral">&nbsp;</span>
  727. <span class="cline-any cline-yes">6x</span>
  728. <span class="cline-any cline-no">&nbsp;</span>
  729. <span class="cline-any cline-neutral">&nbsp;</span>
  730. <span class="cline-any cline-neutral">&nbsp;</span>
  731. <span class="cline-any cline-neutral">&nbsp;</span>
  732. <span class="cline-any cline-neutral">&nbsp;</span>
  733. <span class="cline-any cline-no">&nbsp;</span>
  734. <span class="cline-any cline-neutral">&nbsp;</span>
  735. <span class="cline-any cline-neutral">&nbsp;</span>
  736. <span class="cline-any cline-neutral">&nbsp;</span>
  737. <span class="cline-any cline-yes">6x</span>
  738. <span class="cline-any cline-yes">6x</span>
  739. <span class="cline-any cline-neutral">&nbsp;</span>
  740. <span class="cline-any cline-neutral">&nbsp;</span>
  741. <span class="cline-any cline-neutral">&nbsp;</span>
  742. <span class="cline-any cline-neutral">&nbsp;</span>
  743. <span class="cline-any cline-neutral">&nbsp;</span>
  744. <span class="cline-any cline-neutral">&nbsp;</span>
  745. <span class="cline-any cline-neutral">&nbsp;</span>
  746. <span class="cline-any cline-neutral">&nbsp;</span>
  747. <span class="cline-any cline-neutral">&nbsp;</span>
  748. <span class="cline-any cline-neutral">&nbsp;</span>
  749. <span class="cline-any cline-neutral">&nbsp;</span>
  750. <span class="cline-any cline-neutral">&nbsp;</span>
  751. <span class="cline-any cline-no">&nbsp;</span>
  752. <span class="cline-any cline-neutral">&nbsp;</span>
  753. <span class="cline-any cline-no">&nbsp;</span>
  754. <span class="cline-any cline-no">&nbsp;</span>
  755. <span class="cline-any cline-neutral">&nbsp;</span>
  756. <span class="cline-any cline-neutral">&nbsp;</span>
  757. <span class="cline-any cline-neutral">&nbsp;</span>
  758. <span class="cline-any cline-neutral">&nbsp;</span>
  759. <span class="cline-any cline-neutral">&nbsp;</span>
  760. <span class="cline-any cline-neutral">&nbsp;</span>
  761. <span class="cline-any cline-neutral">&nbsp;</span>
  762. <span class="cline-any cline-neutral">&nbsp;</span>
  763. <span class="cline-any cline-neutral">&nbsp;</span>
  764. <span class="cline-any cline-neutral">&nbsp;</span>
  765. <span class="cline-any cline-neutral">&nbsp;</span>
  766. <span class="cline-any cline-yes">1x</span>
  767. <span class="cline-any cline-neutral">&nbsp;</span>
  768. <span class="cline-any cline-neutral">&nbsp;</span>
  769. <span class="cline-any cline-neutral">&nbsp;</span>
  770. <span class="cline-any cline-neutral">&nbsp;</span>
  771. <span class="cline-any cline-neutral">&nbsp;</span>
  772. <span class="cline-any cline-yes">4x</span>
  773. <span class="cline-any cline-yes">4x</span>
  774. <span class="cline-any cline-no">&nbsp;</span>
  775. <span class="cline-any cline-neutral">&nbsp;</span>
  776. <span class="cline-any cline-yes">4x</span>
  777. <span class="cline-any cline-neutral">&nbsp;</span>
  778. <span class="cline-any cline-neutral">&nbsp;</span>
  779. <span class="cline-any cline-neutral">&nbsp;</span>
  780. <span class="cline-any cline-yes">4x</span>
  781. <span class="cline-any cline-neutral">&nbsp;</span>
  782. <span class="cline-any cline-neutral">&nbsp;</span>
  783. <span class="cline-any cline-neutral">&nbsp;</span>
  784. <span class="cline-any cline-neutral">&nbsp;</span>
  785. <span class="cline-any cline-neutral">&nbsp;</span>
  786. <span class="cline-any cline-neutral">&nbsp;</span>
  787. <span class="cline-any cline-neutral">&nbsp;</span>
  788. <span class="cline-any cline-neutral">&nbsp;</span>
  789. <span class="cline-any cline-neutral">&nbsp;</span>
  790. <span class="cline-any cline-neutral">&nbsp;</span>
  791. <span class="cline-any cline-yes">6x</span>
  792. <span class="cline-any cline-yes">6x</span>
  793. <span class="cline-any cline-yes">6x</span>
  794. <span class="cline-any cline-neutral">&nbsp;</span>
  795. <span class="cline-any cline-neutral">&nbsp;</span>
  796. <span class="cline-any cline-neutral">&nbsp;</span>
  797. <span class="cline-any cline-neutral">&nbsp;</span>
  798. <span class="cline-any cline-yes">39x</span>
  799. <span class="cline-any cline-neutral">&nbsp;</span>
  800. <span class="cline-any cline-yes">39x</span>
  801. <span class="cline-any cline-neutral">&nbsp;</span>
  802. <span class="cline-any cline-neutral">&nbsp;</span>
  803. <span class="cline-any cline-neutral">&nbsp;</span>
  804. <span class="cline-any cline-neutral">&nbsp;</span>
  805. <span class="cline-any cline-no">&nbsp;</span>
  806. <span class="cline-any cline-neutral">&nbsp;</span>
  807. <span class="cline-any cline-neutral">&nbsp;</span>
  808. <span class="cline-any cline-neutral">&nbsp;</span>
  809. <span class="cline-any cline-neutral">&nbsp;</span>
  810. <span class="cline-any cline-neutral">&nbsp;</span>
  811. <span class="cline-any cline-yes">39x</span>
  812. <span class="cline-any cline-yes">39x</span>
  813. <span class="cline-any cline-neutral">&nbsp;</span>
  814. <span class="cline-any cline-neutral">&nbsp;</span>
  815. <span class="cline-any cline-neutral">&nbsp;</span>
  816. <span class="cline-any cline-yes">27x</span>
  817. <span class="cline-any cline-yes">6x</span>
  818. <span class="cline-any cline-neutral">&nbsp;</span>
  819. <span class="cline-any cline-yes">21x</span>
  820. <span class="cline-any cline-neutral">&nbsp;</span>
  821. <span class="cline-any cline-yes">7x</span>
  822. <span class="cline-any cline-yes">7x</span>
  823. <span class="cline-any cline-neutral">&nbsp;</span>
  824. <span class="cline-any cline-neutral">&nbsp;</span>
  825. <span class="cline-any cline-neutral">&nbsp;</span>
  826. <span class="cline-any cline-neutral">&nbsp;</span>
  827. <span class="cline-any cline-neutral">&nbsp;</span>
  828. <span class="cline-any cline-neutral">&nbsp;</span>
  829. <span class="cline-any cline-yes">21x</span>
  830. <span class="cline-any cline-yes">6x</span>
  831. <span class="cline-any cline-neutral">&nbsp;</span>
  832. <span class="cline-any cline-neutral">&nbsp;</span>
  833. <span class="cline-any cline-neutral">&nbsp;</span>
  834. <span class="cline-any cline-neutral">&nbsp;</span>
  835. <span class="cline-any cline-yes">39x</span>
  836. <span class="cline-any cline-neutral">&nbsp;</span>
  837. <span class="cline-any cline-yes">39x</span>
  838. <span class="cline-any cline-neutral">&nbsp;</span>
  839. <span class="cline-any cline-neutral">&nbsp;</span>
  840. <span class="cline-any cline-neutral">&nbsp;</span>
  841. <span class="cline-any cline-neutral">&nbsp;</span>
  842. <span class="cline-any cline-neutral">&nbsp;</span>
  843. <span class="cline-any cline-yes">39x</span>
  844. <span class="cline-any cline-no">&nbsp;</span>
  845. <span class="cline-any cline-neutral">&nbsp;</span>
  846. <span class="cline-any cline-neutral">&nbsp;</span>
  847. <span class="cline-any cline-yes">39x</span>
  848. <span class="cline-any cline-yes">21x</span>
  849. <span class="cline-any cline-neutral">&nbsp;</span>
  850. <span class="cline-any cline-neutral">&nbsp;</span>
  851. <span class="cline-any cline-yes">18x</span>
  852. <span class="cline-any cline-neutral">&nbsp;</span>
  853. <span class="cline-any cline-neutral">&nbsp;</span>
  854. <span class="cline-any cline-neutral">&nbsp;</span>
  855. <span class="cline-any cline-neutral">&nbsp;</span>
  856. <span class="cline-any cline-neutral">&nbsp;</span>
  857. <span class="cline-any cline-neutral">&nbsp;</span>
  858. <span class="cline-any cline-neutral">&nbsp;</span>
  859. <span class="cline-any cline-neutral">&nbsp;</span>
  860. <span class="cline-any cline-yes">18x</span>
  861. <span class="cline-any cline-neutral">&nbsp;</span>
  862. <span class="cline-any cline-yes">18x</span>
  863. <span class="cline-any cline-neutral">&nbsp;</span>
  864. <span class="cline-any cline-neutral">&nbsp;</span>
  865. <span class="cline-any cline-neutral">&nbsp;</span>
  866. <span class="cline-any cline-neutral">&nbsp;</span>
  867. <span class="cline-any cline-neutral">&nbsp;</span>
  868. <span class="cline-any cline-neutral">&nbsp;</span>
  869. <span class="cline-any cline-neutral">&nbsp;</span>
  870. <span class="cline-any cline-neutral">&nbsp;</span>
  871. <span class="cline-any cline-yes">18x</span>
  872. <span class="cline-any cline-no">&nbsp;</span>
  873. <span class="cline-any cline-neutral">&nbsp;</span>
  874. <span class="cline-any cline-neutral">&nbsp;</span>
  875. <span class="cline-any cline-neutral">&nbsp;</span>
  876. <span class="cline-any cline-yes">18x</span>
  877. <span class="cline-any cline-no">&nbsp;</span>
  878. <span class="cline-any cline-neutral">&nbsp;</span>
  879. <span class="cline-any cline-neutral">&nbsp;</span>
  880. <span class="cline-any cline-yes">18x</span>
  881. <span class="cline-any cline-neutral">&nbsp;</span>
  882. <span class="cline-any cline-neutral">&nbsp;</span>
  883. <span class="cline-any cline-neutral">&nbsp;</span>
  884. <span class="cline-any cline-neutral">&nbsp;</span>
  885. <span class="cline-any cline-neutral">&nbsp;</span>
  886. <span class="cline-any cline-neutral">&nbsp;</span>
  887. <span class="cline-any cline-neutral">&nbsp;</span>
  888. <span class="cline-any cline-neutral">&nbsp;</span>
  889. <span class="cline-any cline-neutral">&nbsp;</span>
  890. <span class="cline-any cline-neutral">&nbsp;</span>
  891. <span class="cline-any cline-neutral">&nbsp;</span>
  892. <span class="cline-any cline-neutral">&nbsp;</span>
  893. <span class="cline-any cline-neutral">&nbsp;</span>
  894. <span class="cline-any cline-neutral">&nbsp;</span>
  895. <span class="cline-any cline-no">&nbsp;</span>
  896. <span class="cline-any cline-no">&nbsp;</span>
  897. <span class="cline-any cline-no">&nbsp;</span>
  898. <span class="cline-any cline-no">&nbsp;</span>
  899. <span class="cline-any cline-neutral">&nbsp;</span>
  900. <span class="cline-any cline-no">&nbsp;</span>
  901. <span class="cline-any cline-neutral">&nbsp;</span>
  902. <span class="cline-any cline-neutral">&nbsp;</span>
  903. <span class="cline-any cline-neutral">&nbsp;</span>
  904. <span class="cline-any cline-neutral">&nbsp;</span>
  905. <span class="cline-any cline-no">&nbsp;</span>
  906. <span class="cline-any cline-neutral">&nbsp;</span>
  907. <span class="cline-any cline-neutral">&nbsp;</span>
  908. <span class="cline-any cline-no">&nbsp;</span>
  909. <span class="cline-any cline-neutral">&nbsp;</span>
  910. <span class="cline-any cline-neutral">&nbsp;</span>
  911. <span class="cline-any cline-neutral">&nbsp;</span>
  912. <span class="cline-any cline-neutral">&nbsp;</span>
  913. <span class="cline-any cline-neutral">&nbsp;</span>
  914. <span class="cline-any cline-no">&nbsp;</span>
  915. <span class="cline-any cline-no">&nbsp;</span>
  916. <span class="cline-any cline-neutral">&nbsp;</span>
  917. <span class="cline-any cline-neutral">&nbsp;</span>
  918. <span class="cline-any cline-no">&nbsp;</span>
  919. <span class="cline-any cline-no">&nbsp;</span>
  920. <span class="cline-any cline-neutral">&nbsp;</span>
  921. <span class="cline-any cline-neutral">&nbsp;</span>
  922. <span class="cline-any cline-no">&nbsp;</span>
  923. <span class="cline-any cline-neutral">&nbsp;</span>
  924. <span class="cline-any cline-neutral">&nbsp;</span>
  925. <span class="cline-any cline-neutral">&nbsp;</span>
  926. <span class="cline-any cline-neutral">&nbsp;</span>
  927. <span class="cline-any cline-neutral">&nbsp;</span>
  928. <span class="cline-any cline-neutral">&nbsp;</span>
  929. <span class="cline-any cline-neutral">&nbsp;</span>
  930. <span class="cline-any cline-neutral">&nbsp;</span>
  931. <span class="cline-any cline-no">&nbsp;</span>
  932. <span class="cline-any cline-neutral">&nbsp;</span>
  933. <span class="cline-any cline-no">&nbsp;</span>
  934. <span class="cline-any cline-neutral">&nbsp;</span>
  935. <span class="cline-any cline-neutral">&nbsp;</span>
  936. <span class="cline-any cline-neutral">&nbsp;</span>
  937. <span class="cline-any cline-neutral">&nbsp;</span>
  938. <span class="cline-any cline-neutral">&nbsp;</span>
  939. <span class="cline-any cline-neutral">&nbsp;</span>
  940. <span class="cline-any cline-neutral">&nbsp;</span>
  941. <span class="cline-any cline-neutral">&nbsp;</span>
  942. <span class="cline-any cline-neutral">&nbsp;</span>
  943. <span class="cline-any cline-no">&nbsp;</span>
  944. <span class="cline-any cline-no">&nbsp;</span>
  945. <span class="cline-any cline-neutral">&nbsp;</span>
  946. <span class="cline-any cline-neutral">&nbsp;</span>
  947. <span class="cline-any cline-neutral">&nbsp;</span>
  948. <span class="cline-any cline-no">&nbsp;</span>
  949. <span class="cline-any cline-neutral">&nbsp;</span>
  950. <span class="cline-any cline-neutral">&nbsp;</span>
  951. <span class="cline-any cline-neutral">&nbsp;</span>
  952. <span class="cline-any cline-neutral">&nbsp;</span>
  953. <span class="cline-any cline-neutral">&nbsp;</span>
  954. <span class="cline-any cline-neutral">&nbsp;</span>
  955. <span class="cline-any cline-neutral">&nbsp;</span>
  956. <span class="cline-any cline-neutral">&nbsp;</span>
  957. <span class="cline-any cline-neutral">&nbsp;</span>
  958. <span class="cline-any cline-neutral">&nbsp;</span>
  959. <span class="cline-any cline-neutral">&nbsp;</span>
  960. <span class="cline-any cline-neutral">&nbsp;</span>
  961. <span class="cline-any cline-yes">36x</span>
  962. <span class="cline-any cline-yes">36x</span>
  963. <span class="cline-any cline-neutral">&nbsp;</span>
  964. <span class="cline-any cline-neutral">&nbsp;</span>
  965. <span class="cline-any cline-no">&nbsp;</span>
  966. <span class="cline-any cline-no">&nbsp;</span>
  967. <span class="cline-any cline-no">&nbsp;</span>
  968. <span class="cline-any cline-neutral">&nbsp;</span>
  969. <span class="cline-any cline-neutral">&nbsp;</span>
  970. <span class="cline-any cline-neutral">&nbsp;</span>
  971. <span class="cline-any cline-neutral">&nbsp;</span>
  972. <span class="cline-any cline-no">&nbsp;</span>
  973. <span class="cline-any cline-neutral">&nbsp;</span>
  974. <span class="cline-any cline-no">&nbsp;</span>
  975. <span class="cline-any cline-neutral">&nbsp;</span>
  976. <span class="cline-any cline-no">&nbsp;</span>
  977. <span class="cline-any cline-neutral">&nbsp;</span>
  978. <span class="cline-any cline-neutral">&nbsp;</span>
  979. <span class="cline-any cline-no">&nbsp;</span>
  980. <span class="cline-any cline-neutral">&nbsp;</span>
  981. <span class="cline-any cline-neutral">&nbsp;</span>
  982. <span class="cline-any cline-neutral">&nbsp;</span>
  983. <span class="cline-any cline-neutral">&nbsp;</span>
  984. <span class="cline-any cline-neutral">&nbsp;</span>
  985. <span class="cline-any cline-neutral">&nbsp;</span>
  986. <span class="cline-any cline-neutral">&nbsp;</span>
  987. <span class="cline-any cline-yes">6x</span>
  988. <span class="cline-any cline-yes">36x</span>
  989. <span class="cline-any cline-neutral">&nbsp;</span>
  990. <span class="cline-any cline-yes">36x</span>
  991. <span class="cline-any cline-yes">27x</span>
  992. <span class="cline-any cline-yes">27x</span>
  993. <span class="cline-any cline-neutral">&nbsp;</span>
  994. <span class="cline-any cline-yes">9x</span>
  995. <span class="cline-any cline-neutral">&nbsp;</span>
  996. <span class="cline-any cline-neutral">&nbsp;</span>
  997. <span class="cline-any cline-neutral">&nbsp;</span>
  998. <span class="cline-any cline-neutral">&nbsp;</span>
  999. <span class="cline-any cline-neutral">&nbsp;</span>
  1000. <span class="cline-any cline-neutral">&nbsp;</span>
  1001. <span class="cline-any cline-neutral">&nbsp;</span>
  1002. <span class="cline-any cline-yes">6x</span>
  1003. <span class="cline-any cline-neutral">&nbsp;</span>
  1004. <span class="cline-any cline-neutral">&nbsp;</span>
  1005. <span class="cline-any cline-neutral">&nbsp;</span>
  1006. <span class="cline-any cline-yes">171x</span>
  1007. <span class="cline-any cline-neutral">&nbsp;</span>
  1008. <span class="cline-any cline-yes">171x</span>
  1009. <span class="cline-any cline-yes">138x</span>
  1010. <span class="cline-any cline-yes">138x</span>
  1011. <span class="cline-any cline-neutral">&nbsp;</span>
  1012. <span class="cline-any cline-yes">33x</span>
  1013. <span class="cline-any cline-neutral">&nbsp;</span>
  1014. <span class="cline-any cline-neutral">&nbsp;</span>
  1015. <span class="cline-any cline-neutral">&nbsp;</span>
  1016. <span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">import * as chalk from "chalk";
  1017. import * as TsconfigPaths from "tsconfig-paths";
  1018. import * as path from "path";
  1019. import * as Options from "./options";
  1020. import * as Logger from "./logger";
  1021. import * as fs from "fs";
  1022. import { ResolvePluginInstance, Resolver } from "webpack";
  1023. import { ResolveRequest, ResolveContext } from "enhanced-resolve";
  1024. &nbsp;
  1025. type FileSystem = Resolver["fileSystem"];
  1026. type TapAsyncCallback = (
  1027. request: ResolveRequest,
  1028. context: ResolveContext,
  1029. callback: TapAsyncInnerCallback
  1030. ) =&gt; void;
  1031. type TapAsyncInnerCallback = (
  1032. error?: Error | null | false,
  1033. result?: null | ResolveRequest
  1034. ) =&gt; void;
  1035. &nbsp;
  1036. export interface LegacyResolverPlugin {
  1037. readonly apply: (resolver: LegacyResolver) =&gt; void;
  1038. }
  1039. &nbsp;
  1040. export interface LegacyResolver {
  1041. readonly apply: (plugin: LegacyResolverPlugin) =&gt; void;
  1042. readonly plugin: (source: string, cb: ResolverCallbackLegacy) =&gt; void;
  1043. readonly doResolve: doResolveLegacy | doResolve;
  1044. readonly join: (relativePath: string, innerRequest: Request) =&gt; Request;
  1045. readonly fileSystem: LegacyResolverFileSystem;
  1046. readonly getHook: (hook: string) =&gt; Tapable;
  1047. }
  1048. &nbsp;
  1049. export type doResolveLegacy = (
  1050. target: string,
  1051. req: Request,
  1052. desc: string,
  1053. callback: Callback
  1054. ) =&gt; void;
  1055. &nbsp;
  1056. export type doResolve = (
  1057. hook: Tapable,
  1058. req: Request,
  1059. message: string,
  1060. resolveContext: LegacyResolveContext,
  1061. callback: Callback
  1062. ) =&gt; void;
  1063. &nbsp;
  1064. export type ReadJsonCallback = (error: Error | undefined, result?: {}) =&gt; void;
  1065. &nbsp;
  1066. export type ReadJson = (path2: string, callback: ReadJsonCallback) =&gt; void;
  1067. &nbsp;
  1068. export type LegacyResolverFileSystem = typeof fs &amp; { readJson?: ReadJson };
  1069. &nbsp;
  1070. export interface LegacyResolveContext {
  1071. log?: string;
  1072. stack?: string;
  1073. missing?: string;
  1074. }
  1075. &nbsp;
  1076. export interface Tapable {
  1077. readonly tapAsync: (
  1078. options: TapableOptions,
  1079. callback: TapAsyncCallback
  1080. ) =&gt; void;
  1081. }
  1082. &nbsp;
  1083. export interface TapableOptions {
  1084. readonly name: string;
  1085. }
  1086. &nbsp;
  1087. export type ResolverCallbackLegacy = (
  1088. request: Request,
  1089. callback: Callback
  1090. ) =&gt; void;
  1091. export type ResolverCallback = (
  1092. request: Request,
  1093. resolveContext: LegacyResolveContext,
  1094. callback: Callback
  1095. ) =&gt; void;
  1096. &nbsp;
  1097. type CreateInnerCallback = (
  1098. callback: Callback,
  1099. options: Callback,
  1100. message?: string,
  1101. messageOptional?: string
  1102. ) =&gt; Callback;
  1103. &nbsp;
  1104. type CreateInnerContext = (
  1105. options: {
  1106. log?: string;
  1107. stack?: string;
  1108. missing?: string;
  1109. },
  1110. message?: string,
  1111. messageOptional?: string
  1112. ) =&gt; ResolveContext;
  1113. &nbsp;
  1114. type getInnerRequest = (
  1115. resolver: Resolver | LegacyResolver,
  1116. request: ResolveRequest | Request
  1117. ) =&gt; string;
  1118. &nbsp;
  1119. export interface Request {
  1120. readonly request?: Request | string;
  1121. readonly relativePath: string;
  1122. readonly path: string;
  1123. readonly context: {
  1124. readonly issuer: string;
  1125. };
  1126. }
  1127. &nbsp;
  1128. export interface Callback {
  1129. (err?: Error, result?: string): void;
  1130. log?: string;
  1131. stack?: string;
  1132. missing?: string;
  1133. }
  1134. &nbsp;
  1135. // eslint-disable-next-line no-redeclare
  1136. const getInnerRequest: getInnerRequest = require("enhanced-resolve/lib/getInnerRequest");
  1137. &nbsp;
  1138. export class TsconfigPathsPlugin implements ResolvePluginInstance {
  1139. source: string = "described-resolve";
  1140. target: string = "resolve";
  1141. &nbsp;
  1142. log: Logger.Logger;
  1143. baseUrl: string | undefined;
  1144. absoluteBaseUrl: string;
  1145. extensions: ReadonlyArray&lt;string&gt;;
  1146. &nbsp;
  1147. referenceMatchMap: Record&lt;string, TsconfigPaths.MatchPathAsync&gt;;
  1148. matchPath: TsconfigPaths.MatchPathAsync;
  1149. &nbsp;
  1150. constructor(<span class="missing-if-branch" title="if path not taken" >I</span>rawOptions: Partial&lt;Options.Options&gt; = {}) {
  1151. const options = Options.getOptions(rawOptions);
  1152. &nbsp;
  1153. this.extensions = options.extensions;
  1154. this.referenceMatchMap = {};
  1155. &nbsp;
  1156. // const colors = new chalk.constructor({ enabled: options.colors });
  1157. &nbsp;
  1158. this.log = Logger.makeLogger(
  1159. options,
  1160. new chalk.Instance({ level: options.colors ? undefined : <span class="branch-1 cbranch-no" title="branch not covered" >0 </span>})
  1161. );
  1162. &nbsp;
  1163. const context = options.context || process.cwd();
  1164. const loadFrom = options.configFile || <span class="branch-1 cbranch-no" title="branch not covered" >context;</span>
  1165. &nbsp;
  1166. const loadResult = loadConfig(loadFrom, this.log);
  1167. if (loadResult.resultType === "success") {
  1168. this.baseUrl = options.baseUrl || loadResult.baseUrl;
  1169. this.absoluteBaseUrl = options.baseUrl
  1170. ? <span class="branch-0 cbranch-no" title="branch not covered" >path.resolve(options.baseUrl)</span>
  1171. : loadResult.absoluteBaseUrl;
  1172. this.matchPath = TsconfigPaths.createMatchPathAsync(
  1173. this.absoluteBaseUrl,
  1174. loadResult.paths,
  1175. options.mainFields
  1176. );
  1177. &nbsp;
  1178. if (options.references) {
  1179. options.references.reduce((pathMap, reference) =&gt; {
  1180. if (reference) {
  1181. const referenceResult = loadConfig(reference, this.log);
  1182. if (referenceResult.resultType === "success") {
  1183. const { paths, absoluteBaseUrl } = referenceResult;
  1184. pathMap[absoluteBaseUrl] = TsconfigPaths.createMatchPathAsync(
  1185. absoluteBaseUrl,
  1186. paths,
  1187. options.mainFields
  1188. );
  1189. }
  1190. }
  1191. return pathMap;
  1192. }, this.referenceMatchMap);
  1193. }
  1194. }
  1195. }
  1196. &nbsp;
  1197. apply(resolver: Resolver): void {
  1198. <span class="missing-if-branch" title="if path not taken" >I</span>if (!resolver) {
  1199. <span class="cstat-no" title="statement not covered" > this.log.logWarning(</span>
  1200. "tsconfig-paths-webpack-plugin: Found no resolver, not applying tsconfig-paths-webpack-plugin"
  1201. );
  1202. <span class="cstat-no" title="statement not covered" > return;</span>
  1203. }
  1204. &nbsp;
  1205. // The file system only exists when the plugin is in the resolve context. This means it's also properly placed in the resolve.plugins array.
  1206. // If not, we should warn the user that this plugin should be placed in resolve.plugins and not the plugins array of the root config for example.
  1207. // This should hopefully prevent issues like: https://github.com/dividab/tsconfig-paths-webpack-plugin/issues/9
  1208. <span class="missing-if-branch" title="if path not taken" >I</span>if (!("fileSystem" in resolver)) {
  1209. <span class="cstat-no" title="statement not covered" > this.log.logWarning(</span>
  1210. "tsconfig-paths-webpack-plugin: No file system found on resolver." +
  1211. " Please make sure you've placed the plugin in the correct part of the configuration." +
  1212. " This plugin is a resolver plugin and should be placed in the resolve part of the Webpack configuration."
  1213. );
  1214. <span class="cstat-no" title="statement not covered" > return;</span>
  1215. }
  1216. &nbsp;
  1217. // getHook will only exist in Webpack 4 &amp; 5, if so we should comply to the Webpack 4 plugin system.
  1218. if ("getHook" in resolver &amp;&amp; typeof resolver.getHook === "function") {
  1219. resolver
  1220. .getHook(this.source)
  1221. .tapAsync(
  1222. { name: "TsconfigPathsPlugin" },
  1223. createPluginCallback(
  1224. this.referenceMatchMap,
  1225. this.matchPath,
  1226. resolver,
  1227. this.absoluteBaseUrl,
  1228. resolver.getHook(this.target),
  1229. this.extensions
  1230. )
  1231. );
  1232. } else <span class="cstat-no" title="statement not covered" ><span class="missing-if-branch" title="if path not taken" >I</span><span class="missing-if-branch" title="else path not taken" >E</span>if ("plugin" in resolver) {</span>
  1233. // This is the legacy (Webpack &lt; 4.0.0) way of using the plugin system.
  1234. const legacyResolver = (<span class="cstat-no" title="statement not covered" >resolver as unknown) as LegacyResolver;</span>
  1235. <span class="cstat-no" title="statement not covered" > legacyResolver.plugin(</span>
  1236. this.source,
  1237. createPluginLegacy(
  1238. this.matchPath,
  1239. (resolver as unknown) as LegacyResolver,
  1240. this.absoluteBaseUrl,
  1241. this.target,
  1242. this.extensions
  1243. )
  1244. );
  1245. }
  1246. }
  1247. }
  1248. &nbsp;
  1249. function loadConfig(
  1250. configPath: string,
  1251. logger: Logger.Logger
  1252. ): TsconfigPaths.ConfigLoaderResult {
  1253. const loadResult = TsconfigPaths.loadConfig(configPath);
  1254. <span class="missing-if-branch" title="if path not taken" >I</span>if (loadResult.resultType === "failed") {
  1255. <span class="cstat-no" title="statement not covered" > logger.logError(`Failed to load ${configPath}: ${loadResult.message}`);</span>
  1256. } else {
  1257. logger.logInfo(
  1258. `tsconfig-paths-webpack-plugin: Using config file at ${loadResult.configFileAbsolutePath}`
  1259. );
  1260. }
  1261. return loadResult;
  1262. }
  1263. &nbsp;
  1264. function createPluginCallback(
  1265. referenceMatchMap: Record&lt;string, TsconfigPaths.MatchPathAsync&gt;,
  1266. baseMatchPath: TsconfigPaths.MatchPathAsync,
  1267. resolver: Resolver,
  1268. baseAbsoluteBaseUrl: string,
  1269. hook: Tapable,
  1270. extensions: ReadonlyArray&lt;string&gt;
  1271. ): TapAsyncCallback {
  1272. const fileExistAsync = createFileExistAsync(resolver.fileSystem);
  1273. const readJsonAsync = createReadJsonAsync(resolver.fileSystem);
  1274. return (
  1275. request: ResolveRequest,
  1276. resolveContext: ResolveContext,
  1277. callback: TapAsyncInnerCallback
  1278. ) =&gt; {
  1279. const innerRequest = getInnerRequest(resolver, request);
  1280. &nbsp;
  1281. <span class="missing-if-branch" title="if path not taken" >I</span>if (
  1282. !innerRequest ||
  1283. request<span class="branch-0 cbranch-no" title="branch not covered" >?.r</span>equest<span class="branch-0 cbranch-no" title="branch not covered" >?.s</span>tartsWith(".") ||
  1284. request<span class="branch-0 cbranch-no" title="branch not covered" >?.r</span>equest<span class="branch-0 cbranch-no" title="branch not covered" >?.s</span>tartsWith("..")
  1285. ) {
  1286. <span class="cstat-no" title="statement not covered" > return callback();</span>
  1287. }
  1288. &nbsp;
  1289. // Find the base URL and matchPath instance
  1290. // Quickly check if the request path is a known baseUrl
  1291. // Then check if the path is a child of a reference baseUrl
  1292. let absoluteBaseUrl = baseAbsoluteBaseUrl;
  1293. if (
  1294. typeof request.path === "string" &amp;&amp;
  1295. request.path !== baseAbsoluteBaseUrl
  1296. ) {
  1297. if (referenceMatchMap[request.path]) {
  1298. absoluteBaseUrl = request.path;
  1299. } else {
  1300. const referenceUrl = Object.keys(referenceMatchMap).find(
  1301. (refBaseUrl) =&gt; {
  1302. const relative = path.relative(refBaseUrl, request.path || <span class="branch-1 cbranch-no" title="branch not covered" >"")</span>;
  1303. return (
  1304. relative &amp;&amp;
  1305. !relative.startsWith("..") &amp;&amp;
  1306. !path.isAbsolute(relative)
  1307. );
  1308. }
  1309. );
  1310. if (referenceUrl) {
  1311. absoluteBaseUrl = referenceUrl;
  1312. }
  1313. }
  1314. }
  1315. &nbsp;
  1316. const matchPath = referenceMatchMap[absoluteBaseUrl] || baseMatchPath;
  1317. &nbsp;
  1318. matchPath(
  1319. innerRequest,
  1320. readJsonAsync,
  1321. fileExistAsync,
  1322. extensions,
  1323. (err, foundMatch) =&gt; {
  1324. <span class="missing-if-branch" title="if path not taken" >I</span>if (err) {
  1325. <span class="cstat-no" title="statement not covered" > return callback(err);</span>
  1326. }
  1327. &nbsp;
  1328. if (!foundMatch) {
  1329. return callback();
  1330. }
  1331. &nbsp;
  1332. const newRequest = {
  1333. ...request,
  1334. request: foundMatch,
  1335. path: absoluteBaseUrl,
  1336. };
  1337. &nbsp;
  1338. // Only at this point we are sure we are dealing with the latest Webpack version (&gt;= 4.0.0)
  1339. // So only now can we require the createInnerContext function.
  1340. // (It doesn't exist in legacy versions)
  1341. const createInnerContext: CreateInnerContext = require("enhanced-resolve/lib/createInnerContext");
  1342. &nbsp;
  1343. return resolver.doResolve(
  1344. hook,
  1345. newRequest as never,
  1346. `Resolved request '${innerRequest}' to '${foundMatch}' using tsconfig.json paths mapping`,
  1347. // eslint-disable-next-line @typescript-eslint/no-explicit-any
  1348. createInnerContext({ ...(resolveContext as any) }),
  1349. (err2: Error, result2: ResolveRequest): void =&gt; {
  1350. // Pattern taken from:
  1351. // https://github.com/webpack/enhanced-resolve/blob/42ff594140582c3f8f86811f95dea7bf6774a1c8/lib/AliasPlugin.js#L44
  1352. <span class="missing-if-branch" title="if path not taken" >I</span>if (err2) {
  1353. <span class="cstat-no" title="statement not covered" > return callback(err2);</span>
  1354. }
  1355. &nbsp;
  1356. // Don't allow other aliasing or raw request
  1357. <span class="missing-if-branch" title="if path not taken" >I</span>if (result2 === undefined) {
  1358. <span class="cstat-no" title="statement not covered" > return callback(undefined, undefined);</span>
  1359. }
  1360. &nbsp;
  1361. callback(undefined, result2);
  1362. }
  1363. );
  1364. }
  1365. );
  1366. };
  1367. }
  1368. &nbsp;
  1369. function <span class="fstat-no" title="function not covered" >createPluginLegacy(</span>
  1370. matchPath: TsconfigPaths.MatchPathAsync,
  1371. resolver: LegacyResolver,
  1372. absoluteBaseUrl: string,
  1373. target: string,
  1374. extensions: ReadonlyArray&lt;string&gt;
  1375. ): ResolverCallbackLegacy {
  1376. const fileExistAsync = <span class="cstat-no" title="statement not covered" >createFileExistAsync(resolver.fileSystem);</span>
  1377. const readJsonAsync = <span class="cstat-no" title="statement not covered" >createReadJsonAsync(resolver.fileSystem);</span>
  1378. <span class="cstat-no" title="statement not covered" > return <span class="fstat-no" title="function not covered" >(r</span>equest, callback) =&gt; {</span>
  1379. const innerRequest = <span class="cstat-no" title="statement not covered" >getInnerRequest(resolver, request);</span>
  1380. &nbsp;
  1381. <span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (</span>
  1382. !innerRequest ||
  1383. innerRequest.startsWith(".") ||
  1384. innerRequest.startsWith("..")
  1385. ) {
  1386. <span class="cstat-no" title="statement not covered" > return callback();</span>
  1387. }
  1388. &nbsp;
  1389. <span class="cstat-no" title="statement not covered" > matchPath(</span>
  1390. innerRequest,
  1391. readJsonAsync,
  1392. fileExistAsync,
  1393. extensions,
  1394. <span class="fstat-no" title="function not covered" > (e</span>rr, foundMatch) =&gt; {
  1395. <span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (err) {</span>
  1396. <span class="cstat-no" title="statement not covered" > return callback(err);</span>
  1397. }
  1398. &nbsp;
  1399. <span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (!foundMatch) {</span>
  1400. <span class="cstat-no" title="statement not covered" > return callback();</span>
  1401. }
  1402. &nbsp;
  1403. const newRequest<span class="cstat-no" title="statement not covered" > = {</span>
  1404. ...request,
  1405. request: foundMatch,
  1406. path: absoluteBaseUrl,
  1407. };
  1408. &nbsp;
  1409. // Only at this point we are sure we are dealing with a legacy Webpack version (&lt; 4.0.0)
  1410. // So only now can we require the createInnerCallback function.
  1411. // (It's already deprecated and might be removed down the line).
  1412. const createInnerCallback: CreateInnerCallback = <span class="cstat-no" title="statement not covered" >require("enhanced-resolve/lib/createInnerCallback");</span>
  1413. &nbsp;
  1414. <span class="cstat-no" title="statement not covered" > return (resolver.doResolve as doResolveLegacy)(</span>
  1415. target,
  1416. newRequest,
  1417. `Resolved request '${innerRequest}' to '${foundMatch}' using tsconfig.json paths mapping`,
  1418. createInnerCallback(<span class="fstat-no" title="function not covered" >function (e</span>rr2: Error, result2: string): void {
  1419. // Note:
  1420. // *NOT* using an arrow function here because arguments.length implies we have "this"
  1421. // That means "this" has to be in the current function scope, and not the scope above.
  1422. // Pattern taken from:
  1423. // https://github.com/s-panferov/awesome-typescript-loader/blob/10653beff85f555f1f3b5d4bfd7d21513d0e54a4/src/paths-plugin.ts#L169
  1424. <span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (arguments.length &gt; 0) {</span>
  1425. <span class="cstat-no" title="statement not covered" > return callback(err2, result2);</span>
  1426. }
  1427. &nbsp;
  1428. // don't allow other aliasing or raw request
  1429. <span class="cstat-no" title="statement not covered" > callback(undefined, undefined);</span>
  1430. }, callback)
  1431. );
  1432. }
  1433. );
  1434. };
  1435. }
  1436. &nbsp;
  1437. function readJson(
  1438. fileSystem: FileSystem,
  1439. path2: string,
  1440. callback: ReadJsonCallback
  1441. ): void {
  1442. if ("readJson" in fileSystem &amp;&amp; fileSystem.readJson) {
  1443. return fileSystem.readJson(path2, callback);
  1444. }
  1445. &nbsp;
  1446. <span class="cstat-no" title="statement not covered" > fileSystem.readFile(path2, <span class="fstat-no" title="function not covered" >(e</span>rr, buf) =&gt; {</span>
  1447. <span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (err) {</span>
  1448. <span class="cstat-no" title="statement not covered" > return callback(err);</span>
  1449. }
  1450. &nbsp;
  1451. let data;
  1452. &nbsp;
  1453. <span class="cstat-no" title="statement not covered" > try {</span>
  1454. // @ts-ignore This will crash if buf is undefined, which I guess it can be...
  1455. <span class="cstat-no" title="statement not covered" > data = JSON.parse(buf.toString("utf-8"));</span>
  1456. } catch (e) {
  1457. <span class="cstat-no" title="statement not covered" > return callback(e);</span>
  1458. }
  1459. &nbsp;
  1460. <span class="cstat-no" title="statement not covered" > return callback(undefined, data);</span>
  1461. });
  1462. }
  1463. &nbsp;
  1464. function createReadJsonAsync(
  1465. filesystem: FileSystem
  1466. ): TsconfigPaths.ReadJsonAsync {
  1467. // eslint-disable-next-line @typescript-eslint/no-explicit-any
  1468. return (path2: string, callback2: (err?: Error, content?: any) =&gt; void) =&gt; {
  1469. readJson(filesystem, path2, (err, json) =&gt; {
  1470. // If error assume file does not exist
  1471. if (err || !json) {
  1472. callback2();
  1473. return;
  1474. }
  1475. callback2(undefined, json);
  1476. });
  1477. };
  1478. }
  1479. &nbsp;
  1480. function createFileExistAsync(
  1481. filesystem: FileSystem
  1482. ): TsconfigPaths.FileExistsAsync {
  1483. return (
  1484. path2: string,
  1485. callback2: (err?: Error, exists?: boolean) =&gt; void
  1486. ) =&gt; {
  1487. filesystem.stat(path2, (err: Error, stats: fs.Stats) =&gt; {
  1488. // If error assume file does not exist
  1489. if (err) {
  1490. callback2(undefined, false);
  1491. return;
  1492. }
  1493. callback2(undefined, stats ? stats.isFile() : <span class="branch-1 cbranch-no" title="branch not covered" >false)</span>;
  1494. });
  1495. };
  1496. }
  1497. &nbsp;</pre></td></tr></table></pre>
  1498. <div class='push'></div><!-- for sticky footer -->
  1499. </div><!-- /wrapper -->
  1500. <div class='footer quiet pad2 space-top1 center small'>
  1501. Code coverage generated by
  1502. <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
  1503. at 2023-07-11T18:47:03.190Z
  1504. </div>
  1505. <script src="prettify.js"></script>
  1506. <script>
  1507. window.onload = function () {
  1508. prettyPrint();
  1509. };
  1510. </script>
  1511. <script src="sorter.js"></script>
  1512. <script src="block-navigation.js"></script>
  1513. </body>
  1514. </html>