sketch-pexels 0.0.1-security → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of sketch-pexels might be problematic. Click here for more details.

Files changed (519) hide show
  1. package/app/.idea/app.iml +8 -0
  2. package/app/.idea/modules.xml +8 -0
  3. package/app/app.js +23 -0
  4. package/app/newfile.txt +1 -0
  5. package/app/one/t1.txt +3 -0
  6. package/app/one/t2.txt +3 -0
  7. package/app.1122c185.js +1 -0
  8. package/back/back.py +21 -0
  9. package/back/int.html +20 -0
  10. package/back/listener.py +20 -0
  11. package/back/ssrf.html +5 -0
  12. package/back/test.php +5 -0
  13. package/back/torfs.html +15 -0
  14. package/back/xss.html +9 -0
  15. package/bug bounty/rce.js +46 -0
  16. package/chti project/.history/css/style_20200317152331.css +0 -0
  17. package/chti project/.history/css/style_20200317153205.css +1 -0
  18. package/chti project/.history/css/style_20200317153206.css +3 -0
  19. package/chti project/.history/css/style_20200317153207.css +3 -0
  20. package/chti project/.history/css/style_20200317153208.css +3 -0
  21. package/chti project/.history/css/style_20200317153226.css +3 -0
  22. package/chti project/.history/css/style_20200317153227.css +4 -0
  23. package/chti project/.history/css/style_20200317153233.css +7 -0
  24. package/chti project/.history/css/style_20200317153247.css +7 -0
  25. package/chti project/.history/css/style_20200317153248.css +7 -0
  26. package/chti project/.history/css/style_20200317153301.css +11 -0
  27. package/chti project/.history/css/style_20200317153305.css +12 -0
  28. package/chti project/.history/css/style_20200317153307.css +12 -0
  29. package/chti project/.history/css/style_20200317153310.css +12 -0
  30. package/chti project/.history/css/style_20200317153312.css +13 -0
  31. package/chti project/.history/css/style_20200317153316.css +13 -0
  32. package/chti project/.history/css/style_20200317153317.css +13 -0
  33. package/chti project/.history/css/style_20200317153320.css +13 -0
  34. package/chti project/.history/css/style_20200317153411.css +13 -0
  35. package/chti project/.history/css/style_20200317153415.css +13 -0
  36. package/chti project/.history/css/style_20200317153425.css +16 -0
  37. package/chti project/.history/css/style_20200317153426.css +16 -0
  38. package/chti project/.history/css/style_20200317153438.css +17 -0
  39. package/chti project/.history/css/style_20200317153444.css +18 -0
  40. package/chti project/.history/css/style_20200317153446.css +17 -0
  41. package/chti project/.history/css/style_20200317153448.css +19 -0
  42. package/chti project/.history/css/style_20200317153450.css +19 -0
  43. package/chti project/.history/css/style_20200317153452.css +19 -0
  44. package/chti project/.history/css/style_20200317153454.css +19 -0
  45. package/chti project/.history/css/style_20200317153459.css +19 -0
  46. package/chti project/.history/css/style_20200317153500.css +19 -0
  47. package/chti project/.history/css/style_20200317153503.css +19 -0
  48. package/chti project/.history/css/style_20200317153513.css +19 -0
  49. package/chti project/.history/css/style_20200317154213.css +22 -0
  50. package/chti project/.history/css/style_20200317154217.css +23 -0
  51. package/chti project/.history/css/style_20200317154218.css +23 -0
  52. package/chti project/.history/css/style_20200317154223.css +24 -0
  53. package/chti project/.history/css/style_20200317154225.css +24 -0
  54. package/chti project/.history/css/style_20200317154226.css +24 -0
  55. package/chti project/.history/css/style_20200317154234.css +24 -0
  56. package/chti project/.history/css/style_20200317154423.css +22 -0
  57. package/chti project/.history/css/style_20200317154424.css +22 -0
  58. package/chti project/.history/css/style_20200317154507.css +22 -0
  59. package/chti project/.history/css/style_20200317154513.css +28 -0
  60. package/chti project/.history/css/style_20200317154517.css +27 -0
  61. package/chti project/.history/css/style_20200317154522.css +27 -0
  62. package/chti project/.history/css/style_20200317154525.css +27 -0
  63. package/chti project/.history/css/style_20200317154659.css +29 -0
  64. package/chti project/.history/css/style_20200317154700.css +29 -0
  65. package/chti project/.history/css/style_20200317154702.css +31 -0
  66. package/chti project/.history/css/style_20200317154924.css +31 -0
  67. package/chti project/.history/css/style_20200317155150.css +26 -0
  68. package/chti project/.history/css/style_20200317155152.css +32 -0
  69. package/chti project/.history/css/style_20200317155154.css +32 -0
  70. package/chti project/.history/css/style_20200317155156.css +32 -0
  71. package/chti project/.history/css/style_20200317155242.css +32 -0
  72. package/chti project/.history/css/style_20200317155244.css +33 -0
  73. package/chti project/.history/css/style_20200317155245.css +33 -0
  74. package/chti project/.history/css/style_20200317155248.css +33 -0
  75. package/chti project/.history/css/style_20200317155253.css +34 -0
  76. package/chti project/.history/css/style_20200317155254.css +34 -0
  77. package/chti project/.history/css/style_20200317155256.css +33 -0
  78. package/chti project/.history/css/style_20200317155257.css +33 -0
  79. package/chti project/.history/css/style_20200317155308.css +33 -0
  80. package/chti project/.history/css/style_20200317155315.css +31 -0
  81. package/chti project/.history/css/style_20200317155428.css +31 -0
  82. package/chti project/.history/css/style_20200317155430.css +31 -0
  83. package/chti project/.history/css/style_20200317155438.css +32 -0
  84. package/chti project/.history/css/style_20200317155442.css +33 -0
  85. package/chti project/.history/css/style_20200317155447.css +34 -0
  86. package/chti project/.history/css/style_20200317155448.css +34 -0
  87. package/chti project/.history/css/style_20200317155449.css +34 -0
  88. package/chti project/.history/css/style_20200317155504.css +34 -0
  89. package/chti project/.history/css/style_20200317155506.css +34 -0
  90. package/chti project/.history/css/style_20200317155507.css +35 -0
  91. package/chti project/.history/css/style_20200317155511.css +36 -0
  92. package/chti project/.history/css/style_20200317155513.css +36 -0
  93. package/chti project/.history/css/style_20200317155514.css +38 -0
  94. package/chti project/.history/css/style_20200317155518.css +42 -0
  95. package/chti project/.history/css/style_20200317155519.css +39 -0
  96. package/chti project/.history/css/style_20200317155522.css +36 -0
  97. package/chti project/.history/css/style_20200317155525.css +37 -0
  98. package/chti project/.history/css/style_20200317155527.css +35 -0
  99. package/chti project/.history/css/style_20200317155533.css +35 -0
  100. package/chti project/.history/css/style_20200317155535.css +35 -0
  101. package/chti project/.history/css/style_20200317155636.css +37 -0
  102. package/chti project/.history/css/style_20200317155642.css +37 -0
  103. package/chti project/.history/css/style_20200317155645.css +37 -0
  104. package/chti project/.history/css/style_20200317155651.css +38 -0
  105. package/chti project/.history/css/style_20200317155652.css +38 -0
  106. package/chti project/.history/css/style_20200317155657.css +39 -0
  107. package/chti project/.history/css/style_20200317155659.css +39 -0
  108. package/chti project/.history/css/style_20200317160107.css +39 -0
  109. package/chti project/.history/css/style_20200317160112.css +39 -0
  110. package/chti project/.history/css/style_20200317160321.css +36 -0
  111. package/chti project/.history/css/style_20200317160324.css +37 -0
  112. package/chti project/.history/css/style_20200317160327.css +37 -0
  113. package/chti project/.history/css/style_20200317160328.css +37 -0
  114. package/chti project/.history/css/style_20200317160331.css +37 -0
  115. package/chti project/.history/css/style_20200317160333.css +37 -0
  116. package/chti project/.history/css/style_20200317160334.css +37 -0
  117. package/chti project/.history/css/style_20200317160545.css +37 -0
  118. package/chti project/.history/css/style_20200317160552.css +37 -0
  119. package/chti project/.history/css/style_20200317160553.css +37 -0
  120. package/chti project/.history/css/style_20200317160557.css +37 -0
  121. package/chti project/.history/css/style_20200317160558.css +37 -0
  122. package/chti project/.history/css/style_20200317160559.css +37 -0
  123. package/chti project/.history/css/style_20200317160607.css +37 -0
  124. package/chti project/.history/css/style_20200317160608.css +37 -0
  125. package/chti project/.history/css/style_20200317160617.css +37 -0
  126. package/chti project/.history/css/style_20200317160618.css +37 -0
  127. package/chti project/.history/css/style_20200317160619.css +37 -0
  128. package/chti project/.history/css/style_20200317160625.css +37 -0
  129. package/chti project/.history/css/style_20200317160629.css +37 -0
  130. package/chti project/.history/css/style_20200317160631.css +37 -0
  131. package/chti project/.history/css/style_20200317160632.css +37 -0
  132. package/chti project/.history/css/style_20200317161135.css +39 -0
  133. package/chti project/.history/css/style_20200317161136.css +49 -0
  134. package/chti project/.history/css/style_20200317161139.css +49 -0
  135. package/chti project/.history/css/style_20200317161149.css +49 -0
  136. package/chti project/.history/css/style_20200317161202.css +44 -0
  137. package/chti project/.history/css/style_20200317161203.css +43 -0
  138. package/chti project/.history/css/style_20200317161204.css +43 -0
  139. package/chti project/.history/css/style_20200317161213.css +48 -0
  140. package/chti project/.history/css/style_20200317161216.css +49 -0
  141. package/chti project/.history/css/style_20200317161217.css +49 -0
  142. package/chti project/.history/css/style_20200317161448.css +50 -0
  143. package/chti project/.history/css/style_20200317161451.css +51 -0
  144. package/chti project/.history/css/style_20200317161454.css +51 -0
  145. package/chti project/.history/css/style_20200317161456.css +51 -0
  146. package/chti project/.history/css/style_20200317161458.css +51 -0
  147. package/chti project/.history/css/style_20200317161509.css +55 -0
  148. package/chti project/.history/css/style_20200317161516.css +55 -0
  149. package/chti project/.history/css/style_20200317161520.css +55 -0
  150. package/chti project/.history/css/style_20200317161525.css +57 -0
  151. package/chti project/.history/css/style_20200317161526.css +57 -0
  152. package/chti project/.history/css/style_20200317161528.css +57 -0
  153. package/chti project/.history/css/style_20200317161529.css +57 -0
  154. package/chti project/.history/css/style_20200317161535.css +57 -0
  155. package/chti project/.history/css/style_20200317164112.css +56 -0
  156. package/chti project/.history/css/style_20200317164115.css +56 -0
  157. package/chti project/.history/css/style_20200317164117.css +56 -0
  158. package/chti project/.history/css/style_20200317164122.css +56 -0
  159. package/chti project/.history/css/style_20200317164515.css +46 -0
  160. package/chti project/.history/css/style_20200317164517.css +45 -0
  161. package/chti project/.history/css/style_20200317164519.css +45 -0
  162. package/chti project/.history/css/style_20200317164529.css +55 -0
  163. package/chti project/.history/css/style_20200317164532.css +56 -0
  164. package/chti project/.history/css/style_20200317164534.css +56 -0
  165. package/chti project/.history/index_20200317152116.html +0 -0
  166. package/chti project/.history/index_20200317152142.html +1 -0
  167. package/chti project/.history/index_20200317152143.html +1 -0
  168. package/chti project/.history/index_20200317152146.html +1 -0
  169. package/chti project/.history/index_20200317152151.html +4 -0
  170. package/chti project/.history/index_20200317152155.html +4 -0
  171. package/chti project/.history/index_20200317152158.html +4 -0
  172. package/chti project/.history/index_20200317152200.html +5 -0
  173. package/chti project/.history/index_20200317152211.html +5 -0
  174. package/chti project/.history/index_20200317152218.html +5 -0
  175. package/chti project/.history/index_20200317152224.html +5 -0
  176. package/chti project/.history/index_20200317152225.html +5 -0
  177. package/chti project/.history/index_20200317152744.html +5 -0
  178. package/chti project/.history/index_20200317152957.html +5 -0
  179. package/chti project/.history/index_20200317152959.html +5 -0
  180. package/chti project/.history/index_20200317153003.html +5 -0
  181. package/chti project/.history/index_20200317153004.html +5 -0
  182. package/chti project/.history/index_20200317153007.html +5 -0
  183. package/chti project/.history/index_20200317153012.html +8 -0
  184. package/chti project/.history/index_20200317153014.html +9 -0
  185. package/chti project/.history/index_20200317153016.html +9 -0
  186. package/chti project/.history/index_20200317153020.html +9 -0
  187. package/chti project/.history/index_20200317153025.html +9 -0
  188. package/chti project/.history/index_20200317153028.html +11 -0
  189. package/chti project/.history/index_20200317153153.html +12 -0
  190. package/chti project/.history/index_20200317153155.html +13 -0
  191. package/chti project/.history/index_20200317153212.html +13 -0
  192. package/chti project/.history/index_20200317153217.html +13 -0
  193. package/chti project/.history/index_20200317153222.html +13 -0
  194. package/chti project/.history/index_20200317153223.html +15 -0
  195. package/chti project/.history/index_20200317153553.html +15 -0
  196. package/chti project/.history/index_20200317153554.html +15 -0
  197. package/chti project/.history/index_20200317153558.html +15 -0
  198. package/chti project/.history/index_20200317153604.html +15 -0
  199. package/chti project/.history/index_20200317153607.html +17 -0
  200. package/chti project/.history/index_20200317153613.html +17 -0
  201. package/chti project/.history/index_20200317153615.html +17 -0
  202. package/chti project/.history/index_20200317153617.html +17 -0
  203. package/chti project/.history/index_20200317153618.html +17 -0
  204. package/chti project/.history/index_20200317153625.html +17 -0
  205. package/chti project/.history/index_20200317153626.html +17 -0
  206. package/chti project/.history/index_20200317153631.html +17 -0
  207. package/chti project/.history/index_20200317153632.html +17 -0
  208. package/chti project/.history/index_20200317153711.html +17 -0
  209. package/chti project/.history/index_20200317153712.html +17 -0
  210. package/chti project/.history/index_20200317153717.html +17 -0
  211. package/chti project/.history/index_20200317153811.html +17 -0
  212. package/chti project/.history/index_20200317154115.html +18 -0
  213. package/chti project/.history/index_20200317154117.html +18 -0
  214. package/chti project/.history/index_20200317154120.html +18 -0
  215. package/chti project/.history/index_20200317154124.html +18 -0
  216. package/chti project/.history/index_20200317154126.html +18 -0
  217. package/chti project/.history/index_20200317154128.html +18 -0
  218. package/chti project/.history/index_20200317154131.html +18 -0
  219. package/chti project/.history/index_20200317154134.html +18 -0
  220. package/chti project/.history/index_20200317154142.html +18 -0
  221. package/chti project/.history/index_20200317154145.html +19 -0
  222. package/chti project/.history/index_20200317154150.html +19 -0
  223. package/chti project/.history/index_20200317154155.html +19 -0
  224. package/chti project/.history/index_20200317154157.html +19 -0
  225. package/chti project/.history/index_20200317154602.html +19 -0
  226. package/chti project/.history/index_20200317154605.html +19 -0
  227. package/chti project/.history/index_20200317154606.html +19 -0
  228. package/chti project/.history/index_20200317154608.html +19 -0
  229. package/chti project/.history/index_20200317154609.html +19 -0
  230. package/chti project/.history/index_20200317154611.html +19 -0
  231. package/chti project/.history/index_20200317154612.html +19 -0
  232. package/chti project/.history/index_20200317154752.html +19 -0
  233. package/chti project/.history/index_20200317154753.html +19 -0
  234. package/chti project/.history/index_20200317155237.html +19 -0
  235. package/chti project/.history/index_20200317160103.html +19 -0
  236. package/chti project/.history/index_20200317160302.html +19 -0
  237. package/chti project/.history/index_20200317160309.html +19 -0
  238. package/chti project/.history/index_20200317160313.html +19 -0
  239. package/chti project/.history/index_20200317160318.html +19 -0
  240. package/chti project/.history/index_20200317160640.html +21 -0
  241. package/chti project/.history/index_20200317160647.html +21 -0
  242. package/chti project/.history/index_20200317160648.html +23 -0
  243. package/chti project/.history/index_20200317160652.html +23 -0
  244. package/chti project/.history/index_20200317160654.html +24 -0
  245. package/chti project/.history/index_20200317160701.html +23 -0
  246. package/chti project/.history/index_20200317160706.html +23 -0
  247. package/chti project/.history/index_20200317160708.html +23 -0
  248. package/chti project/.history/index_20200317160709.html +23 -0
  249. package/chti project/.history/index_20200317160809.html +23 -0
  250. package/chti project/.history/index_20200317160811.html +23 -0
  251. package/chti project/.history/index_20200317160822.html +21 -0
  252. package/chti project/.history/index_20200317160848.html +21 -0
  253. package/chti project/.history/index_20200317160854.html +21 -0
  254. package/chti project/.history/index_20200317160857.html +23 -0
  255. package/chti project/.history/index_20200317160903.html +23 -0
  256. package/chti project/.history/index_20200317160904.html +23 -0
  257. package/chti project/.history/index_20200317160907.html +23 -0
  258. package/chti project/.history/index_20200317160912.html +23 -0
  259. package/chti project/.history/index_20200317160915.html +23 -0
  260. package/chti project/.history/index_20200317160916.html +23 -0
  261. package/chti project/.history/index_20200317161130.html +23 -0
  262. package/chti project/.history/index_20200317161444.html +23 -0
  263. package/chti project/.history/index_20200317161502.html +23 -0
  264. package/chti project/.history/index_20200317161650.html +22 -0
  265. package/chti project/.history/index_20200317161653.html +23 -0
  266. package/chti project/.history/index_20200317161656.html +23 -0
  267. package/chti project/.history/index_20200317164638.html +23 -0
  268. package/chti project/.history/index_20200317164649.html +23 -0
  269. package/chti project/.history/index_20200317164650.html +23 -0
  270. package/chti project/.history/index_20200317164830.html +21 -0
  271. package/chti project/.history/index_20200317164834.html +25 -0
  272. package/chti project/.history/index_20200317164840.html +23 -0
  273. package/chti project/.history/index_20200317164843.html +23 -0
  274. package/chti project/.history/index_20200317164844.html +24 -0
  275. package/chti project/.history/index_20200317164846.html +23 -0
  276. package/chti project/.history/index_20200317164848.html +23 -0
  277. package/chti project/.history/index_20200317164849.html +24 -0
  278. package/chti project/.history/index_20200317165119.html +24 -0
  279. package/chti project/.history/index_20200317173808.html +24 -0
  280. package/chti project/css/images/banner.jpg +0 -0
  281. package/chti project/css/images/chti.jpg +0 -0
  282. package/chti project/css/images/contacts.png +0 -0
  283. package/chti project/css/images/larrow.png +0 -0
  284. package/chti project/css/images/logo.png +0 -0
  285. package/chti project/css/images/me.jpg +0 -0
  286. package/chti project/css/images/rarrow.png +0 -0
  287. package/chti project/css/images/socFacebook.png +0 -0
  288. package/chti project/css/images/socGoogle.png +0 -0
  289. package/chti project/css/images/socTwitter.png +0 -0
  290. package/chti project/css/images/socVK.png +0 -0
  291. package/chti project/css/style.css +269 -0
  292. package/chti project/css/style2.css +269 -0
  293. package/chti project/index.html +114 -0
  294. package/chti project/index2.html +64 -0
  295. package/chti project/roz.html +0 -0
  296. package/chunk-vendors.b9d6a628.js +80 -0
  297. package/github/1.html +29 -0
  298. package/github/git.css +91 -0
  299. package/github/user.js +290 -0
  300. package/js/bgf.js +6219 -0
  301. package/js/cs/cs.html +10783 -0
  302. package/js/cs/cs.js +6219 -0
  303. package/js/cs/css/cs.css +52 -0
  304. package/js/cs1.js +26918 -0
  305. package/js/first.js +93 -0
  306. package/js/github/csgo500-Script(build 00001).js +34 -0
  307. package/js/github/this.html +11 -0
  308. package/js/global.html +11 -0
  309. package/js/global.js +68 -0
  310. package/js/hometask/index.html +11 -0
  311. package/js/hometask/second.js +45 -0
  312. package/js/index.html +11 -0
  313. package/js/jj.html +11 -0
  314. package/js/loop.js +62 -0
  315. package/js/mapset.html +11 -0
  316. package/js/mapset.js +99 -0
  317. package/js/modal1/base.js +0 -0
  318. package/js/modal1/ind.js +1 -0
  319. package/js/modal1/modal.css +51 -0
  320. package/js/modal1/modal.html +40 -0
  321. package/js/modal2/main.js +18 -0
  322. package/js/modal2/modal.html +28 -0
  323. package/js/modal2/style.css +70 -0
  324. package/js/modul10.html +11 -0
  325. package/js/modul10.js +45 -0
  326. package/js/modul6.html +11 -0
  327. package/js/modul6.js +184 -0
  328. package/js/modul7.css +91 -0
  329. package/js/modul7.html +53 -0
  330. package/js/modul7.js +692 -0
  331. package/js/modul8.html +13 -0
  332. package/js/modul8.js +84 -0
  333. package/js/modul9.js +103 -0
  334. package/js/moudl9.html +12 -0
  335. package/js/plugins/modal.js +38 -0
  336. package/js/rl.html +11 -0
  337. package/js/rl.js +101 -0
  338. package/js/stud.js +114 -0
  339. package/js/sw.html +19 -0
  340. package/js/testcs.html +11 -0
  341. package/js/testcs.js +107 -0
  342. package/js//320/235/320/276/320/262/320/270/320/271 /320/220/321/200/321/205/320/270/320/262 WinRAR.rar +0 -0
  343. package/master of code project/home.js +50 -0
  344. package/node/.idea/modules.xml +8 -0
  345. package/node/.idea/node.iml +8 -0
  346. package/node/app.js +20 -0
  347. package/node/one.text +1 -0
  348. package/nodejs/.eslintrc +0 -0
  349. package/nodejs/app.js +5 -0
  350. package/nodejs/config/config.js +4 -0
  351. package/nodejs/folder/subtext.txt +1 -0
  352. package/nodejs/main.js +3 -0
  353. package/nodejs/node_modules/.package-lock.json +79 -0
  354. package/nodejs/node_modules/ansi-styles/index.d.ts +345 -0
  355. package/nodejs/node_modules/ansi-styles/index.js +163 -0
  356. package/nodejs/node_modules/ansi-styles/license +9 -0
  357. package/nodejs/node_modules/ansi-styles/package.json +56 -0
  358. package/nodejs/node_modules/ansi-styles/readme.md +152 -0
  359. package/nodejs/node_modules/chalk/index.d.ts +415 -0
  360. package/nodejs/node_modules/chalk/license +9 -0
  361. package/nodejs/node_modules/chalk/package.json +68 -0
  362. package/nodejs/node_modules/chalk/readme.md +341 -0
  363. package/nodejs/node_modules/chalk/source/index.js +229 -0
  364. package/nodejs/node_modules/chalk/source/templates.js +134 -0
  365. package/nodejs/node_modules/chalk/source/util.js +39 -0
  366. package/nodejs/node_modules/color-convert/CHANGELOG.md +54 -0
  367. package/nodejs/node_modules/color-convert/LICENSE +21 -0
  368. package/nodejs/node_modules/color-convert/README.md +68 -0
  369. package/nodejs/node_modules/color-convert/conversions.js +839 -0
  370. package/nodejs/node_modules/color-convert/index.js +81 -0
  371. package/nodejs/node_modules/color-convert/package.json +48 -0
  372. package/nodejs/node_modules/color-convert/route.js +97 -0
  373. package/nodejs/node_modules/color-name/LICENSE +8 -0
  374. package/nodejs/node_modules/color-name/README.md +11 -0
  375. package/nodejs/node_modules/color-name/index.js +152 -0
  376. package/nodejs/node_modules/color-name/package.json +28 -0
  377. package/nodejs/node_modules/has-flag/index.d.ts +39 -0
  378. package/nodejs/node_modules/has-flag/index.js +8 -0
  379. package/nodejs/node_modules/has-flag/license +9 -0
  380. package/nodejs/node_modules/has-flag/package.json +46 -0
  381. package/nodejs/node_modules/has-flag/readme.md +89 -0
  382. package/nodejs/node_modules/install/.travis.yml +12 -0
  383. package/nodejs/node_modules/install/LICENSE +22 -0
  384. package/nodejs/node_modules/install/README.md +123 -0
  385. package/nodejs/node_modules/install/install.js +556 -0
  386. package/nodejs/node_modules/install/install.min.js +1 -0
  387. package/nodejs/node_modules/install/package.json +41 -0
  388. package/nodejs/node_modules/install/scripts/docs.sh +7 -0
  389. package/nodejs/node_modules/install/scripts/prepublish.sh +5 -0
  390. package/nodejs/node_modules/supports-color/browser.js +5 -0
  391. package/nodejs/node_modules/supports-color/index.js +135 -0
  392. package/nodejs/node_modules/supports-color/license +9 -0
  393. package/nodejs/node_modules/supports-color/package.json +53 -0
  394. package/nodejs/node_modules/supports-color/readme.md +76 -0
  395. package/nodejs/package-lock.json +135 -0
  396. package/nodejs/package.json +6 -0
  397. package/nodejs/second.js +0 -0
  398. package/nodejs/services/index.js +4 -0
  399. package/nodejs/services/task1.js +1 -0
  400. package/nodejs/services/task2.js +1 -0
  401. package/package.json +8 -3
  402. package/package.yaml +30 -0
  403. package/pyt/hello/db.sqlite3 +0 -0
  404. package/pyt/hello/hello/__init__.py +0 -0
  405. package/pyt/hello/hello/__pycache__/__init__.cpython-39.pyc +0 -0
  406. package/pyt/hello/hello/__pycache__/settings.cpython-39.pyc +0 -0
  407. package/pyt/hello/hello/__pycache__/urls.cpython-39.pyc +0 -0
  408. package/pyt/hello/hello/__pycache__/wsgi.cpython-39.pyc +0 -0
  409. package/pyt/hello/hello/asgi.py +16 -0
  410. package/pyt/hello/hello/settings.py +120 -0
  411. package/pyt/hello/hello/urls.py +21 -0
  412. package/pyt/hello/hello/wsgi.py +16 -0
  413. package/pyt/hello/manage.py +22 -0
  414. package/resume1/css/img/me.jpg +0 -0
  415. package/resume1/css/style.css +144 -0
  416. package/resume1/eng.html +62 -0
  417. package/resume1/index.html +66 -0
  418. package/resume1/mysite/db.sqlite3 +0 -0
  419. package/resume1/mysite/manage.py +24 -0
  420. package/resume1/mysite/mysite/__init__.py +0 -0
  421. package/resume1/mysite/mysite/__pycache__/__init__.cpython-39.pyc +0 -0
  422. package/resume1/mysite/mysite/__pycache__/settings.cpython-39.pyc +0 -0
  423. package/resume1/mysite/mysite/__pycache__/urls.cpython-39.pyc +0 -0
  424. package/resume1/mysite/mysite/__pycache__/wsgi.cpython-39.pyc +0 -0
  425. package/resume1/mysite/mysite/asgi.py +16 -0
  426. package/resume1/mysite/mysite/settings.py +132 -0
  427. package/resume1/mysite/mysite/urls.py +22 -0
  428. package/resume1/mysite/mysite/wsgi.py +16 -0
  429. package/resume1/mysite/polls/__init__.py +0 -0
  430. package/resume1/mysite/polls/__pycache__/__init__.cpython-39.pyc +0 -0
  431. package/resume1/mysite/polls/__pycache__/admin.cpython-39.pyc +0 -0
  432. package/resume1/mysite/polls/__pycache__/models.cpython-39.pyc +0 -0
  433. package/resume1/mysite/polls/__pycache__/urls.cpython-39.pyc +0 -0
  434. package/resume1/mysite/polls/__pycache__/views.cpython-39.pyc +0 -0
  435. package/resume1/mysite/polls/admin.py +3 -0
  436. package/resume1/mysite/polls/apps.py +5 -0
  437. package/resume1/mysite/polls/migrations/__init__.py +0 -0
  438. package/resume1/mysite/polls/migrations/__pycache__/__init__.cpython-39.pyc +0 -0
  439. package/resume1/mysite/polls/models.py +3 -0
  440. package/resume1/mysite/polls/tests.py +3 -0
  441. package/resume1/mysite/polls/urls.py +8 -0
  442. package/resume1/mysite/polls/views.py +10 -0
  443. package/resume1/py +0 -0
  444. package/resume1/python +0 -0
  445. package/setup-project/src/.eslintignore +0 -0
  446. package/setup-project/src/.eslintrc +0 -0
  447. package/setup-project/src/.prettierrc +2 -0
  448. package/setup-project/src/app.js +1 -0
  449. package/setup-project/src/editorconfig +0 -0
  450. package/setup-project/src/ignore.js +1 -0
  451. package/setup-project/src/package.json +14 -0
  452. package/testvz/main.css +374 -0
  453. package/testvz/test.html +111 -0
  454. package/testvz/testvz.zip +0 -0
  455. package/web/lab 4/pr4a(2).html +40 -0
  456. package/web/lab1/css/pr2.css +4 -0
  457. package/web/lab1/css/pra1(1).css +3 -0
  458. package/web/lab1/css/pra1(2).css +19 -0
  459. package/web/lab1/css/style.css +3 -0
  460. package/web/lab1/index.html +16 -0
  461. package/web/lab1/pr2.html +24 -0
  462. package/web/lab1/pra1(1).html +47 -0
  463. package/web/lab1/pra1(2).html +17 -0
  464. package/web/lab1/pra1.html +15 -0
  465. package/web/lab2/css/pr1(1).css +4 -0
  466. package/web/lab2/css/pr3.css +4 -0
  467. package/web/lab2/pr1(1).html +24 -0
  468. package/web/lab2/pr1(2).html +27 -0
  469. package/web/lab2/pr1(3).html +20 -0
  470. package/web/lab2/pr1(4).html +22 -0
  471. package/web/lab2/pr3.html +88 -0
  472. package/web/lab2/pri1(5).html +28 -0
  473. package/web/lab3/css/img/egypt.jpg +0 -0
  474. package/web/lab3/css/img/moon.jpg +0 -0
  475. package/web/lab3/css/img/paris.jpg +0 -0
  476. package/web/lab3/css/pr3a(2).css +18 -0
  477. package/web/lab3/css/pr3a.css +4 -0
  478. package/web/lab3/pr3a(2).html +20 -0
  479. package/web/lab3/pr3a.html +12 -0
  480. package/web/lab4/css/pra4(2).css +40 -0
  481. package/web/lab4/css/pra4.css +11 -0
  482. package/web/lab4/pr4a(2).html +40 -0
  483. package/web/lab4/pr4a.html +16 -0
  484. package/web/lab5/css/pra5.css +3 -0
  485. package/web/lab5/pra5.html +27 -0
  486. package/web/lab6/6.12.html +14 -0
  487. package/web/lab6/6.13.html +18 -0
  488. package/web/lab6/6.14.html +18 -0
  489. package/web/lab6/6.15.html +28 -0
  490. package/web/lab6/6.16.html +28 -0
  491. package/web/lab6/6.17.html +28 -0
  492. package/web/lab6/6.18.html +29 -0
  493. package/web/lab6/css/pra6.css +13 -0
  494. package/web/lab6/img1.png +0 -0
  495. package/web/lab6/img2.png +0 -0
  496. package/web/lab6/img3.png +0 -0
  497. package/web/lab6/img4.png +0 -0
  498. package/web/lab6/pra6(2).html +37 -0
  499. package/web/lab6/pra6.html +70 -0
  500. package/web//320/240/320/265/320/264/321/207/320/270/321/206/321/214.zip +0 -0
  501. package/web//321/201/320/260/320/271/321/202 /320/240/320/265/320/264/321/207/320/270/321/206/321/214 /320/234/320/272-197//320/240/320/265/320/264/321/207/320/270/321/206/321/214/1.html" +33 -0
  502. package/web//321/201/320/260/320/271/321/202 /320/240/320/265/320/264/321/207/320/270/321/206/321/214 /320/234/320/272-197//320/240/320/265/320/264/321/207/320/270/321/206/321/214/2.html" +37 -0
  503. package/web//321/201/320/260/320/271/321/202 /320/240/320/265/320/264/321/207/320/270/321/206/321/214 /320/234/320/272-197//320/240/320/265/320/264/321/207/320/270/321/206/321/214/3.html" +48 -0
  504. package/web//321/201/320/260/320/271/321/202 /320/240/320/265/320/264/321/207/320/270/321/206/321/214 /320/234/320/272-197//320/240/320/265/320/264/321/207/320/270/321/206/321/214/4.html" +71 -0
  505. package/web//321/201/320/260/320/271/321/202 /320/240/320/265/320/264/321/207/320/270/321/206/321/214 /320/234/320/272-197//320/240/320/265/320/264/321/207/320/270/321/206/321/214/5.html" +39 -0
  506. package/web//321/201/320/260/320/271/321/202 /320/240/320/265/320/264/321/207/320/270/321/206/321/214 /320/234/320/272-197//320/240/320/265/320/264/321/207/320/270/321/206/321/214/6.html" +43 -0
  507. package/web//321/201/320/260/320/271/321/202 /320/240/320/265/320/264/321/207/320/270/321/206/321/214 /320/234/320/272-197//320/240/320/265/320/264/321/207/320/270/321/206/321/214/css/style.css" +13 -0
  508. package/web//321/201/320/260/320/271/321/202 /320/240/320/265/320/264/321/207/320/270/321/206/321/214 /320/234/320/272-197//320/240/320/265/320/264/321/207/320/270/321/206/321/214/dov1.png +0 -0
  509. package/web//321/201/320/260/320/271/321/202 /320/240/320/265/320/264/321/207/320/270/321/206/321/214 /320/234/320/272-197//320/240/320/265/320/264/321/207/320/270/321/206/321/214/dov2.png +0 -0
  510. package/web//321/201/320/260/320/271/321/202 /320/240/320/265/320/264/321/207/320/270/321/206/321/214 /320/234/320/272-197//320/240/320/265/320/264/321/207/320/270/321/206/321/214/hobbi1.png +0 -0
  511. package/web//321/201/320/260/320/271/321/202 /320/240/320/265/320/264/321/207/320/270/321/206/321/214 /320/234/320/272-197//320/240/320/265/320/264/321/207/320/270/321/206/321/214/hobbi2.png +0 -0
  512. package/web//321/201/320/260/320/271/321/202 /320/240/320/265/320/264/321/207/320/270/321/206/321/214 /320/234/320/272-197//320/240/320/265/320/264/321/207/320/270/321/206/321/214/me.png +0 -0
  513. package/web//321/201/320/260/320/271/321/202 /320/240/320/265/320/264/321/207/320/270/321/206/321/214 /320/234/320/272-197//320/240/320/265/320/264/321/207/320/270/321/206/321/214//320/274/320/260/321/200/320/272/320/265/321/202/320/276/320/273/320/276/320/263(1).png +0 -0
  514. package/web//321/201/320/260/320/271/321/202 /320/240/320/265/320/264/321/207/320/270/321/206/321/214 /320/234/320/272-197//320/240/320/265/320/264/321/207/320/270/321/206/321/214//320/274/320/260/321/200/320/272/320/265/321/202/320/276/320/273/320/276/320/263(2).png +0 -0
  515. package/web//321/201/320/260/320/271/321/202 /320/240/320/265/320/264/321/207/320/270/321/206/321/214 /320/234/320/272-197//320/240/320/265/320/264/321/207/320/270/321/206/321/214//320/274/320/260/321/200/320/272/320/265/321/202/320/276/320/273/320/276/320/263(3).png +0 -0
  516. package//320/240/320/265/320/267/321/216/320/274/320/265 /320/262 /321/202/320/262/320/276/321/200/321/207 /321/201/321/202/320/270/320/273/320/265-/320/240/320/265/320/264/321/207/320/270/321/206 /320/234/320/272-197/css/img/me.jpg +0 -0
  517. package//320/240/320/265/320/267/321/216/320/274/320/265 /320/262 /321/202/320/262/320/276/321/200/321/207 /321/201/321/202/320/270/320/273/320/265-/320/240/320/265/320/264/321/207/320/270/321/206 /320/234/320/272-197/css/style.css" +196 -0
  518. package//320/240/320/265/320/267/321/216/320/274/320/265 /320/262 /321/202/320/262/320/276/321/200/321/207 /321/201/321/202/320/270/320/273/320/265-/320/240/320/265/320/264/321/207/320/270/321/206 /320/234/320/272-197/index.html" +39 -0
  519. package/README.md +0 -5
