sequenceserver 2.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (667) hide show
  1. checksums.yaml +4 -4
  2. data/lib/sequenceserver/api_errors.rb +24 -2
  3. data/lib/sequenceserver/blast/job.rb +41 -7
  4. data/lib/sequenceserver/blast/report.rb +36 -30
  5. data/lib/sequenceserver/config.rb +49 -27
  6. data/lib/sequenceserver/job.rb +13 -3
  7. data/lib/sequenceserver/job_remover.rb +25 -29
  8. data/lib/sequenceserver/refinements.rb +15 -0
  9. data/lib/sequenceserver/routes.rb +69 -7
  10. data/lib/sequenceserver/sequence.rb +8 -7
  11. data/lib/sequenceserver/sys.rb +2 -2
  12. data/lib/sequenceserver/version.rb +1 -1
  13. data/lib/sequenceserver/zip_file_generator.rb +56 -0
  14. data/lib/sequenceserver.rb +1 -0
  15. data/public/config.js +149 -143
  16. data/public/css/sequenceserver.css +44 -3
  17. data/public/css/sequenceserver.min.css +3 -3
  18. data/public/js/alignment_exporter.js +16 -8
  19. data/public/js/circos.js +370 -234
  20. data/public/js/cloud_share_modal.js +216 -0
  21. data/public/js/databases.js +144 -0
  22. data/public/js/databases_tree.js +42 -113
  23. data/public/js/dnd.js +164 -0
  24. data/public/js/error_modal.js +4 -11
  25. data/public/js/exporter.js +7 -3
  26. data/public/js/form.js +260 -0
  27. data/public/js/grapher.js +113 -106
  28. data/public/js/hit.js +80 -67
  29. data/public/js/hits_overview.js +2 -2
  30. data/public/js/hsp.js +343 -288
  31. data/public/js/jquery_world.js +4 -4
  32. data/public/js/mailto.js +36 -0
  33. data/public/js/options.js +84 -0
  34. data/public/js/query.js +319 -59
  35. data/public/js/report.js +315 -269
  36. data/public/js/report_root.js +75 -0
  37. data/public/js/search.js +28 -1011
  38. data/public/js/search_button.js +195 -0
  39. data/public/js/sequence.js +2409 -2411
  40. data/public/js/sequence_modal.js +152 -159
  41. data/public/js/share_url.js +23 -0
  42. data/public/js/sidebar.js +262 -83
  43. data/public/js/tests/database.spec.js +60 -0
  44. data/public/js/tests/mock_data/databases.json +91 -0
  45. data/public/js/tests/mock_data/long_response.json +269 -0
  46. data/public/js/tests/mock_data/short_response.json +2240 -0
  47. data/public/js/tests/report.spec.js +99 -0
  48. data/public/js/tests/search_button.spec.js +14 -0
  49. data/public/js/tests/search_query.spec.js +41 -0
  50. data/public/packages/circosJS@1.7.0.js +1640 -0
  51. data/public/packages/jquery-ui@1.11.4.js +16624 -0
  52. data/public/sequenceserver-report.min.js +2425 -19
  53. data/public/sequenceserver-search.min.js +2337 -15
  54. data/public/vendor/github/jspm/nodelibs-assert@0.1.0/index.js +2 -0
  55. data/public/vendor/github/jspm/{nodelibs-buffer@0.1.0 → nodelibs-assert@0.1.0}/package.json +1 -1
  56. data/public/vendor/github/jspm/nodelibs-assert@0.1.0.js +1 -0
  57. data/public/vendor/github/jspm/nodelibs-buffer@0.1.1/package.json +6 -0
  58. data/public/vendor/github/jspm/nodelibs-buffer@0.1.1.js +1 -0
  59. data/public/vendor/github/jspm/{nodelibs-process@0.1.1 → nodelibs-process@0.1.2}/package.json +2 -2
  60. data/public/vendor/github/jspm/nodelibs-process@0.1.2.js +1 -0
  61. data/public/vendor/github/jspm/nodelibs-vm@0.1.0/index.js +2 -0
  62. data/public/vendor/github/jspm/nodelibs-vm@0.1.0/package.json +6 -0
  63. data/public/vendor/github/jspm/nodelibs-vm@0.1.0.js +1 -0
  64. data/public/vendor/npm/assert@1.5.0/CHANGELOG.md +8 -0
  65. data/public/vendor/npm/assert@1.5.0/README.md +105 -0
  66. data/public/vendor/npm/assert@1.5.0/assert.js +327 -0
  67. data/public/vendor/npm/assert@1.5.0/package.json +32 -0
  68. data/public/vendor/npm/assert@1.5.0/test.js +288 -0
  69. data/public/vendor/npm/assert@1.5.0.js +1 -0
  70. data/public/vendor/npm/{base64-js@0.0.8/LICENSE.MIT → base64-js@1.5.1/LICENSE} +1 -1
  71. data/public/vendor/npm/{base64-js@0.0.8 → base64-js@1.5.1}/README.md +10 -7
  72. data/public/vendor/npm/base64-js@1.5.1/base64js.min.js +3 -0
  73. data/public/vendor/npm/base64-js@1.5.1/index.d.ts +3 -0
  74. data/public/vendor/npm/base64-js@1.5.1/index.js +151 -0
  75. data/public/vendor/npm/base64-js@1.5.1/package.json +47 -0
  76. data/public/vendor/npm/base64-js@1.5.1.js +1 -0
  77. data/public/vendor/npm/buffer@5.7.1/AUTHORS.md +70 -0
  78. data/public/vendor/npm/{buffer@3.4.3 → buffer@5.7.1}/README.md +111 -41
  79. data/public/vendor/npm/buffer@5.7.1/index.d.ts +186 -0
  80. data/public/vendor/npm/buffer@5.7.1/index.js +1817 -0
  81. data/public/vendor/npm/buffer@5.7.1/package.json +96 -0
  82. data/public/vendor/npm/buffer@5.7.1.js +1 -0
  83. data/public/vendor/npm/core-util-is@1.0.3/LICENSE +19 -0
  84. data/public/vendor/npm/core-util-is@1.0.3/lib/util.js +64 -0
  85. data/public/vendor/npm/{core-util-is@1.0.1 → core-util-is@1.0.3}/package.json +13 -1
  86. data/public/vendor/npm/core-util-is@1.0.3.js +1 -0
  87. data/public/vendor/npm/events@1.0.2/tests/add-listeners.js +2 -2
  88. data/public/vendor/npm/events@1.0.2/tests/check-listener-leaks.js +3 -3
  89. data/public/vendor/npm/events@1.0.2/tests/common.js +1 -1
  90. data/public/vendor/npm/events@1.0.2/tests/index.js +13 -13
  91. data/public/vendor/npm/events@1.0.2/tests/listeners-side-effects.js +2 -2
  92. data/public/vendor/npm/events@1.0.2/tests/listeners.js +2 -2
  93. data/public/vendor/npm/events@1.0.2/tests/max-listeners.js +2 -2
  94. data/public/vendor/npm/events@1.0.2/tests/modify-in-emit.js +2 -2
  95. data/public/vendor/npm/events@1.0.2/tests/num-args.js +2 -2
  96. data/public/vendor/npm/events@1.0.2/tests/once.js +2 -2
  97. data/public/vendor/npm/events@1.0.2/tests/remove-all-listeners.js +3 -3
  98. data/public/vendor/npm/events@1.0.2/tests/remove-listeners.js +3 -3
  99. data/public/vendor/npm/events@1.0.2/tests/set-max-listeners-side-effects.js +2 -2
  100. data/public/vendor/npm/events@1.0.2/tests/subclass.js +3 -3
  101. data/public/vendor/npm/events@1.0.2.js +1 -1
  102. data/public/vendor/npm/ieee754@1.2.1/LICENSE +11 -0
  103. data/public/vendor/npm/{ieee754@1.1.6 → ieee754@1.2.1}/README.md +12 -8
  104. data/public/vendor/npm/ieee754@1.2.1/index.d.ts +10 -0
  105. data/public/vendor/npm/{ieee754@1.1.6 → ieee754@1.2.1}/index.js +6 -6
  106. data/public/vendor/npm/ieee754@1.2.1/package.json +52 -0
  107. data/public/vendor/npm/ieee754@1.2.1.js +1 -0
  108. data/public/vendor/npm/{is-array@1.0.1 → indexof@0.0.1}/Makefile +3 -3
  109. data/public/vendor/npm/indexof@0.0.1/Readme.md +15 -0
  110. data/public/vendor/npm/indexof@0.0.1/component.json +10 -0
  111. data/public/vendor/npm/indexof@0.0.1/index.js +11 -0
  112. data/public/vendor/npm/indexof@0.0.1/package.json +12 -0
  113. data/public/vendor/npm/indexof@0.0.1.js +1 -0
  114. data/public/vendor/npm/inherits@2.0.1/inherits.js +1 -1
  115. data/public/vendor/npm/inherits@2.0.1.js +1 -1
  116. data/public/vendor/npm/isarray@0.0.1.js +1 -1
  117. data/public/vendor/npm/js-tokens@4.0.0/index.js +23 -0
  118. data/public/vendor/npm/js-tokens@4.0.0/package.json +30 -0
  119. data/public/vendor/npm/js-tokens@4.0.0.js +1 -0
  120. data/public/vendor/npm/loose-envify@1.4.0/LICENSE +21 -0
  121. data/public/vendor/npm/loose-envify@1.4.0/README.md +45 -0
  122. data/public/vendor/npm/loose-envify@1.4.0/cli.js +12 -0
  123. data/public/vendor/npm/loose-envify@1.4.0/custom.js +3 -0
  124. data/public/vendor/npm/loose-envify@1.4.0/index.js +5 -0
  125. data/public/vendor/npm/loose-envify@1.4.0/loose-envify.js +33 -0
  126. data/public/vendor/npm/loose-envify@1.4.0/package.json +36 -0
  127. data/public/vendor/npm/loose-envify@1.4.0/replace.js +52 -0
  128. data/public/vendor/npm/loose-envify@1.4.0.js +1 -0
  129. data/public/vendor/npm/object-assign@4.1.1/index.js +90 -0
  130. data/public/vendor/npm/object-assign@4.1.1/package.json +42 -0
  131. data/public/vendor/npm/object-assign@4.1.1.js +1 -0
  132. data/public/vendor/npm/path-browserify@0.0.0/index.js +1 -1
  133. data/public/vendor/npm/path-browserify@0.0.0.js +1 -1
  134. data/public/vendor/npm/{process@0.10.1 → process@0.11.10}/README.md +4 -1
  135. data/public/vendor/npm/process@0.11.10/browser.js +184 -0
  136. data/public/vendor/npm/{process@0.10.1 → process@0.11.10}/package.json +10 -1
  137. data/public/vendor/npm/process@0.11.10/test.js +185 -0
  138. data/public/vendor/npm/process@0.11.10.js +1 -0
  139. data/public/vendor/npm/react-dom@18.0.0/LICENSE +21 -0
  140. data/public/vendor/npm/react-dom@18.0.0/README.md +50 -0
  141. data/public/vendor/npm/react-dom@18.0.0/cjs/react-dom-server-legacy.browser.development.js +4771 -0
  142. data/public/vendor/npm/react-dom@18.0.0/cjs/react-dom-server-legacy.browser.production.min.js +85 -0
  143. data/public/vendor/npm/react-dom@18.0.0/cjs/react-dom-server-legacy.node.development.js +4813 -0
  144. data/public/vendor/npm/react-dom@18.0.0/cjs/react-dom-server-legacy.node.production.min.js +1705 -0
  145. data/public/vendor/npm/react-dom@18.0.0/cjs/react-dom-server.browser.development.js +4746 -0
  146. data/public/vendor/npm/react-dom@18.0.0/cjs/react-dom-server.browser.production.min.js +90 -0
  147. data/public/vendor/npm/react-dom@18.0.0/cjs/react-dom-server.node.development.js +4714 -0
  148. data/public/vendor/npm/react-dom@18.0.0/cjs/react-dom-server.node.production.min.js +1746 -0
  149. data/public/vendor/npm/react-dom@18.0.0/cjs/react-dom-test-utils.development.js +1017 -0
  150. data/public/vendor/npm/react-dom@18.0.0/cjs/react-dom-test-utils.production.min.js +617 -0
  151. data/public/vendor/npm/react-dom@18.0.0/cjs/react-dom.development.js +20092 -0
  152. data/public/vendor/npm/react-dom@18.0.0/cjs/react-dom.production.min.js +322 -0
  153. data/public/vendor/npm/react-dom@18.0.0/cjs/react-dom.profiling.min.js +364 -0
  154. data/public/vendor/npm/react-dom@18.0.0/client.js +27 -0
  155. data/public/vendor/npm/react-dom@18.0.0/index.js +23 -0
  156. data/public/vendor/npm/react-dom@18.0.0/package.json +62 -0
  157. data/public/vendor/npm/react-dom@18.0.0/profiling.js +23 -0
  158. data/public/vendor/npm/react-dom@18.0.0/server.browser.js +19 -0
  159. data/public/vendor/npm/react-dom@18.0.0/server.js +3 -0
  160. data/public/vendor/npm/react-dom@18.0.0/server.node.js +19 -0
  161. data/public/vendor/npm/react-dom@18.0.0/test-utils.js +9 -0
  162. data/public/vendor/npm/react-dom@18.0.0/umd/react-dom-server-legacy.browser.development.js +4770 -0
  163. data/public/vendor/npm/react-dom@18.0.0/umd/react-dom-server-legacy.browser.production.min.js +72 -0
  164. data/public/vendor/npm/react-dom@18.0.0/umd/react-dom-server.browser.development.js +4745 -0
  165. data/public/vendor/npm/react-dom@18.0.0/umd/react-dom-server.browser.production.min.js +74 -0
  166. data/public/vendor/npm/react-dom@18.0.0/umd/react-dom-test-utils.development.js +1013 -0
  167. data/public/vendor/npm/react-dom@18.0.0/umd/react-dom-test-utils.production.min.js +625 -0
  168. data/public/vendor/npm/react-dom@18.0.0/umd/react-dom.development.js +20106 -0
  169. data/public/vendor/npm/react-dom@18.0.0/umd/react-dom.production.min.js +269 -0
  170. data/public/vendor/npm/react-dom@18.0.0/umd/react-dom.profiling.min.js +285 -0
  171. data/public/vendor/npm/react-dom@18.0.0.js +1 -0
  172. data/public/vendor/npm/react@18.0.0/LICENSE +21 -0
  173. data/public/vendor/npm/react@18.0.0/README.md +13 -0
  174. data/public/vendor/npm/react@18.0.0/cjs/react-jsx-dev-runtime.development.js +837 -0
  175. data/public/vendor/npm/react@18.0.0/cjs/react-jsx-dev-runtime.production.min.js +10 -0
  176. data/public/vendor/npm/react@18.0.0/cjs/react-jsx-dev-runtime.profiling.min.js +10 -0
  177. data/public/vendor/npm/react@18.0.0/cjs/react-jsx-runtime.development.js +849 -0
  178. data/public/vendor/npm/react@18.0.0/cjs/react-jsx-runtime.production.min.js +38 -0
  179. data/public/vendor/npm/react@18.0.0/cjs/react-jsx-runtime.profiling.min.js +38 -0
  180. data/public/vendor/npm/react@18.0.0/cjs/react.development.js +1746 -0
  181. data/public/vendor/npm/react@18.0.0/cjs/react.production.min.js +26 -0
  182. data/public/vendor/npm/react@18.0.0/cjs/react.shared-subset.development.js +10 -0
  183. data/public/vendor/npm/react@18.0.0/cjs/react.shared-subset.production.min.js +12 -0
  184. data/public/vendor/npm/react@18.0.0/index.js +9 -0
  185. data/public/vendor/npm/react@18.0.0/jsx-dev-runtime.js +9 -0
  186. data/public/vendor/npm/react@18.0.0/jsx-runtime.js +9 -0
  187. data/public/vendor/npm/react@18.0.0/package.json +47 -0
  188. data/public/vendor/npm/react@18.0.0/react.shared-subset.js +9 -0
  189. data/public/vendor/npm/react@18.0.0/umd/react.development.js +2186 -0
  190. data/public/vendor/npm/react@18.0.0/umd/react.production.min.js +33 -0
  191. data/public/vendor/npm/react@18.0.0/umd/react.profiling.min.js +33 -0
  192. data/public/vendor/npm/react@18.0.0.js +1 -0
  193. data/public/vendor/npm/readable-stream@1.1.14/LICENSE +18 -0
  194. data/public/vendor/npm/readable-stream@1.1.14/duplex.js +2 -0
  195. data/public/vendor/npm/{readable-stream@1.1.13 → readable-stream@1.1.14}/lib/_stream_duplex.js +5 -5
  196. data/public/vendor/npm/{readable-stream@1.1.13 → readable-stream@1.1.14}/lib/_stream_passthrough.js +3 -3
  197. data/public/vendor/npm/{readable-stream@1.1.13 → readable-stream@1.1.14}/lib/_stream_readable.js +10 -10
  198. data/public/vendor/npm/{readable-stream@1.1.13 → readable-stream@1.1.14}/lib/_stream_transform.js +4 -4
  199. data/public/vendor/npm/{readable-stream@1.1.13 → readable-stream@1.1.14}/lib/_stream_writable.js +6 -6
  200. data/public/vendor/npm/{readable-stream@1.1.13 → readable-stream@1.1.14}/package.json +1 -1
  201. data/public/vendor/npm/readable-stream@1.1.14/passthrough.js +2 -0
  202. data/public/vendor/npm/readable-stream@1.1.14/readable.js +13 -0
  203. data/public/vendor/npm/readable-stream@1.1.14/transform.js +2 -0
  204. data/public/vendor/npm/readable-stream@1.1.14/writable.js +2 -0
  205. data/public/vendor/npm/readable-stream@1.1.14.js +1 -0
  206. data/public/vendor/npm/scheduler@0.21.0/LICENSE +21 -0
  207. data/public/vendor/npm/scheduler@0.21.0/README.md +9 -0
  208. data/public/vendor/npm/scheduler@0.21.0/cjs/scheduler-unstable_mock.development.js +530 -0
  209. data/public/vendor/npm/scheduler@0.21.0/cjs/scheduler-unstable_mock.production.min.js +20 -0
  210. data/public/vendor/npm/scheduler@0.21.0/cjs/scheduler-unstable_post_task.development.js +153 -0
  211. data/public/vendor/npm/scheduler@0.21.0/cjs/scheduler-unstable_post_task.production.min.js +14 -0
  212. data/public/vendor/npm/scheduler@0.21.0/cjs/scheduler.development.js +444 -0
  213. data/public/vendor/npm/scheduler@0.21.0/cjs/scheduler.production.min.js +19 -0
  214. data/public/vendor/npm/scheduler@0.21.0/index.js +9 -0
  215. data/public/vendor/npm/scheduler@0.21.0/package.json +36 -0
  216. data/public/vendor/npm/scheduler@0.21.0/umd/scheduler-unstable_mock.development.js +701 -0
  217. data/public/vendor/npm/scheduler@0.21.0/umd/scheduler-unstable_mock.production.min.js +21 -0
  218. data/public/vendor/npm/scheduler@0.21.0/umd/scheduler.development.js +154 -0
  219. data/public/vendor/npm/scheduler@0.21.0/umd/scheduler.production.min.js +148 -0
  220. data/public/vendor/npm/scheduler@0.21.0/umd/scheduler.profiling.min.js +148 -0
  221. data/public/vendor/npm/scheduler@0.21.0/unstable_mock.js +9 -0
  222. data/public/vendor/npm/scheduler@0.21.0/unstable_post_task.js +9 -0
  223. data/public/vendor/npm/scheduler@0.21.0.js +1 -0
  224. data/public/vendor/npm/stream-browserify@1.0.0/index.js +7 -7
  225. data/public/vendor/npm/stream-browserify@1.0.0/test/buf.js +5 -5
  226. data/public/vendor/npm/stream-browserify@1.0.0.js +1 -1
  227. data/public/vendor/npm/string_decoder@0.10.31/index.js +2 -2
  228. data/public/vendor/npm/string_decoder@0.10.31.js +1 -1
  229. data/public/vendor/npm/util@0.10.3/support/isBuffer.js +1 -1
  230. data/public/vendor/npm/util@0.10.3/test/browser/inspect.js +2 -2
  231. data/public/vendor/npm/util@0.10.3/test/browser/is.js +3 -3
  232. data/public/vendor/npm/util@0.10.3/test/node/debug.js +4 -4
  233. data/public/vendor/npm/util@0.10.3/test/node/format.js +2 -2
  234. data/public/vendor/npm/util@0.10.3/test/node/inspect.js +3 -3
  235. data/public/vendor/npm/util@0.10.3/test/node/log.js +3 -3
  236. data/public/vendor/npm/util@0.10.3/test/node/util.js +3 -3
  237. data/public/vendor/npm/util@0.10.3/util.js +3 -3
  238. data/public/vendor/npm/util@0.10.3.js +1 -1
  239. data/public/vendor/npm/vm-browserify@0.0.4/LICENSE +18 -0
  240. data/public/vendor/npm/vm-browserify@0.0.4/example/run/bundle.js +376 -0
  241. data/public/vendor/npm/vm-browserify@0.0.4/example/run/entry.js +6 -0
  242. data/public/vendor/npm/vm-browserify@0.0.4/example/run/index.html +9 -0
  243. data/public/vendor/npm/vm-browserify@0.0.4/example/run/server.js +6 -0
  244. data/public/vendor/npm/vm-browserify@0.0.4/index.js +139 -0
  245. data/public/vendor/npm/vm-browserify@0.0.4/package.json +46 -0
  246. data/public/vendor/npm/vm-browserify@0.0.4/readme.markdown +67 -0
  247. data/public/vendor/npm/vm-browserify@0.0.4/test/vm.js +34 -0
  248. data/public/vendor/npm/vm-browserify@0.0.4.js +1 -0
  249. data/public/vendor/npm/webshim@1.15.8/Gruntfile.js +4 -4
  250. data/public/vendor/npm/webshim@1.15.8/build/combobuild.js +2 -2
  251. data/public/vendor/npm/webshim@1.15.8/js-webshim/dev/shims/color-picker.js +1 -1
  252. data/public/vendor/npm/webshim@1.15.8/js-webshim/dev/shims/combos/10.js +1 -1
  253. data/public/vendor/npm/webshim@1.15.8/js-webshim/dev/shims/combos/11.js +1 -1
  254. data/public/vendor/npm/webshim@1.15.8/js-webshim/dev/shims/combos/17.js +1 -1
  255. data/public/vendor/npm/webshim@1.15.8/js-webshim/dev/shims/combos/5.js +1 -1
  256. data/public/vendor/npm/webshim@1.15.8/js-webshim/dev/shims/combos/6.js +1 -1
  257. data/public/vendor/npm/webshim@1.15.8/js-webshim/dev/shims/combos/9.js +1 -1
  258. data/public/vendor/npm/webshim@1.15.8/js-webshim/dev/shims/es6.js +1 -1
  259. data/public/vendor/npm/webshim@1.15.8/js-webshim/dev/shims/excanvas.js +1 -1
  260. data/public/vendor/npm/webshim@1.15.8/js-webshim/dev/shims/form-number-date-ui.js +1 -1
  261. data/public/vendor/npm/webshim@1.15.8/js-webshim/dev/shims/moxie/js/moxie-html4.js +1 -1
  262. data/public/vendor/npm/webshim@1.15.8/js-webshim/dev/shims/moxie/js/moxie-swf.js +1 -1
  263. data/public/vendor/npm/webshim@1.15.8/js-webshim/dev/shims/sizzle.js +1 -1
  264. data/public/vendor/npm/webshim@1.15.8/js-webshim/minified/shims/es6.js +1 -1
  265. data/public/vendor/npm/webshim@1.15.8/src/shims/color-picker.js +1 -1
  266. data/public/vendor/npm/webshim@1.15.8/src/shims/combos/10.js +1 -1
  267. data/public/vendor/npm/webshim@1.15.8/src/shims/combos/11.js +1 -1
  268. data/public/vendor/npm/webshim@1.15.8/src/shims/combos/17.js +1 -1
  269. data/public/vendor/npm/webshim@1.15.8/src/shims/combos/5.js +1 -1
  270. data/public/vendor/npm/webshim@1.15.8/src/shims/combos/6.js +1 -1
  271. data/public/vendor/npm/webshim@1.15.8/src/shims/combos/9.js +1 -1
  272. data/public/vendor/npm/webshim@1.15.8/src/shims/es6.js +1 -1
  273. data/public/vendor/npm/webshim@1.15.8/src/shims/excanvas.js +1 -1
  274. data/public/vendor/npm/webshim@1.15.8/src/shims/form-number-date-ui.js +1 -1
  275. data/public/vendor/npm/webshim@1.15.8/src/shims/moxie/js/moxie-html4.js +1 -1
  276. data/public/vendor/npm/webshim@1.15.8/src/shims/moxie/js/moxie-swf.js +1 -1
  277. data/public/vendor/npm/webshim@1.15.8/src/shims/sizzle.js +1 -1
  278. data/public/vendor/npm/webshim@1.15.8/tests/dist/jquery.js +1 -1
  279. data/public/vendor/npm/webshim@1.15.8/tests/jquery/unit/core.js +1 -1
  280. data/public/vendor/npm/webshim@1.15.8/tests/jquery/unit/event.js +1388 -711
  281. data/public/vendor/npm/webshim@1.15.8/tests/qunit/qunit.js +1 -1
  282. data/public/vendor/npm/webshim@1.15.8/tests/test-ext/jquery-1-custom.js +1 -1
  283. data/public/vendor/npm/webshim@1.15.8/tests/test-ext/jquery-2-custom.js +1 -1
  284. data/public/vendor/npm/webshim@1.15.8/tests/test-ext/punycode.js +1 -1
  285. data/public/vendor/system-polyfills.js +865 -1
  286. data/views/blastn_options.erb +291 -0
  287. data/views/blastp_options.erb +288 -0
  288. data/views/blastx_options.erb +318 -0
  289. data/views/error.erb +12 -0
  290. data/views/layout.erb +2 -30
  291. data/views/report.erb +0 -8
  292. data/views/search.erb +16 -9
  293. data/views/tblastn_options.erb +266 -0
  294. data/views/tblastx_options.erb +291 -0
  295. metadata +318 -439
  296. data/public/vendor/github/jspm/nodelibs-buffer@0.1.0.js +0 -1
  297. data/public/vendor/github/jspm/nodelibs-module@0.1.0/index.js +0 -1
  298. data/public/vendor/github/jspm/nodelibs-module@0.1.0.js +0 -1
  299. data/public/vendor/github/jspm/nodelibs-process@0.1.1.js +0 -1
  300. data/public/vendor/npm/amdefine@1.0.0/LICENSE +0 -58
  301. data/public/vendor/npm/amdefine@1.0.0/README.md +0 -171
  302. data/public/vendor/npm/amdefine@1.0.0/amdefine.js +0 -200
  303. data/public/vendor/npm/amdefine@1.0.0/intercept.js +0 -24
  304. data/public/vendor/npm/amdefine@1.0.0/package.json +0 -16
  305. data/public/vendor/npm/amdefine@1.0.0.js +0 -1
  306. data/public/vendor/npm/base62@0.1.1/LICENSE +0 -20
  307. data/public/vendor/npm/base62@0.1.1/Readme.md +0 -30
  308. data/public/vendor/npm/base62@0.1.1/base62.js +0 -28
  309. data/public/vendor/npm/base62@0.1.1/package.json +0 -21
  310. data/public/vendor/npm/base62@0.1.1/test/test.js +0 -13
  311. data/public/vendor/npm/base62@0.1.1.js +0 -1
  312. data/public/vendor/npm/base64-js@0.0.8/lib/b64.js +0 -125
  313. data/public/vendor/npm/base64-js@0.0.8/package.json +0 -34
  314. data/public/vendor/npm/base64-js@0.0.8/test/convert.js +0 -39
  315. data/public/vendor/npm/base64-js@0.0.8/test/url-safe.js +0 -15
  316. data/public/vendor/npm/base64-js@0.0.8.js +0 -1
  317. data/public/vendor/npm/buffer@3.4.3/index.js +0 -1533
  318. data/public/vendor/npm/buffer@3.4.3/package.json +0 -67
  319. data/public/vendor/npm/buffer@3.4.3/test/_polyfill.js +0 -152
  320. data/public/vendor/npm/buffer@3.4.3/test/base64.js +0 -33
  321. data/public/vendor/npm/buffer@3.4.3/test/basic.js +0 -58
  322. data/public/vendor/npm/buffer@3.4.3/test/compare.js +0 -53
  323. data/public/vendor/npm/buffer@3.4.3/test/constructor.js +0 -132
  324. data/public/vendor/npm/buffer@3.4.3/test/deprecated.js +0 -21
  325. data/public/vendor/npm/buffer@3.4.3/test/from-string.js +0 -105
  326. data/public/vendor/npm/buffer@3.4.3/test/methods.js +0 -109
  327. data/public/vendor/npm/buffer@3.4.3/test/node/README.txt +0 -1
  328. data/public/vendor/npm/buffer@3.4.3/test/node/test-buffer-ascii.js +0 -20
  329. data/public/vendor/npm/buffer@3.4.3/test/node/test-buffer-bytelength.js +0 -38
  330. data/public/vendor/npm/buffer@3.4.3/test/node/test-buffer-concat.js +0 -26
  331. data/public/vendor/npm/buffer@3.4.3/test/node/test-buffer-indexof.js +0 -78
  332. data/public/vendor/npm/buffer@3.4.3/test/node/test-buffer-inspect.js +0 -31
  333. data/public/vendor/npm/buffer@3.4.3/test/node/test-buffer.js +0 -804
  334. data/public/vendor/npm/buffer@3.4.3/test/node-es6/README.txt +0 -1
  335. data/public/vendor/npm/buffer@3.4.3/test/node-es6/test-buffer-arraybuffer.js +0 -37
  336. data/public/vendor/npm/buffer@3.4.3/test/node-es6/test-buffer-iterator.js +0 -32
  337. data/public/vendor/npm/buffer@3.4.3/test/slice.js +0 -33
  338. data/public/vendor/npm/buffer@3.4.3/test/static.js +0 -32
  339. data/public/vendor/npm/buffer@3.4.3/test/to-string.js +0 -106
  340. data/public/vendor/npm/buffer@3.4.3/test/write.js +0 -90
  341. data/public/vendor/npm/buffer@3.4.3.js +0 -1
  342. data/public/vendor/npm/core-util-is@1.0.1/float.patch +0 -604
  343. data/public/vendor/npm/core-util-is@1.0.1/lib/util.js +0 -66
  344. data/public/vendor/npm/core-util-is@1.0.1/util.js +0 -66
  345. data/public/vendor/npm/core-util-is@1.0.1.js +0 -1
  346. data/public/vendor/npm/envify@3.4.0/README.md +0 -145
  347. data/public/vendor/npm/envify@3.4.0/bin/envify +0 -17
  348. data/public/vendor/npm/envify@3.4.0/custom.js +0 -33
  349. data/public/vendor/npm/envify@3.4.0/index.js +0 -4
  350. data/public/vendor/npm/envify@3.4.0/package.json +0 -35
  351. data/public/vendor/npm/envify@3.4.0/visitors.js +0 -33
  352. data/public/vendor/npm/envify@3.4.0.js +0 -1
  353. data/public/vendor/npm/esprima-fb@13001.1001.0-dev-harmony-fb/bin/esparse.js +0 -90
  354. data/public/vendor/npm/esprima-fb@13001.1001.0-dev-harmony-fb/bin/esvalidate.js +0 -145
  355. data/public/vendor/npm/esprima-fb@13001.1001.0-dev-harmony-fb/esprima.js +0 -6191
  356. data/public/vendor/npm/esprima-fb@13001.1001.0-dev-harmony-fb/package.json +0 -72
  357. data/public/vendor/npm/esprima-fb@13001.1001.0-dev-harmony-fb/test/compat.js +0 -167
  358. data/public/vendor/npm/esprima-fb@13001.1001.0-dev-harmony-fb/test/reflect.js +0 -421
  359. data/public/vendor/npm/esprima-fb@13001.1001.0-dev-harmony-fb/test/run.js +0 -34
  360. data/public/vendor/npm/esprima-fb@13001.1001.0-dev-harmony-fb/test/runner.js +0 -418
  361. data/public/vendor/npm/esprima-fb@13001.1001.0-dev-harmony-fb/test/test.js +0 -34730
  362. data/public/vendor/npm/esprima-fb@13001.1001.0-dev-harmony-fb.js +0 -1
  363. data/public/vendor/npm/ieee754@1.1.6/LICENSE +0 -56
  364. data/public/vendor/npm/ieee754@1.1.6/package.json +0 -34
  365. data/public/vendor/npm/ieee754@1.1.6/test/basic.js +0 -20
  366. data/public/vendor/npm/ieee754@1.1.6.js +0 -1
  367. data/public/vendor/npm/is-array@1.0.1/History.md +0 -11
  368. data/public/vendor/npm/is-array@1.0.1/Readme.md +0 -27
  369. data/public/vendor/npm/is-array@1.0.1/component.json +0 -13
  370. data/public/vendor/npm/is-array@1.0.1/index.js +0 -33
  371. data/public/vendor/npm/is-array@1.0.1/package.json +0 -10
  372. data/public/vendor/npm/is-array@1.0.1/test/test.html +0 -46
  373. data/public/vendor/npm/is-array@1.0.1.js +0 -1
  374. data/public/vendor/npm/jstransform@10.1.0/LICENSE +0 -201
  375. data/public/vendor/npm/jstransform@10.1.0/README.md +0 -98
  376. data/public/vendor/npm/jstransform@10.1.0/jestEnvironment.js +0 -3
  377. data/public/vendor/npm/jstransform@10.1.0/jestPreprocessor.js +0 -8
  378. data/public/vendor/npm/jstransform@10.1.0/package.json +0 -52
  379. data/public/vendor/npm/jstransform@10.1.0/polyfill/Object.es6.js +0 -54
  380. data/public/vendor/npm/jstransform@10.1.0/src/__tests__/jstransform-test.js +0 -246
  381. data/public/vendor/npm/jstransform@10.1.0/src/__tests__/jstransform-utils-test.js +0 -31
  382. data/public/vendor/npm/jstransform@10.1.0/src/docblock.js +0 -86
  383. data/public/vendor/npm/jstransform@10.1.0/src/jstransform.js +0 -180
  384. data/public/vendor/npm/jstransform@10.1.0/src/utils.js +0 -386
  385. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/es6-arrow-function-visitors-test.js +0 -57
  386. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/es6-call-spread-visitors-test.js +0 -46
  387. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/es6-class-visitors-test.js +0 -463
  388. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/es6-destructuring-visitors-test.js +0 -144
  389. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/es6-es7-object-integration-test.js +0 -40
  390. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/es6-object-concise-method-visitors-test.js +0 -47
  391. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/es6-object-short-notation-visitors-test.js +0 -33
  392. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/es6-rest-param-visitors-test.js +0 -119
  393. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/es6-template-visitors-test.js +0 -138
  394. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/es7-rest-property-helpers-test.js +0 -47
  395. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/es7-spread-property-visitors-test.js +0 -90
  396. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/gen/generate-type-syntax-test.js +0 -40
  397. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/gen/type-syntax-test.rec.js +0 -846
  398. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/reserved-words-test.js +0 -40
  399. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/type-alias-syntax-test.js +0 -34
  400. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/type-class-syntax-test.js +0 -105
  401. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/type-function-syntax-test.js +0 -126
  402. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/type-interface-syntax-test.js +0 -29
  403. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/type-object-method-syntax-test.js +0 -65
  404. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/type-pattern-syntax-test.js +0 -45
  405. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/type-syntax-test.js +0 -46
  406. data/public/vendor/npm/jstransform@10.1.0/visitors/__tests__/type-variable-declaration-syntax-test.js +0 -102
  407. data/public/vendor/npm/jstransform@10.1.0/visitors/es6-arrow-function-visitors.js +0 -66
  408. data/public/vendor/npm/jstransform@10.1.0/visitors/es6-call-spread-visitors.js +0 -72
  409. data/public/vendor/npm/jstransform@10.1.0/visitors/es6-class-visitors.js +0 -316
  410. data/public/vendor/npm/jstransform@10.1.0/visitors/es6-destructuring-visitors.js +0 -135
  411. data/public/vendor/npm/jstransform@10.1.0/visitors/es6-object-concise-method-visitors.js +0 -28
  412. data/public/vendor/npm/jstransform@10.1.0/visitors/es6-object-short-notation-visitors.js +0 -12
  413. data/public/vendor/npm/jstransform@10.1.0/visitors/es6-rest-param-visitors.js +0 -45
  414. data/public/vendor/npm/jstransform@10.1.0/visitors/es6-template-visitors.js +0 -90
  415. data/public/vendor/npm/jstransform@10.1.0/visitors/es7-rest-property-helpers.js +0 -80
  416. data/public/vendor/npm/jstransform@10.1.0/visitors/es7-spread-property-visitors.js +0 -56
  417. data/public/vendor/npm/jstransform@10.1.0/visitors/reserved-words-helper.js +0 -74
  418. data/public/vendor/npm/jstransform@10.1.0/visitors/reserved-words-visitors.js +0 -30
  419. data/public/vendor/npm/jstransform@10.1.0/visitors/type-syntax.js +0 -118
  420. data/public/vendor/npm/jstransform@10.1.0.js +0 -1
  421. data/public/vendor/npm/process@0.10.1/browser.js +0 -58
  422. data/public/vendor/npm/process@0.10.1.js +0 -1
  423. data/public/vendor/npm/qs@2.4.1/test/stringify.js +0 -162
  424. data/public/vendor/npm/react@0.13.3/README.md +0 -20
  425. data/public/vendor/npm/react@0.13.3/addons.js +0 -2
  426. data/public/vendor/npm/react@0.13.3/dist/JSXTransformer.js +0 -11346
  427. data/public/vendor/npm/react@0.13.3/dist/react-with-addons.js +0 -10483
  428. data/public/vendor/npm/react@0.13.3/dist/react-with-addons.min.js +0 -7297
  429. data/public/vendor/npm/react@0.13.3/dist/react.js +0 -9468
  430. data/public/vendor/npm/react@0.13.3/dist/react.min.js +0 -6764
  431. data/public/vendor/npm/react@0.13.3/lib/AutoFocusMixin.js +0 -9
  432. data/public/vendor/npm/react@0.13.3/lib/BeforeInputEventPlugin.js +0 -197
  433. data/public/vendor/npm/react@0.13.3/lib/CSSCore.js +0 -39
  434. data/public/vendor/npm/react@0.13.3/lib/CSSProperty.js +0 -123
  435. data/public/vendor/npm/react@0.13.3/lib/CSSPropertyOperations.js +0 -103
  436. data/public/vendor/npm/react@0.13.3/lib/CallbackQueue.js +0 -43
  437. data/public/vendor/npm/react@0.13.3/lib/ChangeEventPlugin.js +0 -174
  438. data/public/vendor/npm/react@0.13.3/lib/ClientReactRootIndex.js +0 -23
  439. data/public/vendor/npm/react@0.13.3/lib/DOMChildrenOperations.js +0 -57
  440. data/public/vendor/npm/react@0.13.3/lib/DOMProperty.js +0 -96
  441. data/public/vendor/npm/react@0.13.3/lib/DOMPropertyOperations.js +0 -99
  442. data/public/vendor/npm/react@0.13.3/lib/Danger.js +0 -67
  443. data/public/vendor/npm/react@0.13.3/lib/DefaultEventPluginOrder.js +0 -5
  444. data/public/vendor/npm/react@0.13.3/lib/EnterLeaveEventPlugin.js +0 -69
  445. data/public/vendor/npm/react@0.13.3/lib/EventConstants.js +0 -55
  446. data/public/vendor/npm/react@0.13.3/lib/EventListener.js +0 -34
  447. data/public/vendor/npm/react@0.13.3/lib/EventPluginHub.js +0 -103
  448. data/public/vendor/npm/react@0.13.3/lib/EventPluginRegistry.js +0 -115
  449. data/public/vendor/npm/react@0.13.3/lib/EventPluginUtils.js +0 -121
  450. data/public/vendor/npm/react@0.13.3/lib/EventPropagators.js +0 -62
  451. data/public/vendor/npm/react@0.13.3/lib/ExecutionEnvironment.js +0 -42
  452. data/public/vendor/npm/react@0.13.3/lib/FallbackCompositionState.js +0 -45
  453. data/public/vendor/npm/react@0.13.3/lib/HTMLDOMPropertyConfig.js +0 -155
  454. data/public/vendor/npm/react@0.13.3/lib/LinkedStateMixin.js +0 -8
  455. data/public/vendor/npm/react@0.13.3/lib/LinkedValueUtils.js +0 -74
  456. data/public/vendor/npm/react@0.13.3/lib/LocalEventTrapMixin.js +0 -26
  457. data/public/vendor/npm/react@0.13.3/lib/MobileSafariClickEventPlugin.js +0 -17
  458. data/public/vendor/npm/react@0.13.3/lib/Object.assign.js +0 -47
  459. data/public/vendor/npm/react@0.13.3/lib/PooledClass.js +0 -75
  460. data/public/vendor/npm/react@0.13.3/lib/React.js +0 -93
  461. data/public/vendor/npm/react@0.13.3/lib/ReactBrowserComponentMixin.js +0 -7
  462. data/public/vendor/npm/react@0.13.3/lib/ReactBrowserEventEmitter.js +0 -136
  463. data/public/vendor/npm/react@0.13.3/lib/ReactCSSTransitionGroup.js +0 -34
  464. data/public/vendor/npm/react@0.13.3/lib/ReactCSSTransitionGroupChild.js +0 -92
  465. data/public/vendor/npm/react@0.13.3/lib/ReactChildReconciler.js +0 -57
  466. data/public/vendor/npm/react@0.13.3/lib/ReactChildren.js +0 -67
  467. data/public/vendor/npm/react@0.13.3/lib/ReactClass.js +0 -338
  468. data/public/vendor/npm/react@0.13.3/lib/ReactComponent.js +0 -50
  469. data/public/vendor/npm/react@0.13.3/lib/ReactComponentBrowserEnvironment.js +0 -14
  470. data/public/vendor/npm/react@0.13.3/lib/ReactComponentEnvironment.js +0 -19
  471. data/public/vendor/npm/react@0.13.3/lib/ReactComponentWithPureRenderMixin.js +0 -7
  472. data/public/vendor/npm/react@0.13.3/lib/ReactCompositeComponent.js +0 -374
  473. data/public/vendor/npm/react@0.13.3/lib/ReactContext.js +0 -27
  474. data/public/vendor/npm/react@0.13.3/lib/ReactCurrentOwner.js +0 -32
  475. data/public/vendor/npm/react@0.13.3/lib/ReactDOM.js +0 -146
  476. data/public/vendor/npm/react@0.13.3/lib/ReactDOMButton.js +0 -35
  477. data/public/vendor/npm/react@0.13.3/lib/ReactDOMComponent.js +0 -267
  478. data/public/vendor/npm/react@0.13.3/lib/ReactDOMForm.js +0 -21
  479. data/public/vendor/npm/react@0.13.3/lib/ReactDOMIDOperations.js +0 -63
  480. data/public/vendor/npm/react@0.13.3/lib/ReactDOMIframe.js +0 -20
  481. data/public/vendor/npm/react@0.13.3/lib/ReactDOMImg.js +0 -21
  482. data/public/vendor/npm/react@0.13.3/lib/ReactDOMInput.js +0 -94
  483. data/public/vendor/npm/react@0.13.3/lib/ReactDOMOption.js +0 -23
  484. data/public/vendor/npm/react@0.13.3/lib/ReactDOMSelect.js +0 -112
  485. data/public/vendor/npm/react@0.13.3/lib/ReactDOMSelection.js +0 -103
  486. data/public/vendor/npm/react@0.13.3/lib/ReactDOMTextComponent.js +0 -38
  487. data/public/vendor/npm/react@0.13.3/lib/ReactDOMTextarea.js +0 -70
  488. data/public/vendor/npm/react@0.13.3/lib/ReactDefaultBatchingStrategy.js +0 -37
  489. data/public/vendor/npm/react@0.13.3/lib/ReactDefaultInjection.js +0 -93
  490. data/public/vendor/npm/react@0.13.3/lib/ReactDefaultPerf.js +0 -183
  491. data/public/vendor/npm/react@0.13.3/lib/ReactDefaultPerfAnalysis.js +0 -145
  492. data/public/vendor/npm/react@0.13.3/lib/ReactElement.js +0 -151
  493. data/public/vendor/npm/react@0.13.3/lib/ReactElementValidator.js +0 -218
  494. data/public/vendor/npm/react@0.13.3/lib/ReactEmptyComponent.js +0 -47
  495. data/public/vendor/npm/react@0.13.3/lib/ReactErrorUtils.js +0 -30
  496. data/public/vendor/npm/react@0.13.3/lib/ReactEventEmitterMixin.js +0 -12
  497. data/public/vendor/npm/react@0.13.3/lib/ReactEventListener.js +0 -93
  498. data/public/vendor/npm/react@0.13.3/lib/ReactFragment.js +0 -110
  499. data/public/vendor/npm/react@0.13.3/lib/ReactInjection.js +0 -27
  500. data/public/vendor/npm/react@0.13.3/lib/ReactInputSelection.js +0 -75
  501. data/public/vendor/npm/react@0.13.3/lib/ReactInstanceHandles.js +0 -113
  502. data/public/vendor/npm/react@0.13.3/lib/ReactInstanceMap.js +0 -47
  503. data/public/vendor/npm/react@0.13.3/lib/ReactLifeCycle.js +0 -9
  504. data/public/vendor/npm/react@0.13.3/lib/ReactLink.js +0 -16
  505. data/public/vendor/npm/react@0.13.3/lib/ReactMarkupChecksum.js +0 -17
  506. data/public/vendor/npm/react@0.13.3/lib/ReactMount.js +0 -347
  507. data/public/vendor/npm/react@0.13.3/lib/ReactMultiChild.js +0 -190
  508. data/public/vendor/npm/react@0.13.3/lib/ReactMultiChildUpdateTypes.js +0 -10
  509. data/public/vendor/npm/react@0.13.3/lib/ReactNativeComponent.js +0 -53
  510. data/public/vendor/npm/react@0.13.3/lib/ReactOwner.js +0 -21
  511. data/public/vendor/npm/react@0.13.3/lib/ReactPerf.js +0 -42
  512. data/public/vendor/npm/react@0.13.3/lib/ReactPropTransferer.js +0 -40
  513. data/public/vendor/npm/react@0.13.3/lib/ReactPropTypeLocationNames.js +0 -13
  514. data/public/vendor/npm/react@0.13.3/lib/ReactPropTypeLocations.js +0 -9
  515. data/public/vendor/npm/react@0.13.3/lib/ReactPropTypes.js +0 -225
  516. data/public/vendor/npm/react@0.13.3/lib/ReactPutListenerQueue.js +0 -31
  517. data/public/vendor/npm/react@0.13.3/lib/ReactReconcileTransaction.js +0 -66
  518. data/public/vendor/npm/react@0.13.3/lib/ReactReconciler.js +0 -44
  519. data/public/vendor/npm/react@0.13.3/lib/ReactRef.js +0 -36
  520. data/public/vendor/npm/react@0.13.3/lib/ReactRootIndex.js +0 -29
  521. data/public/vendor/npm/react@0.13.3/lib/ReactServerRendering.js +0 -44
  522. data/public/vendor/npm/react@0.13.3/lib/ReactServerRenderingTransaction.js +0 -47
  523. data/public/vendor/npm/react@0.13.3/lib/ReactStateSetters.js +0 -104
  524. data/public/vendor/npm/react@0.13.3/lib/ReactTestUtils.js +0 -249
  525. data/public/vendor/npm/react@0.13.3/lib/ReactTransitionChildMapping.js +0 -53
  526. data/public/vendor/npm/react@0.13.3/lib/ReactTransitionEvents.js +0 -68
  527. data/public/vendor/npm/react@0.13.3/lib/ReactTransitionGroup.js +0 -140
  528. data/public/vendor/npm/react@0.13.3/lib/ReactUpdateQueue.js +0 -107
  529. data/public/vendor/npm/react@0.13.3/lib/ReactUpdates.js +0 -139
  530. data/public/vendor/npm/react@0.13.3/lib/ReactWithAddons.js +0 -30
  531. data/public/vendor/npm/react@0.13.3/lib/SVGDOMPropertyConfig.js +0 -76
  532. data/public/vendor/npm/react@0.13.3/lib/SelectEventPlugin.js +0 -91
  533. data/public/vendor/npm/react@0.13.3/lib/ServerReactRootIndex.js +0 -29
  534. data/public/vendor/npm/react@0.13.3/lib/SimpleEventPlugin.js +0 -287
  535. data/public/vendor/npm/react@0.13.3/lib/SyntheticClipboardEvent.js +0 -11
  536. data/public/vendor/npm/react@0.13.3/lib/SyntheticCompositionEvent.js +0 -9
  537. data/public/vendor/npm/react@0.13.3/lib/SyntheticDragEvent.js +0 -9
  538. data/public/vendor/npm/react@0.13.3/lib/SyntheticEvent.js +0 -90
  539. data/public/vendor/npm/react@0.13.3/lib/SyntheticFocusEvent.js +0 -9
  540. data/public/vendor/npm/react@0.13.3/lib/SyntheticInputEvent.js +0 -9
  541. data/public/vendor/npm/react@0.13.3/lib/SyntheticKeyboardEvent.js +0 -43
  542. data/public/vendor/npm/react@0.13.3/lib/SyntheticMouseEvent.js +0 -38
  543. data/public/vendor/npm/react@0.13.3/lib/SyntheticTouchEvent.js +0 -19
  544. data/public/vendor/npm/react@0.13.3/lib/SyntheticUIEvent.js +0 -29
  545. data/public/vendor/npm/react@0.13.3/lib/SyntheticWheelEvent.js +0 -18
  546. data/public/vendor/npm/react@0.13.3/lib/Transaction.js +0 -90
  547. data/public/vendor/npm/react@0.13.3/lib/ViewportMetrics.js +0 -27
  548. data/public/vendor/npm/react@0.13.3/lib/accumulateInto.js +0 -26
  549. data/public/vendor/npm/react@0.13.3/lib/adler32.js +0 -32
  550. data/public/vendor/npm/react@0.13.3/lib/camelize.js +0 -30
  551. data/public/vendor/npm/react@0.13.3/lib/camelizeStyleName.js +0 -8
  552. data/public/vendor/npm/react@0.13.3/lib/cloneWithProps.js +0 -20
  553. data/public/vendor/npm/react@0.13.3/lib/containsNode.js +0 -20
  554. data/public/vendor/npm/react@0.13.3/lib/createArrayFromMixed.js +0 -15
  555. data/public/vendor/npm/react@0.13.3/lib/createFullPageComponent.js +0 -22
  556. data/public/vendor/npm/react@0.13.3/lib/createNodesFromMarkup.js +0 -39
  557. data/public/vendor/npm/react@0.13.3/lib/cx.js +0 -20
  558. data/public/vendor/npm/react@0.13.3/lib/dangerousStyleValue.js +0 -19
  559. data/public/vendor/npm/react@0.13.3/lib/emptyFunction.js +0 -32
  560. data/public/vendor/npm/react@0.13.3/lib/emptyObject.js +0 -9
  561. data/public/vendor/npm/react@0.13.3/lib/escapeTextContentForBrowser.js +0 -38
  562. data/public/vendor/npm/react@0.13.3/lib/findDOMNode.js +0 -31
  563. data/public/vendor/npm/react@0.13.3/lib/flattenChildren.js +0 -25
  564. data/public/vendor/npm/react@0.13.3/lib/focusNode.js +0 -27
  565. data/public/vendor/npm/react@0.13.3/lib/forEachAccumulated.js +0 -29
  566. data/public/vendor/npm/react@0.13.3/lib/getActiveElement.js +0 -27
  567. data/public/vendor/npm/react@0.13.3/lib/getEventCharCode.js +0 -50
  568. data/public/vendor/npm/react@0.13.3/lib/getEventKey.js +0 -72
  569. data/public/vendor/npm/react@0.13.3/lib/getEventModifierState.js +0 -45
  570. data/public/vendor/npm/react@0.13.3/lib/getEventTarget.js +0 -29
  571. data/public/vendor/npm/react@0.13.3/lib/getIteratorFn.js +0 -42
  572. data/public/vendor/npm/react@0.13.3/lib/getMarkupWrap.js +0 -73
  573. data/public/vendor/npm/react@0.13.3/lib/getNodeForCharacterOffset.js +0 -73
  574. data/public/vendor/npm/react@0.13.3/lib/getReactRootElementInContainer.js +0 -33
  575. data/public/vendor/npm/react@0.13.3/lib/getTextContentAccessor.js +0 -11
  576. data/public/vendor/npm/react@0.13.3/lib/getUnboundedScrollPosition.js +0 -38
  577. data/public/vendor/npm/react@0.13.3/lib/hyphenate.js +0 -31
  578. data/public/vendor/npm/react@0.13.3/lib/hyphenateStyleName.js +0 -8
  579. data/public/vendor/npm/react@0.13.3/lib/instantiateReactComponent.js +0 -55
  580. data/public/vendor/npm/react@0.13.3/lib/invariant.js +0 -26
  581. data/public/vendor/npm/react@0.13.3/lib/isEventSupported.js +0 -24
  582. data/public/vendor/npm/react@0.13.3/lib/isNode.js +0 -25
  583. data/public/vendor/npm/react@0.13.3/lib/isTextInputElement.js +0 -41
  584. data/public/vendor/npm/react@0.13.3/lib/isTextNode.js +0 -6
  585. data/public/vendor/npm/react@0.13.3/lib/joinClasses.js +0 -39
  586. data/public/vendor/npm/react@0.13.3/lib/keyMirror.js +0 -18
  587. data/public/vendor/npm/react@0.13.3/lib/keyOf.js +0 -34
  588. data/public/vendor/npm/react@0.13.3/lib/mapObject.js +0 -51
  589. data/public/vendor/npm/react@0.13.3/lib/memoizeStringOnly.js +0 -31
  590. data/public/vendor/npm/react@0.13.3/lib/onlyChild.js +0 -11
  591. data/public/vendor/npm/react@0.13.3/lib/performance.js +0 -8
  592. data/public/vendor/npm/react@0.13.3/lib/performanceNow.js +0 -7
  593. data/public/vendor/npm/react@0.13.3/lib/quoteAttributeValueForBrowser.js +0 -7
  594. data/public/vendor/npm/react@0.13.3/lib/setInnerHTML.js +0 -40
  595. data/public/vendor/npm/react@0.13.3/lib/setTextContent.js +0 -16
  596. data/public/vendor/npm/react@0.13.3/lib/shallowEqual.js +0 -42
  597. data/public/vendor/npm/react@0.13.3/lib/shouldUpdateReactComponent.js +0 -51
  598. data/public/vendor/npm/react@0.13.3/lib/toArray.js +0 -21
  599. data/public/vendor/npm/react@0.13.3/lib/traverseAllChildren.js +0 -104
  600. data/public/vendor/npm/react@0.13.3/lib/update.js +0 -78
  601. data/public/vendor/npm/react@0.13.3/lib/warning.js +0 -34
  602. data/public/vendor/npm/react@0.13.3/package.json +0 -34
  603. data/public/vendor/npm/react@0.13.3/react.js +0 -2
  604. data/public/vendor/npm/react@0.13.3.js +0 -1
  605. data/public/vendor/npm/readable-stream@1.1.13/duplex.js +0 -2
  606. data/public/vendor/npm/readable-stream@1.1.13/passthrough.js +0 -2
  607. data/public/vendor/npm/readable-stream@1.1.13/readable.js +0 -8
  608. data/public/vendor/npm/readable-stream@1.1.13/transform.js +0 -2
  609. data/public/vendor/npm/readable-stream@1.1.13/writable.js +0 -2
  610. data/public/vendor/npm/readable-stream@1.1.13.js +0 -1
  611. data/public/vendor/npm/source-map@0.1.31/CHANGELOG.md +0 -112
  612. data/public/vendor/npm/source-map@0.1.31/LICENSE +0 -28
  613. data/public/vendor/npm/source-map@0.1.31/Makefile.dryice.js +0 -89
  614. data/public/vendor/npm/source-map@0.1.31/README.md +0 -434
  615. data/public/vendor/npm/source-map@0.1.31/build/assert-shim.js +0 -58
  616. data/public/vendor/npm/source-map@0.1.31/build/mini-require.js +0 -154
  617. data/public/vendor/npm/source-map@0.1.31/build/prefix-source-map.jsm +0 -20
  618. data/public/vendor/npm/source-map@0.1.31/build/prefix-utils.jsm +0 -18
  619. data/public/vendor/npm/source-map@0.1.31/build/suffix-browser.js +0 -8
  620. data/public/vendor/npm/source-map@0.1.31/build/suffix-source-map.jsm +0 -6
  621. data/public/vendor/npm/source-map@0.1.31/build/suffix-utils.jsm +0 -21
  622. data/public/vendor/npm/source-map@0.1.31/build/test-prefix.js +0 -10
  623. data/public/vendor/npm/source-map@0.1.31/build/test-suffix.js +0 -5
  624. data/public/vendor/npm/source-map@0.1.31/lib/source-map/array-set.js +0 -49
  625. data/public/vendor/npm/source-map@0.1.31/lib/source-map/base64-vlq.js +0 -56
  626. data/public/vendor/npm/source-map@0.1.31/lib/source-map/base64.js +0 -44
  627. data/public/vendor/npm/source-map@0.1.31/lib/source-map/binary-search.js +0 -83
  628. data/public/vendor/npm/source-map@0.1.31/lib/source-map/source-map-consumer.js +0 -238
  629. data/public/vendor/npm/source-map@0.1.31/lib/source-map/source-map-generator.js +0 -231
  630. data/public/vendor/npm/source-map@0.1.31/lib/source-map/source-node.js +0 -234
  631. data/public/vendor/npm/source-map@0.1.31/lib/source-map/util.js +0 -207
  632. data/public/vendor/npm/source-map@0.1.31/lib/source-map.js +0 -4
  633. data/public/vendor/npm/source-map@0.1.31/package.json +0 -52
  634. data/public/vendor/npm/source-map@0.1.31/test/run-tests.js +0 -50
  635. data/public/vendor/npm/source-map@0.1.31/test/source-map/test-api.js +0 -19
  636. data/public/vendor/npm/source-map@0.1.31/test/source-map/test-array-set.js +0 -84
  637. data/public/vendor/npm/source-map@0.1.31/test/source-map/test-base64-vlq.js +0 -17
  638. data/public/vendor/npm/source-map@0.1.31/test/source-map/test-base64.js +0 -26
  639. data/public/vendor/npm/source-map@0.1.31/test/source-map/test-binary-search.js +0 -37
  640. data/public/vendor/npm/source-map@0.1.31/test/source-map/test-dog-fooding.js +0 -76
  641. data/public/vendor/npm/source-map@0.1.31/test/source-map/test-source-map-consumer.js +0 -426
  642. data/public/vendor/npm/source-map@0.1.31/test/source-map/test-source-map-generator.js +0 -480
  643. data/public/vendor/npm/source-map@0.1.31/test/source-map/test-source-node.js +0 -307
  644. data/public/vendor/npm/source-map@0.1.31/test/source-map/util.js +0 -84
  645. data/public/vendor/npm/source-map@0.1.31.js +0 -1
  646. data/public/vendor/npm/through@2.3.8/LICENSE.APACHE2 +0 -15
  647. data/public/vendor/npm/through@2.3.8/LICENSE.MIT +0 -24
  648. data/public/vendor/npm/through@2.3.8/index.js +0 -93
  649. data/public/vendor/npm/through@2.3.8/package.json +0 -36
  650. data/public/vendor/npm/through@2.3.8/readme.markdown +0 -64
  651. data/public/vendor/npm/through@2.3.8/test/async.js +0 -26
  652. data/public/vendor/npm/through@2.3.8/test/auto-destroy.js +0 -26
  653. data/public/vendor/npm/through@2.3.8/test/buffering.js +0 -57
  654. data/public/vendor/npm/through@2.3.8/test/end.js +0 -37
  655. data/public/vendor/npm/through@2.3.8/test/index.js +0 -98
  656. data/public/vendor/npm/through@2.3.8/test.js +0 -2
  657. data/public/vendor/npm/through@2.3.8.js +0 -1
  658. data/views/_options.erb +0 -156
  659. /data/public/vendor/github/jspm/{nodelibs-buffer@0.1.0 → nodelibs-buffer@0.1.1}/index.js +0 -0
  660. /data/public/vendor/github/jspm/{nodelibs-process@0.1.1 → nodelibs-process@0.1.2}/index.js +0 -0
  661. /data/public/vendor/npm/{readable-stream@1.1.13 → assert@1.5.0}/LICENSE +0 -0
  662. /data/public/vendor/npm/{buffer@3.4.3 → buffer@5.7.1}/LICENSE +0 -0
  663. /data/public/vendor/npm/{core-util-is@1.0.1 → core-util-is@1.0.3}/README.md +0 -0
  664. /data/public/vendor/npm/{process@0.10.1 → process@0.11.10}/LICENSE +0 -0
  665. /data/public/vendor/npm/{process@0.10.1 → process@0.11.10}/index.js +0 -0
  666. /data/public/vendor/npm/{readable-stream@1.1.13 → readable-stream@1.1.14}/README.md +0 -0
  667. /data/public/vendor/npm/{readable-stream@1.1.13 → readable-stream@1.1.14}/float.patch +0 -0
