luckyphoenix 1.0.5 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (588) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +4 -4
  3. package/alist-web/README.md +34 -0
  4. package/alist-web/assets/2fa-legacy.3350d44d.js +1 -0
  5. package/alist-web/assets/2fa.0dab7189.js +1 -0
  6. package/alist-web/assets/About-legacy.e1597551.js +1 -0
  7. package/alist-web/assets/About.11e2f3bb.js +1 -0
  8. package/alist-web/assets/AddOrEdit-legacy.2a02db88.js +1 -0
  9. package/alist-web/assets/AddOrEdit-legacy.432f6c0e.js +1 -0
  10. package/alist-web/assets/AddOrEdit-legacy.6ac6f516.js +1 -0
  11. package/alist-web/assets/AddOrEdit.79c069f9.js +1 -0
  12. package/alist-web/assets/AddOrEdit.e641a9bd.js +1 -0
  13. package/alist-web/assets/AddOrEdit.f0ec5bf9.js +1 -0
  14. package/alist-web/assets/Common-legacy.5144e9c0.js +1 -0
  15. package/alist-web/assets/Common.6eff9060.js +1 -0
  16. package/alist-web/assets/Copy-legacy.3d846482.js +1 -0
  17. package/alist-web/assets/Copy.d1980101.js +1 -0
  18. package/alist-web/assets/DeletePopover-legacy.1906395c.js +1 -0
  19. package/alist-web/assets/DeletePopover.f7887d88.js +1 -0
  20. package/alist-web/assets/File-legacy.889dd355.js +1 -0
  21. package/alist-web/assets/File.23490613.js +1 -0
  22. package/alist-web/assets/Folder-legacy.a4550db5.js +29 -0
  23. package/alist-web/assets/Folder.7e9202ae.js +179 -0
  24. package/alist-web/assets/Folder.b511ba9e.css +1 -0
  25. package/alist-web/assets/FolderTree-legacy.2cffdb64.js +1 -0
  26. package/alist-web/assets/FolderTree.3d6d889d.js +1 -0
  27. package/alist-web/assets/Grid-legacy.a63ef469.js +1 -0
  28. package/alist-web/assets/Grid.7759c684.js +1 -0
  29. package/alist-web/assets/GridItem-legacy.2300a556.js +1 -0
  30. package/alist-web/assets/GridItem.5502f946.js +1 -0
  31. package/alist-web/assets/ImageWithError-legacy.184872e5.js +1 -0
  32. package/alist-web/assets/ImageWithError.fbebe083.js +1 -0
  33. package/alist-web/assets/Images-legacy.47953965.js +1 -0
  34. package/alist-web/assets/Images.cc1e423a.js +1 -0
  35. package/alist-web/assets/Layout-legacy.bbe308ea.js +1 -0
  36. package/alist-web/assets/Layout.683e33e3.js +6 -0
  37. package/alist-web/assets/List-legacy.dc5a2a38.js +1 -0
  38. package/alist-web/assets/List.249d43e3.js +1 -0
  39. package/alist-web/assets/Messenger-legacy.15747cf4.js +1 -0
  40. package/alist-web/assets/Messenger.0de50ee8.js +1 -0
  41. package/alist-web/assets/Metas-legacy.9a37ad69.js +1 -0
  42. package/alist-web/assets/Metas.94282135.js +1 -0
  43. package/alist-web/assets/Other-legacy.1defd90b.js +1 -0
  44. package/alist-web/assets/Other.c698471d.js +1 -0
  45. package/alist-web/assets/PackageDownload-legacy.13e43bb9.js +1 -0
  46. package/alist-web/assets/PackageDownload.89e4ecc4.js +1 -0
  47. package/alist-web/assets/Paginator-legacy.6f9f1dcb.js +1 -0
  48. package/alist-web/assets/Paginator.758bcfa3.js +1 -0
  49. package/alist-web/assets/Password-legacy.5e5cbd20.js +1 -0
  50. package/alist-web/assets/Password.500d1886.js +1 -0
  51. package/alist-web/assets/Profile-legacy.ccf1ddd4.js +1 -0
  52. package/alist-web/assets/Profile.33671ffe.js +1 -0
  53. package/alist-web/assets/ResponsiveGrid-legacy.d58d4dfe.js +1 -0
  54. package/alist-web/assets/ResponsiveGrid.04e247e9.js +1 -0
  55. package/alist-web/assets/S3-legacy.fb41a1b8.js +1 -0
  56. package/alist-web/assets/S3.135ba8ad.js +1 -0
  57. package/alist-web/assets/SettingItem-legacy.51bf5808.js +1 -0
  58. package/alist-web/assets/SettingItem.d9757149.js +1 -0
  59. package/alist-web/assets/SourceHanSansCN-Bold.b5627435.woff2 +0 -0
  60. package/alist-web/assets/Storages-legacy.6fe86e3a.js +1 -0
  61. package/alist-web/assets/Storages.22e89c36.js +1 -0
  62. package/alist-web/assets/Tasks-legacy.bcf4e457.js +1 -0
  63. package/alist-web/assets/Tasks.f607862a.js +1 -0
  64. package/alist-web/assets/TimesNewRoman.d9fb32eb.ttf +0 -0
  65. package/alist-web/assets/Upload-legacy.7dd2be21.js +1 -0
  66. package/alist-web/assets/Upload-legacy.cb936202.js +1 -0
  67. package/alist-web/assets/Upload.4c54bcbf.js +1 -0
  68. package/alist-web/assets/Upload.d35bb47b.js +1 -0
  69. package/alist-web/assets/Users-legacy.b992a339.js +1 -0
  70. package/alist-web/assets/Users.7eb39296.js +1 -0
  71. package/alist-web/assets/Wether-legacy.66b7b0d3.js +1 -0
  72. package/alist-web/assets/Wether.f17d6a97.js +1 -0
  73. package/alist-web/assets/_commonjs-dynamic-modules-legacy.cf19cda3.js +1 -0
  74. package/alist-web/assets/_commonjs-dynamic-modules.30ae7933.js +1 -0
  75. package/alist-web/assets/aliyun_office-legacy.7e1c4ff6.js +1 -0
  76. package/alist-web/assets/aliyun_office.627eb2ac.js +1 -0
  77. package/alist-web/assets/aliyun_video-legacy.dfd303c5.js +1 -0
  78. package/alist-web/assets/aliyun_video.681fb5ee.js +1 -0
  79. package/alist-web/assets/asciinema-legacy.554330ec.js +1 -0
  80. package/alist-web/assets/asciinema.53412307.css +1 -0
  81. package/alist-web/assets/asciinema.a6e925e9.js +7 -0
  82. package/alist-web/assets/audio-legacy.d6ef56f6.js +1 -0
  83. package/alist-web/assets/audio.0cad5cce.js +154 -0
  84. package/alist-web/assets/audio.e5b5af14.css +1 -0
  85. package/alist-web/assets/backup-restore-legacy.f4c8daf0.js +1 -0
  86. package/alist-web/assets/backup-restore.db700ca0.js +1 -0
  87. package/alist-web/assets/entry-legacy.01f22349.js +1 -0
  88. package/alist-web/assets/entry-legacy.31390e6c.js +1 -0
  89. package/alist-web/assets/entry-legacy.5119e4e8.js +1 -0
  90. package/alist-web/assets/entry-legacy.d3b909f7.js +1 -0
  91. package/alist-web/assets/entry-legacy.e017de3e.js +1 -0
  92. package/alist-web/assets/entry-legacy.eec15c4b.js +1 -0
  93. package/alist-web/assets/entry-legacy.fa23a37d.js +1 -0
  94. package/alist-web/assets/entry.2eaf5bb3.js +5 -0
  95. package/alist-web/assets/entry.371138c7.js +7 -0
  96. package/alist-web/assets/entry.5c41c532.js +5 -0
  97. package/alist-web/assets/entry.6cce3889.js +5 -0
  98. package/alist-web/assets/entry.8acdb7f9.js +9 -0
  99. package/alist-web/assets/entry.abb9e6ed.js +5 -0
  100. package/alist-web/assets/entry.e83ea613.js +6 -0
  101. package/alist-web/assets/helper-legacy.646eb2d9.js +1 -0
  102. package/alist-web/assets/helper.d54883e3.js +1 -0
  103. package/alist-web/assets/hls-legacy.9e0f7edb.js +379 -0
  104. package/alist-web/assets/hls.1623c369.js +49 -0
  105. package/alist-web/assets/html-legacy.fa26963f.js +1 -0
  106. package/alist-web/assets/html.8b79f6ca.js +1 -0
  107. package/alist-web/assets/icon-legacy.2d7c0a16.js +1 -0
  108. package/alist-web/assets/icon.94f94d81.js +37 -0
  109. package/alist-web/assets/image-legacy.236a9cca.js +1 -0
  110. package/alist-web/assets/image.82ca8574.js +1 -0
  111. package/alist-web/assets/index-legacy.0bd3a7f2.js +1 -0
  112. package/alist-web/assets/index-legacy.40b50240.js +1 -0
  113. package/alist-web/assets/index-legacy.61172c95.js +1 -0
  114. package/alist-web/assets/index-legacy.840e3d82.js +18 -0
  115. package/alist-web/assets/index-legacy.91fe7355.js +1 -0
  116. package/alist-web/assets/index-legacy.a7c40fe3.js +22 -0
  117. package/alist-web/assets/index-legacy.d72e643a.js +1 -0
  118. package/alist-web/assets/index-legacy.efef9df2.js +1 -0
  119. package/alist-web/assets/index-legacy.fb7fb711.js +1 -0
  120. package/alist-web/assets/index.0adfc44b.js +1 -0
  121. package/alist-web/assets/index.26f5b473.js +14 -0
  122. package/alist-web/assets/index.72e3f724.js +1 -0
  123. package/alist-web/assets/index.7409b67a.js +1 -0
  124. package/alist-web/assets/index.952b63b2.js +1 -0
  125. package/alist-web/assets/index.afa471fc.js +1 -0
  126. package/alist-web/assets/index.c15f7469.js +2 -0
  127. package/alist-web/assets/index.c4c82a28.css +1 -0
  128. package/alist-web/assets/index.dcae211e.js +1 -0
  129. package/alist-web/assets/index.fae3cea4.js +333 -0
  130. package/alist-web/assets/indexes-legacy.2c89d2d8.js +1 -0
  131. package/alist-web/assets/indexes.9cb6f537.js +2 -0
  132. package/alist-web/assets/ipa-legacy.7a49e0e2.js +1 -0
  133. package/alist-web/assets/ipa.97543f5f.js +1 -0
  134. package/alist-web/assets/item_type-legacy.d1f1c701.js +1 -0
  135. package/alist-web/assets/item_type.be442da4.js +1 -0
  136. package/alist-web/assets/lg.22b72ba5.ttf +0 -0
  137. package/alist-web/assets/lg.f2fe1c00.svg +54 -0
  138. package/alist-web/assets/lg.fefc5c0d.woff +0 -0
  139. package/alist-web/assets/loading.298ad3ff.gif +0 -0
  140. package/alist-web/assets/markdown-legacy.164943d8.js +1 -0
  141. package/alist-web/assets/markdown.3a932f53.js +1 -0
  142. package/alist-web/assets/markdown_with_word_wrap-legacy.5e032546.js +1 -0
  143. package/alist-web/assets/markdown_with_word_wrap.0efe2540.js +1 -0
  144. package/alist-web/assets/offline_download-legacy.11c4744c.js +1 -0
  145. package/alist-web/assets/offline_download.940ca54b.js +1 -0
  146. package/alist-web/assets/plist-legacy.c76fc720.js +1 -0
  147. package/alist-web/assets/plist.3c9cbb1a.js +1 -0
  148. package/alist-web/assets/polyfills-legacy.5f28c7ae.js +1 -0
  149. package/alist-web/assets/subtitles-octopus-worker.62892886.wasm +0 -0
  150. package/alist-web/assets/subtitles-octopus-worker.f95f2186.js +1 -0
  151. package/alist-web/assets/text-editor-legacy.6e126724.js +1 -0
  152. package/alist-web/assets/text-editor.45600bb2.js +11 -0
  153. package/alist-web/assets/url-legacy.e95c5b8b.js +1 -0
  154. package/alist-web/assets/url.f7914d75.js +1 -0
  155. package/alist-web/assets/useTitle-legacy.e942225f.js +1 -0
  156. package/alist-web/assets/useTitle.630c0b7f.js +1 -0
  157. package/alist-web/assets/video-legacy.5198eeb8.js +135 -0
  158. package/alist-web/assets/video.afae2b68.js +9 -0
  159. package/alist-web/assets/video360-legacy.227ed7df.js +16 -0
  160. package/alist-web/assets/video360.c8385eb2.js +18 -0
  161. package/alist-web/assets/video360.f0192288.css +1 -0
  162. package/alist-web/assets/video_box-legacy.d60b6928.js +7 -0
  163. package/alist-web/assets/video_box.bfb0d4a5.js +18 -0
  164. package/alist-web/assets/webauthn-json.browser-ponyfill-legacy.8ddd819a.js +1 -0
  165. package/alist-web/assets/webauthn-json.browser-ponyfill.1c672167.js +1 -0
  166. package/alist-web/images/figplayer.webp +0 -0
  167. package/alist-web/images/fileball.webp +0 -0
  168. package/alist-web/images/iina.webp +0 -0
  169. package/alist-web/images/infuse.webp +0 -0
  170. package/alist-web/images/mxplayer-pro.webp +0 -0
  171. package/alist-web/images/mxplayer.webp +0 -0
  172. package/alist-web/images/nplayer.webp +0 -0
  173. package/alist-web/images/omniplayer.webp +0 -0
  174. package/alist-web/images/potplayer.webp +0 -0
  175. package/alist-web/images/vlc.webp +0 -0
  176. package/alist-web/index.html +81 -0
  177. package/alist-web/package.json +95 -0
  178. package/alist-web/static/epub.js/epub.min.js +1 -0
  179. package/alist-web/static/epub.js/jszip.min.js +13 -0
  180. package/alist-web/static/epub.js/v0.3.93 +0 -0
  181. package/alist-web/static/epub.js/viewer.html +467 -0
  182. package/alist-web/static/manifest.json +13 -0
  183. package/alist-web/static/pdf.js/build/pdf.mjs +22873 -0
  184. package/alist-web/static/pdf.js/build/pdf.mjs.map +1 -0
  185. package/alist-web/static/pdf.js/build/pdf.sandbox.mjs +218 -0
  186. package/alist-web/static/pdf.js/build/pdf.sandbox.mjs.map +1 -0
  187. package/alist-web/static/pdf.js/build/pdf.worker.mjs +58008 -0
  188. package/alist-web/static/pdf.js/build/pdf.worker.mjs.map +1 -0
  189. package/alist-web/static/pdf.js/v5.3.93 +0 -0
  190. package/alist-web/static/pdf.js/web/cmaps/78-EUC-H.bcmap +0 -0
  191. package/alist-web/static/pdf.js/web/cmaps/78-EUC-V.bcmap +0 -0
  192. package/alist-web/static/pdf.js/web/cmaps/78-H.bcmap +0 -0
  193. package/alist-web/static/pdf.js/web/cmaps/78-RKSJ-H.bcmap +0 -0
  194. package/alist-web/static/pdf.js/web/cmaps/78-RKSJ-V.bcmap +0 -0
  195. package/alist-web/static/pdf.js/web/cmaps/78-V.bcmap +0 -0
  196. package/alist-web/static/pdf.js/web/cmaps/78ms-RKSJ-H.bcmap +0 -0
  197. package/alist-web/static/pdf.js/web/cmaps/78ms-RKSJ-V.bcmap +0 -0
  198. package/alist-web/static/pdf.js/web/cmaps/83pv-RKSJ-H.bcmap +0 -0
  199. package/alist-web/static/pdf.js/web/cmaps/90ms-RKSJ-H.bcmap +0 -0
  200. package/alist-web/static/pdf.js/web/cmaps/90ms-RKSJ-V.bcmap +0 -0
  201. package/alist-web/static/pdf.js/web/cmaps/90msp-RKSJ-H.bcmap +0 -0
  202. package/alist-web/static/pdf.js/web/cmaps/90msp-RKSJ-V.bcmap +0 -0
  203. package/alist-web/static/pdf.js/web/cmaps/90pv-RKSJ-H.bcmap +0 -0
  204. package/alist-web/static/pdf.js/web/cmaps/90pv-RKSJ-V.bcmap +0 -0
  205. package/alist-web/static/pdf.js/web/cmaps/Add-H.bcmap +0 -0
  206. package/alist-web/static/pdf.js/web/cmaps/Add-RKSJ-H.bcmap +0 -0
  207. package/alist-web/static/pdf.js/web/cmaps/Add-RKSJ-V.bcmap +0 -0
  208. package/alist-web/static/pdf.js/web/cmaps/Add-V.bcmap +0 -0
  209. package/alist-web/static/pdf.js/web/cmaps/Adobe-CNS1-0.bcmap +0 -0
  210. package/alist-web/static/pdf.js/web/cmaps/Adobe-CNS1-1.bcmap +0 -0
  211. package/alist-web/static/pdf.js/web/cmaps/Adobe-CNS1-2.bcmap +0 -0
  212. package/alist-web/static/pdf.js/web/cmaps/Adobe-CNS1-3.bcmap +0 -0
  213. package/alist-web/static/pdf.js/web/cmaps/Adobe-CNS1-4.bcmap +0 -0
  214. package/alist-web/static/pdf.js/web/cmaps/Adobe-CNS1-5.bcmap +0 -0
  215. package/alist-web/static/pdf.js/web/cmaps/Adobe-CNS1-6.bcmap +0 -0
  216. package/alist-web/static/pdf.js/web/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
  217. package/alist-web/static/pdf.js/web/cmaps/Adobe-GB1-0.bcmap +0 -0
  218. package/alist-web/static/pdf.js/web/cmaps/Adobe-GB1-1.bcmap +0 -0
  219. package/alist-web/static/pdf.js/web/cmaps/Adobe-GB1-2.bcmap +0 -0
  220. package/alist-web/static/pdf.js/web/cmaps/Adobe-GB1-3.bcmap +0 -0
  221. package/alist-web/static/pdf.js/web/cmaps/Adobe-GB1-4.bcmap +0 -0
  222. package/alist-web/static/pdf.js/web/cmaps/Adobe-GB1-5.bcmap +0 -0
  223. package/alist-web/static/pdf.js/web/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
  224. package/alist-web/static/pdf.js/web/cmaps/Adobe-Japan1-0.bcmap +0 -0
  225. package/alist-web/static/pdf.js/web/cmaps/Adobe-Japan1-1.bcmap +0 -0
  226. package/alist-web/static/pdf.js/web/cmaps/Adobe-Japan1-2.bcmap +0 -0
  227. package/alist-web/static/pdf.js/web/cmaps/Adobe-Japan1-3.bcmap +0 -0
  228. package/alist-web/static/pdf.js/web/cmaps/Adobe-Japan1-4.bcmap +0 -0
  229. package/alist-web/static/pdf.js/web/cmaps/Adobe-Japan1-5.bcmap +0 -0
  230. package/alist-web/static/pdf.js/web/cmaps/Adobe-Japan1-6.bcmap +0 -0
  231. package/alist-web/static/pdf.js/web/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
  232. package/alist-web/static/pdf.js/web/cmaps/Adobe-Korea1-0.bcmap +0 -0
  233. package/alist-web/static/pdf.js/web/cmaps/Adobe-Korea1-1.bcmap +0 -0
  234. package/alist-web/static/pdf.js/web/cmaps/Adobe-Korea1-2.bcmap +0 -0
  235. package/alist-web/static/pdf.js/web/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
  236. package/alist-web/static/pdf.js/web/cmaps/B5-H.bcmap +0 -0
  237. package/alist-web/static/pdf.js/web/cmaps/B5-V.bcmap +0 -0
  238. package/alist-web/static/pdf.js/web/cmaps/B5pc-H.bcmap +0 -0
  239. package/alist-web/static/pdf.js/web/cmaps/B5pc-V.bcmap +0 -0
  240. package/alist-web/static/pdf.js/web/cmaps/CNS-EUC-H.bcmap +0 -0
  241. package/alist-web/static/pdf.js/web/cmaps/CNS-EUC-V.bcmap +0 -0
  242. package/alist-web/static/pdf.js/web/cmaps/CNS1-H.bcmap +0 -0
  243. package/alist-web/static/pdf.js/web/cmaps/CNS1-V.bcmap +0 -0
  244. package/alist-web/static/pdf.js/web/cmaps/CNS2-H.bcmap +0 -0
  245. package/alist-web/static/pdf.js/web/cmaps/CNS2-V.bcmap +3 -0
  246. package/alist-web/static/pdf.js/web/cmaps/ETHK-B5-H.bcmap +0 -0
  247. package/alist-web/static/pdf.js/web/cmaps/ETHK-B5-V.bcmap +0 -0
  248. package/alist-web/static/pdf.js/web/cmaps/ETen-B5-H.bcmap +0 -0
  249. package/alist-web/static/pdf.js/web/cmaps/ETen-B5-V.bcmap +0 -0
  250. package/alist-web/static/pdf.js/web/cmaps/ETenms-B5-H.bcmap +3 -0
  251. package/alist-web/static/pdf.js/web/cmaps/ETenms-B5-V.bcmap +0 -0
  252. package/alist-web/static/pdf.js/web/cmaps/EUC-H.bcmap +0 -0
  253. package/alist-web/static/pdf.js/web/cmaps/EUC-V.bcmap +0 -0
  254. package/alist-web/static/pdf.js/web/cmaps/Ext-H.bcmap +0 -0
  255. package/alist-web/static/pdf.js/web/cmaps/Ext-RKSJ-H.bcmap +0 -0
  256. package/alist-web/static/pdf.js/web/cmaps/Ext-RKSJ-V.bcmap +0 -0
  257. package/alist-web/static/pdf.js/web/cmaps/Ext-V.bcmap +0 -0
  258. package/alist-web/static/pdf.js/web/cmaps/GB-EUC-H.bcmap +0 -0
  259. package/alist-web/static/pdf.js/web/cmaps/GB-EUC-V.bcmap +0 -0
  260. package/alist-web/static/pdf.js/web/cmaps/GB-H.bcmap +4 -0
  261. package/alist-web/static/pdf.js/web/cmaps/GB-V.bcmap +0 -0
  262. package/alist-web/static/pdf.js/web/cmaps/GBK-EUC-H.bcmap +0 -0
  263. package/alist-web/static/pdf.js/web/cmaps/GBK-EUC-V.bcmap +0 -0
  264. package/alist-web/static/pdf.js/web/cmaps/GBK2K-H.bcmap +0 -0
  265. package/alist-web/static/pdf.js/web/cmaps/GBK2K-V.bcmap +0 -0
  266. package/alist-web/static/pdf.js/web/cmaps/GBKp-EUC-H.bcmap +0 -0
  267. package/alist-web/static/pdf.js/web/cmaps/GBKp-EUC-V.bcmap +0 -0
  268. package/alist-web/static/pdf.js/web/cmaps/GBT-EUC-H.bcmap +0 -0
  269. package/alist-web/static/pdf.js/web/cmaps/GBT-EUC-V.bcmap +0 -0
  270. package/alist-web/static/pdf.js/web/cmaps/GBT-H.bcmap +0 -0
  271. package/alist-web/static/pdf.js/web/cmaps/GBT-V.bcmap +0 -0
  272. package/alist-web/static/pdf.js/web/cmaps/GBTpc-EUC-H.bcmap +0 -0
  273. package/alist-web/static/pdf.js/web/cmaps/GBTpc-EUC-V.bcmap +0 -0
  274. package/alist-web/static/pdf.js/web/cmaps/GBpc-EUC-H.bcmap +0 -0
  275. package/alist-web/static/pdf.js/web/cmaps/GBpc-EUC-V.bcmap +0 -0
  276. package/alist-web/static/pdf.js/web/cmaps/H.bcmap +0 -0
  277. package/alist-web/static/pdf.js/web/cmaps/HKdla-B5-H.bcmap +0 -0
  278. package/alist-web/static/pdf.js/web/cmaps/HKdla-B5-V.bcmap +0 -0
  279. package/alist-web/static/pdf.js/web/cmaps/HKdlb-B5-H.bcmap +0 -0
  280. package/alist-web/static/pdf.js/web/cmaps/HKdlb-B5-V.bcmap +0 -0
  281. package/alist-web/static/pdf.js/web/cmaps/HKgccs-B5-H.bcmap +0 -0
  282. package/alist-web/static/pdf.js/web/cmaps/HKgccs-B5-V.bcmap +0 -0
  283. package/alist-web/static/pdf.js/web/cmaps/HKm314-B5-H.bcmap +0 -0
  284. package/alist-web/static/pdf.js/web/cmaps/HKm314-B5-V.bcmap +0 -0
  285. package/alist-web/static/pdf.js/web/cmaps/HKm471-B5-H.bcmap +0 -0
  286. package/alist-web/static/pdf.js/web/cmaps/HKm471-B5-V.bcmap +0 -0
  287. package/alist-web/static/pdf.js/web/cmaps/HKscs-B5-H.bcmap +0 -0
  288. package/alist-web/static/pdf.js/web/cmaps/HKscs-B5-V.bcmap +0 -0
  289. package/alist-web/static/pdf.js/web/cmaps/Hankaku.bcmap +0 -0
  290. package/alist-web/static/pdf.js/web/cmaps/Hiragana.bcmap +0 -0
  291. package/alist-web/static/pdf.js/web/cmaps/KSC-EUC-H.bcmap +0 -0
  292. package/alist-web/static/pdf.js/web/cmaps/KSC-EUC-V.bcmap +0 -0
  293. package/alist-web/static/pdf.js/web/cmaps/KSC-H.bcmap +0 -0
  294. package/alist-web/static/pdf.js/web/cmaps/KSC-Johab-H.bcmap +0 -0
  295. package/alist-web/static/pdf.js/web/cmaps/KSC-Johab-V.bcmap +0 -0
  296. package/alist-web/static/pdf.js/web/cmaps/KSC-V.bcmap +0 -0
  297. package/alist-web/static/pdf.js/web/cmaps/KSCms-UHC-H.bcmap +0 -0
  298. package/alist-web/static/pdf.js/web/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
  299. package/alist-web/static/pdf.js/web/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
  300. package/alist-web/static/pdf.js/web/cmaps/KSCms-UHC-V.bcmap +0 -0
  301. package/alist-web/static/pdf.js/web/cmaps/KSCpc-EUC-H.bcmap +0 -0
  302. package/alist-web/static/pdf.js/web/cmaps/KSCpc-EUC-V.bcmap +0 -0
  303. package/alist-web/static/pdf.js/web/cmaps/Katakana.bcmap +0 -0
  304. package/alist-web/static/pdf.js/web/cmaps/LICENSE +36 -0
  305. package/alist-web/static/pdf.js/web/cmaps/NWP-H.bcmap +0 -0
  306. package/alist-web/static/pdf.js/web/cmaps/NWP-V.bcmap +0 -0
  307. package/alist-web/static/pdf.js/web/cmaps/RKSJ-H.bcmap +0 -0
  308. package/alist-web/static/pdf.js/web/cmaps/RKSJ-V.bcmap +0 -0
  309. package/alist-web/static/pdf.js/web/cmaps/Roman.bcmap +0 -0
  310. package/alist-web/static/pdf.js/web/cmaps/UniCNS-UCS2-H.bcmap +0 -0
  311. package/alist-web/static/pdf.js/web/cmaps/UniCNS-UCS2-V.bcmap +0 -0
  312. package/alist-web/static/pdf.js/web/cmaps/UniCNS-UTF16-H.bcmap +0 -0
  313. package/alist-web/static/pdf.js/web/cmaps/UniCNS-UTF16-V.bcmap +0 -0
  314. package/alist-web/static/pdf.js/web/cmaps/UniCNS-UTF32-H.bcmap +0 -0
  315. package/alist-web/static/pdf.js/web/cmaps/UniCNS-UTF32-V.bcmap +0 -0
  316. package/alist-web/static/pdf.js/web/cmaps/UniCNS-UTF8-H.bcmap +0 -0
  317. package/alist-web/static/pdf.js/web/cmaps/UniCNS-UTF8-V.bcmap +0 -0
  318. package/alist-web/static/pdf.js/web/cmaps/UniGB-UCS2-H.bcmap +0 -0
  319. package/alist-web/static/pdf.js/web/cmaps/UniGB-UCS2-V.bcmap +0 -0
  320. package/alist-web/static/pdf.js/web/cmaps/UniGB-UTF16-H.bcmap +0 -0
  321. package/alist-web/static/pdf.js/web/cmaps/UniGB-UTF16-V.bcmap +0 -0
  322. package/alist-web/static/pdf.js/web/cmaps/UniGB-UTF32-H.bcmap +0 -0
  323. package/alist-web/static/pdf.js/web/cmaps/UniGB-UTF32-V.bcmap +0 -0
  324. package/alist-web/static/pdf.js/web/cmaps/UniGB-UTF8-H.bcmap +0 -0
  325. package/alist-web/static/pdf.js/web/cmaps/UniGB-UTF8-V.bcmap +0 -0
  326. package/alist-web/static/pdf.js/web/cmaps/UniJIS-UCS2-H.bcmap +0 -0
  327. package/alist-web/static/pdf.js/web/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
  328. package/alist-web/static/pdf.js/web/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
  329. package/alist-web/static/pdf.js/web/cmaps/UniJIS-UCS2-V.bcmap +0 -0
  330. package/alist-web/static/pdf.js/web/cmaps/UniJIS-UTF16-H.bcmap +0 -0
  331. package/alist-web/static/pdf.js/web/cmaps/UniJIS-UTF16-V.bcmap +0 -0
  332. package/alist-web/static/pdf.js/web/cmaps/UniJIS-UTF32-H.bcmap +0 -0
  333. package/alist-web/static/pdf.js/web/cmaps/UniJIS-UTF32-V.bcmap +0 -0
  334. package/alist-web/static/pdf.js/web/cmaps/UniJIS-UTF8-H.bcmap +0 -0
  335. package/alist-web/static/pdf.js/web/cmaps/UniJIS-UTF8-V.bcmap +0 -0
  336. package/alist-web/static/pdf.js/web/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
  337. package/alist-web/static/pdf.js/web/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
  338. package/alist-web/static/pdf.js/web/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
  339. package/alist-web/static/pdf.js/web/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
  340. package/alist-web/static/pdf.js/web/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
  341. package/alist-web/static/pdf.js/web/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
  342. package/alist-web/static/pdf.js/web/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
  343. package/alist-web/static/pdf.js/web/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
  344. package/alist-web/static/pdf.js/web/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
  345. package/alist-web/static/pdf.js/web/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
  346. package/alist-web/static/pdf.js/web/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
  347. package/alist-web/static/pdf.js/web/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
  348. package/alist-web/static/pdf.js/web/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
  349. package/alist-web/static/pdf.js/web/cmaps/UniKS-UCS2-H.bcmap +0 -0
  350. package/alist-web/static/pdf.js/web/cmaps/UniKS-UCS2-V.bcmap +0 -0
  351. package/alist-web/static/pdf.js/web/cmaps/UniKS-UTF16-H.bcmap +0 -0
  352. package/alist-web/static/pdf.js/web/cmaps/UniKS-UTF16-V.bcmap +0 -0
  353. package/alist-web/static/pdf.js/web/cmaps/UniKS-UTF32-H.bcmap +0 -0
  354. package/alist-web/static/pdf.js/web/cmaps/UniKS-UTF32-V.bcmap +0 -0
  355. package/alist-web/static/pdf.js/web/cmaps/UniKS-UTF8-H.bcmap +0 -0
  356. package/alist-web/static/pdf.js/web/cmaps/UniKS-UTF8-V.bcmap +0 -0
  357. package/alist-web/static/pdf.js/web/cmaps/V.bcmap +0 -0
  358. package/alist-web/static/pdf.js/web/cmaps/WP-Symbol.bcmap +0 -0
  359. package/alist-web/static/pdf.js/web/compressed.tracemonkey-pldi-09.pdf +0 -0
  360. package/alist-web/static/pdf.js/web/debugger.css +114 -0
  361. package/alist-web/static/pdf.js/web/debugger.mjs +627 -0
  362. package/alist-web/static/pdf.js/web/iccs/CGATS001Compat-v2-micro.icc +0 -0
  363. package/alist-web/static/pdf.js/web/iccs/LICENSE +116 -0
  364. package/alist-web/static/pdf.js/web/images/altText_add.svg +3 -0
  365. package/alist-web/static/pdf.js/web/images/altText_disclaimer.svg +3 -0
  366. package/alist-web/static/pdf.js/web/images/altText_done.svg +3 -0
  367. package/alist-web/static/pdf.js/web/images/altText_spinner.svg +30 -0
  368. package/alist-web/static/pdf.js/web/images/altText_warning.svg +3 -0
  369. package/alist-web/static/pdf.js/web/images/annotation-check.svg +11 -0
  370. package/alist-web/static/pdf.js/web/images/annotation-comment.svg +16 -0
  371. package/alist-web/static/pdf.js/web/images/annotation-help.svg +26 -0
  372. package/alist-web/static/pdf.js/web/images/annotation-insert.svg +10 -0
  373. package/alist-web/static/pdf.js/web/images/annotation-key.svg +11 -0
  374. package/alist-web/static/pdf.js/web/images/annotation-newparagraph.svg +11 -0
  375. package/alist-web/static/pdf.js/web/images/annotation-noicon.svg +7 -0
  376. package/alist-web/static/pdf.js/web/images/annotation-note.svg +42 -0
  377. package/alist-web/static/pdf.js/web/images/annotation-paperclip.svg +6 -0
  378. package/alist-web/static/pdf.js/web/images/annotation-paragraph.svg +16 -0
  379. package/alist-web/static/pdf.js/web/images/annotation-pushpin.svg +7 -0
  380. package/alist-web/static/pdf.js/web/images/cursor-editorFreeHighlight.svg +6 -0
  381. package/alist-web/static/pdf.js/web/images/cursor-editorFreeText.svg +3 -0
  382. package/alist-web/static/pdf.js/web/images/cursor-editorInk.svg +4 -0
  383. package/alist-web/static/pdf.js/web/images/cursor-editorTextHighlight.svg +8 -0
  384. package/alist-web/static/pdf.js/web/images/editor-toolbar-delete.svg +5 -0
  385. package/alist-web/static/pdf.js/web/images/editor-toolbar-edit.svg +3 -0
  386. package/alist-web/static/pdf.js/web/images/findbarButton-next.svg +3 -0
  387. package/alist-web/static/pdf.js/web/images/findbarButton-previous.svg +3 -0
  388. package/alist-web/static/pdf.js/web/images/gv-toolbarButton-download.svg +3 -0
  389. package/alist-web/static/pdf.js/web/images/loading-icon.gif +0 -0
  390. package/alist-web/static/pdf.js/web/images/loading.svg +1 -0
  391. package/alist-web/static/pdf.js/web/images/messageBar_closingButton.svg +3 -0
  392. package/alist-web/static/pdf.js/web/images/messageBar_info.svg +3 -0
  393. package/alist-web/static/pdf.js/web/images/messageBar_warning.svg +3 -0
  394. package/alist-web/static/pdf.js/web/images/secondaryToolbarButton-documentProperties.svg +3 -0
  395. package/alist-web/static/pdf.js/web/images/secondaryToolbarButton-firstPage.svg +3 -0
  396. package/alist-web/static/pdf.js/web/images/secondaryToolbarButton-handTool.svg +3 -0
  397. package/alist-web/static/pdf.js/web/images/secondaryToolbarButton-lastPage.svg +3 -0
  398. package/alist-web/static/pdf.js/web/images/secondaryToolbarButton-rotateCcw.svg +3 -0
  399. package/alist-web/static/pdf.js/web/images/secondaryToolbarButton-rotateCw.svg +3 -0
  400. package/alist-web/static/pdf.js/web/images/secondaryToolbarButton-scrollHorizontal.svg +3 -0
  401. package/alist-web/static/pdf.js/web/images/secondaryToolbarButton-scrollPage.svg +3 -0
  402. package/alist-web/static/pdf.js/web/images/secondaryToolbarButton-scrollVertical.svg +3 -0
  403. package/alist-web/static/pdf.js/web/images/secondaryToolbarButton-scrollWrapped.svg +3 -0
  404. package/alist-web/static/pdf.js/web/images/secondaryToolbarButton-selectTool.svg +3 -0
  405. package/alist-web/static/pdf.js/web/images/secondaryToolbarButton-spreadEven.svg +3 -0
  406. package/alist-web/static/pdf.js/web/images/secondaryToolbarButton-spreadNone.svg +3 -0
  407. package/alist-web/static/pdf.js/web/images/secondaryToolbarButton-spreadOdd.svg +3 -0
  408. package/alist-web/static/pdf.js/web/images/toolbarButton-bookmark.svg +3 -0
  409. package/alist-web/static/pdf.js/web/images/toolbarButton-currentOutlineItem.svg +3 -0
  410. package/alist-web/static/pdf.js/web/images/toolbarButton-download.svg +4 -0
  411. package/alist-web/static/pdf.js/web/images/toolbarButton-editorFreeText.svg +5 -0
  412. package/alist-web/static/pdf.js/web/images/toolbarButton-editorHighlight.svg +6 -0
  413. package/alist-web/static/pdf.js/web/images/toolbarButton-editorInk.svg +4 -0
  414. package/alist-web/static/pdf.js/web/images/toolbarButton-editorSignature.svg +6 -0
  415. package/alist-web/static/pdf.js/web/images/toolbarButton-editorStamp.svg +8 -0
  416. package/alist-web/static/pdf.js/web/images/toolbarButton-menuArrow.svg +3 -0
  417. package/alist-web/static/pdf.js/web/images/toolbarButton-openFile.svg +3 -0
  418. package/alist-web/static/pdf.js/web/images/toolbarButton-pageDown.svg +3 -0
  419. package/alist-web/static/pdf.js/web/images/toolbarButton-pageUp.svg +3 -0
  420. package/alist-web/static/pdf.js/web/images/toolbarButton-presentationMode.svg +3 -0
  421. package/alist-web/static/pdf.js/web/images/toolbarButton-print.svg +3 -0
  422. package/alist-web/static/pdf.js/web/images/toolbarButton-search.svg +3 -0
  423. package/alist-web/static/pdf.js/web/images/toolbarButton-secondaryToolbarToggle.svg +3 -0
  424. package/alist-web/static/pdf.js/web/images/toolbarButton-sidebarToggle.svg +3 -0
  425. package/alist-web/static/pdf.js/web/images/toolbarButton-viewAttachments.svg +3 -0
  426. package/alist-web/static/pdf.js/web/images/toolbarButton-viewLayers.svg +3 -0
  427. package/alist-web/static/pdf.js/web/images/toolbarButton-viewOutline.svg +3 -0
  428. package/alist-web/static/pdf.js/web/images/toolbarButton-viewThumbnail.svg +3 -0
  429. package/alist-web/static/pdf.js/web/images/toolbarButton-zoomIn.svg +3 -0
  430. package/alist-web/static/pdf.js/web/images/toolbarButton-zoomOut.svg +3 -0
  431. package/alist-web/static/pdf.js/web/images/treeitem-collapsed.svg +1 -0
  432. package/alist-web/static/pdf.js/web/images/treeitem-expanded.svg +1 -0
  433. package/alist-web/static/pdf.js/web/locale/ach/viewer.ftl +275 -0
  434. package/alist-web/static/pdf.js/web/locale/af/viewer.ftl +262 -0
  435. package/alist-web/static/pdf.js/web/locale/an/viewer.ftl +307 -0
  436. package/alist-web/static/pdf.js/web/locale/ar/viewer.ftl +627 -0
  437. package/alist-web/static/pdf.js/web/locale/ast/viewer.ftl +251 -0
  438. package/alist-web/static/pdf.js/web/locale/az/viewer.ftl +307 -0
  439. package/alist-web/static/pdf.js/web/locale/be/viewer.ftl +618 -0
  440. package/alist-web/static/pdf.js/web/locale/bg/viewer.ftl +451 -0
  441. package/alist-web/static/pdf.js/web/locale/bn/viewer.ftl +297 -0
  442. package/alist-web/static/pdf.js/web/locale/bo/viewer.ftl +297 -0
  443. package/alist-web/static/pdf.js/web/locale/br/viewer.ftl +370 -0
  444. package/alist-web/static/pdf.js/web/locale/brx/viewer.ftl +268 -0
  445. package/alist-web/static/pdf.js/web/locale/bs/viewer.ftl +273 -0
  446. package/alist-web/static/pdf.js/web/locale/ca/viewer.ftl +343 -0
  447. package/alist-web/static/pdf.js/web/locale/cak/viewer.ftl +341 -0
  448. package/alist-web/static/pdf.js/web/locale/ckb/viewer.ftl +292 -0
  449. package/alist-web/static/pdf.js/web/locale/cs/viewer.ftl +621 -0
  450. package/alist-web/static/pdf.js/web/locale/cy/viewer.ftl +627 -0
  451. package/alist-web/static/pdf.js/web/locale/da/viewer.ftl +615 -0
  452. package/alist-web/static/pdf.js/web/locale/de/viewer.ftl +615 -0
  453. package/alist-web/static/pdf.js/web/locale/dsb/viewer.ftl +621 -0
  454. package/alist-web/static/pdf.js/web/locale/el/viewer.ftl +615 -0
  455. package/alist-web/static/pdf.js/web/locale/en-CA/viewer.ftl +610 -0
  456. package/alist-web/static/pdf.js/web/locale/en-GB/viewer.ftl +615 -0
  457. package/alist-web/static/pdf.js/web/locale/en-US/viewer.ftl +640 -0
  458. package/alist-web/static/pdf.js/web/locale/eo/viewer.ftl +615 -0
  459. package/alist-web/static/pdf.js/web/locale/es-AR/viewer.ftl +615 -0
  460. package/alist-web/static/pdf.js/web/locale/es-CL/viewer.ftl +615 -0
  461. package/alist-web/static/pdf.js/web/locale/es-ES/viewer.ftl +615 -0
  462. package/alist-web/static/pdf.js/web/locale/es-MX/viewer.ftl +580 -0
  463. package/alist-web/static/pdf.js/web/locale/et/viewer.ftl +319 -0
  464. package/alist-web/static/pdf.js/web/locale/eu/viewer.ftl +619 -0
  465. package/alist-web/static/pdf.js/web/locale/fa/viewer.ftl +378 -0
  466. package/alist-web/static/pdf.js/web/locale/ff/viewer.ftl +297 -0
  467. package/alist-web/static/pdf.js/web/locale/fi/viewer.ftl +615 -0
  468. package/alist-web/static/pdf.js/web/locale/fr/viewer.ftl +611 -0
  469. package/alist-web/static/pdf.js/web/locale/fur/viewer.ftl +615 -0
  470. package/alist-web/static/pdf.js/web/locale/fy-NL/viewer.ftl +615 -0
  471. package/alist-web/static/pdf.js/web/locale/ga-IE/viewer.ftl +263 -0
  472. package/alist-web/static/pdf.js/web/locale/gd/viewer.ftl +343 -0
  473. package/alist-web/static/pdf.js/web/locale/gl/viewer.ftl +414 -0
  474. package/alist-web/static/pdf.js/web/locale/gn/viewer.ftl +614 -0
  475. package/alist-web/static/pdf.js/web/locale/gu-IN/viewer.ftl +297 -0
  476. package/alist-web/static/pdf.js/web/locale/he/viewer.ftl +615 -0
  477. package/alist-web/static/pdf.js/web/locale/hi-IN/viewer.ftl +297 -0
  478. package/alist-web/static/pdf.js/web/locale/hr/viewer.ftl +552 -0
  479. package/alist-web/static/pdf.js/web/locale/hsb/viewer.ftl +621 -0
  480. package/alist-web/static/pdf.js/web/locale/hu/viewer.ftl +615 -0
  481. package/alist-web/static/pdf.js/web/locale/hy-AM/viewer.ftl +314 -0
  482. package/alist-web/static/pdf.js/web/locale/hye/viewer.ftl +318 -0
  483. package/alist-web/static/pdf.js/web/locale/ia/viewer.ftl +615 -0
  484. package/alist-web/static/pdf.js/web/locale/id/viewer.ftl +603 -0
  485. package/alist-web/static/pdf.js/web/locale/is/viewer.ftl +600 -0
  486. package/alist-web/static/pdf.js/web/locale/it/viewer.ftl +615 -0
  487. package/alist-web/static/pdf.js/web/locale/ja/viewer.ftl +603 -0
  488. package/alist-web/static/pdf.js/web/locale/ka/viewer.ftl +615 -0
  489. package/alist-web/static/pdf.js/web/locale/kab/viewer.ftl +595 -0
  490. package/alist-web/static/pdf.js/web/locale/kk/viewer.ftl +595 -0
  491. package/alist-web/static/pdf.js/web/locale/km/viewer.ftl +273 -0
  492. package/alist-web/static/pdf.js/web/locale/kn/viewer.ftl +263 -0
  493. package/alist-web/static/pdf.js/web/locale/ko/viewer.ftl +603 -0
  494. package/alist-web/static/pdf.js/web/locale/lij/viewer.ftl +297 -0
  495. package/alist-web/static/pdf.js/web/locale/lo/viewer.ftl +343 -0
  496. package/alist-web/static/pdf.js/web/locale/locale.json +1 -0
  497. package/alist-web/static/pdf.js/web/locale/lt/viewer.ftl +318 -0
  498. package/alist-web/static/pdf.js/web/locale/ltg/viewer.ftl +296 -0
  499. package/alist-web/static/pdf.js/web/locale/lv/viewer.ftl +297 -0
  500. package/alist-web/static/pdf.js/web/locale/meh/viewer.ftl +137 -0
  501. package/alist-web/static/pdf.js/web/locale/mk/viewer.ftl +265 -0
  502. package/alist-web/static/pdf.js/web/locale/ml/viewer.ftl +524 -0
  503. package/alist-web/static/pdf.js/web/locale/mr/viewer.ftl +289 -0
  504. package/alist-web/static/pdf.js/web/locale/ms/viewer.ftl +297 -0
  505. package/alist-web/static/pdf.js/web/locale/my/viewer.ftl +256 -0
  506. package/alist-web/static/pdf.js/web/locale/nb-NO/viewer.ftl +614 -0
  507. package/alist-web/static/pdf.js/web/locale/ne-NP/viewer.ftl +284 -0
  508. package/alist-web/static/pdf.js/web/locale/nl/viewer.ftl +615 -0
  509. package/alist-web/static/pdf.js/web/locale/nn-NO/viewer.ftl +609 -0
  510. package/alist-web/static/pdf.js/web/locale/oc/viewer.ftl +436 -0
  511. package/alist-web/static/pdf.js/web/locale/pa-IN/viewer.ftl +615 -0
  512. package/alist-web/static/pdf.js/web/locale/pl/viewer.ftl +618 -0
  513. package/alist-web/static/pdf.js/web/locale/pt-BR/viewer.ftl +615 -0
  514. package/alist-web/static/pdf.js/web/locale/pt-PT/viewer.ftl +615 -0
  515. package/alist-web/static/pdf.js/web/locale/rm/viewer.ftl +615 -0
  516. package/alist-web/static/pdf.js/web/locale/ro/viewer.ftl +302 -0
  517. package/alist-web/static/pdf.js/web/locale/ru/viewer.ftl +618 -0
  518. package/alist-web/static/pdf.js/web/locale/sat/viewer.ftl +355 -0
  519. package/alist-web/static/pdf.js/web/locale/sc/viewer.ftl +394 -0
  520. package/alist-web/static/pdf.js/web/locale/scn/viewer.ftl +124 -0
  521. package/alist-web/static/pdf.js/web/locale/sco/viewer.ftl +314 -0
  522. package/alist-web/static/pdf.js/web/locale/si/viewer.ftl +301 -0
  523. package/alist-web/static/pdf.js/web/locale/sk/viewer.ftl +621 -0
  524. package/alist-web/static/pdf.js/web/locale/skr/viewer.ftl +524 -0
  525. package/alist-web/static/pdf.js/web/locale/sl/viewer.ftl +621 -0
  526. package/alist-web/static/pdf.js/web/locale/son/viewer.ftl +256 -0
  527. package/alist-web/static/pdf.js/web/locale/sq/viewer.ftl +606 -0
  528. package/alist-web/static/pdf.js/web/locale/sr/viewer.ftl +451 -0
  529. package/alist-web/static/pdf.js/web/locale/sv-SE/viewer.ftl +615 -0
  530. package/alist-web/static/pdf.js/web/locale/szl/viewer.ftl +307 -0
  531. package/alist-web/static/pdf.js/web/locale/ta/viewer.ftl +273 -0
  532. package/alist-web/static/pdf.js/web/locale/te/viewer.ftl +289 -0
  533. package/alist-web/static/pdf.js/web/locale/tg/viewer.ftl +615 -0
  534. package/alist-web/static/pdf.js/web/locale/th/viewer.ftl +603 -0
  535. package/alist-web/static/pdf.js/web/locale/tl/viewer.ftl +307 -0
  536. package/alist-web/static/pdf.js/web/locale/tr/viewer.ftl +615 -0
  537. package/alist-web/static/pdf.js/web/locale/trs/viewer.ftl +247 -0
  538. package/alist-web/static/pdf.js/web/locale/uk/viewer.ftl +618 -0
  539. package/alist-web/static/pdf.js/web/locale/ur/viewer.ftl +298 -0
  540. package/alist-web/static/pdf.js/web/locale/uz/viewer.ftl +237 -0
  541. package/alist-web/static/pdf.js/web/locale/vi/viewer.ftl +603 -0
  542. package/alist-web/static/pdf.js/web/locale/wo/viewer.ftl +177 -0
  543. package/alist-web/static/pdf.js/web/locale/xh/viewer.ftl +262 -0
  544. package/alist-web/static/pdf.js/web/locale/zh-CN/viewer.ftl +603 -0
  545. package/alist-web/static/pdf.js/web/locale/zh-TW/viewer.ftl +603 -0
  546. package/alist-web/static/pdf.js/web/standard_fonts/FoxitDingbats.pfb +0 -0
  547. package/alist-web/static/pdf.js/web/standard_fonts/FoxitFixed.pfb +0 -0
  548. package/alist-web/static/pdf.js/web/standard_fonts/FoxitFixedBold.pfb +0 -0
  549. package/alist-web/static/pdf.js/web/standard_fonts/FoxitFixedBoldItalic.pfb +0 -0
  550. package/alist-web/static/pdf.js/web/standard_fonts/FoxitFixedItalic.pfb +0 -0
  551. package/alist-web/static/pdf.js/web/standard_fonts/FoxitSerif.pfb +0 -0
  552. package/alist-web/static/pdf.js/web/standard_fonts/FoxitSerifBold.pfb +0 -0
  553. package/alist-web/static/pdf.js/web/standard_fonts/FoxitSerifBoldItalic.pfb +0 -0
  554. package/alist-web/static/pdf.js/web/standard_fonts/FoxitSerifItalic.pfb +0 -0
  555. package/alist-web/static/pdf.js/web/standard_fonts/FoxitSymbol.pfb +0 -0
  556. package/alist-web/static/pdf.js/web/standard_fonts/LICENSE_FOXIT +27 -0
  557. package/alist-web/static/pdf.js/web/standard_fonts/LICENSE_LIBERATION +102 -0
  558. package/alist-web/static/pdf.js/web/standard_fonts/LiberationSans-Bold.ttf +0 -0
  559. package/alist-web/static/pdf.js/web/standard_fonts/LiberationSans-BoldItalic.ttf +0 -0
  560. package/alist-web/static/pdf.js/web/standard_fonts/LiberationSans-Italic.ttf +0 -0
  561. package/alist-web/static/pdf.js/web/standard_fonts/LiberationSans-Regular.ttf +0 -0
  562. package/alist-web/static/pdf.js/web/viewer.css +6438 -0
  563. package/alist-web/static/pdf.js/web/viewer.html +737 -0
  564. package/alist-web/static/pdf.js/web/viewer.mjs +17076 -0
  565. package/alist-web/static/pdf.js/web/viewer.mjs.map +1 -0
  566. package/alist-web/static/pdf.js/web/wasm/LICENSE_OPENJPEG +39 -0
  567. package/alist-web/static/pdf.js/web/wasm/LICENSE_PDFJS_OPENJPEG +22 -0
  568. package/alist-web/static/pdf.js/web/wasm/LICENSE_PDFJS_QCMS +22 -0
  569. package/alist-web/static/pdf.js/web/wasm/LICENSE_QCMS +21 -0
  570. package/alist-web/static/pdf.js/web/wasm/openjpeg.wasm +0 -0
  571. package/alist-web/static/pdf.js/web/wasm/openjpeg_nowasm_fallback.js +29 -0
  572. package/alist-web/static/pdf.js/web/wasm/qcms_bg.wasm +0 -0
  573. package/alist-web/streamer/mitm.html +186 -0
  574. package/alist-web/streamer/sw.js +141 -0
  575. package/css/alist_skin_v2.css +410 -410
  576. package/css/alist_skin_v3.css +216 -218
  577. package/css/alist_wallpaper.css +49 -48
  578. package/css/colorful.css +65 -65
  579. package/css/font-awesome.css +10569 -10568
  580. package/css/lxgw-style.css +12 -6
  581. package/css/lxgwwenkai-bold.css +873 -873
  582. package/css/lxgwwenkai-light.css +873 -873
  583. package/css/lxgwwenkai-regular.css +873 -873
  584. package/css/lxgwwenkaimono-bold.css +873 -873
  585. package/css/lxgwwenkaimono-light.css +873 -873
  586. package/css/lxgwwenkaimono-regular.css +873 -873
  587. package/package.json +2 -2
  588. package/favicon.ico +0 -0