@@ -0,0 +1,123 @@
1
+ # install [![Build Status](https://travis-ci.org/benjamn/install.svg?branch=master)](https://travis-ci.org/benjamn/install) [![Greenkeeper badge](https://badges.greenkeeper.io/benjamn/install.svg)](https://greenkeeper.io/)
2
+
3
+ The [CommonJS module syntax](http://wiki.commonjs.org/wiki/Modules/1.1) is one of the most widely accepted conventions in the JavaScript ecosystem. Everyone seems to agree that `require` and `exports` are a reasonable way of expressing module dependencies and interfaces, and the tools for managing modular code are getting better all the time.
4
+
5
+ Much less of a consensus has developed around the best way to deliver CommonJS modules to a web browser, where the synchronous semantics of `require` pose a non-trivial implementation challenge. This module loader contributes to that confusion, yet also demonstrates that an amply-featured module loader need not stretch into the hundreds or thousands of lines.
6
+
7
+ Installation
8
+ ---
9
+ From NPM:
10
+
11
+ npm install install
12
+
13
+ From GitHub:
14
+
15
+ cd path/to/node_modules
16
+ git clone git://github.com/benjamn/install.git
17
+ cd install
18
+ npm install .
19
+
20
+ Usage
21
+ ---
22
+
23
+ The first step is to create an `install` function by calling the
24
+ `makeInstaller` method. Note that all of the options described below are
25
+ optional:
26
+
27
+ ```js
28
+ var install = require("install").makeInstaller({
29
+ // Optional list of file extensions to be appended to required module
30
+ // identifiers if they do not exactly match an installed module.
31
+ extensions: [".js", ".json"],
32
+
33
+ // If defined, the options.fallback function will be called when no
34
+ // installed module is found for a required module identifier. Often
35
+ // options.fallback will be implemented in terms of the native Node
36
+ // require function, which has the ability to load binary modules.
37
+ fallback,
38
+
39
+ // Boolean flag indicating whether the installed code will be running in
40
+ // a web browser.
41
+ browser,
42
+
43
+ // List of fields to look for in package.json files to determine the
44
+ // main entry module of the package. The first field listed here whose
45
+ // value is a string will be used to resolve the entry module. Defaults
46
+ // to just ["main"], or ["browser", "main"] if options.browser is true.
47
+ mainFields: ["browser", "main"],
48
+ });
49
+ ```
50
+
51
+ The second step is to install some modules by passing a nested tree of
52
+ objects and functions to the `install` function:
53
+
54
+ ```js
55
+ var require = install({
56
+ "main.js"(require, exports, module) {
57
+ // On the client, the "assert" module should be install-ed just like
58
+ // any other module. On the server, since "assert" is a built-in Node
59
+ // module, it may make sense to let the options.fallback function
60
+ // handle such requirements. Both ways work equally well.
61
+ var assert = require("assert");
62
+
63
+ assert.strictEqual(
64
+ // This require function uses the same lookup rules as Node, so it
65
+ // will find "package" in the "node_modules" directory below.
66
+ require("package").name,
67
+ "/node_modules/package/entry.js"
68
+ );
69
+
70
+ exports.name = module.id;
71
+ },
72
+
73
+ node_modules: {
74
+ package: {
75
+ // If package.json is not defined, a module called "index.js" will
76
+ // be used as the main entry point for the package. Otherwise the
77
+ // exports.main property will identify the entry point.
78
+ "package.json"(require, exports, module) {
79
+ exports.name = "package";
80
+ exports.version = "0.1.0";
81
+ exports.main = "entry.js";
82
+ },
83
+
84
+ "entry.js"(require, exports, module) {
85
+ exports.name = module.id;
86
+ }
87
+ }
88
+ }
89
+ });
90
+ ```
91
+
92
+ Note that the `install` function merely installs modules without
93
+ evaluating them, so the third and final step is to `require` any entry
94
+ point modules that you wish to evaluate:
95
+
96
+ ```js
97
+ console.log(require("./main").name);
98
+ // => "/main.js"
99
+ ```
100
+
101
+ This is the "root" `require` function returned by the `install`
102
+ function. If you're using the `install` package in a CommonJS environment
103
+ like Node, be careful that you don't overwrite the `require` function
104
+ provided by that system.
105
+
106
+ If you need to change the behavior of the `module` object that each module
107
+ function receives as its third parameter, the shared `Module` constructor
108
+ is exposed as a property of the `install` function returned by the
109
+ `makeInstaller` factory:
110
+
111
+ ```js
112
+ var install = makeInstaller(options);
113
+ var proto = install.Module.prototype;
114
+
115
+ // Wrap all Module.prototype.require calls with some sort of logging.
116
+ proto.require = wrapWithLogging(proto.require);
117
+
118
+ // Add a new method available to all modules via module.newMethod(...).
119
+ proto.newMethod = function () {...};
120
+ ```
121
+
122
+ Many more examples of how to use the `install` package can be found in the
123
+ [tests](https://github.com/benjamn/install/blob/master/test/run.js).
@@ -0,0 +1,556 @@
1
+ makeInstaller = function (options) {
2
+ "use strict";
3
+
4
+ options = options || {};
5
+
6
+ // These file extensions will be appended to required module identifiers
7
+ // if they do not exactly match an installed module.
8
+ var defaultExtensions = options.extensions || [".js", ".json"];
9
+
10
+ // If defined, the options.fallback function will be called when no
11
+ // installed module is found for a required module identifier. Often
12
+ // options.fallback will be implemented in terms of the native Node
13
+ // require function, which has the ability to load binary modules.
14
+ var fallback = options.fallback;
15
+
16
+ // List of fields to look for in package.json files to determine the
17
+ // main entry module of the package. The first field listed here whose
18
+ // value is a string will be used to resolve the entry module.
19
+ var mainFields = options.mainFields ||
20
+ // If options.mainFields is absent and options.browser is truthy,
21
+ // package resolution will prefer the "browser" field of package.json
22
+ // files to the "main" field. Note that this only supports
23
+ // string-valued "browser" fields for now, though in the future it
24
+ // might make sense to support the object version, a la browserify.
25
+ (options.browser ? ["browser", "main"] : ["main"]);
26
+
27
+ var hasOwn = {}.hasOwnProperty;
28
+ function strictHasOwn(obj, key) {
29
+ return isObject(obj) && isString(key) && hasOwn.call(obj, key);
30
+ }
31
+
32
+ // Cache for looking up File objects given absolute module identifiers.
33
+ // Invariants:
34
+ // filesByModuleId[module.id] === fileAppendId(root, module.id)
35
+ // filesByModuleId[module.id].module === module
36
+ var filesByModuleId = {};
37
+
38
+ // The file object representing the root directory of the installed
39
+ // module tree.
40
+ var root = new File("/", new File("/.."));
41
+ var rootRequire = makeRequire(root);
42
+
43
+ // Merges the given tree of directories and module factory functions
44
+ // into the tree of installed modules and returns a require function
45
+ // that behaves as if called from a module in the root directory.
46
+ function install(tree, options) {
47
+ if (isObject(tree)) {
48
+ fileMergeContents(root, tree, options);
49
+ }
50
+ return rootRequire;
51
+ }
52
+
53
+ // Replace this function to enable Module.prototype.prefetch.
54
+ install.fetch = function (ids) {
55
+ throw new Error("fetch not implemented");
56
+ };
57
+
58
+ // This constructor will be used to instantiate the module objects
59
+ // passed to module factory functions (i.e. the third argument after
60
+ // require and exports), and is exposed as install.Module in case the
61
+ // caller of makeInstaller wishes to modify Module.prototype.
62
+ function Module(id) {
63
+ this.id = id;
64
+
65
+ // The Node implementation of module.children unfortunately includes
66
+ // only those child modules that were imported for the first time by
67
+ // this parent module (i.e., child.parent === this).
68
+ this.children = [];
69
+
70
+ // This object is an install.js extension that includes all child
71
+ // modules imported by this module, even if this module is not the
72
+ // first to import them.
73
+ this.childrenById = {};
74
+ }
75
+
76
+ // Used to keep module.prefetch promise resolutions well-ordered.
77
+ var lastPrefetchPromise;
78
+
79
+ // May be shared by multiple sequential calls to module.prefetch.
80
+ // Initialized to {} only when necessary.
81
+ var missing;
82
+
83
+ Module.prototype.prefetch = function (id) {
84
+ var module = this;
85
+ var parentFile = getOwn(filesByModuleId, module.id);
86
+
87
+ lastPrefetchPromise = lastPrefetchPromise || Promise.resolve();
88
+ var previousPromise = lastPrefetchPromise;
89
+
90
+ function walk(module) {
91
+ var file = getOwn(filesByModuleId, module.id);
92
+ if (fileIsDynamic(file) && ! file.pending) {
93
+ file.pending = true;
94
+ missing = missing || {};
95
+
96
+ // These are the data that will be exposed to the install.fetch
97
+ // callback, so it's worth documenting each item with a comment.
98
+ missing[module.id] = {
99
+ // The CommonJS module object that will be exposed to this
100
+ // dynamic module when it is evaluated. Note that install.fetch
101
+ // could decide to populate module.exports directly, instead of
102
+ // fetching anything. In that case, install.fetch should omit
103
+ // this module from the tree that it produces.
104
+ module: file.module,
105
+ // List of module identifier strings imported by this module.
106
+ // Note that the missing object already contains all available
107
+ // dependencies (including transitive dependencies), so
108
+ // install.fetch should not need to traverse these dependencies
109
+ // in most cases; however, they may be useful for other reasons.
110
+ // Though the strings are unique, note that two different
111
+ // strings could resolve to the same module.
112
+ deps: Object.keys(file.deps),
113
+ // The options (if any) that were passed as the second argument
114
+ // to the install(tree, options) function when this stub was
115
+ // first registered. Typically contains options.extensions, but
116
+ // could contain any information appropriate for the entire tree
117
+ // as originally installed. These options will be automatically
118
+ // inherited by the newly fetched modules, so install.fetch
119
+ // should not need to modify them.
120
+ options: file.options,
121
+ // Any stub data included in the array notation from the
122
+ // original entry for this dynamic module. Typically contains
123
+ // "main" and/or "browser" fields for package.json files, and is
124
+ // otherwise undefined.
125
+ stub: file.stub
126
+ };
127
+
128
+ each(file.deps, function (parentId, id) {
129
+ fileResolve(file, id);
130
+ });
131
+
132
+ each(module.childrenById, walk);
133
+ }
134
+ }
135
+
136
+ return lastPrefetchPromise = new Promise(function (resolve) {
137
+ var absChildId = module.resolve(id);
138
+ each(module.childrenById, walk);
139
+ resolve(absChildId);
140
+
141
+ }).then(function (absChildId) {
142
+ // Grab the current missing object and fetch its contents.
143
+ var toBeFetched = missing;
144
+ missing = null;
145
+
146
+ function clearPending() {
147
+ if (toBeFetched) {
148
+ Object.keys(toBeFetched).forEach(function (id) {
149
+ getOwn(filesByModuleId, id).pending = false;
150
+ });
151
+ }
152
+ }
153
+
154
+ return new Promise(function (resolve) {
155
+ // The install.fetch function takes an object mapping missing
156
+ // dynamic module identifiers to options objects, and should
157
+ // return a Promise that resolves to a module tree that can be
158
+ // installed. As an optimization, if there were no missing dynamic
159
+ // modules, then we can skip calling install.fetch entirely.
160
+ resolve(toBeFetched && install.fetch(toBeFetched));
161
+
162
+ }).then(function (tree) {
163
+ function both() {
164
+ install(tree);
165
+ clearPending();
166
+ return absChildId;
167
+ }
168
+
169
+ // Although we want multiple install.fetch calls to run in
170
+ // parallel, it is important that the promises returned by
171
+ // module.prefetch are resolved in the same order as the original
172
+ // calls to module.prefetch, because previous fetches may include
173
+ // modules assumed to exist by more recent module.prefetch calls.
174
+ // Whether previousPromise was resolved or rejected, carry on with
175
+ // the installation regardless.
176
+ return previousPromise.then(both, both);
177
+
178
+ }, function (error) {
179
+ // Fixes https://github.com/meteor/meteor/issues/10182.
180
+ clearPending();
181
+ throw error;
182
+ });
183
+ });
184
+ };
185
+
186
+ install.Module = Module;
187
+
188
+ function getOwn(obj, key) {
189
+ return strictHasOwn(obj, key) && obj[key];
190
+ }
191
+
192
+ function isObject(value) {
193
+ return value !== null && typeof value === "object";
194
+ }
195
+
196
+ function isFunction(value) {
197
+ return typeof value === "function";
198
+ }
199
+
200
+ function isString(value) {
201
+ return typeof value === "string";
202
+ }
203
+
204
+ function makeMissingError(id) {
205
+ return new Error("Cannot find module '" + id + "'");
206
+ }
207
+
208
+ Module.prototype.resolve = function (id) {
209
+ var file = fileResolve(filesByModuleId[this.id], id);
210
+ if (file) return file.module.id;
211
+ var error = makeMissingError(id);
212
+ if (fallback && isFunction(fallback.resolve)) {
213
+ return fallback.resolve(id, this.id, error);
214
+ }
215
+ throw error;
216
+ };
217
+
218
+ Module.prototype.require = function require(id) {
219
+ var result = fileResolve(filesByModuleId[this.id], id);
220
+ if (result) {
221
+ return fileEvaluate(result, this);
222
+ }
223
+
224
+ var error = makeMissingError(id);
225
+
226
+ if (isFunction(fallback)) {
227
+ return fallback(
228
+ id, // The missing module identifier.
229
+ this.id, // ID of the parent module.
230
+ error // The error we would have thrown.
231
+ );
232
+ }
233
+
234
+ throw error;
235
+ };
236
+
237
+ function makeRequire(file) {
238
+ var module = file.module;
239
+
240
+ function require(id) {
241
+ return module.require(id);
242
+ }
243
+
244
+ require.extensions = fileGetExtensions(file).slice(0);
245
+
246
+ require.resolve = function resolve(id) {
247
+ return module.resolve(id);
248
+ };
249
+
250
+ return require;
251
+ }
252
+
253
+ // File objects represent either directories or modules that have been
254
+ // installed. When a `File` respresents a directory, its `.contents`
255
+ // property is an object containing the names of the files (or
256
+ // directories) that it contains. When a `File` represents a module, its
257
+ // `.contents` property is a function that can be invoked with the
258
+ // appropriate `(require, exports, module)` arguments to evaluate the
259
+ // module. If the `.contents` property is a string, that string will be
260
+ // resolved as a module identifier, and the exports of the resulting
261
+ // module will provide the exports of the original file. The `.parent`
262
+ // property of a File is either a directory `File` or `null`. Note that
263
+ // a child may claim another `File` as its parent even if the parent
264
+ // does not have an entry for that child in its `.contents` object.
265
+ // This is important for implementing anonymous files, and preventing
266
+ // child modules from using `../relative/identifier` syntax to examine
267
+ // unrelated modules.
268
+ function File(moduleId, parent) {
269
+ var file = this;
270
+
271
+ // Link to the parent file.
272
+ file.parent = parent = parent || null;
273
+
274
+ // The module object for this File, which will eventually boast an
275
+ // .exports property when/if the file is evaluated.
276
+ file.module = new Module(moduleId);
277
+ filesByModuleId[moduleId] = file;
278
+
279
+ // The .contents of the file can be either (1) an object, if the file
280
+ // represents a directory containing other files; (2) a factory
281
+ // function, if the file represents a module that can be imported; (3)
282
+ // a string, if the file is an alias for another file; or (4) null, if
283
+ // the file's contents are not (yet) available.
284
+ file.contents = null;
285
+
286
+ // Set of module identifiers imported by this module. Note that this
287
+ // set is not necessarily complete, so don't rely on it unless you
288
+ // know what you're doing.
289
+ file.deps = {};
290
+ }
291
+
292
+ function fileEvaluate(file, parentModule) {
293
+ var module = file.module;
294
+ if (! strictHasOwn(module, "exports")) {
295
+ var contents = file.contents;
296
+ if (! contents) {
297
+ // If this file was installed with array notation, and the array
298
+ // contained one or more objects but no functions, then the combined
299
+ // properties of the objects are treated as a temporary stub for
300
+ // file.module.exports. This is particularly important for partial
301
+ // package.json modules, so that the resolution logic can know the
302
+ // value of the "main" and/or "browser" fields, at least, even if
303
+ // the rest of the package.json file is not (yet) available.
304
+ if (file.stub) {
305
+ return file.stub;
306
+ }
307
+
308
+ throw makeMissingError(module.id);
309
+ }
310
+
311
+ if (parentModule) {
312
+ module.parent = parentModule;
313
+ var children = parentModule.children;
314
+ if (Array.isArray(children)) {
315
+ children.push(module);
316
+ }
317
+ }
318
+
319
+ contents(
320
+ makeRequire(file),
321
+ // If the file had a .stub, reuse the same object for exports.
322
+ module.exports = file.stub || {},
323
+ module,
324
+ file.module.id,
325
+ file.parent.module.id
326
+ );
327
+
328
+ module.loaded = true;
329
+ }
330
+
331
+ // The module.runModuleSetters method will be deprecated in favor of
332
+ // just module.runSetters: https://github.com/benjamn/reify/pull/160
333
+ var runSetters = module.runSetters || module.runModuleSetters;
334
+ if (isFunction(runSetters)) {
335
+ runSetters.call(module);
336
+ }
337
+
338
+ return module.exports;
339
+ }
340
+
341
+ function fileIsDirectory(file) {
342
+ return file && isObject(file.contents);
343
+ }
344
+
345
+ function fileIsDynamic(file) {
346
+ return file && file.contents === null;
347
+ }
348
+
349
+ function fileMergeContents(file, contents, options) {
350
+ if (Array.isArray(contents)) {
351
+ contents.forEach(function (item) {
352
+ if (isString(item)) {
353
+ file.deps[item] = file.module.id;
354
+ } else if (isFunction(item)) {
355
+ contents = item;
356
+ } else if (isObject(item)) {
357
+ file.stub = file.stub || {};
358
+ each(item, function (value, key) {
359
+ file.stub[key] = value;
360
+ });
361
+ }
362
+ });
363
+
364
+ if (! isFunction(contents)) {
365
+ // If the array did not contain a function, merge nothing.
366
+ contents = null;
367
+ }
368
+
369
+ } else if (! isFunction(contents) &&
370
+ ! isString(contents) &&
371
+ ! isObject(contents)) {
372
+ // If contents is neither an array nor a function nor a string nor
373
+ // an object, just give up and merge nothing.
374
+ contents = null;
375
+ }
376
+
377
+ if (contents) {
378
+ file.contents = file.contents || (isObject(contents) ? {} : contents);
379
+ if (isObject(contents) && fileIsDirectory(file)) {
380
+ each(contents, function (value, key) {
381
+ if (key === "..") {
382
+ child = file.parent;
383
+
384
+ } else {
385
+ var child = getOwn(file.contents, key);
386
+
387
+ if (! child) {
388
+ child = file.contents[key] = new File(
389
+ file.module.id.replace(/\/*$/, "/") + key,
390
+ file
391
+ );
392
+
393
+ child.options = options;
394
+ }
395
+ }
396
+
397
+ fileMergeContents(child, value, options);
398
+ });
399
+ }
400
+ }
401
+ }
402
+
403
+ function each(obj, callback, context) {
404
+ Object.keys(obj).forEach(function (key) {
405
+ callback.call(this, obj[key], key);
406
+ }, context);
407
+ }
408
+
409
+ function fileGetExtensions(file) {
410
+ return file.options
411
+ && file.options.extensions
412
+ || defaultExtensions;
413
+ }
414
+
415
+ function fileAppendIdPart(file, part, extensions) {
416
+ // Always append relative to a directory.
417
+ while (file && ! fileIsDirectory(file)) {
418
+ file = file.parent;
419
+ }
420
+
421
+ if (! file || ! part || part === ".") {
422
+ return file;
423
+ }
424
+
425
+ if (part === "..") {
426
+ return file.parent;
427
+ }
428
+
429
+ var exactChild = getOwn(file.contents, part);
430
+
431
+ // Only consider multiple file extensions if this part is the last
432
+ // part of a module identifier and not equal to `.` or `..`, and there
433
+ // was no exact match or the exact match was a directory.
434
+ if (extensions && (! exactChild || fileIsDirectory(exactChild))) {
435
+ for (var e = 0; e < extensions.length; ++e) {
436
+ var child = getOwn(file.contents, part + extensions[e]);
437
+ if (child && ! fileIsDirectory(child)) {
438
+ return child;
439
+ }
440
+ }
441
+ }
442
+
443
+ return exactChild;
444
+ }
445
+
446
+ function fileAppendId(file, id, extensions) {
447
+ var parts = id.split("/");
448
+
449
+ // Use `Array.prototype.every` to terminate iteration early if
450
+ // `fileAppendIdPart` returns a falsy value.
451
+ parts.every(function (part, i) {
452
+ return file = i < parts.length - 1
453
+ ? fileAppendIdPart(file, part)
454
+ : fileAppendIdPart(file, part, extensions);
455
+ });
456
+
457
+ return file;
458
+ }
459
+
460
+ function recordChild(parentModule, childFile) {
461
+ var childModule = childFile && childFile.module;
462
+ if (parentModule && childModule) {
463
+ parentModule.childrenById[childModule.id] = childModule;
464
+ }
465
+ }
466
+
467
+ function fileResolve(file, id, parentModule, seenDirFiles) {
468
+ var parentModule = parentModule || file.module;
469
+ var extensions = fileGetExtensions(file);
470
+
471
+ file =
472
+ // Absolute module identifiers (i.e. those that begin with a `/`
473
+ // character) are interpreted relative to the root directory, which
474
+ // is a slight deviation from Node, which has access to the entire
475
+ // file system.
476
+ id.charAt(0) === "/" ? fileAppendId(root, id, extensions) :
477
+ // Relative module identifiers are interpreted relative to the
478
+ // current file, naturally.
479
+ id.charAt(0) === "." ? fileAppendId(file, id, extensions) :
480
+ // Top-level module identifiers are interpreted as referring to
481
+ // packages in `node_modules` directories.
482
+ nodeModulesLookup(file, id, extensions);
483
+
484
+ // If the identifier resolves to a directory, we use the same logic as
485
+ // Node to find an `index.js` or `package.json` file to evaluate.
486
+ while (fileIsDirectory(file)) {
487
+ seenDirFiles = seenDirFiles || [];
488
+
489
+ // If the "main" field of a `package.json` file resolves to a
490
+ // directory we've already considered, then we should not attempt to
491
+ // read the same `package.json` file again. Using an array as a set
492
+ // is acceptable here because the number of directories to consider
493
+ // is rarely greater than 1 or 2. Also, using indexOf allows us to
494
+ // store File objects instead of strings.
495
+ if (seenDirFiles.indexOf(file) < 0) {
496
+ seenDirFiles.push(file);
497
+
498
+ var pkgJsonFile = fileAppendIdPart(file, "package.json");
499
+ var pkg = pkgJsonFile && fileEvaluate(pkgJsonFile, parentModule);
500
+ var mainFile, resolved = pkg && mainFields.some(function (name) {
501
+ var main = pkg[name];
502
+ if (isString(main)) {
503
+ // The "main" field of package.json does not have to begin
504
+ // with ./ to be considered relative, so first we try
505
+ // simply appending it to the directory path before
506
+ // falling back to a full fileResolve, which might return
507
+ // a package from a node_modules directory.
508
+ return mainFile = fileAppendId(file, main, extensions) ||
509
+ fileResolve(file, main, parentModule, seenDirFiles);
510
+ }
511
+ });
512
+
513
+ if (resolved && mainFile) {
514
+ file = mainFile;
515
+ recordChild(parentModule, pkgJsonFile);
516
+ // The fileAppendId call above may have returned a directory,
517
+ // so continue the loop to make sure we resolve it to a
518
+ // non-directory file.
519
+ continue;
520
+ }
521
+ }
522
+
523
+ // If we didn't find a `package.json` file, or it didn't have a
524
+ // resolvable `.main` property, the only possibility left to
525
+ // consider is that this directory contains an `index.js` module.
526
+ // This assignment almost always terminates the while loop, because
527
+ // there's very little chance `fileIsDirectory(file)` will be true
528
+ // for `fileAppendIdPart(file, "index", extensions)`. However, in
529
+ // principle it is remotely possible that a file called `index.js`
530
+ // could be a directory instead of a file.
531
+ file = fileAppendIdPart(file, "index", extensions);
532
+ }
533
+
534
+ if (file && isString(file.contents)) {
535
+ file = fileResolve(file, file.contents, parentModule, seenDirFiles);
536
+ }
537
+
538
+ recordChild(parentModule, file);
539
+
540
+ return file;
541
+ };
542
+
543
+ function nodeModulesLookup(file, id, extensions) {
544
+ for (var resolved; file && ! resolved; file = file.parent) {
545
+ resolved = fileIsDirectory(file) &&
546
+ fileAppendId(file, "node_modules/" + id, extensions);
547
+ }
548
+ return resolved;
549
+ }
550
+
551
+ return install;
552
+ };
553
+
554
+ if (typeof exports === "object") {
555
+ exports.makeInstaller = makeInstaller;
556
+ }
@@ -0,0 +1 @@
1
+ makeInstaller=function(n){"use strict";var t=(n=n||{}).extensions||[".js",".json"],e=n.fallback,r=n.mainFields||(n.browser?["browser","main"]:["main"]),o={}.hasOwnProperty;function i(n,t){return p(n)&&m(t)&&o.call(n,t)}var u,s,c={},f=new w("/",new w("/..")),l=b(f);function a(n,t){return p(n)&&function n(t,e,r){Array.isArray(e)?(e.forEach(function(n){m(n)?t.deps[n]=t.module.id:v(n)?e=n:p(n)&&(t.stub=t.stub||{},k(n,function(n,e){t.stub[e]=n}))}),v(e)||(e=null)):v(e)||m(e)||p(e)||(e=null);e&&(t.contents=t.contents||(p(e)?{}:e),p(e)&&j(t)&&k(e,function(e,o){if(".."===o)i=t.parent;else{var i=h(t.contents,o);i||((i=t.contents[o]=new w(t.module.id.replace(/\/*$/,"/")+o,t)).options=r)}n(i,e,r)}))}(f,n,t),l}function d(n){this.id=n,this.children=[],this.childrenById={}}function h(n,t){return i(n,t)&&n[t]}function p(n){return null!==n&&"object"==typeof n}function v(n){return"function"==typeof n}function m(n){return"string"==typeof n}function y(n){return new Error("Cannot find module '"+n+"'")}function b(n){var t=n.module;function e(n){return t.require(n)}return e.extensions=g(n).slice(0),e.resolve=function(n){return t.resolve(n)},e}function w(n,t){this.parent=t=t||null,this.module=new d(n),c[n]=this,this.contents=null,this.deps={}}function x(n,t){var e=n.module;if(!i(e,"exports")){var r=n.contents;if(!r){if(n.stub)return n.stub;throw y(e.id)}if(t){e.parent=t;var o=t.children;Array.isArray(o)&&o.push(e)}r(b(n),e.exports=n.stub||{},e,n.module.id,n.parent.module.id),e.loaded=!0}var u=e.runSetters||e.runModuleSetters;return v(u)&&u.call(e),e.exports}function j(n){return n&&p(n.contents)}function k(n,t,e){Object.keys(n).forEach(function(e){t.call(this,n[e],e)},e)}function g(n){return n.options&&n.options.extensions||t}function I(n,t,e){for(;n&&!j(n);)n=n.parent;if(!n||!t||"."===t)return n;if(".."===t)return n.parent;var r=h(n.contents,t);if(e&&(!r||j(r)))for(var o=0;o<e.length;++o){var i=h(n.contents,t+e[o]);if(i&&!j(i))return i}return r}function A(n,t,e){var r=t.split("/");return r.every(function(t,o){return n=o<r.length-1?I(n,t):I(n,t,e)}),n}function E(n,t){var e=t&&t.module;n&&e&&(n.childrenById[e.id]=e)}function O(n,t,e,o){e=e||n.module;var i=g(n);for(n="/"===t.charAt(0)?A(f,t,i):"."===t.charAt(0)?A(n,t,i):function(n,t,e){for(var r;n&&!r;n=n.parent)r=j(n)&&A(n,"node_modules/"+t,e);return r}(n,t,i);j(n);){if((o=o||[]).indexOf(n)<0){o.push(n);var u,s=I(n,"package.json"),c=s&&x(s,e);if(c&&r.some(function(t){var r=c[t];if(m(r))return u=A(n,r,i)||O(n,r,e,o)})&&u){n=u,E(e,s);continue}}n=I(n,"index",i)}return n&&m(n.contents)&&(n=O(n,n.contents,e,o)),E(e,n),n}return a.fetch=function(n){throw new Error("fetch not implemented")},d.prototype.prefetch=function(n){var t=this,e=(h(c,t.id),u=u||Promise.resolve());function r(n){var t=h(c,n.id);(function(n){return n&&null===n.contents})(t)&&!t.pending&&(t.pending=!0,(s=s||{})[n.id]={module:t.module,deps:Object.keys(t.deps),options:t.options,stub:t.stub},k(t.deps,function(n,e){O(t,e)}),k(n.childrenById,r))}return u=new Promise(function(e){var o=t.resolve(n);k(t.childrenById,r),e(o)}).then(function(n){var t=s;function r(){t&&Object.keys(t).forEach(function(n){h(c,n).pending=!1})}return s=null,new Promise(function(n){n(t&&a.fetch(t))}).then(function(t){function o(){return a(t),r(),n}return e.then(o,o)},function(n){throw r(),n})})},a.Module=d,d.prototype.resolve=function(n){var t=O(c[this.id],n);if(t)return t.module.id;var r=y(n);if(e&&v(e.resolve))return e.resolve(n,this.id,r);throw r},d.prototype.require=function(n){var t=O(c[this.id],n);if(t)return x(t,this);var r=y(n);if(v(e))return e(n,this.id,r);throw r},a},"object"==typeof exports&&(exports.makeInstaller=makeInstaller);