@internetarchive/bookreader 5.0.0-11 → 5.0.0-110

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (380) hide show
  1. package/BookReader/474.js +2 -0
  2. package/BookReader/474.js.map +1 -0
  3. package/BookReader/BookReader.css +604 -1239
  4. package/BookReader/BookReader.js +1 -1
  5. package/BookReader/BookReader.js.LICENSE.txt +20 -20
  6. package/BookReader/BookReader.js.map +1 -1
  7. package/BookReader/bergamot-translator-worker.js +2966 -0
  8. package/BookReader/bergamot-translator-worker.wasm +0 -0
  9. package/BookReader/hypothesis/LICENSE +50 -0
  10. package/BookReader/hypothesis/README.md +55 -0
  11. package/BookReader/hypothesis/build/boot.js +1 -0
  12. package/BookReader/hypothesis/build/manifest.json +20 -0
  13. package/BookReader/hypothesis/build/scripts/annotator.bundle.js +184 -0
  14. package/BookReader/hypothesis/build/scripts/annotator.bundle.js.map +1 -0
  15. package/BookReader/hypothesis/build/scripts/sidebar.bundle.js +798 -0
  16. package/BookReader/hypothesis/build/scripts/sidebar.bundle.js.map +1 -0
  17. package/BookReader/hypothesis/build/scripts/ui-playground.bundle.js +711 -0
  18. package/BookReader/hypothesis/build/scripts/ui-playground.bundle.js.map +1 -0
  19. package/BookReader/hypothesis/build/styles/annotator.css +2235 -0
  20. package/BookReader/hypothesis/build/styles/annotator.css.map +1 -0
  21. package/BookReader/hypothesis/build/styles/fonts/KaTeX_AMS-Regular.woff2 +0 -0
  22. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  23. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  24. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  25. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  26. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Main-Bold.woff2 +0 -0
  27. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  28. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Main-Italic.woff2 +0 -0
  29. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Main-Regular.woff2 +0 -0
  30. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  31. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Math-Italic.woff2 +0 -0
  32. package/BookReader/hypothesis/build/styles/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  33. package/BookReader/hypothesis/build/styles/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  34. package/BookReader/hypothesis/build/styles/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  35. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Script-Regular.woff2 +0 -0
  36. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Size1-Regular.woff2 +0 -0
  37. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Size2-Regular.woff2 +0 -0
  38. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Size3-Regular.woff2 +0 -0
  39. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Size4-Regular.woff2 +0 -0
  40. package/BookReader/hypothesis/build/styles/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  41. package/BookReader/hypothesis/build/styles/highlights.css +2 -0
  42. package/BookReader/hypothesis/build/styles/highlights.css.map +1 -0
  43. package/BookReader/hypothesis/build/styles/katex.min.css +2 -0
  44. package/BookReader/hypothesis/build/styles/katex.min.css.map +1 -0
  45. package/BookReader/hypothesis/build/styles/pdfjs-overrides.css +2 -0
  46. package/BookReader/hypothesis/build/styles/pdfjs-overrides.css.map +1 -0
  47. package/BookReader/hypothesis/build/styles/sidebar.css +2731 -0
  48. package/BookReader/hypothesis/build/styles/sidebar.css.map +1 -0
  49. package/BookReader/hypothesis/build/styles/ui-playground.css +2659 -0
  50. package/BookReader/hypothesis/build/styles/ui-playground.css.map +1 -0
  51. package/BookReader/hypothesis/package.json +126 -0
  52. package/BookReader/ia-bookreader-bundle.js +1907 -0
  53. package/BookReader/ia-bookreader-bundle.js.LICENSE.txt +19 -0
  54. package/BookReader/ia-bookreader-bundle.js.map +1 -0
  55. package/BookReader/icons/1up.svg +1 -1
  56. package/BookReader/icons/2up.svg +1 -1
  57. package/BookReader/icons/advance.svg +1 -1
  58. package/BookReader/icons/chevron-right.svg +1 -1
  59. package/BookReader/icons/close-circle-dark.svg +1 -1
  60. package/BookReader/icons/close-circle.svg +1 -1
  61. package/BookReader/icons/fullscreen.svg +1 -1
  62. package/BookReader/icons/fullscreen_exit.svg +1 -1
  63. package/BookReader/icons/hamburger.svg +1 -1
  64. package/BookReader/icons/left-arrow.svg +1 -1
  65. package/BookReader/icons/magnify-minus.svg +1 -1
  66. package/BookReader/icons/magnify-plus.svg +1 -1
  67. package/BookReader/icons/magnify.svg +1 -1
  68. package/BookReader/icons/pause.svg +1 -1
  69. package/BookReader/icons/play.svg +1 -1
  70. package/BookReader/icons/playback-speed.svg +1 -1
  71. package/BookReader/icons/read-aloud.svg +1 -1
  72. package/BookReader/icons/review.svg +1 -1
  73. package/BookReader/icons/slider-toggle.svg +1 -0
  74. package/BookReader/icons/thumbnails.svg +1 -1
  75. package/BookReader/icons/voice.svg +1 -0
  76. package/BookReader/icons/volume-full.svg +1 -1
  77. package/BookReader/images/BRicons.svg +3 -3
  78. package/BookReader/images/books_graphic.svg +1 -1
  79. package/BookReader/images/hypothesis.ico +0 -0
  80. package/BookReader/images/icon_book.svg +1 -1
  81. package/BookReader/images/icon_bookmark.svg +1 -1
  82. package/BookReader/images/icon_experiment.svg +1 -0
  83. package/BookReader/images/icon_gear.svg +1 -1
  84. package/BookReader/images/icon_hamburger.svg +1 -1
  85. package/BookReader/images/icon_home.svg +1 -1
  86. package/BookReader/images/icon_info.svg +1 -1
  87. package/BookReader/images/icon_one_page.svg +1 -1
  88. package/BookReader/images/icon_pause.svg +1 -1
  89. package/BookReader/images/icon_play.svg +1 -1
  90. package/BookReader/images/icon_playback-rate.svg +1 -1
  91. package/BookReader/images/icon_search_button.svg +1 -1
  92. package/BookReader/images/icon_share.svg +1 -1
  93. package/BookReader/images/icon_skip-ahead.svg +1 -1
  94. package/BookReader/images/icon_skip-back.svg +1 -1
  95. package/BookReader/images/icon_speaker.svg +1 -1
  96. package/BookReader/images/icon_speaker_open.svg +1 -1
  97. package/BookReader/images/icon_thumbnails.svg +1 -1
  98. package/BookReader/images/icon_toc.svg +1 -1
  99. package/BookReader/images/icon_two_pages.svg +1 -1
  100. package/BookReader/images/marker_chap-off.svg +1 -1
  101. package/BookReader/images/marker_chap-on.svg +1 -1
  102. package/BookReader/images/marker_srch-on.svg +1 -1
  103. package/BookReader/images/translate.svg +1 -0
  104. package/BookReader/images/unviewable_page.png +0 -0
  105. package/BookReader/jquery-3.js +2 -0
  106. package/BookReader/jquery-3.js.LICENSE.txt +24 -0
  107. package/BookReader/plugins/plugin.archive_analytics.js +1 -1
  108. package/BookReader/plugins/plugin.archive_analytics.js.map +1 -1
  109. package/BookReader/plugins/plugin.autoplay.js +1 -1
  110. package/BookReader/plugins/plugin.autoplay.js.map +1 -1
  111. package/BookReader/plugins/plugin.chapters.js +22 -1
  112. package/BookReader/plugins/plugin.chapters.js.LICENSE.txt +1 -0
  113. package/BookReader/plugins/plugin.chapters.js.map +1 -1
  114. package/BookReader/plugins/plugin.experiments.js +3 -0
  115. package/BookReader/plugins/plugin.experiments.js.LICENSE.txt +1 -0
  116. package/BookReader/plugins/plugin.experiments.js.map +1 -0
  117. package/BookReader/plugins/plugin.iframe.js +1 -1
  118. package/BookReader/plugins/plugin.iframe.js.map +1 -1
  119. package/BookReader/plugins/plugin.iiif.js +2 -0
  120. package/BookReader/plugins/plugin.iiif.js.map +1 -0
  121. package/BookReader/plugins/plugin.resume.js +1 -1
  122. package/BookReader/plugins/plugin.resume.js.map +1 -1
  123. package/BookReader/plugins/plugin.search.js +2 -1
  124. package/BookReader/plugins/plugin.search.js.LICENSE.txt +1 -0
  125. package/BookReader/plugins/plugin.search.js.map +1 -1
  126. package/BookReader/plugins/plugin.text_selection.js +2 -1
  127. package/BookReader/plugins/plugin.text_selection.js.LICENSE.txt +1 -0
  128. package/BookReader/plugins/plugin.text_selection.js.map +1 -1
  129. package/BookReader/plugins/plugin.translate.js +137 -0
  130. package/BookReader/plugins/plugin.translate.js.LICENSE.txt +1 -0
  131. package/BookReader/plugins/plugin.translate.js.map +1 -0
  132. package/BookReader/plugins/plugin.tts.js +1 -1
  133. package/BookReader/plugins/plugin.tts.js.LICENSE.txt +2 -0
  134. package/BookReader/plugins/plugin.tts.js.map +1 -1
  135. package/BookReader/plugins/plugin.url.js +1 -1
  136. package/BookReader/plugins/plugin.url.js.map +1 -1
  137. package/BookReader/plugins/plugin.vendor-fullscreen.js +1 -1
  138. package/BookReader/plugins/plugin.vendor-fullscreen.js.map +1 -1
  139. package/BookReader/plugins/translator-worker.js +2 -0
  140. package/BookReader/plugins/translator-worker.js.map +1 -0
  141. package/BookReader/silence.mp3 +0 -0
  142. package/BookReader/translator-worker.js +475 -0
  143. package/BookReader/webcomponents-bundle.js +3 -0
  144. package/BookReader/webcomponents-bundle.js.LICENSE.txt +9 -0
  145. package/BookReader/webcomponents-bundle.js.map +1 -0
  146. package/README.md +14 -3
  147. package/jsconfig.json +19 -0
  148. package/package.json +92 -70
  149. package/src/BookReader/BookModel.js +92 -46
  150. package/src/BookReader/DragScrollable.js +233 -0
  151. package/src/BookReader/ImageCache.js +49 -16
  152. package/src/BookReader/Mode1Up.js +66 -365
  153. package/src/BookReader/Mode1UpLit.js +392 -0
  154. package/src/BookReader/Mode2Up.js +87 -1315
  155. package/src/BookReader/Mode2UpLit.js +788 -0
  156. package/src/BookReader/ModeAbstract.js +43 -0
  157. package/src/BookReader/ModeCoordinateSpace.js +29 -0
  158. package/src/BookReader/ModeSmoothZoom.js +312 -0
  159. package/src/BookReader/ModeThumb.js +29 -15
  160. package/src/BookReader/Navbar/Navbar.js +201 -76
  161. package/src/BookReader/PageContainer.js +120 -23
  162. package/src/BookReader/ReduceSet.js +2 -2
  163. package/src/BookReader/Toolbar/Toolbar.js +18 -40
  164. package/src/BookReader/events.js +3 -3
  165. package/src/BookReader/options.js +94 -17
  166. package/src/BookReader/utils/HTMLDimensionsCacher.js +44 -0
  167. package/src/BookReader/utils/ScrollClassAdder.js +31 -0
  168. package/src/BookReader/utils/SelectionObserver.js +45 -0
  169. package/src/BookReader/utils/classes.js +1 -1
  170. package/src/BookReader/utils.js +136 -12
  171. package/src/BookReader.js +678 -1226
  172. package/src/BookReaderPlugin.js +52 -0
  173. package/src/assets/icons/magnify-minus.svg +3 -7
  174. package/src/assets/icons/magnify-plus.svg +3 -7
  175. package/src/assets/icons/slider-toggle.svg +1 -0
  176. package/src/assets/icons/voice.svg +1 -0
  177. package/src/assets/images/hypothesis.ico +0 -0
  178. package/src/assets/images/icon_experiment.svg +1 -0
  179. package/src/assets/images/translate.svg +1 -0
  180. package/src/assets/images/unviewable_page.png +0 -0
  181. package/src/assets/silence.mp3 +0 -0
  182. package/src/css/BookReader.scss +1 -5
  183. package/src/css/_BRBookmarks.scss +1 -1
  184. package/src/css/_BRComponent.scss +1 -1
  185. package/src/css/_BRicon.scss +8 -2
  186. package/src/css/_BRmain.scss +16 -3
  187. package/src/css/_BRnav.scss +74 -70
  188. package/src/css/_BRpages.scss +171 -42
  189. package/src/css/_BRsearch.scss +69 -30
  190. package/src/css/_BRtoolbar.scss +5 -5
  191. package/src/css/_TextSelection.scss +129 -24
  192. package/src/css/_colorbox.scss +2 -2
  193. package/src/css/_controls.scss +24 -7
  194. package/src/css/_icons.scss +8 -1
  195. package/src/{BookNavigator/assets → css}/button-base.js +2 -2
  196. package/src/css/icon_checkmark.js +9 -0
  197. package/src/css/sharedStyles.js +15 -0
  198. package/src/ia-bookreader/downloads/downloads-provider.js +81 -0
  199. package/src/{BookNavigator → ia-bookreader}/downloads/downloads.js +25 -5
  200. package/src/ia-bookreader/ia-bookreader.js +666 -0
  201. package/src/ia-bookreader/sharing.js +27 -0
  202. package/src/ia-bookreader/viewable-files.js +98 -0
  203. package/src/{BookNavigator → ia-bookreader}/visual-adjustments/visual-adjustments-provider.js +17 -17
  204. package/src/{BookNavigator → ia-bookreader}/visual-adjustments/visual-adjustments.js +75 -67
  205. package/src/{BookNavigator → plugins}/bookmarks/bookmark-button.js +4 -3
  206. package/src/{BookNavigator/assets → plugins/bookmarks}/bookmark-colors.js +1 -1
  207. package/src/{BookNavigator → plugins}/bookmarks/bookmark-edit.js +43 -31
  208. package/src/{BookNavigator → plugins}/bookmarks/bookmarks-list.js +48 -49
  209. package/src/{BookNavigator → plugins}/bookmarks/bookmarks-loginCTA.js +3 -3
  210. package/src/plugins/bookmarks/bookmarks-provider.js +63 -0
  211. package/src/{BookNavigator → plugins/bookmarks}/delete-modal-actions.js +1 -1
  212. package/src/{BookNavigator → plugins}/bookmarks/ia-bookmarks.js +117 -68
  213. package/src/plugins/plugin.archive_analytics.js +84 -78
  214. package/src/plugins/plugin.autoplay.js +99 -104
  215. package/src/plugins/plugin.chapters.js +314 -205
  216. package/src/plugins/plugin.experiments.js +321 -0
  217. package/src/plugins/plugin.iframe.js +1 -1
  218. package/src/plugins/plugin.iiif.js +141 -0
  219. package/src/plugins/plugin.resume.js +54 -51
  220. package/src/plugins/plugin.text_selection.js +522 -219
  221. package/src/plugins/plugin.vendor-fullscreen.js +5 -5
  222. package/src/plugins/search/plugin.search.js +374 -392
  223. package/src/{BookNavigator → plugins}/search/search-provider.js +59 -27
  224. package/src/{BookNavigator → plugins}/search/search-results.js +105 -76
  225. package/src/plugins/search/utils.js +50 -0
  226. package/src/plugins/search/view.js +50 -68
  227. package/src/plugins/translate/TranslationManager.js +164 -0
  228. package/src/plugins/translate/plugin.translate.js +512 -0
  229. package/src/plugins/tts/AbstractTTSEngine.js +78 -49
  230. package/src/plugins/tts/FestivalTTSEngine.js +20 -30
  231. package/src/plugins/tts/PageChunk.js +33 -21
  232. package/src/plugins/tts/PageChunkIterator.js +11 -17
  233. package/src/plugins/tts/WebTTSEngine.js +131 -91
  234. package/src/plugins/tts/plugin.tts.js +345 -350
  235. package/src/plugins/tts/utils.js +77 -49
  236. package/src/plugins/url/UrlPlugin.js +191 -0
  237. package/src/plugins/{plugin.url.js → url/plugin.url.js} +44 -15
  238. package/src/util/TextSelectionManager.js +282 -0
  239. package/src/util/browserSniffing.js +33 -1
  240. package/src/util/cache.js +20 -0
  241. package/src/util/docCookies.js +21 -2
  242. package/src/util/lit.js +15 -0
  243. package/src/util/strings.js +1 -0
  244. package/.babelrc +0 -12
  245. package/.dependabot/config.yml +0 -6
  246. package/.eslintrc.js +0 -50
  247. package/.gitattributes +0 -2
  248. package/.github/ISSUE_TEMPLATE/bug.md +0 -32
  249. package/.github/ISSUE_TEMPLATE/feature-request.md +0 -30
  250. package/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md +0 -15
  251. package/.github/workflows/node.js.yml +0 -37
  252. package/.github/workflows/npm-publish.yml +0 -47
  253. package/.testcaferc.json +0 -5
  254. package/BookReader/bookreader-component-bundle.js +0 -1450
  255. package/BookReader/bookreader-component-bundle.js.LICENSE.txt +0 -38
  256. package/BookReader/bookreader-component-bundle.js.map +0 -1
  257. package/BookReader/jquery-1.10.1.js +0 -2
  258. package/BookReader/jquery-1.10.1.js.LICENSE.txt +0 -24
  259. package/BookReader/plugins/plugin.menu_toggle.js +0 -2
  260. package/BookReader/plugins/plugin.menu_toggle.js.map +0 -1
  261. package/BookReader/plugins/plugin.mobile_nav.js +0 -2
  262. package/BookReader/plugins/plugin.mobile_nav.js.map +0 -1
  263. package/BookReaderDemo/BookReaderDemo.css +0 -41
  264. package/BookReaderDemo/BookReaderJSAdvanced.js +0 -115
  265. package/BookReaderDemo/BookReaderJSAutoplay.js +0 -56
  266. package/BookReaderDemo/BookReaderJSSimple.js +0 -55
  267. package/BookReaderDemo/IIIFBookReader.js +0 -207
  268. package/BookReaderDemo/assets/v5/Bookreader-logo-cool-grad.svg +0 -1
  269. package/BookReaderDemo/assets/v5/Bookreader-logo-flat.svg +0 -1
  270. package/BookReaderDemo/assets/v5/Bookreader-logo-hex-cool-grad.png +0 -0
  271. package/BookReaderDemo/assets/v5/Bookreader-logo-hex-flat.png +0 -0
  272. package/BookReaderDemo/assets/v5/Bookreader-logo-lines.png +0 -0
  273. package/BookReaderDemo/assets/v5/Bookreader-logo-lines.svg +0 -1
  274. package/BookReaderDemo/assets/v5/Bookreader-logo-warm.svg +0 -1
  275. package/BookReaderDemo/assets/v5/bookreader-logo-renders@1x.png +0 -0
  276. package/BookReaderDemo/assets/v5/bookreader-logo-renders@2x.png +0 -0
  277. package/BookReaderDemo/assets/v5/bookreader-v5-screenshot.png +0 -0
  278. package/BookReaderDemo/bookreader-template-bundle.js +0 -7178
  279. package/BookReaderDemo/demo-advanced.html +0 -33
  280. package/BookReaderDemo/demo-autoplay.html +0 -38
  281. package/BookReaderDemo/demo-embed-iframe-src.html +0 -84
  282. package/BookReaderDemo/demo-embed.html +0 -26
  283. package/BookReaderDemo/demo-fullscreen-mobile.html +0 -36
  284. package/BookReaderDemo/demo-fullscreen.html +0 -33
  285. package/BookReaderDemo/demo-iiif.html +0 -34
  286. package/BookReaderDemo/demo-iiif.js +0 -26
  287. package/BookReaderDemo/demo-internetarchive.html +0 -74
  288. package/BookReaderDemo/demo-multiple.html +0 -43
  289. package/BookReaderDemo/demo-plugin-menu-toggle.html +0 -34
  290. package/BookReaderDemo/demo-preview-pages.html +0 -1092
  291. package/BookReaderDemo/demo-simple.html +0 -34
  292. package/BookReaderDemo/demo-vendor-fullscreen.html +0 -36
  293. package/BookReaderDemo/immersion-1up.html +0 -64
  294. package/BookReaderDemo/immersion-mode.html +0 -35
  295. package/BookReaderDemo/toggle_controls.html +0 -53
  296. package/BookReaderDemo/view_mode.html +0 -39
  297. package/BookReaderDemo/viewmode-cycle.html +0 -41
  298. package/CHANGELOG.md +0 -495
  299. package/CONTRIBUTING.md +0 -7
  300. package/codecov.yml +0 -17
  301. package/index.html +0 -31
  302. package/karma.conf.js +0 -23
  303. package/screenshot.png +0 -0
  304. package/scripts/postversion.js +0 -10
  305. package/scripts/preversion.js +0 -14
  306. package/scripts/version.js +0 -26
  307. package/src/BookNavigator/BookModel.js +0 -14
  308. package/src/BookNavigator/BookNavigator.js +0 -446
  309. package/src/BookNavigator/assets/book-loader.js +0 -27
  310. package/src/BookNavigator/assets/icon_checkmark.js +0 -6
  311. package/src/BookNavigator/assets/icon_close.js +0 -3
  312. package/src/BookNavigator/bookmarks/bookmarks-provider.js +0 -53
  313. package/src/BookNavigator/br-fullscreen-mgr.js +0 -83
  314. package/src/BookNavigator/downloads/downloads-provider.js +0 -66
  315. package/src/BookNavigator/search/a-search-result.js +0 -55
  316. package/src/BookReader/DebugConsole.js +0 -54
  317. package/src/BookReaderComponent/BookReaderComponent.js +0 -112
  318. package/src/ItemNavigator/ItemNavigator.js +0 -376
  319. package/src/ItemNavigator/providers/sharing.js +0 -29
  320. package/src/css/_MobileNav.scss +0 -194
  321. package/src/dragscrollable-br.js +0 -261
  322. package/src/plugins/menu_toggle/plugin.menu_toggle.js +0 -324
  323. package/src/plugins/plugin.mobile_nav.js +0 -287
  324. package/tests/BookReader/BookModel.test.js +0 -312
  325. package/tests/BookReader/BookReaderPublicFunctions.test.js +0 -171
  326. package/tests/BookReader/DebugConsole.test.js +0 -25
  327. package/tests/BookReader/ImageCache.test.js +0 -150
  328. package/tests/BookReader/Mode1Up.test.js +0 -164
  329. package/tests/BookReader/Mode2Up.test.js +0 -247
  330. package/tests/BookReader/Navbar/Navbar.test.js +0 -169
  331. package/tests/BookReader/PageContainer.test.js +0 -115
  332. package/tests/BookReader/ReduceSet.test.js +0 -38
  333. package/tests/BookReader/Toolbar/Toolbar.test.js +0 -26
  334. package/tests/BookReader/utils/classes.test.js +0 -88
  335. package/tests/BookReader/utils.test.js +0 -109
  336. package/tests/BookReader.options.test.js +0 -39
  337. package/tests/BookReader.test.js +0 -301
  338. package/tests/e2e/README.md +0 -75
  339. package/tests/e2e/autoplay.test.js +0 -13
  340. package/tests/e2e/base.test.js +0 -35
  341. package/tests/e2e/helpers/base.js +0 -263
  342. package/tests/e2e/helpers/debug.js +0 -13
  343. package/tests/e2e/helpers/desktopSearch.js +0 -72
  344. package/tests/e2e/helpers/mobileSearch.js +0 -85
  345. package/tests/e2e/helpers/mockSearch.js +0 -93
  346. package/tests/e2e/helpers/rightToLeft.js +0 -29
  347. package/tests/e2e/ia-production/ia-prod-base.js +0 -17
  348. package/tests/e2e/models/BookReader.js +0 -11
  349. package/tests/e2e/models/Navigation.js +0 -56
  350. package/tests/e2e/rightToLeft.test.js +0 -20
  351. package/tests/e2e/viewmode.test.js +0 -37
  352. package/tests/karma/BookNavigator/book-navigator.test.js +0 -132
  353. package/tests/karma/BookNavigator/bookmarks/bookmark-edit.test.js +0 -133
  354. package/tests/karma/BookNavigator/bookmarks/bookmarks-list.test.js +0 -222
  355. package/tests/karma/BookNavigator/search/search-provider.test.js +0 -23
  356. package/tests/karma/BookNavigator/search/search-results.test.js +0 -240
  357. package/tests/karma/BookNavigator/visual-adjustments.test.js +0 -201
  358. package/tests/plugins/menu_toggle/plugin.menu_toggle.test.js +0 -68
  359. package/tests/plugins/plugin.archive_analytics.test.js +0 -23
  360. package/tests/plugins/plugin.autoplay.test.js +0 -52
  361. package/tests/plugins/plugin.chapters.test.js +0 -130
  362. package/tests/plugins/plugin.iframe.test.js +0 -42
  363. package/tests/plugins/plugin.mobile_nav.test.js +0 -66
  364. package/tests/plugins/plugin.resume.test.js +0 -98
  365. package/tests/plugins/plugin.text_selection.test.js +0 -203
  366. package/tests/plugins/plugin.url.test.js +0 -129
  367. package/tests/plugins/plugin.vendor-fullscreen.test.js +0 -65
  368. package/tests/plugins/search/plugin.search.test.js +0 -173
  369. package/tests/plugins/search/plugin.search.view.test.js +0 -106
  370. package/tests/plugins/tts/AbstractTTSEngine.test.js +0 -153
  371. package/tests/plugins/tts/FestivalTTSEngine.test.js +0 -59
  372. package/tests/plugins/tts/PageChunk.test.js +0 -57
  373. package/tests/plugins/tts/PageChunkIterator.test.js +0 -179
  374. package/tests/plugins/tts/WebTTSEngine.test.js +0 -126
  375. package/tests/plugins/tts/utils.test.js +0 -133
  376. package/tests/util/browserSniffing.test.js +0 -56
  377. package/tests/util/docCookies.test.js +0 -15
  378. package/tests/util/strings.test.js +0 -63
  379. package/tests/utils.js +0 -42
  380. package/webpack.config.js +0 -86
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see BookReader.js.LICENSE.txt */
2
- (function(){var __webpack_modules__={6969:function(e,t,n){"use strict";n(5666),n(1539),n(9714),n(5827),n(7941),n(4916),n(6992),n(8783),n(3948),n(285),n(4765),n(7042),n(9826),n(7327),n(6699),n(2023),n(3123),n(5306),n(9600),n(8674),n(3762),n(6891),n(6177),n(5557),function(e){var t=function(e,t){for(var n=e.split(" "),i=new Array,r=0;r<n.length;r++)i.push(n[r]+t);return i.join(" ")},n=function(e){var t,n;if(void 0!==e.clientX)t=e.clientX,n=e.clientY;else if(void 0!==e.screenX)t=e.screenX,n=e.screenY;else if(void 0!==e.targetTouches)t=e.targetTouches[0].pageX,n=e.targetTouches[0].pageY;else if(void 0===e.originalEvent){var i="";for(var r in e)i+=", "+r+": "+e[r];console.error("don't understand x and y for "+e.type+" event: "+i)}else void 0!==e.originalEvent.clientX?(t=e.originalEvent.clientX,n=e.originalEvent.clientY):void 0!==e.originalEvent.screenX?(t=e.originalEvent.screenX,n=e.originalEvent.screenY):void 0!==e.originalEvent.targetTouches&&(t=e.originalEvent.targetTouches[0].pageX,n=e.originalEvent.targetTouches[0].pageY);return{left:t,top:n}};e.fn.dragscrollable=function(i){var r=e(this),o=e.extend({dragSelector:">:first",acceptPropagatedEvent:!0,preventDefault:!0,dragstart:"mousedown touchstart",dragcontinue:"mousemove touchmove",dragend:"mouseup touchend",dragMinDistance:5,namespace:".ds",scrollWindow:!1},i||{});o.dragstart=t(o.dragstart,o.namespace),o.dragcontinue=t(o.dragcontinue,o.namespace);var a,s=function(){return!!("ontouchstart"in window)||!!("msmaxtouchpoints"in window.navigator)},u={dragStartHandler:function(t){return!!s()||!(t.which>1||!t.data.acceptPropagatedEvent&&t.target!=this)&&(t.data.firstCoord=n(t),t.data.lastCoord=t.data.firstCoord,r.bind(o.dragcontinue,t.data,u.dragContinueHandler),a=function(e){e.data=t.data,u.dragEndHandler(e)},e.each(o.dragend.split(" "),(function(e,t){r.get(0).addEventListener(t,a,!0)})),t.data.preventDefault?(t.preventDefault(),!1):void 0)},dragContinueHandler:function(t){if(s())return!0;var i=n(t),r=i.left-t.data.lastCoord.left,o=i.top-t.data.lastCoord.top,a=t.data.scrollable;return t.data.scrollWindow&&(a=e(window)),a.scrollLeft(a.scrollLeft()-r),a.scrollTop(a.scrollTop()-o),t.data.lastCoord=i,t.data.preventDefault?(t.preventDefault(),!1):void 0},dragEndHandler:function(t){if(s())return!0;r.unbind(o.dragcontinue).unbind(o.dragend),e.each(o.dragend.split(" "),(function(e,t){r.get(0).removeEventListener(t,a,!0)}));var n={left:Math.abs(t.data.lastCoord.left-t.data.firstCoord.left),top:Math.abs(t.data.lastCoord.top-t.data.firstCoord.top)},i=Math.max(n.left,n.top);return t.data.preventDefault&&i>o.dragMinDistance?(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),!1):void 0}};return this.each((function(){var t={scrollable:e(this),acceptPropagatedEvent:o.acceptPropagatedEvent,preventDefault:o.preventDefault,scrollWindow:o.scrollWindow};e(this).find(o.dragSelector).bind(o.dragstart,t,u.dragStartHandler)}))},e.fn.removedragscrollable=function(t){return void 0===t&&(t=".ds"),this.each((function(){e(document).find("*").andSelf().unbind(t)}))}}(n(3609));var i=n(5685);function r(e,t,n,i,r,o){var a,s=(a=e.prototype[t],function(){return a.apply(o(this),arguments)});Object.defineProperty(i.prototype,r,{get:function(){return s},set:function(i){e.prototype[t]=function(){var t=this instanceof e?n(this):this;return i.apply(t,arguments)},s=i}})}n(2222),n(1249),n(4747),n(6227);var o={fragmentChange:"fragmentChange",PostInit:"PostInit",stop:"stop",resize:"resize",navToggled:"navToggled",fullscreenToggled:"fullscreenToggled",zoomOut:"zoomOut",zoomIn:"zoomIn","1PageViewSelected":"1PageViewSelected","2PageViewSelected":"2PageViewSelected","3PageViewSelected":"3PageViewSelected",mobileNavOpen:"mobileNavOpen"},a=n(3609);function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.br=t,this.$root=null,this.$nav=null,this.maxPageNum=null,this.minimumControls=["viewmode"],this.maximumControls=["book_left","book_right","zoom_in","zoom_out","onepg","twopg","thumb"]}var t,n;return t=e,(n=[{key:"controlFor",value:function(e){var t=this.br.options.controls[e];return t.visible?t.template?"<li>".concat(t.template(this.br),"</li>"):'<li>\n <button class="BRicon '.concat(t.className,'" title="').concat(t.label,'">\n <div class="icon icon-').concat(t.iconClassName,'"></div>\n <span class="tooltip">').concat(t.label,"</span>\n </button>\n </li>"):""}},{key:"_renderControls",value:function(){var e=this;return["bookLeft","bookRight","onePage","twoPage","thumbnail","viewmode","zoomOut","zoomIn","fullScreen"].map((function(t){return e.controlFor(t)})).join("")}},{key:"_bindViewModeButton",value:function(){var e=this,t=this.br,n=t.options.controls.viewmode,i=[{mode:t.constMode1up,className:"onepg",title:"One-page view"},{mode:t.constMode2up,className:"twopg",title:"Two-page view"},{mode:t.constModeThumb,className:"thumb",title:"Thumbnail view"}].filter((function(e){return!n.excludedModes.includes(e.mode)})),r=i.map((function(e){return e.mode}));n.excludedModes.includes(t.mode)&&t.switchMode(r[0]);for(var s=r.indexOf(t.mode),u=0;u<=s;u++)r.push(r.shift());i.length<2&&this.$nav.find(".".concat(n.className)).remove(),this.br.bind(o.PostInit,(function(){var o=e.$nav.find(".".concat(n.className)).off(".bindNavigationHandlers").on("click",(function(n){var o=r.shift(),s=i.find((function(e){return e.mode===o})),u=i.find((function(e){return e.mode===r[0]}));r.push(o),t.viewModeOrder=r,e.updateViewModeButton(a(n.currentTarget),u.className,u.title),t.switchMode(s.mode)})),s=i.find((function(e){return e.mode===r[0]}));e.updateViewModeButton(o,s.className,s.title)}))}},{key:"updateViewModeButton",value:function(e,t,n){e.attr("title",n).find(".icon").removeClass().addClass("icon icon-".concat(t)).end().find(".tooltip").text(n)}},{key:"switchNavbarControls",value:function(){"linerNotes"!==this.br.options.bookType&&(this.br.refs.$brContainer.prop("clientWidth")<640?this.showMinimumNavbarControls():this.showMaximumNavbarControls())}},{key:"showMinimumNavbarControls",value:function(){this.minimumControls.forEach((function(e){var t=document.querySelector(".controls .".concat(e));t&&t.classList.remove("hide")})),this.maximumControls.forEach((function(e){var t=document.querySelector(".controls .".concat(e));t&&t.classList.add("hide")}))}},{key:"showMaximumNavbarControls",value:function(){this.maximumControls.forEach((function(e){var t=document.querySelector(".controls .".concat(e));t&&t.classList.remove("hide")})),this.minimumControls.forEach((function(e){var t=document.querySelector(".controls .".concat(e));t&&t.classList.add("hide")}))}},{key:"init",value:function(){var e=this,t=this.br,n=t.options.navbarTitle,i="rl"===t.pageProgression,r=i?"book_flip_next":"book_flip_prev",o=i?"book_flip_prev":"book_flip_next";this.br.options.controls.bookLeft.className="book_left ".concat(r),this.br.options.controls.bookRight.className="book_right ".concat(o),t.refs.$BRfooter=this.$root=a('<div class="BRfooter"></div>'),t.refs.$BRnav=this.$nav=a('<div class="BRnav BRnavDesktop">\n '.concat(n?'<div class="BRnavTitle">'.concat(n,"</div>"):"",'\n <nav class="BRcontrols">\n <ul class="controls">\n <li class="scrubber">\n <div class="BRnavpos">\n <div class="BRpager"></div>\n <div class="BRnavline"></div>\n </div>\n <p><span class=\'BRcurrentpage\'></span></p>\n </li>\n ').concat(this._renderControls(),"\n </ul>\n </nav>\n </div>")),this.$root.append(this.$nav),t.refs.$br.append(this.$root);var s=this.$root.find(".BRpager").slider({animate:!0,min:0,max:t.getNumLeafs()-1,value:t.currentIndex(),range:"min"});return s.on("slide",(function(t,n){return e.updateNavPageNum(n.value),!0})),s.on("slidechange",(function(n,i){return e.updateNavPageNum(i.value),s.data("swallowchange")?s.data("swallowchange",!1):t.jumpToIndex(i.value),!0})),t.options.controls.viewmode.visible&&this._bindViewModeButton(),this.updateNavPageNum(t.currentIndex()),this.$nav}},{key:"initEmbed",value:function(){var e=this.br,t=(window.location+"").replace("?ui=embed","").replace("/stream/","/details/").replace("#","/"),n=e.showLogo?'<a class="logo" href="'.concat(e.logoURL,'" target="_blank"></a>'):"";e.refs.$BRfooter=this.$root=a('<div class="BRfooter"></div>'),e.refs.$BRnav=this.$nav=a('<div class="BRnav BRnavEmbed">\n '.concat(n,'\n <span class="BRembedreturn">\n <a href="').concat(t,'" target="_blank">').concat(e.bookTitle,'</a>\n </span>\n <span class="BRtoolbarbuttons">\n <button class="BRicon book_left"></button>\n <button class="BRicon book_right"></button>\n <button class="BRicon full"></button>\n </span>\n </div>')),this.$root.append(this.$nav),e.refs.$br.append(this.$root)}},{key:"getNavPageNumString",value:function(e){var t=this.br,n=t.getPageNum(e),i=(t.getPageProp(e,"pageType"),t.getNumLeafs());if(!this.maxPageNum){for(var r,o=0,a=0;a<i;a++)r=t.getPageNum(a),!isNaN(r)&&r>o&&(o=r);this.maxPageNum=o}return c(e,i,n,0,this.maxPageNum)}},{key:"updateNavPageNum",value:function(e){this.$root.find(".BRcurrentpage").html(this.getNavPageNumString(e))}},{key:"updateNavIndex",value:function(e){e=void 0!==e?e:this.br.currentIndex(),this.$root.find(".BRpager").data("swallowchange",!0).slider("value",e)}}])&&s(t.prototype,n),e}();function c(e,t,n,i,r){if("n"==n[0])return"(".concat(e+1," of ").concat(t,")");var o=r?" of ".concat(r):"";return"".concat(n).concat(o)}var l={defaults:null,padding:10,ui:"full",uiAutoHide:!1,thumbRowBuffer:1,thumbColumns:6,thumbMaxLoading:4,thumbPadding:10,flipSpeed:"fast",showToolbar:!0,showNavbar:!0,navBarTitle:"",showLogo:!0,logoURL:"https://archive.org",imagesBaseURL:"/BookReader/images/",reduceSet:"pow2",reductionFactors:[{reduce:.25,autofit:null},{reduce:.5,autofit:null},{reduce:1,autofit:null},{reduce:2,autofit:null},{reduce:3,autofit:null},{reduce:4,autofit:null},{reduce:6,autofit:null}],onePage:{autofit:"auto"},twoPage:{coverInternalPadding:0,coverExternalPadding:0,bookSpineDivWidth:64,autofit:"auto"},onePageMinBreakpoint:800,bookTitle:"",bookUrl:null,bookUrlText:null,bookUrlTitle:null,enableBookTitleLink:!0,bookLanguage:null,metadata:[],thumbnail:null,bookUrlMoreInfo:null,enableExperimentalControls:!1,el:"#BookReader",pageProgression:"lr",ppi:500,protected:!1,plugins:{textSelection:null},vars:{},data:[],getNumLeafs:null,getPageWidth:null,getPageHeight:null,getPageURI:null,getPageSide:null,getSpreadIndices:null,getPageNum:null,getPageProp:null,leafNumToIndex:null,getEmbedCode:null,controls:{bookLeft:{visible:!0,label:"Flip left",className:"book_left",iconClassName:"left-arrow"},bookRight:{visible:!0,label:"Flip right",className:"book_right",iconClassName:"left-arrow hflip"},onePage:{visible:!0,label:"One-page view",className:"onepg",iconClassName:"onepg"},twoPage:{visible:!0,label:"Two-page view",className:"twopg",iconClassName:"twopg"},thumbnail:{visible:!0,label:"Thumbnail view",className:"thumb",iconClassName:"thumb"},viewmode:{visible:!0,className:"viewmode",excludedModes:[]},zoomOut:{visible:!0,label:"Zoom out",className:"zoom_out",iconClassName:"magnify"},zoomIn:{visible:!0,label:"Zoom in",className:"zoom_in",iconClassName:"magnify plus"},fullScreen:{visible:!0,label:"Toggle fullscreen",className:"full",iconClassName:"fullscreen"}},startFullscreen:!1,autoResize:!0,useSrcSet:!1},h=n(105),d=(n(6977),n(8309),n(1038),n(2526),n(1817),n(2165),n(4581),n(3609));function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function f(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var g=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.br=t}var t,n;return t=e,(n=[{key:"buildToolbarElement",value:function(){var e=this.br,t=e.showLogo?'\n <span class="BRtoolbarSection BRtoolbarSectionLogo">\n <a class="logo" href="'.concat(e.logoURL,'"></a>\n </span>'):"";e.refs.$BRtoolbar=d('\n <div class="BRtoolbar header">\n <div class="BRtoolbarbuttons">\n <div class="BRtoolbarLeft">\n '.concat(t,'\n <span class="BRtoolbarSection BRtoolbarSectionTitle"></span>\n </div>\n <div class="BRtoolbarRight">\n <span class="BRtoolbarSection BRtoolbarSectionInfo">\n <button class="BRpill info js-tooltip">Info</button>\n <button class="BRpill share js-tooltip">Share</button>\n </span>\n </div>\n </div>\n </div>'));var n=e.refs.$BRtoolbar.find(".BRtoolbarSectionTitle");return e.bookUrl&&e.options.enableBookTitleLink?n.append(d("<a>").attr({href:e.bookUrl,title:e.bookUrlTitle}).addClass("BRreturn").html(e.bookUrlText||e.bookTitle)):e.bookTitle&&n.append(e.bookUrlText||e.bookTitle),e.refs.$BRtoolbar}},{key:"initToolbar",value:function(e,t){var n=this.br;n.refs.$br.append(this.buildToolbarElement()),n.$(".BRnavCntl").addClass("BRup"),n.$(".pause").hide(),this.updateToolbarZoom(n.reduce),n.refs.$BRtoolbar.append(),n.canSwitchToMode(n.constMode2up)||n.$(".two_page_mode, .play, .pause").hide(),n.canSwitchToMode(n.constModeThumb)||n.$(".thumbnail_mode").hide(),n.canSwitchToMode(n.constMode2up)||n.canSwitchToMode(n.constModeThumb)||n.$(".one_page_mode").hide(),d('<div style="display: none;"></div>').append(m()).append(v()).appendTo(n.refs.$br),n.$(".BRinfo .BRfloatTitle a").attr({href:n.bookUrl}).text(n.bookTitle).addClass("title"),this.buildInfoDiv(n.$(".BRinfo")),this.buildShareDiv(n.$(".BRshare")),n.$(".share").colorbox({inline:!0,opacity:"0.5",href:n.$(".BRshare"),onLoad:function(){n.trigger(o.stop),n.$(".BRpageviewValue").val(window.location.href)}}),n.$(".info").colorbox({inline:!0,opacity:"0.5",href:n.$(".BRinfo"),onLoad:function(){n.trigger(o.stop)}})}},{key:"updateToolbarZoom",value:function(e){var t,n=this.br,i=n.mode==n.constMode2up?n.twoPage.autofit:n.onePage.autofit;t=i?i.slice(0,1).toUpperCase()+i.slice(1):(100/e).toFixed(2).replace(/0+$/,"").replace(/\.$/,"")+"%",n.$(".BRzoom").text(t)}},{key:"buildShareDiv",value:function(e){var t=this,n=this.br,i=document.location+"",r=(i+"").replace(/#.*/,""),o=n.getEmbedCode?'\n <div class="share-embed">\n <p class="share-embed-prompt">Copy and paste one of these options to share this book elsewhere.</p>\n <form method="post" action="">\n <fieldset class="fieldset-share-pageview">\n <label for="pageview">Link to this page view</label>\n <input type="text" name="pageview" class="BRpageviewValue" value="'.concat(i,'"/>\n </fieldset>\n <fieldset class="fieldset-share-book-link">\n <label for="booklink">Link to the book</label>\n <input type="text" name="booklink" class="booklink" value="').concat(r,'"/>\n </fieldset>\n <fieldset class="fieldset-embed">\n <label for="iframe">Embed a mini Book Reader</label>\n <fieldset class="sub">\n <label class="sub">\n <input type="radio" name="pages" value="').concat(n.constMode1up,'" checked="checked"/>\n 1 page\n </label>\n <label class="sub">\n <input type="radio" name="pages" value="').concat(n.constMode2up,'"/>\n 2 pages\n </label>\n <label class="sub">\n <input type="checkbox" name="thispage" value="thispage"/>\n Open to this page?\n </label>\n </fieldset>\n <textarea cols="30" rows="4" name="iframe" class="BRframeEmbed"></textarea>\n </fieldset>\n </form>\n </div>'):"",a=d('\n <div class="share-title">Share this book</div>\n <div class="share-social">\n <label class="sub open-to-this-page">\n <input class="thispage-social" type="checkbox" />\n Open to this page?\n </label>\n <div><button class="BRaction share facebook-share-button"><i class="BRicon fb" /> Facebook</button></div>\n <div><button class="BRaction share twitter-share-button"><i class="BRicon twitter" /> Twitter</button></div>\n <div><button class="BRaction share email-share-button"><i class="BRicon email" /> Email</button></div>\n </div>\n '.concat(o,'\n <div class="BRfloatFoot">\n <button class="share-finished" type="button" onclick="$.fn.colorbox.close();">Finished</button>\n </div>'));a.appendTo(e),a.find(".fieldset-embed input").on("change",(function(e){var t=d(e.target).parents("form:first"),i={};i.mode=d(t.find(".fieldset-embed input[name=pages]:checked")).val(),t.find(".fieldset-embed input[name=thispage]").prop("checked")&&(i.page=n.getPageNum(n.currentIndex())),n.getEmbedCode&&t.find(".BRframeEmbed").val(n.getEmbedCode("480px","430px",i))})),a.find("input, textarea").on("focus",(function(e){return e.target.select()})),a.find(".facebook-share-button").click((function(){b("https://www.facebook.com/sharer.php?"+d.param({u:t._getSocialShareUrl()}),600,400,"Share")})),a.find(".twitter-share-button").click((function(){b("https://twitter.com/intent/tweet?"+d.param({url:t._getSocialShareUrl(),text:n.bookTitle}),600,400,"Share")})),a.find(".email-share-button").click((function(){var e="".concat(n.bookTitle,"\n\n").concat(t._getSocialShareUrl());window.location.href="mailto:?subject=".concat(encodeURI(n.bookTitle),"&body=").concat(encodeURI(e))})),a.find("input[name=thispage]").trigger("change"),a.appendTo(e)}},{key:"_getSocialShareUrl",value:function(){return this.br.$(".thispage-social").prop("checked")?window.location.href:"".concat(document.location.protocol,"//").concat(window.location.hostname).concat(window.location.pathname)}},{key:"buildInfoDiv",value:function(e){var t=this.br;e.find(".BRfloatBody, .BRfloatCover, .BRfloatFoot").remove();var n=d('<div class="BRinfoLeftCol"></div>');t.thumbnail&&n.append(d('\n <div class="BRimageW">\n <img src="'.concat(t.thumbnail,'" alt="').concat((0,i.escapeHTML)(t.bookTitle),'" />\n </div>')));var r,o=d('<div class="BRinfoRightCol">'),a=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(t.metadata);try{for(a.s();!(r=a.n()).done;){var s=r.value,u=s.extraValueClass,c=void 0===u?"":u,l=s.label,h=s.value,f="Title"===l?(0,i.escapeHTML)(h):h;o.append(d('\n <div class="BRinfoValueWrapper">\n <div class="BRinfoLabel">'.concat(l,'</div>\n <div class="BRinfoValue ').concat(c,'">').concat(f,"</div>\n </div>")))}}catch(e){a.e(e)}finally{a.f()}var g=t.bookUrlMoreInfo?t.bookUrlMoreInfo:t.bookTitle;g&&t.bookUrl&&o.append(d('\n <div class="BRinfoValueWrapper">\n <div class="BRinfoMoreInfoWrapper">\n <a class="BRinfoMoreInfo" href="'.concat(t.bookUrl,'">\n ').concat((0,i.escapeHTML)(g),"\n </a>\n </div>\n </div>")));var v=d('<div class="BRfloatFoot BRinfoFooter"></div>'),m=d('<div class="BRinfoW mv20-lg">').append([n,o,d('<br style="clear:both"/>')]);e.append(m,v).addClass("wide")}},{key:"getToolBarHeight",value:function(){var e=this.br.refs.$BRtoolbar;return e&&"block"===e.css("display")?e.outerHeight()+parseInt(e.css("top")):0}}])&&f(t.prototype,n),e}();function v(){return d('\n <div class="BRfloat BRinfo">\n <div class="BRfloatHead">About this book\n <button class="floatShut" href="javascript:;" onclick="$.fn.colorbox.close();"><span class="shift">Close</span></button>\n </div>\n <div class="BRfloatBody">\n <div class="BRfloatCover"></div>\n <div class="BRfloatMeta">\n <div class="BRfloatTitle">\n <h2><a /></h2>\n </div>\n </div>\n </div>\n <div class="BRfloatFoot">\n <a href="https://openlibrary.org/dev/docs/bookreader">About the BookReader</a>\n </div>\n </div>')}function m(){return d('\n <div class="BRfloat BRshare">\n <div class="BRfloatHead">\n Share\n <button class="floatShut" href="javascript:;" onclick="$.fn.colorbox.close();"><span class="shift">Close</span></button>\n </div>\n </div>')}function b(e,t,n,i){var r=null!=window.screenLeft?window.screenLeft:screen.left,o=null!=window.screenTop?window.screenTop:screen.top,a=(window.innerWidth||document.documentElement.clientWidth||screen.width)/2-t/2+r,s=(window.innerHeight||document.documentElement.clientHeight||screen.height)/2-n/2+o,u="status=1,width=".concat(t,",height=").concat(n,",top=").concat(s,",left=").concat(a);window.open(e,i,u)}function y(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function P(e,t,n){return t&&x(e.prototype,t),n&&x(e,n),e}n(4553),n(6535),n(9244);var k=function(){function e(t){var n,i;_(this,e),this.br=t,this.reduceSet=t.reduceSet,this.ppi=null!==(n=null===(i=t.options)||void 0===i?void 0:i.ppi)&&void 0!==n?n:l.ppi,this._medianPageSize=null,this._medianPageSizePixels=null,this._getDataFlattenedCached=null}return P(e,[{key:"getMedianPageSize",value:function(){if(this._medianPageSizePixels)return this._medianPageSizePixels;for(var e=[],t=[],n=0;n<this.getNumLeafs();n++)e.push(this.getPageWidth(n)),t.push(this.getPageHeight(n));return e.sort(),t.sort(),this._medianPageSizePixels={width:e[Math.floor(e.length/2)],height:t[Math.floor(t.length/2)]},this._medianPageSizePixels}},{key:"getMedianPageSizeInches",value:function(){if(this._medianPageSize)return this._medianPageSize;var e,t=[],n=[],i=y(this.pagesIterator());try{for(i.s();!(e=i.n()).done;){var r=e.value;t.push(r.widthInches),n.push(r.heightInches)}}catch(e){i.e(e)}finally{i.f()}return t.sort(),n.sort(),this._medianPageSize={width:t[Math.floor(t.length/2)],height:n[Math.floor(n.length/2)]},this._medianPageSize}},{key:"_getPageWidth",value:function(e){return e=(0,i.clamp)(e,0,this.getNumLeafs()-1),this.getPageWidth(e)}},{key:"_getPageHeight",value:function(e){var t=(0,i.clamp)(e,0,this.getNumLeafs()-1);return this.getPageHeight(t)}},{key:"getPageIndex",value:function(e){var t=this.getPageIndices(e);return t.length?t[t.length-1]:void 0}},{key:"getPageIndices",value:function(e){var t=[];if("n"==e.slice(0,1))try{var n=e.slice(1,e.length),i=parseInt(n);return t.push(i),t}catch(e){}for(var r=0;r<this.getNumLeafs();r++)this.getPageNum(r)==e&&t.push(r);return t}},{key:"getPageName",value:function(e){return"Page "+this.getPageNum(e)}},{key:"getNumLeafs",value:function(){return void 0!==this.br.numLeafs?this.br.numLeafs:this._getDataFlattened().length}},{key:"getPageWidth",value:function(e){return this.getPageProp(e,"width")}},{key:"getPageHeight",value:function(e){return this.getPageProp(e,"height")}},{key:"getPageURI",value:function(e,t,n){return this.getPageProp(e,"viewable",!0)?this.getPageProp(e,"uri"):"/bookreader/static/preview-default.png"}},{key:"getPageSide",value:function(e){return this.getPageProp(e,"pageSide")||(e%2==0?"R":"L")}},{key:"getPageNum",value:function(e){var t=this.getPageProp(e,"pageNum");return void 0===t?"n".concat(e):t}},{key:"getPageProp",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return this._getDataProp(e,t,n)}},{key:"getSpreadIndices",value:function(e){return"rl"==this.br.pageProgression?"R"==this.getPageSide(e)?[e+1,e]:[e,e-1]:"L"==this.getPageSide(e)?[e,e+1]:[e-1,e]}},{key:"leafNumToIndex",value:function(e){var t=this._getDataFlattened().findIndex((function(t){return t.leafNum==e}));return t>-1?t:e}},{key:"parsePageString",value:function(e){var t,n=/^leaf(\d+)/.exec(e);return n?null===(t=this.leafNumToIndex(parseInt(n[1],10)))&&(t=void 0):t=this.getPageIndex(e),t}},{key:"getPage",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getNumLeafs();if(t||!(e<0||e>=n))return e<0&&e>=-n&&(e+=n),new C(this,e%=n)}},{key:"pagesIterator",value:regeneratorRuntime.mark((function e(){var t,n,i,r,o,a,s,u,c,l=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=l.length>0&&void 0!==l[0]?l[0]:{},n=t.start,i=void 0===n?0:n,r=t.end,o=void 0===r?1/0:r,a=t.combineConsecutiveUnviewables,s=void 0!==a&&a,i=Math.max(0,i),o=Math.min(o,this.getNumLeafs()),u=i;case 4:if(!(u<o)){e.next=13;break}if(c=this.getPage(u),!s||!c.isConsecutiveUnviewable){e.next=8;break}return e.abrupt("continue",10);case 8:return e.next=10,c;case 10:u++,e.next=4;break;case 13:case"end":return e.stop()}}),e,this)}))},{key:"_getDataFlattened",value:function(){if(this._getDataFlattenedCached&&this._getDataFlattenedCached[1]===this.br.data.length)return this._getDataFlattenedCached[0];var e=null,t=null,n=0,i=this.br.data.flatMap((function(i){return i.map((function(r){return r.pageSide||(r.pageSide=null===e?2===i.length?"L":"R":"L"===e?"R":"L"),e=r.pageSide,!1===r.viewable?r.unviewablesStart=null===t?t=n:t:t=null,n++,r}))}));return this._getDataFlattenedCached=[i,this.br.data.length],i}},{key:"_getDataProp",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=this._getDataFlattened(),r=isNaN(e)||e<0||e>=i.length;return r||void 0===i[e][t]?n:i[e][t]}}]),e}(),C=function(){function e(t,n){_(this,e),this.ppi=t._getDataProp(n,"ppi",t.ppi),this.book=t,this.index=n,this.width=t.getPageWidth(n),this.widthInches=this.width/this.ppi,this.height=t.getPageHeight(n),this.heightInches=this.height/this.ppi,this.pageSide=t.getPageSide(n),this.leafNum=t._getDataProp(n,"leafNum",this.index),this.isViewable=t._getDataProp(n,"viewable",!0),this.unviewablesStart=t._getDataProp(n,"unviewablesStart")||null,this.isConsecutiveUnviewable=!this.isViewable&&this.unviewablesStart!=this.index,this._rawData=this.book._getDataFlattened()[this.index]}return P(e,[{key:"makeViewable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.isViewable!=e)if(e){this._rawData.viewable=!0,delete this._rawData.unviewablesStart;var t,n=y(this.book.pagesIterator({start:this.index+1}));try{for(n.s();!(t=n.n()).done;){var i=t.value;if(i.isViewable)break;i._rawData.unviewablesStart=this.index+1}}catch(e){n.e(e)}finally{n.f()}}else{this._rawData.viewable=!1,this._rawData.unviewablesStart=this.prev&&!this.prev.isViewable?this.prev.unviewablesStart:this.index;var r,o=y(this.book.pagesIterator({start:this.index+1}));try{for(o.s();!(r=o.n()).done;){var a=r.value;if(!a.isViewable)break;a._rawData.unviewablesStart=this._rawData.unviewablesStart}}catch(e){o.e(e)}finally{o.f()}}}},{key:"prev",get:function(){return this.findPrev()}},{key:"next",get:function(){return this.findNext()}},{key:"getURI",value:function(e,t){return this.book.getPageURI(this.index,e,t)}},{key:"getURISrcSet",value:function(e){for(var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=this.book.reduceSet,r=i.floor(e),o=i.decr(r),a=[],s=o;s>=1;s=i.decr(s))a.push(s);return a.map((function(e){return"".concat(t.getURI(e,n)," ").concat(r/e,"x")})).join(", ")}},{key:"findNext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.combineConsecutiveUnviewables,n=void 0!==t&&t;return this.book.pagesIterator({start:this.index+1,combineConsecutiveUnviewables:n}).next().value}},{key:"findPrev",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.combineConsecutiveUnviewables,i=void 0!==n&&n;if(0!=this.index){if(i){if(this.isConsecutiveUnviewable)return this.book.getPage(this.unviewablesStart);var r=new e(this.book,this.index-1);return r.isViewable?r:r.findPrev({combineConsecutiveUnviewables:i})}return new e(this.book,this.index-1)}}}]),e}(),S=n(3609);function T(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function R(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var E=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.br=t,this.book=n,this.$documentContainer=S('<div class="BRpageview" />'),this.screenDPI=(0,i.calcScreenDPI)(),this.LEAF_SPACING_IN=.2,this.realWorldReduce=1}var t,n,r;return t=e,r=[{key:"boundIntersection",value:function(e,t){if(!(e.bottom>=t.top&&e.top<=t.bottom))return 0;var n=Math.min(e.top,t.top),i=Math.max(e.bottom,t.bottom),r=Math.max(e.top,t.top);return(Math.min(e.bottom,t.bottom)-r)/(i-n)}}],(n=[{key:"$scrollContainer",get:function(){return this.br.refs.$brContainer}},{key:"prepare",value:function(){var e=this.br.currentIndex();this.$scrollContainer.empty().css({overflowX:"auto",overflowY:"scroll"}).append(this.$documentContainer),this.$scrollContainer.dragscrollable(),this.br.bindGestures(this.$scrollContainer),this.resizePageView(),this.br.jumpToIndex(e),this.br.updateBrClasses()}},{key:"physicalInchesToDisplayPixels",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.realWorldReduce,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.screenDPI;return e*n/t}},{key:"pagesWithBounds",value:regeneratorRuntime.mark((function e(){var t,n,i,r,o,a,s,u,c=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=c.length>0&&void 0!==c[0]?c[0]:this.realWorldReduce,n=c.length>1&&void 0!==c[1]?c[1]:this.LEAF_SPACING_IN,i=0,r=0,o=T(this.book.pagesIterator({combineConsecutiveUnviewables:!0})),e.prev=5,o.s();case 7:if((a=o.n()).done){e.next=17;break}return s=a.value,u=this.physicalInchesToDisplayPixels(s.heightInches,t),r+=u,e.next=13,{page:s,top:i,bottom:r};case 13:i+=u+this.physicalInchesToDisplayPixels(n,t),r+=this.physicalInchesToDisplayPixels(n,t);case 15:e.next=7;break;case 17:e.next=22;break;case 19:e.prev=19,e.t0=e.catch(5),o.e(e.t0);case 22:return e.prev=22,o.f(),e.finish(22);case 25:case"end":return e.stop()}}),e,this,[[5,19,22,25]])}))},{key:"findIntersectingPages",value:regeneratorRuntime.mark((function t(){var n,i,r,o,a,s,u,c,l,h,d,p,f;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=this.$scrollContainer.height(),i=this.$scrollContainer.scrollTop(),r={top:i,bottom:i+n},o=null,a=T(this.pagesWithBounds()),t.prev=6,a.s();case 8:if((s=a.n()).done){t.next=27;break}if(c=s.value,l=c.page,h=c.top,d=c.bottom,p=e.boundIntersection({top:h,bottom:d},r),f={page:l,top:h,bottom:d,intersection:p},!p){t.next=20;break}if(!o||o.intersection){t.next=16;break}return t.next=16,o;case 16:return t.next=18,f;case 18:t.next=24;break;case 20:if(f.intersection||null===(u=o)||void 0===u||!u.intersection){t.next=24;break}return t.next=23,f;case 23:return t.abrupt("break",27);case 24:o=f;case 25:t.next=8;break;case 27:t.next=32;break;case 29:t.prev=29,t.t0=t.catch(6),a.e(t.t0);case 32:return t.prev=32,a.f(),t.finish(32);case 35:case"end":return t.stop()}}),t,this,[[6,29,32,35]])}))},{key:"drawLeafs",value:function(){var e=Array.from(this.findIntersectingPages());if(e.length){var t=this.$documentContainer.width(),n=(e.find((function(e){return e.intersection>.33}))||e[0]).page;this.br.updateFirstIndex(n.index);var r,o=T(e);try{for(o.s();!(r=o.n()).done;){var a=r.value,s=a.page,u=a.top,c=a.bottom;if(!this.br.displayedIndices.includes(s.index)){var l=c-u,h=this.physicalInchesToDisplayPixels(s.widthInches),d=s.width/h;this.br._createPageContainer(s.index).update({dimensions:{width:h,height:l,top:u,left:Math.floor((t-h)/2)},reduce:d}).$container.appendTo(this.$documentContainer)}}}catch(e){o.e(e)}finally{o.f()}}var p,f=e.map((function(e){return e.page.index})),g=T(this.br.displayedIndices);try{for(g.s();!(p=g.n()).done;){var v=p.value;(0,i.notInArray)(v,f)&&this.br.$(".pagediv".concat(v)).remove()}}catch(e){g.e(e)}finally{g.f()}this.br.displayedIndices=f,this.br.enableSearch&&this.br.updateSearchHilites(),this.br.updateToolbarZoom(this.realWorldReduce),this.br.updateNavIndexThrottled()}},{key:"jumpToIndex",value:function(e,t,n,i){var r=this,o=this.br.currentIndex(),a=Math.abs,s=this.getPageTop(e),u=0;if(n){var c=this.book.getPage(e),l=this.$scrollContainer.prop("clientHeight");s+=this.physicalInchesToDisplayPixels(n/c.height*c.heightInches)-l/2}else s-=this.br.padding/2;if(t){var h=this.book.getPage(e),d=this.$scrollContainer.prop("clientWidth");u+=this.physicalInchesToDisplayPixels(t/h.width*h.widthInches)-d/2}else u=this.$scrollContainer.scrollLeft();!i&&a(o-e)<=4?(this.animating=!0,this.$scrollContainer.stop(!0).animate({scrollTop:s,scrollLeft:u},"fast",(function(){r.animating=!1}))):this.$scrollContainer.stop(!0).prop("scrollTop",s)}},{key:"zoom",value:function(e){var t=this.br.nextReduce(this.realWorldReduce,e,this.br.onePage.reductionFactors);this.realWorldReduce!=t.reduce&&(this.realWorldReduce=t.reduce,this.br.onePage.autofit=t.autofit,this.resizePageView(),this.br.updateToolbarZoom(this.realWorldReduce),this.br.enableSearch&&(this.br.removeSearchHilites(),this.br.updateSearchHilites()))}},{key:"getAutofitWidth",value:function(){var e=this.$scrollContainer.prop("clientWidth")-40,t=this.book.getMedianPageSizeInches().width;return this.physicalInchesToDisplayPixels(t,1)/e}},{key:"getAutofitHeight",value:function(){var e=this.$scrollContainer.innerHeight()-2*this.br.padding,t=this.book.getMedianPageSizeInches().height;return this.physicalInchesToDisplayPixels(t,1)/e}},{key:"getPageTop",value:function(e){var t,n=T(this.pagesWithBounds());try{for(n.s();!(t=n.n()).done;){var i=t.value,r=i.page,o=i.top;if(r.index==e)return o}}catch(e){n.e(e)}finally{n.f()}}},{key:"calculateReductionFactors",value:function(){var e=this.getAutofitWidth();this.br.onePage.reductionFactors=this.br.reductionFactors.filter((function(e){return 1!=e.reduce})).concat([{reduce:1,autofit:null},{reduce:e,autofit:"width"},{reduce:this.getAutofitHeight(),autofit:"height"}]),this.br.onePage.reductionFactors.sort(this.br._reduceSort),e<1?this.br.onePage.reductionFactors.find((function(e){return 1==e.reduce})).autofit="auto":this.br.onePage.reductionFactors.find((function(e){return"width"==e.autofit})).autofit="auto"}},{key:"resizePageView",value:function(){var e,t=this.$scrollContainer.prop("clientWidth"),n=this.$scrollContainer.prop("scrollTop"),i=this.$documentContainer.height(),r=this.$documentContainer.width(),o=0;if(n>0){var a=this.centerY();e=this.centerX(),o=a/i}else{var s=.6*this.physicalInchesToDisplayPixels(this.book.getPage(this.br.currentIndex()).heightInches);o=(this.getPageTop(this.br.currentIndex())+s)/this.calculateViewDimensions().height}if(this.calculateReductionFactors(),this.br.onePage.autofit){var u=this.br.nextReduce(this.realWorldReduce,this.br.onePage.autofit,this.br.onePage.reductionFactors);this.realWorldReduce=u.reduce}var c=this.calculateViewDimensions();this.$documentContainer.height(c.height),this.$documentContainer.width(c.width),this.$documentContainer.empty(),this.br.displayedIndices=[];var l=e*(t/r),h=o*c.height,d=this.$scrollContainer.prop("clientWidth"),p=this.$scrollContainer.height();this.$scrollContainer.prop({scrollLeft:Math.max(0,l-d/2),scrollTop:Math.max(0,h-p/2)}),this.drawLeafs(),this.br.enableSearch&&(this.br.removeSearchHilites(),this.br.updateSearchHilites())}},{key:"calculateViewDimensions",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.realWorldReduce,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.LEAF_SPACING_IN,i=0,r=0,o=T(this.pagesWithBounds(t,n));try{for(o.s();!(e=o.n()).done;){var a=e.value,s=a.page,u=a.bottom,c=this.physicalInchesToDisplayPixels(s.widthInches,t);i=Math.max(i,c),r=u}}catch(e){o.e(e)}finally{o.f()}return{width:i,height:r}}},{key:"centerX",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.$scrollContainer,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.$documentContainer;return e=n.width()<t.prop("clientWidth")?n.width():t.scrollLeft()+t.prop("clientWidth")/2,Math.floor(e)}},{key:"centerY",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.$scrollContainer,t=e.scrollTop()+e.height()/2;return Math.floor(t)}}])&&R(t.prototype,n),r&&R(t,r),e}(),M=(n(5003),n(9337),n(3609));function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach((function(t){N(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var $=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.br=t,this.book=n,this.leafEdgeL=null,this.leafEdgeR=null,this.pageContainers={}}var t,n;return t=e,(n=[{key:"jumpToIndex",value:function(e){e<Math.min(this.br.twoPage.currentIndexL,this.br.twoPage.currentIndexR)?this.flipBackToIndex(e):e>Math.max(this.br.twoPage.currentIndexL,this.br.twoPage.currentIndexR)&&this.flipFwdToIndex(e)}},{key:"setClickHandler",value:function(e,t,n){M(e).unbind("mouseup").bind("mouseup",t,(function(e){n(this,e)}))}},{key:"drawLeafs",value:function(){var e=this.br.refs.$brTwoPageView,t=this.br.twoPage.currentIndexL,n=this.br.twoPage.currentIndexR;this.createPageContainer(t).$container.css(this.leftLeafCss).appendTo(e),this.createPageContainer(n).$container.css(this.rightLeafCss).appendTo(e),this.displayedIndices=[this.br.twoPage.currentIndexL,this.br.twoPage.currentIndexR],this.setMouseHandlers(),this.br.displayedIndices=this.displayedIndices,this.br.updateToolbarZoom(this.br.reduce),this.br.trigger("pageChanged")}},{key:"zoom",value:function(e){this.br.stopFlipAnimations(),this.calculateReductionFactors();var t=this.br.nextReduce(this.br.reduce,e,this.br.twoPage.reductionFactors);if(this.br.reduce!=t.reduce||this.br.twoPage.autofit!=t.autofit){this.br.twoPage.autofit=t.autofit,this.br.reduce=t.reduce,this.br.pageScale=this.br.reduce;var n=this.getViewCenter();this.prepareTwoPageView(n.percentageX,n.percentageY,!0)}}},{key:"resizeSpread",value:function(){var e,t,n,i;this.br.resizeBRcontainer(!1),this.calculateSpreadSize(),null===(e=this.br.refs)||void 0===e||e.$brTwoPageView.css(this.mainContainerCss),this.centerView(),M(this.br.twoPage.coverDiv).css(this.spreadCoverCss);var r=this.br.refs.$brTwoPageView;null===(t=r.find(".BRleafEdgeR"))||void 0===t||t.css(this.leafEdgeRCss),null===(n=r.find(".BRleafEdgeL"))||void 0===n||n.css(this.leafEdgeLCss),null===(i=r.find(".BRgutter"))||void 0===i||i.css(this.spineCss);var o=this.br.twoPage.currentIndexL,a=this.br.twoPage.currentIndexR;this.pageContainers[o].$container.css(this.leftLeafCss),this.pageContainers[a].$container.css(this.rightLeafCss)}},{key:"prepareTwoPageView",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=this.br.reduce,a=this.br.displayedIndices;this.br.refs.$brContainer.empty(),this.br.refs.$brContainer.css("overflow","auto");var s=(0,i.clamp)(this.br.firstIndex,this.br.firstDisplayableIndex(),this.br.lastDisplayableIndex()),u=this.book.getSpreadIndices(s);this.br.twoPage.currentIndexL=u[0],this.br.twoPage.currentIndexR=u[1],this.calculateSpreadSize();var c=o==this.br.reduce,l=a==this.br.displayedIndices,h=!l||l&&!c;(r||h)&&(this.prunePageContainers(),this.prefetch());var d=M('<div class="BRtwopageview"></div>');this.br.refs.$brTwoPageView=d,this.br.refs.$brContainer.append(d),this.br.refs.$brContainer.dragscrollable({preventDefault:!0}),this.br.bindGestures(this.br.refs.$brContainer),null===(n=this.br.refs)||void 0===n||n.$brTwoPageView.css(this.mainContainerCss),this.br.twoPage.totalWidth<this.br.refs.$brContainer.prop("clientWidth")&&(e=.5),this.br.twoPage.totalHeight<this.br.refs.$brContainer.prop("clientHeight")&&(t=.5),this.centerView(e,t),this.br.twoPage.coverDiv=document.createElement("div"),M(this.br.twoPage.coverDiv).attr("class","BRbookcover").css(this.spreadCoverCss).appendTo(this.br.refs.$brTwoPageView),this.leafEdgeR=document.createElement("div"),this.leafEdgeR.className="BRleafEdgeR",M(this.leafEdgeR).css(this.leafEdgeRCss).appendTo(this.br.refs.$brTwoPageView),this.leafEdgeL=document.createElement("div"),this.leafEdgeL.className="BRleafEdgeL",M(this.leafEdgeL).css(this.leafEdgeLCss).appendTo(this.br.refs.$brTwoPageView);var p=document.createElement("div");M(p).attr("class","BRgutter").css(this.spineCss).appendTo(this.br.refs.$brTwoPageView),this.preparePopUp(),this.br.displayedIndices=[],this.drawLeafs(),this.br.updateToolbarZoom(this.br.reduce),this.br.enableSearch&&(this.br.removeSearchHilites(),this.br.updateSearchHilites()),this.br.updateBrClasses()}},{key:"prunePageContainers",value:function(){for(var e in this.pageContainers)e!=this.br.twoPage.currentIndexL&&e!=this.br.twoPage.currentIndexR&&M(this.pageContainers[e].$container).remove(),(e<this.br.twoPage.currentIndexL-4||e>this.br.twoPage.currentIndexR+4)&&delete this.pageContainers[e]}},{key:"preparePopUp",value:function(){var e=this;this.br.twoPagePopUp=document.createElement("div"),this.br.twoPagePopUp.className="BRtwoPagePopUp",M(this.br.twoPagePopUp).css({zIndex:"1000"}).appendTo(this.br.refs.$brContainer),M(this.br.twoPagePopUp).hide();for(var t=[{$leafEdge:M(this.leafEdgeL),jumpIndexForPageX:this.jumpIndexForLeftEdgePageX.bind(this),leftOffset:function(){return 120-M(e.br.twoPagePopUp).width()}},{$leafEdge:M(this.leafEdgeR),jumpIndexForPageX:this.jumpIndexForRightEdgePageX.bind(this),leftOffset:function(){return-120}}],n=function(){var t=a[r],n=t.$leafEdge,s=t.jumpIndexForPageX,u=t.leftOffset;n.on("mouseenter",(function(){return M(e.br.twoPagePopUp).show()})),n.on("mouseleave",(function(){return M(e.br.twoPagePopUp).hide()})),n.on("click",(function(t){e.br.trigger(o.stop),e.br.jumpToIndex(s(t.pageX))})),n.on("mousemove",(function(t){var n=(0,i.clamp)(s(t.pageX),0,e.book.getNumLeafs()-1);M(e.br.twoPagePopUp).text("View ".concat(e.book.getPageName(n))),M(e.br.twoPagePopUp).css({left:"".concat(t.pageX-e.br.refs.$brContainer.offset().left+e.br.refs.$brContainer.scrollLeft()+u(),"px"),top:"".concat(t.pageY-e.br.refs.$brContainer.offset().top+e.br.refs.$brContainer.scrollTop(),"px")})}))},r=0,a=t;r<a.length;r++)n()}},{key:"setSpreadIndices",value:function(){var e=(0,i.clamp)(this.br.firstIndex,this.br.firstDisplayableIndex(),this.br.lastDisplayableIndex()),t=this.book.getSpreadIndices(e);this.br.twoPage.currentIndexL=t[0],this.br.twoPage.currentIndexR=t[1]}},{key:"calculateSpreadSize",value:function(){var e,t=this.br.twoPage.currentIndexL,n=this.br.twoPage.currentIndexR;e=this.br.twoPage.autofit?this.getIdealSpreadSize(t,n):this.getSpreadSizeFromReduce(t,n,this.br.reduce),this.br.twoPage.height=e.height||0,this.br.twoPage.width=e.width||0,this.br.twoPage.scaledWL=this.getPageWidth(t)||0,this.br.twoPage.scaledWR=this.getPageWidth(n)||0,this.br.twoPage.edgeWidth=e.totalLeafEdgeWidth,this.br.twoPage.leafEdgeWidthL=this.br.leafEdgeWidth(this.br.twoPage.currentIndexL),this.br.twoPage.leafEdgeWidthR=this.br.twoPage.edgeWidth-this.br.twoPage.leafEdgeWidthL,this.br.twoPage.bookCoverDivWidth=this.coverWidth(this.br.twoPage.scaledWL+this.br.twoPage.scaledWR),this.br.twoPage.bookCoverDivHeight=this.br.twoPage.height+2*this.br.twoPage.coverInternalPadding;var i=this.gutterOffsetForIndex(t),r=this.br.twoPage.scaledWL-i+this.br.twoPage.leafEdgeWidthL,o=this.br.twoPage.scaledWR+i+this.br.twoPage.leafEdgeWidthR,a=Math.max(r,o);this.br.twoPage.totalWidth=2*(a+this.br.twoPage.coverInternalPadding+this.br.twoPage.coverExternalPadding),this.br.twoPage.totalHeight=this.br.twoPage.height+2*(this.br.twoPage.coverInternalPadding+this.br.twoPage.coverExternalPadding),this.br.twoPage.middle=this.br.twoPage.totalWidth>>1,this.br.twoPage.gutter=this.br.twoPage.middle+this.gutterOffsetForIndex(t),this.br.twoPage.bookCoverDivLeft=this.br.twoPage.gutter-this.br.twoPage.scaledWL-this.br.twoPage.leafEdgeWidthL-this.br.twoPage.coverInternalPadding,this.br.twoPage.bookCoverDivTop=this.br.twoPage.coverExternalPadding,this.br.twoPage.bookSpineDivHeight=this.br.twoPage.height+2*this.br.twoPage.coverInternalPadding,this.br.twoPage.bookSpineDivLeft=this.br.twoPage.middle-(this.br.twoPage.bookSpineDivWidth>>1),this.br.twoPage.bookSpineDivTop=this.br.twoPage.bookCoverDivTop,this.br.reduce=e.reduce<0?this.br.reduce:e.reduce}},{key:"getIdealSpreadSize",value:function(e,t){var n,i={},r=this.book._getPageHeight(e),o=this.book._getPageWidth(e),a=this.book._getPageHeight(t),s=r/o,u=a/this.book._getPageWidth(t);n=Math.abs(s-1.5)<Math.abs(u-1.5)?s:u;var c=Math.floor(.1*this.book.getNumLeafs()),l=Math.floor(.1*this.br.refs.$brContainer.prop("clientWidth"));i.totalLeafEdgeWidth=Math.min(c,l);var h=2*(this.br.twoPage.coverInternalPadding+this.br.twoPage.coverExternalPadding)+i.totalLeafEdgeWidth,d=2*(this.br.twoPage.coverInternalPadding+this.br.twoPage.coverExternalPadding);return i.width=this.br.refs.$brContainer.width()-h>>1,i.width=i.width>10?i.width-10:1,i.height=this.br.refs.$brContainer.height()-d,i.height=i.height>15?i.height-15:1,i.height/n<=i.width?i.width=Math.floor(i.height/n)||1:i.height=Math.floor(i.width*n)||1,i.reduce=Math.round((r+a)/2/i.height),i}},{key:"getSpreadSizeFromReduce",value:function(e,t,n){var i={},r=Math.floor(.1*this.book.getNumLeafs()),o=Math.floor(.1*this.br.refs.$brContainer.prop("clientWidth"));i.totalLeafEdgeWidth=Math.min(r,o);var a=this.book._getPageWidth(e)+this.book._getPageWidth(t),s=this.book._getPageHeight(e)+this.book._getPageHeight(t);return i.height=Math.floor(s/2/this.br.reduce),i.width=Math.floor(a/2/this.br.reduce),i.reduce=n,i}},{key:"getAutofitReduce",value:function(){return this.getIdealSpreadSize(this.br.twoPage.currentIndexL,this.br.twoPage.currentIndexR).reduce}},{key:"isZoomedIn",value:function(){var e=!1;return"auto"!=this.br.twoPage.autofit&&this.br.reduce<this.getAutofitReduce()&&(e=!0),e}},{key:"calculateReductionFactors",value:function(){this.br.twoPage.reductionFactors=this.br.reductionFactors.concat([{reduce:this.getIdealSpreadSize(this.br.twoPage.currentIndexL,this.br.twoPage.currentIndexR).reduce,autofit:"auto"}]),this.br.twoPage.reductionFactors.sort(this.br._reduceSort)}},{key:"setCursor",value:function(){console.warn("Call to deprecated method, Mode2Up.setCursor. No-op.")}},{key:"flipBackToIndex",value:function(e){if(this.br.constMode1up!=this.br.mode&&!this.br.animating)if(null==this.br.leafEdgeTmp){if(null==e){var t=this.br.twoPage,n=t.currentIndexL,i=t.currentIndexR,r=Math.min(n,i),o=this.book.getPage(r).findPrev({combineConsecutiveUnviewables:!0});if(!o)return;e=o.index,"R"==o.pageSide&&e--}this.br.updateNavIndexThrottled(e);var a=this.book.getSpreadIndices(e);a[0]<this.br.firstDisplayableIndex()||a[1]<this.br.firstDisplayableIndex()||(this.br.animating=!0,"rl"!=this.br.pageProgression?(this.prepareFlipLeftToRight(a[0],a[1]),this.flipLeftToRight(a[0],a[1])):(this.prepareFlipRightToLeft(a[0],a[1]),this.flipRightToLeft(a[0],a[1])))}else alert("error: leafEdgeTmp should be null!")}},{key:"flipLeftToRight",value:function(e,t){var n=this;this.br.refs.$brContainer.addClass("BRpageFlipping");var i=this.br.twoPage.currentIndexL,r=this.br.leafEdgeWidth(this.br.twoPage.currentIndexL),o=this.br.leafEdgeWidth(e),a=r-o,s=this.getPageWidth(i),u=this.getPageWidth(e),c=this.getPageWidth(t),l=this.top(),h=this.br.twoPage.middle+this.gutterOffsetForIndex(e),d=this.br.refs.$brTwoPageView,p=h-s-a;this.br.leafEdgeTmp=document.createElement("div"),this.br.leafEdgeTmp.className="BRleafEdgeTmp",M(this.br.leafEdgeTmp).css({width:"".concat(a,"px"),height:"".concat(this.br.twoPage.height,"px"),left:"".concat(p,"px"),top:"".concat(l,"px"),zIndex:1e3}).appendTo(d),M(this.leafEdgeL).css({width:"".concat(o,"px"),left:"".concat(h-s-o,"px")});var f=this.pageContainers[i].$container.offset().left,g="".concat(d.prop("clientWidth")-f-this.pageContainers[i].$container.width()+d.offset().left-2,"px");this.pageContainers[i].$container.css({right:g,left:""}),M(this.br.leafEdgeTmp).animate({left:h},this.br.flipSpeed,"easeInSine"),this.br.enableSearch&&this.br.removeSearchHilites(),this.pageContainers[i].$container.animate({width:"0px"},this.br.flipSpeed,"easeInSine",(function(){M(n.br.leafEdgeTmp).animate({left:"".concat(h+c,"px")},n.br.flipSpeed,"easeOutSine"),n.br.$(".BRgutter").css({left:"".concat(h-.5*n.br.twoPage.bookSpineDivWidth,"px")}),n.pageContainers[t].$container.animate({width:"".concat(c,"px")},n.br.flipSpeed,"easeOutSine",(function(){var i;n.pageContainers[e].$container.css("zIndex",2),M(n.leafEdgeR).css({width:"".concat(n.br.twoPage.edgeWidth-o,"px"),left:"".concat(h+c,"px")}),M(n.leafEdgeL).css({width:"".concat(o,"px"),left:"".concat(h-u-o,"px")}),M(n.br.twoPage.coverDiv).css({width:"".concat(n.coverWidth(u+c),"px"),left:"".concat(h-u-o-n.br.twoPage.coverInternalPadding,"px")}),M(n.br.leafEdgeTmp).remove(),n.br.leafEdgeTmp=null,n.br.twoPage.currentIndexL=e,n.br.twoPage.currentIndexR=t,n.br.twoPage.scaledWL=u,n.br.twoPage.scaledWR=c,n.br.twoPage.gutter=h,n.br.updateFirstIndex(n.br.twoPage.currentIndexL),n.br.displayedIndices=[e,t],n.prunePageContainers(),n.br.animating=!1,n.resizeSpread(),n.br.enableSearch&&n.br.updateSearchHilites(),n.setMouseHandlers(),n.br.animationFinishedCallback&&(n.br.animationFinishedCallback(),n.br.animationFinishedCallback=null),n.br.refs.$brContainer.removeClass("BRpageFlipping"),null===(i=n.br.textSelectionPlugin)||void 0===i||i.stopPageFlip(n.br.refs.$brContainer),n.centerView(),n.br.trigger("pageChanged"),n.prunePageContainers(),n.createPageContainer(e-2),n.createPageContainer(t-2),n.createPageContainer(e-3),n.createPageContainer(t-3)}))}))}},{key:"createPageContainer",value:function(e){return this.pageContainers[e]||(this.pageContainers[e]=this.br._createPageContainer(e)),this.pageContainers[e].update({reduce:this.br.reduce}),this.pageContainers[e]}},{key:"flipFwdToIndex",value:function(e){if(!this.br.animating)if(null==this.br.leafEdgeTmp){if(null==e){var t=this.br.twoPage,n=t.currentIndexL,i=t.currentIndexR,r=Math.max(n,i),o=this.book.getPage(r).findNext({combineConsecutiveUnviewables:!0});if(!o)return;e=o.index}if(!(e>this.br.lastDisplayableIndex())){this.br.updateNavIndexThrottled(e),this.br.animating=!0;var a=this.book.getSpreadIndices(e);"rl"!=this.br.pageProgression?(this.prepareFlipRightToLeft(a[0],a[1]),this.flipRightToLeft(a[0],a[1])):(this.prepareFlipLeftToRight(a[0],a[1]),this.flipLeftToRight(a[0],a[1]))}}else alert("error: leafEdgeTmp should be null!")}},{key:"flipRightToLeft",value:function(e,t){var n=this;this.br.refs.$brContainer.addClass("BRpageFlipping");var i=this.br.leafEdgeWidth(this.br.twoPage.currentIndexL),r=this.br.twoPage.edgeWidth-i,o=this.br.leafEdgeWidth(e),a=this.br.twoPage.edgeWidth-o,s=r-a,u=this.top(),c=this.getPageWidth(this.br.twoPage.currentIndexR),l=this.br.twoPage.middle+this.gutterOffsetForIndex(e),h=this.br.refs.$brTwoPageView;this.br.leafEdgeTmp=document.createElement("div"),this.br.leafEdgeTmp.className="BRleafEdgeTmp",M(this.br.leafEdgeTmp).css({width:"".concat(s,"px"),height:"".concat(this.br.twoPage.height,"px"),left:"".concat(l+c,"px"),top:"".concat(u,"px"),zIndex:1e3}).appendTo(h);var d=this.getPageWidth(e),p=this.getPageWidth(t);M(this.leafEdgeR).css({width:"".concat(a,"px"),left:"".concat(l+p,"px")});var f=this.br.flipSpeed;this.br.enableSearch&&this.br.removeSearchHilites(),M(this.br.leafEdgeTmp).animate({left:l},f,"easeInSine"),this.pageContainers[this.br.twoPage.currentIndexR].$container.animate({width:"0px"},f,"easeInSine",(function(){n.br.$("BRgutter").css({left:"".concat(l-.5*n.br.twoPage.bookSpineDivWidth,"px")}),M(n.br.leafEdgeTmp).animate({left:"".concat(l-d-s,"px")},f,"easeOutSine"),n.pageContainers[e].$container.animate({width:"".concat(d,"px")},f,"easeOutSine",(function(){var i;n.pageContainers[t].$container.css("zIndex",2),M(n.leafEdgeL).css({width:"".concat(o,"px"),left:"".concat(l-d-o,"px")}),M(n.br.twoPage.coverDiv).css({width:"".concat(n.coverWidth(d+p),"px"),left:"".concat(l-d-o-n.br.twoPage.coverInternalPadding,"px")}),M(n.br.leafEdgeTmp).remove(),n.br.leafEdgeTmp=null,n.br.twoPage.currentIndexL=e,n.br.twoPage.currentIndexR=t,n.br.twoPage.scaledWL=d,n.br.twoPage.scaledWR=p,n.br.twoPage.gutter=l,n.br.updateFirstIndex(n.br.twoPage.currentIndexL),n.br.displayedIndices=[e,t],n.prunePageContainers(),n.br.animating=!1,n.resizeSpread(),n.br.enableSearch&&n.br.updateSearchHilites(),n.setMouseHandlers(),n.br.animationFinishedCallback&&(n.br.animationFinishedCallback(),n.br.animationFinishedCallback=null),n.br.refs.$brContainer.removeClass("BRpageFlipping"),null===(i=n.br.textSelectionPlugin)||void 0===i||i.stopPageFlip(n.br.refs.$brContainer),n.centerView(),n.br.trigger("pageChanged"),n.prunePageContainers(),n.createPageContainer(e+2),n.createPageContainer(t+2),n.createPageContainer(e+3),n.createPageContainer(t+3)}))}))}},{key:"setMouseHandlers",value:function(){var e=function(e,t){if(3==t.which)return!t.data.self.br.protected;t.data.self.br.trigger(o.stop),t.data.self.br["L"===t.data.direction?"left":"right"]()};this.setClickHandler(this.pageContainers[this.br.twoPage.currentIndexR].$container[0],{self:this,direction:"R"},e),this.setClickHandler(this.pageContainers[this.br.twoPage.currentIndexL].$container[0],{self:this,direction:"L"},e)}},{key:"prepareFlipLeftToRight",value:function(e,t){this.createPageContainer(e,!0),this.createPageContainer(t,!0);var n=this.br.refs.$brTwoPageView,i=this.book._getPageHeight(e),r=this.book._getPageWidth(e),o=this.br.twoPage.middle,a=this.top(),s=this.br.twoPage.height*r/i,u=o+this.gutterOffsetForIndex(e),c={left:"".concat(u-s,"px"),right:"",top:"".concat(a,"px"),height:this.br.twoPage.height,width:"".concat(s,"px"),zIndex:1};this.pageContainers[e].$container.css(c).appendTo(n);var l={left:"".concat(u,"px"),right:"",top:"".concat(a,"px"),height:this.br.twoPage.height,width:"0",zIndex:2};this.pageContainers[t].$container.css(l).appendTo(n)}},{key:"prepareFlipRightToLeft",value:function(e,t){this.createPageContainer(e,!0),this.createPageContainer(t,!0);var n=this.br.refs.$brTwoPageView,i=this.book._getPageHeight(t),r=this.book._getPageWidth(t),o=this.br.twoPage.middle,a=this.top(),s=this.br.twoPage.height*r/i,u=o+this.gutterOffsetForIndex(e);M(this.pageContainers[t].$container).css({left:"".concat(u,"px"),top:"".concat(a,"px"),height:this.br.twoPage.height,width:"".concat(s,"px"),zIndex:1}).appendTo(n),i=this.book._getPageHeight(e),r=this.book._getPageWidth(e),s=this.br.twoPage.height*r/i,M(this.pageContainers[e].$container).css({right:"".concat(n.prop("clientWidth")-u,"px"),top:"".concat(a,"px"),height:this.br.twoPage.height,width:"0px",zIndex:2}).appendTo(n)}},{key:"getPageWidth",value:function(e){var t=this.book._getPageHeight(e),n=this.book._getPageWidth(e);return Math.floor(this.br.twoPage.height*n/t)}},{key:"gutter",value:function(){return this.br.twoPage.middle+this.gutterOffsetForIndex(this.br.twoPage.currentIndexL)}},{key:"top",value:function(){return this.br.twoPage.coverExternalPadding+this.br.twoPage.coverInternalPadding}},{key:"coverWidth",value:function(e){return e+this.br.twoPage.edgeWidth+2*this.br.twoPage.coverInternalPadding}},{key:"getViewCenter",value:function(){var e=this.br.refs,t=e.$brContainer,n=e.$brTwoPageView,i={},r=t.offset(),o=n.offset();return i.percentageX=(r.left-o.left+(t.prop("clientWidth")>>1))/this.br.twoPage.totalWidth,i.percentageY=(r.top-o.top+(t.prop("clientHeight")>>1))/this.br.twoPage.totalHeight,i}},{key:"centerView",value:function(e,t){void 0===e&&(e=.5),void 0===t&&(t=.5);var n=this.br.refs.$brTwoPageView.width(),i=this.br.refs.$brContainer.prop("clientWidth"),r=e*n,o=this.br.refs.$brTwoPageView.height(),a=this.br.refs.$brContainer.prop("clientHeight"),s=t*o;n<i?this.br.refs.$brTwoPageView.css("left","".concat((i>>1)-r,"px")):(this.br.refs.$brTwoPageView.css("left",0),this.br.refs.$brContainer.scrollLeft(r-(i>>1))),o<a?this.br.refs.$brTwoPageView.css("top","".concat((a>>1)-s,"px")):(this.br.refs.$brTwoPageView.css("top",0),this.br.refs.$brContainer.scrollTop(s-(a>>1)))}},{key:"flipAreaHeight",value:function(){return Math.floor(this.br.twoPage.height)}},{key:"flipAreaWidth",value:function(){var e=.15*this.br.twoPage.width;return Math.floor((0,i.clamp)(e,10,100))}},{key:"flipAreaTop",value:function(){return Math.floor(this.br.twoPage.bookCoverDivTop+this.br.twoPage.coverInternalPadding)}},{key:"leftFlipAreaLeft",value:function(){return Math.floor(this.br.twoPage.gutter-this.br.twoPage.scaledWL)}},{key:"rightFlipAreaLeft",value:function(){return Math.floor(this.br.twoPage.gutter+this.br.twoPage.scaledWR-this.flipAreaWidth())}},{key:"setHilightCss",value:function(e,t,n,i,r,o){var a,s=this.book._getPageHeight(t),u=this.book._getPageWidth(t),c=this.br.twoPage.height/s,l=Math.floor(u*c),h=this.gutter();a="L"==this.book.getPageSide(t)?h-l:h;var d=this.top();M(e).css({width:"".concat((i-n)*c,"px"),height:"".concat((o-r)*c,"px"),left:"".concat(a+n*c,"px"),top:"".concat(d+r*c,"px")})}},{key:"gutterOffsetForIndex",value:function(e){var t=Math.floor((e/this.book.getNumLeafs()-.5)*this.br.twoPage.edgeWidth);return"rl"==this.br.pageProgression&&(t*=-1),t}},{key:"leafEdgeWidth",value:function(e){return"L"==this.book.getPageSide(e)&&"rl"!=this.br.pageProgression?Math.floor(e/this.book.getNumLeafs()*this.br.twoPage.edgeWidth+.5):Math.floor((1-e/this.book.getNumLeafs())*this.br.twoPage.edgeWidth+.5)}},{key:"jumpIndexForLeftEdgePageX",value:function(e){var t;return"rl"!=this.br.pageProgression?(t=this.br.twoPage.currentIndexL-10*(M(this.leafEdgeL).offset().left+M(this.leafEdgeL).width()-e),t=(0,i.clamp)(Math.round(t),this.br.firstDisplayableIndex(),this.br.twoPage.currentIndexL-2)):(t=this.br.twoPage.currentIndexL+10*(M(this.leafEdgeL).offset().left+M(this.leafEdgeL).width()-e),t=(0,i.clamp)(Math.round(t),this.br.twoPage.currentIndexL+2,this.br.lastDisplayableIndex()))}},{key:"jumpIndexForRightEdgePageX",value:function(e){var t;return"rl"!=this.br.pageProgression?(t=this.br.twoPage.currentIndexL+10*(e-M(this.leafEdgeR).offset().left),t=(0,i.clamp)(Math.round(t),this.br.twoPage.currentIndexL+2,this.br.lastDisplayableIndex())):(t=this.br.twoPage.currentIndexL-10*(e-M(this.leafEdgeR).offset().left),t=(0,i.clamp)(Math.round(t),this.br.firstDisplayableIndex(),this.br.twoPage.currentIndexL-2))}},{key:"prefetch",value:function(){for(var e=Math.max,t=Math.min,n=this.book,i=this.br.twoPage,r=i.currentIndexL,o=i.currentIndexR,a=n.getPage(e(0,t(r,o))),s=n.getPage(e(r,o)),u=0;u<4;u++)a&&(this.createPageContainer(a.index),a=a.findPrev({combineConsecutiveUnviewables:!0})),s&&(this.createPageContainer(s.index),s=s.findNext({combineConsecutiveUnviewables:!0}))}},{key:"baseLeafCss",get:function(){return{position:"absolute",right:"",top:"".concat(this.top(),"px"),zIndex:2}}},{key:"heightCss",get:function(){return{height:"".concat(this.br.twoPage.height,"px")}}},{key:"leftLeafCss",get:function(){return B(B(B({},this.baseLeafCss),this.heightCss),{},{left:"".concat(this.br.twoPage.gutter-this.br.twoPage.scaledWL,"px"),width:"".concat(this.br.twoPage.scaledWL,"px")})}},{key:"leafEdgeLCss",get:function(){return B(B({},this.heightCss),{},{width:"".concat(this.br.twoPage.leafEdgeWidthL,"px"),left:"".concat(this.br.twoPage.bookCoverDivLeft+this.br.twoPage.coverInternalPadding,"px"),top:"".concat(this.br.twoPage.bookCoverDivTop+this.br.twoPage.coverInternalPadding,"px"),border:0===this.br.twoPage.leafEdgeWidthL?"none":null})}},{key:"rightLeafCss",get:function(){return B(B(B({},this.baseLeafCss),this.heightCss),{},{left:"".concat(this.br.twoPage.gutter,"px"),width:"".concat(this.br.twoPage.scaledWR,"px")})}},{key:"leafEdgeRCss",get:function(){return B(B({},this.heightCss),{},{width:"".concat(this.br.twoPage.leafEdgeWidthR,"px"),left:"".concat(this.br.twoPage.scaledWL+this.br.twoPage.scaledWR+this.br.twoPage.leafEdgeWidthL,"px"),top:"".concat(this.br.twoPage.bookCoverDivTop+this.br.twoPage.coverInternalPadding,"px"),border:0===this.br.twoPage.leafEdgeWidthR?"none":null})}},{key:"mainContainerCss",get:function(){return{height:"".concat(this.br.twoPage.totalHeight,"px"),width:"".concat(this.br.twoPage.totalWidth,"px"),position:"absolute"}}},{key:"spreadCoverCss",get:function(){return{width:"".concat(this.br.twoPage.bookCoverDivWidth,"px"),height:"".concat(this.br.twoPage.bookCoverDivHeight,"px"),visibility:"visible"}}},{key:"spineCss",get:function(){return{width:"".concat(this.br.twoPage.bookSpineDivWidth,"px"),height:"".concat(this.br.twoPage.bookSpineDivHeight,"px"),left:"".concat(this.br.twoPage.gutter-this.br.twoPage.bookSpineDivWidth/2,"px"),top:"".concat(this.br.twoPage.bookSpineDivTop,"px")}}}])&&O(t.prototype,n),e}(),D=n(3609);function F(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function U(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var j=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.br=t,this.book=n}var t,n;return t=e,(n=[{key:"drawLeafs",value:function(e){var t,n,r,a=this,s=Math.floor,u=this.book,c=this.br.refs.$brContainer.prop("scrollWidth")-20,l=0,h=0,d=0,p=0,f=0,g=[],v=F(u.pagesIterator({combineConsecutiveUnviewables:!0}));try{for(v.s();!(r=v.n()).done;){var m=r.value,b=this.br.thumbWidth;l+(b+this.br.thumbPadding)>c&&(p++,l=0,f=0),g[p]||(g[p]={}),g[p].leafs||(g[p].leafs=[],g[p].height=0,g[p].top=0),g[p].leafs[f]={num:m.index,left:l},(t=s(m.height*this.br.thumbWidth/m.width))>g[p].height&&(g[p].height=t),0===f&&(h+=this.br.thumbPadding+g[p].height),(l+=b+this.br.thumbPadding)>d&&(d=l),f++,m.index==e&&(n=h-this.br.thumbPadding-g[p].height)}}catch(e){v.e(e)}finally{v.f()}this.br.refs.$brPageViewEl.height(h);var y=s((this.br.refs.$brContainer.prop("scrollWidth")-d)/2)-14;void 0!==n&&this.br.refs.$brContainer.scrollTop(n);for(var w=this.br.refs.$brContainer.prop("scrollTop"),_=w+this.br.refs.$brContainer.height(),x=0,P=0,k=[],C=[],S=u.getNumLeafs()-1,T=0,I=0;I<g.length;I++)g[I]&&(P+=this.br.thumbPadding+g[I].height,(x>=w&&x<=_||P>=w&&P<=_||x<=w&&P>=_)&&(k.push(I),g[I].leafs[0].num<S&&(S=g[I].leafs[0].num),g[I].leafs[g[I].leafs.length-1].num>T&&(T=g[I].leafs[g[I].leafs.length-1].num)),x>g[I].top&&(g[I].top=x),x=P);for(var R=k[0],E=k[k.length-1],M=1;M<this.br.thumbRowBuffer+1;M++)E+M<g.length&&k.push(E+M);for(var L=1;L<this.br.thumbRowBuffer;L++)R-L>=0&&k.push(R-L);k.sort();for(var B=0,N=k;B<N.length;B++){var O=N[B];if((0,i.notInArray)(O,this.br.displayedRows)){if(!g[O])continue;var $,A=F(g[O].leafs);try{var U=function(){var e=$.value,t=e.num,n=e.left,i=a.br.thumbWidth,r=s(u.getPageHeight(t)*a.br.thumbWidth/u.getPageWidth(t)),l=g[O].top,h=n+y;"rl"==a.br.pageProgression&&(h=c-i-h),h+=a.br.thumbPadding,C.push(t);var d=s(u.getPageWidth(t)/a.br.thumbWidth),p=2*Math.round(d/2),f=a.br._createPageContainer(t).update({dimensions:{width:i,height:r,top:l,left:h},reduce:p});f.$container.data("leaf",t).on("mouseup",(function(e){a.br.updateFirstIndex(t,{suppressFragmentChange:!0}),a.br.switchMode(a.br.constMode1up,{suppressFragmentChange:!0});var n=a.br.viewModeOrder.shift();a.br.viewModeOrder.push(n),a.br.updateViewModeButton(D(".viewmode"),"twopg","Two-page view"),a.br.trigger(o.fragmentChange),e.stopPropagation()})),a.br.refs.$brPageViewEl.append(f.$container)};for(A.s();!($=A.n()).done;)U()}catch(e){A.e(e)}finally{A.f()}}}var j,W=F(this.br.displayedRows);try{for(W.s();!(j=W.n()).done;){var H=j.value;if((0,i.notInArray)(H,k)){var z,V,q=F(null===(z=g[H])||void 0===z?void 0:z.leafs);try{for(q.s();!(V=q.n()).done;){var X,G=V.value.num;null!=C&&C.includes(G)||null===(X=this.br.$(".pagediv".concat(G)))||void 0===X||X.remove()}}catch(e){q.e(e)}finally{q.f()}}}}catch(e){W.e(e)}finally{W.f()}var Y=this.br.currentIndex();Y<S?this.br.updateFirstIndex(S):Y>T&&this.br.updateFirstIndex(T),this.br.displayedRows=k.slice(),this.br.$(".BRpagedivthumb_highlight").removeClass("BRpagedivthumb_highlight"),this.br.$(".pagediv"+this.br.currentIndex()).addClass("BRpagedivthumb_highlight"),this.br.updateToolbarZoom(this.br.reduce)}},{key:"lazyLoadImage",value:function(e){var t=D(e).data("leaf"),n=D(e).data("reduce"),i=this.br.imageCache.image(t,n),r=D(e).parent();D(r).append(i),D(e).remove()}},{key:"zoom",value:function(e){var t=this.br.thumbColumns;switch(e){case-1:this.br.thumbColumns+=1;break;case 1:this.br.thumbColumns-=1}this.br.thumbColumns=(0,i.clamp)(this.br.thumbColumns,2,8),this.br.thumbColumns!=t&&(this.br.displayedRows=[],this.prepare())}},{key:"getThumbnailWidth",value:function(e){var t=(e+1)*this.br.thumbPadding,n=(this.br.refs.$brPageViewEl.width()-t)/(e+.5),i=Math.floor(n);return i>0?i:100}},{key:"prepare",value:function(){this.br.refs.$brContainer.empty(),this.br.refs.$brContainer.css({overflowY:"scroll",overflowX:"auto"}),this.br.refs.$brPageViewEl=D("<div class='BRpageview'></div>"),this.br.refs.$brContainer.append(this.br.refs.$brPageViewEl),this.br.refs.$brContainer.dragscrollable({preventDefault:!0}),this.br.bindGestures(this.br.refs.$brContainer),this.br.thumbWidth=this.getThumbnailWidth(this.br.thumbColumns),this.br.reduce=this.book.getPageWidth(0)/this.br.thumbWidth,this.br.displayedRows=[],this.drawLeafs(this.br.currentIndex()),this.br.updateBrClasses()}},{key:"jumpToIndex",value:function(e){for(var t=this,n=Math.floor,i=this.book,r=this.br.refs.$brContainer.prop("scrollWidth")-20,o=this.br.thumbWidth,a=0,s=0,u=0,c=0,l=0,h=0;h<=e;h++){s+(o+this.br.thumbPadding)>r&&(s=0,c=0,l=0);var d=n(i.getPageHeight(l)*this.br.thumbWidth/i.getPageWidth(l));d>c&&(c=d),0==l&&(a=u,u+=this.br.thumbPadding+c),s+=o+this.br.thumbPadding,l++}this.br.updateFirstIndex(e),this.br.refs.$brContainer.prop("scrollTop")==a?this.br.drawLeafs():(this.br.animating=!0,this.br.refs.$brContainer.stop(!0).animate({scrollTop:a},"fast",(function(){t.br.animating=!1})))}}])&&U(t.prototype,n),e}(),W=(n(4914),{floor:Math.floor,decr:function(e){return e-1}}),H={floor:function(e){return Math.pow(2,Math.floor(Math.log2(Math.max(1,e))))},decr:function(e){return Math.pow(2,Math.log2(e)-1)}},z={pow2:H,integer:W},V=n(3609);function q(e){return function(e){if(Array.isArray(e))return X(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return X(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?X(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function G(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Y(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var K=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.useSrcSet,r=void 0!==i&&i,o=n.reduceSet,a=void 0===o?H:o;G(this,e),this.book=t,this.useSrcSet=r,this.reduceSet=a,this.cache={},this.defaultScale=8}var t,n;return t=e,(n=[{key:"image",value:function(e,t){var n=(this.cache[e]||[]).filter((function(e){return e.loaded&&e.reduce<=t}));if(n.length){var i=Math.max.apply(Math,q(n.map((function(e){return e.reduce}))));return this._serveImageElement(e,i)}return this._serveImageElement(e,t)}},{key:"imageLoaded",value:function(e,t){var n,i,r=null===(n=this.cache[e])||void 0===n?void 0:n.find((function(e){return e.reduce<=t}));return null!==(i=null==r?void 0:r.loaded)&&void 0!==i&&i}},{key:"getBestLoadedReduce",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,i=(null===(t=this.cache[e])||void 0===t?void 0:t.filter((function(e){return e.loaded})))||[];if(!i.length)return null;var r=i.filter((function(e){return e.reduce>=n}));if(r.length)return Math.min.apply(Math,q(r.map((function(e){return e.reduce}))));var o=i.filter((function(e){return e.reduce<n}));return Math.max.apply(Math,q(o.map((function(e){return e.reduce}))))}},{key:"_serveImageElement",value:function(e,t){var n,i=this.reduceSet.floor(t),r=null===(n=this.cache[e])||void 0===n?void 0:n.find((function(e){return e.reduce==i}));r||(r={reduce:i,loaded:!1},(this.cache[e]||(this.cache[e]=[])).push(r));var o=this.book.getPage(e),a=V("<img />",{class:"BRpageimage",alt:"Book page image",src:o.getURI(i,0)}).data("reduce",i);return this.useSrcSet&&a.attr("srcset",o.getURISrcSet(i)),r.loaded||a.one("load",(function(){return r.loaded=!0})),a}}])&&Y(t.prototype,n),e}(),Z=n(3609);function Q(e,t,n,i,r,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(i,r)}function J(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var ee=function(){function e(t,n){var i=n.isProtected,r=n.imageCache,o=n.loadingImage;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.page=t,this.imageCache=r,this.loadingImage=o,this.$container=Z("<div />",{class:"BRpagecontainer ".concat(t?"pagediv".concat(t.index):"BRemptypage"),css:{position:"absolute"}}).attr("data-side",null==t?void 0:t.pageSide),i&&(this.$container.append(Z('<div class="BRscreen" />')),this.$container.addClass("protected")),this.$img=null}var t,n;return t=e,(n=[{key:"update",value:function(e){var t,n=e.dimensions,i=void 0===n?null:n,r=e.reduce,o=void 0===r?null:r;if(i&&this.$container.css(i),null!=o&&this.page){var a=this.imageCache.imageLoaded(this.page.index,o),s=!a&&this.imageCache.getBestLoadedReduce(this.page.index,o);null===(t=this.$img)||void 0===t||t.remove(),this.$img=this.imageCache.image(this.page.index,o).prependTo(this.$container);var u=[];return a||(this.$container.addClass("BRpageloading"),u.push('url("'.concat(this.loadingImage,'") center/20px no-repeat'))),s&&u.push('url("'.concat(this.page.getURI(s,0),'") center/100% no-repeat')),a||this.$img.css("background",u.join(",")).one("loadend",function(){var e,t=(e=regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Z(t.target).css({background:""}),Z(t.target).parent().removeClass("BRpageloading");case 2:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function a(e){Q(o,i,r,a,s,"next",e)}function s(e){Q(o,i,r,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()),this}}}])&&J(t.prototype,n),e}(),te=n(3609),ne=n(3609);function ie(e,t,n,i,r,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(i,r)}function re(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=ne.extend(!0,{},re.defaultOptions,e,re.optionOverrides);this.setup(t)}function oe(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n,o=function(e){return e.br},a=function(e){return e._overrideable[t]};r(e,n,o,re,i,a)}-1!=location.toString().indexOf("_debugShowConsole=true")&&te((function(){return(new h.E).init()})),re.version="5.0.0-11",re.constMode1up=1,re.constMode2up=2,re.constModeThumb=3,re.imageCache=null,re.constNavAnimationDuration=300,re.constResizeAnimationDuration=100,re.eventNames=o,re.defaultOptions=l,re.optionOverrides={},re.prototype.setup=function(e){this.options=e,this.numLeafs=void 0,this.enableSearch=!1,this.viewModeOrder=[],this.suppressFragmentChange=!1,this.animationFinishedCallback=null,this.constMode1up=re.constMode1up,this.constMode2up=re.constMode2up,this.constModeThumb=re.constModeThumb,this.reduce=8,this.defaults=e.defaults,this.padding=e.padding,this.reduceSet=z[e.reduceSet],this.reduceSet||(console.warn("Invalid reduceSet ".concat(e.reduceSet,". Ignoring.")),this.reduceSet=z[l.reduceSet]),this.mode=null,this.prevReadMode=null,this.ui=e.ui,this.uiAutoHide=e.uiAutoHide,this.thumbWidth=100,this.thumbRowBuffer=e.thumbRowBuffer,this.thumbColumns=e.thumbColumns,this.thumbMaxLoading=e.thumbMaxLoading,this.thumbPadding=e.thumbPadding,this.displayedRows=[],this.displayedIndices=[],this.imgs={},this.prefetchedImgs={},this.animating=!1,this.flipSpeed=e.flipSpeed,this.flipDelay=e.flipDelay,this.twoPagePopUp=null,this.leafEdgeTmp=null,this.firstIndex=null,this.lastDisplayableIndex2up=null,this.isFullscreenActive=!1,this.lastScroll=null,this.showLogo=e.showLogo,this.logoURL=e.logoURL,this.imagesBaseURL=e.imagesBaseURL,this.reductionFactors=e.reductionFactors,this.onePage=e.onePage,this.twoPage=e.twoPage,this.onePageMinBreakpoint=e.onePageMinBreakpoint,this.bookTitle=e.bookTitle,this.bookUrl=e.bookUrl,this.bookUrlText=e.bookUrlText,this.bookUrlTitle=e.bookUrlTitle,this.titleLeaf=e.titleLeaf,this.metadata=e.metadata,this.thumbnail=e.thumbnail,this.bookUrlMoreInfo=e.bookUrlMoreInfo,this.enableExperimentalControls=e.enableExperimentalControls,this.el=e.el,this.pageProgression=e.pageProgression,this.protected=e.protected,this.getEmbedCode=e.getEmbedCode,this.popup=null,this.data=e.data,e.getNumLeafs&&(re.prototype.getNumLeafs=e.getNumLeafs),e.getPageWidth&&(re.prototype.getPageWidth=e.getPageWidth),e.getPageHeight&&(re.prototype.getPageHeight=e.getPageHeight),e.getPageURI&&(re.prototype.getPageURI=e.getPageURI),e.getPageSide&&(re.prototype.getPageSide=e.getPageSide),e.getPageNum&&(re.prototype.getPageNum=e.getPageNum),e.getPageProp&&(re.prototype.getPageProp=e.getPageProp),e.getSpreadIndices&&(re.prototype.getSpreadIndices=e.getSpreadIndices),e.leafNumToIndex&&(re.prototype.leafNumToIndex=e.leafNumToIndex),this.refs={},this._models={book:new k(this)},this._components={navbar:new u(this),toolbar:new g(this)},this._modes={mode1Up:new E(this,this._models.book),mode2Up:new $(this,this._models.book),modeThumb:new j(this,this._models.book)},this._overrideable={"_models.book":this._models.book,"_components.navbar":this._components.navbar,"_components.toolbar":this._components.toolbar,"_modes.mode1Up":this._modes.mode1Up,"_modes.mode2Up":this._modes.mode2Up,"_modes.modeThumb":this._modes.modeThumb},this.imageCache=new K(this._models.book,{useSrcSet:this.options.useSrcSet,reduceSet:this.reduceSet})},Object.defineProperty(re.prototype,"leafEdgeL",{get:function(){return this._modes.mode2Up.leafEdgeL},set:function(e){this._modes.mode2Up.leafEdgeL=e}}),Object.defineProperty(re.prototype,"leafEdgeR",{get:function(){return this._modes.mode2Up.leafEdgeR},set:function(e){this._modes.mode2Up.leafEdgeR=e}}),re.util=i,re.prototype.extendParams=function(e,t){var n=te.extend({},t);if(void 0!==n.page){var i=this._models.book.parsePageString(n.page);isNaN(i)||(n.index=i),delete n.page}te.extend(e,n)},re.prototype.initParams=function(){var e={init:!0,pageFound:!1,fragmentChange:!1};if(void 0!==this.titleLeaf&&this._models.book.getNumLeafs()>2?e.index=this._models.book.leafNumToIndex(this.titleLeaf):e.index=0,this.defaults){var t=this.paramsFromFragment(this.defaults);void 0!==t.page&&(e.pageFound=!0),this.extendParams(e,t)}if(this.options.enablePageResume){var n=this.getResumeValue();null!==n&&(e.index!==n&&(e.fragmentChange=!0),e.index=n)}if(this.options.enableUrlPlugin){var r=this.paramsFromFragment(this.urlReadFragment());!Object.keys(r).length&&this.urlReadHashFragment()&&"history"===this.options.urlMode&&(r=this.paramsFromFragment(this.urlReadHashFragment())),Object.keys(r).length&&(void 0!==r.page&&(e.pageFound=!0),this.extendParams(e,r),e.fragmentChange=!0)}if(this.options.enableSearch&&(this.options.goToFirstResult=!e.pageFound,!this.options.initialSearchTerm))if(e.search)this.options.initialSearchTerm=e.search,this.searchTerm=e.search;else{var o=new URLSearchParams(this.readQueryString()).get("q");o&&(this.options.initialSearchTerm=i.decodeURIComponentPlus(o))}return this.suppressFragmentChange=!e.fragmentChange,e},re.prototype.getLocationSearch=function(){return window.location.search},re.prototype.getLocationHash=function(){return window.location.hash},re.prototype.readQueryString=function(){var e=this.getLocationSearch();if(e)return e;var t=this.getLocationHash(),n=t.search(/\?\w+=/);return n>-1?t.slice(n):""},re.prototype.getInitialMode=function(e){var t,n=te(window).width();return t=void 0!==e.mode?e.mode:"full"==this.ui&&this.enableMobileNav&&this.isFullscreenActive&&n<=this.onePageMinBreakpoint?this.constMode1up:this.constMode2up,this.canSwitchToMode(t)||(t=this.constMode1up),t},re.prototype.init=function(){this.init.initComplete=!1,this.pageScale=this.reduce;var e=this.initParams();this.firstIndex=e.index?e.index:0,this.isTouchDevice=!!("ontouchstart"in window)||!!("msmaxtouchpoints"in window.navigator),this.refs.$br=te(this.el).empty().removeClass().addClass("ui-"+this.ui).addClass("br-ui-"+this.ui).addClass("BookReader"),this.isTouchDevice?this.refs.$br.addClass("touch"):this.refs.$br.addClass("no-touch"),this.refs.$brContainer=te("<div class='BRcontainer' dir='ltr'></div>"),this.refs.$br.append(this.refs.$brContainer),e.mode=this.getInitialMode(e),this.mode=e.mode,"embed"==this.ui&&this.options.showNavbar?this.initEmbedNavbar():(this.options.showToolbar&&this.initToolbar(this.mode,this.ui),this.options.showNavbar&&this.initNavbar()),this.switchNavbarControls(),this.resizeBRcontainer(),this.updateFromParams(e),this.initUIStrings(),this.bindNavigationHandlers(),this.setupKeyListeners(),this.lastScroll=(new Date).getTime(),this.refs.$brContainer.bind("scroll",this,(function(e){e.data.lastScroll=(new Date).getTime(),e.data.constMode2up!=e.data.mode&&e.data.drawLeafsThrottled()})),this.options.autoResize&&(te(window).bind("resize",this,(function(e){e.data.resize()})),te(window).on("orientationchange",this,function(e){e.data.resize()}.bind(this))),this.protected&&this.$(".BRicon.share").hide(),this.options.initialSearchTerm||(this.suppressFragmentChange=!1),this.init.initComplete=!0,this.trigger(re.eventNames.PostInit),this.options.startFullscreen&&this.toggleFullscreen()},re.prototype.trigger=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,n="BookReader:"+e;te(document).trigger(n,t),i.polyfillCustomEvent(window),window.dispatchEvent(new CustomEvent(n,{bubbles:!0,composed:!0,detail:{props:t}}))},re.prototype.bind=function(e,t){te(document).bind("BookReader:"+e,t)},re.prototype.unbind=function(e,t){te(document).unbind("BookReader:"+e,t)},re.prototype.resize=function(){if(this.init.initComplete){if(this.resizeBRcontainer(),this.switchNavbarControls(),this.constMode1up==this.mode)"none"!=this.onePage.autofit?(this.resizePageView1up(),this.centerPageView(),this.enableSearch&&this.updateSearchHilites()):(this.centerPageView(),this.displayedIndices=[],this.enableSearch&&this.updateSearchHilites(),this.drawLeafsThrottled());else if(this.constModeThumb==this.mode)this.prepareThumbnailView();else if(this.twoPage.autofit)this.prepareTwoPageView();else{var e=this.twoPageGetViewCenter(),t=!1;this.twoPage.totalWidth<this.refs.$brContainer.prop("clientWidth")&&(e.percentageX=.5,t=!0),this.twoPage.totalHeight<this.refs.$brContainer.prop("clientHeight")&&(e.percentageY=.5,t=!0),t&&this.twoPageCenterView(e.percentageX,e.percentageY)}this.trigger(re.eventNames.resize)}},re.prototype.setupKeyListeners=function(){var e=this;te(document).keydown((function(t){if(!e.keyboardNavigationIsDisabled(t))switch(t.keyCode){case 33:case 38:e.constMode2up==e.mode&&(t.preventDefault(),e.prev());break;case 40:case 34:e.constMode2up==e.mode&&(t.preventDefault(),e.next());break;case 35:t.preventDefault(),e.last();break;case 36:t.preventDefault(),e.first();break;case 37:e.constModeThumb!=e.mode&&(t.preventDefault(),e.left());break;case 39:e.constModeThumb!=e.mode&&(t.preventDefault(),e.right());break;case 189:case 173:case 109:t.preventDefault(),e.zoom(-1);break;case 187:case 61:case 107:t.preventDefault(),e.zoom(1)}}))},re.prototype.drawLeafs=function(){this.constMode1up==this.mode?this.drawLeafsOnePage():this.constModeThumb==this.mode?this.drawLeafsThumbnail():this.drawLeafsTwoPage()},re.prototype._createPageContainer=function(e){return new ee(this._models.book.getPage(e,!1),{isProtected:this.protected,imageCache:this.imageCache,loadingImage:this.imagesBaseURL+"loading.gif"})},re.prototype.bindGestures=function(e){var t=this,n=1;e.unbind("touchmove").bind("touchmove",(function(e){e.originalEvent.cancelable&&(n=e.originalEvent.touches.length),e.stopPropagation()})),e.unbind("gesturechange").bind("gesturechange",(function(e){e.preventDefault(),2!==n||(new Date).getTime()-t.lastScroll<500||(e.originalEvent.scale>1.5?t.zoom(1):e.originalEvent.scale<.6&&t.zoom(-1))}))},re.prototype.drawLeafsThumbnail=j.prototype.drawLeafs,oe(j,"_modes.modeThumb","drawLeafs","drawLeafsThumbnail"),re.prototype.lazyLoadThumbnails=j.prototype.lazyLoadThumbnails,oe(j,"_modes.modeThumb","lazyLoadThumbnails","lazyLoadThumbnails"),re.prototype.lazyLoadImage=j.prototype.lazyLoadImage,oe(j,"_modes.modeThumb","lazyLoadImage","lazyLoadImage"),re.prototype.zoomThumb=j.prototype.zoom,oe(j,"_modes.modeThumb","zoom","zoomThumb"),re.prototype.getThumbnailWidth=j.prototype.getThumbnailWidth,oe(j,"_modes.modeThumb","getThumbnailWidth","getThumbnailWidth"),re.prototype.prepareThumbnailView=j.prototype.prepare,oe(j,"_modes.modeThumb","prepare","prepareThumbnailView"),re.prototype.drawLeafsThrottled=i.throttle(re.prototype.drawLeafs,250),re.prototype.zoom=function(e){var t;switch(this.mode){case this.constMode1up:1==e?this.zoom1up("in"):this.zoom1up("out");break;case this.constMode2up:1==e?this.zoom2up("in"):this.zoom2up("out");break;case this.constModeThumb:this.zoomThumb(e)}null===(t=this.textSelectionPlugin)||void 0===t||t.stopPageFlip(this.refs.$brContainer)},re.prototype.resizeBRcontainer=function(e){e?this.refs.$brContainer.animate({top:this.getToolBarHeight(),bottom:this.getFooterHeight()},this.constResizeAnimationDuration,"linear"):this.refs.$brContainer.css({top:this.getToolBarHeight(),bottom:this.getFooterHeight()})},re.prototype.centerPageView=function(){var e=this.refs.$brContainer.prop("scrollWidth"),t=this.refs.$brContainer.prop("clientWidth");e>t&&this.refs.$brContainer.prop("scrollLeft",(e-t)/2)},re.prototype.quantizeReduce=function(e,t){for(var n=t[0].reduce,i=Math.abs(e-n),r=1;r<t.length;r++){var o=Math.abs(e-t[r].reduce);o<i&&(i=o,n=t[r].reduce)}return n},re.prototype.nextReduce=function(e,t,n){if("in"===t){for(var i=0,r=1;r<n.length;r++)n[r].reduce<e&&(i=r);return n[i]}if("out"===t){for(var o=n.length-1,a=o,s=o;s>=0;s--)n[s].reduce>e&&(a=s);return n[a]}if("auto"===t){var u=n.find((function(e){return"auto"==e.autofit}));if(u)return u;for(var c=n.filter((function(e){var t=e.autofit;return"height"==t||"width"==t})),l=null,h=0;h<c.length;h++)(null===l||l.reduce<c[h].reduce)&&(l=c[h]);if(l)return l}else if("height"===t||"width"===t){var d=n.find((function(e){return e.autofit==t}));if(d)return d}return n[0]},re.prototype._reduceSort=function(e,t){return e.reduce-t.reduce},re.prototype.jumpToPage=function(e){var t=this._models.book.parsePageString(e);return void 0!==t&&(this.jumpToIndex(t),!0)},re.prototype._isIndexDisplayed=function(e){return this.constMode1up==this.mode?this.displayedIndices.slice(1,-1).includes(e):this.displayedIndices?this.displayedIndices.includes(e):this.currentIndex()==e},re.prototype.jumpToIndex=function(e,t,n,i){var r=this._models.book.getPage(e);if(!r.isViewable&&r.unviewablesStart!=r.index){var o=this._isIndexDisplayed(r.unviewablesStart)?r.findNext({combineConsecutiveUnviewables:!0}).index:r.unviewablesStart;return this.jumpToIndex(o,t,n,i)}this.trigger(re.eventNames.stop),this.constMode2up==this.mode?this._modes.mode2Up.jumpToIndex(e):this.constModeThumb==this.mode?this._modes.modeThumb.jumpToIndex(e):this._modes.mode1Up.jumpToIndex(e,t,n,i)},re.prototype.getPrevReadMode=function(e){return e===re.constMode1up||e===re.constMode2up?e:null===this.prevReadMode?re.constMode1up:void 0},re.prototype.switchMode=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.suppressFragmentChange,r=void 0!==i&&i,o=n.init,a=void 0!==o&&o,s=n.pageFound,u=void 0!==s&&s;if(this.init.initComplete){if(e===this.mode)return;if(!this.canSwitchToMode(e))return}this.trigger(re.eventNames.stop),this.enableSearch&&this.removeSearchHilites(),this.prevReadMode=this.getPrevReadMode(this.mode),this.mode=e,this.pageScale!==this.reduce&&(this.reduce=this.pageScale),this.constMode1up==e?(this.onePageCalculateReductionFactors(),this.reduce=this.quantizeReduce(this.reduce,this.onePage.reductionFactors),this.prepareOnePageView()):this.constModeThumb==e?(this.reduce=this.quantizeReduce(this.reduce,this.reductionFactors),this.prepareThumbnailView()):(!a&&u||this.setSpreadIndices(),this.twoPageCalculateReductionFactors(),this.prepareTwoPageView(),this.twoPageCenterView(.5,.5)),this.suppressFragmentChange||r||this.trigger(re.eventNames.fragmentChange);var c=e+"PageViewSelected";this.trigger(re.eventNames[c]),null===(t=this.textSelectionPlugin)||void 0===t||t.stopPageFlip(this.refs.$brContainer)},re.prototype.updateBrClasses=function(){var e={};e[this.constMode1up]="BRmode1up",e[this.constMode2up]="BRmode2Up",e[this.constModeThumb]="BRmodeThumb",this.refs.$br.removeClass("BRmode1up BRmode2Up BRmodeThumb").addClass(e[this.mode]),this.isFullscreen()?(this.refs.$br.addClass("fullscreenActive"),te(document.body).addClass("BRfullscreenActive")):(this.refs.$br.removeClass("fullscreenActive"),te(document.body).removeClass("BRfullscreenActive"))},re.prototype.isFullscreen=function(){return this.isFullscreenActive},re.prototype.toggleFullscreen=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.isFullscreen()?this.exitFullScreen():this.enterFullscreen(e)},re.prototype.enterFullscreen=function(){var e,t=this,n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],i=this.currentIndex();this.refs.$brContainer.css("opacity",0),n&&(this._fullscreenCloseHandler=function(e){27===e.keyCode&&t.toggleFullscreen()},te(document).keyup(this._fullscreenCloseHandler));var r=te(window).width();r<=this.onePageMinBreakpoint&&this.switchMode(this.constMode1up),this.isFullscreenActive=!0,this.animating=!0,this.refs.$brContainer.animate({opacity:1},"fast","linear",(function(){t.resize(),t.jumpToIndex(i),t.animating=!1})),null===(e=this.textSelectionPlugin)||void 0===e||e.stopPageFlip(this.refs.$brContainer),this.trigger(re.eventNames.fullscreenToggled)},re.prototype.exitFullScreen=function(){var e,t=this;this.refs.$brContainer.css("opacity",0),te(document).unbind("keyup",this._fullscreenCloseHandler);var n=te(window).width();this.options.controls.twoPage.visible&&n<=this.onePageMinBreakpoint&&this.switchMode(this.constMode2up),this.isFullscreenActive=!1,this.updateBrClasses(),this.animating=!0,this.refs.$brContainer.animate({opacity:1},"fast","linear",(function(){t.resize(),t.animating=!1})),null===(e=this.textSelectionPlugin)||void 0===e||e.stopPageFlip(this.refs.$brContainer),this.trigger(re.eventNames.fullscreenToggled)},re.prototype.currentIndex=function(){if(this.mode==this.constMode1up||this.mode==this.constModeThumb)return this.firstIndex;if(this.mode==this.constMode2up)return i.clamp(this.firstIndex,0,this._models.book.getNumLeafs()-1);throw"currentIndex called for unimplemented mode "+this.mode},re.prototype.updateFirstIndex=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.suppressFragmentChange,i=void 0!==n&&n;this.firstIndex===e&&(i=!0),this.firstIndex=e,this.suppressFragmentChange||i||this.trigger(re.eventNames.fragmentChange),this.options.initialSearchTerm&&!i&&(this.suppressFragmentChange=!1),this.trigger("pageChanged"),this.updateNavIndexThrottled(e)},re.prototype.right=function(){"rl"!=this.pageProgression?this.next():this.prev()},re.prototype.rightmost=function(){"rl"!=this.pageProgression?this.last():this.first()},re.prototype.left=function(){"rl"!=this.pageProgression?this.prev():this.next()},re.prototype.leftmost=function(){"rl"!=this.pageProgression?this.first():this.last()},re.prototype.next=function(){this.constMode2up==this.mode?(this.trigger(re.eventNames.stop),this.flipFwdToIndex(null)):this.firstIndex<this.lastDisplayableIndex()&&this.jumpToIndex(this.firstIndex+1)},re.prototype.prev=function(){this.firstIndex<1||(this.constMode2up==this.mode?(this.trigger(re.eventNames.stop),this.flipBackToIndex(null)):this.firstIndex>=1&&this.jumpToIndex(this.firstIndex-1))},re.prototype.first=function(){this.jumpToIndex(this.firstDisplayableIndex())},re.prototype.last=function(){this.jumpToIndex(this.lastDisplayableIndex())},re.prototype.scrollDown=function(){return te.inArray(this.mode,[this.constMode1up,this.constModeThumb])>=0&&(this.mode==this.constMode1up&&this.reduce>=this.onePageGetAutofitHeight()?this.next():(this.refs.$brContainer.stop(!0).animate({scrollTop:"+="+this._scrollAmount()+"px"},400,"easeInOutExpo"),!0))},re.prototype.scrollUp=function(){return te.inArray(this.mode,[this.constMode1up,this.constModeThumb])>=0&&(this.mode==this.constMode1up&&this.reduce>=this.onePageGetAutofitHeight()?this.prev():(this.refs.$brContainer.stop(!0).animate({scrollTop:"-="+this._scrollAmount()+"px"},400,"easeInOutExpo"),!0))},re.prototype._scrollAmount=function(){return this.constMode1up==this.mode?parseInt(this.refs.$brContainer.prop("clientHeight")-this._models.book.getPageHeight(this.currentIndex())/this.reduce*.03):parseInt(.9*this.refs.$brContainer.prop("clientHeight"))},re.prototype.prefetchImg=function(){var e,t=(e=regeneratorRuntime.mark((function e(t){var n=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.length>1&&void 0!==n[1]&&n[1],console.warn("Call to deprecated function: BookReader.prefetchImg. No-op.");case 2:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function a(e){ie(o,i,r,a,s,"next",e)}function s(e){ie(o,i,r,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}(),re.prototype.pruneUnusedImgs=function(){console.warn("Call to deprecated function: BookReader.pruneUnused. No-op.")},re.prototype.prepareOnePageView=E.prototype.prepare,oe(E,"_modes.mode1Up","prepare","prepareOnePageView"),re.prototype.drawLeafsOnePage=E.prototype.drawLeafs,oe(E,"_modes.mode1Up","drawLeafs","drawLeafsOnePage"),re.prototype.zoom1up=E.prototype.zoom,oe(E,"_modes.mode1Up","zoom","zoom1up"),re.prototype.onePageGetAutofitWidth=E.prototype.getAutofitWidth,oe(E,"_modes.mode1Up","getAutofitWidth","onePageGetAutofitWidth"),re.prototype.onePageGetAutofitHeight=E.prototype.getAutofitHeight,oe(E,"_modes.mode1Up","getAutofitHeight","onePageGetAutofitHeight"),re.prototype.onePageGetPageTop=E.prototype.getPageTop,oe(E,"_modes.mode1Up","getPageTop","onePageGetPageTop"),re.prototype.onePageCalculateReductionFactors=E.prototype.calculateReductionFactors,oe(E,"_modes.mode1Up","calculateReductionFactors","onePageCalculateReductionFactors"),re.prototype.resizePageView1up=E.prototype.resizePageView,oe(E,"_modes.mode1Up","resizePageView","resizePageView1up"),re.prototype.onePageCalculateViewDimensions=E.prototype.calculateViewDimensions,oe(E,"_modes.mode1Up","calculateViewDimensions","onePageCalculateViewDimensions"),re.prototype.centerX1up=E.prototype.centerX,oe(E,"_modes.mode1Up","centerX","centerX1up"),re.prototype.centerY1up=E.prototype.centerY,oe(E,"_modes.mode1Up","centerY","centerY1up"),re.prototype.zoom2up=$.prototype.zoom,oe($,"_modes.mode2Up","zoom","zoom2up"),re.prototype.twoPageGetAutofitReduce=$.prototype.getAutofitReduce,oe($,"_modes.mode2Up","getAutofitReduce","twoPageGetAutofitReduce"),re.prototype.flipBackToIndex=$.prototype.flipBackToIndex,oe($,"_modes.mode2Up","flipBackToIndex","flipBackToIndex"),re.prototype.flipFwdToIndex=$.prototype.flipFwdToIndex,oe($,"_modes.mode2Up","flipFwdToIndex","flipFwdToIndex"),re.prototype.setHilightCss2UP=$.prototype.setHilightCss,oe($,"_modes.mode2Up","setHilightCss","setHilightCss2UP"),re.prototype.setClickHandler2UP=$.prototype.setClickHandler,oe($,"_modes.mode2Up","setClickHandler","setClickHandler2UP"),re.prototype.drawLeafsTwoPage=$.prototype.drawLeafs,oe($,"_modes.mode2Up","drawLeafs","drawLeafsTwoPage"),re.prototype.prepareTwoPageView=$.prototype.prepareTwoPageView,oe($,"_modes.mode2Up","prepareTwoPageView","prepareTwoPageView"),re.prototype.prepareTwoPagePopUp=$.prototype.preparePopUp,oe($,"_modes.mode2Up","preparePopUp","prepareTwoPagePopUp"),re.prototype.calculateSpreadSize=$.prototype.calculateSpreadSize,oe($,"_modes.mode2Up","calculateSpreadSize","calculateSpreadSize"),re.prototype.getIdealSpreadSize=$.prototype.getIdealSpreadSize,oe($,"_modes.mode2Up","getIdealSpreadSize","getIdealSpreadSize"),re.prototype.getSpreadSizeFromReduce=$.prototype.getSpreadSizeFromReduce,oe($,"_modes.mode2Up","getSpreadSizeFromReduce","getSpreadSizeFromReduce"),re.prototype.twoPageIsZoomedIn=$.prototype.isZoomedIn,oe($,"_modes.mode2Up","isZoomedIn","twoPageIsZoomedIn"),re.prototype.twoPageCalculateReductionFactors=$.prototype.calculateReductionFactors,oe($,"_modes.mode2Up","calculateReductionFactors","twoPageCalculateReductionFactors"),re.prototype.twoPageSetCursor=$.prototype.setCursor,oe($,"_modes.mode2Up","setCursor","twoPageSetCursor"),re.prototype.flipLeftToRight=$.prototype.flipLeftToRight,oe($,"_modes.mode2Up","flipLeftToRight","flipLeftToRight"),re.prototype.flipRightToLeft=$.prototype.flipRightToLeft,oe($,"_modes.mode2Up","flipRightToLeft","flipRightToLeft"),re.prototype.setMouseHandlers2UP=$.prototype.setMouseHandlers,oe($,"_modes.mode2Up","setMouseHandlers","setMouseHandlers2UP"),re.prototype.prepareFlipLeftToRight=$.prototype.prepareFlipLeftToRight,oe($,"_modes.mode2Up","prepareFlipLeftToRight","prepareFlipLeftToRight"),re.prototype.prepareFlipRightToLeft=$.prototype.prepareFlipRightToLeft,oe($,"_modes.mode2Up","prepareFlipRightToLeft","prepareFlipRightToLeft"),re.prototype.getPageWidth2UP=$.prototype.getPageWidth,oe($,"_modes.mode2Up","getPageWidth","getPageWidth2UP"),re.prototype.twoPageGutter=$.prototype.gutter,oe($,"_modes.mode2Up","gutter","twoPageGutter"),re.prototype.twoPageTop=$.prototype.top,oe($,"_modes.mode2Up","top","twoPageTop"),re.prototype.twoPageCoverWidth=$.prototype.coverWidth,oe($,"_modes.mode2Up","coverWidth","twoPageCoverWidth"),re.prototype.twoPageGetViewCenter=$.prototype.getViewCenter,oe($,"_modes.mode2Up","getViewCenter","twoPageGetViewCenter"),re.prototype.twoPageCenterView=$.prototype.centerView,oe($,"_modes.mode2Up","centerView","twoPageCenterView"),re.prototype.twoPageFlipAreaHeight=$.prototype.flipAreaHeight,oe($,"_modes.mode2Up","flipAreaHeight","twoPageFlipAreaHeight"),re.prototype.twoPageFlipAreaWidth=$.prototype.flipAreaWidth,oe($,"_modes.mode2Up","flipAreaWidth","twoPageFlipAreaWidth"),re.prototype.twoPageFlipAreaTop=$.prototype.flipAreaTop,oe($,"_modes.mode2Up","flipAreaTop","twoPageFlipAreaTop"),re.prototype.twoPageLeftFlipAreaLeft=$.prototype.leftFlipAreaLeft,oe($,"_modes.mode2Up","leftFlipAreaLeft","twoPageLeftFlipAreaLeft"),re.prototype.twoPageRightFlipAreaLeft=$.prototype.rightFlipAreaLeft,oe($,"_modes.mode2Up","rightFlipAreaLeft","twoPageRightFlipAreaLeft"),re.prototype.gutterOffsetForIndex=$.prototype.gutterOffsetForIndex,oe($,"_modes.mode2Up","gutterOffsetForIndex","gutterOffsetForIndex"),re.prototype.leafEdgeWidth=$.prototype.leafEdgeWidth,oe($,"_modes.mode2Up","leafEdgeWidth","leafEdgeWidth"),re.prototype.jumpIndexForLeftEdgePageX=$.prototype.jumpIndexForLeftEdgePageX,oe($,"_modes.mode2Up","jumpIndexForLeftEdgePageX","jumpIndexForLeftEdgePageX"),re.prototype.jumpIndexForRightEdgePageX=$.prototype.jumpIndexForRightEdgePageX,oe($,"_modes.mode2Up","jumpIndexForRightEdgePageX","jumpIndexForRightEdgePageX"),re.prototype.prefetch=$.prototype.prefetch,oe($,"_modes.mode2Up","prefetch","prefetch"),re.prototype.setSpreadIndices=$.prototype.setSpreadIndices,oe($,"_modes.mode2Up","setSpreadIndices","setSpreadIndices"),re.prototype.stopFlipAnimations=function(){this.trigger(re.eventNames.stop),this.leafEdgeTmp&&te(this.leafEdgeTmp).stop(!1,!0),ne.each(this._modes.mode2Up.pageContainers,(function(){te(this.$container).stop(!1,!0)})),this.leafEdgeTmp&&te(this.leafEdgeTmp).stop(!1,!0),ne.each(this._modes.mode2Up.pageContainers,(function(){te(this.$container).stop(!1,!0)}))},re.prototype.keyboardNavigationIsDisabled=function(e){return"INPUT"==e.target.tagName},re.prototype.initNavbar=u.prototype.init,oe(u,"_components.navbar","init","initNavbar"),re.prototype.switchNavbarControls=u.prototype.switchNavbarControls,oe(u,"_components.navbar","switchNavbarControls"),re.prototype.updateViewModeButton=u.prototype.updateViewModeButton,oe(u,"_components.navbar","updateViewModeButton"),re.prototype.getNavPageNumString=u.prototype.getNavPageNumString,oe(u,"_components.navbar","getNavPageNumString"),re.prototype.initEmbedNavbar=u.prototype.initEmbed,oe(u,"_components.navbar","initEmbed","initEmbedNavbar"),re.prototype.getNavPageNumHtml=c,re.prototype.updateNavPageNum=u.prototype.updateNavPageNum,oe(u,"_components.navbar","updateNavPageNum"),re.prototype.updateNavIndex=u.prototype.updateNavIndex,oe(u,"_components.navbar","updateNavIndex"),re.prototype.updateNavIndexThrottled=i.throttle(re.prototype.updateNavIndex,250,!1),re.prototype.updateNavIndexDebounced=i.debounce(re.prototype.updateNavIndex,500,!1),re.prototype.buildToolbarElement=g.prototype.buildToolbarElement,oe(g,"_components.toolbar","buildToolbarElement"),re.prototype.initToolbar=g.prototype.initToolbar,oe(g,"_components.toolbar","initToolbar"),re.prototype.buildShareDiv=g.prototype.buildShareDiv,oe(g,"_components.toolbar","buildShareDiv"),re.prototype.buildInfoDiv=g.prototype.buildInfoDiv,oe(g,"_components.toolbar","buildInfoDiv"),re.prototype.getToolBarHeight=g.prototype.getToolBarHeight,oe(g,"_components.toolbar","getToolBarHeight"),re.prototype.updateToolbarZoom=g.prototype.updateToolbarZoom,oe(g,"_components.toolbar","updateToolbarZoom"),re.prototype.blankInfoDiv=v,re.prototype.blankShareDiv=m,re.prototype.createPopup=b,re.prototype.bindNavigationHandlers=function(){var e=this,t=this,n=this.$(".BRicon").add(".BRmobileMenu .BRicon"),i={book_left:function(){e.trigger(re.eventNames.stop),e.left()},book_right:function(){e.trigger(re.eventNames.stop),e.right()},book_up:function(){te.inArray(e.mode,[e.constMode1up,e.constModeThumb])>=0?e.scrollUp():e.prev()},book_down:function(){te.inArray(e.mode,[e.constMode1up,e.constModeThumb])>=0?e.scrollDown():e.next()},book_top:this.first.bind(this),book_bottom:this.last.bind(this),book_leftmost:this.leftmost.bind(this),book_rightmost:this.rightmost.bind(this),onepg:function(){e.switchMode(t.constMode1up)},thumb:function(){e.switchMode(t.constModeThumb)},twopg:function(){e.switchMode(t.constMode2up)},zoom_in:function(){e.trigger(re.eventNames.stop),e.zoom(1),e.trigger(re.eventNames.zoomIn)},zoom_out:function(){e.trigger(re.eventNames.stop),e.zoom(-1),e.trigger(re.eventNames.zoomOut)},full:function(){if("embed"==e.ui){var t=e.$(".BRembedreturn a").attr("href");window.open(t)}else e.toggleFullscreen()}};n.filter(".fit").bind("fit",(function(){}));var r=function(e){n.filter(".".concat(e)).on("click.bindNavigationHandlers",(function(){return i[e](),!1}))};for(var o in i)r(o);var a=this.$(".BRnavCntlBtm"),s=this.$(".BRnavCntlTop");this.$(".BRnavCntl").click((function(){var e=[];a.hasClass("BRdn")?(t.refs.$BRtoolbar&&e.push(t.refs.$BRtoolbar.animate({top:-1*t.getToolBarHeight()}).promise()),e.push(t.$(".BRfooter").animate({bottom:-1*t.getFooterHeight()}).promise()),a.addClass("BRup").removeClass("BRdn"),s.addClass("BRdn").removeClass("BRup"),t.$(".BRnavCntlBtm.BRnavCntl").animate({height:"45px"}),t.$(".BRnavCntl").delay(1e3).animate({opacity:.75},1e3)):(t.refs.$BRtoolbar&&e.push(t.refs.$BRtoolbar.animate({top:0}).promise()),e.push(t.$(".BRfooter").animate({bottom:0}).promise()),a.addClass("BRdn").removeClass("BRup"),s.addClass("BRup").removeClass("BRdn"),t.$(".BRnavCntlBtm.BRnavCntl").animate({height:"30px"}),t.$(".BRvavCntl").animate({opacity:1})),te.when.apply(te,e).done((function(){t.mode==t.constMode2up&&null!=t.twoPage.autofit&&"none"!=t.twoPage.autofit||t.mode==t.constMode1up&&null!=t.onePage.autofit&&"none"!=t.onePage.autofit?t.resize():t.resizeBRcontainer()}))})),a.mouseover((function(){te(this).hasClass("BRup")&&t.$(".BRnavCntl").animate({opacity:1},250)})).mouseleave((function(){te(this).hasClass("BRup")&&t.$(".BRnavCntl").animate({opacity:.75},250)})),s.mouseover((function(){te(this).hasClass("BRdn")&&t.$(".BRnavCntl").animate({opacity:1},250)})).mouseleave((function(){te(this).hasClass("BRdn")&&t.$(".BRnavCntl").animate({opacity:.75},250)})),this.initSwipeData(),te(document).off("mousemove.navigation",this.el),te(document).on("mousemove.navigation",this.el,{br:this},this.navigationMousemoveHandler),te(document).off("mousedown.swipe",".BRpageimage"),te(document).on("mousedown.swipe",".BRpageimage",{br:this},this.swipeMousedownHandler),this.bindMozTouchHandlers()},re.prototype.unbindNavigationHandlers=function(){te(document).off("mousemove.navigation",this.el)},re.prototype.navigationMousemoveHandler=function(e){if(e.data.br.uiAutoHide){var t=te(document).height()-75;e.pageY<76||e.pageY>t?e.data.br.hideNavigation():e.data.br.showNavigation()}},re.prototype.initSwipeData=function(e,t){this._swipe={mightBeSwiping:!1,didSwipe:!1,mightBeDraggin:!1,didDrag:!1,startTime:(new Date).getTime(),startX:e,startY:t,lastX:e,lastY:t,deltaX:0,deltaY:0,deltaT:0}},re.prototype.swipeMousedownHandler=function(e){var t=e.data.br;return 3==e.which?!t.protected:(te(e.target).bind("mouseout.swipe",{br:t},t.swipeMouseupHandler).bind("mouseup.swipe",{br:t},t.swipeMouseupHandler).bind("mousemove.swipe",{br:t},t.swipeMousemoveHandler),t.initSwipeData(e.clientX,e.clientY),t._swipe.mightBeSwiping=!0,t._swipe.mightBeDragging=!0,e.preventDefault(),e.returnValue=!1,e.cancelBubble=!0,!1)},re.prototype.swipeMousemoveHandler=function(e){var t=e.data.br,n=t._swipe;if(n.mightBeSwiping){n.deltaX=e.clientX-n.startX,n.deltaY=e.clientY-n.startY,n.deltaT=(new Date).getTime()-n.startTime;var i=Math.abs(n.deltaX),r=Math.abs(n.deltaY),o=Math.min(t.refs.$br.width()/5,80);return i>r&&i>o&&n.deltaT<400&&(n.mightBeSwiping=!1,n.didSwipe=!0,t.mode==t.constMode2up&&(n.deltaX<0?t.right():t.left())),n.deltaT>400&&!n.didSwipe&&n.mightBeDragging&&(n.didDrag=!0,t.refs.$brContainer.scrollTop(t.refs.$brContainer.scrollTop()-e.clientY+n.lastY).scrollLeft(t.refs.$brContainer.scrollLeft()-e.clientX+n.lastX)),n.lastX=e.clientX,n.lastY=e.clientY,e.preventDefault(),e.returnValue=!1,e.cancelBubble=!0,!1}},re.prototype.swipeMouseupHandler=function(e){var t=e.data.br._swipe;return t.mightBeSwiping=!1,t.mightBeDragging=!1,te(e.target).unbind("mouseout.swipe").unbind("mouseup.swipe").unbind("mousemove.swipe"),!t.didSwipe&&!t.didDrag||(e.preventDefault(),e.returnValue=!1,e.cancelBubble=!0,!1)},re.prototype.bindMozTouchHandlers=function(){var e=this;this.refs.$br.bind("MozTouchDown",(function(t){this.mode==e.constMode2up&&t.preventDefault()})).bind("MozTouchMove",(function(t){this.mode==e.constMode2up&&t.preventDefault()})).bind("MozTouchUp",(function(t){this.mode==e.constMode2up&&t.preventDefault()}))},re.prototype.navigationIsVisible=function(){return 0==this.refs.$BRtoolbar.position().top},re.prototype.setNavigationView=function(e){var t=this.constNavAnimationDuration,n="linear",i=function(){this.constMode2up!==this.mode&&this.resizeBRcontainer(!0),this.trigger(re.eventNames.navToggled)}.bind(this),r=0,o=0;e?(r=-1*this.getToolBarHeight(),o=-1*this.getFooterHeight(),this.refs.$BRtoolbar.addClass("js-menu-hide"),this.refs.$BRfooter.addClass("js-menu-hide")):(this.refs.$BRtoolbar.removeClass("js-menu-hide"),this.refs.$BRfooter.removeClass("js-menu-hide")),this.refs.$BRtoolbar.animate({top:r},t,n,i),this.refs.$BRfooter.animate({bottom:o},t,n,i)},re.prototype.hideNavigation=function(){this.navigationIsVisible()&&this.setNavigationView(!0)},re.prototype.showNavigation=function(){this.navigationIsVisible()||this.setNavigationView()},re.prototype.firstDisplayableIndex=function(){return this.mode!=this.constMode2up?0:"rl"!=this.pageProgression?"L"==this._models.book.getPageSide(0)?0:-1:"R"==this._models.book.getPageSide(0)?0:-1},re.prototype.lastDisplayableIndex=function(){var e=this._models.book.getNumLeafs()-1;return this.mode!=this.constMode2up?e:"rl"!=this.pageProgression?"R"==this._models.book.getPageSide(e)?e:e+1:"L"==this._models.book.getPageSide(e)?e:e+1},re.prototype.getMedianPageSize=k.prototype.getMedianPageSize,oe(k,"_models.book","getMedianPageSize"),re.prototype._getPageWidth=k.prototype._getPageWidth,oe(k,"_models.book","_getPageWidth"),re.prototype._getPageHeight=k.prototype._getPageHeight,oe(k,"_models.book","_getPageHeight"),re.prototype.getPageIndex=k.prototype.getPageIndex,oe(k,"_models.book","getPageIndex"),re.prototype.getPageIndices=k.prototype.getPageIndices,oe(k,"_models.book","getPageIndices"),re.prototype.getPageName=k.prototype.getPageName,oe(k,"_models.book","getPageName"),re.prototype.getNumLeafs=k.prototype.getNumLeafs,oe(k,"_models.book","getNumLeafs"),re.prototype.getPageWidth=k.prototype.getPageWidth,oe(k,"_models.book","getPageWidth"),re.prototype.getPageHeight=k.prototype.getPageHeight,oe(k,"_models.book","getPageHeight"),re.prototype.getPageURI=k.prototype.getPageURI,oe(k,"_models.book","getPageURI"),re.prototype.getPageSide=k.prototype.getPageSide,oe(k,"_models.book","getPageSide"),re.prototype.getPageNum=k.prototype.getPageNum,oe(k,"_models.book","getPageNum"),re.prototype.getPageProp=k.prototype.getPageProp,oe(k,"_models.book","getPageProp"),re.prototype.getSpreadIndices=k.prototype.getSpreadIndices,oe(k,"_models.book","getSpreadIndices"),re.prototype.leafNumToIndex=k.prototype.leafNumToIndex,oe(k,"_models.book","leafNumToIndex"),re.prototype.parsePageString=k.prototype.parsePageString,oe(k,"_models.book","parsePageString"),re.prototype._getDataFlattened=k.prototype._getDataFlattened,oe(k,"_models.book","_getDataFlattened"),re.prototype._getDataProp=k.prototype._getDataProp,oe(k,"_models.book","_getDataProp"),re.prototype.updateFromParams=function(e){var t=e.mode,n=void 0===t?0:t,i=e.init,r=void 0!==i&&i,o=e.fragmentChange,a=void 0!==o&&o;n&&this.switchMode(n,{init:r,suppressFragmentChange:!a}),void 0!==e.index?e.index!=this.currentIndex()&&this.jumpToIndex(e.index):void 0!==e.page&&e.page!=this._models.book.getPageNum(this.currentIndex())&&this.jumpToPage(e.page),this.enableSearch&&void 0!==e.search&&this.searchTerm!==e.search&&this.$(".BRsearchInput").val(e.search),this.enableThemesPlugin&&void 0!==e.theme&&this.updateTheme(e.theme)},re.prototype.canSwitchToMode=function(e){return e!=this.constMode2up&&e!=this.constModeThumb||!(this._models.book.getNumLeafs()<2)},re.prototype._getPageURISrcset=function(e,t,n){var i=this._models.book.getPage(e,!1);return i?(void 0===t&&(t=i.height/this.twoPage.height),i.getURISrcSet(t,n)):""},re.prototype._getPageURI=function(e,t,n){var i=this._models.book.getPage(e,!1);return i?(void 0===t&&(t=i.height/this.twoPage.height),i.getURI(t,n)):this.imagesBaseURL+"transparent.png"},re.prototype.showProgressPopup=function(e,t){var n=this;if(!this.popup){if(this.popup=document.createElement("div"),te(this.popup).prop("className","BRprogresspopup"),"function"==typeof t){var i=document.createElement("button");i.setAttribute("title","close"),i.setAttribute("class","close-popup");var r=document.createElement("span");r.setAttribute("class","icon icon-close-dark"),te(i).append(r),i.addEventListener("click",(function(){t(),n.removeProgressPopup()})),te(this.popup).append(i)}var o=document.createElement("div");if(te(o).css({height:"20px"}).prop("className","BRprogressbar"),te(this.popup).append(o),e){var a=document.createElement("div");a.innerHTML=e,te(this.popup).append(a)}te(this.popup).appendTo(this.refs.$br)}},re.prototype.removeProgressPopup=function(){te(this.popup).remove(),this.$(".BRprogresspopup").remove(),this.popup=null},re.prototype.initUIStrings=function(){var e={".logo":"Go to Archive.org",".zoom_in":"Zoom in",".zoom_out":"Zoom out",".onepg":"One-page view",".twopg":"Two-page view",".thumb":"Thumbnail view",".print":"Print this page",".embed":"Embed BookReader",".link":"Link to this book (and page)",".bookmark":"Bookmark this page",".share":"Share this book",".info":"About this book",".full":"Toggle fullscreen",".book_left":"Flip left",".book_right":"Flip right",".book_up":"Page up",".book_down":"Page down",".play":"Play",".pause":"Pause",".BRdn":"Show/hide nav bar",".BRup":"Show/hide nav bar",".book_top":"First page",".book_bottom":"Last page",".book_leftmost":"First page",".book_rightmost":"Last page"};for(var t in"rl"==this.pageProgression&&(e[".book_leftmost"]="Last page",e[".book_rightmost"]="First page"),e)this.$(t).prop("title",e[t])},re.prototype.reloadImages=function(){this.refs.$brContainer.find("img").each((function(e,t){if(!t.complete||0===t.naturalHeight){var n=t.src;t.src="",setTimeout((function(){t.src=n}),1e3)}}))},re.prototype.getFooterHeight=function(){var e=this.mode==this.constMode2up?this.refs.$BRfooter:this.refs.$BRnav;if(e&&this.refs.$BRfooter){var t=e.outerHeight(),n=parseInt(this.refs.$BRfooter.css("bottom"));if(!isNaN(t)&&!isNaN(n))return t+n}return 0},re.prototype.paramsFromCurrent=function(){var e={},t=this.currentIndex(),n=this._models.book.getPageNum(t);return(0===n||n)&&(e.page=n),e.index=t,e.mode=this.mode,this.enableSearch&&(e.search=this.searchTerm),e},re.prototype.paramsFromFragment=function(e){var t={};"#"==e.substr(0,1)&&(e=e.substr(1));var n=parseInt(/^\d+$/.exec(e));if(!isNaN(n))return t.index=n,t;for(var r=e.split("/"),o={},a=0;a<r.length;a+=2)o[r[a]]=r[a+1];return"1up"==o.mode?t.mode=this.constMode1up:"2up"==o.mode?t.mode=this.constMode2up:"thumb"==o.mode&&(t.mode=this.constModeThumb),void 0!==o.page&&(t.page=o.page),null!=o.search&&(t.search=i.decodeURIComponentPlus(o.search)),null!=o.theme&&(t.theme=o.theme),t},re.prototype.fragmentFromParams=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"hash",n="/",r=[];if(void 0!==e.page?r.push("page",e.page):void 0!==e.index&&r.push("page","n"+e.index),void 0!==e.mode)if(e.mode==this.constMode1up)r.push("mode","1up");else if(e.mode==this.constMode2up)r.push("mode","2up");else{if(e.mode!=this.constModeThumb)throw"fragmentFromParams called with unknown mode "+e.mode;r.push("mode","thumb")}return e.search&&"hash"===t&&r.push("search",e.search),i.encodeURIComponentPlus(r.join(n)).replace(/%2F/g,"/")},re.prototype.queryStringFromParams=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"hash",i=new URLSearchParams(t);e.search&&"history"===n&&i.set("q",e.search);var r=i.toString();return r?"?"+r:""},re.prototype.$=function(e){return this.refs.$br.find(e)},ne.curCSS=function(e,t,n){return ne(e).css(t,n)},window.BookReader=re},105:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{E:function(){return DebugConsole}});var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(9826),core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(9600),core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(1249),core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_2__),$=__webpack_require__(3609);function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}var DebugConsole=function(){function DebugConsole(){_classCallCheck(this,DebugConsole),this.currentRun=0}return _createClass(DebugConsole,[{key:"init",value:function init(){var _this=this;this.$log=$('<div id="_debugLog" style="width: 100%; height: 300px; overflow: auto" />'),$(document.body).prepend(this.$log),this.$form=$('\n <form>\n <input style="width:100%; font-family: monospace;" id="_debugLogInput">\n </form>'),this.$log.append(this.$form),this.$form.submit((function(ev){ev.preventDefault();var result=eval(_this.$form.find("input").val());_this.logToScreen([result])}));var _realLog=console.log.bind(console);console.log=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];_realLog.apply(void 0,t),_this.logToScreen(t)},window.onerror=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return _this.logToScreen(t)}}},{key:"logToScreen",value:function(e){var t=e.map(JSON.stringify).join(","),n=this.$log.children(".log-entry:last-child");n.find(".entry-code").html()==t?n.find(".count").text("(".concat(++this.currentRun,")")):(this.currentRun=1,this.$log.append($('\n <div class="log-entry">\n <code class="count"></code> <code class="entry-code">'.concat(t,"</code>\n </div>"))))}}]),DebugConsole}()},5685:function(e,t,n){"use strict";function i(e){e.bind("mousedown",(function(){return!1})),e[0].onselectstart=function(){return!1}}function r(e,t,n){return Math.min(Math.max(e,t),n)}function o(e,t){return e/t*100+"%"}function a(e,t){return!t.includes(e)}function s(e){var t=e.contentWindow||e.contentDocument;return t.document||t}function u(e){return e.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;")}function c(e){return decodeURIComponent(e).replace(/\+/g," ")}function l(e){return encodeURIComponent(e).replace(/%20/g,"+")}function h(e,t,n){var i;return function(){var r=this,o=arguments,a=function(){i=null,n||e.apply(r,o)},s=n&&!i;clearTimeout(i),i=setTimeout(a,t),s&&e.apply(r,o)}}function d(e,t,n){var i,r;return t||(t=250),n&&(i=+new Date),function(){var n=this,o=+new Date,a=arguments;i&&o<i+t?(clearTimeout(r),r=setTimeout((function(){i=o,e.apply(n,a)}),t)):(i=o,e.apply(n,a))}}function p(e){if("function"==typeof e.CustomEvent)return!1;e.CustomEvent=f}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bubbles,i=void 0!==n&&n,r=t.cancelable,o=void 0!==r&&r,a=t.detail,s=void 0===a?null:a,u=document.createEvent("CustomEvent");return u.initCustomEvent(e,i,o,s),u}function g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:500;return new Promise((function(t){return setTimeout(t(!0),e)}))}function v(){var e=document.createElement("div");e.style.width="1in",document.body.appendChild(e);var t=e.offsetWidth;document.body.removeChild(e);var n=1.25*t;return 0==n?100:n}n.r(t),n.d(t,{disableSelect:function(){return i},clamp:function(){return r},cssPercentage:function(){return o},notInArray:function(){return a},getIFrameDocument:function(){return s},escapeHTML:function(){return u},decodeURIComponentPlus:function(){return c},encodeURIComponentPlus:function(){return l},debounce:function(){return h},throttle:function(){return d},polyfillCustomEvent:function(){return p},PolyfilledCustomEvent:function(){return f},sleep:function(){return g},calcScreenDPI:function(){return v}}),n(6699),n(2023),n(4916),n(5306),n(1539),n(8674)},3099:function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},6077:function(e,t,n){var i=n(111);e.exports=function(e){if(!i(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},1223:function(e,t,n){var i=n(5112),r=n(30),o=n(3070),a=i("unscopables"),s=Array.prototype;null==s[a]&&o.f(s,a,{configurable:!0,value:r(null)}),e.exports=function(e){s[a][e]=!0}},1530:function(e,t,n){"use strict";var i=n(8710).charAt;e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},5787:function(e){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},9670:function(e,t,n){var i=n(111);e.exports=function(e){if(!i(e))throw TypeError(String(e)+" is not an object");return e}},8533:function(e,t,n){"use strict";var i=n(2092).forEach,r=n(9341)("forEach");e.exports=r?[].forEach:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}},8457:function(e,t,n){"use strict";var i=n(9974),r=n(7908),o=n(3411),a=n(7659),s=n(7466),u=n(6135),c=n(1246);e.exports=function(e){var t,n,l,h,d,p,f=r(e),g="function"==typeof this?this:Array,v=arguments.length,m=v>1?arguments[1]:void 0,b=void 0!==m,y=c(f),w=0;if(b&&(m=i(m,v>2?arguments[2]:void 0,2)),null==y||g==Array&&a(y))for(n=new g(t=s(f.length));t>w;w++)p=b?m(f[w],w):f[w],u(n,w,p);else for(d=(h=y.call(f)).next,n=new g;!(l=d.call(h)).done;w++)p=b?o(h,m,[l.value,w],!0):l.value,u(n,w,p);return n.length=w,n}},1318:function(e,t,n){var i=n(5656),r=n(7466),o=n(1400),a=function(e){return function(t,n,a){var s,u=i(t),c=r(u.length),l=o(a,c);if(e&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},2092:function(e,t,n){var i=n(9974),r=n(8361),o=n(7908),a=n(7466),s=n(5417),u=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,l=4==e,h=6==e,d=7==e,p=5==e||h;return function(f,g,v,m){for(var b,y,w=o(f),_=r(w),x=i(g,v,3),P=a(_.length),k=0,C=m||s,S=t?C(f,P):n||d?C(f,0):void 0;P>k;k++)if((p||k in _)&&(y=x(b=_[k],k,w),e))if(t)S[k]=y;else if(y)switch(e){case 3:return!0;case 5:return b;case 6:return k;case 2:u.call(S,b)}else switch(e){case 4:return!1;case 7:u.call(S,b)}return h?-1:c||l?l:S}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterOut:c(7)}},1194:function(e,t,n){var i=n(7293),r=n(5112),o=n(7392),a=r("species");e.exports=function(e){return o>=51||!i((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},9341:function(e,t,n){"use strict";var i=n(7293);e.exports=function(e,t){var n=[][e];return!!n&&i((function(){n.call(null,t||function(){throw 1},1)}))}},3671:function(e,t,n){var i=n(3099),r=n(7908),o=n(8361),a=n(7466),s=function(e){return function(t,n,s,u){i(n);var c=r(t),l=o(c),h=a(c.length),d=e?h-1:0,p=e?-1:1;if(s<2)for(;;){if(d in l){u=l[d],d+=p;break}if(d+=p,e?d<0:h<=d)throw TypeError("Reduce of empty array with no initial value")}for(;e?d>=0:h>d;d+=p)d in l&&(u=n(u,l[d],d,c));return u}};e.exports={left:s(!1),right:s(!0)}},5417:function(e,t,n){var i=n(111),r=n(3157),o=n(5112)("species");e.exports=function(e,t){var n;return r(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!r(n.prototype)?i(n)&&null===(n=n[o])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},3411:function(e,t,n){var i=n(9670),r=n(9212);e.exports=function(e,t,n,o){try{return o?t(i(n)[0],n[1]):t(n)}catch(t){throw r(e),t}}},7072:function(e,t,n){var i=n(5112)("iterator"),r=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){r=!0}};a[i]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var o={};o[i]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},4326:function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},648:function(e,t,n){var i=n(1694),r=n(4326),o=n(5112)("toStringTag"),a="Arguments"==r(function(){return arguments}());e.exports=i?r:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:a?r(t):"Object"==(i=r(t))&&"function"==typeof t.callee?"Arguments":i}},9920:function(e,t,n){var i=n(6656),r=n(3887),o=n(1236),a=n(3070);e.exports=function(e,t){for(var n=r(t),s=a.f,u=o.f,c=0;c<n.length;c++){var l=n[c];i(e,l)||s(e,l,u(t,l))}}},4964:function(e,t,n){var i=n(5112)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[i]=!1,"/./"[e](t)}catch(e){}}return!1}},8544:function(e,t,n){var i=n(7293);e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},4994:function(e,t,n){"use strict";var i=n(3383).IteratorPrototype,r=n(30),o=n(9114),a=n(8003),s=n(7497),u=function(){return this};e.exports=function(e,t,n){var c=t+" Iterator";return e.prototype=r(i,{next:o(1,n)}),a(e,c,!1,!0),s[c]=u,e}},8880:function(e,t,n){var i=n(9781),r=n(3070),o=n(9114);e.exports=i?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},9114:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},6135:function(e,t,n){"use strict";var i=n(7593),r=n(3070),o=n(9114);e.exports=function(e,t,n){var a=i(t);a in e?r.f(e,a,o(0,n)):e[a]=n}},654:function(e,t,n){"use strict";var i=n(2109),r=n(4994),o=n(9518),a=n(7674),s=n(8003),u=n(8880),c=n(1320),l=n(5112),h=n(1913),d=n(7497),p=n(3383),f=p.IteratorPrototype,g=p.BUGGY_SAFARI_ITERATORS,v=l("iterator"),m="keys",b="values",y="entries",w=function(){return this};e.exports=function(e,t,n,l,p,_,x){r(n,t,l);var P,k,C,S=function(e){if(e===p&&M)return M;if(!g&&e in R)return R[e];switch(e){case m:case b:case y:return function(){return new n(this,e)}}return function(){return new n(this)}},T=t+" Iterator",I=!1,R=e.prototype,E=R[v]||R["@@iterator"]||p&&R[p],M=!g&&E||S(p),L="Array"==t&&R.entries||E;if(L&&(P=o(L.call(new e)),f!==Object.prototype&&P.next&&(h||o(P)===f||(a?a(P,f):"function"!=typeof P[v]&&u(P,v,w)),s(P,T,!0,!0),h&&(d[T]=w))),p==b&&E&&E.name!==b&&(I=!0,M=function(){return E.call(this)}),h&&!x||R[v]===M||u(R,v,M),d[t]=M,p)if(k={values:S(b),keys:_?M:S(m),entries:S(y)},x)for(C in k)(g||I||!(C in R))&&c(R,C,k[C]);else i({target:t,proto:!0,forced:g||I},k);return k}},7235:function(e,t,n){var i=n(857),r=n(6656),o=n(6061),a=n(3070).f;e.exports=function(e){var t=i.Symbol||(i.Symbol={});r(t,e)||a(t,e,{value:o.f(e)})}},9781:function(e,t,n){var i=n(7293);e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(e,t,n){var i=n(7854),r=n(111),o=i.document,a=r(o)&&r(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},8324:function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},6833:function(e,t,n){var i=n(8113);e.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(i)},5268:function(e,t,n){var i=n(4326),r=n(7854);e.exports="process"==i(r.process)},1036:function(e,t,n){var i=n(8113);e.exports=/web0s(?!.*chrome)/i.test(i)},8113:function(e,t,n){var i=n(5005);e.exports=i("navigator","userAgent")||""},7392:function(e,t,n){var i,r,o=n(7854),a=n(8113),s=o.process,u=s&&s.versions,c=u&&u.v8;c?r=(i=c.split("."))[0]+i[1]:a&&(!(i=a.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/))&&(r=i[1]),e.exports=r&&+r},748:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(e,t,n){var i=n(7854),r=n(1236).f,o=n(8880),a=n(1320),s=n(3505),u=n(9920),c=n(4705);e.exports=function(e,t){var n,l,h,d,p,f=e.target,g=e.global,v=e.stat;if(n=g?i:v?i[f]||s(f,{}):(i[f]||{}).prototype)for(l in t){if(d=t[l],h=e.noTargetGet?(p=r(n,l))&&p.value:n[l],!c(g?l:f+(v?".":"#")+l,e.forced)&&void 0!==h){if(typeof d==typeof h)continue;u(d,h)}(e.sham||h&&h.sham)&&o(d,"sham",!0),a(n,l,d,e)}}},7293:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},7007:function(e,t,n){"use strict";n(4916);var i=n(1320),r=n(7293),o=n(5112),a=n(8880),s=o("species"),u=!r((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),c="$0"==="a".replace(/./,"$0"),l=o("replace"),h=!!/./[l]&&""===/./[l]("a","$0"),d=!r((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,l){var p=o(e),f=!r((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),g=f&&!r((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[s]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return t=!0,null},n[p](""),!t}));if(!f||!g||"replace"===e&&(!u||!c||h)||"split"===e&&!d){var v=/./[p],m=n(p,""[e],(function(e,t,n,i,r){return t.exec===RegExp.prototype.exec?f&&!r?{done:!0,value:v.call(t,n,i)}:{done:!0,value:e.call(n,t,i)}:{done:!1}}),{REPLACE_KEEPS_$0:c,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:h}),b=m[0],y=m[1];i(String.prototype,e,b),i(RegExp.prototype,p,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)})}l&&a(RegExp.prototype[p],"sham",!0)}},6790:function(e,t,n){"use strict";var i=n(3157),r=n(7466),o=n(9974),a=function(e,t,n,s,u,c,l,h){for(var d,p=u,f=0,g=!!l&&o(l,h,3);f<s;){if(f in n){if(d=g?g(n[f],f,t):n[f],c>0&&i(d))p=a(e,t,d,r(d.length),p,c-1)-1;else{if(p>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[p]=d}p++}f++}return p};e.exports=a},9974:function(e,t,n){var i=n(3099);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},5005:function(e,t,n){var i=n(857),r=n(7854),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(i[e])||o(r[e]):i[e]&&i[e][t]||r[e]&&r[e][t]}},1246:function(e,t,n){var i=n(648),r=n(7497),o=n(5112)("iterator");e.exports=function(e){if(null!=e)return e[o]||e["@@iterator"]||r[i(e)]}},8554:function(e,t,n){var i=n(9670),r=n(1246);e.exports=function(e){var t=r(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return i(t.call(e))}},647:function(e,t,n){var i=n(7908),r=Math.floor,o="".replace,a=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,u,c,l){var h=n+e.length,d=u.length,p=s;return void 0!==c&&(c=i(c),p=a),o.call(l,p,(function(i,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(h);case"<":a=c[o.slice(1,-1)];break;default:var s=+o;if(0===s)return i;if(s>d){var l=r(s/10);return 0===l?i:l<=d?void 0===u[l-1]?o.charAt(1):u[l-1]+o.charAt(1):i}a=u[s-1]}return void 0===a?"":a}))}},7854:function(e,t,n){var i=function(e){return e&&e.Math==Math&&e};e.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},6656:function(e,t,n){var i=n(7908),r={}.hasOwnProperty;e.exports=function(e,t){return r.call(i(e),t)}},3501:function(e){e.exports={}},842:function(e,t,n){var i=n(7854);e.exports=function(e,t){var n=i.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},490:function(e,t,n){var i=n(5005);e.exports=i("document","documentElement")},4664:function(e,t,n){var i=n(9781),r=n(7293),o=n(317);e.exports=!i&&!r((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8361:function(e,t,n){var i=n(7293),r=n(4326),o="".split;e.exports=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==r(e)?o.call(e,""):Object(e)}:Object},2788:function(e,t,n){var i=n(5465),r=Function.toString;"function"!=typeof i.inspectSource&&(i.inspectSource=function(e){return r.call(e)}),e.exports=i.inspectSource},9909:function(e,t,n){var i,r,o,a=n(8536),s=n(7854),u=n(111),c=n(8880),l=n(6656),h=n(5465),d=n(6200),p=n(3501),f="Object already initialized",g=s.WeakMap;if(a){var v=h.state||(h.state=new g),m=v.get,b=v.has,y=v.set;i=function(e,t){if(b.call(v,e))throw new TypeError(f);return t.facade=e,y.call(v,e,t),t},r=function(e){return m.call(v,e)||{}},o=function(e){return b.call(v,e)}}else{var w=d("state");p[w]=!0,i=function(e,t){if(l(e,w))throw new TypeError(f);return t.facade=e,c(e,w,t),t},r=function(e){return l(e,w)?e[w]:{}},o=function(e){return l(e,w)}}e.exports={set:i,get:r,has:o,enforce:function(e){return o(e)?r(e):i(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=r(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},7659:function(e,t,n){var i=n(5112),r=n(7497),o=i("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[o]===e)}},3157:function(e,t,n){var i=n(4326);e.exports=Array.isArray||function(e){return"Array"==i(e)}},4705:function(e,t,n){var i=n(7293),r=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==c||n!=u&&("function"==typeof t?i(t):!!t)},a=o.normalize=function(e){return String(e).replace(r,".").toLowerCase()},s=o.data={},u=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},111:function(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},1913:function(e){e.exports=!1},7850:function(e,t,n){var i=n(111),r=n(4326),o=n(5112)("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==r(e))}},408:function(e,t,n){var i=n(9670),r=n(7659),o=n(7466),a=n(9974),s=n(1246),u=n(9212),c=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var l,h,d,p,f,g,v,m=n&&n.that,b=!(!n||!n.AS_ENTRIES),y=!(!n||!n.IS_ITERATOR),w=!(!n||!n.INTERRUPTED),_=a(t,m,1+b+w),x=function(e){return l&&u(l),new c(!0,e)},P=function(e){return b?(i(e),w?_(e[0],e[1],x):_(e[0],e[1])):w?_(e,x):_(e)};if(y)l=e;else{if("function"!=typeof(h=s(e)))throw TypeError("Target is not iterable");if(r(h)){for(d=0,p=o(e.length);p>d;d++)if((f=P(e[d]))&&f instanceof c)return f;return new c(!1)}l=h.call(e)}for(g=l.next;!(v=g.call(l)).done;){try{f=P(v.value)}catch(e){throw u(l),e}if("object"==typeof f&&f&&f instanceof c)return f}return new c(!1)}},9212:function(e,t,n){var i=n(9670);e.exports=function(e){var t=e.return;if(void 0!==t)return i(t.call(e)).value}},3383:function(e,t,n){"use strict";var i,r,o,a=n(7293),s=n(9518),u=n(8880),c=n(6656),l=n(5112),h=n(1913),d=l("iterator"),p=!1;[].keys&&("next"in(o=[].keys())?(r=s(s(o)))!==Object.prototype&&(i=r):p=!0);var f=null==i||a((function(){var e={};return i[d].call(e)!==e}));f&&(i={}),h&&!f||c(i,d)||u(i,d,(function(){return this})),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:p}},7497:function(e){e.exports={}},5948:function(e,t,n){var i,r,o,a,s,u,c,l,h=n(7854),d=n(1236).f,p=n(261).set,f=n(6833),g=n(1036),v=n(5268),m=h.MutationObserver||h.WebKitMutationObserver,b=h.document,y=h.process,w=h.Promise,_=d(h,"queueMicrotask"),x=_&&_.value;x||(i=function(){var e,t;for(v&&(e=y.domain)&&e.exit();r;){t=r.fn,r=r.next;try{t()}catch(e){throw r?a():o=void 0,e}}o=void 0,e&&e.enter()},f||v||g||!m||!b?w&&w.resolve?(c=w.resolve(void 0),l=c.then,a=function(){l.call(c,i)}):a=v?function(){y.nextTick(i)}:function(){p.call(h,i)}:(s=!0,u=b.createTextNode(""),new m(i).observe(u,{characterData:!0}),a=function(){u.data=s=!s})),e.exports=x||function(e){var t={fn:e,next:void 0};o&&(o.next=t),r||(r=t,a()),o=t}},3366:function(e,t,n){var i=n(7854);e.exports=i.Promise},133:function(e,t,n){var i=n(5268),r=n(7392),o=n(7293);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){return!Symbol.sham&&(i?38===r:r>37&&r<41)}))},590:function(e,t,n){var i=n(7293),r=n(5112),o=n(1913),a=r("iterator");e.exports=!i((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,i){t.delete("b"),n+=i+e})),o&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},8536:function(e,t,n){var i=n(7854),r=n(2788),o=i.WeakMap;e.exports="function"==typeof o&&/native code/.test(r(o))},8523:function(e,t,n){"use strict";var i=n(3099),r=function(e){var t,n;this.promise=new e((function(e,i){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=i})),this.resolve=i(t),this.reject=i(n)};e.exports.f=function(e){return new r(e)}},3929:function(e,t,n){var i=n(7850);e.exports=function(e){if(i(e))throw TypeError("The method doesn't accept regular expressions");return e}},1574:function(e,t,n){"use strict";var i=n(9781),r=n(7293),o=n(1956),a=n(5181),s=n(5296),u=n(7908),c=n(8361),l=Object.assign,h=Object.defineProperty;e.exports=!l||r((function(){if(i&&1!==l({b:1},l(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||o(l({},t)).join("")!=r}))?function(e,t){for(var n=u(e),r=arguments.length,l=1,h=a.f,d=s.f;r>l;)for(var p,f=c(arguments[l++]),g=h?o(f).concat(h(f)):o(f),v=g.length,m=0;v>m;)p=g[m++],i&&!d.call(f,p)||(n[p]=f[p]);return n}:l},30:function(e,t,n){var i,r=n(9670),o=n(6048),a=n(748),s=n(3501),u=n(490),c=n(317),l=n(6200)("IE_PROTO"),h=function(){},d=function(e){return"<script>"+e+"<\/script>"},p=function(){try{i=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;p=i?function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t}(i):((t=c("iframe")).style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F);for(var n=a.length;n--;)delete p.prototype[a[n]];return p()};s[l]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(h.prototype=r(e),n=new h,h.prototype=null,n[l]=e):n=p(),void 0===t?n:o(n,t)}},6048:function(e,t,n){var i=n(9781),r=n(3070),o=n(9670),a=n(1956);e.exports=i?Object.defineProperties:function(e,t){o(e);for(var n,i=a(t),s=i.length,u=0;s>u;)r.f(e,n=i[u++],t[n]);return e}},3070:function(e,t,n){var i=n(9781),r=n(4664),o=n(9670),a=n(7593),s=Object.defineProperty;t.f=i?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),r)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},1236:function(e,t,n){var i=n(9781),r=n(5296),o=n(9114),a=n(5656),s=n(7593),u=n(6656),c=n(4664),l=Object.getOwnPropertyDescriptor;t.f=i?l:function(e,t){if(e=a(e),t=s(t,!0),c)try{return l(e,t)}catch(e){}if(u(e,t))return o(!r.f.call(e,t),e[t])}},1156:function(e,t,n){var i=n(5656),r=n(8006).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return r(e)}catch(e){return a.slice()}}(e):r(i(e))}},8006:function(e,t,n){var i=n(6324),r=n(748).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},5181:function(e,t){t.f=Object.getOwnPropertySymbols},9518:function(e,t,n){var i=n(6656),r=n(7908),o=n(6200),a=n(8544),s=o("IE_PROTO"),u=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=r(e),i(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},6324:function(e,t,n){var i=n(6656),r=n(5656),o=n(1318).indexOf,a=n(3501);e.exports=function(e,t){var n,s=r(e),u=0,c=[];for(n in s)!i(a,n)&&i(s,n)&&c.push(n);for(;t.length>u;)i(s,n=t[u++])&&(~o(c,n)||c.push(n));return c}},1956:function(e,t,n){var i=n(6324),r=n(748);e.exports=Object.keys||function(e){return i(e,r)}},5296:function(e,t){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,r=i&&!n.call({1:2},1);t.f=r?function(e){var t=i(this,e);return!!t&&t.enumerable}:n},7674:function(e,t,n){var i=n(9670),r=n(6077);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,o){return i(n),r(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},288:function(e,t,n){"use strict";var i=n(1694),r=n(648);e.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},3887:function(e,t,n){var i=n(5005),r=n(8006),o=n(5181),a=n(9670);e.exports=i("Reflect","ownKeys")||function(e){var t=r.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},857:function(e,t,n){var i=n(7854);e.exports=i},2534:function(e){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},9478:function(e,t,n){var i=n(9670),r=n(111),o=n(8523);e.exports=function(e,t){if(i(e),r(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},2248:function(e,t,n){var i=n(1320);e.exports=function(e,t,n){for(var r in t)i(e,r,t[r],n);return e}},1320:function(e,t,n){var i=n(7854),r=n(8880),o=n(6656),a=n(3505),s=n(2788),u=n(9909),c=u.get,l=u.enforce,h=String(String).split("String");(e.exports=function(e,t,n,s){var u,c=!!s&&!!s.unsafe,d=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||r(n,"name",t),(u=l(n)).source||(u.source=h.join("string"==typeof t?t:""))),e!==i?(c?!p&&e[t]&&(d=!0):delete e[t],d?e[t]=n:r(e,t,n)):d?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},7651:function(e,t,n){var i=n(4326),r=n(2261);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var o=n.call(e,t);if("object"!=typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==i(e))throw TypeError("RegExp#exec called on incompatible receiver");return r.call(e,t)}},2261:function(e,t,n){"use strict";var i,r,o=n(7066),a=n(2999),s=n(2309),u=RegExp.prototype.exec,c=s("native-string-replace",String.prototype.replace),l=u,h=(i=/a/,r=/b*/g,u.call(i,"a"),u.call(r,"a"),0!==i.lastIndex||0!==r.lastIndex),d=a.UNSUPPORTED_Y||a.BROKEN_CARET,p=void 0!==/()??/.exec("")[1];(h||p||d)&&(l=function(e){var t,n,i,r,a=this,s=d&&a.sticky,l=o.call(a),f=a.source,g=0,v=e;return s&&(-1===(l=l.replace("y","")).indexOf("g")&&(l+="g"),v=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(f="(?: "+f+")",v=" "+v,g++),n=new RegExp("^(?:"+f+")",l)),p&&(n=new RegExp("^"+f+"$(?!\\s)",l)),h&&(t=a.lastIndex),i=u.call(s?n:a,v),s?i?(i.input=i.input.slice(g),i[0]=i[0].slice(g),i.index=a.lastIndex,a.lastIndex+=i[0].length):a.lastIndex=0:h&&i&&(a.lastIndex=a.global?i.index+i[0].length:t),p&&i&&i.length>1&&c.call(i[0],n,(function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(i[r]=void 0)})),i}),e.exports=l},7066:function(e,t,n){"use strict";var i=n(9670);e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},2999:function(e,t,n){"use strict";var i=n(7293);function r(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=i((function(){var e=r("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=i((function(){var e=r("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},4488:function(e){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},1150:function(e){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},3505:function(e,t,n){var i=n(7854),r=n(8880);e.exports=function(e,t){try{r(i,e,t)}catch(n){i[e]=t}return t}},6340:function(e,t,n){"use strict";var i=n(5005),r=n(3070),o=n(5112),a=n(9781),s=o("species");e.exports=function(e){var t=i(e),n=r.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},8003:function(e,t,n){var i=n(3070).f,r=n(6656),o=n(5112)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,o)&&i(e,o,{configurable:!0,value:t})}},6200:function(e,t,n){var i=n(2309),r=n(9711),o=i("keys");e.exports=function(e){return o[e]||(o[e]=r(e))}},5465:function(e,t,n){var i=n(7854),r=n(3505),o="__core-js_shared__",a=i[o]||r(o,{});e.exports=a},2309:function(e,t,n){var i=n(1913),r=n(5465);(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.11.0",mode:i?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},6707:function(e,t,n){var i=n(9670),r=n(3099),o=n(5112)("species");e.exports=function(e,t){var n,a=i(e).constructor;return void 0===a||null==(n=i(a)[o])?t:r(n)}},8710:function(e,t,n){var i=n(9958),r=n(4488),o=function(e){return function(t,n){var o,a,s=String(r(t)),u=i(n),c=s.length;return u<0||u>=c?e?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}};e.exports={codeAt:o(!1),charAt:o(!0)}},3197:function(e){"use strict";var t=2147483647,n=/[^\0-\u007E]/,i=/[.\u3002\uFF0E\uFF61]/g,r="Overflow: input needs wider integers to process",o=Math.floor,a=String.fromCharCode,s=function(e){return e+22+75*(e<26)},u=function(e,t,n){var i=0;for(e=n?o(e/700):e>>1,e+=o(e/t);e>455;i+=36)e=o(e/35);return o(i+36*e/(e+38))},c=function(e){var n,i,c=[],l=(e=function(e){for(var t=[],n=0,i=e.length;n<i;){var r=e.charCodeAt(n++);if(r>=55296&&r<=56319&&n<i){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&r)<<10)+(1023&o)+65536):(t.push(r),n--)}else t.push(r)}return t}(e)).length,h=128,d=0,p=72;for(n=0;n<e.length;n++)(i=e[n])<128&&c.push(a(i));var f=c.length,g=f;for(f&&c.push("-");g<l;){var v=t;for(n=0;n<e.length;n++)(i=e[n])>=h&&i<v&&(v=i);var m=g+1;if(v-h>o((t-d)/m))throw RangeError(r);for(d+=(v-h)*m,h=v,n=0;n<e.length;n++){if((i=e[n])<h&&++d>t)throw RangeError(r);if(i==h){for(var b=d,y=36;;y+=36){var w=y<=p?1:y>=p+26?26:y-p;if(b<w)break;var _=b-w,x=36-w;c.push(a(s(w+_%x))),b=o(_/x)}c.push(a(s(b))),p=u(d,m,g==f),d=0,++g}}++d,++h}return c.join("")};e.exports=function(e){var t,r,o=[],a=e.toLowerCase().replace(i,".").split(".");for(t=0;t<a.length;t++)r=a[t],o.push(n.test(r)?"xn--"+c(r):r);return o.join(".")}},8415:function(e,t,n){"use strict";var i=n(9958),r=n(4488);e.exports=function(e){var t=String(r(this)),n="",o=i(e);if(o<0||o==1/0)throw RangeError("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(n+=t);return n}},261:function(e,t,n){var i,r,o,a=n(7854),s=n(7293),u=n(9974),c=n(490),l=n(317),h=n(6833),d=n(5268),p=a.location,f=a.setImmediate,g=a.clearImmediate,v=a.process,m=a.MessageChannel,b=a.Dispatch,y=0,w={},_=function(e){if(w.hasOwnProperty(e)){var t=w[e];delete w[e],t()}},x=function(e){return function(){_(e)}},P=function(e){_(e.data)},k=function(e){a.postMessage(e+"",p.protocol+"//"+p.host)};f&&g||(f=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return w[++y]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},i(y),y},g=function(e){delete w[e]},d?i=function(e){v.nextTick(x(e))}:b&&b.now?i=function(e){b.now(x(e))}:m&&!h?(o=(r=new m).port2,r.port1.onmessage=P,i=u(o.postMessage,o,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts&&p&&"file:"!==p.protocol&&!s(k)?(i=k,a.addEventListener("message",P,!1)):i="onreadystatechange"in l("script")?function(e){c.appendChild(l("script")).onreadystatechange=function(){c.removeChild(this),_(e)}}:function(e){setTimeout(x(e),0)}),e.exports={set:f,clear:g}},863:function(e,t,n){var i=n(4326);e.exports=function(e){if("number"!=typeof e&&"Number"!=i(e))throw TypeError("Incorrect invocation");return+e}},1400:function(e,t,n){var i=n(9958),r=Math.max,o=Math.min;e.exports=function(e,t){var n=i(e);return n<0?r(n+t,0):o(n,t)}},5656:function(e,t,n){var i=n(8361),r=n(4488);e.exports=function(e){return i(r(e))}},9958:function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},7466:function(e,t,n){var i=n(9958),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},7908:function(e,t,n){var i=n(4488);e.exports=function(e){return Object(i(e))}},7593:function(e,t,n){var i=n(111);e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},1694:function(e,t,n){var i={};i[n(5112)("toStringTag")]="z",e.exports="[object z]"===String(i)},9711:function(e){var t=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+n).toString(36)}},3307:function(e,t,n){var i=n(133);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},6061:function(e,t,n){var i=n(5112);t.f=i},5112:function(e,t,n){var i=n(7854),r=n(2309),o=n(6656),a=n(9711),s=n(133),u=n(3307),c=r("wks"),l=i.Symbol,h=u?l:l&&l.withoutSetter||a;e.exports=function(e){return o(c,e)&&(s||"string"==typeof c[e])||(s&&o(l,e)?c[e]=l[e]:c[e]=h("Symbol."+e)),c[e]}},2222:function(e,t,n){"use strict";var i=n(2109),r=n(7293),o=n(3157),a=n(111),s=n(7908),u=n(7466),c=n(6135),l=n(5417),h=n(1194),d=n(5112),p=n(7392),f=d("isConcatSpreadable"),g=9007199254740991,v="Maximum allowed index exceeded",m=p>=51||!r((function(){var e=[];return e[f]=!1,e.concat()[0]!==e})),b=h("concat"),y=function(e){if(!a(e))return!1;var t=e[f];return void 0!==t?!!t:o(e)};i({target:"Array",proto:!0,forced:!m||!b},{concat:function(e){var t,n,i,r,o,a=s(this),h=l(a,0),d=0;for(t=-1,i=arguments.length;t<i;t++)if(y(o=-1===t?a:arguments[t])){if(d+(r=u(o.length))>g)throw TypeError(v);for(n=0;n<r;n++,d++)n in o&&c(h,d,o[n])}else{if(d>=g)throw TypeError(v);c(h,d++,o)}return h.length=d,h}})},7327:function(e,t,n){"use strict";var i=n(2109),r=n(2092).filter;i({target:"Array",proto:!0,forced:!n(1194)("filter")},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},4553:function(e,t,n){"use strict";var i=n(2109),r=n(2092).findIndex,o=n(1223),a="findIndex",s=!0;a in[]&&Array(1).findIndex((function(){s=!1})),i({target:"Array",proto:!0,forced:s},{findIndex:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),o(a)},9826:function(e,t,n){"use strict";var i=n(2109),r=n(2092).find,o=n(1223),a="find",s=!0;a in[]&&Array(1).find((function(){s=!1})),i({target:"Array",proto:!0,forced:s},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),o(a)},6535:function(e,t,n){"use strict";var i=n(2109),r=n(6790),o=n(7908),a=n(7466),s=n(3099),u=n(5417);i({target:"Array",proto:!0},{flatMap:function(e){var t,n=o(this),i=a(n.length);return s(e),(t=u(n,0)).length=r(t,n,n,i,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},1038:function(e,t,n){var i=n(2109),r=n(8457);i({target:"Array",stat:!0,forced:!n(7072)((function(e){Array.from(e)}))},{from:r})},6699:function(e,t,n){"use strict";var i=n(2109),r=n(1318).includes,o=n(1223);i({target:"Array",proto:!0},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},6992:function(e,t,n){"use strict";var i=n(5656),r=n(1223),o=n(7497),a=n(9909),s=n(654),u="Array Iterator",c=a.set,l=a.getterFor(u);e.exports=s(Array,"Array",(function(e,t){c(this,{type:u,target:i(e),index:0,kind:t})}),(function(){var e=l(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},9600:function(e,t,n){"use strict";var i=n(2109),r=n(8361),o=n(5656),a=n(9341),s=[].join,u=r!=Object,c=a("join",",");i({target:"Array",proto:!0,forced:u||!c},{join:function(e){return s.call(o(this),void 0===e?",":e)}})},1249:function(e,t,n){"use strict";var i=n(2109),r=n(2092).map;i({target:"Array",proto:!0,forced:!n(1194)("map")},{map:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},5827:function(e,t,n){"use strict";var i=n(2109),r=n(3671).left,o=n(9341),a=n(7392),s=n(5268);i({target:"Array",proto:!0,forced:!o("reduce")||!s&&a>79&&a<83},{reduce:function(e){return r(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},7042:function(e,t,n){"use strict";var i=n(2109),r=n(111),o=n(3157),a=n(1400),s=n(7466),u=n(5656),c=n(6135),l=n(5112),h=n(1194)("slice"),d=l("species"),p=[].slice,f=Math.max;i({target:"Array",proto:!0,forced:!h},{slice:function(e,t){var n,i,l,h=u(this),g=s(h.length),v=a(e,g),m=a(void 0===t?g:t,g);if(o(h)&&("function"!=typeof(n=h.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[d])&&(n=void 0):n=void 0,n===Array||void 0===n))return p.call(h,v,m);for(i=new(void 0===n?Array:n)(f(m-v,0)),l=0;v<m;v++,l++)v in h&&c(i,l,h[v]);return i.length=l,i}})},9244:function(e,t,n){n(1223)("flatMap")},8309:function(e,t,n){var i=n(9781),r=n(3070).f,o=Function.prototype,a=o.toString,s=/^\s*function ([^ (]*)/,u="name";i&&!(u in o)&&r(o,u,{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(e){return""}}})},4914:function(e,t,n){var i=n(2109),r=Math.log,o=Math.LN2;i({target:"Math",stat:!0},{log2:function(e){return r(e)/o}})},6977:function(e,t,n){"use strict";var i=n(2109),r=n(9958),o=n(863),a=n(8415),s=n(7293),u=1..toFixed,c=Math.floor,l=function(e,t,n){return 0===t?n:t%2==1?l(e,t-1,n*e):l(e*e,t/2,n)},h=function(e,t,n){for(var i=-1,r=n;++i<6;)r+=t*e[i],e[i]=r%1e7,r=c(r/1e7)},d=function(e,t){for(var n=6,i=0;--n>=0;)i+=e[n],e[n]=c(i/t),i=i%t*1e7},p=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var i=String(e[t]);n=""===n?i:n+a.call("0",7-i.length)+i}return n};i({target:"Number",proto:!0,forced:u&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!s((function(){u.call({})}))},{toFixed:function(e){var t,n,i,s,u=o(this),c=r(e),f=[0,0,0,0,0,0],g="",v="0";if(c<0||c>20)throw RangeError("Incorrect fraction digits");if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(g="-",u=-u),u>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(u*l(2,69,1))-69)<0?u*l(2,-t,1):u/l(2,t,1),n*=4503599627370496,(t=52-t)>0){for(h(f,0,n),i=c;i>=7;)h(f,1e7,0),i-=7;for(h(f,l(10,i,1),0),i=t-1;i>=23;)d(f,1<<23),i-=23;d(f,1<<i),h(f,1,1),d(f,2),v=p(f)}else h(f,0,n),h(f,1<<-t,0),v=p(f)+a.call("0",c);return c>0?g+((s=v.length)<=c?"0."+a.call("0",c-s)+v:v.slice(0,s-c)+"."+v.slice(s-c)):g+v}})},5003:function(e,t,n){var i=n(2109),r=n(7293),o=n(5656),a=n(1236).f,s=n(9781),u=r((function(){a(1)}));i({target:"Object",stat:!0,forced:!s||u,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(o(e),t)}})},9337:function(e,t,n){var i=n(2109),r=n(9781),o=n(3887),a=n(5656),s=n(1236),u=n(6135);i({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(e){for(var t,n,i=a(e),r=s.f,c=o(i),l={},h=0;c.length>h;)void 0!==(n=r(i,t=c[h++]))&&u(l,t,n);return l}})},7941:function(e,t,n){var i=n(2109),r=n(7908),o=n(1956);i({target:"Object",stat:!0,forced:n(7293)((function(){o(1)}))},{keys:function(e){return o(r(e))}})},1539:function(e,t,n){var i=n(1694),r=n(1320),o=n(288);i||r(Object.prototype,"toString",o,{unsafe:!0})},8674:function(e,t,n){"use strict";var i,r,o,a,s=n(2109),u=n(1913),c=n(7854),l=n(5005),h=n(3366),d=n(1320),p=n(2248),f=n(8003),g=n(6340),v=n(111),m=n(3099),b=n(5787),y=n(2788),w=n(408),_=n(7072),x=n(6707),P=n(261).set,k=n(5948),C=n(9478),S=n(842),T=n(8523),I=n(2534),R=n(9909),E=n(4705),M=n(5112),L=n(5268),B=n(7392),N=M("species"),O="Promise",$=R.get,D=R.set,F=R.getterFor(O),A=h,U=c.TypeError,j=c.document,W=c.process,H=l("fetch"),z=T.f,V=z,q=!!(j&&j.createEvent&&c.dispatchEvent),X="function"==typeof PromiseRejectionEvent,G="unhandledrejection",Y=E(O,(function(){if(y(A)===String(A)){if(66===B)return!0;if(!L&&!X)return!0}if(u&&!A.prototype.finally)return!0;if(B>=51&&/native code/.test(A))return!1;var e=A.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[N]=t,!(e.then((function(){}))instanceof t)})),K=Y||!_((function(e){A.all(e).catch((function(){}))})),Z=function(e){var t;return!(!v(e)||"function"!=typeof(t=e.then))&&t},Q=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;k((function(){for(var i=e.value,r=1==e.state,o=0;n.length>o;){var a,s,u,c=n[o++],l=r?c.ok:c.fail,h=c.resolve,d=c.reject,p=c.domain;try{l?(r||(2===e.rejection&&ne(e),e.rejection=1),!0===l?a=i:(p&&p.enter(),a=l(i),p&&(p.exit(),u=!0)),a===c.promise?d(U("Promise-chain cycle")):(s=Z(a))?s.call(a,h,d):h(a)):d(i)}catch(e){p&&!u&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&ee(e)}))}},J=function(e,t,n){var i,r;q?((i=j.createEvent("Event")).promise=t,i.reason=n,i.initEvent(e,!1,!0),c.dispatchEvent(i)):i={promise:t,reason:n},!X&&(r=c["on"+e])?r(i):e===G&&S("Unhandled promise rejection",n)},ee=function(e){P.call(c,(function(){var t,n=e.facade,i=e.value;if(te(e)&&(t=I((function(){L?W.emit("unhandledRejection",i,n):J(G,n,i)})),e.rejection=L||te(e)?2:1,t.error))throw t.value}))},te=function(e){return 1!==e.rejection&&!e.parent},ne=function(e){P.call(c,(function(){var t=e.facade;L?W.emit("rejectionHandled",t):J("rejectionhandled",t,e.value)}))},ie=function(e,t,n){return function(i){e(t,i,n)}},re=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Q(e,!0))},oe=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw U("Promise can't be resolved itself");var i=Z(t);i?k((function(){var n={done:!1};try{i.call(t,ie(oe,n,e),ie(re,n,e))}catch(t){re(n,t,e)}})):(e.value=t,e.state=1,Q(e,!1))}catch(t){re({done:!1},t,e)}}};Y&&(A=function(e){b(this,A,O),m(e),i.call(this);var t=$(this);try{e(ie(oe,t),ie(re,t))}catch(e){re(t,e)}},(i=function(e){D(this,{type:O,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=p(A.prototype,{then:function(e,t){var n=F(this),i=z(x(this,A));return i.ok="function"!=typeof e||e,i.fail="function"==typeof t&&t,i.domain=L?W.domain:void 0,n.parent=!0,n.reactions.push(i),0!=n.state&&Q(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),r=function(){var e=new i,t=$(e);this.promise=e,this.resolve=ie(oe,t),this.reject=ie(re,t)},T.f=z=function(e){return e===A||e===o?new r(e):V(e)},u||"function"!=typeof h||(a=h.prototype.then,d(h.prototype,"then",(function(e,t){var n=this;return new A((function(e,t){a.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof H&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return C(A,H.apply(c,arguments))}}))),s({global:!0,wrap:!0,forced:Y},{Promise:A}),f(A,O,!1,!0),g(O),o=l(O),s({target:O,stat:!0,forced:Y},{reject:function(e){var t=z(this);return t.reject.call(void 0,e),t.promise}}),s({target:O,stat:!0,forced:u||Y},{resolve:function(e){return C(u&&this===o?A:this,e)}}),s({target:O,stat:!0,forced:K},{all:function(e){var t=this,n=z(t),i=n.resolve,r=n.reject,o=I((function(){var n=m(t.resolve),o=[],a=0,s=1;w(e,(function(e){var u=a++,c=!1;o.push(void 0),s++,n.call(t,e).then((function(e){c||(c=!0,o[u]=e,--s||i(o))}),r)})),--s||i(o)}));return o.error&&r(o.value),n.promise},race:function(e){var t=this,n=z(t),i=n.reject,r=I((function(){var r=m(t.resolve);w(e,(function(e){r.call(t,e).then(n.resolve,i)}))}));return r.error&&i(r.value),n.promise}})},4916:function(e,t,n){"use strict";var i=n(2109),r=n(2261);i({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},9714:function(e,t,n){"use strict";var i=n(1320),r=n(9670),o=n(7293),a=n(7066),s="toString",u=RegExp.prototype,c=u.toString,l=o((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),h=c.name!=s;(l||h)&&i(RegExp.prototype,s,(function(){var e=r(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in u)?a.call(e):n)}),{unsafe:!0})},2023:function(e,t,n){"use strict";var i=n(2109),r=n(3929),o=n(4488);i({target:"String",proto:!0,forced:!n(4964)("includes")},{includes:function(e){return!!~String(o(this)).indexOf(r(e),arguments.length>1?arguments[1]:void 0)}})},8783:function(e,t,n){"use strict";var i=n(8710).charAt,r=n(9909),o=n(654),a="String Iterator",s=r.set,u=r.getterFor(a);o(String,"String",(function(e){s(this,{type:a,string:String(e),index:0})}),(function(){var e,t=u(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=i(n,r),t.index+=e.length,{value:e,done:!1})}))},5306:function(e,t,n){"use strict";var i=n(7007),r=n(9670),o=n(7466),a=n(9958),s=n(4488),u=n(1530),c=n(647),l=n(7651),h=Math.max,d=Math.min;i("replace",2,(function(e,t,n,i){var p=i.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,f=i.REPLACE_KEEPS_$0,g=p?"$":"$0";return[function(n,i){var r=s(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r,i):t.call(String(r),n,i)},function(e,i){if(!p&&f||"string"==typeof i&&-1===i.indexOf(g)){var s=n(t,e,this,i);if(s.done)return s.value}var v=r(e),m=String(this),b="function"==typeof i;b||(i=String(i));var y=v.global;if(y){var w=v.unicode;v.lastIndex=0}for(var _=[];;){var x=l(v,m);if(null===x)break;if(_.push(x),!y)break;""===String(x[0])&&(v.lastIndex=u(m,o(v.lastIndex),w))}for(var P,k="",C=0,S=0;S<_.length;S++){x=_[S];for(var T=String(x[0]),I=h(d(a(x.index),m.length),0),R=[],E=1;E<x.length;E++)R.push(void 0===(P=x[E])?P:String(P));var M=x.groups;if(b){var L=[T].concat(R,I,m);void 0!==M&&L.push(M);var B=String(i.apply(void 0,L))}else B=c(T,m,I,R,M,i);I>=C&&(k+=m.slice(C,I)+B,C=I+T.length)}return k+m.slice(C)}]}))},4765:function(e,t,n){"use strict";var i=n(7007),r=n(9670),o=n(4488),a=n(1150),s=n(7651);i("search",1,(function(e,t,n){return[function(t){var n=o(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,n):new RegExp(t)[e](String(n))},function(e){var i=n(t,e,this);if(i.done)return i.value;var o=r(e),u=String(this),c=o.lastIndex;a(c,0)||(o.lastIndex=0);var l=s(o,u);return a(o.lastIndex,c)||(o.lastIndex=c),null===l?-1:l.index}]}))},3123:function(e,t,n){"use strict";var i=n(7007),r=n(7850),o=n(9670),a=n(4488),s=n(6707),u=n(1530),c=n(7466),l=n(7651),h=n(2261),d=n(2999).UNSUPPORTED_Y,p=[].push,f=Math.min,g=4294967295;i("split",2,(function(e,t,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var i=String(a(this)),o=void 0===n?g:n>>>0;if(0===o)return[];if(void 0===e)return[i];if(!r(e))return t.call(i,e,o);for(var s,u,c,l=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,v=new RegExp(e.source,d+"g");(s=h.call(v,i))&&!((u=v.lastIndex)>f&&(l.push(i.slice(f,s.index)),s.length>1&&s.index<i.length&&p.apply(l,s.slice(1)),c=s[0].length,f=u,l.length>=o));)v.lastIndex===s.index&&v.lastIndex++;return f===i.length?!c&&v.test("")||l.push(""):l.push(i.slice(f)),l.length>o?l.slice(0,o):l}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var r=a(this),o=null==t?void 0:t[e];return void 0!==o?o.call(t,r,n):i.call(String(r),t,n)},function(e,r){var a=n(i,e,this,r,i!==t);if(a.done)return a.value;var h=o(e),p=String(this),v=s(h,RegExp),m=h.unicode,b=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(d?"g":"y"),y=new v(d?"^(?:"+h.source+")":h,b),w=void 0===r?g:r>>>0;if(0===w)return[];if(0===p.length)return null===l(y,p)?[p]:[];for(var _=0,x=0,P=[];x<p.length;){y.lastIndex=d?0:x;var k,C=l(y,d?p.slice(x):p);if(null===C||(k=f(c(y.lastIndex+(d?x:0)),p.length))===_)x=u(p,x,m);else{if(P.push(p.slice(_,x)),P.length===w)return P;for(var S=1;S<=C.length-1;S++)if(P.push(C[S]),P.length===w)return P;x=_=k}}return P.push(p.slice(_)),P}]}),d)},1817:function(e,t,n){"use strict";var i=n(2109),r=n(9781),o=n(7854),a=n(6656),s=n(111),u=n(3070).f,c=n(9920),l=o.Symbol;if(r&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var h={},d=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof d?new l(e):void 0===e?l():l(e);return""===e&&(h[t]=!0),t};c(d,l);var p=d.prototype=l.prototype;p.constructor=d;var f=p.toString,g="Symbol(test)"==String(l("test")),v=/^Symbol\((.*)\)[^)]+$/;u(p,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=f.call(e);if(a(h,e))return"";var n=g?t.slice(7,-1):t.replace(v,"$1");return""===n?void 0:n}}),i({global:!0,forced:!0},{Symbol:d})}},2165:function(e,t,n){n(7235)("iterator")},2526:function(e,t,n){"use strict";var i=n(2109),r=n(7854),o=n(5005),a=n(1913),s=n(9781),u=n(133),c=n(3307),l=n(7293),h=n(6656),d=n(3157),p=n(111),f=n(9670),g=n(7908),v=n(5656),m=n(7593),b=n(9114),y=n(30),w=n(1956),_=n(8006),x=n(1156),P=n(5181),k=n(1236),C=n(3070),S=n(5296),T=n(8880),I=n(1320),R=n(2309),E=n(6200),M=n(3501),L=n(9711),B=n(5112),N=n(6061),O=n(7235),$=n(8003),D=n(9909),F=n(2092).forEach,A=E("hidden"),U="Symbol",j=B("toPrimitive"),W=D.set,H=D.getterFor(U),z=Object.prototype,V=r.Symbol,q=o("JSON","stringify"),X=k.f,G=C.f,Y=x.f,K=S.f,Z=R("symbols"),Q=R("op-symbols"),J=R("string-to-symbol-registry"),ee=R("symbol-to-string-registry"),te=R("wks"),ne=r.QObject,ie=!ne||!ne.prototype||!ne.prototype.findChild,re=s&&l((function(){return 7!=y(G({},"a",{get:function(){return G(this,"a",{value:7}).a}})).a}))?function(e,t,n){var i=X(z,t);i&&delete z[t],G(e,t,n),i&&e!==z&&G(z,t,i)}:G,oe=function(e,t){var n=Z[e]=y(V.prototype);return W(n,{type:U,tag:e,description:t}),s||(n.description=t),n},ae=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof V},se=function(e,t,n){e===z&&se(Q,t,n),f(e);var i=m(t,!0);return f(n),h(Z,i)?(n.enumerable?(h(e,A)&&e[A][i]&&(e[A][i]=!1),n=y(n,{enumerable:b(0,!1)})):(h(e,A)||G(e,A,b(1,{})),e[A][i]=!0),re(e,i,n)):G(e,i,n)},ue=function(e,t){f(e);var n=v(t),i=w(n).concat(de(n));return F(i,(function(t){s&&!ce.call(n,t)||se(e,t,n[t])})),e},ce=function(e){var t=m(e,!0),n=K.call(this,t);return!(this===z&&h(Z,t)&&!h(Q,t))&&(!(n||!h(this,t)||!h(Z,t)||h(this,A)&&this[A][t])||n)},le=function(e,t){var n=v(e),i=m(t,!0);if(n!==z||!h(Z,i)||h(Q,i)){var r=X(n,i);return!r||!h(Z,i)||h(n,A)&&n[A][i]||(r.enumerable=!0),r}},he=function(e){var t=Y(v(e)),n=[];return F(t,(function(e){h(Z,e)||h(M,e)||n.push(e)})),n},de=function(e){var t=e===z,n=Y(t?Q:v(e)),i=[];return F(n,(function(e){!h(Z,e)||t&&!h(z,e)||i.push(Z[e])})),i};u||(I((V=function(){if(this instanceof V)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=L(e),n=function(e){this===z&&n.call(Q,e),h(this,A)&&h(this[A],t)&&(this[A][t]=!1),re(this,t,b(1,e))};return s&&ie&&re(z,t,{configurable:!0,set:n}),oe(t,e)}).prototype,"toString",(function(){return H(this).tag})),I(V,"withoutSetter",(function(e){return oe(L(e),e)})),S.f=ce,C.f=se,k.f=le,_.f=x.f=he,P.f=de,N.f=function(e){return oe(B(e),e)},s&&(G(V.prototype,"description",{configurable:!0,get:function(){return H(this).description}}),a||I(z,"propertyIsEnumerable",ce,{unsafe:!0}))),i({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:V}),F(w(te),(function(e){O(e)})),i({target:U,stat:!0,forced:!u},{for:function(e){var t=String(e);if(h(J,t))return J[t];var n=V(t);return J[t]=n,ee[n]=t,n},keyFor:function(e){if(!ae(e))throw TypeError(e+" is not a symbol");if(h(ee,e))return ee[e]},useSetter:function(){ie=!0},useSimple:function(){ie=!1}}),i({target:"Object",stat:!0,forced:!u,sham:!s},{create:function(e,t){return void 0===t?y(e):ue(y(e),t)},defineProperty:se,defineProperties:ue,getOwnPropertyDescriptor:le}),i({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:he,getOwnPropertySymbols:de}),i({target:"Object",stat:!0,forced:l((function(){P.f(1)}))},{getOwnPropertySymbols:function(e){return P.f(g(e))}}),q&&i({target:"JSON",stat:!0,forced:!u||l((function(){var e=V();return"[null]"!=q([e])||"{}"!=q({a:e})||"{}"!=q(Object(e))}))},{stringify:function(e,t,n){for(var i,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(i=t,(p(t)||void 0!==e)&&!ae(e))return d(t)||(t=function(e,t){if("function"==typeof i&&(t=i.call(this,e,t)),!ae(t))return t}),r[1]=t,q.apply(null,r)}}),V.prototype[j]||T(V.prototype,j,V.prototype.valueOf),$(V,U),M[A]=!0},4747:function(e,t,n){var i=n(7854),r=n(8324),o=n(8533),a=n(8880);for(var s in r){var u=i[s],c=u&&u.prototype;if(c&&c.forEach!==o)try{a(c,"forEach",o)}catch(e){c.forEach=o}}},3948:function(e,t,n){var i=n(7854),r=n(8324),o=n(6992),a=n(8880),s=n(5112),u=s("iterator"),c=s("toStringTag"),l=o.values;for(var h in r){var d=i[h],p=d&&d.prototype;if(p){if(p[u]!==l)try{a(p,u,l)}catch(e){p[u]=l}if(p[c]||a(p,c,h),r[h])for(var f in o)if(p[f]!==o[f])try{a(p,f,o[f])}catch(e){p[f]=o[f]}}}},1637:function(e,t,n){"use strict";n(6992);var i=n(2109),r=n(5005),o=n(590),a=n(1320),s=n(2248),u=n(8003),c=n(4994),l=n(9909),h=n(5787),d=n(6656),p=n(9974),f=n(648),g=n(9670),v=n(111),m=n(30),b=n(9114),y=n(8554),w=n(1246),_=n(5112),x=r("fetch"),P=r("Headers"),k=_("iterator"),C="URLSearchParams",S="URLSearchParamsIterator",T=l.set,I=l.getterFor(C),R=l.getterFor(S),E=/\+/g,M=Array(4),L=function(e){return M[e-1]||(M[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},B=function(e){try{return decodeURIComponent(e)}catch(t){return e}},N=function(e){var t=e.replace(E," "),n=4;try{return decodeURIComponent(t)}catch(e){for(;n;)t=t.replace(L(n--),B);return t}},O=/[!'()~]|%20/g,$={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},D=function(e){return $[e]},F=function(e){return encodeURIComponent(e).replace(O,D)},A=function(e,t){if(t)for(var n,i,r=t.split("&"),o=0;o<r.length;)(n=r[o++]).length&&(i=n.split("="),e.push({key:N(i.shift()),value:N(i.join("="))}))},U=function(e){this.entries.length=0,A(this.entries,e)},j=function(e,t){if(e<t)throw TypeError("Not enough arguments")},W=c((function(e,t){T(this,{type:S,iterator:y(I(e).entries),kind:t})}),"Iterator",(function(){var e=R(this),t=e.kind,n=e.iterator.next(),i=n.value;return n.done||(n.value="keys"===t?i.key:"values"===t?i.value:[i.key,i.value]),n})),H=function(){h(this,H,C);var e,t,n,i,r,o,a,s,u,c=arguments.length>0?arguments[0]:void 0,l=this,p=[];if(T(l,{type:C,entries:p,updateURL:function(){},updateSearchParams:U}),void 0!==c)if(v(c))if("function"==typeof(e=w(c)))for(n=(t=e.call(c)).next;!(i=n.call(t)).done;){if((a=(o=(r=y(g(i.value))).next).call(r)).done||(s=o.call(r)).done||!o.call(r).done)throw TypeError("Expected sequence with length 2");p.push({key:a.value+"",value:s.value+""})}else for(u in c)d(c,u)&&p.push({key:u,value:c[u]+""});else A(p,"string"==typeof c?"?"===c.charAt(0)?c.slice(1):c:c+"")},z=H.prototype;s(z,{append:function(e,t){j(arguments.length,2);var n=I(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){j(arguments.length,1);for(var t=I(this),n=t.entries,i=e+"",r=0;r<n.length;)n[r].key===i?n.splice(r,1):r++;t.updateURL()},get:function(e){j(arguments.length,1);for(var t=I(this).entries,n=e+"",i=0;i<t.length;i++)if(t[i].key===n)return t[i].value;return null},getAll:function(e){j(arguments.length,1);for(var t=I(this).entries,n=e+"",i=[],r=0;r<t.length;r++)t[r].key===n&&i.push(t[r].value);return i},has:function(e){j(arguments.length,1);for(var t=I(this).entries,n=e+"",i=0;i<t.length;)if(t[i++].key===n)return!0;return!1},set:function(e,t){j(arguments.length,1);for(var n,i=I(this),r=i.entries,o=!1,a=e+"",s=t+"",u=0;u<r.length;u++)(n=r[u]).key===a&&(o?r.splice(u--,1):(o=!0,n.value=s));o||r.push({key:a,value:s}),i.updateURL()},sort:function(){var e,t,n,i=I(this),r=i.entries,o=r.slice();for(r.length=0,n=0;n<o.length;n++){for(e=o[n],t=0;t<n;t++)if(r[t].key>e.key){r.splice(t,0,e);break}t===n&&r.push(e)}i.updateURL()},forEach:function(e){for(var t,n=I(this).entries,i=p(e,arguments.length>1?arguments[1]:void 0,3),r=0;r<n.length;)i((t=n[r++]).value,t.key,this)},keys:function(){return new W(this,"keys")},values:function(){return new W(this,"values")},entries:function(){return new W(this,"entries")}},{enumerable:!0}),a(z,k,z.entries),a(z,"toString",(function(){for(var e,t=I(this).entries,n=[],i=0;i<t.length;)e=t[i++],n.push(F(e.key)+"="+F(e.value));return n.join("&")}),{enumerable:!0}),u(H,C),i({global:!0,forced:!o},{URLSearchParams:H}),o||"function"!=typeof x||"function"!=typeof P||i({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,n,i,r=[e];return arguments.length>1&&(v(t=arguments[1])&&(n=t.body,f(n)===C&&((i=t.headers?new P(t.headers):new P).has("content-type")||i.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=m(t,{body:b(0,String(n)),headers:b(0,i)}))),r.push(t)),x.apply(this,r)}}),e.exports={URLSearchParams:H,getState:I}},285:function(e,t,n){"use strict";n(8783);var i,r=n(2109),o=n(9781),a=n(590),s=n(7854),u=n(6048),c=n(1320),l=n(5787),h=n(6656),d=n(1574),p=n(8457),f=n(8710).codeAt,g=n(3197),v=n(8003),m=n(1637),b=n(9909),y=s.URL,w=m.URLSearchParams,_=m.getState,x=b.set,P=b.getterFor("URL"),k=Math.floor,C=Math.pow,S="Invalid scheme",T="Invalid host",I="Invalid port",R=/[A-Za-z]/,E=/[\d+-.A-Za-z]/,M=/\d/,L=/^(0x|0X)/,B=/^[0-7]+$/,N=/^\d+$/,O=/^[\dA-Fa-f]+$/,$=/[\0\t\n\r #%/:?@[\\]]/,D=/[\0\t\n\r #/:?@[\\]]/,F=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,A=/[\t\n\r]/g,U=function(e,t){var n,i,r;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return T;if(!(n=W(t.slice(1,-1))))return T;e.host=n}else if(K(e)){if(t=g(t),$.test(t))return T;if(null===(n=j(t)))return T;e.host=n}else{if(D.test(t))return T;for(n="",i=p(t),r=0;r<i.length;r++)n+=G(i[r],z);e.host=n}},j=function(e){var t,n,i,r,o,a,s,u=e.split(".");if(u.length&&""==u[u.length-1]&&u.pop(),(t=u.length)>4)return e;for(n=[],i=0;i<t;i++){if(""==(r=u[i]))return e;if(o=10,r.length>1&&"0"==r.charAt(0)&&(o=L.test(r)?16:8,r=r.slice(8==o?1:2)),""===r)a=0;else{if(!(10==o?N:8==o?B:O).test(r))return e;a=parseInt(r,o)}n.push(a)}for(i=0;i<t;i++)if(a=n[i],i==t-1){if(a>=C(256,5-t))return null}else if(a>255)return null;for(s=n.pop(),i=0;i<n.length;i++)s+=n[i]*C(256,3-i);return s},W=function(e){var t,n,i,r,o,a,s,u=[0,0,0,0,0,0,0,0],c=0,l=null,h=0,d=function(){return e.charAt(h)};if(":"==d()){if(":"!=e.charAt(1))return;h+=2,l=++c}for(;d();){if(8==c)return;if(":"!=d()){for(t=n=0;n<4&&O.test(d());)t=16*t+parseInt(d(),16),h++,n++;if("."==d()){if(0==n)return;if(h-=n,c>6)return;for(i=0;d();){if(r=null,i>0){if(!("."==d()&&i<4))return;h++}if(!M.test(d()))return;for(;M.test(d());){if(o=parseInt(d(),10),null===r)r=o;else{if(0==r)return;r=10*r+o}if(r>255)return;h++}u[c]=256*u[c]+r,2!=++i&&4!=i||c++}if(4!=i)return;break}if(":"==d()){if(h++,!d())return}else if(d())return;u[c++]=t}else{if(null!==l)return;h++,l=++c}}if(null!==l)for(a=c-l,c=7;0!=c&&a>0;)s=u[c],u[c--]=u[l+a-1],u[l+--a]=s;else if(8!=c)return;return u},H=function(e){var t,n,i,r;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=k(e/256);return t.join(".")}if("object"==typeof e){for(t="",i=function(e){for(var t=null,n=1,i=null,r=0,o=0;o<8;o++)0!==e[o]?(r>n&&(t=i,n=r),i=null,r=0):(null===i&&(i=o),++r);return r>n&&(t=i,n=r),t}(e),n=0;n<8;n++)r&&0===e[n]||(r&&(r=!1),i===n?(t+=n?":":"::",r=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},z={},V=d({},z,{" ":1,'"':1,"<":1,">":1,"`":1}),q=d({},V,{"#":1,"?":1,"{":1,"}":1}),X=d({},q,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),G=function(e,t){var n=f(e,0);return n>32&&n<127&&!h(t,e)?e:encodeURIComponent(e)},Y={ftp:21,file:null,http:80,https:443,ws:80,wss:443},K=function(e){return h(Y,e.scheme)},Z=function(e){return""!=e.username||""!=e.password},Q=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},J=function(e,t){var n;return 2==e.length&&R.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},ee=function(e){var t;return e.length>1&&J(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},te=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&J(t[0],!0)||t.pop()},ne=function(e){return"."===e||"%2e"===e.toLowerCase()},ie={},re={},oe={},ae={},se={},ue={},ce={},le={},he={},de={},pe={},fe={},ge={},ve={},me={},be={},ye={},we={},_e={},xe={},Pe={},ke=function(e,t,n,r){var o,a,s,u,c,l=n||ie,d=0,f="",g=!1,v=!1,m=!1;for(n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(F,"")),t=t.replace(A,""),o=p(t);d<=o.length;){switch(a=o[d],l){case ie:if(!a||!R.test(a)){if(n)return S;l=oe;continue}f+=a.toLowerCase(),l=re;break;case re:if(a&&(E.test(a)||"+"==a||"-"==a||"."==a))f+=a.toLowerCase();else{if(":"!=a){if(n)return S;f="",l=oe,d=0;continue}if(n&&(K(e)!=h(Y,f)||"file"==f&&(Z(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=f,n)return void(K(e)&&Y[e.scheme]==e.port&&(e.port=null));f="","file"==e.scheme?l=ve:K(e)&&r&&r.scheme==e.scheme?l=ae:K(e)?l=le:"/"==o[d+1]?(l=se,d++):(e.cannotBeABaseURL=!0,e.path.push(""),l=_e)}break;case oe:if(!r||r.cannotBeABaseURL&&"#"!=a)return S;if(r.cannotBeABaseURL&&"#"==a){e.scheme=r.scheme,e.path=r.path.slice(),e.query=r.query,e.fragment="",e.cannotBeABaseURL=!0,l=Pe;break}l="file"==r.scheme?ve:ue;continue;case ae:if("/"!=a||"/"!=o[d+1]){l=ue;continue}l=he,d++;break;case se:if("/"==a){l=de;break}l=we;continue;case ue:if(e.scheme=r.scheme,a==i)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=r.query;else if("/"==a||"\\"==a&&K(e))l=ce;else if("?"==a)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query="",l=xe;else{if("#"!=a){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.path.pop(),l=we;continue}e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=r.query,e.fragment="",l=Pe}break;case ce:if(!K(e)||"/"!=a&&"\\"!=a){if("/"!=a){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,l=we;continue}l=de}else l=he;break;case le:if(l=he,"/"!=a||"/"!=f.charAt(d+1))continue;d++;break;case he:if("/"!=a&&"\\"!=a){l=de;continue}break;case de:if("@"==a){g&&(f="%40"+f),g=!0,s=p(f);for(var b=0;b<s.length;b++){var y=s[b];if(":"!=y||m){var w=G(y,X);m?e.password+=w:e.username+=w}else m=!0}f=""}else if(a==i||"/"==a||"?"==a||"#"==a||"\\"==a&&K(e)){if(g&&""==f)return"Invalid authority";d-=p(f).length+1,f="",l=pe}else f+=a;break;case pe:case fe:if(n&&"file"==e.scheme){l=be;continue}if(":"!=a||v){if(a==i||"/"==a||"?"==a||"#"==a||"\\"==a&&K(e)){if(K(e)&&""==f)return T;if(n&&""==f&&(Z(e)||null!==e.port))return;if(u=U(e,f))return u;if(f="",l=ye,n)return;continue}"["==a?v=!0:"]"==a&&(v=!1),f+=a}else{if(""==f)return T;if(u=U(e,f))return u;if(f="",l=ge,n==fe)return}break;case ge:if(!M.test(a)){if(a==i||"/"==a||"?"==a||"#"==a||"\\"==a&&K(e)||n){if(""!=f){var _=parseInt(f,10);if(_>65535)return I;e.port=K(e)&&_===Y[e.scheme]?null:_,f=""}if(n)return;l=ye;continue}return I}f+=a;break;case ve:if(e.scheme="file","/"==a||"\\"==a)l=me;else{if(!r||"file"!=r.scheme){l=we;continue}if(a==i)e.host=r.host,e.path=r.path.slice(),e.query=r.query;else if("?"==a)e.host=r.host,e.path=r.path.slice(),e.query="",l=xe;else{if("#"!=a){ee(o.slice(d).join(""))||(e.host=r.host,e.path=r.path.slice(),te(e)),l=we;continue}e.host=r.host,e.path=r.path.slice(),e.query=r.query,e.fragment="",l=Pe}}break;case me:if("/"==a||"\\"==a){l=be;break}r&&"file"==r.scheme&&!ee(o.slice(d).join(""))&&(J(r.path[0],!0)?e.path.push(r.path[0]):e.host=r.host),l=we;continue;case be:if(a==i||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&J(f))l=we;else if(""==f){if(e.host="",n)return;l=ye}else{if(u=U(e,f))return u;if("localhost"==e.host&&(e.host=""),n)return;f="",l=ye}continue}f+=a;break;case ye:if(K(e)){if(l=we,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=i&&(l=we,"/"!=a))continue}else e.fragment="",l=Pe;else e.query="",l=xe;break;case we:if(a==i||"/"==a||"\\"==a&&K(e)||!n&&("?"==a||"#"==a)){if(".."===(c=(c=f).toLowerCase())||"%2e."===c||".%2e"===c||"%2e%2e"===c?(te(e),"/"==a||"\\"==a&&K(e)||e.path.push("")):ne(f)?"/"==a||"\\"==a&&K(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&J(f)&&(e.host&&(e.host=""),f=f.charAt(0)+":"),e.path.push(f)),f="","file"==e.scheme&&(a==i||"?"==a||"#"==a))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==a?(e.query="",l=xe):"#"==a&&(e.fragment="",l=Pe)}else f+=G(a,q);break;case _e:"?"==a?(e.query="",l=xe):"#"==a?(e.fragment="",l=Pe):a!=i&&(e.path[0]+=G(a,z));break;case xe:n||"#"!=a?a!=i&&("'"==a&&K(e)?e.query+="%27":e.query+="#"==a?"%23":G(a,z)):(e.fragment="",l=Pe);break;case Pe:a!=i&&(e.fragment+=G(a,V))}d++}},Ce=function(e){var t,n,i=l(this,Ce,"URL"),r=arguments.length>1?arguments[1]:void 0,a=String(e),s=x(i,{type:"URL"});if(void 0!==r)if(r instanceof Ce)t=P(r);else if(n=ke(t={},String(r)))throw TypeError(n);if(n=ke(s,a,null,t))throw TypeError(n);var u=s.searchParams=new w,c=_(u);c.updateSearchParams(s.query),c.updateURL=function(){s.query=String(u)||null},o||(i.href=Te.call(i),i.origin=Ie.call(i),i.protocol=Re.call(i),i.username=Ee.call(i),i.password=Me.call(i),i.host=Le.call(i),i.hostname=Be.call(i),i.port=Ne.call(i),i.pathname=Oe.call(i),i.search=$e.call(i),i.searchParams=De.call(i),i.hash=Fe.call(i))},Se=Ce.prototype,Te=function(){var e=P(this),t=e.scheme,n=e.username,i=e.password,r=e.host,o=e.port,a=e.path,s=e.query,u=e.fragment,c=t+":";return null!==r?(c+="//",Z(e)&&(c+=n+(i?":"+i:"")+"@"),c+=H(r),null!==o&&(c+=":"+o)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(c+="?"+s),null!==u&&(c+="#"+u),c},Ie=function(){var e=P(this),t=e.scheme,n=e.port;if("blob"==t)try{return new Ce(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&K(e)?t+"://"+H(e.host)+(null!==n?":"+n:""):"null"},Re=function(){return P(this).scheme+":"},Ee=function(){return P(this).username},Me=function(){return P(this).password},Le=function(){var e=P(this),t=e.host,n=e.port;return null===t?"":null===n?H(t):H(t)+":"+n},Be=function(){var e=P(this).host;return null===e?"":H(e)},Ne=function(){var e=P(this).port;return null===e?"":String(e)},Oe=function(){var e=P(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},$e=function(){var e=P(this).query;return e?"?"+e:""},De=function(){return P(this).searchParams},Fe=function(){var e=P(this).fragment;return e?"#"+e:""},Ae=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(o&&u(Se,{href:Ae(Te,(function(e){var t=P(this),n=String(e),i=ke(t,n);if(i)throw TypeError(i);_(t.searchParams).updateSearchParams(t.query)})),origin:Ae(Ie),protocol:Ae(Re,(function(e){var t=P(this);ke(t,String(e)+":",ie)})),username:Ae(Ee,(function(e){var t=P(this),n=p(String(e));if(!Q(t)){t.username="";for(var i=0;i<n.length;i++)t.username+=G(n[i],X)}})),password:Ae(Me,(function(e){var t=P(this),n=p(String(e));if(!Q(t)){t.password="";for(var i=0;i<n.length;i++)t.password+=G(n[i],X)}})),host:Ae(Le,(function(e){var t=P(this);t.cannotBeABaseURL||ke(t,String(e),pe)})),hostname:Ae(Be,(function(e){var t=P(this);t.cannotBeABaseURL||ke(t,String(e),fe)})),port:Ae(Ne,(function(e){var t=P(this);Q(t)||(""==(e=String(e))?t.port=null:ke(t,e,ge))})),pathname:Ae(Oe,(function(e){var t=P(this);t.cannotBeABaseURL||(t.path=[],ke(t,e+"",ye))})),search:Ae($e,(function(e){var t=P(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",ke(t,e,xe)),_(t.searchParams).updateSearchParams(t.query)})),searchParams:Ae(De),hash:Ae(Fe,(function(e){var t=P(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",ke(t,e,Pe)):t.fragment=null}))}),c(Se,"toJSON",(function(){return Te.call(this)}),{enumerable:!0}),c(Se,"toString",(function(){return Te.call(this)}),{enumerable:!0}),y){var Ue=y.createObjectURL,je=y.revokeObjectURL;Ue&&c(Ce,"createObjectURL",(function(e){return Ue.apply(y,arguments)})),je&&c(Ce,"revokeObjectURL",(function(e){return je.apply(y,arguments)}))}v(Ce,"URL"),r({global:!0,forced:!a,sham:!o},{URL:Ce})},4581:function(e,t,n){!function(e,t,n){var i,r,o,a,s,u,c,l,h,d,p,f,g,v,m,b,y,w,_,x,P,k,C,S,T,I,R,E,M,L,B,N,O,$={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return e(this).attr("href")},title:function(){return this.title},createImg:function(){var t=new Image,n=e(this).data("cbox-img-attrs");return"object"==typeof n&&e.each(n,(function(e,n){t[e]=n})),t},createIframe:function(){var n=t.createElement("iframe"),i=e(this).data("cbox-iframe-attrs");return"object"==typeof i&&e.each(i,(function(e,t){n[e]=t})),"frameBorder"in n&&(n.frameBorder=0),"allowTransparency"in n&&(n.allowTransparency="true"),n.name=(new Date).getTime(),n.allowFullscreen=!0,n}},D="colorbox",F="cboxElement",A="cbox_load",U="cbox_complete",j="cbox_cleanup",W="cbox_closed",H="cbox_purge",z=e("<a/>"),V="div",q=0,X={};function G(n,i,r){var o=t.createElement(n);return i&&(o.id="cbox"+i),r&&(o.style.cssText=r),e(o)}function Y(){return n.innerHeight?n.innerHeight:e(n).height()}function K(t,n){n!==Object(n)&&(n={}),this.cache={},this.el=t,this.value=function(t){var i;return void 0===this.cache[t]&&(void 0!==(i=e(this.el).attr("data-cbox-"+t))?this.cache[t]=i:void 0!==n[t]?this.cache[t]=n[t]:void 0!==$[t]&&(this.cache[t]=$[t])),this.cache[t]},this.get=function(t){var n=this.value(t);return e.isFunction(n)?n.call(this.el,this):n}}function Z(e){var t=h.length,n=(I+e)%t;return n<0?t+n:n}function Q(e,t){return Math.round((/%/.test(e)?("x"===t?d.width():Y())/100:1)*parseInt(e,10))}function J(e,t){return e.get("photo")||e.get("photoRegex").test(t)}function ee(e,t){return e.get("retinaUrl")&&n.devicePixelRatio>1?t.replace(e.get("photoRegex"),e.get("retinaSuffix")):t}function te(e){"contains"in r[0]&&!r[0].contains(e.target)&&e.target!==i[0]&&(e.stopPropagation(),r.focus())}function ne(e){ne.str!==e&&(r.add(i).removeClass(ne.str).addClass(e),ne.str=e)}function ie(n){e(t).trigger(n),z.triggerHandler(n)}var re=function(){var e,t,n="cboxSlideshow_",i="click.cbox";function o(){clearTimeout(t)}function a(){(P.get("loop")||h[I+1])&&(o(),t=setTimeout(N.next,P.get("slideshowSpeed")))}function s(){b.html(P.get("slideshowStop")).unbind(i).one(i,u),z.bind(U,a).bind(A,o),r.removeClass(n+"off").addClass(n+"on")}function u(){o(),z.unbind(U,a).unbind(A,o),b.html(P.get("slideshowStart")).unbind(i).one(i,(function(){N.next(),s()})),r.removeClass(n+"on").addClass(n+"off")}function c(){e=!1,b.hide(),o(),z.unbind(U,a).unbind(A,o),r.removeClass(n+"off "+n+"on")}return function(){e?P.get("slideshow")||(z.unbind(j,c),c()):P.get("slideshow")&&h[1]&&(e=!0,z.one(j,c),P.get("slideshowAuto")?s():u(),b.show())}}();function oe(o){var d,m;if(!L){if(d=e(o).data(D),P=new K(o,d),m=P.get("rel"),I=0,m&&!1!==m&&"nofollow"!==m?(h=e(".cboxElement").filter((function(){return new K(this,e.data(this,D)).get("rel")===m})),-1===(I=h.index(P.el))&&(h=h.add(P.el),I=h.length-1)):h=e(P.el),!E){E=M=!0,ne(P.get("className")),r.css({visibility:"hidden",display:"block",opacity:""}),p=G(V,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),a.css({width:"",height:""}).append(p),k=s.height()+l.height()+a.outerHeight(!0)-a.height(),C=u.width()+c.width()+a.outerWidth(!0)-a.width(),S=p.outerHeight(!0),T=p.outerWidth(!0);var b=Q(P.get("initialWidth"),"x"),y=Q(P.get("initialHeight"),"y"),w=P.get("maxWidth"),O=P.get("maxHeight");P.w=Math.max((!1!==w?Math.min(b,Q(w,"x")):b)-T-C,0),P.h=Math.max((!1!==O?Math.min(y,Q(O,"y")):y)-S-k,0),p.css({width:"",height:P.h}),N.position(),ie("cbox_open"),P.get("onOpen"),x.add(v).hide(),r.focus(),P.get("trapFocus")&&t.addEventListener&&(t.addEventListener("focus",te,!0),z.one(W,(function(){t.removeEventListener("focus",te,!0)}))),P.get("returnFocus")&&z.one(W,(function(){e(P.el).focus()}))}var $=parseFloat(P.get("opacity"));i.css({opacity:$==$?$:"",cursor:P.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),P.get("closeButton")?_.html(P.get("close")).appendTo(a):_.appendTo("<div/>"),function(){var t,i,r,o=N.prep,a=++q;if(M=!0,R=!1,ie(H),ie(A),P.get("onLoad"),P.h=P.get("height")?Q(P.get("height"),"y")-S-k:P.get("innerHeight")&&Q(P.get("innerHeight"),"y"),P.w=P.get("width")?Q(P.get("width"),"x")-T-C:P.get("innerWidth")&&Q(P.get("innerWidth"),"x"),P.mw=P.w,P.mh=P.h,P.get("maxWidth")&&(P.mw=Q(P.get("maxWidth"),"x")-T-C,P.mw=P.w&&P.w<P.mw?P.w:P.mw),P.get("maxHeight")&&(P.mh=Q(P.get("maxHeight"),"y")-S-k,P.mh=P.h&&P.h<P.mh?P.h:P.mh),t=P.get("href"),B=setTimeout((function(){g.show()}),100),P.get("inline")){var s=e(t).eq(0);r=e("<div>").hide().insertBefore(s),z.one(H,(function(){r.replaceWith(s)})),o(s)}else P.get("iframe")?o(" "):P.get("html")?o(P.get("html")):J(P,t)?(t=ee(P,t),R=P.get("createImg"),e(R).addClass("cboxPhoto").bind("error.cbox",(function(){o(G(V,"Error").html(P.get("imgError")))})).one("load",(function(){a===q&&setTimeout((function(){var t;P.get("retinaImage")&&n.devicePixelRatio>1&&(R.height=R.height/n.devicePixelRatio,R.width=R.width/n.devicePixelRatio),P.get("scalePhotos")&&(i=function(){R.height-=R.height*t,R.width-=R.width*t},P.mw&&R.width>P.mw&&(t=(R.width-P.mw)/R.width,i()),P.mh&&R.height>P.mh&&(t=(R.height-P.mh)/R.height,i())),P.h&&(R.style.marginTop=Math.max(P.mh-R.height,0)/2+"px"),h[1]&&(P.get("loop")||h[I+1])&&(R.style.cursor="pointer",e(R).bind("click.cbox",(function(){N.next()}))),R.style.width=R.width+"px",R.style.height=R.height+"px",o(R)}),1)})),R.src=t):t&&f.load(t,P.get("data"),(function(t,n){a===q&&o("error"===n?G(V,"Error").html(P.get("xhrError")):e(this).contents())}))}()}}function ae(){r||(O=!1,d=e(n),r=G(V).attr({id:D,class:!1===e.support.opacity?"cboxIE":"",role:"dialog",tabindex:"-1"}).hide(),i=G(V,"Overlay").hide(),g=e([G(V,"LoadingOverlay")[0],G(V,"LoadingGraphic")[0]]),o=G(V,"Wrapper"),a=G(V,"Content").append(v=G(V,"Title"),m=G(V,"Current"),w=e('<button type="button"/>').attr({id:"cboxPrevious"}),y=e('<button type="button"/>').attr({id:"cboxNext"}),b=e('<button type="button"/>').attr({id:"cboxSlideshow"}),g),_=e('<button type="button"/>').attr({id:"cboxClose"}),o.append(G(V).append(G(V,"TopLeft"),s=G(V,"TopCenter"),G(V,"TopRight")),G(V,!1,"clear:left").append(u=G(V,"MiddleLeft"),a,c=G(V,"MiddleRight")),G(V,!1,"clear:left").append(G(V,"BottomLeft"),l=G(V,"BottomCenter"),G(V,"BottomRight"))).find("div div").css({float:"left"}),f=G(V,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),x=y.add(w).add(m).add(b)),t.body&&!r.parent().length&&e(t.body).append(i,r.append(o,f))}e.colorbox||(e(ae),(N=e.fn.colorbox=e.colorbox=function(n,o){var a=this;return n=n||{},e.isFunction(a)&&(a=e("<a/>"),n.open=!0),a[0]?(ae(),function(){function n(e){e.which>1||e.shiftKey||e.altKey||e.metaKey||e.ctrlKey||(e.preventDefault(),oe(this))}return!!r&&(O||(O=!0,y.click((function(){N.next()})),w.click((function(){N.prev()})),_.click((function(){N.close()})),i.click((function(){P.get("overlayClose")&&N.close()})),e(t).bind("keydown.cbox",(function(e){var t=e.keyCode;E&&P.get("escKey")&&27===t&&(e.preventDefault(),N.close()),E&&P.get("arrowKey")&&h[1]&&!e.altKey&&(37===t?(e.preventDefault(),w.click()):39===t&&(e.preventDefault(),y.click()))})),e.isFunction(e.fn.on)?e(t).on("click.cbox",".cboxElement",n):e(".cboxElement").live("click.cbox",n)),!0)}()&&(o&&(n.onComplete=o),a.each((function(){var t=e.data(this,D)||{};e.data(this,D,e.extend(t,n))})).addClass(F),new K(a[0],n).get("open")&&oe(a[0])),a):a}).position=function(t,n){var i,h,p,f=0,g=0,v=r.offset();function m(){s[0].style.width=l[0].style.width=a[0].style.width=parseInt(r[0].style.width,10)-C+"px",a[0].style.height=u[0].style.height=c[0].style.height=parseInt(r[0].style.height,10)-k+"px"}if(d.unbind("resize.cbox"),r.css({top:-9e4,left:-9e4}),h=d.scrollTop(),p=d.scrollLeft(),P.get("fixed")?(v.top-=h,v.left-=p,r.css({position:"fixed"})):(f=h,g=p,r.css({position:"absolute"})),!1!==P.get("right")?g+=Math.max(d.width()-P.w-T-C-Q(P.get("right"),"x"),0):!1!==P.get("left")?g+=Q(P.get("left"),"x"):g+=Math.round(Math.max(d.width()-P.w-T-C,0)/2),!1!==P.get("bottom")?f+=Math.max(Y()-P.h-S-k-Q(P.get("bottom"),"y"),0):!1!==P.get("top")?f+=Q(P.get("top"),"y"):f+=Math.round(Math.max(Y()-P.h-S-k,0)/2),r.css({top:v.top,left:v.left,visibility:"visible"}),o[0].style.width=o[0].style.height="9999px",i={width:P.w+T+C,height:P.h+S+k,top:f,left:g},t){var b=0;e.each(i,(function(e){i[e]===X[e]||(b=t)})),t=b}X=i,t||r.css(i),r.dequeue().animate(i,{duration:t||0,complete:function(){m(),M=!1,o[0].style.width=P.w+T+C+"px",o[0].style.height=P.h+S+k+"px",P.get("reposition")&&setTimeout((function(){d.bind("resize.cbox",N.position)}),1),e.isFunction(n)&&n()},step:m})},N.resize=function(e){var t;E&&((e=e||{}).width&&(P.w=Q(e.width,"x")-T-C),e.innerWidth&&(P.w=Q(e.innerWidth,"x")),p.css({width:P.w}),e.height&&(P.h=Q(e.height,"y")-S-k),e.innerHeight&&(P.h=Q(e.innerHeight,"y")),e.innerHeight||e.height||(t=p.scrollTop(),p.css({height:"auto"}),P.h=p.height()),p.css({height:P.h}),t&&p.scrollTop(t),N.position("none"===P.get("transition")?0:P.get("speed")))},N.prep=function(n){if(E){var i,o="none"===P.get("transition")?0:P.get("speed");p.remove(),(p=G(V,"LoadedContent").append(n)).hide().appendTo(f.show()).css({width:(P.w=P.w||p.width(),P.w=P.mw&&P.mw<P.w?P.mw:P.w,P.w),overflow:P.get("scrolling")?"auto":"hidden"}).css({height:(P.h=P.h||p.height(),P.h=P.mh&&P.mh<P.h?P.mh:P.h,P.h)}).prependTo(a),f.hide(),e(R).css({float:"none"}),ne(P.get("className")),i=function(){var n,i,a=h.length;function s(){!1===e.support.opacity&&r[0].style.removeAttribute("filter")}E&&(i=function(){clearTimeout(B),g.hide(),ie(U),P.get("onComplete")},v.html(P.get("title")).show(),p.show(),a>1?("string"==typeof P.get("current")&&m.html(P.get("current").replace("{current}",I+1).replace("{total}",a)).show(),y[P.get("loop")||I<a-1?"show":"hide"]().html(P.get("next")),w[P.get("loop")||I?"show":"hide"]().html(P.get("previous")),re(),P.get("preloading")&&e.each([Z(-1),Z(1)],(function(){var n=h[this],i=new K(n,e.data(n,D)),r=i.get("href");r&&J(i,r)&&(r=ee(i,r),t.createElement("img").src=r)}))):x.hide(),P.get("iframe")?(n=P.get("createIframe"),P.get("scrolling")||(n.scrolling="no"),e(n).attr({src:P.get("href"),class:"cboxIframe"}).one("load",i).appendTo(p),z.one(H,(function(){n.src="//about:blank"})),P.get("fastIframe")&&e(n).trigger("load")):i(),"fade"===P.get("transition")?r.fadeTo(o,1,s):s())},"fade"===P.get("transition")?r.fadeTo(o,0,(function(){N.position(0,i)})):N.position(o,i)}},N.next=function(){!M&&h[1]&&(P.get("loop")||h[I+1])&&(I=Z(1),oe(h[I]))},N.prev=function(){!M&&h[1]&&(P.get("loop")||I)&&(I=Z(-1),oe(h[I]))},N.close=function(){E&&!L&&(L=!0,E=!1,ie(j),P.get("onCleanup"),d.unbind(".cbox"),i.fadeTo(P.get("fadeOut")||0,0),r.stop().fadeTo(P.get("fadeOut")||0,0,(function(){r.hide(),i.hide(),ie(H),p.remove(),setTimeout((function(){L=!1,ie(W),P.get("onClosed")}),1)})))},N.remove=function(){r&&(r.stop(),e.colorbox.close(),r.stop(!1,!0).remove(),i.remove(),L=!1,r=null,e(".cboxElement").removeData(D).removeClass(F),e(t).unbind("click.cbox").unbind("keydown.cbox"))},N.element=function(){return e(P.el)},N.settings=$)}(n(3609),document,window)},5557:function(e,t,n){!function(e){if(e.support.touch="ontouchend"in document,e.support.touch){var t,n=e.ui.mouse.prototype,i=n._mouseInit,r=n._mouseDestroy;n._touchStart=function(e){!t&&this._mouseCapture(e.originalEvent.changedTouches[0])&&(t=!0,this._touchMoved=!1,o(e,"mouseover"),o(e,"mousemove"),o(e,"mousedown"))},n._touchMove=function(e){t&&(this._touchMoved=!0,o(e,"mousemove"))},n._touchEnd=function(e){t&&(o(e,"mouseup"),o(e,"mouseout"),this._touchMoved||o(e,"click"),t=!1)},n._mouseInit=function(){var t=this;t.element.bind({touchstart:e.proxy(t,"_touchStart"),touchmove:e.proxy(t,"_touchMove"),touchend:e.proxy(t,"_touchEnd")}),i.call(t)},n._mouseDestroy=function(){var t=this;t.element.unbind({touchstart:e.proxy(t,"_touchStart"),touchmove:e.proxy(t,"_touchMove"),touchend:e.proxy(t,"_touchEnd")}),r.call(t)}}function o(e,t){if(!(e.originalEvent.touches.length>1)){e.preventDefault();var n=e.originalEvent.changedTouches[0],i=document.createEvent("MouseEvents");i.initMouseEvent(t,!0,!0,window,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(i)}}}(n(3609))},3762:function(e,t,n){var i,r,o;r=[n(3609),n(5592)],void 0===(o="function"==typeof(i=function(e){var t,n="ui-effects-",i="ui-effects-style",r="ui-effects-animated",o=e;return e.effects={effect:{}},function(e,t){var n,i=/^([\-+])=\s*(\d+\.?\d*)/,r=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[2.55*e[1],2.55*e[2],2.55*e[3],e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],o=e.Color=function(t,n,i,r){return new e.Color.fn.parse(t,n,i,r)},a={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},s={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},u=o.support={},c=e("<p>")[0],l=e.each;function h(e,t,n){var i=s[t.type]||{};return null==e?n||!t.def?null:t.def:(e=i.floor?~~e:parseFloat(e),isNaN(e)?t.def:i.mod?(e+i.mod)%i.mod:0>e?0:i.max<e?i.max:e)}function d(t){var i=o(),s=i._rgba=[];return t=t.toLowerCase(),l(r,(function(e,n){var r,o=n.re.exec(t),u=o&&n.parse(o),c=n.space||"rgba";if(u)return r=i[c](u),i[a[c].cache]=r[a[c].cache],s=i._rgba=r._rgba,!1})),s.length?("0,0,0,0"===s.join()&&e.extend(s,n.transparent),i):n[t]}function p(e,t,n){return 6*(n=(n+1)%1)<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}c.style.cssText="background-color:rgba(1,1,1,.5)",u.rgba=c.style.backgroundColor.indexOf("rgba")>-1,l(a,(function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}})),o.fn=e.extend(o.prototype,{parse:function(i,r,s,u){if(i===t)return this._rgba=[null,null,null,null],this;(i.jquery||i.nodeType)&&(i=e(i).css(r),r=t);var c=this,p=e.type(i),f=this._rgba=[];return r!==t&&(i=[i,r,s,u],p="array"),"string"===p?this.parse(d(i)||n._default):"array"===p?(l(a.rgba.props,(function(e,t){f[t.idx]=h(i[t.idx],t)})),this):"object"===p?(l(a,i instanceof o?function(e,t){i[t.cache]&&(c[t.cache]=i[t.cache].slice())}:function(t,n){var r=n.cache;l(n.props,(function(e,t){if(!c[r]&&n.to){if("alpha"===e||null==i[e])return;c[r]=n.to(c._rgba)}c[r][t.idx]=h(i[e],t,!0)})),c[r]&&e.inArray(null,c[r].slice(0,3))<0&&(c[r][3]=1,n.from&&(c._rgba=n.from(c[r])))}),this):void 0},is:function(e){var t=o(e),n=!0,i=this;return l(a,(function(e,r){var o,a=t[r.cache];return a&&(o=i[r.cache]||r.to&&r.to(i._rgba)||[],l(r.props,(function(e,t){if(null!=a[t.idx])return n=a[t.idx]===o[t.idx]}))),n})),n},_space:function(){var e=[],t=this;return l(a,(function(n,i){t[i.cache]&&e.push(n)})),e.pop()},transition:function(e,t){var n=o(e),i=n._space(),r=a[i],u=0===this.alpha()?o("transparent"):this,c=u[r.cache]||r.to(u._rgba),d=c.slice();return n=n[r.cache],l(r.props,(function(e,i){var r=i.idx,o=c[r],a=n[r],u=s[i.type]||{};null!==a&&(null===o?d[r]=a:(u.mod&&(a-o>u.mod/2?o+=u.mod:o-a>u.mod/2&&(o-=u.mod)),d[r]=h((a-o)*t+o,i)))})),this[i](d)},blend:function(t){if(1===this._rgba[3])return this;var n=this._rgba.slice(),i=n.pop(),r=o(t)._rgba;return o(e.map(n,(function(e,t){return(1-i)*r[t]+i*e})))},toRgbaString:function(){var t="rgba(",n=e.map(this._rgba,(function(e,t){return null==e?t>2?1:0:e}));return 1===n[3]&&(n.pop(),t="rgb("),t+n.join()+")"},toHslaString:function(){var t="hsla(",n=e.map(this.hsla(),(function(e,t){return null==e&&(e=t>2?1:0),t&&t<3&&(e=Math.round(100*e)+"%"),e}));return 1===n[3]&&(n.pop(),t="hsl("),t+n.join()+")"},toHexString:function(t){var n=this._rgba.slice(),i=n.pop();return t&&n.push(~~(255*i)),"#"+e.map(n,(function(e){return 1===(e=(e||0).toString(16)).length?"0"+e:e})).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),o.fn.parse.prototype=o.fn,a.hsla.to=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t,n,i=e[0]/255,r=e[1]/255,o=e[2]/255,a=e[3],s=Math.max(i,r,o),u=Math.min(i,r,o),c=s-u,l=s+u,h=.5*l;return t=u===s?0:i===s?60*(r-o)/c+360:r===s?60*(o-i)/c+120:60*(i-r)/c+240,n=0===c?0:h<=.5?c/l:c/(2-l),[Math.round(t)%360,n,h,null==a?1:a]},a.hsla.from=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t=e[0]/360,n=e[1],i=e[2],r=e[3],o=i<=.5?i*(1+n):i+n-i*n,a=2*i-o;return[Math.round(255*p(a,o,t+1/3)),Math.round(255*p(a,o,t)),Math.round(255*p(a,o,t-1/3)),r]},l(a,(function(n,r){var a=r.props,s=r.cache,u=r.to,c=r.from;o.fn[n]=function(n){if(u&&!this[s]&&(this[s]=u(this._rgba)),n===t)return this[s].slice();var i,r=e.type(n),d="array"===r||"object"===r?n:arguments,p=this[s].slice();return l(a,(function(e,t){var n=d["object"===r?e:t.idx];null==n&&(n=p[t.idx]),p[t.idx]=h(n,t)})),c?((i=o(c(p)))[s]=p,i):o(p)},l(a,(function(t,r){o.fn[t]||(o.fn[t]=function(o){var a,s=e.type(o),u="alpha"===t?this._hsla?"hsla":"rgba":n,c=this[u](),l=c[r.idx];return"undefined"===s?l:("function"===s&&(o=o.call(this,l),s=e.type(o)),null==o&&r.empty?this:("string"===s&&(a=i.exec(o))&&(o=l+parseFloat(a[2])*("+"===a[1]?1:-1)),c[r.idx]=o,this[u](c)))})}))})),o.hook=function(t){var n=t.split(" ");l(n,(function(t,n){e.cssHooks[n]={set:function(t,i){var r,a,s="";if("transparent"!==i&&("string"!==e.type(i)||(r=d(i)))){if(i=o(r||i),!u.rgba&&1!==i._rgba[3]){for(a="backgroundColor"===n?t.parentNode:t;(""===s||"transparent"===s)&&a&&a.style;)try{s=e.css(a,"backgroundColor"),a=a.parentNode}catch(e){}i=i.blend(s&&"transparent"!==s?s:"_default")}i=i.toRgbaString()}try{t.style[n]=i}catch(e){}}},e.fx.step[n]=function(t){t.colorInit||(t.start=o(t.elem,n),t.end=o(t.end),t.colorInit=!0),e.cssHooks[n].set(t.elem,t.start.transition(t.end,t.pos))}}))},o.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),e.cssHooks.borderColor={expand:function(e){var t={};return l(["Top","Right","Bottom","Left"],(function(n,i){t["border"+i+"Color"]=e})),t}},n=e.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(o),function(){var t,n=["add","remove","toggle"],i={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};function r(t){var n,i,r=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,o={};if(r&&r.length&&r[0]&&r[r[0]])for(i=r.length;i--;)"string"==typeof r[n=r[i]]&&(o[e.camelCase(n)]=r[n]);else for(n in r)"string"==typeof r[n]&&(o[n]=r[n]);return o}e.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],(function(t,n){e.fx.step[n]=function(e){("none"!==e.end&&!e.setAttr||1===e.pos&&!e.setAttr)&&(o.style(e.elem,n,e.end),e.setAttr=!0)}})),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e.effects.animateClass=function(t,o,a,s){var u=e.speed(o,a,s);return this.queue((function(){var o,a=e(this),s=a.attr("class")||"",c=u.children?a.find("*").addBack():a;c=c.map((function(){return{el:e(this),start:r(this)}})),(o=function(){e.each(n,(function(e,n){t[n]&&a[n+"Class"](t[n])}))})(),c=c.map((function(){return this.end=r(this.el[0]),this.diff=function(t,n){var r,o,a={};for(r in n)o=n[r],t[r]!==o&&(i[r]||!e.fx.step[r]&&isNaN(parseFloat(o))||(a[r]=o));return a}(this.start,this.end),this})),a.attr("class",s),c=c.map((function(){var t=this,n=e.Deferred(),i=e.extend({},u,{queue:!1,complete:function(){n.resolve(t)}});return this.el.animate(this.diff,i),n.promise()})),e.when.apply(e,c.get()).done((function(){o(),e.each(arguments,(function(){var t=this.el;e.each(this.diff,(function(e){t.css(e,"")}))})),u.complete.call(a[0])}))}))},e.fn.extend({addClass:(t=e.fn.addClass,function(n,i,r,o){return i?e.effects.animateClass.call(this,{add:n},i,r,o):t.apply(this,arguments)}),removeClass:function(t){return function(n,i,r,o){return arguments.length>1?e.effects.animateClass.call(this,{remove:n},i,r,o):t.apply(this,arguments)}}(e.fn.removeClass),toggleClass:function(t){return function(n,i,r,o,a){return"boolean"==typeof i||void 0===i?r?e.effects.animateClass.call(this,i?{add:n}:{remove:n},r,o,a):t.apply(this,arguments):e.effects.animateClass.call(this,{toggle:n},i,r,o)}}(e.fn.toggleClass),switchClass:function(t,n,i,r,o){return e.effects.animateClass.call(this,{add:n,remove:t},i,r,o)}})}(),function(){var t;function o(t,n,i,r){return e.isPlainObject(t)&&(n=t,t=t.effect),t={effect:t},null==n&&(n={}),e.isFunction(n)&&(r=n,i=null,n={}),("number"==typeof n||e.fx.speeds[n])&&(r=i,i=n,n={}),e.isFunction(i)&&(r=i,i=null),n&&e.extend(t,n),i=i||n.duration,t.duration=e.fx.off?0:"number"==typeof i?i:i in e.fx.speeds?e.fx.speeds[i]:e.fx.speeds._default,t.complete=r||n.complete,t}function a(t){return!(t&&"number"!=typeof t&&!e.fx.speeds[t])||"string"==typeof t&&!e.effects.effect[t]||!!e.isFunction(t)||"object"==typeof t&&!t.effect}function s(e,t){var n=t.outerWidth(),i=t.outerHeight(),r=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(e)||["",0,n,i,0];return{top:parseFloat(r[1])||0,right:"auto"===r[2]?n:parseFloat(r[2]),bottom:"auto"===r[3]?i:parseFloat(r[3]),left:parseFloat(r[4])||0}}e.expr&&e.expr.filters&&e.expr.filters.animated&&(e.expr.filters.animated=(t=e.expr.filters.animated,function(n){return!!e(n).data(r)||t(n)})),!1!==e.uiBackCompat&&e.extend(e.effects,{save:function(e,t){for(var i=0,r=t.length;i<r;i++)null!==t[i]&&e.data(n+t[i],e[0].style[t[i]])},restore:function(e,t){for(var i,r=0,o=t.length;r<o;r++)null!==t[r]&&(i=e.data(n+t[r]),e.css(t[r],i))},setMode:function(e,t){return"toggle"===t&&(t=e.is(":hidden")?"show":"hide"),t},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var n={width:t.outerWidth(!0),height:t.outerHeight(!0),float:t.css("float")},i=e("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),r={width:t.width(),height:t.height()},o=document.activeElement;try{o.id}catch(e){o=document.body}return t.wrap(i),(t[0]===o||e.contains(t[0],o))&&e(o).trigger("focus"),i=t.parent(),"static"===t.css("position")?(i.css({position:"relative"}),t.css({position:"relative"})):(e.extend(n,{position:t.css("position"),zIndex:t.css("z-index")}),e.each(["top","left","bottom","right"],(function(e,i){n[i]=t.css(i),isNaN(parseInt(n[i],10))&&(n[i]="auto")})),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(r),i.css(n).show()},removeWrapper:function(t){var n=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===n||e.contains(t[0],n))&&e(n).trigger("focus")),t}}),e.extend(e.effects,{version:"1.12.1",define:function(t,n,i){return i||(i=n,n="effect"),e.effects.effect[t]=i,e.effects.effect[t].mode=n,i},scaledDimensions:function(e,t,n){if(0===t)return{height:0,width:0,outerHeight:0,outerWidth:0};var i="horizontal"!==n?(t||100)/100:1,r="vertical"!==n?(t||100)/100:1;return{height:e.height()*r,width:e.width()*i,outerHeight:e.outerHeight()*r,outerWidth:e.outerWidth()*i}},clipToBox:function(e){return{width:e.clip.right-e.clip.left,height:e.clip.bottom-e.clip.top,left:e.clip.left,top:e.clip.top}},unshift:function(e,t,n){var i=e.queue();t>1&&i.splice.apply(i,[1,0].concat(i.splice(t,n))),e.dequeue()},saveStyle:function(e){e.data(i,e[0].style.cssText)},restoreStyle:function(e){e[0].style.cssText=e.data(i)||"",e.removeData(i)},mode:function(e,t){var n=e.is(":hidden");return"toggle"===t&&(t=n?"show":"hide"),(n?"hide"===t:"show"===t)&&(t="none"),t},getBaseline:function(e,t){var n,i;switch(e[0]){case"top":n=0;break;case"middle":n=.5;break;case"bottom":n=1;break;default:n=e[0]/t.height}switch(e[1]){case"left":i=0;break;case"center":i=.5;break;case"right":i=1;break;default:i=e[1]/t.width}return{x:i,y:n}},createPlaceholder:function(t){var i,r=t.css("position"),o=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(r)&&(r="absolute",i=e("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(n+"placeholder",i)),t.css({position:r,left:o.left,top:o.top}),i},removePlaceholder:function(e){var t=n+"placeholder",i=e.data(t);i&&(i.remove(),e.removeData(t))},cleanUp:function(t){e.effects.restoreStyle(t),e.effects.removePlaceholder(t)},setTransition:function(t,n,i,r){return r=r||{},e.each(n,(function(e,n){var o=t.cssUnit(n);o[0]>0&&(r[n]=o[0]*i+o[1])})),r}}),e.fn.extend({effect:function(){var t=o.apply(this,arguments),n=e.effects.effect[t.effect],i=n.mode,a=t.queue,s=a||"fx",u=t.complete,c=t.mode,l=[],h=function(t){var n=e(this),o=e.effects.mode(n,c)||i;n.data(r,!0),l.push(o),i&&("show"===o||o===i&&"hide"===o)&&n.show(),i&&"none"===o||e.effects.saveStyle(n),e.isFunction(t)&&t()};if(e.fx.off||!n)return c?this[c](t.duration,u):this.each((function(){u&&u.call(this)}));function d(o){var a=e(this);function s(){e.isFunction(u)&&u.call(a[0]),e.isFunction(o)&&o()}t.mode=l.shift(),!1===e.uiBackCompat||i?"none"===t.mode?(a[c](),s()):n.call(a[0],t,(function(){a.removeData(r),e.effects.cleanUp(a),"hide"===t.mode&&a.hide(),s()})):(a.is(":hidden")?"hide"===c:"show"===c)?(a[c](),s()):n.call(a[0],t,s)}return!1===a?this.each(h).each(d):this.queue(s,h).queue(s,d)},show:function(e){return function(t){if(a(t))return e.apply(this,arguments);var n=o.apply(this,arguments);return n.mode="show",this.effect.call(this,n)}}(e.fn.show),hide:function(e){return function(t){if(a(t))return e.apply(this,arguments);var n=o.apply(this,arguments);return n.mode="hide",this.effect.call(this,n)}}(e.fn.hide),toggle:function(e){return function(t){if(a(t)||"boolean"==typeof t)return e.apply(this,arguments);var n=o.apply(this,arguments);return n.mode="toggle",this.effect.call(this,n)}}(e.fn.toggle),cssUnit:function(t){var n=this.css(t),i=[];return e.each(["em","px","%","pt"],(function(e,t){n.indexOf(t)>0&&(i=[parseFloat(n),t])})),i},cssClip:function(e){return e?this.css("clip","rect("+e.top+"px "+e.right+"px "+e.bottom+"px "+e.left+"px)"):s(this.css("clip"),this)},transfer:function(t,n){var i=e(this),r=e(t.to),o="fixed"===r.css("position"),a=e("body"),s=o?a.scrollTop():0,u=o?a.scrollLeft():0,c=r.offset(),l={top:c.top-s,left:c.left-u,height:r.innerHeight(),width:r.innerWidth()},h=i.offset(),d=e("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(t.className).css({top:h.top-s,left:h.left-u,height:i.innerHeight(),width:i.innerWidth(),position:o?"fixed":"absolute"}).animate(l,t.duration,t.easing,(function(){d.remove(),e.isFunction(n)&&n()}))}}),e.fx.step.clip=function(t){t.clipInit||(t.start=e(t.elem).cssClip(),"string"==typeof t.end&&(t.end=s(t.end,t.elem)),t.clipInit=!0),e(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})}}(),t={},e.each(["Quad","Cubic","Quart","Quint","Expo"],(function(e,n){t[n]=function(t){return Math.pow(t,e+2)}})),e.extend(t,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return 0===e||1===e?e:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var t,n=4;e<((t=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*t-2)/22-e,2)}}),e.each(t,(function(t,n){e.easing["easeIn"+t]=n,e.easing["easeOut"+t]=function(e){return 1-n(1-e)},e.easing["easeInOut"+t]=function(e){return e<.5?n(2*e)/2:1-n(-2*e+2)/2}})),e.effects})?i.apply(t,r):i)||(e.exports=o)},1870:function(e,t,n){var i,r,o;r=[n(3609),n(5592)],void 0===(o="function"==typeof(i=function(e){return e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase())})?i.apply(t,r):i)||(e.exports=o)},7053:function(e,t,n){var i,r,o;r=[n(3609),n(5592)],void 0===(o="function"==typeof(i=function(e){return e.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}})?i.apply(t,r):i)||(e.exports=o)},5592:function(e,t,n){var i,r,o;r=[n(3609)],void 0===(o="function"==typeof(i=function(e){return e.ui=e.ui||{},e.ui.version="1.12.1"})?i.apply(t,r):i)||(e.exports=o)},6891:function(e,t,n){var i,r,o;r=[n(3609),n(5592)],void 0===(o="function"==typeof(i=function(e){var t,n=0,i=Array.prototype.slice;return e.cleanData=(t=e.cleanData,function(n){var i,r,o;for(o=0;null!=(r=n[o]);o++)try{(i=e._data(r,"events"))&&i.remove&&e(r).triggerHandler("remove")}catch(e){}t(n)}),e.widget=function(t,n,i){var r,o,a,s={},u=t.split(".")[0],c=u+"-"+(t=t.split(".")[1]);return i||(i=n,n=e.Widget),e.isArray(i)&&(i=e.extend.apply(null,[{}].concat(i))),e.expr[":"][c.toLowerCase()]=function(t){return!!e.data(t,c)},e[u]=e[u]||{},r=e[u][t],o=e[u][t]=function(e,t){if(!this._createWidget)return new o(e,t);arguments.length&&this._createWidget(e,t)},e.extend(o,r,{version:i.version,_proto:e.extend({},i),_childConstructors:[]}),(a=new n).options=e.widget.extend({},a.options),e.each(i,(function(t,i){e.isFunction(i)?s[t]=function(){function e(){return n.prototype[t].apply(this,arguments)}function r(e){return n.prototype[t].apply(this,e)}return function(){var t,n=this._super,o=this._superApply;return this._super=e,this._superApply=r,t=i.apply(this,arguments),this._super=n,this._superApply=o,t}}():s[t]=i})),o.prototype=e.widget.extend(a,{widgetEventPrefix:r&&a.widgetEventPrefix||t},s,{constructor:o,namespace:u,widgetName:t,widgetFullName:c}),r?(e.each(r._childConstructors,(function(t,n){var i=n.prototype;e.widget(i.namespace+"."+i.widgetName,o,n._proto)})),delete r._childConstructors):n._childConstructors.push(o),e.widget.bridge(t,o),o},e.widget.extend=function(t){for(var n,r,o=i.call(arguments,1),a=0,s=o.length;a<s;a++)for(n in o[a])r=o[a][n],o[a].hasOwnProperty(n)&&void 0!==r&&(e.isPlainObject(r)?t[n]=e.isPlainObject(t[n])?e.widget.extend({},t[n],r):e.widget.extend({},r):t[n]=r);return t},e.widget.bridge=function(t,n){var r=n.prototype.widgetFullName||t;e.fn[t]=function(o){var a="string"==typeof o,s=i.call(arguments,1),u=this;return a?this.length||"instance"!==o?this.each((function(){var n,i=e.data(this,r);return"instance"===o?(u=i,!1):i?e.isFunction(i[o])&&"_"!==o.charAt(0)?(n=i[o].apply(i,s))!==i&&void 0!==n?(u=n&&n.jquery?u.pushStack(n.get()):n,!1):void 0:e.error("no such method '"+o+"' for "+t+" widget instance"):e.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+o+"'")})):u=void 0:(s.length&&(o=e.widget.extend.apply(null,[o].concat(s))),this.each((function(){var t=e.data(this,r);t?(t.option(o||{}),t._init&&t._init()):e.data(this,r,new n(o,this))}))),u}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,i){i=e(i||this.defaultElement||this)[0],this.element=e(i),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},i!==this&&(e.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===i&&this.destroy()}}),this.document=e(i.style?i.ownerDocument:i.document||i),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){var t=this;this._destroy(),e.each(this.classesElementLookup,(function(e,n){t._removeClass(n,e)})),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:e.noop,widget:function(){return this.element},option:function(t,n){var i,r,o,a=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(a={},i=t.split("."),t=i.shift(),i.length){for(r=a[t]=e.widget.extend({},this.options[t]),o=0;o<i.length-1;o++)r[i[o]]=r[i[o]]||{},r=r[i[o]];if(t=i.pop(),1===arguments.length)return void 0===r[t]?null:r[t];r[t]=n}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];a[t]=n}return this._setOptions(a),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return"classes"===e&&this._setOptionClasses(t),this.options[e]=t,"disabled"===e&&this._setOptionDisabled(t),this},_setOptionClasses:function(t){var n,i,r;for(n in t)r=this.classesElementLookup[n],t[n]!==this.options.classes[n]&&r&&r.length&&(i=e(r.get()),this._removeClass(r,n),i.addClass(this._classes({element:i,keys:n,classes:t,add:!0})))},_setOptionDisabled:function(e){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!e),e&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(t){var n=[],i=this;function r(r,o){var a,s;for(s=0;s<r.length;s++)a=i.classesElementLookup[r[s]]||e(),a=t.add?e(e.unique(a.get().concat(t.element.get()))):e(a.not(t.element).get()),i.classesElementLookup[r[s]]=a,n.push(r[s]),o&&t.classes[r[s]]&&n.push(t.classes[r[s]])}return t=e.extend({element:this.element,classes:this.options.classes||{}},t),this._on(t.element,{remove:"_untrackClassesElement"}),t.keys&&r(t.keys.match(/\S+/g)||[],!0),t.extra&&r(t.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(t){var n=this;e.each(n.classesElementLookup,(function(i,r){-1!==e.inArray(t.target,r)&&(n.classesElementLookup[i]=e(r.not(t.target).get()))}))},_removeClass:function(e,t,n){return this._toggleClass(e,t,n,!1)},_addClass:function(e,t,n){return this._toggleClass(e,t,n,!0)},_toggleClass:function(e,t,n,i){i="boolean"==typeof i?i:n;var r="string"==typeof e||null===e,o={extra:r?t:n,keys:r?e:t,element:r?this.element:e,add:i};return o.element.toggleClass(this._classes(o),i),this},_on:function(t,n,i){var r,o=this;"boolean"!=typeof t&&(i=n,n=t,t=!1),i?(n=r=e(n),this.bindings=this.bindings.add(n)):(i=n,n=this.element,r=this.widget()),e.each(i,(function(i,a){function s(){if(t||!0!==o.options.disabled&&!e(this).hasClass("ui-state-disabled"))return("string"==typeof a?o[a]:a).apply(o,arguments)}"string"!=typeof a&&(s.guid=a.guid=a.guid||s.guid||e.guid++);var u=i.match(/^([\w:-]*)\s*(.*)$/),c=u[1]+o.eventNamespace,l=u[2];l?r.on(c,l,s):n.on(c,s)}))},_off:function(t,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(n).off(n),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.focusable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:function(e,t){var n=this;return setTimeout((function(){return("string"==typeof e?n[e]:e).apply(n,arguments)}),t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(e(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(e(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,n,i){var r,o,a=this.options[t];if(i=i||{},(n=e.Event(n)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),n.target=this.element[0],o=n.originalEvent)for(r in o)r in n||(n[r]=o[r]);return this.element.trigger(n,i),!(e.isFunction(a)&&!1===a.apply(this.element[0],[n].concat(i))||n.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},(function(t,n){e.Widget.prototype["_"+t]=function(i,r,o){var a;"string"==typeof r&&(r={effect:r});var s=r?!0===r||"number"==typeof r?n:r.effect||n:t;"number"==typeof(r=r||{})&&(r={duration:r}),a=!e.isEmptyObject(r),r.complete=o,r.delay&&i.delay(r.delay),a&&e.effects&&e.effects.effect[s]?i[t](r):s!==t&&i[s]?i[s](r.duration,r.easing,o):i.queue((function(n){e(this)[t](),o&&o.call(i[0]),n()}))}})),e.widget})?i.apply(t,r):i)||(e.exports=o)},6177:function(e,t,n){var i,r,o;r=[n(3609),n(1870),n(5592),n(6891)],void 0===(o="function"==typeof(i=function(e){var t=!1;return e(document).on("mouseup",(function(){t=!1})),e.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,(function(e){return t._mouseDown(e)})).on("click."+this.widgetName,(function(n){if(!0===e.data(n.target,t.widgetName+".preventClickEvent"))return e.removeData(n.target,t.widgetName+".preventClickEvent"),n.stopImmediatePropagation(),!1})),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(n){if(!t){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(n),this._mouseDownEvent=n;var i=this,r=1===n.which,o=!("string"!=typeof this.options.cancel||!n.target.nodeName)&&e(n.target).closest(this.options.cancel).length;return!(r&&!o&&this._mouseCapture(n)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){i.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(n)&&this._mouseDelayMet(n)&&(this._mouseStarted=!1!==this._mouseStart(n),!this._mouseStarted)?(n.preventDefault(),0):(!0===e.data(n.target,this.widgetName+".preventClickEvent")&&e.removeData(n.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return i._mouseMove(e)},this._mouseUpDelegate=function(e){return i._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),n.preventDefault(),t=!0,0)))}},_mouseMove:function(t){if(this._mouseMoved){if(e.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(n){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,n.target===this._mouseDownEvent.target&&e.data(n.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(n)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,t=!1,n.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})?i.apply(t,r):i)||(e.exports=o)},6227:function(e,t,n){var i,r,o;r=[n(3609),n(6177),n(7053),n(5592),n(6891)],void 0===(o="function"==typeof(i=function(e){return e.widget("ui.slider",e.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var t,n,i=this.options,r=this.element.find(".ui-slider-handle"),o=[];for(n=i.values&&i.values.length||1,r.length>n&&(r.slice(n).remove(),r=r.slice(0,n)),t=r.length;t<n;t++)o.push("<span tabindex='0'></span>");this.handles=r.add(e(o.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each((function(t){e(this).data("ui-slider-handle-index",t).attr("tabIndex",0)}))},_createRange:function(){var t=this.options;t.range?(!0===t.range&&(t.values?t.values.length&&2!==t.values.length?t.values=[t.values[0],t.values[0]]:e.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=e("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==t.range&&"max"!==t.range||this._addClass(this.range,"ui-slider-range-"+t.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(t){var n,i,r,o,a,s,u,c=this,l=this.options;return!l.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),n={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(n),r=this._valueMax()-this._valueMin()+1,this.handles.each((function(t){var n=Math.abs(i-c.values(t));(r>n||r===n&&(t===c._lastChangedValue||c.values(t)===l.min))&&(r=n,o=e(this),a=t)})),!1!==this._start(t,a)&&(this._mouseSliding=!0,this._handleIndex=a,this._addClass(o,null,"ui-state-active"),o.trigger("focus"),s=o.offset(),u=!e(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=u?{left:0,top:0}:{left:t.pageX-s.left-o.width()/2,top:t.pageY-s.top-o.height()/2-(parseInt(o.css("borderTopWidth"),10)||0)-(parseInt(o.css("borderBottomWidth"),10)||0)+(parseInt(o.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,a,i),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(e){var t={x:e.pageX,y:e.pageY},n=this._normValueFromMouse(t);return this._slide(e,this._handleIndex,n),!1},_mouseStop:function(e){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(e,this._handleIndex),this._change(e,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(e){var t,n,i,r,o;return"horizontal"===this.orientation?(t=this.elementSize.width,n=e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(t=this.elementSize.height,n=e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(i=n/t)>1&&(i=1),i<0&&(i=0),"vertical"===this.orientation&&(i=1-i),r=this._valueMax()-this._valueMin(),o=this._valueMin()+i*r,this._trimAlignValue(o)},_uiHash:function(e,t,n){var i={handle:this.handles[e],handleIndex:e,value:void 0!==t?t:this.value()};return this._hasMultipleValues()&&(i.value=void 0!==t?t:this.values(e),i.values=n||this.values()),i},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(e,t){return this._trigger("start",e,this._uiHash(t))},_slide:function(e,t,n){var i,r=this.value(),o=this.values();this._hasMultipleValues()&&(i=this.values(t?0:1),r=this.values(t),2===this.options.values.length&&!0===this.options.range&&(n=0===t?Math.min(i,n):Math.max(i,n)),o[t]=n),n!==r&&!1!==this._trigger("slide",e,this._uiHash(t,n,o))&&(this._hasMultipleValues()?this.values(t,n):this.value(n))},_stop:function(e,t){this._trigger("stop",e,this._uiHash(t))},_change:function(e,t){this._keySliding||this._mouseSliding||(this._lastChangedValue=t,this._trigger("change",e,this._uiHash(t)))},value:function(e){return arguments.length?(this.options.value=this._trimAlignValue(e),this._refreshValue(),void this._change(null,0)):this._value()},values:function(t,n){var i,r,o;if(arguments.length>1)return this.options.values[t]=this._trimAlignValue(n),this._refreshValue(),void this._change(null,t);if(!arguments.length)return this._values();if(!e.isArray(arguments[0]))return this._hasMultipleValues()?this._values(t):this.value();for(i=this.options.values,r=arguments[0],o=0;o<i.length;o+=1)i[o]=this._trimAlignValue(r[o]),this._change(null,o);this._refreshValue()},_setOption:function(t,n){var i,r=0;switch("range"===t&&!0===this.options.range&&("min"===n?(this.options.value=this._values(0),this.options.values=null):"max"===n&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),e.isArray(this.options.values)&&(r=this.options.values.length),this._super(t,n),t){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(n),this.handles.css("horizontal"===n?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),i=r-1;i>=0;i--)this._change(null,i);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(e){this._super(e),this._toggleClass(null,"ui-state-disabled",!!e)},_value:function(){var e=this.options.value;return this._trimAlignValue(e)},_values:function(e){var t,n,i;if(arguments.length)return t=this.options.values[e],this._trimAlignValue(t);if(this._hasMultipleValues()){for(n=this.options.values.slice(),i=0;i<n.length;i+=1)n[i]=this._trimAlignValue(n[i]);return n}return[]},_trimAlignValue:function(e){if(e<=this._valueMin())return this._valueMin();if(e>=this._valueMax())return this._valueMax();var t=this.options.step>0?this.options.step:1,n=(e-this._valueMin())%t,i=e-n;return 2*Math.abs(n)>=t&&(i+=n>0?t:-t),parseFloat(i.toFixed(5))},_calculateNewMax:function(){var e=this.options.max,t=this._valueMin(),n=this.options.step;(e=Math.round((e-t)/n)*n+t)>this.options.max&&(e-=n),this.max=parseFloat(e.toFixed(this._precision()))},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var t=e.toString(),n=t.indexOf(".");return-1===n?0:t.length-n-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(e){"vertical"===e&&this.range.css({width:"",left:""}),"horizontal"===e&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var t,n,i,r,o,a=this.options.range,s=this.options,u=this,c=!this._animateOff&&s.animate,l={};this._hasMultipleValues()?this.handles.each((function(i){n=(u.values(i)-u._valueMin())/(u._valueMax()-u._valueMin())*100,l["horizontal"===u.orientation?"left":"bottom"]=n+"%",e(this).stop(1,1)[c?"animate":"css"](l,s.animate),!0===u.options.range&&("horizontal"===u.orientation?(0===i&&u.range.stop(1,1)[c?"animate":"css"]({left:n+"%"},s.animate),1===i&&u.range[c?"animate":"css"]({width:n-t+"%"},{queue:!1,duration:s.animate})):(0===i&&u.range.stop(1,1)[c?"animate":"css"]({bottom:n+"%"},s.animate),1===i&&u.range[c?"animate":"css"]({height:n-t+"%"},{queue:!1,duration:s.animate}))),t=n})):(i=this.value(),r=this._valueMin(),o=this._valueMax(),n=o!==r?(i-r)/(o-r)*100:0,l["horizontal"===this.orientation?"left":"bottom"]=n+"%",this.handle.stop(1,1)[c?"animate":"css"](l,s.animate),"min"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:n+"%"},s.animate),"max"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:100-n+"%"},s.animate),"min"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:n+"%"},s.animate),"max"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:100-n+"%"},s.animate))},_handleEvents:{keydown:function(t){var n,i,r,o=e(t.target).data("ui-slider-handle-index");switch(t.keyCode){case e.ui.keyCode.HOME:case e.ui.keyCode.END:case e.ui.keyCode.PAGE_UP:case e.ui.keyCode.PAGE_DOWN:case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(e(t.target),null,"ui-state-active"),!1===this._start(t,o)))return}switch(r=this.options.step,n=i=this._hasMultipleValues()?this.values(o):this.value(),t.keyCode){case e.ui.keyCode.HOME:i=this._valueMin();break;case e.ui.keyCode.END:i=this._valueMax();break;case e.ui.keyCode.PAGE_UP:i=this._trimAlignValue(n+(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(n-(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:if(n===this._valueMax())return;i=this._trimAlignValue(n+r);break;case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(n===this._valueMin())return;i=this._trimAlignValue(n-r)}this._slide(t,o,i)},keyup:function(t){var n=e(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,n),this._change(t,n),this._removeClass(e(t.target),null,"ui-state-active"))}}})})?i.apply(t,r):i)||(e.exports=o)},5666:function(e){var t=function(e){"use strict";var t,n=Object.prototype,i=n.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,i){var r=t&&t.prototype instanceof v?t:v,o=Object.create(r.prototype),a=new I(i||[]);return o._invoke=function(e,t,n){var i=h;return function(r,o){if(i===p)throw new Error("Generator is already running");if(i===f){if("throw"===r)throw o;return E()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=p;var u=l(e,t,n);if("normal"===u.type){if(i=n.done?f:d,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=f,n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var h="suspendedStart",d="suspendedYield",p="executing",f="completed",g={};function v(){}function m(){}function b(){}var y={};y[o]=function(){return this};var w=Object.getPrototypeOf,_=w&&w(w(R([])));_&&_!==n&&i.call(_,o)&&(y=_);var x=b.prototype=v.prototype=Object.create(y);function P(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(r,o,a,s){var u=l(e[r],e,o);if("throw"!==u.type){var c=u.arg,h=c.value;return h&&"object"==typeof h&&i.call(h,"__await")?t.resolve(h.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(h).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(u.arg)}var r;this._invoke=function(e,i){function o(){return new t((function(t,r){n(e,i,t,r)}))}return r=r?r.then(o,o):o()}}function C(e,n){var i=e.iterator[n.method];if(i===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,C(e,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var r=l(i,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var o=r.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function R(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function n(){for(;++r<e.length;)if(i.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:E}}function E(){return{value:t,done:!0}}return m.prototype=x.constructor=b,b.constructor=m,m.displayName=u(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,s,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},P(k.prototype),k.prototype[a]=function(){return this},e.AsyncIterator=k,e.async=function(t,n,i,r,o){void 0===o&&(o=Promise);var a=new k(c(t,n,i,r),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(x),u(x,s,"Generator"),x[o]=function(){return this},x.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var i=t.pop();if(i in e)return n.value=i,n.done=!1,n}return n.done=!0,n}},e.values=R,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(i,r){return s.type="throw",s.arg=e,n.next=i,r&&(n.method="next",n.arg=t),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;T(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:R(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}},3609:function(e){"use strict";e.exports=jQuery}},__webpack_module_cache__={},deferred;function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.m=__webpack_modules__,deferred=[],__webpack_require__.O=function(e,t,n,i){if(!t){var r=1/0;for(s=0;s<deferred.length;s++){t=deferred[s][0],n=deferred[s][1],i=deferred[s][2];for(var o=!0,a=0;a<t.length;a++)(!1&i||r>=i)&&Object.keys(__webpack_require__.O).every((function(e){return __webpack_require__.O[e](t[a])}))?t.splice(a--,1):(o=!1,i<r&&(r=i));o&&(deferred.splice(s--,1),e=n())}return e}i=i||0;for(var s=deferred.length;s>0&&deferred[s-1][2]>i;s--)deferred[s]=deferred[s-1];deferred[s]=[t,n,i]},__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=function(e,t){for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){var e={898:0};__webpack_require__.O.j=function(t){return 0===e[t]};var t=function(t,n){var i,r,o=n[0],a=n[1],s=n[2],u=0;for(i in a)__webpack_require__.o(a,i)&&(__webpack_require__.m[i]=a[i]);for(s&&s(__webpack_require__),t&&t(n);u<o.length;u++)r=o[u],__webpack_require__.o(e,r)&&e[r]&&e[r][0](),e[o[u]]=0;__webpack_require__.O()},n=self.webpackChunk_internetarchive_bookreader=self.webpackChunk_internetarchive_bookreader||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}();var __webpack_exports__=__webpack_require__(6969);__webpack_exports__=__webpack_require__.O(__webpack_exports__)})();
2
+ !function(){var t,e={2617:function(t){t.exports=function(){var t={};Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(t){return!(!t||!t.Window)&&t instanceof t.Window};var e={};Object.defineProperty(e,"__esModule",{value:!0}),e.getWindow=function(e){return(0,t.default)(e)?e:(e.ownerDocument||e).defaultView||r.window},e.init=i,e.window=e.realWindow=void 0;var n=void 0;e.realWindow=n;var r=void 0;function i(t){e.realWindow=n=t;var i=t.document.createTextNode("");i.ownerDocument!==t.document&&"function"==typeof t.wrap&&t.wrap(i)===i&&(t=t.wrap(t)),e.window=r=t}e.window=r,"undefined"!=typeof window&&window&&i(window);var o={};function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var s=function(t){return!!t&&"object"===a(t)},u=function(t){return"function"==typeof t},c={window:function(n){return n===e.window||(0,t.default)(n)},docFrag:function(t){return s(t)&&11===t.nodeType},object:s,func:u,number:function(t){return"number"==typeof t},bool:function(t){return"boolean"==typeof t},string:function(t){return"string"==typeof t},element:function(t){if(!t||"object"!==a(t))return!1;var n=e.getWindow(t)||e.window;return/object|function/.test("undefined"==typeof Element?"undefined":a(Element))?t instanceof Element||t instanceof n.Element:1===t.nodeType&&"string"==typeof t.nodeName},plainObject:function(t){return s(t)&&!!t.constructor&&/function Object\b/.test(t.constructor.toString())},array:function(t){return s(t)&&void 0!==t.length&&u(t.splice)}};o.default=c;var l={};function f(t){var e=t.interaction;if("drag"===e.prepared.name){var n=e.prepared.axis;"x"===n?(e.coords.cur.page.y=e.coords.start.page.y,e.coords.cur.client.y=e.coords.start.client.y,e.coords.velocity.client.y=0,e.coords.velocity.page.y=0):"y"===n&&(e.coords.cur.page.x=e.coords.start.page.x,e.coords.cur.client.x=e.coords.start.client.x,e.coords.velocity.client.x=0,e.coords.velocity.page.x=0)}}function d(t){var e=t.iEvent,n=t.interaction;if("drag"===n.prepared.name){var r=n.prepared.axis;if("x"===r||"y"===r){var i="x"===r?"y":"x";e.page[i]=n.coords.start.page[i],e.client[i]=n.coords.start.client[i],e.delta[i]=0}}}Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var p={id:"actions/drag",install:function(t){var e=t.actions,n=t.Interactable,r=t.defaults;n.prototype.draggable=p.draggable,e.map.drag=p,e.methodDict.drag="draggable",r.actions.drag=p.defaults},listeners:{"interactions:before-action-move":f,"interactions:action-resume":f,"interactions:action-move":d,"auto-start:check":function(t){var e=t.interaction,n=t.interactable,r=t.buttons,i=n.options.drag;if(i&&i.enabled&&(!e.pointerIsDown||!/mouse|pointer/.test(e.pointerType)||0!=(r&n.options.drag.mouseButtons)))return t.action={name:"drag",axis:"start"===i.lockAxis?i.startAxis:i.lockAxis},!1}},draggable:function(t){return o.default.object(t)?(this.options.drag.enabled=!1!==t.enabled,this.setPerAction("drag",t),this.setOnEvents("drag",t),/^(xy|x|y|start)$/.test(t.lockAxis)&&(this.options.drag.lockAxis=t.lockAxis),/^(xy|x|y)$/.test(t.startAxis)&&(this.options.drag.startAxis=t.startAxis),this):o.default.bool(t)?(this.options.drag.enabled=t,this):this.options.drag},beforeMove:f,move:d,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"}},h=p;l.default=h;var v={};Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0;var g={init:function(t){var e=t;g.document=e.document,g.DocumentFragment=e.DocumentFragment||m,g.SVGElement=e.SVGElement||m,g.SVGSVGElement=e.SVGSVGElement||m,g.SVGElementInstance=e.SVGElementInstance||m,g.Element=e.Element||m,g.HTMLElement=e.HTMLElement||g.Element,g.Event=e.Event,g.Touch=e.Touch||m,g.PointerEvent=e.PointerEvent||e.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function m(){}var y=g;v.default=y;var b={};Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var w={init:function(t){var e=v.default.Element,n=t.navigator||{};w.supportsTouch="ontouchstart"in t||o.default.func(t.DocumentTouch)&&v.default.document instanceof t.DocumentTouch,w.supportsPointerEvent=!1!==n.pointerEnabled&&!!v.default.PointerEvent,w.isIOS=/iP(hone|od|ad)/.test(n.platform),w.isIOS7=/iP(hone|od|ad)/.test(n.platform)&&/OS 7[^\d]/.test(n.appVersion),w.isIe9=/MSIE 9/.test(n.userAgent),w.isOperaMobile="Opera"===n.appName&&w.supportsTouch&&/Presto/.test(n.userAgent),w.prefixedMatchesSelector="matches"in e.prototype?"matches":"webkitMatchesSelector"in e.prototype?"webkitMatchesSelector":"mozMatchesSelector"in e.prototype?"mozMatchesSelector":"oMatchesSelector"in e.prototype?"oMatchesSelector":"msMatchesSelector",w.pEventTypes=w.supportsPointerEvent?v.default.PointerEvent===t.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,w.wheelEvent=v.default.document&&"onmousewheel"in v.default.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},x=w;b.default=x;var S={};function _(t){var e=t.parentNode;if(o.default.docFrag(e)){for(;(e=e.host)&&o.default.docFrag(e););return e}return e}function P(t,n){return e.window!==e.realWindow&&(n=n.replace(/\/deep\//g," ")),t[b.default.prefixedMatchesSelector](n)}Object.defineProperty(S,"__esModule",{value:!0}),S.closest=function(t,e){for(;o.default.element(t);){if(P(t,e))return t;t=_(t)}return null},S.getActualElement=function(t){return t.correspondingUseElement||t},S.getElementClientRect=T,S.getElementRect=function(t){var n=T(t);if(!b.default.isIOS7&&n){var r=E(e.getWindow(t));n.left+=r.x,n.right+=r.x,n.top+=r.y,n.bottom+=r.y}return n},S.getPath=function(t){for(var e=[];t;)e.push(t),t=_(t);return e},S.getScrollXY=E,S.indexOfDeepestElement=function(t){for(var n,r=[],i=0;i<t.length;i++){var o=t[i],a=t[n];if(o&&i!==n)if(a){var s=k(o),u=k(a);if(s!==o.ownerDocument)if(u!==o.ownerDocument)if(s!==u){r=r.length?r:O(a);var c=void 0;if(a instanceof v.default.HTMLElement&&o instanceof v.default.SVGElement&&!(o instanceof v.default.SVGSVGElement)){if(o===u)continue;c=o.ownerSVGElement}else c=o;for(var l=O(c,a.ownerDocument),f=0;l[f]&&l[f]===r[f];)f++;var d=[l[f-1],l[f],r[f]];if(d[0])for(var p=d[0].lastChild;p;){if(p===d[1]){n=i,r=l;break}if(p===d[2])break;p=p.previousSibling}}else h=o,g=a,(parseInt(e.getWindow(h).getComputedStyle(h).zIndex,10)||0)>=(parseInt(e.getWindow(g).getComputedStyle(g).zIndex,10)||0)&&(n=i);else n=i}else n=i}var h,g;return n},S.matchesSelector=P,S.matchesUpTo=function(t,e,n){for(;o.default.element(t);){if(P(t,e))return!0;if((t=_(t))===n)return P(t,e)}return!1},S.nodeContains=function(t,e){if(t.contains)return t.contains(e);for(;e;){if(e===t)return!0;e=e.parentNode}return!1},S.parentNode=_,S.trySelector=function(t){return!!o.default.string(t)&&(v.default.document.querySelector(t),!0)};var k=function(t){return t.parentNode||t.host};function O(t,e){for(var n,r=[],i=t;(n=k(i))&&i!==e&&n!==i.ownerDocument;)r.unshift(i),i=n;return r}function E(t){return{x:(t=t||e.window).scrollX||t.document.documentElement.scrollLeft,y:t.scrollY||t.document.documentElement.scrollTop}}function T(t){var e=t instanceof v.default.SVGElement?t.getBoundingClientRect():t.getClientRects()[0];return e&&{left:e.left,right:e.right,top:e.top,bottom:e.bottom,width:e.width||e.right-e.left,height:e.height||e.bottom-e.top}}var C={};Object.defineProperty(C,"__esModule",{value:!0}),C.default=function(t,e){for(var n in e)t[n]=e[n];return t};var j={};function M(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function R(t,e,n){return"parent"===t?(0,S.parentNode)(n):"self"===t?e.getRect(n):(0,S.closest)(n,t)}Object.defineProperty(j,"__esModule",{value:!0}),j.addEdges=function(t,e,n){t.left&&(e.left+=n.x),t.right&&(e.right+=n.x),t.top&&(e.top+=n.y),t.bottom&&(e.bottom+=n.y),e.width=e.right-e.left,e.height=e.bottom-e.top},j.getStringOptionResult=R,j.rectToXY=function(t){return t&&{x:"x"in t?t.x:t.left,y:"y"in t?t.y:t.top}},j.resolveRectLike=function(t,e,n,r){var i,a=t;return o.default.string(a)?a=R(a,e,n):o.default.func(a)&&(a=a.apply(void 0,function(t){if(Array.isArray(t))return M(t)}(i=r)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(i)||function(t,e){if(t){if("string"==typeof t)return M(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(t,e):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),o.default.element(a)&&(a=(0,S.getElementRect)(a)),a},j.tlbrToXywh=function(t){return!t||"x"in t&&"y"in t||((t=(0,C.default)({},t)).x=t.left||0,t.y=t.top||0,t.width=t.width||(t.right||0)-t.x,t.height=t.height||(t.bottom||0)-t.y),t},j.xywhToTlbr=function(t){return!t||"left"in t&&"top"in t||((t=(0,C.default)({},t)).left=t.x||0,t.top=t.y||0,t.right=t.right||t.left+t.width,t.bottom=t.bottom||t.top+t.height),t};var A={};Object.defineProperty(A,"__esModule",{value:!0}),A.default=function(t,e,n){var r=t.options[n],i=r&&r.origin||t.options.origin,o=(0,j.resolveRectLike)(i,t,e,[t&&e]);return(0,j.rectToXY)(o)||{x:0,y:0}};var I={};function D(t){return t.trim().split(/ +/)}Object.defineProperty(I,"__esModule",{value:!0}),I.default=function t(e,n,r){if(r=r||{},o.default.string(e)&&-1!==e.search(" ")&&(e=D(e)),o.default.array(e))return e.reduce(function(e,i){return(0,C.default)(e,t(i,n,r))},r);if(o.default.object(e)&&(n=e,e=""),o.default.func(n))r[e]=r[e]||[],r[e].push(n);else if(o.default.array(n))for(var i=0;i<n.length;i++){var a;a=n[i],t(e,a,r)}else if(o.default.object(n))for(var s in n){var u=D(s).map(function(t){return"".concat(e).concat(t)});t(u,n[s],r)}return r};var L={};Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0,L.default=function(t,e){return Math.sqrt(t*t+e*e)};var $={};Object.defineProperty($,"__esModule",{value:!0}),$.default=function(t,e){t.__set||(t.__set={});var n=function(n){"function"!=typeof t[n]&&"__set"!==n&&Object.defineProperty(t,n,{get:function(){return n in t.__set?t.__set[n]:t.__set[n]=e[n]},set:function(e){t.__set[n]=e},configurable:!0})};for(var r in e)n(r);return t};var N={};function F(t){return t instanceof v.default.Event||t instanceof v.default.Touch}function U(t,e,n){return t=t||"page",(n=n||{}).x=e[t+"X"],n.y=e[t+"Y"],n}function B(t,e){return e=e||{x:0,y:0},b.default.isOperaMobile&&F(t)?(U("screen",t,e),e.x+=window.scrollX,e.y+=window.scrollY):U("page",t,e),e}function z(t,e){return e=e||{},b.default.isOperaMobile&&F(t)?U("screen",t,e):U("client",t,e),e}function W(t){var e=[];return o.default.array(t)?(e[0]=t[0],e[1]=t[1]):"touchend"===t.type?1===t.touches.length?(e[0]=t.touches[0],e[1]=t.changedTouches[0]):0===t.touches.length&&(e[0]=t.changedTouches[0],e[1]=t.changedTouches[1]):(e[0]=t.touches[0],e[1]=t.touches[1]),e}function H(t){for(var e={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},n=0;n<t.length;n++){var r=t[n];for(var i in e)e[i]+=r[i]}for(var o in e)e[o]/=t.length;return e}Object.defineProperty(N,"__esModule",{value:!0}),N.coordsToEvent=function(t){return{coords:t,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}},N.copyCoords=function(t,e){t.page=t.page||{},t.page.x=e.page.x,t.page.y=e.page.y,t.client=t.client||{},t.client.x=e.client.x,t.client.y=e.client.y,t.timeStamp=e.timeStamp},N.getClientXY=z,N.getEventTargets=function(t){var e=o.default.func(t.composedPath)?t.composedPath():t.path;return[S.getActualElement(e?e[0]:t.target),S.getActualElement(t.currentTarget)]},N.getPageXY=B,N.getPointerId=function(t){return o.default.number(t.pointerId)?t.pointerId:t.identifier},N.getPointerType=function(t){return o.default.string(t.pointerType)?t.pointerType:o.default.number(t.pointerType)?[void 0,void 0,"touch","pen","mouse"][t.pointerType]:/touch/.test(t.type||"")||t instanceof v.default.Touch?"touch":"mouse"},N.getTouchPair=W,N.getXY=U,N.isNativePointer=F,N.newCoords=function(){return{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},N.pointerAverage=H,Object.defineProperty(N,"pointerExtend",{enumerable:!0,get:function(){return $.default}}),N.setCoordDeltas=function(t,e,n){t.page.x=n.page.x-e.page.x,t.page.y=n.page.y-e.page.y,t.client.x=n.client.x-e.client.x,t.client.y=n.client.y-e.client.y,t.timeStamp=n.timeStamp-e.timeStamp},N.setCoordVelocity=function(t,e){var n=Math.max(e.timeStamp/1e3,.001);t.page.x=e.page.x/n,t.page.y=e.page.y/n,t.client.x=e.client.x/n,t.client.y=e.client.y/n,t.timeStamp=n},N.setCoords=function(t,e,n){var r=e.length>1?H(e):e[0];B(r,t.page),z(r,t.client),t.timeStamp=n},N.setZeroCoords=function(t){t.page.x=0,t.page.y=0,t.client.x=0,t.client.y=0},N.touchAngle=function(t,e){var n=e+"X",r=e+"Y",i=W(t),o=i[1][n]-i[0][n],a=i[1][r]-i[0][r];return 180*Math.atan2(a,o)/Math.PI},N.touchBBox=function(t){if(!t.length)return null;var e=W(t),n=Math.min(e[0].pageX,e[1].pageX),r=Math.min(e[0].pageY,e[1].pageY),i=Math.max(e[0].pageX,e[1].pageX),o=Math.max(e[0].pageY,e[1].pageY);return{x:n,y:r,left:n,top:r,right:i,bottom:o,width:i-n,height:o-r}},N.touchDistance=function(t,e){var n=e+"X",r=e+"Y",i=W(t),o=i[0][n]-i[1][n],a=i[0][r]-i[1][r];return(0,L.default)(o,a)};var V={};function G(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(V,"__esModule",{value:!0}),V.BaseEvent=void 0;var q=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),G(this,"immediatePropagationStopped",!1),G(this,"propagationStopped",!1),this._interaction=e}var e,n;return e=t,(n=[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();V.BaseEvent=q,Object.defineProperty(q.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var X={};Object.defineProperty(X,"__esModule",{value:!0}),X.remove=X.merge=X.from=X.findIndex=X.find=X.contains=void 0,X.contains=function(t,e){return-1!==t.indexOf(e)},X.remove=function(t,e){return t.splice(t.indexOf(e),1)};var Y=function(t,e){for(var n=0;n<e.length;n++){var r=e[n];t.push(r)}return t};X.merge=Y,X.from=function(t){return Y([],t)};var Z=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n,t))return n;return-1};X.findIndex=Z,X.find=function(t,e){return t[Z(t,e)]};var K={};function J(t){return J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},J(t)}function Q(t,e){return Q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Q(t,e)}function tt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function et(t){return et=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},et(t)}function nt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(K,"__esModule",{value:!0}),K.DropEvent=void 0;var rt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Q(t,e)}(a,t);var e,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=et(r);if(i){var n=et(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===J(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return tt(t)}(this,t)});function a(t,e,n){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),nt(tt(r=o.call(this,e._interaction)),"dropzone",void 0),nt(tt(r),"dragEvent",void 0),nt(tt(r),"relatedTarget",void 0),nt(tt(r),"draggable",void 0),nt(tt(r),"propagationStopped",!1),nt(tt(r),"immediatePropagationStopped",!1);var i="dragleave"===n?t.prev:t.cur,s=i.element,u=i.dropzone;return r.type=n,r.target=s,r.currentTarget=s,r.dropzone=u,r.dragEvent=e,r.relatedTarget=e.target,r.draggable=e.interactable,r.timeStamp=e.timeStamp,r}return e=a,(n=[{key:"reject",value:function(){var t=this,e=this._interaction.dropState;if("dropactivate"===this.type||this.dropzone&&e.cur.dropzone===this.dropzone&&e.cur.element===this.target)if(e.prev.dropzone=this.dropzone,e.prev.element=this.target,e.rejected=!0,e.events.enter=null,this.stopImmediatePropagation(),"dropactivate"===this.type){var n=e.activeDrops,r=X.findIndex(n,function(e){var n=e.dropzone,r=e.element;return n===t.dropzone&&r===t.target});e.activeDrops.splice(r,1);var i=new a(e,this.dragEvent,"dropdeactivate");i.dropzone=this.dropzone,i.target=this.target,this.dropzone.fire(i)}else this.dropzone.fire(new a(e,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(V.BaseEvent);K.DropEvent=rt;var it={};function ot(t,e){for(var n=0;n<t.slice().length;n++){var r=t.slice()[n],i=r.dropzone,o=r.element;e.dropzone=i,e.target=o,i.fire(e),e.propagationStopped=e.immediatePropagationStopped=!1}}function at(t,e){for(var n=function(t,e){for(var n=t.interactables,r=[],i=0;i<n.list.length;i++){var a=n.list[i];if(a.options.drop.enabled){var s=a.options.drop.accept;if(!(o.default.element(s)&&s!==e||o.default.string(s)&&!S.matchesSelector(e,s)||o.default.func(s)&&!s({dropzone:a,draggableElement:e})))for(var u=o.default.string(a.target)?a._context.querySelectorAll(a.target):o.default.array(a.target)?a.target:[a.target],c=0;c<u.length;c++){var l=u[c];l!==e&&r.push({dropzone:a,element:l,rect:a.getRect(l)})}}}return r}(t,e),r=0;r<n.length;r++){var i=n[r];i.rect=i.dropzone.getRect(i.element)}return n}function st(t,e,n){for(var r=t.dropState,i=t.interactable,o=t.element,a=[],s=0;s<r.activeDrops.length;s++){var u=r.activeDrops[s],c=u.dropzone,l=u.element,f=u.rect;a.push(c.dropCheck(e,n,i,o,l,f)?l:null)}var d=S.indexOfDeepestElement(a);return r.activeDrops[d]||null}function ut(t,e,n){var r=t.dropState,i={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return"dragstart"===n.type&&(i.activate=new K.DropEvent(r,n,"dropactivate"),i.activate.target=null,i.activate.dropzone=null),"dragend"===n.type&&(i.deactivate=new K.DropEvent(r,n,"dropdeactivate"),i.deactivate.target=null,i.deactivate.dropzone=null),r.rejected||(r.cur.element!==r.prev.element&&(r.prev.dropzone&&(i.leave=new K.DropEvent(r,n,"dragleave"),n.dragLeave=i.leave.target=r.prev.element,n.prevDropzone=i.leave.dropzone=r.prev.dropzone),r.cur.dropzone&&(i.enter=new K.DropEvent(r,n,"dragenter"),n.dragEnter=r.cur.element,n.dropzone=r.cur.dropzone)),"dragend"===n.type&&r.cur.dropzone&&(i.drop=new K.DropEvent(r,n,"drop"),n.dropzone=r.cur.dropzone,n.relatedTarget=r.cur.element),"dragmove"===n.type&&r.cur.dropzone&&(i.move=new K.DropEvent(r,n,"dropmove"),i.move.dragmove=n,n.dropzone=r.cur.dropzone)),i}function ct(t,e){var n=t.dropState,r=n.activeDrops,i=n.cur,o=n.prev;e.leave&&o.dropzone.fire(e.leave),e.enter&&i.dropzone.fire(e.enter),e.move&&i.dropzone.fire(e.move),e.drop&&i.dropzone.fire(e.drop),e.deactivate&&ot(r,e.deactivate),n.prev.dropzone=i.dropzone,n.prev.element=i.element}function lt(t,e){var n=t.interaction,r=t.iEvent,i=t.event;if("dragmove"===r.type||"dragend"===r.type){var o=n.dropState;e.dynamicDrop&&(o.activeDrops=at(e,n.element));var a=r,s=st(n,a,i);o.rejected=o.rejected&&!!s&&s.dropzone===o.cur.dropzone&&s.element===o.cur.element,o.cur.dropzone=s&&s.dropzone,o.cur.element=s&&s.element,o.events=ut(n,0,a)}}Object.defineProperty(it,"__esModule",{value:!0}),it.default=void 0;var ft={id:"actions/drop",install:function(t){var e=t.actions,n=t.interactStatic,r=t.Interactable,i=t.defaults;t.usePlugin(l.default),r.prototype.dropzone=function(t){return function(t,e){if(o.default.object(e)){if(t.options.drop.enabled=!1!==e.enabled,e.listeners){var n=(0,I.default)(e.listeners),r=Object.keys(n).reduce(function(t,e){return t[/^(enter|leave)/.test(e)?"drag".concat(e):/^(activate|deactivate|move)/.test(e)?"drop".concat(e):e]=n[e],t},{});t.off(t.options.drop.listeners),t.on(r),t.options.drop.listeners=r}return o.default.func(e.ondrop)&&t.on("drop",e.ondrop),o.default.func(e.ondropactivate)&&t.on("dropactivate",e.ondropactivate),o.default.func(e.ondropdeactivate)&&t.on("dropdeactivate",e.ondropdeactivate),o.default.func(e.ondragenter)&&t.on("dragenter",e.ondragenter),o.default.func(e.ondragleave)&&t.on("dragleave",e.ondragleave),o.default.func(e.ondropmove)&&t.on("dropmove",e.ondropmove),/^(pointer|center)$/.test(e.overlap)?t.options.drop.overlap=e.overlap:o.default.number(e.overlap)&&(t.options.drop.overlap=Math.max(Math.min(1,e.overlap),0)),"accept"in e&&(t.options.drop.accept=e.accept),"checker"in e&&(t.options.drop.checker=e.checker),t}return o.default.bool(e)?(t.options.drop.enabled=e,t):t.options.drop}(this,t)},r.prototype.dropCheck=function(t,e,n,r,i,a){return function(t,e,n,r,i,a,s){var u=!1;if(!(s=s||t.getRect(a)))return!!t.options.drop.checker&&t.options.drop.checker(e,n,u,t,a,r,i);var c=t.options.drop.overlap;if("pointer"===c){var l=(0,A.default)(r,i,"drag"),f=N.getPageXY(e);f.x+=l.x,f.y+=l.y;var d=f.x>s.left&&f.x<s.right,p=f.y>s.top&&f.y<s.bottom;u=d&&p}var h=r.getRect(i);if(h&&"center"===c){var v=h.left+h.width/2,g=h.top+h.height/2;u=v>=s.left&&v<=s.right&&g>=s.top&&g<=s.bottom}return h&&o.default.number(c)&&(u=Math.max(0,Math.min(s.right,h.right)-Math.max(s.left,h.left))*Math.max(0,Math.min(s.bottom,h.bottom)-Math.max(s.top,h.top))/(h.width*h.height)>=c),t.options.drop.checker&&(u=t.options.drop.checker(e,n,u,t,a,r,i)),u}(this,t,e,n,r,i,a)},n.dynamicDrop=function(e){return o.default.bool(e)?(t.dynamicDrop=e,n):t.dynamicDrop},(0,C.default)(e.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),e.methodDict.drop="dropzone",t.dynamicDrop=!1,i.actions.drop=ft.defaults},listeners:{"interactions:before-action-start":function(t){var e=t.interaction;"drag"===e.prepared.name&&(e.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(t,e){var n=t.interaction,r=(t.event,t.iEvent);if("drag"===n.prepared.name){var i=n.dropState;i.activeDrops=null,i.events=null,i.activeDrops=at(e,n.element),i.events=ut(n,0,r),i.events.activate&&(ot(i.activeDrops,i.events.activate),e.fire("actions/drop:start",{interaction:n,dragEvent:r}))}},"interactions:action-move":lt,"interactions:after-action-move":function(t,e){var n=t.interaction,r=t.iEvent;"drag"===n.prepared.name&&(ct(n,n.dropState.events),e.fire("actions/drop:move",{interaction:n,dragEvent:r}),n.dropState.events={})},"interactions:action-end":function(t,e){if("drag"===t.interaction.prepared.name){var n=t.interaction,r=t.iEvent;lt(t,e),ct(n,n.dropState.events),e.fire("actions/drop:end",{interaction:n,dragEvent:r})}},"interactions:stop":function(t){var e=t.interaction;if("drag"===e.prepared.name){var n=e.dropState;n&&(n.activeDrops=null,n.events=null,n.cur.dropzone=null,n.cur.element=null,n.prev.dropzone=null,n.prev.element=null,n.rejected=!1)}}},getActiveDrops:at,getDrop:st,getDropEvents:ut,fireDropEvents:ct,defaults:{enabled:!1,accept:null,overlap:"pointer"}},dt=ft;it.default=dt;var pt={};function ht(t){var e=t.interaction,n=t.iEvent,r=t.phase;if("gesture"===e.prepared.name){var i=e.pointers.map(function(t){return t.pointer}),a="start"===r,s="end"===r,u=e.interactable.options.deltaSource;if(n.touches=[i[0],i[1]],a)n.distance=N.touchDistance(i,u),n.box=N.touchBBox(i),n.scale=1,n.ds=0,n.angle=N.touchAngle(i,u),n.da=0,e.gesture.startDistance=n.distance,e.gesture.startAngle=n.angle;else if(s){var c=e.prevEvent;n.distance=c.distance,n.box=c.box,n.scale=c.scale,n.ds=0,n.angle=c.angle,n.da=0}else n.distance=N.touchDistance(i,u),n.box=N.touchBBox(i),n.scale=n.distance/e.gesture.startDistance,n.angle=N.touchAngle(i,u),n.ds=n.scale-e.gesture.scale,n.da=n.angle-e.gesture.angle;e.gesture.distance=n.distance,e.gesture.angle=n.angle,o.default.number(n.scale)&&n.scale!==1/0&&!isNaN(n.scale)&&(e.gesture.scale=n.scale)}}Object.defineProperty(pt,"__esModule",{value:!0}),pt.default=void 0;var vt={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(t){var e=t.actions,n=t.Interactable,r=t.defaults;n.prototype.gesturable=function(t){return o.default.object(t)?(this.options.gesture.enabled=!1!==t.enabled,this.setPerAction("gesture",t),this.setOnEvents("gesture",t),this):o.default.bool(t)?(this.options.gesture.enabled=t,this):this.options.gesture},e.map.gesture=vt,e.methodDict.gesture="gesturable",r.actions.gesture=vt.defaults},listeners:{"interactions:action-start":ht,"interactions:action-move":ht,"interactions:action-end":ht,"interactions:new":function(t){t.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(t){if(!(t.interaction.pointers.length<2)){var e=t.interactable.options.gesture;if(e&&e.enabled)return t.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""}},gt=vt;pt.default=gt;var mt={};function yt(t,e,n,r,i,a,s){if(!e)return!1;if(!0===e){var u=o.default.number(a.width)?a.width:a.right-a.left,c=o.default.number(a.height)?a.height:a.bottom-a.top;if(s=Math.min(s,Math.abs(("left"===t||"right"===t?u:c)/2)),u<0&&("left"===t?t="right":"right"===t&&(t="left")),c<0&&("top"===t?t="bottom":"bottom"===t&&(t="top")),"left"===t){var l=u>=0?a.left:a.right;return n.x<l+s}if("top"===t){var f=c>=0?a.top:a.bottom;return n.y<f+s}if("right"===t)return n.x>(u>=0?a.right:a.left)-s;if("bottom"===t)return n.y>(c>=0?a.bottom:a.top)-s}return!!o.default.element(r)&&(o.default.element(e)?e===r:S.matchesUpTo(r,e,i))}function bt(t){var e=t.iEvent,n=t.interaction;if("resize"===n.prepared.name&&n.resizeAxes){var r=e;n.interactable.options.resize.square?("y"===n.resizeAxes?r.delta.x=r.delta.y:r.delta.y=r.delta.x,r.axes="xy"):(r.axes=n.resizeAxes,"x"===n.resizeAxes?r.delta.y=0:"y"===n.resizeAxes&&(r.delta.x=0))}}Object.defineProperty(mt,"__esModule",{value:!0}),mt.default=void 0;var wt={id:"actions/resize",before:["actions/drag"],install:function(t){var e=t.actions,n=t.browser,r=t.Interactable,i=t.defaults;wt.cursors=function(t){return t.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(n),wt.defaultMargin=n.supportsTouch||n.supportsPointerEvent?20:10,r.prototype.resizable=function(e){return function(t,e,n){return o.default.object(e)?(t.options.resize.enabled=!1!==e.enabled,t.setPerAction("resize",e),t.setOnEvents("resize",e),o.default.string(e.axis)&&/^x$|^y$|^xy$/.test(e.axis)?t.options.resize.axis=e.axis:null===e.axis&&(t.options.resize.axis=n.defaults.actions.resize.axis),o.default.bool(e.preserveAspectRatio)?t.options.resize.preserveAspectRatio=e.preserveAspectRatio:o.default.bool(e.square)&&(t.options.resize.square=e.square),t):o.default.bool(e)?(t.options.resize.enabled=e,t):t.options.resize}(this,e,t)},e.map.resize=wt,e.methodDict.resize="resizable",i.actions.resize=wt.defaults},listeners:{"interactions:new":function(t){t.interaction.resizeAxes="xy"},"interactions:action-start":function(t){!function(t){var e=t.iEvent,n=t.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var r=e,i=n.rect;n._rects={start:(0,C.default)({},i),corrected:(0,C.default)({},i),previous:(0,C.default)({},i),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},r.edges=n.prepared.edges,r.rect=n._rects.corrected,r.deltaRect=n._rects.delta}}(t),bt(t)},"interactions:action-move":function(t){!function(t){var e=t.iEvent,n=t.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var r=e,i=n.interactable.options.resize.invert,o="reposition"===i||"negate"===i,a=n.rect,s=n._rects,u=s.start,c=s.corrected,l=s.delta,f=s.previous;if((0,C.default)(f,c),o){if((0,C.default)(c,a),"reposition"===i){if(c.top>c.bottom){var d=c.top;c.top=c.bottom,c.bottom=d}if(c.left>c.right){var p=c.left;c.left=c.right,c.right=p}}}else c.top=Math.min(a.top,u.bottom),c.bottom=Math.max(a.bottom,u.top),c.left=Math.min(a.left,u.right),c.right=Math.max(a.right,u.left);for(var h in c.width=c.right-c.left,c.height=c.bottom-c.top,c)l[h]=c[h]-f[h];r.edges=n.prepared.edges,r.rect=c,r.deltaRect=l}}(t),bt(t)},"interactions:action-end":function(t){var e=t.iEvent,n=t.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var r=e;r.edges=n.prepared.edges,r.rect=n._rects.corrected,r.deltaRect=n._rects.delta}},"auto-start:check":function(t){var e=t.interaction,n=t.interactable,r=t.element,i=t.rect,a=t.buttons;if(i){var s=(0,C.default)({},e.coords.cur.page),u=n.options.resize;if(u&&u.enabled&&(!e.pointerIsDown||!/mouse|pointer/.test(e.pointerType)||0!=(a&u.mouseButtons))){if(o.default.object(u.edges)){var c={left:!1,right:!1,top:!1,bottom:!1};for(var l in c)c[l]=yt(l,u.edges[l],s,e._latestPointer.eventTarget,r,i,u.margin||wt.defaultMargin);c.left=c.left&&!c.right,c.top=c.top&&!c.bottom,(c.left||c.right||c.top||c.bottom)&&(t.action={name:"resize",edges:c})}else{var f="y"!==u.axis&&s.x>i.right-wt.defaultMargin,d="x"!==u.axis&&s.y>i.bottom-wt.defaultMargin;(f||d)&&(t.action={name:"resize",axes:(f?"x":"")+(d?"y":"")})}return!t.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(t){var e=t.edges,n=t.axis,r=t.name,i=wt.cursors,o=null;if(n)o=i[r+n];else if(e){for(var a="",s=["top","bottom","left","right"],u=0;u<s.length;u++){var c=s[u];e[c]&&(a+=c)}o=i[a]}return o},defaultMargin:null},xt=wt;mt.default=xt;var St={};Object.defineProperty(St,"__esModule",{value:!0}),St.default=void 0;var _t={id:"actions",install:function(t){t.usePlugin(pt.default),t.usePlugin(mt.default),t.usePlugin(l.default),t.usePlugin(it.default)}};St.default=_t;var Pt={};Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.default=void 0;var kt,Ot,Et=0,Tt={request:function(t){return kt(t)},cancel:function(t){return Ot(t)},init:function(t){if(kt=t.requestAnimationFrame,Ot=t.cancelAnimationFrame,!kt)for(var e=["ms","moz","webkit","o"],n=0;n<e.length;n++){var r=e[n];kt=t["".concat(r,"RequestAnimationFrame")],Ot=t["".concat(r,"CancelAnimationFrame")]||t["".concat(r,"CancelRequestAnimationFrame")]}kt=kt&&kt.bind(t),Ot=Ot&&Ot.bind(t),kt||(kt=function(e){var n=Date.now(),r=Math.max(0,16-(n-Et)),i=t.setTimeout(function(){e(n+r)},r);return Et=n+r,i},Ot=function(t){return clearTimeout(t)})}};Pt.default=Tt;var Ct={};Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.default=void 0,Ct.getContainer=Mt,Ct.getScroll=Rt,Ct.getScrollSize=function(t){return o.default.window(t)&&(t=window.document.body),{x:t.scrollWidth,y:t.scrollHeight}},Ct.getScrollSizeDelta=function(t,e){var n=t.interaction,r=t.element,i=n&&n.interactable.options[n.prepared.name].autoScroll;if(!i||!i.enabled)return e(),{x:0,y:0};var o=Mt(i.container,n.interactable,r),a=Rt(o);e();var s=Rt(o);return{x:s.x-a.x,y:s.y-a.y}};var jt={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(t){jt.isScrolling=!0,Pt.default.cancel(jt.i),t.autoScroll=jt,jt.interaction=t,jt.prevTime=jt.now(),jt.i=Pt.default.request(jt.scroll)},stop:function(){jt.isScrolling=!1,jt.interaction&&(jt.interaction.autoScroll=null),Pt.default.cancel(jt.i)},scroll:function(){var t=jt.interaction,e=t.interactable,n=t.element,r=t.prepared.name,i=e.options[r].autoScroll,a=Mt(i.container,e,n),s=jt.now(),u=(s-jt.prevTime)/1e3,c=i.speed*u;if(c>=1){var l={x:jt.x*c,y:jt.y*c};if(l.x||l.y){var f=Rt(a);o.default.window(a)?a.scrollBy(l.x,l.y):a&&(a.scrollLeft+=l.x,a.scrollTop+=l.y);var d=Rt(a),p={x:d.x-f.x,y:d.y-f.y};(p.x||p.y)&&e.fire({type:"autoscroll",target:n,interactable:e,delta:p,interaction:t,container:a})}jt.prevTime=s}jt.isScrolling&&(Pt.default.cancel(jt.i),jt.i=Pt.default.request(jt.scroll))},check:function(t,e){var n;return null==(n=t.options[e].autoScroll)?void 0:n.enabled},onInteractionMove:function(t){var e=t.interaction,n=t.pointer;if(e.interacting()&&jt.check(e.interactable,e.prepared.name))if(e.simulation)jt.x=jt.y=0;else{var r,i,a,s,u=e.interactable,c=e.element,l=e.prepared.name,f=u.options[l].autoScroll,d=Mt(f.container,u,c);if(o.default.window(d))s=n.clientX<jt.margin,r=n.clientY<jt.margin,i=n.clientX>d.innerWidth-jt.margin,a=n.clientY>d.innerHeight-jt.margin;else{var p=S.getElementClientRect(d);s=n.clientX<p.left+jt.margin,r=n.clientY<p.top+jt.margin,i=n.clientX>p.right-jt.margin,a=n.clientY>p.bottom-jt.margin}jt.x=i?1:s?-1:0,jt.y=a?1:r?-1:0,jt.isScrolling||(jt.margin=f.margin,jt.speed=f.speed,jt.start(e))}}};function Mt(t,n,r){return(o.default.string(t)?(0,j.getStringOptionResult)(t,n,r):t)||(0,e.getWindow)(r)}function Rt(t){return o.default.window(t)&&(t=window.document.body),{x:t.scrollLeft,y:t.scrollTop}}var At={id:"auto-scroll",install:function(t){var e=t.defaults,n=t.actions;t.autoScroll=jt,jt.now=function(){return t.now()},n.phaselessTypes.autoscroll=!0,e.perAction.autoScroll=jt.defaults},listeners:{"interactions:new":function(t){t.interaction.autoScroll=null},"interactions:destroy":function(t){t.interaction.autoScroll=null,jt.stop(),jt.interaction&&(jt.interaction=null)},"interactions:stop":jt.stop,"interactions:action-move":function(t){return jt.onInteractionMove(t)}}},It=At;Ct.default=It;var Dt={};Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.copyAction=function(t,e){return t.name=e.name,t.axis=e.axis,t.edges=e.edges,t},Dt.sign=void 0,Dt.warnOnce=function(t,n){var r=!1;return function(){return r||(e.window.console.warn(n),r=!0),t.apply(this,arguments)}},Dt.sign=function(t){return t>=0?1:-1};var Lt={};function $t(t){return o.default.bool(t)?(this.options.styleCursor=t,this):null===t?(delete this.options.styleCursor,this):this.options.styleCursor}function Nt(t){return o.default.func(t)?(this.options.actionChecker=t,this):null===t?(delete this.options.actionChecker,this):this.options.actionChecker}Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.default=void 0;var Ft={id:"auto-start/interactableMethods",install:function(t){var e=t.Interactable;e.prototype.getAction=function(e,n,r,i){var o=function(t,e,n,r,i){var o=t.getRect(r),a={action:null,interactable:t,interaction:n,element:r,rect:o,buttons:e.buttons||{0:1,1:4,3:8,4:16}[e.button]};return i.fire("auto-start:check",a),a.action}(this,n,r,i,t);return this.options.actionChecker?this.options.actionChecker(e,n,o,this,i,r):o},e.prototype.ignoreFrom=(0,Dt.warnOnce)(function(t){return this._backCompatOption("ignoreFrom",t)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),e.prototype.allowFrom=(0,Dt.warnOnce)(function(t){return this._backCompatOption("allowFrom",t)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),e.prototype.actionChecker=Nt,e.prototype.styleCursor=$t}};Lt.default=Ft;var Ut={};function Bt(t,e,n,r,i){return e.testIgnoreAllow(e.options[t.name],n,r)&&e.options[t.name].enabled&&Vt(e,n,t,i)?t:null}function zt(t,e,n,r,i,o,a){for(var s=0,u=r.length;s<u;s++){var c=r[s],l=i[s],f=c.getAction(e,n,t,l);if(f){var d=Bt(f,c,l,o,a);if(d)return{action:d,interactable:c,element:l}}}return{action:null,interactable:null,element:null}}function Wt(t,e,n,r,i){var a=[],s=[],u=r;function c(t){a.push(t),s.push(u)}for(;o.default.element(u);){a=[],s=[],i.interactables.forEachMatch(u,c);var l=zt(t,e,n,a,s,r,i);if(l.action&&!l.interactable.options[l.action.name].manualStart)return l;u=S.parentNode(u)}return{action:null,interactable:null,element:null}}function Ht(t,e,n){var r=e.action,i=e.interactable,o=e.element;r=r||{name:null},t.interactable=i,t.element=o,(0,Dt.copyAction)(t.prepared,r),t.rect=i&&r.name?i.getRect(o):null,Xt(t,n),n.fire("autoStart:prepared",{interaction:t})}function Vt(t,e,n,r){var i=t.options,o=i[n.name].max,a=i[n.name].maxPerElement,s=r.autoStart.maxInteractions,u=0,c=0,l=0;if(!(o&&a&&s))return!1;for(var f=0;f<r.interactions.list.length;f++){var d=r.interactions.list[f],p=d.prepared.name;if(d.interacting()){if(++u>=s)return!1;if(d.interactable===t){if((c+=p===n.name?1:0)>=o)return!1;if(d.element===e&&(l++,p===n.name&&l>=a))return!1}}}return s>0}function Gt(t,e){return o.default.number(t)?(e.autoStart.maxInteractions=t,this):e.autoStart.maxInteractions}function qt(t,e,n){var r=n.autoStart.cursorElement;r&&r!==t&&(r.style.cursor=""),t.ownerDocument.documentElement.style.cursor=e,t.style.cursor=e,n.autoStart.cursorElement=e?t:null}function Xt(t,e){var n=t.interactable,r=t.element,i=t.prepared;if("mouse"===t.pointerType&&n&&n.options.styleCursor){var a="";if(i.name){var s=n.options[i.name].cursorChecker;a=o.default.func(s)?s(i,n,r,t._interacting):e.actions.map[i.name].getCursor(i)}qt(t.element,a||"",e)}else e.autoStart.cursorElement&&qt(e.autoStart.cursorElement,"",e)}Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.default=void 0;var Yt={id:"auto-start/base",before:["actions"],install:function(t){var e=t.interactStatic,n=t.defaults;t.usePlugin(Lt.default),n.base.actionChecker=null,n.base.styleCursor=!0,(0,C.default)(n.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),e.maxInteractions=function(e){return Gt(e,t)},t.autoStart={maxInteractions:1/0,withinInteractionLimit:Vt,cursorElement:null}},listeners:{"interactions:down":function(t,e){var n=t.interaction,r=t.pointer,i=t.event,o=t.eventTarget;n.interacting()||Ht(n,Wt(n,r,i,o,e),e)},"interactions:move":function(t,e){!function(t,e){var n=t.interaction,r=t.pointer,i=t.event,o=t.eventTarget;"mouse"!==n.pointerType||n.pointerIsDown||n.interacting()||Ht(n,Wt(n,r,i,o,e),e)}(t,e),function(t,e){var n=t.interaction;if(n.pointerIsDown&&!n.interacting()&&n.pointerWasMoved&&n.prepared.name){e.fire("autoStart:before-start",t);var r=n.interactable,i=n.prepared.name;i&&r&&(r.options[i].manualStart||!Vt(r,n.element,n.prepared,e)?n.stop():(n.start(n.prepared,r,n.element),Xt(n,e)))}}(t,e)},"interactions:stop":function(t,e){var n=t.interaction,r=n.interactable;r&&r.options.styleCursor&&qt(n.element,"",e)}},maxInteractions:Gt,withinInteractionLimit:Vt,validateAction:Bt},Zt=Yt;Ut.default=Zt;var Kt={};Object.defineProperty(Kt,"__esModule",{value:!0}),Kt.default=void 0;var Jt={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(t,e){var n=t.interaction,r=t.eventTarget,i=t.dx,a=t.dy;if("drag"===n.prepared.name){var s=Math.abs(i),u=Math.abs(a),c=n.interactable.options.drag,l=c.startAxis,f=s>u?"x":s<u?"y":"xy";if(n.prepared.axis="start"===c.lockAxis?f[0]:c.lockAxis,"xy"!==f&&"xy"!==l&&l!==f){n.prepared.name=null;for(var d=r,p=function(t){if(t!==n.interactable){var i=n.interactable.options.drag;if(!i.manualStart&&t.testIgnoreAllow(i,d,r)){var o=t.getAction(n.downPointer,n.downEvent,n,d);if(o&&"drag"===o.name&&function(t,e){if(!e)return!1;var n=e.options.drag.startAxis;return"xy"===t||"xy"===n||n===t}(f,t)&&Ut.default.validateAction(o,t,d,r,e))return t}}};o.default.element(d);){var h=e.interactables.forEachMatch(d,p);if(h){n.prepared.name="drag",n.interactable=h,n.element=d;break}d=(0,S.parentNode)(d)}}}}}};Kt.default=Jt;var Qt={};function te(t){var e=t.prepared&&t.prepared.name;if(!e)return null;var n=t.interactable.options;return n[e].hold||n[e].delay}Object.defineProperty(Qt,"__esModule",{value:!0}),Qt.default=void 0;var ee={id:"auto-start/hold",install:function(t){var e=t.defaults;t.usePlugin(Ut.default),e.perAction.hold=0,e.perAction.delay=0},listeners:{"interactions:new":function(t){t.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(t){var e=t.interaction,n=te(e);n>0&&(e.autoStartHoldTimer=setTimeout(function(){e.start(e.prepared,e.interactable,e.element)},n))},"interactions:move":function(t){var e=t.interaction,n=t.duplicate;e.autoStartHoldTimer&&e.pointerWasMoved&&!n&&(clearTimeout(e.autoStartHoldTimer),e.autoStartHoldTimer=null)},"autoStart:before-start":function(t){var e=t.interaction;te(e)>0&&(e.prepared.name=null)}},getHoldDuration:te},ne=ee;Qt.default=ne;var re={};Object.defineProperty(re,"__esModule",{value:!0}),re.default=void 0;var ie={id:"auto-start",install:function(t){t.usePlugin(Ut.default),t.usePlugin(Qt.default),t.usePlugin(Kt.default)}};re.default=ie;var oe={};function ae(t){return/^(always|never|auto)$/.test(t)?(this.options.preventDefault=t,this):o.default.bool(t)?(this.options.preventDefault=t?"always":"never",this):this.options.preventDefault}function se(t){var e=t.interaction,n=t.event;e.interactable&&e.interactable.checkAndPreventDefault(n)}function ue(t){var n=t.Interactable;n.prototype.preventDefault=ae,n.prototype.checkAndPreventDefault=function(n){return function(t,n,r){var i=t.options.preventDefault;if("never"!==i)if("always"!==i){if(n.events.supportsPassive&&/^touch(start|move)$/.test(r.type)){var a=(0,e.getWindow)(r.target).document,s=n.getDocOptions(a);if(!s||!s.events||!1!==s.events.passive)return}/^(mouse|pointer|touch)*(down|start)/i.test(r.type)||o.default.element(r.target)&&(0,S.matchesSelector)(r.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||r.preventDefault()}else r.preventDefault()}(this,t,n)},t.interactions.docEvents.push({type:"dragstart",listener:function(e){for(var n=0;n<t.interactions.list.length;n++){var r=t.interactions.list[n];if(r.element&&(r.element===e.target||(0,S.nodeContains)(r.element,e.target)))return void r.interactable.checkAndPreventDefault(e)}}})}Object.defineProperty(oe,"__esModule",{value:!0}),oe.default=void 0,oe.install=ue;var ce={id:"core/interactablePreventDefault",install:ue,listeners:["down","move","up","cancel"].reduce(function(t,e){return t["interactions:".concat(e)]=se,t},{})};oe.default=ce;var le={};Object.defineProperty(le,"__esModule",{value:!0}),le.default=void 0,le.default={};var fe,de={};Object.defineProperty(de,"__esModule",{value:!0}),de.default=void 0,function(t){t.touchAction="touchAction",t.boxSizing="boxSizing",t.noListeners="noListeners"}(fe||(fe={})),fe.touchAction,fe.boxSizing,fe.noListeners;de.default={id:"dev-tools",install:function(){}};var pe={};Object.defineProperty(pe,"__esModule",{value:!0}),pe.default=function t(e){var n={};for(var r in e){var i=e[r];o.default.plainObject(i)?n[r]=t(i):o.default.array(i)?n[r]=X.from(i):n[r]=i}return n};var he={};function ve(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ge(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ge(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ge(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function me(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(he,"__esModule",{value:!0}),he.default=void 0,he.getRectOffset=we;var ye=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),me(this,"states",[]),me(this,"startOffset",{left:0,right:0,top:0,bottom:0}),me(this,"startDelta",void 0),me(this,"result",void 0),me(this,"endResult",void 0),me(this,"startEdges",void 0),me(this,"edges",void 0),me(this,"interaction",void 0),this.interaction=e,this.result=be(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}var e,n;return e=t,(n=[{key:"start",value:function(t,e){var n=t.phase,r=this.interaction,i=function(t){var e=t.interactable.options[t.prepared.name],n=e.modifiers;return n&&n.length?n:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(function(t){var n=e[t];return n&&n.enabled&&{options:n,methods:n._methods}}).filter(function(t){return!!t})}(r);this.prepareStates(i),this.startEdges=(0,C.default)({},r.edges),this.edges=(0,C.default)({},this.startEdges),this.startOffset=we(r.rect,e),this.startDelta={x:0,y:0};var o=this.fillArg({phase:n,pageCoords:e,preEnd:!1});return this.result=be(),this.startAll(o),this.result=this.setAll(o)}},{key:"fillArg",value:function(t){var e=this.interaction;return t.interaction=e,t.interactable=e.interactable,t.element=e.element,t.rect||(t.rect=e.rect),t.edges||(t.edges=this.startEdges),t.startOffset=this.startOffset,t}},{key:"startAll",value:function(t){for(var e=0;e<this.states.length;e++){var n=this.states[e];n.methods.start&&(t.state=n,n.methods.start(t))}}},{key:"setAll",value:function(t){var e=t.phase,n=t.preEnd,r=t.skipModifiers,i=t.rect,o=t.edges;t.coords=(0,C.default)({},t.pageCoords),t.rect=(0,C.default)({},i),t.edges=(0,C.default)({},o);for(var a=r?this.states.slice(r):this.states,s=be(t.coords,t.rect),u=0;u<a.length;u++){var c,l=a[u],f=l.options,d=(0,C.default)({},t.coords),p=null;null!=(c=l.methods)&&c.set&&this.shouldDo(f,n,e)&&(t.state=l,p=l.methods.set(t),j.addEdges(t.edges,t.rect,{x:t.coords.x-d.x,y:t.coords.y-d.y})),s.eventProps.push(p)}(0,C.default)(this.edges,t.edges),s.delta.x=t.coords.x-t.pageCoords.x,s.delta.y=t.coords.y-t.pageCoords.y,s.rectDelta.left=t.rect.left-i.left,s.rectDelta.right=t.rect.right-i.right,s.rectDelta.top=t.rect.top-i.top,s.rectDelta.bottom=t.rect.bottom-i.bottom;var h=this.result.coords,v=this.result.rect;if(h&&v){var g=s.rect.left!==v.left||s.rect.right!==v.right||s.rect.top!==v.top||s.rect.bottom!==v.bottom;s.changed=g||h.x!==s.coords.x||h.y!==s.coords.y}return s}},{key:"applyToInteraction",value:function(t){var e=this.interaction,n=t.phase,r=e.coords.cur,i=e.coords.start,o=this.result,a=this.startDelta,s=o.delta;"start"===n&&(0,C.default)(this.startDelta,o.delta);for(var u=0;u<2;u++){var c=ve([[i,a],[r,s]][u],2),l=c[0],f=c[1];l.page.x+=f.x,l.page.y+=f.y,l.client.x+=f.x,l.client.y+=f.y}var d=this.result.rectDelta,p=t.rect||e.rect;p.left+=d.left,p.right+=d.right,p.top+=d.top,p.bottom+=d.bottom,p.width=p.right-p.left,p.height=p.bottom-p.top}},{key:"setAndApply",value:function(t){var e=this.interaction,n=t.phase,r=t.preEnd,i=t.skipModifiers,o=this.setAll(this.fillArg({preEnd:r,phase:n,pageCoords:t.modifiedCoords||e.coords.cur.page}));if(this.result=o,!o.changed&&(!i||i<this.states.length)&&e.interacting())return!1;if(t.modifiedCoords){var a=e.coords.cur.page,s={x:t.modifiedCoords.x-a.x,y:t.modifiedCoords.y-a.y};o.coords.x+=s.x,o.coords.y+=s.y,o.delta.x+=s.x,o.delta.y+=s.y}this.applyToInteraction(t)}},{key:"beforeEnd",value:function(t){var e=t.interaction,n=t.event,r=this.states;if(r&&r.length){for(var i=!1,o=0;o<r.length;o++){var a=r[o];t.state=a;var s=a.options,u=a.methods,c=u.beforeEnd&&u.beforeEnd(t);if(c)return this.endResult=c,!1;i=i||!i&&this.shouldDo(s,!0,t.phase,!0)}i&&e.move({event:n,preEnd:!0})}}},{key:"stop",value:function(t){var e=t.interaction;if(this.states&&this.states.length){var n=(0,C.default)({states:this.states,interactable:e.interactable,element:e.element,rect:null},t);this.fillArg(n);for(var r=0;r<this.states.length;r++){var i=this.states[r];n.state=i,i.methods.stop&&i.methods.stop(n)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(t){this.states=[];for(var e=0;e<t.length;e++){var n=t[e],r=n.options,i=n.methods,o=n.name;this.states.push({options:r,methods:i,index:e,name:o})}return this.states}},{key:"restoreInteractionCoords",value:function(t){var e=t.interaction,n=e.coords,r=e.rect,i=e.modification;if(i.result){for(var o=i.startDelta,a=i.result,s=a.delta,u=a.rectDelta,c=[[n.start,o],[n.cur,s]],l=0;l<c.length;l++){var f=ve(c[l],2),d=f[0],p=f[1];d.page.x-=p.x,d.page.y-=p.y,d.client.x-=p.x,d.client.y-=p.y}r.left-=u.left,r.right-=u.right,r.top-=u.top,r.bottom-=u.bottom}}},{key:"shouldDo",value:function(t,e,n,r){return!(!t||!1===t.enabled||r&&!t.endOnly||t.endOnly&&!e||"start"===n&&!t.setStart)}},{key:"copyFrom",value:function(t){this.startOffset=t.startOffset,this.startDelta=t.startDelta,this.startEdges=t.startEdges,this.edges=t.edges,this.states=t.states.map(function(t){return(0,pe.default)(t)}),this.result=be((0,C.default)({},t.result.coords),(0,C.default)({},t.result.rect))}},{key:"destroy",value:function(){for(var t in this)this[t]=null}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function be(t,e){return{rect:e,coords:t,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function we(t,e){return t?{left:e.x-t.left,top:e.y-t.top,right:t.right-e.x,bottom:t.bottom-e.y}:{left:0,top:0,right:0,bottom:0}}he.default=ye;var xe={};function Se(t){var e=t.iEvent,n=t.interaction.modification.result;n&&(e.modifiers=n.eventProps)}Object.defineProperty(xe,"__esModule",{value:!0}),xe.addEventModifiers=Se,xe.default=void 0,xe.makeModifier=function(t,e){var n=t.defaults,r={start:t.start,set:t.set,beforeEnd:t.beforeEnd,stop:t.stop},i=function(t){var i=t||{};for(var o in i.enabled=!1!==i.enabled,n)o in i||(i[o]=n[o]);var a={options:i,methods:r,name:e,enable:function(){return i.enabled=!0,a},disable:function(){return i.enabled=!1,a}};return a};return e&&"string"==typeof e&&(i._defaults=n,i._methods=r),i};var _e={id:"modifiers/base",before:["actions"],install:function(t){t.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(t){var e=t.interaction;e.modification=new he.default(e)},"interactions:before-action-start":function(t){var e=t.interaction,n=t.interaction.modification;n.start(t,e.coords.start.page),e.edges=n.edges,n.applyToInteraction(t)},"interactions:before-action-move":function(t){var e=t.interaction,n=e.modification,r=n.setAndApply(t);return e.edges=n.edges,r},"interactions:before-action-end":function(t){var e=t.interaction,n=e.modification,r=n.beforeEnd(t);return e.edges=n.startEdges,r},"interactions:action-start":Se,"interactions:action-move":Se,"interactions:action-end":Se,"interactions:after-action-start":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:after-action-move":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:stop":function(t){return t.interaction.modification.stop(t)}}},Pe=_e;xe.default=Pe;var ke={};Object.defineProperty(ke,"__esModule",{value:!0}),ke.defaults=void 0,ke.defaults={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}};var Oe={};function Ee(t){return Ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ee(t)}function Te(t,e){return Te=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Te(t,e)}function Ce(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function je(t){return je=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},je(t)}function Me(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.InteractEvent=void 0;var Re=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Te(t,e)}(a,t);var e,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=je(r);if(i){var n=je(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Ee(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Ce(t)}(this,t)});function a(t,e,n,r,i,s,u){var c;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),Me(Ce(c=o.call(this,t)),"relatedTarget",null),Me(Ce(c),"screenX",void 0),Me(Ce(c),"screenY",void 0),Me(Ce(c),"button",void 0),Me(Ce(c),"buttons",void 0),Me(Ce(c),"ctrlKey",void 0),Me(Ce(c),"shiftKey",void 0),Me(Ce(c),"altKey",void 0),Me(Ce(c),"metaKey",void 0),Me(Ce(c),"page",void 0),Me(Ce(c),"client",void 0),Me(Ce(c),"delta",void 0),Me(Ce(c),"rect",void 0),Me(Ce(c),"x0",void 0),Me(Ce(c),"y0",void 0),Me(Ce(c),"t0",void 0),Me(Ce(c),"dt",void 0),Me(Ce(c),"duration",void 0),Me(Ce(c),"clientX0",void 0),Me(Ce(c),"clientY0",void 0),Me(Ce(c),"velocity",void 0),Me(Ce(c),"speed",void 0),Me(Ce(c),"swipe",void 0),Me(Ce(c),"axes",void 0),Me(Ce(c),"preEnd",void 0),i=i||t.element;var l=t.interactable,f=(l&&l.options||ke.defaults).deltaSource,d=(0,A.default)(l,i,n),p="start"===r,h="end"===r,v=p?Ce(c):t.prevEvent,g=p?t.coords.start:h?{page:v.page,client:v.client,timeStamp:t.coords.cur.timeStamp}:t.coords.cur;return c.page=(0,C.default)({},g.page),c.client=(0,C.default)({},g.client),c.rect=(0,C.default)({},t.rect),c.timeStamp=g.timeStamp,h||(c.page.x-=d.x,c.page.y-=d.y,c.client.x-=d.x,c.client.y-=d.y),c.ctrlKey=e.ctrlKey,c.altKey=e.altKey,c.shiftKey=e.shiftKey,c.metaKey=e.metaKey,c.button=e.button,c.buttons=e.buttons,c.target=i,c.currentTarget=i,c.preEnd=s,c.type=u||n+(r||""),c.interactable=l,c.t0=p?t.pointers[t.pointers.length-1].downTime:v.t0,c.x0=t.coords.start.page.x-d.x,c.y0=t.coords.start.page.y-d.y,c.clientX0=t.coords.start.client.x-d.x,c.clientY0=t.coords.start.client.y-d.y,c.delta=p||h?{x:0,y:0}:{x:c[f].x-v[f].x,y:c[f].y-v[f].y},c.dt=t.coords.delta.timeStamp,c.duration=c.timeStamp-c.t0,c.velocity=(0,C.default)({},t.coords.velocity[f]),c.speed=(0,L.default)(c.velocity.x,c.velocity.y),c.swipe=h||"inertiastart"===r?c.getSwipe():null,c}return e=a,(n=[{key:"getSwipe",value:function(){var t=this._interaction;if(t.prevEvent.speed<600||this.timeStamp-t.prevEvent.timeStamp>150)return null;var e=180*Math.atan2(t.prevEvent.velocityY,t.prevEvent.velocityX)/Math.PI;e<0&&(e+=360);var n=112.5<=e&&e<247.5,r=202.5<=e&&e<337.5;return{up:r,down:!r&&22.5<=e&&e<157.5,left:n,right:!n&&(292.5<=e||e<67.5),angle:e,speed:t.prevEvent.speed,velocity:{x:t.prevEvent.velocityX,y:t.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(V.BaseEvent);Oe.InteractEvent=Re,Object.defineProperties(Re.prototype,{pageX:{get:function(){return this.page.x},set:function(t){this.page.x=t}},pageY:{get:function(){return this.page.y},set:function(t){this.page.y=t}},clientX:{get:function(){return this.client.x},set:function(t){this.client.x=t}},clientY:{get:function(){return this.client.y},set:function(t){this.client.y=t}},dx:{get:function(){return this.delta.x},set:function(t){this.delta.x=t}},dy:{get:function(){return this.delta.y},set:function(t){this.delta.y=t}},velocityX:{get:function(){return this.velocity.x},set:function(t){this.velocity.x=t}},velocityY:{get:function(){return this.velocity.y},set:function(t){this.velocity.y=t}}});var Ae={};function Ie(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function De(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.PointerInfo=void 0;var Le=function(t,e,n){return e&&Ie(t.prototype,e),n&&Ie(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(function t(e,n,r,i,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),De(this,"id",void 0),De(this,"pointer",void 0),De(this,"event",void 0),De(this,"downTime",void 0),De(this,"downTarget",void 0),this.id=e,this.pointer=n,this.event=r,this.downTime=i,this.downTarget=o});Ae.PointerInfo=Le;var $e,Ne,Fe={};function Ue(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.Interaction=void 0,Object.defineProperty(Fe,"PointerInfo",{enumerable:!0,get:function(){return Ae.PointerInfo}}),Fe.default=Fe._ProxyValues=Fe._ProxyMethods=void 0,Fe._ProxyValues=$e,function(t){t.interactable="",t.element="",t.prepared="",t.pointerIsDown="",t.pointerWasMoved="",t._proxy=""}($e||(Fe._ProxyValues=$e={})),Fe._ProxyMethods=Ne,function(t){t.start="",t.move="",t.end="",t.stop="",t.interacting=""}(Ne||(Fe._ProxyMethods=Ne={}));var Be=0,ze=function(){function t(e){var n=this,r=e.pointerType,i=e.scopeFire;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Ue(this,"interactable",null),Ue(this,"element",null),Ue(this,"rect",null),Ue(this,"_rects",void 0),Ue(this,"edges",null),Ue(this,"_scopeFire",void 0),Ue(this,"prepared",{name:null,axis:null,edges:null}),Ue(this,"pointerType",void 0),Ue(this,"pointers",[]),Ue(this,"downEvent",null),Ue(this,"downPointer",{}),Ue(this,"_latestPointer",{pointer:null,event:null,eventTarget:null}),Ue(this,"prevEvent",null),Ue(this,"pointerIsDown",!1),Ue(this,"pointerWasMoved",!1),Ue(this,"_interacting",!1),Ue(this,"_ending",!1),Ue(this,"_stopped",!0),Ue(this,"_proxy",null),Ue(this,"simulation",null),Ue(this,"doMove",(0,Dt.warnOnce)(function(t){this.move(t)},"The interaction.doMove() method has been renamed to interaction.move()")),Ue(this,"coords",{start:N.newCoords(),prev:N.newCoords(),cur:N.newCoords(),delta:N.newCoords(),velocity:N.newCoords()}),Ue(this,"_id",Be++),this._scopeFire=i,this.pointerType=r;var o=this;this._proxy={};var a=function(t){Object.defineProperty(n._proxy,t,{get:function(){return o[t]}})};for(var s in $e)a(s);var u=function(t){Object.defineProperty(n._proxy,t,{value:function(){return o[t].apply(o,arguments)}})};for(var c in Ne)u(c);this._scopeFire("interactions:new",{interaction:this})}var e,n;return e=t,n=[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(t,e,n){var r=this.updatePointer(t,e,n,!0),i=this.pointers[r];this._scopeFire("interactions:down",{pointer:t,event:e,eventTarget:n,pointerIndex:r,pointerInfo:i,type:"down",interaction:this})}},{key:"start",value:function(t,e,n){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<("gesture"===t.name?2:1)||!e.options[t.name].enabled)&&((0,Dt.copyAction)(this.prepared,t),this.interactable=e,this.element=n,this.rect=e.getRect(n),this.edges=this.prepared.edges?(0,C.default)({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(t,e,n){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(t,e,n,!1);var r,i,o=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(r=this.coords.cur.client.x-this.coords.start.client.x,i=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=(0,L.default)(r,i)>this.pointerMoveTolerance);var a=this.getPointerIndex(t),s={pointer:t,pointerIndex:a,pointerInfo:this.pointers[a],event:e,type:"move",eventTarget:n,dx:r,dy:i,duplicate:o,interaction:this};o||N.setCoordVelocity(this.coords.velocity,this.coords.delta),this._scopeFire("interactions:move",s),o||this.simulation||(this.interacting()&&(s.type=null,this.move(s)),this.pointerWasMoved&&N.copyCoords(this.coords.prev,this.coords.cur))}},{key:"move",value:function(t){t&&t.event||N.setZeroCoords(this.coords.delta),(t=(0,C.default)({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},t||{})).phase="move",this._doPhase(t)}},{key:"pointerUp",value:function(t,e,n,r){var i=this.getPointerIndex(t);-1===i&&(i=this.updatePointer(t,e,n,!1));var o=/cancel$/i.test(e.type)?"cancel":"up";this._scopeFire("interactions:".concat(o),{pointer:t,pointerIndex:i,pointerInfo:this.pointers[i],event:e,eventTarget:n,type:o,curEventTarget:r,interaction:this}),this.simulation||this.end(e),this.removePointer(t,e)}},{key:"documentBlur",value:function(t){this.end(t),this._scopeFire("interactions:blur",{event:t,type:"blur",interaction:this})}},{key:"end",value:function(t){var e;this._ending=!0,t=t||this._latestPointer.event,this.interacting()&&(e=this._doPhase({event:t,interaction:this,phase:"end"})),this._ending=!1,!0===e&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(t){var e=N.getPointerId(t);return"mouse"===this.pointerType||"pen"===this.pointerType?this.pointers.length-1:X.findIndex(this.pointers,function(t){return t.id===e})}},{key:"getPointerInfo",value:function(t){return this.pointers[this.getPointerIndex(t)]}},{key:"updatePointer",value:function(t,e,n,r){var i=N.getPointerId(t),o=this.getPointerIndex(t),a=this.pointers[o];return r=!1!==r&&(r||/(down|start)$/i.test(e.type)),a?a.pointer=t:(a=new Ae.PointerInfo(i,t,e,null,null),o=this.pointers.length,this.pointers.push(a)),N.setCoords(this.coords.cur,this.pointers.map(function(t){return t.pointer}),this._now()),N.setCoordDeltas(this.coords.delta,this.coords.prev,this.coords.cur),r&&(this.pointerIsDown=!0,a.downTime=this.coords.cur.timeStamp,a.downTarget=n,N.pointerExtend(this.downPointer,t),this.interacting()||(N.copyCoords(this.coords.start,this.coords.cur),N.copyCoords(this.coords.prev,this.coords.cur),this.downEvent=e,this.pointerWasMoved=!1)),this._updateLatestPointer(t,e,n),this._scopeFire("interactions:update-pointer",{pointer:t,event:e,eventTarget:n,down:r,pointerInfo:a,pointerIndex:o,interaction:this}),o}},{key:"removePointer",value:function(t,e){var n=this.getPointerIndex(t);if(-1!==n){var r=this.pointers[n];this._scopeFire("interactions:remove-pointer",{pointer:t,event:e,eventTarget:null,pointerIndex:n,pointerInfo:r,interaction:this}),this.pointers.splice(n,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(t,e,n){this._latestPointer.pointer=t,this._latestPointer.event=e,this._latestPointer.eventTarget=n}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(t,e,n,r){return new Oe.InteractEvent(this,t,this.prepared.name,e,this.element,n,r)}},{key:"_fireEvent",value:function(t){var e;null==(e=this.interactable)||e.fire(t),(!this.prevEvent||t.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=t)}},{key:"_doPhase",value:function(t){var e=t.event,n=t.phase,r=t.preEnd,i=t.type,o=this.rect;if(o&&"move"===n&&(j.addEdges(this.edges,o,this.coords.delta[this.interactable.options.deltaSource]),o.width=o.right-o.left,o.height=o.bottom-o.top),!1===this._scopeFire("interactions:before-action-".concat(n),t))return!1;var a=t.iEvent=this._createPreparedEvent(e,n,r,i);return this._scopeFire("interactions:action-".concat(n),t),"start"===n&&(this.prevEvent=a),this._fireEvent(a),this._scopeFire("interactions:after-action-".concat(n),t),!0}},{key:"_now",value:function(){return Date.now()}}],n&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();Fe.Interaction=ze;var We=ze;Fe.default=We;var He={};function Ve(t){t.pointerIsDown&&(Ye(t.coords.cur,t.offset.total),t.offset.pending.x=0,t.offset.pending.y=0)}function Ge(t){qe(t.interaction)}function qe(t){if(!function(t){return!(!t.offset.pending.x&&!t.offset.pending.y)}(t))return!1;var e=t.offset.pending;return Ye(t.coords.cur,e),Ye(t.coords.delta,e),j.addEdges(t.edges,t.rect,e),e.x=0,e.y=0,!0}function Xe(t){var e=t.x,n=t.y;this.offset.pending.x+=e,this.offset.pending.y+=n,this.offset.total.x+=e,this.offset.total.y+=n}function Ye(t,e){var n=t.page,r=t.client,i=e.x,o=e.y;n.x+=i,n.y+=o,r.x+=i,r.y+=o}Object.defineProperty(He,"__esModule",{value:!0}),He.addTotal=Ve,He.applyPending=qe,He.default=void 0,Fe._ProxyMethods.offsetBy="";var Ze={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(t){t.Interaction.prototype.offsetBy=Xe},listeners:{"interactions:new":function(t){t.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(t){return Ve(t.interaction)},"interactions:before-action-start":Ge,"interactions:before-action-move":Ge,"interactions:before-action-end":function(t){var e=t.interaction;if(qe(e))return e.move({offset:!0}),e.end(),!1},"interactions:stop":function(t){var e=t.interaction;e.offset.total.x=0,e.offset.total.y=0,e.offset.pending.x=0,e.offset.pending.y=0}}},Ke=Ze;He.default=Ke;var Je={};function Qe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(Je,"__esModule",{value:!0}),Je.default=Je.InertiaState=void 0;var tn=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Qe(this,"active",!1),Qe(this,"isModified",!1),Qe(this,"smoothEnd",!1),Qe(this,"allowResume",!1),Qe(this,"modification",void 0),Qe(this,"modifierCount",0),Qe(this,"modifierArg",void 0),Qe(this,"startCoords",void 0),Qe(this,"t0",0),Qe(this,"v0",0),Qe(this,"te",0),Qe(this,"targetOffset",void 0),Qe(this,"modifiedOffset",void 0),Qe(this,"currentOffset",void 0),Qe(this,"lambda_v0",0),Qe(this,"one_ve_v0",0),Qe(this,"timeout",void 0),Qe(this,"interaction",void 0),this.interaction=e}var e,n;return e=t,(n=[{key:"start",value:function(t){var e=this.interaction,n=en(e);if(!n||!n.enabled)return!1;var r=e.coords.velocity.client,i=(0,L.default)(r.x,r.y),o=this.modification||(this.modification=new he.default(e));if(o.copyFrom(e.modification),this.t0=e._now(),this.allowResume=n.allowResume,this.v0=i,this.currentOffset={x:0,y:0},this.startCoords=e.coords.cur.page,this.modifierArg=o.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-e.coords.cur.timeStamp<50&&i>n.minSpeed&&i>n.endSpeed)this.startInertia();else{if(o.result=o.setAll(this.modifierArg),!o.result.changed)return!1;this.startSmoothEnd()}return e.modification.result.rect=null,e.offsetBy(this.targetOffset),e._doPhase({interaction:e,event:t,phase:"inertiastart"}),e.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),e.modification.result.rect=null,this.active=!0,e.simulation=this,!0}},{key:"startInertia",value:function(){var t=this,e=this.interaction.coords.velocity.client,n=en(this.interaction),r=n.resistance,i=-Math.log(n.endSpeed/this.v0)/r;this.targetOffset={x:(e.x-i)/r,y:(e.y-i)/r},this.te=i,this.lambda_v0=r/this.v0,this.one_ve_v0=1-n.endSpeed/this.v0;var o=this.modification,a=this.modifierArg;a.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},o.result=o.setAll(a),o.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+o.result.delta.x,y:this.targetOffset.y+o.result.delta.y}),this.onNextFrame(function(){return t.inertiaTick()})}},{key:"startSmoothEnd",value:function(){var t=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame(function(){return t.smoothEndTick()})}},{key:"onNextFrame",value:function(t){var e=this;this.timeout=Pt.default.request(function(){e.active&&t()})}},{key:"inertiaTick",value:function(){var t,e,n,r,i,o=this,a=this.interaction,s=en(a).resistance,u=(a._now()-this.t0)/1e3;if(u<this.te){var c,l=1-(Math.exp(-s*u)-this.lambda_v0)/this.one_ve_v0;this.isModified?(t=this.targetOffset.x,e=this.targetOffset.y,n=this.modifiedOffset.x,r=this.modifiedOffset.y,c={x:rn(i=l,0,t,n),y:rn(i,0,e,r)}):c={x:this.targetOffset.x*l,y:this.targetOffset.y*l};var f={x:c.x-this.currentOffset.x,y:c.y-this.currentOffset.y};this.currentOffset.x+=f.x,this.currentOffset.y+=f.y,a.offsetBy(f),a.move(),this.onNextFrame(function(){return o.inertiaTick()})}else a.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var t=this,e=this.interaction,n=e._now()-this.t0,r=en(e).smoothEndDuration;if(n<r){var i={x:on(n,0,this.targetOffset.x,r),y:on(n,0,this.targetOffset.y,r)},o={x:i.x-this.currentOffset.x,y:i.y-this.currentOffset.y};this.currentOffset.x+=o.x,this.currentOffset.y+=o.y,e.offsetBy(o),e.move({skipModifiers:this.modifierCount}),this.onNextFrame(function(){return t.smoothEndTick()})}else e.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(t){var e=t.pointer,n=t.event,r=t.eventTarget,i=this.interaction;i.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),i.updatePointer(e,n,r,!0),i._doPhase({interaction:i,event:n,phase:"resume"}),(0,N.copyCoords)(i.coords.prev,i.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,Pt.default.cancel(this.timeout)}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function en(t){var e=t.interactable,n=t.prepared;return e&&e.options&&n.name&&e.options[n.name].inertia}Je.InertiaState=tn;var nn={id:"inertia",before:["modifiers","actions"],install:function(t){var e=t.defaults;t.usePlugin(He.default),t.usePlugin(xe.default),t.actions.phases.inertiastart=!0,t.actions.phases.resume=!0,e.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(t){var e=t.interaction;e.inertia=new tn(e)},"interactions:before-action-end":function(t){var e=t.interaction,n=t.event;return(!e._interacting||e.simulation||!e.inertia.start(n))&&null},"interactions:down":function(t){var e=t.interaction,n=t.eventTarget,r=e.inertia;if(r.active)for(var i=n;o.default.element(i);){if(i===e.element){r.resume(t);break}i=S.parentNode(i)}},"interactions:stop":function(t){var e=t.interaction.inertia;e.active&&e.stop()},"interactions:before-action-resume":function(t){var e=t.interaction.modification;e.stop(t),e.start(t,t.interaction.coords.cur.page),e.applyToInteraction(t)},"interactions:before-action-inertiastart":function(t){return t.interaction.modification.setAndApply(t)},"interactions:action-resume":xe.addEventModifiers,"interactions:action-inertiastart":xe.addEventModifiers,"interactions:after-action-inertiastart":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:after-action-resume":function(t){return t.interaction.modification.restoreInteractionCoords(t)}}};function rn(t,e,n,r){var i=1-t;return i*i*e+2*i*t*n+t*t*r}function on(t,e,n,r){return-n*(t/=r)*(t-2)+e}var an=nn;Je.default=an;var sn={};function un(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function cn(t,e){for(var n=0;n<e.length;n++){var r=e[n];if(t.immediatePropagationStopped)break;r(t)}}Object.defineProperty(sn,"__esModule",{value:!0}),sn.Eventable=void 0;var ln=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),un(this,"options",void 0),un(this,"types",{}),un(this,"propagationStopped",!1),un(this,"immediatePropagationStopped",!1),un(this,"global",void 0),this.options=(0,C.default)({},e||{})}var e,n;return e=t,(n=[{key:"fire",value:function(t){var e,n=this.global;(e=this.types[t.type])&&cn(t,e),!t.propagationStopped&&n&&(e=n[t.type])&&cn(t,e)}},{key:"on",value:function(t,e){var n=(0,I.default)(t,e);for(t in n)this.types[t]=X.merge(this.types[t]||[],n[t])}},{key:"off",value:function(t,e){var n=(0,I.default)(t,e);for(t in n){var r=this.types[t];if(r&&r.length)for(var i=0;i<n[t].length;i++){var o=n[t][i],a=r.indexOf(o);-1!==a&&r.splice(a,1)}}}},{key:"getRect",value:function(t){return null}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();sn.Eventable=ln;var fn={};Object.defineProperty(fn,"__esModule",{value:!0}),fn.default=function(t,e){if(e.phaselessTypes[t])return!0;for(var n in e.map)if(0===t.indexOf(n)&&t.substr(n.length)in e.phases)return!0;return!1};var dn={};Object.defineProperty(dn,"__esModule",{value:!0}),dn.createInteractStatic=function(t){var e=function e(n,r){var i=t.interactables.get(n,r);return i||((i=t.interactables.new(n,r)).events.global=e.globalEvents),i};return e.getPointerAverage=N.pointerAverage,e.getTouchBBox=N.touchBBox,e.getTouchDistance=N.touchDistance,e.getTouchAngle=N.touchAngle,e.getElementRect=S.getElementRect,e.getElementClientRect=S.getElementClientRect,e.matchesSelector=S.matchesSelector,e.closest=S.closest,e.globalEvents={},e.version="1.10.18",e.scope=t,e.use=function(t,e){return this.scope.usePlugin(t,e),this},e.isSet=function(t,e){return!!this.scope.interactables.get(t,e&&e.context)},e.on=(0,Dt.warnOnce)(function(t,e,n){if(o.default.string(t)&&-1!==t.search(" ")&&(t=t.trim().split(/ +/)),o.default.array(t)){for(var r=0;r<t.length;r++){var i=t[r];this.on(i,e,n)}return this}if(o.default.object(t)){for(var a in t)this.on(a,t[a],e);return this}return(0,fn.default)(t,this.scope.actions)?this.globalEvents[t]?this.globalEvents[t].push(e):this.globalEvents[t]=[e]:this.scope.events.add(this.scope.document,t,e,{options:n}),this},"The interact.on() method is being deprecated"),e.off=(0,Dt.warnOnce)(function(t,e,n){if(o.default.string(t)&&-1!==t.search(" ")&&(t=t.trim().split(/ +/)),o.default.array(t)){for(var r=0;r<t.length;r++){var i=t[r];this.off(i,e,n)}return this}if(o.default.object(t)){for(var a in t)this.off(a,t[a],e);return this}var s;return(0,fn.default)(t,this.scope.actions)?t in this.globalEvents&&-1!==(s=this.globalEvents[t].indexOf(e))&&this.globalEvents[t].splice(s,1):this.scope.events.remove(this.scope.document,t,e,n),this},"The interact.off() method is being deprecated"),e.debug=function(){return this.scope},e.supportsTouch=function(){return b.default.supportsTouch},e.supportsPointerEvent=function(){return b.default.supportsPointerEvent},e.stop=function(){for(var t=0;t<this.scope.interactions.list.length;t++)this.scope.interactions.list[t].stop();return this},e.pointerMoveTolerance=function(t){return o.default.number(t)?(this.scope.interactions.pointerMoveTolerance=t,this):this.scope.interactions.pointerMoveTolerance},e.addDocument=function(t,e){this.scope.addDocument(t,e)},e.removeDocument=function(t){this.scope.removeDocument(t)},e};var pn={};function hn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(pn,"__esModule",{value:!0}),pn.Interactable=void 0;var vn=function(){function t(n,r,i,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),hn(this,"options",void 0),hn(this,"_actions",void 0),hn(this,"target",void 0),hn(this,"events",new sn.Eventable),hn(this,"_context",void 0),hn(this,"_win",void 0),hn(this,"_doc",void 0),hn(this,"_scopeEvents",void 0),hn(this,"_rectChecker",void 0),this._actions=r.actions,this.target=n,this._context=r.context||i,this._win=(0,e.getWindow)((0,S.trySelector)(n)?this._context:n),this._doc=this._win.document,this._scopeEvents=o,this.set(r)}var n,r;return n=t,(r=[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(t,e){return o.default.func(e.onstart)&&this.on("".concat(t,"start"),e.onstart),o.default.func(e.onmove)&&this.on("".concat(t,"move"),e.onmove),o.default.func(e.onend)&&this.on("".concat(t,"end"),e.onend),o.default.func(e.oninertiastart)&&this.on("".concat(t,"inertiastart"),e.oninertiastart),this}},{key:"updatePerActionListeners",value:function(t,e,n){(o.default.array(e)||o.default.object(e))&&this.off(t,e),(o.default.array(n)||o.default.object(n))&&this.on(t,n)}},{key:"setPerAction",value:function(t,e){var n=this._defaults;for(var r in e){var i=r,a=this.options[t],s=e[i];"listeners"===i&&this.updatePerActionListeners(t,a.listeners,s),o.default.array(s)?a[i]=X.from(s):o.default.plainObject(s)?(a[i]=(0,C.default)(a[i]||{},(0,pe.default)(s)),o.default.object(n.perAction[i])&&"enabled"in n.perAction[i]&&(a[i].enabled=!1!==s.enabled)):o.default.bool(s)&&o.default.object(n.perAction[i])?a[i].enabled=s:a[i]=s}}},{key:"getRect",value:function(t){return t=t||(o.default.element(this.target)?this.target:null),o.default.string(this.target)&&(t=t||this._context.querySelector(this.target)),(0,S.getElementRect)(t)}},{key:"rectChecker",value:function(t){var e=this;return o.default.func(t)?(this._rectChecker=t,this.getRect=function(t){var n=(0,C.default)({},e._rectChecker(t));return"width"in n||(n.width=n.right-n.left,n.height=n.bottom-n.top),n},this):null===t?(delete this.getRect,delete this._rectChecker,this):this.getRect}},{key:"_backCompatOption",value:function(t,e){if((0,S.trySelector)(e)||o.default.object(e)){for(var n in this.options[t]=e,this._actions.map)this.options[n][t]=e;return this}return this.options[t]}},{key:"origin",value:function(t){return this._backCompatOption("origin",t)}},{key:"deltaSource",value:function(t){return"page"===t||"client"===t?(this.options.deltaSource=t,this):this.options.deltaSource}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(t){return this._context===t.ownerDocument||(0,S.nodeContains)(this._context,t)}},{key:"testIgnoreAllow",value:function(t,e,n){return!this.testIgnore(t.ignoreFrom,e,n)&&this.testAllow(t.allowFrom,e,n)}},{key:"testAllow",value:function(t,e,n){return!t||!!o.default.element(n)&&(o.default.string(t)?(0,S.matchesUpTo)(n,t,e):!!o.default.element(t)&&(0,S.nodeContains)(t,n))}},{key:"testIgnore",value:function(t,e,n){return!(!t||!o.default.element(n))&&(o.default.string(t)?(0,S.matchesUpTo)(n,t,e):!!o.default.element(t)&&(0,S.nodeContains)(t,n))}},{key:"fire",value:function(t){return this.events.fire(t),this}},{key:"_onOff",value:function(t,e,n,r){o.default.object(e)&&!o.default.array(e)&&(r=n,n=null);var i="on"===t?"add":"remove",a=(0,I.default)(e,n);for(var s in a){"wheel"===s&&(s=b.default.wheelEvent);for(var u=0;u<a[s].length;u++){var c=a[s][u];(0,fn.default)(s,this._actions)?this.events[t](s,c):o.default.string(this.target)?this._scopeEvents["".concat(i,"Delegate")](this.target,this._context,s,c,r):this._scopeEvents[i](this.target,s,c,r)}}return this}},{key:"on",value:function(t,e,n){return this._onOff("on",t,e,n)}},{key:"off",value:function(t,e,n){return this._onOff("off",t,e,n)}},{key:"set",value:function(t){var e=this._defaults;for(var n in o.default.object(t)||(t={}),this.options=(0,pe.default)(e.base),this._actions.methodDict){var r=n,i=this._actions.methodDict[r];this.options[r]={},this.setPerAction(r,(0,C.default)((0,C.default)({},e.perAction),e.actions[r])),this[i](t[r])}for(var a in t)o.default.func(this[a])&&this[a](t[a]);return this}},{key:"unset",value:function(){if(o.default.string(this.target))for(var t in this._scopeEvents.delegatedEvents)for(var e=this._scopeEvents.delegatedEvents[t],n=e.length-1;n>=0;n--){var r=e[n],i=r.selector,a=r.context,s=r.listeners;i===this.target&&a===this._context&&e.splice(n,1);for(var u=s.length-1;u>=0;u--)this._scopeEvents.removeDelegate(this.target,this._context,t,s[u][0],s[u][1])}else this._scopeEvents.remove(this.target,"all")}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}();pn.Interactable=vn;var gn={};function mn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(gn,"__esModule",{value:!0}),gn.InteractableSet=void 0;var yn=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),mn(this,"list",[]),mn(this,"selectorMap",{}),mn(this,"scope",void 0),this.scope=e,e.addListeners({"interactable:unset":function(t){var e=t.interactable,r=e.target,i=e._context,a=o.default.string(r)?n.selectorMap[r]:r[n.scope.id],s=X.findIndex(a,function(t){return t.context===i});a[s]&&(a[s].context=null,a[s].interactable=null),a.splice(s,1)}})}var e,n;return e=t,(n=[{key:"new",value:function(t,e){e=(0,C.default)(e||{},{actions:this.scope.actions});var n=new this.scope.Interactable(t,e,this.scope.document,this.scope.events),r={context:n._context,interactable:n};return this.scope.addDocument(n._doc),this.list.push(n),o.default.string(t)?(this.selectorMap[t]||(this.selectorMap[t]=[]),this.selectorMap[t].push(r)):(n.target[this.scope.id]||Object.defineProperty(t,this.scope.id,{value:[],configurable:!0}),t[this.scope.id].push(r)),this.scope.fire("interactable:new",{target:t,options:e,interactable:n,win:this.scope._win}),n}},{key:"get",value:function(t,e){var n=e&&e.context||this.scope.document,r=o.default.string(t),i=r?this.selectorMap[t]:t[this.scope.id];if(!i)return null;var a=X.find(i,function(e){return e.context===n&&(r||e.interactable.inContext(t))});return a&&a.interactable}},{key:"forEachMatch",value:function(t,e){for(var n=0;n<this.list.length;n++){var r=this.list[n],i=void 0;if((o.default.string(r.target)?o.default.element(t)&&S.matchesSelector(t,r.target):t===r.target)&&r.inContext(t)&&(i=e(r)),void 0!==i)return i}}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();gn.InteractableSet=yn;var bn={};function wn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function xn(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Sn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sn(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Sn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}Object.defineProperty(bn,"__esModule",{value:!0}),bn.default=void 0;var _n=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),wn(this,"currentTarget",void 0),wn(this,"originalEvent",void 0),wn(this,"type",void 0),this.originalEvent=e,(0,$.default)(this,e)}var e,n;return e=t,(n=[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Pn(t){if(!o.default.object(t))return{capture:!!t,passive:!1};var e=(0,C.default)({},t);return e.capture=!!t.capture,e.passive=!!t.passive,e}var kn={id:"events",install:function(t){var e,n=[],r={},i=[],a={add:s,remove:u,addDelegate:function(t,e,n,o,a){var u=Pn(a);if(!r[n]){r[n]=[];for(var f=0;f<i.length;f++){var d=i[f];s(d,n,c),s(d,n,l,!0)}}var p=r[n],h=X.find(p,function(n){return n.selector===t&&n.context===e});h||(h={selector:t,context:e,listeners:[]},p.push(h)),h.listeners.push([o,u])},removeDelegate:function(t,e,n,i,o){var a,s=Pn(o),f=r[n],d=!1;if(f)for(a=f.length-1;a>=0;a--){var p=f[a];if(p.selector===t&&p.context===e){for(var h=p.listeners,v=h.length-1;v>=0;v--){var g=xn(h[v],2),m=g[0],y=g[1],b=y.capture,w=y.passive;if(m===i&&b===s.capture&&w===s.passive){h.splice(v,1),h.length||(f.splice(a,1),u(e,n,c),u(e,n,l,!0)),d=!0;break}}if(d)break}}},delegateListener:c,delegateUseCapture:l,delegatedEvents:r,documents:i,targets:n,supportsOptions:!1,supportsPassive:!1};function s(t,e,r,i){var o=Pn(i),s=X.find(n,function(e){return e.eventTarget===t});s||(s={eventTarget:t,events:{}},n.push(s)),s.events[e]||(s.events[e]=[]),t.addEventListener&&!X.contains(s.events[e],r)&&(t.addEventListener(e,r,a.supportsOptions?o:o.capture),s.events[e].push(r))}function u(t,e,r,i){var o=Pn(i),s=X.findIndex(n,function(e){return e.eventTarget===t}),c=n[s];if(c&&c.events)if("all"!==e){var l=!1,f=c.events[e];if(f){if("all"===r){for(var d=f.length-1;d>=0;d--)u(t,e,f[d],o);return}for(var p=0;p<f.length;p++)if(f[p]===r){t.removeEventListener(e,r,a.supportsOptions?o:o.capture),f.splice(p,1),0===f.length&&(delete c.events[e],l=!0);break}}l&&!Object.keys(c.events).length&&n.splice(s,1)}else for(e in c.events)c.events.hasOwnProperty(e)&&u(t,e,"all")}function c(t,e){for(var n=Pn(e),i=new _n(t),a=r[t.type],s=xn(N.getEventTargets(t),1)[0],u=s;o.default.element(u);){for(var c=0;c<a.length;c++){var l=a[c],f=l.selector,d=l.context;if(S.matchesSelector(u,f)&&S.nodeContains(d,s)&&S.nodeContains(d,u)){var p=l.listeners;i.currentTarget=u;for(var h=0;h<p.length;h++){var v=xn(p[h],2),g=v[0],m=v[1],y=m.capture,b=m.passive;y===n.capture&&b===n.passive&&g(i)}}}u=S.parentNode(u)}}function l(t){return c(t,!0)}return null==(e=t.document)||e.createElement("div").addEventListener("test",null,{get capture(){return a.supportsOptions=!0},get passive(){return a.supportsPassive=!0}}),t.events=a,a}};bn.default=kn;var On={};Object.defineProperty(On,"__esModule",{value:!0}),On.default=void 0;var En={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(t){for(var e=0;e<En.methodOrder.length;e++){var n;n=En.methodOrder[e];var r=En[n](t);if(r)return r}return null},simulationResume:function(t){var e=t.pointerType,n=t.eventType,r=t.eventTarget,i=t.scope;if(!/down|start/i.test(n))return null;for(var o=0;o<i.interactions.list.length;o++){var a=i.interactions.list[o],s=r;if(a.simulation&&a.simulation.allowResume&&a.pointerType===e)for(;s;){if(s===a.element)return a;s=S.parentNode(s)}}return null},mouseOrPen:function(t){var e,n=t.pointerId,r=t.pointerType,i=t.eventType,o=t.scope;if("mouse"!==r&&"pen"!==r)return null;for(var a=0;a<o.interactions.list.length;a++){var s=o.interactions.list[a];if(s.pointerType===r){if(s.simulation&&!Tn(s,n))continue;if(s.interacting())return s;e||(e=s)}}if(e)return e;for(var u=0;u<o.interactions.list.length;u++){var c=o.interactions.list[u];if(!(c.pointerType!==r||/down/i.test(i)&&c.simulation))return c}return null},hasPointer:function(t){for(var e=t.pointerId,n=t.scope,r=0;r<n.interactions.list.length;r++){var i=n.interactions.list[r];if(Tn(i,e))return i}return null},idle:function(t){for(var e=t.pointerType,n=t.scope,r=0;r<n.interactions.list.length;r++){var i=n.interactions.list[r];if(1===i.pointers.length){var o=i.interactable;if(o&&(!o.options.gesture||!o.options.gesture.enabled))continue}else if(i.pointers.length>=2)continue;if(!i.interacting()&&e===i.pointerType)return i}return null}};function Tn(t,e){return t.pointers.some(function(t){return t.id===e})}var Cn=En;On.default=Cn;var jn={};function Mn(t){return Mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mn(t)}function Rn(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(t,e)||function(t,e){if(t){if("string"==typeof t)return An(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?An(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function An(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function In(t,e){return In=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},In(t,e)}function Dn(t){return Dn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Dn(t)}Object.defineProperty(jn,"__esModule",{value:!0}),jn.default=void 0;var Ln=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function $n(t,e){return function(n){var r=e.interactions.list,i=N.getPointerType(n),o=Rn(N.getEventTargets(n),2),a=o[0],s=o[1],u=[];if(/^touch/.test(n.type)){e.prevTouchTime=e.now();for(var c=0;c<n.changedTouches.length;c++){var l=n.changedTouches[c],f={pointer:l,pointerId:N.getPointerId(l),pointerType:i,eventType:n.type,eventTarget:a,curEventTarget:s,scope:e},d=Nn(f);u.push([f.pointer,f.eventTarget,f.curEventTarget,d])}}else{var p=!1;if(!b.default.supportsPointerEvent&&/mouse/.test(n.type)){for(var h=0;h<r.length&&!p;h++)p="mouse"!==r[h].pointerType&&r[h].pointerIsDown;p=p||e.now()-e.prevTouchTime<500||0===n.timeStamp}if(!p){var v={pointer:n,pointerId:N.getPointerId(n),pointerType:i,eventType:n.type,curEventTarget:s,eventTarget:a,scope:e},g=Nn(v);u.push([v.pointer,v.eventTarget,v.curEventTarget,g])}}for(var m=0;m<u.length;m++){var y=Rn(u[m],4),w=y[0],x=y[1],S=y[2];y[3][t](w,n,x,S)}}}function Nn(t){var e=t.pointerType,n=t.scope,r={interaction:On.default.search(t),searchDetails:t};return n.fire("interactions:find",r),r.interaction||n.interactions.new({pointerType:e})}function Fn(t,e){var n=t.doc,r=t.scope,i=t.options,o=r.interactions.docEvents,a=r.events,s=a[e];for(var u in r.browser.isIOS&&!i.events&&(i.events={passive:!1}),a.delegatedEvents)s(n,u,a.delegateListener),s(n,u,a.delegateUseCapture,!0);for(var c=i&&i.events,l=0;l<o.length;l++){var f=o[l];s(n,f.type,f.listener,c)}}var Un={id:"core/interactions",install:function(t){for(var e={},n=0;n<Ln.length;n++){var r=Ln[n];e[r]=$n(r,t)}var i,o=b.default.pEventTypes;function a(){for(var e=0;e<t.interactions.list.length;e++){var n=t.interactions.list[e];if(n.pointerIsDown&&"touch"===n.pointerType&&!n._interacting)for(var r=function(){var e=n.pointers[i];t.documents.some(function(t){var n=t.doc;return(0,S.nodeContains)(n,e.downTarget)})||n.removePointer(e.pointer,e.event)},i=0;i<n.pointers.length;i++)r()}}(i=v.default.PointerEvent?[{type:o.down,listener:a},{type:o.down,listener:e.pointerDown},{type:o.move,listener:e.pointerMove},{type:o.up,listener:e.pointerUp},{type:o.cancel,listener:e.pointerUp}]:[{type:"mousedown",listener:e.pointerDown},{type:"mousemove",listener:e.pointerMove},{type:"mouseup",listener:e.pointerUp},{type:"touchstart",listener:a},{type:"touchstart",listener:e.pointerDown},{type:"touchmove",listener:e.pointerMove},{type:"touchend",listener:e.pointerUp},{type:"touchcancel",listener:e.pointerUp}]).push({type:"blur",listener:function(e){for(var n=0;n<t.interactions.list.length;n++)t.interactions.list[n].documentBlur(e)}}),t.prevTouchTime=0,t.Interaction=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&In(t,e)}(s,e);var n,r,i,o,a=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=Dn(i);if(o){var n=Dn(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Mn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return n=s,(r=[{key:"pointerMoveTolerance",get:function(){return t.interactions.pointerMoveTolerance},set:function(e){t.interactions.pointerMoveTolerance=e}},{key:"_now",value:function(){return t.now()}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),s}(Fe.default),t.interactions={list:[],new:function(e){e.scopeFire=function(e,n){return t.fire(e,n)};var n=new t.Interaction(e);return t.interactions.list.push(n),n},listeners:e,docEvents:i,pointerMoveTolerance:1},t.usePlugin(oe.default)},listeners:{"scope:add-document":function(t){return Fn(t,"add")},"scope:remove-document":function(t){return Fn(t,"remove")},"interactable:unset":function(t,e){for(var n=t.interactable,r=e.interactions.list.length-1;r>=0;r--){var i=e.interactions.list[r];i.interactable===n&&(i.stop(),e.fire("interactions:destroy",{interaction:i}),i.destroy(),e.interactions.list.length>2&&e.interactions.list.splice(r,1))}}},onDocSignal:Fn,doOnInteractions:$n,methodNames:Ln},Bn=Un;jn.default=Bn;var zn={};function Wn(t){return Wn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wn(t)}function Hn(){return Hn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Gn(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},Hn.apply(this,arguments)}function Vn(t,e){return Vn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Vn(t,e)}function Gn(t){return Gn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Gn(t)}function qn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Xn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Yn(t,e,n){return e&&Xn(t.prototype,e),n&&Xn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Zn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(zn,"__esModule",{value:!0}),zn.Scope=void 0,zn.initScope=Jn;var Kn=function(){function t(){var e=this;qn(this,t),Zn(this,"id","__interact_scope_".concat(Math.floor(100*Math.random()))),Zn(this,"isInitialized",!1),Zn(this,"listenerMaps",[]),Zn(this,"browser",b.default),Zn(this,"defaults",(0,pe.default)(ke.defaults)),Zn(this,"Eventable",sn.Eventable),Zn(this,"actions",{map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}}),Zn(this,"interactStatic",(0,dn.createInteractStatic)(this)),Zn(this,"InteractEvent",Oe.InteractEvent),Zn(this,"Interactable",void 0),Zn(this,"interactables",new gn.InteractableSet(this)),Zn(this,"_win",void 0),Zn(this,"document",void 0),Zn(this,"window",void 0),Zn(this,"documents",[]),Zn(this,"_plugins",{list:[],map:{}}),Zn(this,"onWindowUnload",function(t){return e.removeDocument(t.target)});var n=this;this.Interactable=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Vn(t,e)}(o,t);var e,r,i=(e=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=Gn(e);if(r){var i=Gn(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return function(t,e){if(e&&("object"===Wn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function o(){return qn(this,o),i.apply(this,arguments)}return Yn(o,[{key:"_defaults",get:function(){return n.defaults}},{key:"set",value:function(t){return Hn(Gn(o.prototype),"set",this).call(this,t),n.fire("interactable:set",{options:t,interactable:this}),this}},{key:"unset",value:function(){Hn(Gn(o.prototype),"unset",this).call(this);var t=n.interactables.list.indexOf(this);t<0||(Hn(Gn(o.prototype),"unset",this).call(this),n.interactables.list.splice(t,1),n.fire("interactable:unset",{interactable:this}))}}]),o}(pn.Interactable)}return Yn(t,[{key:"addListeners",value:function(t,e){this.listenerMaps.push({id:e,map:t})}},{key:"fire",value:function(t,e){for(var n=0;n<this.listenerMaps.length;n++){var r=this.listenerMaps[n].map[t];if(r&&!1===r(e,this,t))return!1}}},{key:"init",value:function(t){return this.isInitialized?this:Jn(this,t)}},{key:"pluginIsInstalled",value:function(t){return this._plugins.map[t.id]||-1!==this._plugins.list.indexOf(t)}},{key:"usePlugin",value:function(t,e){if(!this.isInitialized)return this;if(this.pluginIsInstalled(t))return this;if(t.id&&(this._plugins.map[t.id]=t),this._plugins.list.push(t),t.install&&t.install(this,e),t.listeners&&t.before){for(var n=0,r=this.listenerMaps.length,i=t.before.reduce(function(t,e){return t[e]=!0,t[Qn(e)]=!0,t},{});n<r;n++){var o=this.listenerMaps[n].id;if(i[o]||i[Qn(o)])break}this.listenerMaps.splice(n,0,{id:t.id,map:t.listeners})}else t.listeners&&this.listenerMaps.push({id:t.id,map:t.listeners});return this}},{key:"addDocument",value:function(t,n){if(-1!==this.getDocIndex(t))return!1;var r=e.getWindow(t);n=n?(0,C.default)({},n):{},this.documents.push({doc:t,options:n}),this.events.documents.push(t),t!==this.document&&this.events.add(r,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:t,window:r,scope:this,options:n})}},{key:"removeDocument",value:function(t){var n=this.getDocIndex(t),r=e.getWindow(t),i=this.documents[n].options;this.events.remove(r,"unload",this.onWindowUnload),this.documents.splice(n,1),this.events.documents.splice(n,1),this.fire("scope:remove-document",{doc:t,window:r,scope:this,options:i})}},{key:"getDocIndex",value:function(t){for(var e=0;e<this.documents.length;e++)if(this.documents[e].doc===t)return e;return-1}},{key:"getDocOptions",value:function(t){var e=this.getDocIndex(t);return-1===e?null:this.documents[e].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),t}();function Jn(t,n){return t.isInitialized=!0,o.default.window(n)&&e.init(n),v.default.init(n),b.default.init(n),Pt.default.init(n),t.window=n,t.document=n.document,t.usePlugin(jn.default),t.usePlugin(bn.default),t}function Qn(t){return t&&t.replace(/\/.*$/,"")}zn.Scope=Kn;var tr={};Object.defineProperty(tr,"__esModule",{value:!0}),tr.default=void 0;var er=new zn.Scope,nr=er.interactStatic;tr.default=nr;var rr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0;er.init(rr);var ir={};Object.defineProperty(ir,"__esModule",{value:!0}),ir.default=void 0,ir.default=function(){};var or={};Object.defineProperty(or,"__esModule",{value:!0}),or.default=void 0,or.default=function(){};var ar={};function sr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ur(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ur(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ur(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}Object.defineProperty(ar,"__esModule",{value:!0}),ar.default=void 0,ar.default=function(t){var e=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(function(e){var n=sr(e,2),r=n[0],i=n[1];return r in t||i in t}),n=function(n,r){for(var i=t.range,o=t.limits,a=void 0===o?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:o,s=t.offset,u=void 0===s?{x:0,y:0}:s,c={range:i,grid:t,x:null,y:null},l=0;l<e.length;l++){var f=sr(e[l],2),d=f[0],p=f[1],h=Math.round((n-u.x)/t[d]),v=Math.round((r-u.y)/t[p]);c[d]=Math.max(a.left,Math.min(a.right,h*t[d]+u.x)),c[p]=Math.max(a.top,Math.min(a.bottom,v*t[p]+u.y))}return c};return n.grid=t,n.coordFields=e,n};var cr={};Object.defineProperty(cr,"__esModule",{value:!0}),Object.defineProperty(cr,"edgeTarget",{enumerable:!0,get:function(){return ir.default}}),Object.defineProperty(cr,"elements",{enumerable:!0,get:function(){return or.default}}),Object.defineProperty(cr,"grid",{enumerable:!0,get:function(){return ar.default}});var lr={};Object.defineProperty(lr,"__esModule",{value:!0}),lr.default=void 0;var fr={id:"snappers",install:function(t){var e=t.interactStatic;e.snappers=(0,C.default)(e.snappers||{},cr),e.createSnapGrid=e.snappers.grid}},dr=fr;lr.default=dr;var pr={};function hr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function vr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?hr(Object(n),!0).forEach(function(e){gr(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hr(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function gr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(pr,"__esModule",{value:!0}),pr.default=pr.aspectRatio=void 0;var mr={start:function(t){var e=t.state,n=t.rect,r=t.edges,i=t.pageCoords,o=e.options,a=o.ratio,s=o.enabled,u=e.options,c=u.equalDelta,l=u.modifiers;"preserve"===a&&(a=n.width/n.height),e.startCoords=(0,C.default)({},i),e.startRect=(0,C.default)({},n),e.ratio=a,e.equalDelta=c;var f=e.linkedEdges={top:r.top||r.left&&!r.bottom,left:r.left||r.top&&!r.right,bottom:r.bottom||r.right&&!r.top,right:r.right||r.bottom&&!r.left};if(e.xIsPrimaryAxis=!(!r.left&&!r.right),e.equalDelta){var d=(f.left?1:-1)*(f.top?1:-1);e.edgeSign={x:d,y:d}}else e.edgeSign={x:f.left?-1:1,y:f.top?-1:1};if(!1!==s&&(0,C.default)(r,f),null!=l&&l.length){var p=new he.default(t.interaction);p.copyFrom(t.interaction.modification),p.prepareStates(l),e.subModification=p,p.startAll(vr({},t))}},set:function(t){var e=t.state,n=t.rect,r=t.coords,i=e.linkedEdges,o=(0,C.default)({},r),a=e.equalDelta?yr:br;if((0,C.default)(t.edges,i),a(e,e.xIsPrimaryAxis,r,n),!e.subModification)return null;var s=(0,C.default)({},n);(0,j.addEdges)(i,s,{x:r.x-o.x,y:r.y-o.y});var u=e.subModification.setAll(vr(vr({},t),{},{rect:s,edges:i,pageCoords:r,prevCoords:r,prevRect:s})),c=u.delta;return u.changed&&(a(e,Math.abs(c.x)>Math.abs(c.y),u.coords,u.rect),(0,C.default)(r,u.coords)),u.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function yr(t,e,n){var r=t.startCoords,i=t.edgeSign;e?n.y=r.y+(n.x-r.x)*i.y:n.x=r.x+(n.y-r.y)*i.x}function br(t,e,n,r){var i=t.startRect,o=t.startCoords,a=t.ratio,s=t.edgeSign;if(e){var u=r.width/a;n.y=o.y+(u-i.height)*s.y}else{var c=r.height*a;n.x=o.x+(c-i.width)*s.x}}pr.aspectRatio=mr;var wr=(0,xe.makeModifier)(mr,"aspectRatio");pr.default=wr;var xr={};Object.defineProperty(xr,"__esModule",{value:!0}),xr.default=void 0;var Sr=function(){};Sr._defaults={};var _r=Sr;xr.default=_r;var Pr={};Object.defineProperty(Pr,"__esModule",{value:!0}),Object.defineProperty(Pr,"default",{enumerable:!0,get:function(){return xr.default}});var kr={};function Or(t,e,n){return o.default.func(t)?j.resolveRectLike(t,e.interactable,e.element,[n.x,n.y,e]):j.resolveRectLike(t,e.interactable,e.element)}Object.defineProperty(kr,"__esModule",{value:!0}),kr.default=void 0,kr.getRestrictionRect=Or,kr.restrict=void 0;var Er={start:function(t){var e=t.rect,n=t.startOffset,r=t.state,i=t.interaction,o=t.pageCoords,a=r.options,s=a.elementRect,u=(0,C.default)({left:0,top:0,right:0,bottom:0},a.offset||{});if(e&&s){var c=Or(a.restriction,i,o);if(c){var l=c.right-c.left-e.width,f=c.bottom-c.top-e.height;l<0&&(u.left+=l,u.right+=l),f<0&&(u.top+=f,u.bottom+=f)}u.left+=n.left-e.width*s.left,u.top+=n.top-e.height*s.top,u.right+=n.right-e.width*(1-s.right),u.bottom+=n.bottom-e.height*(1-s.bottom)}r.offset=u},set:function(t){var e=t.coords,n=t.interaction,r=t.state,i=r.options,o=r.offset,a=Or(i.restriction,n,e);if(a){var s=j.xywhToTlbr(a);e.x=Math.max(Math.min(s.right-o.right,e.x),s.left+o.left),e.y=Math.max(Math.min(s.bottom-o.bottom,e.y),s.top+o.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}};kr.restrict=Er;var Tr=(0,xe.makeModifier)(Er,"restrict");kr.default=Tr;var Cr={};Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.restrictEdges=Cr.default=void 0;var jr={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Mr={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function Rr(t,e){for(var n=["top","left","bottom","right"],r=0;r<n.length;r++){var i=n[r];i in t||(t[i]=e[i])}return t}var Ar={noInner:jr,noOuter:Mr,start:function(t){var e,n=t.interaction,r=t.startOffset,i=t.state,o=i.options;if(o){var a=(0,kr.getRestrictionRect)(o.offset,n,n.coords.start.page);e=j.rectToXY(a)}e=e||{x:0,y:0},i.offset={top:e.y+r.top,left:e.x+r.left,bottom:e.y-r.bottom,right:e.x-r.right}},set:function(t){var e=t.coords,n=t.edges,r=t.interaction,i=t.state,o=i.offset,a=i.options;if(n){var s=(0,C.default)({},e),u=(0,kr.getRestrictionRect)(a.inner,r,s)||{},c=(0,kr.getRestrictionRect)(a.outer,r,s)||{};Rr(u,jr),Rr(c,Mr),n.top?e.y=Math.min(Math.max(c.top+o.top,s.y),u.top+o.top):n.bottom&&(e.y=Math.max(Math.min(c.bottom+o.bottom,s.y),u.bottom+o.bottom)),n.left?e.x=Math.min(Math.max(c.left+o.left,s.x),u.left+o.left):n.right&&(e.x=Math.max(Math.min(c.right+o.right,s.x),u.right+o.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}};Cr.restrictEdges=Ar;var Ir=(0,xe.makeModifier)(Ar,"restrictEdges");Cr.default=Ir;var Dr={};Object.defineProperty(Dr,"__esModule",{value:!0}),Dr.restrictRect=Dr.default=void 0;var Lr=(0,C.default)({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(t){}},kr.restrict.defaults),$r={start:kr.restrict.start,set:kr.restrict.set,defaults:Lr};Dr.restrictRect=$r;var Nr=(0,xe.makeModifier)($r,"restrictRect");Dr.default=Nr;var Fr={};Object.defineProperty(Fr,"__esModule",{value:!0}),Fr.restrictSize=Fr.default=void 0;var Ur={width:-1/0,height:-1/0},Br={width:1/0,height:1/0},zr={start:function(t){return Cr.restrictEdges.start(t)},set:function(t){var e=t.interaction,n=t.state,r=t.rect,i=t.edges,o=n.options;if(i){var a=j.tlbrToXywh((0,kr.getRestrictionRect)(o.min,e,t.coords))||Ur,s=j.tlbrToXywh((0,kr.getRestrictionRect)(o.max,e,t.coords))||Br;n.options={endOnly:o.endOnly,inner:(0,C.default)({},Cr.restrictEdges.noInner),outer:(0,C.default)({},Cr.restrictEdges.noOuter)},i.top?(n.options.inner.top=r.bottom-a.height,n.options.outer.top=r.bottom-s.height):i.bottom&&(n.options.inner.bottom=r.top+a.height,n.options.outer.bottom=r.top+s.height),i.left?(n.options.inner.left=r.right-a.width,n.options.outer.left=r.right-s.width):i.right&&(n.options.inner.right=r.left+a.width,n.options.outer.right=r.left+s.width),Cr.restrictEdges.set(t),n.options=o}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}};Fr.restrictSize=zr;var Wr=(0,xe.makeModifier)(zr,"restrictSize");Fr.default=Wr;var Hr={};Object.defineProperty(Hr,"__esModule",{value:!0}),Object.defineProperty(Hr,"default",{enumerable:!0,get:function(){return xr.default}});var Vr={};Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.snap=Vr.default=void 0;var Gr={start:function(t){var e,n=t.interaction,r=t.interactable,i=t.element,o=t.rect,a=t.state,s=t.startOffset,u=a.options,c=u.offsetWithOrigin?function(t){var e=t.interaction.element;return(0,j.rectToXY)((0,j.resolveRectLike)(t.state.options.origin,null,null,[e]))||(0,A.default)(t.interactable,e,t.interaction.prepared.name)}(t):{x:0,y:0};if("startCoords"===u.offset)e={x:n.coords.start.page.x,y:n.coords.start.page.y};else{var l=(0,j.resolveRectLike)(u.offset,r,i,[n]);(e=(0,j.rectToXY)(l)||{x:0,y:0}).x+=c.x,e.y+=c.y}var f=u.relativePoints;a.offsets=o&&f&&f.length?f.map(function(t,n){return{index:n,relativePoint:t,x:s.left-o.width*t.x+e.x,y:s.top-o.height*t.y+e.y}}):[{index:0,relativePoint:null,x:e.x,y:e.y}]},set:function(t){var e=t.interaction,n=t.coords,r=t.state,i=r.options,a=r.offsets,s=(0,A.default)(e.interactable,e.element,e.prepared.name),u=(0,C.default)({},n),c=[];i.offsetWithOrigin||(u.x-=s.x,u.y-=s.y);for(var l=0;l<a.length;l++)for(var f=a[l],d=u.x-f.x,p=u.y-f.y,h=0,v=i.targets.length;h<v;h++){var g,m=i.targets[h];(g=o.default.func(m)?m(d,p,e._proxy,f,h):m)&&c.push({x:(o.default.number(g.x)?g.x:d)+f.x,y:(o.default.number(g.y)?g.y:p)+f.y,range:o.default.number(g.range)?g.range:i.range,source:m,index:h,offset:f})}for(var y={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},b=0;b<c.length;b++){var w=c[b],x=w.range,S=w.x-u.x,_=w.y-u.y,P=(0,L.default)(S,_),k=P<=x;x===1/0&&y.inRange&&y.range!==1/0&&(k=!1),y.target&&!(k?y.inRange&&x!==1/0?P/x<y.distance/y.range:x===1/0&&y.range!==1/0||P<y.distance:!y.inRange&&P<y.distance)||(y.target=w,y.distance=P,y.range=x,y.inRange=k,y.delta.x=S,y.delta.y=_)}return y.inRange&&(n.x=y.target.x,n.y=y.target.y),r.closest=y,y},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}};Vr.snap=Gr;var qr=(0,xe.makeModifier)(Gr,"snap");Vr.default=qr;var Xr={};function Yr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.snapSize=Xr.default=void 0;var Zr={start:function(t){var e=t.state,n=t.edges,r=e.options;if(!n)return null;t.state={options:{targets:null,relativePoints:[{x:n.left?0:1,y:n.top?0:1}],offset:r.offset||"self",origin:{x:0,y:0},range:r.range}},e.targetFields=e.targetFields||[["width","height"],["x","y"]],Vr.snap.start(t),e.offsets=t.state.offsets,t.state=e},set:function(t){var e,n=t.interaction,r=t.state,i=t.coords,a=r.options,s=r.offsets,u={x:i.x-s[0].x,y:i.y-s[0].y};r.options=(0,C.default)({},a),r.options.targets=[];for(var c=0;c<(a.targets||[]).length;c++){var l=(a.targets||[])[c],f=void 0;if(f=o.default.func(l)?l(u.x,u.y,n):l){for(var d=0;d<r.targetFields.length;d++){var p=function(t){if(Array.isArray(t))return t}(e=r.targetFields[d])||function(t){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,r,i=[],o=!0,a=!1;try{for(e=e.call(t);!(o=(n=e.next()).done)&&(i.push(n.value),2!==i.length);o=!0);}catch(t){a=!0,r=t}finally{try{o||null==e.return||e.return()}finally{if(a)throw r}}return i}}(e)||function(t){if(t){if("string"==typeof t)return Yr(t,2);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Yr(t,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),h=p[0],v=p[1];if(h in f||v in f){f.x=f[h],f.y=f[v];break}}r.options.targets.push(f)}}var g=Vr.snap.set(t);return r.options=a,g},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}};Xr.snapSize=Zr;var Kr=(0,xe.makeModifier)(Zr,"snapSize");Xr.default=Kr;var Jr={};Object.defineProperty(Jr,"__esModule",{value:!0}),Jr.snapEdges=Jr.default=void 0;var Qr={start:function(t){var e=t.edges;return e?(t.state.targetFields=t.state.targetFields||[[e.left?"left":"right",e.top?"top":"bottom"]],Xr.snapSize.start(t)):null},set:Xr.snapSize.set,defaults:(0,C.default)((0,pe.default)(Xr.snapSize.defaults),{targets:null,range:null,offset:{x:0,y:0}})};Jr.snapEdges=Qr;var ti=(0,xe.makeModifier)(Qr,"snapEdges");Jr.default=ti;var ei={};Object.defineProperty(ei,"__esModule",{value:!0}),Object.defineProperty(ei,"default",{enumerable:!0,get:function(){return xr.default}});var ni={};Object.defineProperty(ni,"__esModule",{value:!0}),Object.defineProperty(ni,"default",{enumerable:!0,get:function(){return xr.default}});var ri={};Object.defineProperty(ri,"__esModule",{value:!0}),ri.default=void 0;var ii={aspectRatio:pr.default,restrictEdges:Cr.default,restrict:kr.default,restrictRect:Dr.default,restrictSize:Fr.default,snapEdges:Jr.default,snap:Vr.default,snapSize:Xr.default,spring:ei.default,avoid:Pr.default,transform:ni.default,rubberband:Hr.default};ri.default=ii;var oi={};Object.defineProperty(oi,"__esModule",{value:!0}),oi.default=void 0;var ai={id:"modifiers",install:function(t){var e=t.interactStatic;for(var n in t.usePlugin(xe.default),t.usePlugin(lr.default),e.modifiers=ri.default,ri.default){var r=ri.default[n],i=r._defaults,o=r._methods;i._methods=o,t.defaults.perAction[n]=i}}},si=ai;oi.default=si;var ui={};function ci(t){return ci="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ci(t)}function li(t,e){return li=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},li(t,e)}function fi(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function di(t){return di=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},di(t)}Object.defineProperty(ui,"__esModule",{value:!0}),ui.default=ui.PointerEvent=void 0;var pi=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&li(t,e)}(a,t);var e,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=di(r);if(i){var n=di(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===ci(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return fi(t)}(this,t)});function a(t,e,n,r,i,s){var u;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),u=o.call(this,i),N.pointerExtend(fi(u),n),n!==e&&N.pointerExtend(fi(u),e),u.timeStamp=s,u.originalEvent=n,u.type=t,u.pointerId=N.getPointerId(e),u.pointerType=N.getPointerType(e),u.target=r,u.currentTarget=null,"tap"===t){var c=i.getPointerIndex(e);u.dt=u.timeStamp-i.pointers[c].downTime;var l=u.timeStamp-i.tapTime;u.double=!!i.prevTap&&"doubletap"!==i.prevTap.type&&i.prevTap.target===u.target&&l<500}else"doubletap"===t&&(u.dt=e.timeStamp-i.tapTime,u.double=!0);return u}return e=a,(n=[{key:"_subtractOrigin",value:function(t){var e=t.x,n=t.y;return this.pageX-=e,this.pageY-=n,this.clientX-=e,this.clientY-=n,this}},{key:"_addOrigin",value:function(t){var e=t.x,n=t.y;return this.pageX+=e,this.pageY+=n,this.clientX+=e,this.clientY+=n,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(V.BaseEvent);ui.PointerEvent=ui.default=pi;var hi={};Object.defineProperty(hi,"__esModule",{value:!0}),hi.default=void 0;var vi={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(t){t.pointerEvents=vi,t.defaults.actions.pointerEvents=vi.defaults,(0,C.default)(t.actions.phaselessTypes,vi.types)},listeners:{"interactions:new":function(t){var e=t.interaction;e.prevTap=null,e.tapTime=0},"interactions:update-pointer":function(t){var e=t.down,n=t.pointerInfo;!e&&n.hold||(n.hold={duration:1/0,timeout:null})},"interactions:move":function(t,e){var n=t.interaction,r=t.pointer,i=t.event,o=t.eventTarget;t.duplicate||n.pointerIsDown&&!n.pointerWasMoved||(n.pointerIsDown&&yi(t),gi({interaction:n,pointer:r,event:i,eventTarget:o,type:"move"},e))},"interactions:down":function(t,e){!function(t,e){for(var n=t.interaction,r=t.pointer,i=t.event,o=t.eventTarget,a=t.pointerIndex,s=n.pointers[a].hold,u=S.getPath(o),c={interaction:n,pointer:r,event:i,eventTarget:o,type:"hold",targets:[],path:u,node:null},l=0;l<u.length;l++){var f=u[l];c.node=f,e.fire("pointerEvents:collect-targets",c)}if(c.targets.length){for(var d=1/0,p=0;p<c.targets.length;p++){var h=c.targets[p].eventable.options.holdDuration;h<d&&(d=h)}s.duration=d,s.timeout=setTimeout(function(){gi({interaction:n,eventTarget:o,pointer:r,event:i,type:"hold"},e)},d)}}(t,e),gi(t,e)},"interactions:up":function(t,e){yi(t),gi(t,e),function(t,e){var n=t.interaction,r=t.pointer,i=t.event,o=t.eventTarget;n.pointerWasMoved||gi({interaction:n,eventTarget:o,pointer:r,event:i,type:"tap"},e)}(t,e)},"interactions:cancel":function(t,e){yi(t),gi(t,e)}},PointerEvent:ui.PointerEvent,fire:gi,collectEventTargets:mi,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function gi(t,e){var n=t.interaction,r=t.pointer,i=t.event,o=t.eventTarget,a=t.type,s=t.targets,u=void 0===s?mi(t,e):s,c=new ui.PointerEvent(a,r,i,o,n,e.now());e.fire("pointerEvents:new",{pointerEvent:c});for(var l={interaction:n,pointer:r,event:i,eventTarget:o,targets:u,type:a,pointerEvent:c},f=0;f<u.length;f++){var d=u[f];for(var p in d.props||{})c[p]=d.props[p];var h=(0,A.default)(d.eventable,d.node);if(c._subtractOrigin(h),c.eventable=d.eventable,c.currentTarget=d.node,d.eventable.fire(c),c._addOrigin(h),c.immediatePropagationStopped||c.propagationStopped&&f+1<u.length&&u[f+1].node!==c.currentTarget)break}if(e.fire("pointerEvents:fired",l),"tap"===a){var v=c.double?gi({interaction:n,pointer:r,event:i,eventTarget:o,type:"doubletap"},e):c;n.prevTap=v,n.tapTime=v.timeStamp}return c}function mi(t,e){var n=t.interaction,r=t.pointer,i=t.event,o=t.eventTarget,a=t.type,s=n.getPointerIndex(r),u=n.pointers[s];if("tap"===a&&(n.pointerWasMoved||!u||u.downTarget!==o))return[];for(var c=S.getPath(o),l={interaction:n,pointer:r,event:i,eventTarget:o,type:a,path:c,targets:[],node:null},f=0;f<c.length;f++){var d=c[f];l.node=d,e.fire("pointerEvents:collect-targets",l)}return"hold"===a&&(l.targets=l.targets.filter(function(t){var e;return t.eventable.options.holdDuration===(null==(e=n.pointers[s])?void 0:e.hold.duration)})),l.targets}function yi(t){var e=t.interaction,n=t.pointerIndex,r=e.pointers[n].hold;r&&r.timeout&&(clearTimeout(r.timeout),r.timeout=null)}var bi=vi;hi.default=bi;var wi={};function xi(t){var e=t.interaction;e.holdIntervalHandle&&(clearInterval(e.holdIntervalHandle),e.holdIntervalHandle=null)}Object.defineProperty(wi,"__esModule",{value:!0}),wi.default=void 0;var Si={id:"pointer-events/holdRepeat",install:function(t){t.usePlugin(hi.default);var e=t.pointerEvents;e.defaults.holdRepeatInterval=0,e.types.holdrepeat=t.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce(function(t,e){return t["pointerEvents:".concat(e)]=xi,t},{"pointerEvents:new":function(t){var e=t.pointerEvent;"hold"===e.type&&(e.count=(e.count||0)+1)},"pointerEvents:fired":function(t,e){var n=t.interaction,r=t.pointerEvent,i=t.eventTarget,o=t.targets;if("hold"===r.type&&o.length){var a=o[0].eventable.options.holdRepeatInterval;a<=0||(n.holdIntervalHandle=setTimeout(function(){e.pointerEvents.fire({interaction:n,eventTarget:i,type:"hold",pointer:r,event:r},e)},a))}}})},_i=Si;wi.default=_i;var Pi={};function ki(t){return(0,C.default)(this.events.options,t),this}Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.default=void 0;var Oi={id:"pointer-events/interactableTargets",install:function(t){var e=t.Interactable;e.prototype.pointerEvents=ki;var n=e.prototype._backCompatOption;e.prototype._backCompatOption=function(t,e){var r=n.call(this,t,e);return r===this&&(this.events.options[t]=e),r}},listeners:{"pointerEvents:collect-targets":function(t,e){var n=t.targets,r=t.node,i=t.type,o=t.eventTarget;e.interactables.forEachMatch(r,function(t){var e=t.events,a=e.options;e.types[i]&&e.types[i].length&&t.testIgnoreAllow(a,r,o)&&n.push({node:r,eventable:e,props:{interactable:t}})})},"interactable:new":function(t){var e=t.interactable;e.events.getRect=function(t){return e.getRect(t)}},"interactable:set":function(t,e){var n=t.interactable,r=t.options;(0,C.default)(n.events.options,e.pointerEvents.defaults),(0,C.default)(n.events.options,r.pointerEvents||{})}}},Ei=Oi;Pi.default=Ei;var Ti={};Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.default=void 0;var Ci={id:"pointer-events",install:function(t){t.usePlugin(hi),t.usePlugin(wi.default),t.usePlugin(Pi.default)}},ji=Ci;Ti.default=ji;var Mi={};function Ri(t){var e=t.Interactable;t.actions.phases.reflow=!0,e.prototype.reflow=function(e){return function(t,e,n){for(var r=o.default.string(t.target)?X.from(t._context.querySelectorAll(t.target)):[t.target],i=n.window.Promise,a=i?[]:null,s=function(){var o=r[u],s=t.getRect(o);if(!s)return"break";var c=X.find(n.interactions.list,function(n){return n.interacting()&&n.interactable===t&&n.element===o&&n.prepared.name===e.name}),l=void 0;if(c)c.move(),a&&(l=c._reflowPromise||new i(function(t){c._reflowResolve=t}));else{var f=(0,j.tlbrToXywh)(s),d={page:{x:f.x,y:f.y},client:{x:f.x,y:f.y},timeStamp:n.now()},p=N.coordsToEvent(d);l=function(t,e,n,r,i){var o=t.interactions.new({pointerType:"reflow"}),a={interaction:o,event:i,pointer:i,eventTarget:n,phase:"reflow"};o.interactable=e,o.element=n,o.prevEvent=i,o.updatePointer(i,i,n,!0),N.setZeroCoords(o.coords.delta),(0,Dt.copyAction)(o.prepared,r),o._doPhase(a);var s=t.window.Promise,u=s?new s(function(t){o._reflowResolve=t}):void 0;return o._reflowPromise=u,o.start(r,e,n),o._interacting?(o.move(a),o.end(i)):(o.stop(),o._reflowResolve()),o.removePointer(i,i),u}(n,t,o,e,p)}a&&a.push(l)},u=0;u<r.length&&"break"!==s();u++);return a&&i.all(a).then(function(){return t})}(this,e,t)}}Object.defineProperty(Mi,"__esModule",{value:!0}),Mi.default=void 0,Mi.install=Ri;var Ai={id:"reflow",install:Ri,listeners:{"interactions:stop":function(t,e){var n=t.interaction;"reflow"===n.pointerType&&(n._reflowResolve&&n._reflowResolve(),X.remove(e.interactions.list,n))}}},Ii=Ai;Mi.default=Ii;var Di={};Object.defineProperty(Di,"__esModule",{value:!0}),Di.default=void 0,tr.default.use(oe.default),tr.default.use(He.default),tr.default.use(Ti.default),tr.default.use(Je.default),tr.default.use(oi.default),tr.default.use(re.default),tr.default.use(St.default),tr.default.use(Ct.default),tr.default.use(Mi.default);var Li=tr.default;Di.default=Li,tr.default.default=tr.default,St.default,Ct.default,re.default,oe.default,de.default,Je.default,tr.default,oi.default,He.default,Ti.default,Mi.default;var $i={exports:{}};function Ni(t){return Ni="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ni(t)}Object.defineProperty($i.exports,"__esModule",{value:!0}),$i.exports.default=void 0;var Fi=Di.default;if($i.exports.default=Fi,"object"===Ni($i)&&$i)try{$i.exports=Di.default}catch(t){}return Di.default.default=Di.default,$i.exports}()},4638:function(t,e,n){!function(t,e,n){var r,i,o,a,s,u,c,l,f,d,p,h,v,g,m,y,b,w,x,S,_,P,k,O,E,T,C,j,M,R,A,I,D,L={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return t(this).attr("href")},title:function(){return this.title},createImg:function(){var e=new Image,n=t(this).data("cbox-img-attrs");return"object"==typeof n&&t.each(n,function(t,n){e[t]=n}),e},createIframe:function(){var n=e.createElement("iframe"),r=t(this).data("cbox-iframe-attrs");return"object"==typeof r&&t.each(r,function(t,e){n[t]=e}),"frameBorder"in n&&(n.frameBorder=0),"allowTransparency"in n&&(n.allowTransparency="true"),n.name=(new Date).getTime(),n.allowFullscreen=!0,n}},$="colorbox",N="cbox",F=N+"Element",U=N+"_open",B=N+"_load",z=N+"_complete",W=N+"_cleanup",H=N+"_closed",V=N+"_purge",G=t("<a/>"),q="div",X=0,Y={};function Z(n,r,i){var o=e.createElement(n);return r&&(o.id=N+r),i&&(o.style.cssText=i),t(o)}function K(){return n.innerHeight?n.innerHeight:t(n).height()}function J(e,n){n!==Object(n)&&(n={}),this.cache={},this.el=e,this.value=function(e){var r;return void 0===this.cache[e]&&(void 0!==(r=t(this.el).attr("data-cbox-"+e))?this.cache[e]=r:void 0!==n[e]?this.cache[e]=n[e]:void 0!==L[e]&&(this.cache[e]=L[e])),this.cache[e]},this.get=function(e){var n=this.value(e);return t.isFunction(n)?n.call(this.el,this):n}}function Q(t){var e=f.length,n=(T+t)%e;return n<0?e+n:n}function tt(t,e){return Math.round((/%/.test(t)?("x"===e?d.width():K())/100:1)*parseInt(t,10))}function et(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function nt(t,e){return t.get("retinaUrl")&&n.devicePixelRatio>1?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}function rt(t){"contains"in i[0]&&!i[0].contains(t.target)&&t.target!==r[0]&&(t.stopPropagation(),i.focus())}function it(t){it.str!==t&&(i.add(r).removeClass(it.str).addClass(t),it.str=t)}function ot(n){t(e).trigger(n),G.triggerHandler(n)}var at=function(){var t,e,n=N+"Slideshow_",r="click."+N;function o(){clearTimeout(e)}function a(){(_.get("loop")||f[T+1])&&(o(),e=setTimeout(I.next,_.get("slideshowSpeed")))}function s(){y.html(_.get("slideshowStop")).unbind(r).one(r,u),G.bind(z,a).bind(B,o),i.removeClass(n+"off").addClass(n+"on")}function u(){o(),G.unbind(z,a).unbind(B,o),y.html(_.get("slideshowStart")).unbind(r).one(r,function(){I.next(),s()}),i.removeClass(n+"on").addClass(n+"off")}function c(){t=!1,y.hide(),o(),G.unbind(z,a).unbind(B,o),i.removeClass(n+"off "+n+"on")}return function(){t?_.get("slideshow")||(G.unbind(W,c),c()):_.get("slideshow")&&f[1]&&(t=!0,G.one(W,c),_.get("slideshowAuto")?s():u(),y.show())}}();function st(o){var d,m;if(!R){if(d=t(o).data($),_=new J(o,d),m=_.get("rel"),T=0,m&&!1!==m&&"nofollow"!==m?(f=t("."+F).filter(function(){return new J(this,t.data(this,$)).get("rel")===m}),-1===(T=f.index(_.el))&&(f=f.add(_.el),T=f.length-1)):f=t(_.el),!j){j=M=!0,it(_.get("className")),i.css({visibility:"hidden",display:"block",opacity:""}),p=Z(q,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),a.css({width:"",height:""}).append(p),P=s.height()+l.height()+a.outerHeight(!0)-a.height(),k=u.width()+c.width()+a.outerWidth(!0)-a.width(),O=p.outerHeight(!0),E=p.outerWidth(!0);var y=tt(_.get("initialWidth"),"x"),b=tt(_.get("initialHeight"),"y"),w=_.get("maxWidth"),D=_.get("maxHeight");_.w=Math.max((!1!==w?Math.min(y,tt(w,"x")):y)-E-k,0),_.h=Math.max((!1!==D?Math.min(b,tt(D,"y")):b)-O-P,0),p.css({width:"",height:_.h}),I.position(),ot(U),_.get("onOpen"),S.add(g).hide(),i.focus(),_.get("trapFocus")&&e.addEventListener&&(e.addEventListener("focus",rt,!0),G.one(H,function(){e.removeEventListener("focus",rt,!0)})),_.get("returnFocus")&&G.one(H,function(){t(_.el).focus()})}var L=parseFloat(_.get("opacity"));r.css({opacity:L==L?L:"",cursor:_.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),_.get("closeButton")?x.html(_.get("close")).appendTo(a):x.appendTo("<div/>"),function(){var e,r,i,o=I.prep,a=++X;if(M=!0,C=!1,ot(V),ot(B),_.get("onLoad"),_.h=_.get("height")?tt(_.get("height"),"y")-O-P:_.get("innerHeight")&&tt(_.get("innerHeight"),"y"),_.w=_.get("width")?tt(_.get("width"),"x")-E-k:_.get("innerWidth")&&tt(_.get("innerWidth"),"x"),_.mw=_.w,_.mh=_.h,_.get("maxWidth")&&(_.mw=tt(_.get("maxWidth"),"x")-E-k,_.mw=_.w&&_.w<_.mw?_.w:_.mw),_.get("maxHeight")&&(_.mh=tt(_.get("maxHeight"),"y")-O-P,_.mh=_.h&&_.h<_.mh?_.h:_.mh),e=_.get("href"),A=setTimeout(function(){v.show()},100),_.get("inline")){var s=t(e).eq(0);i=t("<div>").hide().insertBefore(s),G.one(V,function(){i.replaceWith(s)}),o(s)}else _.get("iframe")?o(" "):_.get("html")?o(_.get("html")):et(_,e)?(e=nt(_,e),C=_.get("createImg"),t(C).addClass(N+"Photo").bind("error."+N,function(){o(Z(q,"Error").html(_.get("imgError")))}).one("load",function(){a===X&&setTimeout(function(){var e;_.get("retinaImage")&&n.devicePixelRatio>1&&(C.height=C.height/n.devicePixelRatio,C.width=C.width/n.devicePixelRatio),_.get("scalePhotos")&&(r=function(){C.height-=C.height*e,C.width-=C.width*e},_.mw&&C.width>_.mw&&(e=(C.width-_.mw)/C.width,r()),_.mh&&C.height>_.mh&&(e=(C.height-_.mh)/C.height,r())),_.h&&(C.style.marginTop=Math.max(_.mh-C.height,0)/2+"px"),f[1]&&(_.get("loop")||f[T+1])&&(C.style.cursor="pointer",t(C).bind("click."+N,function(){I.next()})),C.style.width=C.width+"px",C.style.height=C.height+"px",o(C)},1)}),C.src=e):e&&h.load(e,_.get("data"),function(e,n){a===X&&o("error"===n?Z(q,"Error").html(_.get("xhrError")):t(this).contents())})}()}}function ut(){i||(D=!1,d=t(n),i=Z(q).attr({id:$,class:!1===t.support.opacity?N+"IE":"",role:"dialog",tabindex:"-1"}).hide(),r=Z(q,"Overlay").hide(),v=t([Z(q,"LoadingOverlay")[0],Z(q,"LoadingGraphic")[0]]),o=Z(q,"Wrapper"),a=Z(q,"Content").append(g=Z(q,"Title"),m=Z(q,"Current"),w=t('<button type="button"/>').attr({id:N+"Previous"}),b=t('<button type="button"/>').attr({id:N+"Next"}),y=t('<button type="button"/>').attr({id:N+"Slideshow"}),v),x=t('<button type="button"/>').attr({id:N+"Close"}),o.append(Z(q).append(Z(q,"TopLeft"),s=Z(q,"TopCenter"),Z(q,"TopRight")),Z(q,!1,"clear:left").append(u=Z(q,"MiddleLeft"),a,c=Z(q,"MiddleRight")),Z(q,!1,"clear:left").append(Z(q,"BottomLeft"),l=Z(q,"BottomCenter"),Z(q,"BottomRight"))).find("div div").css({float:"left"}),h=Z(q,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),S=b.add(w).add(m).add(y)),e.body&&!i.parent().length&&t(e.body).append(r,i.append(o,h))}t[$]||(t(ut),(I=t.fn[$]=t[$]=function(n,o){var a=this;return n=n||{},t.isFunction(a)&&(a=t("<a/>"),n.open=!0),a[0]?(ut(),function(){function n(t){t.which>1||t.shiftKey||t.altKey||t.metaKey||t.ctrlKey||(t.preventDefault(),st(this))}return!!i&&(D||(D=!0,b.click(function(){I.next()}),w.click(function(){I.prev()}),x.click(function(){I.close()}),r.click(function(){_.get("overlayClose")&&I.close()}),t(e).bind("keydown."+N,function(t){var e=t.keyCode;j&&_.get("escKey")&&27===e&&(t.preventDefault(),I.close()),j&&_.get("arrowKey")&&f[1]&&!t.altKey&&(37===e?(t.preventDefault(),w.click()):39===e&&(t.preventDefault(),b.click()))}),t.isFunction(t.fn.on)?t(e).on("click."+N,"."+F,n):t("."+F).live("click."+N,n)),!0)}()&&(o&&(n.onComplete=o),a.each(function(){var e=t.data(this,$)||{};t.data(this,$,t.extend(e,n))}).addClass(F),new J(a[0],n).get("open")&&st(a[0])),a):a}).position=function(e,n){var r,f,p,h=0,v=0,g=i.offset();function m(){s[0].style.width=l[0].style.width=a[0].style.width=parseInt(i[0].style.width,10)-k+"px",a[0].style.height=u[0].style.height=c[0].style.height=parseInt(i[0].style.height,10)-P+"px"}if(d.unbind("resize."+N),i.css({top:-9e4,left:-9e4}),f=d.scrollTop(),p=d.scrollLeft(),_.get("fixed")?(g.top-=f,g.left-=p,i.css({position:"fixed"})):(h=f,v=p,i.css({position:"absolute"})),!1!==_.get("right")?v+=Math.max(d.width()-_.w-E-k-tt(_.get("right"),"x"),0):!1!==_.get("left")?v+=tt(_.get("left"),"x"):v+=Math.round(Math.max(d.width()-_.w-E-k,0)/2),!1!==_.get("bottom")?h+=Math.max(K()-_.h-O-P-tt(_.get("bottom"),"y"),0):!1!==_.get("top")?h+=tt(_.get("top"),"y"):h+=Math.round(Math.max(K()-_.h-O-P,0)/2),i.css({top:g.top,left:g.left,visibility:"visible"}),o[0].style.width=o[0].style.height="9999px",r={width:_.w+E+k,height:_.h+O+P,top:h,left:v},e){var y=0;t.each(r,function(t){r[t]===Y[t]||(y=e)}),e=y}Y=r,e||i.css(r),i.dequeue().animate(r,{duration:e||0,complete:function(){m(),M=!1,o[0].style.width=_.w+E+k+"px",o[0].style.height=_.h+O+P+"px",_.get("reposition")&&setTimeout(function(){d.bind("resize."+N,I.position)},1),t.isFunction(n)&&n()},step:m})},I.resize=function(t){var e;j&&((t=t||{}).width&&(_.w=tt(t.width,"x")-E-k),t.innerWidth&&(_.w=tt(t.innerWidth,"x")),p.css({width:_.w}),t.height&&(_.h=tt(t.height,"y")-O-P),t.innerHeight&&(_.h=tt(t.innerHeight,"y")),t.innerHeight||t.height||(e=p.scrollTop(),p.css({height:"auto"}),_.h=p.height()),p.css({height:_.h}),e&&p.scrollTop(e),I.position("none"===_.get("transition")?0:_.get("speed")))},I.prep=function(n){if(j){var r,o="none"===_.get("transition")?0:_.get("speed");p.remove(),(p=Z(q,"LoadedContent").append(n)).hide().appendTo(h.show()).css({width:(_.w=_.w||p.width(),_.w=_.mw&&_.mw<_.w?_.mw:_.w,_.w),overflow:_.get("scrolling")?"auto":"hidden"}).css({height:(_.h=_.h||p.height(),_.h=_.mh&&_.mh<_.h?_.mh:_.h,_.h)}).prependTo(a),h.hide(),t(C).css({float:"none"}),it(_.get("className")),r=function(){var n,r,a=f.length;function s(){!1===t.support.opacity&&i[0].style.removeAttribute("filter")}j&&(r=function(){clearTimeout(A),v.hide(),ot(z),_.get("onComplete")},g.html(_.get("title")).show(),p.show(),a>1?("string"==typeof _.get("current")&&m.html(_.get("current").replace("{current}",T+1).replace("{total}",a)).show(),b[_.get("loop")||T<a-1?"show":"hide"]().html(_.get("next")),w[_.get("loop")||T?"show":"hide"]().html(_.get("previous")),at(),_.get("preloading")&&t.each([Q(-1),Q(1)],function(){var n=f[this],r=new J(n,t.data(n,$)),i=r.get("href");i&&et(r,i)&&(i=nt(r,i),e.createElement("img").src=i)})):S.hide(),_.get("iframe")?(n=_.get("createIframe"),_.get("scrolling")||(n.scrolling="no"),t(n).attr({src:_.get("href"),class:N+"Iframe"}).one("load",r).appendTo(p),G.one(V,function(){n.src="//about:blank"}),_.get("fastIframe")&&t(n).trigger("load")):r(),"fade"===_.get("transition")?i.fadeTo(o,1,s):s())},"fade"===_.get("transition")?i.fadeTo(o,0,function(){I.position(0,r)}):I.position(o,r)}},I.next=function(){!M&&f[1]&&(_.get("loop")||f[T+1])&&(T=Q(1),st(f[T]))},I.prev=function(){!M&&f[1]&&(_.get("loop")||T)&&(T=Q(-1),st(f[T]))},I.close=function(){j&&!R&&(R=!0,j=!1,ot(W),_.get("onCleanup"),d.unbind("."+N),r.fadeTo(_.get("fadeOut")||0,0),i.stop().fadeTo(_.get("fadeOut")||0,0,function(){i.hide(),r.hide(),ot(V),p.remove(),setTimeout(function(){R=!1,ot(H),_.get("onClosed")},1)}))},I.remove=function(){i&&(i.stop(),t[$].close(),i.stop(!1,!0).remove(),r.remove(),R=!1,i=null,t("."+F).removeData($).removeClass(F),t(e).unbind("click."+N).unbind("keydown."+N))},I.element=function(){return t(_.el)},I.settings=L)}(n(1669),document,window)},8497:function(t,e,n){!function(t){if(t.support.touch="ontouchend"in document,t.support.touch){var e,n=t.ui.mouse.prototype,r=n._mouseInit,i=n._mouseDestroy;n._touchStart=function(t){!e&&this._mouseCapture(t.originalEvent.changedTouches[0])&&(e=!0,this._touchMoved=!1,o(t,"mouseover"),o(t,"mousemove"),o(t,"mousedown"))},n._touchMove=function(t){e&&(this._touchMoved=!0,o(t,"mousemove"))},n._touchEnd=function(t){e&&(o(t,"mouseup"),o(t,"mouseout"),this._touchMoved||o(t,"click"),e=!1)},n._mouseInit=function(){var e=this;e.element.bind({touchstart:t.proxy(e,"_touchStart"),touchmove:t.proxy(e,"_touchMove"),touchend:t.proxy(e,"_touchEnd")}),r.call(e)},n._mouseDestroy=function(){var e=this;e.element.unbind({touchstart:t.proxy(e,"_touchStart"),touchmove:t.proxy(e,"_touchMove"),touchend:t.proxy(e,"_touchEnd")}),i.call(e)}}function o(t,e){if(!(t.originalEvent.touches.length>1)){t.preventDefault();var n=t.originalEvent.changedTouches[0],r=document.createEvent("MouseEvents");r.initMouseEvent(e,!0,!0,window,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(r)}}}(n(1669))},8045:function(t,e,n){var r,i,o;i=[n(1669),n(6883)],void 0===(o="function"==typeof(r=function(t){return t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase())})?r.apply(e,i):r)||(t.exports=o)},1897:function(t,e,n){var r,i,o;i=[n(1669),n(6883)],void 0===(o="function"==typeof(r=function(t){return t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}})?r.apply(e,i):r)||(t.exports=o)},6883:function(t,e,n){var r,i,o;i=[n(1669)],void 0===(o="function"==typeof(r=function(t){return t.ui=t.ui||{},t.ui.version="1.12.1"})?r.apply(e,i):r)||(t.exports=o)},9139:function(t,e,n){var r,i,o;i=[n(1669),n(6883)],r=function(t){var e,n=0,r=Array.prototype.slice;return t.cleanData=(e=t.cleanData,function(n){var r,i,o;for(o=0;null!=(i=n[o]);o++)try{(r=t._data(i,"events"))&&r.remove&&t(i).triggerHandler("remove")}catch(t){}e(n)}),t.widget=function(e,n,r){var i,o,a,s={},u=e.split(".")[0],c=u+"-"+(e=e.split(".")[1]);return r||(r=n,n=t.Widget),t.isArray(r)&&(r=t.extend.apply(null,[{}].concat(r))),t.expr[":"][c.toLowerCase()]=function(e){return!!t.data(e,c)},t[u]=t[u]||{},i=t[u][e],o=t[u][e]=function(t,e){if(!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},t.extend(o,i,{version:r.version,_proto:t.extend({},r),_childConstructors:[]}),(a=new n).options=t.widget.extend({},a.options),t.each(r,function(e,r){t.isFunction(r)?s[e]=function(){function t(){return n.prototype[e].apply(this,arguments)}function i(t){return n.prototype[e].apply(this,t)}return function(){var e,n=this._super,o=this._superApply;return this._super=t,this._superApply=i,e=r.apply(this,arguments),this._super=n,this._superApply=o,e}}():s[e]=r}),o.prototype=t.widget.extend(a,{widgetEventPrefix:i&&a.widgetEventPrefix||e},s,{constructor:o,namespace:u,widgetName:e,widgetFullName:c}),i?(t.each(i._childConstructors,function(e,n){var r=n.prototype;t.widget(r.namespace+"."+r.widgetName,o,n._proto)}),delete i._childConstructors):n._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var n,i,o=r.call(arguments,1),a=0,s=o.length;a<s;a++)for(n in o[a])i=o[a][n],o[a].hasOwnProperty(n)&&void 0!==i&&(t.isPlainObject(i)?e[n]=t.isPlainObject(e[n])?t.widget.extend({},e[n],i):t.widget.extend({},i):e[n]=i);return e},t.widget.bridge=function(e,n){var i=n.prototype.widgetFullName||e;t.fn[e]=function(o){var a="string"==typeof o,s=r.call(arguments,1),u=this;return a?this.length||"instance"!==o?this.each(function(){var n,r=t.data(this,i);return"instance"===o?(u=r,!1):r?t.isFunction(r[o])&&"_"!==o.charAt(0)?(n=r[o].apply(r,s))!==r&&void 0!==n?(u=n&&n.jquery?u.pushStack(n.get()):n,!1):void 0:t.error("no such method '"+o+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+o+"'")}):u=void 0:(s.length&&(o=t.widget.extend.apply(null,[o].concat(s))),this.each(function(){var e=t.data(this,i);e?(e.option(o||{}),e._init&&e._init()):t.data(this,i,new n(o,this))})),u}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,r){r=t(r||this.defaultElement||this)[0],this.element=t(r),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},r!==this&&(t.data(r,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===r&&this.destroy()}}),this.document=t(r.style?r.ownerDocument:r.document||r),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,function(t,n){e._removeClass(n,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,n){var r,i,o,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a={},r=e.split("."),e=r.shift(),r.length){for(i=a[e]=t.widget.extend({},this.options[e]),o=0;o<r.length-1;o++)i[r[o]]=i[r[o]]||{},i=i[r[o]];if(e=r.pop(),1===arguments.length)return void 0===i[e]?null:i[e];i[e]=n}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];a[e]=n}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var n,r,i;for(n in e)i=this.classesElementLookup[n],e[n]!==this.options.classes[n]&&i&&i.length&&(r=t(i.get()),this._removeClass(i,n),r.addClass(this._classes({element:r,keys:n,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){var n=[],r=this;function i(i,o){var a,s;for(s=0;s<i.length;s++)a=r.classesElementLookup[i[s]]||t(),a=e.add?t(t.unique(a.get().concat(e.element.get()))):t(a.not(e.element).get()),r.classesElementLookup[i[s]]=a,n.push(i[s]),o&&e.classes[i[s]]&&n.push(e.classes[i[s]])}return e=t.extend({element:this.element,classes:this.options.classes||{}},e),this._on(e.element,{remove:"_untrackClassesElement"}),e.keys&&i(e.keys.match(/\S+/g)||[],!0),e.extra&&i(e.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(e){var n=this;t.each(n.classesElementLookup,function(r,i){-1!==t.inArray(e.target,i)&&(n.classesElementLookup[r]=t(i.not(e.target).get()))})},_removeClass:function(t,e,n){return this._toggleClass(t,e,n,!1)},_addClass:function(t,e,n){return this._toggleClass(t,e,n,!0)},_toggleClass:function(t,e,n,r){r="boolean"==typeof r?r:n;var i="string"==typeof t||null===t,o={extra:i?e:n,keys:i?t:e,element:i?this.element:t,add:r};return o.element.toggleClass(this._classes(o),r),this},_on:function(e,n,r){var i,o=this;"boolean"!=typeof e&&(r=n,n=e,e=!1),r?(n=i=t(n),this.bindings=this.bindings.add(n)):(r=n,n=this.element,i=this.widget()),t.each(r,function(r,a){function s(){if(e||!0!==o.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof a?o[a]:a).apply(o,arguments)}"string"!=typeof a&&(s.guid=a.guid=a.guid||s.guid||t.guid++);var u=r.match(/^([\w:-]*)\s*(.*)$/),c=u[1]+o.eventNamespace,l=u[2];l?i.on(c,l,s):n.on(c,s)})},_off:function(e,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(n).off(n),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){var n=this;return setTimeout(function(){return("string"==typeof t?n[t]:t).apply(n,arguments)},e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,n,r){var i,o,a=this.options[e];if(r=r||{},(n=t.Event(n)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),n.target=this.element[0],o=n.originalEvent)for(i in o)i in n||(n[i]=o[i]);return this.element.trigger(n,r),!(t.isFunction(a)&&!1===a.apply(this.element[0],[n].concat(r))||n.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,n){t.Widget.prototype["_"+e]=function(r,i,o){var a;"string"==typeof i&&(i={effect:i});var s=i?!0===i||"number"==typeof i?n:i.effect||n:e;"number"==typeof(i=i||{})&&(i={duration:i}),a=!t.isEmptyObject(i),i.complete=o,i.delay&&r.delay(i.delay),a&&t.effects&&t.effects.effect[s]?r[e](i):s!==e&&r[s]?r[s](i.duration,i.easing,o):r.queue(function(n){t(this)[e](),o&&o.call(r[0]),n()})}}),t.widget},void 0===(o=r.apply(e,i))||(t.exports=o)},3662:function(t,e,n){var r,i,o;i=[n(1669),n(8045),n(6883),n(9139)],void 0===(o="function"==typeof(r=function(t){var e=!1;return t(document).on("mouseup",function(){e=!1}),t.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).on("click."+this.widgetName,function(n){if(!0===t.data(n.target,e.widgetName+".preventClickEvent"))return t.removeData(n.target,e.widgetName+".preventClickEvent"),n.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(n){if(!e){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(n),this._mouseDownEvent=n;var r=this,i=1===n.which,o=!("string"!=typeof this.options.cancel||!n.target.nodeName)&&t(n.target).closest(this.options.cancel).length;return!(i&&!o&&this._mouseCapture(n)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){r.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(n)&&this._mouseDelayMet(n)&&(this._mouseStarted=!1!==this._mouseStart(n),!this._mouseStarted)?(n.preventDefault(),0):(!0===t.data(n.target,this.widgetName+".preventClickEvent")&&t.removeData(n.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return r._mouseMove(t)},this._mouseUpDelegate=function(t){return r._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),n.preventDefault(),e=!0,0)))}},_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(n){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,n.target===this._mouseDownEvent.target&&t.data(n.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(n)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,e=!1,n.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})?r.apply(e,i):r)||(t.exports=o)},4720:function(t,e,n){var r,i,o;i=[n(1669),n(3662),n(1897),n(6883),n(9139)],r=function(t){return t.widget("ui.slider",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,n,r=this.options,i=this.element.find(".ui-slider-handle"),o=[];for(n=r.values&&r.values.length||1,i.length>n&&(i.slice(n).remove(),i=i.slice(0,n)),e=i.length;e<n;e++)o.push("<span tabindex='0'></span>");this.handles=i.add(t(o.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(e){t(this).data("ui-slider-handle-index",e).attr("tabIndex",0)})},_createRange:function(){var e=this.options;e.range?(!0===e.range&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:t.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=t("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==e.range&&"max"!==e.range||this._addClass(this.range,"ui-slider-range-"+e.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(e){var n,r,i,o,a,s,u,c=this,l=this.options;return!l.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),n={x:e.pageX,y:e.pageY},r=this._normValueFromMouse(n),i=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var n=Math.abs(r-c.values(e));(i>n||i===n&&(e===c._lastChangedValue||c.values(e)===l.min))&&(i=n,o=t(this),a=e)}),!1!==this._start(e,a)&&(this._mouseSliding=!0,this._handleIndex=a,this._addClass(o,null,"ui-state-active"),o.trigger("focus"),s=o.offset(),u=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=u?{left:0,top:0}:{left:e.pageX-s.left-o.width()/2,top:e.pageY-s.top-o.height()/2-(parseInt(o.css("borderTopWidth"),10)||0)-(parseInt(o.css("borderBottomWidth"),10)||0)+(parseInt(o.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,a,r),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},n=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,n),!1},_mouseStop:function(t){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,n,r,i,o;return"horizontal"===this.orientation?(e=this.elementSize.width,n=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,n=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(r=n/e)>1&&(r=1),r<0&&(r=0),"vertical"===this.orientation&&(r=1-r),i=this._valueMax()-this._valueMin(),o=this._valueMin()+r*i,this._trimAlignValue(o)},_uiHash:function(t,e,n){var r={handle:this.handles[t],handleIndex:t,value:void 0!==e?e:this.value()};return this._hasMultipleValues()&&(r.value=void 0!==e?e:this.values(t),r.values=n||this.values()),r},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(t,e){return this._trigger("start",t,this._uiHash(e))},_slide:function(t,e,n){var r,i=this.value(),o=this.values();this._hasMultipleValues()&&(r=this.values(e?0:1),i=this.values(e),2===this.options.values.length&&!0===this.options.range&&(n=0===e?Math.min(r,n):Math.max(r,n)),o[e]=n),n!==i&&!1!==this._trigger("slide",t,this._uiHash(e,n,o))&&(this._hasMultipleValues()?this.values(e,n):this.value(n))},_stop:function(t,e){this._trigger("stop",t,this._uiHash(e))},_change:function(t,e){this._keySliding||this._mouseSliding||(this._lastChangedValue=e,this._trigger("change",t,this._uiHash(e)))},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,n){var r,i,o;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(n),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this._hasMultipleValues()?this._values(e):this.value();for(r=this.options.values,i=arguments[0],o=0;o<r.length;o+=1)r[o]=this._trimAlignValue(i[o]),this._change(null,o);this._refreshValue()},_setOption:function(e,n){var r,i=0;switch("range"===e&&!0===this.options.range&&("min"===n?(this.options.value=this._values(0),this.options.values=null):"max"===n&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),t.isArray(this.options.values)&&(i=this.options.values.length),this._super(e,n),e){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(n),this.handles.css("horizontal"===n?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),r=i-1;r>=0;r--)this._change(null,r);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(t){this._super(t),this._toggleClass(null,"ui-state-disabled",!!t)},_value:function(){var t=this.options.value;return this._trimAlignValue(t)},_values:function(t){var e,n,r;if(arguments.length)return e=this.options.values[t],this._trimAlignValue(e);if(this._hasMultipleValues()){for(n=this.options.values.slice(),r=0;r<n.length;r+=1)n[r]=this._trimAlignValue(n[r]);return n}return[]},_trimAlignValue:function(t){if(t<=this._valueMin())return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,n=(t-this._valueMin())%e,r=t-n;return 2*Math.abs(n)>=e&&(r+=n>0?e:-e),parseFloat(r.toFixed(5))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),n=this.options.step;(t=Math.round((t-e)/n)*n+e)>this.options.max&&(t-=n),this.max=parseFloat(t.toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=t.toString(),n=e.indexOf(".");return-1===n?0:e.length-n-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(t){"vertical"===t&&this.range.css({width:"",left:""}),"horizontal"===t&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var e,n,r,i,o,a=this.options.range,s=this.options,u=this,c=!this._animateOff&&s.animate,l={};this._hasMultipleValues()?this.handles.each(function(r){n=(u.values(r)-u._valueMin())/(u._valueMax()-u._valueMin())*100,l["horizontal"===u.orientation?"left":"bottom"]=n+"%",t(this).stop(1,1)[c?"animate":"css"](l,s.animate),!0===u.options.range&&("horizontal"===u.orientation?(0===r&&u.range.stop(1,1)[c?"animate":"css"]({left:n+"%"},s.animate),1===r&&u.range[c?"animate":"css"]({width:n-e+"%"},{queue:!1,duration:s.animate})):(0===r&&u.range.stop(1,1)[c?"animate":"css"]({bottom:n+"%"},s.animate),1===r&&u.range[c?"animate":"css"]({height:n-e+"%"},{queue:!1,duration:s.animate}))),e=n}):(r=this.value(),i=this._valueMin(),o=this._valueMax(),n=o!==i?(r-i)/(o-i)*100:0,l["horizontal"===this.orientation?"left":"bottom"]=n+"%",this.handle.stop(1,1)[c?"animate":"css"](l,s.animate),"min"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:n+"%"},s.animate),"max"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:100-n+"%"},s.animate),"min"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:n+"%"},s.animate),"max"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:100-n+"%"},s.animate))},_handleEvents:{keydown:function(e){var n,r,i,o=t(e.target).data("ui-slider-handle-index");switch(e.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(t(e.target),null,"ui-state-active"),!1===this._start(e,o)))return}switch(i=this.options.step,n=r=this._hasMultipleValues()?this.values(o):this.value(),e.keyCode){case t.ui.keyCode.HOME:r=this._valueMin();break;case t.ui.keyCode.END:r=this._valueMax();break;case t.ui.keyCode.PAGE_UP:r=this._trimAlignValue(n+(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.PAGE_DOWN:r=this._trimAlignValue(n-(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(n===this._valueMax())return;r=this._trimAlignValue(n+i);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(n===this._valueMin())return;r=this._trimAlignValue(n-i)}this._slide(e,o,r)},keyup:function(e){var n=t(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,n),this._change(e,n),this._removeClass(t(e.target),null,"ui-state-active"))}}})},void 0===(o=r.apply(e,i))||(t.exports=o)},1669:function(t){"use strict";t.exports=jQuery},9306:function(t,e,n){"use strict";var r=n(4901),i=n(6823),o=TypeError;t.exports=function(t){if(r(t))return t;throw new o(i(t)+" is not a function")}},5548:function(t,e,n){"use strict";var r=n(3517),i=n(6823),o=TypeError;t.exports=function(t){if(r(t))return t;throw new o(i(t)+" is not a constructor")}},3506:function(t,e,n){"use strict";var r=n(3925),i=String,o=TypeError;t.exports=function(t){if(r(t))return t;throw new o("Can't set "+i(t)+" as a prototype")}},6469:function(t,e,n){"use strict";var r=n(8227),i=n(2360),o=n(4913).f,a=r("unscopables"),s=Array.prototype;void 0===s[a]&&o(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},7829:function(t,e,n){"use strict";var r=n(8183).charAt;t.exports=function(t,e,n){return e+(n&&r(t,e).length||1)}},679:function(t,e,n){"use strict";var r=n(1625),i=TypeError;t.exports=function(t,e){if(r(e,t))return t;throw new i("Incorrect invocation")}},8551:function(t,e,n){"use strict";var r=n(34),i=String,o=TypeError;t.exports=function(t){if(r(t))return t;throw new o(i(t)+" is not an object")}},5652:function(t,e,n){"use strict";var r=n(9039);t.exports=r(function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})},4373:function(t,e,n){"use strict";var r=n(8981),i=n(5610),o=n(6198);t.exports=function(t){for(var e=r(this),n=o(e),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,c=void 0===u?n:i(u,n);c>s;)e[s++]=t;return e}},235:function(t,e,n){"use strict";var r=n(9213).forEach,i=n(4598)("forEach");t.exports=i?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},7916:function(t,e,n){"use strict";var r=n(6080),i=n(9565),o=n(8981),a=n(6319),s=n(4209),u=n(3517),c=n(6198),l=n(4659),f=n(4527),d=n(81),p=n(851),h=n(9539),v=Array;t.exports=function(t){var e=u(this),n=arguments.length,g=n>1?arguments[1]:void 0,m=void 0!==g;m&&(g=r(g,n>2?arguments[2]:void 0));var y,b,w,x,S,_,P=o(t),k=p(P),O=0;if(!k||this===v&&s(k))for(y=c(P),b=e?new this(y):v(y);y>O;O++)_=m?g(P[O],O):P[O],l(b,O,_);else for(b=e?new this:[],S=(x=d(P,k)).next;!(w=i(S,x)).done;O++){_=m?a(x,g,[w.value,O],!0):w.value;try{l(b,O,_)}catch(t){h(x,"throw",t)}}return f(b,O),b}},9617:function(t,e,n){"use strict";var r=n(5397),i=n(5610),o=n(6198),a=function(t){return function(e,n,a){var s=r(e),u=o(s);if(0===u)return!t&&-1;var c,l=i(a,u);if(t&&n!=n){for(;u>l;)if((c=s[l++])!=c)return!0}else for(;u>l;l++)if((t||l in s)&&s[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},9213:function(t,e,n){"use strict";var r=n(6080),i=n(7055),o=n(8981),a=n(6198),s=n(1469),u=n(4659),c=function(t){var e=1===t,n=2===t,c=3===t,l=4===t,f=6===t,d=7===t,p=5===t||f;return function(h,v,g){for(var m,y,b=o(h),w=i(b),x=a(w),S=r(v,g),_=0,P=0,k=e?s(h,x):n||d?s(h,0):void 0;x>_;_++)if((p||_ in w)&&(y=S(m=w[_],_,b),t))if(e)u(k,_,y);else if(y)switch(t){case 3:return!0;case 5:return m;case 6:return _;case 2:u(k,P++,m)}else switch(t){case 4:return!1;case 7:u(k,P++,m)}return f?-1:c||l?l:k}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},597:function(t,e,n){"use strict";var r=n(9039),i=n(8227),o=n(9519),a=i("species");t.exports=function(t){return o>=51||!r(function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo})}},4598:function(t,e,n){"use strict";var r=n(9039);t.exports=function(t,e){var n=[][t];return!!n&&r(function(){n.call(null,e||function(){return 1},1)})}},926:function(t,e,n){"use strict";var r=n(9306),i=n(8981),o=n(7055),a=n(6198),s=TypeError,u="Reduce of empty array with no initial value",c=function(t){return function(e,n,c,l){var f=i(e),d=o(f),p=a(f);if(r(n),0===p&&c<2)throw new s(u);var h=t?p-1:0,v=t?-1:1;if(c<2)for(;;){if(h in d){l=d[h],h+=v;break}if(h+=v,t?h<0:p<=h)throw new s(u)}for(;t?h>=0:p>h;h+=v)h in d&&(l=n(l,d[h],h,f));return l}};t.exports={left:c(!1),right:c(!0)}},4527:function(t,e,n){"use strict";var r=n(3724),i=n(4376),o=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(i(t)&&!a(t,"length").writable)throw new o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},7680:function(t,e,n){"use strict";var r=n(9504);t.exports=r([].slice)},4488:function(t,e,n){"use strict";var r=n(7680),i=Math.floor,o=function(t,e){var n=t.length;if(n<8)for(var a,s,u=1;u<n;){for(s=u,a=t[u];s&&e(t[s-1],a)>0;)t[s]=t[--s];s!==u++&&(t[s]=a)}else for(var c=i(n/2),l=o(r(t,0,c),e),f=o(r(t,c),e),d=l.length,p=f.length,h=0,v=0;h<d||v<p;)t[h+v]=h<d&&v<p?e(l[h],f[v])<=0?l[h++]:f[v++]:h<d?l[h++]:f[v++];return t};t.exports=o},7433:function(t,e,n){"use strict";var r=n(4376),i=n(3517),o=n(34),a=n(8227)("species"),s=Array;t.exports=function(t){var e;return r(t)&&(e=t.constructor,(i(e)&&(e===s||r(e.prototype))||o(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?s:e}},1469:function(t,e,n){"use strict";var r=n(7433);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},6319:function(t,e,n){"use strict";var r=n(8551),i=n(9539);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){i(t,"throw",e)}}},4428:function(t,e,n){"use strict";var r=n(8227)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,function(){throw 2})}catch(t){}t.exports=function(t,e){try{if(!e&&!i)return!1}catch(t){return!1}var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},t(o)}catch(t){}return n}},2195:function(t,e,n){"use strict";var r=n(9504),i=r({}.toString),o=r("".slice);t.exports=function(t){return o(i(t),8,-1)}},6955:function(t,e,n){"use strict";var r=n(2140),i=n(4901),o=n(2195),a=n(8227)("toStringTag"),s=Object,u="Arguments"===o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=s(t),a))?n:u?o(e):"Object"===(r=o(e))&&i(e.callee)?"Arguments":r}},6938:function(t,e,n){"use strict";var r=n(2360),i=n(2106),o=n(6279),a=n(6080),s=n(679),u=n(4117),c=n(2652),l=n(1088),f=n(2529),d=n(7633),p=n(3724),h=n(3451).fastKey,v=n(1181),g=v.set,m=v.getterFor;t.exports={getConstructor:function(t,e,n,l){var f=t(function(t,i){s(t,d),g(t,{type:e,index:r(null),first:null,last:null,size:0}),p||(t.size=0),u(i)||c(i,t[l],{that:t,AS_ENTRIES:n})}),d=f.prototype,v=m(e),y=function(t,e,n){var r,i,o=v(t),a=b(t,e);return a?a.value=n:(o.last=a={index:i=h(e,!0),key:e,value:n,previous:r=o.last,next:null,removed:!1},o.first||(o.first=a),r&&(r.next=a),p?o.size++:t.size++,"F"!==i&&(o.index[i]=a)),t},b=function(t,e){var n,r=v(t),i=h(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key===e)return n};return o(d,{clear:function(){for(var t=v(this),e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=null),e=e.next;t.first=t.last=null,t.index=r(null),p?t.size=0:this.size=0},delete:function(t){var e=this,n=v(e),r=b(e,t);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first===r&&(n.first=i),n.last===r&&(n.last=o),p?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=v(this),r=a(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!b(this,t)}}),o(d,n?{get:function(t){var e=b(this,t);return e&&e.value},set:function(t,e){return y(this,0===t?0:t,e)}}:{add:function(t){return y(this,t=0===t?0:t,t)}}),p&&i(d,"size",{configurable:!0,get:function(){return v(this).size}}),f},setStrong:function(t,e,n){var r=e+" Iterator",i=m(e),o=m(r);l(t,e,function(t,e){g(this,{type:r,target:t,state:i(t),kind:e,last:null})},function(){for(var t=o(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?f("keys"===e?n.key:"values"===e?n.value:[n.key,n.value],!1):(t.target=null,f(void 0,!0))},n?"entries":"values",!n,!0),d(e)}}},4006:function(t,e,n){"use strict";var r=n(9504),i=n(6279),o=n(3451).getWeakData,a=n(679),s=n(8551),u=n(4117),c=n(34),l=n(2652),f=n(9213),d=n(9297),p=n(1181),h=p.set,v=p.getterFor,g=f.find,m=f.findIndex,y=r([].splice),b=0,w=function(t){return t.frozen||(t.frozen=new x)},x=function(){this.entries=[]},S=function(t,e){return g(t.entries,function(t){return t[0]===e})};x.prototype={get:function(t){var e=S(this,t);if(e)return e[1]},has:function(t){return!!S(this,t)},set:function(t,e){var n=S(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=m(this.entries,function(e){return e[0]===t});return~e&&y(this.entries,e,1),!!~e}},t.exports={getConstructor:function(t,e,n,r){var f=t(function(t,i){a(t,p),h(t,{type:e,id:b++,frozen:null}),u(i)||l(i,t[r],{that:t,AS_ENTRIES:n})}),p=f.prototype,g=v(e),m=function(t,e,n){var r=g(t),i=o(s(e),!0);return!0===i?w(r).set(e,n):i[r.id]=n,t};return i(p,{delete:function(t){var e=g(this);if(!c(t))return!1;var n=o(t);return!0===n?w(e).delete(t):n&&d(n,e.id)&&delete n[e.id]},has:function(t){var e=g(this);if(!c(t))return!1;var n=o(t);return!0===n?w(e).has(t):n&&d(n,e.id)}}),i(p,n?{get:function(t){var e=g(this);if(c(t)){var n=o(t);if(!0===n)return w(e).get(t);if(n)return n[e.id]}},set:function(t,e){return m(this,t,e)}}:{add:function(t){return m(this,t,!0)}}),f}}},6468:function(t,e,n){"use strict";var r=n(6518),i=n(4576),o=n(9504),a=n(2796),s=n(6840),u=n(3451),c=n(2652),l=n(679),f=n(4901),d=n(4117),p=n(34),h=n(9039),v=n(4428),g=n(687),m=n(3167);t.exports=function(t,e,n){var y=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),w=y?"set":"add",x=i[t],S=x&&x.prototype,_=x,P={},k=function(t){var e=o(S[t]);s(S,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(b&&!p(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return b&&!p(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(b&&!p(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(a(t,!f(x)||!(b||S.forEach&&!h(function(){(new x).entries().next()}))))_=n.getConstructor(e,t,y,w),u.enable();else if(a(t,!0)){var O=new _,E=O[w](b?{}:-0,1)!==O,T=h(function(){O.has(1)}),C=v(function(t){new x(t)}),j=!b&&h(function(){for(var t=new x,e=5;e--;)t[w](e,e);return!t.has(-0)});C||((_=e(function(t,e){l(t,S);var n=m(new x,t,_);return d(e)||c(e,n[w],{that:n,AS_ENTRIES:y}),n})).prototype=S,S.constructor=_),(T||j)&&(k("delete"),k("has"),y&&k("get")),(j||E)&&k(w),b&&S.clear&&delete S.clear}return P[t]=_,r({global:!0,constructor:!0,forced:_!==x},P),g(_,t),b||n.setStrong(_,t,y),_}},7740:function(t,e,n){"use strict";var r=n(9297),i=n(5031),o=n(7347),a=n(4913);t.exports=function(t,e,n){for(var s=i(e),u=a.f,c=o.f,l=0;l<s.length;l++){var f=s[l];r(t,f)||n&&r(n,f)||u(t,f,c(e,f))}}},1436:function(t,e,n){"use strict";var r=n(8227)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,"/./"[t](e)}catch(t){}}return!1}},2211:function(t,e,n){"use strict";var r=n(9039);t.exports=!r(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},2529:function(t){"use strict";t.exports=function(t,e){return{value:t,done:e}}},6699:function(t,e,n){"use strict";var r=n(3724),i=n(4913),o=n(6980);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},6980:function(t){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},4659:function(t,e,n){"use strict";var r=n(3724),i=n(4913),o=n(6980);t.exports=function(t,e,n){r?i.f(t,e,o(0,n)):t[e]=n}},3640:function(t,e,n){"use strict";var r=n(8551),i=n(4270),o=TypeError;t.exports=function(t){if(r(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw new o("Incorrect hint");return i(this,t)}},2106:function(t,e,n){"use strict";var r=n(283),i=n(4913);t.exports=function(t,e,n){return n.get&&r(n.get,e,{getter:!0}),n.set&&r(n.set,e,{setter:!0}),i.f(t,e,n)}},6840:function(t,e,n){"use strict";var r=n(4901),i=n(4913),o=n(283),a=n(9433);t.exports=function(t,e,n,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:e;if(r(n)&&o(n,c,s),s.global)u?t[e]=n:a(e,n);else{try{s.unsafe?t[e]&&(u=!0):delete t[e]}catch(t){}u?t[e]=n:i.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},6279:function(t,e,n){"use strict";var r=n(6840);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},9433:function(t,e,n){"use strict";var r=n(4576),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},4606:function(t,e,n){"use strict";var r=n(6823),i=TypeError;t.exports=function(t,e){if(!delete t[e])throw new i("Cannot delete property "+r(e)+" of "+r(t))}},3724:function(t,e,n){"use strict";var r=n(9039);t.exports=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},4055:function(t,e,n){"use strict";var r=n(4576),i=n(34),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},6837:function(t){"use strict";var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw new e("Maximum allowed index exceeded");return t}},7400:function(t){"use strict";t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},9296:function(t,e,n){"use strict";var r=n(4055)("span").classList,i=r&&r.constructor&&r.constructor.prototype;t.exports=i===Object.prototype?void 0:i},8727:function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3709:function(t,e,n){"use strict";var r=n(2839).match(/firefox\/(\d+)/i);t.exports=!!r&&+r[1]},3763:function(t,e,n){"use strict";var r=n(2839);t.exports=/MSIE|Trident/.test(r)},4265:function(t,e,n){"use strict";var r=n(2839);t.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},9544:function(t,e,n){"use strict";var r=n(2839);t.exports=/ipad|iphone|ipod/i.test(r)&&/applewebkit/i.test(r)},6193:function(t,e,n){"use strict";var r=n(4215);t.exports="NODE"===r},7860:function(t,e,n){"use strict";var r=n(2839);t.exports=/web0s(?!.*chrome)/i.test(r)},2839:function(t,e,n){"use strict";var r=n(4576).navigator,i=r&&r.userAgent;t.exports=i?String(i):""},9519:function(t,e,n){"use strict";var r,i,o=n(4576),a=n(2839),s=o.process,u=o.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l&&(i=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},3607:function(t,e,n){"use strict";var r=n(2839).match(/AppleWebKit\/(\d+)\./);t.exports=!!r&&+r[1]},4215:function(t,e,n){"use strict";var r=n(4576),i=n(2839),o=n(2195),a=function(t){return i.slice(0,t.length)===t};t.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===o(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"},6518:function(t,e,n){"use strict";var r=n(4576),i=n(7347).f,o=n(6699),a=n(6840),s=n(9433),u=n(7740),c=n(2796);t.exports=function(t,e){var n,l,f,d,p,h=t.target,v=t.global,g=t.stat;if(n=v?r:g?r[h]||s(h,{}):r[h]&&r[h].prototype)for(l in e){if(d=e[l],f=t.dontCallGetSet?(p=i(n,l))&&p.value:n[l],!c(v?l:h+(g?".":"#")+l,t.forced)&&void 0!==f){if(typeof d==typeof f)continue;u(d,f)}(t.sham||f&&f.sham)&&o(d,"sham",!0),a(n,l,d,t)}}},9039:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},9228:function(t,e,n){"use strict";n(7495);var r=n(9565),i=n(6840),o=n(7323),a=n(9039),s=n(8227),u=n(6699),c=s("species"),l=RegExp.prototype;t.exports=function(t,e,n,f){var d=s(t),p=!a(function(){var e={};return e[d]=function(){return 7},7!==""[t](e)}),h=p&&!a(function(){var e=!1,n=/a/;if("split"===t){var r={};r[c]=function(){return n},(n={constructor:r,flags:""})[d]=/./[d]}return n.exec=function(){return e=!0,null},n[d](""),!e});if(!p||!h||n){var v=/./[d],g=e(d,""[t],function(t,e,n,i,a){var s=e.exec;return s===o||s===l.exec?p&&!a?{done:!0,value:r(v,e,n,i)}:{done:!0,value:r(t,n,e,i)}:{done:!1}});i(String.prototype,t,g[0]),i(l,d,g[1])}f&&u(l[d],"sham",!0)}},259:function(t,e,n){"use strict";var r=n(4376),i=n(6198),o=n(6837),a=n(6080),s=n(4659),u=function(t,e,n,c,l,f,d,p){for(var h,v,g=l,m=0,y=!!d&&a(d,p);m<c;)m in n&&(h=y?y(n[m],m,e):n[m],f>0&&r(h)?(v=i(h),g=u(t,e,h,v,g,f-1)-1):(o(g+1),s(t,g,h)),g++),m++;return g};t.exports=u},2744:function(t,e,n){"use strict";var r=n(9039);t.exports=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})},8745:function(t,e,n){"use strict";var r=n(616),i=Function.prototype,o=i.apply,a=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},6080:function(t,e,n){"use strict";var r=n(7476),i=n(9306),o=n(616),a=r(r.bind);t.exports=function(t,e){return i(t),void 0===e?t:o?a(t,e):function(){return t.apply(e,arguments)}}},616:function(t,e,n){"use strict";var r=n(9039);t.exports=!r(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},566:function(t,e,n){"use strict";var r=n(9504),i=n(9306),o=n(34),a=n(9297),s=n(7680),u=n(616),c=Function,l=r([].concat),f=r([].join),d={};t.exports=u?c.bind:function(t){var e=i(this),n=e.prototype,r=s(arguments,1),u=function(){var n=l(r,s(arguments));return this instanceof u?function(t,e,n){if(!a(d,e)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";d[e]=c("C,a","return new C("+f(r,",")+")")}return d[e](t,n)}(e,n.length,n):e.apply(t,n)};return o(n)&&(u.prototype=n),u}},9565:function(t,e,n){"use strict";var r=n(616),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},350:function(t,e,n){"use strict";var r=n(3724),i=n(9297),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),u=s&&"something"===function(){}.name,c=s&&(!r||r&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},6706:function(t,e,n){"use strict";var r=n(9504),i=n(9306);t.exports=function(t,e,n){try{return r(i(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}},7476:function(t,e,n){"use strict";var r=n(2195),i=n(9504);t.exports=function(t){if("Function"===r(t))return i(t)}},9504:function(t,e,n){"use strict";var r=n(616),i=Function.prototype,o=i.call,a=r&&i.bind.bind(o,o);t.exports=r?a:function(t){return function(){return o.apply(t,arguments)}}},7751:function(t,e,n){"use strict";var r=n(4576),i=n(4901);t.exports=function(t,e){return arguments.length<2?(n=r[t],i(n)?n:void 0):r[t]&&r[t][e];var n}},851:function(t,e,n){"use strict";var r=n(6955),i=n(5966),o=n(4117),a=n(6269),s=n(8227)("iterator");t.exports=function(t){if(!o(t))return i(t,s)||i(t,"@@iterator")||a[r(t)]}},81:function(t,e,n){"use strict";var r=n(9565),i=n(9306),o=n(8551),a=n(6823),s=n(851),u=TypeError;t.exports=function(t,e){var n=arguments.length<2?s(t):e;if(i(n))return o(r(n,t));throw new u(a(t)+" is not iterable")}},5966:function(t,e,n){"use strict";var r=n(9306),i=n(4117);t.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},2478:function(t,e,n){"use strict";var r=n(9504),i=n(8981),o=Math.floor,a=r("".charAt),s=r("".replace),u=r("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,f,d){var p=n+t.length,h=r.length,v=l;return void 0!==f&&(f=i(f),v=c),s(d,v,function(i,s){var c;switch(a(s,0)){case"$":return"$";case"&":return t;case"`":return u(e,0,n);case"'":return u(e,p);case"<":c=f[u(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>h){var d=o(l/10);return 0===d?i:d<=h?void 0===r[d-1]?a(s,1):r[d-1]+a(s,1):i}c=r[l-1]}return void 0===c?"":c})}},4576:function(t,e,n){"use strict";var r=function(t){return t&&t.Math===Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:function(t,e,n){"use strict";var r=n(9504),i=n(8981),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},421:function(t){"use strict";t.exports={}},3138:function(t){"use strict";t.exports=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}},397:function(t,e,n){"use strict";var r=n(7751);t.exports=r("document","documentElement")},5917:function(t,e,n){"use strict";var r=n(3724),i=n(9039),o=n(4055);t.exports=!r&&!i(function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},7055:function(t,e,n){"use strict";var r=n(9504),i=n(9039),o=n(2195),a=Object,s=r("".split);t.exports=i(function(){return!a("z").propertyIsEnumerable(0)})?function(t){return"String"===o(t)?s(t,""):a(t)}:a},3167:function(t,e,n){"use strict";var r=n(4901),i=n(34),o=n(2967);t.exports=function(t,e,n){var a,s;return o&&r(a=e.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(t,s),t}},3706:function(t,e,n){"use strict";var r=n(9504),i=n(4901),o=n(7629),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},3451:function(t,e,n){"use strict";var r=n(6518),i=n(9504),o=n(421),a=n(34),s=n(9297),u=n(4913).f,c=n(8480),l=n(298),f=n(4124),d=n(3392),p=n(2744),h=!1,v=d("meta"),g=0,m=function(t){u(t,v,{value:{objectID:"O"+g++,weakData:{}}})},y=t.exports={enable:function(){y.enable=function(){},h=!0;var t=c.f,e=i([].splice),n={};n[v]=1,t(n).length&&(c.f=function(n){for(var r=t(n),i=0,o=r.length;i<o;i++)if(r[i]===v){e(r,i,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},fastKey:function(t,e){if(!a(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,v)){if(!f(t))return"F";if(!e)return"E";m(t)}return t[v].objectID},getWeakData:function(t,e){if(!s(t,v)){if(!f(t))return!0;if(!e)return!1;m(t)}return t[v].weakData},onFreeze:function(t){return p&&h&&f(t)&&!s(t,v)&&m(t),t}};o[v]=!0},1181:function(t,e,n){"use strict";var r,i,o,a=n(8622),s=n(4576),u=n(34),c=n(6699),l=n(9297),f=n(7629),d=n(6119),p=n(421),h="Object already initialized",v=s.TypeError,g=s.WeakMap;if(a||f.state){var m=f.state||(f.state=new g);m.get=m.get,m.has=m.has,m.set=m.set,r=function(t,e){if(m.has(t))throw new v(h);return e.facade=t,m.set(t,e),e},i=function(t){return m.get(t)||{}},o=function(t){return m.has(t)}}else{var y=d("state");p[y]=!0,r=function(t,e){if(l(t,y))throw new v(h);return e.facade=t,c(t,y,e),e},i=function(t){return l(t,y)?t[y]:{}},o=function(t){return l(t,y)}}t.exports={set:r,get:i,has:o,enforce:function(t){return o(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!u(e)||(n=i(e)).type!==t)throw new v("Incompatible receiver, "+t+" required");return n}}}},4209:function(t,e,n){"use strict";var r=n(8227),i=n(6269),o=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},4376:function(t,e,n){"use strict";var r=n(2195);t.exports=Array.isArray||function(t){return"Array"===r(t)}},4901:function(t){"use strict";var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},3517:function(t,e,n){"use strict";var r=n(9504),i=n(9039),o=n(4901),a=n(6955),s=n(7751),u=n(3706),c=function(){},l=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=r(f.exec),p=!f.test(c),h=function(t){if(!o(t))return!1;try{return l(c,[],t),!0}catch(t){return!1}},v=function(t){if(!o(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!d(f,u(t))}catch(t){return!0}};v.sham=!0,t.exports=!l||i(function(){var t;return h(h.call)||!h(Object)||!h(function(){t=!0})||t})?v:h},6575:function(t,e,n){"use strict";var r=n(9297);t.exports=function(t){return void 0!==t&&(r(t,"value")||r(t,"writable"))}},2796:function(t,e,n){"use strict";var r=n(9039),i=n(4901),o=/#|\.prototype\./,a=function(t,e){var n=u[s(t)];return n===l||n!==c&&(i(e)?r(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",l=a.POLYFILL="P";t.exports=a},4117:function(t){"use strict";t.exports=function(t){return null==t}},34:function(t,e,n){"use strict";var r=n(4901);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},3925:function(t,e,n){"use strict";var r=n(34);t.exports=function(t){return r(t)||null===t}},6395:function(t){"use strict";t.exports=!1},5810:function(t,e,n){"use strict";var r=n(34),i=n(1181).get;t.exports=function(t){if(!r(t))return!1;var e=i(t);return!!e&&"RawJSON"===e.type}},788:function(t,e,n){"use strict";var r=n(34),i=n(2195),o=n(8227)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"===i(t))}},757:function(t,e,n){"use strict";var r=n(7751),i=n(4901),o=n(1625),a=n(7040),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&o(e.prototype,s(t))}},2652:function(t,e,n){"use strict";var r=n(6080),i=n(9565),o=n(8551),a=n(6823),s=n(4209),u=n(6198),c=n(1625),l=n(81),f=n(851),d=n(9539),p=TypeError,h=function(t,e){this.stopped=t,this.result=e},v=h.prototype;t.exports=function(t,e,n){var g,m,y,b,w,x,S,_=n&&n.that,P=!(!n||!n.AS_ENTRIES),k=!(!n||!n.IS_RECORD),O=!(!n||!n.IS_ITERATOR),E=!(!n||!n.INTERRUPTED),T=r(e,_),C=function(t){var e=g;return g=void 0,e&&d(e,"normal"),new h(!0,t)},j=function(t){return P?(o(t),E?T(t[0],t[1],C):T(t[0],t[1])):E?T(t,C):T(t)};if(k)g=t.iterator;else if(O)g=t;else{if(!(m=f(t)))throw new p(a(t)+" is not iterable");if(s(m)){for(y=0,b=u(t);b>y;y++)if((w=j(t[y]))&&c(v,w))return w;return new h(!1)}g=l(t,m)}for(x=k?t.next:g.next;!(S=i(x,g)).done;){var M=S.value;try{w=j(M)}catch(t){if(!g)throw t;d(g,"throw",t)}if("object"==typeof w&&w&&c(v,w))return w}return new h(!1)}},9539:function(t,e,n){"use strict";var r=n(9565),i=n(8551),o=n(5966);t.exports=function(t,e,n){var a,s;i(t);try{if(!(a=o(t,"return"))){if("throw"===e)throw n;return n}a=r(a,t)}catch(t){s=!0,a=t}if("throw"===e)throw n;if(s)throw a;return i(a),n}},3994:function(t,e,n){"use strict";var r=n(7657).IteratorPrototype,i=n(2360),o=n(6980),a=n(687),s=n(6269),u=function(){return this};t.exports=function(t,e,n,c){var l=e+" Iterator";return t.prototype=i(r,{next:o(+!c,n)}),a(t,l,!1,!0),s[l]=u,t}},1088:function(t,e,n){"use strict";var r=n(6518),i=n(9565),o=n(6395),a=n(350),s=n(4901),u=n(3994),c=n(2787),l=n(2967),f=n(687),d=n(6699),p=n(6840),h=n(8227),v=n(6269),g=n(7657),m=a.PROPER,y=a.CONFIGURABLE,b=g.IteratorPrototype,w=g.BUGGY_SAFARI_ITERATORS,x=h("iterator"),S="keys",_="values",P="entries",k=function(){return this};t.exports=function(t,e,n,a,h,g,O){u(n,e,a);var E,T,C,j=function(t){if(t===h&&D)return D;if(!w&&t&&t in A)return A[t];switch(t){case S:case _:case P:return function(){return new n(this,t)}}return function(){return new n(this)}},M=e+" Iterator",R=!1,A=t.prototype,I=A[x]||A["@@iterator"]||h&&A[h],D=!w&&I||j(h),L="Array"===e&&A.entries||I;if(L&&(E=c(L.call(new t)))!==Object.prototype&&E.next&&(o||c(E)===b||(l?l(E,b):s(E[x])||p(E,x,k)),f(E,M,!0,!0),o&&(v[M]=k)),m&&h===_&&I&&I.name!==_&&(!o&&y?d(A,"name",_):(R=!0,D=function(){return i(I,this)})),h)if(T={values:j(_),keys:g?D:j(S),entries:j(P)},O)for(C in T)(w||R||!(C in A))&&p(A,C,T[C]);else r({target:e,proto:!0,forced:w||R},T);return o&&!O||A[x]===D||p(A,x,D,{name:h}),v[e]=D,T}},7657:function(t,e,n){"use strict";var r,i,o,a=n(9039),s=n(4901),u=n(34),c=n(2360),l=n(2787),f=n(6840),d=n(8227),p=n(6395),h=d("iterator"),v=!1;[].keys&&("next"in(o=[].keys())?(i=l(l(o)))!==Object.prototype&&(r=i):v=!0),!u(r)||a(function(){var t={};return r[h].call(t)!==t})?r={}:p&&(r=c(r)),s(r[h])||f(r,h,function(){return this}),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}},6269:function(t){"use strict";t.exports={}},6198:function(t,e,n){"use strict";var r=n(8014);t.exports=function(t){return r(t.length)}},283:function(t,e,n){"use strict";var r=n(9504),i=n(9039),o=n(4901),a=n(9297),s=n(3724),u=n(350).CONFIGURABLE,c=n(3706),l=n(1181),f=l.enforce,d=l.get,p=String,h=Object.defineProperty,v=r("".slice),g=r("".replace),m=r([].join),y=s&&!i(function(){return 8!==h(function(){},"length",{value:8}).length}),b=String(String).split("String"),w=t.exports=function(t,e,n){"Symbol("===v(p(e),0,7)&&(e="["+g(p(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||u&&t.name!==e)&&(s?h(t,"name",{value:e,configurable:!0}):t.name=e),y&&n&&a(n,"arity")&&t.length!==n.arity&&h(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&h(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=f(t);return a(r,"source")||(r.source=m(b,"string"==typeof e?e:"")),t};Function.prototype.toString=w(function(){return o(this)&&d(this).source||c(this)},"toString")},7787:function(t){"use strict";var e=Math.log,n=Math.LN2;t.exports=Math.log2||function(t){return e(t)/n}},7782:function(t){"use strict";t.exports=Math.sign||function(t){var e=+t;return 0===e||e!=e?e:e<0?-1:1}},741:function(t){"use strict";var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},1955:function(t,e,n){"use strict";var r,i,o,a,s,u=n(4576),c=n(3389),l=n(6080),f=n(9225).set,d=n(8265),p=n(9544),h=n(4265),v=n(7860),g=n(6193),m=u.MutationObserver||u.WebKitMutationObserver,y=u.document,b=u.process,w=u.Promise,x=c("queueMicrotask");if(!x){var S=new d,_=function(){var t,e;for(g&&(t=b.domain)&&t.exit();e=S.get();)try{e()}catch(t){throw S.head&&r(),t}t&&t.enter()};p||g||v||!m||!y?!h&&w&&w.resolve?((a=w.resolve(void 0)).constructor=w,s=l(a.then,a),r=function(){s(_)}):g?r=function(){b.nextTick(_)}:(f=l(f,u),r=function(){f(_)}):(i=!0,o=y.createTextNode(""),new m(_).observe(o,{characterData:!0}),r=function(){o.data=i=!i}),x=function(t){S.head||r(),S.add(t)}}t.exports=x},7819:function(t,e,n){"use strict";var r=n(9039);t.exports=!r(function(){var t="9007199254740993",e=JSON.rawJSON(t);return!JSON.isRawJSON(e)||JSON.stringify(e)!==t})},6043:function(t,e,n){"use strict";var r=n(9306),i=TypeError,o=function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw new i("Bad Promise constructor");e=t,n=r}),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},2892:function(t,e,n){"use strict";var r=n(788),i=TypeError;t.exports=function(t){if(r(t))throw new i("The method doesn't accept regular expressions");return t}},3904:function(t,e,n){"use strict";var r=n(4576),i=n(9039),o=n(9504),a=n(655),s=n(3802).trim,u=n(7452),c=o("".charAt),l=r.parseFloat,f=r.Symbol,d=f&&f.iterator,p=1/l(u+"-0")!=-1/0||d&&!i(function(){l(Object(d))});t.exports=p?function(t){var e=s(a(t)),n=l(e);return 0===n&&"-"===c(e,0)?-0:n}:l},2703:function(t,e,n){"use strict";var r=n(4576),i=n(9039),o=n(9504),a=n(655),s=n(3802).trim,u=n(7452),c=r.parseInt,l=r.Symbol,f=l&&l.iterator,d=/^[+-]?0x/i,p=o(d.exec),h=8!==c(u+"08")||22!==c(u+"0x16")||f&&!i(function(){c(Object(f))});t.exports=h?function(t,e){var n=s(a(t));return c(n,e>>>0||(p(d,n)?16:10))}:c},4213:function(t,e,n){"use strict";var r=n(3724),i=n(9504),o=n(9565),a=n(9039),s=n(1072),u=n(3717),c=n(8773),l=n(8981),f=n(7055),d=Object.assign,p=Object.defineProperty,h=i([].concat);t.exports=!d||a(function(){if(r&&1!==d({b:1},d(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol("assign detection"),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!==d({},t)[n]||s(d({},e)).join("")!==i})?function(t,e){for(var n=l(t),i=arguments.length,a=1,d=u.f,p=c.f;i>a;)for(var v,g=f(arguments[a++]),m=d?h(s(g),d(g)):s(g),y=m.length,b=0;y>b;)v=m[b++],r&&!o(p,g,v)||(n[v]=g[v]);return n}:d},2360:function(t,e,n){"use strict";var r,i=n(8551),o=n(6801),a=n(8727),s=n(421),u=n(397),c=n(4055),l=n(6119),f="prototype",d="script",p=l("IE_PROTO"),h=function(){},v=function(t){return"<"+d+">"+t+"</"+d+">"},g=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},m=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;m="undefined"!=typeof document?document.domain&&r?g(r):(e=c("iframe"),n="java"+d+":",e.style.display="none",u.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):g(r);for(var i=a.length;i--;)delete m[f][a[i]];return m()};s[p]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(h[f]=i(t),n=new h,h[f]=null,n[p]=t):n=m(),void 0===e?n:o.f(n,e)}},6801:function(t,e,n){"use strict";var r=n(3724),i=n(8686),o=n(4913),a=n(8551),s=n(5397),u=n(1072);e.f=r&&!i?Object.defineProperties:function(t,e){a(t);for(var n,r=s(e),i=u(e),c=i.length,l=0;c>l;)o.f(t,n=i[l++],r[n]);return t}},4913:function(t,e,n){"use strict";var r=n(3724),i=n(5917),o=n(8686),a=n(8551),s=n(6969),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",p="writable";e.f=r?o?function(t,e,n){if(a(t),e=s(e),a(n),"function"==typeof t&&"prototype"===e&&"value"in n&&p in n&&!n[p]){var r=l(t,e);r&&r[p]&&(t[e]=n.value,n={configurable:d in n?n[d]:r[d],enumerable:f in n?n[f]:r[f],writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(a(t),e=s(e),a(n),i)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new u("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},7347:function(t,e,n){"use strict";var r=n(3724),i=n(9565),o=n(8773),a=n(6980),s=n(5397),u=n(6969),c=n(9297),l=n(5917),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=s(t),e=u(e),l)try{return f(t,e)}catch(t){}if(c(t,e))return a(!i(o.f,t,e),t[e])}},298:function(t,e,n){"use strict";var r=n(2195),i=n(5397),o=n(8480).f,a=n(7680),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"Window"===r(t)?function(t){try{return o(t)}catch(t){return a(s)}}(t):o(i(t))}},8480:function(t,e,n){"use strict";var r=n(1828),i=n(8727).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},3717:function(t,e){"use strict";e.f=Object.getOwnPropertySymbols},2787:function(t,e,n){"use strict";var r=n(9297),i=n(4901),o=n(8981),a=n(6119),s=n(2211),u=a("IE_PROTO"),c=Object,l=c.prototype;t.exports=s?c.getPrototypeOf:function(t){var e=o(t);if(r(e,u))return e[u];var n=e.constructor;return i(n)&&e instanceof n?n.prototype:e instanceof c?l:null}},4124:function(t,e,n){"use strict";var r=n(9039),i=n(34),o=n(2195),a=n(5652),s=Object.isExtensible,u=r(function(){s(1)});t.exports=u||a?function(t){return!!i(t)&&(!a||"ArrayBuffer"!==o(t))&&(!s||s(t))}:s},1625:function(t,e,n){"use strict";var r=n(9504);t.exports=r({}.isPrototypeOf)},1828:function(t,e,n){"use strict";var r=n(9504),i=n(9297),o=n(5397),a=n(9617).indexOf,s=n(421),u=r([].push);t.exports=function(t,e){var n,r=o(t),c=0,l=[];for(n in r)!i(s,n)&&i(r,n)&&u(l,n);for(;e.length>c;)i(r,n=e[c++])&&(~a(l,n)||u(l,n));return l}},1072:function(t,e,n){"use strict";var r=n(1828),i=n(8727);t.exports=Object.keys||function(t){return r(t,i)}},8773:function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);e.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},2967:function(t,e,n){"use strict";var r=n(6706),i=n(34),o=n(7750),a=n(3506);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return o(n),a(r),i(n)?(e?t(n,r):n.__proto__=r,n):n}}():void 0)},2357:function(t,e,n){"use strict";var r=n(3724),i=n(9039),o=n(9504),a=n(2787),s=n(1072),u=n(5397),c=o(n(8773).f),l=o([].push),f=r&&i(function(){var t=Object.create(null);return t[2]=2,!c(t,2)}),d=function(t){return function(e){for(var n,i=u(e),o=s(i),d=f&&null===a(i),p=o.length,h=0,v=[];p>h;)n=o[h++],r&&!(d?n in i:c(i,n))||l(v,t?[n,i[n]]:i[n]);return v}};t.exports={entries:d(!0),values:d(!1)}},3179:function(t,e,n){"use strict";var r=n(2140),i=n(6955);t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},4270:function(t,e,n){"use strict";var r=n(9565),i=n(4901),o=n(34),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&i(n=t.toString)&&!o(s=r(n,t)))return s;if(i(n=t.valueOf)&&!o(s=r(n,t)))return s;if("string"!==e&&i(n=t.toString)&&!o(s=r(n,t)))return s;throw new a("Can't convert object to primitive value")}},5031:function(t,e,n){"use strict";var r=n(7751),i=n(9504),o=n(8480),a=n(3717),s=n(8551),u=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(s(t)),n=a.f;return n?u(e,n(t)):e}},8235:function(t,e,n){"use strict";var r=n(9504),i=n(9297),o=SyntaxError,a=parseInt,s=String.fromCharCode,u=r("".charAt),c=r("".slice),l=r(/./.exec),f={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},d=/^[\da-f]{4}$/i,p=/^[\u0000-\u001F]$/;t.exports=function(t,e){for(var n=!0,r="";e<t.length;){var h=u(t,e);if("\\"===h){var v=c(t,e,e+2);if(i(f,v))r+=f[v],e+=2;else{if("\\u"!==v)throw new o('Unknown escape sequence: "'+v+'"');var g=c(t,e+=2,e+4);if(!l(d,g))throw new o("Bad Unicode escape at: "+e);r+=s(a(g,16)),e+=4}}else{if('"'===h){n=!1,e++;break}if(l(p,h))throw new o("Bad control character in string literal at: "+e);r+=h,e++}}if(n)throw new o("Unterminated string at: "+e);return{value:r,end:e}}},9167:function(t,e,n){"use strict";var r=n(4576);t.exports=r},1103:function(t){"use strict";t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},916:function(t,e,n){"use strict";var r=n(4576),i=n(550),o=n(4901),a=n(2796),s=n(3706),u=n(8227),c=n(4215),l=n(6395),f=n(9519),d=i&&i.prototype,p=u("species"),h=!1,v=o(r.PromiseRejectionEvent),g=a("Promise",function(){var t=s(i),e=t!==String(i);if(!e&&66===f)return!0;if(l&&(!d.catch||!d.finally))return!0;if(!f||f<51||!/native code/.test(t)){var n=new i(function(t){t(1)}),r=function(t){t(function(){},function(){})};if((n.constructor={})[p]=r,!(h=n.then(function(){})instanceof r))return!0}return!(e||"BROWSER"!==c&&"DENO"!==c||v)});t.exports={CONSTRUCTOR:g,REJECTION_EVENT:v,SUBCLASSING:h}},550:function(t,e,n){"use strict";var r=n(4576);t.exports=r.Promise},3438:function(t,e,n){"use strict";var r=n(8551),i=n(34),o=n(6043);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},537:function(t,e,n){"use strict";var r=n(550),i=n(4428),o=n(916).CONSTRUCTOR;t.exports=o||!i(function(t){r.all(t).then(void 0,function(){})})},1056:function(t,e,n){"use strict";var r=n(4913).f;t.exports=function(t,e,n){n in t||r(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},8265:function(t){"use strict";var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},t.exports=e},6682:function(t,e,n){"use strict";var r=n(9565),i=n(8551),o=n(4901),a=n(2195),s=n(7323),u=TypeError;t.exports=function(t,e){var n=t.exec;if(o(n)){var c=r(n,t,e);return null!==c&&i(c),c}if("RegExp"===a(t))return r(s,t,e);throw new u("RegExp#exec called on incompatible receiver")}},7323:function(t,e,n){"use strict";var r,i,o=n(9565),a=n(9504),s=n(655),u=n(7979),c=n(8429),l=n(5745),f=n(2360),d=n(1181).get,p=n(3635),h=n(8814),v=l("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,m=g,y=a("".charAt),b=a("".indexOf),w=a("".replace),x=a("".slice),S=(i=/b*/g,o(g,r=/a/,"a"),o(g,i,"a"),0!==r.lastIndex||0!==i.lastIndex),_=c.BROKEN_CARET,P=void 0!==/()??/.exec("")[1],k=function(t,e){for(var n=t.groups=f(null),r=0;r<e.length;r++){var i=e[r];n[i[0]]=t[i[1]]}};(S||P||_||p||h)&&(m=function(t){var e,n,r,i=this,a=d(i),c=s(t),l=a.raw;if(l)return l.lastIndex=i.lastIndex,e=o(m,l,c),i.lastIndex=l.lastIndex,e&&a.groups&&k(e,a.groups),e;var f=a.groups,p=_&&i.sticky,h=o(u,i),O=i.source,E=0,T=c;if(p){h=w(h,"y",""),-1===b(h,"g")&&(h+="g"),T=x(c,i.lastIndex);var C=i.lastIndex>0&&y(c,i.lastIndex-1);i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==C&&"\r"!==C&&"\u2028"!==C&&"\u2029"!==C)&&(O="(?: (?:"+O+"))",T=" "+T,E++),n=new RegExp("^(?:"+O+")",h)}P&&(n=new RegExp("^"+O+"$(?!\\s)",h)),S&&(r=i.lastIndex);var j=o(g,p?n:i,T);return p?j?(j.input=c,j[0]=x(j[0],E),j.index=i.lastIndex,i.lastIndex+=j[0].length):i.lastIndex=0:S&&j&&(i.lastIndex=i.global?j.index+j[0].length:r),P&&j&&j.length>1&&o(v,j[0],n,function(){for(var t=1;t<arguments.length-2;t++)void 0===arguments[t]&&(j[t]=void 0)}),j&&f&&k(j,f),j}),t.exports=m},5213:function(t,e,n){"use strict";var r=n(4576),i=n(9039),o=r.RegExp,a=!i(function(){var t=!0;try{o(".","d")}catch(e){t=!1}var e={},n="",r=t?"dgimsy":"gimsy",i=function(t,r){Object.defineProperty(e,t,{get:function(){return n+=r,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in t&&(a.hasIndices="d"),a)i(s,a[s]);return Object.getOwnPropertyDescriptor(o.prototype,"flags").get.call(e)!==r||n!==r});t.exports={correct:a}},7979:function(t,e,n){"use strict";var r=n(8551);t.exports=function(){var t=r(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},1034:function(t,e,n){"use strict";var r=n(9565),i=n(9297),o=n(1625),a=n(5213),s=n(7979),u=RegExp.prototype;t.exports=a.correct?function(t){return t.flags}:function(t){return a.correct||!o(u,t)||i(t,"flags")?t.flags:r(s,t)}},8429:function(t,e,n){"use strict";var r=n(9039),i=n(4576).RegExp,o=r(function(){var t=i("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),a=o||r(function(){return!i("a","y").sticky}),s=o||r(function(){var t=i("^r","gy");return t.lastIndex=2,null!==t.exec("str")});t.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:o}},3635:function(t,e,n){"use strict";var r=n(9039),i=n(4576).RegExp;t.exports=r(function(){var t=i(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})},8814:function(t,e,n){"use strict";var r=n(9039),i=n(4576).RegExp;t.exports=r(function(){var t=i("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})},7750:function(t,e,n){"use strict";var r=n(4117),i=TypeError;t.exports=function(t){if(r(t))throw new i("Can't call method on "+t);return t}},3389:function(t,e,n){"use strict";var r=n(4576),i=n(3724),o=Object.getOwnPropertyDescriptor;t.exports=function(t){if(!i)return r[t];var e=o(r,t);return e&&e.value}},3470:function(t){"use strict";t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},7633:function(t,e,n){"use strict";var r=n(7751),i=n(2106),o=n(8227),a=n(3724),s=o("species");t.exports=function(t){var e=r(t);a&&e&&!e[s]&&i(e,s,{configurable:!0,get:function(){return this}})}},687:function(t,e,n){"use strict";var r=n(4913).f,i=n(9297),o=n(8227)("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!i(t,o)&&r(t,o,{configurable:!0,value:e})}},6119:function(t,e,n){"use strict";var r=n(5745),i=n(3392),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},7629:function(t,e,n){"use strict";var r=n(6395),i=n(4576),o=n(9433),a="__core-js_shared__",s=t.exports=i[a]||o(a,{});(s.versions||(s.versions=[])).push({version:"3.49.0",mode:r?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:function(t,e,n){"use strict";var r=n(7629);t.exports=function(t,e){return r[t]||(r[t]=e||{})}},2293:function(t,e,n){"use strict";var r=n(8551),i=n(5548),o=n(4117),a=n(8227)("species");t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||o(n=r(s)[a])?e:i(n)}},8183:function(t,e,n){"use strict";var r=n(9504),i=n(1291),o=n(655),a=n(7750),s=r("".charAt),u=r("".charCodeAt),c=r("".slice),l=function(t){return function(e,n){var r,l,f=o(a(e)),d=i(n),p=f.length;return d<0||d>=p?t?"":void 0:(r=u(f,d))<55296||r>56319||d+1===p||(l=u(f,d+1))<56320||l>57343?t?s(f,d):r:t?c(f,d,d+2):l-56320+(r-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},3802:function(t,e,n){"use strict";var r=n(9504),i=n(7750),o=n(655),a=n(7452),s=r("".replace),u=RegExp("^["+a+"]+"),c=RegExp("(^|[^"+a+"])["+a+"]+$"),l=function(t){return function(e){var n=o(i(e));return 1&t&&(n=s(n,u,"")),2&t&&(n=s(n,c,"$1")),n}};t.exports={start:l(1),end:l(2),trim:l(3)}},4495:function(t,e,n){"use strict";var r=n(9519),i=n(9039),o=n(4576).String;t.exports=!!Object.getOwnPropertySymbols&&!i(function(){var t=Symbol("symbol detection");return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41})},8242:function(t,e,n){"use strict";var r=n(9565),i=n(7751),o=n(8227),a=n(6840);t.exports=function(){var t=i("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,s=o("toPrimitive");e&&!e[s]&&a(e,s,function(t){return r(n,this)},{arity:1})}},1296:function(t,e,n){"use strict";var r=n(4495);t.exports=r&&!!Symbol.for&&!!Symbol.keyFor},9225:function(t,e,n){"use strict";var r,i,o,a,s=n(4576),u=n(8745),c=n(6080),l=n(4901),f=n(9297),d=n(9039),p=n(397),h=n(7680),v=n(4055),g=n(2812),m=n(9544),y=n(6193),b=s.setImmediate,w=s.clearImmediate,x=s.process,S=s.Dispatch,_=s.Function,P=s.MessageChannel,k=s.String,O=0,E={},T="onreadystatechange";d(function(){r=s.location});var C=function(t){if(f(E,t)){var e=E[t];delete E[t],e()}},j=function(t){return function(){C(t)}},M=function(t){C(t.data)},R=function(t){s.postMessage(k(t),r.protocol+"//"+r.host)};b&&w||(b=function(t){g(arguments.length,1);var e=l(t)?t:_(t),n=h(arguments,1);return E[++O]=function(){u(e,void 0,n)},i(O),O},w=function(t){delete E[t]},y?i=function(t){x.nextTick(j(t))}:S&&S.now?i=function(t){S.now(j(t))}:P&&!m?(a=(o=new P).port2,o.port1.onmessage=M,i=c(a.postMessage,a)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!d(R)?(i=R,s.addEventListener("message",M,!1)):i=T in v("script")?function(t){p.appendChild(v("script"))[T]=function(){p.removeChild(this),C(t)}}:function(t){setTimeout(j(t),0)}),t.exports={set:b,clear:w}},1240:function(t,e,n){"use strict";var r=n(9504);t.exports=r(1.1.valueOf)},5610:function(t,e,n){"use strict";var r=n(1291),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},5397:function(t,e,n){"use strict";var r=n(7055),i=n(7750);t.exports=function(t){return r(i(t))}},1291:function(t,e,n){"use strict";var r=n(741);t.exports=function(t){var e=+t;return e!=e||0===e?0:r(e)}},8014:function(t,e,n){"use strict";var r=n(1291),i=Math.min;t.exports=function(t){var e=r(t);return e>0?i(e,9007199254740991):0}},8981:function(t,e,n){"use strict";var r=n(7750),i=Object;t.exports=function(t){return i(r(t))}},2777:function(t,e,n){"use strict";var r=n(9565),i=n(34),o=n(757),a=n(5966),s=n(4270),u=n(8227),c=TypeError,l=u("toPrimitive");t.exports=function(t,e){if(!i(t)||o(t))return t;var n,u=a(t,l);if(u){if(void 0===e&&(e="default"),n=r(u,t,e),!i(n)||o(n))return n;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},6969:function(t,e,n){"use strict";var r=n(2777),i=n(757);t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},2140:function(t,e,n){"use strict";var r={};r[n(8227)("toStringTag")]="z",t.exports="[object z]"===String(r)},655:function(t,e,n){"use strict";var r=n(6955),i=String;t.exports=function(t){if("Symbol"===r(t))throw new TypeError("Cannot convert a Symbol value to a string");return i(t)}},6823:function(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},3392:function(t,e,n){"use strict";var r=n(9504),i=0,o=Math.random(),a=r(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++i+o,36)}},7416:function(t,e,n){"use strict";var r=n(9039),i=n(8227),o=n(3724),a=n(6395),s=i("iterator");t.exports=!r(function(){var t=new URL("b?a=1&b=2&c=3","https://a"),e=t.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),r="";return t.pathname="c%20d",e.forEach(function(t,n){e.delete("b"),r+=n+t}),n.delete("a",2),n.delete("b",void 0),a&&(!t.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!e.size&&(a||!o)||!e.sort||"https://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==r||"x"!==new URL("https://x",void 0).host})},7040:function(t,e,n){"use strict";var r=n(4495);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:function(t,e,n){"use strict";var r=n(3724),i=n(9039);t.exports=r&&i(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},2812:function(t){"use strict";var e=TypeError;t.exports=function(t,n){if(t<n)throw new e("Not enough arguments");return t}},8622:function(t,e,n){"use strict";var r=n(4576),i=n(4901),o=r.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},511:function(t,e,n){"use strict";var r=n(9167),i=n(9297),o=n(1951),a=n(4913).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},1951:function(t,e,n){"use strict";var r=n(8227);e.f=r},8227:function(t,e,n){"use strict";var r=n(4576),i=n(5745),o=n(9297),a=n(3392),s=n(4495),u=n(7040),c=r.Symbol,l=i("wks"),f=u?c.for||c:c&&c.withoutSetter||a;t.exports=function(t){return o(l,t)||(l[t]=s&&o(c,t)?c[t]:f("Symbol."+t)),l[t]}},7452:function(t){"use strict";t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},8706:function(t,e,n){"use strict";var r=n(6518),i=n(9039),o=n(4376),a=n(34),s=n(8981),u=n(6198),c=n(6837),l=n(4659),f=n(4527),d=n(1469),p=n(597),h=n(8227),v=n(9519),g=h("isConcatSpreadable"),m=v>=51||!i(function(){var t=[];return t[g]=!1,t.concat()[0]!==t}),y=function(t){if(!a(t))return!1;var e=t[g];return void 0!==e?!!e:o(t)};r({target:"Array",proto:!0,arity:1,forced:!m||!p("concat")},{concat:function(t){var e,n,r,i,o,a=s(this),p=d(a,0),h=0;for(e=-1,r=arguments.length;e<r;e++)if(y(o=-1===e?a:arguments[e]))for(i=u(o),c(h+i),n=0;n<i;n++,h++)n in o&&l(p,h,o[n]);else c(h+1),l(p,h++,o);return f(p,h),p}})},3771:function(t,e,n){"use strict";var r=n(6518),i=n(4373),o=n(6469);r({target:"Array",proto:!0},{fill:i}),o("fill")},2008:function(t,e,n){"use strict";var r=n(6518),i=n(9213).filter;r({target:"Array",proto:!0,forced:!n(597)("filter")},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},8980:function(t,e,n){"use strict";var r=n(6518),i=n(9213).findIndex,o=n(6469),a="findIndex",s=!0;a in[]&&Array(1)[a](function(){s=!1}),r({target:"Array",proto:!0,forced:s},{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o(a)},113:function(t,e,n){"use strict";var r=n(6518),i=n(9213).find,o=n(6469),a="find",s=!0;a in[]&&Array(1)[a](function(){s=!1}),r({target:"Array",proto:!0,forced:s},{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o(a)},8350:function(t,e,n){"use strict";var r=n(6518),i=n(259),o=n(9306),a=n(8981),s=n(6198),u=n(1469);r({target:"Array",proto:!0},{flatMap:function(t){var e,n=a(this),r=s(n);return o(t),e=u(n,0),i(e,n,n,r,0,1,t,arguments.length>1?arguments[1]:void 0),e}})},6449:function(t,e,n){"use strict";var r=n(6518),i=n(259),o=n(8981),a=n(6198),s=n(1291),u=n(1469);r({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=o(this),n=a(e),r=void 0===t?1:s(t),c=u(e,0);return i(c,e,e,n,0,r),c}})},3418:function(t,e,n){"use strict";var r=n(6518),i=n(7916);r({target:"Array",stat:!0,forced:!n(4428)(function(t){Array.from(t)})},{from:i})},4423:function(t,e,n){"use strict";var r=n(6518),i=n(9617).includes,o=n(9039),a=n(6469),s=o(function(){return!Array(1).includes()}),u=o(function(){return[,1].includes(void 0,1)});r({target:"Array",proto:!0,forced:s||u},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),a("includes")},3792:function(t,e,n){"use strict";var r=n(5397),i=n(6469),o=n(6269),a=n(1181),s=n(4913).f,u=n(1088),c=n(2529),l=n(6395),f=n(3724),d="Array Iterator",p=a.set,h=a.getterFor(d);t.exports=u(Array,"Array",function(t,e){p(this,{type:d,target:r(t),index:0,kind:e})},function(){var t=h(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,c(void 0,!0);switch(t.kind){case"keys":return c(n,!1);case"values":return c(e[n],!1)}return c([n,e[n]],!1)},"values");var v=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!l&&f&&"values"!==v.name)try{s(v,"name",{value:"values"})}catch(t){}},8598:function(t,e,n){"use strict";var r=n(6518),i=n(9504),o=n(7055),a=n(5397),s=n(4598),u=i([].join);r({target:"Array",proto:!0,forced:o!==Object||!s("join",",")},{join:function(t){return u(a(this),void 0===t?",":t)}})},2062:function(t,e,n){"use strict";var r=n(6518),i=n(9213).map;r({target:"Array",proto:!0,forced:!n(597)("map")},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},2712:function(t,e,n){"use strict";var r=n(6518),i=n(926).left,o=n(4598),a=n(9519);r({target:"Array",proto:!0,forced:!n(6193)&&a>79&&a<83||!o("reduce")},{reduce:function(t){var e=arguments.length;return i(this,t,e,e>1?arguments[1]:void 0)}})},4490:function(t,e,n){"use strict";var r=n(6518),i=n(9504),o=n(4376),a=i([].reverse),s=[1,2];r({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),a(this)}})},4782:function(t,e,n){"use strict";var r=n(6518),i=n(4376),o=n(3517),a=n(34),s=n(5610),u=n(6198),c=n(5397),l=n(4659),f=n(4527),d=n(8227),p=n(597),h=n(7680),v=p("slice"),g=d("species"),m=Array,y=Math.max;r({target:"Array",proto:!0,forced:!v},{slice:function(t,e){var n,r,d,p=c(this),v=u(p),b=s(t,v),w=s(void 0===e?v:e,v);if(i(p)&&(n=p.constructor,(o(n)&&(n===m||i(n.prototype))||a(n)&&null===(n=n[g]))&&(n=void 0),n===m||void 0===n))return h(p,b,w);for(r=new(void 0===n?m:n)(y(w-b,0)),d=0;b<w;b++,d++)b in p&&l(r,d,p[b]);return f(r,d),r}})},6910:function(t,e,n){"use strict";var r=n(6518),i=n(9504),o=n(9306),a=n(8981),s=n(6198),u=n(4606),c=n(655),l=n(9039),f=n(4488),d=n(4598),p=n(3709),h=n(3763),v=n(9519),g=n(3607),m=[],y=i(m.sort),b=i(m.push),w=l(function(){m.sort(void 0)}),x=l(function(){m.sort(null)}),S=d("sort"),_=!l(function(){if(v)return v<70;if(!(p&&p>3)){if(h)return!0;if(g)return g<603;var t,e,n,r,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)m.push({k:e+r,v:n})}for(m.sort(function(t,e){return e.v-t.v}),r=0;r<m.length;r++)e=m[r].k.charAt(0),i.charAt(i.length-1)!==e&&(i+=e);return"DGBEFHACIJK"!==i}});r({target:"Array",proto:!0,forced:w||!x||!S||!_},{sort:function(t){void 0!==t&&o(t);var e=a(this);if(_)return void 0===t?y(e):y(e,t);var n,r,i=[],l=s(e);for(r=0;r<l;r++)r in e&&b(i,e[r]);for(f(i,function(t){return function(e,n){if(void 0===n)return-1;if(void 0===e)return 1;if(void 0!==t)return+t(e,n)||0;var r=c(e),i=c(n);return r===i?0:r>i?1:-1}}(t)),n=s(i),r=0;r<n;)e[r]=i[r++];for(;r<l;)u(e,r++);return e}})},4554:function(t,e,n){"use strict";var r=n(6518),i=n(8981),o=n(5610),a=n(1291),s=n(6198),u=n(4527),c=n(6837),l=n(1469),f=n(4659),d=n(4606),p=n(597)("splice"),h=Math.max,v=Math.min;r({target:"Array",proto:!0,forced:!p},{splice:function(t,e){var n,r,p,g,m,y,b=i(this),w=s(b),x=o(t,w),S=arguments.length;for(0===S?n=r=0:1===S?(n=0,r=w-x):(n=S-2,r=v(h(a(e),0),w-x)),c(w+n-r),p=l(b,r),g=0;g<r;g++)(m=x+g)in b&&f(p,g,b[m]);if(u(p,r),n<r){for(g=x;g<w-r;g++)y=g+n,(m=g+r)in b?b[y]=b[m]:d(b,y);for(g=w;g>w-r+n;g--)d(b,g-1)}else if(n>r)for(g=w-r;g>x;g--)y=g+n-1,(m=g+r-1)in b?b[y]=b[m]:d(b,y);for(g=0;g<n;g++)b[g+x]=arguments[g+2];return u(b,w-r+n),p}})},237:function(t,e,n){"use strict";n(6469)("flatMap")},3514:function(t,e,n){"use strict";n(6469)("flat")},739:function(t,e,n){"use strict";var r=n(6518),i=n(9039),o=n(8981),a=n(2777);r({target:"Date",proto:!0,arity:1,forced:i(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})},{toJSON:function(t){var e=o(this),n=a(e,"number");return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},9572:function(t,e,n){"use strict";var r=n(9297),i=n(6840),o=n(3640),a=n(8227)("toPrimitive"),s=Date.prototype;r(s,a)||i(s,a,o)},2010:function(t,e,n){"use strict";var r=n(3724),i=n(350).EXISTS,o=n(9504),a=n(2106),s=Function.prototype,u=o(s.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=o(c.exec);r&&!i&&a(s,"name",{configurable:!0,get:function(){try{return l(c,u(this))[1]}catch(t){return""}}})},5081:function(t,e,n){"use strict";var r=n(6518),i=n(4576);r({global:!0,forced:i.globalThis!==i},{globalThis:i})},3110:function(t,e,n){"use strict";var r=n(6518),i=n(7751),o=n(8745),a=n(9565),s=n(9504),u=n(9039),c=n(4376),l=n(4901),f=n(5810),d=n(757),p=n(2195),h=n(655),v=n(7680),g=n(8235),m=n(3392),y=n(4495),b=n(7819),w=String,x=i("JSON","stringify"),S=s(/./.exec),_=s("".charAt),P=s("".charCodeAt),k=s("".replace),O=s("".slice),E=s([].push),T=s(1.1.toString),C=/[\uD800-\uDFFF]/g,j=/^[\uD800-\uDBFF]$/,M=/^[\uDC00-\uDFFF]$/,R=m(),A=R.length,I=!y||u(function(){var t=i("Symbol")("stringify detection");return"[null]"!==x([t])||"{}"!==x({a:t})||"{}"!==x(Object(t))}),D=u(function(){return'"\\udf06\\ud834"'!==x("\udf06\ud834")||'"\\udead"'!==x("\udead")}),L=I?function(t,e){var n=v(arguments),r=N(e);if(l(r)||void 0!==t&&!d(t))return n[1]=function(t,e){if(l(r)&&(e=a(r,this,w(t),e)),!d(e))return e},o(x,null,n)}:x,$=function(t,e,n){var r=_(n,e-1),i=_(n,e+1);return S(j,t)&&!S(M,i)||S(M,t)&&!S(j,r)?"\\u"+T(P(t,0),16):t},N=function(t){if(l(t))return t;if(c(t)){for(var e=t.length,n=[],r=0;r<e;r++){var i=t[r];"string"==typeof i?E(n,i):"number"!=typeof i&&"Number"!==p(i)&&"String"!==p(i)||E(n,h(i))}var o=n.length,a=!0;return function(t,e){if(a)return a=!1,e;if(c(this))return e;for(var r=0;r<o;r++)if(n[r]===t)return e}}};x&&r({target:"JSON",stat:!0,arity:3,forced:I||D||!b},{stringify:function(t,e,n){var r=N(e),i=[],o=L(t,function(t,e){var n=l(r)?a(r,this,w(t),e):e;return!b&&f(n)?R+(E(i,n.rawJSON)-1):n},n);if("string"!=typeof o)return o;if(D&&(o=k(o,C,$)),b)return o;for(var s="",u=o.length,c=0;c<u;c++){var d=_(o,c);if('"'===d){var p=g(o,++c).end-1,h=O(o,c,p);s+=O(h,0,A)===R?i[O(h,A)]:'"'+h+'"',c=p}else s+=d}return s}})},4731:function(t,e,n){"use strict";var r=n(4576);n(687)(r.JSON,"JSON",!0)},8523:function(t,e,n){"use strict";n(6468)("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},n(6938))},6033:function(t,e,n){"use strict";n(8523)},1367:function(t,e,n){"use strict";n(6518)({target:"Math",stat:!0},{log2:n(7787)})},5914:function(t,e,n){"use strict";n(6518)({target:"Math",stat:!0},{sign:n(7782)})},479:function(t,e,n){"use strict";n(687)(Math,"Math",!0)},8130:function(t,e,n){"use strict";var r=n(6518),i=n(6395),o=n(3724),a=n(4576),s=n(9167),u=n(9504),c=n(2796),l=n(9297),f=n(3167),d=n(1625),p=n(757),h=n(2777),v=n(9039),g=n(8480).f,m=n(7347).f,y=n(4913).f,b=n(1240),w=n(3802).trim,x="Number",S=a[x],_=s[x],P=S.prototype,k=a.TypeError,O=u("".slice),E=u("".charCodeAt),T=c(x,!S(" 0o1")||!S("0b1")||S("+0x1")),C=function(t){var e,n=arguments.length<1?0:S(function(t){var e=h(t,"number");return"bigint"==typeof e?e:function(t){var e,n,r,i,o,a,s,u,c=h(t,"number");if(p(c))throw new k("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=w(c),43===(e=E(c,0))||45===e){if(88===(n=E(c,2))||120===n)return NaN}else if(48===e){switch(E(c,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+c}for(a=(o=O(c,2)).length,s=0;s<a;s++)if((u=E(o,s))<48||u>i)return NaN;return parseInt(o,r)}return+c}(e)}(t));return d(P,e=this)&&v(function(){b(e)})?f(Object(n),this,C):n};C.prototype=P,T&&!i&&(P.constructor=C),r({global:!0,constructor:!0,wrap:!0,forced:T},{Number:C});var j=function(t,e){for(var n,r=o?g(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0;r.length>i;i++)l(e,n=r[i])&&!l(t,n)&&y(t,n,m(e,n))};i&&_&&j(s[x],_),(T||i)&&j(s[x],S)},9085:function(t,e,n){"use strict";var r=n(6518),i=n(4213);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},5506:function(t,e,n){"use strict";var r=n(6518),i=n(2357).entries;r({target:"Object",stat:!0},{entries:function(t){return i(t)}})},2811:function(t,e,n){"use strict";var r=n(6518),i=n(2744),o=n(9039),a=n(34),s=n(3451).onFreeze,u=Object.freeze;r({target:"Object",stat:!0,forced:o(function(){u(1)}),sham:!i},{freeze:function(t){return u&&a(t)?u(s(t)):t}})},3851:function(t,e,n){"use strict";var r=n(6518),i=n(9039),o=n(5397),a=n(7347).f,s=n(3724);r({target:"Object",stat:!0,forced:!s||i(function(){a(1)}),sham:!s},{getOwnPropertyDescriptor:function(t,e){return a(o(t),e)}})},1278:function(t,e,n){"use strict";var r=n(6518),i=n(3724),o=n(5031),a=n(5397),s=n(7347),u=n(4659);r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,n,r=a(t),i=s.f,c=o(r),l={},f=0;c.length>f;)void 0!==(n=i(r,e=c[f++]))&&u(l,e,n);return l}})},1480:function(t,e,n){"use strict";var r=n(6518),i=n(9039),o=n(298).f;r({target:"Object",stat:!0,forced:i(function(){return!Object.getOwnPropertyNames(1)})},{getOwnPropertyNames:o})},9773:function(t,e,n){"use strict";var r=n(6518),i=n(4495),o=n(9039),a=n(3717),s=n(8981);r({target:"Object",stat:!0,forced:!i||o(function(){a.f(1)})},{getOwnPropertySymbols:function(t){var e=a.f;return e?e(s(t)):[]}})},875:function(t,e,n){"use strict";var r=n(6518),i=n(9039),o=n(8981),a=n(2787),s=n(2211);r({target:"Object",stat:!0,forced:i(function(){a(1)}),sham:!s},{getPrototypeOf:function(t){return a(o(t))}})},9432:function(t,e,n){"use strict";var r=n(6518),i=n(8981),o=n(1072);r({target:"Object",stat:!0,forced:n(9039)(function(){o(1)})},{keys:function(t){return o(i(t))}})},6099:function(t,e,n){"use strict";var r=n(2140),i=n(6840),o=n(3179);r||i(Object.prototype,"toString",o,{unsafe:!0})},6034:function(t,e,n){"use strict";var r=n(6518),i=n(2357).values;r({target:"Object",stat:!0},{values:function(t){return i(t)}})},8459:function(t,e,n){"use strict";var r=n(6518),i=n(3904);r({global:!0,forced:parseFloat!==i},{parseFloat:i})},8940:function(t,e,n){"use strict";var r=n(6518),i=n(2703);r({global:!0,forced:parseInt!==i},{parseInt:i})},6499:function(t,e,n){"use strict";var r=n(6518),i=n(9565),o=n(9306),a=n(6043),s=n(1103),u=n(2652);r({target:"Promise",stat:!0,forced:n(537)},{all:function(t){var e=this,n=a.f(e),r=n.resolve,c=n.reject,l=s(function(){var n=o(e.resolve),a=[],s=0,l=1;u(t,function(t){var o=s++,u=!1;l++,i(n,e,t).then(function(t){u||(u=!0,a[o]=t,--l||r(a))},c)}),--l||r(a)});return l.error&&c(l.value),n.promise}})},2003:function(t,e,n){"use strict";var r=n(6518),i=n(6395),o=n(916).CONSTRUCTOR,a=n(550),s=n(7751),u=n(4901),c=n(6840),l=a&&a.prototype;if(r({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(t){return this.then(void 0,t)}}),!i&&u(a)){var f=s("Promise").prototype.catch;l.catch!==f&&c(l,"catch",f,{unsafe:!0})}},436:function(t,e,n){"use strict";var r,i,o,a,s=n(6518),u=n(6395),c=n(6193),l=n(4576),f=n(9167),d=n(9565),p=n(6840),h=n(2967),v=n(687),g=n(7633),m=n(9306),y=n(4901),b=n(34),w=n(679),x=n(2293),S=n(9225).set,_=n(1955),P=n(3138),k=n(1103),O=n(8265),E=n(1181),T=n(550),C=n(916),j=n(6043),M="Promise",R=C.CONSTRUCTOR,A=C.REJECTION_EVENT,I=C.SUBCLASSING,D=E.getterFor(M),L=E.set,$=T&&T.prototype,N=T,F=$,U=l.TypeError,B=l.document,z=l.process,W=j.f,H=W,V=!!(B&&B.createEvent&&l.dispatchEvent),G="unhandledrejection",q=function(t){var e;return!(!b(t)||!y(e=t.then))&&e},X=function(t,e){var n,r,i,o=e.value,a=1===e.state,s=a?t.ok:t.fail,u=t.resolve,c=t.reject,l=t.domain;try{s?(a||(2===e.rejection&&Q(e),e.rejection=1),!0===s?n=o:(l&&l.enter(),n=s(o),l&&(l.exit(),i=!0)),n===t.promise?c(new U("Promise-chain cycle")):(r=q(n))?d(r,n,u,c):u(n)):c(o)}catch(t){l&&!i&&l.exit(),c(t)}},Y=function(t,e){t.notified||(t.notified=!0,_(function(){for(var n,r=t.reactions;n=r.get();)X(n,t);t.notified=!1,e&&!t.rejection&&K(t)}))},Z=function(t,e,n){var r,i;V?((r=B.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),l.dispatchEvent(r)):r={promise:e,reason:n},!A&&(i=l["on"+t])?i(r):t===G&&P("Unhandled promise rejection",n)},K=function(t){d(S,l,function(){var e,n=t.facade,r=t.value;if(J(t)&&(e=k(function(){c?z.emit("unhandledRejection",r,n):Z(G,n,r)}),t.rejection=c||J(t)?2:1,e.error))throw e.value})},J=function(t){return 1!==t.rejection&&!t.parent},Q=function(t){d(S,l,function(){var e=t.facade;c?z.emit("rejectionHandled",e):Z("rejectionhandled",e,t.value)})},tt=function(t,e,n){return function(r){t(e,r,n)}},et=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,Y(t,!0))},nt=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw new U("Promise can't be resolved itself");var r=q(e);r?_(function(){var n={done:!1};try{d(r,e,tt(nt,n,t),tt(et,n,t))}catch(e){et(n,e,t)}}):(t.value=e,t.state=1,Y(t,!1))}catch(e){et({done:!1},e,t)}}};if(R&&(F=(N=function(t){w(this,F),m(t),d(r,this);var e=D(this);try{t(tt(nt,e),tt(et,e))}catch(t){et(e,t)}}).prototype,(r=function(t){L(this,{type:M,done:!1,notified:!1,parent:!1,reactions:new O,rejection:!1,state:0,value:null})}).prototype=p(F,"then",function(t,e){var n=D(this),r=W(x(this,N));return n.parent=!0,r.ok=!y(t)||t,r.fail=y(e)&&e,r.domain=c?z.domain:void 0,0===n.state?n.reactions.add(r):_(function(){X(r,n)}),r.promise}),i=function(){var t=new r,e=D(t);this.promise=t,this.resolve=tt(nt,e),this.reject=tt(et,e)},j.f=W=function(t){return t===N||t===o?new i(t):H(t)},!u&&y(T)&&$!==Object.prototype)){a=$.then,I||p($,"then",function(t,e){var n=this;return new N(function(t,e){d(a,n,t,e)}).then(t,e)},{unsafe:!0});try{delete $.constructor}catch(t){}h&&h($,F)}s({global:!0,constructor:!0,wrap:!0,forced:R},{Promise:N}),o=f.Promise,v(N,M,!1,!0),g(M)},3362:function(t,e,n){"use strict";n(436),n(6499),n(2003),n(7743),n(1481),n(280)},7743:function(t,e,n){"use strict";var r=n(6518),i=n(9565),o=n(9306),a=n(6043),s=n(1103),u=n(2652);r({target:"Promise",stat:!0,forced:n(537)},{race:function(t){var e=this,n=a.f(e),r=n.reject,c=s(function(){var a=o(e.resolve);u(t,function(t){i(a,e,t).then(n.resolve,r)})});return c.error&&r(c.value),n.promise}})},1481:function(t,e,n){"use strict";var r=n(6518),i=n(6043);r({target:"Promise",stat:!0,forced:n(916).CONSTRUCTOR},{reject:function(t){var e=i.f(this);return(0,e.reject)(t),e.promise}})},280:function(t,e,n){"use strict";var r=n(6518),i=n(7751),o=n(6395),a=n(550),s=n(916).CONSTRUCTOR,u=n(3438),c=i("Promise"),l=o&&!s;r({target:"Promise",stat:!0,forced:o||s},{resolve:function(t){return u(l&&this===c?a:this,t)}})},825:function(t,e,n){"use strict";var r=n(6518),i=n(7751),o=n(8745),a=n(566),s=n(5548),u=n(8551),c=n(34),l=n(2360),f=n(9039),d=i("Reflect","construct"),p=Object.prototype,h=[].push,v=f(function(){function t(){}return!(d(function(){},[],t)instanceof t)}),g=!f(function(){d(function(){})}),m=v||g;r({target:"Reflect",stat:!0,forced:m,sham:m},{construct:function(t,e){s(t);var n=arguments.length<3?t:s(arguments[2]);if(u(e),g&&!v)return d(t,e,n);if(t===n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return o(h,r,e),new(o(a,t,r))}var i=n.prototype,f=l(c(i)?i:p),m=o(t,f,e);return c(m)?m:f}})},888:function(t,e,n){"use strict";var r=n(6518),i=n(9565),o=n(34),a=n(8551),s=n(6575),u=n(7347),c=n(2787),l=n(6969),f=function(t,e,n){if(a(t)===n)return t[e];var r=u.f(t,e);if(r)return s(r)?r.value:void 0===r.get?void 0:i(r.get,n);var l=c(t);return o(l)?f(l,e,n):void 0};r({target:"Reflect",stat:!0},{get:function(t,e){return f(a(t),l(e),arguments.length<3?t:arguments[2])}})},4864:function(t,e,n){"use strict";var r=n(3724),i=n(4576),o=n(9504),a=n(2796),s=n(3167),u=n(6699),c=n(2360),l=n(8480).f,f=n(1625),d=n(788),p=n(655),h=n(1034),v=n(8429),g=n(1056),m=n(6840),y=n(9039),b=n(9297),w=n(1181).enforce,x=n(7633),S=n(8227),_=n(3635),P=n(8814),k=S("match"),O=i.RegExp,E=O.prototype,T=i.SyntaxError,C=o(E.exec),j=o("".charAt),M=o("".replace),R=o("".indexOf),A=o("".slice),I=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,D=/a/g,L=/a/g,$=new O(D)!==D,N=v.MISSED_STICKY,F=v.UNSUPPORTED_Y;if(a("RegExp",r&&(!$||N||_||P||y(function(){return L[k]=!1,O(D)!==D||O(L)===L||"/a/i"!==String(O(D,"i"))})))){for(var U=function(t,e){var n,r,i,o,a,l,v=f(E,this),g=d(t),m=void 0===e,y=[],x=t;if(!v&&g&&m&&t.constructor===U)return t;if((g||f(E,t))&&(t=t.source,m&&(e=h(x))),t=void 0===t?"":p(t),e=void 0===e?"":p(e),x=t,_&&"dotAll"in D&&(r=!!e&&R(e,"s")>-1)&&(e=M(e,/s/g,"")),n=e,N&&"sticky"in D&&(i=!!e&&R(e,"y")>-1)&&F&&(e=M(e,/y/g,"")),P&&(o=function(t){for(var e,n=t.length,r=0,i="",o=[],a=c(null),s=!1,u=!1,l=0,f="";r<n;r++){if("\\"===(e=j(t,r))){if(e+=j(t,++r),!u&&"\\"===j(e,1)){i+="\\x5c";continue}}else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:i+=e,C(I,A(t,r+1))?(r+=2,u=!0,l++):"?"!==j(t,r+1)&&l++;continue;case">"===e&&u:if(""===f||b(a,f))throw new T("Invalid capture group name");a[f]=!0,o[o.length]=[f,l],u=!1,f="";continue}u?f+=e:i+=e}for(var d=0;d<o.length;d++)for(var p="\\k<"+o[d][0]+">",h="\\"+o[d][1];R(i,p)>-1;)i=M(i,p,h);return[i,o]}(t),t=o[0],y=o[1]),a=s(O(t,e),v?this:E,U),(r||i||y.length)&&(l=w(a),r&&(l.dotAll=!0,l.raw=U(function(t){for(var e,n=t.length,r=0,i="",o=!1;r<n;r++)"\\"!==(e=j(t,r))?o||"."!==e?("["===e?o=!0:"]"===e&&(o=!1),i+=e):i+="[\\s\\S]":i+=e+j(t,++r);return i}(t),n)),i&&(l.sticky=!0),y.length&&(l.groups=y)),t!==x)try{u(a,"source",""===x?"(?:)":x)}catch(t){}return a},B=l(O),z=0;B.length>z;)g(U,O,B[z++]);E.constructor=U,U.prototype=E,m(i,"RegExp",U,{constructor:!0})}x("RegExp")},7495:function(t,e,n){"use strict";var r=n(6518),i=n(7323);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},8781:function(t,e,n){"use strict";var r=n(350).PROPER,i=n(6840),o=n(8551),a=n(655),s=n(9039),u=n(1034),c="toString",l=RegExp.prototype,f=l[c],d=s(function(){return"/a/b"!==f.call({source:"a",flags:"b"})}),p=r&&f.name!==c;(d||p)&&i(l,c,function(){var t=o(this);return"/"+a(t.source)+"/"+a(u(t))},{unsafe:!0})},2405:function(t,e,n){"use strict";n(6468)("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},n(6938))},1415:function(t,e,n){"use strict";n(2405)},9449:function(t,e,n){"use strict";var r,i=n(6518),o=n(7476),a=n(7347).f,s=n(8014),u=n(655),c=n(2892),l=n(7750),f=n(1436),d=n(6395),p=o("".slice),h=Math.min,v=f("endsWith");i({target:"String",proto:!0,forced:!(!d&&!v&&(r=a(String.prototype,"endsWith"),r&&!r.writable)||v)},{endsWith:function(t){var e=u(l(this));c(t);var n=u(t),r=arguments.length>1?arguments[1]:void 0,i=e.length,o=void 0===r?i:h(s(r),i);return p(e,o-n.length,o)===n}})},7337:function(t,e,n){"use strict";var r=n(6518),i=n(9504),o=n(5610),a=RangeError,s=String.fromCharCode,u=String.fromCodePoint,c=i([].join);r({target:"String",stat:!0,arity:1,forced:!!u&&1!==u.length},{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,i=0;r>i;){if(o(e=+arguments[i],1114111)!==e)throw new a(e+" is not a valid code point");n[i++]=e<65536?s(e):s(55296+((e-=65536)>>10),e%1024+56320)}return c(n,"")}})},1699:function(t,e,n){"use strict";var r=n(6518),i=n(9504),o=n(2892),a=n(7750),s=n(655),u=n(1436),c=i("".indexOf);r({target:"String",proto:!0,forced:!u("includes")},{includes:function(t){return!!~c(s(a(this)),s(o(t)),arguments.length>1?arguments[1]:void 0)}})},7764:function(t,e,n){"use strict";var r=n(8183).charAt,i=n(655),o=n(1181),a=n(1088),s=n(2529),u="String Iterator",c=o.set,l=o.getterFor(u);a(String,"String",function(t){c(this,{type:u,string:i(t),index:0})},function(){var t,e=l(this),n=e.string,i=e.index;return i>=n.length?s(void 0,!0):(t=r(n,i),e.index+=t.length,s(t,!1))})},1761:function(t,e,n){"use strict";var r=n(9565),i=n(9504),o=n(9228),a=n(8551),s=n(34),u=n(8014),c=n(655),l=n(7750),f=n(5966),d=n(7829),p=n(1034),h=n(6682),v=i("".indexOf);o("match",function(t,e,n){return[function(e){var n=l(this),i=s(e)?f(e,t):void 0;return i?r(i,e,n):new RegExp(e)[t](c(n))},function(t){var r=a(this),i=c(t),o=n(e,r,i);if(o.done)return o.value;var s=c(p(r));if(!~v(s,"g"))return h(r,i);var l=!!~v(s,"u")||!!~v(s,"v");r.lastIndex=0;for(var f,g=[],m=0;null!==(f=h(r,i));){var y=c(f[0]);g[m]=y,""===y&&(r.lastIndex=d(i,u(r.lastIndex),l)),m++}return 0===m?null:g}]})},5440:function(t,e,n){"use strict";var r=n(8745),i=n(9565),o=n(9504),a=n(9228),s=n(9039),u=n(8551),c=n(4901),l=n(34),f=n(1291),d=n(8014),p=n(655),h=n(7750),v=n(7829),g=n(5966),m=n(2478),y=n(1034),b=n(6682),w=n(8227)("replace"),x=Math.max,S=Math.min,_=o([].concat),P=o([].push),k=o("".indexOf),O=o("".slice),E=function(t){return void 0===t?t:String(t)},T="$0"==="a".replace(/./,"$0"),C=!!/./[w]&&""===/./[w]("a","$0");a("replace",function(t,e,n){var o=C?"$":"$0";return[function(t,n){var r=h(this),o=l(t)?g(t,w):void 0;return o?i(o,t,r,n):i(e,p(r),t,n)},function(t,i){var a=u(this),s=p(t),l=c(i);l||(i=p(i));var h=p(y(a));if("string"==typeof i&&!~k(i,o)&&!~k(i,"$<")&&!~k(h,"y")){var g=n(e,a,s,i);if(g.done)return g.value}var w,T=!!~k(h,"g");T&&(w=!!~k(h,"u")||!!~k(h,"v"),a.lastIndex=0);for(var C,j=[];null!==(C=b(a,s))&&(P(j,C),T);)""===p(C[0])&&(a.lastIndex=v(s,d(a.lastIndex),w));for(var M="",R=0,A=0;A<j.length;A++){for(var I,D=p((C=j[A])[0]),L=x(S(f(C.index),s.length),0),$=[],N=1;N<C.length;N++)P($,E(C[N]));var F=C.groups;if(l){var U=_([D],$,L,s);void 0!==F&&P(U,F),I=p(r(i,void 0,U))}else I=m(D,s,L,$,F,i);L>=R&&(M+=O(s,R,L)+I,R=L+D.length)}return M+O(s,R)}]},!!s(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!T||C)},5746:function(t,e,n){"use strict";var r=n(9565),i=n(9228),o=n(8551),a=n(34),s=n(7750),u=n(3470),c=n(655),l=n(5966),f=n(6682);i("search",function(t,e,n){return[function(e){var n=s(this),i=a(e)?l(e,t):void 0;return i?r(i,e,n):new RegExp(e)[t](c(n))},function(t){var r=o(this),i=c(t),a=n(e,r,i);if(a.done)return a.value;var s=r.lastIndex;u(s,0)||(r.lastIndex=0);var l=f(r,i);return u(r.lastIndex,s)||(r.lastIndex=s),null===l?-1:l.index}]})},744:function(t,e,n){"use strict";var r=n(9565),i=n(9504),o=n(9228),a=n(8551),s=n(34),u=n(7750),c=n(2293),l=n(7829),f=n(8014),d=n(655),p=n(5966),h=n(1034),v=n(6682),g=n(8429),m=n(9039),y=g.UNSUPPORTED_Y,b=Math.min,w=i([].push),x=i("".slice),S=i("".indexOf),_=!m(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}),P="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;o("split",function(t,e,n){var i="0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:r(e,this,t,n)}:e;return[function(e,n){var o=u(this),a=s(e)?p(e,t):void 0;return a?r(a,e,o,n):r(i,d(o),e,n)},function(t,r){var o=a(this),s=d(t);if(!P){var u=n(i,o,s,r,i!==e);if(u.done)return u.value}var p=c(o,RegExp),g=d(h(o)),m=!!~S(g,"u")||!!~S(g,"v");y?~S(g,"g")||(g+="g"):~S(g,"y")||(g+="y");var _=new p(y?"^(?:"+o.source+")":o,g),k=void 0===r?4294967295:r>>>0;if(0===k)return[];if(0===s.length)return null===v(_,s)?[s]:[];for(var O=0,E=0,T=[];E<s.length;){_.lastIndex=y?0:E;var C,j=v(_,y?x(s,E):s);if(null===j||(C=b(f(_.lastIndex+(y?E:0)),s.length))===O)E=l(s,E,m);else{if(w(T,x(s,O,E)),T.length===k)return T;for(var M=1;M<=j.length-1;M++)if(w(T,j[M]),T.length===k)return T;E=O=C}}return w(T,x(s,O)),T}]},P||!_,y)},1392:function(t,e,n){"use strict";var r,i=n(6518),o=n(7476),a=n(7347).f,s=n(8014),u=n(655),c=n(2892),l=n(7750),f=n(1436),d=n(6395),p=o("".slice),h=Math.min,v=f("startsWith");i({target:"String",proto:!0,forced:!(!d&&!v&&(r=a(String.prototype,"startsWith"),r&&!r.writable)||v)},{startsWith:function(t){var e=u(l(this));c(t);var n=u(t),r=s(h(arguments.length>1?arguments[1]:void 0,e.length));return p(e,r,r+n.length)===n}})},6761:function(t,e,n){"use strict";var r=n(6518),i=n(4576),o=n(9565),a=n(9504),s=n(6395),u=n(3724),c=n(4495),l=n(9039),f=n(9297),d=n(1625),p=n(8551),h=n(5397),v=n(6969),g=n(655),m=n(6980),y=n(2360),b=n(1072),w=n(8480),x=n(298),S=n(3717),_=n(7347),P=n(4913),k=n(6801),O=n(8773),E=n(6840),T=n(2106),C=n(5745),j=n(6119),M=n(421),R=n(3392),A=n(8227),I=n(1951),D=n(511),L=n(8242),$=n(687),N=n(1181),F=n(9213).forEach,U=j("hidden"),B="Symbol",z="prototype",W=N.set,H=N.getterFor(B),V=Object[z],G=i.Symbol,q=G&&G[z],X=i.RangeError,Y=i.TypeError,Z=i.QObject,K=_.f,J=P.f,Q=x.f,tt=O.f,et=a([].push),nt=C("symbols"),rt=C("op-symbols"),it=C("wks"),ot=!Z||!Z[z]||!Z[z].findChild,at=function(t,e,n){var r=K(V,e);return r&&delete V[e],J(t,e,n),r&&t!==V&&J(V,e,r),t},st=u&&l(function(){return 7!==y(J({},"a",{get:function(){return J(this,"a",{value:7}).a}})).a})?at:J,ut=function(t,e){var n=nt[t]=y(q);return W(n,{type:B,tag:t,description:e}),u||(n.description=e),n},ct=function(t,e,n){t===V&&ct(rt,e,n),p(t);var r=v(e);return p(n),f(nt,r)?(("enumerable"in n?!n.enumerable:!f(t,r)||f(t,U)&&t[U][r])?(f(t,U)||J(t,U,m(1,y(null))),t[U][r]=!0):(f(t,U)&&t[U][r]&&(t[U][r]=!1),n=y(n,{enumerable:m(0,!1)})),st(t,r,n)):J(t,r,n)},lt=function(t,e){p(t);var n=h(e),r=b(n).concat(ht(n));return F(r,function(e){u&&!o(ft,n,e)||ct(t,e,n[e])}),t},ft=function(t){var e=v(t),n=o(tt,this,e);return!(this===V&&f(nt,e)&&!f(rt,e))&&(!(n||!f(this,e)||!f(nt,e)||f(this,U)&&this[U][e])||n)},dt=function(t,e){var n=h(t),r=v(e);if(n!==V||!f(nt,r)||f(rt,r)){var i=K(n,r);return!i||!f(nt,r)||f(n,U)&&n[U][r]||(i.enumerable=!0),i}},pt=function(t){var e=Q(h(t)),n=[];return F(e,function(t){f(nt,t)||f(M,t)||et(n,t)}),n},ht=function(t){var e=t===V,n=Q(e?rt:h(t)),r=[];return F(n,function(t){!f(nt,t)||e&&!f(V,t)||et(r,nt[t])}),r};c||(G=function(){if(d(q,this))throw new Y("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,e=R(t),n=function(t){var r=void 0===this?i:this;r===V&&o(n,rt,t),f(r,U)&&f(r[U],e)&&(r[U][e]=!1);var a=m(1,t);try{st(r,e,a)}catch(t){if(!(t instanceof X))throw t;at(r,e,a)}};return u&&ot&&st(V,e,{configurable:!0,set:n}),ut(e,t)},E(q=G[z],"toString",function(){return H(this).tag}),E(G,"withoutSetter",function(t){return ut(R(t),t)}),O.f=ft,P.f=ct,k.f=lt,_.f=dt,w.f=x.f=pt,S.f=ht,I.f=function(t){return ut(A(t),t)},u&&(T(q,"description",{configurable:!0,get:function(){return H(this).description}}),s||E(V,"propertyIsEnumerable",ft,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:G}),F(b(it),function(t){D(t)}),r({target:B,stat:!0,forced:!c},{useSetter:function(){ot=!0},useSimple:function(){ot=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!u},{create:function(t,e){return void 0===e?y(t):lt(y(t),e)},defineProperty:ct,defineProperties:lt,getOwnPropertyDescriptor:dt}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:pt}),L(),$(G,B),M[U]=!0},9463:function(t,e,n){"use strict";var r=n(6518),i=n(3724),o=n(4576),a=n(9565),s=n(9504),u=n(9297),c=n(4901),l=n(1625),f=n(655),d=n(2106),p=n(7740),h=o.Symbol,v=h&&h.prototype;if(i&&c(h)&&(!("description"in v)||void 0!==h().description)){var g={},m=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:f(arguments[0]),e=l(v,this)?new h(t):void 0===t?h():h(t);return""===t&&(g[e]=!0),e};p(m,h);var y=m.for;m.for={for:function(t){var e=f(t),n=a(y,this,e);return""===e&&(g[n]=!0),n}}.for,m.prototype=v,v.constructor=m;var b="Symbol(description detection)"===String(h("description detection")),w=s(v.valueOf),x=s(v.toString),S=/^Symbol\((.*)\)[^)]+$/,_=s("".replace),P=s("".slice);d(v,"description",{configurable:!0,get:function(){var t=w(this);if(u(g,t))return"";var e=x(t),n=b?P(e,7,-1):_(e,S,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:m})}},1510:function(t,e,n){"use strict";var r=n(6518),i=n(7751),o=n(9297),a=n(655),s=n(5745),u=n(1296),c=s("string-to-symbol-registry"),l=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{for:function(t){var e=a(t);if(o(c,e))return c[e];var n=i("Symbol")(e);return c[e]=n,l[n]=e,n}})},2259:function(t,e,n){"use strict";n(511)("iterator")},2675:function(t,e,n){"use strict";n(6761),n(1510),n(7812),n(3110),n(9773)},7812:function(t,e,n){"use strict";var r=n(6518),i=n(9297),o=n(757),a=n(6823),s=n(5745),u=n(1296),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{keyFor:function(t){if(!o(t))throw new TypeError(a(t)+" is not a symbol");if(i(c,t))return c[t]}})},5700:function(t,e,n){"use strict";var r=n(511),i=n(8242);r("toPrimitive"),i()},8125:function(t,e,n){"use strict";var r=n(7751),i=n(511),o=n(687);i("toStringTag"),o(r("Symbol"),"Symbol")},3365:function(t,e,n){"use strict";var r,i=n(2744),o=n(4576),a=n(9504),s=n(6279),u=n(3451),c=n(6468),l=n(4006),f=n(34),d=n(1181).enforce,p=n(9039),h=n(8622),v=Object,g=Array.isArray,m=v.isExtensible,y=v.isFrozen,b=v.isSealed,w=v.freeze,x=v.seal,S=!o.ActiveXObject&&"ActiveXObject"in o,_=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},P=c("WeakMap",_,l),k=P.prototype,O=a(k.set);if(h)if(S){r=l.getConstructor(_,"WeakMap",!0),u.enable();var E=a(k.delete),T=a(k.has),C=a(k.get);s(k,{delete:function(t){if(f(t)&&!m(t)){var e=d(this);return e.frozen||(e.frozen=new r),E(this,t)||e.frozen.delete(t)}return E(this,t)},has:function(t){if(f(t)&&!m(t)){var e=d(this);return e.frozen||(e.frozen=new r),T(this,t)||e.frozen.has(t)}return T(this,t)},get:function(t){if(f(t)&&!m(t)){var e=d(this);return e.frozen||(e.frozen=new r),T(this,t)?C(this,t):e.frozen.get(t)}return C(this,t)},set:function(t,e){if(f(t)&&!m(t)){var n=d(this);n.frozen||(n.frozen=new r),T(this,t)?O(this,t,e):n.frozen.set(t,e)}else O(this,t,e);return this}})}else i&&p(function(){var t=w([]);return O(new P,t,1),!y(t)})&&s(k,{set:function(t,e){var n;return g(t)&&(y(t)?n=w:b(t)&&(n=x)),O(this,t,e),n&&n(t),this}})},3772:function(t,e,n){"use strict";n(3365)},2480:function(t,e,n){"use strict";n(5081)},3500:function(t,e,n){"use strict";var r=n(4576),i=n(7400),o=n(9296),a=n(235),s=n(6699),u=function(t){if(t&&t.forEach!==a)try{s(t,"forEach",a)}catch(e){t.forEach=a}};for(var c in i)i[c]&&u(r[c]&&r[c].prototype);u(o)},2953:function(t,e,n){"use strict";var r=n(4576),i=n(7400),o=n(9296),a=n(3792),s=n(6699),u=n(687),c=n(8227)("iterator"),l=a.values,f=function(t,e){if(t){if(t[c]!==l)try{s(t,c,l)}catch(e){t[c]=l}if(u(t,e,!0),i[e])for(var n in a)if(t[n]!==a[n])try{s(t,n,a[n])}catch(e){t[n]=a[n]}}};for(var d in i)f(r[d]&&r[d].prototype,d);f(o,"DOMTokenList")},8406:function(t,e,n){"use strict";n(3792),n(7337);var r=n(6518),i=n(4576),o=n(3389),a=n(7751),s=n(9565),u=n(9504),c=n(3724),l=n(7416),f=n(6840),d=n(2106),p=n(6279),h=n(687),v=n(3994),g=n(1181),m=n(679),y=n(4901),b=n(9297),w=n(6080),x=n(6955),S=n(8551),_=n(34),P=n(655),k=n(2360),O=n(6980),E=n(81),T=n(851),C=n(2529),j=n(2812),M=n(8227),R=n(4488),A=M("iterator"),I="URLSearchParams",D=I+"Iterator",L=g.set,$=g.getterFor(I),N=g.getterFor(D),F=o("fetch"),U=o("Request"),B=o("Headers"),z=U&&U.prototype,W=B&&B.prototype,H=i.TypeError,V=i.encodeURIComponent,G=String.fromCharCode,q=a("String","fromCodePoint"),X=parseInt,Y=u("".charAt),Z=u([].join),K=u([].push),J=u("".replace),Q=u([].shift),tt=u([].splice),et=u("".split),nt=u("".slice),rt=u(/./.exec),it=/\+/g,ot=/^[0-9a-f]+$/i,at=function(t,e){var n=nt(t,e,e+2);return rt(ot,n)?X(n,16):NaN},st=function(t){for(var e=0,n=128;n>0&&0!==(t&n);n>>=1)e++;return e},ut=function(t){var e=null,n=t.length;switch(n){case 1:e=t[0];break;case 2:e=(31&t[0])<<6|63&t[1];break;case 3:e=(15&t[0])<<12|(63&t[1])<<6|63&t[2];break;case 4:e=(7&t[0])<<18|(63&t[1])<<12|(63&t[2])<<6|63&t[3]}return null===e||e>1114111||e>=55296&&e<=57343||e<(n>3?65536:n>2?2048:n>1?128:0)?null:e},ct=function(t){for(var e=(t=J(t,it," ")).length,n="",r=0;r<e;){var i=Y(t,r);if("%"===i){if("%"===Y(t,r+1)||r+3>e){n+="%",r++;continue}var o=at(t,r+1);if(o!=o){n+=i,r++;continue}r+=2;var a=st(o);if(0===a)i=G(o);else{if(1===a||a>4){n+="�",r++;continue}for(var s=[o],u=1;u<a&&!(3+ ++r>e||"%"!==Y(t,r));){var c=at(t,r+1);if(c!=c||c>191||c<128)break;if(1===u){if(224===o&&c<160)break;if(237===o&&c>159)break;if(240===o&&c<144)break;if(244===o&&c>143)break}K(s,c),r+=2,u++}if(s.length!==a){n+="�";continue}var l=ut(s);if(null===l){for(var f=0;f<a;f++)n+="�";r++;continue}i=q(l)}}n+=i,r++}return n},lt=/[!'()~]|%20/g,ft={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},dt=function(t){return ft[t]},pt=function(t){return J(V(t),lt,dt)},ht=v(function(t,e){L(this,{type:D,target:$(t).entries,index:0,kind:e})},I,function(){var t=N(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,C(void 0,!0);var r=e[n];switch(t.kind){case"keys":return C(r.key,!1);case"values":return C(r.value,!1)}return C([r.key,r.value],!1)},!0),vt=function(t){this.entries=[],this.url=null,void 0!==t&&(_(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===Y(t,0)?nt(t,1):t:P(t)))};vt.prototype={type:I,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,n,r,i,o,a,u,c=this.entries,l=T(t);if(l)for(n=(e=E(t,l)).next;!(r=s(n,e)).done;){if(o=(i=E(S(r.value))).next,(a=s(o,i)).done||(u=s(o,i)).done||!s(o,i).done)throw new H("Expected sequence with length 2");K(c,{key:P(a.value),value:P(u.value)})}else for(var f in t)b(t,f)&&K(c,{key:f,value:P(t[f])})},parseQuery:function(t){if(t)for(var e,n,r=this.entries,i=et(t,"&"),o=0;o<i.length;)(e=i[o++]).length&&(n=et(e,"="),K(r,{key:ct(Q(n)),value:ct(Z(n,"="))}))},serialize:function(){for(var t,e=this.entries,n=[],r=0;r<e.length;)t=e[r++],K(n,pt(t.key)+"="+pt(t.value));return Z(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var gt=function(){m(this,mt);var t=L(this,new vt(arguments.length>0?arguments[0]:void 0));c||(this.size=t.entries.length)},mt=gt.prototype;if(p(mt,{append:function(t,e){var n=$(this);j(arguments.length,2),K(n.entries,{key:P(t),value:P(e)}),c||this.size++,n.updateURL()},delete:function(t){for(var e=$(this),n=j(arguments.length,1),r=e.entries,i=P(t),o=n<2?void 0:arguments[1],a=void 0===o?o:P(o),s=0;s<r.length;){var u=r[s];u.key!==i||void 0!==a&&u.value!==a?s++:tt(r,s,1)}c||(this.size=r.length),e.updateURL()},get:function(t){var e=$(this).entries;j(arguments.length,1);for(var n=P(t),r=0;r<e.length;r++)if(e[r].key===n)return e[r].value;return null},getAll:function(t){var e=$(this).entries;j(arguments.length,1);for(var n=P(t),r=[],i=0;i<e.length;i++)e[i].key===n&&K(r,e[i].value);return r},has:function(t){for(var e=$(this).entries,n=j(arguments.length,1),r=P(t),i=n<2?void 0:arguments[1],o=void 0===i?i:P(i),a=0;a<e.length;){var s=e[a++];if(s.key===r&&(void 0===o||s.value===o))return!0}return!1},set:function(t,e){var n=$(this);j(arguments.length,2);for(var r,i=n.entries,o=!1,a=P(t),s=P(e),u=0;u<i.length;u++)(r=i[u]).key===a&&(o?tt(i,u--,1):(o=!0,r.value=s));o||K(i,{key:a,value:s}),c||(this.size=i.length),n.updateURL()},sort:function(){var t=$(this);R(t.entries,function(t,e){return t.key>e.key?1:-1}),t.updateURL()},forEach:function(t){for(var e,n=$(this).entries,r=w(t,arguments.length>1?arguments[1]:void 0),i=0;i<n.length;)r((e=n[i++]).value,e.key,this)},keys:function(){return new ht(this,"keys")},values:function(){return new ht(this,"values")},entries:function(){return new ht(this,"entries")}},{enumerable:!0}),f(mt,A,mt.entries,{name:"entries"}),f(mt,"toString",function(){return $(this).serialize()},{enumerable:!0}),c&&d(mt,"size",{get:function(){return $(this).entries.length},configurable:!0,enumerable:!0}),h(gt,I),r({global:!0,constructor:!0,forced:!l},{URLSearchParams:gt}),!l&&y(B)){var yt=u(W.has),bt=u(W.set),wt=function(t){if(_(t)){var e,n=t.body;if(x(n)===I)return e=t.headers?new B(t.headers):new B,yt(e,"content-type")||bt(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),k(t,{body:O(0,P(n)),headers:O(0,e)})}return t};if(y(F)&&r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(t){return F(t,arguments.length>1?wt(arguments[1]):{})}}),y(U)){var xt=function(t){return m(this,z),new U(t,arguments.length>1?wt(arguments[1]):{})};z.constructor=xt,xt.prototype=z,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:xt})}}t.exports={URLSearchParams:gt,getState:$}},8408:function(t,e,n){"use strict";n(8406)},1091:function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,a(r.key),r)}}function a(t){var e=function(t){if("object"!=r(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==r(e)?e:e+""}n.d(e,{OA:function(){return s},WL:function(){return c},u$:function(){return u}}),n(2675),n(9463),n(2259),n(5700),n(3418),n(3792),n(4782),n(9572),n(2010),n(8130),n(6099),n(7495),n(8781),n(7764),n(2953);var s={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},u=function(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return{_$litDirective$:t,values:n}}},c=function(){return function(t,e){return e&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}(function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)},[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AT",value:function(t,e,n){this._$Ct=t,this._$AM=e,this._$Ci=n}},{key:"_$AS",value:function(t,e){return this.update(t,e)}},{key:"update",value:function(t,e){return this.render.apply(this,function(t){if(Array.isArray(t))return i(t)}(n=e)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());var n}}])}()},6681:function(t,e,n){"use strict";var r;function i(t,e,n){return e=a(e),function(t,e){if(e&&("object"==g(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,o()?Reflect.construct(e,n||[],a(t).constructor):e.apply(t,n))}function o(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(o=function(){return!!t})()}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function c(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=l(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function l(t,e){if(t){if("string"==typeof t)return f(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(t,e):void 0}}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,v(r.key),r)}}function h(t,e,n){return e&&p(t.prototype,e),n&&p(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function v(t){var e=function(t){if("object"!=g(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==g(e)?e:e+""}function g(t){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}n.d(e,{JW:function(){return F},XX:function(){return it},c0:function(){return U},ge:function(){return nt},qy:function(){return N},s6:function(){return B}}),n(2675),n(9463),n(2259),n(5700),n(8706),n(3771),n(3418),n(3792),n(4782),n(9572),n(2010),n(8130),n(875),n(6099),n(825),n(4864),n(7495),n(8781),n(9449),n(7764),n(744),n(1392),n(3772),n(2953);var m=window,y=m.trustedTypes,b=y?y.createPolicy("lit-html",{createHTML:function(t){return t}}):void 0,w="$lit$",x="lit$".concat((Math.random()+"").slice(9),"$"),S="?"+x,_="<".concat(S,">"),P=document,k=function(){return P.createComment("")},O=function(t){return null===t||"object"!=g(t)&&"function"!=typeof t},E=Array.isArray,T=function(t){return E(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator])},C="[ \t\n\f\r]",j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,M=/-->/g,R=/>/g,A=RegExp(">|".concat(C,"(?:([^\\s\"'>=/]+)(").concat(C,"*=").concat(C,"*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)"),"g"),I=/'/g,D=/"/g,L=/^(?:script|style|textarea|title)$/i,$=function(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return{_$litType$:t,strings:e,values:r}}},N=$(1),F=$(2),U=Symbol.for("lit-noChange"),B=Symbol.for("lit-nothing"),z=new WeakMap,W=P.createTreeWalker(P,129,null,!1);function H(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==b?b.createHTML(e):e}var V=function(t,e){for(var n,r=t.length-1,i=[],o=2===e?"<svg>":"",a=j,s=0;s<r;s++){for(var u=t[s],c=void 0,l=void 0,f=-1,d=0;d<u.length&&(a.lastIndex=d,null!==(l=a.exec(u)));)d=a.lastIndex,a===j?"!--"===l[1]?a=M:void 0!==l[1]?a=R:void 0!==l[2]?(L.test(l[2])&&(n=RegExp("</"+l[2],"g")),a=A):void 0!==l[3]&&(a=A):a===A?">"===l[0]?(a=null!=n?n:j,f=-1):void 0===l[1]?f=-2:(f=a.lastIndex-l[2].length,c=l[1],a=void 0===l[3]?A:'"'===l[3]?D:I):a===D||a===I?a=A:a===M||a===R?a=j:(a=A,n=void 0);var p=a===A&&t[s+1].startsWith("/>")?" ":"";o+=a===j?u+_:f>=0?(i.push(c),u.slice(0,f)+w+u.slice(f)+x+p):u+x+(-2===f?(i.push(void 0),s):p)}return[H(t,o+(t[r]||"<?>")+(2===e?"</svg>":"")),i]},G=function(){return h(function t(e,n){var r,i=e.strings,o=e._$litType$;d(this,t),this.parts=[];var a=0,s=0,u=i.length-1,p=this.parts,h=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||l(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(V(i,o),2),v=h[0],g=h[1];if(this.el=t.createElement(v,n),W.currentNode=this.el.content,2===o){var m=this.el.content,b=m.firstChild;b.remove(),m.append.apply(m,function(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||l(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(b.childNodes))}for(;null!==(r=W.nextNode())&&p.length<u;){if(1===r.nodeType){if(r.hasAttributes()){var _,P=[],O=c(r.getAttributeNames());try{for(O.s();!(_=O.n()).done;){var E=_.value;if(E.endsWith(w)||E.startsWith(x)){var T=g[s++];if(P.push(E),void 0!==T){var C=r.getAttribute(T.toLowerCase()+w).split(x),j=/([.?@])?(.*)/.exec(T);p.push({type:1,index:a,name:j[2],strings:C,ctor:"."===j[1]?K:"?"===j[1]?Q:"@"===j[1]?tt:Z})}else p.push({type:6,index:a})}}}catch(t){O.e(t)}finally{O.f()}for(var M=0,R=P;M<R.length;M++){var A=R[M];r.removeAttribute(A)}}if(L.test(r.tagName)){var I=r.textContent.split(x),D=I.length-1;if(D>0){r.textContent=y?y.emptyScript:"";for(var $=0;$<D;$++)r.append(I[$],k()),W.nextNode(),p.push({type:2,index:++a});r.append(I[D],k())}}}else if(8===r.nodeType)if(r.data===S)p.push({type:2,index:a});else for(var N=-1;-1!==(N=r.data.indexOf(x,N+1));)p.push({type:7,index:a}),N+=x.length-1;a++}},null,[{key:"createElement",value:function(t,e){var n=P.createElement("template");return n.innerHTML=t,n}}])}();function q(t,e){var n,r,i,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,s=arguments.length>3?arguments[3]:void 0;if(e===U)return e;var u=void 0!==s?null===(n=a._$Co)||void 0===n?void 0:n[s]:a._$Cl,c=O(e)?void 0:e._$litDirective$;return(null==u?void 0:u.constructor)!==c&&(null===(r=null==u?void 0:u._$AO)||void 0===r||r.call(u,!1),void 0===c?u=void 0:(u=new c(t))._$AT(t,a,s),void 0!==s?(null!==(i=(o=a)._$Co)&&void 0!==i?i:o._$Co=[])[s]=u:a._$Cl=u),void 0!==u&&(e=q(t,u._$AS(t,e.values),u,s)),e}var X=function(){return h(function t(e,n){d(this,t),this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=n},[{key:"parentNode",get:function(){return this._$AM.parentNode}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"u",value:function(t){var e,n=this._$AD,r=n.el.content,i=n.parts,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:P).importNode(r,!0);W.currentNode=o;for(var a=W.nextNode(),s=0,u=0,c=i[0];void 0!==c;){if(s===c.index){var l=void 0;2===c.type?l=new Y(a,a.nextSibling,this,t):1===c.type?l=new c.ctor(a,c.name,c.strings,this,t):6===c.type&&(l=new et(a,this,t)),this._$AV.push(l),c=i[++u]}s!==(null==c?void 0:c.index)&&(a=W.nextNode(),s++)}return W.currentNode=P,o}},{key:"v",value:function(t){var e,n=0,r=c(this._$AV);try{for(r.s();!(e=r.n()).done;){var i=e.value;void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,n),n+=i.strings.length-2):i._$AI(t[n])),n++}}catch(t){r.e(t)}finally{r.f()}}}])}(),Y=function(){function t(e,n,r,i){var o;d(this,t),this.type=2,this._$AH=B,this._$AN=void 0,this._$AA=e,this._$AB=n,this._$AM=r,this.options=i,this._$Cp=null===(o=null==i?void 0:i.isConnected)||void 0===o||o}return h(t,[{key:"_$AU",get:function(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}},{key:"parentNode",get:function(){var t=this._$AA.parentNode,e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}},{key:"startNode",get:function(){return this._$AA}},{key:"endNode",get:function(){return this._$AB}},{key:"_$AI",value:function(t){t=q(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this),O(t)?t===B||null==t||""===t?(this._$AH!==B&&this._$AR(),this._$AH=B):t!==this._$AH&&t!==U&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):T(t)?this.T(t):this._(t)}},{key:"k",value:function(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}},{key:"$",value:function(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}},{key:"_",value:function(t){this._$AH!==B&&O(this._$AH)?this._$AA.nextSibling.data=t:this.$(P.createTextNode(t)),this._$AH=t}},{key:"g",value:function(t){var e,n=t.values,r=t._$litType$,i="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=G.createElement(H(r.h,r.h[0]),this.options)),r);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===i)this._$AH.v(n);else{var o=new X(i,this),a=o.u(this.options);o.v(n),this.$(a),this._$AH=o}}},{key:"_$AC",value:function(t){var e=z.get(t.strings);return void 0===e&&z.set(t.strings,e=new G(t)),e}},{key:"T",value:function(e){E(this._$AH)||(this._$AH=[],this._$AR());var n,r,i=this._$AH,o=0,a=c(e);try{for(a.s();!(r=a.n()).done;){var s=r.value;o===i.length?i.push(n=new t(this.k(k()),this.k(k()),this,this.options)):n=i[o],n._$AI(s),o++}}catch(t){a.e(t)}finally{a.f()}o<i.length&&(this._$AR(n&&n._$AB.nextSibling,o),i.length=o)}},{key:"_$AR",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._$AA.nextSibling,n=arguments.length>1?arguments[1]:void 0;for(null===(t=this._$AP)||void 0===t||t.call(this,!1,!0,n);e&&e!==this._$AB;){var r=e.nextSibling;e.remove(),e=r}}},{key:"setConnected",value:function(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}])}(),Z=function(){return h(function t(e,n,r,i,o){d(this,t),this.type=1,this._$AH=B,this._$AN=void 0,this.element=e,this.name=n,this._$AM=i,this.options=o,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=B},[{key:"tagName",get:function(){return this.element.tagName}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=this.strings,o=!1;if(void 0===i)t=q(this,t,e,0),(o=!O(t)||t!==this._$AH&&t!==U)&&(this._$AH=t);else{var a,s,u=t;for(t=i[0],a=0;a<i.length-1;a++)(s=q(this,u[n+a],e,a))===U&&(s=this._$AH[a]),o||(o=!O(s)||s!==this._$AH[a]),s===B?t=B:t!==B&&(t+=(null!=s?s:"")+i[a+1]),this._$AH[a]=s}o&&!r&&this.j(t)}},{key:"j",value:function(t){t===B?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}])}(),K=function(t){function e(){var t;return d(this,e),(t=i(this,e,arguments)).type=3,t}return s(e,t),h(e,[{key:"j",value:function(t){this.element[this.name]=t===B?void 0:t}}])}(Z),J=y?y.emptyScript:"",Q=function(t){function e(){var t;return d(this,e),(t=i(this,e,arguments)).type=4,t}return s(e,t),h(e,[{key:"j",value:function(t){t&&t!==B?this.element.setAttribute(this.name,J):this.element.removeAttribute(this.name)}}])}(Z),tt=function(t){function e(t,n,r,o,a){var s;return d(this,e),(s=i(this,e,[t,n,r,o,a])).type=5,s}return s(e,t),h(e,[{key:"_$AI",value:function(t){var e;if((t=null!==(e=q(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,0))&&void 0!==e?e:B)!==U){var n=this._$AH,r=t===B&&n!==B||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,i=t!==B&&(n===B||r);r&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}}},{key:"handleEvent",value:function(t){var e,n;"function"==typeof this._$AH?this._$AH.call(null!==(n=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==n?n:this.element,t):this._$AH.handleEvent(t)}}])}(Z),et=function(){return h(function t(e,n,r){d(this,t),this.element=e,this.type=6,this._$AN=void 0,this._$AM=n,this.options=r},[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(t){q(this,t)}}])}(),nt={O:w,P:x,A:S,C:1,M:V,L:X,R:T,D:q,I:Y,V:Z,H:Q,N:tt,U:K,F:et},rt=m.litHtmlPolyfillSupport;null==rt||rt(G,Y),(null!==(r=m.litHtmlVersions)&&void 0!==r?r:m.litHtmlVersions=[]).push("2.8.0");var it=function(t,e,n){var r,i,o=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:e,a=o._$litPart$;if(void 0===a){var s=null!==(i=null==n?void 0:n.renderBefore)&&void 0!==i?i:null;o._$litPart$=a=new Y(e.insertBefore(k(),s),s,void 0,null!=n?n:{})}return a._$AI(t),a}},9696:function(t,e,n){"use strict";n.d(e,{EM:function(){return r},MZ:function(){return l},P:function(){return _},wk:function(){return v}});var r=function(t){return function(e){return"function"==typeof e?function(t,e){return customElements.define(t,e),e}(t,e):function(t,e){return{kind:e.kind,elements:e.elements,finisher:function(e){customElements.define(t,e)}}}(t,e)}};function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach(function(e){s(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function s(t,e,n){return(e=function(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n(2675),n(9463),n(2259),n(5700),n(2008),n(3792),n(9572),n(8130),n(3851),n(1278),n(9432),n(6099),n(7764),n(3500),n(2953);var u=function(t,e){return"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?a(a({},e),{},{finisher:function(n){n.createProperty(e.key,t)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer:function(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher:function(n){n.createProperty(e.key,t)}}},c=function(t,e,n){e.constructor.createProperty(n,t)};function l(t){return function(e,n){return void 0!==n?c(t,e,n):u(t,e)}}function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach(function(e){h(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function h(t,e,n){return(e=function(t){var e=function(t){if("object"!=f(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==f(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function v(t){return l(p(p({},t),{},{state:!0}))}function g(t){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach(function(e){b(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function b(t,e,n){return(e=function(t){var e=function(t){if("object"!=g(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==g(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n(9085);var w,x=function(t){var e=t.finisher,n=t.descriptor;return function(t,r){var i;if(void 0===r){var o=null!==(i=t.originalKey)&&void 0!==i?i:t.key,a=null!=n?{kind:"method",placement:"prototype",key:o,descriptor:n(t.key)}:y(y({},t),{},{key:o});return null!=e&&(a.finisher=function(t){e(t,o)}),a}var s=t.constructor;void 0!==n&&Object.defineProperty(t,r,n(r)),null==e||e(s,r)}};function S(t){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S(t)}function _(t,e){return x({descriptor:function(n){var r={get:function(){var e,n;return null!==(n=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==n?n:null},enumerable:!0,configurable:!0};if(e){var i="symbol"==S(n)?Symbol():"__"+n;r.get=function(){var e,n;return void 0===this[i]&&(this[i]=null!==(n=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==n?n:null),this[i]}}return r}})}n(875),n(3362),null===(w=window.HTMLSlotElement)||void 0===w||w.prototype.assignedElements},8900:function(t,e,n){"use strict";n.d(e,{W:function(){return h}}),n(2675),n(9463),n(2259),n(5700),n(8706),n(3418),n(4423),n(3792),n(2712),n(4782),n(9572),n(2010),n(8130),n(875),n(9432),n(6099),n(825),n(7495),n(8781),n(1415),n(9449),n(1699),n(7764),n(5440),n(3500),n(2953);var r=n(6681),i=n(1091);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function u(t){var e=function(t){if("object"!=o(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==o(e)?e:e+""}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}var d="important",p=" !"+d,h=(0,i.u$)(function(t){function e(t){var n,r;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n=function(t,e,n){return e=l(e),function(t,e){if(e&&("object"==o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,c()?Reflect.construct(e,n||[],l(t).constructor):e.apply(t,n))}(this,e,[t]),t.type!==i.OA.ATTRIBUTE||"style"!==t.name||(null===(r=t.strings)||void 0===r?void 0:r.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");return n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),n=e,u=[{key:"render",value:function(t){return Object.keys(t).reduce(function(e,n){var r=t[n];return null==r?e:e+"".concat(n=n.includes("-")?n:n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase(),":").concat(r,";")},"")}},{key:"update",value:function(t,e){var n=this,i=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,1)[0],o=t.element.style;if(void 0===this.ht){for(var s in this.ht=new Set,i)this.ht.add(s);return this.render(i)}for(var u in this.ht.forEach(function(t){null==i[t]&&(n.ht.delete(t),t.includes("-")?o.removeProperty(t):o[t]="")}),i){var c=i[u];if(null!=c){this.ht.add(u);var l="string"==typeof c&&c.endsWith(p);u.includes("-")||l?o.setProperty(u,l?c.slice(0,-11):c,l?d:""):o[u]=c}}return r.c0}}],u&&s(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(i.WL))},420:function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,a(r.key),r)}}function a(t){var e=function(t){if("object"!=r(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==r(e)?e:e+""}n.d(e,{WF:function(){return K},AH:function(){return p},qy:function(){return B.qy},s6:function(){return B.s6},XX:function(){return B.XX},JW:function(){return B.JW}}),n(2675),n(9463),n(2259),n(5700),n(8706),n(6449),n(3418),n(3792),n(4490),n(4782),n(4554),n(3514),n(739),n(9572),n(2010),n(6033),n(8130),n(1480),n(875),n(9432),n(6099),n(3362),n(825),n(7495),n(8781),n(1415),n(7764),n(3500),n(2953),n(2062),n(2712),n(3772);var s,u=window,c=u.ShadowRoot&&(void 0===u.ShadyCSS||u.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,l=Symbol(),f=new WeakMap,d=function(){return function(t,e){return e&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}(function t(e,n,r){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._$cssResult$=!0,r!==l)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=n},[{key:"styleSheet",get:function(){var t=this.o,e=this.t;if(c&&void 0===t){var n=void 0!==e&&1===e.length;n&&(t=f.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&f.set(e,t))}return t}},{key:"toString",value:function(){return this.cssText}}])}(),p=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=1===t.length?t[0]:n.reduce(function(e,n,r){return e+function(t){if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")}(n)+t[r+1]},t[0]);return new d(i,t,l)},h=function(t,e){c?t.adoptedStyleSheets=e.map(function(t){return t instanceof CSSStyleSheet?t:t.styleSheet}):e.forEach(function(e){var n=document.createElement("style"),r=u.litNonce;void 0!==r&&n.setAttribute("nonce",r),n.textContent=e.cssText,t.appendChild(n)})},v=c?function(t){return t}:function(t){return t instanceof CSSStyleSheet?function(t){var e,n="",r=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}(t.cssRules);try{for(r.s();!(e=r.n()).done;)n+=e.value.cssText}catch(t){r.e(t)}finally{r.f()}return function(t){return new d("string"==typeof t?t:t+"",void 0,l)}(n)}(t):t};function g(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=y(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function m(t){return function(t){if(Array.isArray(t))return b(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||y(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(t,e){if(t){if("string"==typeof t)return b(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(t,e):void 0}}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function w(t){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},w(t)}function x(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var u=r&&r.prototype instanceof s?r:s,c=Object.create(u.prototype);return S(c,"_invoke",function(n,r,i){var o,s,u,c=0,l=i||[],f=!1,d={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return o=e,s=0,u=t,d.n=n,a}};function p(n,r){for(s=n,u=r,e=0;!f&&c&&!i&&e<l.length;e++){var i,o=l[e],p=d.p,h=o[2];n>3?(i=h===r)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=t):o[0]<=p&&((i=n<2&&p<o[1])?(s=0,d.v=r,d.n=o[1]):p<h&&(i=n<3||o[0]>r||r>h)&&(o[4]=n,o[5]=r,d.n=h,s=0))}if(i||n>1)return a;throw f=!0,r}return function(i,l,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&p(l,h),s=l,u=h;(e=s<2?t:u)||!f;){o||(s?s<3?(s>1&&(d.n=-1),p(s,u)):d.n=u:d.v=u);try{if(c=2,o){if(s||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,s<2&&(s=0)}else 1===s&&(e=o.return)&&e.call(o),s<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=t}else if((e=(f=d.n<0)?u:n.call(r,d))!==a)break}catch(e){o=t,s=1,u=e}finally{c=1}}return{value:e,done:f}}}(n,i,o),!0),c}var a={};function s(){}function u(){}function c(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(S(e={},r,function(){return this}),e),f=c.prototype=s.prototype=Object.create(l);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,S(t,i,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=c,S(f,"constructor",c),S(c,"constructor",u),u.displayName="GeneratorFunction",S(c,i,"GeneratorFunction"),S(f),S(f,i,"Generator"),S(f,r,function(){return this}),S(f,"toString",function(){return"[object Generator]"}),(x=function(){return{w:o,m:d}})()}function S(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}S=function(t,e,n,r){function o(e,n){S(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},S(t,e,n,r)}function _(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function P(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,k(r.key),r)}}function k(t){var e=function(t){if("object"!=w(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=w(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==w(e)?e:e+""}function O(t){var e="function"==typeof Map?new Map:void 0;return O=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return function(t,e,n){if(E())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var i=new(t.bind.apply(t,r));return n&&T(i,n.prototype),i}(t,arguments,C(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),T(n,t)},O(t)}function E(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(E=function(){return!!t})()}function T(t,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},T(t,e)}function C(t){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},C(t)}var j=window,M=j.trustedTypes,R=M?M.emptyScript:"",A=j.reactiveElementPolyfillSupport,I={toAttribute:function(t,e){switch(e){case Boolean:t=t?R:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute:function(t,e){var n=t;switch(e){case Boolean:n=null!==t;break;case Number:n=null===t?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(t){n=null}}return n}},D=function(t,e){return e!==t&&(e==e||t==t)},L={attribute:!0,type:String,converter:I,reflect:!1,hasChanged:D},$="finalized",N=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=function(t,e,n){return e=C(e),function(t,e){if(e&&("object"==w(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,E()?Reflect.construct(e,n||[],C(t).constructor):e.apply(t,n))}(this,e))._$Ei=new Map,t.isUpdatePending=!1,t.hasUpdated=!1,t._$El=null,t._$Eu(),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&T(t,e)}(e,t),function(t,e,n){return e&&P(t.prototype,e),n&&P(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"_$Eu",value:function(){var t,e=this;this._$E_=new Promise(function(t){return e.enableUpdating=t}),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach(function(t){return t(e)})}},{key:"addController",value:function(t){var e,n;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(n=t.hostConnected)||void 0===n||n.call(t))}},{key:"removeController",value:function(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}},{key:"_$Eg",value:function(){var t=this;this.constructor.elementProperties.forEach(function(e,n){t.hasOwnProperty(n)&&(t._$Ei.set(n,t[n]),delete t[n])})}},{key:"createRenderRoot",value:function(){var t,e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return h(e,this.constructor.elementStyles),e}},{key:"connectedCallback",value:function(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach(function(t){var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)})}},{key:"enableUpdating",value:function(t){}},{key:"disconnectedCallback",value:function(){var t;null===(t=this._$ES)||void 0===t||t.forEach(function(t){var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)})}},{key:"attributeChangedCallback",value:function(t,e,n){this._$AK(t,n)}},{key:"_$EO",value:function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:L,i=this.constructor._$Ep(t,r);if(void 0!==i&&!0===r.reflect){var o=(void 0!==(null===(n=r.converter)||void 0===n?void 0:n.toAttribute)?r.converter:I).toAttribute(e,r.type);this._$El=t,null==o?this.removeAttribute(i):this.setAttribute(i,o),this._$El=null}}},{key:"_$AK",value:function(t,e){var n,r=this.constructor,i=r._$Ev.get(t);if(void 0!==i&&this._$El!==i){var o=r.getPropertyOptions(i),a="function"==typeof o.converter?{fromAttribute:o.converter}:void 0!==(null===(n=o.converter)||void 0===n?void 0:n.fromAttribute)?o.converter:I;this._$El=i,this[i]=a.fromAttribute(e,o.type),this._$El=null}}},{key:"requestUpdate",value:function(t,e,n){var r=!0;void 0!==t&&(((n=n||this.constructor.getPropertyOptions(t)).hasChanged||D)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===n.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,n))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}},{key:"_$Ej",value:(n=function(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(t){_(o,r,i,a,s,"next",t)}function s(t){_(o,r,i,a,s,"throw",t)}a(void 0)})}}(x().m(function t(){var e,n;return x().w(function(t){for(;;)switch(t.p=t.n){case 0:return this.isUpdatePending=!0,t.p=1,t.n=2,this._$E_;case 2:t.n=4;break;case 3:t.p=3,n=t.v,Promise.reject(n);case 4:if(null==(e=this.scheduleUpdate())){t.n=5;break}return t.n=5,e;case 5:return t.a(2,!this.isUpdatePending)}},t,this,[[1,3]])})),function(){return n.apply(this,arguments)})},{key:"scheduleUpdate",value:function(){return this.performUpdate()}},{key:"performUpdate",value:function(){var t,e=this;if(this.isUpdatePending){this.hasUpdated,this._$Ei&&(this._$Ei.forEach(function(t,n){return e[n]=t}),this._$Ei=void 0);var n=!1,r=this._$AL;try{(n=this.shouldUpdate(r))?(this.willUpdate(r),null===(t=this._$ES)||void 0===t||t.forEach(function(t){var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)}),this.update(r)):this._$Ek()}catch(t){throw n=!1,this._$Ek(),t}n&&this._$AE(r)}}},{key:"willUpdate",value:function(t){}},{key:"_$AE",value:function(t){var e;null===(e=this._$ES)||void 0===e||e.forEach(function(t){var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}},{key:"_$Ek",value:function(){this._$AL=new Map,this.isUpdatePending=!1}},{key:"updateComplete",get:function(){return this.getUpdateComplete()}},{key:"getUpdateComplete",value:function(){return this._$E_}},{key:"shouldUpdate",value:function(t){return!0}},{key:"update",value:function(t){var e=this;void 0!==this._$EC&&(this._$EC.forEach(function(t,n){return e._$EO(n,e[n],t)}),this._$EC=void 0),this._$Ek()}},{key:"updated",value:function(t){}},{key:"firstUpdated",value:function(t){}}],[{key:"addInitializer",value:function(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}},{key:"observedAttributes",get:function(){var t=this;this.finalize();var e=[];return this.elementProperties.forEach(function(n,r){var i=t._$Ep(r,n);void 0!==i&&(t._$Ev.set(i,r),e.push(i))}),e}},{key:"createProperty",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:L;if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){var n="symbol"==w(t)?Symbol():"__"+t,r=this.getPropertyDescriptor(t,n,e);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}},{key:"getPropertyDescriptor",value:function(t,e,n){return{get:function(){return this[e]},set:function(r){var i=this[t];this[e]=r,this.requestUpdate(t,i,n)},configurable:!0,enumerable:!0}}},{key:"getPropertyOptions",value:function(t){return this.elementProperties.get(t)||L}},{key:"finalize",value:function(){if(this.hasOwnProperty($))return!1;this[$]=!0;var t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=m(t.h)),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){var e,n=this.properties,r=g([].concat(m(Object.getOwnPropertyNames(n)),m(Object.getOwnPropertySymbols(n))));try{for(r.s();!(e=r.n()).done;){var i=e.value;this.createProperty(i,n[i])}}catch(t){r.e(t)}finally{r.f()}}return this.elementStyles=this.finalizeStyles(this.styles),!0}},{key:"finalizeStyles",value:function(t){var e=[];if(Array.isArray(t)){var n,r=g(new Set(t.flat(1/0).reverse()));try{for(r.s();!(n=r.n()).done;){var i=n.value;e.unshift(v(i))}}catch(t){r.e(t)}finally{r.f()}}else void 0!==t&&e.push(v(t));return e}},{key:"_$Ep",value:function(t,e){var n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}}]);var n}(O(HTMLElement));N[$]=!0,N.elementProperties=new Map,N.elementStyles=[],N.shadowRootOptions={mode:"open"},null==A||A({ReactiveElement:N}),(null!==(s=j.reactiveElementVersions)&&void 0!==s?s:j.reactiveElementVersions=[]).push("1.6.3");var F,U,B=n(6681);function z(t){return z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},z(t)}function W(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,H(r.key),r)}}function H(t){var e=function(t){if("object"!=z(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=z(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==z(e)?e:e+""}function V(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function G(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(G=function(){return!!t})()}function q(t,e,n,r){var i=X(Y(1&r?t.prototype:t),e,n);return 2&r&&"function"==typeof i?function(t){return i.apply(n,t)}:i}function X(){return X="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=Y(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},X.apply(null,arguments)}function Y(t){return Y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Y(t)}function Z(t,e){return Z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Z(t,e)}n(3851),n(888),n(2480);var K=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=function(t,e,n){return e=Y(e),function(t,e){if(e&&("object"==z(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return V(t)}(t,G()?Reflect.construct(e,n||[],Y(t).constructor):e.apply(t,n))}(this,e,arguments)).renderOptions={host:V(t)},t._$Do=void 0,t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Z(t,e)}(e,t),function(t,e){return e&&W(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"createRenderRoot",value:function(){var t,n,r=q(e,"createRenderRoot",this,3)([]);return null!==(t=(n=this.renderOptions).renderBefore)&&void 0!==t||(n.renderBefore=r.firstChild),r}},{key:"update",value:function(t){var n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),q(e,"update",this,3)([t]),this._$Do=(0,B.XX)(n,this.renderRoot,this.renderOptions)}},{key:"connectedCallback",value:function(){var t;q(e,"connectedCallback",this,3)([]),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}},{key:"disconnectedCallback",value:function(){var t;q(e,"disconnectedCallback",this,3)([]),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}},{key:"render",value:function(){return B.c0}}])}(N);K.finalized=!0,K._$litElement$=!0,null===(F=globalThis.litElementHydrateSupport)||void 0===F||F.call(globalThis,{LitElement:K});var J=globalThis.litElementPolyfillSupport;null==J||J({LitElement:K}),(null!==(U=globalThis.litElementVersions)&&void 0!==U?U:globalThis.litElementVersions=[]).push("3.3.3")},4907:function(t,e,n){"use strict";n.d(e,{KL:function(){return m},LN:function(){return h},Ql:function(){return v}}),n(2675),n(9463),n(2259),n(5700),n(8706),n(3418),n(3792),n(2712),n(4782),n(9572),n(2010),n(8130),n(875),n(6099),n(3362),n(7495),n(8781),n(7764),n(2953);var r=n(8004),i=n(1669);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||s(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){if(t){if("string"==typeof t)return u(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function c(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var u=r&&r.prototype instanceof s?r:s,c=Object.create(u.prototype);return l(c,"_invoke",function(n,r,i){var o,s,u,c=0,l=i||[],f=!1,d={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return o=e,s=0,u=t,d.n=n,a}};function p(n,r){for(s=n,u=r,e=0;!f&&c&&!i&&e<l.length;e++){var i,o=l[e],p=d.p,h=o[2];n>3?(i=h===r)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=t):o[0]<=p&&((i=n<2&&p<o[1])?(s=0,d.v=r,d.n=o[1]):p<h&&(i=n<3||o[0]>r||r>h)&&(o[4]=n,o[5]=r,d.n=h,s=0))}if(i||n>1)return a;throw f=!0,r}return function(i,l,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&p(l,h),s=l,u=h;(e=s<2?t:u)||!f;){o||(s?s<3?(s>1&&(d.n=-1),p(s,u)):d.n=u:d.v=u);try{if(c=2,o){if(s||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,s<2&&(s=0)}else 1===s&&(e=o.return)&&e.call(o),s<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=t}else if((e=(f=d.n<0)?u:n.call(r,d))!==a)break}catch(e){o=t,s=1,u=e}finally{c=1}}return{value:e,done:f}}}(n,i,o),!0),c}var a={};function s(){}function u(){}function f(){}e=Object.getPrototypeOf;var d=[][r]?e(e([][r]())):(l(e={},r,function(){return this}),e),p=f.prototype=s.prototype=Object.create(d);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,l(t,i,"GeneratorFunction")),t.prototype=Object.create(p),t}return u.prototype=f,l(p,"constructor",f),l(f,"constructor",u),u.displayName="GeneratorFunction",l(f,i,"GeneratorFunction"),l(p),l(p,i,"Generator"),l(p,r,function(){return this}),l(p,"toString",function(){return"[object Generator]"}),(c=function(){return{w:o,m:h}})()}function l(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}l=function(t,e,n,r){function o(e,n){l(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},l(t,e,n,r)}function f(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,p(r.key),r)}}function p(t){var e=function(t){if("object"!=o(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==o(e)?e:e+""}var h=function(){return t=function t(e,n){var r=n.isProtected,o=n.imageCache;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.page=e,this.imageCache=o,this.$container=i("<div />",{class:"BRpagecontainer ".concat(e?"pagediv".concat(e.index):"BRemptypage"),css:{position:"absolute"}}).attr("data-side",null==e?void 0:e.pageSide).attr("data-index",null==e?void 0:e.index).attr("data-page-num",null==e?void 0:e.getPageNum()),r&&(this.$container.append(i('<div class="BRscreen" />')),this.$container.addClass("protected")),this.$img=null},e=[{key:"update",value:function(t){var e,n=this,i=t.dimensions,o=void 0===i?null:i,a=t.reduce,s=void 0===a?null:a;if(o&&this.$container.css(o),null!=s&&this.page){var u=this.imageCache.getFinalReduce(this.page.index,s),l=this.page.getURI(u,0),d=this.imageCache.imageLoaded(this.page.index,u),p=this.imageCache.getBestLoadedReduce(this.page.index,s);if((null===(e=this.$img)||void 0===e?void 0:e.data("src"))==l)return this;var h=this.$img;if(this.$img=this.imageCache.image(this.page.index,u),h?this.$img.insertAfter(h):this.$img.prependTo(this.$container),d||this.$container.addClass("BRpageloading"),!d&&p){var v=this.page.getURI(p,0);h?h.data("src")==v||this.imageCache.image(this.page.index,p,h[0]):(h=this.imageCache.image(this.page.index,p)).prependTo(this.$container)}return this.$img.one("load",function(){var t,e=(t=c().m(function t(e){var i;return c().w(function(t){for(;;)switch(t.n){case 0:return n.$container.removeClass("BRpageloading"),t.n=1,(0,r.sleep)(100);case 1:null===(i=h)||void 0===i||i.remove();case 2:return t.a(2)}},t)}),function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(t){f(o,r,i,a,s,"next",t)}function s(t){f(o,r,i,a,s,"throw",t)}a(void 0)})});return function(t){return e.apply(this,arguments)}}()),this}}}],e&&d(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();function v(t,e){var n=document.createElement("div");return n.style.width="".concat(t.width,"px"),n.style.height="".concat(t.height,"px"),n.setAttribute("class","BRPageLayer ".concat(e)),n}function g(t){var e=t.l,n=t.r,r=t.b,i=t.t,o=document.createElementNS("http://www.w3.org/2000/svg","rect");return o.setAttribute("x",e.toString()),o.setAttribute("y",i.toString()),o.setAttribute("width",(n-e).toString()),o.setAttribute("height",(r-i).toString()),o.setAttribute("rx","4"),o.setAttribute("ry","4"),o}function m(t,e,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,u=r.querySelector(".".concat(t)),c=u||function(t,e){var n=document.createElementNS("http://www.w3.org/2000/svg","svg");return n.setAttribute("xmlns","http://www.w3.org/2000/svg"),n.setAttribute("viewBox","0 0 ".concat(t.width," ").concat(t.height)),n.setAttribute("class","BRPageLayer ".concat(e)),n.setAttribute("preserveAspectRatio","none"),n}(n,t);if(!u){var l=r.querySelector(".BRpageimage");l?i(c).insertAfter(l):i(c).prependTo(r)}var f,d=function(t){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=s(t))){e&&(t=e);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,a=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return o=t.done,t},e:function(t){a=!0,i=t},f:function(){try{o||null==e.return||e.return()}finally{if(a)throw i}}}}(e.entries());try{for(d.s();!(f=d.n()).done;){var p=a(f.value,2),h=p[0],v=g(p[1]);o&&v.setAttribute("class",o[h]),c.appendChild(v)}}catch(t){d.e(t)}finally{d.f()}}},8340:function(t,e,n){"use strict";n.d(e,{q:function(){return r}});var r={fragmentChange:"fragmentChange",pageChanged:"pageChanged",beforePageChanged:"beforePageChanged",PostInit:"PostInit",stop:"stop",resize:"resize",userAction:"userAction",fullscreenToggled:"fullscreenToggled",zoomOut:"zoomOut",zoomIn:"zoomIn","1PageViewSelected":"1PageViewSelected","2PageViewSelected":"2PageViewSelected","3PageViewSelected":"3PageViewSelected"}},8004:function(t,e,n){"use strict";function r(){var t,e,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function s(n,r,o,a){var s=r&&r.prototype instanceof c?r:c,l=Object.create(s.prototype);return i(l,"_invoke",function(n,r,i){var o,a,s,c=0,l=i||[],f=!1,d={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return o=e,a=0,s=t,d.n=n,u}};function p(n,r){for(a=n,s=r,e=0;!f&&c&&!i&&e<l.length;e++){var i,o=l[e],p=d.p,h=o[2];n>3?(i=h===r)&&(s=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=p&&((i=n<2&&p<o[1])?(a=0,d.v=r,d.n=o[1]):p<h&&(i=n<3||o[0]>r||r>h)&&(o[4]=n,o[5]=r,d.n=h,a=0))}if(i||n>1)return u;throw f=!0,r}return function(i,l,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&p(l,h),a=l,s=h;(e=a<2?t:s)||!f;){o||(a?a<3?(a>1&&(d.n=-1),p(a,s)):d.n=s:d.v=s);try{if(c=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,s)))throw TypeError("iterator result is not an object");if(!e.done)return e;s=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(f=d.n<0)?s:n.call(r,d))!==u)break}catch(e){o=t,a=1,s=e}finally{c=1}}return{value:e,done:f}}}(n,o,a),!0),l}var u={};function c(){}function l(){}function f(){}e=Object.getPrototypeOf;var d=[][o]?e(e([][o]())):(i(e={},o,function(){return this}),e),p=f.prototype=c.prototype=Object.create(d);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,i(t,a,"GeneratorFunction")),t.prototype=Object.create(p),t}return l.prototype=f,i(p,"constructor",f),i(f,"constructor",l),l.displayName="GeneratorFunction",i(f,a,"GeneratorFunction"),i(p),i(p,a,"Generator"),i(p,o,function(){return this}),i(p,"toString",function(){return"[object Generator]"}),(r=function(){return{w:s,m:h}})()}function i(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}i=function(t,e,n,r){function a(e,n){i(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(a("next",0),a("throw",1),a("return",2))},i(t,e,n,r)}function o(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function a(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function s(t){o(a,r,i,s,u,"next",t)}function u(t){o(a,r,i,s,u,"throw",t)}s(void 0)})}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function u(t){t.bind("mousedown",function(){return!1}),t[0].onselectstart=function(){return!1}}function c(t,e,n){return Math.min(Math.max(t,e),n)}function l(t,e){return t/e*100+"%"}function f(t,e){return!e.includes(t)}function d(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t.activeElement;return e&&null!=n&&n.shadowRoot?d(n.shadowRoot,!0):n}function p(){var t=d(arguments.length>0&&void 0!==arguments[0]?arguments[0]:document);return"INPUT"==(null==t?void 0:t.tagName)||"TEXTAREA"==(null==t?void 0:t.tagName)}function h(t){var e=t.contentWindow||t.contentDocument;return e.document||e}function v(t){return t.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;")}function g(t){return decodeURIComponent(t).replace(/\+/g," ")}function m(t){return encodeURIComponent(t).replace(/%20/g,"+")}function y(t,e,n){var r;return function(){var i=this,o=arguments,a=n&&!r;clearTimeout(r),r=setTimeout(function(){r=null,n||t.apply(i,o)},e),a&&t.apply(i,o)}}function b(t,e,n){var r,i;return e||(e=250),n&&(r=+new Date),function(){var n=this,o=+new Date,a=arguments;r&&o<r+e?(clearTimeout(i),i=setTimeout(function(){r=o,t.apply(n,a)},e)):(r=o,t.apply(n,a))}}function w(t){if("function"==typeof t.CustomEvent)return!1;t.CustomEvent=x}function x(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.bubbles,r=void 0!==n&&n,i=e.cancelable,o=void 0!==i&&i,a=e.detail,s=void 0===a?null:a,u=document.createEvent("CustomEvent");return u.initCustomEvent(t,r,o,s),u}function S(){var t=document.createElement("div");t.style.width="1in",document.body.appendChild(t);var e=t.offsetWidth;document.body.removeChild(t);var n=1.25*e;return 0==n?100:n}function _(t){return t.reduce(function(t,e){return t+e},0)}function P(t){var e,n=[],r=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return s(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}(t);try{for(r.s();!(e=r.n()).done;){var i=e.value;n.push(i)}}catch(t){r.e(t)}finally{r.f()}return n}function k(t,e){return t.length==e.length&&t.every(function(t,n){return t==e[n]})}function O(t,e){return t&&e&&!k(t,e)}function E(t){return T.apply(this,arguments)}function T(){return(T=a(r().m(function t(e){return r().w(function(t){for(;;)if(0===t.n)return t.a(2,new Promise(function(t){return setTimeout(t,e)}))},t)}))).apply(this,arguments)}function C(t){return j.apply(this,arguments)}function j(){return j=a(r().m(function t(e){var n,i,o,a,s,u,c,l,f,d,p,h=arguments;return r().w(function(t){for(;;)switch(t.n){case 0:i=(n=h.length>1&&void 0!==h[1]?h[1]:{}).step,o=void 0===i?50:i,a=n.timeout,s=void 0===a?500:a,u=n.until,c=void 0===u?function(t){return Boolean(t)}:u,l=n._sleep,f=void 0===l?E:l,d=Date.now();case 1:if(!(Date.now()-d<s)){t.n=4;break}if(p=e(),!c(p)){t.n=2;break}return t.a(2,p);case 2:return t.n=3,f(o);case 3:t.n=1;break;case 4:return t.a(2)}},t)})),j.apply(this,arguments)}function M(t,e){return new Promise(function(n){var r=function(i){t.removeEventListener(e,r),n(i)};t.addEventListener(e,r)})}function R(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function A(t){return"slow"===t?600:"fast"===t?200:parseInt(t,10)}function I(t,e){return t.sort(function(t,n){var r=e?e(t):t,i=e?e(n):n;return r<i?-1:r>i?1:0})}n.r(e),n.d(e,{PolyfilledCustomEvent:function(){return x},arrChanged:function(){return O},arrEquals:function(){return k},calcScreenDPI:function(){return S},clamp:function(){return c},cssPercentage:function(){return l},debounce:function(){return y},decodeURIComponentPlus:function(){return g},disableSelect:function(){return u},encodeURIComponentPlus:function(){return m},escapeHTML:function(){return v},escapeRegExp:function(){return R},genToArray:function(){return P},getActiveElement:function(){return d},getIFrameDocument:function(){return h},isInputActive:function(){return p},notInArray:function(){return f},parseAnimationSpeed:function(){return A},poll:function(){return C},polyfillCustomEvent:function(){return w},promisifyEvent:function(){return M},sleep:function(){return E},sortBy:function(){return I},sum:function(){return _},throttle:function(){return b}}),n(2675),n(9463),n(2259),n(3418),n(4423),n(3792),n(2712),n(4782),n(6910),n(2010),n(875),n(6099),n(8940),n(3362),n(7495),n(8781),n(1699),n(7764),n(5440),n(2953)},7583:function(t,e,n){"use strict";function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:navigator.vendor;return/chrome/i.test(t)&&/google inc/i.test(e)&&!function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent;return/chrome/i.test(t)&&/\bEdg(e|A|iOS)?\b/i.test(t)}(t)}function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent;return/firefox/i.test(t)}function o(){return"ongesturestart"in window&&navigator.maxTouchPoints>0}function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent;return/SamsungBrowser/i.test(t)}n.d(e,{H8:function(){return r},gm:function(){return i},ij:function(){return a},un:function(){return o}}),n(7495)}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={id:t,loaded:!1,exports:{}};return e[t].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.m=e,t=[],r.O=function(e,n,i,o){if(!n){var a=1/0;for(l=0;l<t.length;l++){n=t[l][0],i=t[l][1],o=t[l][2];for(var s=!0,u=0;u<n.length;u++)(!1&o||a>=o)&&Object.keys(r.O).every(function(t){return r.O[t](n[u])})?n.splice(u--,1):(s=!1,o<a&&(a=o));if(s){t.splice(l--,1);var c=i();void 0!==c&&(e=c)}}return e}o=o||0;for(var l=t.length;l>0&&t[l-1][2]>o;l--)t[l]=t[l-1];t[l]=[n,i,o]},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.u=function(t){return t+".js"},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},function(){var t;r.g.importScripts&&(t=r.g.location+"");var e=r.g.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");if(n.length)for(var i=n.length-1;i>-1&&(!t||!/^http(s?):/.test(t));)t=n[i--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=t}(),function(){r.b="undefined"!=typeof document&&document.baseURI||self.location.href;var t={340:0};r.O.j=function(e){return 0===t[e]};var e=function(e,n){var i,o,a=n[0],s=n[1],u=n[2],c=0;if(a.some(function(e){return 0!==t[e]})){for(i in s)r.o(s,i)&&(r.m[i]=s[i]);if(u)var l=u(r)}for(e&&e(n);c<a.length;c++)o=a[c],r.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return r.O(l)},n=self.webpackChunk_internetarchive_bookreader=self.webpackChunk_internetarchive_bookreader||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))}();var i={};!function(){"use strict";r(2675),r(9463),r(2259),r(8706),r(2008),r(113),r(3418),r(4423),r(3792),r(8598),r(2062),r(2712),r(4782),r(2010),r(9085),r(5506),r(875),r(9432),r(6099),r(6034),r(8940),r(3362),r(7495),r(8781),r(1699),r(7764),r(5746),r(3500),r(2953),r(8408),r(9139),r(3662),r(8497);var t=r(8004);r(5700),r(9572),r(8130),r(8459),r(4720);var e=r(8340),n=r(1669);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,a(r.key),r)}}function a(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}var s=function(){return r=function e(n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.br=n,this.$root=null,this.$nav=null,this.maxPageNum=null,this.minimumControls=["toggle_slider","viewmode"],this.maximumControls=["BRnavpos","book_left","book_right","zoom_in","zoom_out","onepg","twopg","thumb"],this.updateNavIndexThrottled=(0,t.throttle)(this.updateNavIndex.bind(this),250,!1)},i=[{key:"controlFor",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.br.options.controls[t],r=Object.assign({},n,e);return r.visible?r.template?"<li>".concat(r.template(this.br),"</li>"):'<li>\n <button class="BRicon '.concat(r.className,'" title="').concat(r.label,'">\n <div class="icon icon-').concat(r.iconClassName,'"></div>\n <span class="BRtooltip">').concat(r.label,"</span>\n </button>\n </li>"):""}},{key:"_renderControls",value:function(){var t=this;return["toggleSlider","bookLeft","bookRight","onePage","twoPage","thumbnail","viewmode","zoomOut","zoomIn","fullScreen"].map(function(e){return t.controlFor(e)}).join("")}},{key:"_bindViewModeButton",value:function(){var t=this,r=this.br,i=r.options.controls.viewmode,o=[{mode:r.constMode1up,className:"onepg",title:"One-page view"},{mode:r.constMode2up,className:"twopg",title:"Two-page view"},{mode:r.constModeThumb,className:"thumb",title:"Thumbnail view"}].filter(function(t){return!i.excludedModes.includes(t.mode)}),a=o.map(function(t){return t.mode});i.excludedModes.includes(r.mode)&&r.switchMode(a[0]);for(var s=a.indexOf(r.mode),u=0;u<=s;u++)a.push(a.shift());o.length<2&&this.$nav.find(".".concat(i.className)).remove(),this.br.bind(e.q.PostInit,function(){var e=t.$nav.find(".".concat(i.className)).off(".bindNavigationHandlers").on("click",function(e){var i=a.shift(),s=o.find(function(t){return t.mode===i}),u=o.find(function(t){return t.mode===a[0]});a.push(i),r.viewModeOrder=a,t.updateViewModeButton(n(e.currentTarget),u.className,u.title),r.switchMode(s.mode)}),s=o.find(function(t){return t.mode===a[0]});t.updateViewModeButton(e,s.className,s.title)})}},{key:"bindControlClickHandlers",value:function(){var t=this,n=this.$nav.find(".BRicon"),r={toggle_slider:function(){t.br.toggleSlider()},book_left:this.br.left.bind(this.br),book_right:this.br.right.bind(this.br),book_top:this.br.first.bind(this.br),book_bottom:this.br.last.bind(this.br),book_leftmost:this.br.leftmost.bind(this.br),book_rightmost:this.br.rightmost.bind(this.br),onepg:function(){t.br.switchMode("1up")},thumb:function(){t.br.switchMode("thumb")},twopg:function(){t.br.switchMode("2up")},zoom_in:function(){t.br.trigger(e.q.stop),t.br.zoom(1),t.br.trigger(e.q.zoomIn)},zoom_out:function(){t.br.trigger(e.q.stop),t.br.zoom(-1),t.br.trigger(e.q.zoomOut)},full:function(){if("embed"==t.br.ui){var e=t.br.$(".BRembedreturn a").attr("href");window.open(e)}else t.br.toggleFullscreen()}};this.$nav.find("nav.BRcontrols li button").on("click",function(){t.br.trigger(e.q.userAction)});var i=function(t){n.filter(".".concat(t)).on("click.bindNavigationHandlers",function(){return r[t](),!1})};for(var o in r)i(o)}},{key:"updateViewModeButton",value:function(t,e,n){t.attr("title",n).find(".icon").removeClass().addClass("icon icon-".concat(e)).end().find(".BRtooltip").text(n)}},{key:"switchNavbarControls",value:function(){"linerNotes"!==this.br.options.bookType&&(this.br.refs.$brContainer.prop("clientWidth")<640?this.showMobileControls():this.showDesktopControls())}},{key:"showMobileControls",value:function(){this.minimumControls.forEach(function(t){var e=document.querySelector(".BRnavMain .controls .".concat(t));e&&e.classList.remove("hide")}),this.maximumControls.forEach(function(t){var e=document.querySelector(".BRnavMain .controls .".concat(t));e&&e.classList.add("hide")});var t=document.querySelector(".BRnavMobile");t&&t.classList.remove("hide")}},{key:"showDesktopControls",value:function(){this.maximumControls.forEach(function(t){var e=document.querySelector(".BRnavMain .controls .".concat(t));e&&e.classList.remove("hide")}),this.minimumControls.forEach(function(t){var e=document.querySelector(".BRnavMain .controls .".concat(t));e&&e.classList.add("hide")});var t=document.querySelector(".BRnavMobile");t&&t.classList.add("hide")}},{key:"init",value:function(){var t=this,r=this.br,i=r.options.navbarTitle,o="rl"===r.pageProgression,a=o?"book_flip_next":"book_flip_prev",s=o?"book_flip_prev":"book_flip_next";this.br.options.controls.bookLeft.className="book_left ".concat(a),this.br.options.controls.bookRight.className="book_right ".concat(s),r.refs.$BRfooter=this.$root=n('<div class="BRfooter"></div>'),r.refs.$BRnav=this.$nav=n('<div class="BRnav BRnavMobile docked">\n '.concat(i?'<div class="BRnavTitle">'.concat(i,"</div>"):"",'\n <nav class="BRcontrols">\n <ul class="controls">\n <li class="scrubber">\n <div class="BRnavpos">\n <div class="BRpager"></div>\n <div class="BRnavline"></div>\n </div>\n </li>\n ').concat(this.controlFor("bookLeft",{visible:!0}),"\n ").concat(this.controlFor("bookRight",{visible:!0}),'\n </ul>\n </nav>\n </div>\n <div class="BRnav BRnavMain">\n ').concat(i?'<div class="BRnavTitle">'.concat(i,"</div>"):"",'\n <nav class="BRcontrols">\n <ul class="controls">\n <li class="scrubber">\n <p>\n <span class="BRcurrentpage"></span>\n </p>\n <div class="BRnavpos hide">\n <div class="BRpager"></div>\n <div class="BRnavline"></div>\n </div>\n </li>\n ').concat(this._renderControls(),"\n </ul>\n </nav>\n </div>")),this.$root.append(this.$nav),r.refs.$br.append(this.$root),this.br.on(e.q.beforePageChanged,function(e,n){n.ariaLive?t.$root.find(".BRcurrentpage").attr("role","status"):t.$root.find(".BRcurrentpage").removeAttr("role")}),this.br.on(e.q.pageChanged,function(e,n){var r=n.index;return t.updateNavIndexThrottled(r)}),r.options.controls.viewmode.visible&&this._bindViewModeButton(),this.updateNavPageNum(r.currentIndex());var u=this.$root.find(".BRpager").slider({animate:!0,min:0,max:r.book.getNumLeafs()-1,value:r.currentIndex(),range:"min"});return u.find(".ui-slider-handle").attr({role:"slider","aria-label":"Page navigation slider","aria-valuemin":1,"aria-valuemax":r.book.getNumLeafs()}),u.find(".ui-slider-handle").off("keydown").on("keydown",function(t){switch(t.keyCode||t.which){case n.ui.keyCode.LEFT:case n.ui.keyCode.RIGHT:o&&(t.keyCode===n.ui.keyCode.LEFT?t.keyCode=n.ui.keyCode.RIGHT:t.keyCode=n.ui.keyCode.LEFT),n.ui.slider.prototype._handleEvents.keydown.call(n(t.target).parent().data("ui-slider"),t),t.stopPropagation();break;default:return}}),u.on("slide",function(e,n){if(t.br.mode===t.br.constMode2up){var i=n.value>r.currentIndex(),a=t.br.book.getPage(n.value);(o?"L"===a.pageSide:"R"===a.pageSide)&&(n.value+=i?1:-1,n.value=Math.max(0,Math.min(n.value,r.book.getNumLeafs()-1)))}t.updateNavPageNum(n.value)}),u.on("slidechange",function(e,i){if(n(e.target).data("swallowchange"))n(e.target).data("swallowchange",!1);else{if(t.br.mode===t.br.constMode2up){var a=i.value>r.currentIndex(),s=t.br.book.getPage(i.value);(o?"L"===s.pageSide:"R"===s.pageSide)&&(i.value+=a?1:-1,i.value=Math.max(0,Math.min(i.value,r.book.getNumLeafs()-1)))}t.br.jumpToIndex(i.value,{ariaLive:!1})}}),this.$nav}},{key:"getNavPageNumString",value:function(t){var e=this.br,n=e.book.getPageNum(t),r=(e.book.getPageProp(t,"pageType"),e.book.getNumLeafs());if(!this.maxPageNum){for(var i,o=0,a=0;a<r;a++)i=parseFloat(e.book.getPageNum(a)),!isNaN(i)&&i>o&&(o=i);this.maxPageNum=o}return function(t,e,n){var r=t+1;return"n"!=n[0]||(n="—"),"Page ".concat(n," (").concat(r,"/").concat(e,")")}(t,r,n,this.maxPageNum)}},{key:"updateNavPageNum",value:function(t){this.$root.find(".BRcurrentpage").html(this.getNavPageNumString(t)),this.$root.find(".ui-slider-handle").attr({"aria-valuenow":t+1,"aria-valuetext":this.getNavPageNumString(t)})}},{key:"updateNavIndex",value:function(t){t=void 0!==t?t:this.br.currentIndex(),this.$root.find(".BRpager").data("swallowchange",!0),this.$root.find(".BRpager").slider("value",t),this.updateNavPageNum(t)}}],i&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}();function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function c(t){var e="function"==typeof Map?new Map:void 0;return c=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return function(t,e,n){if(l())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var i=new(t.bind.apply(t,r));return n&&f(i,n.prototype),i}(t,arguments,d(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),f(n,t)},c(t)}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}r(6033),r(825);var p={defaults:null,padding:10,ui:"full",uiAutoHide:!1,thumbRowBuffer:1,thumbColumns:6,thumbMaxLoading:4,thumbPadding:10,thumbMinZoomColumns:2,thumbMaxZoomColumns:8,flipSpeed:400,showToolbar:!0,showNavbar:!0,navBarTitle:"",showLogo:!0,logoURL:"https://archive.org",imagesBaseURL:"/BookReader/images/",reduceSet:"pow2",reductionFactors:[{reduce:.25,autofit:null},{reduce:.5,autofit:null},{reduce:1,autofit:null},{reduce:2,autofit:null},{reduce:3,autofit:null},{reduce:4,autofit:null},{reduce:6,autofit:null}],onePage:{autofit:"auto"},twoPage:{coverInternalPadding:0,coverExternalPadding:0,bookSpineDivWidth:64,autofit:"auto"},onePageMinBreakpoint:800,bookTitle:"",bookUrl:null,bookUrlText:null,bookUrlTitle:null,enableBookTitleLink:!0,bookUri:null,bookLanguage:null,metadata:[],thumbnail:null,bookUrlMoreInfo:null,enableExperimentalControls:!1,el:"#BookReader",pageProgression:"lr",ppi:500,protected:!1,plugins:{archiveAnalytics:{},autoplay:{},chapters:{},experiments:{},iiif:{},resume:{},search:{},textSelection:{},translate:{},tts:{}},vars:{},data:[],table_of_contents:null,getNumLeafs:null,getPageWidth:null,getPageHeight:null,getPageURI:null,renderPageURI:function(t,e){t.src=e},getPageSide:null,getSpreadIndices:null,getPageNum:null,getPageProp:null,leafNumToIndex:null,getEmbedCode:null,controls:{toggleSlider:{visible:!0,label:"Toggle page controls",className:"toggle_slider",iconClassName:"toggle-slider"},bookLeft:{visible:!0,label:"Flip left",className:"book_left",iconClassName:"left-arrow"},bookRight:{visible:!0,label:"Flip right",className:"book_right",iconClassName:"left-arrow hflip"},onePage:{visible:!0,label:"One-page view",className:"onepg",iconClassName:"onepg"},twoPage:{visible:!0,label:"Two-page view",className:"twopg",iconClassName:"twopg"},thumbnail:{visible:!0,label:"Thumbnail view",className:"thumb",iconClassName:"thumb"},viewmode:{visible:!0,className:"viewmode",excludedModes:[]},zoomOut:{visible:!0,label:"Zoom out",className:"zoom_out",iconClassName:"magnify"},zoomIn:{visible:!0,label:"Zoom in",className:"zoom_in",iconClassName:"magnify plus"},fullScreen:{visible:!0,label:"Go fullscreen",className:"full",iconClassName:"fullscreen"}},startFullscreen:!1,enableFSLogoShortcut:!1,autoResize:!0,useSrcSet:!1,unviewablePageURI:"./unviewable_page.png"},h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=d(e),function(t,e){if(e&&("object"==u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,l()?Reflect.construct(e,n||[],d(t).constructor):e.apply(t,n))}(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),n=e,Object.defineProperty(n,"prototype",{writable:!1}),n;var n}(c(Error)),v=(r(5440),r(4638),r(1669));function g(t){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,b(r.key),r)}}function b(t){var e=function(t){if("object"!=g(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==g(e)?e:e+""}var w=function(){return n=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.br=e},(r=[{key:"buildToolbarElement",value:function(){var t=this.br,e=t.showLogo?'\n <span class="BRtoolbarSection BRtoolbarSectionLogo">\n <a class="logo" href="'.concat(t.logoURL,'"></a>\n </span>'):"";t.refs.$BRtoolbar=v('\n <div class="BRtoolbar header">\n <div class="BRtoolbarbuttons">\n <div class="BRtoolbarLeft">\n '.concat(e,'\n <span class="BRtoolbarSection BRtoolbarSectionTitle"></span>\n </div>\n <div class="BRtoolbarRight">\n <span class="BRtoolbarSection BRtoolbarSectionInfo">\n <button class="BRpill info js-tooltip">Info</button>\n <button class="BRpill share js-tooltip">Share</button>\n </span>\n </div>\n </div>\n </div>'));var n=t.refs.$BRtoolbar.find(".BRtoolbarSectionTitle");t.bookUrl&&t.options.enableBookTitleLink?n.append(v("<a>").attr({href:t.bookUrl,title:t.bookUrlTitle}).addClass("BRreturn").html(t.bookUrlText||t.bookTitle)):t.bookTitle&&n.append(t.bookUrlText||t.bookTitle);for(var r=0,i=Object.values(t.plugins);r<i.length;r++)i[r]._configureToolbar(t.refs.$BRtoolbar);return t.refs.$BRtoolbar}},{key:"initToolbar",value:function(t,n){var r=this.br;r.refs.$br.append(this.buildToolbarElement()),r.$(".BRnavCntl").addClass("BRup"),r.$(".pause").hide(),r.refs.$BRtoolbar.append(),r.canSwitchToMode(r.constMode2up)||r.$(".two_page_mode, .play, .pause").hide(),r.canSwitchToMode(r.constModeThumb)||r.$(".thumbnail_mode").hide(),r.canSwitchToMode(r.constMode2up)||r.canSwitchToMode(r.constModeThumb)||r.$(".one_page_mode").hide(),v('<div style="display: none;"></div>').append(v('\n <div class="BRfloat BRshare">\n <div class="BRfloatHead">\n Share\n <button class="floatShut" href="javascript:;" onclick="$.fn.colorbox.close();"><span class="br-colorbox-shift">Close</span></button>\n </div>\n </div>')).append(v('\n <div class="BRfloat BRinfo">\n <div class="BRfloatHead">About this book\n <button class="floatShut" href="javascript:;" onclick="$.fn.colorbox.close();"><span class="br-colorbox-shift">Close</span></button>\n </div>\n <div class="BRfloatBody">\n <div class="BRfloatCover"></div>\n <div class="BRfloatMeta">\n <div class="BRfloatTitle">\n <h2><a /></h2>\n </div>\n </div>\n </div>\n <div class="BRfloatFoot">\n <a href="https://openlibrary.org/dev/docs/bookreader">About the BookReader</a>\n </div>\n </div>')).appendTo(r.refs.$br),r.$(".BRinfo .BRfloatTitle a").attr({href:r.bookUrl}).text(r.bookTitle).addClass("title"),this.buildInfoDiv(r.$(".BRinfo")),this.buildShareDiv(r.$(".BRshare")),r.$(".share").colorbox({inline:!0,opacity:"0.5",href:r.$(".BRshare"),onLoad:function(){r.trigger(e.q.stop),r.$(".BRpageviewValue").val(window.location.href)}}),r.$(".info").colorbox({inline:!0,opacity:"0.5",href:r.$(".BRinfo"),onLoad:function(){r.trigger(e.q.stop)}})}},{key:"buildShareDiv",value:function(t){var e=this,n=this.br,r=document.location+"",i=(r+"").replace(/#.*/,""),o=n.getEmbedCode?'\n <div class="share-embed">\n <p class="share-embed-prompt">Copy and paste one of these options to share this book elsewhere.</p>\n <form method="post" action="">\n <fieldset class="fieldset-share-pageview">\n <label for="pageview">Link to this page view</label>\n <input type="text" name="pageview" class="BRpageviewValue" value="'.concat(r,'"/>\n </fieldset>\n <fieldset class="fieldset-share-book-link">\n <label for="booklink">Link to the book</label>\n <input type="text" name="booklink" class="booklink" value="').concat(i,'"/>\n </fieldset>\n <fieldset class="fieldset-embed">\n <label for="iframe">Embed a mini Book Reader</label>\n <fieldset class="sub">\n <label class="sub">\n <input type="radio" name="pages" value="').concat(n.constMode1up,'" checked="checked"/>\n 1 page\n </label>\n <label class="sub">\n <input type="radio" name="pages" value="').concat(n.constMode2up,'"/>\n 2 pages\n </label>\n <label class="sub">\n <input type="checkbox" name="thispage" value="thispage"/>\n Open to this page?\n </label>\n </fieldset>\n <textarea cols="30" rows="4" name="iframe" class="BRframeEmbed"></textarea>\n </fieldset>\n </form>\n </div>'):"",a=v('\n <div class="share-title">Share this book</div>\n <div class="share-social">\n <label class="sub open-to-this-page">\n <input class="thispage-social" type="checkbox" />\n Open to this page?\n </label>\n <div><button class="BRaction share facebook-share-button"><i class="BRicon fb" /> Facebook</button></div>\n <div><button class="BRaction share twitter-share-button"><i class="BRicon twitter" /> Twitter</button></div>\n <div><button class="BRaction share email-share-button"><i class="BRicon email" /> Email</button></div>\n </div>\n '.concat(o,'\n <div class="BRfloatFoot">\n <button class="share-finished" type="button" onclick="$.fn.colorbox.close();">Finished</button>\n </div>'));a.appendTo(t),a.find(".fieldset-embed input").on("change",function(t){var e=v(t.target).parents("form").first(),r={};r.mode=v(e.find(".fieldset-embed input[name=pages]:checked")).val(),e.find(".fieldset-embed input[name=thispage]").prop("checked")&&(r.page=n.book.getPageNum(n.currentIndex())),n.getEmbedCode&&e.find(".BRframeEmbed").val(n.getEmbedCode("480px","430px",r))}),a.find("input, textarea").on("focus",function(t){return t.target.select()}),a.find(".facebook-share-button").on("click",function(){x("https://www.facebook.com/sharer.php?"+v.param({u:e._getSocialShareUrl()}),600,400,"Share")}),a.find(".twitter-share-button").on("click",function(){x("https://twitter.com/intent/tweet?"+v.param({url:e._getSocialShareUrl(),text:n.bookTitle}),600,400,"Share")}),a.find(".email-share-button").on("click",function(){var t="".concat(n.bookTitle,"\n\n").concat(e._getSocialShareUrl());window.location.href="mailto:?subject=".concat(encodeURI(n.bookTitle),"&body=").concat(encodeURI(t))}),a.find("input[name=thispage]").trigger("change"),a.appendTo(t)}},{key:"_getSocialShareUrl",value:function(){return this.br.$(".thispage-social").prop("checked")?window.location.href:"".concat(document.location.protocol,"//").concat(window.location.hostname).concat(window.location.pathname)}},{key:"buildInfoDiv",value:function(e){var n=this.br;e.find(".BRfloatBody, .BRfloatCover, .BRfloatFoot").remove();var r=v('<div class="BRinfoLeftCol"></div>');n.thumbnail&&r.append(v('\n <div class="BRimageW">\n <img src="'.concat(n.thumbnail,'" alt="').concat((0,t.escapeHTML)(n.bookTitle),'" />\n </div>')));var i,o=v('<div class="BRinfoRightCol">'),a=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return m(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(n.metadata);try{for(a.s();!(i=a.n()).done;){var s=i.value,u=s.extraValueClass,c=void 0===u?"":u,l=s.label,f=s.value,d="Title"===l?(0,t.escapeHTML)(f):f;o.append(v('\n <div class="BRinfoValueWrapper">\n <div class="BRinfoLabel">'.concat(l,'</div>\n <div class="BRinfoValue ').concat(c,'">').concat(d,"</div>\n </div>")))}}catch(t){a.e(t)}finally{a.f()}var p=n.bookUrlMoreInfo?n.bookUrlMoreInfo:n.bookTitle;p&&n.bookUrl&&o.append(v('\n <div class="BRinfoValueWrapper">\n <div class="BRinfoMoreInfoWrapper">\n <a class="BRinfoMoreInfo" href="'.concat(n.bookUrl,'">\n ').concat((0,t.escapeHTML)(p),"\n </a>\n </div>\n </div>")));var h=v('<div class="BRfloatFoot BRinfoFooter"></div>'),g=v('<div class="BRinfoW mv20-lg">').append([r,o,v('<br style="clear:both"/>')]);e.append(g,h).addClass("wide")}},{key:"getToolBarHeight",value:function(){var t=this.br.refs.$BRtoolbar;return t&&"block"===t.css("display")?t.outerHeight()+parseInt(t.css("top")):0}}])&&y(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}();function x(t,e,n,r){var i=null!=window.screenLeft?window.screenLeft:screen.left,o=null!=window.screenTop?window.screenTop:screen.top,a=(window.innerWidth||document.documentElement.clientWidth||screen.width)/2-e/2+i,s=(window.innerHeight||document.documentElement.clientHeight||screen.height)/2-n/2+o,u="status=1,width=".concat(e,",height=").concat(n,",top=").concat(s,",left=").concat(a);window.open(t,r,u)}function S(t){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S(t)}function _(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var u=r&&r.prototype instanceof s?r:s,c=Object.create(u.prototype);return P(c,"_invoke",function(n,r,i){var o,s,u,c=0,l=i||[],f=!1,d={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return o=e,s=0,u=t,d.n=n,a}};function p(n,r){for(s=n,u=r,e=0;!f&&c&&!i&&e<l.length;e++){var i,o=l[e],p=d.p,h=o[2];n>3?(i=h===r)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=t):o[0]<=p&&((i=n<2&&p<o[1])?(s=0,d.v=r,d.n=o[1]):p<h&&(i=n<3||o[0]>r||r>h)&&(o[4]=n,o[5]=r,d.n=h,s=0))}if(i||n>1)return a;throw f=!0,r}return function(i,l,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&p(l,h),s=l,u=h;(e=s<2?t:u)||!f;){o||(s?s<3?(s>1&&(d.n=-1),p(s,u)):d.n=u:d.v=u);try{if(c=2,o){if(s||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,s<2&&(s=0)}else 1===s&&(e=o.return)&&e.call(o),s<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=t}else if((e=(f=d.n<0)?u:n.call(r,d))!==a)break}catch(e){o=t,s=1,u=e}finally{c=1}}return{value:e,done:f}}}(n,i,o),!0),c}var a={};function s(){}function u(){}function c(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(P(e={},r,function(){return this}),e),f=c.prototype=s.prototype=Object.create(l);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,P(t,i,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=c,P(f,"constructor",c),P(c,"constructor",u),u.displayName="GeneratorFunction",P(c,i,"GeneratorFunction"),P(f),P(f,i,"Generator"),P(f,r,function(){return this}),P(f,"toString",function(){return"[object Generator]"}),(_=function(){return{w:o,m:d}})()}function P(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}P=function(t,e,n,r){function o(e,n){P(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},P(t,e,n,r)}function k(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return O(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function O(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function E(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function T(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,j(r.key),r)}}function C(t,e,n){return e&&T(t.prototype,e),n&&T(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function j(t){var e=function(t){if("object"!=S(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=S(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==S(e)?e:e+""}r(8980),r(8350),r(6910),r(237),r(1392);var M=function(){return C(function t(e){var n,r,i,o;E(this,t),this.br=e,this.reduceSet=e.reduceSet,this.ppi=null!==(n=null===(r=e.options)||void 0===r?void 0:r.ppi)&&void 0!==n?n:p.ppi,this.pageProgression=null!==(i=null===(o=e.options)||void 0===o?void 0:o.pageProgression)&&void 0!==i?i:p.pageProgression,this._medianPageSize=null,this._getDataFlattenedCached=null},[{key:"getMedianPageSizeInches",value:function(){if(this._medianPageSize)return this._medianPageSize;var t,e=[],n=[],r=k(this.pagesIterator());try{for(r.s();!(t=r.n()).done;){var i=t.value;e.push(i.widthInches),n.push(i.heightInches)}}catch(t){r.e(t)}finally{r.f()}return e.sort(function(t,e){return t-e}),n.sort(function(t,e){return t-e}),this._medianPageSize={width:e[Math.floor(e.length/2)],height:n[Math.floor(n.length/2)]},this._medianPageSize}},{key:"_getPageWidth",value:function(e){return e=(0,t.clamp)(e,0,this.getNumLeafs()-1),this.getPageWidth(e)}},{key:"_getPageHeight",value:function(e){var n=(0,t.clamp)(e,0,this.getNumLeafs()-1);return this.getPageHeight(n)}},{key:"getPageIndex",value:function(t){var e=this.getPageIndices(t);return e.length?e[e.length-1]:void 0}},{key:"getPageIndices",value:function(t){var e=[];if("n"==t.slice(0,1))try{var n=t.slice(1,t.length),r=parseInt(n);return e.push(r),e}catch(t){}for(var i=0;i<this.getNumLeafs();i++)this.getPageNum(i)==t&&e.push(i);return e}},{key:"getPageName",value:function(t){return"Page "+this.getPageNum(t)}},{key:"getNumLeafs",value:function(){return void 0!==this.br.numLeafs?this.br.numLeafs:this._getDataFlattened().length}},{key:"getPageWidth",value:function(t){return this.getPageProp(t,"width")}},{key:"getPageHeight",value:function(t){return this.getPageProp(t,"height")}},{key:"getPageURI",value:function(t,e,n){if(this.getPageProp(t,"viewable",!0))return this.getPageProp(t,"uri");var r=this.br.options.unviewablePageURI;return r.startsWith(".")?this.br.options.imagesBaseURL+r:r}},{key:"getPageSide",value:function(t){return this.getPageProp(t,"pageSide")||(t%2==0?"R":"L")}},{key:"getPageNum",value:function(t){var e=this.getPageProp(t,"pageNum");return void 0===e?"n".concat(t):e}},{key:"getPageProp",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return this._getDataProp(t,e,n)}},{key:"getSpreadIndices",value:function(t){return"rl"==this.pageProgression?"R"==this.getPageSide(t)?[t+1,t]:[t,t-1]:"L"==this.getPageSide(t)?[t,t+1]:[t-1,t]}},{key:"leafNumToIndex",value:function(t){var e=this._getDataFlattened().findIndex(function(e){return e.leafNum==t});return e>-1?e:t}},{key:"parsePageString",value:function(t){var e,n=/^leaf(\d+)/.exec(t);return n?null===(e=this.leafNumToIndex(parseInt(n[1],10)))&&(e=void 0):e=this.getPageIndex(t),e}},{key:"getPage",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getNumLeafs();if(e||!(t<0||t>=n))return t<0&&t>=-n&&(t+=n),new R(this,t%=n)}},{key:"pagesIterator",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.start,r=void 0===n?0:n,i=e.end,o=void 0===i?1/0:i,a=e.combineConsecutiveUnviewables,s=void 0!==a&&a;return _().m(function e(){var n,i;return _().w(function(e){for(;;)switch(e.n){case 0:r=Math.max(0,r),o=Math.min(o,t.getNumLeafs()),n=r;case 1:if(!(n<o)){e.n=4;break}if(i=t.getPage(n),!s||!i.isConsecutiveUnviewable){e.n=2;break}return e.a(3,3);case 2:return e.n=3,i;case 3:n++,e.n=1;break;case 4:return e.a(2)}},e)})()}},{key:"_getDataFlattened",value:function(){if(this._getDataFlattenedCached&&this._getDataFlattenedCached[1]===this.br.data.length)return this._getDataFlattenedCached[0];var t=null,e=null,n=0,r=this.br.data.flatMap(function(r){return r.map(function(i){return i.pageSide||(i.pageSide=null===t?2===r.length?"L":"R":"L"===t?"R":"L"),t=i.pageSide,!1===i.viewable?i.unviewablesStart=null===e?e=n:e:e=null,n++,i})});return this._getDataFlattenedCached=[r,this.br.data.length],r}},{key:"_getDataProp",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this._getDataFlattened();return isNaN(t)||t<0||t>=r.length||void 0===r[t][e]?n:r[t][e]}}])}(),R=function(){function t(e,n){E(this,t);var r=e._getDataProp(n,"ppi",e.ppi);this.ppi=Math.max(r<10?e.ppi:r,10),this.book=e,this.index=n,this.width=e.getPageWidth(n),this.widthInches=this.width/this.ppi,this.height=e.getPageHeight(n),this.heightInches=this.height/this.ppi,this.pageSide=e.getPageSide(n),this.leafNum=e._getDataProp(n,"leafNum",this.index),this.isViewable=e._getDataProp(n,"viewable",!0),this.unviewablesStart=e._getDataProp(n,"unviewablesStart")||null,this.isConsecutiveUnviewable=!this.isViewable&&this.unviewablesStart!=this.index,this._rawData=this.book._getDataFlattened()[this.index]}return C(t,[{key:"makeViewable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.isViewable!=t)if(t){this._rawData.viewable=!0,delete this._rawData.unviewablesStart;var e,n=k(this.book.pagesIterator({start:this.index+1}));try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r.isViewable)break;r._rawData.unviewablesStart=this.index+1}}catch(t){n.e(t)}finally{n.f()}}else{this._rawData.viewable=!1,this._rawData.unviewablesStart=this.prev&&!this.prev.isViewable?this.prev.unviewablesStart:this.index;var i,o=k(this.book.pagesIterator({start:this.index+1}));try{for(o.s();!(i=o.n()).done;){var a=i.value;if(!a.isViewable)break;a._rawData.unviewablesStart=this._rawData.unviewablesStart}}catch(t){o.e(t)}finally{o.f()}}}},{key:"prev",get:function(){return this.findPrev()}},{key:"next",get:function(){return this.findNext()}},{key:"left",get:function(){return"lr"===this.book.pageProgression?this.prev:this.next}},{key:"right",get:function(){return"lr"===this.book.pageProgression?this.next:this.prev}},{key:"spread",get:function(){return{left:"L"===this.pageSide?this:this.left,right:"R"===this.pageSide?this:this.right}}},{key:"goLeft",value:function(t){var e="lr"===this.book.pageProgression?this.index-t:this.index+t;return this.book.getPage(e)}},{key:"goRight",value:function(t){var e="lr"===this.book.pageProgression?this.index+t:this.index-t;return this.book.getPage(e)}},{key:"getURI",value:function(t,e){return this.book.getPageURI(this.index,t,e)}},{key:"getPageNum",value:function(){return this.book.getPageNum(this.index)}},{key:"getURISrcSet",value:function(t){for(var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.book.reduceSet,i=r.floor(t),o=[],a=r.decr(i);a>=1;a=r.decr(a))o.push(a);return o.map(function(t){return"".concat(e.getURI(t,n)," ").concat(i/t,"x")}).join(", ")}},{key:"findNext",value:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).combineConsecutiveUnviewables,e=void 0!==t&&t;return this.book.pagesIterator({start:this.index+1,combineConsecutiveUnviewables:e}).next().value}},{key:"findPrev",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).combineConsecutiveUnviewables,n=void 0!==e&&e;if(0!=this.index){if(n){if(this.isConsecutiveUnviewable)return this.book.getPage(this.unviewablesStart);var r=new t(this.book,this.index-1);return r.isViewable?r:r.findPrev({combineConsecutiveUnviewables:n})}return new t(this.book,this.index-1)}}},{key:"findLeft",value:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).combineConsecutiveUnviewables,e=void 0!==t&&t;return"lr"===this.book.pageProgression?this.findPrev({combineConsecutiveUnviewables:e}):this.findNext({combineConsecutiveUnviewables:e})}},{key:"findRight",value:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).combineConsecutiveUnviewables,e=void 0!==t&&t;return"lr"===this.book.pageProgression?this.findNext({combineConsecutiveUnviewables:e}):this.findPrev({combineConsecutiveUnviewables:e})}}])}(),A=(r(8125),r(4554),r(4731),r(479),r(2811),r(3851),r(888),r(9696)),I=r(420),D=r(8900),L=(r(5914),r(2617)),$=r(7583);function N(t){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},N(t)}function F(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var u=r&&r.prototype instanceof s?r:s,c=Object.create(u.prototype);return U(c,"_invoke",function(n,r,i){var o,s,u,c=0,l=i||[],f=!1,d={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return o=e,s=0,u=t,d.n=n,a}};function p(n,r){for(s=n,u=r,e=0;!f&&c&&!i&&e<l.length;e++){var i,o=l[e],p=d.p,h=o[2];n>3?(i=h===r)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=t):o[0]<=p&&((i=n<2&&p<o[1])?(s=0,d.v=r,d.n=o[1]):p<h&&(i=n<3||o[0]>r||r>h)&&(o[4]=n,o[5]=r,d.n=h,s=0))}if(i||n>1)return a;throw f=!0,r}return function(i,l,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&p(l,h),s=l,u=h;(e=s<2?t:u)||!f;){o||(s?s<3?(s>1&&(d.n=-1),p(s,u)):d.n=u:d.v=u);try{if(c=2,o){if(s||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,s<2&&(s=0)}else 1===s&&(e=o.return)&&e.call(o),s<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=t}else if((e=(f=d.n<0)?u:n.call(r,d))!==a)break}catch(e){o=t,s=1,u=e}finally{c=1}}return{value:e,done:f}}}(n,i,o),!0),c}var a={};function s(){}function u(){}function c(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(U(e={},r,function(){return this}),e),f=c.prototype=s.prototype=Object.create(l);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,U(t,i,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=c,U(f,"constructor",c),U(c,"constructor",u),u.displayName="GeneratorFunction",U(c,i,"GeneratorFunction"),U(f),U(f,i,"Generator"),U(f,r,function(){return this}),U(f,"toString",function(){return"[object Generator]"}),(F=function(){return{w:o,m:d}})()}function U(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}U=function(t,e,n,r){function o(e,n){U(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},U(t,e,n,r)}function B(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function z(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(t){B(o,r,i,a,s,"next",t)}function s(t){B(o,r,i,a,s,"throw",t)}a(void 0)})}}function W(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function H(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,q(r.key),r)}}function V(t,e,n){return e&&H(t.prototype,e),n&&H(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function G(t,e,n){return(e=q(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function q(t){var e=function(t){if("object"!=N(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=N(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==N(e)?e:e+""}var X=function(){return V(function e(n){var r=this;W(this,e),G(this,"scaleCenter",{x:.5,y:.5}),G(this,"_preventEvent",function(t){return t.preventDefault(),!1}),G(this,"_pinchStart",z(F().m(function e(){var n,i;return F().w(function(e){for(;;)switch(e.n){case 0:if(!r.pinching){e.n=1;break}return e.a(2);case 1:if(!(0,$.un)()){e.n=3;break}return e.n=2,(0,t.sleep)(0);case 2:if(!(r.touchesMonitor.touches<2)){e.n=3;break}return e.a(2);case 3:r.pinching=!0,r.oldScale=1,r.mode.$visibleWorld.classList.add("BRsmooth-zooming"),r.mode.$visibleWorld.style.willChange="transform",r.mode.autoFit="none",r.detachCtrlZoom(),null===(n=(i=r.mode).detachScrollListeners)||void 0===n||n.call(i),r.interact.gesturable({listeners:{start:r._pinchStart,move:r._pinchMove,end:r._pinchEnd}});case 4:return e.a(2)}},e)}))),G(this,"_pinchMove",function(){var t=z(F().m(function t(e){return F().w(function(t){for(;;)switch(t.n){case 0:if(r.pinching){t.n=1;break}return t.a(2);case 1:r.lastEvent={scale:e.scale,clientX:e.clientX,clientY:e.clientY},r.pinchMoveFrame||(r.pinchMoveFrame=r.bufferFn(r._drawPinchZoomFrame));case 2:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}()),G(this,"_pinchEnd",z(F().m(function t(){var e,n;return F().w(function(t){for(;;)switch(t.n){case 0:if(r.pinching){t.n=1;break}return t.a(2);case 1:return r.pinching=!1,r.interact.gesturable({listeners:{start:r._pinchStart,end:r._pinchEnd}}),t.n=2,r.pinchMoveFramePromise;case 2:r.scaleCenter={x:.5,y:.5},r.oldScale=1,r.mode.$visibleWorld.classList.remove("BRsmooth-zooming"),r.mode.$visibleWorld.style.willChange="auto",r.attachCtrlZoom(),null===(e=(n=r.mode).attachScrollListeners)||void 0===e||e.call(n);case 3:return t.a(2)}},t)}))),G(this,"_drawPinchZoomFrame",z(F().m(function t(){var e,n;return F().w(function(t){for(;;)switch(t.n){case 0:if(r.pinching){t.n=1;break}return r.pinchMoveFrame=null,t.a(2);case 1:if(r.mode.$container.style.overflow="hidden",r.pinchMoveFramePromiseRes=null,r.pinchMoveFramePromise=new Promise(function(t){return r.pinchMoveFramePromiseRes=t}),r.updateScaleCenter({clientX:r.lastEvent.clientX,clientY:r.lastEvent.clientY}),e=r.mode.scale,n=e*r.lastEvent.scale/r.oldScale,e==n){t.n=2;break}return r.mode.scale=n,t.n=2,r.pinchMoveFramePromise;case 2:r.mode.$container.style.overflow="auto",r.oldScale=r.lastEvent.scale,r.pinchMoveFrame=null;case 3:return t.a(2)}},t)}))),G(this,"_dragMove",function(){var t=z(F().m(function t(e){return F().w(function(t){for(;;)switch(t.n){case 0:if(!r.pinching){t.n=1;break}return t.n=1,r._pinchEnd();case 1:r.mode.$container.scrollTop-=e.dy,r.mode.$container.scrollLeft-=e.dx;case 2:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}()),G(this,"_handleCtrlWheel",function(t){if(t.ctrlKey){t.preventDefault();var e=/Mac/i.test(navigator.platform)?.045:.03;r.updateScaleCenter(t),r.mode.autoFit="none",r.mode.scale*=1-Math.sign(t.deltaY)*e}}),this.mode=n,this.pinching=!1,this.pinchMoveFrame=null,this.pinchMoveFramePromise=Promise.resolve(),this.oldScale=1,this.lastEvent=null,this.attached=!1,this.bufferFn=window.requestAnimationFrame.bind(window)},[{key:"attach",value:function(){this.attached||(this.attachCtrlZoom(),this.mode.$container.addEventListener("gesturestart",this._pinchStart),this.mode.$container.addEventListener("gesturechange",this._preventEvent),this.mode.$container.addEventListener("gestureend",this._pinchEnd),(0,$.un)()&&(this.touchesMonitor=new Y(this.mode.$container),this.touchesMonitor.attach()),this.mode.$container.style.touchAction="pan-x pan-y",this.interact=L(this.mode.$container),this.interact.gesturable({listeners:{start:this._pinchStart,end:this._pinchEnd}}),(0,$.ij)()&&(this.mode.$container.style.touchAction="none",this.interact.draggable({inertia:{resistance:2,minSpeed:100,allowResume:!0},listeners:{move:this._dragMove}})),this.attached=!0)}},{key:"detach",value:function(){var t,e;this.detachCtrlZoom(),this.mode.$container.removeEventListener("gesturestart",this._pinchStart),this.mode.$container.removeEventListener("gesturechange",this._preventEvent),this.mode.$container.removeEventListener("gestureend",this._pinchEnd),null===(t=this.touchesMonitor)||void 0===t||null===(e=t.detach)||void 0===e||e.call(t),this.interact.unset(),L.removeDocument(document),this.attached=!1}},{key:"attachCtrlZoom",value:function(){window.addEventListener("wheel",this._handleCtrlWheel,{passive:!1})}},{key:"detachCtrlZoom",value:function(){window.removeEventListener("wheel",this._handleCtrlWheel)}},{key:"updateScaleCenter",value:function(t){var e=t.clientX,n=t.clientY,r=this.mode.htmlDimensionsCacher.boundingClientRect;this.scaleCenter={x:(e-r.left)/this.mode.htmlDimensionsCacher.clientWidth,y:(n-r.top)/this.mode.htmlDimensionsCacher.clientHeight}}},{key:"updateViewportOnZoom",value:function(t,e){var n,r=this.mode.$container,i=r.scrollTop,o=r.scrollLeft,a=this.mode.htmlDimensionsCacher.clientWidth,s=this.mode.htmlDimensionsCacher.clientHeight,u=t/e,c=this.scaleCenter.x,l=this.scaleCenter.y,f=u*(o+c*a),d=u*(i+l*s);r.scrollTop=d-l*s,r.scrollLeft=f-c*a,null===(n=this.pinchMoveFramePromiseRes)||void 0===n||n.call(this)}}])}(),Y=function(){return V(function t(e){var n=this;W(this,t),G(this,"_updateTouchCount",function(t){n.touches=t.touches.length}),this.container=e,this.touches=0},[{key:"attach",value:function(){this.container.addEventListener("touchstart",this._updateTouchCount),this.container.addEventListener("touchend",this._updateTouchCount)}},{key:"detach",value:function(){this.container.removeEventListener("touchstart",this._updateTouchCount),this.container.removeEventListener("touchend",this._updateTouchCount)}}])}();function Z(t){return Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Z(t)}function K(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Q(r.key),r)}}function J(t,e,n){return(e=Q(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Q(t){var e=function(t){if("object"!=Z(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Z(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Z(e)?e:e+""}var tt=function(){return e=function e(n){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),J(this,"clientWidth",100),J(this,"clientHeight",100),J(this,"boundingClientRect",{top:0,left:0}),J(this,"updateClientSizes",function(){var t=r.element.getBoundingClientRect();r.clientWidth=r.element.clientWidth,r.clientHeight=r.element.clientHeight,r.boundingClientRect.top=t.top,r.boundingClientRect.left=t.left}),J(this,"debouncedUpdateClientSizes",(0,t.debounce)(this.updateClientSizes,150,!1)),this.element=n},n=[{key:"attachResizeListener",value:function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).addEventListener("resize",this.debouncedUpdateClientSizes)}},{key:"detachResizeListener",value:function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).removeEventListener("resize",this.debouncedUpdateClientSizes)}}],n&&K(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n}();function et(t){return et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},et(t)}function nt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,rt(r.key),r)}}function rt(t){var e=function(t){if("object"!=et(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=et(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==et(e)?e:e+""}var it=function(){return t=function t(e,n){var r,i,o,a=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),r=this,o=function(){a.element.classList.add(a.className),clearTimeout(a.timeout),a.timeout=setTimeout(function(){a.element.classList.remove(a.className)},600)},(i=rt(i="onScroll"))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,this.element=e,this.className=n,this.timeout=null},(e=[{key:"attach",value:function(){this.element.addEventListener("scroll",this.onScroll)}},{key:"detach",value:function(){this.element.removeEventListener("scroll",this.onScroll)}}])&&nt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();function ot(t){return ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ot(t)}function at(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ct(r.key),r)}}function st(t,e,n){return e&&at(t.prototype,e),n&&at(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function ut(t,e,n){return(e=ct(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ct(t){var e=function(t){if("object"!=ot(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=ot(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ot(e)?e:e+""}var lt,ft=st(function e(n){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),ut(this,"screenDPI",(0,t.calcScreenDPI)()),ut(this,"worldUnitsToRenderedPixels",function(t){return t*r.screenDPI}),ut(this,"renderedPixelsToWorldUnits",function(t){return t/r.screenDPI}),ut(this,"renderedPixelsToVisiblePixels",function(t){return t*r.mode.scale}),ut(this,"visiblePixelsToRenderedPixels",function(t){return t/r.mode.scale}),ut(this,"worldUnitsToVisiblePixels",function(t){return r.renderedPixelsToVisiblePixels(r.worldUnitsToRenderedPixels(t))}),ut(this,"visiblePixelsToWorldUnits",function(t){return r.renderedPixelsToWorldUnits(r.visiblePixelsToRenderedPixels(t))}),this.mode=n});function dt(t){return dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dt(t)}function pt(t){return function(t){if(Array.isArray(t))return kt(t)}(t)||Ot(t)||Pt(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ht(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,_t(r.key),r)}}function vt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(vt=function(){return!!t})()}function gt(t,e){return gt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},gt(t,e)}function mt(){mt=function(){return t};var t={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(t,e){["method","field"].forEach(function(n){e.forEach(function(e){e.kind===n&&"own"===e.placement&&this.defineClassElement(t,e)},this)},this)},initializeClassElements:function(t,e){var n=t.prototype;["method","field"].forEach(function(r){e.forEach(function(e){var i=e.placement;if(e.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?t:n;this.defineClassElement(o,e)}},this)},this)},defineClassElement:function(t,e){var n=e.descriptor;if("field"===e.kind){var r=e.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(t)}}Object.defineProperty(t,e.key,n)},decorateClass:function(t,e){var n=[],r=[],i={static:[],prototype:[],own:[]};if(t.forEach(function(t){this.addElementPlacement(t,i)},this),t.forEach(function(t){if(!wt(t))return n.push(t);var e=this.decorateElement(t,i);n.push(e.element),n.push.apply(n,e.extras),r.push.apply(r,e.finishers)},this),!e)return{elements:n,finishers:r};var o=this.decorateConstructor(n,e);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(t,e,n){var r=e[t.placement];if(!n&&-1!==r.indexOf(t.key))throw new TypeError("Duplicated element ("+t.key+")");r.push(t.key)},decorateElement:function(t,e){for(var n=[],r=[],i=t.decorators,o=i.length-1;o>=0;o--){var a=e[t.placement];a.splice(a.indexOf(t.key),1);var s=this.fromElementDescriptor(t),u=this.toElementFinisherExtras((0,i[o])(s)||s);t=u.element,this.addElementPlacement(t,e),u.finisher&&r.push(u.finisher);var c=u.extras;if(c){for(var l=0;l<c.length;l++)this.addElementPlacement(c[l],e);n.push.apply(n,c)}}return{element:t,finishers:r,extras:n}},decorateConstructor:function(t,e){for(var n=[],r=e.length-1;r>=0;r--){var i=this.fromClassDescriptor(t),o=this.toClassDescriptor((0,e[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){t=o.elements;for(var a=0;a<t.length-1;a++)for(var s=a+1;s<t.length;s++)if(t[a].key===t[s].key&&t[a].placement===t[s].placement)throw new TypeError("Duplicated element ("+t[a].key+")")}}return{elements:t,finishers:n}},fromElementDescriptor:function(t){var e={kind:t.kind,key:t.key,placement:t.placement,descriptor:t.descriptor};return Object.defineProperty(e,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===t.kind&&(e.initializer=t.initializer),e},toElementDescriptors:function(t){if(void 0!==t)return(e=t,function(t){if(Array.isArray(t))return t}(e)||Ot(e)||Pt(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map(function(t){var e=this.toElementDescriptor(t);return this.disallowProperty(t,"finisher","An element descriptor"),this.disallowProperty(t,"extras","An element descriptor"),e},this);var e},toElementDescriptor:function(t){var e=t.kind+"";if("method"!==e&&"field"!==e)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+e+'"');var n=_t(t.key),r=t.placement+"";if("static"!==r&&"prototype"!==r&&"own"!==r)throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+r+'"');var i=t.descriptor;this.disallowProperty(t,"elements","An element descriptor");var o={kind:e,key:n,placement:r,descriptor:Object.assign({},i)};return"field"!==e?this.disallowProperty(t,"initializer","A method descriptor"):(this.disallowProperty(i,"get","The property descriptor of a field descriptor"),this.disallowProperty(i,"set","The property descriptor of a field descriptor"),this.disallowProperty(i,"value","The property descriptor of a field descriptor"),o.initializer=t.initializer),o},toElementFinisherExtras:function(t){return{element:this.toElementDescriptor(t),finisher:St(t,"finisher"),extras:this.toElementDescriptors(t.extras)}},fromClassDescriptor:function(t){var e={kind:"class",elements:t.map(this.fromElementDescriptor,this)};return Object.defineProperty(e,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),e},toClassDescriptor:function(t){var e=t.kind+"";if("class"!==e)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+e+'"');this.disallowProperty(t,"key","A class descriptor"),this.disallowProperty(t,"placement","A class descriptor"),this.disallowProperty(t,"descriptor","A class descriptor"),this.disallowProperty(t,"initializer","A class descriptor"),this.disallowProperty(t,"extras","A class descriptor");var n=St(t,"finisher");return{elements:this.toElementDescriptors(t.elements),finisher:n}},runClassFinishers:function(t,e){for(var n=0;n<e.length;n++){var r=(0,e[n])(t);if(void 0!==r){if("function"!=typeof r)throw new TypeError("Finishers must return a constructor.");t=r}}return t},disallowProperty:function(t,e,n){if(void 0!==t[e])throw new TypeError(n+" can't have a ."+e+" property.")}};return t}function yt(t){var e,n=_t(t.key);"method"===t.kind?e={value:t.value,writable:!0,configurable:!0,enumerable:!1}:"get"===t.kind?e={get:t.value,configurable:!0,enumerable:!1}:"set"===t.kind?e={set:t.value,configurable:!0,enumerable:!1}:"field"===t.kind&&(e={configurable:!0,writable:!0,enumerable:!0});var r={kind:"field"===t.kind?"field":"method",key:n,placement:t.static?"static":"field"===t.kind?"own":"prototype",descriptor:e};return t.decorators&&(r.decorators=t.decorators),"field"===t.kind&&(r.initializer=t.value),r}function bt(t,e){void 0!==t.descriptor.get?e.descriptor.get=t.descriptor.get:e.descriptor.set=t.descriptor.set}function wt(t){return t.decorators&&t.decorators.length}function xt(t){return void 0!==t&&!(void 0===t.value&&void 0===t.writable)}function St(t,e){var n=t[e];if(void 0!==n&&"function"!=typeof n)throw new TypeError("Expected '"+e+"' to be a function");return n}function _t(t){var e=function(t){if("object"!=dt(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=dt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==dt(e)?e:e+""}function Pt(t,e){if(t){if("string"==typeof t)return kt(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kt(t,e):void 0}}function kt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Ot(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Et(t,e,n,r){var i=Tt(Ct(1&r?t.prototype:t),e,n);return 2&r&&"function"==typeof i?function(t){return i.apply(n,t)}:i}function Tt(){return Tt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=Ct(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},Tt.apply(null,arguments)}function Ct(t){return Ct=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ct(t)}var jt,Mt,Rt,At,It,Dt=(jt=[(0,A.EM)("br-mode-1up")],Mt=I.WF,Rt=mt(),At=function(e,n){var r=function(t){function n(t,r){var i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),i=function(t,e,n){return e=Ct(e),function(t,e){if(e&&("object"==dt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,vt()?Reflect.construct(e,n||[],Ct(t).constructor):e.apply(t,n))}(this,n),e(i),i.book=t,i.br=r,i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&gt(t,e)}(n,t),r=n,i&&ht(r.prototype,i),o&&ht(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,o}(n);return{F:r,d:[{kind:"field",key:"br",value:void 0},{kind:"field",decorators:[(0,A.MZ)({type:Object})],key:"book",value:void 0},{kind:"field",decorators:[(0,A.MZ)({type:Array})],key:"pages",value:function(){return[]}},{kind:"field",decorators:[(0,A.MZ)({type:Object})],key:"pageTops",value:function(){return{}}},{kind:"field",key:"coordSpace",value:function(){return new ft(this)}},{kind:"field",decorators:[(0,A.MZ)({type:Number})],key:"scale",value:function(){return 1}},{kind:"field",decorators:[(0,A.MZ)({type:Object})],key:"visibleRegion",value:function(){return{top:0,left:0,width:100,height:100}}},{kind:"field",decorators:[(0,A.MZ)({type:Array,hasChanged:t.arrChanged})],key:"visiblePages",value:function(){return[]}},{kind:"field",decorators:[(0,A.MZ)({type:Array})],key:"renderedPages",value:function(){return[]}},{kind:"field",key:"pageContainerCache",value:function(){return{}}},{kind:"field",decorators:[(0,A.P)(".br-mode-1up__world")],key:"$world",value:void 0},{kind:"field",key:"worldDimensions",value:function(){return{width:100,height:100}}},{kind:"get",key:"worldStyle",value:function(){var t=this.coordSpace.worldUnitsToRenderedPixels;return{width:t(this.worldDimensions.width)+"px",height:t(this.worldDimensions.height)+"px"}}},{kind:"get",key:"$container",value:function(){return this}},{kind:"field",decorators:[(0,A.P)(".br-mode-1up__visible-world")],key:"$visibleWorld",value:void 0},{kind:"field",key:"htmlDimensionsCacher",value:function(){return new tt(this)}},{kind:"field",key:"smoothZoomer",value:function(){return new X(this)}},{kind:"field",key:"scrollClassAdder",value:function(){return new it(this,"BRscrolling-active")}},{kind:"field",key:"SPACING_IN",value:function(){return.2}},{kind:"field",key:"ZOOM_FACTOR",value:function(){return 1.1}},{kind:"method",key:"jumpToIndex",value:function(t){var e=this,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).smooth,r=void 0!==n&&n;r&&(this.style.scrollBehavior="smooth"),this.scrollTop=this.coordSpace.worldUnitsToVisiblePixels(this.pageTops[t]-this.SPACING_IN/2),r&&setTimeout(function(){return e.style.scrollBehavior=""},100)}},{kind:"method",key:"zoomIn",value:function(){this.scale*=this.ZOOM_FACTOR}},{kind:"method",key:"zoomOut",value:function(){this.scale*=1/this.ZOOM_FACTOR}},{kind:"method",key:"firstUpdated",value:function(t){Et(r,"firstUpdated",this,3)([t]),this.htmlDimensionsCacher.updateClientSizes(),this.smoothZoomer.attach()}},{kind:"method",key:"initFirstRender",value:function(t){var e=this.book.getPage(t);this.scale=this.computeDefaultScale(e)}},{kind:"method",key:"updated",value:function(t){if(t.has("book")&&this.updatePages(),t.has("pages")&&(this.worldDimensions=this.computeWorldDimensions(),this.pageTops=this.computePageTops(this.pages,this.SPACING_IN)),t.has("visibleRegion")&&(this.visiblePages=this.computeVisiblePages()),t.has("visiblePages")&&(this.throttledUpdateRenderedPages(),this.visiblePages.length&&(this.br.displayedIndices=this.visiblePages.map(function(t){return t.index}),this.br.updateFirstIndex(this.br.displayedIndices[0]))),t.has("scale")){var e=t.get("scale");this.$visibleWorld.style.transform="scale(".concat(this.scale,")"),this.smoothZoomer.updateViewportOnZoom(this.scale,e),this.updateVisibleRegion(),this.$world.style.transform="scale(".concat(this.scale,")")}}},{kind:"method",key:"updatePages",value:function(){this.pages=(0,t.genToArray)(this.book.pagesIterator({combineConsecutiveUnviewables:!0}))}},{kind:"method",key:"connectedCallback",value:function(){Et(r,"connectedCallback",this,3)([]),this.htmlDimensionsCacher.attachResizeListener(),this.attachScrollListeners(),this.smoothZoomer.attach()}},{kind:"method",key:"disconnectedCallback",value:function(){this.htmlDimensionsCacher.detachResizeListener(),this.detachScrollListeners(),this.smoothZoomer.detach(),Et(r,"disconnectedCallback",this,3)([])}},{kind:"method",key:"createRenderRoot",value:function(){return this}},{kind:"method",key:"render",value:function(){var t,e,n=this;return(0,I.qy)(lt||(t=['\n <div class="br-mode-1up__world" style=','></div>\n <div class="br-mode-1up__visible-world">\n ',"\n </div>"],e||(e=t.slice(0)),lt=Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))),(0,D.W)(this.worldStyle),this.renderedPages.map(function(t){return n.renderPage(t)}))}},{kind:"field",key:"createPageContainer",value:function(){var t=this;return function(e){return t.pageContainerCache[e.index]||(t.pageContainerCache[e.index]=t.br._createPageContainer(e.index))}}},{kind:"field",key:"renderPage",value:function(){var t=this;return function(e){var n=t.coordSpace.worldUnitsToRenderedPixels,r=t.coordSpace.worldUnitsToVisiblePixels,i=t.coordSpace.visiblePixelsToWorldUnits(t.htmlDimensionsCacher.clientWidth),o=n(e.widthInches),a=n(e.heightInches),s=Math.max(t.SPACING_IN,(i-e.widthInches)/2),u=t.pageTops[e.index],c="translate(".concat(n(s),"px, ").concat(n(u),"px)"),l=t.createPageContainer(e).update({dimensions:{width:o,height:a,top:0,left:0},reduce:e.width/r(e.widthInches)}).$container[0];l.style.transform=c;var f=l.classList.contains("BRpage-visible");return l.classList.toggle("BRpage-visible",t.visiblePages.includes(e))&&!f&&t.br.trigger("pageVisible",{pageContainerEl:l}),l}}},{kind:"field",key:"updateVisibleRegion",value:function(){var t=this;return function(){var e=t.scrollTop,n=t.scrollLeft,r=t.htmlDimensionsCacher.clientWidth,i=t.htmlDimensionsCacher.clientHeight,o=t.coordSpace.visiblePixelsToWorldUnits;t.visibleRegion={top:o(e),height:o(i),left:o(n),width:o(r)}}}},{kind:"method",key:"computeRenderedPages",value:function(){var t,e;return[null===(t=this.visiblePages[0])||void 0===t?void 0:t.prev].concat(pt(this.visiblePages),[null===(e=this.visiblePages[this.visiblePages.length-1])||void 0===e?void 0:e.next]).filter(function(t){return t}).slice(0,10)}},{kind:"field",key:"throttledUpdateRenderedPages",value:function(){var e=this;return(0,t.throttle)(function(){e.renderedPages=e.computeRenderedPages(),e.requestUpdate()},100,null)}},{kind:"method",key:"computePageTops",value:function(t,e){var n,r={},i=e,o=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Pt(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(t);try{for(o.s();!(n=o.n()).done;){var a=n.value;r[a.index]=i,i+=a.heightInches+e}}catch(t){o.e(t)}finally{o.f()}return r}},{kind:"method",key:"computeDefaultScale",value:function(t){var e=this.coordSpace.renderedPixelsToWorldUnits(this.clientWidth);return Math.min(1,e/(t.widthInches+2*this.SPACING_IN))||1}},{kind:"method",key:"computeWorldDimensions",value:function(){return{width:Math.max.apply(Math,pt(this.pages.map(function(t){return t.widthInches})))+2*this.SPACING_IN,height:(0,t.sum)(this.pages.map(function(t){return t.heightInches}))+(this.pages.length+1)*this.SPACING_IN}}},{kind:"method",key:"computeVisiblePages",value:function(){var t=this;return this.pages.filter(function(e){var n=t.pageTops[e.index],r=n+e.heightInches,i=t.visibleRegion.top;return n<=i+t.visibleRegion.height&&r>=i})}},{kind:"field",key:"attachScrollListeners",value:function(){var t=this;return function(){t.addEventListener("scroll",t.updateVisibleRegion),t.scrollClassAdder.attach()}}},{kind:"field",key:"detachScrollListeners",value:function(){var t=this;return function(){t.removeEventListener("scroll",t.updateVisibleRegion),t.scrollClassAdder.detach()}}}]}}(function(t){Rt.initializeInstanceElements(t,It.elements)},Mt),It=Rt.decorateClass(function(t){for(var e=[],n=function(t){return"method"===t.kind&&t.key===o.key&&t.placement===o.placement},r=0;r<t.length;r++){var i,o=t[r];if("method"===o.kind&&(i=e.find(n)))if(xt(o.descriptor)||xt(i.descriptor)){if(wt(o)||wt(i))throw new ReferenceError("Duplicated methods ("+o.key+") can't be decorated.");i.descriptor=o.descriptor}else{if(wt(o)){if(wt(i))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+o.key+").");i.decorators=o.decorators}bt(o,i)}else e.push(o)}return e}(At.d.map(yt)),jt),Rt.initializeClassElements(At.F,It.elements),Rt.runClassFinishers(At.F,It.finishers)),Lt=r(1669);function $t(t){return $t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$t(t)}function Nt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ut(r.key),r)}}function Ft(t,e,n){return(e=Ut(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ut(t){var e=function(t){if("object"!=$t(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=$t(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==$t(e)?e:e+""}function Bt(t,e){return t.split(" ").map(function(t){return t+e}).join(" ")}function zt(t){var e,n;return void 0!==t.clientX?(e=t.clientX,n=t.clientY):void 0!==t.screenX?(e=t.screenX,n=t.screenY):void 0!==t.targetTouches?(e=t.targetTouches[0].pageX,n=t.targetTouches[0].pageY):void 0===t.originalEvent?console.error("don't understand x and y for "+t.type,t):void 0!==t.originalEvent.clientX?(e=t.originalEvent.clientX,n=t.originalEvent.clientY):void 0!==t.originalEvent.screenX?(e=t.originalEvent.screenX,n=t.originalEvent.screenY):void 0!==t.originalEvent.targetTouches&&(e=t.originalEvent.targetTouches[0].pageX,n=t.originalEvent.targetTouches[0].pageY),{left:e,top:n}}var Wt={dragSelector:">:first",acceptPropagatedEvent:!0,preventDefault:!0,dragstart:"mousedown touchstart",dragcontinue:"mousemove touchmove",dragend:"mouseup touchend",dragMinDistance:5,namespace:".ds",scrollWindow:!1},Ht=function(){return t=function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Ft(this,"_dragStartHandler",function(t){return!!n._shouldAbort()||!(t.which>1||!n.settings.acceptPropagatedEvent&&t.target!=n.handling_element[0])&&(n.lastCoord=n.firstCoord=zt(t),n.handling_element.on(n.settings.dragcontinue,n._dragContinueHandler),n.settings.dragend.split(" ").forEach(function(t){n.handling_element[0].addEventListener(t,n._dragEndHandler,!0)}),n.settings.preventDefault?(t.preventDefault(),!1):void 0)}),Ft(this,"_dragContinueHandler",function(t){if(n._shouldAbort())return!0;var e=zt(t),r=e.left-n.lastCoord.left,i=e.top-n.lastCoord.top,o=n.settings.scrollWindow?Lt(window):n.handling_element;return o.scrollLeft(o.scrollLeft()-r),o.scrollTop(o.scrollTop()-i),n.lastCoord=e,n.settings.preventDefault?(t.preventDefault(),!1):void 0}),Ft(this,"_dragEndHandler",function(t){if(n._shouldAbort())return!0;n.handling_element.off(n.settings.dragcontinue).off(n.settings.dragend),n.settings.dragend.split(" ").forEach(function(t){n.handling_element[0].removeEventListener(t,n._dragEndHandler,!0)});var e={left:Math.abs(n.lastCoord.left-n.firstCoord.left),top:Math.abs(n.lastCoord.top-n.firstCoord.top)},r=Math.max(e.left,e.top);return n.settings.preventDefault&&r>n.settings.dragMinDistance?(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),!1):void 0}),this.handling_element=Lt(e),this.settings=Lt.extend({},Wt,r||{}),this.firstCoord={left:0,top:0},this.lastCoord={left:0,top:0},this.settings.dragstart=Bt(this.settings.dragstart,this.settings.namespace),this.settings.dragcontinue=Bt(this.settings.dragcontinue,this.settings.namespace),this.handling_element.find(this.settings.dragSelector).on(this.settings.dragstart,this._dragStartHandler)},(e=[{key:"_shouldAbort",value:function(){return!!("ontouchstart"in window)||!!("msmaxtouchpoints"in window.navigator)}}])&&Nt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();function Vt(t){return Vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vt(t)}function Gt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Xt(r.key),r)}}function qt(t,e,n){return(e=Xt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Xt(t){var e=function(t){if("object"!=Vt(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Vt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Vt(e)?e:e+""}var Yt=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),qt(this,"br",void 0),qt(this,"book",void 0)},(e=[{key:"parsePageSpecifier",value:function(t){var e="rl"==this.book.pageProgression;switch(t){case"left":return e?this.parsePageSpecifier("next"):this.parsePageSpecifier("prev");case"right":return e?this.parsePageSpecifier("prev"):this.parsePageSpecifier("next");case"next":return this.br.firstIndex<this.book.getNumLeafs()-1?this.book.getPage(this.br.firstIndex+1):void 0;case"prev":return this.br.firstIndex>=1?this.book.getPage(this.br.firstIndex-1):void 0;default:return this.book.getPage(t)}}}])&&Gt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}(),Zt=r(1669);function Kt(t){return Kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kt(t)}function Jt(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var u=r&&r.prototype instanceof s?r:s,c=Object.create(u.prototype);return Qt(c,"_invoke",function(n,r,i){var o,s,u,c=0,l=i||[],f=!1,d={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return o=e,s=0,u=t,d.n=n,a}};function p(n,r){for(s=n,u=r,e=0;!f&&c&&!i&&e<l.length;e++){var i,o=l[e],p=d.p,h=o[2];n>3?(i=h===r)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=t):o[0]<=p&&((i=n<2&&p<o[1])?(s=0,d.v=r,d.n=o[1]):p<h&&(i=n<3||o[0]>r||r>h)&&(o[4]=n,o[5]=r,d.n=h,s=0))}if(i||n>1)return a;throw f=!0,r}return function(i,l,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&p(l,h),s=l,u=h;(e=s<2?t:u)||!f;){o||(s?s<3?(s>1&&(d.n=-1),p(s,u)):d.n=u:d.v=u);try{if(c=2,o){if(s||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,s<2&&(s=0)}else 1===s&&(e=o.return)&&e.call(o),s<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=t}else if((e=(f=d.n<0)?u:n.call(r,d))!==a)break}catch(e){o=t,s=1,u=e}finally{c=1}}return{value:e,done:f}}}(n,i,o),!0),c}var a={};function s(){}function u(){}function c(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(Qt(e={},r,function(){return this}),e),f=c.prototype=s.prototype=Object.create(l);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,Qt(t,i,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=c,Qt(f,"constructor",c),Qt(c,"constructor",u),u.displayName="GeneratorFunction",Qt(c,i,"GeneratorFunction"),Qt(f),Qt(f,i,"Generator"),Qt(f,r,function(){return this}),Qt(f,"toString",function(){return"[object Generator]"}),(Jt=function(){return{w:o,m:d}})()}function Qt(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}Qt=function(t,e,n,r){function o(e,n){Qt(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},Qt(t,e,n,r)}function te(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function ee(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(t){te(o,r,i,a,s,"next",t)}function s(t){te(o,r,i,a,s,"throw",t)}a(void 0)})}}function ne(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ae(r.key),r)}}function re(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(re=function(){return!!t})()}function ie(t){return ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ie(t)}function oe(t,e){return oe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},oe(t,e)}function ae(t){var e=function(t){if("object"!=Kt(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Kt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Kt(e)?e:e+""}var se,ue,ce,le,fe,de,pe,he,ve=function(t){function e(t,n){var r,i,o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r=function(t,e,n){return e=ie(e),function(t,e){if(e&&("object"==Kt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,re()?Reflect.construct(e,n||[],ie(t).constructor):e.apply(t,n))}(this,e),i=r,(o=ae(o="name"))in i?Object.defineProperty(i,o,{value:"1up",enumerable:!0,configurable:!0,writable:!0}):i[o]="1up",r.br=t,r.book=n,r.mode1UpLit=new Dt(n,t),r.$el=Zt(r.mode1UpLit).addClass("br-mode-1up__root BRmode1up"),r.everShown=!1,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&oe(t,e)}(e,t),n=e,r=[{key:"$brContainer",get:function(){return this.br.refs.$brContainer}},{key:"prepare",value:function(){var t=this,e=this.br.currentIndex();this.$brContainer.empty().css({overflow:"hidden"}).append(this.$el),setTimeout(ee(Jt().m(function n(){return Jt().w(function(n){for(;;)switch(n.n){case 0:if(t.everShown){n.n=2;break}return t.mode1UpLit.initFirstRender(e),t.everShown=!0,t.mode1UpLit.requestUpdate(),n.n=1,t.mode1UpLit.updateComplete;case 1:new Ht(t.mode1UpLit,{preventDefault:!0,dragSelector:".br-mode-1up__visible-world",dragstart:"mousedown",dragcontinue:"mousemove",dragend:"mouseup"});case 2:t.mode1UpLit.jumpToIndex(e),setTimeout(function(){t.mode1UpLit.updateVisibleRegion()});case 3:return n.a(2)}},n)}))),this.br.updateBrClasses()}},{key:"jumpToIndex",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(e.pageX,e.pageY,e.noAnimate),r=void 0!==n&&n,i=Math.abs(this.br.currentIndex()-t),o=!r&&i>0&&i<=4;this.mode1UpLit.jumpToIndex(t,{smooth:o})}},{key:"zoom",value:function(t){switch(t){case"in":this.mode1UpLit.zoomIn();break;case"out":this.mode1UpLit.zoomOut();break;default:console.error("Unsupported direction: ".concat(t))}}},{key:"resizePageView",value:function(){this.mode1UpLit.htmlDimensionsCacher.updateClientSizes(),this.mode1UpLit.requestUpdate()}}],r&&ne(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(Yt),ge=(r(1761),r(1669));function me(t){return me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},me(t)}function ye(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function be(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var u=r&&r.prototype instanceof s?r:s,c=Object.create(u.prototype);return we(c,"_invoke",function(n,r,i){var o,s,u,c=0,l=i||[],f=!1,d={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return o=e,s=0,u=t,d.n=n,a}};function p(n,r){for(s=n,u=r,e=0;!f&&c&&!i&&e<l.length;e++){var i,o=l[e],p=d.p,h=o[2];n>3?(i=h===r)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=t):o[0]<=p&&((i=n<2&&p<o[1])?(s=0,d.v=r,d.n=o[1]):p<h&&(i=n<3||o[0]>r||r>h)&&(o[4]=n,o[5]=r,d.n=h,s=0))}if(i||n>1)return a;throw f=!0,r}return function(i,l,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&p(l,h),s=l,u=h;(e=s<2?t:u)||!f;){o||(s?s<3?(s>1&&(d.n=-1),p(s,u)):d.n=u:d.v=u);try{if(c=2,o){if(s||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,s<2&&(s=0)}else 1===s&&(e=o.return)&&e.call(o),s<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=t}else if((e=(f=d.n<0)?u:n.call(r,d))!==a)break}catch(e){o=t,s=1,u=e}finally{c=1}}return{value:e,done:f}}}(n,i,o),!0),c}var a={};function s(){}function u(){}function c(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(we(e={},r,function(){return this}),e),f=c.prototype=s.prototype=Object.create(l);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,we(t,i,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=c,we(f,"constructor",c),we(c,"constructor",u),u.displayName="GeneratorFunction",we(c,i,"GeneratorFunction"),we(f),we(f,i,"Generator"),we(f,r,function(){return this}),we(f,"toString",function(){return"[object Generator]"}),(be=function(){return{w:o,m:d}})()}function we(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}we=function(t,e,n,r){function o(e,n){we(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},we(t,e,n,r)}function xe(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function Se(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(t){xe(o,r,i,a,s,"next",t)}function s(t){xe(o,r,i,a,s,"throw",t)}a(void 0)})}}function _e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,$e(r.key),r)}}function Pe(t,e,n){return e&&_e(t.prototype,e),n&&_e(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function ke(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Oe(t,e,n){return e=We(e),function(t,e){if(e&&("object"==me(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Ee()?Reflect.construct(e,n||[],We(t).constructor):e.apply(t,n))}function Ee(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Ee=function(){return!!t})()}function Te(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ce(t,e)}function Ce(t,e){return Ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ce(t,e)}function je(t,e,n,r){var i=Me();if(r)for(var o=0;o<r.length;o++)i=r[o](i);var a=e(function(t){i.initializeInstanceElements(t,s.elements)},n),s=i.decorateClass(function(t){for(var e=[],n=function(t){return"method"===t.kind&&t.key===o.key&&t.placement===o.placement},r=0;r<t.length;r++){var i,o=t[r];if("method"===o.kind&&(i=e.find(n)))if(De(o.descriptor)||De(i.descriptor)){if(Ie(o)||Ie(i))throw new ReferenceError("Duplicated methods ("+o.key+") can't be decorated.");i.descriptor=o.descriptor}else{if(Ie(o)){if(Ie(i))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+o.key+").");i.decorators=o.decorators}Ae(o,i)}else e.push(o)}return e}(a.d.map(Re)),t);return i.initializeClassElements(a.F,s.elements),i.runClassFinishers(a.F,s.finishers)}function Me(){Me=function(){return t};var t={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(t,e){["method","field"].forEach(function(n){e.forEach(function(e){e.kind===n&&"own"===e.placement&&this.defineClassElement(t,e)},this)},this)},initializeClassElements:function(t,e){var n=t.prototype;["method","field"].forEach(function(r){e.forEach(function(e){var i=e.placement;if(e.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?t:n;this.defineClassElement(o,e)}},this)},this)},defineClassElement:function(t,e){var n=e.descriptor;if("field"===e.kind){var r=e.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(t)}}Object.defineProperty(t,e.key,n)},decorateClass:function(t,e){var n=[],r=[],i={static:[],prototype:[],own:[]};if(t.forEach(function(t){this.addElementPlacement(t,i)},this),t.forEach(function(t){if(!Ie(t))return n.push(t);var e=this.decorateElement(t,i);n.push(e.element),n.push.apply(n,e.extras),r.push.apply(r,e.finishers)},this),!e)return{elements:n,finishers:r};var o=this.decorateConstructor(n,e);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(t,e,n){var r=e[t.placement];if(!n&&-1!==r.indexOf(t.key))throw new TypeError("Duplicated element ("+t.key+")");r.push(t.key)},decorateElement:function(t,e){for(var n=[],r=[],i=t.decorators,o=i.length-1;o>=0;o--){var a=e[t.placement];a.splice(a.indexOf(t.key),1);var s=this.fromElementDescriptor(t),u=this.toElementFinisherExtras((0,i[o])(s)||s);t=u.element,this.addElementPlacement(t,e),u.finisher&&r.push(u.finisher);var c=u.extras;if(c){for(var l=0;l<c.length;l++)this.addElementPlacement(c[l],e);n.push.apply(n,c)}}return{element:t,finishers:r,extras:n}},decorateConstructor:function(t,e){for(var n=[],r=e.length-1;r>=0;r--){var i=this.fromClassDescriptor(t),o=this.toClassDescriptor((0,e[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){t=o.elements;for(var a=0;a<t.length-1;a++)for(var s=a+1;s<t.length;s++)if(t[a].key===t[s].key&&t[a].placement===t[s].placement)throw new TypeError("Duplicated element ("+t[a].key+")")}}return{elements:t,finishers:n}},fromElementDescriptor:function(t){var e={kind:t.kind,key:t.key,placement:t.placement,descriptor:t.descriptor};return Object.defineProperty(e,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===t.kind&&(e.initializer=t.initializer),e},toElementDescriptors:function(t){if(void 0!==t)return(e=t,function(t){if(Array.isArray(t))return t}(e)||Ue(e)||Ne(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map(function(t){var e=this.toElementDescriptor(t);return this.disallowProperty(t,"finisher","An element descriptor"),this.disallowProperty(t,"extras","An element descriptor"),e},this);var e},toElementDescriptor:function(t){var e=t.kind+"";if("method"!==e&&"field"!==e)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+e+'"');var n=$e(t.key),r=t.placement+"";if("static"!==r&&"prototype"!==r&&"own"!==r)throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+r+'"');var i=t.descriptor;this.disallowProperty(t,"elements","An element descriptor");var o={kind:e,key:n,placement:r,descriptor:Object.assign({},i)};return"field"!==e?this.disallowProperty(t,"initializer","A method descriptor"):(this.disallowProperty(i,"get","The property descriptor of a field descriptor"),this.disallowProperty(i,"set","The property descriptor of a field descriptor"),this.disallowProperty(i,"value","The property descriptor of a field descriptor"),o.initializer=t.initializer),o},toElementFinisherExtras:function(t){return{element:this.toElementDescriptor(t),finisher:Le(t,"finisher"),extras:this.toElementDescriptors(t.extras)}},fromClassDescriptor:function(t){var e={kind:"class",elements:t.map(this.fromElementDescriptor,this)};return Object.defineProperty(e,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),e},toClassDescriptor:function(t){var e=t.kind+"";if("class"!==e)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+e+'"');this.disallowProperty(t,"key","A class descriptor"),this.disallowProperty(t,"placement","A class descriptor"),this.disallowProperty(t,"descriptor","A class descriptor"),this.disallowProperty(t,"initializer","A class descriptor"),this.disallowProperty(t,"extras","A class descriptor");var n=Le(t,"finisher");return{elements:this.toElementDescriptors(t.elements),finisher:n}},runClassFinishers:function(t,e){for(var n=0;n<e.length;n++){var r=(0,e[n])(t);if(void 0!==r){if("function"!=typeof r)throw new TypeError("Finishers must return a constructor.");t=r}}return t},disallowProperty:function(t,e,n){if(void 0!==t[e])throw new TypeError(n+" can't have a ."+e+" property.")}};return t}function Re(t){var e,n=$e(t.key);"method"===t.kind?e={value:t.value,writable:!0,configurable:!0,enumerable:!1}:"get"===t.kind?e={get:t.value,configurable:!0,enumerable:!1}:"set"===t.kind?e={set:t.value,configurable:!0,enumerable:!1}:"field"===t.kind&&(e={configurable:!0,writable:!0,enumerable:!0});var r={kind:"field"===t.kind?"field":"method",key:n,placement:t.static?"static":"field"===t.kind?"own":"prototype",descriptor:e};return t.decorators&&(r.decorators=t.decorators),"field"===t.kind&&(r.initializer=t.value),r}function Ae(t,e){void 0!==t.descriptor.get?e.descriptor.get=t.descriptor.get:e.descriptor.set=t.descriptor.set}function Ie(t){return t.decorators&&t.decorators.length}function De(t){return void 0!==t&&!(void 0===t.value&&void 0===t.writable)}function Le(t,e){var n=t[e];if(void 0!==n&&"function"!=typeof n)throw new TypeError("Expected '"+e+"' to be a function");return n}function $e(t){var e=function(t){if("object"!=me(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=me(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==me(e)?e:e+""}function Ne(t,e){if(t){if("string"==typeof t)return Fe(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fe(t,e):void 0}}function Fe(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Ue(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Be(t,e,n,r){var i=ze(We(1&r?t.prototype:t),e,n);return 2&r&&"function"==typeof i?function(t){return i.apply(n,t)}:i}function ze(){return ze="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=We(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},ze.apply(null,arguments)}function We(t){return We=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},We(t)}var He=je([(0,A.EM)("br-mode-2up")],function(e,n){var r,i,o=function(t){function n(t,r){var i;return ke(this,n),i=Oe(this,n),e(i),i.book=t,i.br=r,i}return Te(n,t),Pe(n)}(n);return{F:o,d:[{kind:"field",key:"br",value:void 0},{kind:"field",decorators:[(0,A.MZ)({type:Object})],key:"book",value:void 0},{kind:"field",key:"coordSpace",value:function(){return new ft(this)}},{kind:"field",decorators:[(0,A.MZ)({type:Number})],key:"scale",value:function(){return 1}},{kind:"field",key:"initialScale",value:function(){return 1}},{kind:"field",decorators:[(0,A.MZ)({type:String})],key:"autoFit",value:function(){return"auto"}},{kind:"field",key:"flipSpeed",value:function(){return 400}},{kind:"field",decorators:[(0,A.P)(".br-mode-2up__leafs--flipping")],key:"$flippingEdges",value:void 0},{kind:"field",decorators:[(0,A.MZ)({type:Array,hasChanged:t.arrChanged})],key:"visiblePages",value:function(){return[]}},{kind:"get",key:"pageLeft",value:function(){return this.visiblePages.find(function(t){return"L"==t.pageSide})}},{kind:"get",key:"pageRight",value:function(){return this.visiblePages.find(function(t){return"R"==t.pageSide})}},{kind:"field",decorators:[(0,A.MZ)({type:Array})],key:"renderedPages",value:function(){return[]}},{kind:"field",key:"pageContainerCache",value:function(){return{}}},{kind:"field",key:"activeFlip",value:function(){return null}},{kind:"field",key:"_leftCoverWidth",value:function(){return 0}},{kind:"get",key:"$container",value:function(){return this}},{kind:"get",key:"$visibleWorld",value:function(){return this.$book}},{kind:"field",decorators:[(0,A.P)(".br-mode-2up__book")],key:"$book",value:void 0},{kind:"get",key:"positions",value:function(){return this.computePositions(this.pageLeft,this.pageRight)}},{kind:"method",key:"computePageHeight",value:function(t){return this.book.getMedianPageSizeInches().height}},{kind:"method",key:"computePageWidth",value:function(t){return t.widthInches*this.computePageHeight(t)/t.heightInches}},{kind:"method",key:"computePositions",value:function(t,e){var n,r,i,o,a=this.computePageWidth.bind(this),s=this.book.getNumLeafs(),u=this.activeFlip?Math.ceil(this.activeFlip.pagesFlippingCount/2)*this.PAGE_THICKNESS_IN:0,c="lr"==this.book.pageProgression?null!==(n=null==t?void 0:t.index)&&void 0!==n?n:0:t?s-t.index:0,l=this._leftCoverWidth+c*this.PAGE_THICKNESS_IN,f=l,d=a(t||e.right),p=l-d,h=p,v="left"!=(null===(r=this.activeFlip)||void 0===r?void 0:r.direction)?0:u,g=Math.ceil(c/2)*this.PAGE_THICKNESS_IN-v,m=v+g,y=h-v,b=y-g,w=l,x=e?a(e):0,S=w+x,_="lr"==this.book.pageProgression?e?s-e.index:0:null!==(i=null==e?void 0:e.index)&&void 0!==i?i:0,P=S,k="right"!=(null===(o=this.activeFlip)||void 0===o?void 0:o.direction)?0:u,O=P+k,E=Math.ceil(_/2)*this.PAGE_THICKNESS_IN-k,T=P+E+k;return{leafEdgesLeftStart:b,leafEdgesLeftMainWidth:g,leafEdgesLeftMovingStart:y,leafEdgesLeftMovingWidth:v,leafEdgesLeftEnd:h,leafEdgesLeftFullWidth:m,pageLeftStart:p,pageLeftWidth:d,pageLeftEnd:f,gutter:l,pageRightStart:w,pageRightWidth:x,pageRightEnd:S,leafEdgesRightStart:P,leafEdgesRightMovingWidth:k,leafEdgesRightMainStart:O,leafEdgesRightMainWidth:E,leafEdgesRightEnd:T,leafEdgesRightFullWidth:k+E,spreadWidth:S-p,bookWidth:T-b}}},{kind:"field",key:"htmlDimensionsCacher",value:function(){return new tt(this)}},{kind:"field",key:"smoothZoomer",value:function(){return new X(this)}},{kind:"field",key:"ZOOM_FACTOR",value:function(){return 1.1}},{kind:"field",key:"PAGE_THICKNESS_IN",value:function(){return.002}},{kind:"method",key:"jumpToIndex",value:(i=Se(be().m(function t(e){var n,r,i=arguments;return be().w(function(t){for(;;)switch(t.n){case 0:return n=(i.length>1&&void 0!==i[1]?i[1]:{}).smooth,r=void 0===n||n,t.n=1,this._flipAnimation(e,{animate:r});case 1:return t.a(2)}},t,this)})),function(t){return i.apply(this,arguments)})},{kind:"method",key:"zoomIn",value:function(){this.scale*=this.ZOOM_FACTOR}},{kind:"method",key:"zoomOut",value:function(){this.scale*=1/this.ZOOM_FACTOR}},{kind:"method",key:"firstUpdated",value:function(t){Be(o,"firstUpdated",this,3)([t]),this.htmlDimensionsCacher.updateClientSizes(),this.smoothZoomer.attach()}},{kind:"method",key:"connectedCallback",value:function(){Be(o,"connectedCallback",this,3)([]),this.htmlDimensionsCacher.attachResizeListener(),this.smoothZoomer.attach()}},{kind:"method",key:"disconnectedCallback",value:function(){this.htmlDimensionsCacher.detachResizeListener(),this.smoothZoomer.detach(),Be(o,"disconnectedCallback",this,3)([])}},{kind:"method",key:"updated",value:function(t){if(t.has("book")&&(this._leftCoverWidth=this.computePageWidth(this.book.getPage("lr"==this.book.pageProgression?0:-1))),t.has("visiblePages")&&(this.renderedPages=this.computeRenderedPages(),this.br.displayedIndices=this.visiblePages.map(function(t){return t.index}),this.br.updateFirstIndex(this.br.displayedIndices[0])),t.has("autoFit")&&"none"!=this.autoFit&&this.resizeViaAutofit(),t.has("scale")){var e=t.get("scale");this.recenter(),this.smoothZoomer.updateViewportOnZoom(this.scale,e)}}},{kind:"method",key:"createRenderRoot",value:function(){return this}},{kind:"method",key:"render",value:function(){var t=this;return(0,I.qy)(se||(se=ye(['\n <div class="br-mode-2up__book" @mouseup=',">\n ","\n ","\n ","\n </div>"])),this.handlePageClick,this.renderLeafEdges("left"),this.renderedPages.map(function(e){return t.renderPage(e)}),this.renderLeafEdges("right"))}},{kind:"field",key:"createPageContainer",value:function(){var t=this;return function(e){return t.pageContainerCache[e.index]||(t.pageContainerCache[e.index]=t.br._createPageContainer(e.index))}}},{kind:"method",key:"initFirstRender",value:function(t){var e=this.book.getPage(t),n=e.spread;this.visiblePages=("lr"==this.book.pageProgression?[n.left,n.right]:[n.right,n.left]).filter(function(t){return t}),this.htmlDimensionsCacher.updateClientSizes(),this.resizeViaAutofit(e),this.initialScale=this.scale}},{kind:"field",key:"renderPage",value:function(){var t=this;return function(e){var n=t.coordSpace.worldUnitsToRenderedPixels,r=t.coordSpace.worldUnitsToVisiblePixels,i=n(t.computePageWidth(e)),o=n(t.computePageHeight(e)),a=t.visiblePages.map(function(t){return t.index}).includes(e.index),s=t.computePositions(e.spread.left,e.spread.right),u=t.createPageContainer(e).update({dimensions:{width:i,height:o,top:0,left:n("L"==e.pageSide?s.pageLeftStart:s.pageLeftEnd)},reduce:e.width/r(t.computePageWidth(e))}).$container[0],c=u.classList.contains("BRpage-visible");return u.classList.toggle("BRpage-visible",a)&&!c&&t.br.trigger("pageVisible",{pageContainerEl:u}),u}}},{kind:"field",key:"renderLeafEdges",value:function(){var t=this;return function(e){var n;if(!t.visiblePages.length)return(0,I.qy)(ue||(ue=ye([""])));if(!("left"==e?t.positions.leafEdgesLeftFullWidth:t.positions.leafEdgesRightFullWidth))return(0,I.qy)(ce||(ce=ye([""])));var r=t.coordSpace.worldUnitsToRenderedPixels,i=r(t.computePageHeight(t.visiblePages[0])),o=(null===(n=t.activeFlip)||void 0===n?void 0:n.direction)==e,a=t.book.getPage("lr"==t.book.pageProgression?0:t.book.getNumLeafs()-1),s=t.book.getPage("lr"==t.book.pageProgression?t.book.getNumLeafs()-1:0),u=o?t.activeFlip.pagesFlippingCount:0,c="left"==e?[a.index,t.pageLeft.goLeft(u).index]:[t.pageRight.goRight(u).index,s.index],l={width:"".concat(r("left"==e?t.positions.leafEdgesLeftMainWidth:t.positions.leafEdgesRightMainWidth),"px"),height:"".concat(i,"px"),left:"".concat(r("left"==e?t.positions.leafEdgesLeftStart:t.positions.leafEdgesRightMainStart),"px")},f=(0,I.qy)(le||(le=ye(["\n <br-leaf-edges\n leftIndex=","\n rightIndex=","\n .book=","\n .pageClickHandler=","\n side=",'\n class="br-mode-2up__leafs br-mode-2up__leafs--','"\n style=',"\n ></br-leaf-edges>\n "])),c[0],c[1],t.book,function(e){return t.br.jumpToIndex(e,{ariaLive:!0})},e,e,(0,D.W)(l));if(o){var d=r("left"==e?t.positions.leafEdgesLeftMovingWidth:t.positions.leafEdgesRightMovingWidth),p={width:"".concat(d,"px"),height:"".concat(i,"px"),left:"".concat(r("left"==e?t.positions.leafEdgesLeftMovingStart:t.positions.leafEdgesRightStart),"px"),pointerEvents:"none",transformOrigin:"".concat(r("left"==e?t.positions.pageLeftWidth:-t.positions.pageRightWidth)+d/2,"px 0")},h=(0,I.qy)(fe||(fe=ye(["\n <br-leaf-edges\n leftIndex=","\n rightIndex=","\n .book=","\n side=",'\n class="br-mode-2up__leafs br-mode-2up__leafs--',' br-mode-2up__leafs--flipping"\n style=',"\n ></br-leaf-edges>\n "])),t.activeFlip.pagesFlipping[0],t.activeFlip.pagesFlipping[1],t.book,e,e,(0,D.W)(p));return"left"==e?(0,I.qy)(de||(de=ye(["","",""])),f,h):(0,I.qy)(pe||(pe=ye(["","",""])),h,f)}return f}}},{kind:"method",key:"resizeViaAutofit",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.visiblePages[0];this.scale=this.computeScale(t,this.autoFit)}},{kind:"method",key:"recenter",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.visiblePages[0],e=this.computeTranslate(t,this.scale);this.$book.style.transform="translateX(".concat(e.x,"px) translateY(").concat(e.y,"px) scale(").concat(this.scale,")")}},{kind:"method",key:"computeRenderedPages",value:function(){var t,e,n,r,i;return[null===(t=this.visiblePages[0])||void 0===t||null===(t=t.prev)||void 0===t?void 0:t.prev,null===(e=this.visiblePages[0])||void 0===e?void 0:e.prev].concat((i=this.visiblePages,function(t){if(Array.isArray(t))return Fe(t)}(i)||Ue(i)||Ne(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[null===(n=this.visiblePages[this.visiblePages.length-1])||void 0===n?void 0:n.next,null===(r=this.visiblePages[this.visiblePages.length-1])||void 0===r||null===(r=r.next)||void 0===r?void 0:r.next]).filter(function(t){return t}).slice(0,10)}},{kind:"method",key:"computeScale",value:function(t,e){if(!t)return 1;var n=t.spread,r=this.computePositions(n.left,n.right).bookWidth,i=this.computePageHeight(n.left||n.right),o=this.scale;this.scale=1;var a=this.coordSpace.renderedPixelsToWorldUnits(this.htmlDimensionsCacher.clientWidth-20)/r,s=this.coordSpace.renderedPixelsToWorldUnits(this.htmlDimensionsCacher.clientHeight-20)/i;this.scale=o;var u=1;if("width"==e)u=a;else if("height"==e)u=s;else if("auto"==e)u=Math.min(a,s);else{if("none"!=e)throw new Error("Invalid autoFit value: ".concat(e));u=this.scale}return u}},{kind:"method",key:"computeTranslate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.scale;if(!t)return{x:0,y:0};var n=t.spread,r=this.computePositions(n.left,n.right),i=r.bookWidth,o=this.computePageHeight(n.left||n.right),a=this.coordSpace.worldUnitsToRenderedPixels(i)*e,s=this.coordSpace.worldUnitsToRenderedPixels(o)*e,u=this.coordSpace.worldUnitsToRenderedPixels(-r.leafEdgesLeftStart)*e,c=(this.htmlDimensionsCacher.clientWidth-a)/2+u,l=(this.htmlDimensionsCacher.clientHeight-s)/2;return{x:Math.max(u,c),y:Math.max(0,l)}}},{kind:"method",key:"_flipAnimation",value:(r=Se(be().m(function e(n){var r,i,o,a,s,u,c,l,f,d,p,h,v,g,m,y,b,w,x,S,_,P,k,O,E,T,C,j,M,R,A,I,D=this,L=arguments;return be().w(function(e){for(;;)switch(e.n){case 0:if(c=(u=L.length>1&&void 0!==L[1]?L[1]:{}).animate,l=void 0===c||c,f=u.flipSpeed,d=void 0===f?this.flipSpeed:f,p=null===(r=this.pageLeft||this.pageRight)||void 0===r?void 0:r.spread){e.n=1;break}return e.a(2);case 1:if(d=d||this.flipSpeed,n=this.parseNextSpread(n),!this.activeFlip&&n){e.n=2;break}return e.a(2);case 2:if(h=this.book.pageProgression,v=null!==(i=null===(o=p.left)||void 0===o?void 0:o.index)&&void 0!==i?i:"lr"==h?-1:this.book.getNumLeafs(),g=null!==(a=null===(s=n.left)||void 0===s?void 0:s.index)&&void 0!==a?a:"lr"==h?-1:this.book.getNumLeafs(),v!=g){e.n=3;break}return e.a(2);case 3:m=this.renderedPages.map(function(t){return t.index}),y=[],b=0,w=[n.left,n.right];case 4:if(!(b<w.length)){e.n=7;break}if(x=w[b]){e.n=5;break}return e.a(3,6);case 5:y.push(this.createPageContainer(x)),m.includes(x.index)||this.renderedPages.push(x);case 6:b++,e.n=4;break;case 7:if(S=this.computeTranslate(p.left||p.right,this.scale),_=this.computeTranslate(n.left||n.right,this.scale),P=Math.sqrt(Math.pow(_.x-S.x,2)+Math.pow(_.y-S.y,2)),k="translate(".concat(_.x,"px, ").concat(_.y,"px)"),P<50&&(E=null===(O=this.$book.style.transform.match(/translate\([^)]+\)/))||void 0===O?void 0:O[0])&&(k=E),T="".concat(k," scale(").concat(this.scale,")"),!l||!("animate"in Element.prototype)){e.n=10;break}return C="lr"==h?g>v?"right":"left":g>v?"left":"right",this.activeFlip={direction:C,pagesFlipping:[v,g],pagesFlippingCount:Math.abs(g-v)},this.classList.add("br-mode-2up--flipping-".concat(C)),this.classList.add("BRpageFlipping"),this.requestUpdate(),e.n=8,this.updateComplete;case 8:return this.visiblePages.map(function(t){return D.pageContainerCache[t.index].$container}).forEach(function(t){return t.addClass("BRpage-exiting")}),y.forEach(function(t){return t.$container.addClass("BRpage-entering")}),j={duration:d+this.activeFlip.pagesFlippingCount,easing:"ease-in",fill:"none"},M=this.$book.animate([{transform:T}],j),R=this.$flippingEdges.animate([{transform:"rotateY(0deg)"},{transform:"left"==C?"rotateY(-180deg)":"rotateY(180deg)"}],j),A="left"==C?this.querySelector(".BRpage-exiting[data-side=L]").animate([{transform:"rotateY(0deg)"},{transform:"rotateY(180deg)"}],j):this.querySelector(".BRpage-exiting[data-side=R]").animate([{transform:"rotateY(0deg)"},{transform:"rotateY(-180deg)"}],j),I="left"==C?this.querySelector(".BRpage-entering[data-side=R]").animate([{transform:"rotateY(-180deg)"},{transform:"rotateY(0deg)"}],j):this.querySelector(".BRpage-entering[data-side=L]").animate([{transform:"rotateY(180deg)"},{transform:"rotateY(0deg)"}],j),M.play(),R.play(),A.play(),I.play(),y.forEach(function(t){return t.$container.addClass("BRpage-visible")}),e.n=9,Promise.race([(0,t.promisifyEvent)(M,"finish"),(0,t.promisifyEvent)(R,"finish"),(0,t.promisifyEvent)(A,"finish"),(0,t.promisifyEvent)(I,"finish")]);case 9:this.classList.remove("br-mode-2up--flipping-".concat(C)),this.classList.remove("BRpageFlipping"),this.visiblePages.map(function(t){return D.pageContainerCache[t.index].$container}).forEach(function(t){return t.removeClass("BRpage-exiting BRpage-visible")}),y.forEach(function(t){return t.$container.removeClass("BRpage-entering")}),this.activeFlip=null;case 10:this.$book.style.transform=T,this.visiblePages=("lr"==h?[n.left,n.right]:[n.right,n.left]).filter(function(t){return t}),y.forEach(function(t){D.br.trigger("pageVisible",{pageContainerEl:t.$container[0]})});case 11:return e.a(2)}},e,this)})),function(t){return r.apply(this,arguments)})},{kind:"method",key:"parseNextSpread",value:function(t){"next"==t?t="lr"==this.book.pageProgression?"right":"left":"prev"==t&&(t="lr"==this.book.pageProgression?"left":"right");var e,n=this.book.getPage(this.br.currentIndex()).spread;if("left"==t)t=null===(e=n.left)||void 0===e||null===(e=e.findLeft({combineConsecutiveUnviewables:!0}))||void 0===e?void 0:e.spread;else if("right"==t){var r;t=null===(r=n.right)||void 0===r||null===(r=r.findRight({combineConsecutiveUnviewables:!0}))||void 0===r?void 0:r.spread}return"number"==typeof t&&(t=this.book.getPage(t).spread),t instanceof R&&(t=t.spread),t}},{kind:"field",key:"handlePageClick",value:function(){var t=this;return function(e){if(3==e.which&&t.br.protected)return!1;if(1==e.which){var n=ge(e.target).closest(".BRpagecontainer");n.length&&("L"==n.data("side")?t.br.left():"R"==n.data("side")&&t.br.right())}}}}]}},I.WF),Ve=(je([(0,A.EM)("br-leaf-edges")],function(t,e){var n=function(e){function n(){var e;ke(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=Oe(this,n,[].concat(i)),t(e),e}return Te(n,e),Pe(n)}(e);return{F:n,d:[{kind:"field",decorators:[(0,A.MZ)({type:Number})],key:"leftIndex",value:function(){return 0}},{kind:"field",decorators:[(0,A.MZ)({type:Number})],key:"rightIndex",value:function(){return 0}},{kind:"field",decorators:[(0,A.MZ)({type:String})],key:"side",value:function(){return"left"}},{kind:"field",decorators:[(0,A.MZ)({attribute:!1})],key:"book",value:function(){return null}},{kind:"field",decorators:[(0,A.MZ)({attribute:!1,type:Function})],key:"pageClickHandler",value:function(){return null}},{kind:"field",decorators:[(0,A.P)(".br-leaf-edges__bar")],key:"$hoverBar",value:void 0},{kind:"field",decorators:[(0,A.P)(".br-leaf-edges__label")],key:"$hoverLabel",value:void 0},{kind:"get",key:"pageWidthPercent",value:function(){return 100/(this.rightIndex-this.leftIndex+1)}},{kind:"method",key:"render",value:function(){return(0,I.qy)(he||(he=ye(['\n <div\n class="br-leaf-edges__bar"\n style="','"\n ></div>\n <div class="br-leaf-edges__label">Page</div>'])),(0,D.W)({width:"".concat(this.pageWidthPercent,"%")}))}},{kind:"method",key:"connectedCallback",value:function(){Be(n,"connectedCallback",this,3)([]),this.addEventListener("mouseenter",this.onMouseEnter),this.addEventListener("mouseleave",this.onMouseLeave),this.addEventListener("click",this.onClick)}},{kind:"method",key:"disconnectedCallback",value:function(){Be(n,"disconnectedCallback",this,3)([]),this.addEventListener("mouseenter",this.onMouseEnter),this.removeEventListener("mousemove",this.onMouseMove),this.removeEventListener("mouseleave",this.onMouseLeave)}},{kind:"method",key:"createRenderRoot",value:function(){return this}},{kind:"field",key:"onMouseEnter",value:function(){var t=this;return function(e){t.addEventListener("mousemove",t.onMouseMove),t.$hoverBar.style.display="block",t.$hoverLabel.style.display="block"}}},{kind:"field",key:"onMouseMove",value:function(){var t=this;return function(e){t.$hoverBar.style.left="".concat(e.offsetX,"px"),"right"==t.side?t.$hoverLabel.style.left="".concat(e.offsetX,"px"):t.$hoverLabel.style.right="".concat(t.offsetWidth-e.offsetX,"px"),t.$hoverLabel.style.top="".concat(e.offsetY,"px");var n=t.mouseEventToPageIndex(e);t.$hoverLabel.textContent=t.book.getPageName(n)}}},{kind:"field",key:"onMouseLeave",value:function(){var t=this;return function(e){t.removeEventListener("mousemove",t.onMouseMove),t.$hoverBar.style.display="none",t.$hoverLabel.style.display="none"}}},{kind:"field",key:"onClick",value:function(){var t=this;return function(e){t.pageClickHandler(t.mouseEventToPageIndex(e))}}},{kind:"method",key:"mouseEventToPageIndex",value:function(t){return Math.floor(this.leftIndex+t.offsetX/this.offsetWidth*(this.rightIndex-this.leftIndex+1))}}]}},I.WF),r(1669));function Ge(t){return Ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ge(t)}function qe(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var u=r&&r.prototype instanceof s?r:s,c=Object.create(u.prototype);return Xe(c,"_invoke",function(n,r,i){var o,s,u,c=0,l=i||[],f=!1,d={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return o=e,s=0,u=t,d.n=n,a}};function p(n,r){for(s=n,u=r,e=0;!f&&c&&!i&&e<l.length;e++){var i,o=l[e],p=d.p,h=o[2];n>3?(i=h===r)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=t):o[0]<=p&&((i=n<2&&p<o[1])?(s=0,d.v=r,d.n=o[1]):p<h&&(i=n<3||o[0]>r||r>h)&&(o[4]=n,o[5]=r,d.n=h,s=0))}if(i||n>1)return a;throw f=!0,r}return function(i,l,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&p(l,h),s=l,u=h;(e=s<2?t:u)||!f;){o||(s?s<3?(s>1&&(d.n=-1),p(s,u)):d.n=u:d.v=u);try{if(c=2,o){if(s||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,s<2&&(s=0)}else 1===s&&(e=o.return)&&e.call(o),s<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=t}else if((e=(f=d.n<0)?u:n.call(r,d))!==a)break}catch(e){o=t,s=1,u=e}finally{c=1}}return{value:e,done:f}}}(n,i,o),!0),c}var a={};function s(){}function u(){}function c(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(Xe(e={},r,function(){return this}),e),f=c.prototype=s.prototype=Object.create(l);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,Xe(t,i,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=c,Xe(f,"constructor",c),Xe(c,"constructor",u),u.displayName="GeneratorFunction",Xe(c,i,"GeneratorFunction"),Xe(f),Xe(f,i,"Generator"),Xe(f,r,function(){return this}),Xe(f,"toString",function(){return"[object Generator]"}),(qe=function(){return{w:o,m:d}})()}function Xe(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}Xe=function(t,e,n,r){function o(e,n){Xe(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},Xe(t,e,n,r)}function Ye(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function Ze(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(t){Ye(o,r,i,a,s,"next",t)}function s(t){Ye(o,r,i,a,s,"throw",t)}a(void 0)})}}function Ke(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,en(r.key),r)}}function Je(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Je=function(){return!!t})()}function Qe(t){return Qe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Qe(t)}function tn(t,e){return tn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},tn(t,e)}function en(t){var e=function(t){if("object"!=Ge(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Ge(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ge(e)?e:e+""}var nn=function(t){function e(t,n){var r,i,o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r=function(t,e,n){return e=Qe(e),function(t,e){if(e&&("object"==Ge(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Je()?Reflect.construct(e,n||[],Qe(t).constructor):e.apply(t,n))}(this,e),i=r,(o=en(o="name"))in i?Object.defineProperty(i,o,{value:"2up",enumerable:!0,configurable:!0,writable:!0}):i[o]="2up",r.br=t,r.book=n,r.mode2UpLit=new He(n,t),r.mode2UpLit.flipSpeed=t.flipSpeed,r.$el=Ve(r.mode2UpLit).attr("autoFit",r.br.options.twoPage.autofit).addClass("br-mode-2up__root BRmode2up"),r.everShown=!1,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&tn(t,e)}(e,t),n=e,r=[{key:"prepare",value:function(){var t=this,e=this.br.currentIndex();this.br.refs.$brContainer.empty().css({overflow:"hidden"}).append(this.$el),this.mode2UpLit.style.opacity="0",setTimeout(Ze(qe().m(function n(){return qe().w(function(n){for(;;)switch(n.n){case 0:if(t.everShown){n.n=2;break}return t.mode2UpLit.initFirstRender(e),t.everShown=!0,t.mode2UpLit.requestUpdate(),n.n=1,t.mode2UpLit.updateComplete;case 1:new Ht(t.mode2UpLit,{preventDefault:!0,dragSelector:".br-mode-2up__book",dragstart:"mousedown",dragcontinue:"mousemove",dragend:"mouseup"}),n.n=4;break;case 2:return n.n=3,t.mode2UpLit.jumpToIndex(e,{smooth:!1});case 3:t.resizePageView();case 4:t.mode2UpLit.style.opacity="1";case 5:return n.a(2)}},n)}))),this.br.updateBrClasses()}},{key:"jumpToIndex",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.pageX,e.pageY,e.noAnimate,this.mode2UpLit.jumpToIndex(t)}},{key:"parsePageSpecifier",value:function(t){var e,n,r="rl"==this.book.pageProgression,i=this.mode2UpLit.parseNextSpread(t),o=null!==(e=null==i||null===(n=i.left)||void 0===n?void 0:n.index)&&void 0!==e?e:r?-1:this.book.getNumLeafs();return this.book.getPage(o)}},{key:"zoom",value:function(t){switch(t){case"in":this.mode2UpLit.zoomIn();break;case"out":this.mode2UpLit.zoomOut();break;default:console.error("Unsupported direction: ".concat(t))}}},{key:"resizePageView",value:function(){this.mode2UpLit.htmlDimensionsCacher.updateClientSizes(),this.mode2UpLit.scale<this.mode2UpLit.initialScale&&"none"==this.mode2UpLit.autoFit&&(this.mode2UpLit.autoFit="auto"),"none"!=this.mode2UpLit.autoFit&&this.mode2UpLit.resizeViaAutofit(),this.mode2UpLit.recenter()}}],r&&Ke(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(Yt),rn=r(1669);function on(t){return on="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},on(t)}function an(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return sn(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sn(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function sn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function un(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,dn(r.key),r)}}function cn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(cn=function(){return!!t})()}function ln(t){return ln=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ln(t)}function fn(t,e){return fn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},fn(t,e)}function dn(t){var e=function(t){if("object"!=on(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=on(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==on(e)?e:e+""}var pn=function(n){function r(t,e){var n,i,o,a;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),n=function(t,e,n){return e=ln(e),function(t,e){if(e&&("object"==on(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,cn()?Reflect.construct(e,n||[],ln(t).constructor):e.apply(t,n))}(this,r),i=n,a="thumb",(o=dn(o="name"))in i?Object.defineProperty(i,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[o]=a,n.br=t,n.book=e,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&fn(t,e)}(r,n),i=r,o=[{key:"drawLeafs",value:function(n){var r,i,o,a=this,s=Math.floor,u=this.book,c=this.br.refs.$brContainer.prop("scrollWidth")-20,l=0,f=0,d=0,p=0,h=0,v=[],g=an(u.pagesIterator({combineConsecutiveUnviewables:!0}));try{for(g.s();!(o=g.n()).done;){var m=o.value,y=this.br.thumbWidth;l+(y+this.br.thumbPadding)>c&&(p++,l=0,h=0),v[p]||(v[p]={}),v[p].leafs||(v[p].leafs=[],v[p].height=0,v[p].top=0),v[p].leafs[h]={num:m.index,left:l},(r=s(m.height*this.br.thumbWidth/m.width))>v[p].height&&(v[p].height=r),0===h&&(f+=this.br.thumbPadding+v[p].height),(l+=y+this.br.thumbPadding)>d&&(d=l),h++,m.index==n&&(i=f-this.br.thumbPadding-v[p].height)}}catch(t){g.e(t)}finally{g.f()}this.br.refs.$brPageViewEl.height(f);var b=s((this.br.refs.$brContainer.prop("scrollWidth")-d)/2)-14;void 0!==i&&this.br.refs.$brContainer.scrollTop(i);for(var w=this.br.refs.$brContainer.prop("scrollTop"),x=w+this.br.refs.$brContainer.height(),S=0,_=0,P=[],k=[],O=u.getNumLeafs()-1,E=0,T=0;T<v.length;T++)v[T]&&(_+=this.br.thumbPadding+v[T].height,(S>=w&&S<=x||_>=w&&_<=x||S<=w&&_>=x)&&(P.push(T),v[T].leafs[0].num<O&&(O=v[T].leafs[0].num),v[T].leafs[v[T].leafs.length-1].num>E&&(E=v[T].leafs[v[T].leafs.length-1].num)),S>v[T].top&&(v[T].top=S),S=_);for(var C=P[0],j=P[P.length-1],M=1;M<this.br.thumbRowBuffer+1;M++)j+M<v.length&&P.push(j+M);for(var R=1;R<this.br.thumbRowBuffer;R++)C-R>=0&&P.push(C-R);P.sort(function(t,e){return t-e});for(var A=0,I=P;A<I.length;A++){var D=I[A];if((0,t.notInArray)(D,this.br.displayedRows)){if(!v[D])continue;var L,$=an(v[D].leafs);try{var N=function(){var t=L.value,n=t.num,r=t.left,i=a.br.thumbWidth,o=s(u.getPageHeight(n)*a.br.thumbWidth/u.getPageWidth(n)),l=v[D].top,f=r+b;"rl"==a.br.pageProgression&&(f=c-i-f),f+=a.br.thumbPadding,k.push(n);var d=s(u.getPageWidth(n)/a.br.thumbWidth),p=2*Math.round(d/2),h=a.br._createPageContainer(n).update({dimensions:{width:i,height:o,top:l,left:f},reduce:p});h.$container.data("leaf",n).on("mouseup",function(t){a.br.updateFirstIndex(n,{suppressFragmentChange:!0}),a.br.switchMode(a.br.constMode1up,{suppressFragmentChange:!0});var r=a.br.viewModeOrder.shift();a.br.viewModeOrder.push(r),a.br._components.navbar.updateViewModeButton(rn(".viewmode"),"twopg","Two-page view"),a.br.trigger(e.q.fragmentChange),t.stopPropagation()}),a.br.refs.$brPageViewEl.append(h.$container)};for($.s();!(L=$.n()).done;)N()}catch(t){$.e(t)}finally{$.f()}}}var F,U=an(this.br.displayedRows);try{for(U.s();!(F=U.n()).done;){var B=F.value;if((0,t.notInArray)(B,P)){var z,W,H=an(null===(z=v[B])||void 0===z?void 0:z.leafs);try{for(H.s();!(W=H.n()).done;){var V,G=W.value.num;null!=k&&k.includes(G)||null===(V=this.br.$(".pagediv".concat(G)))||void 0===V||V.remove()}}catch(t){H.e(t)}finally{H.f()}}}}catch(t){U.e(t)}finally{U.f()}var q=this.br.currentIndex();q<O?this.br.updateFirstIndex(O):q>E&&this.br.updateFirstIndex(E),this.br.displayedRows=P.slice(),this.br.$(".BRpagedivthumb_highlight").removeClass("BRpagedivthumb_highlight"),this.br.$(".pagediv"+this.br.currentIndex()).addClass("BRpagedivthumb_highlight")}},{key:"lazyLoadImage",value:function(t){var e=rn(t).data("leaf"),n=rn(t).data("reduce"),r=this.br.imageCache.image(e,n),i=rn(t).parent();rn(i).append(r),rn(t).remove()}},{key:"zoom",value:function(e){var n=this.br.thumbColumns;switch(e){case"in":this.br.thumbColumns-=1;break;case"out":this.br.thumbColumns+=1;break;default:console.error("Unsupported direction: ".concat(e))}this.br.thumbColumns=(0,t.clamp)(this.br.thumbColumns,this.br.options.thumbMinZoomColumns,this.br.options.thumbMaxZoomColumns),this.br.thumbColumns!=n&&(this.br.displayedRows=[],this.prepare())}},{key:"getThumbnailWidth",value:function(t){var e=(t+1)*this.br.thumbPadding,n=(this.br.refs.$brPageViewEl.width()-e)/(t+.5),r=Math.floor(n);return r>0?r:100}},{key:"prepare",value:function(){this.br.refs.$brContainer.empty(),this.br.refs.$brContainer.css({overflowY:"scroll",overflowX:"auto"}),this.br.refs.$brPageViewEl=rn("<div class='BRpageview'></div>"),this.br.refs.$brContainer.append(this.br.refs.$brPageViewEl),this.dragScrollable=this.dragScrollable||new Ht(this.br.refs.$brContainer[0],{preventDefault:!0}),this.br.bindGestures(this.br.refs.$brContainer),this.br.thumbWidth=this.getThumbnailWidth(this.br.thumbColumns),this.br.reduce=this.book.getPageWidth(0)/this.br.thumbWidth,this.br.displayedRows=[],this.drawLeafs(this.br.currentIndex()),this.br.updateBrClasses()}},{key:"jumpToIndex",value:function(t){for(var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(n.pageX,n.pageY,n.noAnimate,Math.floor),i=this.book,o=this.br.refs.$brContainer.prop("scrollWidth")-20,a=this.br.thumbWidth,s=0,u=0,c=0,l=0,f=0,d=0;d<=t;d++){u+(a+this.br.thumbPadding)>o&&(u=0,l=0,f=0);var p=r(i.getPageHeight(f)*this.br.thumbWidth/i.getPageWidth(f));p>l&&(l=p),0==f&&(s=c,c+=this.br.thumbPadding+l),u+=a+this.br.thumbPadding,f++}this.br.updateFirstIndex(t),this.br.refs.$brContainer.prop("scrollTop")==s?this.br.drawLeafs():(this.br.animating=!0,this.br.refs.$brContainer.stop(!0).animate({scrollTop:s},"fast",function(){e.br.animating=!1}))}}],o&&un(i.prototype,o),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,o}(Yt),hn=(r(1367),{floor:Math.floor,decr:function(t){return t-1}}),vn={floor:function(t){return Math.pow(2,Math.floor(Math.log2(Math.max(1,t))))},decr:function(t){return Math.pow(2,Math.log2(t)-1)}},gn={pow2:vn,integer:hn},mn=r(1669);function yn(t){return yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yn(t)}function bn(t){return function(t){if(Array.isArray(t))return wn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return wn(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wn(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function xn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Sn(r.key),r)}}function Sn(t){var e=function(t){if("object"!=yn(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=yn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==yn(e)?e:e+""}var _n=function(){return t=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.useSrcSet,i=void 0!==r&&r,o=n.reduceSet,a=void 0===o?vn:o,s=n.renderPageURI,u=void 0===s?p.renderPageURI:s;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.book=e,this.useSrcSet=i,this.reduceSet=a,this.renderPageURI=u,this.cache={},this.defaultScale=8},e=[{key:"image",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.getFinalReduce(t,e);return this._serveImageElement(t,r,n)}},{key:"getFinalReduce",value:function(t,e){var n=(this.cache[t]||[]).filter(function(t){return t.loaded&&t.reduce<=e});return n.length?Math.max.apply(Math,bn(n.map(function(t){return t.reduce}))):this.reduceSet.floor(e)}},{key:"imageLoaded",value:function(t,e){var n,r,i=null===(n=this.cache[t])||void 0===n?void 0:n.find(function(t){return t.reduce<=e});return null!==(r=null==i?void 0:i.loaded)&&void 0!==r&&r}},{key:"getBestLoadedReduce",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,r=(null===(e=this.cache[t])||void 0===e?void 0:e.filter(function(t){return t.loaded}))||[];if(!r.length)return null;var i=r.filter(function(t){return t.reduce>=n});if(i.length)return Math.min.apply(Math,bn(i.map(function(t){return t.reduce})));var o=r.filter(function(t){return t.reduce<n});return Math.max.apply(Math,bn(o.map(function(t){return t.reduce})))}},{key:"_serveImageElement",value:function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=null===(n=this.cache[t])||void 0===n?void 0:n.find(function(t){return t.reduce==e});i||(i={reduce:e,loaded:!1},(this.cache[t]||(this.cache[t]=[])).push(i));var o=this.book.getPage(t),a=o.getURI(e,0),s=mn(r||document.createElement("img")).addClass("BRpageimage").attr("alt","Book page image").data("reduce",e).data("src",a);return this.renderPageURI(s[0],a),this.useSrcSet&&s.attr("srcset",o.getURISrcSet(e)),i.loaded||s.one("load",function(){return i.loaded=!0}),s}}],e&&xn(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}(),Pn=r(4907),kn=r(1669);function On(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var u=r&&r.prototype instanceof s?r:s,c=Object.create(u.prototype);return En(c,"_invoke",function(n,r,i){var o,s,u,c=0,l=i||[],f=!1,d={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return o=e,s=0,u=t,d.n=n,a}};function p(n,r){for(s=n,u=r,e=0;!f&&c&&!i&&e<l.length;e++){var i,o=l[e],p=d.p,h=o[2];n>3?(i=h===r)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=t):o[0]<=p&&((i=n<2&&p<o[1])?(s=0,d.v=r,d.n=o[1]):p<h&&(i=n<3||o[0]>r||r>h)&&(o[4]=n,o[5]=r,d.n=h,s=0))}if(i||n>1)return a;throw f=!0,r}return function(i,l,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&p(l,h),s=l,u=h;(e=s<2?t:u)||!f;){o||(s?s<3?(s>1&&(d.n=-1),p(s,u)):d.n=u:d.v=u);try{if(c=2,o){if(s||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,s<2&&(s=0)}else 1===s&&(e=o.return)&&e.call(o),s<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=t}else if((e=(f=d.n<0)?u:n.call(r,d))!==a)break}catch(e){o=t,s=1,u=e}finally{c=1}}return{value:e,done:f}}}(n,i,o),!0),c}var a={};function s(){}function u(){}function c(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(En(e={},r,function(){return this}),e),f=c.prototype=s.prototype=Object.create(l);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,En(t,i,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=c,En(f,"constructor",c),En(c,"constructor",u),u.displayName="GeneratorFunction",En(c,i,"GeneratorFunction"),En(f),En(f,i,"Generator"),En(f,r,function(){return this}),En(f,"toString",function(){return"[object Generator]"}),(On=function(){return{w:o,m:d}})()}function En(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}En=function(t,e,n,r){function o(e,n){En(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},En(t,e,n,r)}function Tn(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function Cn(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(t){Tn(o,r,i,a,s,"next",t)}function s(t){Tn(o,r,i,a,s,"throw",t)}a(void 0)})}}function jn(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||Mn(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mn(t,e){if(t){if("string"==typeof t)return Rn(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rn(t,e):void 0}}function Rn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function An(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=An.extendOptions({},An.defaultOptions,t,An.optionOverrides);this.setup(e)}function In(t,e,n){var r,i,o,a,s,u,c,l;i=n,o=function(t){return t.br},a=An,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n,u=function(t){return t._overrideable[e]},c=(r=t).prototype[i],l=function(){return c.apply(u(this),arguments)},Object.defineProperty(a.prototype,s,{get:function(){return l},set:function(t){r.prototype[i]=function(){var e=this instanceof r?o(this):this;return t.apply(e,arguments)},l=t}})}An.extendOptions=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(e.length<=1)return e[0];for(var r=["onePage","twoPage","vars"],i=["plugins","controls"],o=e.shift(),a=0,s=e;a<s.length;a++)for(var u=s[a],c=0,l=Object.entries(u);c<l.length;c++){var f=jn(l[c],2),d=f[0],p=f[1];if(r.includes(d))o[d]||(o[d]={}),o[d]=Object.assign(o[d],p);else if(i.includes(d)){o[d]||(o[d]={});for(var h=0,v=Object.entries(p);h<v.length;h++){var g,m=jn(v[h],2),y=m[0],b=m[1];(g=o[d])[y]||(g[y]={}),Object.assign(o[d][y],b)}}else o[d]=p}return o},An.version="5.0.0-110",An.constMode1up=1,An.constMode2up=2,An.constModeThumb=3,An.PLUGINS={archiveAnalytics:null,autoplay:null,chapters:null,experiments:null,resume:null,search:null,textSelection:null,translate:null,tts:null},An.registerPlugin=function(t,e){An.PLUGINS[t]&&console.warn("Plugin ".concat(t," already registered. Overwriting.")),An.PLUGINS[t]=e},An.imageCache=null,An.constNavAnimationDuration=300,An.constResizeAnimationDuration=100,An.eventNames=e.q,An.defaultOptions=p,An.optionOverrides={},An.prototype.setup=function(e){var n;this.options=e,this.shell,this.bookId=e.bookId,this.server=e.server,this.subPrefix=e.subPrefix,this.bookPath=e.bookPath,this.plugins={archiveAnalytics:An.PLUGINS.archiveAnalytics?new An.PLUGINS.archiveAnalytics(this):null,autoplay:An.PLUGINS.autoplay?new An.PLUGINS.autoplay(this):null,chapters:An.PLUGINS.chapters?new An.PLUGINS.chapters(this):null,experiments:An.PLUGINS.experiments?new An.PLUGINS.experiments(this):null,search:An.PLUGINS.search?new An.PLUGINS.search(this):null,resume:An.PLUGINS.resume?new An.PLUGINS.resume(this):null,textSelection:An.PLUGINS.textSelection?new An.PLUGINS.textSelection(this):null,translate:An.PLUGINS.translate?new An.PLUGINS.translate(this):null,tts:An.PLUGINS.tts?new An.PLUGINS.tts(this):null};for(var r=0,i=Object.entries(this.plugins);r<i.length;r++){var o=jn(i[r],2),a=o[0];o[1]||delete this.plugins[a]}for(var u=0,c=Object.entries(An.PLUGINS);u<c.length;u++){var l=jn(c[u],2),f=l[0],d=l[1];!this.plugins[f]&&d&&(this.plugins[f]=new d(this))}for(var h=0,v=Object.entries(this.plugins);h<v.length;h++){var g=jn(v[h],2),m=g[0],y=g[1];try{var b,x;y.setup(null!==(b=null===(x=this.options.plugins)||void 0===x?void 0:x[m])&&void 0!==b?b:{}),this.options.plugins[m]=y.options}catch(t){console.error("Error setting up plugin ".concat(m),t)}}null!==(n=this.plugins.search)&&void 0!==n&&n.options.enabled&&(this.search=this.plugins.search.search.bind(this.plugins.search)),this.numLeafs=void 0,this.viewModeOrder=[],this.suppressFragmentChange=!1,this.animationFinishedCallback=null,this.constMode1up=An.constMode1up,this.constMode2up=An.constMode2up,this.constModeThumb=An.constModeThumb,this.reduce=8,this.defaults=e.defaults,this.padding=e.padding,this.reduceSet=gn[e.reduceSet],this.reduceSet||(console.warn("Invalid reduceSet ".concat(e.reduceSet,". Ignoring.")),this.reduceSet=gn[p.reduceSet]),this.mode=null,this.prevReadMode=null,this.ui=e.ui,this.uiAutoHide=e.uiAutoHide,this.thumbWidth=100,this.thumbRowBuffer=e.thumbRowBuffer,this.thumbColumns=e.thumbColumns,this.thumbMaxLoading=e.thumbMaxLoading,this.thumbPadding=e.thumbPadding,this.displayedRows=[],this.displayedIndices=[],this.animating=!1,this.flipSpeed=t.parseAnimationSpeed(e.flipSpeed)||400,this.firstIndex=null,this.isFullscreenActive=e.startFullscreen||!1,this.lastScroll=null,this.showLogo=e.showLogo,this.logoURL=e.logoURL,this.imagesBaseURL=e.imagesBaseURL,this.reductionFactors=e.reductionFactors,this.onePage=e.onePage,this.twoPage=e.twoPage,this.onePageMinBreakpoint=e.onePageMinBreakpoint,this.bookTitle=e.bookTitle,this.bookUrl=e.bookUrl,this.bookUrlText=e.bookUrlText,this.bookUrlTitle=e.bookUrlTitle,this.titleLeaf=e.titleLeaf,this.metadata=e.metadata,this.thumbnail=e.thumbnail,this.bookUrlMoreInfo=e.bookUrlMoreInfo,this.enableExperimentalControls=e.enableExperimentalControls,this.el=e.el,this.pageProgression=e.pageProgression,this.protected=e.protected,this.getEmbedCode=e.getEmbedCode,this.popup=null,this.data=e.data,this.refs={},this.book=new M(this),e.getNumLeafs&&(this.book.getNumLeafs=e.getNumLeafs.bind(this)),e.getPageWidth&&(this.book.getPageWidth=e.getPageWidth.bind(this)),e.getPageHeight&&(this.book.getPageHeight=e.getPageHeight.bind(this)),e.getPageURI&&(this.book.getPageURI=e.getPageURI.bind(this)),e.getPageSide&&(this.book.getPageSide=e.getPageSide.bind(this)),e.getPageNum&&(this.book.getPageNum=e.getPageNum.bind(this)),e.getPageProp&&(this.book.getPageProp=e.getPageProp.bind(this)),e.getSpreadIndices&&(this.book.getSpreadIndices=e.getSpreadIndices.bind(this)),e.leafNumToIndex&&(this.book.leafNumToIndex=e.leafNumToIndex.bind(this)),this._components={navbar:new s(this),toolbar:new w(this)},this._modes={mode1Up:new ve(this,this.book),mode2Up:new nn(this,this.book),modeThumb:new pn(this,this.book)},this._overrideable={book:this.book,"_components.navbar":this._components.navbar,"_components.toolbar":this._components.toolbar,"_modes.mode1Up":this._modes.mode1Up,"_modes.mode2Up":this._modes.mode2Up,"_modes.modeThumb":this._modes.modeThumb},this.imageCache=new _n(this.book,{useSrcSet:this.options.useSrcSet,reduceSet:this.reduceSet,renderPageURI:e.renderPageURI.bind(this)}),this.hasKeyFocus=!0},An.prototype.initializePlugin=function(t){var e=new An.PLUGINS[t](this);this.plugins[t]=e;try{var n,r;e.setup(null!==(n=null===(r=this.options.plugins)||void 0===r?void 0:r[t])&&void 0!==n?n:{}),this.options.plugins[t]=e.options}catch(e){throw console.error("Error setting up plugin ".concat(t," outside of regular cycle"),e),e}try{e.init()}catch(e){throw console.error("Error initializing plugin ".concat(t," outside of regular cycle"),e),e}},An.prototype.getActivePageContainerElements=function(){var t=Object.values(this._modes.mode2Up.mode2UpLit.pageContainerCache).map(function(t){return t.$container[0]}).concat(Object.values(this._modes.mode1Up.mode1UpLit.pageContainerCache).map(function(t){return t.$container[0]}));return this.mode==this.constModeThumb&&(t=t.concat(this.$(".BRpagecontainer").toArray())),t},An.prototype.getActivePageContainerElementsForIndex=function(t){var e,n,r;return[null===(e=this._modes.mode2Up.mode2UpLit.pageContainerCache[t])||void 0===e||null===(e=e.$container)||void 0===e?void 0:e[0],null===(n=this._modes.mode1Up.mode1UpLit.pageContainerCache[t])||void 0===n||null===(n=n.$container)||void 0===n?void 0:n[0]].concat((r=this.mode==this.constModeThumb?this.$(".pagediv".concat(t)).toArray():[],function(t){if(Array.isArray(t))return Rn(t)}(r)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||Mn(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())).filter(function(t){return t})},Object.defineProperty(An.prototype,"activeMode",{get:function(){return{1:this._modes.mode1Up,2:this._modes.mode2Up,3:this._modes.modeThumb}[this.mode]}}),An.util=t,An.prototype.extendParams=function(t,e){var n=kn.extend({},e);if(void 0!==n.page){var r=this.book.parsePageString(n.page);isNaN(r)||(n.index=r),delete n.page}kn.extend(t,n)},An.prototype.initParams=function(){var e,n,r={init:!0,pageFound:!1,fragmentChange:!1};if(void 0!==this.titleLeaf&&this.book.getNumLeafs()>2?r.index=this.book.leafNumToIndex(this.titleLeaf):r.index=0,this.defaults){var i=this.paramsFromFragment(this.defaults);void 0!==i.page&&(r.pageFound=!0),this.extendParams(r,i)}if(null!==(e=this.plugins.resume)&&void 0!==e&&e.options.enabled){var o=this.plugins.resume.getResumeValue();null!==o&&(r.index!==o&&(r.fragmentChange=!0),r.index=o)}if(this.options.enableUrlPlugin){var a=this.paramsFromFragment(this.urlReadFragment());!Object.keys(a).length&&this.urlReadHashFragment()&&"history"===this.options.urlMode&&(a=this.paramsFromFragment(this.urlReadHashFragment())),Object.keys(a).length&&(void 0!==a.page&&(r.pageFound=!0),this.extendParams(r,a),r.fragmentChange=!0)}if(null!==(n=this.plugins.search)&&void 0!==n&&n.options.enabled){var s=this.plugins.search;if(s.options.goToFirstResult=!r.pageFound,!s.initialSearchTerm)if(r.search)s.options.initialSearchTerm=r.search,s.searchTerm=r.search;else{var u=new URLSearchParams(this.readQueryString()).get("q");u&&(s.options.initialSearchTerm=t.decodeURIComponentPlus(u))}}return this.suppressFragmentChange=!r.fragmentChange,r},An.prototype.getLocationSearch=function(){return window.location.search},An.prototype.getLocationHash=function(){return window.location.hash},An.prototype.readQueryString=function(){var t=this.getLocationSearch();if(t)return t;var e=this.getLocationHash(),n=e.search(/\?\w+=/);return n>-1?e.slice(n):""},An.prototype.getInitialMode=function(t){var e,n=kn(window).width(),r=n&&n<=this.onePageMinBreakpoint;if(e=t.mode?t.mode:r?this.constMode1up:this.constMode2up,this.canSwitchToMode(e)||(e=this.constMode1up),this.options.defaults)try{e=function(t){var e={"mode/1up":1,"mode/2up":2,"mode/thumb":3};if(!(t in e))throw new h("Invalid mode string: ".concat(t));return e[t]}(this.options.defaults)}catch(t){}return e},An.prototype.init=function(){var t;this.init.initComplete=!1,this.pageScale=this.reduce;var e=this.initParams();if(this.firstIndex=e.index?e.index:0,this.isTouchDevice=!!("ontouchstart"in window)||!!("msmaxtouchpoints"in window.navigator),this.refs.$br=kn(this.el).empty().removeClass().addClass("ui-"+this.ui).addClass("br-ui-"+this.ui).addClass("BookReader"),this.isTouchDevice?this.refs.$br.addClass("touch"):this.refs.$br.addClass("no-touch"),this.refs.$brContainer=kn("<div class='BRcontainer' dir='ltr'></div>"),this.refs.$br.append(this.refs.$brContainer),e.mode=this.getInitialMode(e),this.mode=e.mode,this.options.showToolbar&&this.initToolbar(this.mode,this.ui),this.options.showNavbar)for(var n=this.initNavbar(),r=0,i=Object.values(this.plugins);r<i.length;r++)i[r].extendNavBar(n);this._components.navbar.switchNavbarControls(),this.resizeBRcontainer(),this.updateFromParams(e),this.initUIStrings(),this._components.navbar.bindControlClickHandlers();for(var o=0,a=Object.values(this.plugins);o<a.length;o++)a[o]._bindNavigationHandlers();this.setupKeyListeners(),this.lastScroll=(new Date).getTime(),this.refs.$brContainer.on("scroll",this,function(t){t.data.lastScroll=(new Date).getTime(),t.data.constModeThumb==t.data.mode&&t.data.drawLeafsThrottled()}),this.options.autoResize&&(kn(window).on("resize",this,function(t){t.data.resize()}),kn(window).on("orientationchange",this,function(t){t.data.resize()}.bind(this))),this.protected&&this.$(".BRicon.share").hide(),null!==(t=this.plugins.search)&&void 0!==t&&t.options.initialSearchTerm||(this.suppressFragmentChange=!1),this.options.startFullscreen&&this.enterFullscreen(!0);for(var s=0,u=Object.entries(this.plugins);s<u.length;s++){var c=jn(u[s],2),l=c[0],f=c[1];try{f.init()}catch(t){console.error("Error initializing plugin ".concat(l),t)}}this.init.initComplete=!0,this.trigger(An.eventNames.PostInit)},An.prototype.trigger=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,r="BookReader:"+e;t.polyfillCustomEvent(window),window.dispatchEvent(new CustomEvent(r,{bubbles:!0,composed:!0,detail:{props:n}})),kn(document).trigger(r,n)},An.prototype.on=function(t,e){kn(document).on("BookReader:"+t,e)},An.prototype.off=function(t,e){kn(document).off("BookReader:"+t,e)},An.prototype.bind=function(t,e){return this.on(t,e)},An.prototype.unbind=function(t,e){return this.off(t,e)},An.prototype.resize=function(){this.init.initComplete&&(this.resizeBRcontainer(),this._components.navbar.switchNavbarControls(),this.constMode1up==this.mode?"none"!=this.onePage.autofit?(this._modes.mode1Up.resizePageView(),this.centerPageView()):(this.centerPageView(),this.displayedIndices=[],this.drawLeafsThrottled()):this.constModeThumb==this.mode?this._modes.modeThumb.prepare():this._modes.mode2Up.resizePageView(),this.trigger(An.eventNames.resize))},An.prototype.setupKeyListeners=function(){var e=this;window.IntersectionObserver&&new IntersectionObserver(function(t){t.forEach(function(t){0===t.intersectionRatio?e.hasKeyFocus=!1:e.hasKeyFocus=!0})},{root:null,rootMargin:"0px",threshold:[0,.05,1]}).observe(this.refs.$br[0]),document.addEventListener("keydown",function(n){if(e.hasKeyFocus&&!(n.getModifierState("Control")||n.getModifierState("Alt")||n.getModifierState("Meta")||n.getModifierState("Win")||t.isInputActive()))switch(n.key){case"Home":n.preventDefault(),e.first();break;case"End":n.preventDefault(),e.last();break;case"PageDown":e.constMode2up===e.mode&&(n.preventDefault(),e.next());break;case"PageUp":e.constMode2up===e.mode&&(n.preventDefault(),e.prev());break;case"ArrowLeft":case"Left":e.constModeThumb!=e.mode&&(n.preventDefault(),e.left());break;case"ArrowRight":case"Right":e.constModeThumb!=e.mode&&(n.preventDefault(),e.right());break;case"-":case"Subtract":n.preventDefault(),e.zoom(-1);break;case"+":case"=":case"Add":n.preventDefault(),e.zoom(1);break;case"F":case"f":n.preventDefault(),e.toggleFullscreen()}})},An.prototype.drawLeafs=function(){this.constMode1up!=this.mode&&this.activeMode.drawLeafs()},An.prototype._createPageContainer=function(t){for(var e=new Pn.LN(this.book.getPage(t,!1),{isProtected:this.protected,imageCache:this.imageCache}),n=0,r=Object.values(this.plugins);n<r.length;n++)r[n]._configurePageContainer(e);return e},An.prototype.bindGestures=function(t){var e=this,n=1;t.unbind("touchmove").bind("touchmove",function(t){t.originalEvent.cancelable&&(n=t.originalEvent.touches.length),t.stopPropagation()}),t.unbind("gesturechange").bind("gesturechange",function(t){t.preventDefault(),2!==n||(new Date).getTime()-e.lastScroll<500||(t.originalEvent.scale>1.5?e.zoom(1):t.originalEvent.scale<.6&&e.zoom(-1))})},An.prototype.drawLeafsThrottled=t.throttle(An.prototype.drawLeafs,250),An.prototype.zoom=function(t){var e,n;1==t?this.activeMode.zoom("in"):this.activeMode.zoom("out"),null===(e=this.plugins.textSelection)||void 0===e||e.textSelectionManager.stopPageFlip(this.refs.$brContainer),null===(n=this.plugins.translate)||void 0===n||n.textSelectionManager.stopPageFlip(this.refs.$brContainer)},An.prototype.resizeBRcontainer=function(t){t?this.refs.$brContainer.animate({top:this.getToolBarHeight(),bottom:this.getFooterHeight()},this.constResizeAnimationDuration,"linear"):this.refs.$brContainer.css({top:this.getToolBarHeight(),bottom:this.getFooterHeight()})},An.prototype.centerPageView=function(){var t=this.refs.$brContainer.prop("scrollWidth"),e=this.refs.$brContainer.prop("clientWidth");t>e&&this.refs.$brContainer.prop("scrollLeft",(t-e)/2)},An.prototype.quantizeReduce=function(t,e){for(var n=e[0].reduce,r=Math.abs(t-n),i=1;i<e.length;i++){var o=Math.abs(t-e[i].reduce);o<r&&(r=o,n=e[i].reduce)}return n},An.prototype.nextReduce=function(t,e,n){if("in"===e){for(var r=0,i=1;i<n.length;i++)n[i].reduce<t&&(r=i);return n[r]}if("out"===e){for(var o=n.length-1,a=o,s=o;s>=0;s--)n[s].reduce>t&&(a=s);return n[a]}if("auto"===e){var u=n.find(function(t){return"auto"==t.autofit});if(u)return u;for(var c=n.filter(function(t){var e=t.autofit;return"height"==e||"width"==e}),l=null,f=0;f<c.length;f++)(null===l||l.reduce<c[f].reduce)&&(l=c[f]);if(l)return l}else if("height"===e||"width"===e){var d=n.find(function(t){return t.autofit==e});if(d)return d}return n[0]},An.prototype._reduceSort=function(t,e){return t.reduce-e.reduce},An.prototype.jumpToPage=function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ariaLive,n=void 0!==e&&e,r=this.book.parsePageString(t);return void 0!==r&&(this.jumpToIndex(r,{ariaLive:n}),!0)},An.prototype._isIndexDisplayed=function(t){return this.displayedIndices?this.displayedIndices.includes(t):this.currentIndex()==t},An.prototype.jumpToIndex=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.pageX,i=void 0===r?0:r,o=n.pageY,a=void 0===o?0:o,s=n.noAnimate,u=void 0!==s&&s,c=n.flipSpeed,l=void 0===c?null:c,f=n.ariaLive,d=void 0!==f&&f,p=n.triggerStop,h=void 0===p||p,v=this.activeMode.parsePageSpecifier(e);if(l=t.parseAnimationSpeed(l)||this.flipSpeed,v&&v.index!=this.currentIndex())if(v.isViewable||v.unviewablesStart==v.index)h&&this.trigger(An.eventNames.stop),this.trigger(An.eventNames.beforePageChanged,{index:v.index,ariaLive:d}),this.activeMode.jumpToIndex(v.index,{pageX:i,pageY:a,noAnimate:u,flipSpeed:l,ariaLive:d});else{var g,m=this._isIndexDisplayed(v.unviewablesStart)?null===(g=v.findNext({combineConsecutiveUnviewables:!0}))||void 0===g?void 0:g.index:v.unviewablesStart;void 0!==m&&this.jumpToIndex(m,{pageX:i,pageY:a,noAnimate:u,flipSpeed:l,ariaLive:d})}},An.prototype.getPrevReadMode=function(t){return t===An.constMode1up||t===An.constMode2up?t:null===this.prevReadMode?An.constMode1up:void 0},An.prototype.switchMode=function(t){var e,n,r,i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=o.suppressFragmentChange,s=void 0!==a&&a;if(o.init,o.pageFound,"string"==typeof t&&(t={"1up":this.constMode1up,"2up":this.constMode2up,thumb:this.constModeThumb}[t]),!t)throw new Error("Invalid mode: ".concat(t));if(this.init.initComplete){if(t===this.mode)return;if(!this.canSwitchToMode(t))return}this.trigger(An.eventNames.stop),this.prevReadMode=this.getPrevReadMode(this.mode),this.mode!=t&&(null===(r=(i=this.activeMode).unprepare)||void 0===r||r.call(i)),this.mode=t,this.pageScale!==this.reduce&&(this.reduce=this.pageScale),this.constMode1up==t?this._modes.mode1Up.prepare():this.constModeThumb==t?(this.reduce=this.quantizeReduce(this.reduce,this.reductionFactors),this._modes.modeThumb.prepare()):this._modes.mode2Up.prepare(),this.suppressFragmentChange||s||this.trigger(An.eventNames.fragmentChange);var u=t+"PageViewSelected";this.trigger(An.eventNames[u]),null===(e=this.plugins.textSelection)||void 0===e||e.textSelectionManager.stopPageFlip(this.refs.$brContainer),null===(n=this.plugins.translate)||void 0===n||n.textSelectionManager.stopPageFlip(this.refs.$brContainer)},An.prototype.updateBrClasses=function(){var t={};t[this.constMode1up]="BRmode1up",t[this.constMode2up]="BRmode2up",t[this.constModeThumb]="BRmodeThumb",this.refs.$br.removeClass("BRmode1up BRmode2up BRmodeThumb").addClass(t[this.mode]),this.isFullscreen()?(this.refs.$br.addClass("fullscreenActive"),kn(document.body).addClass("BRfullscreenActive")):(this.refs.$br.removeClass("fullscreenActive"),kn(document.body).removeClass("BRfullscreenActive"))},An.prototype.isFullscreen=function(){return this.isFullscreenActive},An.prototype.toggleFullscreen=Cn(On().m(function t(){var e,n=arguments;return On().w(function(t){for(;;)switch(t.n){case 0:if(e=!(n.length>0&&void 0!==n[0])||n[0],!this.isFullscreen()){t.n=2;break}return t.n=1,this.exitFullScreen();case 1:t.n=3;break;case 2:return t.n=3,this.enterFullscreen(e);case 3:return t.a(2)}},t,this)})),An.prototype.enterFullscreen=Cn(On().m(function t(){var e,n,r,i,o=this,a=arguments;return On().w(function(t){for(;;)switch(t.n){case 0:if(r=!(a.length>0&&void 0!==a[0])||a[0],this.refs.$br.addClass("BRfullscreenAnimation"),i=this.currentIndex(),r&&(this._fullscreenCloseHandler=function(t){27===t.keyCode&&o.toggleFullscreen()},kn(document).on("keyup",this._fullscreenCloseHandler)),kn(window).width()<=this.onePageMinBreakpoint&&this.switchMode(this.constMode1up),this.isFullscreenActive=!0,this.$(".BRnav .BRicon.full").attr("title","Exit fullscreen"),this.$(".BRnav .BRicon.full .BRtooltip").text("Exit fullscreen"),this.updateBrClasses(),!(this.activeMode instanceof ve)){t.n=1;break}return this.activeMode.mode1UpLit.scale=this.activeMode.mode1UpLit.computeDefaultScale(this.book.getPage(i)),this.activeMode.mode1UpLit.requestUpdate(),t.n=1,this.activeMode.mode1UpLit.updateComplete;case 1:return this.jumpToIndex(i),null===(e=this.plugins.textSelection)||void 0===e||e.textSelectionManager.stopPageFlip(this.refs.$brContainer),null===(n=this.plugins.translate)||void 0===n||n.textSelectionManager.stopPageFlip(this.refs.$brContainer),this.trigger(An.eventNames.fragmentChange),this.trigger(An.eventNames.fullscreenToggled),t.n=2,new Promise(function(t){return setTimeout(t,0)});case 2:this.resize(),this.refs.$br.removeClass("BRfullscreenAnimation");case 3:return t.a(2)}},t,this)})),An.prototype.exitFullScreen=Cn(On().m(function t(){var e,n,r;return On().w(function(t){for(;;)switch(t.n){case 0:return this.refs.$br.addClass("BRfullscreenAnimation"),kn(document).off("keyup",this._fullscreenCloseHandler),r=kn(window).width(),this.options.controls.twoPage.visible&&r<=this.onePageMinBreakpoint&&this.switchMode(this.constMode2up),this.isFullscreenActive=!1,this.$(".BRnav .BRicon.full").attr("title","Go fullscreen"),this.$(".BRnav .BRicon.full .BRtooltip").text("Go fullscreen"),this.trigger(An.eventNames.fullscreenToggled),this.updateBrClasses(),t.n=1,new Promise(function(t){return setTimeout(t,0)});case 1:if(this.resize(),!(this.activeMode instanceof ve)){t.n=2;break}return this.activeMode.mode1UpLit.scale=this.activeMode.mode1UpLit.computeDefaultScale(this.book.getPage(this.currentIndex())),this.activeMode.mode1UpLit.requestUpdate(),t.n=2,this.activeMode.mode1UpLit.updateComplete;case 2:null===(e=this.plugins.textSelection)||void 0===e||e.textSelectionManager.stopPageFlip(this.refs.$brContainer),null===(n=this.plugins.translate)||void 0===n||n.textSelectionManager.stopPageFlip(this.refs.$brContainer),this.trigger(An.eventNames.fragmentChange),this.refs.$br.removeClass("BRfullscreenAnimation");case 3:return t.a(2)}},t,this)})),An.prototype.toggleSlider=function(){var t=this.refs.$BRnav.find(".toggle_slider"),e=this.refs.$br.find(".BRnavMobile");t.toggleClass("active"),e.toggleClass("docked")},An.prototype.currentIndex=function(){if(this.mode==this.constMode1up||this.mode==this.constModeThumb)return this.firstIndex;if(this.mode==this.constMode2up)return t.clamp(this.firstIndex,0,this.book.getNumLeafs()-1);throw"currentIndex called for unimplemented mode "+this.mode},An.prototype.updateFirstIndex=function(t){var e,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).suppressFragmentChange,r=void 0!==n&&n;this.firstIndex!==t&&(this.firstIndex=t,this.suppressFragmentChange||r||this.trigger(An.eventNames.fragmentChange),null!==(e=this.plugins.search)&&void 0!==e&&e.options.initialSearchTerm&&!r&&(this.suppressFragmentChange=!1),this.trigger(An.eventNames.pageChanged),this.trigger(An.eventNames.userAction))},An.prototype.right=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.ariaLive,n=void 0===e||e,r=t.triggerStop,i=void 0===r||r;this.jumpToIndex("right",{ariaLive:n,triggerStop:i})},An.prototype.rightmost=function(){"rl"!=this.pageProgression?this.last():this.first()},An.prototype.left=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.ariaLive,n=void 0===e||e,r=t.triggerStop,i=void 0===r||r;this.jumpToIndex("left",{ariaLive:n,triggerStop:i})},An.prototype.leftmost=function(){"rl"!=this.pageProgression?this.first():this.last()},An.prototype.next=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.triggerStop,n=void 0===e||e,r=t.flipSpeed,i=void 0===r?null:r,o=t.ariaLive,a=void 0===o||o;this.jumpToIndex("next",{ariaLive:a,flipSpeed:i,triggerStop:n})},An.prototype.prev=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.triggerStop,n=void 0===e||e,r=t.flipSpeed,i=void 0===r?null:r,o=t.ariaLive,a=void 0===o||o;this.jumpToIndex("prev",{ariaLive:a,flipSpeed:i,triggerStop:n})},An.prototype.first=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.ariaLive,n=void 0===e||e,r=t.triggerStop,i=void 0!==r&&r;this.jumpToIndex(0,{ariaLive:n,triggerStop:i})},An.prototype.last=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.ariaLive,n=void 0===e||e,r=t.triggerStop,i=void 0!==r&&r;this.jumpToIndex(this.book.getNumLeafs()-1,{ariaLive:n,triggerStop:i})},An.prototype.initNavbar=s.prototype.init,In(s,"_components.navbar","init","initNavbar"),An.prototype.buildToolbarElement=w.prototype.buildToolbarElement,In(w,"_components.toolbar","buildToolbarElement"),An.prototype.initToolbar=w.prototype.initToolbar,In(w,"_components.toolbar","initToolbar"),An.prototype.buildShareDiv=w.prototype.buildShareDiv,In(w,"_components.toolbar","buildShareDiv"),An.prototype.buildInfoDiv=w.prototype.buildInfoDiv,In(w,"_components.toolbar","buildInfoDiv"),An.prototype.getToolBarHeight=w.prototype.getToolBarHeight,In(w,"_components.toolbar","getToolBarHeight"),An.prototype.getPageURI=M.prototype.getPageURI,In(M,"book","getPageURI"),An.prototype.updateFromParams=function(t){var e,n=t.mode,r=void 0===n?0:n,i=t.init,o=void 0!==i&&i,a=t.fragmentChange,s=void 0!==a&&a;r&&this.switchMode(r,{init:o,suppressFragmentChange:!s}),void 0!==t.index?t.index!=this.currentIndex()&&this.jumpToIndex(t.index):void 0!==t.page&&t.page!=this.book.getPageNum(this.currentIndex())&&this.jumpToPage(t.page),null!==(e=this.plugins.search)&&void 0!==e&&e.enabled&&void 0!==t.search&&this.plugins.search.searchTerm!==t.search&&this.$(".BRsearchInput").val(t.search),this.enableThemesPlugin&&void 0!==t.theme&&this.updateTheme(t.theme)},An.prototype.canSwitchToMode=function(t){return t!=this.constMode2up&&t!=this.constModeThumb||!(this.book.getNumLeafs()<2)},An.prototype._getPageURI=function(t,e,n){var r=this.book.getPage(t,!1);return r?(void 0===e&&(e=r.height/this.twoPage.height),r.getURI(e,n)):this.imagesBaseURL+"transparent.png"},An.prototype.showProgressPopup=function(t,e){var n=this;if(!this.popup){if(this.popup=document.createElement("div"),kn(this.popup).prop("className","BRprogresspopup"),"function"==typeof e){var r=document.createElement("button");r.setAttribute("title","close"),r.setAttribute("class","close-popup");var i=document.createElement("span");i.setAttribute("class","icon icon-close-dark"),kn(r).append(i),r.addEventListener("click",function(){e(),n.removeProgressPopup()}),kn(this.popup).append(r)}var o=document.createElement("div");if(kn(o).css({height:"20px"}).prop("className","BRprogressbar"),kn(this.popup).append(o),t){var a=document.createElement("div");a.innerHTML=t,kn(this.popup).append(a)}kn(this.popup).appendTo(this.refs.$br)}},An.prototype.removeProgressPopup=function(){kn(this.popup).remove(),this.$(".BRprogresspopup").remove(),this.popup=null},An.prototype.initUIStrings=function(){var t={".logo":"Go to Archive.org",".zoom_in":"Zoom in",".zoom_out":"Zoom out",".onepg":"One-page view",".twopg":"Two-page view",".thumb":"Thumbnail view",".print":"Print this page",".embed":"Embed BookReader",".link":"Link to this book (and page)",".bookmark":"Bookmark this page",".share":"Share this book",".info":"About this book",".full":"Go fullscreen",".toggle_slider":"Toggle page controls",".book_left":"Flip left",".book_right":"Flip right",".play":"Play",".pause":"Pause",".book_top":"First page",".book_bottom":"Last page",".book_leftmost":"First page",".book_rightmost":"Last page"};for(var e in"rl"==this.pageProgression&&(t[".book_leftmost"]="Last page",t[".book_rightmost"]="First page"),t)this.$(e).prop("title",t[e])},An.prototype.reloadImages=function(){this.refs.$brContainer.find("img").each(function(t,e){if(!e.complete||0===e.naturalHeight){var n=e.src;e.src="",setTimeout(function(){e.src=n},1e3)}})},An.prototype.getFooterHeight=function(){var t=this.mode==this.constMode2up?this.refs.$BRfooter:this.refs.$BRnav;if(t&&this.refs.$BRfooter){var e=t.outerHeight(),n=parseInt(this.refs.$BRfooter.css("bottom"));if(!isNaN(e)&&!isNaN(n))return e+n}return 0},An.prototype.paramsFromCurrent=function(){var t,e={},n=this.currentIndex(),r=this.book.getPageNum(n);return(0===r||r)&&(e.page=r),e.index=n,e.mode=this.mode,this.isFullscreenActive&&(e.view="theater"),null!==(t=this.plugins.search)&&void 0!==t&&t.enabled&&(e.search=this.plugins.search.searchTerm),e},An.prototype.paramsFromFragment=function(e){var n={};"#"==e.substr(0,1)&&(e=e.substr(1));var r=parseInt(/^\d+$/.exec(e));if(!isNaN(r))return n.index=r,n;for(var i=e.split("/"),o={},a=0;a<i.length;a+=2)o[i[a]]=i[a+1];return"1up"==o.mode?n.mode=this.constMode1up:"2up"==o.mode?n.mode=this.constMode2up:"thumb"==o.mode&&(n.mode=this.constModeThumb),void 0!==o.page&&(n.page=decodeURIComponent(o.page)),null!=o.search&&(n.search=t.decodeURIComponentPlus(o.search)),null!=o.theme&&(n.theme=o.theme),n},An.prototype.fragmentFromParams=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"hash",r=[];if(void 0!==e.page?r.push("page",encodeURIComponent(e.page)):void 0!==e.index&&r.push("page","n"+e.index),void 0!==e.mode)if(e.mode==this.constMode1up)r.push("mode","1up");else if(e.mode==this.constMode2up)r.push("mode","2up");else{if(e.mode!=this.constModeThumb)throw"fragmentFromParams called with unknown mode "+e.mode;r.push("mode","thumb")}return e.search&&"hash"===n&&r.push("search",t.encodeURIComponentPlus(e.search)),r.join("/")},An.prototype.queryStringFromParams=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"hash",r=new URLSearchParams(e);t.view?r.set("view",t.view):r.delete("view"),t.search&&"history"===n&&r.set("q",t.search);var i=r.toString();return i?"?"+i:""},An.prototype.$=function(t){return this.refs.$br.find(t)},window.BookReader=An}(),i=r.O(i)}();
3
3
  //# sourceMappingURL=BookReader.js.map