create-jsview 2.1.428 → 2.1.448-test.0

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 (263) hide show
  1. package/package.json +3 -3
  2. package/template-react-webpack/package-lock-json +6 -6
  3. package/template-react-webpack/package.json +2 -2
  4. package/template-vue-vite/package-lock-json +6 -6
  5. package/template-vue-vite/package.json +2 -2
  6. package/template-vue-vite/.DS_Store +0 -0
  7. package/template-vue-vite/dist-test-jsview-chunk/assets/1.54c7645a.png +0 -0
  8. package/template-vue-vite/dist-test-jsview-chunk/assets/1.5dc15599.png +0 -0
  9. package/template-vue-vite/dist-test-jsview-chunk/assets/1280x7200.f72b317a.jpg +0 -0
  10. package/template-vue-vite/dist-test-jsview-chunk/assets/2.c46fde4a.png +0 -0
  11. package/template-vue-vite/dist-test-jsview-chunk/assets/2.df10a8ad.png +0 -0
  12. package/template-vue-vite/dist-test-jsview-chunk/assets/3.920d6934.png +0 -0
  13. package/template-vue-vite/dist-test-jsview-chunk/assets/3.dd39d2bc.png +0 -0
  14. package/template-vue-vite/dist-test-jsview-chunk/assets/4.4cd633a0.jpg +0 -0
  15. package/template-vue-vite/dist-test-jsview-chunk/assets/4.f58de085.png +0 -0
  16. package/template-vue-vite/dist-test-jsview-chunk/assets/Couplets.22a8bcb3.png +0 -0
  17. package/template-vue-vite/dist-test-jsview-chunk/assets/Square.2085a1e3.png +0 -0
  18. package/template-vue-vite/dist-test-jsview-chunk/assets/animated_webp.df116064.webp +0 -0
  19. package/template-vue-vite/dist-test-jsview-chunk/assets/ball_3.6443240f.webp +0 -0
  20. package/template-vue-vite/dist-test-jsview-chunk/assets/bg1.9dacd4a9.png +0 -0
  21. package/template-vue-vite/dist-test-jsview-chunk/assets/bg2.05147169.png +0 -0
  22. package/template-vue-vite/dist-test-jsview-chunk/assets/bg3.4725410a.png +0 -0
  23. package/template-vue-vite/dist-test-jsview-chunk/assets/bg4.67998d21.png +0 -0
  24. package/template-vue-vite/dist-test-jsview-chunk/assets/bg5.e6aeb8ef.png +0 -0
  25. package/template-vue-vite/dist-test-jsview-chunk/assets/bg_btn.3bc67ce7.png +0 -0
  26. package/template-vue-vite/dist-test-jsview-chunk/assets/bgimage.9ebd66c5.jpg +0 -0
  27. package/template-vue-vite/dist-test-jsview-chunk/assets/bgmusic.bf797943.mp3 +0 -0
  28. package/template-vue-vite/dist-test-jsview-chunk/assets/blue_egg.a2c54f95.png +0 -0
  29. package/template-vue-vite/dist-test-jsview-chunk/assets/bmpDemo.e06bdb19.bmp +0 -0
  30. package/template-vue-vite/dist-test-jsview-chunk/assets/boom.159be4de.mp3 +0 -0
  31. package/template-vue-vite/dist-test-jsview-chunk/assets/border.32f99a05.png +0 -0
  32. package/template-vue-vite/dist-test-jsview-chunk/assets/btn_ok.a0827ed4.png +0 -0
  33. package/template-vue-vite/dist-test-jsview-chunk/assets/coin.50aac2a4.mp3 +0 -0
  34. package/template-vue-vite/dist-test-jsview-chunk/assets/coupon_left.c9f544cb.png +0 -0
  35. package/template-vue-vite/dist-test-jsview-chunk/assets/coupon_mid.ef262879.png +0 -0
  36. package/template-vue-vite/dist-test-jsview-chunk/assets/coupon_right.248ee7dc.png +0 -0
  37. package/template-vue-vite/dist-test-jsview-chunk/assets/egg_break.e01a800c.png +0 -0
  38. package/template-vue-vite/dist-test-jsview-chunk/assets/fail.446dfd56.png +0 -0
  39. package/template-vue-vite/dist-test-jsview-chunk/assets/firecracker.bf5b0aa9.png +0 -0
  40. package/template-vue-vite/dist-test-jsview-chunk/assets/fireworks.1c112f43.png +0 -0
  41. package/template-vue-vite/dist-test-jsview-chunk/assets/focus1.ff67f2e6.png +0 -0
  42. package/template-vue-vite/dist-test-jsview-chunk/assets/get.3509893a.mp3 +0 -0
  43. package/template-vue-vite/dist-test-jsview-chunk/assets/girl_run.1c322b33.gif +0 -0
  44. package/template-vue-vite/dist-test-jsview-chunk/assets/goldencoin1.d31809e9.png +0 -0
  45. package/template-vue-vite/dist-test-jsview-chunk/assets/goldencoin2.3f5b59d2.png +0 -0
  46. package/template-vue-vite/dist-test-jsview-chunk/assets/holder_logo.5d13253c.png +0 -0
  47. package/template-vue-vite/dist-test-jsview-chunk/assets/icon.0d3ef206.png +0 -0
  48. package/template-vue-vite/dist-test-jsview-chunk/assets/jpegDemo.ede7ed35.jpeg +0 -0
  49. package/template-vue-vite/dist-test-jsview-chunk/assets/jump.d2e172b2.mp3 +0 -0
  50. package/template-vue-vite/dist-test-jsview-chunk/assets/jump_down.68b45798.png +0 -0
  51. package/template-vue-vite/dist-test-jsview-chunk/assets/jump_up.2f896dd9.png +0 -0
  52. package/template-vue-vite/dist-test-jsview-chunk/assets/leadWire.0c2130df.png +0 -0
  53. package/template-vue-vite/dist-test-jsview-chunk/assets/light.fd536e0c.png +0 -0
  54. package/template-vue-vite/dist-test-jsview-chunk/assets/light2.eac76425.png +0 -0
  55. package/template-vue-vite/dist-test-jsview-chunk/assets/line_left.36cc4bd9.png +0 -0
  56. package/template-vue-vite/dist-test-jsview-chunk/assets/line_mid.21f25bbe.png +0 -0
  57. package/template-vue-vite/dist-test-jsview-chunk/assets/line_right.3a4bbae6.png +0 -0
  58. package/template-vue-vite/dist-test-jsview-chunk/assets/lose.86f51553.mp3 +0 -0
  59. package/template-vue-vite/dist-test-jsview-chunk/assets/mask.c1211360.png +0 -0
  60. package/template-vue-vite/dist-test-jsview-chunk/assets/mathjax-tex-svg.d4295dc3.txt +0 -1
  61. package/template-vue-vite/dist-test-jsview-chunk/assets/php.9533a06f.jpg +0 -0
  62. package/template-vue-vite/dist-test-jsview-chunk/assets/php2.7e5cf392.png +0 -0
  63. package/template-vue-vite/dist-test-jsview-chunk/assets/pngNoAlphaDemo.8d9edc0f.png +0 -0
  64. package/template-vue-vite/dist-test-jsview-chunk/assets/purpleStar.b1920ac5.png +0 -0
  65. package/template-vue-vite/dist-test-jsview-chunk/assets/quan.54556d84.webp +0 -0
  66. package/template-vue-vite/dist-test-jsview-chunk/assets/redCircle.091d191f.png +0 -0
  67. package/template-vue-vite/dist-test-jsview-chunk/assets/redStar.9c31bb42.png +0 -0
  68. package/template-vue-vite/dist-test-jsview-chunk/assets/red_egg.27ca7d39.png +0 -0
  69. package/template-vue-vite/dist-test-jsview-chunk/assets/redpacket1.72196c20.png +0 -0
  70. package/template-vue-vite/dist-test-jsview-chunk/assets/redpacket2.0ae89a46.png +0 -0
  71. package/template-vue-vite/dist-test-jsview-chunk/assets/resultSquare.b9e3527b.png +0 -0
  72. package/template-vue-vite/dist-test-jsview-chunk/assets/roll.aa0dfe6f.png +0 -0
  73. package/template-vue-vite/dist-test-jsview-chunk/assets/run.b84383b2.png +0 -0
  74. package/template-vue-vite/dist-test-jsview-chunk/assets/scroll.c4efa5a1.png +0 -0
  75. package/template-vue-vite/dist-test-jsview-chunk/assets/scroll1.744c0b08.png +0 -0
  76. package/template-vue-vite/dist-test-jsview-chunk/assets/snow.22f35787.png +0 -0
  77. package/template-vue-vite/dist-test-jsview-chunk/assets/spark.50b3f017.png +0 -0
  78. package/template-vue-vite/dist-test-jsview-chunk/assets/star1.dd634833.png +0 -0
  79. package/template-vue-vite/dist-test-jsview-chunk/assets/star2.df352429.png +0 -0
  80. package/template-vue-vite/dist-test-jsview-chunk/assets/star3.5a62b76f.png +0 -0
  81. package/template-vue-vite/dist-test-jsview-chunk/assets/star4.2283606c.png +0 -0
  82. package/template-vue-vite/dist-test-jsview-chunk/assets/swipLight.ab6b2bc2.png +0 -0
  83. package/template-vue-vite/dist-test-jsview-chunk/assets/tease.3d7fb077.png +0 -0
  84. package/template-vue-vite/dist-test-jsview-chunk/assets/tease_lock.3602bb0d.png +0 -0
  85. package/template-vue-vite/dist-test-jsview-chunk/assets/test.671066bc.jpg +0 -0
  86. package/template-vue-vite/dist-test-jsview-chunk/assets/webpDemo.eb0b7786.webp +0 -0
  87. package/template-vue-vite/dist-test-jsview-chunk/assets/yellowStar.d80f0718.png +0 -0
  88. package/template-vue-vite/dist-test-jsview-chunk/css/App.0e83537d.css +0 -6
  89. package/template-vue-vite/dist-test-jsview-chunk/css/App.10e9d05f.css +0 -14
  90. package/template-vue-vite/dist-test-jsview-chunk/css/App.16cc5e4a.css +0 -20
  91. package/template-vue-vite/dist-test-jsview-chunk/css/App.18bd653b.css +0 -10
  92. package/template-vue-vite/dist-test-jsview-chunk/css/App.2943d6ec.css +0 -9
  93. package/template-vue-vite/dist-test-jsview-chunk/css/App.329ae9f6.css +0 -23
  94. package/template-vue-vite/dist-test-jsview-chunk/css/App.32c55297.css +0 -8
  95. package/template-vue-vite/dist-test-jsview-chunk/css/App.3e2a4eb1.css +0 -108
  96. package/template-vue-vite/dist-test-jsview-chunk/css/App.4ea37a27.css +0 -39
  97. package/template-vue-vite/dist-test-jsview-chunk/css/App.54fdcefd.css +0 -51
  98. package/template-vue-vite/dist-test-jsview-chunk/css/App.6406907b.css +0 -9
  99. package/template-vue-vite/dist-test-jsview-chunk/css/App.643b5c1b.css +0 -8
  100. package/template-vue-vite/dist-test-jsview-chunk/css/App.66f2f353.css +0 -553
  101. package/template-vue-vite/dist-test-jsview-chunk/css/App.76117f77.css +0 -21
  102. package/template-vue-vite/dist-test-jsview-chunk/css/App.7a70ea9d.css +0 -20
  103. package/template-vue-vite/dist-test-jsview-chunk/css/App.7ee969c5.css +0 -40
  104. package/template-vue-vite/dist-test-jsview-chunk/css/App.8056ee27.css +0 -144
  105. package/template-vue-vite/dist-test-jsview-chunk/css/App.81e870e8.css +0 -16
  106. package/template-vue-vite/dist-test-jsview-chunk/css/App.8a41b2c9.css +0 -4
  107. package/template-vue-vite/dist-test-jsview-chunk/css/App.8b7fc4be.css +0 -21
  108. package/template-vue-vite/dist-test-jsview-chunk/css/App.9acd4020.css +0 -9
  109. package/template-vue-vite/dist-test-jsview-chunk/css/App.9b8ef7c4.css +0 -17
  110. package/template-vue-vite/dist-test-jsview-chunk/css/App.9c2363fe.css +0 -11
  111. package/template-vue-vite/dist-test-jsview-chunk/css/App.9c9050df.css +0 -10
  112. package/template-vue-vite/dist-test-jsview-chunk/css/App.a37ce6b4.css +0 -78
  113. package/template-vue-vite/dist-test-jsview-chunk/css/App.acd46c9f.css +0 -29
  114. package/template-vue-vite/dist-test-jsview-chunk/css/App.be6992f1.css +0 -5
  115. package/template-vue-vite/dist-test-jsview-chunk/css/App.ce985162.css +0 -37
  116. package/template-vue-vite/dist-test-jsview-chunk/css/App.cf0eea52.css +0 -29
  117. package/template-vue-vite/dist-test-jsview-chunk/css/App.d80395de.css +0 -76
  118. package/template-vue-vite/dist-test-jsview-chunk/css/App.dc17d9ed.css +0 -355
  119. package/template-vue-vite/dist-test-jsview-chunk/css/App.e25f7308.css +0 -20
  120. package/template-vue-vite/dist-test-jsview-chunk/css/App.e3998d69.css +0 -10
  121. package/template-vue-vite/dist-test-jsview-chunk/css/App.e864d83a.css +0 -99
  122. package/template-vue-vite/dist-test-jsview-chunk/css/App.eea7c4d0.css +0 -37
  123. package/template-vue-vite/dist-test-jsview-chunk/css/App.f7bae60e.css +0 -24
  124. package/template-vue-vite/dist-test-jsview-chunk/css/App.fb916576.css +0 -53
  125. package/template-vue-vite/dist-test-jsview-chunk/css/App.ff455e8a.css +0 -23
  126. package/template-vue-vite/dist-test-jsview-chunk/css/DispersedItemSample.24d1e5c2.css +0 -31
  127. package/template-vue-vite/dist-test-jsview-chunk/css/Homepage.6291bd50.css +0 -60
  128. package/template-vue-vite/dist-test-jsview-chunk/css/HorizontalButtonList.f4192657.css +0 -12
  129. package/template-vue-vite/dist-test-jsview-chunk/css/MainPage.7bafbf88.css +0 -9
  130. package/template-vue-vite/dist-test-jsview-chunk/css/SubPage.e3029827.css +0 -17
  131. package/template-vue-vite/dist-test-jsview-chunk/css/index.bc47ba9c.css +0 -20
  132. package/template-vue-vite/dist-test-jsview-chunk/css/main.78821670.css +0 -11
  133. package/template-vue-vite/dist-test-jsview-chunk/debug/jsview-jsmap-serve.mjs +0 -130
  134. package/template-vue-vite/dist-test-jsview-chunk/debug/map/jsview-dom-browser.min.24b59670.js.map +0 -1
  135. package/template-vue-vite/dist-test-jsview-chunk/debug/map/jsview-dom-entry.280f04b1.js.map +0 -1
  136. package/template-vue-vite/dist-test-jsview-chunk/debug/map/jsview-dom-native.min.0039079f.js.map +0 -1
  137. package/template-vue-vite/dist-test-jsview-chunk/debug/map/jsview-engine-js-browser.min.f40edc22.js.map +0 -1
  138. package/template-vue-vite/dist-test-jsview-chunk/debug/map/jsview-forge-define.bfab260e.js.map +0 -1
  139. package/template-vue-vite/dist-test-jsview-chunk/debug/map/jsview-forge-define.min.26efdcd1.js.map +0 -1
  140. package/template-vue-vite/dist-test-jsview-chunk/debug/map/jsview-loader.f9249ad3.js.map +0 -1
  141. package/template-vue-vite/dist-test-jsview-chunk/debug/map/jsview-vue-entry.415721d8.js.map +0 -1
  142. package/template-vue-vite/dist-test-jsview-chunk/index.html +0 -14
  143. package/template-vue-vite/dist-test-jsview-chunk/js/App.0020360a.js +0 -141
  144. package/template-vue-vite/dist-test-jsview-chunk/js/App.073cedd6.js +0 -399
  145. package/template-vue-vite/dist-test-jsview-chunk/js/App.0f963d38.js +0 -95
  146. package/template-vue-vite/dist-test-jsview-chunk/js/App.11cde12f.js +0 -344
  147. package/template-vue-vite/dist-test-jsview-chunk/js/App.121965ad.js +0 -116
  148. package/template-vue-vite/dist-test-jsview-chunk/js/App.1575b8f0.js +0 -200
  149. package/template-vue-vite/dist-test-jsview-chunk/js/App.21ff555f.js +0 -455
  150. package/template-vue-vite/dist-test-jsview-chunk/js/App.29b9c765.js +0 -383
  151. package/template-vue-vite/dist-test-jsview-chunk/js/App.34ff6b40.js +0 -107
  152. package/template-vue-vite/dist-test-jsview-chunk/js/App.361be0b7.js +0 -144
  153. package/template-vue-vite/dist-test-jsview-chunk/js/App.368006e4.js +0 -431
  154. package/template-vue-vite/dist-test-jsview-chunk/js/App.36fc32c5.js +0 -192
  155. package/template-vue-vite/dist-test-jsview-chunk/js/App.386a753e.js +0 -259
  156. package/template-vue-vite/dist-test-jsview-chunk/js/App.3b0de676.js +0 -321
  157. package/template-vue-vite/dist-test-jsview-chunk/js/App.3e808b09.js +0 -92
  158. package/template-vue-vite/dist-test-jsview-chunk/js/App.40f6e609.js +0 -97
  159. package/template-vue-vite/dist-test-jsview-chunk/js/App.539ee14e.js +0 -331
  160. package/template-vue-vite/dist-test-jsview-chunk/js/App.55166fae.js +0 -189
  161. package/template-vue-vite/dist-test-jsview-chunk/js/App.56200035.js +0 -221
  162. package/template-vue-vite/dist-test-jsview-chunk/js/App.5698ed0a.js +0 -243
  163. package/template-vue-vite/dist-test-jsview-chunk/js/App.5788a834.js +0 -1675
  164. package/template-vue-vite/dist-test-jsview-chunk/js/App.5a51ba28.js +0 -788
  165. package/template-vue-vite/dist-test-jsview-chunk/js/App.5db3be20.js +0 -215
  166. package/template-vue-vite/dist-test-jsview-chunk/js/App.5f895413.js +0 -53
  167. package/template-vue-vite/dist-test-jsview-chunk/js/App.5f95520c.js +0 -320
  168. package/template-vue-vite/dist-test-jsview-chunk/js/App.64e2a47b.js +0 -276
  169. package/template-vue-vite/dist-test-jsview-chunk/js/App.69ca326b.js +0 -107
  170. package/template-vue-vite/dist-test-jsview-chunk/js/App.6f92a934.js +0 -277
  171. package/template-vue-vite/dist-test-jsview-chunk/js/App.6fafe9e2.js +0 -430
  172. package/template-vue-vite/dist-test-jsview-chunk/js/App.7067dfe2.js +0 -120
  173. package/template-vue-vite/dist-test-jsview-chunk/js/App.754fa30e.js +0 -776
  174. package/template-vue-vite/dist-test-jsview-chunk/js/App.7a63fc1e.js +0 -240
  175. package/template-vue-vite/dist-test-jsview-chunk/js/App.7b9d1275.js +0 -447
  176. package/template-vue-vite/dist-test-jsview-chunk/js/App.7bf78a71.js +0 -89
  177. package/template-vue-vite/dist-test-jsview-chunk/js/App.832753e3.js +0 -98
  178. package/template-vue-vite/dist-test-jsview-chunk/js/App.83b9bc1a.js +0 -194
  179. package/template-vue-vite/dist-test-jsview-chunk/js/App.8473b928.js +0 -568
  180. package/template-vue-vite/dist-test-jsview-chunk/js/App.85f0e26b.js +0 -1342
  181. package/template-vue-vite/dist-test-jsview-chunk/js/App.8e86826b.js +0 -502
  182. package/template-vue-vite/dist-test-jsview-chunk/js/App.94064c31.js +0 -104
  183. package/template-vue-vite/dist-test-jsview-chunk/js/App.9625268d.js +0 -173
  184. package/template-vue-vite/dist-test-jsview-chunk/js/App.96596f9f.js +0 -119
  185. package/template-vue-vite/dist-test-jsview-chunk/js/App.977c745b.js +0 -237
  186. package/template-vue-vite/dist-test-jsview-chunk/js/App.9e7fbf3c.js +0 -122
  187. package/template-vue-vite/dist-test-jsview-chunk/js/App.a059fc60.js +0 -676
  188. package/template-vue-vite/dist-test-jsview-chunk/js/App.a446bb49.js +0 -369
  189. package/template-vue-vite/dist-test-jsview-chunk/js/App.a485fc61.js +0 -139
  190. package/template-vue-vite/dist-test-jsview-chunk/js/App.a574bf96.js +0 -122
  191. package/template-vue-vite/dist-test-jsview-chunk/js/App.a58787a4.js +0 -225
  192. package/template-vue-vite/dist-test-jsview-chunk/js/App.a6e90b5c.js +0 -614
  193. package/template-vue-vite/dist-test-jsview-chunk/js/App.a6ef2ea5.js +0 -241
  194. package/template-vue-vite/dist-test-jsview-chunk/js/App.a82ae465.js +0 -119
  195. package/template-vue-vite/dist-test-jsview-chunk/js/App.ab97fadc.js +0 -306
  196. package/template-vue-vite/dist-test-jsview-chunk/js/App.b8d07d60.js +0 -68
  197. package/template-vue-vite/dist-test-jsview-chunk/js/App.ba82ae89.js +0 -731
  198. package/template-vue-vite/dist-test-jsview-chunk/js/App.c0fa704f.js +0 -181
  199. package/template-vue-vite/dist-test-jsview-chunk/js/App.ca457df6.js +0 -193
  200. package/template-vue-vite/dist-test-jsview-chunk/js/App.cab5b11a.js +0 -182
  201. package/template-vue-vite/dist-test-jsview-chunk/js/App.ceb70fcc.js +0 -395
  202. package/template-vue-vite/dist-test-jsview-chunk/js/App.d1955c7b.js +0 -139
  203. package/template-vue-vite/dist-test-jsview-chunk/js/App.d35f431e.js +0 -524
  204. package/template-vue-vite/dist-test-jsview-chunk/js/App.d434d1bc.js +0 -1201
  205. package/template-vue-vite/dist-test-jsview-chunk/js/App.d9ea2537.js +0 -172
  206. package/template-vue-vite/dist-test-jsview-chunk/js/App.dce9c295.js +0 -209
  207. package/template-vue-vite/dist-test-jsview-chunk/js/App.e06251fc.js +0 -157
  208. package/template-vue-vite/dist-test-jsview-chunk/js/App.e160a2dd.js +0 -587
  209. package/template-vue-vite/dist-test-jsview-chunk/js/App.e1d44beb.js +0 -198
  210. package/template-vue-vite/dist-test-jsview-chunk/js/App.e442e6e0.js +0 -611
  211. package/template-vue-vite/dist-test-jsview-chunk/js/App.e75db44d.js +0 -257
  212. package/template-vue-vite/dist-test-jsview-chunk/js/App.ebb89cc7.js +0 -97
  213. package/template-vue-vite/dist-test-jsview-chunk/js/App.f5f253ec.js +0 -143
  214. package/template-vue-vite/dist-test-jsview-chunk/js/App.f6a2ac1e.js +0 -251
  215. package/template-vue-vite/dist-test-jsview-chunk/js/App2.f586c86d.js +0 -112
  216. package/template-vue-vite/dist-test-jsview-chunk/js/BrowserApic.64639b51.js +0 -112
  217. package/template-vue-vite/dist-test-jsview-chunk/js/BrowserApic.vue.5e093f8c.js +0 -130
  218. package/template-vue-vite/dist-test-jsview-chunk/js/BrowserApic2.8b0c8a0a.js +0 -106
  219. package/template-vue-vite/dist-test-jsview-chunk/js/BrowserApic2.vue.7959bd77.js +0 -124
  220. package/template-vue-vite/dist-test-jsview-chunk/js/BrowserApicLib.14ef44a9.js +0 -416
  221. package/template-vue-vite/dist-test-jsview-chunk/js/BrowserAudio.28bef0de.js +0 -251
  222. package/template-vue-vite/dist-test-jsview-chunk/js/BrowserAudio.vue.b874d583.js +0 -265
  223. package/template-vue-vite/dist-test-jsview-chunk/js/BrowserJsvLatex.06fbda62.js +0 -100
  224. package/template-vue-vite/dist-test-jsview-chunk/js/BrowserJsvLatex.vue.f0cdb016.js +0 -112
  225. package/template-vue-vite/dist-test-jsview-chunk/js/BrowserJsvPlayer.a6858caf.js +0 -563
  226. package/template-vue-vite/dist-test-jsview-chunk/js/BrowserJsvPlayer.vue.8615ee65.js +0 -575
  227. package/template-vue-vite/dist-test-jsview-chunk/js/BrowserPreload.fe21457d.js +0 -139
  228. package/template-vue-vite/dist-test-jsview-chunk/js/BrowserPreload.vue.23eda6fd.js +0 -146
  229. package/template-vue-vite/dist-test-jsview-chunk/js/BrowserQrcode.727b4b8f.js +0 -175
  230. package/template-vue-vite/dist-test-jsview-chunk/js/BrowserQrcode.vue.8e2b3454.js +0 -181
  231. package/template-vue-vite/dist-test-jsview-chunk/js/BrowserSpray.b126f2ae.js +0 -57
  232. package/template-vue-vite/dist-test-jsview-chunk/js/BrowserSpray.vue.52301a81.js +0 -70
  233. package/template-vue-vite/dist-test-jsview-chunk/js/BrowserTextureAnim.e70349c2.js +0 -315
  234. package/template-vue-vite/dist-test-jsview-chunk/js/BrowserTextureAnim.vue.5426b5db.js +0 -327
  235. package/template-vue-vite/dist-test-jsview-chunk/js/DispersedItemSample.9696c982.js +0 -534
  236. package/template-vue-vite/dist-test-jsview-chunk/js/GifData.e5dd9fac.js +0 -429
  237. package/template-vue-vite/dist-test-jsview-chunk/js/Homepage.d8afeb55.js +0 -466
  238. package/template-vue-vite/dist-test-jsview-chunk/js/HorizontalButtonList.bbdbc725.js +0 -160
  239. package/template-vue-vite/dist-test-jsview-chunk/js/MainPage.cff1e89b.js +0 -57
  240. package/template-vue-vite/dist-test-jsview-chunk/js/SubPage.9633adf8.js +0 -59
  241. package/template-vue-vite/dist-test-jsview-chunk/js/app.config.92148fde.js +0 -18
  242. package/template-vue-vite/dist-test-jsview-chunk/js/export-sfc.2749ebea.js +0 -23
  243. package/template-vue-vite/dist-test-jsview-chunk/js/index.32520aa9.js +0 -938
  244. package/template-vue-vite/dist-test-jsview-chunk/js/index.56197146.js +0 -2892
  245. package/template-vue-vite/dist-test-jsview-chunk/js/index.f76869d4.js +0 -7522
  246. package/template-vue-vite/dist-test-jsview-chunk/js/jpegDemo.ff177df5.js +0 -7
  247. package/template-vue-vite/dist-test-jsview-chunk/js/jsview-dom-browser.min.24b59670.js +0 -1913
  248. package/template-vue-vite/dist-test-jsview-chunk/js/jsview-dom-entry.280f04b1.js +0 -76
  249. package/template-vue-vite/dist-test-jsview-chunk/js/jsview-dom-native.min.0039079f.js +0 -1487
  250. package/template-vue-vite/dist-test-jsview-chunk/js/jsview-engine-js-browser.min.f40edc22.js +0 -10684
  251. package/template-vue-vite/dist-test-jsview-chunk/js/jsview-forge-define.bfab260e.js +0 -9
  252. package/template-vue-vite/dist-test-jsview-chunk/js/jsview-forge-define.min.26efdcd1.js +0 -97
  253. package/template-vue-vite/dist-test-jsview-chunk/js/jsview-loader.f9249ad3.js +0 -238
  254. package/template-vue-vite/dist-test-jsview-chunk/js/jsview-vue-entry.415721d8.js +0 -22233
  255. package/template-vue-vite/dist-test-jsview-chunk/js/jsview.config.a8cf302c.js +0 -49
  256. package/template-vue-vite/dist-test-jsview-chunk/js/main.bd759d7c.js +0 -565
  257. package/template-vue-vite/dist-test-jsview-chunk/js/main.jsv.51a0d4f8.mjs +0 -28
  258. package/template-vue-vite/dist-test-jsview-chunk/js/main.jsv.mjs +0 -28
  259. package/template-vue-vite/dist-test-jsview-chunk/js/permission.88de599e.js +0 -7
  260. package/template-vue-vite/dist-test-jsview-chunk/js/pngNoAlphaDemo.fbc58313.js +0 -7
  261. package/template-vue-vite/dist-test-jsview-chunk/js/vue.889a9b8b.js +0 -5382
  262. package/template-vue-vite/dist-test-jsview-chunk/jsv-info.json +0 -9
  263. package/template-vue-vite/dist-test-jsview-chunk/jsv-list.json +0 -248