@@ -0,0 +1,135 @@
1
+ !function(){function e(e,i){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==i)return;var r,n,s=[],o=!0,a=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(s.push(r.value),!t||s.length!==t);o=!0);}catch(u){a=!0,n=u}finally{try{o||null==i.return||i.return()}finally{if(a)throw n}}return s}(e,i)||function(e,i){if(!e)return;if("string"==typeof e)return t(e,i);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(e,i)}(e,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,r=new Array(t);i<t;i++)r[i]=e[i];return r}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}System.register(["./index-legacy.a7c40fe3.js","./icon-legacy.2d7c0a16.js","./video_box-legacy.d60b6928.js","./hls-legacy.9e0f7edb.js","./index-legacy.91fe7355.js","./Layout-legacy.bbe308ea.js","./useTitle-legacy.e942225f.js","./index-legacy.61172c95.js","./FolderTree-legacy.2cffdb64.js","./index-legacy.fb7fb711.js","./_commonjs-dynamic-modules-legacy.cf19cda3.js"],(function(t){"use strict";var r,n,s,o,a,u,l,d,h,c,f,_,p,m,g,v,y,b,E,S,L,A,R,w,T,O,k;return{setters:[function(e){r=e.cU,n=e.b,s=e.a5,o=e.dB,a=e.a1,u=e.aJ,l=e.cF,d=e.dC,h=e.aL,c=e.c9,f=e.ca,_=e.o,p=e.e,m=e.m,g=e.h,v=e.a7,y=e.ai,b=e.d,E=e.dD},function(e){S=e.O,L=e.A},function(e){A=e.A,R=e.a,w=e.V},function(e){T=e.H,O=e.a,k=e.b},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var C,I={exports:{}};self,C=function(){return function(){var e={"./node_modules/es6-promise/dist/es6-promise.js":
2
+ /*!******************************************************!*\
3
+ !*** ./node_modules/es6-promise/dist/es6-promise.js ***!
4
+ \******************************************************/function(e,t,r){
5
+ /*!
6
+ * @overview es6-promise - a tiny implementation of Promises/A+.
7
+ * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
8
+ * @license Licensed under MIT license
9
+ * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
10
+ * @version v4.2.8+1e68dce6
11
+ */
12
+ e.exports=function(){function e(e){var t=i(e);return null!==e&&("object"===t||"function"===t)}function t(e){return"function"==typeof e}var n=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},s=0,o=void 0,a=void 0,u=function(e,t){E[s]=e,E[s+1]=t,2===(s+=2)&&(a?a(S):A())};function l(e){a=e}function d(e){u=e}var h="undefined"!=typeof window?window:void 0,c=h||{},f=c.MutationObserver||c.WebKitMutationObserver,_="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),p="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function m(){return function(){return process.nextTick(S)}}function g(){return void 0!==o?function(){o(S)}:b()}function v(){var e=0,t=new f(S),i=document.createTextNode("");return t.observe(i,{characterData:!0}),function(){i.data=e=++e%2}}function y(){var e=new MessageChannel;return e.port1.onmessage=S,function(){return e.port2.postMessage(0)}}function b(){var e=setTimeout;return function(){return e(S,1)}}var E=new Array(1e3);function S(){for(var e=0;e<s;e+=2)(0,E[e])(E[e+1]),E[e]=void 0,E[e+1]=void 0;s=0}function L(){try{var e=Function("return this")().require("vertx");return o=e.runOnLoop||e.runOnContext,g()}catch(t){return b()}}var A=void 0;function R(e,t){var i=this,r=new this.constructor(O);void 0===r[T]&&X(r);var n=i._state;if(n){var s=arguments[n-1];u((function(){return K(n,r,s,i._result)}))}else V(i,r,e,t);return r}function w(e){var t=this;if(e&&"object"===i(e)&&e.constructor===t)return e;var r=new t(O);return U(r,e),r}A=_?m():f?v():p?y():void 0===h?L():b();var T=Math.random().toString(36).substring(2);function O(){}var k=void 0,C=1,I=2;function D(){return new TypeError("You cannot resolve a promise with itself")}function x(){return new TypeError("A promises callback cannot return that same promise.")}function M(e,t,i,r){try{e.call(t,i,r)}catch(n){return n}}function B(e,t,i){u((function(e){var r=!1,n=M(i,t,(function(i){r||(r=!0,t!==i?U(e,i):F(e,i))}),(function(t){r||(r=!0,G(e,t))}),"Settle: "+(e._label||" unknown promise"));!r&&n&&(r=!0,G(e,n))}),e)}function P(e,t){t._state===C?F(e,t._result):t._state===I?G(e,t._result):V(t,void 0,(function(t){return U(e,t)}),(function(t){return G(e,t)}))}function j(e,i,r){i.constructor===e.constructor&&r===R&&i.constructor.resolve===w?P(e,i):void 0===r?F(e,i):t(r)?B(e,i,r):F(e,i)}function U(t,i){if(t===i)G(t,D());else if(e(i)){var r=void 0;try{r=i.then}catch(n){return void G(t,n)}j(t,i,r)}else F(t,i)}function N(e){e._onerror&&e._onerror(e._result),z(e)}function F(e,t){e._state===k&&(e._result=t,e._state=C,0!==e._subscribers.length&&u(z,e))}function G(e,t){e._state===k&&(e._state=I,e._result=t,u(N,e))}function V(e,t,i,r){var n=e._subscribers,s=n.length;e._onerror=null,n[s]=t,n[s+C]=i,n[s+I]=r,0===s&&e._state&&u(z,e)}function z(e){var t=e._subscribers,i=e._state;if(0!==t.length){for(var r=void 0,n=void 0,s=e._result,o=0;o<t.length;o+=3)r=t[o],n=t[o+i],r?K(i,r,n,s):n(s);e._subscribers.length=0}}function K(e,i,r,n){var s=t(r),o=void 0,a=void 0,u=!0;if(s){try{o=r(n)}catch(l){u=!1,a=l}if(i===o)return void G(i,x())}else o=n;i._state!==k||(s&&u?U(i,o):!1===u?G(i,a):e===C?F(i,o):e===I&&G(i,o))}function H(e,t){try{t((function(t){U(e,t)}),(function(t){G(e,t)}))}catch(i){G(e,i)}}var W=0;function q(){return W++}function X(e){e[T]=W++,e._state=void 0,e._result=void 0,e._subscribers=[]}function Y(){return new Error("Array Methods must be provided an Array")}var Z=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(O),this.promise[T]||X(this.promise),n(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?F(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&F(this.promise,this._result))):G(this.promise,Y())}return e.prototype._enumerate=function(e){for(var t=0;this._state===k&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var i=this._instanceConstructor,r=i.resolve;if(r===w){var n=void 0,s=void 0,o=!1;try{n=e.then}catch(u){o=!0,s=u}if(n===R&&e._state!==k)this._settledAt(e._state,t,e._result);else if("function"!=typeof n)this._remaining--,this._result[t]=e;else if(i===ie){var a=new i(O);o?G(a,s):j(a,e,n),this._willSettleAt(a,t)}else this._willSettleAt(new i((function(t){return t(e)})),t)}else this._willSettleAt(r(e),t)},e.prototype._settledAt=function(e,t,i){var r=this.promise;r._state===k&&(this._remaining--,e===I?G(r,i):this._result[t]=i),0===this._remaining&&F(r,this._result)},e.prototype._willSettleAt=function(e,t){var i=this;V(e,void 0,(function(e){return i._settledAt(C,t,e)}),(function(e){return i._settledAt(I,t,e)}))},e}();function J(e){return new Z(this,e).promise}function $(e){var t=this;return n(e)?new t((function(i,r){for(var n=e.length,s=0;s<n;s++)t.resolve(e[s]).then(i,r)})):new t((function(e,t){return t(new TypeError("You must pass an array to race."))}))}function Q(e){var t=new this(O);return G(t,e),t}function ee(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function te(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var ie=function(){function e(t){this[T]=q(),this._result=this._state=void 0,this._subscribers=[],O!==t&&("function"!=typeof t&&ee(),this instanceof e?H(this,t):te())}return e.prototype.catch=function(e){return this.then(null,e)},e.prototype.finally=function(e){var i=this,r=i.constructor;return t(e)?i.then((function(t){return r.resolve(e()).then((function(){return t}))}),(function(t){return r.resolve(e()).then((function(){throw t}))})):i.then(e,e)},e}();function re(){var e=void 0;if(void 0!==r.g)e=r.g;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(n){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var i=null;try{i=Object.prototype.toString.call(t.resolve())}catch(n){}if("[object Promise]"===i&&!t.cast)return}e.Promise=ie}return ie.prototype.then=R,ie.all=J,ie.race=$,ie.resolve=w,ie.reject=Q,ie._setScheduler=l,ie._setAsap=d,ie._asap=u,ie.polyfill=re,ie.Promise=ie,ie}()},"./node_modules/events/events.js":
13
+ /*!***************************************!*\
14
+ !*** ./node_modules/events/events.js ***!
15
+ \***************************************/function(e){var t,r="object"===("undefined"==typeof Reflect?"undefined":i(Reflect))?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,i){return Function.prototype.apply.call(e,t,i)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(i,r){function n(i){e.removeListener(t,s),r(i)}function s(){"function"==typeof e.removeListener&&e.removeListener("error",n),i([].slice.call(arguments))}m(e,t,s,{once:!0}),"error"!==t&&function(e,t,i){"function"==typeof e.on&&m(e,"error",t,i)}(e,n,{once:!0})}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+i(e))}function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function d(e,t,i,r){var n,s,o,a;if(u(i),void 0===(s=e._events)?(s=e._events=Object.create(null),e._eventsCount=0):(void 0!==s.newListener&&(e.emit("newListener",t,i.listener?i.listener:i),s=e._events),o=s[t]),void 0===o)o=s[t]=i,++e._eventsCount;else if("function"==typeof o?o=s[t]=r?[i,o]:[o,i]:r?o.unshift(i):o.push(i),(n=l(e))>0&&o.length>n&&!o.warned){o.warned=!0;var d=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");d.name="MaxListenersExceededWarning",d.emitter=e,d.type=t,d.count=o.length,a=d,console&&console.warn&&console.warn(a)}return e}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function c(e,t,i){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:i},n=h.bind(r);return n.listener=i,r.wrapFn=n,n}function f(e,t,i){var r=e._events;if(void 0===r)return[];var n=r[t];return void 0===n?[]:"function"==typeof n?i?[n.listener||n]:[n]:i?function(e){for(var t=new Array(e.length),i=0;i<t.length;++i)t[i]=e[i].listener||e[i];return t}(n):p(n,n.length)}function _(e){var t=this._events;if(void 0!==t){var i=t[e];if("function"==typeof i)return 1;if(void 0!==i)return i.length}return 0}function p(e,t){for(var i=new Array(t),r=0;r<t;++r)i[r]=e[r];return i}function m(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+i(e));e.addEventListener(t,(function i(s){n.once&&e.removeEventListener(t,i),r(s)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return l(this)},o.prototype.emit=function(e){for(var t=[],i=1;i<arguments.length;i++)t.push(arguments[i]);var r="error"===e,s=this._events;if(void 0!==s)r=r&&void 0===s.error;else if(!r)return!1;if(r){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var u=s[e];if(void 0===u)return!1;if("function"==typeof u)n(u,this,t);else{var l=u.length,d=p(u,l);for(i=0;i<l;++i)n(d[i],this,t)}return!0},o.prototype.addListener=function(e,t){return d(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return d(this,e,t,!0)},o.prototype.once=function(e,t){return u(t),this.on(e,c(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,c(this,e,t)),this},o.prototype.removeListener=function(e,t){var i,r,n,s,o;if(u(t),void 0===(r=this._events))return this;if(void 0===(i=r[e]))return this;if(i===t||i.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,i.listener||t));else if("function"!=typeof i){for(n=-1,s=i.length-1;s>=0;s--)if(i[s]===t||i[s].listener===t){o=i[s].listener,n=s;break}if(n<0)return this;0===n?i.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(i,n),1===i.length&&(r[e]=i[0]),void 0!==r.removeListener&&this.emit("removeListener",e,o||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,i,r;if(void 0===(i=this._events))return this;if(void 0===i.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==i[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete i[e]),this;if(0===arguments.length){var n,s=Object.keys(i);for(r=0;r<s.length;++r)"removeListener"!==(n=s[r])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=i[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):_.call(e,t)},o.prototype.listenerCount=_,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},"./node_modules/webworkify-webpack/index.js":
16
+ /*!**************************************************!*\
17
+ !*** ./node_modules/webworkify-webpack/index.js ***!
18
+ \**************************************************/function(e,t,i){function r(e){var t={};function i(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=t,i.i=function(e){return e},i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},i.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i.oe=function(e){throw console.error(e),e};var r=i(i.s=ENTRY_MODULE);return r.default||r}var n="[\\.|\\-|\\+|\\w|/|@]+",s="\\(\\s*(/\\*.*?\\*/)?\\s*.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)";function o(e){return(e+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function a(e,t,r){var a={};a[r]=[];var u=t.toString(),l=u.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!l)return a;for(var d,h=l[1],c=new RegExp("(\\\\n|\\W)"+o(h)+s,"g");d=c.exec(u);)"dll-reference"!==d[3]&&a[r].push(d[3]);for(c=new RegExp("\\("+o(h)+'\\("(dll-reference\\s('+n+'))"\\)\\)'+s,"g");d=c.exec(u);)e[d[2]]||(a[r].push(d[1]),e[d[2]]=i(d[1]).m),a[d[2]]=a[d[2]]||[],a[d[2]].push(d[4]);for(var f,_=Object.keys(a),p=0;p<_.length;p++)for(var m=0;m<a[_[p]].length;m++)f=a[_[p]][m],isNaN(1*f)||(a[_[p]][m]=1*a[_[p]][m]);return a}function u(e){return Object.keys(e).reduce((function(t,i){return t||e[i].length>0}),!1)}e.exports=function(e,t){t=t||{};var n={main:i.m},s=t.all?{main:Object.keys(n.main)}:function(e,t){for(var i={main:[t]},r={main:[]},n={main:{}};u(i);)for(var s=Object.keys(i),o=0;o<s.length;o++){var l=s[o],d=i[l].pop();if(n[l]=n[l]||{},!n[l][d]&&e[l][d]){n[l][d]=!0,r[l]=r[l]||[],r[l].push(d);for(var h=a(e,e[l][d],l),c=Object.keys(h),f=0;f<c.length;f++)i[c[f]]=i[c[f]]||[],i[c[f]]=i[c[f]].concat(h[c[f]])}}return r}(n,e),o="";Object.keys(s).filter((function(e){return"main"!==e})).forEach((function(e){for(var t=0;s[e][t];)t++;s[e].push(t),n[e][t]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",o=o+"var "+e+" = ("+r.toString().replace("ENTRY_MODULE",JSON.stringify(t))+")({"+s[e].map((function(t){return JSON.stringify(t)+": "+n[e][t].toString()})).join(",")+"});\n"})),o=o+"new (("+r.toString().replace("ENTRY_MODULE",JSON.stringify(e))+")({"+s.main.map((function(e){return JSON.stringify(e)+": "+n.main[e].toString()})).join(",")+"}))(self);";var l=new window.Blob([o],{type:"text/javascript"});if(t.bare)return l;var d=(window.URL||window.webkitURL||window.mozURL||window.msURL).createObjectURL(l),h=new window.Worker(d);return h.objectURL=d,h}},"./src/config.js":
19
+ /*!***********************!*\
20
+ !*** ./src/config.js ***!
21
+ \***********************/function(e,t,i){i.r(t),i.d(t,{defaultConfig:function(){return r},createDefaultConfig:function(){return n}});var r={enableWorker:!1,enableStashBuffer:!0,stashInitialSize:void 0,isLive:!1,lazyLoad:!0,lazyLoadMaxDuration:180,lazyLoadRecoverDuration:30,deferLoadAfterSourceOpen:!0,autoCleanupMaxBackwardDuration:180,autoCleanupMinBackwardDuration:120,statisticsInfoReportInterval:600,fixAudioTimestampGap:!0,accurateSeek:!1,seekType:"range",seekParamStart:"bstart",seekParamEnd:"bend",rangeLoadZeroStart:!1,customSeekHandler:void 0,reuseRedirectedURL:!1,headers:void 0,customLoader:void 0};function n(){return Object.assign({},r)}},"./src/core/features.js":
22
+ /*!******************************!*\
23
+ !*** ./src/core/features.js ***!
24
+ \******************************/function(e,t,i){i.r(t);var r=i(/*! ../io/io-controller.js */"./src/io/io-controller.js"),n=i(/*! ../config.js */"./src/config.js"),s=function(){function e(){}return e.supportMSEH264Playback=function(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')},e.supportNetworkStreamIO=function(){var e=new r.default({},(0,n.createDefaultConfig)()),t=e.loaderType;return e.destroy(),"fetch-stream-loader"==t||"xhr-moz-chunked-loader"==t},e.getNetworkLoaderTypeName=function(){var e=new r.default({},(0,n.createDefaultConfig)()),t=e.loaderType;return e.destroy(),t},e.supportNativeMediaPlayback=function(t){null==e.videoElement&&(e.videoElement=window.document.createElement("video"));var i=e.videoElement.canPlayType(t);return"probably"===i||"maybe"==i},e.getFeatureList=function(){var t={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return t.mseFlvPlayback=e.supportMSEH264Playback(),t.networkStreamIO=e.supportNetworkStreamIO(),t.networkLoaderName=e.getNetworkLoaderTypeName(),t.mseLiveFlvPlayback=t.mseFlvPlayback&&t.networkStreamIO,t.nativeMP4H264Playback=e.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),t.nativeWebmVP8Playback=e.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),t.nativeWebmVP9Playback=e.supportNativeMediaPlayback('video/webm; codecs="vp9"'),t},e}();t.default=s},"./src/core/media-info.js":
25
+ /*!********************************!*\
26
+ !*** ./src/core/media-info.js ***!
27
+ \********************************/function(e,t,i){i.r(t);var r=function(){function e(){this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}return e.prototype.isComplete=function(){var e=!1===this.hasAudio||!0===this.hasAudio&&null!=this.audioCodec&&null!=this.audioSampleRate&&null!=this.audioChannelCount,t=!1===this.hasVideo||!0===this.hasVideo&&null!=this.videoCodec&&null!=this.width&&null!=this.height&&null!=this.fps&&null!=this.profile&&null!=this.level&&null!=this.refFrames&&null!=this.chromaFormat&&null!=this.sarNum&&null!=this.sarDen;return null!=this.mimeType&&null!=this.duration&&null!=this.metadata&&null!=this.hasKeyframesIndex&&e&&t},e.prototype.isSeekable=function(){return!0===this.hasKeyframesIndex},e.prototype.getNearestKeyframe=function(e){if(null==this.keyframesIndex)return null;var t=this.keyframesIndex,i=this._search(t.times,e);return{index:i,milliseconds:t.times[i],fileposition:t.filepositions[i]}},e.prototype._search=function(e,t){var i=0,r=e.length-1,n=0,s=0,o=r;for(t<e[0]&&(i=0,s=o+1);s<=o;){if((n=s+Math.floor((o-s)/2))===r||t>=e[n]&&t<e[n+1]){i=n;break}e[n]<t?s=n+1:o=n-1}return i},e}();t.default=r},"./src/core/media-segment-info.js":
28
+ /*!****************************************!*\
29
+ !*** ./src/core/media-segment-info.js ***!
30
+ \****************************************/function(e,t,i){i.r(t),i.d(t,{SampleInfo:function(){return r},MediaSegmentInfo:function(){return n},IDRSampleList:function(){return s},MediaSegmentInfoList:function(){return o}});var r=function(e,t,i,r,n){this.dts=e,this.pts=t,this.duration=i,this.originalDts=r,this.isSyncPoint=n,this.fileposition=null},n=function(){function e(){this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}return e.prototype.appendSyncPoint=function(e){e.isSyncPoint=!0,this.syncPoints.push(e)},e}(),s=function(){function e(){this._list=[]}return e.prototype.clear=function(){this._list=[]},e.prototype.appendArray=function(e){var t=this._list;0!==e.length&&(t.length>0&&e[0].originalDts<t[t.length-1].originalDts&&this.clear(),Array.prototype.push.apply(t,e))},e.prototype.getLastSyncPointBeforeDts=function(e){if(0==this._list.length)return null;var t=this._list,i=0,r=t.length-1,n=0,s=0,o=r;for(e<t[0].dts&&(i=0,s=o+1);s<=o;){if((n=s+Math.floor((o-s)/2))===r||e>=t[n].dts&&e<t[n+1].dts){i=n;break}t[n].dts<e?s=n+1:o=n-1}return this._list[i]},e}(),o=function(){function e(e){this._type=e,this._list=[],this._lastAppendLocation=-1}return Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._list.length},enumerable:!1,configurable:!0}),e.prototype.isEmpty=function(){return 0===this._list.length},e.prototype.clear=function(){this._list=[],this._lastAppendLocation=-1},e.prototype._searchNearestSegmentBefore=function(e){var t=this._list;if(0===t.length)return-2;var i=t.length-1,r=0,n=0,s=i,o=0;if(e<t[0].originalBeginDts)return o=-1;for(;n<=s;){if((r=n+Math.floor((s-n)/2))===i||e>t[r].lastSample.originalDts&&e<t[r+1].originalBeginDts){o=r;break}t[r].originalBeginDts<e?n=r+1:s=r-1}return o},e.prototype._searchNearestSegmentAfter=function(e){return this._searchNearestSegmentBefore(e)+1},e.prototype.append=function(e){var t=this._list,i=e,r=this._lastAppendLocation,n=0;-1!==r&&r<t.length&&i.originalBeginDts>=t[r].lastSample.originalDts&&(r===t.length-1||r<t.length-1&&i.originalBeginDts<t[r+1].originalBeginDts)?n=r+1:t.length>0&&(n=this._searchNearestSegmentBefore(i.originalBeginDts)+1),this._lastAppendLocation=n,this._list.splice(n,0,i)},e.prototype.getLastSegmentBefore=function(e){var t=this._searchNearestSegmentBefore(e);return t>=0?this._list[t]:null},e.prototype.getLastSampleBefore=function(e){var t=this.getLastSegmentBefore(e);return null!=t?t.lastSample:null},e.prototype.getLastSyncPointBefore=function(e){for(var t=this._searchNearestSegmentBefore(e),i=this._list[t].syncPoints;0===i.length&&t>0;)t--,i=this._list[t].syncPoints;return i.length>0?i[i.length-1]:null},e}()},"./src/core/mse-controller.js":
31
+ /*!************************************!*\
32
+ !*** ./src/core/mse-controller.js ***!
33
+ \************************************/function(e,t,i){i.r(t);var r=i(/*! events */"./node_modules/events/events.js"),n=i.n(r),s=i(/*! ../utils/logger.js */"./src/utils/logger.js"),o=i(/*! ../utils/browser.js */"./src/utils/browser.js"),a=i(/*! ./mse-events.js */"./src/core/mse-events.js"),u=i(/*! ./media-segment-info.js */"./src/core/media-segment-info.js"),l=i(/*! ../utils/exception.js */"./src/utils/exception.js"),d=function(){function e(e){this.TAG="MSEController",this._config=e,this._emitter=new(n()),this._config.isLive&&null==this._config.autoCleanupSourceBuffer&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new u.IDRSampleList}return e.prototype.destroy=function(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null},e.prototype.on=function(e,t){this._emitter.addListener(e,t)},e.prototype.off=function(e,t){this._emitter.removeListener(e,t)},e.prototype.attachMediaElement=function(e){if(this._mediaSource)throw new l.IllegalStateException("MediaSource has been attached to an HTMLMediaElement!");var t=this._mediaSource=new window.MediaSource;t.addEventListener("sourceopen",this.e.onSourceOpen),t.addEventListener("sourceended",this.e.onSourceEnded),t.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=e,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),e.src=this._mediaSourceObjectURL},e.prototype.detachMediaElement=function(){if(this._mediaSource){var e=this._mediaSource;for(var t in this._sourceBuffers){var i=this._pendingSegments[t];i.splice(0,i.length),this._pendingSegments[t]=null,this._pendingRemoveRanges[t]=null,this._lastInitSegments[t]=null;var r=this._sourceBuffers[t];if(r){if("closed"!==e.readyState){try{e.removeSourceBuffer(r)}catch(n){s.default.e(this.TAG,n.message)}r.removeEventListener("error",this.e.onSourceBufferError),r.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[t]=null,this._sourceBuffers[t]=null}}if("open"===e.readyState)try{e.endOfStream()}catch(n){s.default.e(this.TAG,n.message)}e.removeEventListener("sourceopen",this.e.onSourceOpen),e.removeEventListener("sourceended",this.e.onSourceEnded),e.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)},e.prototype.appendInitSegment=function(e,t){if(!this._mediaSource||"open"!==this._mediaSource.readyState)return this._pendingSourceBufferInit.push(e),void this._pendingSegments[e.type].push(e);var i=e,r=""+i.container;i.codec&&i.codec.length>0&&(r+=";codecs="+i.codec);var n=!1;if(s.default.v(this.TAG,"Received Initialization Segment, mimeType: "+r),this._lastInitSegments[i.type]=i,r!==this._mimeTypes[i.type]){if(this._mimeTypes[i.type])s.default.v(this.TAG,"Notice: "+i.type+" mimeType changed, origin: "+this._mimeTypes[i.type]+", target: "+r);else{n=!0;try{var u=this._sourceBuffers[i.type]=this._mediaSource.addSourceBuffer(r);u.addEventListener("error",this.e.onSourceBufferError),u.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(l){return s.default.e(this.TAG,l.message),void this._emitter.emit(a.default.ERROR,{code:l.code,msg:l.message})}}this._mimeTypes[i.type]=r}t||this._pendingSegments[i.type].push(i),n||this._sourceBuffers[i.type]&&!this._sourceBuffers[i.type].updating&&this._doAppendSegments(),o.default.safari&&"audio/mpeg"===i.container&&i.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=i.mediaDuration/1e3,this._updateMediaSourceDuration())},e.prototype.appendMediaSegment=function(e){var t=e;this._pendingSegments[t.type].push(t),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var i=this._sourceBuffers[t.type];!i||i.updating||this._hasPendingRemoveRanges()||this._doAppendSegments()},e.prototype.seek=function(e){for(var t in this._sourceBuffers)if(this._sourceBuffers[t]){var i=this._sourceBuffers[t];if("open"===this._mediaSource.readyState)try{i.abort()}catch(d){s.default.e(this.TAG,d.message)}this._idrList.clear();var r=this._pendingSegments[t];if(r.splice(0,r.length),"closed"!==this._mediaSource.readyState){for(var n=0;n<i.buffered.length;n++){var a=i.buffered.start(n),u=i.buffered.end(n);this._pendingRemoveRanges[t].push({start:a,end:u})}if(i.updating||this._doRemoveRanges(),o.default.safari){var l=this._lastInitSegments[t];l&&(this._pendingSegments[t].push(l),i.updating||this._doAppendSegments())}}}},e.prototype.endOfStream=function(){var e=this._mediaSource,t=this._sourceBuffers;e&&"open"===e.readyState?t.video&&t.video.updating||t.audio&&t.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,e.endOfStream()):e&&"closed"===e.readyState&&this._hasPendingSegments()&&(this._hasPendingEos=!0)},e.prototype.getNearestKeyframe=function(e){return this._idrList.getLastSyncPointBeforeDts(e)},e.prototype._needCleanupSourceBuffer=function(){if(!this._config.autoCleanupSourceBuffer)return!1;var e=this._mediaElement.currentTime;for(var t in this._sourceBuffers){var i=this._sourceBuffers[t];if(i){var r=i.buffered;if(r.length>=1&&e-r.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1},e.prototype._doCleanupSourceBuffer=function(){var e=this._mediaElement.currentTime;for(var t in this._sourceBuffers){var i=this._sourceBuffers[t];if(i){for(var r=i.buffered,n=!1,s=0;s<r.length;s++){var o=r.start(s),a=r.end(s);if(o<=e&&e<a+3){if(e-o>=this._config.autoCleanupMaxBackwardDuration){n=!0;var u=e-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[t].push({start:o,end:u})}}else a<e&&(n=!0,this._pendingRemoveRanges[t].push({start:o,end:a}))}n&&!i.updating&&this._doRemoveRanges()}}},e.prototype._updateMediaSourceDuration=function(){var e=this._sourceBuffers;if(0!==this._mediaElement.readyState&&"open"===this._mediaSource.readyState&&!(e.video&&e.video.updating||e.audio&&e.audio.updating)){var t=this._mediaSource.duration,i=this._pendingMediaDuration;i>0&&(isNaN(t)||i>t)&&(s.default.v(this.TAG,"Update MediaSource duration from "+t+" to "+i),this._mediaSource.duration=i),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}},e.prototype._doRemoveRanges=function(){for(var e in this._pendingRemoveRanges)if(this._sourceBuffers[e]&&!this._sourceBuffers[e].updating)for(var t=this._sourceBuffers[e],i=this._pendingRemoveRanges[e];i.length&&!t.updating;){var r=i.shift();t.remove(r.start,r.end)}},e.prototype._doAppendSegments=function(){var e=this._pendingSegments;for(var t in e)if(this._sourceBuffers[t]&&!this._sourceBuffers[t].updating&&e[t].length>0){var i=e[t].shift();if(i.timestampOffset){var r=this._sourceBuffers[t].timestampOffset,n=i.timestampOffset/1e3;Math.abs(r-n)>.1&&(s.default.v(this.TAG,"Update MPEG audio timestampOffset from "+r+" to "+n),this._sourceBuffers[t].timestampOffset=n),delete i.timestampOffset}if(!i.data||0===i.data.byteLength)continue;try{this._sourceBuffers[t].appendBuffer(i.data),this._isBufferFull=!1,"video"===t&&i.hasOwnProperty("info")&&this._idrList.appendArray(i.info.syncPoints)}catch(o){this._pendingSegments[t].unshift(i),22===o.code?(this._isBufferFull||this._emitter.emit(a.default.BUFFER_FULL),this._isBufferFull=!0):(s.default.e(this.TAG,o.message),this._emitter.emit(a.default.ERROR,{code:o.code,msg:o.message}))}}},e.prototype._onSourceOpen=function(){if(s.default.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0)for(var e=this._pendingSourceBufferInit;e.length;){var t=e.shift();this.appendInitSegment(t,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(a.default.SOURCE_OPEN)},e.prototype._onSourceEnded=function(){s.default.v(this.TAG,"MediaSource onSourceEnded")},e.prototype._onSourceClose=function(){s.default.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&null!=this.e&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))},e.prototype._hasPendingSegments=function(){var e=this._pendingSegments;return e.video.length>0||e.audio.length>0},e.prototype._hasPendingRemoveRanges=function(){var e=this._pendingRemoveRanges;return e.video.length>0||e.audio.length>0},e.prototype._onSourceBufferUpdateEnd=function(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(a.default.UPDATE_END)},e.prototype._onSourceBufferError=function(e){s.default.e(this.TAG,"SourceBuffer Error: "+e)},e}();t.default=d},"./src/core/mse-events.js":
34
+ /*!********************************!*\
35
+ !*** ./src/core/mse-events.js ***!
36
+ \********************************/function(e,t,i){i.r(t),t.default={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"}},"./src/core/transmuxer.js":
37
+ /*!********************************!*\
38
+ !*** ./src/core/transmuxer.js ***!
39
+ \********************************/function(e,t,i){i.r(t);var r=i(/*! events */"./node_modules/events/events.js"),n=i.n(r),s=i(/*! webworkify-webpack */"./node_modules/webworkify-webpack/index.js"),o=i.n(s),a=i(/*! ../utils/logger.js */"./src/utils/logger.js"),u=i(/*! ../utils/logging-control.js */"./src/utils/logging-control.js"),l=i(/*! ./transmuxing-controller.js */"./src/core/transmuxing-controller.js"),d=i(/*! ./transmuxing-events.js */"./src/core/transmuxing-events.js"),h=i(/*! ./media-info.js */"./src/core/media-info.js"),c=function(){function e(e,t){if(this.TAG="Transmuxer",this._emitter=new(n()),t.enableWorker&&"undefined"!=typeof Worker)try{this._worker=o()(/*! ./transmuxing-worker */"./src/core/transmuxing-worker.js"),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[e,t]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},u.default.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:u.default.getConfig()})}catch(r){a.default.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new l.default(e,t)}else this._controller=new l.default(e,t);if(this._controller){var i=this._controller;i.on(d.default.IO_ERROR,this._onIOError.bind(this)),i.on(d.default.DEMUX_ERROR,this._onDemuxError.bind(this)),i.on(d.default.INIT_SEGMENT,this._onInitSegment.bind(this)),i.on(d.default.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),i.on(d.default.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),i.on(d.default.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),i.on(d.default.MEDIA_INFO,this._onMediaInfo.bind(this)),i.on(d.default.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),i.on(d.default.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),i.on(d.default.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),i.on(d.default.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return e.prototype.destroy=function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),u.default.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null},e.prototype.on=function(e,t){this._emitter.addListener(e,t)},e.prototype.off=function(e,t){this._emitter.removeListener(e,t)},e.prototype.hasWorker=function(){return null!=this._worker},e.prototype.open=function(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()},e.prototype.close=function(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()},e.prototype.seek=function(e){this._worker?this._worker.postMessage({cmd:"seek",param:e}):this._controller.seek(e)},e.prototype.pause=function(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()},e.prototype.resume=function(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()},e.prototype._onInitSegment=function(e,t){var i=this;Promise.resolve().then((function(){i._emitter.emit(d.default.INIT_SEGMENT,e,t)}))},e.prototype._onMediaSegment=function(e,t){var i=this;Promise.resolve().then((function(){i._emitter.emit(d.default.MEDIA_SEGMENT,e,t)}))},e.prototype._onLoadingComplete=function(){var e=this;Promise.resolve().then((function(){e._emitter.emit(d.default.LOADING_COMPLETE)}))},e.prototype._onRecoveredEarlyEof=function(){var e=this;Promise.resolve().then((function(){e._emitter.emit(d.default.RECOVERED_EARLY_EOF)}))},e.prototype._onMediaInfo=function(e){var t=this;Promise.resolve().then((function(){t._emitter.emit(d.default.MEDIA_INFO,e)}))},e.prototype._onMetaDataArrived=function(e){var t=this;Promise.resolve().then((function(){t._emitter.emit(d.default.METADATA_ARRIVED,e)}))},e.prototype._onScriptDataArrived=function(e){var t=this;Promise.resolve().then((function(){t._emitter.emit(d.default.SCRIPTDATA_ARRIVED,e)}))},e.prototype._onStatisticsInfo=function(e){var t=this;Promise.resolve().then((function(){t._emitter.emit(d.default.STATISTICS_INFO,e)}))},e.prototype._onIOError=function(e,t){var i=this;Promise.resolve().then((function(){i._emitter.emit(d.default.IO_ERROR,e,t)}))},e.prototype._onDemuxError=function(e,t){var i=this;Promise.resolve().then((function(){i._emitter.emit(d.default.DEMUX_ERROR,e,t)}))},e.prototype._onRecommendSeekpoint=function(e){var t=this;Promise.resolve().then((function(){t._emitter.emit(d.default.RECOMMEND_SEEKPOINT,e)}))},e.prototype._onLoggingConfigChanged=function(e){this._worker&&this._worker.postMessage({cmd:"logging_config",param:e})},e.prototype._onWorkerMessage=function(e){var t=e.data,i=t.data;if("destroyed"===t.msg||this._workerDestroying)return this._workerDestroying=!1,this._worker.terminate(),void(this._worker=null);switch(t.msg){case d.default.INIT_SEGMENT:case d.default.MEDIA_SEGMENT:this._emitter.emit(t.msg,i.type,i.data);break;case d.default.LOADING_COMPLETE:case d.default.RECOVERED_EARLY_EOF:this._emitter.emit(t.msg);break;case d.default.MEDIA_INFO:Object.setPrototypeOf(i,h.default.prototype),this._emitter.emit(t.msg,i);break;case d.default.METADATA_ARRIVED:case d.default.SCRIPTDATA_ARRIVED:case d.default.STATISTICS_INFO:this._emitter.emit(t.msg,i);break;case d.default.IO_ERROR:case d.default.DEMUX_ERROR:this._emitter.emit(t.msg,i.type,i.info);break;case d.default.RECOMMEND_SEEKPOINT:this._emitter.emit(t.msg,i);break;case"logcat_callback":a.default.emitter.emit("log",i.type,i.logcat)}},e}();t.default=c},"./src/core/transmuxing-controller.js":
40
+ /*!********************************************!*\
41
+ !*** ./src/core/transmuxing-controller.js ***!
42
+ \********************************************/function(e,t,i){i.r(t);var r=i(/*! events */"./node_modules/events/events.js"),n=i.n(r),s=i(/*! ../utils/logger.js */"./src/utils/logger.js"),o=i(/*! ../utils/browser.js */"./src/utils/browser.js"),a=i(/*! ./media-info.js */"./src/core/media-info.js"),u=i(/*! ../demux/flv-demuxer.js */"./src/demux/flv-demuxer.js"),l=i(/*! ../remux/mp4-remuxer.js */"./src/remux/mp4-remuxer.js"),d=i(/*! ../demux/demux-errors.js */"./src/demux/demux-errors.js"),h=i(/*! ../io/io-controller.js */"./src/io/io-controller.js"),c=i(/*! ./transmuxing-events.js */"./src/core/transmuxing-events.js"),f=function(){function e(e,t){this.TAG="TransmuxingController",this._emitter=new(n()),this._config=t,e.segments||(e.segments=[{duration:e.duration,filesize:e.filesize,url:e.url}]),"boolean"!=typeof e.cors&&(e.cors=!0),"boolean"!=typeof e.withCredentials&&(e.withCredentials=!1),this._mediaDataSource=e,this._currentSegmentIndex=0;var i=0;this._mediaDataSource.segments.forEach((function(r){r.timestampBase=i,i+=r.duration,r.cors=e.cors,r.withCredentials=e.withCredentials,t.referrerPolicy&&(r.referrerPolicy=t.referrerPolicy)})),isNaN(i)||this._mediaDataSource.duration===i||(this._mediaDataSource.duration=i),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}return e.prototype.destroy=function(){this._mediaInfo=null,this._mediaDataSource=null,this._statisticsReporter&&this._disableStatisticsReporter(),this._ioctl&&(this._ioctl.destroy(),this._ioctl=null),this._demuxer&&(this._demuxer.destroy(),this._demuxer=null),this._remuxer&&(this._remuxer.destroy(),this._remuxer=null),this._emitter.removeAllListeners(),this._emitter=null},e.prototype.on=function(e,t){this._emitter.addListener(e,t)},e.prototype.off=function(e,t){this._emitter.removeListener(e,t)},e.prototype.start=function(){this._loadSegment(0),this._enableStatisticsReporter()},e.prototype._loadSegment=function(e,t){this._currentSegmentIndex=e;var i=this._mediaDataSource.segments[e],r=this._ioctl=new h.default(i,this._config,e);r.onError=this._onIOException.bind(this),r.onSeeked=this._onIOSeeked.bind(this),r.onComplete=this._onIOComplete.bind(this),r.onRedirect=this._onIORedirect.bind(this),r.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),t?this._demuxer.bindDataSource(this._ioctl):r.onDataArrival=this._onInitChunkArrival.bind(this),r.open(t)},e.prototype.stop=function(){this._internalAbort(),this._disableStatisticsReporter()},e.prototype._internalAbort=function(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)},e.prototype.pause=function(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())},e.prototype.resume=function(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())},e.prototype.seek=function(e){if(null!=this._mediaInfo&&this._mediaInfo.isSeekable()){var t=this._searchSegmentIndexContains(e);if(t===this._currentSegmentIndex){var i=this._mediaInfo.segments[t];if(null==i)this._pendingSeekTime=e;else{var r=i.getNearestKeyframe(e);this._remuxer.seek(r.milliseconds),this._ioctl.seek(r.fileposition),this._pendingResolveSeekPoint=r.milliseconds}}else{var n=this._mediaInfo.segments[t];null==n?(this._pendingSeekTime=e,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(t)):(r=n.getNearestKeyframe(e),this._internalAbort(),this._remuxer.seek(e),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[t].timestampBase,this._loadSegment(t,r.fileposition),this._pendingResolveSeekPoint=r.milliseconds,this._reportSegmentMediaInfo(t))}this._enableStatisticsReporter()}},e.prototype._searchSegmentIndexContains=function(e){for(var t=this._mediaDataSource.segments,i=t.length-1,r=0;r<t.length;r++)if(e<t[r].timestampBase){i=r-1;break}return i},e.prototype._onInitChunkArrival=function(e,t){var i=this,r=null,n=0;if(t>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,n=this._demuxer.parseChunks(e,t);else if((r=u.default.probe(e)).match){this._demuxer=new u.default(r,this._config),this._remuxer||(this._remuxer=new l.default(this._config));var o=this._mediaDataSource;null==o.duration||isNaN(o.duration)||(this._demuxer.overridedDuration=o.duration),"boolean"==typeof o.hasAudio&&(this._demuxer.overridedHasAudio=o.hasAudio),"boolean"==typeof o.hasVideo&&(this._demuxer.overridedHasVideo=o.hasVideo),this._demuxer.timestampBase=o.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),n=this._demuxer.parseChunks(e,t)}else r=null,s.default.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then((function(){i._internalAbort()})),this._emitter.emit(c.default.DEMUX_ERROR,d.default.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),n=0;return n},e.prototype._onMediaInfo=function(e){var t=this;null==this._mediaInfo&&(this._mediaInfo=Object.assign({},e),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,a.default.prototype));var i=Object.assign({},e);Object.setPrototypeOf(i,a.default.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=i,this._reportSegmentMediaInfo(this._currentSegmentIndex),null!=this._pendingSeekTime&&Promise.resolve().then((function(){var e=t._pendingSeekTime;t._pendingSeekTime=null,t.seek(e)}))},e.prototype._onMetaDataArrived=function(e){this._emitter.emit(c.default.METADATA_ARRIVED,e)},e.prototype._onScriptDataArrived=function(e){this._emitter.emit(c.default.SCRIPTDATA_ARRIVED,e)},e.prototype._onIOSeeked=function(){this._remuxer.insertDiscontinuity()},e.prototype._onIOComplete=function(e){var t=e+1;t<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(t)):(this._remuxer.flushStashedSamples(),this._emitter.emit(c.default.LOADING_COMPLETE),this._disableStatisticsReporter())},e.prototype._onIORedirect=function(e){var t=this._ioctl.extraData;this._mediaDataSource.segments[t].redirectedURL=e},e.prototype._onIORecoveredEarlyEof=function(){this._emitter.emit(c.default.RECOVERED_EARLY_EOF)},e.prototype._onIOException=function(e,t){s.default.e(this.TAG,"IOException: type = "+e+", code = "+t.code+", msg = "+t.msg),this._emitter.emit(c.default.IO_ERROR,e,t),this._disableStatisticsReporter()},e.prototype._onDemuxException=function(e,t){s.default.e(this.TAG,"DemuxException: type = "+e+", info = "+t),this._emitter.emit(c.default.DEMUX_ERROR,e,t)},e.prototype._onRemuxerInitSegmentArrival=function(e,t){this._emitter.emit(c.default.INIT_SEGMENT,e,t)},e.prototype._onRemuxerMediaSegmentArrival=function(e,t){if(null==this._pendingSeekTime&&(this._emitter.emit(c.default.MEDIA_SEGMENT,e,t),null!=this._pendingResolveSeekPoint&&"video"===e)){var i=t.info.syncPoints,r=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,o.default.safari&&i.length>0&&i[0].originalDts===r&&(r=i[0].pts),this._emitter.emit(c.default.RECOMMEND_SEEKPOINT,r)}},e.prototype._enableStatisticsReporter=function(){null==this._statisticsReporter&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))},e.prototype._disableStatisticsReporter=function(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)},e.prototype._reportSegmentMediaInfo=function(e){var t=this._mediaInfo.segments[e],i=Object.assign({},t);i.duration=this._mediaInfo.duration,i.segmentCount=this._mediaInfo.segmentCount,delete i.segments,delete i.keyframesIndex,this._emitter.emit(c.default.MEDIA_INFO,i)},e.prototype._reportStatisticsInfo=function(){var e={};e.url=this._ioctl.currentURL,e.hasRedirect=this._ioctl.hasRedirect,e.hasRedirect&&(e.redirectedURL=this._ioctl.currentRedirectedURL),e.speed=this._ioctl.currentSpeed,e.loaderType=this._ioctl.loaderType,e.currentSegmentIndex=this._currentSegmentIndex,e.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(c.default.STATISTICS_INFO,e)},e}();t.default=f},"./src/core/transmuxing-events.js":
43
+ /*!****************************************!*\
44
+ !*** ./src/core/transmuxing-events.js ***!
45
+ \****************************************/function(e,t,i){i.r(t),t.default={IO_ERROR:"io_error",DEMUX_ERROR:"demux_error",INIT_SEGMENT:"init_segment",MEDIA_SEGMENT:"media_segment",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info",RECOMMEND_SEEKPOINT:"recommend_seekpoint"}},"./src/core/transmuxing-worker.js":
46
+ /*!****************************************!*\
47
+ !*** ./src/core/transmuxing-worker.js ***!
48
+ \****************************************/function(e,t,i){i.r(t);var r=i(/*! ../utils/logging-control.js */"./src/utils/logging-control.js"),n=i(/*! ../utils/polyfill.js */"./src/utils/polyfill.js"),s=i(/*! ./transmuxing-controller.js */"./src/core/transmuxing-controller.js"),o=i(/*! ./transmuxing-events.js */"./src/core/transmuxing-events.js");t.default=function(e){var t=null,i=function(t,i){e.postMessage({msg:"logcat_callback",data:{type:t,logcat:i}})}.bind(this);function a(t,i){var r={msg:o.default.INIT_SEGMENT,data:{type:t,data:i}};e.postMessage(r,[i.data])}function u(t,i){var r={msg:o.default.MEDIA_SEGMENT,data:{type:t,data:i}};e.postMessage(r,[i.data])}function l(){var t={msg:o.default.LOADING_COMPLETE};e.postMessage(t)}function d(){var t={msg:o.default.RECOVERED_EARLY_EOF};e.postMessage(t)}function h(t){var i={msg:o.default.MEDIA_INFO,data:t};e.postMessage(i)}function c(t){var i={msg:o.default.METADATA_ARRIVED,data:t};e.postMessage(i)}function f(t){var i={msg:o.default.SCRIPTDATA_ARRIVED,data:t};e.postMessage(i)}function _(t){var i={msg:o.default.STATISTICS_INFO,data:t};e.postMessage(i)}function p(t,i){e.postMessage({msg:o.default.IO_ERROR,data:{type:t,info:i}})}function m(t,i){e.postMessage({msg:o.default.DEMUX_ERROR,data:{type:t,info:i}})}function g(t){e.postMessage({msg:o.default.RECOMMEND_SEEKPOINT,data:t})}n.default.install(),e.addEventListener("message",(function(n){switch(n.data.cmd){case"init":(t=new s.default(n.data.param[0],n.data.param[1])).on(o.default.IO_ERROR,p.bind(this)),t.on(o.default.DEMUX_ERROR,m.bind(this)),t.on(o.default.INIT_SEGMENT,a.bind(this)),t.on(o.default.MEDIA_SEGMENT,u.bind(this)),t.on(o.default.LOADING_COMPLETE,l.bind(this)),t.on(o.default.RECOVERED_EARLY_EOF,d.bind(this)),t.on(o.default.MEDIA_INFO,h.bind(this)),t.on(o.default.METADATA_ARRIVED,c.bind(this)),t.on(o.default.SCRIPTDATA_ARRIVED,f.bind(this)),t.on(o.default.STATISTICS_INFO,_.bind(this)),t.on(o.default.RECOMMEND_SEEKPOINT,g.bind(this));break;case"destroy":t&&(t.destroy(),t=null),e.postMessage({msg:"destroyed"});break;case"start":t.start();break;case"stop":t.stop();break;case"seek":t.seek(n.data.param);break;case"pause":t.pause();break;case"resume":t.resume();break;case"logging_config":var v=n.data.param;r.default.applyConfig(v),!0===v.enableCallback?r.default.addLogListener(i):r.default.removeLogListener(i)}}))}},"./src/demux/amf-parser.js":
49
+ /*!*********************************!*\
50
+ !*** ./src/demux/amf-parser.js ***!
51
+ \*********************************/function(e,t,i){i.r(t);var r,n=i(/*! ../utils/logger.js */"./src/utils/logger.js"),s=i(/*! ../utils/utf8-conv.js */"./src/utils/utf8-conv.js"),o=i(/*! ../utils/exception.js */"./src/utils/exception.js"),a=(r=new ArrayBuffer(2),new DataView(r).setInt16(0,256,!0),256===new Int16Array(r)[0]),u=function(){function e(){}return e.parseScriptData=function(t,i,r){var s={};try{var o=e.parseValue(t,i,r),a=e.parseValue(t,i+o.size,r-o.size);s[o.data]=a.data}catch(u){n.default.e("AMF",u.toString())}return s},e.parseObject=function(t,i,r){if(r<3)throw new o.IllegalStateException("Data not enough when parse ScriptDataObject");var n=e.parseString(t,i,r),s=e.parseValue(t,i+n.size,r-n.size),a=s.objectEnd;return{data:{name:n.data,value:s.data},size:n.size+s.size,objectEnd:a}},e.parseVariable=function(t,i,r){return e.parseObject(t,i,r)},e.parseString=function(e,t,i){if(i<2)throw new o.IllegalStateException("Data not enough when parse String");var r=new DataView(e,t,i).getUint16(0,!a);return{data:r>0?(0,s.default)(new Uint8Array(e,t+2,r)):"",size:2+r}},e.parseLongString=function(e,t,i){if(i<4)throw new o.IllegalStateException("Data not enough when parse LongString");var r=new DataView(e,t,i).getUint32(0,!a);return{data:r>0?(0,s.default)(new Uint8Array(e,t+4,r)):"",size:4+r}},e.parseDate=function(e,t,i){if(i<10)throw new o.IllegalStateException("Data size invalid when parse Date");var r=new DataView(e,t,i),n=r.getFloat64(0,!a),s=r.getInt16(8,!a);return{data:new Date(n+=60*s*1e3),size:10}},e.parseValue=function(t,i,r){if(r<1)throw new o.IllegalStateException("Data not enough when parse Value");var s,u=new DataView(t,i,r),l=1,d=u.getUint8(0),h=!1;try{switch(d){case 0:s=u.getFloat64(1,!a),l+=8;break;case 1:s=!!u.getUint8(1),l+=1;break;case 2:var c=e.parseString(t,i+1,r-1);s=c.data,l+=c.size;break;case 3:s={};var f=0;for(9==(16777215&u.getUint32(r-4,!a))&&(f=3);l<r-4;){var _=e.parseObject(t,i+l,r-l-f);if(_.objectEnd)break;s[_.data.name]=_.data.value,l+=_.size}l<=r-3&&9==(16777215&u.getUint32(l-1,!a))&&(l+=3);break;case 8:for(s={},l+=4,f=0,9==(16777215&u.getUint32(r-4,!a))&&(f=3);l<r-8;){var p=e.parseVariable(t,i+l,r-l-f);if(p.objectEnd)break;s[p.data.name]=p.data.value,l+=p.size}l<=r-3&&9==(16777215&u.getUint32(l-1,!a))&&(l+=3);break;case 9:s=void 0,l=1,h=!0;break;case 10:s=[];var m=u.getUint32(1,!a);l+=4;for(var g=0;g<m;g++){var v=e.parseValue(t,i+l,r-l);s.push(v.data),l+=v.size}break;case 11:var y=e.parseDate(t,i+1,r-1);s=y.data,l+=y.size;break;case 12:var b=e.parseString(t,i+1,r-1);s=b.data,l+=b.size;break;default:l=r,n.default.w("AMF","Unsupported AMF value type "+d)}}catch(E){n.default.e("AMF",E.toString())}return{data:s,size:l,objectEnd:h}},e}();t.default=u},"./src/demux/demux-errors.js":
52
+ /*!***********************************!*\
53
+ !*** ./src/demux/demux-errors.js ***!
54
+ \***********************************/function(e,t,i){i.r(t),t.default={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"}},"./src/demux/exp-golomb.js":
55
+ /*!*********************************!*\
56
+ !*** ./src/demux/exp-golomb.js ***!
57
+ \*********************************/function(e,t,i){i.r(t);var r=i(/*! ../utils/exception.js */"./src/utils/exception.js"),n=function(){function e(e){this.TAG="ExpGolomb",this._buffer=e,this._buffer_index=0,this._total_bytes=e.byteLength,this._total_bits=8*e.byteLength,this._current_word=0,this._current_word_bits_left=0}return e.prototype.destroy=function(){this._buffer=null},e.prototype._fillCurrentWord=function(){var e=this._total_bytes-this._buffer_index;if(e<=0)throw new r.IllegalStateException("ExpGolomb: _fillCurrentWord() but no bytes available");var t=Math.min(4,e),i=new Uint8Array(4);i.set(this._buffer.subarray(this._buffer_index,this._buffer_index+t)),this._current_word=new DataView(i.buffer).getUint32(0,!1),this._buffer_index+=t,this._current_word_bits_left=8*t},e.prototype.readBits=function(e){if(e>32)throw new r.InvalidArgumentException("ExpGolomb: readBits() bits exceeded max 32bits!");if(e<=this._current_word_bits_left){var t=this._current_word>>>32-e;return this._current_word<<=e,this._current_word_bits_left-=e,t}var i=this._current_word_bits_left?this._current_word:0;i>>>=32-this._current_word_bits_left;var n=e-this._current_word_bits_left;this._fillCurrentWord();var s=Math.min(n,this._current_word_bits_left),o=this._current_word>>>32-s;return this._current_word<<=s,this._current_word_bits_left-=s,i=i<<s|o},e.prototype.readBool=function(){return 1===this.readBits(1)},e.prototype.readByte=function(){return this.readBits(8)},e.prototype._skipLeadingZero=function(){var e;for(e=0;e<this._current_word_bits_left;e++)if(0!=(this._current_word&2147483648>>>e))return this._current_word<<=e,this._current_word_bits_left-=e,e;return this._fillCurrentWord(),e+this._skipLeadingZero()},e.prototype.readUEG=function(){var e=this._skipLeadingZero();return this.readBits(e+1)-1},e.prototype.readSEG=function(){var e=this.readUEG();return 1&e?e+1>>>1:-1*(e>>>1)},e}();t.default=n},"./src/demux/flv-demuxer.js":
58
+ /*!**********************************!*\
59
+ !*** ./src/demux/flv-demuxer.js ***!
60
+ \**********************************/function(e,t,r){r.r(t);var n=r(/*! ../utils/logger.js */"./src/utils/logger.js"),s=r(/*! ./amf-parser.js */"./src/demux/amf-parser.js"),o=r(/*! ./sps-parser.js */"./src/demux/sps-parser.js"),a=r(/*! ./demux-errors.js */"./src/demux/demux-errors.js"),u=r(/*! ../core/media-info.js */"./src/core/media-info.js"),l=r(/*! ../utils/exception.js */"./src/utils/exception.js"),d=function(){function e(e,t){var i;this.TAG="FLVDemuxer",this._config=t,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=e.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=e.hasAudioTrack,this._hasVideo=e.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new u.default,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=(i=new ArrayBuffer(2),new DataView(i).setInt16(0,256,!0),256===new Int16Array(i)[0])}return e.prototype.destroy=function(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null},e.probe=function(e){var t=new Uint8Array(e),i={match:!1};if(70!==t[0]||76!==t[1]||86!==t[2]||1!==t[3])return i;var r,n,s=(4&t[4])>>>2!=0,o=0!=(1&t[4]),a=(r=t)[n=5]<<24|r[n+1]<<16|r[n+2]<<8|r[n+3];return a<9?i:{match:!0,consumed:a,dataOffset:a,hasAudioTrack:s,hasVideoTrack:o}},e.prototype.bindDataSource=function(e){return e.onDataArrival=this.parseChunks.bind(this),this},Object.defineProperty(e.prototype,"onTrackMetadata",{get:function(){return this._onTrackMetadata},set:function(e){this._onTrackMetadata=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onMediaInfo",{get:function(){return this._onMediaInfo},set:function(e){this._onMediaInfo=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onMetaDataArrived",{get:function(){return this._onMetaDataArrived},set:function(e){this._onMetaDataArrived=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onScriptDataArrived",{get:function(){return this._onScriptDataArrived},set:function(e){this._onScriptDataArrived=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onError",{get:function(){return this._onError},set:function(e){this._onError=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onDataAvailable",{get:function(){return this._onDataAvailable},set:function(e){this._onDataAvailable=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"timestampBase",{get:function(){return this._timestampBase},set:function(e){this._timestampBase=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overridedDuration",{get:function(){return this._duration},set:function(e){this._durationOverrided=!0,this._duration=e,this._mediaInfo.duration=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overridedHasAudio",{set:function(e){this._hasAudioFlagOverrided=!0,this._hasAudio=e,this._mediaInfo.hasAudio=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overridedHasVideo",{set:function(e){this._hasVideoFlagOverrided=!0,this._hasVideo=e,this._mediaInfo.hasVideo=e},enumerable:!1,configurable:!0}),e.prototype.resetMediaInfo=function(){this._mediaInfo=new u.default},e.prototype._isInitialMetadataDispatched=function(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!(this._hasAudio||!this._hasVideo)&&this._videoInitialMetadataDispatched},e.prototype.parseChunks=function(t,i){if(!(this._onError&&this._onMediaInfo&&this._onTrackMetadata&&this._onDataAvailable))throw new l.IllegalStateException("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var r=0,s=this._littleEndian;if(0===i){if(!(t.byteLength>13))return 0;r=e.probe(t).dataOffset}for(this._firstParse&&(this._firstParse=!1,i+r!==this._dataOffset&&n.default.w(this.TAG,"First time parsing but chunk byteStart invalid!"),0!==(o=new DataView(t,r)).getUint32(0,!s)&&n.default.w(this.TAG,"PrevTagSize0 !== 0 !!!"),r+=4);r<t.byteLength;){this._dispatch=!0;var o=new DataView(t,r);if(r+11+4>t.byteLength)break;var a=o.getUint8(0),u=16777215&o.getUint32(0,!s);if(r+11+u+4>t.byteLength)break;if(8===a||9===a||18===a){var d=o.getUint8(4),h=o.getUint8(5),c=o.getUint8(6)|h<<8|d<<16|o.getUint8(7)<<24;0!=(16777215&o.getUint32(7,!s))&&n.default.w(this.TAG,"Meet tag which has StreamID != 0!");var f=r+11;switch(a){case 8:this._parseAudioData(t,f,u,c);break;case 9:this._parseVideoData(t,f,u,c,i+r);break;case 18:this._parseScriptData(t,f,u)}var _=o.getUint32(11+u,!s);_!==11+u&&n.default.w(this.TAG,"Invalid PrevTagSize "+_),r+=11+u+4}else n.default.w(this.TAG,"Unsupported tag type "+a+", skipped"),r+=11+u+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),r},e.prototype._parseScriptData=function(e,t,r){var o=s.default.parseScriptData(e,t,r);if(o.hasOwnProperty("onMetaData")){if(null==o.onMetaData||"object"!==i(o.onMetaData))return void n.default.w(this.TAG,"Invalid onMetaData structure!");this._metadata&&n.default.w(this.TAG,"Found another onMetaData tag!"),this._metadata=o;var a=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},a)),"boolean"==typeof a.hasAudio&&!1===this._hasAudioFlagOverrided&&(this._hasAudio=a.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),"boolean"==typeof a.hasVideo&&!1===this._hasVideoFlagOverrided&&(this._hasVideo=a.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),"number"==typeof a.audiodatarate&&(this._mediaInfo.audioDataRate=a.audiodatarate),"number"==typeof a.videodatarate&&(this._mediaInfo.videoDataRate=a.videodatarate),"number"==typeof a.width&&(this._mediaInfo.width=a.width),"number"==typeof a.height&&(this._mediaInfo.height=a.height),"number"==typeof a.duration){if(!this._durationOverrided){var u=Math.floor(a.duration*this._timescale);this._duration=u,this._mediaInfo.duration=u}}else this._mediaInfo.duration=0;if("number"==typeof a.framerate){var l=Math.floor(1e3*a.framerate);if(l>0){var d=l/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=d,this._referenceFrameRate.fps_num=l,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=d}}if("object"===i(a.keyframes)){this._mediaInfo.hasKeyframesIndex=!0;var h=a.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(h),a.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=a,n.default.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(o).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},o))},e.prototype._parseKeyframesIndex=function(e){for(var t=[],i=[],r=1;r<e.times.length;r++){var n=this._timestampBase+Math.floor(1e3*e.times[r]);t.push(n),i.push(e.filepositions[r])}return{times:t,filepositions:i}},e.prototype._parseAudioData=function(e,t,i,r){if(i<=1)n.default.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");else if(!0!==this._hasAudioFlagOverrided||!1!==this._hasAudio){this._littleEndian;var s=new DataView(e,t,i).getUint8(0),o=s>>>4;if(2===o||10===o){var u=0,l=(12&s)>>>2;if(l>=0&&l<=4){u=this._flvSoundRateTable[l];var d=1&s,h=this._audioMetadata,c=this._audioTrack;if(h||(!1===this._hasAudio&&!1===this._hasAudioFlagOverrided&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),(h=this._audioMetadata={}).type="audio",h.id=c.id,h.timescale=this._timescale,h.duration=this._duration,h.audioSampleRate=u,h.channelCount=0===d?1:2),10===o){var f=this._parseAACAudioData(e,t+1,i-1);if(null==f)return;if(0===f.packetType){h.config&&n.default.w(this.TAG,"Found another AudioSpecificConfig!");var _=f.data;h.audioSampleRate=_.samplingRate,h.channelCount=_.channelCount,h.codec=_.codec,h.originalCodec=_.originalCodec,h.config=_.config,h.refSampleDuration=1024/h.audioSampleRate*h.timescale,n.default.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",h),(g=this._mediaInfo).audioCodec=h.originalCodec,g.audioSampleRate=h.audioSampleRate,g.audioChannelCount=h.channelCount,g.hasVideo?null!=g.videoCodec&&(g.mimeType='video/x-flv; codecs="'+g.videoCodec+","+g.audioCodec+'"'):g.mimeType='video/x-flv; codecs="'+g.audioCodec+'"',g.isComplete()&&this._onMediaInfo(g)}else if(1===f.packetType){var p=this._timestampBase+r,m={unit:f.data,length:f.data.byteLength,dts:p,pts:p};c.samples.push(m),c.length+=f.data.length}else n.default.e(this.TAG,"Flv: Unsupported AAC data type "+f.packetType)}else if(2===o){if(!h.codec){var g;if(null==(_=this._parseMP3AudioData(e,t+1,i-1,!0)))return;h.audioSampleRate=_.samplingRate,h.channelCount=_.channelCount,h.codec=_.codec,h.originalCodec=_.originalCodec,h.refSampleDuration=1152/h.audioSampleRate*h.timescale,n.default.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",h),(g=this._mediaInfo).audioCodec=h.codec,g.audioSampleRate=h.audioSampleRate,g.audioChannelCount=h.channelCount,g.audioDataRate=_.bitRate,g.hasVideo?null!=g.videoCodec&&(g.mimeType='video/x-flv; codecs="'+g.videoCodec+","+g.audioCodec+'"'):g.mimeType='video/x-flv; codecs="'+g.audioCodec+'"',g.isComplete()&&this._onMediaInfo(g)}var v=this._parseMP3AudioData(e,t+1,i-1,!1);if(null==v)return;p=this._timestampBase+r;var y={unit:v,length:v.byteLength,dts:p,pts:p};c.samples.push(y),c.length+=v.length}}else this._onError(a.default.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+l)}else this._onError(a.default.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+o)}},e.prototype._parseAACAudioData=function(e,t,i){if(!(i<=1)){var r={},s=new Uint8Array(e,t,i);return r.packetType=s[0],0===s[0]?r.data=this._parseAACAudioSpecificConfig(e,t+1,i-1):r.data=s.subarray(1),r}n.default.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!")},e.prototype._parseAACAudioSpecificConfig=function(e,t,i){var r,n,s=new Uint8Array(e,t,i),o=null,u=0,l=null;if(u=r=s[0]>>>3,(n=(7&s[0])<<1|s[1]>>>7)<0||n>=this._mpegSamplingRates.length)this._onError(a.default.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");else{var d=this._mpegSamplingRates[n],h=(120&s[1])>>>3;if(!(h<0||h>=8)){5===u&&(l=(7&s[1])<<1|s[2]>>>7,s[2]);var c=self.navigator.userAgent.toLowerCase();return-1!==c.indexOf("firefox")?n>=6?(u=5,o=new Array(4),l=n-3):(u=2,o=new Array(2),l=n):-1!==c.indexOf("android")?(u=2,o=new Array(2),l=n):(u=5,l=n,o=new Array(4),n>=6?l=n-3:1===h&&(u=2,o=new Array(2),l=n)),o[0]=u<<3,o[0]|=(15&n)>>>1,o[1]=(15&n)<<7,o[1]|=(15&h)<<3,5===u&&(o[1]|=(15&l)>>>1,o[2]=(1&l)<<7,o[2]|=8,o[3]=0),{config:o,samplingRate:d,channelCount:h,codec:"mp4a.40."+u,originalCodec:"mp4a.40."+r}}this._onError(a.default.FORMAT_ERROR,"Flv: AAC invalid channel configuration")}},e.prototype._parseMP3AudioData=function(e,t,i,r){if(!(i<4)){this._littleEndian;var s=new Uint8Array(e,t,i),o=null;if(r){if(255!==s[0])return;var a=s[1]>>>3&3,u=(6&s[1])>>1,l=(240&s[2])>>>4,d=(12&s[2])>>>2,h=3!=(s[3]>>>6&3)?2:1,c=0,f=0;switch(a){case 0:c=this._mpegAudioV25SampleRateTable[d];break;case 2:c=this._mpegAudioV20SampleRateTable[d];break;case 3:c=this._mpegAudioV10SampleRateTable[d]}switch(u){case 1:l<this._mpegAudioL3BitRateTable.length&&(f=this._mpegAudioL3BitRateTable[l]);break;case 2:l<this._mpegAudioL2BitRateTable.length&&(f=this._mpegAudioL2BitRateTable[l]);break;case 3:l<this._mpegAudioL1BitRateTable.length&&(f=this._mpegAudioL1BitRateTable[l])}o={bitRate:f,samplingRate:c,channelCount:h,codec:"mp3",originalCodec:"mp3"}}else o=s;return o}n.default.w(this.TAG,"Flv: Invalid MP3 packet, header missing!")},e.prototype._parseVideoData=function(e,t,i,r,s){if(i<=1)n.default.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");else if(!0!==this._hasVideoFlagOverrided||!1!==this._hasVideo){var o=new Uint8Array(e,t,i)[0],u=(240&o)>>>4,l=15&o;7===l?this._parseAVCVideoPacket(e,t+1,i-1,r,s,u):this._onError(a.default.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: "+l)}},e.prototype._parseAVCVideoPacket=function(e,t,i,r,s,o){if(i<4)n.default.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");else{var u=this._littleEndian,l=new DataView(e,t,i),d=l.getUint8(0),h=(16777215&l.getUint32(0,!u))<<8>>8;if(0===d)this._parseAVCDecoderConfigurationRecord(e,t+4,i-4);else if(1===d)this._parseAVCVideoData(e,t+4,i-4,r,s,o,h);else if(2!==d)return void this._onError(a.default.FORMAT_ERROR,"Flv: Invalid video packet type "+d)}},e.prototype._parseAVCDecoderConfigurationRecord=function(e,t,i){if(i<7)n.default.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");else{var r=this._videoMetadata,s=this._videoTrack,u=this._littleEndian,l=new DataView(e,t,i);r?void 0!==r.avcc&&n.default.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(!1===this._hasVideo&&!1===this._hasVideoFlagOverrided&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),(r=this._videoMetadata={}).type="video",r.id=s.id,r.timescale=this._timescale,r.duration=this._duration);var d=l.getUint8(0),h=l.getUint8(1);if(l.getUint8(2),l.getUint8(3),1===d&&0!==h)if(this._naluLengthSize=1+(3&l.getUint8(4)),3===this._naluLengthSize||4===this._naluLengthSize){var c=31&l.getUint8(5);if(0!==c){c>1&&n.default.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = "+c);for(var f=6,_=0;_<c;_++){var p=l.getUint16(f,!u);if(f+=2,0!==p){var m=new Uint8Array(e,t+f,p);f+=p;var g=o.default.parseSPS(m);if(0===_){r.codecWidth=g.codec_size.width,r.codecHeight=g.codec_size.height,r.presentWidth=g.present_size.width,r.presentHeight=g.present_size.height,r.profile=g.profile_string,r.level=g.level_string,r.bitDepth=g.bit_depth,r.chromaFormat=g.chroma_format,r.sarRatio=g.sar_ratio,r.frameRate=g.frame_rate,!1!==g.frame_rate.fixed&&0!==g.frame_rate.fps_num&&0!==g.frame_rate.fps_den||(r.frameRate=this._referenceFrameRate);var v=r.frameRate.fps_den,y=r.frameRate.fps_num;r.refSampleDuration=r.timescale*(v/y);for(var b=m.subarray(1,4),E="avc1.",S=0;S<3;S++){var L=b[S].toString(16);L.length<2&&(L="0"+L),E+=L}r.codec=E;var A=this._mediaInfo;A.width=r.codecWidth,A.height=r.codecHeight,A.fps=r.frameRate.fps,A.profile=r.profile,A.level=r.level,A.refFrames=g.ref_frames,A.chromaFormat=g.chroma_format_string,A.sarNum=r.sarRatio.width,A.sarDen=r.sarRatio.height,A.videoCodec=E,A.hasAudio?null!=A.audioCodec&&(A.mimeType='video/x-flv; codecs="'+A.videoCodec+","+A.audioCodec+'"'):A.mimeType='video/x-flv; codecs="'+A.videoCodec+'"',A.isComplete()&&this._onMediaInfo(A)}}}var R=l.getUint8(f);if(0!==R){for(R>1&&n.default.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = "+R),f++,_=0;_<R;_++)p=l.getUint16(f,!u),f+=2,0!==p&&(f+=p);r.avcc=new Uint8Array(i),r.avcc.set(new Uint8Array(e,t,i),0),n.default.v(this.TAG,"Parsed AVCDecoderConfigurationRecord"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._videoInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("video",r)}else this._onError(a.default.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS")}else this._onError(a.default.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS")}else this._onError(a.default.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: "+(this._naluLengthSize-1));else this._onError(a.default.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord")}},e.prototype._parseAVCVideoData=function(e,t,i,r,s,o,a){for(var u=this._littleEndian,l=new DataView(e,t,i),d=[],h=0,c=0,f=this._naluLengthSize,_=this._timestampBase+r,p=1===o;c<i;){if(c+4>=i){n.default.w(this.TAG,"Malformed Nalu near timestamp "+_+", offset = "+c+", dataSize = "+i);break}var m=l.getUint32(c,!u);if(3===f&&(m>>>=8),m>i-f)return void n.default.w(this.TAG,"Malformed Nalus near timestamp "+_+", NaluSize > DataSize!");var g=31&l.getUint8(c+f);5===g&&(p=!0);var v=new Uint8Array(e,t+c,f+m),y={type:g,data:v};d.push(y),h+=v.byteLength,c+=f+m}if(d.length){var b=this._videoTrack,E={units:d,length:h,isKeyframe:p,dts:_,cts:a,pts:_+a};p&&(E.fileposition=s),b.samples.push(E),b.length+=h}},e}();t.default=d},"./src/demux/sps-parser.js":
61
+ /*!*********************************!*\
62
+ !*** ./src/demux/sps-parser.js ***!
63
+ \*********************************/function(e,t,i){i.r(t);var r=i(/*! ./exp-golomb.js */"./src/demux/exp-golomb.js"),n=function(){function e(){}return e._ebsp2rbsp=function(e){for(var t=e,i=t.byteLength,r=new Uint8Array(i),n=0,s=0;s<i;s++)s>=2&&3===t[s]&&0===t[s-1]&&0===t[s-2]||(r[n]=t[s],n++);return new Uint8Array(r.buffer,0,n)},e.parseSPS=function(t){var i=e._ebsp2rbsp(t),n=new r.default(i);n.readByte();var s=n.readByte();n.readByte();var o=n.readByte();n.readUEG();var a=e.getProfileString(s),u=e.getLevelString(o),l=1,d=420,h=8;if((100===s||110===s||122===s||244===s||44===s||83===s||86===s||118===s||128===s||138===s||144===s)&&(3===(l=n.readUEG())&&n.readBits(1),l<=3&&(d=[0,420,422,444][l]),h=n.readUEG()+8,n.readUEG(),n.readBits(1),n.readBool()))for(var c=3!==l?8:12,f=0;f<c;f++)n.readBool()&&(f<6?e._skipScalingList(n,16):e._skipScalingList(n,64));n.readUEG();var _=n.readUEG();if(0===_)n.readUEG();else if(1===_){n.readBits(1),n.readSEG(),n.readSEG();var p=n.readUEG();for(f=0;f<p;f++)n.readSEG()}var m=n.readUEG();n.readBits(1);var g=n.readUEG(),v=n.readUEG(),y=n.readBits(1);0===y&&n.readBits(1),n.readBits(1);var b=0,E=0,S=0,L=0;n.readBool()&&(b=n.readUEG(),E=n.readUEG(),S=n.readUEG(),L=n.readUEG());var A=1,R=1,w=0,T=!0,O=0,k=0;if(n.readBool()){if(n.readBool()){var C=n.readByte();C>0&&C<16?(A=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2][C-1],R=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1][C-1]):255===C&&(A=n.readByte()<<8|n.readByte(),R=n.readByte()<<8|n.readByte())}if(n.readBool()&&n.readBool(),n.readBool()&&(n.readBits(4),n.readBool()&&n.readBits(24)),n.readBool()&&(n.readUEG(),n.readUEG()),n.readBool()){var I=n.readBits(32),D=n.readBits(32);T=n.readBool(),w=(O=D)/(k=2*I)}}var x=1;1===A&&1===R||(x=A/R);var M=0,B=0;0===l?(M=1,B=2-y):(M=3===l?1:2,B=(1===l?2:1)*(2-y));var P=16*(g+1),j=16*(v+1)*(2-y);P-=(b+E)*M,j-=(S+L)*B;var U=Math.ceil(P*x);return n.destroy(),n=null,{profile_string:a,level_string:u,bit_depth:h,ref_frames:m,chroma_format:d,chroma_format_string:e.getChromaFormatString(d),frame_rate:{fixed:T,fps:w,fps_den:k,fps_num:O},sar_ratio:{width:A,height:R},codec_size:{width:P,height:j},present_size:{width:U,height:j}}},e._skipScalingList=function(e,t){for(var i=8,r=8,n=0;n<t;n++)0!==r&&(r=(i+e.readSEG()+256)%256),i=0===r?i:r},e.getProfileString=function(e){switch(e){case 66:return"Baseline";case 77:return"Main";case 88:return"Extended";case 100:return"High";case 110:return"High10";case 122:return"High422";case 244:return"High444";default:return"Unknown"}},e.getLevelString=function(e){return(e/10).toFixed(1)},e.getChromaFormatString=function(e){switch(e){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}},e}();t.default=n},"./src/flv.js":
64
+ /*!********************!*\
65
+ !*** ./src/flv.js ***!
66
+ \********************/function(e,t,r){r.r(t);var n=r(/*! ./utils/polyfill.js */"./src/utils/polyfill.js"),s=r(/*! ./core/features.js */"./src/core/features.js"),o=r(/*! ./io/loader.js */"./src/io/loader.js"),a=r(/*! ./player/flv-player.js */"./src/player/flv-player.js"),u=r(/*! ./player/native-player.js */"./src/player/native-player.js"),l=r(/*! ./player/player-events.js */"./src/player/player-events.js"),d=r(/*! ./player/player-errors.js */"./src/player/player-errors.js"),h=r(/*! ./utils/logging-control.js */"./src/utils/logging-control.js"),c=r(/*! ./utils/exception.js */"./src/utils/exception.js");n.default.install();var f={createPlayer:function(e,t){var r=e;if(null==r||"object"!==i(r))throw new c.InvalidArgumentException("MediaDataSource must be an javascript object!");if(!r.hasOwnProperty("type"))throw new c.InvalidArgumentException("MediaDataSource must has type field to indicate video file type!");return"flv"===r.type?new a.default(r,t):new u.default(r,t)},isSupported:function(){return s.default.supportMSEH264Playback()},getFeatureList:function(){return s.default.getFeatureList()}};f.BaseLoader=o.BaseLoader,f.LoaderStatus=o.LoaderStatus,f.LoaderErrors=o.LoaderErrors,f.Events=l.default,f.ErrorTypes=d.ErrorTypes,f.ErrorDetails=d.ErrorDetails,f.FlvPlayer=a.default,f.NativePlayer=u.default,f.LoggingControl=h.default,Object.defineProperty(f,"version",{enumerable:!0,get:function(){return"1.6.2"}}),t.default=f},"./src/index.js":
67
+ /*!**********************!*\
68
+ !*** ./src/index.js ***!
69
+ \**********************/function(e,t,i){e.exports=i(/*! ./flv.js */"./src/flv.js").default},"./src/io/fetch-stream-loader.js":
70
+ /*!***************************************!*\
71
+ !*** ./src/io/fetch-stream-loader.js ***!
72
+ \***************************************/function(e,t,r){r.r(t);var n,s=r(/*! ../utils/browser.js */"./src/utils/browser.js"),o=r(/*! ./loader.js */"./src/io/loader.js"),a=r(/*! ../utils/exception.js */"./src/utils/exception.js"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),l=function(e){function t(t,i){var r=e.call(this,"fetch-stream-loader")||this;return r.TAG="FetchStreamLoader",r._seekHandler=t,r._config=i,r._needStash=!0,r._requestAbort=!1,r._contentLength=null,r._receivedLength=0,r}return u(t,e),t.isSupported=function(){try{var e=s.default.msedge&&s.default.version.minor>=15048,t=!s.default.msedge||e;return self.fetch&&self.ReadableStream&&t}catch(i){return!1}},t.prototype.destroy=function(){this.isWorking()&&this.abort(),e.prototype.destroy.call(this)},t.prototype.open=function(e,t){var r=this;this._dataSource=e,this._range=t;var n=e.url;this._config.reuseRedirectedURL&&null!=e.redirectedURL&&(n=e.redirectedURL);var s=this._seekHandler.getConfig(n,t),u=new self.Headers;if("object"===i(s.headers)){var l=s.headers;for(var d in l)l.hasOwnProperty(d)&&u.append(d,l[d])}var h={method:"GET",headers:u,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if("object"===i(this._config.headers))for(var d in this._config.headers)u.append(d,this._config.headers[d]);!1===e.cors&&(h.mode="same-origin"),e.withCredentials&&(h.credentials="include"),e.referrerPolicy&&(h.referrerPolicy=e.referrerPolicy),self.AbortController&&(this._abortController=new self.AbortController,h.signal=this._abortController.signal),this._status=o.LoaderStatus.kConnecting,self.fetch(s.url,h).then((function(e){if(r._requestAbort)return r._status=o.LoaderStatus.kIdle,void e.body.cancel();if(e.ok&&e.status>=200&&e.status<=299){if(e.url!==s.url&&r._onURLRedirect){var t=r._seekHandler.removeURLParameters(e.url);r._onURLRedirect(t)}var i=e.headers.get("Content-Length");return null!=i&&(r._contentLength=parseInt(i),0!==r._contentLength&&r._onContentLengthKnown&&r._onContentLengthKnown(r._contentLength)),r._pump.call(r,e.body.getReader())}if(r._status=o.LoaderStatus.kError,!r._onError)throw new a.RuntimeException("FetchStreamLoader: Http code invalid, "+e.status+" "+e.statusText);r._onError(o.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:e.status,msg:e.statusText})})).catch((function(e){if(!r._abortController||!r._abortController.signal.aborted){if(r._status=o.LoaderStatus.kError,!r._onError)throw e;r._onError(o.LoaderErrors.EXCEPTION,{code:-1,msg:e.message})}}))},t.prototype.abort=function(){if(this._requestAbort=!0,(this._status!==o.LoaderStatus.kBuffering||!s.default.chrome)&&this._abortController)try{this._abortController.abort()}catch(e){}},t.prototype._pump=function(e){var t=this;return e.read().then((function(i){if(i.done)if(null!==t._contentLength&&t._receivedLength<t._contentLength){t._status=o.LoaderStatus.kError;var r=o.LoaderErrors.EARLY_EOF,n={code:-1,msg:"Fetch stream meet Early-EOF"};if(!t._onError)throw new a.RuntimeException(n.msg);t._onError(r,n)}else t._status=o.LoaderStatus.kComplete,t._onComplete&&t._onComplete(t._range.from,t._range.from+t._receivedLength-1);else{if(t._abortController&&t._abortController.signal.aborted)return void(t._status=o.LoaderStatus.kComplete);if(!0===t._requestAbort)return t._status=o.LoaderStatus.kComplete,e.cancel();t._status=o.LoaderStatus.kBuffering;var s=i.value.buffer,u=t._range.from+t._receivedLength;t._receivedLength+=s.byteLength,t._onDataArrival&&t._onDataArrival(s,u,t._receivedLength),t._pump(e)}})).catch((function(e){if(t._abortController&&t._abortController.signal.aborted)t._status=o.LoaderStatus.kComplete;else if(11!==e.code||!s.default.msedge){t._status=o.LoaderStatus.kError;var i=0,r=null;if(19!==e.code&&"network error"!==e.message||!(null===t._contentLength||null!==t._contentLength&&t._receivedLength<t._contentLength)?(i=o.LoaderErrors.EXCEPTION,r={code:e.code,msg:e.message}):(i=o.LoaderErrors.EARLY_EOF,r={code:e.code,msg:"Fetch stream meet Early-EOF"}),!t._onError)throw new a.RuntimeException(r.msg);t._onError(i,r)}}))},t}(o.BaseLoader);t.default=l},"./src/io/io-controller.js":
73
+ /*!*********************************!*\
74
+ !*** ./src/io/io-controller.js ***!
75
+ \*********************************/function(e,t,i){i.r(t);var r=i(/*! ../utils/logger.js */"./src/utils/logger.js"),n=i(/*! ./speed-sampler.js */"./src/io/speed-sampler.js"),s=i(/*! ./loader.js */"./src/io/loader.js"),o=i(/*! ./fetch-stream-loader.js */"./src/io/fetch-stream-loader.js"),a=i(/*! ./xhr-moz-chunked-loader.js */"./src/io/xhr-moz-chunked-loader.js"),u=i(/*! ./xhr-range-loader.js */"./src/io/xhr-range-loader.js"),l=i(/*! ./websocket-loader.js */"./src/io/websocket-loader.js"),d=i(/*! ./range-seek-handler.js */"./src/io/range-seek-handler.js"),h=i(/*! ./param-seek-handler.js */"./src/io/param-seek-handler.js"),c=i(/*! ../utils/exception.js */"./src/utils/exception.js"),f=function(){function e(e,t,i){this.TAG="IOController",this._config=t,this._extraData=i,this._stashInitialSize=393216,null!=t.stashInitialSize&&t.stashInitialSize>0&&(this._stashInitialSize=t.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=3145728,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,!1===t.enableStashBuffer&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=e,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(e.url),this._refTotalLength=e.filesize?e.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new n.default,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}return e.prototype.destroy=function(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null},e.prototype.isWorking=function(){return this._loader&&this._loader.isWorking()&&!this._paused},e.prototype.isPaused=function(){return this._paused},Object.defineProperty(e.prototype,"status",{get:function(){return this._loader.status},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"extraData",{get:function(){return this._extraData},set:function(e){this._extraData=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onDataArrival",{get:function(){return this._onDataArrival},set:function(e){this._onDataArrival=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onSeeked",{get:function(){return this._onSeeked},set:function(e){this._onSeeked=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onError",{get:function(){return this._onError},set:function(e){this._onError=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onComplete",{get:function(){return this._onComplete},set:function(e){this._onComplete=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onRedirect",{get:function(){return this._onRedirect},set:function(e){this._onRedirect=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onRecoveredEarlyEof",{get:function(){return this._onRecoveredEarlyEof},set:function(e){this._onRecoveredEarlyEof=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentURL",{get:function(){return this._dataSource.url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasRedirect",{get:function(){return null!=this._redirectedURL||null!=this._dataSource.redirectedURL},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentRedirectedURL",{get:function(){return this._redirectedURL||this._dataSource.redirectedURL},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentSpeed",{get:function(){return this._loaderClass===u.default?this._loader.currentSpeed:this._speedSampler.lastSecondKBps},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loaderType",{get:function(){return this._loader.type},enumerable:!1,configurable:!0}),e.prototype._selectSeekHandler=function(){var e=this._config;if("range"===e.seekType)this._seekHandler=new d.default(this._config.rangeLoadZeroStart);else if("param"===e.seekType){var t=e.seekParamStart||"bstart",i=e.seekParamEnd||"bend";this._seekHandler=new h.default(t,i)}else{if("custom"!==e.seekType)throw new c.InvalidArgumentException("Invalid seekType in config: "+e.seekType);if("function"!=typeof e.customSeekHandler)throw new c.InvalidArgumentException("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new e.customSeekHandler}},e.prototype._selectLoader=function(){if(null!=this._config.customLoader)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=l.default;else if(o.default.isSupported())this._loaderClass=o.default;else if(a.default.isSupported())this._loaderClass=a.default;else{if(!u.default.isSupported())throw new c.RuntimeException("Your browser doesn't support xhr with arraybuffer responseType!");this._loaderClass=u.default}},e.prototype._createLoader=function(){this._loader=new this._loaderClass(this._seekHandler,this._config),!1===this._loader.needStashBuffer&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)},e.prototype.open=function(e){this._currentRange={from:0,to:-1},e&&(this._currentRange.from=e),this._speedSampler.reset(),e||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))},e.prototype.abort=function(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)},e.prototype.pause=function(){this.isWorking()&&(this._loader.abort(),0!==this._stashUsed?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)},e.prototype.resume=function(){if(this._paused){this._paused=!1;var e=this._resumeFrom;this._resumeFrom=0,this._internalSeek(e,!0)}},e.prototype.seek=function(e){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(e,!0)},e.prototype._internalSeek=function(e,t){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(t),this._loader.destroy(),this._loader=null;var i={from:e,to:-1};this._currentRange={from:i.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,i),this._onSeeked&&this._onSeeked()},e.prototype.updateUrl=function(e){if(!e||"string"!=typeof e||0===e.length)throw new c.InvalidArgumentException("Url must be a non-empty string!");this._dataSource.url=e},e.prototype._expandBuffer=function(e){for(var t=this._stashSize;t+1048576<e;)t*=2;if((t+=1048576)!==this._bufferSize){var i=new ArrayBuffer(t);if(this._stashUsed>0){var r=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(i,0,t).set(r,0)}this._stashBuffer=i,this._bufferSize=t}},e.prototype._normalizeSpeed=function(e){var t=this._speedNormalizeList,i=t.length-1,r=0,n=0,s=i;if(e<t[0])return t[0];for(;n<=s;){if((r=n+Math.floor((s-n)/2))===i||e>=t[r]&&e<t[r+1])return t[r];t[r]<e?n=r+1:s=r-1}},e.prototype._adjustStashSize=function(e){var t=0;(t=this._config.isLive||e<512?e:e>=512&&e<=1024?Math.floor(1.5*e):2*e)>8192&&(t=8192);var i=1024*t+1048576;this._bufferSize<i&&this._expandBuffer(i),this._stashSize=1024*t},e.prototype._dispatchChunks=function(e,t){return this._currentRange.to=t+e.byteLength-1,this._onDataArrival(e,t)},e.prototype._onURLRedirect=function(e){this._redirectedURL=e,this._onRedirect&&this._onRedirect(e)},e.prototype._onContentLengthKnown=function(e){e&&this._fullRequestFlag&&(this._totalLength=e,this._fullRequestFlag=!1)},e.prototype._onLoaderChunkArrival=function(e,t,i){if(!this._onDataArrival)throw new c.IllegalStateException("IOController: No existing consumer (onDataArrival) callback!");if(!this._paused){this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,this._onRecoveredEarlyEof&&this._onRecoveredEarlyEof()),this._speedSampler.addBytes(e.byteLength);var r=this._speedSampler.lastSecondKBps;if(0!==r){var n=this._normalizeSpeed(r);this._speedNormalized!==n&&(this._speedNormalized=n,this._adjustStashSize(n))}if(this._enableStash)if(0===this._stashUsed&&0===this._stashByteStart&&(this._stashByteStart=t),this._stashUsed+e.byteLength<=this._stashSize)(a=new Uint8Array(this._stashBuffer,0,this._stashSize)).set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength;else if(a=new Uint8Array(this._stashBuffer,0,this._bufferSize),this._stashUsed>0){var s=this._stashBuffer.slice(0,this._stashUsed);(u=this._dispatchChunks(s,this._stashByteStart))<s.byteLength?u>0&&(l=new Uint8Array(s,u),a.set(l,0),this._stashUsed=l.byteLength,this._stashByteStart+=u):(this._stashUsed=0,this._stashByteStart+=u),this._stashUsed+e.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+e.byteLength),a=new Uint8Array(this._stashBuffer,0,this._bufferSize)),a.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength}else(u=this._dispatchChunks(e,t))<e.byteLength&&((o=e.byteLength-u)>this._bufferSize&&(this._expandBuffer(o),a=new Uint8Array(this._stashBuffer,0,this._bufferSize)),a.set(new Uint8Array(e,u),0),this._stashUsed+=o,this._stashByteStart=t+u);else if(0===this._stashUsed){var o;(u=this._dispatchChunks(e,t))<e.byteLength&&((o=e.byteLength-u)>this._bufferSize&&this._expandBuffer(o),(a=new Uint8Array(this._stashBuffer,0,this._bufferSize)).set(new Uint8Array(e,u),0),this._stashUsed+=o,this._stashByteStart=t+u)}else{var a,u;if(this._stashUsed+e.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+e.byteLength),(a=new Uint8Array(this._stashBuffer,0,this._bufferSize)).set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength,(u=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart))<this._stashUsed&&u>0){var l=new Uint8Array(this._stashBuffer,u);a.set(l,0)}this._stashUsed-=u,this._stashByteStart+=u}}},e.prototype._flushStashBuffer=function(e){if(this._stashUsed>0){var t=this._stashBuffer.slice(0,this._stashUsed),i=this._dispatchChunks(t,this._stashByteStart),n=t.byteLength-i;if(i<t.byteLength){if(!e){if(i>0){var s=new Uint8Array(this._stashBuffer,0,this._bufferSize),o=new Uint8Array(t,i);s.set(o,0),this._stashUsed=o.byteLength,this._stashByteStart+=i}return 0}r.default.w(this.TAG,n+" bytes unconsumed data remain when flush buffer, dropped")}return this._stashUsed=0,this._stashByteStart=0,n}return 0},e.prototype._onLoaderComplete=function(e,t){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)},e.prototype._onLoaderError=function(e,t){switch(r.default.e(this.TAG,"Loader error, code = "+t.code+", msg = "+t.msg),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,e=s.LoaderErrors.UNRECOVERABLE_EARLY_EOF),e){case s.LoaderErrors.EARLY_EOF:if(!this._config.isLive&&this._totalLength){var i=this._currentRange.to+1;return void(i<this._totalLength&&(r.default.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(i,!1)))}e=s.LoaderErrors.UNRECOVERABLE_EARLY_EOF;case s.LoaderErrors.UNRECOVERABLE_EARLY_EOF:case s.LoaderErrors.CONNECTING_TIMEOUT:case s.LoaderErrors.HTTP_STATUS_CODE_INVALID:case s.LoaderErrors.EXCEPTION:}if(!this._onError)throw new c.RuntimeException("IOException: "+t.msg);this._onError(e,t)},e}();t.default=f},"./src/io/loader.js":
76
+ /*!**************************!*\
77
+ !*** ./src/io/loader.js ***!
78
+ \**************************/function(e,t,i){i.r(t),i.d(t,{LoaderStatus:function(){return n},LoaderErrors:function(){return s},BaseLoader:function(){return o}});var r=i(/*! ../utils/exception.js */"./src/utils/exception.js"),n={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},s={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"},o=function(){function e(e){this._type=e||"undefined",this._status=n.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}return e.prototype.destroy=function(){this._status=n.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null},e.prototype.isWorking=function(){return this._status===n.kConnecting||this._status===n.kBuffering},Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this._status},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"needStashBuffer",{get:function(){return this._needStash},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onContentLengthKnown",{get:function(){return this._onContentLengthKnown},set:function(e){this._onContentLengthKnown=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onURLRedirect",{get:function(){return this._onURLRedirect},set:function(e){this._onURLRedirect=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onDataArrival",{get:function(){return this._onDataArrival},set:function(e){this._onDataArrival=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onError",{get:function(){return this._onError},set:function(e){this._onError=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onComplete",{get:function(){return this._onComplete},set:function(e){this._onComplete=e},enumerable:!1,configurable:!0}),e.prototype.open=function(e,t){throw new r.NotImplementedException("Unimplemented abstract function!")},e.prototype.abort=function(){throw new r.NotImplementedException("Unimplemented abstract function!")},e}()},"./src/io/param-seek-handler.js":
79
+ /*!**************************************!*\
80
+ !*** ./src/io/param-seek-handler.js ***!
81
+ \**************************************/function(e,t,i){i.r(t);var r=function(){function e(e,t){this._startName=e,this._endName=t}return e.prototype.getConfig=function(e,t){var i=e;if(0!==t.from||-1!==t.to){var r=!0;-1===i.indexOf("?")&&(i+="?",r=!1),r&&(i+="&"),i+=this._startName+"="+t.from.toString(),-1!==t.to&&(i+="&"+this._endName+"="+t.to.toString())}return{url:i,headers:{}}},e.prototype.removeURLParameters=function(e){var t=e.split("?")[0],i=void 0,r=e.indexOf("?");-1!==r&&(i=e.substring(r+1));var n="";if(null!=i&&i.length>0)for(var s=i.split("&"),o=0;o<s.length;o++){var a=s[o].split("="),u=o>0;a[0]!==this._startName&&a[0]!==this._endName&&(u&&(n+="&"),n+=s[o])}return 0===n.length?t:t+"?"+n},e}();t.default=r},"./src/io/range-seek-handler.js":
82
+ /*!**************************************!*\
83
+ !*** ./src/io/range-seek-handler.js ***!
84
+ \**************************************/function(e,t,i){i.r(t);var r=function(){function e(e){this._zeroStart=e||!1}return e.prototype.getConfig=function(e,t){var i={};if(0!==t.from||-1!==t.to){var r=void 0;r=-1!==t.to?"bytes="+t.from.toString()+"-"+t.to.toString():"bytes="+t.from.toString()+"-",i.Range=r}else this._zeroStart&&(i.Range="bytes=0-");return{url:e,headers:i}},e.prototype.removeURLParameters=function(e){return e},e}();t.default=r},"./src/io/speed-sampler.js":
85
+ /*!*********************************!*\
86
+ !*** ./src/io/speed-sampler.js ***!
87
+ \*********************************/function(e,t,i){i.r(t);var r=function(){function e(){this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}return e.prototype.reset=function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0},e.prototype.addBytes=function(e){0===this._firstCheckpoint?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=e,this._totalBytes+=e):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=e,this._totalBytes+=e):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=e,this._totalBytes+=e,this._lastCheckpoint=this._now())},Object.defineProperty(e.prototype,"currentKBps",{get:function(){this.addBytes(0);var e=(this._now()-this._lastCheckpoint)/1e3;return 0==e&&(e=1),this._intervalBytes/e/1024},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastSecondKBps",{get:function(){return this.addBytes(0),0!==this._lastSecondBytes?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"averageKBps",{get:function(){var e=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/e/1024},enumerable:!1,configurable:!0}),e}();t.default=r},"./src/io/websocket-loader.js":
88
+ /*!************************************!*\
89
+ !*** ./src/io/websocket-loader.js ***!
90
+ \************************************/function(e,t,i){i.r(t);var r,n=i(/*! ./loader.js */"./src/io/loader.js"),s=i(/*! ../utils/exception.js */"./src/utils/exception.js"),o=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),a=function(e){function t(){var t=e.call(this,"websocket-loader")||this;return t.TAG="WebSocketLoader",t._needStash=!0,t._ws=null,t._requestAbort=!1,t._receivedLength=0,t}return o(t,e),t.isSupported=function(){try{return void 0!==self.WebSocket}catch(e){return!1}},t.prototype.destroy=function(){this._ws&&this.abort(),e.prototype.destroy.call(this)},t.prototype.open=function(e){try{var t=this._ws=new self.WebSocket(e.url);t.binaryType="arraybuffer",t.onopen=this._onWebSocketOpen.bind(this),t.onclose=this._onWebSocketClose.bind(this),t.onmessage=this._onWebSocketMessage.bind(this),t.onerror=this._onWebSocketError.bind(this),this._status=n.LoaderStatus.kConnecting}catch(r){this._status=n.LoaderStatus.kError;var i={code:r.code,msg:r.message};if(!this._onError)throw new s.RuntimeException(i.msg);this._onError(n.LoaderErrors.EXCEPTION,i)}},t.prototype.abort=function(){var e=this._ws;!e||0!==e.readyState&&1!==e.readyState||(this._requestAbort=!0,e.close()),this._ws=null,this._status=n.LoaderStatus.kComplete},t.prototype._onWebSocketOpen=function(e){this._status=n.LoaderStatus.kBuffering},t.prototype._onWebSocketClose=function(e){!0!==this._requestAbort?(this._status=n.LoaderStatus.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)):this._requestAbort=!1},t.prototype._onWebSocketMessage=function(e){var t=this;if(e.data instanceof ArrayBuffer)this._dispatchArrayBuffer(e.data);else if(e.data instanceof Blob){var i=new FileReader;i.onload=function(){t._dispatchArrayBuffer(i.result)},i.readAsArrayBuffer(e.data)}else{this._status=n.LoaderStatus.kError;var r={code:-1,msg:"Unsupported WebSocket message type: "+e.data.constructor.name};if(!this._onError)throw new s.RuntimeException(r.msg);this._onError(n.LoaderErrors.EXCEPTION,r)}},t.prototype._dispatchArrayBuffer=function(e){var t=e,i=this._receivedLength;this._receivedLength+=t.byteLength,this._onDataArrival&&this._onDataArrival(t,i,this._receivedLength)},t.prototype._onWebSocketError=function(e){this._status=n.LoaderStatus.kError;var t={code:e.code,msg:e.message};if(!this._onError)throw new s.RuntimeException(t.msg);this._onError(n.LoaderErrors.EXCEPTION,t)},t}(n.BaseLoader);t.default=a},"./src/io/xhr-moz-chunked-loader.js":
91
+ /*!******************************************!*\
92
+ !*** ./src/io/xhr-moz-chunked-loader.js ***!
93
+ \******************************************/function(e,t,r){r.r(t);var n,s=r(/*! ../utils/logger.js */"./src/utils/logger.js"),o=r(/*! ./loader.js */"./src/io/loader.js"),a=r(/*! ../utils/exception.js */"./src/utils/exception.js"),u=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),l=function(e){function t(t,i){var r=e.call(this,"xhr-moz-chunked-loader")||this;return r.TAG="MozChunkedLoader",r._seekHandler=t,r._config=i,r._needStash=!0,r._xhr=null,r._requestAbort=!1,r._contentLength=null,r._receivedLength=0,r}return u(t,e),t.isSupported=function(){try{var e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),e.responseType="moz-chunked-arraybuffer","moz-chunked-arraybuffer"===e.responseType}catch(t){return s.default.w("MozChunkedLoader",t.message),!1}},t.prototype.destroy=function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),e.prototype.destroy.call(this)},t.prototype.open=function(e,t){this._dataSource=e,this._range=t;var r=e.url;this._config.reuseRedirectedURL&&null!=e.redirectedURL&&(r=e.redirectedURL);var n=this._seekHandler.getConfig(r,t);this._requestURL=n.url;var s=this._xhr=new XMLHttpRequest;if(s.open("GET",n.url,!0),s.responseType="moz-chunked-arraybuffer",s.onreadystatechange=this._onReadyStateChange.bind(this),s.onprogress=this._onProgress.bind(this),s.onloadend=this._onLoadEnd.bind(this),s.onerror=this._onXhrError.bind(this),e.withCredentials&&(s.withCredentials=!0),"object"===i(n.headers)){var a=n.headers;for(var u in a)a.hasOwnProperty(u)&&s.setRequestHeader(u,a[u])}if("object"===i(this._config.headers))for(var u in a=this._config.headers)a.hasOwnProperty(u)&&s.setRequestHeader(u,a[u]);this._status=o.LoaderStatus.kConnecting,s.send()},t.prototype.abort=function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=o.LoaderStatus.kComplete},t.prototype._onReadyStateChange=function(e){var t=e.target;if(2===t.readyState){if(null!=t.responseURL&&t.responseURL!==this._requestURL&&this._onURLRedirect){var i=this._seekHandler.removeURLParameters(t.responseURL);this._onURLRedirect(i)}if(0!==t.status&&(t.status<200||t.status>299)){if(this._status=o.LoaderStatus.kError,!this._onError)throw new a.RuntimeException("MozChunkedLoader: Http code invalid, "+t.status+" "+t.statusText);this._onError(o.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText})}else this._status=o.LoaderStatus.kBuffering}},t.prototype._onProgress=function(e){if(this._status!==o.LoaderStatus.kError){null===this._contentLength&&null!==e.total&&0!==e.total&&(this._contentLength=e.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));var t=e.target.response,i=this._range.from+this._receivedLength;this._receivedLength+=t.byteLength,this._onDataArrival&&this._onDataArrival(t,i,this._receivedLength)}},t.prototype._onLoadEnd=function(e){!0!==this._requestAbort?this._status!==o.LoaderStatus.kError&&(this._status=o.LoaderStatus.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)):this._requestAbort=!1},t.prototype._onXhrError=function(e){this._status=o.LoaderStatus.kError;var t=0,i=null;if(this._contentLength&&e.loaded<this._contentLength?(t=o.LoaderErrors.EARLY_EOF,i={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(t=o.LoaderErrors.EXCEPTION,i={code:-1,msg:e.constructor.name+" "+e.type}),!this._onError)throw new a.RuntimeException(i.msg);this._onError(t,i)},t}(o.BaseLoader);t.default=l},"./src/io/xhr-range-loader.js":
94
+ /*!************************************!*\
95
+ !*** ./src/io/xhr-range-loader.js ***!
96
+ \************************************/function(e,t,r){r.r(t);var n,s=r(/*! ../utils/logger.js */"./src/utils/logger.js"),o=r(/*! ./speed-sampler.js */"./src/io/speed-sampler.js"),a=r(/*! ./loader.js */"./src/io/loader.js"),u=r(/*! ../utils/exception.js */"./src/utils/exception.js"),l=(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),d=function(e){function t(t,i){var r=e.call(this,"xhr-range-loader")||this;return r.TAG="RangeLoader",r._seekHandler=t,r._config=i,r._needStash=!1,r._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],r._currentChunkSizeKB=384,r._currentSpeedNormalized=0,r._zeroSpeedChunkCount=0,r._xhr=null,r._speedSampler=new o.default,r._requestAbort=!1,r._waitForTotalLength=!1,r._totalLengthReceived=!1,r._currentRequestURL=null,r._currentRedirectedURL=null,r._currentRequestRange=null,r._totalLength=null,r._contentLength=null,r._receivedLength=0,r._lastTimeLoaded=0,r}return l(t,e),t.isSupported=function(){try{var e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),e.responseType="arraybuffer","arraybuffer"===e.responseType}catch(t){return s.default.w("RangeLoader",t.message),!1}},t.prototype.destroy=function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr=null),e.prototype.destroy.call(this)},Object.defineProperty(t.prototype,"currentSpeed",{get:function(){return this._speedSampler.lastSecondKBps},enumerable:!1,configurable:!0}),t.prototype.open=function(e,t){this._dataSource=e,this._range=t,this._status=a.LoaderStatus.kConnecting;var i=!1;null!=this._dataSource.filesize&&0!==this._dataSource.filesize&&(i=!0,this._totalLength=this._dataSource.filesize),this._totalLengthReceived||i?this._openSubRange():(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1}))},t.prototype._openSubRange=function(){var e=1024*this._currentChunkSizeKB,t=this._range.from+this._receivedLength,i=t+e;null!=this._contentLength&&i-this._range.from>=this._contentLength&&(i=this._range.from+this._contentLength-1),this._currentRequestRange={from:t,to:i},this._internalOpen(this._dataSource,this._currentRequestRange)},t.prototype._internalOpen=function(e,t){this._lastTimeLoaded=0;var r=e.url;this._config.reuseRedirectedURL&&(null!=this._currentRedirectedURL?r=this._currentRedirectedURL:null!=e.redirectedURL&&(r=e.redirectedURL));var n=this._seekHandler.getConfig(r,t);this._currentRequestURL=n.url;var s=this._xhr=new XMLHttpRequest;if(s.open("GET",n.url,!0),s.responseType="arraybuffer",s.onreadystatechange=this._onReadyStateChange.bind(this),s.onprogress=this._onProgress.bind(this),s.onload=this._onLoad.bind(this),s.onerror=this._onXhrError.bind(this),e.withCredentials&&(s.withCredentials=!0),"object"===i(n.headers)){var o=n.headers;for(var a in o)o.hasOwnProperty(a)&&s.setRequestHeader(a,o[a])}if("object"===i(this._config.headers))for(var a in o=this._config.headers)o.hasOwnProperty(a)&&s.setRequestHeader(a,o[a]);s.send()},t.prototype.abort=function(){this._requestAbort=!0,this._internalAbort(),this._status=a.LoaderStatus.kComplete},t.prototype._internalAbort=function(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)},t.prototype._onReadyStateChange=function(e){var t=e.target;if(2===t.readyState){if(null!=t.responseURL){var i=this._seekHandler.removeURLParameters(t.responseURL);t.responseURL!==this._currentRequestURL&&i!==this._currentRedirectedURL&&(this._currentRedirectedURL=i,this._onURLRedirect&&this._onURLRedirect(i))}if(t.status>=200&&t.status<=299){if(this._waitForTotalLength)return;this._status=a.LoaderStatus.kBuffering}else{if(this._status=a.LoaderStatus.kError,!this._onError)throw new u.RuntimeException("RangeLoader: Http code invalid, "+t.status+" "+t.statusText);this._onError(a.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText})}}},t.prototype._onProgress=function(e){if(this._status!==a.LoaderStatus.kError){if(null===this._contentLength){var t=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,t=!0;var i=e.total;this._internalAbort(),null!=i&0!==i&&(this._totalLength=i)}if(-1===this._range.to?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,t)return void this._openSubRange();this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var r=e.loaded-this._lastTimeLoaded;this._lastTimeLoaded=e.loaded,this._speedSampler.addBytes(r)}},t.prototype._normalizeSpeed=function(e){var t=this._chunkSizeKBList,i=t.length-1,r=0,n=0,s=i;if(e<t[0])return t[0];for(;n<=s;){if((r=n+Math.floor((s-n)/2))===i||e>=t[r]&&e<t[r+1])return t[r];t[r]<e?n=r+1:s=r-1}},t.prototype._onLoad=function(e){if(this._status!==a.LoaderStatus.kError)if(this._waitForTotalLength)this._waitForTotalLength=!1;else{this._lastTimeLoaded=0;var t=this._speedSampler.lastSecondKBps;if(0===t&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(t=this._speedSampler.currentKBps)),0!==t){var i=this._normalizeSpeed(t);this._currentSpeedNormalized!==i&&(this._currentSpeedNormalized=i,this._currentChunkSizeKB=i)}var r=e.target.response,n=this._range.from+this._receivedLength;this._receivedLength+=r.byteLength;var s=!1;null!=this._contentLength&&this._receivedLength<this._contentLength?this._openSubRange():s=!0,this._onDataArrival&&this._onDataArrival(r,n,this._receivedLength),s&&(this._status=a.LoaderStatus.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}},t.prototype._onXhrError=function(e){this._status=a.LoaderStatus.kError;var t=0,i=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(t=a.LoaderErrors.EARLY_EOF,i={code:-1,msg:"RangeLoader meet Early-Eof"}):(t=a.LoaderErrors.EXCEPTION,i={code:-1,msg:e.constructor.name+" "+e.type}),!this._onError)throw new u.RuntimeException(i.msg);this._onError(t,i)},t}(a.BaseLoader);t.default=d},"./src/player/flv-player.js":
97
+ /*!**********************************!*\
98
+ !*** ./src/player/flv-player.js ***!
99
+ \**********************************/function(e,t,r){r.r(t);var n=r(/*! events */"./node_modules/events/events.js"),s=r.n(n),o=r(/*! ../utils/logger.js */"./src/utils/logger.js"),a=r(/*! ../utils/browser.js */"./src/utils/browser.js"),u=r(/*! ./player-events.js */"./src/player/player-events.js"),l=r(/*! ../core/transmuxer.js */"./src/core/transmuxer.js"),d=r(/*! ../core/transmuxing-events.js */"./src/core/transmuxing-events.js"),h=r(/*! ../core/mse-controller.js */"./src/core/mse-controller.js"),c=r(/*! ../core/mse-events.js */"./src/core/mse-events.js"),f=r(/*! ./player-errors.js */"./src/player/player-errors.js"),_=r(/*! ../config.js */"./src/config.js"),p=r(/*! ../utils/exception.js */"./src/utils/exception.js"),m=function(){function e(e,t){if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new(s()),this._config=(0,_.createDefaultConfig)(),"object"===i(t)&&Object.assign(this._config,t),"flv"!==e.type.toLowerCase())throw new p.InvalidArgumentException("FlvPlayer requires an flv MediaDataSource input!");!0===e.isLive&&(this._config.isLive=!0),this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this),onvSeeking:this._onvSeeking.bind(this),onvCanPlay:this._onvCanPlay.bind(this),onvStalled:this._onvStalled.bind(this),onvProgress:this._onvProgress.bind(this)},self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now,this._pendingSeekTime=null,this._requestSetTime=!1,this._seekpointRecord=null,this._progressChecker=null,this._mediaDataSource=e,this._mediaElement=null,this._msectl=null,this._transmuxer=null,this._mseSourceOpened=!1,this._hasPendingLoad=!1,this._receivedCanPlay=!1,this._mediaInfo=null,this._statisticsInfo=null;var r=a.default.chrome&&(a.default.version.major<50||50===a.default.version.major&&a.default.version.build<2661);this._alwaysSeekKeyframe=!!(r||a.default.msedge||a.default.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}return e.prototype.destroy=function(){null!=this._progressChecker&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._transmuxer&&this.unload(),this._mediaElement&&this.detachMediaElement(),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null},e.prototype.on=function(e,t){var i=this;e===u.default.MEDIA_INFO?null!=this._mediaInfo&&Promise.resolve().then((function(){i._emitter.emit(u.default.MEDIA_INFO,i.mediaInfo)})):e===u.default.STATISTICS_INFO&&null!=this._statisticsInfo&&Promise.resolve().then((function(){i._emitter.emit(u.default.STATISTICS_INFO,i.statisticsInfo)})),this._emitter.addListener(e,t)},e.prototype.off=function(e,t){this._emitter.removeListener(e,t)},e.prototype.attachMediaElement=function(e){var t=this;if(this._mediaElement=e,e.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),e.addEventListener("seeking",this.e.onvSeeking),e.addEventListener("canplay",this.e.onvCanPlay),e.addEventListener("stalled",this.e.onvStalled),e.addEventListener("progress",this.e.onvProgress),this._msectl=new h.default(this._config),this._msectl.on(c.default.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(c.default.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(c.default.SOURCE_OPEN,(function(){t._mseSourceOpened=!0,t._hasPendingLoad&&(t._hasPendingLoad=!1,t.load())})),this._msectl.on(c.default.ERROR,(function(e){t._emitter.emit(u.default.ERROR,f.ErrorTypes.MEDIA_ERROR,f.ErrorDetails.MEDIA_MSE_ERROR,e)})),this._msectl.attachMediaElement(e),null!=this._pendingSeekTime)try{e.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(i){}},e.prototype.detachMediaElement=function(){this._mediaElement&&(this._msectl.detachMediaElement(),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement.removeEventListener("seeking",this.e.onvSeeking),this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.removeEventListener("stalled",this.e.onvStalled),this._mediaElement.removeEventListener("progress",this.e.onvProgress),this._mediaElement=null),this._msectl&&(this._msectl.destroy(),this._msectl=null)},e.prototype.load=function(){var e=this;if(!this._mediaElement)throw new p.IllegalStateException("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new p.IllegalStateException("FlvPlayer.load() has been called, please call unload() first!");this._hasPendingLoad||(this._config.deferLoadAfterSourceOpen&&!1===this._mseSourceOpened?this._hasPendingLoad=!0:(this._mediaElement.readyState>0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new l.default(this._mediaDataSource,this._config),this._transmuxer.on(d.default.INIT_SEGMENT,(function(t,i){e._msectl.appendInitSegment(i)})),this._transmuxer.on(d.default.MEDIA_SEGMENT,(function(t,i){if(e._msectl.appendMediaSegment(i),e._config.lazyLoad&&!e._config.isLive){var r=e._mediaElement.currentTime;i.info.endDts>=1e3*(r+e._config.lazyLoadMaxDuration)&&null==e._progressChecker&&(o.default.v(e.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),e._suspendTransmuxer())}})),this._transmuxer.on(d.default.LOADING_COMPLETE,(function(){e._msectl.endOfStream(),e._emitter.emit(u.default.LOADING_COMPLETE)})),this._transmuxer.on(d.default.RECOVERED_EARLY_EOF,(function(){e._emitter.emit(u.default.RECOVERED_EARLY_EOF)})),this._transmuxer.on(d.default.IO_ERROR,(function(t,i){e._emitter.emit(u.default.ERROR,f.ErrorTypes.NETWORK_ERROR,t,i)})),this._transmuxer.on(d.default.DEMUX_ERROR,(function(t,i){e._emitter.emit(u.default.ERROR,f.ErrorTypes.MEDIA_ERROR,t,{code:-1,msg:i})})),this._transmuxer.on(d.default.MEDIA_INFO,(function(t){e._mediaInfo=t,e._emitter.emit(u.default.MEDIA_INFO,Object.assign({},t))})),this._transmuxer.on(d.default.METADATA_ARRIVED,(function(t){e._emitter.emit(u.default.METADATA_ARRIVED,t)})),this._transmuxer.on(d.default.SCRIPTDATA_ARRIVED,(function(t){e._emitter.emit(u.default.SCRIPTDATA_ARRIVED,t)})),this._transmuxer.on(d.default.STATISTICS_INFO,(function(t){e._statisticsInfo=e._fillStatisticsInfo(t),e._emitter.emit(u.default.STATISTICS_INFO,Object.assign({},e._statisticsInfo))})),this._transmuxer.on(d.default.RECOMMEND_SEEKPOINT,(function(t){e._mediaElement&&!e._config.accurateSeek&&(e._requestSetTime=!0,e._mediaElement.currentTime=t/1e3)})),this._transmuxer.open()))},e.prototype.unload=function(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)},e.prototype.play=function(){return this._mediaElement.play()},e.prototype.pause=function(){this._mediaElement.pause()},Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"buffered",{get:function(){return this._mediaElement.buffered},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"duration",{get:function(){return this._mediaElement.duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"volume",{get:function(){return this._mediaElement.volume},set:function(e){this._mediaElement.volume=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"muted",{get:function(){return this._mediaElement.muted},set:function(e){this._mediaElement.muted=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentTime",{get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(e){this._mediaElement?this._internalSeek(e):this._pendingSeekTime=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mediaInfo",{get:function(){return Object.assign({},this._mediaInfo)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"statisticsInfo",{get:function(){return null==this._statisticsInfo&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)},enumerable:!1,configurable:!0}),e.prototype._fillStatisticsInfo=function(e){if(e.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return e;var t=!0,i=0,r=0;if(this._mediaElement.getVideoPlaybackQuality){var n=this._mediaElement.getVideoPlaybackQuality();i=n.totalVideoFrames,r=n.droppedVideoFrames}else null!=this._mediaElement.webkitDecodedFrameCount?(i=this._mediaElement.webkitDecodedFrameCount,r=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=i,e.droppedFrames=r),e},e.prototype._onmseUpdateEnd=function(){if(this._config.lazyLoad&&!this._config.isLive){for(var e=this._mediaElement.buffered,t=this._mediaElement.currentTime,i=0,r=0;r<e.length;r++){var n=e.start(r),s=e.end(r);if(n<=t&&t<s){i=s;break}}i>=t+this._config.lazyLoadMaxDuration&&null==this._progressChecker&&(o.default.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}},e.prototype._onmseBufferFull=function(){o.default.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),null==this._progressChecker&&this._suspendTransmuxer()},e.prototype._suspendTransmuxer=function(){this._transmuxer&&(this._transmuxer.pause(),null==this._progressChecker&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))},e.prototype._checkProgressAndResume=function(){for(var e=this._mediaElement.currentTime,t=this._mediaElement.buffered,i=!1,r=0;r<t.length;r++){var n=t.start(r),s=t.end(r);if(e>=n&&e<s){e>=s-this._config.lazyLoadRecoverDuration&&(i=!0);break}}i&&(window.clearInterval(this._progressChecker),this._progressChecker=null,i&&(o.default.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))},e.prototype._isTimepointBuffered=function(e){for(var t=this._mediaElement.buffered,i=0;i<t.length;i++){var r=t.start(i),n=t.end(i);if(e>=r&&e<n)return!0}return!1},e.prototype._internalSeek=function(e){var t=this._isTimepointBuffered(e),i=!1,r=0;if(e<1&&this._mediaElement.buffered.length>0){var n=this._mediaElement.buffered.start(0);(n<1&&e<n||a.default.safari)&&(i=!0,r=a.default.safari?.1:n)}if(i)this._requestSetTime=!0,this._mediaElement.currentTime=r;else if(t){if(this._alwaysSeekKeyframe){var s=this._msectl.getNearestKeyframe(Math.floor(1e3*e));this._requestSetTime=!0,this._mediaElement.currentTime=null!=s?s.dts/1e3:e}else this._requestSetTime=!0,this._mediaElement.currentTime=e;null!=this._progressChecker&&this._checkProgressAndResume()}else null!=this._progressChecker&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(e),this._transmuxer.seek(Math.floor(1e3*e)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=e)},e.prototype._checkAndApplyUnbufferedSeekpoint=function(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){var e=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(e)||(null!=this._progressChecker&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(e),this._transmuxer.seek(Math.floor(1e3*e)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=e))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)},e.prototype._checkAndResumeStuckPlayback=function(e){var t=this._mediaElement;if(e||!this._receivedCanPlay||t.readyState<2){var i=t.buffered;i.length>0&&t.currentTime<i.start(0)&&(o.default.w(this.TAG,"Playback seems stuck at "+t.currentTime+", seek to "+i.start(0)),this._requestSetTime=!0,this._mediaElement.currentTime=i.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)},e.prototype._onvLoadedMetadata=function(e){null!=this._pendingSeekTime&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)},e.prototype._onvSeeking=function(e){var t=this._mediaElement.currentTime,i=this._mediaElement.buffered;if(this._requestSetTime)this._requestSetTime=!1;else{if(t<1&&i.length>0){var r=i.start(0);if(r<1&&t<r||a.default.safari)return this._requestSetTime=!0,void(this._mediaElement.currentTime=a.default.safari?.1:r)}if(this._isTimepointBuffered(t)){if(this._alwaysSeekKeyframe){var n=this._msectl.getNearestKeyframe(Math.floor(1e3*t));null!=n&&(this._requestSetTime=!0,this._mediaElement.currentTime=n.dts/1e3)}null!=this._progressChecker&&this._checkProgressAndResume()}else this._seekpointRecord={seekPoint:t,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},e.prototype._onvCanPlay=function(e){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)},e.prototype._onvStalled=function(e){this._checkAndResumeStuckPlayback(!0)},e.prototype._onvProgress=function(e){this._checkAndResumeStuckPlayback()},e}();t.default=m},"./src/player/native-player.js":
100
+ /*!*************************************!*\
101
+ !*** ./src/player/native-player.js ***!
102
+ \*************************************/function(e,t,r){r.r(t);var n=r(/*! events */"./node_modules/events/events.js"),s=r.n(n),o=r(/*! ./player-events.js */"./src/player/player-events.js"),a=r(/*! ../config.js */"./src/config.js"),u=r(/*! ../utils/exception.js */"./src/utils/exception.js"),l=function(){function e(e,t){if(this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new(s()),this._config=(0,a.createDefaultConfig)(),"object"===i(t)&&Object.assign(this._config,t),"flv"===e.type.toLowerCase())throw new u.InvalidArgumentException("NativePlayer does't support flv MediaDataSource input!");if(e.hasOwnProperty("segments"))throw new u.InvalidArgumentException("NativePlayer("+e.type+") doesn't support multipart playback!");this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=e,this._mediaElement=null}return e.prototype.destroy=function(){this._mediaElement&&(this.unload(),this.detachMediaElement()),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null},e.prototype.on=function(e,t){var i=this;e===o.default.MEDIA_INFO?null!=this._mediaElement&&0!==this._mediaElement.readyState&&Promise.resolve().then((function(){i._emitter.emit(o.default.MEDIA_INFO,i.mediaInfo)})):e===o.default.STATISTICS_INFO&&null!=this._mediaElement&&0!==this._mediaElement.readyState&&Promise.resolve().then((function(){i._emitter.emit(o.default.STATISTICS_INFO,i.statisticsInfo)})),this._emitter.addListener(e,t)},e.prototype.off=function(e,t){this._emitter.removeListener(e,t)},e.prototype.attachMediaElement=function(e){if(this._mediaElement=e,e.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),null!=this._pendingSeekTime)try{e.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(t){}},e.prototype.detachMediaElement=function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement=null),null!=this._statisticsReporter&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)},e.prototype.load=function(){if(!this._mediaElement)throw new u.IllegalStateException("HTMLMediaElement must be attached before load()!");this._mediaElement.src=this._mediaDataSource.url,this._mediaElement.readyState>0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)},e.prototype.unload=function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),null!=this._statisticsReporter&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)},e.prototype.play=function(){return this._mediaElement.play()},e.prototype.pause=function(){this._mediaElement.pause()},Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"buffered",{get:function(){return this._mediaElement.buffered},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"duration",{get:function(){return this._mediaElement.duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"volume",{get:function(){return this._mediaElement.volume},set:function(e){this._mediaElement.volume=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"muted",{get:function(){return this._mediaElement.muted},set:function(e){this._mediaElement.muted=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentTime",{get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(e){this._mediaElement?this._mediaElement.currentTime=e:this._pendingSeekTime=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mediaInfo",{get:function(){var e={mimeType:(this._mediaElement instanceof HTMLAudioElement?"audio/":"video/")+this._mediaDataSource.type};return this._mediaElement&&(e.duration=Math.floor(1e3*this._mediaElement.duration),this._mediaElement instanceof HTMLVideoElement&&(e.width=this._mediaElement.videoWidth,e.height=this._mediaElement.videoHeight)),e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"statisticsInfo",{get:function(){var e={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return e;var t=!0,i=0,r=0;if(this._mediaElement.getVideoPlaybackQuality){var n=this._mediaElement.getVideoPlaybackQuality();i=n.totalVideoFrames,r=n.droppedVideoFrames}else null!=this._mediaElement.webkitDecodedFrameCount?(i=this._mediaElement.webkitDecodedFrameCount,r=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=i,e.droppedFrames=r),e},enumerable:!1,configurable:!0}),e.prototype._onvLoadedMetadata=function(e){null!=this._pendingSeekTime&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(o.default.MEDIA_INFO,this.mediaInfo)},e.prototype._reportStatisticsInfo=function(){this._emitter.emit(o.default.STATISTICS_INFO,this.statisticsInfo)},e}();t.default=l},"./src/player/player-errors.js":
103
+ /*!*************************************!*\
104
+ !*** ./src/player/player-errors.js ***!
105
+ \*************************************/function(e,t,i){i.r(t),i.d(t,{ErrorTypes:function(){return s},ErrorDetails:function(){return o}});var r=i(/*! ../io/loader.js */"./src/io/loader.js"),n=i(/*! ../demux/demux-errors.js */"./src/demux/demux-errors.js"),s={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},o={NETWORK_EXCEPTION:r.LoaderErrors.EXCEPTION,NETWORK_STATUS_CODE_INVALID:r.LoaderErrors.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:r.LoaderErrors.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:r.LoaderErrors.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:n.default.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:n.default.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:n.default.CODEC_UNSUPPORTED}},"./src/player/player-events.js":
106
+ /*!*************************************!*\
107
+ !*** ./src/player/player-events.js ***!
108
+ \*************************************/function(e,t,i){i.r(t),t.default={ERROR:"error",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info"}},"./src/remux/aac-silent.js":
109
+ /*!*********************************!*\
110
+ !*** ./src/remux/aac-silent.js ***!
111
+ \*********************************/function(e,t,i){i.r(t);var r=function(){function e(){}return e.getSilentFrame=function(e,t){if("mp4a.40.2"===e){if(1===t)return new Uint8Array([0,200,0,128,35,128]);if(2===t)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(1===t)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null},e}();t.default=r},"./src/remux/mp4-generator.js":
112
+ /*!************************************!*\
113
+ !*** ./src/remux/mp4-generator.js ***!
114
+ \************************************/function(e,t,i){i.r(t);var r=function(){function e(){}return e.init=function(){for(var t in e.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]},e.types)e.types.hasOwnProperty(t)&&(e.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);var i=e.constants={};i.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),i.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),i.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),i.STSC=i.STCO=i.STTS,i.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),i.HDLR_VIDEO=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),i.HDLR_AUDIO=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),i.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),i.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),i.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])},e.box=function(e){for(var t=8,i=null,r=Array.prototype.slice.call(arguments,1),n=r.length,s=0;s<n;s++)t+=r[s].byteLength;(i=new Uint8Array(t))[0]=t>>>24&255,i[1]=t>>>16&255,i[2]=t>>>8&255,i[3]=255&t,i.set(e,4);var o=8;for(s=0;s<n;s++)i.set(r[s],o),o+=r[s].byteLength;return i},e.generateInitSegment=function(t){var i=e.box(e.types.ftyp,e.constants.FTYP),r=e.moov(t),n=new Uint8Array(i.byteLength+r.byteLength);return n.set(i,0),n.set(r,i.byteLength),n},e.moov=function(t){var i=e.mvhd(t.timescale,t.duration),r=e.trak(t),n=e.mvex(t);return e.box(e.types.moov,i,r,n)},e.mvhd=function(t,i){return e.box(e.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,255&t,i>>>24&255,i>>>16&255,i>>>8&255,255&i,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))},e.trak=function(t){return e.box(e.types.trak,e.tkhd(t),e.mdia(t))},e.tkhd=function(t){var i=t.id,r=t.duration,n=t.presentWidth,s=t.presentHeight;return e.box(e.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,i>>>24&255,i>>>16&255,i>>>8&255,255&i,0,0,0,0,r>>>24&255,r>>>16&255,r>>>8&255,255&r,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,n>>>8&255,255&n,0,0,s>>>8&255,255&s,0,0]))},e.mdia=function(t){return e.box(e.types.mdia,e.mdhd(t),e.hdlr(t),e.minf(t))},e.mdhd=function(t){var i=t.timescale,r=t.duration;return e.box(e.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,i>>>24&255,i>>>16&255,i>>>8&255,255&i,r>>>24&255,r>>>16&255,r>>>8&255,255&r,85,196,0,0]))},e.hdlr=function(t){var i=null;return i="audio"===t.type?e.constants.HDLR_AUDIO:e.constants.HDLR_VIDEO,e.box(e.types.hdlr,i)},e.minf=function(t){var i=null;return i="audio"===t.type?e.box(e.types.smhd,e.constants.SMHD):e.box(e.types.vmhd,e.constants.VMHD),e.box(e.types.minf,i,e.dinf(),e.stbl(t))},e.dinf=function(){return e.box(e.types.dinf,e.box(e.types.dref,e.constants.DREF))},e.stbl=function(t){return e.box(e.types.stbl,e.stsd(t),e.box(e.types.stts,e.constants.STTS),e.box(e.types.stsc,e.constants.STSC),e.box(e.types.stsz,e.constants.STSZ),e.box(e.types.stco,e.constants.STCO))},e.stsd=function(t){return"audio"===t.type?"mp3"===t.codec?e.box(e.types.stsd,e.constants.STSD_PREFIX,e.mp3(t)):e.box(e.types.stsd,e.constants.STSD_PREFIX,e.mp4a(t)):e.box(e.types.stsd,e.constants.STSD_PREFIX,e.avc1(t))},e.mp3=function(t){var i=t.channelCount,r=t.audioSampleRate,n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,i,0,16,0,0,0,0,r>>>8&255,255&r,0,0]);return e.box(e.types[".mp3"],n)},e.mp4a=function(t){var i=t.channelCount,r=t.audioSampleRate,n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,i,0,16,0,0,0,0,r>>>8&255,255&r,0,0]);return e.box(e.types.mp4a,n,e.esds(t))},e.esds=function(t){var i=t.config||[],r=i.length,n=new Uint8Array([0,0,0,0,3,23+r,0,1,0,4,15+r,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([r]).concat(i).concat([6,1,2]));return e.box(e.types.esds,n)},e.avc1=function(t){var i=t.avcc,r=t.codecWidth,n=t.codecHeight,s=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,r>>>8&255,255&r,n>>>8&255,255&n,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return e.box(e.types.avc1,s,e.box(e.types.avcC,i))},e.mvex=function(t){return e.box(e.types.mvex,e.trex(t))},e.trex=function(t){var i=t.id,r=new Uint8Array([0,0,0,0,i>>>24&255,i>>>16&255,i>>>8&255,255&i,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return e.box(e.types.trex,r)},e.moof=function(t,i){return e.box(e.types.moof,e.mfhd(t.sequenceNumber),e.traf(t,i))},e.mfhd=function(t){var i=new Uint8Array([0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,255&t]);return e.box(e.types.mfhd,i)},e.traf=function(t,i){var r=t.id,n=e.box(e.types.tfhd,new Uint8Array([0,0,0,0,r>>>24&255,r>>>16&255,r>>>8&255,255&r])),s=e.box(e.types.tfdt,new Uint8Array([0,0,0,0,i>>>24&255,i>>>16&255,i>>>8&255,255&i])),o=e.sdtp(t),a=e.trun(t,o.byteLength+16+16+8+16+8+8);return e.box(e.types.traf,n,s,a,o)},e.sdtp=function(t){for(var i=t.samples||[],r=i.length,n=new Uint8Array(4+r),s=0;s<r;s++){var o=i[s].flags;n[s+4]=o.isLeading<<6|o.dependsOn<<4|o.isDependedOn<<2|o.hasRedundancy}return e.box(e.types.sdtp,n)},e.trun=function(t,i){var r=t.samples||[],n=r.length,s=12+16*n,o=new Uint8Array(s);i+=8+s,o.set([0,0,15,1,n>>>24&255,n>>>16&255,n>>>8&255,255&n,i>>>24&255,i>>>16&255,i>>>8&255,255&i],0);for(var a=0;a<n;a++){var u=r[a].duration,l=r[a].size,d=r[a].flags,h=r[a].cts;o.set([u>>>24&255,u>>>16&255,u>>>8&255,255&u,l>>>24&255,l>>>16&255,l>>>8&255,255&l,d.isLeading<<2|d.dependsOn,d.isDependedOn<<6|d.hasRedundancy<<4|d.isNonSync,0,0,h>>>24&255,h>>>16&255,h>>>8&255,255&h],12+16*a)}return e.box(e.types.trun,o)},e.mdat=function(t){return e.box(e.types.mdat,t)},e}();r.init(),t.default=r},"./src/remux/mp4-remuxer.js":
115
+ /*!**********************************!*\
116
+ !*** ./src/remux/mp4-remuxer.js ***!
117
+ \**********************************/function(e,t,i){i.r(t);var r=i(/*! ../utils/logger.js */"./src/utils/logger.js"),n=i(/*! ./mp4-generator.js */"./src/remux/mp4-generator.js"),s=i(/*! ./aac-silent.js */"./src/remux/aac-silent.js"),o=i(/*! ../utils/browser.js */"./src/utils/browser.js"),a=i(/*! ../core/media-segment-info.js */"./src/core/media-segment-info.js"),u=i(/*! ../utils/exception.js */"./src/utils/exception.js"),l=function(){function e(e){this.TAG="MP4Remuxer",this._config=e,this._isLive=!0===e.isLive,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=1/0,this._videoDtsBase=1/0,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new a.MediaSegmentInfoList("audio"),this._videoSegmentInfoList=new a.MediaSegmentInfoList("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!(!o.default.chrome||!(o.default.version.major<50||50===o.default.version.major&&o.default.version.build<2661)),this._fillSilentAfterSeek=o.default.msedge||o.default.msie,this._mp3UseMpegAudio=!o.default.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}return e.prototype.destroy=function(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null},e.prototype.bindDataSource=function(e){return e.onDataAvailable=this.remux.bind(this),e.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this},Object.defineProperty(e.prototype,"onInitSegment",{get:function(){return this._onInitSegment},set:function(e){this._onInitSegment=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onMediaSegment",{get:function(){return this._onMediaSegment},set:function(e){this._onMediaSegment=e},enumerable:!1,configurable:!0}),e.prototype.insertDiscontinuity=function(){this._audioNextDts=this._videoNextDts=void 0},e.prototype.seek=function(e){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()},e.prototype.remux=function(e,t){if(!this._onMediaSegment)throw new u.IllegalStateException("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(e,t),this._remuxVideo(t),this._remuxAudio(e)},e.prototype._onTrackMetadataReceived=function(e,t){var i=null,r="mp4",s=t.codec;if("audio"===e)this._audioMeta=t,"mp3"===t.codec&&this._mp3UseMpegAudio?(r="mpeg",s="",i=new Uint8Array):i=n.default.generateInitSegment(t);else{if("video"!==e)return;this._videoMeta=t,i=n.default.generateInitSegment(t)}if(!this._onInitSegment)throw new u.IllegalStateException("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(e,{type:e,data:i.buffer,codec:s,container:e+"/"+r,mediaDuration:t.duration})},e.prototype._calculateDtsBase=function(e,t){this._dtsBaseInited||(e.samples&&e.samples.length&&(this._audioDtsBase=e.samples[0].dts),t.samples&&t.samples.length&&(this._videoDtsBase=t.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)},e.prototype.flushStashedSamples=function(){var e=this._videoStashedLastSample,t=this._audioStashedLastSample,i={type:"video",id:1,sequenceNumber:0,samples:[],length:0};null!=e&&(i.samples.push(e),i.length=e.length);var r={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};null!=t&&(r.samples.push(t),r.length=t.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(i,!0),this._remuxAudio(r,!0)},e.prototype._remuxAudio=function(e,t){if(null!=this._audioMeta){var i,u=e,l=u.samples,d=void 0,h=-1,c=this._audioMeta.refSampleDuration,f="mp3"===this._audioMeta.codec&&this._mp3UseMpegAudio,_=this._dtsBaseInited&&void 0===this._audioNextDts,p=!1;if(l&&0!==l.length&&(1!==l.length||t)){var m=0,g=null,v=0;f?(m=0,v=u.length):(m=8,v=8+u.length);var y=null;if(l.length>1&&(v-=(y=l.pop()).length),null!=this._audioStashedLastSample){var b=this._audioStashedLastSample;this._audioStashedLastSample=null,l.unshift(b),v+=b.length}null!=y&&(this._audioStashedLastSample=y);var E=l[0].dts-this._dtsBase;if(this._audioNextDts)d=E-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())d=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&"mp3"!==this._audioMeta.originalCodec&&(p=!0);else{var S=this._audioSegmentInfoList.getLastSampleBefore(E);if(null!=S){var L=E-(S.originalDts+S.duration);L<=3&&(L=0),d=E-(S.dts+S.duration+L)}else d=0}if(p){var A=E-d,R=this._videoSegmentInfoList.getLastSegmentBefore(E);if(null!=R&&R.beginDts<A){if(P=s.default.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount)){var w=R.beginDts,T=A-R.beginDts;r.default.v(this.TAG,"InsertPrefixSilentAudio: dts: "+w+", duration: "+T),l.unshift({unit:P,dts:w,pts:w}),v+=P.byteLength}}else p=!1}for(var O=[],k=0;k<l.length;k++){var C=(b=l[k]).unit,I=b.dts-this._dtsBase,D=(w=I,!1),x=null,M=0;if(!(I<-.001)){if("mp3"!==this._audioMeta.codec){var B=I;if(this._audioNextDts&&(B=this._audioNextDts),(d=I-B)<=-3*c){r.default.w(this.TAG,"Dropping 1 audio frame (originalDts: "+I+" ms ,curRefDts: "+B+" ms) due to dtsCorrection: "+d+" ms overlap.");continue}if(d>=3*c&&this._fillAudioTimestampGap&&!o.default.safari){D=!0;var P,j=Math.floor(d/c);r.default.w(this.TAG,"Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.\noriginalDts: "+I+" ms, curRefDts: "+B+" ms, dtsCorrection: "+Math.round(d)+" ms, generate: "+j+" frames"),w=Math.floor(B),M=Math.floor(B+c)-w,null==(P=s.default.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount))&&(r.default.w(this.TAG,"Unable to generate silent frame for "+this._audioMeta.originalCodec+" with "+this._audioMeta.channelCount+" channels, repeat last frame"),P=C),x=[];for(var U=0;U<j;U++){B+=c;var N=Math.floor(B),F=Math.floor(B+c)-N,G={dts:N,pts:N,cts:0,unit:P,size:P.byteLength,duration:F,originalDts:I,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};x.push(G),v+=G.size}this._audioNextDts=B+c}else w=Math.floor(B),M=Math.floor(B+c)-w,this._audioNextDts=B+c}else w=I-d,M=k!==l.length-1?l[k+1].dts-this._dtsBase-d-w:null!=y?y.dts-this._dtsBase-d-w:O.length>=1?O[O.length-1].duration:Math.floor(c),this._audioNextDts=w+M;-1===h&&(h=w),O.push({dts:w,pts:w,cts:0,unit:b.unit,size:b.unit.byteLength,duration:M,originalDts:I,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),D&&O.push.apply(O,x)}}if(0===O.length)return u.samples=[],void(u.length=0);for(f?g=new Uint8Array(v):((g=new Uint8Array(v))[0]=v>>>24&255,g[1]=v>>>16&255,g[2]=v>>>8&255,g[3]=255&v,g.set(n.default.types.mdat,4)),k=0;k<O.length;k++)C=O[k].unit,g.set(C,m),m+=C.byteLength;var V=O[O.length-1];i=V.dts+V.duration;var z=new a.MediaSegmentInfo;z.beginDts=h,z.endDts=i,z.beginPts=h,z.endPts=i,z.originalBeginDts=O[0].originalDts,z.originalEndDts=V.originalDts+V.duration,z.firstSample=new a.SampleInfo(O[0].dts,O[0].pts,O[0].duration,O[0].originalDts,!1),z.lastSample=new a.SampleInfo(V.dts,V.pts,V.duration,V.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(z),u.samples=O,u.sequenceNumber++;var K=null;K=f?new Uint8Array:n.default.moof(u,h),u.samples=[],u.length=0;var H={type:"audio",data:this._mergeBoxes(K,g).buffer,sampleCount:O.length,info:z};f&&_&&(H.timestampOffset=h),this._onMediaSegment("audio",H)}}},e.prototype._remuxVideo=function(e,t){if(null!=this._videoMeta){var i,r,s=e,o=s.samples,u=void 0,l=-1,d=-1;if(o&&0!==o.length&&(1!==o.length||t)){var h=8,c=null,f=8+e.length,_=null;if(o.length>1&&(f-=(_=o.pop()).length),null!=this._videoStashedLastSample){var p=this._videoStashedLastSample;this._videoStashedLastSample=null,o.unshift(p),f+=p.length}null!=_&&(this._videoStashedLastSample=_);var m=o[0].dts-this._dtsBase;if(this._videoNextDts)u=m-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())u=0;else{var g=this._videoSegmentInfoList.getLastSampleBefore(m);if(null!=g){var v=m-(g.originalDts+g.duration);v<=3&&(v=0),u=m-(g.dts+g.duration+v)}else u=0}for(var y=new a.MediaSegmentInfo,b=[],E=0;E<o.length;E++){var S=(p=o[E]).dts-this._dtsBase,L=p.isKeyframe,A=S-u,R=p.cts,w=A+R;-1===l&&(l=A,d=w);var T=0;if(T=E!==o.length-1?o[E+1].dts-this._dtsBase-u-A:null!=_?_.dts-this._dtsBase-u-A:b.length>=1?b[b.length-1].duration:Math.floor(this._videoMeta.refSampleDuration),L){var O=new a.SampleInfo(A,w,T,p.dts,!0);O.fileposition=p.fileposition,y.appendSyncPoint(O)}b.push({dts:A,pts:w,cts:R,units:p.units,size:p.length,isKeyframe:L,duration:T,originalDts:S,flags:{isLeading:0,dependsOn:L?2:1,isDependedOn:L?1:0,hasRedundancy:0,isNonSync:L?0:1}})}for((c=new Uint8Array(f))[0]=f>>>24&255,c[1]=f>>>16&255,c[2]=f>>>8&255,c[3]=255&f,c.set(n.default.types.mdat,4),E=0;E<b.length;E++)for(var k=b[E].units;k.length;){var C=k.shift().data;c.set(C,h),h+=C.byteLength}var I=b[b.length-1];if(i=I.dts+I.duration,r=I.pts+I.duration,this._videoNextDts=i,y.beginDts=l,y.endDts=i,y.beginPts=d,y.endPts=r,y.originalBeginDts=b[0].originalDts,y.originalEndDts=I.originalDts+I.duration,y.firstSample=new a.SampleInfo(b[0].dts,b[0].pts,b[0].duration,b[0].originalDts,b[0].isKeyframe),y.lastSample=new a.SampleInfo(I.dts,I.pts,I.duration,I.originalDts,I.isKeyframe),this._isLive||this._videoSegmentInfoList.append(y),s.samples=b,s.sequenceNumber++,this._forceFirstIDR){var D=b[0].flags;D.dependsOn=2,D.isNonSync=0}var x=n.default.moof(s,l);s.samples=[],s.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(x,c).buffer,sampleCount:b.length,info:y})}}},e.prototype._mergeBoxes=function(e,t){var i=new Uint8Array(e.byteLength+t.byteLength);return i.set(e,0),i.set(t,e.byteLength),i},e}();t.default=l},"./src/utils/browser.js":
118
+ /*!******************************!*\
119
+ !*** ./src/utils/browser.js ***!
120
+ \******************************/function(e,t,i){i.r(t);var r={};!function(){var e=self.navigator.userAgent.toLowerCase(),t=/(edge)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(chrome)[ \/]([\w.]+)/.exec(e)||/(iemobile)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(e)||[],i=/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(android)/.exec(e)||/(windows)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||[],n={browser:t[5]||t[3]||t[1]||"",version:t[2]||t[4]||"0",majorVersion:t[4]||t[2]||"0",platform:i[0]||""},s={};if(n.browser){s[n.browser]=!0;var o=n.majorVersion.split(".");s.version={major:parseInt(n.majorVersion,10),string:n.version},o.length>1&&(s.version.minor=parseInt(o[1],10)),o.length>2&&(s.version.build=parseInt(o[2],10))}if(n.platform&&(s[n.platform]=!0),(s.chrome||s.opr||s.safari)&&(s.webkit=!0),s.rv||s.iemobile){s.rv&&delete s.rv;var a="msie";n.browser=a,s.msie=!0}if(s.edge){delete s.edge;var u="msedge";n.browser=u,s.msedge=!0}if(s.opr){var l="opera";n.browser=l,s.opera=!0}if(s.safari&&s.android){var d="android";n.browser=d,s.android=!0}for(var h in s.name=n.browser,s.platform=n.platform,r)r.hasOwnProperty(h)&&delete r[h];Object.assign(r,s)}(),t.default=r},"./src/utils/exception.js":
121
+ /*!********************************!*\
122
+ !*** ./src/utils/exception.js ***!
123
+ \********************************/function(e,t,i){i.r(t),i.d(t,{RuntimeException:function(){return s},IllegalStateException:function(){return o},InvalidArgumentException:function(){return a},NotImplementedException:function(){return u}});var r,n=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(){function e(e){this._message=e}return Object.defineProperty(e.prototype,"name",{get:function(){return"RuntimeException"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){return this._message},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return this.name+": "+this.message},e}(),o=function(e){function t(t){return e.call(this,t)||this}return n(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"IllegalStateException"},enumerable:!1,configurable:!0}),t}(s),a=function(e){function t(t){return e.call(this,t)||this}return n(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"InvalidArgumentException"},enumerable:!1,configurable:!0}),t}(s),u=function(e){function t(t){return e.call(this,t)||this}return n(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"NotImplementedException"},enumerable:!1,configurable:!0}),t}(s)},"./src/utils/logger.js":
124
+ /*!*****************************!*\
125
+ !*** ./src/utils/logger.js ***!
126
+ \*****************************/function(e,t,i){i.r(t);var r=i(/*! events */"./node_modules/events/events.js"),n=i.n(r),s=function(){function e(){}return e.e=function(t,i){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var r="["+t+"] > "+i;e.ENABLE_CALLBACK&&e.emitter.emit("log","error",r),e.ENABLE_ERROR&&(console.error?console.error(r):console.warn?console.warn(r):console.log(r))},e.i=function(t,i){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var r="["+t+"] > "+i;e.ENABLE_CALLBACK&&e.emitter.emit("log","info",r),e.ENABLE_INFO&&(console.info?console.info(r):console.log(r))},e.w=function(t,i){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var r="["+t+"] > "+i;e.ENABLE_CALLBACK&&e.emitter.emit("log","warn",r),e.ENABLE_WARN&&(console.warn?console.warn(r):console.log(r))},e.d=function(t,i){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var r="["+t+"] > "+i;e.ENABLE_CALLBACK&&e.emitter.emit("log","debug",r),e.ENABLE_DEBUG&&(console.debug?console.debug(r):console.log(r))},e.v=function(t,i){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var r="["+t+"] > "+i;e.ENABLE_CALLBACK&&e.emitter.emit("log","verbose",r),e.ENABLE_VERBOSE&&console.log(r)},e}();s.GLOBAL_TAG="flv.js",s.FORCE_GLOBAL_TAG=!1,s.ENABLE_ERROR=!0,s.ENABLE_INFO=!0,s.ENABLE_WARN=!0,s.ENABLE_DEBUG=!0,s.ENABLE_VERBOSE=!0,s.ENABLE_CALLBACK=!1,s.emitter=new(n()),t.default=s},"./src/utils/logging-control.js":
127
+ /*!**************************************!*\
128
+ !*** ./src/utils/logging-control.js ***!
129
+ \**************************************/function(e,t,i){i.r(t);var r=i(/*! events */"./node_modules/events/events.js"),n=i.n(r),s=i(/*! ./logger.js */"./src/utils/logger.js"),o=function(){function e(){}return Object.defineProperty(e,"forceGlobalTag",{get:function(){return s.default.FORCE_GLOBAL_TAG},set:function(t){s.default.FORCE_GLOBAL_TAG=t,e._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"globalTag",{get:function(){return s.default.GLOBAL_TAG},set:function(t){s.default.GLOBAL_TAG=t,e._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"enableAll",{get:function(){return s.default.ENABLE_VERBOSE&&s.default.ENABLE_DEBUG&&s.default.ENABLE_INFO&&s.default.ENABLE_WARN&&s.default.ENABLE_ERROR},set:function(t){s.default.ENABLE_VERBOSE=t,s.default.ENABLE_DEBUG=t,s.default.ENABLE_INFO=t,s.default.ENABLE_WARN=t,s.default.ENABLE_ERROR=t,e._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"enableDebug",{get:function(){return s.default.ENABLE_DEBUG},set:function(t){s.default.ENABLE_DEBUG=t,e._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"enableVerbose",{get:function(){return s.default.ENABLE_VERBOSE},set:function(t){s.default.ENABLE_VERBOSE=t,e._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"enableInfo",{get:function(){return s.default.ENABLE_INFO},set:function(t){s.default.ENABLE_INFO=t,e._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"enableWarn",{get:function(){return s.default.ENABLE_WARN},set:function(t){s.default.ENABLE_WARN=t,e._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"enableError",{get:function(){return s.default.ENABLE_ERROR},set:function(t){s.default.ENABLE_ERROR=t,e._notifyChange()},enumerable:!1,configurable:!0}),e.getConfig=function(){return{globalTag:s.default.GLOBAL_TAG,forceGlobalTag:s.default.FORCE_GLOBAL_TAG,enableVerbose:s.default.ENABLE_VERBOSE,enableDebug:s.default.ENABLE_DEBUG,enableInfo:s.default.ENABLE_INFO,enableWarn:s.default.ENABLE_WARN,enableError:s.default.ENABLE_ERROR,enableCallback:s.default.ENABLE_CALLBACK}},e.applyConfig=function(e){s.default.GLOBAL_TAG=e.globalTag,s.default.FORCE_GLOBAL_TAG=e.forceGlobalTag,s.default.ENABLE_VERBOSE=e.enableVerbose,s.default.ENABLE_DEBUG=e.enableDebug,s.default.ENABLE_INFO=e.enableInfo,s.default.ENABLE_WARN=e.enableWarn,s.default.ENABLE_ERROR=e.enableError,s.default.ENABLE_CALLBACK=e.enableCallback},e._notifyChange=function(){var t=e.emitter;if(t.listenerCount("change")>0){var i=e.getConfig();t.emit("change",i)}},e.registerListener=function(t){e.emitter.addListener("change",t)},e.removeListener=function(t){e.emitter.removeListener("change",t)},e.addLogListener=function(t){s.default.emitter.addListener("log",t),s.default.emitter.listenerCount("log")>0&&(s.default.ENABLE_CALLBACK=!0,e._notifyChange())},e.removeLogListener=function(t){s.default.emitter.removeListener("log",t),0===s.default.emitter.listenerCount("log")&&(s.default.ENABLE_CALLBACK=!1,e._notifyChange())},e}();o.emitter=new(n()),t.default=o},"./src/utils/polyfill.js":
130
+ /*!*******************************!*\
131
+ !*** ./src/utils/polyfill.js ***!
132
+ \*******************************/function(e,t,i){i.r(t);var r=function(){function e(){}return e.install=function(){Object.setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Object.assign=Object.assign||function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),i=1;i<arguments.length;i++){var r=arguments[i];if(null!=r)for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n])}return t},"function"!=typeof self.Promise&&i(/*! es6-promise */"./node_modules/es6-promise/dist/es6-promise.js").polyfill()},e}();r.install(),t.default=r},"./src/utils/utf8-conv.js":
133
+ /*!********************************!*\
134
+ !*** ./src/utils/utf8-conv.js ***!
135
+ \********************************/function(e,t,i){function r(e,t,i){var r=e;if(t+i<r.length){for(;i--;)if(128!=(192&r[++t]))return!1;return!0}return!1}i.r(t),t.default=function(e){for(var t=[],i=e,n=0,s=e.length;n<s;)if(i[n]<128)t.push(String.fromCharCode(i[n])),++n;else{if(i[n]<192);else if(i[n]<224){if(r(i,n,1)&&(o=(31&i[n])<<6|63&i[n+1])>=128){t.push(String.fromCharCode(65535&o)),n+=2;continue}}else if(i[n]<240){if(r(i,n,2)&&(o=(15&i[n])<<12|(63&i[n+1])<<6|63&i[n+2])>=2048&&55296!=(63488&o)){t.push(String.fromCharCode(65535&o)),n+=3;continue}}else if(i[n]<248){var o;if(r(i,n,3)&&(o=(7&i[n])<<18|(63&i[n+1])<<12|(63&i[n+2])<<6|63&i[n+3])>65536&&o<1114112){o-=65536,t.push(String.fromCharCode(o>>>10|55296)),t.push(String.fromCharCode(1023&o|56320)),n+=4;continue}}t.push(String.fromCharCode(65533)),++n}return t.join("")}}},t={};function r(i){var n=t[i];if(void 0!==n)return n.exports;var s=t[i]={exports:{}};return e[i].call(s.exports,s,s.exports,r),s.exports}return r.m=e,r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var i in t)r.o(t,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},r.g=function(){if("object"===("undefined"==typeof globalThis?"undefined":i(globalThis)))return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===("undefined"==typeof window?"undefined":i(window)))return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r("./src/index.js")}()},I.exports=C();var D=r(I.exports),x=y("<span></span>");t("default",(function(){var t=n(),i=t.pathname,r=t.searchParams,y=s().proxyLink,C=o(),I=a.objs.filter((function(e){return e.type===S.VIDEO}));0===I.length&&(I=[a.obj]);var M,B,P=function(){var e=I.findIndex((function(e){return e.name===a.obj.name}));e<I.length-1&&C(b(E(location.pathname),I[e+1].name)+"?auto_fullscreen="+M.fullscreen)},j={id:i(),container:"#video-player",url:a.raw_url,title:a.obj.name,volume:.5,autoplay:u("video_autoplay"),autoSize:!1,autoMini:!0,loop:!1,flip:!0,playbackRate:!0,aspectRatio:!0,setting:!0,hotkey:!0,pip:!0,mutex:!0,fullscreen:!0,fullscreenWeb:!0,subtitleOffset:!0,miniProgressBar:!1,playsInline:!0,controls:[{name:"previous-button",index:10,position:"left",html:'<svg fill="none" stroke-width="2" xmlns="http://www.w3.org/2000/svg" height="22" width="22" class="icon icon-tabler icon-tabler-player-track-prev-filled" width="1em" height="1em" viewBox="0 0 24 24" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" style="overflow: visible; color: currentcolor;"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M20.341 4.247l-8 7a1 1 0 0 0 0 1.506l8 7c.647 .565 1.659 .106 1.659 -.753v-14c0 -.86 -1.012 -1.318 -1.659 -.753z" stroke-width="0" fill="currentColor"></path><path d="M9.341 4.247l-8 7a1 1 0 0 0 0 1.506l8 7c.647 .565 1.659 .106 1.659 -.753v-14c0 -.86 -1.012 -1.318 -1.659 -.753z" stroke-width="0" fill="currentColor"></path></svg>',tooltip:"Previous",click:function(){var e;(e=I.findIndex((function(e){return e.name===a.obj.name})))>0&&C(b(E(location.pathname),I[e-1].name)+"?auto_fullscreen="+M.fullscreen)}},{name:"next-button",index:11,position:"left",html:'<svg fill="none" stroke-width="2" xmlns="http://www.w3.org/2000/svg" height="22" width="22" class="icon icon-tabler icon-tabler-player-track-next-filled" width="1em" height="1em" viewBox="0 0 24 24" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" style="overflow: visible; color: currentcolor;"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M2 5v14c0 .86 1.012 1.318 1.659 .753l8 -7a1 1 0 0 0 0 -1.506l-8 -7c-.647 -.565 -1.659 -.106 -1.659 .753z" stroke-width="0" fill="currentColor"></path><path d="M13 5v14c0 .86 1.012 1.318 1.659 .753l8 -7a1 1 0 0 0 0 -1.506l-8 -7c-.647 -.565 -1.659 -.106 -1.659 .753z" stroke-width="0" fill="currentColor"></path></svg>',tooltip:"Next",click:function(){P()}}],quality:[],plugins:[A],whitelist:[],settings:[],moreVideoAttr:{"webkit-playsinline":!0,playsInline:!0},type:l(a.obj.name),customType:{flv:function(e,t){var i=D.createPlayer({type:"flv",url:t},{referrerPolicy:"same-origin"});i.attachMediaElement(e),i.load()},m3u8:function(e,t){var i=new T;i.loadSource(t),i.attachMedia(e),e.src||(e.src=t)}},lang:["en","zh-cn","zh-tw"].includes(d().toLowerCase())?d().toLowerCase():"en",lock:!0,fastForward:!0,autoPlayback:!0,autoOrientation:!0,airplay:!0},U=a.related.filter((function(e){for(var t=0,i=[".srt",".ass",".vtt"];t<i.length;t++){var r=i[t];if(e.name.endsWith(r))return!0}return!1})),N=a.related.find((function(e){for(var t=0,i=[".xml"];t<i.length;t++){var r=i[t];if(e.name.endsWith(r))return!0}return!1}));if(0!=U.length){var F,G,V=!1,z=U[0];if("ass"===l(z.name).toLowerCase())V=!0,null===(G=j.plugins)||void 0===G||G.push(O({subUrl:y(z,!0)}));else j.subtitle={url:y(z,!0),type:l(z.name)};var K=[{id:"setting_subtitle_display",html:"Display",tooltip:"Show",switch:!0,onSwitch:function(e){var t;e.tooltip=e.switch?"Hide":"Show",X(!e.switch);var i=null===(t=j.settings)||void 0===t?void 0:t.find((function(e){return"setting_subtitle"===e.id}));return i&&(i.tooltip=e.tooltip),!e.switch}}];function X(e){if("ass"===(V?"ass":"webvtt"))M.subtitle.show=!1,M.emit("artplayer-plugin-ass:visible",e);else M.subtitle.show=e,M.emit("artplayer-plugin-ass:visible",!1)}U.forEach((function(e,t){var i;K.push({default:0===t,html:(i=x.cloneNode(!0),i.style.setProperty("max-width","200px"),i.style.setProperty("overflow","hidden"),i.style.setProperty("text-overflow","ellipsis"),i.style.setProperty("word-break","break-all"),i.style.setProperty("white-space","normal"),i.style.setProperty("display","-webkit-box"),i.style.setProperty("-webkit-line-clamp","2"),i.style.setProperty("-webkit-box-orient","vertical"),i.style.setProperty("font-size","12px"),h(i,(function(){return e.name})),c((function(){return f(i,"title",e.name)})),i),name:e.name,url:y(e,!0)})})),null===(F=j.settings)||void 0===F||F.push({id:"setting_subtitle",html:"Subtitle",tooltip:"Show",icon:L({size:24}),selector:K,onSelect:function(e){var t,i;"ass"===l(e.name).toLowerCase()?(V=!0,this.emit("artplayer-plugin-ass:switch",e.url),X(!0)):(V=!1,this.subtitle.switch(e.url,{name:e.name}),this.once("subtitleLoad",X.bind(this,!0)));var r=K.find((function(e){return"setting_subtitle_display"===e.id}));return r&&!r.switch&&(null===(t=r.$html)||void 0===t||null===(i=t.click)||void 0===i||i.call(t)),null==r?void 0:r.tooltip}})}N&&(null===(B=j.plugins)||void 0===B||B.push(k({danmuku:y(N,!0),speed:5,opacity:1,fontSize:25,color:"#FFFFFF",mode:0,margin:[0,"0%"],antiOverlap:!1,useWorker:!0,synchronousPlayback:!1,lockTime:5,maxLength:100,minWidth:200,maxWidth:400,theme:"dark",heatmap:!0})));_((function(){var e;switch(M=new R(j),r.auto_fullscreen){case"true":e=!0;case"false":e=!1;default:e=!1}M.on("ready",(function(){M.fullscreen=e})),M.on("video:ended",(function(){W()&&P()}))})),p((function(){var e;null===(e=M)||void 0===e||e.destroy()}));var H=e(m(),2),W=H[0],q=H[1];return g(w,{onAutoNextChange:q,get children(){return g(v,{w:"$full",h:"60vh",id:"video-player"})}})}))}}}))}();