@@ -0,0 +1,4746 @@
1
+ /* */
2
+ (function(process) {
3
+ 'use strict';
4
+ if (process.env.NODE_ENV !== "production") {
5
+ (function() {
6
+ 'use strict';
7
+ var React = require('react');
8
+ var ReactVersion = '18.0.0-fc46dba67-20220329';
9
+ var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
10
+ function warn(format) {
11
+ {
12
+ {
13
+ for (var _len = arguments.length,
14
+ args = new Array(_len > 1 ? _len - 1 : 0),
15
+ _key = 1; _key < _len; _key++) {
16
+ args[_key - 1] = arguments[_key];
17
+ }
18
+ printWarning('warn', format, args);
19
+ }
20
+ }
21
+ }
22
+ function error(format) {
23
+ {
24
+ {
25
+ for (var _len2 = arguments.length,
26
+ args = new Array(_len2 > 1 ? _len2 - 1 : 0),
27
+ _key2 = 1; _key2 < _len2; _key2++) {
28
+ args[_key2 - 1] = arguments[_key2];
29
+ }
30
+ printWarning('error', format, args);
31
+ }
32
+ }
33
+ }
34
+ function printWarning(level, format, args) {
35
+ {
36
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
37
+ var stack = ReactDebugCurrentFrame.getStackAddendum();
38
+ if (stack !== '') {
39
+ format += '%s';
40
+ args = args.concat([stack]);
41
+ }
42
+ var argsWithFormat = args.map(function(item) {
43
+ return String(item);
44
+ });
45
+ argsWithFormat.unshift('Warning: ' + format);
46
+ Function.prototype.apply.call(console[level], console, argsWithFormat);
47
+ }
48
+ }
49
+ function scheduleWork(callback) {
50
+ callback();
51
+ }
52
+ var VIEW_SIZE = 512;
53
+ var currentView = null;
54
+ var writtenBytes = 0;
55
+ function beginWriting(destination) {
56
+ currentView = new Uint8Array(VIEW_SIZE);
57
+ writtenBytes = 0;
58
+ }
59
+ function writeChunk(destination, chunk) {
60
+ if (chunk.length === 0) {
61
+ return;
62
+ }
63
+ if (chunk.length > VIEW_SIZE) {
64
+ if (writtenBytes > 0) {
65
+ destination.enqueue(new Uint8Array(currentView.buffer, 0, writtenBytes));
66
+ currentView = new Uint8Array(VIEW_SIZE);
67
+ writtenBytes = 0;
68
+ }
69
+ destination.enqueue(chunk);
70
+ return;
71
+ }
72
+ var bytesToWrite = chunk;
73
+ var allowableBytes = currentView.length - writtenBytes;
74
+ if (allowableBytes < bytesToWrite.length) {
75
+ if (allowableBytes === 0) {
76
+ destination.enqueue(currentView);
77
+ } else {
78
+ currentView.set(bytesToWrite.subarray(0, allowableBytes), writtenBytes);
79
+ destination.enqueue(currentView);
80
+ bytesToWrite = bytesToWrite.subarray(allowableBytes);
81
+ }
82
+ currentView = new Uint8Array(VIEW_SIZE);
83
+ writtenBytes = 0;
84
+ }
85
+ currentView.set(bytesToWrite, writtenBytes);
86
+ writtenBytes += bytesToWrite.length;
87
+ }
88
+ function writeChunkAndReturn(destination, chunk) {
89
+ writeChunk(destination, chunk);
90
+ return true;
91
+ }
92
+ function completeWriting(destination) {
93
+ if (currentView && writtenBytes > 0) {
94
+ destination.enqueue(new Uint8Array(currentView.buffer, 0, writtenBytes));
95
+ currentView = null;
96
+ writtenBytes = 0;
97
+ }
98
+ }
99
+ function close(destination) {
100
+ destination.close();
101
+ }
102
+ var textEncoder = new TextEncoder();
103
+ function stringToChunk(content) {
104
+ return textEncoder.encode(content);
105
+ }
106
+ function stringToPrecomputedChunk(content) {
107
+ return textEncoder.encode(content);
108
+ }
109
+ function closeWithError(destination, error) {
110
+ if (typeof destination.error === 'function') {
111
+ destination.error(error);
112
+ } else {
113
+ destination.close();
114
+ }
115
+ }
116
+ function typeName(value) {
117
+ {
118
+ var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
119
+ var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
120
+ return type;
121
+ }
122
+ }
123
+ function willCoercionThrow(value) {
124
+ {
125
+ try {
126
+ testStringCoercion(value);
127
+ return false;
128
+ } catch (e) {
129
+ return true;
130
+ }
131
+ }
132
+ }
133
+ function testStringCoercion(value) {
134
+ return '' + value;
135
+ }
136
+ function checkAttributeStringCoercion(value, attributeName) {
137
+ {
138
+ if (willCoercionThrow(value)) {
139
+ error('The provided `%s` attribute is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', attributeName, typeName(value));
140
+ return testStringCoercion(value);
141
+ }
142
+ }
143
+ }
144
+ function checkCSSPropertyStringCoercion(value, propName) {
145
+ {
146
+ if (willCoercionThrow(value)) {
147
+ error('The provided `%s` CSS property is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', propName, typeName(value));
148
+ return testStringCoercion(value);
149
+ }
150
+ }
151
+ }
152
+ function checkHtmlStringCoercion(value) {
153
+ {
154
+ if (willCoercionThrow(value)) {
155
+ error('The provided HTML markup uses a value of unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
156
+ return testStringCoercion(value);
157
+ }
158
+ }
159
+ }
160
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
161
+ var RESERVED = 0;
162
+ var STRING = 1;
163
+ var BOOLEANISH_STRING = 2;
164
+ var BOOLEAN = 3;
165
+ var OVERLOADED_BOOLEAN = 4;
166
+ var NUMERIC = 5;
167
+ var POSITIVE_NUMERIC = 6;
168
+ var ATTRIBUTE_NAME_START_CHAR = ":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD";
169
+ var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040";
170
+ var VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$');
171
+ var illegalAttributeNameCache = {};
172
+ var validatedAttributeNameCache = {};
173
+ function isAttributeNameSafe(attributeName) {
174
+ if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) {
175
+ return true;
176
+ }
177
+ if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) {
178
+ return false;
179
+ }
180
+ if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) {
181
+ validatedAttributeNameCache[attributeName] = true;
182
+ return true;
183
+ }
184
+ illegalAttributeNameCache[attributeName] = true;
185
+ {
186
+ error('Invalid attribute name: `%s`', attributeName);
187
+ }
188
+ return false;
189
+ }
190
+ function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) {
191
+ if (propertyInfo !== null && propertyInfo.type === RESERVED) {
192
+ return false;
193
+ }
194
+ switch (typeof value) {
195
+ case 'function':
196
+ case 'symbol':
197
+ return true;
198
+ case 'boolean':
199
+ {
200
+ if (isCustomComponentTag) {
201
+ return false;
202
+ }
203
+ if (propertyInfo !== null) {
204
+ return !propertyInfo.acceptsBooleans;
205
+ } else {
206
+ var prefix = name.toLowerCase().slice(0, 5);
207
+ return prefix !== 'data-' && prefix !== 'aria-';
208
+ }
209
+ }
210
+ default:
211
+ return false;
212
+ }
213
+ }
214
+ function getPropertyInfo(name) {
215
+ return properties.hasOwnProperty(name) ? properties[name] : null;
216
+ }
217
+ function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace, sanitizeURL, removeEmptyString) {
218
+ this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN;
219
+ this.attributeName = attributeName;
220
+ this.attributeNamespace = attributeNamespace;
221
+ this.mustUseProperty = mustUseProperty;
222
+ this.propertyName = name;
223
+ this.type = type;
224
+ this.sanitizeURL = sanitizeURL;
225
+ this.removeEmptyString = removeEmptyString;
226
+ }
227
+ var properties = {};
228
+ var reservedProps = ['children', 'dangerouslySetInnerHTML', 'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'];
229
+ reservedProps.forEach(function(name) {
230
+ properties[name] = new PropertyInfoRecord(name, RESERVED, false, name, null, false, false);
231
+ });
232
+ [['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function(_ref) {
233
+ var name = _ref[0],
234
+ attributeName = _ref[1];
235
+ properties[name] = new PropertyInfoRecord(name, STRING, false, attributeName, null, false, false);
236
+ });
237
+ ['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function(name) {
238
+ properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, name.toLowerCase(), null, false, false);
239
+ });
240
+ ['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(function(name) {
241
+ properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, name, null, false, false);
242
+ });
243
+ ['allowFullScreen', 'async', 'autoFocus', 'autoPlay', 'controls', 'default', 'defer', 'disabled', 'disablePictureInPicture', 'disableRemotePlayback', 'formNoValidate', 'hidden', 'loop', 'noModule', 'noValidate', 'open', 'playsInline', 'readOnly', 'required', 'reversed', 'scoped', 'seamless', 'itemScope'].forEach(function(name) {
244
+ properties[name] = new PropertyInfoRecord(name, BOOLEAN, false, name.toLowerCase(), null, false, false);
245
+ });
246
+ ['checked', 'multiple', 'muted', 'selected'].forEach(function(name) {
247
+ properties[name] = new PropertyInfoRecord(name, BOOLEAN, true, name, null, false, false);
248
+ });
249
+ ['capture', 'download'].forEach(function(name) {
250
+ properties[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, name, null, false, false);
251
+ });
252
+ ['cols', 'rows', 'size', 'span'].forEach(function(name) {
253
+ properties[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, name, null, false, false);
254
+ });
255
+ ['rowSpan', 'start'].forEach(function(name) {
256
+ properties[name] = new PropertyInfoRecord(name, NUMERIC, false, name.toLowerCase(), null, false, false);
257
+ });
258
+ var CAMELIZE = /[\-\:]([a-z])/g;
259
+ var capitalize = function(token) {
260
+ return token[1].toUpperCase();
261
+ };
262
+ ['accent-height', 'alignment-baseline', 'arabic-form', 'baseline-shift', 'cap-height', 'clip-path', 'clip-rule', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'dominant-baseline', 'enable-background', 'fill-opacity', 'fill-rule', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'glyph-name', 'glyph-orientation-horizontal', 'glyph-orientation-vertical', 'horiz-adv-x', 'horiz-origin-x', 'image-rendering', 'letter-spacing', 'lighting-color', 'marker-end', 'marker-mid', 'marker-start', 'overline-position', 'overline-thickness', 'paint-order', 'panose-1', 'pointer-events', 'rendering-intent', 'shape-rendering', 'stop-color', 'stop-opacity', 'strikethrough-position', 'strikethrough-thickness', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke-width', 'text-anchor', 'text-decoration', 'text-rendering', 'underline-position', 'underline-thickness', 'unicode-bidi', 'unicode-range', 'units-per-em', 'v-alphabetic', 'v-hanging', 'v-ideographic', 'v-mathematical', 'vector-effect', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'word-spacing', 'writing-mode', 'xmlns:xlink', 'x-height'].forEach(function(attributeName) {
263
+ var name = attributeName.replace(CAMELIZE, capitalize);
264
+ properties[name] = new PropertyInfoRecord(name, STRING, false, attributeName, null, false, false);
265
+ });
266
+ ['xlink:actuate', 'xlink:arcrole', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type'].forEach(function(attributeName) {
267
+ var name = attributeName.replace(CAMELIZE, capitalize);
268
+ properties[name] = new PropertyInfoRecord(name, STRING, false, attributeName, 'http://www.w3.org/1999/xlink', false, false);
269
+ });
270
+ ['xml:base', 'xml:lang', 'xml:space'].forEach(function(attributeName) {
271
+ var name = attributeName.replace(CAMELIZE, capitalize);
272
+ properties[name] = new PropertyInfoRecord(name, STRING, false, attributeName, 'http://www.w3.org/XML/1998/namespace', false, false);
273
+ });
274
+ ['tabIndex', 'crossOrigin'].forEach(function(attributeName) {
275
+ properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, attributeName.toLowerCase(), null, false, false);
276
+ });
277
+ var xlinkHref = 'xlinkHref';
278
+ properties[xlinkHref] = new PropertyInfoRecord('xlinkHref', STRING, false, 'xlink:href', 'http://www.w3.org/1999/xlink', true, false);
279
+ ['src', 'href', 'action', 'formAction'].forEach(function(attributeName) {
280
+ properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, attributeName.toLowerCase(), null, true, true);
281
+ });
282
+ var isUnitlessNumber = {
283
+ animationIterationCount: true,
284
+ aspectRatio: true,
285
+ borderImageOutset: true,
286
+ borderImageSlice: true,
287
+ borderImageWidth: true,
288
+ boxFlex: true,
289
+ boxFlexGroup: true,
290
+ boxOrdinalGroup: true,
291
+ columnCount: true,
292
+ columns: true,
293
+ flex: true,
294
+ flexGrow: true,
295
+ flexPositive: true,
296
+ flexShrink: true,
297
+ flexNegative: true,
298
+ flexOrder: true,
299
+ gridArea: true,
300
+ gridRow: true,
301
+ gridRowEnd: true,
302
+ gridRowSpan: true,
303
+ gridRowStart: true,
304
+ gridColumn: true,
305
+ gridColumnEnd: true,
306
+ gridColumnSpan: true,
307
+ gridColumnStart: true,
308
+ fontWeight: true,
309
+ lineClamp: true,
310
+ lineHeight: true,
311
+ opacity: true,
312
+ order: true,
313
+ orphans: true,
314
+ tabSize: true,
315
+ widows: true,
316
+ zIndex: true,
317
+ zoom: true,
318
+ fillOpacity: true,
319
+ floodOpacity: true,
320
+ stopOpacity: true,
321
+ strokeDasharray: true,
322
+ strokeDashoffset: true,
323
+ strokeMiterlimit: true,
324
+ strokeOpacity: true,
325
+ strokeWidth: true
326
+ };
327
+ function prefixKey(prefix, key) {
328
+ return prefix + key.charAt(0).toUpperCase() + key.substring(1);
329
+ }
330
+ var prefixes = ['Webkit', 'ms', 'Moz', 'O'];
331
+ Object.keys(isUnitlessNumber).forEach(function(prop) {
332
+ prefixes.forEach(function(prefix) {
333
+ isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop];
334
+ });
335
+ });
336
+ var hasReadOnlyValue = {
337
+ button: true,
338
+ checkbox: true,
339
+ image: true,
340
+ hidden: true,
341
+ radio: true,
342
+ reset: true,
343
+ submit: true
344
+ };
345
+ function checkControlledValueProps(tagName, props) {
346
+ {
347
+ if (!(hasReadOnlyValue[props.type] || props.onChange || props.onInput || props.readOnly || props.disabled || props.value == null)) {
348
+ error('You provided a `value` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultValue`. Otherwise, ' + 'set either `onChange` or `readOnly`.');
349
+ }
350
+ if (!(props.onChange || props.readOnly || props.disabled || props.checked == null)) {
351
+ error('You provided a `checked` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultChecked`. Otherwise, ' + 'set either `onChange` or `readOnly`.');
352
+ }
353
+ }
354
+ }
355
+ function isCustomComponent(tagName, props) {
356
+ if (tagName.indexOf('-') === -1) {
357
+ return typeof props.is === 'string';
358
+ }
359
+ switch (tagName) {
360
+ case 'annotation-xml':
361
+ case 'color-profile':
362
+ case 'font-face':
363
+ case 'font-face-src':
364
+ case 'font-face-uri':
365
+ case 'font-face-format':
366
+ case 'font-face-name':
367
+ case 'missing-glyph':
368
+ return false;
369
+ default:
370
+ return true;
371
+ }
372
+ }
373
+ var ariaProperties = {
374
+ 'aria-current': 0,
375
+ 'aria-description': 0,
376
+ 'aria-details': 0,
377
+ 'aria-disabled': 0,
378
+ 'aria-hidden': 0,
379
+ 'aria-invalid': 0,
380
+ 'aria-keyshortcuts': 0,
381
+ 'aria-label': 0,
382
+ 'aria-roledescription': 0,
383
+ 'aria-autocomplete': 0,
384
+ 'aria-checked': 0,
385
+ 'aria-expanded': 0,
386
+ 'aria-haspopup': 0,
387
+ 'aria-level': 0,
388
+ 'aria-modal': 0,
389
+ 'aria-multiline': 0,
390
+ 'aria-multiselectable': 0,
391
+ 'aria-orientation': 0,
392
+ 'aria-placeholder': 0,
393
+ 'aria-pressed': 0,
394
+ 'aria-readonly': 0,
395
+ 'aria-required': 0,
396
+ 'aria-selected': 0,
397
+ 'aria-sort': 0,
398
+ 'aria-valuemax': 0,
399
+ 'aria-valuemin': 0,
400
+ 'aria-valuenow': 0,
401
+ 'aria-valuetext': 0,
402
+ 'aria-atomic': 0,
403
+ 'aria-busy': 0,
404
+ 'aria-live': 0,
405
+ 'aria-relevant': 0,
406
+ 'aria-dropeffect': 0,
407
+ 'aria-grabbed': 0,
408
+ 'aria-activedescendant': 0,
409
+ 'aria-colcount': 0,
410
+ 'aria-colindex': 0,
411
+ 'aria-colspan': 0,
412
+ 'aria-controls': 0,
413
+ 'aria-describedby': 0,
414
+ 'aria-errormessage': 0,
415
+ 'aria-flowto': 0,
416
+ 'aria-labelledby': 0,
417
+ 'aria-owns': 0,
418
+ 'aria-posinset': 0,
419
+ 'aria-rowcount': 0,
420
+ 'aria-rowindex': 0,
421
+ 'aria-rowspan': 0,
422
+ 'aria-setsize': 0
423
+ };
424
+ var warnedProperties = {};
425
+ var rARIA = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
426
+ var rARIACamel = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');
427
+ function validateProperty(tagName, name) {
428
+ {
429
+ if (hasOwnProperty.call(warnedProperties, name) && warnedProperties[name]) {
430
+ return true;
431
+ }
432
+ if (rARIACamel.test(name)) {
433
+ var ariaName = 'aria-' + name.slice(4).toLowerCase();
434
+ var correctName = ariaProperties.hasOwnProperty(ariaName) ? ariaName : null;
435
+ if (correctName == null) {
436
+ error('Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.', name);
437
+ warnedProperties[name] = true;
438
+ return true;
439
+ }
440
+ if (name !== correctName) {
441
+ error('Invalid ARIA attribute `%s`. Did you mean `%s`?', name, correctName);
442
+ warnedProperties[name] = true;
443
+ return true;
444
+ }
445
+ }
446
+ if (rARIA.test(name)) {
447
+ var lowerCasedName = name.toLowerCase();
448
+ var standardName = ariaProperties.hasOwnProperty(lowerCasedName) ? lowerCasedName : null;
449
+ if (standardName == null) {
450
+ warnedProperties[name] = true;
451
+ return false;
452
+ }
453
+ if (name !== standardName) {
454
+ error('Unknown ARIA attribute `%s`. Did you mean `%s`?', name, standardName);
455
+ warnedProperties[name] = true;
456
+ return true;
457
+ }
458
+ }
459
+ }
460
+ return true;
461
+ }
462
+ function warnInvalidARIAProps(type, props) {
463
+ {
464
+ var invalidProps = [];
465
+ for (var key in props) {
466
+ var isValid = validateProperty(type, key);
467
+ if (!isValid) {
468
+ invalidProps.push(key);
469
+ }
470
+ }
471
+ var unknownPropString = invalidProps.map(function(prop) {
472
+ return '`' + prop + '`';
473
+ }).join(', ');
474
+ if (invalidProps.length === 1) {
475
+ error('Invalid aria prop %s on <%s> tag. ' + 'For details, see https://reactjs.org/link/invalid-aria-props', unknownPropString, type);
476
+ } else if (invalidProps.length > 1) {
477
+ error('Invalid aria props %s on <%s> tag. ' + 'For details, see https://reactjs.org/link/invalid-aria-props', unknownPropString, type);
478
+ }
479
+ }
480
+ }
481
+ function validateProperties(type, props) {
482
+ if (isCustomComponent(type, props)) {
483
+ return;
484
+ }
485
+ warnInvalidARIAProps(type, props);
486
+ }
487
+ var didWarnValueNull = false;
488
+ function validateProperties$1(type, props) {
489
+ {
490
+ if (type !== 'input' && type !== 'textarea' && type !== 'select') {
491
+ return;
492
+ }
493
+ if (props != null && props.value === null && !didWarnValueNull) {
494
+ didWarnValueNull = true;
495
+ if (type === 'select' && props.multiple) {
496
+ error('`value` prop on `%s` should not be null. ' + 'Consider using an empty array when `multiple` is set to `true` ' + 'to clear the component or `undefined` for uncontrolled components.', type);
497
+ } else {
498
+ error('`value` prop on `%s` should not be null. ' + 'Consider using an empty string to clear the component or `undefined` ' + 'for uncontrolled components.', type);
499
+ }
500
+ }
501
+ }
502
+ }
503
+ var possibleStandardNames = {
504
+ accept: 'accept',
505
+ acceptcharset: 'acceptCharset',
506
+ 'accept-charset': 'acceptCharset',
507
+ accesskey: 'accessKey',
508
+ action: 'action',
509
+ allowfullscreen: 'allowFullScreen',
510
+ alt: 'alt',
511
+ as: 'as',
512
+ async: 'async',
513
+ autocapitalize: 'autoCapitalize',
514
+ autocomplete: 'autoComplete',
515
+ autocorrect: 'autoCorrect',
516
+ autofocus: 'autoFocus',
517
+ autoplay: 'autoPlay',
518
+ autosave: 'autoSave',
519
+ capture: 'capture',
520
+ cellpadding: 'cellPadding',
521
+ cellspacing: 'cellSpacing',
522
+ challenge: 'challenge',
523
+ charset: 'charSet',
524
+ checked: 'checked',
525
+ children: 'children',
526
+ cite: 'cite',
527
+ class: 'className',
528
+ classid: 'classID',
529
+ classname: 'className',
530
+ cols: 'cols',
531
+ colspan: 'colSpan',
532
+ content: 'content',
533
+ contenteditable: 'contentEditable',
534
+ contextmenu: 'contextMenu',
535
+ controls: 'controls',
536
+ controlslist: 'controlsList',
537
+ coords: 'coords',
538
+ crossorigin: 'crossOrigin',
539
+ dangerouslysetinnerhtml: 'dangerouslySetInnerHTML',
540
+ data: 'data',
541
+ datetime: 'dateTime',
542
+ default: 'default',
543
+ defaultchecked: 'defaultChecked',
544
+ defaultvalue: 'defaultValue',
545
+ defer: 'defer',
546
+ dir: 'dir',
547
+ disabled: 'disabled',
548
+ disablepictureinpicture: 'disablePictureInPicture',
549
+ disableremoteplayback: 'disableRemotePlayback',
550
+ download: 'download',
551
+ draggable: 'draggable',
552
+ enctype: 'encType',
553
+ enterkeyhint: 'enterKeyHint',
554
+ for: 'htmlFor',
555
+ form: 'form',
556
+ formmethod: 'formMethod',
557
+ formaction: 'formAction',
558
+ formenctype: 'formEncType',
559
+ formnovalidate: 'formNoValidate',
560
+ formtarget: 'formTarget',
561
+ frameborder: 'frameBorder',
562
+ headers: 'headers',
563
+ height: 'height',
564
+ hidden: 'hidden',
565
+ high: 'high',
566
+ href: 'href',
567
+ hreflang: 'hrefLang',
568
+ htmlfor: 'htmlFor',
569
+ httpequiv: 'httpEquiv',
570
+ 'http-equiv': 'httpEquiv',
571
+ icon: 'icon',
572
+ id: 'id',
573
+ imagesizes: 'imageSizes',
574
+ imagesrcset: 'imageSrcSet',
575
+ innerhtml: 'innerHTML',
576
+ inputmode: 'inputMode',
577
+ integrity: 'integrity',
578
+ is: 'is',
579
+ itemid: 'itemID',
580
+ itemprop: 'itemProp',
581
+ itemref: 'itemRef',
582
+ itemscope: 'itemScope',
583
+ itemtype: 'itemType',
584
+ keyparams: 'keyParams',
585
+ keytype: 'keyType',
586
+ kind: 'kind',
587
+ label: 'label',
588
+ lang: 'lang',
589
+ list: 'list',
590
+ loop: 'loop',
591
+ low: 'low',
592
+ manifest: 'manifest',
593
+ marginwidth: 'marginWidth',
594
+ marginheight: 'marginHeight',
595
+ max: 'max',
596
+ maxlength: 'maxLength',
597
+ media: 'media',
598
+ mediagroup: 'mediaGroup',
599
+ method: 'method',
600
+ min: 'min',
601
+ minlength: 'minLength',
602
+ multiple: 'multiple',
603
+ muted: 'muted',
604
+ name: 'name',
605
+ nomodule: 'noModule',
606
+ nonce: 'nonce',
607
+ novalidate: 'noValidate',
608
+ open: 'open',
609
+ optimum: 'optimum',
610
+ pattern: 'pattern',
611
+ placeholder: 'placeholder',
612
+ playsinline: 'playsInline',
613
+ poster: 'poster',
614
+ preload: 'preload',
615
+ profile: 'profile',
616
+ radiogroup: 'radioGroup',
617
+ readonly: 'readOnly',
618
+ referrerpolicy: 'referrerPolicy',
619
+ rel: 'rel',
620
+ required: 'required',
621
+ reversed: 'reversed',
622
+ role: 'role',
623
+ rows: 'rows',
624
+ rowspan: 'rowSpan',
625
+ sandbox: 'sandbox',
626
+ scope: 'scope',
627
+ scoped: 'scoped',
628
+ scrolling: 'scrolling',
629
+ seamless: 'seamless',
630
+ selected: 'selected',
631
+ shape: 'shape',
632
+ size: 'size',
633
+ sizes: 'sizes',
634
+ span: 'span',
635
+ spellcheck: 'spellCheck',
636
+ src: 'src',
637
+ srcdoc: 'srcDoc',
638
+ srclang: 'srcLang',
639
+ srcset: 'srcSet',
640
+ start: 'start',
641
+ step: 'step',
642
+ style: 'style',
643
+ summary: 'summary',
644
+ tabindex: 'tabIndex',
645
+ target: 'target',
646
+ title: 'title',
647
+ type: 'type',
648
+ usemap: 'useMap',
649
+ value: 'value',
650
+ width: 'width',
651
+ wmode: 'wmode',
652
+ wrap: 'wrap',
653
+ about: 'about',
654
+ accentheight: 'accentHeight',
655
+ 'accent-height': 'accentHeight',
656
+ accumulate: 'accumulate',
657
+ additive: 'additive',
658
+ alignmentbaseline: 'alignmentBaseline',
659
+ 'alignment-baseline': 'alignmentBaseline',
660
+ allowreorder: 'allowReorder',
661
+ alphabetic: 'alphabetic',
662
+ amplitude: 'amplitude',
663
+ arabicform: 'arabicForm',
664
+ 'arabic-form': 'arabicForm',
665
+ ascent: 'ascent',
666
+ attributename: 'attributeName',
667
+ attributetype: 'attributeType',
668
+ autoreverse: 'autoReverse',
669
+ azimuth: 'azimuth',
670
+ basefrequency: 'baseFrequency',
671
+ baselineshift: 'baselineShift',
672
+ 'baseline-shift': 'baselineShift',
673
+ baseprofile: 'baseProfile',
674
+ bbox: 'bbox',
675
+ begin: 'begin',
676
+ bias: 'bias',
677
+ by: 'by',
678
+ calcmode: 'calcMode',
679
+ capheight: 'capHeight',
680
+ 'cap-height': 'capHeight',
681
+ clip: 'clip',
682
+ clippath: 'clipPath',
683
+ 'clip-path': 'clipPath',
684
+ clippathunits: 'clipPathUnits',
685
+ cliprule: 'clipRule',
686
+ 'clip-rule': 'clipRule',
687
+ color: 'color',
688
+ colorinterpolation: 'colorInterpolation',
689
+ 'color-interpolation': 'colorInterpolation',
690
+ colorinterpolationfilters: 'colorInterpolationFilters',
691
+ 'color-interpolation-filters': 'colorInterpolationFilters',
692
+ colorprofile: 'colorProfile',
693
+ 'color-profile': 'colorProfile',
694
+ colorrendering: 'colorRendering',
695
+ 'color-rendering': 'colorRendering',
696
+ contentscripttype: 'contentScriptType',
697
+ contentstyletype: 'contentStyleType',
698
+ cursor: 'cursor',
699
+ cx: 'cx',
700
+ cy: 'cy',
701
+ d: 'd',
702
+ datatype: 'datatype',
703
+ decelerate: 'decelerate',
704
+ descent: 'descent',
705
+ diffuseconstant: 'diffuseConstant',
706
+ direction: 'direction',
707
+ display: 'display',
708
+ divisor: 'divisor',
709
+ dominantbaseline: 'dominantBaseline',
710
+ 'dominant-baseline': 'dominantBaseline',
711
+ dur: 'dur',
712
+ dx: 'dx',
713
+ dy: 'dy',
714
+ edgemode: 'edgeMode',
715
+ elevation: 'elevation',
716
+ enablebackground: 'enableBackground',
717
+ 'enable-background': 'enableBackground',
718
+ end: 'end',
719
+ exponent: 'exponent',
720
+ externalresourcesrequired: 'externalResourcesRequired',
721
+ fill: 'fill',
722
+ fillopacity: 'fillOpacity',
723
+ 'fill-opacity': 'fillOpacity',
724
+ fillrule: 'fillRule',
725
+ 'fill-rule': 'fillRule',
726
+ filter: 'filter',
727
+ filterres: 'filterRes',
728
+ filterunits: 'filterUnits',
729
+ floodopacity: 'floodOpacity',
730
+ 'flood-opacity': 'floodOpacity',
731
+ floodcolor: 'floodColor',
732
+ 'flood-color': 'floodColor',
733
+ focusable: 'focusable',
734
+ fontfamily: 'fontFamily',
735
+ 'font-family': 'fontFamily',
736
+ fontsize: 'fontSize',
737
+ 'font-size': 'fontSize',
738
+ fontsizeadjust: 'fontSizeAdjust',
739
+ 'font-size-adjust': 'fontSizeAdjust',
740
+ fontstretch: 'fontStretch',
741
+ 'font-stretch': 'fontStretch',
742
+ fontstyle: 'fontStyle',
743
+ 'font-style': 'fontStyle',
744
+ fontvariant: 'fontVariant',
745
+ 'font-variant': 'fontVariant',
746
+ fontweight: 'fontWeight',
747
+ 'font-weight': 'fontWeight',
748
+ format: 'format',
749
+ from: 'from',
750
+ fx: 'fx',
751
+ fy: 'fy',
752
+ g1: 'g1',
753
+ g2: 'g2',
754
+ glyphname: 'glyphName',
755
+ 'glyph-name': 'glyphName',
756
+ glyphorientationhorizontal: 'glyphOrientationHorizontal',
757
+ 'glyph-orientation-horizontal': 'glyphOrientationHorizontal',
758
+ glyphorientationvertical: 'glyphOrientationVertical',
759
+ 'glyph-orientation-vertical': 'glyphOrientationVertical',
760
+ glyphref: 'glyphRef',
761
+ gradienttransform: 'gradientTransform',
762
+ gradientunits: 'gradientUnits',
763
+ hanging: 'hanging',
764
+ horizadvx: 'horizAdvX',
765
+ 'horiz-adv-x': 'horizAdvX',
766
+ horizoriginx: 'horizOriginX',
767
+ 'horiz-origin-x': 'horizOriginX',
768
+ ideographic: 'ideographic',
769
+ imagerendering: 'imageRendering',
770
+ 'image-rendering': 'imageRendering',
771
+ in2: 'in2',
772
+ in: 'in',
773
+ inlist: 'inlist',
774
+ intercept: 'intercept',
775
+ k1: 'k1',
776
+ k2: 'k2',
777
+ k3: 'k3',
778
+ k4: 'k4',
779
+ k: 'k',
780
+ kernelmatrix: 'kernelMatrix',
781
+ kernelunitlength: 'kernelUnitLength',
782
+ kerning: 'kerning',
783
+ keypoints: 'keyPoints',
784
+ keysplines: 'keySplines',
785
+ keytimes: 'keyTimes',
786
+ lengthadjust: 'lengthAdjust',
787
+ letterspacing: 'letterSpacing',
788
+ 'letter-spacing': 'letterSpacing',
789
+ lightingcolor: 'lightingColor',
790
+ 'lighting-color': 'lightingColor',
791
+ limitingconeangle: 'limitingConeAngle',
792
+ local: 'local',
793
+ markerend: 'markerEnd',
794
+ 'marker-end': 'markerEnd',
795
+ markerheight: 'markerHeight',
796
+ markermid: 'markerMid',
797
+ 'marker-mid': 'markerMid',
798
+ markerstart: 'markerStart',
799
+ 'marker-start': 'markerStart',
800
+ markerunits: 'markerUnits',
801
+ markerwidth: 'markerWidth',
802
+ mask: 'mask',
803
+ maskcontentunits: 'maskContentUnits',
804
+ maskunits: 'maskUnits',
805
+ mathematical: 'mathematical',
806
+ mode: 'mode',
807
+ numoctaves: 'numOctaves',
808
+ offset: 'offset',
809
+ opacity: 'opacity',
810
+ operator: 'operator',
811
+ order: 'order',
812
+ orient: 'orient',
813
+ orientation: 'orientation',
814
+ origin: 'origin',
815
+ overflow: 'overflow',
816
+ overlineposition: 'overlinePosition',
817
+ 'overline-position': 'overlinePosition',
818
+ overlinethickness: 'overlineThickness',
819
+ 'overline-thickness': 'overlineThickness',
820
+ paintorder: 'paintOrder',
821
+ 'paint-order': 'paintOrder',
822
+ panose1: 'panose1',
823
+ 'panose-1': 'panose1',
824
+ pathlength: 'pathLength',
825
+ patterncontentunits: 'patternContentUnits',
826
+ patterntransform: 'patternTransform',
827
+ patternunits: 'patternUnits',
828
+ pointerevents: 'pointerEvents',
829
+ 'pointer-events': 'pointerEvents',
830
+ points: 'points',
831
+ pointsatx: 'pointsAtX',
832
+ pointsaty: 'pointsAtY',
833
+ pointsatz: 'pointsAtZ',
834
+ prefix: 'prefix',
835
+ preservealpha: 'preserveAlpha',
836
+ preserveaspectratio: 'preserveAspectRatio',
837
+ primitiveunits: 'primitiveUnits',
838
+ property: 'property',
839
+ r: 'r',
840
+ radius: 'radius',
841
+ refx: 'refX',
842
+ refy: 'refY',
843
+ renderingintent: 'renderingIntent',
844
+ 'rendering-intent': 'renderingIntent',
845
+ repeatcount: 'repeatCount',
846
+ repeatdur: 'repeatDur',
847
+ requiredextensions: 'requiredExtensions',
848
+ requiredfeatures: 'requiredFeatures',
849
+ resource: 'resource',
850
+ restart: 'restart',
851
+ result: 'result',
852
+ results: 'results',
853
+ rotate: 'rotate',
854
+ rx: 'rx',
855
+ ry: 'ry',
856
+ scale: 'scale',
857
+ security: 'security',
858
+ seed: 'seed',
859
+ shaperendering: 'shapeRendering',
860
+ 'shape-rendering': 'shapeRendering',
861
+ slope: 'slope',
862
+ spacing: 'spacing',
863
+ specularconstant: 'specularConstant',
864
+ specularexponent: 'specularExponent',
865
+ speed: 'speed',
866
+ spreadmethod: 'spreadMethod',
867
+ startoffset: 'startOffset',
868
+ stddeviation: 'stdDeviation',
869
+ stemh: 'stemh',
870
+ stemv: 'stemv',
871
+ stitchtiles: 'stitchTiles',
872
+ stopcolor: 'stopColor',
873
+ 'stop-color': 'stopColor',
874
+ stopopacity: 'stopOpacity',
875
+ 'stop-opacity': 'stopOpacity',
876
+ strikethroughposition: 'strikethroughPosition',
877
+ 'strikethrough-position': 'strikethroughPosition',
878
+ strikethroughthickness: 'strikethroughThickness',
879
+ 'strikethrough-thickness': 'strikethroughThickness',
880
+ string: 'string',
881
+ stroke: 'stroke',
882
+ strokedasharray: 'strokeDasharray',
883
+ 'stroke-dasharray': 'strokeDasharray',
884
+ strokedashoffset: 'strokeDashoffset',
885
+ 'stroke-dashoffset': 'strokeDashoffset',
886
+ strokelinecap: 'strokeLinecap',
887
+ 'stroke-linecap': 'strokeLinecap',
888
+ strokelinejoin: 'strokeLinejoin',
889
+ 'stroke-linejoin': 'strokeLinejoin',
890
+ strokemiterlimit: 'strokeMiterlimit',
891
+ 'stroke-miterlimit': 'strokeMiterlimit',
892
+ strokewidth: 'strokeWidth',
893
+ 'stroke-width': 'strokeWidth',
894
+ strokeopacity: 'strokeOpacity',
895
+ 'stroke-opacity': 'strokeOpacity',
896
+ suppresscontenteditablewarning: 'suppressContentEditableWarning',
897
+ suppresshydrationwarning: 'suppressHydrationWarning',
898
+ surfacescale: 'surfaceScale',
899
+ systemlanguage: 'systemLanguage',
900
+ tablevalues: 'tableValues',
901
+ targetx: 'targetX',
902
+ targety: 'targetY',
903
+ textanchor: 'textAnchor',
904
+ 'text-anchor': 'textAnchor',
905
+ textdecoration: 'textDecoration',
906
+ 'text-decoration': 'textDecoration',
907
+ textlength: 'textLength',
908
+ textrendering: 'textRendering',
909
+ 'text-rendering': 'textRendering',
910
+ to: 'to',
911
+ transform: 'transform',
912
+ typeof: 'typeof',
913
+ u1: 'u1',
914
+ u2: 'u2',
915
+ underlineposition: 'underlinePosition',
916
+ 'underline-position': 'underlinePosition',
917
+ underlinethickness: 'underlineThickness',
918
+ 'underline-thickness': 'underlineThickness',
919
+ unicode: 'unicode',
920
+ unicodebidi: 'unicodeBidi',
921
+ 'unicode-bidi': 'unicodeBidi',
922
+ unicoderange: 'unicodeRange',
923
+ 'unicode-range': 'unicodeRange',
924
+ unitsperem: 'unitsPerEm',
925
+ 'units-per-em': 'unitsPerEm',
926
+ unselectable: 'unselectable',
927
+ valphabetic: 'vAlphabetic',
928
+ 'v-alphabetic': 'vAlphabetic',
929
+ values: 'values',
930
+ vectoreffect: 'vectorEffect',
931
+ 'vector-effect': 'vectorEffect',
932
+ version: 'version',
933
+ vertadvy: 'vertAdvY',
934
+ 'vert-adv-y': 'vertAdvY',
935
+ vertoriginx: 'vertOriginX',
936
+ 'vert-origin-x': 'vertOriginX',
937
+ vertoriginy: 'vertOriginY',
938
+ 'vert-origin-y': 'vertOriginY',
939
+ vhanging: 'vHanging',
940
+ 'v-hanging': 'vHanging',
941
+ videographic: 'vIdeographic',
942
+ 'v-ideographic': 'vIdeographic',
943
+ viewbox: 'viewBox',
944
+ viewtarget: 'viewTarget',
945
+ visibility: 'visibility',
946
+ vmathematical: 'vMathematical',
947
+ 'v-mathematical': 'vMathematical',
948
+ vocab: 'vocab',
949
+ widths: 'widths',
950
+ wordspacing: 'wordSpacing',
951
+ 'word-spacing': 'wordSpacing',
952
+ writingmode: 'writingMode',
953
+ 'writing-mode': 'writingMode',
954
+ x1: 'x1',
955
+ x2: 'x2',
956
+ x: 'x',
957
+ xchannelselector: 'xChannelSelector',
958
+ xheight: 'xHeight',
959
+ 'x-height': 'xHeight',
960
+ xlinkactuate: 'xlinkActuate',
961
+ 'xlink:actuate': 'xlinkActuate',
962
+ xlinkarcrole: 'xlinkArcrole',
963
+ 'xlink:arcrole': 'xlinkArcrole',
964
+ xlinkhref: 'xlinkHref',
965
+ 'xlink:href': 'xlinkHref',
966
+ xlinkrole: 'xlinkRole',
967
+ 'xlink:role': 'xlinkRole',
968
+ xlinkshow: 'xlinkShow',
969
+ 'xlink:show': 'xlinkShow',
970
+ xlinktitle: 'xlinkTitle',
971
+ 'xlink:title': 'xlinkTitle',
972
+ xlinktype: 'xlinkType',
973
+ 'xlink:type': 'xlinkType',
974
+ xmlbase: 'xmlBase',
975
+ 'xml:base': 'xmlBase',
976
+ xmllang: 'xmlLang',
977
+ 'xml:lang': 'xmlLang',
978
+ xmlns: 'xmlns',
979
+ 'xml:space': 'xmlSpace',
980
+ xmlnsxlink: 'xmlnsXlink',
981
+ 'xmlns:xlink': 'xmlnsXlink',
982
+ xmlspace: 'xmlSpace',
983
+ y1: 'y1',
984
+ y2: 'y2',
985
+ y: 'y',
986
+ ychannelselector: 'yChannelSelector',
987
+ z: 'z',
988
+ zoomandpan: 'zoomAndPan'
989
+ };
990
+ var validateProperty$1 = function() {};
991
+ {
992
+ var warnedProperties$1 = {};
993
+ var EVENT_NAME_REGEX = /^on./;
994
+ var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/;
995
+ var rARIA$1 = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
996
+ var rARIACamel$1 = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');
997
+ validateProperty$1 = function(tagName, name, value, eventRegistry) {
998
+ if (hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) {
999
+ return true;
1000
+ }
1001
+ var lowerCasedName = name.toLowerCase();
1002
+ if (lowerCasedName === 'onfocusin' || lowerCasedName === 'onfocusout') {
1003
+ error('React uses onFocus and onBlur instead of onFocusIn and onFocusOut. ' + 'All React events are normalized to bubble, so onFocusIn and onFocusOut ' + 'are not needed/supported by React.');
1004
+ warnedProperties$1[name] = true;
1005
+ return true;
1006
+ }
1007
+ if (eventRegistry != null) {
1008
+ var registrationNameDependencies = eventRegistry.registrationNameDependencies,
1009
+ possibleRegistrationNames = eventRegistry.possibleRegistrationNames;
1010
+ if (registrationNameDependencies.hasOwnProperty(name)) {
1011
+ return true;
1012
+ }
1013
+ var registrationName = possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? possibleRegistrationNames[lowerCasedName] : null;
1014
+ if (registrationName != null) {
1015
+ error('Invalid event handler property `%s`. Did you mean `%s`?', name, registrationName);
1016
+ warnedProperties$1[name] = true;
1017
+ return true;
1018
+ }
1019
+ if (EVENT_NAME_REGEX.test(name)) {
1020
+ error('Unknown event handler property `%s`. It will be ignored.', name);
1021
+ warnedProperties$1[name] = true;
1022
+ return true;
1023
+ }
1024
+ } else if (EVENT_NAME_REGEX.test(name)) {
1025
+ if (INVALID_EVENT_NAME_REGEX.test(name)) {
1026
+ error('Invalid event handler property `%s`. ' + 'React events use the camelCase naming convention, for example `onClick`.', name);
1027
+ }
1028
+ warnedProperties$1[name] = true;
1029
+ return true;
1030
+ }
1031
+ if (rARIA$1.test(name) || rARIACamel$1.test(name)) {
1032
+ return true;
1033
+ }
1034
+ if (lowerCasedName === 'innerhtml') {
1035
+ error('Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.');
1036
+ warnedProperties$1[name] = true;
1037
+ return true;
1038
+ }
1039
+ if (lowerCasedName === 'aria') {
1040
+ error('The `aria` attribute is reserved for future use in React. ' + 'Pass individual `aria-` attributes instead.');
1041
+ warnedProperties$1[name] = true;
1042
+ return true;
1043
+ }
1044
+ if (lowerCasedName === 'is' && value !== null && value !== undefined && typeof value !== 'string') {
1045
+ error('Received a `%s` for a string attribute `is`. If this is expected, cast ' + 'the value to a string.', typeof value);
1046
+ warnedProperties$1[name] = true;
1047
+ return true;
1048
+ }
1049
+ if (typeof value === 'number' && isNaN(value)) {
1050
+ error('Received NaN for the `%s` attribute. If this is expected, cast ' + 'the value to a string.', name);
1051
+ warnedProperties$1[name] = true;
1052
+ return true;
1053
+ }
1054
+ var propertyInfo = getPropertyInfo(name);
1055
+ var isReserved = propertyInfo !== null && propertyInfo.type === RESERVED;
1056
+ if (possibleStandardNames.hasOwnProperty(lowerCasedName)) {
1057
+ var standardName = possibleStandardNames[lowerCasedName];
1058
+ if (standardName !== name) {
1059
+ error('Invalid DOM property `%s`. Did you mean `%s`?', name, standardName);
1060
+ warnedProperties$1[name] = true;
1061
+ return true;
1062
+ }
1063
+ } else if (!isReserved && name !== lowerCasedName) {
1064
+ error('React does not recognize the `%s` prop on a DOM element. If you ' + 'intentionally want it to appear in the DOM as a custom ' + 'attribute, spell it as lowercase `%s` instead. ' + 'If you accidentally passed it from a parent component, remove ' + 'it from the DOM element.', name, lowerCasedName);
1065
+ warnedProperties$1[name] = true;
1066
+ return true;
1067
+ }
1068
+ if (typeof value === 'boolean' && shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
1069
+ if (value) {
1070
+ error('Received `%s` for a non-boolean attribute `%s`.\n\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s="%s" or %s={value.toString()}.', value, name, name, value, name);
1071
+ } else {
1072
+ error('Received `%s` for a non-boolean attribute `%s`.\n\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s="%s" or %s={value.toString()}.\n\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', value, name, name, value, name, name, name);
1073
+ }
1074
+ warnedProperties$1[name] = true;
1075
+ return true;
1076
+ }
1077
+ if (isReserved) {
1078
+ return true;
1079
+ }
1080
+ if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
1081
+ warnedProperties$1[name] = true;
1082
+ return false;
1083
+ }
1084
+ if ((value === 'false' || value === 'true') && propertyInfo !== null && propertyInfo.type === BOOLEAN) {
1085
+ error('Received the string `%s` for the boolean attribute `%s`. ' + '%s ' + 'Did you mean %s={%s}?', value, name, value === 'false' ? 'The browser will interpret it as a truthy value.' : 'Although this works, it will not work as expected if you pass the string "false".', name, value);
1086
+ warnedProperties$1[name] = true;
1087
+ return true;
1088
+ }
1089
+ return true;
1090
+ };
1091
+ }
1092
+ var warnUnknownProperties = function(type, props, eventRegistry) {
1093
+ {
1094
+ var unknownProps = [];
1095
+ for (var key in props) {
1096
+ var isValid = validateProperty$1(type, key, props[key], eventRegistry);
1097
+ if (!isValid) {
1098
+ unknownProps.push(key);
1099
+ }
1100
+ }
1101
+ var unknownPropString = unknownProps.map(function(prop) {
1102
+ return '`' + prop + '`';
1103
+ }).join(', ');
1104
+ if (unknownProps.length === 1) {
1105
+ error('Invalid value for prop %s on <%s> tag. Either remove it from the element, ' + 'or pass a string or number value to keep it in the DOM. ' + 'For details, see https://reactjs.org/link/attribute-behavior ', unknownPropString, type);
1106
+ } else if (unknownProps.length > 1) {
1107
+ error('Invalid values for props %s on <%s> tag. Either remove them from the element, ' + 'or pass a string or number value to keep them in the DOM. ' + 'For details, see https://reactjs.org/link/attribute-behavior ', unknownPropString, type);
1108
+ }
1109
+ }
1110
+ };
1111
+ function validateProperties$2(type, props, eventRegistry) {
1112
+ if (isCustomComponent(type, props)) {
1113
+ return;
1114
+ }
1115
+ warnUnknownProperties(type, props, eventRegistry);
1116
+ }
1117
+ var warnValidStyle = function() {};
1118
+ {
1119
+ var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/;
1120
+ var msPattern = /^-ms-/;
1121
+ var hyphenPattern = /-(.)/g;
1122
+ var badStyleValueWithSemicolonPattern = /;\s*$/;
1123
+ var warnedStyleNames = {};
1124
+ var warnedStyleValues = {};
1125
+ var warnedForNaNValue = false;
1126
+ var warnedForInfinityValue = false;
1127
+ var camelize = function(string) {
1128
+ return string.replace(hyphenPattern, function(_, character) {
1129
+ return character.toUpperCase();
1130
+ });
1131
+ };
1132
+ var warnHyphenatedStyleName = function(name) {
1133
+ if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
1134
+ return;
1135
+ }
1136
+ warnedStyleNames[name] = true;
1137
+ error('Unsupported style property %s. Did you mean %s?', name, camelize(name.replace(msPattern, 'ms-')));
1138
+ };
1139
+ var warnBadVendoredStyleName = function(name) {
1140
+ if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
1141
+ return;
1142
+ }
1143
+ warnedStyleNames[name] = true;
1144
+ error('Unsupported vendor-prefixed style property %s. Did you mean %s?', name, name.charAt(0).toUpperCase() + name.slice(1));
1145
+ };
1146
+ var warnStyleValueWithSemicolon = function(name, value) {
1147
+ if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) {
1148
+ return;
1149
+ }
1150
+ warnedStyleValues[value] = true;
1151
+ error("Style property values shouldn't contain a semicolon. " + 'Try "%s: %s" instead.', name, value.replace(badStyleValueWithSemicolonPattern, ''));
1152
+ };
1153
+ var warnStyleValueIsNaN = function(name, value) {
1154
+ if (warnedForNaNValue) {
1155
+ return;
1156
+ }
1157
+ warnedForNaNValue = true;
1158
+ error('`NaN` is an invalid value for the `%s` css style property.', name);
1159
+ };
1160
+ var warnStyleValueIsInfinity = function(name, value) {
1161
+ if (warnedForInfinityValue) {
1162
+ return;
1163
+ }
1164
+ warnedForInfinityValue = true;
1165
+ error('`Infinity` is an invalid value for the `%s` css style property.', name);
1166
+ };
1167
+ warnValidStyle = function(name, value) {
1168
+ if (name.indexOf('-') > -1) {
1169
+ warnHyphenatedStyleName(name);
1170
+ } else if (badVendoredStyleNamePattern.test(name)) {
1171
+ warnBadVendoredStyleName(name);
1172
+ } else if (badStyleValueWithSemicolonPattern.test(value)) {
1173
+ warnStyleValueWithSemicolon(name, value);
1174
+ }
1175
+ if (typeof value === 'number') {
1176
+ if (isNaN(value)) {
1177
+ warnStyleValueIsNaN(name, value);
1178
+ } else if (!isFinite(value)) {
1179
+ warnStyleValueIsInfinity(name, value);
1180
+ }
1181
+ }
1182
+ };
1183
+ }
1184
+ var warnValidStyle$1 = warnValidStyle;
1185
+ var matchHtmlRegExp = /["'&<>]/;
1186
+ function escapeHtml(string) {
1187
+ {
1188
+ checkHtmlStringCoercion(string);
1189
+ }
1190
+ var str = '' + string;
1191
+ var match = matchHtmlRegExp.exec(str);
1192
+ if (!match) {
1193
+ return str;
1194
+ }
1195
+ var escape;
1196
+ var html = '';
1197
+ var index;
1198
+ var lastIndex = 0;
1199
+ for (index = match.index; index < str.length; index++) {
1200
+ switch (str.charCodeAt(index)) {
1201
+ case 34:
1202
+ escape = '&quot;';
1203
+ break;
1204
+ case 38:
1205
+ escape = '&amp;';
1206
+ break;
1207
+ case 39:
1208
+ escape = '&#x27;';
1209
+ break;
1210
+ case 60:
1211
+ escape = '&lt;';
1212
+ break;
1213
+ case 62:
1214
+ escape = '&gt;';
1215
+ break;
1216
+ default:
1217
+ continue;
1218
+ }
1219
+ if (lastIndex !== index) {
1220
+ html += str.substring(lastIndex, index);
1221
+ }
1222
+ lastIndex = index + 1;
1223
+ html += escape;
1224
+ }
1225
+ return lastIndex !== index ? html + str.substring(lastIndex, index) : html;
1226
+ }
1227
+ function escapeTextForBrowser(text) {
1228
+ if (typeof text === 'boolean' || typeof text === 'number') {
1229
+ return '' + text;
1230
+ }
1231
+ return escapeHtml(text);
1232
+ }
1233
+ var uppercasePattern = /([A-Z])/g;
1234
+ var msPattern$1 = /^ms-/;
1235
+ function hyphenateStyleName(name) {
1236
+ return name.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern$1, '-ms-');
1237
+ }
1238
+ var isJavaScriptProtocol = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i;
1239
+ var didWarn = false;
1240
+ function sanitizeURL(url) {
1241
+ {
1242
+ if (!didWarn && isJavaScriptProtocol.test(url)) {
1243
+ didWarn = true;
1244
+ error('A future version of React will block javascript: URLs as a security precaution. ' + 'Use event handlers instead if you can. If you need to generate unsafe HTML try ' + 'using dangerouslySetInnerHTML instead. React was passed %s.', JSON.stringify(url));
1245
+ }
1246
+ }
1247
+ }
1248
+ var isArrayImpl = Array.isArray;
1249
+ function isArray(a) {
1250
+ return isArrayImpl(a);
1251
+ }
1252
+ var startInlineScript = stringToPrecomputedChunk('<script>');
1253
+ var endInlineScript = stringToPrecomputedChunk('</script>');
1254
+ var startScriptSrc = stringToPrecomputedChunk('<script src="');
1255
+ var startModuleSrc = stringToPrecomputedChunk('<script type="module" src="');
1256
+ var endAsyncScript = stringToPrecomputedChunk('" async=""></script>');
1257
+ function createResponseState(identifierPrefix, nonce, bootstrapScriptContent, bootstrapScripts, bootstrapModules) {
1258
+ var idPrefix = identifierPrefix === undefined ? '' : identifierPrefix;
1259
+ var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk('<script nonce="' + escapeTextForBrowser(nonce) + '">');
1260
+ var bootstrapChunks = [];
1261
+ if (bootstrapScriptContent !== undefined) {
1262
+ bootstrapChunks.push(inlineScriptWithNonce, stringToChunk(escapeTextForBrowser(bootstrapScriptContent)), endInlineScript);
1263
+ }
1264
+ if (bootstrapScripts !== undefined) {
1265
+ for (var i = 0; i < bootstrapScripts.length; i++) {
1266
+ bootstrapChunks.push(startScriptSrc, stringToChunk(escapeTextForBrowser(bootstrapScripts[i])), endAsyncScript);
1267
+ }
1268
+ }
1269
+ if (bootstrapModules !== undefined) {
1270
+ for (var _i = 0; _i < bootstrapModules.length; _i++) {
1271
+ bootstrapChunks.push(startModuleSrc, stringToChunk(escapeTextForBrowser(bootstrapModules[_i])), endAsyncScript);
1272
+ }
1273
+ }
1274
+ return {
1275
+ bootstrapChunks: bootstrapChunks,
1276
+ startInlineScript: inlineScriptWithNonce,
1277
+ placeholderPrefix: stringToPrecomputedChunk(idPrefix + 'P:'),
1278
+ segmentPrefix: stringToPrecomputedChunk(idPrefix + 'S:'),
1279
+ boundaryPrefix: idPrefix + 'B:',
1280
+ idPrefix: idPrefix,
1281
+ nextSuspenseID: 0,
1282
+ sentCompleteSegmentFunction: false,
1283
+ sentCompleteBoundaryFunction: false,
1284
+ sentClientRenderFunction: false
1285
+ };
1286
+ }
1287
+ var ROOT_HTML_MODE = 0;
1288
+ var HTML_MODE = 1;
1289
+ var SVG_MODE = 2;
1290
+ var MATHML_MODE = 3;
1291
+ var HTML_TABLE_MODE = 4;
1292
+ var HTML_TABLE_BODY_MODE = 5;
1293
+ var HTML_TABLE_ROW_MODE = 6;
1294
+ var HTML_COLGROUP_MODE = 7;
1295
+ function createFormatContext(insertionMode, selectedValue) {
1296
+ return {
1297
+ insertionMode: insertionMode,
1298
+ selectedValue: selectedValue
1299
+ };
1300
+ }
1301
+ function createRootFormatContext(namespaceURI) {
1302
+ var insertionMode = namespaceURI === 'http://www.w3.org/2000/svg' ? SVG_MODE : namespaceURI === 'http://www.w3.org/1998/Math/MathML' ? MATHML_MODE : ROOT_HTML_MODE;
1303
+ return createFormatContext(insertionMode, null);
1304
+ }
1305
+ function getChildFormatContext(parentContext, type, props) {
1306
+ switch (type) {
1307
+ case 'select':
1308
+ return createFormatContext(HTML_MODE, props.value != null ? props.value : props.defaultValue);
1309
+ case 'svg':
1310
+ return createFormatContext(SVG_MODE, null);
1311
+ case 'math':
1312
+ return createFormatContext(MATHML_MODE, null);
1313
+ case 'foreignObject':
1314
+ return createFormatContext(HTML_MODE, null);
1315
+ case 'table':
1316
+ return createFormatContext(HTML_TABLE_MODE, null);
1317
+ case 'thead':
1318
+ case 'tbody':
1319
+ case 'tfoot':
1320
+ return createFormatContext(HTML_TABLE_BODY_MODE, null);
1321
+ case 'colgroup':
1322
+ return createFormatContext(HTML_COLGROUP_MODE, null);
1323
+ case 'tr':
1324
+ return createFormatContext(HTML_TABLE_ROW_MODE, null);
1325
+ }
1326
+ if (parentContext.insertionMode >= HTML_TABLE_MODE) {
1327
+ return createFormatContext(HTML_MODE, null);
1328
+ }
1329
+ if (parentContext.insertionMode === ROOT_HTML_MODE) {
1330
+ return createFormatContext(HTML_MODE, null);
1331
+ }
1332
+ return parentContext;
1333
+ }
1334
+ var UNINITIALIZED_SUSPENSE_BOUNDARY_ID = null;
1335
+ function assignSuspenseBoundaryID(responseState) {
1336
+ var generatedID = responseState.nextSuspenseID++;
1337
+ return stringToPrecomputedChunk(responseState.boundaryPrefix + generatedID.toString(16));
1338
+ }
1339
+ function makeId(responseState, treeId, localId) {
1340
+ var idPrefix = responseState.idPrefix;
1341
+ var id = ':' + idPrefix + 'R' + treeId;
1342
+ if (localId > 0) {
1343
+ id += 'H' + localId.toString(32);
1344
+ }
1345
+ return id + ':';
1346
+ }
1347
+ function encodeHTMLTextNode(text) {
1348
+ return escapeTextForBrowser(text);
1349
+ }
1350
+ var textSeparator = stringToPrecomputedChunk('<!-- -->');
1351
+ function pushTextInstance(target, text, responseState) {
1352
+ if (text === '') {
1353
+ return;
1354
+ }
1355
+ target.push(stringToChunk(encodeHTMLTextNode(text)), textSeparator);
1356
+ }
1357
+ var styleNameCache = new Map();
1358
+ function processStyleName(styleName) {
1359
+ var chunk = styleNameCache.get(styleName);
1360
+ if (chunk !== undefined) {
1361
+ return chunk;
1362
+ }
1363
+ var result = stringToPrecomputedChunk(escapeTextForBrowser(hyphenateStyleName(styleName)));
1364
+ styleNameCache.set(styleName, result);
1365
+ return result;
1366
+ }
1367
+ var styleAttributeStart = stringToPrecomputedChunk(' style="');
1368
+ var styleAssign = stringToPrecomputedChunk(':');
1369
+ var styleSeparator = stringToPrecomputedChunk(';');
1370
+ function pushStyle(target, responseState, style) {
1371
+ if (typeof style !== 'object') {
1372
+ throw new Error('The `style` prop expects a mapping from style properties to values, ' + "not a string. For example, style={{marginRight: spacing + 'em'}} when " + 'using JSX.');
1373
+ }
1374
+ var isFirst = true;
1375
+ for (var styleName in style) {
1376
+ if (!hasOwnProperty.call(style, styleName)) {
1377
+ continue;
1378
+ }
1379
+ var styleValue = style[styleName];
1380
+ if (styleValue == null || typeof styleValue === 'boolean' || styleValue === '') {
1381
+ continue;
1382
+ }
1383
+ var nameChunk = void 0;
1384
+ var valueChunk = void 0;
1385
+ var isCustomProperty = styleName.indexOf('--') === 0;
1386
+ if (isCustomProperty) {
1387
+ nameChunk = stringToChunk(escapeTextForBrowser(styleName));
1388
+ {
1389
+ checkCSSPropertyStringCoercion(styleValue, styleName);
1390
+ }
1391
+ valueChunk = stringToChunk(escapeTextForBrowser(('' + styleValue).trim()));
1392
+ } else {
1393
+ {
1394
+ warnValidStyle$1(styleName, styleValue);
1395
+ }
1396
+ nameChunk = processStyleName(styleName);
1397
+ if (typeof styleValue === 'number') {
1398
+ if (styleValue !== 0 && !hasOwnProperty.call(isUnitlessNumber, styleName)) {
1399
+ valueChunk = stringToChunk(styleValue + 'px');
1400
+ } else {
1401
+ valueChunk = stringToChunk('' + styleValue);
1402
+ }
1403
+ } else {
1404
+ {
1405
+ checkCSSPropertyStringCoercion(styleValue, styleName);
1406
+ }
1407
+ valueChunk = stringToChunk(escapeTextForBrowser(('' + styleValue).trim()));
1408
+ }
1409
+ }
1410
+ if (isFirst) {
1411
+ isFirst = false;
1412
+ target.push(styleAttributeStart, nameChunk, styleAssign, valueChunk);
1413
+ } else {
1414
+ target.push(styleSeparator, nameChunk, styleAssign, valueChunk);
1415
+ }
1416
+ }
1417
+ if (!isFirst) {
1418
+ target.push(attributeEnd);
1419
+ }
1420
+ }
1421
+ var attributeSeparator = stringToPrecomputedChunk(' ');
1422
+ var attributeAssign = stringToPrecomputedChunk('="');
1423
+ var attributeEnd = stringToPrecomputedChunk('"');
1424
+ var attributeEmptyString = stringToPrecomputedChunk('=""');
1425
+ function pushAttribute(target, responseState, name, value) {
1426
+ switch (name) {
1427
+ case 'style':
1428
+ {
1429
+ pushStyle(target, responseState, value);
1430
+ return;
1431
+ }
1432
+ case 'defaultValue':
1433
+ case 'defaultChecked':
1434
+ case 'innerHTML':
1435
+ case 'suppressContentEditableWarning':
1436
+ case 'suppressHydrationWarning':
1437
+ return;
1438
+ }
1439
+ if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) {
1440
+ return;
1441
+ }
1442
+ var propertyInfo = getPropertyInfo(name);
1443
+ if (propertyInfo !== null) {
1444
+ switch (typeof value) {
1445
+ case 'function':
1446
+ case 'symbol':
1447
+ return;
1448
+ case 'boolean':
1449
+ {
1450
+ if (!propertyInfo.acceptsBooleans) {
1451
+ return;
1452
+ }
1453
+ }
1454
+ }
1455
+ var attributeName = propertyInfo.attributeName;
1456
+ var attributeNameChunk = stringToChunk(attributeName);
1457
+ switch (propertyInfo.type) {
1458
+ case BOOLEAN:
1459
+ if (value) {
1460
+ target.push(attributeSeparator, attributeNameChunk, attributeEmptyString);
1461
+ }
1462
+ return;
1463
+ case OVERLOADED_BOOLEAN:
1464
+ if (value === true) {
1465
+ target.push(attributeSeparator, attributeNameChunk, attributeEmptyString);
1466
+ } else if (value === false)
1467
+ ;
1468
+ else {
1469
+ target.push(attributeSeparator, attributeNameChunk, attributeAssign, stringToChunk(escapeTextForBrowser(value)), attributeEnd);
1470
+ }
1471
+ return;
1472
+ case NUMERIC:
1473
+ if (!isNaN(value)) {
1474
+ target.push(attributeSeparator, attributeNameChunk, attributeAssign, stringToChunk(escapeTextForBrowser(value)), attributeEnd);
1475
+ }
1476
+ break;
1477
+ case POSITIVE_NUMERIC:
1478
+ if (!isNaN(value) && value >= 1) {
1479
+ target.push(attributeSeparator, attributeNameChunk, attributeAssign, stringToChunk(escapeTextForBrowser(value)), attributeEnd);
1480
+ }
1481
+ break;
1482
+ default:
1483
+ if (propertyInfo.sanitizeURL) {
1484
+ {
1485
+ checkAttributeStringCoercion(value, attributeName);
1486
+ }
1487
+ value = '' + value;
1488
+ sanitizeURL(value);
1489
+ }
1490
+ target.push(attributeSeparator, attributeNameChunk, attributeAssign, stringToChunk(escapeTextForBrowser(value)), attributeEnd);
1491
+ }
1492
+ } else if (isAttributeNameSafe(name)) {
1493
+ switch (typeof value) {
1494
+ case 'function':
1495
+ case 'symbol':
1496
+ return;
1497
+ case 'boolean':
1498
+ {
1499
+ var prefix = name.toLowerCase().slice(0, 5);
1500
+ if (prefix !== 'data-' && prefix !== 'aria-') {
1501
+ return;
1502
+ }
1503
+ }
1504
+ }
1505
+ target.push(attributeSeparator, stringToChunk(name), attributeAssign, stringToChunk(escapeTextForBrowser(value)), attributeEnd);
1506
+ }
1507
+ }
1508
+ var endOfStartTag = stringToPrecomputedChunk('>');
1509
+ var endOfStartTagSelfClosing = stringToPrecomputedChunk('/>');
1510
+ function pushInnerHTML(target, innerHTML, children) {
1511
+ if (innerHTML != null) {
1512
+ if (children != null) {
1513
+ throw new Error('Can only set one of `children` or `props.dangerouslySetInnerHTML`.');
1514
+ }
1515
+ if (typeof innerHTML !== 'object' || !('__html' in innerHTML)) {
1516
+ throw new Error('`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. ' + 'Please visit https://reactjs.org/link/dangerously-set-inner-html ' + 'for more information.');
1517
+ }
1518
+ var html = innerHTML.__html;
1519
+ if (html !== null && html !== undefined) {
1520
+ {
1521
+ checkHtmlStringCoercion(html);
1522
+ }
1523
+ target.push(stringToChunk('' + html));
1524
+ }
1525
+ }
1526
+ }
1527
+ var didWarnDefaultInputValue = false;
1528
+ var didWarnDefaultChecked = false;
1529
+ var didWarnDefaultSelectValue = false;
1530
+ var didWarnDefaultTextareaValue = false;
1531
+ var didWarnInvalidOptionChildren = false;
1532
+ var didWarnInvalidOptionInnerHTML = false;
1533
+ var didWarnSelectedSetOnOption = false;
1534
+ function checkSelectProp(props, propName) {
1535
+ {
1536
+ var value = props[propName];
1537
+ if (value != null) {
1538
+ var array = isArray(value);
1539
+ if (props.multiple && !array) {
1540
+ error('The `%s` prop supplied to <select> must be an array if ' + '`multiple` is true.', propName);
1541
+ } else if (!props.multiple && array) {
1542
+ error('The `%s` prop supplied to <select> must be a scalar ' + 'value if `multiple` is false.', propName);
1543
+ }
1544
+ }
1545
+ }
1546
+ }
1547
+ function pushStartSelect(target, props, responseState) {
1548
+ {
1549
+ checkControlledValueProps('select', props);
1550
+ checkSelectProp(props, 'value');
1551
+ checkSelectProp(props, 'defaultValue');
1552
+ if (props.value !== undefined && props.defaultValue !== undefined && !didWarnDefaultSelectValue) {
1553
+ error('Select elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled select ' + 'element and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components');
1554
+ didWarnDefaultSelectValue = true;
1555
+ }
1556
+ }
1557
+ target.push(startChunkForTag('select'));
1558
+ var children = null;
1559
+ var innerHTML = null;
1560
+ for (var propKey in props) {
1561
+ if (hasOwnProperty.call(props, propKey)) {
1562
+ var propValue = props[propKey];
1563
+ if (propValue == null) {
1564
+ continue;
1565
+ }
1566
+ switch (propKey) {
1567
+ case 'children':
1568
+ children = propValue;
1569
+ break;
1570
+ case 'dangerouslySetInnerHTML':
1571
+ innerHTML = propValue;
1572
+ break;
1573
+ case 'defaultValue':
1574
+ case 'value':
1575
+ break;
1576
+ default:
1577
+ pushAttribute(target, responseState, propKey, propValue);
1578
+ break;
1579
+ }
1580
+ }
1581
+ }
1582
+ target.push(endOfStartTag);
1583
+ pushInnerHTML(target, innerHTML, children);
1584
+ return children;
1585
+ }
1586
+ function flattenOptionChildren(children) {
1587
+ var content = '';
1588
+ React.Children.forEach(children, function(child) {
1589
+ if (child == null) {
1590
+ return;
1591
+ }
1592
+ content += child;
1593
+ {
1594
+ if (!didWarnInvalidOptionChildren && typeof child !== 'string' && typeof child !== 'number') {
1595
+ didWarnInvalidOptionChildren = true;
1596
+ error('Cannot infer the option value of complex children. ' + 'Pass a `value` prop or use a plain string as children to <option>.');
1597
+ }
1598
+ }
1599
+ });
1600
+ return content;
1601
+ }
1602
+ var selectedMarkerAttribute = stringToPrecomputedChunk(' selected=""');
1603
+ function pushStartOption(target, props, responseState, formatContext) {
1604
+ var selectedValue = formatContext.selectedValue;
1605
+ target.push(startChunkForTag('option'));
1606
+ var children = null;
1607
+ var value = null;
1608
+ var selected = null;
1609
+ var innerHTML = null;
1610
+ for (var propKey in props) {
1611
+ if (hasOwnProperty.call(props, propKey)) {
1612
+ var propValue = props[propKey];
1613
+ if (propValue == null) {
1614
+ continue;
1615
+ }
1616
+ switch (propKey) {
1617
+ case 'children':
1618
+ children = propValue;
1619
+ break;
1620
+ case 'selected':
1621
+ selected = propValue;
1622
+ {
1623
+ if (!didWarnSelectedSetOnOption) {
1624
+ error('Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.');
1625
+ didWarnSelectedSetOnOption = true;
1626
+ }
1627
+ }
1628
+ break;
1629
+ case 'dangerouslySetInnerHTML':
1630
+ innerHTML = propValue;
1631
+ break;
1632
+ case 'value':
1633
+ value = propValue;
1634
+ default:
1635
+ pushAttribute(target, responseState, propKey, propValue);
1636
+ break;
1637
+ }
1638
+ }
1639
+ }
1640
+ if (selectedValue != null) {
1641
+ var stringValue;
1642
+ if (value !== null) {
1643
+ {
1644
+ checkAttributeStringCoercion(value, 'value');
1645
+ }
1646
+ stringValue = '' + value;
1647
+ } else {
1648
+ {
1649
+ if (innerHTML !== null) {
1650
+ if (!didWarnInvalidOptionInnerHTML) {
1651
+ didWarnInvalidOptionInnerHTML = true;
1652
+ error('Pass a `value` prop if you set dangerouslyInnerHTML so React knows ' + 'which value should be selected.');
1653
+ }
1654
+ }
1655
+ }
1656
+ stringValue = flattenOptionChildren(children);
1657
+ }
1658
+ if (isArray(selectedValue)) {
1659
+ for (var i = 0; i < selectedValue.length; i++) {
1660
+ {
1661
+ checkAttributeStringCoercion(selectedValue[i], 'value');
1662
+ }
1663
+ var v = '' + selectedValue[i];
1664
+ if (v === stringValue) {
1665
+ target.push(selectedMarkerAttribute);
1666
+ break;
1667
+ }
1668
+ }
1669
+ } else {
1670
+ {
1671
+ checkAttributeStringCoercion(selectedValue, 'select.value');
1672
+ }
1673
+ if ('' + selectedValue === stringValue) {
1674
+ target.push(selectedMarkerAttribute);
1675
+ }
1676
+ }
1677
+ } else if (selected) {
1678
+ target.push(selectedMarkerAttribute);
1679
+ }
1680
+ target.push(endOfStartTag);
1681
+ pushInnerHTML(target, innerHTML, children);
1682
+ return children;
1683
+ }
1684
+ function pushInput(target, props, responseState) {
1685
+ {
1686
+ checkControlledValueProps('input', props);
1687
+ if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnDefaultChecked) {
1688
+ error('%s contains an input of type %s with both checked and defaultChecked props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the checked prop, or the defaultChecked prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components', 'A component', props.type);
1689
+ didWarnDefaultChecked = true;
1690
+ }
1691
+ if (props.value !== undefined && props.defaultValue !== undefined && !didWarnDefaultInputValue) {
1692
+ error('%s contains an input of type %s with both value and defaultValue props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components', 'A component', props.type);
1693
+ didWarnDefaultInputValue = true;
1694
+ }
1695
+ }
1696
+ target.push(startChunkForTag('input'));
1697
+ var value = null;
1698
+ var defaultValue = null;
1699
+ var checked = null;
1700
+ var defaultChecked = null;
1701
+ for (var propKey in props) {
1702
+ if (hasOwnProperty.call(props, propKey)) {
1703
+ var propValue = props[propKey];
1704
+ if (propValue == null) {
1705
+ continue;
1706
+ }
1707
+ switch (propKey) {
1708
+ case 'children':
1709
+ case 'dangerouslySetInnerHTML':
1710
+ throw new Error('input' + " is a self-closing tag and must neither have `children` nor " + 'use `dangerouslySetInnerHTML`.');
1711
+ case 'defaultChecked':
1712
+ defaultChecked = propValue;
1713
+ break;
1714
+ case 'defaultValue':
1715
+ defaultValue = propValue;
1716
+ break;
1717
+ case 'checked':
1718
+ checked = propValue;
1719
+ break;
1720
+ case 'value':
1721
+ value = propValue;
1722
+ break;
1723
+ default:
1724
+ pushAttribute(target, responseState, propKey, propValue);
1725
+ break;
1726
+ }
1727
+ }
1728
+ }
1729
+ if (checked !== null) {
1730
+ pushAttribute(target, responseState, 'checked', checked);
1731
+ } else if (defaultChecked !== null) {
1732
+ pushAttribute(target, responseState, 'checked', defaultChecked);
1733
+ }
1734
+ if (value !== null) {
1735
+ pushAttribute(target, responseState, 'value', value);
1736
+ } else if (defaultValue !== null) {
1737
+ pushAttribute(target, responseState, 'value', defaultValue);
1738
+ }
1739
+ target.push(endOfStartTagSelfClosing);
1740
+ return null;
1741
+ }
1742
+ function pushStartTextArea(target, props, responseState) {
1743
+ {
1744
+ checkControlledValueProps('textarea', props);
1745
+ if (props.value !== undefined && props.defaultValue !== undefined && !didWarnDefaultTextareaValue) {
1746
+ error('Textarea elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled textarea ' + 'and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components');
1747
+ didWarnDefaultTextareaValue = true;
1748
+ }
1749
+ }
1750
+ target.push(startChunkForTag('textarea'));
1751
+ var value = null;
1752
+ var defaultValue = null;
1753
+ var children = null;
1754
+ for (var propKey in props) {
1755
+ if (hasOwnProperty.call(props, propKey)) {
1756
+ var propValue = props[propKey];
1757
+ if (propValue == null) {
1758
+ continue;
1759
+ }
1760
+ switch (propKey) {
1761
+ case 'children':
1762
+ children = propValue;
1763
+ break;
1764
+ case 'value':
1765
+ value = propValue;
1766
+ break;
1767
+ case 'defaultValue':
1768
+ defaultValue = propValue;
1769
+ break;
1770
+ case 'dangerouslySetInnerHTML':
1771
+ throw new Error('`dangerouslySetInnerHTML` does not make sense on <textarea>.');
1772
+ default:
1773
+ pushAttribute(target, responseState, propKey, propValue);
1774
+ break;
1775
+ }
1776
+ }
1777
+ }
1778
+ if (value === null && defaultValue !== null) {
1779
+ value = defaultValue;
1780
+ }
1781
+ target.push(endOfStartTag);
1782
+ if (children != null) {
1783
+ {
1784
+ error('Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.');
1785
+ }
1786
+ if (value != null) {
1787
+ throw new Error('If you supply `defaultValue` on a <textarea>, do not pass children.');
1788
+ }
1789
+ if (isArray(children)) {
1790
+ if (children.length > 1) {
1791
+ throw new Error('<textarea> can only have at most one child.');
1792
+ }
1793
+ {
1794
+ checkHtmlStringCoercion(children[0]);
1795
+ }
1796
+ value = '' + children[0];
1797
+ }
1798
+ {
1799
+ checkHtmlStringCoercion(children);
1800
+ }
1801
+ value = '' + children;
1802
+ }
1803
+ if (typeof value === 'string' && value[0] === '\n') {
1804
+ target.push(leadingNewline);
1805
+ }
1806
+ if (value !== null) {
1807
+ {
1808
+ checkAttributeStringCoercion(value, 'value');
1809
+ }
1810
+ target.push(stringToChunk(encodeHTMLTextNode('' + value)));
1811
+ }
1812
+ return null;
1813
+ }
1814
+ function pushSelfClosing(target, props, tag, responseState) {
1815
+ target.push(startChunkForTag(tag));
1816
+ for (var propKey in props) {
1817
+ if (hasOwnProperty.call(props, propKey)) {
1818
+ var propValue = props[propKey];
1819
+ if (propValue == null) {
1820
+ continue;
1821
+ }
1822
+ switch (propKey) {
1823
+ case 'children':
1824
+ case 'dangerouslySetInnerHTML':
1825
+ throw new Error(tag + " is a self-closing tag and must neither have `children` nor " + 'use `dangerouslySetInnerHTML`.');
1826
+ default:
1827
+ pushAttribute(target, responseState, propKey, propValue);
1828
+ break;
1829
+ }
1830
+ }
1831
+ }
1832
+ target.push(endOfStartTagSelfClosing);
1833
+ return null;
1834
+ }
1835
+ function pushStartMenuItem(target, props, responseState) {
1836
+ target.push(startChunkForTag('menuitem'));
1837
+ for (var propKey in props) {
1838
+ if (hasOwnProperty.call(props, propKey)) {
1839
+ var propValue = props[propKey];
1840
+ if (propValue == null) {
1841
+ continue;
1842
+ }
1843
+ switch (propKey) {
1844
+ case 'children':
1845
+ case 'dangerouslySetInnerHTML':
1846
+ throw new Error('menuitems cannot have `children` nor `dangerouslySetInnerHTML`.');
1847
+ default:
1848
+ pushAttribute(target, responseState, propKey, propValue);
1849
+ break;
1850
+ }
1851
+ }
1852
+ }
1853
+ target.push(endOfStartTag);
1854
+ return null;
1855
+ }
1856
+ function pushStartGenericElement(target, props, tag, responseState) {
1857
+ target.push(startChunkForTag(tag));
1858
+ var children = null;
1859
+ var innerHTML = null;
1860
+ for (var propKey in props) {
1861
+ if (hasOwnProperty.call(props, propKey)) {
1862
+ var propValue = props[propKey];
1863
+ if (propValue == null) {
1864
+ continue;
1865
+ }
1866
+ switch (propKey) {
1867
+ case 'children':
1868
+ children = propValue;
1869
+ break;
1870
+ case 'dangerouslySetInnerHTML':
1871
+ innerHTML = propValue;
1872
+ break;
1873
+ default:
1874
+ pushAttribute(target, responseState, propKey, propValue);
1875
+ break;
1876
+ }
1877
+ }
1878
+ }
1879
+ target.push(endOfStartTag);
1880
+ pushInnerHTML(target, innerHTML, children);
1881
+ if (typeof children === 'string') {
1882
+ target.push(stringToChunk(encodeHTMLTextNode(children)));
1883
+ return null;
1884
+ }
1885
+ return children;
1886
+ }
1887
+ function pushStartCustomElement(target, props, tag, responseState) {
1888
+ target.push(startChunkForTag(tag));
1889
+ var children = null;
1890
+ var innerHTML = null;
1891
+ for (var propKey in props) {
1892
+ if (hasOwnProperty.call(props, propKey)) {
1893
+ var propValue = props[propKey];
1894
+ if (propValue == null) {
1895
+ continue;
1896
+ }
1897
+ switch (propKey) {
1898
+ case 'children':
1899
+ children = propValue;
1900
+ break;
1901
+ case 'dangerouslySetInnerHTML':
1902
+ innerHTML = propValue;
1903
+ break;
1904
+ case 'style':
1905
+ pushStyle(target, responseState, propValue);
1906
+ break;
1907
+ case 'suppressContentEditableWarning':
1908
+ case 'suppressHydrationWarning':
1909
+ break;
1910
+ default:
1911
+ if (isAttributeNameSafe(propKey) && typeof propValue !== 'function' && typeof propValue !== 'symbol') {
1912
+ target.push(attributeSeparator, stringToChunk(propKey), attributeAssign, stringToChunk(escapeTextForBrowser(propValue)), attributeEnd);
1913
+ }
1914
+ break;
1915
+ }
1916
+ }
1917
+ }
1918
+ target.push(endOfStartTag);
1919
+ pushInnerHTML(target, innerHTML, children);
1920
+ return children;
1921
+ }
1922
+ var leadingNewline = stringToPrecomputedChunk('\n');
1923
+ function pushStartPreformattedElement(target, props, tag, responseState) {
1924
+ target.push(startChunkForTag(tag));
1925
+ var children = null;
1926
+ var innerHTML = null;
1927
+ for (var propKey in props) {
1928
+ if (hasOwnProperty.call(props, propKey)) {
1929
+ var propValue = props[propKey];
1930
+ if (propValue == null) {
1931
+ continue;
1932
+ }
1933
+ switch (propKey) {
1934
+ case 'children':
1935
+ children = propValue;
1936
+ break;
1937
+ case 'dangerouslySetInnerHTML':
1938
+ innerHTML = propValue;
1939
+ break;
1940
+ default:
1941
+ pushAttribute(target, responseState, propKey, propValue);
1942
+ break;
1943
+ }
1944
+ }
1945
+ }
1946
+ target.push(endOfStartTag);
1947
+ if (innerHTML != null) {
1948
+ if (children != null) {
1949
+ throw new Error('Can only set one of `children` or `props.dangerouslySetInnerHTML`.');
1950
+ }
1951
+ if (typeof innerHTML !== 'object' || !('__html' in innerHTML)) {
1952
+ throw new Error('`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. ' + 'Please visit https://reactjs.org/link/dangerously-set-inner-html ' + 'for more information.');
1953
+ }
1954
+ var html = innerHTML.__html;
1955
+ if (html !== null && html !== undefined) {
1956
+ if (typeof html === 'string' && html.length > 0 && html[0] === '\n') {
1957
+ target.push(leadingNewline, stringToChunk(html));
1958
+ } else {
1959
+ {
1960
+ checkHtmlStringCoercion(html);
1961
+ }
1962
+ target.push(stringToChunk('' + html));
1963
+ }
1964
+ }
1965
+ }
1966
+ if (typeof children === 'string' && children[0] === '\n') {
1967
+ target.push(leadingNewline);
1968
+ }
1969
+ return children;
1970
+ }
1971
+ var VALID_TAG_REGEX = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/;
1972
+ var validatedTagCache = new Map();
1973
+ function startChunkForTag(tag) {
1974
+ var tagStartChunk = validatedTagCache.get(tag);
1975
+ if (tagStartChunk === undefined) {
1976
+ if (!VALID_TAG_REGEX.test(tag)) {
1977
+ throw new Error("Invalid tag: " + tag);
1978
+ }
1979
+ tagStartChunk = stringToPrecomputedChunk('<' + tag);
1980
+ validatedTagCache.set(tag, tagStartChunk);
1981
+ }
1982
+ return tagStartChunk;
1983
+ }
1984
+ var DOCTYPE = stringToPrecomputedChunk('<!DOCTYPE html>');
1985
+ function pushStartInstance(target, type, props, responseState, formatContext) {
1986
+ {
1987
+ validateProperties(type, props);
1988
+ validateProperties$1(type, props);
1989
+ validateProperties$2(type, props, null);
1990
+ if (!props.suppressContentEditableWarning && props.contentEditable && props.children != null) {
1991
+ error('A component is `contentEditable` and contains `children` managed by ' + 'React. It is now your responsibility to guarantee that none of ' + 'those nodes are unexpectedly modified or duplicated. This is ' + 'probably not intentional.');
1992
+ }
1993
+ if (formatContext.insertionMode !== SVG_MODE && formatContext.insertionMode !== MATHML_MODE) {
1994
+ if (type.indexOf('-') === -1 && typeof props.is !== 'string' && type.toLowerCase() !== type) {
1995
+ error('<%s /> is using incorrect casing. ' + 'Use PascalCase for React components, ' + 'or lowercase for HTML elements.', type);
1996
+ }
1997
+ }
1998
+ }
1999
+ switch (type) {
2000
+ case 'select':
2001
+ return pushStartSelect(target, props, responseState);
2002
+ case 'option':
2003
+ return pushStartOption(target, props, responseState, formatContext);
2004
+ case 'textarea':
2005
+ return pushStartTextArea(target, props, responseState);
2006
+ case 'input':
2007
+ return pushInput(target, props, responseState);
2008
+ case 'menuitem':
2009
+ return pushStartMenuItem(target, props, responseState);
2010
+ case 'listing':
2011
+ case 'pre':
2012
+ {
2013
+ return pushStartPreformattedElement(target, props, type, responseState);
2014
+ }
2015
+ case 'area':
2016
+ case 'base':
2017
+ case 'br':
2018
+ case 'col':
2019
+ case 'embed':
2020
+ case 'hr':
2021
+ case 'img':
2022
+ case 'keygen':
2023
+ case 'link':
2024
+ case 'meta':
2025
+ case 'param':
2026
+ case 'source':
2027
+ case 'track':
2028
+ case 'wbr':
2029
+ {
2030
+ return pushSelfClosing(target, props, type, responseState);
2031
+ }
2032
+ case 'annotation-xml':
2033
+ case 'color-profile':
2034
+ case 'font-face':
2035
+ case 'font-face-src':
2036
+ case 'font-face-uri':
2037
+ case 'font-face-format':
2038
+ case 'font-face-name':
2039
+ case 'missing-glyph':
2040
+ {
2041
+ return pushStartGenericElement(target, props, type, responseState);
2042
+ }
2043
+ case 'html':
2044
+ {
2045
+ if (formatContext.insertionMode === ROOT_HTML_MODE) {
2046
+ target.push(DOCTYPE);
2047
+ }
2048
+ return pushStartGenericElement(target, props, type, responseState);
2049
+ }
2050
+ default:
2051
+ {
2052
+ if (type.indexOf('-') === -1 && typeof props.is !== 'string') {
2053
+ return pushStartGenericElement(target, props, type, responseState);
2054
+ } else {
2055
+ return pushStartCustomElement(target, props, type, responseState);
2056
+ }
2057
+ }
2058
+ }
2059
+ }
2060
+ var endTag1 = stringToPrecomputedChunk('</');
2061
+ var endTag2 = stringToPrecomputedChunk('>');
2062
+ function pushEndInstance(target, type, props) {
2063
+ switch (type) {
2064
+ case 'area':
2065
+ case 'base':
2066
+ case 'br':
2067
+ case 'col':
2068
+ case 'embed':
2069
+ case 'hr':
2070
+ case 'img':
2071
+ case 'input':
2072
+ case 'keygen':
2073
+ case 'link':
2074
+ case 'meta':
2075
+ case 'param':
2076
+ case 'source':
2077
+ case 'track':
2078
+ case 'wbr':
2079
+ {
2080
+ break;
2081
+ }
2082
+ default:
2083
+ {
2084
+ target.push(endTag1, stringToChunk(type), endTag2);
2085
+ }
2086
+ }
2087
+ }
2088
+ function writeCompletedRoot(destination, responseState) {
2089
+ var bootstrapChunks = responseState.bootstrapChunks;
2090
+ var i = 0;
2091
+ for (; i < bootstrapChunks.length - 1; i++) {
2092
+ writeChunk(destination, bootstrapChunks[i]);
2093
+ }
2094
+ if (i < bootstrapChunks.length) {
2095
+ return writeChunkAndReturn(destination, bootstrapChunks[i]);
2096
+ }
2097
+ return true;
2098
+ }
2099
+ var placeholder1 = stringToPrecomputedChunk('<template id="');
2100
+ var placeholder2 = stringToPrecomputedChunk('"></template>');
2101
+ function writePlaceholder(destination, responseState, id) {
2102
+ writeChunk(destination, placeholder1);
2103
+ writeChunk(destination, responseState.placeholderPrefix);
2104
+ var formattedID = stringToChunk(id.toString(16));
2105
+ writeChunk(destination, formattedID);
2106
+ return writeChunkAndReturn(destination, placeholder2);
2107
+ }
2108
+ var startCompletedSuspenseBoundary = stringToPrecomputedChunk('<!--$-->');
2109
+ var startPendingSuspenseBoundary1 = stringToPrecomputedChunk('<!--$?--><template id="');
2110
+ var startPendingSuspenseBoundary2 = stringToPrecomputedChunk('"></template>');
2111
+ var startClientRenderedSuspenseBoundary = stringToPrecomputedChunk('<!--$!-->');
2112
+ var endSuspenseBoundary = stringToPrecomputedChunk('<!--/$-->');
2113
+ function writeStartCompletedSuspenseBoundary(destination, responseState) {
2114
+ return writeChunkAndReturn(destination, startCompletedSuspenseBoundary);
2115
+ }
2116
+ function writeStartPendingSuspenseBoundary(destination, responseState, id) {
2117
+ writeChunk(destination, startPendingSuspenseBoundary1);
2118
+ if (id === null) {
2119
+ throw new Error('An ID must have been assigned before we can complete the boundary.');
2120
+ }
2121
+ writeChunk(destination, id);
2122
+ return writeChunkAndReturn(destination, startPendingSuspenseBoundary2);
2123
+ }
2124
+ function writeStartClientRenderedSuspenseBoundary(destination, responseState) {
2125
+ return writeChunkAndReturn(destination, startClientRenderedSuspenseBoundary);
2126
+ }
2127
+ function writeEndCompletedSuspenseBoundary(destination, responseState) {
2128
+ return writeChunkAndReturn(destination, endSuspenseBoundary);
2129
+ }
2130
+ function writeEndPendingSuspenseBoundary(destination, responseState) {
2131
+ return writeChunkAndReturn(destination, endSuspenseBoundary);
2132
+ }
2133
+ function writeEndClientRenderedSuspenseBoundary(destination, responseState) {
2134
+ return writeChunkAndReturn(destination, endSuspenseBoundary);
2135
+ }
2136
+ var startSegmentHTML = stringToPrecomputedChunk('<div hidden id="');
2137
+ var startSegmentHTML2 = stringToPrecomputedChunk('">');
2138
+ var endSegmentHTML = stringToPrecomputedChunk('</div>');
2139
+ var startSegmentSVG = stringToPrecomputedChunk('<svg aria-hidden="true" style="display:none" id="');
2140
+ var startSegmentSVG2 = stringToPrecomputedChunk('">');
2141
+ var endSegmentSVG = stringToPrecomputedChunk('</svg>');
2142
+ var startSegmentMathML = stringToPrecomputedChunk('<math aria-hidden="true" style="display:none" id="');
2143
+ var startSegmentMathML2 = stringToPrecomputedChunk('">');
2144
+ var endSegmentMathML = stringToPrecomputedChunk('</math>');
2145
+ var startSegmentTable = stringToPrecomputedChunk('<table hidden id="');
2146
+ var startSegmentTable2 = stringToPrecomputedChunk('">');
2147
+ var endSegmentTable = stringToPrecomputedChunk('</table>');
2148
+ var startSegmentTableBody = stringToPrecomputedChunk('<table hidden><tbody id="');
2149
+ var startSegmentTableBody2 = stringToPrecomputedChunk('">');
2150
+ var endSegmentTableBody = stringToPrecomputedChunk('</tbody></table>');
2151
+ var startSegmentTableRow = stringToPrecomputedChunk('<table hidden><tr id="');
2152
+ var startSegmentTableRow2 = stringToPrecomputedChunk('">');
2153
+ var endSegmentTableRow = stringToPrecomputedChunk('</tr></table>');
2154
+ var startSegmentColGroup = stringToPrecomputedChunk('<table hidden><colgroup id="');
2155
+ var startSegmentColGroup2 = stringToPrecomputedChunk('">');
2156
+ var endSegmentColGroup = stringToPrecomputedChunk('</colgroup></table>');
2157
+ function writeStartSegment(destination, responseState, formatContext, id) {
2158
+ switch (formatContext.insertionMode) {
2159
+ case ROOT_HTML_MODE:
2160
+ case HTML_MODE:
2161
+ {
2162
+ writeChunk(destination, startSegmentHTML);
2163
+ writeChunk(destination, responseState.segmentPrefix);
2164
+ writeChunk(destination, stringToChunk(id.toString(16)));
2165
+ return writeChunkAndReturn(destination, startSegmentHTML2);
2166
+ }
2167
+ case SVG_MODE:
2168
+ {
2169
+ writeChunk(destination, startSegmentSVG);
2170
+ writeChunk(destination, responseState.segmentPrefix);
2171
+ writeChunk(destination, stringToChunk(id.toString(16)));
2172
+ return writeChunkAndReturn(destination, startSegmentSVG2);
2173
+ }
2174
+ case MATHML_MODE:
2175
+ {
2176
+ writeChunk(destination, startSegmentMathML);
2177
+ writeChunk(destination, responseState.segmentPrefix);
2178
+ writeChunk(destination, stringToChunk(id.toString(16)));
2179
+ return writeChunkAndReturn(destination, startSegmentMathML2);
2180
+ }
2181
+ case HTML_TABLE_MODE:
2182
+ {
2183
+ writeChunk(destination, startSegmentTable);
2184
+ writeChunk(destination, responseState.segmentPrefix);
2185
+ writeChunk(destination, stringToChunk(id.toString(16)));
2186
+ return writeChunkAndReturn(destination, startSegmentTable2);
2187
+ }
2188
+ case HTML_TABLE_BODY_MODE:
2189
+ {
2190
+ writeChunk(destination, startSegmentTableBody);
2191
+ writeChunk(destination, responseState.segmentPrefix);
2192
+ writeChunk(destination, stringToChunk(id.toString(16)));
2193
+ return writeChunkAndReturn(destination, startSegmentTableBody2);
2194
+ }
2195
+ case HTML_TABLE_ROW_MODE:
2196
+ {
2197
+ writeChunk(destination, startSegmentTableRow);
2198
+ writeChunk(destination, responseState.segmentPrefix);
2199
+ writeChunk(destination, stringToChunk(id.toString(16)));
2200
+ return writeChunkAndReturn(destination, startSegmentTableRow2);
2201
+ }
2202
+ case HTML_COLGROUP_MODE:
2203
+ {
2204
+ writeChunk(destination, startSegmentColGroup);
2205
+ writeChunk(destination, responseState.segmentPrefix);
2206
+ writeChunk(destination, stringToChunk(id.toString(16)));
2207
+ return writeChunkAndReturn(destination, startSegmentColGroup2);
2208
+ }
2209
+ default:
2210
+ {
2211
+ throw new Error('Unknown insertion mode. This is a bug in React.');
2212
+ }
2213
+ }
2214
+ }
2215
+ function writeEndSegment(destination, formatContext) {
2216
+ switch (formatContext.insertionMode) {
2217
+ case ROOT_HTML_MODE:
2218
+ case HTML_MODE:
2219
+ {
2220
+ return writeChunkAndReturn(destination, endSegmentHTML);
2221
+ }
2222
+ case SVG_MODE:
2223
+ {
2224
+ return writeChunkAndReturn(destination, endSegmentSVG);
2225
+ }
2226
+ case MATHML_MODE:
2227
+ {
2228
+ return writeChunkAndReturn(destination, endSegmentMathML);
2229
+ }
2230
+ case HTML_TABLE_MODE:
2231
+ {
2232
+ return writeChunkAndReturn(destination, endSegmentTable);
2233
+ }
2234
+ case HTML_TABLE_BODY_MODE:
2235
+ {
2236
+ return writeChunkAndReturn(destination, endSegmentTableBody);
2237
+ }
2238
+ case HTML_TABLE_ROW_MODE:
2239
+ {
2240
+ return writeChunkAndReturn(destination, endSegmentTableRow);
2241
+ }
2242
+ case HTML_COLGROUP_MODE:
2243
+ {
2244
+ return writeChunkAndReturn(destination, endSegmentColGroup);
2245
+ }
2246
+ default:
2247
+ {
2248
+ throw new Error('Unknown insertion mode. This is a bug in React.');
2249
+ }
2250
+ }
2251
+ }
2252
+ var completeSegmentFunction = 'function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}';
2253
+ var completeBoundaryFunction = 'function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}';
2254
+ var clientRenderFunction = 'function $RX(a){if(a=document.getElementById(a))a=a.previousSibling,a.data="$!",a._reactRetry&&a._reactRetry()}';
2255
+ var completeSegmentScript1Full = stringToPrecomputedChunk(completeSegmentFunction + ';$RS("');
2256
+ var completeSegmentScript1Partial = stringToPrecomputedChunk('$RS("');
2257
+ var completeSegmentScript2 = stringToPrecomputedChunk('","');
2258
+ var completeSegmentScript3 = stringToPrecomputedChunk('")</script>');
2259
+ function writeCompletedSegmentInstruction(destination, responseState, contentSegmentID) {
2260
+ writeChunk(destination, responseState.startInlineScript);
2261
+ if (!responseState.sentCompleteSegmentFunction) {
2262
+ responseState.sentCompleteSegmentFunction = true;
2263
+ writeChunk(destination, completeSegmentScript1Full);
2264
+ } else {
2265
+ writeChunk(destination, completeSegmentScript1Partial);
2266
+ }
2267
+ writeChunk(destination, responseState.segmentPrefix);
2268
+ var formattedID = stringToChunk(contentSegmentID.toString(16));
2269
+ writeChunk(destination, formattedID);
2270
+ writeChunk(destination, completeSegmentScript2);
2271
+ writeChunk(destination, responseState.placeholderPrefix);
2272
+ writeChunk(destination, formattedID);
2273
+ return writeChunkAndReturn(destination, completeSegmentScript3);
2274
+ }
2275
+ var completeBoundaryScript1Full = stringToPrecomputedChunk(completeBoundaryFunction + ';$RC("');
2276
+ var completeBoundaryScript1Partial = stringToPrecomputedChunk('$RC("');
2277
+ var completeBoundaryScript2 = stringToPrecomputedChunk('","');
2278
+ var completeBoundaryScript3 = stringToPrecomputedChunk('")</script>');
2279
+ function writeCompletedBoundaryInstruction(destination, responseState, boundaryID, contentSegmentID) {
2280
+ writeChunk(destination, responseState.startInlineScript);
2281
+ if (!responseState.sentCompleteBoundaryFunction) {
2282
+ responseState.sentCompleteBoundaryFunction = true;
2283
+ writeChunk(destination, completeBoundaryScript1Full);
2284
+ } else {
2285
+ writeChunk(destination, completeBoundaryScript1Partial);
2286
+ }
2287
+ if (boundaryID === null) {
2288
+ throw new Error('An ID must have been assigned before we can complete the boundary.');
2289
+ }
2290
+ var formattedContentID = stringToChunk(contentSegmentID.toString(16));
2291
+ writeChunk(destination, boundaryID);
2292
+ writeChunk(destination, completeBoundaryScript2);
2293
+ writeChunk(destination, responseState.segmentPrefix);
2294
+ writeChunk(destination, formattedContentID);
2295
+ return writeChunkAndReturn(destination, completeBoundaryScript3);
2296
+ }
2297
+ var clientRenderScript1Full = stringToPrecomputedChunk(clientRenderFunction + ';$RX("');
2298
+ var clientRenderScript1Partial = stringToPrecomputedChunk('$RX("');
2299
+ var clientRenderScript2 = stringToPrecomputedChunk('")</script>');
2300
+ function writeClientRenderBoundaryInstruction(destination, responseState, boundaryID) {
2301
+ writeChunk(destination, responseState.startInlineScript);
2302
+ if (!responseState.sentClientRenderFunction) {
2303
+ responseState.sentClientRenderFunction = true;
2304
+ writeChunk(destination, clientRenderScript1Full);
2305
+ } else {
2306
+ writeChunk(destination, clientRenderScript1Partial);
2307
+ }
2308
+ if (boundaryID === null) {
2309
+ throw new Error('An ID must have been assigned before we can complete the boundary.');
2310
+ }
2311
+ writeChunk(destination, boundaryID);
2312
+ return writeChunkAndReturn(destination, clientRenderScript2);
2313
+ }
2314
+ var assign = Object.assign;
2315
+ var REACT_ELEMENT_TYPE = Symbol.for('react.element');
2316
+ var REACT_PORTAL_TYPE = Symbol.for('react.portal');
2317
+ var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
2318
+ var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
2319
+ var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
2320
+ var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
2321
+ var REACT_CONTEXT_TYPE = Symbol.for('react.context');
2322
+ var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
2323
+ var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
2324
+ var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
2325
+ var REACT_MEMO_TYPE = Symbol.for('react.memo');
2326
+ var REACT_LAZY_TYPE = Symbol.for('react.lazy');
2327
+ var REACT_SCOPE_TYPE = Symbol.for('react.scope');
2328
+ var REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for('react.debug_trace_mode');
2329
+ var REACT_LEGACY_HIDDEN_TYPE = Symbol.for('react.legacy_hidden');
2330
+ var REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED = Symbol.for('react.default_value');
2331
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
2332
+ var FAUX_ITERATOR_SYMBOL = '@@iterator';
2333
+ function getIteratorFn(maybeIterable) {
2334
+ if (maybeIterable === null || typeof maybeIterable !== 'object') {
2335
+ return null;
2336
+ }
2337
+ var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
2338
+ if (typeof maybeIterator === 'function') {
2339
+ return maybeIterator;
2340
+ }
2341
+ return null;
2342
+ }
2343
+ function getWrappedName(outerType, innerType, wrapperName) {
2344
+ var displayName = outerType.displayName;
2345
+ if (displayName) {
2346
+ return displayName;
2347
+ }
2348
+ var functionName = innerType.displayName || innerType.name || '';
2349
+ return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
2350
+ }
2351
+ function getContextName(type) {
2352
+ return type.displayName || 'Context';
2353
+ }
2354
+ function getComponentNameFromType(type) {
2355
+ if (type == null) {
2356
+ return null;
2357
+ }
2358
+ {
2359
+ if (typeof type.tag === 'number') {
2360
+ error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
2361
+ }
2362
+ }
2363
+ if (typeof type === 'function') {
2364
+ return type.displayName || type.name || null;
2365
+ }
2366
+ if (typeof type === 'string') {
2367
+ return type;
2368
+ }
2369
+ switch (type) {
2370
+ case REACT_FRAGMENT_TYPE:
2371
+ return 'Fragment';
2372
+ case REACT_PORTAL_TYPE:
2373
+ return 'Portal';
2374
+ case REACT_PROFILER_TYPE:
2375
+ return 'Profiler';
2376
+ case REACT_STRICT_MODE_TYPE:
2377
+ return 'StrictMode';
2378
+ case REACT_SUSPENSE_TYPE:
2379
+ return 'Suspense';
2380
+ case REACT_SUSPENSE_LIST_TYPE:
2381
+ return 'SuspenseList';
2382
+ }
2383
+ if (typeof type === 'object') {
2384
+ switch (type.$$typeof) {
2385
+ case REACT_CONTEXT_TYPE:
2386
+ var context = type;
2387
+ return getContextName(context) + '.Consumer';
2388
+ case REACT_PROVIDER_TYPE:
2389
+ var provider = type;
2390
+ return getContextName(provider._context) + '.Provider';
2391
+ case REACT_FORWARD_REF_TYPE:
2392
+ return getWrappedName(type, type.render, 'ForwardRef');
2393
+ case REACT_MEMO_TYPE:
2394
+ var outerName = type.displayName || null;
2395
+ if (outerName !== null) {
2396
+ return outerName;
2397
+ }
2398
+ return getComponentNameFromType(type.type) || 'Memo';
2399
+ case REACT_LAZY_TYPE:
2400
+ {
2401
+ var lazyComponent = type;
2402
+ var payload = lazyComponent._payload;
2403
+ var init = lazyComponent._init;
2404
+ try {
2405
+ return getComponentNameFromType(init(payload));
2406
+ } catch (x) {
2407
+ return null;
2408
+ }
2409
+ }
2410
+ }
2411
+ }
2412
+ return null;
2413
+ }
2414
+ var disabledDepth = 0;
2415
+ var prevLog;
2416
+ var prevInfo;
2417
+ var prevWarn;
2418
+ var prevError;
2419
+ var prevGroup;
2420
+ var prevGroupCollapsed;
2421
+ var prevGroupEnd;
2422
+ function disabledLog() {}
2423
+ disabledLog.__reactDisabledLog = true;
2424
+ function disableLogs() {
2425
+ {
2426
+ if (disabledDepth === 0) {
2427
+ prevLog = console.log;
2428
+ prevInfo = console.info;
2429
+ prevWarn = console.warn;
2430
+ prevError = console.error;
2431
+ prevGroup = console.group;
2432
+ prevGroupCollapsed = console.groupCollapsed;
2433
+ prevGroupEnd = console.groupEnd;
2434
+ var props = {
2435
+ configurable: true,
2436
+ enumerable: true,
2437
+ value: disabledLog,
2438
+ writable: true
2439
+ };
2440
+ Object.defineProperties(console, {
2441
+ info: props,
2442
+ log: props,
2443
+ warn: props,
2444
+ error: props,
2445
+ group: props,
2446
+ groupCollapsed: props,
2447
+ groupEnd: props
2448
+ });
2449
+ }
2450
+ disabledDepth++;
2451
+ }
2452
+ }
2453
+ function reenableLogs() {
2454
+ {
2455
+ disabledDepth--;
2456
+ if (disabledDepth === 0) {
2457
+ var props = {
2458
+ configurable: true,
2459
+ enumerable: true,
2460
+ writable: true
2461
+ };
2462
+ Object.defineProperties(console, {
2463
+ log: assign({}, props, {value: prevLog}),
2464
+ info: assign({}, props, {value: prevInfo}),
2465
+ warn: assign({}, props, {value: prevWarn}),
2466
+ error: assign({}, props, {value: prevError}),
2467
+ group: assign({}, props, {value: prevGroup}),
2468
+ groupCollapsed: assign({}, props, {value: prevGroupCollapsed}),
2469
+ groupEnd: assign({}, props, {value: prevGroupEnd})
2470
+ });
2471
+ }
2472
+ if (disabledDepth < 0) {
2473
+ error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
2474
+ }
2475
+ }
2476
+ }
2477
+ var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
2478
+ var prefix;
2479
+ function describeBuiltInComponentFrame(name, source, ownerFn) {
2480
+ {
2481
+ if (prefix === undefined) {
2482
+ try {
2483
+ throw Error();
2484
+ } catch (x) {
2485
+ var match = x.stack.trim().match(/\n( *(at )?)/);
2486
+ prefix = match && match[1] || '';
2487
+ }
2488
+ }
2489
+ return '\n' + prefix + name;
2490
+ }
2491
+ }
2492
+ var reentry = false;
2493
+ var componentFrameCache;
2494
+ {
2495
+ var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
2496
+ componentFrameCache = new PossiblyWeakMap();
2497
+ }
2498
+ function describeNativeComponentFrame(fn, construct) {
2499
+ if (!fn || reentry) {
2500
+ return '';
2501
+ }
2502
+ {
2503
+ var frame = componentFrameCache.get(fn);
2504
+ if (frame !== undefined) {
2505
+ return frame;
2506
+ }
2507
+ }
2508
+ var control;
2509
+ reentry = true;
2510
+ var previousPrepareStackTrace = Error.prepareStackTrace;
2511
+ Error.prepareStackTrace = undefined;
2512
+ var previousDispatcher;
2513
+ {
2514
+ previousDispatcher = ReactCurrentDispatcher.current;
2515
+ ReactCurrentDispatcher.current = null;
2516
+ disableLogs();
2517
+ }
2518
+ try {
2519
+ if (construct) {
2520
+ var Fake = function() {
2521
+ throw Error();
2522
+ };
2523
+ Object.defineProperty(Fake.prototype, 'props', {set: function() {
2524
+ throw Error();
2525
+ }});
2526
+ if (typeof Reflect === 'object' && Reflect.construct) {
2527
+ try {
2528
+ Reflect.construct(Fake, []);
2529
+ } catch (x) {
2530
+ control = x;
2531
+ }
2532
+ Reflect.construct(fn, [], Fake);
2533
+ } else {
2534
+ try {
2535
+ Fake.call();
2536
+ } catch (x) {
2537
+ control = x;
2538
+ }
2539
+ fn.call(Fake.prototype);
2540
+ }
2541
+ } else {
2542
+ try {
2543
+ throw Error();
2544
+ } catch (x) {
2545
+ control = x;
2546
+ }
2547
+ fn();
2548
+ }
2549
+ } catch (sample) {
2550
+ if (sample && control && typeof sample.stack === 'string') {
2551
+ var sampleLines = sample.stack.split('\n');
2552
+ var controlLines = control.stack.split('\n');
2553
+ var s = sampleLines.length - 1;
2554
+ var c = controlLines.length - 1;
2555
+ while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
2556
+ c--;
2557
+ }
2558
+ for (; s >= 1 && c >= 0; s--, c--) {
2559
+ if (sampleLines[s] !== controlLines[c]) {
2560
+ if (s !== 1 || c !== 1) {
2561
+ do {
2562
+ s--;
2563
+ c--;
2564
+ if (c < 0 || sampleLines[s] !== controlLines[c]) {
2565
+ var _frame = '\n' + sampleLines[s].replace(' at new ', ' at ');
2566
+ if (fn.displayName && _frame.includes('<anonymous>')) {
2567
+ _frame = _frame.replace('<anonymous>', fn.displayName);
2568
+ }
2569
+ {
2570
+ if (typeof fn === 'function') {
2571
+ componentFrameCache.set(fn, _frame);
2572
+ }
2573
+ }
2574
+ return _frame;
2575
+ }
2576
+ } while (s >= 1 && c >= 0);
2577
+ }
2578
+ break;
2579
+ }
2580
+ }
2581
+ }
2582
+ } finally {
2583
+ reentry = false;
2584
+ {
2585
+ ReactCurrentDispatcher.current = previousDispatcher;
2586
+ reenableLogs();
2587
+ }
2588
+ Error.prepareStackTrace = previousPrepareStackTrace;
2589
+ }
2590
+ var name = fn ? fn.displayName || fn.name : '';
2591
+ var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
2592
+ {
2593
+ if (typeof fn === 'function') {
2594
+ componentFrameCache.set(fn, syntheticFrame);
2595
+ }
2596
+ }
2597
+ return syntheticFrame;
2598
+ }
2599
+ function describeClassComponentFrame(ctor, source, ownerFn) {
2600
+ {
2601
+ return describeNativeComponentFrame(ctor, true);
2602
+ }
2603
+ }
2604
+ function describeFunctionComponentFrame(fn, source, ownerFn) {
2605
+ {
2606
+ return describeNativeComponentFrame(fn, false);
2607
+ }
2608
+ }
2609
+ function shouldConstruct(Component) {
2610
+ var prototype = Component.prototype;
2611
+ return !!(prototype && prototype.isReactComponent);
2612
+ }
2613
+ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
2614
+ if (type == null) {
2615
+ return '';
2616
+ }
2617
+ if (typeof type === 'function') {
2618
+ {
2619
+ return describeNativeComponentFrame(type, shouldConstruct(type));
2620
+ }
2621
+ }
2622
+ if (typeof type === 'string') {
2623
+ return describeBuiltInComponentFrame(type);
2624
+ }
2625
+ switch (type) {
2626
+ case REACT_SUSPENSE_TYPE:
2627
+ return describeBuiltInComponentFrame('Suspense');
2628
+ case REACT_SUSPENSE_LIST_TYPE:
2629
+ return describeBuiltInComponentFrame('SuspenseList');
2630
+ }
2631
+ if (typeof type === 'object') {
2632
+ switch (type.$$typeof) {
2633
+ case REACT_FORWARD_REF_TYPE:
2634
+ return describeFunctionComponentFrame(type.render);
2635
+ case REACT_MEMO_TYPE:
2636
+ return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
2637
+ case REACT_LAZY_TYPE:
2638
+ {
2639
+ var lazyComponent = type;
2640
+ var payload = lazyComponent._payload;
2641
+ var init = lazyComponent._init;
2642
+ try {
2643
+ return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
2644
+ } catch (x) {}
2645
+ }
2646
+ }
2647
+ }
2648
+ return '';
2649
+ }
2650
+ var loggedTypeFailures = {};
2651
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
2652
+ function setCurrentlyValidatingElement(element) {
2653
+ {
2654
+ if (element) {
2655
+ var owner = element._owner;
2656
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
2657
+ ReactDebugCurrentFrame.setExtraStackFrame(stack);
2658
+ } else {
2659
+ ReactDebugCurrentFrame.setExtraStackFrame(null);
2660
+ }
2661
+ }
2662
+ }
2663
+ function checkPropTypes(typeSpecs, values, location, componentName, element) {
2664
+ {
2665
+ var has = Function.call.bind(hasOwnProperty);
2666
+ for (var typeSpecName in typeSpecs) {
2667
+ if (has(typeSpecs, typeSpecName)) {
2668
+ var error$1 = void 0;
2669
+ try {
2670
+ if (typeof typeSpecs[typeSpecName] !== 'function') {
2671
+ var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
2672
+ err.name = 'Invariant Violation';
2673
+ throw err;
2674
+ }
2675
+ error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
2676
+ } catch (ex) {
2677
+ error$1 = ex;
2678
+ }
2679
+ if (error$1 && !(error$1 instanceof Error)) {
2680
+ setCurrentlyValidatingElement(element);
2681
+ error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);
2682
+ setCurrentlyValidatingElement(null);
2683
+ }
2684
+ if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
2685
+ loggedTypeFailures[error$1.message] = true;
2686
+ setCurrentlyValidatingElement(element);
2687
+ error('Failed %s type: %s', location, error$1.message);
2688
+ setCurrentlyValidatingElement(null);
2689
+ }
2690
+ }
2691
+ }
2692
+ }
2693
+ }
2694
+ var warnedAboutMissingGetChildContext;
2695
+ {
2696
+ warnedAboutMissingGetChildContext = {};
2697
+ }
2698
+ var emptyContextObject = {};
2699
+ {
2700
+ Object.freeze(emptyContextObject);
2701
+ }
2702
+ function getMaskedContext(type, unmaskedContext) {
2703
+ {
2704
+ var contextTypes = type.contextTypes;
2705
+ if (!contextTypes) {
2706
+ return emptyContextObject;
2707
+ }
2708
+ var context = {};
2709
+ for (var key in contextTypes) {
2710
+ context[key] = unmaskedContext[key];
2711
+ }
2712
+ {
2713
+ var name = getComponentNameFromType(type) || 'Unknown';
2714
+ checkPropTypes(contextTypes, context, 'context', name);
2715
+ }
2716
+ return context;
2717
+ }
2718
+ }
2719
+ function processChildContext(instance, type, parentContext, childContextTypes) {
2720
+ {
2721
+ if (typeof instance.getChildContext !== 'function') {
2722
+ {
2723
+ var componentName = getComponentNameFromType(type) || 'Unknown';
2724
+ if (!warnedAboutMissingGetChildContext[componentName]) {
2725
+ warnedAboutMissingGetChildContext[componentName] = true;
2726
+ error('%s.childContextTypes is specified but there is no getChildContext() method ' + 'on the instance. You can either define getChildContext() on %s or remove ' + 'childContextTypes from it.', componentName, componentName);
2727
+ }
2728
+ }
2729
+ return parentContext;
2730
+ }
2731
+ var childContext = instance.getChildContext();
2732
+ for (var contextKey in childContext) {
2733
+ if (!(contextKey in childContextTypes)) {
2734
+ throw new Error((getComponentNameFromType(type) || 'Unknown') + ".getChildContext(): key \"" + contextKey + "\" is not defined in childContextTypes.");
2735
+ }
2736
+ }
2737
+ {
2738
+ var name = getComponentNameFromType(type) || 'Unknown';
2739
+ checkPropTypes(childContextTypes, childContext, 'child context', name);
2740
+ }
2741
+ return assign({}, parentContext, childContext);
2742
+ }
2743
+ }
2744
+ var rendererSigil;
2745
+ {
2746
+ rendererSigil = {};
2747
+ }
2748
+ var rootContextSnapshot = null;
2749
+ var currentActiveSnapshot = null;
2750
+ function popNode(prev) {
2751
+ {
2752
+ prev.context._currentValue = prev.parentValue;
2753
+ }
2754
+ }
2755
+ function pushNode(next) {
2756
+ {
2757
+ next.context._currentValue = next.value;
2758
+ }
2759
+ }
2760
+ function popToNearestCommonAncestor(prev, next) {
2761
+ if (prev === next)
2762
+ ;
2763
+ else {
2764
+ popNode(prev);
2765
+ var parentPrev = prev.parent;
2766
+ var parentNext = next.parent;
2767
+ if (parentPrev === null) {
2768
+ if (parentNext !== null) {
2769
+ throw new Error('The stacks must reach the root at the same time. This is a bug in React.');
2770
+ }
2771
+ } else {
2772
+ if (parentNext === null) {
2773
+ throw new Error('The stacks must reach the root at the same time. This is a bug in React.');
2774
+ }
2775
+ popToNearestCommonAncestor(parentPrev, parentNext);
2776
+ }
2777
+ pushNode(next);
2778
+ }
2779
+ }
2780
+ function popAllPrevious(prev) {
2781
+ popNode(prev);
2782
+ var parentPrev = prev.parent;
2783
+ if (parentPrev !== null) {
2784
+ popAllPrevious(parentPrev);
2785
+ }
2786
+ }
2787
+ function pushAllNext(next) {
2788
+ var parentNext = next.parent;
2789
+ if (parentNext !== null) {
2790
+ pushAllNext(parentNext);
2791
+ }
2792
+ pushNode(next);
2793
+ }
2794
+ function popPreviousToCommonLevel(prev, next) {
2795
+ popNode(prev);
2796
+ var parentPrev = prev.parent;
2797
+ if (parentPrev === null) {
2798
+ throw new Error('The depth must equal at least at zero before reaching the root. This is a bug in React.');
2799
+ }
2800
+ if (parentPrev.depth === next.depth) {
2801
+ popToNearestCommonAncestor(parentPrev, next);
2802
+ } else {
2803
+ popPreviousToCommonLevel(parentPrev, next);
2804
+ }
2805
+ }
2806
+ function popNextToCommonLevel(prev, next) {
2807
+ var parentNext = next.parent;
2808
+ if (parentNext === null) {
2809
+ throw new Error('The depth must equal at least at zero before reaching the root. This is a bug in React.');
2810
+ }
2811
+ if (prev.depth === parentNext.depth) {
2812
+ popToNearestCommonAncestor(prev, parentNext);
2813
+ } else {
2814
+ popNextToCommonLevel(prev, parentNext);
2815
+ }
2816
+ pushNode(next);
2817
+ }
2818
+ function switchContext(newSnapshot) {
2819
+ var prev = currentActiveSnapshot;
2820
+ var next = newSnapshot;
2821
+ if (prev !== next) {
2822
+ if (prev === null) {
2823
+ pushAllNext(next);
2824
+ } else if (next === null) {
2825
+ popAllPrevious(prev);
2826
+ } else if (prev.depth === next.depth) {
2827
+ popToNearestCommonAncestor(prev, next);
2828
+ } else if (prev.depth > next.depth) {
2829
+ popPreviousToCommonLevel(prev, next);
2830
+ } else {
2831
+ popNextToCommonLevel(prev, next);
2832
+ }
2833
+ currentActiveSnapshot = next;
2834
+ }
2835
+ }
2836
+ function pushProvider(context, nextValue) {
2837
+ var prevValue;
2838
+ {
2839
+ prevValue = context._currentValue;
2840
+ context._currentValue = nextValue;
2841
+ {
2842
+ if (context._currentRenderer !== undefined && context._currentRenderer !== null && context._currentRenderer !== rendererSigil) {
2843
+ error('Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.');
2844
+ }
2845
+ context._currentRenderer = rendererSigil;
2846
+ }
2847
+ }
2848
+ var prevNode = currentActiveSnapshot;
2849
+ var newNode = {
2850
+ parent: prevNode,
2851
+ depth: prevNode === null ? 0 : prevNode.depth + 1,
2852
+ context: context,
2853
+ parentValue: prevValue,
2854
+ value: nextValue
2855
+ };
2856
+ currentActiveSnapshot = newNode;
2857
+ return newNode;
2858
+ }
2859
+ function popProvider(context) {
2860
+ var prevSnapshot = currentActiveSnapshot;
2861
+ if (prevSnapshot === null) {
2862
+ throw new Error('Tried to pop a Context at the root of the app. This is a bug in React.');
2863
+ }
2864
+ {
2865
+ if (prevSnapshot.context !== context) {
2866
+ error('The parent context is not the expected context. This is probably a bug in React.');
2867
+ }
2868
+ }
2869
+ {
2870
+ var value = prevSnapshot.parentValue;
2871
+ if (value === REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED) {
2872
+ prevSnapshot.context._currentValue = prevSnapshot.context._defaultValue;
2873
+ } else {
2874
+ prevSnapshot.context._currentValue = value;
2875
+ }
2876
+ {
2877
+ if (context._currentRenderer !== undefined && context._currentRenderer !== null && context._currentRenderer !== rendererSigil) {
2878
+ error('Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.');
2879
+ }
2880
+ context._currentRenderer = rendererSigil;
2881
+ }
2882
+ }
2883
+ return currentActiveSnapshot = prevSnapshot.parent;
2884
+ }
2885
+ function getActiveContext() {
2886
+ return currentActiveSnapshot;
2887
+ }
2888
+ function readContext(context) {
2889
+ var value = context._currentValue;
2890
+ return value;
2891
+ }
2892
+ function get(key) {
2893
+ return key._reactInternals;
2894
+ }
2895
+ function set(key, value) {
2896
+ key._reactInternals = value;
2897
+ }
2898
+ var didWarnAboutNoopUpdateForComponent = {};
2899
+ var didWarnAboutDeprecatedWillMount = {};
2900
+ var didWarnAboutUninitializedState;
2901
+ var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate;
2902
+ var didWarnAboutLegacyLifecyclesAndDerivedState;
2903
+ var didWarnAboutUndefinedDerivedState;
2904
+ var warnOnUndefinedDerivedState;
2905
+ var warnOnInvalidCallback;
2906
+ var didWarnAboutDirectlyAssigningPropsToState;
2907
+ var didWarnAboutContextTypeAndContextTypes;
2908
+ var didWarnAboutInvalidateContextType;
2909
+ {
2910
+ didWarnAboutUninitializedState = new Set();
2911
+ didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set();
2912
+ didWarnAboutLegacyLifecyclesAndDerivedState = new Set();
2913
+ didWarnAboutDirectlyAssigningPropsToState = new Set();
2914
+ didWarnAboutUndefinedDerivedState = new Set();
2915
+ didWarnAboutContextTypeAndContextTypes = new Set();
2916
+ didWarnAboutInvalidateContextType = new Set();
2917
+ var didWarnOnInvalidCallback = new Set();
2918
+ warnOnInvalidCallback = function(callback, callerName) {
2919
+ if (callback === null || typeof callback === 'function') {
2920
+ return;
2921
+ }
2922
+ var key = callerName + '_' + callback;
2923
+ if (!didWarnOnInvalidCallback.has(key)) {
2924
+ didWarnOnInvalidCallback.add(key);
2925
+ error('%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);
2926
+ }
2927
+ };
2928
+ warnOnUndefinedDerivedState = function(type, partialState) {
2929
+ if (partialState === undefined) {
2930
+ var componentName = getComponentNameFromType(type) || 'Component';
2931
+ if (!didWarnAboutUndefinedDerivedState.has(componentName)) {
2932
+ didWarnAboutUndefinedDerivedState.add(componentName);
2933
+ error('%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. ' + 'You have returned undefined.', componentName);
2934
+ }
2935
+ }
2936
+ };
2937
+ }
2938
+ function warnNoop(publicInstance, callerName) {
2939
+ {
2940
+ var _constructor = publicInstance.constructor;
2941
+ var componentName = _constructor && getComponentNameFromType(_constructor) || 'ReactClass';
2942
+ var warningKey = componentName + '.' + callerName;
2943
+ if (didWarnAboutNoopUpdateForComponent[warningKey]) {
2944
+ return;
2945
+ }
2946
+ error('%s(...): Can only update a mounting component. ' + 'This usually means you called %s() outside componentWillMount() on the server. ' + 'This is a no-op.\n\nPlease check the code for the %s component.', callerName, callerName, componentName);
2947
+ didWarnAboutNoopUpdateForComponent[warningKey] = true;
2948
+ }
2949
+ }
2950
+ var classComponentUpdater = {
2951
+ isMounted: function(inst) {
2952
+ return false;
2953
+ },
2954
+ enqueueSetState: function(inst, payload, callback) {
2955
+ var internals = get(inst);
2956
+ if (internals.queue === null) {
2957
+ warnNoop(inst, 'setState');
2958
+ } else {
2959
+ internals.queue.push(payload);
2960
+ {
2961
+ if (callback !== undefined && callback !== null) {
2962
+ warnOnInvalidCallback(callback, 'setState');
2963
+ }
2964
+ }
2965
+ }
2966
+ },
2967
+ enqueueReplaceState: function(inst, payload, callback) {
2968
+ var internals = get(inst);
2969
+ internals.replace = true;
2970
+ internals.queue = [payload];
2971
+ {
2972
+ if (callback !== undefined && callback !== null) {
2973
+ warnOnInvalidCallback(callback, 'setState');
2974
+ }
2975
+ }
2976
+ },
2977
+ enqueueForceUpdate: function(inst, callback) {
2978
+ var internals = get(inst);
2979
+ if (internals.queue === null) {
2980
+ warnNoop(inst, 'forceUpdate');
2981
+ } else {
2982
+ {
2983
+ if (callback !== undefined && callback !== null) {
2984
+ warnOnInvalidCallback(callback, 'setState');
2985
+ }
2986
+ }
2987
+ }
2988
+ }
2989
+ };
2990
+ function applyDerivedStateFromProps(instance, ctor, getDerivedStateFromProps, prevState, nextProps) {
2991
+ var partialState = getDerivedStateFromProps(nextProps, prevState);
2992
+ {
2993
+ warnOnUndefinedDerivedState(ctor, partialState);
2994
+ }
2995
+ var newState = partialState === null || partialState === undefined ? prevState : assign({}, prevState, partialState);
2996
+ return newState;
2997
+ }
2998
+ function constructClassInstance(ctor, props, maskedLegacyContext) {
2999
+ var context = emptyContextObject;
3000
+ var contextType = ctor.contextType;
3001
+ {
3002
+ if ('contextType' in ctor) {
3003
+ var isValid = contextType === null || contextType !== undefined && contextType.$$typeof === REACT_CONTEXT_TYPE && contextType._context === undefined;
3004
+ if (!isValid && !didWarnAboutInvalidateContextType.has(ctor)) {
3005
+ didWarnAboutInvalidateContextType.add(ctor);
3006
+ var addendum = '';
3007
+ if (contextType === undefined) {
3008
+ addendum = ' However, it is set to undefined. ' + 'This can be caused by a typo or by mixing up named and default imports. ' + 'This can also happen due to a circular dependency, so ' + 'try moving the createContext() call to a separate file.';
3009
+ } else if (typeof contextType !== 'object') {
3010
+ addendum = ' However, it is set to a ' + typeof contextType + '.';
3011
+ } else if (contextType.$$typeof === REACT_PROVIDER_TYPE) {
3012
+ addendum = ' Did you accidentally pass the Context.Provider instead?';
3013
+ } else if (contextType._context !== undefined) {
3014
+ addendum = ' Did you accidentally pass the Context.Consumer instead?';
3015
+ } else {
3016
+ addendum = ' However, it is set to an object with keys {' + Object.keys(contextType).join(', ') + '}.';
3017
+ }
3018
+ error('%s defines an invalid contextType. ' + 'contextType should point to the Context object returned by React.createContext().%s', getComponentNameFromType(ctor) || 'Component', addendum);
3019
+ }
3020
+ }
3021
+ }
3022
+ if (typeof contextType === 'object' && contextType !== null) {
3023
+ context = readContext(contextType);
3024
+ } else {
3025
+ context = maskedLegacyContext;
3026
+ }
3027
+ var instance = new ctor(props, context);
3028
+ {
3029
+ if (typeof ctor.getDerivedStateFromProps === 'function' && (instance.state === null || instance.state === undefined)) {
3030
+ var componentName = getComponentNameFromType(ctor) || 'Component';
3031
+ if (!didWarnAboutUninitializedState.has(componentName)) {
3032
+ didWarnAboutUninitializedState.add(componentName);
3033
+ error('`%s` uses `getDerivedStateFromProps` but its initial state is ' + '%s. This is not recommended. Instead, define the initial state by ' + 'assigning an object to `this.state` in the constructor of `%s`. ' + 'This ensures that `getDerivedStateFromProps` arguments have a consistent shape.', componentName, instance.state === null ? 'null' : 'undefined', componentName);
3034
+ }
3035
+ }
3036
+ if (typeof ctor.getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function') {
3037
+ var foundWillMountName = null;
3038
+ var foundWillReceivePropsName = null;
3039
+ var foundWillUpdateName = null;
3040
+ if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true) {
3041
+ foundWillMountName = 'componentWillMount';
3042
+ } else if (typeof instance.UNSAFE_componentWillMount === 'function') {
3043
+ foundWillMountName = 'UNSAFE_componentWillMount';
3044
+ }
3045
+ if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
3046
+ foundWillReceivePropsName = 'componentWillReceiveProps';
3047
+ } else if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
3048
+ foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';
3049
+ }
3050
+ if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
3051
+ foundWillUpdateName = 'componentWillUpdate';
3052
+ } else if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
3053
+ foundWillUpdateName = 'UNSAFE_componentWillUpdate';
3054
+ }
3055
+ if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) {
3056
+ var _componentName = getComponentNameFromType(ctor) || 'Component';
3057
+ var newApiName = typeof ctor.getDerivedStateFromProps === 'function' ? 'getDerivedStateFromProps()' : 'getSnapshotBeforeUpdate()';
3058
+ if (!didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName)) {
3059
+ didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName);
3060
+ error('Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n' + '%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\n' + 'The above lifecycles should be removed. Learn more about this warning here:\n' + 'https://reactjs.org/link/unsafe-component-lifecycles', _componentName, newApiName, foundWillMountName !== null ? "\n " + foundWillMountName : '', foundWillReceivePropsName !== null ? "\n " + foundWillReceivePropsName : '', foundWillUpdateName !== null ? "\n " + foundWillUpdateName : '');
3061
+ }
3062
+ }
3063
+ }
3064
+ }
3065
+ return instance;
3066
+ }
3067
+ function checkClassInstance(instance, ctor, newProps) {
3068
+ {
3069
+ var name = getComponentNameFromType(ctor) || 'Component';
3070
+ var renderPresent = instance.render;
3071
+ if (!renderPresent) {
3072
+ if (ctor.prototype && typeof ctor.prototype.render === 'function') {
3073
+ error('%s(...): No `render` method found on the returned component ' + 'instance: did you accidentally return an object from the constructor?', name);
3074
+ } else {
3075
+ error('%s(...): No `render` method found on the returned component ' + 'instance: you may have forgotten to define `render`.', name);
3076
+ }
3077
+ }
3078
+ if (instance.getInitialState && !instance.getInitialState.isReactClassApproved && !instance.state) {
3079
+ error('getInitialState was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Did you mean to define a state property instead?', name);
3080
+ }
3081
+ if (instance.getDefaultProps && !instance.getDefaultProps.isReactClassApproved) {
3082
+ error('getDefaultProps was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Use a static property to define defaultProps instead.', name);
3083
+ }
3084
+ if (instance.propTypes) {
3085
+ error('propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', name);
3086
+ }
3087
+ if (instance.contextType) {
3088
+ error('contextType was defined as an instance property on %s. Use a static ' + 'property to define contextType instead.', name);
3089
+ }
3090
+ {
3091
+ if (instance.contextTypes) {
3092
+ error('contextTypes was defined as an instance property on %s. Use a static ' + 'property to define contextTypes instead.', name);
3093
+ }
3094
+ if (ctor.contextType && ctor.contextTypes && !didWarnAboutContextTypeAndContextTypes.has(ctor)) {
3095
+ didWarnAboutContextTypeAndContextTypes.add(ctor);
3096
+ error('%s declares both contextTypes and contextType static properties. ' + 'The legacy contextTypes property will be ignored.', name);
3097
+ }
3098
+ }
3099
+ if (typeof instance.componentShouldUpdate === 'function') {
3100
+ error('%s has a method called ' + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + 'The name is phrased as a question because the function is ' + 'expected to return a value.', name);
3101
+ }
3102
+ if (ctor.prototype && ctor.prototype.isPureReactComponent && typeof instance.shouldComponentUpdate !== 'undefined') {
3103
+ error('%s has a method called shouldComponentUpdate(). ' + 'shouldComponentUpdate should not be used when extending React.PureComponent. ' + 'Please extend React.Component if shouldComponentUpdate is used.', getComponentNameFromType(ctor) || 'A pure component');
3104
+ }
3105
+ if (typeof instance.componentDidUnmount === 'function') {
3106
+ error('%s has a method called ' + 'componentDidUnmount(). But there is no such lifecycle method. ' + 'Did you mean componentWillUnmount()?', name);
3107
+ }
3108
+ if (typeof instance.componentDidReceiveProps === 'function') {
3109
+ error('%s has a method called ' + 'componentDidReceiveProps(). But there is no such lifecycle method. ' + 'If you meant to update the state in response to changing props, ' + 'use componentWillReceiveProps(). If you meant to fetch data or ' + 'run side-effects or mutations after React has updated the UI, use componentDidUpdate().', name);
3110
+ }
3111
+ if (typeof instance.componentWillRecieveProps === 'function') {
3112
+ error('%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', name);
3113
+ }
3114
+ if (typeof instance.UNSAFE_componentWillRecieveProps === 'function') {
3115
+ error('%s has a method called ' + 'UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?', name);
3116
+ }
3117
+ var hasMutatedProps = instance.props !== newProps;
3118
+ if (instance.props !== undefined && hasMutatedProps) {
3119
+ error('%s(...): When calling super() in `%s`, make sure to pass ' + "up the same props that your component's constructor was passed.", name, name);
3120
+ }
3121
+ if (instance.defaultProps) {
3122
+ error('Setting defaultProps as an instance property on %s is not supported and will be ignored.' + ' Instead, define defaultProps as a static property on %s.', name, name);
3123
+ }
3124
+ if (typeof instance.getSnapshotBeforeUpdate === 'function' && typeof instance.componentDidUpdate !== 'function' && !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(ctor)) {
3125
+ didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(ctor);
3126
+ error('%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). ' + 'This component defines getSnapshotBeforeUpdate() only.', getComponentNameFromType(ctor));
3127
+ }
3128
+ if (typeof instance.getDerivedStateFromProps === 'function') {
3129
+ error('%s: getDerivedStateFromProps() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name);
3130
+ }
3131
+ if (typeof instance.getDerivedStateFromError === 'function') {
3132
+ error('%s: getDerivedStateFromError() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name);
3133
+ }
3134
+ if (typeof ctor.getSnapshotBeforeUpdate === 'function') {
3135
+ error('%s: getSnapshotBeforeUpdate() is defined as a static method ' + 'and will be ignored. Instead, declare it as an instance method.', name);
3136
+ }
3137
+ var _state = instance.state;
3138
+ if (_state && (typeof _state !== 'object' || isArray(_state))) {
3139
+ error('%s.state: must be set to an object or null', name);
3140
+ }
3141
+ if (typeof instance.getChildContext === 'function' && typeof ctor.childContextTypes !== 'object') {
3142
+ error('%s.getChildContext(): childContextTypes must be defined in order to ' + 'use getChildContext().', name);
3143
+ }
3144
+ }
3145
+ }
3146
+ function callComponentWillMount(type, instance) {
3147
+ var oldState = instance.state;
3148
+ if (typeof instance.componentWillMount === 'function') {
3149
+ {
3150
+ if (instance.componentWillMount.__suppressDeprecationWarning !== true) {
3151
+ var componentName = getComponentNameFromType(type) || 'Unknown';
3152
+ if (!didWarnAboutDeprecatedWillMount[componentName]) {
3153
+ warn('componentWillMount has been renamed, and is not recommended for use. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n' + '* Move code from componentWillMount to componentDidMount (preferred in most cases) ' + 'or the constructor.\n' + '\nPlease update the following components: %s', componentName);
3154
+ didWarnAboutDeprecatedWillMount[componentName] = true;
3155
+ }
3156
+ }
3157
+ }
3158
+ instance.componentWillMount();
3159
+ }
3160
+ if (typeof instance.UNSAFE_componentWillMount === 'function') {
3161
+ instance.UNSAFE_componentWillMount();
3162
+ }
3163
+ if (oldState !== instance.state) {
3164
+ {
3165
+ error('%s.componentWillMount(): Assigning directly to this.state is ' + "deprecated (except inside a component's " + 'constructor). Use setState instead.', getComponentNameFromType(type) || 'Component');
3166
+ }
3167
+ classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
3168
+ }
3169
+ }
3170
+ function processUpdateQueue(internalInstance, inst, props, maskedLegacyContext) {
3171
+ if (internalInstance.queue !== null && internalInstance.queue.length > 0) {
3172
+ var oldQueue = internalInstance.queue;
3173
+ var oldReplace = internalInstance.replace;
3174
+ internalInstance.queue = null;
3175
+ internalInstance.replace = false;
3176
+ if (oldReplace && oldQueue.length === 1) {
3177
+ inst.state = oldQueue[0];
3178
+ } else {
3179
+ var nextState = oldReplace ? oldQueue[0] : inst.state;
3180
+ var dontMutate = true;
3181
+ for (var i = oldReplace ? 1 : 0; i < oldQueue.length; i++) {
3182
+ var partial = oldQueue[i];
3183
+ var partialState = typeof partial === 'function' ? partial.call(inst, nextState, props, maskedLegacyContext) : partial;
3184
+ if (partialState != null) {
3185
+ if (dontMutate) {
3186
+ dontMutate = false;
3187
+ nextState = assign({}, nextState, partialState);
3188
+ } else {
3189
+ assign(nextState, partialState);
3190
+ }
3191
+ }
3192
+ }
3193
+ inst.state = nextState;
3194
+ }
3195
+ } else {
3196
+ internalInstance.queue = null;
3197
+ }
3198
+ }
3199
+ function mountClassInstance(instance, ctor, newProps, maskedLegacyContext) {
3200
+ {
3201
+ checkClassInstance(instance, ctor, newProps);
3202
+ }
3203
+ var initialState = instance.state !== undefined ? instance.state : null;
3204
+ instance.updater = classComponentUpdater;
3205
+ instance.props = newProps;
3206
+ instance.state = initialState;
3207
+ var internalInstance = {
3208
+ queue: [],
3209
+ replace: false
3210
+ };
3211
+ set(instance, internalInstance);
3212
+ var contextType = ctor.contextType;
3213
+ if (typeof contextType === 'object' && contextType !== null) {
3214
+ instance.context = readContext(contextType);
3215
+ } else {
3216
+ instance.context = maskedLegacyContext;
3217
+ }
3218
+ {
3219
+ if (instance.state === newProps) {
3220
+ var componentName = getComponentNameFromType(ctor) || 'Component';
3221
+ if (!didWarnAboutDirectlyAssigningPropsToState.has(componentName)) {
3222
+ didWarnAboutDirectlyAssigningPropsToState.add(componentName);
3223
+ error('%s: It is not recommended to assign props directly to state ' + "because updates to props won't be reflected in state. " + 'In most cases, it is better to use props directly.', componentName);
3224
+ }
3225
+ }
3226
+ }
3227
+ var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
3228
+ if (typeof getDerivedStateFromProps === 'function') {
3229
+ instance.state = applyDerivedStateFromProps(instance, ctor, getDerivedStateFromProps, initialState, newProps);
3230
+ }
3231
+ if (typeof ctor.getDerivedStateFromProps !== 'function' && typeof instance.getSnapshotBeforeUpdate !== 'function' && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
3232
+ callComponentWillMount(ctor, instance);
3233
+ processUpdateQueue(internalInstance, instance, newProps, maskedLegacyContext);
3234
+ }
3235
+ }
3236
+ var emptyTreeContext = {
3237
+ id: 1,
3238
+ overflow: ''
3239
+ };
3240
+ function getTreeId(context) {
3241
+ var overflow = context.overflow;
3242
+ var idWithLeadingBit = context.id;
3243
+ var id = idWithLeadingBit & ~getLeadingBit(idWithLeadingBit);
3244
+ return id.toString(32) + overflow;
3245
+ }
3246
+ function pushTreeContext(baseContext, totalChildren, index) {
3247
+ var baseIdWithLeadingBit = baseContext.id;
3248
+ var baseOverflow = baseContext.overflow;
3249
+ var baseLength = getBitLength(baseIdWithLeadingBit) - 1;
3250
+ var baseId = baseIdWithLeadingBit & ~(1 << baseLength);
3251
+ var slot = index + 1;
3252
+ var length = getBitLength(totalChildren) + baseLength;
3253
+ if (length > 30) {
3254
+ var numberOfOverflowBits = baseLength - baseLength % 5;
3255
+ var newOverflowBits = (1 << numberOfOverflowBits) - 1;
3256
+ var newOverflow = (baseId & newOverflowBits).toString(32);
3257
+ var restOfBaseId = baseId >> numberOfOverflowBits;
3258
+ var restOfBaseLength = baseLength - numberOfOverflowBits;
3259
+ var restOfLength = getBitLength(totalChildren) + restOfBaseLength;
3260
+ var restOfNewBits = slot << restOfBaseLength;
3261
+ var id = restOfNewBits | restOfBaseId;
3262
+ var overflow = newOverflow + baseOverflow;
3263
+ return {
3264
+ id: 1 << restOfLength | id,
3265
+ overflow: overflow
3266
+ };
3267
+ } else {
3268
+ var newBits = slot << baseLength;
3269
+ var _id = newBits | baseId;
3270
+ var _overflow = baseOverflow;
3271
+ return {
3272
+ id: 1 << length | _id,
3273
+ overflow: _overflow
3274
+ };
3275
+ }
3276
+ }
3277
+ function getBitLength(number) {
3278
+ return 32 - clz32(number);
3279
+ }
3280
+ function getLeadingBit(id) {
3281
+ return 1 << getBitLength(id) - 1;
3282
+ }
3283
+ var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback;
3284
+ var log = Math.log;
3285
+ var LN2 = Math.LN2;
3286
+ function clz32Fallback(x) {
3287
+ var asUint = x >>> 0;
3288
+ if (asUint === 0) {
3289
+ return 32;
3290
+ }
3291
+ return 31 - (log(asUint) / LN2 | 0) | 0;
3292
+ }
3293
+ function is(x, y) {
3294
+ return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y;
3295
+ ;
3296
+ }
3297
+ var objectIs = typeof Object.is === 'function' ? Object.is : is;
3298
+ var currentlyRenderingComponent = null;
3299
+ var currentlyRenderingTask = null;
3300
+ var firstWorkInProgressHook = null;
3301
+ var workInProgressHook = null;
3302
+ var isReRender = false;
3303
+ var didScheduleRenderPhaseUpdate = false;
3304
+ var localIdCounter = 0;
3305
+ var renderPhaseUpdates = null;
3306
+ var numberOfReRenders = 0;
3307
+ var RE_RENDER_LIMIT = 25;
3308
+ var isInHookUserCodeInDev = false;
3309
+ var currentHookNameInDev;
3310
+ function resolveCurrentlyRenderingComponent() {
3311
+ if (currentlyRenderingComponent === null) {
3312
+ throw new Error('Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for' + ' one of the following reasons:\n' + '1. You might have mismatching versions of React and the renderer (such as React DOM)\n' + '2. You might be breaking the Rules of Hooks\n' + '3. You might have more than one copy of React in the same app\n' + 'See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.');
3313
+ }
3314
+ {
3315
+ if (isInHookUserCodeInDev) {
3316
+ error('Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. ' + 'You can only call Hooks at the top level of your React function. ' + 'For more information, see ' + 'https://reactjs.org/link/rules-of-hooks');
3317
+ }
3318
+ }
3319
+ return currentlyRenderingComponent;
3320
+ }
3321
+ function areHookInputsEqual(nextDeps, prevDeps) {
3322
+ if (prevDeps === null) {
3323
+ {
3324
+ error('%s received a final argument during this render, but not during ' + 'the previous render. Even though the final argument is optional, ' + 'its type cannot change between renders.', currentHookNameInDev);
3325
+ }
3326
+ return false;
3327
+ }
3328
+ {
3329
+ if (nextDeps.length !== prevDeps.length) {
3330
+ error('The final argument passed to %s changed size between renders. The ' + 'order and size of this array must remain constant.\n\n' + 'Previous: %s\n' + 'Incoming: %s', currentHookNameInDev, "[" + nextDeps.join(', ') + "]", "[" + prevDeps.join(', ') + "]");
3331
+ }
3332
+ }
3333
+ for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) {
3334
+ if (objectIs(nextDeps[i], prevDeps[i])) {
3335
+ continue;
3336
+ }
3337
+ return false;
3338
+ }
3339
+ return true;
3340
+ }
3341
+ function createHook() {
3342
+ if (numberOfReRenders > 0) {
3343
+ throw new Error('Rendered more hooks than during the previous render');
3344
+ }
3345
+ return {
3346
+ memoizedState: null,
3347
+ queue: null,
3348
+ next: null
3349
+ };
3350
+ }
3351
+ function createWorkInProgressHook() {
3352
+ if (workInProgressHook === null) {
3353
+ if (firstWorkInProgressHook === null) {
3354
+ isReRender = false;
3355
+ firstWorkInProgressHook = workInProgressHook = createHook();
3356
+ } else {
3357
+ isReRender = true;
3358
+ workInProgressHook = firstWorkInProgressHook;
3359
+ }
3360
+ } else {
3361
+ if (workInProgressHook.next === null) {
3362
+ isReRender = false;
3363
+ workInProgressHook = workInProgressHook.next = createHook();
3364
+ } else {
3365
+ isReRender = true;
3366
+ workInProgressHook = workInProgressHook.next;
3367
+ }
3368
+ }
3369
+ return workInProgressHook;
3370
+ }
3371
+ function prepareToUseHooks(task, componentIdentity) {
3372
+ currentlyRenderingComponent = componentIdentity;
3373
+ currentlyRenderingTask = task;
3374
+ {
3375
+ isInHookUserCodeInDev = false;
3376
+ }
3377
+ localIdCounter = 0;
3378
+ }
3379
+ function finishHooks(Component, props, children, refOrContext) {
3380
+ while (didScheduleRenderPhaseUpdate) {
3381
+ didScheduleRenderPhaseUpdate = false;
3382
+ localIdCounter = 0;
3383
+ numberOfReRenders += 1;
3384
+ workInProgressHook = null;
3385
+ children = Component(props, refOrContext);
3386
+ }
3387
+ resetHooksState();
3388
+ return children;
3389
+ }
3390
+ function checkDidRenderIdHook() {
3391
+ var didRenderIdHook = localIdCounter !== 0;
3392
+ return didRenderIdHook;
3393
+ }
3394
+ function resetHooksState() {
3395
+ {
3396
+ isInHookUserCodeInDev = false;
3397
+ }
3398
+ currentlyRenderingComponent = null;
3399
+ currentlyRenderingTask = null;
3400
+ didScheduleRenderPhaseUpdate = false;
3401
+ firstWorkInProgressHook = null;
3402
+ numberOfReRenders = 0;
3403
+ renderPhaseUpdates = null;
3404
+ workInProgressHook = null;
3405
+ }
3406
+ function readContext$1(context) {
3407
+ {
3408
+ if (isInHookUserCodeInDev) {
3409
+ error('Context can only be read while React is rendering. ' + 'In classes, you can read it in the render method or getDerivedStateFromProps. ' + 'In function components, you can read it directly in the function body, but not ' + 'inside Hooks like useReducer() or useMemo().');
3410
+ }
3411
+ }
3412
+ return readContext(context);
3413
+ }
3414
+ function useContext(context) {
3415
+ {
3416
+ currentHookNameInDev = 'useContext';
3417
+ }
3418
+ resolveCurrentlyRenderingComponent();
3419
+ return readContext(context);
3420
+ }
3421
+ function basicStateReducer(state, action) {
3422
+ return typeof action === 'function' ? action(state) : action;
3423
+ }
3424
+ function useState(initialState) {
3425
+ {
3426
+ currentHookNameInDev = 'useState';
3427
+ }
3428
+ return useReducer(basicStateReducer, initialState);
3429
+ }
3430
+ function useReducer(reducer, initialArg, init) {
3431
+ {
3432
+ if (reducer !== basicStateReducer) {
3433
+ currentHookNameInDev = 'useReducer';
3434
+ }
3435
+ }
3436
+ currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
3437
+ workInProgressHook = createWorkInProgressHook();
3438
+ if (isReRender) {
3439
+ var queue = workInProgressHook.queue;
3440
+ var dispatch = queue.dispatch;
3441
+ if (renderPhaseUpdates !== null) {
3442
+ var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue);
3443
+ if (firstRenderPhaseUpdate !== undefined) {
3444
+ renderPhaseUpdates.delete(queue);
3445
+ var newState = workInProgressHook.memoizedState;
3446
+ var update = firstRenderPhaseUpdate;
3447
+ do {
3448
+ var action = update.action;
3449
+ {
3450
+ isInHookUserCodeInDev = true;
3451
+ }
3452
+ newState = reducer(newState, action);
3453
+ {
3454
+ isInHookUserCodeInDev = false;
3455
+ }
3456
+ update = update.next;
3457
+ } while (update !== null);
3458
+ workInProgressHook.memoizedState = newState;
3459
+ return [newState, dispatch];
3460
+ }
3461
+ }
3462
+ return [workInProgressHook.memoizedState, dispatch];
3463
+ } else {
3464
+ {
3465
+ isInHookUserCodeInDev = true;
3466
+ }
3467
+ var initialState;
3468
+ if (reducer === basicStateReducer) {
3469
+ initialState = typeof initialArg === 'function' ? initialArg() : initialArg;
3470
+ } else {
3471
+ initialState = init !== undefined ? init(initialArg) : initialArg;
3472
+ }
3473
+ {
3474
+ isInHookUserCodeInDev = false;
3475
+ }
3476
+ workInProgressHook.memoizedState = initialState;
3477
+ var _queue = workInProgressHook.queue = {
3478
+ last: null,
3479
+ dispatch: null
3480
+ };
3481
+ var _dispatch = _queue.dispatch = dispatchAction.bind(null, currentlyRenderingComponent, _queue);
3482
+ return [workInProgressHook.memoizedState, _dispatch];
3483
+ }
3484
+ }
3485
+ function useMemo(nextCreate, deps) {
3486
+ currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
3487
+ workInProgressHook = createWorkInProgressHook();
3488
+ var nextDeps = deps === undefined ? null : deps;
3489
+ if (workInProgressHook !== null) {
3490
+ var prevState = workInProgressHook.memoizedState;
3491
+ if (prevState !== null) {
3492
+ if (nextDeps !== null) {
3493
+ var prevDeps = prevState[1];
3494
+ if (areHookInputsEqual(nextDeps, prevDeps)) {
3495
+ return prevState[0];
3496
+ }
3497
+ }
3498
+ }
3499
+ }
3500
+ {
3501
+ isInHookUserCodeInDev = true;
3502
+ }
3503
+ var nextValue = nextCreate();
3504
+ {
3505
+ isInHookUserCodeInDev = false;
3506
+ }
3507
+ workInProgressHook.memoizedState = [nextValue, nextDeps];
3508
+ return nextValue;
3509
+ }
3510
+ function useRef(initialValue) {
3511
+ currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
3512
+ workInProgressHook = createWorkInProgressHook();
3513
+ var previousRef = workInProgressHook.memoizedState;
3514
+ if (previousRef === null) {
3515
+ var ref = {current: initialValue};
3516
+ {
3517
+ Object.seal(ref);
3518
+ }
3519
+ workInProgressHook.memoizedState = ref;
3520
+ return ref;
3521
+ } else {
3522
+ return previousRef;
3523
+ }
3524
+ }
3525
+ function useLayoutEffect(create, inputs) {
3526
+ {
3527
+ currentHookNameInDev = 'useLayoutEffect';
3528
+ error('useLayoutEffect does nothing on the server, because its effect cannot ' + "be encoded into the server renderer's output format. This will lead " + 'to a mismatch between the initial, non-hydrated UI and the intended ' + 'UI. To avoid this, useLayoutEffect should only be used in ' + 'components that render exclusively on the client. ' + 'See https://reactjs.org/link/uselayouteffect-ssr for common fixes.');
3529
+ }
3530
+ }
3531
+ function dispatchAction(componentIdentity, queue, action) {
3532
+ if (numberOfReRenders >= RE_RENDER_LIMIT) {
3533
+ throw new Error('Too many re-renders. React limits the number of renders to prevent ' + 'an infinite loop.');
3534
+ }
3535
+ if (componentIdentity === currentlyRenderingComponent) {
3536
+ didScheduleRenderPhaseUpdate = true;
3537
+ var update = {
3538
+ action: action,
3539
+ next: null
3540
+ };
3541
+ if (renderPhaseUpdates === null) {
3542
+ renderPhaseUpdates = new Map();
3543
+ }
3544
+ var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue);
3545
+ if (firstRenderPhaseUpdate === undefined) {
3546
+ renderPhaseUpdates.set(queue, update);
3547
+ } else {
3548
+ var lastRenderPhaseUpdate = firstRenderPhaseUpdate;
3549
+ while (lastRenderPhaseUpdate.next !== null) {
3550
+ lastRenderPhaseUpdate = lastRenderPhaseUpdate.next;
3551
+ }
3552
+ lastRenderPhaseUpdate.next = update;
3553
+ }
3554
+ }
3555
+ }
3556
+ function useCallback(callback, deps) {
3557
+ return useMemo(function() {
3558
+ return callback;
3559
+ }, deps);
3560
+ }
3561
+ function useMutableSource(source, getSnapshot, subscribe) {
3562
+ resolveCurrentlyRenderingComponent();
3563
+ return getSnapshot(source._source);
3564
+ }
3565
+ function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
3566
+ if (getServerSnapshot === undefined) {
3567
+ throw new Error('Missing getServerSnapshot, which is required for ' + 'server-rendered content. Will revert to client rendering.');
3568
+ }
3569
+ return getServerSnapshot();
3570
+ }
3571
+ function useDeferredValue(value) {
3572
+ resolveCurrentlyRenderingComponent();
3573
+ return value;
3574
+ }
3575
+ function unsupportedStartTransition() {
3576
+ throw new Error('startTransition cannot be called during server rendering.');
3577
+ }
3578
+ function useTransition() {
3579
+ resolveCurrentlyRenderingComponent();
3580
+ return [false, unsupportedStartTransition];
3581
+ }
3582
+ function useId() {
3583
+ var task = currentlyRenderingTask;
3584
+ var treeId = getTreeId(task.treeContext);
3585
+ var responseState = currentResponseState;
3586
+ if (responseState === null) {
3587
+ throw new Error('Invalid hook call. Hooks can only be called inside of the body of a function component.');
3588
+ }
3589
+ var localId = localIdCounter++;
3590
+ return makeId(responseState, treeId, localId);
3591
+ }
3592
+ function noop() {}
3593
+ var Dispatcher = {
3594
+ readContext: readContext$1,
3595
+ useContext: useContext,
3596
+ useMemo: useMemo,
3597
+ useReducer: useReducer,
3598
+ useRef: useRef,
3599
+ useState: useState,
3600
+ useInsertionEffect: noop,
3601
+ useLayoutEffect: useLayoutEffect,
3602
+ useCallback: useCallback,
3603
+ useImperativeHandle: noop,
3604
+ useEffect: noop,
3605
+ useDebugValue: noop,
3606
+ useDeferredValue: useDeferredValue,
3607
+ useTransition: useTransition,
3608
+ useId: useId,
3609
+ useMutableSource: useMutableSource,
3610
+ useSyncExternalStore: useSyncExternalStore
3611
+ };
3612
+ var currentResponseState = null;
3613
+ function setCurrentResponseState(responseState) {
3614
+ currentResponseState = responseState;
3615
+ }
3616
+ function getStackByComponentStackNode(componentStack) {
3617
+ try {
3618
+ var info = '';
3619
+ var node = componentStack;
3620
+ do {
3621
+ switch (node.tag) {
3622
+ case 0:
3623
+ info += describeBuiltInComponentFrame(node.type, null, null);
3624
+ break;
3625
+ case 1:
3626
+ info += describeFunctionComponentFrame(node.type, null, null);
3627
+ break;
3628
+ case 2:
3629
+ info += describeClassComponentFrame(node.type, null, null);
3630
+ break;
3631
+ }
3632
+ node = node.parent;
3633
+ } while (node);
3634
+ return info;
3635
+ } catch (x) {
3636
+ return '\nError generating stack: ' + x.message + '\n' + x.stack;
3637
+ }
3638
+ }
3639
+ var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
3640
+ var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
3641
+ var PENDING = 0;
3642
+ var COMPLETED = 1;
3643
+ var FLUSHED = 2;
3644
+ var ABORTED = 3;
3645
+ var ERRORED = 4;
3646
+ var OPEN = 0;
3647
+ var CLOSING = 1;
3648
+ var CLOSED = 2;
3649
+ var DEFAULT_PROGRESSIVE_CHUNK_SIZE = 12800;
3650
+ function defaultErrorHandler(error) {
3651
+ console['error'](error);
3652
+ }
3653
+ function noop$1() {}
3654
+ function createRequest(children, responseState, rootFormatContext, progressiveChunkSize, onError, onAllReady, onShellReady, onShellError, onFatalError) {
3655
+ var pingedTasks = [];
3656
+ var abortSet = new Set();
3657
+ var request = {
3658
+ destination: null,
3659
+ responseState: responseState,
3660
+ progressiveChunkSize: progressiveChunkSize === undefined ? DEFAULT_PROGRESSIVE_CHUNK_SIZE : progressiveChunkSize,
3661
+ status: OPEN,
3662
+ fatalError: null,
3663
+ nextSegmentId: 0,
3664
+ allPendingTasks: 0,
3665
+ pendingRootTasks: 0,
3666
+ completedRootSegment: null,
3667
+ abortableTasks: abortSet,
3668
+ pingedTasks: pingedTasks,
3669
+ clientRenderedBoundaries: [],
3670
+ completedBoundaries: [],
3671
+ partialBoundaries: [],
3672
+ onError: onError === undefined ? defaultErrorHandler : onError,
3673
+ onAllReady: onAllReady === undefined ? noop$1 : onAllReady,
3674
+ onShellReady: onShellReady === undefined ? noop$1 : onShellReady,
3675
+ onShellError: onShellError === undefined ? noop$1 : onShellError,
3676
+ onFatalError: onFatalError === undefined ? noop$1 : onFatalError
3677
+ };
3678
+ var rootSegment = createPendingSegment(request, 0, null, rootFormatContext);
3679
+ rootSegment.parentFlushed = true;
3680
+ var rootTask = createTask(request, children, null, rootSegment, abortSet, emptyContextObject, rootContextSnapshot, emptyTreeContext);
3681
+ pingedTasks.push(rootTask);
3682
+ return request;
3683
+ }
3684
+ function pingTask(request, task) {
3685
+ var pingedTasks = request.pingedTasks;
3686
+ pingedTasks.push(task);
3687
+ if (pingedTasks.length === 1) {
3688
+ scheduleWork(function() {
3689
+ return performWork(request);
3690
+ });
3691
+ }
3692
+ }
3693
+ function createSuspenseBoundary(request, fallbackAbortableTasks) {
3694
+ return {
3695
+ id: UNINITIALIZED_SUSPENSE_BOUNDARY_ID,
3696
+ rootSegmentID: -1,
3697
+ parentFlushed: false,
3698
+ pendingTasks: 0,
3699
+ forceClientRender: false,
3700
+ completedSegments: [],
3701
+ byteSize: 0,
3702
+ fallbackAbortableTasks: fallbackAbortableTasks
3703
+ };
3704
+ }
3705
+ function createTask(request, node, blockedBoundary, blockedSegment, abortSet, legacyContext, context, treeContext) {
3706
+ request.allPendingTasks++;
3707
+ if (blockedBoundary === null) {
3708
+ request.pendingRootTasks++;
3709
+ } else {
3710
+ blockedBoundary.pendingTasks++;
3711
+ }
3712
+ var task = {
3713
+ node: node,
3714
+ ping: function() {
3715
+ return pingTask(request, task);
3716
+ },
3717
+ blockedBoundary: blockedBoundary,
3718
+ blockedSegment: blockedSegment,
3719
+ abortSet: abortSet,
3720
+ legacyContext: legacyContext,
3721
+ context: context,
3722
+ treeContext: treeContext
3723
+ };
3724
+ {
3725
+ task.componentStack = null;
3726
+ }
3727
+ abortSet.add(task);
3728
+ return task;
3729
+ }
3730
+ function createPendingSegment(request, index, boundary, formatContext) {
3731
+ return {
3732
+ status: PENDING,
3733
+ id: -1,
3734
+ index: index,
3735
+ parentFlushed: false,
3736
+ chunks: [],
3737
+ children: [],
3738
+ formatContext: formatContext,
3739
+ boundary: boundary
3740
+ };
3741
+ }
3742
+ var currentTaskInDEV = null;
3743
+ function getCurrentStackInDEV() {
3744
+ {
3745
+ if (currentTaskInDEV === null || currentTaskInDEV.componentStack === null) {
3746
+ return '';
3747
+ }
3748
+ return getStackByComponentStackNode(currentTaskInDEV.componentStack);
3749
+ }
3750
+ }
3751
+ function pushBuiltInComponentStackInDEV(task, type) {
3752
+ {
3753
+ task.componentStack = {
3754
+ tag: 0,
3755
+ parent: task.componentStack,
3756
+ type: type
3757
+ };
3758
+ }
3759
+ }
3760
+ function pushFunctionComponentStackInDEV(task, type) {
3761
+ {
3762
+ task.componentStack = {
3763
+ tag: 1,
3764
+ parent: task.componentStack,
3765
+ type: type
3766
+ };
3767
+ }
3768
+ }
3769
+ function pushClassComponentStackInDEV(task, type) {
3770
+ {
3771
+ task.componentStack = {
3772
+ tag: 2,
3773
+ parent: task.componentStack,
3774
+ type: type
3775
+ };
3776
+ }
3777
+ }
3778
+ function popComponentStackInDEV(task) {
3779
+ {
3780
+ if (task.componentStack === null) {
3781
+ error('Unexpectedly popped too many stack frames. This is a bug in React.');
3782
+ } else {
3783
+ task.componentStack = task.componentStack.parent;
3784
+ }
3785
+ }
3786
+ }
3787
+ function logRecoverableError(request, error) {
3788
+ var onError = request.onError;
3789
+ onError(error);
3790
+ }
3791
+ function fatalError(request, error) {
3792
+ var onShellError = request.onShellError;
3793
+ onShellError(error);
3794
+ var onFatalError = request.onFatalError;
3795
+ onFatalError(error);
3796
+ if (request.destination !== null) {
3797
+ request.status = CLOSED;
3798
+ closeWithError(request.destination, error);
3799
+ } else {
3800
+ request.status = CLOSING;
3801
+ request.fatalError = error;
3802
+ }
3803
+ }
3804
+ function renderSuspenseBoundary(request, task, props) {
3805
+ pushBuiltInComponentStackInDEV(task, 'Suspense');
3806
+ var parentBoundary = task.blockedBoundary;
3807
+ var parentSegment = task.blockedSegment;
3808
+ var fallback = props.fallback;
3809
+ var content = props.children;
3810
+ var fallbackAbortSet = new Set();
3811
+ var newBoundary = createSuspenseBoundary(request, fallbackAbortSet);
3812
+ var insertionIndex = parentSegment.chunks.length;
3813
+ var boundarySegment = createPendingSegment(request, insertionIndex, newBoundary, parentSegment.formatContext);
3814
+ parentSegment.children.push(boundarySegment);
3815
+ var contentRootSegment = createPendingSegment(request, 0, null, parentSegment.formatContext);
3816
+ contentRootSegment.parentFlushed = true;
3817
+ task.blockedBoundary = newBoundary;
3818
+ task.blockedSegment = contentRootSegment;
3819
+ try {
3820
+ renderNode(request, task, content);
3821
+ contentRootSegment.status = COMPLETED;
3822
+ queueCompletedSegment(newBoundary, contentRootSegment);
3823
+ if (newBoundary.pendingTasks === 0) {
3824
+ popComponentStackInDEV(task);
3825
+ return;
3826
+ }
3827
+ } catch (error) {
3828
+ contentRootSegment.status = ERRORED;
3829
+ logRecoverableError(request, error);
3830
+ newBoundary.forceClientRender = true;
3831
+ } finally {
3832
+ task.blockedBoundary = parentBoundary;
3833
+ task.blockedSegment = parentSegment;
3834
+ }
3835
+ var suspendedFallbackTask = createTask(request, fallback, parentBoundary, boundarySegment, fallbackAbortSet, task.legacyContext, task.context, task.treeContext);
3836
+ {
3837
+ suspendedFallbackTask.componentStack = task.componentStack;
3838
+ }
3839
+ request.pingedTasks.push(suspendedFallbackTask);
3840
+ popComponentStackInDEV(task);
3841
+ }
3842
+ function renderHostElement(request, task, type, props) {
3843
+ pushBuiltInComponentStackInDEV(task, type);
3844
+ var segment = task.blockedSegment;
3845
+ var children = pushStartInstance(segment.chunks, type, props, request.responseState, segment.formatContext);
3846
+ var prevContext = segment.formatContext;
3847
+ segment.formatContext = getChildFormatContext(prevContext, type, props);
3848
+ renderNode(request, task, children);
3849
+ segment.formatContext = prevContext;
3850
+ pushEndInstance(segment.chunks, type);
3851
+ popComponentStackInDEV(task);
3852
+ }
3853
+ function shouldConstruct$1(Component) {
3854
+ return Component.prototype && Component.prototype.isReactComponent;
3855
+ }
3856
+ function renderWithHooks(request, task, Component, props, secondArg) {
3857
+ var componentIdentity = {};
3858
+ prepareToUseHooks(task, componentIdentity);
3859
+ var result = Component(props, secondArg);
3860
+ return finishHooks(Component, props, result, secondArg);
3861
+ }
3862
+ function finishClassComponent(request, task, instance, Component, props) {
3863
+ var nextChildren = instance.render();
3864
+ {
3865
+ if (instance.props !== props) {
3866
+ if (!didWarnAboutReassigningProps) {
3867
+ error('It looks like %s is reassigning its own `this.props` while rendering. ' + 'This is not supported and can lead to confusing bugs.', getComponentNameFromType(Component) || 'a component');
3868
+ }
3869
+ didWarnAboutReassigningProps = true;
3870
+ }
3871
+ }
3872
+ {
3873
+ var childContextTypes = Component.childContextTypes;
3874
+ if (childContextTypes !== null && childContextTypes !== undefined) {
3875
+ var previousContext = task.legacyContext;
3876
+ var mergedContext = processChildContext(instance, Component, previousContext, childContextTypes);
3877
+ task.legacyContext = mergedContext;
3878
+ renderNodeDestructive(request, task, nextChildren);
3879
+ task.legacyContext = previousContext;
3880
+ return;
3881
+ }
3882
+ }
3883
+ renderNodeDestructive(request, task, nextChildren);
3884
+ }
3885
+ function renderClassComponent(request, task, Component, props) {
3886
+ pushClassComponentStackInDEV(task, Component);
3887
+ var maskedContext = getMaskedContext(Component, task.legacyContext);
3888
+ var instance = constructClassInstance(Component, props, maskedContext);
3889
+ mountClassInstance(instance, Component, props, maskedContext);
3890
+ finishClassComponent(request, task, instance, Component, props);
3891
+ popComponentStackInDEV(task);
3892
+ }
3893
+ var didWarnAboutBadClass = {};
3894
+ var didWarnAboutModulePatternComponent = {};
3895
+ var didWarnAboutContextTypeOnFunctionComponent = {};
3896
+ var didWarnAboutGetDerivedStateOnFunctionComponent = {};
3897
+ var didWarnAboutReassigningProps = false;
3898
+ var didWarnAboutGenerators = false;
3899
+ var didWarnAboutMaps = false;
3900
+ var hasWarnedAboutUsingContextAsConsumer = false;
3901
+ function renderIndeterminateComponent(request, task, Component, props) {
3902
+ var legacyContext;
3903
+ {
3904
+ legacyContext = getMaskedContext(Component, task.legacyContext);
3905
+ }
3906
+ pushFunctionComponentStackInDEV(task, Component);
3907
+ {
3908
+ if (Component.prototype && typeof Component.prototype.render === 'function') {
3909
+ var componentName = getComponentNameFromType(Component) || 'Unknown';
3910
+ if (!didWarnAboutBadClass[componentName]) {
3911
+ error("The <%s /> component appears to have a render method, but doesn't extend React.Component. " + 'This is likely to cause errors. Change %s to extend React.Component instead.', componentName, componentName);
3912
+ didWarnAboutBadClass[componentName] = true;
3913
+ }
3914
+ }
3915
+ }
3916
+ var value = renderWithHooks(request, task, Component, props, legacyContext);
3917
+ var hasId = checkDidRenderIdHook();
3918
+ {
3919
+ if (typeof value === 'object' && value !== null && typeof value.render === 'function' && value.$$typeof === undefined) {
3920
+ var _componentName = getComponentNameFromType(Component) || 'Unknown';
3921
+ if (!didWarnAboutModulePatternComponent[_componentName]) {
3922
+ error('The <%s /> component appears to be a function component that returns a class instance. ' + 'Change %s to a class that extends React.Component instead. ' + "If you can't use a class try assigning the prototype on the function as a workaround. " + "`%s.prototype = React.Component.prototype`. Don't use an arrow function since it " + 'cannot be called with `new` by React.', _componentName, _componentName, _componentName);
3923
+ didWarnAboutModulePatternComponent[_componentName] = true;
3924
+ }
3925
+ }
3926
+ }
3927
+ if (typeof value === 'object' && value !== null && typeof value.render === 'function' && value.$$typeof === undefined) {
3928
+ {
3929
+ var _componentName2 = getComponentNameFromType(Component) || 'Unknown';
3930
+ if (!didWarnAboutModulePatternComponent[_componentName2]) {
3931
+ error('The <%s /> component appears to be a function component that returns a class instance. ' + 'Change %s to a class that extends React.Component instead. ' + "If you can't use a class try assigning the prototype on the function as a workaround. " + "`%s.prototype = React.Component.prototype`. Don't use an arrow function since it " + 'cannot be called with `new` by React.', _componentName2, _componentName2, _componentName2);
3932
+ didWarnAboutModulePatternComponent[_componentName2] = true;
3933
+ }
3934
+ }
3935
+ mountClassInstance(value, Component, props, legacyContext);
3936
+ finishClassComponent(request, task, value, Component, props);
3937
+ } else {
3938
+ {
3939
+ validateFunctionComponentInDev(Component);
3940
+ }
3941
+ if (hasId) {
3942
+ var prevTreeContext = task.treeContext;
3943
+ var totalChildren = 1;
3944
+ var index = 0;
3945
+ task.treeContext = pushTreeContext(prevTreeContext, totalChildren, index);
3946
+ try {
3947
+ renderNodeDestructive(request, task, value);
3948
+ } finally {
3949
+ task.treeContext = prevTreeContext;
3950
+ }
3951
+ } else {
3952
+ renderNodeDestructive(request, task, value);
3953
+ }
3954
+ }
3955
+ popComponentStackInDEV(task);
3956
+ }
3957
+ function validateFunctionComponentInDev(Component) {
3958
+ {
3959
+ if (Component) {
3960
+ if (Component.childContextTypes) {
3961
+ error('%s(...): childContextTypes cannot be defined on a function component.', Component.displayName || Component.name || 'Component');
3962
+ }
3963
+ }
3964
+ if (typeof Component.getDerivedStateFromProps === 'function') {
3965
+ var _componentName3 = getComponentNameFromType(Component) || 'Unknown';
3966
+ if (!didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3]) {
3967
+ error('%s: Function components do not support getDerivedStateFromProps.', _componentName3);
3968
+ didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3] = true;
3969
+ }
3970
+ }
3971
+ if (typeof Component.contextType === 'object' && Component.contextType !== null) {
3972
+ var _componentName4 = getComponentNameFromType(Component) || 'Unknown';
3973
+ if (!didWarnAboutContextTypeOnFunctionComponent[_componentName4]) {
3974
+ error('%s: Function components do not support contextType.', _componentName4);
3975
+ didWarnAboutContextTypeOnFunctionComponent[_componentName4] = true;
3976
+ }
3977
+ }
3978
+ }
3979
+ }
3980
+ function resolveDefaultProps(Component, baseProps) {
3981
+ if (Component && Component.defaultProps) {
3982
+ var props = assign({}, baseProps);
3983
+ var defaultProps = Component.defaultProps;
3984
+ for (var propName in defaultProps) {
3985
+ if (props[propName] === undefined) {
3986
+ props[propName] = defaultProps[propName];
3987
+ }
3988
+ }
3989
+ return props;
3990
+ }
3991
+ return baseProps;
3992
+ }
3993
+ function renderForwardRef(request, task, type, props, ref) {
3994
+ pushFunctionComponentStackInDEV(task, type.render);
3995
+ var children = renderWithHooks(request, task, type.render, props, ref);
3996
+ var hasId = checkDidRenderIdHook();
3997
+ if (hasId) {
3998
+ var prevTreeContext = task.treeContext;
3999
+ var totalChildren = 1;
4000
+ var index = 0;
4001
+ task.treeContext = pushTreeContext(prevTreeContext, totalChildren, index);
4002
+ try {
4003
+ renderNodeDestructive(request, task, children);
4004
+ } finally {
4005
+ task.treeContext = prevTreeContext;
4006
+ }
4007
+ } else {
4008
+ renderNodeDestructive(request, task, children);
4009
+ }
4010
+ popComponentStackInDEV(task);
4011
+ }
4012
+ function renderMemo(request, task, type, props, ref) {
4013
+ var innerType = type.type;
4014
+ var resolvedProps = resolveDefaultProps(innerType, props);
4015
+ renderElement(request, task, innerType, resolvedProps, ref);
4016
+ }
4017
+ function renderContextConsumer(request, task, context, props) {
4018
+ {
4019
+ if (context._context === undefined) {
4020
+ if (context !== context.Consumer) {
4021
+ if (!hasWarnedAboutUsingContextAsConsumer) {
4022
+ hasWarnedAboutUsingContextAsConsumer = true;
4023
+ error('Rendering <Context> directly is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
4024
+ }
4025
+ }
4026
+ } else {
4027
+ context = context._context;
4028
+ }
4029
+ }
4030
+ var render = props.children;
4031
+ {
4032
+ if (typeof render !== 'function') {
4033
+ error('A context consumer was rendered with multiple children, or a child ' + "that isn't a function. A context consumer expects a single child " + 'that is a function. If you did pass a function, make sure there ' + 'is no trailing or leading whitespace around it.');
4034
+ }
4035
+ }
4036
+ var newValue = readContext(context);
4037
+ var newChildren = render(newValue);
4038
+ renderNodeDestructive(request, task, newChildren);
4039
+ }
4040
+ function renderContextProvider(request, task, type, props) {
4041
+ var context = type._context;
4042
+ var value = props.value;
4043
+ var children = props.children;
4044
+ var prevSnapshot;
4045
+ {
4046
+ prevSnapshot = task.context;
4047
+ }
4048
+ task.context = pushProvider(context, value);
4049
+ renderNodeDestructive(request, task, children);
4050
+ task.context = popProvider(context);
4051
+ {
4052
+ if (prevSnapshot !== task.context) {
4053
+ error('Popping the context provider did not return back to the original snapshot. This is a bug in React.');
4054
+ }
4055
+ }
4056
+ }
4057
+ function renderLazyComponent(request, task, lazyComponent, props, ref) {
4058
+ pushBuiltInComponentStackInDEV(task, 'Lazy');
4059
+ var payload = lazyComponent._payload;
4060
+ var init = lazyComponent._init;
4061
+ var Component = init(payload);
4062
+ var resolvedProps = resolveDefaultProps(Component, props);
4063
+ renderElement(request, task, Component, resolvedProps, ref);
4064
+ popComponentStackInDEV(task);
4065
+ }
4066
+ function renderElement(request, task, type, props, ref) {
4067
+ if (typeof type === 'function') {
4068
+ if (shouldConstruct$1(type)) {
4069
+ renderClassComponent(request, task, type, props);
4070
+ return;
4071
+ } else {
4072
+ renderIndeterminateComponent(request, task, type, props);
4073
+ return;
4074
+ }
4075
+ }
4076
+ if (typeof type === 'string') {
4077
+ renderHostElement(request, task, type, props);
4078
+ return;
4079
+ }
4080
+ switch (type) {
4081
+ case REACT_LEGACY_HIDDEN_TYPE:
4082
+ case REACT_DEBUG_TRACING_MODE_TYPE:
4083
+ case REACT_STRICT_MODE_TYPE:
4084
+ case REACT_PROFILER_TYPE:
4085
+ case REACT_FRAGMENT_TYPE:
4086
+ {
4087
+ renderNodeDestructive(request, task, props.children);
4088
+ return;
4089
+ }
4090
+ case REACT_SUSPENSE_LIST_TYPE:
4091
+ {
4092
+ pushBuiltInComponentStackInDEV(task, 'SuspenseList');
4093
+ renderNodeDestructive(request, task, props.children);
4094
+ popComponentStackInDEV(task);
4095
+ return;
4096
+ }
4097
+ case REACT_SCOPE_TYPE:
4098
+ {
4099
+ throw new Error('ReactDOMServer does not yet support scope components.');
4100
+ }
4101
+ case REACT_SUSPENSE_TYPE:
4102
+ {
4103
+ {
4104
+ renderSuspenseBoundary(request, task, props);
4105
+ }
4106
+ return;
4107
+ }
4108
+ }
4109
+ if (typeof type === 'object' && type !== null) {
4110
+ switch (type.$$typeof) {
4111
+ case REACT_FORWARD_REF_TYPE:
4112
+ {
4113
+ renderForwardRef(request, task, type, props, ref);
4114
+ return;
4115
+ }
4116
+ case REACT_MEMO_TYPE:
4117
+ {
4118
+ renderMemo(request, task, type, props, ref);
4119
+ return;
4120
+ }
4121
+ case REACT_PROVIDER_TYPE:
4122
+ {
4123
+ renderContextProvider(request, task, type, props);
4124
+ return;
4125
+ }
4126
+ case REACT_CONTEXT_TYPE:
4127
+ {
4128
+ renderContextConsumer(request, task, type, props);
4129
+ return;
4130
+ }
4131
+ case REACT_LAZY_TYPE:
4132
+ {
4133
+ renderLazyComponent(request, task, type, props);
4134
+ return;
4135
+ }
4136
+ }
4137
+ }
4138
+ var info = '';
4139
+ {
4140
+ if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
4141
+ info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and " + 'named imports.';
4142
+ }
4143
+ }
4144
+ throw new Error('Element type is invalid: expected a string (for built-in ' + 'components) or a class/function (for composite components) ' + ("but got: " + (type == null ? type : typeof type) + "." + info));
4145
+ }
4146
+ function validateIterable(iterable, iteratorFn) {
4147
+ {
4148
+ if (typeof Symbol === 'function' && iterable[Symbol.toStringTag] === 'Generator') {
4149
+ if (!didWarnAboutGenerators) {
4150
+ error('Using Generators as children is unsupported and will likely yield ' + 'unexpected results because enumerating a generator mutates it. ' + 'You may convert it to an array with `Array.from()` or the ' + '`[...spread]` operator before rendering. Keep in mind ' + 'you might need to polyfill these features for older browsers.');
4151
+ }
4152
+ didWarnAboutGenerators = true;
4153
+ }
4154
+ if (iterable.entries === iteratorFn) {
4155
+ if (!didWarnAboutMaps) {
4156
+ error('Using Maps as children is not supported. ' + 'Use an array of keyed ReactElements instead.');
4157
+ }
4158
+ didWarnAboutMaps = true;
4159
+ }
4160
+ }
4161
+ }
4162
+ function renderNodeDestructive(request, task, node) {
4163
+ task.node = node;
4164
+ if (typeof node === 'object' && node !== null) {
4165
+ switch (node.$$typeof) {
4166
+ case REACT_ELEMENT_TYPE:
4167
+ {
4168
+ var element = node;
4169
+ var type = element.type;
4170
+ var props = element.props;
4171
+ var ref = element.ref;
4172
+ renderElement(request, task, type, props, ref);
4173
+ return;
4174
+ }
4175
+ case REACT_PORTAL_TYPE:
4176
+ throw new Error('Portals are not currently supported by the server renderer. ' + 'Render them conditionally so that they only appear on the client render.');
4177
+ case REACT_LAZY_TYPE:
4178
+ {
4179
+ {
4180
+ var lazyNode = node;
4181
+ var payload = lazyNode._payload;
4182
+ var init = lazyNode._init;
4183
+ var resolvedNode = init(payload);
4184
+ renderNodeDestructive(request, task, resolvedNode);
4185
+ return;
4186
+ }
4187
+ }
4188
+ }
4189
+ if (isArray(node)) {
4190
+ renderChildrenArray(request, task, node);
4191
+ return;
4192
+ }
4193
+ var iteratorFn = getIteratorFn(node);
4194
+ if (iteratorFn) {
4195
+ {
4196
+ validateIterable(node, iteratorFn);
4197
+ }
4198
+ var iterator = iteratorFn.call(node);
4199
+ if (iterator) {
4200
+ var step = iterator.next();
4201
+ if (!step.done) {
4202
+ var children = [];
4203
+ do {
4204
+ children.push(step.value);
4205
+ step = iterator.next();
4206
+ } while (!step.done);
4207
+ renderChildrenArray(request, task, children);
4208
+ return;
4209
+ }
4210
+ return;
4211
+ }
4212
+ }
4213
+ var childString = Object.prototype.toString.call(node);
4214
+ throw new Error("Objects are not valid as a React child (found: " + (childString === '[object Object]' ? 'object with keys {' + Object.keys(node).join(', ') + '}' : childString) + "). " + 'If you meant to render a collection of children, use an array ' + 'instead.');
4215
+ }
4216
+ if (typeof node === 'string') {
4217
+ pushTextInstance(task.blockedSegment.chunks, node, request.responseState);
4218
+ return;
4219
+ }
4220
+ if (typeof node === 'number') {
4221
+ pushTextInstance(task.blockedSegment.chunks, '' + node, request.responseState);
4222
+ return;
4223
+ }
4224
+ {
4225
+ if (typeof node === 'function') {
4226
+ error('Functions are not valid as a React child. This may happen if ' + 'you return a Component instead of <Component /> from render. ' + 'Or maybe you meant to call this function rather than return it.');
4227
+ }
4228
+ }
4229
+ }
4230
+ function renderChildrenArray(request, task, children) {
4231
+ var totalChildren = children.length;
4232
+ for (var i = 0; i < totalChildren; i++) {
4233
+ var prevTreeContext = task.treeContext;
4234
+ task.treeContext = pushTreeContext(prevTreeContext, totalChildren, i);
4235
+ try {
4236
+ renderNode(request, task, children[i]);
4237
+ } finally {
4238
+ task.treeContext = prevTreeContext;
4239
+ }
4240
+ }
4241
+ }
4242
+ function spawnNewSuspendedTask(request, task, x) {
4243
+ var segment = task.blockedSegment;
4244
+ var insertionIndex = segment.chunks.length;
4245
+ var newSegment = createPendingSegment(request, insertionIndex, null, segment.formatContext);
4246
+ segment.children.push(newSegment);
4247
+ var newTask = createTask(request, task.node, task.blockedBoundary, newSegment, task.abortSet, task.legacyContext, task.context, task.treeContext);
4248
+ {
4249
+ if (task.componentStack !== null) {
4250
+ newTask.componentStack = task.componentStack.parent;
4251
+ }
4252
+ }
4253
+ var ping = newTask.ping;
4254
+ x.then(ping, ping);
4255
+ }
4256
+ function renderNode(request, task, node) {
4257
+ var previousFormatContext = task.blockedSegment.formatContext;
4258
+ var previousLegacyContext = task.legacyContext;
4259
+ var previousContext = task.context;
4260
+ var previousComponentStack = null;
4261
+ {
4262
+ previousComponentStack = task.componentStack;
4263
+ }
4264
+ try {
4265
+ return renderNodeDestructive(request, task, node);
4266
+ } catch (x) {
4267
+ resetHooksState();
4268
+ if (typeof x === 'object' && x !== null && typeof x.then === 'function') {
4269
+ spawnNewSuspendedTask(request, task, x);
4270
+ task.blockedSegment.formatContext = previousFormatContext;
4271
+ task.legacyContext = previousLegacyContext;
4272
+ task.context = previousContext;
4273
+ switchContext(previousContext);
4274
+ {
4275
+ task.componentStack = previousComponentStack;
4276
+ }
4277
+ return;
4278
+ } else {
4279
+ task.blockedSegment.formatContext = previousFormatContext;
4280
+ task.legacyContext = previousLegacyContext;
4281
+ task.context = previousContext;
4282
+ switchContext(previousContext);
4283
+ {
4284
+ task.componentStack = previousComponentStack;
4285
+ }
4286
+ throw x;
4287
+ }
4288
+ }
4289
+ }
4290
+ function erroredTask(request, boundary, segment, error) {
4291
+ logRecoverableError(request, error);
4292
+ if (boundary === null) {
4293
+ fatalError(request, error);
4294
+ } else {
4295
+ boundary.pendingTasks--;
4296
+ if (!boundary.forceClientRender) {
4297
+ boundary.forceClientRender = true;
4298
+ if (boundary.parentFlushed) {
4299
+ request.clientRenderedBoundaries.push(boundary);
4300
+ }
4301
+ }
4302
+ }
4303
+ request.allPendingTasks--;
4304
+ if (request.allPendingTasks === 0) {
4305
+ var onAllReady = request.onAllReady;
4306
+ onAllReady();
4307
+ }
4308
+ }
4309
+ function abortTaskSoft(task) {
4310
+ var request = this;
4311
+ var boundary = task.blockedBoundary;
4312
+ var segment = task.blockedSegment;
4313
+ segment.status = ABORTED;
4314
+ finishedTask(request, boundary, segment);
4315
+ }
4316
+ function abortTask(task) {
4317
+ var request = this;
4318
+ var boundary = task.blockedBoundary;
4319
+ var segment = task.blockedSegment;
4320
+ segment.status = ABORTED;
4321
+ if (boundary === null) {
4322
+ request.allPendingTasks--;
4323
+ if (request.status !== CLOSED) {
4324
+ request.status = CLOSED;
4325
+ if (request.destination !== null) {
4326
+ close(request.destination);
4327
+ }
4328
+ }
4329
+ } else {
4330
+ boundary.pendingTasks--;
4331
+ if (!boundary.forceClientRender) {
4332
+ boundary.forceClientRender = true;
4333
+ if (boundary.parentFlushed) {
4334
+ request.clientRenderedBoundaries.push(boundary);
4335
+ }
4336
+ }
4337
+ boundary.fallbackAbortableTasks.forEach(abortTask, request);
4338
+ boundary.fallbackAbortableTasks.clear();
4339
+ request.allPendingTasks--;
4340
+ if (request.allPendingTasks === 0) {
4341
+ var onAllReady = request.onAllReady;
4342
+ onAllReady();
4343
+ }
4344
+ }
4345
+ }
4346
+ function queueCompletedSegment(boundary, segment) {
4347
+ if (segment.chunks.length === 0 && segment.children.length === 1 && segment.children[0].boundary === null) {
4348
+ var childSegment = segment.children[0];
4349
+ childSegment.id = segment.id;
4350
+ childSegment.parentFlushed = true;
4351
+ if (childSegment.status === COMPLETED) {
4352
+ queueCompletedSegment(boundary, childSegment);
4353
+ }
4354
+ } else {
4355
+ var completedSegments = boundary.completedSegments;
4356
+ completedSegments.push(segment);
4357
+ }
4358
+ }
4359
+ function finishedTask(request, boundary, segment) {
4360
+ if (boundary === null) {
4361
+ if (segment.parentFlushed) {
4362
+ if (request.completedRootSegment !== null) {
4363
+ throw new Error('There can only be one root segment. This is a bug in React.');
4364
+ }
4365
+ request.completedRootSegment = segment;
4366
+ }
4367
+ request.pendingRootTasks--;
4368
+ if (request.pendingRootTasks === 0) {
4369
+ request.onShellError = noop$1;
4370
+ var onShellReady = request.onShellReady;
4371
+ onShellReady();
4372
+ }
4373
+ } else {
4374
+ boundary.pendingTasks--;
4375
+ if (boundary.forceClientRender)
4376
+ ;
4377
+ else if (boundary.pendingTasks === 0) {
4378
+ if (segment.parentFlushed) {
4379
+ if (segment.status === COMPLETED) {
4380
+ queueCompletedSegment(boundary, segment);
4381
+ }
4382
+ }
4383
+ if (boundary.parentFlushed) {
4384
+ request.completedBoundaries.push(boundary);
4385
+ }
4386
+ boundary.fallbackAbortableTasks.forEach(abortTaskSoft, request);
4387
+ boundary.fallbackAbortableTasks.clear();
4388
+ } else {
4389
+ if (segment.parentFlushed) {
4390
+ if (segment.status === COMPLETED) {
4391
+ queueCompletedSegment(boundary, segment);
4392
+ var completedSegments = boundary.completedSegments;
4393
+ if (completedSegments.length === 1) {
4394
+ if (boundary.parentFlushed) {
4395
+ request.partialBoundaries.push(boundary);
4396
+ }
4397
+ }
4398
+ }
4399
+ }
4400
+ }
4401
+ }
4402
+ request.allPendingTasks--;
4403
+ if (request.allPendingTasks === 0) {
4404
+ var onAllReady = request.onAllReady;
4405
+ onAllReady();
4406
+ }
4407
+ }
4408
+ function retryTask(request, task) {
4409
+ var segment = task.blockedSegment;
4410
+ if (segment.status !== PENDING) {
4411
+ return;
4412
+ }
4413
+ switchContext(task.context);
4414
+ var prevTaskInDEV = null;
4415
+ {
4416
+ prevTaskInDEV = currentTaskInDEV;
4417
+ currentTaskInDEV = task;
4418
+ }
4419
+ try {
4420
+ renderNodeDestructive(request, task, task.node);
4421
+ task.abortSet.delete(task);
4422
+ segment.status = COMPLETED;
4423
+ finishedTask(request, task.blockedBoundary, segment);
4424
+ } catch (x) {
4425
+ resetHooksState();
4426
+ if (typeof x === 'object' && x !== null && typeof x.then === 'function') {
4427
+ var ping = task.ping;
4428
+ x.then(ping, ping);
4429
+ } else {
4430
+ task.abortSet.delete(task);
4431
+ segment.status = ERRORED;
4432
+ erroredTask(request, task.blockedBoundary, segment, x);
4433
+ }
4434
+ } finally {
4435
+ {
4436
+ currentTaskInDEV = prevTaskInDEV;
4437
+ }
4438
+ }
4439
+ }
4440
+ function performWork(request) {
4441
+ if (request.status === CLOSED) {
4442
+ return;
4443
+ }
4444
+ var prevContext = getActiveContext();
4445
+ var prevDispatcher = ReactCurrentDispatcher$1.current;
4446
+ ReactCurrentDispatcher$1.current = Dispatcher;
4447
+ var prevGetCurrentStackImpl;
4448
+ {
4449
+ prevGetCurrentStackImpl = ReactDebugCurrentFrame$1.getCurrentStack;
4450
+ ReactDebugCurrentFrame$1.getCurrentStack = getCurrentStackInDEV;
4451
+ }
4452
+ var prevResponseState = currentResponseState;
4453
+ setCurrentResponseState(request.responseState);
4454
+ try {
4455
+ var pingedTasks = request.pingedTasks;
4456
+ var i;
4457
+ for (i = 0; i < pingedTasks.length; i++) {
4458
+ var task = pingedTasks[i];
4459
+ retryTask(request, task);
4460
+ }
4461
+ pingedTasks.splice(0, i);
4462
+ if (request.destination !== null) {
4463
+ flushCompletedQueues(request, request.destination);
4464
+ }
4465
+ } catch (error) {
4466
+ logRecoverableError(request, error);
4467
+ fatalError(request, error);
4468
+ } finally {
4469
+ setCurrentResponseState(prevResponseState);
4470
+ ReactCurrentDispatcher$1.current = prevDispatcher;
4471
+ {
4472
+ ReactDebugCurrentFrame$1.getCurrentStack = prevGetCurrentStackImpl;
4473
+ }
4474
+ if (prevDispatcher === Dispatcher) {
4475
+ switchContext(prevContext);
4476
+ }
4477
+ }
4478
+ }
4479
+ function flushSubtree(request, destination, segment) {
4480
+ segment.parentFlushed = true;
4481
+ switch (segment.status) {
4482
+ case PENDING:
4483
+ {
4484
+ var segmentID = segment.id = request.nextSegmentId++;
4485
+ return writePlaceholder(destination, request.responseState, segmentID);
4486
+ }
4487
+ case COMPLETED:
4488
+ {
4489
+ segment.status = FLUSHED;
4490
+ var r = true;
4491
+ var chunks = segment.chunks;
4492
+ var chunkIdx = 0;
4493
+ var children = segment.children;
4494
+ for (var childIdx = 0; childIdx < children.length; childIdx++) {
4495
+ var nextChild = children[childIdx];
4496
+ for (; chunkIdx < nextChild.index; chunkIdx++) {
4497
+ writeChunk(destination, chunks[chunkIdx]);
4498
+ }
4499
+ r = flushSegment(request, destination, nextChild);
4500
+ }
4501
+ for (; chunkIdx < chunks.length - 1; chunkIdx++) {
4502
+ writeChunk(destination, chunks[chunkIdx]);
4503
+ }
4504
+ if (chunkIdx < chunks.length) {
4505
+ r = writeChunkAndReturn(destination, chunks[chunkIdx]);
4506
+ }
4507
+ return r;
4508
+ }
4509
+ default:
4510
+ {
4511
+ throw new Error('Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.');
4512
+ }
4513
+ }
4514
+ }
4515
+ function flushSegment(request, destination, segment) {
4516
+ var boundary = segment.boundary;
4517
+ if (boundary === null) {
4518
+ return flushSubtree(request, destination, segment);
4519
+ }
4520
+ boundary.parentFlushed = true;
4521
+ if (boundary.forceClientRender) {
4522
+ writeStartClientRenderedSuspenseBoundary(destination, request.responseState);
4523
+ flushSubtree(request, destination, segment);
4524
+ return writeEndClientRenderedSuspenseBoundary(destination, request.responseState);
4525
+ } else if (boundary.pendingTasks > 0) {
4526
+ boundary.rootSegmentID = request.nextSegmentId++;
4527
+ if (boundary.completedSegments.length > 0) {
4528
+ request.partialBoundaries.push(boundary);
4529
+ }
4530
+ var id = boundary.id = assignSuspenseBoundaryID(request.responseState);
4531
+ writeStartPendingSuspenseBoundary(destination, request.responseState, id);
4532
+ flushSubtree(request, destination, segment);
4533
+ return writeEndPendingSuspenseBoundary(destination, request.responseState);
4534
+ } else if (boundary.byteSize > request.progressiveChunkSize) {
4535
+ boundary.rootSegmentID = request.nextSegmentId++;
4536
+ request.completedBoundaries.push(boundary);
4537
+ writeStartPendingSuspenseBoundary(destination, request.responseState, boundary.id);
4538
+ flushSubtree(request, destination, segment);
4539
+ return writeEndPendingSuspenseBoundary(destination, request.responseState);
4540
+ } else {
4541
+ writeStartCompletedSuspenseBoundary(destination, request.responseState);
4542
+ var completedSegments = boundary.completedSegments;
4543
+ if (completedSegments.length !== 1) {
4544
+ throw new Error('A previously unvisited boundary must have exactly one root segment. This is a bug in React.');
4545
+ }
4546
+ var contentSegment = completedSegments[0];
4547
+ flushSegment(request, destination, contentSegment);
4548
+ return writeEndCompletedSuspenseBoundary(destination, request.responseState);
4549
+ }
4550
+ }
4551
+ function flushClientRenderedBoundary(request, destination, boundary) {
4552
+ return writeClientRenderBoundaryInstruction(destination, request.responseState, boundary.id);
4553
+ }
4554
+ function flushSegmentContainer(request, destination, segment) {
4555
+ writeStartSegment(destination, request.responseState, segment.formatContext, segment.id);
4556
+ flushSegment(request, destination, segment);
4557
+ return writeEndSegment(destination, segment.formatContext);
4558
+ }
4559
+ function flushCompletedBoundary(request, destination, boundary) {
4560
+ var completedSegments = boundary.completedSegments;
4561
+ var i = 0;
4562
+ for (; i < completedSegments.length; i++) {
4563
+ var segment = completedSegments[i];
4564
+ flushPartiallyCompletedSegment(request, destination, boundary, segment);
4565
+ }
4566
+ completedSegments.length = 0;
4567
+ return writeCompletedBoundaryInstruction(destination, request.responseState, boundary.id, boundary.rootSegmentID);
4568
+ }
4569
+ function flushPartialBoundary(request, destination, boundary) {
4570
+ var completedSegments = boundary.completedSegments;
4571
+ var i = 0;
4572
+ for (; i < completedSegments.length; i++) {
4573
+ var segment = completedSegments[i];
4574
+ if (!flushPartiallyCompletedSegment(request, destination, boundary, segment)) {
4575
+ i++;
4576
+ completedSegments.splice(0, i);
4577
+ return false;
4578
+ }
4579
+ }
4580
+ completedSegments.splice(0, i);
4581
+ return true;
4582
+ }
4583
+ function flushPartiallyCompletedSegment(request, destination, boundary, segment) {
4584
+ if (segment.status === FLUSHED) {
4585
+ return true;
4586
+ }
4587
+ var segmentID = segment.id;
4588
+ if (segmentID === -1) {
4589
+ var rootSegmentID = segment.id = boundary.rootSegmentID;
4590
+ if (rootSegmentID === -1) {
4591
+ throw new Error('A root segment ID must have been assigned by now. This is a bug in React.');
4592
+ }
4593
+ return flushSegmentContainer(request, destination, segment);
4594
+ } else {
4595
+ flushSegmentContainer(request, destination, segment);
4596
+ return writeCompletedSegmentInstruction(destination, request.responseState, segmentID);
4597
+ }
4598
+ }
4599
+ function flushCompletedQueues(request, destination) {
4600
+ beginWriting();
4601
+ try {
4602
+ var completedRootSegment = request.completedRootSegment;
4603
+ if (completedRootSegment !== null && request.pendingRootTasks === 0) {
4604
+ flushSegment(request, destination, completedRootSegment);
4605
+ request.completedRootSegment = null;
4606
+ writeCompletedRoot(destination, request.responseState);
4607
+ }
4608
+ var clientRenderedBoundaries = request.clientRenderedBoundaries;
4609
+ var i;
4610
+ for (i = 0; i < clientRenderedBoundaries.length; i++) {
4611
+ var boundary = clientRenderedBoundaries[i];
4612
+ if (!flushClientRenderedBoundary(request, destination, boundary)) {
4613
+ request.destination = null;
4614
+ i++;
4615
+ clientRenderedBoundaries.splice(0, i);
4616
+ return;
4617
+ }
4618
+ }
4619
+ clientRenderedBoundaries.splice(0, i);
4620
+ var completedBoundaries = request.completedBoundaries;
4621
+ for (i = 0; i < completedBoundaries.length; i++) {
4622
+ var _boundary = completedBoundaries[i];
4623
+ if (!flushCompletedBoundary(request, destination, _boundary)) {
4624
+ request.destination = null;
4625
+ i++;
4626
+ completedBoundaries.splice(0, i);
4627
+ return;
4628
+ }
4629
+ }
4630
+ completedBoundaries.splice(0, i);
4631
+ completeWriting(destination);
4632
+ beginWriting(destination);
4633
+ var partialBoundaries = request.partialBoundaries;
4634
+ for (i = 0; i < partialBoundaries.length; i++) {
4635
+ var _boundary2 = partialBoundaries[i];
4636
+ if (!flushPartialBoundary(request, destination, _boundary2)) {
4637
+ request.destination = null;
4638
+ i++;
4639
+ partialBoundaries.splice(0, i);
4640
+ return;
4641
+ }
4642
+ }
4643
+ partialBoundaries.splice(0, i);
4644
+ var largeBoundaries = request.completedBoundaries;
4645
+ for (i = 0; i < largeBoundaries.length; i++) {
4646
+ var _boundary3 = largeBoundaries[i];
4647
+ if (!flushCompletedBoundary(request, destination, _boundary3)) {
4648
+ request.destination = null;
4649
+ i++;
4650
+ largeBoundaries.splice(0, i);
4651
+ return;
4652
+ }
4653
+ }
4654
+ largeBoundaries.splice(0, i);
4655
+ } finally {
4656
+ completeWriting(destination);
4657
+ if (request.allPendingTasks === 0 && request.pingedTasks.length === 0 && request.clientRenderedBoundaries.length === 0 && request.completedBoundaries.length === 0) {
4658
+ {
4659
+ if (request.abortableTasks.size !== 0) {
4660
+ error('There was still abortable task at the root when we closed. This is a bug in React.');
4661
+ }
4662
+ }
4663
+ close(destination);
4664
+ }
4665
+ }
4666
+ }
4667
+ function startWork(request) {
4668
+ scheduleWork(function() {
4669
+ return performWork(request);
4670
+ });
4671
+ }
4672
+ function startFlowing(request, destination) {
4673
+ if (request.status === CLOSING) {
4674
+ request.status = CLOSED;
4675
+ closeWithError(destination, request.fatalError);
4676
+ return;
4677
+ }
4678
+ if (request.status === CLOSED) {
4679
+ return;
4680
+ }
4681
+ if (request.destination !== null) {
4682
+ return;
4683
+ }
4684
+ request.destination = destination;
4685
+ try {
4686
+ flushCompletedQueues(request, destination);
4687
+ } catch (error) {
4688
+ logRecoverableError(request, error);
4689
+ fatalError(request, error);
4690
+ }
4691
+ }
4692
+ function abort(request) {
4693
+ try {
4694
+ var abortableTasks = request.abortableTasks;
4695
+ abortableTasks.forEach(abortTask, request);
4696
+ abortableTasks.clear();
4697
+ if (request.destination !== null) {
4698
+ flushCompletedQueues(request, request.destination);
4699
+ }
4700
+ } catch (error) {
4701
+ logRecoverableError(request, error);
4702
+ fatalError(request, error);
4703
+ }
4704
+ }
4705
+ function renderToReadableStream(children, options) {
4706
+ return new Promise(function(resolve, reject) {
4707
+ var onFatalError;
4708
+ var onAllReady;
4709
+ var allReady = new Promise(function(res, rej) {
4710
+ onAllReady = res;
4711
+ onFatalError = rej;
4712
+ });
4713
+ function onShellReady() {
4714
+ var stream = new ReadableStream({
4715
+ type: 'bytes',
4716
+ pull: function(controller) {
4717
+ startFlowing(request, controller);
4718
+ },
4719
+ cancel: function(reason) {
4720
+ abort(request);
4721
+ }
4722
+ });
4723
+ stream.allReady = allReady;
4724
+ resolve(stream);
4725
+ }
4726
+ function onShellError(error) {
4727
+ allReady.catch(function() {});
4728
+ reject(error);
4729
+ }
4730
+ var request = createRequest(children, createResponseState(options ? options.identifierPrefix : undefined, options ? options.nonce : undefined, options ? options.bootstrapScriptContent : undefined, options ? options.bootstrapScripts : undefined, options ? options.bootstrapModules : undefined), createRootFormatContext(options ? options.namespaceURI : undefined), options ? options.progressiveChunkSize : undefined, options ? options.onError : undefined, onAllReady, onShellReady, onShellError, onFatalError);
4731
+ if (options && options.signal) {
4732
+ var signal = options.signal;
4733
+ var listener = function() {
4734
+ abort(request);
4735
+ signal.removeEventListener('abort', listener);
4736
+ };
4737
+ signal.addEventListener('abort', listener);
4738
+ }
4739
+ startWork(request);
4740
+ });
4741
+ }
4742
+ exports.renderToReadableStream = renderToReadableStream;
4743
+ exports.version = ReactVersion;
4744
+ })();
4745
+ }
4746
+ })(require('process'));