@@ -1,1487 +0,0 @@
1
- class e {
2
- static CreateAudioPlayer(e2) {
3
- return new Audio(e2);
4
- }
5
- static CreateVideoPlayer() {
6
- const t2 = new Video();
7
- return t2.jsvOnCssStyleChanged = e.OnCssStyleChanged.bind(t2), t2.jsvFinalize = e.JsvFinalize.bind(t2), t2;
8
- }
9
- static OnCssStyleChanged(e2, t2) {
10
- this.jsvSetStyles(t2.left, t2.top, t2.width, t2.height, t2.objectFit, t2.visibility);
11
- }
12
- static JsvFinalize() {
13
- console.log("NativePlatformMediaBridge.JsvFinalize()");
14
- const e2 = this;
15
- e2.pause(), e2.unload?.(), e2.releaseResource && (e2.releaseResource(), e2.onPlatformDestroy());
16
- }
17
- }
18
- window.JsvCode.NativePlatformMediaBridge || (window.JsvCode.NativePlatformMediaBridge = e);
19
- class t {
20
- constructor(e2, t2) {
21
- this.prevented = false, this.target = t2, this.timeStamp = Date.now(), this.type = e2;
22
- }
23
- preventDefault() {
24
- this.prevented = true;
25
- }
26
- jsvIsPrevented() {
27
- return this.prevented;
28
- }
29
- }
30
- class s extends t {
31
- constructor(e2) {
32
- super(e2);
33
- }
34
- }
35
- class i extends t {
36
- constructor(e2, t2) {
37
- super(e2), this.options = t2;
38
- }
39
- initCustomEvent(e2, t2, s2, i2) {
40
- this.type = e2;
41
- }
42
- get detail() {
43
- return this.options?.detail;
44
- }
45
- }
46
- class n extends t {
47
- constructor(e2) {
48
- super(e2);
49
- }
50
- }
51
- n.JsvType = { Focus: "focus", Blur: "blur" }, void 0 === window.Forge ? (window.Forge = {}, console.log("Define forge browser")) : console.log("Define using JsView forge engine-js");
52
- var o, r, a, l, h, c, d, u, v, m, f, p, g, w, y, T = window.Forge;
53
- class N {
54
- constructor(e2, t2) {
55
- if (this.href = "", this.origin = "", this.protocol = "", this.host = "", this.hostname = "", this.port = "", this.pathname = "", this.search = "", this.hash = "", !e2)
56
- return;
57
- if (true === e2.startsWith("url")) {
58
- let t3 = e2.indexOf("(") + 1, s3 = e2.lastIndexOf(")");
59
- if ("undefined" === (e2 = e2.substring(t3, s3).trim()) || "null" === e2 || 0 === e2.length)
60
- return;
61
- }
62
- if (true === e2.startsWith("data:") || true === e2.startsWith("jsvtexturestore:"))
63
- return void (this.href = e2);
64
- let s2 = e2.indexOf("://");
65
- if (!(s2 < 0 || s2 > 10) || e2.startsWith("./") || e2.startsWith("/") || (e2 = "./" + e2), true === e2.startsWith("/"))
66
- e2 = document.location.origin + e2;
67
- else if (true === e2.startsWith("./") && void 0 !== window.JsView && void 0 !== window.JsView.Dom.JsSubPath) {
68
- if (void 0 === window.JsView.Dom.MainPath || "undefined" === window.JsView.Dom.MainPathRef || window.JsView.Dom.MainPathRef !== document.location.href) {
69
- window.JsView.Dom.JsSubPath.startsWith("/") || (window.JsView.Dom.JsSubPath = "/" + window.JsView.Dom.JsSubPath), window.JsView.Dom.JsSubPath.endsWith("/") || (window.JsView.Dom.JsSubPath = window.JsView.Dom.JsSubPath + "/"), window.JsView.Dom.MainPathRef = document.location.href;
70
- let e3 = document.location.pathname.lastIndexOf(window.JsView.Dom.JsSubPath);
71
- window.JsView.Dom.MainPath = document.location.origin + document.location.pathname.substring(0, e3);
72
- }
73
- e2 = window.JsView.Dom.MainPath + e2.substring(1);
74
- }
75
- if (this.href = e2, !t2)
76
- return;
77
- let i2 = this.href, n2 = i2.indexOf("#");
78
- n2 > 0 && (this.hash = i2.substring(n2), i2 = i2.substring(0, n2));
79
- let o2 = i2.indexOf("?");
80
- o2 > 1 && (this.search = i2.substring(o2), i2 = i2.substring(0, o2));
81
- let r2 = i2, a2 = r2.indexOf("://");
82
- this.protocol = a2 > 0 ? r2.substring(0, a2 + 1) : "";
83
- let l2 = a2 > 1 ? r2.substring(a2 + 3) : "";
84
- a2 = l2.indexOf("/"), this.host = a2 > 0 ? l2.substring(0, a2) : "", this.pathname = a2 >= 1 ? l2.substring(a2) : "", "file:" == this.protocol && (this.host = "", this.pathname = l2), this.origin = this.protocol + "//" + this.host, a2 = this.host.indexOf(":"), this.hostname = a2 > 0 ? this.host.substring(0, a2) : this.host, this.port = a2 > 1 ? this.host.substring(a2 + 1) : "";
85
- }
86
- replace(e2) {
87
- this.href = e2;
88
- }
89
- }
90
- class D {
91
- static EnableEventListener(e2) {
92
- const t2 = window.JsvCode.Dom.PlatformBridge.JsViewId;
93
- window.JsvCode.Dom.PlatformBridge.SetOnEventListener(t2, e2);
94
- }
95
- static CreateElement(e2, t2) {
96
- D.PushLazyTask(D.LazyTaskType.CreateElement, e2, t2);
97
- }
98
- static BindElementToRootView(e2) {
99
- D.PushLazyTask(D.LazyTaskType.BindElementToRootView, e2);
100
- }
101
- static InsertElementChild(e2, t2, s2) {
102
- D.PushLazyTask(D.LazyTaskType.InsertElementChild, e2, t2, s2);
103
- }
104
- static RemoveElementChild(e2, t2) {
105
- D.PushLazyTask(D.LazyTaskType.RemoveElementChild, e2, t2);
106
- }
107
- static MoveElementChild(e2, t2, s2, i2) {
108
- D.PushLazyTask(D.LazyTaskType.MoveElementChild, e2, t2, s2, i2);
109
- }
110
- static ReOrderElementChild(e2, t2, s2) {
111
- D.PushLazyTask(D.LazyTaskType.ReOrderElementChild, e2, t2, s2);
112
- }
113
- static AddElementEventListener(e2, t2, s2) {
114
- D.PushLazyTask(D.LazyTaskType.AddElementEventListener, e2, t2, s2);
115
- }
116
- static RemoveElementEventListener(e2, t2, s2) {
117
- D.PushLazyTask(D.LazyTaskType.RemoveElementEventListener, e2, t2, s2);
118
- }
119
- static SetElementText(e2, t2) {
120
- D.PushLazyTask(D.LazyTaskType.SetElementText, e2, t2);
121
- }
122
- static SetElementAttribute(e2, t2, s2) {
123
- D.PushLazyTask(D.LazyTaskType.SetElementAttribute, e2, t2, s2), D.LazyTaskSyncedListenerMap.has(e2) && D.CachedSyncListenIdSet.add(e2);
124
- }
125
- static GetElementBoundingClientStyles(e2, t2) {
126
- return D.RunSyncTask(D.LazyTaskType.GetElementBoundingClientStyles, e2, t2);
127
- }
128
- static SetForgeViewInnerProps(e2, t2, s2) {
129
- let i2 = 0;
130
- (t2 = t2.substr(12)).startsWith("mask-") && (i2 = 1, t2 = t2.substr(5)), D.PushLazyTask(D.LazyTaskType.SetForgeViewInnerProps, e2, t2, i2, "" + s2);
131
- }
132
- static DeclareStyleSheets(e2) {
133
- D.PushLazyTask(D.LazyTaskType.DeclareStyleSheets, -1, e2);
134
- }
135
- static UndeclareStyleSheets(e2) {
136
- D.PushLazyTask(D.LazyTaskType.UndeclareStyleSheets, -1, e2);
137
- }
138
- static SetStyleProperty(e2, t2, s2) {
139
- D.PushLazyTask(D.LazyTaskType.SetStyleProperty, e2, t2, s2), D.LazyTaskSyncedListenerMap.has(e2) && D.CachedSyncListenIdSet.add(e2);
140
- }
141
- static GetStyleProperties(e2, t2) {
142
- return D.RunSyncTask(D.LazyTaskType.GetStyleProperties, e2, t2);
143
- }
144
- static AppendLazyTaskSyncedListener(e2, t2) {
145
- D.LazyTaskSyncedListenerMap.set(e2, t2);
146
- }
147
- static RemoveLazyTaskSyncedListener(e2) {
148
- D.LazyTaskSyncedListenerMap.delete(e2);
149
- }
150
- static RequestSwapAllCachedTasks() {
151
- if (0 == D.CachedLazyTaskList.length)
152
- return;
153
- const e2 = JSON.stringify(D.CachedLazyTaskList);
154
- D.CachedLazyTaskList = [];
155
- const t2 = window.JsvCode.Dom.PlatformBridge.JsViewId;
156
- window.JsvCode.Dom.PlatformBridge.RunLazyTaskList(t2, e2);
157
- for (const e3 of D.CachedSyncListenIdSet) {
158
- const t3 = D.LazyTaskSyncedListenerMap.get(e3);
159
- t3?.();
160
- }
161
- D.CachedSyncListenIdSet.clear();
162
- }
163
- static GetElementAttribute(e2, t2) {
164
- return D.RunSyncTask(D.LazyTaskType.GetElementAttribute, e2, t2);
165
- }
166
- static InsertKeyFrame(e2, t2) {
167
- D.PushLazyTask(D.LazyTaskType.InsertKeyFrameDefine, -1, e2, t2);
168
- }
169
- static RemoveKeyFrame(e2) {
170
- D.PushLazyTask(D.LazyTaskType.RemoveKeyFrameDefine, -1, e2);
171
- }
172
- static GetRelativePosition(e2, t2) {
173
- const s2 = D.RunSyncTask(D.LazyTaskType.GetRelativePosition, e2, t2);
174
- return JSON.parse(s2);
175
- }
176
- static RunSyncTask(e2, t2, ...s2) {
177
- D.RequestSwapAllCachedTasks();
178
- const i2 = window.JsvCode.Dom.PlatformBridge.JsViewId;
179
- return window.JsvCode.Dom.PlatformBridge.RunSyncTask(i2, e2, t2, ...s2);
180
- }
181
- static PushLazyTask(e2, t2, ...s2) {
182
- D.CachedLazyTaskList.push([e2, t2, ...s2]), T.sRenderBridge?.RequestSwap();
183
- }
184
- }
185
- D.CachedLazyTaskList = new Array(), D.CachedSyncListenIdSet = /* @__PURE__ */ new Set(), D.LazyTaskSyncedListenerMap = /* @__PURE__ */ new Map(), D.LazyTaskType = { CreateElement: 10, BindElementToRootView: 11, InsertElementChild: 12, RemoveElementChild: 13, AddElementEventListener: 14, RemoveElementEventListener: 15, SetElementText: 16, SetElementAttribute: 17, GetElementBoundingClientStyles: 18, GetElementAttribute: 19, MoveElementChild: 20, GetRelativePosition: 21, ReOrderElementChild: 22, DeclareStyleSheets: 30, SetStyleProperty: 31, GetStyleProperties: 32, UndeclareStyleSheets: 39, SetForgeViewInnerProps: 40, InsertKeyFrameDefine: 41, RemoveKeyFrameDefine: 42 };
186
- class E {
187
- }
188
- E.Dom = D, E.Media = class {
189
- static CreateAudioPlayer() {
190
- return window.JsvCode.Media.PlatformBridge.CreateAudioPlayer();
191
- }
192
- static CreateVideoPlayer() {
193
- return window.JsvCode.Media.PlatformBridge.CreateVideoPlayer();
194
- }
195
- };
196
- class x {
197
- static GenerateId() {
198
- const e2 = this.UniqueId++;
199
- if (e2 >= this.MaxUniqueId)
200
- throw new Error("JsvUniqueId.GenerateId() Failed to create unique id. id is overflow.");
201
- return e2;
202
- }
203
- }
204
- x.UniqueId = 0, x.MaxUniqueId = Math.pow(2, 31) - 1;
205
- class S {
206
- constructor(e2) {
207
- this.childNodes = [], this.nodeType = e2, this.ownerDocument = window.document, this.parentNode = null, this.jsvEventListenerMap = null, this.jsvChildChangedCallback = null;
208
- }
209
- jsvFinalize() {
210
- }
211
- appendChild(e2) {
212
- this.childNodes.push(e2), e2.parentNode = this, this.jsvChildChangedCallback?.();
213
- }
214
- removeChild(e2) {
215
- let t2 = this.childNodes.indexOf(e2);
216
- if (t2 < 0)
217
- throw new DOMException("Failed to remove node, child node is not found. node=", e2);
218
- this.childNodes.splice(t2, 1), e2.parentNode = null, this.jsvChildChangedCallback?.();
219
- }
220
- insertBefore(e2, t2) {
221
- this.insertBeforeInner(e2, t2);
222
- }
223
- get previousSibling() {
224
- const e2 = this.parentNode?.childNodes;
225
- let t2 = e2?.indexOf(this);
226
- if (void 0 === t2 || t2 < 0)
227
- throw new DOMException("Failed to call Node.previousSibling(), this node not found. this=", this);
228
- return e2[t2 - 1];
229
- }
230
- get nextSibling() {
231
- const e2 = this.parentNode?.childNodes;
232
- let t2 = e2?.indexOf(this);
233
- if (void 0 === t2 || t2 < 0)
234
- throw new DOMException("Failed to call Node.nextSibling(), this node not found. this=", this);
235
- return e2[t2 + 1];
236
- }
237
- addEventListener(e2, t2, s2) {
238
- this.jsvEventListenerMap || (this.jsvEventListenerMap = /* @__PURE__ */ new Map());
239
- let i2 = this.jsvEventListenerMap?.get(e2);
240
- i2 || (i2 = /* @__PURE__ */ new Set(), this.jsvEventListenerMap?.set(e2, i2)), i2.add(t2);
241
- }
242
- removeEventListener(e2, t2, s2) {
243
- let i2 = this.jsvEventListenerMap?.get(e2);
244
- i2 && (i2.delete(t2), i2.size <= 0 && this.jsvEventListenerMap?.delete(e2), 0 == this.jsvEventListenerMap?.size && (this.jsvEventListenerMap = null));
245
- }
246
- dispatchEvent(e2) {
247
- if (!this.jsvEventListenerMap)
248
- return void console.warn("Node.dispatchEvent() Ignore to dispatch event: " + e2.type + ". No event added.");
249
- let t2 = this.jsvEventListenerMap?.get(e2.type);
250
- if (t2) {
251
- e2.target || (e2.target = document.activeElement);
252
- for (let s2 of t2)
253
- if (s2?.(e2), e2.jsvIsPrevented())
254
- break;
255
- } else
256
- console.warn("Node.dispatchEvent() Ignore to dispatch event: " + e2.type + ". No listener added.");
257
- }
258
- jsvObserveChildChanged(e2) {
259
- this.jsvChildChangedCallback = e2;
260
- }
261
- jsvMoveChildReOrder(e2, t2) {
262
- {
263
- let t3 = this.childNodes.indexOf(e2);
264
- if (t3 < 0)
265
- throw new DOMException("Failed to call jsvMoveChildReOrder, node not found. node=", e2);
266
- this.childNodes.splice(t3, 1);
267
- }
268
- {
269
- let s2 = this.childNodes.length;
270
- if (t2 && (s2 = this.childNodes.indexOf(t2), s2 < 0))
271
- throw new DOMException("Failed to call move node, before node not found. beforeNode=", t2);
272
- this.childNodes.splice(s2, 0, e2);
273
- }
274
- this.jsvChildChangedCallback?.();
275
- }
276
- jsvMoveChildToNewParent(e2, t2, s2) {
277
- let i2 = this.childNodes.indexOf(e2);
278
- if (i2 < 0)
279
- throw new DOMException("Failed to call jsvMoveChildToNewParent, node not found. node=", e2);
280
- this.childNodes.splice(i2, 1), e2.parentNode = null, this.jsvChildChangedCallback?.(), t2.insertBeforeInner(e2, s2);
281
- }
282
- jsvGetEventListenerSet(e2) {
283
- const t2 = this.jsvEventListenerMap?.get(e2);
284
- return t2;
285
- }
286
- insertBeforeInner(e2, t2) {
287
- let s2 = this.childNodes.length;
288
- if (void 0 === t2)
289
- throw new DOMException("TypeError: Failed to execute 'insertBefore' on 'Node': 2 arguments required, but only 1 present.");
290
- if (null !== t2 && (s2 = this.childNodes.indexOf(t2)), s2 < 0)
291
- throw new DOMException("Failed to call insert node, before node not found. beforeNode=", t2);
292
- this.childNodes.splice(s2, 0, e2), e2.parentNode = this, this.jsvChildChangedCallback?.();
293
- }
294
- }
295
- function C(e2, t2, s2) {
296
- return "symbol" == typeof t2 && (t2 = t2.description ? "[".concat(t2.description, "]") : ""), Object.defineProperty(e2, "name", { configurable: true, value: s2 ? "".concat(s2, " ", t2) : t2 });
297
- }
298
- S.ELEMENT_NODE = 1, S.TEXT_NODE = 3, S.COMMENT_NODE = 8, S.DOCUMENT_NODE = 9, S.NOLAYOUT_NODE = 10;
299
- class I {
300
- static HasGetterMethod(e2) {
301
- switch (e2) {
302
- case I.Layout.Height:
303
- case I.Layout.Left:
304
- case I.Layout.Top:
305
- case I.Layout.Width:
306
- case I.Effect.ObjectFit:
307
- return true;
308
- default:
309
- return false;
310
- }
311
- }
312
- static ToConst(e2) {
313
- return e2 == I.Layout.Height ? I.Layout.Height : e2 == I.Layout.Left ? I.Layout.Left : e2 == I.Layout.Top ? I.Layout.Top : e2 == I.Layout.Width ? I.Layout.Width : e2 == I.Flex.FlexDirection ? I.Flex.FlexDirection : e2 == I.Flex.FlexWrap ? I.Flex.FlexWrap : e2 == I.Flex.JustifyContent ? I.Flex.JustifyContent : e2 == I.Flex.AlignItems ? I.Flex.AlignItems : e2 == I.Flex.AlignContent ? I.Flex.AlignContent : e2 == I.Flex.AlignSelf ? I.Flex.AlignSelf : e2 == I.Flex.FlexGrow ? I.Flex.FlexGrow : e2 == I.Background.BackgroundColor ? I.Background.BackgroundColor : e2 == I.Background.BackgroundImage ? I.Background.BackgroundImage : e2 == I.Background.BorderRadius ? I.Background.BorderRadius : e2 == I.Effect.BackfaceVisibility ? I.Effect.BackfaceVisibility : e2 == I.Effect.BorderImage ? I.Effect.BorderImage : e2 == I.Effect.BorderImageWidth ? I.Effect.BorderImageWidth : e2 == I.Effect.BorderImageOutset ? I.Effect.BorderImageOutset : e2 == I.Effect.Display ? I.Effect.Display : e2 == I.Effect.ObjectFit ? I.Effect.ObjectFit : e2 == I.Effect.Opacity ? I.Effect.Opacity : e2 == I.Effect.Overflow ? I.Effect.Overflow : e2 == I.Effect.Perspective ? I.Effect.Perspective : e2 == I.Effect.PerspectiveOrigin ? I.Effect.PerspectiveOrigin : e2 == I.Effect.Transform ? I.Effect.Transform : e2 == I.Effect.TransformOrigin ? I.Effect.TransformOrigin : e2 == I.Effect.TransformStyle ? I.Effect.TransformStyle : e2 == I.Effect.Visibility ? I.Effect.Visibility : e2 == I.Effect.ZIndex ? I.Effect.ZIndex : e2 == I.Text.Color ? I.Text.Color : e2 == I.Text.FontFamily ? I.Text.FontFamily : e2 == I.Text.FontSize ? I.Text.FontSize : e2 == I.Text.FontStyle ? I.Text.FontStyle : e2 == I.Text.FontWeight ? I.Text.FontWeight : e2 == I.Text.LineHeight ? I.Text.LineHeight : e2 == I.Text.TextAlign ? I.Text.TextAlign : e2 == I.Text.TextOverflow ? I.Text.TextOverflow : e2 == I.Text.TextShadow ? I.Text.TextShadow : e2 == I.Text.WebkitTextStroke ? I.Text.WebkitTextStroke : e2 == I.Text.WhiteSpace ? I.Text.WhiteSpace : e2 == I.Text.WordWrap ? I.Text.WordWrap : e2 == I.Text.Direction ? I.Text.Direction : e2 == I.Text.JsvTextEmoji ? I.Text.JsvTextEmoji : e2 == I.Text.JsvTextLatex ? I.Text.JsvTextLatex : e2 == I.Text.JsvTextAlignMinWidth ? I.Text.JsvTextAlignMinWidth : e2 == I.Text.JsvTextVerticalAlign ? I.Text.JsvTextVerticalAlign : e2 == I.Text.JsvTextLineAlign ? I.Text.JsvTextLineAlign : e2 == I.Text.JsvTextInnerDirection ? I.Text.JsvTextInnerDirection : e2 == I.Motion.Animation ? I.Motion.Animation : e2 == I.Motion.Transition ? I.Motion.Transition : e2 == I.Motion.AnimationFillMode ? I.Motion.AnimationFillMode : null;
314
- }
315
- constructor() {
316
- throw new Error("new StyleName() is forbidden.");
317
- }
318
- }
319
- I.Layout = (C(o = class {
320
- constructor() {
321
- throw new Error("new StyleName.Layout() is forbidden.");
322
- }
323
- }, "Layout"), o.Height = "height", o.Left = "left", o.Top = "top", o.Width = "width", o), I.Flex = (C(r = class {
324
- constructor() {
325
- throw new Error("new StyleName.Flex() is forbidden.");
326
- }
327
- }, "Flex"), r.FlexDirection = "flexDirection", r.FlexWrap = "flexWrap", r.JustifyContent = "justifyContent", r.AlignItems = "alignItems", r.AlignContent = "alignContent", r.AlignSelf = "alignSelf", r.FlexGrow = "flexGrow", r), I.Background = (C(a = class {
328
- constructor() {
329
- throw new Error("new StyleName.Background() is forbidden.");
330
- }
331
- }, "Background"), a.BackgroundColor = "backgroundColor", a.BackgroundImage = "backgroundImage", a.BorderRadius = "borderRadius", a), I.Effect = (C(l = class {
332
- constructor() {
333
- throw new Error("new StyleName.Effect() is forbidden.");
334
- }
335
- }, "Effect"), l.BackfaceVisibility = "backfaceVisibility", l.BorderImage = "borderImage", l.BorderImageWidth = "borderImageWidth", l.BorderImageOutset = "borderImageOutset", l.Display = "display", l.ObjectFit = "objectFit", l.Opacity = "opacity", l.Overflow = "overflow", l.Perspective = "perspective", l.PerspectiveOrigin = "perspectiveOrigin", l.Transform = "transform", l.TransformOrigin = "transformOrigin", l.TransformStyle = "transformStyle", l.Visibility = "visibility", l.ZIndex = "zIndex", l), I.Text = (C(h = class {
336
- constructor() {
337
- throw new Error("new StyleName.Text() is forbidden.");
338
- }
339
- }, "Text"), h.Color = "color", h.FontFamily = "fontFamily", h.FontSize = "fontSize", h.FontStyle = "fontStyle", h.FontWeight = "fontWeight", h.LineHeight = "lineHeight", h.TextAlign = "textAlign", h.TextOverflow = "textOverflow", h.TextShadow = "textShadow", h.WebkitTextStroke = "WebkitTextStroke", h.WhiteSpace = "whiteSpace", h.WordWrap = "wordWrap", h.Direction = "direction", h.JsvTextEmoji = "JsvTextEmoji", h.JsvTextLatex = "JsvTextLatex", h.JsvTextAlignMinWidth = "JsvTextAlignMinWidth", h.JsvTextVerticalAlign = "JsvTextVerticalAlign", h.JsvTextLineAlign = "JsvTextLineAlign", h.JsvTextInnerDirection = "JsvTextInnerDirection", h), I.Motion = (C(c = class {
340
- constructor() {
341
- throw new Error("new StyleName.Motion() is forbidden.");
342
- }
343
- }, "Motion"), c.Animation = "animation", c.Transition = "transition", c.AnimationFillMode = "animationFillMode", c);
344
- class b {
345
- constructor(e2) {
346
- let t2 = -1, s2 = null;
347
- null == e2 ? t2 = b.DataType.Null : Number(e2) === e2 && e2 % 1 == 0 ? t2 = b.DataType.Int32 : Number(e2) === e2 && e2 % 1 != 0 ? t2 = b.DataType.Float : "string" == typeof e2 || e2 instanceof String ? t2 = b.DataType.String : e2 instanceof b.AnimationImpl ? t2 = b.DataType.Animation : e2 instanceof b.CornerImpl ? t2 = b.DataType.Corner : e2 instanceof b.RectImpl ? t2 = b.DataType.Rect : e2 instanceof b.TextShadowImpl ? t2 = b.DataType.TextShadow : e2 instanceof b.WebkitTextStrokeImpl ? t2 = b.DataType.WebkitTextStroke : e2 instanceof b.TransitionImpl ? t2 = b.DataType.Transition : e2 instanceof b.BorderImageImpl && (t2 = b.DataType.BorderImage), e2 != b.InvalidInt32 && e2 != b.InvalidFloat && e2 != b.InvalidPointer ? s2 = e2 : (t2 = b.DataType.Null, s2 = null), this.data = new b.DataInfo(), this.data.index = t2, this.data.value = s2;
348
- }
349
- toString() {
350
- let e2 = null;
351
- switch (this.data.index) {
352
- case b.DataType.Null:
353
- return "";
354
- case b.DataType.Int32:
355
- case b.DataType.Float:
356
- return String(this.get());
357
- case b.DataType.String:
358
- e2 = this.get();
359
- break;
360
- case b.DataType.Animation:
361
- case b.DataType.Corner:
362
- case b.DataType.Rect:
363
- case b.DataType.TextShadow:
364
- case b.DataType.WebkitTextStroke:
365
- case b.DataType.Transition:
366
- case b.DataType.BorderImage:
367
- case b.DataType.BackgroundImage:
368
- e2 = this.get().rawValue;
369
- break;
370
- default:
371
- console.error("Failed to do StyleValue.toString()");
372
- }
373
- return e2 ?? "";
374
- }
375
- is(e2) {
376
- return this.data.index == e2;
377
- }
378
- get() {
379
- return this.data.value;
380
- }
381
- reset(e2) {
382
- this.data.value = e2.data.value, this.data.index = e2.data.index;
383
- }
384
- equals(e2) {
385
- return this.data.value === e2.data.value && this.data.index === e2.data.index;
386
- }
387
- }
388
- b.Base = class {
389
- constructor(e2) {
390
- this.rawValue = e2;
391
- }
392
- }, b.AnimationImpl = class extends b.Base {
393
- constructor(e2) {
394
- super(e2), this.name = "", this.duration = 0, this.timingFunction = null, this.delay = 0, this.iterationCount = 0, this.direction = false;
395
- }
396
- }, b.CornerImpl = class extends b.Base {
397
- constructor(e2) {
398
- super(e2), this.topLeft = 0, this.topRight = 0, this.bottomRight = 0, this.bottomLeft = 0;
399
- }
400
- }, b.RectImpl = class extends b.Base {
401
- constructor(e2) {
402
- super(e2), this.top = 0, this.right = 0, this.left = 0, this.bottom = 0;
403
- }
404
- }, b.TextShadowImpl = class extends b.Base {
405
- constructor(e2) {
406
- super(e2), this.hShadow = 0, this.vShadow = 0, this.blur = 0, this.color = void 0;
407
- }
408
- }, b.WebkitTextStrokeImpl = class extends b.Base {
409
- constructor(e2) {
410
- super(e2), this.length = 0, this.color = void 0;
411
- }
412
- }, b.TransitionImpl = class extends b.Base {
413
- constructor(e2) {
414
- super(e2), this.animationMap = /* @__PURE__ */ new Map();
415
- }
416
- }, b.BorderImageImpl = class extends b.Base {
417
- constructor(e2) {
418
- super(e2), this.source = "", this.slice = null;
419
- }
420
- }, b.BackgroundImageImpl = (C(d = class extends b.Base {
421
- constructor(e2) {
422
- super(e2), this.type = 0, this.urlPath = "";
423
- }
424
- }, "BackgroundImageImpl"), d.eType = { UNKNOWN: 0, LINEAR_GRADIENT: 1, URL_PATH: 2 }, d.LinearGradient = class {
425
- constructor() {
426
- this.fromX = 0, this.fromY = 0, this.toX = 0, this.toY = 0, this.stops = [];
427
- }
428
- }, d), b.DataType = (C(u = class {
429
- }, "DataType"), u.Null = 0, u.Int32 = 1, u.Float = 2, u.String = 3, u.Animation = 4, u.Corner = 5, u.Rect = 6, u.TextShadow = 7, u.WebkitTextStroke = 8, u.Transition = 9, u.BorderImage = 10, u.BackgroundImage = 11, u), b.InvalidInt32 = Number.MIN_VALUE, b.InvalidFloat = Number.NaN, b.InvalidPointer = null, b.DataInfo = class {
430
- constructor() {
431
- this.value = null, this.index = -1;
432
- }
433
- }, C(v = class {
434
- }, "Text"), v.Color = "#000000", v.FontFamily = "黑体", v.FontSize = 10, v.FontStyle = "normal", v.FontWeight = "normal", v.LineHeight = 0, v.TextAlign = "start", v.TextOverflow = "clip", v.TextShadow = null, v.WebkitTextStroke = null, v.WhiteSpace = "normal", v.WordWrap = "normal", v.Direction = "ltr", v.JsvTextEmoji = 0, v.JsvTextLatex = 0, v.JsvTextAlignMinWidth = 0, v.JsvTextVerticalAlign = "top", v.JsvTextLineAlign = "middle", v.JsvTextInnerDirection = "unset", C(m = class {
435
- constructor() {
436
- this.height = b.InvalidInt32, this.left = b.InvalidInt32, this.top = b.InvalidInt32, this.width = b.InvalidInt32;
437
- }
438
- }, "Layout"), m.Name = "layout", C(f = class {
439
- constructor() {
440
- this.flexDirection = b.InvalidInt32, this.flexWrap = b.InvalidInt32, this.justifyContent = b.InvalidInt32, this.alignItems = b.InvalidInt32, this.alignContent = b.InvalidInt32, this.alignSelf = b.InvalidInt32, this.flexGrow = b.InvalidFloat;
441
- }
442
- }, "Flex"), f.Name = "flex", C(p = class {
443
- constructor() {
444
- this.backgroundColor = b.InvalidPointer, this.backgroundImage = b.InvalidPointer, this.borderRadius = b.InvalidPointer;
445
- }
446
- }, "Background"), p.Name = "background", C(g = class {
447
- constructor() {
448
- this.backfaceVisibility = b.InvalidPointer, this.borderImage = b.InvalidPointer, this.borderImageWidth = b.InvalidPointer, this.borderImageOutset = b.InvalidPointer, this.display = b.InvalidPointer, this.objectFit = b.InvalidPointer, this.opacity = b.InvalidFloat, this.overflow = b.InvalidPointer, this.perspective = b.InvalidInt32, this.perspectiveOrigin = b.InvalidPointer, this.transform = b.InvalidPointer, this.transformOrigin = b.InvalidPointer, this.transformStyle = b.InvalidPointer, this.visibility = b.InvalidPointer, this.zIndex = b.InvalidInt32;
449
- }
450
- }, "Effect"), g.Name = "effect", C(w = class {
451
- constructor() {
452
- this.color = b.InvalidPointer, this.fontFamily = b.InvalidPointer, this.fontSize = b.InvalidInt32, this.fontStyle = b.InvalidPointer, this.fontWeight = b.InvalidPointer, this.lineHeight = b.InvalidInt32, this.textAlign = b.InvalidPointer, this.textOverflow = b.InvalidPointer, this.textShadow = b.InvalidPointer, this.webkitTextStroke = b.InvalidPointer, this.whiteSpace = b.InvalidPointer, this.wordWrap = b.InvalidPointer, this.direction = b.InvalidPointer, this.jsvTextEmoji = b.InvalidInt32, this.jsvTextLatex = b.InvalidInt32, this.jsvTextAlignMinWidth = b.InvalidInt32, this.jsvTextVerticalAlign = b.InvalidPointer, this.jsvTextLineAlign = b.InvalidPointer, this.jsvTextInnerDirection = b.InvalidPointer;
453
- }
454
- }, "Text"), w.Name = "text", C(y = class {
455
- constructor() {
456
- this.animation = b.InvalidPointer, this.transition = b.InvalidPointer, this.animationFillMode = "none";
457
- }
458
- }, "Motion"), y.Name = "motion";
459
- class F {
460
- static JsvDeclarePrototype() {
461
- for (let e2 in I) {
462
- let t2 = I[e2];
463
- for (let e3 in t2) {
464
- let s2 = t2[e3];
465
- if ("string" != typeof s2)
466
- continue;
467
- const i2 = { set: function(e4) {
468
- this.setProperty(s2, e4);
469
- }, get: function() {
470
- return this.getPropertyValue(s2);
471
- } };
472
- Object.defineProperty(F.prototype, s2, i2);
473
- }
474
- }
475
- }
476
- constructor(e2) {
477
- this.cachedProps = {}, this.nativeId = e2;
478
- }
479
- setProperty(e2, t2) {
480
- if (window.JsvCode.Dom.CheckStyleFormat?.(e2, t2), e2 == I.Background.BackgroundImage && "string" == typeof t2)
481
- if (0 == t2.indexOf("linear-gradient")) {
482
- const e3 = t2.match(/\(/g)?.length, s2 = t2.match(/\)/g)?.length;
483
- e3 != s2 && (console.error(`StyleError: illegal linear-gradient value '${t2}'`), t2 = "");
484
- } else {
485
- t2 = new N(t2).href;
486
- }
487
- else if (e2 == I.Effect.BorderImage && "string" == typeof t2) {
488
- const e3 = t2.split(" ");
489
- e3.length > 0 && (e3[0] = new N(e3[0]).href), t2 = e3.join(" ");
490
- } else
491
- e2 == I.Effect.Display && (this.cachedProps[e2] = t2);
492
- E.Dom.SetStyleProperty(this.nativeId, e2, t2);
493
- }
494
- getPropertyValue(e2) {
495
- if (e2 == I.Effect.Display)
496
- return this.cachedProps[e2];
497
- throw console.error("StyleDeclaration.getPropertyValue() propName=" + e2), new Error("Get style value is unimplemented because it's low performance.");
498
- }
499
- jsvGetProperties(...e2) {
500
- const t2 = JSON.stringify(e2), s2 = E.Dom.GetStyleProperties(this.nativeId, t2);
501
- return JSON.parse(s2);
502
- }
503
- }
504
- class P extends t {
505
- constructor(e2) {
506
- super(e2);
507
- }
508
- }
509
- class L extends S {
510
- static JsvEnableEventListener() {
511
- E.Dom.EnableEventListener(function(e2, t2, ...s2) {
512
- let i2 = L.JsvEventListenerMap.get(e2);
513
- const n2 = i2?.get(t2);
514
- n2?.(t2, ...s2);
515
- });
516
- }
517
- constructor(e2) {
518
- super(S.ELEMENT_NODE), this.jsvNativeId = -1, this.jsvAttrStore = {}, this.jsvClientSizeStore = {}, this.tagName = e2, this.tagName != L.JsvTagName.Audio && this.tagName != L.JsvTagName.Div && this.tagName != L.JsvTagName.Image && this.tagName != L.JsvTagName.Video && this.tagName != L.JsvTagName.JsvFDiv || (this.jsvNativeId = x.GenerateId(), this.style = new F(this.jsvNativeId), E.Dom.CreateElement(this.jsvNativeId, e2));
519
- }
520
- appendChild(e2) {
521
- e2.parentNode ? this.moveChildNode(e2, null) : (super.appendChild(e2), this.jsvInsertChild(e2, null));
522
- }
523
- removeChild(e2) {
524
- super.removeChild(e2), this.jsvRemoveChild(e2), e2 instanceof L && e2.jsvNativeId > 0 && E.Dom.RemoveElementChild(this.jsvNativeId, e2.jsvNativeId);
525
- }
526
- insertBefore(e2, t2) {
527
- e2.parentNode ? e2.parentNode == this ? (this.jsvMoveChildReOrder(e2, t2), this.jsvReOrderChildNode(e2, t2)) : this.moveChildNode(e2, t2) : (super.insertBefore(e2, t2), this.jsvInsertChild(e2, t2));
528
- }
529
- addEventListener(e2, t2, s2) {
530
- const i2 = this.jsvGetEventListenerSet(e2);
531
- i2?.has(t2) ? console.warn("Element.addEventListener() Faild to add listener, func is exists") : (s2 = this.jsvCheckEventOptions(s2), this.jsvNativeId && (this.jsvAddListener(this.jsvNativeId, e2), E.Dom.AddElementEventListener(this.jsvNativeId, e2, s2)), super.addEventListener(e2, t2, s2));
532
- }
533
- removeEventListener(e2, t2, s2) {
534
- const i2 = this.jsvGetEventListenerSet(e2);
535
- 0 != !!i2?.has(t2) && (s2 = this.jsvCheckEventOptions(s2), super.removeEventListener(e2, t2, s2), this.jsvNativeId && (this.jsvRemoveListener(this.jsvNativeId, e2), E.Dom.RemoveElementEventListener(this.jsvNativeId, e2, s2)));
536
- }
537
- get childElementCount() {
538
- return this.childNodes.length;
539
- }
540
- get firstElementChild() {
541
- return this.childNodes.length > 0 ? this.childNodes?.[0] : null;
542
- }
543
- get lastElementChild() {
544
- const e2 = this.childNodes.length;
545
- return e2 > 0 ? this.childNodes[e2 - 1] : null;
546
- }
547
- set className(e2) {
548
- this.setAttribute("class", e2);
549
- }
550
- get clientWidth() {
551
- return this.jsvClientSizeStore.clientWidth || (this.jsvClientSizeStore.clientWidth = E.Dom.GetElementAttribute(this.jsvNativeId, "clientWidth")), this.jsvClientSizeStore.clientWidth;
552
- }
553
- get clientHeight() {
554
- return this.jsvClientSizeStore.clientHeight || (this.jsvClientSizeStore.clientHeight = E.Dom.GetElementAttribute(this.jsvNativeId, "clientHeight")), this.jsvClientSizeStore.clientHeight;
555
- }
556
- setAttribute(e2, t2) {
557
- e2 && (this.jsvAttrStore[e2] = t2, this.jsvNativeId && (e2.startsWith("data-jsv-vw-") ? E.Dom.SetForgeViewInnerProps(this.jsvNativeId, e2, t2) : "class" === e2 || e2.startsWith("data-v-") || e2.startsWith("data-jsv") || e2.startsWith("dataJsv") ? E.Dom.SetElementAttribute(this.jsvNativeId, e2, t2) : "id" === e2 && E.Dom.SetForgeViewInnerProps(this.jsvNativeId, "data-jsv-vw-id", t2)));
558
- }
559
- removeAttribute(e2) {
560
- delete this.jsvAttrStore[e2], ("class" == e2 || e2.startsWith("data-v-") || "src" == e2) && this.jsvNativeId && E.Dom.SetElementAttribute(this.jsvNativeId, e2, null);
561
- }
562
- getAttribute(e2) {
563
- return this.jsvAttrStore[e2];
564
- }
565
- hasAttribute(e2) {
566
- return !!this.jsvAttrStore[e2];
567
- }
568
- focus() {
569
- document.activeElement && document.activeElement.onfocus();
570
- let e2 = document.activeElement;
571
- if (document.activeElement = this, e2) {
572
- let t3 = new n(n.JsvType.Blur);
573
- t3.target = e2, document.dispatchEvent(t3);
574
- }
575
- let t2 = new n(n.JsvType.Focus);
576
- document.dispatchEvent(t2);
577
- }
578
- jsvGetBoundingClientRect() {
579
- const e2 = "jsv-getbound", t2 = x.GenerateId();
580
- return new Promise((s2, i2) => {
581
- const n2 = (o2) => {
582
- const r2 = o2.jsvParams?.[1];
583
- if (r2 != t2)
584
- return;
585
- o2.preventDefault(), this.removeEventListener(e2, n2);
586
- const a2 = JSON.parse(o2.jsvParams?.[0] ?? "{}");
587
- 0 === a2.status ? s2(a2.data) : i2(a2.error);
588
- };
589
- this.addEventListener(e2, n2, { jsvtoken: t2 });
590
- });
591
- }
592
- jsvSetOnLazyTaskSyncedListener(e2) {
593
- E.Dom.AppendLazyTaskSyncedListener(this.jsvNativeId, e2);
594
- }
595
- jsvOnEvent(e2, ...n2) {
596
- let o2;
597
- e2.startsWith("animation") ? (o2 = new s(e2), o2.animationName = n2[0]) : e2.startsWith("transition") ? (o2 = new P(e2), o2.propertyName = n2[0]) : e2.startsWith("jsv") ? (o2 = new i(e2), o2.options = { detail: n2[0] }, o2.jsvParams = n2) : "click" == e2 && (o2 = new t(e2), o2.target = this), o2 && (o2.target = this, this.dispatchEvent(o2));
598
- }
599
- jsvGetProxyView(e2) {
600
- return e2 ? (this.maskViewProxy || (this.maskViewProxy = T.NewDomProxyView(this.jsvNativeId, true)), this.maskViewProxy) : (this.mainViewProxy || (this.mainViewProxy = T.NewDomProxyView(this.jsvNativeId, false)), this.mainViewProxy);
601
- }
602
- jsvGetProxyTexture(e2) {
603
- return this.mainViewTextureProxy || (this.mainViewTextureProxy = e2.GetDomProxyTexture(this.jsvNativeId)), this.mainViewTextureProxy;
604
- }
605
- jsvGetRelativePosition(e2) {
606
- return E.Dom.GetRelativePosition(this.jsvNativeId, e2.jsvNativeId);
607
- }
608
- jsvAddListener(e2, t2) {
609
- let s2 = L.JsvEventListenerMap.get(e2);
610
- s2 || (s2 = /* @__PURE__ */ new Map(), L.JsvEventListenerMap.set(e2, s2));
611
- this.jsvGetEventListenerSet(t2) || s2.set(t2, this.jsvOnEvent.bind(this));
612
- }
613
- jsvRemoveListener(e2, t2) {
614
- let s2 = L.JsvEventListenerMap.get(e2);
615
- if (!s2)
616
- return;
617
- this.jsvGetEventListenerSet(t2) || s2.delete(t2);
618
- }
619
- moveChildNode(e2, t2) {
620
- console.log("Do move child node");
621
- let s2 = e2.parentNode;
622
- s2.jsvMoveChildToNewParent(e2, this, t2), this.jsvMoveChildNode(s2, e2, t2);
623
- }
624
- jsvMoveChildNode(e2, t2, s2) {
625
- t2.jsvNativeId && (s2 = L.JsvFindBackwardForgeView(s2), E.Dom.MoveElementChild(this.jsvNativeId, e2.jsvNativeId, t2.jsvNativeId, s2?.jsvNativeId));
626
- }
627
- jsvReOrderChildNode(e2, t2) {
628
- e2.jsvNativeId && (t2 = L.JsvFindBackwardForgeView(t2), E.Dom.ReOrderElementChild(this.jsvNativeId, e2.jsvNativeId, t2?.jsvNativeId));
629
- }
630
- jsvInsertChild(e2, t2) {
631
- e2.parentNode = this, e2.nodeType === S.TEXT_NODE ? this.textContent = e2.nodeValue : e2 instanceof L && e2.jsvNativeId > 0 && (t2 = L.JsvFindBackwardForgeView(t2), E.Dom.InsertElementChild(this.jsvNativeId, e2.jsvNativeId, t2?.jsvNativeId));
632
- }
633
- jsvRemoveChild(e2) {
634
- if (e2 instanceof L != 0) {
635
- for (const t2 of e2.childNodes)
636
- e2.jsvRemoveChild(t2);
637
- e2.jsvFinalize(), E.Dom.RemoveLazyTaskSyncedListener(e2.jsvNativeId), L.JsvEventListenerMap.delete(e2.jsvNativeId);
638
- }
639
- }
640
- jsvCheckEventOptions(e2) {
641
- if (null == e2)
642
- return null;
643
- if ("object" != typeof e2 || e2 instanceof Array)
644
- return console.warn("Event options is invalid for ", e2), null;
645
- const t2 = ["capture", "once", "passive", "signal"];
646
- for (const [s2, i2] of Object.entries(e2))
647
- 0 == t2.includes(s2) && 0 == s2.startsWith("jsv") && (console.warn("Event options name is invalid: ", s2), delete e2[s2]), "boolean" == typeof i2 ? e2[s2] = +e2[s2] : "number" != typeof i2 && (console.warn("Event options value is invalid: ", i2), delete e2[s2]);
648
- return e2;
649
- }
650
- static JsvFindBackwardForgeView(e2) {
651
- let t2 = e2;
652
- for (; t2 && !(t2 instanceof L); )
653
- t2 = t2.nextSibling;
654
- return t2;
655
- }
656
- }
657
- L.JsvTagName = { Anchor: "A", Audio: "AUDIO", Div: "DIV", Head: "HEAD", Image: "IMG", IFrame: "IFRAME", Link: "LINK", Script: "SCRIPT", Style: "STYLE", Svg: "SVG", Video: "VIDEO", JsvAudioTrack: "JSV-AUDIOTRACK", JsvFDiv: "FDIV" }, L.JsvEventListenerMap = /* @__PURE__ */ new Map();
658
- class k extends L {
659
- constructor() {
660
- super(L.JsvTagName.Anchor), this.href = "", this.protocol = "", this.host = "", this.search = "", this.hash = "", this.hostname = "", this.port = "", this.pathname = "", console.warn("Warnig: <a> is fake in JsView system");
661
- }
662
- jsvGetTagName() {
663
- return L.JsvTagName.Anchor;
664
- }
665
- }
666
- class R extends S {
667
- constructor(e2) {
668
- super(S.COMMENT_NODE), this.textContent = e2;
669
- }
670
- }
671
- class M extends L {
672
- constructor() {
673
- super(L.JsvTagName.Div), this.textContentStore = null;
674
- }
675
- get textContent() {
676
- return this.textContentStore;
677
- }
678
- set textContent(e2) {
679
- this.textContentStore = e2, this.jsvClientSizeStore = {}, E.Dom.SetElementText(this.jsvNativeId, e2);
680
- }
681
- }
682
- const j = "FocusDebug", _ = "__AppRoot__";
683
- let O = false, J = false;
684
- function B(e2, t2) {
685
- let s2 = function(e3) {
686
- let t3 = "";
687
- if (e3) {
688
- let s3 = e3, i3 = s3.RouterDelegate?.ref?.NameSpace;
689
- for (i3 = i3 == _ ? "" : i3, t3 = `[${i3 ? i3 + ", " : ""}${s3.BranchName}]`, s3 = s3.GetParentPage(); s3; )
690
- i3 = s3.RouterDelegate?.ref?.NameSpace, i3 = i3 == _ ? "" : i3, t3 = `[${i3 ? i3 + ", " : ""}${s3.BranchName}]->` + t3, s3 = s3.GetParentPage();
691
- }
692
- return t3;
693
- }(e2);
694
- if (t2.stack) {
695
- let e3 = t2.stack.split("\n");
696
- e3.length >= 3 && (t2.stack = e3.slice(2, 6));
697
- }
698
- let i2 = "";
699
- for (let e3 of t2.stack)
700
- i2 += e3 + "\n";
701
- delete t2.stack, console.log(j, `focusChange(${t2?.from}):${t2?.askName}
702
- :focusStack:${s2}
703
- :trace:${i2}:`, t2);
704
- }
705
- class A {
706
- constructor(e2, t2) {
707
- this._DefaultFocusNameSpace = null, this._DefaultFocusNameSpace = null, this.RouterDelegate = { ref: null }, e2 || (this.RouterDelegate.ref = new V(false, t2));
708
- }
709
- enableFocusTrace(e2) {
710
- O = true, J = e2;
711
- }
712
- getNameSpace() {
713
- let e2 = this.RouterDelegate.ref.NameSpace;
714
- return e2 == _ ? "" : e2;
715
- }
716
- wrapWithNameSpace(e2) {
717
- let t2 = new A(true);
718
- return t2._DefaultFocusNameSpace = e2, t2.RouterDelegate = this.RouterDelegate, t2;
719
- }
720
- getNodeByName(e2) {
721
- return this.RouterDelegate.ref.getNodeByName(e2);
722
- }
723
- focusByNameBeforeMount(e2, t2, s2) {
724
- if ("string" == typeof e2)
725
- return e2.includes(".") && (e2 = e2.split(".")), this.RouterDelegate.ref.focusBeforeMount(e2, t2, s2);
726
- console.error(`setFocus name=${e2} is invalid`);
727
- }
728
- setFocus(e2, t2) {
729
- this._DefaultFocusNameSpace && this._DefaultFocusNameSpace.length > 0 && (e2 = `${this._DefaultFocusNameSpace}.${e2}`);
730
- let s2 = null;
731
- O && (s2 = { askName: e2, deepToChild: t2, from: "setFocus", stack: J ? new Error("simulate-stack").stack : null });
732
- return this.focusByNameBeforeMount(e2, t2, s2);
733
- }
734
- printAllFocusable() {
735
- this.RouterDelegate.ref.printAllFocusRecursive(this._DefaultFocusNameSpace, "");
736
- }
737
- getCurrentFocusStack() {
738
- const e2 = [];
739
- if (this.RouterDelegate.ref) {
740
- let t2 = this.RouterDelegate.ref.getCurrentFocusNode();
741
- for (; t2 && t2 instanceof W; ) {
742
- let s2 = t2.RouterDelegate?.ref?.NameSpace;
743
- e2.push({ nameSpace: s2 == _ || s2 == t2.BranchName ? "" : s2, name: t2.BranchName }), t2 = t2.GetParentPage();
744
- }
745
- } else
746
- console.error("getCurrentFocusStack failed: router delegate is null.");
747
- return e2;
748
- }
749
- getLastFocus() {
750
- if (W.sLastFocus) {
751
- let e2 = W.sLastFocus;
752
- for (; e2._LatestFocusChild; )
753
- e2 = e2._LatestFocusChild;
754
- return e2.BranchName;
755
- }
756
- return null;
757
- }
758
- getCurrentFocus() {
759
- if (this.RouterDelegate.ref) {
760
- const e2 = this.RouterDelegate.ref.getCurrentFocusNode();
761
- if (e2)
762
- return e2.BranchName;
763
- }
764
- return null;
765
- }
766
- getDeactivedPageFocus() {
767
- return this.RouterDelegate.ref ? this.RouterDelegate.ref.getDeactivePageFocusName() : null;
768
- }
769
- returnFocusToParent() {
770
- const e2 = this.RouterDelegate.ref.getCurrentFocusNode();
771
- e2 ? e2.ReturnFocusToParent() : console.warn("returnFocusToParent: current focus node is null.");
772
- }
773
- }
774
- class V {
775
- constructor(e2, t2) {
776
- this._ChildMap = {}, this._FocusNameBeforeMount = null, this._BeforeMountStack = null, this._FocusNodeName = null, this._IsTemp = !!e2, this.NameSpace = t2;
777
- }
778
- getDeactivePageFocusName() {
779
- return this._FocusNodeName;
780
- }
781
- getCurrentFocusNode() {
782
- if (null == this._FocusNodeName)
783
- return null;
784
- let e2 = this._ChildMap[this._FocusNodeName];
785
- if (!e2)
786
- return console.error("Erorr: node not mounted name=" + this._FocusNodeName), null;
787
- if (e2.RouterDelegate.ref != this) {
788
- let t2 = e2.RouterDelegate.ref.getCurrentFocusNode();
789
- return null == t2 ? e2 : t2;
790
- }
791
- return e2;
792
- }
793
- getNodeByName(e2, t2) {
794
- let s2 = e2.split(".");
795
- return this._FindRouterSearchBase(s2, t2)._GetNodeFromPathArray(s2, e2);
796
- }
797
- printAllFocusRecursive(e2, t2) {
798
- let s2 = this.NameSpace == _ ? "" : this.NameSpace, i2 = t2 + (t2 && t2.length > 0 ? "." : "") + s2;
799
- for (let t3 in this._ChildMap) {
800
- let s3 = this._ChildMap[t3];
801
- if (!e2 || 0 == e2.length || i2.indexOf(e2) >= 0) {
802
- let e3 = i2 === _ ? t3 : i2 + "." + t3;
803
- console.log(e3, s3);
804
- }
805
- s3.RouterDelegate.ref != this && s3.RouterDelegate.ref.printAllFocusRecursive(e2, i2);
806
- }
807
- }
808
- _FindRouterSearchBase(e2, t2) {
809
- if (0 == e2[0].length) {
810
- let t3, s2;
811
- for (let e3 in this._ChildMap) {
812
- t3 = this._ChildMap[e3];
813
- break;
814
- }
815
- do {
816
- s2 = t3, t3 = t3.GetParentPage();
817
- } while (null != t3);
818
- return e2.splice(0, 1), s2.RouterDelegate.ref;
819
- }
820
- return t2 && t2.AsHub && t2.GetParentPage() ? t2.GetParentPage().RouterDelegate.ref : this;
821
- }
822
- _GetNodeFromPathArray(e2, t2) {
823
- let s2 = 0, i2 = this;
824
- for (; s2 < e2.length - 1; ) {
825
- let n3 = false;
826
- for (let t3 in i2._ChildMap) {
827
- let o2 = i2._ChildMap[t3].RouterDelegate.ref;
828
- if (o2 != i2 && o2.NameSpace == e2[s2]) {
829
- i2 = o2, s2++, n3 = true;
830
- break;
831
- }
832
- }
833
- if (!n3)
834
- return void console.error(`Error: no found subpath fname=${t2}`);
835
- }
836
- let n2 = e2[s2];
837
- return i2._ChildMap.hasOwnProperty(n2) ? i2._ChildMap[n2] : void console.error(`Error: no found fname=${t2}`);
838
- }
839
- add(e2, t2) {
840
- if (e2.indexOf(".") >= 0)
841
- console.error("ERROR: FDiv name can not contains '.'");
842
- else if (this._ChildMap.hasOwnProperty(e2) && this._ChildMap[e2] !== t2)
843
- console.error(`ERROR: FDiv router branch name duplicated:[${e2}]`);
844
- else if (this._ChildMap[e2] = t2, this._FocusNameBeforeMount)
845
- if ("string" == typeof this._FocusNameBeforeMount)
846
- this._FocusNameBeforeMount == e2 && t2.RouterDelegate.ref.focusBeforeMount(this._FocusNameBeforeMount, false, this._BeforeMountStack);
847
- else {
848
- this._FocusNameBeforeMount[0] == e2 && t2.RouterDelegate.ref.focusBeforeMount(this._FocusNameBeforeMount.slice(1), false, this._BeforeMountStack);
849
- }
850
- }
851
- remove(e2, t2, s2, i2) {
852
- let n2 = this._ChildMap[e2];
853
- n2 && n2 == t2 && (delete this._ChildMap[e2], n2.OnRemoveFromTree()), this._FocusNodeName == e2 && s2 && (i2 || (this._FocusNodeName = s2));
854
- }
855
- rename(e2, t2) {
856
- if (!this._ChildMap.hasOwnProperty(e2))
857
- return void console.error(`ERROR: alter name failed ${e2}->${t2}`);
858
- let s2 = this._ChildMap[e2];
859
- delete this._ChildMap[e2], this.add(t2, s2), this._FocusNodeName == e2 && (this._FocusNodeName = t2);
860
- }
861
- clearChildFocus() {
862
- this._FocusNodeName = null, this._FocusNameBeforeMount = null;
863
- }
864
- hasPendingFocusRequest() {
865
- return !this._FocusNameBeforeMount;
866
- }
867
- focusBeforeMount(e2, t2, s2) {
868
- O && !s2 && console.error(j, `Error: found debug info missing from ${new Error("simulate-stack").stack}`);
869
- let i2 = false;
870
- if ("string" == typeof e2) {
871
- if (!e2.includes(".")) {
872
- i2 = true;
873
- let n2 = this._ChildMap[e2];
874
- if (this._FocusNodeName = e2, n2) {
875
- this._FocusNameBeforeMount = null, this._BeforeMountStack = s2, n2.Focus(!t2);
876
- let e3 = n2.GetFocusChild();
877
- for (; e3; ) {
878
- let t3 = e3.GetFocusChild();
879
- if (!t3) {
880
- this._FocusNodeName = e3.BranchName;
881
- break;
882
- }
883
- e3 = t3;
884
- }
885
- return O && B(e3 ?? n2, s2), n2.RouterDelegate.ref != this && n2.RouterDelegate.ref.clearChildFocus(), true;
886
- }
887
- return this._FocusNameBeforeMount = e2, this._BeforeMountStack = s2, false;
888
- }
889
- console.error("error: name contain .");
890
- } else if ("object" == typeof e2 && Array.isArray(e2) && e2.length > 0) {
891
- if (i2 = true, 1 == e2.length)
892
- return this.focusBeforeMount(e2[0], t2, s2);
893
- {
894
- let i3 = e2[0], n2 = this._ChildMap[i3];
895
- return this._FocusNodeName = i3, n2 ? n2.RouterDelegate.ref.focusBeforeMount(e2.slice(1), t2, s2) : (this._FocusNameBeforeMount = e2, this._BeforeMountStack = s2, false);
896
- }
897
- }
898
- return i2 || console.error("illegal name param", e2), false;
899
- }
900
- focus(e2, t2, s2) {
901
- let i2 = this.focusBeforeMount(e2, t2, s2);
902
- return i2 || console.log("No found branch:" + e2), i2;
903
- }
904
- forEach(e2) {
905
- for (let t2 in this._ChildMap)
906
- e2(this._ChildMap[t2], t2, this._ChildMap);
907
- }
908
- printNodes() {
909
- console.log(this._ChildMap);
910
- }
911
- }
912
- class W extends T.PageBase {
913
- constructor(e2) {
914
- super(e2), this._OnKeyDown = null, this._OnKeyUp = null, this._OnFocus = null, this._OnBlur = null, this._DispatchKeyDown = null, this._DispatchKeyUp = null, this._OnCustomEvent = null, this._DKeyDownProxy = void 0, this._DKeyUpProxy = void 0, this._Mounted = false, this._MountWaitingList = null, this.AsHub = false, this.InterfaceHub = null, this._TmpRouter = null, this._AutoShow = null, this.BranchName = e2, this.RouterDelegate = { ref: null }, this._TmpRouter = null, this._OriginDispatchKeyDown = this._OriginDispatchKeyDown.bind(this), this._OriginDispatchKeyUp = this._OriginDispatchKeyUp.bind(this), this._AutoShow = false;
915
- }
916
- async waitMounted() {
917
- if (this._Mounted)
918
- return;
919
- let e2 = this;
920
- return new Promise((t2, s2) => {
921
- e2._MountWaitingList || (e2._MountWaitingList = []), e2._MountWaitingList.push(t2);
922
- });
923
- }
924
- updateMountState() {
925
- this._Mounted = true;
926
- let e2 = this.SubPages;
927
- for (let t2 in e2)
928
- e2[t2].updateMountState();
929
- if (this._MountWaitingList && this._MountWaitingList.length > 0) {
930
- for (const e3 of this._MountWaitingList)
931
- e3();
932
- this._MountWaitingList = null;
933
- }
934
- }
935
- getHub() {
936
- return this.InterfaceHub || (this.InterfaceHub = new A(true), this.InterfaceHub.RouterDelegate = this.RouterDelegate), this.InterfaceHub;
937
- }
938
- setHub(e2) {
939
- this.RouterDelegate.ref ? console.error("Error: hub is already setted.") : (this.RouterDelegate.ref = e2.RouterDelegate.ref, this.AsHub = true);
940
- }
941
- _UseParentRouter(e2) {
942
- this.RouterDelegate = e2, this.InterfaceHub && (this.InterfaceHub.RouterDelegate = e2);
943
- }
944
- routerAdd(e2, t2) {
945
- t2.RouterDelegate.ref || t2._UseParentRouter(this.RouterDelegate), this.RouterDelegate.ref || (this.RouterDelegate.ref = new V(true)), this.RouterDelegate.ref.add(e2, t2);
946
- }
947
- routerRenameChild(e2, t2) {
948
- this.RouterDelegate.ref.rename(e2, t2);
949
- }
950
- routerUnbind(e2, t2) {
951
- let s2;
952
- this.AsHub ? this.GetParentPage() && (s2 = this.GetParentPage().RouterDelegate.ref) : s2 = this.RouterDelegate.ref, s2 && s2.remove(this.BranchName, this, e2, t2), this.RouterDelegate = { ref: null };
953
- }
954
- setBranchName(e2) {
955
- if (e2 === this.BranchName)
956
- return;
957
- let t2 = this.BranchName;
958
- this.BranchName = e2, this.PageName = e2, this._ParentPage && this._ParentPage.routerRenameChild(t2, e2);
959
- }
960
- static safeCallback(e2) {
961
- return e2 && e2 instanceof Function ? function(...t2) {
962
- try {
963
- return e2(...t2);
964
- } catch (t3) {
965
- console.error("FocusNode: callback error", e2.name, t3);
966
- }
967
- } : null;
968
- }
969
- setOnKeyDown(e2) {
970
- this._OnKeyDown = W.safeCallback(e2);
971
- }
972
- setOnKeyUp(e2) {
973
- this._OnKeyUp = W.safeCallback(e2);
974
- }
975
- setOnFocus(e2) {
976
- this._OnFocus = W.safeCallback(e2);
977
- }
978
- setOnBlur(e2) {
979
- this._OnBlur = W.safeCallback(e2);
980
- }
981
- setDispatchKeyUp(e2) {
982
- this._DispatchKeyUp = W.safeCallback(e2);
983
- }
984
- setDispatchKeyDown(e2) {
985
- this._DispatchKeyDown = W.safeCallback(e2);
986
- }
987
- setOnCustomEvent(e2) {
988
- this._OnCustomEvent = W.safeCallback(e2);
989
- }
990
- setDispatchKeyProxy(e2, t2) {
991
- this._DKeyDownProxy = W.safeCallback(e2), this._DKeyUpProxy = W.safeCallback(t2);
992
- }
993
- requestFocus(e2) {
994
- let t2 = null;
995
- O && (t2 = { askName: this.BranchName, deepToChild: e2, from: "requestFocus", stack: J ? new Error("simulate-stack").stack : null }), this.requestFocusInner(e2, t2);
996
- }
997
- ReturnFocusToParent() {
998
- if (this.IsFocus()) {
999
- let e2 = this.GetParentPage();
1000
- if (e2) {
1001
- const t2 = e2.BranchName;
1002
- let s2 = null;
1003
- O && (s2 = { askName: t2, deepToChild: false, from: "returnFocusToParent", stack: J ? new Error("simulate-stack").stack : null }), e2.RouterDelegate.ref.focus(t2, false, s2);
1004
- }
1005
- } else
1006
- super.ReturnFocusToParent();
1007
- }
1008
- requestFocusInner(e2, t2) {
1009
- let s2 = this.RouterDelegate.ref;
1010
- return this.AsHub && this.GetParentPage() && (s2 = this.GetParentPage().RouterDelegate.ref), s2 ? s2.focus(this.BranchName, e2, t2) : (console.error("error: lost router"), false);
1011
- }
1012
- OnKeyDown(e2) {
1013
- return !!this._OnKeyDown && this._OnKeyDown(e2);
1014
- }
1015
- OnKeyUp(e2) {
1016
- return !!this._OnKeyUp && this._OnKeyUp(e2);
1017
- }
1018
- OnCustomEvent(e2) {
1019
- return !!this._OnCustomEvent && this._OnCustomEvent(e2);
1020
- }
1021
- bubbleCustomEvent(e2) {
1022
- this.BubbleCustomEvent(e2);
1023
- }
1024
- dispatchKeyDown(e2) {
1025
- return this.DispatchKeyDown(e2);
1026
- }
1027
- DispatchKeyDown(e2) {
1028
- return this._DKeyDownProxy ? this._DKeyDownProxy(e2, this._OriginDispatchKeyDown) : this._OriginDispatchKeyDown(e2);
1029
- }
1030
- _OriginDispatchKeyDown(e2) {
1031
- let t2 = false;
1032
- return this._DispatchKeyDown && (t2 = this._DispatchKeyDown(e2)), !!t2 || super.DispatchKeyDown(e2);
1033
- }
1034
- dispatchKeyUp(e2) {
1035
- return this.DispatchKeyUp(e2);
1036
- }
1037
- DispatchKeyUp(e2) {
1038
- return this.__DKeyUpProxy ? this.__DKeyUpProxy(e2, this._OriginDispatchKeyUp) : this._OriginDispatchKeyUp(e2);
1039
- }
1040
- _OriginDispatchKeyUp(e2) {
1041
- let t2 = false;
1042
- return this._DispatchKeyUp && (t2 = this._DispatchKeyUp(e2)), !!t2 || super.DispatchKeyUp(e2);
1043
- }
1044
- attachToActivity(e2, t2) {
1045
- this.AttachToActivity(e2, t2);
1046
- }
1047
- AttachToActivity(e2, t2) {
1048
- super.SetParent(e2, t2);
1049
- }
1050
- setParent(e2) {
1051
- this.SetParent(e2);
1052
- }
1053
- SetParent(e2) {
1054
- if (null != e2 && (super.SetParent(e2, null), this._ParentPage._Mounted && (this.updateMountState(), z()), e2 instanceof W)) {
1055
- if (this.RouterDelegate.ref && this.RouterDelegate.ref._IsTemp) {
1056
- let t2 = this.RouterDelegate.ref;
1057
- this.RouterDelegate.ref = null, t2.forEach((t3, s2) => {
1058
- e2.routerAdd(s2, t3);
1059
- });
1060
- }
1061
- e2.routerAdd(this.BranchName, this);
1062
- }
1063
- }
1064
- focus(e2) {
1065
- this.Focus(e2);
1066
- }
1067
- Focus(e2) {
1068
- if (!this._Mounted)
1069
- return W.sFocusMemos.push({ obj: this, bcf: e2 }), void console.log("page base tree not build, cache focus");
1070
- super.Focus(e2);
1071
- }
1072
- OnFocus() {
1073
- this._OnFocus && this._OnFocus();
1074
- }
1075
- OnBlur() {
1076
- W.sLastFocus = this, this._OnBlur && this._OnBlur();
1077
- }
1078
- onUnMount(e2) {
1079
- W.sLastFocus == this && (W.sLastFocus = null);
1080
- let t2 = this.IsFocus();
1081
- if (O && t2) {
1082
- let t3 = this.GetParentPage();
1083
- if (t3) {
1084
- let s3 = null;
1085
- s3 = { askName: t3.BranchName, deepToChild: false, from: e2 ? "deactive" : "unmount", stack: J ? new Error("simulate-stack").stack : null }, B(t3, s3);
1086
- }
1087
- }
1088
- let s2 = this.GetParentPage();
1089
- s2 && s2.RemoveSubPage(this), this.ClearSubPages(), this.routerUnbind(s2?.BranchName, e2), this._Mounted = false;
1090
- }
1091
- getFullName() {
1092
- let e2 = this, t2 = [this.RouterDelegate.ref.NameSpace];
1093
- this.AsHub || t2.push(this.BranchName);
1094
- let s2 = this.RouterDelegate.ref;
1095
- do {
1096
- if (e2 = e2.GetParentPage(), t2[0] == _)
1097
- break;
1098
- e2 && e2.RouterDelegate.ref != s2 && (s2 = e2.RouterDelegate.ref, t2.unshift(s2.NameSpace));
1099
- } while (e2);
1100
- return t2[0] == _ ? t2.shift() : console.error("ERROR: missing app root"), t2.join(".");
1101
- }
1102
- getNodeByName(e2) {
1103
- return this.RouterDelegate.ref.getNodeByName(e2, this);
1104
- }
1105
- }
1106
- W.sFocusMemos = [], W.sLastFocus = null, W.sRootPageNode = null;
1107
- let z = () => {
1108
- let e2 = W.sFocusMemos.length;
1109
- if (e2 > 0) {
1110
- let t2 = W.sFocusMemos;
1111
- W.sFocusMemos = [];
1112
- for (let s2 = 0; s2 < e2; s2++)
1113
- t2[s2].obj.Focus(t2[s2].bcf);
1114
- }
1115
- }, G = {};
1116
- class K {
1117
- constructor(e2, t2, s2) {
1118
- this._Element = s2, G.hasOwnProperty(e2) && console.error(`Warn: FDivRoot duplicate name=${e2}`), G[e2] = this, this._DoInit(t2);
1119
- }
1120
- _DoInit(e2) {
1121
- let t2 = this._Element.FocusNodeRef;
1122
- this._Element.setAttribute("new-namespace", "__AppRoot__"), e2 && t2.setDispatchKeyProxy(e2.keyDown, e2.keyUp), window.JsView ? t2.attachToActivity(window.JsvCode.ForgeHandles.RootActivity, window.JsvCode.ForgeHandles.RootView) : (window.addEventListener("keydown", (e3) => {
1123
- var s2 = document.activeElement?.tagName;
1124
- s2 && "input" === s2.toLowerCase() || (t2.dispatchKeyDown(e3), e3.preventDefault && e3.preventDefault());
1125
- }), window.addEventListener("keyup", (e3) => {
1126
- var s2 = document.activeElement?.tagName;
1127
- s2 && "input" === s2.toLowerCase() || (t2.dispatchKeyUp(e3), e3.preventDefault && e3.preventDefault());
1128
- }));
1129
- }
1130
- getElement() {
1131
- return this._Element;
1132
- }
1133
- getHub() {
1134
- return this._Element.jsvGetHub();
1135
- }
1136
- onMounted() {
1137
- this._Element.FocusNodeRef.updateMountState(), z();
1138
- }
1139
- }
1140
- class U extends L {
1141
- constructor() {
1142
- super(L.JsvTagName.Image);
1143
- }
1144
- setAttribute(e2, t2) {
1145
- if ("src" === e2) {
1146
- t2 = new N(t2).href, this.jsvClientSizeStore = {};
1147
- }
1148
- super.setAttribute(e2, t2), this.jsvNativeId && "src" === e2 && E.Dom.SetElementAttribute(this.jsvNativeId, e2, t2);
1149
- }
1150
- jsvOnEvent(e2, ...s2) {
1151
- let i2;
1152
- super.jsvOnEvent(e2, ...s2), "load" == e2 && (i2 = new t(e2), i2.target = this), i2 && this.dispatchEvent(i2);
1153
- }
1154
- }
1155
- class H extends L {
1156
- constructor() {
1157
- super(L.JsvTagName.Link);
1158
- }
1159
- setAttribute(e2, t2) {
1160
- this[e2] = t2;
1161
- }
1162
- jsvLoadResource() {
1163
- let e2 = false, t2 = null;
1164
- if (null != this.href) {
1165
- var s2 = new N(this.href);
1166
- console.log("Ignore to load link from url=" + s2.href), e2 = true;
1167
- } else
1168
- console.warn("Failed to load link, href is not exists."), t2 = "NoSrc";
1169
- this.jsvOnLoadResult(e2, t2);
1170
- }
1171
- jsvOnLoadResult(e2, s2) {
1172
- if (console.log("Load link result: isSuccess:" + e2 + ", errCode:" + s2), e2) {
1173
- if (this.onload) {
1174
- let e3 = new t("load");
1175
- this.onload(e3);
1176
- }
1177
- } else
1178
- this.onerror && this.onerror({ type: "jsvErr_" + s2, target: this });
1179
- }
1180
- }
1181
- class $ extends L {
1182
- constructor() {
1183
- super(L.JsvTagName.Script);
1184
- }
1185
- setAttribute(e2, t2) {
1186
- this[e2] = t2;
1187
- }
1188
- jsvLoadResource() {
1189
- if (null != this.src) {
1190
- var e2 = new N(this.src);
1191
- console.log("Load script with url=" + e2.href);
1192
- var t2 = this;
1193
- window.JsView.runJsWithUrl(e2.href, false, (e3, s2) => {
1194
- t2.jsvOnLoadResult(e3, s2);
1195
- });
1196
- }
1197
- }
1198
- jsvOnLoadResult(e2, s2) {
1199
- if (console.log("Load script result: isSuccess:" + e2 + ", errCode:" + s2), e2) {
1200
- if (this.onload) {
1201
- let e3 = new t("load");
1202
- this.onload(e3);
1203
- }
1204
- } else
1205
- this.onerror && this.onerror({ type: "jsvErr_" + s2, target: this });
1206
- }
1207
- }
1208
- class q extends L {
1209
- constructor() {
1210
- super(L.JsvTagName.Style), this.jsvAttrStore = { left: 0, top: 0, width: 0, height: 0 };
1211
- }
1212
- }
1213
- class X extends L {
1214
- constructor() {
1215
- super(L.JsvTagName.Svg);
1216
- }
1217
- }
1218
- class Y extends S {
1219
- constructor(e2) {
1220
- super(S.TEXT_NODE), this.textContent = e2;
1221
- }
1222
- get nodeValue() {
1223
- return this.textContent;
1224
- }
1225
- set nodeValue(e2) {
1226
- this.textContent = e2, this.parentNode && (this.parentNode.textContent = this.textContent);
1227
- }
1228
- }
1229
- let Z = 1;
1230
- class Q extends L {
1231
- constructor() {
1232
- super(L.JsvTagName.JsvFDiv), this.FocusNodeRef = new W("unnamed-" + Z++), this.hubRef = void 0;
1233
- }
1234
- setAttribute(e2, t2) {
1235
- if (e2) {
1236
- if ("fname" === e2)
1237
- t2 && this.FocusNodeRef.setBranchName(t2);
1238
- else if ("new-namespace" === e2 && "" !== t2 && !this.hubRef) {
1239
- let e3 = new A(false, t2);
1240
- this.hubRef = e3, this.FocusNodeRef.setHub(e3), this.FocusNodeRef.setBranchName(t2);
1241
- }
1242
- }
1243
- }
1244
- removeAttribute(e2) {
1245
- }
1246
- jsvGetHub() {
1247
- return this.hubRef;
1248
- }
1249
- }
1250
- class ee extends S {
1251
- constructor() {
1252
- super(S.DOCUMENT_NODE), this.location = window.location, this.rootElement = new M(), this.rootElement.ownerDocument = this, this.rootElement.id = "root", E.Dom.BindElementToRootView(this.rootElement.jsvNativeId), this.activeElement = this.rootElement, this.head = null;
1253
- }
1254
- createComment(e2) {
1255
- return new R(e2);
1256
- }
1257
- createElement(e2) {
1258
- switch (e2 = e2.toUpperCase()) {
1259
- case L.JsvTagName.Anchor:
1260
- return new k();
1261
- case L.JsvTagName.Div:
1262
- return new M();
1263
- case L.JsvTagName.Image:
1264
- return new U();
1265
- case L.JsvTagName.Link:
1266
- return new H();
1267
- case L.JsvTagName.Script:
1268
- return new $();
1269
- case L.JsvTagName.Style:
1270
- return new q();
1271
- case L.JsvTagName.Svg:
1272
- return new X();
1273
- case L.JsvTagName.JsvFDiv:
1274
- return new Q();
1275
- case L.JsvTagName.IFrame:
1276
- console.error("Unsupported element: " + e2 + ". Your vue compilation may may have failed, please check it first.");
1277
- }
1278
- if ("TEMPLATE" == e2)
1279
- return {};
1280
- throw new TypeError("Unimplemented element: " + e2);
1281
- }
1282
- createEvent(e2) {
1283
- return "CUSTOMEVENT" === (e2 = e2.toUpperCase()) ? new i(e2) : new t(e2);
1284
- }
1285
- createTextNode(e2) {
1286
- return new Y(e2);
1287
- }
1288
- getElementById(e2) {
1289
- if ("root" === e2 || "app" === e2)
1290
- return this.rootElement;
1291
- throw new DOMException("Failed to get element by id, id=" + e2 + " is UNIMPLEMENTED.");
1292
- }
1293
- getElementsByTagName(e2) {
1294
- if ((e2 = e2.toUpperCase()) === L.JsvTagName.Head)
1295
- return [this.head];
1296
- if (e2 === L.JsvTagName.Link || e2 === L.JsvTagName.Script || e2 === L.JsvTagName.Style)
1297
- return [];
1298
- throw new DOMException("Failed to get element by name, name=" + e2 + " is UNIMPLEMENTED.");
1299
- }
1300
- querySelector(e2) {
1301
- if ("root" === e2 || "#app" === e2)
1302
- return this.rootElement;
1303
- if ("head" === e2)
1304
- return this.head;
1305
- if ("base" === e2)
1306
- return null;
1307
- if ("title" === e2)
1308
- return null;
1309
- if (e2.startsWith("style[") && e2.endsWith("]"))
1310
- return null;
1311
- throw new DOMException("Failed to query selector, selectors=" + e2 + " is UNIMPLEMENTED.");
1312
- }
1313
- querySelectorAll(e2) {
1314
- return [];
1315
- }
1316
- jsvInitFDivRoot(e2, t2, s2) {
1317
- if (!s2) {
1318
- let e3 = document.createElement("fdiv");
1319
- this.rootElement.appendChild(e3), this.rootElement = e3, s2 = this.rootElement;
1320
- }
1321
- return new K(e2, t2, s2);
1322
- }
1323
- }
1324
- class te extends L {
1325
- constructor() {
1326
- super(L.JsvTagName.Head);
1327
- }
1328
- appendChild(e2) {
1329
- super.appendChild(e2), (e2 instanceof H || e2 instanceof $) && e2.jsvLoadResource();
1330
- }
1331
- removeChild(e2) {
1332
- super.removeChild(e2);
1333
- }
1334
- }
1335
- class se {
1336
- constructor() {
1337
- this.ready = false, this.callbacks = [];
1338
- }
1339
- listenToReady(e2) {
1340
- this.ready ? e2?.() : this.callbacks.push(e2);
1341
- }
1342
- dataReady() {
1343
- this.ready = true;
1344
- for (let e2 of this.callbacks)
1345
- e2?.();
1346
- }
1347
- }
1348
- class ie extends se {
1349
- constructor() {
1350
- super(), this.TextureManager = null, this.RootActivity = null, this.RootView = null;
1351
- }
1352
- setHandles(e2, t2, s2) {
1353
- this.TextureManager = e2, this.RootActivity = s2, this.RootView = t2, this.dataReady();
1354
- }
1355
- }
1356
- let ne = "@keyframes";
1357
- class oe {
1358
- constructor(e2) {
1359
- this._AnchorTag = e2, this._NamesCache = /* @__PURE__ */ new Set();
1360
- }
1361
- insertRule(e2) {
1362
- let t2 = this.getName(e2);
1363
- this._NamesCache.has(t2) && console.warn(`Warn: keyframe replace of name ${t2}`), this._NamesCache.add(t2), E.Dom.InsertKeyFrame(t2, e2);
1364
- }
1365
- hasRule(e2) {
1366
- return this._NamesCache.has(e2);
1367
- }
1368
- removeRule(e2) {
1369
- this._NamesCache.has(e2) ? (this._NamesCache.delete(e2), E.Dom.RemoveKeyFrame(e2)) : console.error(`Error: keyFrame(${e2}) is not exist.`);
1370
- }
1371
- removeMultiRules(e2) {
1372
- for (let t2 of e2)
1373
- this.removeRule(t2);
1374
- }
1375
- getName(e2) {
1376
- let t2 = e2.indexOf(ne) + 10, s2 = e2.indexOf("{");
1377
- return e2.substring(t2, s2).trim();
1378
- }
1379
- }
1380
- let re = null;
1381
- function ae(e2) {
1382
- return re || (re = { global: new oe("global") }), re.global;
1383
- }
1384
- class le {
1385
- static EnsureGlobalEnv(e2, t2) {
1386
- const s2 = window.navigator?.userAgent?.toLowerCase();
1387
- window.jsvInAndroidWebView = s2?.indexOf("android") >= 0, le.EnsureGlobalJsvCode(e2, t2), L.JsvEnableEventListener(), F.JsvDeclarePrototype();
1388
- }
1389
- static EnsureGlobalJsvCode(e2, t2) {
1390
- window.JsvCode.Dom || (window.JsvCode.Dom = {}), window.JsvCode.Media || (window.JsvCode.Media = {}), window.JsvCode.Dom.PlatformBridge || (window.JsvCode.Dom.PlatformBridge = e2), window.JsvCode.Media.PlatformBridge || (window.JsvCode.Media.PlatformBridge = t2), window.JsvCode.Dom.DeclareStyleSheets || (window.JsvCode.Dom.DeclareStyleSheets = E.Dom.DeclareStyleSheets), window.JsvCode.Dom.UndeclareStyleSheets || (window.JsvCode.Dom.UndeclareStyleSheets = E.Dom.UndeclareStyleSheets), window.JsvCode.Dom.getKeyFrameGroup || (window.JsvCode.Dom.getKeyFrameGroup = ae), window.JsvCode.ForgeHandles || (window.JsvCode.ForgeHandles = new ie());
1391
- }
1392
- }
1393
- class he {
1394
- static SetLevel(e2) {
1395
- switch (he.E = he.W = he.I = he.D = function() {
1396
- }, e2) {
1397
- case he.Level.Verbose:
1398
- he.V = console.debug.bind(console);
1399
- case he.Level.Debug:
1400
- he.D = console.debug.bind(console);
1401
- case he.Level.Info:
1402
- he.I = console.info.bind(console);
1403
- }
1404
- }
1405
- }
1406
- he.E = console.error.bind(console), he.W = console.warn.bind(console), he.I = console.info.bind(console), he.D = function() {
1407
- }, he.V = function() {
1408
- }, he.Level = { Error: 0, Warning: 1, Info: 2, Debug: 3, Verbose: 4 };
1409
- class ce {
1410
- constructor(e2) {
1411
- this.callback = e2;
1412
- }
1413
- observe(e2, t2) {
1414
- if (!(e2 instanceof S))
1415
- throw Error("TypeError: Failed to execute 'observe' on 'MutationObserver': parameter 1 is not of type JsView's 'Node'");
1416
- for (const e3 of Object.keys(t2))
1417
- "childList" == e3 || console.warn("JsView: only childList config is supported! ignore " + e3);
1418
- t2.childList && e2.jsvObserveChildChanged(() => {
1419
- this.callback?.();
1420
- });
1421
- }
1422
- disconnect() {
1423
- this.callback = void 0;
1424
- }
1425
- }
1426
- class de extends ee {
1427
- constructor() {
1428
- super(), this.head = new te();
1429
- }
1430
- set cookie(e2) {
1431
- window.__JsvCookies.setCookie(e2);
1432
- }
1433
- get cookie() {
1434
- return window.__JsvCookies.getCookie();
1435
- }
1436
- }
1437
- class ue {
1438
- static DeclareGlobal() {
1439
- ue.DeclareDocument(), ue.DeclareOthers(), ue.DeclareAddition();
1440
- }
1441
- static DeclareDocument() {
1442
- window.document = new de();
1443
- }
1444
- static DeclareOthers() {
1445
- window.MutationObserver = ce, window.Element = L, window.SVGElement = X;
1446
- let e2 = new N(window.JsView.getAppUrl(), true);
1447
- window.location.applyUrlInfo ? window.location.applyUrlInfo(e2) : window.location = e2, window.history = {}, window.navigator = { userAgent: "jsview-runtime" };
1448
- }
1449
- static DeclareAddition() {
1450
- window.JsView.Dom = { Render: null, Extension: null, UrlRef: N };
1451
- }
1452
- }
1453
- class ve {
1454
- constructor(e2) {
1455
- this.activity = new T.ReactActivity("NativeForgeActivity", e2, null, null), this.init();
1456
- }
1457
- init() {
1458
- console.log("create NativeForgeActivity.");
1459
- let e2 = new T.LayoutView();
1460
- window.JsvCode.ForgeHandles.setHandles(this.activity.GetTextureManager(), e2, this.activity);
1461
- let t2 = null;
1462
- T.DesignMap && (t2 = T.DesignMap());
1463
- let s2 = t2 ? t2.width : 1280, i2 = Math.floor(9 * s2 / 16);
1464
- this.activity.SetContentView(e2, { x: 0, y: 0, width: s2, height: i2 }), T.sRenderBridge.AddWillSwapListener("forgeSwap", () => {
1465
- E.Dom.RequestSwapAllCachedTasks();
1466
- }), window.JsView.Dom.Render();
1467
- }
1468
- }
1469
- class me {
1470
- constructor(e2) {
1471
- this.activityManager = e2;
1472
- let t2 = new ve(e2);
1473
- e2.RegisterActivity(t2.activity), e2.StartActivity(new T.Intent("NativeForgeActivity"));
1474
- }
1475
- }
1476
- window.jsvIsBrowserDebug = false;
1477
- const fe = window.JsvCode.NativePlatformDomBridge, pe = window.JsvCode.NativePlatformMediaBridge;
1478
- function ge() {
1479
- le.EnsureGlobalEnv(fe, pe), ue.DeclareGlobal(), he.I("Using JsView Native Environment.");
1480
- }
1481
- export {
1482
- ge as InitEnv,
1483
- me as NativeForgeApp
1484
- };
1485
- //# sourceMappingURL=http://localhost:57245/map/jsview-dom-native.min.0039079f.js.map
1486
-
1487
- /*jsvmd5:1023b439dda2323f660877bc7a5f3ce7*/