@pronto-tools-and-more/files 12.42.0 → 12.43.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (340) hide show
  1. package/files/framework/src/default/storefront/buildInfo.json +4 -4
  2. package/files/framework/src/default/storefront/deep-link-landing/purple-deep-link-landing.js +1 -1
  3. package/files/framework/src/default/storefront/index.html +2 -2
  4. package/files/framework/src/default/storefront/modules/common.js +1 -1201
  5. package/files/framework/src/default/storefront/modules/main.js +1 -1
  6. package/files/framework/src/default/storefront/modules/styles.css +1 -1
  7. package/files/framework-latest/src/default/content/assets/FONTAWESOME_LICENSE.txt +34 -0
  8. package/files/framework-latest/src/default/content/assets/fonts/OpenSans-Bold.ttf +0 -0
  9. package/files/framework-latest/src/default/content/assets/fonts/OpenSans-BoldItalic.ttf +0 -0
  10. package/files/framework-latest/src/default/content/assets/fonts/OpenSans-ExtraBold.ttf +0 -0
  11. package/files/framework-latest/src/default/content/assets/fonts/OpenSans-ExtraBoldItalic.ttf +0 -0
  12. package/files/framework-latest/src/default/content/assets/fonts/OpenSans-Italic.ttf +0 -0
  13. package/files/framework-latest/src/default/content/assets/fonts/OpenSans-Light.ttf +0 -0
  14. package/files/framework-latest/src/default/content/assets/fonts/OpenSans-LightItalic.ttf +0 -0
  15. package/files/framework-latest/src/default/content/assets/fonts/OpenSans-Regular.ttf +0 -0
  16. package/files/framework-latest/src/default/content/assets/fonts/OpenSans-SemiBold.ttf +0 -0
  17. package/files/framework-latest/src/default/content/assets/fonts/OpenSans-SemiBoldItalic.ttf +0 -0
  18. package/files/framework-latest/src/default/content/assets/fonts/RobotoSlab-Bold.ttf +0 -0
  19. package/files/framework-latest/src/default/content/assets/ic_arrow.svg +1 -0
  20. package/files/framework-latest/src/default/content/assets/ic_audio.svg +19 -0
  21. package/files/framework-latest/src/default/content/assets/ic_bookmark.svg +10 -0
  22. package/files/framework-latest/src/default/content/assets/ic_bookmark_active.svg +9 -0
  23. package/files/framework-latest/src/default/content/assets/ic_close.svg +16 -0
  24. package/files/framework-latest/src/default/content/assets/ic_download.svg +13 -0
  25. package/files/framework-latest/src/default/content/assets/ic_download_circle.svg +15 -0
  26. package/files/framework-latest/src/default/content/assets/ic_download_completed.svg +12 -0
  27. package/files/framework-latest/src/default/content/assets/ic_download_completed_circle.svg +12 -0
  28. package/files/framework-latest/src/default/content/assets/ic_downloading.svg +13 -0
  29. package/files/framework-latest/src/default/content/assets/ic_downloading_circle.svg +15 -0
  30. package/files/framework-latest/src/default/content/assets/ic_font_size.svg +1 -0
  31. package/files/framework-latest/src/default/content/assets/ic_left.svg +15 -0
  32. package/files/framework-latest/src/default/content/assets/ic_left_arrow.svg +11 -0
  33. package/files/framework-latest/src/default/content/assets/ic_night_mode.svg +20 -0
  34. package/files/framework-latest/src/default/content/assets/ic_night_mode_active.svg +20 -0
  35. package/files/framework-latest/src/default/content/assets/ic_overlay_loading.svg +13 -0
  36. package/files/framework-latest/src/default/content/assets/ic_pause.svg +19 -0
  37. package/files/framework-latest/src/default/content/assets/ic_play.svg +16 -0
  38. package/files/framework-latest/src/default/content/assets/ic_player.svg +19 -0
  39. package/files/framework-latest/src/default/content/assets/ic_player_active.svg +19 -0
  40. package/files/framework-latest/src/default/content/assets/ic_right.svg +15 -0
  41. package/files/framework-latest/src/default/content/assets/ic_right_arrow.svg +11 -0
  42. package/files/framework-latest/src/default/content/assets/ic_seek_back.svg +19 -0
  43. package/files/framework-latest/src/default/content/assets/ic_seek_forward.svg +19 -0
  44. package/files/framework-latest/src/default/content/assets/ic_settings.svg +16 -0
  45. package/files/framework-latest/src/default/content/assets/ic_share_android.svg +11 -0
  46. package/files/framework-latest/src/default/content/assets/ic_share_ios.svg +13 -0
  47. package/files/framework-latest/src/default/content/assets/ic_speech.svg +15 -0
  48. package/files/framework-latest/src/default/content/assets/ic_speech_female.svg +11 -0
  49. package/files/framework-latest/src/default/content/assets/ic_speech_male.svg +11 -0
  50. package/files/framework-latest/src/default/content/assets/ic_speech_rate.svg +11 -0
  51. package/files/framework-latest/src/default/content/assets/ic_toc.svg +22 -0
  52. package/files/framework-latest/src/default/content/assets/ic_video.svg +21 -0
  53. package/files/framework-latest/src/default/content/assets/ic_zoom.svg +1 -0
  54. package/files/framework-latest/src/default/content/assets/img/spinner.gif +0 -0
  55. package/files/framework-latest/src/default/content/assets/logo.png +0 -0
  56. package/files/framework-latest/src/default/content/assets/swiper/swiper-bundle.min.css +13 -0
  57. package/files/framework-latest/src/default/content/assets/swiper/swiper-bundle.min.js +1 -0
  58. package/files/framework-latest/src/default/content/assets/tail-spin.gif +0 -0
  59. package/files/framework-latest/src/default/content/assets/tail-spin.svg +32 -0
  60. package/files/framework-latest/src/default/content/core.css +29 -0
  61. package/files/framework-latest/src/default/content/core.js +10896 -0
  62. package/files/framework-latest/src/default/content/functions.css +2 -0
  63. package/files/framework-latest/src/default/content/functions.js +1 -0
  64. package/files/framework-latest/src/default/content/publish-press-author.css +407 -0
  65. package/files/framework-latest/src/default/content/publish-press-author.js +290 -0
  66. package/files/framework-latest/src/default/content/resources.json +1 -0
  67. package/files/framework-latest/src/default/content/theme.css +16 -0
  68. package/files/framework-latest/src/default/content/theme.js +720 -0
  69. package/files/framework-latest/src/default/content/tts.css +7 -0
  70. package/files/framework-latest/src/default/content/tts.js +5 -0
  71. package/files/framework-latest/src/default/content/uag.css +20 -0
  72. package/files/framework-latest/src/default/content/uag.js +166 -0
  73. package/files/framework-latest/src/default/info/css/style.css +328 -0
  74. package/files/framework-latest/src/default/info/font-awesome/HELP-US-OUT.txt +7 -0
  75. package/files/framework-latest/src/default/info/font-awesome/css/font-awesome.css +2337 -0
  76. package/files/framework-latest/src/default/info/font-awesome/css/font-awesome.min.css +4 -0
  77. package/files/framework-latest/src/default/info/font-awesome/fonts/FontAwesome.otf +0 -0
  78. package/files/framework-latest/src/default/info/font-awesome/fonts/fontawesome-webfont.eot +0 -0
  79. package/files/framework-latest/src/default/info/font-awesome/fonts/fontawesome-webfont.svg +2671 -0
  80. package/files/framework-latest/src/default/info/font-awesome/fonts/fontawesome-webfont.ttf +0 -0
  81. package/files/framework-latest/src/default/info/font-awesome/fonts/fontawesome-webfont.woff +0 -0
  82. package/files/framework-latest/src/default/info/font-awesome/fonts/fontawesome-webfont.woff2 +0 -0
  83. package/files/framework-latest/src/default/info/font-awesome/less/animated.less +34 -0
  84. package/files/framework-latest/src/default/info/font-awesome/less/bordered-pulled.less +25 -0
  85. package/files/framework-latest/src/default/info/font-awesome/less/core.less +12 -0
  86. package/files/framework-latest/src/default/info/font-awesome/less/fixed-width.less +6 -0
  87. package/files/framework-latest/src/default/info/font-awesome/less/font-awesome.less +18 -0
  88. package/files/framework-latest/src/default/info/font-awesome/less/icons.less +789 -0
  89. package/files/framework-latest/src/default/info/font-awesome/less/larger.less +13 -0
  90. package/files/framework-latest/src/default/info/font-awesome/less/list.less +19 -0
  91. package/files/framework-latest/src/default/info/font-awesome/less/mixins.less +60 -0
  92. package/files/framework-latest/src/default/info/font-awesome/less/path.less +15 -0
  93. package/files/framework-latest/src/default/info/font-awesome/less/rotated-flipped.less +20 -0
  94. package/files/framework-latest/src/default/info/font-awesome/less/screen-reader.less +5 -0
  95. package/files/framework-latest/src/default/info/font-awesome/less/stacked.less +20 -0
  96. package/files/framework-latest/src/default/info/font-awesome/less/variables.less +800 -0
  97. package/files/framework-latest/src/default/info/font-awesome/scss/_animated.scss +34 -0
  98. package/files/framework-latest/src/default/info/font-awesome/scss/_bordered-pulled.scss +25 -0
  99. package/files/framework-latest/src/default/info/font-awesome/scss/_core.scss +12 -0
  100. package/files/framework-latest/src/default/info/font-awesome/scss/_fixed-width.scss +6 -0
  101. package/files/framework-latest/src/default/info/font-awesome/scss/_icons.scss +789 -0
  102. package/files/framework-latest/src/default/info/font-awesome/scss/_larger.scss +13 -0
  103. package/files/framework-latest/src/default/info/font-awesome/scss/_list.scss +19 -0
  104. package/files/framework-latest/src/default/info/font-awesome/scss/_mixins.scss +60 -0
  105. package/files/framework-latest/src/default/info/font-awesome/scss/_path.scss +15 -0
  106. package/files/framework-latest/src/default/info/font-awesome/scss/_rotated-flipped.scss +20 -0
  107. package/files/framework-latest/src/default/info/font-awesome/scss/_screen-reader.scss +5 -0
  108. package/files/framework-latest/src/default/info/font-awesome/scss/_stacked.scss +20 -0
  109. package/files/framework-latest/src/default/info/font-awesome/scss/_variables.scss +800 -0
  110. package/files/framework-latest/src/default/info/font-awesome/scss/font-awesome.scss +18 -0
  111. package/files/framework-latest/src/default/info/fonts/Roboto-Bold.ttf +0 -0
  112. package/files/framework-latest/src/default/info/fonts/Roboto-Italic.ttf +0 -0
  113. package/files/framework-latest/src/default/info/fonts/Roboto-Light.ttf +0 -0
  114. package/files/framework-latest/src/default/info/fonts/Roboto-LightItalic.ttf +0 -0
  115. package/files/framework-latest/src/default/info/fonts/Roboto-Medium.ttf +0 -0
  116. package/files/framework-latest/src/default/info/fonts/Roboto-MediumItalic.ttf +0 -0
  117. package/files/framework-latest/src/default/info/fonts/Roboto-Regular.ttf +0 -0
  118. package/files/framework-latest/src/default/info/img/banner.png +0 -0
  119. package/files/framework-latest/src/default/info/index.html +94 -0
  120. package/files/framework-latest/src/default/info/theme.css +181 -0
  121. package/files/framework-latest/src/default/menuicons/account.png +0 -0
  122. package/files/framework-latest/src/default/menuicons/account@2x.png +0 -0
  123. package/files/framework-latest/src/default/menuicons/account@3x.png +0 -0
  124. package/files/framework-latest/src/default/menuicons/bookmarks.png +0 -0
  125. package/files/framework-latest/src/default/menuicons/bookmarks@2x.png +0 -0
  126. package/files/framework-latest/src/default/menuicons/bookmarks@3x.png +0 -0
  127. package/files/framework-latest/src/default/menuicons/calendar.png +0 -0
  128. package/files/framework-latest/src/default/menuicons/calendar@2x.png +0 -0
  129. package/files/framework-latest/src/default/menuicons/calendar@3x.png +0 -0
  130. package/files/framework-latest/src/default/menuicons/chain.png +0 -0
  131. package/files/framework-latest/src/default/menuicons/chain@2x.png +0 -0
  132. package/files/framework-latest/src/default/menuicons/chain@3x.png +0 -0
  133. package/files/framework-latest/src/default/menuicons/feedback.png +0 -0
  134. package/files/framework-latest/src/default/menuicons/feedback@2x.png +0 -0
  135. package/files/framework-latest/src/default/menuicons/feedback@3x.png +0 -0
  136. package/files/framework-latest/src/default/menuicons/forum.png +0 -0
  137. package/files/framework-latest/src/default/menuicons/forum@2x.png +0 -0
  138. package/files/framework-latest/src/default/menuicons/forum@3x.png +0 -0
  139. package/files/framework-latest/src/default/menuicons/info.png +0 -0
  140. package/files/framework-latest/src/default/menuicons/kiosk.png +0 -0
  141. package/files/framework-latest/src/default/menuicons/kiosk@2x.png +0 -0
  142. package/files/framework-latest/src/default/menuicons/kiosk@3x.png +0 -0
  143. package/files/framework-latest/src/default/menuicons/legal.png +0 -0
  144. package/files/framework-latest/src/default/menuicons/legal@2x.png +0 -0
  145. package/files/framework-latest/src/default/menuicons/legal@3x.png +0 -0
  146. package/files/framework-latest/src/default/menuicons/login.png +0 -0
  147. package/files/framework-latest/src/default/menuicons/login@2x.png +0 -0
  148. package/files/framework-latest/src/default/menuicons/login@3x.png +0 -0
  149. package/files/framework-latest/src/default/menuicons/logout.png +0 -0
  150. package/files/framework-latest/src/default/menuicons/logout@2x.png +0 -0
  151. package/files/framework-latest/src/default/menuicons/logout@3x.png +0 -0
  152. package/files/framework-latest/src/default/menuicons/newsfeed.png +0 -0
  153. package/files/framework-latest/src/default/menuicons/newsfeed@2x.png +0 -0
  154. package/files/framework-latest/src/default/menuicons/newsfeed@3x.png +0 -0
  155. package/files/framework-latest/src/default/menuicons/newsstand.png +0 -0
  156. package/files/framework-latest/src/default/menuicons/newsstand@2x.png +0 -0
  157. package/files/framework-latest/src/default/menuicons/newsstand@3x.png +0 -0
  158. package/files/framework-latest/src/default/menuicons/purple.png +0 -0
  159. package/files/framework-latest/src/default/menuicons/purple@2x.png +0 -0
  160. package/files/framework-latest/src/default/menuicons/purple@3x.png +0 -0
  161. package/files/framework-latest/src/default/menuicons/restore.png +0 -0
  162. package/files/framework-latest/src/default/menuicons/restore@2x.png +0 -0
  163. package/files/framework-latest/src/default/menuicons/restore@3x.png +0 -0
  164. package/files/framework-latest/src/default/menuicons/settings.png +0 -0
  165. package/files/framework-latest/src/default/menuicons/share.png +0 -0
  166. package/files/framework-latest/src/default/menuicons/share@2x.png +0 -0
  167. package/files/framework-latest/src/default/menuicons/share@3x.png +0 -0
  168. package/files/framework-latest/src/default/menuicons/shop.png +0 -0
  169. package/files/framework-latest/src/default/menuicons/shop@2x.png +0 -0
  170. package/files/framework-latest/src/default/menuicons/shop@3x.png +0 -0
  171. package/files/framework-latest/src/default/menuicons/socialmedia.png +0 -0
  172. package/files/framework-latest/src/default/menuicons/socialmedia@2x.png +0 -0
  173. package/files/framework-latest/src/default/menuicons/socialmedia@3x.png +0 -0
  174. package/files/framework-latest/src/default/menuicons/subscriptions.png +0 -0
  175. package/files/framework-latest/src/default/menuicons/subscriptions@2x.png +0 -0
  176. package/files/framework-latest/src/default/menuicons/subscriptions@3x.png +0 -0
  177. package/files/framework-latest/src/default/menuicons/voucher.png +0 -0
  178. package/files/framework-latest/src/default/menuicons/voucher@2x.png +0 -0
  179. package/files/framework-latest/src/default/menuicons/voucher@3x.png +0 -0
  180. package/files/framework-latest/src/default/menuicons/website.png +0 -0
  181. package/files/framework-latest/src/default/menuicons/website@2x.png +0 -0
  182. package/files/framework-latest/src/default/menuicons/website@3x.png +0 -0
  183. package/files/framework-latest/src/default/onboarding/3rdpartylicenses.txt +574 -0
  184. package/files/framework-latest/src/default/onboarding/assets/config/message.json +7 -0
  185. package/files/framework-latest/src/default/onboarding/assets/config/onboarding.json +48 -0
  186. package/files/framework-latest/src/default/onboarding/assets/config/onboarding_images/1_Welcome.png +0 -0
  187. package/files/framework-latest/src/default/onboarding/assets/config/onboarding_images/2_MenuPhone.jpg +0 -0
  188. package/files/framework-latest/src/default/onboarding/assets/config/onboarding_images/2_MenuTablet.jpg +0 -0
  189. package/files/framework-latest/src/default/onboarding/assets/config/onboarding_images/3_NewsstandPhone.jpg +0 -0
  190. package/files/framework-latest/src/default/onboarding/assets/config/onboarding_images/3_NewsstandTablet.jpg +0 -0
  191. package/files/framework-latest/src/default/onboarding/assets/config/onboarding_images/4_PublicationPhone.jpg +0 -0
  192. package/files/framework-latest/src/default/onboarding/assets/config/onboarding_images/4_PublicationTablet.jpg +0 -0
  193. package/files/framework-latest/src/default/onboarding/assets/config/onboarding_images/5_NewsfeedPhone.jpg +0 -0
  194. package/files/framework-latest/src/default/onboarding/assets/config/onboarding_images/5_NewsfeedTablet.jpg +0 -0
  195. package/files/framework-latest/src/default/onboarding/assets/config/onboarding_images/6_FeaturesPhone.jpg +0 -0
  196. package/files/framework-latest/src/default/onboarding/assets/config/onboarding_images/6_FeaturesTablet.jpg +0 -0
  197. package/files/framework-latest/src/default/onboarding/assets/config/onboarding_videos/BLI_Cover-Image-Video_1.jpg +0 -0
  198. package/files/framework-latest/src/default/onboarding/assets/config/onboarding_videos/BLI_Cover-Image-Video_4.jpg +0 -0
  199. package/files/framework-latest/src/default/onboarding/assets/config/style.json +19 -0
  200. package/files/framework-latest/src/default/onboarding/assets/config/url.json +5 -0
  201. package/files/framework-latest/src/default/onboarding/assets/font/Ionicons/ionicons.ttf +0 -0
  202. package/files/framework-latest/src/default/onboarding/assets/font/OpenSans/OpenSans-Bold.ttf +0 -0
  203. package/files/framework-latest/src/default/onboarding/assets/font/OpenSans/OpenSans-BoldItalic.ttf +0 -0
  204. package/files/framework-latest/src/default/onboarding/assets/font/OpenSans/OpenSans-ExtraBold.ttf +0 -0
  205. package/files/framework-latest/src/default/onboarding/assets/font/OpenSans/OpenSans-ExtraBoldItalic.ttf +0 -0
  206. package/files/framework-latest/src/default/onboarding/assets/font/OpenSans/OpenSans-Italic.ttf +0 -0
  207. package/files/framework-latest/src/default/onboarding/assets/font/OpenSans/OpenSans-Light.ttf +0 -0
  208. package/files/framework-latest/src/default/onboarding/assets/font/OpenSans/OpenSans-LightItalic.ttf +0 -0
  209. package/files/framework-latest/src/default/onboarding/assets/font/OpenSans/OpenSans-Regular.ttf +0 -0
  210. package/files/framework-latest/src/default/onboarding/assets/font/OpenSans/OpenSans-SemiBold.ttf +0 -0
  211. package/files/framework-latest/src/default/onboarding/assets/font/OpenSans/OpenSans-SemiBoldItalic.ttf +0 -0
  212. package/files/framework-latest/src/default/onboarding/assets/font/fonts.css +73 -0
  213. package/files/framework-latest/src/default/onboarding/favicon.ico +0 -0
  214. package/files/framework-latest/src/default/onboarding/index.html +15 -0
  215. package/files/framework-latest/src/default/onboarding/main.js +1 -0
  216. package/files/framework-latest/src/default/onboarding/polyfills-es5.js +1 -0
  217. package/files/framework-latest/src/default/onboarding/polyfills.js +1 -0
  218. package/files/framework-latest/src/default/onboarding/runtime.js +1 -0
  219. package/files/framework-latest/src/default/onboarding/styles.css +1 -0
  220. package/files/framework-latest/src/default/onboarding/vendor.js +1 -0
  221. package/files/framework-latest/src/default/readmode/custom.js +40 -0
  222. package/files/framework-latest/src/default/readmode/ic_audio.svg +19 -0
  223. package/files/framework-latest/src/default/readmode/ic_close.svg +16 -0
  224. package/files/framework-latest/src/default/readmode/ic_font_size.svg +1 -0
  225. package/files/framework-latest/src/default/readmode/ic_night_mode.svg +20 -0
  226. package/files/framework-latest/src/default/readmode/ic_pause.svg +19 -0
  227. package/files/framework-latest/src/default/readmode/ic_play.svg +16 -0
  228. package/files/framework-latest/src/default/readmode/ic_speech.svg +15 -0
  229. package/files/framework-latest/src/default/readmode/ic_speech_female.svg +11 -0
  230. package/files/framework-latest/src/default/readmode/ic_speech_male.svg +11 -0
  231. package/files/framework-latest/src/default/storefront/3rdpartylicenses.txt +1065 -0
  232. package/files/framework-latest/src/default/storefront/assets/access.json +10 -0
  233. package/files/framework-latest/src/default/storefront/assets/banner/banner_not_found.jpg +0 -0
  234. package/files/framework-latest/src/default/storefront/assets/downloadOptions.json +1 -0
  235. package/files/framework-latest/src/default/storefront/assets/faq.html +87 -0
  236. package/files/framework-latest/src/default/storefront/assets/features.json +3 -0
  237. package/files/framework-latest/src/default/storefront/assets/generic-widget.json +1 -0
  238. package/files/framework-latest/src/default/storefront/assets/login.html +329 -0
  239. package/files/framework-latest/src/default/storefront/assets/submit.css +7 -0
  240. package/files/framework-latest/src/default/storefront/assets/subscription-benefits.json +11 -0
  241. package/files/framework-latest/src/default/storefront/assets/termsofuse.html +123 -0
  242. package/files/framework-latest/src/default/storefront/assets/tts_config.json +3 -0
  243. package/files/framework-latest/src/default/storefront/assets/urls.json +11 -0
  244. package/files/framework-latest/src/default/storefront/buildInfo.json +7 -0
  245. package/files/framework-latest/src/default/storefront/deep-link-landing/index.html +1 -0
  246. package/files/framework-latest/src/default/storefront/deep-link-landing/purple-deep-link-landing.js +842 -0
  247. package/files/framework-latest/src/default/storefront/deep-link-landing/purple-deep-link-landing.js.LICENSE.txt +13 -0
  248. package/files/framework-latest/src/default/storefront/index.html +22 -0
  249. package/files/framework-latest/src/default/storefront/modules/DS_logo.svg +1 -0
  250. package/files/framework-latest/src/default/storefront/modules/alphaMask.png +0 -0
  251. package/files/framework-latest/src/default/storefront/modules/btn_backward.png +0 -0
  252. package/files/framework-latest/src/default/storefront/modules/btn_first.png +0 -0
  253. package/files/framework-latest/src/default/storefront/modules/btn_forward.png +0 -0
  254. package/files/framework-latest/src/default/storefront/modules/btn_fullwidth.png +0 -0
  255. package/files/framework-latest/src/default/storefront/modules/btn_fullwidth_active.png +0 -0
  256. package/files/framework-latest/src/default/storefront/modules/btn_last.png +0 -0
  257. package/files/framework-latest/src/default/storefront/modules/btn_pin.png +0 -0
  258. package/files/framework-latest/src/default/storefront/modules/btn_toc.png +0 -0
  259. package/files/framework-latest/src/default/storefront/modules/btn_zoom.png +0 -0
  260. package/files/framework-latest/src/default/storefront/modules/btn_zoom_active.png +0 -0
  261. package/files/framework-latest/src/default/storefront/modules/common.js +1 -0
  262. package/files/framework-latest/src/default/storefront/modules/default-node_modules_angular_forms_fesm2022_forms_mjs.js +1 -0
  263. package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_base-component_base-datacollection_component_ts-4706f8.js +1 -0
  264. package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_content_content_module_ts.js +1 -0
  265. package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_image_image_leandom_component_ts-projects_store-04fe61.js +1 -0
  266. package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_image_image_leandom_component_ts-projects_store-571069.js +1 -0
  267. package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_issue_issue_module_ts.js +1 -0
  268. package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_service_tts_tts_service_ts.js +1 -0
  269. package/files/framework-latest/src/default/storefront/modules/ic_backward.svg +16 -0
  270. package/files/framework-latest/src/default/storefront/modules/ic_close.svg +16 -0
  271. package/files/framework-latest/src/default/storefront/modules/ic_forward.svg +16 -0
  272. package/files/framework-latest/src/default/storefront/modules/ic_fullscreen.png +0 -0
  273. package/files/framework-latest/src/default/storefront/modules/ic_fullscreen@2x.png +0 -0
  274. package/files/framework-latest/src/default/storefront/modules/ic_fullscreen@3x.png +0 -0
  275. package/files/framework-latest/src/default/storefront/modules/ic_overlay_loading.svg +13 -0
  276. package/files/framework-latest/src/default/storefront/modules/ic_pause.png +0 -0
  277. package/files/framework-latest/src/default/storefront/modules/ic_pause.svg +19 -0
  278. package/files/framework-latest/src/default/storefront/modules/ic_pause@2x.png +0 -0
  279. package/files/framework-latest/src/default/storefront/modules/ic_pause@3x.png +0 -0
  280. package/files/framework-latest/src/default/storefront/modules/ic_play.png +0 -0
  281. package/files/framework-latest/src/default/storefront/modules/ic_play.svg +16 -0
  282. package/files/framework-latest/src/default/storefront/modules/ic_play@2x.png +0 -0
  283. package/files/framework-latest/src/default/storefront/modules/ic_play@3x.png +0 -0
  284. package/files/framework-latest/src/default/storefront/modules/ic_player.svg +17 -0
  285. package/files/framework-latest/src/default/storefront/modules/ic_player_active.svg +17 -0
  286. package/files/framework-latest/src/default/storefront/modules/ic_refresh.svg +16 -0
  287. package/files/framework-latest/src/default/storefront/modules/ic_seek_back.svg +19 -0
  288. package/files/framework-latest/src/default/storefront/modules/ic_seek_forward.svg +19 -0
  289. package/files/framework-latest/src/default/storefront/modules/ic_settings.svg +16 -0
  290. package/files/framework-latest/src/default/storefront/modules/ic_smallscreen.png +0 -0
  291. package/files/framework-latest/src/default/storefront/modules/ic_smallscreen@2x.png +0 -0
  292. package/files/framework-latest/src/default/storefront/modules/ic_smallscreen@3x.png +0 -0
  293. package/files/framework-latest/src/default/storefront/modules/ic_speech.svg +15 -0
  294. package/files/framework-latest/src/default/storefront/modules/ic_speech_female.svg +11 -0
  295. package/files/framework-latest/src/default/storefront/modules/ic_speech_male.svg +11 -0
  296. package/files/framework-latest/src/default/storefront/modules/icon_close.png +0 -0
  297. package/files/framework-latest/src/default/storefront/modules/main.js +1 -0
  298. package/files/framework-latest/src/default/storefront/modules/node_modules_clientjs_dist_client_base_min_js.js +1 -0
  299. package/files/framework-latest/src/default/storefront/modules/node_modules_mustache_mustache_js.js +1 -0
  300. package/files/framework-latest/src/default/storefront/modules/node_modules_purple_web-player_dist_webPresenter_js_vendor_js.js +1 -0
  301. package/files/framework-latest/src/default/storefront/modules/node_modules_purple_web-player_dist_webPresenter_js_webPresenter_min_js.js +1 -0
  302. package/files/framework-latest/src/default/storefront/modules/polyfills.js +1 -0
  303. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_common-pipes_common-pipes_module_ts-projects_storefront_src_app_c-295cec.js +1 -0
  304. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_common-pipes_common-pipes_module_ts-projects_storefront_src_app_c-7956f0.js +1 -0
  305. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_common-pipes_common-pipes_module_ts-projects_storefront_src_app_c-94b9b6.js +1 -0
  306. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_action-executor_action-executor_module_ts.js +1 -0
  307. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_ad_ad_module_ts.js +1 -0
  308. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_app-menu-xml_app-menu-xml_module_ts.js +1 -0
  309. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_base-component_base-datacollection_component_ts-project-6cb588.js +1 -0
  310. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_bookmark_bookmark_module_ts.js +1 -0
  311. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_catalog-content_content-body_content-body_module_ts.js +1 -0
  312. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_catalog-content_content-featured-image_content-featured-c9ba26.js +1 -0
  313. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_category_category_module_ts.js +1 -0
  314. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_collection_collection_module_ts.js +1 -0
  315. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_component_module_ts.js +1 -0
  316. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_coupon_coupon_module_ts.js +1 -0
  317. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_dev-components_user-tag-testing_user-tag-testing_module_ts.js +1 -0
  318. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_download-issues_download-issues_module_ts.js +1 -0
  319. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_dropdown_dropdown_module_ts.js +1 -0
  320. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_embeddable-view_embeddable-view_module_ts.js +1 -0
  321. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_iframe_iframe_module_ts.js +1 -0
  322. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_issue-search-result_issue-search-result_module_ts.js +1 -0
  323. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_login_login_module_ts.js +1 -0
  324. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_menu_menu_module_ts.js +1 -0
  325. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_product_product_module_ts.js +1 -0
  326. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_publication-completion_publication-completion_module_ts.js +1 -0
  327. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_publication_publication_module_ts.js +1 -0
  328. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_recommendations_recommendations_module_ts.js +1 -0
  329. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_search-field_search-field_module_ts.js +1 -0
  330. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_subscription_subscription_module_ts.js +1 -0
  331. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_swiper_swiper_module_ts.js +1 -0
  332. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_ticker_ticker_module_ts.js +1 -0
  333. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_toggle_toggle_module_ts.js +1 -0
  334. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_toolbar_toolbar_module_ts.js +1 -0
  335. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_web-presenter_presenter_presenter_module_ts.js +1 -0
  336. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_widget_widget_module_ts.js +1 -0
  337. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_config_common_config_ts.js +1 -0
  338. package/files/framework-latest/src/default/storefront/modules/runtime.js +1 -0
  339. package/files/framework-latest/src/default/storefront/modules/styles.css +1 -0
  340. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ var oI=Object.freeze,Kx=Object.defineProperty,Li=(se,E)=>oI(Kx(se,"raw",{value:oI(E||se.slice())})),sI,aI,lI,uI,cI,dI,fI,hI,pI,gI,mI,vI,_I,yI,EI,AI,CI,bI,SI,II,TI,DI,OI,PI,MI,wI,RI,NI;(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["main"],{3057:se=>{"use strict";function E(c){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(g){return typeof g}:function(g){return g&&"function"==typeof Symbol&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g})(c)}se.exports=function(){for(var g,s,f=[],d=window,S=d;S;){try{if(S.frames.__tcfapiLocator){g=S;break}}catch(R){}if(S===d.top)break;S=S.parent}g||(function R(){var U=d.document,q=!!d.frames.__tcfapiLocator;if(!q)if(U.body){var z=U.createElement("iframe");z.style.cssText="display:none",z.name="__tcfapiLocator",U.body.appendChild(z)}else setTimeout(R,5);return!q}(),d.__tcfapi=function(){for(var R=arguments.length,U=new Array(R),q=0;q<R;q++)U[q]=arguments[q];if(!U.length)return f;"setGdprApplies"===U[0]?U.length>3&&2===parseInt(U[1],10)&&"boolean"==typeof U[3]&&(s=U[3],"function"==typeof U[2]&&U[2]("set",!0)):"ping"===U[0]?"function"==typeof U[2]&&U[2]({gdprApplies:s,cmpLoaded:!1,cmpStatus:"stub"}):f.push(U)},d.addEventListener("message",function(R){var U="string"==typeof R.data,q={};if(U)try{q=JSON.parse(R.data)}catch(ve){}else q=R.data;var z="object"===E(q)&&null!==q?q.__tcfapiCall:null;z&&window.__tcfapi(z.command,z.version,function(ve,de){var V={__tcfapiReturn:{returnValue:ve,success:de,callId:z.callId}};R&&R.source&&R.source.postMessage&&R.source.postMessage(U?JSON.stringify(V):V,"*")},z.parameter)},!1))}},6067:(se,E,c)=>{"use strict";c.d(E,{G:()=>s,r:()=>g});var g=function(f){return f.ISSUE="ISSUE",f.ARTICLE="ARTICLE",f.ISSUE_ARTICLE="ISSUE_ARTICLE",f.READ_MODE_ARTICLE="READ_MODE_ARTICLE",f}(g||{}),s=function(f){return f.DOWNLOAD_STARTED="DOWNLOAD_STARTED",f.DOWNLOAD_CANCELLED="DOWNLOAD_CANCELLED",f.DELETED="DELETED",f.DOWNLOADED="DOWNLOADED",f.DOWNLOAD_FAILED="DOWNLOAD_FAILED",f}(s||{})},5159:(se,E,c)=>{"use strict";c.d(E,{Z:()=>Ft});var g=c(9379),s=c(467),f=c(177),d=c(4438),S=c(3331),R=c(4404),U=c(7673),q=c(1985),z=c(8750);const{isArray:ve}=Array;var V=c(4360);var K=c(1584),ee=c(3726),he=c(4843),Ae=c(1594),ue=c(5558),oe=c(5964),_=c(5245),O=c(152),x=c(7616),B=c(6843),G=c(873),pe=c(4452),le=c(8075),W=c(9745),te=c(4945),ae=c(8251),_e=c(3178),Le=c(2962),We=c(7598),dt=c(7879),Ye=c(8890),we=c(8582),ze=c(8004),Ke=c(9516),je=c(1510),Ze=c(5204),k=c(244),F=c(8745),Y=c(9118),P=c(3377),ce=c(693),Se=c(5102),Be=c(6350),Tt=c(1652);let Mt=(()=>{var dn;class kn{constructor(Jt,At){this.purpleService=Jt,this.globalService=At}init(){var Jt=this;return(0,s.A)(function*(){if(!Jt.globalService.getData("appSettings")){const At=Zone.current.scheduleMacroTask("AppSettings-resolved",()=>{},{},()=>{},()=>{});try{let Hn=yield Jt.purpleService.getCatalogAppSettings({first:200}),Yn=Hn.nodes;for(;Hn.hasNextPage;)Hn=yield Jt.purpleService.getCatalogAppSettings({first:200,after:Hn.cursor}),Yn=Yn.concat(Hn.nodes);Jt.setGlobalSettings(Yn)}catch(Hn){console.warn("Error getting app settings:",Hn)}finally{At.invoke()}}})()}setGlobalSettings(Jt){var At;const Hn=this.convertToNestedStructure(Jt);this.globalService.setData("appSettings",(0,g.A)((0,g.A)({},null!==(At=this.globalService.getData("appSettings"))&&void 0!==At?At:{}),Hn))}convertToNestedStructure(Jt){let At={};for(let{key:Hn,value:Yn}of Jt)this.setValue(At,Hn.split("."),Yn);return At}setValue(Jt,At,Hn){let Yn=At.length-1;for(let or=0;or<Yn;++or){let jt=At[or];if(!(jt in Jt)){const tn=!isNaN(Number(At[or+1]))||"_element_count"===At[or+1];Jt[jt]=tn?[]:{}}Jt=Jt[jt]}(!Jt[At[Yn]]||"object"!=typeof Jt[At[Yn]])&&(Jt[At[Yn]]=Hn)}}return(dn=kn).\u0275fac=function(Jt){return new(Jt||dn)(d.KVO(Se.Wj),d.KVO(Tt.d))},dn.\u0275prov=d.jDH({token:dn,factory:dn.\u0275fac,providedIn:"root"}),kn})();var He=c(4520),lt=c(5820),Et=c(4748),Ce=c(8482),ye=c(5927);function Ee(dn,kn){if(1&dn&&d.nrm(0,"div",3),2&dn){const ln=d.XpG(2);d.Y8G("config",ln.appBarConfig)}}function De(dn,kn){if(1&dn&&d.nrm(0,"storefront-app-bar",4),2&dn){const ln=d.XpG(2);d.Y8G("config",ln.appBarConfig)}}function Ge(dn,kn){if(1&dn&&d.DNE(0,Ee,1,1,"div",3)(1,De,1,1,"storefront-app-bar",4),2&dn){const ln=d.XpG();d.vxM(ln.domHelper.leanDom?0:1)}}function ge(dn,kn){1&dn&&d.nrm(0,"div",5)}function Me(dn,kn){1&dn&&d.nrm(0,"storefront-side-menu")}function Ve(dn,kn){if(1&dn&&d.DNE(0,ge,1,0,"div",5)(1,Me,1,0,"storefront-side-menu"),2&dn){const ln=d.XpG();d.vxM(ln.domHelper.leanDom?0:1)}}function rt(dn,kn){1&dn&&d.nrm(0,"router-outlet")}function at(dn,kn){if(1&dn&&d.nrm(0,"div",6),2&dn){const ln=d.XpG(2);d.Y8G("config",ln.navigationConfig)}}function ct(dn,kn){if(1&dn&&d.nrm(0,"storefront-tab-navigation",4),2&dn){const ln=d.XpG(2);d.Y8G("config",ln.navigationConfig)}}function Yt(dn,kn){if(1&dn&&d.DNE(0,at,1,1,"div",6)(1,ct,1,1,"storefront-tab-navigation",4),2&dn){const ln=d.XpG();d.vxM(ln.domHelper.leanDom?0:1)}}let Ft=(()=>{var dn;class kn{constructor(Jt,At,Hn,Yn,or,jt,tn,on,kt,Pt,It,Dt,Ct,sn,An,Qn,Fr,st,vt,bt,ht,wt,pn,Pn,jn,Fn,Ar,br,Wr){this.store=Jt,this.router=At,this.renderer=Hn,this.eventActionService=Yn,this.ngZone=or,this.injector=jt,this.contextService=tn,this.userTagService=on,this.appMenuService=kt,this.cleanUpService=Pt,this.document=It,this.purpleEnv=Dt,this.platformId=Ct,this.configLoaderService=sn,this.kioskConfigService=An,this.actionUrlService=Qn,this.analyticsService=Fr,this.purpleService=st,this.cacheService=vt,this.globalService=bt,this.elementRef=ht,this.appSettingsService=wt,this.viewService=pn,this.anchorService=Pn,this.appRef=jn,this.ssrService=Fn,this.traffectiveAdService=Ar,this.appData=br,this.domHelper=Wr,this.firstNavigation=!0,this.delta=0,this.hasNoAppAndNoCustomSideMenuSignal=(0,d.EWP)(()=>!this.purpleEnv.isApp&&this.appMenuService.hasNoCustomSideMenuSignal()),kn.appInstanceInjector=jt,console.debug("\n=== Env ===\nCATALOG_API_BASE_URL: ".concat(Dt.CATALOG_API_BASE_URL,"\nKIOSK_BASE_URL: ").concat(Dt.KIOSK_BASE_URL,"\nMANAGER_BASE_URL: ").concat(Dt.MANAGER_BASE_URL,"\nisApp: ").concat(Dt.isApp,"\nisUniversal: ").concat(Dt.isUniversal,"\n"))}updateLoggedIn(){this.loggedIn=this.contextService.isLoggedIn()}ngOnInit(){var Jt=this;return(0,s.A)(function*(){(0,f.UE)(Jt.platformId)&&Jt.appRef.isStable.pipe((0,Ae.$)(),(0,ue.n)(At=>At?(0,U.of)(!0):function Q(...dn){return 1===(dn=function de(dn){return 1===dn.length&&ve(dn[0])?dn[0]:dn}(dn)).length?(0,z.Tg)(dn[0]):new q.c(function ie(dn){return kn=>{let ln=[];for(let Jt=0;ln&&!kn.closed&&Jt<dn.length;Jt++)ln.push((0,z.Tg)(dn[Jt]).subscribe((0,V._)(kn,At=>{if(ln){for(let Hn=0;Hn<ln.length;Hn++)Hn!==Jt&&ln[Hn].unsubscribe();ln=null}kn.next(At)})))}}(dn))}(Jt.appRef.isStable.pipe((0,oe.p)(Hn=>Hn),(0,Ae.$)()),(0,K.O)(3e3)))).subscribe(()=>{var At;const Hn=new Event("PrebootComplete");document.dispatchEvent(Hn),null!==(At=window)&&void 0!==At&&null!==(At=At.prebootData)&&void 0!==At&&null!==(At=At.apps)&&void 0!==At&&At.length&&(window.prebootData.apps=[]),Jt.ssrService.updatePrebootStatus(!0)}),Jt.router.events.pipe((0,oe.p)(At=>At instanceof S._d),(0,Ae.$)()).subscribe(At=>{Jt.init(At)}),Jt.router.events.pipe((0,oe.p)(At=>At instanceof S._d),(0,_.i)(1)).subscribe(At=>{Jt.contextService.setPath(At)})})()}init(Jt){var At=this;return(0,s.A)(function*(){var Hn;if(At.globalService.init(),At.purpleEnv.isUniversal){var Yn,or,jt,tn,on,kt;const sn=Jt.snapshot.queryParams.skipSSR;if(sn&&(0,f.Vy)(At.platformId))return;let An={};localStorage.getItem("entitlementUserData")&&(0,f.UE)(At.platformId)&&(An=JSON.parse(localStorage.getItem("entitlementUserData"))||{});let Qn=[];localStorage.getItem("subscriptionCodes")&&(0,f.UE)(At.platformId)&&(Qn=JSON.parse(localStorage.getItem("subscriptionCodes"))||[]);let Fr=At.appData.preview;const st=Jt.snapshot.url;let vt=null===(Yn=st[0])||void 0===Yn?void 0:Yn.path;"preview"===vt&&(Fr=!0,vt=st[1].path),At.contextService.setBrand(vt);const bt={brand:vt,preview:Fr,configURL:Jt.snapshot.queryParams.configURL},ht=At.appData.host||At.document.location.host,wt=At.appData.appWebConfig;At.contextService.setIsCustomerDomainUsed(At.appData.customDomain),null!=wt&&null!==(or=wt.dynamicResources)&&void 0!==or&&or.lastModified&&At.contextService.setDynamicResourcesVersion(wt.dynamicResources.lastModified),localStorage.setItem("AppWebConfiguration",JSON.stringify(wt)),At.contextService.setPath(Jt);const pn=null==wt?void 0:wt.id;if(!pn)throw new Error("No appId found for "+ht+" brand: "+At.contextService.getBrand());let Pn=localStorage.getItem("deviceId");Pn||(Pn=(0,we.l)(),localStorage.setItem("deviceId",Pn));const jn=yield At.contextService.getIsCustomDomainUsed();bt.useCustomerDomain=jn;const Fn=new URL(window.location.href).origin,Ar=(0,f.UE)(At.platformId)&&jn?Fn:At.purpleEnv.CATALOG_API_BASE_URL,br={entitlementConfig:wt.entitlementConfig,appId:pn,appVersion:"",bundleId:"",deviceId:Pn,deviceModel:"web",deviceOs:"web",baseUrl:"".concat(At.purpleEnv.MANAGER_BASE_URL,"/delivery"),contentUrl:Ar,subscriptionCodes:Qn,platform:"web",preview:Fr,smallestScreenWidthDp:window.innerWidth,purple_version:null===(jt=At.purpleEnv)||void 0===jt||null===(jt=jt.buildInfo)||void 0===jt?void 0:jt.packageVersion,locale:"de_DE",onGraphQLError:Wr=>{console.log(Wr)}};br[x.d.ENTITLEMENT_TOKEN]=null===(tn=An)||void 0===tn?void 0:tn[x.d.ENTITLEMENT_TOKEN],br[x.d.ENTITLEMENT_REFRESH_TOKEN]=null===(on=An)||void 0===on?void 0:on[x.d.ENTITLEMENT_REFRESH_TOKEN],br[x.d.ENTITLEMENT_ROLES]=null===(kt=An)||void 0===kt?void 0:kt[x.d.ENTITLEMENT_ROLES],(!sn||(0,f.UE)(At.platformId))&&(yield At.purpleService.init(!0,At.configLoaderService,At.globalService,At.contextService,At.kioskConfigService,br,bt,At.router,At.actionUrlService,At.analyticsService,wt))}else At.contextService.setIsCustomerDomainUsed(!0),At.contextService.setPath(Jt),yield At.purpleService.init(!1,At.configLoaderService,At.globalService,At.contextService);At.ngZone.runOutsideAngular(()=>{(0,ee.R)(window,"scroll",{passive:!0}).pipe((0,O.B)(G.Lf)).subscribe(sn=>At.ngZone.run(()=>At.onScrollEnd(sn)))}),At.anchorService.init(At.store),null===(Hn=At.traffectiveAdService)||void 0===Hn||Hn.initDefaultConfig(At.store),At.purpleService.connectionState$.pipe((0,oe.p)(sn=>!!sn),(0,Ye.ZE)()).subscribe(sn=>{At.contextService.setMetadata("connection_state",sn.state)}),(0,Ye.Ne)().subscribe(sn=>At.contextService.updateDeviceSettings()),At.store.select((0,te.jZ)(B.O.ACCESS),sn=>At.access=sn),At.contextService.init(),yield Promise.all([At.eventActionService.init(),At.userTagService.init(),At.appSettingsService.init(),At.loadGlobalDataSources()]),At.context=yield(0,he._)(At.contextService.viewContext$.pipe((0,oe.p)(sn=>!!sn.userAttributes))),At.contextService.updateDeviceSettings(),At.contextService.viewContext$.subscribe(sn=>{At.context=sn,At.updateLoggedIn()}),window.addEventListener(We.YT,sn=>{At.onEntitlementMaybeChanged()});const Pt=yield At.purpleService.getMetadata();((yield At.purpleService.getState(G.sn))||void 0)!=Pt.entitlement_token&&At.cacheService.bustApiCache(),At.contextService.setFullMetadata((0,g.A)((0,g.A)({},At.contextService.getMetadata()),Pt));const Dt=Pt.issue_id;Dt&&(yield(0,le.CV)(At.router,{issue:Dt}));const Ct=yield At.purpleService.getAccountUserData();At.contextService.setAccountData(Ct),At.updateLoggedIn(),At.context=At.contextService.getContext(),At.setupViewHandling(),At.showView=!0,At.nativeAppBar=yield At.purpleService.isTitleBarEnabled(),At.nativeAppBar&&At.renderer.addClass(At.document.body,"no-app-bar"),yield At.cleanUpService.init(),At.cleanUpService.deleteExpiredIssues(),At.purpleEnv.isApp&&At.ngZone.runOutsideAngular(()=>{setInterval(()=>At.cleanUpService.deleteExpiredIssues(),6e4)})})()}onEntitlementMaybeChanged(Jt){var At=this;return(0,s.A)(function*(){if(void 0===Jt?Jt=yield At.purpleService.getMetadata([R.METADATA_KEY.ENTITLEMENT_TOKEN]).then(jt=>jt[R.METADATA_KEY.ENTITLEMENT_TOKEN]||void 0):!1===Jt&&(Jt=void 0),((yield At.purpleService.getState(G.sn))||void 0)!==Jt){const jt=yield At.purpleService.getEntitlementUserData(),tn=yield At.purpleService.getState(G.Z_).then(on=>on?JSON.parse(on):void 0);At.cacheService.bustApiCache();try{var Yn,or;null===(Yn=window.storefrontHooks)||void 0===Yn||null===(or=Yn.entitlementChanged)||void 0===or||or.call(Yn,{oldState:tn,newState:jt})}catch(on){console.error("Error in entitlementChanged hook:",on)}yield Promise.all([At.purpleService.setState(G.sn,"string"==typeof Jt?Jt:null),At.purpleService.setState(G.Z_,JSON.stringify(jt))])}})()}setupViewHandling(){this.viewService.view$.subscribe(({default:{viewConfig:Jt},routerEvent:At})=>{var Hn;if(this.firstNavigation&&this.contextService.setInitialUrl("#".concat(At.url)),this.contextService.setPathUrl("#".concat(At.url)),!this.loggedIn&&null!==(Hn=this.access)&&void 0!==Hn&&Hn.forceLogin&&this.firstNavigation)return this.firstNavigation=!1,this.eventActionService.processLoginAction({type:W.H.LOGIN},this);this.firstNavigation=!1,this.nativeAppBar||this.store.select((0,te.Vi)(Jt.appBar),Yn=>{this.appBarConfig=Yn,this.appBarConfig?this.renderer.removeClass(this.document.body,"no-app-bar"):this.renderer.addClass(this.document.body,"no-app-bar")},_e.lQ,_e.lQ,"selectAppBar"),this.store.select((0,te.LM)(Jt.navigation),Yn=>{this.navigationConfig=Yn,this.navigationConfig?this.renderer.removeClass(this.document.body,"no-navigation"):this.renderer.addClass(this.document.body,"no-navigation")},_e.lQ,_e.lQ,"selectTabNavigation")})}onScrollEnd(Jt){(0,Le.IL)(document.scrollingElement)<=G._&&window.dispatchEvent(new CustomEvent(We.Zm,{detail:{emitter:document.body}})),this.updateScrolledClasses(Jt)}updateScrolledClasses(Jt){const At=Jt.target.scrollTop||document.scrollingElement.scrollTop;let Hn=parseInt(getComputedStyle(document.body).getPropertyValue("--appBarHeight"),10);if(isNaN(Hn)&&(Hn=G._),At>Hn){if(document.body.classList.add(G.Md),this.lastScroll){const Yn=this.lastScroll-At>this.delta;At-this.lastScroll>this.delta?document.body.classList.add(G.BE):document.body.classList.remove(G.BE),Yn?document.body.classList.add(G.Ed):document.body.classList.remove(G.Ed)}this.lastScroll=At}else document.body.classList.remove(G.Md),document.body.classList.remove(G.Ed),document.body.classList.remove(G.BE),this.lastScroll=void 0}getId(){return"APP"}getContext(){return this.context}loadGlobalDataSources(){var Jt=this;return(0,s.A)(function*(){if((0,f.Vy)(Jt.platformId)||!Jt.purpleEnv.isUniversal){const At=[];Jt.store.select((0,te.m6)(),function(){var Hn=(0,s.A)(function*(Yn){Yn.globalData.forEach(or=>{let jt=(0,pe.O8)(Jt.injector,or,Jt.elementRef.nativeElement,Jt.document);At.push(jt.loadData({global:!0}))})});return function(Yn){return Hn.apply(this,arguments)}}()),yield Promise.all(At)}})()}}return(dn=kn).\u0275fac=function(Jt){return new(Jt||dn)(d.rXU(ae.B),d.rXU(S.Ix),d.rXU(d.sFG),d.rXU(ze.G),d.rXU(d.SKi),d.rXU(d.zZn),d.rXU(Ke.V),d.rXU(je.h),d.rXU(Ze.I),d.rXU(k.I),d.rXU(f.qQ),d.rXU(dt.r6),d.rXU(d.Agw),d.rXU(F.Bh),d.rXU(Y.x),d.rXU(P.p),d.rXU(ce.c),d.rXU(Se.Wj),d.rXU(Be._),d.rXU(Tt.d),d.rXU(d.aKT),d.rXU(Mt),d.rXU(He.z),d.rXU(lt.X),d.rXU(d.o8S),d.rXU(Et.i),d.rXU(Ce.y),d.rXU(dt.fj),d.rXU(ye.S))},dn.\u0275cmp=d.VBU({type:dn,selectors:[["storefront-root"]],standalone:!1,features:[d.Jv_([ae.B])],decls:7,vars:4,consts:[["name","modal"],["name","presenter"],[1,"bottom-sticky-elements"],[1,"pxp-app-bar",3,"config"],[3,"config"],[1,"pxp-side-menu"],[1,"pxp-tab-navigation",3,"config"]],template:function(Jt,At){1&Jt&&(d.DNE(0,Ge,2,1)(1,Ve,2,1)(2,rt,1,0,"router-outlet"),d.nrm(3,"router-outlet",0)(4,"router-outlet",1),d.j41(5,"div",2),d.DNE(6,Yt,2,1),d.k0s()),2&Jt&&(d.vxM(!At.nativeAppBar&&At.appBarConfig?0:-1),d.R7$(),d.vxM(At.hasNoAppAndNoCustomSideMenuSignal()?1:-1),d.R7$(),d.vxM(At.showView?2:-1),d.R7$(4),d.vxM(At.navigationConfig?6:-1))},styles:[".bottom-sticky-elements[_ngcontent-%COMP%]{bottom:0;left:0;right:0;position:fixed;z-index:9}"]}),kn})()},2261:(se,E,c)=>{"use strict";c.d(E,{F:()=>s,a:()=>f});var g=c(2348),s=function(d){return d.BACK="back",d.MENU="menu",d}(s||{});const f={id:null,scrollBehavior:g.K.SHRINK,logo:!0,leftButton:s.MENU}},2783:(se,E,c)=>{"use strict";c.d(E,{t:()=>R});var g=c(177),s=c(6483),f=c(3),d=c(9805),S=c(4438);let R=(()=>{var U;class q{}return(U=q).\u0275fac=function(ve){return new(ve||U)},U.\u0275mod=S.$C({type:U}),U.\u0275inj=S.G2t({imports:[g.MD,s.h,d.ButtonModule,f.pZ]}),q})()},1210:(se,E,c)=>{"use strict";c.d(E,{$:()=>ee});var g=c(9379),s=c(177),f=c(4438),d=c(4412),S=c(8179),R=c(5964),U=c(2962),q=c(362),z=c.n(q),ve=c(1184),de=c(24),V=c(8582),Q=c(5927),ie=c(9516),K=c(1652);let ee=(()=>{var he;class Ae{get ghost(){return this.isGhost()}get elementId(){return(this.config||this.baseConfig).id}get id(){return this.getId()}get regularContextId(){return this.domHelper.regularSelector(this.id)}get prefixedContextId(){return this.domHelper.prefixedSelector(this.id)}get template(){return(this.config||this.baseConfig).template}get regularTemplate(){return this.domHelper.regularSelector(this.template)}get prefixedTemplate(){return this.domHelper.prefixedSelector(this.template)}constructor(oe,_,O,x,B){this.injector=oe,this.elementRef=_,this.contextService=O,this.document=x,this.globalService=B,this.contextKeys=void 0,this.baseContext={},this.delete=new f.bkB,this.processing=new f.bkB,this.configChanges$=new d.t(null),this.componentContextChanges$=new d.t({}),this.inited=new d.t(!1),this.inspectorService=oe.get(de.j),this.platformId=oe.get(f.Agw),this.renderer=oe.get(f.sFG),this.transferState=oe.get(f.pJN),this.changeDetectorRef=oe.get(f.gRc),this.domHelper=oe.get(Q.S)}ngOnInit(){if(this.skipRender=this.baseConfig.skipSSR&&(0,s.Vy)(this.injector.get(f.Agw)),!this.skipRender){try{this.inspectorService.registerComponent(this.elementRef.nativeElement,this)}catch(oe){}this.outlet=(0,U.kO)(this.elementRef.nativeElement,this.document),this.configChanges$.next(this.baseConfig),this.viewContextChangesSubscription=this.contextService.viewContextChange$.pipe((0,R.p)(oe=>oe&&(this.isRefreshChange(oe.change)||oe.value.outlet===this.outlet))).subscribe(oe=>{this.contextKeys||this.rebuildContextKeys(),(!this.contextKeys||this.hasAnyContextKey(oe.change)||this.hasAContextKey(oe.change))&&this.handleChange(this.configChanges$.value,oe.value,this.componentContextChanges$.value,!0,oe.change)}),this.componentContextChangesSubscription=this.componentContextChanges$.subscribe(oe=>{Object.keys(oe).length>0&&this.handleChange(this.configChanges$.value,this.contextService.getCurrentViewContext(),oe,!0)}),this.configChangesSubscription=this.configChanges$.subscribe(oe=>{this.handleChange(oe,this.contextService.getCurrentViewContext(),this.componentContextChanges$.value,!1),this.contextKeys||this.rebuildContextKeys()}),this.inited.next(!0)}}ngOnChanges(oe){}ngOnDestroy(){this.skipRender||(this.configChangesSubscription&&(this.configChangesSubscription.unsubscribe(),this.viewContextChangesSubscription.unsubscribe(),this.componentContextChangesSubscription.unsubscribe()),this.inspectorService.unregisterComponent(this.elementRef.nativeElement))}rebuildContextKeys(){this.contextKeys=new Set,(0,ve.Fl)(this.stripChildConfigs(structuredClone(this.baseConfig)),this.contextKeys)}getElementClass(){let oe="";const _=(this.config||this.baseConfig).class;return _&&(oe=Array.isArray(_)?_.map(O=>(0,S.v3)(O)).join(" "):(0,S.v3)(_)),this.manageServerSetClasses(oe),oe}hasAContextKey(oe){if(!oe)return!1;const _=this.getContextKey();return!(!_||!oe[_])}hasAnyContextKey(oe){for(const _ in oe)if(this.contextKeys.has(_))return!0;return this.isRefreshChange(oe)}isRefreshChange(oe){return 0===Object.keys(oe).length}stripChildConfigs(oe){return oe}handleChange(oe,_,O,x,B){if(!oe||!_||!O)return;const G=(0,g.A)((0,g.A)((0,g.A)({},_),this.baseContext),O),pe=(0,S.uQ)(this.stripChildConfigs((0,g.A)((0,g.A)((0,g.A)({},this.defaultConfig),this.config),oe)),G,this.contextService.$functions,this.globalService.getGlobalData());this.context||(this.context={}),(0,S.ZY)(pe,this.getConfigEscapeProperties())&&(!this.config||this.hasConfigChanged(pe)||x&&this.hasContextChanged(G)||this.hasAContextKey(B))?(this.context=(0,g.A)((0,g.A)({},this.context),G),this.config=(0,g.A)((0,g.A)({},JSON.parse(JSON.stringify(this.defaultConfig))),pe),this.onConfigChanges()):this.context=(0,g.A)((0,g.A)({},this.context),G)}getElementRef(){return this.elementRef}getContext(){return this.context}getConfigEscapeProperties(){return["content","condition"]}getType(){return this.constructor.type}getId(){return(0,S.v3)((this.config||this.baseConfig).id)}getTrackingParams(){return{}}getTrackingBaseKey(){return this.elementId||this.getType()}getErrorDialogArgs(oe){return[]}onConfigChanges(){}isGhost(){return!1}hasConfigChanged(oe){return!z()(oe,this.config)}hasContextChanged(oe){if(oe.resolvedDependencies&&!this.context.resolvedDependencies)return!0;const _=JSON.stringify(this.baseConfig);return _.indexOf(S.mF)>-1&&!!Object.keys(oe).filter(x=>_.indexOf("".concat(S.mF,".").concat(x))>-1||_.indexOf("".concat(S.mF,"[").concat(x,"]"))>-1).find(x=>oe[x]!==this.context[x]&&!z()(oe[x],this.context[x]))}setComponentContext(oe,_){this.componentContextChanges$.next((0,g.A)((0,g.A)({},this.componentContextChanges$.getValue()),{},{[oe]:_}))}onStateChange(oe){!oe||null!=oe&&oe.baseConfig?this.configChanges$.next(this.baseConfig):null!=oe&&oe.baseContext&&this.handleChange(this.configChanges$.value,this.baseContext,this.componentContextChanges$.value,!0)}getContextKey(){return null}manageServerSetClasses(oe){oe&&((0,s.Vy)(this.platformId)?this.handleServerSideClasses(oe):this.handleClientSideClasses(oe))}handleServerSideClasses(oe){if(!this.componentGeneratedId)return this.componentGeneratedId=(0,f.zw6)((0,V.l)()),this.renderer.setAttribute(this.elementRef.nativeElement,"data-transfer-id",this.componentGeneratedId),void this.transferState.set(this.componentGeneratedId,oe);const _=this.transferState.get(this.componentGeneratedId,null);_&&_!==oe&&this.transferState.set(this.componentGeneratedId,oe)}handleClientSideClasses(oe){if(this.elementRef.nativeElement.hasAttribute("data-transfer-id")){this.componentGeneratedId=(0,f.zw6)(this.elementRef.nativeElement.getAttribute("data-transfer-id"));const _=this.transferState.get(this.componentGeneratedId,null);_&&_!==oe&&this.removeExtraClasses(_,oe),this.renderer.removeAttribute(this.elementRef.nativeElement,"data-transfer-id")}}removeExtraClasses(oe,_){const O=oe.split(" "),x=_.split(" "),B=O.filter(G=>!x.includes(G));B.length>0&&B.forEach(G=>{this.renderer.removeClass(this.elementRef.nativeElement,G)})}}return(he=Ae).\u0275fac=function(oe){return new(oe||he)(f.rXU(f.zZn),f.rXU(f.aKT),f.rXU(ie.V),f.rXU(s.qQ),f.rXU(K.d))},he.\u0275dir=f.FsC({type:he,hostVars:9,hostBindings:function(oe,_){2&oe&&(f.BMQ("id",_.elementId)("context-id",_.regularContextId)("data-pxp-context-id",_.prefixedContextId)("template",_.regularTemplate)("data-pxp-template",_.prefixedTemplate),f.HbH(_.getElementClass()),f.AVh("ghost",_.ghost))},inputs:{baseConfig:"baseConfig",baseContext:"baseContext"},outputs:{delete:"delete",processing:"processing"},standalone:!1,features:[f.OA$]}),Ae})()},395:(se,E,c)=>{"use strict";c.d(E,{Q:()=>ae});var g=c(467),s=c(9379),f=c(177),d=c(4438),S=c(8179),R=c(1210);const U={tap:null,attributes:{}};var q=c(8251),z=c(6697),ve=c(9516),de=c(8004),V=c(9118),Q=c(1652),ie=c(5820),K=c(5927),ee=c(8909),he=c(7240),Ae=c(6962);const ue=["button"],oe=(_e,Le)=>[_e,Le];function _(_e,Le){1&_e&&d.nrm(0,"div",5)}function O(_e,Le){if(1&_e&&d.DNE(0,_,1,0,"div",5),2&_e){const We=d.XpG();d.vxM(We.processingAction?0:-1)}}function x(_e,Le){1&_e&&d.nrm(0,"storefront-spinner",6)}function B(_e,Le){if(1&_e&&d.DNE(0,x,1,0,"storefront-spinner",6),2&_e){const We=d.XpG();d.vxM(We.processingAction?0:-1)}}function G(_e,Le){}function pe(_e,Le){if(1&_e&&(d.qex(0),d.j41(1,"a",7),d.DNE(2,G,0,0,"ng-template",8),d.k0s(),d.bVm()),2&_e){const We=d.XpG(),dt=d.sdS(6);d.R7$(),d.Y8G("href",We.anchorPath||"/",d.B4B),d.R7$(),d.Y8G("ngTemplateOutlet",dt)}}function le(_e,Le){if(1&_e&&(d.j41(0,"div",11),d.nrm(1,"img",12),d.k0s()),2&_e){const We=d.XpG(2);d.Y8G("ngClass",We.iconLeft.cssClasses),d.R7$(),d.Y8G("src",We.iconLeft.url,d.B4B)}}function W(_e,Le){if(1&_e&&(d.DNE(0,le,2,2,"div",9),d.nrm(1,"span",10)),2&_e){const We=d.XpG();d.Y8G("ngIf",We.iconLeft),d.R7$(),d.Y8G("storefrontTranslate",We.message)("storefrontTranslateArgs",We.variables)}}function te(_e,Le){if(1&_e&&(d.j41(0,"div",13),d.nrm(1,"img",12),d.k0s()),2&_e){const We=d.XpG();d.Y8G("ngClass",We.iconRight.cssClasses),d.R7$(),d.Y8G("src",We.iconRight.url,d.B4B)}}let ae=(()=>{var _e;class Le extends R.${constructor(dt,Ye,we,ze,Ke,je,Ze,k,F){super(we,dt,Ye,je,Ze),this.elementRef=dt,this.contextService=Ye,this.injector=we,this.eventActionService=ze,this.kioskConfigService=Ke,this.document=je,this.globalService=Ze,this.anchorService=k,this.domHelper=F,this.defaultConfig=(0,s.A)({},U),this.processingAction=!1,this.anchorFeatureEnabled=!1,this.anchorPath=null,this.onButtonTap=new d.bkB(!1),this.variables=[],this.kioskConfigService.getConfig().pipe((0,z.s)(1)).subscribe(Y=>this.kioskConfigData=Y)}get hasText(){return!!this.message}get hasIconLeft(){return!!this.iconLeft}get hasIconRight(){return!!this.iconRight}ngOnInit(){var dt=()=>super.ngOnInit,Ye=this;return(0,g.A)(function*(){Ye.anchorFeatureEnabled=Ye.anchorService.isAnchorFeatureEnabled()&&!Ye.disableAnchor,dt().call(Ye)})()}onConfigChanges(){super.onConfigChanges();const dt=(0,S.uQ)(this.config,this.context,this.contextService.$functions,this.globalService.getGlobalData());this.button&&this.button.nativeElement&&Object.keys(dt.attributes).forEach(ze=>{(0,S.Ol)(dt.attributes[ze])?this.button.nativeElement.setAttribute(ze,(0,S.v3)(dt.attributes[ze])):this.button.nativeElement.removeAttribute(ze)}),this.anchorFeatureEnabled&&(this.anchorPath=this.anchorService.getAnchorPathForEventAction(this.config.tap,this.context)),this.variables=this.config.variables||[],this.message=this.config.message;const Ye=(0,S.v3)(this.config.iconLeft);Array.isArray(null==Ye?void 0:Ye.cssClasses)&&(Ye.cssClasses=Ye.cssClasses.map(ze=>(0,S.v3)(ze))),this.iconLeft=Ye;const we=(0,S.v3)(this.config.iconRight);Array.isArray(null==we?void 0:we.cssClasses)&&(we.cssClasses=we.cssClasses.map(ze=>(0,S.v3)(ze))),this.iconRight=we,this.changeDetectorRef.markForCheck()}onTap(dt){var Ye=this;return(0,g.A)(function*(){if(Ye.processingAction=!0,Ye.changeDetectorRef.detectChanges(),Ye.onButtonTap.emit(dt),!dt.defaultPrevented&&Ye.config.tap){Ye.anchorFeatureEnabled&&(dt.preventDefault(),dt.stopPropagation());const we=(0,S.v3)(Ye.config.tap);yield Ye.eventActionService.processEventAction(we,Ye)}Ye.processingAction=!1,Ye.changeDetectorRef.detectChanges()})()}getConfigEscapeProperties(){return[...super.getConfigEscapeProperties(),"params"]}}return(_e=Le).type="button",_e.\u0275fac=function(dt){return new(dt||_e)(d.rXU(d.aKT),d.rXU(ve.V),d.rXU(d.zZn),d.rXU(de.G),d.rXU(V.x),d.rXU(f.qQ),d.rXU(Q.d),d.rXU(ie.X),d.rXU(K.S))},_e.\u0275cmp=d.VBU({type:_e,selectors:[["storefront-button"]],viewQuery:function(dt,Ye){if(1&dt&&d.GBs(ue,5),2&dt){let we;d.mGM(we=d.lsd())&&(Ye.button=we.first)}},hostVars:6,hostBindings:function(dt,Ye){2&dt&&d.AVh("has-text",Ye.hasText)("has-icon-left",Ye.hasIconLeft)("has-icon-right",Ye.hasIconRight)},inputs:{disableAnchor:"disableAnchor"},outputs:{onButtonTap:"onButtonTap"},standalone:!1,features:[d.Jv_([q.B]),d.Vt3],decls:8,vars:8,consts:[["button",""],["noAnchorTemplate",""],[3,"click","ngClass"],[4,"ngIf","ngIfElse"],["class","button-icon button-icon-right",3,"ngClass",4,"ngIf"],[1,"pxp-spinner","button-spinner"],[1,"button-spinner"],[3,"href"],[3,"ngTemplateOutlet"],["class","button-icon button-icon-left",3,"ngClass",4,"ngIf"],[3,"storefrontTranslate","storefrontTranslateArgs"],[1,"button-icon","button-icon-left",3,"ngClass"],[3,"src"],[1,"button-icon","button-icon-right",3,"ngClass"]],template:function(dt,Ye){if(1&dt){const we=d.RV6();d.j41(0,"button",2,0),d.bIt("click",function(Ke){return d.eBV(we),d.Njj(Ye.onTap(Ke))}),d.DNE(2,O,1,1)(3,B,1,1)(4,pe,3,2,"ng-container",3)(5,W,2,3,"ng-template",null,1,d.C5r)(7,te,2,2,"div",4),d.k0s()}if(2&dt){const we=d.sdS(6);d.Y8G("ngClass",d.l_i(5,oe,(null==Ye.config?null:Ye.config.buttonClass)||"",Ye.message?"has-text":"").join(" ")),d.R7$(2),d.vxM(Ye.domHelper.leanDom?2:3),d.R7$(2),d.Y8G("ngIf",Ye.anchorFeatureEnabled)("ngIfElse",we),d.R7$(3),d.Y8G("ngIf",Ye.iconRight)}},dependencies:[f.YU,f.bT,f.T3,ee.M,he.t,Ae.n],styles:["storefront-button button,.pxp-button button{display:flex;align-items:center}storefront-button button a,.pxp-button button a{width:100%;display:flex;justify-content:center;align-items:center}storefront-button button a span,.pxp-button button a span{width:100%;display:flex;justify-content:center;align-items:center}storefront-button.has-icon-left button,storefront-button.has-icon-right button,.pxp-button.has-icon-left button,.pxp-button.has-icon-right button{gap:var(--menuItemIconGap)}storefront-button .button-icon,.pxp-button .button-icon{display:flex;align-items:center}storefront-button .button-icon>img,.pxp-button .button-icon>img{height:var(--menuItemIconHeight);object-fit:contain}\n"],encapsulation:2,changeDetection:0}),Le})()},4336:(se,E,c)=>{"use strict";c.d(E,{U:()=>ue});var g=c(395),s=c(8251),f=c(4438),d=c(177),S=c(8909),R=c(7240),U=c(6962);const q=["class","pxp-button"],z=(oe,_)=>[oe,_];function ve(oe,_){1&oe&&f.nrm(0,"div",5)}function de(oe,_){if(1&oe&&f.DNE(0,ve,1,0,"div",5),2&oe){const O=f.XpG();f.vxM(O.processingAction?0:-1)}}function V(oe,_){1&oe&&f.nrm(0,"storefront-spinner",6)}function Q(oe,_){if(1&oe&&f.DNE(0,V,1,0,"storefront-spinner",6),2&oe){const O=f.XpG();f.vxM(O.processingAction?0:-1)}}function ie(oe,_){}function K(oe,_){if(1&oe&&(f.qex(0),f.j41(1,"a",7),f.DNE(2,ie,0,0,"ng-template",8),f.k0s(),f.bVm()),2&oe){const O=f.XpG(),x=f.sdS(6);f.R7$(),f.Y8G("href",O.anchorPath||"/",f.B4B),f.R7$(),f.Y8G("ngTemplateOutlet",x)}}function ee(oe,_){if(1&oe&&(f.j41(0,"div",11),f.nrm(1,"img",12),f.k0s()),2&oe){const O=f.XpG(2);f.Y8G("ngClass",O.iconLeft.cssClasses),f.R7$(),f.Y8G("src",O.iconLeft.url,f.B4B)}}function he(oe,_){if(1&oe&&(f.DNE(0,ee,2,2,"div",9),f.nrm(1,"span",10)),2&oe){const O=f.XpG();f.Y8G("ngIf",O.iconLeft),f.R7$(),f.Y8G("storefrontTranslate",O.message)("storefrontTranslateArgs",O.variables)}}function Ae(oe,_){if(1&oe&&(f.j41(0,"div",13),f.nrm(1,"img",12),f.k0s()),2&oe){const O=f.XpG();f.Y8G("ngClass",O.iconRight.cssClasses),f.R7$(),f.Y8G("src",O.iconRight.url,f.B4B)}}let ue=(()=>{var oe;class _ extends g.Q{}return(oe=_).\u0275fac=(()=>{let O;return function(B){return(O||(O=f.xGo(oe)))(B||oe)}})(),oe.\u0275cmp=f.VBU({type:oe,selectors:[["div",8,"pxp-button"]],standalone:!1,features:[f.Jv_([s.B]),f.Vt3],attrs:q,decls:8,vars:8,consts:[["button",""],["noAnchorTemplate",""],[3,"click","ngClass"],[4,"ngIf","ngIfElse"],["class","button-icon button-icon-right",3,"ngClass",4,"ngIf"],[1,"pxp-spinner","button-spinner"],[1,"button-spinner"],[3,"href"],[3,"ngTemplateOutlet"],["class","button-icon button-icon-left",3,"ngClass",4,"ngIf"],[3,"storefrontTranslate","storefrontTranslateArgs"],[1,"button-icon","button-icon-left",3,"ngClass"],[3,"src"],[1,"button-icon","button-icon-right",3,"ngClass"]],template:function(x,B){if(1&x){const G=f.RV6();f.j41(0,"button",2,0),f.bIt("click",function(le){return f.eBV(G),f.Njj(B.onTap(le))}),f.DNE(2,de,1,1)(3,Q,1,1)(4,K,3,2,"ng-container",3)(5,he,2,3,"ng-template",null,1,f.C5r)(7,Ae,2,2,"div",4),f.k0s()}if(2&x){const G=f.sdS(6);f.Y8G("ngClass",f.l_i(5,z,(null==B.config?null:B.config.buttonClass)||"",B.message?"has-text":"").join(" ")),f.R7$(2),f.vxM(B.domHelper.leanDom?2:3),f.R7$(2),f.Y8G("ngIf",B.anchorFeatureEnabled)("ngIfElse",G),f.R7$(3),f.Y8G("ngIf",B.iconRight)}},dependencies:[d.YU,d.bT,d.T3,S.M,R.t,U.n],styles:["storefront-button button,.pxp-button button{display:flex;align-items:center}storefront-button button a,.pxp-button button a{width:100%;display:flex;justify-content:center;align-items:center}storefront-button button a span,.pxp-button button a span{width:100%;display:flex;justify-content:center;align-items:center}storefront-button.has-icon-left button,storefront-button.has-icon-right button,.pxp-button.has-icon-left button,.pxp-button.has-icon-right button{gap:var(--menuItemIconGap)}storefront-button .button-icon,.pxp-button .button-icon{display:flex;align-items:center}storefront-button .button-icon>img,.pxp-button .button-icon>img{height:var(--menuItemIconHeight);object-fit:contain}\n"],encapsulation:2,changeDetection:0}),_})()},9805:(se,E,c)=>{"use strict";c.r(E),c.d(E,{ButtonModule:()=>q,component:()=>z});var g=c(177),s=c(395),f=c(6483),d=c(3),S=c(6215),R=c(4336),U=c(4438);let q=(()=>{var ve;class de{}return(ve=de).\u0275fac=function(Q){return new(Q||ve)},ve.\u0275mod=U.$C({type:ve}),ve.\u0275inj=U.G2t({imports:[g.MD,f.h,d.pZ,S.O]}),de})();const z={component:s.Q,leanDomComponent:R.U}},3600:(se,E,c)=>{"use strict";c.d(E,{H:()=>g,a:()=>s});const g={allowManualTagConfig:!0},s="storefront-usertag-overwrite"},3648:(se,E,c)=>{"use strict";c.d(E,{_:()=>G});var g=c(467),s=c(9379),f=c(177),d=c(4438),S=c(362),R=c.n(S),U=c(8251),q=c(3178),z=c(2962),ve=c(8890),de=c(5964),V=c(1594),Q=c(8179),ie=c(7879),K=c(9810),ee=c(24),he=c(9516),Ae=c(1652),ue=c(8474),oe=c(4748),_=c(5927),O=c(7240);const x=["viewTemplate"];function B(pe,le){if(1&pe&&d.nrm(0,"storefront-spinner"),2&pe){const W=d.XpG();d.Aen(W.getSpinnerStyle())}}let G=(()=>{var pe;class le{get type(){var te;return null===(te=this.baseConfig)||void 0===te?void 0:te.type}get childId(){return this.childIdComputed}constructor(te,ae,_e,Le,We,dt,Ye,we,ze,Ke,je,Ze,k){this.elementRef=te,this.changeDetectorRef=ae,this.inspectorService=_e,this.subscriptions=Le,this.contextService=We,this.injector=dt,this.compiler=Ye,this.globalService=we,this.dataShareService=ze,this.platformId=Ke,this.purpleEnv=je,this.ssrService=Ze,this.domHelper=k,this.baseContext={},this.delete=new d.bkB,this.lazy=!1,this.controlsSticky=!1,this.inViewport=new d.bkB,this.initialized=!1}getElementRef(){return this.elementRef}ngOnInit(){const te=(0,s.A)((0,s.A)({},this.contextService.getContext()),this.baseContext);if(this.purpleEnv.isUniversal&&!(0,Q.ru)(this.baseConfig,te,this.contextService.$functions,this.globalService.getGlobalData(),!1))return;const ae=(0,f.Vy)(this.platformId);this.skipRender=this.baseConfig.skipSSR&&ae,this.skipRender||(this.childIdComputed=this.baseConfig.id?(0,Q.uQ)(this.baseConfig.id,this.baseContext,this.contextService.$functions,this.globalService.getGlobalData()):void 0,this.inspectorService.registerComponent(this.elementRef.nativeElement,this),(!(null==this.baseConfig.isLazy?this.lazy:this.baseConfig.isLazy)||ae)&&this.initialize())}ngOnChanges(te){if(!this.component)return;const ae=!R()(this.component.baseContext,this.baseContext),_e=!R()(this.component.baseConfig,this.baseConfig);if(ae||_e){this.component.baseContext=(0,s.A)({},this.baseContext),this.component.baseConfig=(0,s.A)({},this.baseConfig);const Le={};if(!te)return void this.component.onStateChange();ae?Le.baseContext=(0,s.A)({},te.baseContext):Le.baseConfig=(0,s.A)({},te.baseConfig),this.component.onStateChange(Le)}}onStateChange(){this.ngOnChanges()}initialize(){var te=this;return(0,g.A)(function*(){te.initialized||(te.initialized=!0,te.viewTemplate.clear(),yield te.resolveComponentClasses(),te.controlsSticky&&((0,f.Vy)(te.platformId)||new IntersectionObserver(([_e])=>te.inViewport.emit(_e.isIntersecting),{rootMargin:"-10% 0px"}).observe(te.elementRef.nativeElement)),yield te.renderComponent(),te.changeDetectorRef.detectChanges())})()}resolveComponentClasses(){var te=this;return(0,g.A)(function*(){const ae=yield c.e("projects_storefront_src_app_component_component_module_ts").then(c.bind(c,9674)),_e=yield te.compiler.compileModuleAndAllComponentsAsync(ae.ComponentModule);te.componentModule=_e.ngModuleFactory.create(te.injector).instance})()}getComponentFactory(te){var ae=this;return(0,g.A)(function*(){return ae.componentModule.getComponentFactory(te)})()}renderComponent(){var te=this;return(0,g.A)(function*(){const ae=yield te.componentModule.getModule(te.baseConfig.type);let _e;if(_e=ae&&(0,K.w)(ae.component)?te.domHelper.leanDom?ae.component.leanDomComponent:ae.component.component:ae.component,_e){const Le=te.viewTemplate.createComponent(_e);if("presenter"!==te.baseConfig.type){let We=null;te.dataShareService&&te.dataShareService.embeddedParams&&(We=(0,s.A)({},te.dataShareService.embeddedParams)),Le.instance.baseConfig=(0,s.A)({},te.baseConfig),Le.instance.baseContext=(0,s.A)((0,s.A)({},te.baseContext),{},{embeddedParams:We}),Le.instance.delete.subscribe(dt=>te.delete.emit(dt)),Le.instance.processing.subscribe(dt=>te.processing=dt)}te.component=Le.instance}else console.error('unregistered component "'.concat(te.baseConfig.type,'" rendered. Did you forget to register in component-module.ts?'))})()}lazyLoad(te=!1){var ae=this;return(0,g.A)(function*(){if(ae.skipRender)return;if(ae.lazyloadPromise)return ae.lazyloadPromise;let _e;if(ae.lazyloadPromise=new Promise(We=>_e=We),ae.initialized)_e();else if(te||!ae.ssrService.currentPrebootStatus||(0,z.cH)(ae.elementRef.nativeElement)){var Le;yield ae.initialize(),null===(Le=ae.getChildComponent())||void 0===Le||Le.inited.pipe((0,de.p)(We=>!!We),(0,V.$)()).subscribe(_e)}else ae.subscriptions.subscribe((0,ve.eh)(ae,ae.elementRef,{rootMargin:"50px",skipWait:!1}),(0,g.A)(function*(){var We;yield ae.initialize(),null===(We=ae.getChildComponent())||void 0===We||We.inited.pipe((0,de.p)(dt=>!!dt),(0,V.$)()).subscribe(_e)}),q.lQ,q.lQ,"visible");return ae.lazyloadPromise.then(()=>ae.changeDetectorRef.markForCheck())})()}unloadIfInvisible(){this.initialized&&!(0,z.cH)(this.elementRef.nativeElement,100)&&this.unload()}unload(){this.viewTemplate.clear(),this.initialized=!1,this.lazyLoad()}getChildComponent(){return this.component}getDataId(){return this.baseContext[this.dataType]&&this.baseContext[this.dataType].id}scrollIntoView(te={behavior:"smooth",block:"start",inline:"start",axis:null,padding:!0}){(0,f.UE)(this.platformId)&&this.elementRef.nativeElement.scrollIntoView(te)}getSpinnerStyle(){return{width:this.elementRef.nativeElement.offsetWidth+"px",height:this.elementRef.nativeElement.offsetHeight+"px"}}clear(){this.lazyloadPromise=null,this.component&&this.component.ngOnDestroy(),this.viewTemplate.clear(),this.initialized=!1}ngOnDestroy(){this.skipRender||this.inspectorService.unregisterComponent(this.elementRef.nativeElement)}}return(pe=le).\u0275fac=function(te){return new(te||pe)(d.rXU(d.aKT),d.rXU(d.gRc),d.rXU(ee.j),d.rXU(U.v),d.rXU(he.V),d.rXU(d.zZn),d.rXU(d.Ql9),d.rXU(Ae.d),d.rXU(ue.j,8),d.rXU(d.Agw),d.rXU(ie.r6),d.rXU(oe.i),d.rXU(_.S))},pe.\u0275cmp=d.VBU({type:pe,selectors:[["storefront-element"]],viewQuery:function(te,ae){if(1&te&&d.GBs(x,7,d.c1b),2&te){let _e;d.mGM(_e=d.lsd())&&(ae.viewTemplate=_e.first)}},hostVars:2,hostBindings:function(te,ae){2&te&&d.BMQ("type",ae.type)("child-id",ae.childId)},inputs:{baseConfig:"baseConfig",baseContext:"baseContext",dataType:"dataType",selected:"selected",processing:"processing",lazy:"lazy",controlsSticky:"controlsSticky"},outputs:{delete:"delete",inViewport:"inViewport"},standalone:!1,features:[d.Jv_([U.v]),d.OA$],decls:3,vars:1,consts:[["viewTemplate",""],[3,"style",4,"ngIf"]],template:function(te,ae){1&te&&(d.eu8(0,null,0),d.DNE(2,B,1,2,"storefront-spinner",1)),2&te&&(d.R7$(2),d.Y8G("ngIf",ae.processing))},dependencies:[f.bT,O.t],styles:["storefront-element{max-width:100%;display:block}storefront-element>storefront-spinner{position:absolute;top:0;padding:calc(2 * var(--gutter));background-color:#0000001a;z-index:1;width:100%;height:100%}\n"],encapsulation:2,changeDetection:0}),le})()},6895:(se,E,c)=>{"use strict";c.r(E),c.d(E,{ElementModule:()=>S,component:()=>R});var g=c(177),s=c(3648),f=c(6215),d=c(4438);let S=(()=>{var U;class q{}return(U=q).\u0275fac=function(ve){return new(ve||U)},U.\u0275mod=d.$C({type:U}),U.\u0275inj=d.G2t({imports:[g.MD,f.O]}),q})();const R=s._},9876:(se,E,c)=>{"use strict";c.d(E,{z:()=>d,G:()=>S});var g=c(3178);const s={type:"dynamic",mode:"width"};function d(R,U,q){return U?1/(R?function f(R,U=1){const q=parseInt((0,g.sF)(R,"w"),10),z=parseInt((0,g.sF)(R,"h"),10);return isNaN(q)||isNaN(z)?U:q/z}(q,0):U.naturalWidth/U.naturalHeight)*100:1}function S(R,U,q,z){var ve,de;const V=R.offsetWidth,Q=R.offsetHeight,ie=null!==(ve=null===(de=window)||void 0===de?void 0:de.devicePixelRatio)&&void 0!==ve?ve:1;if(!V||!Q||isNaN(V)||isNaN(Q))return(0,g.LS)(U,{w:!V||isNaN(V)?200:Math.round(V*ie),webp:1});const K=null!=q?q:s;let Ae,ee=Math.round(V*ie),he=null;switch(K.type){case"fixed":break;case"dynamic":switch(he=Math.round(Q*ie),K.mode){case"min":ee<he?he=void 0:ee=void 0;break;case"max":ee<he?ee=void 0:he=void 0;break;case"width":he=void 0;break;case"height":ee=void 0}}if(z)try{const ue=JSON.parse(z),oe=ue[0],_=ue[1],O=ue[2],x=ue[3],B=Math.round(R.offsetWidth*ie),G=Math.round(R.offsetHeight*ie),pe=Math.round(2*oe/(1+O)),le=Math.round(2*_/(1-x));if(pe/B>le/G){const W=Math.round(le*B/G),te=Math.round(Math.min(Math.max(oe-W/2,0),pe-W));Ae="".concat(te,"px,0px,").concat(W,"px,").concat(le,"px")}else{const W=Math.round(pe*G/B),te=Math.round(Math.min(Math.max(_-W/2,0),le-W));Ae="0px,".concat(te,"px,").concat(pe,"px,").concat(W,"px")}}catch(ue){console.warn("Error parsing focal point: "+z)}return(0,g.LS)(U,{w:ee,h:he,crop:Ae,webp:1})}},9810:(se,E,c)=>{"use strict";function g(s){return s&&s.component}c.d(E,{w:()=>g})},2853:(se,E,c)=>{"use strict";c.d(E,{F9:()=>f,ge:()=>s,oH:()=>g});var g=function(d){return d.STATIC="STATIC",d.SLIDE_IN_LEFT="SLIDE_IN_LEFT",d.SLIDE_IN_RIGHT="SLIDE_IN_RIGHT",d}(g||{});const s={dataSource:{type:"menu"},template:g.SLIDE_IN_RIGHT,animationDuration:300,actions:[]};var f=function(d){return d.close="close",d}(f||{})},7240:(se,E,c)=>{"use strict";c.d(E,{t:()=>d});var g=c(9056),s=c(4438),f=c(5927);let d=(()=>{var S;class R{get regularType(){return this.domHelper.regularSelector(this.type)}get prefixedType(){return this.domHelper.prefixedSelector(this.type)}constructor(q,z){this.elementRef=q,this.domHelper=z,this.spinners=g.A,this.type="tail"}ngOnInit(){this.elementRef.nativeElement.innerHTML=this.spinners[this.type]&&this.spinners[this.type].replace(/\$id/g,"id-"+Date.now())}}return(S=R).\u0275fac=function(q){return new(q||S)(s.rXU(s.aKT),s.rXU(f.S))},S.\u0275cmp=s.VBU({type:S,selectors:[["storefront-spinner"]],hostVars:2,hostBindings:function(q,z){2&q&&s.BMQ("type",z.regularType)("data-pxp-type",z.prefixedType)},inputs:{type:"type"},standalone:!1,decls:2,vars:0,consts:[[1,"loader"]],template:function(q,z){1&q&&(s.j41(0,"div",0),s.EFF(1,"Loading..."),s.k0s())},styles:[".storefront-spinner.button-spinner,storefront-spinner.button-spinner,.pxp-spinner.button-spinner{position:absolute;display:flex;align-items:center;justify-content:center;width:100%;height:100%;top:0;left:0;background-color:#0003;padding:8px;margin:0}.storefront-spinner[type=tail] stop,storefront-spinner[type=tail] stop,.pxp-spinner[type=tail] stop{stop-color:var(--spinnerColor)}.storefront-spinner[type=tail] circle,storefront-spinner[type=tail] circle,.pxp-spinner[type=tail] circle{fill:var(--spinnerColor)}.storefront-spinner[type=dots] circle,storefront-spinner[type=dots] circle,.pxp-spinner[type=dots] circle{fill:var(--spinnerColor)}.storefront-spinner[type=oval] svg,storefront-spinner[type=oval] svg,.pxp-spinner[type=oval] svg{stroke:var(--spinnerColor)}.storefront-spinner[type=puff] svg,storefront-spinner[type=puff] svg,.pxp-spinner[type=puff] svg{stroke:var(--spinnerColor)}.storefront-spinner[type=rings] svg,storefront-spinner[type=rings] svg,.pxp-spinner[type=rings] svg{stroke:var(--spinnerColor)}.storefront-spinner[type=spinningCircles] g,storefront-spinner[type=spinningCircles] g,.pxp-spinner[type=spinningCircles] g{stroke:var(--spinnerColor)}.storefront-spinner[type=spinningCircles] g circle,storefront-spinner[type=spinningCircles] g circle,.pxp-spinner[type=spinningCircles] g circle{fill:var(--spinnerColor)}.storefront-spinner[type=segments] g,storefront-spinner[type=segments] g,.pxp-spinner[type=segments] g{stroke:var(--spinnerColor)}\n"],encapsulation:2}),R})()},6962:(se,E,c)=>{"use strict";c.d(E,{n:()=>d});var g=c(7240),s=c(4438);const f=["class","pxp-spinner"];let d=(()=>{var S;class R extends g.t{}return(S=R).\u0275fac=(()=>{let U;return function(z){return(U||(U=s.xGo(S)))(z||S)}})(),S.\u0275cmp=s.VBU({type:S,selectors:[["div",8,"pxp-spinner"]],standalone:!1,features:[s.Vt3],attrs:f,decls:2,vars:0,consts:[[1,"loader"]],template:function(q,z){1&q&&(s.j41(0,"div",0),s.EFF(1,"Loading..."),s.k0s())},styles:[".storefront-spinner.button-spinner,storefront-spinner.button-spinner,.pxp-spinner.button-spinner{position:absolute;display:flex;align-items:center;justify-content:center;width:100%;height:100%;top:0;left:0;background-color:#0003;padding:8px;margin:0}.storefront-spinner[type=tail] stop,storefront-spinner[type=tail] stop,.pxp-spinner[type=tail] stop{stop-color:var(--spinnerColor)}.storefront-spinner[type=tail] circle,storefront-spinner[type=tail] circle,.pxp-spinner[type=tail] circle{fill:var(--spinnerColor)}.storefront-spinner[type=dots] circle,storefront-spinner[type=dots] circle,.pxp-spinner[type=dots] circle{fill:var(--spinnerColor)}.storefront-spinner[type=oval] svg,storefront-spinner[type=oval] svg,.pxp-spinner[type=oval] svg{stroke:var(--spinnerColor)}.storefront-spinner[type=puff] svg,storefront-spinner[type=puff] svg,.pxp-spinner[type=puff] svg{stroke:var(--spinnerColor)}.storefront-spinner[type=rings] svg,storefront-spinner[type=rings] svg,.pxp-spinner[type=rings] svg{stroke:var(--spinnerColor)}.storefront-spinner[type=spinningCircles] g,storefront-spinner[type=spinningCircles] g,.pxp-spinner[type=spinningCircles] g{stroke:var(--spinnerColor)}.storefront-spinner[type=spinningCircles] g circle,storefront-spinner[type=spinningCircles] g circle,.pxp-spinner[type=spinningCircles] g circle{fill:var(--spinnerColor)}.storefront-spinner[type=segments] g,storefront-spinner[type=segments] g,.pxp-spinner[type=segments] g{stroke:var(--spinnerColor)}\n"],encapsulation:2}),R})()},6215:(se,E,c)=>{"use strict";c.d(E,{O:()=>f});var g=c(177),s=c(4438);let f=(()=>{var d;class S{}return(d=S).\u0275fac=function(U){return new(U||d)},d.\u0275mod=s.$C({type:d}),d.\u0275inj=s.G2t({imports:[g.MD]}),S})()},9056:(se,E,c)=>{"use strict";c.d(E,{A:()=>q});const q={oval:'\x3c!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL --\x3e\n<svg width="100%" height="100%" viewBox="0 0 38 38" xmlns="http://www.w3.org/2000/svg" stroke="#fff">\n <g fill="none" fill-rule="evenodd">\n <g transform="translate(1 1)" stroke-width="2">\n <circle stroke-opacity=".5" cx="18" cy="18" r="18"/>\n <path d="M36 18c0-9.94-8.06-18-18-18">\n <animateTransform\n attributeName="transform"\n type="rotate"\n from="0 18 18"\n to="360 18 18"\n dur="1s"\n repeatCount="indefinite"/>\n </path>\n </g>\n </g>\n</svg>\n',puff:'\x3c!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL --\x3e\n<svg width="100%" height="100%" viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#fff">\n <g fill="none" fill-rule="evenodd" stroke-width="2">\n <circle cx="22" cy="22" r="1">\n <animate attributeName="r"\n begin="0s" dur="1.8s"\n values="1; 20"\n calcMode="spline"\n keyTimes="0; 1"\n keySplines="0.165, 0.84, 0.44, 1"\n repeatCount="indefinite" />\n <animate attributeName="stroke-opacity"\n begin="0s" dur="1.8s"\n values="1; 0"\n calcMode="spline"\n keyTimes="0; 1"\n keySplines="0.3, 0.61, 0.355, 1"\n repeatCount="indefinite" />\n </circle>\n <circle cx="22" cy="22" r="1">\n <animate attributeName="r"\n begin="-0.9s" dur="1.8s"\n values="1; 20"\n calcMode="spline"\n keyTimes="0; 1"\n keySplines="0.165, 0.84, 0.44, 1"\n repeatCount="indefinite" />\n <animate attributeName="stroke-opacity"\n begin="-0.9s" dur="1.8s"\n values="1; 0"\n calcMode="spline"\n keyTimes="0; 1"\n keySplines="0.3, 0.61, 0.355, 1"\n repeatCount="indefinite" />\n </circle>\n </g>\n</svg>\n',rings:'\x3c!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL --\x3e\n<svg width="100%" height="100%" viewBox="0 0 45 45" xmlns="http://www.w3.org/2000/svg" stroke="#fff">\n <g fill="none" fill-rule="evenodd" transform="translate(1 1)" stroke-width="2">\n <circle cx="22" cy="22" r="6" stroke-opacity="0">\n <animate attributeName="r"\n begin="1.5s" dur="3s"\n values="6;22"\n calcMode="linear"\n repeatCount="indefinite" />\n <animate attributeName="stroke-opacity"\n begin="1.5s" dur="3s"\n values="1;0" calcMode="linear"\n repeatCount="indefinite" />\n <animate attributeName="stroke-width"\n begin="1.5s" dur="3s"\n values="2;0" calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n <circle cx="22" cy="22" r="6" stroke-opacity="0">\n <animate attributeName="r"\n begin="3s" dur="3s"\n values="6;22"\n calcMode="linear"\n repeatCount="indefinite" />\n <animate attributeName="stroke-opacity"\n begin="3s" dur="3s"\n values="1;0" calcMode="linear"\n repeatCount="indefinite" />\n <animate attributeName="stroke-width"\n begin="3s" dur="3s"\n values="2;0" calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n <circle cx="22" cy="22" r="8">\n <animate attributeName="r"\n begin="0s" dur="1.5s"\n values="6;1;2;3;4;5;6"\n calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n </g>\n</svg>\n',spinningCircles:'\x3c!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL --\x3e\n<svg width="100%" height="100%" viewBox="0 0 58 58" xmlns="http://www.w3.org/2000/svg">\n <g fill="none" fill-rule="evenodd">\n <g transform="translate(2 1)" stroke="#FFF" stroke-width="1.5">\n <circle cx="42.601" cy="11.462" r="5" fill-opacity="1" fill="#fff">\n <animate attributeName="fill-opacity"\n begin="0s" dur="1.3s"\n values="1;0;0;0;0;0;0;0" calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n <circle cx="49.063" cy="27.063" r="5" fill-opacity="0" fill="#fff">\n <animate attributeName="fill-opacity"\n begin="0s" dur="1.3s"\n values="0;1;0;0;0;0;0;0" calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n <circle cx="42.601" cy="42.663" r="5" fill-opacity="0" fill="#fff">\n <animate attributeName="fill-opacity"\n begin="0s" dur="1.3s"\n values="0;0;1;0;0;0;0;0" calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n <circle cx="27" cy="49.125" r="5" fill-opacity="0" fill="#fff">\n <animate attributeName="fill-opacity"\n begin="0s" dur="1.3s"\n values="0;0;0;1;0;0;0;0" calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n <circle cx="11.399" cy="42.663" r="5" fill-opacity="0" fill="#fff">\n <animate attributeName="fill-opacity"\n begin="0s" dur="1.3s"\n values="0;0;0;0;1;0;0;0" calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n <circle cx="4.938" cy="27.063" r="5" fill-opacity="0" fill="#fff">\n <animate attributeName="fill-opacity"\n begin="0s" dur="1.3s"\n values="0;0;0;0;0;1;0;0" calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n <circle cx="11.399" cy="11.462" r="5" fill-opacity="0" fill="#fff">\n <animate attributeName="fill-opacity"\n begin="0s" dur="1.3s"\n values="0;0;0;0;0;0;1;0" calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n <circle cx="27" cy="5" r="5" fill-opacity="0" fill="#fff">\n <animate attributeName="fill-opacity"\n begin="0s" dur="1.3s"\n values="0;0;0;0;0;0;0;1" calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n </g>\n </g>\n</svg>\n',tail:'\x3c!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL --\x3e\n<svg width="100%" height="100%" viewBox="0 0 38 38" xmlns="http://www.w3.org/2000/svg">\n <defs>\n <linearGradient x1="8.042%" y1="0%" x2="65.682%" y2="23.865%" id="$id">\n <stop stop-color="#fff" stop-opacity="0" offset="0%"/>\n <stop stop-color="#fff" stop-opacity=".631" offset="63.146%"/>\n <stop stop-color="#fff" offset="100%"/>\n </linearGradient>\n </defs>\n <g fill="none" fill-rule="evenodd">\n <g transform="translate(1 1)">\n <path d="M36 18c0-9.94-8.06-18-18-18" id="Oval-2" stroke="url(#$id)" stroke-width="2">\n <animateTransform\n attributeName="transform"\n type="rotate"\n from="0 18 18"\n to="360 18 18"\n dur="0.9s"\n repeatCount="indefinite"/>\n </path>\n <circle fill="#fff" cx="36" cy="18" r="1">\n <animateTransform\n attributeName="transform"\n type="rotate"\n from="0 18 18"\n to="360 18 18"\n dur="0.9s"\n repeatCount="indefinite"/>\n </circle>\n </g>\n </g>\n</svg>\n',dots:'\x3c!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL --\x3e\n<svg width="100%" height="100%" viewBox="0 0 120 30" xmlns="http://www.w3.org/2000/svg" fill="#fff">\n <circle cx="15" cy="15" r="15">\n <animate attributeName="r" from="15" to="15"\n begin="0s" dur="0.8s"\n values="15;9;15" calcMode="linear"\n repeatCount="indefinite" />\n <animate attributeName="fill-opacity" from="1" to="1"\n begin="0s" dur="0.8s"\n values="1;.5;1" calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n <circle cx="60" cy="15" r="9" fill-opacity="0.3">\n <animate attributeName="r" from="9" to="9"\n begin="0s" dur="0.8s"\n values="9;15;9" calcMode="linear"\n repeatCount="indefinite" />\n <animate attributeName="fill-opacity" from="0.5" to="0.5"\n begin="0s" dur="0.8s"\n values=".5;1;.5" calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n <circle cx="105" cy="15" r="15">\n <animate attributeName="r" from="15" to="15"\n begin="0s" dur="0.8s"\n values="15;9;15" calcMode="linear"\n repeatCount="indefinite" />\n <animate attributeName="fill-opacity" from="1" to="1"\n begin="0s" dur="0.8s"\n values="1;.5;1" calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n</svg>\n',segments:'<?xml version="1.0" encoding="utf-8"?>\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 2400 2400" xml:space="preserve" width="24" height="24">\n <g stroke-width="200" stroke-linecap="round" stroke="#000000" fill="none" id="spinner">\n <line x1="1200" y1="600" x2="1200" y2="100"/>\n <line opacity="0.5" x1="1200" y1="2300" x2="1200" y2="1800"/>\n <line opacity="0.917" x1="900" y1="680.4" x2="650" y2="247.4"/>\n <line opacity="0.417" x1="1750" y1="2152.6" x2="1500" y2="1719.6"/>\n <line opacity="0.833" x1="680.4" y1="900" x2="247.4" y2="650"/>\n <line opacity="0.333" x1="2152.6" y1="1750" x2="1719.6" y2="1500"/>\n <line opacity="0.75" x1="600" y1="1200" x2="100" y2="1200"/>\n <line opacity="0.25" x1="2300" y1="1200" x2="1800" y2="1200"/>\n <line opacity="0.667" x1="680.4" y1="1500" x2="247.4" y2="1750"/>\n <line opacity="0.167" x1="2152.6" y1="650" x2="1719.6" y2="900"/>\n <line opacity="0.583" x1="900" y1="1719.6" x2="650" y2="2152.6"/>\n <line opacity="0.083" x1="1750" y1="247.4" x2="1500" y2="680.4"/>\n <animateTransform attributeName="transform"\n attributeType="XML"\n type="rotate"\n keyTimes="0;0.08333;0.16667;0.25;0.33333;0.41667;0.5;0.58333;0.66667;0.75;0.83333;0.91667"\n values="0 1199 1199;30 1199 1199;60 1199 1199;90 1199 1199;120 1199 1199;150 1199 1199;180 1199 1199;210 1199 1199;240 1199 1199;270 1199 1199;300 1199 1199;330 1199 1199"\n dur="0.83333s"\n begin="0s"\n repeatCount="indefinite"\n calcMode="discrete" />\n </g>\n</svg>\n\n'}},2589:(se,E,c)=>{"use strict";c.d(E,{_:()=>g,f:()=>s});const g={bookmark:{customData:null},actions:[]};var s=function(f){return f.bookmark="bookmark",f.nightmode="nightmode",f.fontsize="fontsize",f.toc="toc",f.close="close",f.tts="tts",f.sharing="sharing",f.back="back",f.menu="menu",f.pdf="pdf",f.pdf_dropdown="pdf_dropdown",f}(s||{})},9692:(se,E,c)=>{"use strict";c.d(E,{P:()=>g,q:()=>s});var g=function(f){return f.DEFAULT="DEFAULT",f.GPT="GPT",f.HTML="HTML",f.TRAFFECTIVE="TRAFFECTIVE",f.SIZEMAPPING="SIZEMAPPING",f.AUDIENZZ="AUDIENZZ",f}(g||{}),s=function(f){return f.DIV="DIV",f.BOTTOM_ANCHOR="BOTTOM_ANCHOR",f.INTERSTITIAL="INTERSTITIAL",f.REWARDED="REWARDED",f.TOP_ANCHOR="TOP_ANCHOR",f}(s||{})},7616:(se,E,c)=>{"use strict";c.d(E,{d:()=>g});var g=function(s){return s.ENTITLEMENT_TOKEN="entitlementToken",s.ENTITLEMENT_REFRESH_TOKEN="entitlementRefreshToken",s.ENTITLEMENT_ROLES="entitlementRoles",s}(g||{})},2348:(se,E,c)=>{"use strict";c.d(E,{K:()=>g});var g=function(s){return s.NONE="none",s.HIDE="hide",s.SHRINK="shrink",s}(g||{})},6843:(se,E,c)=>{"use strict";c.d(E,{O:()=>g});var g=function(s){return s.URL="urls",s.VIEW="views",s.MESSAGE="messages",s.NAVIGATION="navigation",s.APP_BAR="appBar",s.AD="ads",s.ACCESS="access",s.MENUS="menus",s.DOWNLOAD_OPTIONS="downloadOptions",s.GENERIC_WIDGET="genericWidget",s.FEATURE="features",s}(g||{})},4616:(se,E,c)=>{"use strict";function g(f){return!!f.content}function s(f){return"redirectTo"in f}c.d(E,{B:()=>s,m:()=>g})},873:(se,E,c)=>{"use strict";c.d(E,{$I:()=>Q,B6:()=>V,BE:()=>s,Ed:()=>f,Lf:()=>R,Md:()=>g,Z_:()=>q,_:()=>d,fT:()=>ie,h2:()=>z,sn:()=>U});const g="scrolled",s="scrolled-down",f="scrolled-up",d=50,R=50,U="storefront-entitlement-token",q="storefront-entitlement-user-data",z="restoredPurchases",V="FALLBACK_PASSWORD",Q={config:{recipients:{to:["receiver1@example.com","receiver2@example.com"],cc:["cc1@example.com","cc2@example.com"],bcc:["bcc1@example.com","bcc2@example.com"]}},subject:"{{appName}} - App Feedback ({{platform}})",body:"--\n{{versionSectionLabel}}\n{{appVersionLabel}}: {{appVersion}}\n{{purpleVersionBlock}}\n\n{{deviceSectionLabel}}\n{{deviceModelLabel}}: {{deviceModel}}\n{{osVersionLabel}}: {{osVersion}}\n{{manufacturerLabel}}: {{manufacturer}}\n{{deviceIdLabel}}: {{deviceId}}\n{{connectionLabel}}: {{connection}}\n"},ie={default:{eventsEnabledByDefault:!0,viewsEnabledByDefault:!0,purchasesEnabledByDefault:!0,attributesEnabledByDefault:!0,events:{APP_BOOKMARK_ADDED:{templates:{action:"Bookmark added {{CONTENT_NAME}}"}},APP_BOOKMARK_DELETED:{templates:{action:"Bookmark deleted {{CONTENT_NAME}}"}},APP_SHARED:{templates:{action:"App shared"}},APP_START:{templates:{action:"App started"}},APP_BACKGROUND:{templates:{action:"App background"}},APP_FOREGROUND:{templates:{action:"App foreground"}},APP_STOP:{templates:{action:"App stopped"}},APPBOY_REFUSE_OFFER:{enabled:!0,templates:{action:"Appboy Refuse Offer {{ACTION_URL}}"}},APPBOY_POSTPONE_OFFER:{enabled:!0,templates:{action:"Appboy Postpone Offer {{ACTION_URL}}"}},KIOSK_PROMOTION_OPEN_ACTION:{templates:{action:"Kiosk promotion action url opened {{ACTION_URL}}"}},KIOSK_CHANNEL_OPENED:{templates:{action:"Channel opened {{PUBLICATION_NAME}}"}},KIOSK_ISSUE_DELETED:{templates:{action:"Issue deleted {{ISSUE_NAME}}"}},KIOSK_ISSUE_DOWNLOAD_STARTED:{templates:{action:"Issue download started {{ISSUE_NAME}}"}},KIOSK_ISSUE_DOWNLOAD_CANCELLED:{templates:{action:"Issue download cancelled {{ISSUE_NAME}}"}},KIOSK_ISSUE_DOWNLOAD_FAILED:{templates:{action:"Issue download failed {{ISSUE_NAME}}"}},KIOSK_ISSUE_DOWNLOADED:{templates:{action:"Issue downloaded {{ISSUE_NAME}}"}},KIOSK_ISSUE_PREVIEW_DOWNLOADED:{templates:{action:"Issue preview downloaded {{ISSUE_NAME}}"}},KIOSK_ISSUE_OPENED:{templates:{action:"Issue opened {{ISSUE_NAME}}"}},KIOSK_ISSUE_OPEN_FAILED:{templates:{action:"Issue open failed {{ISSUE_ID}}"}},KIOSK_ISSUE_PREVIEW_OPENED:{templates:{action:"Issue preview opened {{ISSUE_NAME}}"}},KIOSK_ISSUE_PURCHASE_CANCELLED:{templates:{action:"Issue purchase cancelled {{ISSUE_NAME}}"}},KIOSK_ISSUE_PURCHASED:{templates:{action:"Issue purchased {{ISSUE_NAME}}"}},KIOSK_ISSUE_TOC_OPENED:{templates:{action:"Issue table of contents opened {{ISSUE_NAME}}"}},KIOSK_ISSUE_PREVIEW_TOC_OPENED:{templates:{action:"Issue preview table of contents opened {{ISSUE_NAME}}"}},KIOSK_PURCHASES_RESTORED:{templates:{action:"Purchases restored"}},KIOSK_PURCHASE_RESTORATION_FAILED:{templates:{action:"Purchase restoration failed"}},KIOSK_SUBSCRIPTION_PURCHASE_CANCELLED:{templates:{action:"Subscription purchase cancelled {{SUBSCRIPTION_NAME}}"}},KIOSK_SUBSCRIPTION_PURCHASED:{templates:{action:"Subscription purchased {{SUBSCRIPTION_NAME}}"}},KIOSK_ENTITLEMENT_LINK1_OPENED:{templates:{action:"Entitlement link 1 opened {{LABEL}}, {{URL}}"}},KIOSK_ENTITLEMENT_LINK2_OPENED:{templates:{action:"Entitlement link 2 opened {{LABEL}}, {{URL}}"}},KIOSK_ENTITLEMENT_LINK3_OPENED:{templates:{action:"Entitlement link 3 opened {{LABEL}}, {{URL}}"}},APP_CONTENT_SHARED:{templates:{action:"Content shared {{CONTENT_NAME}}"}},PRESENTER_ISSUE_CONTENT_OPENED:{templates:{action:"Issue content opened {{CONTENT_NAME}}"}},PRESENTER_CONTENT_TOC_OPENED:{templates:{action:"Content table of contents opened {{CONTENT_NAME}}"}},PRESENTER_CONTENT_PREVIEW_TOC_OPENED:{templates:{action:"Content preview table of contents opened {{CONTENT_NAME}}"}},PRESENTER_CONTENT_PAGE_OPENED:{templates:{action:"Content page {{PAGE_LABEL}} opened in issue {{CONTENT_NAME}}"}},PRESENTER_CONTENT_OPEN_FAILED:{templates:{action:"Content open failed {{CONTENT_NAME}}"}},PRESENTER_CHANNEL_CONTENT_OPENED:{templates:{action:"Channel content opened {{CONTENT_NAME}}"}},PRESENTER_CONTENT_URL_OPENED:{templates:{action:"Content page url opened {{URL}}"}},SHARING_LINK_APP_CLICKED:{templates:{action:"Sharing App Link clicked"}},SHARING_LINK_APP_ISSUE_CLICKED:{templates:{action:"Sharing App Issue Link clicked"}},SHARING_LINK_WEB_ISSUE_CLICKED:{templates:{action:"Sharing Web Issue Link clicked"}}},views:{APP_BOOKMARKS:{templates:{name:"App bookmarks"}},APP_MENU:{templates:{name:"App menu"}},APP_SHARING:{templates:{name:"Sharing"}},KIOSK_CHANNEL_FEED:{templates:{name:"Kiosk channel {{PUBLICATION_NAME}}"}},KIOSK_ISSUE_TOC:{templates:{name:"Kiosk issue table of contents {{ISSUE_NAME}}"}},KIOSK_MY_ISSUES:{templates:{name:"Kiosk my issues"}},KIOSK_PUBLICATION_ALL:{templates:{name:"Kiosk all issues"}},KIOSK_MANAGE_SUBSCRIPTIONS:{templates:{name:"Kiosk manage subscriptions"}},KIOSK_ISSUE_PREVIEW:{templates:{name:"Kiosk issue preview {{ISSUE_NAME}}"}},PRESENTER_PAGE:{templates:{name:"Content {{CONTENT_NAME}}, Page {{PAGE_NUMBER}}"}},PRESENTER_CONTENT:{templates:{name:"Content {{CONTENT_NAME}}"}},PRESENTER_CONTENT_TOC:{templates:{name:"Content table of contents {{CONTENT_NAME}}"}}},purchases:{KIOSK_ISSUE_PURCHASED:{},KIOSK_SUBSCRIPTION_PURCHASED:{}},attributes:{HAS_ACTIVE_SUBSCRIPTION:{templates:{name:"Has an active subscription"}},HAS_ACTIVE_SUBSCRIPTION_CODE:{templates:{name:"Has an active subscription code"}},HAS_ACTIVE_TRIAL:{templates:{name:"Has an active trial"}},HAS_PURCHASED_ISSUE:{templates:{name:"Has purchased an issue"}},HAS_BOOKMARKS:{templates:{name:"Has bookmarks"}},HAS_ENTITLEMENT_LOGIN:{templates:{name:"Has entitlement login"}}}},google_analytics:{events:{APP_BOOKMARK_ADDED:{templates:{category:"App",action:"Bookmark added",label:"{{CONTENT_NAME}}"}},APP_BOOKMARK_DELETED:{templates:{category:"App",action:"Bookmark deleted",label:"{{CONTENT_NAME}}"}},APP_SHARED:{templates:{category:"App",action:"App shared",label:""}},APP_START:{templates:{category:"App",action:"App startet",label:""}},APP_BACKGROUND:{templates:{category:"App",action:"App background",label:""}},APP_FOREGROUND:{templates:{category:"App",action:"App foreground",label:""}},APP_STOP:{templates:{category:"App",action:"App stopped",label:""}},KIOSK_PROMOTION_OPEN_ACTION:{templates:{category:"Kiosk",action:"Kiosk promotion action url opened",label:"{{ACTION_URL}}"}},KIOSK_CHANNEL_OPENED:{templates:{category:"Kiosk",action:"Channel opened",label:"{{PUBLICATION_NAME}}"}},KIOSK_ISSUE_DELETED:{templates:{category:"Kiosk",action:"Issue deleted",label:"{{ISSUE_NAME}}"}},KIOSK_ISSUE_DOWNLOAD_STARTED:{templates:{category:"Kiosk",action:"Issue download started",label:"{{ISSUE_NAME}}"}},KIOSK_ISSUE_DOWNLOAD_CANCELLED:{templates:{category:"Kiosk",action:"Issue download cancelled",label:"{{ISSUE_NAME}}"}},KIOSK_ISSUE_DOWNLOAD_FAILED:{templates:{category:"Kiosk",action:"Issue download failed",label:"{{ISSUE_NAME}}"}},KIOSK_ISSUE_DOWNLOADED:{templates:{category:"Kiosk",action:"Issue downloaded",label:"{{ISSUE_NAME}}"}},KIOSK_ISSUE_PREVIEW_DOWNLOADED:{templates:{category:"Kiosk",action:"Issue preview downloaded",label:"{{ISSUE_NAME}}"}},KIOSK_ISSUE_OPENED:{templates:{category:"Kiosk",action:"Issue opened",label:"{{ISSUE_NAME}}"}},KIOSK_ISSUE_OPEN_FAILED:{templates:{category:"Kiosk",action:"Issue open failed",label:"{{ISSUE_ID}}"}},KIOSK_ISSUE_PREVIEW_OPENED:{templates:{category:"Kiosk",action:"Issue preview opened",label:"{{ISSUE_NAME}}"}},KIOSK_ISSUE_PURCHASE_CANCELLED:{templates:{category:"Kiosk",action:"Issue purchase cancelled",label:"{{ISSUE_NAME}}"}},KIOSK_ISSUE_PURCHASED:{templates:{category:"Kiosk",action:"Issue purchased",label:"{{ISSUE_NAME}}"}},KIOSK_ISSUE_TOC_OPENED:{templates:{category:"Kiosk",action:"Issue table of contents opened",label:"{{ISSUE_NAME}}"}},KIOSK_ISSUE_PREVIEW_TOC_OPENED:{templates:{category:"Kiosk",action:"Issue preview table of contents opened",label:"{{ISSUE_NAME}}"}},KIOSK_PURCHASES_RESTORED:{templates:{category:"Kiosk",action:"Purchases restored",label:""}},KIOSK_PURCHASE_RESTORATION_FAILED:{templates:{category:"Kiosk",action:"Purchase restoration failed",label:""}},KIOSK_SUBSCRIPTION_PURCHASE_CANCELLED:{templates:{category:"Kiosk",action:"Subscription purchase cancelled",label:"{{SUBSCRIPTION_NAME}}"}},KIOSK_SUBSCRIPTION_PURCHASED:{templates:{category:"Kiosk",action:"Subscription purchased",label:"{{SUBSCRIPTION_NAME}}"}},KIOSK_ENTITLEMENT_LINK1_OPENED:{templates:{category:"Kiosk",action:"Entitlement link 1 opened",label:"{{LABEL}}, {{URL}}"}},KIOSK_ENTITLEMENT_LINK2_OPENED:{templates:{category:"Kiosk",action:"Entitlement link 2 opened",label:"{{LABEL}}, {{URL}}"}},KIOSK_ENTITLEMENT_LINK3_OPENED:{templates:{category:"Kiosk",action:"Entitlement link 3 opened",label:"{{LABEL}}, {{URL}}"}},APP_CONTENT_SHARED:{templates:{category:"Content",action:"Content shared",label:"{{CONTENT_NAME}}"}},PRESENTER_ISSUE_CONTENT_OPENED:{templates:{category:"Content",action:"Issue content opened {{CONTENT_NAME}}",label:"{{CONTENT_NAME}}"}},PRESENTER_CONTENT_TOC_OPENED:{templates:{category:"Content",action:"Content table of contents opened",label:"{{CONTENT_NAME}}"}},PRESENTER_CONTENT_PREVIEW_TOC_OPENED:{templates:{category:"Content",action:"Content preview table of contents opened",label:"{{CONTENT_NAME}}"}},PRESENTER_CONTENT_PAGE_OPENED:{templates:{category:"Content",action:"Content page opened in issue {{CONTENT_NAME}}",label:"{{PAGE_TITLE}}"}},PRESENTER_CONTENT_OPEN_FAILED:{templates:{category:"Content",action:"Content open failed",label:"{{CONTENT_NAME}}"}},PRESENTER_CHANNEL_CONTENT_OPENED:{templates:{category:"Content",action:"Channel content opened",label:"{{CONTENT_NAME}}"}},PRESENTER_CONTENT_URL_OPENED:{templates:{category:"Content",action:"Content page url opened",label:"{{URL}}"}}},views:{},purchases:{}},appboy:{events:{},views:{},purchases:{}},adjust:{eventsEnabledByDefault:!1,viewsEnabledByDefault:!1,purchasesEnabledByDefault:!1,attributesEnabledByDefault:!1,events:{APP_BOOKMARK_ADDED:{templates:{token_kindle:"",token_android:"",token_ios:""},parameters:{info:""}},APP_BOOKMARK_DELETED:{templates:{token_kindle:"",token_android:"",token_ios:""}},APP_SHARED:{templates:{token_kindle:"",token_android:"",token_ios:""}},APP_START:{templates:{token_kindle:"",token_android:"",token_ios:""}},APP_BACKGROUND:{templates:{token_kindle:"",token_android:"",token_ios:""}},APP_FOREGROUND:{templates:{token_kindle:"",token_android:"",token_ios:""}},APP_STOP:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_PROMOTION_OPEN_ACTION:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_CHANNEL_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ISSUE_DELETED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ISSUE_DOWNLOAD_STARTED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ISSUE_DOWNLOAD_CANCELLED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ISSUE_DOWNLOAD_FAILED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ISSUE_DOWNLOADED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ISSUE_PREVIEW_DOWNLOADED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ISSUE_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ISSUE_OPEN_FAILED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ISSUE_PREVIEW_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ISSUE_PURCHASE_CANCELLED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ISSUE_PURCHASED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ISSUE_TOC_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ISSUE_PREVIEW_TOC_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_PURCHASES_RESTORED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_PURCHASE_RESTORATION_FAILED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_SUBSCRIPTION_PURCHASE_CANCELLED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_SUBSCRIPTION_PURCHASED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ENTITLEMENT_LINK1_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ENTITLEMENT_LINK2_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ENTITLEMENT_LINK3_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}},APP_CONTENT_SHARED:{templates:{token_kindle:"",token_android:"",token_ios:""}},PRESENTER_ISSUE_CONTENT_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}},PRESENTER_CONTENT_TOC_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}},PRESENTER_CONTENT_PREVIEW_TOC_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}},PRESENTER_CONTENT_PAGE_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}},PRESENTER_CONTENT_OPEN_FAILED:{templates:{token_kindle:"",token_android:"",token_ios:""}},PRESENTER_CHANNEL_CONTENT_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}},PRESENTER_CONTENT_URL_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}}},views:{},purchases:{KIOSK_ISSUE_PURCHASED:{token_kindle:"",token_android:"",token_ios:""},KIOSK_SUBSCRIPTION_PURCHASED:{token_kindle:"",token_android:"",token_ios:""}}},flurry:{events:{},views:{},purchases:{}},infonline:{eventsEnabledByDefault:!1,viewsEnabledByDefault:!1,purchasesEnabledByDefault:!1,attributesEnabledByDefault:!1},atinternet:{eventsEnabledByDefault:!1,viewsEnabledByDefault:!1,purchasesEnabledByDefault:!1,attributesEnabledByDefault:!1,events:{},views:{},purchases:{}},chartbeat:{eventsEnabledByDefault:!1,viewsEnabledByDefault:!0,purchasesEnabledByDefault:!1,attributesEnabledByDefault:!1,events:{},views:{},purchases:{}}}},4452:(se,E,c)=>{"use strict";c.d(E,{O8:()=>Mt,jL:()=>He,Kj:()=>Tt,xV:()=>zt});var g=c(2305),s=c(9379),f=c(467),d=c(7027),S=c(4792),R=c(8179),U=c(362),q=c.n(U),z=c(4648);const ve=["state"];class V extends S.q{}var Q=c(3178);class ie extends V{constructor(){super(...arguments),this.groupable=!0}loadCacheData(Ce=!1){var ye=this;return(0,f.A)(function*(){const Ee=ye.getParams(!0,Ce);if(Ee.publicationFilter&&Ee.publicationFilter.id&&!Ee.publicationFilter.id.negated){let De;const Ge=new Promise(Me=>De=Me),ge=ye.purpleService.getPublicationFromCache(Ee.publicationFilter.id.value);return ge.timestamp?(Ge.timestamp=ge.timestamp,ge.then(Me=>De({nodes:[Me],totalCount:1,hasNextPage:!1,cursor:null,timestamp:ge.timestamp}))):De({nodes:[ge],totalCount:1,hasNextPage:!1,cursor:null}),Ge}{const De=ye.purpleService.getPublicationsFromCache(Ee);return De.then(Ge=>(0,s.A)((0,s.A)({},Ge),{},{timestamp:De.timestamp}))}})()}getGroupHeaderContextData(){return(0,f.A)(function*(){return null})()}loadApiData(Ce=!1){var ye=this;return(0,f.A)(function*(){const Ee=ye.getParams(!1,Ce);return Ee.publicationFilter&&Ee.publicationFilter.id&&!Ee.publicationFilter.id.negated?{nodes:[yield ye.purpleService.getPublication(Ee.publicationFilter.id.value,!0)],hasNextPage:!1,cursor:"",totalCount:1}:ye.purpleService.getPublications(Ee,!0).catch(De=>(console.warn("Error fetching publications",De),{hasNextPage:!1,totalCount:0,cursor:"",nodes:[]}))})()}getParams(Ce=!1,ye=!1){let Ee;const De=this.config.includeIssues||this.config.includeContents;De&&(Ee="number"==typeof De?{first:De}:De);const Ge={publicationFilter:(0,R.y3)(this.config.filter),first:this.getBatchSize(this.config,Ce),includeContents:!!this.config.includeContents,includeIssues:!!this.config.includeIssues,contentsParams:Ee};if(this.config.fetchOptions&&(Ge.fetchOptions=this.config.fetchOptions),this.config.sort){let ge=[];ge=Array.isArray(this.config.sort)?this.config.sort:[this.config.sort],Ge.sort=ge}return this.cursor&&!ye&&(Ge.after=this.cursor),Ge}getGhosts(Ce){return Array(6).fill(null)}getGroups(){if(this.data&&this.config.groupBy&&this.config.groupBy.customProperty){const Ce=this.config.groupBy.customProperty;return(0,Q.Am)(this.data.filter(ye=>ye.properties&&ye.properties[Ce]).map(ye=>ye.properties[Ce]))}return[]}getGroupData(Ce){if(this.data&&this.config.groupBy&&this.config.groupBy.customProperty){const ye=this.config.groupBy.customProperty;return this.data.filter(Ee=>Ee.properties&&Ee.properties[ye]===Ce)}return console.warn("getGroupData called but publication-data-source config was missing groupBy parameters"),[]}getDropdownData(){return this.getData().filter(Ce=>!!Ce).map(Ce=>({name:Ce.name,params:{publication:Ce.id}}))}static getDataSourceContentType(Ce){return"publication"}}var K=c(1497),ee=c(4404),he=c(5706),ue=c(7900),oe=c(5159),_=function(Et){return Et.MONTH="MONTH",Et.YEAR="YEAR",Et}(_||{});class O extends V{constructor(Ce,ye,Ee){super(Ce,ye,Ee),this.translateService=oe.Z.appInstanceInjector.get(ue.c)}loadCacheData(Ce=!1){var ye=this;return(0,f.A)(function*(){return ye.loadPeriods(!0)})()}loadApiData(Ce=!1){var ye=this;return(0,f.A)(function*(){return ye.loadPeriods(!1)})()}getDropdownData(){const Ce=this.config.interval||_.YEAR;return this.getData().filter(ye=>!!ye).map(ye=>(ye.time=this.ensureDateType(ye.time),{name:ye.displayValue,params:{period:this.formatPeriod(ye.time,Ce)}}))}loadPeriods(Ce=!1){var ye=this;return(0,f.A)(function*(){const Ee=ye.config.interval||_.YEAR,De=ye.config.startOffset||0,Ge=yield ye.getOldestIssue(Ce),ge=new Date(Ge.publicationDate),Ve=ye.calculateStartDate(new Date,Ee,De),rt=[];let at=new Date(Ve.getTime());for(;at>ge;){const ct=ye.calculateNextDate(at,Ee);rt.push({time:new Date(ct.getTime()),displayValue:ye.formatDisplayName(ct,Ee)}),at=new Date(ct.getTime())}return{nodes:rt,totalCount:rt.length,hasNextPage:!1,cursor:null}})()}getOldestIssue(Ce){var ye=this;return(0,f.A)(function*(){const Ee={sort:[{publicationDate:{direction:ee.SortDirection.ASC}}],first:1};return ye.config.issueFilter&&(Ee.issueFilter=(0,R.n)(ye.config.issueFilter)),(yield Ce?ye.purpleService.getIssuesFromCache(Ee):ye.purpleService.getIssues(Ee,!0)).nodes[0]})()}calculateStartDate(Ce,ye,Ee){const De=new Date(0);return ye===_.YEAR?De.setFullYear(Ce.getFullYear()+1-Ee):ye===_.MONTH&&(De.setFullYear(Ce.getFullYear()),De.setMonth(Ce.getMonth()+1-Ee)),De}calculateNextDate(Ce,ye){const Ee=new Date(Ce.getTime());return ye===_.MONTH?Ee.setMonth(Ce.getMonth()-1):ye===_.YEAR&&Ee.setFullYear(Ce.getFullYear()-1),Ee}formatDisplayName(Ce,ye){const Ee=Ce.getMonth()+1,De=Ce.getFullYear();if(!this.config.format)return ye===_.MONTH?"".concat(Ee," / ").concat(De):De.toString();const ge=ye===_.MONTH?Ee:void 0,Me=(0,R.uQ)(this.config.format.formatText,{periodEntry:{year:De,month:ge}},this.contextService.$functions,this.globalService.getGlobalData()),Ve=[De];return ge&&Ve.push(this.config.format.translateWithKeys?"PERIOD_MONTH_".concat(ge):ge.toString()),this.translateService.translate({text:Me,args:Ve})}ensureDateType(Ce){return Ce instanceof Date?Ce:new Date(Ce)}formatPeriod(Ce,ye){if(ye===_.YEAR)return Ce.getFullYear().toString();{const Ee=Ce.getMonth()+1,De=Ee<10?"0".concat(Ee):Ee.toString();return"".concat(Ce.getFullYear(),"-").concat(De)}}}var x=c(950);class B extends V{loadCacheData(Ce=!1){var ye=this;return(0,f.A)(function*(){const Ee=ye.getParams(!0,Ce);if(ye.config.localMode)return ye.loadCacheLocalMode(Ee);const De=ye.purpleService.getCategoriesFromCache(Ee),Ge=(0,s.A)((0,s.A)({},yield De),{},{timestamp:De.timestamp});return ye.config.hideEmpty?ye.getApiResponseWithoutEmptyCategories(Ge):Ge})()}loadApiData(Ce=!1){var ye=this;return(0,f.A)(function*(){const Ee=ye.getParams(!1,Ce);if(ye.config.localMode)return ye.loadCacheLocalMode(Ee);const De=yield ye.purpleService.getCategories(Ee,!0);return ye.config.hideEmpty?ye.getApiResponseWithoutEmptyCategories(De):De})()}loadCacheLocalMode(Ce){var ye,Ee;const De=this.purpleService.filterCategoriesByParam(Ce);let Ge=De.sort((0,x.CY)(null!==(ye=Ce.sort)&&void 0!==ye?ye:[]));const ge=parseInt(null!==(Ee=Ce.after)&&void 0!==Ee?Ee:"0",10);return Ge=De.slice(ge*Ce.first,(ge+1)*Ce.first),{nodes:Ge,totalCount:De.length,hasNextPage:Ge.length<De.length,cursor:(ge+1).toString()}}getParams(Ce=!1,ye=!1){let Ee;this.config.includeIssues&&(Ee="number"==typeof this.config.includeIssues?{first:this.config.includeIssues}:this.config.includeIssues,this.config.hideEmpty&&(Ee.first=Math.max(Ee.first||0,1)));const De={categoryFilter:(0,R.q8)(this.config.filter),first:this.getBatchSize(this.config,!Ce),includeIssues:!!Ee,issuesParams:Ee};if(this.config.sort){let Ge=[];Ge=Array.isArray(this.config.sort)?this.config.sort:[this.config.sort],De.sort=Ge}return this.cursor&&!ye&&(De.after=this.cursor),De}getGhosts(Ce){return Array(6).fill(null)}getDropdownData(){return this.getData().filter(Ce=>!!Ce).map(Ce=>({name:Ce.name,params:{category:Ce.id}}))}getApiResponseWithoutEmptyCategories(Ce){return(0,s.A)((0,s.A)({},Ce),{},{nodes:Ce.nodes.filter(ye=>ye.issues&&ye.issues.nodes.length)})}static getDataSourceContentType(Ce){return"category"}}var pe=c(7783),le=c.n(pe),W=c(4608),ae=c(5964),Le=c(8251),We=c(6843),dt=c(4945),we=c(2962);class ze extends S.q{getParseEnabledValue(Ce,ye){const Ee=(0,R.v3)(Ce);if("number"==typeof Ee)return Ee;if("string"==typeof Ee){const De=parseInt(Ee);if(!isNaN(De))return De}return console.error("The value in '".concat(ye,"' in a subordinated content couldn't be resolved to a number,\n please revisit your views.json configuration.")),-1}mergeContents(Ce,ye,Ee,De){let Ge=Ce;if(Ee&&Ee.length){(0,R.v3)(De.randomize)&&(0,R.E1)(Ee);const ge=this.getParseEnabledValue(De.after,"after"),Me=this.getParseEnabledValue(De.interval,"interval");if(Me>0){let rt=ge,at=0;for(;rt<Ge.nodes.length&&at<Ee.length;){const ct=Ee[at++];Ge.nodes=Ge.nodes.filter(Yt=>Yt.id!=ct.id),rt<Ge.nodes.length?Ge.nodes.splice(rt,0,ct):Ge.nodes.push(ct),rt+=Me+1}}else if(ge<=Ge.nodes.length){const rt=0==Me?Ee:Ee.slice(0,1);Ge.nodes=Ge.nodes.filter(at=>!rt.find(ct=>ct.id==at.id)),ge<=Ge.nodes.length?Ge.nodes.splice(ge,0,...rt):Ge.nodes=Ge.nodes.concat(Ee)}const Ve=(0,R.v3)(this.config.limit);if(Ve){const rt=parseInt(null==Ve?void 0:Ve.toString(),10)||void 0;Ge.nodes=Ge.nodes.slice(0,rt)}}if(ye&&ye.length){const ge=new Set(ye.map(rt=>rt.id));let Me=Ge.nodes.filter(rt=>!ge.has(rt.id));ye.forEach(rt=>{Me.splice(void 0===rt.sortIndex?rt.content.index:rt.sortIndex-1,0,rt.content)});const Ve=(0,R.v3)(this.config.limit);if(Ve){const rt=parseInt(null==Ve?void 0:Ve.toString(),10)||void 0;Me=Me.slice(0,rt)}Ge=(0,s.A)((0,s.A)({},Ce),{},{nodes:Me})}return Ge}}class Ke extends ze{loadCacheData(Ce=!1){var ye=this;return(0,f.A)(function*(){const Ee=ye.getParams(!0,Ce),De=ye.config.local&&(0,R.v3)(ye.config.local);if(De){const ge="boolean"==typeof De?void 0:De,Me=yield ye.getLocalContents(Ee,!0,ge);return ye.applyLocalFilter(Me)}const Ge=ye.purpleService.getCatalogContentsFromCache(Ee);return ye.mergeData(Ge,Ce,!0).then(ge=>(0,s.A)((0,s.A)({},ge),{},{timestamp:Ge.timestamp}))})()}loadApiData(Ce=!1){var ye=this;return(0,f.A)(function*(){const Ee=ye.getParams(!1,Ce),De=ye.config.local&&(0,R.v3)(ye.config.local);if(De){const ge="boolean"==typeof De?void 0:De,Me=yield ye.getLocalContents(Ee,!0,ge);return ye.applyLocalFilter(Me)}const Ge=ye.purpleService.getCatalogContents(Ee,!0).then(ge=>ye.mapApiData(ge));return ye.mergeData(Ge,Ce,!1)})()}mergeData(Ce,ye,Ee){if(!ye&&this.cursor)return Ce;let De=Promise.resolve(null),Ge=(0,R.v3)(this.config.fixedContentFromCollection);if((null==Ge?void 0:Ge.trim().length)>0){const Ve={collectionFilter:{name:{value:Ge.trim(),operation:ee.StringOperation.EQUAL}},includeElements:!0};De=(Ee?this.purpleService.getCollectionsFromCache(Ve):this.purpleService.getCollections(Ve,!0)).then(rt=>{var at;return null===(at=rt.nodes[0])||void 0===at?void 0:at.elements})}let ge=Promise.resolve(null);const Me=this.config.subordinatedContent&&(0,R.v3)(this.config.subordinatedContent);if(Me){const Ve=this.getParams(!1,!0,Me);ge=Ee?this.purpleService.getCatalogContentsFromCache(Ve):this.purpleService.getCatalogContents(Ve,!0).then(rt=>this.mapApiData(rt))}return Promise.all([Ce,De,ge]).then(([Ve,rt,at])=>{if((rt||at)&&Ve.hasNextPage){const ct=this.getLimit();(!ct||Ve.nodes.length<ct)&&(console.warn("Using subordinated content or fixed collection content with a data sources that has multiple pages"),console.debug(this.config))}return this.mergeContents(Ve,null==rt?void 0:rt.nodes,null==at?void 0:at.nodes,Me)})}mapApiData(Ce){var ye=this;return(0,f.A)(function*(){for(const Ee of Ce.nodes){const De=Object.keys(Ee.properties).filter(Ge=>Ge.startsWith("inlinescript")||Ge.startsWith("inlinestyle"));for(const Ge of De)delete Ee.properties[Ge]}if(ye.config.includeBundlesOfPosts&&(0,R.v3)(ye.config.includeBundlesOfPosts)){const Ee=new Set;for(const Ge of Ce.nodes)Ge.bundleId&&Ee.add(Ge.bundleId);const De={OR:[...Ee.keys()].map(Ge=>({id:{value:Ge}}))};try{const Ge=(yield ye.purpleService.getCatalogContents({contentFilter:De})).nodes;for(const ge of Ce.nodes)ge.bundleId&&(ge.bundle=Ge.find(Me=>Me.id===ge.bundleId))}catch(Ge){console.error("Failed to load bundles for posts with filter",De,Ge)}}return Ce})()}getParams(Ce=!1,ye=!1,Ee=this.config){const De={first:this.getBatchSize(Ee,!Ce)};let Ge=Ee.filter;if(this.excludedData){let Me=this.excludedData.filter(Ve=>!!Ve).map(Ve=>Ve.id).filter((Ve,rt,at)=>at.indexOf(Ve)==rt);Ge={AND:[Ge].concat(Me.map(Ve=>({id:{negated:!0,value:Ve,operation:ee.StringOperation.EQUAL}})))}}const ge=(0,R.Ph)(Ge);if(ge&&(De.contentFilter=ge),Ee.fetchOptions&&(De.fetchOptions=Ee.fetchOptions),Ee.sort){let Me=[];Me=Array.isArray(Ee.sort)?Ee.sort:[Ee.sort],De.sort=Me}return this.cursor&&!ye&&(De.after=this.cursor),De}applyLocalFilter(Ce){const ye=(0,R.Dc)(this.config.filter);return ye?(0,R.MV)(Ce,Ce.nodes.filter(Ee=>(0,z.h9)(ye,Ee))):Ce}getLocalContents(Ce,ye=!1,Ee){var De=this;return(0,f.A)(function*(){const Ge=(yield De.purpleService.getLocalIssues(Ce,ye,Ee)).issues;return Ge&&Ge.length?{nodes:Ge,totalCount:Ge.length,hasNextPage:!1,cursor:null}:{nodes:[],totalCount:0,hasNextPage:!1,cursor:null}})()}hasConfigChanged(Ce){return super.hasConfigChanged(Ce)&&!q()(this.getParams(),this.getParams(!1,!1,Ce))||this.hasLocalConfigChanged(Ce)}hasLocalConfigChanged(Ce){return!q()(Ce.local,this.config.local)}static getDataSourceContentType(Ce){return"content"}}class k extends V{loadCacheData(Ce=!1){var ye=this;return(0,f.A)(function*(){const Ee=ye.getParams(!0,Ce),De=ye.purpleService.getTaxonomiesFromCache(Ee),Ge=(0,s.A)((0,s.A)({},yield De),{},{timestamp:De.timestamp});return ye.config.hideEmpty?ye.getApiResponseWithoutEmptyTaxonomies(Ge):Ge})()}loadApiData(Ce=!1){var ye=this;return(0,f.A)(function*(){const Ee=ye.getParams(!1,Ce),De=yield ye.purpleService.getTaxonomies(Ee,!0);return ye.config.hideEmpty?ye.getApiResponseWithoutEmptyTaxonomies(De):De})()}getParams(Ce=!1,ye=!1){let Ee;this.config.includeContents&&(Ee="number"==typeof this.config.includeContents?{first:this.config.includeContents}:this.config.includeContents,this.config.hideEmpty&&(Ee.first=Math.max(Ee.first||0,1)));const De={taxonomyFilter:(0,R.Vb)(this.config.filter),first:this.getBatchSize(this.config,Ce),includeContents:!!Ee,contentsParams:Ee};if(this.config.fetchOptions&&(De.fetchOptions=this.config.fetchOptions),this.config.sort){let Ge=[];Ge=Array.isArray(this.config.sort)?this.config.sort:[this.config.sort],De.sort=Ge}return this.cursor&&!ye&&(De.after=this.cursor),De}getGhosts(Ce){return Array(6).fill(null)}getDropdownData(){return this.getData().filter(Ce=>!!Ce).map(Ce=>({name:Ce.name,params:{taxonomy:Ce.id}}))}getApiResponseWithoutEmptyTaxonomies(Ce){return(0,s.A)((0,s.A)({},Ce),{},{nodes:Ce.nodes.filter(ye=>ye.contents&&ye.contents.nodes.length)})}}var F=c(4843);function Y(Et){if(0===Et.nodes.length)return{hasNextPage:!1,totalCount:0,cursor:"",nodes:[]};const Ce=Et.nodes[0].elements;if(!Ce)throw console.error("CollectionElementDataSource must call API with `includeElements`, got no elements!"),new Error("elements missing");return{cursor:Ce.cursor,hasNextPage:Ce.hasNextPage,totalCount:Ce.totalCount,nodes:Ce.nodes.map(ye=>ye.content)}}const Se={ad:class Ye extends S.q{constructor(Ce,ye,Ee){super(Ce,ye,Ee),this.config=Ce,this.outlet=ye,this.injector=Ee,this.store=Ee.get(Le.B),this.contextService.viewContext$.subscribe(De=>{this.filteredAds&&this.fetchedAds&&(q()(this.filteredAds,this.filter(this.fetchedAds))||this.update())})}loadApiData(Ce){var ye=this;return(0,f.A)(function*(){return ye.fetchedAds||(ye.fetchedAds=yield new Promise(Ee=>{ye.store.select((0,dt.jZ)(We.O.AD),De=>Ee(De.adSlots))})),ye.filteredAds=ye.filter(ye.fetchedAds),ye.dataToPage(ye.filteredAds,Ce)})()}dataToPage(Ce,ye=!1){const Ee=ye?0:parseInt(this.cursor||"0",10),De=Ce.slice(Ee,Ee+this.getBatchSize(this.config));return{hasNextPage:Ee+this.getBatchSize(this.config)<Ce.length,cursor:"".concat(Ee+this.getBatchSize(this.config)),nodes:De,totalCount:Ce.length}}filter(Ce){let ye=Ce;if(this.config.idPattern)try{const Ee=new RegExp(this.config.idPattern);ye=Ce.filter(De=>Ee.test(De.id))}catch(Ee){console.warn("error applying idPattern",Ee)}return this.filterDataLocal(ye)}static getDataSourceContentType(Ce){return"ad"}},bookmark:class _e extends S.q{constructor(Ce,ye,Ee){super(Ce,ye,Ee),this.config=Ce,this.outlet=ye,this.injector=Ee,this.groupable=!0,this.purpleService.bookmarks$.pipe((0,ae.p)(De=>!!this.fetchedData&&!q()(De,this.fetchedData))).subscribe(()=>{this.fetchedData=null,this.update()})}loadApiData(Ce){var ye=this;return(0,f.A)(function*(){const Ee=yield ye.purpleService.getBookmarks(),De=Ee.reduce((ct,Yt)=>{const Ft=ye.getFallbackIssueData(Yt);return ct.set(Ft.id,Ft),ct},new Map),Ge={},ge={},Me=(yield Promise.all(Array.from(De.values()).map(ct=>ye.purpleService.getIssue(ct.id,!1,ct)))).filter(ct=>!!ct),Ve=(yield Promise.all(Array.from(De.values()).map(ct=>ye.purpleService.getCatalogContent(ct.id,!1)))).filter(ct=>!!ct);Me.forEach(ct=>Ge[ct.id]=ct),Ve.forEach(ct=>Ge[ct.id]=ct);const rt=[],at=ye.contextService.getCurrentViewContext();for(const ct of Ee){const Yt=Ge[ye.getIssueId(ct)];if(Yt)if(ye.config.filter){const Ft=(0,R.uQ)(ye.config.filter,(0,s.A)((0,s.A)({},at),{},{[ye.config.type]:(0,s.A)((0,s.A)({},ct),{},{issue:Yt})}),ye.contextService.$functions,ye.globalService.getGlobalData());(0,R.Ol)({condition:Ft})&&(rt.push(ct),ge[Yt.id]=Yt)}else rt.push(ct)}return ye.issues=ye.config.filter?ge:Ge,ye.fetchedData=ye.sortByCreationDate(rt),ye.dataToPage(ye.fetchedData,Ce)})()}getGroups(){return this.fetchedData&&this.config.groupBy&&this.config.groupBy.issue?(0,x.dV)(Object.keys(this.issues).map(ye=>this.issues[ye])).map(ye=>ye.id):[]}getGroupData(Ce){return this.fetchedData&&this.config.groupBy&&this.config.groupBy.issue?this.sortByIndex(this.fetchedData.filter(ye=>this.getIssueId(ye)===Ce)):(console.warn("getGroupData called but bookmark-data-source config was missing groupBy parameters"),[])}dataToPage(Ce,ye=!1){const Ee=ye?0:parseInt(this.cursor||"0",10),De=Ce.slice(Ee,Ee+this.getBatchSize(this.config));return{hasNextPage:Ee+this.getBatchSize(this.config)<Ce.length,cursor:"".concat(Ee+this.getBatchSize(this.config)),nodes:De,totalCount:Ce.length}}getGroupHeaderContextData(Ce,ye){var Ee=this;return(0,f.A)(function*(){var De,Ge;const ge=null!=ye?ye:Ee.getGroupData(Ce),Me=ge.some(rt=>{var at;return null===(at=rt.customData)||void 0===at?void 0:at.contentType})?null===(De=ge[0].customData)||void 0===De?void 0:De.contentType:null,Ve={length:ge.length,contentType:Me,issueType:ee.IssueType.ISSUE};return null!==(Ge=Ee.config.groupBy)&&void 0!==Ge&&Ge.issue&&ge.some(rt=>rt.customData.sourceIssueId)&&(Ve.sourceIssue=Ce),Ve})()}getGroupHeaderConfig(Ce,ye){const Ee=(0,R.v3)(Ce.dataSource)||{type:"issue"};return Ee.filter=(0,s.A)((0,s.A)({},Ee.filter||{}),{},{id:{value:ye}}),Ce.dataSource=Ee,Ce}sortByCreationDate(Ce,ye=ee.SortDirection.DESC){const Ee=ye===ee.SortDirection.DESC?1:-1;return Ce.sort((De,Ge)=>(Ge.createdAt-De.createdAt)*Ee)}sortByIndex(Ce,ye=ee.SortDirection.ASC){const Ee=ye===ee.SortDirection.DESC?1:-1;return Ce.sort((De,Ge)=>{let ge=this.getPageIndex(Ge)-this.getPageIndex(De);return 0===ge&&(ge=this.getSequenceNumber(Ge)-this.getSequenceNumber(De)),ge*Ee})}getFallbackIssueData(Ce){return{id:this.getIssueId(Ce),name:this.getIssueName(Ce)}}getIssueId(Ce){var ye;return(null===(ye=Ce.customData)||void 0===ye?void 0:ye.sourceIssueId)||Ce.issueId}getIssueName(Ce){var ye;return(null===(ye=Ce.customData)||void 0===ye?void 0:ye.sourceIssueName)||(Ce.issueType===ee.IssueType.ISSUE?Ce.description:Ce.title)}getPageIndex(Ce){if(Ce.issueType===ee.IssueType.ISSUE)return Ce.pageIndex;{var ye;const Ee=parseInt(null===(ye=Ce.customData)||void 0===ye?void 0:ye.pageNumber,10);return isFinite(Ee)?Ee:(console.warn("no page number property found for article. Please make sure this is when using bookmark.createBookmark"),0)}}getSequenceNumber(Ce){if(Ce.issueType===ee.IssueType.ISSUE)return Ce.pageIndex;{var ye;const Ee=parseInt(null===(ye=Ce.customData)||void 0===ye?void 0:ye.sequenceNumber,10);return isFinite(Ee)?Ee:(console.warn("no sequence number property found for article. Please make sure this is when using bookmark.createBookmark"),0)}}static getConfigEscapeProperties(){return[...super.getConfigEscapeProperties(),["dataSource","filter"]]}static getDataSourceContentType(Ce){return"bookmark"}},category:B,collection:class Ze extends S.q{loadCacheData(Ce=!1){var ye=this;return(0,f.A)(function*(){const Ee=ye.getParams(!0,Ce),De=ye.purpleService.getCollectionsFromCache(Ee);return De.then(Ge=>(0,s.A)((0,s.A)({},ye.mapPage(Ge)),{},{timestamp:De.timestamp}))})()}loadApiData(Ce=!1){var ye=this;return(0,f.A)(function*(){const Ee=ye.getParams(!1,Ce);return ye.purpleService.getCollections(Ee,!0).then(De=>ye.mapPage(De))})()}mapPage(Ce){if("getCollections"===this.config.mode)return Ce;if("getContentsInCollection"===this.config.mode){const ye=[];for(const Ee of Ce.nodes)ye.push(...Ee.elements.nodes.map(De=>De.content));return{cursor:null,hasNextPage:!1,nodes:ye,totalCount:ye.length}}}getParams(Ce=!1,ye=!1,Ee=this.config){const De={first:this.getBatchSize(Ee,!Ce)};if("getContentsInCollection"===Ee.mode&&(De.includeElements=!0,De.elementsParams={first:100}),Ee.filter&&(De.collectionFilter=(0,R.mI)(Ee.filter)),Ee.fetchOptions&&(De.fetchOptions=Ee.fetchOptions),this.config.sort){let Ge=[];Ge=Array.isArray(Ee.sort)?Ee.sort:[Ee.sort],De.sort=Ge}return this.cursor&&!ye&&(De.after=this.cursor),De}hasConfigChanged(Ce){return super.hasConfigChanged(Ce)&&!q()(this.getParams(),this.getParams(!1,!1,Ce))}static getDataSourceContentType(Ce){return"getContentsInCollection"===Ce.mode?"content":"collection"}},"collection-content":class P extends ze{loadCacheData(Ce=!1){var ye=this;return(0,f.A)(function*(){const Ee=ye.getParams(!0,Ce),De=ye.purpleService.getCollectionsFromCache(Ee);return ye.mergeData(De.then(Ge=>Y(Ge)),Ce,!0).then(Ge=>(0,s.A)((0,s.A)({},Ge),{},{timestamp:De.timestamp}))})()}loadApiData(Ce=!1){var ye=this;return(0,f.A)(function*(){const Ee=ye.getParams(!1,Ce),De=ye.purpleService.getCollections(Ee,!0).then(Ge=>Y(Ge));return ye.mergeData(De,Ce,!1)})()}mergeData(Ce,ye,Ee){if(!ye&&this.cursor)return Ce;let De=Promise.resolve(void 0);const Ge=this.config.subordinatedContent&&(0,R.v3)(this.config.subordinatedContent);if(Ge){const ge=new Ke((0,s.A)({type:"content"},Ge),this.outlet,this.injector);ge.registered=!0,De=(0,F._)(ge.data$.pipe((0,ae.p)(Me=>!(!Me||Me.length&&!Me[0])))),ge.loadData()}return Promise.all([Ce,De]).then(([ge,Me])=>{if(Me&&ge.hasNextPage){const Ve=this.getLimit();(!Ve||ge.nodes.length<Ve)&&(console.warn("Using subordinated content or fixed collection content with a data sources that has multiple pages"),console.debug(this.config))}return this.mergeContents(ge,void 0,Me,Ge)})}getParams(Ce=!1,ye=!1,Ee=this.config){const De={first:1,includeElements:!0};return Ee.collectionFilter&&(De.collectionFilter=(0,R.mI)(Ee.collectionFilter)),De.elementsParams={first:this.getBatchSize(Ee,!Ce)},Ee.fetchOptions&&(De.fetchOptions=Ee.fetchOptions),this.cursor&&!ye&&(De.elementsParams.after=this.cursor),De}hasConfigChanged(Ce){return super.hasConfigChanged(Ce)&&!q()(this.getParams(),this.getParams(!1,!1,Ce))}static getDataSourceContentType(Ce){return"content"}},custom:class G extends S.q{loadApiData(Ce){var ye=this;return(0,f.A)(function*(){const Ee=Ce?0:parseInt(ye.cursor||"0",10);let De=ye.config.data;ye.config.sort&&(De=(0,R.kJ)(ye.config.data,ye.config.sort)),De=ye.filterDataLocal(De,ye.config.condition);const Ge=ye.getBatchSize(ye.config),ge=De.slice(Ee,Ee+Ge),Me={hasNextPage:Ee+Ge<De.length,cursor:ye.createCursor(Ee+Ge),nodes:ge,totalCount:De.length};return Promise.resolve(Me)})()}getGhosts(Ce){return Array(this.config.data.length).fill(null)}createCursor(Ce){return"".concat(Ce)}},issue:class de extends S.q{constructor(){super(...arguments),this.groupable=!0}getGroups(){var Ce;if(!this.data)return this.getGhosts();if(null!==(Ce=this.config.groupBy)&&void 0!==Ce&&Ce.category){const ye=[];let Ee;const De={};for(const Ge of this.data||[])Ge.categories[0]&&Ge.categories[0]!==Ee&&(Ee=Ge.categories[0],De[Ee]?De[Ee]++:De[Ee]=1,ye.push(Ee+"#"+De[Ee]));return ye}return[]}getGroupData(Ce){var ye;if(!Ce)return this.getGhosts();if(null!==(ye=this.config.groupBy)&&void 0!==ye&&ye.category){const Ee=Ce.match((0,d.A)(/(.*)#(\d+)$/,{id:1,index:2}));let De=Ee.groups.id;"undefined"===De&&(De=void 0);const Ge=parseInt(Ee.groups.index,10);let Me,ge=0;const Ve=[];for(const rt of this.data)if(rt.categories[0]&&(rt.categories[0]===De&&Me!==rt.categories[0]&&ge++,ge===Ge&&rt.categories[0]===De&&Ve.push(rt),Me=rt.categories[0],ge>Ge||ge===Ge&&Me!==De))break;return Ve}return[]}getGroupHeaderContextData(Ce){var ye=this;return(0,f.A)(function*(){var Ee;const De=Ce&&Ce.split("#")[0]||null;return null!==(Ee=ye.config.groupBy)&&void 0!==Ee&&Ee.category&&De?yield ye.purpleService.getCategory(De):{id:De}})()}getGroupHeaderConfig(Ce,ye){return Ce}applyLocalFilter(Ce){const ye=(0,R.g7)(this.config.filter);return ye?(0,R.MV)(Ce,Ce.nodes.filter(Ee=>(0,z.tU)(ye,Ee))):Ce}loadCacheData(Ce=!1){var ye=this;return(0,f.A)(function*(){const Ee=ye.getParams(!0,Ce),De=ye.config.local&&(0,R.v3)(ye.config.local);let Ge;if(De){const ge="boolean"==typeof De?void 0:De;Ge=yield ye.getLocalIssues(Ee,!0,ge)}if(Ee.issueFilter&&Ee.issueFilter.id&&!Ee.issueFilter.id.negated){let ge;const Me=new Promise(rt=>ge=rt),Ve=ye.purpleService.getIssueFromCache(Ee.issueFilter.id.value);return Ve.timestamp?(Me.timestamp=Ve.timestamp,Ve.then(rt=>ge({nodes:[rt],totalCount:1,hasNextPage:!1,cursor:null,timestamp:Ve.timestamp}))):ge({nodes:[Ve],totalCount:1,hasNextPage:!1,cursor:null}),Me}{const ge=ye.purpleService.getIssuesFromCache(Ee);return ge.then(Me=>(0,s.A)((0,s.A)({},Me),{},{timestamp:ge.timestamp}))}})()}loadApiData(Ce=!1){var ye=this;return(0,f.A)(function*(){const Ee=ye.getParams(!1,Ce),De=ye.config.local&&(0,R.v3)(ye.config.local);let Ge;if(De){const ge="boolean"==typeof De?void 0:De;Ge=yield ye.getLocalIssues(Ee,!1,ge)}else Ge=Ee.issueFilter&&Ee.issueFilter.id&&!Ee.issueFilter.id.negated?{nodes:[yield ye.purpleService.getIssue(Ee.issueFilter.id.value,!0)],hasNextPage:!1,cursor:"",totalCount:1}:yield ye.purpleService.getIssues(Ee,!0);if(ye.config.includeSourceIssues&&(0,R.v3)(ye.config.includeSourceIssues)){const ge={},Me=yield Promise.all(Object.values(ge).map(function(){var Ve=(0,f.A)(function*(rt){try{return{sourceIssue:(yield ye.purpleService.getIssues(rt.params)).nodes[0],nodeIndices:rt.nodeIndices}}catch(at){return{}}});return function(rt){return Ve.apply(this,arguments)}}()));for(const Ve of Me)Ve.sourceIssue&&Ve.nodeIndices.forEach(rt=>{Ge.nodes[rt].sourceIssue=Ve.sourceIssue})}return ye.applyLocalFilter(Ge)})()}getLocalIssues(Ce,ye=!1,Ee){var De=this;return(0,f.A)(function*(){const Ge=(yield De.purpleService.getLocalIssues(Ce,ye,Ee)).issues;return Ge&&Ge.length?{nodes:Ge,totalCount:Ge.length,hasNextPage:!1,cursor:null}:{nodes:[],totalCount:0,hasNextPage:!1,cursor:null}})()}getParams(Ce=!1,ye=!1,Ee=this.config){const De={first:this.getBatchSize(Ee,!Ce)},Ge=(0,R.n)(Ee.filter);if(Ge&&(De.issueFilter=Ge),this.config.sort){let ge=[];ge=Array.isArray(Ee.sort)?Ee.sort:[Ee.sort],De.sort=ge}return this.cursor&&!ye&&(De.after=this.cursor),De}isEqual(Ce,ye){return Ce===ye||(Ce&&Ce.id)===(ye&&ye.id)}isDataEqual(Ce,ye){const Ee=De=>De&&"object"==typeof De?(0,g.A)(De,ve):De;return q()(Ce&&Ce.map(Ee),ye&&ye.map(Ee))}isLocal(Ce=this.config){return Ce.local&&(0,R.uQ)(Ce.local,Ce,this.contextService.$functions,this.globalService.getGlobalData())}hasConfigChanged(Ce){return super.hasConfigChanged(Ce)&&(!q()(this.getParams(),this.getParams(!1,!1,Ce))||this.isLocal()!==this.isLocal(Ce))}static getDataSourceContentType(Ce){return"issue"}},json:class te extends S.q{constructor(){super(...arguments),this.groupable=!0}getCacheKey(){return"JsonDataSource:".concat(this.config.url)}dataToPage(Ce,ye=!1){var Ee;const De=ye?0:parseInt(this.cursor||"0",10);let Ge;this.config.sort&&(Ce=(0,R.kJ)(Ce,this.config.sort)),Ge=null!==(Ee=this.config.groupBy)&&void 0!==Ee&&Ee.subArray&&this.config.condition?Ce.map(Ve=>(Ve[this.config.groupBy.subArray]=this.filterDataLocal(Ve[this.config.groupBy.subArray],this.config.condition),Ve)):this.config.condition?this.filterDataLocal(Ce,this.config.condition):Ce;const ge=this.getBatchSize(this.config),Me=Ge.slice(De,De+ge);return{hasNextPage:De+ge<Ge.length,cursor:"".concat(De+ge),nodes:Me,totalCount:Ge.length}}loadCacheData(Ce=!1){var ye=this;return(0,f.A)(function*(){const Ee=ye.cacheService.PURPLE_JSON_CACHE[ye.getCacheKey()];if(!Ee)throw new Error("no cached data");if(!Ee||!Ee.timestamp||!Ee.data)throw new Error("cached data corrupt");return ye.isCacheTimestampValid(Ee.timestamp)&&(ye.fetchedData=Ee.data),(0,s.A)({timestamp:Ee.timestamp},ye.dataToPage(Ee.data,Ce))})()}loadApiData(Ce=!1){var ye=this;return(0,f.A)(function*(){const Ee=yield ye.resourceService.getObject(ye.config.url);if(!Array.isArray(Ee))throw new Error("JSON data from ".concat(ye.config.url," must be an array"));const De={timestamp:Date.now(),data:Ee};return ye.cacheService.PURPLE_JSON_CACHE[ye.getCacheKey()]=De,ye.cacheService.updateTransferStateAndStorage(W.B.PURPLE_JSON_CACHE),ye.fetchedData=Ee,Promise.resolve(ye.dataToPage(ye.fetchedData,Ce))})()}getGhosts(Ce){return Array(3).fill(null)}getGroups(){var Ce,ye,Ee;return null!==(Ce=this.config.groupBy)&&void 0!==Ce&&Ce.subArray&&null!==(ye=null===(Ee=this.data)||void 0===Ee?void 0:Ee.map(De=>le()(De)))&&void 0!==ye?ye:[]}getGroupData(Ce){var ye;if(null!==(ye=this.config.groupBy)&&void 0!==ye&&ye.subArray){var Ee;const De=null===(Ee=this.data)||void 0===Ee||null===(Ee=Ee.find(Ge=>le()(Ge)===Ce))||void 0===Ee?void 0:Ee[this.config.groupBy.subArray];return Array.isArray(De)?De:(console.warn("A group from ".concat(this.config.url," has no array at field ").concat(this.config.groupBy.subArray)),[])}return console.warn("getGroupData called but json-data-source config was missing groupBy parameters"),[]}getGroupHeaderContextData(Ce){var ye,Ee;return null!==(ye=this.config.groupBy)&&void 0!==ye&&ye.subArray?Promise.resolve(null===(Ee=this.data)||void 0===Ee?void 0:Ee.find(De=>le()(De)===Ce)):(console.warn("getGroupHeaderContextData called but json-data-source config was missing groupBy parameters"),Promise.resolve(void 0))}},menu:class je extends S.q{loadCacheData(Ce=!1){var ye=this;return(0,f.A)(function*(){const Ee=ye.getParams(!0,Ce),De=ye.purpleService.getCatalogMenusFromCache(Ee);return De.then(Ge=>(0,s.A)((0,s.A)({},ye.mapMenuPage(Ge)),{},{timestamp:De.timestamp}))})()}loadApiData(Ce=!1){var ye=this;return(0,f.A)(function*(){const Ee=ye.getParams(!1,Ce);return ye.purpleService.getMenus(Ee,!0).then(De=>ye.mapMenuPage(De))})()}getParams(Ce=!1,ye=!1,Ee=this.config){const De={first:this.getBatchSize(Ee,!Ce),includeItems:!0},Ge=Ee.filter;return Ge&&(De.menuFilter=Ge),Ee.fetchOptions&&(De.fetchOptions=Ee.fetchOptions),this.cursor&&!ye&&(De.after=this.cursor),De}mapMenuPage(Ce){const ye=(0,R.S8)(this.config.itemFilter),Ee=Ce.nodes.map(De=>{var Ge;return(0,s.A)((0,s.A)({},De),{},{items:null===(Ge=De.items)||void 0===Ge?void 0:Ge.filter(ge=>(0,z.w)(ye,ge)).sort((ge,Me)=>ge.sortIndex-Me.sortIndex)})});return(0,R.MV)(Ce,Ee)}static getDataSourceContentType(Ce){return"menu"}},period:O,publication:ie,"search-result":class Ae extends S.q{constructor(Ce,ye,Ee){super(Ce,ye,Ee),this.config=Ce,this.outlet=ye,this.injector=Ee,this.groupable=!0}loadApiData(Ce=!1){var ye=this;return(0,f.A)(function*(){return ye.purpleService.search(ye.getParams(!1,Ce)).then(Ee=>ye.mapPage(Ee))})()}mapPage(Ce){var ye,Ee;if(Ce=this.limitExcerptLength(Ce),null!==(ye=this.config.legacyMode)&&void 0!==ye&&ye.unwrapBundles){const De=[];for(const Ge of Ce.nodes)(0,he.o$)(Ge)?De.push(...Ge.posts):De.push(Ge);Ce=(0,R.MV)(Ce,De)}if(null!==(Ee=this.config.legacyMode)&&void 0!==Ee&&Ee.mapPostToIssue)for(let De=0;De<Ce.nodes.length;De++){const Ge=Ce.nodes[De];(0,he.QO)(Ge)&&(Ce.nodes[De]={issue:Ge.post,contentType:ee.CatalogContentType.ISSUE,pageHits:[{excerpt:Ge.excerpt}]})}return Ce}limitExcerptLength(Ce){const ye=Ee=>{const De=Ee.indexOf("<strong>");if(-1===De)return console.warn('Got search result without "<strong>" tag. Is this still how search hits are marked?'),Ee;let Ge=Math.max(0,De-this.config.limitCharactersBeforeHit);if(Ge>0){const ge=Ee.indexOf(" ",Ge);ge>-1&&(Ge=ge+1)}return Ee.substring(Ge)};return void 0!==this.config.limitCharactersBeforeHit&&Ce.nodes.forEach(Ee=>{(0,he.QO)(Ee)?Ee.excerpt=ye(Ee.excerpt):(0,he.n7)(Ee)?Ee.pageHits.forEach(De=>De.excerpt=ye(De.excerpt)):(0,he.o$)(Ee)&&Ee.posts.forEach(De=>De.excerpt=ye(De.excerpt))}),Ce}getGroups(){var Ce;if(!this.data&&this.error)return[];if(!this.data&&!this.error)return this.getGhosts();if(null!==(Ce=this.config.groupBy)&&void 0!==Ce&&Ce.issueFromCustomProperty){var ye;if(null===(ye=this.config.legacyMode)||void 0===ye||!ye.unwrapBundles)throw console.error("Regrouping for bundles is not supported"),new Error("SearchResultDataSource: groupBy.issueFromCustomProperty requires legacyMode.unwrapBundles");if(!this.data)return[];const Ee=this.config.groupBy.issueFromCustomProperty,De=new Set;for(const Ge of this.data){const ge=(0,he.tr)(Ge);let Me=ge.properties[Ee];Me||(Me=ge.id),De.has(Me)||De.add(Me)}return Array.from(De.values())}return[]}getGroupData(Ce){var ye;if(!Ce)return this.getGhosts();if(null!==(ye=this.config.groupBy)&&void 0!==ye&&ye.issueFromCustomProperty){let Ee=this.data.filter(De=>(0,he.tr)(De).properties[this.config.groupBy.issueFromCustomProperty]===Ce);return Ee.length||(Ee=this.data.filter(De=>(0,he.tr)(De).id===Ce)),Ee}return console.warn("getGroupData called but search-result-data-source config was missing groupBy parameters"),[]}getGroupHeaderContextData(Ce){var ye=this;return(0,f.A)(function*(){var Ee;if(!Ce)return{id:null};if(null!==(Ee=ye.config.groupBy)&&void 0!==Ee&&Ee.issueFromCustomProperty){var De;const Ge=ye.config.groupBy.issueFromCustomProperty,ge=(0,R.uQ)(null===(De=ye.config.groupBy)||void 0===De?void 0:De.groupIssueFilter,(0,s.A)((0,s.A)({},ye.contextService.getContext()),{},{propertyKey:Ge,groupId:Ce}),ye.contextService.$functions,ye.globalService.getGlobalData()),Me=yield ye.purpleService.getCatalogContents({contentFilter:ge,first:1});if(1!==Me.totalCount&&console.warn("Expected 1 parent issue for search result with ".concat(Ge," = ").concat(Ce,", found ").concat(Me.totalCount)),1===Me.nodes.length)return Me.nodes[0]}return ye.config.groupBy.fallbackHeaderData})()}getParams(Ce=!1,ye=!1){const Ee={searchPhrase:this.config.phrase,first:this.getBatchSize(this.config,Ce),options:this.config.searchOptions,searchFields:this.config.searchFields,sort:this.config.sort};return Ee.fetchOptions=this.config.fetchOptions?this.config.fetchOptions:{},void 0===Ee.fetchOptions.totalCount&&(Ee.fetchOptions.totalCount=!0),this.config.filter&&(Ee.contentFilter=(0,R.Ph)(this.config.filter)),this.cursor&&!ye&&(Ee.after=this.cursor),Ee}static getConfigEscapeProperties(){return[["dataSource","groupBy","groupIssueFilter"]]}},subscription:K.r,taxonomy:k,content:Ke,context:class ce extends S.q{loadApiData(Ce){var ye=this;return(0,f.A)(function*(){const Ee=Ce?0:parseInt(ye.cursor||"0",10);let De=(0,R.uQ)(ye.config.data,(0,s.A)({},ye.contextService.getContext()),ye.contextService.$functions,ye.globalService.getGlobalData());const Ge=ye.getBatchSize(ye.config),ge=De.slice(Ee,Ee+Ge),Me={hasNextPage:Ee+Ge<De.length,cursor:"".concat(Ee+Ge),nodes:ge,totalCount:De.length};return Promise.resolve(Me)})()}}},Be={category:B,period:O,publication:ie,taxonomy:k};function Tt(Et){var Ce;if(null!=Et&&null!==(Ce=Et.dataSource)&&void 0!==Ce&&Ce.type){const ye=Se[Et.dataSource.type];return null==ye?void 0:ye.getConfigEscapeProperties()}return[]}function zt(Et){var Ce;if(null!=Et&&null!==(Ce=Et.dataSource)&&void 0!==Ce&&Ce.type){const ye=Se[Et.dataSource.type];return null==ye?void 0:ye.getDataSourceContentType(Et)}}function Mt(Et,Ce,ye,Ee){return lt(Se,Et,Ce,ye,Ee)}function He(Et,Ce,ye,Ee){return lt(Be,Et,Ce,ye,Ee)}function lt(Et,Ce,ye,Ee,De){const Ge=(0,we.kO)(Ee,De),ge=Et[ye.type];if(ge)return new ge(ye,Ge,Ce);console.warn("Failed to create datasource: unknown type ".concat(ye.type))}},4792:(se,E,c)=>{"use strict";c.d(E,{q:()=>O});var g=c(9379),s=c(467),f=c(9516),d=c(8179),S=c(4412),R=c(3294),U=c(362),q=c.n(U),z=c(5102),ve=c(177),de=c(1652),V=c(4438),Q=c(2838),ie=c(7879),K=c(3726),ee=c(6354),he=c(7786);let Ae=(()=>{var x;class B{constructor(pe){this.platformId=pe,this.onlineStatusSubject=new S.t(!!(0,ve.Vy)(this.platformId)||navigator.onLine);const le=(0,K.R)(window,"online").pipe((0,ee.T)(()=>!0)),W=(0,K.R)(window,"offline").pipe((0,ee.T)(()=>!1));(0,he.h)(le,W).subscribe(this.onlineStatusSubject)}get onlineStatus$(){return this.onlineStatusSubject.asObservable()}get isOnline(){return this.onlineStatusSubject.value}}return(x=B).\u0275fac=function(pe){return new(pe||x)(V.KVO(V.Agw))},x.\u0275prov=V.jDH({token:x,factory:x.\u0275fac,providedIn:"root"}),B})();var ue=c(6350),oe=c(7783),_=c.n(oe);let O=(()=>{var x;class B{constructor(pe,le,W){this.config=pe,this.outlet=le,this.injector=W,this.contextService=this.injector.get(f.V),this.transferState=this.injector.get(V.pJN),this.purpleService=this.injector.get(z.Wj),this.globalService=this.injector.get(de.d),this.platformId=this.injector.get(V.Agw),this.resourceService=this.injector.get(Q.Q),this.purpleEnv=this.injector.get(ie.r6),this.networkStatusService=this.injector.get(Ae),this.cacheService=this.injector.get(ue._),this.contextService.registerDataSource(this,le),this.isBrowser=(0,ve.UE)(this.platformId),this.setAdConfig(pe),this.interpolateFilter(pe.filter),this.dataSubject=new S.t(this.getGhosts()),this.data$=this.dataSubject.asObservable().pipe((0,R.F)((te,ae)=>this.isDataEqual(te,ae))),this.errorSubject=new S.t(null),this.error$=this.errorSubject.asObservable()}setConfig(pe){this.config=pe,this.setAdConfig(pe)}setExcludedData(pe){this.excludedData=pe}setAdConfig(pe){if(!pe.ad)return void(this.adConfig=null);const le=pe.ad;let W;W=le.condition&&(0,d.Ol)(le)?le.value:pe.ad,this.adConfig=W||null}reset(){delete this.apiToken,delete this.data,delete this.cursor,this.hasRealData=!1,this.setError(null),this.loading=!1,this.dataSubject.next(this.getGhosts()),this.cleanupContextData()}hasContextKey(){return!!this.config.contextKey}cleanupContextData(){this.hasContextKey()&&this.contextService.clearOutletData(this.outlet,this.config.contextKey)}loadMore(){var pe=this;return(0,s.A)(function*(){if(pe.cursor)return pe.loadData({add:!0})})()}update(){var pe=this;return(0,s.A)(function*(){pe.updating=!0,pe.hasData()||(pe.dataSubject.next(null),pe.dataSubject.next(pe.getGhosts())),yield pe.loadData({bypassCache:!0,add:!1,ignoreCursor:!0}),pe.updating=!1})()}isCacheTimestampValid(pe){let le=(0,d.v3)(this.config.maxCacheAge);return"string"==typeof le&&(le=parseInt(le)),Date.now()-pe<=(null!=le?le:B.MAX_CACHE_AGE)}loadData(pe={}){var le=this;return(0,s.A)(function*(){var W;pe.bypassCache=le.shouldBypassCache();const te=(0,V.zw6)((null!==(W=le.config.contextKey)&&void 0!==W?W:le.config.type)+"_"+_()(le.config));if(!pe.add&&!pe.bypassCache)try{const _e=yield le.loadCacheData(pe.ignoreCursor),Le=_e.timestamp&&le.isCacheTimestampValid(_e.timestamp);if(Le||!le.networkStatusService.isOnline)return le.setData(_e,!1,!Le,pe.global),le.hasRealData=!0,void le.setError(null)}catch(_e){}le.loading=!0,pe.add&&le.dataSubject.next(le.getData());const ae=Date.now();le.apiToken=ae;try{let _e;if(le.transferState.hasKey(te)&&le.isBrowser&&!le.config.preventSSRCache?(_e=le.transferState.get(te,null),le.transferState.remove(te)):(_e=yield le.loadApiData(pe.ignoreCursor),te&&"bookmark"!==le.config.type&&!(le.config.type in le.cacheService.dataSourceTypeToCacheMapping)&&le.transferState.onSerialize(te,()=>_e)),le.apiToken!==ae)return;const We=le.getLimit();(!We||We>parseInt(_e.cursor))&&_e.hasNextPage?le.cursor=_e.cursor:delete le.cursor,le.setData(_e,!!pe.add,pe.ignoreCursor,pe.global),le.hasRealData=!0,le.config.loadAll&&_e.hasNextPage&&le.loadMore()}catch(_e){if(console.error("API data loading failed:",_e),le.apiToken===ae)throw le.loading=!1,le.dataSubject.next(le.getData()),le.setError(_e),_e}})()}shouldBypassCache(){var pe;const le=null===(pe=this.contextService.getCurrentViewContext())||void 0===pe?void 0:pe.entitlement_token;return this.isBrowser&&(this.purpleEnv.isUniversal&&!!le||this.config.preventSSRCache)}loadCacheData(pe=!1){return(0,s.A)(function*(){throw new Error("no cache data")})()}getData(){const pe=this.getGhosts(!!this.data);var le;return this.data?Array.isArray(this.data)?this.loading?[...this.getDataWithAds(),...pe]:this.getDataWithAds():(console.error("datasource data: ".concat(null===(le=this.config)||void 0===le?void 0:le.data," resolved to non-array: ").concat(this.data)),pe):this.error?void 0:pe}getDataWithAds(){var pe;if(!this.adConfig)return this.data;const le=[],W=this.adConfig.interval,te=null!==(pe=this.adConfig.after)&&void 0!==pe?pe:W;let ae=this.adConfig.startIndex||0;for(let _e=0;_e<this.data.length;_e++)_e>=te&&(_e-te)%W==0&&le.push({ad:{type:"ad",adId:this.adConfig.adId+(this.adConfig.indexed?ae++:"")}}),le.push(this.data[_e]);return le}setData(pe,le=!0,W=!1,te=!1){try{if(this.loading=!1,!this.registered)return;let ae=pe.nodes;if((0,d.v3)(this.config.randomize)&&(0,d.E1)(ae),le)this.data=[...this.data||[],...ae];else{if(this.data&&ae.length&&this.isDataEqual(ae,this.data.slice(0,this.getBatchSize(this.config))))return;{const _e=this.getOffset();_e&&(ae=ae.slice(_e)),this.data=ae}}if(this.lastCallMetadata={hasNextPage:pe.hasNextPage,totalCount:pe.totalCount,dataLength:this.data.length},this.dataSubject.next(this.getData()),this.config.contextKey){let _e=[...this.data];this.config.contextProperty&&(_e=_e.map(Le=>Le[this.config.contextProperty])),_e.totalCount=pe.totalCount,te?this.globalService.setData(this.config.contextKey,_e):this.contextService.setOutletData(this.config.contextKey,_e,this.outlet)}if(!W){const _e=this.getLimit();pe.hasNextPage&&!_e||this.data.length<_e?this.cursor=pe.cursor:delete this.cursor}}catch(ae){console.debug("Error in data source setData function",ae)}}interpolateFilter(pe){pe&&Object.entries(pe).forEach(([le,W])=>{if(W instanceof Array)W.forEach(te=>this.interpolateFilter(te));else if("object"==typeof W)this.interpolateFilter(W);else if("string"==typeof W&&0===W.indexOf(":")){const te=W.substr(1),ae=this.contextService.getContext();if(ae){const _e=ae.pathParams;_e&&(pe[le]=_e[te]||W)}}})}getGhosts(pe){return Array(pe?6:10).fill(null)}delete(pe){this.data=this.data.filter(le=>!this.isEqual(le,pe)),this.dataSubject.next(this.data)}isEqual(pe,le){return pe===le}getLimit(pe=this.config){if(void 0===pe.limit)return;const le=(0,d.v3)(pe.limit);return"string"==typeof le?parseInt(le):le}getOffset(pe=this.config){if(void 0===pe.offset)return;const le=(0,d.v3)(pe.offset);return"string"==typeof le?parseInt(le):le}getBatchSize(pe,le=!1){let W=(0,d.v3)(pe.batchSize);"string"==typeof W&&(W=parseInt(W));let te=null!=W?W:this.getDefaultBatchSize();const ae=this.getLimit(pe),_e=this.getOffset(pe);if(this.updating){var Le;const We=(null!==(Le=this.data)&&void 0!==Le&&Le.length?Math.ceil(this.data.length/te):1)*te;return ae?Math.min(We,ae):We}return ae&&(te=Math.max(0,Math.min(te,ae-(!le&&this.hasRealData&&this.data||[]).length))),_e&&(te+=_e),te}getDefaultBatchSize(){return B.BATCH_SIZE}hasData(){return!!this.data}hasConfigChanged(pe){return!q()(this.config,pe)}isDataEqual(pe,le){return q()(pe,le)}setError(pe){this.error=pe,this.errorSubject.next(this.error),pe&&!this.hasData()&&this.dataSubject.next(null)}filterDataLocal(pe,le){const W=this.contextService.getCurrentViewContext();return pe.filter(te=>{let ae,_e;return le&&(ae=(0,d.uQ)(JSON.parse(JSON.stringify(le)),(0,g.A)((0,g.A)({},W),{},{[this.config.type]:te}),this.contextService.$functions,this.globalService.getGlobalData())),te.condition&&(_e=(0,d.uQ)(JSON.parse(JSON.stringify(te.condition)),(0,g.A)((0,g.A)({},W),{},{[this.config.type]:te}),this.contextService.$functions,this.globalService.getGlobalData())),(0,d.Ol)({condition:_e})&&(0,d.Ol)({condition:ae})})}static getConfigEscapeProperties(){return[]}static getDataSourceContentType(pe){return null}}return(x=B).BATCH_SIZE=24,x.MAX_CACHE_AGE=6e4,B})()},8179:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Dc:()=>toLocalContentsFilter,E1:()=>randomizeOrder,E7:()=>isStringResolved,KR:()=>isStorefrontDateMapFilter,MV:()=>replaceNodes,Ol:()=>isEnabled,Ph:()=>toPurpleContentFilter,S8:()=>toPurpleMenuItemFilter,Vb:()=>toPurpleTaxonomyFilter,ZY:()=>isResolved,_o:()=>SubscriptionSortOrder,g7:()=>toLocalIssueFilter,kJ:()=>sortDataLocal,mF:()=>CONTEXT_IDENTIFIER,mI:()=>toPurpleCollectionFilter,n:()=>toPurpleIssueFilter,q8:()=>toPurpleCategoryFilter,ru:()=>isEnabledReplaceValue,tA:()=>toPurpleSubscriptionFilter,uQ:()=>replaceValue,v3:()=>getEnabledValue,y3:()=>toPurplePublicationFilter});var _builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(2305),_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(9379),_purple_model__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(4404),_purple_model__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_purple_model__WEBPACK_IMPORTED_MODULE_0__),_util_common_util__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3178),_util_purple_util__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(7879),_util_date_util__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4333),_util_function_parsing_util__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(7439);const _excluded=["condition"];function toPurpleIssueFilter(se){if(se){const E=getEnabledFilter(se);if(!E)return null;if(se.AND){const c=se.AND.map(g=>toPurpleIssueFilter(g)).filter(g=>!!g);return c.length?{AND:c}:null}if(se.OR){const c=se.OR.map(g=>toPurpleIssueFilter(g)).filter(g=>!!g);return c.length?{OR:c}:null}if(se.publication){const c=toPurplePublicationFilter((0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)((0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)({},se.publication),{},{condition:se.condition}));return c?{publication:c}:null}if(se.properties&&(se=(0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)((0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)({},se),{},{properties:toPurpleMapFilter(se.properties)})),E&&E.age){const c=(0,_util_date_util__WEBPACK_IMPORTED_MODULE_3__.pd)(E.age),g=E.age.operation||_purple_model__WEBPACK_IMPORTED_MODULE_0__.DateOperation.LESS_THAN;let s=g;switch(g){case _purple_model__WEBPACK_IMPORTED_MODULE_0__.DateOperation.LESS_THAN:s=_purple_model__WEBPACK_IMPORTED_MODULE_0__.DateOperation.GREATER_THAN;break;case _purple_model__WEBPACK_IMPORTED_MODULE_0__.DateOperation.GREATER_THAN:s=_purple_model__WEBPACK_IMPORTED_MODULE_0__.DateOperation.LESS_THAN}return{publicationDate:{value:c,operation:s}}}return E}return null}function toLocalIssueFilter(se){if(!se)return null;const E=getEnabledFilter(se);if(!E)return null;if(se.AND){const c=se.AND.map(g=>toLocalIssueFilter(g)).filter(g=>!!g);return c.length?{AND:c}:null}if(se.OR){const c=se.OR.map(g=>toLocalIssueFilter(g)).filter(g=>!!g);return c.length?{OR:c}:null}return se.properties&&isStorefrontDateMapFilter(se.properties)?E:null}function toLocalContentsFilter(se){if(!se)return null;const E=getEnabledFilter(se);if(!E)return null;if(se.AND){const c=se.AND.map(g=>toLocalContentsFilter(g)).filter(g=>!!g);return c.length?{AND:c}:null}if(se.OR){const c=se.OR.map(g=>toLocalContentsFilter(g)).filter(g=>!!g);return c.length?{OR:c}:null}return se.properties&&isStorefrontDateMapFilter(se.properties)?E:null}function toPurplePublicationFilter(se){if(se){const E=getEnabledFilter(se);if(!E)return null;if(se.AND){const c=se.AND.map(g=>toPurplePublicationFilter(g)).filter(g=>!!g);return c.length?{AND:c}:null}if(se.OR){const c=se.OR.map(g=>toPurplePublicationFilter(g)).filter(g=>!!g);return c.length?{OR:c}:null}return E}return null}function toPurpleSubscriptionFilter(se){if(!se||se.productId&&(0,_util_purple_util__WEBPACK_IMPORTED_MODULE_2__.E7)(window.purple.catalog,{major:1,minor:4},_purple_model__WEBPACK_IMPORTED_MODULE_0__.IntOperation.LESS_THAN))return null;{const E=getEnabledFilter(se);if(!E)return null;if(se.AND){const c=se.AND.map(g=>toPurpleSubscriptionFilter(g)).filter(g=>!!g);return c.length?{AND:c}:null}if(se.OR){const c=se.OR.map(g=>toPurpleSubscriptionFilter(g)).filter(g=>!!g);return c.length?{OR:c}:null}return E}}function toPurpleCategoryFilter(se){if(se){const E=getEnabledFilter(se);if(!E)return null;if(se.AND){const c=se.AND.map(g=>toPurpleCategoryFilter(g)).filter(g=>!!g);return c.length?{AND:c}:null}if(se.OR){const c=se.OR.map(g=>toPurpleCategoryFilter(g)).filter(g=>!!g);return c.length?{OR:c}:null}return E}return null}function toPurpleTaxonomyFilter(se){if(se){var E;if(se.AND){const c=se.AND.map(g=>toPurpleTaxonomyFilter(g)).filter(g=>!!g);return c.length?{AND:c}:null}if(se.OR){const c=se.OR.map(g=>toPurpleTaxonomyFilter(g)).filter(g=>!!g);return c.length?{OR:c}:null}if(null!==(E=se.contents)&&void 0!==E&&null!==(E=E.content)&&void 0!==E&&E.value){const c=toPurpleContentFilter((0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)((0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)({},se.contents.content.value),{},{condition:se.condition}));return c?{contents:(0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)((0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)({},se.contents),{},{content:{value:c}})}:null}return getEnabledFilter(se)}return null}function toPurpleMapFilter(se){return isStorefrontDateMapFilter(se)?null:se}function toPurpleContentFilter(se){if(se){var E;const c=getEnabledFilter(se);if(!c)return null;if(se.AND){const g=se.AND.map(s=>toPurpleContentFilter(s)).filter(s=>!!s);return g.length?{AND:g}:null}if(se.OR){const g=se.OR.map(s=>toPurpleContentFilter(s)).filter(s=>!!s);return g.length?{OR:g}:null}if(se.publication){const g=toPurplePublicationFilter((0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)((0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)({},se.publication),{},{condition:se.condition}));return g?{publication:g}:null}if(null!==(E=se.taxonomies)&&void 0!==E&&null!==(E=E.content)&&void 0!==E&&E.value){const g=toPurpleTaxonomyFilter((0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)((0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)({},se.taxonomies.content.value),{},{condition:se.condition}));return g?{taxonomies:(0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)((0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)({},se.taxonomies),{},{content:{value:g}})}:null}if(se.publicationDate&&(c.publicationDate.value=se.publicationDate.value.toString()),c&&c.age){const g=(0,_util_date_util__WEBPACK_IMPORTED_MODULE_3__.pd)(c.age),s=c.age.operation||_purple_model__WEBPACK_IMPORTED_MODULE_0__.DateOperation.LESS_THAN;let f=s;switch(s){case _purple_model__WEBPACK_IMPORTED_MODULE_0__.DateOperation.LESS_THAN:f=_purple_model__WEBPACK_IMPORTED_MODULE_0__.DateOperation.GREATER_THAN;break;case _purple_model__WEBPACK_IMPORTED_MODULE_0__.DateOperation.GREATER_THAN:f=_purple_model__WEBPACK_IMPORTED_MODULE_0__.DateOperation.LESS_THAN}return{publicationDate:{value:g,operation:f}}}return c}return null}function toPurpleCollectionFilter(se){if(se){const E=getEnabledFilter(se);if(!E)return null;if(se.AND){const c=se.AND.map(g=>toPurpleCollectionFilter(g)).filter(g=>!!g);return c.length?{AND:c}:null}if(se.OR){const c=se.OR.map(g=>toPurpleCollectionFilter(g)).filter(g=>!!g);return c.length?{OR:c}:null}return E}return null}function toPurpleMenuItemFilter(se){if(se){const E=getEnabledFilter(se);if(!E)return null;if(se.AND){const c=se.AND.map(g=>toPurpleMenuItemFilter(g)).filter(g=>!!g);return c.length?{AND:c}:null}if(se.OR){const c=se.OR.map(g=>toPurpleMenuItemFilter(g)).filter(g=>!!g);return c.length?{OR:c}:null}return E}return null}function getEnabledFilter(se){if(!se)return null;const E=Object.keys(se).filter(d=>"condition"!==d)[0];if(!E)return se;const s=(0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_6__.A)(se[E],_excluded);var f;return isEnabled(se)?s&&s.value&&Array.isArray(s.value)?s.value.map(S=>({[E]:(0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)((0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)({},s),{},{value:S})})).length?{OR:s.value.map(S=>({[E]:(0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)((0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)({},s),{},{value:S})}))}:null:null!=s&&null!==(f=s.id)&&void 0!==f&&f.value&&Array.isArray(s.id.value)?s.id.value.length?{OR:s.id.value.map(d=>({[E]:(0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)((0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)({},s),{},{id:{value:d}})}))}:null:s&&s.content&&s.content.value&&s.content.value.value&&Array.isArray(s.content.value.value)?s.content.value.value.map(S=>({[E]:(0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)((0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)({},s),{},{value:S})})).length?{OR:s.content.value.value.map(S=>({[E]:(0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)((0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)({},s),{},{content:{value:{value:S}}})}))}:null:{[E]:s}:null}function isConditionalValue(se){return se&&"object"==typeof se&&se.condition}function isEnabledReplaceValue(se,E,c,g,s=!0){return isConditionalValue(se)?isEnabled({condition:replaceValue(se.condition,E,c,g,s)}):!!se}function isEnabled(se){if(!isConditionalValue(se))return!!se;const c=(()=>{if(se.condition.AND){let S=!0;for(const R of se.condition.AND)if(S=isEnabled({condition:R}),!S)break;return S}if(se.condition.OR){let S=!1;for(const R of se.condition.OR)if(S=isEnabled({condition:R}),S)break;return S}const g="value"in se.condition&&isValueResolved(se.condition.value,[])?se.condition.value:void 0;let s,f;switch(se.condition.operation){case ConditionCompareOperation.NOT_SET:return!g;case ConditionCompareOperation.EQUALS_NOT:return se.condition.stringIgnoreCase?!(0,_util_common_util__WEBPACK_IMPORTED_MODULE_1__.Q_)(g,se.condition.compareValue):g!==se.condition.compareValue;case ConditionCompareOperation.SET:return!!g;case ConditionCompareOperation.EMPTY:return g&&!g.length;case ConditionCompareOperation.NOT_EMPTY:return g&&!!g.length;case ConditionCompareOperation.LESS_THAN:return s=parseInt(g,10),f=parseInt(se.condition.compareValue,10),isNaN(s)||isNaN(f)?(console.log("error comparing values: "+g+" < "+se.condition.compareValue),!1):s<f;case ConditionCompareOperation.GREATER_THAN:return s=parseInt(g,10),f=parseInt(se.condition.compareValue,10),isNaN(s)||isNaN(f)?(console.log("error comparing values: "+g+" > "+se.condition.compareValue),!1):s>f;case ConditionCompareOperation.CONTAINS:return void 0===g?(console.log("error comparing values: "+g+" CONTAINS "+se.condition.compareValue),!1):Array.isArray(g)?se.condition.stringIgnoreCase?g.some(S=>(0,_util_common_util__WEBPACK_IMPORTED_MODULE_1__.Q_)(S.toString(),se.condition.compareValue)):g.includes(se.condition.compareValue):"string"==typeof g?se.condition.stringIgnoreCase?(0,_util_common_util__WEBPACK_IMPORTED_MODULE_1__.Q_)(g,se.condition.compareValue):g.includes(se.condition.compareValue):Object.keys(g).includes(se.condition.compareValue)&&g[se.condition.compareValue];default:return se.condition.stringIgnoreCase?(0,_util_common_util__WEBPACK_IMPORTED_MODULE_1__.Q_)(g.toString(),se.condition.compareValue):g+""==se.condition.compareValue+""}})();return se.condition.negated?!c:c}function getEnabledValue(se){return"boolean"==typeof se?se:isEnabled(se)?isConditionalValue(se)&&"value"in se?se.value:se:isConditionalValue(se)&&se.fallback?getEnabledValue(se.fallback):null}const CONTEXT_IDENTIFIER="$context",FUNCTIONS_IDENTIFIER="$functions",GLOBAL_IDENTIFIER="$global";function replaceValue(se,E,c,g,s=!0){const f=typeof se;if("string"===f)return replaceStringValue(se,E,c,g,s);if("object"===f){if(Array.isArray(se))return se.map(d=>replaceValue(d,E,c,g,s));if(se)return Object.keys(se).reduce((d,S)=>(0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)((0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)({},d),{},{[S]:replaceValue(se[S],E,c,g,s)}),{})}return se}const parseScopeValue=(se,E)=>{var c,g;return(null!==(c=null===(g=E.match(/((\w|-)+|\[[^\]]+\])/g))||void 0===g?void 0:g.map(d=>d.replace(/[[\]'"]/g,"")))&&void 0!==c?c:[]).reduce((d,S)=>d&&("count"===S?Array.isArray(d)?d.length:1:d[S]),se)};function replaceStringValue(se,E,c,g,s=!0){if(!se.includes("$"))return se;let f=se.indexOf(FUNCTIONS_IDENTIFIER);for(;f>=0;){const d=se.slice(0,f),S=se.slice(f);try{const[R,U]=(0,_util_function_parsing_util__WEBPACK_IMPORTED_MODULE_4__.M)(S,E,c,g);void 0===R&&s?f++:se=d+R+U}catch(R){f++,console.log('Error while evaluating function "'.concat(S,'": ').concat(R.message))}f=se.indexOf(FUNCTIONS_IDENTIFIER,f)}try{(se=replaceScope(se,E,CONTEXT_IDENTIFIER,s))&&"string"==typeof se&&(se=replaceScope(se,g,GLOBAL_IDENTIFIER,s))}catch(d){console.log(d)}return("null"===se||"undefined"===se||"false"===se||void 0===se||!1===se)&&(se=null),se}function replaceScope(se,E,c,g){const s=new RegExp("\\".concat(c,"(((\\[(['\"])?[\\w -_.]*(['\"])?])+)|(\\.[\\w-_]+))*"),"g"),f=se.match(s);if(f&&1===f.length&&f[0]===se)return replaceSingleValue(se,E,c,g);{let d=se.split("/");return f&&f.forEach(S=>{const R=replaceSingleValue(S,E,c,g);let U=d.find(q=>q.indexOf(S)>-1);null==R?d.splice(d.indexOf(U),1):U?d[d.indexOf(U)]=U.replace(S,R):console.debug("warn: segment not found: "+U)}),d.join("/")}}function replaceSingleValue(se,E,c,g=!0){const s=se.substring(c.length),f=parseScopeValue(E,s);return"number"==typeof f||"boolean"==typeof f?f:g?""===f?"":f||se:f}function isArrayResolved(se,E){let c=!0;for(const g of se)if(c=isValueResolved(g,E),!c)break;return c}function isObjectResolved(se,E){if(!isEnabled(se))return!0;e:for(const c of Object.keys(se)){for(const g of E){if("string"==typeof g&&c===g)continue e;if(Array.isArray(g)&&g[0]===c&&(g.shift(),0===g.length))continue e}if(!isValueResolved(se[c],E))return!1}return!0}function isStringResolved(se){return-1===se.indexOf(CONTEXT_IDENTIFIER)&&-1===se.indexOf(FUNCTIONS_IDENTIFIER)&&-1===se.indexOf(GLOBAL_IDENTIFIER)}function isNumberResolved(se){return!0}function isBooleanResolved(se){return!0}function isValueResolved(se,E){switch(typeof se){case"string":return isStringResolved(se);case"number":return isNumberResolved(se);case"boolean":return isBooleanResolved(se);case"object":return Array.isArray(se)?isArrayResolved(se,E):isObjectResolved(se,E);default:return!0}}function isResolved(se,E=["content"]){return isObjectResolved(se,E)}function sortDataLocal(data,comparator){return[...data].sort((a,b)=>{let cmp=0;if("key"in comparator){const se=a[comparator.key],E=b[comparator.key];switch(comparator.valueType){case"STRING":cmp=se.toString().localeCompare(E.toString());break;case"INT":cmp=se-E}}else if("sortFunction"in comparator){const sortFuncReturned=eval(comparator.sortFunction);"number"==typeof sortFuncReturned&&isFinite(sortFuncReturned)&&(cmp=sortFuncReturned)}return comparator.direction===_purple_model__WEBPACK_IMPORTED_MODULE_0__.SortDirection.ASC?cmp:-cmp})}function replaceNodes(se,E){return(0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)((0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)({},se),{},{nodes:E,totalCount:se.totalCount?se.totalCount-(se.nodes.length-E.length):se.totalCount})}function randomizeOrder(se){for(let E=se.length-1;E>0;E--){const c=Math.floor(Math.random()*(E+1)),g=se[E];se[E]=se[c],se[c]=g}}function isStorefrontDateMapFilter(se){return se&&"date"===se.mode}var ConditionCompareOperation=function(se){return se.EQUALS="EQUALS",se.EQUALS_NOT="EQUALS_NOT",se.NOT_SET="NOT_SET",se.SET="SET",se.EMPTY="EMPTY",se.NOT_EMPTY="NOT_EMPTY",se.GREATER_THAN="GREATER_THAN",se.LESS_THAN="LESS_THAN",se.CONTAINS="CONTAINS",se}(ConditionCompareOperation||{}),SubscriptionSortOrder=function(se){return se.DEFAULT="DEFAULT",se.DURATION="DURATION",se}(SubscriptionSortOrder||{})},1497:(se,E,c)=>{"use strict";c.d(E,{r:()=>z});var g=c(467),s=c(9379),f=c(4404),S=c(4333),R=c(7879),U=c(4792),q=c(8179);class z extends U.q{static toSubscriptionsWithPrices(de,V){const ie=[];return de.nodes.forEach(K=>{const ee=V.find(he=>he.productId===K.productId);ee&&z.toSubscriptionsWithPrice(K,ee).forEach(he=>ie.push(he))}),(0,q.MV)(de,ie)}static toSubscriptionsWithPrice(de,V){const Q=(0,s.A)((0,s.A)({},de),{},{price:{productId:V.productId,formattedPrice:V.formattedPrice,price:V.price,currency:V.currency}});return V.trialPeriod&&!1!==de.eligibilityInfo.trial?[(0,s.A)((0,s.A)({},Q),{},{trial:V.trialPeriod})]:V.introductoryPrice&&de.eligibilityInfo.introductoryPricing?[(0,s.A)((0,s.A)({},Q),{},{introductoryPrice:V.introductoryPrice})]:V.discounts&&V.discounts.length&&de.eligibilityInfo.discountOffers?V.discounts.map(ie=>(0,s.A)((0,s.A)({},Q),{},{id:ie.offerId,discount:ie})):[Q]}loadApiData(de=!1){var V=this;return(0,g.A)(function*(){const Q=yield V.purpleService.getSubscriptions(V.getParams(!1,de)).then(K=>V.transform(K)),ie=Q.nodes.length?yield V.purpleService.getPrices(Q.nodes.map(K=>K.productId)):{priceInfos:[]};return z.toSubscriptionsWithPrices(Q,ie.priceInfos)})()}getParams(de=!1,V=!1){const Q={first:this.getBatchSize(this.config,de)};return this.config.fetchOptions&&(Q.fetchOptions=this.config.fetchOptions),this.config.filter&&(Q.subscriptionFilter=(0,q.tA)(this.config.filter)),this.cursor&&!V&&(Q.after=this.cursor),Q}transform(de){let V=this.filter(de);return V=this.sort(V),V}sort(de){let V=de.nodes;if(this.config.localSort){let Q;this.config.localSort.criteria===q._o.DURATION&&(Q=this.config.localSort.direction===f.SortDirection.ASC?-1:1,V=V.sort((ie,K)=>(0,S.FK)(ie.duration,K.duration)*Q))}return(0,s.A)((0,s.A)({},de),{},{nodes:V})}filter(de){let V=de;return!1!==this.config.excludeHidden&&(V=this.filterHidden(V)),this.config.excludeSmaller&&(V=this.filterSmaller(V)),this.config.excludePurchased&&(V=this.filterPurchased(V)),this.config.onlyAdditionalUnlocks&&(V=this.filterAdditionalUnlocksOnly(V)),V=this.filterByProductId(V),V}filterPurchased(de){return(0,q.MV)(de,de.nodes.filter(V=>!V.purchased))}filterSmaller(de){let V=de.nodes;const Q=de.nodes.filter(ie=>ie.purchased).sort((ie,K)=>(0,S.FK)(ie.duration,K.duration))[0];return Q&&(V=V.filter(ie=>(0,S.FK)(ie.duration,Q.duration)<0)),(0,q.MV)(de,V)}filterHidden(de){return(0,q.MV)(de,de.nodes.filter(V=>!V.hidden))}filterAdditionalUnlocksOnly(de){return(0,q.MV)(de,de.nodes.filter(V=>{var Q;return(null===(Q=V.additionalUnlocks)||void 0===Q?void 0:Q.count)>0}))}filterByProductId(de){var V;return(0,R.E7)(window.purple.catalog,{major:1,minor:4},f.IntOperation.LESS_THAN)&&null!==(V=this.config.filter)&&void 0!==V&&V.productId?(0,q.MV)(de,de.nodes.filter(Q=>(null==Q?void 0:Q.productId)===this.config.filter.productId.value)):de}getGhosts(de){return Array(3).fill(null)}static getDataSourceContentType(de){return"subscription"}}},1605:(se,E,c)=>{"use strict";c.d(E,{P:()=>S});var g=c(20),s=c(6483),f=c(8448),d=c(4438);let S=(()=>{var R;class U{}return(R=U).\u0275fac=function(z){return new(z||R)},R.\u0275mod=d.$C({type:R}),R.\u0275inj=d.G2t({providers:[g.o,f.D],imports:[s.h]}),U})()},20:(se,E,c)=>{"use strict";c.d(E,{o:()=>K});var g=c(467),s=c(4438),f=c(9379),d=c(9360);const S=(0,d.YE)(),R=(0,d.zk)(),U={message:"",actions:[],tag:"div",container:S.body,messages:{DIALOG_MESSAGE_OK:"OK",DIALOG_MESSAGE_CONFIRM:"Confirm",DIALOG_MESSAGE_CANCEL:"Cancel"}};class q{constructor(he){this.keydownListener=Ae=>{if(Ae.stopPropagation(),Ae.preventDefault(),13===Ae.which){const ue=this.config.actions[this.config.actions.length-1];ue&&(ue.callback(),this.destroy())}},this.config=(0,f.A)((0,f.A)((0,f.A)({},U),he),{},{messages:(0,f.A)((0,f.A)({},U.messages),(he||{}).messages)}),this.element=S.createElement(this.config.tag)}render(){R.addEventListener("keypress",this.keydownListener,{once:!0}),this.element.classList.add("purple-dialog");const he=/apple/i.test(navigator.vendor);this.element.classList.add(he?"ios":"android"),this.element.addEventListener("touchstart",_=>_.preventDefault());const Ae=S.createElement("section");if(this.config.title){const _=S.createElement("h1");_.innerHTML=this.config.title,Ae.appendChild(_)}const ue=S.createElement("p");ue.innerHTML=this.config.message,Ae.appendChild(ue);const oe=S.createElement("div");this.config.actions.forEach(_=>{const O=S.createElement("button");_.type&&O.classList.add(_.type),O.innerText=this.config.messages[_.message]||_.message,O.addEventListener("touchstart",x=>x.stopPropagation(),{passive:!0}),O.addEventListener("click",()=>{_.callback(),this.destroy()}),oe.append(O)}),Ae.appendChild(oe),this.element.appendChild(Ae),this.config.container.appendChild(this.element)}destroy(){this.element.remove()}}const ve=(0,d.zk)(),de={show:(ee,he,Ae,ue)=>new Promise(oe=>{for(const _ of he){const O=_.callback;_.callback=()=>{O(),oe()}}new q((0,f.A)({message:ee,actions:he,title:Ae},ue)).render()}),confirm:(ee,he,Ae)=>new Promise((ue,oe)=>{new q((0,f.A)({message:ee,actions:[{message:"DIALOG_MESSAGE_CANCEL",type:"cancel",callback:oe},{message:"DIALOG_MESSAGE_CONFIRM",type:"confirm",callback:ue}],title:he},Ae)).render()}),alert:(ee,he,Ae)=>new Promise(ue=>{new q((0,f.A)({message:ee,actions:[{message:"DIALOG_MESSAGE_OK",callback:ue}],title:he},Ae)).render()})};ve.PurpleDialog=de;var V=c(177),Q=c(7900),ie=c(8448);let K=(()=>{var ee;class he{constructor(ue,oe,_){this.translateService=ue,this.translate=oe,this.platformId=_}init(){var ue=this;return(0,g.A)(function*(){ue.messages=yield ue.translate.getMessages()})()}confirm(ue,oe,_,O){var x=this;return(0,g.A)(function*(){if(!(0,V.UE)(x.platformId))return;const B=yield x.translateService.translate(ue),G=yield x.translateService.translate(oe||"DIALOG_TITLE"),pe={messages:x.messages||{}};if(_){const le=yield x.translateService.translate(_);pe.messages.DIALOG_MESSAGE_CONFIRM=le}if(O){const le=yield x.translateService.translate(O);pe.messages.DIALOG_MESSAGE_CANCEL=le}return x.currentDialog=x.currentDialog?x.currentDialog.then(le=>new Promise((W,te)=>de.confirm(B,G,pe).then(W,te))):de.confirm(B,G,pe),x.currentDialog.finally(()=>delete x.currentDialog)})()}alert(ue,oe,_){var O=this;return(0,g.A)(function*(){if(!(0,V.UE)(O.platformId))return;const x=yield O.translateService.translate(ue),B=yield O.translateService.translate(oe||"DIALOG_TITLE"),G={messages:O.messages||{}};if(_){const pe=yield O.translateService.translate(_);G.messages.DIALOG_MESSAGE_OK=pe}return O.currentDialog=O.currentDialog?O.currentDialog.then(pe=>new Promise((le,W)=>de.alert(x,B,G).then(le,W))):de.alert(x,B,G),O.currentDialog.finally(()=>delete O.currentDialog)})()}show(ue,oe,_){var O=this;return(0,g.A)(function*(){if(!(0,V.UE)(O.platformId))return;const x=yield O.translateService.translate(ue),B=yield O.translateService.translate(oe||"DIALOG_TITLE"),G={messages:O.messages||{}},pe=[];for(const le of _){const W=yield O.translateService.translate(le.message);pe.push({message:W,callback:le.callback,type:le.type||"confirm"})}return O.currentDialog=O.currentDialog?O.currentDialog.then(le=>new Promise((W,te)=>de.show(x,pe,B,G).then(W,te))):de.show(x,pe,B,G),O.currentDialog.finally(()=>delete O.currentDialog)})()}}return(ee=he).\u0275fac=function(ue){return new(ue||ee)(s.KVO(Q.c),s.KVO(ie.D),s.KVO(s.Agw))},ee.\u0275prov=s.jDH({token:ee,factory:ee.\u0275fac,providedIn:"root"}),he})()},680:(se,E,c)=>{"use strict";c.d(E,{G:()=>R});var g=c(7786),s=c(3726),f=c(8890),d=c(8251),S=c(4438);let R=(()=>{var U;class q{constructor(ve,de,V){this.elementRef=ve,this.renderer=de,this.subscriptions=V,this.storefrontCheckOverflowTarget="parent"}ngOnChanges(){this.checkScrollable()}ngAfterViewInit(){this.ngOnChanges(),this.target="parent"===this.storefrontCheckOverflowTarget?this.elementRef.nativeElement.parentNode:this.elementRef.nativeElement,this.subscriptions.subscribe((0,g.h)((0,f.Ne)(),(0,s.R)(this.elementRef.nativeElement,"scroll",{passive:!0}),(0,f.S8)(this.elementRef.nativeElement)),ve=>this.checkScrollable()),this.checkScrollable()}ngOnInit(){}checkScrollable(){this.target&&("horizontal"===this.storefrontCheckOverflow?this.checkScrollableHorizontal():this.checkScrollableVertical(),this.target.classList.add("initialized"))}checkScrollableVertical(){const ve=this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight;this.elementRef.nativeElement.scrollHeight>this.elementRef.nativeElement.clientHeight?(this.target.classList.add("scrollable-vert"),Math.abs(ve-this.elementRef.nativeElement.scrollTop)>1?this.target.classList.add("scrollable-bottom"):this.target.classList.remove("scrollable-bottom"),this.elementRef.nativeElement.scrollTop>0?this.target.classList.add("scrollable-top"):this.target.classList.remove("scrollable-top")):(this.target.classList.remove("scrollable-vert"),this.target.classList.remove("scrollable-bottom"),this.target.classList.remove("scrollable-top"))}checkScrollableHorizontal(){const ve=this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth;this.elementRef.nativeElement.scrollWidth>this.elementRef.nativeElement.clientWidth?(this.target.classList.add("scrollable-horiz"),Math.abs(ve-this.elementRef.nativeElement.scrollLeft)>1?this.target.classList.add("scrollable-right"):this.target.classList.remove("scrollable-right"),this.elementRef.nativeElement.scrollLeft>0?this.target.classList.add("scrollable-left"):this.target.classList.remove("scrollable-left")):(this.target.classList.remove("scrollable-horiz"),this.target.classList.remove("scrollable-left"),this.target.classList.remove("scrollable-right"))}}return(U=q).\u0275fac=function(ve){return new(ve||U)(S.rXU(S.aKT),S.rXU(S.sFG),S.rXU(d.v))},U.\u0275dir=S.FsC({type:U,selectors:[["","storefrontCheckOverflow",""]],inputs:{storefrontCheckOverflow:"storefrontCheckOverflow",storefrontCheckOverflowTarget:"storefrontCheckOverflowTarget"},standalone:!1,features:[S.Jv_([d.v]),S.OA$]}),q})()},8301:(se,E,c)=>{"use strict";c.d(E,{d:()=>f});var g=c(177),s=c(4438);let f=(()=>{var d;class S{}return(d=S).\u0275fac=function(U){return new(U||d)},d.\u0275mod=s.$C({type:d}),d.\u0275inj=s.G2t({imports:[g.MD]}),S})()},2868:(se,E,c)=>{"use strict";c.d(E,{q:()=>ie});var g=c(467),s=c(9379),f=c(4438),d=c(9516),S=c(8179),R=c(7879),U=c(177),q=c(362),z=c.n(q),ve=c(9810),de=c(1652),V=c(3648),Q=c(5927);let ie=(()=>{var K;class ee{getDataId(){return this.baseContext()[this.dataType()]&&this.baseContext()[this.dataType()].id}getProxyOrComponent(){var Ae;return null===(Ae=this.component)||void 0===Ae?void 0:Ae.instance}getActualComponent(){const Ae=this.getProxyOrComponent();return Ae instanceof V._?Ae.component:Ae}constructor(Ae){this.template=Ae,this.classNames=(0,f.hFB)(""),this.attributes=(0,f.hFB)(),this.baseConfig=f.hFB.required(),this.baseContext=(0,f.hFB)({}),this.dataType=(0,f.hFB)(""),this.lazy=(0,f.hFB)(!1),this.controlsSticky=(0,f.hFB)(!1),this.delete=(0,f.CGW)(),this.inViewport=(0,f.CGW)(),this.click=(0,f.CGW)(),this.initialized=!1,this.loading=!1,this.contextService=(0,f.WQX)(d.V),this.globalService=(0,f.WQX)(de.d),this.purpleEnv=(0,f.WQX)(R.r6),this.injector=(0,f.WQX)(f.zZn),this.platformId=(0,f.WQX)(f.Agw),this.viewContainerRef=(0,f.WQX)(f.c1b),this.domHelper=(0,f.WQX)(Q.S),this.skipRender=(0,f.EWP)(()=>this.baseConfig().skipSSR&&(0,U.Vy)(this.platformId)),this.isLazy=(0,f.EWP)(()=>null==this.baseConfig().isLazy?this.lazy():this.baseConfig().isLazy),this.template.elementRef.nativeElement.component=this,(0,f.QZP)(()=>{if(this.skipRender()||this.initialized)return;const ue=(0,s.A)((0,s.A)({},this.contextService.getContext()),this.baseContext());this.purpleEnv.isUniversal&&!(0,S.ru)(this.baseConfig(),ue,this.contextService.$functions,this.globalService.getGlobalData(),!1)||(!this.isLazy()||(0,U.Vy)(this.platformId))&&this.initialize()}),(0,f.QZP)(()=>{const ue=this.baseContext(),oe=this.baseConfig();this.component&&this.updateComponentData(ue,oe)}),this.componentRendered=new Promise(ue=>{this.resolveComponentRendered=ue})}scrollIntoView(Ae){var ue=this;return(0,g.A)(function*(){(0,U.UE)(ue.platformId)&&(yield ue.componentRendered,ue.component.instance.getElementRef().nativeElement.scrollIntoView(Ae))})()}updateComponentData(Ae,ue){var oe;const _=null===(oe=this.component)||void 0===oe?void 0:oe.instance;_&&(!z()(_.baseContext,Ae)||!z()(_.baseConfig,ue))&&(_.baseContext=(0,s.A)({},Ae),_.baseConfig=(0,s.A)({},ue),"type"in ue&&"presenter"!==ue.type&&_.onStateChange())}clear(){var Ae=this;return(0,g.A)(function*(){var oe,ue;Ae.domHelper.leanDom?null===(oe=Ae.component)||void 0===oe||null===(oe=oe.instance)||void 0===oe||oe.clear():(null===(ue=Ae.component)||void 0===ue?void 0:ue.componentType)==V._?yield Ae.component.instance.clear():(Ae.component&&Ae.component.instance.ngOnDestroy(),Ae.initialized=!1)})()}lazyLoad(){var Ae=this;return(0,g.A)(function*(){if(!Ae.loading){Ae.loading=!0;try{var ue,oe;yield Ae.initialize(),(null===(ue=Ae.component)||void 0===ue?void 0:ue.componentType)==V._&&(yield(null===(oe=Ae.component)||void 0===oe?void 0:oe.instance).lazyLoad())}finally{Ae.loading=!1}}})()}initialize(){var Ae=this;return(0,g.A)(function*(){var ue,oe;Ae.initialized||(Ae.initialized=!0,Ae.component=yield Ae.renderComponent(),Ae.resolveComponentRendered(),Ae.controlsSticky()&&((0,U.Vy)(Ae.platformId)||new IntersectionObserver(([O])=>Ae.inViewport.emit(O.isIntersecting),{rootMargin:"-10% 0px"}).observe(Ae.component.instance.getElementRef().nativeElement)),null===(ue=Ae.component.instance)||void 0===ue||null===(ue=ue.delete)||void 0===ue||ue.subscribe(_=>Ae.delete.emit(_)),"type"in Ae.baseConfig()&&"presenter"!==Ae.baseConfig().type&&(null===(oe=Ae.component.instance)||void 0===oe||oe.getElementRef().nativeElement.addEventListener("click",_=>{Ae.click.emit(_)})),Ae.component.instance.getDataId=()=>{var _;return null===(_=Ae.baseContext[Ae.dataType()])||void 0===_?void 0:_.id},Ae.updateComponentData(Ae.baseContext(),Ae.baseConfig()))})()}renderComponent(){var Ae=this;return(0,g.A)(function*(){var ue;const oe=Ae.domHelper.leanDom?Ae.baseConfig().type:"element",_=yield Ae.getComponent(oe);Ae.viewContainerRef.clear();const O=Ae.viewContainerRef.createComponent(_),x=null===(ue=O.hostView)||void 0===ue?void 0:ue.rootNodes[0];return x&&(Ae.applyClasses(x),Ae.applyDynamicAttributes(x)),O})()}applyDynamicAttributes(Ae){this.attributes()&&Object.entries(this.attributes()).forEach(([ue,oe])=>{null!=oe&&Ae.setAttribute(ue,oe.toString())})}applyClasses(Ae){if(this.classNames()){const ue="selected",oe=Array.from(Ae.classList),_=this.classNames().split(" ").filter(O=>""!==O.trim());_.includes(ue)?oe.includes(ue)||Ae.classList.add(ue):oe.includes(ue)&&Ae.classList.remove(ue),_.forEach(O=>{O&&O!==ue&&!oe.includes(O)&&Ae.classList.add(O)})}}getComponent(Ae){var ue=this;return(0,g.A)(function*(){const O=(yield(yield c.e("projects_storefront_src_app_component_component_module_ts").then(c.bind(c,9674)).then(x=>(0,f.w6W)(x.ComponentModule,ue.injector).instance)).getModule(Ae)).component;return ue.domHelper.leanDom?(0,ve.w)(O)&&O.leanDomComponent?O.leanDomComponent:(console.warn("DOM2 feature enabled but DOM2 component not available for ".concat(Ae,", falling back to old component.")),(0,ve.w)(O)?O.component:O):(0,ve.w)(O)?O.component:O})()}ngOnChanges(Ae){if(Ae.classNames&&this.component){var ue;const oe=null===(ue=this.component.hostView)||void 0===ue?void 0:ue.rootNodes[0];oe&&this.applyClasses(oe)}}}return(K=ee).\u0275fac=function(Ae){return new(Ae||K)(f.rXU(f.C4Q))},K.\u0275dir=f.FsC({type:K,selectors:[["","pxpDynamicComponent",""]],inputs:{classNames:[1,"classNames"],attributes:[1,"attributes"],baseConfig:[1,"baseConfig"],baseContext:[1,"baseContext"],dataType:[1,"dataType"],lazy:[1,"lazy"],controlsSticky:[1,"controlsSticky"]},outputs:{delete:"delete",inViewport:"inViewport",click:"click"},features:[f.OA$]}),ee})()},721:(se,E,c)=>{"use strict";c.d(E,{u:()=>f});var g=c(177),s=c(4438);let f=(()=>{var d;class S{}return(d=S).\u0275fac=function(U){return new(U||d)},d.\u0275mod=s.$C({type:d}),d.\u0275inj=s.G2t({imports:[g.MD]}),S})()},4608:(se,E,c)=>{"use strict";c.d(E,{B:()=>g});var g=function(s){return s.PURPLE_API_CACHE="PURPLE_API_CACHE",s.PURPLE_CONTENT_CACHE="PURPLE_CONTENT_CACHE",s.PURPLE_COLLECTION_CACHE="PURPLE_COLLECTION_CACHE",s.PURPLE_MENU_CACHE="PURPLE_MENU_CACHE",s.PURPLE_PUBLICATION_CACHE="PURPLE_PUBLICATION_CACHE",s.PURPLE_TAXONOMY_CACHE="PURPLE_TAXONOMY_CACHE",s.PURPLE_OPTIONAL_CACHE="PURPLE_OPTIONAL_CACHE",s.PURPLE_REDIRECT_CACHE="PURPLE_REDIRECT_CACHE",s.PURPLE_PATH_SEGMENT_CACHE="PURPLE_PATH_SEGMENT_CACHE",s.PURPLE_JSON_CACHE="PURPLE_JSON_CACHE",s}(g||{})},6350:(se,E,c)=>{"use strict";c.d(E,{_:()=>he});var g=c(2305),s=c(9379),f=c(467),d=c(4438),S=c(177),R=c(5706),U=c(4608),q=c(3331),z=c(5964),ve=c(5245),de=c(152);const V=["elements"],Q=["contents"],ie=["contents","seoMetadata"],K=["contents","seoMetadata"],ee=["content","contentHtml","resources","seoMetadata"];let he=(()=>{var Ae;class ue{constructor(_,O,x,B){this.platformId=_,this.transferState=O,this.router=x,this.ngZone=B,this.PURPLE_API_CACHE={},this.PURPLE_CONTENT_CACHE={},this.PURPLE_COLLECTION_CACHE={},this.PURPLE_MENU_CACHE={},this.PURPLE_PUBLICATION_CACHE={},this.PURPLE_OPTIONAL_CACHE={},this.PURPLE_TAXONOMY_CACHE={},this.PURPLE_REDIRECT_CACHE={},this.PURPLE_PATH_SEGMENT_CACHE={},this.PURPLE_JSON_CACHE={},this.purpleCaches={[U.B.PURPLE_MENU_CACHE]:(0,d.zw6)(U.B.PURPLE_MENU_CACHE),[U.B.PURPLE_API_CACHE]:(0,d.zw6)(U.B.PURPLE_API_CACHE),[U.B.PURPLE_CONTENT_CACHE]:(0,d.zw6)(U.B.PURPLE_CONTENT_CACHE),[U.B.PURPLE_COLLECTION_CACHE]:(0,d.zw6)(U.B.PURPLE_COLLECTION_CACHE),[U.B.PURPLE_PUBLICATION_CACHE]:(0,d.zw6)(U.B.PURPLE_PUBLICATION_CACHE),[U.B.PURPLE_TAXONOMY_CACHE]:(0,d.zw6)(U.B.PURPLE_TAXONOMY_CACHE),[U.B.PURPLE_OPTIONAL_CACHE]:(0,d.zw6)(U.B.PURPLE_OPTIONAL_CACHE),[U.B.PURPLE_REDIRECT_CACHE]:(0,d.zw6)(U.B.PURPLE_REDIRECT_CACHE),[U.B.PURPLE_PATH_SEGMENT_CACHE]:(0,d.zw6)(U.B.PURPLE_PATH_SEGMENT_CACHE),[U.B.PURPLE_JSON_CACHE]:(0,d.zw6)(U.B.PURPLE_JSON_CACHE)},this.dataSourceTypeToCacheMapping={menu:U.B.PURPLE_MENU_CACHE,content:U.B.PURPLE_CONTENT_CACHE,issue:U.B.PURPLE_CONTENT_CACHE,collection:U.B.PURPLE_COLLECTION_CACHE,"collection-content":U.B.PURPLE_COLLECTION_CACHE,publication:U.B.PURPLE_PUBLICATION_CACHE,taxonomy:U.B.PURPLE_TAXONOMY_CACHE,category:U.B.PURPLE_TAXONOMY_CACHE,json:U.B.PURPLE_JSON_CACHE},this.MAX_CACHE_SIZE_BYTES=5e6,this.clientPurpleCachesReadyToSerialize=new Set,this.fetchOptionsMapping={includeHtml:"contentHtml",includeResources:"resources",includeBlocks:"content",includeBundledContent:"contents",seoMetadata:"seoMetadata"},this.getByteSize=G=>(new TextEncoder).encode(G).length,(0,S.UE)(this.platformId)&&this.router.events.pipe((0,z.p)(G=>G instanceof q.wF),(0,ve.i)(1),(0,de.B)(1e3)).subscribe(()=>{this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.serializeCachedRequests()},0)})})}serializeCachedRequests(){var _=this;return(0,f.A)(function*(){const O=Array.from(_.clientPurpleCachesReadyToSerialize).map(function(){var x=(0,f.A)(function*(B){yield _.serializeCache(B)});return function(B){return x.apply(this,arguments)}}());yield Promise.all(O),_.clientPurpleCachesReadyToSerialize.clear()})()}serializeCache(_){var O=this;return(0,f.A)(function*(){let x=O[_];if(x){let B=(0,s.A)({},x);O.trimCache(B,_),yield O.purpleService.setState(_,JSON.stringify(B))}})()}trimCache(_,O){const x=[];if(Object.keys(_).forEach(B=>{x.push([B,_[B].timestamp])}),x.length){let G=this.getByteSize(JSON.stringify(_)),pe=0;for(;G>this.MAX_CACHE_SIZE_BYTES&&(0===pe&&x.sort((le,W)=>W[1]-le[1]),x.length);){{const[le]=x.pop(),W=this.getByteSize(JSON.stringify(_[le]));delete _[le],G-=W}if(pe++,pe>10){console.warn("Tried to shrink ".concat(O," ").concat(pe," times, still has size ").concat(G," > ").concat(this.MAX_CACHE_SIZE_BYTES));break}}}}allFetchOptionsPresent(_,O){return _&&Object.keys(_).every(x=>Object.prototype.hasOwnProperty.call(O||{},this.fetchOptionsMapping[x]))}updateTransferStateAndStorage(_){Array.isArray(_)?_.forEach(O=>{this.persistToTransferStateAndStorage(O)}):this.persistToTransferStateAndStorage(_),this.persistToTransferStateAndStorage(U.B.PURPLE_API_CACHE)}persistToTransferStateAndStorage(_){(0,S.Vy)(this.platformId)?this.transferState.onSerialize(this.purpleCaches[_],()=>this[_]):this.clientPurpleCachesReadyToSerialize.add(_)}setCurrentTimeStamp(_,O){_&&Object.keys(_).forEach(x=>{_[x].timestamp=Date.now()})}fillCachesFromTransferState(){var _=this;if((0,S.Vy)(this.platformId))return;const O=Object.keys(this.purpleCaches).map(function(){var x=(0,f.A)(function*(B){const G=_.purpleCaches[B];if(_.transferState.hasKey(G)){const le=_[B]||{},W=_.transferState.get(G,null);(B===U.B.PURPLE_API_CACHE||B===U.B.PURPLE_JSON_CACHE)&&_.setCurrentTimeStamp(W,B),_[B]=(0,s.A)((0,s.A)({},le),W),_.transferState.remove(G),_.serializeCache(B)}});return function(B){return x.apply(this,arguments)}}());Promise.all(O)}mergeWithOptionalCache(_,O,x){const B=(0,s.A)({},_);return Object.keys(x||{}).forEach(G=>{const pe=this.fetchOptionsMapping[G]||G;void 0!==O[pe]&&(B[pe]=O[pe])}),B}restoreCachesFromStorage(){var _=this;return(0,f.A)(function*(){if((0,S.Vy)(_.platformId))return Promise.resolve();const x=Object.keys(_.purpleCaches).map(function(){var B=(0,f.A)(function*(G){const pe=yield _.purpleService.getState(G);pe&&Object.keys(pe).length&&(_[G]=JSON.parse(pe))});return function(G){return B.apply(this,arguments)}}());yield Promise.all(x)})()}toPromiseWithTimestamp(_,O){return isFinite(O)||(O=Date.now()),_ instanceof Promise||(_=Promise.resolve(_)),_.timestamp=O,_}combinedDataFullyFromCache(_,O,x){return!!_&&(x?!!this.allFetchOptionsPresent(x,O)&&this.mergeWithOptionalCache(_,O,x):_)}findValueByKeyFromObject(_,O){if(_&&_[O]&&"string"==typeof _[O].value)return _[O].value;for(const x in _)if(Object.prototype.hasOwnProperty.call(_||{},x)&&"object"==typeof _[x]){const B=this.findValueByKeyFromObject(_[x],O);if(B)return B}return null}getResponseOrFalseFromCache(_,O){const x=this.findValueByKeyFromObject(O,"id");return!!x&&("getContents"===_?this.combineGetContent(x,O):"getTaxonomies"===_&&this.combineGetTaxonomies(this.findValueByKeyFromObject(O,"type"),x,O))}combineGetTaxonomies(_,O,x){const B=this.getTaxonomyCacheKey({id:O,type:_}),G=this.getTaxonomyCacheKey({id:O,type:_},x);return this.combinedDataFullyFromCache(this.PURPLE_TAXONOMY_CACHE[B],this.PURPLE_OPTIONAL_CACHE[G],x.fetchOptions)}combineGetContent(_,O){return this.combinedDataFullyFromCache(this.PURPLE_CONTENT_CACHE[_],this.PURPLE_OPTIONAL_CACHE[_],O.fetchOptions)}cacheTransformer(_,O,x,B){let G=this.PURPLE_API_CACHE[_].nodes.map(pe=>{const le=x?x(pe,B):pe;return(0,s.A)((0,s.A)({},O[pe]),this.PURPLE_OPTIONAL_CACHE[le]||{})});return(0,s.A)((0,s.A)({},this.PURPLE_API_CACHE[_]),{},{nodes:G})}getApiCache(_,O){var x;const B="".concat(_,":").concat(JSON.stringify(O));let G;if(this.PURPLE_API_CACHE[B]){var pe;switch(_){case"getPublications":G=this.cacheTransformer(B,this.PURPLE_PUBLICATION_CACHE,this.getPublicationCacheKey.bind(this),O);break;case"getMenus":G=this.cacheTransformer(B,this.PURPLE_MENU_CACHE);break;case"getContents":G=this.cacheTransformer(B,this.PURPLE_CONTENT_CACHE);break;case"getCollections":G=this.cacheTransformer(B,this.PURPLE_COLLECTION_CACHE,this.getCollectionCacheKey.bind(this),O);break;case"getTaxonomies":G=this.cacheTransformer(B,this.PURPLE_TAXONOMY_CACHE,this.getTaxonomyCacheKey.bind(this),O);break;case"getRedirects":G=this.cacheTransformer(B,this.PURPLE_REDIRECT_CACHE);break;case"lookupPathSegments":G=null===(x=this.cacheTransformer(B,this.PURPLE_PATH_SEGMENT_CACHE))||void 0===x?void 0:x.nodes;break;default:throw new Error("".concat(_,": unknown function"))}return this.toPromiseWithTimestamp(Promise.resolve(G),null===(pe=G)||void 0===pe?void 0:pe.timestamp)}throw new Error("No cache entry")}createCacheKey(_,O=void 0,x){const B=[..._],G="include".concat(x),pe="".concat(x.toLowerCase(),"Params");return O&&O[G]&&B.push(JSON.stringify(O[pe])),B.filter(Boolean).join("-")}getTaxonomyCacheKey(_,O){const x="string"==typeof _?[_]:[_.type,_.id].filter(B=>!!B);return this.createCacheKey(x,O,"Contents")}getPublicationCacheKey(_,O){return this.createCacheKey([_],O,"Contents")}getCollectionCacheKey(_,O){return this.createCacheKey([_],O,"Elements")}setOptionalCache(_,O="getContents",x=void 0){let G,B={};if("getCollections"==O){const{elements:le}=_;B={elements:le},G=(0,g.A)(_,V)}else if("getPublications"==O){const{contents:le}=_;B={contents:le},G=(0,g.A)(_,Q)}else if("getTaxonomies"==O){let{contents:le,seoMetadata:W}=_;B={contents:le,seoMetadata:W},G=(0,g.A)(_,ie)}else if((0,R.G4)(_)){let{contents:le,seoMetadata:W}=_;B={contents:le,seoMetadata:W},G=(0,g.A)(_,K)}else{let{content:le,contentHtml:W,resources:te,seoMetadata:ae}=_;B={contentHtml:W,content:le,resources:te,seoMetadata:ae},G=(0,g.A)(_,ee)}const pe=Object.fromEntries(Object.entries(B).filter(([le,W])=>null!=W));if(Object.keys(pe).length>0){let le;if("getPublications"===O)le=this.getPublicationCacheKey(_.id,x);else if("getTaxonomies"===O)le=this.getTaxonomyCacheKey(_,x);else if("getCollections"===O)le=this.getCollectionCacheKey(_.id,x);else{le=_.id;const W=this.maintainDownloadByArray(_,null==x?void 0:x.fetchOptions);W.length&&(pe.downloadedBy=G.downloadedBy=W),pe.version=_.version}this.PURPLE_OPTIONAL_CACHE[le]=(0,s.A)((0,s.A)({},this.PURPLE_OPTIONAL_CACHE[le]),pe)}return G}maintainDownloadByArray(_,O){const x=null==O?void 0:O.downloadedById;if(!x)return[];const B=_.downloadedBy?[..._.downloadedBy]:[];return B.includes(x)||B.push(x),B}deleteEntriesNotContainingTheProp(_,O){var x=this;return(0,f.A)(function*(){try{let B=JSON.parse((yield x.purpleService.getState(_))||"{}");if(0===Object.keys(B).length)return;Object.keys(B).forEach(G=>{Object.prototype.hasOwnProperty.call(B[G],O)||delete B[G]}),yield x.purpleService.setState(_,JSON.stringify(B))}catch(B){console.error("Failed to delete property ".concat(O," entries from ").concat(_,":"),B)}})()}clearCache(){var _=this;return(0,f.A)(function*(){const O=[{name:U.B.PURPLE_API_CACHE,prop:"downloadedById"},{name:U.B.PURPLE_CONTENT_CACHE,prop:"downloadedBy"},{name:U.B.PURPLE_OPTIONAL_CACHE,prop:"downloadedBy"}],x=O.map(B=>B.name);yield Promise.all(O.map(function(){var B=(0,f.A)(function*({name:G,prop:pe}){try{yield _.deleteEntriesNotContainingTheProp(G,pe)}catch(le){console.error("Failed to delete entries for ".concat(G,":"),le)}});return function(G){return B.apply(this,arguments)}}())),Object.keys(_.purpleCaches).forEach(B=>{x.includes(U.B[B])||_.purpleService.setState(U.B[B],"{}")})})()}handleDeleteOnDownloadedCache(_,O,x){var B=this;return(0,f.A)(function*(){var G;if(_==U.B.PURPLE_API_CACHE&&x)(null===(G=B[_][O])||void 0===G?void 0:G.downloadedById)==x&&(yield B.deleteCacheEntry(_,O));else if(_==U.B.PURPLE_CONTENT_CACHE||_==U.B.PURPLE_OPTIONAL_CACHE){var pe;null!==(pe=B[_][O])&&void 0!==pe&&null!==(pe=pe.downloadedBy)&&void 0!==pe&&pe.includes(x)&&(yield B.popFromDownloadedByArrayOrDelete(_,O,x))}})()}deleteCacheEntry(_,O,x=!0){var B=this;return(0,f.A)(function*(){delete B[_][O];try{if(x&&(0,S.UE)(B.platformId)){let G=JSON.parse((yield B.purpleService.getState(_))||"{}");delete G[O],yield B.purpleService.setState(_,JSON.stringify(G))}}catch(G){console.error("Failed to delete cache entry from storage:",G)}})()}popFromDownloadedByArrayOrDelete(_,O,x){var B=this;return(0,f.A)(function*(){try{var G,pe;B[_][O].downloadedBy=null===(G=B[_][O])||void 0===G||null===(G=G.downloadedBy)||void 0===G?void 0:G.filter(le=>le!==x),0===(null===(pe=B[_][O])||void 0===pe||null===(pe=pe.downloadedBy)||void 0===pe?void 0:pe.length)&&(yield B.deleteCacheEntry(_,O))}catch(le){console.error("Failed to pop ".concat(x," from downloadedBy array of ").concat(O," or delete:"),le)}})()}bustApiCache(){var _=this;Object.keys(this.purpleCaches).forEach(function(){var O=(0,f.A)(function*(x){_[x]={}});return function(x){return O.apply(this,arguments)}}()),this.clearCache()}}return(Ae=ue).\u0275fac=function(_){return new(_||Ae)(d.KVO(d.Agw),d.KVO(d.pJN),d.KVO(q.Ix),d.KVO(d.SKi))},Ae.\u0275prov=d.jDH({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),ue})()},7816:(se,E,c)=>{"use strict";c.d(E,{O:()=>s,Q:()=>f});var g=c(8340);function s(d){return void 0!==d.getVendorId&&void 0!==d.getIABVendorId}class f extends g.u{getVendorId(){var S;return null===(S=this.data)||void 0===S||null===(S=S.consent)||void 0===S?void 0:S.vendorId}getIABVendorId(){var S;return null===(S=this.data)||void 0===S||null===(S=S.consent)||void 0===S?void 0:S.iabVendorId}canRunWithoutConsent(){return!1}isValidConfiguration(){var S;return null===(S=this.data)||void 0===S||!S.consent||!(!this.getVendorId()&&!this.getIABVendorId())}}},953:(se,E,c)=>{"use strict";c.d(E,{z:()=>f});var g=c(467),s=c(4438);let f=(()=>{var d;class S{constructor(){this.init$=new Promise(U=>this.resolveInitialization=U),this.activePlugins=new Array,this.init()}loadPlugin(U){if(!U.isEnabled())return console.debug("Plugin: ".concat(U.displayName," is not enabled!")),null;if(!U.isValidConfiguration())return console.debug("Plugin: ".concat(U.displayName," has no valid configuration!")),null;const q=U.createInstance();return q?this.registerActivePlugin(q):console.error("Plugin: ".concat(U.displayName," not loaded!")),q}unloadPlugin(){}init(){var U=this;return(0,g.A)(function*(){U.resolveInitialization()})()}registerActivePlugin(U){console.debug("Plugin: ".concat(U.getConfig().displayName," is active and added to plugin service!")),this.activePlugins.push(U)}}return(d=S).\u0275fac=function(U){return new(U||d)},d.\u0275prov=s.jDH({token:d,factory:d.\u0275fac,providedIn:"root"}),S})()},8340:(se,E,c)=>{"use strict";c.d(E,{U:()=>f,u:()=>s});var g=c(467);class s{constructor(S,R){this.displayName=S,this.data=R}isEnabled(){return!!this.data}}class f{constructor(S){this.pluginConfiguration=S,this.init$=new Promise((R,U)=>{this.init(R,U)})}init(S,R){var U=this;return(0,g.A)(function*(){return U.adjustDocument().then(()=>{console.debug("Document adjusted for plugin: ".concat(U.getDisplayName())),S()}).catch(q=>{console.error("Error while adjusting document for plugin: ".concat(U.getDisplayName()),q),R(q)})})()}getConfig(){return this.pluginConfiguration}getDisplayName(){return this.getConfig().displayName}}},4648:(se,E,c)=>{"use strict";c.d(E,{G3:()=>de,h9:()=>ve,tU:()=>z,w:()=>V});var g=c(970),f=c(7374),d=c.n(f),S=c(5180),R=c.n(S),U=c(8179);function q(O){const x=(B,G)=>{if(!G)return!1;if(!B)return!0;const pe=null==O?void 0:O(B,G);if("boolean"==typeof pe)return pe;if(B.OR){for(const le of B.OR)if(x(le,G))return!0;return!1}return B.AND?B.AND.every(le=>x(le,G)):B.id?G.id&&Ae(B.id,G.id):!!B.properties&&(B.properties.key in G.properties?Ae(B.properties,G.properties[B.properties.key]):!!B.properties.negated)};return x}d().extend(R());const z=q(function Q(O,x){if(O.publication){if(O.publication.id){const G=O.publication.id.value===x.publicationId;return O.publication.id.negated?!G:G}return!0}var B;if(O.categories)return he(O.categories,null!==(B=x.categories)&&void 0!==B?B:[]);if(O.tags)return he(O.tags,x.tags);if(O.alias){const G=O.alias.value===x.alias;return O.alias.negated?!G:G}if(O.externalIssueId){const G=O.externalIssueId.value===x.externalIssueId;return O.externalIssueId.negated?!G:G}if(O.type){const G=O.type.value===x.type;return O.type.negated?!G:G}if(O.publicationDate)return _(O.publicationDate,x.publicationDate);if(O.purchasable)return O.purchasable.value===x.purchasable;if(O.purchased)return O.purchased.value===x.purchased;if((0,U.KR)(O.properties)){const G=O.properties;if(x.properties[G.key]){let pe=!1;const le=d()(x.properties[G.key],G.propertyFormat),W=d()(G.value,G.valueFormat);if(le.isValid()&&W.isValid())switch(G.operation){case g.DateOperation.EQUAL:pe=le.isSame(W,"day");break;case g.DateOperation.GREATER_THAN:pe=le.isAfter(W,"day");break;case g.DateOperation.LESS_THAN:pe=le.isBefore(W,"day");break;default:console.warn("unsupported date operation",O)}return G.negated?!pe:pe}}}),ve=q(function ie(O,x){if(O.publication){if(O.publication.id){const B=O.publication.id.value===x.publicationId;return O.publication.id.negated?!B:B}return!0}if(O.taxonomies)return console.warn("local filtering by taxonomies is not implemented!"),!0;if(O.alias){const B=O.alias.value===x.alias;return O.alias.negated?!B:B}if(O.externalId){const B=O.externalId.value===x.externalId;return O.externalId.negated?!B:B}if(O.contentType){const B=O.contentType.value===x.contentType;return O.contentType.negated?!B:B}if(O.publicationDate)return _(O.publicationDate,x.publicationDate);if(O.access)return O.access.value===x.access;if(O.purchased)return O.purchased.value===x.purchaseData.purchased;if((0,U.KR)(O.properties)){const B=O.properties;if(x.properties[B.key]){let G=!1;const pe=d()(x.properties[B.key],B.propertyFormat),le=d()(B.value,B.valueFormat);if(pe.isValid()&&le.isValid())switch(B.operation){case g.DateOperation.EQUAL:G=pe.isSame(le,"day");break;case g.DateOperation.GREATER_THAN:G=pe.isAfter(le,"day");break;case g.DateOperation.LESS_THAN:G=pe.isBefore(le,"day");break;default:console.warn("unsupported date operation",O)}return B.negated?!G:G}}}),de=q(function K(O,x){return O.name?Ae(O.name,x.name):O.parentCategoryId?Ae(O.parentCategoryId,x.parentCategoryId):O.issues?(console.warn("Unhandled CategoryFilter field for filterLocalCategory: issues"),!0):void 0}),V=q(function ee(O,x){return O.name?Ae(O.name,x.name):O.parentId?Ae(O.parentId,x.parentId):void 0});function he(O,x){const B=O.content,G=O.size,pe=O.negated;let le=!0;return B&&(le=B.operation===g.ListOperation.CONTAINS_ONLY?Ae(B.value,x[0]):!!x.find(W=>Ae(B.value,W))),G&&(le=function ue(O,x){let B;switch(O.operation){case g.IntOperation.GREATER_THAN:B=x>O.value;break;case g.IntOperation.LESS_THAN:B=x<O.value;break;default:B=x===O.value}return O.negated?!B:B}(G,x.length)),pe?!le:le}function Ae(O,x){var B;let G;if(null!==(B=O.values)&&void 0!==B&&B.length)G=O.values.includes(x);else switch(O.operation){case g.StringOperation.STARTS_WITH:G=x.startsWith(O.value);break;case g.StringOperation.CONTAINS:G=x.indexOf(O.value)>-1;break;default:G=x===O.value}return O.negated?!G:G}function _(O,x){const B=function oe(O){const x=O.split("T");if(x[1])switch(x[0].split(":").length){case 3:return"hour";case 2:return"minute";default:return"second"}else switch(x[0].split("-").length){case 3:return"day";case 2:return"month";default:return"year"}}(O.value);let G;const pe=d()(x),le=d()(O.value);switch(O.operation){case g.DateOperation.LESS_THAN:G=pe.isBefore(le,B);break;case g.DateOperation.GREATER_THAN:G=pe.isAfter(le,B);break;default:return pe.isSame(le,B)}return O.negated?!G:G}},950:(se,E,c)=>{"use strict";c.d(E,{CY:()=>V,Rh:()=>q,dV:()=>z});var g=c(4404);function f(Q){return ie=>(K,ee)=>{for(const he of ie){const Ae=Q(K,ee,he);if(0!==Ae)return Ae}return Q(K,ee)}}function d(Q,ie,K){const ee=Q[K.key],he=ie[K.key];let Ae=0;switch(K.valueType){case"STRING":Ae=ee.toString().localeCompare(he.toString());break;case"INT":Ae=parseInt(ee,10)-parseInt(he,10)}return K.direction===g.SortDirection.ASC?Ae:-Ae}function R(Q,ie){return Q.publicationDate===ie.publicationDate?Q.id>ie.id?1:-1:ie.publicationDate-Q.publicationDate}const q=f(function U(Q,ie,K){return K?K.index?(K.index.direction===g.SortDirection.ASC?1:-1)*(Q.index-ie.index):K.publicationDate?(K.publicationDate.direction===g.SortDirection.ASC?1:-1)*(Q.publicationDate-ie.publicationDate):K.property?d(Q.properties,ie.properties,K.property):void 0:R(Q,ie)});function z(Q){return[...Q].sort(R)}const V=f(function de(Q,ie,K){return K?K.name?function S(Q,ie,K){const ee=Q.localeCompare(ie);return K.direction===g.SortDirection.ASC?ee:-ee}(Q.name,ie.name,K.name):K.property?d(Q.properties,ie.properties,K.property):void 0:function ve(Q,ie){return Q.id>ie.id?1:-1}(Q,ie)})},5102:(se,E,c)=>{"use strict";c.d(E,{Wj:()=>He,Kh:()=>Ce,GA:()=>lt,YH:()=>ye});var g=c(9379),s=c(467),f=c(4438),d=c(4404),S=c(362),R=c.n(S),U=c(4412),q=c(2771),z=c(4843),ve=c(5964),de=c(1594),V=c(6843),Q=c(5706),ie=c(8091),K=c(7598),ee=c(7879),he=c(4648),Ae=c(8330),ue=c(950);function O(Ee,De){var Ge,ge;const Me=Ee&&{AND:Ee.AND&&(null===(Ge=Ee.AND)||void 0===Ge?void 0:Ge.map(Ve=>O(Ve,!1))),OR:Ee.OR&&(null===(ge=Ee.OR)||void 0===ge?void 0:ge.map(Ve=>O(Ve,!1))),id:Ee.id,externalId:Ee.externalIssueId,alias:Ee.alias,publicationDate:Ee.publicationDate,access:G(Ee.purchasable),productId:Ee.productId,purchased:Ee.purchased,publication:pe(Ee.publication)||le(Ee.type),properties:Ee.properties,taxonomies:ae("category",Ee.categories)||ae("tag",Ee.tags)};return De?function B(Ee){return Ee?{AND:[{contentType:{value:d.CatalogContentType.ISSUE}},Ee]}:{contentType:{value:d.CatalogContentType.ISSUE}}}(Me):Me}function G(Ee){return Ee&&{value:d.Access.FREE,negated:Ee.value}}function pe(Ee){return Ee&&{AND:Ee.AND&&Ee.AND.map(De=>pe(De)),OR:Ee.OR&&Ee.OR.map(De=>pe(De)),id:Ee.id,type:Ee.type,language:Ee.language,properties:Ee.properties,contents:Ee.contents||W(Ee.issues)}}function le(Ee){return Ee&&{type:{negated:Ee.negated,value:"ARTICLE"===Ee.value?d.PublicationType.CHANNEL:d.PublicationType.KIOSK}}}function W(Ee){return Ee&&{negated:Ee.negated,content:te(Ee.content),size:Ee.size}}function te(Ee){return Ee&&{operation:Ee.operation,value:O(Ee.value,!0)}}function ae(Ee,De){return De&&{negated:De.negated,content:_e(Ee,De.content),size:De.size}}function _e(Ee,De){return De&&{operation:De.operation,value:Le(Ee,De.value)}}function Le(Ee,De){return{AND:[{type:{value:Ee}},{id:De}]}}function We(Ee){var De;return{contentFilter:O(Ee.issueFilter,!0),sort:null===(De=Ee.sort)||void 0===De?void 0:De.map(Ge=>function oe(Ee){return{index:Ee.index,publicationDate:Ee.publicationDate,property:Ee.property}}(Ge)),first:Ee.first,after:Ee.after,fetchOptions:{totalCount:!0}}}var Ye=c(7616),we=c(9516),ze=c(312);class Ke{constructor(De){this.injector=De,this.version={major:1,minor:0},this.router=new je(De)}}class je{constructor(De){this.injector=De,this.version={major:1,minor:0},this.listenersMap=new WeakMap,this.initialLoad=!0,this.bidiRouterService=this.injector.get(ze.u),this.bidiRouterService.currentRoute$.subscribe(Ge=>{this.currentRoute=Ge,this.shareState()})}getCurrentRoute(){return Promise.resolve(this.currentRoute)}changeRoute(De){try{return this.bidiRouterService.changeUrl(De),Promise.resolve(!0)}catch(Ge){return console.error(Ge),Promise.reject(!1)}}addRouteChangeListener(De){try{if(this.initialLoad&&(window.addEventListener("popstate",ge=>{this.bidiRouterService.afterPopState$.next(!0),setTimeout(()=>{this.bidiRouterService.afterPopState$.next(!1)},2e3)}),this.initialLoad=!1),this.bidiRouterService.afterPopState$.value)return;if(this.listenersMap.has(De))return void console.debug("Bidirectional Router listener already exists");const Ge=ge=>{De(ge.detail)};window.addEventListener(K.yl,Ge),this.listenersMap.set(De,Ge),this.shareState(),console.debug("Bidirectional Router listener added, state sent",this.currentRoute)}catch(Ge){console.error(Ge)}}removeRouteChangeListener(De){const Ge=this.listenersMap.get(De);Ge?(window.removeEventListener(K.yl,Ge),this.listenersMap.delete(De)):console.debug("Bidirectional Router listener does not exist")}shareState(){const De=new CustomEvent(K.yl,{detail:this.currentRoute});window.dispatchEvent(De)}}var Ze=c(6078),k=c(5250),F=c(4608),Y=c(6067);class P{get content(){return this._content}get publication(){return this._publication}get state(){return this._state}get downloadStarted(){return this._state.downloading}get autoUpdate(){return this._autoUpdate}constructor(De){this.listeners=[],this.useNewContentAPI=(0,ee.E7)(window.purple.content,{major:1,minor:6},d.IntOperation.GREATER_THAN),this.options=De,this._content=De.content,this._autoUpdate=De.autoUpdate,this._publication=De.publication,this.getAppState().then(Ge=>{if(this._state=Ge,Ge.downloading&&this._autoUpdate)try{return this.updating=!0,this.updateState(!0),this.startDownload(this._content.id)}catch(ge){}}),De.addAppStateListeners&&this.addAppStateListeners()}download(){var De=this;return(0,s.A)(function*(){if(De._state.installState!==d.ContentInstallState.COMPLETE||De._state.updateAvailable){De.updating=!1,De._state.downloading=!0,De.error=null;try{const Ge=yield De.startDownload(De._content.id);return De.removeErrorStates(),De.updateState(!1,!1,!0),Ge}catch(Ge){throw console.error(Ge),De._state.downloading=!1,De.error=null,yield De.getAppState(),De.updateState(),yield De.delete(),Ge}}})()}pause(){var De=this;return(0,s.A)(function*(){return De.pauseDownload(De._content.id)})()}update(){var De=this;return(0,s.A)(function*(){return yield De.syncLocalContents(),yield De.updateStatesFromLocal(),De.updating=!0,De.updateState(!0),De.startDownload(De._content.id)})()}delete(De=!1){var Ge=this;return(0,s.A)(function*(){Ge.updating=!1,yield Ge.deleteDownload(Ge._content.id),Ge._state=yield Ge.getAppState(),Ge.updateState(!1,De)})()}setContent(De){var Ge=this;return(0,s.A)(function*(){Ge._content=De,Ge._state=yield Ge.getAppState(),Ge.updateState()})()}syncLocalContents(){var De=this;return(0,s.A)(function*(){if(!De.useNewContentAPI)return window.purple.catalog.syncLocalIssues({issueIds:[De._content.id]});yield window.purple.content.syncLocalContents({contentIds:[De._content.id]})})()}addDownloadStateListeners(De){this.listeners.push(De)}updateState(De,Ge,ge){this.trackStateUpdate(this._state,ge),!De&&this._state.installState===d.ContentInstallState.COMPLETE&&!this._state.updateAvailable&&(this.updating=!1),(Ge||this._state.downloading||this._state.installState!==d.ContentInstallState.INCOMPLETE||this._state.error&&this._state.error!==this.error)&&this.listeners.forEach(Me=>Me((0,g.A)((0,g.A)({},this._state),{},{updating:this.updating}))),this.error=this._state.error}openIssue(De){var Ge=this;return(0,s.A)(function*(){if(!(0,Q.xl)(Ge._content))return void console.error("DownloadHandler.openIssue: you tried to open a non Issue");const ge=Ge._content;let Me=De.initialPublication;const Ve=yield(0,ee.Lb)([ge],ge,kn=>Promise.resolve(!kn.purchaseData.purchased),null,!1!==De.additionalIssuesOnly),rt=De.initialContentOnly?ge.type:Ge.getContentType(),at=Ve.find(kn=>{var ln;return kn===ge.id||kn===(null===(ln=ge.previewIssue)||void 0===ln?void 0:ln.id)}),ct=[];if(Ge._publication||ct.push({id:{value:ge.publicationId}}),!Me&&ge&&ct.push({id:{value:ge.publicationId}}),ct.length){const kn=1===ct.length?ct[0]:{OR:ct.map(Jt=>Jt)},ln=(yield window.purple.catalog.getPublications({publicationFilter:kn})).nodes;Ge._publication=Ge._publication||ln.find(Jt=>ge.publicationId===Jt.id),Me=Me||ln.find(Jt=>ge.publicationId===Jt.id)}let Yt=null;null!=De.pageIndex&&(Yt={index:De.pageIndex}),De.elementAlias&&(Yt=(0,g.A)((0,g.A)({},Yt),{},{initialElement:{aliasOrId:De.elementAlias}}));const Ft={type:rt};Ft.optionalParams=ge?(0,ee.P8)((0,ee.yC)(ge,Me)):{},(0,ee.Gw)(rt)&&(Ft.optionalParams=(0,g.A)((0,g.A)({},Ft.optionalParams),(0,ee.P8)((0,ee.VP)(ge,Ge._publication,null,"SOURCE_"))));const dn={issueIds:Ve,initialIssue:{id:at,initialPage:Yt},config:{mode:d.DisplayMode.MODAL,titleBar:rt===Y.r.ISSUE},tracking:Ft};return null!=De&&De.checkLocalIssues&&(!(yield window.purple.catalog.getLocalIssues()).issues.find(Jt=>Jt.id===ge.id)&&(yield Ge.syncLocalContents()),dn.skipSync=!0),null!=De&&De.openIssueConfig&&(dn.config=De.openIssueConfig),window.purple.content.open(dn)})()}getContentType(De=""){if((0,Q.xl)(this._content))return this._content&&this._content.type===d.IssueType.ISSUE?Y.r.ISSUE:Y.r.ARTICLE}startDownload(De){var Ge=this;return(0,s.A)(function*(){Ge.useNewContentAPI?yield window.purple.content.startDownload({contentId:De}):yield window.purple.catalog.startDownload({issueId:De})})()}pauseDownload(De){var Ge=this;return(0,s.A)(function*(){if(!Ge.useNewContentAPI)return yield window.purple.catalog.pauseDownload({issueId:De});yield window.purple.content.pauseDownload({contentId:De})})()}deleteDownload(De){var Ge=this;return(0,s.A)(function*(){if(!Ge.useNewContentAPI)return yield window.purple.catalog.deleteIssue({issueId:De}).catch(ge=>console.warn("Error deleting issue ",ge));yield window.purple.content.deleteDownload({contentId:De}).catch(ge=>console.warn("Error deleting issue ",ge))})()}getAppState(){var De=this;return(0,s.A)(function*(){if(De.useNewContentAPI)return(yield window.purple.content.getContentStates({contents:[{contentId:De._content.id,contentVersion:De._content.version}]}))[De._content.id];{const Ge=yield window.purple.catalog.getIssueStates({issues:[{issueId:De._content.id,issueVersion:De._content.version}]});return(0,g.A)((0,g.A)({},Ge[De._content.id]),{},{contentId:Ge[De._content.id].issueId})}})()}updateStatesFromLocal(){var De=this;return(0,s.A)(function*(){let Ge;if(De.useNewContentAPI){const Me=(yield window.purple.content.getLocalContents().then(Ve=>Ve.contents)).find(Ve=>De._content.id===Ve.id);De._content.version=Me.version,Ge=Me.state}else{const Me=(yield window.purple.catalog.getLocalIssues().then(Ve=>Ve.issues)).find(Ve=>De._content.id===Ve.id);Me&&(De._content.version=Me.version,Ge=(0,g.A)((0,g.A)({},Me.state),{},{contentId:Me.state.issueId}))}De._state=Ge})()}removeErrorStates(){delete this._state.error}addAppStateListeners(){this.useNewContentAPI?window.purple.content.addContentStateListener({contentId:this._content.id,contentVersion:this._content.version,publicationId:this._publication.id},Ge=>{this._state=Ge,this.updateState()}):window.purple.catalog.addIssueStateListener({issueId:this._content.id,issueVersion:this._content.version,publicationId:this._publication.id},Ge=>{this._state=(0,g.A)((0,g.A)({},Ge),{},{contentId:this._content.id}),this.updateState()})}trackStateUpdate(De,Ge){if(!(this._state.installState&&De.installState!==this._state.installState||De.error||Ge))return;let ge;if(De.error&&De.error!==this.error)ge=Y.G.DOWNLOAD_FAILED;else if(Ge)ge=Y.G.DOWNLOAD_STARTED;else switch(De.installState){case d.ContentInstallState.COMPLETE:ge=Y.G.DOWNLOADED;break;case d.ContentInstallState.NOT_INSTALLED:ge=this._state.downloading&&this._state.installState===d.ContentInstallState.INCOMPLETE?Y.G.DOWNLOAD_CANCELLED:Y.G.DELETED}ge&&this.handleTrackAction(ge),this._state.installState=De.installState}handleTrackAction(De){const Ge=this.getContentType("_COLLECTION"),ge=(0,ee.Dh)("".concat(Ge,"_").concat(De)),Me=(0,ee.P8)((0,ee.VP)(this._content,this._publication));window.purple.tracking.trackAction({key:ge,optionalParams:Me})}}var ce=c(8582),Se=c(3331),Be=c(6350);const Tt={hasNextPage:!1,totalCount:0,cursor:"",nodes:[]},zt="PURPLE_CACHE_VERSION",Mt=Ae.rE;let He=(()=>{var Ee;class De{get downloadOptions(){return this._downloadOptions}isContentLocked(ge,Me){return!1}constructor(ge,Me,Ve,rt,at,ct){this.platformId=ge,this.router=Me,this.injector=Ve,this.purpleEnv=rt,this.transferState=at,this.cacheService=ct,this.DOWNLOAD_HANDLERS={},this.IMAGE_SRCS=[],this.bookmarksSubject=new U.t(null),this.bookmarks$=this.bookmarksSubject.asObservable(),this.initedSubject=new q.m(1),this.inited$=this.initedSubject.asObservable(),this.repeatablePublicationProductsSubject=new U.t(null),this.repeatablePublicationProducts$=this.repeatablePublicationProductsSubject.asObservable(),this.connectionStateSubject=new U.t(null),this.connectionState$=this.connectionStateSubject.asObservable(),this._downloadOptions={},this.implUsedDirectly=!1,this.addIssueStateListener=(Yt,Ft)=>this.purpleRef.catalog.addIssueStateListener(Yt,Ft),this.removeIssueStateListener=(Yt,Ft)=>this.purpleRef.catalog.removeIssueStateListener(Yt,Ft),this.share=Yt=>this.purpleRef.share.share(Yt)}init(ge=!1,Me,Ve,rt,at,ct,Yt,Ft,dn,kn,ln){var Jt=this;return(0,s.A)(function*(){Jt.purpleConfig=ct,Me.loadConfig(),Jt.cacheService.purpleService=Jt,ge?Jt.initServerPlatform(Yt,ct,Ft,dn,kn,rt,at):Jt.initAppPlatform(),window.PurpleService=Jt,Jt.initPurpleExperience(ln,Ve),Jt.subscribeToConfigLoaderService(Me),yield Jt.initCache(),Jt.cacheService.fillCachesFromTransferState(),Jt.initListeners();try{var At,Hn;null===(At=(Hn=window.storefrontHooks).onPurpleServiceInit)||void 0===At||At.call(Hn)}catch(Yn){console.error("Error in onPurpleServiceInit hook:",Yn)}Jt.initedSubject.next(!0),Jt.initedSubject.complete()})()}getPurpleConfig(){return this.purpleConfig}updateRepeatablePublicationProducts(){var ge=this;return(0,s.A)(function*(){let Me;const Ve={publicationProductFilter:{AND:[{type:{value:d.PublicationProductType.REPEATABLE_ISSUE_PURCHASE}},{hidden:{value:!1}}]},maxUnlockableContents:1};try{Me=yield ge.getPublicationProducts(Ve)}catch(rt){console.warn("Failed to load repeatable publication products",rt),Me=[]}return ge.repeatablePublicationProductsSubject.next(Me),Me})()}getRepeatablePublicationProductByPublicationId(ge){var Me=this;return(0,s.A)(function*(){return(yield(0,z._)(Me.repeatablePublicationProducts$.pipe((0,ve.p)(rt=>!!rt)))).find(rt=>!!rt.publications[ge])})()}nextInvalidation(){let ge;const Me=new Promise((Ve,rt)=>ge=Ve);return window.addEventListener(K.YT,()=>ge()),Me}invalidate(){var ge=this;return(0,s.A)(function*(){ge.cacheService.bustApiCache(),yield ge.updateDownloadHandlerStates(),yield ge.updateRepeatablePublicationProducts(),window.dispatchEvent(new CustomEvent(K.YT,{})),ge.onMaybeSubscriptionsChanged()})()}onMaybeSubscriptionsChanged(){var ge=this;return(0,s.A)(function*(){const Me=yield ge.getState("storefront-purchased-subs").then(Yt=>Yt&&JSON.parse(Yt)),Ve=(yield ge.getSubscriptions({subscriptionFilter:{purchased:{value:!0}}})).nodes;var rt,at;R()(Me,Ve)||(null===(rt=window.storefrontHooks)||void 0===rt||null===(at=rt.subscriptionsChanged)||void 0===at||at.call(rt,{subscriptions:Ve}),yield ge.setState("storefront-purchased-subs",JSON.stringify(Ve))),ge.injector.get(we.V).notifyAll()})()}addImageSrc(ge){this.IMAGE_SRCS.indexOf(ge)<0&&this.IMAGE_SRCS.push(ge)}getAlternativeSrc(ge){const Me=null==ge?void 0:ge.split("?")[0];return this.IMAGE_SRCS.find(Ve=>(null==Ve?void 0:Ve.split("?")[0])===Me)||Me}filterCategoriesByParam(ge){return Object.values(this.cacheService.PURPLE_TAXONOMY_CACHE).filter(Me=>(0,he.G3)(ge.categoryFilter,Me))}setConfigValue(ge,Me){this.purpleRef.setConfigValue(ge,Me)}setPageData(ge,Me){this.purpleRef.setPageData(ge,Me)}setIssuePagerInfo(ge){this.purpleRef.setIssuePagerInfo(ge)}isIssuePager(){return!!this.issuePagerInfo}setCurrentPagerIssueId(ge){if(this.issuePagerInfo){const Me=this.issuePagerInfo.issues.findIndex(Ve=>Ve.id===ge);-1!==Me&&(this.issuePagerInfo.currentIndex=Me,this.issuePagerInfo.visibleIndex=Me)}}getDownloadHandler(ge,Me){var Ve=this;return(0,s.A)(function*(){const rt=ge.id,at=Ve.DOWNLOAD_HANDLERS[rt]&&(yield Ve.DOWNLOAD_HANDLERS[rt]);if(at)return ge.id===at.content.id&&!R()(ge,at.content)&&(yield at.setContent(ge)),at;const ct=yield Ve.getPublication(ge.publicationId);return Ve.DOWNLOAD_HANDLERS[rt]=new Promise(Yt=>{const dn=new P({content:ge,publication:ct,autoUpdate:!!Ve.downloadOptions.autoUpdateBehavior,addAppStateListeners:!0}),kn=(0,g.A)((0,g.A)({},dn.state),{},{error:null}),ln=new U.t(kn);dn.addDownloadStateListeners(Jt=>ln.next(Jt)),dn.updates$=ln,Me&&dn.updates$.pipe((0,ve.p)(Jt=>!(!Jt||!Jt.error))).subscribe(Jt=>{const At=(0,ie.$C)(Jt.error,dn.content);Me.alert({text:"ERROR_DOWNLOAD",args:At},"DIALOG_ERROR")}),Yt(dn)}),Ve.DOWNLOAD_HANDLERS[rt]})()}destroyDownloadHandler(ge){var Me=this;return(0,s.A)(function*(){for(const Ve in Me.DOWNLOAD_HANDLERS)if((yield Me.DOWNLOAD_HANDLERS[Ve])===ge){ge.updates$.observers.length||delete Me.DOWNLOAD_HANDLERS[ge.content.id];break}})()}updateDownloadHandlers(){var ge=this;return(0,s.A)(function*(){return Promise.all(Object.values(ge.DOWNLOAD_HANDLERS).map(function(){var Me=(0,s.A)(function*(Ve){const rt=yield Ve;if(rt.downloadStarted&&rt.autoUpdate)try{yield rt.update()}catch(at){console.warn("error updating download handler",at)}else rt.updateState(!1,!0)});return function(Ve){return Me.apply(this,arguments)}}()))})()}updateDownloadHandlerStates(){var ge=this;return(0,s.A)(function*(){return Promise.all(Object.values(ge.DOWNLOAD_HANDLERS).map(Me=>Me.then(Ve=>Ve.updateState(!1,!0))))})()}loginAccount(ge){var Me=this;return(0,s.A)(function*(){var Ve;return null===(Ve=Me.purpleRef.account)||void 0===Ve?void 0:Ve.login({token:ge})})()}logoutAccount(){var ge;return null===(ge=this.purpleRef.account)||void 0===ge?void 0:ge.logout()}assignLocalPurchases(ge){var Me;return null===(Me=this.purpleRef.account)||void 0===Me?void 0:Me.assignLocalPurchases({mode:ge})}getAccountUserData(){var ge=this;return(0,s.A)(function*(){var Me;return null===(Me=ge.purpleRef.account)||void 0===Me?void 0:Me.getUserData()})()}overrideAppPerformActionUrlApi(ge){this.purpleRef.app.performActionUrl=function(){var Me=(0,s.A)(function*({actionUrl:Ve}){if(typeof WP<"u"&&WP.instance){const rt=WP.instance.getCurrentPlayer();if(rt.ctx.actionHandler.processAction({open:{URL:Ve}},null,rt))return}ge.openUrl(Ve)});return function(Ve){return Me.apply(this,arguments)}}()}openActionUrl(ge,Me,Ve){const rt="purple-action-url-frame";if(ge.startsWith("purple://")&&this.purpleRef.app.performActionUrl&&!Me)this.purpleRef.app.performActionUrl({actionUrl:ge});else if(Me){let at=document.getElementById(rt);at||(at=document.createElement("iframe"),at.style.opacity="0",at.id=rt,document.body.appendChild(at)),at.src=ge}else Ve?window.open(ge,Ve):window.location.href=ge}performAuthentication(ge,Me){var Ve=this;return(0,s.A)(function*(){return Ve.purpleRef.app.performAuthentication({url:ge,callbackParamName:Me||"callbackurl"})})()}addConnectionStateListener(ge){this.purpleRef.app.addConnectionStateListener(ge)}removeConnectionStateListener(ge){this.purpleRef.app.removeConnectionStateListener(ge)}addLifecycleListener(ge){this.purpleRef.app.addLifecycleListener(ge)}removeLifecycleListener(ge){this.purpleRef.app.removeLifecycleListener(ge)}getDisplayMode(){var ge=this;return(0,s.A)(function*(){return(yield ge.purpleRef.appBrowser.getDisplayConfig()).displayMode})()}isTitleBarEnabled(){var ge=this;return(0,s.A)(function*(){return(yield ge.purpleRef.appBrowser.getDisplayConfig()).titleBarEnabled})()}overrideBookmarkApis(ge){var Me=this;this.purpleRef.bookmark.createBookmark=function(){var Ve=(0,s.A)(function*(rt){const at=(0,g.A)((0,g.A)({},rt),{},{id:(0,ce.l)(),contentType:d.CatalogContentType.ISSUE,createdAt:Date.now(),contentId:rt.issueId,issueId:rt.issueId,issueType:void 0,sharingEnabled:rt.sharingEnabled,customData:(0,g.A)({},rt.customData)}),ct=(yield Me.purpleRef.bookmark.getBookmarks()).bookmarks;return ct.push(at),yield Me.setState("bookmarks-".concat(ge.appId),JSON.stringify(ct)),{bookmark:at}});return function(rt){return Ve.apply(this,arguments)}}(),this.purpleRef.bookmark.getBookmarks=(0,s.A)(function*(){return{bookmarks:JSON.parse(yield Me.getState("bookmarks-".concat(ge.appId)))||[]}}),this.purpleRef.bookmark.deleteBookmark=function(){var Ve=(0,s.A)(function*({id:rt}){const at=(yield Me.purpleRef.bookmark.getBookmarks()).bookmarks.filter(ct=>ct.id!==rt);yield Me.setState("bookmarks-".concat(ge.appId),JSON.stringify(at))});return function(rt){return Ve.apply(this,arguments)}}()}getBookmarks(){var ge=this;return(0,s.A)(function*(){return(0,z._)(ge.bookmarks$)})()}updateBookmarks(){var ge=this;return(0,s.A)(function*(){const Me=(yield ge.purpleRef.bookmark.getBookmarks()).bookmarks;return ge.bookmarksSubject.next(Me),Me})()}createBookmark(ge){var Me=this;return(0,s.A)(function*(){const Ve=yield Me.purpleRef.bookmark.createBookmark(ge);return yield Me.updateBookmarks(),Ve})()}deleteBookmark(ge){var Me=this;return(0,s.A)(function*(){yield Me.purpleRef.bookmark.deleteBookmark(ge),yield Me.updateBookmarks()})()}deleteBookmarks(ge){var Me=this;return(0,s.A)(function*(){for(const Ve of ge)yield Me.purpleRef.bookmark.deleteBookmark({id:Ve});yield Me.updateBookmarks()})()}overrideCatalogApis(){this.purpleRef.catalog.getSubscriptions=function(){var ge=(0,s.A)(function*(Me){return Tt});return function(Me){return ge.apply(this,arguments)}}(),this.purpleRef.catalog.getPublicationProducts=function(){var ge=(0,s.A)(function*(Me){return Tt});return function(Me){return ge.apply(this,arguments)}}()}getPublications(ge,Me=!1){var Ve=this;return(0,s.A)(function*(){return Ve.withApiCache("getPublications",Ve.purpleRef.catalog.getPublications,ge,Me,at=>{at.forEach(ct=>{Ve.cacheService.PURPLE_PUBLICATION_CACHE[ct.id]=Ve.cacheService.setOptionalCache(ct,"getPublications",ge)}),Ve.cacheService.updateTransferStateAndStorage([F.B.PURPLE_PUBLICATION_CACHE,F.B.PURPLE_CONTENT_CACHE,F.B.PURPLE_OPTIONAL_CACHE])})})()}getIssues(ge,Me=!1,Ve=!1){var rt=this;return(0,s.A)(function*(){const ct=We(ge);return Ve&&(ct.fetchOptions={includeResources:!0}),rt.withApiCache("getContents",rt.purpleRef.catalog.getContents,ct,Me,Yt=>{Yt.forEach(Ft=>rt.cacheService.PURPLE_CONTENT_CACHE[Ft.id]=rt.cacheService.setOptionalCache(Ft)),rt.cacheService.updateTransferStateAndStorage([F.B.PURPLE_CONTENT_CACHE,F.B.PURPLE_OPTIONAL_CACHE])})})()}getLocalIssues(ge,Me=!1,Ve){var rt=this;return(0,s.A)(function*(){var at;const ct=(yield rt.purpleRef.catalog.getLocalIssues()).issues.filter(Ft=>Ve?Ft.state.installState===Ve:Ft.state.installState!==d.ContentInstallState.NOT_INSTALLED);let Yt=[];if(!ct.length)return{issues:Yt};try{if(Me){for(const Ft of ct){let dn={};try{dn=yield rt.getIssueFromCache(Ft.id)}catch(kn){}Yt.push((0,g.A)((0,g.A)((0,g.A)({},ee.G9),Ft),dn))}ge.issueFilter&&(Yt=Yt.filter(Ft=>(0,he.tU)(ge.issueFilter,Ft)))}else{const Ft=(0,g.A)((0,g.A)({},ge),{},{issueFilter:(0,ee.Ty)(ct.map(dn=>dn.id),ge.issueFilter)});Yt=(yield rt.getIssues(Ft,!0)).nodes}}catch(Ft){Yt=(yield Promise.all(ct.map(function(){var kn=(0,s.A)(function*(ln,Jt){let At=ee.G9;try{At=(0,g.A)((0,g.A)({},At),yield rt.getIssue(ln.id).catch(()=>null))}catch(Yn){console.error(Yn)}const Hn=(0,g.A)((0,g.A)({},At),ln);return rt.cacheService.PURPLE_CONTENT_CACHE[ln.id]||(rt.cacheService.PURPLE_CONTENT_CACHE[ln.id]=Hn),Hn});return function(ln,Jt){return kn.apply(this,arguments)}}()))).filter(kn=>(0,he.tU)(ge.issueFilter,kn))}return Yt=Yt.sort((0,ue.Rh)(null!==(at=ge.sort)&&void 0!==at?at:[])),Yt.forEach(Ft=>{const dn=ct.find(kn=>kn.id===Ft.id&&kn.version===Ft.version);dn&&(Ft.state=dn.state)}),{issues:Yt}})()}getCatalogContents(ge,Me=!1){var Ve=this;return(0,s.A)(function*(){return Ve.withApiCache("getContents",Ve.purpleRef.catalog.getContents||Ve.purpleRef.catalog.getIssues,ge,Me,at=>{at.forEach(ct=>{Ve.cacheService.PURPLE_CONTENT_CACHE[ct.id]=Ve.cacheService.setOptionalCache(ct,"getContents",ge)}),Ve.cacheService.updateTransferStateAndStorage([F.B.PURPLE_CONTENT_CACHE,F.B.PURPLE_OPTIONAL_CACHE])})})()}completePost(ge,Me){var Ve=this;return(0,s.A)(function*(){const rt={includeResources:"resources",includeBlocks:"content",includeHtml:"contentHtml",includeBundledContent:"contents",seoMetadata:"seoMetadata"},at=Ve.cacheService.PURPLE_OPTIONAL_CACHE[ge.id];if(Object.entries(rt).some(([Ft,dn])=>Me[Ft]&&!ge[dn]&&!(null!=at&&at[dn]))||(null==at?void 0:at.version)!==(null==ge?void 0:ge.version))return yield Ve.getCatalogContent(ge.id,!0,Me);let Yt=(0,g.A)((0,g.A)({},ge),at.downloadedBy?{downloadedBy:at.downloadedBy}:{});for(let[Ft,dn]of Object.entries(rt))Ft&&(Yt[dn]=at[dn]);return Yt})()}getOptionalData(ge,Me,Ve){var rt=this;return(0,s.A)(function*(){if((0,Q.mF)(ge))return yield rt.completePost(ge,Me);if((0,Q.G4)(ge)){const at=(0,Q.Ig)(ge);return yield rt.completePost(at[Ve],Me)}throw new Error("Invalid content type for getOptionalData: ".concat(ge.contentType))})()}getCollections(ge,Me=!1){var Ve=this;return(0,s.A)(function*(){return Ve.withApiCache("getCollections",Ve.purpleRef.catalog.getCollections,ge,Me,at=>{at.forEach(ct=>Ve.cacheService.PURPLE_COLLECTION_CACHE[ct.id]=Ve.cacheService.setOptionalCache(ct,"getCollections",ge)),Ve.cacheService.updateTransferStateAndStorage([F.B.PURPLE_COLLECTION_CACHE,F.B.PURPLE_OPTIONAL_CACHE])})})()}getCategories(ge,Me=!1){var Ve=this;return(0,s.A)(function*(){return Ve.withApiCache("getCategories",Ve.purpleRef.catalog.getCategories,ge,Me,at=>{at.forEach(ct=>Ve.cacheService.PURPLE_TAXONOMY_CACHE[ct.id]=ct),Ve.cacheService.updateTransferStateAndStorage(F.B.PURPLE_TAXONOMY_CACHE)})})()}getTaxonomies(ge,Me=!1){var Ve=this;return(0,s.A)(function*(){return Ve.withApiCache("getTaxonomies",Ve.purpleRef.catalog.getTaxonomies,ge,Me,at=>{at.forEach(ct=>{Ve.cacheService.PURPLE_TAXONOMY_CACHE[Ve.cacheService.getTaxonomyCacheKey(ct)]=Ve.cacheService.setOptionalCache(ct,"getTaxonomies",ge)}),Ve.cacheService.updateTransferStateAndStorage([F.B.PURPLE_TAXONOMY_CACHE,F.B.PURPLE_OPTIONAL_CACHE])})})()}getMenus(ge,Me=!1){var Ve=this;return(0,s.A)(function*(){return Ve.withApiCache("getMenus",Ve.purpleRef.catalog.getMenus,ge,Me,at=>{at.forEach(ct=>{Ve.cacheService.PURPLE_MENU_CACHE[ct.id]=ct}),Ve.cacheService.updateTransferStateAndStorage(F.B.PURPLE_MENU_CACHE)})})()}getSubscriptions(ge){var Me=this;return(0,s.A)(function*(){return Me.purpleRef.catalog.getSubscriptions(ge)})()}getCatalogAppSettings(ge){var Me=this;return(0,s.A)(function*(){return Me.purpleRef.catalog.getAppSettings(ge)})()}search(ge){var Me=this;return(0,s.A)(function*(){return Me.purpleRef.catalog.search(ge).then(Ve=>(Ve.nodes.forEach(rt=>{const at=(0,Q.tr)(rt);Me.cacheService.PURPLE_CONTENT_CACHE[at.id]=at}),Me.cacheService.updateTransferStateAndStorage(F.B.PURPLE_CONTENT_CACHE),Ve))})()}getIssueStates(ge){var Me=this;return(0,s.A)(function*(){return Me.purpleRef.catalog.getIssueStates(ge)})()}addInvalidationListener(ge){this.isCatalogAPIAvailable()&&this.purpleRef.catalog.addInvalidationListener(ge)}removeInvalidationListener(ge){this.purpleRef.catalog.removeInvalidationListener(ge)}getPublicationProducts(ge){var Me=this;return(0,s.A)(function*(){return Me.purpleRef.catalog.getPublicationProducts(ge).then(Ve=>Ve.nodes)})()}getCatalogMetadata(){var ge=this;return(0,s.A)(function*(){return ge.purpleRef.catalog.getMetadata()})()}getProducts(ge){var Me=this;return(0,s.A)(function*(){return Me.purpleRef.catalog.getProducts({productId:ge})})()}getRedirects(ge){var Me=this;return(0,s.A)(function*(){return Me.withApiCache("getRedirects",Me.purpleRef.catalog.getRedirects,ge,!1,rt=>{rt.forEach(at=>{Me.cacheService.PURPLE_REDIRECT_CACHE[at.id]=at}),Me.cacheService.updateTransferStateAndStorage(F.B.PURPLE_REDIRECT_CACHE)})})()}lookupPathSegments(ge){var Me=this;return(0,s.A)(function*(){return Me.withApiCache("lookupPathSegments",Me.purpleRef.catalog.lookupPathSegments,{pathSegments:ge},!1,rt=>{rt.forEach(at=>{Me.cacheService.PURPLE_PATH_SEGMENT_CACHE[at.identifier]=at}),Me.cacheService.updateTransferStateAndStorage(F.B.PURPLE_PATH_SEGMENT_CACHE)})})()}isCatalogAPIAvailable(){return!!this.purpleRef.catalog}overrideConsentApis(){const ge=this.injector.get(Ze.e);this.purpleRef.consent.getConsent=function(){var Me=(0,s.A)(function*(Ve){return yield ge.init$,ge.getConsent(Ve)});return function(Ve){return Me.apply(this,arguments)}}(),this.purpleRef.consent.grantConsent=function(){var Me=(0,s.A)(function*(Ve){yield ge.init$,ge.grantConsent(Ve)});return function(Ve){return Me.apply(this,arguments)}}(),this.purpleRef.consent.showPrivacyManager=(0,s.A)(function*(){return yield ge.init$,ge.showPrivacyManager()})}overrideContentOpenApi(ge,Me){var Ve=this;this.purpleRef.content.open=function(){var rt=(0,s.A)(function*(at){var ct,Yt;let Ft=!1;const dn={OR:at.issueIds.map(tn=>({id:{value:tn}}))},kn=(yield Ve.getIssues({issueFilter:dn})).nodes||[];if(!kn.length)throw{code:"NO_ISSUES_FOUND"};const ln=new Map;if(at.issueIds.forEach(tn=>{const on=kn.filter(kt=>kt.id===tn);if(on.length>0){const kt=on[0];kt.access!=d.Access.FREE&&!kt.purchaseData.purchased&&(Ft=!0),ln.set(tn,kt)}}),0===ln.size)throw{code:"PAYMENT_REQUIRED"};const Jt=[];ln.forEach((tn,on)=>{Jt.push({id:on,name:tn.name,publication:tn.publication})});const At=Math.max(Jt.findIndex(tn=>{var on;return tn.id===(null===(on=at.initialIssue)||void 0===on?void 0:on.id)}),0);Ve.issuePagerInfo={visibleIndex:At,currentIndex:At,issues:Jt,displayConfig:at.config},Ve.setIssuePagerInfo(Ve.issuePagerInfo);const Hn=Jt[At].id,Yn=null===(ct=at.initialIssue)||void 0===ct?void 0:ct.initialPage,or={};Yn&&(Yn.id?or.actionUrl="purple://kiosk/issue/current/page/".concat(Yn.id,"/open"):Yn.index?or.actionUrl="purple://kiosk/issue/current/page/index/".concat(Yn.index,"/open"):Yn.alias&&(or.actionUrl="purple://kiosk/issue/current/page/alias/".concat(Yn.alias,"/open"))),null!==(Yt=at.config)&&void 0!==Yt&&Yt.titleBar||(or.titleBar="false"),Ft&&(or.customerPreview=Ft);let jt=[ge.brand,"presenter",Hn];ge.useCustomerDomain&&(jt=["presenter",Hn]),Me.navigate(jt,{queryParams:or,queryParamsHandling:"merge"})});return function(at){return rt.apply(this,arguments)}}()}openContent(ge){var Me=this;return(0,s.A)(function*(){return new Promise((Ve,rt)=>{Me.purpleRef.content.open(ge).then(at=>Ve(at),at=>rt(at))})})()}overrideCloseViewJsApi(){this.purpleRef.closeView=()=>{PP.InternalBrowser.stop()}}closeView(){this.purpleRef.closeView()}getEntitlementUserData(){var ge=this;return(0,s.A)(function*(){return ge.purpleRef.entitlement.getUserData()})()}login(ge,Me,Ve){var rt=this;return(0,s.A)(function*(){const at={};if(ge&&(at.username=ge,at.password=Me),rt.purpleEnv.isUniversal){let ct=(null==Ve?void 0:Ve.redirectUrl)||JSON.parse(sessionStorage.getItem(d.LAST_VISITED_PATH)).lastVisitedPath;ct||(ct=rt.injector.get(we.V).getHomeUrl()),at.state={redirectUrl:ct}}return rt.purpleRef.entitlement.login(at)})()}logout(ge){var Me=this;return(0,s.A)(function*(){const Ve={};if(Me.purpleEnv.isUniversal){let rt=null==ge?void 0:ge.redirectUrl;rt||(rt=Me.injector.get(we.V).getHomeUrl()),Ve.state={redirectUrl:rt}}return Me.purpleRef.entitlement.logout(Ve)})()}checkForOauthEntitlement(){var ge=this;return(0,s.A)(function*(){return yield ge.purpleRef.entitlement.checkForOauthEntitlement()})()}loginWithToken(ge){var Me=this;return(0,s.A)(function*(){yield Me.purpleRef.entitlement.verifyAccessToken({accessToken:ge})})()}getMetadata(ge){var Me=this;return(0,s.A)(function*(){return Me.purpleRef.metadata.getMetadata({keys:Object.values(d.METADATA_KEY)})})()}overrideStateApi(){this.purpleRef.state.version={major:2,minor:0}}getState(ge){var Me=this;return(0,s.A)(function*(){return(yield Me.purpleRef.state.getState({key:ge})).value})()}setState(ge,Me){var Ve=this;return(0,s.A)(function*(){yield Ve.purpleRef.state.setState({key:ge,value:Me})})()}purchase(ge){var Me=this;return(0,s.A)(function*(){return Me.purpleRef.store.purchase(ge)})()}subscribe(ge,Me,Ve){var rt=this;return(0,s.A)(function*(){let at;if(Me){const Yt=(yield rt.getSubscriptions({})).nodes.find(Ft=>Ft.purchased);at=Yt&&{oldProductId:Yt.productId,prorationMode:Me}}return rt.purpleRef.store.subscribe({productId:ge,replaceProductParams:at,offerId:Ve})})()}restorePurchases(){var ge=this;return(0,s.A)(function*(){return ge.purpleRef.store.restorePurchases()})()}getPrice(ge){var Me=this;return(0,s.A)(function*(){return Me.purpleRef.store.getPrices({productIds:[ge]}).then(Ve=>Ve.priceInfos[0])})()}addSubscriptionCode(ge){var Me=this;return(0,s.A)(function*(){return Me.purpleRef.store.addSubscriptionCode({code:ge})})()}removeSubscriptionCode(ge){var Me=this;return(0,s.A)(function*(){return Me.purpleRef.store.removeSubscriptionCode({code:ge})})()}getSubscriptionCodes(){var ge=this;return(0,s.A)(function*(){return(yield ge.purpleRef.store.getSubscriptionCodes()).subscriptionCodes})()}getPrices(ge){var Me=this;return(0,s.A)(function*(){return Me.purpleRef.store.getPrices({productIds:ge})})()}overrideTrackingApis(ge){var Me=this;return(0,s.A)(function*(){Me.overrideLegacyTrackingApis(Me.purpleRef,ge),Me.purpleRef.tracking.setUserAttribute=function(){var Ve=(0,s.A)(function*(rt){ge.setUserAttribute(rt)});return function(rt){return Ve.apply(this,arguments)}}(),Me.purpleRef.tracking.debug=function(){var Ve=(0,s.A)(function*(rt){ge.toggleLogging(rt.logging)});return function(rt){return Ve.apply(this,arguments)}}()})()}overrideLegacyTrackingApis(ge,Me){ge.tracking.trackView=function(){var Ve=(0,s.A)(function*(rt,at){"string"==typeof rt?rt={key:rt,optionalParams:at}:at=rt.optionalParams,Me.sendView(rt.key,at)});return function(rt,at){return Ve.apply(this,arguments)}}(),ge.tracking.trackAction=function(){var Ve=(0,s.A)(function*(rt,at){"string"==typeof rt?rt={key:rt,optionalParams:at}:at=rt.optionalParams,Me.sendEvent(rt.key,at)});return function(rt,at){return Ve.apply(this,arguments)}}(),ge.tracking.trackPurchase=function(){var Ve=(0,s.A)(function*(rt,at){"string"==typeof rt?rt={key:rt,optionalParams:at}:at=rt.optionalParams,Me.sendPurchase(rt.key,at)});return function(rt,at){return Ve.apply(this,arguments)}}()}trackAction(ge,Me){var Ve=this;return(0,s.A)(function*(){const rt={key:(0,ee.Dh)(ge),optionalParams:(0,ee.P8)(Me||{})};return Ve.purpleRef.tracking.trackAction(rt)})()}trackView(ge,Me){var Ve=this;return(0,s.A)(function*(){const rt={key:(0,ee.Dh)(ge),optionalParams:(0,ee.P8)(Me||{})};return Ve.purpleRef.tracking.trackView(rt)})()}trackPurchase(ge){var Me=this;return(0,s.A)(function*(){return ge.key=(0,ee.Dh)(ge.key),ge.optionalParams&&(ge.optionalParams=(0,ee.P8)(ge.optionalParams)),Me.purpleRef.tracking.trackPurchase(ge)})()}setUserAttribute(ge){var Me=this;return(0,s.A)(function*(){return ge.key=(0,ee.Dh)(ge.key),Me.purpleRef.tracking.setUserAttribute(ge)})()}initCache(){var ge=this;return(0,s.A)(function*(){const[Me]=yield Promise.all([ge.getState(zt),ge.updateBookmarks(),ge.updateRepeatablePublicationProducts()]);Mt===Me?yield ge.cacheService.restoreCachesFromStorage():(console.debug("Cache version: ".concat(Me,", Experience version: ").concat(Mt,": ignoring cache")),ge.setState(zt,Mt))})()}extractIdsFromApiResponse(ge,Me){var Ve,rt;if(!ge)return[];switch(Me){case"lookupPathSegments":return ge.map(at=>at.identifier)||[];case"getTaxonomies":return(null===(Ve=ge.nodes)||void 0===Ve?void 0:Ve.map(at=>this.cacheService.getTaxonomyCacheKey(at)))||[];default:return(null===(rt=ge.nodes)||void 0===rt?void 0:rt.map(at=>at.id))||[]}}removeDownloadedByIdFromFetchOptions(ge){const Me=(0,g.A)({},null==ge?void 0:ge.fetchOptions),Ve=null==Me?void 0:Me.downloadedById;Ve&&delete Me.downloadedById;const rt=(0,g.A)({},ge);return Object.keys(Me).length>0?rt.fetchOptions=Me:delete rt.fetchOptions,{modifiedParams:rt,downloadedById:Ve}}withApiCache(ge,Me,Ve,rt=!1,at){var ct=this;return(0,s.A)(function*(){let{modifiedParams:Yt,downloadedById:Ft}=ct.removeDownloadedByIdFromFetchOptions(Ve);const dn="".concat(ge,":").concat(JSON.stringify(Yt));let kn;if(ct.implUsedDirectly&&(kn=Zone.current.scheduleMacroTask(dn,()=>{},{},()=>{},()=>{})),!rt&&ct.cacheService.PURPLE_API_CACHE[dn]){kn&&kn.invoke();const Jt=ct.cacheService.getResponseOrFalseFromCache(ge,Yt);return Promise.resolve(Jt?(0,g.A)((0,g.A)({},ct.cacheService.PURPLE_API_CACHE[dn]),{},{nodes:[Jt]}):ct.cacheService.getApiCache(ge,Yt))}return Me(Yt).then(Jt=>{var At;const Hn=Date.now(),Yn=ct.extractIdsFromApiResponse(Jt,ge);return ct.cacheService.PURPLE_API_CACHE[dn]=(0,g.A)((0,g.A)((0,g.A)({},"lookupPathSegments"!==ge&&(0,g.A)({},Jt)),Ft&&{downloadedById:Ft}),{},{timestamp:Hn,nodes:Yn}),null===(At=kn)||void 0===At||At.invoke(),at&&at("lookupPathSegments"!==ge?Jt.nodes:Jt),Jt}).catch(Jt=>{var At;throw null===(At=kn)||void 0===At||At.invoke(),"Error [withApiCache] [".concat(ge,"]: ").concat(Jt)})})()}getPublicationsFromCache(ge){return this.cacheService.getApiCache("getPublications",ge)}getIssuesFromCache(ge){const Me=We(ge);return this.cacheService.getApiCache("getContents",Me)}getCatalogContentsFromCache(ge){return this.cacheService.getApiCache("getContents",ge)}getCollectionsFromCache(ge){return this.cacheService.getApiCache("getCollections",ge)}getCategoriesFromCache(ge){return this.cacheService.getApiCache("getCategories",ge)}getTaxonomiesFromCache(ge){return this.cacheService.getApiCache("getTaxonomies",ge)}getCatalogMenusFromCache(ge){return this.cacheService.getApiCache("getMenus",ge)}getIssue(ge,Me=!1,Ve){var rt=this;return(0,s.A)(function*(){try{const at={first:1};return ge&&(at.issueFilter={id:{value:ge}}),(yield rt.getIssues(at,Me)).nodes[0]}catch(at){if(rt.cacheService.PURPLE_CONTENT_CACHE[ge])return rt.cacheService.PURPLE_OPTIONAL_CACHE[ge]?(0,g.A)((0,g.A)({},rt.cacheService.PURPLE_CONTENT_CACHE[ge]),rt.cacheService.PURPLE_OPTIONAL_CACHE[ge]):rt.cacheService.PURPLE_CONTENT_CACHE[ge];if(Ve){const ct=(0,g.A)((0,g.A)({},ee.G9),Ve);return rt.cacheService.PURPLE_CONTENT_CACHE[ge]=ct,ct}throw at}})()}getIssueFromCache(ge){if(this.cacheService.PURPLE_CONTENT_CACHE[ge])return this.cacheService.PURPLE_CONTENT_CACHE[ge];{const Me=this.getIssuesFromCache({first:1,issueFilter:{id:{value:ge}}});return(0,g.A)((0,g.A)({},Me.then(Ve=>Ve.nodes[0])),{},{timestamp:Me.timestamp})}}getCatalogContent(ge,Me=!1,Ve){var rt=this;return(0,s.A)(function*(){const at={first:1,fetchOptions:Ve,contentFilter:{id:{value:ge}}};try{const ct=(yield rt.getCatalogContents(at,Me)).nodes[0];if(ct)return ct}catch(ct){console.error(ct)}throw new Error("CatalogContent not found")})()}getCollection(ge,Me=!1,Ve){var rt=this;return(0,s.A)(function*(){try{if(rt.cacheService.PURPLE_COLLECTION_CACHE[ge]&&!Me)return rt.cacheService.PURPLE_COLLECTION_CACHE[ge];{const at={first:1};ge&&(at.collectionFilter={id:{value:ge}}),Ve&&(at.elementsParams=Ve);const ct=(yield rt.getCollections(at,Me)).nodes[0];if(!ct)throw new Error("Collection ".concat(ge," not found"));return ct}}catch(at){if(rt.cacheService.PURPLE_COLLECTION_CACHE[ge])return rt.cacheService.PURPLE_COLLECTION_CACHE[ge];throw at}})()}getCollectionFromCache(ge){if(this.cacheService.PURPLE_COLLECTION_CACHE[ge])return this.cacheService.PURPLE_COLLECTION_CACHE[ge];{const Me=this.getCollectionsFromCache({first:1,collectionFilter:{id:{value:ge}}});return(0,g.A)((0,g.A)({},Me.then(Ve=>Ve.nodes[0])),{},{timestamp:Me.timestamp})}}getMenu(ge,Me=!1,Ve){var rt=this;return(0,s.A)(function*(){try{if(rt.cacheService.PURPLE_MENU_CACHE[ge]&&!Me)return rt.cacheService.PURPLE_MENU_CACHE[ge];{const at=(0,g.A)({first:1},Ve);ge&&(at.contentFilter={id:{value:ge}});const ct=(yield rt.getMenus(at,Me)).nodes[0];if(!ct)throw new Error("CatalogMenu not found");return ct}}catch(at){if(rt.cacheService.PURPLE_MENU_CACHE[ge])return rt.cacheService.PURPLE_MENU_CACHE[ge];throw at}})()}getCatalogMenuFromCache(ge){if(this.cacheService.PURPLE_MENU_CACHE[ge])return this.cacheService.PURPLE_MENU_CACHE[ge];{const Me=this.getCatalogMenusFromCache({first:1,issueFilter:{id:{value:ge}}});return(0,g.A)((0,g.A)({},Me.then(Ve=>Ve.nodes[0])),{},{timestamp:Me.timestamp})}}getPublication(ge,Me=!1){var Ve=this;return(0,s.A)(function*(){if(Ve.cacheService.PURPLE_PUBLICATION_CACHE[ge]&&!Me)return Ve.cacheService.PURPLE_PUBLICATION_CACHE[ge];{const rt={first:1};return rt.publicationFilter={id:{value:ge}},(yield Ve.getPublications(rt,Me)).nodes[0]}})()}getPublicationFromCache(ge){if(this.cacheService.PURPLE_PUBLICATION_CACHE[ge])return this.cacheService.PURPLE_PUBLICATION_CACHE[ge];{const Me=this.getPublicationsFromCache({first:1,publicationFilter:{id:{value:ge}}});return(0,g.A)((0,g.A)({},Me.then(Ve=>Ve.nodes[0])),{},{timestamp:Me.timestamp})}}getCategory(ge,Me=!1){var Ve=this;return(0,s.A)(function*(){if(Ve.cacheService.PURPLE_TAXONOMY_CACHE[ge])return Ve.cacheService.PURPLE_TAXONOMY_CACHE[ge];{const rt={first:1};return ge&&(rt.categoryFilter={id:{value:ge}}),(yield Ve.getCategories(rt,Me)).nodes[0]}})()}getTaxonomy(ge,Me,Ve=!1,rt){var at=this;return(0,s.A)(function*(){const ct={id:{value:ge}},Ft={first:1,fetchOptions:rt,taxonomyFilter:Me?{AND:[ct,{type:{value:Me}}]}:ct};return(yield at.getTaxonomies(Ft,Ve)).nodes[0]})()}initServerPlatform(ge,Me,Ve,rt,at,ct,Yt){Yt.loadConfig(),this.initPurpleRef(ct,Me),this.implUsedDirectly=!0,this.overrideJsApisForServer(ge,Me,Ve,rt,at),window.purple=this.purpleRef}initPurpleRef(ge,Me){const Ve=Object.values(Ye.d);this.purpleRef=new k.Fw(Me,(rt,at)=>{this.updateEntitlementStorage(Ve,"entitlementUserData",at,rt),this.updateSubscriptionCodeStorage(at,rt),ge.updateMetadata()})}updateEntitlementStorage(ge,Me,Ve,rt){if(ge.includes(Ve)){const at=JSON.parse(localStorage.getItem(Me))||{};at[Ve]=rt[Ve],localStorage.setItem(Me,JSON.stringify(at))}}updateSubscriptionCodeStorage(ge,Me){"subscriptionCodes"===ge&&localStorage.setItem("subscriptionCodes",JSON.stringify(Me.subscriptionCodes||[]))}overrideJsApisForServer(ge,Me,Ve,rt,at){this.overrideAppPerformActionUrlApi(rt),this.overrideBookmarkApis(Me),this.overrideCatalogApis(),this.overrideConsentApis(),this.overrideContentOpenApi(ge,Ve),this.overrideTrackingApis(at),this.overrideCloseViewJsApi(),this.overrideStateApi()}initAppPlatform(){this.purpleRef=window.purple}initPurpleExperience(ge,Me){this.purpleRef.experience=new Ke(this.injector),this.purpleRef.experience.global=Me.getGlobalData(),this.purpleRef.experience.appWebConfig=ge}subscribeToConfigLoaderService(ge){ge.getConfig().pipe((0,de.$)()).subscribe(Me=>{this._downloadOptions=Me[V.O.DOWNLOAD_OPTIONS]||{},window.isIssueLocked&&(this.isContentLocked=window.isIssueLocked)})}initListeners(){this.addInvalidationListener(()=>this.invalidate());let ge=!0;this.addLifecycleListener(Me=>{ge||window.dispatchEvent(new CustomEvent(K.aU,{detail:Me})),ge=!1}),this.addConnectionStateListener(Me=>{this.connectionStateSubject.next(Me)})}}return(Ee=De).\u0275fac=function(ge){return new(ge||Ee)(f.KVO(f.Agw),f.KVO(Se.Ix),f.KVO(f.zZn),f.KVO(ee.r6),f.KVO(f.pJN),f.KVO(Be._))},Ee.\u0275prov=f.jDH({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),De})();function lt(Ee,De){return Et.apply(this,arguments)}function Et(){return(Et=(0,s.A)(function*(Ee,De){return Ee&&Ee.access===d.Access.PURCHASABLE&&!Ee.purchaseData.purchased||De.isContentLocked(Ee,De)})).apply(this,arguments)}function Ce(Ee,De){const Ge=De.PURPLE_CONTENT_CACHE[Ee];return Ge&&Ge.previewIssue}function ye(Ee,De){return De&&Ee.updateAvailable&&Ee.installState===d.ContentInstallState.COMPLETE}},8075:(se,E,c)=>{"use strict";c.d(E,{CV:()=>S,IN:()=>U,ON:()=>d,UB:()=>R,Yn:()=>s});var g=c(9379);function s(q){return function f(q){return q.length&&q.join("/")||"/"}(q.url)}function d(q="",z=!1){if(z){const ve=q.match(/modal:popup\/([^),^/]*)/),de=ve&&ve[1];if(de)return de}return(q=q.split("?")[0].split("(")[0]).length<2||!q.startsWith("/")?q:q.substring(1)}function S(q,z){var ve;let de={};const V=q.getCurrentNavigation();return null!=V&&null!==(ve=V.extras)&&void 0!==ve&&ve.queryParams&&(de=(0,g.A)({},V.extras.queryParams)),de=(0,g.A)((0,g.A)({},de),z),q.navigate([],{queryParams:de,queryParamsHandling:"merge",replaceUrl:!0})}function R(q,z){const ve=U();return q.navigate(z,{queryParams:ve,queryParamsHandling:"merge",replaceUrl:!0})}function U(q){return null!=q||(q=window.location.search),Object.fromEntries(new URLSearchParams(q))}},2039:(se,E,c)=>{"use strict";c.d(E,{$:()=>f});var g=c(4438),s=c(345);let f=(()=>{var d;class S{constructor(U){this.sanitizer=U}transform(U){return this.sanitizer.bypassSecurityTrustHtml(U)}}return(d=S).\u0275fac=function(U){return new(U||d)(g.rXU(s.up,16))},d.\u0275pipe=g.EJ8({name:"safeHtml",type:d,pure:!0,standalone:!1}),S})()},4871:(se,E,c)=>{"use strict";c.d(E,{E:()=>d});var g=c(177),s=c(2039),f=c(4438);let d=(()=>{var S;class R{}return(S=R).\u0275fac=function(q){return new(q||S)},S.\u0275mod=f.$C({type:S}),S.\u0275inj=f.G2t({providers:[s.$],imports:[g.MD]}),R})()},3377:(se,E,c)=>{"use strict";c.d(E,{p:()=>oe});var g=c(7370),s=c(4404),f=c(4501),d=c(4438),S=c(3331),R=c(9516),U=c(5102),q=c(9668),z=c(496),ve=c(693),de=c(9118),V=c(5204),Q=c(467),ie=c(3785),K=c(4088),ee=c(873),he=c(20);let Ae=(()=>{var _;class O{constructor(B,G,pe){this.kioskConfigService=B,this.dialogService=G,this.contextService=pe,this.inited=!1,this.data=JSON.parse(JSON.stringify(ee.$I))}init(){var B=this;return(0,Q.A)(function*(){return yield Promise.all([c.e("node_modules_clientjs_dist_client_base_min_js").then(c.t.bind(c,9781,23)),c.e("node_modules_mustache_mustache_js").then(c.t.bind(c,386,23))]),B.init$||(B.init$=new Promise(G=>{const pe=B.kioskConfigService.getConfig().subscribe(le=>{if(le.kioskConfig.useFeedbackMail){let W=0;B.kioskConfigService.getResource("email_feedback_config.json",!0).catch(()=>(B.contextService.isPreview()&&B.dialogService.alert((0,ie.sprintf)(le.kioskConfig.messages.dialog_file_invalid_message_web,"email_feedback_config.json")),ee.$I.config)).then(te=>{B.data.config=te,W++,3===W&&(B.inited=!0,G({}))},()=>{W++,3===W&&(B.inited=!0,G({}))}),B.kioskConfigService.getResource("email_feedback_subject.mustache",!1).then(te=>{B.data.subject=te,W++,3===W&&(B.inited=!0,G({}))},()=>{W++,3===W&&(B.inited=!0,G({}))}),B.kioskConfigService.getResource("email_feedback_body.mustache",!1).then(te=>{B.data.body=te,W++,3===W&&(B.inited=!0,G({}))},()=>{W++,3===W&&(B.inited=!0,G({}))})}else G({});setTimeout(()=>pe.unsubscribe())})})),B.init$})()}openMail(){const B=this.kioskConfigService.getConfig().subscribe(G=>{G.kioskConfig.useFeedbackMail&&window.open(this.getUrl(),"_self"),setTimeout(()=>B.unsubscribe())})}getUrl(){let B="mailto:",G=!1;const pe=this.data?this.data.config:void 0;if(pe){const le=pe.recipients;if(le){if(le.to&&le.to.length>-1)for(let W=0;W<le.to.length;W++)W>0&&(B+=","),B+=encodeURIComponent(le.to[W]);if(le.cc&&le.cc.length>-1){B+=G?"&":"?",B+="cc=";for(let W=0;W<le.cc.length;W++)W>0&&(B+=","),B+=encodeURIComponent(le.cc[W]);G=!0}if(le.bcc&&le.bcc.length>-1){B+=G?"&":"?",B+="bcc=";for(let W=0;W<le.bcc.length;W++)W>0&&(B+=","),B+=encodeURIComponent(le.bcc[W]);G=!0}}this.data&&this.data.subject&&(B+=G?"&":"?",B+="subject="+encodeURIComponent(this.renderTemplate(this.data.subject)),G=!0),this.data&&this.data.body&&(B+=G?"&":"?",B+="body="+encodeURIComponent(this.renderTemplate(this.data.body)),G=!0)}return B}renderTemplate(B){return Mustache.render(B,this.getReplacements())}getReplacements(){const B=this.kioskConfigService.configObservable.value,G=B.kioskConfig.messages;return this.client||(this.client=new ClientJS),{appName:B.kioskConfig.appName,appVersionLabel:G.app_version_title_web,appVersion:"-",versionSectionLabel:G.version_title_web,deviceSectionLabel:G.device_title_web,deviceModelLabel:G.device_model_web,deviceModel:this.client.getDevice()||"-",osVersionLabel:G.os_version_web,osVersion:"".concat(this.client.getOS(),"-").concat(this.client.getOSVersion()," | ").concat(this.client.getBrowser(),"-").concat(this.client.getBrowserVersion()),manufacturerLabel:G.manufacturer_web,manufacturer:this.client.getDeviceVendor()||"-",connectionLabel:G.connection_web,connection:location.protocol.slice(0,-1),deviceIdLabel:G.device_id_title_web,deviceId:this.client.getFingerprint(),purpleVersionBlock:"Purple: ".concat(K.c.appVersion,", Engine: ").concat(PP.VERSION),platform:"Web"}}}return(_=O).\u0275fac=function(B){return new(B||_)(d.KVO(de.x),d.KVO(he.o),d.KVO(R.V))},_.\u0275prov=d.jDH({token:_,factory:_.\u0275fac,providedIn:"root"}),O})();var ue=c(6078);let oe=(()=>{var _;class O{constructor(B,G,pe,le,W,te,ae,_e,Le,We,dt){this.router=B,this.route=G,this.contextService=pe,this.purpleService=le,this.browserService=W,this.publicationService=te,this.analyticsService=ae,this.kioskConfigService=_e,this.appMenuService=Le,this.feedbackMailService=We,this.consentService=dt}openUrl(B,G,pe){let le,W;try{le=B.split("://")[1].split("?")[0],W=le.split("/")}catch(ae){return void console.debug("error",B,ae)}let te=0;switch(W[te]){case"kiosk":switch(te++,W[te]){case"issue":{te++;let _e,Le,ae=!1;"alias"===W[te]?(te++,ae=!0):"by_external_id"===W[te]&&(te++,_e=!0),Le=ae?this.publicationService.selectByIssueCriteria(null,W[te]):_e?this.publicationService.selectByIssueCriteria(null,null,W[te]):this.publicationService.selectByIssueCriteria(W[te]),Le.then(We=>{if(te++,!We||"open"!==W[te]&&"page"!==W[te]){if(_e&&!We){const dt=decodeURIComponent((0,g.P3)("fallback_url",B));if(dt){if(pe)return!0;window.open(dt,(0,g.P3)("target",B)||"_blank"),this.appMenuService.setOpen(!1)}}else if(!We){if(pe)return!1;G&&"function"==typeof G&&G("No such issue available"),this.analyticsService.init$.then(()=>this.analyticsService.sendEvent(f.E.Actions.KIOSK_ISSUE_OPEN_FAILED,{ISSUE_ID:this.publicationService.currentPublication.id+"/"+We.id,ISSUE_NAME:""}))}}else{if(pe)return!0;{const dt={actionUrl:B.split("#")[0],jumpToElement:B.split("#")[1]};let Ye=[this.contextService.getBrand(),"presenter",We.issueId];this.contextService.getIsCustomerDomainUsed()&&(Ye=["presenter",We.issueId]),this.router.navigate(Ye,{queryParams:dt,queryParamsHandling:"merge"}),this.browserService.reset(),this.appMenuService.setOpen(!1)}}});break}case"entitlement":if(te++,"login"===W[te])switch(te++,W[te]){case"open":{const ae=this.browserService.getUrl("LOGIN");return pe?ae:(this.browserService.willOpenExternally(ae)?this.browserService.openExternally(ae):this.browserService.showBrowser("LOGIN"),void this.appMenuService.setOpen(!1))}case"perform":{const ae=(0,g.P3)("token",B);return!!pe||(this.purpleService.loginWithToken(ae).then(()=>{const _e=(0,g.P3)("success_url",B),Le=_e&&decodeURIComponent(_e);Le?this.openUrl(Le):window.location.reload()}),void this.appMenuService.setOpen(!1))}case"oauth":if(te++,"start"===W[te]&&this.contextService.getMetadata()[s.METADATA_KEY.ENTITLEMENT_MODE]===s.ENTITLEMENT_MODE.OAUTH){if(pe)return!0;{const ae=(0,g.P3)("success_url",B),_e=ae&&decodeURIComponent(ae);return void this.purpleService.login(void 0,void 0,{redirectUrl:_e})}}}else if("logout"===W[te]&&"perform"===W[te+1]){if(pe)return!0;{const ae=(0,g.P3)("success_url",B),_e=ae&&decodeURIComponent(ae);this.purpleService.logout({redirectUrl:_e}).then(()=>{_e?this.openUrl(_e,G):window.location.reload(),this.appMenuService.setOpen(!1)})}}break;case"subscriptions":if("open"===W[te+1]){const ae=this.browserService.getUrl("SUBSCRIPTION");return pe?ae:(this.browserService.willOpenExternally(ae)?this.browserService.openExternally(ae):this.browserService.showBrowser("SUBSCRIPTION"),void this.appMenuService.setOpen(!1))}}pe||this.browserService.reset();break;case"storefront":case"app":if(te++,"home"===W[te]&&"open"===W[te+1]){if(pe)return!0;{const ae=this.contextService.getIsCustomerDomainUsed()?"/":this.contextService.getBrand();this.router.navigate([ae],{queryParamsHandling:"merge"}),this.browserService.reset(),this.appMenuService.setOpen(!1);break}}if("feedback"===W[te]&&"mail"===W[te+1]&&"open"===W[te+2])return pe?this.kioskConfigService.configObservable.value.kioskConfig.useFeedbackMail:(this.feedbackMailService.init().then(()=>this.feedbackMailService.openMail()),void this.appMenuService.setOpen(!1));if("open"===W[1]&&"external"===W[2]&&"url"===W[3])return!!pe||(this.browserService.openExternally(decodeURIComponent(W[4])),void this.appMenuService.setOpen(!1));if("resource"===W[1]&&"dynamic"===W[2]){if(pe)return!0;{const ae=encodeURIComponent(B.split("dynamic/")[1]);return this.router.navigate([],{relativeTo:this.route,queryParams:{url:B},queryParamsHandling:"merge",replaceUrl:!0}),this.appMenuService.setOpen(!1),void this.browserService.showBrowser(this.kioskConfigService.configObservable.value.kioskConfig.resourceBaseUrl+ae)}}if("menu"===W[1]){if("open"===W[2])return!!pe||void this.appMenuService.setOpen(!0);if("close"===W[2])return!!pe||void this.appMenuService.setOpen(!1);if("toggle"===W[2])return!!pe||void this.appMenuService.setOpen(!this.appMenuService.isOpen())}else if("consent"===W[1]&&"privacy_manager"===W[2]&&"open"===W[3])return!!pe||void this.consentService.showPrivacyManager();break;default:if(pe)return!1;window.postMessage(JSON.stringify({type:"ACTION_URL",key:"IGNORE_WEB_KIOSK",value:B}),"*")}}}return(_=O).\u0275fac=function(B){return new(B||_)(d.KVO(S.Ix),d.KVO(S.nX),d.KVO(R.V),d.KVO(U.Wj),d.KVO(q.I),d.KVO(z.m),d.KVO(ve.c),d.KVO(de.x),d.KVO(V.I),d.KVO(Ae),d.KVO(ue.e))},_.\u0275prov=d.jDH({token:_,factory:_.\u0275fac,providedIn:"root"}),O})()},693:(se,E,c)=>{"use strict";c.d(E,{c:()=>F});var g=c(467),s=c(4438),f=c(873),d=c(3785),S=c(177),R=c(4501);let U=(()=>{class P{static merged(Se,Be){var Tt;return null!==(Tt=this.mergedConfigurations[Be])&&void 0!==Tt?Tt:this.internalMerged(Se,Be)}static internalMerged(Se,Be){var Tt,zt,Mt,He,lt,Et,Ce,ye,Ee,De,Ge,ge;const Me=structuredClone(Se.default),Ve=Se[Be],rt=null!==(Tt=null!==(zt=null==Ve?void 0:Ve.eventsEnabledByDefault)&&void 0!==zt?zt:null==Me?void 0:Me.eventsEnabledByDefault)&&void 0!==Tt&&Tt,at=null!==(Mt=null!==(He=null==Ve?void 0:Ve.viewsEnabledByDefault)&&void 0!==He?He:null==Me?void 0:Me.viewsEnabledByDefault)&&void 0!==Mt&&Mt,ct=null!==(lt=null!==(Et=null==Ve?void 0:Ve.purchasesEnabledByDefault)&&void 0!==Et?Et:null==Me?void 0:Me.purchasesEnabledByDefault)&&void 0!==lt&&lt,Yt=null!==(Ce=null!==(ye=null==Ve?void 0:Ve.attributesEnabledByDefault)&&void 0!==ye?ye:null==Me?void 0:Me.attributesEnabledByDefault)&&void 0!==Ce&&Ce;var Ft=null!==(Ee=null==Me?void 0:Me.events)&&void 0!==Ee?Ee:{};void 0!==(null==Ve?void 0:Ve.events)&&Object.entries(Ve.events).forEach(At=>{Ft[At[0]]=At[1]});var dn=null!==(De=null==Me?void 0:Me.views)&&void 0!==De?De:{};void 0!==(null==Ve?void 0:Ve.views)&&Object.entries(Ve.views).forEach(At=>{dn[At[0]]=At[1]});var kn=null!==(Ge=null==Me?void 0:Me.purchases)&&void 0!==Ge?Ge:{};void 0!==(null==Ve?void 0:Ve.purchases)&&Object.entries(Ve.purchases).forEach(At=>{kn[At[0]]=At[1]});var ln=null!==(ge=null==Me?void 0:Me.attributes)&&void 0!==ge?ge:{};void 0!==(null==Ve?void 0:Ve.attributes)&&Object.entries(Ve.attributes).forEach(At=>{ln[At[0]]=At[1]});const Jt={eventsEnabledByDefault:rt,viewsEnabledByDefault:at,purchasesEnabledByDefault:ct,attributesEnabledByDefault:Yt,events:Ft,views:dn,purchases:kn,attributes:ln};return this.mergedConfigurations[Be]=Jt,Jt}}return P.mergedConfigurations={},P})();var q=c(8340),z=c(7816);class ve extends z.Q{}class de extends q.U{insertAsFirstScript(P){const ce=document.getElementsByTagName("script")[0];ce.parentNode.insertBefore(P,ce)}resolveTemplate(P,ce){let Se=null!=P?P:"";return ce&&Object.entries(ce).forEach(([Be,Tt])=>{Se=this.replaceAll(Se,"{{"+Be+"}}",Tt)}),Se}resolveParameters(P,ce){return P?new Map(Object.entries(P).map(([Be,Tt])=>[Be,this.resolveTemplate(Tt,ce)])):new Map}replaceAll(P,ce,Se){return P.replace(new RegExp(ce,"g"),Se)}}class V extends ve{constructor(P,ce,Se,Be){super("AT-Internet",P),this.resourceVersion=ce,this.resourceBaseUrl=Se,this.preview=Be}createInstance(){return new Q(this)}getTrackingConfigIdentifier(){return"atinternet"}isValidConfiguration(){return!!this.resourceVersion&&!!this.resourceBaseUrl}}class Q extends de{constructor(){super(...arguments),this.message_missing_smarttag_js="AtInternet Tracker is not available. Please upload your smarttag.js in the dynamic resources"}adjustDocument(){return new Promise((P,ce)=>{document.body.appendChild(this.createTrackingEndpointScript(P,ce))})}createTrackingEndpointScript(P,ce){const Se=this.getConfig().resourceVersion,Be=this.getConfig().resourceBaseUrl,Tt=this.getConfig().preview,zt=document.createElement("script");return zt.src="".concat(Be,"smarttag.js?preview=").concat(Tt,"&version=").concat(Se),zt.type="text/javascript",zt.onload=()=>{try{this.tag=new ATInternet.Tracker.Tag({secure:!0}),P()}catch(Mt){console.error(this.message_missing_smarttag_js,Mt),ce()}},zt.onerror=Mt=>{console.error("Error while loading: ".concat(this.getDisplayName())),ce(Mt)},zt}sendEvent(P,ce){this.init$.then(()=>{try{const Se={name:this.resolveTemplate(P.templates.name,ce),chapter1:this.resolveTemplate(P.templates.chapter1,ce),chapter2:this.resolveTemplate(P.templates.chapter2,ce),chapter3:this.resolveTemplate(P.templates.chapter3,ce),level2:this.resolveTemplate(P.templates.level2,ce)||0,type:"action"};console.debug("[".concat(this.getDisplayName(),"] track action:"),Se),this.tag.click.send(Se)}catch(Se){console.error(this.message_missing_smarttag_js,Se)}})}sendView(P,ce){this.init$.then(()=>{try{const Se={name:this.resolveTemplate(P.templates.name,ce),chapter1:this.resolveTemplate(P.templates.chapter1,ce),chapter2:this.resolveTemplate(P.templates.chapter2,ce),chapter3:this.resolveTemplate(P.templates.chapter3,ce),level2:this.resolveTemplate(P.templates.level2,ce)||0};console.debug("[".concat(this.getDisplayName(),"] track view:"),Se),this.tag.page.send(Se)}catch(Se){console.error(this.message_missing_smarttag_js,Se)}})}sendPurchase(P,ce){}setOrRemoveUserAttribute(P,ce,Se){}isActionEventValid(P){var ce,Se,Be,Tt,zt;return(null===(ce=P.templates)||void 0===ce||null===(ce=ce.name)||void 0===ce?void 0:ce.length)>=0&&(null===(Se=P.templates)||void 0===Se||null===(Se=Se.chapter1)||void 0===Se?void 0:Se.length)>=0&&(null===(Be=P.templates)||void 0===Be||null===(Be=Be.chapter2)||void 0===Be?void 0:Be.length)>=0&&(null===(Tt=P.templates)||void 0===Tt||null===(Tt=Tt.chapter3)||void 0===Tt?void 0:Tt.length)>=0&&(null===(zt=P.templates)||void 0===zt||null===(zt=zt.level2)||void 0===zt?void 0:zt.length)>=0}isViewEventValid(P){var ce,Se,Be,Tt,zt;return(null===(ce=P.templates)||void 0===ce||null===(ce=ce.name)||void 0===ce?void 0:ce.length)>=0&&(null===(Se=P.templates)||void 0===Se||null===(Se=Se.chapter1)||void 0===Se?void 0:Se.length)>=0&&(null===(Be=P.templates)||void 0===Be||null===(Be=Be.chapter2)||void 0===Be?void 0:Be.length)>=0&&(null===(Tt=P.templates)||void 0===Tt||null===(Tt=Tt.chapter3)||void 0===Tt?void 0:Tt.length)>=0&&(null===(zt=P.templates)||void 0===zt||null===(zt=zt.level2)||void 0===zt?void 0:zt.length)>=0}isAttributeValid(P){return!1}}class ie extends ve{constructor(P,ce,Se){super("Chartbeat",P),this.titleService=ce,this.ssrService=Se}createInstance(){return new K(this,this.titleService,this.ssrService)}getTrackingConfigIdentifier(){return"chartbeat"}getAccountId(){var P;return null===(P=this.data)||void 0===P||null===(P=P.configuration)||void 0===P?void 0:P.accountId}getSiteId(){var P;return null===(P=this.data)||void 0===P||null===(P=P.configuration)||void 0===P?void 0:P.siteId}isValidConfiguration(){return!!this.getAccountId()&&!!this.getSiteId()}}class K extends de{constructor(P,ce,Se){super(P),this.titleService=ce,this.ssrService=Se}adjustDocument(){const P=this.getConfig().getAccountId(),ce=this.getConfig().getSiteId();return this.handleScriptloading(P,ce)}handleScriptloading(P,ce){var Se=this;return(0,g.A)(function*(){const Be=Se;return new Promise((Tt,zt)=>{var Mt;(Mt=window._sf_async_config=window._sf_async_config||{}).uid=P,Mt.domain=ce,Mt.useCanonical=!0,Mt.useCanonicalDomain=!0,Mt.sections="",Mt.authors="",function He(){var lt=document.getElementsByTagName("script")[0];lt.parentNode.insertBefore(Be.createTrackingEndpointScript(Tt,zt),lt)}()})})()}createTrackingEndpointScript(P,ce){const Se=document.createElement("script");return Se.async=!0,Se.type="text/javascript",Se.src="//static.chartbeat.com/js/chartbeat.js",Se.onload=()=>P(),Se.onerror=Be=>{console.error("Error while loading: ".concat(this.getDisplayName())),ce(Be)},Se}sendEvent(P,ce){}sendView(P,ce){var Se=this;this.init$.then((0,g.A)(function*(){yield Se.ssrService.prebootCompletedPromise;const Be={sections:Se.resolveTemplate(P.templates.sections,ce),authors:Se.resolveTemplate(P.templates.authors,ce),path:document.location.pathname,title:Se.titleService.getTitle()};console.debug("[".concat(Se.getDisplayName(),"] track view:"),Be),window.pSUPERFLY.virtualPage(Be)}))}sendPurchase(P,ce){}setOrRemoveUserAttribute(P,ce,Se){}isActionEventValid(P){return!1}isViewEventValid(P){return!0}isAttributeValid(P){return!1}}class ee extends ve{constructor(P){super("Google Analytics 4",P)}createInstance(){return new he(this)}getTrackingConfigIdentifier(){return"google_analytics"}getMeasurementId(){var P;return null===(P=this.data)||void 0===P||null===(P=P.configuration)||void 0===P?void 0:P.measurementId}isValidConfiguration(){return!!this.getMeasurementId()}}class he extends de{adjustDocument(){return new Promise((P,ce)=>{document.head.appendChild(document.createComment(" Google tag (gtag.js) ")),document.head.appendChild(this.createTrackingEndpointScript(()=>{document.head.appendChild(this.createDataLayerScript()),P()},ce))})}createTrackingEndpointScript(P,ce){const Se=this.getConfig().getMeasurementId(),Be=document.createElement("script");return Be.async=!0,Be.src="https://www.googletagmanager.com/gtag/js?id=".concat(Se),Be.onload=()=>P(),Be.onerror=Tt=>{console.error("Error while loading: ".concat(this.getDisplayName())),ce(Tt)},Be}createDataLayerScript(){const P=document.createElement("script");return P.innerHTML="\n window.dataLayer = window.dataLayer || [];\n function gtag() {dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', '".concat(this.getConfig().getMeasurementId(),"');\n "),P}sendEvent(P,ce){this.init$.then(()=>{const Se=this.resolveTemplate(P.templates.action,ce),Be=this.resolveTemplate(P.templates.category,ce),Tt=this.resolveTemplate(P.templates.label,ce);console.debug("[".concat(this.getDisplayName(),"] track action: ").concat(Se,", category: ").concat(Be,", label: ").concat(Tt)),gtag("event",Se,{event_category:Be,event_label:Tt})})}sendView(P,ce){this.init$.then(()=>{const Se=this.resolveTemplate(P.templates.name,ce);console.debug("[".concat(this.getDisplayName(),"] track view: ").concat(Se)),gtag("event","page_view",{page_title:Se})})}sendPurchase(P,ce){this.init$.then(()=>{const Se={transaction_id:ce.transactionId,value:ce.price,currency:ce.currencyCode,shipping:0,tax:0,items:[{item_id:ce.productId,item_name:ce.productId,price:ce.price,quantity:1}]};console.debug("[".concat(this.getDisplayName(),"] track purchase: ").concat(Se)),gtag("event","purchase",Se)})}setOrRemoveUserAttribute(P,ce,Se){}isActionEventValid(P){var ce,Se,Be;return(null===(ce=P.templates)||void 0===ce||null===(ce=ce.action)||void 0===ce?void 0:ce.length)>=0&&(null===(Se=P.templates)||void 0===Se||null===(Se=Se.category)||void 0===Se?void 0:Se.length)>=0&&(null===(Be=P.templates)||void 0===Be||null===(Be=Be.label)||void 0===Be?void 0:Be.length)>=0}isViewEventValid(P){var ce;return(null===(ce=P.templates)||void 0===ce||null===(ce=ce.name)||void 0===ce?void 0:ce.length)>=0}isAttributeValid(P){return!1}}class Ae extends ve{constructor(P){super("eTracker",P)}createInstance(){return new ue(this)}getTrackingConfigIdentifier(){return"etracker"}getDataSecureCode(){var P;return null===(P=this.data)||void 0===P||null===(P=P.configuration)||void 0===P?void 0:P.dataSecureCode}isValidConfiguration(){return!!this.getDataSecureCode()}}class ue extends de{adjustDocument(){return new Promise((P,ce)=>{document.head.insertBefore(this.createTrackingEndpointScript(P,ce),document.head.firstElementChild)})}createTrackingEndpointScript(P,ce){const Se=document.createElement("script");return Se.id="_etLoader",Se.async=!0,Se.type="text/javascript",Se.charset="UTF-8",Se.src="//code.etracker.com/code/e.js",Se.setAttribute("data-block-cookies","true"),Se.setAttribute("data-secure-code",this.getConfig().getDataSecureCode()),Se.onload=()=>P(),Se.onerror=Be=>{console.error("Error while loading: ".concat(this.getDisplayName())),ce(Be)},Se}sendEvent(P,ce){this.init$.then(()=>{const Se=this.resolveTemplate(P.templates.object,ce),Be=this.resolveTemplate(P.templates.category,ce),Tt=this.resolveTemplate(P.templates.action,ce),zt=this.resolveTemplate(P.templates.type,ce),Mt=new window.et_UserDefinedEvent(Se,Be,Tt,zt);console.debug("[".concat(this.getDisplayName(),"] track action, event data:"),Mt),window._etracker.sendEvent(Mt)})}sendView(P,ce){this.init$.then(()=>{const Se=this.resolveTemplate(P.templates.name,ce),Be=this.resolveTemplate(P.templates.object,ce),Tt=this.resolveTemplate(P.templates.type,ce),zt={et_et:this.getConfig().getDataSecureCode(),et_pagename:Se};console.debug("[".concat(this.getDisplayName(),"] track view, view context:"),zt),window.et_eC_Wrapper(zt);const Mt=new window.et_ViewEvent(Be,Tt);console.debug("[".concat(this.getDisplayName(),"] track view, event data:"),Mt),window._etracker.sendEvent(Mt)})}sendPurchase(P,ce){}setOrRemoveUserAttribute(P,ce,Se){}isActionEventValid(P){var ce,Se,Be,Tt;return(null===(ce=P.templates)||void 0===ce||null===(ce=ce.object)||void 0===ce?void 0:ce.length)>=0&&(null===(Se=P.templates)||void 0===Se||null===(Se=Se.category)||void 0===Se?void 0:Se.length)>=0&&(null===(Be=P.templates)||void 0===Be||null===(Be=Be.action)||void 0===Be?void 0:Be.length)>=0&&(null===(Tt=P.templates)||void 0===Tt||null===(Tt=Tt.type)||void 0===Tt?void 0:Tt.length)>=0}isViewEventValid(P){var ce,Se,Be;return(null===(ce=P.templates)||void 0===ce||null===(ce=ce.name)||void 0===ce?void 0:ce.length)>=0&&(null===(Se=P.templates)||void 0===Se||null===(Se=Se.object)||void 0===Se?void 0:Se.length)>=0&&(null===(Be=P.templates)||void 0===Be||null===(Be=Be.type)||void 0===Be?void 0:Be.length)>=0}isAttributeValid(P){return!1}}class oe extends ve{constructor(P){super("Kilkaya",P)}createInstance(){return new _(this)}getTrackingConfigIdentifier(){return"kilkaya"}getCdnHost(){var P;return null===(P=this.data)||void 0===P||null===(P=P.configuration)||void 0===P?void 0:P.cdnHost}getInstallationId(){var P;return null===(P=this.data)||void 0===P||null===(P=P.configuration)||void 0===P?void 0:P.installationId}isValidConfiguration(){return!!this.getCdnHost()&&!!this.getInstallationId()}}class _ extends de{adjustDocument(){return new Promise((P,ce)=>{document.head.appendChild(this.createK5aMetaScript()),document.head.appendChild(this.createTrackingEndpointScript(P,ce))})}createK5aMetaScript(){const P=document.createElement("script");return P.innerHTML="var k5aMeta={ 'disablePageview':true }",P}createTrackingEndpointScript(P,ce){const Se=this.getConfig().getCdnHost(),Be=this.getConfig().getInstallationId(),Tt=document.createElement("script");return Tt.type="module",Tt.src="https://".concat(Se,"/").concat(Be,".module.js"),Tt.onload=()=>P(),Tt.onerror=zt=>{console.error("Error while loading: ".concat(this.getDisplayName())),ce(zt)},Tt}sendEvent(P,ce){this.init$.then(()=>{const Se={title:this.resolveTemplate(P.templates.title,ce),type:this.resolveTemplate(P.templates.type,ce),section:this.resolveTemplate(P.templates.section,ce),url:ce.URL,toUrl:ce.TARGET_URL};console.debug("[".concat(this.getDisplayName(),"] track action:"),Se),window.kilkaya.click(Se)})}sendView(P,ce){this.init$.then(()=>{const Se={title:this.resolveTemplate(P.templates.title,ce),type:this.resolveTemplate(P.templates.type,ce),section:this.resolveTemplate(P.templates.section,ce),url:ce.TARGET_URL,referer:window.document.referrer};console.debug("[".concat(this.getDisplayName(),"] track view:"),Se),window.kilkaya.pageview(Se)})}sendPurchase(P,ce){}setOrRemoveUserAttribute(P,ce,Se){}isActionEventValid(P){var ce,Se,Be;return(null===(ce=P.templates)||void 0===ce||null===(ce=ce.title)||void 0===ce?void 0:ce.length)>=0&&(null===(Se=P.templates)||void 0===Se||null===(Se=Se.type)||void 0===Se?void 0:Se.length)>=0&&(null===(Be=P.templates)||void 0===Be||null===(Be=Be.section)||void 0===Be?void 0:Be.length)>=0}isViewEventValid(P){var ce,Se,Be;return(null===(ce=P.templates)||void 0===ce||null===(ce=ce.title)||void 0===ce?void 0:ce.length)>=0&&(null===(Se=P.templates)||void 0===Se||null===(Se=Se.type)||void 0===Se?void 0:Se.length)>=0&&(null===(Be=P.templates)||void 0===Be||null===(Be=Be.section)||void 0===Be?void 0:Be.length)>=0}isAttributeValid(P){return!1}}var O=function(Y){return Y.trackingAndCookiesByCmp="trackingAndCookiesByCmp",Y.cookiesByCmp="cookiesByCmp",Y.cookiesDisabled="cookiesDisabled",Y.matomoServer="matomoServer",Y}(O||{});class x extends ve{constructor(P){super("Matomo",P)}createInstance(){return this.getUseTagManager()?new G(this):new pe(this)}getTrackingConfigIdentifier(){return"matomo"}getUseTagManager(){var P,ce;return null!==(P=null===(ce=this.data)||void 0===ce||null===(ce=ce.configuration)||void 0===ce?void 0:ce.useTagManager)&&void 0!==P&&P}getSiteId(){var P;return null===(P=this.data)||void 0===P||null===(P=P.configuration)||void 0===P?void 0:P.siteId}getEndpointUrl(){var P;return null===(P=this.data)||void 0===P||null===(P=P.configuration)||void 0===P?void 0:P.endpointUrl}getScriptSourceUrl(){var P;return null===(P=this.data)||void 0===P||null===(P=P.configuration)||void 0===P?void 0:P.scriptSourceUrl}getContainerSourceUrl(){var P;return null===(P=this.data)||void 0===P||null===(P=P.configuration)||void 0===P?void 0:P.containerSourceUrl}isValidConfiguration(){return this.getUseTagManager()?!!this.getContainerSourceUrl():!!(this.getSiteId()&&this.getEndpointUrl()&&this.getScriptSourceUrl())}canRunWithoutConsent(){return this.isConsentFreeMode(O.matomoServer)}isConsentFreeMode(P){var ce;return(null===(ce=this.data)||void 0===ce||null===(ce=ce.consent)||void 0===ce?void 0:ce.mode)===P}}class B extends de{isActionEventValid(P){var ce,Se;return(null===(ce=P.templates)||void 0===ce||null===(ce=ce.category)||void 0===ce?void 0:ce.length)>=0&&(null===(Se=P.templates)||void 0===Se||null===(Se=Se.action)||void 0===Se?void 0:Se.length)>=0}isViewEventValid(P){return!0}isAttributeValid(P){var ce;return(null===(ce=P.templates)||void 0===ce||null===(ce=ce.id)||void 0===ce?void 0:ce.length)>=0}getDocumentTitle(P){return(null==P?void 0:P.length)>0?P:window.document.title}}class G extends B{adjustDocument(){return new Promise((P,ce)=>{this.setupClient();const Se=this.getConfig().getContainerSourceUrl();this.insertAsFirstScript(this.createContainerScript(Se,P,ce))})}setupClient(){(window._mtm=window._mtm||[]).push({"mtm.startTime":Date.now(),event:"mtm.Start"})}createContainerScript(P,ce,Se){const Be=document.createElement("script");return Be.async=!0,Be.src=P,Be.onload=()=>ce(),Be.onerror=Tt=>{console.error("Error while loading: ".concat(this.getDisplayName()),Tt),Se(Tt)},Be}sendEvent(P,ce){this.init$.then(()=>{const Se={event:"purple.action_event","purple.action_event_category":this.resolveTemplate(P.templates.category,ce),"purple.action_event_action":this.resolveTemplate(P.templates.action,ce),"purple.action_event_name":this.resolveTemplate(P.templates.name,ce),"purple.action_event_value":this.resolveTemplate(P.templates.value,ce)};console.debug("[".concat(this.getDisplayName(),"] track action:"),Se),window._mtm.push(Se)})}sendView(P,ce){this.init$.then(()=>{var Se;const Be={event:"purple.view_event","purple.view_event_title":this.getDocumentTitle(this.resolveTemplate(null===(Se=P.templates)||void 0===Se?void 0:Se.title,ce))};console.debug("[".concat(this.getDisplayName(),"] track view:"),Be),window._mtm.push(Be)})}sendPurchase(P,ce){}setOrRemoveUserAttribute(P,ce,Se){const Be=parseInt(P.templates.id,10);if(isNaN(Be))return void console.debug("[".concat(this.getDisplayName(),"] missing index for attribute!"),P);const Tt="purple.custom_dimension_".concat(Be);let zt={};null!=Se.stringValue?(zt[Tt]=Se.stringValue,console.debug("[".concat(this.getDisplayName(),"] set string attribute for index: ").concat(Be,":"),zt)):null!=Se.booleanValue?(zt[Tt]=String(Se.booleanValue),console.debug("[".concat(this.getDisplayName(),"] set boolean attribute for index: ").concat(Be,":"),zt)):(zt[Tt]="",console.debug("[".concat(this.getDisplayName(),"] remove attribute for index: ").concat(Be,":"),zt)),window._mtm.push(zt)}}class pe extends B{adjustDocument(){return new Promise((P,ce)=>{const Se=this.getConfig().getSiteId(),Be=this.getConfig().getEndpointUrl();this.setupClient(Be,Se);const Tt=this.getConfig().getScriptSourceUrl();this.insertAsFirstScript(this.createTrackingEndpointScript(Tt,P,ce))})}setupClient(P,ce){const Se=window._paq=window._paq||[];Se.push(["enableLinkTracking"]),Se.push(["setTrackerUrl",P.endsWith(".php")?P:"".concat(P,"matomo.php")]),Se.push(["setSiteId",ce]),this.getConfig().isConsentFreeMode(O.matomoServer)&&Se.push(["disableCookies"])}createTrackingEndpointScript(P,ce,Se){const Be=document.createElement("script");return Be.async=!0,Be.src=P.endsWith(".js")?P:"".concat(P,"matomo.js"),Be.onload=()=>ce(),Be.onerror=Tt=>{console.error("Error while loading: ".concat(this.getDisplayName()),Tt),Se(Tt)},Be}sendEvent(P,ce){this.init$.then(()=>{const Se=["trackEvent",this.resolveTemplate(P.templates.category,ce),this.resolveTemplate(P.templates.action,ce),this.resolveTemplate(P.templates.name,ce),this.resolveTemplate(P.templates.value,ce)];console.debug("[".concat(this.getDisplayName(),"] track action:"),Se),window._paq.push(Se)})}sendView(P,ce){this.init$.then(()=>{var Se;const Be=window.location.href,Tt=this.getDocumentTitle(this.resolveTemplate(null===(Se=P.templates)||void 0===Se?void 0:Se.title,ce));console.debug("[".concat(this.getDisplayName(),"] track view:"),Tt),window._paq.push(["setCustomUrl",Be]),window._paq.push(["setDocumentTitle",Tt]),window._paq.push(["trackPageView"])})}sendPurchase(P,ce){}setOrRemoveUserAttribute(P,ce,Se){const Be=parseInt(P.templates.id,10);if(isNaN(Be))console.debug("[".concat(this.getDisplayName(),"] missing index for attribute!"),P);else if(null!=Se.stringValue){const Tt=Se.stringValue;console.debug("[".concat(this.getDisplayName(),"] set string attribute for index: ").concat(Be,", value:"),Tt),window._paq.push(["setCustomDimension",Be,Tt])}else if(null!=Se.booleanValue){const Tt=String(Se.booleanValue);console.debug("[".concat(this.getDisplayName(),"] set boolean attribute for index: ").concat(Be,", value:"),Tt),window._paq.push(["setCustomDimension",Be,Tt])}else console.debug("[".concat(this.getDisplayName(),"] remove attribute for index: ").concat(Be)),window._paq.push(["deleteCustomDimension",Be])}}var le=c(9379);class W extends ve{constructor(P){super("INFOnline",P)}createInstance(){return new te(this)}getTrackingConfigIdentifier(){return"infonline"}getDomainServiceName(){var P;return null===(P=this.data)||void 0===P||null===(P=P.configuration)||void 0===P?void 0:P.domainServiceName}getSite(){var P;return null===(P=this.data)||void 0===P||null===(P=P.configuration)||void 0===P?void 0:P.site}getUsePseudonymousMeasurement(){var P,ce;return null!==(P=null===(ce=this.data)||void 0===ce||null===(ce=ce.configuration)||void 0===ce?void 0:ce.usePseudonymousMeasurement)&&void 0!==P&&P}getCountry(){var P,ce;const Se=null===(P=this.data)||void 0===P||null===(P=P.configuration)||void 0===P?void 0:P.country,Be=Object.values(ae);if(Be.includes(null===(ce=this.data)||void 0===ce||null===(ce=ce.configuration)||void 0===ce?void 0:ce.country))return Se;Se&&console.debug("[".concat(this.displayName,"] misconfigured 'country'. found: ").concat(Se,", expected: ").concat(Be.join(", ")))}getDistributionChannel(){var P,ce;const Se=null===(P=this.data)||void 0===P||null===(P=P.configuration)||void 0===P?void 0:P.distributionChannel,Be=Object.values(_e);if(Be.includes(null===(ce=this.data)||void 0===ce||null===(ce=ce.configuration)||void 0===ce?void 0:ce.distributionChannel))return Se;Se&&console.debug("[".concat(this.displayName,"] misconfigured 'distributionChannel'. found: ").concat(Se,", expected: ").concat(Be.join(", ")))}getDebug(){var P,ce;return null!==(P=null===(ce=this.data)||void 0===ce||null===(ce=ce.configuration)||void 0===ce?void 0:ce.debug)&&void 0!==P&&P}isValidConfiguration(){return!!this.getDomainServiceName()&&!!this.getSite()}}class te extends de{adjustDocument(){return new Promise((P,ce)=>{const Se=this.getConfig().getDomainServiceName();document.head.appendChild(this.createLinkElement("preload","//".concat(Se,"/iomm/latest/manager/base/es6/bundle.js"),"script","IOMmBundle")),document.head.appendChild(this.createLinkElement("preload","//".concat(Se,"/iomm/latest/bootstrap/loader.js"),"script")),document.head.appendChild(this.createTrackingEndpointScript(()=>{document.body.appendChild(this.createTrackingConfigScript()),P()},ce))})}createLinkElement(P,ce,Se,Be){const Tt=document.createElement("link");return Tt.rel=P,Tt.href=ce,Tt.as=Se,Be&&(Tt.id=Be),Tt.crossOrigin="anonymous",Tt}createTrackingEndpointScript(P,ce){const Se=this.getConfig().getDomainServiceName(),Be=document.createElement("script");return Be.type="text/javascript",Be.src="//".concat(Se,"/iomm/latest/bootstrap/loader.js"),Be.setAttribute("data-cmp-ab","2"),Be.crossOrigin="anonymous",Be.onload=()=>{P()},Be.onerror=Tt=>{console.error("Error while loading: ".concat(this.getDisplayName())),ce(Tt)},Be}createTrackingConfigScript(){const P=document.createElement("script");return P.type="text/javascript",P.innerHTML="IOMm('configure', { \n ".concat(this.getTrackingConfigParams().join(", "),"\n })"),P}getTrackingConfigParams(){const P=this.getConfig();let ce=new Array;ce.push("st: '".concat(P.getSite(),"'")),ce.push("dn: '".concat(P.getDomainServiceName(),"'"));const Se=P.getCountry();void 0!==Se&&ce.push("cn: '".concat(Se,"'"));const Be=P.getDistributionChannel();void 0!==Be&&ce.push("dc: '".concat(Be,"'")),P.getUsePseudonymousMeasurement()&&ce.push("mh: 5");const zt=P.getDebug();return zt&&ce.push("dg: ".concat(zt)),ce}sendEvent(P,ce){}sendView(P,ce){this.init$.then(()=>{const Se=this.resolveTemplate(P.templates.code,ce),Be=this.resolveTemplate(P.templates.comment,ce),Tt=this.resolveTemplate(P.templates.pixelType,ce),zt=(0,le.A)((0,le.A)((0,le.A)({},Se&&{cp:Se}),Be&&{co:Be}),Tt&&{pt:Tt});console.debug("[".concat(this.getDisplayName(),"] track view:"),zt),window.IOMm("pageview",zt)})}sendPurchase(P,ce){}setOrRemoveUserAttribute(P,ce,Se){}isActionEventValid(P){return!1}isViewEventValid(P){return!0}isAttributeValid(P){return!1}}var ae=function(Y){return Y.DE="de",Y.AT="at",Y}(ae||{}),_e=function(Y){return Y.WEB="web",Y.HYB="hyb",Y.APP="app",Y.CTV="ctv",Y}(_e||{}),Le=c(345),We=c(4748),dt=c(9516),Ye=c(7879);class we{constructor(P,ce){this.kioskConfig=P,this.experienceConfig=ce.get(Ye.Wp),this.contextService=ce.get(dt.V),this.titleService=ce.get(Le.hE),this.ssrService=ce.get(We.i)}loadEnabledPluginConfigurations(){return[this.getATInternetConfiguration(),this.getChartbeatConfiguration(),this.getETrackerConfiguration(),this.getGA4Configuration(),this.getINFOnlineConfiguration(),this.getKilkayaConfiguration(),this.getMatomoConfiguration()].filter(ce=>null==ce?void 0:ce.isEnabled())}getATInternetConfiguration(){var P;const ce=null===(P=this.experienceConfig.purple)||void 0===P||null===(P=P.analytics)||void 0===P?void 0:P.atinternet;return ce?new V(ce,this.kioskConfig.resourcesVersion,this.kioskConfig.resourceBaseUrl,this.contextService.isPreview()):this.kioskConfig.trackingAtinternetEnabled?new V({configuration:{},consent:{vendorId:this.kioskConfig.cmpVendorIdAtInternet}},this.kioskConfig.resourcesVersion,this.kioskConfig.resourceBaseUrl,this.contextService.isPreview()):null}getChartbeatConfiguration(){var P;const ce=null===(P=this.experienceConfig.purple)||void 0===P||null===(P=P.analytics)||void 0===P?void 0:P.chartbeat;return ce?new ie(ce,this.titleService,this.ssrService):this.kioskConfig.trackingChartbeatEnabled?new ie({configuration:{accountId:this.kioskConfig.trackingChartbeatAccountId,siteId:this.kioskConfig.trackingChartbeatSiteId},consent:{vendorId:this.kioskConfig.cmpVendorIdChartbeat}},this.titleService,this.ssrService):null}getGA4Configuration(){var P;const ce=null===(P=this.experienceConfig.purple)||void 0===P||null===(P=P.analytics)||void 0===P?void 0:P.ga4;return ce?new ee(ce):this.kioskConfig.trackingGoogleAnalytics4Enabled?new ee({configuration:{measurementId:this.kioskConfig.trackingGoogleAnalytics4Id},consent:{vendorId:this.kioskConfig.cmpVendorIdGoogleAnalytics}}):null}getETrackerConfiguration(){var P;const ce=null===(P=this.experienceConfig.purple)||void 0===P||null===(P=P.analytics)||void 0===P?void 0:P.etracker;return ce?new Ae(ce):null}getKilkayaConfiguration(){var P;const ce=null===(P=this.experienceConfig.purple)||void 0===P||null===(P=P.analytics)||void 0===P?void 0:P.kilkaya;return ce?new oe(ce):null}getMatomoConfiguration(){var P;const ce=null===(P=this.experienceConfig.purple)||void 0===P||null===(P=P.analytics)||void 0===P?void 0:P.matomo;return ce?new x(ce):null}getINFOnlineConfiguration(){var P;const ce=null===(P=this.experienceConfig.purple)||void 0===P||null===(P=P.analytics)||void 0===P?void 0:P.infonline;return ce?new W(ce):null}}var ze=c(6078),Ke=c(953),je=c(9118),Ze=c(20);const k=(0,s.zw6)("trackingConfig");let F=(()=>{var Y;class P{constructor(Se,Be,Tt,zt,Mt,He,lt,Et,Ce){this.consentService=Se,this.pluginService=Be,this.kioskConfigService=Tt,this.dialogService=zt,this.transferState=Mt,this.ssrService=He,this.platformId=lt,this.contextService=Et,this.injector=Ce,this.debugKeys={action:"ACTION",view:"VIEW",purchase:"PURCHASE",attribute:"ATTRIBUTE",logging:"tracking.debug.logging"},this.debugLogging=!1,this.init$=new Promise(ye=>this.resolveInitialization=ye),this.activeTrackingPlugins=new Array,this.init()}sendEvent(Se,Be){this.init$.then(()=>{this.log(this.debugKeys.action,Se,Be),this.activeTrackingPlugins.forEach(Tt=>{var zt,Mt;const He=U.merged(this.trackingConfiguration,Tt.getConfig().getTrackingConfigIdentifier()),lt=He.events[Se],Et=null!==(zt=null!==(Mt=null==lt?void 0:lt.enabled)&&void 0!==Mt?Mt:He.eventsEnabledByDefault)&&void 0!==zt&&zt;lt&&Et?Tt.isActionEventValid(lt)?Tt.sendEvent(lt,Be):console.debug("[".concat(Tt.getDisplayName(),"] can not track action: ").concat(Se,". Required templates missing, invalid configuration: "),lt):this.debugLogging&&console.debug("[".concat(Tt.getDisplayName(),"] can not track action: ").concat(Se,". Missing configuration or not enabled!"))})})}sendView(Se,Be){this.init$.then(()=>{this.log(this.debugKeys.view,Se,Be),this.activeTrackingPlugins.forEach(Tt=>{var zt,Mt;const He=U.merged(this.trackingConfiguration,Tt.getConfig().getTrackingConfigIdentifier()),lt=He.views[Se],Et=null!==(zt=null!==(Mt=null==lt?void 0:lt.enabled)&&void 0!==Mt?Mt:He.viewsEnabledByDefault)&&void 0!==zt&&zt;lt&&Et?Tt.isViewEventValid(lt)?Tt.sendView(lt,Be):console.debug("[".concat(Tt.getDisplayName(),"] can not track view: ").concat(Se,". Required templates missing, invalid configuration: "),lt):this.debugLogging&&console.debug("[".concat(Tt.getDisplayName(),"] can not track view: ").concat(Se,". Missing configuration or not enabled!"))})})}sendPurchase(Se,Be){this.init$.then(()=>{this.log(this.debugKeys.purchase,Se,Be),this.activeTrackingPlugins.forEach(Tt=>{var zt,Mt;const He=U.merged(this.trackingConfiguration,Tt.getConfig().getTrackingConfigIdentifier()),lt=He.purchases[Se],Et=null!==(zt=null!==(Mt=null==lt?void 0:lt.enabled)&&void 0!==Mt?Mt:He.purchasesEnabledByDefault)&&void 0!==zt&&zt;lt&&Et&&Tt.sendPurchase(lt,Be)})})}setUserAttribute(Se){this.init$.then(()=>{const{key:Be,stringValue:Tt,booleanValue:zt}=Se;this.log(this.debugKeys.attribute,Be,null!=Tt?{stringValue:Tt}:null!=Se.booleanValue?{booleanValue:zt}:{value:"null"}),this.activeTrackingPlugins.forEach(Mt=>{var He,lt;const Et=U.merged(this.trackingConfiguration,Mt.getConfig().getTrackingConfigIdentifier()),Ce=Et.attributes[Be],ye=null!==(He=null!==(lt=null==Ce?void 0:Ce.enabled)&&void 0!==lt?lt:Et.attributesEnabledByDefault)&&void 0!==He&&He;Ce&&ye?Mt.isAttributeValid(Ce)?Mt.setOrRemoveUserAttribute(Ce,Be,{stringValue:Tt,booleanValue:zt}):console.debug("[".concat(Mt.getDisplayName(),"] can not set or remove attribute: ").concat(Be,". Required templates missing, invalid configuration: "),Ce):this.debugLogging&&console.debug("[".concat(Mt.getDisplayName(),"] can not set or remove attribute: ").concat(Be,". Missing configuration or not enabled!"))})})}init(){var Se=this;return(0,g.A)(function*(){(yield Se.handleInitializationPrechecks())&&Se.initializeTrackingConfiguration()})()}handleInitializationPrechecks(){var Se=this;return(0,g.A)(function*(){return!!(0,S.UE)(Se.platformId)&&(yield Se.pluginService.init$,yield Se.consentService.init$,!0)})()}initializeTrackingConfiguration(){var Se=this;return(0,g.A)(function*(){Se.kioskConfigService.getConfig().subscribe(Be=>{Se.loadTrackingConfig().catch(Tt=>{Se.contextService.isPreview()&&Se.dialogService.alert((0,d.sprintf)(Be.kioskConfig.messages.dialog_file_invalid_message_web,"tracking_config.json")),Se.applyTrackingConfiguration({},Be.kioskConfig),console.error("Error while loading analytics service!",Tt)}).then(function(){var Tt=(0,g.A)(function*(zt){yield Se.applyTrackingConfiguration(zt,Be.kioskConfig),Se.transferState.onSerialize(k,()=>zt)});return function(zt){return Tt.apply(this,arguments)}}(),(0,g.A)(function*(){const Tt=JSON.parse(JSON.stringify(f.fT));yield Se.applyTrackingConfiguration(Tt,Be.kioskConfig)}))})})()}loadTrackingConfig(){var Se=this;return(0,g.A)(function*(){return Se.transferState.hasKey(k)?Promise.resolve(Se.transferState.get(k,{})):Se.kioskConfigService.getResource("tracking_config.json",!0)})()}applyTrackingConfiguration(Se,Be){var Tt=this;return(0,g.A)(function*(){Tt.trackingConfiguration=Se,Tt.addTrackingPlugins(Be),Tt.resolveInitialization(),Tt.sendEvent(R.E.Actions.APP_START,{URL:window.location.href,TARGET_URL:window.location.href}),window.onbeforeunload=()=>{Tt.sendEvent(R.E.Actions.APP_STOP,{URL:window.location.href,TARGET_URL:window.location.href})}})()}addTrackingPlugins(Se){const Tt=new we(Se,this.injector).loadEnabledPluginConfigurations();console.debug("".concat(Tt.length," active optional plugin(s): "),Tt.map(zt=>zt.displayName)),Tt.forEach(zt=>{this.handleOptionalTrackingPlugin(zt)}),this.consentService.updateConsent()}handleOptionalTrackingPlugin(Se){console.debug("Try to add tracking plugin: ".concat(Se.displayName)),(0,z.O)(Se)?this.consentService.canRunPlugin(Se)?(console.debug(" => ".concat(Se.displayName," can be added.")),this.loadAndRegisterPlugin(Se)):console.debug(" => ".concat(Se.displayName," can not be added!")):this.loadAndRegisterPlugin(Se)}loadAndRegisterPlugin(Se){const Be=this.pluginService.loadPlugin(Se);Be&&this.activeTrackingPlugins.push(Be)}log(Se,Be,Tt){this.debugLogging&&console.debug("[TRACK][".concat(Se,"] ").concat(Be),Tt)}toggleLogging(Se){const Tt=this.contextService.isPreview()&&Se;localStorage.setItem(this.debugKeys.logging,String(Tt)),this.debugLogging=Tt}}return(Y=P).\u0275fac=function(Se){return new(Se||Y)(s.KVO(ze.e),s.KVO(Ke.z),s.KVO(je.x),s.KVO(Ze.o),s.KVO(s.pJN),s.KVO(We.i),s.KVO(s.Agw),s.KVO(dt.V),s.KVO(s.zZn))},Y.\u0275prov=s.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"}),P})()},4501:(se,E,c)=>{"use strict";c.d(E,{E:()=>S});var s,f,d,g=function(R){return R.APP_START="APP_START",R.APP_STOP="APP_STOP",R.KIOSK_ISSUE_OPENED="KIOSK_ISSUE_OPENED",R.KIOSK_ISSUE_PREVIEW_OPENED="KIOSK_ISSUE_PREVIEW_OPENED",R.KIOSK_ISSUE_OPEN_FAILED="KIOSK_ISSUE_OPEN_FAILED",R}(g||{});s||(s={}),f||(f={}),d||(d={});const S={Actions:g,Views:s,Purchases:f,Attributes:d}},5820:(se,E,c)=>{"use strict";c.d(E,{X:()=>ie});var g=c(467),s=c(4438),f=c(8179),d=c(4049),S=c(9745),R=c(4945),U=c(6843),q=c(177),z=c(7879),ve=c(5706),de=c(9516),V=c(1652),Q=c(6889);let ie=(()=>{var K;class ee{constructor(Ae,ue,oe,_,O,x){this.contextService=Ae,this.globalService=ue,this.transferState=oe,this.purpleEnv=_,this.platformId=O,this.urlResolver=x}init(Ae){Ae.select((0,R.jZ)(U.O.FEATURE),ue=>{null!=ue&&ue.anchorTags&&(this.anchorFeatureEnabled=ue.anchorTags)})}isAnchorFeatureEnabled(){return this.anchorFeatureEnabled}getAnchorPathForEventAction(Ae,ue){let oe=(0,f.uQ)(Ae,ue,this.contextService.$functions,this.globalService.getGlobalData());if(!oe||!(0,f.Ol)(oe))return null;if(oe.type===S.H.OPEN_URL){let _=oe.url;return 0===_.indexOf("purple://app/resource/dynamic/")||0===_.indexOf("resource://dynamic/")?this.interpolatePath("",ue):_}return oe.type===S.H.NAVIGATE?this.interpolatePath(oe.url||oe.path,ue):null}getAnchorPathForContent(Ae){var ue=this;return(0,g.A)(function*(){return!ue.purpleEnv.isUniversal||!Ae||Ae.ad&&!Ae.contentType||(0,ve.xl)(Ae)?null:yield ue.nextContentPath(Ae)})()}nextContentPath(Ae){var ue=this;return(0,g.A)(function*(){const oe=(0,s.zw6)("url_".concat(Ae.id));if((0,q.Vy)(ue.platformId)){if(ue.transferState.hasKey(oe))return ue.transferState.get(oe,null);{const _=yield ue.urlResolver.getPathForContent(Ae);return ue.transferState.set(oe,_),_}}if(ue.transferState.hasKey(oe)){const _=ue.transferState.get(oe,null);return ue.transferState.remove(oe),_}return ue.urlResolver.getPathForContent(Ae)})()}interpolatePath(Ae,ue){let oe=Ae?(0,d.K)(Ae,ue):"";const _=this.contextService.getIsCustomerDomainUsed()?"":"/".concat(this.contextService.getBrand());return"".concat(_).concat(oe.startsWith("/")?oe:"/"+oe).concat(null!=ue&&ue.preview?(oe.includes("?")?"&":"?")+"preview=true":"")}}return(K=ee).\u0275fac=function(Ae){return new(Ae||K)(s.KVO(de.V),s.KVO(V.d),s.KVO(s.pJN),s.KVO(z.r6),s.KVO(s.Agw),s.KVO(Q.K))},K.\u0275prov=s.jDH({token:K,factory:K.\u0275fac,providedIn:"root"}),ee})()},5204:(se,E,c)=>{"use strict";c.d(E,{I:()=>q});var g=c(177),s=c(4438),f=c(3331),d=c(4412),S=c(5964),R=c(6354),U=c(2853);let q=(()=>{var z;class ve{constructor(V,Q){this.document=V,this.router=Q,this.menuOpenSubject=new d.t(!1),this.$menuOpen=this.menuOpenSubject.asObservable(),this.registeredSideMenuComponents=new Set,this.hasNoCustomSideMenuSignal=(0,s.vPA)(!0),this.router.events.pipe((0,S.p)(ie=>ie instanceof f.wF),(0,R.T)(ie=>!1)).subscribe(this.menuOpenSubject)}isOpen(){return this.menuOpenSubject.value}setOpen(V){this.menuOpenSubject.next(V)}registerCustomSideMenuComponent(V){V.baseConfig.template&&V.baseConfig.template===U.oH.STATIC?console.error("Tried to register static menu component as side menu!"):(this.registeredSideMenuComponents.add(V),this.hasNoCustomSideMenuSignal.set(!1))}unregisterCustomSideMenuComponent(V){this.registeredSideMenuComponents.delete(V),this.hasNoCustomSideMenuSignal.set(0===this.registeredSideMenuComponents.size)}}return(z=ve).\u0275fac=function(V){return new(V||z)(s.KVO(g.qQ),s.KVO(f.Ix))},z.\u0275prov=s.jDH({token:z,factory:z.\u0275fac,providedIn:"root"}),ve})()},312:(se,E,c)=>{"use strict";c.d(E,{u:()=>q});var g=c(9379),s=c(4412),f=c(8582),d=c(4438),S=c(3331),R=c(177),U=c(9516);let q=(()=>{var z;class ve{constructor(V,Q,ie,K){this.router=V,this.route=Q,this.location=ie,this.contextService=K,this.currentRouteBSubject=new s.t(null),this.currentRoute$=this.currentRouteBSubject.asObservable(),this.afterPopState$=new s.t(!1),this.brand="",this.previousStatePath="",this.brand=this.contextService.getIsCustomerDomainUsed()?"":this.contextService.getBrand()}initWidgetRouter(){const V=this.getActiveRouteState();this.sendRouteState(V)}changeUrl(V){if(console.debug("bidirectional changeRoute from widget: ",V),!V.path||this.afterPopState$.value)return;this.brand&&(V.path=this.brand+"".concat(V.path.startsWith("/")?"":"/").concat(V.path));const Q=this.convertObjectToString(V);if(this.previousStatePath!==Q)if(this.previousStatePath=Q,V.forceReload){var ie;this.router.navigate([V.path],{queryParams:V.queryParams?Object.fromEntries(V.queryParams):{},queryParamsHandling:null!==(ie=V.queryParamsHandling)&&void 0!==ie?ie:"merge"})}else{var K;const ee=this.router.createUrlTree([V.path],{queryParams:V.queryParams?Object.fromEntries(V.queryParams):{},queryParamsHandling:null!==(K=V.queryParamsHandling)&&void 0!==K?K:""}).toString();this.location.go(ee,"",{navigationId:(0,f.l)()})}}sendRouteState(V){const Q=(0,g.A)((0,g.A)({},V),{},{path:V.path.startsWith("/")?V.path.substring(1):V.path});this.previousStatePath=this.convertObjectToString(Q),this.brand&&(V.path=V.path.replace(this.brand,""),V.path.indexOf("//")>-1&&(V.path=V.path.replace("//","/"))),console.debug("bidirectional changeRoute from client: ",V),this.currentRouteBSubject.next(V)}getActiveRouteState(){return{path:this.getUrlWithoutParams(),queryParams:new Map(Object.entries(this.route.snapshot.queryParams))}}getUrlWithoutParams(){let V=this.router.parseUrl(this.router.url);return V.queryParams={},V.fragment=null,V.toString()}convertObjectToString(V){const Q=Object.fromEntries(V.queryParams);return JSON.stringify((0,g.A)((0,g.A)({},V),{},{queryParams:Q}))}}return(z=ve).\u0275fac=function(V){return new(V||z)(d.KVO(S.Ix),d.KVO(S.nX),d.KVO(R.aZ),d.KVO(U.V))},z.\u0275prov=d.jDH({token:z,factory:z.\u0275fac,providedIn:"root"}),ve})()},9668:(se,E,c)=>{"use strict";c.d(E,{I:()=>he});var g=c(7027),s=c(177),f=c(3331),d=c(4404),R=c(3178),U=c(3377),q=c(9745),z=c(5250),ve=c(4438),de=c(9118),V=c(496),Q=c(9516),ie=c(693),K=c(5102);const ee=(0,g.A)(/^purple:\/\/(?:storefront|app)\/resource\/dynamic\/(.*)/,{path:1});let he=(()=>{var Ae;class ue{constructor(_,O,x,B,G,pe,le,W,te,ae){this.kioskConfigService=_,this.publicationService=O,this.router=x,this.route=B,this.contextService=G,this.document=pe,this.injector=le,this.analyticsService=W,this.ngZone=te,this.purpleService=ae,this.WEB_KIOSK_TARGET_QUERY_PARAM="purple_web_kiosk_target",this.data={},this.urls={};const _e=_.getConfig().subscribe(Le=>{this.urls={SUBSCRIPTION:Le.kioskConfig.subscriptionUrl,PURCHASE:Le.kioskConfig.purchaseUrl,PREVIEW:Le.kioskConfig.purchasePreviewUrl,LOGIN:Le.kioskConfig.loginUrl,LOGOUT:Le.kioskConfig.logoutUrl},_e.unsubscribe()});x.events.subscribe(Le=>{Le instanceof f.Z&&this.reset()}),setTimeout(()=>this.actionUrlService=le.get(U.p))}init(){}showBrowser(_,O,x){console.log("showbrowser",_,O,x);const B=this.getUrl(_,O);if(this.contextService.setData("issue_id",O?O.issueId:void 0),B){const pe=this.getTarget(B);if(pe)this.dropTargetParam(B),x?x.location.href=B.toString():window.open(B.toString(),pe);else if("PURCHASE"!==_){var G;const le=this.getDisplayConfig(B),W=B.toString().replace(null===(G=this.kioskConfigService.configObservable.value)||void 0===G?void 0:G.kioskConfig.resourceBaseUrl,"").split("?")[0];if(le.displayMode===d.DisplayMode.MODAL)this.ngZone.run(()=>{this.router.navigate([{outlets:{modal:["popup","dynamic/"+W,q.L.SLIDE_IN]}}],{queryParamsHandling:"merge"})});else{const te={};B.searchParams.forEach((ae,_e)=>{const Le=te[_e];Le?Le instanceof Array?Le.push(ae):te[_e]=[Le,ae]:te[_e]=ae}),this.ngZone.run(()=>{let ae=[this.contextService.getBrand(),"dynamic",W];this.contextService.getIsCustomerDomainUsed()&&(ae=["dynamic",W]),this.router.navigate(ae,{queryParams:te,queryParamsHandling:"merge"})})}}}}onMessage(_){const O="object"==typeof _.data?_.data:JSON.parse(_.data);if(O.type&&"IGNORE_WEB_KIOSK"!==O.key)switch(O.type){case"LOAD":case"DOCUMENT_TITLE":case"STATE":case"MEDIA":PP.Util.receiveMessage(_);break;case"ACTION_URL":this.actionUrlService.openUrl(O.value,()=>{});break;case"CSS_URL":var x,B;"purple-global-css"===O.key?PP.Util.postMessage(_.source,null===(x=document.getElementById("globalFontsCSS"))||void 0===x?void 0:x.getAttribute("href"),null,O.callbackId):PP.Util.postMessage(_.source,null===(B=document.getElementById("fontsCSS"))||void 0===B?void 0:B.getAttribute("href"),null,O.callbackId);break;case"CLOSE_VIEW":this.reset();break;case"BROWSER":{const G=this.getDisplayConfig();switch(O.key){case"DISPLAY_MODE":PP.Util.postMessage(_.source,G.displayMode,O.type,O.callbackId),event.stopImmediatePropagation();break;case"CONTROLS":PP.Util.postMessage(_.source,G.controlsEnabled,O.type,O.callbackId),event.stopImmediatePropagation();break;case"TITLE_BAR":PP.Util.postMessage(_.source,G.titleBarEnabled,O.type,O.callbackId),event.stopImmediatePropagation();break;case"STATUS_BAR":PP.Util.postMessage(_.source,G.statusBarEnabled,O.type,O.callbackId),event.stopImmediatePropagation()}break}case"META":{const G=this.kioskConfigService.getConfig().subscribe(pe=>{switch(O.key){case PP.META_APP_ID:PP.Util.postMessage(_.source,pe.kioskConfig.appId,O.type,O.callbackId);break;case PP.META_PREVIEW:PP.Util.postMessage(_.source,this.contextService.isPreview(),O.type,O.callbackId);break;case PP.META_PLATFORM:PP.Util.postMessage(_.source,"web",O.type,O.callbackId);break;case PP.META_ENTITLEMENT_TOKEN:PP.Util.postMessage(_.source,null,O.type,O.callbackId);break;case PP.META_LOCALE:PP.Util.postMessage(_.source,(0,R.JK)(),O.type,O.callbackId);break;case PP.META_MANAGER_BASE_URL:PP.Util.postMessage(_.source,pe.kioskConfig.presenterBaseUrl,O.type,O.callbackId);break;case PP.META_ENTITLEMENT_LOGIN:PP.Util.postMessage(_.source,null,O.type,O.callbackId);break;case PP.META_DEVICE_OS:{const le=new ClientJS;PP.Util.postMessage(_.source,"".concat(le.getOS(),"-").concat(le.getOSVersion()," | ").concat(le.getBrowser(),"-").concat(le.getBrowserVersion()),O.type,O.callbackId);break}default:PP.Util.postMessage(_.source,null,O.type,O.callbackId)}G.unsubscribe()});break}case"STOREFRONT":switch(O.key){case"SUBSCRIPTIONS":case"PUBLICATIONS":case"ISSUES":case"ISSUE_STATES":PP.Util.postMessage(_.source,[],O.type,O.callbackId);break;case"UPDATE":this.publicationService.reset();break;default:PP.Util.postMessage(_.source,null,O.type,O.callbackId)}break;case"TRACKING":switch(O.key){case"ACTION":this.purpleService.trackAction(O.value.key,O.value.params);break;case"VIEW":this.purpleService.trackView(O.value.key,O.value.params);break;case"PURCHASE":this.purpleService.trackPurchase(O.value)}}}reset(){}getDisplayConfig(_){try{return{displayMode:"modal"===_.searchParams.get("display_mode")?d.DisplayMode.MODAL:d.DisplayMode.EMBEDDED,controlsEnabled:"true"===_.searchParams.get("controls"),titleBarEnabled:"false"!==_.searchParams.get("title_bar"),statusBarEnabled:!1}}catch(O){return{displayMode:d.DisplayMode.EMBEDDED,controlsEnabled:!1,titleBarEnabled:!0,statusBarEnabled:!1}}}openExternally(_){window.open(_,"_blank")}getUrl(_,O){if(_){var x,B;let G=this.urls[_]||_;const pe=ee.exec(G),le=null===(x=this.kioskConfigService.configObservable.value)||void 0===x?void 0:x.kioskConfig;null!=pe&&null!==(B=pe.groups)&&void 0!==B&&B.path&&(G=(null==le?void 0:le.resourceBaseUrl)+pe.groups.path,console.log(G));try{const W=new URL(G);if(G.startsWith(null==le?void 0:le.resourceBaseUrl)&&(W.searchParams.set("preview",this.contextService.isPreview().toString()),W.searchParams.set("legacy","false")),this.urls[_]){O&&(W.searchParams.set("issueId",O.issueId),O.product&&O.product.id&&W.searchParams.set("productId",O.product.id));const te=this.publicationService.currentPublication;te&&W.searchParams.set("publicationId",te.id)}return"LOGIN"===_&&W.searchParams.set("title_bar","false"),W}catch(W){return console.warn(W),null}}}getTarget(_){try{return("object"==typeof _?_:new URL(_)).searchParams.get(this.WEB_KIOSK_TARGET_QUERY_PARAM)}catch(O){return null}}willOpenExternally(_){try{const O=new URL(_);return"_blank"===this.getTarget(O)}catch(O){console.warn(O,_)}return!1}dropTargetParam(_){try{_.searchParams.delete(this.WEB_KIOSK_TARGET_QUERY_PARAM)}catch(O){}}getMessageReceiver(_){const O=this.kioskConfigService.configObservable.value;return new z.BK({purple:(null==_?void 0:_.purple)||this.purpleService.purpleRef,getCssUrls:(null==_?void 0:_.getCssUrls)||(()=>{var x,B;return{"purple-global-css":null===(x=document.getElementById("globalFontsCSS"))||void 0===x?void 0:x.getAttribute("href"),"purple-app-css":null===(B=document.getElementById("fontsCSS"))||void 0===B?void 0:B.getAttribute("href"),"purple-content-css":O.kioskConfig.resourceBaseUrl+"content.css?preview="+this.contextService.isPreview()+"&version="+O.kioskConfig.resourcesVersion}}),getResourceUrl:(null==_?void 0:_.getResourceUrl)||(x=>{x=x.replace("resource://dynamic/",O.kioskConfig.resourceBaseUrl);try{const B=new URL(x);return B.searchParams.set("preview",this.contextService.isPreview().toString()),B.toString()}catch(B){console.warn(x,B)}return x}),onSetTitle:(null==_?void 0:_.onSetTitle)||(x=>{Array.prototype.forEach.call(this.document.getElementsByClassName("pp-internal-browser pp-title"),B=>B.html(x)),Array.prototype.forEach.call(this.document.getElementsByClassName("pp-internal-browser pp-reload"),B=>B.attr("disabled",!1))}),onLocationChange:(null==_?void 0:_.onLocationChange)||(()=>{})})}}return(Ae=ue).\u0275fac=function(_){return new(_||Ae)(ve.KVO(de.x),ve.KVO(V.m),ve.KVO(f.Ix),ve.KVO(f.nX),ve.KVO(Q.V),ve.KVO(s.qQ),ve.KVO(ve.zZn),ve.KVO(ie.c),ve.KVO(ve.SKi),ve.KVO(K.Wj))},Ae.\u0275prov=ve.jDH({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),ue})()},244:(se,E,c)=>{"use strict";c.d(E,{I:()=>z});var g=c(467),s=c(4945),f=c(6843),d=c(7598),S=c(4843),R=c(4438),U=c(7010),q=c(5102);let z=(()=>{var ve;class de{constructor(Q,ie){this.store=Q,this.purpleService=ie,this.issues={}}init(){var Q=this;return(0,g.A)(function*(){yield Promise.all([Q.readFromState(),(0,S._)((0,s.jZ)(f.O.ACCESS)(Q.store)).then(ie=>{ie&&(Q.config=ie.cleanUp)})])})()}deleteExpiredIssues(){var Q=this;return(0,g.A)(function*(){if(Q.isEnabled()){const ie=Date.now(),K=[],ee=(yield window.purple.catalog.getLocalIssues()).issues;for(const Ae in Q.issues){const ue=ee.find(oe=>oe.id===Ae);ie-Q.issues[Ae]>1e3*Q.config.interval&&(ue?K.push(Ae):delete Q.issues[Ae])}let he=0;K.length&&(yield Promise.all([...K.map(function(){var Ae=(0,g.A)(function*(ue){try{const oe=yield Q.purpleService.getIssue(ue).catch(()=>null);oe&&(yield(yield Q.purpleService.getDownloadHandler(oe)).delete(),delete Q.issues[ue],he++)}catch(oe){console.warn("error deleting issue "+ue)}});return function(ue){return Ae.apply(this,arguments)}}()),Q.persist()]),he>0&&window.dispatchEvent(new CustomEvent(d.YT,{detail:{}})))}})()}removeIssue(Q){this.isEnabled()&&(delete this.issues[Q],this.persist())}addIssue(Q){this.isEnabled()&&!this.issues[Q]&&(this.issues[Q]=Date.now(),this.persist())}persist(){var Q=this;return(0,g.A)(function*(){return Q.purpleService.setState(de.STATE_KEY,JSON.stringify(Q.issues))})()}readFromState(){var Q=this;return(0,g.A)(function*(){try{Q.issues=JSON.parse(yield Q.purpleService.getState(de.STATE_KEY))}catch(ie){console.error("Failed to parse issues from state:",ie)}Q.issues=Q.issues||{}})()}isEnabled(){return this.config&&this.config.interval>0}}return(ve=de).STATE_KEY="cleanUpIssues",ve.\u0275fac=function(Q){return new(Q||ve)(R.KVO(U.il),R.KVO(q.Wj))},ve.\u0275prov=R.jDH({token:ve,factory:ve.\u0275fac,providedIn:"root"}),de})()},8745:(se,E,c)=>{"use strict";c.d(E,{Bh:()=>B,tZ:()=>he});var g=c(467),s=c(177),f=c(4438),d=c(4412),S=c(5964),R=c(2589),U=function(G){return G.LEFT="LEFT",G.RIGHT="RIGHT",G}(U||{}),q=c(2348),z=c(6843),ve=c(7879),de=c(8890),V=c(7370),Q=c(8582),ie=c(9516),K=c(2838);const ee=(0,f.zw6)("baseUrl"),he=(0,f.zw6)("configLoader"),Ae=(0,f.zw6)("custom.server.js"),ue=(0,f.zw6)("custom.js"),oe=(0,f.zw6)("resourcesJson");var O=function(G){return G[G.Ignore=0]="Ignore",G[G.LoadInline=1]="LoadInline",G[G.LoadOriginal=2]="LoadOriginal",G}(O||{});class x{constructor(pe,le,W){this.cssLoadingType=pe,this.id=le,this.data=W}}let B=(()=>{var G;class pe{constructor(W,te,ae,_e,Le,We,dt){this.document=W,this.platformId=te,this.purpleEnv=ae,this.appData=_e,this.transferState=Le,this.contextService=We,this.resourceService=dt,this.configSubject=new d.t(void 0),this.config$=this.configSubject.asObservable().pipe((0,S.p)(Ye=>!!Ye),(0,de.os)()),this.baseUrl=null}getConfig(){return this.config$}loadConfig(){var W=this;return(0,g.A)(function*(){W.baseUrl=yield W.fromTransferStateOrFetch(ee,(0,g.A)(function*(){return yield W.getBaseURL()})),W.contextService.setBaseUrl(W.baseUrl);const te=yield W.fromTransferStateOrFetch(he,(0,g.A)(function*(){return yield W.loadUrlConfig()}));yield W.loadCssAndJs(),W.configSubject.next(te)})()}loadContentThemeStyle(){var W=this;return(0,g.A)(function*(){const te=yield W.getResourcesJsonFileNames("css");yield W.handleContentThemeCssLoading(te)})()}loadContentThemeScript(){var W=this;return(0,g.A)(function*(){const te=yield W.getResourcesJsonFileNames("js");W.handleContentThemeJavascriptLoading(te)})()}unloadContentTheme(){var W=this;return(0,g.A)(function*(){W.document.querySelectorAll("*[data-theme='true']").forEach(ae=>ae.remove())})()}fromTransferStateOrFetch(W,te,ae=!0){var _e=this;return(0,g.A)(function*(){if(_e.transferState.hasKey(W))return _e.transferState.get(W,null);{let Le=yield te();return ae&&_e.transferState.set(W,Le),Le}})()}loadUrlConfig(){var W=this;return(0,g.A)(function*(){const te=(yield W.load("assets/urls.json",!0))||{},ae=Object.entries(te).map(([Le,We])=>W.load(We,!0).then(dt=>[Le,dt])),_e=Object.fromEntries(yield Promise.all(ae));return _e[z.O.URL]=te,_e[z.O.VIEW]=W.withViewsJsonDefaults(_e[z.O.VIEW]||[]),_e[z.O.APP_BAR]=W.withAppBarJsonDefaults(_e[z.O.APP_BAR]||[]),_e[z.O.MENUS]=W.withMenusJsonDefaults(_e[z.O.MENUS]||{sideMenus:[]}),_e[z.O.AD]=W.mapToAdsJson(_e[z.O.AD]||{adSlots:[]}),_e})()}loadCssAndJs(){var W=this;return(0,g.A)(function*(){yield Promise.all([W.loadCss(),W.loadJs()])})()}loadCss(){var W=this;return(0,g.A)(function*(){if((0,V.Tr)(W.document.location.href,W.platformId)){const te=["fonts.css","custom.css","platform.css","submit.css"].map(_e=>"assets/".concat(_e)),ae=W.getFirstElementByLocalName("noscript");yield W.resolveAndAddCssFiles(te,W.document.body,ae,!1)}})()}loadJs(){var W=this;return(0,g.A)(function*(){yield W.loadCustomServerJs(),yield W.loadCustomJs()})()}loadCustomServerJs(){var W=this;return(0,g.A)(function*(){try{const te=yield W.fromTransferStateOrFetch(Ae,(0,g.A)(function*(){return yield W.load("assets/scripts/custom.server.js",!1)})),ae=new Proxy({},{get:(_e,Le,We)=>("$functions"!==Le&&console.warn("custom.server.js tried to access window.".concat(Le.toString(),", only window.$functions is allowed")),Reflect.get(_e,Le,We)),set:(_e,Le,We,dt)=>("$functions"!==Le&&console.warn("custom.server.js tried to set window.".concat(Le.toString(),", only window.$functions is allowed")),Reflect.set(_e,Le,We,dt))});Function("window",'"use strict";'.concat(te))(ae),ae.$functions&&(window.$functions&&console.warn("Overwriting existing window.$functions definition. either you have $functions also defined in custom.js, or this log appears on the server and a previous brand had already loaded functions."),W.contextService.set$Functions(ae.$functions))}catch(te){console.warn("error in custom.server.js: ",te)}})()}loadCustomJs(){var W=this;return(0,g.A)(function*(){const te=yield W.fromTransferStateOrFetch(ue,(0,g.A)(function*(){return yield W.load("assets/scripts/custom.js",!1)}),!(0,V._o)(W.document.location.href));if((0,s.UE)(W.platformId)){const ae=W.document.createElement("script");ae.type="text/javascript",ae.innerHTML=te,W.document.head.appendChild(ae)}})()}getResourcesJsonFileNames(W){var te=this;return(0,g.A)(function*(){var ae;return(null!==(ae=yield te.fromTransferStateOrFetch(oe,(0,g.A)(function*(){var Le;const We=yield te.load("/content/resources.json",!0);return(null==We||null===(Le=We.map(Ye=>"/content/".concat(Ye)))||void 0===Le?void 0:Le.reverse())||[]})))&&void 0!==ae?ae:[]).filter(Le=>Le.split(".").pop()===W)})()}handleContentThemeCssLoading(W){var te=this;return(0,g.A)(function*(){const ae=te.getChildElementBeforeElementWithTag("STOREFRONT-ROOT");yield te.resolveAndAddCssFiles(W,te.document.body,ae,!0)})()}handleContentThemeJavascriptLoading(W){for(const te of W)this.addJavaScript(this.document.body,te,!0)}resolveAndAddCssFiles(W,te,ae,_e){var Le=this;return(0,g.A)(function*(){if(0==W.length)return;const We=yield Promise.all(W.map(dt=>Le.resolveCss(dt)));Le.addCss(te,ae,We,_e)})()}resolveCss(W){var te=this;return(0,g.A)(function*(){const ae=te.currentCssLoadingType();if(ae==O.LoadInline){const _e=yield te.load(W,!1);if(!_e)return new x(O.Ignore,W,null);const Le="".concat(_e);return Le.startsWith("<!doctype html>")?new x(O.LoadOriginal,W,null):new x(ae,W,Le)}return new x(ae,W,null)})()}currentCssLoadingType(){return(0,V._o)(this.document.location.href)?O.LoadOriginal:this.purpleEnv.inlineCSS&&(0,s.Vy)(this.platformId)?O.LoadInline:O.LoadOriginal}resolveUrl(W){const te=W.startsWith("/"),ae=(0,V.vA)(this.contextService.isPreview(),this.purpleEnv,this.contextService);if(te){const _e=this.baseUrl.split("/");return _e.splice(0,_e.length-2).join("/")+W+ae}return this.baseUrl+W+ae}load(W,te){var ae=this;return(0,g.A)(function*(){const _e=ae.resolveUrl(W),Le=te?ae.resourceService.getObject:ae.resourceService.getString;try{return yield Le.apply(ae.resourceService,[_e])}catch(We){return void console.warn("Failed to load resource: ".concat(_e),We)}})()}addCss(W,te,ae,_e){for(const Le of ae)if(this.document.getElementById(Le.id))console.log("skip adding ".concat(Le.id,", already present"));else switch(Le.cssLoadingType){case O.LoadInline:this.addStyleSheet(W,this.createStyleSheetInline(Le.id,Le.data,_e),te);break;case O.LoadOriginal:this.addStyleSheet(W,this.createStyleSheetAsLink(Le.id,_e),te)}}getFirstElementByLocalName(W){let te=this.document.body.firstElementChild;for(;te.localName===W;)te=te.nextElementSibling;return te}getChildElementBeforeElementWithTag(W){let te=this.document.body.firstElementChild;for(;te.tagName!==W;)te=te.nextElementSibling;return te}addStyleSheet(W,te,ae){ae?W.insertBefore(te,ae):W.appendChild(te)}createStyleSheetInline(W,te,ae){let _e=this.document.createElement("style");return _e.id=W,_e.textContent=te,ae&&_e.setAttribute("data-theme","true"),_e.textContent=te,_e}createStyleSheetAsLink(W,te){let ae=this.document.createElement("link");return ae.rel="stylesheet",ae.href=this.resolveUrl(W),ae.id=W,te&&ae.setAttribute("data-theme","true"),ae}addJavaScript(W,te,ae){if(this.document.getElementById(te))return void console.log("skip adding ".concat(te,", already present"));const _e=this.document.createElement("script");_e.type="text/javascript",_e.src=this.resolveUrl(te),_e.id=te,_e.defer=!0,ae&&_e.setAttribute("data-theme","true"),W.appendChild(_e)}getBaseURL(){var W=this;return(0,g.A)(function*(){return W.baseUrl||(W.baseUrl=yield W.calculateBaseURL()),W.baseUrl})()}calculateBaseURL(){var W=this;return(0,g.A)(function*(){const te=new URL(W.document.location.href);try{return new URL(te.searchParams.get("configURL")).toString()}catch(ae){if(W.purpleEnv.isApp){const dt=W.document.location.href,Ye=dt.indexOf("?"),we=dt.indexOf("#");let ze;Ye>=0&&(ze=Ye),we>=0&&(ze=Math.min(we,null!=ze?ze:Number.MAX_VALUE));const Ke=ze?dt.substring(0,ze):dt;return Ke.substring(0,Ke.lastIndexOf("/"))+"/"}const _e=W.appData.host||W.document.location.host,Le=W.appData.appWebConfig.id;return Le?((yield W.contextService.getIsCustomDomainUsed())?"https://"+_e:W.purpleEnv.KIOSK_BASE_URL)+"/delivery/web/dynamicResources/"+Le+"/storefront/":te.origin+"/"}})()}withViewsJsonDefaults(W){W.unshift({content:[{type:"presenter"}],name:"presenter",path:"presenter/:issueId",appBar:"back",navigation:"default"}),W.find(ae=>"dynamic"===ae.name)||W.unshift({content:[{type:"iframe"}],name:"dynamic",path:"dynamic/:path",appBar:"back"});for(const ae of W)if(ae.content&&Array.isArray(ae.content))for(const _e of ae.content)_e._uuid=(0,Q.l)(),(0,Q.x)(_e);return W}withAppBarJsonDefaults(W){let te=W.find(Ye=>"back"==Ye.id);te||(te={id:"back",logo:!1,scrollBehavior:q.K.NONE},W.push(te)),te.content||(te.content={});let ae=te.content;if("section"!==ae.type){let Ye={type:"section",content:[]};JSON.parse(JSON.stringify(ae)),void 0!==ae.type&&Ye.content.push(JSON.parse(JSON.stringify(ae))),ae=JSON.parse(JSON.stringify(Ye))}ae.content||(ae.content=[]);let _e=ae.content.find(Ye=>"toolbar"==Ye.type),Le=_e||{type:"toolbar"},We=Le.actions;return We||(We=[]),We.find(Ye=>"pdf"===Ye.type||"pdf_dropdown"===Ye.type)||We.push({type:R.f.pdf_dropdown,content:"DOWNLOAD_PDF"}),Le.actions=We,_e||ae.content.push(Le),te.content=ae,(0,Q.x)(W),W}withMenusJsonDefaults(W){return(!W.sideMenus.length||!W.sideMenus.find(te=>"default"===te.id))&&W.sideMenus.push({id:"default",side:U.LEFT,content:[{type:"app-menu-xml"}]}),(0,Q.x)(W),W}mapToAdsJson(W){return Array.isArray(W)?{adSlots:W}:W}}return(G=pe).\u0275fac=function(W){return new(W||G)(f.KVO(s.qQ),f.KVO(f.Agw),f.KVO(ve.r6),f.KVO(ve.fj),f.KVO(f.pJN),f.KVO(ie.V),f.KVO(K.Q))},G.\u0275prov=f.jDH({token:G,factory:G.\u0275fac,providedIn:"root"}),pe})()},6078:(se,E,c)=>{"use strict";c.d(E,{e:()=>je});var g=c(467),s=c(4438),f=c(177),d=c(4404),S=c(9379),R=function(Ze){return Ze.useractioncomplete="useractioncomplete",Ze.tcloaded="tcloaded",Ze.cmpuishown="cmpuishown",Ze}(R||{});class U{constructor(k){this.data=k}hasConsent(k){return this.vendorGrant(k)}getVendorGrant(k){return this.vendorGrant(k)}getPurposeGrants(k){var F;return null===(F=this.data)||void 0===F||null===(F=F.purpose)||void 0===F?void 0:F.consents}vendorGrant(k){var F;return null===(F=this.data)||void 0===F||null===(F=F.vendor)||void 0===F||null===(F=F.consents)||void 0===F?void 0:F[k]}}class q{hasConsent(k){return!1}getVendorGrant(k){return!1}getPurposeGrants(k){return{}}}class z{updateTCData(k){this.tcData=k}updateCustomConsentData(k){this.customConsentData=k}hasConsent(k){var F,Y;return!(!(null===(F=this.tcData)||void 0===F?void 0:F.hasConsent(k))&&!(null===(Y=this.customConsentData)||void 0===Y?void 0:Y.hasConsent(k)))}getVendorGrant(k){var F,Y;return!(!(null===(F=this.tcData)||void 0===F?void 0:F.getVendorGrant(k))&&!(null===(Y=this.customConsentData)||void 0===Y?void 0:Y.getVendorGrant(k)))}getPurposeGrants(k){var F,Y;return(0,S.A)((0,S.A)({},null===(F=this.tcData)||void 0===F?void 0:F.getPurposeGrants(k)),null===(Y=this.customConsentData)||void 0===Y?void 0:Y.getPurposeGrants(k))}}var ve=c(8340);class de extends ve.u{}class V extends ve.U{constructor(){super(...arguments),this.consentInfo=new z,this.cmpLoadedFirstTime=!1}isCMPLoadedFirstTime(){return!this.cmpLoadedFirstTime&&(this.cmpLoadedFirstTime=!0,!0)}hasConsent(k){return!!k&&this.consentInfo.hasConsent(k)}getConsent(k){const F=k.vendorId;return{vendorId:F,vendorGrant:this.consentInfo.getVendorGrant(F),purposeGrants:this.consentInfo.getPurposeGrants(F)}}updateConsent(){}}class Q extends de{constructor(k){super("PXP Default CMP",null),this.hasConsentDefaultValue=k}isEnabled(){return!0}isValidConfiguration(){return!0}createInstance(){return new ie(this)}}class ie extends V{adjustDocument(){return(0,g.A)(function*(){})()}showPrivacyManager(){return(0,g.A)(function*(){return{}})()}grantConsent(k){return(0,g.A)(function*(){})()}hasConsent(k){return this.getConfig().hasConsentDefaultValue}getConsent(k){return{vendorId:k.vendorId,vendorGrant:!0,purposeGrants:{}}}}class K extends q{constructor(k){super(),this.data=k}hasConsent(k){return this.vendorGrant(k)}getVendorGrant(k){return this.vendorGrant(k)}getPurposeGrants(k){var F;return null===(F=this.data)||void 0===F?void 0:F.purposeConsents}vendorGrant(k){var F;return null===(F=this.data)||void 0===F||null===(F=F.vendorConsents)||void 0===F?void 0:F[k]}}class ee extends de{constructor(k){super("ConsentManager CMP",k)}createInstance(){return new he(this)}getCodeId(){var k;return null===(k=this.data)||void 0===k||null===(k=k.configuration)||void 0===k?void 0:k.codeId}getCmpHost(){var k;return null===(k=this.data)||void 0===k||null===(k=k.configuration)||void 0===k?void 0:k.cmpHost}getCmpCdn(){var k;return null===(k=this.data)||void 0===k||null===(k=k.configuration)||void 0===k?void 0:k.cmpCdn}getCmpBlockIgnoreDomains(){var k,F;return null!==(k=null===(F=this.data)||void 0===F||null===(F=F.configuration)||void 0===F?void 0:F.cmpBlockIgnoreDomains)&&void 0!==k?k:[]}isValidConfiguration(){return!!this.getCodeId()&&!!this.getCmpHost()&&!!this.getCmpCdn()}}class he extends V{adjustDocument(){return new Promise((k,F)=>{const Y=document.head.firstChild;this.getConfig().getCmpBlockIgnoreDomains().length>0&&document.head.insertBefore(this.createBlockingScript(),Y),document.head.insertBefore(this.createCmpEndpoint(k,F),Y)})}createBlockingScript(){const k="['"+this.getConfig().getCmpBlockIgnoreDomains().join("','")+"']",F=document.createElement("script");return F.setAttribute("data-cmp-ab","1"),F.innerHTML="\n window.cmp_block_inline = false;\n window.cmp_block_ignoredomains = ".concat(k,";\n "),F}createCmpEndpoint(k,F){const Y=this,P=this.getConfig(),ce=document.createElement("script");return ce.type="text/javascript",ce.src="https://".concat(P.getCmpCdn(),"/delivery/autoblocking/").concat(P.getCodeId(),".js"),ce.setAttribute("data-cmp-ab","1"),ce.setAttribute("data-cmp-host",P.getCmpHost()),ce.setAttribute("data-cmp-cdn",P.getCmpCdn()),ce.setAttribute("data-cmp-codesrc","1"),ce.onload=()=>{window.__cmp("addEventListener",["consent",(0,g.A)(function*(){console.debug("".concat(Y.getDisplayName(),", addEventListener, consent loaded")),yield Y.updateConsentInfo(),Y.isCMPLoadedFirstTime()&&k()}),!1],null)},ce.onerror=()=>{console.error("Error while loading: ".concat(Y.getDisplayName())),Y.isCMPLoadedFirstTime()&&F()},ce}showPrivacyManager(){return(0,g.A)(function*(){return window.__cmp("showScreen")})()}grantConsent(k){return(0,g.A)(function*(){var F;window.__cmp("setVendorConsent",[k.vendorId,1]),(null===(F=k.purposeIds)||void 0===F?void 0:F.length)>0&&k.purposeIds.forEach(Y=>{window.__cmp("setPurposeConsent",[Y,1])})})()}updateConsentInfo(){var k=this;return(0,g.A)(function*(){console.debug("".concat(k.getDisplayName(),", updateConsentInfo"));const F=yield window.__cmp("getCMPData");console.debug("".concat(k.getDisplayName(),", getCMPData, data:"),F),k.consentInfo.updateCustomConsentData(new K(F))})()}}var Ae=c(3057),ue=c.n(Ae),oe=function(Ze){return Ze.gdpr="gdpr",Ze.usnat="usnat",Ze}(oe||{});class _{constructor(k){this.data=k}getType(){var k;return null===(k=this.data)||void 0===k?void 0:k.type}getPrivacyManagerId(){var k;return null===(k=this.data)||void 0===k?void 0:k.privacyManagerId}}class O{constructor(k){this.pluginConfiguration=k,this.unresolvedCampaigns=new Set,this.initResolvedCampaigns()}getActiveVisitorCampaign(){return this.activeVisitorCampaign}assignCampaignToVisitor(k){void 0===this.getActiveVisitorCampaign()&&(this.activeVisitorCampaign=new _(this.pluginConfiguration.getCampaignData(k)),console.debug("".concat(this.pluginConfiguration.displayName,", set active campaign to '").concat(this.activeVisitorCampaign.getType(),"'")))}receivedCampaign(k,F){this.unresolvedCampaigns.has(k)&&this.unresolvedCampaigns.delete(k),this.allCampaignsResolved()&&F()}allCampaignsResolved(){return 0==this.unresolvedCampaigns.size}initResolvedCampaigns(){this.unresolvedCampaigns=this.pluginConfiguration.getCampaignTypes(),console.debug("".concat(this.pluginConfiguration.displayName,", Active campaigns: "),this.unresolvedCampaigns)}}class x extends q{hasConsent(k){return!0}getVendorGrant(k){return!0}getPurposeGrants(k){return{}}}class B extends q{constructor(k){super(),this.data=k}hasConsent(k){return this.vendorGrant(k)}getVendorGrant(k){return this.vendorGrant(k)}getPurposeGrants(k){var F;return null===(F=this.data)||void 0===F||null===(F=F.grants)||void 0===F||null===(F=F[k])||void 0===F?void 0:F.purposeGrants}vendorGrant(k){var F;return null===(F=this.data)||void 0===F||null===(F=F.grants)||void 0===F||null===(F=F[k])||void 0===F?void 0:F.vendorGrant}}class G extends q{constructor(k){super(),this.data=k}hasConsent(k){return this.vendorGrant(k)}getVendorGrant(k){return this.vendorGrant(k)}getPurposeGrants(k){return{}}vendorGrant(k){var F,Y;const P=null===(F=this.data)||void 0===F||null===(F=F.vendors)||void 0===F?void 0:F.find(ce=>ce._id===k);return null!==(Y=null==P?void 0:P.consented)&&void 0!==Y&&Y}}class pe extends de{constructor(k){super("SourcePoint CMP",k)}createInstance(){return new le(this)}getAccountId(){var k;return null===(k=this.data)||void 0===k||null===(k=k.configuration)||void 0===k?void 0:k.accountId}getPropertyId(){var k;return null===(k=this.data)||void 0===k||null===(k=k.configuration)||void 0===k?void 0:k.propertyId}getPropertyName(){var k;return null===(k=this.data)||void 0===k||null===(k=k.configuration)||void 0===k?void 0:k.propertyName}isValidConfiguration(){return!!(this.getAccountId()&&this.getPropertyId()&&this.getPropertyName()&&this.hasValidCampaignConfiguration())}getCampaignTypes(){const k=new Set;var F;return this.hasCampaigns()?null===(F=this.data)||void 0===F||null===(F=F.configuration)||void 0===F||null===(F=F.campaigns)||void 0===F||F.forEach(Y=>{k.add(Y.type)}):k.add(oe.gdpr),k}hasCampaigns(){var k;return(null===(k=this.data)||void 0===k||null===(k=k.configuration)||void 0===k||null===(k=k.campaigns)||void 0===k?void 0:k.length)>0}hasCampaignGDPR(){return this.hasCampaign(oe.gdpr)||!!this.getPrivacyManagerId()}hasCampaignUsNational(){return this.hasCampaign(oe.usnat)}getCampaignData(k){var F;return this.hasCampaigns()?null===(F=this.data)||void 0===F||null===(F=F.configuration)||void 0===F||null===(F=F.campaigns)||void 0===F?void 0:F.find(Y=>Y.type===k):{type:oe.gdpr,privacyManagerId:this.getPrivacyManagerId()}}isKnownCampaignType(k){return Object.values(oe).includes(k)}hasCampaign(k){var F;return void 0!==(null===(F=this.data)||void 0===F||null===(F=F.configuration)||void 0===F||null===(F=F.campaigns)||void 0===F?void 0:F.find(Y=>Y.type===k))}getPrivacyManagerId(){var k;return null===(k=this.data)||void 0===k||null===(k=k.configuration)||void 0===k?void 0:k.privacyManagerId}hasValidCampaignConfiguration(){var k;return this.hasCampaigns()?void 0!==(null===(k=this.data)||void 0===k||null===(k=k.configuration)||void 0===k?void 0:k.campaigns.find(Y=>this.isKnownCampaignType(Y.type)&&void 0!==Y.privacyManagerId)):!!this.getPrivacyManagerId()}}class le extends V{constructor(k){super(k),this.campaignManager=new O(this.getConfig())}adjustDocument(){const k=this;return new Promise((F,Y)=>{const P=k.getConfig();P.hasCampaignGDPR()&&k.createTcfStubScript(),P.hasCampaignUsNational()&&document.head.appendChild(k.createGppStubScript()),document.head.appendChild(k.createClientConfigurationScript()),k.addListener(F,Y),document.head.appendChild(k.createMessagingLibraryScript(()=>{},ce=>{k.isCMPLoadedFirstTime()&&Y(ce)}))})}createTcfStubScript(){ue()()}createGppStubScript(){const k=document.createElement("script");return k.type="text/javascript",k.innerHTML='window.__gpp_addFrame=function(e){if(!window.frames[e])if(document.body){var t=document.createElement("iframe");t.style.cssText="display:none",t.name=e,document.body.appendChild(t)}else window.setTimeout(window.__gpp_addFrame,10,e)},window.__gpp_stub=function(){var e=arguments;if(__gpp.queue=__gpp.queue||[],__gpp.events=__gpp.events||[],!e.length||1==e.length&&"queue"==e[0])return __gpp.queue;if(1==e.length&&"events"==e[0])return __gpp.events;var t=e[0],p=e.length>1?e[1]:null,s=e.length>2?e[2]:null;if("ping"===t)p({gppVersion:"1.1",cmpStatus:"stub",cmpDisplayStatus:"hidden",signalStatus:"not ready",supportedAPIs:["2:tcfeuv2","5:tcfcav1","6:uspv1","7:usnat","8:usca","9:usva","10:usco","11:usut","12:usct"],cmpId:0,sectionList:[],applicableSections:[],gppString:"",parsedSections:{}},!0);else if("addEventListener"===t){"lastId"in __gpp||(__gpp.lastId=0),__gpp.lastId++;var n=__gpp.lastId;__gpp.events.push({id:n,callback:p,parameter:s}),p({eventName:"listenerRegistered",listenerId:n,data:!0,pingData:{gppVersion:"1.1",cmpStatus:"stub",cmpDisplayStatus:"hidden",signalStatus:"not ready",supportedAPIs:["2:tcfeuv2","5:tcfcav1","6:uspv1","7:usnat","8:usca","9:usva","10:usco","11:usut","12:usct"],cmpId:0,sectionList:[],applicableSections:[],gppString:"",parsedSections:{}}},!0)}else if("removeEventListener"===t){for(var a=!1,i=0;i<__gpp.events.length;i++)if(__gpp.events[i].id==s){__gpp.events.splice(i,1),a=!0;break}p({eventName:"listenerRemoved",listenerId:s,data:a,pingData:{gppVersion:"1.1",cmpStatus:"stub",cmpDisplayStatus:"hidden",signalStatus:"not ready",supportedAPIs:["2:tcfeuv2","5:tcfcav1","6:uspv1","7:usnat","8:usca","9:usva","10:usco","11:usut","12:usct"],cmpId:0,sectionList:[],applicableSections:[],gppString:"",parsedSections:{}}},!0)}else"hasSection"===t?p(!1,!0):"getSection"===t||"getField"===t?p(null,!0):__gpp.queue.push([].slice.apply(e))},window.__gpp_msghandler=function(e){var t="string"==typeof e.data;try{var p=t?JSON.parse(e.data):e.data}catch(e){p=null}if("object"==typeof p&&null!==p&&"__gppCall"in p){var s=p.__gppCall;window.__gpp(s.command,(function(p,n){var a={__gppReturn:{returnValue:p,success:n,callId:s.callId}};e.source.postMessage(t?JSON.stringify(a):a,"*")}),"parameter"in s?s.parameter:null,"version"in s?s.version:"1.1")}},"__gpp"in window&&"function"==typeof window.__gpp||(window.__gpp=window.__gpp_stub,window.addEventListener("message",window.__gpp_msghandler,!1),window.__gpp_addFrame("__gppLocator"));',k}createClientConfigurationScript(){const k=document.createElement("script");return k.type="text/javascript",k.innerHTML="\n window._sp_queue = [];\n window._sp_ = {\n ".concat(this.createConfiguration(),"\n };\n "),k}createConfiguration(){const k=this.getConfig();return"\n config: {\n accountId: ".concat(k.getAccountId(),",\n baseEndpoint: 'https://cdn.privacy-mgmt.com',\n propertyId: ").concat(k.getPropertyId(),",\n propertyHref: '").concat(k.getPropertyName(),"',\n ").concat(this.createCampaigns(),",\n events: {}\n }\n ")}createCampaigns(){const k=this.getConfig(),F=new Array;return k.hasCampaignGDPR()&&F.push("gdpr: {}"),k.hasCampaignUsNational()&&F.push("usnat: {}"),F.join(", ")}createMessagingLibraryScript(k,F){const Y=this,P=document.createElement("script");return P.async=!0,P.type="text/javascript",P.src="https://cdn.privacy-mgmt.com/unified/wrapperMessagingWithoutDetection.js",P.onload=()=>k(),P.onerror=ce=>{console.error("Error while loading: ".concat(Y.getDisplayName()),ce),F(ce)},P}addListener(k,F){const Y=this.getConfig();Y.hasCampaignGDPR()&&this.handleTFCEventListener(),Y.hasCampaignUsNational()&&this.handleGPPEventListener(),this.addOnConsentReadyListener(k),this.addOnErrorListener(F)}addOnErrorListener(k){const F=this;window._sp_.config.events.onError=(0,g.A)(function*(){console.debug("".concat(F.getDisplayName(),", [event] onError"),arguments),F.isCMPLoadedFirstTime()&&k()})}addOnConsentReadyListener(k){const F=this;window._sp_.config.events.onConsentReady=function(){var Y=(0,g.A)(function*(P,ce,Se,Be){console.debug("".concat(F.getDisplayName(),", onConsentReady"),arguments),console.debug("".concat(F.getDisplayName(),", Geo location applies to visitor: ").concat(Be.applies)),F.getConfig().isKnownCampaignType(P)||console.warn("".concat(F.getDisplayName(),', Incoming message_type "').concat(P,'" is not configured by any campaign in "experience.config.json". That may result in unexpected behavior and need to be fixed!')),Be.applies&&(F.campaignManager.assignCampaignToVisitor(P),yield F.updateConsentInfo()),F.campaignManager.receivedCampaign(P,()=>{void 0===F.campaignManager.getActiveVisitorCampaign()&&F.consentInfo.updateCustomConsentData(new x),F.isCMPLoadedFirstTime()&&k()})});return function(P,ce,Se,Be){return Y.apply(this,arguments)}}()}handleTFCEventListener(){const k=this;window.__tcfapi("addEventListener",2,function(){var F=(0,g.A)(function*(Y,P){P?(console.debug("".concat(k.getDisplayName(),", [TCF] addEventListener, eventStatus: ").concat(Y.eventStatus)),(Y.eventStatus===R.useractioncomplete||Y.eventStatus===R.tcloaded)&&(yield k.updateConsentInfoTCData(new U(Y)))):console.warn("".concat(k.getDisplayName(),", [TCF] addEventListener failed, no success!"))});return function(Y,P){return F.apply(this,arguments)}}())}handleGPPEventListener(){const k=this;window.__gpp("addEventListener",function(){var F=(0,g.A)(function*(Y,P){P?(console.debug("".concat(k.getDisplayName(),", [GPP] addEventListener"),Y),"signalStatus"===Y.eventName&&"ready"===Y.data&&(yield k.updateConsentInfo())):console.warn("".concat(k.getDisplayName(),", [GPP] addEventListener failed, no success!"))});return function(Y,P){return F.apply(this,arguments)}}())}showPrivacyManager(){const k=this.campaignManager.getActiveVisitorCampaign();if(void 0===k)return void console.debug("".concat(this.getDisplayName(),", 'showPrivacyManager' called without any active campaign!"));const F=k.getPrivacyManagerId();switch(k.getType()){case oe.gdpr:return this.showPrivacyManagerTCF(F);case oe.usnat:return this.showPrivacyManagerUsNational(F);default:return}}showPrivacyManagerTCF(k){return window._sp_.gdpr.loadPrivacyManagerModal(k)}showPrivacyManagerUsNational(k){return window._sp_.usnat.loadPrivacyManagerModal(k)}grantConsent(k){var F=this;return(0,g.A)(function*(){const Y=F.campaignManager.getActiveVisitorCampaign();void 0!==Y?Y.getType()===oe.gdpr?yield F.grantConsentTCF(k):console.debug("".concat(F.getDisplayName(),", Campaign (").concat(Y.getType(),") do not provide an API to grant anything.")):console.debug("".concat(F.getDisplayName(),", 'grantConsent' called without any active campaign!"))})()}grantConsentTCF(k){var F=this;return(0,g.A)(function*(){const Y=F;yield window.__tcfapi("postCustomConsent",2,function(P,ce){console.debug("".concat(Y.getDisplayName(),", postCustomConsent, success:"),ce),console.debug("".concat(Y.getDisplayName(),", postCustomConsent, data:"),P),ce&&Y.consentInfo.updateCustomConsentData(new B(P))},[k.vendorId],k.purposeIds,[])})()}updateConsentInfo(){var k=this;return(0,g.A)(function*(){const F=k.campaignManager.getActiveVisitorCampaign();if(void 0!==F)switch(console.debug("".concat(k.getDisplayName(),", updateConsentInfo")),F.getType()){case oe.gdpr:yield k.updateConsentInfoTCF();break;case oe.usnat:yield k.updateConsentInfoUsNational()}})()}updateConsentInfoTCData(k){var F=this;return(0,g.A)(function*(){console.debug("".concat(F.getDisplayName(),", updateConsentInfo, tcdata:"),k),F.consentInfo.updateTCData(k)})()}updateConsentInfoTCF(){var k=this;return(0,g.A)(function*(){const F=k;yield window.__tcfapi("getCustomVendorConsents",2,function(Y,P){console.debug("".concat(F.getDisplayName(),", getCustomVendorConsents, success:"),P),console.debug("".concat(F.getDisplayName(),", getCustomVendorConsents, data:"),Y),P&&F.consentInfo.updateCustomConsentData(new B(Y))})})()}updateConsentInfoUsNational(){var k=this;return(0,g.A)(function*(){const F=k;yield window._sp_.usnat.getUserConsents((Y,P)=>{console.debug("".concat(F.getDisplayName(),", getUserConsents, success:"),P),console.debug("".concat(F.getDisplayName(),", getUserConsents, data:"),Y),P&&F.consentInfo.updateCustomConsentData(new G(Y))})})()}}class W extends q{constructor(k){super(),this.data=k}hasConsent(k){return this.vendorGrant(k)}getVendorGrant(k){return this.vendorGrant(k)}getPurposeGrants(k){return{}}vendorGrant(k){var F;return null===(F=this.data)||void 0===F||null===(F=F.consents)||void 0===F?void 0:F[k]}}class te extends de{constructor(k){super("Traffective CMP",k)}createInstance(){return new ae(this)}getDataDomain(){var k;return null===(k=this.data)||void 0===k||null===(k=k.configuration)||void 0===k?void 0:k.dataDomain}isValidConfiguration(){return!!this.getDataDomain()}}class ae extends V{adjustDocument(){return new Promise((k,F)=>{document.head.insertBefore(this.createCmpEndpointScript(k,F),document.head.firstChild)})}createCmpEndpointScript(k,F){const Y=this,P=this.getConfig().getDataDomain(),ce=document.createElement("script");return ce.id="open-cmp-stub",ce.type="text/javascript",ce.src="https://cdn.opencmp.net/tcf-v2/cmp-stub-latest.js",ce.setAttribute("data-domain",P),ce.onload=()=>{window.__tcfapi("addEventListener",2,function(){var Se=(0,g.A)(function*(Be,Tt){Tt?(console.debug("".concat(Y.getDisplayName(),", addEventListener, eventStatus: ").concat(Be.eventStatus)),(Be.eventStatus===R.useractioncomplete||Be.eventStatus===R.tcloaded)&&(yield Y.updateConsentInfo(new U(Be),new W(Be.customVendors)),Y.isCMPLoadedFirstTime()&&k())):(console.warn("".concat(Y.getDisplayName(),", addEventListener, script configuration is not valid!")),Y.isCMPLoadedFirstTime()&&F())});return function(Be,Tt){return Se.apply(this,arguments)}}())},ce.onerror=()=>{console.error("Error while loading: ".concat(Y.getDisplayName())),Y.isCMPLoadedFirstTime()&&F()},ce}showPrivacyManager(){return(0,g.A)(function*(){return window.__tcfapi("showUi",2,function(){})})()}grantConsent(k){return(0,g.A)(function*(){})()}updateConsentInfo(k,F){var Y=this;return(0,g.A)(function*(){console.debug("".concat(Y.getDisplayName(),", updateConsentInfo")),Y.consentInfo.updateTCData(k),console.debug("".concat(Y.getDisplayName(),", updateConsentInfo, tcdata:"),k),Y.consentInfo.updateCustomConsentData(F),console.debug("".concat(Y.getDisplayName(),", updateConsentInfo, customConsentData:"),F)})()}updateConsent(){var k;console.debug("".concat(this.getDisplayName(),", processConsent")),null===(k=window)||void 0===k||k.__tcfapi("processConsent",2,()=>console.debug("".concat(this.getDisplayName(),", processConsent done.")))}}class _e extends q{constructor(k){super(),this.data=k}hasConsent(k){return this.vendorGrant(k)}getVendorGrant(k){return this.vendorGrant(k)}getPurposeGrants(k){return{}}vendorGrant(k){var F,Y;const P=this.data.find(ce=>ce.id===k);return null!==(F=null==P||null===(Y=P.consent)||void 0===Y?void 0:Y.status)&&void 0!==F&&F}}class Le extends de{constructor(k){super("Usercentrics CMP",k)}createInstance(){return new We(this)}scriptVersion(){var k,F;return null!==(k=null===(F=this.data)||void 0===F||null===(F=F.configuration)||void 0===F?void 0:F.scriptVersion)&&void 0!==k?k:"3.48.0"}getDataSettingsId(){var k;return null===(k=this.data)||void 0===k||null===(k=k.configuration)||void 0===k?void 0:k.dataSettingsId}isDataTcfEnabled(){var k,F;return null!==(k=null===(F=this.data)||void 0===F||null===(F=F.configuration)||void 0===F?void 0:F.dataTcfEnabled)&&void 0!==k&&k}isCmpDisplaySuppressed(){var k,F;return null!==(k=null===(F=this.data)||void 0===F||null===(F=F.configuration)||void 0===F?void 0:F.suppressCmpDisplay)&&void 0!==k&&k}isValidConfiguration(){return!!this.getDataSettingsId()}}class We extends V{adjustDocument(){return new Promise((k,F)=>{const Y=this.getConfig(),P=document.head.firstElementChild;document.head.insertBefore(this.createLinkElement("preconnect","//app.usercentrics.eu"),P),document.head.insertBefore(this.createLinkElement("preconnect","//api.usercentrics.eu"),P),document.head.insertBefore(this.createLinkElement("preload","//app.usercentrics.eu/browser-ui/".concat(Y.scriptVersion(),"/loader.js"),"script"),P),Y.isCmpDisplaySuppressed()&&document.head.insertBefore(this.createSupressCMPDisplay(),P),document.head.insertBefore(this.createCmpEndpoint(k,F),P)})}createSupressCMPDisplay(){const k=document.createElement("script");return k.type="application/javascript",k.innerHTML="var UC_UI_SUPPRESS_CMP_DISPLAY = true;",k}createLinkElement(k,F,Y){const P=document.createElement("link");return P.rel=k,P.href=F,Y&&(P.as=Y),P}createCmpEndpoint(k,F){const Y=this,P=this.getConfig(),ce=document.createElement("script");return ce.id="usercentrics-cmp",ce.src="https://app.usercentrics.eu/browser-ui/".concat(P.scriptVersion(),"/loader.js"),ce.setAttribute("data-settings-id",P.getDataSettingsId()),P.isDataTcfEnabled()?ce.setAttribute("data-tcf-enabled",""):ce.async=!0,ce.onload=P.isDataTcfEnabled()?()=>{Y.handleCmpEndpointOnLoadTCF(k,F)}:()=>{Y.handleCmpEndpointOnLoadDefault(k)},ce.onerror=Se=>{console.error("Error while loading: ".concat(Y.getDisplayName())),Y.isCMPLoadedFirstTime()&&F(Se)},ce}handleCmpEndpointOnLoadTCF(k,F){const Y=this;window.__tcfapi("addEventListener",2,(P,ce)=>{ce?(console.debug("".concat(Y.getDisplayName(),", addEventListener, eventStatus: ").concat(P.eventStatus)),Y.lastTcdataEventStatus=P.eventStatus,(P.eventStatus===R.useractioncomplete||P.eventStatus===R.tcloaded)&&(Y.updateConsentInfo(new U(P)),Y.isCMPLoadedFirstTime()&&k())):(console.warn("".concat(Y.getDisplayName(),", addEventListener, script configuration is not valid!")),Y.isCMPLoadedFirstTime()&&F())}),window.addEventListener("UC_UI_INITIALIZED",()=>{console.debug("".concat(Y.getDisplayName(),", event, UC_UI_INITIALIZED")),Y.updateConsentInfo(),(Y.lastTcdataEventStatus===R.useractioncomplete||Y.lastTcdataEventStatus===R.tcloaded)&&this.isCMPLoadedFirstTime()&&k()}),window.addEventListener("UC_SDK_EVENT",function(P){console.debug("".concat(Y.getDisplayName(),", event: UC_SDK_EVENT: ").concat(P.detail.action),P.detail),Y.updateConsentInfo()})}handleCmpEndpointOnLoadDefault(k){const F=this;window.addEventListener("UC_UI_INITIALIZED",()=>{console.debug("".concat(F.getDisplayName(),", event, UC_UI_INITIALIZED")),F.updateConsentInfo(),!window.UC_UI.isConsentRequired()&&F.isCMPLoadedFirstTime()&&k()}),window.addEventListener("UC_SDK_EVENT",function(Y){var P;console.debug("".concat(F.getDisplayName(),", event: UC_SDK_EVENT"),Y.detail),"onInitialPageLoad"!==(null===(P=Y.detail)||void 0===P?void 0:P.event)&&(F.updateConsentInfo(),F.isCMPLoadedFirstTime()&&k())})}isCMPLoadedFirstTime(){var k;return(null===(k=window.UC_UI)||void 0===k?void 0:k.isInitialized())&&super.isCMPLoadedFirstTime()}showPrivacyManager(){return(0,g.A)(function*(){return window.UC_UI.showSecondLayer(),{}})()}grantConsent(k){var F=this;return(0,g.A)(function*(){const Y=k.vendorId;yield window.UC_UI.acceptService(Y),console.log("Consent granted for custom vendor: ".concat(Y)),F.updateConsentInfo()})()}updateConsentInfo(k){var F;if(console.debug("".concat(this.getDisplayName(),", updateConsentInfo")),this.getConfig().isDataTcfEnabled()&&k&&(this.consentInfo.updateTCData(k),console.debug("".concat(this.getDisplayName(),", updateConsentInfo, tcdata:"),k)),null!==(F=window.UC_UI)&&void 0!==F&&F.isInitialized()){const P=window.UC_UI.getServicesBaseInfo();this.consentInfo.updateCustomConsentData(new _e(P)),console.debug("".concat(this.getDisplayName(),", updateConsentInfo, customConsentData:"),P)}}}class dt{constructor(k,F){this.kioskConfig=k,this.experienceConfig=F}loadCmpPluginConfiguration(){switch(this.getCmpProvider()){case"sourcepoint":return new pe(this.getSourcepointConfigData());case"consentManager":case"consentmanager":return new ee(this.getConsentmanagerConfigData());case"traffective":return new te(this.getTraffectiveConfigData());case"usercentrics":return new Le(this.getUsercentricsConfigData());default:return new Q(!0)}}getCmpProvider(){var k;return(null===(k=this.experienceConfig.purple)||void 0===k||null===(k=k.consentManagement)||void 0===k?void 0:k.cmpProvider)||this.experienceConfig.cmpProvider||this.kioskConfig.cmpProvider||"none"}getSourcepointConfigData(){var k;return(null===(k=this.experienceConfig)||void 0===k||null===(k=k.purple)||void 0===k||null===(k=k.consentManagement)||void 0===k||null===(k=k.cmps)||void 0===k?void 0:k.sourcepoint)||{configuration:{accountId:parseInt(this.kioskConfig.sourcePointAccountId,10),propertyId:parseInt(this.kioskConfig.sourcePointPropertyId,10),propertyName:this.kioskConfig.sourcePointPropertyName,privacyManagerId:this.kioskConfig.sourcePointPrivacyManagerId}}}getConsentmanagerConfigData(){var k;const F=null===(k=this.experienceConfig.purple)||void 0===k||null===(k=k.consentManagement)||void 0===k||null===(k=k.cmps)||void 0===k?void 0:k.consentmanager;if(F)return F;const Y=this.experienceConfig.consentManager;if(Y)try{return{configuration:{codeId:this.extractCodeId(Y.script.properties.src),cmpHost:Y.script.properties["data-cmp-host"],cmpCdn:Y.script.properties["data-cmp-cdn"],cmpBlockIgnoreDomains:this.extractBlockIgnoreDomains(Y.blockingScript.content)}}}catch(P){console.error("Can not convert legacy configuration for Consentmanager!")}return null}extractCodeId(k){const F=null==k?void 0:k.substring(k.lastIndexOf("/")+1),Y=null==F?void 0:F.split(".");return Y?Y[0]:""}extractBlockIgnoreDomains(k){var F,Y;return null!==(F=null===(Y=k.match(/\[(.*)]/))||void 0===Y?void 0:Y[1].split(",").map(P=>P.trim().replace(/'/g,"").replace(/"/g,"")))&&void 0!==F?F:[]}getTraffectiveConfigData(){var k,F;return(null===(k=this.experienceConfig.purple)||void 0===k||null===(k=k.consentManagement)||void 0===k||null===(k=k.cmps)||void 0===k?void 0:k.traffective)||(null!==(F=this.experienceConfig)&&void 0!==F&&F.traffectiveCmp?{configuration:{dataDomain:null===(P=this.experienceConfig)||void 0===P||null===(P=P.traffectiveCmp)||void 0===P||null===(P=P.script)||void 0===P?void 0:P.properties["data-domain"]}}:null);var P}getUsercentricsConfigData(){var k;return null===(k=this.experienceConfig.purple)||void 0===k||null===(k=k.consentManagement)||void 0===k||null===(k=k.cmps)||void 0===k?void 0:k.usercentrics}}class Ye{constructor(k,F,Y){this.kioskConfigService=k,this.pluginService=F,this.pxpConfig=Y,this.init$=new Promise((P,ce)=>{this.init(P,ce)})}init(k,F){var Y=this;return(0,g.A)(function*(){const P=Y,ce=Y.kioskConfigService.getConfig().subscribe(function(){var Se=(0,g.A)(function*(Be){Y.currentCMP=Y.createCMP(Be.kioskConfig),Y.currentCMP.init$.then(()=>{k()}).catch(Tt=>{const zt=P.fallbackCMP();console.debug("Could not load: ".concat(P.currentCMP.getDisplayName(),"."),Tt),console.debug(" => Use fallback CMP instead: ".concat(zt.getDisplayName())),P.currentCMP=zt,k()}),ce.unsubscribe()});return function(Be){return Se.apply(this,arguments)}}())})()}createCMP(k){var F;const Y=new dt(k,this.pxpConfig);return null!==(F=this.pluginService.loadPlugin(Y.loadCmpPluginConfiguration()))&&void 0!==F?F:this.fallbackCMP()}fallbackCMP(){return new Q(!1).createInstance()}}var we=c(7879),ze=c(9118),Ke=c(953);let je=(()=>{var Ze;class k{constructor(Y,P,ce,Se){this.kioskConfigService=Y,this.pluginService=P,this.platformId=ce,this.pxpConfig=Se,this.consentAwarePlugins=new Set,this.init$=new Promise((Be,Tt)=>{this.init(Be,Tt)})}init(Y,P){var ce=this;return(0,g.A)(function*(){(0,f.UE)(ce.platformId)?(ce.CMPManager=new Ye(ce.kioskConfigService,ce.pluginService,ce.pxpConfig),ce.CMPManager.init$.then(()=>{Y()})):Y()})()}registerConsentAwarePlugin(Y){this.consentAwarePlugins.add(Y)}canRunPlugin(Y){const P=this.hasConsent(Y.getVendorId())||this.hasConsent(Y.getIABVendorId());console.debug(" => ".concat(Y.displayName,P?" consent granted.":" consent not granted!"));const ce=Y.canRunWithoutConsent();return ce&&console.debug(" => ".concat(Y.displayName," can run without given consent!")),P||ce}showPrivacyManager(){var Y=this;return(0,g.A)(function*(){return Y.CMPManager.currentCMP.showPrivacyManager()})()}hasConsent(Y){return this.CMPManager.currentCMP.hasConsent(Y)}getConsent(Y){if(!Y)throw{code:d.ERROR_CODE.ILLEGAL_ARGUMENTS,message:"No valid params provided"};if(!Y.vendorId)throw{code:d.ERROR_CODE.ILLEGAL_ARGUMENTS,message:"No vendorId provided"};return this.CMPManager.currentCMP.getConsent(Y)}grantConsent(Y){var P=this;return(0,g.A)(function*(){if(!Y)throw{code:d.ERROR_CODE.ILLEGAL_ARGUMENTS,message:"No valid params provided"};if(!Y.vendorId)throw{code:d.ERROR_CODE.ILLEGAL_ARGUMENTS,message:"No vendorId provided"};yield P.CMPManager.currentCMP.grantConsent(Y)})()}updateConsent(){var Y;null===(Y=this.CMPManager)||void 0===Y||null===(Y=Y.currentCMP)||void 0===Y||Y.updateConsent()}}return(Ze=k).\u0275fac=function(Y){return new(Y||Ze)(s.KVO(ze.x),s.KVO(Ke.z),s.KVO(s.Agw),s.KVO(we.Wp))},Ze.\u0275prov=s.jDH({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),k})()},9516:(se,E,c)=>{"use strict";c.d(E,{V:()=>pe});var g=c(467),s=c(9379),f=c(177),d=c(4438),S=c(4412),R=c(2771),U=c(1413),q=c(3083),z=c(5007),ve=c(4843),de=c(3331),V=c(1184),Q=c(873),ie=c(4404),ee=c(5964),he=c(7374),Ae=c.n(he),ue=c(9360),oe=c(3178),_=c(7879),O=c(7467),x=c(5102),B=c(5927);const G=(0,ue.zk)();let pe=(()=>{var le;class W{constructor(ae,_e,Le,We,dt,Ye,we,ze){this.platformId=ae,this.route=_e,this.router=Le,this.document=We,this.purpleEnv=dt,this.purpleService=Ye,this.appData=we,this.domHelper=ze,this.viewContext={},this.outletContext={},this.viewContextSubject=new S.t(null),this.viewContextChangeSubject=new S.t(null),this.baseUrlSubject=new R.m(1),this.baseUrl$=this.baseUrlSubject.asObservable(),this.dataCollectionSubject=new S.t(null),this.moveToSlideSubject=new U.B,this.closeModalSubject=new U.B,this.closeModalCompleteSubject=new U.B,this.viewContext$=(0,q.c)(this.viewContextSubject.pipe((0,ee.p)(Ke=>Ke)),z.$),this.viewContextChange$=(0,q.c)(this.viewContextChangeSubject.pipe((0,ee.p)(Ke=>Ke)),z.$),this.activeTocItemSubject=new S.t(null),this.dataSources={},this.dataCollectionComponents={},this.metadata={},this.userAttributes=null,this.params={},this.removedParams=null,this.accountData={},this.navigationCount=0,this.cancellations$=new U.B,this.isCustomDomainUsedSubject=new R.m(1)}getPurpleEnvironment(){return this.purpleEnv}init(){this.route.queryParams.subscribe(ae=>{this.removedParams={};for(let _e in this.params)ae[_e]||(this.removedParams[_e]=null);this.params=ae,this.updateParamsContext()}),this.router.events.pipe((0,ee.p)(ae=>ae instanceof de.wF)).subscribe(()=>{const ae=this.getActiveOutlet();ae!==this.activeOutlet&&(this.activeOutlet=ae,this.notify(null))}),this.router.events.pipe((0,ee.p)(ae=>ae instanceof de.Z&&!!this.router.getCurrentNavigation())).subscribe(()=>{var ae;const _e=this.router.getCurrentNavigation();null!==(ae=_e.extras)&&void 0!==ae&&ae.replaceUrl?"popstate"===_e.trigger&&this.navigationCount>0&&this.navigationCount--:this.navigationCount++}),this.purpleService.getState("userAttributes").then(ae=>{this.userAttributes=ae?JSON.parse(ae):{},this.notify({userAttributes:this.userAttributes})})}setData(ae,_e){this.viewContext[ae]=_e,this.notify({[ae]:_e})}toResourceUrl(ae){const _e=this.baseUrl.split("/"),Le=_e.splice(0,_e.length-2).join("/")+"/",We=this.isPreview();return(0,oe.q1)(Le,ae,We,this.purpleEnv.isUniversal,this.dynamicResourcesVersion)}setOutletData(ae,_e,Le){this.outletContext[Le]||(this.outletContext[Le]={}),this.outletContext[Le][ae]=_e,this.notify({[ae]:_e})}clearOutletData(ae=this.getActiveOutlet(),_e=null){_e?ae in this.outletContext&&delete this.outletContext[ae][_e]:(delete this.outletContext[ae],delete this.dataSources[ae],delete this.dataCollectionComponents[ae])}setDataArray(ae){let _e={};ae.forEach(({key:Le,value:We})=>{this.viewContext[Le]=_e[Le]=We}),this.notify(_e)}setMultipleData(ae,_e){Object.keys(ae).forEach(Le=>{this.viewContext[Le]=ae[Le]}),this.notify((0,s.A)((0,s.A)({},ae),null!=_e?_e:{}))}getCurrentViewContext(){return this.viewContextSubject.value}getCurrentViewContextChange(){return this.viewContextChangeSubject.value}notify(ae,_e){const Le=_e?this.getContext(_e):this.getContext();(!_e||_e===de.Xk)&&this.setBodyAttributes(Le),this.viewContextSubject.next(Le),ae&&this.viewContextChangeSubject.next({value:Le,change:ae})}setBodyAttributes(ae){var _e=this;return(0,g.A)(function*(){const Le=_e.domHelper.leanDom?"data-pxp-":"data-storefront-",We=_e.document.body;We.getAttributeNames().filter(dt=>dt.startsWith(Le)).forEach(dt=>_e.document.body.removeAttribute(dt)),Object.keys(ae).forEach(dt=>{if(ae[dt]){const Ye="object"==typeof ae[dt]?ae[dt].id:ae[dt];Ye&&We.setAttribute("".concat(Le).concat(dt),Ye)}})})()}registerDataSource(ae,_e){this.dataSources[_e]||(this.dataSources[_e]=[]),ae.registered=!0,this.dataSources[_e].push(ae)}unregisterDataSource(ae){Object.keys(this.dataSources).forEach(_e=>{this.dataSources[_e]&&(this.dataSources[_e]=this.dataSources[_e].filter(Le=>Le!==ae))}),ae.registered=!1,ae.hasContextKey()?ae.cleanupContextData():(0,f.Vy)(this.platformId)||this.notify(null)}getAllDataSources(){return Object.keys(this.dataSources).reduce((ae,_e)=>[...ae,...this.dataSources[_e]],[])}updateDataSources(){const ae=this.getAllDataSources();return Promise.all(ae.map(_e=>_e.update()))}getDataCollectionComponents(ae){return this.dataCollectionComponents[ae||this.getActiveOutlet()]||[]}registerDataCollectionComponent(ae){const _e=ae.outlet||this.getActiveOutlet();this.dataCollectionComponents[_e]||(this.dataCollectionComponents[_e]=[]),this.dataCollectionComponents[_e].push(ae),ae.getDependingDataCollections().filter(Le=>Le.getLatestData()).forEach(Le=>{ae.notifyHasData({component:Le,data:Le.getLatestData()})})}unregisterDataCollectionComponent(ae){this.dataCollectionComponents[ae.outlet]&&(this.dataCollectionComponents[ae.outlet]=this.dataCollectionComponents[ae.outlet].filter(_e=>_e!==ae))}notifyContainerComponents(ae){const _e=this.getDataCollectionComponents(ae.component.outlet);_e&&_e.forEach(Le=>{var We;null!==(We=Le.getDependingDataCollections())&&void 0!==We&&We.includes(ae.component)&&Le.notifyHasData(ae)})}updateMetadata(){var ae=this;return(0,g.A)(function*(){return ae.metadata=(0,s.A)((0,s.A)({},yield ae.purpleService.getMetadata()),{},{today:Ae()().format("YYYY-MM-DD"),connection_state:ae.metadata.connection_state}),yield ae.purpleService.setState(Q.sn,ae.metadata[ie.METADATA_KEY.ENTITLEMENT_TOKEN]),Object.keys(ae.outletContext).forEach(_e=>{ae.notify(ae.metadata,_e)}),ae.metadata})()}updateDeviceSettings(){if((0,f.UE)(this.platformId)){let ae=(0,O.Y)().isDesktop?"desktop":"tablet",_e="portrait";(G.innerWidth<533||G.innerHeight<533)&&"desktop"!==ae&&(ae="phone"),G.innerWidth>G.innerHeight&&(_e="landscape"),this.setMultipleData({device_type:ae,device_orientation:_e,device_width:G.innerWidth,device_height:G.innerHeight})}}clear(){this.viewContext={userTags:this.viewContext.userTags},delete this.dataSources[this.getActiveOutlet()],this.updateDeviceSettings()}setMetadata(ae,_e){this.metadata[ae]=_e,this.notify({[ae]:_e})}setFullMetadata(ae){this.metadata=ae,this.notify(ae)}getMetadata(){return(0,s.A)({},this.metadata)}setUserAttribute(ae,_e){this.userAttributes||(this.userAttributes={}),this.userAttributes[ae]=_e,this.purpleService.setState("userAttributes",JSON.stringify(this.userAttributes)),this.notify({userAttributes:this.userAttributes}),this.getActiveOutlet()!==de.Xk&&this.notify({userAttributes:this.userAttributes},de.Xk)}setUserAttributes(ae){Object.keys(ae).forEach(_e=>{this.userAttributes[_e]=ae[_e]}),this.purpleService.setState("userAttributes",JSON.stringify(this.userAttributes)),this.notify({userAttributes:this.userAttributes})}getUserAttributes(){return(0,s.A)({},this.userAttributes)}getAccountData(){return(0,s.A)({},this.accountData)}setAccountData(ae){this.accountData=(0,s.A)({},ae),this.notify({accountData:this.accountData})}updateAccountData(){var ae=this;return(0,g.A)(function*(){ae.accountData=yield ae.purpleService.getAccountUserData(),ae.notify({accountData:ae.accountData})})()}getActiveOutlet(){const ae=this.route.children[this.route.children.length-1];return ae?ae.outlet:"primary"}set$Functions(ae){this.$functions&&console.warn("set$Functions was called twice. This should only be called once at startup"),this.$functions=ae}updateParamsContext(){var ae=this;return(0,g.A)(function*(){let _e=!1;const Le=ae.cancellations$.subscribe(()=>_e=!0);try{var We;if(_e)throw new Error("cancelled");const dt=yield(0,V.nV)(ae.purpleService,ae.params,{});if(_e)throw new Error("cancelled");let Ye=(0,s.A)((0,s.A)({},null!==(We=ae.removedParams)&&void 0!==We?We:{}),ae.params);ae.setMultipleData(dt,Ye),ae.removedParams=null}catch(dt){}finally{Le.unsubscribe()}})()}getParams(){return(0,s.A)({},this.params)}update(){var ae=this;return(0,g.A)(function*(){return Promise.all([ae.updateMetadata(),ae.updateParamsContext(),ae.updateDataSources()])})()}setInitialUrl(ae){this.initialUrl=ae,this.notify({initialUrl:this.initialUrl})}setPathUrl(ae){this.pathUrl=ae,this.notify({pathUrl:this.pathUrl})}getContext(ae=this.getActiveOutlet()){const _e=this.outletContext[ae];return(0,s.A)((0,s.A)((0,s.A)((0,s.A)((0,s.A)((0,s.A)({},this.removedParams),this.metadata),this.params),this.viewContext),_e),{},{initialUrl:this.initialUrl,pathUrl:this.pathUrl,userAttributes:this.userAttributes,accountData:this.accountData,outlet:ae})}isLoggedIn(){const ae=this.getMetadata(),_e=this.getAccountData();return!!ae.entitlement_token||!(!_e||!_e.token)}cancelPendingParamUpdates(){this.cancellations$.next()}setBrand(ae){this.brand=ae}getBrand(){return this.brand}setPath(ae){if(void 0===this.getIsCustomerDomainUsed()&&console.error("ContextService: called setPath before setIsCustomerDomainUsed"),"string"==typeof ae)this.path=ae;else if("primary"===ae.snapshot.outlet){const _e=ae.snapshot.url,Le=_e.slice(this.getIsCustomerDomainUsed()?0:1,_e.length).map(We=>We.path).join("/")||"/";this.path=Le}}getPath(){return this.path}setBaseUrl(ae){this.baseUrl=ae,this.baseUrlSubject.next(ae)}getBaseUrl(){return this.baseUrl}setIsCustomerDomainUsed(ae){this.isCustomDomainUsedSubject.next(ae),this.isCustomerDomainUsed=ae}getIsCustomDomainUsed(){return(0,ve._)(this.isCustomDomainUsedSubject)}getIsCustomerDomainUsed(){return void 0===this.isCustomerDomainUsed&&console.warn("Attention: getIsCustomerDomainUsed is called before it was set!"),this.isCustomerDomainUsed}setDynamicResourcesVersion(ae){this.dynamicResourcesVersion=ae}getDynamicResourcesVersion(){return this.dynamicResourcesVersion}getHomeUrl(){const ae=new URL(G.location.href);return ae.pathname=this.getIsCustomerDomainUsed()?"":ae.pathname.split("/")[1]+"/",ae.href}closeModal(ae){this.closeModalSubject.next(ae)}notifyAll(){this.notify({})}isPreview(){return this.appData.preview||"true"==this.getMetadata().preview_app}}return(le=W).\u0275fac=function(ae){return new(ae||le)(d.KVO(d.Agw),d.KVO(de.nX),d.KVO(de.Ix),d.KVO(f.qQ),d.KVO(_.r6),d.KVO(x.Wj),d.KVO(_.fj),d.KVO(B.S))},le.\u0275prov=d.jDH({token:le,factory:le.\u0275fac,providedIn:"root"}),W})()},8474:(se,E,c)=>{"use strict";c.d(E,{j:()=>f});var g=c(9379),s=c(4438);let f=(()=>{var d;class S{constructor(){this._params={embeddedParams:{}}}get embeddedParams(){return this._params.embeddedParams}set embeddedParams(U){this._params.embeddedParams=(0,g.A)((0,g.A)({},this._params.embeddedParams),U)}}return(d=S).\u0275fac=function(U){return new(U||d)},d.\u0275prov=s.jDH({token:d,factory:d.\u0275fac}),S})()},5927:(se,E,c)=>{"use strict";c.d(E,{S:()=>f});var g=c(7879),s=c(4438);let f=(()=>{var d;class S{constructor(U){var q,z;this.pxpConfig=U,this.leanDom=null!==(q=null===(z=this.pxpConfig.purple)||void 0===z?void 0:z.leanDom)&&void 0!==q&&q}regularSelector(U){return this.leanDom?void 0:U}prefixedSelector(U){return this.leanDom?U:void 0}}return(d=S).\u0275fac=function(U){return new(U||d)(s.KVO(g.Wp))},d.\u0275prov=s.jDH({token:d,factory:d.\u0275fac,providedIn:"root"}),S})()},9745:(se,E,c)=>{"use strict";c.d(E,{H:()=>g,L:()=>s});var g=function(f){return f.COUPON="coupon",f.DELETE_ALL_BOOKMARKS="deleteAllBookmarks",f.EXTERNAL_LOGIN="externalLogin",f.LOGIN="login",f.LOGOUT="logout",f.NAVIGATE="navigate",f.OPEN_CONTENT="openContent",f.OPEN_URL="openUrl",f.POPUP="popup",f.PURCHASE="purchase",f.SUBSCRIBE="subscribe",f.REGISTER="register",f.RESTORE_PURCHASES="restorePurchases",f.SET_USER_ATTRIBUTE="setUserAttribute",f.SUBSCRIPTIONS="subscriptions",f.SET_CONTEXT_VARIABLES="setContextVariables",f}(g||{}),s=function(f){return f.SLIDE_IN="SLIDE_IN",f.POP_UP="POP_UP",f}(s||{})},8004:(se,E,c)=>{"use strict";c.d(E,{G:()=>ae});var g=c(9379),s=c(467),f=c(177),d=c(3331),S=c(4404),U=c(6843),q=c(873),z=c(8179),ve=c(5102),de=c(8075),V=c(4945),Q=c(610),ie=c(3178),K=c(5706),ee=c(8091),he=c(4074),Ae=c(4049),ue=c(7879),oe=c(9745),_=c(6067),O=c(4438),x=c(7010),B=c(20),G=c(9516),pe=c(244),le=c(6350),W=c(6889),te=c(5632);let ae=(()=>{var We;class dt{constructor(we,ze,Ke,je,Ze,k,F,Y,P,ce,Se,Be,Tt){this.router=we,this.store=ze,this.dialog=Ke,this.contextService=je,this.cleanUpService=Ze,this.document=k,this.purpleService=F,this.cacheService=Y,this.purpleEnv=P,this.urlResolverService=ce,this.location=Se,this.appData=Be,this.serverOnlyService=Tt,this.access={}}init(){var we=this;return(0,s.A)(function*(){(0,V.jZ)(U.O.ACCESS)(we.store).subscribe(ze=>we.access=ze),(0,V.jZ)(U.O.DOWNLOAD_OPTIONS)(we.store).subscribe(ze=>we.downloadOptions=ze),we.platform=(yield we.purpleService.getMetadata([S.METADATA_KEY.PLATFORM]))[S.METADATA_KEY.PLATFORM],we.displayMode=yield we.purpleService.getDisplayMode()})()}processEventAction(we,ze,Ke){var je=this;return(0,s.A)(function*(){switch(we.type){case oe.H.NAVIGATE:return je.processNavigateAction(we,ze);case oe.H.POPUP:return je.processPopupAction(we,ze);case oe.H.OPEN_CONTENT:return je.processOpenContentAction(we,ze,Ke);case oe.H.RESTORE_PURCHASES:return je.processRestorePurchasesAction(we,ze);case oe.H.LOGIN:return je.processLoginAction(we,ze);case oe.H.LOGOUT:return je.processLogoutAction(we);case oe.H.SUBSCRIPTIONS:return je.processSubscriptionsAction(we,ze);case oe.H.COUPON:return je.processCouponAction(we,ze);case oe.H.SET_USER_ATTRIBUTE:return je.processSetUserAttributeAction(we,ze,Ke);case oe.H.REGISTER:return je.processRegisterAction(we,ze);case oe.H.OPEN_URL:return je.processOpenUrlAction(we);case oe.H.DELETE_ALL_BOOKMARKS:return je.processDeleteAllBookmarks(we,ze);case oe.H.PURCHASE:return je.processPurchaseAction(we,ze);case oe.H.SUBSCRIBE:return je.processSubscribeAction(we,ze);case oe.H.EXTERNAL_LOGIN:return je.processExternalLoginAction(we,ze);case oe.H.SET_CONTEXT_VARIABLES:return je.setContextVariables(we)}})()}processOpenContentAction(we,ze,Ke){var je=this;return(0,s.A)(function*(){const Ze=Y=>{(Y.code===S.ERROR_CODE.PAYMENT_REQUIRED||Y.code===S.ERROR_CODE.NO_ISSUES_FOUND)&&je.purpleService.invalidate(),je.dialog.alert({text:"ERROR_CONTENT_OPEN",args:[(0,ee.E2)(Y,je.contextService)]},"DIALOG_ERROR")};if(!we.taxonomyId){let Y;try{if(we.issueId)Y=yield je.purpleService.getIssue(we.issueId).catch(()=>null),Y||(Y=yield je.purpleService.getCatalogContent(we.issueId).catch(()=>null));else{var k,F;let ce="";ze.config&&(ce=ze.config.issueContextKey),null==ce&&(ce=ze.config.contentContextKey);const Se=ze.getContext();Y=null!==(k=Se[ce])&&void 0!==k?k:null!==(F=Se.issue)&&void 0!==F?F:Se.content}if(!Y)throw{code:S.ERROR_CODE.NO_ISSUES_FOUND}}catch(ce){return void Ze(ce)}if((0,K.xl)(Y)&&je.cleanUpService.addIssue(Y.id),yield(0,ve.GA)(Y,je.purpleService)){const ce=we.fallback&&(0,z.v3)(we.fallback);if(ce)return je.processEventAction(ce,ze,Ke)}if((0,K.xl)(Y))return je.openIssue(Y,we,Ze,ze,Ke);{let ce;if(we.bundle)if(we.bundle.postId){const Be=(yield je.purpleService.getCatalogContent(we.bundle.postId).catch(()=>null)).properties.slug;Be&&(ce="".concat(ce,"/").concat(Be))}else{const Se=yield je.purpleService.getCatalogContent(we.bundle.bundleId).catch(()=>null);ce=yield je.urlResolverService.getPathForContent(Se)}else ce=yield je.urlResolverService.getPathForContent(Y);return new Promise((Se,Be)=>{ce?je.processEventAction({type:oe.H.NAVIGATE,path:ce},{getId:()=>ze.getId(),getContext:()=>({preview:ze.getContext().preview,configURL:ze.getContext().configURL})},Ke).then(Tt=>Se(Tt)).catch(Tt=>Be(Tt)):(alert("No view to handle this post type found"),console.error("Failed to open",Y),Be())})}}try{const Y=yield je.purpleService.getTaxonomy(we.taxonomyId,we.taxonomyType);if(Y){const P=yield je.urlResolverService.getPathForTaxonomy(Y);if("string"==typeof P)return je.processEventAction({type:oe.H.NAVIGATE,path:P},ze,Ke);throw{code:S.ERROR_CODE.NOT_FOUND,message:"Path for taxonomy ".concat(we.taxonomyId," can't be found. Is your app using the url.resolver.js feature?")}}throw{code:S.ERROR_CODE.NOT_FOUND,message:"Taxonomy ".concat(we.taxonomyId," can't be found.")}}catch(Y){return void Ze(Y)}})()}openIssue(we,ze,Ke,je,Ze){var k=this;return(0,s.A)(function*(){const F=yield(0,ve.GA)(we,k.purpleService);ze.openCollection&&console.warn("[deprecated] OpenContentAction.openCollection is not supported for Issues from Template 10 on.");let Y=we.id;if(F){const lt=(0,ve.Kh)(Y,k.cacheService);lt&&!k.purpleEnv.isUniversal&&(Y=lt.id)}let P=null;null!=ze.pageIndex&&(P={index:ze.pageIndex}),ze.elementAlias&&(P=(0,g.A)((0,g.A)({},P),{},{initialElement:{aliasOrId:ze.elementAlias}}));const ce=yield k.purpleService.getDownloadHandler(we),Se=ce.getContentType();Se!==_.r.ISSUE&&console.error("Unsupported download handler content type ".concat(Se,": expected ISSUE"));const Be={type:Se};Be.optionalParams=(0,ue.P8)((0,ue.yC)(we,k.cacheService.PURPLE_PUBLICATION_CACHE[we.publicationId])),ce.content&&(0,ue.Gw)(Se)&&(Be.optionalParams=(0,g.A)((0,g.A)({},Be.optionalParams),(0,ue.P8)((0,ue.bJ)(ce.content,k.cacheService.PURPLE_PUBLICATION_CACHE[ce.content.publicationId],null,"SOURCE_"))));const Tt={issueIds:[Y],initialIssue:{id:Y,initialPage:P},config:Le(ze),tracking:Be};if(Y===we.id&&(0,ve.YH)((null==ce?void 0:ce.state)||we.state,we.type===S.IssueType.ISSUE))try{yield k.dialog.confirm({text:"ISSUE_UPDATE_MESSAGE",args:[we.name]},"ISSUE_UPDATE_TITLE","ISSUE_UPDATE_NEW_VERSION","ISSUE_UPDATE_OLD_VERSION")}catch(lt){Tt.skipSync=!0}if(!Tt.skipSync&&ce){ce.syncLocalContents();try{var He;Y===we.id&&null!==(He=k.downloadOptions)&&void 0!==He&&He.downloadOnOpen&&k.contextService.getMetadata().connection_state===S.CONNECTION_STATE.ONLINE&&(yield ce.download(),Tt.skipSync=!0)}catch(lt){console.log("error updating download handler issues / starting download",lt)}}return k.purpleService.openContent(Tt).then(lt=>lt,lt=>Ke(lt))})()}processNavigateAction(we,ze){var Ke=this;return(0,s.A)(function*(){var je;const Ze=null!==(je=null==ze?void 0:ze.getContext())&&void 0!==je?je:Ke.contextService.getContext(),k={queryParams:(0,g.A)((0,g.A)({},_e(Ze)),we.params)},F=Ke.appData.customDomain?"":Ke.contextService.getBrand()+"/";let Y;var P;(we.url||we.path)&&(Y=(0,Ae.K)(null!==(P=we.url)&&void 0!==P?P:we.path,Ze,!1),we.path&&Y.startsWith("/")&&(Y=Y.substring(1))),we.mergeParams&&(k.queryParamsHandling="merge");const ce=(0,de.ON)(Ke.router.routerState.snapshot.url);if((we.replaceUrl||ce===Y)&&(k.replaceUrl=!0),Ke.serverOnlyService.isBrowser())return we.url?Ke.router.navigateByUrl(Y,k):Ke.router.navigate(void 0!==Y?[{outlets:{modal:null,[d.Xk]:F+Y}}]:[],k);try{let Se;if(we.url)Se=new URL(we.url);else{const zt=Ke.appData.customDomain?Y:"".concat(Ke.contextService.getBrand(),"/").concat(Y);Se=new URL("/".concat(zt),Ke.location.origin)}let Be=new URLSearchParams(k.queryParams);if(we.mergeParams){const zt=new URLSearchParams(Ke.location.search);Be=new URLSearchParams((0,g.A)((0,g.A)({},Object.fromEntries(zt)),Object.fromEntries(Be)))}Se.search=Be.toString();const Tt=Se.toString();return Ke.serverOnlyService.redirectExternal(Tt,we.statusCode),!0}catch(Se){return console.warn("failed to redirect from navigation action",we,Se.message),Ke.serverOnlyService.sendError(500,"Failed to redirect"),!0}})()}processPopupAction(we,ze){var Ke=this;return(0,s.A)(function*(){const je=ze.getContext(),Ze=(0,Ae.K)(we.path,je);return Ke.router.navigate([{outlets:{modal:["popup",Ze,we.animation||oe.L.SLIDE_IN]}}],{queryParams:(0,g.A)((0,g.A)({},_e(je)),we.params),queryParamsHandling:"merge"})})()}processRestorePurchasesAction(we,ze){var Ke=this;return(0,s.A)(function*(){if(we.confirm)try{yield Ke.dialog.confirm("string"==typeof we.confirm?we.confirm:"RESTORE_PURCHASES_CONFIRM","RESTORE_PURCHASES")}catch(je){return Ke.dialog.alert("RESTORE_PURCHASES_FAILED","RESTORE_PURCHASES")}Ke.store.dispatch((0,Q.k4)({url:window.location.href,key:"RESTORE_PURCHASES_CLICKED"}));try{if(yield Ke.purpleService.restorePurchases(),Ke.contextService.setUserAttribute(q.h2,!0),yield Ke.dialog.alert("RESTORE_PURCHASES_SUCCEEDED","RESTORE_PURCHASES"),Ke.isModalRoundtrip())Ke.purpleService.closeView();else if(we.onSuccess)return Ke.processEventAction(we.onSuccess,ze)}catch(je){return Ke.dialog.alert("RESTORE_PURCHASES_FAILED","RESTORE_PURCHASES")}})()}processLoginAction(we,ze){var Ke=this;return(0,s.A)(function*(){switch(Ke.contextService.getMetadata()[S.METADATA_KEY.ENTITLEMENT_MODE]){case S.ENTITLEMENT_MODE.ENTITLEMENT:return Ke.processEventAction(Ke.access.loginAction,ze);case S.ENTITLEMENT_MODE.OAUTH:return Ke.purpleService.login(null,null,we.params);default:return console.warn("No entitlement configured. Please check the Manager configuration."),Ke.processEventAction(Ke.access.loginAction,ze)}})()}processLogoutAction(we){var ze=this;return(0,s.A)(function*(){if(!we.confirm)return ze.purpleService.logout();try{return yield ze.dialog.confirm("LOGOUT_MESSAGE","LOGOUT_TITLE","LOGOUT_BUTTON_CONFIRM","LOGOUT_BUTTON_CANCEL"),ze.purpleService.logout()}catch(Ke){}})()}processSubscriptionsAction(we,ze){var Ke=this;return(0,s.A)(function*(){return Ke.processEventAction(Ke.access.subscriptionsAction,ze)})()}processCouponAction(we,ze){var Ke=this;return(0,s.A)(function*(){return Ke.processEventAction(Ke.access.couponsAction,ze)})()}processSetUserAttributeAction(we,ze,Ke){var je=this;return(0,s.A)(function*(){if(je.contextService.setUserAttribute(we.key,we.value),we.onFinished&&je.serverOnlyService.isBrowser())return je.processEventAction(we.onFinished,ze,Ke)})()}processRegisterAction(we,ze){var Ke=this;return(0,s.A)(function*(){return Ke.processEventAction(Ke.access.registerAction,ze)})()}processOpenUrlAction(we){var ze=this;return(0,s.A)(function*(){const Ke=we.params&&Object.keys(we.params).reduce((je,Ze)=>((0,z.ZY)({value:we.params[Ze]})&&(je[Ze]=we.params[Ze]),je),{});ze.purpleService.openActionUrl((0,ie.LS)(we.url,Ke),!1,we.target)})()}processDeleteAllBookmarks(we,ze){var Ke=this;return(0,s.A)(function*(){const je=ze.getContext().issue,Ze=function(){var k=(0,s.A)(function*(){const F=je&&(yield Ke.purpleService.getPublication(je.publicationId));try{Ke.store.dispatch((0,Q.k4)(je?{url:window.location.href,key:"BOOKMARK_DELETE_ALL_OF_ISSUE_CLICKED",params:(0,ue.bJ)(je,F)}:{url:window.location.href,key:"BOOKMARK_DELETE_ALL_CLICKED"}));let Y=yield Ke.purpleService.getBookmarks();je&&(Y=Y.filter(P=>{var ce;return P.issueId===je.id||(null===(ce=P.customData)||void 0===ce?void 0:ce.sourceIssueId)===je.id})),yield Ke.purpleService.deleteBookmarks(Y.map(P=>P.id)),Ke.store.dispatch((0,Q.k4)(je?{url:window.location.href,key:"BOOKMARK_DELETED_ALL_OF_ISSUE",params:(0,ue.bJ)(je,F)}:{url:window.location.href,key:"BOOKMARK_DELETED_ALL"}))}catch(Y){Ke.store.dispatch((0,Q.k4)(je?{url:window.location.href,key:"BOOKMARK_DELETE_ALL_OF_ISSUE_FAILED",params:(0,ue.bJ)(je,F)}:{url:window.location.href,key:"BOOKMARK_DELETE_ALL_FAILED"})),Ke.dialog.alert({text:"ERROR_DELETE_ALL_BOOKMARKS",args:[(0,ee.E2)(Y,Ke.contextService)]},"DIALOG_ERROR")}});return function(){return k.apply(this,arguments)}}();if(!we.confirm)return Ze();try{return je?yield Ke.dialog.confirm({text:"BOOKMARK_DELETE_ALL_OF_ISSUE_MESSAGE",args:[je.name]},"BOOKMARK_DELETE_All_TITLE","BOOKMARK_DELETE_CONFIRM","BOOKMARK_DELETE_CANCEL"):yield Ke.dialog.confirm("BOOKMARK_DELETE_ALL_MESSAGE","BOOKMARK_DELETE_All_TITLE","BOOKMARK_DELETE_CONFIRM","BOOKMARK_DELETE_CANCEL"),Ze()}catch(k){}})()}processPurchaseAction(we,ze){var Ke=this;return(0,s.A)(function*(){const je=ze.getTrackingParams();try{var Ze,k;Ke.store.dispatch((0,Q.k4)({url:window.location.href,key:"".concat(ze.getTrackingBaseKey(),"_PURCHASE_CLICKED"),params:je}));const Y={productId:we.productId};we.consumeOptions&&(0,ue.E7)(window.purple.store,{major:2,minor:2},S.IntOperation.GREATER_THAN)&&(Y.consumeOptions=we.consumeOptions);const P=yield null===(Ze=window.storefrontHooks)||void 0===Ze||null===(k=Ze.beforeContentPurchase)||void 0===k?void 0:k.call(Ze,{actionConfig:we});var F;if("object"==typeof P&&!["continue","error","cancel"].includes(P.type)&&console.error("Result of storefront hook beforeContentPurchase should have a field type with values continue, error or cancel, got",P),"error"===(null==P?void 0:P.type)||"cancel"===(null==P?void 0:P.type))throw{code:"cancel"===P.type?S.ERROR_CODE.CANCELLED:null!==(F=P.code)&&void 0!==F?F:S.ERROR_CODE.UNKNOWN};const[ce,Se]=yield Promise.all([Ke.purpleService.purchase(Y),Ke.purpleService.nextInvalidation()]);Ke.store.dispatch((0,Q.k4)({url:window.location.href,key:"".concat(ze.getTrackingBaseKey(),"_PURCHASED"),params:je}));const Be={key:"".concat(ze.getTrackingBaseKey(),"_PURCHASED"),productId:we.productId,price:we.price,currencyCode:we.currency};ce.transactionId&&(Be.transactionId=ce.transactionId),Be.optionalParams=je,Ke.store.dispatch((0,Q.Du)({url:window.location.href,params:Be})),Ke.isModalRoundtrip()?Ke.purpleService.closeView():we.onSuccess&&(yield Ke.processEventAction(we.onSuccess,ze))}catch(Y){console.warn(Y),Y.code&&Y.code===S.ERROR_CODE.CANCELLED?Ke.store.dispatch((0,Q.k4)({url:window.location.href,key:"".concat(ze.getTrackingBaseKey(),"_PURCHASE_CANCELLED"),params:je})):(Ke.store.dispatch((0,Q.k4)({url:window.location.href,key:"".concat(ze.getTrackingBaseKey(),"_PURCHASE_FAILED"),params:je})),we&&we.showErrorDialog&&Ke.dialog.alert({text:"ERROR_PURCHASE",args:ze.getErrorDialogArgs(Y)},"DIALOG_ERROR"))}})()}processSubscribeAction(we,ze){var Ke=this;return(0,s.A)(function*(){const je=ze.getTrackingParams();try{var Ze,k,F;Ke.store.dispatch((0,Q.k4)({url:window.location.href,key:"SUBSCRIPTION_CLICKED",params:je}));const Y=yield null===(Ze=window.storefrontHooks)||void 0===Ze||null===(k=Ze.beforeSubscriptionPurchase)||void 0===k?void 0:k.call(Ze,{actionConfig:we});if("object"==typeof Y&&!["continue","error","cancel"].includes(Y.type)&&console.error("Result of storefront hook beforeSubscriptionPurchase should have a field type with values contine, error or cancel, got",Y),"error"===(null==Y?void 0:Y.type)||"cancel"===(null==Y?void 0:Y.type))throw{code:"cancel"===Y.type?S.ERROR_CODE.CANCELLED:S.ERROR_CODE.UNKNOWN};const P=yield Ke.purpleService.subscribe(we.productId,we.upgradeMode,we.offerId),Se=(yield Ke.purpleService.getSubscriptions({})).nodes.find(zt=>zt.purchased&&zt.productId===P.productId),Be=null!=Se&&null!==(F=Se.currentReceiptInfo)&&void 0!==F&&F.isTrialPeriod?"SUBSCRIPTION_TRIAL_PURCHASED":"SUBSCRIPTION_PURCHASED";Ke.store.dispatch((0,Q.k4)({url:window.location.href,key:Be,params:je})),Ke.purpleService.onMaybeSubscriptionsChanged();const Tt={key:Be,productId:we.productId,price:we.price,currencyCode:we.currency};if(P.transactionId&&(Tt.transactionId=P.transactionId),Tt.optionalParams=je,Ke.store.dispatch((0,Q.Du)({url:window.location.href,params:Tt})),Ke.isModalRoundtrip())Ke.purpleService.closeView();else if(we.onSuccess)return Ke.processEventAction(we.onSuccess,ze)}catch(Y){Y.code&&Y.code===S.ERROR_CODE.CANCELLED?Ke.store.dispatch((0,Q.k4)({url:window.location.href,key:"SUBSCRIPTION_PURCHASE_CANCELLED",params:je})):(Ke.store.dispatch((0,Q.k4)({url:window.location.href,key:"SUBSCRIPTION_PURCHASE_FAILED",params:je})),we&&we.showErrorDialog&&Ke.dialog.alert({text:"ERROR_SUBSCRIPTION",args:ze.getErrorDialogArgs(Y)},"DIALOG_ERROR"))}})()}processExternalLoginAction(we,ze){var Ke=this;return(0,s.A)(function*(){Ke.store.dispatch((0,Q.k4)({url:window.location.href,key:"EXTERNAL_LOGIN_CLICKED"}));try{we.onStart&&(yield Ke.processEventAction(we.onStart,ze));const je=we.params?(0,ie.LS)(we.url,we.params):we.url,Ze=yield Ke.purpleService.performAuthentication(je,we.callbackParamName);let k=Ze.values[we.accountIdParamName||"userId"];if(!k)throw{code:"No account ID found."};if(we.entitlementParamNames){const P=Ze.values[we.entitlementParamNames.usernameKey],ce=Ze.values[we.entitlementParamNames.passwordKey]||q.B6,Se=yield Ke.purpleService.login(P,ce),Be=(0,he.$)(Se.accessToken);we.entitlementParamNames.accountIdFromEntitlement&&(k=Be.sub)}const F=(0,he.J)(k),{token:Y}=yield Ke.purpleService.getAccountUserData();if(Y)try{console.debug("Old account token detected: "+Y+", logging out"),yield Ke.purpleService.logoutAccount()}catch(P){console.warn("Logout before new login failed: ",P)}if(yield Ke.purpleService.loginAccount(F),we.assignLocalPurchases&&(yield Ke.purpleService.assignLocalPurchases(we.assignLocalPurchases)),yield Ke.contextService.updateAccountData(),Ke.store.dispatch((0,Q.k4)({url:window.location.href,key:"EXTERNAL_LOGIN_SUCCEEDED"})),Ke.isModalRoundtrip())Ke.purpleService.closeView();else if(we.onSuccess)return Ke.processEventAction(we.onSuccess,ze)}catch(je){if(Ke.store.dispatch((0,Q.k4)({url:window.location.href,key:"EXTERNAL_LOGIN_CANCELLED"})),(0,z.v3)(we.closeOnModalCancel)&&Ke.isModalRoundtrip())Ke.purpleService.closeView();else{if(we.onCancel)return Ke.processEventAction(we.onCancel,ze);Ke.dialog.alert({text:"ERROR_EXTERNAL_LOGIN",args:[je.code]},"DIALOG_ERROR"),console.log(je,we)}}})()}setContextVariables(we){const ze=we.variables.map(Ke=>(0,z.v3)(Ke)).filter(Ke=>!!Ke);this.contextService.setDataArray(ze)}isModalRoundtrip(){return(0,ie.dg)(this.displayMode,this.document)}}return(We=dt).\u0275fac=function(we){return new(we||We)(O.KVO(d.Ix),O.KVO(x.il),O.KVO(B.o),O.KVO(G.V),O.KVO(pe.I),O.KVO(f.qQ),O.KVO(ve.Wj),O.KVO(le._),O.KVO(ue.r6),O.KVO(W.K),O.KVO(ue.GZ),O.KVO(ue.fj),O.KVO(te.l))},We.\u0275prov=O.jDH({token:We,factory:We.\u0275fac,providedIn:"root"}),dt})();function _e(We){const dt={};return We.issue&&(dt.issue=We.issue.id),We.publication&&(dt.publication=We.publication.id),We.category&&(dt.category=We.category.id),We.brand&&(dt.brand=We.brand),We.preview&&(dt.preview=We.preview),We.configURL&&(dt.configURL=We.configURL),dt}function Le(We){let dt=null;return We.mode&&(dt=(0,g.A)((0,g.A)({},dt),{},{mode:We.mode})),"titleBar"in We&&(dt=(0,g.A)((0,g.A)({},dt),{},{titleBar:(0,z.v3)(We.titleBar)})),dt}},1652:(se,E,c)=>{"use strict";c.d(E,{d:()=>d});var g=c(4438),s=c(7879);const f=(0,g.zw6)("globalScope");let d=(()=>{var S;class R{constructor(q,z){this.transferState=q,this.pxpConfig=z}setData(q,z){this.global[q]=z,this.transferState.onSerialize(f,()=>this.global)}getData(q){var z;if(null!==(z=this.global)&&void 0!==z&&z[q])return this.global[q]}deleteData(q){delete this.global[q]}getGlobalData(){return this.global}init(){this.transferState.hasKey(f)?(this.global=this.transferState.get(f,null),this.transferState.remove(f)):(this.global={},this.setData("experienceConfig",this.pxpConfig))}}return(S=R).\u0275fac=function(q){return new(q||S)(g.KVO(g.pJN),g.KVO(s.Wp))},S.\u0275prov=g.jDH({token:S,factory:S.\u0275fac,providedIn:"root"}),R})()},2596:(se,E,c)=>{"use strict";c.d(E,{A:()=>Q,s:()=>V});var g=c(467),s=c(9692),f=c(3331),d=c(5964),S=c(8075),R=c(9360),U=c(3178),q=c(4438),z=c(1652);const ve="GPT_SCRIPT",de=(0,R.YE)();let V=(()=>{var ie;class K{constructor(he,Ae){let ue;this.router=he,this.globalService=Ae,this.queue=[],this.adRefreshObjects=new Map,this.debugMode=location.search.includes("debug=true"),this.router.events.pipe((0,d.p)(oe=>oe instanceof f.wF)).subscribe(oe=>{const _=(0,S.ON)(oe.urlAfterRedirects);ue&&_!==ue&&this.clear(),ue=_}),window.googletag=window.googletag||{cmd:[]}}startProcessing(){this.interval||(this.interval=(0,U.xQ)(()=>{this.processQueue()},100))}stopProcessing(){clearInterval(this.interval),delete this.interval}processQueue(){if(this.queue.length){const he=this.queue.shift();window.googletag.cmd.push(()=>{let Ae=this.adRefreshObjects.get(he),ue=!0;var oe;window.storefrontHooks&&window.storefrontHooks.beforeRenderAd&&(ue=null===(oe=window.storefrontHooks)||void 0===oe?void 0:oe.beforeRenderAd({id:Ae.id,slot:Ae.slot,config:Ae.config,refresh:!1})),ue&&(this.debugMode&&console.log("display ad: "+he),window.googletag.display(he))})}this.queue.length||this.stopProcessing()}setupScript(he){var Ae=this;return(0,g.A)(function*(){let ue=de.getElementById(ve);if(!ue){var oe;ue=de.createElement("script"),window.googletag.cmd=null!==(oe=window.googletag.cmd)&&void 0!==oe?oe:[],yield new Promise(B=>{ue.onload=B,ue.setAttribute("id",ve),ue.setAttribute("async","true");const G=he.domain?"&domain=".concat(he.domain):"",pe=he.networkCode.indexOf(",")<0?"?network-code=".concat(he.networkCode)+G:"";ue.setAttribute("src","https://securepubads.g.doubleclick.net/tag/js/gpt.js".concat(pe)),de.head.appendChild(ue)});try{var _,O;null===(_=window.storefrontHooks)||void 0===_||null===(O=_.onAdInit)||void 0===O||O.call(_)}catch(B){console.error("Error in onAdInit hook:",B)}const x=Ae;window.googletag.cmd.push(()=>{window.googletag.pubads().setCentering(!0),window.googletag.pubads().collapseEmptyDivs(),window.googletag.enableServices(),Ae.globalRefreshInterval=(0,U.xQ)(function(){x.refreshAds()},1e3),window.googletag.pubads().addEventListener("slotOnload",B=>{var G;Ae.debugMode&&console.log("slot onload: "+B.slot.getSlotElementId()),null===(G=Ae.adRefreshObjects.get(B.slot.getSlotElementId()))||void 0===G||G.onLoad()}),window.googletag.pubads().addEventListener("slotRenderEnded",B=>{Ae.debugMode&&(console.group("Slot",B.slot.getSlotElementId(),"finished rendering."),console.log("Advertiser ID:",B.advertiserId),console.log("Campaign ID: ",B.campaignId),console.log("Creative ID: ",B.creativeId),console.log("Is empty?:",B.isEmpty),console.log("Line Item ID:",B.lineItemId),console.log("Size:",B.size),console.log("Source Agnostic Creative ID:",B.sourceAgnosticCreativeId),console.log("Source Agnostic Line Item ID:",B.sourceAgnosticLineItemId),console.groupEnd());const G=Ae.adRefreshObjects.get(B.slot.getSlotElementId());G&&(G.onRenderEnded(),G.loaded=!0)})})}})()}isInView(he){var Ae=he.getBoundingClientRect();return Ae.top>=0&&Ae.left>=0&&Ae.bottom<=(window.innerHeight||de.documentElement.clientHeight)&&Ae.right<=(window.innerWidth||de.documentElement.clientWidth)}refreshAds(){try{var he,Ae;if("hidden"===de.visibilityState||null!==(he=(Ae=window.storefrontHooks).isAdRefreshPaused)&&void 0!==he&&he.call(Ae))return}catch(_){console.error("Error in isAdRefreshPaused hook:",_)}const ue=de.querySelectorAll('div[id^="div-gpt"]'),oe=[];if(ue.forEach(_=>{const O=_.getAttribute("id");if(this.adRefreshObjects.has(O)&&this.isInView(_)){const x=this.adRefreshObjects.get(O);x.loaded&&x.refreshSeconds&&--x.countDown<=0&&(oe.push(x),x.countDown=x.refreshSeconds,x.slot.getTargeting("ad-refresh").length&&x.slot.setTargeting("ad-refresh","true"))}}),oe.length>0){let _=[];oe.forEach(O=>{(!window.storefrontHooks||!window.storefrontHooks.beforeRenderAd||window.storefrontHooks.beforeRenderAd({id:O.id,slot:O.slot,config:O.config,refresh:!0}))&&_.push(O.id)}),_.length>0&&(this.debugMode&&console.log("refresh: "+JSON.stringify(_)),window.googletag.cmd.push(()=>{window.googletag.pubads().refresh(_)}))}}clear(){this.stopProcessing(),this.queue=[],window.googletag.cmd.push(()=>{this.debugMode&&console.log("destroy all slots"),window.googletag.destroySlots()}),this.adRefreshObjects.clear()}mapOutOfPageFormat(he,Ae){switch(Ae){case s.q.BOTTOM_ANCHOR:return window.googletag.enums.OutOfPageFormat.BOTTOM_ANCHOR;case s.q.INTERSTITIAL:return window.googletag.enums.OutOfPageFormat.INTERSTITIAL;case s.q.REWARDED:return window.googletag.enums.OutOfPageFormat.REWARDED;case s.q.TOP_ANCHOR:return window.googletag.enums.OutOfPageFormat.REWTOP_ANCHORARDED;default:return he}}showAd(he,Ae,ue,oe,_,O){this.setupScript(Ae);const x=oe.offsetWidth,B=Ae.sizes.sort((G,pe)=>{const W=pe[0];return Math.abs(x-G[0])-Math.abs(x-W)});window.googletag.cmd.push(()=>{var G;this.debugMode&&console.log("define slot: "+he+" => "+"/".concat(Ae.networkCode,"/").concat(Ae.adUnitCode));const pe=Ae.outOfPageSlot?window.googletag.defineOutOfPageSlot("/".concat(Ae.networkCode,"/").concat(Ae.adUnitCode),this.mapOutOfPageFormat(he,Ae.outOfPageFormat)):window.googletag.defineSlot("/".concat(Ae.networkCode,"/").concat(Ae.adUnitCode),B,he);if(!pe)return void console.warn("defineSlot didn't create a slot for id "+he);if(ue){const W=ue.mappings.map(te=>[te.viewPortSize,te.adSizes]);pe.defineSizeMapping(W)}Ae.targeting&&(Ae.targeting.forEach(W=>{pe.setTargeting(W.key,W.value)}),this.debugMode&&console.log("set targeting: "+JSON.stringify(Ae.targeting))),pe.addService(window.googletag.pubads()),this.queue.push(he),this.startProcessing();const le=Ae.refreshSeconds||(null===(G=this.globalService.global.experienceConfig)||void 0===G?void 0:G.gadRefresh);this.adRefreshObjects.set(he,{id:he,countDown:le,refreshSeconds:le,slot:pe,config:Ae,onLoad:_,onRenderEnded:O})})}removeAd(he){this.queue=this.queue.filter(ue=>ue!==he);let Ae=this.adRefreshObjects.get(he);Ae&&(window.googletag.cmd.push(()=>{const ue=window.googletag.destroySlots([Ae.slot]);this.debugMode&&console.log("destroy slot "+he+" => "+ue)}),this.adRefreshObjects.delete(he))}}return(ie=K).\u0275fac=function(he){return new(he||ie)(q.KVO(f.Ix),q.KVO(z.d))},ie.\u0275prov=q.jDH({token:ie,factory:ie.\u0275fac,providedIn:"root"}),K})();class Q{constructor(K){this.router=K}clear(){}showAd(K,ee,he,Ae,ue){}removeAd(K){}startProcessing(){}}},3307:(se,E,c)=>{"use strict";c.d(E,{d:()=>d});var g=c(9876),s=c(4438),f=c(5927);let d=(()=>{var S;class R{constructor(q){this.domHelper=q,this.aboveFoldImg=null}getAboveFoldImg(){return this.aboveFoldImg}preloadVisibleImages(){const q=this.getViewHeight();Array.from(document.querySelectorAll(this.domHelper.leanDom?".pxp-image":"storefront-image")).forEach((ve,de)=>{const V=this.isInView(ve,q);0===de&&V&&this.cacheAboveFoldImage(ve),V&&this.loadImage(ve,!1)})}cacheAboveFoldImage(q){const z=q.getAttribute("src");z&&(this.aboveFoldImg=z.split("?")[0])}loadImage(q,z){const ve=q.getAttribute("src");if(!q.clientWidth||!ve)return;const V=(0,g.G)(q,ve,q.getAttribute("resolution-strategy"),q.getAttribute("focal-point")),Q=this.createImageElement(V,q);this.appendImageToWrapper(Q,q,z)}createImageElement(q,z){const ve=document.createElement("img");return ve.setAttribute("src",q),ve.setAttribute("title",z.getAttribute("title")||""),ve.setAttribute("alt",z.getAttribute("alt")||""),ve.setAttribute("aria-label",z.getAttribute("aria-label")||""),ve.classList.add("loaded"),ve.addEventListener("load",()=>{const de=(0,g.z)(!0,ve,q);de&&(ve.style.paddingTop="".concat(de,"%"))}),ve}appendImageToWrapper(q,z,ve){z.classList.add("loaded"),z.setAttribute("ng-skip-hydration","true"),z.prepend(q),ve&&(z.removeAttribute("src"),z.removeAttribute("label"))}isInView(q,z){const ve=q.getBoundingClientRect();return ve.bottom>=0&&ve.top-z<0}getViewHeight(){return Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)}}return(S=R).\u0275fac=function(q){return new(q||S)(s.KVO(f.S))},S.\u0275prov=s.jDH({token:S,factory:S.\u0275fac,providedIn:"root"}),R})()},24:(se,E,c)=>{"use strict";c.d(E,{j:()=>f});var g=c(177),s=c(4438);let f=(()=>{var d;class S{constructor(U){this.platformId=U,this.registeredComponents=new Map,this.onRegister$=new s.bkB,this.onDestroy$=new s.bkB,(0,g.UE)(U)&&(window.experienceInspector=this)}isComponentRegistered(U){return U.__registered}getComponent(U){return this.registeredComponents.get(U)}registerComponent(U,q){this.isComponentRegistered(q)||(q.__registered=!0,this.registeredComponents.set(U,q),this.onRegister$.emit({component:q,domElement:U}))}unregisterComponent(U){const q=this.getComponent(U);q&&(q.__registered=!1,this.registeredComponents.delete(U),this.onDestroy$.emit({component:q,domElement:U}))}}return(d=S).\u0275fac=function(U){return new(U||d)(s.KVO(s.Agw))},d.\u0275prov=s.jDH({token:d,factory:d.\u0275fac,providedIn:"root"}),S})()},9118:(se,E,c)=>{"use strict";c.d(E,{x:()=>ge});var g=c(9379),s=c(467),f=c(177),d=c(4438),S=c(4412),R=c(2771),U=c(4843),q=c(5964),z=c(6697),ve=c(3178),de=c(7879),V=c(7370),Q=c(9516),ie=c(2838),K=c(1652);const ee=(0,d.zw6)("rawAppProperties"),Ee=[{key:"app_version_title_web",de:"App Version",en:"App version"},{key:"category_choose_web",de:"\xdcbernehmen",en:"Choose"},{key:"category_subtitle_web",de:"W\xe4hlen Sie Ihre gew\xfcnschte Kategorie:",en:"Choose your desired category:"},{key:"category_title_web",de:"Kategorie",en:"Category"},{key:"connection_web",de:"Verbindung",en:"Connection"},{key:"device_id_title_web",de:"Ger\xe4te-ID",en:"Device ID"},{key:"device_title_web",de:"Ger\xe4t",en:"Device"},{key:"device_model_web",de:"Ger\xe4te-Modell",en:"Device model"},{key:"dialog_file_invalid_message_web",de:"Die Datei %s in den dynamischen Ressourcen ist nicht valide. Bitte \xfcberpr\xfcfen Sie Format und Syntax.",en:"The file %s within the dynamic resources is not valid. Please check for proper syntax and format."},{key:"dialog_app_menu_invalid_message_web",de:'Sie verwenden im Men\xfc inkompatible Deeplinks/ Action URLs, die im Purple Web Kiosk nicht verf\xfcgbar sind. Eine entsprechende Liste kann der <a href="http://purple-docs.readthedocs.io/en/latest/deep_links.html" target="_blank">Dokumentation</a> entnommen werden.',en:'You are using incompatible deep links / action URLs within the menu that are not available for the Purple web newsstand. A list of those deep links you find in our <a href="http://purple-docs.readthedocs.io/en/latest/deep_links.html" target="_blank">documentation</a>.'},{key:"entitlement_error_unknown_web",de:"Es ist ein Fehler aufgetreten. Bitte versuchen Sie es noch einmal.",en:"An error occurred. Please try again."},{key:"entitlement_error_wrong_credentials_web",de:"Die eingegebenen Zugangsdaten sind nicht richtig.",en:"The credentials are not valid."},{key:"entitlement_error_user_deactivated_web",de:"Ihr Account ist deaktiviert worden. Bitte nehmen Sie Kontakt mit dem Support auf.",en:"Your account has been deactivated. Please contact the support team."},{key:"entitlement_error_authentication_error_web",de:"Falsche E-Mail-Eingabe. Bitte \xfcberpr\xfcfen Sie Ihre Eingabe.",en:"Incorrect email address. Please check your credentials."},{key:"entitlement_error_installation_limit_exceeded_web",de:"Sie haben die maximalen Ger\xe4te\u2010Aktivierungen f\xfcr Ihren VIP-Account erreicht.",en:"You have reached the maximum number of devices you can register for your Great Magazines account."},{key:"entitlement_error_system_web",de:"Es ist ein Systemfehler aufgetreten. Bitte versuchen Sie es in einigen Minuten noch einmal oder kontaktieren Sie uns.",en:"A system error occurred. Please try again later or contact our support team."},{key:"entitlement_error_parameter_web",de:"Es ist ein Parameter-Fehler aufgetreten. Bitte versuchen Sie es in einigen Minuten noch einmal oder kontaktieren Sie uns.",en:"A parameter error occurred. Please try again later or contact our support team."},{key:"error_invalid_code_web",de:"Der eingegebene Gutscheincode nicht g\xfcltig",en:"The code you have entered is not valid"},{key:"error_invalid_receipt_web",de:"Der \xfcbergebene Token ist nicht g\xfcltig",en:"The code you have entered is not valid"},{key:"error_invalid_remote_token_web",de:"Der \xfcbergebene Token ist nicht g\xfcltig",en:"The receipt is not valid"},{key:"error_issue_not_available_web",de:"Diese Ausgabe ist nicht verf\xfcgbar",en:"This issue is not available"},{key:"error_unknown_web",de:"Es ist ein unbekannter Fehler aufgetreten",en:"An unknown error occured."},{key:"issue_pages_web#one",de:"%1$s Seite",en:"%1$s Page"},{key:"issue_pages_web#other",de:"%1$s Seiten",en:"%1$s Pages"},{key:"issue_read_web",de:"Lesen",en:"Read"},{key:"issue_purchase_web",de:"Kaufen",en:"Buy"},{key:"issue_preview_web",de:"Vorschau",en:"Preview"},{key:"issue_login_web",de:"Anmelden",en:"Login"},{key:"loading_title_web",de:"",en:""},{key:"login_cancel_web",de:"Abbrechen",en:"Cancel"},{key:"login_code_placeholder_web",de:"Coupon Code",en:"Coupon Code"},{key:"login_get_code_web",de:"Sie haben noch keinen Zugang? Klicken Sie <a href=\u201ehttp://www.sprylab.com\u201c>hier</a>",en:"Don\u2019t have any login details yet? Click <a href=\u201ehttp://www.sprylab.com\u201c>here</a>"},{key:"login_howto_web",de:"<b>So funktioniert es:</b><br />Geben Sie hier bitte Ihre Zugangsdaten ein, um die Inhalte zu lesen.",en:"<b>This is how it works:</b><br/> User your login details to access the contents."},{key:"login_login_web",de:"Anmelden",en:"Login"},{key:"login_no_get_code_web",de:"Die App k\xf6nnen Sie nat\xfcrlich auch im Apple App Store und Google Play herunterladen!",en:"You can download the app in Apple App Store or Google Play too!"},{key:"login_password_placeholder_web",de:"Passwort",en:"Password"},{key:"login_subtitle_web",de:"Ver\xf6ffentlichen Sie ihre App-Inhalte im Browser!<br /><br /> Egal ob PDF oder Magazine: Die Darstellung der Inhalte erfolgt ohne weitere Arbeitsaufw\xe4nde und in gewohnter App-Qualit\xe4t.",en:"Make your app contents available in web browsers! <br><br/> No matter if PDF or magazine: Your contents will be displayed in the same quality with no additional work to be done."},{key:"login_title_web",de:"Ihre App Inhalte im Purple DS | Web Kiosk",en:"Your contents in Purple DS | Web Newsstand"},{key:"login_username_placeholder_web",de:"Nutzername",en:"Username"},{key:"manufacturer_web",de:"Hersteller",en:"Manufacturer"},{key:"menu_code_web",de:"Code",en:"Code"},{key:"menu_login_web",de:"Anmelden",en:"Login"},{key:"menu_logout_web",de:"Abmelden",en:"Logout"},{key:"menu_title_web",de:"",en:""},{key:"menu_feedback_web",de:"Feedback",en:"Feedback"},{key:"menu_subscription_web",de:"Abo",en:"Subscription"},{key:"menu_download_web",de:"PDF Herunterladen",en:"PDF Download"},{key:"menu_download_single_web",de:"Einzelseite herunterladen",en:"Download single page"},{key:"menu_download_single_left_web",de:"Linke Seite herunterladen",en:"Download left page"},{key:"menu_download_single_right_web",de:"Rechte Seite herunterladen",en:"Download right page"},{key:"menu_download_full_web",de:"Gesamtes PDF Herunterladen",en:"Download full PDF"},{key:"os_version_web",de:"OS-Version",en:"OS version"},{key:"version_title_web",de:"Version",en:"Version"},{key:"table_of_contents_web",de:"Inhaltsverzeichnis",en:"Table of contents"},{key:"cookie_info_text_web",de:"Wir verwenden Cookies, um unsere Website f\xfcr Sie zu optimieren. Mit der weiteren Nutzung dieser Website erkl\xe4ren Sie sich damit einverstanden.",en:"We use cookies to optimize our website for you. By continuing to use this website, you agree to this."},{key:"cookie_info_link_text_web",de:"Mehr Infos",en:"More Info"},{key:"cookie_info_link_href_web",de:"https://sprylab.com/cookie-policy/",en:"https://sprylab.com/cookie-policy/"},{key:"cookie_info_button_text_web",de:"OK",en:"OK"},{key:"sharing_link_web_text_web",de:"Zum Web Kiosk",en:"Open Web Newsstand"},{key:"sharing_link_custom_text_web",de:"Zur Website",en:"Open website"},{key:"sharing_link_custom_href_web",de:"https://sprylab.com",en:"https://sprylab.com"}];var De=function(Me){return Me.FIT_INSIDE="fitInside",Me.MAGAZINE="magazine",Me}(De||{}),Ge=function(Me){return Me.SELF="self",Me.BLANK="blank",Me.PARENT="parent",Me.POST_MESSAGE="postMessage",Me}(Ge||{});let ge=(()=>{var Me;class Ve{constructor(at,ct,Yt,Ft,dn,kn,ln,Jt){this.document=at,this.transferState=ct,this.contextService=Yt,this.resourceService=Ft,this.purpleEnv=dn,this.platformId=kn,this.globalService=ln,this.appData=Jt,this.configObservable=new S.t(null),this.appPropertiesSubject=new R.m(1)}getConfig(){return this.configObservable.asObservable().pipe((0,q.p)(at=>!!at),(0,z.s)(1))}loadConfig(){var at=this;return(0,s.A)(function*(){let ct=at.globalService.getData("appProperties"),Yt=at.transferState.get(ee,void 0);if(!ct||!Yt){const Ft=at.contextService.isPreview(),kn=at.appData.appWebConfig.id,ln="".concat(at.purpleEnv.MANAGER_BASE_URL,"/delivery");Yt=yield at.resourceService.getObject("".concat(ln,"/web/properties/").concat(kn)),at.transferState.set(ee,Yt),ct=yield at.propertiesToConfig(kn,Ft,ln,Yt),at.changeFavicon(),ct.messages=at.getDefaultMessages(),at.globalService.setData("appProperties",ct)}at.configObservable.next({kioskConfig:ct}),at.appPropertiesSubject.next(Yt)})()}propertiesToConfig(at,ct,Yt,Ft){var dn=this;return(0,s.A)(function*(){const kn=dn.contextService.getDynamicResourcesVersion(),ln={};ln.appId=at,ln.appName=Ft.app_name||"",ln.preview=ct,ln.deviceId="web",ln.messagesUrl="".concat(Yt,"/web/translations/").concat(at,"?preview=").concat(ct),ln.stylesUrl=Ft.web_kiosk_styles_url||"".concat(Yt,"/web/dynamicResources/").concat(at,"/webkiosk.css?preview=").concat(ct,"&version=").concat(kn),(Ft.fonts_archive||"").length>0&&(ln.fontsUrl="".concat(Yt,"/web/app/resource/").concat(at,"/fonts.css?preview=").concat(ct,"&platform=web&deviceId=web")),ln.globalFontsUrl="".concat(Yt,"/web/global/resource/").concat(at,"/fonts.css?preview=").concat(ct,"&platform=web&deviceId=web"),ln.resourceBaseUrl=dn.purpleEnv.KIOSK_BASE_URL+"/delivery/web/dynamicResources/"+at+"/",ln.resourcesVersion=kn,ln.contentFitStrategy=Ft.web_kiosk_content_fit_strategy||Ft.PRESENTER_CONTENT_FIT_STRATEGY||De.FIT_INSIDE,ln.contentMaxWidth=Ft.web_kiosk_content_max_width||"",ln.deliveryUrl=Yt,ln.presenterBaseUrl=dn.purpleEnv.KIOSK_BASE_URL+"/delivery/web/resource",ln.presenterContentUrl=dn.purpleEnv.KIOSK_BASE_URL+"/delivery/web/content",ln.attachmentBaseUrl=Yt+"/web/attachment/"+at+"/",ln.deviceClassUrl=Yt+"/config/deviceclasses",ln.useFeedbackMail=Ft.web_kiosk_feedback_mail||!1,ln.showPurchasableIssues=Ft.web_kiosk_show_purchasable_issues||!1,ln.purchaseUrl=dn.getDynamicResourcesUrl(at,Yt,Ft.web_kiosk_purchase_url||""),ln.purchasePreviewUrl=dn.getDynamicResourcesUrl(at,Yt,Ft.web_kiosk_purchase_preview_url||""),ln.subscriptionUrl=dn.getDynamicResourcesUrl(at,Yt,Ft.web_kiosk_subscription_url||""),ln.forcePurchase=Ft.web_kiosk_force_purchase||!1,ln.loginUrl=dn.getDynamicResourcesUrl(at,Yt,Ft.web_kiosk_login_url||Ft.kiosk_entitlement_custom_ui_login_url||""),ln.logoutUrl=dn.getDynamicResourcesUrl(at,Yt,Ft.web_kiosk_logout_url||""),ln.appResourceBaseUrl=Yt+"/web/app/resource/"+at+"/",ln.pageTitle=Ft.web_kiosk_title||"Purple Web Kiosk",ln.metaDescription=Ft.web_kiosk_description||null,ln.pageHeading=Ft.web_kiosk_heading||null,ln.logoUrl=Ft.web_kiosk_logo_url||null,ln.metaRobots=Ft.web_kiosk_robots||null,ln.metaCanonicalUrl=Ft.web_kiosk_canonical_url||null,ln.oauthUrl=Yt+"/entitlement/oauth/login?appId="+at+"&preview="+ct+"&platform=web",ln.oauthRefreshUrl=Yt+"/entitlement/oauth/refresh?appId="+at+"&preview="+ct,ln.cookieBannerEnabled=Ft.web_kiosk_cookie_banner_enabled||!0,ln.contentOpenTarget=Ft.web_kiosk_content_open_target||Ge.SELF,ln.initialDynamicPath=Ft.app_initial_screen_url||null,ln.downloadFileName=Ft.web_kiosk_download_file_name||"publication_issue",ln.trackingAtinternetEnabled=Ft.tracking_atinternet_enabled||!1,ln.trackingChartbeatEnabled=Ft.tracking_chartbeat_enabled||!1,ln.trackingChartbeatAccountId=Ft.tracking_chartbeat_account_id||"",ln.trackingChartbeatSiteId=Ft.tracking_chartbeat_site_id||"",ln.trackingGoogleAnalytics4Enabled=Ft.tracking_google_analytics_4_enabled||!1,ln.trackingGoogleAnalytics4Id=Ft.tracking_google_analytics_4_id||"";const Jt=Ft.app_cmp_provider_name||null;return null!=Jt&&(ln.cmpProvider=Jt,ln.cmpVendorIdAtInternet=Ft.cmp_vendor_id_atinternet||null,ln.cmpVendorIdChartbeat=Ft.cmp_vendor_id_chartbeat||null,ln.cmpVendorIdGoogleAnalytics=Ft.cmp_vendor_id_google_firebase||null,"sourcepoint"===Jt&&(ln.sourcePointAccountId=Ft.cmp_sourcepoint_account_id||null,ln.sourcePointPropertyId=Ft.cmp_sourcepoint_property_id||null,ln.sourcePointPropertyName=Ft.cmp_sourcepoint_property_name||null,ln.sourcePointPrivacyManagerId=Ft.cmp_sourcepoint_privacy_manager_id||null)),ln})()}getResource(at,ct){var Yt=this;return(0,s.A)(function*(){const Ft=yield(0,U._)(Yt.getConfig()),dn=ct?Yt.resourceService.getObject:Yt.resourceService.getString,kn=(0,V.vA)(Yt.contextService.isPreview(),Yt.purpleEnv,Yt.contextService),ln="".concat(Ft.kioskConfig.resourceBaseUrl).concat(at).concat(kn);return yield dn.apply(Yt.resourceService,[ln.toString()])})()}getDynamicResourcesUrl(at,ct,Yt){return null==Yt||0===Yt.length||Yt.startsWith("http://")||Yt.startsWith("https://")||Yt.startsWith("purple://")?Yt:ct+"/web/dynamicResources/"+at+"/"+Yt}getDefaultMessages(){const at=this.isGerman();return Ee.reduce((ct,Yt)=>(0,g.A)((0,g.A)({},ct),{},{[Yt.key]:Yt[at?"de":"en"]}),{})}isGerman(){if(window.navigator.languages&&window.navigator.languages.length){for(const at of window.navigator.languages){if("de"===at||0===at.indexOf("de-"))return!0;if("en"===at||0===at.indexOf("en-"))return!1}return!1}{const at=(0,ve.JK)();return"de"===at||0===at.indexOf("de-")}}changeFavicon(){var at=this;return(0,s.A)(function*(){if((0,f.Vy)(at.platformId)){const ct=at.appData.appWebConfig;if(null!=ct&&ct.favicons&&ct.favicons[0]){let Yt=at.document.querySelector("#appIcon");if(Yt.href=ct.favicons[0].url,Yt.type=ct.favicons[0].mimeType,null!=ct&&ct.favicons[1]){let Ft=at.document.querySelector("#another-appIcon");Ft||(Ft=at.document.createElement("link"),Yt.parentNode.insertBefore(Ft,Yt.nextSibling)),Ft.rel="icon",Ft.id="another-appIcon",Ft.href=ct.favicons[1].url,Ft.type=ct.favicons[1].mimeType}}}})()}getAppProperties(){return this.appPropertiesSubject.asObservable()}}return(Me=Ve).\u0275fac=function(at){return new(at||Me)(d.KVO(f.qQ),d.KVO(d.pJN),d.KVO(Q.V),d.KVO(ie.Q),d.KVO(de.r6),d.KVO(d.Agw),d.KVO(K.d),d.KVO(de.fj))},Me.\u0275prov=d.jDH({token:Me,factory:Me.\u0275fac,providedIn:"root"}),Ve})()},9312:(se,E,c)=>{"use strict";c.d(E,{q:()=>g});class g{}},5636:(se,E,c)=>{"use strict";c.d(E,{R:()=>q});var g=c(9379),s=c(177),f=c(7879),d=c(4438),S=c(345),R=c(9516),U=c(9118);let q=(()=>{var z;class ve{constructor(V,Q,ie,K,ee,he,Ae,ue,oe){var _;this.document=V,this.appData=Q,this.location=ie,this.purpleEnv=K,this.pxpConfig=ee,this.title=he,this.meta=Ae,this.contextService=ue,this.ignoredKeys=["og_url","canonical","title"],this.defaultKeys=["language"],this.fallbackTitle="",this.fallbackLanguage=null!==(_=this.pxpConfig.language)&&void 0!==_?_:"en",this.viewMetadata={},this.contentMetadata={},this.mergedMetadata={},oe.getConfig().subscribe(({kioskConfig:O})=>{this.fallbackTitle=O.appName})}setCacheMeta(V){const{maxAge:Q,staleWhileRevalidate:ie,staleIfError:K}=V;this.updateMetaTag("name","max-age",Q),this.updateMetaTag("name","stale-while-revalidate",ie),this.updateMetaTag("name","stale-if-error",K)}setViewSeoMetadata(V,Q){var ie,K;this.viewTitle=null!==(ie=null!==(K=null==V?void 0:V.title)&&void 0!==K?K:null==V?void 0:V.og_title)&&void 0!==ie?ie:Q,this.viewMetadata=V,this.update()}clearViewSeoMetadata(){this.viewTitle=null,this.viewMetadata={},this.update()}setContentSeoMetadata(V,Q){var ie,K;this.contentTitle=null!==(ie=null!==(K=null==V?void 0:V.title)&&void 0!==K?K:null==V?void 0:V.og_title)&&void 0!==ie?ie:Q,this.contentMetadata=V,this.update()}clearContentSeoMetadata(){this.contentTitle=null,this.contentMetadata={},this.update()}updateMetaTag(V,Q,ie){const K="".concat(V,"='").concat(Q,"'");ie?this.meta.updateTag({[V]:Q,content:ie},K):this.meta.removeTag(K)}updateCanonical(){const V=new URL(this.location.href);let ie,Q=this.location.pathname;Q.length>0&&Q.endsWith("/")&&(Q=Q.substring(0,Q.length-1));try{ie=new URL(Q,this.location.origin)}catch(Ae){console.warn("Failed to create canonical URL from path '".concat(Q,"' & origin '").concat(this.location.origin,"', using current URL instead."),Ae),ie=new URL(this.location.href)}const K=["publication","issue","bundle","content"];V.searchParams.forEach((Ae,ue)=>{(K.includes(ue)||ue.startsWith("page-set-"))&&ie.searchParams.set(ue,Ae)});const ee=ie.toString();let he=this.document.querySelector('link[rel="canonical"]');he||(he=this.document.createElement("link"),he.setAttribute("rel","canonical"),this.document.head.appendChild(he)),he.setAttribute("href",ee),this.meta.updateTag({property:"og:url",content:ee})}update(){var V,Q;const ie=null!==(V=null!==(Q=this.viewTitle)&&void 0!==Q?Q:this.contentTitle)&&void 0!==V?V:this.fallbackTitle;if(this.title.setTitle(ie),this.purpleEnv.isApp)return;this.updateCanonical();const K=this.mergedMetadata;this.mergedMetadata=(0,g.A)((0,g.A)({},this.contentMetadata),this.viewMetadata),this.updateMetadata(K,this.mergedMetadata)}updateMetadata(V,Q){const ie=new Set(Object.keys(V).concat(Object.keys(Q)).concat(this.defaultKeys));for(let K of ie){const ee=V[K],he=Q[K];this.ignoredKeys.includes(K)||(K.startsWith("og_")?this.handleOG(K,he):K.startsWith("article_")?this.handleArticle(K,he):"robots"===K?this.handleRobots(he):K.startsWith("twitter_")?this.handleTwitter(K,ee,he):"language"===K?this.handleLanguage(he):"alternates"===K?this.setAlternateLanguages(he):this.handleRemainingKeys(K,he))}}handleOG(V,Q){"og_image"===V?this.handleImage(Q):this.updateMetaTag("property",V.replace("_",":"),Q)}handleImage(V){var Q,ie,K,ee;let he;Array.isArray(V)?he=V[0]:"object"==typeof V&&null!==V&&(he=V),this.updateMetaTag("property","og:image",null===(Q=he)||void 0===Q?void 0:Q.url),this.updateMetaTag("property","og:image:width",null===(ie=he)||void 0===ie?void 0:ie.width),this.updateMetaTag("property","og:image:height",null===(K=he)||void 0===K?void 0:K.height),this.updateMetaTag("property","og:image:type",null===(ee=he)||void 0===ee?void 0:ee.type)}handleArticle(V,Q){this.updateMetaTag("property",V.replace("_",":"),Q)}handleRobots(V){let Q;this.shouldAddNoIndex()?Q="noindex, nofollow":"object"==typeof V&&null!==V?Q=Object.values(V).join(", "):"string"==typeof V&&(Q=V),this.updateMetaTag("name","robots",Q)}shouldAddNoIndex(){return this.appData.preview||!this.appData.customDomain||f.Tk.some(V=>this.location.search.includes(V))}handleTwitter(V,Q,ie){"twitter_misc"===V?this.handleTwitterMiscKeys(Q,ie):this.updateMetaTag("name",V.replace("_",":"),ie)}handleTwitterMiscKeys(V,Q){const ie=Math.max(Object.keys(null!=V?V:{}).length,Object.keys(null!=Q?Q:{}).length),K=Object.entries(null!=Q?Q:{});for(let he=0;he<ie;he++){var ee;const Ae=K[he];this.updateMetaTag("name","twitter:label".concat(he+1),null==Ae?void 0:Ae[0]),this.updateMetaTag("name","twitter:data".concat(he+1),null!==(ee=null==Ae?void 0:Ae[1])&&void 0!==ee?ee:"")}}handleLanguage(V){this.document.documentElement.setAttribute("lang",null!=V?V:this.fallbackLanguage)}setAlternateLanguages(V){const Q=this.document.querySelectorAll('link[rel="alternate"]');for(const ie of Q)this.document.head.removeChild(ie);for(const ie of null!=V?V:[]){const K=this.document.createElement("link");K.setAttribute("rel","alternate"),K.setAttribute("href",this.calculateURL(ie.path)),K.setAttribute("hreflang",ie.lang),this.document.head.appendChild(K)}}calculateURL(V){const Q=this.appData.customDomain?V:"/".concat(this.contextService.getBrand()).concat(V),ie=new URL(Q,this.location.origin);return this.appData.preview&&ie.searchParams.set("preview",this.appData.preview.toString()),ie.toString()}handleRemainingKeys(V,Q){this.updateMetaTag("name",V,Q)}}return(z=ve).\u0275fac=function(V){return new(V||z)(d.KVO(s.qQ),d.KVO(f.fj),d.KVO(f.GZ),d.KVO(f.r6),d.KVO(f.Wp),d.KVO(S.hE),d.KVO(S.W8),d.KVO(R.V),d.KVO(U.x))},z.\u0275prov=d.jDH({token:z,factory:z.\u0275fac,providedIn:"root"}),ve})()},496:(se,E,c)=>{"use strict";c.d(E,{m:()=>S});var g=c(9379),s=c(177),f=c(4438),d=c(5102);let S=(()=>{var R;class U{constructor(z,ve){this.document=z,this.purpleService=ve}selectByIssueCriteria(z,ve,de,V){const Q=[];z&&Q.push({id:{value:z}}),ve&&Q.push({alias:{value:ve}}),de&&Q.push({externalIssueId:{value:de}});const ie={first:1};return 1===Q.length?ie.issueFilter=Q[0]:Q.length>1&&(ie.issueFilter={OR:Q}),this.purpleService.getIssues(ie,!1,V).then(K=>{const ee=K.nodes[0];if(ee)return this.purpleService.getPublication(ee.publicationId).then(he=>(he&&this.setPublication(he),ee))})}selectByContentCriteria(z,ve,de,V){const Q=[];z&&Q.push({id:{value:z}}),ve&&Q.push({alias:{value:ve}}),de&&Q.push({externalIssueId:{value:de}});const ie=(0,g.A)({first:1},V?{fetchOptions:{includeResources:!0}}:{});return 1===Q.length?ie.contentFilter=Q[0]:Q.length>1&&(ie.contentFilter={OR:Q}),this.purpleService.getCatalogContents(ie,!1).then(K=>{const ee=K.nodes[0];if(ee)return this.purpleService.getPublication(ee.publicationId).then(he=>(he&&this.setPublication(he),ee))})}setPublication(z){this.currentPublication=z,z&&this.document.body.setAttribute("data-publication",z.publicationId)}reset(){this.currentPublication=void 0}}return(R=U).\u0275fac=function(z){return new(z||R)(f.KVO(s.qQ),f.KVO(d.Wj))},R.\u0275prov=f.jDH({token:R,factory:R.\u0275fac,providedIn:"root"}),U})()},2838:(se,E,c)=>{"use strict";c.d(E,{Q:()=>R});var g=c(467),s=c(4843),f=c(4438),d=c(1626),S=c(5632);let R=(()=>{var U;class q{constructor(ve,de){this.http=ve,this.serverOnlyService=de}getObject(ve,de){return this._get(ve,V=>JSON.parse(V.toString()),V=>JSON.stringify(V),de)}getString(ve){return this._get(ve,de=>de.toString(),de=>de,{responseType:"text"})}_get(ve,de,V,Q){var ie=this;return(0,g.A)(function*(){try{const K=ie.getCacheKey(ve,Q),ee=yield ie.serverOnlyService.getFromCache(K);if(ee)return de(ee);{const he=yield(0,s._)(ie.http.get(ve,Q));return ie.serverOnlyService.writeToCache(K,V(he)),he}}catch(K){return 404===(null==K?void 0:K.status)?console.debug("Loading ".concat(ve,": not found")):console.error("Error loading ".concat(ve,": ").concat(null==K?void 0:K.status),K),null}})()}getCacheKey(ve,de){return"cache:"+ve+(de?JSON.stringify(de):"")}}return(U=q).\u0275fac=function(ve){return new(ve||U)(f.KVO(d.Qq),f.KVO(S.l))},U.\u0275prov=f.jDH({token:U,factory:U.\u0275fac,providedIn:"root"}),q})()},5632:(se,E,c)=>{"use strict";c.d(E,{l:()=>s});var g=c(4438);let s=(()=>{var f;class d{constructor(){}isServer(){return!1}isBrowser(){return!0}redirectExternal(R,U){}sendError(R,U){}setStatusCode(R){}getFromCache(R){}writeToCache(R,U){}}return(f=d).\u0275fac=function(R){return new(R||f)},f.\u0275prov=g.jDH({token:f,factory:f.\u0275fac}),d})()},4748:(se,E,c)=>{"use strict";c.d(E,{i:()=>S});var g=c(4412),s=c(5964),f=c(4843),d=c(4438);let S=(()=>{var R;class U{constructor(){this.prebootCompleteSubject=new g.t(!1),this.prebootCompleted$=this.prebootCompleteSubject.asObservable().pipe((0,s.p)(z=>z))}get currentPrebootStatus(){return this.prebootCompleteSubject.getValue()}get prebootCompletedPromise(){return(0,f._)(this.prebootCompleted$)}updatePrebootStatus(z){this.prebootCompleteSubject.next(z)}}return(R=U).\u0275fac=function(z){return new(z||R)},R.\u0275prov=d.jDH({token:R,factory:R.\u0275fac,providedIn:"root"}),U})()},8482:(se,E,c)=>{"use strict";c.d(E,{y:()=>O});var g=c(2305),s=c(9379),f=c(467),d=c(4438),S=c(4412),R=c(177),U=c(5964),q=c(6354),z=c(3294),ve=c(5245),de=c(7467),V=c(3331),Q=c(6843),ie=c(4945),K=c(7816),ee=c(7879),he=c(9516),Ae=c(6078);const ue=["scriptURL"];var oe=function(B){return B.Mobile="MOBILE",B.Tablet="TABLET",B.Desktop="DESKTOP",B}(oe||{});class _ extends K.Q{constructor(G){super("Traffective Ads",G)}createInstance(){return null}}let O=(()=>{var B;class G{constructor(le,W,te,ae,_e,Le){this.contextService=le,this.platformId=W,this.consentService=te,this.pxpConfig=ae,this.router=_e,this.ngZone=Le,this.loadedSubject$=new S.t(!1),this.isTRFConfigReady$=this.loadedSubject$.asObservable(),this.isServiceInit=!1,this.isScriptLoading=!1,this.contextService.viewContext$.pipe((0,U.p)(We=>void 0!==(null==We?void 0:We.pageConfigs)),(0,q.T)(We=>{var dt;return null===(dt=We.pageConfigs)||void 0===dt?void 0:dt.traffective}),(0,z.F)()).subscribe(We=>{console.log("got trf config",We),this.isServiceInit||this.isScriptLoading||!(0,R.UE)(this.platformId)?this.isServiceInit?(console.log("mapConfig"),this.mapConfig(We),this.trfConfig=We,this.setPageConfigData()):console.log("nothing"):this.init(We)}),(0,R.UE)(this.platformId)&&this.router.events.pipe((0,U.p)(We=>We instanceof V.Z),(0,ve.i)(1)).subscribe(()=>{this.onRouteChangeStartTRF(),this.loadedSubject$.next(!1)})}init(le){var W=this;return(0,f.A)(function*(){W.isScriptLoading=!0;let te=(0,de.Y)();W.channel=te.isMobile?oe.Mobile:te.isTablet?oe.Tablet:oe.Desktop,W.mapConfig(le),W.trfConfig=le;const ae=(0,s.A)((0,s.A)({},W.defaultTraffectiveConfig),W.trfConfig);W.setdfpAdUrl(ae,ae.dfpAdUrlSlug),yield W.initPluginConfiguration(),W.isServiceInit=yield W.loadHeaderScript(ae),W.isScriptLoading=!1,W.loadedSubject$.next(W.isServiceInit)})()}initPluginConfiguration(){var le=this;return(0,f.A)(function*(){const W=new x(le.pxpConfig);le.pluginConfiguration=new _(W.getTraffectiveAdsConfigData())})()}initDefaultConfig(le){le.select((0,ie.jZ)(Q.O.AD),W=>{this.defaultTraffectiveConfig=null==W?void 0:W.traffective})}hasConsent(){return this.consentService.hasConsent(this.pluginConfiguration.getVendorId())||this.consentService.hasConsent(this.pluginConfiguration.getIABVendorId())}setPageConfigData(){var le=this;return(0,f.A)(function*(){const W=document.getElementById("trfAdSetup").getAttribute("data-traffectiveConf");if(W!==JSON.stringify(le.trfConfig)){let te;if(le.trfConfig){te=JSON.parse(W);const{targeting:ae,clientAlias:_e,dfpAdUrlSlug:Le}=le.trfConfig;le.setdfpAdUrl(te,Le),ae&&(te.targeting=[...ae]),_e&&(te.clientAlias=_e),Le&&(te.dfpAdUrlSlug=Le)}else le.trfConfig=(0,s.A)({},le.defaultTraffectiveConfig),te=le.trfConfig;document.getElementById("trfAdSetup").setAttribute("data-traffectiveConf",JSON.stringify(te))}le.onRouteChangeCompleteTRF(),le.loadedSubject$.next(!0)})()}loadHeaderScript(le){return(0,f.A)(function*(){if(!le.scriptURL)return console.error("No TRF script URL provided"),!1;try{const W=document.createElement("script");W.id="trfAdSetup",W.type="text/javascript",W.src=le.scriptURL;const ae=(0,g.A)(le,ue);W.setAttribute("data-traffectiveConf",JSON.stringify(ae)),W.async=!0,document.head.appendChild(W)}catch(W){return console.error("Error loading TRF script:",W),!1}return console.debug("TRF script loaded and not initialized yet"),new Promise(W=>{document.addEventListener("traffectiveApiReady",te=>{console.debug("TRF initialized",te),W(!0)})})})()}mapConfig(le){if(le){le.targeting||(le.targeting=[]);for(let te=0;te<le.targeting.length;te++){var W;le.targeting[te]={key:le.targeting[te].key,values:null!==(W=le.targeting[te])&&void 0!==W&&null!==(W=W.values)&&void 0!==W&&W.length?le.targeting[te].values:null,value:le.targeting[te].value||null}}le.targeting.push({key:"channel",values:null,value:this.channel})}}onRouteChangeStartTRF(){try{this.ngZone.runOutsideAngular(()=>{var le;null===(le=window.traffective)||void 0===le||le.routeChangeStart()})}catch(le){console.warn("Traffective call error on Navigation Start: ",le)}}onRouteChangeCompleteTRF(){try{this.ngZone.runOutsideAngular(()=>{var le;null===(le=window.traffective)||void 0===le||le.routeChangeComplete()})}catch(le){console.warn("Traffective call error on Navigation Complete: ",le)}}setdfpAdUrl(le,W){var te,ae;null!==(te=this.dfpAdUrlBase)&&void 0!==te||(this.dfpAdUrlBase=null===(ae=this.defaultTraffectiveConfig)||void 0===ae?void 0:ae.dfpAdUrl),le.dfpAdUrl=this.dfpAdUrlBase+(W?"/".concat(W):"")}}return(B=G).\u0275fac=function(le){return new(le||B)(d.KVO(he.V),d.KVO(d.Agw),d.KVO(Ae.e),d.KVO(ee.Wp),d.KVO(V.Ix),d.KVO(d.SKi))},B.\u0275prov=d.jDH({token:B,factory:B.\u0275fac}),G})();class x{constructor(G){this.experienceConfig=G}getTraffectiveAdsConfigData(){var G;return(null===(G=this.experienceConfig.purple)||void 0===G||null===(G=G.ads)||void 0===G?void 0:G.traffective)||(this.experienceConfig.traffective_ad?{configuration:{},consent:{vendorId:null===(le=this.experienceConfig.traffective_ad)||void 0===le?void 0:le.cmpVendorIdTraffectiveAd,iabVendorId:null===(W=this.experienceConfig.traffective_ad)||void 0===W?void 0:W.cmpIABIdTraffectiveAd}}:null);var le,W}}},6889:(se,E,c)=>{"use strict";c.d(E,{K:()=>W,r:()=>le});var G,g=c(9379),s=c(467),f=c(4438),d=c(7673),S=c(9724),R=c(4843),U=c(5558),q=c(8141),z=c(9568),ve=c(1594),de=c(4404),Q=c(5630),ie=c(4945),K=c(7879),ee=c(5706),he=c(177),Ae=c(8545),ue=c(7370),oe=c(7010),_=c(9516),O=c(2838),x=c(5102),B=c(1652);const pe=(0,f.zw6)("UrlResolverService.alreadyResolvedData");class le extends Error{constructor(_e,Le){super("[RedirectLoopError] ".concat(_e,": [\n").concat(Le.map(We=>' "'.concat(We,'"')).join("\n"),"]")),this.redirectChain=Le,this.redirectChain=Le}}class W{constructor(_e,Le,We,dt,Ye,we,ze,Ke){this.store=_e,this.transferState=Le,this.contextService=We,this.resourceService=dt,this.purpleService=Ye,this.globalService=we,this.document=ze,this.purpleEnv=Ke,this.alreadyResolvedData={},this.alreadyResolvedData=this.transferState.get(pe,{});const je=We.baseUrl$.pipe((0,U.n)(Ze=>{const k=(0,ue.vA)(this.contextService.isPreview(),this.purpleEnv,this.contextService),F="".concat(Ze,"assets/scripts/url.resolver.js").concat(k);return Le.hasKey(W.URL_RESOLVER_JS_KEY)?(0,d.of)(Le.get(W.URL_RESOLVER_JS_KEY,"")):(0,S.H)(dt.getString(F.toString()))}));this.urlResolverModule$=je.pipe((0,q.M)(Ze=>{Le.hasKey(W.URL_RESOLVER_JS_KEY)||this.transferState.set(W.URL_RESOLVER_JS_KEY,Ze)}),(0,U.n)(function(){var Ze=(0,s.A)(function*(k){if(!k)return;let F;try{yield import("data:text/javascript;base64,"+btoa(k)).then(P=>F=P.default)}catch(Y){console.error("Error executing code:",Y)}return F});return function(k){return Ze.apply(this,arguments)}}()),(0,z.t)({refCount:!0,bufferSize:1})),this.urlResolverModule$.subscribe()}getGlobalData(){return this.globalService.getGlobalData()}findFinalRedirect(_e){var Le=this;return(0,s.A)(function*(){let We=yield Le.purpleService.getRedirects({redirectFilter:{AND:[{identifier:{value:_e.identifier}},{type:{value:_e.redirectType}}]}}).then(Ye=>Ye.nodes);if(We.length>1&&console.error("Catalog API has multiple Redirects of type ".concat(_e.redirectType," and identifier ").concat(_e.identifier,", using the first one")),0===We.length)throw new Error("Couldn't find redirect for redirect match, something went wrong! type ".concat(_e.redirectType," identifier ").concat(_e.identifier));const dt=[];for(;;){const Ye=yield Le.purpleService.getRedirects({redirectFilter:{AND:[{identifier:{value:We[0].target}},{type:{value:_e.redirectType}}]}}).then(we=>we.nodes);if(dt.length>W.MAX_REDIRECT_RETRIES)throw new le("Too many redirects starting from ".concat(_e.identifier," (type ").concat(_e.redirectType,")"),dt);if(!Ye.length)break;dt.push(Ye[0].identifier),We=Ye}return We[0]})()}getViewFromPath(_e){var Le=this;return(0,s.A)(function*(){const We=yield(0,R._)(Le.urlResolverModule$);if(null==We||!We.urlToViewResolvers)return null;_e.startsWith("/")||(_e="/"+_e);for(const dt of We.urlToViewResolvers){const we=(0,Q.YW)(dt.pathPattern)(_e);if(we){const ze=Object.values(we.params).reduce((Ke,je)=>(Array.isArray(je)?Ke.push(...je):Ke.push(je),Ke),[]);yield Le.resolveSlugs(ze);try{const Ke=yield dt.viewResolver({match:we,resolvedData:Le.alreadyResolvedData,dataResolver:Le});if((0,Ae.X0)(Ke))return(0,g.A)((0,g.A)({},Ke),{},{pathParams:we.params?(0,g.A)({},we.params):void 0});if((0,Ae.ie)(Ke))return Ke}catch(Ke){if(console.error("Error in resolver for pathPattern "+dt.pathPattern,Ke),Ke instanceof le)throw Ke}}}return{notFound:!0}})()}resolveSlugs(_e){var Le=this;return(0,s.A)(function*(){const We=_e.filter(Ye=>!Le.alreadyResolvedData[Ye]);if(0===We.length)return Le.alreadyResolvedData;const dt=yield Le.purpleService.lookupPathSegments(We);for(const Ye of dt)Le.alreadyResolvedData[Ye.identifier]=Ye.matches.reduce((_e,Le)=>{switch(Le.type){case"COLLECTION":_e.collections.push(Le);break;case"CONTENT":_e.contents.push(Le);break;case"REDIRECT":_e.redirects.push(Le);break;case"TAXONOMY":_e.taxonomies.push(Le);break;default:console.error("Unknown PathSegmentMatch type ",Le)}return _e},{contents:[],collections:[],redirects:[],taxonomies:[]});return Le.transferState.set(pe,Le.alreadyResolvedData),Le.alreadyResolvedData})()}getPathFromData(_e,Le){var We=this;return(0,s.A)(function*(){return new Promise((dt,Ye)=>{We.urlResolverModule$.subscribe(function(){var we=(0,s.A)(function*(ze){try{var Ke;const je=yield null==ze||null===(Ke=ze.dataToPathResolver)||void 0===Ke?void 0:Ke.call(ze,(0,g.A)((0,g.A)({},_e),{},{dataResolver:We,callerMetadata:Le}));dt(je)}catch(je){console.error("dataToPathResolver failed: ",je),Ye(je)}});return function(ze){return we.apply(this,arguments)}}())})})()}getPathForTaxonomy(_e){var Le=this;return(0,s.A)(function*(){return Le.getPathFromData({taxonomy:_e}).then(We=>We.paths[0])})()}getPathForContent(_e){var Le=this;return(0,s.A)(function*(){if((0,ee.xl)(_e))throw{code:de.ERROR_CODE.ILLEGAL_ARGUMENTS,message:"getPathForContent is not implemented for issues"};try{let dt=yield Le.getPathFromData({content:_e});if((null==dt?void 0:dt.paths.length)>0)return dt.paths[0]}catch(dt){}const We=(0,ee.mF)(_e)?_e.postType:void 0;return new Promise(dt=>{(0,ie.h5)(We,Le.contextService.getContext(),Le.contextService.$functions,Le.globalService.getGlobalData())(Le.store).pipe((0,ve.$)()).subscribe(function(){var Ye=(0,s.A)(function*(we){if(we){let ze=yield(0,K.ZC)(Le.purpleService,we,null,_e);ze=Le.replaceAll(ze,"/%20/","/"),ze=Le.replaceAll(ze,"%20",""),dt(ze)}else dt(null)});return function(we){return Ye.apply(this,arguments)}}())})})()}replaceAll(_e,Le,We){return _e.replace(new RegExp(Le,"g"),We)}findContentById(_e,Le){var We=this;return(0,s.A)(function*(){return We.purpleService.getCatalogContent(_e,!1,Le)})()}findContents(_e){var Le=this;return(0,s.A)(function*(){return Le.purpleService.getCatalogContents(_e)})()}findCollectionsWithContentId(_e){var Le=this;return(0,s.A)(function*(){return(yield Le.purpleService.getCollections({collectionFilter:{}})).nodes})()}findTaxonomyById(_e,Le,We){var dt=this;return(0,s.A)(function*(){return dt.purpleService.getTaxonomy(_e,Le,!1,We)})()}findPublicationById(_e){var Le=this;return(0,s.A)(function*(){return Le.purpleService.getPublication(_e)})()}findTaxonomyAncestors(_e,Le,We){var dt=this;return(0,s.A)(function*(){let Ye=[];for(;_e;){let we=yield dt.purpleService.getTaxonomy(_e,Le,!1,We);if(!we)break;Ye.unshift(we),_e=we.parentId}return Ye})()}findCollectionById(_e){var Le=this;return(0,s.A)(function*(){return Le.purpleService.getCollection(_e)})()}}(G=W).URL_RESOLVER_JS_KEY=(0,f.zw6)("url.resolver.js"),G.MAX_REDIRECT_RETRIES=10,G.\u0275fac=function(_e){return new(_e||G)(f.KVO(oe.il),f.KVO(f.pJN),f.KVO(_.V),f.KVO(O.Q),f.KVO(x.Wj),f.KVO(B.d),f.KVO(he.qQ),f.KVO(K.r6))},G.\u0275prov=f.jDH({token:G,factory:G.\u0275fac,providedIn:"root"})},8545:(se,E,c)=>{"use strict";function g(d){return!(null==d||!d.redirectTarget)}function s(d){return!(null==d||!d.viewName)}c.d(E,{X0:()=>s,ie:()=>g})},1510:(se,E,c)=>{"use strict";c.d(E,{h:()=>K});var g=c(9379),s=c(467),f=c(970),S=c(4412),R=c(1985),U=c(152),q=c(9360),z=c(3600),ve=c(4438),de=c(9516),V=c(5102);const Q=(0,q.zk)(),ie="userTags";let K=(()=>{var ee;class he{constructor(ue,oe){this.contextService=ue,this.purpleService=oe,this.rawUserTags=new S.t(null)}init(){var ue=this;return(0,s.A)(function*(){const oe=JSON.parse(yield ue.purpleService.getState(ie));oe&&ue.setUpdatedUserTags(oe),new R.c(O=>{ue.purpleService.addLifecycleListener(x=>{"RESUMED"===x.type&&O.next(x)}),ue.purpleService.addInvalidationListener(()=>O.next()),ue.purpleService.addConnectionStateListener(x=>{x.state===f.CONNECTION_STATE.ONLINE&&O.next(x)}),setTimeout(()=>O.next(),10)}).pipe((0,U.B)(1e3)).subscribe(O=>{ue.recalcUserTags()})})()}setUpdatedUserTags(ue){this.userTags=ue,this.purpleService.setState(ie,JSON.stringify(ue)),this.contextService.setData("userTags",ue)}getPurchasedSubscriptions(){var ue=this;return(0,s.A)(function*(){return(yield ue.purpleService.getSubscriptions({})).nodes.filter(oe=>oe.currentReceiptInfo||oe.historicReceiptInfo.hadPurchased)})()}getPurchasedPublicationProducts(){var ue=this;return(0,s.A)(function*(){return yield ue.purpleService.getPublicationProducts({publicationProductFilter:{purchased:{value:!0}}})})()}recalcUserTags(){var ue=this;return(0,s.A)(function*(){if(!Q.calculateStorefrontUserTags||"function"!=typeof Q.calculateStorefrontUserTags)return void console.debug("No calculateStorefrontUserTags(params) found. UserTag calculation skipped");let oe;try{const B=yield ue.purpleService.getState(z.a).then(G=>!!G&&JSON.parse(G));if(B)oe=B;else{const[G,pe,le,W,te]=yield Promise.all([ue.getPurchasedSubscriptions(),ue.purpleService.getCatalogMetadata(),ue.getPurchasedPublicationProducts(),ue.purpleService.getPublications({},!0),ue.contextService.updateMetadata()]);oe=yield Q.calculateStorefrontUserTags({subscriptions:G,activePurchaseTypes:pe.activePurchaseTypes,publicationProducts:le,metadata:ue.contextService.getMetadata(),lastUserTags:ue.userTags?(0,g.A)({},ue.userTags):void 0,publications:W.nodes})}}catch(B){return void console.warn("Error while calculating user tags: ",B)}if(!oe||"object"!=typeof oe)return void console.warn("UserTags calculated, but no object returned");ue.rawUserTags.next(oe);const _=ue.createTagSet(oe),O=ue.createTagSet(ue.userTags||{});if(ue.areSetsEqual(_,O))return;const x={};for(const B of _)x[B]=!0;for(const[B,G]of Object.entries(oe)){const pe={key:B};"string"==typeof G?pe.stringValue=G:"boolean"==typeof G&&G&&(pe.booleanValue=G),ue.purpleService.setUserAttribute(pe)}ue.setUpdatedUserTags(x)})()}createTagSet(ue){const oe=new Set;for(const[_,O]of Object.entries(ue))"boolean"==typeof O&&O&&oe.add(_);return oe}areSetsEqual(ue,oe){if(ue.size!==oe.size)return!1;for(const _ of ue)if(!oe.has(_))return!1;return!0}}return(ee=he).\u0275fac=function(ue){return new(ue||ee)(ve.KVO(de.V),ve.KVO(V.Wj))},ee.\u0275prov=ve.jDH({token:ee,factory:ee.\u0275fac,providedIn:"root"}),he})()},8860:(se,E,c)=>{"use strict";c.d(E,{A:()=>s,d:()=>f});var g=c(7010);const s=(0,g.VP)("[Config] Load Configs",(0,g.xk)()),f=(0,g.VP)("[Config] Load Full Config Success",(0,g.xk)())},9947:(se,E,c)=>{"use strict";c.d(E,{H:()=>S,i:()=>d});var g=c(9379),s=c(7010),f=c(8860);const d="config";function S(R){return(0,s.vy)(R,(0,s.on)(f.A,U=>U),(0,s.on)(f.d,(U,q)=>{const z=JSON.parse(JSON.stringify(q));return Object.keys(z).forEach(ve=>{"object"==typeof z[ve]&&!Array.isArray(z[ve])&&(z[ve]=(0,g.A)((0,g.A)({},U[ve]),q[ve]))}),z}))}},7769:(se,E,c)=>{"use strict";c.d(E,{Kv:()=>z,LM:()=>ie,Vi:()=>Q,h5:()=>ve,jZ:()=>de,m6:()=>K});var g=c(7010),s=c(9947),f=c(9085),d=c(6354),S=c(8890),R=c(6843),U=c(8179);const q=(0,g.UX)(s.i);function z(ee,he,Ae,ue){return oe=>oe.select(q).pipe((0,f.E)(R.O.VIEW),(0,S.ZE)(),(0,d.T)(_=>_.filter(O=>!O.globalData)),(0,d.T)(_=>_.filter(O=>!O.condition||(0,U.ru)(O,he,Ae,ue))),(0,d.T)(_=>_.find(O=>O.name===ee)),S.TM,(0,S.ZE)())}function ve(ee,he,Ae,ue){return oe=>oe.select(q).pipe((0,f.E)(R.O.VIEW),(0,d.T)(_=>_.filter(O=>!O.globalData)),(0,d.T)(_=>_.filter(O=>!O.condition||(0,U.ru)(O,he,Ae,ue))),(0,d.T)(_=>_.find(x=>!!x.postView&&x.postView.postType===ee)||_.find(x=>!!x.postView&&!x.postView.postType)||null))}function de(ee){return he=>he.select(q).pipe((0,f.E)(ee),(0,S.ZE)(),S.TM)}function V(ee,he){return Ae=>de(ee)(Ae).pipe((0,d.T)(ue=>ue.find(oe=>oe.id===he)),(0,S.ZE)())}function Q(ee){return V(R.O.APP_BAR,ee)}function ie(ee){return V(R.O.NAVIGATION,ee)}function K(){return ee=>ee.select(q).pipe((0,f.E)(R.O.VIEW),(0,S.ZE)(),(0,d.T)(he=>he.find(Ae=>Ae.globalData)),S.TM,(0,S.ZE)())}},4945:(se,E,c)=>{"use strict";c.d(E,{L2:()=>z,Vi:()=>ee.Vi,jZ:()=>ee.jZ,iL:()=>K.i,HN:()=>K.H,sb:()=>ie,m6:()=>ee.m6,LM:()=>ee.LM,Kv:()=>ee.Kv,h5:()=>ee.h5});var g=c(8860),s=c(177),f=c(6157),d=c(8141),S=c(6843),R=c(4438),U=c(7010),q=c(8745);let z=(()=>{var he;class Ae{constructor(oe,_,O,x){this.actions$=oe,this.store=_,this.document=O,this.configLoaderService=x,this.loadConfigs$=(0,f.EH)(()=>this.actions$.pipe((0,f.gp)(g.A),(0,d.M)(()=>this.configLoaderService.getConfig().subscribe(B=>this.store.dispatch(g.d(B))))),{dispatch:!1})}ngrxOnInitEffects(){return g.A({key:S.O.URL})}}return(he=Ae).\u0275fac=function(oe){return new(oe||he)(R.KVO(f.En),R.KVO(U.il),R.KVO(s.qQ),R.KVO(q.Bh))},he.\u0275prov=R.jDH({token:he,factory:he.\u0275fac}),Ae})();var ve=c(9379),de=c(2348),V=c(2261);const ie={[S.O.URL]:{[S.O.VIEW]:"views.json",[S.O.MESSAGE]:"messages.json",[S.O.APP_BAR]:"appBar.json"},[S.O.VIEW]:[],[S.O.MESSAGE]:(0,ve.A)({},{CONTENT_TITLE:"%s",CONTENT_DESCRIPTION:"%s",CONTENT_PUBLICATION_TITLE:"%s",CONTENT_ACTION_PURCHASE:"Purchase for %s",CONTENT_ACTION_PURCHASE_LOADING:"Loading price...",CONTENT_ACTION_PURCHASE_UNAVAILABLE:"Price not available",CONTENT_ERROR:"Error loading content data",CONTENT_ERROR_BUTTON:"Try again",CONTENT_UPDATE_BADGE_MESSAGE:"Update available",CONTENT_DESCRIPTION_TOGGLE_COLLAPSE:"Show less",CONTENT_DESCRIPTION_TOGGLE_EXPAND:"Show more",CONTENT_ACTION_READ:"Read",CONTENT_ACTION_SUBSCRIBE:"Subscribe",CONTENT_ACTION_COUPON:"Coupon",CONTENT_ACTION_LOGIN:"Login",ISSUE_DESCRIPTION_TOGGLE_EXPAND:"Show more",ISSUE_DESCRIPTION_TOGGLE_COLLAPSE:"Show less",ISSUE_ACTION_READ:"Read",ISSUE_ACTION_PURCHASE:"Purchase for %s",ISSUE_ACTION_PURCHASE_LOADING:"Loading price...",ISSUE_ACTION_PURCHASE_UNAVAILABLE:"Price not available",ISSUE_ACTION_DOWNLOAD:"Download",ISSUE_ACTION_PREVIEW:"Preview",ISSUE_ACTION_SUBSCRIBE:"Subscribe",ISSUE_ACTION_DOWNLOADING:"Downloading...",ISSUE_ACTION_DELETE:"Delete",ISSUE_ACTION_LOGIN:"Login",ISSUE_ACTION_CANCEL:"Cancel",ISSUE_ACTION_COUPON:"Coupon",ISSUE_ERROR:"Error loading issue data",ISSUE_ERROR_BUTTON:"Try again",ISSUE_DOWNLOAD_CONFIRM_TITLE:"Download issue",ISSUE_DOWNLOAD_CONFIRM_MESSAGE:'Do you want to download "%(content.name)s"?',ISSUE_DOWNLOAD_CONFIRM_OK:"OK",ISSUE_DOWNLOAD_CONFIRM_CANCEL:"Cancel",ISSUE_TITLE:"%s",ISSUE_DESCRIPTION:"%s",ISSUE_PUBLICATION_TITLE:"%s",ISSUE_DELETE_TITLE:"Delete issue",ISSUE_DELETE_MESSAGE:'Do you really want to delete the issue %s"?',ISSUE_DELETE_CONFIRM:"Delete",ISSUE_DELETE_CANCEL:"Cancel",ISSUE_UPDATE_BADGE_MESSAGE:"Update available",ISSUE_UPDATE_TITLE:"Update available",ISSUE_UPDATE_MESSAGE:'A new version of this issue "%s" is available. Would you like to read the old version or the new one?',ISSUE_UPDATE_NEW_VERSION:"Read new version",ISSUE_UPDATE_OLD_VERSION:"Read old version",PUBLICATION_TITLE:"%s",PUBLICATION_DESCRIPTION:"%s",PUBLICATION_ISSUES_PER_YEAR:"<strong>%s issues</strong> published per year",PUBLICATION_CONTENTS_PER_YEAR:"<strong>%s contents</strong> published per year",PUBLICATION_SUBSCRIPTIONS_TITLE:"Store Subscriptions",PUBLICATION_SUBSCRIPTIONS_HEADER:"Introduction text regarding subscriptions",PUBLICATION_SUBSCRIPTIONS_FOOTER:"<strong>Terms of use</strong> Terms of use go here",PUBLICATION_SUBSCRIPTIONS_RESTORE_PURCHASES:"Restore Purchases",PUBLICATION_SUBSCRIPTIONS_MANAGE_SUBSCRIPTIONS:"Manage Subscriptions",DROPDOWN_ISSUE_STATE_RESET:"All Issues",DROPDOWN_ISSUE_STATE_PURCHASED:"My Issues",DROPDOWN_ISSUE_STATE_LOCAL:"My Downloads",DROPDOWN_CATEGORY_RESET:"All categories",TOGGLE_PUBLICATION_TYPE_KIOSK:"Issues",TOGGLE_PUBLICATION_TYPE_CHANNEL:"Articles",SEARCH_FIELD_PLACEHOLDER:"Search...",SEARCH_RESULT_TITLE:"Search results",SEARCH_RESULT_EMPTY_TITLE:"Search Results",SEARCH_RESULT_TOGGLE_EXPAND:"Show more",SEARCH_RESULT_TOGGLE_COLLAPSE:"Show less",SEARCH_RESULT_PAGE_HIT_EXCERPT:"%s",SEARCH_RESULT_PAGE_LABEL_MESSAGE:"Page %s",SEARCH_RESULT_NO_SEARCH:"Please enter a search phrase.",SEARCH_RESULT_NO_RESULT:'No content was found for your search phrase "%1$s". Please try again.',LOGIN_TITLE:"Login",LOGIN_TEASER:"Log in for more content.",LOGIN_TEASER_RELOGIN:"You have been logged out. Please log in again.",LOGIN_HELP:'Forgotten your password? <a href="https://sprylab.com" target="_blank">recover</a>',LOGIN_USERNAME_PLACEHOLDER:"Email",LOGIN_PASSWORD_PLACEHOLDER:"Password",LOGIN_SUBMIT_BUTTON:"Log in",LOGIN_LOGOUT_TITLE:"Logout",LOGIN_LOGOUT_TEASER:"You can log out here.",LOGIN_LOGOUT_HELP:"",LOGIN_LOGOUT_BUTTON:"Log out",LOGOUT_TITLE:"Logout",LOGOUT_MESSAGE:"Do you really want to logout?",LOGOUT_BUTTON_CONFIRM:"Logout",LOGOUT_BUTTON_CANCEL:"Cancel",COUPON_TITLE:"Coupon",COUPON_TEASER:"Here you can enter your coupon code.",COUPON_CODE_TITLE:"Please enter your coupon code",COUPON_CODE_PLACEHOLDER:"coupon code",COUPON_SUBMIT_BUTTON:"Activate",COUPON_ACTIVATED_TITLE:"Your activated coupon codes",COUPON_DEACTIVATE_BUTTON:"Delete",COUPON_VALID_TITLE:"Add coupon",COUPON_VALID_MESSAGE:"The code you entered is valid.",COUPON_VALID_BUTTON_OK:"OK",COUPON_VALID_BUTTON_CANCEL:"Cancel",COUPON_DEACTIVATE_TITLE:"Deactivate coupon code",COUPON_DEACTIVATE_MESSAGE:'Do you really want to deactivate the code %s"?',COUPON_DEACTIVATE_BUTTON_CONFIRM:"OK",COUPON_DEACTIVATE_BUTTON_CANCEL:"Cancel",DIALOG_TITLE:"Dialog",DIALOG_ERROR:"Error",ERROR_SUBSCRIPTION:"The subscription could not be purchased. Please try again later.",ERROR_PURCHASE:"The purchase could not be completed. %s",ERROR_PUBLICATION_COMPLETION:"Product data could not be loaded. %s",ERROR_SEARCH:"The search could not be performed. Please try again later",ERROR_LOGIN:"The login could not be performed. %s",ERROR_COUPON_INVALID:"The code you entered is not valid.",ERROR_COUPON_INVALID_BUTTON:"OK",ERROR_COUPON_EXISTS:"This code is already added.",ERROR_COUPON_EXISTS_BUTTON:"OK",ERROR_COUPON_OFFLINE:"No internet connection! This code could not be added.",ERROR_COUPON_OFFLINE_BUTTON:"OK",ERROR_COUPON_DEACTIVATE:"This code could not be deactivated.",ERROR_COUPON_DEACTIVATE_BUTTON:"OK",ERROR_COUPON_DEACTIVATE_OFFLINE:"No internet connection! This code could not be deactivated.",ERROR_COUPON_DEACTIVATE_OFFLINE_BUTTON:"OK",ERROR_COUPON_DEACTIVATE_UNKNOWN:"Code is unknown! This code could not be deactivated.",ERROR_COUPON_DEACTIVATE_UNKNOWN_BUTTON:"OK",ERROR_DOWNLOAD:"Download failed for %2$s. %1$s",ERROR_PREVIEW_OPEN:"Error opening preview. %s",ERROR_CONTENT_OPEN:"Error opening content. %s",ACCESS_DENIED:"Access denied.",ALREADY_LOGGED_IN:"You are already logged in.",USER_DEACTIVATED:"Your account is deactivated.",INSTALLATION_LIMIT_EXCEEDED:"The limit of simultaneously logged in devices has been reached.",ALREADY_OWNED:"You already own this product.",CANCELLED:"Process was cancelled by user.",CONFIGURATION_ERROR:"Error in remote system.",ISSUE_NOT_FOUND:"The requested content could not be found.",INSUFFICIENT_SPACE:"The storage on your device is not sufficient.",INVALID_CREDENTIALS:"Please check your username and password.",NETWORK:"Please check your internet connection.",NO_ISSUES_FOUND:"The requested content could not be found.",NOT_FOUND:"The requested content could not be found.",NOT_LOGGED_IN:"You are not logged in.",PAYMENT_REQUIRED:"Access denied.",RESOURCE_NOT_FOUND:"The requested resource could not be found.",UNKNOWN:"An unknown error occurred.",UNKNOWN_OFFER:"The requested offer could not be found.",UNKNOWN_PRODUCT:"The requested product could not be found.",UNKNOWN_VENDOR:"Vendor is unknown.",VALIDATION_FAILED:"The purchase could not be validated.",PULL_TO_REFRESH_PULL:"Pull to refresh",PULL_TO_REFRESH_RELEASE:"Release to refresh",LIST_NO_RESULTS:"There is no content matching the filter criteria.",LIST_ERROR:"Error loading data. %s",LIST_ERROR_BUTTON:"Reload",LIST_ACTION_SELECT_ALL:"Select all",LIST_ACTION_UNSELECT_ALL:"Un-select all",LIST_ACTION_CONFIRM:"Confirm",LIST_ACTION_RESET:"Reset",LIST_ACTION_NEXT:"Next Page Set",LIST_ENTRY_TOGGLE_EXPAND:"Show %u more",LIST_ENTRIES_TOGGLE_EXPAND:"Show %u more",LIST_ENTRY_TOGGLE_COLLAPSE:"Show %u less",LIST_ENTRIES_TOGGLE_COLLAPSE:"Show %u less",LIST_GROUPED_ENTRY_TOGGLE_EXPAND:"Show %u more",LIST_GROUPED_ENTRIES_TOGGLE_EXPAND:"Show %u more",LIST_GROUPED_ENTRY_TOGGLE_COLLAPSE:"Show %u less",LIST_GROUPED_ENTRIES_TOGGLE_COLLAPSE:"Show %u less",BOOKMARK_TITLE:"%s",MENU_ITEM:"%s",BOOKMARK_CREATION_DATE_MESSAGE:"Added on %s",BOOKMARK_PAGE_LABEL_MESSAGE:"Page %s",BOOKMARK_NO_RESULTS:"There are no bookmarks.",BOOKMARK_ERROR:"Error loading bookmarks",BOOKMARK_ERROR_BUTTON:"Reload",BOOKMARK_DELETE_TITLE:"Delete bookmark",BOOKMARK_DELETE_MESSAGE:"Are you sure you want to delete this bookmark?",BOOKMARK_DELETE_MESSAGE_WITH_TITLE:'Are you sure you want to delete the bookmark for "%s"?',BOOKMARK_DELETE_All_TITLE:"Delete bookmarks",BOOKMARK_DELETE_ALL_MESSAGE:"Are you sure you want to delete all bookmarks?",BOOKMARK_DELETE_ALL_OF_ISSUE_MESSAGE:'Are you sure you want to delete all bookmarks for the issue "%s"?',BOOKMARK_DELETE_CONFIRM:"Delete",BOOKMARK_DELETE_CANCEL:"Cancel",ERROR_DELETE_BOOKMARK:"This bookmark could not deleted. %s",ERROR_DELETE_BOOKMARK_WITH_TITLE:'The bookmark for "%2$s" could not deleted. %1$s',ERROR_DELETE_ALL_BOOKMARKS:"Not all bookmarks could be deleted. %s",ERROR_ADD_BOOKMARK:"Bookmark could not be created. %1$s",ERROR_SHARE:"Content could not be shared.",PUBLICATION_COMPLETION_TITLE:"Complete your collection",PUBLICATION_COMPLETION_PROMOTION_TEXT:"Get all %1$s back issues and save over %2$s<br>Was %3$s Now %4$s",PUBLICATION_COMPLETION_ACTION_PURCHASE:"Purchase for %s",SUBSCRIPTION_TITLE:"%s",SUBSCRIPTION_ISSUES_PROMOTION:"%1$s issues for %2$s.",SUBSCRIPTION_ISSUES_ADDITIONAL_PROMOTION:"%1$s issues for the price of %2$s.<br>Was %3$s Now %4$s.",SUBSCRIPTION_ACTION_PURCHASE:"Purchase for %s",SUBSCRIPTION_ACTION_PURCHASE_UNAVAILABLE:"Price not available",SUBSCRIPTION_PRICE:"%s",SUBSCRIPTION_PRICE_FINAL:"Then %1$s / %2$s %3$s",SUBSCRIPTION_PRICE_INTRODUCTORY:"Try %1$s x %2$s %3$s for %4$s",SUBSCRIPTION_PRICE_TRIAL:"Free for %1$s %2$s",SUBSCRIPTION_PRICE_DISCOUNT:"Try %1$s x %2$s %3$s for %4$s",SUBSCRIPTION_DESCRIPTION:"%s",MONTH:"Month",MONTHS:"Months",YEAR:"Year",YEARS:"Years",WEEK:"Week",WEEKS:"Weeks",DAY:"Day",DAYS:"Days",RESTORE_PURCHASES:"Restore purchases",RESTORE_PURCHASES_CONFIRM:"Do you want to restore your purchases?",RESTORE_PURCHASES_SUCCEEDED:"Purchases restored successfully",RESTORE_PURCHASES_FAILED:"Restoring purchased failed",VIEW_ERROR:"Error loading data. %s",VIEW_ERROR_BUTTON:"Reload",ERROR_PRODUCT:"Product data could not be loaded. %s",ERROR_DEEP_LINK_LANDING:"Shared issue could not be opened. %s",APP_MENU_XML_ERROR_MESSAGE:"An Error occured loading app_menu.xml: %s (message: %s)",APP_MENU_XML_ERROR_TITLE:"Error loading app menu",APP_MENU_XML_ERROR_CONFIRM:"Ok",TOC_TITLE:"TABLE OF CONTENTS",DOWNLOAD_PDF_SINGLE_LEFT:"Download left page",DOWNLOAD_PDF_SINGLE_RIGHT:"Download right page",DOWNLOAD_PDF_SINGLE:"Download single page",DOWNLOAD_PDF_FULL:"Download full PDF"}),[S.O.APP_BAR]:[{id:"default",scrollBehavior:de.K.NONE,logo:!0},{id:"back",scrollBehavior:de.K.NONE,logo:!0,leftButton:V.F.BACK}],[S.O.NAVIGATION]:[],[S.O.DOWNLOAD_OPTIONS]:{}};var K=c(9947),ee=c(7769)},2628:(se,E,c)=>{"use strict";c.d(E,{Uo:()=>s,hc:()=>f,w9:()=>d});var g=c(7010);const s=(0,g.VP)("[IssueStates] Load IssueStates",(0,g.xk)()),f=(0,g.VP)("[IssueStates] Load IssueStates Success",(0,g.xk)()),d=(0,g.VP)("[IssueStates] Load IssueStates Failure",(0,g.xk)())},4579:(se,E,c)=>{"use strict";c.d(E,{$:()=>d,F:()=>R});var g=c(9379),s=c(7010),f=c(2628);const d="issueStates",S=(0,s.vy)({},(0,s.on)(f.Uo,U=>U),(0,s.on)(f.hc,(U,q)=>(0,g.A)((0,g.A)({},U),q)),(0,s.on)(f.w9,(U,q)=>U));function R(U,q){return S(U,q)}},8251:(se,E,c)=>{"use strict";c.d(E,{B:()=>Q,v:()=>de});var g=c(4438),s=c(467),f=c(177),d=c(9724),S=c(3178);function R(ie){ie&&"function"==typeof ie.unsubscribe&&ie.unsubscribe()}const U=new Map;let q=!1;function z(ie,K){U.set(ie,K),q||(q=!0,requestAnimationFrame(()=>{var ee;q=!1;const he=null===(ee=U.entries().next().value)||void 0===ee?void 0:ee[1];for(const[Ae,ue]of U.entries())ue.markForCheck();U.clear(),null==he||he.detectChanges()}))}function ve(ie,K,ee,he,Ae,ue,oe){return ie.subscribe({next:_=>(0,s.A)(function*(){he&&(ee.nativeElement.isConnected||oe)&&(yield he(_),z(ee,K))})(),error(..._){Ae&&(ee.nativeElement.isConnected||oe)&&(Ae(..._),z(ee,K))},complete(..._){ue&&(ee.nativeElement.isConnected||oe)&&(ue(..._),z(ee,K))}})}let de=(()=>{var ie;class K{constructor(he,Ae,ue){this.subscriptions=[],this.namedSubscriptions={},this.changeDetectorRef=he,this.elementRef=Ae,this.platformId=ue}subscribe(he,Ae=S.lQ,ue,oe,_){const O=(0,f.Vy)(this.platformId);_?(this.namedSubscriptions[_]&&this.unsubscribe(_),this.namedSubscriptions[_]=ve(he,this.changeDetectorRef,this.elementRef,Ae,ue,oe,O)):this.subscriptions.push(ve(he,this.changeDetectorRef,this.elementRef,Ae,ue,oe,O))}unsubscribe(he){R(this.namedSubscriptions[he]),delete this.namedSubscriptions[he]}hasSubscription(he){return!!this.namedSubscriptions[he]}unsubscribeAll(){for(const he in this.namedSubscriptions)this.namedSubscriptions[he]&&R(this.namedSubscriptions[he]);this.subscriptions.forEach(he=>R(he))}await(he,Ae){var ue=this;return(0,s.A)(function*(){return new Promise((oe,_)=>ue.subscribe((0,d.H)(he),oe,_,S.lQ,Ae))})()}ngOnDestroy(){this.unsubscribeAll()}}return(ie=K).\u0275fac=function(he){return new(he||ie)(g.KVO(g.gRc),g.KVO(g.aKT),g.KVO(g.Agw))},ie.\u0275prov=g.jDH({token:ie,factory:ie.\u0275fac}),K})();var V=c(7010);let Q=(()=>{var ie;class K extends de{constructor(he,Ae,ue,oe){super(Ae,ue,oe),this.store=he}dispatch(he){let Ae,ue;const oe=new Promise((_,O)=>{Ae=_,ue=O});return he.promise={resolve:_=>{Ae(_),setTimeout(()=>this.changeDetectorRef.detectChanges())},reject:_=>{ue(_),setTimeout(()=>this.changeDetectorRef.detectChanges())}},this.store.dispatch(he),oe}select(he,Ae=S.lQ,ue,oe,_){return this.subscribe(he.call(void 0,this.store),Ae,ue,oe,_)}selectMultiple(he,Ae,ue,oe,_,O){const x=he.call(void 0,Ae.map(B=>B.call(void 0,this.store)));return this.subscribe(x,ue,oe,_,O)}snapshot(he){let Ae;return Ae="function"==typeof he?he(this.store.source.value):he.value,Ae&&JSON.parse(JSON.stringify(Ae))}}return(ie=K).\u0275fac=function(he){return new(he||ie)(g.KVO(V.il),g.KVO(g.gRc),g.KVO(g.aKT),g.KVO(g.Agw))},ie.\u0275prov=g.jDH({token:ie,factory:ie.\u0275fac}),K})()},4004:(se,E,c)=>{"use strict";c.d(E,{$W:()=>s,Kx:()=>d,Nb:()=>S,qF:()=>f});var g=c(7010);const s=(0,g.VP)("[Prices] Load Prices",(0,g.xk)()),f=(0,g.VP)("[Prices] Load Price",(0,g.xk)()),d=(0,g.VP)("[Prices] Load Prices Success",(0,g.xk)()),S=(0,g.VP)("[Prices] Load Pries Failure",(0,g.xk)())},2099:(se,E,c)=>{"use strict";c.d(E,{E:()=>d,F:()=>R});var g=c(9379),s=c(7010),f=c(4004);const d="prices",S=(0,s.vy)({},(0,s.on)(f.$W,U=>U),(0,s.on)(f.Kx,(U,q)=>(0,g.A)((0,g.A)({},U),q.prices)),(0,s.on)(f.Nb,(U,q)=>{const z=(0,g.A)({},U);return q.productIds.forEach(ve=>{ve in z||(z[ve]=q.error)}),z}));function R(U,q){return S(U,q)}},4622:(se,E,c)=>{"use strict";c.d(E,{TX:()=>U,Zt:()=>R,aJ:()=>S});var g=c(7010),s=c(6354),f=c(8890),d=c(2099);const S=(0,g.UX)(d.E);function R(q){return z=>z.select(S).pipe((0,s.T)(ve=>ve[q]),f.q3,(0,f.ZE)())}function U(q){return z=>z.select(S).pipe((0,s.T)(ve=>q.map(de=>ve[de])),(0,f.os)())}},610:(se,E,c)=>{"use strict";c.d(E,{$3:()=>s,Du:()=>d,k4:()=>f});var g=c(7010);const s=(0,g.VP)("[Tracking] Track View",(0,g.xk)()),f=(0,g.VP)("[Tracking] Track Action",(0,g.xk)()),d=(0,g.VP)("[Tracking] Track Purchase",(0,g.xk)())},8909:(se,E,c)=>{"use strict";c.d(E,{M:()=>d});var g=c(467),s=c(4438),f=c(7900);let d=(()=>{var S;class R{constructor(q,z,ve){this.elementRef=q,this.translateService=z,this.renderer=ve,this.storefrontTranslateArgs=[]}ngAfterViewInit(){var q=this;return(0,g.A)(function*(){yield q.translateService.inited,q.ngOnChanges()})()}ngOnChanges(){const q=this.elementRef.nativeElement;let z;Array.isArray(this.storefrontTranslateArgs)?z=this.storefrontTranslateArgs.map(de=>this.translate(de)):this.storefrontTranslateArgs&&(z=Object.entries(this.storefrontTranslateArgs).reduce((de,[V,Q])=>(de[V]=this.translate(Q),de),{}));const ve=this.translateService.translate({text:this.storefrontTranslate,args:z});this.renderer.setProperty(q,"innerHTML",ve)}translate(q){return this.translateService.translate(q)}}return(S=R).\u0275fac=function(q){return new(q||S)(s.rXU(s.aKT),s.rXU(f.c),s.rXU(s.sFG))},S.\u0275dir=s.FsC({type:S,selectors:[["","storefrontTranslate",""]],inputs:{storefrontTranslate:"storefrontTranslate",storefrontTranslateArgs:"storefrontTranslateArgs"},standalone:!1,features:[s.OA$]}),R})()},6483:(se,E,c)=>{"use strict";c.d(E,{h:()=>d});var g=c(177),s=c(8448),f=c(4438);let d=(()=>{var S;class R{}return(S=R).\u0275fac=function(q){return new(q||S)},S.\u0275mod=f.$C({type:S}),S.\u0275inj=f.G2t({providers:[s.D],imports:[g.MD]}),R})()},8448:(se,E,c)=>{"use strict";c.d(E,{D:()=>de});var g=c(467),s=c(1985),f=c(4843),d=c(4945),S=c(6843),R=c(6697),U=c(3785),z=c(4438),ve=c(7010);let de=(()=>{var V;class Q{constructor(K){this.store=K}transform(K,...ee){return new s.c(he=>{(0,d.jZ)(S.O.MESSAGE)(this.store).subscribe(Ae=>{const ue=ee.map(oe=>Ae[oe]||oe);he.next(Ae[K]?(0,U.vsprintf)(Ae[K],ue):K)})})}translate(K){var ee=this;return(0,g.A)(function*(){const he="string"==typeof K,Ae=he?K:K.text,ue=!he&&K.args||[];return new Promise(oe=>{ee.transform(Ae,...ue).pipe((0,R.s)(1)).subscribe(oe)})})()}getMessages(){return(0,f._)((0,d.jZ)(S.O.MESSAGE)(this.store))}}return(V=Q).\u0275fac=function(K){return new(K||V)(z.rXU(ve.il,16))},V.\u0275pipe=z.EJ8({name:"storefrontTranslate",type:V,pure:!0,standalone:!1}),V.\u0275prov=z.jDH({token:V,factory:V.\u0275fac}),Q})()},7900:(se,E,c)=>{"use strict";c.d(E,{c:()=>U});var g=c(4945),s=c(6843),f=c(3785),S=c(4438),R=c(7010);let U=(()=>{var q;class z{constructor(de){this.store=de,this.inited=new Promise(V=>this.resolve=V),this.init()}init(){(0,g.jZ)(s.O.MESSAGE)(this.store).subscribe(de=>{this.messages=de,this.resolve()})}translate(de){if(!de||"object"!=typeof de)return this.messages&&this.messages[de]||de;let V;Array.isArray(de.args)?V=de.args.map(ie=>"string"==typeof ie?this.translate(null==ie?void 0:ie.toString()):ie):de.args&&(V=Object.entries(de.args).reduce((ie,[K,ee])=>(ie[K]=this.translate(ee.toString()),ie),{}));try{return(0,f.vsprintf)(this.translate(de.text),V)}catch(ie){var Q;return null!==(Q=de.text)&&void 0!==Q?Q:""}}}return(q=z).\u0275fac=function(de){return new(de||q)(S.KVO(R.il))},q.\u0275prov=S.jDH({token:q,factory:q.\u0275fac,providedIn:"root"}),z})()},3178:(se,E,c)=>{"use strict";c.d(E,{Am:()=>Q,Bq:()=>ie,JK:()=>ue,KF:()=>x,KM:()=>G,LS:()=>ve,Q_:()=>oe,dg:()=>O,hI:()=>K,lQ:()=>S,lg:()=>q,q1:()=>B,sF:()=>de,wR:()=>V,xQ:()=>z});var g=c(467),s=c(4404),d=c(9360);function S(){}const R=(0,d.zk)(),U=(0,d.YE)();function q(pe,le){return R.setTimeout(pe,le)}function z(pe,le){return R.setInterval(pe,le)}function ve(pe,le){if(le)try{const W=new URL(pe);for(const te in le)le[te]?W.searchParams.set(te,le[te]):W.searchParams.delete(te);return W.toString()}catch(W){}return pe}function de(pe,le){try{return new URL(pe).searchParams.get(le)}catch(W){return null}}function V(pe){return new Promise(le=>setTimeout(le,pe))}function Q(pe){return pe.filter((le,W,te)=>pe.indexOf(le)===W)}function ie(pe){return[].concat(...pe)}function K(pe){return ee.apply(this,arguments)}function ee(){return(ee=(0,g.A)(function*(pe,le={}){let W;try{W=yield he(pe,le)}catch(te){if(R.isUniversal){if(te&&parseFloat(te)>=500&&parseFloat(te)<600)try{W=yield he(pe,le)}catch(ae){throw new Error("failed to fetch ressource "+pe)}}else W=new Promise((ae,_e)=>{const Le=new XMLHttpRequest;Le.addEventListener("load",()=>{Le.status>=400&&_e({message:""+Le.status});try{ae(JSON.parse(Le.responseText))}catch(We){_e({message:"No JSON"})}}),Le.addEventListener("error",()=>{_e({message:"Unknown Error"})}),Le.open(le&&le.method||"GET",pe),Le.send()})}return W})).apply(this,arguments)}function he(pe,le){return Ae.apply(this,arguments)}function Ae(){return(Ae=(0,g.A)(function*(pe,le){return fetch(pe,le).then(W=>{if(W.ok)return W.json();throw new Error(W.status.toString())})})).apply(this,arguments)}function ue(){return R.navigator.userLanguage||R.navigator.languages&&R.navigator.languages.length&&R.navigator.languages[0]||R.navigator.language||"en"}function oe(pe,le){return(null==pe?void 0:pe.toLowerCase())===(null==le?void 0:le.toLowerCase())}function O(pe,le=R||U){const W=new URL(le.location.href);return pe===s.DisplayMode.MODAL&&"true"===W.searchParams.get("closeOnModal")||!!W.searchParams.get("productId")}function x(pe,le,W=!1){const te=pe.length;if(0===te)return[];if(le<0||le>=te)return;const ae=[];if(ae.push(pe[le]),W){const _e=dt=>(dt+pe.length)%pe.length;let Le=1,We=!0;for(;ae.length<pe.length;)ae.push(pe[_e(le+Le*(We?1:-1))]),We||Le++,We=!We}else{let _e=1,Le=-1;for(;_e>0||Le<0;)_e>0&&(le+_e>=te?_e=-1:(ae.push(pe[le+_e]),_e++)),Le<0&&(Le<-le?Le=1:(ae.push(pe[le+Le]),Le--))}return ae}function B(pe,le,W,te,ae){if(null==le||0===le.length||le.startsWith("http://")||le.startsWith("https://")||le.startsWith("purple://"))return le;{let _e;return _e=le.startsWith("resource://dynamic/")?new URL(le.replace("resource://dynamic/",""),pe):new URL(le,"".concat(pe,"storefront/index.html")),te&&(W&&_e.searchParams.set("preview","true"),void 0!==ae&&_e.searchParams.set("version",ae.toString())),_e.toString()}}function G(pe){return pe.length>1&&"callback"===pe[pe.length-1].path&&"oauth"===pe[pe.length-2].path}},1184:(se,E,c)=>{"use strict";c.d(E,{Fl:()=>q,nV:()=>S,rv:()=>d});var g=c(467),s=c(2962),f=c(5706);function d(x){return"object"==typeof x?x[Object.keys(x).find(G=>(0,s.zC)(G))||Object.keys(x)[0]]:x}function S(x,B,G){return R.apply(this,arguments)}function R(){return(R=(0,g.A)(function*(x,B,G){const pe={};return yield Promise.all([de(pe,x,B,G),Q(pe,x,B,G),K(pe,x,B,G),z(pe,x,B,G),he(pe,x,B,G),_(pe,x,B,G),ue(pe,x,B,G)]),"search-result"in G&&(pe["search-result"]=G["search-result"]),"bookmark"in G&&(pe.bookmark=G.bookmark),pe})).apply(this,arguments)}const U=[/\$context\.([a-zA-Z_]\w+)/g,/\$context\['(.+?)']/g,/\$context\[\\"(.+?)\\"]/g];function q(x,B){if(!B)return;const G=JSON.stringify(x);for(const pe of U){const le=G.matchAll(pe);for(const[W,te]of le)B.add(te)}}function z(x,B,G,pe){return ve.apply(this,arguments)}function ve(){return(ve=(0,g.A)(function*(x,B,G,pe){if("publication"in pe)x.publication=pe.publication;else if(G.publication){let le=G.publication;if(Array.isArray(le)&&(le=le[0]),le){try{x.publication=yield B.getPublication(le,!0)}catch(W){x.publication=yield B.getPublicationFromCache(le)}return}}})).apply(this,arguments)}function de(x,B,G,pe){return V.apply(this,arguments)}function V(){return(V=(0,g.A)(function*(x,B,G,pe){if("issue"in pe)x.issue=pe.issue;else if(G.issue){let le=G.issue;if(Array.isArray(le)&&(le=le[0]),le){try{x.issue=yield B.getIssue(le,!0)}catch(W){x.issue=yield B.getIssueFromCache(le).catch(()=>null)}return}}})).apply(this,arguments)}function Q(x,B,G,pe){return ie.apply(this,arguments)}function ie(){return(ie=(0,g.A)(function*(x,B,G,pe){if("content"in pe)x.content=pe.content;else if(G.content){let le=G.content;if(Array.isArray(le)&&(le=le[0]),le)return void(x.content=yield B.getCatalogContent(le,!0))}})).apply(this,arguments)}function K(x,B,G,pe){return ee.apply(this,arguments)}function ee(){return(ee=(0,g.A)(function*(x,B,G,pe){if("post"in pe)x.post=pe.post;else if(G.post){let le=G.post;if(Array.isArray(le)&&(le=le[0]),le)return x.post=yield B.getCatalogContent(le,!0),void(x.post&&!(0,f.mF)(x.post)&&console.warn("post from context / url is not referring to an actual post. Did you want to pass a different ID?"))}})).apply(this,arguments)}function he(x,B,G,pe){return Ae.apply(this,arguments)}function Ae(){return(Ae=(0,g.A)(function*(x,B,G,pe){if("category"in pe)x.category=pe.category;else if(G.category){let le=G.category;if(Array.isArray(le)&&(le=le[0]),le){try{x.category=yield B.getCategory(le,!0)}catch(W){x.category=yield B.getCategory(le,!1)}return}}})).apply(this,arguments)}function ue(x,B,G,pe){return oe.apply(this,arguments)}function oe(){return(oe=(0,g.A)(function*(x,B,G,pe){if("taxonomy"in pe)x.taxonomy=pe.taxonomy;else if(G.taxonomy){let le=G.taxonomy;if(Array.isArray(le)&&(le=le[0]),le){try{x.taxonomy=yield B.getTaxonomy(le,null,!0,null)}catch(W){x.taxonomy=yield B.getTaxonomy(le,null,!1,null)}return}}})).apply(this,arguments)}function _(x,B,G,pe){return O.apply(this,arguments)}function O(){return(O=(0,g.A)(function*(x,B,G,pe){if("collection"in pe)x.collection=pe.collection;else if(G.collection){let le=G.collection;if(Array.isArray(le)&&(le=le[0]),le){try{x.collection=yield B.getCollection(le,!0)}catch(W){x.collection=yield B.getCollection(le,!1)}return}}})).apply(this,arguments)}},5706:(se,E,c)=>{"use strict";c.d(E,{G4:()=>d,Ig:()=>V,QO:()=>R,ak:()=>z,ci:()=>de,mF:()=>f,n7:()=>q,o$:()=>U,tr:()=>ve,xl:()=>S});var g=c(4404);function f(Q){return(null==Q?void 0:Q.contentType)===g.CatalogContentType.POST}function d(Q){return(null==Q?void 0:Q.contentType)===g.CatalogContentType.BUNDLE}function S(Q){return(null==Q?void 0:Q.contentType)===g.CatalogContentType.ISSUE}function R(Q){return Q.contentType===g.CatalogContentType.POST}function U(Q){return Q.contentType===g.CatalogContentType.BUNDLE}function q(Q){return Q.contentType===g.CatalogContentType.ISSUE}function z(Q){return Q.type===g.PublicationProductType.BACK_ISSUE_COMPLETION}function ve(Q){return q(Q)?Q.issue:R(Q)?Q.post:U(Q)?Q.bundle:void 0}function de(Q,ie){return{includeBlocks:!!Q.customBlocks,includeHtml:!0,includeResources:!0,seoMetadata:!ie.isApp}}function V(Q){return Q.contents.map(ie=>{var K;return null!==(K=ie.post)&&void 0!==K?K:ie.content})}},4333:(se,E,c)=>{"use strict";c.d(E,{BH:()=>de,FK:()=>Q,ch:()=>ie,fs:()=>V,pd:()=>z,vY:()=>ve});var g=c(9379),s=c(4404),d=c(7374),S=c.n(d),R=c(6155);const U="YYYY-MM-DD",q=(0,g.A)({},s.AppSubscriptionAdditionalBackIssueUnlocksType);function z(K,ee=new Date){let he=S()(ee);switch(K.unit){case s.AppSubscriptionAdditionalBackIssueUnlocksType.YEAR:he=he.subtract(K.count,"year");break;case s.AppSubscriptionAdditionalBackIssueUnlocksType.MONTH:he=he.subtract(K.count,"month");break;case s.AppSubscriptionAdditionalBackIssueUnlocksType.WEEK:he=he.subtract(K.count,"week");break;case s.AppSubscriptionAdditionalBackIssueUnlocksType.DAY:he=he.subtract(K.count,"day")}return he.format(U)}function ve(K,ee=new Date){let he=S()(ee);switch(K){case s.AppSubscriptionDuration.ONE_YEAR:he=he.subtract(1,"year");break;case s.AppSubscriptionDuration.SIX_MONTHS:he=he.subtract(6,"month");break;case s.AppSubscriptionDuration.THREE_MONTHS:he=he.subtract(3,"month");break;case s.AppSubscriptionDuration.TWO_MONTHS:he=he.subtract(2,"month");break;case s.AppSubscriptionDuration.ONE_MONTH:he=he.subtract(1,"month");break;case s.AppSubscriptionDuration.TWO_WEEKS:he=he.subtract(2,"week");break;case s.AppSubscriptionDuration.SEVEN_DAYS:he=he.subtract(7,"day")}return he.format(U)}function de(K,ee=new Date){return S()(ee).subtract(K.count,K.unit.toLowerCase()).format(U)}function V(K){switch(K){case s.AppSubscriptionDuration.ONE_YEAR:return{unit:q.YEAR,count:1};case s.AppSubscriptionDuration.SIX_MONTHS:return{unit:q.MONTH,count:6};case s.AppSubscriptionDuration.THREE_MONTHS:return{unit:q.MONTH,count:3};case s.AppSubscriptionDuration.TWO_MONTHS:return{unit:q.MONTH,count:2};case s.AppSubscriptionDuration.ONE_MONTH:return{unit:q.MONTH,count:1};case s.AppSubscriptionDuration.TWO_WEEKS:return{unit:q.WEEK,count:2};case s.AppSubscriptionDuration.SEVEN_DAYS:return{unit:q.DAY,count:7}}}function Q(K,ee){if(K===ee)return 0;const he=Object.keys(s.AppSubscriptionDuration);return he.indexOf(K)-he.indexOf(ee)>0?-1:1}function ie(K){const ee=(0,R.qg)(K);let Ae,he=0;return Object.keys(ee).forEach(ue=>{switch(ue){case"years":return void(he+=360*ee.years);case"months":return void(he+=30*ee.months);case"weeks":return void(he+=7*ee.weeks);case"days":return void(he+=ee.days)}}),Ae=he%360==0?{count:he/360,unit:q.YEAR}:he%30==0?{count:he/30,unit:q.MONTH}:he%7==0?{count:he/7,unit:q.WEEK}:{count:he,unit:q.DAY},Ae}},7467:(se,E,c)=>{"use strict";c.d(E,{Y:()=>f});var g=function(d){return d.Android="android",d.iOS="ios",d.Unknown="unknown",d.WindowsPhone="Windows Phone",d}(g||{}),s=function(d){return d.Linux="linux",d.MacOS="mac_os",d.Unix="unix",d.Unknown="unknown",d.Windows="windows",d}(s||{});const f=(()=>{let d=null;return()=>{if(d)return d;const S=navigator.userAgent||navigator.vendor||window.opera||void 0,R=()=>[/(Android)(.+)(Mobile)/i,/BlackBerry/i,/iPhone|iPod/i,/Opera Mini/i,/IEMobile/i].some(x=>S.match(x)),U=()=>/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(S.toLowerCase()),q=()=>!R()&&!U(),z=q(),ve=R(),de=U(),V=()=>{if(R())return/windows phone/i.test(S)?g.WindowsPhone:/android/i.test(S)?g.Android:/iPad|iPhone|iPod/.test(S)&&!window.MSStream?g.iOS:g.Unknown},Q=()=>{if(q())return-1!==S.indexOf("Win")?s.Windows:-1!==S.indexOf("Mac")?s.MacOS:-1!==S.indexOf("X11")?s.Unix:-1!==S.indexOf("Linux")?s.Linux:s.Unknown},ie=()=>{var O;return null!==(O=V())&&void 0!==O?O:Q()},K=V(),ee=ie()===g.Android,he=ie()===g.iOS||ie()===s.MacOS,Ae=ie()===g.Unknown,ue=Q(),oe=ie()===s.Windows,_=ie()===s.Linux||ie()===s.Unix;return d={isDesktop:z,desktopOS:ue,isWindowsDesktop:oe,isLinuxOrUnixDesktop:_,isMobile:ve,mobileOS:K,isAndroidDevice:ee,isAppleDevice:he,isUnknownMobileDevice:Ae,isTablet:de,userAgent:S},d}})()},2962:(se,E,c)=>{"use strict";function g(q,z=0){const ve=q.getBoundingClientRect();return"none"!==getComputedStyle(q).display&&ve.bottom>-z&&ve.right>-z&&ve.left<window.innerWidth+z&&ve.top<window.innerHeight+z}function s(q){return"phone"===q&&window.innerWidth<533||"tablet"===q&&window.innerWidth>=533||window.matchMedia(q).matches}function f(q){const z=q.touches&&q.touches[0]||q.changedTouches&&q.changedTouches[0]||q;return{x:z.screenX,y:z.screenY,timestamp:Date.now()}}function d(q,z=!1){return z?q.scrollWidth-(q.scrollLeft+q.clientWidth):q.scrollHeight-(q.scrollTop+q.clientHeight)}function S(q,z,ve){const de=V=>{q.removeEventListener(z,de),ve(V)};q.addEventListener(z,de)}function R(q,z=document){z.$modalOutlet||(z.$modalOutlet=z.querySelector('router-outlet[name="modal"]'));const ve=z.$modalOutlet,de=ve&&ve.nextElementSibling;return de&&de.contains(q)?"modal":"primary"}c.d(E,{IL:()=>d,L$:()=>S,cH:()=>g,k:()=>f,kO:()=>R,zC:()=>s})},8091:(se,E,c)=>{"use strict";c.d(E,{$C:()=>S,E2:()=>f,F0:()=>U,_3:()=>R,xn:()=>d});var g=c(4404);function f(q,z){return z.getMetadata().connection_state===g.CONNECTION_STATE.OFFLINE&&(q.code=g.ERROR_CODE.NETWORK),q.code}function d(q){return q&&q.status&&"403"===q.status?g.ERROR_CODE.INVALID_CREDENTIALS:g.ERROR_CODE.NETWORK}function S(q,z){const ve=[q];return z&&(ve.push(z.name),ve.push(z.id)),ve}function R(q,z){const ve=[q];return z&&ve.push(z.title),ve}function U(q,z){const ve=[q];return z&&ve.push(z.name),ve}},7598:(se,E,c)=>{"use strict";c.d(E,{YT:()=>g,Zm:()=>f,aU:()=>s,yl:()=>d});const g="storefront-invalidation",s="storefront-lifecycle",f="dom-scroll-bottom",d="exp-bidirectional-router-event"},7439:(se,E,c)=>{"use strict";c.d(E,{M:()=>Un});var g=c(9379),s=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],f=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],S="\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u0870-\u0887\u0889-\u088e\u08a0-\u08c9\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u09fc\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c5d\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cdd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d04-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u1711\u171f-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4c\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c8a\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31bf\u31f0-\u31ff\u3400-\u4dbf\u4e00-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7cd\ua7d0\ua7d1\ua7d3\ua7d5-\ua7dc\ua7f2-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab69\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc",R={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},U="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",q={5:U,"5module":U+" export import",6:U+" const class extends export import super"},z=/^in(stanceof)?$/,ve=new RegExp("["+S+"]"),de=new RegExp("["+S+"\u200c\u200d\xb7\u0300-\u036f\u0387\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u0669\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u06f0-\u06f9\u0711\u0730-\u074a\u07a6-\u07b0\u07c0-\u07c9\u07eb-\u07f3\u07fd\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u0897-\u089f\u08ca-\u08e1\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u09e6-\u09ef\u09fe\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0ae6-\u0aef\u0afa-\u0aff\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b55-\u0b57\u0b62\u0b63\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c00-\u0c04\u0c3c\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c66-\u0c6f\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0ce6-\u0cef\u0cf3\u0d00-\u0d03\u0d3b\u0d3c\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d66-\u0d6f\u0d81-\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0e50-\u0e59\u0eb1\u0eb4-\u0ebc\u0ec8-\u0ece\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1040-\u1049\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u17e0-\u17e9\u180b-\u180d\u180f-\u1819\u18a9\u1920-\u192b\u1930-\u193b\u1946-\u194f\u19d0-\u19da\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1ab0-\u1abd\u1abf-\u1ace\u1b00-\u1b04\u1b34-\u1b44\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1bb0-\u1bb9\u1be6-\u1bf3\u1c24-\u1c37\u1c40-\u1c49\u1c50-\u1c59\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf4\u1cf7-\u1cf9\u1dc0-\u1dff\u200c\u200d\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\u30fb\ua620-\ua629\ua66f\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua82c\ua880\ua881\ua8b4-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f1\ua8ff-\ua909\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9d0-\ua9d9\ua9e5\ua9f0-\ua9f9\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa50-\uaa59\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\uabf0-\uabf9\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f\uff65]");function V(p,T){for(var me=65536,Re=0;Re<T.length;Re+=2){if((me+=T[Re])>p)return!1;if((me+=T[Re+1])>=p)return!0}return!1}function Q(p,T){return p<65?36===p:p<91||(p<97?95===p:p<123||(p<=65535?p>=170&&ve.test(String.fromCharCode(p)):!1!==T&&V(p,f)))}function ie(p,T){return p<48?36===p:p<58||!(p<65)&&(p<91||(p<97?95===p:p<123||(p<=65535?p>=170&&de.test(String.fromCharCode(p)):!1!==T&&(V(p,f)||V(p,s)))))}var K=function(T,me){void 0===me&&(me={}),this.label=T,this.keyword=me.keyword,this.beforeExpr=!!me.beforeExpr,this.startsExpr=!!me.startsExpr,this.isLoop=!!me.isLoop,this.isAssign=!!me.isAssign,this.prefix=!!me.prefix,this.postfix=!!me.postfix,this.binop=me.binop||null,this.updateContext=null};function ee(p,T){return new K(p,{beforeExpr:!0,binop:T})}var he={beforeExpr:!0},Ae={startsExpr:!0},ue={};function oe(p,T){return void 0===T&&(T={}),T.keyword=p,ue[p]=new K(p,T)}var _={num:new K("num",Ae),regexp:new K("regexp",Ae),string:new K("string",Ae),name:new K("name",Ae),privateId:new K("privateId",Ae),eof:new K("eof"),bracketL:new K("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new K("]"),braceL:new K("{",{beforeExpr:!0,startsExpr:!0}),braceR:new K("}"),parenL:new K("(",{beforeExpr:!0,startsExpr:!0}),parenR:new K(")"),comma:new K(",",he),semi:new K(";",he),colon:new K(":",he),dot:new K("."),question:new K("?",he),questionDot:new K("?."),arrow:new K("=>",he),template:new K("template"),invalidTemplate:new K("invalidTemplate"),ellipsis:new K("...",he),backQuote:new K("`",Ae),dollarBraceL:new K("${",{beforeExpr:!0,startsExpr:!0}),eq:new K("=",{beforeExpr:!0,isAssign:!0}),assign:new K("_=",{beforeExpr:!0,isAssign:!0}),incDec:new K("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new K("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:ee("||",1),logicalAND:ee("&&",2),bitwiseOR:ee("|",3),bitwiseXOR:ee("^",4),bitwiseAND:ee("&",5),equality:ee("==/!=/===/!==",6),relational:ee("</>/<=/>=",7),bitShift:ee("<</>>/>>>",8),plusMin:new K("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:ee("%",10),star:ee("*",10),slash:ee("/",10),starstar:new K("**",{beforeExpr:!0}),coalesce:ee("??",1),_break:oe("break"),_case:oe("case",he),_catch:oe("catch"),_continue:oe("continue"),_debugger:oe("debugger"),_default:oe("default",he),_do:oe("do",{isLoop:!0,beforeExpr:!0}),_else:oe("else",he),_finally:oe("finally"),_for:oe("for",{isLoop:!0}),_function:oe("function",Ae),_if:oe("if"),_return:oe("return",he),_switch:oe("switch"),_throw:oe("throw",he),_try:oe("try"),_var:oe("var"),_const:oe("const"),_while:oe("while",{isLoop:!0}),_with:oe("with"),_new:oe("new",{beforeExpr:!0,startsExpr:!0}),_this:oe("this",Ae),_super:oe("super",Ae),_class:oe("class",Ae),_extends:oe("extends",he),_export:oe("export"),_import:oe("import",Ae),_null:oe("null",Ae),_true:oe("true",Ae),_false:oe("false",Ae),_in:oe("in",{beforeExpr:!0,binop:7}),_instanceof:oe("instanceof",{beforeExpr:!0,binop:7}),_typeof:oe("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:oe("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:oe("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},O=/\r\n?|\n|\u2028|\u2029/,x=new RegExp(O.source,"g");function B(p){return 10===p||13===p||8232===p||8233===p}function G(p,T,me){void 0===me&&(me=p.length);for(var Re=T;Re<me;Re++){var ot=p.charCodeAt(Re);if(B(ot))return Re<me-1&&13===ot&&10===p.charCodeAt(Re+1)?Re+2:Re+1}return-1}var pe=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,le=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,W=Object.prototype,te=W.hasOwnProperty,ae=W.toString,_e=Object.hasOwn||function(p,T){return te.call(p,T)},Le=Array.isArray||function(p){return"[object Array]"===ae.call(p)},We=Object.create(null);function dt(p){return We[p]||(We[p]=new RegExp("^(?:"+p.replace(/ /g,"|")+")$"))}function Ye(p){return p<=65535?String.fromCharCode(p):(p-=65536,String.fromCharCode(55296+(p>>10),56320+(1023&p)))}var we=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,ze=function(T,me){this.line=T,this.column=me};ze.prototype.offset=function(T){return new ze(this.line,this.column+T)};var Ke=function(T,me,Re){this.start=me,this.end=Re,null!==T.sourceFile&&(this.source=T.sourceFile)};function je(p,T){for(var me=1,Re=0;;){var ot=G(p,Re,T);if(ot<0)return new ze(me,T-Re);++me,Re=ot}}var Ze={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},k=!1;function Ce(p,T){return 2|(p?4:0)|(T?8:0)}var Ve=function(T,me,Re){this.options=T=function F(p){var T={};for(var me in Ze)T[me]=p&&_e(p,me)?p[me]:Ze[me];if("latest"===T.ecmaVersion?T.ecmaVersion=1e8:null==T.ecmaVersion?(!k&&"object"==typeof console&&console.warn&&(k=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),T.ecmaVersion=11):T.ecmaVersion>=2015&&(T.ecmaVersion-=2009),null==T.allowReserved&&(T.allowReserved=T.ecmaVersion<5),(!p||null==p.allowHashBang)&&(T.allowHashBang=T.ecmaVersion>=14),Le(T.onToken)){var Re=T.onToken;T.onToken=function(ot){return Re.push(ot)}}return Le(T.onComment)&&(T.onComment=function Y(p,T){return function(me,Re,ot,Vt,$t,vn){var xn={type:me?"Block":"Line",value:Re,start:ot,end:Vt};p.locations&&(xn.loc=new Ke(this,$t,vn)),p.ranges&&(xn.range=[ot,Vt]),T.push(xn)}}(T,T.onComment)),T}(T),this.sourceFile=T.sourceFile,this.keywords=dt(q[T.ecmaVersion>=6?6:"module"===T.sourceType?"5module":5]);var ot="";!0!==T.allowReserved&&(ot=R[T.ecmaVersion>=6?6:5===T.ecmaVersion?5:3],"module"===T.sourceType&&(ot+=" await")),this.reservedWords=dt(ot);var Vt=(ot?ot+" ":"")+R.strict;this.reservedWordsStrict=dt(Vt),this.reservedWordsStrictBind=dt(Vt+" "+R.strictBind),this.input=String(me),this.containsEsc=!1,Re?(this.pos=Re,this.lineStart=this.input.lastIndexOf("\n",Re-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(O).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=_.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===T.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&T.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[]},rt={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};Ve.prototype.parse=function(){var T=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(T)},rt.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},rt.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},rt.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},rt.canAwait.get=function(){for(var p=this.scopeStack.length-1;p>=0;p--){var T=this.scopeStack[p];if(T.inClassFieldInit||256&T.flags)return!1;if(2&T.flags)return(4&T.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},rt.allowSuper.get=function(){var p=this.currentThisScope();return(64&p.flags)>0||p.inClassFieldInit||this.options.allowSuperOutsideMethod},rt.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},rt.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},rt.allowNewDotTarget.get=function(){var p=this.currentThisScope();return(258&p.flags)>0||p.inClassFieldInit},rt.inClassStaticBlock.get=function(){return(256&this.currentVarScope().flags)>0},Ve.extend=function(){for(var T=[],me=arguments.length;me--;)T[me]=arguments[me];for(var Re=this,ot=0;ot<T.length;ot++)Re=T[ot](Re);return Re},Ve.parse=function(T,me){return new this(me,T).parse()},Ve.parseExpressionAt=function(T,me,Re){var ot=new this(Re,T,me);return ot.nextToken(),ot.parseExpression()},Ve.tokenizer=function(T,me){return new this(me,T)},Object.defineProperties(Ve.prototype,rt);var at=Ve.prototype,ct=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;at.strictDirective=function(p){if(this.options.ecmaVersion<5)return!1;for(;;){le.lastIndex=p,p+=le.exec(this.input)[0].length;var T=ct.exec(this.input.slice(p));if(!T)return!1;if("use strict"===(T[1]||T[2])){le.lastIndex=p+T[0].length;var me=le.exec(this.input),Re=me.index+me[0].length,ot=this.input.charAt(Re);return";"===ot||"}"===ot||O.test(me[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(ot)||"!"===ot&&"="===this.input.charAt(Re+1))}le.lastIndex=p+=T[0].length,p+=le.exec(this.input)[0].length,";"===this.input[p]&&p++}},at.eat=function(p){return this.type===p&&(this.next(),!0)},at.isContextual=function(p){return this.type===_.name&&this.value===p&&!this.containsEsc},at.eatContextual=function(p){return!!this.isContextual(p)&&(this.next(),!0)},at.expectContextual=function(p){this.eatContextual(p)||this.unexpected()},at.canInsertSemicolon=function(){return this.type===_.eof||this.type===_.braceR||O.test(this.input.slice(this.lastTokEnd,this.start))},at.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},at.semicolon=function(){!this.eat(_.semi)&&!this.insertSemicolon()&&this.unexpected()},at.afterTrailingComma=function(p,T){if(this.type===p)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),T||this.next(),!0},at.expect=function(p){this.eat(p)||this.unexpected()},at.unexpected=function(p){this.raise(null!=p?p:this.start,"Unexpected token")};var Yt=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};at.checkPatternErrors=function(p,T){if(p){p.trailingComma>-1&&this.raiseRecoverable(p.trailingComma,"Comma is not permitted after the rest element");var me=T?p.parenthesizedAssign:p.parenthesizedBind;me>-1&&this.raiseRecoverable(me,T?"Assigning to rvalue":"Parenthesized pattern")}},at.checkExpressionErrors=function(p,T){if(!p)return!1;var me=p.shorthandAssign,Re=p.doubleProto;if(!T)return me>=0||Re>=0;me>=0&&this.raise(me,"Shorthand property assignments are valid only in destructuring patterns"),Re>=0&&this.raiseRecoverable(Re,"Redefinition of __proto__ property")},at.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},at.isSimpleAssignTarget=function(p){return"ParenthesizedExpression"===p.type?this.isSimpleAssignTarget(p.expression):"Identifier"===p.type||"MemberExpression"===p.type};var Ft=Ve.prototype;Ft.parseTopLevel=function(p){var T=Object.create(null);for(p.body||(p.body=[]);this.type!==_.eof;){var me=this.parseStatement(null,!0,T);p.body.push(me)}if(this.inModule)for(var Re=0,ot=Object.keys(this.undefinedExports);Re<ot.length;Re+=1){var Vt=ot[Re];this.raiseRecoverable(this.undefinedExports[Vt].start,"Export '"+Vt+"' is not defined")}return this.adaptDirectivePrologue(p.body),this.next(),p.sourceType=this.options.sourceType,this.finishNode(p,"Program")};var dn={kind:"loop"},kn={kind:"switch"};Ft.isLet=function(p){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;le.lastIndex=this.pos;var T=le.exec(this.input),me=this.pos+T[0].length,Re=this.input.charCodeAt(me);if(91===Re||92===Re)return!0;if(p)return!1;if(123===Re||Re>55295&&Re<56320)return!0;if(Q(Re,!0)){for(var ot=me+1;ie(Re=this.input.charCodeAt(ot),!0);)++ot;if(92===Re||Re>55295&&Re<56320)return!0;var Vt=this.input.slice(me,ot);if(!z.test(Vt))return!0}return!1},Ft.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;le.lastIndex=this.pos;var me,p=le.exec(this.input),T=this.pos+p[0].length;return!(O.test(this.input.slice(this.pos,T))||"function"!==this.input.slice(T,T+8)||T+8!==this.input.length&&(ie(me=this.input.charCodeAt(T+8))||me>55295&&me<56320))},Ft.parseStatement=function(p,T,me){var Vt,Re=this.type,ot=this.startNode();switch(this.isLet(p)&&(Re=_._var,Vt="let"),Re){case _._break:case _._continue:return this.parseBreakContinueStatement(ot,Re.keyword);case _._debugger:return this.parseDebuggerStatement(ot);case _._do:return this.parseDoStatement(ot);case _._for:return this.parseForStatement(ot);case _._function:return p&&(this.strict||"if"!==p&&"label"!==p)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(ot,!1,!p);case _._class:return p&&this.unexpected(),this.parseClass(ot,!0);case _._if:return this.parseIfStatement(ot);case _._return:return this.parseReturnStatement(ot);case _._switch:return this.parseSwitchStatement(ot);case _._throw:return this.parseThrowStatement(ot);case _._try:return this.parseTryStatement(ot);case _._const:case _._var:return Vt=Vt||this.value,p&&"var"!==Vt&&this.unexpected(),this.parseVarStatement(ot,Vt);case _._while:return this.parseWhileStatement(ot);case _._with:return this.parseWithStatement(ot);case _.braceL:return this.parseBlock(!0,ot);case _.semi:return this.parseEmptyStatement(ot);case _._export:case _._import:if(this.options.ecmaVersion>10&&Re===_._import){le.lastIndex=this.pos;var $t=le.exec(this.input),xn=this.input.charCodeAt(this.pos+$t[0].length);if(40===xn||46===xn)return this.parseExpressionStatement(ot,this.parseExpression())}return this.options.allowImportExportEverywhere||(T||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),Re===_._import?this.parseImport(ot):this.parseExport(ot,me);default:if(this.isAsyncFunction())return p&&this.unexpected(),this.next(),this.parseFunctionStatement(ot,!0,!p);var gr=this.value,tr=this.parseExpression();return Re===_.name&&"Identifier"===tr.type&&this.eat(_.colon)?this.parseLabeledStatement(ot,gr,tr,p):this.parseExpressionStatement(ot,tr)}},Ft.parseBreakContinueStatement=function(p,T){var me="break"===T;this.next(),this.eat(_.semi)||this.insertSemicolon()?p.label=null:this.type!==_.name?this.unexpected():(p.label=this.parseIdent(),this.semicolon());for(var Re=0;Re<this.labels.length;++Re){var ot=this.labels[Re];if((null==p.label||ot.name===p.label.name)&&(null!=ot.kind&&(me||"loop"===ot.kind)||p.label&&me))break}return Re===this.labels.length&&this.raise(p.start,"Unsyntactic "+T),this.finishNode(p,me?"BreakStatement":"ContinueStatement")},Ft.parseDebuggerStatement=function(p){return this.next(),this.semicolon(),this.finishNode(p,"DebuggerStatement")},Ft.parseDoStatement=function(p){return this.next(),this.labels.push(dn),p.body=this.parseStatement("do"),this.labels.pop(),this.expect(_._while),p.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(_.semi):this.semicolon(),this.finishNode(p,"DoWhileStatement")},Ft.parseForStatement=function(p){this.next();var T=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(dn),this.enterScope(0),this.expect(_.parenL),this.type===_.semi)return T>-1&&this.unexpected(T),this.parseFor(p,null);var me=this.isLet();if(this.type===_._var||this.type===_._const||me){var Re=this.startNode(),ot=me?"let":this.value;return this.next(),this.parseVar(Re,!0,ot),this.finishNode(Re,"VariableDeclaration"),(this.type===_._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===Re.declarations.length?(this.options.ecmaVersion>=9&&(this.type===_._in?T>-1&&this.unexpected(T):p.await=T>-1),this.parseForIn(p,Re)):(T>-1&&this.unexpected(T),this.parseFor(p,Re))}var Vt=this.isContextual("let"),$t=!1,vn=this.containsEsc,xn=new Yt,gr=this.start,tr=T>-1?this.parseExprSubscripts(xn,"await"):this.parseExpression(!0,xn);return this.type===_._in||($t=this.options.ecmaVersion>=6&&this.isContextual("of"))?(T>-1?(this.type===_._in&&this.unexpected(T),p.await=!0):$t&&this.options.ecmaVersion>=8&&(tr.start!==gr||vn||"Identifier"!==tr.type||"async"!==tr.name?this.options.ecmaVersion>=9&&(p.await=!1):this.unexpected()),Vt&&$t&&this.raise(tr.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(tr,!1,xn),this.checkLValPattern(tr),this.parseForIn(p,tr)):(this.checkExpressionErrors(xn,!0),T>-1&&this.unexpected(T),this.parseFor(p,tr))},Ft.parseFunctionStatement=function(p,T,me){return this.next(),this.parseFunction(p,Jt|(me?0:At),!1,T)},Ft.parseIfStatement=function(p){return this.next(),p.test=this.parseParenExpression(),p.consequent=this.parseStatement("if"),p.alternate=this.eat(_._else)?this.parseStatement("if"):null,this.finishNode(p,"IfStatement")},Ft.parseReturnStatement=function(p){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(_.semi)||this.insertSemicolon()?p.argument=null:(p.argument=this.parseExpression(),this.semicolon()),this.finishNode(p,"ReturnStatement")},Ft.parseSwitchStatement=function(p){this.next(),p.discriminant=this.parseParenExpression(),p.cases=[],this.expect(_.braceL),this.labels.push(kn),this.enterScope(0);for(var T,me=!1;this.type!==_.braceR;)if(this.type===_._case||this.type===_._default){var Re=this.type===_._case;T&&this.finishNode(T,"SwitchCase"),p.cases.push(T=this.startNode()),T.consequent=[],this.next(),Re?T.test=this.parseExpression():(me&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),me=!0,T.test=null),this.expect(_.colon)}else T||this.unexpected(),T.consequent.push(this.parseStatement(null));return this.exitScope(),T&&this.finishNode(T,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(p,"SwitchStatement")},Ft.parseThrowStatement=function(p){return this.next(),O.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),p.argument=this.parseExpression(),this.semicolon(),this.finishNode(p,"ThrowStatement")};var ln=[];Ft.parseCatchClauseParam=function(){var p=this.parseBindingAtom(),T="Identifier"===p.type;return this.enterScope(T?32:0),this.checkLValPattern(p,T?4:2),this.expect(_.parenR),p},Ft.parseTryStatement=function(p){if(this.next(),p.block=this.parseBlock(),p.handler=null,this.type===_._catch){var T=this.startNode();this.next(),this.eat(_.parenL)?T.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),T.param=null,this.enterScope(0)),T.body=this.parseBlock(!1),this.exitScope(),p.handler=this.finishNode(T,"CatchClause")}return p.finalizer=this.eat(_._finally)?this.parseBlock():null,!p.handler&&!p.finalizer&&this.raise(p.start,"Missing catch or finally clause"),this.finishNode(p,"TryStatement")},Ft.parseVarStatement=function(p,T,me){return this.next(),this.parseVar(p,!1,T,me),this.semicolon(),this.finishNode(p,"VariableDeclaration")},Ft.parseWhileStatement=function(p){return this.next(),p.test=this.parseParenExpression(),this.labels.push(dn),p.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(p,"WhileStatement")},Ft.parseWithStatement=function(p){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),p.object=this.parseParenExpression(),p.body=this.parseStatement("with"),this.finishNode(p,"WithStatement")},Ft.parseEmptyStatement=function(p){return this.next(),this.finishNode(p,"EmptyStatement")},Ft.parseLabeledStatement=function(p,T,me,Re){for(var ot=0,Vt=this.labels;ot<Vt.length;ot+=1)Vt[ot].name===T&&this.raise(me.start,"Label '"+T+"' is already declared");for(var vn=this.type.isLoop?"loop":this.type===_._switch?"switch":null,xn=this.labels.length-1;xn>=0;xn--){var gr=this.labels[xn];if(gr.statementStart!==p.start)break;gr.statementStart=this.start,gr.kind=vn}return this.labels.push({name:T,kind:vn,statementStart:this.start}),p.body=this.parseStatement(Re?-1===Re.indexOf("label")?Re+"label":Re:"label"),this.labels.pop(),p.label=me,this.finishNode(p,"LabeledStatement")},Ft.parseExpressionStatement=function(p,T){return p.expression=T,this.semicolon(),this.finishNode(p,"ExpressionStatement")},Ft.parseBlock=function(p,T,me){for(void 0===p&&(p=!0),void 0===T&&(T=this.startNode()),T.body=[],this.expect(_.braceL),p&&this.enterScope(0);this.type!==_.braceR;){var Re=this.parseStatement(null);T.body.push(Re)}return me&&(this.strict=!1),this.next(),p&&this.exitScope(),this.finishNode(T,"BlockStatement")},Ft.parseFor=function(p,T){return p.init=T,this.expect(_.semi),p.test=this.type===_.semi?null:this.parseExpression(),this.expect(_.semi),p.update=this.type===_.parenR?null:this.parseExpression(),this.expect(_.parenR),p.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(p,"ForStatement")},Ft.parseForIn=function(p,T){var me=this.type===_._in;return this.next(),"VariableDeclaration"===T.type&&null!=T.declarations[0].init&&(!me||this.options.ecmaVersion<8||this.strict||"var"!==T.kind||"Identifier"!==T.declarations[0].id.type)&&this.raise(T.start,(me?"for-in":"for-of")+" loop variable declaration may not have an initializer"),p.left=T,p.right=me?this.parseExpression():this.parseMaybeAssign(),this.expect(_.parenR),p.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(p,me?"ForInStatement":"ForOfStatement")},Ft.parseVar=function(p,T,me,Re){for(p.declarations=[],p.kind=me;;){var ot=this.startNode();if(this.parseVarId(ot,me),this.eat(_.eq)?ot.init=this.parseMaybeAssign(T):Re||"const"!==me||this.type===_._in||this.options.ecmaVersion>=6&&this.isContextual("of")?Re||"Identifier"===ot.id.type||T&&(this.type===_._in||this.isContextual("of"))?ot.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),p.declarations.push(this.finishNode(ot,"VariableDeclarator")),!this.eat(_.comma))break}return p},Ft.parseVarId=function(p,T){p.id=this.parseBindingAtom(),this.checkLValPattern(p.id,"var"===T?1:2,!1)};var Jt=1,At=2;function Yn(p,T){var me=T.key.name,Re=p[me],ot="true";return"MethodDefinition"===T.type&&("get"===T.kind||"set"===T.kind)&&(ot=(T.static?"s":"i")+T.kind),"iget"===Re&&"iset"===ot||"iset"===Re&&"iget"===ot||"sget"===Re&&"sset"===ot||"sset"===Re&&"sget"===ot?(p[me]="true",!1):!!Re||(p[me]=ot,!1)}function or(p,T){var Re=p.key;return!p.computed&&("Identifier"===Re.type&&Re.name===T||"Literal"===Re.type&&Re.value===T)}Ft.parseFunction=function(p,T,me,Re,ot){this.initFunction(p),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!Re)&&(this.type===_.star&&T&At&&this.unexpected(),p.generator=this.eat(_.star)),this.options.ecmaVersion>=8&&(p.async=!!Re),T&Jt&&(p.id=4&T&&this.type!==_.name?null:this.parseIdent(),p.id&&!(T&At)&&this.checkLValSimple(p.id,this.strict||p.generator||p.async?this.treatFunctionsAsVar?1:2:3));var Vt=this.yieldPos,$t=this.awaitPos,vn=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Ce(p.async,p.generator)),T&Jt||(p.id=this.type===_.name?this.parseIdent():null),this.parseFunctionParams(p),this.parseFunctionBody(p,me,!1,ot),this.yieldPos=Vt,this.awaitPos=$t,this.awaitIdentPos=vn,this.finishNode(p,T&Jt?"FunctionDeclaration":"FunctionExpression")},Ft.parseFunctionParams=function(p){this.expect(_.parenL),p.params=this.parseBindingList(_.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},Ft.parseClass=function(p,T){this.next();var me=this.strict;this.strict=!0,this.parseClassId(p,T),this.parseClassSuper(p);var Re=this.enterClassBody(),ot=this.startNode(),Vt=!1;for(ot.body=[],this.expect(_.braceL);this.type!==_.braceR;){var $t=this.parseClassElement(null!==p.superClass);$t&&(ot.body.push($t),"MethodDefinition"===$t.type&&"constructor"===$t.kind?(Vt&&this.raiseRecoverable($t.start,"Duplicate constructor in the same class"),Vt=!0):$t.key&&"PrivateIdentifier"===$t.key.type&&Yn(Re,$t)&&this.raiseRecoverable($t.key.start,"Identifier '#"+$t.key.name+"' has already been declared"))}return this.strict=me,this.next(),p.body=this.finishNode(ot,"ClassBody"),this.exitClassBody(),this.finishNode(p,T?"ClassDeclaration":"ClassExpression")},Ft.parseClassElement=function(p){if(this.eat(_.semi))return null;var T=this.options.ecmaVersion,me=this.startNode(),Re="",ot=!1,Vt=!1,$t="method",vn=!1;if(this.eatContextual("static")){if(T>=13&&this.eat(_.braceL))return this.parseClassStaticBlock(me),me;this.isClassElementNameStart()||this.type===_.star?vn=!0:Re="static"}if(me.static=vn,!Re&&T>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==_.star||this.canInsertSemicolon()?Re="async":Vt=!0),!Re&&(T>=9||!Vt)&&this.eat(_.star)&&(ot=!0),!Re&&!Vt&&!ot){var xn=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?$t=xn:Re=xn)}if(Re?(me.computed=!1,me.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),me.key.name=Re,this.finishNode(me.key,"Identifier")):this.parseClassElementName(me),T<13||this.type===_.parenL||"method"!==$t||ot||Vt){var gr=!me.static&&or(me,"constructor"),tr=gr&&p;gr&&"method"!==$t&&this.raise(me.key.start,"Constructor can't have get/set modifier"),me.kind=gr?"constructor":$t,this.parseClassMethod(me,ot,Vt,tr)}else this.parseClassField(me);return me},Ft.isClassElementNameStart=function(){return this.type===_.name||this.type===_.privateId||this.type===_.num||this.type===_.string||this.type===_.bracketL||this.type.keyword},Ft.parseClassElementName=function(p){this.type===_.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),p.computed=!1,p.key=this.parsePrivateIdent()):this.parsePropertyName(p)},Ft.parseClassMethod=function(p,T,me,Re){var ot=p.key;"constructor"===p.kind?(T&&this.raise(ot.start,"Constructor can't be a generator"),me&&this.raise(ot.start,"Constructor can't be an async method")):p.static&&or(p,"prototype")&&this.raise(ot.start,"Classes may not have a static property named prototype");var Vt=p.value=this.parseMethod(T,me,Re);return"get"===p.kind&&0!==Vt.params.length&&this.raiseRecoverable(Vt.start,"getter should have no params"),"set"===p.kind&&1!==Vt.params.length&&this.raiseRecoverable(Vt.start,"setter should have exactly one param"),"set"===p.kind&&"RestElement"===Vt.params[0].type&&this.raiseRecoverable(Vt.params[0].start,"Setter cannot use rest params"),this.finishNode(p,"MethodDefinition")},Ft.parseClassField=function(p){if(or(p,"constructor")?this.raise(p.key.start,"Classes can't have a field named 'constructor'"):p.static&&or(p,"prototype")&&this.raise(p.key.start,"Classes can't have a static field named 'prototype'"),this.eat(_.eq)){var T=this.currentThisScope(),me=T.inClassFieldInit;T.inClassFieldInit=!0,p.value=this.parseMaybeAssign(),T.inClassFieldInit=me}else p.value=null;return this.semicolon(),this.finishNode(p,"PropertyDefinition")},Ft.parseClassStaticBlock=function(p){p.body=[];var T=this.labels;for(this.labels=[],this.enterScope(320);this.type!==_.braceR;){var me=this.parseStatement(null);p.body.push(me)}return this.next(),this.exitScope(),this.labels=T,this.finishNode(p,"StaticBlock")},Ft.parseClassId=function(p,T){this.type===_.name?(p.id=this.parseIdent(),T&&this.checkLValSimple(p.id,2,!1)):(!0===T&&this.unexpected(),p.id=null)},Ft.parseClassSuper=function(p){p.superClass=this.eat(_._extends)?this.parseExprSubscripts(null,!1):null},Ft.enterClassBody=function(){var p={declared:Object.create(null),used:[]};return this.privateNameStack.push(p),p.declared},Ft.exitClassBody=function(){var p=this.privateNameStack.pop(),T=p.declared,me=p.used;if(this.options.checkPrivateFields)for(var Re=this.privateNameStack.length,ot=0===Re?null:this.privateNameStack[Re-1],Vt=0;Vt<me.length;++Vt){var $t=me[Vt];_e(T,$t.name)||(ot?ot.used.push($t):this.raiseRecoverable($t.start,"Private field '#"+$t.name+"' must be declared in an enclosing class"))}},Ft.parseExportAllDeclaration=function(p,T){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(p.exported=this.parseModuleExportName(),this.checkExport(T,p.exported,this.lastTokStart)):p.exported=null),this.expectContextual("from"),this.type!==_.string&&this.unexpected(),p.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(p.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(p,"ExportAllDeclaration")},Ft.parseExport=function(p,T){if(this.next(),this.eat(_.star))return this.parseExportAllDeclaration(p,T);if(this.eat(_._default))return this.checkExport(T,"default",this.lastTokStart),p.declaration=this.parseExportDefaultDeclaration(),this.finishNode(p,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())p.declaration=this.parseExportDeclaration(p),"VariableDeclaration"===p.declaration.type?this.checkVariableExport(T,p.declaration.declarations):this.checkExport(T,p.declaration.id,p.declaration.id.start),p.specifiers=[],p.source=null;else{if(p.declaration=null,p.specifiers=this.parseExportSpecifiers(T),this.eatContextual("from"))this.type!==_.string&&this.unexpected(),p.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(p.attributes=this.parseWithClause());else{for(var me=0,Re=p.specifiers;me<Re.length;me+=1){var ot=Re[me];this.checkUnreserved(ot.local),this.checkLocalExport(ot.local),"Literal"===ot.local.type&&this.raise(ot.local.start,"A string literal cannot be used as an exported binding without `from`.")}p.source=null}this.semicolon()}return this.finishNode(p,"ExportNamedDeclaration")},Ft.parseExportDeclaration=function(p){return this.parseStatement(null)},Ft.parseExportDefaultDeclaration=function(){var p;if(this.type===_._function||(p=this.isAsyncFunction())){var T=this.startNode();return this.next(),p&&this.next(),this.parseFunction(T,4|Jt,!1,p)}if(this.type===_._class){var me=this.startNode();return this.parseClass(me,"nullableID")}var Re=this.parseMaybeAssign();return this.semicolon(),Re},Ft.checkExport=function(p,T,me){p&&("string"!=typeof T&&(T="Identifier"===T.type?T.name:T.value),_e(p,T)&&this.raiseRecoverable(me,"Duplicate export '"+T+"'"),p[T]=!0)},Ft.checkPatternExport=function(p,T){var me=T.type;if("Identifier"===me)this.checkExport(p,T,T.start);else if("ObjectPattern"===me)for(var Re=0,ot=T.properties;Re<ot.length;Re+=1)this.checkPatternExport(p,ot[Re]);else if("ArrayPattern"===me)for(var $t=0,vn=T.elements;$t<vn.length;$t+=1){var xn=vn[$t];xn&&this.checkPatternExport(p,xn)}else"Property"===me?this.checkPatternExport(p,T.value):"AssignmentPattern"===me?this.checkPatternExport(p,T.left):"RestElement"===me&&this.checkPatternExport(p,T.argument)},Ft.checkVariableExport=function(p,T){if(p)for(var me=0,Re=T;me<Re.length;me+=1)this.checkPatternExport(p,Re[me].id)},Ft.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},Ft.parseExportSpecifier=function(p){var T=this.startNode();return T.local=this.parseModuleExportName(),T.exported=this.eatContextual("as")?this.parseModuleExportName():T.local,this.checkExport(p,T.exported,T.exported.start),this.finishNode(T,"ExportSpecifier")},Ft.parseExportSpecifiers=function(p){var T=[],me=!0;for(this.expect(_.braceL);!this.eat(_.braceR);){if(me)me=!1;else if(this.expect(_.comma),this.afterTrailingComma(_.braceR))break;T.push(this.parseExportSpecifier(p))}return T},Ft.parseImport=function(p){return this.next(),this.type===_.string?(p.specifiers=ln,p.source=this.parseExprAtom()):(p.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),p.source=this.type===_.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(p.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(p,"ImportDeclaration")},Ft.parseImportSpecifier=function(){var p=this.startNode();return p.imported=this.parseModuleExportName(),this.eatContextual("as")?p.local=this.parseIdent():(this.checkUnreserved(p.imported),p.local=p.imported),this.checkLValSimple(p.local,2),this.finishNode(p,"ImportSpecifier")},Ft.parseImportDefaultSpecifier=function(){var p=this.startNode();return p.local=this.parseIdent(),this.checkLValSimple(p.local,2),this.finishNode(p,"ImportDefaultSpecifier")},Ft.parseImportNamespaceSpecifier=function(){var p=this.startNode();return this.next(),this.expectContextual("as"),p.local=this.parseIdent(),this.checkLValSimple(p.local,2),this.finishNode(p,"ImportNamespaceSpecifier")},Ft.parseImportSpecifiers=function(){var p=[],T=!0;if(this.type===_.name&&(p.push(this.parseImportDefaultSpecifier()),!this.eat(_.comma)))return p;if(this.type===_.star)return p.push(this.parseImportNamespaceSpecifier()),p;for(this.expect(_.braceL);!this.eat(_.braceR);){if(T)T=!1;else if(this.expect(_.comma),this.afterTrailingComma(_.braceR))break;p.push(this.parseImportSpecifier())}return p},Ft.parseWithClause=function(){var p=[];if(!this.eat(_._with))return p;this.expect(_.braceL);for(var T={},me=!0;!this.eat(_.braceR);){if(me)me=!1;else if(this.expect(_.comma),this.afterTrailingComma(_.braceR))break;var Re=this.parseImportAttribute(),ot="Identifier"===Re.key.type?Re.key.name:Re.key.value;_e(T,ot)&&this.raiseRecoverable(Re.key.start,"Duplicate attribute key '"+ot+"'"),T[ot]=!0,p.push(Re)}return p},Ft.parseImportAttribute=function(){var p=this.startNode();return p.key=this.type===_.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved),this.expect(_.colon),this.type!==_.string&&this.unexpected(),p.value=this.parseExprAtom(),this.finishNode(p,"ImportAttribute")},Ft.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===_.string){var p=this.parseLiteral(this.value);return we.test(p.value)&&this.raise(p.start,"An export name cannot include a lone surrogate."),p}return this.parseIdent(!0)},Ft.adaptDirectivePrologue=function(p){for(var T=0;T<p.length&&this.isDirectiveCandidate(p[T]);++T)p[T].directive=p[T].expression.raw.slice(1,-1)},Ft.isDirectiveCandidate=function(p){return this.options.ecmaVersion>=5&&"ExpressionStatement"===p.type&&"Literal"===p.expression.type&&"string"==typeof p.expression.value&&('"'===this.input[p.start]||"'"===this.input[p.start])};var jt=Ve.prototype;jt.toAssignable=function(p,T,me){if(this.options.ecmaVersion>=6&&p)switch(p.type){case"Identifier":this.inAsync&&"await"===p.name&&this.raise(p.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":p.type="ObjectPattern",me&&this.checkPatternErrors(me,!0);for(var Re=0,ot=p.properties;Re<ot.length;Re+=1){var Vt=ot[Re];this.toAssignable(Vt,T),"RestElement"===Vt.type&&("ArrayPattern"===Vt.argument.type||"ObjectPattern"===Vt.argument.type)&&this.raise(Vt.argument.start,"Unexpected token")}break;case"Property":"init"!==p.kind&&this.raise(p.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(p.value,T);break;case"ArrayExpression":p.type="ArrayPattern",me&&this.checkPatternErrors(me,!0),this.toAssignableList(p.elements,T);break;case"SpreadElement":p.type="RestElement",this.toAssignable(p.argument,T),"AssignmentPattern"===p.argument.type&&this.raise(p.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==p.operator&&this.raise(p.left.end,"Only '=' operator can be used for specifying default value."),p.type="AssignmentPattern",delete p.operator,this.toAssignable(p.left,T);break;case"ParenthesizedExpression":this.toAssignable(p.expression,T,me);break;case"ChainExpression":this.raiseRecoverable(p.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!T)break;default:this.raise(p.start,"Assigning to rvalue")}else me&&this.checkPatternErrors(me,!0);return p},jt.toAssignableList=function(p,T){for(var me=p.length,Re=0;Re<me;Re++){var ot=p[Re];ot&&this.toAssignable(ot,T)}if(me){var Vt=p[me-1];6===this.options.ecmaVersion&&T&&Vt&&"RestElement"===Vt.type&&"Identifier"!==Vt.argument.type&&this.unexpected(Vt.argument.start)}return p},jt.parseSpread=function(p){var T=this.startNode();return this.next(),T.argument=this.parseMaybeAssign(!1,p),this.finishNode(T,"SpreadElement")},jt.parseRestBinding=function(){var p=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==_.name&&this.unexpected(),p.argument=this.parseBindingAtom(),this.finishNode(p,"RestElement")},jt.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case _.bracketL:var p=this.startNode();return this.next(),p.elements=this.parseBindingList(_.bracketR,!0,!0),this.finishNode(p,"ArrayPattern");case _.braceL:return this.parseObj(!0)}return this.parseIdent()},jt.parseBindingList=function(p,T,me,Re){for(var ot=[],Vt=!0;!this.eat(p);)if(Vt?Vt=!1:this.expect(_.comma),T&&this.type===_.comma)ot.push(null);else{if(me&&this.afterTrailingComma(p))break;if(this.type===_.ellipsis){var $t=this.parseRestBinding();this.parseBindingListItem($t),ot.push($t),this.type===_.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(p);break}ot.push(this.parseAssignableListItem(Re))}return ot},jt.parseAssignableListItem=function(p){var T=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(T),T},jt.parseBindingListItem=function(p){return p},jt.parseMaybeDefault=function(p,T,me){if(me=me||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(_.eq))return me;var Re=this.startNodeAt(p,T);return Re.left=me,Re.right=this.parseMaybeAssign(),this.finishNode(Re,"AssignmentPattern")},jt.checkLValSimple=function(p,T,me){void 0===T&&(T=0);var Re=0!==T;switch(p.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(p.name)&&this.raiseRecoverable(p.start,(Re?"Binding ":"Assigning to ")+p.name+" in strict mode"),Re&&(2===T&&"let"===p.name&&this.raiseRecoverable(p.start,"let is disallowed as a lexically bound name"),me&&(_e(me,p.name)&&this.raiseRecoverable(p.start,"Argument name clash"),me[p.name]=!0),5!==T&&this.declareName(p.name,T,p.start));break;case"ChainExpression":this.raiseRecoverable(p.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":Re&&this.raiseRecoverable(p.start,"Binding member expression");break;case"ParenthesizedExpression":return Re&&this.raiseRecoverable(p.start,"Binding parenthesized expression"),this.checkLValSimple(p.expression,T,me);default:this.raise(p.start,(Re?"Binding":"Assigning to")+" rvalue")}},jt.checkLValPattern=function(p,T,me){switch(void 0===T&&(T=0),p.type){case"ObjectPattern":for(var Re=0,ot=p.properties;Re<ot.length;Re+=1)this.checkLValInnerPattern(ot[Re],T,me);break;case"ArrayPattern":for(var $t=0,vn=p.elements;$t<vn.length;$t+=1){var xn=vn[$t];xn&&this.checkLValInnerPattern(xn,T,me)}break;default:this.checkLValSimple(p,T,me)}},jt.checkLValInnerPattern=function(p,T,me){switch(void 0===T&&(T=0),p.type){case"Property":this.checkLValInnerPattern(p.value,T,me);break;case"AssignmentPattern":this.checkLValPattern(p.left,T,me);break;case"RestElement":this.checkLValPattern(p.argument,T,me);break;default:this.checkLValPattern(p,T,me)}};var tn=function(T,me,Re,ot,Vt){this.token=T,this.isExpr=!!me,this.preserveSpace=!!Re,this.override=ot,this.generator=!!Vt},on={b_stat:new tn("{",!1),b_expr:new tn("{",!0),b_tmpl:new tn("${",!1),p_stat:new tn("(",!1),p_expr:new tn("(",!0),q_tmpl:new tn("`",!0,!0,function(p){return p.tryReadTemplateToken()}),f_stat:new tn("function",!1),f_expr:new tn("function",!0),f_expr_gen:new tn("function",!0,!1,null,!0),f_gen:new tn("function",!1,!1,null,!0)},kt=Ve.prototype;kt.initialContext=function(){return[on.b_stat]},kt.curContext=function(){return this.context[this.context.length-1]},kt.braceIsBlock=function(p){var T=this.curContext();return T===on.f_expr||T===on.f_stat||(p!==_.colon||T!==on.b_stat&&T!==on.b_expr?p===_._return||p===_.name&&this.exprAllowed?O.test(this.input.slice(this.lastTokEnd,this.start)):p===_._else||p===_.semi||p===_.eof||p===_.parenR||p===_.arrow||(p===_.braceL?T===on.b_stat:p!==_._var&&p!==_._const&&p!==_.name&&!this.exprAllowed):!T.isExpr)},kt.inGeneratorContext=function(){for(var p=this.context.length-1;p>=1;p--){var T=this.context[p];if("function"===T.token)return T.generator}return!1},kt.updateContext=function(p){var T,me=this.type;me.keyword&&p===_.dot?this.exprAllowed=!1:(T=me.updateContext)?T.call(this,p):this.exprAllowed=me.beforeExpr},kt.overrideContext=function(p){this.curContext()!==p&&(this.context[this.context.length-1]=p)},_.parenR.updateContext=_.braceR.updateContext=function(){if(1!==this.context.length){var p=this.context.pop();p===on.b_stat&&"function"===this.curContext().token&&(p=this.context.pop()),this.exprAllowed=!p.isExpr}else this.exprAllowed=!0},_.braceL.updateContext=function(p){this.context.push(this.braceIsBlock(p)?on.b_stat:on.b_expr),this.exprAllowed=!0},_.dollarBraceL.updateContext=function(){this.context.push(on.b_tmpl),this.exprAllowed=!0},_.parenL.updateContext=function(p){this.context.push(p===_._if||p===_._for||p===_._with||p===_._while?on.p_stat:on.p_expr),this.exprAllowed=!0},_.incDec.updateContext=function(){},_._function.updateContext=_._class.updateContext=function(p){!p.beforeExpr||p===_._else||p===_.semi&&this.curContext()!==on.p_stat||p===_._return&&O.test(this.input.slice(this.lastTokEnd,this.start))||(p===_.colon||p===_.braceL)&&this.curContext()===on.b_stat?this.context.push(on.f_stat):this.context.push(on.f_expr),this.exprAllowed=!1},_.colon.updateContext=function(){"function"===this.curContext().token&&this.context.pop(),this.exprAllowed=!0},_.backQuote.updateContext=function(){this.curContext()===on.q_tmpl?this.context.pop():this.context.push(on.q_tmpl),this.exprAllowed=!1},_.star.updateContext=function(p){if(p===_._function){var T=this.context.length-1;this.context[T]=this.context[T]===on.f_expr?on.f_expr_gen:on.f_gen}this.exprAllowed=!0},_.name.updateContext=function(p){var T=!1;this.options.ecmaVersion>=6&&p!==_.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(T=!0),this.exprAllowed=T};var Pt=Ve.prototype;function It(p){return"Identifier"===p.type||"ParenthesizedExpression"===p.type&&It(p.expression)}function Dt(p){return"MemberExpression"===p.type&&"PrivateIdentifier"===p.property.type||"ChainExpression"===p.type&&Dt(p.expression)||"ParenthesizedExpression"===p.type&&Dt(p.expression)}Pt.checkPropClash=function(p,T,me){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===p.type||this.options.ecmaVersion>=6&&(p.computed||p.method||p.shorthand))){var ot,Re=p.key;switch(Re.type){case"Identifier":ot=Re.name;break;case"Literal":ot=String(Re.value);break;default:return}var Vt=p.kind;if(this.options.ecmaVersion>=6)return void("__proto__"===ot&&"init"===Vt&&(T.proto&&(me?me.doubleProto<0&&(me.doubleProto=Re.start):this.raiseRecoverable(Re.start,"Redefinition of __proto__ property")),T.proto=!0));var $t=T[ot="$"+ot];$t?("init"===Vt?this.strict&&$t.init||$t.get||$t.set:$t.init||$t[Vt])&&this.raiseRecoverable(Re.start,"Redefinition of property"):$t=T[ot]={init:!1,get:!1,set:!1},$t[Vt]=!0}},Pt.parseExpression=function(p,T){var me=this.start,Re=this.startLoc,ot=this.parseMaybeAssign(p,T);if(this.type===_.comma){var Vt=this.startNodeAt(me,Re);for(Vt.expressions=[ot];this.eat(_.comma);)Vt.expressions.push(this.parseMaybeAssign(p,T));return this.finishNode(Vt,"SequenceExpression")}return ot},Pt.parseMaybeAssign=function(p,T,me){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(p);this.exprAllowed=!1}var Re=!1,ot=-1,Vt=-1,$t=-1;T?(ot=T.parenthesizedAssign,Vt=T.trailingComma,$t=T.doubleProto,T.parenthesizedAssign=T.trailingComma=-1):(T=new Yt,Re=!0);var vn=this.start,xn=this.startLoc;(this.type===_.parenL||this.type===_.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===p);var gr=this.parseMaybeConditional(p,T);if(me&&(gr=me.call(this,gr,vn,xn)),this.type.isAssign){var tr=this.startNodeAt(vn,xn);return tr.operator=this.value,this.type===_.eq&&(gr=this.toAssignable(gr,!1,T)),Re||(T.parenthesizedAssign=T.trailingComma=T.doubleProto=-1),T.shorthandAssign>=gr.start&&(T.shorthandAssign=-1),this.type===_.eq?this.checkLValPattern(gr):this.checkLValSimple(gr),tr.left=gr,this.next(),tr.right=this.parseMaybeAssign(p),$t>-1&&(T.doubleProto=$t),this.finishNode(tr,"AssignmentExpression")}return Re&&this.checkExpressionErrors(T,!0),ot>-1&&(T.parenthesizedAssign=ot),Vt>-1&&(T.trailingComma=Vt),gr},Pt.parseMaybeConditional=function(p,T){var me=this.start,Re=this.startLoc,ot=this.parseExprOps(p,T);if(this.checkExpressionErrors(T))return ot;if(this.eat(_.question)){var Vt=this.startNodeAt(me,Re);return Vt.test=ot,Vt.consequent=this.parseMaybeAssign(),this.expect(_.colon),Vt.alternate=this.parseMaybeAssign(p),this.finishNode(Vt,"ConditionalExpression")}return ot},Pt.parseExprOps=function(p,T){var me=this.start,Re=this.startLoc,ot=this.parseMaybeUnary(T,!1,!1,p);return this.checkExpressionErrors(T)||ot.start===me&&"ArrowFunctionExpression"===ot.type?ot:this.parseExprOp(ot,me,Re,-1,p)},Pt.parseExprOp=function(p,T,me,Re,ot){var Vt=this.type.binop;if(null!=Vt&&(!ot||this.type!==_._in)&&Vt>Re){var $t=this.type===_.logicalOR||this.type===_.logicalAND,vn=this.type===_.coalesce;vn&&(Vt=_.logicalAND.binop);var xn=this.value;this.next();var gr=this.start,tr=this.startLoc,wr=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,ot),gr,tr,Vt,ot),zr=this.buildBinary(T,me,p,wr,xn,$t||vn);return($t&&this.type===_.coalesce||vn&&(this.type===_.logicalOR||this.type===_.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(zr,T,me,Re,ot)}return p},Pt.buildBinary=function(p,T,me,Re,ot,Vt){"PrivateIdentifier"===Re.type&&this.raise(Re.start,"Private identifier can only be left side of binary expression");var $t=this.startNodeAt(p,T);return $t.left=me,$t.operator=ot,$t.right=Re,this.finishNode($t,Vt?"LogicalExpression":"BinaryExpression")},Pt.parseMaybeUnary=function(p,T,me,Re){var $t,ot=this.start,Vt=this.startLoc;if(this.isContextual("await")&&this.canAwait)$t=this.parseAwait(Re),T=!0;else if(this.type.prefix){var vn=this.startNode(),xn=this.type===_.incDec;vn.operator=this.value,vn.prefix=!0,this.next(),vn.argument=this.parseMaybeUnary(null,!0,xn,Re),this.checkExpressionErrors(p,!0),xn?this.checkLValSimple(vn.argument):this.strict&&"delete"===vn.operator&&It(vn.argument)?this.raiseRecoverable(vn.start,"Deleting local variable in strict mode"):"delete"===vn.operator&&Dt(vn.argument)?this.raiseRecoverable(vn.start,"Private fields can not be deleted"):T=!0,$t=this.finishNode(vn,xn?"UpdateExpression":"UnaryExpression")}else if(T||this.type!==_.privateId){if($t=this.parseExprSubscripts(p,Re),this.checkExpressionErrors(p))return $t;for(;this.type.postfix&&!this.canInsertSemicolon();){var gr=this.startNodeAt(ot,Vt);gr.operator=this.value,gr.prefix=!1,gr.argument=$t,this.checkLValSimple($t),this.next(),$t=this.finishNode(gr,"UpdateExpression")}}else(Re||0===this.privateNameStack.length)&&this.options.checkPrivateFields&&this.unexpected(),$t=this.parsePrivateIdent(),this.type!==_._in&&this.unexpected();return me||!this.eat(_.starstar)?$t:T?void this.unexpected(this.lastTokStart):this.buildBinary(ot,Vt,$t,this.parseMaybeUnary(null,!1,!1,Re),"**",!1)},Pt.parseExprSubscripts=function(p,T){var me=this.start,Re=this.startLoc,ot=this.parseExprAtom(p,T);if("ArrowFunctionExpression"===ot.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return ot;var Vt=this.parseSubscripts(ot,me,Re,!1,T);return p&&"MemberExpression"===Vt.type&&(p.parenthesizedAssign>=Vt.start&&(p.parenthesizedAssign=-1),p.parenthesizedBind>=Vt.start&&(p.parenthesizedBind=-1),p.trailingComma>=Vt.start&&(p.trailingComma=-1)),Vt},Pt.parseSubscripts=function(p,T,me,Re,ot){for(var Vt=this.options.ecmaVersion>=8&&"Identifier"===p.type&&"async"===p.name&&this.lastTokEnd===p.end&&!this.canInsertSemicolon()&&p.end-p.start==5&&this.potentialArrowAt===p.start,$t=!1;;){var vn=this.parseSubscript(p,T,me,Re,Vt,$t,ot);if(vn.optional&&($t=!0),vn===p||"ArrowFunctionExpression"===vn.type){if($t){var xn=this.startNodeAt(T,me);xn.expression=vn,vn=this.finishNode(xn,"ChainExpression")}return vn}p=vn}},Pt.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(_.arrow)},Pt.parseSubscriptAsyncArrow=function(p,T,me,Re){return this.parseArrowExpression(this.startNodeAt(p,T),me,!0,Re)},Pt.parseSubscript=function(p,T,me,Re,ot,Vt,$t){var vn=this.options.ecmaVersion>=11,xn=vn&&this.eat(_.questionDot);Re&&xn&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var gr=this.eat(_.bracketL);if(gr||xn&&this.type!==_.parenL&&this.type!==_.backQuote||this.eat(_.dot)){var tr=this.startNodeAt(T,me);tr.object=p,gr?(tr.property=this.parseExpression(),this.expect(_.bracketR)):tr.property=this.type===_.privateId&&"Super"!==p.type?this.parsePrivateIdent():this.parseIdent("never"!==this.options.allowReserved),tr.computed=!!gr,vn&&(tr.optional=xn),p=this.finishNode(tr,"MemberExpression")}else if(!Re&&this.eat(_.parenL)){var wr=new Yt,zr=this.yieldPos,vo=this.awaitPos,$i=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var zo=this.parseExprList(_.parenR,this.options.ecmaVersion>=8,!1,wr);if(ot&&!xn&&this.shouldParseAsyncArrow())return this.checkPatternErrors(wr,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=zr,this.awaitPos=vo,this.awaitIdentPos=$i,this.parseSubscriptAsyncArrow(T,me,zo,$t);this.checkExpressionErrors(wr,!0),this.yieldPos=zr||this.yieldPos,this.awaitPos=vo||this.awaitPos,this.awaitIdentPos=$i||this.awaitIdentPos;var ci=this.startNodeAt(T,me);ci.callee=p,ci.arguments=zo,vn&&(ci.optional=xn),p=this.finishNode(ci,"CallExpression")}else if(this.type===_.backQuote){(xn||Vt)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var qi=this.startNodeAt(T,me);qi.tag=p,qi.quasi=this.parseTemplate({isTagged:!0}),p=this.finishNode(qi,"TaggedTemplateExpression")}return p},Pt.parseExprAtom=function(p,T,me){this.type===_.slash&&this.readRegexp();var Re,ot=this.potentialArrowAt===this.start;switch(this.type){case _._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),Re=this.startNode(),this.next(),this.type===_.parenL&&!this.allowDirectSuper&&this.raise(Re.start,"super() call outside constructor of a subclass"),this.type!==_.dot&&this.type!==_.bracketL&&this.type!==_.parenL&&this.unexpected(),this.finishNode(Re,"Super");case _._this:return Re=this.startNode(),this.next(),this.finishNode(Re,"ThisExpression");case _.name:var Vt=this.start,$t=this.startLoc,vn=this.containsEsc,xn=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!vn&&"async"===xn.name&&!this.canInsertSemicolon()&&this.eat(_._function))return this.overrideContext(on.f_expr),this.parseFunction(this.startNodeAt(Vt,$t),0,!1,!0,T);if(ot&&!this.canInsertSemicolon()){if(this.eat(_.arrow))return this.parseArrowExpression(this.startNodeAt(Vt,$t),[xn],!1,T);if(this.options.ecmaVersion>=8&&"async"===xn.name&&this.type===_.name&&!vn&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return xn=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(_.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(Vt,$t),[xn],!0,T)}return xn;case _.regexp:var gr=this.value;return(Re=this.parseLiteral(gr.value)).regex={pattern:gr.pattern,flags:gr.flags},Re;case _.num:case _.string:return this.parseLiteral(this.value);case _._null:case _._true:case _._false:return(Re=this.startNode()).value=this.type===_._null?null:this.type===_._true,Re.raw=this.type.keyword,this.next(),this.finishNode(Re,"Literal");case _.parenL:var tr=this.start,wr=this.parseParenAndDistinguishExpression(ot,T);return p&&(p.parenthesizedAssign<0&&!this.isSimpleAssignTarget(wr)&&(p.parenthesizedAssign=tr),p.parenthesizedBind<0&&(p.parenthesizedBind=tr)),wr;case _.bracketL:return Re=this.startNode(),this.next(),Re.elements=this.parseExprList(_.bracketR,!0,!0,p),this.finishNode(Re,"ArrayExpression");case _.braceL:return this.overrideContext(on.b_expr),this.parseObj(!1,p);case _._function:return Re=this.startNode(),this.next(),this.parseFunction(Re,0);case _._class:return this.parseClass(this.startNode(),!1);case _._new:return this.parseNew();case _.backQuote:return this.parseTemplate();case _._import:return this.options.ecmaVersion>=11?this.parseExprImport(me):this.unexpected();default:return this.parseExprAtomDefault()}},Pt.parseExprAtomDefault=function(){this.unexpected()},Pt.parseExprImport=function(p){var T=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===_.parenL&&!p)return this.parseDynamicImport(T);if(this.type===_.dot){var me=this.startNodeAt(T.start,T.loc&&T.loc.start);return me.name="import",T.meta=this.finishNode(me,"Identifier"),this.parseImportMeta(T)}this.unexpected()},Pt.parseDynamicImport=function(p){if(this.next(),p.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(_.parenR)?p.options=null:(this.expect(_.comma),this.afterTrailingComma(_.parenR)?p.options=null:(p.options=this.parseMaybeAssign(),this.eat(_.parenR)||(this.expect(_.comma),this.afterTrailingComma(_.parenR)||this.unexpected())));else if(!this.eat(_.parenR)){var T=this.start;this.eat(_.comma)&&this.eat(_.parenR)?this.raiseRecoverable(T,"Trailing comma is not allowed in import()"):this.unexpected(T)}return this.finishNode(p,"ImportExpression")},Pt.parseImportMeta=function(p){this.next();var T=this.containsEsc;return p.property=this.parseIdent(!0),"meta"!==p.property.name&&this.raiseRecoverable(p.property.start,"The only valid meta property for import is 'import.meta'"),T&&this.raiseRecoverable(p.start,"'import.meta' must not contain escaped characters"),"module"!==this.options.sourceType&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(p.start,"Cannot use 'import.meta' outside a module"),this.finishNode(p,"MetaProperty")},Pt.parseLiteral=function(p){var T=this.startNode();return T.value=p,T.raw=this.input.slice(this.start,this.end),110===T.raw.charCodeAt(T.raw.length-1)&&(T.bigint=T.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(T,"Literal")},Pt.parseParenExpression=function(){this.expect(_.parenL);var p=this.parseExpression();return this.expect(_.parenR),p},Pt.shouldParseArrow=function(p){return!this.canInsertSemicolon()},Pt.parseParenAndDistinguishExpression=function(p,T){var ot,me=this.start,Re=this.startLoc,Vt=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var $i,$t=this.start,vn=this.startLoc,xn=[],gr=!0,tr=!1,wr=new Yt,zr=this.yieldPos,vo=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==_.parenR;){if(gr?gr=!1:this.expect(_.comma),Vt&&this.afterTrailingComma(_.parenR,!0)){tr=!0;break}if(this.type===_.ellipsis){$i=this.start,xn.push(this.parseParenItem(this.parseRestBinding())),this.type===_.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}xn.push(this.parseMaybeAssign(!1,wr,this.parseParenItem))}var zo=this.lastTokEnd,ci=this.lastTokEndLoc;if(this.expect(_.parenR),p&&this.shouldParseArrow(xn)&&this.eat(_.arrow))return this.checkPatternErrors(wr,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=zr,this.awaitPos=vo,this.parseParenArrowList(me,Re,xn,T);(!xn.length||tr)&&this.unexpected(this.lastTokStart),$i&&this.unexpected($i),this.checkExpressionErrors(wr,!0),this.yieldPos=zr||this.yieldPos,this.awaitPos=vo||this.awaitPos,xn.length>1?((ot=this.startNodeAt($t,vn)).expressions=xn,this.finishNodeAt(ot,"SequenceExpression",zo,ci)):ot=xn[0]}else ot=this.parseParenExpression();if(this.options.preserveParens){var qi=this.startNodeAt(me,Re);return qi.expression=ot,this.finishNode(qi,"ParenthesizedExpression")}return ot},Pt.parseParenItem=function(p){return p},Pt.parseParenArrowList=function(p,T,me,Re){return this.parseArrowExpression(this.startNodeAt(p,T),me,!1,Re)};var Ct=[];Pt.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var p=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===_.dot){var T=this.startNodeAt(p.start,p.loc&&p.loc.start);T.name="new",p.meta=this.finishNode(T,"Identifier"),this.next();var me=this.containsEsc;return p.property=this.parseIdent(!0),"target"!==p.property.name&&this.raiseRecoverable(p.property.start,"The only valid meta property for new is 'new.target'"),me&&this.raiseRecoverable(p.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(p.start,"'new.target' can only be used in functions and class static block"),this.finishNode(p,"MetaProperty")}var Re=this.start,ot=this.startLoc;return p.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),Re,ot,!0,!1),p.arguments=this.eat(_.parenL)?this.parseExprList(_.parenR,this.options.ecmaVersion>=8,!1):Ct,this.finishNode(p,"NewExpression")},Pt.parseTemplateElement=function(p){var T=p.isTagged,me=this.startNode();return this.type===_.invalidTemplate?(T||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),me.value={raw:this.value.replace(/\r\n?/g,"\n"),cooked:null}):me.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),me.tail=this.type===_.backQuote,this.finishNode(me,"TemplateElement")},Pt.parseTemplate=function(p){void 0===p&&(p={});var T=p.isTagged;void 0===T&&(T=!1);var me=this.startNode();this.next(),me.expressions=[];var Re=this.parseTemplateElement({isTagged:T});for(me.quasis=[Re];!Re.tail;)this.type===_.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(_.dollarBraceL),me.expressions.push(this.parseExpression()),this.expect(_.braceR),me.quasis.push(Re=this.parseTemplateElement({isTagged:T}));return this.next(),this.finishNode(me,"TemplateLiteral")},Pt.isAsyncProp=function(p){return!p.computed&&"Identifier"===p.key.type&&"async"===p.key.name&&(this.type===_.name||this.type===_.num||this.type===_.string||this.type===_.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===_.star)&&!O.test(this.input.slice(this.lastTokEnd,this.start))},Pt.parseObj=function(p,T){var me=this.startNode(),Re=!0,ot={};for(me.properties=[],this.next();!this.eat(_.braceR);){if(Re)Re=!1;else if(this.expect(_.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(_.braceR))break;var Vt=this.parseProperty(p,T);p||this.checkPropClash(Vt,ot,T),me.properties.push(Vt)}return this.finishNode(me,p?"ObjectPattern":"ObjectExpression")},Pt.parseProperty=function(p,T){var Re,ot,Vt,$t,me=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(_.ellipsis))return p?(me.argument=this.parseIdent(!1),this.type===_.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(me,"RestElement")):(me.argument=this.parseMaybeAssign(!1,T),this.type===_.comma&&T&&T.trailingComma<0&&(T.trailingComma=this.start),this.finishNode(me,"SpreadElement"));this.options.ecmaVersion>=6&&(me.method=!1,me.shorthand=!1,(p||T)&&(Vt=this.start,$t=this.startLoc),p||(Re=this.eat(_.star)));var vn=this.containsEsc;return this.parsePropertyName(me),!p&&!vn&&this.options.ecmaVersion>=8&&!Re&&this.isAsyncProp(me)?(ot=!0,Re=this.options.ecmaVersion>=9&&this.eat(_.star),this.parsePropertyName(me)):ot=!1,this.parsePropertyValue(me,p,Re,ot,Vt,$t,T,vn),this.finishNode(me,"Property")},Pt.parseGetterSetter=function(p){(p.kind=p.key.name,this.parsePropertyName(p),p.value=this.parseMethod(!1),p.value.params.length!==("get"===p.kind?0:1))?this.raiseRecoverable(p.value.start,"get"===p.kind?"getter should have no params":"setter should have exactly one param"):"set"===p.kind&&"RestElement"===p.value.params[0].type&&this.raiseRecoverable(p.value.params[0].start,"Setter cannot use rest params")},Pt.parsePropertyValue=function(p,T,me,Re,ot,Vt,$t,vn){(me||Re)&&this.type===_.colon&&this.unexpected(),this.eat(_.colon)?(p.value=T?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,$t),p.kind="init"):this.options.ecmaVersion>=6&&this.type===_.parenL?(T&&this.unexpected(),p.kind="init",p.method=!0,p.value=this.parseMethod(me,Re)):T||vn||!(this.options.ecmaVersion>=5)||p.computed||"Identifier"!==p.key.type||"get"!==p.key.name&&"set"!==p.key.name||this.type===_.comma||this.type===_.braceR||this.type===_.eq?this.options.ecmaVersion>=6&&!p.computed&&"Identifier"===p.key.type?((me||Re)&&this.unexpected(),this.checkUnreserved(p.key),"await"===p.key.name&&!this.awaitIdentPos&&(this.awaitIdentPos=ot),p.kind="init",T?p.value=this.parseMaybeDefault(ot,Vt,this.copyNode(p.key)):this.type===_.eq&&$t?($t.shorthandAssign<0&&($t.shorthandAssign=this.start),p.value=this.parseMaybeDefault(ot,Vt,this.copyNode(p.key))):p.value=this.copyNode(p.key),p.shorthand=!0):this.unexpected():((me||Re)&&this.unexpected(),this.parseGetterSetter(p))},Pt.parsePropertyName=function(p){if(this.options.ecmaVersion>=6){if(this.eat(_.bracketL))return p.computed=!0,p.key=this.parseMaybeAssign(),this.expect(_.bracketR),p.key;p.computed=!1}return p.key=this.type===_.num||this.type===_.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},Pt.initFunction=function(p){p.id=null,this.options.ecmaVersion>=6&&(p.generator=p.expression=!1),this.options.ecmaVersion>=8&&(p.async=!1)},Pt.parseMethod=function(p,T,me){var Re=this.startNode(),ot=this.yieldPos,Vt=this.awaitPos,$t=this.awaitIdentPos;return this.initFunction(Re),this.options.ecmaVersion>=6&&(Re.generator=p),this.options.ecmaVersion>=8&&(Re.async=!!T),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|Ce(T,Re.generator)|(me?128:0)),this.expect(_.parenL),Re.params=this.parseBindingList(_.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(Re,!1,!0,!1),this.yieldPos=ot,this.awaitPos=Vt,this.awaitIdentPos=$t,this.finishNode(Re,"FunctionExpression")},Pt.parseArrowExpression=function(p,T,me,Re){var ot=this.yieldPos,Vt=this.awaitPos,$t=this.awaitIdentPos;return this.enterScope(16|Ce(me,!1)),this.initFunction(p),this.options.ecmaVersion>=8&&(p.async=!!me),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,p.params=this.toAssignableList(T,!0),this.parseFunctionBody(p,!0,!1,Re),this.yieldPos=ot,this.awaitPos=Vt,this.awaitIdentPos=$t,this.finishNode(p,"ArrowFunctionExpression")},Pt.parseFunctionBody=function(p,T,me,Re){var Vt=this.strict,$t=!1;if(T&&this.type!==_.braceL)p.body=this.parseMaybeAssign(Re),p.expression=!0,this.checkParams(p,!1);else{var vn=this.options.ecmaVersion>=7&&!this.isSimpleParamList(p.params);(!Vt||vn)&&($t=this.strictDirective(this.end))&&vn&&this.raiseRecoverable(p.start,"Illegal 'use strict' directive in function with non-simple parameter list");var xn=this.labels;this.labels=[],$t&&(this.strict=!0),this.checkParams(p,!Vt&&!$t&&!T&&!me&&this.isSimpleParamList(p.params)),this.strict&&p.id&&this.checkLValSimple(p.id,5),p.body=this.parseBlock(!1,void 0,$t&&!Vt),p.expression=!1,this.adaptDirectivePrologue(p.body.body),this.labels=xn}this.exitScope()},Pt.isSimpleParamList=function(p){for(var T=0,me=p;T<me.length;T+=1)if("Identifier"!==me[T].type)return!1;return!0},Pt.checkParams=function(p,T){for(var me=Object.create(null),Re=0,ot=p.params;Re<ot.length;Re+=1)this.checkLValInnerPattern(ot[Re],1,T?null:me)},Pt.parseExprList=function(p,T,me,Re){for(var ot=[],Vt=!0;!this.eat(p);){if(Vt)Vt=!1;else if(this.expect(_.comma),T&&this.afterTrailingComma(p))break;var $t=void 0;me&&this.type===_.comma?$t=null:this.type===_.ellipsis?($t=this.parseSpread(Re),Re&&this.type===_.comma&&Re.trailingComma<0&&(Re.trailingComma=this.start)):$t=this.parseMaybeAssign(!1,Re),ot.push($t)}return ot},Pt.checkUnreserved=function(p){var T=p.start,me=p.end,Re=p.name;this.inGenerator&&"yield"===Re&&this.raiseRecoverable(T,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===Re&&this.raiseRecoverable(T,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&"arguments"===Re&&this.raiseRecoverable(T,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&("arguments"===Re||"await"===Re)&&this.raise(T,"Cannot use "+Re+" in class static initialization block"),this.keywords.test(Re)&&this.raise(T,"Unexpected keyword '"+Re+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(T,me).indexOf("\\")||(this.strict?this.reservedWordsStrict:this.reservedWords).test(Re)&&(!this.inAsync&&"await"===Re&&this.raiseRecoverable(T,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(T,"The keyword '"+Re+"' is reserved"))},Pt.parseIdent=function(p){var T=this.parseIdentNode();return this.next(!!p),this.finishNode(T,"Identifier"),p||(this.checkUnreserved(T),"await"===T.name&&!this.awaitIdentPos&&(this.awaitIdentPos=T.start)),T},Pt.parseIdentNode=function(){var p=this.startNode();return this.type===_.name?p.name=this.value:this.type.keyword?(p.name=this.type.keyword,("class"===p.name||"function"===p.name)&&(this.lastTokEnd!==this.lastTokStart+1||46!==this.input.charCodeAt(this.lastTokStart))&&this.context.pop(),this.type=_.name):this.unexpected(),p},Pt.parsePrivateIdent=function(){var p=this.startNode();return this.type===_.privateId?p.name=this.value:this.unexpected(),this.next(),this.finishNode(p,"PrivateIdentifier"),this.options.checkPrivateFields&&(0===this.privateNameStack.length?this.raise(p.start,"Private field '#"+p.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(p)),p},Pt.parseYield=function(p){this.yieldPos||(this.yieldPos=this.start);var T=this.startNode();return this.next(),this.type===_.semi||this.canInsertSemicolon()||this.type!==_.star&&!this.type.startsExpr?(T.delegate=!1,T.argument=null):(T.delegate=this.eat(_.star),T.argument=this.parseMaybeAssign(p)),this.finishNode(T,"YieldExpression")},Pt.parseAwait=function(p){this.awaitPos||(this.awaitPos=this.start);var T=this.startNode();return this.next(),T.argument=this.parseMaybeUnary(null,!0,!1,p),this.finishNode(T,"AwaitExpression")};var sn=Ve.prototype;sn.raise=function(p,T){var me=je(this.input,p),Re=new SyntaxError(T+=" ("+me.line+":"+me.column+")");throw Re.pos=p,Re.loc=me,Re.raisedAt=this.pos,Re},sn.raiseRecoverable=sn.raise,sn.curPosition=function(){if(this.options.locations)return new ze(this.curLine,this.pos-this.lineStart)};var An=Ve.prototype,Qn=function(T){this.flags=T,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};An.enterScope=function(p){this.scopeStack.push(new Qn(p))},An.exitScope=function(){this.scopeStack.pop()},An.treatFunctionsAsVarInScope=function(p){return 2&p.flags||!this.inModule&&1&p.flags},An.declareName=function(p,T,me){var Re=!1;if(2===T){var ot=this.currentScope();Re=ot.lexical.indexOf(p)>-1||ot.functions.indexOf(p)>-1||ot.var.indexOf(p)>-1,ot.lexical.push(p),this.inModule&&1&ot.flags&&delete this.undefinedExports[p]}else if(4===T)this.currentScope().lexical.push(p);else if(3===T){var $t=this.currentScope();Re=this.treatFunctionsAsVar?$t.lexical.indexOf(p)>-1:$t.lexical.indexOf(p)>-1||$t.var.indexOf(p)>-1,$t.functions.push(p)}else for(var vn=this.scopeStack.length-1;vn>=0;--vn){var xn=this.scopeStack[vn];if(xn.lexical.indexOf(p)>-1&&!(32&xn.flags&&xn.lexical[0]===p)||!this.treatFunctionsAsVarInScope(xn)&&xn.functions.indexOf(p)>-1){Re=!0;break}if(xn.var.push(p),this.inModule&&1&xn.flags&&delete this.undefinedExports[p],259&xn.flags)break}Re&&this.raiseRecoverable(me,"Identifier '"+p+"' has already been declared")},An.checkLocalExport=function(p){-1===this.scopeStack[0].lexical.indexOf(p.name)&&-1===this.scopeStack[0].var.indexOf(p.name)&&(this.undefinedExports[p.name]=p)},An.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},An.currentVarScope=function(){for(var p=this.scopeStack.length-1;;p--){var T=this.scopeStack[p];if(259&T.flags)return T}},An.currentThisScope=function(){for(var p=this.scopeStack.length-1;;p--){var T=this.scopeStack[p];if(259&T.flags&&!(16&T.flags))return T}};var Fr=function(T,me,Re){this.type="",this.start=me,this.end=0,T.options.locations&&(this.loc=new Ke(T,Re)),T.options.directSourceFile&&(this.sourceFile=T.options.directSourceFile),T.options.ranges&&(this.range=[me,0])},st=Ve.prototype;function vt(p,T,me,Re){return p.type=T,p.end=me,this.options.locations&&(p.loc.end=Re),this.options.ranges&&(p.range[1]=me),p}st.startNode=function(){return new Fr(this,this.start,this.startLoc)},st.startNodeAt=function(p,T){return new Fr(this,p,T)},st.finishNode=function(p,T){return vt.call(this,p,T,this.lastTokEnd,this.lastTokEndLoc)},st.finishNodeAt=function(p,T,me,Re){return vt.call(this,p,T,me,Re)},st.copyNode=function(p){var T=new Fr(this,p.start,this.startLoc);for(var me in p)T[me]=p[me];return T};for(var p,T,ht="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",wt=ht+" Extended_Pictographic",Pn=wt+" EBase EComp EMod EPres ExtPict",Ar={9:ht,10:wt,11:wt,12:Pn,13:Pn,14:Pn},Wr={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},fi="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",ji="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",ui=ji+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",So=ui+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Mo=So+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",ri=Mo+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",rn={9:ji,10:ui,11:So,12:Mo,13:ri,14:ri+" Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz"},et={},yt=0,Xt=[9,10,11,12,13,14];yt<Xt.length;yt+=1)T=void 0,(T=et[p=Xt[yt]]={binary:dt(Ar[p]+" "+fi),binaryOfStrings:dt(Wr[p]),nonBinary:{General_Category:dt(fi),Script:dt(rn[p])}}).nonBinary.Script_Extensions=T.nonBinary.Script,T.nonBinary.gc=T.nonBinary.General_Category,T.nonBinary.sc=T.nonBinary.Script,T.nonBinary.scx=T.nonBinary.Script_Extensions;var un=Ve.prototype,qn=function(T,me){this.parent=T,this.base=me||this};qn.prototype.separatedFrom=function(T){for(var me=this;me;me=me.parent)for(var Re=T;Re;Re=Re.parent)if(me.base===Re.base&&me!==Re)return!0;return!1},qn.prototype.sibling=function(){return new qn(this.parent,this.base)};var sr=function(T){this.parser=T,this.validFlags="gim"+(T.options.ecmaVersion>=6?"uy":"")+(T.options.ecmaVersion>=9?"s":"")+(T.options.ecmaVersion>=13?"d":"")+(T.options.ecmaVersion>=15?"v":""),this.unicodeProperties=et[T.options.ecmaVersion>=14?14:T.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};function no(p){return 105===p||109===p||115===p}function Vi(p){return 36===p||p>=40&&p<=43||46===p||63===p||p>=91&&p<=94||p>=123&&p<=125}function ki(p){return p>=65&&p<=90||p>=97&&p<=122}function Xe(p){return ki(p)||95===p}function _t(p){return Xe(p)||Rn(p)}function Rn(p){return p>=48&&p<=57}function $n(p){return p>=48&&p<=57||p>=65&&p<=70||p>=97&&p<=102}function Bn(p){return p>=65&&p<=70?p-65+10:p>=97&&p<=102?p-97+10:p-48}function Sn(p){return p>=48&&p<=55}sr.prototype.reset=function(T,me,Re){var ot=-1!==Re.indexOf("v"),Vt=-1!==Re.indexOf("u");this.start=0|T,this.source=me+"",this.flags=Re,ot&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=Vt&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=Vt&&this.parser.options.ecmaVersion>=9)},sr.prototype.raise=function(T){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+T)},sr.prototype.at=function(T,me){void 0===me&&(me=!1);var Re=this.source,ot=Re.length;if(T>=ot)return-1;var Vt=Re.charCodeAt(T);if(!me&&!this.switchU||Vt<=55295||Vt>=57344||T+1>=ot)return Vt;var $t=Re.charCodeAt(T+1);return $t>=56320&&$t<=57343?(Vt<<10)+$t-56613888:Vt},sr.prototype.nextIndex=function(T,me){void 0===me&&(me=!1);var Re=this.source,ot=Re.length;if(T>=ot)return ot;var $t,Vt=Re.charCodeAt(T);return!me&&!this.switchU||Vt<=55295||Vt>=57344||T+1>=ot||($t=Re.charCodeAt(T+1))<56320||$t>57343?T+1:T+2},sr.prototype.current=function(T){return void 0===T&&(T=!1),this.at(this.pos,T)},sr.prototype.lookahead=function(T){return void 0===T&&(T=!1),this.at(this.nextIndex(this.pos,T),T)},sr.prototype.advance=function(T){void 0===T&&(T=!1),this.pos=this.nextIndex(this.pos,T)},sr.prototype.eat=function(T,me){return void 0===me&&(me=!1),this.current(me)===T&&(this.advance(me),!0)},sr.prototype.eatChars=function(T,me){void 0===me&&(me=!1);for(var Re=this.pos,ot=0,Vt=T;ot<Vt.length;ot+=1){var $t=Vt[ot],vn=this.at(Re,me);if(-1===vn||vn!==$t)return!1;Re=this.nextIndex(Re,me)}return this.pos=Re,!0},un.validateRegExpFlags=function(p){for(var T=p.validFlags,me=p.flags,Re=!1,ot=!1,Vt=0;Vt<me.length;Vt++){var $t=me.charAt(Vt);-1===T.indexOf($t)&&this.raise(p.start,"Invalid regular expression flag"),me.indexOf($t,Vt+1)>-1&&this.raise(p.start,"Duplicate regular expression flag"),"u"===$t&&(Re=!0),"v"===$t&&(ot=!0)}this.options.ecmaVersion>=15&&Re&&ot&&this.raise(p.start,"Invalid regular expression flag")},un.validateRegExpPattern=function(p){this.regexp_pattern(p),!p.switchN&&this.options.ecmaVersion>=9&&function Oi(p){for(var T in p)return!0;return!1}(p.groupNames)&&(p.switchN=!0,this.regexp_pattern(p))},un.regexp_pattern=function(p){p.pos=0,p.lastIntValue=0,p.lastStringValue="",p.lastAssertionIsQuantifiable=!1,p.numCapturingParens=0,p.maxBackReference=0,p.groupNames=Object.create(null),p.backReferenceNames.length=0,p.branchID=null,this.regexp_disjunction(p),p.pos!==p.source.length&&(p.eat(41)&&p.raise("Unmatched ')'"),(p.eat(93)||p.eat(125))&&p.raise("Lone quantifier brackets")),p.maxBackReference>p.numCapturingParens&&p.raise("Invalid escape");for(var T=0,me=p.backReferenceNames;T<me.length;T+=1)p.groupNames[me[T]]||p.raise("Invalid named capture referenced")},un.regexp_disjunction=function(p){var T=this.options.ecmaVersion>=16;for(T&&(p.branchID=new qn(p.branchID,null)),this.regexp_alternative(p);p.eat(124);)T&&(p.branchID=p.branchID.sibling()),this.regexp_alternative(p);T&&(p.branchID=p.branchID.parent),this.regexp_eatQuantifier(p,!0)&&p.raise("Nothing to repeat"),p.eat(123)&&p.raise("Lone quantifier brackets")},un.regexp_alternative=function(p){for(;p.pos<p.source.length&&this.regexp_eatTerm(p););},un.regexp_eatTerm=function(p){return this.regexp_eatAssertion(p)?(p.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(p)&&p.switchU&&p.raise("Invalid quantifier"),!0):!!(p.switchU?this.regexp_eatAtom(p):this.regexp_eatExtendedAtom(p))&&(this.regexp_eatQuantifier(p),!0)},un.regexp_eatAssertion=function(p){var T=p.pos;if(p.lastAssertionIsQuantifiable=!1,p.eat(94)||p.eat(36))return!0;if(p.eat(92)){if(p.eat(66)||p.eat(98))return!0;p.pos=T}if(p.eat(40)&&p.eat(63)){var me=!1;if(this.options.ecmaVersion>=9&&(me=p.eat(60)),p.eat(61)||p.eat(33))return this.regexp_disjunction(p),p.eat(41)||p.raise("Unterminated group"),p.lastAssertionIsQuantifiable=!me,!0}return p.pos=T,!1},un.regexp_eatQuantifier=function(p,T){return void 0===T&&(T=!1),!!this.regexp_eatQuantifierPrefix(p,T)&&(p.eat(63),!0)},un.regexp_eatQuantifierPrefix=function(p,T){return p.eat(42)||p.eat(43)||p.eat(63)||this.regexp_eatBracedQuantifier(p,T)},un.regexp_eatBracedQuantifier=function(p,T){var me=p.pos;if(p.eat(123)){var Re=0,ot=-1;if(this.regexp_eatDecimalDigits(p)&&(Re=p.lastIntValue,p.eat(44)&&this.regexp_eatDecimalDigits(p)&&(ot=p.lastIntValue),p.eat(125)))return-1!==ot&&ot<Re&&!T&&p.raise("numbers out of order in {} quantifier"),!0;p.switchU&&!T&&p.raise("Incomplete quantifier"),p.pos=me}return!1},un.regexp_eatAtom=function(p){return this.regexp_eatPatternCharacters(p)||p.eat(46)||this.regexp_eatReverseSolidusAtomEscape(p)||this.regexp_eatCharacterClass(p)||this.regexp_eatUncapturingGroup(p)||this.regexp_eatCapturingGroup(p)},un.regexp_eatReverseSolidusAtomEscape=function(p){var T=p.pos;if(p.eat(92)){if(this.regexp_eatAtomEscape(p))return!0;p.pos=T}return!1},un.regexp_eatUncapturingGroup=function(p){var T=p.pos;if(p.eat(40)){if(p.eat(63)){if(this.options.ecmaVersion>=16){var me=this.regexp_eatModifiers(p),Re=p.eat(45);if(me||Re){for(var ot=0;ot<me.length;ot++){var Vt=me.charAt(ot);me.indexOf(Vt,ot+1)>-1&&p.raise("Duplicate regular expression modifiers")}if(Re){var $t=this.regexp_eatModifiers(p);!me&&!$t&&58===p.current()&&p.raise("Invalid regular expression modifiers");for(var vn=0;vn<$t.length;vn++){var xn=$t.charAt(vn);($t.indexOf(xn,vn+1)>-1||me.indexOf(xn)>-1)&&p.raise("Duplicate regular expression modifiers")}}}}if(p.eat(58)){if(this.regexp_disjunction(p),p.eat(41))return!0;p.raise("Unterminated group")}}p.pos=T}return!1},un.regexp_eatCapturingGroup=function(p){if(p.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(p):63===p.current()&&p.raise("Invalid group"),this.regexp_disjunction(p),p.eat(41))return p.numCapturingParens+=1,!0;p.raise("Unterminated group")}return!1},un.regexp_eatModifiers=function(p){for(var T="",me=0;-1!==(me=p.current())&&no(me);)T+=Ye(me),p.advance();return T},un.regexp_eatExtendedAtom=function(p){return p.eat(46)||this.regexp_eatReverseSolidusAtomEscape(p)||this.regexp_eatCharacterClass(p)||this.regexp_eatUncapturingGroup(p)||this.regexp_eatCapturingGroup(p)||this.regexp_eatInvalidBracedQuantifier(p)||this.regexp_eatExtendedPatternCharacter(p)},un.regexp_eatInvalidBracedQuantifier=function(p){return this.regexp_eatBracedQuantifier(p,!0)&&p.raise("Nothing to repeat"),!1},un.regexp_eatSyntaxCharacter=function(p){var T=p.current();return!!Vi(T)&&(p.lastIntValue=T,p.advance(),!0)},un.regexp_eatPatternCharacters=function(p){for(var T=p.pos,me=0;-1!==(me=p.current())&&!Vi(me);)p.advance();return p.pos!==T},un.regexp_eatExtendedPatternCharacter=function(p){var T=p.current();return!(-1===T||36===T||T>=40&&T<=43||46===T||63===T||91===T||94===T||124===T||(p.advance(),0))},un.regexp_groupSpecifier=function(p){if(p.eat(63)){this.regexp_eatGroupName(p)||p.raise("Invalid group");var T=this.options.ecmaVersion>=16,me=p.groupNames[p.lastStringValue];if(me)if(T)for(var Re=0,ot=me;Re<ot.length;Re+=1)ot[Re].separatedFrom(p.branchID)||p.raise("Duplicate capture group name");else p.raise("Duplicate capture group name");T?(me||(p.groupNames[p.lastStringValue]=[])).push(p.branchID):p.groupNames[p.lastStringValue]=!0}},un.regexp_eatGroupName=function(p){if(p.lastStringValue="",p.eat(60)){if(this.regexp_eatRegExpIdentifierName(p)&&p.eat(62))return!0;p.raise("Invalid capture group name")}return!1},un.regexp_eatRegExpIdentifierName=function(p){if(p.lastStringValue="",this.regexp_eatRegExpIdentifierStart(p)){for(p.lastStringValue+=Ye(p.lastIntValue);this.regexp_eatRegExpIdentifierPart(p);)p.lastStringValue+=Ye(p.lastIntValue);return!0}return!1},un.regexp_eatRegExpIdentifierStart=function(p){var T=p.pos,me=this.options.ecmaVersion>=11,Re=p.current(me);return p.advance(me),92===Re&&this.regexp_eatRegExpUnicodeEscapeSequence(p,me)&&(Re=p.lastIntValue),function vr(p){return Q(p,!0)||36===p||95===p}(Re)?(p.lastIntValue=Re,!0):(p.pos=T,!1)},un.regexp_eatRegExpIdentifierPart=function(p){var T=p.pos,me=this.options.ecmaVersion>=11,Re=p.current(me);return p.advance(me),92===Re&&this.regexp_eatRegExpUnicodeEscapeSequence(p,me)&&(Re=p.lastIntValue),function Ai(p){return ie(p,!0)||36===p||95===p||8204===p||8205===p}(Re)?(p.lastIntValue=Re,!0):(p.pos=T,!1)},un.regexp_eatAtomEscape=function(p){return!!(this.regexp_eatBackReference(p)||this.regexp_eatCharacterClassEscape(p)||this.regexp_eatCharacterEscape(p)||p.switchN&&this.regexp_eatKGroupName(p))||(p.switchU&&(99===p.current()&&p.raise("Invalid unicode escape"),p.raise("Invalid escape")),!1)},un.regexp_eatBackReference=function(p){var T=p.pos;if(this.regexp_eatDecimalEscape(p)){var me=p.lastIntValue;if(p.switchU)return me>p.maxBackReference&&(p.maxBackReference=me),!0;if(me<=p.numCapturingParens)return!0;p.pos=T}return!1},un.regexp_eatKGroupName=function(p){if(p.eat(107)){if(this.regexp_eatGroupName(p))return p.backReferenceNames.push(p.lastStringValue),!0;p.raise("Invalid named reference")}return!1},un.regexp_eatCharacterEscape=function(p){return this.regexp_eatControlEscape(p)||this.regexp_eatCControlLetter(p)||this.regexp_eatZero(p)||this.regexp_eatHexEscapeSequence(p)||this.regexp_eatRegExpUnicodeEscapeSequence(p,!1)||!p.switchU&&this.regexp_eatLegacyOctalEscapeSequence(p)||this.regexp_eatIdentityEscape(p)},un.regexp_eatCControlLetter=function(p){var T=p.pos;if(p.eat(99)){if(this.regexp_eatControlLetter(p))return!0;p.pos=T}return!1},un.regexp_eatZero=function(p){return 48===p.current()&&!Rn(p.lookahead())&&(p.lastIntValue=0,p.advance(),!0)},un.regexp_eatControlEscape=function(p){var T=p.current();return 116===T?(p.lastIntValue=9,p.advance(),!0):110===T?(p.lastIntValue=10,p.advance(),!0):118===T?(p.lastIntValue=11,p.advance(),!0):102===T?(p.lastIntValue=12,p.advance(),!0):114===T&&(p.lastIntValue=13,p.advance(),!0)},un.regexp_eatControlLetter=function(p){var T=p.current();return!!ki(T)&&(p.lastIntValue=T%32,p.advance(),!0)},un.regexp_eatRegExpUnicodeEscapeSequence=function(p,T){void 0===T&&(T=!1);var me=p.pos,Re=T||p.switchU;if(p.eat(117)){if(this.regexp_eatFixedHexDigits(p,4)){var ot=p.lastIntValue;if(Re&&ot>=55296&&ot<=56319){var Vt=p.pos;if(p.eat(92)&&p.eat(117)&&this.regexp_eatFixedHexDigits(p,4)){var $t=p.lastIntValue;if($t>=56320&&$t<=57343)return p.lastIntValue=1024*(ot-55296)+($t-56320)+65536,!0}p.pos=Vt,p.lastIntValue=ot}return!0}if(Re&&p.eat(123)&&this.regexp_eatHexDigits(p)&&p.eat(125)&&function hi(p){return p>=0&&p<=1114111}(p.lastIntValue))return!0;Re&&p.raise("Invalid unicode escape"),p.pos=me}return!1},un.regexp_eatIdentityEscape=function(p){if(p.switchU)return!!this.regexp_eatSyntaxCharacter(p)||!!p.eat(47)&&(p.lastIntValue=47,!0);var T=p.current();return!(99===T||p.switchN&&107===T||(p.lastIntValue=T,p.advance(),0))},un.regexp_eatDecimalEscape=function(p){p.lastIntValue=0;var T=p.current();if(T>=49&&T<=57){do{p.lastIntValue=10*p.lastIntValue+(T-48),p.advance()}while((T=p.current())>=48&&T<=57);return!0}return!1},un.regexp_eatCharacterClassEscape=function(p){var T=p.current();if(function Pi(p){return 100===p||68===p||115===p||83===p||119===p||87===p}(T))return p.lastIntValue=-1,p.advance(),1;var me=!1;if(p.switchU&&this.options.ecmaVersion>=9&&((me=80===T)||112===T)){var Re;if(p.lastIntValue=-1,p.advance(),p.eat(123)&&(Re=this.regexp_eatUnicodePropertyValueExpression(p))&&p.eat(125))return me&&2===Re&&p.raise("Invalid property name"),Re;p.raise("Invalid property name")}return 0},un.regexp_eatUnicodePropertyValueExpression=function(p){var T=p.pos;if(this.regexp_eatUnicodePropertyName(p)&&p.eat(61)){var me=p.lastStringValue;if(this.regexp_eatUnicodePropertyValue(p))return this.regexp_validateUnicodePropertyNameAndValue(p,me,p.lastStringValue),1}return p.pos=T,this.regexp_eatLoneUnicodePropertyNameOrValue(p)?this.regexp_validateUnicodePropertyNameOrValue(p,p.lastStringValue):0},un.regexp_validateUnicodePropertyNameAndValue=function(p,T,me){_e(p.unicodeProperties.nonBinary,T)||p.raise("Invalid property name"),p.unicodeProperties.nonBinary[T].test(me)||p.raise("Invalid property value")},un.regexp_validateUnicodePropertyNameOrValue=function(p,T){return p.unicodeProperties.binary.test(T)?1:p.switchV&&p.unicodeProperties.binaryOfStrings.test(T)?2:void p.raise("Invalid property name")},un.regexp_eatUnicodePropertyName=function(p){var T=0;for(p.lastStringValue="";Xe(T=p.current());)p.lastStringValue+=Ye(T),p.advance();return""!==p.lastStringValue},un.regexp_eatUnicodePropertyValue=function(p){var T=0;for(p.lastStringValue="";_t(T=p.current());)p.lastStringValue+=Ye(T),p.advance();return""!==p.lastStringValue},un.regexp_eatLoneUnicodePropertyNameOrValue=function(p){return this.regexp_eatUnicodePropertyValue(p)},un.regexp_eatCharacterClass=function(p){if(p.eat(91)){var T=p.eat(94),me=this.regexp_classContents(p);return p.eat(93)||p.raise("Unterminated character class"),T&&2===me&&p.raise("Negated character class may contain strings"),!0}return!1},un.regexp_classContents=function(p){return 93===p.current()?1:p.switchV?this.regexp_classSetExpression(p):(this.regexp_nonEmptyClassRanges(p),1)},un.regexp_nonEmptyClassRanges=function(p){for(;this.regexp_eatClassAtom(p);){var T=p.lastIntValue;if(p.eat(45)&&this.regexp_eatClassAtom(p)){var me=p.lastIntValue;p.switchU&&(-1===T||-1===me)&&p.raise("Invalid character class"),-1!==T&&-1!==me&&T>me&&p.raise("Range out of order in character class")}}},un.regexp_eatClassAtom=function(p){var T=p.pos;if(p.eat(92)){if(this.regexp_eatClassEscape(p))return!0;if(p.switchU){var me=p.current();(99===me||Sn(me))&&p.raise("Invalid class escape"),p.raise("Invalid escape")}p.pos=T}var Re=p.current();return 93!==Re&&(p.lastIntValue=Re,p.advance(),!0)},un.regexp_eatClassEscape=function(p){var T=p.pos;if(p.eat(98))return p.lastIntValue=8,!0;if(p.switchU&&p.eat(45))return p.lastIntValue=45,!0;if(!p.switchU&&p.eat(99)){if(this.regexp_eatClassControlLetter(p))return!0;p.pos=T}return this.regexp_eatCharacterClassEscape(p)||this.regexp_eatCharacterEscape(p)},un.regexp_classSetExpression=function(p){var me,T=1;if(!this.regexp_eatClassSetRange(p))if(me=this.regexp_eatClassSetOperand(p)){2===me&&(T=2);for(var Re=p.pos;p.eatChars([38,38]);)38!==p.current()&&(me=this.regexp_eatClassSetOperand(p))?2!==me&&(T=1):p.raise("Invalid character in character class");if(Re!==p.pos)return T;for(;p.eatChars([45,45]);)this.regexp_eatClassSetOperand(p)||p.raise("Invalid character in character class");if(Re!==p.pos)return T}else p.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(p)){if(!(me=this.regexp_eatClassSetOperand(p)))return T;2===me&&(T=2)}},un.regexp_eatClassSetRange=function(p){var T=p.pos;if(this.regexp_eatClassSetCharacter(p)){var me=p.lastIntValue;if(p.eat(45)&&this.regexp_eatClassSetCharacter(p)){var Re=p.lastIntValue;return-1!==me&&-1!==Re&&me>Re&&p.raise("Range out of order in character class"),!0}p.pos=T}return!1},un.regexp_eatClassSetOperand=function(p){return this.regexp_eatClassSetCharacter(p)?1:this.regexp_eatClassStringDisjunction(p)||this.regexp_eatNestedClass(p)},un.regexp_eatNestedClass=function(p){var T=p.pos;if(p.eat(91)){var me=p.eat(94),Re=this.regexp_classContents(p);if(p.eat(93))return me&&2===Re&&p.raise("Negated character class may contain strings"),Re;p.pos=T}if(p.eat(92)){var ot=this.regexp_eatCharacterClassEscape(p);if(ot)return ot;p.pos=T}return null},un.regexp_eatClassStringDisjunction=function(p){var T=p.pos;if(p.eatChars([92,113])){if(p.eat(123)){var me=this.regexp_classStringDisjunctionContents(p);if(p.eat(125))return me}else p.raise("Invalid escape");p.pos=T}return null},un.regexp_classStringDisjunctionContents=function(p){for(var T=this.regexp_classString(p);p.eat(124);)2===this.regexp_classString(p)&&(T=2);return T},un.regexp_classString=function(p){for(var T=0;this.regexp_eatClassSetCharacter(p);)T++;return 1===T?1:2},un.regexp_eatClassSetCharacter=function(p){var T=p.pos;if(p.eat(92))return!(!this.regexp_eatCharacterEscape(p)&&!this.regexp_eatClassSetReservedPunctuator(p)&&(p.eat(98)?(p.lastIntValue=8,0):(p.pos=T,1)));var me=p.current();return!(me<0||me===p.lookahead()&&function Zt(p){return 33===p||p>=35&&p<=38||p>=42&&p<=44||46===p||p>=58&&p<=64||94===p||96===p||126===p}(me)||function Ut(p){return 40===p||41===p||45===p||47===p||p>=91&&p<=93||p>=123&&p<=125}(me)||(p.advance(),p.lastIntValue=me,0))},un.regexp_eatClassSetReservedPunctuator=function(p){var T=p.current();return!!function bn(p){return 33===p||35===p||37===p||38===p||44===p||45===p||p>=58&&p<=62||64===p||96===p||126===p}(T)&&(p.lastIntValue=T,p.advance(),!0)},un.regexp_eatClassControlLetter=function(p){var T=p.current();return!(!Rn(T)&&95!==T||(p.lastIntValue=T%32,p.advance(),0))},un.regexp_eatHexEscapeSequence=function(p){var T=p.pos;if(p.eat(120)){if(this.regexp_eatFixedHexDigits(p,2))return!0;p.switchU&&p.raise("Invalid escape"),p.pos=T}return!1},un.regexp_eatDecimalDigits=function(p){var T=p.pos,me=0;for(p.lastIntValue=0;Rn(me=p.current());)p.lastIntValue=10*p.lastIntValue+(me-48),p.advance();return p.pos!==T},un.regexp_eatHexDigits=function(p){var T=p.pos,me=0;for(p.lastIntValue=0;$n(me=p.current());)p.lastIntValue=16*p.lastIntValue+Bn(me),p.advance();return p.pos!==T},un.regexp_eatLegacyOctalEscapeSequence=function(p){if(this.regexp_eatOctalDigit(p)){var T=p.lastIntValue;if(this.regexp_eatOctalDigit(p)){var me=p.lastIntValue;p.lastIntValue=T<=3&&this.regexp_eatOctalDigit(p)?64*T+8*me+p.lastIntValue:8*T+me}else p.lastIntValue=T;return!0}return!1},un.regexp_eatOctalDigit=function(p){var T=p.current();return Sn(T)?(p.lastIntValue=T-48,p.advance(),!0):(p.lastIntValue=0,!1)},un.regexp_eatFixedHexDigits=function(p,T){var me=p.pos;p.lastIntValue=0;for(var Re=0;Re<T;++Re){var ot=p.current();if(!$n(ot))return p.pos=me,!1;p.lastIntValue=16*p.lastIntValue+Bn(ot),p.advance()}return!0};var zn=function(T){this.type=T.type,this.value=T.value,this.start=T.start,this.end=T.end,T.options.locations&&(this.loc=new Ke(T,T.startLoc,T.endLoc)),T.options.ranges&&(this.range=[T.start,T.end])},Dn=Ve.prototype;function Jr(p){return"function"!=typeof BigInt?null:BigInt(p.replace(/_/g,""))}Dn.next=function(p){!p&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new zn(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Dn.getToken=function(){return this.next(),new zn(this)},typeof Symbol<"u"&&(Dn[Symbol.iterator]=function(){var p=this;return{next:function(){var T=p.getToken();return{done:T.type===_.eof,value:T}}}}),Dn.nextToken=function(){var p=this.curContext();return(!p||!p.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(_.eof):p.override?p.override(this):void this.readToken(this.fullCharCodeAtPos())},Dn.readToken=function(p){return Q(p,this.options.ecmaVersion>=6)||92===p?this.readWord():this.getTokenFromCode(p)},Dn.fullCharCodeAtPos=function(){var p=this.input.charCodeAt(this.pos);if(p<=55295||p>=56320)return p;var T=this.input.charCodeAt(this.pos+1);return T<=56319||T>=57344?p:(p<<10)+T-56613888},Dn.skipBlockComment=function(){var p=this.options.onComment&&this.curPosition(),T=this.pos,me=this.input.indexOf("*/",this.pos+=2);if(-1===me&&this.raise(this.pos-2,"Unterminated comment"),this.pos=me+2,this.options.locations)for(var Re=void 0,ot=T;(Re=G(this.input,ot,this.pos))>-1;)++this.curLine,ot=this.lineStart=Re;this.options.onComment&&this.options.onComment(!0,this.input.slice(T+2,me),T,this.pos,p,this.curPosition())},Dn.skipLineComment=function(p){for(var T=this.pos,me=this.options.onComment&&this.curPosition(),Re=this.input.charCodeAt(this.pos+=p);this.pos<this.input.length&&!B(Re);)Re=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(T+p,this.pos),T,this.pos,me,this.curPosition())},Dn.skipSpace=function(){e:for(;this.pos<this.input.length;){var p=this.input.charCodeAt(this.pos);switch(p){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!(p>8&&p<14||p>=5760&&pe.test(String.fromCharCode(p))))break e;++this.pos}}},Dn.finishToken=function(p,T){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var me=this.type;this.type=p,this.value=T,this.updateContext(me)},Dn.readToken_dot=function(){var p=this.input.charCodeAt(this.pos+1);if(p>=48&&p<=57)return this.readNumber(!0);var T=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===p&&46===T?(this.pos+=3,this.finishToken(_.ellipsis)):(++this.pos,this.finishToken(_.dot))},Dn.readToken_slash=function(){var p=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===p?this.finishOp(_.assign,2):this.finishOp(_.slash,1)},Dn.readToken_mult_modulo_exp=function(p){var T=this.input.charCodeAt(this.pos+1),me=1,Re=42===p?_.star:_.modulo;return this.options.ecmaVersion>=7&&42===p&&42===T&&(++me,Re=_.starstar,T=this.input.charCodeAt(this.pos+2)),61===T?this.finishOp(_.assign,me+1):this.finishOp(Re,me)},Dn.readToken_pipe_amp=function(p){var T=this.input.charCodeAt(this.pos+1);return T===p?this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(_.assign,3):this.finishOp(124===p?_.logicalOR:_.logicalAND,2):61===T?this.finishOp(_.assign,2):this.finishOp(124===p?_.bitwiseOR:_.bitwiseAND,1)},Dn.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(_.assign,2):this.finishOp(_.bitwiseXOR,1)},Dn.readToken_plus_min=function(p){var T=this.input.charCodeAt(this.pos+1);return T===p?45!==T||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!O.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(_.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===T?this.finishOp(_.assign,2):this.finishOp(_.plusMin,1)},Dn.readToken_lt_gt=function(p){var T=this.input.charCodeAt(this.pos+1),me=1;return T===p?(me=62===p&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+me)?this.finishOp(_.assign,me+1):this.finishOp(_.bitShift,me)):33!==T||60!==p||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===T&&(me=2),this.finishOp(_.relational,me)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},Dn.readToken_eq_excl=function(p){var T=this.input.charCodeAt(this.pos+1);return 61===T?this.finishOp(_.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===p&&62===T&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(_.arrow)):this.finishOp(61===p?_.eq:_.prefix,1)},Dn.readToken_question=function(){var p=this.options.ecmaVersion;if(p>=11){var T=this.input.charCodeAt(this.pos+1);if(46===T){var me=this.input.charCodeAt(this.pos+2);if(me<48||me>57)return this.finishOp(_.questionDot,2)}if(63===T)return p>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(_.assign,3):this.finishOp(_.coalesce,2)}return this.finishOp(_.question,1)},Dn.readToken_numberSign=function(){var T=35;if(this.options.ecmaVersion>=13&&(++this.pos,Q(T=this.fullCharCodeAtPos(),!0)||92===T))return this.finishToken(_.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Ye(T)+"'")},Dn.getTokenFromCode=function(p){switch(p){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(_.parenL);case 41:return++this.pos,this.finishToken(_.parenR);case 59:return++this.pos,this.finishToken(_.semi);case 44:return++this.pos,this.finishToken(_.comma);case 91:return++this.pos,this.finishToken(_.bracketL);case 93:return++this.pos,this.finishToken(_.bracketR);case 123:return++this.pos,this.finishToken(_.braceL);case 125:return++this.pos,this.finishToken(_.braceR);case 58:return++this.pos,this.finishToken(_.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(_.backQuote);case 48:var T=this.input.charCodeAt(this.pos+1);if(120===T||88===T)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===T||79===T)return this.readRadixNumber(8);if(98===T||66===T)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(p);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(p);case 124:case 38:return this.readToken_pipe_amp(p);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(p);case 60:case 62:return this.readToken_lt_gt(p);case 61:case 33:return this.readToken_eq_excl(p);case 63:return this.readToken_question();case 126:return this.finishOp(_.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Ye(p)+"'")},Dn.finishOp=function(p,T){var me=this.input.slice(this.pos,this.pos+T);return this.pos+=T,this.finishToken(p,me)},Dn.readRegexp=function(){for(var p,T,me=this.pos;;){this.pos>=this.input.length&&this.raise(me,"Unterminated regular expression");var Re=this.input.charAt(this.pos);if(O.test(Re)&&this.raise(me,"Unterminated regular expression"),p)p=!1;else{if("["===Re)T=!0;else if("]"===Re&&T)T=!1;else if("/"===Re&&!T)break;p="\\"===Re}++this.pos}var ot=this.input.slice(me,this.pos);++this.pos;var Vt=this.pos,$t=this.readWord1();this.containsEsc&&this.unexpected(Vt);var vn=this.regexpState||(this.regexpState=new sr(this));vn.reset(me,ot,$t),this.validateRegExpFlags(vn),this.validateRegExpPattern(vn);var xn=null;try{xn=new RegExp(ot,$t)}catch(gr){}return this.finishToken(_.regexp,{pattern:ot,flags:$t,value:xn})},Dn.readInt=function(p,T,me){for(var Re=this.options.ecmaVersion>=12&&void 0===T,ot=me&&48===this.input.charCodeAt(this.pos),Vt=this.pos,$t=0,vn=0,xn=0,gr=null==T?1/0:T;xn<gr;++xn,++this.pos){var tr=this.input.charCodeAt(this.pos),wr=void 0;if(Re&&95===tr)ot&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===vn&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===xn&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),vn=tr;else{if((wr=tr>=97?tr-97+10:tr>=65?tr-65+10:tr>=48&&tr<=57?tr-48:1/0)>=p)break;vn=tr,$t=$t*p+wr}}return Re&&95===vn&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===Vt||null!=T&&this.pos-Vt!==T?null:$t},Dn.readRadixNumber=function(p){var T=this.pos;this.pos+=2;var me=this.readInt(p);return null==me&&this.raise(this.start+2,"Expected number in radix "+p),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(me=Jr(this.input.slice(T,this.pos)),++this.pos):Q(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(_.num,me)},Dn.readNumber=function(p){var T=this.pos;!p&&null===this.readInt(10,void 0,!0)&&this.raise(T,"Invalid number");var me=this.pos-T>=2&&48===this.input.charCodeAt(T);me&&this.strict&&this.raise(T,"Invalid number");var Re=this.input.charCodeAt(this.pos);if(!me&&!p&&this.options.ecmaVersion>=11&&110===Re){var ot=Jr(this.input.slice(T,this.pos));return++this.pos,Q(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(_.num,ot)}me&&/[89]/.test(this.input.slice(T,this.pos))&&(me=!1),46===Re&&!me&&(++this.pos,this.readInt(10),Re=this.input.charCodeAt(this.pos)),(69===Re||101===Re)&&!me&&((43===(Re=this.input.charCodeAt(++this.pos))||45===Re)&&++this.pos,null===this.readInt(10)&&this.raise(T,"Invalid number")),Q(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var Vt=function ii(p,T){return T?parseInt(p,8):parseFloat(p.replace(/_/g,""))}(this.input.slice(T,this.pos),me);return this.finishToken(_.num,Vt)},Dn.readCodePoint=function(){var T;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var me=++this.pos;T=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,T>1114111&&this.invalidStringToken(me,"Code point out of bounds")}else T=this.readHexChar(4);return T},Dn.readString=function(p){for(var T="",me=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var Re=this.input.charCodeAt(this.pos);if(Re===p)break;92===Re?(T+=this.input.slice(me,this.pos),T+=this.readEscapedChar(!1),me=this.pos):8232===Re||8233===Re?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(B(Re)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return T+=this.input.slice(me,this.pos++),this.finishToken(_.string,T)};var qr={};function it(p,T){return Ve.parse(p,T)}Dn.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(p){if(p!==qr)throw p;this.readInvalidTemplateToken()}this.inTemplateElement=!1},Dn.invalidStringToken=function(p,T){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw qr;this.raise(p,T)},Dn.readTmplToken=function(){for(var p="",T=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var me=this.input.charCodeAt(this.pos);if(96===me||36===me&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==_.template&&this.type!==_.invalidTemplate?(p+=this.input.slice(T,this.pos),this.finishToken(_.template,p)):36===me?(this.pos+=2,this.finishToken(_.dollarBraceL)):(++this.pos,this.finishToken(_.backQuote));if(92===me)p+=this.input.slice(T,this.pos),p+=this.readEscapedChar(!0),T=this.pos;else if(B(me)){switch(p+=this.input.slice(T,this.pos),++this.pos,me){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:p+="\n";break;default:p+=String.fromCharCode(me)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),T=this.pos}else++this.pos}},Dn.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(_.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":"\n"===this.input[this.pos+1]&&++this.pos;case"\n":case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1}this.raise(this.start,"Unterminated template")},Dn.readEscapedChar=function(p){var T=this.input.charCodeAt(++this.pos);switch(++this.pos,T){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Ye(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),p&&this.invalidStringToken(this.pos-1,"Invalid escape sequence in template string");default:if(T>=48&&T<=55){var Re=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],ot=parseInt(Re,8);return ot>255&&(Re=Re.slice(0,-1),ot=parseInt(Re,8)),this.pos+=Re.length-1,T=this.input.charCodeAt(this.pos),("0"!==Re||56===T||57===T)&&(this.strict||p)&&this.invalidStringToken(this.pos-1-Re.length,p?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(ot)}return B(T)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(T)}},Dn.readHexChar=function(p){var T=this.pos,me=this.readInt(16,p);return null===me&&this.invalidStringToken(T,"Bad character escape sequence"),me},Dn.readWord1=function(){this.containsEsc=!1;for(var p="",T=!0,me=this.pos,Re=this.options.ecmaVersion>=6;this.pos<this.input.length;){var ot=this.fullCharCodeAtPos();if(ie(ot,Re))this.pos+=ot<=65535?1:2;else{if(92!==ot)break;this.containsEsc=!0,p+=this.input.slice(me,this.pos);var Vt=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var $t=this.readCodePoint();(T?Q:ie)($t,Re)||this.invalidStringToken(Vt,"Invalid Unicode escape"),p+=Ye($t),me=this.pos}T=!1}return p+this.input.slice(me,this.pos)},Dn.readWord=function(){var p=this.readWord1(),T=_.name;return this.keywords.test(p)&&(T=ue[p]),this.finishToken(T,p)},Ve.acorn={Parser:Ve,version:"8.14.0",defaultOptions:Ze,Position:ze,SourceLocation:Ke,getLineInfo:je,Node:Fr,TokenType:K,tokTypes:_,keywordTypes:ue,TokContext:tn,tokContexts:on,isIdentifierChar:ie,isIdentifierStart:Q,Token:zn,isNewLine:B,lineBreak:O,lineBreakG:x,nonASCIIwhitespace:pe};var Nt=c(9312),yn=c(177),Tn=c(4438);const nr=["Unexpected token","Unterminated regular expression","Unterminated string constant"],Xr={replace:(p,T,me)=>p.replace(T,me),substring:(p,T,me)=>p.substring(T,me),padEnd:(p,T,me)=>p.padEnd(T,me),padStart:(p,T,me)=>p.padStart(T,me),repeat:(p,T)=>p.repeat(T),split:(p,T,me)=>p.split(T,me),trim:p=>p.trim(),toLowerCase:p=>p.toLowerCase(),toUpperCase:p=>p.toUpperCase()};function Dr(p,T){window.$functionCache||(window.$functionCache={});let me=window.$functionCache[p];if(!me){const Re='"use strict";return ('+p+")";me=Function(...Object.keys(T),Re),window.$functionCache[p]=me}try{return me(...Object.values(T))}catch(Re){if((0,Tn.naY)()){window.$logOnce||(window.$logOnce=new Set);const ot="error evaluating function "+p+": "+Re;window.$logOnce.has(ot)||(console.debug(ot),window.$logOnce.add(ot))}return""}}function ei(p){var T;if("CallExpression"===p.type&&"Identifier"===(null===(T=p.callee)||void 0===T||null===(T=T.object)||void 0===T?void 0:T.type)&&"$functions"===p.callee.object.name)return{from:p.start,to:p.end};if("expression"in p)return ei(p.expression);if("left"in p)return ei(p.left);throw new Error("Could not find $functions call in AST")}function Un(p,T,me,Re){var ot;let Vt="";globalThis.window.$functionMap||(globalThis.window.$functionMap={});let $t=p;if($t in globalThis.window.$functionMap){const tr=globalThis.window.$functionMap[$t];$t=tr.value,Vt=tr.rest}else{let tr;for(;void 0===tr;)try{tr=it($t,{ecmaVersion:2019})}catch(wr){if(wr instanceof SyntaxError&&nr.some(zr=>wr.message.includes(zr))&&"number"==typeof wr.pos){let zr=wr.pos;for(;zr===$t.length||zr>0&&![")","]"].includes($t.charAt(zr-1));)zr--;Vt=$t.slice(zr)+Vt,$t=$t.slice(0,zr)}else{if(!(wr instanceof SyntaxError&&wr.message.includes("Assigning to rvalue")))throw wr;{const zr=wr.raisedAt-1;Vt=$t.slice(zr)+Vt,$t=$t.slice(0,zr)}}}if(0==tr.body.length)throw new Error('Failed to parse $functions call: "'.concat(p,'"'));if(tr.body.length>1||"ExpressionStatement"!==tr.body[0].type||!function _i(p){return"CallExpression"===p.type||"MemberExpression"===p.type&&"CallExpression"===p.object.type}(tr.body[0].expression)){var vn;const{from:wr,to:zr}=ei(null===(vn=tr.body[0])||void 0===vn?void 0:vn.expression);if(0!==wr)throw new Error("Expected $functions call to come first");Vt=$t.slice(zr)+Vt,$t=$t.slice(0,zr)}globalThis.window.$functionMap[p]={value:$t,rest:Vt}}return[Dr($t,{$context:T,$functions:(0,g.A)((0,g.A)({},Xr),me),$global:Re,document:(null===(ot=Nt.q.injector)||void 0===ot?void 0:ot.get(yn.qQ))||window.document}),Vt]}},4074:(se,E,c)=>{"use strict";function g(d){return btoa(d).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function s(d){const R={iss:"purple-storefront",sub:d};return"".concat(g(JSON.stringify({alg:"none"})),".").concat(g(JSON.stringify(R)),".")}function f(d){var R=d.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),U=decodeURIComponent(atob(R).split("").map(function(q){return"%"+("00"+q.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(U)}c.d(E,{$:()=>f,J:()=>s})},4049:(se,E,c)=>{"use strict";function g(s,f,d=!0){const S=/((?::)[(\w|\-)\\.]+)/g,R={};let U=s,q=S.exec(s);for(;null!==q;){const ve=q[0].substring(1).split(".");R[ve.join("_")]=ve.reduce((V,Q)=>V[Q]?V[Q]:Q,f),q=S.exec(s)}return U=s.replace(/:/g,""),d?U.split("/").map(z=>encodeURI(z)).join("/"):U}c.d(E,{K:()=>g})},7879:(se,E,c)=>{"use strict";c.d(E,{A0:()=>Mt,Dh:()=>dt,E7:()=>x,Ek:()=>F,G9:()=>oe,GA:()=>W,GZ:()=>P,Gw:()=>we,Lb:()=>K,P8:()=>Ye,TH:()=>We,Tk:()=>ie,Ty:()=>ue,VP:()=>G,Wp:()=>Se,ZC:()=>Ze,aM:()=>_e,bJ:()=>pe,fj:()=>ce,l2:()=>Tt,l6:()=>B,lz:()=>Be,r6:()=>Y,sZ:()=>ae,wx:()=>zt,yC:()=>le,z5:()=>Le});var g=c(9379),s=c(467),f=c(4438),d=c(4404),R=c(362),U=c.n(R),q=c(5630),z=c(5102),ve=c(9312),de=c(3178),V=c(5706),Q=c(6067);const ie=["request_debug","debug","preview","skipSSR","configURL"];function K(He,lt){return ee.apply(this,arguments)}function ee(){return(ee=(0,s.A)(function*(He,lt,Et=De=>Promise.resolve(!De.purchaseData.purchased),Ce=null,ye=!0,Ee){let De,Ge,ge;if(Ee||(Ee=ve.q.injector.get(z.Wj)),Array.isArray(He)?Ge=He.filter(Me=>!!Me):De=He,Ge?ge=Ge.map(Me=>Me.issue||Me):De?(Ce?(ge=[De.content],ge.length&&function he(He,lt,Et){var Ce;const ye=He.getIssues(!0);return(null===(Ce=He.issue)||void 0===Ce?void 0:Ce.id)!==lt.id&&!ye.find(Ee=>Ee.id===lt.id)||!!ye.find(Ee=>Et[Ee.id]&&!U()(Ee,Et[Ee.id]))}(De,lt,Ce)&&(ge=[De.content])):ge=[De.content],ge=ge.filter(Me=>Me.type!==d.IssueType.ISSUE)):ge=[],ge.length){const Me=[];for(const Ve of ge)(yield Et(Ve,Ee))&&Ve.previewIssue?Me.push(Ve.previewIssue.id):Me.push(Ve.id);return Me}return[(yield Et(lt,Ee))&&lt.previewIssue?lt.previewIssue.id:lt.id]})).apply(this,arguments)}function ue(He,lt){let Et;const Ce={OR:He.map(ye=>({id:{value:ye}}))};return Et=lt?{AND:[Ce,lt]}:Ce,Et}const oe={contentType:d.CatalogContentType.ISSUE,id:null,name:null,index:null,description:null,version:null,state:null,type:null,publicationId:null,comingSoon:null,purchasable:void 0,purchased:void 0,access:d.Access.PURCHASABLE,purchasedBy:null,properties:{},numberOfPages:null,contentLength:null,publicationDate:null,lastModified:null,thumbnails:{default:null},thumbnailsExtended:{},tags:[],categories:[],purchaseData:{purchased:void 0,purchasedBy:[]}};function x(He,lt,Et){const Ce=He.version;switch(Et){case d.IntOperation.EQUAL:return Ce.major===lt.major&&Ce.minor===lt.minor;case d.IntOperation.LESS_THAN:return Ce.major<lt.major||Ce.major===lt.major&&Ce.minor<lt.minor;case d.IntOperation.GREATER_THAN:return Ce.major>lt.major||Ce.major===lt.major&&Ce.minor>lt.minor}}function B(He){return He&&9===He.length&&He.startsWith("#")?"#"+He.slice(3):He}function G(He,lt,Et,Ce=""){return(0,V.xl)(He)?pe(He,lt,Et,Ce):{}}function pe(He,lt,Et,Ce=""){let ye=He?(0,g.A)({[Ce+"ISSUE_ID"]:He.id,[Ce+"ISSUE_NAME"]:He.name,[Ce+"ISSUE_TYPE"]:He.type,[Ce+"ISSUE_CATEGORIES"]:He.categories&&He.categories.join(","),[Ce+"ISSUE_TAGS"]:He.tags&&He.tags.join(","),[Ce+"ISSUE_PRODUCT_ID"]:He.productId,[Ce+"ISSUE_PURCHASABLE"]:"boolean"==typeof He.purchasable?He.purchasable.toString():He.purchasable,[Ce+"ISSUE_PURCHASED"]:"boolean"==typeof He.purchased?He.purchased.toString():He.purchased},He.properties?Object.keys(He.properties).reduce((Ee,De)=>(0,g.A)((0,g.A)({},Ee),{},{["".concat(Ce,"ISSUE_PROPERTY_").concat(dt(De))]:He.properties[De]}),{}):{}):{};return Et&&(ye=(0,g.A)((0,g.A)({},ye),{},{[Ce+"ISSUE_PRICE"]:Et.formattedPrice,[Ce+"ISSUE_PRICE_VALUE"]:Et.price.toString(),[Ce+"ISSUE_PRICE_CURRENCY"]:Et.currency})),lt&&(ye=(0,g.A)((0,g.A)((0,g.A)({},ye),W(lt,Ce)),{},{[Ce+"ISSUE_LATEST"]:lt.currentIssueId===He.id?"true":"false"})),ye}function le(He,lt){let Et=He?{ISSUE_TYPE:He.type,ISSUE_CATEGORIES:He.categories&&He.categories.join(","),ISSUE_TAGS:He.tags&&He.tags.join(","),ISSUE_PRODUCT_ID:He.productId,ISSUE_PURCHASABLE:"boolean"==typeof He.purchasable?He.purchasable.toString():He.purchasable,ISSUE_PURCHASED:"boolean"==typeof He.purchased?He.purchased.toString():He.purchased}:{};return lt&&(Et=(0,g.A)((0,g.A)((0,g.A)({},Et),function te(He){return He?{PUBLICATION_TYPE:He.type}:{}}(lt)),{},{ISSUE_LATEST:lt.currentIssueId===He.id?"true":"false"})),Et}function W(He,lt=""){return He?(0,g.A)({[lt+"PUBLICATION_ID"]:He.id,[lt+"PUBLICATION_NAME"]:He.name,[lt+"PUBLICATION_TYPE"]:He.type},He.properties?Object.keys(He.properties).reduce((Et,Ce)=>(0,g.A)((0,g.A)({},Et),{},{["".concat(lt,"PUBLICATION_PROPERTY_").concat(dt(Ce))]:He.properties[Ce]}),{}):{}):{}}function ae(He){return He?(0,g.A)({CATEGORY_ID:He.id,CATEGORY_NAME:He.name,CATEGORY_PARENT_CATEGORY_ID:He.parentCategoryId},He.properties?Object.keys(He.properties).reduce((lt,Et)=>(0,g.A)((0,g.A)({},lt),{},{["CATEGORY_PROPERTY_".concat(dt(Et))]:He.properties[Et]}),{}):{}):{}}function _e(He,lt,Et){const Ce=He.contentType===d.CatalogContentType.ISSUE?{BOOKMARK_PAGE_LABEL:He.pageLabel}:{};let ye=He?(0,g.A)((0,g.A)({BOOKMARK_TITLE:He.title,BOOKMARK_DESCRIPTION:He.description,BOOKMARK_PAGE_LABEL:He.pageLabel,BOOKMARK_CREATION_DATE:new Date(He.createdAt).toLocaleDateString((0,de.JK)())},Ce),He.customData?Object.keys(He.customData).reduce((Ee,De)=>(0,g.A)((0,g.A)({},Ee),{},{["BOOKMARK_CUSTOM_DATA_".concat(dt(De))]:He.customData[De]}),{}):{}):{};return lt&&(ye=(0,g.A)((0,g.A)({},ye),pe(lt,Et))),ye}function Le(He,lt){let Et=He?(0,g.A)({SUBSCRIPTION_ID:He.id,SUBSCRIPTION_NAME:He.name,SUBSCRIPTION_PRODUCT_ID:He.productId,SUBSCRIPTION_PURCHASED:""+He.purchased,SUBSCRIPTION_DURATION:""+He.duration,SUBSCRIPTION_TYPE:He.type},He&&He.properties?Object.keys(He.properties).reduce((Ce,ye)=>(0,g.A)((0,g.A)({},Ce),{},{["SUBSCRIPTION_PROPERTY_".concat(dt(ye))]:He.properties[ye]}),{}):{}):{};return lt&&(Et=(0,g.A)((0,g.A)({},Et),{},{SUBSCRIPTION_PRICE:lt.formattedPrice,SUBSCRIPTION_PRICE_VALUE:lt.price.toString(),SUBSCRIPTION_PRICE_CURRENCY:lt.currency})),Et}function We(He,lt){let Et=He?(0,g.A)({PRODUCT_ID:He.productId,PRODUCT_NAME:He.name,PRODUCT_DESCRIPTION:He.description,PRODUCT_TYPE:He.type,PRODUCT_HIDDEN:"boolean"==typeof He.hidden?He.hidden.toString():He.hidden,PRODUCT_PURCHASED:(0,V.ak)(He)?He.purchased.toString():void 0},He.properties?Object.keys(He.properties).reduce((Ce,ye)=>(0,g.A)((0,g.A)({},Ce),{},{["PRODUCT_PROPERTY_".concat(dt(ye))]:He.properties[ye]}),{}):{}):{};return lt&&(Et=(0,g.A)((0,g.A)({},Et),{},{PRODUCT_PRICE:lt.formattedPrice,PRODUCT_PRICE_VALUE:lt.price.toString(),PRODUCT_PRICE_CURRENCY:lt.currency})),Et}function dt(He){return He.toUpperCase().replace(/-/g,"_")}function Ye(He){return Object.keys(He).reduce((lt,Et)=>((He[Et]||"boolean"==typeof He[Et])&&(lt[dt(Et)]=He[Et]),lt),{})}function we(He){return Object.values([Q.r.ISSUE_ARTICLE,Q.r.READ_MODE_ARTICLE]).includes(He)}function Ke(He,lt=""){let Et={};return He&&Object.entries(He).forEach(([Ce,ye])=>{if(ye instanceof Array)ye.forEach(Ee=>Et=(0,g.A)((0,g.A)({},Et),Ke(Ee)));else if("object"==typeof ye)ye.key&&ye.value&&"string"==typeof ye.value&&0===ye.value.indexOf(":")?Et[ye.value.substr(1)]="".concat(lt).concat(lt?".":"").concat(Ce,".").concat(ye.key):Et=(0,g.A)((0,g.A)({},Et),Ke(ye,"".concat(lt).concat(lt?".":"").concat(Ce)));else if("string"==typeof ye&&0===ye.indexOf(":")){const Ee=ye.substr(1);Et[Ee]="".concat(lt).concat(lt?".":"").concat(Ce)}}),Et}function je(He){const lt=[];return He.forEach(Et=>{Et.dataSource&&lt.push(Et.dataSource),Et.content&&Array.isArray(Et.content)&&lt.push(...je(Et.content))}),lt}function Ze(He,lt,Et,Ce){return k.apply(this,arguments)}function k(){return(k=(0,s.A)(function*(He,lt,Et,Ce){const ye=lt.path,De=(0,q.qg)(ye).filter(ge=>"string"!=typeof ge).map(ge=>ge.name||null).filter(ge=>!!ge);if(!(De.length>0))return ye;{var Ge;const ge=null!==(Ge=lt.data)&&void 0!==Ge?Ge:[];ge.push(...je(lt.content));let Me={};ge&&ge.forEach(rt=>{const at=rt.filter;Me=(0,g.A)((0,g.A)({},Me),Ke(at))}),De.includes("postSlug")&&!Me.postSlug&&(Me.postSlug="properties.slug"),De.includes("contentSlug")&&!Me.contentSlug&&(Me.contentSlug="properties.slug"),De.includes("bundleSlug")&&(Me.bundleSlug="bundle.properties.slug");const Ve=Object.entries(Me);if(Ve.length>0){let rt;Ce?rt=Ce:Et&&(rt=yield He.getCatalogContent(Et));const at=rt.bundleId;at&&(rt.bundle=yield He.getCatalogContent(at)),Ve.forEach(([ct,Yt])=>{const Ft=Yt.split(".");Me[ct]=Ft.reduce((dn,kn)=>null==dn?void 0:dn[kn],rt)||" "})}try{return(0,q.wE)(ye,{encode:encodeURIComponent})(Me)}catch(rt){return console.warn("Error interpolating path: "+rt),ye}}})).apply(this,arguments)}function F(He,lt){let Ce,ye,Ee,De,Et=lt.length;lt+=" ",He=(He=(He=He.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"")).replace(/}(\s*)@/g,"}@")).replace(/}(\s*)}/g,"}}");for(let Ge=0;Ge<He.length-2;Ge++)Ce=He[Ge],ye=He[Ge+1],"@"===Ce&&"f"!==ye&&(Ee=!0),!Ee&&"{"===Ce&&(De=!0),De&&"}"===Ce&&(De=!1),!De&&"@"!==ye&&"}"!==ye&&("}"===Ce||","===Ce||("{"===Ce||";"===Ce)&&Ee)&&(He=He.slice(0,Ge+1)+lt+He.slice(Ge+1),Ge+=Et,Ee=!1);return 0!==He.indexOf(lt)&&0!==He.indexOf("@")&&(He=lt+He),He}const Y=new f.nKC("PurpleEnvironment"),P=new f.nKC("Location"),ce=new f.nKC("APP_DATA"),Se=new f.nKC("PXP_CONFIG"),Be=new f.nKC("PurpleEnvironmentServer"),Tt=new f.nKC("APP_DATA_SERVER"),zt=new f.nKC("PXP_CONFIG_SERVER"),Mt=new f.nKC("PXP_CONFIG_APP")},8890:(se,E,c)=>{"use strict";c.d(E,{os:()=>Se,ZE:()=>ce,TM:()=>F,q3:()=>Y,Ne:()=>Be,S8:()=>zt,eh:()=>Tt});var g=c(7786),s=c(3726),f=c(1985),d=c(5964),S=c(6354),R=c(3294),U=c(152),q=c(6697),z=c(362),ve=c.n(z),de=function(){if(typeof Map<"u")return Map;function Mt(He,lt){var Et=-1;return He.some(function(Ce,ye){return Ce[0]===lt&&(Et=ye,!0)}),Et}return function(){function He(){this.__entries__=[]}return Object.defineProperty(He.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),He.prototype.get=function(lt){var Et=Mt(this.__entries__,lt),Ce=this.__entries__[Et];return Ce&&Ce[1]},He.prototype.set=function(lt,Et){var Ce=Mt(this.__entries__,lt);~Ce?this.__entries__[Ce][1]=Et:this.__entries__.push([lt,Et])},He.prototype.delete=function(lt){var Et=this.__entries__,Ce=Mt(Et,lt);~Ce&&Et.splice(Ce,1)},He.prototype.has=function(lt){return!!~Mt(this.__entries__,lt)},He.prototype.clear=function(){this.__entries__.splice(0)},He.prototype.forEach=function(lt,Et){void 0===Et&&(Et=null);for(var Ce=0,ye=this.__entries__;Ce<ye.length;Ce++){var Ee=ye[Ce];lt.call(Et,Ee[1],Ee[0])}},He}()}(),V=typeof window<"u"&&typeof document<"u"&&window.document===document,Q=typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")(),ie="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Q):function(Mt){return setTimeout(function(){return Mt(Date.now())},1e3/60)},Ae=["top","right","bottom","left","width","height","size","weight"],ue=typeof MutationObserver<"u",oe=function(){function Mt(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function ee(Mt,He){var lt=!1,Et=!1,Ce=0;function ye(){lt&&(lt=!1,Mt()),Et&&De()}function Ee(){ie(ye)}function De(){var Ge=Date.now();if(lt){if(Ge-Ce<2)return;Et=!0}else lt=!0,Et=!1,setTimeout(Ee,He);Ce=Ge}return De}(this.refresh.bind(this),20)}return Mt.prototype.addObserver=function(He){~this.observers_.indexOf(He)||this.observers_.push(He),this.connected_||this.connect_()},Mt.prototype.removeObserver=function(He){var lt=this.observers_,Et=lt.indexOf(He);~Et&&lt.splice(Et,1),!lt.length&&this.connected_&&this.disconnect_()},Mt.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},Mt.prototype.updateObservers_=function(){var He=this.observers_.filter(function(lt){return lt.gatherActive(),lt.hasActive()});return He.forEach(function(lt){return lt.broadcastActive()}),He.length>0},Mt.prototype.connect_=function(){!V||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ue?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},Mt.prototype.disconnect_=function(){!V||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},Mt.prototype.onTransitionEnd_=function(He){var lt=He.propertyName,Et=void 0===lt?"":lt;Ae.some(function(ye){return!!~Et.indexOf(ye)})&&this.refresh()},Mt.getInstance=function(){return this.instance_||(this.instance_=new Mt),this.instance_},Mt.instance_=null,Mt}(),_=function(Mt,He){for(var lt=0,Et=Object.keys(He);lt<Et.length;lt++){var Ce=Et[lt];Object.defineProperty(Mt,Ce,{value:He[Ce],enumerable:!1,writable:!1,configurable:!0})}return Mt},O=function(Mt){return Mt&&Mt.ownerDocument&&Mt.ownerDocument.defaultView||Q},x=We(0,0,0,0);function B(Mt){return parseFloat(Mt)||0}function G(Mt){for(var He=[],lt=1;lt<arguments.length;lt++)He[lt-1]=arguments[lt];return He.reduce(function(Et,Ce){return Et+B(Mt["border-"+Ce+"-width"])},0)}var te=function(){return typeof SVGGraphicsElement<"u"?function(Mt){return Mt instanceof O(Mt).SVGGraphicsElement}:function(Mt){return Mt instanceof O(Mt).SVGElement&&"function"==typeof Mt.getBBox}}();function _e(Mt){return V?te(Mt)?function le(Mt){var He=Mt.getBBox();return We(0,0,He.width,He.height)}(Mt):function W(Mt){var He=Mt.clientWidth,lt=Mt.clientHeight;if(!He&&!lt)return x;var Et=O(Mt).getComputedStyle(Mt),Ce=function pe(Mt){for(var lt={},Et=0,Ce=["top","right","bottom","left"];Et<Ce.length;Et++){var ye=Ce[Et];lt[ye]=B(Mt["padding-"+ye])}return lt}(Et),ye=Ce.left+Ce.right,Ee=Ce.top+Ce.bottom,De=B(Et.width),Ge=B(Et.height);if("border-box"===Et.boxSizing&&(Math.round(De+ye)!==He&&(De-=G(Et,"left","right")+ye),Math.round(Ge+Ee)!==lt&&(Ge-=G(Et,"top","bottom")+Ee)),!function ae(Mt){return Mt===O(Mt).document.documentElement}(Mt)){var ge=Math.round(De+ye)-He,Me=Math.round(Ge+Ee)-lt;1!==Math.abs(ge)&&(De-=ge),1!==Math.abs(Me)&&(Ge-=Me)}return We(Ce.left,Ce.top,De,Ge)}(Mt):x}function We(Mt,He,lt,Et){return{x:Mt,y:He,width:lt,height:Et}}var dt=function(){function Mt(He){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=We(0,0,0,0),this.target=He}return Mt.prototype.isActive=function(){var He=_e(this.target);return this.contentRect_=He,He.width!==this.broadcastWidth||He.height!==this.broadcastHeight},Mt.prototype.broadcastRect=function(){var He=this.contentRect_;return this.broadcastWidth=He.width,this.broadcastHeight=He.height,He},Mt}(),Ye=function(){return function Mt(He,lt){var Et=function Le(Mt){var He=Mt.x,lt=Mt.y,Et=Mt.width,Ce=Mt.height,ye=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,Ee=Object.create(ye.prototype);return _(Ee,{x:He,y:lt,width:Et,height:Ce,top:lt,right:He+Et,bottom:Ce+lt,left:He}),Ee}(lt);_(this,{target:He,contentRect:Et})}}(),we=function(){function Mt(He,lt,Et){if(this.activeObservations_=[],this.observations_=new de,"function"!=typeof He)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=He,this.controller_=lt,this.callbackCtx_=Et}return Mt.prototype.observe=function(He){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u")&&Element instanceof Object){if(!(He instanceof O(He).Element))throw new TypeError('parameter 1 is not of type "Element".');var lt=this.observations_;lt.has(He)||(lt.set(He,new dt(He)),this.controller_.addObserver(this),this.controller_.refresh())}},Mt.prototype.unobserve=function(He){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u")&&Element instanceof Object){if(!(He instanceof O(He).Element))throw new TypeError('parameter 1 is not of type "Element".');var lt=this.observations_;lt.has(He)&&(lt.delete(He),lt.size||this.controller_.removeObserver(this))}},Mt.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},Mt.prototype.gatherActive=function(){var He=this;this.clearActive(),this.observations_.forEach(function(lt){lt.isActive()&&He.activeObservations_.push(lt)})},Mt.prototype.broadcastActive=function(){if(this.hasActive()){var He=this.callbackCtx_,lt=this.activeObservations_.map(function(Et){return new Ye(Et.target,Et.broadcastRect())});this.callback_.call(He,lt,He),this.clearActive()}},Mt.prototype.clearActive=function(){this.activeObservations_.splice(0)},Mt.prototype.hasActive=function(){return this.activeObservations_.length>0},Mt}(),ze=typeof WeakMap<"u"?new WeakMap:new de,Ke=function(){return function Mt(He){if(!(this instanceof Mt))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var lt=oe.getInstance(),Et=new we(He,lt,this);ze.set(this,Et)}}();["observe","unobserve","disconnect"].forEach(function(Mt){Ke.prototype[Mt]=function(){var He;return(He=ze.get(this))[Mt].apply(He,arguments)}});const Ze=typeof Q.ResizeObserver<"u"?Q.ResizeObserver:Ke;var k=c(2962);const F=(0,d.p)(Mt=>!!Mt),Y=(0,d.p)(Mt=>void 0!==Mt);function ce(){return(0,R.F)((Mt,He)=>JSON.stringify(Mt)===JSON.stringify(He))}function Se(){return(0,R.F)((Mt,He)=>ve()(Mt,He))}function Be(){return(0,g.h)((0,s.R)(window,"resize"),(0,s.R)(window,"orientationchange")).pipe((0,U.B)(100))}function Tt(Mt,He,lt){return new f.c(Et=>{var Ce,ye;if(null!=lt&&lt.skipWait)return void Et.next();const Ee={root:"primary"===(0,k.kO)(He.nativeElement)&&window!==window.parent?document.scrollingElement:null};Ee.rootMargin=(null==lt?void 0:lt.rootMargin)||(null===(Ce=window.storefrontHooks)||void 0===Ce?void 0:Ce.getIntersectionMargin)&&(null===(ye=window.storefrontHooks)||void 0===ye?void 0:ye.getIntersectionMargin())||"200px",null!=lt&&lt.rootMargin&&(Ee.rootMargin=lt.rootMargin);const De=new IntersectionObserver(Ge=>{Ge.forEach(ge=>{ge.isIntersecting&&!Mt.loaded&&(Et.next(),De.disconnect())})},Ee);De.observe(He.nativeElement),Et.add(()=>De.disconnect())}).pipe((0,q.s)(1))}function zt(Mt){return new f.c(He=>{const lt=new Ze(()=>He.next());He.add(()=>lt.disconnect()),lt.observe(Mt)})}(0,S.T)(Mt=>(console.log(Mt),Mt))},7370:(se,E,c)=>{"use strict";c.d(E,{HJ:()=>R,P3:()=>U,Tr:()=>de,_o:()=>z,tb:()=>s,vA:()=>q,vh:()=>d});var g=c(177);function s(V){try{if(new URL(V).protocol.startsWith("http"))return!0}catch(Q){return!1}return!1}const f=/^\w+:\/\//;function d(V){return f.test(V)}function R(V){const Q=V.indexOf("/",8);return V.substr(Q)}function U(V,Q){try{return new URL(Q).searchParams.get(V)}catch(ie){return null}}function q(V,Q,ie){if(Q.isUniversal){const K=ie.getDynamicResourcesVersion();return"?version=".concat(K).concat(V?"&preview=true":"")}return""}function z(V){const Q=new URL(V);return"true"===Q.searchParams.get("debug")||0===Q.pathname.indexOf("/debug")}function de(V,Q){return function ve(V){return"true"===new URL(V).searchParams.get("skipSSR")}(V)?(0,g.UE)(Q):(0,g.Vy)(Q)}},8582:(se,E,c)=>{"use strict";c.d(E,{l:()=>Q,x:()=>ie});var g,s=new Uint8Array(16);function f(){if(!g&&!(g=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return g(s)}const d=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var U=[],q=0;q<256;++q)U.push((q+256).toString(16).substr(1));const ve=function z(K){var ee=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,he=(U[K[ee+0]]+U[K[ee+1]]+U[K[ee+2]]+U[K[ee+3]]+"-"+U[K[ee+4]]+U[K[ee+5]]+"-"+U[K[ee+6]]+U[K[ee+7]]+"-"+U[K[ee+8]]+U[K[ee+9]]+"-"+U[K[ee+10]]+U[K[ee+11]]+U[K[ee+12]]+U[K[ee+13]]+U[K[ee+14]]+U[K[ee+15]]).toLowerCase();if(!function S(K){return"string"==typeof K&&d.test(K)}(he))throw TypeError("Stringified UUID is invalid");return he},V=function de(K,ee,he){var Ae=(K=K||{}).random||(K.rng||f)();if(Ae[6]=15&Ae[6]|64,Ae[8]=63&Ae[8]|128,ee){he=he||0;for(var ue=0;ue<16;++ue)ee[he+ue]=Ae[ue];return ee}return ve(Ae)};function Q(){return V()}function ie(K){if(K&&"object"==typeof K)if(Array.isArray(K))for(const ee of K)ie(ee);else if(Object.values(K).forEach(ee=>{ie(ee)}),K.content&&Array.isArray(K.content))for(const ee of K.content)ee&&"object"==typeof ee&&(ee._uuid=Q())}},4520:(se,E,c)=>{"use strict";c.d(E,{z:()=>Ye});var g=c(9379),s=c(467),f=c(177),d=c(4438),S=c(3331),R=c(4404),q=c(5630),z=c(4412),ve=c(7673),de=c(4843),V=c(4572),Q=c(7468),ie=c(5964),K=c(3294),ee=c(6354),he=c(6697),Ae=c(5558),ue=c(8141),oe=c(9568),_=c(6843),O=c(4616),x=c(8179),B=c(6889),G=c(8545),pe=c(9745),le=c(8075),W=c(9516),te=c(5102),ae=c(8745),_e=c(1652),Le=c(8004),We=c(5632);const dt=(0,d.zw6)("initial_view");let Ye=(()=>{var we;class ze{constructor(je,Ze,k,F,Y,P,ce,Se,Be,Tt,zt){this.router=je,this.contextService=Ze,this.purpleService=k,this.configLoaderService=F,this.globalService=Y,this.urlResolverService=P,this.eventActionService=ce,this.platformId=Se,this.document=Be,this.transferState=Tt,this.serverOnlyService=zt,this.viewSubject$=new z.t(null),this.isFirstNavigation=!0,this.lastPath=null,this.currentPath=null,this.initSsrRunningTask(),this.currentPath=this.contextService.getContext().initialUrl,this.pipeNavigationStartEventsToPathObservable(),this.subscribeToNavigationEndEvents(),this.initViewObservable(),this.view$.subscribe(Mt=>{this.viewSubject$.next(Mt)})}getCurrentView(){var je=this;return(0,s.A)(function*(){return je.viewSubject$.value})()}getAbsoluteUrl(je,Ze){const k=this.router.createUrlTree([je],{queryParams:Ze}),F=this.router.serializeUrl(k);return"".concat(this.document.location.protocol,"//").concat(this.document.location.host).concat(F)}distinctView$(je){const Ze=this;return this.view$.pipe((0,ie.p)(k=>je?!(null==k||!k.modal):!(null==k||!k.default)),(0,K.F)((k,F)=>je?Ze.isSameRouteContext(k.modal,F.modal):Ze.isSameRouteContext(k.default,F.default)),(0,ee.T)(k=>je?{cfg:k.modal,routerEvent:k.routerEvent}:{cfg:k.default,routerEvent:k.routerEvent}))}resolve(je,Ze){return this.isFirstNavigation?(this.isFirstNavigation=!1,(0,ve.of)(void 0)):this.view$.pipe((0,ie.p)(k=>!!k&&k.routerEvent.url===Ze.url),(0,he.s)(1))}getAbsoluteLastPath(){return this.lastPath?"".concat(this.document.location.protocol,"//").concat(this.document.location.host).concat(this.lastPath):""}initSsrRunningTask(){this.keepSSRRunningTask=Zone.current.scheduleMacroTask("ViewService-resolved-first-view",()=>{},{},()=>{},()=>{})}pipeNavigationStartEventsToPathObservable(){var je=this;this.path$=this.router.events.pipe((0,ie.p)(Ze=>{const k=Ze instanceof S.Z&&0!==Ze.url.indexOf("/preview")&&!Ze.url.includes("oauth/callback");return k||this.keepSSRRunningTask.invoke(),k}),(0,Ae.n)(function(){var Ze=(0,s.A)(function*(k){return{navEvent:k,default:yield je.extractPathFromOutlet(k),modal:yield je.extractPathFromOutlet(k,"modal")}});return function(k){return Ze.apply(this,arguments)}}()),(0,ue.M)(Ze=>{this.checkForGenericRedirect(Ze)}),(0,K.F)((Ze,k)=>Ze.default===k.default&&Ze.modal==k.modal))}extractPathFromOutlet(je,Ze){var k=this;return(0,s.A)(function*(){var F,Y;const P=k.router.parseUrl(je.url),ce=yield k.contextService.getIsCustomDomainUsed();let Se=null===(F=P.root.children.primary)||void 0===F?void 0:F.segments;if("modal"===Ze&&(Se=!!P.root.children.modal&&[P.root.children.modal.segments[1]]),Se||"modal"!==Ze)return!ce&&!Ze&&Se&&Se.shift(),(null===(Y=Se)||void 0===Y?void 0:Y.join("/"))||"/"})()}checkForGenericRedirect(je){var Ze=this;return(0,s.A)(function*(){yield(0,de._)(Ze.purpleService.inited$);try{var k;const F=yield Ze.purpleService.getRedirects({redirectFilter:{AND:[{type:{value:"GENERIC"}},{identifier:{value:"/"+je.default,operation:R.StringOperation.EQUAL}}]}});(null==F||null===(k=F.nodes)||void 0===k?void 0:k.length)>0&&Ze.handleGenericRedirect(F.nodes[0],je)}catch(F){}})()}handleGenericRedirect(je,Ze){var k=this;return(0,s.A)(function*(){if((0,f.Vy)(k.platformId)){let F;if(je.target.startsWith("https://")||je.target.startsWith("http://"))F=je.target;else{const Y=((yield k.contextService.getIsCustomDomainUsed())?"":k.contextService.getBrand()+"/")+je.target,P=k.contextService.isPreview(),[ce,Se]=Y.split("?"),Be=(0,g.A)((0,g.A)({},(0,le.IN)(Se)),{},{preview:P?"true":void 0});F=k.getAbsoluteUrl(ce,Be)}k.serverOnlyService.redirectExternal(F,je.statusCode)}else k.handleRedirect({path:Ze.default,redirectTo:je.target},k.contextService.getContext())})()}subscribeToNavigationEndEvents(){this.router.events.pipe((0,ie.p)(je=>je instanceof S.wF)).subscribe(je=>{try{var Ze,k;null===(Ze=window.storefrontHooks)||void 0===Ze||null===(k=Ze.onNavigationEnd)||void 0===k||k.call(Ze,{event:je,router:this.router,viewContext:this.contextService.getContext()})}catch(F){console.error("Error in onNavigationEnd hook:",F)}this.handlePathChange(je.urlAfterRedirects)})}handlePathChange(je){var Ze;const k=null===(Ze=this.currentPath)||void 0===Ze?void 0:Ze.split("?")[0];je.split("?")[0]!==k&&(this.lastPath=this.currentPath),this.currentPath=je}initViewObservable(){const je=this.purpleService.inited$.pipe((0,ue.M)(()=>this.contextService.updateMetadata()));this.view$=(0,V.z)([this.path$,this.configLoaderService.getConfig().pipe((0,ee.T)(Ze=>Ze[_.O.VIEW]),(0,Ae.n)(Ze=>(0,Q.p)([je]).pipe((0,ee.T)(()=>Ze))))]).pipe((0,Ae.n)(([{default:Ze,modal:k,navEvent:F},Y])=>this.processViewState(Ze,k,F,Y)),(0,Ae.n)(Ze=>this.handleRedirects(Ze)),(0,ie.p)(Ze=>!!Ze),(0,oe.t)({bufferSize:1,refCount:!0}))}processViewState(je,Ze,k,F){var Y=this;return(0,s.A)(function*(){(0,f.UE)(Y.platformId)&&!k.url.includes("oauth/callback")&&Y.updateVisitedPath();const P=(0,g.A)((0,g.A)({},Y.contextService.getContext()),Y.router.parseUrl(k.url).queryParams),ce=F.filter(Tt=>!Tt.globalData&&(!Tt.condition||(0,x.Ol)({condition:(0,x.uQ)(Tt.condition,P,Y.contextService.$functions,Y.globalService.getGlobalData())})));return{default:yield Y.getViewFromPath(je,ce),modal:Ze&&(yield Y.getViewFromPath(Ze,ce)),routerEvent:k,targetContext:P}})()}handleRedirects(je){var Ze=this;return(0,s.A)(function*(){return(0,O.B)(je.default.viewConfig)?(yield Ze.handleRedirect(je.default.viewConfig,je.targetContext),void Ze.keepSSRRunningTask.invoke()):(Ze.keepSSRRunningTask.invoke(),je)})()}updateVisitedPath(){const je=new URL(window.location.href);let Ze=JSON.parse(sessionStorage.getItem(R.LAST_VISITED_PATH))||{};Ze.lastVisitedPath=Ze.currentPath,Ze.currentPath=je,sessionStorage.setItem(R.LAST_VISITED_PATH,JSON.stringify(Ze))}handleRedirect(je,Ze){var k=this;return(0,s.A)(function*(){if("object"==typeof je.redirectTo){const Se=(0,x.uQ)(je.redirectTo,Ze,k.contextService.$functions,k.globalService.getGlobalData());return k.eventActionService.processNavigateAction(Se),!0}const F=k.contextService.getParams(),Y=k.handleGetRedirectUrl(je,Ze),ce=((yield k.contextService.getIsCustomDomainUsed())?"":k.contextService.getBrand()+"/")+Y;if((0,f.Vy)(k.platformId)){const Se=k.getAbsoluteUrl(ce,F);console.debug("HTTP Redirect to ".concat(Se)),k.serverOnlyService.redirectExternal(Se,je.statusCode)}return console.debug("Redirect to ".concat(ce)),k.router.navigate([ce],{queryParams:{preview:F.preview},replaceUrl:!0})})()}handleGetRedirectUrl(je,Ze){let k=je.redirectTo;if(k.startsWith("/")&&"/"!==k&&(k=k.substring(1)),k.includes("://"))k=(0,x.uQ)(k,Ze,this.contextService.$functions,this.globalService.getGlobalData()),(0,f.UE)(this.platformId)?window.location.href=k:this.serverOnlyService.redirectExternal(k,je.statusCode);else if(k.includes(":")){let F=je.path.split("/");k=k.replace(/:([a-zA-Z0-9_-]+)/g,Y=>{let P=F.indexOf(Y);return this.contextService.getPath().split("/")[P]||""})}return k}getViewFromPath(je,Ze){var k=this;return(0,s.A)(function*(){let F=k.loadInitialView();try{const Y=yield k.urlResolverService.getViewFromPath(je);if((0,G.X0)(Y))F=k.loadDynamicView(Ze,Y);else if((0,G.ie)(Y))return k.createRouteConfigWithContext(Y,je)}catch(Y){if(console.error("Error during dynamic resolving of view: ",Y),Y instanceof B.r)throw Y}return F||(F=k.loadViewByPath(Ze,je)),F||(F=k.loadErrorPage(Ze)),F?(0,f.Vy)(k.platformId)&&k.transferState.set(dt,F):(console.debug("Cannot find view for the path: ".concat(je)),k.serverOnlyService.sendError(404,"Not Found")),F})()}createRouteConfigWithContext(je,Ze){const k=je.redirectTarget.startsWith("http")?"url":"path";return{viewConfig:{redirectTo:{type:pe.H.NAVIGATE,[k]:je.redirectTarget,params:je.params,mergeParams:je.mergeParams,statusCode:je.statusCode},path:Ze,statusCode:je.statusCode}}}loadInitialView(){if((0,f.UE)(this.platformId)&&this.transferState.hasKey(dt)){const je=this.transferState.get(dt,null);return this.transferState.remove(dt),je}return null}loadDynamicView(je,Ze){const k=je.find(F=>F.name===Ze.viewName);return k?{viewConfig:k,viewContext:Ze.viewContext,pathParams:Ze.pathParams}:null}loadViewByPath(je,Ze){for(const k of je){if(k.path.includes("**")&&-1!==Ze.indexOf(k.path.split("/**")[0])||k.path===Ze)return{viewConfig:k};{const Y=q.YW(k.path,{decode:decodeURIComponent})(Ze);if(Y)return{viewConfig:k,pathParams:Y.params?(0,g.A)({},Y.params):void 0}}}return null}loadErrorPage(je){let Ze=je.find(k=>k.errorPage);return Ze?{viewConfig:Ze,viewContext:{errorCode:404}}:null}isSameRouteContext(je,Ze){return(null==je?void 0:je.viewConfig)===(null==Ze?void 0:Ze.viewConfig)&&(null==je?void 0:je.pathParams)===(null==Ze?void 0:Ze.pathParams)}}return(we=ze).\u0275fac=function(je){return new(je||we)(d.KVO(S.Ix),d.KVO(W.V),d.KVO(te.Wj),d.KVO(ae.Bh),d.KVO(_e.d),d.KVO(B.K),d.KVO(Le.G),d.KVO(d.Agw),d.KVO(f.qQ),d.KVO(d.pJN),d.KVO(We.l))},we.\u0275prov=d.jDH({token:we,factory:we.\u0275fac,providedIn:"root"}),ze})()},4088:(se,E,c)=>{"use strict";c.d(E,{c:()=>s});const s={production:!0,appVersion:c(8330).rE||"-",renderWorkerPath:"./dist/purple-web/server/main.server.js",esBuild:!1}},7377:(se,E,c)=>{"use strict";var g=c(9379),s=c(467),f=c(345),d=c(4438),S=c(177),R=c(1626),U=c(3),q=c(728),z=c(3331),ve=c(6157),de=c(7010),V=c(5159),Q=c(2783),ie=c(6895),K=c(6483);let ee=(()=>{var Ue;class Ot{}return(Ue=Ot).\u0275fac=function(Pe){return new(Pe||Ue)},Ue.\u0275mod=d.$C({type:Ue}),Ue.\u0275inj=d.G2t({imports:[S.MD,K.h,U.pZ]}),Ot})();var he=c(1605),Ae=c(6215);let ue=(()=>{var Ue;class Ot{}return(Ue=Ot).\u0275fac=function(Pe){return new(Pe||Ue)},Ue.\u0275mod=d.$C({type:Ue}),Ue.\u0275inj=d.G2t({imports:[Ae.O]}),Ot})();var oe=c(8075);const O={provide:z.b,useClass:(()=>{var Ue;class Ot{shouldDetach(Pe){return!1}store(Pe,j){}shouldAttach(Pe){return!1}retrieve(Pe){return null}shouldReuseRoute(Pe,j){return null===j.routeConfig&&null===Pe.routeConfig||(0,oe.Yn)(Pe)===(0,oe.Yn)(j)}}return(Ue=Ot).\u0275fac=function(Pe){return new(Pe||Ue)},Ue.\u0275prov=d.jDH({token:Ue,factory:Ue.\u0275fac}),Ot})()};var x=c(5102),B=c(6350),G=c(9516);let pe=(()=>{var Ue;class Ot{constructor(Pe,j,C,M,ne,Oe){this.purpleService=Pe,this.platformId=j,this.document=C,this.router=M,this.cacheService=ne,this.contextService=Oe}ngOnInit(){var Pe=this;return(0,s.A)(function*(){if((0,S.UE)(Pe.platformId)){const j=yield Pe.purpleService.checkForOauthEntitlement();if(Pe.cacheService.bustApiCache(),j)if(j.startsWith("/")){const C={preview:Pe.contextService.isPreview()},M=j.substring(1).split("/");Pe.router.navigate(M,{queryParams:C,replaceUrl:!0})}else Pe.purpleService.openActionUrl(j)}})()}}return(Ue=Ot).\u0275fac=function(Pe){return new(Pe||Ue)(d.rXU(x.Wj),d.rXU(d.Agw),d.rXU(S.qQ),d.rXU(z.Ix),d.rXU(B._),d.rXU(G.V))},Ue.\u0275cmp=d.VBU({type:Ue,selectors:[["storefront-oauth-callback"]],standalone:!1,decls:12,vars:0,consts:[[1,"container"],[1,"row"],["id","loader"],[1,"dot"],[1,"loading"]],template:function(Pe,j){1&Pe&&(d.j41(0,"div",0)(1,"div",1)(2,"div",2),d.nrm(3,"div",3)(4,"div",3)(5,"div",3)(6,"div",3)(7,"div",3)(8,"div",3)(9,"div",3)(10,"div",3)(11,"div",4),d.k0s()()())},styles:['#loader{bottom:0;height:175px;left:0;margin:auto;position:absolute;right:0;top:0;width:175px}#loader .dot{bottom:0;height:100%;left:0;margin:auto;position:absolute;right:0;top:0;width:87.5px}#loader .dot:before{border-radius:100%;content:"";height:87.5px;left:0;position:absolute;right:0;top:0;transform:scale(0);width:87.5px}#loader .dot:nth-child(7n+1){transform:rotate(45deg)}#loader .dot:nth-child(7n+1):before{animation:.8s linear .1s normal none infinite running load;background:#00ff80 none repeat scroll 0 0}#loader .dot:nth-child(7n+2){transform:rotate(90deg)}#loader .dot:nth-child(7n+2):before{animation:.8s linear .2s normal none infinite running load;background:#00ffea none repeat scroll 0 0}#loader .dot:nth-child(7n+3){transform:rotate(135deg)}#loader .dot:nth-child(7n+3):before{animation:.8s linear .3s normal none infinite running load;background:#0af none repeat scroll 0 0}#loader .dot:nth-child(7n+4){transform:rotate(180deg)}#loader .dot:nth-child(7n+4):before{animation:.8s linear .4s normal none infinite running load;background:#0040ff none repeat scroll 0 0}#loader .dot:nth-child(7n+5){transform:rotate(225deg)}#loader .dot:nth-child(7n+5):before{animation:.8s linear .5s normal none infinite running load;background:#2a00ff none repeat scroll 0 0}#loader .dot:nth-child(7n+6){transform:rotate(270deg)}#loader .dot:nth-child(7n+6):before{animation:.8s linear .6s normal none infinite running load;background:#9500ff none repeat scroll 0 0}#loader .dot:nth-child(7n+7){transform:rotate(315deg)}#loader .dot:nth-child(7n+7):before{animation:.8s linear .7s normal none infinite running load;background:#f0f none repeat scroll 0 0}#loader .dot:nth-child(7n+8){transform:rotate(360deg)}#loader .dot:nth-child(7n+8):before{animation:.8s linear .8s normal none infinite running load;background:#ff0095 none repeat scroll 0 0}#loader .loading{background-position:50% 50%;background-repeat:no-repeat;bottom:-40px;height:20px;left:0;position:absolute;right:0;width:180px}@keyframes load{to{opacity:0;transform:scale(1)}}.spinner-message{text-align:center}\n'],encapsulation:2}),Ot})();var le=c(9079),W=c(9745),te=c(8251),ae=c(610),_e=c(3178),Le=c(2962),We=c(7879),dt=c(4404),Ye=c(3726),we=c(7786),ze=c(6697),Ke=c(5964),je=c(3386),Ze=c(4616),k=c(4452),F=c(8179),Y=c(8448),P=c(9056),ce=function(Ue){return Ue.ICON="ICON",Ue.TEXT_ICON="TEXT_ICON",Ue}(ce||{});const Se={active:!1,pullMessage:"PULL_TO_REFRESH_PULL",releaseMessage:"PULL_TO_REFRESH_RELEASE",template:ce.ICON};var Be=c(5927);let Tt=(()=>{var Ue;class Ot{constructor(Pe,j,C,M,ne){this.elementRef=Pe,this.renderer=j,this.document=M,this.domHelper=ne,this.defaultConfig=(0,g.A)({},Se),this.onRefresh=_e.lQ,this.loading=!1,this.touchStartHandler=Oe=>this.onTouchStart(Oe),this.touchMoveHandler=Oe=>this.onTouchMove(Oe),this.touchEndHandler=Oe=>this.onTouchEnd(Oe),this.iconStarted=!1,this.translatePipe=new Y.D(C)}ngOnInit(){this.config=(0,g.A)((0,g.A)({},this.defaultConfig),this.storefrontPullToRefresh),this.translatePipe.transform(this.config.pullMessage).subscribe(Pe=>this.pullMessage=Pe),this.translatePipe.transform(this.config.releaseMessage).subscribe(Pe=>this.releaseMessage=Pe)}ngAfterViewInit(){this.loader=this.renderer.createElement("div"),this.renderer.addClass(this.loader,"pull-to-refresh-loader"),this.renderer.setStyle(this.loader,"height","".concat(Ot.delta,"px")),this.renderer.setStyle(this.loader,"margin-top","-".concat(Ot.delta,"px")),this.config.template&&this.renderer.setAttribute(this.loader,this.domHelper.leanDom?"data-pxp-template":"template",this.config.template),this.loadingSpinner=this.renderer.createElement("div"),this.renderer.addClass(this.loadingSpinner,"pull-to-refresh-loading-spinner"),this.renderer.addClass(this.loadingSpinner,"storefront-spinner"),this.renderer.setAttribute(this.loadingSpinner,this.domHelper.leanDom?"data-pxp-type":"type","tail"),this.renderer.setProperty(this.loadingSpinner,"innerHTML",P.A.tail.replace(/\$id/g,"id-"+Date.now())),this.renderer.appendChild(this.loader,this.loadingSpinner),this.config.template===ce.ICON?this.initIcon():this.initTextIcon(),this.renderer.appendChild(this.elementRef.nativeElement,this.loader),this.document.body.addEventListener("touchmove",_e.lQ,{passive:!0}),this.elementRef.nativeElement.parentNode.addEventListener("touchstart",this.touchStartHandler,{passive:!0}),this.elementRef.nativeElement.parentNode.addEventListener("touchmove",this.touchMoveHandler,{passive:!0}),this.elementRef.nativeElement.parentNode.addEventListener("touchend",this.touchEndHandler,{passive:!0})}initTextIcon(){this.loadingMessage=this.renderer.createElement("div"),this.renderer.appendChild(this.loader,this.loadingMessage)}initIcon(){this.loadingIcon=this.renderer.createElement("i"),this.renderer.addClass(this.loadingIcon,"icon"),this.renderer.addClass(this.loadingIcon,"icon-spinner"),this.renderer.setStyle(this.loadingIcon,"color","var(--spinnerColor)"),this.renderer.appendChild(this.loader,this.loadingIcon)}ngOnDestroy(){this.elementRef.nativeElement.parentNode&&(this.elementRef.nativeElement.parentNode.removeEventListener("touchstart",this.touchStartHandler),this.elementRef.nativeElement.parentNode.removeEventListener("touchmove",this.touchMoveHandler),this.elementRef.nativeElement.parentNode.removeEventListener("touchend",this.touchEndHandler))}onTouchStart(Pe){this.config.active&&!this.loading&&this.document.scrollingElement.scrollTop<=0&&(delete this.currentTouch,this.renderer.setStyle(this.loader,"transition","none"),this.touchStart=(0,Le.k)(Pe))}startTextIcon(){this.renderer.setProperty(this.loadingMessage,"innerText",this.pullMessage),this.iconStarted=!0}startIcon(){this.renderer.setStyle(this.loadingIcon,"display","flex"),this.renderer.setStyle(this.loadingIcon,"transform","rotate(0deg)"),this.iconStarted=!0}onTouchMove(Pe){if(this.config.active&&!this.loading&&this.touchStart){const j=(0,Le.k)(Pe);if(!this.currentTouch&&j.y<this.touchStart.y)return void delete this.touchStart;if(j.y-this.touchStart.y<Ot.threshold)return;this.currentTouch=(0,Le.k)(Pe);const C=Math.min(this.currentTouch.y-this.touchStart.y,Ot.delta);this.renderer.setStyle(this.loader,"margin-top","-".concat(Ot.delta-C,"px")),this.config.template===ce.ICON?this.updateIcon(C):this.updateTextIcon(C),Pe.cancelable&&Pe.preventDefault()}}updateTextIcon(Pe){this.iconStarted||this.startTextIcon(),this.renderer.setProperty(this.loadingMessage,"innerText",this.currentTouch.y-this.touchStart.y>Ot.delta?this.releaseMessage:this.pullMessage)}updateIcon(Pe){this.iconStarted||this.startIcon();const j=(Pe-Ot.threshold)/(Ot.delta-Ot.threshold);this.renderer.setStyle(this.loadingIcon,"filter",1===j?"none":"grayscale(100%)"),this.renderer.setStyle(this.loadingIcon,"transform","rotate(".concat(320*j,"deg)"))}onTouchEnd(Pe){this.config.active&&!this.loading&&this.touchStart&&this.currentTouch&&(this.currentTouch=(0,Le.k)(Pe),this.currentTouch.y-this.touchStart.y>Ot.delta?this.refresh():this.renderer.setStyle(this.loader,"margin-top","-".concat(Ot.delta,"px")),this.config.template===ce.ICON?this.endIcon():this.endTextIcon())}endTextIcon(){this.renderer.setProperty(this.loadingMessage,"innerText",""),this.iconStarted=!1}endIcon(){this.renderer.setStyle(this.loadingIcon,"display","none"),this.iconStarted=!1}refresh(){this.config.template===ce.ICON?this.endIcon():this.endTextIcon(),this.renderer.setStyle(this.loader,"margin-top",0),this.renderer.setStyle(this.loadingSpinner,"visibility","visible"),this.loading=!0,this.renderer.setStyle(this.loader,"transition","margin-top 100ms ease"),this.renderer.setStyle(this.loader,"margin-top","".concat(-Ot.delta/2,"px")),delete this.touchStart,delete this.currentTouch,this.onRefresh().then(Pe=>this.onRefreshEnd(),Pe=>this.onRefreshEnd())}onRefreshEnd(){this.loading=!1,this.renderer.setStyle(this.loader,"margin-top","-".concat(Ot.delta,"px")),this.renderer.setStyle(this.loadingSpinner,"visibility","hidden")}}return(Ue=Ot).delta=150,Ue.threshold=50,Ue.\u0275fac=function(Pe){return new(Pe||Ue)(d.rXU(d.aKT),d.rXU(d.sFG),d.rXU(de.il),d.rXU(S.qQ),d.rXU(Be.S))},Ue.\u0275dir=d.FsC({type:Ue,selectors:[["","storefrontPullToRefresh",""]],inputs:{storefrontPullToRefresh:"storefrontPullToRefresh",onRefresh:"onRefresh"},standalone:!1}),Ot})();var zt=c(244),Mt=c(8745),He=c(9118),lt=c(5636),Et=c(4748),Ce=c(7598),ye=c(7370),Ee=c(693),De=c(1652),Ge=c(4520),ge=c(9360),Me=c(2868),Ve=c(5632),rt=c(8909);const at=Ue=>[Ue];function ct(Ue,Ot){}function Yt(Ue,Ot){if(1&Ue&&d.DNE(0,ct,0,0,"ng-template",5),2&Ue){const ut=Ot.$implicit,Pe=d.XpG(2);d.Y8G("baseConfig",Pe.children[ut])}}function Ft(Ue,Ot){if(1&Ue&&(d.j41(0,"div",3),d.DNE(1,Yt,1,1,null,4),d.k0s()),2&Ue){const ut=d.XpG();d.R7$(),d.Y8G("ngForOf",ut.visibleStickyChildren)("ngForTrackBy",ut.trackByElement)}}function dn(Ue,Ot){}function kn(Ue,Ot){if(1&Ue){const ut=d.RV6();d.DNE(0,dn,0,0,"ng-template",7),d.bIt("inViewport",function(j){const C=d.eBV(ut).index,M=d.XpG(2);return d.Njj(M.onVisibilityChanged(C,j))})}if(2&Ue){const ut=Ot.$implicit,Pe=d.XpG(2);d.Y8G("baseConfig",ut)("controlsSticky",ut.sticky)("lazy",Pe.isLazy)}}function ln(Ue,Ot){if(1&Ue&&(d.j41(0,"div",6),d.DNE(1,kn,1,3,null,4),d.k0s()),2&Ue){const ut=d.XpG();d.Y8G("storefrontPullToRefresh",ut.viewConfig.pullToRefresh)("onRefresh",ut.onRefresh),d.R7$(),d.Y8G("ngForOf",ut.children)("ngForTrackBy",ut.trackByElement)}}function Jt(Ue,Ot){if(1&Ue){const ut=d.RV6();d.j41(0,"div",8),d.nrm(1,"span",9),d.j41(2,"button",10),d.bIt("click",function(){d.eBV(ut);const j=d.XpG();return d.Njj(j.reload())}),d.k0s()()}if(2&Ue){const ut=d.XpG();d.R7$(),d.Y8G("storefrontTranslate",ut.viewConfig.errorMessage||"VIEW_ERROR")("storefrontTranslateArgs",d.eq3(3,at,ut.dataSourceError.code)),d.R7$(),d.Y8G("storefrontTranslate",ut.viewConfig.errorButtonLabel||"VIEW_ERROR_BUTTON")}}const At=(0,ge.zk)();let Hn=(()=>{var Ue;class Ot{get className(){return this.viewConfig&&this.viewConfig.name}constructor(Pe,j,C,M){this.injector=Pe,this.document=j,this.platformId=C,this.purpleEnv=M,this.context={},this.dataSources=[],this.visibleStickyChildren=new Set,this.isModal=!1,this.onRefresh=()=>this.update(),this.route=Pe.get(z.nX),this.store=Pe.get(te.B),this.changeDetectorRef=Pe.get(d.gRc),this.ngZone=Pe.get(d.SKi),this.contextService=Pe.get(G.V),this.cleanUpService=Pe.get(zt.I),this.elementRef=Pe.get(d.aKT),this.transferState=Pe.get(d.pJN),this.ssrService=Pe.get(Et.i),this.configLoaderService=Pe.get(Mt.Bh),this.kioskConfigService=Pe.get(He.x),this.purpleService=Pe.get(x.Wj),this.metaService=Pe.get(lt.R),this.globalService=Pe.get(De.d),this.analyticsService=Pe.get(Ee.c),this.viewService=Pe.get(Ge.z),this.serverOnlyService=Pe.get(Ve.l),this.destroyRef=Pe.get(d.abz)}ngOnInit(){var Pe=this;console.debug("init view at path:",this.getPath()),this.isLazy=this.getIsLazy(),this.route.data.subscribe(()=>{}),this.viewService.distinctView$(this.isModal).pipe((0,ze.s)(1)).subscribe(function(){var j=(0,s.A)(function*({cfg:C}){yield Pe.updateViewWithConfig(C)});return function(C){return j.apply(this,arguments)}}()),this.store.subscribe((0,Ye.R)(At,Ce.aU).pipe((0,Ke.p)(j=>j.detail.type===dt.APP_STATE_TYPE.RESUMED)).pipe((0,je.c)(1e3)),()=>{this.handleUpdate()}),this.store.subscribe((0,Ye.R)(At,Ce.YT),()=>{this.handleUpdate()})}updateViewWithConfig(Pe){var j=this;return(0,s.A)(function*(){const{viewConfig:C,pathParams:M,viewContext:ne}=Pe;if(ne&&j.contextService.setMultipleData(ne),!(0,Ze.m)(C))return;j.viewConfig=C,(0,S.Vy)(j.platformId)&&j.viewConfig.cache&&j.metaService.setCacheMeta(j.viewConfig.cache),j.viewConfig.errorPage&&j.serverOnlyService.setStatusCode(Number((null==ne?void 0:ne.errorCode)||404));const Oe=(0,F.uQ)(j.viewConfig.title,j.contextService.getCurrentViewContext(),j.contextService.$functions,j.globalService.getGlobalData(),!1),Fe=j.viewConfig.seo?(0,F.uQ)(j.viewConfig.seo,j.contextService.getCurrentViewContext(),j.contextService.$functions,j.globalService.getGlobalData(),!1):{};j.metaService.setViewSeoMetadata(Fe,Oe),j.onConfigReceived(),j.contextService.cancelPendingParamUpdates(),yield j.contextService.updateParamsContext(),j.outlet=j.contextService.getActiveOutlet(),M&&j.contextService.setOutletData("pathParams",M,j.outlet);let pt=!0,St=!1;j.store.subscribe(j.contextService.viewContext$,function(){var Ht=(0,s.A)(function*(cn){if(cn.outlet===j.outlet){if(j.context=cn,pt&&(j.loadDataSources(),j.loadPageConfigs(),j.loadJsonLD(),pt=!1),j.children=j.viewConfig&&j.viewConfig.content.filter(Ln=>(0,F.ru)(Ln,j.context,j.contextService.$functions,j.globalService.getGlobalData(),!1)),!j.ssrService.currentPrebootStatus&&j.purpleEnv.isUniversal?j.childComponents.forEach(function(){var Ln=(0,s.A)(function*(Vn,dr){(0,F.ru)(j.children[dr],j.context,j.contextService.$functions,j.globalService.getGlobalData(),!1)&&(yield Vn.lazyLoad())});return function(Vn,dr){return Ln.apply(this,arguments)}}()):(j.changeDetectorRef.detectChanges(),j.childComponents.forEach(function(){var Ln=(0,s.A)(function*(Vn){yield Vn.lazyLoad()});return function(Vn){return Ln.apply(this,arguments)}}())),j.changeDetectorRef.detectChanges(),!St){const Ln=j.getTrackingConfig(cn);Ln&&(j.store.dispatch((0,ae.$3)(Ln)),St=!0)}pt=!1}});return function(cn){return Ht.apply(this,arguments)}}(),_e.lQ,_e.lQ,"viewContext")})()}ngOnDestroy(){this.contextService.clear(),this.contextService.clearOutletData(),this.metaService.clearViewSeoMetadata()}reload(){At.location.reload()}handleUpdate(){this.pullToRefresh?this.pullToRefresh.refresh():this.update(),this.cleanUpService.deleteExpiredIssues()}loadDataSources(){this.dataSources=[];const Pe=this.viewConfig.data;if(Pe){this.dataSources=Pe.map(M=>(M=(0,F.uQ)(M,this.context,this.contextService.$functions,this.globalService.getGlobalData()),(0,k.O8)(this.injector,M,this.elementRef.nativeElement,this.document))).filter(M=>!!M);const j=(0,we.h)(...this.dataSources.map(M=>M.error$));this.store.subscribe(j,M=>{this.dataSourceError=M},_e.lQ,_e.lQ,"error"),this.dataSources.forEach(M=>{M.loadData()})}}loadPageConfigs(){const Pe=(0,F.uQ)(this.viewConfig.pageConfigs,this.context,this.contextService.$functions,this.globalService.getGlobalData())||null;this.contextService.setData("pageConfigs",Pe)}loadJsonLD(){let Pe=this.document.getElementById("json-ld");if(!Pe&&this.viewConfig.jsonLD&&(Pe=this.document.createElement("script"),Pe.setAttribute("id","json-ld"),Pe.setAttribute("type","application/ld+json"),document.head.appendChild(Pe)),this.viewConfig.jsonLD){let j=(0,F.uQ)(this.viewConfig.jsonLD,this.context,this.contextService.$functions,this.globalService.getGlobalData());Pe.innerHTML=j}else Pe&&(Pe.innerHTML="")}getPath(){return this.contextService.getPath()||(console.error("view.getPath called but no path in ctx service"),(0,S.Vy)(this.platformId)||At.isUniversal?(0,oe.ON)((0,ye.HJ)(this.document.location.href)):(0,oe.ON)(At.location.hash).split("#/")[1])}getTrackingConfig(Pe){const j=(0,g.A)({},this.route.snapshot.queryParams);for(let M in this.viewConfig.viewTrackingParams){let ne=(0,F.uQ)(M,Pe,this.contextService.$functions,this.globalService.getGlobalData(),!0);if(ne&&!(0,F.E7)(ne))return;let Oe=(0,F.uQ)(this.viewConfig.viewTrackingParams[M],Pe,this.contextService.$functions,this.globalService.getGlobalData(),!0);if(ne&&!(0,F.E7)(ne))return;j[ne]=Oe}return{url:this.viewService.getAbsoluteLastPath()||At.location.href,targetUrl:At.location.href,key:this.viewConfig.name,params:j}}onConfigReceived(){this.document.scrollingElement.scrollTop=0}update(){var Pe=this;return(0,s.A)(function*(){yield Promise.all([Pe.contextService.update(),Pe.purpleService.updateDownloadHandlers(),Pe.purpleService.updateBookmarks(),Pe.purpleService.updateRepeatablePublicationProducts()])})()}onVisibilityChanged(Pe,j){j?this.visibleStickyChildren.delete(Pe):this.visibleStickyChildren.add(Pe)}trackByElement(Pe,j){if("string"==typeof j||"number"==typeof j)return j;const C=j.id||j._uuid;if(!C)throw"error trackByElement: expected id or _uuid";return C}getIsLazy(){return!(At.isUniversal&&!this.ssrService.currentPrebootStatus)}}return(Ue=Ot).\u0275fac=function(Pe){return new(Pe||Ue)(d.rXU(d.zZn),d.rXU(S.qQ),d.rXU(d.Agw),d.rXU(We.r6))},Ue.\u0275cmp=d.VBU({type:Ue,selectors:[["storefront-view"]],viewQuery:function(Pe,j){if(1&Pe&&(d.GBs(Tt,5),d.GBs(Me.q,5)),2&Pe){let C;d.mGM(C=d.lsd())&&(j.pullToRefresh=C.first),d.mGM(C=d.lsd())&&(j.childComponents=C)}},hostVars:2,hostBindings:function(Pe,j){2&Pe&&d.HbH(j.className)},standalone:!1,features:[d.Jv_([te.B])],decls:3,vars:3,consts:[["class","sticky-elements",4,"ngIf"],["class","content",3,"storefrontPullToRefresh","onRefresh",4,"ngIf"],["class","view-error",4,"ngIf"],[1,"sticky-elements"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"pxpDynamicComponent","baseConfig"],[1,"content",3,"storefrontPullToRefresh","onRefresh"],[3,"inViewport","pxpDynamicComponent","baseConfig","controlsSticky","lazy"],[1,"view-error"],[3,"storefrontTranslate","storefrontTranslateArgs"],[1,"action-button",3,"click","storefrontTranslate"]],template:function(Pe,j){1&Pe&&d.DNE(0,Ft,2,2,"div",0)(1,ln,2,4,"div",1)(2,Jt,3,5,"div",2),2&Pe&&(d.Y8G("ngIf",!j.dataSourceError),d.R7$(),d.Y8G("ngIf",j.viewConfig&&j.children&&!j.dataSourceError),d.R7$(),d.Y8G("ngIf",j.dataSourceError))},dependencies:[S.Sq,S.bT,Tt,rt.M,Me.q],styles:["storefront-view,.pxp-view{display:block;padding-top:var(--appBarHeight);padding-bottom:var(--navigationHeight);transition:all .15s ease;min-height:100vh;background-color:var(--backgroundColor)}storefront-view .content,.pxp-view .content{position:relative}storefront-view .sticky-elements,.pxp-view .sticky-elements{position:fixed;width:100%;z-index:19}storefront-view .view-error,.pxp-view .view-error{display:flex;flex-direction:column;align-items:flex-start;padding:var(--gutter)}storefront-view .view-error>.action-button,.pxp-view .view-error>.action-button{background-color:var(--secondaryColor);color:#fff}body.scrolled storefront-tab-navigation.scroll-hide~storefront-view,body.scrolled storefront-tab-navigation.scroll-hide~.pxp-view,body.scrolled .pxp-tab-navigation.scroll-hide~storefront-view,body.scrolled .pxp-tab-navigation.scroll-hide~.pxp-view{padding-bottom:0}body.scrolled storefront-tab-navigation.scroll-shrink~storefront-view,body.scrolled storefront-tab-navigation.scroll-shrink~.pxp-view,body.scrolled .pxp-tab-navigation.scroll-shrink~storefront-view,body.scrolled .pxp-tab-navigation.scroll-shrink~.pxp-view{padding-bottom:var(--navigationShrinkHeight)}\n"],encapsulation:2}),Ot})();var Yn=c(680);const or=["template"],jt=["scrollContainer"],tn=["container"];function on(Ue,Ot){}function kt(Ue,Ot){1&Ue&&d.DNE(0,on,0,0,"ng-template",7,2,d.C5r),2&Ue&&d.Y8G("baseConfig",Ot.$implicit)}let Pt=(()=>{var Ue;class Ot extends Hn{constructor(Pe,j,C,M,ne){super(Pe,j,C,ne),this.document=j,this.platformId=C,this.purpleService=M,this.purpleEnv=ne,this.context={},this.isModal=!0,this.renderer=Pe.get(d.sFG),this.router=Pe.get(z.Ix)}static isValidAnimation(Pe){return Object.values(W.L).includes(Pe)}ngOnInit(){this.contextService.closeModalSubject.pipe((0,le.pQ)(this.destroyRef)).subscribe(C=>{this.elementRef.nativeElement.contains(C)?this.onClickClose():this.contextService.closeModalCompleteSubject.next(!1)}),this.hasNavigated=this.contextService.navigationCount>0,this.renderer.addClass(this.document.body,"no-scroll");const Pe=this.store.snapshot(this.route.params),j=Pe&&Pe.animation;this.animation=j&&Ot.isValidAnimation(j)?j:W.L.SLIDE_IN}ngAfterViewInit(){var Pe=()=>super.ngOnInit,j=this;return(0,s.A)(function*(){yield(0,_e.wR)(1);const C=getComputedStyle(j.container.nativeElement),M=()=>{Pe().call(j),j.initialized=!0},ne=parseFloat(C.transitionDuration);ne>0&&j.animation!==W.L.POP_UP?setTimeout(M,ne):M(),j.elementRef.nativeElement.classList.add("visible"),j.displayMode=yield j.purpleService.getDisplayMode()})()}ngOnDestroy(){this.renderer.removeClass(this.document.body,"no-scroll"),this.contextService.clearOutletData((0,Le.kO)(this.elementRef.nativeElement))}getPath(){return this.route.snapshot.params.id}getTrackingConfig(Pe){return(0,g.A)((0,g.A)({},super.getTrackingConfig(Pe)),{},{popup:!0})}onConfigReceived(){}onClick(){this.initialized&&this.onClickClose()}onClickClose(){var Pe=this;return(0,s.A)(function*(){Pe.elementRef.nativeElement.classList.remove("visible");const j=(0,S.UE)(Pe.platformId)?getComputedStyle(Pe.container.nativeElement):{},C=()=>{Pe.store.dispatch((0,ae.k4)({url:window.location.href,key:"POPUP_CLOSE_CLICKED",params:{popup:Pe.viewConfig&&Pe.viewConfig.name}})),!Pe.hasNavigated&&(0,_e.dg)(Pe.displayMode)?Pe.purpleService.closeView():Pe.router.navigate([{outlets:{modal:null}}],{queryParamsHandling:"merge",replaceUrl:!0}),Pe.contextService.closeModalCompleteSubject.next(!0)};parseFloat(j.transitionDuration)>0?(0,Le.L$)(Pe.container.nativeElement,"transitionend",C):C()})()}onClickContent(Pe){Pe.stopPropagation()}update(){return(0,s.A)(function*(){})()}}return(Ue=Ot).\u0275fac=function(Pe){return new(Pe||Ue)(d.rXU(d.zZn),d.rXU(S.qQ),d.rXU(d.Agw),d.rXU(x.Wj),d.rXU(We.r6))},Ue.\u0275cmp=d.VBU({type:Ue,selectors:[["storefront-modal"]],viewQuery:function(Pe,j){if(1&Pe&&(d.GBs(or,7,d.c1b),d.GBs(jt,7,d.aKT),d.GBs(tn,7,d.aKT)),2&Pe){let C;d.mGM(C=d.lsd())&&(j.template=C.first),d.mGM(C=d.lsd())&&(j.scrollContainer=C.first),d.mGM(C=d.lsd())&&(j.container=C.first)}},hostVars:1,hostBindings:function(Pe,j){1&Pe&&d.bIt("click",function(){return j.onClick()}),2&Pe&&d.BMQ("animation",j.animation)},standalone:!1,features:[d.Jv_([te.B]),d.Vt3],decls:6,vars:5,consts:[["container",""],["scrollContainer",""],["viewChild",""],[3,"click"],[1,"icon","icon-close",3,"click"],["storefrontCheckOverflowTarget","self",1,"modal-content",3,"storefrontCheckOverflow"],[4,"ngFor","ngForOf"],[3,"pxpDynamicComponent","baseConfig"]],template:function(Pe,j){if(1&Pe){const C=d.RV6();d.j41(0,"div",3,0),d.bIt("click",function(ne){return d.eBV(C),d.Njj(j.onClickContent(ne))}),d.j41(2,"button",4),d.bIt("click",function(){return d.eBV(C),d.Njj(j.onClickClose())}),d.k0s(),d.j41(3,"div",5,1),d.DNE(5,kt,2,1,null,6),d.k0s()()}2&Pe&&(d.ZvI("modal-container ",j.viewConfig&&j.viewConfig.name,""),d.R7$(3),d.Y8G("storefrontCheckOverflow","vertical"),d.R7$(2),d.Y8G("ngForOf",j.children))},dependencies:[S.Sq,Yn.G,Me.q],styles:["storefront-modal,.pxp-modal{position:fixed;height:auto;bottom:0;width:100%;left:0;top:0;background:transparent;z-index:21;overflow:hidden;display:flex;justify-content:center;align-items:center;transition:background-color 60ms ease-in}storefront-modal[animation=POP_UP] .modal-container,.pxp-modal[animation=POP_UP] .modal-container{min-width:200px;min-height:200px;max-width:90%;max-height:90%;width:auto;transform:scale(0);position:relative}storefront-modal[animation=POP_UP] .modal-container .modal-content,.pxp-modal[animation=POP_UP] .modal-container .modal-content{padding:var(--modalPadding);padding-bottom:var(--modalPaddingBottom)}storefront-modal[animation=POP_UP].visible,.pxp-modal[animation=POP_UP].visible{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background-color:transparent}storefront-modal[animation=POP_UP].visible .modal-container,.pxp-modal[animation=POP_UP].visible .modal-container{transform:scale(1);top:auto;left:auto}storefront-modal.visible,.pxp-modal.visible{opacity:1;transition:background-color 60ms ease-out;background-color:#00000080}storefront-modal.visible .modal-container,.pxp-modal.visible .modal-container{transition:transform .2s ease-out 60ms;transform:translateY(0)}storefront-modal .modal-content,.pxp-modal .modal-content{overflow:auto}storefront-modal .modal-content>storefront-element:last-child,storefront-modal .modal-content>div:last-child,.pxp-modal .modal-content>storefront-element:last-child,.pxp-modal .modal-content>div:last-child{margin-bottom:var(--modalPaddingBottom)}storefront-modal .modal-container,.pxp-modal .modal-container{position:absolute;top:var(--appBarHeight);bottom:0;height:auto;width:100%;background-color:var(--modalBgColor);overflow:auto;display:flex;flex-direction:column;transform:translateY(100%);transition:transform .15s ease-in}storefront-modal .modal-container>button.icon-close,.pxp-modal .modal-container>button.icon-close{align-self:flex-end;width:32px;height:32px;flex-shrink:0;font-size:18px;margin:var(--gutter)}storefront-modal .modal-container .modal-content.scrollable-vert.scrollable-bottom,.pxp-modal .modal-container .modal-content.scrollable-vert.scrollable-bottom{-webkit-mask-image:linear-gradient(to bottom,black 0%,black calc(100% - 2 * var(--gutter)),rgba(0,0,0,0) 100%);mask-image:linear-gradient(to bottom,#000,#000 calc(100% - 2 * var(--gutter)),#0000)}storefront-modal .modal-container .modal-content.scrollable-vert.scrollable-top,.pxp-modal .modal-container .modal-content.scrollable-vert.scrollable-top{-webkit-mask-image:linear-gradient(to top,black 0%,black calc(100% - 2 * var(--gutter)),rgba(0,0,0,0) 100%);mask-image:linear-gradient(to top,#000,#000 calc(100% - 2 * var(--gutter)),#0000)}storefront-modal .modal-container .modal-content.scrollable-vert.scrollable-bottom.scrollable-top,.pxp-modal .modal-container .modal-content.scrollable-vert.scrollable-bottom.scrollable-top{-webkit-mask-image:linear-gradient(to bottom,rgba(0,0,0,0) 0%,black calc(2 * var(--gutter)),black calc(100% - 2 * var(--gutter)),rgba(0,0,0,0) 100%);mask-image:linear-gradient(to bottom,#0000,#000 calc(2 * var(--gutter)),#000 calc(100% - 2 * var(--gutter)),#0000)}\n"],encapsulation:2}),Ot})();var It=c(5630),Dt=c(6354),Ct=c(6843),sn=c(4945),An=c(7240),Qn=c(6962);function Fr(Ue,Ot){1&Ue&&d.nrm(0,"div",0)}function st(Ue,Ot){1&Ue&&d.nrm(0,"storefront-spinner")}let vt=(()=>{var Ue;class Ot{constructor(Pe,j,C,M,ne,Oe,Fe){this.route=Pe,this.router=j,this.store=C,this.purpleService=M,this.contextService=ne,this.globalService=Oe,this.domHelper=Fe,this.subscriptions=[]}ngOnInit(){var Pe=this;this.subscriptions.push(this.route.paramMap.subscribe(function(){var j=(0,s.A)(function*(C){const M=C.get("appName"),ne=C.get("contentType"),Oe=C.get("contentId");"issue"===ne?Pe.router.navigate([M,"presenter",Oe],{queryParams:{preview:!0}}):Pe.subscriptions.push((0,sn.jZ)(Ct.O.VIEW)(Pe.store).pipe((0,Dt.T)(Fe=>Fe.filter(pt=>!pt.condition||(0,F.ru)(pt,void 0,Pe.contextService.$functions,Pe.globalService.getGlobalData()))),(0,Dt.T)(Fe=>Fe.find(St=>Pe.hasContentComponent(St.content)))).subscribe(function(){var Fe=(0,s.A)(function*(pt){if(pt){const St=yield Pe.getPath(pt,Oe);Pe.router.navigate([M,...St.split("/")],{queryParams:{content:Oe,preview:!0}})}});return function(pt){return Fe.apply(this,arguments)}}()))});return function(C){return j.apply(this,arguments)}}()))}hasContentComponent(Pe){return!(!Array.isArray(Pe)||!Pe.find(j=>0===j.type.indexOf("content")||!!j.content&&this.hasContentComponent(j.content)))}getPath(Pe,j){var C=this;return(0,s.A)(function*(){const M=Pe.path;if((0,It.qg)(M).filter(Fe=>"string"!=typeof Fe).map(Fe=>Fe.name||null).filter(Fe=>!!Fe).length>0){const Fe=Pe.data;let pt={};Fe&&Fe.forEach(Ht=>{const cn=Ht.filter;pt=(0,g.A)((0,g.A)({},pt),C.getVariableMappingFromFilter(cn))});const St=Object.entries(pt);if(St.length>0){const Ht=yield C.purpleService.getCatalogContent(j);St.forEach(([cn,Ln])=>{const Vn=Ln.split(".");pt[cn]=Vn.reduce((dr,lr)=>dr[lr],Ht)})}return(0,It.wE)(M,{encode:encodeURIComponent})(pt)}return M})()}ngOnDestroy(){this.subscriptions.length>0&&this.subscriptions.forEach(Pe=>Pe.unsubscribe())}getVariableMappingFromFilter(Pe,j=""){let C={};return Pe&&Object.entries(Pe).forEach(([M,ne])=>{if(ne instanceof Array)ne.forEach(Oe=>C=(0,g.A)((0,g.A)({},C),this.getVariableMappingFromFilter(Oe)));else if("object"==typeof ne)ne.key&&ne.value&&"string"==typeof ne.value&&0===ne.value.indexOf(":")?C[ne.value.substr(1)]="".concat(j).concat(j?".":"").concat(M,".").concat(ne.key):C=(0,g.A)((0,g.A)({},C),this.getVariableMappingFromFilter(ne,"".concat(j).concat(j?".":"").concat(M)));else if("string"==typeof ne&&0===ne.indexOf(":")){const Oe=ne.substr(1);C[Oe]="".concat(j).concat(j?".":"").concat(M)}}),C}}return(Ue=Ot).\u0275fac=function(Pe){return new(Pe||Ue)(d.rXU(z.nX),d.rXU(z.Ix),d.rXU(de.il),d.rXU(x.Wj),d.rXU(G.V),d.rXU(De.d),d.rXU(Be.S))},Ue.\u0275cmp=d.VBU({type:Ue,selectors:[["storefront-preview"]],standalone:!1,decls:2,vars:1,consts:[[1,"pxp-spinner"]],template:function(Pe,j){1&Pe&&d.DNE(0,Fr,1,0,"div",0)(1,st,1,0,"storefront-spinner"),2&Pe&&d.vxM(j.domHelper.leanDom?0:1)},dependencies:[An.t,Qn.n],encapsulation:2}),Ot})(),bt=(()=>{var Ue;class Ot{constructor(Pe,j,C,M){this.store=Pe,this.contextService=j,this.document=C,this.purpleService=M,this.navigationAllowed=Promise.all([this.purpleService.getMetadata([dt.METADATA_KEY.ENTITLEMENT_LOGIN_MODE]),this.purpleService.getDisplayMode()]).then(([ne,Oe])=>!ne[dt.METADATA_KEY.ENTITLEMENT_LOGIN_MODE]&&!(0,_e.dg)(Oe,C)),(0,sn.jZ)(Ct.O.ACCESS)(this.store).subscribe(ne=>this.access=ne)}canDeactivate(Pe,j,C){var M=this;return(0,s.A)(function*(){return(yield M.navigationAllowed)&&!M.loginRequired()})()}loginRequired(){var Pe;return(null===(Pe=this.access)||void 0===Pe?void 0:Pe.forceLogin)&&!this.contextService.isLoggedIn()}}return(Ue=Ot).\u0275fac=function(Pe){return new(Pe||Ue)(d.KVO(de.il),d.KVO(G.V),d.KVO(S.qQ),d.KVO(x.Wj))},Ue.\u0275prov=d.jDH({token:Ue,factory:Ue.\u0275fac}),Ot})();const ht=["class","pxp-view"],wt=Ue=>[Ue];function pn(Ue,Ot){}function Pn(Ue,Ot){if(1&Ue&&d.DNE(0,pn,0,0,"ng-template",5),2&Ue){const ut=Ot.$implicit,Pe=d.XpG(2);d.Y8G("baseConfig",Pe.children[ut])}}function jn(Ue,Ot){if(1&Ue&&(d.j41(0,"div",3),d.DNE(1,Pn,1,1,null,4),d.k0s()),2&Ue){const ut=d.XpG();d.R7$(),d.Y8G("ngForOf",ut.visibleStickyChildren)("ngForTrackBy",ut.trackByElement)}}function Fn(Ue,Ot){}function Ar(Ue,Ot){if(1&Ue){const ut=d.RV6();d.DNE(0,Fn,0,0,"ng-template",7),d.bIt("inViewport",function(j){const C=d.eBV(ut).index,M=d.XpG(2);return d.Njj(M.onVisibilityChanged(C,j))})}if(2&Ue){const ut=Ot.$implicit,Pe=d.XpG(2);d.Y8G("baseConfig",ut)("controlsSticky",ut.sticky)("lazy",Pe.isLazy)}}function br(Ue,Ot){if(1&Ue&&(d.j41(0,"div",6),d.DNE(1,Ar,1,3,null,4),d.k0s()),2&Ue){const ut=d.XpG();d.Y8G("storefrontPullToRefresh",ut.viewConfig.pullToRefresh)("onRefresh",ut.onRefresh),d.R7$(),d.Y8G("ngForOf",ut.children)("ngForTrackBy",ut.trackByElement)}}function Wr(Ue,Ot){if(1&Ue){const ut=d.RV6();d.j41(0,"div",8),d.nrm(1,"span",9),d.j41(2,"button",10),d.bIt("click",function(){d.eBV(ut);const j=d.XpG();return d.Njj(j.reload())}),d.k0s()()}if(2&Ue){const ut=d.XpG();d.R7$(),d.Y8G("storefrontTranslate",ut.viewConfig.errorMessage||"VIEW_ERROR")("storefrontTranslateArgs",d.eq3(3,wt,ut.dataSourceError.code)),d.R7$(),d.Y8G("storefrontTranslate",ut.viewConfig.errorButtonLabel||"VIEW_ERROR_BUTTON")}}let fi=(()=>{var Ue;class Ot extends Hn{}return(Ue=Ot).\u0275fac=(()=>{let ut;return function(j){return(ut||(ut=d.xGo(Ue)))(j||Ue)}})(),Ue.\u0275cmp=d.VBU({type:Ue,selectors:[["div",8,"pxp-view"]],standalone:!1,features:[d.Jv_([te.B]),d.Vt3],attrs:ht,decls:3,vars:3,consts:[["class","sticky-elements",4,"ngIf"],["class","content",3,"storefrontPullToRefresh","onRefresh",4,"ngIf"],["class","view-error",4,"ngIf"],[1,"sticky-elements"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"pxpDynamicComponent","baseConfig"],[1,"content",3,"storefrontPullToRefresh","onRefresh"],[3,"inViewport","pxpDynamicComponent","baseConfig","controlsSticky","lazy"],[1,"view-error"],[3,"storefrontTranslate","storefrontTranslateArgs"],[1,"action-button",3,"click","storefrontTranslate"]],template:function(Pe,j){1&Pe&&d.DNE(0,jn,2,2,"div",0)(1,br,2,4,"div",1)(2,Wr,3,5,"div",2),2&Pe&&(d.Y8G("ngIf",!j.dataSourceError),d.R7$(),d.Y8G("ngIf",j.viewConfig&&j.children&&!j.dataSourceError),d.R7$(),d.Y8G("ngIf",j.dataSourceError))},dependencies:[S.Sq,S.bT,Tt,rt.M,Me.q],styles:["storefront-view,.pxp-view{display:block;padding-top:var(--appBarHeight);padding-bottom:var(--navigationHeight);transition:all .15s ease;min-height:100vh;background-color:var(--backgroundColor)}storefront-view .content,.pxp-view .content{position:relative}storefront-view .sticky-elements,.pxp-view .sticky-elements{position:fixed;width:100%;z-index:19}storefront-view .view-error,.pxp-view .view-error{display:flex;flex-direction:column;align-items:flex-start;padding:var(--gutter)}storefront-view .view-error>.action-button,.pxp-view .view-error>.action-button{background-color:var(--secondaryColor);color:#fff}body.scrolled storefront-tab-navigation.scroll-hide~storefront-view,body.scrolled storefront-tab-navigation.scroll-hide~.pxp-view,body.scrolled .pxp-tab-navigation.scroll-hide~storefront-view,body.scrolled .pxp-tab-navigation.scroll-hide~.pxp-view{padding-bottom:0}body.scrolled storefront-tab-navigation.scroll-shrink~storefront-view,body.scrolled storefront-tab-navigation.scroll-shrink~.pxp-view,body.scrolled .pxp-tab-navigation.scroll-shrink~storefront-view,body.scrolled .pxp-tab-navigation.scroll-shrink~.pxp-view{padding-bottom:var(--navigationShrinkHeight)}\n"],encapsulation:2}),Ot})();const ji=["class","pxp-modal"];function ui(Ue,Ot){}function So(Ue,Ot){1&Ue&&d.DNE(0,ui,0,0,"ng-template",7,2,d.C5r),2&Ue&&d.Y8G("baseConfig",Ot.$implicit)}let Mo=(()=>{var Ue;class Ot extends Pt{}return(Ue=Ot).\u0275fac=(()=>{let ut;return function(j){return(ut||(ut=d.xGo(Ue)))(j||Ue)}})(),Ue.\u0275cmp=d.VBU({type:Ue,selectors:[["div",8,"pxp-modal"]],standalone:!1,features:[d.Jv_([te.B]),d.Vt3],attrs:ji,decls:6,vars:5,consts:[["container",""],["scrollContainer",""],["viewChild",""],[3,"click"],[1,"icon","icon-close",3,"click"],["storefrontCheckOverflowTarget","self",1,"modal-content",3,"storefrontCheckOverflow"],[4,"ngFor","ngForOf"],[3,"pxpDynamicComponent","baseConfig"]],template:function(Pe,j){if(1&Pe){const C=d.RV6();d.j41(0,"div",3,0),d.bIt("click",function(ne){return d.eBV(C),d.Njj(j.onClickContent(ne))}),d.j41(2,"button",4),d.bIt("click",function(){return d.eBV(C),d.Njj(j.onClickClose())}),d.k0s(),d.j41(3,"div",5,1),d.DNE(5,So,2,1,null,6),d.k0s()()}2&Pe&&(d.ZvI("modal-container ",j.viewConfig&&j.viewConfig.name,""),d.R7$(3),d.Y8G("storefrontCheckOverflow","vertical"),d.R7$(2),d.Y8G("ngForOf",j.children))},dependencies:[S.Sq,Yn.G,Me.q],styles:["storefront-modal,.pxp-modal{position:fixed;height:auto;bottom:0;width:100%;left:0;top:0;background:transparent;z-index:21;overflow:hidden;display:flex;justify-content:center;align-items:center;transition:background-color 60ms ease-in}storefront-modal[animation=POP_UP] .modal-container,.pxp-modal[animation=POP_UP] .modal-container{min-width:200px;min-height:200px;max-width:90%;max-height:90%;width:auto;transform:scale(0);position:relative}storefront-modal[animation=POP_UP] .modal-container .modal-content,.pxp-modal[animation=POP_UP] .modal-container .modal-content{padding:var(--modalPadding);padding-bottom:var(--modalPaddingBottom)}storefront-modal[animation=POP_UP].visible,.pxp-modal[animation=POP_UP].visible{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background-color:transparent}storefront-modal[animation=POP_UP].visible .modal-container,.pxp-modal[animation=POP_UP].visible .modal-container{transform:scale(1);top:auto;left:auto}storefront-modal.visible,.pxp-modal.visible{opacity:1;transition:background-color 60ms ease-out;background-color:#00000080}storefront-modal.visible .modal-container,.pxp-modal.visible .modal-container{transition:transform .2s ease-out 60ms;transform:translateY(0)}storefront-modal .modal-content,.pxp-modal .modal-content{overflow:auto}storefront-modal .modal-content>storefront-element:last-child,storefront-modal .modal-content>div:last-child,.pxp-modal .modal-content>storefront-element:last-child,.pxp-modal .modal-content>div:last-child{margin-bottom:var(--modalPaddingBottom)}storefront-modal .modal-container,.pxp-modal .modal-container{position:absolute;top:var(--appBarHeight);bottom:0;height:auto;width:100%;background-color:var(--modalBgColor);overflow:auto;display:flex;flex-direction:column;transform:translateY(100%);transition:transform .15s ease-in}storefront-modal .modal-container>button.icon-close,.pxp-modal .modal-container>button.icon-close{align-self:flex-end;width:32px;height:32px;flex-shrink:0;font-size:18px;margin:var(--gutter)}storefront-modal .modal-container .modal-content.scrollable-vert.scrollable-bottom,.pxp-modal .modal-container .modal-content.scrollable-vert.scrollable-bottom{-webkit-mask-image:linear-gradient(to bottom,black 0%,black calc(100% - 2 * var(--gutter)),rgba(0,0,0,0) 100%);mask-image:linear-gradient(to bottom,#000,#000 calc(100% - 2 * var(--gutter)),#0000)}storefront-modal .modal-container .modal-content.scrollable-vert.scrollable-top,.pxp-modal .modal-container .modal-content.scrollable-vert.scrollable-top{-webkit-mask-image:linear-gradient(to top,black 0%,black calc(100% - 2 * var(--gutter)),rgba(0,0,0,0) 100%);mask-image:linear-gradient(to top,#000,#000 calc(100% - 2 * var(--gutter)),#0000)}storefront-modal .modal-container .modal-content.scrollable-vert.scrollable-bottom.scrollable-top,.pxp-modal .modal-container .modal-content.scrollable-vert.scrollable-bottom.scrollable-top{-webkit-mask-image:linear-gradient(to bottom,rgba(0,0,0,0) 0%,black calc(2 * var(--gutter)),black calc(100% - 2 * var(--gutter)),rgba(0,0,0,0) 100%);mask-image:linear-gradient(to bottom,#0000,#000 calc(2 * var(--gutter)),#000 calc(100% - 2 * var(--gutter)),#0000)}\n"],encapsulation:2}),Ot})();const ri=["class","pxp-preview"];function Jn(Ue,Ot){1&Ue&&d.nrm(0,"div",0)}function rn(Ue,Ot){1&Ue&&d.nrm(0,"storefront-spinner")}let et=(()=>{var Ue;class Ot extends vt{}return(Ue=Ot).\u0275fac=(()=>{let ut;return function(j){return(ut||(ut=d.xGo(Ue)))(j||Ue)}})(),Ue.\u0275cmp=d.VBU({type:Ue,selectors:[["div",8,"pxp-preview"]],standalone:!1,features:[d.Vt3],attrs:ri,decls:2,vars:1,consts:[[1,"pxp-spinner"]],template:function(Pe,j){1&Pe&&d.DNE(0,Jn,1,0,"div",0)(1,rn,1,0,"storefront-spinner"),2&Pe&&d.vxM(j.domHelper.leanDom?0:1)},dependencies:[An.t,Qn.n],encapsulation:2}),Ot})(),yt=(()=>{var Ue;class Ot{handleError(Pe){throw Pe}}return(Ue=Ot).\u0275fac=function(Pe){return new(Pe||Ue)},Ue.\u0275prov=d.jDH({token:Ue,factory:Ue.\u0275fac}),Ot})(),Xt=(()=>{var Ue;class Ot{constructor(Pe,j,C,M){this.router=Pe,this.viewportScroller=j,this.ngZone=C,this.document=M,Pe.events.pipe((0,Ke.p)(ne=>ne instanceof z.OY)).subscribe(ne=>{this.handleScroll(ne,j)})}handleScroll(Pe,j){if(Pe.routerEvent instanceof z.wF){const C=Pe.routerEvent.urlAfterRedirects,M=this.extractPathParam(C),ne=this.extractPathParam(this.lastMainView);if(C.includes("(modal:"))return void(this.inPopup=!0);if(this.inPopup&&(this.inPopup=!1,M===ne))return;M===ne&&!Pe.anchor||(this.lastMainView=M)}Pe.position?this.scrollTo(j,Pe.position):Pe.anchor?j.scrollToAnchor(Pe.anchor):j.scrollToPosition([0,0])}extractPathParam(Pe){return new URL(Pe,"http://dummyurl.com").pathname}scrollTo(Pe,j,C=1){Pe.scrollToPosition(j),C<5&&(this.document.documentElement.scrollHeight<j[1]||this.document.documentElement.scrollWidth<j[0])&&this.ngZone.runOutsideAngular(()=>{setTimeout(()=>this.scrollTo(Pe,j,C+1),500)})}}return(Ue=Ot).\u0275fac=function(Pe){return new(Pe||Ue)(d.KVO(z.Ix),d.KVO(S.Xr),d.KVO(d.SKi),d.KVO(S.qQ))},Ue.\u0275mod=d.$C({type:Ue}),Ue.\u0275inj=d.G2t({providers:[{provide:d.zcH,useClass:yt},O,bt,{provide:S.hb,useFactory:ut=>ut.get(We.r6).isUniversal?(console.debug("isUniversal, using path location strategy for routing"),new S.Sm(ut.get(S.Vw))):(console.debug("!isUniversal, using hash location strategy for routing"),new S.fw(ut.get(S.Vw))),deps:[d.zZn]},{provide:z.bw,useFactory:ut=>(Ue=>[{matcher:Ot=>(0,_e.KM)(Ot)?{consumed:Ot}:null,component:pe},{path:"popup/:id/:animation",component:Ue?Mo:Pt,outlet:"modal"},{path:"popup/:id",component:Ue?Mo:Pt,outlet:"modal"},{path:"preview/:appName/:contentType/:contentId",component:Ue?et:vt},{path:"**",component:Ue?fi:Hn,canDeactivate:[bt],resolve:{notifyViewResolved:(Ot,ut)=>(0,d.WQX)(Ge.z).resolve(Ot,ut)}}])(ut.leanDom),multi:!0,deps:[Be.S]}],imports:[z.iI.forRoot([],{initialNavigation:"enabledNonBlocking"}),z.iI]}),Ot})();var nn=c(4871),un=c(2596),qn=c(9312),sr=c(5204);function Oi(Ue,Ot){}function no(Ue,Ot){1&Ue&&d.DNE(0,Oi,0,0,"ng-template",6),2&Ue&&d.Y8G("baseConfig",Ot.$implicit)("lazy",!1)}let Vi=(()=>{var Ue;class Ot{get dynClasses(){return[this.menuOpen?"state-open":"state-closed",this.config&&"side-".concat((this.config.side||"LEFT").toLowerCase())].filter(Pe=>!!Pe).join(" ")}constructor(Pe,j,C,M,ne,Oe){this.appMenuService=Pe,this.store=j,this.changeDetectorRef=C,this.contextService=M,this.globalService=ne,this.destroyRef=Oe}close(){this.appMenuService.setOpen(!1)}ngOnInit(){this.appMenuService.$menuOpen.pipe((0,le.pQ)(this.destroyRef),(0,Ke.p)(()=>this.appMenuService.hasNoCustomSideMenuSignal())).subscribe(Pe=>{this.menuOpen=Pe,this.changeDetectorRef.detectChanges()}),(0,sn.jZ)(Ct.O.MENUS)(this.store).pipe((0,le.pQ)(this.destroyRef),(0,Dt.T)(Pe=>Pe.sideMenus.find(j=>"default"===j.id))).subscribe(Pe=>{var j;this.config=Pe,this.children=null===(j=this.config)||void 0===j?void 0:j.content.filter(C=>(0,F.ru)(C,this.contextService.getCurrentViewContext(),this.contextService.$functions,this.globalService.getGlobalData(),!1)),this.changeDetectorRef.detectChanges()})}trackByElement(Pe,j){if("string"==typeof j||"number"==typeof j)return j;const C=j.id||j._uuid;if(!C)throw"error trackbyElement: expected id or _uuid "+JSON.stringify(j);return C}}return(Ue=Ot).\u0275fac=function(Pe){return new(Pe||Ue)(d.rXU(sr.I),d.rXU(de.il),d.rXU(d.gRc),d.rXU(G.V),d.rXU(De.d),d.rXU(d.abz))},Ue.\u0275cmp=d.VBU({type:Ue,selectors:[["storefront-side-menu"]],hostVars:2,hostBindings:function(Pe,j){2&Pe&&d.HbH(j.dynClasses)},standalone:!1,decls:6,vars:2,consts:[[1,"side-menu-backdrop",3,"click"],[1,"side-menu",3,"click"],[1,"side-menu-header"],[1,"icon","icon-close",3,"click"],[1,"side-menu-content"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"pxpDynamicComponent","baseConfig","lazy"]],template:function(Pe,j){1&Pe&&(d.j41(0,"div",0),d.bIt("click",function(){return j.close()}),d.k0s(),d.j41(1,"nav",1),d.bIt("click",function(M){return M.stopPropagation()}),d.j41(2,"div",2)(3,"button",3),d.bIt("click",function(){return j.close()}),d.k0s()(),d.j41(4,"div",4),d.DNE(5,no,1,2,null,5),d.k0s()()),2&Pe&&(d.R7$(5),d.Y8G("ngForOf",j.children)("ngForTrackBy",j.trackByElement))},dependencies:[S.Sq,Me.q],styles:["storefront-side-menu .side-menu,.pxp-side-menu .side-menu{position:fixed;z-index:1001;top:0;left:0;height:100%;width:var(--sideMenuWidth, min(90vw, 350px));overflow-x:hidden;transform:translate(-100%);background-color:var(--sideMenuBackground, var(--backgroundColor));transition:transform var(--sideMenuTransitionTime, .3s);display:flex;flex-direction:column;padding:var(--gutter);gap:var(--gutter)}storefront-side-menu .side-menu>.side-menu-header,.pxp-side-menu .side-menu>.side-menu-header{width:100%;display:flex}.side-left storefront-side-menu .side-menu>.side-menu-header,.side-left .pxp-side-menu .side-menu>.side-menu-header{justify-content:end}storefront-side-menu .side-menu-backdrop,.pxp-side-menu .side-menu-backdrop{position:fixed;z-index:1000;top:0;left:0;width:100%;height:100%;background-color:#000000b3;opacity:0;transition:opacity var(--sideMenuTransitionTime, .3s);pointer-events:none}.state-open .side-menu{transform:translate(0)}.state-open .side-menu-backdrop{opacity:1;pointer-events:auto}\n"],encapsulation:2}),Ot})();var vr=c(2628);let Ai=(()=>{var Ue;class Ot{constructor(Pe,j,C){var M=this;this.actions$=Pe,this.store=j,this.purpleService=C,this.listeners={},this.loadIssueStates$=(0,ve.EH)(()=>this.actions$.pipe((0,ve.gp)(vr.Uo),(0,Dt.T)(function(){var ne=(0,s.A)(function*(Oe){const Fe=Oe.issues.filter(pt=>!M.listeners[pt.id]);if(Fe.length){Fe.forEach(St=>{M.listeners[St.id]||(M.listeners[St.id]=Ht=>M.store.dispatch((0,vr.hc)({[St.id]:Ht})),M.purpleService.addIssueStateListener({publicationId:St.publicationId,issueVersion:St.version,issueId:St.id},M.listeners[St.id]))});const pt=yield M.purpleService.getIssueStates({issues:Fe.map(St=>({issueId:St.id,issueVersion:St.version}))});M.store.dispatch((0,vr.hc)(pt))}});return function(Oe){return ne.apply(this,arguments)}}())),{dispatch:!1})}}return(Ue=Ot).\u0275fac=function(Pe){return new(Pe||Ue)(d.KVO(ve.En),d.KVO(de.il),d.KVO(x.Wj))},Ue.\u0275prov=d.jDH({token:Ue,factory:Ue.\u0275fac}),Ot})();var ki=c(4579),hi=c(3993),Nr=c(4004),Gn=c(4622);let Yr=(()=>{var Ue;class Ot{startQueueProcession(){this.zone.runOutsideAngular(()=>{setInterval(()=>{this.queue.length&&this.zone.run(()=>{this.store.dispatch((0,Nr.$W)({productIds:this.queue})),this.queue=[]})},200)})}constructor(Pe,j,C,M){var ne=this;this.actions$=Pe,this.store=j,this.zone=C,this.purpleService=M,this.queue=[],this.loadPrices$=(0,ve.EH)(()=>this.actions$.pipe((0,ve.gp)(Nr.$W),(0,Dt.T)(function(){var Oe=(0,s.A)(function*(Fe){try{const pt=yield ne.purpleService.getPrices(Fe.productIds.filter(Ht=>!!Ht));let St=Fe.productIds.reduce((Ht,cn)=>(0,g.A)((0,g.A)({},Ht),{},{[cn]:null}),{});St=pt.priceInfos.reduce((Ht,cn)=>(0,g.A)((0,g.A)({},Ht),{},{[cn.productId]:cn}),St),ne.store.dispatch((0,Nr.Kx)({prices:St}))}catch(pt){ne.store.dispatch((0,Nr.Nb)({error:pt,productIds:Fe.productIds}))}});return function(Fe){return Oe.apply(this,arguments)}}())),{dispatch:!1}),this.loadPrice$=(0,ve.EH)(()=>this.actions$.pipe((0,ve.gp)(Nr.qF),(0,hi.E)(this.store.select(Gn.aJ)),(0,Dt.T)(function(){var Oe=(0,s.A)(function*([Fe,pt]){Object.keys(pt).includes(Fe.productId)||ne.queue.push(Fe.productId)});return function(Fe){return Oe.apply(this,arguments)}}())),{dispatch:!1}),this.startQueueProcession()}}return(Ue=Ot).\u0275fac=function(Pe){return new(Pe||Ue)(d.KVO(ve.En),d.KVO(de.il),d.KVO(d.SKi),d.KVO(x.Wj))},Ue.\u0275prov=d.jDH({token:Ue,factory:Ue.\u0275fac}),Ot})();var Pi=c(2099);const Xe=(0,ge.zk)();let _t=(()=>{var Ue;class Ot{constructor(Pe,j,C,M){var ne=this;this.actions$=Pe,this.document=j,this.purpleService=C,this.viewService=M,this.trackAction$=(0,ve.EH)(()=>this.actions$.pipe((0,ve.gp)(ae.k4),(0,Dt.T)(function(){var Oe=(0,s.A)(function*(Fe){const pt=yield Zt(ne.document,ne.purpleService);ne.viewService.getCurrentView().then(({default:{viewConfig:St}})=>{var Ht;const cn="STOREFRONT_".concat(Fe.key),Ln=(0,g.A)((0,g.A)((0,g.A)({},pt),Fe.params),{},{view:(null==St?void 0:St.name)&&(0,We.Dh)(St.name),URL:Fe.url,TARGET_URL:null!==(Ht=Fe.targetUrl)&&void 0!==Ht?Ht:Xe.location.href});ne.purpleService.trackAction(cn,Ln)})});return function(Fe){return Oe.apply(this,arguments)}}())),{dispatch:!1}),this.trackView$=(0,ve.EH)(()=>this.actions$.pipe((0,ve.gp)(ae.$3),(0,Dt.T)(function(){var Oe=(0,s.A)(function*(Fe){var pt,St;const Ht=yield Zt(ne.document,ne.purpleService),cn="STOREFRONT_VIEW_".concat(Fe.key),Ln=(0,g.A)((0,g.A)((0,g.A)({},Ht),Fe.params),{},{view:Fe.key,popup:Fe.popup?"true":"false",URL:Fe.url,TARGET_URL:null!==(pt=Fe.targetUrl)&&void 0!==pt?pt:Xe.location.href});ne.purpleService.trackAction(cn,Ln);const Vn="STOREFRONT_".concat(Fe.key),dr=(0,g.A)((0,g.A)((0,g.A)({},Ht),Fe.params),{},{view:Fe.key,popup:Fe.popup?"true":"false",URL:Fe.url,TARGET_URL:null!==(St=Fe.targetUrl)&&void 0!==St?St:Xe.location.href});ne.purpleService.trackView(Vn,dr)});return function(Fe){return Oe.apply(this,arguments)}}())),{dispatch:!1}),this.trackPurchase$=(0,ve.EH)(()=>this.actions$.pipe((0,ve.gp)(ae.Du),(0,Dt.T)(function(){var Oe=(0,s.A)(function*(Fe){const pt=(0,g.A)((0,g.A)({},Fe.params),{},{key:"STOREFRONT_".concat(Fe.params.key)}),St=yield Zt(ne.document,ne.purpleService);pt.optionalParams=(0,g.A)((0,g.A)({},St),pt.optionalParams),ne.purpleService.trackPurchase(pt)});return function(Fe){return Oe.apply(this,arguments)}}())),{dispatch:!1})}}return(Ue=Ot).\u0275fac=function(Pe){return new(Pe||Ue)(d.KVO(ve.En),d.KVO(S.qQ),d.KVO(x.Wj),d.KVO(Ge.z))},Ue.\u0275prov=d.jDH({token:Ue,factory:Ue.\u0275fac}),Ot})();function Zt(){return Ut.apply(this,arguments)}function Ut(){return(Ut=(0,s.A)(function*(Ue=Xe,Ot){const ut=new URLSearchParams("?"+Ue.location.href.split("?")[1]);let j,C,Pe={};return ut.get("issue")&&(j=yield Ot.getIssue(ut.get("issue")).catch(()=>null)),ut.get("publication")&&(C=yield Ot.getPublication(ut.get("publication"))),j&&(Pe=(0,g.A)((0,g.A)({},Pe),(0,We.bJ)(j)),C||(C=yield Ot.getPublication(j.publicationId))),C&&(Pe=(0,g.A)((0,g.A)({},Pe),(0,We.GA)(C))),Pe})).apply(this,arguments)}var bn=c(721),Rn=c(8301);let $n=(()=>{var Ue;class Ot{}return(Ue=Ot).\u0275fac=function(Pe){return new(Pe||Ue)},Ue.\u0275mod=d.$C({type:Ue}),Ue.\u0275inj=d.G2t({imports:[S.MD,bn.u,Rn.d,K.h]}),Ot})();var Bn=c(8482),Sn=c(6078),zn=c(3307),Dn=c(2261),ii=c(8004),Jr=c(395),qr=c(4336);function Ir(Ue,Ot){if(1&Ue){const ut=d.RV6();d.j41(0,"button",11),d.bIt("click",function(){d.eBV(ut);const j=d.XpG(2);return d.Njj(j.onClickMenu())}),d.k0s()}}function it(Ue,Ot){if(1&Ue){const ut=d.RV6();d.j41(0,"button",12),d.bIt("click",function(){d.eBV(ut);const j=d.XpG(2);return d.Njj(j.onClickBack())}),d.k0s()}}function Bt(Ue,Ot){if(1&Ue&&(d.qex(0),d.DNE(1,Ir,1,0,"button",9)(2,it,1,0,"button",10),d.bVm()),2&Ue){const ut=d.XpG();d.R7$(),d.Y8G("ngIf",!ut.showBackButton()),d.R7$(),d.Y8G("ngIf",ut.showBackButton())}}function Lt(Ue,Ot){1&Ue&&d.nrm(0,"button",13)}function Nt(Ue,Ot){if(1&Ue){const ut=d.RV6();d.qex(0),d.j41(1,"a",15),d.bIt("click",function(j){d.eBV(ut);const C=d.XpG(2);return d.Njj(C.onClickLogo(j))}),d.k0s(),d.bVm()}if(2&Ue){const ut=d.XpG(2);d.R7$(),d.Y8G("href",ut.anchorPath,d.B4B)}}function yn(Ue,Ot){if(1&Ue){const ut=d.RV6();d.j41(0,"div",16),d.bIt("click",function(j){d.eBV(ut);const C=d.XpG(2);return d.Njj(C.onClickLogo(j))}),d.k0s()}}function Tn(Ue,Ot){if(1&Ue&&(d.qex(0),d.DNE(1,Nt,2,1,"ng-container",14)(2,yn,1,0,"ng-template",null,0,d.C5r),d.bVm()),2&Ue){const ut=d.sdS(3),Pe=d.XpG();d.R7$(),d.Y8G("ngIf",Pe.anchorFeatureEnabled)("ngIfElse",ut)}}function nr(Ue,Ot){if(1&Ue&&d.nrm(0,"div",17),2&Ue){const ut=d.XpG();d.Y8G("storefrontTranslate",ut.getTitle())}}function Xr(Ue,Ot){}function Dr(Ue,Ot){if(1&Ue&&d.DNE(0,Xr,0,0,"ng-template",18),2&Ue){const ut=d.XpG();d.Y8G("baseConfig",ut.config.content)}}function ei(Ue,Ot){if(1&Ue&&d.nrm(0,"storefront-button",19),2&Ue){const ut=d.XpG();d.Y8G("baseConfig",ut.rightButton)}}function Un(Ue,Ot){if(1&Ue&&d.nrm(0,"div",20),2&Ue){const ut=d.XpG();d.Y8G("baseConfig",ut.rightButton)}}function _i(Ue,Ot){1&Ue&&d.nrm(0,"button",21)}function p(Ue,Ot){if(1&Ue){const ut=d.RV6();d.j41(0,"button",22),d.bIt("click",function(){d.eBV(ut);const j=d.XpG();return d.Njj(j.onClickClose())}),d.k0s()}}let T=(()=>{var Ue;class Ot{get cssClass(){return"scroll-".concat(this.config.scrollBehavior," app-bar-").concat(this.config.id)}constructor(Pe,j,C,M,ne,Oe,Fe,pt,St,Ht){this.renderer=Pe,this.document=j,this.router=C,this.store=M,this.guard=ne,this.contextService=Oe,this.eventActionService=Fe,this.purpleService=pt,this.globalService=St,this.domHelper=Ht,this.navigationAllowed=!0,this.anchorFeatureEnabled=!1,this.anchorPath=""}ngOnInit(){var Pe=this;return(0,s.A)(function*(){Pe.contextService.viewContext$.subscribe(j=>{Pe.context=j,Pe.backNavigationAllowed=Pe.contextService.navigationCount>0,Pe.setRightButton()}),Pe.navigationAllowed=yield Pe.guard.navigationAllowed,Pe.store.select((0,sn.jZ)(Ct.O.FEATURE),j=>{if(null!=j&&j.anchorTags&&(Pe.anchorFeatureEnabled=j.anchorTags,Pe.config.logo)){let C;"object"==typeof Pe.config.logo&&Pe.config.logo.tap&&(C=(0,F.v3)((0,F.uQ)(Pe.config.logo.tap,Pe.context,Pe.contextService.$functions,Pe.globalService.getGlobalData())),C=C.url||C.path);const M=Pe.contextService.getIsCustomerDomainUsed()?"/":Pe.contextService.getBrand();Pe.anchorPath="".concat(M).concat(null!=C?C:"").concat(Pe.contextService.isPreview()?"?preview=true":"")}})})()}ngOnChanges(Pe){this.config=(0,g.A)((0,g.A)({},Dn.a),this.config),this.renderer.setAttribute(this.document.body,this.domHelper.leanDom?"data-pxp-app-bar-scroll-behavior":"app-bar-scroll-behavior",this.config.scrollBehavior)}showBackButton(){return"back"===this.config.leftButton&&this.backNavigationAllowed}onClickMenu(){this.store.dispatch((0,ae.k4)({url:window.location.href,key:"APP_BAR_MENU_CLICKED"})),this.purpleService.openActionUrl("purple://app/menu/open")}onClickLogo(Pe){if(this.anchorFeatureEnabled&&Pe.preventDefault(),this.store.dispatch((0,ae.k4)({url:window.location.href,key:"APP_BAR_LOGO_CLICKED"})),"object"==typeof this.config.logo&&this.config.logo.tap){const C=(0,F.v3)((0,F.uQ)(this.config.logo.tap,this.context,this.contextService.$functions,this.globalService.getGlobalData()));if(C)return this.eventActionService.processEventAction(C,this)}const j=this.contextService.getIsCustomerDomainUsed()?"/":this.contextService.getBrand();this.router.navigate([j],{queryParams:{preview:!!this.contextService.isPreview()}})}onClickBack(){this.store.dispatch((0,ae.k4)({url:window.location.href,key:"APP_BAR_BACK_CLICKED"})),window.history.back()}onClickClose(){this.purpleService.closeView()}getTitle(){return(0,F.uQ)(this.config.title,this.context,this.contextService.$functions,this.globalService.getGlobalData())}setRightButton(){this.rightButton=(0,F.v3)((0,F.uQ)(this.config.rightButton,this.context,this.contextService.$functions,this.globalService.getGlobalData()))}getContext(){return this.context}getId(){return this.config.id}}return(Ue=Ot).\u0275fac=function(Pe){return new(Pe||Ue)(d.rXU(d.sFG),d.rXU(S.qQ),d.rXU(z.Ix),d.rXU(te.B),d.rXU(bt),d.rXU(G.V),d.rXU(ii.G),d.rXU(x.Wj),d.rXU(De.d),d.rXU(Be.S))},Ue.\u0275cmp=d.VBU({type:Ue,selectors:[["storefront-app-bar"]],hostVars:2,hostBindings:function(Pe,j){2&Pe&&d.HbH(j.cssClass)},inputs:{config:"config"},standalone:!1,features:[d.Jv_([te.B]),d.OA$],decls:10,vars:9,consts:[["noAnchorTemplate",""],[4,"ngIf"],["style","pointer-events: none",4,"ngIf"],[1,"app-bar-content"],["class","title",3,"storefrontTranslate",4,"ngIf"],[3,"baseConfig",4,"ngIf"],["class","pxp-button",3,"baseConfig",4,"ngIf"],["style","pointer-events: none; display: none",4,"ngIf"],["class","icon icon-close",3,"click",4,"ngIf"],["class","icon icon-menu",3,"click",4,"ngIf"],["class","icon icon-arrow-left",3,"click",4,"ngIf"],[1,"icon","icon-menu",3,"click"],[1,"icon","icon-arrow-left",3,"click"],[2,"pointer-events","none"],[4,"ngIf","ngIfElse"],[1,"logo",3,"click","href"],[1,"logo",3,"click"],[1,"title",3,"storefrontTranslate"],[3,"pxpDynamicComponent","baseConfig"],[3,"baseConfig"],[1,"pxp-button",3,"baseConfig"],[2,"pointer-events","none","display","none"],[1,"icon","icon-close",3,"click"]],template:function(Pe,j){1&Pe&&(d.DNE(0,Bt,3,2,"ng-container",1)(1,Lt,1,0,"button",2),d.j41(2,"div",3),d.DNE(3,Tn,4,2,"ng-container",1)(4,nr,1,1,"div",4),d.k0s(),d.DNE(5,Dr,1,1,null,1)(6,ei,1,1,"storefront-button",5)(7,Un,1,1,"div",6)(8,_i,1,0,"button",7)(9,p,1,0,"button",8)),2&Pe&&(d.Y8G("ngIf",j.config.leftButton&&j.navigationAllowed),d.R7$(),d.Y8G("ngIf",!j.navigationAllowed),d.R7$(2),d.Y8G("ngIf",j.config.logo),d.R7$(),d.Y8G("ngIf",j.config.title),d.R7$(),d.Y8G("ngIf",j.config.content),d.R7$(),d.Y8G("ngIf",!j.domHelper.leanDom&&j.rightButton&&j.navigationAllowed),d.R7$(),d.Y8G("ngIf",j.domHelper.leanDom&&j.rightButton&&j.navigationAllowed),d.R7$(),d.Y8G("ngIf",!j.rightButton&&j.navigationAllowed),d.R7$(),d.Y8G("ngIf",!j.navigationAllowed))},dependencies:[S.bT,rt.M,Jr.Q,qr.U,Me.q],styles:["storefront-app-bar,.pxp-app-bar{display:var(--appBarDisplay);width:100%;justify-content:center;align-items:center;position:fixed;top:0;transition:all .15s ease;padding:var(--appBarPaddingVert) var(--appBarPaddingHoriz);z-index:var(--zIndexAppBar);height:var(--appBarHeight);background-color:var(--appBarColor);color:var(--appBarTextColor);--textColor: var(--appBarTextColor)}storefront-app-bar .logo,.pxp-app-bar .logo{background-repeat:no-repeat;background-position:top center;background-size:contain;height:100%;width:80%;max-width:300px}storefront-app-bar .app-bar-content,.pxp-app-bar .app-bar-content{position:relative;height:100%;width:auto;display:flex;flex-grow:1;flex-direction:column;align-items:center;justify-content:center;font-size:var(--appBarFontSize);transition:all .15s ease}storefront-app-bar button,storefront-app-bar storefront-button,storefront-app-bar .pxp-button,.pxp-app-bar button,.pxp-app-bar storefront-button,.pxp-app-bar .pxp-button{width:var(--appBarButtonWidth);height:100%;background-color:transparent}storefront-app-bar button.has-text,storefront-app-bar storefront-button.has-text,storefront-app-bar .pxp-button.has-text,.pxp-app-bar button.has-text,.pxp-app-bar storefront-button.has-text,.pxp-app-bar .pxp-button.has-text{width:auto}body.scrolled storefront-app-bar.scroll-hide,body.scrolled .pxp-app-bar.scroll-hide{transform:translateY(-100%)}\n"],encapsulation:2}),Ot})();const me=["class","pxp-app-bar"];function Re(Ue,Ot){if(1&Ue){const ut=d.RV6();d.j41(0,"button",11),d.bIt("click",function(){d.eBV(ut);const j=d.XpG(2);return d.Njj(j.onClickMenu())}),d.k0s()}}function ot(Ue,Ot){if(1&Ue){const ut=d.RV6();d.j41(0,"button",12),d.bIt("click",function(){d.eBV(ut);const j=d.XpG(2);return d.Njj(j.onClickBack())}),d.k0s()}}function Vt(Ue,Ot){if(1&Ue&&(d.qex(0),d.DNE(1,Re,1,0,"button",9)(2,ot,1,0,"button",10),d.bVm()),2&Ue){const ut=d.XpG();d.R7$(),d.Y8G("ngIf",!ut.showBackButton()),d.R7$(),d.Y8G("ngIf",ut.showBackButton())}}function $t(Ue,Ot){1&Ue&&d.nrm(0,"button",13)}function vn(Ue,Ot){if(1&Ue){const ut=d.RV6();d.qex(0),d.j41(1,"a",15),d.bIt("click",function(j){d.eBV(ut);const C=d.XpG(2);return d.Njj(C.onClickLogo(j))}),d.k0s(),d.bVm()}if(2&Ue){const ut=d.XpG(2);d.R7$(),d.Y8G("href",ut.anchorPath,d.B4B)}}function xn(Ue,Ot){if(1&Ue){const ut=d.RV6();d.j41(0,"div",16),d.bIt("click",function(j){d.eBV(ut);const C=d.XpG(2);return d.Njj(C.onClickLogo(j))}),d.k0s()}}function gr(Ue,Ot){if(1&Ue&&(d.qex(0),d.DNE(1,vn,2,1,"ng-container",14)(2,xn,1,0,"ng-template",null,0,d.C5r),d.bVm()),2&Ue){const ut=d.sdS(3),Pe=d.XpG();d.R7$(),d.Y8G("ngIf",Pe.anchorFeatureEnabled)("ngIfElse",ut)}}function tr(Ue,Ot){if(1&Ue&&d.nrm(0,"div",17),2&Ue){const ut=d.XpG();d.Y8G("storefrontTranslate",ut.getTitle())}}function wr(Ue,Ot){}function zr(Ue,Ot){if(1&Ue&&d.DNE(0,wr,0,0,"ng-template",18),2&Ue){const ut=d.XpG();d.Y8G("baseConfig",ut.config.content)}}function vo(Ue,Ot){if(1&Ue&&d.nrm(0,"storefront-button",19),2&Ue){const ut=d.XpG();d.Y8G("baseConfig",ut.rightButton)}}function $i(Ue,Ot){if(1&Ue&&d.nrm(0,"div",20),2&Ue){const ut=d.XpG();d.Y8G("baseConfig",ut.rightButton)}}function zo(Ue,Ot){1&Ue&&d.nrm(0,"button",21)}function ci(Ue,Ot){if(1&Ue){const ut=d.RV6();d.j41(0,"button",22),d.bIt("click",function(){d.eBV(ut);const j=d.XpG();return d.Njj(j.onClickClose())}),d.k0s()}}let qi=(()=>{var Ue;class Ot extends T{}return(Ue=Ot).\u0275fac=(()=>{let ut;return function(j){return(ut||(ut=d.xGo(Ue)))(j||Ue)}})(),Ue.\u0275cmp=d.VBU({type:Ue,selectors:[["div",8,"pxp-app-bar"]],standalone:!1,features:[d.Jv_([te.B]),d.Vt3],attrs:me,decls:10,vars:9,consts:[["noAnchorTemplate",""],[4,"ngIf"],["style","pointer-events: none",4,"ngIf"],[1,"app-bar-content"],["class","title",3,"storefrontTranslate",4,"ngIf"],[3,"baseConfig",4,"ngIf"],["class","pxp-button",3,"baseConfig",4,"ngIf"],["style","pointer-events: none; display: none",4,"ngIf"],["class","icon icon-close",3,"click",4,"ngIf"],["class","icon icon-menu",3,"click",4,"ngIf"],["class","icon icon-arrow-left",3,"click",4,"ngIf"],[1,"icon","icon-menu",3,"click"],[1,"icon","icon-arrow-left",3,"click"],[2,"pointer-events","none"],[4,"ngIf","ngIfElse"],[1,"logo",3,"click","href"],[1,"logo",3,"click"],[1,"title",3,"storefrontTranslate"],[3,"pxpDynamicComponent","baseConfig"],[3,"baseConfig"],[1,"pxp-button",3,"baseConfig"],[2,"pointer-events","none","display","none"],[1,"icon","icon-close",3,"click"]],template:function(Pe,j){1&Pe&&(d.DNE(0,Vt,3,2,"ng-container",1)(1,$t,1,0,"button",2),d.j41(2,"div",3),d.DNE(3,gr,4,2,"ng-container",1)(4,tr,1,1,"div",4),d.k0s(),d.DNE(5,zr,1,1,null,1)(6,vo,1,1,"storefront-button",5)(7,$i,1,1,"div",6)(8,zo,1,0,"button",7)(9,ci,1,0,"button",8)),2&Pe&&(d.Y8G("ngIf",j.config.leftButton&&j.navigationAllowed),d.R7$(),d.Y8G("ngIf",!j.navigationAllowed),d.R7$(2),d.Y8G("ngIf",j.config.logo),d.R7$(),d.Y8G("ngIf",j.config.title),d.R7$(),d.Y8G("ngIf",j.config.content),d.R7$(),d.Y8G("ngIf",!j.domHelper.leanDom&&j.rightButton&&j.navigationAllowed),d.R7$(),d.Y8G("ngIf",j.domHelper.leanDom&&j.rightButton&&j.navigationAllowed),d.R7$(),d.Y8G("ngIf",!j.rightButton&&j.navigationAllowed),d.R7$(),d.Y8G("ngIf",!j.navigationAllowed))},dependencies:[S.bT,rt.M,Jr.Q,qr.U,Me.q],styles:["storefront-app-bar,.pxp-app-bar{display:var(--appBarDisplay);width:100%;justify-content:center;align-items:center;position:fixed;top:0;transition:all .15s ease;padding:var(--appBarPaddingVert) var(--appBarPaddingHoriz);z-index:var(--zIndexAppBar);height:var(--appBarHeight);background-color:var(--appBarColor);color:var(--appBarTextColor);--textColor: var(--appBarTextColor)}storefront-app-bar .logo,.pxp-app-bar .logo{background-repeat:no-repeat;background-position:top center;background-size:contain;height:100%;width:80%;max-width:300px}storefront-app-bar .app-bar-content,.pxp-app-bar .app-bar-content{position:relative;height:100%;width:auto;display:flex;flex-grow:1;flex-direction:column;align-items:center;justify-content:center;font-size:var(--appBarFontSize);transition:all .15s ease}storefront-app-bar button,storefront-app-bar storefront-button,storefront-app-bar .pxp-button,.pxp-app-bar button,.pxp-app-bar storefront-button,.pxp-app-bar .pxp-button{width:var(--appBarButtonWidth);height:100%;background-color:transparent}storefront-app-bar button.has-text,storefront-app-bar storefront-button.has-text,storefront-app-bar .pxp-button.has-text,.pxp-app-bar button.has-text,.pxp-app-bar storefront-button.has-text,.pxp-app-bar .pxp-button.has-text{width:auto}body.scrolled storefront-app-bar.scroll-hide,body.scrolled .pxp-app-bar.scroll-hide{transform:translateY(-100%)}\n"],encapsulation:2}),Ot})();var Kn=c(2348),ss=c(4049);function ns(Ue,Ot){if(1&Ue){const ut=d.RV6();d.j41(0,"div",1),d.bIt("click",function(){const j=d.eBV(ut).$implicit,C=d.XpG();return d.Njj(C.onClickEntry(j))}),d.nrm(1,"span",2),d.k0s()}if(2&Ue){const ut=Ot.$implicit,Pe=d.XpG();d.AVh("active",Pe.isActive(ut)),d.R7$(),d.Y8G("storefrontTranslate",ut.text)}}let Ki=(()=>{var Ue;class Ot{get scrollBehavior(){return"scroll-".concat(this.config.scrollBehavior)}constructor(Pe,j,C,M,ne){this.router=Pe,this.eventActionService=j,this.store=C,this.contextService=M,this.viewService=ne}ngOnInit(){this.store.subscribe(this.contextService.viewContext$,Pe=>this.context=Pe)}ngOnChanges(Pe){this.config=(0,g.A)((0,g.A)({},Ci),this.config)}onClickEntry(Pe){const j=Pe;if(j.tap)this.trackOnClickEntryAsAction(j),this.eventActionService.processEventAction(j.tap,this);else{const C=Pe;this.trackOnClickEntryAsPathEntry(C);const M=this.isActive(C),ne=this.getQueryParams(C,M),Oe=this.getCommands(C);this.router.navigate(Oe,{queryParams:ne,replaceUrl:M})}}isActive(Pe){return!!Pe.path&&this.router.isActive(Pe.path,!1)}getId(){return this.config.id}getContext(){return this.context}getCommands(Pe){let j=[this.contextService.getBrand(),Pe.path];return this.contextService.getIsCustomerDomainUsed()&&(j=[Pe.path]),j}getQueryParams(Pe,j){const C=this.contextService.getParams();let M={};return M=j?C:{preview:C.preview,configURL:C.configURL},M=(0,g.A)((0,g.A)({},M),Pe.params),M}trackOnClickEntryAsAction(Pe){const C={action:(0,We.Dh)(Pe.tap.type)};this.dispatchTrackingAction("TAB_NAVIGATION_CLICKED",C)}trackOnClickEntryAsPathEntry(Pe){const C=(0,g.A)({target:(0,We.Dh)(Pe.path)},Pe.params);this.dispatchTrackingAction("TAB_NAVIGATION_CLICKED",C,this.viewService.getAbsoluteUrl(this.interpolatePath(Pe.path)))}dispatchTrackingAction(Pe,j,C){this.store.dispatch((0,ae.k4)({url:window.location.href,targetUrl:C,key:Pe,params:j}))}interpolatePath(Pe,j=this.context){let C=Pe?(0,ss.K)(Pe,j):"";const M=this.contextService.getIsCustomerDomainUsed()?"":"/".concat(this.contextService.getBrand()),ne=this.contextService.isPreview();return"".concat(M).concat(C.startsWith("/")?C:"/"+C).concat(ne?"?preview=true":"")}}return(Ue=Ot).\u0275fac=function(Pe){return new(Pe||Ue)(d.rXU(z.Ix),d.rXU(ii.G),d.rXU(te.B),d.rXU(G.V),d.rXU(Ge.z))},Ue.\u0275cmp=d.VBU({type:Ue,selectors:[["storefront-tab-navigation"]],hostVars:2,hostBindings:function(Pe,j){2&Pe&&d.HbH(j.scrollBehavior)},inputs:{config:"config"},standalone:!1,features:[d.Jv_([te.B]),d.OA$],decls:2,vars:1,consts:[["class","tab-navigation-entry",3,"active","click",4,"ngFor","ngForOf"],[1,"tab-navigation-entry",3,"click"],[3,"storefrontTranslate"]],template:function(Pe,j){1&Pe&&(d.j41(0,"div"),d.DNE(1,ns,2,3,"div",0),d.k0s()),2&Pe&&(d.R7$(),d.Y8G("ngForOf",j.config.entries))},dependencies:[S.Sq,rt.M],styles:["storefront-tab-navigation,.pxp-tab-navigation{width:100%;display:flex;flex-direction:row;height:var(--navigationHeight);transition:height .2s ease,transform .2s ease;background-color:var(--navigationBgColor);z-index:20}storefront-tab-navigation>div,.pxp-tab-navigation>div{width:100%;display:flex;max-width:640px;margin:0 auto;justify-content:center;padding:0 var(--gutter)}storefront-tab-navigation .tab-navigation-entry,.pxp-tab-navigation .tab-navigation-entry{height:100%;padding:0 var(--gutter);color:var(--navigationColor);flex-shrink:0;flex-grow:1;flex-basis:0;display:flex;align-items:center;justify-content:center}storefront-tab-navigation .tab-navigation-entry span,.pxp-tab-navigation .tab-navigation-entry span{display:block;white-space:nowrap}body.scrolled-down storefront-tab-navigation.scroll-hide,body.scrolled-down .pxp-tab-navigation.scroll-hide{transform:translateY(100%)}body.scrolled-down storefront-tab-navigation.scroll-shrink,body.scrolled-down .pxp-tab-navigation.scroll-shrink{height:var(--appBarShrinkHeight)}storefront-tab-navigation .active,.pxp-tab-navigation .active{color:var(--navigationActiveColor)}\n"],encapsulation:2}),Ot})();const Ci={id:null,scrollBehavior:Kn.K.HIDE,entries:[]},wo=["class","pxp-tab-navigation"];function as(Ue,Ot){if(1&Ue){const ut=d.RV6();d.j41(0,"div",1),d.bIt("click",function(){const j=d.eBV(ut).$implicit,C=d.XpG();return d.Njj(C.onClickEntry(j))}),d.nrm(1,"span",2),d.k0s()}if(2&Ue){const ut=Ot.$implicit,Pe=d.XpG();d.AVh("active",Pe.isActive(ut)),d.R7$(),d.Y8G("storefrontTranslate",ut.text)}}let Fo=(()=>{var Ue;class Ot extends Ki{}return(Ue=Ot).\u0275fac=(()=>{let ut;return function(j){return(ut||(ut=d.xGo(Ue)))(j||Ue)}})(),Ue.\u0275cmp=d.VBU({type:Ue,selectors:[["div",8,"pxp-tab-navigation"]],standalone:!1,features:[d.Jv_([te.B]),d.Vt3],attrs:wo,decls:2,vars:1,consts:[["class","tab-navigation-entry",3,"active","click",4,"ngFor","ngForOf"],[1,"tab-navigation-entry",3,"click"],[3,"storefrontTranslate"]],template:function(Pe,j){1&Pe&&(d.j41(0,"div"),d.DNE(1,as,2,3,"div",0),d.k0s()),2&Pe&&(d.R7$(),d.Y8G("ngForOf",j.config.entries))},dependencies:[S.Sq,rt.M],styles:["storefront-tab-navigation,.pxp-tab-navigation{width:100%;display:flex;flex-direction:row;height:var(--navigationHeight);transition:height .2s ease,transform .2s ease;background-color:var(--navigationBgColor);z-index:20}storefront-tab-navigation>div,.pxp-tab-navigation>div{width:100%;display:flex;max-width:640px;margin:0 auto;justify-content:center;padding:0 var(--gutter)}storefront-tab-navigation .tab-navigation-entry,.pxp-tab-navigation .tab-navigation-entry{height:100%;padding:0 var(--gutter);color:var(--navigationColor);flex-shrink:0;flex-grow:1;flex-basis:0;display:flex;align-items:center;justify-content:center}storefront-tab-navigation .tab-navigation-entry span,.pxp-tab-navigation .tab-navigation-entry span{display:block;white-space:nowrap}body.scrolled-down storefront-tab-navigation.scroll-hide,body.scrolled-down .pxp-tab-navigation.scroll-hide{transform:translateY(100%)}body.scrolled-down storefront-tab-navigation.scroll-shrink,body.scrolled-down .pxp-tab-navigation.scroll-shrink{height:var(--appBarShrinkHeight)}storefront-tab-navigation .active,.pxp-tab-navigation .active{color:var(--navigationActiveColor)}\n"],encapsulation:2}),Ot})();const Io=["class","pxp-side-menu"];function lo(Ue,Ot){}function Qo(Ue,Ot){1&Ue&&d.DNE(0,lo,0,0,"ng-template",6),2&Ue&&d.Y8G("baseConfig",Ot.$implicit)("lazy",!1)}let To=(()=>{var Ue;class Ot extends Vi{}return(Ue=Ot).\u0275fac=(()=>{let ut;return function(j){return(ut||(ut=d.xGo(Ue)))(j||Ue)}})(),Ue.\u0275cmp=d.VBU({type:Ue,selectors:[["div",8,"pxp-side-menu"]],standalone:!1,features:[d.Vt3],attrs:Io,decls:6,vars:2,consts:[[1,"side-menu-backdrop",3,"click"],[1,"side-menu",3,"click"],[1,"side-menu-header"],[1,"icon","icon-close",3,"click"],[1,"side-menu-content"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"pxpDynamicComponent","baseConfig","lazy"]],template:function(Pe,j){1&Pe&&(d.j41(0,"div",0),d.bIt("click",function(){return j.close()}),d.k0s(),d.j41(1,"nav",1),d.bIt("click",function(M){return M.stopPropagation()}),d.j41(2,"div",2)(3,"button",3),d.bIt("click",function(){return j.close()}),d.k0s()(),d.j41(4,"div",4),d.DNE(5,Qo,1,2,null,5),d.k0s()()),2&Pe&&(d.R7$(5),d.Y8G("ngForOf",j.children)("ngForTrackBy",j.trackByElement))},dependencies:[S.Sq,Me.q],styles:["storefront-side-menu .side-menu,.pxp-side-menu .side-menu{position:fixed;z-index:1001;top:0;left:0;height:100%;width:var(--sideMenuWidth, min(90vw, 350px));overflow-x:hidden;transform:translate(-100%);background-color:var(--sideMenuBackground, var(--backgroundColor));transition:transform var(--sideMenuTransitionTime, .3s);display:flex;flex-direction:column;padding:var(--gutter);gap:var(--gutter)}storefront-side-menu .side-menu>.side-menu-header,.pxp-side-menu .side-menu>.side-menu-header{width:100%;display:flex}.side-left storefront-side-menu .side-menu>.side-menu-header,.side-left .pxp-side-menu .side-menu>.side-menu-header{justify-content:end}storefront-side-menu .side-menu-backdrop,.pxp-side-menu .side-menu-backdrop{position:fixed;z-index:1000;top:0;left:0;width:100%;height:100%;background-color:#000000b3;opacity:0;transition:opacity var(--sideMenuTransitionTime, .3s);pointer-events:none}.state-open .side-menu{transform:translate(0)}.state-open .side-menu-backdrop{opacity:1;pointer-events:auto}\n"],encapsulation:2}),Ot})();const _o=["class","pxp-root"];function ls(Ue,Ot){if(1&Ue&&d.nrm(0,"div",3),2&Ue){const ut=d.XpG(2);d.Y8G("config",ut.appBarConfig)}}function Ri(Ue,Ot){if(1&Ue&&d.nrm(0,"storefront-app-bar",4),2&Ue){const ut=d.XpG(2);d.Y8G("config",ut.appBarConfig)}}function gs(Ue,Ot){if(1&Ue&&d.DNE(0,ls,1,1,"div",3)(1,Ri,1,1,"storefront-app-bar",4),2&Ue){const ut=d.XpG();d.vxM(ut.domHelper.leanDom?0:1)}}function Cs(Ue,Ot){1&Ue&&d.nrm(0,"div",5)}function Yo(Ue,Ot){1&Ue&&d.nrm(0,"storefront-side-menu")}function ms(Ue,Ot){if(1&Ue&&d.DNE(0,Cs,1,0,"div",5)(1,Yo,1,0,"storefront-side-menu"),2&Ue){const ut=d.XpG();d.vxM(ut.domHelper.leanDom?0:1)}}function aa(Ue,Ot){1&Ue&&d.nrm(0,"router-outlet")}function bs(Ue,Ot){if(1&Ue&&d.nrm(0,"div",6),2&Ue){const ut=d.XpG(2);d.Y8G("config",ut.navigationConfig)}}function Do(Ue,Ot){if(1&Ue&&d.nrm(0,"storefront-tab-navigation",4),2&Ue){const ut=d.XpG(2);d.Y8G("config",ut.navigationConfig)}}function Ys(Ue,Ot){if(1&Ue&&d.DNE(0,bs,1,1,"div",6)(1,Do,1,1,"storefront-tab-navigation",4),2&Ue){const ut=d.XpG();d.vxM(ut.domHelper.leanDom?0:1)}}let Gr=(()=>{var Ue;class Ot extends V.Z{}return(Ue=Ot).\u0275fac=(()=>{let ut;return function(j){return(ut||(ut=d.xGo(Ue)))(j||Ue)}})(),Ue.\u0275cmp=d.VBU({type:Ue,selectors:[["div",8,"pxp-root"]],standalone:!1,features:[d.Jv_([te.B]),d.Vt3],attrs:_o,decls:7,vars:4,consts:[["name","modal"],["name","presenter"],[1,"bottom-sticky-elements"],[1,"pxp-app-bar",3,"config"],[3,"config"],[1,"pxp-side-menu"],[1,"pxp-tab-navigation",3,"config"]],template:function(Pe,j){1&Pe&&(d.DNE(0,gs,2,1)(1,ms,2,1)(2,aa,1,0,"router-outlet"),d.nrm(3,"router-outlet",0)(4,"router-outlet",1),d.j41(5,"div",2),d.DNE(6,Ys,2,1),d.k0s()),2&Pe&&(d.vxM(!j.nativeAppBar&&j.appBarConfig?0:-1),d.R7$(),d.vxM(j.hasNoAppAndNoCustomSideMenuSignal()?1:-1),d.R7$(),d.vxM(j.showView?2:-1),d.R7$(4),d.vxM(j.navigationConfig?6:-1))},dependencies:[z.n3,T,qi,Ki,Fo,Vi,To],styles:[".bottom-sticky-elements[_ngcontent-%COMP%]{bottom:0;left:0;right:0;position:fixed;z-index:9}"]}),Ot})();const Fi=(0,d.zw6)("PurpleEnvironment"),uo=(0,d.zw6)("BuildInfo"),Fs=(0,d.zw6)("APP_DATA"),Ss=(0,d.zw6)("PXP_CONFIG_KEY");let ro=(()=>{var Ue;class Ot{constructor(Pe){this.injector=Pe,qn.q.injector=this.injector}ngDoBootstrap(Pe){const C=this.injector.get(Be.S).leanDom?Gr:V.Z;Pe.bootstrap(C)}}return(Ue=Ot).\u0275fac=function(Pe){return new(Pe||Ue)(d.KVO(d.zZn))},Ue.\u0275mod=d.$C({type:Ue}),Ue.\u0275inj=d.G2t({providers:[{provide:d.sZ2,useValue:"pxp"},(0,f.$x)((0,f.dE)()),(0,R.$R)(),te.B,{provide:U.$E,useValue:{animation:{enterDuration:200}}},Ve.l,{provide:We.GZ,useFactory:ut=>ut.location,deps:[S.qQ]},{provide:un.s,useFactory:(ut,Pe,j)=>(0,S.Vy)(j)?new un.A(ut):new un.s(ut,Pe),deps:[z.Ix,De.d,d.Agw]},(0,d.phd)((0,s.A)(function*(){const Ue=(0,d.WQX)(S.qQ),Ot=(0,d.WQX)(d.Agw),ut=(0,d.WQX)(We.r6),Pe=(0,d.WQX)(d.pJN),j=(0,d.WQX)(We.fj);let C;if(!(0,d.naY)()&&!ut.isApp&&!Ue.location.href.includes("debug=true")&&!Ue.location.href.includes("preview=true")&&(console.debug=console.log=()=>{}),Pe.hasKey(uo))C=Pe.get(uo,{});else if((0,S.Vy)(Ot))Pe.set(uo,ut.buildInfo);else{const M=0!==j.host.indexOf("http")?"http://":"",ne=j.host.lastIndexOf("/")!==j.host.length-1?"/":"";try{let Oe;Oe=ut.isApp?"./buildInfo.json":"".concat(M).concat(j.host).concat(ne,"buildInfo.json"),C=yield(0,_e.hI)(Oe),Pe.set(uo,C)}catch(Oe){console.error("Error loading build info",Oe)}}if(C&&!(0,S.Vy)(Ot)){let M="Purple Experience | (c) Purple DS - Sprylab\n====================================\n";"object"==typeof C?(M+="Version ".concat(C.packageVersion," | Commit @").concat(C.commit," on ").concat(C.branch,"\n"),M+="Built on ".concat(C.buildDate,", commit from ").concat(C.commitDate)):M+="missing build infos",console.log(M),window.prebootData={apps:["empty"]}}})),(0,d.phd)(()=>{(0,d.WQX)(zn.d).preloadVisibleImages()}),{provide:We.r6,useFactory:(ut,Pe,j)=>{if((0,S.UE)(Pe))return ut.hasKey(Fi)?ut.get(Fi,{}):{CATALOG_API_BASE_URL:"",KIOSK_BASE_URL:"",MANAGER_BASE_URL:"",isApp:!0};{let C;try{C=j.get(We.lz)}catch(M){}return C?ut.set(Fi,C):console.error("server should provide PURPLE_ENV_BACKEND"),C}},deps:[d.pJN,d.Agw,d.zZn]},{provide:We.fj,useFactory:(ut,Pe,j)=>{if((0,S.UE)(Pe))return null!=ut&&ut.hasKey(Fs)?ut.get(Fs,{}):{host:"",preview:null,customDomain:!0,appWebConfig:null};{let C;try{C=j.get(We.l2)}catch(M){}return C?ut.set(Fs,C):console.error("server should provide APP_DATA_BACKEND"),C}},deps:[d.pJN,d.Agw,d.zZn]},{provide:We.Wp,useFactory:(ut,Pe,j)=>{if((0,S.UE)(Pe))return ut.hasKey(Ss)?ut.get(Ss,{}):j.get(We.A0);{const C=j.get(We.wx);return ut.set(Ss,C),C}},deps:[d.pJN,d.Agw,d.zZn]},{provide:S.kB,useValue:"/"},{provide:Bn.y,useFactory:(ut,Pe,j,C,M,ne,Oe)=>{var Fe;return(0,S.UE)(j)&&ut.hasKey(Mt.tZ)?(null===(Fe=ut.get(Mt.tZ,{}))||void 0===Fe||null===(Fe=Fe.ads)||void 0===Fe?void 0:Fe.traffective)?new Bn.y(Pe,j,C,M,ne,Oe):null:new Bn.y(Pe,j,C,M,ne,Oe)},deps:[d.pJN,G.V,d.Agw,Sn.e,We.Wp,z.Ix,d.SKi]}],imports:[q.wb,Xt,Q.t,ie.ElementModule,$n,ee,he.P,K.h,nn.E,de.md.forRoot({[sn.iL]:(0,sn.HN)(sn.sb),[ki.$]:ki.F,[Pi.E]:Pi.F}),ve.Vm.forRoot([sn.L2,Ai,_t,Yr]),ue]}),Ot})();d.wjB(V.Z,function(){return[z.n3,T,qi,Ki,Fo,Vi,To]},[]);var Is=c(4088);window.storefrontHooks=window.storefrontHooks||{},Is.c.production&&(0,d.SmG)();const vs=function(){var Ue=(0,s.A)(function*(){let Ot={};if(window.purple){const ut=new URL(location.href).searchParams,Pe="assets/experience.config.json",j="resource://dynamic/storefront/",C=ut.get("configURL"),M="".concat(null!=C?C:j).concat(Pe);try{Ot=yield(0,_e.hI)(M)}catch(Oe){console.warn("failed to load '".concat(M,"'"),Oe)}const ne=ut.get("leanDom");ne&&(Ot.purple=(0,g.A)((0,g.A)({},Ot.purple),{},{leanDom:"true"===ne}))}return Ot});return function(){return Ue.apply(this,arguments)}}();(function(){var Ue=(0,s.A)(function*(){const Ot=yield vs(),ut=[{provide:We.A0,useValue:Ot}];yield f.sG(ut).bootstrapModule(ro)});return function(){return Ue.apply(this,arguments)}})()().catch(Ue=>console.error(Ue))},4404:function(se,E,c){"use strict";var g=this&&this.__createBinding||(Object.create?function(f,d,S,R){void 0===R&&(R=S);var U=Object.getOwnPropertyDescriptor(d,S);(!U||("get"in U?!d.__esModule:U.writable||U.configurable))&&(U={enumerable:!0,get:function(){return d[S]}}),Object.defineProperty(f,R,U)}:function(f,d,S,R){void 0===R&&(R=S),f[R]=d[S]}),s=this&&this.__exportStar||function(f,d){for(var S in f)"default"!==S&&!Object.prototype.hasOwnProperty.call(d,S)&&g(d,f,S)};Object.defineProperty(E,"__esModule",{value:!0}),s(c(970),E)},8589:function(se,E,c){"use strict";var g=this&&this.__createBinding||(Object.create?function(f,d,S,R){void 0===R&&(R=S);var U=Object.getOwnPropertyDescriptor(d,S);(!U||("get"in U?!d.__esModule:U.writable||U.configurable))&&(U={enumerable:!0,get:function(){return d[S]}}),Object.defineProperty(f,R,U)}:function(f,d,S,R){void 0===R&&(R=S),f[R]=d[S]}),s=this&&this.__exportStar||function(f,d){for(var S in f)"default"!==S&&!Object.prototype.hasOwnProperty.call(d,S)&&g(d,f,S)};Object.defineProperty(E,"__esModule",{value:!0}),s(c(9100),E)},9100:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.AssignLocalPurchasesMode=void 0;var c=function(g){return g.UNASSIGNED="UNASSIGNED",g.REASSIGN="REASSIGN",g.ASSIGN="ASSIGN",g}(c||(E.AssignLocalPurchasesMode=c={}))},6794:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},3155:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.APP_STATE_TYPE=void 0;var c=function(g){return g.STARTED="STARTED",g.RESUMED="RESUMED",g.PAUSED="PAUSED",g.STOPPED="STOPPED",g}(c||(E.APP_STATE_TYPE=c={}))},2779:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},7146:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},8397:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.AppSubscriptionAdditionalBackIssueUnlocksType=void 0;var c=function(g){return g.DAY="DAY",g.WEEK="WEEK",g.MONTH="MONTH",g.YEAR="YEAR",g}(c||(E.AppSubscriptionAdditionalBackIssueUnlocksType=c={}))},7733:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.AppSubscriptionType=E.AppSubscriptionDuration=void 0;var c=function(s){return s.SEVEN_DAYS="SEVEN_DAYS",s.TWO_WEEKS="TWO_WEEKS",s.ONE_MONTH="ONE_MONTH",s.TWO_MONTHS="TWO_MONTHS",s.THREE_MONTHS="THREE_MONTHS",s.SIX_MONTHS="SIX_MONTHS",s.ONE_YEAR="ONE_YEAR",s}(c||(E.AppSubscriptionDuration=c={})),g=function(s){return s.FREE="FREE",s.AUTORENEWABLE="AUTORENEWABLE",s.NONAUTORENEWABLE="NONAUTORENEWABLE",s}(g||(E.AppSubscriptionType=g={}))},8475:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},1462:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},9546:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},3482:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},2247:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.ContentResourceType=E.CatalogBundleType=E.CatalogContentType=E.Access=void 0;var c=function(d){return d.FREE="FREE",d.HIDDEN="HIDDEN",d.PURCHASABLE="PURCHASABLE",d}(c||(E.Access=c={})),g=function(d){return d.ISSUE="ISSUE",d.POST="POST",d.BUNDLE="BUNDLE",d}(g||(E.CatalogContentType=g={})),s=function(d){return d.ISSUE="ISSUE",d.DOSSIER="DOSSIER",d}(s||(E.CatalogBundleType=s={})),f=function(d){return d.ASSET="ASSET",d.CONTENT_BUNDLE="CONTENT_BUNDLE",d}(f||(E.ContentResourceType=f={}))},3257:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},3825:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.IssueType=E.PurchaseOption=void 0;var c=function(s){return s.APP_STORE_PURCHASE="APP_STORE_PURCHASE",s.APP_STORE_SUBSCRIPTION="APP_STORE_SUBSCRIPTION",s.ENTITLEMENT="ENTITLEMENT",s.SUBSCRIPTION_CODE="SUBSCRIPTION_CODE",s.TRIAL="TRIAL",s.PUBLICATION_PRODUCT="PUBLICATION_PRODUCT",s}(c||(E.PurchaseOption=c={})),g=function(s){return s.ARTICLE="ARTICLE",s.ISSUE="ISSUE",s}(g||(E.IssueType=g={}))},3535:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},2191:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},6214:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},4190:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.PublicationType=void 0;var c=function(g){return g.KIOSK="KIOSK",g.CHANNEL="CHANNEL",g}(c||(E.PublicationType=c={}))},995:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},1621:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},7605:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},4809:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},2740:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.SortDirection=void 0;var c=function(g){return g.ASC="ASC",g.DESC="DESC",g}(c||(E.SortDirection=c={}))},9722:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},5425:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},6396:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},6242:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},917:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},1801:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},8147:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},9381:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},2213:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},4060:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.ERROR_CODE=void 0;var c=function(g){return g.ACCESS_DENIED="ACCESS_DENIED",g.ALREADY_LOGGED_IN="ALREADY_LOGGED_IN",g.ALREADY_OWNED="ALREADY_OWNED",g.CANCELLED="CANCELLED",g.CONFIGURATION_ERROR="CONFIGURATION_ERROR",g.DUPLICATE_CODE="DUPLICATE_CODE",g.ERROR_ILLEGAL_ARGUMENTS="ERROR_ILLEGAL_ARGUMENTS",g.ILLEGAL_ARGUMENTS="ILLEGAL_ARGUMENTS",g.INSTALLATION_LIMIT_EXCEEDED="INSTALLATION_LIMIT_EXCEEDED",g.INSUFFICIENT_SPACE="INSUFFICIENT_SPACE",g.INVALID_CODE="INVALID_CODE",g.INVALID_CREDENTIALS="INVALID_CREDENTIALS",g.NETWORK="NETWORK",g.NO_ISSUES_FOUND="NO_ISSUES_FOUND",g.NOT_AVAILABLE="NOT_AVAILABLE",g.NOT_FOUND="NOT_FOUND",g.ISSUE_NOT_FOUND="ISSUE_NOT_FOUND",g.RESOURCE_NOT_FOUND="RESOURCE_NOT_FOUND",g.NOT_HANDLED="NOT_HANDLED",g.NOTHING_LOADED="NOTHING_LOADED",g.NOT_LOGGED_IN="NOT_LOGGED_IN",g.PAYMENT_REQUIRED="PAYMENT_REQUIRED",g.UNKNOWN="UNKNOWN",g.UNKNOWN_CODE="UNKNOWN_CODE",g.UNKNOWN_OFFER="UNKNOWN_OFFER",g.UNKNOWN_PRODUCT="UNKNOWN_PRODUCT",g.UNKNOWN_VENDOR="UNKNOWN_VENDOR",g.USER_DEACTIVATED="USER_DEACTIVATED",g.VALIDATION_FAILED="VALIDATION_FAILED",g}(c||(E.ERROR_CODE=c={}))},8227:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.ListOperation=E.IntOperation=E.DateOperation=E.StringOperation=void 0;var c=function(d){return d.EQUAL="EQUAL",d.CONTAINS="CONTAINS",d.STARTS_WITH="STARTS_WITH",d.GREATER_THAN="GREATER_THAN",d.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",d.LESS_THAN="LESS_THAN",d.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",d.REGEX="REGEX",d}(c||(E.StringOperation=c={})),g=function(d){return d.GREATER_THAN="GREATER_THAN",d.LESS_THAN="LESS_THAN",d.EQUAL="EQUAL",d}(g||(E.DateOperation=g={})),s=function(d){return d.GREATER_THAN="GREATER_THAN",d.LESS_THAN="LESS_THAN",d.EQUAL="EQUAL",d}(s||(E.IntOperation=s={})),f=function(d){return d.CONTAINS="CONTAINS",d.CONTAINS_ONLY="CONTAINS_ONLY",d}(f||(E.ListOperation=f={}))},4369:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},9134:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},5767:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},1847:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},8009:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},8994:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},5902:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},1534:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},9278:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},2387:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},1524:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},5725:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},1872:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},2093:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},1680:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},6786:function(se,E,c){"use strict";var g=this&&this.__createBinding||(Object.create?function(f,d,S,R){void 0===R&&(R=S);var U=Object.getOwnPropertyDescriptor(d,S);(!U||("get"in U?!d.__esModule:U.writable||U.configurable))&&(U={enumerable:!0,get:function(){return d[S]}}),Object.defineProperty(f,R,U)}:function(f,d,S,R){void 0===R&&(R=S),f[R]=d[S]}),s=this&&this.__exportStar||function(f,d){for(var S in f)"default"!==S&&!Object.prototype.hasOwnProperty.call(d,S)&&g(d,f,S)};Object.defineProperty(E,"__esModule",{value:!0}),s(c(7146),E),s(c(7733),E),s(c(8397),E),s(c(8475),E),s(c(1462),E),s(c(9546),E),s(c(3482),E),s(c(2247),E),s(c(3825),E),s(c(3257),E),s(c(3535),E),s(c(2191),E),s(c(6214),E),s(c(4190),E),s(c(995),E),s(c(1621),E),s(c(7605),E),s(c(4809),E),s(c(2740),E),s(c(9722),E),s(c(5425),E),s(c(6396),E),s(c(6242),E),s(c(917),E),s(c(1801),E),s(c(8147),E),s(c(9381),E),s(c(2213),E),s(c(4060),E),s(c(8227),E),s(c(4369),E),s(c(9134),E),s(c(5767),E),s(c(1847),E),s(c(8009),E),s(c(8994),E),s(c(5902),E),s(c(1534),E),s(c(9278),E),s(c(2387),E),s(c(1524),E),s(c(5725),E),s(c(1872),E),s(c(2093),E),s(c(1680),E),s(c(6944),E),s(c(1426),E),s(c(3631),E),s(c(1176),E),s(c(8031),E),s(c(7824),E),s(c(726),E),s(c(2658),E),s(c(9269),E),s(c(6587),E),s(c(1378),E),s(c(7585),E),s(c(629),E),s(c(2260),E),s(c(9755),E),s(c(2893),E),s(c(3544),E),s(c(2850),E),s(c(7475),E),s(c(6052),E),s(c(5105),E),s(c(1876),E),s(c(1311),E),s(c(9580),E),s(c(1290),E),s(c(424),E),s(c(1740),E),s(c(2833),E),s(c(8621),E),s(c(6251),E),s(c(8159),E),s(c(1798),E),s(c(8844),E),s(c(3979),E),s(c(7822),E),s(c(2015),E),s(c(2644),E),s(c(1082),E)},6944:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},1426:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},3631:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},1176:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},8031:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},7824:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},726:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},2658:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},6587:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},9269:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},1378:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},7585:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},629:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},2260:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},9755:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},2893:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},7475:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},3544:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},2850:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.PublicationProductType=void 0;var c=function(g){return g.BACK_ISSUE_COMPLETION="BACK_ISSUE_COMPLETION",g.REPEATABLE_ISSUE_PURCHASE="REPEATABLE_ISSUE_PURCHASE",g}(c||(E.PublicationProductType=c={}))},6052:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},5105:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},1876:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},1311:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.SystemConsentStatus=void 0;var c=function(g){return g.GRANTED="GRANTED",g.DENIED="DENIED",g.UNDETERMINED="UNDETERMINED",g}(c||(E.SystemConsentStatus=c={}))},9580:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},1290:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},424:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},1740:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},2833:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.SearchResultSortCriteria=void 0;var c=function(g){return g.RELEVANCE="RELEVANCE",g.PUB_DATE_DESC="PUB_DATE_DESC",g}(c||(E.SearchResultSortCriteria=c={}))},8621:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.SearchField=void 0;var c=function(g){return g.CONTENT="CONTENT",g.CONTENT_NAME="CONTENT_NAME",g.CONTENT_DESCRIPTION="CONTENT_DESCRIPTION",g.CUSTOM_TERMS="CUSTOM_TERMS",g}(c||(E.SearchField=c={}))},6251:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},8159:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},1798:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.StartDownloadError=void 0;var c=function(g){return g.NETWORK="NETWORK",g.INSUFFICIENT_SPACE="INSUFFICIENT_SPACE",g.PAYMENT_REQUIRED="PAYMENT_REQUIRED",g.NOT_FOUND="NOT_FOUND",g.UNKNOWN="UNKNOWN",g}(c||(E.StartDownloadError=c={}))},8844:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},3979:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},7822:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},2015:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},2644:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},1082:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},528:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},8960:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.CONNECTION_TYPE=E.CONNECTION_STATE=void 0;var c=function(s){return s.ONLINE="ONLINE",s.OFFLINE="OFFLINE",s}(c||(E.CONNECTION_STATE=c={})),g=function(s){return s.TYPE_3G="TYPE_3G",s.TYPE_WLAN="TYPE_WLAN",s}(g||(E.CONNECTION_TYPE=g={}))},4019:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},5419:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.ContentStateError=E.ContentInstallState=void 0;var c=function(s){return s.NOT_INSTALLED="NOT_INSTALLED",s.INCOMPLETE="INCOMPLETE",s.COMPLETE="COMPLETE",s}(c||(E.ContentInstallState=c={})),g=function(s){return s.NETWORK="NETWORK",s.INSUFFICIENT_SPACE="INSUFFICIENT_SPACE",s.PAYMENT_REQUIRED="PAYMENT_REQUIRED",s.NOT_FOUND="NOT_FOUND",s.UNKNOWN="UNKNOWN",s}(g||(E.ContentStateError=g={}))},1892:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},9047:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},3697:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},5881:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},5860:function(se,E,c){"use strict";var g=this&&this.__createBinding||(Object.create?function(f,d,S,R){void 0===R&&(R=S);var U=Object.getOwnPropertyDescriptor(d,S);(!U||("get"in U?!d.__esModule:U.writable||U.configurable))&&(U={enumerable:!0,get:function(){return d[S]}}),Object.defineProperty(f,R,U)}:function(f,d,S,R){void 0===R&&(R=S),f[R]=d[S]}),s=this&&this.__exportStar||function(f,d){for(var S in f)"default"!==S&&!Object.prototype.hasOwnProperty.call(d,S)&&g(d,f,S)};Object.defineProperty(E,"__esModule",{value:!0}),s(c(5419),E),s(c(4019),E),s(c(1892),E),s(c(9047),E),s(c(3697),E),s(c(5881),E),s(c(6281),E),s(c(3610),E),s(c(3426),E),s(c(1327),E),s(c(4364),E),s(c(1015),E)},6281:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},3610:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},3426:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},1327:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.ElementAlignment=void 0;var c=function(g){return g.TOP_LEFT="TOP_LEFT",g.TOP_CENTER="TOP_CENTER",g.TOP_RIGHT="TOP_RIGHT",g.CENTER_LEFT="CENTER_LEFT",g.CENTER_CENTER="CENTER_CENTER",g.CENTER_RIGHT="CENTER_RIGHT",g.BOTTOM_LEFT="BOTTOM_LEFT",g.BOTTOM_CENTER="BOTTOM_CENTER",g.BOTTOM_RIGHT="BOTTOM_RIGHT",g}(c||(E.ElementAlignment=c={}))},4364:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},1015:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},6583:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.DisplayMode=E.DISPLAY_MODE=void 0;var c=function(s){return s.EMBEDDED="embedded",s.MODAL="modal",s}(c||(E.DISPLAY_MODE=c={})),g=function(s){return s.EMBEDDED="EMBEDDED",s.MODAL="MODAL",s}(g||(E.DisplayMode=g={}))},8715:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.ENTITLEMENT_MODE=void 0;var c=function(g){return g.ENTITLEMENT="entitlement",g.OAUTH="oauth",g.NONE="none",g}(c||(E.ENTITLEMENT_MODE=c={}))},970:function(se,E,c){"use strict";var g=this&&this.__createBinding||(Object.create?function(f,d,S,R){void 0===R&&(R=S);var U=Object.getOwnPropertyDescriptor(d,S);(!U||("get"in U?!d.__esModule:U.writable||U.configurable))&&(U={enumerable:!0,get:function(){return d[S]}}),Object.defineProperty(f,R,U)}:function(f,d,S,R){void 0===R&&(R=S),f[R]=d[S]}),s=this&&this.__exportStar||function(f,d){for(var S in f)"default"!==S&&!Object.prototype.hasOwnProperty.call(d,S)&&g(d,f,S)};Object.defineProperty(E,"__esModule",{value:!0}),s(c(6794),E),s(c(3155),E),s(c(528),E),s(c(8960),E),s(c(6583),E),s(c(8715),E),s(c(3595),E),s(c(1615),E),s(c(6879),E),s(c(9252),E),s(c(7899),E),s(c(2241),E),s(c(7096),E),s(c(9526),E),s(c(3520),E),s(c(4957),E),s(c(987),E),s(c(6448),E),s(c(581),E),s(c(3326),E),s(c(653),E),s(c(9874),E),s(c(9943),E),s(c(3727),E),s(c(5834),E),s(c(2779),E),s(c(3370),E),s(c(6786),E),s(c(5860),E),s(c(8548),E),s(c(9276),E),s(c(8589),E)},1615:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},6879:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.ISSUE_STATE=void 0;var c=function(g){return g.PURCHASABLE="PURCHASABLE",g.DOWNLOAD_PAUSED="DOWNLOAD_PAUSED",g.DOWNLOADING="DOWNLOADING",g.AVAILABLE="AVAILABLE",g.INSTALLING="INSTALLING",g.UPDATE="UPDATE",g.INSTALLED="INSTALLED",g.LOCKED="LOCKED",g.COMING_SOON="COMING_SOON",g.INDEXING="INDEXING",g.PARTIALLY_INSTALLED_DOWNLOADING="PARTIALLY_INSTALLED_DOWNLOADING",g.PARTIALLY_INSTALLED_PAUSED="PARTIALLY_INSTALLED_PAUSED",g}(c||(E.ISSUE_STATE=c={}))},3595:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},9252:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},7899:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.MEDIA_PLAYBACK_STATE=void 0;var c=function(g){return g.NONE="NONE",g.ERROR="ERROR",g.LOADING="LOADING",g.READY="READY",g.PLAYING="PLAYING",g}(c||(E.MEDIA_PLAYBACK_STATE=c={}))},2241:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.Platform=void 0;var c=function(g){return g.ANDROID="android",g.IOS="ios",g}(c||(E.Platform=c={}))},7096:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.PUBLICATION_TYPE=void 0;var c=function(g){return g.KIOSK="KIOSK",g.CHANNEL="CHANNEL",g}(c||(E.PUBLICATION_TYPE=c={}))},987:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},3520:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},4957:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},6448:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.OpenFileMode=E.OpenFileTarget=void 0;var c=function(s){return s.INTERNAL="INTERNAL",s.EXTERNAL="EXTERNAL",s}(c||(E.OpenFileTarget=c={})),g=function(s){return s.MODAL="MODAL",s.EMBEDDED="EMBEDDED",s}(g||(E.OpenFileMode=g={}))},581:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},3326:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.METADATA_KEY=void 0;var c=function(g){return g.APP_ID="app_id",g.APP_VERSION="app_version",g.BUNDLE_ID="bundle_id",g.DEEPLINK_SCHEME="deeplink_scheme",g.PREVIEW_APP="preview_app",g.DEVICE_ID="device_id",g.DEVICE_MODEL="device_model",g.DEVICE_OS="device_os",g.PLATFORM="platform",g.LOCALE="locale",g.MANAGER_BASE_URL="manager_base_url",g.PUSH_REGISTRATION_TOKEN="push_registration_token",g.ENTITLEMENT_LOGIN="entitlement_login",g.ENTITLEMENT_TOKEN="entitlement_token",g.ENTITLEMENT_FORCED_LOGIN_ENABLED="entitlement_forced_login_enabled",g.ENTITLEMENT_LOGIN_MODE="entitlement_login_mode",g.ENTITLEMENT_MODE="entitlement_mode",g.ISSUE_ID="issue_id",g.ISSUE_NAME="issue_name",g.PUBLICATION_ID="publication_id",g.PUBLICATION_NAME="publication_name",g.PAGE_ID="page_id",g.PAGE_ALIAS="page_alias",g.PAGE_TITLE="page_title",g.PAGE_INDEX="page_index",g.PAGE_FILENAME="page_filename",g.PURPLE_VERSION="purple_version",g.ONBOARDING_MODE="onboarding_mode",g}(c||(E.METADATA_KEY=c={}))},653:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},9874:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},9526:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},4674:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},9276:function(se,E,c){"use strict";var g=this&&this.__createBinding||(Object.create?function(f,d,S,R){void 0===R&&(R=S);var U=Object.getOwnPropertyDescriptor(d,S);(!U||("get"in U?!d.__esModule:U.writable||U.configurable))&&(U={enumerable:!0,get:function(){return d[S]}}),Object.defineProperty(f,R,U)}:function(f,d,S,R){void 0===R&&(R=S),f[R]=d[S]}),s=this&&this.__exportStar||function(f,d){for(var S in f)"default"!==S&&!Object.prototype.hasOwnProperty.call(d,S)&&g(d,f,S)};Object.defineProperty(E,"__esModule",{value:!0}),s(c(2640),E),s(c(4674),E),s(c(6414),E),s(c(7775),E),s(c(7239),E)},2640:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},6414:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},7775:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},7239:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.LAST_VISITED_PATH=void 0,E.LAST_VISITED_PATH="lastVisitedPath"},4267:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},9215:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},3975:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},9551:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},5688:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},4112:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},8548:function(se,E,c){"use strict";var g=this&&this.__createBinding||(Object.create?function(f,d,S,R){void 0===R&&(R=S);var U=Object.getOwnPropertyDescriptor(d,S);(!U||("get"in U?!d.__esModule:U.writable||U.configurable))&&(U={enumerable:!0,get:function(){return d[S]}}),Object.defineProperty(f,R,U)}:function(f,d,S,R){void 0===R&&(R=S),f[R]=d[S]}),s=this&&this.__exportStar||function(f,d){for(var S in f)"default"!==S&&!Object.prototype.hasOwnProperty.call(d,S)&&g(d,f,S)};Object.defineProperty(E,"__esModule",{value:!0}),s(c(4267),E),s(c(9215),E),s(c(3975),E),s(c(9551),E),s(c(5688),E),s(c(4112),E),s(c(7596),E),s(c(1571),E),s(c(6453),E),s(c(7385),E),s(c(9394),E),s(c(9596),E),s(c(4460),E),s(c(556),E),s(c(2922),E)},7596:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},1571:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},6453:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},7385:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},9394:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},9596:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},4460:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},556:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.ProrationMode=void 0;var c=function(g){return g.IMMEDIATE_WITH_TIME_PRORATION="IMMEDIATE_WITH_TIME_PRORATION",g.IMMEDIATE_AND_CHARGE_PRORATED_PRICE="IMMEDIATE_AND_CHARGE_PRORATED_PRICE",g.IMMEDIATE_WITHOUT_PRORATION="IMMEDIATE_WITHOUT_PRORATION",g.DEFERRED="DEFERRED",g}(c||(E.ProrationMode=c={}))},2922:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},9943:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.SUBSCRIPTION_STATE=void 0;var c=function(g){return g.NONE="NONE",g.PURCHASING="PURCHASING",g.VALIDATING="VALIDATING",g.PURCHASED="PURCHASED",g}(c||(E.SUBSCRIPTION_STATE=c={}))},3727:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},5834:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.UPDATE_STOREFRONT_ERROR_CODE=E.UPDATE_STOREFRONT_TYPE=void 0;var c=function(s){return s.PARTIAL="PARTIAL",s.FULL="FULL",s.LOGIN="LOGIN",s.LOGOUT="LOGOUT",s}(c||(E.UPDATE_STOREFRONT_TYPE=c={})),g=function(s){return s.OFFLINE="OFFLINE",s.UNKNOWN="UNKNOWN",s}(g||(E.UPDATE_STOREFRONT_ERROR_CODE=g={}))},3370:(se,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},7374:function(se){se.exports=function(){"use strict";var c=6e4,g=36e5,s="millisecond",f="second",d="minute",S="hour",R="day",U="week",q="month",z="quarter",ve="year",de="date",V="Invalid Date",Q=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,ie=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,K={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(le){var W=["th","st","nd","rd"],te=le%100;return"["+le+(W[(te-20)%10]||W[te]||W[0])+"]"}},ee=function(le,W,te){var ae=String(le);return!ae||ae.length>=W?le:""+Array(W+1-ae.length).join(te)+le},he={s:ee,z:function(le){var W=-le.utcOffset(),te=Math.abs(W),ae=Math.floor(te/60),_e=te%60;return(W<=0?"+":"-")+ee(ae,2,"0")+":"+ee(_e,2,"0")},m:function le(W,te){if(W.date()<te.date())return-le(te,W);var ae=12*(te.year()-W.year())+(te.month()-W.month()),_e=W.clone().add(ae,q),Le=te-_e<0,We=W.clone().add(ae+(Le?-1:1),q);return+(-(ae+(te-_e)/(Le?_e-We:We-_e))||0)},a:function(le){return le<0?Math.ceil(le)||0:Math.floor(le)},p:function(le){return{M:q,y:ve,w:U,d:R,D:de,h:S,m:d,s:f,ms:s,Q:z}[le]||String(le||"").toLowerCase().replace(/s$/,"")},u:function(le){return void 0===le}},Ae="en",ue={};ue[Ae]=K;var oe="$isDayjsObject",_=function(le){return le instanceof G||!(!le||!le[oe])},O=function le(W,te,ae){var _e;if(!W)return Ae;if("string"==typeof W){var Le=W.toLowerCase();ue[Le]&&(_e=Le),te&&(ue[Le]=te,_e=Le);var We=W.split("-");if(!_e&&We.length>1)return le(We[0])}else{var dt=W.name;ue[dt]=W,_e=dt}return!ae&&_e&&(Ae=_e),_e||!ae&&Ae},x=function(le,W){if(_(le))return le.clone();var te="object"==typeof W?W:{};return te.date=le,te.args=arguments,new G(te)},B=he;B.l=O,B.i=_,B.w=function(le,W){return x(le,{locale:W.$L,utc:W.$u,x:W.$x,$offset:W.$offset})};var G=function(){function le(te){this.$L=O(te.locale,null,!0),this.parse(te),this.$x=this.$x||te.x||{},this[oe]=!0}var W=le.prototype;return W.parse=function(te){this.$d=function(ae){var _e=ae.date,Le=ae.utc;if(null===_e)return new Date(NaN);if(B.u(_e))return new Date;if(_e instanceof Date)return new Date(_e);if("string"==typeof _e&&!/Z$/i.test(_e)){var We=_e.match(Q);if(We){var dt=We[2]-1||0,Ye=(We[7]||"0").substring(0,3);return Le?new Date(Date.UTC(We[1],dt,We[3]||1,We[4]||0,We[5]||0,We[6]||0,Ye)):new Date(We[1],dt,We[3]||1,We[4]||0,We[5]||0,We[6]||0,Ye)}}return new Date(_e)}(te),this.init()},W.init=function(){var te=this.$d;this.$y=te.getFullYear(),this.$M=te.getMonth(),this.$D=te.getDate(),this.$W=te.getDay(),this.$H=te.getHours(),this.$m=te.getMinutes(),this.$s=te.getSeconds(),this.$ms=te.getMilliseconds()},W.$utils=function(){return B},W.isValid=function(){return this.$d.toString()!==V},W.isSame=function(te,ae){var _e=x(te);return this.startOf(ae)<=_e&&_e<=this.endOf(ae)},W.isAfter=function(te,ae){return x(te)<this.startOf(ae)},W.isBefore=function(te,ae){return this.endOf(ae)<x(te)},W.$g=function(te,ae,_e){return B.u(te)?this[ae]:this.set(_e,te)},W.unix=function(){return Math.floor(this.valueOf()/1e3)},W.valueOf=function(){return this.$d.getTime()},W.startOf=function(te,ae){var _e=this,Le=!!B.u(ae)||ae,We=B.p(te),dt=function(F,Y){var P=B.w(_e.$u?Date.UTC(_e.$y,Y,F):new Date(_e.$y,Y,F),_e);return Le?P:P.endOf(R)},Ye=function(F,Y){return B.w(_e.toDate()[F].apply(_e.toDate("s"),(Le?[0,0,0,0]:[23,59,59,999]).slice(Y)),_e)},we=this.$W,ze=this.$M,Ke=this.$D,je="set"+(this.$u?"UTC":"");switch(We){case ve:return Le?dt(1,0):dt(31,11);case q:return Le?dt(1,ze):dt(0,ze+1);case U:var Ze=this.$locale().weekStart||0,k=(we<Ze?we+7:we)-Ze;return dt(Le?Ke-k:Ke+(6-k),ze);case R:case de:return Ye(je+"Hours",0);case S:return Ye(je+"Minutes",1);case d:return Ye(je+"Seconds",2);case f:return Ye(je+"Milliseconds",3);default:return this.clone()}},W.endOf=function(te){return this.startOf(te,!1)},W.$set=function(te,ae){var _e,Le=B.p(te),We="set"+(this.$u?"UTC":""),dt=(_e={},_e[R]=We+"Date",_e[de]=We+"Date",_e[q]=We+"Month",_e[ve]=We+"FullYear",_e[S]=We+"Hours",_e[d]=We+"Minutes",_e[f]=We+"Seconds",_e[s]=We+"Milliseconds",_e)[Le],Ye=Le===R?this.$D+(ae-this.$W):ae;if(Le===q||Le===ve){var we=this.clone().set(de,1);we.$d[dt](Ye),we.init(),this.$d=we.set(de,Math.min(this.$D,we.daysInMonth())).$d}else dt&&this.$d[dt](Ye);return this.init(),this},W.set=function(te,ae){return this.clone().$set(te,ae)},W.get=function(te){return this[B.p(te)]()},W.add=function(te,ae){var _e,Le=this;te=Number(te);var We=B.p(ae),dt=function(ze){var Ke=x(Le);return B.w(Ke.date(Ke.date()+Math.round(ze*te)),Le)};if(We===q)return this.set(q,this.$M+te);if(We===ve)return this.set(ve,this.$y+te);if(We===R)return dt(1);if(We===U)return dt(7);var Ye=(_e={},_e[d]=c,_e[S]=g,_e[f]=1e3,_e)[We]||1,we=this.$d.getTime()+te*Ye;return B.w(we,this)},W.subtract=function(te,ae){return this.add(-1*te,ae)},W.format=function(te){var ae=this,_e=this.$locale();if(!this.isValid())return _e.invalidDate||V;var Le=te||"YYYY-MM-DDTHH:mm:ssZ",We=B.z(this),dt=this.$H,Ye=this.$m,we=this.$M,ze=_e.weekdays,Ke=_e.months,Ze=function(Y,P,ce,Se){return Y&&(Y[P]||Y(ae,Le))||ce[P].slice(0,Se)},k=function(Y){return B.s(dt%12||12,Y,"0")},F=_e.meridiem||function(Y,P,ce){var Se=Y<12?"AM":"PM";return ce?Se.toLowerCase():Se};return Le.replace(ie,function(Y,P){return P||function(ce){switch(ce){case"YY":return String(ae.$y).slice(-2);case"YYYY":return B.s(ae.$y,4,"0");case"M":return we+1;case"MM":return B.s(we+1,2,"0");case"MMM":return Ze(_e.monthsShort,we,Ke,3);case"MMMM":return Ze(Ke,we);case"D":return ae.$D;case"DD":return B.s(ae.$D,2,"0");case"d":return String(ae.$W);case"dd":return Ze(_e.weekdaysMin,ae.$W,ze,2);case"ddd":return Ze(_e.weekdaysShort,ae.$W,ze,3);case"dddd":return ze[ae.$W];case"H":return String(dt);case"HH":return B.s(dt,2,"0");case"h":return k(1);case"hh":return k(2);case"a":return F(dt,Ye,!0);case"A":return F(dt,Ye,!1);case"m":return String(Ye);case"mm":return B.s(Ye,2,"0");case"s":return String(ae.$s);case"ss":return B.s(ae.$s,2,"0");case"SSS":return B.s(ae.$ms,3,"0");case"Z":return We}return null}(Y)||We.replace(":","")})},W.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},W.diff=function(te,ae,_e){var Le,We=this,dt=B.p(ae),Ye=x(te),we=(Ye.utcOffset()-this.utcOffset())*c,ze=this-Ye,Ke=function(){return B.m(We,Ye)};switch(dt){case ve:Le=Ke()/12;break;case q:Le=Ke();break;case z:Le=Ke()/3;break;case U:Le=(ze-we)/6048e5;break;case R:Le=(ze-we)/864e5;break;case S:Le=ze/g;break;case d:Le=ze/c;break;case f:Le=ze/1e3;break;default:Le=ze}return _e?Le:B.a(Le)},W.daysInMonth=function(){return this.endOf(q).$D},W.$locale=function(){return ue[this.$L]},W.locale=function(te,ae){if(!te)return this.$L;var _e=this.clone(),Le=O(te,ae,!0);return Le&&(_e.$L=Le),_e},W.clone=function(){return B.w(this.$d,this)},W.toDate=function(){return new Date(this.valueOf())},W.toJSON=function(){return this.isValid()?this.toISOString():null},W.toISOString=function(){return this.$d.toISOString()},W.toString=function(){return this.$d.toUTCString()},le}(),pe=G.prototype;return x.prototype=pe,[["$ms",s],["$s",f],["$m",d],["$H",S],["$W",R],["$M",q],["$y",ve],["$D",de]].forEach(function(le){pe[le[1]]=function(W){return this.$g(W,le[0],le[1])}}),x.extend=function(le,W){return le.$i||(le(W,G,x),le.$i=!0),x},x.locale=O,x.isDayjs=_,x.unix=function(le){return x(1e3*le)},x.en=ue[Ae],x.Ls=ue,x.p={},x}()},5180:function(se){se.exports=function(){"use strict";var E={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},c=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,g=/\d\d/,s=/\d\d?/,f=/\d*[^-_:/,()\s\d]+/,d={},S=function(V){return(V=+V)+(V>68?1900:2e3)},R=function(V){return function(Q){this[V]=+Q}},U=[/[+-]\d\d:?(\d\d)?|Z/,function(V){(this.zone||(this.zone={})).offset=function(Q){if(!Q||"Z"===Q)return 0;var ie=Q.match(/([+-]|\d\d)/g),K=60*ie[1]+(+ie[2]||0);return 0===K?0:"+"===ie[0]?-K:K}(V)}],q=function(V){var Q=d[V];return Q&&(Q.indexOf?Q:Q.s.concat(Q.f))},z=function(V,Q){var ie,K=d.meridiem;if(K){for(var ee=1;ee<=24;ee+=1)if(V.indexOf(K(ee,0,Q))>-1){ie=ee>12;break}}else ie=V===(Q?"pm":"PM");return ie},ve={A:[f,function(V){this.afternoon=z(V,!1)}],a:[f,function(V){this.afternoon=z(V,!0)}],S:[/\d/,function(V){this.milliseconds=100*+V}],SS:[g,function(V){this.milliseconds=10*+V}],SSS:[/\d{3}/,function(V){this.milliseconds=+V}],s:[s,R("seconds")],ss:[s,R("seconds")],m:[s,R("minutes")],mm:[s,R("minutes")],H:[s,R("hours")],h:[s,R("hours")],HH:[s,R("hours")],hh:[s,R("hours")],D:[s,R("day")],DD:[g,R("day")],Do:[f,function(V){var Q=d.ordinal,ie=V.match(/\d+/);if(this.day=ie[0],Q)for(var K=1;K<=31;K+=1)Q(K).replace(/\[|\]/g,"")===V&&(this.day=K)}],M:[s,R("month")],MM:[g,R("month")],MMM:[f,function(V){var Q=q("months"),ie=(q("monthsShort")||Q.map(function(K){return K.slice(0,3)})).indexOf(V)+1;if(ie<1)throw new Error;this.month=ie%12||ie}],MMMM:[f,function(V){var Q=q("months").indexOf(V)+1;if(Q<1)throw new Error;this.month=Q%12||Q}],Y:[/[+-]?\d+/,R("year")],YY:[g,function(V){this.year=S(V)}],YYYY:[/\d{4}/,R("year")],Z:U,ZZ:U};return function(V,Q,ie){ie.p.customParseFormat=!0,V&&V.parseTwoDigitYear&&(S=V.parseTwoDigitYear);var K=Q.prototype,ee=K.parse;K.parse=function(he){var Ae=he.date,ue=he.utc,oe=he.args;this.$u=ue;var _=oe[1];if("string"==typeof _){var O=!0===oe[2],x=!0===oe[3],B=O||x,G=oe[2];x&&(G=oe[2]),d=this.$locale(),!O&&G&&(d=ie.Ls[G]),this.$d=function(te,ae,_e){try{if(["x","X"].indexOf(ae)>-1)return new Date(("X"===ae?1e3:1)*te);var Le=function de(V){var ie;ie=d&&d.formats;for(var K=(V=V.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(O,x,B){var G=B&&B.toUpperCase();return x||ie[B]||E[B]||ie[G].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(pe,le,W){return le||W.slice(1)})})).match(c),ee=K.length,he=0;he<ee;he+=1){var Ae=K[he],ue=ve[Ae],_=ue&&ue[1];K[he]=_?{regex:ue&&ue[0],parser:_}:Ae.replace(/^\[|\]$/g,"")}return function(O){for(var x={},B=0,G=0;B<ee;B+=1){var pe=K[B];if("string"==typeof pe)G+=pe.length;else{var le=pe.regex,W=pe.parser,te=O.slice(G),ae=le.exec(te)[0];W.call(x,ae),O=O.replace(ae,"")}}return function(_e){var Le=_e.afternoon;if(void 0!==Le){var We=_e.hours;Le?We<12&&(_e.hours+=12):12===We&&(_e.hours=0),delete _e.afternoon}}(x),x}}(ae)(te),We=Le.year,dt=Le.month,Ye=Le.day,we=Le.hours,ze=Le.minutes,Ke=Le.seconds,je=Le.milliseconds,Ze=Le.zone,k=new Date,F=Ye||(We||dt?1:k.getDate()),Y=We||k.getFullYear(),P=0;We&&!dt||(P=dt>0?dt-1:k.getMonth());var ce=we||0,Se=ze||0,Be=Ke||0,Tt=je||0;return Ze?new Date(Date.UTC(Y,P,F,ce,Se,Be,Tt+60*Ze.offset*1e3)):_e?new Date(Date.UTC(Y,P,F,ce,Se,Be,Tt)):new Date(Y,P,F,ce,Se,Be,Tt)}catch(zt){return new Date("")}}(Ae,_,ue),this.init(),G&&!0!==G&&(this.$L=this.locale(G).$L),B&&Ae!=this.format(_)&&(this.$d=new Date("")),d={}}else if(_ instanceof Array)for(var pe=_.length,le=1;le<=pe;le+=1){oe[1]=_[le-1];var W=ie.apply(this,oe);if(W.isValid()){this.$d=W.$d,this.$L=W.$L,this.init();break}le===pe&&(this.$d=new Date(""))}else ee.call(this,he)}}}()},362:se=>{"use strict";se.exports=function E(c,g){if(c===g)return!0;if(c&&g&&"object"==typeof c&&"object"==typeof g){if(c.constructor!==g.constructor)return!1;var s,f,d;if(Array.isArray(c)){if((s=c.length)!=g.length)return!1;for(f=s;0!=f--;)if(!E(c[f],g[f]))return!1;return!0}if(c.constructor===RegExp)return c.source===g.source&&c.flags===g.flags;if(c.valueOf!==Object.prototype.valueOf)return c.valueOf()===g.valueOf();if(c.toString!==Object.prototype.toString)return c.toString()===g.toString();if((s=(d=Object.keys(c)).length)!==Object.keys(g).length)return!1;for(f=s;0!=f--;)if(!Object.prototype.hasOwnProperty.call(g,d[f]))return!1;for(f=s;0!=f--;){var S=d[f];if(!E(c[S],g[S]))return!1}return!0}return c!=c&&g!=g}},7783:se=>{se.exports=function E(c,g,s){function f(R,U){if(!g[R]){if(!c[R]){if(d)return d(R,!0);throw new Error("Cannot find module '"+R+"'")}U=g[R]={exports:{}},c[R][0].call(U.exports,function(z){return f(c[R][1][z]||z)},U,U.exports,E,c,g,s)}return g[R].exports}for(var d=void 0,S=0;S<s.length;S++)f(s[S]);return f}({1:[function(E,c,g){(function(s,f,d,S,R,U,q,z,ve){"use strict";var de=E("crypto");function V(ue,oe){var _;return void 0===(_="passthrough"!==(oe=K(ue,oe)).algorithm?de.createHash(oe.algorithm):new Ae).write&&(_.write=_.update,_.end=_.update),he(oe,_).dispatch(ue),_.update||_.end(""),_.digest?_.digest("buffer"===oe.encoding?void 0:oe.encoding):(ue=_.read(),"buffer"!==oe.encoding?ue.toString(oe.encoding):ue)}(g=c.exports=V).sha1=function(ue){return V(ue)},g.keys=function(ue){return V(ue,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},g.MD5=function(ue){return V(ue,{algorithm:"md5",encoding:"hex"})},g.keysMD5=function(ue){return V(ue,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var Q=de.getHashes?de.getHashes().slice():["sha1","md5"],ie=(Q.push("passthrough"),["buffer","hex","binary","base64"]);function K(ue,oe){var _={};if(_.algorithm=(oe=oe||{}).algorithm||"sha1",_.encoding=oe.encoding||"hex",_.excludeValues=!!oe.excludeValues,_.algorithm=_.algorithm.toLowerCase(),_.encoding=_.encoding.toLowerCase(),_.ignoreUnknown=!0===oe.ignoreUnknown,_.respectType=!1!==oe.respectType,_.respectFunctionNames=!1!==oe.respectFunctionNames,_.respectFunctionProperties=!1!==oe.respectFunctionProperties,_.unorderedArrays=!0===oe.unorderedArrays,_.unorderedSets=!1!==oe.unorderedSets,_.unorderedObjects=!1!==oe.unorderedObjects,_.replacer=oe.replacer||void 0,_.excludeKeys=oe.excludeKeys||void 0,void 0===ue)throw new Error("Object argument required.");for(var O=0;O<Q.length;++O)Q[O].toLowerCase()===_.algorithm.toLowerCase()&&(_.algorithm=Q[O]);if(-1===Q.indexOf(_.algorithm))throw new Error('Algorithm "'+_.algorithm+'" not supported. supported values: '+Q.join(", "));if(-1===ie.indexOf(_.encoding)&&"passthrough"!==_.algorithm)throw new Error('Encoding "'+_.encoding+'" not supported. supported values: '+ie.join(", "));return _}function ee(ue){if("function"==typeof ue)return null!=/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(ue))}function he(ue,oe,_){function O(x){return oe.update?oe.update(x,"utf8"):oe.write(x,"utf8")}return _=_||[],{dispatch:function(x){return this["_"+(null===(x=ue.replacer?ue.replacer(x):x)?"null":typeof x)](x)},_object:function(x){var B,G=Object.prototype.toString.call(x),pe=/\[object (.*)\]/i.exec(G);if(pe=(pe=pe?pe[1]:"unknown:["+G+"]").toLowerCase(),0<=(G=_.indexOf(x)))return this.dispatch("[CIRCULAR:"+G+"]");if(_.push(x),void 0!==d&&d.isBuffer&&d.isBuffer(x))return O("buffer:"),O(x);if("object"===pe||"function"===pe||"asyncfunction"===pe)return G=Object.keys(x),ue.unorderedObjects&&(G=G.sort()),!1===ue.respectType||ee(x)||G.splice(0,0,"prototype","__proto__","constructor"),ue.excludeKeys&&(G=G.filter(function(le){return!ue.excludeKeys(le)})),O("object:"+G.length+":"),B=this,G.forEach(function(le){B.dispatch(le),O(":"),ue.excludeValues||B.dispatch(x[le]),O(",")});if(!this["_"+pe]){if(ue.ignoreUnknown)return O("["+pe+"]");throw new Error('Unknown object type "'+pe+'"')}this["_"+pe](x)},_array:function(x,le){le=void 0!==le?le:!1!==ue.unorderedArrays;var G=this;if(O("array:"+x.length+":"),!le||x.length<=1)return x.forEach(function(W){return G.dispatch(W)});var pe=[];return le=x.map(function(W){var te=new Ae,ae=_.slice();return he(ue,te,ae).dispatch(W),pe=pe.concat(ae.slice(_.length)),te.read().toString()}),_=_.concat(pe),le.sort(),this._array(le,!1)},_date:function(x){return O("date:"+x.toJSON())},_symbol:function(x){return O("symbol:"+x.toString())},_error:function(x){return O("error:"+x.toString())},_boolean:function(x){return O("bool:"+x.toString())},_string:function(x){O("string:"+x.length+":"),O(x.toString())},_function:function(x){O("fn:"),ee(x)?this.dispatch("[native]"):this.dispatch(x.toString()),!1!==ue.respectFunctionNames&&this.dispatch("function-name:"+String(x.name)),ue.respectFunctionProperties&&this._object(x)},_number:function(x){return O("number:"+x.toString())},_xml:function(x){return O("xml:"+x.toString())},_null:function(){return O("Null")},_undefined:function(){return O("Undefined")},_regexp:function(x){return O("regex:"+x.toString())},_uint8array:function(x){return O("uint8array:"),this.dispatch(Array.prototype.slice.call(x))},_uint8clampedarray:function(x){return O("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(x))},_int8array:function(x){return O("int8array:"),this.dispatch(Array.prototype.slice.call(x))},_uint16array:function(x){return O("uint16array:"),this.dispatch(Array.prototype.slice.call(x))},_int16array:function(x){return O("int16array:"),this.dispatch(Array.prototype.slice.call(x))},_uint32array:function(x){return O("uint32array:"),this.dispatch(Array.prototype.slice.call(x))},_int32array:function(x){return O("int32array:"),this.dispatch(Array.prototype.slice.call(x))},_float32array:function(x){return O("float32array:"),this.dispatch(Array.prototype.slice.call(x))},_float64array:function(x){return O("float64array:"),this.dispatch(Array.prototype.slice.call(x))},_arraybuffer:function(x){return O("arraybuffer:"),this.dispatch(new Uint8Array(x))},_url:function(x){return O("url:"+x.toString())},_map:function(x){return O("map:"),x=Array.from(x),this._array(x,!1!==ue.unorderedSets)},_set:function(x){return O("set:"),x=Array.from(x),this._array(x,!1!==ue.unorderedSets)},_file:function(x){return O("file:"),this.dispatch([x.name,x.size,x.type,x.lastModfied])},_blob:function(){if(ue.ignoreUnknown)return O("[blob]");throw Error('Hashing Blob objects is currently not supported\n(see https://github.com/puleos/object-hash/issues/26)\nUse "options.replacer" or "options.ignoreUnknown"\n')},_domwindow:function(){return O("domwindow")},_bigint:function(x){return O("bigint:"+x.toString())},_process:function(){return O("process")},_timer:function(){return O("timer")},_pipe:function(){return O("pipe")},_tcp:function(){return O("tcp")},_udp:function(){return O("udp")},_tty:function(){return O("tty")},_statwatcher:function(){return O("statwatcher")},_securecontext:function(){return O("securecontext")},_connection:function(){return O("connection")},_zlib:function(){return O("zlib")},_context:function(){return O("context")},_nodescript:function(){return O("nodescript")},_httpparser:function(){return O("httpparser")},_dataview:function(){return O("dataview")},_signal:function(){return O("signal")},_fsevent:function(){return O("fsevent")},_tlswrap:function(){return O("tlswrap")}}}function Ae(){return{buf:"",write:function(ue){this.buf+=ue},end:function(ue){this.buf+=ue},read:function(){return this.buf}}}g.writeToStream=function(ue,oe,_){return void 0===_&&(_=oe,oe={}),he(oe=K(ue,oe),_).dispatch(ue)}}).call(this,E("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_9a5aa49d.js","/")},{buffer:3,crypto:5,lYpoI2:11}],2:[function(E,c,g){(function(s,f,d,S,R,U,q,z,ve){!function(de){"use strict";var V=typeof Uint8Array<"u"?Uint8Array:Array;function oe(_){return 43===(_=_.charCodeAt(0))||45===_?62:47===_||95===_?63:_<48?-1:_<58?_-48+26+26:_<91?_-65:_<123?_-97+26:void 0}de.toByteArray=function(_){var O,x;if(0<_.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var B="="===_.charAt((B=_.length)-2)?2:"="===_.charAt(B-1)?1:0,G=new V(3*_.length/4-B),pe=0<B?_.length-4:_.length,le=0;function W(te){G[le++]=te}for(O=0;O<pe;O+=4,0)W((16711680&(x=oe(_.charAt(O))<<18|oe(_.charAt(O+1))<<12|oe(_.charAt(O+2))<<6|oe(_.charAt(O+3))))>>16),W((65280&x)>>8),W(255&x);return 2==B?W(255&(x=oe(_.charAt(O))<<2|oe(_.charAt(O+1))>>4)):1==B&&(W((x=oe(_.charAt(O))<<10|oe(_.charAt(O+1))<<4|oe(_.charAt(O+2))>>2)>>8&255),W(255&x)),G},de.fromByteArray=function(_){var O,x,B,G,pe=_.length%3,le="";function W(te){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(te)}for(O=0,B=_.length-pe;O<B;O+=3)le+=W((G=x=(_[O]<<16)+(_[O+1]<<8)+_[O+2])>>18&63)+W(G>>12&63)+W(G>>6&63)+W(63&G);switch(pe){case 1:le=(le+=W((x=_[_.length-1])>>2))+W(x<<4&63)+"==";break;case 2:le=(le=(le+=W((x=(_[_.length-2]<<8)+_[_.length-1])>>10))+W(x>>4&63))+W(x<<2&63)+"="}return le}}(void 0===g?this.base64js={}:g)}).call(this,E("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:11}],3:[function(E,c,g){(function(s,f,Q,S,R,U,q,z,ve){var de=E("base64-js"),V=E("ieee754");function Q(F,Y,P){if(!(this instanceof Q))return new Q(F,Y,P);var ce,Se,Be,Tt,zt=typeof F;if("base64"===Y&&"string"==zt)for(F=(Tt=F).trim?Tt.trim():Tt.replace(/^\s+|\s+$/g,"");F.length%4!=0;)F+="=";if("number"==zt)ce=_e(F);else if("string"==zt)ce=Q.byteLength(F,Y);else{if("object"!=zt)throw new Error("First argument needs to be a number, array or string.");ce=_e(F.length)}if(Q._useTypedArrays?Se=Q._augment(new Uint8Array(ce)):((Se=this).length=ce,Se._isBuffer=!0),Q._useTypedArrays&&"number"==typeof F.byteLength)Se._set(F);else if(Le(Tt=F)||Q.isBuffer(Tt)||Tt&&"object"==typeof Tt&&"number"==typeof Tt.length)for(Be=0;Be<ce;Be++)Se[Be]=Q.isBuffer(F)?F.readUInt8(Be):F[Be];else if("string"==zt)Se.write(F,0,Y);else if("number"==zt&&!Q._useTypedArrays&&!P)for(Be=0;Be<ce;Be++)Se[Be]=0;return Se}function he(F,Y,P,Be){var Se;if(Be||(k("boolean"==typeof P,"missing or invalid endian"),k(null!=Y,"missing offset"),k(Y+1<F.length,"Trying to read beyond buffer length")),!((Be=F.length)<=Y))return P?(Se=F[Y],Y+1<Be&&(Se|=F[Y+1]<<8)):(Se=F[Y]<<8,Y+1<Be&&(Se|=F[Y+1])),Se}function Ae(F,Y,P,Be){var Se;if(Be||(k("boolean"==typeof P,"missing or invalid endian"),k(null!=Y,"missing offset"),k(Y+3<F.length,"Trying to read beyond buffer length")),!((Be=F.length)<=Y))return P?(Y+2<Be&&(Se=F[Y+2]<<16),Y+1<Be&&(Se|=F[Y+1]<<8),Se|=F[Y],Y+3<Be&&(Se+=F[Y+3]<<24>>>0)):(Y+1<Be&&(Se=F[Y+1]<<16),Y+2<Be&&(Se|=F[Y+2]<<8),Y+3<Be&&(Se|=F[Y+3]),Se+=F[Y]<<24>>>0),Se}function ue(F,Y,P,ce){if(ce||(k("boolean"==typeof P,"missing or invalid endian"),k(null!=Y,"missing offset"),k(Y+1<F.length,"Trying to read beyond buffer length")),!(F.length<=Y))return 32768&(ce=he(F,Y,P,!0))?-1*(65535-ce+1):ce}function oe(F,Y,P,ce){if(ce||(k("boolean"==typeof P,"missing or invalid endian"),k(null!=Y,"missing offset"),k(Y+3<F.length,"Trying to read beyond buffer length")),!(F.length<=Y))return 2147483648&(ce=Ae(F,Y,P,!0))?-1*(4294967295-ce+1):ce}function _(F,Y,P,ce){return ce||(k("boolean"==typeof P,"missing or invalid endian"),k(Y+3<F.length,"Trying to read beyond buffer length")),V.read(F,Y,P,23,4)}function O(F,Y,P,ce){return ce||(k("boolean"==typeof P,"missing or invalid endian"),k(Y+7<F.length,"Trying to read beyond buffer length")),V.read(F,Y,P,52,8)}function x(F,Y,P,ce,Se){if(Se||(k(null!=Y,"missing value"),k("boolean"==typeof ce,"missing or invalid endian"),k(null!=P,"missing offset"),k(P+1<F.length,"trying to write beyond buffer length"),Ke(Y,65535)),!((Se=F.length)<=P))for(var Be=0,Tt=Math.min(Se-P,2);Be<Tt;Be++)F[P+Be]=(Y&255<<8*(ce?Be:1-Be))>>>8*(ce?Be:1-Be)}function B(F,Y,P,ce,Se){if(Se||(k(null!=Y,"missing value"),k("boolean"==typeof ce,"missing or invalid endian"),k(null!=P,"missing offset"),k(P+3<F.length,"trying to write beyond buffer length"),Ke(Y,4294967295)),!((Se=F.length)<=P))for(var Be=0,Tt=Math.min(Se-P,4);Be<Tt;Be++)F[P+Be]=Y>>>8*(ce?Be:3-Be)&255}function G(F,Y,P,ce,Se){Se||(k(null!=Y,"missing value"),k("boolean"==typeof ce,"missing or invalid endian"),k(null!=P,"missing offset"),k(P+1<F.length,"Trying to write beyond buffer length"),je(Y,32767,-32768)),F.length<=P||x(F,0<=Y?Y:65535+Y+1,P,ce,Se)}function pe(F,Y,P,ce,Se){Se||(k(null!=Y,"missing value"),k("boolean"==typeof ce,"missing or invalid endian"),k(null!=P,"missing offset"),k(P+3<F.length,"Trying to write beyond buffer length"),je(Y,2147483647,-2147483648)),F.length<=P||B(F,0<=Y?Y:4294967295+Y+1,P,ce,Se)}function le(F,Y,P,ce,Se){Se||(k(null!=Y,"missing value"),k("boolean"==typeof ce,"missing or invalid endian"),k(null!=P,"missing offset"),k(P+3<F.length,"Trying to write beyond buffer length"),Ze(Y,34028234663852886e22,-34028234663852886e22)),F.length<=P||V.write(F,Y,P,ce,23,4)}function W(F,Y,P,ce,Se){Se||(k(null!=Y,"missing value"),k("boolean"==typeof ce,"missing or invalid endian"),k(null!=P,"missing offset"),k(P+7<F.length,"Trying to write beyond buffer length"),Ze(Y,17976931348623157e292,-17976931348623157e292)),F.length<=P||V.write(F,Y,P,ce,52,8)}g.Buffer=Q,g.SlowBuffer=Q,g.INSPECT_MAX_BYTES=50,Q.poolSize=8192,Q._useTypedArrays=function(){try{var F=new ArrayBuffer(0),Y=new Uint8Array(F);return Y.foo=function(){return 42},42===Y.foo()&&"function"==typeof Y.subarray}catch(P){return!1}}(),Q.isEncoding=function(F){switch(String(F).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Q.isBuffer=function(F){return!(null==F||!F._isBuffer)},Q.byteLength=function(F,Y){var P;switch(F+="",Y||"utf8"){case"hex":P=F.length/2;break;case"utf8":case"utf-8":P=dt(F).length;break;case"ascii":case"binary":case"raw":P=F.length;break;case"base64":P=Ye(F).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":P=2*F.length;break;default:throw new Error("Unknown encoding")}return P},Q.concat=function(F,Y){if(k(Le(F),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===F.length)return new Q(0);if(1===F.length)return F[0];if("number"!=typeof Y)for(Se=Y=0;Se<F.length;Se++)Y+=F[Se].length;for(var P=new Q(Y),ce=0,Se=0;Se<F.length;Se++){var Be=F[Se];Be.copy(P,ce),ce+=Be.length}return P},Q.prototype.write=function(F,Y,P,ce){isFinite(Y)?isFinite(P)||(ce=P,P=void 0):(Mt=ce,ce=Y,Y=P,P=Mt),Y=Number(Y)||0;var Se,Be,Tt,zt,Mt=this.length-Y;switch((!P||Mt<(P=Number(P)))&&(P=Mt),ce=String(ce||"utf8").toLowerCase()){case"hex":Se=function(He,lt,Et,Ce){Et=Number(Et)||0;var ye=He.length-Et;(!Ce||ye<(Ce=Number(Ce)))&&(Ce=ye),k((ye=lt.length)%2==0,"Invalid hex string"),ye/2<Ce&&(Ce=ye/2);for(var Ee=0;Ee<Ce;Ee++){var De=parseInt(lt.substr(2*Ee,2),16);k(!isNaN(De),"Invalid hex string"),He[Et+Ee]=De}return Q._charsWritten=2*Ee,Ee}(this,F,Y,P);break;case"utf8":case"utf-8":Be=this,Tt=Y,zt=P,Se=Q._charsWritten=we(dt(F),Be,Tt,zt);break;case"ascii":case"binary":Se=function ie(F,Y,P,ce){return Q._charsWritten=we(function(Se){for(var Be=[],Tt=0;Tt<Se.length;Tt++)Be.push(255&Se.charCodeAt(Tt));return Be}(Y),F,P,ce)}(this,F,Y,P);break;case"base64":Be=this,Tt=Y,zt=P,Se=Q._charsWritten=we(Ye(F),Be,Tt,zt);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":Se=function K(F,Y,P,ce){return Q._charsWritten=we(function(Se){for(var Be,Tt,zt=[],Mt=0;Mt<Se.length;Mt++)Be=(Tt=Se.charCodeAt(Mt))>>8,zt.push(Tt%=256),zt.push(Be);return zt}(Y),F,P,ce)}(this,F,Y,P);break;default:throw new Error("Unknown encoding")}return Se},Q.prototype.toString=function(F,Y,P){var ce,Se,Be,Tt,zt=this;if(F=String(F||"utf8").toLowerCase(),Y=Number(Y)||0,(P=void 0!==P?Number(P):zt.length)===Y)return"";switch(F){case"hex":ce=function(Mt,He,lt){var Et=Mt.length;(!He||He<0)&&(He=0),(!lt||lt<0||Et<lt)&&(lt=Et);for(var Ce="",ye=He;ye<lt;ye++)Ce+=We(Mt[ye]);return Ce}(zt,Y,P);break;case"utf8":case"utf-8":ce=function(Mt,He,lt){var Et="",Ce="";lt=Math.min(Mt.length,lt);for(var ye=He;ye<lt;ye++)Mt[ye]<=127?(Et+=ze(Ce)+String.fromCharCode(Mt[ye]),Ce=""):Ce+="%"+Mt[ye].toString(16);return Et+ze(Ce)}(zt,Y,P);break;case"ascii":case"binary":ce=function ee(F,Y,P){var ce="";P=Math.min(F.length,P);for(var Se=Y;Se<P;Se++)ce+=String.fromCharCode(F[Se]);return ce}(zt,Y,P);break;case"base64":Se=zt,Tt=P,ce=0===(Be=Y)&&Tt===Se.length?de.fromByteArray(Se):de.fromByteArray(Se.slice(Be,Tt));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":ce=function(Mt,He,lt){for(var Et=Mt.slice(He,lt),Ce="",ye=0;ye<Et.length;ye+=2)Ce+=String.fromCharCode(Et[ye]+256*Et[ye+1]);return Ce}(zt,Y,P);break;default:throw new Error("Unknown encoding")}return ce},Q.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},Q.prototype.copy=function(F,Y,P,ce){if(Y=Y||0,(ce=ce||0===ce?ce:this.length)!==(P=P||0)&&0!==F.length&&0!==this.length){k(P<=ce,"sourceEnd < sourceStart"),k(0<=Y&&Y<F.length,"targetStart out of bounds"),k(0<=P&&P<this.length,"sourceStart out of bounds"),k(0<=ce&&ce<=this.length,"sourceEnd out of bounds"),ce>this.length&&(ce=this.length);var Se=(ce=F.length-Y<ce-P?F.length-Y+P:ce)-P;if(Se<100||!Q._useTypedArrays)for(var Be=0;Be<Se;Be++)F[Be+Y]=this[Be+P];else F._set(this.subarray(P,P+Se),Y)}},Q.prototype.slice=function(F,Y){var P=this.length;if(F=ae(F,P,0),Y=ae(Y,P,P),Q._useTypedArrays)return Q._augment(this.subarray(F,Y));for(var ce=Y-F,Se=new Q(ce,void 0,!0),Be=0;Be<ce;Be++)Se[Be]=this[Be+F];return Se},Q.prototype.get=function(F){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(F)},Q.prototype.set=function(F,Y){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(F,Y)},Q.prototype.readUInt8=function(F,Y){if(Y||(k(null!=F,"missing offset"),k(F<this.length,"Trying to read beyond buffer length")),!(F>=this.length))return this[F]},Q.prototype.readUInt16LE=function(F,Y){return he(this,F,!0,Y)},Q.prototype.readUInt16BE=function(F,Y){return he(this,F,!1,Y)},Q.prototype.readUInt32LE=function(F,Y){return Ae(this,F,!0,Y)},Q.prototype.readUInt32BE=function(F,Y){return Ae(this,F,!1,Y)},Q.prototype.readInt8=function(F,Y){if(Y||(k(null!=F,"missing offset"),k(F<this.length,"Trying to read beyond buffer length")),!(F>=this.length))return 128&this[F]?-1*(255-this[F]+1):this[F]},Q.prototype.readInt16LE=function(F,Y){return ue(this,F,!0,Y)},Q.prototype.readInt16BE=function(F,Y){return ue(this,F,!1,Y)},Q.prototype.readInt32LE=function(F,Y){return oe(this,F,!0,Y)},Q.prototype.readInt32BE=function(F,Y){return oe(this,F,!1,Y)},Q.prototype.readFloatLE=function(F,Y){return _(this,F,!0,Y)},Q.prototype.readFloatBE=function(F,Y){return _(this,F,!1,Y)},Q.prototype.readDoubleLE=function(F,Y){return O(this,F,!0,Y)},Q.prototype.readDoubleBE=function(F,Y){return O(this,F,!1,Y)},Q.prototype.writeUInt8=function(F,Y,P){P||(k(null!=F,"missing value"),k(null!=Y,"missing offset"),k(Y<this.length,"trying to write beyond buffer length"),Ke(F,255)),Y>=this.length||(this[Y]=F)},Q.prototype.writeUInt16LE=function(F,Y,P){x(this,F,Y,!0,P)},Q.prototype.writeUInt16BE=function(F,Y,P){x(this,F,Y,!1,P)},Q.prototype.writeUInt32LE=function(F,Y,P){B(this,F,Y,!0,P)},Q.prototype.writeUInt32BE=function(F,Y,P){B(this,F,Y,!1,P)},Q.prototype.writeInt8=function(F,Y,P){P||(k(null!=F,"missing value"),k(null!=Y,"missing offset"),k(Y<this.length,"Trying to write beyond buffer length"),je(F,127,-128)),Y>=this.length||this.writeUInt8(0<=F?F:255+F+1,Y,P)},Q.prototype.writeInt16LE=function(F,Y,P){G(this,F,Y,!0,P)},Q.prototype.writeInt16BE=function(F,Y,P){G(this,F,Y,!1,P)},Q.prototype.writeInt32LE=function(F,Y,P){pe(this,F,Y,!0,P)},Q.prototype.writeInt32BE=function(F,Y,P){pe(this,F,Y,!1,P)},Q.prototype.writeFloatLE=function(F,Y,P){le(this,F,Y,!0,P)},Q.prototype.writeFloatBE=function(F,Y,P){le(this,F,Y,!1,P)},Q.prototype.writeDoubleLE=function(F,Y,P){W(this,F,Y,!0,P)},Q.prototype.writeDoubleBE=function(F,Y,P){W(this,F,Y,!1,P)},Q.prototype.fill=function(F,Y,P){if(Y=Y||0,P=P||this.length,k("number"==typeof(F="string"==typeof(F=F||0)?F.charCodeAt(0):F)&&!isNaN(F),"value is not a number"),k(Y<=P,"end < start"),P!==Y&&0!==this.length){k(0<=Y&&Y<this.length,"start out of bounds"),k(0<=P&&P<=this.length,"end out of bounds");for(var ce=Y;ce<P;ce++)this[ce]=F}},Q.prototype.inspect=function(){for(var F=[],Y=this.length,P=0;P<Y;P++)if(F[P]=We(this[P]),P===g.INSPECT_MAX_BYTES){F[P+1]="...";break}return"<Buffer "+F.join(" ")+">"},Q.prototype.toArrayBuffer=function(){if(typeof Uint8Array>"u")throw new Error("Buffer.toArrayBuffer not supported in this browser");if(Q._useTypedArrays)return new Q(this).buffer;for(var F=new Uint8Array(this.length),Y=0,P=F.length;Y<P;Y+=1)F[Y]=this[Y];return F.buffer};var te=Q.prototype;function ae(F,Y,P){return"number"!=typeof F?P:Y<=(F=~~F)?Y:0<=F||0<=(F+=Y)?F:0}function _e(F){return(F=~~Math.ceil(+F))<0?0:F}function Le(F){return(Array.isArray||function(Y){return"[object Array]"===Object.prototype.toString.call(Y)})(F)}function We(F){return F<16?"0"+F.toString(16):F.toString(16)}function dt(F){for(var Y=[],P=0;P<F.length;P++){var ce=F.charCodeAt(P);if(ce<=127)Y.push(F.charCodeAt(P));else for(var Se=P,Be=(55296<=ce&&ce<=57343&&P++,encodeURIComponent(F.slice(Se,P+1)).substr(1).split("%")),Tt=0;Tt<Be.length;Tt++)Y.push(parseInt(Be[Tt],16))}return Y}function Ye(F){return de.toByteArray(F)}function we(F,Y,P,ce){for(var Se=0;Se<ce&&!(Se+P>=Y.length||Se>=F.length);Se++)Y[Se+P]=F[Se];return Se}function ze(F){try{return decodeURIComponent(F)}catch(Y){return"\ufffd"}}function Ke(F,Y){k("number"==typeof F,"cannot write a non-number as a number"),k(0<=F,"specified a negative value for writing an unsigned value"),k(F<=Y,"value is larger than maximum value for type"),k(Math.floor(F)===F,"value has a fractional component")}function je(F,Y,P){k("number"==typeof F,"cannot write a non-number as a number"),k(F<=Y,"value larger than maximum allowed value"),k(P<=F,"value smaller than minimum allowed value"),k(Math.floor(F)===F,"value has a fractional component")}function Ze(F,Y,P){k("number"==typeof F,"cannot write a non-number as a number"),k(F<=Y,"value larger than maximum allowed value"),k(P<=F,"value smaller than minimum allowed value")}function k(F,Y){if(!F)throw new Error(Y||"Failed assertion")}Q._augment=function(F){return F._isBuffer=!0,F._get=F.get,F._set=F.set,F.get=te.get,F.set=te.set,F.write=te.write,F.toString=te.toString,F.toLocaleString=te.toString,F.toJSON=te.toJSON,F.copy=te.copy,F.slice=te.slice,F.readUInt8=te.readUInt8,F.readUInt16LE=te.readUInt16LE,F.readUInt16BE=te.readUInt16BE,F.readUInt32LE=te.readUInt32LE,F.readUInt32BE=te.readUInt32BE,F.readInt8=te.readInt8,F.readInt16LE=te.readInt16LE,F.readInt16BE=te.readInt16BE,F.readInt32LE=te.readInt32LE,F.readInt32BE=te.readInt32BE,F.readFloatLE=te.readFloatLE,F.readFloatBE=te.readFloatBE,F.readDoubleLE=te.readDoubleLE,F.readDoubleBE=te.readDoubleBE,F.writeUInt8=te.writeUInt8,F.writeUInt16LE=te.writeUInt16LE,F.writeUInt16BE=te.writeUInt16BE,F.writeUInt32LE=te.writeUInt32LE,F.writeUInt32BE=te.writeUInt32BE,F.writeInt8=te.writeInt8,F.writeInt16LE=te.writeInt16LE,F.writeInt16BE=te.writeInt16BE,F.writeInt32LE=te.writeInt32LE,F.writeInt32BE=te.writeInt32BE,F.writeFloatLE=te.writeFloatLE,F.writeFloatBE=te.writeFloatBE,F.writeDoubleLE=te.writeDoubleLE,F.writeDoubleBE=te.writeDoubleBE,F.fill=te.fill,F.inspect=te.inspect,F.toArrayBuffer=te.toArrayBuffer,F}}).call(this,E("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:10,lYpoI2:11}],4:[function(E,c,g){(function(s,f,de,S,R,U,q,z,ve){de=E("buffer").Buffer;var Q=new de(4);Q.fill(0),c.exports={hash:function(ie,K,ee,he){for(var Ae=K(function(x,B){x.length%4!=0&&(x=de.concat([x,Q],x.length+(4-x.length%4)));for(var pe=[],le=B?x.readInt32BE:x.readInt32LE,W=0;W<x.length;W+=4)pe.push(le.call(x,W));return pe}(ie=de.isBuffer(ie)?ie:new de(ie),he),8*ie.length),ue=(K=he,new de(ee)),oe=K?ue.writeInt32BE:ue.writeInt32LE,_=0;_<Ae.length;_++)oe.call(ue,Ae[_],4*_,!0);return ue}}}).call(this,E("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],5:[function(E,c,g){(function(s,f,de,S,R,U,q,z,ve){de=E("buffer").Buffer;var V=E("./sha"),Q=E("./sha256"),ie=E("./rng"),K={sha1:V,sha256:Q,md5:E("./md5")},he=new de(64);function Ae(x,B){var G=K[x=x||"sha1"],pe=[];return G||ue("algorithm:",x,"is not yet supported"),{update:function(le){return de.isBuffer(le)||(le=new de(le)),pe.push(le),this},digest:function(le){var W=de.concat(pe);return W=B?function(te,ae,_e){de.isBuffer(ae)||(ae=new de(ae)),de.isBuffer(_e)||(_e=new de(_e)),ae.length>64?ae=te(ae):ae.length<64&&(ae=de.concat([ae,he],64));for(var Le=new de(64),We=new de(64),dt=0;dt<64;dt++)Le[dt]=54^ae[dt],We[dt]=92^ae[dt];return _e=te(de.concat([Le,_e])),te(de.concat([We,_e]))}(G,B,W):G(W),pe=null,le?W.toString(le):W}}}function ue(){var x=[].slice.call(arguments).join(" ");throw new Error([x,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}he.fill(0),g.createHash=function(x){return Ae(x)},g.createHmac=Ae,g.randomBytes=function(x,B){if(!B||!B.call)return new de(ie(x));try{B.call(this,void 0,new de(ie(x)))}catch(G){B(G)}};var oe,_=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],O=function(x){g[x]=function(){ue("sorry,",x,"is not implemented yet")}};for(oe in _)O(_[oe])}).call(this,E("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(E,c,g){(function(s,f,d,S,R,U,q,z,ve){var de=E("./helpers");function V(ue,oe){ue[oe>>5]|=128<<oe%32,ue[14+(oe+64>>>9<<4)]=oe;for(var _=1732584193,O=-271733879,x=-1732584194,B=271733878,G=0;G<ue.length;G+=16){var pe=_,le=O,W=x,te=B;_=ie(_,O,x,B,ue[G+0],7,-680876936),B=ie(B,_,O,x,ue[G+1],12,-389564586),x=ie(x,B,_,O,ue[G+2],17,606105819),O=ie(O,x,B,_,ue[G+3],22,-1044525330),_=ie(_,O,x,B,ue[G+4],7,-176418897),B=ie(B,_,O,x,ue[G+5],12,1200080426),x=ie(x,B,_,O,ue[G+6],17,-1473231341),O=ie(O,x,B,_,ue[G+7],22,-45705983),_=ie(_,O,x,B,ue[G+8],7,1770035416),B=ie(B,_,O,x,ue[G+9],12,-1958414417),x=ie(x,B,_,O,ue[G+10],17,-42063),O=ie(O,x,B,_,ue[G+11],22,-1990404162),_=ie(_,O,x,B,ue[G+12],7,1804603682),B=ie(B,_,O,x,ue[G+13],12,-40341101),x=ie(x,B,_,O,ue[G+14],17,-1502002290),_=K(_,O=ie(O,x,B,_,ue[G+15],22,1236535329),x,B,ue[G+1],5,-165796510),B=K(B,_,O,x,ue[G+6],9,-1069501632),x=K(x,B,_,O,ue[G+11],14,643717713),O=K(O,x,B,_,ue[G+0],20,-373897302),_=K(_,O,x,B,ue[G+5],5,-701558691),B=K(B,_,O,x,ue[G+10],9,38016083),x=K(x,B,_,O,ue[G+15],14,-660478335),O=K(O,x,B,_,ue[G+4],20,-405537848),_=K(_,O,x,B,ue[G+9],5,568446438),B=K(B,_,O,x,ue[G+14],9,-1019803690),x=K(x,B,_,O,ue[G+3],14,-187363961),O=K(O,x,B,_,ue[G+8],20,1163531501),_=K(_,O,x,B,ue[G+13],5,-1444681467),B=K(B,_,O,x,ue[G+2],9,-51403784),x=K(x,B,_,O,ue[G+7],14,1735328473),_=ee(_,O=K(O,x,B,_,ue[G+12],20,-1926607734),x,B,ue[G+5],4,-378558),B=ee(B,_,O,x,ue[G+8],11,-2022574463),x=ee(x,B,_,O,ue[G+11],16,1839030562),O=ee(O,x,B,_,ue[G+14],23,-35309556),_=ee(_,O,x,B,ue[G+1],4,-1530992060),B=ee(B,_,O,x,ue[G+4],11,1272893353),x=ee(x,B,_,O,ue[G+7],16,-155497632),O=ee(O,x,B,_,ue[G+10],23,-1094730640),_=ee(_,O,x,B,ue[G+13],4,681279174),B=ee(B,_,O,x,ue[G+0],11,-358537222),x=ee(x,B,_,O,ue[G+3],16,-722521979),O=ee(O,x,B,_,ue[G+6],23,76029189),_=ee(_,O,x,B,ue[G+9],4,-640364487),B=ee(B,_,O,x,ue[G+12],11,-421815835),x=ee(x,B,_,O,ue[G+15],16,530742520),_=he(_,O=ee(O,x,B,_,ue[G+2],23,-995338651),x,B,ue[G+0],6,-198630844),B=he(B,_,O,x,ue[G+7],10,1126891415),x=he(x,B,_,O,ue[G+14],15,-1416354905),O=he(O,x,B,_,ue[G+5],21,-57434055),_=he(_,O,x,B,ue[G+12],6,1700485571),B=he(B,_,O,x,ue[G+3],10,-1894986606),x=he(x,B,_,O,ue[G+10],15,-1051523),O=he(O,x,B,_,ue[G+1],21,-2054922799),_=he(_,O,x,B,ue[G+8],6,1873313359),B=he(B,_,O,x,ue[G+15],10,-30611744),x=he(x,B,_,O,ue[G+6],15,-1560198380),O=he(O,x,B,_,ue[G+13],21,1309151649),_=he(_,O,x,B,ue[G+4],6,-145523070),B=he(B,_,O,x,ue[G+11],10,-1120210379),x=he(x,B,_,O,ue[G+2],15,718787259),O=he(O,x,B,_,ue[G+9],21,-343485551),_=Ae(_,pe),O=Ae(O,le),x=Ae(x,W),B=Ae(B,te)}return Array(_,O,x,B)}function Q(ue,oe,_,O,x,B){return Ae((oe=Ae(Ae(oe,ue),Ae(O,B)))<<x|oe>>>32-x,_)}function ie(ue,oe,_,O,x,B,G){return Q(oe&_|~oe&O,ue,oe,x,B,G)}function K(ue,oe,_,O,x,B,G){return Q(oe&O|_&~O,ue,oe,x,B,G)}function ee(ue,oe,_,O,x,B,G){return Q(oe^_^O,ue,oe,x,B,G)}function he(ue,oe,_,O,x,B,G){return Q(_^(oe|~O),ue,oe,x,B,G)}function Ae(ue,oe){var _=(65535&ue)+(65535&oe);return(ue>>16)+(oe>>16)+(_>>16)<<16|65535&_}c.exports=function(ue){return de.hash(ue,V,16)}}).call(this,E("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(E,c,g){(function(s,f,d,S,R,U,q,z,ve){c.exports=function(V){for(var Q,ie=new Array(V),K=0;K<V;K++)!(3&K)&&(Q=4294967296*Math.random()),ie[K]=Q>>>((3&K)<<3)&255;return ie}}).call(this,E("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],8:[function(E,c,g){(function(s,f,d,S,R,U,q,z,ve){var de=E("./helpers");function V(K,ee){K[ee>>5]|=128<<24-ee%32,K[15+(ee+64>>9<<4)]=ee;for(var he,Ae,ue,oe=Array(80),_=1732584193,O=-271733879,x=-1732584194,B=271733878,G=-1009589776,pe=0;pe<K.length;pe+=16){for(var le=_,W=O,te=x,ae=B,_e=G,Le=0;Le<80;Le++){oe[Le]=Le<16?K[pe+Le]:ie(oe[Le-3]^oe[Le-8]^oe[Le-14]^oe[Le-16],1);var We=Q(Q(ie(_,5),(We=O,Ae=x,ue=B,(he=Le)<20?We&Ae|~We&ue:!(he<40)&&he<60?We&Ae|We&ue|Ae&ue:We^Ae^ue)),Q(Q(G,oe[Le]),(he=Le)<20?1518500249:he<40?1859775393:he<60?-1894007588:-899497514));G=B,B=x,x=ie(O,30),O=_,_=We}_=Q(_,le),O=Q(O,W),x=Q(x,te),B=Q(B,ae),G=Q(G,_e)}return Array(_,O,x,B,G)}function Q(K,ee){var he=(65535&K)+(65535&ee);return(K>>16)+(ee>>16)+(he>>16)<<16|65535&he}function ie(K,ee){return K<<ee|K>>>32-ee}c.exports=function(K){return de.hash(K,V,20,!0)}}).call(this,E("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(E,c,g){(function(s,f,d,S,R,U,q,z,ve){function de(ee,he){var Ae=(65535&ee)+(65535&he);return(ee>>16)+(he>>16)+(Ae>>16)<<16|65535&Ae}function V(ee,he){var Ae,ue=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),oe=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),_=new Array(64);ee[he>>5]|=128<<24-he%32,ee[15+(he+64>>9<<4)]=he;for(var O,x,B=0;B<ee.length;B+=16){for(var G=oe[0],pe=oe[1],le=oe[2],W=oe[3],te=oe[4],ae=oe[5],_e=oe[6],Le=oe[7],We=0;We<64;We++)_[We]=We<16?ee[We+B]:de(de(de(ie(x=_[We-2],17)^ie(x,19)^K(x,10),_[We-7]),ie(x=_[We-15],7)^ie(x,18)^K(x,3)),_[We-16]),Ae=de(de(de(de(Le,ie(x=te,6)^ie(x,11)^ie(x,25)),te&ae^~te&_e),ue[We]),_[We]),O=de(ie(O=G,2)^ie(O,13)^ie(O,22),G&pe^G&le^pe&le),Le=_e,_e=ae,ae=te,te=de(W,Ae),W=le,le=pe,pe=G,G=de(Ae,O);oe[0]=de(G,oe[0]),oe[1]=de(pe,oe[1]),oe[2]=de(le,oe[2]),oe[3]=de(W,oe[3]),oe[4]=de(te,oe[4]),oe[5]=de(ae,oe[5]),oe[6]=de(_e,oe[6]),oe[7]=de(Le,oe[7])}return oe}var Q=E("./helpers"),ie=function(ee,he){return ee>>>he|ee<<32-he},K=function(ee,he){return ee>>>he};c.exports=function(ee){return Q.hash(ee,V,32,!0)}}).call(this,E("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(E,c,g){(function(s,f,d,S,R,U,q,z,ve){g.read=function(de,V,Q,ie,B){var ee,he,Ae=8*B-ie-1,ue=(1<<Ae)-1,oe=ue>>1,_=-7,O=Q?B-1:0,x=Q?-1:1;for(B=de[V+O],O+=x,ee=B&(1<<-_)-1,B>>=-_,_+=Ae;0<_;ee=256*ee+de[V+O],O+=x,_-=8);for(he=ee&(1<<-_)-1,ee>>=-_,_+=ie;0<_;he=256*he+de[V+O],O+=x,_-=8);if(0===ee)ee=1-oe;else{if(ee===ue)return he?NaN:1/0*(B?-1:1);he+=Math.pow(2,ie),ee-=oe}return(B?-1:1)*he*Math.pow(2,ee-ie)},g.write=function(de,V,Q,ie,K,G){var he,Ae,ue=8*G-K-1,oe=(1<<ue)-1,_=oe>>1,O=23===K?Math.pow(2,-24)-Math.pow(2,-77):0,x=ie?0:G-1,B=ie?1:-1;for(G=V<0||0===V&&1/V<0?1:0,V=Math.abs(V),isNaN(V)||V===1/0?(Ae=isNaN(V)?1:0,he=oe):(he=Math.floor(Math.log(V)/Math.LN2),V*(ie=Math.pow(2,-he))<1&&(he--,ie*=2),2<=(V+=1<=he+_?O/ie:O*Math.pow(2,1-_))*ie&&(he++,ie/=2),oe<=he+_?(Ae=0,he=oe):1<=he+_?(Ae=(V*ie-1)*Math.pow(2,K),he+=_):(Ae=V*Math.pow(2,_-1)*Math.pow(2,K),he=0));8<=K;de[Q+x]=255&Ae,x+=B,Ae/=256,K-=8);for(he=he<<K|Ae,ue+=K;0<ue;de[Q+x]=255&he,x+=B,he/=256,ue-=8);de[Q+x-B]|=128*G}}).call(this,E("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/ieee754/index.js","/node_modules/gulp-browserify/node_modules/ieee754")},{buffer:3,lYpoI2:11}],11:[function(E,c,g){(function(s,f,d,S,R,U,q,z,ve){var de,V,Q;function ie(){}(s=c.exports={}).nextTick=(V=typeof window<"u"&&window.setImmediate,Q=typeof window<"u"&&window.postMessage&&window.addEventListener,V?function(K){return window.setImmediate(K)}:Q?(de=[],window.addEventListener("message",function(K){var ee=K.source;ee!==window&&null!==ee||"process-tick"!==K.data||(K.stopPropagation(),0<de.length&&de.shift()())},!0),function(K){de.push(K),window.postMessage("process-tick","*")}):function(K){setTimeout(K,0)}),s.title="browser",s.browser=!0,s.env={},s.argv=[],s.on=ie,s.addListener=ie,s.once=ie,s.off=ie,s.removeListener=ie,s.removeAllListeners=ie,s.emit=ie,s.binding=function(K){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(K){throw new Error("process.chdir is not supported")}}).call(this,E("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:11}]},{},[1])(1)},5630:(se,E,c)=>{"use strict";function s(ie,K){void 0===K&&(K={});for(var ee=function g(ie){for(var K=[],ee=0;ee<ie.length;){var he=ie[ee];if("*"!==he&&"+"!==he&&"?"!==he)if("\\"!==he)if("{"!==he)if("}"!==he)if(":"!==he)if("("!==he)K.push({type:"CHAR",index:ee,value:ie[ee++]});else{var _=1,O="";if("?"===ie[ue=ee+1])throw new TypeError('Pattern cannot start with "?" at '.concat(ue));for(;ue<ie.length;)if("\\"!==ie[ue]){if(")"===ie[ue]){if(0==--_){ue++;break}}else if("("===ie[ue]&&(_++,"?"!==ie[ue+1]))throw new TypeError("Capturing groups are not allowed at ".concat(ue));O+=ie[ue++]}else O+=ie[ue++]+ie[ue++];if(_)throw new TypeError("Unbalanced pattern at ".concat(ee));if(!O)throw new TypeError("Missing pattern at ".concat(ee));K.push({type:"PATTERN",index:ee,value:O}),ee=ue}else{for(var Ae="",ue=ee+1;ue<ie.length;){var oe=ie.charCodeAt(ue);if(!(oe>=48&&oe<=57||oe>=65&&oe<=90||oe>=97&&oe<=122||95===oe))break;Ae+=ie[ue++]}if(!Ae)throw new TypeError("Missing parameter name at ".concat(ee));K.push({type:"NAME",index:ee,value:Ae}),ee=ue}else K.push({type:"CLOSE",index:ee,value:ie[ee++]});else K.push({type:"OPEN",index:ee,value:ie[ee++]});else K.push({type:"ESCAPED_CHAR",index:ee++,value:ie[ee++]});else K.push({type:"MODIFIER",index:ee,value:ie[ee++]})}return K.push({type:"END",index:ee,value:""}),K}(ie),he=K.prefixes,Ae=void 0===he?"./":he,ue="[^".concat(U(K.delimiter||"/#?"),"]+?"),oe=[],_=0,O=0,x="",B=function(we){if(O<ee.length&&ee[O].type===we)return ee[O++].value},G=function(we){var ze=B(we);if(void 0!==ze)return ze;var Ke=ee[O],Ze=Ke.index;throw new TypeError("Unexpected ".concat(Ke.type," at ").concat(Ze,", expected ").concat(we))},pe=function(){for(var ze,we="";ze=B("CHAR")||B("ESCAPED_CHAR");)we+=ze;return we};O<ee.length;){var le=B("CHAR"),W=B("NAME"),te=B("PATTERN");if(W||te)-1===Ae.indexOf(ae=le||"")&&(x+=ae,ae=""),x&&(oe.push(x),x=""),oe.push({name:W||_++,prefix:ae,suffix:"",pattern:te||ue,modifier:B("MODIFIER")||""});else{var _e=le||B("ESCAPED_CHAR");if(_e)x+=_e;else if(x&&(oe.push(x),x=""),B("OPEN")){var ae=pe(),We=B("NAME")||"",dt=B("PATTERN")||"",Ye=pe();G("CLOSE"),oe.push({name:We||(dt?_++:""),pattern:We&&!dt?ue:dt,prefix:ae,suffix:Ye,modifier:B("MODIFIER")||""})}else G("END")}}return oe}function f(ie,K){return function d(ie,K){void 0===K&&(K={});var ee=q(K),he=K.encode,Ae=void 0===he?function(O){return O}:he,ue=K.validate,oe=void 0===ue||ue,_=ie.map(function(O){if("object"==typeof O)return new RegExp("^(?:".concat(O.pattern,")$"),ee)});return function(O){for(var x="",B=0;B<ie.length;B++){var G=ie[B];if("string"!=typeof G){var pe=O?O[G.name]:void 0,le="?"===G.modifier||"*"===G.modifier,W="*"===G.modifier||"+"===G.modifier;if(Array.isArray(pe)){if(!W)throw new TypeError('Expected "'.concat(G.name,'" to not repeat, but got an array'));if(0===pe.length){if(le)continue;throw new TypeError('Expected "'.concat(G.name,'" to not be empty'))}for(var te=0;te<pe.length;te++){var ae=Ae(pe[te],G);if(oe&&!_[B].test(ae))throw new TypeError('Expected all "'.concat(G.name,'" to match "').concat(G.pattern,'", but got "').concat(ae,'"'));x+=G.prefix+ae+G.suffix}}else if("string"!=typeof pe&&"number"!=typeof pe){if(!le){var _e=W?"an array":"a string";throw new TypeError('Expected "'.concat(G.name,'" to be ').concat(_e))}}else{if(ae=Ae(String(pe),G),oe&&!_[B].test(ae))throw new TypeError('Expected "'.concat(G.name,'" to match "').concat(G.pattern,'", but got "').concat(ae,'"'));x+=G.prefix+ae+G.suffix}}else x+=G}return x}}(s(ie,K),K)}function S(ie,K){var ee=[];return function R(ie,K,ee){void 0===ee&&(ee={});var he=ee.decode,Ae=void 0===he?function(ue){return ue}:he;return function(ue){var oe=ie.exec(ue);if(!oe)return!1;for(var _=oe[0],O=oe.index,x=Object.create(null),B=function(pe){if(void 0===oe[pe])return"continue";var le=K[pe-1];x[le.name]="*"===le.modifier||"+"===le.modifier?oe[pe].split(le.prefix+le.suffix).map(function(W){return Ae(W,le)}):Ae(oe[pe],le)},G=1;G<oe.length;G++)B(G);return{path:_,index:O,params:x}}}(Q(ie,ee,K),ee,K)}function U(ie){return ie.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function q(ie){return ie&&ie.sensitive?"":"i"}function Q(ie,K,ee){return ie instanceof RegExp?function z(ie,K){if(!K)return ie;for(var ee=/\((?:\?<(.*?)>)?(?!\?)/g,he=0,Ae=ee.exec(ie.source);Ae;)K.push({name:Ae[1]||he++,prefix:"",suffix:"",modifier:"",pattern:""}),Ae=ee.exec(ie.source);return ie}(ie,K):Array.isArray(ie)?function ve(ie,K,ee){var he=ie.map(function(Ae){return Q(Ae,K,ee).source});return new RegExp("(?:".concat(he.join("|"),")"),q(ee))}(ie,K,ee):function de(ie,K,ee){return function V(ie,K,ee){void 0===ee&&(ee={});for(var he=ee.strict,Ae=void 0!==he&&he,ue=ee.start,oe=void 0===ue||ue,_=ee.end,O=void 0===_||_,x=ee.encode,B=void 0===x?function(Ze){return Ze}:x,G=ee.delimiter,pe=void 0===G?"/#?":G,le=ee.endsWith,te="[".concat(U(void 0===le?"":le),"]|$"),ae="[".concat(U(pe),"]"),_e=oe?"^":"",Le=0,We=ie;Le<We.length;Le++){var dt=We[Le];if("string"==typeof dt)_e+=U(B(dt));else{var Ye=U(B(dt.prefix)),we=U(B(dt.suffix));if(dt.pattern)if(K&&K.push(dt),Ye||we)if("+"===dt.modifier||"*"===dt.modifier){var ze="*"===dt.modifier?"?":"";_e+="(?:".concat(Ye,"((?:").concat(dt.pattern,")(?:").concat(we).concat(Ye,"(?:").concat(dt.pattern,"))*)").concat(we,")").concat(ze)}else _e+="(?:".concat(Ye,"(").concat(dt.pattern,")").concat(we,")").concat(dt.modifier);else _e+="+"===dt.modifier||"*"===dt.modifier?"((?:".concat(dt.pattern,")").concat(dt.modifier,")"):"(".concat(dt.pattern,")").concat(dt.modifier);else _e+="(?:".concat(Ye).concat(we,")").concat(dt.modifier)}}if(O)Ae||(_e+="".concat(ae,"?")),_e+=ee.endsWith?"(?=".concat(te,")"):"$";else{var Ke=ie[ie.length-1],je="string"==typeof Ke?ae.indexOf(Ke[Ke.length-1])>-1:void 0===Ke;Ae||(_e+="(?:".concat(ae,"(?=").concat(te,"))?")),je||(_e+="(?=".concat(ae,"|").concat(te,")"))}return new RegExp(_e,q(ee))}(s(ie,ee),K,ee)}(ie,K,ee)}c.d(E,{YW:()=>S,qg:()=>s,wE:()=>f})},4412:(se,E,c)=>{"use strict";c.d(E,{t:()=>s});var g=c(1413);class s extends g.B{constructor(d){super(),this._value=d}get value(){return this.getValue()}_subscribe(d){const S=super._subscribe(d);return!S.closed&&d.next(this._value),S}getValue(){const{hasError:d,thrownError:S,_value:R}=this;if(d)throw S;return this._throwIfClosed(),R}next(d){super.next(this._value=d)}}},1985:(se,E,c)=>{"use strict";c.d(E,{c:()=>q});var g=c(7707),s=c(8359),f=c(3494),d=c(1203),S=c(1026),R=c(8071),U=c(9786);let q=(()=>{class V{constructor(ie){ie&&(this._subscribe=ie)}lift(ie){const K=new V;return K.source=this,K.operator=ie,K}subscribe(ie,K,ee){const he=function de(V){return V&&V instanceof g.vU||function ve(V){return V&&(0,R.T)(V.next)&&(0,R.T)(V.error)&&(0,R.T)(V.complete)}(V)&&(0,s.Uv)(V)}(ie)?ie:new g.Ms(ie,K,ee);return(0,U.Y)(()=>{const{operator:Ae,source:ue}=this;he.add(Ae?Ae.call(he,ue):ue?this._subscribe(he):this._trySubscribe(he))}),he}_trySubscribe(ie){try{return this._subscribe(ie)}catch(K){ie.error(K)}}forEach(ie,K){return new(K=z(K))((ee,he)=>{const Ae=new g.Ms({next:ue=>{try{ie(ue)}catch(oe){he(oe),Ae.unsubscribe()}},error:he,complete:ee});this.subscribe(Ae)})}_subscribe(ie){var K;return null===(K=this.source)||void 0===K?void 0:K.subscribe(ie)}[f.s](){return this}pipe(...ie){return(0,d.m)(ie)(this)}toPromise(ie){return new(ie=z(ie))((K,ee)=>{let he;this.subscribe(Ae=>he=Ae,Ae=>ee(Ae),()=>K(he))})}}return V.create=Q=>new V(Q),V})();function z(V){var Q;return null!==(Q=null!=V?V:S.$.Promise)&&void 0!==Q?Q:Promise}},2771:(se,E,c)=>{"use strict";c.d(E,{m:()=>f});var g=c(1413),s=c(6129);class f extends g.B{constructor(S=1/0,R=1/0,U=s.U){super(),this._bufferSize=S,this._windowTime=R,this._timestampProvider=U,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=R===1/0,this._bufferSize=Math.max(1,S),this._windowTime=Math.max(1,R)}next(S){const{isStopped:R,_buffer:U,_infiniteTimeWindow:q,_timestampProvider:z,_windowTime:ve}=this;R||(U.push(S),!q&&U.push(z.now()+ve)),this._trimBuffer(),super.next(S)}_subscribe(S){this._throwIfClosed(),this._trimBuffer();const R=this._innerSubscribe(S),{_infiniteTimeWindow:U,_buffer:q}=this,z=q.slice();for(let ve=0;ve<z.length&&!S.closed;ve+=U?1:2)S.next(z[ve]);return this._checkFinalizedStatuses(S),R}_trimBuffer(){const{_bufferSize:S,_timestampProvider:R,_buffer:U,_infiniteTimeWindow:q}=this,z=(q?1:2)*S;if(S<1/0&&z<U.length&&U.splice(0,U.length-z),!q){const ve=R.now();let de=0;for(let V=1;V<U.length&&U[V]<=ve;V+=2)de=V;de&&U.splice(0,de+1)}}}},1413:(se,E,c)=>{"use strict";c.d(E,{B:()=>U});var g=c(1985),s=c(8359);const d=(0,c(1853).L)(z=>function(){z(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var S=c(7908),R=c(9786);let U=(()=>{class z extends g.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(de){const V=new q(this,this);return V.operator=de,V}_throwIfClosed(){if(this.closed)throw new d}next(de){(0,R.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const V of this.currentObservers)V.next(de)}})}error(de){(0,R.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=de;const{observers:V}=this;for(;V.length;)V.shift().error(de)}})}complete(){(0,R.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:de}=this;for(;de.length;)de.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var de;return(null===(de=this.observers)||void 0===de?void 0:de.length)>0}_trySubscribe(de){return this._throwIfClosed(),super._trySubscribe(de)}_subscribe(de){return this._throwIfClosed(),this._checkFinalizedStatuses(de),this._innerSubscribe(de)}_innerSubscribe(de){const{hasError:V,isStopped:Q,observers:ie}=this;return V||Q?s.Kn:(this.currentObservers=null,ie.push(de),new s.yU(()=>{this.currentObservers=null,(0,S.o)(ie,de)}))}_checkFinalizedStatuses(de){const{hasError:V,thrownError:Q,isStopped:ie}=this;V?de.error(Q):ie&&de.complete()}asObservable(){const de=new g.c;return de.source=this,de}}return z.create=(ve,de)=>new q(ve,de),z})();class q extends U{constructor(ve,de){super(),this.destination=ve,this.source=de}next(ve){var de,V;null===(V=null===(de=this.destination)||void 0===de?void 0:de.next)||void 0===V||V.call(de,ve)}error(ve){var de,V;null===(V=null===(de=this.destination)||void 0===de?void 0:de.error)||void 0===V||V.call(de,ve)}complete(){var ve,de;null===(de=null===(ve=this.destination)||void 0===ve?void 0:ve.complete)||void 0===de||de.call(ve)}_subscribe(ve){var de,V;return null!==(V=null===(de=this.source)||void 0===de?void 0:de.subscribe(ve))&&void 0!==V?V:s.Kn}}},7707:(se,E,c)=>{"use strict";c.d(E,{Ms:()=>ee,vU:()=>V});var g=c(8071),s=c(8359),f=c(1026),d=c(5334),S=c(5343);const R=z("C",void 0,void 0);function z(_,O,x){return{kind:_,value:O,error:x}}var ve=c(9270),de=c(9786);class V extends s.yU{constructor(O){super(),this.isStopped=!1,O?(this.destination=O,(0,s.Uv)(O)&&O.add(this)):this.destination=oe}static create(O,x,B){return new ee(O,x,B)}next(O){this.isStopped?ue(function q(_){return z("N",_,void 0)}(O),this):this._next(O)}error(O){this.isStopped?ue(function U(_){return z("E",void 0,_)}(O),this):(this.isStopped=!0,this._error(O))}complete(){this.isStopped?ue(R,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(O){this.destination.next(O)}_error(O){try{this.destination.error(O)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Q=Function.prototype.bind;function ie(_,O){return Q.call(_,O)}class K{constructor(O){this.partialObserver=O}next(O){const{partialObserver:x}=this;if(x.next)try{x.next(O)}catch(B){he(B)}}error(O){const{partialObserver:x}=this;if(x.error)try{x.error(O)}catch(B){he(B)}else he(O)}complete(){const{partialObserver:O}=this;if(O.complete)try{O.complete()}catch(x){he(x)}}}class ee extends V{constructor(O,x,B){let G;if(super(),(0,g.T)(O)||!O)G={next:null!=O?O:void 0,error:null!=x?x:void 0,complete:null!=B?B:void 0};else{let pe;this&&f.$.useDeprecatedNextContext?(pe=Object.create(O),pe.unsubscribe=()=>this.unsubscribe(),G={next:O.next&&ie(O.next,pe),error:O.error&&ie(O.error,pe),complete:O.complete&&ie(O.complete,pe)}):G=O}this.destination=new K(G)}}function he(_){f.$.useDeprecatedSynchronousErrorHandling?(0,de.l)(_):(0,d.m)(_)}function ue(_,O){const{onStoppedNotification:x}=f.$;x&&ve.f.setTimeout(()=>x(_,O))}const oe={closed:!0,next:S.l,error:function Ae(_){throw _},complete:S.l}},8359:(se,E,c)=>{"use strict";c.d(E,{Kn:()=>R,yU:()=>S,Uv:()=>U});var g=c(8071);const f=(0,c(1853).L)(z=>function(de){z(this),this.message=de?"".concat(de.length," errors occurred during unsubscription:\n").concat(de.map((V,Q)=>"".concat(Q+1,") ").concat(V.toString())).join("\n ")):"",this.name="UnsubscriptionError",this.errors=de});var d=c(7908);class S{constructor(ve){this.initialTeardown=ve,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let ve;if(!this.closed){this.closed=!0;const{_parentage:de}=this;if(de)if(this._parentage=null,Array.isArray(de))for(const ie of de)ie.remove(this);else de.remove(this);const{initialTeardown:V}=this;if((0,g.T)(V))try{V()}catch(ie){ve=ie instanceof f?ie.errors:[ie]}const{_finalizers:Q}=this;if(Q){this._finalizers=null;for(const ie of Q)try{q(ie)}catch(K){ve=null!=ve?ve:[],K instanceof f?ve=[...ve,...K.errors]:ve.push(K)}}if(ve)throw new f(ve)}}add(ve){var de;if(ve&&ve!==this)if(this.closed)q(ve);else{if(ve instanceof S){if(ve.closed||ve._hasParent(this))return;ve._addParent(this)}(this._finalizers=null!==(de=this._finalizers)&&void 0!==de?de:[]).push(ve)}}_hasParent(ve){const{_parentage:de}=this;return de===ve||Array.isArray(de)&&de.includes(ve)}_addParent(ve){const{_parentage:de}=this;this._parentage=Array.isArray(de)?(de.push(ve),de):de?[de,ve]:ve}_removeParent(ve){const{_parentage:de}=this;de===ve?this._parentage=null:Array.isArray(de)&&(0,d.o)(de,ve)}remove(ve){const{_finalizers:de}=this;de&&(0,d.o)(de,ve),ve instanceof S&&ve._removeParent(this)}}S.EMPTY=(()=>{const z=new S;return z.closed=!0,z})();const R=S.EMPTY;function U(z){return z instanceof S||z&&"closed"in z&&(0,g.T)(z.remove)&&(0,g.T)(z.add)&&(0,g.T)(z.unsubscribe)}function q(z){(0,g.T)(z)?z():z.unsubscribe()}},1026:(se,E,c)=>{"use strict";c.d(E,{$:()=>g});const g={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},4843:(se,E,c)=>{"use strict";c.d(E,{_:()=>f});var g=c(9350),s=c(7707);function f(d,S){const R="object"==typeof S;return new Promise((U,q)=>{const z=new s.Ms({next:ve=>{U(ve),z.unsubscribe()},error:q,complete:()=>{R?U(S.defaultValue):q(new g.G)}});d.subscribe(z)})}},4572:(se,E,c)=>{"use strict";c.d(E,{z:()=>ve});var g=c(1985),s=c(3073),f=c(9724),d=c(3669),S=c(6450),R=c(9326),U=c(8496),q=c(4360),z=c(5225);function ve(...Q){const ie=(0,R.lI)(Q),K=(0,R.ms)(Q),{args:ee,keys:he}=(0,s.D)(Q);if(0===ee.length)return(0,f.H)([],ie);const Ae=new g.c(function de(Q,ie,K=d.D){return ee=>{V(ie,()=>{const{length:he}=Q,Ae=new Array(he);let ue=he,oe=he;for(let _=0;_<he;_++)V(ie,()=>{const O=(0,f.H)(Q[_],ie);let x=!1;O.subscribe((0,q._)(ee,B=>{Ae[_]=B,x||(x=!0,oe--),oe||ee.next(K(Ae.slice()))},()=>{--ue||ee.complete()}))},ee)},ee)}}(ee,ie,he?ue=>(0,U.e)(he,ue):d.D));return K?Ae.pipe((0,S.I)(K)):Ae}function V(Q,ie,K){Q?(0,z.N)(K,Q,ie):ie()}},8793:(se,E,c)=>{"use strict";c.d(E,{x:()=>S});var g=c(6365),f=c(9326),d=c(9724);function S(...R){return function s(){return(0,g.U)(1)}()((0,d.H)(R,(0,f.lI)(R)))}},983:(se,E,c)=>{"use strict";c.d(E,{w:()=>s});const s=new(c(1985).c)(S=>S.complete())},7468:(se,E,c)=>{"use strict";c.d(E,{p:()=>q});var g=c(1985),s=c(3073),f=c(8750),d=c(9326),S=c(4360),R=c(6450),U=c(8496);function q(...z){const ve=(0,d.ms)(z),{args:de,keys:V}=(0,s.D)(z),Q=new g.c(ie=>{const{length:K}=de;if(!K)return void ie.complete();const ee=new Array(K);let he=K,Ae=K;for(let ue=0;ue<K;ue++){let oe=!1;(0,f.Tg)(de[ue]).subscribe((0,S._)(ie,_=>{oe||(oe=!0,Ae--),ee[ue]=_},()=>he--,void 0,()=>{(!he||!oe)&&(Ae||ie.next(V?(0,U.e)(V,ee):ee),ie.complete())}))}});return ve?Q.pipe((0,R.I)(ve)):Q}},9724:(se,E,c)=>{"use strict";c.d(E,{H:()=>f});var g=c(3083),s=c(8750);function f(d,S){return S?(0,g.c)(d,S):(0,s.Tg)(d)}},3726:(se,E,c)=>{"use strict";c.d(E,{R:()=>ve});var g=c(8750),s=c(1985),f=c(1397),d=c(7441),S=c(8071),R=c(6450);const U=["addListener","removeListener"],q=["addEventListener","removeEventListener"],z=["on","off"];function ve(K,ee,he,Ae){if((0,S.T)(he)&&(Ae=he,he=void 0),Ae)return ve(K,ee,he).pipe((0,R.I)(Ae));const[ue,oe]=function ie(K){return(0,S.T)(K.addEventListener)&&(0,S.T)(K.removeEventListener)}(K)?q.map(_=>O=>K[_](ee,O,he)):function V(K){return(0,S.T)(K.addListener)&&(0,S.T)(K.removeListener)}(K)?U.map(de(K,ee)):function Q(K){return(0,S.T)(K.on)&&(0,S.T)(K.off)}(K)?z.map(de(K,ee)):[];if(!ue&&(0,d.X)(K))return(0,f.Z)(_=>ve(_,ee,he))((0,g.Tg)(K));if(!ue)throw new TypeError("Invalid event target");return new s.c(_=>{const O=(...x)=>_.next(1<x.length?x:x[0]);return ue(O),()=>oe(O)})}function de(K,ee){return he=>Ae=>K[he](ee,Ae)}},8750:(se,E,c)=>{"use strict";c.d(E,{Tg:()=>Q});var g=c(1635),s=c(7441),f=c(9858),d=c(1985),S=c(5055),R=c(7953),U=c(591),q=c(5397),z=c(5196),ve=c(8071),de=c(5334),V=c(3494);function Q(_){if(_ instanceof d.c)return _;if(null!=_){if((0,S.l)(_))return function ie(_){return new d.c(O=>{const x=_[V.s]();if((0,ve.T)(x.subscribe))return x.subscribe(O);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(_);if((0,s.X)(_))return function K(_){return new d.c(O=>{for(let x=0;x<_.length&&!O.closed;x++)O.next(_[x]);O.complete()})}(_);if((0,f.y)(_))return function ee(_){return new d.c(O=>{_.then(x=>{O.closed||(O.next(x),O.complete())},x=>O.error(x)).then(null,de.m)})}(_);if((0,R.T)(_))return Ae(_);if((0,q.x)(_))return function he(_){return new d.c(O=>{for(const x of _)if(O.next(x),O.closed)return;O.complete()})}(_);if((0,z.U)(_))return function ue(_){return Ae((0,z.C)(_))}(_)}throw(0,U.L)(_)}function Ae(_){return new d.c(O=>{(function oe(_,O){var x,B,G,pe;return(0,g.sH)(this,void 0,void 0,function*(){try{for(x=(0,g.xN)(_);!(B=yield x.next()).done;)if(O.next(B.value),O.closed)return}catch(le){G={error:le}}finally{try{B&&!B.done&&(pe=x.return)&&(yield pe.call(x))}finally{if(G)throw G.error}}O.complete()})})(_,O).catch(x=>O.error(x))})}},7786:(se,E,c)=>{"use strict";c.d(E,{h:()=>R});var g=c(6365),s=c(8750),f=c(983),d=c(9326),S=c(9724);function R(...U){const q=(0,d.lI)(U),z=(0,d.R0)(U,1/0),ve=U;return ve.length?1===ve.length?(0,s.Tg)(ve[0]):(0,g.U)(z)((0,S.H)(ve,q)):f.w}},7673:(se,E,c)=>{"use strict";c.d(E,{of:()=>f});var g=c(9326),s=c(9724);function f(...d){const S=(0,g.lI)(d);return(0,s.H)(d,S)}},8810:(se,E,c)=>{"use strict";c.d(E,{$:()=>f});var g=c(1985),s=c(8071);function f(d,S){const R=(0,s.T)(d)?d:()=>d,U=q=>q.error(R());return new g.c(S?q=>S.schedule(U,0,q):U)}},1584:(se,E,c)=>{"use strict";c.d(E,{O:()=>S});var g=c(1985),s=c(3236),f=c(9470);function S(R=0,U,q=s.b){let z=-1;return null!=U&&((0,f.m)(U)?q=U:z=U),new g.c(ve=>{let de=function d(R){return R instanceof Date&&!isNaN(R)}(R)?+R-q.now():R;de<0&&(de=0);let V=0;return q.schedule(function(){ve.closed||(ve.next(V++),0<=z?this.schedule(void 0,z):ve.complete())},de)})}},4360:(se,E,c)=>{"use strict";c.d(E,{H:()=>f,_:()=>s});var g=c(7707);function s(d,S,R,U,q){return new f(d,S,R,U,q)}class f extends g.vU{constructor(S,R,U,q,z,ve){super(S),this.onFinalize=z,this.shouldUnsubscribe=ve,this._next=R?function(de){try{R(de)}catch(V){S.error(V)}}:super._next,this._error=q?function(de){try{q(de)}catch(V){S.error(V)}finally{this.unsubscribe()}}:super._error,this._complete=U?function(){try{U()}catch(de){S.error(de)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var S;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:R}=this;super.unsubscribe(),!R&&(null===(S=this.onFinalize)||void 0===S||S.call(this))}}}},9437:(se,E,c)=>{"use strict";c.d(E,{W:()=>d});var g=c(8750),s=c(4360),f=c(9974);function d(S){return(0,f.N)((R,U)=>{let ve,q=null,z=!1;q=R.subscribe((0,s._)(U,void 0,void 0,de=>{ve=(0,g.Tg)(S(de,d(S)(R))),q?(q.unsubscribe(),q=null,ve.subscribe(U)):z=!0})),z&&(q.unsubscribe(),q=null,ve.subscribe(U))})}},274:(se,E,c)=>{"use strict";c.d(E,{H:()=>f});var g=c(1397),s=c(8071);function f(d,S){return(0,s.T)(S)?(0,g.Z)(d,S,1):(0,g.Z)(d,1)}},152:(se,E,c)=>{"use strict";c.d(E,{B:()=>d});var g=c(3236),s=c(9974),f=c(4360);function d(S,R=g.E){return(0,s.N)((U,q)=>{let z=null,ve=null,de=null;const V=()=>{if(z){z.unsubscribe(),z=null;const ie=ve;ve=null,q.next(ie)}};function Q(){const ie=de+S,K=R.now();if(K<ie)return z=this.schedule(void 0,ie-K),void q.add(z);V()}U.subscribe((0,f._)(q,ie=>{ve=ie,de=R.now(),z||(z=R.schedule(Q,S),q.add(z))},()=>{V(),q.complete()},void 0,()=>{ve=z=null}))})}},9901:(se,E,c)=>{"use strict";c.d(E,{U:()=>f});var g=c(9974),s=c(4360);function f(d){return(0,g.N)((S,R)=>{let U=!1;S.subscribe((0,s._)(R,q=>{U=!0,R.next(q)},()=>{U||R.next(d),R.complete()}))})}},3294:(se,E,c)=>{"use strict";c.d(E,{F:()=>d});var g=c(3669),s=c(9974),f=c(4360);function d(R,U=g.D){return R=null!=R?R:S,(0,s.N)((q,z)=>{let ve,de=!0;q.subscribe((0,f._)(z,V=>{const Q=U(V);(de||!R(ve,Q))&&(de=!1,ve=Q,z.next(V))}))})}function S(R,U){return R===U}},5964:(se,E,c)=>{"use strict";c.d(E,{p:()=>f});var g=c(9974),s=c(4360);function f(d,S){return(0,g.N)((R,U)=>{let q=0;R.subscribe((0,s._)(U,z=>d.call(S,z,q++)&&U.next(z)))})}},980:(se,E,c)=>{"use strict";c.d(E,{j:()=>s});var g=c(9974);function s(f){return(0,g.N)((d,S)=>{try{d.subscribe(S)}finally{S.add(f)}})}},1594:(se,E,c)=>{"use strict";c.d(E,{$:()=>U});var g=c(9350),s=c(5964),f=c(6697),d=c(9901),S=c(3774),R=c(3669);function U(q,z){const ve=arguments.length>=2;return de=>de.pipe(q?(0,s.p)((V,Q)=>q(V,Q,de)):R.D,(0,f.s)(1),ve?(0,d.U)(z):(0,S.v)(()=>new g.G))}},6354:(se,E,c)=>{"use strict";c.d(E,{T:()=>f});var g=c(9974),s=c(4360);function f(d,S){return(0,g.N)((R,U)=>{let q=0;R.subscribe((0,s._)(U,z=>{U.next(d.call(S,z,q++))}))})}},6365:(se,E,c)=>{"use strict";c.d(E,{U:()=>f});var g=c(1397),s=c(3669);function f(d=1/0){return(0,g.Z)(s.D,d)}},1397:(se,E,c)=>{"use strict";c.d(E,{Z:()=>q});var g=c(6354),s=c(8750),f=c(9974),d=c(5225),S=c(4360),U=c(8071);function q(z,ve,de=1/0){return(0,U.T)(ve)?q((V,Q)=>(0,g.T)((ie,K)=>ve(V,ie,Q,K))((0,s.Tg)(z(V,Q))),de):("number"==typeof ve&&(de=ve),(0,f.N)((V,Q)=>function R(z,ve,de,V,Q,ie,K,ee){const he=[];let Ae=0,ue=0,oe=!1;const _=()=>{oe&&!he.length&&!Ae&&ve.complete()},O=B=>Ae<V?x(B):he.push(B),x=B=>{ie&&ve.next(B),Ae++;let G=!1;(0,s.Tg)(de(B,ue++)).subscribe((0,S._)(ve,pe=>{null==Q||Q(pe),ie?O(pe):ve.next(pe)},()=>{G=!0},void 0,()=>{if(G)try{for(Ae--;he.length&&Ae<V;){const pe=he.shift();K?(0,d.N)(ve,K,()=>x(pe)):x(pe)}_()}catch(pe){ve.error(pe)}}))};return z.subscribe((0,S._)(ve,O,()=>{oe=!0,_()})),()=>{null==ee||ee()}}(V,Q,z,de)))}},941:(se,E,c)=>{"use strict";c.d(E,{Q:()=>d});var g=c(5225),s=c(9974),f=c(4360);function d(S,R=0){return(0,s.N)((U,q)=>{U.subscribe((0,f._)(q,z=>(0,g.N)(q,S,()=>q.next(z),R),()=>(0,g.N)(q,S,()=>q.complete(),R),z=>(0,g.N)(q,S,()=>q.error(z),R)))})}},9085:(se,E,c)=>{"use strict";c.d(E,{E:()=>s});var g=c(6354);function s(...f){const d=f.length;if(0===d)throw new Error("list of properties cannot be empty.");return(0,g.T)(S=>{let R=S;for(let U=0;U<d;U++){const q=null==R?void 0:R[f[U]];if(!(typeof q<"u"))return;R=q}return R})}},2816:(se,E,c)=>{"use strict";c.d(E,{S:()=>d});var g=c(9974),s=c(4360);function d(S,R){return(0,g.N)(function f(S,R,U,q,z){return(ve,de)=>{let V=U,Q=R,ie=0;ve.subscribe((0,s._)(de,K=>{const ee=ie++;Q=V?S(Q,K,ee):(V=!0,K),q&&de.next(Q)},z&&(()=>{V&&de.next(Q),de.complete()})))}}(S,R,arguments.length>=2,!0))}},9568:(se,E,c)=>{"use strict";c.d(E,{t:()=>q});var g=c(2771),s=c(8750),f=c(1413),d=c(7707),S=c(9974);function U(z,ve,...de){if(!0===ve)return void z();if(!1===ve)return;const V=new d.Ms({next:()=>{V.unsubscribe(),z()}});return(0,s.Tg)(ve(...de)).subscribe(V)}function q(z,ve,de){let V,Q=!1;return z&&"object"==typeof z?({bufferSize:V=1/0,windowTime:ve=1/0,refCount:Q=!1,scheduler:de}=z):V=null!=z?z:1/0,function R(z={}){const{connector:ve=()=>new f.B,resetOnError:de=!0,resetOnComplete:V=!0,resetOnRefCountZero:Q=!0}=z;return ie=>{let K,ee,he,Ae=0,ue=!1,oe=!1;const _=()=>{null==ee||ee.unsubscribe(),ee=void 0},O=()=>{_(),K=he=void 0,ue=oe=!1},x=()=>{const B=K;O(),null==B||B.unsubscribe()};return(0,S.N)((B,G)=>{Ae++,!oe&&!ue&&_();const pe=he=null!=he?he:ve();G.add(()=>{Ae--,0===Ae&&!oe&&!ue&&(ee=U(x,Q))}),pe.subscribe(G),!K&&Ae>0&&(K=new d.Ms({next:le=>pe.next(le),error:le=>{oe=!0,_(),ee=U(O,de,le),pe.error(le)},complete:()=>{ue=!0,_(),ee=U(O,V),pe.complete()}}),(0,s.Tg)(B).subscribe(K))})(ie)}}({connector:()=>new g.m(V,ve,de),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:Q})}},5245:(se,E,c)=>{"use strict";c.d(E,{i:()=>s});var g=c(5964);function s(f){return(0,g.p)((d,S)=>f<=S)}},9172:(se,E,c)=>{"use strict";c.d(E,{Z:()=>d});var g=c(8793),s=c(9326),f=c(9974);function d(...S){const R=(0,s.lI)(S);return(0,f.N)((U,q)=>{(R?(0,g.x)(S,U,R):(0,g.x)(S,U)).subscribe(q)})}},5558:(se,E,c)=>{"use strict";c.d(E,{n:()=>d});var g=c(8750),s=c(9974),f=c(4360);function d(S,R){return(0,s.N)((U,q)=>{let z=null,ve=0,de=!1;const V=()=>de&&!z&&q.complete();U.subscribe((0,f._)(q,Q=>{null==z||z.unsubscribe();let ie=0;const K=ve++;(0,g.Tg)(S(Q,K)).subscribe(z=(0,f._)(q,ee=>q.next(R?R(Q,ee,K,ie++):ee),()=>{z=null,V()}))},()=>{de=!0,V()}))})}},6697:(se,E,c)=>{"use strict";c.d(E,{s:()=>d});var g=c(983),s=c(9974),f=c(4360);function d(S){return S<=0?()=>g.w:(0,s.N)((R,U)=>{let q=0;R.subscribe((0,f._)(U,z=>{++q<=S&&(U.next(z),S<=q&&U.complete())}))})}},6977:(se,E,c)=>{"use strict";c.d(E,{Q:()=>S});var g=c(9974),s=c(4360),f=c(8750),d=c(5343);function S(R){return(0,g.N)((U,q)=>{(0,f.Tg)(R).subscribe((0,s._)(q,()=>q.complete(),d.l)),!q.closed&&U.subscribe(q)})}},8141:(se,E,c)=>{"use strict";c.d(E,{M:()=>S});var g=c(8071),s=c(9974),f=c(4360),d=c(3669);function S(R,U,q){const z=(0,g.T)(R)||U||q?{next:R,error:U,complete:q}:R;return z?(0,s.N)((ve,de)=>{var V;null===(V=z.subscribe)||void 0===V||V.call(z);let Q=!0;ve.subscribe((0,f._)(de,ie=>{var K;null===(K=z.next)||void 0===K||K.call(z,ie),de.next(ie)},()=>{var ie;Q=!1,null===(ie=z.complete)||void 0===ie||ie.call(z),de.complete()},ie=>{var K;Q=!1,null===(K=z.error)||void 0===K||K.call(z,ie),de.error(ie)},()=>{var ie,K;Q&&(null===(ie=z.unsubscribe)||void 0===ie||ie.call(z)),null===(K=z.finalize)||void 0===K||K.call(z)}))}):d.D}},3386:(se,E,c)=>{"use strict";c.d(E,{c:()=>U});var g=c(3236),s=c(9974),f=c(4360),d=c(8750),R=c(1584);function U(q,z=g.E,ve){const de=(0,R.O)(q,z);return function S(q,z){return(0,s.N)((ve,de)=>{const{leading:V=!0,trailing:Q=!1}=null!=z?z:{};let ie=!1,K=null,ee=null,he=!1;const Ae=()=>{null==ee||ee.unsubscribe(),ee=null,Q&&(_(),he&&de.complete())},ue=()=>{ee=null,he&&de.complete()},oe=O=>ee=(0,d.Tg)(q(O)).subscribe((0,f._)(de,Ae,ue)),_=()=>{if(ie){ie=!1;const O=K;K=null,de.next(O),!he&&oe(O)}};ve.subscribe((0,f._)(de,O=>{ie=!0,K=O,(!ee||ee.closed)&&(V?_():oe(O))},()=>{he=!0,(!(Q&&ie&&ee)||ee.closed)&&de.complete()}))})}(()=>de,ve)}},3774:(se,E,c)=>{"use strict";c.d(E,{v:()=>d});var g=c(9350),s=c(9974),f=c(4360);function d(R=S){return(0,s.N)((U,q)=>{let z=!1;U.subscribe((0,f._)(q,ve=>{z=!0,q.next(ve)},()=>z?q.complete():q.error(R())))})}function S(){return new g.G}},3993:(se,E,c)=>{"use strict";c.d(E,{E:()=>U});var g=c(9974),s=c(4360),f=c(8750),d=c(3669),S=c(5343),R=c(9326);function U(...q){const z=(0,R.ms)(q);return(0,g.N)((ve,de)=>{const V=q.length,Q=new Array(V);let ie=q.map(()=>!1),K=!1;for(let ee=0;ee<V;ee++)(0,f.Tg)(q[ee]).subscribe((0,s._)(de,he=>{Q[ee]=he,!K&&!ie[ee]&&(ie[ee]=!0,(K=ie.every(d.D))&&(ie=null))},S.l));ve.subscribe((0,s._)(de,ee=>{if(K){const he=[ee,...Q];de.next(z?z(...he):he)}}))})}},3083:(se,E,c)=>{"use strict";c.d(E,{c:()=>O});var g=c(8750),s=c(941),f=c(9974);function d(x,B=0){return(0,f.N)((G,pe)=>{pe.add(x.schedule(()=>G.subscribe(pe),B))})}var U=c(1985),z=c(4761),ve=c(8071),de=c(5225);function Q(x,B){if(!x)throw new Error("Iterable cannot be null");return new U.c(G=>{(0,de.N)(G,B,()=>{const pe=x[Symbol.asyncIterator]();(0,de.N)(G,B,()=>{pe.next().then(le=>{le.done?G.complete():G.next(le.value)})},0,!0)})})}var ie=c(5055),K=c(9858),ee=c(7441),he=c(5397),Ae=c(7953),ue=c(591),oe=c(5196);function O(x,B){if(null!=x){if((0,ie.l)(x))return function S(x,B){return(0,g.Tg)(x).pipe(d(B),(0,s.Q)(B))}(x,B);if((0,ee.X)(x))return function q(x,B){return new U.c(G=>{let pe=0;return B.schedule(function(){pe===x.length?G.complete():(G.next(x[pe++]),G.closed||this.schedule())})})}(x,B);if((0,K.y)(x))return function R(x,B){return(0,g.Tg)(x).pipe(d(B),(0,s.Q)(B))}(x,B);if((0,Ae.T)(x))return Q(x,B);if((0,he.x)(x))return function V(x,B){return new U.c(G=>{let pe;return(0,de.N)(G,B,()=>{pe=x[z.l](),(0,de.N)(G,B,()=>{let le,W;try{({value:le,done:W}=pe.next())}catch(te){return void G.error(te)}W?G.complete():G.next(le)},0,!0)}),()=>(0,ve.T)(null==pe?void 0:pe.return)&&pe.return()})}(x,B);if((0,oe.U)(x))return function _(x,B){return Q((0,oe.C)(x),B)}(x,B)}throw(0,ue.L)(x)}},6780:(se,E,c)=>{"use strict";c.d(E,{R:()=>S});var g=c(8359);class s extends g.yU{constructor(U,q){super()}schedule(U,q=0){return this}}const f={setInterval(R,U,...q){const{delegate:z}=f;return null!=z&&z.setInterval?z.setInterval(R,U,...q):setInterval(R,U,...q)},clearInterval(R){const{delegate:U}=f;return((null==U?void 0:U.clearInterval)||clearInterval)(R)},delegate:void 0};var d=c(7908);class S extends s{constructor(U,q){super(U,q),this.scheduler=U,this.work=q,this.pending=!1}schedule(U,q=0){var z;if(this.closed)return this;this.state=U;const ve=this.id,de=this.scheduler;return null!=ve&&(this.id=this.recycleAsyncId(de,ve,q)),this.pending=!0,this.delay=q,this.id=null!==(z=this.id)&&void 0!==z?z:this.requestAsyncId(de,this.id,q),this}requestAsyncId(U,q,z=0){return f.setInterval(U.flush.bind(U,this),z)}recycleAsyncId(U,q,z=0){if(null!=z&&this.delay===z&&!1===this.pending)return q;null!=q&&f.clearInterval(q)}execute(U,q){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const z=this._execute(U,q);if(z)return z;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(U,q){let ve,z=!1;try{this.work(U)}catch(de){z=!0,ve=de||new Error("Scheduled action threw falsy error")}if(z)return this.unsubscribe(),ve}unsubscribe(){if(!this.closed){const{id:U,scheduler:q}=this,{actions:z}=q;this.work=this.state=this.scheduler=null,this.pending=!1,(0,d.o)(z,this),null!=U&&(this.id=this.recycleAsyncId(q,U,null)),this.delay=null,super.unsubscribe()}}}},9687:(se,E,c)=>{"use strict";c.d(E,{q:()=>f});var g=c(6129);class s{constructor(S,R=s.now){this.schedulerActionCtor=S,this.now=R}schedule(S,R=0,U){return new this.schedulerActionCtor(this,S).schedule(U,R)}}s.now=g.U.now;class f extends s{constructor(S,R=s.now){super(S,R),this.actions=[],this._active=!1}flush(S){const{actions:R}=this;if(this._active)return void R.push(S);let U;this._active=!0;do{if(U=S.execute(S.state,S.delay))break}while(S=R.shift());if(this._active=!1,U){for(;S=R.shift();)S.unsubscribe();throw U}}}},5007:(se,E,c)=>{"use strict";c.d(E,{$:()=>ie});var g=c(6780);let f,s=1;const d={};function S(ee){return ee in d&&(delete d[ee],!0)}const R={setImmediate(ee){const he=s++;return d[he]=!0,f||(f=Promise.resolve()),f.then(()=>S(he)&&ee()),he},clearImmediate(ee){S(ee)}},{setImmediate:q,clearImmediate:z}=R,ve={setImmediate(...ee){const{delegate:he}=ve;return((null==he?void 0:he.setImmediate)||q)(...ee)},clearImmediate(ee){const{delegate:he}=ve;return((null==he?void 0:he.clearImmediate)||z)(ee)},delegate:void 0};var V=c(9687);const ie=new class Q extends V.q{flush(he){this._active=!0;const Ae=this._scheduled;this._scheduled=void 0;const{actions:ue}=this;let oe;he=he||ue.shift();do{if(oe=he.execute(he.state,he.delay))break}while((he=ue[0])&&he.id===Ae&&ue.shift());if(this._active=!1,oe){for(;(he=ue[0])&&he.id===Ae&&ue.shift();)he.unsubscribe();throw oe}}}(class de extends g.R{constructor(he,Ae){super(he,Ae),this.scheduler=he,this.work=Ae}requestAsyncId(he,Ae,ue=0){return null!==ue&&ue>0?super.requestAsyncId(he,Ae,ue):(he.actions.push(this),he._scheduled||(he._scheduled=ve.setImmediate(he.flush.bind(he,void 0))))}recycleAsyncId(he,Ae,ue=0){var oe;if(null!=ue?ue>0:this.delay>0)return super.recycleAsyncId(he,Ae,ue);const{actions:_}=he;null!=Ae&&(null===(oe=_[_.length-1])||void 0===oe?void 0:oe.id)!==Ae&&(ve.clearImmediate(Ae),he._scheduled===Ae&&(he._scheduled=void 0))}})},3236:(se,E,c)=>{"use strict";c.d(E,{E:()=>f,b:()=>d});var g=c(6780);const f=new(c(9687).q)(g.R),d=f},6129:(se,E,c)=>{"use strict";c.d(E,{U:()=>g});const g={now:()=>(g.delegate||Date).now(),delegate:void 0}},9270:(se,E,c)=>{"use strict";c.d(E,{f:()=>g});const g={setTimeout(s,f,...d){const{delegate:S}=g;return null!=S&&S.setTimeout?S.setTimeout(s,f,...d):setTimeout(s,f,...d)},clearTimeout(s){const{delegate:f}=g;return((null==f?void 0:f.clearTimeout)||clearTimeout)(s)},delegate:void 0}},4761:(se,E,c)=>{"use strict";c.d(E,{l:()=>s});const s=function g(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(se,E,c)=>{"use strict";c.d(E,{s:()=>g});const g="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350:(se,E,c)=>{"use strict";c.d(E,{G:()=>s});const s=(0,c(1853).L)(f=>function(){f(this),this.name="EmptyError",this.message="no elements in sequence"})},9326:(se,E,c)=>{"use strict";c.d(E,{R0:()=>R,lI:()=>S,ms:()=>d});var g=c(8071),s=c(9470);function f(U){return U[U.length-1]}function d(U){return(0,g.T)(f(U))?U.pop():void 0}function S(U){return(0,s.m)(f(U))?U.pop():void 0}function R(U,q){return"number"==typeof f(U)?U.pop():q}},3073:(se,E,c)=>{"use strict";c.d(E,{D:()=>S});const{isArray:g}=Array,{getPrototypeOf:s,prototype:f,keys:d}=Object;function S(U){if(1===U.length){const q=U[0];if(g(q))return{args:q,keys:null};if(function R(U){return U&&"object"==typeof U&&s(U)===f}(q)){const z=d(q);return{args:z.map(ve=>q[ve]),keys:z}}}return{args:U,keys:null}}},7908:(se,E,c)=>{"use strict";function g(s,f){if(s){const d=s.indexOf(f);0<=d&&s.splice(d,1)}}c.d(E,{o:()=>g})},1853:(se,E,c)=>{"use strict";function g(s){const d=s(S=>{Error.call(S),S.stack=(new Error).stack});return d.prototype=Object.create(Error.prototype),d.prototype.constructor=d,d}c.d(E,{L:()=>g})},8496:(se,E,c)=>{"use strict";function g(s,f){return s.reduce((d,S,R)=>(d[S]=f[R],d),{})}c.d(E,{e:()=>g})},9786:(se,E,c)=>{"use strict";c.d(E,{Y:()=>f,l:()=>d});var g=c(1026);let s=null;function f(S){if(g.$.useDeprecatedSynchronousErrorHandling){const R=!s;if(R&&(s={errorThrown:!1,error:null}),S(),R){const{errorThrown:U,error:q}=s;if(s=null,U)throw q}}else S()}function d(S){g.$.useDeprecatedSynchronousErrorHandling&&s&&(s.errorThrown=!0,s.error=S)}},5225:(se,E,c)=>{"use strict";function g(s,f,d,S=0,R=!1){const U=f.schedule(function(){d(),R?s.add(this.schedule(null,S)):this.unsubscribe()},S);if(s.add(U),!R)return U}c.d(E,{N:()=>g})},3669:(se,E,c)=>{"use strict";function g(s){return s}c.d(E,{D:()=>g})},7441:(se,E,c)=>{"use strict";c.d(E,{X:()=>g});const g=s=>s&&"number"==typeof s.length&&"function"!=typeof s},7953:(se,E,c)=>{"use strict";c.d(E,{T:()=>s});var g=c(8071);function s(f){return Symbol.asyncIterator&&(0,g.T)(null==f?void 0:f[Symbol.asyncIterator])}},8071:(se,E,c)=>{"use strict";function g(s){return"function"==typeof s}c.d(E,{T:()=>g})},5055:(se,E,c)=>{"use strict";c.d(E,{l:()=>f});var g=c(3494),s=c(8071);function f(d){return(0,s.T)(d[g.s])}},5397:(se,E,c)=>{"use strict";c.d(E,{x:()=>f});var g=c(4761),s=c(8071);function f(d){return(0,s.T)(null==d?void 0:d[g.l])}},4402:(se,E,c)=>{"use strict";c.d(E,{A:()=>f});var g=c(1985),s=c(8071);function f(d){return!!d&&(d instanceof g.c||(0,s.T)(d.lift)&&(0,s.T)(d.subscribe))}},9858:(se,E,c)=>{"use strict";c.d(E,{y:()=>s});var g=c(8071);function s(f){return(0,g.T)(null==f?void 0:f.then)}},5196:(se,E,c)=>{"use strict";c.d(E,{C:()=>f,U:()=>d});var g=c(1635),s=c(8071);function f(S){return(0,g.AQ)(this,arguments,function*(){const U=S.getReader();try{for(;;){const{value:q,done:z}=yield(0,g.N3)(U.read());if(z)return yield(0,g.N3)(void 0);yield yield(0,g.N3)(q)}}finally{U.releaseLock()}})}function d(S){return(0,s.T)(null==S?void 0:S.getReader)}},9470:(se,E,c)=>{"use strict";c.d(E,{m:()=>s});var g=c(8071);function s(f){return f&&(0,g.T)(f.schedule)}},9974:(se,E,c)=>{"use strict";c.d(E,{N:()=>f,S:()=>s});var g=c(8071);function s(d){return(0,g.T)(null==d?void 0:d.lift)}function f(d){return S=>{if(s(S))return S.lift(function(R){try{return d(R,this)}catch(U){this.error(U)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(se,E,c)=>{"use strict";c.d(E,{I:()=>d});var g=c(6354);const{isArray:s}=Array;function d(S){return(0,g.T)(R=>function f(S,R){return s(R)?S(...R):S(R)}(S,R))}},5343:(se,E,c)=>{"use strict";function g(){}c.d(E,{l:()=>g})},1203:(se,E,c)=>{"use strict";c.d(E,{F:()=>s,m:()=>f});var g=c(3669);function s(...d){return f(d)}function f(d){return 0===d.length?g.D:1===d.length?d[0]:function(R){return d.reduce((U,q)=>q(U),R)}}},5334:(se,E,c)=>{"use strict";c.d(E,{m:()=>f});var g=c(1026),s=c(9270);function f(d){s.f.setTimeout(()=>{const{onUnhandledError:S}=g.$;if(!S)throw d;S(d)})}},591:(se,E,c)=>{"use strict";function g(s){return new TypeError("You provided ".concat(null!==s&&"object"==typeof s?"an invalid object":"'".concat(s,"'")," where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable."))}c.d(E,{L:()=>g})},3785:(se,E,c)=>{var g;!function(){"use strict";var s={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function f(q){return function S(q,z){var V,ie,K,ee,he,Ae,ue,oe,_,ve=1,de=q.length,Q="";for(ie=0;ie<de;ie++)if("string"==typeof q[ie])Q+=q[ie];else if("object"==typeof q[ie]){if((ee=q[ie]).keys)for(V=z[ve],K=0;K<ee.keys.length;K++){if(null==V)throw new Error(f('[sprintf] Cannot access property "%s" of undefined value "%s"',ee.keys[K],ee.keys[K-1]));V=V[ee.keys[K]]}else V=ee.param_no?z[ee.param_no]:z[ve++];if(s.not_type.test(ee.type)&&s.not_primitive.test(ee.type)&&V instanceof Function&&(V=V()),s.numeric_arg.test(ee.type)&&"number"!=typeof V&&isNaN(V))throw new TypeError(f("[sprintf] expecting number but found %T",V));switch(s.number.test(ee.type)&&(oe=V>=0),ee.type){case"b":V=parseInt(V,10).toString(2);break;case"c":V=String.fromCharCode(parseInt(V,10));break;case"d":case"i":V=parseInt(V,10);break;case"j":V=JSON.stringify(V,null,ee.width?parseInt(ee.width):0);break;case"e":V=ee.precision?parseFloat(V).toExponential(ee.precision):parseFloat(V).toExponential();break;case"f":V=ee.precision?parseFloat(V).toFixed(ee.precision):parseFloat(V);break;case"g":V=ee.precision?String(Number(V.toPrecision(ee.precision))):parseFloat(V);break;case"o":V=(parseInt(V,10)>>>0).toString(8);break;case"s":V=String(V),V=ee.precision?V.substring(0,ee.precision):V;break;case"t":V=String(!!V),V=ee.precision?V.substring(0,ee.precision):V;break;case"T":V=Object.prototype.toString.call(V).slice(8,-1).toLowerCase(),V=ee.precision?V.substring(0,ee.precision):V;break;case"u":V=parseInt(V,10)>>>0;break;case"v":V=V.valueOf(),V=ee.precision?V.substring(0,ee.precision):V;break;case"x":V=(parseInt(V,10)>>>0).toString(16);break;case"X":V=(parseInt(V,10)>>>0).toString(16).toUpperCase()}s.json.test(ee.type)?Q+=V:(!s.number.test(ee.type)||oe&&!ee.sign?_="":(_=oe?"+":"-",V=V.toString().replace(s.sign,"")),Ae=ee.pad_char?"0"===ee.pad_char?"0":ee.pad_char.charAt(1):" ",ue=ee.width-(_+V).length,he=ee.width&&ue>0?Ae.repeat(ue):"",Q+=ee.align?_+V+he:"0"===Ae?_+he+V:he+_+V)}return Q}(function U(q){if(R[q])return R[q];for(var ve,z=q,de=[],V=0;z;){if(null!==(ve=s.text.exec(z)))de.push(ve[0]);else if(null!==(ve=s.modulo.exec(z)))de.push("%");else{if(null===(ve=s.placeholder.exec(z)))throw new SyntaxError("[sprintf] unexpected placeholder");if(ve[2]){V|=1;var Q=[],ie=ve[2],K=[];if(null===(K=s.key.exec(ie)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(Q.push(K[1]);""!==(ie=ie.substring(K[0].length));)if(null!==(K=s.key_access.exec(ie)))Q.push(K[1]);else{if(null===(K=s.index_access.exec(ie)))throw new SyntaxError("[sprintf] failed to parse named argument key");Q.push(K[1])}ve[2]=Q}else V|=2;if(3===V)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");de.push({placeholder:ve[0],param_no:ve[1],keys:ve[2],sign:ve[3],pad_char:ve[4],align:ve[5],width:ve[6],precision:ve[7],type:ve[8]})}z=z.substring(ve[0].length)}return R[q]=de}(q),arguments)}function d(q,z){return f.apply(null,[q].concat(z||[]))}var R=Object.create(null);E.sprintf=f,E.vsprintf=d,typeof window<"u"&&(window.sprintf=f,window.vsprintf=d,void 0!==(g=function(){return{sprintf:f,vsprintf:d}}.call(E,c,E,se))&&(se.exports=g))}()},6155:(se,E)=>{"use strict";E.qg=E.el=E.Op=void 0;const g={allowMultipleFractions:!0},s=[{unit:"years",symbol:"Y"},{unit:"months",symbol:"M"},{unit:"weeks",symbol:"W"},{unit:"days",symbol:"D"},{unit:"hours",symbol:"H"},{unit:"minutes",symbol:"M"},{unit:"seconds",symbol:"S"}],f=(z,ve)=>"((?<".concat(z,">-?\\d*[\\.,]?\\d+)").concat(ve,")?"),d=new RegExp(["(?<negative>-)?P",f("years","Y"),f("months","M"),f("weeks","W"),f("days","D"),"(T",f("hours","H"),f("minutes","M"),f("seconds","S"),")?"].join(""));function S(z){if(""!==z&&null!=z)return parseFloat(z.replace(",","."))}E.Op=new Error("Invalid duration"),E.el=new Error("Multiple fractions specified"),E.qg=function R(z,ve=g){const de=d.exec(z);if(!de||!de.groups)throw E.Op;let V=!0,Q=0;const ie={};for(const{unit:ee}of s)if(de.groups[ee]&&(V=!1,ie[ee]=S(de.groups[ee]),!ve.allowMultipleFractions&&!Number.isInteger(ie[ee])&&(Q++,Q>1)))throw E.el;if(V)throw E.Op;const K=ie;return de.groups.negative&&(K.negative=!0),K}},9969:(se,E,c)=>{"use strict";c.d(E,{FX:()=>le,If:()=>s,K2:()=>U,hZ:()=>d,i0:()=>S,iF:()=>q,kY:()=>de,kp:()=>f,sf:()=>G,ui:()=>pe,wk:()=>z});var g=c(1660),s=function(W){return W[W.State=0]="State",W[W.Transition=1]="Transition",W[W.Sequence=2]="Sequence",W[W.Group=3]="Group",W[W.Animate=4]="Animate",W[W.Keyframes=5]="Keyframes",W[W.Style=6]="Style",W[W.Trigger=7]="Trigger",W[W.Reference=8]="Reference",W[W.AnimateChild=9]="AnimateChild",W[W.AnimateRef=10]="AnimateRef",W[W.Query=11]="Query",W[W.Stagger=12]="Stagger",W}(s||{});const f="*";function d(W,te){return{type:s.Trigger,name:W,definitions:te,options:{}}}function S(W,te=null){return{type:s.Animate,styles:te,timings:W}}function U(W,te=null){return{type:s.Sequence,steps:W,options:te}}function q(W){return{type:s.Style,styles:W,offset:null}}function z(W,te,ae){return{type:s.State,name:W,styles:te,options:ae}}function de(W,te,ae=null){return{type:s.Transition,expr:W,animation:te,options:ae}}class G{constructor(te=0,ae=0){(0,g.A)(this,"_onDoneFns",[]),(0,g.A)(this,"_onStartFns",[]),(0,g.A)(this,"_onDestroyFns",[]),(0,g.A)(this,"_originalOnDoneFns",[]),(0,g.A)(this,"_originalOnStartFns",[]),(0,g.A)(this,"_started",!1),(0,g.A)(this,"_destroyed",!1),(0,g.A)(this,"_finished",!1),(0,g.A)(this,"_position",0),(0,g.A)(this,"parentPlayer",null),(0,g.A)(this,"totalTime",void 0),this.totalTime=te+ae}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(te=>te()),this._onDoneFns=[])}onStart(te){this._originalOnStartFns.push(te),this._onStartFns.push(te)}onDone(te){this._originalOnDoneFns.push(te),this._onDoneFns.push(te)}onDestroy(te){this._onDestroyFns.push(te)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(te=>te()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(te=>te()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(te){this._position=this.totalTime?te*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(te){const ae="start"==te?this._onStartFns:this._onDoneFns;ae.forEach(_e=>_e()),ae.length=0}}class pe{constructor(te){(0,g.A)(this,"_onDoneFns",[]),(0,g.A)(this,"_onStartFns",[]),(0,g.A)(this,"_finished",!1),(0,g.A)(this,"_started",!1),(0,g.A)(this,"_destroyed",!1),(0,g.A)(this,"_onDestroyFns",[]),(0,g.A)(this,"parentPlayer",null),(0,g.A)(this,"totalTime",0),(0,g.A)(this,"players",void 0),this.players=te;let ae=0,_e=0,Le=0;const We=this.players.length;0==We?queueMicrotask(()=>this._onFinish()):this.players.forEach(dt=>{dt.onDone(()=>{++ae==We&&this._onFinish()}),dt.onDestroy(()=>{++_e==We&&this._onDestroy()}),dt.onStart(()=>{++Le==We&&this._onStart()})}),this.totalTime=this.players.reduce((dt,Ye)=>Math.max(dt,Ye.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(te=>te()),this._onDoneFns=[])}init(){this.players.forEach(te=>te.init())}onStart(te){this._onStartFns.push(te)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(te=>te()),this._onStartFns=[])}onDone(te){this._onDoneFns.push(te)}onDestroy(te){this._onDestroyFns.push(te)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(te=>te.play())}pause(){this.players.forEach(te=>te.pause())}restart(){this.players.forEach(te=>te.restart())}finish(){this._onFinish(),this.players.forEach(te=>te.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(te=>te.destroy()),this._onDestroyFns.forEach(te=>te()),this._onDestroyFns=[])}reset(){this.players.forEach(te=>te.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(te){const ae=te*this.totalTime;this.players.forEach(_e=>{const Le=_e.totalTime?Math.min(1,ae/_e.totalTime):1;_e.setPosition(Le)})}getPosition(){const te=this.players.reduce((ae,_e)=>null===ae||_e.totalTime>ae.totalTime?_e:ae,null);return null!=te?te.getPosition():0}beforeDestroy(){this.players.forEach(te=>{te.beforeDestroy&&te.beforeDestroy()})}triggerCallback(te){const ae="start"==te?this._onStartFns:this._onDoneFns;ae.forEach(_e=>_e()),ae.length=0}}const le="!"},2365:(se,E,c)=>{"use strict";c.d(E,{Bu:()=>Mt,FN:()=>Ar,Q_:()=>So,g7:()=>Jn,_G:()=>It,w6:()=>Dt});var g=c(9379),s=c(1660),f=c(177),d=c(4438),S=c(6860),R=c(7336),U=c(1413),q=c(8359),ve=(c(4402),c(7673)),de=c(4412),V=c(8141),Q=c(152),ie=c(5964),K=c(6354),ee=c(6697),he=c(5245),Ae=c(3294),ue=c(6977),_=c(4085),O=c(4572),x=c(8793),B=c(1985),G=c(9172);const le=new Set;let W,te=(()=>{var rn;class et{constructor(){(0,s.A)(this,"_platform",(0,d.WQX)(S.OD)),(0,s.A)(this,"_nonce",(0,d.WQX)(d.BIS,{optional:!0})),(0,s.A)(this,"_matchMedia",void 0),this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):_e}matchMedia(yt){return(this._platform.WEBKIT||this._platform.BLINK)&&function ae(rn,et){if(!le.has(rn))try{W||(W=document.createElement("style"),et&&W.setAttribute("nonce",et),W.setAttribute("type","text/css"),document.head.appendChild(W)),W.sheet&&(W.sheet.insertRule("@media ".concat(rn," {body{ }}"),0),le.add(rn))}catch(xt){console.error(xt)}}(yt,this._nonce),this._matchMedia(yt)}}return rn=et,(0,s.A)(et,"\u0275fac",function(yt){return new(yt||rn)}),(0,s.A)(et,"\u0275prov",d.jDH({token:rn,factory:rn.\u0275fac,providedIn:"root"})),et})();function _e(rn){return{matches:"all"===rn||""===rn,media:rn,addListener:()=>{},removeListener:()=>{}}}let Le=(()=>{var rn;class et{constructor(){(0,s.A)(this,"_mediaMatcher",(0,d.WQX)(te)),(0,s.A)(this,"_zone",(0,d.WQX)(d.SKi)),(0,s.A)(this,"_queries",new Map),(0,s.A)(this,"_destroySubject",new U.B)}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(yt){return We((0,_.FG)(yt)).some(nn=>this._registerQuery(nn).mql.matches)}observe(yt){const nn=We((0,_.FG)(yt)).map(qn=>this._registerQuery(qn).observable);let un=(0,O.z)(nn);return un=(0,x.x)(un.pipe((0,ee.s)(1)),un.pipe((0,he.i)(1),(0,Q.B)(0))),un.pipe((0,K.T)(qn=>{const sr={matches:!1,breakpoints:{}};return qn.forEach(({matches:Oi,query:no})=>{sr.matches=sr.matches||Oi,sr.breakpoints[no]=Oi}),sr}))}_registerQuery(yt){if(this._queries.has(yt))return this._queries.get(yt);const Xt=this._mediaMatcher.matchMedia(yt),un={observable:new B.c(qn=>{const sr=Oi=>this._zone.run(()=>qn.next(Oi));return Xt.addListener(sr),()=>{Xt.removeListener(sr)}}).pipe((0,G.Z)(Xt),(0,K.T)(({matches:qn})=>({query:yt,matches:qn})),(0,ue.Q)(this._destroySubject)),mql:Xt};return this._queries.set(yt,un),un}}return rn=et,(0,s.A)(et,"\u0275fac",function(yt){return new(yt||rn)}),(0,s.A)(et,"\u0275prov",d.jDH({token:rn,factory:rn.\u0275fac,providedIn:"root"})),et})();function We(rn){return rn.map(et=>et.split(",")).reduce((et,xt)=>et.concat(xt)).map(et=>et.trim())}class Be{constructor(et,xt){(0,s.A)(this,"_letterKeyStream",new U.B),(0,s.A)(this,"_items",[]),(0,s.A)(this,"_selectedItemIndex",-1),(0,s.A)(this,"_pressedLetters",[]),(0,s.A)(this,"_skipPredicateFn",void 0),(0,s.A)(this,"_selectedItem",new U.B),(0,s.A)(this,"selectedItem",this._selectedItem);const yt="number"==typeof(null==xt?void 0:xt.debounceInterval)?xt.debounceInterval:200;null!=xt&&xt.skipPredicate&&(this._skipPredicateFn=xt.skipPredicate),this.setItems(et),this._setupKeyHandler(yt)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(et){this._selectedItemIndex=et}setItems(et){this._items=et}handleKey(et){const xt=et.keyCode;et.key&&1===et.key.length?this._letterKeyStream.next(et.key.toLocaleUpperCase()):(xt>=R.A&&xt<=R.Z||xt>=R.f2&&xt<=R.bn)&&this._letterKeyStream.next(String.fromCharCode(xt))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(et){this._letterKeyStream.pipe((0,V.M)(xt=>this._pressedLetters.push(xt)),(0,Q.B)(et),(0,ie.p)(()=>this._pressedLetters.length>0),(0,K.T)(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(xt=>{for(let nn=1;nn<this._items.length+1;nn++){var yt,Xt;const qn=this._items[(this._selectedItemIndex+nn)%this._items.length];if((null===(yt=this._skipPredicateFn)||void 0===yt||!yt.call(this,qn))&&0===(null===(Xt=qn.getLabel)||void 0===Xt?void 0:Xt.call(qn).toLocaleUpperCase().trim().indexOf(xt))){this._selectedItem.next(qn);break}}this._pressedLetters=[]})}}class Tt{constructor(et,xt){(0,s.A)(this,"_items",void 0),(0,s.A)(this,"_activeItemIndex",-1),(0,s.A)(this,"_activeItem",(0,d.vPA)(null)),(0,s.A)(this,"_wrap",!1),(0,s.A)(this,"_typeaheadSubscription",q.yU.EMPTY),(0,s.A)(this,"_itemChangesSubscription",void 0),(0,s.A)(this,"_vertical",!0),(0,s.A)(this,"_horizontal",void 0),(0,s.A)(this,"_allowedModifierKeys",[]),(0,s.A)(this,"_homeAndEnd",!1),(0,s.A)(this,"_pageUpAndDown",{enabled:!1,delta:10}),(0,s.A)(this,"_effectRef",void 0),(0,s.A)(this,"_typeahead",void 0),(0,s.A)(this,"_skipPredicateFn",yt=>yt.disabled),(0,s.A)(this,"tabOut",new U.B),(0,s.A)(this,"change",new U.B),this._items=et,et instanceof d.rOR?this._itemChangesSubscription=et.changes.subscribe(yt=>this._itemsChanged(yt.toArray())):(0,d.Hps)(et)&&(this._effectRef=(0,d.QZP)(()=>this._itemsChanged(et()),{injector:xt}))}skipPredicate(et){return this._skipPredicateFn=et,this}withWrap(et=!0){return this._wrap=et,this}withVerticalOrientation(et=!0){return this._vertical=et,this}withHorizontalOrientation(et){return this._horizontal=et,this}withAllowedModifierKeys(et){return this._allowedModifierKeys=et,this}withTypeAhead(et=200){this._typeaheadSubscription.unsubscribe();const xt=this._getItemsArray();return this._typeahead=new Be(xt,{debounceInterval:"number"==typeof et?et:void 0,skipPredicate:yt=>this._skipPredicateFn(yt)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(yt=>{this.setActiveItem(yt)}),this}cancelTypeahead(){var et;return null===(et=this._typeahead)||void 0===et||et.reset(),this}withHomeAndEnd(et=!0){return this._homeAndEnd=et,this}withPageUpDown(et=!0,xt=10){return this._pageUpAndDown={enabled:et,delta:xt},this}setActiveItem(et){const xt=this._activeItem();this.updateActiveItem(et),this._activeItem()!==xt&&this.change.next(this._activeItemIndex)}onKeydown(et){var xt;const yt=et.keyCode,nn=["altKey","ctrlKey","metaKey","shiftKey"].every(qn=>!et[qn]||this._allowedModifierKeys.indexOf(qn)>-1);switch(yt){case R.wn:return void this.tabOut.next();case R.n6:if(this._vertical&&nn){this.setNextItemActive();break}return;case R.i7:if(this._vertical&&nn){this.setPreviousItemActive();break}return;case R.LE:if(this._horizontal&&nn){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case R.UQ:if(this._horizontal&&nn){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case R.yZ:if(this._homeAndEnd&&nn){this.setFirstItemActive();break}return;case R.Kp:if(this._homeAndEnd&&nn){this.setLastItemActive();break}return;case R.w_:if(this._pageUpAndDown.enabled&&nn){const qn=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(qn>0?qn:0,1);break}return;case R.dB:if(this._pageUpAndDown.enabled&&nn){const qn=this._activeItemIndex+this._pageUpAndDown.delta,sr=this._getItemsArray().length;this._setActiveItemByIndex(qn<sr?qn:sr-1,-1);break}return;default:var un;return void((nn||(0,R.rp)(et,"shiftKey"))&&(null===(un=this._typeahead)||void 0===un||un.handleKey(et)))}null===(xt=this._typeahead)||void 0===xt||xt.reset(),et.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem()}isTyping(){return!!this._typeahead&&this._typeahead.isTyping()}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(et){var xt;const yt=this._getItemsArray(),Xt="number"==typeof et?et:yt.indexOf(et),nn=yt[Xt];this._activeItem.set(null==nn?null:nn),this._activeItemIndex=Xt,null===(xt=this._typeahead)||void 0===xt||xt.setCurrentSelectedItemIndex(Xt)}destroy(){var et,xt,yt;this._typeaheadSubscription.unsubscribe(),null===(et=this._itemChangesSubscription)||void 0===et||et.unsubscribe(),null===(xt=this._effectRef)||void 0===xt||xt.destroy(),null===(yt=this._typeahead)||void 0===yt||yt.destroy(),this.tabOut.complete(),this.change.complete()}_setActiveItemByDelta(et){this._wrap?this._setActiveInWrapMode(et):this._setActiveInDefaultMode(et)}_setActiveInWrapMode(et){const xt=this._getItemsArray();for(let yt=1;yt<=xt.length;yt++){const Xt=(this._activeItemIndex+et*yt+xt.length)%xt.length;if(!this._skipPredicateFn(xt[Xt]))return void this.setActiveItem(Xt)}}_setActiveInDefaultMode(et){this._setActiveItemByIndex(this._activeItemIndex+et,et)}_setActiveItemByIndex(et,xt){const yt=this._getItemsArray();if(yt[et]){for(;this._skipPredicateFn(yt[et]);)if(!yt[et+=xt])return;this.setActiveItem(et)}}_getItemsArray(){return(0,d.Hps)(this._items)?this._items():this._items instanceof d.rOR?this._items.toArray():this._items}_itemsChanged(et){var xt;null===(xt=this._typeahead)||void 0===xt||xt.setItems(et);const yt=this._activeItem();if(yt){const nn=et.indexOf(yt);var Xt;nn>-1&&nn!==this._activeItemIndex&&(this._activeItemIndex=nn,null===(Xt=this._typeahead)||void 0===Xt||Xt.setCurrentSelectedItemIndex(nn))}}}class Mt extends Tt{constructor(...et){super(...et),(0,s.A)(this,"_origin","program")}setFocusOrigin(et){return this._origin=et,this}setActiveItem(et){super.setActiveItem(et),this.activeItem&&this.activeItem.focus(this._origin)}}function It(rn){return 0===rn.buttons||0===rn.detail}function Dt(rn){const et=rn.touches&&rn.touches[0]||rn.changedTouches&&rn.changedTouches[0];return!(!et||-1!==et.identifier||null!=et.radiusX&&1!==et.radiusX||null!=et.radiusY&&1!==et.radiusY)}const Ct=new d.nKC("cdk-input-modality-detector-options"),sn={ignoreKeys:[R.A$,R.W3,R.eg,R.Ge,R.FX]},Qn=(0,S.BQ)({passive:!0,capture:!0});let Fr=(()=>{var rn;class et{get mostRecentModality(){return this._modality.value}constructor(){(0,s.A)(this,"_platform",(0,d.WQX)(S.OD)),(0,s.A)(this,"modalityDetected",void 0),(0,s.A)(this,"modalityChanged",void 0),(0,s.A)(this,"_mostRecentTarget",null),(0,s.A)(this,"_modality",new de.t(null)),(0,s.A)(this,"_options",void 0),(0,s.A)(this,"_lastTouchMs",0),(0,s.A)(this,"_onKeydown",un=>{var qn;null!==(qn=this._options)&&void 0!==qn&&null!==(qn=qn.ignoreKeys)&&void 0!==qn&&qn.some(sr=>sr===un.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,S.Fb)(un))}),(0,s.A)(this,"_onMousedown",un=>{Date.now()-this._lastTouchMs<650||(this._modality.next(It(un)?"keyboard":"mouse"),this._mostRecentTarget=(0,S.Fb)(un))}),(0,s.A)(this,"_onTouchstart",un=>{Dt(un)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,S.Fb)(un))});const yt=(0,d.WQX)(d.SKi),Xt=(0,d.WQX)(f.qQ),nn=(0,d.WQX)(Ct,{optional:!0});this._options=(0,g.A)((0,g.A)({},sn),nn),this.modalityDetected=this._modality.pipe((0,he.i)(1)),this.modalityChanged=this.modalityDetected.pipe((0,Ae.F)()),this._platform.isBrowser&&yt.runOutsideAngular(()=>{Xt.addEventListener("keydown",this._onKeydown,Qn),Xt.addEventListener("mousedown",this._onMousedown,Qn),Xt.addEventListener("touchstart",this._onTouchstart,Qn)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Qn),document.removeEventListener("mousedown",this._onMousedown,Qn),document.removeEventListener("touchstart",this._onTouchstart,Qn))}}return rn=et,(0,s.A)(et,"\u0275fac",function(yt){return new(yt||rn)}),(0,s.A)(et,"\u0275prov",d.jDH({token:rn,factory:rn.\u0275fac,providedIn:"root"})),et})();var Pn=function(rn){return rn[rn.IMMEDIATE=0]="IMMEDIATE",rn[rn.EVENTUAL=1]="EVENTUAL",rn}(Pn||{});const jn=new d.nKC("cdk-focus-monitor-default-options"),Fn=(0,S.BQ)({passive:!0,capture:!0});let Ar=(()=>{var rn;class et{constructor(){(0,s.A)(this,"_ngZone",(0,d.WQX)(d.SKi)),(0,s.A)(this,"_platform",(0,d.WQX)(S.OD)),(0,s.A)(this,"_inputModalityDetector",(0,d.WQX)(Fr)),(0,s.A)(this,"_origin",null),(0,s.A)(this,"_lastFocusOrigin",void 0),(0,s.A)(this,"_windowFocused",!1),(0,s.A)(this,"_windowFocusTimeoutId",void 0),(0,s.A)(this,"_originTimeoutId",void 0),(0,s.A)(this,"_originFromTouchInteraction",!1),(0,s.A)(this,"_elementInfo",new Map),(0,s.A)(this,"_monitoredElementCount",0),(0,s.A)(this,"_rootNodeFocusListenerCount",new Map),(0,s.A)(this,"_detectionMode",void 0),(0,s.A)(this,"_windowFocusListener",()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)}),(0,s.A)(this,"_document",(0,d.WQX)(f.qQ,{optional:!0})),(0,s.A)(this,"_stopInputModalityDetector",new U.B),(0,s.A)(this,"_rootNodeFocusAndBlurListener",Xt=>{for(let un=(0,S.Fb)(Xt);un;un=un.parentElement)"focus"===Xt.type?this._onFocus(Xt,un):this._onBlur(Xt,un)});const yt=(0,d.WQX)(jn,{optional:!0});this._detectionMode=(null==yt?void 0:yt.detectionMode)||Pn.IMMEDIATE}monitor(yt,Xt=!1){const nn=(0,_.i8)(yt);if(!this._platform.isBrowser||1!==nn.nodeType)return(0,ve.of)();const un=(0,S.KT)(nn)||this._getDocument(),qn=this._elementInfo.get(nn);if(qn)return Xt&&(qn.checkChildren=!0),qn.subject;const sr={checkChildren:Xt,subject:new U.B,rootNode:un};return this._elementInfo.set(nn,sr),this._registerGlobalListeners(sr),sr.subject}stopMonitoring(yt){const Xt=(0,_.i8)(yt),nn=this._elementInfo.get(Xt);nn&&(nn.subject.complete(),this._setClasses(Xt),this._elementInfo.delete(Xt),this._removeGlobalListeners(nn))}focusVia(yt,Xt,nn){const un=(0,_.i8)(yt);un===this._getDocument().activeElement?this._getClosestElementsInfo(un).forEach(([sr,Oi])=>this._originChanged(sr,Xt,Oi)):(this._setOrigin(Xt),"function"==typeof un.focus&&un.focus(nn))}ngOnDestroy(){this._elementInfo.forEach((yt,Xt)=>this.stopMonitoring(Xt))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(yt){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(yt)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:yt&&this._isLastInteractionFromInputLabel(yt)?"mouse":"program"}_shouldBeAttributedToTouch(yt){return this._detectionMode===Pn.EVENTUAL||!(null==yt||!yt.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(yt,Xt){yt.classList.toggle("cdk-focused",!!Xt),yt.classList.toggle("cdk-touch-focused","touch"===Xt),yt.classList.toggle("cdk-keyboard-focused","keyboard"===Xt),yt.classList.toggle("cdk-mouse-focused","mouse"===Xt),yt.classList.toggle("cdk-program-focused","program"===Xt)}_setOrigin(yt,Xt=!1){this._ngZone.runOutsideAngular(()=>{this._origin=yt,this._originFromTouchInteraction="touch"===yt&&Xt,this._detectionMode===Pn.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(yt,Xt){const nn=this._elementInfo.get(Xt),un=(0,S.Fb)(yt);!nn||!nn.checkChildren&&Xt!==un||this._originChanged(Xt,this._getFocusOrigin(un),nn)}_onBlur(yt,Xt){const nn=this._elementInfo.get(Xt);!nn||nn.checkChildren&&yt.relatedTarget instanceof Node&&Xt.contains(yt.relatedTarget)||(this._setClasses(Xt),this._emitOrigin(nn,null))}_emitOrigin(yt,Xt){yt.subject.observers.length&&this._ngZone.run(()=>yt.subject.next(Xt))}_registerGlobalListeners(yt){if(!this._platform.isBrowser)return;const Xt=yt.rootNode,nn=this._rootNodeFocusListenerCount.get(Xt)||0;nn||this._ngZone.runOutsideAngular(()=>{Xt.addEventListener("focus",this._rootNodeFocusAndBlurListener,Fn),Xt.addEventListener("blur",this._rootNodeFocusAndBlurListener,Fn)}),this._rootNodeFocusListenerCount.set(Xt,nn+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,ue.Q)(this._stopInputModalityDetector)).subscribe(un=>{this._setOrigin(un,!0)}))}_removeGlobalListeners(yt){const Xt=yt.rootNode;if(this._rootNodeFocusListenerCount.has(Xt)){const nn=this._rootNodeFocusListenerCount.get(Xt);nn>1?this._rootNodeFocusListenerCount.set(Xt,nn-1):(Xt.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Fn),Xt.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Fn),this._rootNodeFocusListenerCount.delete(Xt))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(yt,Xt,nn){this._setClasses(yt,Xt),this._emitOrigin(nn,Xt),this._lastFocusOrigin=Xt}_getClosestElementsInfo(yt){const Xt=[];return this._elementInfo.forEach((nn,un)=>{(un===yt||nn.checkChildren&&un.contains(yt))&&Xt.push([un,nn])}),Xt}_isLastInteractionFromInputLabel(yt){const{_mostRecentTarget:Xt,mostRecentModality:nn}=this._inputModalityDetector;if("mouse"!==nn||!Xt||Xt===yt||"INPUT"!==yt.nodeName&&"TEXTAREA"!==yt.nodeName||yt.disabled)return!1;const un=yt.labels;if(un)for(let qn=0;qn<un.length;qn++)if(un[qn].contains(Xt))return!0;return!1}}return rn=et,(0,s.A)(et,"\u0275fac",function(yt){return new(yt||rn)}),(0,s.A)(et,"\u0275prov",d.jDH({token:rn,factory:rn.\u0275fac,providedIn:"root"})),et})();var Wr=function(rn){return rn[rn.NONE=0]="NONE",rn[rn.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",rn[rn.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",rn}(Wr||{});const fi="cdk-high-contrast-black-on-white",ji="cdk-high-contrast-white-on-black",ui="cdk-high-contrast-active";let So=(()=>{var rn;class et{constructor(){(0,s.A)(this,"_platform",(0,d.WQX)(S.OD)),(0,s.A)(this,"_hasCheckedHighContrastMode",void 0),(0,s.A)(this,"_document",(0,d.WQX)(f.qQ)),(0,s.A)(this,"_breakpointSubscription",void 0),this._breakpointSubscription=(0,d.WQX)(Le).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Wr.NONE;const yt=this._document.createElement("div");yt.style.backgroundColor="rgb(1,2,3)",yt.style.position="absolute",this._document.body.appendChild(yt);const Xt=this._document.defaultView||window,nn=Xt&&Xt.getComputedStyle?Xt.getComputedStyle(yt):null,un=(nn&&nn.backgroundColor||"").replace(/ /g,"");switch(yt.remove(),un){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Wr.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Wr.BLACK_ON_WHITE}return Wr.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const yt=this._document.body.classList;yt.remove(ui,fi,ji),this._hasCheckedHighContrastMode=!0;const Xt=this.getHighContrastMode();Xt===Wr.BLACK_ON_WHITE?yt.add(ui,fi):Xt===Wr.WHITE_ON_BLACK&&yt.add(ui,ji)}}}return rn=et,(0,s.A)(et,"\u0275fac",function(yt){return new(yt||rn)}),(0,s.A)(et,"\u0275prov",d.jDH({token:rn,factory:rn.\u0275fac,providedIn:"root"})),et})();const ri={};let Jn=(()=>{var rn;class et{constructor(){(0,s.A)(this,"_appId",(0,d.WQX)(d.sZ2))}getId(yt){return"ng"!==this._appId&&(yt+=this._appId),ri.hasOwnProperty(yt)||(ri[yt]=0),"".concat(yt).concat(ri[yt]++)}}return rn=et,(0,s.A)(et,"\u0275fac",function(yt){return new(yt||rn)}),(0,s.A)(et,"\u0275prov",d.jDH({token:rn,factory:rn.\u0275fac,providedIn:"root"})),et})()},8203:(se,E,c)=>{"use strict";c.d(E,{dS:()=>q,jI:()=>ve});var g=c(1660),s=c(4438),f=c(177);const d=new s.nKC("cdk-dir-doc",{providedIn:"root",factory:function S(){return(0,s.WQX)(f.qQ)}}),R=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let q=(()=>{var de;class V{constructor(){(0,g.A)(this,"value","ltr"),(0,g.A)(this,"change",new s.bkB);const ie=(0,s.WQX)(d,{optional:!0});ie&&(this.value=function U(de){var V;const Q=(null==de?void 0:de.toLowerCase())||"";return"auto"===Q&&typeof navigator<"u"&&null!==(V=navigator)&&void 0!==V&&V.language?R.test(navigator.language)?"rtl":"ltr":"rtl"===Q?"rtl":"ltr"}((ie.body?ie.body.dir:null)||(ie.documentElement?ie.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return de=V,(0,g.A)(V,"\u0275fac",function(ie){return new(ie||de)}),(0,g.A)(V,"\u0275prov",s.jDH({token:de,factory:de.\u0275fac,providedIn:"root"})),V})(),ve=(()=>{var de;class V{}return de=V,(0,g.A)(V,"\u0275fac",function(ie){return new(ie||de)}),(0,g.A)(V,"\u0275mod",s.$C({type:de})),(0,g.A)(V,"\u0275inj",s.G2t({})),V})()},4085:(se,E,c)=>{"use strict";c.d(E,{FG:()=>S,a1:()=>R,i8:()=>U});var g=c(4438);function S(z){return Array.isArray(z)?z:[z]}function R(z){return null==z?"":"string"==typeof z?z:"".concat(z,"px")}function U(z){return z instanceof g.aKT?z.nativeElement:z}},7336:(se,E,c)=>{"use strict";c.d(E,{A:()=>je,A$:()=>q,FX:()=>R,Fm:()=>S,Ge:()=>Yt,Kp:()=>K,LE:()=>ue,UQ:()=>he,W3:()=>U,Z:()=>ct,_f:()=>de,bn:()=>dt,dB:()=>ie,eg:()=>Ai,f2:()=>G,i7:()=>Ae,n6:()=>oe,rp:()=>ki,t6:()=>V,w_:()=>Q,wn:()=>f,yZ:()=>ee});const f=9,S=13,R=16,U=17,q=18,de=27,V=32,Q=33,ie=34,K=35,ee=36,he=37,Ae=38,ue=39,oe=40,G=48,dt=57,je=65,ct=90,Yt=91,Ai=224;function ki(hi,...Nr){return Nr.length?Nr.some(Gn=>hi[Gn]):hi.altKey||hi.shiftKey||hi.ctrlKey||hi.metaKey}},6860:(se,E,c)=>{"use strict";c.d(E,{BQ:()=>V,CZ:()=>ee,Fb:()=>O,KT:()=>oe,OD:()=>S,v8:()=>x});var g=c(1660),s=c(4438),f=c(177);let d;try{d=typeof Intl<"u"&&Intl.v8BreakIterator}catch(G){d=!1}let ve,K,Ae,S=(()=>{var G;class pe{constructor(){(0,g.A)(this,"_platformId",(0,s.WQX)(s.Agw)),(0,g.A)(this,"isBrowser",this._platformId?(0,f.UE)(this._platformId):"object"==typeof document&&!!document),(0,g.A)(this,"EDGE",this.isBrowser&&/(edge)/i.test(navigator.userAgent)),(0,g.A)(this,"TRIDENT",this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent)),(0,g.A)(this,"BLINK",this.isBrowser&&!(!window.chrome&&!d)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT),(0,g.A)(this,"WEBKIT",this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT),(0,g.A)(this,"IOS",this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window)),(0,g.A)(this,"FIREFOX",this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent)),(0,g.A)(this,"ANDROID",this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT),(0,g.A)(this,"SAFARI",this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT)}}return G=pe,(0,g.A)(pe,"\u0275fac",function(W){return new(W||G)}),(0,g.A)(pe,"\u0275prov",s.jDH({token:G,factory:G.\u0275fac,providedIn:"root"})),pe})();function V(G){return function de(){if(null==ve&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>ve=!0}))}finally{ve=ve||!1}return ve}()?G:!!G.capture}function ee(){if(null==K){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return K=!1,K;if("scrollBehavior"in document.documentElement.style)K=!0;else{const G=Element.prototype.scrollTo;K=!!G&&!/\{\s*\[native code\]\s*\}/.test(G.toString())}}return K}function oe(G){if(function ue(){if(null==Ae){const G=typeof document<"u"?document.head:null;Ae=!(!G||!G.createShadowRoot&&!G.attachShadow)}return Ae}()){const pe=G.getRootNode?G.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&pe instanceof ShadowRoot)return pe}return null}function O(G){return G.composedPath?G.composedPath()[0]:G.target}function x(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},9046:(se,E,c)=>{"use strict";c.d(E,{l:()=>d});var g=c(1660),s=c(4438);const f=new WeakMap;let d=(()=>{var R;class U{constructor(){(0,g.A)(this,"_appRef",void 0),(0,g.A)(this,"_injector",(0,s.WQX)(s.zZn)),(0,g.A)(this,"_environmentInjector",(0,s.WQX)(s.uvJ))}load(z){const ve=this._appRef=this._appRef||this._injector.get(s.o8S);let de=f.get(ve);de||(de={loaders:new Set,refs:[]},f.set(ve,de),ve.onDestroy(()=>{var V;null===(V=f.get(ve))||void 0===V||V.refs.forEach(Q=>Q.destroy()),f.delete(ve)})),de.loaders.has(z)||(de.loaders.add(z),de.refs.push((0,s.a0P)(z,{environmentInjector:this._environmentInjector})))}}return R=U,(0,g.A)(U,"\u0275fac",function(z){return new(z||R)}),(0,g.A)(U,"\u0275prov",s.jDH({token:R,factory:R.\u0275fac,providedIn:"root"})),U})()},177:(se,E,c)=>{"use strict";c.d(E,{AJ:()=>tr,Jj:()=>qr,MD:()=>gr,N0:()=>ss,QT:()=>R,Sm:()=>ue,Sq:()=>Vi,T3:()=>$n,UE:()=>zr,VF:()=>q,Vw:()=>de,Vy:()=>vo,WM:()=>Qo,Xr:()=>zo,YU:()=>qn,ZD:()=>U,_b:()=>Xt,aZ:()=>_,bT:()=>ki,e1:()=>Pi,fG:()=>Xe,fw:()=>oe,hb:()=>he,hj:()=>V,kB:()=>Ae,kt:()=>Ia,lG:()=>p,qQ:()=>ve,ux:()=>Yr}),c(467);var s=c(1660),f=c(4438),d=c(1413);let S=null;function R(){return S}function U($){null!=S||(S=$)}class q{}const ve=new f.nKC("");let de=(()=>{var $;class re{historyGo(X){throw new Error("")}}return $=re,(0,s.A)(re,"\u0275fac",function(X){return new(X||$)}),(0,s.A)(re,"\u0275prov",f.jDH({token:$,factory:()=>(0,f.WQX)(Q),providedIn:"platform"})),re})();const V=new f.nKC("");let Q=(()=>{var $;class re extends de{constructor(){super(),(0,s.A)(this,"_location",void 0),(0,s.A)(this,"_history",void 0),(0,s.A)(this,"_doc",(0,f.WQX)(ve)),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return R().getBaseHref(this._doc)}onPopState(X){const xe=R().getGlobalEventTarget(this._doc,"window");return xe.addEventListener("popstate",X,!1),()=>xe.removeEventListener("popstate",X)}onHashChange(X){const xe=R().getGlobalEventTarget(this._doc,"window");return xe.addEventListener("hashchange",X,!1),()=>xe.removeEventListener("hashchange",X)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(X){this._location.pathname=X}pushState(X,xe,tt){this._history.pushState(X,xe,tt)}replaceState(X,xe,tt){this._history.replaceState(X,xe,tt)}forward(){this._history.forward()}back(){this._history.back()}historyGo(X=0){this._history.go(X)}getState(){return this._history.state}}return $=re,(0,s.A)(re,"\u0275fac",function(X){return new(X||$)}),(0,s.A)(re,"\u0275prov",f.jDH({token:$,factory:()=>new $,providedIn:"platform"})),re})();function ie($,re){if(0==$.length)return re;if(0==re.length)return $;let qe=0;return $.endsWith("/")&&qe++,re.startsWith("/")&&qe++,2==qe?$+re.substring(1):1==qe?$+re:$+"/"+re}function K($){const re=$.match(/#|\?|$/),qe=re&&re.index||$.length;return $.slice(0,qe-("/"===$[qe-1]?1:0))+$.slice(qe)}function ee($){return $&&"?"!==$[0]?"?"+$:$}let he=(()=>{var $;class re{historyGo(X){throw new Error("")}}return $=re,(0,s.A)(re,"\u0275fac",function(X){return new(X||$)}),(0,s.A)(re,"\u0275prov",f.jDH({token:$,factory:()=>(0,f.WQX)(ue),providedIn:"root"})),re})();const Ae=new f.nKC("");let ue=(()=>{var $;class re extends he{constructor(X,xe){var tt,qt,En;super(),(0,s.A)(this,"_platformLocation",void 0),(0,s.A)(this,"_baseHref",void 0),(0,s.A)(this,"_removeListenerFns",[]),this._platformLocation=X,this._baseHref=null!==(tt=null!==(qt=null!=xe?xe:this._platformLocation.getBaseHrefFromDOM())&&void 0!==qt?qt:null===(En=(0,f.WQX)(ve).location)||void 0===En?void 0:En.origin)&&void 0!==tt?tt:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(X){this._removeListenerFns.push(this._platformLocation.onPopState(X),this._platformLocation.onHashChange(X))}getBaseHref(){return this._baseHref}prepareExternalUrl(X){return ie(this._baseHref,X)}path(X=!1){const xe=this._platformLocation.pathname+ee(this._platformLocation.search),tt=this._platformLocation.hash;return tt&&X?"".concat(xe).concat(tt):xe}pushState(X,xe,tt,qt){const En=this.prepareExternalUrl(tt+ee(qt));this._platformLocation.pushState(X,xe,En)}replaceState(X,xe,tt,qt){const En=this.prepareExternalUrl(tt+ee(qt));this._platformLocation.replaceState(X,xe,En)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(X=0){var xe,tt;null===(xe=(tt=this._platformLocation).historyGo)||void 0===xe||xe.call(tt,X)}}return $=re,(0,s.A)(re,"\u0275fac",function(X){return new(X||$)(f.KVO(de),f.KVO(Ae,8))}),(0,s.A)(re,"\u0275prov",f.jDH({token:$,factory:$.\u0275fac,providedIn:"root"})),re})(),oe=(()=>{var $;class re extends he{constructor(X,xe){super(),(0,s.A)(this,"_platformLocation",void 0),(0,s.A)(this,"_baseHref",""),(0,s.A)(this,"_removeListenerFns",[]),this._platformLocation=X,null!=xe&&(this._baseHref=xe)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(X){this._removeListenerFns.push(this._platformLocation.onPopState(X),this._platformLocation.onHashChange(X))}getBaseHref(){return this._baseHref}path(X=!1){var xe;const tt=null!==(xe=this._platformLocation.hash)&&void 0!==xe?xe:"#";return tt.length>0?tt.substring(1):tt}prepareExternalUrl(X){const xe=ie(this._baseHref,X);return xe.length>0?"#"+xe:xe}pushState(X,xe,tt,qt){let En=this.prepareExternalUrl(tt+ee(qt));0==En.length&&(En=this._platformLocation.pathname),this._platformLocation.pushState(X,xe,En)}replaceState(X,xe,tt,qt){let En=this.prepareExternalUrl(tt+ee(qt));0==En.length&&(En=this._platformLocation.pathname),this._platformLocation.replaceState(X,xe,En)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(X=0){var xe,tt;null===(xe=(tt=this._platformLocation).historyGo)||void 0===xe||xe.call(tt,X)}}return $=re,(0,s.A)(re,"\u0275fac",function(X){return new(X||$)(f.KVO(de),f.KVO(Ae,8))}),(0,s.A)(re,"\u0275prov",f.jDH({token:$,factory:$.\u0275fac})),re})(),_=(()=>{var $;class re{constructor(X){(0,s.A)(this,"_subject",new d.B),(0,s.A)(this,"_basePath",void 0),(0,s.A)(this,"_locationStrategy",void 0),(0,s.A)(this,"_urlChangeListeners",[]),(0,s.A)(this,"_urlChangeSubscription",null),this._locationStrategy=X;const xe=this._locationStrategy.getBaseHref();this._basePath=function G($){if(new RegExp("^(https?:)?//").test($)){const[,qe]=$.split(/\/\/[^\/]+/);return qe}return $}(K(B(xe))),this._locationStrategy.onPopState(tt=>{this._subject.next({url:this.path(!0),pop:!0,state:tt.state,type:tt.type})})}ngOnDestroy(){var X;null===(X=this._urlChangeSubscription)||void 0===X||X.unsubscribe(),this._urlChangeListeners=[]}path(X=!1){return this.normalize(this._locationStrategy.path(X))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(X,xe=""){return this.path()==this.normalize(X+ee(xe))}normalize(X){return re.stripTrailingSlash(function x($,re){if(!$||!re.startsWith($))return re;const qe=re.substring($.length);return""===qe||["/",";","?","#"].includes(qe[0])?qe:re}(this._basePath,B(X)))}prepareExternalUrl(X){return X&&"/"!==X[0]&&(X="/"+X),this._locationStrategy.prepareExternalUrl(X)}go(X,xe="",tt=null){this._locationStrategy.pushState(tt,"",X,xe),this._notifyUrlChangeListeners(this.prepareExternalUrl(X+ee(xe)),tt)}replaceState(X,xe="",tt=null){this._locationStrategy.replaceState(tt,"",X,xe),this._notifyUrlChangeListeners(this.prepareExternalUrl(X+ee(xe)),tt)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(X=0){var xe,tt;null===(xe=(tt=this._locationStrategy).historyGo)||void 0===xe||xe.call(tt,X)}onUrlChange(X){var xe;return this._urlChangeListeners.push(X),null!==(xe=this._urlChangeSubscription)&&void 0!==xe||(this._urlChangeSubscription=this.subscribe(tt=>{this._notifyUrlChangeListeners(tt.url,tt.state)})),()=>{const tt=this._urlChangeListeners.indexOf(X);var qt;this._urlChangeListeners.splice(tt,1),0===this._urlChangeListeners.length&&(null===(qt=this._urlChangeSubscription)||void 0===qt||qt.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(X="",xe){this._urlChangeListeners.forEach(tt=>tt(X,xe))}subscribe(X,xe,tt){return this._subject.subscribe({next:X,error:null!=xe?xe:void 0,complete:null!=tt?tt:void 0})}}return $=re,(0,s.A)(re,"normalizeQueryParams",ee),(0,s.A)(re,"joinWithSlash",ie),(0,s.A)(re,"stripTrailingSlash",K),(0,s.A)(re,"\u0275fac",function(X){return new(X||$)(f.KVO(he))}),(0,s.A)(re,"\u0275prov",f.jDH({token:$,factory:()=>function O(){return new _((0,f.KVO)(he))}(),providedIn:"root"})),re})();function B($){return $.replace(/\/index.html$/,"")}function Xt($,re){re=encodeURIComponent(re);for(const qe of $.split(";")){const X=qe.indexOf("="),[xe,tt]=-1==X?[qe,""]:[qe.slice(0,X),qe.slice(X+1)];if(xe.trim()===re)return decodeURIComponent(tt)}return null}const nn=/\s+/,un=[];let qn=(()=>{var $;class re{constructor(X,xe){(0,s.A)(this,"_ngEl",void 0),(0,s.A)(this,"_renderer",void 0),(0,s.A)(this,"initialClasses",un),(0,s.A)(this,"rawClass",void 0),(0,s.A)(this,"stateMap",new Map),this._ngEl=X,this._renderer=xe}set klass(X){this.initialClasses=null!=X?X.trim().split(nn):un}set ngClass(X){this.rawClass="string"==typeof X?X.trim().split(nn):X}ngDoCheck(){for(const xe of this.initialClasses)this._updateState(xe,!0);const X=this.rawClass;if(Array.isArray(X)||X instanceof Set)for(const xe of X)this._updateState(xe,!0);else if(null!=X)for(const xe of Object.keys(X))this._updateState(xe,!!X[xe]);this._applyStateDiff()}_updateState(X,xe){const tt=this.stateMap.get(X);void 0!==tt?(tt.enabled!==xe&&(tt.changed=!0,tt.enabled=xe),tt.touched=!0):this.stateMap.set(X,{enabled:xe,changed:!0,touched:!0})}_applyStateDiff(){for(const X of this.stateMap){const xe=X[0],tt=X[1];tt.changed?(this._toggleClass(xe,tt.enabled),tt.changed=!1):tt.touched||(tt.enabled&&this._toggleClass(xe,!1),this.stateMap.delete(xe)),tt.touched=!1}}_toggleClass(X,xe){(X=X.trim()).length>0&&X.split(nn).forEach(tt=>{xe?this._renderer.addClass(this._ngEl.nativeElement,tt):this._renderer.removeClass(this._ngEl.nativeElement,tt)})}}return $=re,(0,s.A)(re,"\u0275fac",function(X){return new(X||$)(f.rXU(f.aKT),f.rXU(f.sFG))}),(0,s.A)(re,"\u0275dir",f.FsC({type:$,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})),re})();class no{constructor(re,qe,X,xe){(0,s.A)(this,"$implicit",void 0),(0,s.A)(this,"ngForOf",void 0),(0,s.A)(this,"index",void 0),(0,s.A)(this,"count",void 0),this.$implicit=re,this.ngForOf=qe,this.index=X,this.count=xe}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Vi=(()=>{var $;class re{set ngForOf(X){this._ngForOf=X,this._ngForOfDirty=!0}set ngForTrackBy(X){this._trackByFn=X}get ngForTrackBy(){return this._trackByFn}constructor(X,xe,tt){(0,s.A)(this,"_viewContainer",void 0),(0,s.A)(this,"_template",void 0),(0,s.A)(this,"_differs",void 0),(0,s.A)(this,"_ngForOf",null),(0,s.A)(this,"_ngForOfDirty",!0),(0,s.A)(this,"_differ",null),(0,s.A)(this,"_trackByFn",void 0),this._viewContainer=X,this._template=xe,this._differs=tt}set ngForTemplate(X){X&&(this._template=X)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const X=this._ngForOf;!this._differ&&X&&(this._differ=this._differs.find(X).create(this.ngForTrackBy))}if(this._differ){const X=this._differ.diff(this._ngForOf);X&&this._applyChanges(X)}}_applyChanges(X){const xe=this._viewContainer;X.forEachOperation((tt,qt,En)=>{if(null==tt.previousIndex)xe.createEmbeddedView(this._template,new no(tt.item,this._ngForOf,-1,-1),null===En?void 0:En);else if(null==En)xe.remove(null===qt?void 0:qt);else if(null!==qt){const _r=xe.get(qt);xe.move(_r,En),vr(_r,tt)}});for(let tt=0,qt=xe.length;tt<qt;tt++){const _r=xe.get(tt).context;_r.index=tt,_r.count=qt,_r.ngForOf=this._ngForOf}X.forEachIdentityChange(tt=>{vr(xe.get(tt.currentIndex),tt)})}static ngTemplateContextGuard(X,xe){return!0}}return $=re,(0,s.A)(re,"\u0275fac",function(X){return new(X||$)(f.rXU(f.c1b),f.rXU(f.C4Q),f.rXU(f._q3))}),(0,s.A)(re,"\u0275dir",f.FsC({type:$,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})),re})();function vr($,re){$.context.$implicit=re.item}let ki=(()=>{var $;class re{constructor(X,xe){(0,s.A)(this,"_viewContainer",void 0),(0,s.A)(this,"_context",new hi),(0,s.A)(this,"_thenTemplateRef",null),(0,s.A)(this,"_elseTemplateRef",null),(0,s.A)(this,"_thenViewRef",null),(0,s.A)(this,"_elseViewRef",null),this._viewContainer=X,this._thenTemplateRef=xe}set ngIf(X){this._context.$implicit=this._context.ngIf=X,this._updateView()}set ngIfThen(X){Nr("ngIfThen",X),this._thenTemplateRef=X,this._thenViewRef=null,this._updateView()}set ngIfElse(X){Nr("ngIfElse",X),this._elseTemplateRef=X,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(X,xe){return!0}}return $=re,(0,s.A)(re,"ngIfUseIfTypeGuard",void 0),(0,s.A)(re,"ngTemplateGuard_ngIf",void 0),(0,s.A)(re,"\u0275fac",function(X){return new(X||$)(f.rXU(f.c1b),f.rXU(f.C4Q))}),(0,s.A)(re,"\u0275dir",f.FsC({type:$,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})),re})();class hi{constructor(){(0,s.A)(this,"$implicit",null),(0,s.A)(this,"ngIf",null)}}function Nr($,re){if(re&&!re.createEmbeddedView)throw new Error("".concat($," must be a TemplateRef, but received '").concat((0,f.Tbb)(re),"'."))}class Gn{constructor(re,qe){(0,s.A)(this,"_viewContainerRef",void 0),(0,s.A)(this,"_templateRef",void 0),(0,s.A)(this,"_created",!1),this._viewContainerRef=re,this._templateRef=qe}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(re){re&&!this._created?this.create():!re&&this._created&&this.destroy()}}let Yr=(()=>{var $;class re{constructor(){(0,s.A)(this,"_defaultViews",[]),(0,s.A)(this,"_defaultUsed",!1),(0,s.A)(this,"_caseCount",0),(0,s.A)(this,"_lastCaseCheckIndex",0),(0,s.A)(this,"_lastCasesMatched",!1),(0,s.A)(this,"_ngSwitch",void 0)}set ngSwitch(X){this._ngSwitch=X,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(X){this._defaultViews.push(X)}_matchCase(X){const xe=X===this._ngSwitch;return this._lastCasesMatched||(this._lastCasesMatched=xe),this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),xe}_updateDefaultCases(X){if(this._defaultViews.length>0&&X!==this._defaultUsed){this._defaultUsed=X;for(const xe of this._defaultViews)xe.enforceState(X)}}}return $=re,(0,s.A)(re,"\u0275fac",function(X){return new(X||$)}),(0,s.A)(re,"\u0275dir",f.FsC({type:$,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}})),re})(),Pi=(()=>{var $;class re{constructor(X,xe,tt){(0,s.A)(this,"ngSwitch",void 0),(0,s.A)(this,"_view",void 0),(0,s.A)(this,"ngSwitchCase",void 0),this.ngSwitch=tt,tt._addCase(),this._view=new Gn(X,xe)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return $=re,(0,s.A)(re,"\u0275fac",function(X){return new(X||$)(f.rXU(f.c1b),f.rXU(f.C4Q),f.rXU(Yr,9))}),(0,s.A)(re,"\u0275dir",f.FsC({type:$,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}})),re})(),Xe=(()=>{var $;class re{constructor(X,xe,tt){tt._addDefault(new Gn(X,xe))}}return $=re,(0,s.A)(re,"\u0275fac",function(X){return new(X||$)(f.rXU(f.c1b),f.rXU(f.C4Q),f.rXU(Yr,9))}),(0,s.A)(re,"\u0275dir",f.FsC({type:$,selectors:[["","ngSwitchDefault",""]]})),re})(),$n=(()=>{var $;class re{constructor(X){(0,s.A)(this,"_viewContainerRef",void 0),(0,s.A)(this,"_viewRef",null),(0,s.A)(this,"ngTemplateOutletContext",null),(0,s.A)(this,"ngTemplateOutlet",null),(0,s.A)(this,"ngTemplateOutletInjector",null),this._viewContainerRef=X}ngOnChanges(X){if(this._shouldRecreateView(X)){var xe;const tt=this._viewContainerRef;if(this._viewRef&&tt.remove(tt.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const qt=this._createContextForwardProxy();this._viewRef=tt.createEmbeddedView(this.ngTemplateOutlet,qt,{injector:null!==(xe=this.ngTemplateOutletInjector)&&void 0!==xe?xe:void 0})}}_shouldRecreateView(X){return!!X.ngTemplateOutlet||!!X.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(X,xe,tt)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,xe,tt),get:(X,xe,tt)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,xe,tt)}})}}return $=re,(0,s.A)(re,"\u0275fac",function(X){return new(X||$)(f.rXU(f.c1b))}),(0,s.A)(re,"\u0275dir",f.FsC({type:$,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[f.OA$]})),re})();class zn{createSubscription(re,qe){return(0,f.O8t)(()=>re.subscribe({next:qe,error:X=>{throw X}}))}dispose(re){(0,f.O8t)(()=>re.unsubscribe())}}class Dn{createSubscription(re,qe){return re.then(qe,X=>{throw X})}dispose(re){}}const ii=new Dn,Jr=new zn;let qr=(()=>{var $;class re{constructor(X){(0,s.A)(this,"_ref",void 0),(0,s.A)(this,"_latestValue",null),(0,s.A)(this,"markForCheckOnValueUpdate",!0),(0,s.A)(this,"_subscription",null),(0,s.A)(this,"_obj",null),(0,s.A)(this,"_strategy",null),this._ref=X}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(X){if(!this._obj){if(X)try{this.markForCheckOnValueUpdate=!1,this._subscribe(X)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return X!==this._obj?(this._dispose(),this.transform(X)):this._latestValue}_subscribe(X){this._obj=X,this._strategy=this._selectStrategy(X),this._subscription=this._strategy.createSubscription(X,xe=>this._updateLatestValue(X,xe))}_selectStrategy(X){if((0,f.jNT)(X))return ii;if((0,f.zjR)(X))return Jr;throw function Sn($,re){return new f.wOt(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(X,xe){var tt;X===this._obj&&(this._latestValue=xe,this.markForCheckOnValueUpdate)&&(null===(tt=this._ref)||void 0===tt||tt.markForCheck())}}return $=re,(0,s.A)(re,"\u0275fac",function(X){return new(X||$)(f.rXU(f.gRc,16))}),(0,s.A)(re,"\u0275pipe",f.EJ8({name:"async",type:$,pure:!1})),re})(),p=(()=>{var $;class re{constructor(X){(0,s.A)(this,"differs",void 0),(0,s.A)(this,"differ",void 0),(0,s.A)(this,"keyValues",[]),(0,s.A)(this,"compareFn",T),this.differs=X}transform(X,xe=T){var tt;if(!X||!(X instanceof Map)&&"object"!=typeof X)return null;null!==(tt=this.differ)&&void 0!==tt||(this.differ=this.differs.find(X).create());const qt=this.differ.diff(X),En=xe!==this.compareFn;return qt&&(this.keyValues=[],qt.forEachItem(_r=>{this.keyValues.push(function _i($,re){return{key:$,value:re}}(_r.key,_r.currentValue))})),(qt||En)&&(xe&&this.keyValues.sort(xe),this.compareFn=xe),this.keyValues}}return $=re,(0,s.A)(re,"\u0275fac",function(X){return new(X||$)(f.rXU(f.MKu,16))}),(0,s.A)(re,"\u0275pipe",f.EJ8({name:"keyvalue",type:$,pure:!1})),re})();function T($,re){const qe=$.key,X=re.key;if(qe===X)return 0;if(void 0===qe)return 1;if(void 0===X)return-1;if(null===qe)return 1;if(null===X)return-1;if("string"==typeof qe&&"string"==typeof X)return qe<X?-1:1;if("number"==typeof qe&&"number"==typeof X)return qe-X;if("boolean"==typeof qe&&"boolean"==typeof X)return qe<X?-1:1;const xe=String(qe),tt=String(X);return xe==tt?0:xe<tt?-1:1}let gr=(()=>{var $;class re{}return $=re,(0,s.A)(re,"\u0275fac",function(X){return new(X||$)}),(0,s.A)(re,"\u0275mod",f.$C({type:$})),(0,s.A)(re,"\u0275inj",f.G2t({})),re})();const tr="browser",wr="server";function zr($){return $===tr}function vo($){return $===wr}let zo=(()=>{class re{}return(0,s.A)(re,"\u0275prov",(0,f.jDH)({token:re,providedIn:"root",factory:()=>new ci((0,f.WQX)(ve),window)})),re})();class ci{constructor(re,qe){(0,s.A)(this,"document",void 0),(0,s.A)(this,"window",void 0),(0,s.A)(this,"offset",()=>[0,0]),this.document=re,this.window=qe}setOffset(re){this.offset=Array.isArray(re)?()=>re:re}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(re){this.window.scrollTo(re[0],re[1])}scrollToAnchor(re){const qe=function qi($,re){const qe=$.getElementById(re)||$.getElementsByName(re)[0];if(qe)return qe;if("function"==typeof $.createTreeWalker&&$.body&&"function"==typeof $.body.attachShadow){const X=$.createTreeWalker($.body,NodeFilter.SHOW_ELEMENT);let xe=X.currentNode;for(;xe;){const tt=xe.shadowRoot;if(tt){const qt=tt.getElementById(re)||tt.querySelector('[name="'.concat(re,'"]'));if(qt)return qt}xe=X.nextNode()}}return null}(this.document,re);qe&&(this.scrollToElement(qe),qe.focus())}setHistoryScrollRestoration(re){this.window.history.scrollRestoration=re}scrollToElement(re){const qe=re.getBoundingClientRect(),X=qe.left+this.window.pageXOffset,xe=qe.top+this.window.pageYOffset,tt=this.offset();this.window.scrollTo(X-tt[0],xe-tt[1])}}class ss{}const lo=$=>$.src,Qo=new f.nKC("",{providedIn:"root",factory:()=>lo}),cn=new f.nKC("",{providedIn:"root",factory:()=>new Set});let Ln=(()=>{var $;class re{constructor(){(0,s.A)(this,"preloadedImages",(0,f.WQX)(cn)),(0,s.A)(this,"document",(0,f.WQX)(ve))}createPreloadLinkTag(X,xe,tt,qt){if(this.preloadedImages.has(xe))return;this.preloadedImages.add(xe);const En=X.createElement("link");X.setAttribute(En,"as","image"),X.setAttribute(En,"href",xe),X.setAttribute(En,"rel","preload"),X.setAttribute(En,"fetchpriority","high"),qt&&X.setAttribute(En,"imageSizes",qt),tt&&X.setAttribute(En,"imageSrcset",tt),X.appendChild(this.document.head,En)}}return $=re,(0,s.A)(re,"\u0275fac",function(X){return new(X||$)}),(0,s.A)(re,"\u0275prov",f.jDH({token:$,factory:$.\u0275fac,providedIn:"root"})),re})();const dr=/^((\s*\d+w\s*(,|$)){1,})$/,oi=[1,2];let Ia=(()=>{var $;class re{constructor(){(0,s.A)(this,"imageLoader",(0,f.WQX)(Qo)),(0,s.A)(this,"config",function Ts($){let re={};return $.breakpoints&&(re.breakpoints=$.breakpoints.sort((qe,X)=>qe-X)),Object.assign({},f.PUk,$,re)}((0,f.WQX)(f.GGh))),(0,s.A)(this,"renderer",(0,f.WQX)(f.sFG)),(0,s.A)(this,"imgElement",(0,f.WQX)(f.aKT).nativeElement),(0,s.A)(this,"injector",(0,f.WQX)(f.zZn)),(0,s.A)(this,"isServer",vo((0,f.WQX)(f.Agw))),(0,s.A)(this,"preloadLinkCreator",(0,f.WQX)(Ln)),(0,s.A)(this,"lcpObserver",void 0),(0,s.A)(this,"_renderedSrc",null),(0,s.A)(this,"ngSrc",void 0),(0,s.A)(this,"ngSrcset",void 0),(0,s.A)(this,"sizes",void 0),(0,s.A)(this,"width",void 0),(0,s.A)(this,"height",void 0),(0,s.A)(this,"loading",void 0),(0,s.A)(this,"priority",!1),(0,s.A)(this,"loaderParams",void 0),(0,s.A)(this,"disableOptimizedSrcset",!1),(0,s.A)(this,"fill",!1),(0,s.A)(this,"placeholder",void 0),(0,s.A)(this,"placeholderConfig",void 0),(0,s.A)(this,"src",void 0),(0,s.A)(this,"srcset",void 0)}ngOnInit(){(0,f.ngT)("NgOptimizedImage"),this.placeholder&&this.removePlaceholderOnLoad(this.imgElement),this.setHostAttributes()}setHostAttributes(){this.fill?this.sizes||(this.sizes="100vw"):(this.setHostAttribute("width",this.width.toString()),this.setHostAttribute("height",this.height.toString())),this.setHostAttribute("loading",this.getLoadingBehavior()),this.setHostAttribute("fetchpriority",this.getFetchPriority()),this.setHostAttribute("ng-img","true");const X=this.updateSrcAndSrcset();this.sizes?"lazy"===this.getLoadingBehavior()?this.setHostAttribute("sizes","auto, "+this.sizes):this.setHostAttribute("sizes",this.sizes):this.ngSrcset&&dr.test(this.ngSrcset)&&"lazy"===this.getLoadingBehavior()&&this.setHostAttribute("sizes","auto, 100vw"),this.isServer&&this.priority&&this.preloadLinkCreator.createPreloadLinkTag(this.renderer,this.getRewrittenSrc(),X,this.sizes)}ngOnChanges(X){X.ngSrc&&!X.ngSrc.isFirstChange()&&this.updateSrcAndSrcset(!0)}callImageLoader(X){let xe=X;return this.loaderParams&&(xe.loaderParams=this.loaderParams),this.imageLoader(xe)}getLoadingBehavior(){return this.priority||void 0===this.loading?this.priority?"eager":"lazy":this.loading}getFetchPriority(){return this.priority?"high":"auto"}getRewrittenSrc(){return this._renderedSrc||(this._renderedSrc=this.callImageLoader({src:this.ngSrc})),this._renderedSrc}getRewrittenSrcset(){const X=dr.test(this.ngSrcset);return this.ngSrcset.split(",").filter(tt=>""!==tt).map(tt=>{tt=tt.trim();const qt=X?parseFloat(tt):parseFloat(tt)*this.width;return"".concat(this.callImageLoader({src:this.ngSrc,width:qt})," ").concat(tt)}).join(", ")}getAutomaticSrcset(){return this.sizes?this.getResponsiveSrcset():this.getFixedSrcset()}getResponsiveSrcset(){var X;const{breakpoints:xe}=this.config;let tt=xe;return"100vw"===(null===(X=this.sizes)||void 0===X?void 0:X.trim())&&(tt=xe.filter(En=>En>=640)),tt.map(En=>"".concat(this.callImageLoader({src:this.ngSrc,width:En})," ").concat(En,"w")).join(", ")}updateSrcAndSrcset(X=!1){X&&(this._renderedSrc=null);const xe=this.getRewrittenSrc();let tt;return this.setHostAttribute("src",xe),this.ngSrcset?tt=this.getRewrittenSrcset():this.shouldGenerateAutomaticSrcset()&&(tt=this.getAutomaticSrcset()),tt&&this.setHostAttribute("srcset",tt),tt}getFixedSrcset(){return oi.map(xe=>"".concat(this.callImageLoader({src:this.ngSrc,width:this.width*xe})," ").concat(xe,"x")).join(", ")}shouldGenerateAutomaticSrcset(){let X=!1;return this.sizes||(X=this.width>1920||this.height>1080),!this.disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==lo&&!X}generatePlaceholder(X){const{placeholderResolution:xe}=this.config;return!0===X?"url(".concat(this.callImageLoader({src:this.ngSrc,width:xe,isPlaceholder:!0}),")"):"string"==typeof X?"url(".concat(X,")"):null}shouldBlurPlaceholder(X){return!X||!X.hasOwnProperty("blur")||!!X.blur}removePlaceholderOnLoad(X){const xe=()=>{const En=this.injector.get(f.gRc);tt(),qt(),this.placeholder=!1,En.markForCheck()},tt=this.renderer.listen(X,"load",xe),qt=this.renderer.listen(X,"error",xe);!function Br($,re){$.complete&&$.naturalWidth&&re()}(X,xe)}setHostAttribute(X,xe){this.renderer.setAttribute(this.imgElement,X,xe)}}return $=re,(0,s.A)(re,"\u0275fac",function(X){return new(X||$)}),(0,s.A)(re,"\u0275dir",f.FsC({type:$,selectors:[["img","ngSrc",""]],hostVars:18,hostBindings:function(X,xe){2&X&&f.xc7("position",xe.fill?"absolute":null)("width",xe.fill?"100%":null)("height",xe.fill?"100%":null)("inset",xe.fill?"0":null)("background-size",xe.placeholder?"cover":null)("background-position",xe.placeholder?"50% 50%":null)("background-repeat",xe.placeholder?"no-repeat":null)("background-image",xe.placeholder?xe.generatePlaceholder(xe.placeholder):null)("filter",xe.placeholder&&xe.shouldBlurPlaceholder(xe.placeholderConfig)?"blur(15px)":null)},inputs:{ngSrc:[2,"ngSrc","ngSrc",jo],ngSrcset:"ngSrcset",sizes:"sizes",width:[2,"width","width",f.Udg],height:[2,"height","height",f.Udg],loading:"loading",priority:[2,"priority","priority",f.L39],loaderParams:"loaderParams",disableOptimizedSrcset:[2,"disableOptimizedSrcset","disableOptimizedSrcset",f.L39],fill:[2,"fill","fill",f.L39],placeholder:[2,"placeholder","placeholder",yr],placeholderConfig:"placeholderConfig",src:"src",srcset:"srcset"},features:[f.GFd,f.OA$]})),re})();function jo($){return"string"==typeof $?$:(0,f.rcV)($)}function yr($){return"string"==typeof $&&"true"!==$&&"false"!==$&&""!==$?$:(0,f.L39)($)}},1626:(se,E,c)=>{"use strict";c.d(E,{$R:()=>Fn,$m:()=>Nr,Qq:()=>Mt});var g=c(2305),s=c(9379),d=(c(467),c(1660)),S=c(4438),R=c(7673),U=c(1985),q=c(9724),z=c(274),ve=c(5964),de=c(6354),V=c(980),Q=c(5558),ie=c(8141),K=c(177);const ee=["isCacheActive"];class he{}class Ae{}class ue{constructor(_t){(0,d.A)(this,"headers",void 0),(0,d.A)(this,"normalizedNames",new Map),(0,d.A)(this,"lazyInit",void 0),(0,d.A)(this,"lazyUpdate",null),_t?"string"==typeof _t?this.lazyInit=()=>{this.headers=new Map,_t.split("\n").forEach(Zt=>{const Ut=Zt.indexOf(":");if(Ut>0){const bn=Zt.slice(0,Ut),Rn=Zt.slice(Ut+1).trim();this.addHeaderEntry(bn,Rn)}})}:typeof Headers<"u"&&_t instanceof Headers?(this.headers=new Map,_t.forEach((Zt,Ut)=>{this.addHeaderEntry(Ut,Zt)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(_t).forEach(([Zt,Ut])=>{this.setHeaderEntries(Zt,Ut)})}:this.headers=new Map}has(_t){return this.init(),this.headers.has(_t.toLowerCase())}get(_t){this.init();const Zt=this.headers.get(_t.toLowerCase());return Zt&&Zt.length>0?Zt[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(_t){return this.init(),this.headers.get(_t.toLowerCase())||null}append(_t,Zt){return this.clone({name:_t,value:Zt,op:"a"})}set(_t,Zt){return this.clone({name:_t,value:Zt,op:"s"})}delete(_t,Zt){return this.clone({name:_t,value:Zt,op:"d"})}maybeSetNormalizedName(_t,Zt){this.normalizedNames.has(Zt)||this.normalizedNames.set(Zt,_t)}init(){this.lazyInit&&(this.lazyInit instanceof ue?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(_t=>this.applyUpdate(_t)),this.lazyUpdate=null))}copyFrom(_t){_t.init(),Array.from(_t.headers.keys()).forEach(Zt=>{this.headers.set(Zt,_t.headers.get(Zt)),this.normalizedNames.set(Zt,_t.normalizedNames.get(Zt))})}clone(_t){const Zt=new ue;return Zt.lazyInit=this.lazyInit&&this.lazyInit instanceof ue?this.lazyInit:this,Zt.lazyUpdate=(this.lazyUpdate||[]).concat([_t]),Zt}applyUpdate(_t){const Zt=_t.name.toLowerCase();switch(_t.op){case"a":case"s":let Ut=_t.value;if("string"==typeof Ut&&(Ut=[Ut]),0===Ut.length)return;this.maybeSetNormalizedName(_t.name,Zt);const bn=("a"===_t.op?this.headers.get(Zt):void 0)||[];bn.push(...Ut),this.headers.set(Zt,bn);break;case"d":const Rn=_t.value;if(Rn){let $n=this.headers.get(Zt);if(!$n)return;$n=$n.filter(Bn=>-1===Rn.indexOf(Bn)),0===$n.length?(this.headers.delete(Zt),this.normalizedNames.delete(Zt)):this.headers.set(Zt,$n)}else this.headers.delete(Zt),this.normalizedNames.delete(Zt)}}addHeaderEntry(_t,Zt){const Ut=_t.toLowerCase();this.maybeSetNormalizedName(_t,Ut),this.headers.has(Ut)?this.headers.get(Ut).push(Zt):this.headers.set(Ut,[Zt])}setHeaderEntries(_t,Zt){const Ut=(Array.isArray(Zt)?Zt:[Zt]).map(Rn=>Rn.toString()),bn=_t.toLowerCase();this.headers.set(bn,Ut),this.maybeSetNormalizedName(_t,bn)}forEach(_t){this.init(),Array.from(this.normalizedNames.keys()).forEach(Zt=>_t(this.normalizedNames.get(Zt),this.headers.get(Zt)))}}class _{encodeKey(_t){return G(_t)}encodeValue(_t){return G(_t)}decodeKey(_t){return decodeURIComponent(_t)}decodeValue(_t){return decodeURIComponent(_t)}}const x=/%(\d[a-f0-9])/gi,B={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function G(Xe){return encodeURIComponent(Xe).replace(x,(_t,Zt)=>{var Ut;return null!==(Ut=B[Zt])&&void 0!==Ut?Ut:_t})}function pe(Xe){return"".concat(Xe)}class le{constructor(_t={}){if((0,d.A)(this,"map",void 0),(0,d.A)(this,"encoder",void 0),(0,d.A)(this,"updates",null),(0,d.A)(this,"cloneFrom",null),this.encoder=_t.encoder||new _,_t.fromString){if(_t.fromObject)throw new S.wOt(2805,!1);this.map=function O(Xe,_t){const Zt=new Map;return Xe.length>0&&Xe.replace(/^\?/,"").split("&").forEach(bn=>{const Rn=bn.indexOf("="),[$n,Bn]=-1==Rn?[_t.decodeKey(bn),""]:[_t.decodeKey(bn.slice(0,Rn)),_t.decodeValue(bn.slice(Rn+1))],Sn=Zt.get($n)||[];Sn.push(Bn),Zt.set($n,Sn)}),Zt}(_t.fromString,this.encoder)}else _t.fromObject?(this.map=new Map,Object.keys(_t.fromObject).forEach(Zt=>{const Ut=_t.fromObject[Zt],bn=Array.isArray(Ut)?Ut.map(pe):[pe(Ut)];this.map.set(Zt,bn)})):this.map=null}has(_t){return this.init(),this.map.has(_t)}get(_t){this.init();const Zt=this.map.get(_t);return Zt?Zt[0]:null}getAll(_t){return this.init(),this.map.get(_t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(_t,Zt){return this.clone({param:_t,value:Zt,op:"a"})}appendAll(_t){const Zt=[];return Object.keys(_t).forEach(Ut=>{const bn=_t[Ut];Array.isArray(bn)?bn.forEach(Rn=>{Zt.push({param:Ut,value:Rn,op:"a"})}):Zt.push({param:Ut,value:bn,op:"a"})}),this.clone(Zt)}set(_t,Zt){return this.clone({param:_t,value:Zt,op:"s"})}delete(_t,Zt){return this.clone({param:_t,value:Zt,op:"d"})}toString(){return this.init(),this.keys().map(_t=>{const Zt=this.encoder.encodeKey(_t);return this.map.get(_t).map(Ut=>Zt+"="+this.encoder.encodeValue(Ut)).join("&")}).filter(_t=>""!==_t).join("&")}clone(_t){const Zt=new le({encoder:this.encoder});return Zt.cloneFrom=this.cloneFrom||this,Zt.updates=(this.updates||[]).concat(_t),Zt}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(_t=>this.map.set(_t,this.cloneFrom.map.get(_t))),this.updates.forEach(_t=>{switch(_t.op){case"a":case"s":const Zt=("a"===_t.op?this.map.get(_t.param):void 0)||[];Zt.push(pe(_t.value)),this.map.set(_t.param,Zt);break;case"d":if(void 0===_t.value){this.map.delete(_t.param);break}{let Ut=this.map.get(_t.param)||[];const bn=Ut.indexOf(pe(_t.value));-1!==bn&&Ut.splice(bn,1),Ut.length>0?this.map.set(_t.param,Ut):this.map.delete(_t.param)}}}),this.cloneFrom=this.updates=null)}}class te{constructor(){(0,d.A)(this,"map",new Map)}set(_t,Zt){return this.map.set(_t,Zt),this}get(_t){return this.map.has(_t)||this.map.set(_t,_t.defaultValue()),this.map.get(_t)}delete(_t){return this.map.delete(_t),this}has(_t){return this.map.has(_t)}keys(){return this.map.keys()}}function _e(Xe){return typeof ArrayBuffer<"u"&&Xe instanceof ArrayBuffer}function Le(Xe){return typeof Blob<"u"&&Xe instanceof Blob}function We(Xe){return typeof FormData<"u"&&Xe instanceof FormData}const Ye="Content-Type",we="X-Request-URL",ze="text/plain",Ke="application/json",je="".concat(Ke,", ").concat(ze,", */*");class Ze{constructor(_t,Zt,Ut,bn){var Rn,$n;let Bn;if((0,d.A)(this,"url",void 0),(0,d.A)(this,"body",null),(0,d.A)(this,"headers",void 0),(0,d.A)(this,"context",void 0),(0,d.A)(this,"reportProgress",!1),(0,d.A)(this,"withCredentials",!1),(0,d.A)(this,"responseType","json"),(0,d.A)(this,"method",void 0),(0,d.A)(this,"params",void 0),(0,d.A)(this,"urlWithParams",void 0),(0,d.A)(this,"transferCache",void 0),this.url=Zt,this.method=_t.toUpperCase(),function ae(Xe){switch(Xe){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||bn?(this.body=void 0!==Ut?Ut:null,Bn=bn):Bn=Ut,Bn&&(this.reportProgress=!!Bn.reportProgress,this.withCredentials=!!Bn.withCredentials,Bn.responseType&&(this.responseType=Bn.responseType),Bn.headers&&(this.headers=Bn.headers),Bn.context&&(this.context=Bn.context),Bn.params&&(this.params=Bn.params),this.transferCache=Bn.transferCache),null!==(Rn=this.headers)&&void 0!==Rn||(this.headers=new ue),null!==($n=this.context)&&void 0!==$n||(this.context=new te),this.params){const Sn=this.params.toString();if(0===Sn.length)this.urlWithParams=Zt;else{const zn=Zt.indexOf("?");this.urlWithParams=Zt+(-1===zn?"?":zn<Zt.length-1?"&":"")+Sn}}else this.params=new le,this.urlWithParams=Zt}serializeBody(){return null===this.body?null:"string"==typeof this.body||_e(this.body)||Le(this.body)||We(this.body)||function dt(Xe){return typeof URLSearchParams<"u"&&Xe instanceof URLSearchParams}(this.body)?this.body:this.body instanceof le?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||We(this.body)?null:Le(this.body)?this.body.type||null:_e(this.body)?null:"string"==typeof this.body?ze:this.body instanceof le?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?Ke:null}clone(_t={}){var Zt,Ut,bn,Rn;const $n=_t.method||this.method,Bn=_t.url||this.url,Sn=_t.responseType||this.responseType,zn=null!==(Zt=_t.transferCache)&&void 0!==Zt?Zt:this.transferCache,Dn=void 0!==_t.body?_t.body:this.body,ii=null!==(Ut=_t.withCredentials)&&void 0!==Ut?Ut:this.withCredentials,Jr=null!==(bn=_t.reportProgress)&&void 0!==bn?bn:this.reportProgress;let qr=_t.headers||this.headers,Ir=_t.params||this.params;const it=null!==(Rn=_t.context)&&void 0!==Rn?Rn:this.context;return void 0!==_t.setHeaders&&(qr=Object.keys(_t.setHeaders).reduce((Bt,Lt)=>Bt.set(Lt,_t.setHeaders[Lt]),qr)),_t.setParams&&(Ir=Object.keys(_t.setParams).reduce((Bt,Lt)=>Bt.set(Lt,_t.setParams[Lt]),Ir)),new Ze($n,Bn,Dn,{params:Ir,headers:qr,context:it,reportProgress:Jr,responseType:Sn,withCredentials:ii,transferCache:zn})}}var k=function(Xe){return Xe[Xe.Sent=0]="Sent",Xe[Xe.UploadProgress=1]="UploadProgress",Xe[Xe.ResponseHeader=2]="ResponseHeader",Xe[Xe.DownloadProgress=3]="DownloadProgress",Xe[Xe.Response=4]="Response",Xe[Xe.User=5]="User",Xe}(k||{});class F{constructor(_t,Zt=200,Ut="OK"){(0,d.A)(this,"headers",void 0),(0,d.A)(this,"status",void 0),(0,d.A)(this,"statusText",void 0),(0,d.A)(this,"url",void 0),(0,d.A)(this,"ok",void 0),(0,d.A)(this,"type",void 0),this.headers=_t.headers||new ue,this.status=void 0!==_t.status?_t.status:Zt,this.statusText=_t.statusText||Ut,this.url=_t.url||null,this.ok=this.status>=200&&this.status<300}}class Y extends F{constructor(_t={}){super(_t),(0,d.A)(this,"type",k.ResponseHeader)}clone(_t={}){return new Y({headers:_t.headers||this.headers,status:void 0!==_t.status?_t.status:this.status,statusText:_t.statusText||this.statusText,url:_t.url||this.url||void 0})}}class P extends F{constructor(_t={}){super(_t),(0,d.A)(this,"body",void 0),(0,d.A)(this,"type",k.Response),this.body=void 0!==_t.body?_t.body:null}clone(_t={}){return new P({body:void 0!==_t.body?_t.body:this.body,headers:_t.headers||this.headers,status:void 0!==_t.status?_t.status:this.status,statusText:_t.statusText||this.statusText,url:_t.url||this.url||void 0})}}class ce extends F{constructor(_t){super(_t,0,"Unknown Error"),(0,d.A)(this,"name","HttpErrorResponse"),(0,d.A)(this,"message",void 0),(0,d.A)(this,"error",void 0),(0,d.A)(this,"ok",!1),this.message=this.status>=200&&this.status<300?"Http failure during parsing for ".concat(_t.url||"(unknown url)"):"Http failure response for ".concat(_t.url||"(unknown url)",": ").concat(_t.status," ").concat(_t.statusText),this.error=_t.error||null}}function zt(Xe,_t){return{body:_t,headers:Xe.headers,context:Xe.context,observe:Xe.observe,params:Xe.params,reportProgress:Xe.reportProgress,responseType:Xe.responseType,withCredentials:Xe.withCredentials,transferCache:Xe.transferCache}}let Mt=(()=>{var Xe;class _t{constructor(Ut){(0,d.A)(this,"handler",void 0),this.handler=Ut}request(Ut,bn,Rn={}){let $n;if(Ut instanceof Ze)$n=Ut;else{let zn,Dn;zn=Rn.headers instanceof ue?Rn.headers:new ue(Rn.headers),Rn.params&&(Dn=Rn.params instanceof le?Rn.params:new le({fromObject:Rn.params})),$n=new Ze(Ut,bn,void 0!==Rn.body?Rn.body:null,{headers:zn,context:Rn.context,params:Dn,reportProgress:Rn.reportProgress,responseType:Rn.responseType||"json",withCredentials:Rn.withCredentials,transferCache:Rn.transferCache})}const Bn=(0,R.of)($n).pipe((0,z.H)(zn=>this.handler.handle(zn)));if(Ut instanceof Ze||"events"===Rn.observe)return Bn;const Sn=Bn.pipe((0,ve.p)(zn=>zn instanceof P));switch(Rn.observe||"body"){case"body":switch($n.responseType){case"arraybuffer":return Sn.pipe((0,de.T)(zn=>{if(null!==zn.body&&!(zn.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return zn.body}));case"blob":return Sn.pipe((0,de.T)(zn=>{if(null!==zn.body&&!(zn.body instanceof Blob))throw new Error("Response is not a Blob.");return zn.body}));case"text":return Sn.pipe((0,de.T)(zn=>{if(null!==zn.body&&"string"!=typeof zn.body)throw new Error("Response is not a string.");return zn.body}));default:return Sn.pipe((0,de.T)(zn=>zn.body))}case"response":return Sn;default:throw new Error("Unreachable: unhandled observe type ".concat(Rn.observe,"}"))}}delete(Ut,bn={}){return this.request("DELETE",Ut,bn)}get(Ut,bn={}){return this.request("GET",Ut,bn)}head(Ut,bn={}){return this.request("HEAD",Ut,bn)}jsonp(Ut,bn){return this.request("JSONP",Ut,{params:(new le).append(bn,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Ut,bn={}){return this.request("OPTIONS",Ut,bn)}patch(Ut,bn,Rn={}){return this.request("PATCH",Ut,zt(Rn,bn))}post(Ut,bn,Rn={}){return this.request("POST",Ut,zt(Rn,bn))}put(Ut,bn,Rn={}){return this.request("PUT",Ut,zt(Rn,bn))}}return Xe=_t,(0,d.A)(_t,"\u0275fac",function(Ut){return new(Ut||Xe)(S.KVO(he))}),(0,d.A)(_t,"\u0275prov",S.jDH({token:Xe,factory:Xe.\u0275fac})),_t})();const Et=new S.nKC("");function Ge(Xe,_t){return _t(Xe)}const rt=new S.nKC(""),at=new S.nKC(""),ct=new S.nKC("",{providedIn:"root",factory:()=>!0});let kn=(()=>{var Xe;class _t extends he{constructor(Ut,bn){super(),(0,d.A)(this,"backend",void 0),(0,d.A)(this,"injector",void 0),(0,d.A)(this,"chain",null),(0,d.A)(this,"pendingTasks",(0,S.WQX)(S.Ua0)),(0,d.A)(this,"contributeToStability",(0,S.WQX)(ct)),this.backend=Ut,this.injector=bn}handle(Ut){if(null===this.chain){const bn=Array.from(new Set([...this.injector.get(rt),...this.injector.get(at,[])]));this.chain=bn.reduceRight((Rn,$n)=>function Me(Xe,_t,Zt){return(Ut,bn)=>(0,S.N4e)(Zt,()=>_t(Ut,Rn=>Xe(Rn,bn)))}(Rn,$n,this.injector),Ge)}if(this.contributeToStability){const bn=this.pendingTasks.add();return this.chain(Ut,Rn=>this.backend.handle(Rn)).pipe((0,V.j)(()=>this.pendingTasks.remove(bn)))}return this.chain(Ut,bn=>this.backend.handle(bn))}}return Xe=_t,(0,d.A)(_t,"\u0275fac",function(Ut){return new(Ut||Xe)(S.KVO(Ae),S.KVO(S.uvJ))}),(0,d.A)(_t,"\u0275prov",S.jDH({token:Xe,factory:Xe.\u0275fac})),_t})();const It=/^\)\]\}',?\n/,Dt=RegExp("^".concat(we,":"),"m");let sn=(()=>{var Xe;class _t{constructor(Ut){(0,d.A)(this,"xhrFactory",void 0),this.xhrFactory=Ut}handle(Ut){if("JSONP"===Ut.method)throw new S.wOt(-2800,!1);const bn=this.xhrFactory;return(bn.\u0275loadImpl?(0,q.H)(bn.\u0275loadImpl()):(0,R.of)(null)).pipe((0,Q.n)(()=>new U.c($n=>{const Bn=bn.build();if(Bn.open(Ut.method,Ut.urlWithParams),Ut.withCredentials&&(Bn.withCredentials=!0),Ut.headers.forEach((Bt,Lt)=>Bn.setRequestHeader(Bt,Lt.join(","))),Ut.headers.has("Accept")||Bn.setRequestHeader("Accept",je),!Ut.headers.has(Ye)){const Bt=Ut.detectContentTypeHeader();null!==Bt&&Bn.setRequestHeader(Ye,Bt)}if(Ut.responseType){const Bt=Ut.responseType.toLowerCase();Bn.responseType="json"!==Bt?Bt:"text"}const Sn=Ut.serializeBody();let zn=null;const Dn=()=>{if(null!==zn)return zn;const Bt=Bn.statusText||"OK",Lt=new ue(Bn.getAllResponseHeaders()),Nt=function Ct(Xe){return"responseURL"in Xe&&Xe.responseURL?Xe.responseURL:Dt.test(Xe.getAllResponseHeaders())?Xe.getResponseHeader(we):null}(Bn)||Ut.url;return zn=new Y({headers:Lt,status:Bn.status,statusText:Bt,url:Nt}),zn},ii=()=>{let{headers:Bt,status:Lt,statusText:Nt,url:yn}=Dn(),Tn=null;204!==Lt&&(Tn=typeof Bn.response>"u"?Bn.responseText:Bn.response),0===Lt&&(Lt=Tn?200:0);let nr=Lt>=200&&Lt<300;if("json"===Ut.responseType&&"string"==typeof Tn){const Xr=Tn;Tn=Tn.replace(It,"");try{Tn=""!==Tn?JSON.parse(Tn):null}catch(Dr){Tn=Xr,nr&&(nr=!1,Tn={error:Dr,text:Tn})}}nr?($n.next(new P({body:Tn,headers:Bt,status:Lt,statusText:Nt,url:yn||void 0})),$n.complete()):$n.error(new ce({error:Tn,headers:Bt,status:Lt,statusText:Nt,url:yn||void 0}))},Jr=Bt=>{const{url:Lt}=Dn(),Nt=new ce({error:Bt,status:Bn.status||0,statusText:Bn.statusText||"Unknown Error",url:Lt||void 0});$n.error(Nt)};let qr=!1;const Ir=Bt=>{qr||($n.next(Dn()),qr=!0);let Lt={type:k.DownloadProgress,loaded:Bt.loaded};Bt.lengthComputable&&(Lt.total=Bt.total),"text"===Ut.responseType&&Bn.responseText&&(Lt.partialText=Bn.responseText),$n.next(Lt)},it=Bt=>{let Lt={type:k.UploadProgress,loaded:Bt.loaded};Bt.lengthComputable&&(Lt.total=Bt.total),$n.next(Lt)};return Bn.addEventListener("load",ii),Bn.addEventListener("error",Jr),Bn.addEventListener("timeout",Jr),Bn.addEventListener("abort",Jr),Ut.reportProgress&&(Bn.addEventListener("progress",Ir),null!==Sn&&Bn.upload&&Bn.upload.addEventListener("progress",it)),Bn.send(Sn),$n.next({type:k.Sent}),()=>{Bn.removeEventListener("error",Jr),Bn.removeEventListener("abort",Jr),Bn.removeEventListener("load",ii),Bn.removeEventListener("timeout",Jr),Ut.reportProgress&&(Bn.removeEventListener("progress",Ir),null!==Sn&&Bn.upload&&Bn.upload.removeEventListener("progress",it)),Bn.readyState!==Bn.DONE&&Bn.abort()}})))}}return Xe=_t,(0,d.A)(_t,"\u0275fac",function(Ut){return new(Ut||Xe)(S.KVO(K.N0))}),(0,d.A)(_t,"\u0275prov",S.jDH({token:Xe,factory:Xe.\u0275fac})),_t})();const An=new S.nKC(""),Fr=new S.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),vt=new S.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class bt{}let ht=(()=>{var Xe;class _t{constructor(Ut,bn,Rn){(0,d.A)(this,"doc",void 0),(0,d.A)(this,"platform",void 0),(0,d.A)(this,"cookieName",void 0),(0,d.A)(this,"lastCookieString",""),(0,d.A)(this,"lastToken",null),(0,d.A)(this,"parseCount",0),this.doc=Ut,this.platform=bn,this.cookieName=Rn}getToken(){if("server"===this.platform)return null;const Ut=this.doc.cookie||"";return Ut!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,K._b)(Ut,this.cookieName),this.lastCookieString=Ut),this.lastToken}}return Xe=_t,(0,d.A)(_t,"\u0275fac",function(Ut){return new(Ut||Xe)(S.KVO(K.qQ),S.KVO(S.Agw),S.KVO(Fr))}),(0,d.A)(_t,"\u0275prov",S.jDH({token:Xe,factory:Xe.\u0275fac})),_t})();function wt(Xe,_t){const Zt=Xe.url.toLowerCase();if(!(0,S.WQX)(An)||"GET"===Xe.method||"HEAD"===Xe.method||Zt.startsWith("http://")||Zt.startsWith("https://"))return _t(Xe);const Ut=(0,S.WQX)(bt).getToken(),bn=(0,S.WQX)(vt);return null!=Ut&&!Xe.headers.has(bn)&&(Xe=Xe.clone({headers:Xe.headers.set(bn,Ut)})),_t(Xe)}function Fn(...Xe){const _t=[Mt,sn,kn,{provide:he,useExisting:kn},{provide:Ae,useFactory:()=>{var Zt;return null!==(Zt=(0,S.WQX)(Et,{optional:!0}))&&void 0!==Zt?Zt:(0,S.WQX)(sn)}},{provide:rt,useValue:wt,multi:!0},{provide:An,useValue:!0},{provide:bt,useClass:ht}];for(const Zt of Xe)_t.push(...Zt.\u0275providers);return(0,S.EmA)(_t)}const et=new S.nKC(""),xt="b",yt="h",Xt="s",nn="st",un="u",qn="rt",sr=new S.nKC(""),Oi=["GET","HEAD"];function no(Xe,_t){var Zt;const Ut=(0,S.WQX)(sr),{isCacheActive:bn}=Ut,Rn=(0,g.A)(Ut,ee),{transferCache:$n,method:Bn}=Xe;if(!bn||!1===$n||"POST"===Bn&&!Rn.includePostRequests&&!$n||"POST"!==Bn&&!Oi.includes(Bn)||!Rn.includeRequestsWithAuthHeaders&&function Vi(Xe){return Xe.headers.has("authorization")||Xe.headers.has("proxy-authorization")}(Xe)||!1===(null===(Zt=Rn.filter)||void 0===Zt?void 0:Zt.call(Rn,Xe)))return _t(Xe);const Sn=(0,S.WQX)(S.pJN);if((0,S.WQX)(et,{optional:!0}))throw new S.wOt(2803,!1);const ii=function ki(Xe,_t){const{params:Zt,method:Ut,responseType:bn}=Xe,Rn=Ai(Zt);let $n=Xe.serializeBody();$n instanceof URLSearchParams?$n=Ai($n):"string"!=typeof $n&&($n="");const Sn=function hi(Xe){let _t=0;for(const Zt of Xe)_t=Math.imul(31,_t)+Zt.charCodeAt(0)|0;return _t+=2147483648,_t.toString()}([Ut,bn,_t,$n,Rn].join("|"));return(0,S.zw6)(Sn)}(Xe,Xe.url),Jr=Sn.get(ii,null);let qr=Rn.includeHeaders;if("object"==typeof $n&&$n.includeHeaders&&(qr=$n.includeHeaders),Jr){const{[xt]:Ir,[qn]:it,[yt]:Bt,[Xt]:Lt,[nn]:Nt,[un]:yn}=Jr;let Tn=Ir;switch(it){case"arraybuffer":Tn=(new TextEncoder).encode(Ir).buffer;break;case"blob":Tn=new Blob([Ir])}let nr=new ue(Bt);return(0,R.of)(new P({body:Tn,headers:nr,status:Lt,statusText:Nt,url:yn}))}return _t(Xe).pipe((0,ie.M)(Ir=>{}))}function Ai(Xe){return[...Xe.keys()].sort().map(_t=>"".concat(_t,"=").concat(Xe.getAll(_t))).join("&")}function Nr(Xe){return[{provide:sr,useFactory:()=>((0,S.ngT)("NgHttpTransferCache"),(0,s.A)({isCacheActive:!0},Xe))},{provide:at,useValue:no,multi:!0,deps:[S.pJN,sr]},{provide:S.iLQ,multi:!0,useFactory:()=>{const _t=(0,S.WQX)(S.o8S),Zt=(0,S.WQX)(sr);return()=>{_t.whenStable().then(()=>{Zt.isCacheActive=!1})}}}]}},4438:(se,E,c)=>{"use strict";c.d(E,{bc$:()=>fg,iLQ:()=>Mh,sZ2:()=>il,hnV:()=>B_,Hbi:()=>N1,o8S:()=>Qs,BIS:()=>hg,gRc:()=>yS,Ql9:()=>e1,OM3:()=>ud,Ocv:()=>a1,abz:()=>hs,Z63:()=>yo,aKT:()=>Ol,uvJ:()=>Zr,zcH:()=>ta,bkB:()=>ea,y_5:()=>Fo,$GK:()=>Un,nKC:()=>Gn,zZn:()=>Ji,_q3:()=>R0,MKu:()=>N0,xe9:()=>T0,Co$:()=>zE,Vns:()=>Zu,SKi:()=>Bi,Xx1:()=>Io,Agw:()=>Fc,PLl:()=>kc,rOR:()=>bf,sFG:()=>OO,_9s:()=>c_,czy:()=>Hg,WPN:()=>Wu,kdw:()=>Qo,C4Q:()=>gh,NYb:()=>OM,giA:()=>bA,pJN:()=>va,RxE:()=>aS,c1b:()=>nm,gXe:()=>to,mal:()=>xu,Tzd:()=>yg,Af3:()=>fr,tdH:()=>Ko,L39:()=>px,EWP:()=>Od,a0P:()=>jx,Ol2:()=>I_,w6W:()=>aP,oH4:()=>gS,QZP:()=>U0,SmG:()=>_1,Rfq:()=>vt,WQX:()=>Kn,hFB:()=>Hp,naY:()=>v1,Hps:()=>Dc,QuC:()=>j,EmA:()=>C,zw6:()=>pg,Udg:()=>gx,CGW:()=>$p,fpN:()=>R1,phd:()=>MM,HJs:()=>Vx,N4e:()=>ir,vPA:()=>Oc,O8t:()=>ql,H3F:()=>gA,GGh:()=>jf,PUk:()=>Bf,H8p:()=>rr,KH2:()=>Id,Ua0:()=>qs,wOt:()=>ct,WHO:()=>AA,e01:()=>CA,Lf2:()=>Lr,lNU:()=>at,PpM:()=>tl,h9k:()=>ny,$MX:()=>kg,ZF7:()=>ed,Kcf:()=>KI,e5t:()=>zI,UyX:()=>WI,cWb:()=>HI,osQ:()=>GI,H5H:()=>o0,Zy3:()=>Yt,mq5:()=>yC,JZv:()=>Pt,LfX:()=>Oi,plB:()=>Gl,jNT:()=>U_,zjR:()=>SA,ngT:()=>ao,hVU:()=>DM,TL$:()=>Rl,Tbb:()=>An,zUL:()=>Fr,rcV:()=>cl,M8M:()=>fx,Vt3:()=>D_,GFd:()=>sA,OA$:()=>gl,Jv_:()=>Mb,R7$:()=>my,BMQ:()=>H_,HbH:()=>XA,ZvI:()=>rC,ZWY:()=>iC,ee0:()=>oC,AVh:()=>Z_,vxM:()=>uC,wni:()=>nb,VBU:()=>YE,FsC:()=>ZE,jDH:()=>nn,G2t:()=>qn,$C:()=>T_,EJ8:()=>JE,rXU:()=>nd,nrm:()=>n0,eu8:()=>r0,bVm:()=>_m,qex:()=>vm,k0s:()=>mm,j41:()=>gm,RV6:()=>mC,xGo:()=>sf,KVO:()=>ci,kS0:()=>gu,QTQ:()=>_y,bIt:()=>l0,lsd:()=>ob,qSk:()=>dp,XpG:()=>HC,nI1:()=>$b,bMT:()=>Kb,i5U:()=>Hb,SdG:()=>GC,NAR:()=>WC,Y8G:()=>Q_,lJ4:()=>Nb,eq3:()=>xb,l_i:()=>Lb,sMw:()=>kb,mGM:()=>ib,sdS:()=>sb,Dyx:()=>hC,Z7z:()=>fC,fX1:()=>dC,Vm6:()=>cC,Njj:()=>jd,eBV:()=>yl,npT:()=>ry,f$h:()=>Tv,B4B:()=>Iv,n$t:()=>iy,wjB:()=>wb,Aen:()=>Ca,xc7:()=>X_,DNE:()=>M_,C5r:()=>Wb,EFF:()=>mb,JRh:()=>f0,SpI:()=>bm,DH7:()=>Tb,mxI:()=>p0,R50:()=>h0,GBs:()=>rb}),c(467);var s=c(9379),f=c(1660);function d(e,t){return Object.is(e,t)}let S=null,R=!1,U=1;const q=Symbol("SIGNAL");function z(e){const t=S;return S=e,t}function ve(){return S}const Q={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function ie(e){if(R)throw new Error("");if(null===S)return;S.consumerOnSignalRead(e);const t=S.nextProducerIndex++;W(S),t<S.producerNode.length&&S.producerNode[t]!==e&&le(S)&&pe(S.producerNode[t],S.producerIndexOfThis[t]),S.producerNode[t]!==e&&(S.producerNode[t]=e,S.producerIndexOfThis[t]=le(S)?G(e,S,t):0),S.producerLastReadVersion[t]=e.version}function ee(e){if((!le(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==U)){if(!e.producerMustRecompute(e)&&!x(e))return void oe(e);e.producerRecomputeValue(e),oe(e)}}function he(e){if(void 0===e.liveConsumerNode)return;const t=R;R=!0;try{for(const n of e.liveConsumerNode)n.dirty||ue(n)}finally{R=t}}function Ae(){var e;return!1!==(null===(e=S)||void 0===e?void 0:e.consumerAllowSignalWrites)}function ue(e){var t;e.dirty=!0,he(e),null===(t=e.consumerMarkedDirty)||void 0===t||t.call(e,e)}function oe(e){e.dirty=!1,e.lastCleanEpoch=U}function _(e){return e&&(e.nextProducerIndex=0),z(e)}function O(e,t){if(z(t),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(le(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)pe(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function x(e){W(e);for(let t=0;t<e.producerNode.length;t++){const n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(ee(n),r!==n.version))return!0}return!1}function B(e){if(W(e),le(e))for(let t=0;t<e.producerNode.length;t++)pe(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function G(e,t,n){if(te(e),0===e.liveConsumerNode.length&&ae(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=G(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function pe(e,t){if(te(e),1===e.liveConsumerNode.length&&ae(e))for(let r=0;r<e.producerNode.length;r++)pe(e.producerNode[r],e.producerIndexOfThis[r]);const n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){const r=e.liveConsumerIndexOfThis[t],o=e.liveConsumerNode[t];W(o),o.producerIndexOfThis[r]=t}}function le(e){var t,n;return e.consumerIsAlwaysLive||(null!==(t=null==e||null===(n=e.liveConsumerNode)||void 0===n?void 0:n.length)&&void 0!==t?t:0)>0}function W(e){var t,n,r;null!==(t=e.producerNode)&&void 0!==t||(e.producerNode=[]),null!==(n=e.producerIndexOfThis)&&void 0!==n||(e.producerIndexOfThis=[]),null!==(r=e.producerLastReadVersion)&&void 0!==r||(e.producerLastReadVersion=[])}function te(e){var t,n;null!==(t=e.liveConsumerNode)&&void 0!==t||(e.liveConsumerNode=[]),null!==(n=e.liveConsumerIndexOfThis)&&void 0!==n||(e.liveConsumerIndexOfThis=[])}function ae(e){return void 0!==e.producerNode}const Le=Symbol("UNSET"),We=Symbol("COMPUTING"),dt=Symbol("ERRORED"),Ye=(0,s.A)((0,s.A)({},Q),{},{value:Le,dirty:!0,error:null,equal:d,kind:"computed",producerMustRecompute:e=>e.value===Le||e.value===We,producerRecomputeValue(e){if(e.value===We)throw new Error("Detected cycle in computations.");const t=e.value;e.value=We;const n=_(e);let r,o=!1;try{r=e.computation(),z(null),o=t!==Le&&t!==dt&&r!==dt&&e.equal(t,r)}catch(h){r=dt,e.error=h}finally{O(e,n)}o?e.value=t:(e.value=r,e.version++)}});let ze=function we(){throw new Error};function Ke(){ze()}let Ze=null;function P(e,t){Ae()||Ke(),e.equal(e.value,t)||(e.value=t,function Tt(e){var t;e.version++,function K(){U++}(),he(e),null===(t=Ze)||void 0===t||t()}(e))}const Be=(0,s.A)((0,s.A)({},Q),{},{equal:d,value:void 0,kind:"signal"});const Ce=()=>{},ye=(0,s.A)((0,s.A)({},Q),{},{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{null!==e.schedule&&e.schedule(e.ref)},hasRun:!1,cleanupFn:Ce});var Ve,De=c(4412),Ge=c(1413),ge=c(8359),Me=c(6354);const at="https://g.co/ng/security#xss";class ct extends Error{constructor(t,n){super(Yt(t,n)),(0,f.A)(this,"code",void 0),this.code=t}}function Yt(e,t){const n="NG0".concat(Math.abs(e));return"".concat(n).concat(t?": "+t:"")}const Ft=Symbol("InputSignalNode#UNSET"),dn=(0,s.A)((0,s.A)({},Be),{},{transformFn:void 0,applyValueToInputSignal(e,t){P(e,t)}});function Jt(e,t){const n=Object.create(dn);function r(){if(ie(n),n.value===Ft)throw new ct(-950,!1);return n.value}return n.value=e,n.transformFn=null==t?void 0:t.transform,r[q]=n,r}function At(e){return{toString:e}.toString()}const Yn="__parameters__";function on(e,t,n){return At(()=>{const r=function tn(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}(t);function o(...h){if(this instanceof o)return r.apply(this,h),this;const m=new o(...h);return A.annotation=m,A;function A(D,Z,be){const Ne=D.hasOwnProperty(Yn)?D[Yn]:Object.defineProperty(D,Yn,{value:[]})[Yn];for(;Ne.length<=be;)Ne.push(null);return(Ne[be]=Ne[be]||[]).push(m),D}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}const Pt=globalThis;function Ct(e){for(let t in e)if(e[t]===Ct)return t;throw Error("Could not find renamed property on target object.")}function sn(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function An(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(An).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Qn(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}function Fr(e,t=100){if(!e||t<1||e.length<=t)return e;if(1==t)return e.substring(0,1)+"...";const n=Math.round(t/2);return e.substring(0,n)+"..."+e.substring(e.length-n)}const st=Ct({__forward_ref__:Ct});function vt(e){return e.__forward_ref__=vt,e.toString=function(){return An(this())},e}function bt(e){return ht(e)?e():e}function ht(e){return"function"==typeof e&&e.hasOwnProperty(st)&&e.__forward_ref__===vt}function nn(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function qn(e){return{providers:e.providers||[],imports:e.imports||[]}}function sr(e){return no(e,Ai)||no(e,hi)}function Oi(e){return null!==sr(e)}function no(e,t){return e.hasOwnProperty(t)?e[t]:null}function vr(e){return e&&(e.hasOwnProperty(ki)||e.hasOwnProperty(Nr))?e[ki]:null}const Ai=Ct({\u0275prov:Ct}),ki=Ct({\u0275inj:Ct}),hi=Ct({ngInjectableDef:Ct}),Nr=Ct({ngInjectorDef:Ct});class Gn{constructor(t,n){(0,f.A)(this,"_desc",void 0),(0,f.A)(this,"ngMetadataName","InjectionToken"),(0,f.A)(this,"\u0275prov",void 0),this._desc=t,this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=nn({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return"InjectionToken ".concat(this._desc)}}function zn(e){return e&&!!e.\u0275providers}const Dn=Ct({\u0275cmp:Ct}),ii=Ct({\u0275dir:Ct}),Jr=Ct({\u0275pipe:Ct}),qr=Ct({\u0275mod:Ct}),Ir=Ct({\u0275fac:Ct}),it=Ct({__NG_ELEMENT_ID__:Ct}),Bt=Ct({__NG_ENV_ID__:Ct});function Lt(e){return"string"==typeof e?e:null==e?"":String(e)}function ei(e,t){throw new ct(-201,!1)}var Un=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(Un||{});let _i;function p(){return _i}function T(e){const t=_i;return _i=e,t}function me(e,t,n){const r=sr(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&Un.Optional?null:void 0!==t?t:void ei()}const Vt={},$t="__NG_DI_FLAG__",vn="ngTempTokenPath",gr=/\n/gm,wr="__source";let zr;function $i(e){const t=zr;return zr=e,t}function zo(e,t=Un.Default){if(void 0===zr)throw new ct(-203,!1);return null===zr?me(e,void 0,t):zr.get(e,t&Un.Optional?null:void 0,t)}function ci(e,t=Un.Default){return(p()||zo)(bt(e),t)}function Kn(e,t=Un.Default){return ci(e,ss(t))}function ss(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function ns(e){const t=[];for(let n=0;n<e.length;n++){const r=bt(e[n]);if(Array.isArray(r)){if(0===r.length)throw new ct(900,!1);let o,h=Un.Default;for(let m=0;m<r.length;m++){const A=r[m],D=Ci(A);"number"==typeof D?-1===D?o=A.token:h|=D:o=A}t.push(ci(o,h))}else t.push(ci(r))}return t}function Ki(e,t){return e[$t]=t,e.prototype[$t]=t,e}function Ci(e){return e[$t]}const Fo=Ki(on("Inject",e=>({token:e})),-1),Io=Ki(on("Optional"),8),Qo=Ki(on("SkipSelf"),4);function _o(e,t){return e.hasOwnProperty(Ir)?e[Ir]:null}function gs(e,t){e.forEach(n=>Array.isArray(n)?gs(n,t):t(n))}function Cs(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Yo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Gr(e,t,n){let r=uo(e,t);return r>=0?e[1|r]=n:(r=~r,function Do(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function Fi(e,t){const n=uo(e,t);if(n>=0)return e[1|n]}function uo(e,t){return function Ss(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const h=r+(o-r>>1),m=e[h<<n];if(t===m)return h<<n;m>t?o=h:r=h+1}return~(o<<n)}(e,t,1)}const ro={},Vr=[],yo=new Gn(""),Is=new Gn("",-1),vs=new Gn("");class _s{get(t,n=Vt){if(n===Vt){const r=new Error("NullInjectorError: No provider for ".concat(An(t),"!"));throw r.name="NullInjectorError",r}return n}}function Ue(e,t){const n=e[qr]||null;if(!n&&!0===t)throw new Error("Type ".concat(An(e)," does not have '\u0275mod' property."));return n}function Ot(e){return e[Dn]||null}function ut(e){return e[ii]||null}function Pe(e){return e[Jr]||null}function j(e){const t=Ot(e)||ut(e)||Pe(e);return null!==t&&t.standalone}function C(e){return{\u0275providers:e}}function ne(...e){return{\u0275providers:Oe(0,e),\u0275fromNgModule:!0}}function Oe(e,...t){const n=[],r=new Set;let o;const h=m=>{n.push(m)};return gs(t,m=>{const A=m;pt(A,h,[],r)&&(o||(o=[]),o.push(A))}),void 0!==o&&Fe(o,h),n}function Fe(e,t){for(let n=0;n<e.length;n++){const{ngModule:r,providers:o}=e[n];Ht(o,h=>{t(h,r)})}}function pt(e,t,n,r){if(!(e=bt(e)))return!1;let o=null,h=vr(e);const m=!h&&Ot(e);if(h||m){if(m&&!m.standalone)return!1;o=e}else{const D=e.ngModule;if(h=vr(D),!h)return!1;o=D}const A=r.has(o);if(m){if(A)return!1;if(r.add(o),m.dependencies){const D="function"==typeof m.dependencies?m.dependencies():m.dependencies;for(const Z of D)pt(Z,t,n,r)}}else{if(!h)return!1;{if(null!=h.imports&&!A){let Z;r.add(o);try{gs(h.imports,be=>{pt(be,t,n,r)&&(Z||(Z=[]),Z.push(be))})}finally{}void 0!==Z&&Fe(Z,t)}if(!A){const Z=_o(o)||(()=>new o);t({provide:o,useFactory:Z,deps:Vr},o),t({provide:vs,useValue:o,multi:!0},o),t({provide:yo,useValue:()=>ci(o),multi:!0},o)}const D=h.providers;if(null!=D&&!A){const Z=e;Ht(D,be=>{t(be,Z)})}}}return o!==e&&void 0!==e.providers}function Ht(e,t){for(let n of e)zn(n)&&(n=n.\u0275providers),Array.isArray(n)?Ht(n,t):t(n)}const cn=Ct({provide:String,useValue:Ct});function Ln(e){return null!==e&&"object"==typeof e&&cn in e}function lr(e){return"function"==typeof e}const rr=new Gn(""),oi={},Ni={};let Mi;function Hi(){return void 0===Mi&&(Mi=new _s),Mi}class Zr{}class co extends Zr{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),(0,f.A)(this,"parent",void 0),(0,f.A)(this,"source",void 0),(0,f.A)(this,"scopes",void 0),(0,f.A)(this,"records",new Map),(0,f.A)(this,"_ngOnDestroyHooks",new Set),(0,f.A)(this,"_onDestroyHooks",[]),(0,f.A)(this,"_destroyed",!1),(0,f.A)(this,"injectorDefTypes",void 0),this.parent=n,this.source=r,this.scopes=o,Ts(t,m=>this.processProvider(m)),this.records.set(Is,rs(void 0,this)),o.has("environment")&&this.records.set(Zr,rs(void 0,this));const h=this.records.get(rr);null!=h&&"string"==typeof h.value&&this.scopes.add(h.value),this.injectorDefTypes=new Set(this.get(vs,Vr,Un.Self))}destroy(){Zi(this),this._destroyed=!0;const t=z(null);try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),z(t)}}onDestroy(t){return Zi(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Zi(this);const n=$i(this),r=T(void 0);try{return t()}finally{$i(n),T(r)}}get(t,n=Vt,r=Un.Default){if(Zi(this),t.hasOwnProperty(Bt))return t[Bt](this);r=ss(r);const h=$i(this),m=T(void 0);try{if(!(r&Un.SkipSelf)){let D=this.records.get(t);if(void 0===D){const Z=function Ia(e){return"function"==typeof e||"object"==typeof e&&e instanceof Gn}(t)&&sr(t);D=Z&&this.injectableDefInScope(Z)?rs(Xo(t),oi):null,this.records.set(t,D)}if(null!=D)return this.hydrate(t,D)}return(r&Un.Self?Hi():this.parent).get(t,n=r&Un.Optional&&n===Vt?null:n)}catch(A){if("NullInjectorError"===A.name){if((A[vn]=A[vn]||[]).unshift(An(t)),h)throw A;return function wo(e,t,n,r){const o=e[vn];throw t[wr]&&o.unshift(t[wr]),e.message=function as(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=An(t);if(Array.isArray(t))o=t.map(An).join(" -> ");else if("object"==typeof t){let h=[];for(let m in t)if(t.hasOwnProperty(m)){let A=t[m];h.push(m+":"+("string"==typeof A?JSON.stringify(A):An(A)))}o="{".concat(h.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(o,"]: ").concat(e.replace(gr,"\n "))}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[vn]=null,e}(A,t,"R3InjectorError",this.source)}throw A}finally{T(m),$i(h)}}resolveInjectorInitializers(){const t=z(null),n=$i(this),r=T(void 0);try{const h=this.get(yo,Vr,Un.Self);for(const m of h)m()}finally{$i(n),T(r),z(t)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(An(r));return"R3Injector[".concat(t.join(", "),"]")}processProvider(t){let n=lr(t=bt(t))?t:bt(t&&t.provide);const r=function Ur(e){return Ln(e)?rs(void 0,e.useValue):rs(Uo(e),oi)}(t);if(!lr(t)&&!0===t.multi){let o=this.records.get(n);o||(o=rs(void 0,oi,!0),o.factory=()=>ns(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){const r=z(null);try{return n.value===oi&&(n.value=Ni,n.value=n.factory()),"object"==typeof n.value&&n.value&&function is(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{z(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;const n=bt(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function Xo(e){const t=sr(e),n=null!==t?t.factory:_o(e);if(null!==n)return n;if(e instanceof Gn)throw new ct(204,!1);if(e instanceof Function)return function io(e){if(e.length>0)throw new ct(204,!1);const n=function Vi(e){return e&&(e[Ai]||e[hi])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new ct(204,!1)}function Uo(e,t,n){let r;if(lr(e)){const o=bt(e);return _o(o)||Xo(o)}if(Ln(e))r=()=>bt(e.useValue);else if(function dr(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...ns(e.deps||[]));else if(function Vn(e){return!(!e||!e.useExisting)}(e))r=()=>ci(bt(e.useExisting));else{const o=bt(e&&(e.useClass||e.provide));if(!function Bo(e){return!!e.deps}(e))return _o(o)||Xo(o);r=()=>new o(...ns(e.deps))}return r}function Zi(e){if(e.destroyed)throw new ct(205,!1)}function rs(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Ts(e,t){for(const n of e)Array.isArray(n)?Ts(n,t):n&&zn(n)?Ts(n.\u0275providers,t):t(n)}function ir(e,t){e instanceof co&&Zi(e);const r=$i(e),o=T(void 0);try{return t()}finally{$i(r),T(o)}}function hr(){return void 0!==p()||null!=function vo(){return zr}()}function fr(e){if(!hr())throw new ct(-203,!1)}const Qr=0,Nn=1,pr=2,pi=3,ho=4,oo=5,Wi=6,cs=7,Br=8,yi=9,jo=10,yr=11,$=12,re=13,qe=14,X=15,xe=16,tt=17,qt=18,En=19,_r=20,Sr=21,Or=22,Pr=23,jr=24,On=25,gi=1,po=6,Gi=7,No=9,di=10;function ai(e){return Array.isArray(e)&&"object"==typeof e[gi]}function Ei(e){return Array.isArray(e)&&!0===e[gi]}function ca(e){return!!(4&e.flags)}function Zo(e){return e.componentOffset>-1}function Va(e){return!(1&~e.flags)}function Os(e){return!!e.template}function Ta(e){return!!(512&e[pr])}function Da(e){return!(256&~e[pr])}class Ld{constructor(t,n,r){(0,f.A)(this,"previousValue",void 0),(0,f.A)(this,"currentValue",void 0),(0,f.A)(this,"firstChange",void 0),this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function ic(e,t,n,r){null!==t?t.applyValueToInputSignal(t,r):e[n]=r}const gl=(()=>{const e=()=>iu;return e.ngInherit=!0,e})();function iu(e){return e.type.prototype.ngOnChanges&&(e.setInput=kd),oc}function oc(){const e=Fd(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===ro)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function kd(e,t,n,r,o){const h=this.declaredInputs[r],m=Fd(e)||function sc(e,t){return e[ml]=t}(e,{previous:ro,current:null}),A=m.current||(m.current={}),D=m.previous,Z=D[h];A[h]=new Ld(Z&&Z.currentValue,n,D===ro),ic(e,t,o,n)}const ml="__ngSimpleChanges__";function Fd(e){return e[ml]||null}const fs=function(e,t,n){},w="svg";function J(e){for(;Array.isArray(e);)e=e[Qr];return e}function fe(e,t){return J(t[e])}function ke(e,t){return J(t[e.index])}function Wt(e,t){return e.data[t]}function gn(e,t){return e[t]}function Qt(e,t){const n=t[e];return ai(n)?n:n[Qr]}function Er(e){return!(128&~e[pr])}function mr(e,t){return null==t?null:e[t]}function Ui(e){e[tt]=0}function Oo(e){1024&e[pr]||(e[pr]|=1024,Er(e)&&Xs(e))}function Bs(e){var t;return!!(9216&e[pr]||null!==(t=e[jr])&&void 0!==t&&t.dirty)}function Jo(e){var t;null===(t=e[jo].changeDetectionScheduler)||void 0===t||t.notify(9),64&e[pr]&&(e[pr]|=1024),Bs(e)&&Xs(e)}function Xs(e){var t;null===(t=e[jo].changeDetectionScheduler)||void 0===t||t.notify(0);let n=js(e);for(;null!==n&&!(8192&n[pr])&&(n[pr]|=8192,Er(n));)n=js(n)}function da(e,t){if(Da(e))throw new ct(911,!1);null===e[Sr]&&(e[Sr]=[]),e[Sr].push(t)}function js(e){const t=e[pi];return Ei(t)?t[pi]:t}function fa(e){var t;return null!==(t=e[cs])&&void 0!==t?t:e[cs]=[]}function ou(e){var t;return null!==(t=e.cleanup)&&void 0!==t?t:e.cleanup=[]}const Rr={lFrame:zd(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let ac=!1;function Ud(){return Rr.bindingsEnabled}function Es(){return null!==Rr.skipHydrationRootTNode}function fn(){return Rr.lFrame.lView}function Mr(){return Rr.lFrame.tView}function yl(e){return Rr.lFrame.contextLView=e,e[Br]}function jd(e){return Rr.lFrame.contextLView=null,e}function Kr(){let e=Vd();for(;null!==e&&64===e.type;)e=e.parent;return e}function Vd(){return Rr.lFrame.currentTNode}function Vs(e,t){const n=Rr.lFrame;n.currentTNode=e,n.isParent=t}function $d(){return Rr.lFrame.isParent}function Wa(){Rr.lFrame.isParent=!1}function cc(){return ac}function su(e){const t=ac;return ac=e,t}function qo(){const e=Rr.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function ha(){return Rr.lFrame.bindingIndex}function $s(){return Rr.lFrame.bindingIndex++}function Ks(e){const t=Rr.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function up(e,t){const n=Rr.lFrame;n.bindingIndex=n.bindingRootIndex=e,Kd(t)}function Kd(e){Rr.lFrame.currentDirectiveIndex=e}function dc(){return Rr.lFrame.currentQueryIndex}function Cl(e){Rr.lFrame.currentQueryIndex=e}function cp(e){const t=e[Nn];return 2===t.type?t.declTNode:1===t.type?e[oo]:null}function Wd(e,t,n){if(n&Un.SkipSelf){let o=t,h=e;for(;!(o=o.parent,null!==o||n&Un.Host||(o=cp(h),null===o||(h=h[qe],10&o.type))););if(null===o)return!1;t=o,e=h}const r=Rr.lFrame=Gd();return r.currentTNode=t,r.lView=e,!0}function au(e){const t=Gd(),n=e[Nn];Rr.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Gd(){const e=Rr.lFrame,t=null===e?null:e.child;return null===t?zd(e):t}function zd(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Ga(){const e=Rr.lFrame;return Rr.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Qd=Ga;function lu(){const e=Ga();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Lo(){return Rr.lFrame.selectedIndex}function Pa(e){Rr.lFrame.selectedIndex=e}function Si(){const e=Rr.lFrame;return Wt(e.tView,e.selectedIndex)}function dp(){Rr.lFrame.currentNamespace=w}function fc(){return Rr.lFrame.currentNamespace}let pp=!0;function bl(){return pp}function Hs(e){pp=e}function za(e,t){for(let Z=t.directiveStart,be=t.directiveEnd;Z<be;Z++){const Je=e.data[Z].type.prototype,{ngAfterContentInit:ft,ngAfterContentChecked:Rt,ngAfterViewInit:Gt,ngAfterViewChecked:_n,ngOnDestroy:wn}=Je;var n,r,o,h,m,A,D;ft&&(null!==(n=e.contentHooks)&&void 0!==n?n:e.contentHooks=[]).push(-Z,ft),Rt&&((null!==(r=e.contentHooks)&&void 0!==r?r:e.contentHooks=[]).push(Z,Rt),(null!==(o=e.contentCheckHooks)&&void 0!==o?o:e.contentCheckHooks=[]).push(Z,Rt)),Gt&&(null!==(h=e.viewHooks)&&void 0!==h?h:e.viewHooks=[]).push(-Z,Gt),_n&&((null!==(m=e.viewHooks)&&void 0!==m?m:e.viewHooks=[]).push(Z,_n),(null!==(A=e.viewCheckHooks)&&void 0!==A?A:e.viewCheckHooks=[]).push(Z,_n)),null!=wn&&(null!==(D=e.destroyHooks)&&void 0!==D?D:e.destroyHooks=[]).push(Z,wn)}}function uu(e,t,n){Ii(e,t,3,n)}function cu(e,t,n,r){(3&e[pr])===n&&Ii(e,t,n,r)}function gp(e,t){let n=e[pr];(3&n)===t&&(n&=16383,n+=1,e[pr]=n)}function Ii(e,t,n,r){const h=null!=r?r:-1,m=t.length-1;let A=0;for(let D=void 0!==r?65535&e[tt]:0;D<m;D++)if("number"==typeof t[D+1]){if(A=t[D],null!=r&&A>=r)break}else t[D]<0&&(e[tt]+=65536),(A<h||-1==h)&&(Qm(e,n,t,D),e[tt]=(4294901760&e[tt])+D+2),D++}function Sl(e,t){fs(4,e,t);const n=z(null);try{t.call(e)}finally{z(n),fs(5,e,t)}}function Qm(e,t,n,r){const o=n[r]<0,h=n[r+1],A=e[o?-n[r]:n[r]];o?e[pr]>>14<e[tt]>>16&&(3&e[pr])===t&&(e[pr]+=16384,Sl(A,h)):Sl(A,h)}const pa=-1;class Il{constructor(t,n,r){(0,f.A)(this,"factory",void 0),(0,f.A)(this,"injectImpl",void 0),(0,f.A)(this,"resolving",!1),(0,f.A)(this,"canSeeViewProviders",void 0),(0,f.A)(this,"multi",void 0),(0,f.A)(this,"componentProviders",void 0),(0,f.A)(this,"index",void 0),(0,f.A)(this,"providerFactory",void 0),this.factory=t,this.canSeeViewProviders=n,this.injectImpl=r}}function Qa(e){return 3===e||4===e||6===e}function pc(e){return 64===e.charCodeAt(0)}function Ya(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){const o=t[r];"number"==typeof o?n=o:0===n||gc(e,n,o,null,-1===n||2===n?t[++r]:null)}}return e}function gc(e,t,n,r,o){let h=0,m=e.length;if(-1===t)m=-1;else for(;h<e.length;){const A=e[h++];if("number"==typeof A){if(A===t){m=-1;break}if(A>t){m=h-1;break}}}for(;h<e.length;){const A=e[h];if("number"==typeof A)break;if(A===n){if(null===r)return void(null!==o&&(e[h+1]=o));if(r===e[h+1])return void(e[h+2]=o)}h++,null!==r&&h++,null!==o&&h++}-1!==m&&(e.splice(m,0,t),h=m+1),e.splice(h++,0,n),null!==r&&e.splice(h++,0,r),null!==o&&e.splice(h++,0,o)}const du={};class Xa{constructor(t,n){(0,f.A)(this,"injector",void 0),(0,f.A)(this,"parentInjector",void 0),this.injector=t,this.parentInjector=n}get(t,n,r){r=ss(r);const o=this.injector.get(t,du,r);return o!==du||n===du?o:this.parentInjector.get(t,n,r)}}function Jd(e){return e!==pa}function fu(e){return 32767&e}function Ma(e,t){let n=function Ep(e){return e>>16}(e),r=t;for(;n>0;)r=r[qe],n--;return r}let mc=!0;function Za(e){const t=mc;return mc=e,t}const Ap=255,Cp=5;let Jm=0;const Zs={};function vc(e,t){const n=bp(e,t);if(-1!==n)return n;const r=t[Nn];r.firstCreatePass&&(e.injectorIndex=t.length,ef(r.data,e),ef(t,null),ef(r.blueprint,null));const o=_c(e,t),h=e.injectorIndex;if(Jd(o)){const m=fu(o),A=Ma(o,t),D=A[Nn].data;for(let Z=0;Z<8;Z++)t[h+Z]=A[m+Z]|D[m+Z]}return t[h+8]=o,h}function ef(e,t){e.push(0,0,0,0,0,0,0,0,t)}function bp(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function _c(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){if(r=af(o),null===r)return pa;if(n++,o=o[qe],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return pa}function Ja(e,t,n){!function li(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(it)&&(r=n[it]),null==r&&(r=n[it]=Jm++);const o=r&Ap;t.data[e+(o>>Cp)]|=1<<o}(e,t,n)}function xr(e,t,n){if(n&Un.Optional||void 0!==e)return e;ei()}function tf(e,t,n,r){if(n&Un.Optional&&void 0===r&&(r=null),!(n&(Un.Self|Un.Host))){const o=e[yi],h=T(void 0);try{return o?o.get(t,r,n&Un.Optional):me(t,r,n&Un.Optional)}finally{T(h)}}return xr(r,0,n)}function nf(e,t,n,r=Un.Default,o){if(null!==e){if(2048&t[pr]&&!(r&Un.Self)){const m=function Ec(e,t,n,r,o){let h=e,m=t;for(;null!==h&&null!==m&&2048&m[pr]&&!(512&m[pr]);){const A=hu(h,m,n,r|Un.Self,Zs);if(A!==Zs)return A;let D=h.parent;if(!D){const Z=m[_r];if(Z){const be=Z.get(n,Zs,r);if(be!==Zs)return be}D=af(m),m=m[qe]}h=D}return o}(e,t,n,r,Zs);if(m!==Zs)return m}const h=hu(e,t,n,r,Zs);if(h!==Zs)return h}return tf(t,n,r,o)}function hu(e,t,n,r,o){const h=function Ip(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(it)?e[it]:void 0;return"number"==typeof t?t>=0?t&Ap:Tp:t}(n);if("function"==typeof h){if(!Wd(t,e,r))return r&Un.Host?xr(o,0,r):tf(t,n,r,o);try{let m;if(m=h(r),null!=m||r&Un.Optional)return m;ei()}finally{Qd()}}else if("number"==typeof h){let m=null,A=bp(e,t),D=pa,Z=r&Un.Host?t[X][oo]:null;for((-1===A||r&Un.SkipSelf)&&(D=-1===A?_c(e,t):t[A+8],D!==pa&&qa(r,!1)?(m=t[Nn],A=fu(D),t=Ma(D,t)):A=-1);-1!==A;){const be=t[Nn];if(rf(h,A,be.data)){const Ne=Sp(A,t,n,m,r,Z);if(Ne!==Zs)return Ne}D=t[A+8],D!==pa&&qa(r,t[Nn].data[A+8]===Z)&&rf(h,A,t)?(m=be,A=fu(D),t=Ma(D,t)):A=-1}}return o}function Sp(e,t,n,r,o,h){const m=t[Nn],A=m.data[e+8],be=pu(A,m,n,null==r?Zo(A)&&mc:r!=m&&!!(3&A.type),o&Un.Host&&h===A);return null!==be?Ms(t,m,be,A):Zs}function pu(e,t,n,r,o){const h=e.providerIndexes,m=t.data,A=1048575&h,D=e.directiveStart,be=h>>20,Je=o?A+be:e.directiveEnd;for(let ft=r?A:A+be;ft<Je;ft++){const Rt=m[ft];if(ft<D&&n===Rt||ft>=D&&Rt.type===n)return ft}if(o){const ft=m[D];if(ft&&Os(ft)&&ft.type===n)return D}return null}function Ms(e,t,n,r){let o=e[n];const h=t.data;if(function Ym(e){return e instanceof Il}(o)){const m=o;m.resolving&&function nr(e,t){throw t&&". Dependency path: ".concat(t.join(" > ")," > ").concat(e),new ct(-200,e)}(function Nt(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Lt(e)}(h[n]));const A=Za(m.canSeeViewProviders);m.resolving=!0;const Z=m.injectImpl?T(m.injectImpl):null;Wd(e,r,Un.Default);try{o=e[n]=m.factory(void 0,h,e,r),t.firstCreatePass&&n>=r.directiveStart&&function Xd(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:h}=t.type.prototype;if(r){var m,A;const Ne=iu(t);(null!==(m=n.preOrderHooks)&&void 0!==m?m:n.preOrderHooks=[]).push(e,Ne),(null!==(A=n.preOrderCheckHooks)&&void 0!==A?A:n.preOrderCheckHooks=[]).push(e,Ne)}var D,Z,be;o&&(null!==(D=n.preOrderHooks)&&void 0!==D?D:n.preOrderHooks=[]).push(0-e,o),h&&((null!==(Z=n.preOrderHooks)&&void 0!==Z?Z:n.preOrderHooks=[]).push(e,h),(null!==(be=n.preOrderCheckHooks)&&void 0!==be?be:n.preOrderCheckHooks=[]).push(e,h))}(n,h[n],t)}finally{null!==Z&&T(Z),Za(A),m.resolving=!1,Qd()}}return o}function rf(e,t,n){return!!(n[t+(e>>Cp)]&1<<e)}function qa(e,t){return!(e&Un.Self||e&Un.Host&&t)}class zi{constructor(t,n){(0,f.A)(this,"_tNode",void 0),(0,f.A)(this,"_lView",void 0),this._tNode=t,this._lView=n}get(t,n,r){return nf(this._tNode,this._lView,t,ss(r),n)}}function Tp(){return new zi(Kr(),fn())}function sf(e){return At(()=>{const t=e.prototype.constructor,n=t[Ir]||yc(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const h=o[Ir]||yc(o);if(h&&h!==n)return h;o=Object.getPrototypeOf(o)}return h=>new h})}function yc(e){return ht(e)?()=>{const t=yc(bt(e));return t&&t()}:_o(e)}function af(e){const t=e[Nn],n=t.type;return 2===n?t.declTNode:1===n?e[oo]:null}function gu(e){return function wi(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let o=0;for(;o<r;){const h=n[o];if(Qa(h))break;if(0===h)o+=2;else if("number"==typeof h)for(o++;o<r&&"string"==typeof n[o];)o++;else{if(h===t)return n[o+1];o+=2}}}return null}(Kr(),e)}function _u(e,t=null,n=null,r){const o=cf(e,t,n,r);return o.resolveInjectorInitializers(),o}function cf(e,t=null,n=null,r,o=new Set){const h=[n||Vr,ne(e)];return r=r||("object"==typeof e?void 0:An(e)),new co(h,t||Hi(),r||null,o)}class Ji{static create(t,n){if(Array.isArray(t))return _u({name:""},n,t,"");{var r;const o=null!==(r=t.name)&&void 0!==r?r:"";return _u({name:o},t.parent,t.providers,o)}}}Ve=Ji,(0,f.A)(Ji,"THROW_IF_NOT_FOUND",Vt),(0,f.A)(Ji,"NULL",new _s),(0,f.A)(Ji,"\u0275prov",nn({token:Ve,providedIn:"any",factory:()=>ci(Is)})),(0,f.A)(Ji,"__NG_ELEMENT_ID__",-1),new Gn("").__NG_ELEMENT_ID__=e=>{const t=Kr();if(null===t)throw new ct(204,!1);if(2&t.type)return t.value;if(e&Un.Optional)return null;throw new ct(204,!1)};const df=!1;let hs=(()=>{class e{}return(0,f.A)(e,"__NG_ELEMENT_ID__",Np),(0,f.A)(e,"__NG_ENV_ID__",t=>t),e})();class ff extends hs{constructor(t){super(),(0,f.A)(this,"_lView",void 0),this._lView=t}onDestroy(t){return da(this._lView,t),()=>function Oa(e,t){if(null===e[Sr])return;const n=e[Sr].indexOf(t);-1!==n&&e[Sr].splice(n,1)}(this._lView,t)}}function Np(){return new ff(fn())}class Js{}const tl=new Gn("",{providedIn:"root",factory:()=>!1}),hf=new Gn(""),Ra=new Gn("");let qs=(()=>{var e;class t{constructor(){(0,f.A)(this,"taskId",0),(0,f.A)(this,"pendingTasks",new Set),(0,f.A)(this,"hasPendingTasks",new De.t(!1))}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const r=this.taskId++;return this.pendingTasks.add(r),r}has(r){return this.pendingTasks.has(r)}remove(r){this.pendingTasks.delete(r),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}}return(0,f.A)(t,"\u0275prov",nn({token:e=t,providedIn:"root",factory:()=>new e})),t})();const ea=class bc extends Ge.B{constructor(t=!1){var n,r;super(),(0,f.A)(this,"__isAsync",void 0),(0,f.A)(this,"destroyRef",void 0),(0,f.A)(this,"pendingTasks",void 0),this.__isAsync=t,hr()&&(this.destroyRef=null!==(n=Kn(hs,{optional:!0}))&&void 0!==n?n:void 0,this.pendingTasks=null!==(r=Kn(qs,{optional:!0}))&&void 0!==r?r:void 0)}emit(t){const n=z(null);try{super.next(t)}finally{z(n)}}subscribe(t,n,r){let o=t,h=n||(()=>null),m=r;if(t&&"object"==typeof t){var A,D,Z;const Ne=t;o=null===(A=Ne.next)||void 0===A?void 0:A.bind(Ne),h=null===(D=Ne.error)||void 0===D?void 0:D.bind(Ne),m=null===(Z=Ne.complete)||void 0===Z?void 0:Z.bind(Ne)}this.__isAsync&&(h=this.wrapInTimeout(h),o&&(o=this.wrapInTimeout(o)),m&&(m=this.wrapInTimeout(m)));const be=super.subscribe({next:o,error:h,complete:m});return t instanceof ge.yU&&t.add(be),be}wrapInTimeout(t){return n=>{var r;const o=null===(r=this.pendingTasks)||void 0===r?void 0:r.add();setTimeout(()=>{var h;t(n),void 0!==o&&(null===(h=this.pendingTasks)||void 0===h||h.remove(o))})}}};function Dl(...e){}function pf(e){let t,n;function r(){e=Dl;try{void 0!==n&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(n),void 0!==t&&clearTimeout(t)}catch(o){}}return t=setTimeout(()=>{e(),r()}),"function"==typeof requestAnimationFrame&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function gf(e){return queueMicrotask(()=>e()),()=>{e=Dl}}const ws="isAngularZone",yu=ws+"_ID";let Lp=0;class Bi{constructor(t){(0,f.A)(this,"hasPendingMacrotasks",!1),(0,f.A)(this,"hasPendingMicrotasks",!1),(0,f.A)(this,"isStable",!0),(0,f.A)(this,"onUnstable",new ea(!1)),(0,f.A)(this,"onMicrotaskEmpty",new ea(!1)),(0,f.A)(this,"onStable",new ea(!1)),(0,f.A)(this,"onError",new ea(!1));const{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:h=df}=t;if(typeof Zone>"u")throw new ct(908,!1);Zone.assertZonePatched();const m=this;m._nesting=0,m._outer=m._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(m._inner=m._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(m._inner=m._inner.fork(Zone.longStackTraceZoneSpec)),m.shouldCoalesceEventChangeDetection=!o&&r,m.shouldCoalesceRunChangeDetection=o,m.callbackScheduled=!1,m.scheduleInRootZone=h,function Up(e){const t=()=>{!function Fp(e){function t(){pf(()=>{e.callbackScheduled=!1,Sc(e),e.isCheckStableRunning=!0,Na(e),e.isCheckStableRunning=!1})}e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Sc(e))}(e)},n=Lp++;e._inner=e._inner.fork({name:"angular",properties:{[ws]:!0,[yu]:n,[yu+n]:!0},onInvokeTask:(r,o,h,m,A,D)=>{if(function Tc(e){return _f(e,"__ignore_ng_zone__")}(D))return r.invokeTask(h,m,A,D);try{return mf(e),r.invokeTask(h,m,A,D)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===m.type||e.shouldCoalesceRunChangeDetection)&&t(),vf(e)}},onInvoke:(r,o,h,m,A,D,Z)=>{try{return mf(e),r.invoke(h,m,A,D,Z)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!function Bp(e){return _f(e,"__scheduler_tick__")}(D)&&t(),vf(e)}},onHasTask:(r,o,h,m)=>{r.hasTask(h,m),o===h&&("microTask"==m.change?(e._hasPendingMicrotasks=m.microTask,Sc(e),Na(e)):"macroTask"==m.change&&(e.hasPendingMacrotasks=m.macroTask))},onHandleError:(r,o,h,m)=>(r.handleError(h,m),e.runOutsideAngular(()=>e.onError.emit(m)),!1)})}(m)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get(ws)}static assertInAngularZone(){if(!Bi.isInAngularZone())throw new ct(909,!1)}static assertNotInAngularZone(){if(Bi.isInAngularZone())throw new ct(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const h=this._inner,m=h.scheduleEventTask("NgZoneEvent: "+o,t,kp,Dl,Dl);try{return h.runTask(m,n,r)}finally{h.cancelTask(m)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const kp={};function Na(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Sc(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&!0===e.callbackScheduled)}function mf(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function vf(e){e._nesting--,Na(e)}class Ic{constructor(){(0,f.A)(this,"hasPendingMicrotasks",!1),(0,f.A)(this,"hasPendingMacrotasks",!1),(0,f.A)(this,"isStable",!0),(0,f.A)(this,"onUnstable",new ea),(0,f.A)(this,"onMicrotaskEmpty",new ea),(0,f.A)(this,"onStable",new ea),(0,f.A)(this,"onError",new ea)}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}}function _f(e,t){var n;return!(!Array.isArray(e)||1!==e.length)&&!0===(null===(n=e[0])||void 0===n||null===(n=n.data)||void 0===n?void 0:n[t])}class ta{constructor(){(0,f.A)(this,"_console",console)}handleError(t){this._console.error("ERROR",t)}}const Vp=new Gn("",{providedIn:"root",factory:()=>{const e=Kn(Bi),t=Kn(ta);return n=>e.runOutsideAngular(()=>t.handleError(n))}});class Eu{constructor(){(0,f.A)(this,"destroyed",!1),(0,f.A)(this,"listeners",null),(0,f.A)(this,"errorHandler",Kn(ta,{optional:!0})),(0,f.A)(this,"destroyRef",Kn(hs)),this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(t){var n;if(this.destroyed)throw new ct(953,!1);return(null!==(n=this.listeners)&&void 0!==n?n:this.listeners=[]).push(t),{unsubscribe:()=>{var r;const o=null===(r=this.listeners)||void 0===r?void 0:r.indexOf(t);var h;void 0!==o&&-1!==o&&(null===(h=this.listeners)||void 0===h||h.splice(o,1))}}}emit(t){if(this.destroyed)throw new ct(953,!1);if(null===this.listeners)return;const n=z(null);try{for(const o of this.listeners)try{o(t)}catch(h){var r;null===(r=this.errorHandler)||void 0===r||r.handleError(h)}}finally{z(n)}}}function $p(e){return new Eu}function yf(e,t){return Jt(e,t)}const Hp=(yf.required=function Kp(e){return Jt(Ft,e)},yf);function Wp(){return nl(Kr(),fn())}function nl(e,t){return new Ol(ke(e,t))}let Ol=(()=>{class e{constructor(n){(0,f.A)(this,"nativeElement",void 0),this.nativeElement=n}}return(0,f.A)(e,"__NG_ELEMENT_ID__",Wp),e})();function Ef(e){return e instanceof Ol?e.nativeElement:e}const Af=new Set;function ao(e){var t,n;Af.has(e)||(Af.add(e),null===(t=performance)||void 0===t||null===(n=t.mark)||void 0===n||n.call(t,"mark_feature_usage",{detail:{feature:e}}))}function Dc(e){return"function"==typeof e&&void 0!==e[q]}function Oc(e,t){ao("NgSignals");const n=function k(e){const t=Object.create(Be);t.value=e;const n=()=>(ie(t),t.value);return n[q]=t,n}(e),r=n[q];return null!=t&&t.equal&&(r.equal=t.equal),n.set=o=>P(r,o),n.update=o=>function ce(e,t){Ae()||Ke(),P(e,t(e.value))}(r,o),n.asReadonly=Au.bind(n),n}function Au(){const e=this[q];if(void 0===e.readonlyFn){const t=()=>this();t[q]=e,e.readonlyFn=t}return e.readonlyFn}function Cf(e){return Dc(e)&&"function"==typeof e.set}function Gp(){return this._results[Symbol.iterator]()}class bf{get changes(){var t;return null!==(t=this._changes)&&void 0!==t?t:this._changes=new Ge.B}constructor(t=!1){(0,f.A)(this,"_emitDistinctChangesOnly",void 0),(0,f.A)(this,"dirty",!0),(0,f.A)(this,"_onDirty",void 0),(0,f.A)(this,"_results",[]),(0,f.A)(this,"_changesDetected",!1),(0,f.A)(this,"_changes",void 0),(0,f.A)(this,"length",0),(0,f.A)(this,"first",void 0),(0,f.A)(this,"last",void 0),(0,f.A)(this,Symbol.iterator,Gp),this._emitDistinctChangesOnly=t}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;const r=function Ri(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function ls(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],h=t[r];if(n&&(o=n(o),h=n(h)),h!==o)return!1}return!0}(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){void 0!==this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(t){this._onDirty=t}setDirty(){var t;this.dirty=!0,null===(t=this._onDirty)||void 0===t||t.call(this)}destroy(){void 0!==this._changes&&(this._changes.complete(),this._changes.unsubscribe())}}const Pl="ngSkipHydration",zp="ngskiphydration";function Pc(e){const t=e.mergedAttrs;if(null===t)return!1;for(let n=0;n<t.length;n+=2){const r=t[n];if("number"==typeof r)return!1;if("string"==typeof r&&r.toLowerCase()===zp)return!0}return!1}function Sf(e){return e.hasAttribute(Pl)}function Ml(e){return!(128&~e.flags)}var Cu=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Cu||{});const bu=new Map;let Qp=0;function Mc(e){bu.delete(e[En])}const Su="__ngContext__";function $o(e,t){ai(t)?(e[Su]=t[En],function Xp(e){bu.set(e[En],e)}(t)):e[Su]=t}function Iu(e){return Nf(e[$])}function Rf(e){return Nf(e[ho])}function Nf(e){for(;null!==e&&!Ei(e);)e=e[ho];return e}let Lc;function Rl(e){Lc=e}function Rs(){if(void 0!==Lc)return Lc;if(typeof document<"u")return document;throw new ct(210,!1)}const il=new Gn("",{providedIn:"root",factory:()=>dg}),dg="ng",kc=new Gn(""),Fc=new Gn("",{providedIn:"platform",factory:()=>"unknown"}),fg=new Gn(""),hg=new Gn("",{providedIn:"root",factory:()=>{var e;return(null===(e=Rs().body)||void 0===e||null===(e=e.querySelector("[ngCspNonce]"))||void 0===e?void 0:e.getAttribute("ngCspNonce"))||null}}),Bf={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840],placeholderResolution:30,disableImageSizeWarning:!1,disableImageLazyLoadWarning:!1},jf=new Gn("",{providedIn:"root",factory:()=>Bf});function pg(e){return e}function Uc(){const e=new va;return"browser"===Kn(Fc)&&(e.store=function gg(e,t){const n=e.getElementById(t+"-state");if(null!=n&&n.textContent)try{return JSON.parse(n.textContent)}catch(r){console.warn("Exception while restoring TransferState for app "+t,r)}return{}}(Rs(),Kn(il))),e}let va=(()=>{class t{constructor(){(0,f.A)(this,"store",{}),(0,f.A)(this,"onSerializeCallbacks",{})}get(r,o){return void 0!==this.store[r]?this.store[r]:o}set(r,o){this.store[r]=o}remove(r){delete this.store[r]}hasKey(r){return this.store.hasOwnProperty(r)}get isEmpty(){return 0===Object.keys(this.store).length}onSerialize(r,o){this.onSerializeCallbacks[r]=o}toJson(){for(const r in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(r))try{this.store[r]=this.onSerializeCallbacks[r]()}catch(o){console.warn("Exception in onSerialize callback: ",o)}return JSON.stringify(this.store).replace(/</g,"\\u003C")}}return(0,f.A)(t,"\u0275prov",nn({token:t,providedIn:"root",factory:Uc})),t})();const Bc="h",jc="b",Vc="f",Vf="n",Nl="e",Pu="t",ol="c",xl="x",_a="r",$c="i",Ll="n",sl="d",Kc="di",al=new Gn(""),Kf=new Gn("",{providedIn:"root",factory:()=>!1});var Gc=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(Gc||{});const Lr=new Gn("");function Ko(e,t){if(null!==ve())throw new ct(-602,!1)}var Ti=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(Ti||{});let Qi=(()=>{var e;class t{constructor(){(0,f.A)(this,"impl",null)}execute(){var r;null===(r=this.impl)||void 0===r||r.execute()}}return(0,f.A)(t,"\u0275prov",nn({token:e=t,providedIn:"root",factory:()=>new e})),t})();const mg=[Ti.EarlyRead,Ti.Write,Ti.MixedReadWrite,Ti.Read];let vg=(()=>{var e;class t{constructor(){(0,f.A)(this,"ngZone",Kn(Bi)),(0,f.A)(this,"scheduler",Kn(Js)),(0,f.A)(this,"errorHandler",Kn(ta,{optional:!0})),(0,f.A)(this,"sequences",new Set),(0,f.A)(this,"deferredRegistrations",new Set),(0,f.A)(this,"executing",!1),Kn(Lr,{optional:!0})}execute(){this.executing=!0;for(const o of mg)for(const h of this.sequences)if(!h.erroredOrDestroyed&&h.hooks[o])try{h.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>h.hooks[o](h.pipelinedValue),h.snapshot))}catch(m){var r;h.erroredOrDestroyed=!0,null===(r=this.errorHandler)||void 0===r||r.handleError(m)}this.executing=!1;for(const o of this.sequences)o.afterRun(),o.once&&(this.sequences.delete(o),o.destroy());for(const o of this.deferredRegistrations)this.sequences.add(o);this.deferredRegistrations.size>0&&this.scheduler.notify(8),this.deferredRegistrations.clear()}register(r){this.executing?this.deferredRegistrations.add(r):(this.sequences.add(r),this.scheduler.notify(7))}unregister(r){this.executing&&this.sequences.has(r)?(r.erroredOrDestroyed=!0,r.pipelinedValue=void 0,r.once=!0):(this.sequences.delete(r),this.deferredRegistrations.delete(r))}maybeTrace(r,o){return o?o.run(Gc.AFTER_NEXT_RENDER,r):r()}}return(0,f.A)(t,"\u0275prov",nn({token:e=t,providedIn:"root",factory:()=>new e})),t})();class _g{constructor(t,n,r,o,h=null){(0,f.A)(this,"impl",void 0),(0,f.A)(this,"hooks",void 0),(0,f.A)(this,"once",void 0),(0,f.A)(this,"snapshot",void 0),(0,f.A)(this,"erroredOrDestroyed",!1),(0,f.A)(this,"pipelinedValue",void 0),(0,f.A)(this,"unregisterOnDestroy",void 0),this.impl=t,this.hooks=n,this.once=r,this.snapshot=h,this.unregisterOnDestroy=null==o?void 0:o.onDestroy(()=>this.destroy())}afterRun(){var t;this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,null===(t=this.snapshot)||void 0===t||t.dispose(),this.snapshot=null}destroy(){var t;this.impl.unregister(this),null===(t=this.unregisterOnDestroy)||void 0===t||t.call(this)}}function yg(e,t){var n;(null==t||!t.injector)&&fr();const r=null!==(n=null==t?void 0:t.injector)&&void 0!==n?n:Kn(Ji);return ao("NgAfterRender"),Ns(e,r,t,!1)}function xu(e,t){var n;(null==t||!t.injector)&&fr();const r=null!==(n=null==t?void 0:t.injector)&&void 0!==n?n:Kn(Ji);return ao("NgAfterNextRender"),Ns(e,r,t,!0)}function Ns(e,t,n,r){var o,h;const m=t.get(Qi);null!==(o=m.impl)&&void 0!==o||(m.impl=t.get(vg));const A=t.get(Lr,null,{optional:!0}),D=null!==(h=null==n?void 0:n.phase)&&void 0!==h?h:Ti.MixedReadWrite,Z=!0!==(null==n?void 0:n.manualCleanup)?t.get(hs):null,be=new _g(m.impl,function Ws(e,t){if(e instanceof Function){const n=[void 0,void 0,void 0,void 0];return n[t]=e,n}return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}(e,D),r,Z,null==A?void 0:A.snapshot(null));return m.impl.register(be),be}const v="__nghData__",H="ngh",Ie="nghm";let $e=()=>null;function Te(e,t,n=!1){var r;let o=e.getAttribute(H);if(null==o)return null;const[h,m]=o.split("|");if(o=n?m:h,!o)return null;const A=m?"|".concat(m):"",D=n?h:A;let Z={};if(""!==o){const Ne=t.get(va,null,{optional:!0});null!==Ne&&(Z=Ne.get(v,[])[Number(o)])}const be={data:Z,firstChild:null!==(r=e.firstChild)&&void 0!==r?r:null};return n&&(be.firstChild=e,$r(be,0,e.nextSibling)),D?e.setAttribute(H,D):e.removeAttribute(H),be}function gt(e,t,n=!1){return $e(e,t,n)}function mt(e){let t=e._lView;return 2===t[Nn].type?null:(Ta(t)&&(t=t[On]),t)}function $r(e,t,n){var r;null!==(r=e.segmentHeads)&&void 0!==r||(e.segmentHeads={}),e.segmentHeads[t]=n}function xi(e,t){var n,r;return null!==(n=null===(r=e.segmentHeads)||void 0===r?void 0:r[t])&&void 0!==n?n:null}function ka(e,t){var n,r;return null!==(n=null===(r=e.data[ol])||void 0===r?void 0:r[t])&&void 0!==n?n:null}function Fa(e,t){var n;const r=null!==(n=ka(e,t))&&void 0!==n?n:[];let o=0;for(let m of r){var h;o+=m[_a]*(null!==(h=m[xl])&&void 0!==h?h:1)}return o}function xs(e,t){var n;if(typeof e.disconnectedNodes>"u"){const r=e.data[sl];e.disconnectedNodes=r?new Set(r):null}return!(null===(n=function Kl(e){if(typeof e.disconnectedNodes>"u"){const t=e.data[sl];e.disconnectedNodes=t?new Set(t):null}return e.disconnectedNodes}(e))||void 0===n||!n.has(t))}function Jc(e,t){const n=e.contentQueries;if(null!==n){const r=z(null);try{for(let o=0;o<n.length;o+=2){const m=n[o+1];if(-1!==m){const A=e.data[m];Cl(n[o]),A.contentQueries(2,t[m],m)}}}finally{z(r)}}}function Ku(e,t,n){Cl(0);const r=z(null);try{t(e,n)}finally{z(r)}}function Ea(e,t,n){if(ca(t)){const r=z(null);try{const h=t.directiveEnd;for(let m=t.directiveStart;m<h;m++){const A=e.data[m];A.contentQueries&&A.contentQueries(1,n[m],m)}}finally{z(r)}}}var to=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(to||{});let xg,Lg;function qc(e){var t;return(null===(t=function Ev(){if(void 0===xg&&(xg=null,Pt.trustedTypes))try{xg=Pt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return xg}())||void 0===t?void 0:t.createHTML(e))||e}function Av(){if(void 0===Lg&&(Lg=null,Pt.trustedTypes))try{Lg=Pt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Lg}function W0(e){var t;return(null===(t=Av())||void 0===t?void 0:t.createHTML(e))||e}function z0(e){var t;return(null===(t=Av())||void 0===t?void 0:t.createScriptURL(e))||e}class Hu{constructor(t){(0,f.A)(this,"changingThisBreaksApplicationSecurity",void 0),this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see ".concat(at,")")}}class FI extends Hu{getTypeName(){return"HTML"}}class UI extends Hu{getTypeName(){return"Style"}}class BI extends Hu{getTypeName(){return"Script"}}class jI extends Hu{getTypeName(){return"URL"}}class VI extends Hu{getTypeName(){return"ResourceURL"}}function cl(e){return e instanceof Hu?e.changingThisBreaksApplicationSecurity:e}function ed(e,t){const n=function $I(e){return e instanceof Hu&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error("Required a safe ".concat(t,", got a ").concat(n," (see ").concat(at,")"))}return n===t}function KI(e){return new FI(e)}function HI(e){return new UI(e)}function WI(e){return new BI(e)}function GI(e){return new jI(e)}function zI(e){return new VI(e)}class QI{constructor(t){(0,f.A)(this,"inertDocumentHelper",void 0),this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{var n;const r=(new window.DOMParser).parseFromString(qc(t),"text/html").body;return null===r?this.inertDocumentHelper.getInertBodyElement(t):(null===(n=r.firstChild)||void 0===n||n.remove(),r)}catch(r){return null}}}class YI{constructor(t){(0,f.A)(this,"defaultDoc",void 0),(0,f.A)(this,"inertDocument",void 0),this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const n=this.inertDocument.createElement("template");return n.innerHTML=qc(t),n}}const ZI=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function kg(e){return(e=String(e)).match(ZI)?e:"unsafe:"+e}function dl(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function sh(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const Y0=dl("area,br,col,hr,img,wbr"),X0=dl("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Z0=dl("rp,rt"),Cv=sh(Y0,sh(X0,dl("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),sh(Z0,dl("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),sh(Z0,X0)),bv=dl("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),J0=sh(bv,dl("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),dl("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),JI=dl("script,style,template");class qI{constructor(){(0,f.A)(this,"sanitizedSomething",!1),(0,f.A)(this,"buf",[])}sanitizeChildren(t){let n=t.firstChild,r=!0,o=[];for(;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild)o.push(n),n=nT(n);else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let h=tT(n);if(h){n=h;break}n=o.pop()}return this.buf.join("")}startElement(t){const n=q0(t).toLowerCase();if(!Cv.hasOwnProperty(n))return this.sanitizedSomething=!0,!JI.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let o=0;o<r.length;o++){const h=r.item(o),m=h.name,A=m.toLowerCase();if(!J0.hasOwnProperty(A)){this.sanitizedSomething=!0;continue}let D=h.value;bv[A]&&(D=kg(D)),this.buf.push(" ",m,'="',ty(D),'"')}return this.buf.push(">"),!0}endElement(t){const n=q0(t).toLowerCase();Cv.hasOwnProperty(n)&&!Y0.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(ty(t))}}function tT(e){const t=e.nextSibling;if(t&&e!==t.previousSibling)throw ey(t);return t}function nT(e){const t=e.firstChild;if(t&&function eT(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,t))throw ey(t);return t}function q0(e){const t=e.nodeName;return"string"==typeof t?t:"FORM"}function ey(e){return new Error("Failed to sanitize html because the element is clobbered: ".concat(e.outerHTML))}const rT=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,iT=/([^\#-~ |!])/g;function ty(e){return e.replace(/&/g,"&amp;").replace(rT,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(iT,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Fg;function ny(e,t){let n=null;try{Fg=Fg||function Q0(e){const t=new YI(e);return function XI(){try{return!!(new window.DOMParser).parseFromString(qc(""),"text/html")}catch(e){return!1}}()?new QI(t):t}(e);let r=t?String(t):"";n=Fg.getInertBodyElement(r);let o=5,h=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=h,h=n.innerHTML,n=Fg.getInertBodyElement(r)}while(r!==h);return qc((new qI).sanitizeChildren(Sv(n)||n))}finally{if(n){const r=Sv(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Sv(e){return"content"in e&&function oT(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Wu=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Wu||{});function ry(e){const t=ah();return t?W0(t.sanitize(Wu.HTML,e)||""):ed(e,"HTML")?W0(cl(e)):ny(Rs(),Lt(e))}function Iv(e){const t=ah();return t?t.sanitize(Wu.URL,e)||"":ed(e,"URL")?cl(e):kg(Lt(e))}function Tv(e){const t=ah();if(t)return z0(t.sanitize(Wu.RESOURCE_URL,e)||"");if(ed(e,"ResourceURL"))return z0(cl(e));throw new ct(904,!1)}function iy(e,t,n){return function cT(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Tv:Iv}(t,n)(e)}function ah(){const e=fn();return e&&e[jo].sanitizer}const dT=/^>|^->|<!--|-->|--!>|<!-$/g,fT=/(<|>)/g,hT="\u200b$1\u200b";function zs(e){return e instanceof Function?e():e}var Wl=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Wl||{});function ST(e,t,n){let r=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const h=t.length;if(o+h===r||e.charCodeAt(o+h)<=32)return o}n=o+1}}const hy="ng-template";function IT(e,t,n,r){let o=0;if(r){for(;o<t.length&&"string"==typeof t[o];o+=2)if("class"===t[o]&&-1!==ST(t[o+1].toLowerCase(),n,0))return!0}else if(Pv(e))return!1;if(o=t.indexOf(1,o),o>-1){let h;for(;++o<t.length&&"string"==typeof(h=t[o]);)if(h.toLowerCase()===n)return!0}return!1}function Pv(e){return 4===e.type&&e.value!==hy}function TT(e,t,n){return t===(4!==e.type||n?e.value:hy)}function DT(e,t,n){let r=4;const o=e.attrs,h=null!==o?function MT(e){for(let t=0;t<e.length;t++)if(Qa(e[t]))return t;return e.length}(o):0;let m=!1;for(let A=0;A<t.length;A++){const D=t[A];if("number"!=typeof D){if(!m)if(4&r){if(r=2|1&r,""!==D&&!TT(e,D,n)||""===D&&1===t.length){if(Aa(r))return!1;m=!0}}else if(8&r){if(null===o||!IT(e,o,D,n)){if(Aa(r))return!1;m=!0}}else{const Z=t[++A],be=OT(D,o,Pv(e),n);if(-1===be){if(Aa(r))return!1;m=!0;continue}if(""!==Z){let Ne;if(Ne=be>h?"":o[be+1].toLowerCase(),2&r&&Z!==Ne){if(Aa(r))return!1;m=!0}}}}else{if(!m&&!Aa(r)&&!Aa(D))return!1;if(m&&Aa(D))continue;m=!1,r=D|1&r}}return Aa(r)||m}function Aa(e){return!(1&e)}function OT(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let h=!1;for(;o<t.length;){const m=t[o];if(m===e)return o;if(3===m||6===m)h=!0;else{if(1===m||2===m){let A=t[++o];for(;"string"==typeof A;)A=t[++o];continue}if(4===m)break;if(0===m){o+=4;continue}}o+=h?1:2}return-1}return function wT(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function py(e,t,n=!1){for(let r=0;r<t.length;r++)if(DT(e,t[r],n))return!0;return!1}function RT(e,t){e:for(let n=0;n<t.length;n++){const r=t[n];if(e.length===r.length){for(let o=0;o<e.length;o++)if(e[o]!==r[o])continue e;return!0}}return!1}function gy(e,t){return e?":not("+t.trim()+")":t}function NT(e){let t=e[0],n=1,r=2,o="",h=!1;for(;n<e.length;){let m=e[n];if("string"==typeof m)if(2&r){const A=e[++n];o+="["+m+(A.length>0?'="'+A+'"':"")+"]"}else 8&r?o+="."+m:4&r&&(o+=" "+m);else""!==o&&!Aa(m)&&(t+=gy(h,o),o=""),r=m,h=h||!Aa(r);n++}return""!==o&&(t+=gy(h,o)),t}const Hr={};function my(e=1){vy(Mr(),fn(),Lo()+e,!1)}function vy(e,t,n,r){if(!r)if(3&~t[pr]){const h=e.preOrderHooks;null!==h&&cu(t,h,0,n)}else{const h=e.preOrderCheckHooks;null!==h&&uu(t,h,n)}Pa(n)}function nd(e,t=Un.Default){const n=fn();return null===n?ci(e,t):nf(Kr(),n,bt(e),t)}function _y(){throw new Error("invalid")}function yy(e,t,n,r,o,h){const m=z(null);try{let A=null;o&Wl.SignalBased&&(A=t[r][q]),null!==A&&void 0!==A.transformFn&&(h=A.transformFn(h)),o&Wl.HasDecoratorInputTransform&&(h=e.inputTransforms[r].call(t,h)),null!==e.setInput?e.setInput(t,A,h,n,r):ic(t,A,r,h)}finally{z(m)}}function Mv(e,t){return e.createText(t)}function wv(e,t){return e.createComment(function oy(e){return e.replace(dT,t=>t.replace(fT,hT))}(t))}function jg(e,t,n){return e.createElement(t,n)}function Gu(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Ay(e,t,n){e.appendChild(t,n)}function Cy(e,t,n,r,o){null!==r?Gu(e,t,n,r,o):Ay(e,t,n)}function lh(e,t,n){e.removeChild(null,t,n)}function by(e){e.textContent=""}function Sy(e,t,n){const{mergedAttrs:r,classes:o,styles:h}=n;null!==r&&function yp(e,t,n){let r=0;for(;r<n.length;){const o=n[r];if("number"==typeof o){if(0!==o)break;r++;const h=n[r++],m=n[r++],A=n[r++];e.setAttribute(t,m,A,h)}else{const h=o,m=n[++r];pc(h)?e.setProperty(t,h,m):e.setAttribute(t,h,m),r++}}}(e,t,r),null!==o&&function FT(e,t,n){""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}(e,t,o),null!==h&&function kT(e,t,n){e.setAttribute(t,"style",n)}(e,t,h)}function uh(e,t,n,r,o,h,m,A,D,Z,be){const Ne=t.blueprint.slice();return Ne[Qr]=o,Ne[pr]=1228|r,(null!==Z||e&&2048&e[pr])&&(Ne[pr]|=2048),Ui(Ne),Ne[pi]=Ne[qe]=e,Ne[Br]=n,Ne[jo]=m||e&&e[jo],Ne[yr]=A||e&&e[yr],Ne[yi]=D||e&&e[yi]||null,Ne[oo]=h,Ne[En]=function Yp(){return Qp++}(),Ne[Wi]=be,Ne[_r]=Z,Ne[X]=2==t.type?e[X]:Ne,Ne}function ch(e,t,n,r){if(0===n)return-1;const o=t.length;for(let h=0;h<n;h++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function Iy(e,t,n,r,o){const h=Lo(),m=2&r;try{Pa(-1),m&&t.length>On&&vy(e,t,On,!1),fs(m?2:0,o),n(r,o)}finally{Pa(h),fs(m?3:1,o)}}function Rv(e,t,n){Ud()&&(function YT(e,t,n,r){const o=n.directiveStart,h=n.directiveEnd;Zo(n)&&function nD(e,t,n){const r=ke(t,e),o=xv(n),h=e[jo].rendererFactory,m=Vg(e,uh(e,o,null,Uv(n),r,t,null,h.createRenderer(r,n),null,null,null));e[t.index]=m}(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||vc(n,t),$o(r,t);const m=n.initialInputs;for(let A=o;A<h;A++){const D=e.data[A],Z=Ms(t,e,A,n);$o(Z,t),null!==m&&rD(0,A-o,Z,D,0,m),Os(D)&&(Qt(n.index,t)[Br]=Ms(t,e,A,n))}}(e,t,n,ke(n,t)),!(64&~n.flags)&&My(e,t,n))}function Nv(e,t,n=ke){const r=t.localNames;if(null!==r){let o=t.index+1;for(let h=0;h<r.length;h+=2){const m=r[h+1],A=-1===m?n(t,e):e[m];e[o++]=A}}}function xv(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Lv(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Lv(e,t,n,r,o,h,m,A,D,Z,be){const Ne=On+r,Je=Ne+o,ft=function UT(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:Hr);return n}(Ne,Je),Rt="function"==typeof Z?Z():Z;return ft[Nn]={type:e,blueprint:ft,template:n,queries:null,viewQuery:A,declTNode:t,data:ft.slice().fill(null,Ne),bindingStartIndex:Ne,expandoStartIndex:Je,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof h?h():h,pipeRegistry:"function"==typeof m?m():m,firstChild:null,schemas:D,consts:Rt,incompleteFirstPass:!1,ssrId:be}}let Ty=()=>null;function VT(e){Sf(e)?by(e):function an(e){const t=Rs(),n=t.createNodeIterator(e,NodeFilter.SHOW_COMMENT,{acceptNode(h){const m=function Kt(e){var t;return null===(t=e.textContent)||void 0===t?void 0:t.replace(/\s/gm,"")}(h);return"ngetn"===m||"ngtns"===m?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});let r;const o=[];for(;r=n.nextNode();)o.push(r);for(const h of o)"ngetn"===h.textContent?h.replaceWith(t.createTextNode("")):h.remove()}(e)}function Dy(e,t,n,r,o){for(let h in t){if(!t.hasOwnProperty(h))continue;const m=t[h];if(void 0===m)continue;null!=r||(r={});let A,D=Wl.None;Array.isArray(m)?(A=m[0],D=m[1]):A=m;let Z=h;if(null!==o){if(!o.hasOwnProperty(h))continue;Z=o[h]}0===e?Oy(r,n,Z,A,D):Oy(r,n,Z,A)}return r}function Oy(e,t,n,r,o){let h;e.hasOwnProperty(n)?(h=e[n]).push(t,r):h=e[n]=[t,r],void 0!==o&&h.push(o)}function Ls(e,t,n,r,o,h,m,A){const D=ke(t,n);let be,Z=t.inputs;!A&&null!=Z&&(be=Z[r])?(jv(e,n,be,r,o),Zo(t)&&function WT(e,t){const n=Qt(t,e);16&n[pr]||(n[pr]|=64)}(n,t.index)):3&t.type&&(r=function HT(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=m?m(o,t.value||"",r):o,h.setProperty(D,r,o))}function kv(e,t,n,r){if(Ud()){const o=null===r?null:{"":-1},h=function ZT(e,t){const n=e.directiveRegistry;let r=null,o=null;if(n)for(let m=0;m<n.length;m++){const A=n[m];if(py(t,A.selectors,!1))if(r||(r=[]),Os(A))if(null!==A.findHostDirectiveDefs){const D=[];o=o||new Map,A.findHostDirectiveDefs(A,D,o),r.unshift(...D,A),Fv(e,t,D.length)}else r.unshift(A),Fv(e,t,0);else{var h;o=o||new Map,null===(h=A.findHostDirectiveDefs)||void 0===h||h.call(A,A,r,o),r.push(A)}}return null===r?null:[r,o]}(e,n);let m,A;null===h?m=A=null:[m,A]=h,null!==m&&Py(e,t,n,m,o,A),o&&function JT(e,t,n){if(t){const r=e.localNames=[];for(let o=0;o<t.length;o+=2){const h=n[t[o+1]];if(null==h)throw new ct(-301,!1);r.push(t[o],h)}}}(n,r,o)}n.mergedAttrs=Ya(n.mergedAttrs,n.attrs)}function Py(e,t,n,r,o,h){for(let Ne=0;Ne<r.length;Ne++)Ja(vc(n,t),e,r[Ne].type);!function eD(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}(n,e.data.length,r.length);for(let Ne=0;Ne<r.length;Ne++){const Je=r[Ne];Je.providersResolver&&Je.providersResolver(Je)}let m=!1,A=!1,D=ch(e,t,r.length,null);for(let Ne=0;Ne<r.length;Ne++){const Je=r[Ne];n.mergedAttrs=Ya(n.mergedAttrs,Je.hostAttrs),tD(e,n,t,D,Je),qT(D,Je,o),null!==Je.contentQueries&&(n.flags|=4),(null!==Je.hostBindings||null!==Je.hostAttrs||0!==Je.hostVars)&&(n.flags|=64);const ft=Je.type.prototype;var Z,be;!m&&(ft.ngOnChanges||ft.ngOnInit||ft.ngDoCheck)&&((null!==(Z=e.preOrderHooks)&&void 0!==Z?Z:e.preOrderHooks=[]).push(n.index),m=!0),A||!ft.ngOnChanges&&!ft.ngDoCheck||((null!==(be=e.preOrderCheckHooks)&&void 0!==be?be:e.preOrderCheckHooks=[]).push(n.index),A=!0),D++}!function KT(e,t,n){const o=t.directiveEnd,h=e.data,m=t.attrs,A=[];let D=null,Z=null;for(let be=t.directiveStart;be<o;be++){const Ne=h[be],Je=n?n.get(Ne):null,Rt=Je?Je.outputs:null;D=Dy(0,Ne.inputs,be,D,Je?Je.inputs:null),Z=Dy(1,Ne.outputs,be,Z,Rt);const Gt=null===D||null===m||Pv(t)?null:iD(D,be,m);A.push(Gt)}null!==D&&(D.hasOwnProperty("class")&&(t.flags|=8),D.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=A,t.inputs=D,t.outputs=Z}(e,n,h)}function My(e,t,n){const r=n.directiveStart,o=n.directiveEnd,h=n.index,m=function Gm(){return Rr.lFrame.currentDirectiveIndex}();try{Pa(h);for(let A=r;A<o;A++){const D=e.data[A],Z=t[A];Kd(A),(null!==D.hostBindings||0!==D.hostVars||null!==D.hostAttrs)&&XT(D,Z)}}finally{Pa(-1),Kd(m)}}function XT(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Fv(e,t,n){var r;t.componentOffset=n,(null!==(r=e.components)&&void 0!==r?r:e.components=[]).push(t.index)}function qT(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Os(t)&&(n[""]=e)}}function tD(e,t,n,r,o){e.data[r]=o;const h=o.factory||(o.factory=_o(o.type)),m=new Il(h,Os(o),nd);e.blueprint[r]=m,n[r]=m,function zT(e,t,n,r,o){const h=o.hostBindings;if(h){let m=e.hostBindingOpCodes;null===m&&(m=e.hostBindingOpCodes=[]);const A=~t.index;(function QT(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(m)!=A&&m.push(A),m.push(n,r,h)}}(e,t,r,ch(e,n,o.hostVars,Hr),o)}function Uv(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Ua(e,t,n,r,o,h){const m=ke(e,t);!function Bv(e,t,n,r,o,h,m){if(null==h)e.removeAttribute(t,o,n);else{const A=null==m?Lt(h):m(h,r||"",o);e.setAttribute(t,o,A,n)}}(t[yr],m,h,e.value,n,r,o)}function rD(e,t,n,r,o,h){const m=h[t];if(null!==m)for(let A=0;A<m.length;)yy(r,n,m[A++],m[A++],m[A++],m[A++])}function iD(e,t,n){let r=null,o=0;for(;o<n.length;){const h=n[o];if(0!==h)if(5!==h){if("number"==typeof h)break;if(e.hasOwnProperty(h)){null===r&&(r=[]);const m=e[h];for(let A=0;A<m.length;A+=3)if(m[A]===t){r.push(h,m[A+1],m[A+2],n[o+1]);break}}o+=2}else o+=2;else o+=4}return r}function wy(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function Vg(e,t){return e[$]?e[re][ho]=t:e[$]=t,e[re]=t,t}function $g(e,t){const n=e[yi],r=n?n.get(ta,null):null;r&&r.handleError(t)}function jv(e,t,n,r,o){for(let h=0;h<n.length;){const m=n[h++],A=n[h++],D=n[h++];yy(e.data[m],t[m],r,A,D,o)}}function oD(e,t){const n=Qt(t,e),r=n[Nn];!function sD(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(r,n);const o=n[Qr];null!==o&&null===n[Wi]&&(n[Wi]=gt(o,n[yi])),Kg(r,n,n[Br])}function Kg(e,t,n){au(t);try{var r;const o=e.viewQuery;null!==o&&Ku(1,o,n);const h=e.template;null!==h&&Iy(e,t,h,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),null===(r=t[qt])||void 0===r||r.finishViewCreation(e),e.staticContentQueries&&Jc(e,t),e.staticViewQueries&&Ku(2,e.viewQuery,n);const m=e.components;null!==m&&function aD(e,t){for(let n=0;n<t.length;n++)oD(e,t[n])}(t,m)}catch(o){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),o}finally{t[pr]&=-5,lu()}}var Hg=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Hg||{});let Vv;function $v(e,t){return Vv(e,t)}function rd(e,t,n,r,o){if(null!=r){let h,m=!1;Ei(r)?h=r:ai(r)&&(m=!0,r=r[Qr]);const A=J(r);0===e&&null!==n?null==o?Ay(t,n,A):Gu(t,n,A,o||null,!0):1===e&&null!==n?Gu(t,n,A,o||null,!0):2===e?lh(t,A,m):3===e&&t.destroyNode(A),null!=h&&function gD(e,t,n,r,o){const h=n[Gi];h!==J(n)&&rd(t,e,r,h,o);for(let A=di;A<n.length;A++){const D=n[A];Gg(D[Nn],D,e,t,r,h)}}(t,e,h,n,o)}}function xy(e,t){var n;null===(n=t[jo].changeDetectionScheduler)||void 0===n||n.notify(10),Gg(e,t,t[yr],2,null,null)}function Ly(e,t){const n=e[No],r=t[pi];(ai(r)||t[X]!==r[pi][X])&&(e[pr]|=2),null===n?e[No]=[t]:n.push(t)}function Kv(e,t){const n=e[No],r=n.indexOf(t);n.splice(r,1)}function dh(e,t){if(e.length<=di)return;const n=di+t,r=e[n];if(r){const o=r[xe];null!==o&&o!==e&&Kv(o,r),t>0&&(e[n-1][ho]=r[ho]);const h=Yo(e,di+t);!function Ny(e,t){xy(e,t),t[Qr]=null,t[oo]=null}(r[Nn],r);const m=h[qt];null!==m&&m.detachView(h[Nn]),r[pi]=null,r[ho]=null,r[pr]&=-129}return r}function fh(e,t){if(Da(t))return;const n=t[yr];n.destroyNode&&Gg(e,t,n,3,null,null),function cD(e){let t=e[$];if(!t)return Hv(e[Nn],e);for(;t;){let n=null;if(ai(t))n=t[$];else{const r=t[di];r&&(n=r)}if(!n){for(;t&&!t[ho]&&t!==e;)ai(t)&&Hv(t[Nn],t),t=t[pi];null===t&&(t=e),ai(t)&&Hv(t[Nn],t),n=t&&t[ho]}t=n}}(t)}function Hv(e,t){if(Da(t))return;const n=z(null);try{t[pr]&=-129,t[pr]|=256,t[jr]&&B(t[jr]),function hD(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r<n.length;r+=2){const o=t[n[r]];if(!(o instanceof Il)){const h=n[r+1];if(Array.isArray(h))for(let m=0;m<h.length;m+=2){const A=o[h[m]],D=h[m+1];fs(4,A,D);try{D.call(A)}finally{fs(5,A,D)}}else{fs(4,o,h);try{h.call(o)}finally{fs(5,o,h)}}}}}(e,t),function fD(e,t){const n=e.cleanup,r=t[cs];if(null!==n)for(let m=0;m<n.length-1;m+=2)if("string"==typeof n[m]){const A=n[m+3];A>=0?r[A]():r[-A].unsubscribe(),m+=2}else n[m].call(r[n[m+1]]);null!==r&&(t[cs]=null);const o=t[Sr];if(null!==o){t[Sr]=null;for(let m=0;m<o.length;m++)(0,o[m])()}const h=t[Pr];if(null!==h){t[Pr]=null;for(const m of h)m.destroy()}}(e,t),1===t[Nn].type&&t[yr].destroy();const r=t[xe];if(null!==r&&Ei(t[pi])){r!==t[pi]&&Kv(r,t);const o=t[qt];null!==o&&o.detachView(e)}Mc(t)}finally{z(n)}}function Wv(e,t,n){return function ky(e,t,n){let r=t;for(;null!==r&&168&r.type;)r=(t=r).parent;if(null===r)return n[Qr];{const{componentOffset:o}=r;if(o>-1){const{encapsulation:h}=e.data[r.directiveStart+o];if(h===to.None||h===to.Emulated)return null}return ke(r,n)}}(e,t.parent,n)}function Fy(e,t,n){return By(e,t,n)}let Gv,By=function Uy(e,t,n){return 40&e.type?ke(e,n):null};function Wg(e,t,n,r){const o=Wv(e,r,t),h=t[yr],A=Fy(r.parent||t[oo],r,t);if(null!=o)if(Array.isArray(n))for(let D=0;D<n.length;D++)Cy(h,o,n[D],A,!1);else Cy(h,o,n,A,!1);void 0!==Gv&&Gv(h,r,t,n,o)}function zu(e,t){if(null!==t){const n=t.type;if(3&n)return ke(t,e);if(4&n)return zv(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return zu(e,r);{const o=e[t.index];return Ei(o)?zv(-1,o):J(o)}}if(128&n)return zu(e,t.next);if(32&n)return $v(t,e)()||J(e[t.index]);{const r=Vy(e,t);return null!==r?Array.isArray(r)?r[0]:zu(js(e[X]),r):zu(e,t.next)}}return null}function Vy(e,t){return null!==t?e[X][oo].projection[t.projection]:null}function zv(e,t){const n=di+e+1;if(n<t.length){const r=t[n],o=r[Nn].firstChild;if(null!==o)return zu(r,o)}return t[Gi]}function Qv(e,t,n,r,o,h,m){for(;null!=n;){if(128===n.type){n=n.next;continue}const A=r[n.index],D=n.type;if(m&&0===t&&(A&&$o(J(A),r),n.flags|=2),32&~n.flags)if(8&D)Qv(e,t,n.child,r,o,h,!1),rd(t,e,o,A,h);else if(32&D){const Z=$v(n,r);let be;for(;be=Z();)rd(t,e,o,be,h);rd(t,e,o,A,h)}else 16&D?$y(e,t,r,n,o,h):rd(t,e,o,A,h);n=m?n.projectionNext:n.next}}function Gg(e,t,n,r,o,h){Qv(n,r,e.firstChild,t,o,h,!1)}function $y(e,t,n,r,o,h){const m=n[X],D=m[oo].projection[r.projection];if(Array.isArray(D))for(let Z=0;Z<D.length;Z++)rd(t,e,o,D[Z],h);else{let Z=D;const be=m[pi];Ml(r)&&(Z.flags|=128),Qv(e,t,Z,be,o,h,!0)}}function id(e,t,n,r){const o=z(null);try{var h,m,A;const D=t.tView,Ne=uh(e,D,n,4096&e[pr]?4096:16,null,t,null,null,null!==(h=null==r?void 0:r.injector)&&void 0!==h?h:null,null!==(m=null==r?void 0:r.embeddedViewInjector)&&void 0!==m?m:null,null!==(A=null==r?void 0:r.dehydratedView)&&void 0!==A?A:null);Ne[xe]=e[t.index];const ft=e[qt];return null!==ft&&(Ne[qt]=ft.createEmbeddedView(D)),Kg(D,Ne,n),Ne}finally{z(o)}}function Ky(e,t){const n=di+t;if(n<e.length)return e[n]}function Qu(e,t){return!t||null===t.firstChild||Ml(e)}function od(e,t,n,r=!0){const o=t[Nn];if(function dD(e,t,n,r){const o=di+r,h=n.length;r>0&&(n[o-1][ho]=t),r<h-di?(t[ho]=n[o],Cs(n,di+r,t)):(n.push(t),t[ho]=null),t[pi]=n;const m=t[xe];null!==m&&n!==m&&Ly(m,t);const A=t[qt];null!==A&&A.insertView(e),Jo(t),t[pr]|=128}(o,t,e,n),r){const m=zv(n,e),A=t[yr],D=A.parentNode(e[Gi]);null!==D&&function uD(e,t,n,r,o,h){r[Qr]=o,r[oo]=t,Gg(e,r,n,1,o,h)}(o,e[oo],A,t,D,m)}const h=t[Wi];null!==h&&null!==h.firstChild&&(h.firstChild=null)}function Yv(e,t){const n=dh(e,t);return void 0!==n&&fh(n[Nn],n),n}function sd(e,t,n,r,o=!1){for(;null!==n;){if(128===n.type){n=o?n.projectionNext:n.next;continue}const h=t[n.index];null!==h&&r.push(J(h)),Ei(h)&&Xv(h,r);const m=n.type;if(8&m)sd(e,t,n.child,r);else if(32&m){const A=$v(n,t);let D;for(;D=A();)r.push(D)}else if(16&m){const A=Vy(t,n);if(Array.isArray(A))r.push(...A);else{const D=js(t[X]);sd(D[Nn],D,A,r,!0)}}n=o?n.projectionNext:n.next}return r}function Xv(e,t){for(let n=di;n<e.length;n++){const r=e[n],o=r[Nn].firstChild;null!==o&&sd(r[Nn],r,o,t)}e[Gi]!==e[Qr]&&t.push(e[Gi])}let Hy=[];const ED=(0,s.A)((0,s.A)({},Q),{},{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{Xs(e.lView)},consumerOnSignalRead(){this.lView[jr]=this}}),CD=(0,s.A)((0,s.A)({},Q),{},{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=js(e.lView);for(;t&&!Wy(t[Nn]);)t=js(t);t&&Oo(t)},consumerOnSignalRead(){this.lView[jr]=this}});function Wy(e){return 2!==e.type}function Gy(e){if(null===e[Pr])return;let t=!0;for(;t;){let n=!1;for(const r of e[Pr])r.dirty&&(n=!0,null===r.zone||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(8192&e[pr])}}function zg(e,t=!0,n=0){const o=e[jo].rendererFactory;var m;null===(m=o.begin)||void 0===m||m.call(o);try{!function SD(e,t){const n=cc();try{su(!0),Zv(e,t);let r=0;for(;Bs(e);){if(100===r)throw new ct(103,!1);r++,Zv(e,1)}}finally{su(n)}}(e,n)}catch(D){throw t&&$g(e,D),D}finally{var A;null===(A=o.end)||void 0===A||A.call(o)}}function Qy(e,t,n,r){if(Da(t))return;const o=t[pr];au(t);let A=!0,D=null,Z=null;Wy(e)?(Z=function vD(e){var t;return null!==(t=e[jr])&&void 0!==t?t:function _D(e){var t;const n=null!==(t=Hy.pop())&&void 0!==t?t:Object.create(ED);return n.lView=e,n}(e)}(t),D=_(Z)):null===ve()?(A=!1,Z=function AD(e){var t;const n=null!==(t=e[jr])&&void 0!==t?t:Object.create(CD);return n.lView=e,n}(t),D=_(Z)):t[jr]&&(B(t[jr]),t[jr]=null);try{Ui(t),function ap(e){return Rr.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&Iy(e,t,n,2,r);const be=!(3&~o);if(be){const ft=e.preOrderCheckHooks;null!==ft&&uu(t,ft,null)}else{const ft=e.preOrderHooks;null!==ft&&cu(t,ft,0,null),gp(t,0)}if(function ID(e){for(let t=Iu(e);null!==t;t=Rf(t)){if(!(2&t[pr]))continue;const n=t[No];for(let r=0;r<n.length;r++)Oo(n[r])}}(t),Gy(t),Yy(t,0),null!==e.contentQueries&&Jc(e,t),be){const ft=e.contentCheckHooks;null!==ft&&uu(t,ft)}else{const ft=e.contentHooks;null!==ft&&cu(t,ft,1),gp(t,1)}!function DD(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let r=0;r<n.length;r++){const o=n[r];if(o<0)Pa(~o);else{const h=o,m=n[++r],A=n[++r];up(m,h);const D=t[h];fs(24,D),A(2,D),fs(25,D)}}}finally{Pa(-1)}}(e,t);const Ne=e.components;null!==Ne&&Zy(t,Ne,0);const Je=e.viewQuery;if(null!==Je&&Ku(2,Je,r),be){const ft=e.viewCheckHooks;null!==ft&&uu(t,ft)}else{const ft=e.viewHooks;null!==ft&&cu(t,ft,2),gp(t,2)}if(!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[Or]){for(const ft of t[Or])ft();t[Or]=null}t[pr]&=-73}catch(be){throw Xs(t),be}finally{null!==Z&&(O(Z,D),A&&function yD(e){e.lView[jr]!==e&&(e.lView=null,Hy.push(e))}(Z)),lu()}}function Yy(e,t){for(let n=Iu(e);null!==n;n=Rf(n))for(let r=di;r<n.length;r++)Xy(n[r],t)}function TD(e,t,n){Xy(Qt(t,e),n)}function Xy(e,t){Er(e)&&Zv(e,t)}function Zv(e,t){const r=e[Nn],o=e[pr],h=e[jr];let m=!!(0===t&&16&o);if(m||(m=!!(64&o&&0===t)),m||(m=!!(1024&o)),m||(m=!(null==h||!h.dirty||!x(h))),m||(m=!1),h&&(h.dirty=!1),e[pr]&=-9217,m)Qy(r,e,r.template,e[Br]);else if(8192&o){Gy(e),Yy(e,1);const A=r.components;null!==A&&Zy(e,A,1)}}function Zy(e,t,n){for(let r=0;r<t.length;r++)TD(e,t[r],n)}function hh(e,t){var n;const r=cc()?64:1088;for(null===(n=e[jo].changeDetectionScheduler)||void 0===n||n.notify(t);e;){e[pr]|=r;const o=js(e);if(Ta(e)&&!o)return e;e=o}return null}class ph{get rootNodes(){const t=this._lView,n=t[Nn];return sd(n,t,n.firstChild,[])}constructor(t,n,r=!0){(0,f.A)(this,"_lView",void 0),(0,f.A)(this,"_cdRefInjectingView",void 0),(0,f.A)(this,"notifyErrorHandler",void 0),(0,f.A)(this,"_appRef",null),(0,f.A)(this,"_attachedToViewContainer",!1),this._lView=t,this._cdRefInjectingView=n,this.notifyErrorHandler=r}get context(){return this._lView[Br]}get dirty(){var t;return!!(9280&this._lView[pr])||!(null===(t=this._lView[jr])||void 0===t||!t.dirty)}set context(t){this._lView[Br]=t}get destroyed(){return Da(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[pi];if(Ei(t)){const n=t[8],r=n?n.indexOf(this):-1;r>-1&&(dh(t,r),Yo(n,r))}this._attachedToViewContainer=!1}fh(this._lView[Nn],this._lView)}onDestroy(t){da(this._lView,t)}markForCheck(){hh(this._cdRefInjectingView||this._lView,4)}markForRefresh(){Oo(this._cdRefInjectingView||this._lView)}detach(){this._lView[pr]&=-129}reattach(){Jo(this._lView),this._lView[pr]|=128}detectChanges(){this._lView[pr]|=1024,zg(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ct(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const t=Ta(this._lView),n=this._lView[xe];null!==n&&!t&&Kv(n,this._lView),xy(this._lView[Nn],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new ct(902,!1);this._appRef=t;const n=Ta(this._lView),r=this._lView[xe];null!==r&&!n&&Ly(r,this._lView),Jo(this._lView)}}let gh=(()=>{class e{}return(0,f.A)(e,"__NG_ELEMENT_ID__",MD),e})();const OD=gh,PD=class extends OD{constructor(t,n,r){super(),(0,f.A)(this,"_declarationLView",void 0),(0,f.A)(this,"_declarationTContainer",void 0),(0,f.A)(this,"elementRef",void 0),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){var t;return(null===(t=this._declarationTContainer.tView)||void 0===t?void 0:t.ssrId)||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){const o=id(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new ph(o)}};function MD(){return Qg(Kr(),fn())}function Qg(e,t){return 4&e.type?new PD(t,e,nl(e,t)):null}function Yu(e,t,n,r,o){let h=e.data[t];if(null===h)h=function t_(e,t,n,r,o){const h=Vd(),m=$d(),D=e.data[t]=function jD(e,t,n,r,o,h){let m=t?t.injectorIndex:-1,A=0;return Es()&&(A|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:m,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:A,providerIndexes:0,value:o,attrs:h,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,m?h:h&&h.parent,n,t,r,o);return function BD(e,t,n,r){null===e.firstChild&&(e.firstChild=t),null!==n&&(r?null==n.child&&null!==t.parent&&(n.child=t):null===n.next&&(n.next=t,t.prev=n))}(e,D,h,m),D}(e,t,n,r,o),function lp(){return Rr.lFrame.inI18n}()&&(h.flags|=32);else if(64&h.type){h.type=n,h.value=r,h.attrs=o;const m=function Ps(){const e=Rr.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();h.injectorIndex=null===m?-1:m.injectorIndex}return Vs(h,!0),h}const XD=new RegExp("^(\\d+)*(".concat(jc,"|").concat(Bc,")*(.*)"));function r_(e){return e.index-On}function Ah(e,t,n,r){const o=r_(r);let h=function uE(e,t){const n=e.i18nNodes;if(n)return n.get(t)}(e,o);if(void 0===h){const A=e.data[Ll];if(null!=A&&A[o])h=function cE(e,t){const[n,...r]=function JD(e){const t=e.match(XD),[n,r,o,h]=t,m=r?parseInt(r,10):o,A=[];for(const[D,Z,be]of h.matchAll(/(f|n)(\d*)/g)){const Ne=parseInt(be,10)||1;A.push(Z,Ne)}return[m,...A]}(e);let o;o=n===Bc?t[X][Qr]:n===jc?function uy(e){return e.ownerDocument.body}(t[X][Qr]):J(t[Number(n)+On]);return function tO(e,t){let n=e;for(let r=0;r<t.length;r+=2){const o=t[r],h=t[r+1];for(let m=0;m<h;m++)switch(o){case Vc:n=n.firstChild;break;case Vf:n=n.nextSibling}}return n}(o,r)}(A[o],n);else if(t.firstChild===r)h=e.firstChild;else{var m;const D=null===r.prev,Z=null!==(m=r.prev)&&void 0!==m?m:r.parent;if(function qD(e){var t;return!e.prev&&8===(null===(t=e.parent)||void 0===t?void 0:t.type)}(r))h=xi(e,r_(r.parent));else{let be=ke(Z,n);if(D)h=be.firstChild;else{const Ne=r_(Z),Je=xi(e,Ne);h=2===Z.type&&Je?Jg(Fa(e,Ne)+1,Je):be.nextSibling}}}}return h}function Jg(e,t){let n=t;for(let r=0;r<e;r++)n=n.nextSibling;return n}let fE=!1;function EO(e,t,n){for(const r of n.node.cases[n.case]){const o=t.get(r.index-On);o&&lh(e,o,!1)}}function mE(e){var t;const n=null!==(t=e[po])&&void 0!==t?t:[],o=e[pi][yr],h=[];for(const m of n)void 0!==m.data[Kc]?h.push(m):AO(m,o);e[po]=h}function AO(e,t){let n=0,r=e.firstChild;if(r){const o=e.data[_a];for(;n<o;){const h=r.nextSibling;lh(t,r,!1),r=h,n++}}}function u_(e){mE(e);const t=e[Qr];ai(t)&&qg(t);for(let n=di;n<e.length;n++)qg(e[n])}function qg(e){!function yO(e){const t=e[Wi];if(t){const{i18nNodes:n,dehydratedIcuData:r}=t;if(n&&r){const o=e[yr];for(const h of r.values())EO(o,n,h)}t.i18nNodes=void 0,t.dehydratedIcuData=void 0}}(e);const t=e[Nn];for(let n=On;n<t.bindingStartIndex;n++)Ei(e[n])?u_(e[n]):ai(e[n])&&qg(e[n])}let _E=()=>null;function SO(e,t){const n=e[po];return t&&null!==n&&0!==n.length?n[0].data[$c]===t?n.shift():(mE(e),null):null}function ld(e,t){return _E(e,t)}class TO{}class yE{}class DO{resolveComponentFactory(t){throw Error("No component factory found for ".concat(An(t),"."))}}class ud{}(0,f.A)(ud,"NULL",new DO);class c_{}let OO=(()=>{class e{constructor(){(0,f.A)(this,"destroyNode",null)}}return(0,f.A)(e,"__NG_ELEMENT_ID__",()=>function PO(){const e=fn(),n=Qt(Kr().index,e);return(ai(n)?n:e)[yr]}()),e})(),MO=(()=>{class t{}return(0,f.A)(t,"\u0275prov",nn({token:t,providedIn:"root",factory:()=>null})),t})();function Gl(e){return!!Ue(e)}function tm(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,h=0;if(null!==t)for(let m=0;m<t.length;m++){const A=t[m];"number"==typeof A?h=A:1==h?o=Qn(o,A):2==h&&(r=Qn(r,A+": "+t[++m]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}class CE extends ud{constructor(t){super(),(0,f.A)(this,"ngModule",void 0),this.ngModule=t}resolveComponentFactory(t){const n=Ot(t);return new Ih(n,this.ngModule)}}function bE(e,t){const n=[];for(const r in e){if(!e.hasOwnProperty(r))continue;const o=e[r];if(void 0===o)continue;const h=Array.isArray(o),m=h?o[0]:o;n.push(t?{propName:m,templateName:r,isSignal:!!((h?o[1]:Wl.None)&Wl.SignalBased)}:{propName:m,templateName:r})}return n}class Ih extends yE{get inputs(){const t=this.componentDef,n=t.inputTransforms,r=bE(t.inputs,!0);if(null!==n)for(const o of r)n.hasOwnProperty(o.propName)&&(o.transform=n[o.propName]);return r}get outputs(){return bE(this.componentDef.outputs,!1)}constructor(t,n){super(),(0,f.A)(this,"componentDef",void 0),(0,f.A)(this,"ngModule",void 0),(0,f.A)(this,"selector",void 0),(0,f.A)(this,"componentType",void 0),(0,f.A)(this,"ngContentSelectors",void 0),(0,f.A)(this,"isBoundToModule",void 0),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function xT(e){return e.map(NT).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,o){const h=z(null);try{var A;let D=(o=o||this.ngModule)instanceof Zr?o:null===(A=o)||void 0===A?void 0:A.injector;D&&null!==this.componentDef.getStandaloneInjector&&(D=this.componentDef.getStandaloneInjector(D)||D);const Z=D?new Xa(t,D):t,be=Z.get(c_,null);if(null===be)throw new ct(407,!1);const ft={rendererFactory:be,sanitizer:Z.get(MO,null),changeDetectionScheduler:Z.get(Js,null)},Rt=be.createRenderer(null,this.componentDef),Gt=this.componentDef.selectors[0][0]||"div",_n=r?function BT(e,t,n,r){const h=r.get(Kf,!1)||n===to.ShadowDom,m=e.selectRootElement(t,h);return function jT(e){Ty(e)}(m),m}(Rt,r,this.componentDef.encapsulation,Z):jg(Rt,Gt,function NO(e){const t=e.toLowerCase();return"svg"===t?w:"math"===t?"math":null}(Gt));let wn=512;this.componentDef.signals?wn|=4096:this.componentDef.onPush||(wn|=16);let hn=null;null!==_n&&(hn=gt(_n,Z,!0));const cr=Lv(0,null,null,1,0,null,null,null,null,null,null),Cr=uh(null,cr,null,wn,null,null,ft,Rt,Z,null,hn);Cr[On]=_n,au(Cr);let vi,mo=null;try{const sa=this.componentDef;let eu,j0=null;sa.findHostDirectiveDefs?(eu=[],j0=new Map,sa.findHostDirectiveDefs(sa,eu,j0),eu.push(sa)):eu=[sa];const iI=r?["ng-version","19.1.3"]:function xO(e){const{attrs:t,classes:n}=function LT(e){const t=[],n=[];let r=1,o=2;for(;r<e.length;){let h=e[r];if("string"==typeof h)2===o?""!==h&&t.push(h,e[++r]):8===o&&n.push(h);else{if(!Aa(o))break;o=h}r++}return{attrs:t,classes:n}}(e),r=t;return n.length&&r.push(1,...n),r}(this.componentDef.selectors[0]),hl=Yu(cr,On,2,"#host",iI);for(const $x of eu)hl.mergedAttrs=Ya(hl.mergedAttrs,$x.hostAttrs);hl.mergedAttrs=Ya(hl.mergedAttrs,iI),tm(hl,hl.mergedAttrs,!0),_n&&Sy(Rt,_n,hl),mo=function kO(e,t,n,r,o,h){const m=o[Nn];let A=null;null!==t&&(A=gt(t,o[yi]));const D=h.rendererFactory.createRenderer(t,n),Z=uh(o,xv(n),null,Uv(n),o[e.index],e,h,D,null,null,A);return m.firstCreatePass&&Fv(m,e,r.length-1),Vg(o,Z),o[e.index]=Z}(hl,_n,sa,eu,Cr,ft),void 0!==n&&function UO(e,t,n){const r=e.projection=[];for(let o=0;o<t.length;o++){const h=n[o];r.push(null!=h&&h.length?Array.from(h):null)}}(hl,this.ngContentSelectors,n),vi=function FO(e,t,n,r,o,h){const m=Kr(),A=o[Nn],D=ke(m,o);Py(A,o,m,n,null,r);for(let be=0;be<n.length;be++)$o(Ms(o,A,m.directiveStart+be,m),o);My(A,o,m),D&&$o(D,o);const Z=Ms(o,A,m.directiveStart+m.componentOffset,m);if(e[Br]=o[Br]=Z,null!==h)for(const be of h)be(Z,t);return Ea(A,m,o),Z}(mo,sa,eu,j0,Cr,[BO]),Kg(cr,Cr,null)}catch(sa){throw null!==mo&&Mc(mo),Mc(Cr),sa}finally{lu()}const ko=Wt(cr,On);return new LO(this.componentType,vi,nl(ko,Cr),Cr,ko)}finally{z(h)}}}class LO extends TO{constructor(t,n,r,o,h){super(),(0,f.A)(this,"location",void 0),(0,f.A)(this,"_rootLView",void 0),(0,f.A)(this,"_tNode",void 0),(0,f.A)(this,"instance",void 0),(0,f.A)(this,"hostView",void 0),(0,f.A)(this,"changeDetectorRef",void 0),(0,f.A)(this,"componentType",void 0),(0,f.A)(this,"previousInputValues",null),this.location=r,this._rootLView=o,this._tNode=h,this.instance=n,this.hostView=this.changeDetectorRef=new ph(o,void 0,!1),this.componentType=t}setInput(t,n){const r=this._tNode.inputs;let o;if(null!==r&&(o=r[t])){var h;if(null!==(h=this.previousInputValues)&&void 0!==h||(this.previousInputValues=new Map),this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;const m=this._rootLView;jv(m[Nn],m,o,t,n),this.previousInputValues.set(t,n),hh(Qt(this._tNode.index,m),1)}}get injector(){return new zi(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function BO(){const e=Kr();za(fn()[Nn],e)}let nm=(()=>{class e{}return(0,f.A)(e,"__NG_ELEMENT_ID__",jO),e})();function jO(){return TE(Kr(),fn())}const VO=nm,SE=class extends VO{constructor(t,n,r){super(),(0,f.A)(this,"_lContainer",void 0),(0,f.A)(this,"_hostTNode",void 0),(0,f.A)(this,"_hostLView",void 0),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return nl(this._hostTNode,this._hostLView)}get injector(){return new zi(this._hostTNode,this._hostLView)}get parentInjector(){const t=_c(this._hostTNode,this._hostLView);if(Jd(t)){const n=Ma(t,this._hostLView),r=fu(t);return new zi(n[Nn].data[r+8],n)}return new zi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=IE(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-di}createEmbeddedView(t,n,r){let o,h;"number"==typeof r?o=r:null!=r&&(o=r.index,h=r.injector);const m=ld(this._lContainer,t.ssrId),A=t.createEmbeddedViewImpl(n||{},h,m);return this.insertImpl(A,o,Qu(this._hostTNode,m)),A}createComponent(t,n,r,o,h){var m,A,D;const Z=t&&!function Ds(e){return"function"==typeof e}(t);let be;if(Z)be=n;else{const wn=n||{};be=wn.index,r=wn.injector,o=wn.projectableNodes,h=wn.environmentInjector||wn.ngModuleRef}const Ne=Z?t:new Ih(Ot(t)),Je=r||this.parentInjector;if(!h&&null==Ne.ngModule){const hn=(Z?Je:this.parentInjector).get(Zr,null);hn&&(h=hn)}const ft=Ot(null!==(m=Ne.componentType)&&void 0!==m?m:{}),Rt=ld(this._lContainer,null!==(A=null==ft?void 0:ft.id)&&void 0!==A?A:null),Gt=null!==(D=null==Rt?void 0:Rt.firstChild)&&void 0!==D?D:null,_n=Ne.create(Je,o,Gt,h);return this.insertImpl(_n.hostView,be,Qu(this._hostTNode,Rt)),_n}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){const o=t._lView;if(function ni(e){return Ei(e[pi])}(o)){const A=this.indexOf(t);if(-1!==A)this.detach(A);else{const D=o[pi],Z=new SE(D,D[oo],D[pi]);Z.detach(Z.indexOf(t))}}const h=this._adjustIndex(n),m=this._lContainer;return od(m,o,h,r),t.attachToViewContainerRef(),Cs(h_(m),h,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=IE(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=dh(this._lContainer,n);r&&(Yo(h_(this._lContainer),n),fh(r[Nn],r))}detach(t){const n=this._adjustIndex(t,-1),r=dh(this._lContainer,n);return r&&null!=Yo(h_(this._lContainer),n)?new ph(r):null}_adjustIndex(t,n=0){return null==t?this.length+n:t}};function IE(e){return e[8]}function h_(e){return e[8]||(e[8]=[])}function TE(e,t){let n;const r=t[e.index];return Ei(r)?n=r:(n=wy(r,t,null,e),t[e.index]=n,Vg(t,n)),DE(n,t,e,r),new SE(n,e,t)}let DE=PE,p_=()=>!1;function PE(e,t,n,r){if(e[Gi])return;let o;o=8&n.type?J(r):function $O(e,t){const n=e[yr],r=n.createComment(""),o=ke(t,e),h=n.parentNode(o);return Gu(n,h,r,n.nextSibling(o),!1),r}(t,n),e[Gi]=o}function KO(e,t,n){var r;if(e[Gi]&&e[po])return!0;const o=n[Wi],h=t.index-On;if(!o||function wl(e){if(Ml(e))return!0;let t=e.parent;for(;t;){if(Ml(e)||Pc(t))return!0;t=t.parent}return!1}(t)||xs(o,h))return!1;const A=xi(o,h),D=null===(r=o.data[ol])||void 0===r?void 0:r[h],[Z,be]=function bO(e,t){const n=[];for(const o of t)for(let h=0;h<(null!==(r=o[xl])&&void 0!==r?r:1);h++){var r;const m={data:o,firstChild:null};o[_a]>0&&(m.firstChild=e,e=Jg(o[_a],e)),n.push(m)}return[e,n]}(A,D);return e[Gi]=Z,e[po]=be,!0}function HO(e,t,n,r){p_(e,n,t)||PE(e,t,n,r)}class g_{constructor(t){(0,f.A)(this,"queryList",void 0),(0,f.A)(this,"matches",null),this.queryList=t}clone(){return new g_(this.queryList)}setDirty(){this.queryList.setDirty()}}class m_{constructor(t=[]){(0,f.A)(this,"queries",void 0),this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const r=null!==t.contentQueries?t.contentQueries[0]:n.length,o=[];for(let h=0;h<r;h++){const m=n.getByIndex(h);o.push(this.queries[m.indexInDeclarationView].clone())}return new m_(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)null!==A_(t,n).matches&&this.queries[n].setDirty()}}class ME{constructor(t,n,r=null){(0,f.A)(this,"flags",void 0),(0,f.A)(this,"read",void 0),(0,f.A)(this,"predicate",void 0),this.flags=n,this.read=r,this.predicate="string"==typeof t?function XO(e){return e.split(",").map(t=>t.trim())}(t):t}}class v_{constructor(t=[]){(0,f.A)(this,"queries",void 0),this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){const o=null!==n?n.length:0,h=this.getByIndex(r).embeddedTView(t,o);h&&(h.indexInDeclarationView=r,null!==n?n.push(h):n=[h])}return null!==n?new v_(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class __{constructor(t,n=-1){(0,f.A)(this,"metadata",void 0),(0,f.A)(this,"matches",null),(0,f.A)(this,"indexInDeclarationView",-1),(0,f.A)(this,"crossesNgTemplate",!1),(0,f.A)(this,"_declarationNodeIndex",void 0),(0,f.A)(this,"_appliesToNextNode",!0),this.metadata=t,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new __(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1&~this.metadata.flags){const n=this._declarationNodeIndex;let r=t.parent;for(;null!==r&&8&r.type&&r.index!==n;)r=r.parent;return n===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){const r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){const h=r[o];this.matchTNodeWithReadOption(t,n,GO(n,h)),this.matchTNodeWithReadOption(t,n,pu(n,t,h,!1,!1))}else r===gh?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,pu(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(null!==r){const o=this.metadata.read;if(null!==o)if(o===Ol||o===nm||o===gh&&4&n.type)this.addMatch(n.index,-2);else{const h=pu(n,t,o,!1,!1);null!==h&&this.addMatch(n.index,h)}else this.addMatch(n.index,r)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function GO(e,t){const n=e.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1];return null}function QO(e,t,n,r){return-1===n?function zO(e,t){return 11&e.type?nl(e,t):4&e.type?Qg(e,t):null}(t,e):-2===n?function YO(e,t,n){return n===Ol?nl(t,e):n===gh?Qg(t,e):n===nm?TE(t,e):void 0}(e,t,r):Ms(e,e[Nn],n,t)}function wE(e,t,n,r){const o=t[qt].queries[r];if(null===o.matches){const h=e.data,m=n.matches,A=[];for(let D=0;null!==m&&D<m.length;D+=2){const Z=m[D];A.push(Z<0?null:QO(t,h[Z],m[D+1],n.metadata.read))}o.matches=A}return o.matches}function y_(e,t,n,r){const o=e.queries.getByIndex(n),h=o.matches;if(null!==h){const m=wE(e,t,o,n);for(let A=0;A<h.length;A+=2){const D=h[A];if(D>0)r.push(m[A/2]);else{const Z=h[A+1],be=t[-D];for(let Ne=di;Ne<be.length;Ne++){const Je=be[Ne];Je[xe]===Je[pi]&&y_(Je[Nn],Je,Z,r)}if(null!==be[No]){const Ne=be[No];for(let Je=0;Je<Ne.length;Je++){const ft=Ne[Je];y_(ft[Nn],ft,Z,r)}}}}}return r}function RE(e,t,n){var r;const o=new bf(!(4&~n));return function np(e,t,n,r){const o=fa(t);o.push(n),e.firstCreatePass&&ou(e).push(r,o.length-1)}(e,t,o,o.destroy),(null!==(r=t[qt])&&void 0!==r?r:t[qt]=new m_).queries.push(new g_(o))-1}function LE(e,t,n){null===e.queries&&(e.queries=new v_),e.queries.track(new __(t,n))}function A_(e,t){return e.queries.getByIndex(t)}function kE(e,t){const n=e[Nn],r=A_(n,t);return r.crossesNgTemplate?y_(n,e,t,[]):wE(n,e,r,t)}class Zu{}class zE{}function aP(e,t){return new b_(e,null!=t?t:null,[])}class b_ extends Zu{constructor(t,n,r,o=!0){super(),(0,f.A)(this,"ngModuleType",void 0),(0,f.A)(this,"_parent",void 0),(0,f.A)(this,"_bootstrapComponents",[]),(0,f.A)(this,"_r3Injector",void 0),(0,f.A)(this,"instance",void 0),(0,f.A)(this,"destroyCbs",[]),(0,f.A)(this,"componentFactoryResolver",new CE(this)),this.ngModuleType=t,this._parent=n;const h=Ue(t);this._bootstrapComponents=zs(h.bootstrap),this._r3Injector=cf(t,n,[{provide:Zu,useValue:this},{provide:ud,useValue:this.componentFactoryResolver},...r],An(t),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class S_ extends zE{constructor(t){super(),(0,f.A)(this,"moduleType",void 0),this.moduleType=t}create(t){return new b_(this.moduleType,t,[])}}class QE extends Zu{constructor(t){super(),(0,f.A)(this,"injector",void 0),(0,f.A)(this,"componentFactoryResolver",new CE(this)),(0,f.A)(this,"instance",null);const n=new co([...t.providers,{provide:Zu,useValue:this},{provide:ud,useValue:this.componentFactoryResolver}],t.parent||Hi(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function I_(e,t,n=null){return new QE({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let uP=(()=>{var e;class t{constructor(r){(0,f.A)(this,"_injector",void 0),(0,f.A)(this,"cachedInjectors",new Map),this._injector=r}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){const o=Oe(0,r.type),h=o.length>0?I_([o],this._injector,"Standalone[".concat(r.type.name,"]")):null;this.cachedInjectors.set(r,h)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(const r of this.cachedInjectors.values())null!==r&&r.destroy()}finally{this.cachedInjectors.clear()}}}return(0,f.A)(t,"\u0275prov",nn({token:e=t,providedIn:"environment",factory:()=>new e(ci(Zr))})),t})();function YE(e){return At(()=>{var t;const n=qE(e),r=(0,s.A)((0,s.A)({},n),{},{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Cu.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:n.standalone?h=>h.get(uP).getOrCreateStandaloneInjector(r):null,getExternalStyles:null,signals:null!==(t=e.signals)&&void 0!==t&&t,data:e.data||{},encapsulation:e.encapsulation||to.Emulated,styles:e.styles||Vr,_:null,schemas:e.schemas||null,tView:null,id:""});n.standalone&&ao("NgStandalone"),eA(r);const o=e.dependencies;return r.directiveDefs=im(o,!1),r.pipeDefs=im(o,!0),r.id=function hP(e){let t=0;const r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,"function"==typeof e.consts?"":e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(const h of r.join("|"))t=Math.imul(31,t)+h.charCodeAt(0)|0;return t+=2147483648,"c"+t}(r),r})}function cP(e){return Ot(e)||ut(e)}function dP(e){return null!==e}function T_(e){return At(()=>({type:e.type,bootstrap:e.bootstrap||Vr,declarations:e.declarations||Vr,imports:e.imports||Vr,exports:e.exports||Vr,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function XE(e,t){if(null==e)return ro;const n={};for(const o in e)if(e.hasOwnProperty(o)){const h=e[o];let m,A,D=Wl.None;var r;Array.isArray(h)?(D=h[0],m=h[1],A=null!==(r=h[2])&&void 0!==r?r:m):(m=h,A=h),t?(n[m]=D!==Wl.None?[o,D]:o,t[m]=A):n[m]=o}return n}function ZE(e){return At(()=>{const t=qE(e);return eA(t),t})}function JE(e){var t;return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:null===(t=e.standalone)||void 0===t||t,onDestroy:e.type.prototype.ngOnDestroy||null}}function qE(e){var t;const n={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:e.inputs||ro,exportAs:e.exportAs||null,standalone:null===(t=e.standalone)||void 0===t||t,signals:!0===e.signals,selectors:e.selectors||Vr,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:XE(e.inputs,n),outputs:XE(e.outputs),debugInfo:null}}function eA(e){var t;null===(t=e.features)||void 0===t||t.forEach(n=>n(e))}function im(e,t){if(!e)return null;const n=t?Pe:cP;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(dP)}function D_(e){let t=function tA(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let o;if(Os(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new ct(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);const m=e;m.inputs=om(e.inputs),m.inputTransforms=om(e.inputTransforms),m.declaredInputs=om(e.declaredInputs),m.outputs=om(e.outputs);const A=o.hostBindings;A&&_P(e,A);const D=o.viewQuery,Z=o.contentQueries;if(D&&mP(e,D),Z&&vP(e,Z),pP(e,o),sn(e.outputs,o.outputs),Os(o)&&o.data.animation){const be=e.data;be.animation=(be.animation||[]).concat(o.data.animation)}}const h=o.features;if(h)for(let m=0;m<h.length;m++){const A=h[m];A&&A.ngInherit&&A(e),A===D_&&(n=!1)}}t=Object.getPrototypeOf(t)}!function gP(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Ya(o.hostAttrs,n=Ya(n,o.hostAttrs))}}(r)}function pP(e,t){for(const r in t.inputs){if(!t.inputs.hasOwnProperty(r)||e.inputs.hasOwnProperty(r))continue;const o=t.inputs[r];if(void 0!==o&&(e.inputs[r]=o,e.declaredInputs[r]=t.declaredInputs[r],null!==t.inputTransforms)){var n;const h=Array.isArray(o)?o[0]:o;if(!t.inputTransforms.hasOwnProperty(h))continue;null!==(n=e.inputTransforms)&&void 0!==n||(e.inputTransforms={}),e.inputTransforms[h]=t.inputTransforms[h]}}}function om(e){return e===ro?{}:e===Vr?[]:e}function mP(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function vP(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,h)=>{t(r,o,h),n(r,o,h)}:t}function _P(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}function sA(e){const t=e.inputConfig,n={};for(const r in t)if(t.hasOwnProperty(r)){const o=t[r];Array.isArray(o)&&o[3]&&(n[r]=o[3])}e.inputTransforms=n}function sm(e){return!!P_(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function P_(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Ba(e,t,n){return e[t]=n}function Co(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Ju(e,t,n,r){const o=Co(e,t,n);return Co(e,t+1,r)||o}function am(e,t,n,r,o){const h=Ju(e,t,n,r);return Co(e,t+2,o)||h}function dd(e){return!(32&~e.flags)}function Oh(e,t,n,r,o,h,m,A,D,Z){const be=n+On,Ne=t.firstCreatePass?function DP(e,t,n,r,o,h,m,A,D){const Z=t.consts,be=Yu(t,e,4,m||null,A||null);kv(t,n,be,mr(Z,D)),za(t,be);const Ne=be.tView=Lv(2,be,r,o,h,t.directiveRegistry,t.pipeRegistry,null,t.schemas,Z,null);return null!==t.queries&&(t.queries.template(t,be),Ne.queries=t.queries.embeddedTView(be)),be}(be,t,e,r,o,h,m,A,D):t.data[be];Vs(Ne,!1);const Je=aA(t,e,Ne,n);bl()&&Wg(t,e,Je,Ne),$o(Je,e);const ft=wy(Je,e,Je,Ne);return e[be]=ft,Vg(e,ft),function OE(e,t,n){return p_(e,t,n)}(ft,Ne,e),Va(Ne)&&Rv(t,e,Ne),null!=D&&Nv(e,Ne,Z),Ne}function M_(e,t,n,r,o,h,m,A){const D=fn(),Z=Mr();return Oh(D,Z,e,t,n,r,o,mr(Z.consts,h),m,A),M_}let aA=lA;function lA(e,t,n,r){return Hs(!0),t[yr].createComment("")}function OP(e,t,n,r){var o,h;const m=t[Wi],A=!m||Es()||dd(n)||xs(m,r);if(Hs(A),A)return lA(0,t);const D=null!==(o=null===(h=m.data[Pu])||void 0===h?void 0:h[r])&&void 0!==o?o:null;null!==D&&null!==n.tView&&null===n.tView.ssrId&&(n.tView.ssrId=D);const Z=Ah(m,e,t,n);return $r(m,r,Z),Jg(Fa(m,r),Z)}let gA=(()=>{var e;class t{log(r){console.log(r)}warn(r){console.warn(r)}}return e=t,(0,f.A)(t,"\u0275fac",function(r){return new(r||e)}),(0,f.A)(t,"\u0275prov",nn({token:e,factory:e.\u0275fac,providedIn:"platform"})),t})();const k_="ng";function DM(e,t){!function EA(e,t){if(typeof COMPILED>"u"||!COMPILED){var n;const r=Pt;null!==(n=r[k_])&&void 0!==n||(r[k_]={}),r[k_][e]=t}}(e,t)}const AA=new Gn(""),CA=new Gn("");let F_,OM=(()=>{var e;class t{constructor(r,o,h){(0,f.A)(this,"_ngZone",void 0),(0,f.A)(this,"registry",void 0),(0,f.A)(this,"_isZoneStable",!0),(0,f.A)(this,"_callbacks",[]),(0,f.A)(this,"taskTrackingZone",null),this._ngZone=r,this.registry=o,F_||(function PM(e){F_=e}(h),h.addToWindow(o)),this._watchAngularEvents(),r.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Bi.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let r=this._callbacks.pop();clearTimeout(r.timeoutId),r.doneCb()}});else{let r=this.getPendingTasks();this._callbacks=this._callbacks.filter(o=>!o.updateCb||!o.updateCb(r)||(clearTimeout(o.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(r=>({source:r.source,creationLocation:r.creationLocation,data:r.data})):[]}addCallback(r,o,h){let m=-1;o&&o>0&&(m=setTimeout(()=>{this._callbacks=this._callbacks.filter(A=>A.timeoutId!==m),r()},o)),this._callbacks.push({doneCb:r,timeoutId:m,updateCb:h})}whenStable(r,o,h){if(h&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(r,o,h),this._runCallbacksIfReady()}registerApplication(r){this.registry.registerApplication(r,this)}unregisterApplication(r){this.registry.unregisterApplication(r)}findProviders(r,o,h){return[]}}return e=t,(0,f.A)(t,"\u0275fac",function(r){return new(r||e)(ci(Bi),ci(bA),ci(CA))}),(0,f.A)(t,"\u0275prov",nn({token:e,factory:e.\u0275fac})),t})(),bA=(()=>{var e;class t{constructor(){(0,f.A)(this,"_applications",new Map)}registerApplication(r,o){this._applications.set(r,o)}unregisterApplication(r){this._applications.delete(r)}unregisterAllApplications(){this._applications.clear()}getTestability(r){return this._applications.get(r)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(r,o=!0){var h,m;return null!==(h=null===(m=F_)||void 0===m?void 0:m.findTestabilityInTree(this,r,o))&&void 0!==h?h:null}}return e=t,(0,f.A)(t,"\u0275fac",function(r){return new(r||e)}),(0,f.A)(t,"\u0275prov",nn({token:e,factory:e.\u0275fac,providedIn:"platform"})),t})();function U_(e){return!!e&&"function"==typeof e.then}function SA(e){return!!e&&"function"==typeof e.subscribe}const B_=new Gn("");function MM(e){return C([{provide:B_,multi:!0,useValue:e}])}let IA=(()=>{var e;class t{constructor(){var r;(0,f.A)(this,"resolve",void 0),(0,f.A)(this,"reject",void 0),(0,f.A)(this,"initialized",!1),(0,f.A)(this,"done",!1),(0,f.A)(this,"donePromise",new Promise((o,h)=>{this.resolve=o,this.reject=h})),(0,f.A)(this,"appInits",null!==(r=Kn(B_,{optional:!0}))&&void 0!==r?r:[]),(0,f.A)(this,"injector",Kn(Ji))}runInitializers(){if(this.initialized)return;const r=[];for(const h of this.appInits){const m=ir(this.injector,h);if(U_(m))r.push(m);else if(SA(m)){const A=new Promise((D,Z)=>{m.subscribe({complete:D,error:Z})});r.push(A)}}const o=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{o()}).catch(h=>{this.reject(h)}),0===r.length&&o(),this.initialized=!0}}return e=t,(0,f.A)(t,"\u0275fac",function(r){return new(r||e)}),(0,f.A)(t,"\u0275prov",nn({token:e,factory:e.\u0275fac,providedIn:"root"})),t})(),j_=(()=>{class t{}return(0,f.A)(t,"\u0275prov",nn({token:t,providedIn:"root",factory:()=>new TA})),t})();class TA{constructor(){(0,f.A)(this,"queuedEffectCount",0),(0,f.A)(this,"queues",new Map)}schedule(t){this.enqueue(t)}remove(t){const r=this.queues.get(t.zone);r.has(t)&&(r.delete(t),this.queuedEffectCount--)}enqueue(t){const n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);const r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(const[t,n]of this.queues)null===t?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(const n of t)t.delete(n),this.queuedEffectCount--,n.run()}}const Mh=new Gn("");function OA(e,t){return Array.isArray(t)?t.reduce(OA,e):(0,s.A)((0,s.A)({},e),t)}let Qs=(()=>{var e;class t{get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}constructor(){(0,f.A)(this,"_runningTick",!1),(0,f.A)(this,"_destroyed",!1),(0,f.A)(this,"_destroyListeners",[]),(0,f.A)(this,"_views",[]),(0,f.A)(this,"internalErrorHandler",Kn(Vp)),(0,f.A)(this,"afterRenderManager",Kn(Qi)),(0,f.A)(this,"zonelessEnabled",Kn(tl)),(0,f.A)(this,"rootEffectScheduler",Kn(j_)),(0,f.A)(this,"dirtyFlags",0),(0,f.A)(this,"deferredDirtyFlags",0),(0,f.A)(this,"tracingSnapshot",null),(0,f.A)(this,"externalTestViews",new Set),(0,f.A)(this,"afterTick",new Ge.B),(0,f.A)(this,"componentTypes",[]),(0,f.A)(this,"components",[]),(0,f.A)(this,"isStable",Kn(qs).hasPendingTasks.pipe((0,Me.T)(r=>!r))),(0,f.A)(this,"_injector",Kn(Zr)),(0,f.A)(this,"_rendererFactory",null),(0,f.A)(this,"_tick",()=>{if(null!==this.tracingSnapshot){const o=this.tracingSnapshot;return this.tracingSnapshot=null,o.run(Gc.CHANGE_DETECTION,this._tick),void o.dispose()}if(this._runningTick)throw new ct(101,!1);const r=z(null);try{this._runningTick=!0,this.synchronize()}catch(o){this.internalErrorHandler(o)}finally{this._runningTick=!1,z(r),this.afterTick.next()}}),Kn(Lr,{optional:!0})}whenStable(){let r;return new Promise(o=>{r=this.isStable.subscribe({next:h=>{h&&o()}})}).finally(()=>{r.unsubscribe()})}get injector(){return this._injector}bootstrap(r,o){const h=r instanceof yE;if(!this._injector.get(IA).done)throw!h&&j(r),new ct(405,!1);let A;A=h?r:this._injector.get(ud).resolveComponentFactory(r),this.componentTypes.push(A.componentType);const D=function wM(e){return e.isBoundToModule}(A)?void 0:this._injector.get(Zu),be=A.create(Ji.NULL,[],o||A.selector,D),Ne=be.location.nativeElement,Je=be.injector.get(AA,null);return null==Je||Je.registerApplication(Ne),be.onDestroy(()=>{this.detachView(be.hostView),dm(this.components,be),null==Je||Je.unregisterApplication(Ne)}),this._loadComponent(be),be}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}synchronize(){null===this._rendererFactory&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(c_,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;0!==this.dirtyFlags&&r++<10;)this.synchronizeOnce()}synchronizeOnce(){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,16&this.dirtyFlags&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),7&this.dirtyFlags){const A=!!(1&this.dirtyFlags);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:D,notifyErrorHandler:Z}of this.allViews)xM(D,Z,A,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),23&this.dirtyFlags)return}else{var r,o,h,m;null===(r=this._rendererFactory)||void 0===r||null===(o=r.begin)||void 0===o||o.call(r),null===(h=this._rendererFactory)||void 0===h||null===(m=h.end)||void 0===m||m.call(h)}8&this.dirtyFlags&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){this.allViews.some(({_lView:r})=>Bs(r))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(r){const o=r;this._views.push(o),o.attachToAppRef(this)}detachView(r){const o=r;dm(this._views,o),o.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r),this._injector.get(Mh,[]).forEach(h=>h(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>dm(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new ct(406,!1);const r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}}return e=t,(0,f.A)(t,"\u0275fac",function(r){return new(r||e)}),(0,f.A)(t,"\u0275prov",nn({token:e,factory:e.\u0275fac,providedIn:"root"})),t})();function dm(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function xM(e,t,n,r){(n||Bs(e))&&zg(e,t,n&&!r?0:1)}function H_(e,t,n,r){const o=fn();return Co(o,$s(),t)&&(Mr(),Ua(Si(),o,e,t,n,r)),H_}function gd(e,t,n,r){return Co(e,$s(),n)?t+Lt(n)+r:Hr}function _d(e,t,n,r,o,h,m,A,D,Z){const Ne=function oa(e,t,n,r,o,h){const m=Ju(e,t,n,r);return Ju(e,t+2,o,h)||m}(e,ha(),n,o,m,D);return Ks(4),Ne?t+Lt(n)+r+Lt(o)+h+Lt(m)+A+Lt(D)+Z:Hr}function fm(e,t){return e<<17|t<<2}function Zl(e){return e>>17&32767}function W_(e){return 2|e}function ec(e){return(131068&e)>>2}function G_(e,t){return-131069&e|t<<2}function z_(e){return 1|e}function KA(e,t,n,r){const o=e[n+1],h=null===t;let m=r?Zl(o):ec(o),A=!1;for(;0!==m&&(!1===A||h);){const Z=e[m+1];_w(e[m],t)&&(A=!0,e[m+1]=r?z_(Z):W_(Z)),m=r?Zl(Z):ec(Z)}A&&(e[n+1]=r?W_(o):z_(o))}function _w(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&uo(e,t)>=0}const Wo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function HA(e){return e.substring(Wo.key,Wo.keyEnd)}function yw(e){return e.substring(Wo.value,Wo.valueEnd)}function WA(e,t){const n=Wo.textEnd;return n===t?-1:(t=Wo.keyEnd=function Cw(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,Wo.key=t,n),bd(e,t,n))}function GA(e,t){const n=Wo.textEnd;let r=Wo.key=bd(e,t,n);return n===r?-1:(r=Wo.keyEnd=function bw(e,t,n){let r;for(;t<n&&(45===(r=e.charCodeAt(t))||95===r||(-33&r)>=65&&(-33&r)<=90||r>=48&&r<=57);)t++;return t}(e,r,n),r=QA(e,r,n),r=Wo.value=bd(e,r,n),r=Wo.valueEnd=function Sw(e,t,n){let r=-1,o=-1,h=-1,m=t,A=m;for(;m<n;){const D=e.charCodeAt(m++);if(59===D)return A;34===D||39===D?A=m=YA(e,D,m,n):t===m-4&&85===h&&82===o&&76===r&&40===D?A=m=YA(e,41,m,n):D>32&&(A=m),h=o,o=r,r=-33&D}return A}(e,r,n),QA(e,r,n))}function zA(e){Wo.key=0,Wo.keyEnd=0,Wo.value=0,Wo.valueEnd=0,Wo.textEnd=e.length}function bd(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function QA(e,t,n,r){return(t=bd(e,t,n))<n&&t++,t}function YA(e,t,n,r){let o=-1,h=n;for(;h<r;){const m=e.charCodeAt(h++);if(m==t&&92!==o)return h;o=92==m&&92===o?0:m}throw new Error}function Q_(e,t,n){const r=fn();return Co(r,$s(),t)&&Ls(Mr(),Si(),r,e,t,r[yr],n,!1),Q_}function Y_(e,t,n,r,o){const m=o?"class":"style";jv(e,n,t.inputs[m],m,r)}function X_(e,t,n){return ba(e,t,n,!1),X_}function Z_(e,t){return ba(e,t,null,!0),Z_}function Ca(e){Sa(qA,Iw,e,!1)}function Iw(e,t){for(let n=function Aw(e){return zA(e),GA(e,bd(e,0,Wo.textEnd))}(t);n>=0;n=GA(t,n))qA(e,HA(t),yw(t))}function XA(e){Sa(ww,ja,e,!0)}function ja(e,t){for(let n=function Ew(e){return zA(e),WA(e,bd(e,0,Wo.textEnd))}(t);n>=0;n=WA(t,n))Gr(e,HA(t),!0)}function ba(e,t,n,r){const o=fn(),h=Mr(),m=Ks(2);h.firstUpdatePass&&JA(h,e,m,r),t!==Hr&&Co(o,m,t)&&eC(h,h.data[Lo()],o,o[yr],e,o[m+1]=function Nw(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=An(cl(e)))),e}(t,n),r,m)}function Sa(e,t,n,r){const o=Mr(),h=Ks(2);o.firstUpdatePass&&JA(o,null,h,r);const m=fn();if(n!==Hr&&Co(m,h,n)){const A=o.data[Lo()];if(nC(A,r)&&!ZA(o,h)){let D=r?A.classesWithoutHost:A.stylesWithoutHost;null!==D&&(n=Qn(D,n||"")),Y_(o,A,m,n,r)}else!function Rw(e,t,n,r,o,h,m,A){o===Hr&&(o=Vr);let D=0,Z=0,be=0<o.length?o[0]:null,Ne=0<h.length?h[0]:null;for(;null!==be||null!==Ne;){const Je=D<o.length?o[D+1]:void 0,ft=Z<h.length?h[Z+1]:void 0;let Gt,Rt=null;be===Ne?(D+=2,Z+=2,Je!==ft&&(Rt=Ne,Gt=ft)):null===Ne||null!==be&&be<Ne?(D+=2,Rt=be):(Z+=2,Rt=Ne,Gt=ft),null!==Rt&&eC(e,t,n,r,Rt,Gt,m,A),be=D<o.length?o[D]:null,Ne=Z<h.length?h[Z]:null}}(o,A,m,m[yr],m[h+1],m[h+1]=function Mw(e,t,n){if(null==n||""===n)return Vr;const r=[],o=cl(n);if(Array.isArray(o))for(let h=0;h<o.length;h++)e(r,o[h],!0);else if("object"==typeof o)for(const h in o)o.hasOwnProperty(h)&&e(r,h,o[h]);else"string"==typeof o&&t(r,o);return r}(e,t,n),r,h)}}function ZA(e,t){return t>=e.expandoStartIndex}function JA(e,t,n,r){const o=e.data;if(null===o[n+1]){const h=o[Lo()],m=ZA(e,n);nC(h,r)&&null===t&&!m&&(t=!1),t=function Tw(e,t,n,r){const o=function Hd(e){const t=Rr.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let h=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=Rh(n=J_(null,e,t,n,r),t.attrs,r),h=null);else{const m=t.directiveStylingLast;if(-1===m||e[m]!==o)if(n=J_(o,e,t,n,r),null===h){let D=function Dw(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==ec(r))return e[Zl(r)]}(e,t,r);void 0!==D&&Array.isArray(D)&&(D=J_(null,e,t,D[1],r),D=Rh(D,t.attrs,r),function Ow(e,t,n,r){e[Zl(n?t.classBindings:t.styleBindings)]=r}(e,t,r,D))}else h=function Pw(e,t,n){let r;const o=t.directiveEnd;for(let h=1+t.directiveStylingLast;h<o;h++)r=Rh(r,e[h].hostAttrs,n);return Rh(r,t.attrs,n)}(e,t,r)}return void 0!==h&&(r?t.residualClasses=h:t.residualStyles=h),n}(o,h,t,r),function mw(e,t,n,r,o,h){let m=h?t.classBindings:t.styleBindings,A=Zl(m),D=ec(m);e[r]=n;let be,Z=!1;if(Array.isArray(n)?(be=n[1],(null===be||uo(n,be)>0)&&(Z=!0)):be=n,o)if(0!==D){const Je=Zl(e[A+1]);e[r+1]=fm(Je,A),0!==Je&&(e[Je+1]=G_(e[Je+1],r)),e[A+1]=function pw(e,t){return 131071&e|t<<17}(e[A+1],r)}else e[r+1]=fm(A,0),0!==A&&(e[A+1]=G_(e[A+1],r)),A=r;else e[r+1]=fm(D,0),0===A?A=r:e[D+1]=G_(e[D+1],r),D=r;Z&&(e[r+1]=W_(e[r+1])),KA(e,be,r,!0),KA(e,be,r,!1),function vw(e,t,n,r,o){const h=o?e.residualClasses:e.residualStyles;null!=h&&"string"==typeof t&&uo(h,t)>=0&&(n[r+1]=z_(n[r+1]))}(t,be,e,r,h),m=fm(A,D),h?t.classBindings=m:t.styleBindings=m}(o,h,t,n,m,r)}}function J_(e,t,n,r,o){let h=null;const m=n.directiveEnd;let A=n.directiveStylingLast;for(-1===A?A=n.directiveStart:A++;A<m&&(h=t[A],r=Rh(r,h.hostAttrs,o),h!==e);)A++;return null!==e&&(n.directiveStylingLast=A),r}function Rh(e,t,n){const r=n?1:2;let o=-1;if(null!==t)for(let h=0;h<t.length;h++){const m=t[h];"number"==typeof m?o=m:o===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Gr(e,m,!!n||t[++h]))}return void 0===e?null:e}function qA(e,t,n){Gr(e,t,cl(n))}function ww(e,t,n){const r=String(t);""!==r&&!r.includes(" ")&&Gr(e,r,n)}function eC(e,t,n,r,o,h,m,A){if(!(3&t.type))return;const D=e.data,Z=D[A+1],be=function gw(e){return!(1&~e)}(Z)?tC(D,t,n,o,ec(Z),m):void 0;hm(be)||(hm(h)||function hw(e){return!(2&~e)}(Z)&&(h=tC(D,null,n,o,A,m)),function mD(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let h=-1===r.indexOf("-")?void 0:Hg.DashCase;null==o?e.removeStyle(n,r,h):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),h|=Hg.Important),e.setStyle(n,r,o,h))}}(r,m,fe(Lo(),n),o,h))}function tC(e,t,n,r,o,h){const m=null===t;let A;for(;o>0;){const D=e[o],Z=Array.isArray(D),be=Z?D[1]:D,Ne=null===be;let Je=n[o+1];Je===Hr&&(Je=Ne?Vr:void 0);let ft=Ne?Fi(Je,r):be===r?Je:void 0;if(Z&&!hm(ft)&&(ft=Fi(D,r)),hm(ft)&&(A=ft,m))return A;const Rt=e[o+1];o=m?Zl(Rt):ec(Rt)}if(null!==t){let D=h?t.residualClasses:t.residualStyles;null!=D&&(A=Fi(D,r))}return A}function hm(e){return void 0!==e}function nC(e,t){return!!(e.flags&(t?8:16))}function rC(e,t,n){Sa(Gr,ja,gd(fn(),e,t,n),!0)}function iC(e,t,n,r,o,h,m){Sa(Gr,ja,function vd(e,t,n,r,o,h,m,A){const Z=am(e,ha(),n,o,m);return Ks(3),Z?t+Lt(n)+r+Lt(o)+h+Lt(m)+A:Hr}(fn(),e,t,n,r,o,h,m),!0)}function oC(e,t,n,r,o,h,m,A,D){Sa(Gr,ja,_d(fn(),e,t,n,r,o,h,m,A,D),!0)}class Vw{destroy(t){}updateValue(t,n){}swap(t,n){const r=Math.min(t,n),o=Math.max(t,n),h=this.detach(o);if(o-r>1){const m=this.detach(r);this.attach(r,h),this.attach(o,m)}else this.attach(r,h)}move(t,n){this.attach(n,this.detach(t))}}function q_(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function e0(e,t,n,r){return!(void 0===t||!t.has(r)||(e.attach(n,t.get(r)),t.delete(r),0))}function sC(e,t,n,r,o){if(e0(e,t,r,n(r,o)))e.updateValue(r,o);else{const h=e.create(r,o);e.attach(r,h)}}function aC(e,t,n,r){const o=new Set;for(let h=t;h<=n;h++)o.add(r(h,e.at(h)));return o}class lC{constructor(){(0,f.A)(this,"kvMap",new Map),(0,f.A)(this,"_vMap",void 0)}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;const n=this.kvMap.get(t);return void 0!==this._vMap&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);void 0===this._vMap&&(this._vMap=new Map);const o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),void 0!==this._vMap){const o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}}function uC(e,t){ao("NgControlFlow");const n=fn(),r=$s(),o=n[r]!==Hr?n[r]:-1,h=-1!==o?pm(n,On+o):void 0;if(Co(n,r,e)){const A=z(null);try{if(void 0!==h&&Yv(h,0),-1!==e){const D=On+e,Z=pm(n,D),be=t0(n[Nn],D),Ne=ld(Z,be.tView.ssrId);od(Z,id(n,be,t,{dehydratedView:Ne}),0,Qu(be,Ne))}}finally{z(A)}}else if(void 0!==h){const A=Ky(h,0);void 0!==A&&(A[Br]=t)}}class Kw{constructor(t,n,r){(0,f.A)(this,"lContainer",void 0),(0,f.A)(this,"$implicit",void 0),(0,f.A)(this,"$index",void 0),this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-di}}function cC(e){return e}function dC(e,t){return t}class Hw{constructor(t,n,r){(0,f.A)(this,"hasEmptyBlock",void 0),(0,f.A)(this,"trackByFn",void 0),(0,f.A)(this,"liveCollection",void 0),this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}}function fC(e,t,n,r,o,h,m,A,D,Z,be,Ne,Je){ao("NgControlFlow");const ft=fn(),Rt=Mr(),Gt=void 0!==D,_n=fn(),wn=A?m.bind(_n[X][Br]):m,hn=new Hw(Gt,wn);_n[On+e]=hn,Oh(ft,Rt,e+1,t,n,r,o,mr(Rt.consts,h)),Gt&&Oh(ft,Rt,e+2,D,Z,be,Ne,mr(Rt.consts,Je))}class Ww extends Vw{constructor(t,n,r){super(),(0,f.A)(this,"lContainer",void 0),(0,f.A)(this,"hostLView",void 0),(0,f.A)(this,"templateTNode",void 0),(0,f.A)(this,"operationsCounter",void 0),(0,f.A)(this,"needsIndexUpdate",!1),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-di}at(t){return this.getLView(t)[Br].$implicit}attach(t,n){const r=n[Wi];this.needsIndexUpdate||(this.needsIndexUpdate=t!==this.length),od(this.lContainer,n,t,Qu(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||(this.needsIndexUpdate=t!==this.length-1),function Gw(e,t){return dh(e,t)}(this.lContainer,t)}create(t,n){var r;const o=ld(this.lContainer,this.templateTNode.tView.ssrId),h=id(this.hostLView,this.templateTNode,new Kw(this.lContainer,n,t),{dehydratedView:o});return null===(r=this.operationsCounter)||void 0===r||r.recordCreate(),h}destroy(t){var n;fh(t[Nn],t),null===(n=this.operationsCounter)||void 0===n||n.recordDestroy()}updateValue(t,n){this.getLView(t)[Br].$implicit=n}reset(){var t;this.needsIndexUpdate=!1,null===(t=this.operationsCounter)||void 0===t||t.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[Br].$index=t}getLView(t){return function zw(e,t){return Ky(e,t)}(this.lContainer,t)}}function hC(e){const t=z(null),n=Lo();try{const o=fn(),h=o[Nn],m=o[n],A=n+1,D=pm(o,A);if(void 0===m.liveCollection){const be=t0(h,A);m.liveCollection=new Ww(D,o,be)}else m.liveCollection.reset();const Z=m.liveCollection;if(function $w(e,t,n){var r;let o,h,m=0,A=e.length-1;if(Array.isArray(t)){let Z=t.length-1;for(;m<=A&&m<=Z;){const be=e.at(m),Ne=t[m],Je=q_(m,be,m,Ne,n);if(0!==Je){Je<0&&e.updateValue(m,Ne),m++;continue}const ft=e.at(A),Rt=t[Z],Gt=q_(A,ft,Z,Rt,n);if(0!==Gt){Gt<0&&e.updateValue(A,Rt),A--,Z--;continue}const _n=n(m,be),wn=n(A,ft),hn=n(m,Ne);if(Object.is(hn,wn)){const cr=n(Z,Rt);Object.is(cr,_n)?(e.swap(m,A),e.updateValue(A,Rt),Z--,A--):e.move(A,m),e.updateValue(m,Ne),m++}else if(null!=o||(o=new lC),null!=h||(h=aC(e,m,A,n)),e0(e,o,m,hn))e.updateValue(m,Ne),m++,A++;else if(h.has(hn))o.set(_n,e.detach(m)),A--;else{const cr=e.create(m,t[m]);e.attach(m,cr),m++,A++}}for(;m<=Z;)sC(e,o,n,m,t[m]),m++}else if(null!=t){const Z=t[Symbol.iterator]();let be=Z.next();for(;!be.done&&m<=A;){const Ne=e.at(m),Je=be.value,ft=q_(m,Ne,m,Je,n);if(0!==ft)ft<0&&e.updateValue(m,Je),m++,be=Z.next();else{null!=o||(o=new lC),null!=h||(h=aC(e,m,A,n));const Rt=n(m,Je);if(e0(e,o,m,Rt))e.updateValue(m,Je),m++,A++,be=Z.next();else if(h.has(Rt)){const Gt=n(m,Ne);o.set(Gt,e.detach(m)),A--}else e.attach(m,e.create(m,Je)),m++,A++,be=Z.next()}}for(;!be.done;)sC(e,o,n,e.length,be.value),be=Z.next()}for(;m<=A;)e.destroy(e.detach(A--));null===(r=o)||void 0===r||r.forEach(Z=>{e.destroy(Z)})}(Z,e,m.trackByFn),Z.updateIndexes(),m.hasEmptyBlock){const be=$s(),Ne=0===Z.length;if(Co(o,be,Ne)){const Je=n+2,ft=pm(o,Je);if(Ne){const Rt=t0(h,Je),Gt=ld(ft,Rt.tView.ssrId);od(ft,id(o,Rt,void 0,{dehydratedView:Gt}),0,Qu(Rt,Gt))}else Yv(ft,0)}}}finally{z(t)}}function pm(e,t){return e[t]}function t0(e,t){return Wt(e,t)}function gm(e,t,n,r){const o=fn(),h=Mr(),m=On+e,A=o[yr],D=h.firstCreatePass?function Qw(e,t,n,r,o,h){const m=t.consts,D=Yu(t,e,2,r,mr(m,o));return kv(t,n,D,mr(m,h)),null!==D.attrs&&tm(D,D.attrs,!1),null!==D.mergedAttrs&&tm(D,D.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,D),D}(m,h,o,t,n,r):h.data[m],Z=pC(h,o,D,A,t,e);o[m]=Z;const be=Va(D);return Vs(D,!0),Sy(A,Z,D),!dd(D)&&bl()&&Wg(h,o,Z,D),0===function Km(){return Rr.lFrame.elementDepthCount}()&&$o(Z,o),function rp(){Rr.lFrame.elementDepthCount++}(),be&&(Rv(h,o,D),Ea(h,D,o)),null!==r&&Nv(o,D),gm}function mm(){let e=Kr();$d()?Wa():(e=e.parent,Vs(e,!1));const t=e;(function Bd(e){return Rr.skipHydrationRootTNode===e})(t)&&function lc(){Rr.skipHydrationRootTNode=null}(),function Hm(){Rr.lFrame.elementDepthCount--}();const n=Mr();return n.firstCreatePass&&(za(n,e),ca(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function vp(e){return!!(8&e.flags)}(t)&&Y_(n,t,fn(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Xm(e){return!!(16&e.flags)}(t)&&Y_(n,t,fn(),t.stylesWithoutHost,!1),mm}function n0(e,t,n,r){return gm(e,t,n,r),mm(),n0}let pC=(e,t,n,r,o,h)=>(Hs(!0),jg(r,o,fc()));function Yw(e,t,n,r,o,h){const m=t[Wi],A=!m||Es()||dd(n)||xs(m,h);if(Hs(A),A)return jg(r,o,fc());const D=Ah(m,e,t,n);return ka(m,h)&&$r(m,h,D.nextSibling),m&&(Pc(n)||Sf(D))&&Zo(n)&&(function Wm(e){Rr.skipHydrationRootTNode=e}(n),by(D)),D}function vm(e,t,n){const r=fn(),o=Mr(),h=e+On,m=o.firstCreatePass?function Zw(e,t,n,r,o){const h=t.consts,m=mr(h,r),A=Yu(t,e,8,"ng-container",m);return null!==m&&tm(A,m,!0),kv(t,n,A,mr(h,o)),null!==t.queries&&t.queries.elementStart(t,A),A}(h,o,r,t,n):o.data[h];Vs(m,!0);const A=gC(o,r,m,e);return r[h]=A,bl()&&Wg(o,r,A,m),$o(A,r),Va(m)&&(Rv(o,r,m),Ea(o,m,r)),null!=n&&Nv(r,m),vm}function _m(){let e=Kr();const t=Mr();return $d()?Wa():(e=e.parent,Vs(e,!1)),t.firstCreatePass&&(za(t,e),ca(e)&&t.queries.elementEnd(e)),_m}function r0(e,t,n){return vm(e,t,n),_m(),r0}let gC=(e,t,n,r)=>(Hs(!0),wv(t[yr],""));function Jw(e,t,n,r){let o;const h=t[Wi],m=!h||Es()||xs(h,r)||dd(n);if(Hs(m),m)return wv(t[yr],"");const A=Ah(h,e,t,n),D=function Gs(e,t){var n,r,o;const h=e.data;let m=null!==(n=null===(r=h[Nl])||void 0===r?void 0:r[t])&&void 0!==n?n:null;return null===m&&null!==(o=h[ol])&&void 0!==o&&o[t]&&(m=Fa(e,t)),m}(h,r);return $r(h,r,A),o=Jg(D,A),o}function mC(){return fn()}const tc=void 0;var tR=["en",[["a","p"],["AM","PM"],tc],[["AM","PM"],tc,tc],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],tc,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],tc,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",tc,"{1} 'at' {0}",tc],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function eR(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let Sd={};function o0(e){const t=function nR(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=EC(t);if(n)return n;const r=t.split("-")[0];if(n=EC(r),n)return n;if("en"===r)return tR;throw new ct(701,!1)}function yC(e){return o0(e)[Id.PluralCase]}function EC(e){return e in Sd||(Sd[e]=Pt.ng&&Pt.ng.common&&Pt.ng.common.locales&&Pt.ng.common.locales[e]),Sd[e]}var Id=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(Id||{});const ym="en-US";let AC=ym,BC=(e,t,n)=>{};function l0(e,t,n,r){const o=fn(),h=Mr(),m=Kr();return u0(h,o,o[yr],m,e,t,r),l0}function u0(e,t,n,r,o,h,m){const A=Va(r),Z=e.firstCreatePass&&ou(e),be=t[Br],Ne=fa(t);let Je=!0;if(3&r.type||m){const Gt=ke(r,t),_n=m?m(Gt):Gt,wn=Ne.length,hn=m?Cr=>m(J(Cr[r.index])):r.index;let cr=null;if(!m&&A&&(cr=function HR(e,t,n,r){const o=e.cleanup;if(null!=o)for(let h=0;h<o.length-1;h+=2){const m=o[h];if(m===n&&o[h+1]===r){const A=t[cs],D=o[h+2];return A.length>D?A[D]:null}"string"==typeof m&&(h+=2)}return null}(e,t,o,r.index)),null!==cr)(cr.__ngLastListenerFn__||cr).__ngNextListenerFn__=h,cr.__ngLastListenerFn__=h,Je=!1;else{h=KC(r,t,be,h),BC(Gt,o,h);const Cr=n.listen(_n,o,h);Ne.push(h,Cr),Z&&Z.push(o,hn,wn,wn+1)}}else h=KC(r,t,be,h);const ft=r.outputs;let Rt;if(Je&&null!==ft&&(Rt=ft[o])){const Gt=Rt.length;if(Gt)for(let _n=0;_n<Gt;_n+=2){const vi=t[Rt[_n]][Rt[_n+1]].subscribe(h),mo=Ne.length;Ne.push(h,vi),Z&&Z.push(o,r.index,mo,-(mo+1))}}}function $C(e,t,n,r){const o=z(null);try{return fs(6,t,n),!1!==n(r)}catch(h){return $g(e,h),!1}finally{fs(7,t,n),z(o)}}function KC(e,t,n,r){return function o(h){if(h===Function)return r;hh(e.componentOffset>-1?Qt(e.index,t):t,5);let A=$C(t,n,r,h),D=o.__ngNextListenerFn__;for(;D;)A=$C(t,n,D,h)&&A,D=D.__ngNextListenerFn__;return A}}function HC(e=1){return function zm(e){return(Rr.lFrame.contextLView=function Vo(e,t){for(;e>0;)t=t[qe],e--;return t}(e,Rr.lFrame.contextLView))[Br]}(e)}function WR(e,t){let n=null;const r=function PT(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(!(1&n))return t[n+1]}return null}(e);for(let o=0;o<t.length;o++){const h=t[o];if("*"!==h){if(null===r?py(e,h,!0):RT(r,h))return o}else n=o}return n}function WC(e){const t=fn()[X][oo];if(!t.projection){const r=t.projection=function ms(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}(e?e.length:1,null),o=r.slice();let h=t.child;for(;null!==h;){if(128!==h.type){const m=e?WR(h,e):0;null!==m&&(o[m]?o[m].projectionNext=h:r[m]=h,o[m]=h)}h=h.next}}}function GC(e,t=0,n,r,o,h){const m=fn(),A=Mr(),D=r?e+1:null;null!==D&&Oh(m,A,D,r,o,h,null,n);const Z=Yu(A,On+e,16,null,n||null);null===Z.projection&&(Z.projection=t),Wa();const Ne=!m[Wi]||Es();null===m[X][oo].projection[Z.projection]&&null!==D?function GR(e,t,n){const r=On+n,o=t.data[r],h=e[r],m=ld(h,o.tView.ssrId);od(h,id(e,o,void 0,{dehydratedView:m}),0,Qu(o,m))}(m,A,D):Ne&&32&~Z.flags&&function pD(e,t,n){$y(t[yr],0,t,n,Wv(e,n,t),Fy(n.parent||t[oo],n,t))}(A,m,Z)}function nb(e,t,n,r){!function xE(e,t,n,r){const o=Mr();if(o.firstCreatePass){const h=Kr();LE(o,new ME(t,n,r),h.index),function ZO(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(o,e),!(2&~n)&&(o.staticContentQueries=!0)}return RE(o,fn(),n)}(e,t,n,r)}function rb(e,t,n){!function NE(e,t,n){const r=Mr();return r.firstCreatePass&&(LE(r,new ME(e,t,n),-1),!(2&~t)&&(r.staticViewQueries=!0)),RE(r,fn(),t)}(e,t,n)}function ib(e){const t=fn(),n=Mr(),r=dc();Cl(r+1);const o=A_(n,r);if(e.dirty&&function Wn(e){return!(4&~e[pr])}(t)===!(2&~o.metadata.flags)){if(null===o.matches)e.reset([]);else{const h=kE(t,r);e.reset(h,Ef),e.notifyOnChanges()}return!0}return!1}function ob(){return function E_(e,t){return e[qt].queries[t].queryList}(fn(),dc())}function sb(e){return gn(function op(){return Rr.lFrame.contextLView}(),On+e)}function mb(e,t=""){const n=fn(),r=Mr(),o=e+On,h=r.firstCreatePass?Yu(r,o,1,t,null):r.data[o],m=vb(r,n,h,t,e);n[o]=m,bl()&&Wg(r,n,m,h),Vs(h,!1)}let vb=(e,t,n,r,o)=>(Hs(!0),Mv(t[yr],r));function oN(e,t,n,r,o){const h=t[Wi],m=!h||Es()||dd(n)||xs(h,o);return Hs(m),m?Mv(t[yr],r):Ah(h,e,t,n)}function f0(e){return bm("",e,""),f0}function bm(e,t,n){const r=fn(),o=gd(r,e,t,n);return o!==Hr&&function fl(e,t,n){const r=fe(t,e);!function Ey(e,t,n){e.setValue(t,n)}(e[yr],r,n)}(r,Lo(),o),bm}function h0(e,t,n){Cf(t)&&(t=t());const r=fn();return Co(r,$s(),t)&&Ls(Mr(),Si(),r,e,t,r[yr],n,!1),h0}function Tb(e,t){const n=Cf(e);return n&&e.set(t),n}function p0(e,t){const n=fn(),r=Mr(),o=Kr();return u0(r,n,n[yr],o,e,t),p0}function g0(e,t,n,r,o){if(e=bt(e),Array.isArray(e))for(let h=0;h<e.length;h++)g0(e[h],t,n,r,o);else{const h=Mr(),m=fn(),A=Kr();let D=lr(e)?e:bt(e.provide);const Z=Uo(e),be=1048575&A.providerIndexes,Ne=A.directiveStart,Je=A.providerIndexes>>20;if(lr(e)||!e.multi){const ft=new Il(Z,o,nd),Rt=v0(D,t,o?be:be+Je,Ne);-1===Rt?(Ja(vc(A,m),h,D),m0(h,e,t.length),t.push(D),A.directiveStart++,A.directiveEnd++,o&&(A.providerIndexes+=1048576),n.push(ft),m.push(ft)):(n[Rt]=ft,m[Rt]=ft)}else{const ft=v0(D,t,be+Je,Ne),Rt=v0(D,t,be,be+Je),_n=Rt>=0&&n[Rt];if(o&&!_n||!o&&!(ft>=0&&n[ft])){Ja(vc(A,m),h,D);const wn=function hN(e,t,n,r,o){const h=new Il(e,n,nd);return h.multi=[],h.index=t,h.componentProviders=0,Pb(h,o,r&&!n),h}(o?fN:dN,n.length,o,r,Z);!o&&_n&&(n[Rt].providerFactory=wn),m0(h,e,t.length,0),t.push(D),A.directiveStart++,A.directiveEnd++,o&&(A.providerIndexes+=1048576),n.push(wn),m.push(wn)}else m0(h,e,ft>-1?ft:Rt,Pb(n[o?Rt:ft],Z,!o&&r));!o&&r&&_n&&n[Rt].componentProviders++}}}function m0(e,t,n,r){const o=lr(t),h=function ur(e){return!!e.useClass}(t);if(o||h){const D=(h?bt(t.useClass):t).prototype.ngOnDestroy;if(D){const Z=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const be=Z.indexOf(n);-1===be?Z.push(n,[r,D]):Z[be+1].push(r,D)}else Z.push(n,D)}}}function Pb(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function v0(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function dN(e,t,n,r){return _0(this.multi,[])}function fN(e,t,n,r){const o=this.multi;let h;if(this.providerFactory){const m=this.providerFactory.componentProviders,A=Ms(n,n[Nn],this.providerFactory.index,r);h=A.slice(0,m),_0(o,h);for(let D=m;D<A.length;D++)h.push(A[D])}else h=[],_0(o,h);return h}function _0(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function Mb(e,t=[]){return n=>{n.providersResolver=(r,o)=>function cN(e,t,n){const r=Mr();if(r.firstCreatePass){const o=Os(e);g0(n,r.data,r.blueprint,o,!0),g0(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}function wb(e,t,n){const r=e.\u0275cmp;r.directiveDefs=im(t,!1),r.pipeDefs=im(n,!0)}function Nb(e,t,n){const r=qo()+e,o=fn();return o[r]===Hr?Ba(o,r,n?t.call(n):t()):function Dh(e,t){return e[t]}(o,r)}function xb(e,t,n,r){return Fb(fn(),qo(),e,t,n,r)}function Lb(e,t,n,r,o){return Ub(fn(),qo(),e,t,n,r,o)}function kb(e,t,n,r,o,h){return function Bb(e,t,n,r,o,h,m,A){const D=t+n;return am(e,D,o,h,m)?Ba(e,D+3,A?r.call(A,o,h,m):r(o,h,m)):Uh(e,D+3)}(fn(),qo(),e,t,n,r,o,h)}function Uh(e,t){const n=e[t];return n===Hr?void 0:n}function Fb(e,t,n,r,o,h){const m=t+n;return Co(e,m,o)?Ba(e,m+1,h?r.call(h,o):r(o)):Uh(e,m+1)}function Ub(e,t,n,r,o,h,m){const A=t+n;return Ju(e,A,o,h)?Ba(e,A+2,m?r.call(m,o,h):r(o,h)):Uh(e,A+2)}function $b(e,t){const n=Mr();let r;const o=e+On;var h;n.firstCreatePass?(r=function CN(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(null!==(h=n.destroyHooks)&&void 0!==h?h:n.destroyHooks=[]).push(o,r.onDestroy)):r=n.data[o];const m=r.factory||(r.factory=_o(r.type)),D=T(nd);try{const Z=Za(!1),be=m();return Za(Z),function d0(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,fn(),o,be),be}finally{T(D)}}function Kb(e,t,n){const r=e+On,o=fn(),h=gn(o,r);return Bh(o,r)?Fb(o,qo(),t,h.transform,n,h):h.transform(n)}function Hb(e,t,n,r){const o=e+On,h=fn(),m=gn(h,o);return Bh(h,o)?Ub(h,qo(),t,m.transform,n,r,m):m.transform(n,r)}function Bh(e,t){return e[Nn].data[t].pure}function Wb(e,t){return Qg(e,t)}class aS{constructor(t){(0,f.A)(this,"full",void 0),(0,f.A)(this,"major",void 0),(0,f.A)(this,"minor",void 0),(0,f.A)(this,"patch",void 0),this.full=t;const n=t.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}}class qN{constructor(t,n){(0,f.A)(this,"ngModuleFactory",void 0),(0,f.A)(this,"componentFactories",void 0),this.ngModuleFactory=t,this.componentFactories=n}}let e1=(()=>{var e;class t{compileModuleSync(r){return new S_(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){const o=this.compileModuleSync(r),m=zs(Ue(r).declarations).reduce((A,D)=>{const Z=Ot(D);return Z&&A.push(new Ih(Z)),A},[]);return new qN(o,m)}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r))}clearCache(){}clearCacheFor(r){}getModuleId(r){}}return e=t,(0,f.A)(t,"\u0275fac",function(r){return new(r||e)}),(0,f.A)(t,"\u0275prov",nn({token:e,factory:e.\u0275fac,providedIn:"root"})),t})(),r1=(()=>{var e;class t{constructor(){(0,f.A)(this,"zone",Kn(Bi)),(0,f.A)(this,"changeDetectionScheduler",Kn(Js)),(0,f.A)(this,"applicationRef",Kn(Qs)),(0,f.A)(this,"_onMicrotaskEmptySubscription",void 0)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){var r;null===(r=this._onMicrotaskEmptySubscription)||void 0===r||r.unsubscribe()}}return e=t,(0,f.A)(t,"\u0275fac",function(r){return new(r||e)}),(0,f.A)(t,"\u0275prov",nn({token:e,factory:e.\u0275fac,providedIn:"root"})),t})();function b0({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return null!=e||(e=()=>new Bi((0,s.A)((0,s.A)({},S0()),{},{scheduleInRootZone:n}))),[{provide:Bi,useFactory:e},{provide:yo,multi:!0,useFactory:()=>{const r=Kn(r1,{optional:!0});return()=>r.initialize()}},{provide:yo,multi:!0,useFactory:()=>{const r=Kn(o1);return()=>{r.initialize()}}},!0===t?{provide:hf,useValue:!0}:[],{provide:Ra,useValue:null!=n?n:df}]}function S0(e){var t,n;return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:null!==(t=null==e?void 0:e.eventCoalescing)&&void 0!==t&&t,shouldCoalesceRunChangeDetection:null!==(n=null==e?void 0:e.runCoalescing)&&void 0!==n&&n}}let o1=(()=>{var e;class t{constructor(){(0,f.A)(this,"subscription",new ge.yU),(0,f.A)(this,"initialized",!1),(0,f.A)(this,"zone",Kn(Bi)),(0,f.A)(this,"pendingTasks",Kn(qs))}initialize(){if(this.initialized)return;this.initialized=!0;let r=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(r=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Bi.assertNotInAngularZone(),queueMicrotask(()=>{null!==r&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(r),r=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Bi.assertInAngularZone(),null!=r||(r=this.pendingTasks.add())}))}ngOnDestroy(){this.subscription.unsubscribe()}}return e=t,(0,f.A)(t,"\u0275fac",function(r){return new(r||e)}),(0,f.A)(t,"\u0275prov",nn({token:e,factory:e.\u0275fac,providedIn:"root"})),t})(),Vh=(()=>{var e;class t{constructor(){var r,o,h;(0,f.A)(this,"appRef",Kn(Qs)),(0,f.A)(this,"taskService",Kn(qs)),(0,f.A)(this,"ngZone",Kn(Bi)),(0,f.A)(this,"zonelessEnabled",Kn(tl)),(0,f.A)(this,"tracing",Kn(Lr,{optional:!0})),(0,f.A)(this,"disableScheduling",null!==(r=Kn(hf,{optional:!0}))&&void 0!==r&&r),(0,f.A)(this,"zoneIsDefined",typeof Zone<"u"&&!!Zone.root.run),(0,f.A)(this,"schedulerTickApplyArgs",[{data:{__scheduler_tick__:!0}}]),(0,f.A)(this,"subscriptions",new ge.yU),(0,f.A)(this,"angularZoneId",this.zoneIsDefined?null===(o=this.ngZone._inner)||void 0===o?void 0:o.get(yu):null),(0,f.A)(this,"scheduleInRootZone",!this.zonelessEnabled&&this.zoneIsDefined&&null!==(h=Kn(Ra,{optional:!0}))&&void 0!==h&&h),(0,f.A)(this,"cancelScheduledCallback",null),(0,f.A)(this,"useMicrotaskScheduler",!1),(0,f.A)(this,"runningTick",!1),(0,f.A)(this,"pendingRenderTaskId",null),this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||(this.disableScheduling=!this.zonelessEnabled&&(this.ngZone instanceof Ic||!this.zoneIsDefined))}notify(r){var o,h;if(!this.zonelessEnabled&&5===r)return;let m=!1;switch(r){case 0:this.appRef.dirtyFlags|=2;break;case 3:case 2:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 8:this.appRef.deferredDirtyFlags|=8;break;case 6:case 14:this.appRef.dirtyFlags|=2,m=!0;break;case 13:this.appRef.dirtyFlags|=16,m=!0;break;case 12:m=!0;break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=null!==(o=null===(h=this.tracing)||void 0===h?void 0:h.snapshot(this.appRef.tracingSnapshot))&&void 0!==o?o:null,!this.shouldScheduleTick(m))return;const A=this.useMicrotaskScheduler?gf:pf;this.pendingRenderTaskId=this.taskService.add(),this.cancelScheduledCallback=this.scheduleInRootZone?Zone.root.run(()=>A(()=>this.tick())):this.ngZone.runOutsideAngular(()=>A(()=>this.tick()))}shouldScheduleTick(r){return!(this.disableScheduling&&!r||this.appRef.destroyed||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(yu+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(0===this.appRef.dirtyFlags)return void this.cleanup();!this.zonelessEnabled&&7&this.appRef.dirtyFlags&&(this.appRef.dirtyFlags|=1);const r=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(o){throw this.taskService.remove(r),o}finally{this.cleanup()}this.useMicrotaskScheduler=!0,gf(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(r)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){var r;if(this.runningTick=!1,null===(r=this.cancelScheduledCallback)||void 0===r||r.call(this),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const o=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(o)}}}return e=t,(0,f.A)(t,"\u0275fac",function(r){return new(r||e)}),(0,f.A)(t,"\u0275prov",nn({token:e,factory:e.\u0275fac,providedIn:"root"})),t})();const T0=new Gn("",{providedIn:"root",factory:()=>Kn(T0,Un.Optional|Un.SkipSelf)||function s1(){return typeof $localize<"u"&&$localize.locale||ym}()}),a1=new Gn("",{providedIn:"root",factory:()=>"USD"}),Dm=new Gn(""),f1=new Gn("");function $h(e){return!e.moduleRef}let hS=(()=>{var e;class t{constructor(r){(0,f.A)(this,"_injector",void 0),(0,f.A)(this,"_modules",[]),(0,f.A)(this,"_destroyListeners",[]),(0,f.A)(this,"_destroyed",!1),this._injector=r}bootstrapModuleFactory(r,o){const h=null==o?void 0:o.scheduleInRootZone,D=[b0({ngZoneFactory:()=>function jp(e="zone.js",t){return"noop"===e?new Ic:"zone.js"===e?new Bi(t):e}(null==o?void 0:o.ngZone,(0,s.A)((0,s.A)({},S0({eventCoalescing:null==o?void 0:o.ngZoneEventCoalescing,runCoalescing:null==o?void 0:o.ngZoneRunCoalescing})),{},{scheduleInRootZone:h})),ignoreChangesOutsideZone:null==o?void 0:o.ignoreChangesOutsideZone}),{provide:Js,useExisting:Vh}],Z=function lP(e,t,n){return new b_(e,t,n,!1)}(r.moduleType,this.injector,D);return function fS(e){const t=$h(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Bi);return n.run(()=>{$h(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();const r=t.get(ta,null);let o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:h=>{r.handleError(h)}})}),$h(e)){const h=()=>t.destroy(),m=e.platformInjector.get(Dm);m.add(h),t.onDestroy(()=>{o.unsubscribe(),m.delete(h)})}else{const h=()=>e.moduleRef.destroy(),m=e.platformInjector.get(Dm);m.add(h),e.moduleRef.onDestroy(()=>{dm(e.allPlatformModules,e.moduleRef),o.unsubscribe(),m.delete(h)})}return function NM(e,t,n){try{const r=n();return U_(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(r,n,()=>{const h=t.get(IA);return h.runInitializers(),h.donePromise.then(()=>{if(function sR(e){"string"==typeof e&&(AC=e.toLowerCase().replace(/_/g,"-"))}(t.get(T0,ym)||ym),!t.get(f1,!0))return $h(e)?t.get(Qs):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if($h(e)){const D=t.get(Qs);return void 0!==e.rootComponent&&D.bootstrap(e.rootComponent),D}return function h1(e,t){const n=e.injector.get(Qs);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new ct(-403,!1);e.instance.ngDoBootstrap(n)}t.push(e)}(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}({moduleRef:Z,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(r,o=[]){const h=OA({},o);return function n1(e,t,n){const r=new S_(n);return Promise.resolve(r)}(0,0,r).then(m=>this.bootstrapModuleFactory(m,h))}onDestroy(r){this._destroyListeners.push(r)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ct(404,!1);this._modules.slice().forEach(o=>o.destroy()),this._destroyListeners.forEach(o=>o());const r=this._injector.get(Dm,null);r&&(r.forEach(o=>o()),r.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e=t,(0,f.A)(t,"\u0275fac",function(r){return new(r||e)(ci(Ji))}),(0,f.A)(t,"\u0275prov",nn({token:e,factory:e.\u0275fac,providedIn:"platform"})),t})(),Jl=null;const pS=new Gn("");function gS(e,t,n=[]){const r="Platform: ".concat(t),o=new Gn(r);return(h=[])=>{let m=D0();if(!m||m.injector.get(pS,!1)){const A=[...n,...h,{provide:o,useValue:!0}];e?e(A):function p1(e){if(Jl&&!Jl.get(pS,!1))throw new ct(400,!1);(function DA(){!function je(e){ze=e}(()=>{throw new ct(600,!1)})})(),Jl=e;const t=e.get(hS);(function vS(e){const t=e.get(kc,null);ir(e,()=>{null==t||t.forEach(n=>n())})})(e)}(function mS(e=[],t){return Ji.create({name:t,providers:[{provide:rr,useValue:"platform"},{provide:Dm,useValue:new Set([()=>Jl=null])},...e]})}(A,r))}return function g1(){const t=D0();if(!t)throw new ct(401,!1);return t}()}}function D0(){var e,t;return null!==(e=null===(t=Jl)||void 0===t?void 0:t.get(hS))&&void 0!==e?e:null}function v1(){return!1}function _1(){}let yS=(()=>{class e{}return(0,f.A)(e,"__NG_ELEMENT_ID__",y1),e})();function y1(e){return function E1(e,t,n){if(Zo(e)&&!n){const r=Qt(e.index,t);return new ph(r,r)}return 175&e.type?new ph(t[X],t):null}(Kr(),fn(),!(16&~e))}class bS{constructor(){}supports(t){return sm(t)}create(t){return new I1(t)}}const S1=(e,t)=>t;class I1{constructor(t){(0,f.A)(this,"length",0),(0,f.A)(this,"collection",void 0),(0,f.A)(this,"_linkedRecords",null),(0,f.A)(this,"_unlinkedRecords",null),(0,f.A)(this,"_previousItHead",null),(0,f.A)(this,"_itHead",null),(0,f.A)(this,"_itTail",null),(0,f.A)(this,"_additionsHead",null),(0,f.A)(this,"_additionsTail",null),(0,f.A)(this,"_movesHead",null),(0,f.A)(this,"_movesTail",null),(0,f.A)(this,"_removalsHead",null),(0,f.A)(this,"_removalsTail",null),(0,f.A)(this,"_identityChangesHead",null),(0,f.A)(this,"_identityChangesTail",null),(0,f.A)(this,"_trackByFn",void 0),this._trackByFn=t||S1}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,h=null;for(;n||r;){const m=!r||n&&n.currentIndex<IS(r,o,h)?n:r,A=IS(m,o,h),D=m.currentIndex;if(m===r)o--,r=r._nextRemoved;else if(n=n._next,null==m.previousIndex)o++;else{h||(h=[]);const Z=A-o,be=D-o;if(Z!=be){for(let Je=0;Je<Z;Je++){const ft=Je<h.length?h[Je]:h[Je]=0,Rt=ft+Je;be<=Rt&&Rt<Z&&(h[Je]=ft+1)}h[m.previousIndex]=be-Z}}A!==D&&t(m,A,D)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;null!==n;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)t(n)}diff(t){if(null==t&&(t=[]),!sm(t))throw new ct(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let o,h,m,n=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let A=0;A<this.length;A++)h=t[A],m=this._trackByFn(A,h),null!==n&&Object.is(n.trackById,m)?(r&&(n=this._verifyReinsertion(n,h,m,A)),Object.is(n.item,h)||this._addIdentityChange(n,h)):(n=this._mismatch(n,h,m,A),r=!0),n=n._next}else o=0,function IP(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Symbol.iterator]();let r;for(;!(r=n.next()).done;)t(r.value)}}(t,A=>{m=this._trackByFn(o,A),null!==n&&Object.is(n.trackById,m)?(r&&(n=this._verifyReinsertion(n,A,m,o)),Object.is(n.item,A)||this._addIdentityChange(n,A)):(n=this._mismatch(n,A,m,o),r=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let h;return null===t?h=this._itTail:(h=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,h,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,h,o)):t=this._addAfter(new T1(n,r),h,o),t}_verifyReinsertion(t,n,r,o){let h=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==h?t=this._reinsertAfter(h,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,h=t._nextRemoved;return null===o?this._removalsHead=h:o._nextRemoved=h,null===h?this._removalsTail=o:h._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new SS),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new SS),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class T1{constructor(t,n){(0,f.A)(this,"item",void 0),(0,f.A)(this,"trackById",void 0),(0,f.A)(this,"currentIndex",null),(0,f.A)(this,"previousIndex",null),(0,f.A)(this,"_nextPrevious",null),(0,f.A)(this,"_prev",null),(0,f.A)(this,"_next",null),(0,f.A)(this,"_prevDup",null),(0,f.A)(this,"_nextDup",null),(0,f.A)(this,"_prevRemoved",null),(0,f.A)(this,"_nextRemoved",null),(0,f.A)(this,"_nextAdded",null),(0,f.A)(this,"_nextMoved",null),(0,f.A)(this,"_nextIdentityChange",null),this.item=t,this.trackById=n}}class D1{constructor(){(0,f.A)(this,"_head",null),(0,f.A)(this,"_tail",null)}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class SS{constructor(){(0,f.A)(this,"map",new Map)}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new D1,this.map.set(n,r)),r.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function IS(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+t+o}class TS{constructor(){}supports(t){return t instanceof Map||P_(t)}create(){return new O1}}class O1{constructor(){(0,f.A)(this,"_records",new Map),(0,f.A)(this,"_mapHead",null),(0,f.A)(this,"_appendAfter",null),(0,f.A)(this,"_previousMapHead",null),(0,f.A)(this,"_changesHead",null),(0,f.A)(this,"_changesTail",null),(0,f.A)(this,"_additionsHead",null),(0,f.A)(this,"_additionsTail",null),(0,f.A)(this,"_removalsHead",null),(0,f.A)(this,"_removalsTail",null)}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let n;for(n=this._mapHead;null!==n;n=n._next)t(n)}forEachPreviousItem(t){let n;for(n=this._previousMapHead;null!==n;n=n._nextPrevious)t(n)}forEachChangedItem(t){let n;for(n=this._changesHead;null!==n;n=n._nextChanged)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}diff(t){if(t){if(!(t instanceof Map||P_(t)))throw new ct(900,!1)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,o)=>{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const h=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,h)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const o=this._records.get(t);this._maybeAddToChanges(o,n);const h=o._prev,m=o._next;return h&&(h._next=m),m&&(m._prev=h),o._next=null,o._prev=null,o}const r=new P1(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class P1{constructor(t){(0,f.A)(this,"key",void 0),(0,f.A)(this,"previousValue",null),(0,f.A)(this,"currentValue",null),(0,f.A)(this,"_nextPrevious",null),(0,f.A)(this,"_next",null),(0,f.A)(this,"_prev",null),(0,f.A)(this,"_nextAdded",null),(0,f.A)(this,"_nextRemoved",null),(0,f.A)(this,"_nextChanged",null),this.key=t}}function DS(){return new R0([new bS])}let R0=(()=>{class t{constructor(r){(0,f.A)(this,"factories",void 0),this.factories=r}static create(r,o){if(null!=o){const h=o.factories.slice();r=r.concat(h)}return new t(r)}static extend(r){return{provide:t,useFactory:o=>t.create(r,o||DS()),deps:[[t,new Qo,new Io]]}}find(r){const o=this.factories.find(h=>h.supports(r));if(null!=o)return o;throw new ct(901,!1)}}return(0,f.A)(t,"\u0275prov",nn({token:t,providedIn:"root",factory:DS})),t})();function OS(){return new N0([new TS])}let N0=(()=>{class t{constructor(r){(0,f.A)(this,"factories",void 0),this.factories=r}static create(r,o){if(o){const h=o.factories.slice();r=r.concat(h)}return new t(r)}static extend(r){return{provide:t,useFactory:o=>t.create(r,o||OS()),deps:[[t,new Qo,new Io]]}}find(r){const o=this.factories.find(h=>h.supports(r));if(o)return o;throw new ct(901,!1)}}return(0,f.A)(t,"\u0275prov",nn({token:t,providedIn:"root",factory:OS})),t})();const R1=gS(null,"core",[]);let N1=(()=>{var e;class t{constructor(r){}}return e=t,(0,f.A)(t,"\u0275fac",function(r){return new(r||e)(ci(Qs))}),(0,f.A)(t,"\u0275mod",T_({type:e})),(0,f.A)(t,"\u0275inj",qn({})),t})(),XS=!1;function fx(){const e=[{provide:al,useFactory:()=>{let t=!0;{const n=Kn(va,{optional:!0});t=!(null==n||!n.get(v,null))}return t&&ao("NgHydration"),t}},{provide:yo,useValue:()=>{(function pE(e){fE=e})(!1),Kn(al)&&(function hx(){const e=Rs();let t;for(const r of e.body.childNodes){var n;if(r.nodeType===Node.COMMENT_NODE&&(null===(n=r.textContent)||void 0===n?void 0:n.trim())===Ie){t=r;break}}if(!t)throw new ct(-507,!1)}(),function ax(){XS||(XS=!0,function nt(){$e=Te}(),function Xw(){pC=Yw}(),function sN(){vb=oN}(),function qw(){gC=Jw}(),function MP(){aA=OP}(),function WO(){DE=HO,p_=KO}(),function IO(){_E=SO}(),function $T(){Ty=VT}())}())},multi:!0}];return e.push({provide:Kf,useFactory:()=>Kn(al)},{provide:Mh,useFactory:()=>{if(Kn(al)){const t=Kn(Qs);return Kn(Ji),()=>{(function cx(e){return e.whenStable()})(t).then(()=>{!function vE(e){const t=e._views;for(const n of t){const r=mt(n);null!==r&&null!==r[Qr]&&(ai(r)?qg(r):u_(r))}}(t)})}}return()=>{}},multi:!0}),C(e)}function px(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function gx(e,t=NaN){return isNaN(parseFloat(e))||isNaN(Number(e))?t:Number(e)}function Od(e,t){ao("NgSignals");const n=function _e(e){const t=Object.create(Ye);t.computation=e;const n=()=>{if(ee(t),ie(t),t.value===dt)throw t.error;return t.value};return n[q]=t,n}(e);return null!=t&&t.equal&&(n[q].equal=t.equal),n}const Bm=Symbol("UNSET"),k0=Symbol("COMPUTING"),jm=Symbol("ERRORED");function ql(e){const t=z(null);try{return e()}finally{z(t)}}(0,s.A)((0,s.A)({},Q),{},{value:Bm,dirty:!0,error:null,equal:d,computation:e=>e,producerMustRecompute:e=>e.value===Bm||e.value===k0,producerRecomputeValue(e){if(e.value===k0)throw new Error("Detected cycle in computations.");const t=e.value;e.value=k0;const n=_(e);let r;try{const o=e.source();r=e.computation(o,t===Bm||t===jm?void 0:{source:e.sourceValue,value:t}),e.sourceValue=o}catch(o){r=jm,e.error=o}finally{O(e,n)}t!==Bm&&r!==jm&&e.equal(t,r)?e.value=t:(e.value=r,e.version++)}});let tI=(()=>{class e{constructor(n,r){(0,f.A)(this,"view",void 0),(0,f.A)(this,"node",void 0),this.view=n,this.node=r}}return(0,f.A)(e,"__NG_ELEMENT_ID__",Cx),e})();function Cx(){return new tI(fn(),Kr())}let Sx=(()=>{var e;class t extends TA{constructor(...r){super(...r),(0,f.A)(this,"pendingTasks",Kn(qs)),(0,f.A)(this,"taskId",null)}schedule(r){super.schedule(r),null===this.taskId&&(this.taskId=this.pendingTasks.add(),queueMicrotask(()=>this.flush()))}flush(){try{super.flush()}finally{null!==this.taskId&&(this.pendingTasks.remove(this.taskId),this.taskId=null)}}}return(0,f.A)(t,"\u0275prov",nn({token:e=t,providedIn:"root",factory:()=>new e})),t})();class Ix{constructor(t,n,r,o,h,m){(0,f.A)(this,"scheduler",void 0),(0,f.A)(this,"effectFn",void 0),(0,f.A)(this,"zone",void 0),(0,f.A)(this,"injector",void 0),(0,f.A)(this,"unregisterOnDestroy",void 0),(0,f.A)(this,"watcher",void 0),this.scheduler=t,this.effectFn=n,this.zone=r,this.injector=h,this.watcher=function Et(e,t,n){const r=Object.create(ye);n&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=t;const o=D=>{r.cleanupFn=D};return r.ref={notify:()=>ue(r),run:()=>{if(null===r.fn)return;if(function de(){return R}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!x(r))return;r.hasRun=!0;const D=_(r);try{r.cleanupFn(),r.cleanupFn=Ce,r.fn(o)}finally{O(r,D)}},cleanup:()=>r.cleanupFn(),destroy:()=>function m(D){(function h(D){return null===D.fn&&null===D.schedule})(D)||(B(D),D.cleanupFn(),D.fn=null,D.schedule=null,D.cleanupFn=Ce)}(r),[q]:r},r.ref}(A=>this.runEffect(A),()=>this.schedule(),m),this.unregisterOnDestroy=null==o?void 0:o.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(n){const r=this.injector.get(ta,null,{optional:!0});null==r||r.handleError(n)}}run(){this.watcher.run()}schedule(){this.scheduler.schedule(this)}destroy(){var t;this.watcher.destroy(),null===(t=this.unregisterOnDestroy)||void 0===t||t.call(this)}}let F0=!1;class Ox{constructor(t){(0,f.A)(this,q,void 0),this[q]=t}destroy(){this[q].destroy()}}function U0(e,t){var n;if(F0)return function Dx(e,t){var n,r;ao("NgSignals"),(null==t||!t.injector)&&fr();const o=null!==(n=null==t?void 0:t.injector)&&void 0!==n?n:Kn(Ji),h=!0!==(null==t?void 0:t.manualCleanup)?o.get(hs):null,m=new Ix(o.get(Sx),e,typeof Zone>"u"?null:Zone.current,h,o,null!==(r=null==t?void 0:t.allowSignalWrites)&&void 0!==r&&r),A=o.get(yS,null,{optional:!0});var D,Z;return A&&8&A._lView[pr]?(null!==(Z=(D=A._lView)[Or])&&void 0!==Z?Z:D[Or]=[]).push(m.watcher.notify):m.watcher.notify(),m}(e,t);ao("NgSignals"),(null==t||!t.injector)&&fr();const r=null!==(n=null==t?void 0:t.injector)&&void 0!==n?n:Kn(Ji);let h,o=!0!==(null==t?void 0:t.manualCleanup)?r.get(hs):null;const m=r.get(tI,null,{optional:!0}),A=r.get(Js);return null===m||null!=t&&t.forceRoot?h=function Rx(e,t,n){const r=Object.create(Px);return r.fn=e,r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.schedule(r),r.notifier.notify(13),r}(e,r.get(j_),A):(h=function wx(e,t,n){var r;const o=Object.create(Mx);return o.view=e,o.zone=typeof Zone<"u"?Zone.current:null,o.notifier=t,o.fn=n,null!==(r=e[Pr])&&void 0!==r||(e[Pr]=new Set),e[Pr].add(o),o.consumerMarkedDirty(o),o}(m.view,A,e),o instanceof ff&&o._lView===m.view&&(o=null)),h.injector=r,null!==o&&(h.onDestroyFn=o.onDestroy(()=>h.destroy())),new Ox(h)}const nI=(0,s.A)((0,s.A)({},Q),{},{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,kind:"effect",onDestroyFn:Dl,run(){if(this.dirty=!1,this.hasRun&&!x(this))return;this.hasRun=!0;const e=r=>{var o;return(null!==(o=this.cleanupFns)&&void 0!==o?o:this.cleanupFns=[]).push(r)},t=_(this),n=su(!1);try{this.maybeCleanup(),this.fn(e)}finally{su(n),O(this,t)}},maybeCleanup(){var e;if(null!==(e=this.cleanupFns)&&void 0!==e&&e.length)try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[]}}}),Px=(0,s.A)((0,s.A)({},nI),{},{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(13)},destroy(){B(this),this.onDestroyFn(),this.maybeCleanup(),this.scheduler.remove(this)}}),Mx=(0,s.A)((0,s.A)({},nI),{},{consumerMarkedDirty(){this.view[pr]|=8192,Xs(this.view),this.notifier.notify(14)},destroy(){var e;B(this),this.onDestroyFn(),this.maybeCleanup(),null===(e=this.view[Pr])||void 0===e||e.delete(this)}}),B0=Symbol("NOT_SET"),rI=new Set;function jx(e,t){const n=Ot(e),r=t.elementInjector||Hi();return new Ih(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector)}function Vx(e){const t=Ot(e);if(!t)return null;const n=new Ih(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}(0,s.A)((0,s.A)({},Be),{},{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:B0,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(null===this.sequence.lastPhase||this.sequence.lastPhase<this.phase)return;this.sequence.erroredOrDestroyed=!0}this.sequence.scheduler.notify(7)},phaseFn(e){if(this.sequence.lastPhase=this.phase,!this.dirty)return this.signal;if(this.dirty=!1,this.value!==B0&&!x(this))return this.signal;try{for(const m of null!==(t=this.cleanup)&&void 0!==t?t:rI){var t;m()}}finally{var n;null===(n=this.cleanup)||void 0===n||n.clear()}const r=[];void 0!==e&&r.push(e),r.push(this.registerCleanupFn);const o=_(this);let h;try{h=this.userFn.apply(null,r)}finally{O(this,o)}return(this.value===B0||!this.equal(this.value,h))&&(this.value=h,this.version++),this.signal}})},9079:(se,E,c)=>{"use strict";c.d(E,{ot:()=>ve,pQ:()=>d});var g=c(4438),s=c(1985),f=c(6977);function d(ie){ie||((0,g.Af3)(d),ie=(0,g.WQX)(g.abz));const K=new s.c(ee=>ie.onDestroy(ee.next.bind(ee)));return ee=>ee.pipe((0,f.Q)(K))}function ve(ie,K){var ee,he;const Ae=!(null!=K&&K.manualCleanup);Ae&&(null==K||!K.injector)&&(0,g.Af3)(ve);const ue=Ae?null!==(ee=null==K||null===(he=K.injector)||void 0===he?void 0:he.get(g.abz))&&void 0!==ee?ee:(0,g.WQX)(g.abz):null,oe=function de(ie=Object.is){return(K,ee)=>1===K.kind&&1===ee.kind&&ie(K.value,ee.value)}(null==K?void 0:K.equal);let _;_=(0,g.vPA)(null!=K&&K.requireSync?{kind:0}:{kind:1,value:null==K?void 0:K.initialValue},{equal:oe});const O=ie.subscribe({next:x=>_.set({kind:1,value:x}),error:x=>{if(null!=K&&K.rejectErrors)throw x;_.set({kind:2,error:x})}});if(null!=K&&K.requireSync&&0===_().kind)throw new g.wOt(601,!1);return null==ue||ue.onDestroy(O.unsubscribe.bind(O)),(0,g.EWP)(()=>{const x=_();switch(x.kind){case 1:return x.value;case 2:throw x.error;case 0:throw new g.wOt(601,!1)}},{equal:null==K?void 0:K.equal})}},3:(se,E,c)=>{"use strict";c.d(E,{$E:()=>Ge,Ah:()=>k,pZ:()=>Me,r6:()=>ge,yE:()=>x});var g=c(9379),s=c(1660),f=c(4438),d=c(2365),S=c(8203),R=c(6860),U=c(4085),q=c(9046);let x=(()=>{var Pt;class It{constructor(){(0,f.WQX)(d.Q_)._applyBodyHighContrastModeCssClasses()}}return Pt=It,(0,s.A)(It,"\u0275fac",function(Ct){return new(Ct||Pt)}),(0,s.A)(It,"\u0275mod",f.$C({type:Pt})),(0,s.A)(It,"\u0275inj",f.G2t({imports:[S.jI,S.jI]})),It})(),k=(()=>{var Pt;class It{}return Pt=It,(0,s.A)(It,"\u0275fac",function(Ct){return new(Ct||Pt)}),(0,s.A)(It,"\u0275cmp",f.VBU({type:Pt,selectors:[["structural-styles"]],decls:0,vars:0,template:function(Ct,sn){},styles:['.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}}'],encapsulation:2,changeDetection:0})),It})();var Se=function(Pt){return Pt[Pt.FADING_IN=0]="FADING_IN",Pt[Pt.VISIBLE=1]="VISIBLE",Pt[Pt.FADING_OUT=2]="FADING_OUT",Pt[Pt.HIDDEN=3]="HIDDEN",Pt}(Se||{});class Be{constructor(It,Dt,Ct,sn=!1){(0,s.A)(this,"_renderer",void 0),(0,s.A)(this,"element",void 0),(0,s.A)(this,"config",void 0),(0,s.A)(this,"_animationForciblyDisabledThroughCss",void 0),(0,s.A)(this,"state",Se.HIDDEN),this._renderer=It,this.element=Dt,this.config=Ct,this._animationForciblyDisabledThroughCss=sn}fadeOut(){this._renderer.fadeOutRipple(this)}}const Tt=(0,R.BQ)({passive:!0,capture:!0});class zt{constructor(){(0,s.A)(this,"_events",new Map),(0,s.A)(this,"_delegateEventHandler",It=>{const Dt=(0,R.Fb)(It);var Ct;Dt&&(null===(Ct=this._events.get(It.type))||void 0===Ct||Ct.forEach((sn,An)=>{(An===Dt||An.contains(Dt))&&sn.forEach(Qn=>Qn.handleEvent(It))}))})}addHandler(It,Dt,Ct,sn){const An=this._events.get(Dt);if(An){const Qn=An.get(Ct);Qn?Qn.add(sn):An.set(Ct,new Set([sn]))}else this._events.set(Dt,new Map([[Ct,new Set([sn])]])),It.runOutsideAngular(()=>{document.addEventListener(Dt,this._delegateEventHandler,Tt)})}removeHandler(It,Dt,Ct){const sn=this._events.get(It);if(!sn)return;const An=sn.get(Dt);An&&(An.delete(Ct),0===An.size&&sn.delete(Dt),0===sn.size&&(this._events.delete(It),document.removeEventListener(It,this._delegateEventHandler,Tt)))}}const Mt={enterDuration:225,exitDuration:150},lt=(0,R.BQ)({passive:!0,capture:!0}),Et=["mousedown","touchstart"],Ce=["mouseup","mouseleave","touchend","touchcancel"];let ye=(()=>{var Pt;class It{}return Pt=It,(0,s.A)(It,"\u0275fac",function(Ct){return new(Ct||Pt)}),(0,s.A)(It,"\u0275cmp",f.VBU({type:Pt,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(Ct,sn){},styles:[".mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none}"],encapsulation:2,changeDetection:0})),It})();class Ee{constructor(It,Dt,Ct,sn,An){(0,s.A)(this,"_target",void 0),(0,s.A)(this,"_ngZone",void 0),(0,s.A)(this,"_platform",void 0),(0,s.A)(this,"_containerElement",void 0),(0,s.A)(this,"_triggerElement",void 0),(0,s.A)(this,"_isPointerDown",!1),(0,s.A)(this,"_activeRipples",new Map),(0,s.A)(this,"_mostRecentTransientRipple",void 0),(0,s.A)(this,"_lastTouchStartEvent",void 0),(0,s.A)(this,"_pointerUpEventsRegistered",!1),(0,s.A)(this,"_containerRect",void 0),this._target=It,this._ngZone=Dt,this._platform=sn,sn.isBrowser&&(this._containerElement=(0,U.i8)(Ct)),An&&An.get(q.l).load(ye)}fadeInRipple(It,Dt,Ct={}){const sn=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),An=(0,g.A)((0,g.A)({},Mt),Ct.animation);Ct.centered&&(It=sn.left+sn.width/2,Dt=sn.top+sn.height/2);const Qn=Ct.radius||function De(Pt,It,Dt){const Ct=Math.max(Math.abs(Pt-Dt.left),Math.abs(Pt-Dt.right)),sn=Math.max(Math.abs(It-Dt.top),Math.abs(It-Dt.bottom));return Math.sqrt(Ct*Ct+sn*sn)}(It,Dt,sn),Fr=It-sn.left,st=Dt-sn.top,vt=An.enterDuration,bt=document.createElement("div");bt.classList.add("mat-ripple-element"),bt.style.left="".concat(Fr-Qn,"px"),bt.style.top="".concat(st-Qn,"px"),bt.style.height="".concat(2*Qn,"px"),bt.style.width="".concat(2*Qn,"px"),null!=Ct.color&&(bt.style.backgroundColor=Ct.color),bt.style.transitionDuration="".concat(vt,"ms"),this._containerElement.appendChild(bt);const ht=window.getComputedStyle(bt),pn=ht.transitionDuration,Pn="none"===ht.transitionProperty||"0s"===pn||"0s, 0s"===pn||0===sn.width&&0===sn.height,jn=new Be(this,bt,Ct,Pn);bt.style.transform="scale3d(1, 1, 1)",jn.state=Se.FADING_IN,Ct.persistent||(this._mostRecentTransientRipple=jn);let Fn=null;return!Pn&&(vt||An.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Ar=()=>{Fn&&(Fn.fallbackTimer=null),clearTimeout(Wr),this._finishRippleTransition(jn)},br=()=>this._destroyRipple(jn),Wr=setTimeout(br,vt+100);bt.addEventListener("transitionend",Ar),bt.addEventListener("transitioncancel",br),Fn={onTransitionEnd:Ar,onTransitionCancel:br,fallbackTimer:Wr}}),this._activeRipples.set(jn,Fn),(Pn||!vt)&&this._finishRippleTransition(jn),jn}fadeOutRipple(It){if(It.state===Se.FADING_OUT||It.state===Se.HIDDEN)return;const Dt=It.element,Ct=(0,g.A)((0,g.A)({},Mt),It.config.animation);Dt.style.transitionDuration="".concat(Ct.exitDuration,"ms"),Dt.style.opacity="0",It.state=Se.FADING_OUT,(It._animationForciblyDisabledThroughCss||!Ct.exitDuration)&&this._finishRippleTransition(It)}fadeOutAll(){this._getActiveRipples().forEach(It=>It.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(It=>{It.config.persistent||It.fadeOut()})}setupTriggerEvents(It){const Dt=(0,U.i8)(It);!this._platform.isBrowser||!Dt||Dt===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Dt,Et.forEach(Ct=>{Ee._eventManager.addHandler(this._ngZone,Ct,Dt,this)}))}handleEvent(It){"mousedown"===It.type?this._onMousedown(It):"touchstart"===It.type?this._onTouchStart(It):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Ce.forEach(Dt=>{this._triggerElement.addEventListener(Dt,this,lt)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(It){It.state===Se.FADING_IN?this._startFadeOutTransition(It):It.state===Se.FADING_OUT&&this._destroyRipple(It)}_startFadeOutTransition(It){const Dt=It===this._mostRecentTransientRipple,{persistent:Ct}=It.config;It.state=Se.VISIBLE,!Ct&&(!Dt||!this._isPointerDown)&&It.fadeOut()}_destroyRipple(It){var Dt;const Ct=null!==(Dt=this._activeRipples.get(It))&&void 0!==Dt?Dt:null;this._activeRipples.delete(It),this._activeRipples.size||(this._containerRect=null),It===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),It.state=Se.HIDDEN,null!==Ct&&(It.element.removeEventListener("transitionend",Ct.onTransitionEnd),It.element.removeEventListener("transitioncancel",Ct.onTransitionCancel),null!==Ct.fallbackTimer&&clearTimeout(Ct.fallbackTimer)),It.element.remove()}_onMousedown(It){const Dt=(0,d._G)(It),Ct=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!Dt&&!Ct&&(this._isPointerDown=!0,this.fadeInRipple(It.clientX,It.clientY,this._target.rippleConfig))}_onTouchStart(It){if(!this._target.rippleDisabled&&!(0,d.w6)(It)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const Dt=It.changedTouches;if(Dt)for(let Ct=0;Ct<Dt.length;Ct++)this.fadeInRipple(Dt[Ct].clientX,Dt[Ct].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(It=>{!It.config.persistent&&(It.state===Se.VISIBLE||It.config.terminateOnPointerUp&&It.state===Se.FADING_IN)&&It.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const It=this._triggerElement;It&&(Et.forEach(Dt=>Ee._eventManager.removeHandler(Dt,It,this)),this._pointerUpEventsRegistered&&(Ce.forEach(Dt=>It.removeEventListener(Dt,this,lt)),this._pointerUpEventsRegistered=!1))}}(0,s.A)(Ee,"_eventManager",new zt);const Ge=new f.nKC("mat-ripple-global-options");let ge=(()=>{var Pt;class It{get disabled(){return this._disabled}set disabled(Ct){Ct&&this.fadeOutAllNonPersistent(),this._disabled=Ct,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(Ct){this._trigger=Ct,this._setupTriggerEventsIfEnabled()}constructor(){(0,s.A)(this,"_elementRef",(0,f.WQX)(f.aKT)),(0,s.A)(this,"_animationMode",(0,f.WQX)(f.bc$,{optional:!0})),(0,s.A)(this,"color",void 0),(0,s.A)(this,"unbounded",void 0),(0,s.A)(this,"centered",void 0),(0,s.A)(this,"radius",0),(0,s.A)(this,"animation",void 0),(0,s.A)(this,"_disabled",!1),(0,s.A)(this,"_trigger",void 0),(0,s.A)(this,"_rippleRenderer",void 0),(0,s.A)(this,"_globalOptions",void 0),(0,s.A)(this,"_isInitialized",!1);const Ct=(0,f.WQX)(f.SKi),sn=(0,f.WQX)(R.OD),An=(0,f.WQX)(Ge,{optional:!0}),Qn=(0,f.WQX)(f.zZn);this._globalOptions=An||{},this._rippleRenderer=new Ee(this,Ct,this._elementRef,sn,Qn)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:(0,g.A)((0,g.A)((0,g.A)({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(Ct,sn=0,An){return"number"==typeof Ct?this._rippleRenderer.fadeInRipple(Ct,sn,(0,g.A)((0,g.A)({},this.rippleConfig),An)):this._rippleRenderer.fadeInRipple(0,0,(0,g.A)((0,g.A)({},this.rippleConfig),Ct))}}return Pt=It,(0,s.A)(It,"\u0275fac",function(Ct){return new(Ct||Pt)}),(0,s.A)(It,"\u0275dir",f.FsC({type:Pt,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(Ct,sn){2&Ct&&f.AVh("mat-ripple-unbounded",sn.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})),It})(),Me=(()=>{var Pt;class It{}return Pt=It,(0,s.A)(It,"\u0275fac",function(Ct){return new(Ct||Pt)}),(0,s.A)(It,"\u0275mod",f.$C({type:Pt})),(0,s.A)(It,"\u0275inj",f.G2t({imports:[x,x]})),It})()},728:(se,E,c)=>{"use strict";c.d(E,{wb:()=>Ue});var g=c(1660),s=c(4438),f=c(345),d=c(2305),S=c(9379),R=c(9969);const U=["value"];function z(j){return new s.wOt(3e3,!1)}function Se(j){switch(j.length){case 0:return new R.sf;case 1:return j[0];default:return new R.ui(j)}}function Be(j,C,M=new Map,ne=new Map){const Oe=[],Fe=[];let pt=-1,St=null;if(C.forEach(Ht=>{const cn=Ht.get("offset"),Ln=cn==pt,Vn=Ln&&St||new Map;Ht.forEach((dr,lr)=>{let ur=lr,rr=dr;if("offset"!==lr)switch(ur=j.normalizePropertyName(ur,Oe),rr){case R.FX:rr=M.get(lr);break;case R.kp:rr=ne.get(lr);break;default:rr=j.normalizeStyleValue(lr,ur,rr,Oe)}Vn.set(ur,rr)}),Ln||Fe.push(Vn),St=Vn,pt=cn}),Oe.length)throw function We(){return new s.wOt(3502,!1)}();return Fe}function Tt(j,C,M,ne){switch(C){case"start":j.onStart(()=>ne(M&&zt(M,"start",j)));break;case"done":j.onDone(()=>ne(M&&zt(M,"done",j)));break;case"destroy":j.onDestroy(()=>ne(M&&zt(M,"destroy",j)))}}function zt(j,C,M){const ne=M.totalTime,Fe=Mt(j.element,j.triggerName,j.fromState,j.toState,C||j.phaseName,null==ne?j.totalTime:ne,!!M.disabled),pt=j._data;return null!=pt&&(Fe._data=pt),Fe}function Mt(j,C,M,ne,Oe="",Fe=0,pt){return{element:j,triggerName:C,fromState:M,toState:ne,phaseName:Oe,totalTime:Fe,disabled:!!pt}}function He(j,C,M){let ne=j.get(C);return ne||j.set(C,ne=M),ne}function lt(j){const C=j.indexOf(":");return[j.substring(1,C),j.slice(C+1)]}const Et=typeof document>"u"?null:document.documentElement;function Ce(j){const C=j.parentNode||j.host||null;return C===Et?null:C}let Ee=null,De=!1;function Ve(j,C){for(;C;){if(C===j)return!0;C=Ce(C)}return!1}function rt(j,C,M){if(M)return Array.from(j.querySelectorAll(C));const ne=j.querySelector(C);return ne?[ne]:[]}let ct=(()=>{var j;class C{validateStyleProperty(ne){return function Ge(j){Ee||(Ee=function Me(){return typeof document<"u"?document.body:null}()||{},De=!!Ee.style&&"WebkitAppearance"in Ee.style);let C=!0;return Ee.style&&!function ye(j){return"ebkit"==j.substring(1,6)}(j)&&(C=j in Ee.style,!C&&De&&(C="Webkit"+j.charAt(0).toUpperCase()+j.slice(1)in Ee.style)),C}(ne)}containsElement(ne,Oe){return Ve(ne,Oe)}getParentElement(ne){return Ce(ne)}query(ne,Oe,Fe){return rt(ne,Oe,Fe)}computeStyle(ne,Oe,Fe){return Fe||""}animate(ne,Oe,Fe,pt,St,Ht=[],cn){return new R.sf(Fe,pt)}}return j=C,(0,g.A)(C,"\u0275fac",function(ne){return new(ne||j)}),(0,g.A)(C,"\u0275prov",s.jDH({token:j,factory:j.\u0275fac})),C})();class Yt{}(0,g.A)(Yt,"NOOP",new ct);class Ft{}const At="ng-enter",Hn="ng-leave",Yn="ng-trigger",or=".ng-trigger",jt="ng-animating",tn=".ng-animating";function on(j){if("number"==typeof j)return j;const C=j.match(/^(-?[\.\d]+)(m?s)/);return!C||C.length<2?0:kt(parseFloat(C[1]),C[2])}function kt(j,C){return"s"===C?1e3*j:j}function Pt(j,C,M){return j.hasOwnProperty("duration")?j:function It(j,C,M){let Oe,Fe=0,pt="";if("string"==typeof j){const St=j.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===St)return C.push(z()),{duration:0,delay:0,easing:""};Oe=kt(parseFloat(St[1]),St[2]);const Ht=St[3];null!=Ht&&(Fe=kt(parseFloat(Ht),St[4]));const cn=St[5];cn&&(pt=cn)}else Oe=j;if(!M){let St=!1,Ht=C.length;Oe<0&&(C.push(function ve(){return new s.wOt(3100,!1)}()),St=!0),Fe<0&&(C.push(function de(){return new s.wOt(3101,!1)}()),St=!0),St&&C.splice(Ht,0,z())}return{duration:Oe,delay:Fe,easing:pt}}(j,C,M)}function sn(j,C,M){C.forEach((ne,Oe)=>{const Fe=wt(Oe);M&&!M.has(Oe)&&M.set(Oe,j.style[Fe]),j.style[Fe]=ne})}function An(j,C){C.forEach((M,ne)=>{const Oe=wt(ne);j.style[Oe]=""})}function Qn(j){return Array.isArray(j)?1==j.length?j[0]:(0,R.K2)(j):j}const st=new RegExp("".concat("{{","\\s*(.+?)\\s*").concat("}}"),"g");function vt(j){let C=[];if("string"==typeof j){let M;for(;M=st.exec(j);)C.push(M[1]);st.lastIndex=0}return C}function bt(j,C,M){const ne="".concat(j),Oe=ne.replace(st,(Fe,pt)=>{let St=C[pt];return null==St&&(M.push(function Q(){return new s.wOt(3003,!1)}()),St=""),St.toString()});return Oe==ne?j:Oe}const ht=/-+([a-z0-9])/g;function wt(j){return j.replace(ht,(...C)=>C[1].toUpperCase())}function Fn(j,C,M){switch(C.type){case R.If.Trigger:return j.visitTrigger(C,M);case R.If.State:return j.visitState(C,M);case R.If.Transition:return j.visitTransition(C,M);case R.If.Sequence:return j.visitSequence(C,M);case R.If.Group:return j.visitGroup(C,M);case R.If.Animate:return j.visitAnimate(C,M);case R.If.Keyframes:return j.visitKeyframes(C,M);case R.If.Style:return j.visitStyle(C,M);case R.If.Reference:return j.visitReference(C,M);case R.If.AnimateChild:return j.visitAnimateChild(C,M);case R.If.AnimateRef:return j.visitAnimateRef(C,M);case R.If.Query:return j.visitQuery(C,M);case R.If.Stagger:return j.visitStagger(C,M);default:throw function ie(){return new s.wOt(3004,!1)}()}}function Ar(j,C){return window.getComputedStyle(j)[C]}const br=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class Wr extends Ft{normalizePropertyName(C,M){return wt(C)}normalizeStyleValue(C,M,ne,Oe){let Fe="";const pt=ne.toString().trim();if(br.has(M)&&0!==ne&&"0"!==ne)if("number"==typeof ne)Fe="px";else{const St=ne.match(/^[+-]?[\d\.]+([a-z]*)$/);St&&0==St[1].length&&Oe.push(function K(){return new s.wOt(3005,!1)}())}return pt+Fe}}const yt=new Set(["true","1"]),Xt=new Set(["false","0"]);function nn(j,C){const M=yt.has(j)||Xt.has(j),ne=yt.has(C)||Xt.has(C);return(Oe,Fe)=>{let pt="*"==j||j==Oe,St="*"==C||C==Fe;return!pt&&M&&"boolean"==typeof Oe&&(pt=Oe?yt.has(j):Xt.has(j)),!St&&ne&&"boolean"==typeof Fe&&(St=Fe?yt.has(C):Xt.has(C)),pt&&St}}const qn=new RegExp("s*".concat(":self","s*,?"),"g");function sr(j,C,M,ne){return new no(j).build(C,M,ne)}class no{constructor(C){(0,g.A)(this,"_driver",void 0),this._driver=C}build(C,M,ne){const Oe=new Ai(M);return this._resetContextStyleTimingState(Oe),Fn(this,Qn(C),Oe)}_resetContextStyleTimingState(C){C.currentQuerySelector="",C.collectedStyles=new Map,C.collectedStyles.set("",new Map),C.currentTime=0}visitTrigger(C,M){let ne=M.queryCount=0,Oe=M.depCount=0;const Fe=[],pt=[];return"@"==C.name.charAt(0)&&M.errors.push(function ee(){return new s.wOt(3006,!1)}()),C.definitions.forEach(St=>{if(this._resetContextStyleTimingState(M),St.type==R.If.State){const Ht=St,cn=Ht.name;cn.toString().split(/\s*,\s*/).forEach(Ln=>{Ht.name=Ln,Fe.push(this.visitState(Ht,M))}),Ht.name=cn}else if(St.type==R.If.Transition){const Ht=this.visitTransition(St,M);ne+=Ht.queryCount,Oe+=Ht.depCount,pt.push(Ht)}else M.errors.push(function he(){return new s.wOt(3007,!1)}())}),{type:R.If.Trigger,name:C.name,states:Fe,transitions:pt,queryCount:ne,depCount:Oe,options:null}}visitState(C,M){const ne=this.visitStyle(C.styles,M),Oe=C.options&&C.options.params||null;if(ne.containsDynamicStyles){const Fe=new Set,pt=Oe||{};ne.styles.forEach(St=>{St instanceof Map&&St.forEach(Ht=>{vt(Ht).forEach(cn=>{pt.hasOwnProperty(cn)||Fe.add(cn)})})}),Fe.size&&M.errors.push(function Ae(){return new s.wOt(3008,!1)}(0,Fe.values()))}return{type:R.If.State,name:C.name,style:ne,options:Oe?{params:Oe}:null}}visitTransition(C,M){M.queryCount=0,M.depCount=0;const ne=Fn(this,Qn(C.animation),M),Oe=function rn(j,C){const M=[];return"string"==typeof j?j.split(/\s*,\s*/).forEach(ne=>function et(j,C,M){if(":"==j[0]){const Ht=function xt(j,C){switch(j){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(M,ne)=>parseFloat(ne)>parseFloat(M);case":decrement":return(M,ne)=>parseFloat(ne)<parseFloat(M);default:return C.push(function te(){return new s.wOt(3016,!1)}()),"* => *"}}(j,M);if("function"==typeof Ht)return void C.push(Ht);j=Ht}const ne=j.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==ne||ne.length<4)return M.push(function W(){return new s.wOt(3015,!1)}()),C;const Oe=ne[1],Fe=ne[2],pt=ne[3];C.push(nn(Oe,pt)),"<"==Fe[0]&&("*"!=Oe||"*"!=pt)&&C.push(nn(pt,Oe))}(ne,M,C)):M.push(j),M}(C.expr,M.errors);return{type:R.If.Transition,matchers:Oe,animation:ne,queryCount:M.queryCount,depCount:M.depCount,options:Nr(C.options)}}visitSequence(C,M){return{type:R.If.Sequence,steps:C.steps.map(ne=>Fn(this,ne,M)),options:Nr(C.options)}}visitGroup(C,M){const ne=M.currentTime;let Oe=0;const Fe=C.steps.map(pt=>{M.currentTime=ne;const St=Fn(this,pt,M);return Oe=Math.max(Oe,M.currentTime),St});return M.currentTime=Oe,{type:R.If.Group,steps:Fe,options:Nr(C.options)}}visitAnimate(C,M){const ne=function hi(j,C){if(j.hasOwnProperty("duration"))return j;if("number"==typeof j)return Gn(Pt(j,C).duration,0,"");const M=j;if(M.split(/\s+/).some(Fe=>"{"==Fe.charAt(0)&&"{"==Fe.charAt(1))){const Fe=Gn(0,0,"");return Fe.dynamic=!0,Fe.strValue=M,Fe}const Oe=Pt(M,C);return Gn(Oe.duration,Oe.delay,Oe.easing)}(C.timings,M.errors);M.currentAnimateTimings=ne;let Oe,Fe=C.styles?C.styles:(0,R.iF)({});if(Fe.type==R.If.Keyframes)Oe=this.visitKeyframes(Fe,M);else{let pt=C.styles,St=!1;if(!pt){St=!0;const cn={};ne.easing&&(cn.easing=ne.easing),pt=(0,R.iF)(cn)}M.currentTime+=ne.duration+ne.delay;const Ht=this.visitStyle(pt,M);Ht.isEmptyStep=St,Oe=Ht}return M.currentAnimateTimings=null,{type:R.If.Animate,timings:ne,style:Oe,options:null}}visitStyle(C,M){const ne=this._makeStyleAst(C,M);return this._validateStyleAst(ne,M),ne}_makeStyleAst(C,M){const ne=[],Oe=Array.isArray(C.styles)?C.styles:[C.styles];for(let St of Oe)"string"==typeof St?St===R.kp?ne.push(St):M.errors.push(new s.wOt(3002,!1)):ne.push(new Map(Object.entries(St)));let Fe=!1,pt=null;return ne.forEach(St=>{if(St instanceof Map&&(St.has("easing")&&(pt=St.get("easing"),St.delete("easing")),!Fe))for(let Ht of St.values())if(Ht.toString().indexOf("{{")>=0){Fe=!0;break}}),{type:R.If.Style,styles:ne,easing:pt,offset:C.offset,containsDynamicStyles:Fe,options:null}}_validateStyleAst(C,M){const ne=M.currentAnimateTimings;let Oe=M.currentTime,Fe=M.currentTime;ne&&Fe>0&&(Fe-=ne.duration+ne.delay),C.styles.forEach(pt=>{"string"!=typeof pt&&pt.forEach((St,Ht)=>{const cn=M.collectedStyles.get(M.currentQuerySelector),Ln=cn.get(Ht);let Vn=!0;Ln&&(Fe!=Oe&&Fe>=Ln.startTime&&Oe<=Ln.endTime&&(M.errors.push(function _(){return new s.wOt(3010,!1)}()),Vn=!1),Fe=Ln.startTime),Vn&&cn.set(Ht,{startTime:Fe,endTime:Oe}),M.options&&function Fr(j,C,M){const ne=C.params||{},Oe=vt(j);Oe.length&&Oe.forEach(Fe=>{ne.hasOwnProperty(Fe)||M.push(function V(){return new s.wOt(3001,!1)}())})}(St,M.options,M.errors)})})}visitKeyframes(C,M){const ne={type:R.If.Keyframes,styles:[],options:null};if(!M.currentAnimateTimings)return M.errors.push(function O(){return new s.wOt(3011,!1)}()),ne;let Fe=0;const pt=[];let St=!1,Ht=!1,cn=0;const Ln=C.steps.map(Ni=>{const Mi=this._makeStyleAst(Ni,M);let Hi=null!=Mi.offset?Mi.offset:function ki(j){if("string"==typeof j)return null;let C=null;if(Array.isArray(j))j.forEach(M=>{if(M instanceof Map&&M.has("offset")){const ne=M;C=parseFloat(ne.get("offset")),ne.delete("offset")}});else if(j instanceof Map&&j.has("offset")){const M=j;C=parseFloat(M.get("offset")),M.delete("offset")}return C}(Mi.styles),Zr=0;return null!=Hi&&(Fe++,Zr=Mi.offset=Hi),Ht=Ht||Zr<0||Zr>1,St=St||Zr<cn,cn=Zr,pt.push(Zr),Mi});Ht&&M.errors.push(function x(){return new s.wOt(3012,!1)}()),St&&M.errors.push(function B(){return new s.wOt(3200,!1)}());const Vn=C.steps.length;let dr=0;Fe>0&&Fe<Vn?M.errors.push(function G(){return new s.wOt(3202,!1)}()):0==Fe&&(dr=1/(Vn-1));const lr=Vn-1,ur=M.currentTime,rr=M.currentAnimateTimings,oi=rr.duration;return Ln.forEach((Ni,Mi)=>{const Hi=dr>0?Mi==lr?1:dr*Mi:pt[Mi],Zr=Hi*oi;M.currentTime=ur+rr.delay+Zr,rr.duration=Zr,this._validateStyleAst(Ni,M),Ni.offset=Hi,ne.styles.push(Ni)}),ne}visitReference(C,M){return{type:R.If.Reference,animation:Fn(this,Qn(C.animation),M),options:Nr(C.options)}}visitAnimateChild(C,M){return M.depCount++,{type:R.If.AnimateChild,options:Nr(C.options)}}visitAnimateRef(C,M){return{type:R.If.AnimateRef,animation:this.visitReference(C.animation,M),options:Nr(C.options)}}visitQuery(C,M){const ne=M.currentQuerySelector,Oe=C.options||{};M.queryCount++,M.currentQuery=C;const[Fe,pt]=function Vi(j){const C=!!j.split(/\s*,\s*/).find(M=>":self"==M);return C&&(j=j.replace(qn,"")),j=j.replace(/@\*/g,or).replace(/@\w+/g,M=>or+"-"+M.slice(1)).replace(/:animating/g,tn),[j,C]}(C.selector);M.currentQuerySelector=ne.length?ne+" "+Fe:Fe,He(M.collectedStyles,M.currentQuerySelector,new Map);const St=Fn(this,Qn(C.animation),M);return M.currentQuery=null,M.currentQuerySelector=ne,{type:R.If.Query,selector:Fe,limit:Oe.limit||0,optional:!!Oe.optional,includeSelf:pt,animation:St,originalSelector:C.selector,options:Nr(C.options)}}visitStagger(C,M){M.currentQuery||M.errors.push(function pe(){return new s.wOt(3013,!1)}());const ne="full"===C.timings?{duration:0,delay:0,easing:"full"}:Pt(C.timings,M.errors,!0);return{type:R.If.Stagger,animation:Fn(this,Qn(C.animation),M),timings:ne,options:null}}}class Ai{constructor(C){(0,g.A)(this,"errors",void 0),(0,g.A)(this,"queryCount",0),(0,g.A)(this,"depCount",0),(0,g.A)(this,"currentTransition",null),(0,g.A)(this,"currentQuery",null),(0,g.A)(this,"currentQuerySelector",null),(0,g.A)(this,"currentAnimateTimings",null),(0,g.A)(this,"currentTime",0),(0,g.A)(this,"collectedStyles",new Map),(0,g.A)(this,"options",null),(0,g.A)(this,"unsupportedCSSPropertiesFound",new Set),this.errors=C}}function Nr(j){return j?(j=(0,S.A)({},j)).params&&(j.params=function vr(j){return j?(0,S.A)({},j):null}(j.params)):j={},j}function Gn(j,C,M){return{duration:j,delay:C,easing:M}}function Yr(j,C,M,ne,Oe,Fe,pt=null,St=!1){return{type:1,element:j,keyframes:C,preStyleProps:M,postStyleProps:ne,duration:Oe,delay:Fe,totalTime:Oe+Fe,easing:pt,subTimeline:St}}class Pi{constructor(){(0,g.A)(this,"_map",new Map)}get(C){return this._map.get(C)||[]}append(C,M){let ne=this._map.get(C);ne||this._map.set(C,ne=[]),ne.push(...M)}has(C){return this._map.has(C)}clear(){this._map.clear()}}const Zt=new RegExp(":enter","g"),bn=new RegExp(":leave","g");function Rn(j,C,M,ne,Oe,Fe=new Map,pt=new Map,St,Ht,cn=[]){return(new $n).buildKeyframes(j,C,M,ne,Oe,Fe,pt,St,Ht,cn)}class $n{buildKeyframes(C,M,ne,Oe,Fe,pt,St,Ht,cn,Ln=[]){cn=cn||new Pi;const Vn=new Sn(C,M,cn,Oe,Fe,Ln,[]);Vn.options=Ht;const dr=Ht.delay?on(Ht.delay):0;Vn.currentTimeline.delayNextStep(dr),Vn.currentTimeline.setStyles([pt],null,Vn.errors,Ht),Fn(this,ne,Vn);const lr=Vn.timelines.filter(ur=>ur.containsAnimation());if(lr.length&&St.size){let ur;for(let rr=lr.length-1;rr>=0;rr--){const oi=lr[rr];if(oi.element===M){ur=oi;break}}ur&&!ur.allowOnlyTimelineStyles()&&ur.setStyles([St],null,Vn.errors,Ht)}return lr.length?lr.map(ur=>ur.buildKeyframes()):[Yr(M,[],[],[],0,dr,"",!1)]}visitTrigger(C,M){}visitState(C,M){}visitTransition(C,M){}visitAnimateChild(C,M){const ne=M.subInstructions.get(M.element);if(ne){const Oe=M.createSubContext(C.options),Fe=M.currentTimeline.currentTime,pt=this._visitSubInstructions(ne,Oe,Oe.options);Fe!=pt&&M.transformIntoNewTimeline(pt)}M.previousNode=C}visitAnimateRef(C,M){const ne=M.createSubContext(C.options);ne.transformIntoNewTimeline(),this._applyAnimationRefDelays([C.options,C.animation.options],M,ne),this.visitReference(C.animation,ne),M.transformIntoNewTimeline(ne.currentTimeline.currentTime),M.previousNode=C}_applyAnimationRefDelays(C,M,ne){for(const Fe of C){const pt=null==Fe?void 0:Fe.delay;if(pt){var Oe;const St="number"==typeof pt?pt:on(bt(pt,null!==(Oe=null==Fe?void 0:Fe.params)&&void 0!==Oe?Oe:{},M.errors));ne.delayNextStep(St)}}}_visitSubInstructions(C,M,ne){let Fe=M.currentTimeline.currentTime;const pt=null!=ne.duration?on(ne.duration):null,St=null!=ne.delay?on(ne.delay):null;return 0!==pt&&C.forEach(Ht=>{const cn=M.appendInstructionToTimeline(Ht,pt,St);Fe=Math.max(Fe,cn.duration+cn.delay)}),Fe}visitReference(C,M){M.updateOptions(C.options,!0),Fn(this,C.animation,M),M.previousNode=C}visitSequence(C,M){const ne=M.subContextCount;let Oe=M;const Fe=C.options;if(Fe&&(Fe.params||Fe.delay)&&(Oe=M.createSubContext(Fe),Oe.transformIntoNewTimeline(),null!=Fe.delay)){Oe.previousNode.type==R.If.Style&&(Oe.currentTimeline.snapshotCurrentStyles(),Oe.previousNode=Bn);const pt=on(Fe.delay);Oe.delayNextStep(pt)}C.steps.length&&(C.steps.forEach(pt=>Fn(this,pt,Oe)),Oe.currentTimeline.applyStylesToKeyframe(),Oe.subContextCount>ne&&Oe.transformIntoNewTimeline()),M.previousNode=C}visitGroup(C,M){const ne=[];let Oe=M.currentTimeline.currentTime;const Fe=C.options&&C.options.delay?on(C.options.delay):0;C.steps.forEach(pt=>{const St=M.createSubContext(C.options);Fe&&St.delayNextStep(Fe),Fn(this,pt,St),Oe=Math.max(Oe,St.currentTimeline.currentTime),ne.push(St.currentTimeline)}),ne.forEach(pt=>M.currentTimeline.mergeTimelineCollectedStyles(pt)),M.transformIntoNewTimeline(Oe),M.previousNode=C}_visitTiming(C,M){if(C.dynamic){const ne=C.strValue;return Pt(M.params?bt(ne,M.params,M.errors):ne,M.errors)}return{duration:C.duration,delay:C.delay,easing:C.easing}}visitAnimate(C,M){const ne=M.currentAnimateTimings=this._visitTiming(C.timings,M),Oe=M.currentTimeline;ne.delay&&(M.incrementTime(ne.delay),Oe.snapshotCurrentStyles());const Fe=C.style;Fe.type==R.If.Keyframes?this.visitKeyframes(Fe,M):(M.incrementTime(ne.duration),this.visitStyle(Fe,M),Oe.applyStylesToKeyframe()),M.currentAnimateTimings=null,M.previousNode=C}visitStyle(C,M){const ne=M.currentTimeline,Oe=M.currentAnimateTimings;!Oe&&ne.hasCurrentStyleProperties()&&ne.forwardFrame();const Fe=Oe&&Oe.easing||C.easing;C.isEmptyStep?ne.applyEmptyStep(Fe):ne.setStyles(C.styles,Fe,M.errors,M.options),M.previousNode=C}visitKeyframes(C,M){const ne=M.currentAnimateTimings,Oe=M.currentTimeline.duration,Fe=ne.duration,St=M.createSubContext().currentTimeline;St.easing=ne.easing,C.styles.forEach(Ht=>{St.forwardTime((Ht.offset||0)*Fe),St.setStyles(Ht.styles,Ht.easing,M.errors,M.options),St.applyStylesToKeyframe()}),M.currentTimeline.mergeTimelineCollectedStyles(St),M.transformIntoNewTimeline(Oe+Fe),M.previousNode=C}visitQuery(C,M){const ne=M.currentTimeline.currentTime,Oe=C.options||{},Fe=Oe.delay?on(Oe.delay):0;Fe&&(M.previousNode.type===R.If.Style||0==ne&&M.currentTimeline.hasCurrentStyleProperties())&&(M.currentTimeline.snapshotCurrentStyles(),M.previousNode=Bn);let pt=ne;const St=M.invokeQuery(C.selector,C.originalSelector,C.limit,C.includeSelf,!!Oe.optional,M.errors);M.currentQueryTotal=St.length;let Ht=null;St.forEach((cn,Ln)=>{M.currentQueryIndex=Ln;const Vn=M.createSubContext(C.options,cn);Fe&&Vn.delayNextStep(Fe),cn===M.element&&(Ht=Vn.currentTimeline),Fn(this,C.animation,Vn),Vn.currentTimeline.applyStylesToKeyframe(),pt=Math.max(pt,Vn.currentTimeline.currentTime)}),M.currentQueryIndex=0,M.currentQueryTotal=0,M.transformIntoNewTimeline(pt),Ht&&(M.currentTimeline.mergeTimelineCollectedStyles(Ht),M.currentTimeline.snapshotCurrentStyles()),M.previousNode=C}visitStagger(C,M){const ne=M.parentContext,Oe=M.currentTimeline,Fe=C.timings,pt=Math.abs(Fe.duration),St=pt*(M.currentQueryTotal-1);let Ht=pt*M.currentQueryIndex;switch(Fe.duration<0?"reverse":Fe.easing){case"reverse":Ht=St-Ht;break;case"full":Ht=ne.currentStaggerTime}const Ln=M.currentTimeline;Ht&&Ln.delayNextStep(Ht);const Vn=Ln.currentTime;Fn(this,C.animation,M),M.previousNode=C,ne.currentStaggerTime=Oe.currentTime-Vn+(Oe.startTime-ne.currentTimeline.startTime)}}const Bn={};class Sn{constructor(C,M,ne,Oe,Fe,pt,St,Ht){(0,g.A)(this,"_driver",void 0),(0,g.A)(this,"element",void 0),(0,g.A)(this,"subInstructions",void 0),(0,g.A)(this,"_enterClassName",void 0),(0,g.A)(this,"_leaveClassName",void 0),(0,g.A)(this,"errors",void 0),(0,g.A)(this,"timelines",void 0),(0,g.A)(this,"parentContext",null),(0,g.A)(this,"currentTimeline",void 0),(0,g.A)(this,"currentAnimateTimings",null),(0,g.A)(this,"previousNode",Bn),(0,g.A)(this,"subContextCount",0),(0,g.A)(this,"options",{}),(0,g.A)(this,"currentQueryIndex",0),(0,g.A)(this,"currentQueryTotal",0),(0,g.A)(this,"currentStaggerTime",0),this._driver=C,this.element=M,this.subInstructions=ne,this._enterClassName=Oe,this._leaveClassName=Fe,this.errors=pt,this.timelines=St,this.currentTimeline=Ht||new zn(this._driver,M,0),St.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(C,M){if(!C)return;const ne=C;let Oe=this.options;null!=ne.duration&&(Oe.duration=on(ne.duration)),null!=ne.delay&&(Oe.delay=on(ne.delay));const Fe=ne.params;if(Fe){let pt=Oe.params;pt||(pt=this.options.params={}),Object.keys(Fe).forEach(St=>{(!M||!pt.hasOwnProperty(St))&&(pt[St]=bt(Fe[St],pt,this.errors))})}}_copyOptions(){const C={};if(this.options){const M=this.options.params;if(M){const ne=C.params={};Object.keys(M).forEach(Oe=>{ne[Oe]=M[Oe]})}}return C}createSubContext(C=null,M,ne){const Oe=M||this.element,Fe=new Sn(this._driver,Oe,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(Oe,ne||0));return Fe.previousNode=this.previousNode,Fe.currentAnimateTimings=this.currentAnimateTimings,Fe.options=this._copyOptions(),Fe.updateOptions(C),Fe.currentQueryIndex=this.currentQueryIndex,Fe.currentQueryTotal=this.currentQueryTotal,Fe.parentContext=this,this.subContextCount++,Fe}transformIntoNewTimeline(C){return this.previousNode=Bn,this.currentTimeline=this.currentTimeline.fork(this.element,C),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(C,M,ne){const Oe={duration:null!=M?M:C.duration,delay:this.currentTimeline.currentTime+(null!=ne?ne:0)+C.delay,easing:""},Fe=new Dn(this._driver,C.element,C.keyframes,C.preStyleProps,C.postStyleProps,Oe,C.stretchStartingKeyframe);return this.timelines.push(Fe),Oe}incrementTime(C){this.currentTimeline.forwardTime(this.currentTimeline.duration+C)}delayNextStep(C){C>0&&this.currentTimeline.delayNextStep(C)}invokeQuery(C,M,ne,Oe,Fe,pt){let St=[];if(Oe&&St.push(this.element),C.length>0){C=(C=C.replace(Zt,"."+this._enterClassName)).replace(bn,"."+this._leaveClassName);let cn=this._driver.query(this.element,C,1!=ne);0!==ne&&(cn=ne<0?cn.slice(cn.length+ne,cn.length):cn.slice(0,ne)),St.push(...cn)}return!Fe&&0==St.length&&pt.push(function le(){return new s.wOt(3014,!1)}()),St}}class zn{constructor(C,M,ne,Oe){(0,g.A)(this,"_driver",void 0),(0,g.A)(this,"element",void 0),(0,g.A)(this,"startTime",void 0),(0,g.A)(this,"_elementTimelineStylesLookup",void 0),(0,g.A)(this,"duration",0),(0,g.A)(this,"easing",null),(0,g.A)(this,"_previousKeyframe",new Map),(0,g.A)(this,"_currentKeyframe",new Map),(0,g.A)(this,"_keyframes",new Map),(0,g.A)(this,"_styleSummary",new Map),(0,g.A)(this,"_localTimelineStyles",new Map),(0,g.A)(this,"_globalTimelineStyles",void 0),(0,g.A)(this,"_pendingStyles",new Map),(0,g.A)(this,"_backFill",new Map),(0,g.A)(this,"_currentEmptyStepKeyframe",null),this._driver=C,this.element=M,this.startTime=ne,this._elementTimelineStylesLookup=Oe,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(M),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(M,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(C){const M=1===this._keyframes.size&&this._pendingStyles.size;this.duration||M?(this.forwardTime(this.currentTime+C),M&&this.snapshotCurrentStyles()):this.startTime+=C}fork(C,M){return this.applyStylesToKeyframe(),new zn(this._driver,C,M||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(C){this.applyStylesToKeyframe(),this.duration=C,this._loadKeyframe()}_updateStyle(C,M){this._localTimelineStyles.set(C,M),this._globalTimelineStyles.set(C,M),this._styleSummary.set(C,{time:this.currentTime,value:M})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(C){C&&this._previousKeyframe.set("easing",C);for(let[M,ne]of this._globalTimelineStyles)this._backFill.set(M,ne||R.kp),this._currentKeyframe.set(M,R.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(C,M,ne,Oe){M&&this._previousKeyframe.set("easing",M);const Fe=Oe&&Oe.params||{},pt=function Jr(j,C){const M=new Map;let ne;return j.forEach(Oe=>{if("*"===Oe){null!=ne||(ne=C.keys());for(let Fe of ne)M.set(Fe,R.kp)}else for(let[Fe,pt]of Oe)M.set(Fe,pt)}),M}(C,this._globalTimelineStyles);for(let[Ht,cn]of pt){const Ln=bt(cn,Fe,ne);var St;this._pendingStyles.set(Ht,Ln),this._localTimelineStyles.has(Ht)||this._backFill.set(Ht,null!==(St=this._globalTimelineStyles.get(Ht))&&void 0!==St?St:R.kp),this._updateStyle(Ht,Ln)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((C,M)=>{this._currentKeyframe.set(M,C)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((C,M)=>{this._currentKeyframe.has(M)||this._currentKeyframe.set(M,C)}))}snapshotCurrentStyles(){for(let[C,M]of this._localTimelineStyles)this._pendingStyles.set(C,M),this._updateStyle(C,M)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const C=[];for(let M in this._currentKeyframe)C.push(M);return C}mergeTimelineCollectedStyles(C){C._styleSummary.forEach((M,ne)=>{const Oe=this._styleSummary.get(ne);(!Oe||M.time>Oe.time)&&this._updateStyle(ne,M.value)})}buildKeyframes(){this.applyStylesToKeyframe();const C=new Set,M=new Set,ne=1===this._keyframes.size&&0===this.duration;let Oe=[];this._keyframes.forEach((St,Ht)=>{const cn=new Map([...this._backFill,...St]);cn.forEach((Ln,Vn)=>{Ln===R.FX?C.add(Vn):Ln===R.kp&&M.add(Vn)}),ne||cn.set("offset",Ht/this.duration),Oe.push(cn)});const Fe=[...C.values()],pt=[...M.values()];if(ne){const St=Oe[0],Ht=new Map(St);St.set("offset",0),Ht.set("offset",1),Oe=[St,Ht]}return Yr(this.element,Oe,Fe,pt,this.duration,this.startTime,this.easing,!1)}}class Dn extends zn{constructor(C,M,ne,Oe,Fe,pt,St=!1){super(C,M,pt.delay),(0,g.A)(this,"keyframes",void 0),(0,g.A)(this,"preStyleProps",void 0),(0,g.A)(this,"postStyleProps",void 0),(0,g.A)(this,"_stretchStartingKeyframe",void 0),(0,g.A)(this,"timings",void 0),this.keyframes=ne,this.preStyleProps=Oe,this.postStyleProps=Fe,this._stretchStartingKeyframe=St,this.timings={duration:pt.duration,delay:pt.delay,easing:pt.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let C=this.keyframes,{delay:M,duration:ne,easing:Oe}=this.timings;if(this._stretchStartingKeyframe&&M){const Fe=[],pt=ne+M,St=M/pt,Ht=new Map(C[0]);Ht.set("offset",0),Fe.push(Ht);const cn=new Map(C[0]);cn.set("offset",ii(St)),Fe.push(cn);const Ln=C.length-1;for(let Vn=1;Vn<=Ln;Vn++){let dr=new Map(C[Vn]);const lr=dr.get("offset");dr.set("offset",ii((M+lr*ne)/pt)),Fe.push(dr)}ne=pt,M=0,Oe="",C=Fe}return Yr(this.element,C,this.preStyleProps,this.postStyleProps,ne,M,Oe,!0)}}function ii(j,C=3){const M=Math.pow(10,C-1);return Math.round(j*M)/M}function qr(j,C,M,ne,Oe,Fe,pt,St,Ht,cn,Ln,Vn,dr){return{type:0,element:j,triggerName:C,isRemovalTransition:Oe,fromState:M,fromStyles:Fe,toState:ne,toStyles:pt,timelines:St,queriedElements:Ht,preStyleProps:cn,postStyleProps:Ln,totalTime:Vn,errors:dr}}const Ir={};class it{constructor(C,M,ne){(0,g.A)(this,"_triggerName",void 0),(0,g.A)(this,"ast",void 0),(0,g.A)(this,"_stateStyles",void 0),this._triggerName=C,this.ast=M,this._stateStyles=ne}match(C,M,ne,Oe){return function Lt(j,C,M,ne,Oe){return j.some(Fe=>Fe(C,M,ne,Oe))}(this.ast.matchers,C,M,ne,Oe)}buildStyles(C,M,ne){let Oe=this._stateStyles.get("*");return void 0!==C&&(Oe=this._stateStyles.get(null==C?void 0:C.toString())||Oe),Oe?Oe.buildStyles(M,ne):new Map}build(C,M,ne,Oe,Fe,pt,St,Ht,cn,Ln){var Vn;const dr=[],lr=this.ast.options&&this.ast.options.params||Ir,rr=this.buildStyles(ne,St&&St.params||Ir,dr),oi=Ht&&Ht.params||Ir,Ni=this.buildStyles(Oe,oi,dr),Mi=new Set,Hi=new Map,Zr=new Map,co="void"===Oe,Xo={params:Nt(oi,lr),delay:null===(Vn=this.ast.options)||void 0===Vn?void 0:Vn.delay},io=Ln?[]:Rn(C,M,this.ast.animation,Fe,pt,rr,Ni,Xo,cn,dr);let Ur=0;return io.forEach(Uo=>{Ur=Math.max(Uo.duration+Uo.delay,Ur)}),dr.length?qr(M,this._triggerName,ne,Oe,co,rr,Ni,[],[],Hi,Zr,Ur,dr):(io.forEach(Uo=>{const Zi=Uo.element,rs=He(Hi,Zi,new Set);Uo.preStyleProps.forEach(is=>rs.add(is));const Bo=He(Zr,Zi,new Set);Uo.postStyleProps.forEach(is=>Bo.add(is)),Zi!==M&&Mi.add(Zi)}),qr(M,this._triggerName,ne,Oe,co,rr,Ni,io,[...Mi.values()],Hi,Zr,Ur))}}function Nt(j,C){const M=(0,S.A)({},C);return Object.entries(j).forEach(([ne,Oe])=>{null!=Oe&&(M[ne]=Oe)}),M}class yn{constructor(C,M,ne){(0,g.A)(this,"styles",void 0),(0,g.A)(this,"defaultParams",void 0),(0,g.A)(this,"normalizer",void 0),this.styles=C,this.defaultParams=M,this.normalizer=ne}buildStyles(C,M){const ne=new Map,Oe=Nt(C,this.defaultParams);return this.styles.styles.forEach(Fe=>{"string"!=typeof Fe&&Fe.forEach((pt,St)=>{pt&&(pt=bt(pt,Oe,M));const Ht=this.normalizer.normalizePropertyName(St,M);pt=this.normalizer.normalizeStyleValue(St,Ht,pt,M),ne.set(St,pt)})}),ne}}class nr{constructor(C,M,ne){(0,g.A)(this,"name",void 0),(0,g.A)(this,"ast",void 0),(0,g.A)(this,"_normalizer",void 0),(0,g.A)(this,"transitionFactories",[]),(0,g.A)(this,"fallbackTransition",void 0),(0,g.A)(this,"states",new Map),this.name=C,this.ast=M,this._normalizer=ne,M.states.forEach(Oe=>{this.states.set(Oe.name,new yn(Oe.style,Oe.options&&Oe.options.params||{},ne))}),Dr(this.states,"true","1"),Dr(this.states,"false","0"),M.transitions.forEach(Oe=>{this.transitionFactories.push(new it(C,Oe,this.states))}),this.fallbackTransition=function Xr(j,C){return new it(j,{type:R.If.Transition,animation:{type:R.If.Sequence,steps:[],options:null},matchers:[(pt,St)=>!0],options:null,queryCount:0,depCount:0},C)}(C,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(C,M,ne,Oe){return this.transitionFactories.find(pt=>pt.match(C,M,ne,Oe))||null}matchStyles(C,M,ne){return this.fallbackTransition.buildStyles(C,M,ne)}}function Dr(j,C,M){j.has(C)?j.has(M)||j.set(M,j.get(C)):j.has(M)&&j.set(C,j.get(M))}const ei=new Pi;class Un{constructor(C,M,ne){(0,g.A)(this,"bodyNode",void 0),(0,g.A)(this,"_driver",void 0),(0,g.A)(this,"_normalizer",void 0),(0,g.A)(this,"_animations",new Map),(0,g.A)(this,"_playersById",new Map),(0,g.A)(this,"players",[]),this.bodyNode=C,this._driver=M,this._normalizer=ne}register(C,M){const ne=[],Fe=sr(this._driver,M,ne,[]);if(ne.length)throw function dt(){return new s.wOt(3503,!1)}();this._animations.set(C,Fe)}_buildPlayer(C,M,ne){const Oe=C.element,Fe=Be(this._normalizer,C.keyframes,M,ne);return this._driver.animate(Oe,Fe,C.duration,C.delay,C.easing,[],!0)}create(C,M,ne={}){const Oe=[],Fe=this._animations.get(C);let pt;const St=new Map;if(Fe?(pt=Rn(this._driver,M,Fe,At,Hn,new Map,new Map,ne,ei,Oe),pt.forEach(Ln=>{const Vn=He(St,Ln.element,new Map);Ln.postStyleProps.forEach(dr=>Vn.set(dr,null))})):(Oe.push(function Ye(){return new s.wOt(3300,!1)}()),pt=[]),Oe.length)throw function we(){return new s.wOt(3504,!1)}();St.forEach((Ln,Vn)=>{Ln.forEach((dr,lr)=>{Ln.set(lr,this._driver.computeStyle(Vn,lr,R.kp))})});const cn=Se(pt.map(Ln=>{const Vn=St.get(Ln.element);return this._buildPlayer(Ln,new Map,Vn)}));return this._playersById.set(C,cn),cn.onDestroy(()=>this.destroy(C)),this.players.push(cn),cn}destroy(C){const M=this._getPlayer(C);M.destroy(),this._playersById.delete(C);const ne=this.players.indexOf(M);ne>=0&&this.players.splice(ne,1)}_getPlayer(C){const M=this._playersById.get(C);if(!M)throw function ze(){return new s.wOt(3301,!1)}();return M}listen(C,M,ne,Oe){const Fe=Mt(M,"","","");return Tt(this._getPlayer(C),ne,Fe,Oe),()=>{}}command(C,M,ne,Oe){if("register"==ne)return void this.register(C,Oe[0]);if("create"==ne)return void this.create(C,M,Oe[0]||{});const Fe=this._getPlayer(C);switch(ne){case"play":Fe.play();break;case"pause":Fe.pause();break;case"reset":Fe.reset();break;case"restart":Fe.restart();break;case"finish":Fe.finish();break;case"init":Fe.init();break;case"setPosition":Fe.setPosition(parseFloat(Oe[0]));break;case"destroy":this.destroy(C)}}}const _i="ng-animate-queued",T="ng-animate-disabled",Vt=[],$t={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},vn={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},xn="__ng_removed";class gr{get params(){return this.options.params}constructor(C,M=""){(0,g.A)(this,"namespaceId",void 0),(0,g.A)(this,"value",void 0),(0,g.A)(this,"options",void 0),this.namespaceId=M;const ne=C&&C.hasOwnProperty("value");if(this.value=function ci(j){return null!=j?j:null}(ne?C.value:C),ne){const pt=(0,d.A)(C,U);this.options=pt}else this.options={};this.options.params||(this.options.params={})}absorbOptions(C){const M=C.params;if(M){const ne=this.options.params;Object.keys(M).forEach(Oe=>{null==ne[Oe]&&(ne[Oe]=M[Oe])})}}}const tr="void",wr=new gr(tr);class zr{constructor(C,M,ne){(0,g.A)(this,"id",void 0),(0,g.A)(this,"hostElement",void 0),(0,g.A)(this,"_engine",void 0),(0,g.A)(this,"players",[]),(0,g.A)(this,"_triggers",new Map),(0,g.A)(this,"_queue",[]),(0,g.A)(this,"_elementListeners",new Map),(0,g.A)(this,"_hostClassName",void 0),this.id=C,this.hostElement=M,this._engine=ne,this._hostClassName="ng-tns-"+C,Ci(M,this._hostClassName)}listen(C,M,ne,Oe){if(!this._triggers.has(M))throw function Ke(){return new s.wOt(3302,!1)}();if(null==ne||0==ne.length)throw function je(){return new s.wOt(3303,!1)}();if(!function Kn(j){return"start"==j||"done"==j}(ne))throw function Ze(){return new s.wOt(3400,!1)}();const Fe=He(this._elementListeners,C,[]),pt={name:M,phase:ne,callback:Oe};Fe.push(pt);const St=He(this._engine.statesByElement,C,new Map);return St.has(M)||(Ci(C,Yn),Ci(C,Yn+"-"+M),St.set(M,wr)),()=>{this._engine.afterFlush(()=>{const Ht=Fe.indexOf(pt);Ht>=0&&Fe.splice(Ht,1),this._triggers.has(M)||St.delete(M)})}}register(C,M){return!this._triggers.has(C)&&(this._triggers.set(C,M),!0)}_getTrigger(C){const M=this._triggers.get(C);if(!M)throw function k(){return new s.wOt(3401,!1)}();return M}trigger(C,M,ne,Oe=!0){const Fe=this._getTrigger(M),pt=new $i(this.id,M,C);let St=this._engine.statesByElement.get(C);St||(Ci(C,Yn),Ci(C,Yn+"-"+M),this._engine.statesByElement.set(C,St=new Map));let Ht=St.get(M);const cn=new gr(ne,this.id);if(!(ne&&ne.hasOwnProperty("value"))&&Ht&&cn.absorbOptions(Ht.options),St.set(M,cn),Ht||(Ht=wr),cn.value!==tr&&Ht.value===cn.value){if(!function lo(j,C){const M=Object.keys(j),ne=Object.keys(C);if(M.length!=ne.length)return!1;for(let Oe=0;Oe<M.length;Oe++){const Fe=M[Oe];if(!C.hasOwnProperty(Fe)||j[Fe]!==C[Fe])return!1}return!0}(Ht.params,cn.params)){const rr=[],oi=Fe.matchStyles(Ht.value,Ht.params,rr),Ni=Fe.matchStyles(cn.value,cn.params,rr);rr.length?this._engine.reportError(rr):this._engine.afterFlush(()=>{An(C,oi),sn(C,Ni)})}return}const dr=He(this._engine.playersByElement,C,[]);dr.forEach(rr=>{rr.namespaceId==this.id&&rr.triggerName==M&&rr.queued&&rr.destroy()});let lr=Fe.matchTransition(Ht.value,cn.value,C,cn.params),ur=!1;if(!lr){if(!Oe)return;lr=Fe.fallbackTransition,ur=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:C,triggerName:M,transition:lr,fromState:Ht,toState:cn,player:pt,isFallbackTransition:ur}),ur||(Ci(C,_i),pt.onStart(()=>{wo(C,_i)})),pt.onDone(()=>{let rr=this.players.indexOf(pt);rr>=0&&this.players.splice(rr,1);const oi=this._engine.playersByElement.get(C);if(oi){let Ni=oi.indexOf(pt);Ni>=0&&oi.splice(Ni,1)}}),this.players.push(pt),dr.push(pt),pt}deregister(C){this._triggers.delete(C),this._engine.statesByElement.forEach(M=>M.delete(C)),this._elementListeners.forEach((M,ne)=>{this._elementListeners.set(ne,M.filter(Oe=>Oe.name!=C))})}clearElementCache(C){this._engine.statesByElement.delete(C),this._elementListeners.delete(C);const M=this._engine.playersByElement.get(C);M&&(M.forEach(ne=>ne.destroy()),this._engine.playersByElement.delete(C))}_signalRemovalForInnerTriggers(C,M){const ne=this._engine.driver.query(C,or,!0);ne.forEach(Oe=>{if(Oe[xn])return;const Fe=this._engine.fetchNamespacesByElement(Oe);Fe.size?Fe.forEach(pt=>pt.triggerLeaveAnimation(Oe,M,!1,!0)):this.clearElementCache(Oe)}),this._engine.afterFlushAnimationsDone(()=>ne.forEach(Oe=>this.clearElementCache(Oe)))}triggerLeaveAnimation(C,M,ne,Oe){const Fe=this._engine.statesByElement.get(C),pt=new Map;if(Fe){const St=[];if(Fe.forEach((Ht,cn)=>{if(pt.set(cn,Ht.value),this._triggers.has(cn)){const Ln=this.trigger(C,cn,tr,Oe);Ln&&St.push(Ln)}}),St.length)return this._engine.markElementAsRemoved(this.id,C,!0,M,pt),ne&&Se(St).onDone(()=>this._engine.processLeaveNode(C)),!0}return!1}prepareLeaveAnimationListeners(C){const M=this._elementListeners.get(C),ne=this._engine.statesByElement.get(C);if(M&&ne){const Oe=new Set;M.forEach(Fe=>{const pt=Fe.name;if(Oe.has(pt))return;Oe.add(pt);const Ht=this._triggers.get(pt).fallbackTransition,cn=ne.get(pt)||wr,Ln=new gr(tr),Vn=new $i(this.id,pt,C);this._engine.totalQueuedPlayers++,this._queue.push({element:C,triggerName:pt,transition:Ht,fromState:cn,toState:Ln,player:Vn,isFallbackTransition:!0})})}}removeNode(C,M){const ne=this._engine;if(C.childElementCount&&this._signalRemovalForInnerTriggers(C,M),this.triggerLeaveAnimation(C,M,!0))return;let Oe=!1;if(ne.totalAnimations){const Fe=ne.players.length?ne.playersByQueriedElement.get(C):[];if(Fe&&Fe.length)Oe=!0;else{let pt=C;for(;pt=pt.parentNode;)if(ne.statesByElement.get(pt)){Oe=!0;break}}}if(this.prepareLeaveAnimationListeners(C),Oe)ne.markElementAsRemoved(this.id,C,!1,M);else{const Fe=C[xn];(!Fe||Fe===$t)&&(ne.afterFlush(()=>this.clearElementCache(C)),ne.destroyInnerAnimations(C),ne._onRemovalComplete(C,M))}}insertNode(C,M){Ci(C,this._hostClassName)}drainQueuedTransitions(C){const M=[];return this._queue.forEach(ne=>{const Oe=ne.player;if(Oe.destroyed)return;const Fe=ne.element,pt=this._elementListeners.get(Fe);pt&&pt.forEach(St=>{if(St.name==ne.triggerName){const Ht=Mt(Fe,ne.triggerName,ne.fromState.value,ne.toState.value);Ht._data=C,Tt(ne.player,St.phase,Ht,St.callback)}}),Oe.markedForDestroy?this._engine.afterFlush(()=>{Oe.destroy()}):M.push(ne)}),this._queue=[],M.sort((ne,Oe)=>{const Fe=ne.transition.ast.depCount,pt=Oe.transition.ast.depCount;return 0==Fe||0==pt?Fe-pt:this._engine.driver.containsElement(ne.element,Oe.element)?1:-1})}destroy(C){this.players.forEach(M=>M.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,C)}}class vo{_onRemovalComplete(C,M){this.onRemovalComplete(C,M)}constructor(C,M,ne){(0,g.A)(this,"bodyNode",void 0),(0,g.A)(this,"driver",void 0),(0,g.A)(this,"_normalizer",void 0),(0,g.A)(this,"players",[]),(0,g.A)(this,"newHostElements",new Map),(0,g.A)(this,"playersByElement",new Map),(0,g.A)(this,"playersByQueriedElement",new Map),(0,g.A)(this,"statesByElement",new Map),(0,g.A)(this,"disabledNodes",new Set),(0,g.A)(this,"totalAnimations",0),(0,g.A)(this,"totalQueuedPlayers",0),(0,g.A)(this,"_namespaceLookup",{}),(0,g.A)(this,"_namespaceList",[]),(0,g.A)(this,"_flushFns",[]),(0,g.A)(this,"_whenQuietFns",[]),(0,g.A)(this,"namespacesByHostElement",new Map),(0,g.A)(this,"collectedEnterElements",[]),(0,g.A)(this,"collectedLeaveElements",[]),(0,g.A)(this,"onRemovalComplete",(Oe,Fe)=>{}),this.bodyNode=C,this.driver=M,this._normalizer=ne}get queuedPlayers(){const C=[];return this._namespaceList.forEach(M=>{M.players.forEach(ne=>{ne.queued&&C.push(ne)})}),C}createNamespace(C,M){const ne=new zr(C,M,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,M)?this._balanceNamespaceList(ne,M):(this.newHostElements.set(M,ne),this.collectEnterElement(M)),this._namespaceLookup[C]=ne}_balanceNamespaceList(C,M){const ne=this._namespaceList,Oe=this.namespacesByHostElement;if(ne.length-1>=0){let pt=!1,St=this.driver.getParentElement(M);for(;St;){const Ht=Oe.get(St);if(Ht){const cn=ne.indexOf(Ht);ne.splice(cn+1,0,C),pt=!0;break}St=this.driver.getParentElement(St)}pt||ne.unshift(C)}else ne.push(C);return Oe.set(M,C),C}register(C,M){let ne=this._namespaceLookup[C];return ne||(ne=this.createNamespace(C,M)),ne}registerTrigger(C,M,ne){let Oe=this._namespaceLookup[C];Oe&&Oe.register(M,ne)&&this.totalAnimations++}destroy(C,M){C&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const ne=this._fetchNamespace(C);this.namespacesByHostElement.delete(ne.hostElement);const Oe=this._namespaceList.indexOf(ne);Oe>=0&&this._namespaceList.splice(Oe,1),ne.destroy(M),delete this._namespaceLookup[C]}))}_fetchNamespace(C){return this._namespaceLookup[C]}fetchNamespacesByElement(C){const M=new Set,ne=this.statesByElement.get(C);if(ne)for(let Oe of ne.values())if(Oe.namespaceId){const Fe=this._fetchNamespace(Oe.namespaceId);Fe&&M.add(Fe)}return M}trigger(C,M,ne,Oe){if(qi(M)){const Fe=this._fetchNamespace(C);if(Fe)return Fe.trigger(M,ne,Oe),!0}return!1}insertNode(C,M,ne,Oe){if(!qi(M))return;const Fe=M[xn];if(Fe&&Fe.setForRemoval){Fe.setForRemoval=!1,Fe.setForMove=!0;const pt=this.collectedLeaveElements.indexOf(M);pt>=0&&this.collectedLeaveElements.splice(pt,1)}if(C){const pt=this._fetchNamespace(C);pt&&pt.insertNode(M,ne)}Oe&&this.collectEnterElement(M)}collectEnterElement(C){this.collectedEnterElements.push(C)}markElementAsDisabled(C,M){M?this.disabledNodes.has(C)||(this.disabledNodes.add(C),Ci(C,T)):this.disabledNodes.has(C)&&(this.disabledNodes.delete(C),wo(C,T))}removeNode(C,M,ne){if(qi(M)){const Oe=C?this._fetchNamespace(C):null;Oe?Oe.removeNode(M,ne):this.markElementAsRemoved(C,M,!1,ne);const Fe=this.namespacesByHostElement.get(M);Fe&&Fe.id!==C&&Fe.removeNode(M,ne)}else this._onRemovalComplete(M,ne)}markElementAsRemoved(C,M,ne,Oe,Fe){this.collectedLeaveElements.push(M),M[xn]={namespaceId:C,setForRemoval:Oe,hasAnimation:ne,removedBeforeQueried:!1,previousTriggersValues:Fe}}listen(C,M,ne,Oe,Fe){return qi(M)?this._fetchNamespace(C).listen(M,ne,Oe,Fe):()=>{}}_buildInstruction(C,M,ne,Oe,Fe){return C.transition.build(this.driver,C.element,C.fromState.value,C.toState.value,ne,Oe,C.fromState.options,C.toState.options,M,Fe)}destroyInnerAnimations(C){let M=this.driver.query(C,or,!0);M.forEach(ne=>this.destroyActiveAnimationsForElement(ne)),0!=this.playersByQueriedElement.size&&(M=this.driver.query(C,tn,!0),M.forEach(ne=>this.finishActiveQueriedAnimationOnElement(ne)))}destroyActiveAnimationsForElement(C){const M=this.playersByElement.get(C);M&&M.forEach(ne=>{ne.queued?ne.markedForDestroy=!0:ne.destroy()})}finishActiveQueriedAnimationOnElement(C){const M=this.playersByQueriedElement.get(C);M&&M.forEach(ne=>ne.finish())}whenRenderingDone(){return new Promise(C=>{if(this.players.length)return Se(this.players).onDone(()=>C());C()})}processLeaveNode(C){var M;const ne=C[xn];if(ne&&ne.setForRemoval){if(C[xn]=$t,ne.namespaceId){this.destroyInnerAnimations(C);const Oe=this._fetchNamespace(ne.namespaceId);Oe&&Oe.clearElementCache(C)}this._onRemovalComplete(C,ne.setForRemoval)}null!==(M=C.classList)&&void 0!==M&&M.contains(T)&&this.markElementAsDisabled(C,!1),this.driver.query(C,".ng-animate-disabled",!0).forEach(Oe=>{this.markElementAsDisabled(Oe,!1)})}flush(C=-1){let M=[];if(this.newHostElements.size&&(this.newHostElements.forEach((ne,Oe)=>this._balanceNamespaceList(ne,Oe)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let ne=0;ne<this.collectedEnterElements.length;ne++)Ci(this.collectedEnterElements[ne],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const ne=[];try{M=this._flushAnimations(ne,C)}finally{for(let Oe=0;Oe<ne.length;Oe++)ne[Oe]()}}else for(let ne=0;ne<this.collectedLeaveElements.length;ne++)this.processLeaveNode(this.collectedLeaveElements[ne]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(ne=>ne()),this._flushFns=[],this._whenQuietFns.length){const ne=this._whenQuietFns;this._whenQuietFns=[],M.length?Se(M).onDone(()=>{ne.forEach(Oe=>Oe())}):ne.forEach(Oe=>Oe())}}reportError(C){throw function F(){return new s.wOt(3402,!1)}()}_flushAnimations(C,M){const ne=new Pi,Oe=[],Fe=new Map,pt=[],St=new Map,Ht=new Map,cn=new Map,Ln=new Set;this.disabledNodes.forEach(ir=>{Ln.add(ir);const hr=this.driver.query(ir,".ng-animate-queued",!0);for(let fr=0;fr<hr.length;fr++)Ln.add(hr[fr])});const Vn=this.bodyNode,dr=Array.from(this.statesByElement.keys()),lr=Ki(dr,this.collectedEnterElements),ur=new Map;let rr=0;lr.forEach((ir,hr)=>{const fr=At+rr++;ur.set(hr,fr),ir.forEach(Tr=>Ci(Tr,fr))});const oi=[],Ni=new Set,Mi=new Set;for(let ir=0;ir<this.collectedLeaveElements.length;ir++){const hr=this.collectedLeaveElements[ir],fr=hr[xn];fr&&fr.setForRemoval&&(oi.push(hr),Ni.add(hr),fr.hasAnimation?this.driver.query(hr,".ng-star-inserted",!0).forEach(Tr=>Ni.add(Tr)):Mi.add(hr))}const Hi=new Map,Zr=Ki(dr,Array.from(Ni));Zr.forEach((ir,hr)=>{const fr=Hn+rr++;Hi.set(hr,fr),ir.forEach(Tr=>Ci(Tr,fr))}),C.push(()=>{lr.forEach((ir,hr)=>{const fr=ur.get(hr);ir.forEach(Tr=>wo(Tr,fr))}),Zr.forEach((ir,hr)=>{const fr=Hi.get(hr);ir.forEach(Tr=>wo(Tr,fr))}),oi.forEach(ir=>{this.processLeaveNode(ir)})});const co=[],Xo=[];for(let ir=this._namespaceList.length-1;ir>=0;ir--)this._namespaceList[ir].drainQueuedTransitions(M).forEach(fr=>{const Tr=fr.player,bi=fr.element;if(co.push(Tr),this.collectedEnterElements.length){const eo=bi[xn];if(eo&&eo.setForMove){if(eo.previousTriggersValues&&eo.previousTriggersValues.has(fr.triggerName)){const us=eo.previousTriggersValues.get(fr.triggerName),Eo=this.statesByElement.get(fr.element);if(Eo&&Eo.has(fr.triggerName)){const Us=Eo.get(fr.triggerName);Us.value=us,Eo.set(fr.triggerName,Us)}}return void Tr.destroy()}}const Ro=!Vn||!this.driver.containsElement(Vn,bi),ti=Hi.get(bi),fo=ur.get(bi),si=this._buildInstruction(fr,ne,fo,ti,Ro);if(si.errors&&si.errors.length)return void Xo.push(si);if(Ro)return Tr.onStart(()=>An(bi,si.fromStyles)),Tr.onDestroy(()=>sn(bi,si.toStyles)),void Oe.push(Tr);if(fr.isFallbackTransition)return Tr.onStart(()=>An(bi,si.fromStyles)),Tr.onDestroy(()=>sn(bi,si.toStyles)),void Oe.push(Tr);const Ds=[];si.timelines.forEach(eo=>{eo.stretchStartingKeyframe=!0,this.disabledNodes.has(eo.element)||Ds.push(eo)}),si.timelines=Ds,ne.append(bi,si.timelines),pt.push({instruction:si,player:Tr,element:bi}),si.queriedElements.forEach(eo=>He(St,eo,[]).push(Tr)),si.preStyleProps.forEach((eo,us)=>{if(eo.size){let Eo=Ht.get(us);Eo||Ht.set(us,Eo=new Set),eo.forEach((Us,os)=>Eo.add(os))}}),si.postStyleProps.forEach((eo,us)=>{let Eo=cn.get(us);Eo||cn.set(us,Eo=new Set),eo.forEach((Us,os)=>Eo.add(os))})});if(Xo.length){const ir=[];Xo.forEach(hr=>{ir.push(function P(){return new s.wOt(3505,!1)}())}),co.forEach(hr=>hr.destroy()),this.reportError(ir)}const io=new Map,Ur=new Map;pt.forEach(ir=>{const hr=ir.element;ne.has(hr)&&(Ur.set(hr,hr),this._beforeAnimationBuild(ir.player.namespaceId,ir.instruction,io))}),Oe.forEach(ir=>{const hr=ir.element;this._getPreviousPlayers(hr,!1,ir.namespaceId,ir.triggerName,null).forEach(Tr=>{He(io,hr,[]).push(Tr),Tr.destroy()})});const Uo=oi.filter(ir=>Qo(ir,Ht,cn)),Zi=new Map;ns(Zi,this.driver,Mi,cn,R.kp).forEach(ir=>{Qo(ir,Ht,cn)&&Uo.push(ir)});const Bo=new Map;lr.forEach((ir,hr)=>{ns(Bo,this.driver,new Set(ir),Ht,R.FX)}),Uo.forEach(ir=>{var hr,fr;const Tr=Zi.get(ir),bi=Bo.get(ir);Zi.set(ir,new Map([...null!==(hr=null==Tr?void 0:Tr.entries())&&void 0!==hr?hr:[],...null!==(fr=null==bi?void 0:bi.entries())&&void 0!==fr?fr:[]]))});const is=[],Ia=[],Ts={};pt.forEach(ir=>{const{element:hr,player:fr,instruction:Tr}=ir;if(ne.has(hr)){if(Ln.has(hr))return fr.onDestroy(()=>sn(hr,Tr.toStyles)),fr.disabled=!0,fr.overrideTotalTime(Tr.totalTime),void Oe.push(fr);let bi=Ts;if(Ur.size>1){let ti=hr;const fo=[];for(;ti=ti.parentNode;){const si=Ur.get(ti);if(si){bi=si;break}fo.push(ti)}fo.forEach(si=>Ur.set(si,bi))}const Ro=this._buildAnimation(fr.namespaceId,Tr,io,Fe,Bo,Zi);if(fr.setRealPlayer(Ro),bi===Ts)is.push(fr);else{const ti=this.playersByElement.get(bi);ti&&ti.length&&(fr.parentPlayer=Se(ti)),Oe.push(fr)}}else An(hr,Tr.fromStyles),fr.onDestroy(()=>sn(hr,Tr.toStyles)),Ia.push(fr),Ln.has(hr)&&Oe.push(fr)}),Ia.forEach(ir=>{const hr=Fe.get(ir.element);if(hr&&hr.length){const fr=Se(hr);ir.setRealPlayer(fr)}}),Oe.forEach(ir=>{ir.parentPlayer?ir.syncPlayerEvents(ir.parentPlayer):ir.destroy()});for(let ir=0;ir<oi.length;ir++){const hr=oi[ir],fr=hr[xn];if(wo(hr,Hn),fr&&fr.hasAnimation)continue;let Tr=[];if(St.size){let Ro=St.get(hr);Ro&&Ro.length&&Tr.push(...Ro);let ti=this.driver.query(hr,tn,!0);for(let fo=0;fo<ti.length;fo++){let si=St.get(ti[fo]);si&&si.length&&Tr.push(...si)}}const bi=Tr.filter(Ro=>!Ro.destroyed);bi.length?as(this,hr,bi):this.processLeaveNode(hr)}return oi.length=0,is.forEach(ir=>{this.players.push(ir),ir.onDone(()=>{ir.destroy();const hr=this.players.indexOf(ir);this.players.splice(hr,1)}),ir.play()}),is}afterFlush(C){this._flushFns.push(C)}afterFlushAnimationsDone(C){this._whenQuietFns.push(C)}_getPreviousPlayers(C,M,ne,Oe,Fe){let pt=[];if(M){const St=this.playersByQueriedElement.get(C);St&&(pt=St)}else{const St=this.playersByElement.get(C);if(St){const Ht=!Fe||Fe==tr;St.forEach(cn=>{cn.queued||!Ht&&cn.triggerName!=Oe||pt.push(cn)})}}return(ne||Oe)&&(pt=pt.filter(St=>!(ne&&ne!=St.namespaceId||Oe&&Oe!=St.triggerName))),pt}_beforeAnimationBuild(C,M,ne){const Fe=M.element,pt=M.isRemovalTransition?void 0:C,St=M.isRemovalTransition?void 0:M.triggerName;for(const Ht of M.timelines){const cn=Ht.element,Ln=cn!==Fe,Vn=He(ne,cn,[]);this._getPreviousPlayers(cn,Ln,pt,St,M.toState).forEach(lr=>{const ur=lr.getRealPlayer();ur.beforeDestroy&&ur.beforeDestroy(),lr.destroy(),Vn.push(lr)})}An(Fe,M.fromStyles)}_buildAnimation(C,M,ne,Oe,Fe,pt){const St=M.triggerName,Ht=M.element,cn=[],Ln=new Set,Vn=new Set,dr=M.timelines.map(ur=>{const rr=ur.element;Ln.add(rr);const oi=rr[xn];if(oi&&oi.removedBeforeQueried)return new R.sf(ur.duration,ur.delay);const Ni=rr!==Ht,Mi=function Fo(j){const C=[];return Io(j,C),C}((ne.get(rr)||Vt).map(io=>io.getRealPlayer())).filter(io=>!!io.element&&io.element===rr),Hi=Fe.get(rr),Zr=pt.get(rr),co=Be(this._normalizer,ur.keyframes,Hi,Zr),Xo=this._buildPlayer(ur,co,Mi);if(ur.subTimeline&&Oe&&Vn.add(rr),Ni){const io=new $i(C,St,rr);io.setRealPlayer(Xo),cn.push(io)}return Xo});cn.forEach(ur=>{He(this.playersByQueriedElement,ur.element,[]).push(ur),ur.onDone(()=>function zo(j,C,M){let ne=j.get(C);if(ne){if(ne.length){const Oe=ne.indexOf(M);ne.splice(Oe,1)}0==ne.length&&j.delete(C)}return ne}(this.playersByQueriedElement,ur.element,ur))}),Ln.forEach(ur=>Ci(ur,jt));const lr=Se(dr);return lr.onDestroy(()=>{Ln.forEach(ur=>wo(ur,jt)),sn(Ht,M.toStyles)}),Vn.forEach(ur=>{He(Oe,ur,[]).push(lr)}),lr}_buildPlayer(C,M,ne){return M.length>0?this.driver.animate(C.element,M,C.duration,C.delay,C.easing,ne):new R.sf(C.duration,C.delay)}}class $i{constructor(C,M,ne){(0,g.A)(this,"namespaceId",void 0),(0,g.A)(this,"triggerName",void 0),(0,g.A)(this,"element",void 0),(0,g.A)(this,"_player",new R.sf),(0,g.A)(this,"_containsRealPlayer",!1),(0,g.A)(this,"_queuedCallbacks",new Map),(0,g.A)(this,"destroyed",!1),(0,g.A)(this,"parentPlayer",null),(0,g.A)(this,"markedForDestroy",!1),(0,g.A)(this,"disabled",!1),(0,g.A)(this,"queued",!0),(0,g.A)(this,"totalTime",0),this.namespaceId=C,this.triggerName=M,this.element=ne}setRealPlayer(C){this._containsRealPlayer||(this._player=C,this._queuedCallbacks.forEach((M,ne)=>{M.forEach(Oe=>Tt(C,ne,void 0,Oe))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(C.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(C){this.totalTime=C}syncPlayerEvents(C){const M=this._player;M.triggerCallback&&C.onStart(()=>M.triggerCallback("start")),C.onDone(()=>this.finish()),C.onDestroy(()=>this.destroy())}_queueEvent(C,M){He(this._queuedCallbacks,C,[]).push(M)}onDone(C){this.queued&&this._queueEvent("done",C),this._player.onDone(C)}onStart(C){this.queued&&this._queueEvent("start",C),this._player.onStart(C)}onDestroy(C){this.queued&&this._queueEvent("destroy",C),this._player.onDestroy(C)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(C){this.queued||this._player.setPosition(C)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(C){const M=this._player;M.triggerCallback&&M.triggerCallback(C)}}function qi(j){return j&&1===j.nodeType}function ss(j,C){const M=j.style.display;return j.style.display=null!=C?C:"none",M}function ns(j,C,M,ne,Oe){const Fe=[];M.forEach(Ht=>Fe.push(ss(Ht)));const pt=[];ne.forEach((Ht,cn)=>{const Ln=new Map;Ht.forEach(Vn=>{const dr=C.computeStyle(cn,Vn,Oe);Ln.set(Vn,dr),(!dr||0==dr.length)&&(cn[xn]=vn,pt.push(cn))}),j.set(cn,Ln)});let St=0;return M.forEach(Ht=>ss(Ht,Fe[St++])),pt}function Ki(j,C){const M=new Map;if(j.forEach(St=>M.set(St,[])),0==C.length)return M;const Oe=new Set(C),Fe=new Map;function pt(St){if(!St)return 1;let Ht=Fe.get(St);if(Ht)return Ht;const cn=St.parentNode;return Ht=M.has(cn)?cn:Oe.has(cn)?1:pt(cn),Fe.set(St,Ht),Ht}return C.forEach(St=>{const Ht=pt(St);1!==Ht&&M.get(Ht).push(St)}),M}function Ci(j,C){var M;null===(M=j.classList)||void 0===M||M.add(C)}function wo(j,C){var M;null===(M=j.classList)||void 0===M||M.remove(C)}function as(j,C,M){Se(M).onDone(()=>j.processLeaveNode(C))}function Io(j,C){for(let M=0;M<j.length;M++){const ne=j[M];ne instanceof R.ui?Io(ne.players,C):C.push(ne)}}function Qo(j,C,M){const ne=M.get(j);if(!ne)return!1;let Oe=C.get(j);return Oe?ne.forEach(Fe=>Oe.add(Fe)):C.set(j,ne),M.delete(j),!0}class To{constructor(C,M,ne){(0,g.A)(this,"_driver",void 0),(0,g.A)(this,"_normalizer",void 0),(0,g.A)(this,"_transitionEngine",void 0),(0,g.A)(this,"_timelineEngine",void 0),(0,g.A)(this,"_triggerCache",{}),(0,g.A)(this,"onRemovalComplete",(Oe,Fe)=>{}),this._driver=M,this._normalizer=ne,this._transitionEngine=new vo(C.body,M,ne),this._timelineEngine=new Un(C.body,M,ne),this._transitionEngine.onRemovalComplete=(Oe,Fe)=>this.onRemovalComplete(Oe,Fe)}registerTrigger(C,M,ne,Oe,Fe){const pt=C+"-"+Oe;let St=this._triggerCache[pt];if(!St){const Ht=[],Ln=sr(this._driver,Fe,Ht,[]);if(Ht.length)throw function Le(){return new s.wOt(3404,!1)}();St=function Tn(j,C,M){return new nr(j,C,M)}(Oe,Ln,this._normalizer),this._triggerCache[pt]=St}this._transitionEngine.registerTrigger(M,Oe,St)}register(C,M){this._transitionEngine.register(C,M)}destroy(C,M){this._transitionEngine.destroy(C,M)}onInsert(C,M,ne,Oe){this._transitionEngine.insertNode(C,M,ne,Oe)}onRemove(C,M,ne){this._transitionEngine.removeNode(C,M,ne)}disableAnimations(C,M){this._transitionEngine.markElementAsDisabled(C,M)}process(C,M,ne,Oe){if("@"==ne.charAt(0)){const[Fe,pt]=lt(ne);this._timelineEngine.command(Fe,M,pt,Oe)}else this._transitionEngine.trigger(C,M,ne,Oe)}listen(C,M,ne,Oe,Fe){if("@"==ne.charAt(0)){const[pt,St]=lt(ne);return this._timelineEngine.listen(pt,M,St,Fe)}return this._transitionEngine.listen(C,M,ne,Oe,Fe)}flush(C=-1){this._transitionEngine.flush(C)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(C){this._transitionEngine.afterFlushAnimationsDone(C)}}let ls=(()=>{class j{constructor(M,ne,Oe){(0,g.A)(this,"_element",void 0),(0,g.A)(this,"_startStyles",void 0),(0,g.A)(this,"_endStyles",void 0),(0,g.A)(this,"_state",0),(0,g.A)(this,"_initialStyles",void 0),this._element=M,this._startStyles=ne,this._endStyles=Oe;let Fe=j.initialStylesByElement.get(M);Fe||j.initialStylesByElement.set(M,Fe=new Map),this._initialStyles=Fe}start(){this._state<1&&(this._startStyles&&sn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(sn(this._element,this._initialStyles),this._endStyles&&(sn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(j.initialStylesByElement.delete(this._element),this._startStyles&&(An(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(An(this._element,this._endStyles),this._endStyles=null),sn(this._element,this._initialStyles),this._state=3)}}return(0,g.A)(j,"initialStylesByElement",new WeakMap),j})();function Ri(j){let C=null;return j.forEach((M,ne)=>{(function gs(j){return"display"===j||"position"===j})(ne)&&(C=C||new Map,C.set(ne,M))}),C}class Cs{constructor(C,M,ne,Oe){(0,g.A)(this,"element",void 0),(0,g.A)(this,"keyframes",void 0),(0,g.A)(this,"options",void 0),(0,g.A)(this,"_specialStyles",void 0),(0,g.A)(this,"_onDoneFns",[]),(0,g.A)(this,"_onStartFns",[]),(0,g.A)(this,"_onDestroyFns",[]),(0,g.A)(this,"_duration",void 0),(0,g.A)(this,"_delay",void 0),(0,g.A)(this,"_initialized",!1),(0,g.A)(this,"_finished",!1),(0,g.A)(this,"_started",!1),(0,g.A)(this,"_destroyed",!1),(0,g.A)(this,"_finalKeyframe",void 0),(0,g.A)(this,"_originalOnDoneFns",[]),(0,g.A)(this,"_originalOnStartFns",[]),(0,g.A)(this,"domPlayer",void 0),(0,g.A)(this,"time",0),(0,g.A)(this,"parentPlayer",null),(0,g.A)(this,"currentSnapshot",new Map),this.element=C,this.keyframes=M,this.options=ne,this._specialStyles=Oe,this._duration=ne.duration,this._delay=ne.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(C=>C()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const C=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,C,this.options),this._finalKeyframe=C.length?C[C.length-1]:new Map;const M=()=>this._onFinish();this.domPlayer.addEventListener("finish",M),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",M)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(C){const M=[];return C.forEach(ne=>{M.push(Object.fromEntries(ne))}),M}_triggerWebAnimation(C,M,ne){return C.animate(this._convertKeyframesToObject(M),ne)}onStart(C){this._originalOnStartFns.push(C),this._onStartFns.push(C)}onDone(C){this._originalOnDoneFns.push(C),this._onDoneFns.push(C)}onDestroy(C){this._onDestroyFns.push(C)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(C=>C()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(C=>C()),this._onDestroyFns=[])}setPosition(C){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=C*this.time}getPosition(){var C;return+(null!==(C=this.domPlayer.currentTime)&&void 0!==C?C:0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const C=new Map;this.hasStarted()&&this._finalKeyframe.forEach((ne,Oe)=>{"offset"!==Oe&&C.set(Oe,this._finished?ne:Ar(this.element,Oe))}),this.currentSnapshot=C}triggerCallback(C){const M="start"===C?this._onStartFns:this._onDoneFns;M.forEach(ne=>ne()),M.length=0}}class Yo{validateStyleProperty(C){return!0}validateAnimatableStyleProperty(C){return!0}containsElement(C,M){return Ve(C,M)}getParentElement(C){return Ce(C)}query(C,M,ne){return rt(C,M,ne)}computeStyle(C,M,ne){return Ar(C,M)}animate(C,M,ne,Oe,Fe,pt=[]){const Ht={duration:ne,delay:Oe,fill:0==Oe?"both":"forwards"};Fe&&(Ht.easing=Fe);const cn=new Map,Ln=pt.filter(lr=>lr instanceof Cs);(function Pn(j,C){return 0===j||0===C})(ne,Oe)&&Ln.forEach(lr=>{lr.currentSnapshot.forEach((ur,rr)=>cn.set(rr,ur))});let Vn=function Dt(j){return j.length?j[0]instanceof Map?j:j.map(C=>new Map(Object.entries(C))):[]}(M).map(lr=>new Map(lr));Vn=function jn(j,C,M){if(M.size&&C.length){let ne=C[0],Oe=[];if(M.forEach((Fe,pt)=>{ne.has(pt)||Oe.push(pt),ne.set(pt,Fe)}),Oe.length)for(let Fe=1;Fe<C.length;Fe++){let pt=C[Fe];Oe.forEach(St=>pt.set(St,Ar(j,St)))}}return C}(C,Vn,cn);const dr=function _o(j,C){let M=null,ne=null;return Array.isArray(C)&&C.length?(M=Ri(C[0]),C.length>1&&(ne=Ri(C[C.length-1]))):C instanceof Map&&(M=Ri(C)),M||ne?new ls(j,M,ne):null}(C,Vn);return new Cs(C,Vn,Ht,dr)}}const Do="@.disabled";class Ys{constructor(C,M,ne,Oe){(0,g.A)(this,"namespaceId",void 0),(0,g.A)(this,"delegate",void 0),(0,g.A)(this,"engine",void 0),(0,g.A)(this,"_onDestroy",void 0),(0,g.A)(this,"\u0275type",0),this.namespaceId=C,this.delegate=M,this.engine=ne,this._onDestroy=Oe}get data(){return this.delegate.data}destroyNode(C){var M,ne;null===(M=(ne=this.delegate).destroyNode)||void 0===M||M.call(ne,C)}destroy(){var C;this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),null===(C=this._onDestroy)||void 0===C||C.call(this)}createElement(C,M){return this.delegate.createElement(C,M)}createComment(C){return this.delegate.createComment(C)}createText(C){return this.delegate.createText(C)}appendChild(C,M){this.delegate.appendChild(C,M),this.engine.onInsert(this.namespaceId,M,C,!1)}insertBefore(C,M,ne,Oe=!0){this.delegate.insertBefore(C,M,ne),this.engine.onInsert(this.namespaceId,M,C,Oe)}removeChild(C,M,ne){this.parentNode(M)&&this.engine.onRemove(this.namespaceId,M,this.delegate)}selectRootElement(C,M){return this.delegate.selectRootElement(C,M)}parentNode(C){return this.delegate.parentNode(C)}nextSibling(C){return this.delegate.nextSibling(C)}setAttribute(C,M,ne,Oe){this.delegate.setAttribute(C,M,ne,Oe)}removeAttribute(C,M,ne){this.delegate.removeAttribute(C,M,ne)}addClass(C,M){this.delegate.addClass(C,M)}removeClass(C,M){this.delegate.removeClass(C,M)}setStyle(C,M,ne,Oe){this.delegate.setStyle(C,M,ne,Oe)}removeStyle(C,M,ne){this.delegate.removeStyle(C,M,ne)}setProperty(C,M,ne){"@"==M.charAt(0)&&M==Do?this.disableAnimations(C,!!ne):this.delegate.setProperty(C,M,ne)}setValue(C,M){this.delegate.setValue(C,M)}listen(C,M,ne,Oe){return this.delegate.listen(C,M,ne,Oe)}disableAnimations(C,M){this.engine.disableAnimations(C,M)}}class Gr extends Ys{constructor(C,M,ne,Oe,Fe){super(M,ne,Oe,Fe),(0,g.A)(this,"factory",void 0),this.factory=C,this.namespaceId=M}setProperty(C,M,ne){"@"==M.charAt(0)?"."==M.charAt(1)&&M==Do?this.disableAnimations(C,ne=void 0===ne||!!ne):this.engine.process(this.namespaceId,C,M.slice(1),ne):this.delegate.setProperty(C,M,ne)}listen(C,M,ne,Oe){if("@"==M.charAt(0)){const Fe=function Fi(j){switch(j){case"body":return document.body;case"document":return document;case"window":return window;default:return j}}(C);let pt=M.slice(1),St="";return"@"!=pt.charAt(0)&&([pt,St]=function uo(j){const C=j.indexOf(".");return[j.substring(0,C),j.slice(C+1)]}(pt)),this.engine.listen(this.namespaceId,Fe,pt,St,Ht=>{this.factory.scheduleListenerCallback(Ht._data||-1,ne,Ht)})}return this.delegate.listen(C,M,ne,Oe)}}class Fs{constructor(C,M,ne){(0,g.A)(this,"delegate",void 0),(0,g.A)(this,"engine",void 0),(0,g.A)(this,"_zone",void 0),(0,g.A)(this,"_currentId",0),(0,g.A)(this,"_microtaskId",1),(0,g.A)(this,"_animationCallbacksBuffer",[]),(0,g.A)(this,"_rendererCache",new Map),(0,g.A)(this,"_cdRecurDepth",0),this.delegate=C,this.engine=M,this._zone=ne,M.onRemovalComplete=(Oe,Fe)=>{null==Fe||Fe.removeChild(null,Oe)}}createRenderer(C,M){var ne;const Fe=this.delegate.createRenderer(C,M);if(!C||null==M||null===(ne=M.data)||void 0===ne||!ne.animation){const Ln=this._rendererCache;let Vn=Ln.get(Fe);return Vn||(Vn=new Ys("",Fe,this.engine,()=>Ln.delete(Fe)),Ln.set(Fe,Vn)),Vn}const pt=M.id,St=M.id+"-"+this._currentId;this._currentId++,this.engine.register(St,C);const Ht=Ln=>{Array.isArray(Ln)?Ln.forEach(Ht):this.engine.registerTrigger(pt,St,C,Ln.name,Ln)};return M.data.animation.forEach(Ht),new Gr(this,St,Fe,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(C,M,ne){if(C>=0&&C<this._microtaskId)return void this._zone.run(()=>M(ne));const Oe=this._animationCallbacksBuffer;0==Oe.length&&queueMicrotask(()=>{this._zone.run(()=>{Oe.forEach(Fe=>{const[pt,St]=Fe;pt(St)}),this._animationCallbacksBuffer=[]})}),Oe.push([M,ne])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(C){var M,ne;this.engine.flush(),null===(M=(ne=this.delegate).componentReplaced)||void 0===M||M.call(ne,C)}}var Ss=c(177);const Is=[{provide:Ft,useFactory:function Vr(){return new Wr}},{provide:To,useClass:(()=>{var j;class C extends To{constructor(ne,Oe,Fe){super(ne,Oe,Fe)}ngOnDestroy(){this.flush()}}return j=C,(0,g.A)(C,"\u0275fac",function(ne){return new(ne||j)(s.KVO(Ss.qQ),s.KVO(Yt),s.KVO(Ft))}),(0,g.A)(C,"\u0275prov",s.jDH({token:j,factory:j.\u0275fac})),C})()},{provide:s._9s,useFactory:function yo(j,C,M){return new Fs(j,C,M)},deps:[f.B7,To,s.SKi]}],vs=[{provide:Yt,useFactory:()=>new Yo},{provide:s.bc$,useValue:"BrowserAnimations"},...Is],_s=[{provide:Yt,useClass:ct},{provide:s.bc$,useValue:"NoopAnimations"},...Is];let Ue=(()=>{var j;class C{static withConfig(ne){return{ngModule:C,providers:ne.disableAnimations?_s:vs}}}return j=C,(0,g.A)(C,"\u0275fac",function(ne){return new(ne||j)}),(0,g.A)(C,"\u0275mod",s.$C({type:j})),(0,g.A)(C,"\u0275inj",s.G2t({providers:vs,imports:[f.Bb]})),C})()},345:(se,E,c)=>{"use strict";c.d(E,{$x:()=>Qn,B7:()=>Le,Bb:()=>De,W8:()=>Ge,dE:()=>Pt,hE:()=>Me,sG:()=>Et,up:()=>jt});var g=c(9379),s=c(1660),f=c(177),d=c(4438),S=c(1626);class R extends f.VF{constructor(...vt){super(...vt),(0,s.A)(this,"supportsDOMEvents",!0)}}class U extends R{static makeCurrent(){(0,f.ZD)(new U)}onAndCancel(vt,bt,ht,wt){return vt.addEventListener(bt,ht,wt),()=>{vt.removeEventListener(bt,ht,wt)}}dispatchEvent(vt,bt){vt.dispatchEvent(bt)}remove(vt){vt.remove()}createElement(vt,bt){return(bt=bt||this.getDefaultDocument()).createElement(vt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(vt){return vt.nodeType===Node.ELEMENT_NODE}isShadowRoot(vt){return vt instanceof DocumentFragment}getGlobalEventTarget(vt,bt){return"window"===bt?window:"document"===bt?vt:"body"===bt?vt.body:null}getBaseHref(vt){const bt=function z(){return q=q||document.querySelector("base"),q?q.getAttribute("href"):null}();return null==bt?null:function ve(st){return new URL(st,document.baseURI).pathname}(bt)}resetBaseElement(){q=null}getUserAgent(){return window.navigator.userAgent}getCookie(vt){return(0,f._b)(document.cookie,vt)}}let q=null,V=(()=>{var st;class vt{build(){return new XMLHttpRequest}}return st=vt,(0,s.A)(vt,"\u0275fac",function(ht){return new(ht||st)}),(0,s.A)(vt,"\u0275prov",d.jDH({token:st,factory:st.\u0275fac})),vt})();const Q=new d.nKC("");let ie=(()=>{var st;class vt{constructor(ht,wt){(0,s.A)(this,"_zone",void 0),(0,s.A)(this,"_plugins",void 0),(0,s.A)(this,"_eventNameToPlugin",new Map),this._zone=wt,ht.forEach(pn=>{pn.manager=this}),this._plugins=ht.slice().reverse()}addEventListener(ht,wt,pn,Pn){return this._findPluginFor(wt).addEventListener(ht,wt,pn,Pn)}getZone(){return this._zone}_findPluginFor(ht){let wt=this._eventNameToPlugin.get(ht);if(wt)return wt;if(wt=this._plugins.find(Pn=>Pn.supports(ht)),!wt)throw new d.wOt(5101,!1);return this._eventNameToPlugin.set(ht,wt),wt}}return st=vt,(0,s.A)(vt,"\u0275fac",function(ht){return new(ht||st)(d.KVO(Q),d.KVO(d.SKi))}),(0,s.A)(vt,"\u0275prov",d.jDH({token:st,factory:st.\u0275fac})),vt})();class K{constructor(vt){(0,s.A)(this,"_doc",void 0),(0,s.A)(this,"manager",void 0),this._doc=vt}}const ee="ng-app-id";function he(st){for(const vt of st)vt.remove()}function Ae(st,vt){const bt=vt.createElement("style");return bt.textContent=st,bt}function oe(st,vt){const bt=vt.createElement("link");return bt.setAttribute("rel","stylesheet"),bt.setAttribute("href",st),bt}let _=(()=>{var st;class vt{constructor(ht,wt,pn,Pn={}){(0,s.A)(this,"doc",void 0),(0,s.A)(this,"appId",void 0),(0,s.A)(this,"nonce",void 0),(0,s.A)(this,"inline",new Map),(0,s.A)(this,"external",new Map),(0,s.A)(this,"hosts",new Set),(0,s.A)(this,"isServer",void 0),this.doc=ht,this.appId=wt,this.nonce=pn,this.isServer=(0,f.Vy)(Pn),function ue(st,vt,bt,ht){var wt;const pn=null===(wt=st.head)||void 0===wt?void 0:wt.querySelectorAll("style[".concat(ee,'="').concat(vt,'"],link[').concat(ee,'="').concat(vt,'"]'));if(pn)for(const Pn of pn)Pn.removeAttribute(ee),Pn instanceof HTMLLinkElement?ht.set(Pn.href.slice(Pn.href.lastIndexOf("/")+1),{usage:0,elements:[Pn]}):Pn.textContent&&bt.set(Pn.textContent,{usage:0,elements:[Pn]})}(ht,wt,this.inline,this.external),this.hosts.add(ht.head)}addStyles(ht,wt){for(const pn of ht)this.addUsage(pn,this.inline,Ae);null==wt||wt.forEach(pn=>this.addUsage(pn,this.external,oe))}removeStyles(ht,wt){for(const pn of ht)this.removeUsage(pn,this.inline);null==wt||wt.forEach(pn=>this.removeUsage(pn,this.external))}addUsage(ht,wt,pn){const Pn=wt.get(ht);Pn?Pn.usage++:wt.set(ht,{usage:1,elements:[...this.hosts].map(jn=>this.addElement(jn,pn(ht,this.doc)))})}removeUsage(ht,wt){const pn=wt.get(ht);pn&&(pn.usage--,pn.usage<=0&&(he(pn.elements),wt.delete(ht)))}ngOnDestroy(){for(const[,{elements:ht}]of[...this.inline,...this.external])he(ht);this.hosts.clear()}addHost(ht){this.hosts.add(ht);for(const[wt,{elements:pn}]of this.inline)pn.push(this.addElement(ht,Ae(wt,this.doc)));for(const[wt,{elements:pn}]of this.external)pn.push(this.addElement(ht,oe(wt,this.doc)))}removeHost(ht){this.hosts.delete(ht)}addElement(ht,wt){return this.nonce&&wt.setAttribute("nonce",this.nonce),this.isServer&&wt.setAttribute(ee,this.appId),ht.appendChild(wt)}}return st=vt,(0,s.A)(vt,"\u0275fac",function(ht){return new(ht||st)(d.KVO(f.qQ),d.KVO(d.sZ2),d.KVO(d.BIS,8),d.KVO(d.Agw))}),(0,s.A)(vt,"\u0275prov",d.jDH({token:st,factory:st.\u0275fac})),vt})();const O={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},x=/%COMP%/g,B="%COMP%",G="_nghost-".concat(B),pe="_ngcontent-".concat(B),W=new d.nKC("",{providedIn:"root",factory:()=>!0});function _e(st,vt){return vt.map(bt=>bt.replace(x,st))}let Le=(()=>{var st;class vt{constructor(ht,wt,pn,Pn,jn,Fn,Ar,br=null,Wr=null){(0,s.A)(this,"eventManager",void 0),(0,s.A)(this,"sharedStylesHost",void 0),(0,s.A)(this,"appId",void 0),(0,s.A)(this,"removeStylesOnCompDestroy",void 0),(0,s.A)(this,"doc",void 0),(0,s.A)(this,"platformId",void 0),(0,s.A)(this,"ngZone",void 0),(0,s.A)(this,"nonce",void 0),(0,s.A)(this,"tracingService",void 0),(0,s.A)(this,"rendererByCompId",new Map),(0,s.A)(this,"defaultRenderer",void 0),(0,s.A)(this,"platformIsServer",void 0),this.eventManager=ht,this.sharedStylesHost=wt,this.appId=pn,this.removeStylesOnCompDestroy=Pn,this.doc=jn,this.platformId=Fn,this.ngZone=Ar,this.nonce=br,this.tracingService=Wr,this.platformIsServer=(0,f.Vy)(Fn),this.defaultRenderer=new We(ht,jn,Ar,this.platformIsServer,this.tracingService)}createRenderer(ht,wt){if(!ht||!wt)return this.defaultRenderer;this.platformIsServer&&wt.encapsulation===d.gXe.ShadowDom&&(wt=(0,g.A)((0,g.A)({},wt),{},{encapsulation:d.gXe.Emulated}));const pn=this.getOrCreateRenderer(ht,wt);return pn instanceof je?pn.applyToHost(ht):pn instanceof Ke&&pn.applyStyles(),pn}getOrCreateRenderer(ht,wt){const pn=this.rendererByCompId;let Pn=pn.get(wt.id);if(!Pn){const jn=this.doc,Fn=this.ngZone,Ar=this.eventManager,br=this.sharedStylesHost,Wr=this.removeStylesOnCompDestroy,fi=this.platformIsServer;switch(wt.encapsulation){case d.gXe.Emulated:Pn=new je(Ar,br,wt,this.appId,Wr,jn,Fn,fi,this.tracingService);break;case d.gXe.ShadowDom:return new ze(Ar,br,ht,wt,jn,Fn,this.nonce,fi,this.tracingService);default:Pn=new Ke(Ar,br,wt,Wr,jn,Fn,fi,this.tracingService)}pn.set(wt.id,Pn)}return Pn}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(ht){this.rendererByCompId.delete(ht)}}return st=vt,(0,s.A)(vt,"\u0275fac",function(ht){return new(ht||st)(d.KVO(ie),d.KVO(_),d.KVO(d.sZ2),d.KVO(W),d.KVO(f.qQ),d.KVO(d.Agw),d.KVO(d.SKi),d.KVO(d.BIS),d.KVO(d.Lf2,8))}),(0,s.A)(vt,"\u0275prov",d.jDH({token:st,factory:st.\u0275fac})),vt})();class We{constructor(vt,bt,ht,wt,pn){(0,s.A)(this,"eventManager",void 0),(0,s.A)(this,"doc",void 0),(0,s.A)(this,"ngZone",void 0),(0,s.A)(this,"platformIsServer",void 0),(0,s.A)(this,"tracingService",void 0),(0,s.A)(this,"data",Object.create(null)),(0,s.A)(this,"throwOnSyntheticProps",!0),(0,s.A)(this,"destroyNode",null),this.eventManager=vt,this.doc=bt,this.ngZone=ht,this.platformIsServer=wt,this.tracingService=pn}destroy(){}createElement(vt,bt){return bt?this.doc.createElementNS(O[bt]||bt,vt):this.doc.createElement(vt)}createComment(vt){return this.doc.createComment(vt)}createText(vt){return this.doc.createTextNode(vt)}appendChild(vt,bt){(we(vt)?vt.content:vt).appendChild(bt)}insertBefore(vt,bt,ht){vt&&(we(vt)?vt.content:vt).insertBefore(bt,ht)}removeChild(vt,bt){bt.remove()}selectRootElement(vt,bt){let ht="string"==typeof vt?this.doc.querySelector(vt):vt;if(!ht)throw new d.wOt(-5104,!1);return bt||(ht.textContent=""),ht}parentNode(vt){return vt.parentNode}nextSibling(vt){return vt.nextSibling}setAttribute(vt,bt,ht,wt){if(wt){bt=wt+":"+bt;const pn=O[wt];pn?vt.setAttributeNS(pn,bt,ht):vt.setAttribute(bt,ht)}else vt.setAttribute(bt,ht)}removeAttribute(vt,bt,ht){if(ht){const wt=O[ht];wt?vt.removeAttributeNS(wt,bt):vt.removeAttribute("".concat(ht,":").concat(bt))}else vt.removeAttribute(bt)}addClass(vt,bt){vt.classList.add(bt)}removeClass(vt,bt){vt.classList.remove(bt)}setStyle(vt,bt,ht,wt){wt&(d.czy.DashCase|d.czy.Important)?vt.style.setProperty(bt,ht,wt&d.czy.Important?"important":""):vt.style[bt]=ht}removeStyle(vt,bt,ht){ht&d.czy.DashCase?vt.style.removeProperty(bt):vt.style[bt]=""}setProperty(vt,bt,ht){null!=vt&&(vt[bt]=ht)}setValue(vt,bt){vt.nodeValue=bt}listen(vt,bt,ht,wt){if("string"==typeof vt&&!(vt=(0,f.QT)().getGlobalEventTarget(this.doc,vt)))throw new Error("Unsupported event target ".concat(vt," for event ").concat(bt));let pn=this.decoratePreventDefault(ht);return null!==this.tracingService&&this.tracingService.wrapEventListener&&(pn=this.tracingService.wrapEventListener(vt,bt,pn)),this.eventManager.addEventListener(vt,bt,pn,wt)}decoratePreventDefault(vt){return bt=>{if("__ngUnwrap__"===bt)return vt;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>vt(bt)):vt(bt))&&bt.preventDefault()}}}function we(st){return"TEMPLATE"===st.tagName&&void 0!==st.content}class ze extends We{constructor(vt,bt,ht,wt,pn,Pn,jn,Fn,Ar){var br;super(vt,pn,Pn,Fn,Ar),(0,s.A)(this,"sharedStylesHost",void 0),(0,s.A)(this,"hostEl",void 0),(0,s.A)(this,"shadowRoot",void 0),this.sharedStylesHost=bt,this.hostEl=ht,this.shadowRoot=ht.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Wr=_e(wt.id,wt.styles);for(const ji of Wr){const ui=document.createElement("style");jn&&ui.setAttribute("nonce",jn),ui.textContent=ji,this.shadowRoot.appendChild(ui)}const fi=null===(br=wt.getExternalStyles)||void 0===br?void 0:br.call(wt);if(fi)for(const ji of fi){const ui=oe(ji,pn);jn&&ui.setAttribute("nonce",jn),this.shadowRoot.appendChild(ui)}}nodeOrShadowRoot(vt){return vt===this.hostEl?this.shadowRoot:vt}appendChild(vt,bt){return super.appendChild(this.nodeOrShadowRoot(vt),bt)}insertBefore(vt,bt,ht){return super.insertBefore(this.nodeOrShadowRoot(vt),bt,ht)}removeChild(vt,bt){return super.removeChild(null,bt)}parentNode(vt){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(vt)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Ke extends We{constructor(vt,bt,ht,wt,pn,Pn,jn,Fn,Ar){var br;super(vt,pn,Pn,jn,Fn),(0,s.A)(this,"sharedStylesHost",void 0),(0,s.A)(this,"removeStylesOnCompDestroy",void 0),(0,s.A)(this,"styles",void 0),(0,s.A)(this,"styleUrls",void 0),this.sharedStylesHost=bt,this.removeStylesOnCompDestroy=wt,this.styles=Ar?_e(Ar,ht.styles):ht.styles,this.styleUrls=null===(br=ht.getExternalStyles)||void 0===br?void 0:br.call(ht,Ar)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}}class je extends Ke{constructor(vt,bt,ht,wt,pn,Pn,jn,Fn,Ar){const br=wt+"-"+ht.id;super(vt,bt,ht,pn,Pn,jn,Fn,Ar,br),(0,s.A)(this,"contentAttr",void 0),(0,s.A)(this,"hostAttr",void 0),this.contentAttr=function te(st){return pe.replace(x,st)}(br),this.hostAttr=function ae(st){return G.replace(x,st)}(br)}applyToHost(vt){this.applyStyles(),this.setAttribute(vt,this.hostAttr,"")}createElement(vt,bt){const ht=super.createElement(vt,bt);return super.setAttribute(ht,this.contentAttr,""),ht}}let Ze=(()=>{var st;class vt extends K{constructor(ht){super(ht)}supports(ht){return!0}addEventListener(ht,wt,pn,Pn){return ht.addEventListener(wt,pn,Pn),()=>this.removeEventListener(ht,wt,pn,Pn)}removeEventListener(ht,wt,pn,Pn){return ht.removeEventListener(wt,pn,Pn)}}return st=vt,(0,s.A)(vt,"\u0275fac",function(ht){return new(ht||st)(d.KVO(f.qQ))}),(0,s.A)(vt,"\u0275prov",d.jDH({token:st,factory:st.\u0275fac})),vt})();const k=["alt","control","meta","shift"],F={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Y={alt:st=>st.altKey,control:st=>st.ctrlKey,meta:st=>st.metaKey,shift:st=>st.shiftKey};let P=(()=>{var st;class vt extends K{constructor(ht){super(ht)}supports(ht){return null!=vt.parseEventName(ht)}addEventListener(ht,wt,pn,Pn){const jn=vt.parseEventName(wt),Fn=vt.eventCallback(jn.fullKey,pn,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,f.QT)().onAndCancel(ht,jn.domEventName,Fn,Pn))}static parseEventName(ht){const wt=ht.toLowerCase().split("."),pn=wt.shift();if(0===wt.length||"keydown"!==pn&&"keyup"!==pn)return null;const Pn=vt._normalizeKey(wt.pop());let jn="",Fn=wt.indexOf("code");if(Fn>-1&&(wt.splice(Fn,1),jn="code."),k.forEach(br=>{const Wr=wt.indexOf(br);Wr>-1&&(wt.splice(Wr,1),jn+=br+".")}),jn+=Pn,0!=wt.length||0===Pn.length)return null;const Ar={};return Ar.domEventName=pn,Ar.fullKey=jn,Ar}static matchEventFullKeyCode(ht,wt){let pn=F[ht.key]||ht.key,Pn="";return wt.indexOf("code.")>-1&&(pn=ht.code,Pn="code."),!(null==pn||!pn)&&(pn=pn.toLowerCase()," "===pn?pn="space":"."===pn&&(pn="dot"),k.forEach(jn=>{jn!==pn&&(0,Y[jn])(ht)&&(Pn+=jn+".")}),Pn+=pn,Pn===wt)}static eventCallback(ht,wt,pn){return Pn=>{vt.matchEventFullKeyCode(Pn,ht)&&pn.runGuarded(()=>wt(Pn))}}static _normalizeKey(ht){return"esc"===ht?"escape":ht}}return st=vt,(0,s.A)(vt,"\u0275fac",function(ht){return new(ht||st)(d.KVO(f.qQ))}),(0,s.A)(vt,"\u0275prov",d.jDH({token:st,factory:st.\u0275fac})),vt})();const Et=(0,d.oH4)(d.fpN,"browser",[{provide:d.Agw,useValue:f.AJ},{provide:d.PLl,useValue:function zt(){U.makeCurrent()},multi:!0},{provide:f.qQ,useFactory:function He(){return(0,d.TL$)(document),document},deps:[]}]),ye=[{provide:d.e01,useClass:class de{addToWindow(vt){d.JZv.getAngularTestability=(ht,wt=!0)=>{const pn=vt.findTestabilityInTree(ht,wt);if(null==pn)throw new d.wOt(5103,!1);return pn},d.JZv.getAllAngularTestabilities=()=>vt.getAllTestabilities(),d.JZv.getAllAngularRootElements=()=>vt.getAllRootElements(),d.JZv.frameworkStabilizers||(d.JZv.frameworkStabilizers=[]),d.JZv.frameworkStabilizers.push(ht=>{const wt=d.JZv.getAllAngularTestabilities();let pn=wt.length;const Pn=function(){pn--,0==pn&&ht()};wt.forEach(jn=>{jn.whenStable(Pn)})})}findTestabilityInTree(vt,bt,ht){if(null==bt)return null;const wt=vt.getTestability(bt);return null!=wt?wt:ht?(0,f.QT)().isShadowRoot(bt)?this.findTestabilityInTree(vt,bt.host,!0):this.findTestabilityInTree(vt,bt.parentElement,!0):null}},deps:[]},{provide:d.WHO,useClass:d.NYb,deps:[d.SKi,d.giA,d.e01]},{provide:d.NYb,useClass:d.NYb,deps:[d.SKi,d.giA,d.e01]}],Ee=[{provide:d.H8p,useValue:"root"},{provide:d.zcH,useFactory:function Mt(){return new d.zcH},deps:[]},{provide:Q,useClass:Ze,multi:!0,deps:[f.qQ,d.SKi,d.Agw]},{provide:Q,useClass:P,multi:!0,deps:[f.qQ]},Le,_,ie,{provide:d._9s,useExisting:Le},{provide:f.N0,useClass:V,deps:[]},[]];let De=(()=>{var st;class vt{constructor(){}}return st=vt,(0,s.A)(vt,"\u0275fac",function(ht){return new(ht||st)}),(0,s.A)(vt,"\u0275mod",d.$C({type:st})),(0,s.A)(vt,"\u0275inj",d.G2t({providers:[...Ee,...ye],imports:[f.MD,d.Hbi]})),vt})(),Ge=(()=>{var st;class vt{constructor(ht){(0,s.A)(this,"_doc",void 0),(0,s.A)(this,"_dom",void 0),this._doc=ht,this._dom=(0,f.QT)()}addTag(ht,wt=!1){return ht?this._getOrCreateElement(ht,wt):null}addTags(ht,wt=!1){return ht?ht.reduce((pn,Pn)=>(Pn&&pn.push(this._getOrCreateElement(Pn,wt)),pn),[]):[]}getTag(ht){return ht&&this._doc.querySelector("meta[".concat(ht,"]"))||null}getTags(ht){if(!ht)return[];const wt=this._doc.querySelectorAll("meta[".concat(ht,"]"));return wt?[].slice.call(wt):[]}updateTag(ht,wt){if(!ht)return null;wt=wt||this._parseSelector(ht);const pn=this.getTag(wt);return pn?this._setMetaElementAttributes(ht,pn):this._getOrCreateElement(ht,!0)}removeTag(ht){this.removeTagElement(this.getTag(ht))}removeTagElement(ht){ht&&this._dom.remove(ht)}_getOrCreateElement(ht,wt=!1){if(!wt){const jn=this._parseSelector(ht),Fn=this.getTags(jn).filter(Ar=>this._containsAttributes(ht,Ar))[0];if(void 0!==Fn)return Fn}const pn=this._dom.createElement("meta");return this._setMetaElementAttributes(ht,pn),this._doc.getElementsByTagName("head")[0].appendChild(pn),pn}_setMetaElementAttributes(ht,wt){return Object.keys(ht).forEach(pn=>wt.setAttribute(this._getMetaKeyMap(pn),ht[pn])),wt}_parseSelector(ht){const wt=ht.name?"name":"property";return"".concat(wt,'="').concat(ht[wt],'"')}_containsAttributes(ht,wt){return Object.keys(ht).every(pn=>wt.getAttribute(this._getMetaKeyMap(pn))===ht[pn])}_getMetaKeyMap(ht){return ge[ht]||ht}}return st=vt,(0,s.A)(vt,"\u0275fac",function(ht){return new(ht||st)(d.KVO(f.qQ))}),(0,s.A)(vt,"\u0275prov",d.jDH({token:st,factory:st.\u0275fac,providedIn:"root"})),vt})();const ge={httpEquiv:"http-equiv"};let Me=(()=>{var st;class vt{constructor(ht){(0,s.A)(this,"_doc",void 0),this._doc=ht}getTitle(){return this._doc.title}setTitle(ht){this._doc.title=ht||""}}return st=vt,(0,s.A)(vt,"\u0275fac",function(ht){return new(ht||st)(d.KVO(f.qQ))}),(0,s.A)(vt,"\u0275prov",d.jDH({token:st,factory:st.\u0275fac,providedIn:"root"})),vt})(),jt=(()=>{var st;class vt{}return st=vt,(0,s.A)(vt,"\u0275fac",function(ht){return new(ht||st)}),(0,s.A)(vt,"\u0275prov",d.jDH({token:st,factory:function(ht){let wt=null;return wt=ht?new(ht||st):d.KVO(tn),wt},providedIn:"root"})),vt})(),tn=(()=>{var st;class vt extends jt{constructor(ht){super(),(0,s.A)(this,"_doc",void 0),this._doc=ht}sanitize(ht,wt){if(null==wt)return null;switch(ht){case d.WPN.NONE:return wt;case d.WPN.HTML:return(0,d.ZF7)(wt,"HTML")?(0,d.rcV)(wt):(0,d.h9k)(this._doc,String(wt)).toString();case d.WPN.STYLE:return(0,d.ZF7)(wt,"Style")?(0,d.rcV)(wt):wt;case d.WPN.SCRIPT:if((0,d.ZF7)(wt,"Script"))return(0,d.rcV)(wt);throw new d.wOt(5200,!1);case d.WPN.URL:return(0,d.ZF7)(wt,"URL")?(0,d.rcV)(wt):(0,d.$MX)(String(wt));case d.WPN.RESOURCE_URL:if((0,d.ZF7)(wt,"ResourceURL"))return(0,d.rcV)(wt);throw new d.wOt(5201,!1);default:throw new d.wOt(5202,!1)}}bypassSecurityTrustHtml(ht){return(0,d.Kcf)(ht)}bypassSecurityTrustStyle(ht){return(0,d.cWb)(ht)}bypassSecurityTrustScript(ht){return(0,d.UyX)(ht)}bypassSecurityTrustUrl(ht){return(0,d.osQ)(ht)}bypassSecurityTrustResourceUrl(ht){return(0,d.e5t)(ht)}}return st=vt,(0,s.A)(vt,"\u0275fac",function(ht){return new(ht||st)(d.KVO(f.qQ))}),(0,s.A)(vt,"\u0275prov",d.jDH({token:st,factory:st.\u0275fac,providedIn:"root"})),vt})();var on=function(st){return st[st.NoHttpTransferCache=0]="NoHttpTransferCache",st[st.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",st[st.I18nSupport=2]="I18nSupport",st[st.EventReplay=3]="EventReplay",st[st.IncrementalHydration=4]="IncrementalHydration",st}(on||{});function Pt(){return function kt(st,vt=[],bt={}){return{\u0275kind:st,\u0275providers:vt}}(on.NoHttpTransferCache)}function Qn(...st){const vt=[],bt=new Set,ht=bt.has(on.HttpTransferCacheOptions);for(const{\u0275providers:wt,\u0275kind:pn}of st)bt.add(pn),wt.length&&vt.push(wt);return(0,d.EmA)([[],(0,d.M8M)(),bt.has(on.NoHttpTransferCache)||ht?[]:(0,S.$m)({}),vt])}},3331:(se,E,c)=>{"use strict";c.d(E,{nX:()=>wr,_d:()=>ii,wF:()=>hi,Z:()=>ki,Xk:()=>P,bw:()=>pi,b:()=>tt,Ix:()=>On,iI:()=>xo,n3:()=>Ki,OY:()=>Jr});var g=c(9379),s=c(1660),f=c(4438),d=c(4402),S=c(9724),R=c(7673),U=c(4412),q=c(4572),z=c(9350),ve=c(8793),de=c(1985),V=c(8750);function Q(w){return new de.c(N=>{(0,V.Tg)(w()).subscribe(N)})}var ie=c(1203),K=c(8810),ee=c(983),he=c(8359),Ae=c(9974),ue=c(4360);function oe(){return(0,Ae.N)((w,N)=>{let J=null;w._refCount++;const L=(0,ue._)(N,void 0,void 0,void 0,()=>{if(!w||w._refCount<=0||0<--w._refCount)return void(J=null);const fe=w._connection,ke=J;J=null,fe&&(!ke||fe===ke)&&fe.unsubscribe(),N.unsubscribe()});w.subscribe(L),L.closed||(J=w.connect())})}class _ extends de.c{constructor(N,J){super(),this.source=N,this.subjectFactory=J,this._subject=null,this._refCount=0,this._connection=null,(0,Ae.S)(N)&&(this.lift=N.lift)}_subscribe(N){return this.getSubject().subscribe(N)}getSubject(){const N=this._subject;return(!N||N.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:N}=this;this._subject=this._connection=null,null==N||N.unsubscribe()}connect(){let N=this._connection;if(!N){N=this._connection=new he.yU;const J=this.getSubject();N.add(this.source.subscribe((0,ue._)(J,void 0,()=>{this._teardown(),J.complete()},L=>{this._teardown(),J.error(L)},()=>this._teardown()))),N.closed&&(this._connection=null,N=he.yU.EMPTY)}return N}refCount(){return oe()(this)}}var O=c(1413),x=c(177),B=c(6354),G=c(5558),pe=c(6697),le=c(9172),W=c(5964),te=c(1397),ae=c(1594),_e=c(274),Le=c(8141),We=c(9437),dt=c(2816),Ye=c(9901);function we(w){return w<=0?()=>ee.w:(0,Ae.N)((N,J)=>{let L=[];N.subscribe((0,ue._)(J,fe=>{L.push(fe),w<L.length&&L.shift()},()=>{for(const fe of L)J.next(fe);J.complete()},void 0,()=>{L=null}))})}var ze=c(3774),Ke=c(3669),Ze=c(980),k=c(6977),F=c(6365),Y=c(345);const P="primary",ce=Symbol("RouteTitle");class Se{constructor(N){(0,s.A)(this,"params",void 0),this.params=N||{}}has(N){return Object.prototype.hasOwnProperty.call(this.params,N)}get(N){if(this.has(N)){const J=this.params[N];return Array.isArray(J)?J[0]:J}return null}getAll(N){if(this.has(N)){const J=this.params[N];return Array.isArray(J)?J:[J]}return[]}get keys(){return Object.keys(this.params)}}function Be(w){return new Se(w)}function Tt(w,N,J){const L=J.path.split("/");if(L.length>w.length||"full"===J.pathMatch&&(N.hasChildren()||L.length<w.length))return null;const fe={};for(let ke=0;ke<L.length;ke++){const Qe=L[ke],Wt=w[ke];if(":"===Qe[0])fe[Qe.substring(1)]=Wt;else if(Qe!==Wt.path)return null}return{consumed:w.slice(0,L.length),posParams:fe}}function Mt(w,N){const J=w?He(w):void 0,L=N?He(N):void 0;if(!J||!L||J.length!=L.length)return!1;let fe;for(let ke=0;ke<J.length;ke++)if(fe=J[ke],!lt(w[fe],N[fe]))return!1;return!0}function He(w){return[...Object.keys(w),...Object.getOwnPropertySymbols(w)]}function lt(w,N){if(Array.isArray(w)&&Array.isArray(N)){if(w.length!==N.length)return!1;const J=[...w].sort(),L=[...N].sort();return J.every((fe,ke)=>L[ke]===fe)}return w===N}function Et(w){return w.length>0?w[w.length-1]:null}function Ce(w){return(0,d.A)(w)?w:(0,f.jNT)(w)?(0,S.H)(Promise.resolve(w)):(0,R.of)(w)}const ye={exact:function ge(w,N,J){if(!kn(w.segments,N.segments)||!at(w.segments,N.segments,J)||w.numberOfChildren!==N.numberOfChildren)return!1;for(const L in N.children)if(!w.children[L]||!ge(w.children[L],N.children[L],J))return!1;return!0},subset:Ve},Ee={exact:function Ge(w,N){return Mt(w,N)},subset:function Me(w,N){return Object.keys(N).length<=Object.keys(w).length&&Object.keys(N).every(J=>lt(w[J],N[J]))},ignored:()=>!0};function De(w,N,J){return ye[J.paths](w.root,N.root,J.matrixParams)&&Ee[J.queryParams](w.queryParams,N.queryParams)&&!("exact"===J.fragment&&w.fragment!==N.fragment)}function Ve(w,N,J){return rt(w,N,N.segments,J)}function rt(w,N,J,L){if(w.segments.length>J.length){const fe=w.segments.slice(0,J.length);return!(!kn(fe,J)||N.hasChildren()||!at(fe,J,L))}if(w.segments.length===J.length){if(!kn(w.segments,J)||!at(w.segments,J,L))return!1;for(const fe in N.children)if(!w.children[fe]||!Ve(w.children[fe],N.children[fe],L))return!1;return!0}{const fe=J.slice(0,w.segments.length),ke=J.slice(w.segments.length);return!!(kn(w.segments,fe)&&at(w.segments,fe,L)&&w.children[P])&&rt(w.children[P],N,ke,L)}}function at(w,N,J){return N.every((L,fe)=>Ee[J](w[fe].parameters,L.parameters))}class ct{constructor(N=new Yt([],{}),J={},L=null){(0,s.A)(this,"root",void 0),(0,s.A)(this,"queryParams",void 0),(0,s.A)(this,"fragment",void 0),(0,s.A)(this,"_queryParamMap",void 0),this.root=N,this.queryParams=J,this.fragment=L}get queryParamMap(){var N;return null!==(N=this._queryParamMap)&&void 0!==N||(this._queryParamMap=Be(this.queryParams)),this._queryParamMap}toString(){return Hn.serialize(this)}}class Yt{constructor(N,J){(0,s.A)(this,"segments",void 0),(0,s.A)(this,"children",void 0),(0,s.A)(this,"parent",null),this.segments=N,this.children=J,Object.values(J).forEach(L=>L.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Yn(this)}}class Ft{constructor(N,J){(0,s.A)(this,"path",void 0),(0,s.A)(this,"parameters",void 0),(0,s.A)(this,"_parameterMap",void 0),this.path=N,this.parameters=J}get parameterMap(){var N;return null!==(N=this._parameterMap)&&void 0!==N||(this._parameterMap=Be(this.parameters)),this._parameterMap}toString(){return Dt(this)}}function kn(w,N){return w.length===N.length&&w.every((J,L)=>J.path===N[L].path)}let Jt=(()=>{var w;class N{}return w=N,(0,s.A)(N,"\u0275fac",function(L){return new(L||w)}),(0,s.A)(N,"\u0275prov",f.jDH({token:w,factory:()=>new At,providedIn:"root"})),N})();class At{parse(N){const J=new pn(N);return new ct(J.parseRootSegment(),J.parseQueryParams(),J.parseFragment())}serialize(N){const J="/".concat(or(N.root,!0)),L=function sn(w){const N=Object.entries(w).map(([J,L])=>Array.isArray(L)?L.map(fe=>"".concat(tn(J),"=").concat(tn(fe))).join("&"):"".concat(tn(J),"=").concat(tn(L))).filter(J=>J);return N.length?"?".concat(N.join("&")):""}(N.queryParams),fe="string"==typeof N.fragment?"#".concat(function on(w){return encodeURI(w)}(N.fragment)):"";return"".concat(J).concat(L).concat(fe)}}const Hn=new At;function Yn(w){return w.segments.map(N=>Dt(N)).join("/")}function or(w,N){if(!w.hasChildren())return Yn(w);if(N){const J=w.children[P]?or(w.children[P],!1):"",L=[];return Object.entries(w.children).forEach(([fe,ke])=>{fe!==P&&L.push("".concat(fe,":").concat(or(ke,!1)))}),L.length>0?"".concat(J,"(").concat(L.join("//"),")"):J}{const J=function ln(w,N){let J=[];return Object.entries(w.children).forEach(([L,fe])=>{L===P&&(J=J.concat(N(fe,L)))}),Object.entries(w.children).forEach(([L,fe])=>{L!==P&&(J=J.concat(N(fe,L)))}),J}(w,(L,fe)=>fe===P?[or(w.children[P],!1)]:["".concat(fe,":").concat(or(L,!1))]);return 1===Object.keys(w.children).length&&null!=w.children[P]?"".concat(Yn(w),"/").concat(J[0]):"".concat(Yn(w),"/(").concat(J.join("//"),")")}}function jt(w){return encodeURIComponent(w).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function tn(w){return jt(w).replace(/%3B/gi,";")}function kt(w){return jt(w).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Pt(w){return decodeURIComponent(w)}function It(w){return Pt(w.replace(/\+/g,"%20"))}function Dt(w){return"".concat(kt(w.path)).concat(function Ct(w){return Object.entries(w).map(([N,J])=>";".concat(kt(N),"=").concat(kt(J))).join("")}(w.parameters))}const An=/^[^\/()?;#]+/;function Qn(w){const N=w.match(An);return N?N[0]:""}const Fr=/^[^\/()?;=#]+/,vt=/^[^=?&#]+/,ht=/^[^&#]+/;class pn{constructor(N){(0,s.A)(this,"url",void 0),(0,s.A)(this,"remaining",void 0),this.url=N,this.remaining=N}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Yt([],{}):new Yt([],this.parseChildren())}parseQueryParams(){const N={};if(this.consumeOptional("?"))do{this.parseQueryParam(N)}while(this.consumeOptional("&"));return N}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const N=[];for(this.peekStartsWith("(")||N.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),N.push(this.parseSegment());let J={};this.peekStartsWith("/(")&&(this.capture("/"),J=this.parseParens(!0));let L={};return this.peekStartsWith("(")&&(L=this.parseParens(!1)),(N.length>0||Object.keys(J).length>0)&&(L[P]=new Yt(N,J)),L}parseSegment(){const N=Qn(this.remaining);if(""===N&&this.peekStartsWith(";"))throw new f.wOt(4009,!1);return this.capture(N),new Ft(Pt(N),this.parseMatrixParams())}parseMatrixParams(){const N={};for(;this.consumeOptional(";");)this.parseParam(N);return N}parseParam(N){const J=function st(w){const N=w.match(Fr);return N?N[0]:""}(this.remaining);if(!J)return;this.capture(J);let L="";if(this.consumeOptional("=")){const fe=Qn(this.remaining);fe&&(L=fe,this.capture(L))}N[Pt(J)]=Pt(L)}parseQueryParam(N){const J=function bt(w){const N=w.match(vt);return N?N[0]:""}(this.remaining);if(!J)return;this.capture(J);let L="";if(this.consumeOptional("=")){const Qe=function wt(w){const N=w.match(ht);return N?N[0]:""}(this.remaining);Qe&&(L=Qe,this.capture(L))}const fe=It(J),ke=It(L);if(N.hasOwnProperty(fe)){let Qe=N[fe];Array.isArray(Qe)||(Qe=[Qe],N[fe]=Qe),Qe.push(ke)}else N[fe]=ke}parseParens(N){const J={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const L=Qn(this.remaining),fe=this.remaining[L.length];if("/"!==fe&&")"!==fe&&";"!==fe)throw new f.wOt(4010,!1);let ke;L.indexOf(":")>-1?(ke=L.slice(0,L.indexOf(":")),this.capture(ke),this.capture(":")):N&&(ke=P);const Qe=this.parseChildren();J[ke]=1===Object.keys(Qe).length?Qe[P]:new Yt([],Qe),this.consumeOptional("//")}return J}peekStartsWith(N){return this.remaining.startsWith(N)}consumeOptional(N){return!!this.peekStartsWith(N)&&(this.remaining=this.remaining.substring(N.length),!0)}capture(N){if(!this.consumeOptional(N))throw new f.wOt(4011,!1)}}function Pn(w){return w.segments.length>0?new Yt([],{[P]:w}):w}function jn(w){const N={};for(const[L,fe]of Object.entries(w.children)){const ke=jn(fe);if(L===P&&0===ke.segments.length&&ke.hasChildren())for(const[Qe,Wt]of Object.entries(ke.children))N[Qe]=Wt;else(ke.segments.length>0||ke.hasChildren())&&(N[L]=ke)}return function Fn(w){if(1===w.numberOfChildren&&w.children[P]){const N=w.children[P];return new Yt(w.segments.concat(N.segments),N.children)}return w}(new Yt(w.segments,N))}function Ar(w){return w instanceof ct}function Wr(w){let N;const fe=Pn(function J(ke){const Qe={};for(const gn of ke.children){const Qt=J(gn);Qe[gn.outlet]=Qt}const Wt=new Yt(ke.url,Qe);return ke===w&&(N=Wt),Wt}(w.root));return null!=N?N:fe}function fi(w,N,J,L){let fe=w;for(;fe.parent;)fe=fe.parent;if(0===N.length)return So(fe,fe,fe,J,L);const ke=function Jn(w){if("string"==typeof w[0]&&1===w.length&&"/"===w[0])return new ri(!0,0,w);let N=0,J=!1;const L=w.reduce((fe,ke,Qe)=>{if("object"==typeof ke&&null!=ke){if(ke.outlets){const Wt={};return Object.entries(ke.outlets).forEach(([gn,Qt])=>{Wt[gn]="string"==typeof Qt?Qt.split("/"):Qt}),[...fe,{outlets:Wt}]}if(ke.segmentPath)return[...fe,ke.segmentPath]}return"string"!=typeof ke?[...fe,ke]:0===Qe?(ke.split("/").forEach((Wt,gn)=>{0==gn&&"."===Wt||(0==gn&&""===Wt?J=!0:".."===Wt?N++:""!=Wt&&fe.push(Wt))}),fe):[...fe,ke]},[]);return new ri(J,N,L)}(N);if(ke.toRoot())return So(fe,fe,new Yt([],{}),J,L);const Qe=function et(w,N,J){if(w.isAbsolute)return new rn(N,!0,0);if(!J)return new rn(N,!1,NaN);if(null===J.parent)return new rn(J,!0,0);const L=ji(w.commands[0])?0:1;return function xt(w,N,J){let L=w,fe=N,ke=J;for(;ke>fe;){if(ke-=fe,L=L.parent,!L)throw new f.wOt(4005,!1);fe=L.segments.length}return new rn(L,!1,fe-ke)}(J,J.segments.length-1+L,w.numberOfDoubleDots)}(ke,fe,w),Wt=Qe.processChildren?nn(Qe.segmentGroup,Qe.index,ke.commands):Xt(Qe.segmentGroup,Qe.index,ke.commands);return So(fe,Qe.segmentGroup,Wt,J,L)}function ji(w){return"object"==typeof w&&null!=w&&!w.outlets&&!w.segmentPath}function ui(w){return"object"==typeof w&&null!=w&&w.outlets}function So(w,N,J,L,fe){let Qe,ke={};L&&Object.entries(L).forEach(([gn,Qt])=>{ke[gn]=Array.isArray(Qt)?Qt.map(Wn=>"".concat(Wn)):"".concat(Qt)}),Qe=w===N?J:Mo(w,N,J);const Wt=Pn(jn(Qe));return new ct(Wt,ke,fe)}function Mo(w,N,J){const L={};return Object.entries(w.children).forEach(([fe,ke])=>{L[fe]=ke===N?J:Mo(ke,N,J)}),new Yt(w.segments,L)}class ri{constructor(N,J,L){if((0,s.A)(this,"isAbsolute",void 0),(0,s.A)(this,"numberOfDoubleDots",void 0),(0,s.A)(this,"commands",void 0),this.isAbsolute=N,this.numberOfDoubleDots=J,this.commands=L,N&&L.length>0&&ji(L[0]))throw new f.wOt(4003,!1);const fe=L.find(ui);if(fe&&fe!==Et(L))throw new f.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class rn{constructor(N,J,L){(0,s.A)(this,"segmentGroup",void 0),(0,s.A)(this,"processChildren",void 0),(0,s.A)(this,"index",void 0),this.segmentGroup=N,this.processChildren=J,this.index=L}}function Xt(w,N,J){if(null!=w||(w=new Yt([],{})),0===w.segments.length&&w.hasChildren())return nn(w,N,J);const L=function un(w,N,J){let L=0,fe=N;const ke={match:!1,pathIndex:0,commandIndex:0};for(;fe<w.segments.length;){if(L>=J.length)return ke;const Qe=w.segments[fe],Wt=J[L];if(ui(Wt))break;const gn="".concat(Wt),Qt=L<J.length-1?J[L+1]:null;if(fe>0&&void 0===gn)break;if(gn&&Qt&&"object"==typeof Qt&&void 0===Qt.outlets){if(!no(gn,Qt,Qe))return ke;L+=2}else{if(!no(gn,{},Qe))return ke;L++}fe++}return{match:!0,pathIndex:fe,commandIndex:L}}(w,N,J),fe=J.slice(L.commandIndex);if(L.match&&L.pathIndex<w.segments.length){const ke=new Yt(w.segments.slice(0,L.pathIndex),{});return ke.children[P]=new Yt(w.segments.slice(L.pathIndex),w.children),nn(ke,0,fe)}return L.match&&0===fe.length?new Yt(w.segments,{}):L.match&&!w.hasChildren()?qn(w,N,J):L.match?nn(w,0,fe):qn(w,N,J)}function nn(w,N,J){if(0===J.length)return new Yt(w.segments,{});{const L=function yt(w){return ui(w[0])?w[0].outlets:{[P]:w}}(J),fe={};if(Object.keys(L).some(ke=>ke!==P)&&w.children[P]&&1===w.numberOfChildren&&0===w.children[P].segments.length){const ke=nn(w.children[P],N,J);return new Yt(w.segments,ke.children)}return Object.entries(L).forEach(([ke,Qe])=>{"string"==typeof Qe&&(Qe=[Qe]),null!==Qe&&(fe[ke]=Xt(w.children[ke],N,Qe))}),Object.entries(w.children).forEach(([ke,Qe])=>{void 0===L[ke]&&(fe[ke]=Qe)}),new Yt(w.segments,fe)}}function qn(w,N,J){const L=w.segments.slice(0,N);let fe=0;for(;fe<J.length;){const ke=J[fe];if(ui(ke)){const gn=sr(ke.outlets);return new Yt(L,gn)}if(0===fe&&ji(J[0])){L.push(new Ft(w.segments[N].path,Oi(J[0]))),fe++;continue}const Qe=ui(ke)?ke.outlets[P]:"".concat(ke),Wt=fe<J.length-1?J[fe+1]:null;Qe&&Wt&&ji(Wt)?(L.push(new Ft(Qe,Oi(Wt))),fe+=2):(L.push(new Ft(Qe,{})),fe++)}return new Yt(L,{})}function sr(w){const N={};return Object.entries(w).forEach(([J,L])=>{"string"==typeof L&&(L=[L]),null!==L&&(N[J]=qn(new Yt([],{}),0,L))}),N}function Oi(w){const N={};return Object.entries(w).forEach(([J,L])=>N[J]="".concat(L)),N}function no(w,N,J){return w==J.path&&Mt(N,J.parameters)}const Vi="imperative";var vr=function(w){return w[w.NavigationStart=0]="NavigationStart",w[w.NavigationEnd=1]="NavigationEnd",w[w.NavigationCancel=2]="NavigationCancel",w[w.NavigationError=3]="NavigationError",w[w.RoutesRecognized=4]="RoutesRecognized",w[w.ResolveStart=5]="ResolveStart",w[w.ResolveEnd=6]="ResolveEnd",w[w.GuardsCheckStart=7]="GuardsCheckStart",w[w.GuardsCheckEnd=8]="GuardsCheckEnd",w[w.RouteConfigLoadStart=9]="RouteConfigLoadStart",w[w.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",w[w.ChildActivationStart=11]="ChildActivationStart",w[w.ChildActivationEnd=12]="ChildActivationEnd",w[w.ActivationStart=13]="ActivationStart",w[w.ActivationEnd=14]="ActivationEnd",w[w.Scroll=15]="Scroll",w[w.NavigationSkipped=16]="NavigationSkipped",w}(vr||{});class Ai{constructor(N,J){(0,s.A)(this,"id",void 0),(0,s.A)(this,"url",void 0),this.id=N,this.url=J}}class ki extends Ai{constructor(N,J,L="imperative",fe=null){super(N,J),(0,s.A)(this,"type",vr.NavigationStart),(0,s.A)(this,"navigationTrigger",void 0),(0,s.A)(this,"restoredState",void 0),this.navigationTrigger=L,this.restoredState=fe}toString(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}class hi extends Ai{constructor(N,J,L){super(N,J),(0,s.A)(this,"urlAfterRedirects",void 0),(0,s.A)(this,"type",vr.NavigationEnd),this.urlAfterRedirects=L}toString(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}var Nr=function(w){return w[w.Redirect=0]="Redirect",w[w.SupersededByNewNavigation=1]="SupersededByNewNavigation",w[w.NoDataFromResolver=2]="NoDataFromResolver",w[w.GuardRejected=3]="GuardRejected",w}(Nr||{}),Gn=function(w){return w[w.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",w[w.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",w}(Gn||{});class Yr extends Ai{constructor(N,J,L,fe){super(N,J),(0,s.A)(this,"reason",void 0),(0,s.A)(this,"code",void 0),(0,s.A)(this,"type",vr.NavigationCancel),this.reason=L,this.code=fe}toString(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}class Pi extends Ai{constructor(N,J,L,fe){super(N,J),(0,s.A)(this,"reason",void 0),(0,s.A)(this,"code",void 0),(0,s.A)(this,"type",vr.NavigationSkipped),this.reason=L,this.code=fe}}class Xe extends Ai{constructor(N,J,L,fe){super(N,J),(0,s.A)(this,"error",void 0),(0,s.A)(this,"target",void 0),(0,s.A)(this,"type",vr.NavigationError),this.error=L,this.target=fe}toString(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}class _t extends Ai{constructor(N,J,L,fe){super(N,J),(0,s.A)(this,"urlAfterRedirects",void 0),(0,s.A)(this,"state",void 0),(0,s.A)(this,"type",vr.RoutesRecognized),this.urlAfterRedirects=L,this.state=fe}toString(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}class Zt extends Ai{constructor(N,J,L,fe){super(N,J),(0,s.A)(this,"urlAfterRedirects",void 0),(0,s.A)(this,"state",void 0),(0,s.A)(this,"type",vr.GuardsCheckStart),this.urlAfterRedirects=L,this.state=fe}toString(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}class Ut extends Ai{constructor(N,J,L,fe,ke){super(N,J),(0,s.A)(this,"urlAfterRedirects",void 0),(0,s.A)(this,"state",void 0),(0,s.A)(this,"shouldActivate",void 0),(0,s.A)(this,"type",vr.GuardsCheckEnd),this.urlAfterRedirects=L,this.state=fe,this.shouldActivate=ke}toString(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}class bn extends Ai{constructor(N,J,L,fe){super(N,J),(0,s.A)(this,"urlAfterRedirects",void 0),(0,s.A)(this,"state",void 0),(0,s.A)(this,"type",vr.ResolveStart),this.urlAfterRedirects=L,this.state=fe}toString(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}class Rn extends Ai{constructor(N,J,L,fe){super(N,J),(0,s.A)(this,"urlAfterRedirects",void 0),(0,s.A)(this,"state",void 0),(0,s.A)(this,"type",vr.ResolveEnd),this.urlAfterRedirects=L,this.state=fe}toString(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}class $n{constructor(N){(0,s.A)(this,"route",void 0),(0,s.A)(this,"type",vr.RouteConfigLoadStart),this.route=N}toString(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}class Bn{constructor(N){(0,s.A)(this,"route",void 0),(0,s.A)(this,"type",vr.RouteConfigLoadEnd),this.route=N}toString(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}class Sn{constructor(N){(0,s.A)(this,"snapshot",void 0),(0,s.A)(this,"type",vr.ChildActivationStart),this.snapshot=N}toString(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}class zn{constructor(N){(0,s.A)(this,"snapshot",void 0),(0,s.A)(this,"type",vr.ChildActivationEnd),this.snapshot=N}toString(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}class Dn{constructor(N){(0,s.A)(this,"snapshot",void 0),(0,s.A)(this,"type",vr.ActivationStart),this.snapshot=N}toString(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}class ii{constructor(N){(0,s.A)(this,"snapshot",void 0),(0,s.A)(this,"type",vr.ActivationEnd),this.snapshot=N}toString(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}class Jr{constructor(N,J,L){(0,s.A)(this,"routerEvent",void 0),(0,s.A)(this,"position",void 0),(0,s.A)(this,"anchor",void 0),(0,s.A)(this,"type",vr.Scroll),this.routerEvent=N,this.position=J,this.anchor=L}toString(){const N=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(N,"')")}}class qr{}class Ir{constructor(N,J){(0,s.A)(this,"url",void 0),(0,s.A)(this,"navigationBehaviorOptions",void 0),this.url=N,this.navigationBehaviorOptions=J}}function Un(w){return w.outlet||P}function p(w){var N;if(!w)return null;if(null!==(N=w.routeConfig)&&void 0!==N&&N._injector)return w.routeConfig._injector;for(let J=w.parent;J;J=J.parent){const L=J.routeConfig;if(null!=L&&L._loadedInjector)return L._loadedInjector;if(null!=L&&L._injector)return L._injector}return null}class T{get injector(){var N,J;return null!==(N=p(null===(J=this.route)||void 0===J?void 0:J.snapshot))&&void 0!==N?N:this.rootInjector}constructor(N){(0,s.A)(this,"rootInjector",void 0),(0,s.A)(this,"outlet",null),(0,s.A)(this,"route",null),(0,s.A)(this,"children",void 0),(0,s.A)(this,"attachRef",null),this.rootInjector=N,this.children=new me(this.rootInjector)}}let me=(()=>{var w;class N{constructor(L){(0,s.A)(this,"rootInjector",void 0),(0,s.A)(this,"contexts",new Map),this.rootInjector=L}onChildOutletCreated(L,fe){const ke=this.getOrCreateContext(L);ke.outlet=fe,this.contexts.set(L,ke)}onChildOutletDestroyed(L){const fe=this.getContext(L);fe&&(fe.outlet=null,fe.attachRef=null)}onOutletDeactivated(){const L=this.contexts;return this.contexts=new Map,L}onOutletReAttached(L){this.contexts=L}getOrCreateContext(L){let fe=this.getContext(L);return fe||(fe=new T(this.rootInjector),this.contexts.set(L,fe)),fe}getContext(L){return this.contexts.get(L)||null}}return w=N,(0,s.A)(N,"\u0275fac",function(L){return new(L||w)(f.KVO(f.uvJ))}),(0,s.A)(N,"\u0275prov",f.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})),N})();class Re{constructor(N){(0,s.A)(this,"_root",void 0),this._root=N}get root(){return this._root.value}parent(N){const J=this.pathFromRoot(N);return J.length>1?J[J.length-2]:null}children(N){const J=ot(N,this._root);return J?J.children.map(L=>L.value):[]}firstChild(N){const J=ot(N,this._root);return J&&J.children.length>0?J.children[0].value:null}siblings(N){const J=Vt(N,this._root);return J.length<2?[]:J[J.length-2].children.map(fe=>fe.value).filter(fe=>fe!==N)}pathFromRoot(N){return Vt(N,this._root).map(J=>J.value)}}function ot(w,N){if(w===N.value)return N;for(const J of N.children){const L=ot(w,J);if(L)return L}return null}function Vt(w,N){if(w===N.value)return[N];for(const J of N.children){const L=Vt(w,J);if(L.length)return L.unshift(N),L}return[]}class $t{constructor(N,J){(0,s.A)(this,"value",void 0),(0,s.A)(this,"children",void 0),this.value=N,this.children=J}toString(){return"TreeNode(".concat(this.value,")")}}function vn(w){const N={};return w&&w.children.forEach(J=>N[J.value.outlet]=J),N}class xn extends Re{constructor(N,J){super(N),(0,s.A)(this,"snapshot",void 0),this.snapshot=J,zo(this,N)}toString(){return this.snapshot.toString()}}function gr(w){const N=function tr(w){const ke=new vo([],{},{},"",{},P,w,null,{});return new $i("",new $t(ke,[]))}(w),J=new U.t([new Ft("",{})]),L=new U.t({}),fe=new U.t({}),ke=new U.t({}),Qe=new U.t(""),Wt=new wr(J,L,ke,Qe,fe,P,w,N.root);return Wt.snapshot=N.root,new xn(new $t(Wt,[]),N)}class wr{constructor(N,J,L,fe,ke,Qe,Wt,gn){var Qt,Wn;(0,s.A)(this,"urlSubject",void 0),(0,s.A)(this,"paramsSubject",void 0),(0,s.A)(this,"queryParamsSubject",void 0),(0,s.A)(this,"fragmentSubject",void 0),(0,s.A)(this,"dataSubject",void 0),(0,s.A)(this,"outlet",void 0),(0,s.A)(this,"component",void 0),(0,s.A)(this,"snapshot",void 0),(0,s.A)(this,"_futureSnapshot",void 0),(0,s.A)(this,"_routerState",void 0),(0,s.A)(this,"_paramMap",void 0),(0,s.A)(this,"_queryParamMap",void 0),(0,s.A)(this,"title",void 0),(0,s.A)(this,"url",void 0),(0,s.A)(this,"params",void 0),(0,s.A)(this,"queryParams",void 0),(0,s.A)(this,"fragment",void 0),(0,s.A)(this,"data",void 0),this.urlSubject=N,this.paramsSubject=J,this.queryParamsSubject=L,this.fragmentSubject=fe,this.dataSubject=ke,this.outlet=Qe,this.component=Wt,this._futureSnapshot=gn,this.title=null!==(Qt=null===(Wn=this.dataSubject)||void 0===Wn?void 0:Wn.pipe((0,B.T)(Er=>Er[ce])))&&void 0!==Qt?Qt:(0,R.of)(void 0),this.url=N,this.params=J,this.queryParams=L,this.fragment=fe,this.data=ke}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){var N;return null!==(N=this._paramMap)&&void 0!==N||(this._paramMap=this.params.pipe((0,B.T)(J=>Be(J)))),this._paramMap}get queryParamMap(){var N;return null!==(N=this._queryParamMap)&&void 0!==N||(this._queryParamMap=this.queryParams.pipe((0,B.T)(J=>Be(J)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}function zr(w,N,J="emptyOnly"){var L;let fe;const{routeConfig:ke}=w;var Qe;return fe=null===N||"always"!==J&&""!==(null==ke?void 0:ke.path)&&(N.component||null!==(L=N.routeConfig)&&void 0!==L&&L.loadComponent)?{params:(0,g.A)({},w.params),data:(0,g.A)({},w.data),resolve:(0,g.A)((0,g.A)({},w.data),null!==(Qe=w._resolvedData)&&void 0!==Qe?Qe:{})}:{params:(0,g.A)((0,g.A)({},N.params),w.params),data:(0,g.A)((0,g.A)({},N.data),w.data),resolve:(0,g.A)((0,g.A)((0,g.A)((0,g.A)({},w.data),N.data),null==ke?void 0:ke.data),w._resolvedData)},ke&&ss(ke)&&(fe.resolve[ce]=ke.title),fe}class vo{get title(){var N;return null===(N=this.data)||void 0===N?void 0:N[ce]}constructor(N,J,L,fe,ke,Qe,Wt,gn,Qt){(0,s.A)(this,"url",void 0),(0,s.A)(this,"params",void 0),(0,s.A)(this,"queryParams",void 0),(0,s.A)(this,"fragment",void 0),(0,s.A)(this,"data",void 0),(0,s.A)(this,"outlet",void 0),(0,s.A)(this,"component",void 0),(0,s.A)(this,"routeConfig",void 0),(0,s.A)(this,"_resolve",void 0),(0,s.A)(this,"_resolvedData",void 0),(0,s.A)(this,"_routerState",void 0),(0,s.A)(this,"_paramMap",void 0),(0,s.A)(this,"_queryParamMap",void 0),this.url=N,this.params=J,this.queryParams=L,this.fragment=fe,this.data=ke,this.outlet=Qe,this.component=Wt,this.routeConfig=gn,this._resolve=Qt}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){var N;return null!==(N=this._paramMap)&&void 0!==N||(this._paramMap=Be(this.params)),this._paramMap}get queryParamMap(){var N;return null!==(N=this._queryParamMap)&&void 0!==N||(this._queryParamMap=Be(this.queryParams)),this._queryParamMap}toString(){const N=this.url.map(L=>L.toString()).join("/"),J=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(N,"', path:'").concat(J,"')")}}class $i extends Re{constructor(N,J){super(J),(0,s.A)(this,"url",void 0),this.url=N,zo(this,J)}toString(){return ci(this._root)}}function zo(w,N){N.value._routerState=w,N.children.forEach(J=>zo(w,J))}function ci(w){const N=w.children.length>0?" { ".concat(w.children.map(ci).join(", ")," } "):"";return"".concat(w.value).concat(N)}function qi(w){if(w.snapshot){const N=w.snapshot,J=w._futureSnapshot;w.snapshot=J,Mt(N.queryParams,J.queryParams)||w.queryParamsSubject.next(J.queryParams),N.fragment!==J.fragment&&w.fragmentSubject.next(J.fragment),Mt(N.params,J.params)||w.paramsSubject.next(J.params),function zt(w,N){if(w.length!==N.length)return!1;for(let J=0;J<w.length;++J)if(!Mt(w[J],N[J]))return!1;return!0}(N.url,J.url)||w.urlSubject.next(J.url),Mt(N.data,J.data)||w.dataSubject.next(J.data)}else w.snapshot=w._futureSnapshot,w.dataSubject.next(w._futureSnapshot.data)}function Kn(w,N){const J=Mt(w.params,N.params)&&function dn(w,N){return kn(w,N)&&w.every((J,L)=>Mt(J.parameters,N[L].parameters))}(w.url,N.url);return J&&!(!w.parent!=!N.parent)&&(!w.parent||Kn(w.parent,N.parent))}function ss(w){return"string"==typeof w.title||null===w.title}const ns=new f.nKC("");let Ki=(()=>{var w;class N{constructor(){(0,s.A)(this,"activated",null),(0,s.A)(this,"_activatedRoute",null),(0,s.A)(this,"name",P),(0,s.A)(this,"activateEvents",new f.bkB),(0,s.A)(this,"deactivateEvents",new f.bkB),(0,s.A)(this,"attachEvents",new f.bkB),(0,s.A)(this,"detachEvents",new f.bkB),(0,s.A)(this,"routerOutletData",(0,f.hFB)(void 0)),(0,s.A)(this,"parentContexts",(0,f.WQX)(me)),(0,s.A)(this,"location",(0,f.WQX)(f.c1b)),(0,s.A)(this,"changeDetector",(0,f.WQX)(f.gRc)),(0,s.A)(this,"inputBinder",(0,f.WQX)(wo,{optional:!0})),(0,s.A)(this,"supportsBindingToComponentInputs",!0)}get activatedComponentRef(){return this.activated}ngOnChanges(L){if(L.name){const{firstChange:fe,previousValue:ke}=L.name;if(fe)return;this.isTrackedInParentContexts(ke)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(ke)),this.initializeOutletWithName()}}ngOnDestroy(){var L;this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),null===(L=this.inputBinder)||void 0===L||L.unsubscribeFromRouteData(this)}isTrackedInParentContexts(L){var fe;return(null===(fe=this.parentContexts.getContext(L))||void 0===fe?void 0:fe.outlet)===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const L=this.parentContexts.getContext(this.name);null!=L&&L.route&&(L.attachRef?this.attach(L.attachRef,L.route):this.activateWith(L.route,L.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new f.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new f.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new f.wOt(4012,!1);this.location.detach();const L=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(L.instance),L}attach(L,fe){var ke;this.activated=L,this._activatedRoute=fe,this.location.insert(L.hostView),null===(ke=this.inputBinder)||void 0===ke||ke.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(L.instance)}deactivate(){if(this.activated){const L=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(L)}}activateWith(L,fe){var ke;if(this.isActivated)throw new f.wOt(4013,!1);this._activatedRoute=L;const Qe=this.location,gn=L.snapshot.component,Qt=this.parentContexts.getOrCreateContext(this.name).children,Wn=new Ci(L,Qt,Qe.injector,this.routerOutletData);this.activated=Qe.createComponent(gn,{index:Qe.length,injector:Wn,environmentInjector:fe}),this.changeDetector.markForCheck(),null===(ke=this.inputBinder)||void 0===ke||ke.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return w=N,(0,s.A)(N,"\u0275fac",function(L){return new(L||w)}),(0,s.A)(N,"\u0275dir",f.FsC({type:w,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[f.OA$]})),N})();class Ci{__ngOutletInjector(N){return new Ci(this.route,this.childContexts,N,this.outletData)}constructor(N,J,L,fe){(0,s.A)(this,"route",void 0),(0,s.A)(this,"childContexts",void 0),(0,s.A)(this,"parent",void 0),(0,s.A)(this,"outletData",void 0),this.route=N,this.childContexts=J,this.parent=L,this.outletData=fe}get(N,J){return N===wr?this.route:N===me?this.childContexts:N===ns?this.outletData:this.parent.get(N,J)}}const wo=new f.nKC("");let as=(()=>{var w;class N{constructor(){(0,s.A)(this,"outletDataSubscriptions",new Map)}bindActivatedRouteToOutletComponent(L){this.unsubscribeFromRouteData(L),this.subscribeToRouteData(L)}unsubscribeFromRouteData(L){var fe;null===(fe=this.outletDataSubscriptions.get(L))||void 0===fe||fe.unsubscribe(),this.outletDataSubscriptions.delete(L)}subscribeToRouteData(L){const{activatedRoute:fe}=L,ke=(0,q.z)([fe.queryParams,fe.params,fe.data]).pipe((0,G.n)(([Qe,Wt,gn],Qt)=>(gn=(0,g.A)((0,g.A)((0,g.A)({},Qe),Wt),gn),0===Qt?(0,R.of)(gn):Promise.resolve(gn)))).subscribe(Qe=>{if(!L.isActivated||!L.activatedComponentRef||L.activatedRoute!==fe||null===fe.component)return void this.unsubscribeFromRouteData(L);const Wt=(0,f.HJs)(fe.component);if(Wt)for(const{templateName:gn}of Wt.inputs)L.activatedComponentRef.setInput(gn,Qe[gn]);else this.unsubscribeFromRouteData(L)});this.outletDataSubscriptions.set(L,ke)}}return w=N,(0,s.A)(N,"\u0275fac",function(L){return new(L||w)}),(0,s.A)(N,"\u0275prov",f.jDH({token:w,factory:w.\u0275fac})),N})();function Io(w,N,J){if(J&&w.shouldReuseRoute(N.value,J.value.snapshot)){const L=J.value;L._futureSnapshot=N.value;const fe=function lo(w,N,J){return N.children.map(L=>{for(const fe of J.children)if(w.shouldReuseRoute(L.value,fe.value.snapshot))return Io(w,L,fe);return Io(w,L)})}(w,N,J);return new $t(L,fe)}{if(w.shouldAttach(N.value)){const ke=w.retrieve(N.value);if(null!==ke){const Qe=ke.route;return Qe.value._futureSnapshot=N.value,Qe.children=N.children.map(Wt=>Io(w,Wt)),Qe}}const L=function Qo(w){return new wr(new U.t(w.url),new U.t(w.params),new U.t(w.queryParams),new U.t(w.fragment),new U.t(w.data),w.outlet,w.component,w)}(N.value),fe=N.children.map(ke=>Io(w,ke));return new $t(L,fe)}}class To{constructor(N,J){(0,s.A)(this,"redirectTo",void 0),(0,s.A)(this,"navigationBehaviorOptions",void 0),this.redirectTo=N,this.navigationBehaviorOptions=J}}const _o="ngNavigationCancelingError";function ls(w,N){const{redirectTo:J,navigationBehaviorOptions:L}=Ar(N)?{redirectTo:N,navigationBehaviorOptions:void 0}:N,fe=Ri(!1,Nr.Redirect);return fe.url=J,fe.navigationBehaviorOptions=L,fe}function Ri(w,N){const J=new Error("NavigationCancelingError: ".concat(w||""));return J[_o]=!0,J.cancellationCode=N,J}function Cs(w){return!!w&&w[_o]}class aa{constructor(N,J,L,fe,ke){(0,s.A)(this,"routeReuseStrategy",void 0),(0,s.A)(this,"futureState",void 0),(0,s.A)(this,"currState",void 0),(0,s.A)(this,"forwardEvent",void 0),(0,s.A)(this,"inputBindingEnabled",void 0),this.routeReuseStrategy=N,this.futureState=J,this.currState=L,this.forwardEvent=fe,this.inputBindingEnabled=ke}activate(N){const J=this.futureState._root,L=this.currState?this.currState._root:null;this.deactivateChildRoutes(J,L,N),qi(this.futureState.root),this.activateChildRoutes(J,L,N)}deactivateChildRoutes(N,J,L){const fe=vn(J);N.children.forEach(ke=>{const Qe=ke.value.outlet;this.deactivateRoutes(ke,fe[Qe],L),delete fe[Qe]}),Object.values(fe).forEach(ke=>{this.deactivateRouteAndItsChildren(ke,L)})}deactivateRoutes(N,J,L){const fe=N.value,ke=J?J.value:null;if(fe===ke)if(fe.component){const Qe=L.getContext(fe.outlet);Qe&&this.deactivateChildRoutes(N,J,Qe.children)}else this.deactivateChildRoutes(N,J,L);else ke&&this.deactivateRouteAndItsChildren(J,L)}deactivateRouteAndItsChildren(N,J){N.value.component&&this.routeReuseStrategy.shouldDetach(N.value.snapshot)?this.detachAndStoreRouteSubtree(N,J):this.deactivateRouteAndOutlet(N,J)}detachAndStoreRouteSubtree(N,J){const L=J.getContext(N.value.outlet),fe=L&&N.value.component?L.children:J,ke=vn(N);for(const Qe of Object.values(ke))this.deactivateRouteAndItsChildren(Qe,fe);if(L&&L.outlet){const Qe=L.outlet.detach(),Wt=L.children.onOutletDeactivated();this.routeReuseStrategy.store(N.value.snapshot,{componentRef:Qe,route:N,contexts:Wt})}}deactivateRouteAndOutlet(N,J){const L=J.getContext(N.value.outlet),fe=L&&N.value.component?L.children:J,ke=vn(N);for(const Qe of Object.values(ke))this.deactivateRouteAndItsChildren(Qe,fe);L&&(L.outlet&&(L.outlet.deactivate(),L.children.onOutletDeactivated()),L.attachRef=null,L.route=null)}activateChildRoutes(N,J,L){const fe=vn(J);N.children.forEach(ke=>{this.activateRoutes(ke,fe[ke.value.outlet],L),this.forwardEvent(new ii(ke.value.snapshot))}),N.children.length&&this.forwardEvent(new zn(N.value.snapshot))}activateRoutes(N,J,L){const fe=N.value,ke=J?J.value:null;if(qi(fe),fe===ke)if(fe.component){const Qe=L.getOrCreateContext(fe.outlet);this.activateChildRoutes(N,J,Qe.children)}else this.activateChildRoutes(N,J,L);else if(fe.component){const Qe=L.getOrCreateContext(fe.outlet);if(this.routeReuseStrategy.shouldAttach(fe.snapshot)){const Wt=this.routeReuseStrategy.retrieve(fe.snapshot);this.routeReuseStrategy.store(fe.snapshot,null),Qe.children.onOutletReAttached(Wt.contexts),Qe.attachRef=Wt.componentRef,Qe.route=Wt.route.value,Qe.outlet&&Qe.outlet.attach(Wt.componentRef,Wt.route.value),qi(Wt.route.value),this.activateChildRoutes(N,null,Qe.children)}else Qe.attachRef=null,Qe.route=fe,Qe.outlet&&Qe.outlet.activateWith(fe,Qe.injector),this.activateChildRoutes(N,null,Qe.children)}else this.activateChildRoutes(N,null,L)}}class bs{constructor(N){(0,s.A)(this,"path",void 0),(0,s.A)(this,"route",void 0),this.path=N,this.route=this.path[this.path.length-1]}}class Do{constructor(N,J){(0,s.A)(this,"component",void 0),(0,s.A)(this,"route",void 0),this.component=N,this.route=J}}function Ys(w,N,J){const L=w._root;return uo(L,N?N._root:null,J,[L.value])}function Fi(w,N){const J=Symbol(),L=N.get(w,J);return L===J?"function"!=typeof w||(0,f.LfX)(w)?N.get(w):w:L}function uo(w,N,J,L,fe={canDeactivateChecks:[],canActivateChecks:[]}){const ke=vn(N);return w.children.forEach(Qe=>{(function Fs(w,N,J,L,fe={canDeactivateChecks:[],canActivateChecks:[]}){const ke=w.value,Qe=N?N.value:null,Wt=J?J.getContext(w.value.outlet):null;if(Qe&&ke.routeConfig===Qe.routeConfig){const gn=function Ss(w,N,J){if("function"==typeof J)return J(w,N);switch(J){case"pathParamsChange":return!kn(w.url,N.url);case"pathParamsOrQueryParamsChange":return!kn(w.url,N.url)||!Mt(w.queryParams,N.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Kn(w,N)||!Mt(w.queryParams,N.queryParams);default:return!Kn(w,N)}}(Qe,ke,ke.routeConfig.runGuardsAndResolvers);gn?fe.canActivateChecks.push(new bs(L)):(ke.data=Qe.data,ke._resolvedData=Qe._resolvedData),uo(w,N,ke.component?Wt?Wt.children:null:J,L,fe),gn&&Wt&&Wt.outlet&&Wt.outlet.isActivated&&fe.canDeactivateChecks.push(new Do(Wt.outlet.component,Qe))}else Qe&&ro(N,Wt,fe),fe.canActivateChecks.push(new bs(L)),uo(w,null,ke.component?Wt?Wt.children:null:J,L,fe)})(Qe,ke[Qe.value.outlet],J,L.concat([Qe.value]),fe),delete ke[Qe.value.outlet]}),Object.entries(ke).forEach(([Qe,Wt])=>ro(Wt,J.getContext(Qe),fe)),fe}function ro(w,N,J){const L=vn(w),fe=w.value;Object.entries(L).forEach(([ke,Qe])=>{ro(Qe,fe.component?N?N.children.getContext(ke):null:N,J)}),J.canDeactivateChecks.push(new Do(fe.component&&N&&N.outlet&&N.outlet.isActivated?N.outlet.component:null,fe))}function Vr(w){return"function"==typeof w}function ut(w){return w instanceof z.G||"EmptyError"===(null==w?void 0:w.name)}const Pe=Symbol("INITIAL_VALUE");function j(){return(0,G.n)(w=>(0,q.z)(w.map(N=>N.pipe((0,pe.s)(1),(0,le.Z)(Pe)))).pipe((0,B.T)(N=>{for(const J of N)if(!0!==J){if(J===Pe)return Pe;if(!1===J||C(J))return J}return!0}),(0,W.p)(N=>N!==Pe),(0,pe.s)(1)))}function C(w){return Ar(w)||w instanceof To}function Vn(w){return(0,ie.F)((0,Le.M)(N=>{if("boolean"!=typeof N)throw ls(0,N)}),(0,B.T)(N=>!0===N))}class lr{constructor(N){(0,s.A)(this,"segmentGroup",void 0),this.segmentGroup=N||null}}class ur extends Error{constructor(N){super(),(0,s.A)(this,"urlTree",void 0),this.urlTree=N}}function rr(w){return(0,K.$)(new lr(w))}class Hi{constructor(N,J){(0,s.A)(this,"urlSerializer",void 0),(0,s.A)(this,"urlTree",void 0),this.urlSerializer=N,this.urlTree=J}lineralizeSegments(N,J){let L=[],fe=J.root;for(;;){if(L=L.concat(fe.segments),0===fe.numberOfChildren)return(0,R.of)(L);if(fe.numberOfChildren>1||!fe.children[P])return"".concat(N.redirectTo),(0,K.$)(new f.wOt(4e3,!1));fe=fe.children[P]}}applyRedirectCommands(N,J,L,fe,ke){if("string"!=typeof J){const Wt=J,{queryParams:gn,fragment:Qt,routeConfig:Wn,url:Er,outlet:ni,params:mr,data:Ui,title:Oo}=fe,Vo=(0,f.N4e)(ke,()=>Wt({params:mr,data:Ui,queryParams:gn,fragment:Qt,routeConfig:Wn,url:Er,outlet:ni,title:Oo}));if(Vo instanceof ct)throw new ur(Vo);J=Vo}const Qe=this.applyRedirectCreateUrlTree(J,this.urlSerializer.parse(J),N,L);if("/"===J[0])throw new ur(Qe);return Qe}applyRedirectCreateUrlTree(N,J,L,fe){const ke=this.createSegmentGroup(N,J.root,L,fe);return new ct(ke,this.createQueryParams(J.queryParams,this.urlTree.queryParams),J.fragment)}createQueryParams(N,J){const L={};return Object.entries(N).forEach(([fe,ke])=>{if("string"==typeof ke&&":"===ke[0]){const Wt=ke.substring(1);L[fe]=J[Wt]}else L[fe]=ke}),L}createSegmentGroup(N,J,L,fe){const ke=this.createSegments(N,J.segments,L,fe);let Qe={};return Object.entries(J.children).forEach(([Wt,gn])=>{Qe[Wt]=this.createSegmentGroup(N,gn,L,fe)}),new Yt(ke,Qe)}createSegments(N,J,L,fe){return J.map(ke=>":"===ke.path[0]?this.findPosParam(N,ke,fe):this.findOrReturn(ke,L))}findPosParam(N,J,L){const fe=L[J.path.substring(1)];if(!fe)throw new f.wOt(4001,!1);return fe}findOrReturn(N,J){let L=0;for(const fe of J){if(fe.path===N.path)return J.splice(L),fe;L++}return N}}const Zr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function co(w,N,J,L,fe){const ke=Xo(w,N,J);return ke.matched?(L=function Bt(w,N){var J;return w.providers&&!w._injector&&(w._injector=(0,f.Ol2)(w.providers,N,"Route: ".concat(w.path))),null!==(J=w._injector)&&void 0!==J?J:N}(N,L),function dr(w,N,J,L){const fe=N.canMatch;if(!fe||0===fe.length)return(0,R.of)(!0);const ke=fe.map(Qe=>{const Wt=Fi(Qe,w);return Ce(function Ot(w){return w&&Vr(w.canMatch)}(Wt)?Wt.canMatch(N,J):(0,f.N4e)(w,()=>Wt(N,J)))});return(0,R.of)(ke).pipe(j(),Vn())}(L,N,J).pipe((0,B.T)(Qe=>!0===Qe?ke:(0,g.A)({},Zr)))):(0,R.of)(ke)}function Xo(w,N,J){var L,fe;if("**"===N.path)return function io(w){return{matched:!0,parameters:w.length>0?Et(w).parameters:{},consumedSegments:w,remainingSegments:[],positionalParamSegments:{}}}(J);if(""===N.path)return"full"===N.pathMatch&&(w.hasChildren()||J.length>0)?(0,g.A)({},Zr):{matched:!0,consumedSegments:[],remainingSegments:J,parameters:{},positionalParamSegments:{}};const Qe=(N.matcher||Tt)(J,w,N);if(!Qe)return(0,g.A)({},Zr);const Wt={};Object.entries(null!==(L=Qe.posParams)&&void 0!==L?L:{}).forEach(([Qt,Wn])=>{Wt[Qt]=Wn.path});const gn=Qe.consumed.length>0?(0,g.A)((0,g.A)({},Wt),Qe.consumed[Qe.consumed.length-1].parameters):Wt;return{matched:!0,consumedSegments:Qe.consumed,remainingSegments:J.slice(Qe.consumed.length),parameters:gn,positionalParamSegments:null!==(fe=Qe.posParams)&&void 0!==fe?fe:{}}}function Ur(w,N,J,L){return J.length>0&&function rs(w,N,J){return J.some(L=>is(w,N,L)&&Un(L)!==P)}(w,J,L)?{segmentGroup:new Yt(N,Zi(L,new Yt(J,w.children))),slicedSegments:[]}:0===J.length&&function Bo(w,N,J){return J.some(L=>is(w,N,L))}(w,J,L)?{segmentGroup:new Yt(w.segments,Uo(w,J,L,w.children)),slicedSegments:J}:{segmentGroup:new Yt(w.segments,w.children),slicedSegments:J}}function Uo(w,N,J,L){const fe={};for(const ke of J)if(is(w,N,ke)&&!L[Un(ke)]){const Qe=new Yt([],{});fe[Un(ke)]=Qe}return(0,g.A)((0,g.A)({},L),fe)}function Zi(w,N){const J={};J[P]=N;for(const L of w)if(""===L.path&&Un(L)!==P){const fe=new Yt([],{});J[Un(L)]=fe}return J}function is(w,N,J){return(!(w.hasChildren()||N.length>0)||"full"!==J.pathMatch)&&""===J.path}class Ts{}class fr{constructor(N,J,L,fe,ke,Qe,Wt){(0,s.A)(this,"injector",void 0),(0,s.A)(this,"configLoader",void 0),(0,s.A)(this,"rootComponentType",void 0),(0,s.A)(this,"config",void 0),(0,s.A)(this,"urlTree",void 0),(0,s.A)(this,"paramsInheritanceStrategy",void 0),(0,s.A)(this,"urlSerializer",void 0),(0,s.A)(this,"applyRedirects",void 0),(0,s.A)(this,"absoluteRedirectCount",0),(0,s.A)(this,"allowRedirects",!0),this.injector=N,this.configLoader=J,this.rootComponentType=L,this.config=fe,this.urlTree=ke,this.paramsInheritanceStrategy=Qe,this.urlSerializer=Wt,this.applyRedirects=new Hi(this.urlSerializer,this.urlTree)}noMatchError(N){return new f.wOt(4002,"'".concat(N.segmentGroup,"'"))}recognize(){const N=Ur(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(N).pipe((0,B.T)(({children:J,rootSnapshot:L})=>{const fe=new $t(L,J),ke=new $i("",fe),Qe=function br(w,N,J=null,L=null){return fi(Wr(w),N,J,L)}(L,[],this.urlTree.queryParams,this.urlTree.fragment);return Qe.queryParams=this.urlTree.queryParams,ke.url=this.urlSerializer.serialize(Qe),{state:ke,tree:Qe}}))}match(N){const J=new vo([],Object.freeze({}),Object.freeze((0,g.A)({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),P,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,N,P,J).pipe((0,B.T)(L=>({children:L,rootSnapshot:J})),(0,We.W)(L=>{if(L instanceof ur)return this.urlTree=L.urlTree,this.match(L.urlTree.root);throw L instanceof lr?this.noMatchError(L):L}))}processSegmentGroup(N,J,L,fe,ke){return 0===L.segments.length&&L.hasChildren()?this.processChildren(N,J,L,ke):this.processSegment(N,J,L,L.segments,fe,!0,ke).pipe((0,B.T)(Qe=>Qe instanceof $t?[Qe]:[]))}processChildren(N,J,L,fe){const ke=[];for(const Qe of Object.keys(L.children))"primary"===Qe?ke.unshift(Qe):ke.push(Qe);return(0,S.H)(ke).pipe((0,_e.H)(Qe=>{const Wt=L.children[Qe],gn=function _i(w,N){const J=w.filter(L=>Un(L)===N);return J.push(...w.filter(L=>Un(L)!==N)),J}(J,Qe);return this.processSegmentGroup(N,gn,Wt,Qe,fe)}),(0,dt.S)((Qe,Wt)=>(Qe.push(...Wt),Qe)),(0,Ye.U)(null),function je(w,N){const J=arguments.length>=2;return L=>L.pipe(w?(0,W.p)((fe,ke)=>w(fe,ke,L)):Ke.D,we(1),J?(0,Ye.U)(N):(0,ze.v)(()=>new z.G))}(),(0,te.Z)(Qe=>{if(null===Qe)return rr(L);const Wt=Ro(Qe);return function Tr(w){w.sort((N,J)=>N.value.outlet===P?-1:J.value.outlet===P?1:N.value.outlet.localeCompare(J.value.outlet))}(Wt),(0,R.of)(Wt)}))}processSegment(N,J,L,fe,ke,Qe,Wt){return(0,S.H)(J).pipe((0,_e.H)(gn=>{var Qt;return this.processSegmentAgainstRoute(null!==(Qt=gn._injector)&&void 0!==Qt?Qt:N,J,gn,L,fe,ke,Qe,Wt).pipe((0,We.W)(Wn=>{if(Wn instanceof lr)return(0,R.of)(null);throw Wn}))}),(0,ae.$)(gn=>!!gn),(0,We.W)(gn=>{if(ut(gn))return function Ia(w,N,J){return 0===N.length&&!w.children[J]}(L,fe,ke)?(0,R.of)(new Ts):rr(L);throw gn}))}processSegmentAgainstRoute(N,J,L,fe,ke,Qe,Wt,gn){return Un(L)===Qe||Qe!==P&&is(fe,ke,L)?void 0===L.redirectTo?this.matchSegmentAgainstRoute(N,fe,L,ke,Qe,gn):this.allowRedirects&&Wt?this.expandSegmentAgainstRouteUsingRedirect(N,fe,J,L,ke,Qe,gn):rr(fe):rr(fe)}expandSegmentAgainstRouteUsingRedirect(N,J,L,fe,ke,Qe,Wt){var gn,Qt;const{matched:Wn,parameters:Er,consumedSegments:ni,positionalParamSegments:mr,remainingSegments:Ui}=Xo(J,fe,ke);if(!Wn)return rr(J);"string"==typeof fe.redirectTo&&"/"===fe.redirectTo[0]&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const Oo=new vo(ke,Er,Object.freeze((0,g.A)({},this.urlTree.queryParams)),this.urlTree.fragment,fo(fe),Un(fe),null!==(gn=null!==(Qt=fe.component)&&void 0!==Qt?Qt:fe._loadedComponent)&&void 0!==gn?gn:null,fe,si(fe)),Vo=zr(Oo,Wt,this.paramsInheritanceStrategy);Oo.params=Object.freeze(Vo.params),Oo.data=Object.freeze(Vo.data);const Bs=this.applyRedirects.applyRedirectCommands(ni,fe.redirectTo,mr,Oo,N);return this.applyRedirects.lineralizeSegments(fe,Bs).pipe((0,te.Z)(Jo=>this.processSegment(N,L,J,Jo.concat(Ui),Qe,!1,Wt)))}matchSegmentAgainstRoute(N,J,L,fe,ke,Qe){const Wt=co(J,L,fe,N);return"**"===L.path&&(J.children={}),Wt.pipe((0,G.n)(gn=>{var Qt;return gn.matched?(N=null!==(Qt=L._injector)&&void 0!==Qt?Qt:N,this.getChildConfig(N,L,fe).pipe((0,G.n)(({routes:Wn})=>{var Er,ni,mr;const Ui=null!==(Er=L._loadedInjector)&&void 0!==Er?Er:N,{parameters:Oo,consumedSegments:Vo,remainingSegments:Bs}=gn,Jo=new vo(Vo,Oo,Object.freeze((0,g.A)({},this.urlTree.queryParams)),this.urlTree.fragment,fo(L),Un(L),null!==(ni=null!==(mr=L.component)&&void 0!==mr?mr:L._loadedComponent)&&void 0!==ni?ni:null,L,si(L)),Xs=zr(Jo,Qe,this.paramsInheritanceStrategy);Jo.params=Object.freeze(Xs.params),Jo.data=Object.freeze(Xs.data);const{segmentGroup:da,slicedSegments:Oa}=Ur(J,Vo,Bs,Wn);if(0===Oa.length&&da.hasChildren())return this.processChildren(Ui,Wn,da,Jo).pipe((0,B.T)(fa=>new $t(Jo,fa)));if(0===Wn.length&&0===Oa.length)return(0,R.of)(new $t(Jo,[]));const js=Un(L)===ke;return this.processSegment(Ui,Wn,da,Oa,js?P:ke,!0,Jo).pipe((0,B.T)(fa=>new $t(Jo,fa instanceof $t?[fa]:[])))}))):rr(J)}))}getChildConfig(N,J,L){return J.children?(0,R.of)({routes:J.children,injector:N}):J.loadChildren?void 0!==J._loadedRoutes?(0,R.of)({routes:J._loadedRoutes,injector:J._loadedInjector}):function Ln(w,N,J,L){const fe=N.canLoad;if(void 0===fe||0===fe.length)return(0,R.of)(!0);const ke=fe.map(Qe=>{const Wt=Fi(Qe,w);return Ce(function Is(w){return w&&Vr(w.canLoad)}(Wt)?Wt.canLoad(N,J):(0,f.N4e)(w,()=>Wt(N,J)))});return(0,R.of)(ke).pipe(j(),Vn())}(N,J,L).pipe((0,te.Z)(fe=>fe?this.configLoader.loadChildren(N,J).pipe((0,Le.M)(ke=>{J._loadedRoutes=ke.routes,J._loadedInjector=ke.injector})):function Mi(){return(0,K.$)(Ri(!1,Nr.GuardRejected))}())):(0,R.of)({routes:[],injector:N})}}function bi(w){const N=w.value.routeConfig;return N&&""===N.path}function Ro(w){const N=[],J=new Set;for(const L of w){if(!bi(L)){N.push(L);continue}const fe=N.find(ke=>L.value.routeConfig===ke.value.routeConfig);void 0!==fe?(fe.children.push(...L.children),J.add(fe)):N.push(L)}for(const L of J){const fe=Ro(L.children);N.push(new $t(L.value,fe))}return N.filter(L=>!J.has(L))}function fo(w){return w.data||{}}function si(w){return w.resolve||{}}function eo(w){const N=w.children.map(J=>eo(J)).flat();return[w,...N]}function os(w){return(0,G.n)(N=>{const J=w(N);return J?(0,S.H)(J).pipe((0,B.T)(()=>N)):(0,R.of)(N)})}let la=(()=>{var w;class N{buildTitle(L){let fe,ke=L.root;for(;void 0!==ke;){var Qe;fe=null!==(Qe=this.getResolvedTitleForRoute(ke))&&void 0!==Qe?Qe:fe,ke=ke.children.find(Wt=>Wt.outlet===P)}return fe}getResolvedTitleForRoute(L){return L.data[ce]}}return w=N,(0,s.A)(N,"\u0275fac",function(L){return new(L||w)}),(0,s.A)(N,"\u0275prov",f.jDH({token:w,factory:()=>(0,f.WQX)(ua),providedIn:"root"})),N})(),ua=(()=>{var w;class N extends la{constructor(L){super(),(0,s.A)(this,"title",void 0),this.title=L}updateTitle(L){const fe=this.buildTitle(L);void 0!==fe&&this.title.setTitle(fe)}}return w=N,(0,s.A)(N,"\u0275fac",function(L){return new(L||w)(f.KVO(Y.hE))}),(0,s.A)(N,"\u0275prov",f.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})),N})();const Qr=new f.nKC("",{providedIn:"root",factory:()=>({})});let Nn=(()=>{var w;class N{}return w=N,(0,s.A)(N,"\u0275fac",function(L){return new(L||w)}),(0,s.A)(N,"\u0275cmp",f.VBU({type:w,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(L,fe){1&L&&f.nrm(0,"router-outlet")},dependencies:[Ki],encapsulation:2})),N})();function pr(w){const N=w.children&&w.children.map(pr),J=N?(0,g.A)((0,g.A)({},w),{},{children:N}):(0,g.A)({},w);return!J.component&&!J.loadComponent&&(N||J.loadChildren)&&J.outlet&&J.outlet!==P&&(J.component=Nn),J}const pi=new f.nKC("");let ho=(()=>{var w;class N{constructor(){(0,s.A)(this,"componentLoaders",new WeakMap),(0,s.A)(this,"childrenLoaders",new WeakMap),(0,s.A)(this,"onLoadStartListener",void 0),(0,s.A)(this,"onLoadEndListener",void 0),(0,s.A)(this,"compiler",(0,f.WQX)(f.Ql9))}loadComponent(L){if(this.componentLoaders.get(L))return this.componentLoaders.get(L);if(L._loadedComponent)return(0,R.of)(L._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(L);const fe=Ce(L.loadComponent()).pipe((0,B.T)(cs),(0,Le.M)(Qe=>{this.onLoadEndListener&&this.onLoadEndListener(L),L._loadedComponent=Qe}),(0,Ze.j)(()=>{this.componentLoaders.delete(L)})),ke=new _(fe,()=>new O.B).pipe(oe());return this.componentLoaders.set(L,ke),ke}loadChildren(L,fe){if(this.childrenLoaders.get(fe))return this.childrenLoaders.get(fe);if(fe._loadedRoutes)return(0,R.of)({routes:fe._loadedRoutes,injector:fe._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(fe);const Qe=function oo(w,N,J,L){return Ce(w.loadChildren()).pipe((0,B.T)(cs),(0,te.Z)(fe=>fe instanceof f.Co$||Array.isArray(fe)?(0,R.of)(fe):(0,S.H)(N.compileModuleAsync(fe))),(0,B.T)(fe=>{L&&L(w);let ke,Qe,Wt=!1;return Array.isArray(fe)?(Qe=fe,!0):(ke=fe.create(J).injector,Qe=ke.get(pi,[],{optional:!0,self:!0}).flat()),{routes:Qe.map(pr),injector:ke}}))}(fe,this.compiler,L,this.onLoadEndListener).pipe((0,Ze.j)(()=>{this.childrenLoaders.delete(fe)})),Wt=new _(Qe,()=>new O.B).pipe(oe());return this.childrenLoaders.set(fe,Wt),Wt}}return w=N,(0,s.A)(N,"\u0275fac",function(L){return new(L||w)}),(0,s.A)(N,"\u0275prov",f.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})),N})();function cs(w){return function Wi(w){return w&&"object"==typeof w&&"default"in w}(w)?w.default:w}let Br=(()=>{var w;class N{}return w=N,(0,s.A)(N,"\u0275fac",function(L){return new(L||w)}),(0,s.A)(N,"\u0275prov",f.jDH({token:w,factory:()=>(0,f.WQX)(yi),providedIn:"root"})),N})(),yi=(()=>{var w;class N{shouldProcessUrl(L){return!0}extract(L){return L}merge(L,fe){return L}}return w=N,(0,s.A)(N,"\u0275fac",function(L){return new(L||w)}),(0,s.A)(N,"\u0275prov",f.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})),N})();const jo=new f.nKC(""),yr=new f.nKC("");function $(w,N,J){const L=w.get(yr),fe=w.get(x.qQ);return w.get(f.SKi).runOutsideAngular(()=>{if(!fe.startViewTransition||L.skipNextTransition)return L.skipNextTransition=!1,new Promise(Qt=>setTimeout(Qt));let ke;const Qe=new Promise(Qt=>{ke=Qt}),Wt=fe.startViewTransition(()=>(ke(),function re(w){return new Promise(N=>{(0,f.mal)({read:()=>setTimeout(N)},{injector:w})})}(w))),{onViewTransitionCreated:gn}=L;return gn&&(0,f.N4e)(w,()=>gn({transition:Wt,from:N,to:J})),Qe})}const qe=new f.nKC("");let X=(()=>{var w;class N{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){(0,s.A)(this,"currentNavigation",null),(0,s.A)(this,"currentTransition",null),(0,s.A)(this,"lastSuccessfulNavigation",null),(0,s.A)(this,"events",new O.B),(0,s.A)(this,"transitionAbortSubject",new O.B),(0,s.A)(this,"configLoader",(0,f.WQX)(ho)),(0,s.A)(this,"environmentInjector",(0,f.WQX)(f.uvJ)),(0,s.A)(this,"urlSerializer",(0,f.WQX)(Jt)),(0,s.A)(this,"rootContexts",(0,f.WQX)(me)),(0,s.A)(this,"location",(0,f.WQX)(x.aZ)),(0,s.A)(this,"inputBindingEnabled",null!==(0,f.WQX)(wo,{optional:!0})),(0,s.A)(this,"titleStrategy",(0,f.WQX)(la)),(0,s.A)(this,"options",(0,f.WQX)(Qr,{optional:!0})||{}),(0,s.A)(this,"paramsInheritanceStrategy",this.options.paramsInheritanceStrategy||"emptyOnly"),(0,s.A)(this,"urlHandlingStrategy",(0,f.WQX)(Br)),(0,s.A)(this,"createViewTransition",(0,f.WQX)(jo,{optional:!0})),(0,s.A)(this,"navigationErrorHandler",(0,f.WQX)(qe,{optional:!0})),(0,s.A)(this,"navigationId",0),(0,s.A)(this,"transitions",void 0),(0,s.A)(this,"afterPreactivation",()=>(0,R.of)(void 0)),(0,s.A)(this,"rootComponentType",null),this.configLoader.onLoadEndListener=ke=>this.events.next(new Bn(ke)),this.configLoader.onLoadStartListener=ke=>this.events.next(new $n(ke))}complete(){var L;null===(L=this.transitions)||void 0===L||L.complete()}handleNavigationRequest(L){var fe;const ke=++this.navigationId;null===(fe=this.transitions)||void 0===fe||fe.next((0,g.A)((0,g.A)((0,g.A)({},this.transitions.value),L),{},{id:ke}))}setupNavigations(L,fe,ke){return this.transitions=new U.t({id:0,currentUrlTree:fe,currentRawUrl:fe,extractedUrl:this.urlHandlingStrategy.extract(fe),urlAfterRedirects:this.urlHandlingStrategy.extract(fe),rawUrl:fe,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Vi,restoredState:null,currentSnapshot:ke.snapshot,targetSnapshot:null,currentRouterState:ke,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,W.p)(Qe=>0!==Qe.id),(0,B.T)(Qe=>(0,g.A)((0,g.A)({},Qe),{},{extractedUrl:this.urlHandlingStrategy.extract(Qe.rawUrl)})),(0,G.n)(Qe=>{let Wt=!1,gn=!1;return(0,R.of)(Qe).pipe((0,G.n)(Qt=>{var Wn;if(this.navigationId>Qe.id)return this.cancelNavigationTransition(Qe,"",Nr.SupersededByNewNavigation),ee.w;this.currentTransition=Qe,this.currentNavigation={id:Qt.id,initialUrl:Qt.rawUrl,extractedUrl:Qt.extractedUrl,targetBrowserUrl:"string"==typeof Qt.extras.browserUrl?this.urlSerializer.parse(Qt.extras.browserUrl):Qt.extras.browserUrl,trigger:Qt.source,extras:Qt.extras,previousNavigation:this.lastSuccessfulNavigation?(0,g.A)((0,g.A)({},this.lastSuccessfulNavigation),{},{previousNavigation:null}):null};const Er=!L.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),ni=null!==(Wn=Qt.extras.onSameUrlNavigation)&&void 0!==Wn?Wn:L.onSameUrlNavigation;if(!Er&&"reload"!==ni){const mr="";return this.events.next(new Pi(Qt.id,this.urlSerializer.serialize(Qt.rawUrl),mr,Gn.IgnoredSameUrlNavigation)),Qt.resolve(!1),ee.w}if(this.urlHandlingStrategy.shouldProcessUrl(Qt.rawUrl))return(0,R.of)(Qt).pipe((0,G.n)(mr=>{var Ui,Oo;const Vo=null===(Ui=this.transitions)||void 0===Ui?void 0:Ui.getValue();return this.events.next(new ki(mr.id,this.urlSerializer.serialize(mr.extractedUrl),mr.source,mr.restoredState)),Vo!==(null===(Oo=this.transitions)||void 0===Oo?void 0:Oo.getValue())?ee.w:Promise.resolve(mr)}),function Ds(w,N,J,L,fe,ke){return(0,te.Z)(Qe=>function ir(w,N,J,L,fe,ke,Qe="emptyOnly"){return new fr(w,N,J,L,fe,Qe,ke).recognize()}(w,N,J,L,Qe.extractedUrl,fe,ke).pipe((0,B.T)(({state:Wt,tree:gn})=>(0,g.A)((0,g.A)({},Qe),{},{targetSnapshot:Wt,urlAfterRedirects:gn}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,L.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,Le.M)(mr=>{Qe.targetSnapshot=mr.targetSnapshot,Qe.urlAfterRedirects=mr.urlAfterRedirects,this.currentNavigation=(0,g.A)((0,g.A)({},this.currentNavigation),{},{finalUrl:mr.urlAfterRedirects});const Ui=new _t(mr.id,this.urlSerializer.serialize(mr.extractedUrl),this.urlSerializer.serialize(mr.urlAfterRedirects),mr.targetSnapshot);this.events.next(Ui)}));if(Er&&this.urlHandlingStrategy.shouldProcessUrl(Qt.currentRawUrl)){const{id:mr,extractedUrl:Ui,source:Oo,restoredState:Vo,extras:Bs}=Qt,Jo=new ki(mr,this.urlSerializer.serialize(Ui),Oo,Vo);this.events.next(Jo);const Xs=gr(this.rootComponentType).snapshot;return this.currentTransition=Qe=(0,g.A)((0,g.A)({},Qt),{},{targetSnapshot:Xs,urlAfterRedirects:Ui,extras:(0,g.A)((0,g.A)({},Bs),{},{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=Ui,(0,R.of)(Qe)}{const mr="";return this.events.next(new Pi(Qt.id,this.urlSerializer.serialize(Qt.extractedUrl),mr,Gn.IgnoredByUrlHandlingStrategy)),Qt.resolve(!1),ee.w}}),(0,Le.M)(Qt=>{const Wn=new Zt(Qt.id,this.urlSerializer.serialize(Qt.extractedUrl),this.urlSerializer.serialize(Qt.urlAfterRedirects),Qt.targetSnapshot);this.events.next(Wn)}),(0,B.T)(Qt=>(this.currentTransition=Qe=(0,g.A)((0,g.A)({},Qt),{},{guards:Ys(Qt.targetSnapshot,Qt.currentSnapshot,this.rootContexts)}),Qe)),function M(w,N){return(0,te.Z)(J=>{const{targetSnapshot:L,currentSnapshot:fe,guards:{canActivateChecks:ke,canDeactivateChecks:Qe}}=J;return 0===Qe.length&&0===ke.length?(0,R.of)((0,g.A)((0,g.A)({},J),{},{guardsResult:!0})):function ne(w,N,J,L){return(0,S.H)(w).pipe((0,te.Z)(fe=>function cn(w,N,J,L,fe){const ke=N&&N.routeConfig?N.routeConfig.canDeactivate:null;if(!ke||0===ke.length)return(0,R.of)(!0);const Qe=ke.map(Wt=>{var gn;const Qt=null!==(gn=p(N))&&void 0!==gn?gn:fe,Wn=Fi(Wt,Qt);return Ce(function Ue(w){return w&&Vr(w.canDeactivate)}(Wn)?Wn.canDeactivate(w,N,J,L):(0,f.N4e)(Qt,()=>Wn(w,N,J,L))).pipe((0,ae.$)())});return(0,R.of)(Qe).pipe(j())}(fe.component,fe.route,J,N,L)),(0,ae.$)(fe=>!0!==fe,!0))}(Qe,L,fe,w).pipe((0,te.Z)(Wt=>Wt&&function yo(w){return"boolean"==typeof w}(Wt)?function Oe(w,N,J,L){return(0,S.H)(N).pipe((0,_e.H)(fe=>(0,ve.x)(function pt(w,N){return null!==w&&N&&N(new Sn(w)),(0,R.of)(!0)}(fe.route.parent,L),function Fe(w,N){return null!==w&&N&&N(new Dn(w)),(0,R.of)(!0)}(fe.route,L),function Ht(w,N,J){const L=N[N.length-1],ke=N.slice(0,N.length-1).reverse().map(Qe=>function Gr(w){const N=w.routeConfig?w.routeConfig.canActivateChild:null;return N&&0!==N.length?{node:w,guards:N}:null}(Qe)).filter(Qe=>null!==Qe).map(Qe=>Q(()=>{const Wt=Qe.guards.map(gn=>{var Qt;const Wn=null!==(Qt=p(Qe.node))&&void 0!==Qt?Qt:J,Er=Fi(gn,Wn);return Ce(function _s(w){return w&&Vr(w.canActivateChild)}(Er)?Er.canActivateChild(L,w):(0,f.N4e)(Wn,()=>Er(L,w))).pipe((0,ae.$)())});return(0,R.of)(Wt).pipe(j())}));return(0,R.of)(ke).pipe(j())}(w,fe.path,J),function St(w,N,J){const L=N.routeConfig?N.routeConfig.canActivate:null;if(!L||0===L.length)return(0,R.of)(!0);const fe=L.map(ke=>Q(()=>{var Qe;const Wt=null!==(Qe=p(N))&&void 0!==Qe?Qe:J,gn=Fi(ke,Wt);return Ce(function vs(w){return w&&Vr(w.canActivate)}(gn)?gn.canActivate(N,w):(0,f.N4e)(Wt,()=>gn(N,w))).pipe((0,ae.$)())}));return(0,R.of)(fe).pipe(j())}(w,fe.route,J))),(0,ae.$)(fe=>!0!==fe,!0))}(L,ke,w,N):(0,R.of)(Wt)),(0,B.T)(Wt=>(0,g.A)((0,g.A)({},J),{},{guardsResult:Wt})))})}(this.environmentInjector,Qt=>this.events.next(Qt)),(0,Le.M)(Qt=>{if(Qe.guardsResult=Qt.guardsResult,Qt.guardsResult&&"boolean"!=typeof Qt.guardsResult)throw ls(0,Qt.guardsResult);const Wn=new Ut(Qt.id,this.urlSerializer.serialize(Qt.extractedUrl),this.urlSerializer.serialize(Qt.urlAfterRedirects),Qt.targetSnapshot,!!Qt.guardsResult);this.events.next(Wn)}),(0,W.p)(Qt=>!!Qt.guardsResult||(this.cancelNavigationTransition(Qt,"",Nr.GuardRejected),!1)),os(Qt=>{if(Qt.guards.canActivateChecks.length)return(0,R.of)(Qt).pipe((0,Le.M)(Wn=>{const Er=new bn(Wn.id,this.urlSerializer.serialize(Wn.extractedUrl),this.urlSerializer.serialize(Wn.urlAfterRedirects),Wn.targetSnapshot);this.events.next(Er)}),(0,G.n)(Wn=>{let Er=!1;return(0,R.of)(Wn).pipe(function pl(w,N){return(0,te.Z)(J=>{const{targetSnapshot:L,guards:{canActivateChecks:fe}}=J;if(!fe.length)return(0,R.of)(J);const ke=new Set(fe.map(gn=>gn.route)),Qe=new Set;for(const gn of ke)if(!Qe.has(gn))for(const Qt of eo(gn))Qe.add(Qt);let Wt=0;return(0,S.H)(Qe).pipe((0,_e.H)(gn=>ke.has(gn)?function us(w,N,J,L){const fe=w.routeConfig,ke=w._resolve;return void 0!==(null==fe?void 0:fe.title)&&!ss(fe)&&(ke[ce]=fe.title),function Eo(w,N,J,L){const fe=He(w);if(0===fe.length)return(0,R.of)({});const ke={};return(0,S.H)(fe).pipe((0,te.Z)(Qe=>function Us(w,N,J,L){var fe;const ke=null!==(fe=p(N))&&void 0!==fe?fe:L,Qe=Fi(w,ke);return Ce(Qe.resolve?Qe.resolve(N,J):(0,f.N4e)(ke,()=>Qe(N,J)))}(w[Qe],N,J,L).pipe((0,ae.$)(),(0,Le.M)(Wt=>{if(Wt instanceof To)throw ls(new At,Wt);ke[Qe]=Wt}))),we(1),(0,B.T)(()=>ke),(0,We.W)(Qe=>ut(Qe)?ee.w:(0,K.$)(Qe)))}(ke,w,N,L).pipe((0,B.T)(Qe=>(w._resolvedData=Qe,w.data=zr(w,w.parent,J).resolve,null)))}(gn,L,w,N):(gn.data=zr(gn,gn.parent,w).resolve,(0,R.of)(void 0))),(0,Le.M)(()=>Wt++),we(1),(0,te.Z)(gn=>Wt===Qe.size?(0,R.of)(J):ee.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,Le.M)({next:()=>Er=!0,complete:()=>{Er||this.cancelNavigationTransition(Wn,"",Nr.NoDataFromResolver)}}))}),(0,Le.M)(Wn=>{const Er=new Rn(Wn.id,this.urlSerializer.serialize(Wn.extractedUrl),this.urlSerializer.serialize(Wn.urlAfterRedirects),Wn.targetSnapshot);this.events.next(Er)}))}),os(Qt=>{const Wn=Er=>{var ni;const mr=[];null!==(ni=Er.routeConfig)&&void 0!==ni&&ni.loadComponent&&!Er.routeConfig._loadedComponent&&mr.push(this.configLoader.loadComponent(Er.routeConfig).pipe((0,Le.M)(Ui=>{Er.component=Ui}),(0,B.T)(()=>{})));for(const Ui of Er.children)mr.push(...Wn(Ui));return mr};return(0,q.z)(Wn(Qt.targetSnapshot.root)).pipe((0,Ye.U)(null),(0,pe.s)(1))}),os(()=>this.afterPreactivation()),(0,G.n)(()=>{var Qt;const{currentSnapshot:Wn,targetSnapshot:Er}=Qe,ni=null===(Qt=this.createViewTransition)||void 0===Qt?void 0:Qt.call(this,this.environmentInjector,Wn.root,Er.root);return ni?(0,S.H)(ni).pipe((0,B.T)(()=>Qe)):(0,R.of)(Qe)}),(0,B.T)(Qt=>{const Wn=function Fo(w,N,J){const L=Io(w,N._root,J?J._root:void 0);return new xn(L,N)}(L.routeReuseStrategy,Qt.targetSnapshot,Qt.currentRouterState);return this.currentTransition=Qe=(0,g.A)((0,g.A)({},Qt),{},{targetRouterState:Wn}),this.currentNavigation.targetRouterState=Wn,Qe}),(0,Le.M)(()=>{this.events.next(new qr)}),((w,N,J,L)=>(0,B.T)(fe=>(new aa(N,fe.targetRouterState,fe.currentRouterState,J,L).activate(w),fe)))(this.rootContexts,L.routeReuseStrategy,Qt=>this.events.next(Qt),this.inputBindingEnabled),(0,pe.s)(1),(0,Le.M)({next:Qt=>{var Wn;Wt=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new hi(Qt.id,this.urlSerializer.serialize(Qt.extractedUrl),this.urlSerializer.serialize(Qt.urlAfterRedirects))),null===(Wn=this.titleStrategy)||void 0===Wn||Wn.updateTitle(Qt.targetRouterState.snapshot),Qt.resolve(!0)},complete:()=>{Wt=!0}}),(0,k.Q)(this.transitionAbortSubject.pipe((0,Le.M)(Qt=>{throw Qt}))),(0,Ze.j)(()=>{var Qt;!Wt&&!gn&&this.cancelNavigationTransition(Qe,"",Nr.SupersededByNewNavigation),(null===(Qt=this.currentTransition)||void 0===Qt?void 0:Qt.id)===Qe.id&&(this.currentNavigation=null,this.currentTransition=null)}),(0,We.W)(Qt=>{if(gn=!0,Cs(Qt))this.events.next(new Yr(Qe.id,this.urlSerializer.serialize(Qe.extractedUrl),Qt.message,Qt.cancellationCode)),function gs(w){return Cs(w)&&Ar(w.url)}(Qt)?this.events.next(new Ir(Qt.url,Qt.navigationBehaviorOptions)):Qe.resolve(!1);else{var Wn;const Er=new Xe(Qe.id,this.urlSerializer.serialize(Qe.extractedUrl),Qt,null!==(Wn=Qe.targetSnapshot)&&void 0!==Wn?Wn:void 0);try{const ni=(0,f.N4e)(this.environmentInjector,()=>{var mr;return null===(mr=this.navigationErrorHandler)||void 0===mr?void 0:mr.call(this,Er)});if(!(ni instanceof To))throw this.events.next(Er),Qt;{const{message:mr,cancellationCode:Ui}=ls(0,ni);this.events.next(new Yr(Qe.id,this.urlSerializer.serialize(Qe.extractedUrl),mr,Ui)),this.events.next(new Ir(ni.redirectTo,ni.navigationBehaviorOptions))}}catch(ni){this.options.resolveNavigationPromiseOnError?Qe.resolve(!1):Qe.reject(ni)}}return ee.w}))}))}cancelNavigationTransition(L,fe,ke){const Qe=new Yr(L.id,this.urlSerializer.serialize(L.extractedUrl),fe,ke);this.events.next(Qe),L.resolve(!1)}isUpdatingInternalState(){var L,fe;return(null===(L=this.currentTransition)||void 0===L?void 0:L.extractedUrl.toString())!==(null===(fe=this.currentTransition)||void 0===fe?void 0:fe.currentUrlTree.toString())}isUpdatedBrowserUrl(){var L,fe,ke,Qe;const Wt=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),gn=null!==(L=null===(fe=this.currentNavigation)||void 0===fe?void 0:fe.targetBrowserUrl)&&void 0!==L?L:null===(ke=this.currentNavigation)||void 0===ke?void 0:ke.extractedUrl;return Wt.toString()!==(null==gn?void 0:gn.toString())&&!(null!==(Qe=this.currentNavigation)&&void 0!==Qe&&Qe.extras.skipLocationChange)}}return w=N,(0,s.A)(N,"\u0275fac",function(L){return new(L||w)}),(0,s.A)(N,"\u0275prov",f.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})),N})();function xe(w){return w!==Vi}let tt=(()=>{var w;class N{}return w=N,(0,s.A)(N,"\u0275fac",function(L){return new(L||w)}),(0,s.A)(N,"\u0275prov",f.jDH({token:w,factory:()=>(0,f.WQX)(En),providedIn:"root"})),N})();class qt{shouldDetach(N){return!1}store(N,J){}shouldAttach(N){return!1}retrieve(N){return null}shouldReuseRoute(N,J){return N.routeConfig===J.routeConfig}}let En=(()=>{var w;class N extends qt{}return w=N,(0,s.A)(N,"\u0275fac",(()=>{let J;return function(fe){return(J||(J=f.xGo(w)))(fe||w)}})()),(0,s.A)(N,"\u0275prov",f.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})),N})(),_r=(()=>{var w;class N{}return w=N,(0,s.A)(N,"\u0275fac",function(L){return new(L||w)}),(0,s.A)(N,"\u0275prov",f.jDH({token:w,factory:()=>(0,f.WQX)(Sr),providedIn:"root"})),N})(),Sr=(()=>{var w;class N extends _r{constructor(...L){super(...L),(0,s.A)(this,"location",(0,f.WQX)(x.aZ)),(0,s.A)(this,"urlSerializer",(0,f.WQX)(Jt)),(0,s.A)(this,"options",(0,f.WQX)(Qr,{optional:!0})||{}),(0,s.A)(this,"canceledNavigationResolution",this.options.canceledNavigationResolution||"replace"),(0,s.A)(this,"urlHandlingStrategy",(0,f.WQX)(Br)),(0,s.A)(this,"urlUpdateStrategy",this.options.urlUpdateStrategy||"deferred"),(0,s.A)(this,"currentUrlTree",new ct),(0,s.A)(this,"rawUrlTree",this.currentUrlTree),(0,s.A)(this,"currentPageId",0),(0,s.A)(this,"lastSuccessfulId",-1),(0,s.A)(this,"routerState",gr(null)),(0,s.A)(this,"stateMemento",this.createStateMemento())}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){var L,fe;return"computed"!==this.canceledNavigationResolution?this.currentPageId:null!==(L=null===(fe=this.restoredState())||void 0===fe?void 0:fe.\u0275routerPageId)&&void 0!==L?L:this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(L){return this.location.subscribe(fe=>{"popstate"===fe.type&&L(fe.url,fe.state)})}handleRouterEvent(L,fe){if(L instanceof ki)this.stateMemento=this.createStateMemento();else if(L instanceof Pi)this.rawUrlTree=fe.initialUrl;else if(L instanceof _t){if("eager"===this.urlUpdateStrategy&&!fe.extras.skipLocationChange){var ke;const Wt=this.urlHandlingStrategy.merge(fe.finalUrl,fe.initialUrl);this.setBrowserUrl(null!==(ke=fe.targetBrowserUrl)&&void 0!==ke?ke:Wt,fe)}}else if(L instanceof qr){var Qe;this.currentUrlTree=fe.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(fe.finalUrl,fe.initialUrl),this.routerState=fe.targetRouterState,"deferred"!==this.urlUpdateStrategy||fe.extras.skipLocationChange||this.setBrowserUrl(null!==(Qe=fe.targetBrowserUrl)&&void 0!==Qe?Qe:this.rawUrlTree,fe)}else L instanceof Yr&&(L.code===Nr.GuardRejected||L.code===Nr.NoDataFromResolver)?this.restoreHistory(fe):L instanceof Xe?this.restoreHistory(fe,!0):L instanceof hi&&(this.lastSuccessfulId=L.id,this.currentPageId=this.browserPageId)}setBrowserUrl(L,fe){const ke=L instanceof ct?this.urlSerializer.serialize(L):L;if(this.location.isCurrentPathEqualTo(ke)||fe.extras.replaceUrl){const Qe=this.browserPageId,Wt=(0,g.A)((0,g.A)({},fe.extras.state),this.generateNgRouterState(fe.id,Qe));this.location.replaceState(ke,"",Wt)}else{const Qe=(0,g.A)((0,g.A)({},fe.extras.state),this.generateNgRouterState(fe.id,this.browserPageId+1));this.location.go(ke,"",Qe)}}restoreHistory(L,fe=!1){if("computed"===this.canceledNavigationResolution){const Qe=this.currentPageId-this.browserPageId;0!==Qe?this.location.historyGo(Qe):this.currentUrlTree===L.finalUrl&&0===Qe&&(this.resetState(L),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(fe&&this.resetState(L),this.resetUrlToCurrentUrlTree())}resetState(L){var fe;this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,null!==(fe=L.finalUrl)&&void 0!==fe?fe:this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(L,fe){return"computed"===this.canceledNavigationResolution?{navigationId:L,\u0275routerPageId:fe}:{navigationId:L}}}return w=N,(0,s.A)(N,"\u0275fac",(()=>{let J;return function(fe){return(J||(J=f.xGo(w)))(fe||w)}})()),(0,s.A)(N,"\u0275prov",f.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})),N})();function Or(w,N){w.events.pipe((0,W.p)(J=>J instanceof hi||J instanceof Yr||J instanceof Xe||J instanceof Pi),(0,B.T)(J=>J instanceof hi||J instanceof Pi?0:J instanceof Yr&&(J.code===Nr.Redirect||J.code===Nr.SupersededByNewNavigation)?2:1),(0,W.p)(J=>2!==J),(0,pe.s)(1)).subscribe(()=>{N()})}const Pr={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},jr={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let On=(()=>{var w;class N{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){var L,fe;(0,s.A)(this,"disposed",!1),(0,s.A)(this,"nonRouterCurrentEntryChangeSubscription",void 0),(0,s.A)(this,"console",(0,f.WQX)(f.H3F)),(0,s.A)(this,"stateManager",(0,f.WQX)(_r)),(0,s.A)(this,"options",(0,f.WQX)(Qr,{optional:!0})||{}),(0,s.A)(this,"pendingTasks",(0,f.WQX)(f.Ua0)),(0,s.A)(this,"urlUpdateStrategy",this.options.urlUpdateStrategy||"deferred"),(0,s.A)(this,"navigationTransitions",(0,f.WQX)(X)),(0,s.A)(this,"urlSerializer",(0,f.WQX)(Jt)),(0,s.A)(this,"location",(0,f.WQX)(x.aZ)),(0,s.A)(this,"urlHandlingStrategy",(0,f.WQX)(Br)),(0,s.A)(this,"_events",new O.B),(0,s.A)(this,"navigated",!1),(0,s.A)(this,"routeReuseStrategy",(0,f.WQX)(tt)),(0,s.A)(this,"onSameUrlNavigation",this.options.onSameUrlNavigation||"ignore"),(0,s.A)(this,"config",null!==(L=null===(fe=(0,f.WQX)(pi,{optional:!0}))||void 0===fe?void 0:fe.flat())&&void 0!==L?L:[]),(0,s.A)(this,"componentInputBindingEnabled",!!(0,f.WQX)(wo,{optional:!0})),(0,s.A)(this,"eventsSubscription",new he.yU),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:ke=>{this.console.warn(ke)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const L=this.navigationTransitions.events.subscribe(fe=>{try{const ke=this.navigationTransitions.currentTransition,Qe=this.navigationTransitions.currentNavigation;if(null!==ke&&null!==Qe)if(this.stateManager.handleRouterEvent(fe,Qe),fe instanceof Yr&&fe.code!==Nr.Redirect&&fe.code!==Nr.SupersededByNewNavigation)this.navigated=!0;else if(fe instanceof hi)this.navigated=!0;else if(fe instanceof Ir){const Wt=fe.navigationBehaviorOptions,gn=this.urlHandlingStrategy.merge(fe.url,ke.currentRawUrl),Qt=(0,g.A)({browserUrl:ke.extras.browserUrl,info:ke.extras.info,skipLocationChange:ke.extras.skipLocationChange,replaceUrl:ke.extras.replaceUrl||"eager"===this.urlUpdateStrategy||xe(ke.source)},Wt);this.scheduleNavigation(gn,Vi,null,Qt,{resolve:ke.resolve,reject:ke.reject,promise:ke.promise})}(function po(w){return!(w instanceof qr||w instanceof Ir)})(fe)&&this._events.next(fe)}catch(ke){this.navigationTransitions.transitionAbortSubject.next(ke)}});this.eventsSubscription.add(L)}resetRootComponentType(L){this.routerState.root.component=L,this.navigationTransitions.rootComponentType=L}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Vi,this.stateManager.restoredState())}setUpLocationChangeListener(){var L;null!==(L=this.nonRouterCurrentEntryChangeSubscription)&&void 0!==L||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((fe,ke)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(fe,"popstate",ke)},0)}))}navigateToSyncWithBrowser(L,fe,ke){const Qe={replaceUrl:!0},Wt=null!=ke&&ke.navigationId?ke:null;if(ke){const Qt=(0,g.A)({},ke);delete Qt.navigationId,delete Qt.\u0275routerPageId,0!==Object.keys(Qt).length&&(Qe.state=Qt)}const gn=this.parseUrl(L);this.scheduleNavigation(gn,fe,Wt,Qe)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(L){this.config=L.map(pr),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(L,fe={}){const{relativeTo:ke,queryParams:Qe,fragment:Wt,queryParamsHandling:gn,preserveFragment:Qt}=fe,Wn=Qt?this.currentUrlTree.fragment:Wt;let ni,Er=null;switch(null!=gn?gn:this.options.defaultQueryParamsHandling){case"merge":Er=(0,g.A)((0,g.A)({},this.currentUrlTree.queryParams),Qe);break;case"preserve":Er=this.currentUrlTree.queryParams;break;default:Er=Qe||null}null!==Er&&(Er=this.removeEmptyProps(Er));try{ni=Wr(ke?ke.snapshot:this.routerState.snapshot.root)}catch(mr){("string"!=typeof L[0]||"/"!==L[0][0])&&(L=[]),ni=this.currentUrlTree.root}return fi(ni,L,Er,null!=Wn?Wn:null)}navigateByUrl(L,fe={skipLocationChange:!1}){const ke=Ar(L)?L:this.parseUrl(L),Qe=this.urlHandlingStrategy.merge(ke,this.rawUrlTree);return this.scheduleNavigation(Qe,Vi,null,fe)}navigate(L,fe={skipLocationChange:!1}){return function gi(w){for(let N=0;N<w.length;N++)if(null==w[N])throw new f.wOt(4008,!1)}(L),this.navigateByUrl(this.createUrlTree(L,fe),fe)}serializeUrl(L){return this.urlSerializer.serialize(L)}parseUrl(L){try{return this.urlSerializer.parse(L)}catch(fe){return this.urlSerializer.parse("/")}}isActive(L,fe){let ke;if(ke=!0===fe?(0,g.A)({},Pr):!1===fe?(0,g.A)({},jr):fe,Ar(L))return De(this.currentUrlTree,L,ke);const Qe=this.parseUrl(L);return De(this.currentUrlTree,Qe,ke)}removeEmptyProps(L){return Object.entries(L).reduce((fe,[ke,Qe])=>(null!=Qe&&(fe[ke]=Qe),fe),{})}scheduleNavigation(L,fe,ke,Qe,Wt){if(this.disposed)return Promise.resolve(!1);let gn,Qt,Wn;Wt?(gn=Wt.resolve,Qt=Wt.reject,Wn=Wt.promise):Wn=new Promise((ni,mr)=>{gn=ni,Qt=mr});const Er=this.pendingTasks.add();return Or(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(Er))}),this.navigationTransitions.handleNavigationRequest({source:fe,restoredState:ke,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:L,extras:Qe,resolve:gn,reject:Qt,promise:Wn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Wn.catch(ni=>Promise.reject(ni))}}return w=N,(0,s.A)(N,"\u0275fac",function(L){return new(L||w)}),(0,s.A)(N,"\u0275prov",f.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})),N})();class di{}let ca=(()=>{var w;class N{constructor(L,fe,ke,Qe,Wt){(0,s.A)(this,"router",void 0),(0,s.A)(this,"injector",void 0),(0,s.A)(this,"preloadingStrategy",void 0),(0,s.A)(this,"loader",void 0),(0,s.A)(this,"subscription",void 0),this.router=L,this.injector=ke,this.preloadingStrategy=Qe,this.loader=Wt}setUpPreloading(){this.subscription=this.router.events.pipe((0,W.p)(L=>L instanceof hi),(0,_e.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(L,fe){const ke=[];for(const Qt of fe){var Qe,Wt;Qt.providers&&!Qt._injector&&(Qt._injector=(0,f.Ol2)(Qt.providers,L,"Route: ".concat(Qt.path)));const Wn=null!==(Qe=Qt._injector)&&void 0!==Qe?Qe:L,Er=null!==(Wt=Qt._loadedInjector)&&void 0!==Wt?Wt:Wn;var gn;(Qt.loadChildren&&!Qt._loadedRoutes&&void 0===Qt.canLoad||Qt.loadComponent&&!Qt._loadedComponent)&&ke.push(this.preloadConfig(Wn,Qt)),(Qt.children||Qt._loadedRoutes)&&ke.push(this.processRoutes(Er,null!==(gn=Qt.children)&&void 0!==gn?gn:Qt._loadedRoutes))}return(0,S.H)(ke).pipe((0,F.U)())}preloadConfig(L,fe){return this.preloadingStrategy.preload(fe,()=>{let ke;ke=fe.loadChildren&&void 0===fe.canLoad?this.loader.loadChildren(L,fe):(0,R.of)(null);const Qe=ke.pipe((0,te.Z)(Wt=>{var gn;return null===Wt?(0,R.of)(void 0):(fe._loadedRoutes=Wt.routes,fe._loadedInjector=Wt.injector,this.processRoutes(null!==(gn=Wt.injector)&&void 0!==gn?gn:L,Wt.routes))}));if(fe.loadComponent&&!fe._loadedComponent){const Wt=this.loader.loadComponent(fe);return(0,S.H)([Qe,Wt]).pipe((0,F.U)())}return Qe})}}return w=N,(0,s.A)(N,"\u0275fac",function(L){return new(L||w)(f.KVO(On),f.KVO(f.Ql9),f.KVO(f.uvJ),f.KVO(di),f.KVO(ho))}),(0,s.A)(N,"\u0275prov",f.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})),N})();const Zo=new f.nKC("");let Va=(()=>{var w;class N{constructor(L,fe,ke,Qe,Wt={}){(0,s.A)(this,"urlSerializer",void 0),(0,s.A)(this,"transitions",void 0),(0,s.A)(this,"viewportScroller",void 0),(0,s.A)(this,"zone",void 0),(0,s.A)(this,"options",void 0),(0,s.A)(this,"routerEventsSubscription",void 0),(0,s.A)(this,"scrollEventsSubscription",void 0),(0,s.A)(this,"lastId",0),(0,s.A)(this,"lastSource","imperative"),(0,s.A)(this,"restoredId",0),(0,s.A)(this,"store",{}),this.urlSerializer=L,this.transitions=fe,this.viewportScroller=ke,this.zone=Qe,this.options=Wt,Wt.scrollPositionRestoration||(Wt.scrollPositionRestoration="disabled"),Wt.anchorScrolling||(Wt.anchorScrolling="disabled")}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(L=>{L instanceof ki?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=L.navigationTrigger,this.restoredId=L.restoredState?L.restoredState.navigationId:0):L instanceof hi?(this.lastId=L.id,this.scheduleScrollEvent(L,this.urlSerializer.parse(L.urlAfterRedirects).fragment)):L instanceof Pi&&L.code===Gn.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(L,this.urlSerializer.parse(L.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(L=>{L instanceof Jr&&(L.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(L.position):L.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(L.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(L,fe){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Jr(L,"popstate"===this.lastSource?this.store[this.restoredId]:null,fe))})},0)})}ngOnDestroy(){var L,fe;null===(L=this.routerEventsSubscription)||void 0===L||L.unsubscribe(),null===(fe=this.scrollEventsSubscription)||void 0===fe||fe.unsubscribe()}}return w=N,(0,s.A)(N,"\u0275fac",function(L){f.QTQ()}),(0,s.A)(N,"\u0275prov",f.jDH({token:w,factory:w.\u0275fac})),N})();function ys(w,N){return{\u0275kind:w,\u0275providers:N}}function $a(){const w=(0,f.WQX)(f.zZn);return N=>{var J,L;const fe=w.get(f.o8S);if(N!==fe.components[0])return;const ke=w.get(On),Qe=w.get(wd);1===w.get(tu)&&ke.initialNavigation(),null===(J=w.get(nu,null,f.$GK.Optional))||void 0===J||J.setUpPreloading(),null===(L=w.get(Zo,null,f.$GK.Optional))||void 0===L||L.init(),ke.resetRootComponentType(fe.componentTypes[0]),Qe.closed||(Qe.next(),Qe.complete(),Qe.unsubscribe())}}const wd=new f.nKC("",{factory:()=>new O.B}),tu=new f.nKC("",{providedIn:"root",factory:()=>1}),nu=new f.nKC("");function so(w){return ys(0,[{provide:nu,useExisting:ca},{provide:di,useExisting:w}])}function qh(w){return ys(9,[{provide:jo,useValue:$},{provide:yr,useValue:(0,g.A)({skipNextTransition:!(null==w||!w.skipInitialTransition)},w)}])}const ep=[x.aZ,{provide:Jt,useClass:At},On,me,{provide:wr,useFactory:function Ta(w){return w.routerState.root},deps:[On]},ho,[]];let xo=(()=>{var w;class N{constructor(){}static forRoot(L,fe){return{ngModule:N,providers:[ep,[],{provide:pi,multi:!0,useValue:L},[],null!=fe&&fe.errorHandler?{provide:qe,useValue:fe.errorHandler}:[],{provide:Qr,useValue:fe||{}},null!=fe&&fe.useHash?{provide:x.hb,useClass:x.fw}:{provide:x.hb,useClass:x.Sm},{provide:Zo,useFactory:()=>{const w=(0,f.WQX)(x.Xr),N=(0,f.WQX)(f.SKi),J=(0,f.WQX)(Qr),L=(0,f.WQX)(X),fe=(0,f.WQX)(Jt);return J.scrollOffset&&w.setOffset(J.scrollOffset),new Va(fe,L,w,N,J)}},null!=fe&&fe.preloadingStrategy?so(fe.preloadingStrategy).\u0275providers:[],null!=fe&&fe.initialNavigation?gl(fe):[],null!=fe&&fe.bindToComponentInputs?ys(8,[as,{provide:wo,useExisting:as}]).\u0275providers:[],null!=fe&&fe.enableViewTransitions?qh().\u0275providers:[],[{provide:iu,useFactory:$a},{provide:f.iLQ,multi:!0,useExisting:iu}]]}}static forChild(L){return{ngModule:N,providers:[{provide:pi,multi:!0,useValue:L}]}}}return w=N,(0,s.A)(N,"\u0275fac",function(L){return new(L||w)}),(0,s.A)(N,"\u0275mod",f.$C({type:w})),(0,s.A)(N,"\u0275inj",f.G2t({})),N})();function gl(w){return["disabled"===w.initialNavigation?ys(3,[{provide:f.hnV,multi:!0,useFactory:()=>{const N=(0,f.WQX)(On);return()=>{N.setUpLocationChangeListener()}}},{provide:tu,useValue:2}]).\u0275providers:[],"enabledBlocking"===w.initialNavigation?ys(2,[{provide:tu,useValue:0},{provide:f.hnV,multi:!0,deps:[f.zZn],useFactory:N=>{const J=N.get(x.hj,Promise.resolve());return()=>J.then(()=>new Promise(L=>{const fe=N.get(On),ke=N.get(wd);Or(fe,()=>{L(!0)}),N.get(X).afterPreactivation=()=>(L(!0),ke.closed?(0,R.of)(void 0):ke),fe.initialNavigation()}))}}]).\u0275providers:[]]}const iu=new f.nKC("")},6157:(se,E,c)=>{"use strict";c.d(E,{En:()=>F,Vm:()=>Jt,EH:()=>ae,gp:()=>Y});var g=c(9379),s=c(7786),f=c(1985),d=c(1413),S=c(9974),R=c(4360),U=c(5343),z=c(983),ve=c(7673),de=c(8810),V=c(8071);class ie{constructor(tn,on,kt){this.kind=tn,this.value=on,this.error=kt,this.hasValue="N"===tn}observe(tn){return K(this,tn)}do(tn,on,kt){const{kind:Pt,value:It,error:Dt}=this;return"N"===Pt?null==tn?void 0:tn(It):"E"===Pt?null==on?void 0:on(Dt):null==kt?void 0:kt()}accept(tn,on,kt){var Pt;return(0,V.T)(null===(Pt=tn)||void 0===Pt?void 0:Pt.next)?this.observe(tn):this.do(tn,on,kt)}toObservable(){const{kind:tn,value:on,error:kt}=this,Pt="N"===tn?(0,ve.of)(on):"E"===tn?(0,de.$)(()=>kt):"C"===tn?z.w:0;if(!Pt)throw new TypeError("Unexpected notification kind ".concat(tn));return Pt}static createNext(tn){return new ie("N",tn)}static createError(tn){return new ie("E",void 0,tn)}static createComplete(){return ie.completeNotification}}function K(jt,tn){var on,kt,Pt;const{kind:It,value:Dt,error:Ct}=jt;if("string"!=typeof It)throw new TypeError('Invalid notification, missing "kind"');"N"===It?null===(on=tn.next)||void 0===on||on.call(tn,Dt):"E"===It?null===(kt=tn.error)||void 0===kt||kt.call(tn,Ct):null===(Pt=tn.complete)||void 0===Pt||Pt.call(tn)}ie.completeNotification=new ie("C");var he=c(6354),Ae=c(9437),ue=c(5964),oe=c(8750);function _(jt,tn,on,kt){return(0,S.N)((Pt,It)=>{let Dt;tn&&"function"!=typeof tn?({duration:on,element:Dt,connector:kt}=tn):Dt=tn;const Ct=new Map,sn=bt=>{Ct.forEach(bt),bt(It)},An=bt=>sn(ht=>ht.error(bt));let Qn=0,Fr=!1;const st=new R.H(It,bt=>{try{const ht=jt(bt);let wt=Ct.get(ht);if(!wt){Ct.set(ht,wt=kt?kt():new d.B);const pn=function vt(bt,ht){const wt=new f.c(pn=>{Qn++;const Pn=ht.subscribe(pn);return()=>{Pn.unsubscribe(),0==--Qn&&Fr&&st.unsubscribe()}});return wt.key=bt,wt}(ht,wt);if(It.next(pn),on){const Pn=(0,R._)(wt,()=>{wt.complete(),null==Pn||Pn.unsubscribe()},void 0,void 0,()=>Ct.delete(ht));st.add((0,oe.Tg)(on(pn)).subscribe(Pn))}}wt.next(Dt?Dt(bt):bt)}catch(ht){An(ht)}},()=>sn(bt=>bt.complete()),An,()=>Ct.clear(),()=>(Fr=!0,0===Qn));Pt.subscribe(st)})}var O=c(1397);function x(jt,tn){return tn?on=>on.pipe(x((kt,Pt)=>(0,oe.Tg)(jt(kt,Pt)).pipe((0,he.T)((It,Dt)=>tn(kt,It,Pt,Dt))))):(0,S.N)((on,kt)=>{let Pt=0,It=null,Dt=!1;on.subscribe((0,R._)(kt,Ct=>{It||(It=(0,R._)(kt,void 0,()=>{It=null,Dt&&kt.complete()}),(0,oe.Tg)(jt(Ct,Pt++)).subscribe(It))},()=>{Dt=!0,!It&&kt.complete()}))})}var G=c(6697),pe=c(4438),le=c(7010);const W={dispatch:!0,functional:!1,useEffectsErrorHandler:!0},te="__@ngrx/effects_create__";function ae(jt,tn={}){const on=tn.functional?jt:jt(),kt=(0,g.A)((0,g.A)({},W),tn);return Object.defineProperty(on,te,{value:kt}),on}function dt(jt){return Object.getPrototypeOf(jt)}function we(jt){return"function"==typeof jt}function ze(jt){return jt.filter(we)}function je(jt,tn,on){const kt=dt(jt),It=kt&&"Object"!==kt.constructor.name?kt.constructor.name:null,Dt=function We(jt){return function _e(jt){return Object.getOwnPropertyNames(jt).filter(kt=>!(!jt[kt]||!jt[kt].hasOwnProperty(te))&&jt[kt][te].hasOwnProperty("dispatch")).map(kt=>(0,g.A)({propertyName:kt},jt[kt][te]))}(jt)}(jt).map(({propertyName:Ct,dispatch:sn,useEffectsErrorHandler:An})=>{const Qn="function"==typeof jt[Ct]?jt[Ct]():jt[Ct],Fr=An?on(Qn,tn):Qn;return!1===sn?Fr.pipe(function q(){return(0,S.N)((jt,tn)=>{jt.subscribe((0,R._)(tn,U.l))})}()):Fr.pipe(function ee(){return(0,S.N)((jt,tn)=>{jt.subscribe((0,R._)(tn,on=>{tn.next(ie.createNext(on))},()=>{tn.next(ie.createComplete()),tn.complete()},on=>{tn.next(ie.createError(on)),tn.complete()}))})}()).pipe((0,he.T)(vt=>({effect:jt[Ct],notification:vt,propertyName:Ct,sourceName:It,sourceInstance:jt})))});return(0,s.h)(...Dt)}function k(jt,tn,on=10){return jt.pipe((0,Ae.W)(kt=>(tn&&tn.handleError(kt),on<=1?jt:k(jt,tn,on-1))))}let F=(()=>{var jt;class tn extends f.c{constructor(kt){super(),kt&&(this.source=kt)}lift(kt){const Pt=new tn;return Pt.source=this,Pt.operator=kt,Pt}}return(jt=tn).\u0275fac=function(kt){return new(kt||jt)(pe.KVO(le.sA))},jt.\u0275prov=pe.jDH({token:jt,factory:jt.\u0275fac,providedIn:"root"}),tn})();function Y(...jt){return(0,ue.p)(tn=>jt.some(on=>"string"==typeof on?on===tn.type:on.type===tn.type))}const P=new pe.nKC("@ngrx/effects Internal Root Guard"),ce=new pe.nKC("@ngrx/effects User Provided Effects"),Se=new pe.nKC("@ngrx/effects Internal Root Effects"),Be=new pe.nKC("@ngrx/effects Internal Root Effects Instances"),Tt=new pe.nKC("@ngrx/effects Internal Feature Effects"),zt=new pe.nKC("@ngrx/effects Internal Feature Effects Instance Groups"),Mt=new pe.nKC("@ngrx/effects Effects Error Handler",{providedIn:"root",factory:()=>k}),He="@ngrx/effects/init";function rt(jt){return at(jt,"ngrxOnInitEffects")}function at(jt,tn){return jt&&tn in jt&&"function"==typeof jt[tn]}(0,le.VP)(He);let ct=(()=>{var jt;class tn extends d.B{constructor(kt,Pt){super(),this.errorHandler=kt,this.effectsErrorHandler=Pt}addEffects(kt){this.next(kt)}toActions(){return this.pipe(_(kt=>function Ye(jt){return!!jt.constructor&&"Object"!==jt.constructor.name&&"Function"!==jt.constructor.name}(kt)?dt(kt):kt),(0,O.Z)(kt=>kt.pipe(_(Yt))),(0,O.Z)(kt=>{const Pt=kt.pipe(x(Dt=>function Ft(jt,tn){return on=>{const kt=je(on,jt,tn);return function Me(jt){return at(jt,"ngrxOnRunEffects")}(on)?on.ngrxOnRunEffects(kt):kt}}(this.errorHandler,this.effectsErrorHandler)(Dt)),(0,he.T)(Dt=>(function Et(jt,tn){if("N"===jt.notification.kind){const on=jt.notification.value;!function Ce(jt){return"function"!=typeof jt&&jt&&jt.type&&"string"==typeof jt.type}(on)&&tn.handleError(new Error("Effect ".concat(function ye({propertyName:jt,sourceInstance:tn,sourceName:on}){const kt="function"==typeof tn[jt];return on?'"'.concat(on,".").concat(String(jt)).concat(kt?"()":"",'"'):'"'.concat(String(jt),'()"')}(jt)," dispatched an invalid action: ").concat(function Ee(jt){try{return JSON.stringify(jt)}catch(tn){return jt}}(on))))}}(Dt,this.errorHandler),Dt.notification)),(0,ue.p)(Dt=>"N"===Dt.kind&&null!=Dt.value),function B(){return(0,S.N)((jt,tn)=>{jt.subscribe((0,R._)(tn,on=>K(on,tn)))})}()),It=kt.pipe((0,G.s)(1),(0,ue.p)(rt),(0,he.T)(Dt=>Dt.ngrxOnInitEffects()));return(0,s.h)(Pt,It)}))}}return(jt=tn).\u0275fac=function(kt){return new(kt||jt)(pe.KVO(pe.zcH),pe.KVO(Mt))},jt.\u0275prov=pe.jDH({token:jt,factory:jt.\u0275fac,providedIn:"root"}),tn})();function Yt(jt){return function Ge(jt){return at(jt,"ngrxOnIdentifyEffects")}(jt)?jt.ngrxOnIdentifyEffects():""}let dn=(()=>{var jt;class tn{get isStarted(){return!!this.effectsSubscription}constructor(kt,Pt){this.effectSources=kt,this.store=Pt,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}}return(jt=tn).\u0275fac=function(kt){return new(kt||jt)(pe.KVO(ct),pe.KVO(le.il))},jt.\u0275prov=pe.jDH({token:jt,factory:jt.\u0275fac,providedIn:"root"}),tn})(),kn=(()=>{var jt;class tn{constructor(kt,Pt,It,Dt,Ct,sn,An){this.sources=kt,Pt.start();for(const Qn of Dt)kt.addEffects(Qn);It.dispatch({type:He})}addEffects(kt){this.sources.addEffects(kt)}}return(jt=tn).\u0275fac=function(kt){return new(kt||jt)(pe.KVO(ct),pe.KVO(dn),pe.KVO(le.il),pe.KVO(Be),pe.KVO(le.wc,8),pe.KVO(le.ae,8),pe.KVO(P,8))},jt.\u0275mod=pe.$C({type:jt}),jt.\u0275inj=pe.G2t({}),tn})(),ln=(()=>{var jt;class tn{constructor(kt,Pt,It,Dt){const Ct=Pt.flat();for(const sn of Ct)kt.addEffects(sn)}}return(jt=tn).\u0275fac=function(kt){return new(kt||jt)(pe.KVO(kn),pe.KVO(zt),pe.KVO(le.wc,8),pe.KVO(le.ae,8))},jt.\u0275mod=pe.$C({type:jt}),jt.\u0275inj=pe.G2t({}),tn})(),Jt=(()=>{var jt;class tn{static forFeature(...kt){const Pt=kt.flat(),It=ze(Pt);return{ngModule:ln,providers:[It,{provide:Tt,multi:!0,useValue:Pt},{provide:ce,multi:!0,useValue:[]},{provide:zt,multi:!0,useFactory:At,deps:[Tt,ce]}]}}static forRoot(...kt){const Pt=kt.flat(),It=ze(Pt);return{ngModule:kn,providers:[It,{provide:Se,useValue:[Pt]},{provide:P,useFactory:Hn},{provide:ce,multi:!0,useValue:[]},{provide:Be,useFactory:At,deps:[Se,ce]}]}}}return(jt=tn).\u0275fac=function(kt){return new(kt||jt)},jt.\u0275mod=pe.$C({type:jt}),jt.\u0275inj=pe.G2t({}),tn})();function At(jt,tn){const on=[];for(const kt of jt)on.push(...kt);for(const kt of tn)on.push(...kt);return on.map(kt=>function Ke(jt){return jt instanceof pe.nKC||we(jt)}(kt)?(0,pe.WQX)(kt):kt)}function Hn(){const jt=(0,pe.WQX)(dn,{optional:!0,skipSelf:!0}),tn=(0,pe.WQX)(Se,{self:!0});if((1!==tn.length||0!==tn[0].length)&&jt)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}},7010:(se,E,c)=>{"use strict";c.d(E,{sA:()=>kn,il:()=>or,ae:()=>ii,md:()=>Jr,wc:()=>Dn,VP:()=>_,UX:()=>ui,vy:()=>Ir,on:()=>qr,xk:()=>O});var g=c(9379),s=c(4438),f=c(4412),d=c(1985),S=c(1413),R=c(6780),q=c(9687);const ve=new class z extends q.q{}(class U extends R.R{constructor(Bt,Lt){super(Bt,Lt),this.scheduler=Bt,this.work=Lt}schedule(Bt,Lt=0){return Lt>0?super.schedule(Bt,Lt):(this.delay=Lt,this.state=Bt,this.scheduler.flush(this),this)}execute(Bt,Lt){return Lt>0||this.closed?super.execute(Bt,Lt):this._execute(Bt,Lt)}requestAsyncId(Bt,Lt,Nt=0){return null!=Nt&&Nt>0||null==Nt&&this.delay>0?super.requestAsyncId(Bt,Lt,Nt):(Bt.flush(this),0)}});var V=c(941),Q=c(3993),ie=c(2816),K=c(9085),ee=c(6354),he=c(3294),Ae=c(9079);const ue={};function _(it,Bt){if(ue[it]=(ue[it]||0)+1,"function"==typeof Bt)return B(it,(...Nt)=>(0,g.A)((0,g.A)({},Bt(...Nt)),{},{type:it}));switch(Bt?Bt._as:"empty"){case"empty":return B(it,()=>({type:it}));case"props":return B(it,Nt=>(0,g.A)((0,g.A)({},Nt),{},{type:it}));default:throw new Error("Unexpected config.")}}function O(){return{_as:"props",_p:void 0}}function B(it,Bt){return Object.defineProperty(Bt,"type",{value:it,writable:!1})}const Le="@ngrx/store/init";let We=(()=>{var it;class Bt extends f.t{constructor(){super({type:Le})}next(Nt){if("function"==typeof Nt)throw new TypeError("\n Dispatch expected an object, instead it received a function.\n If you're using the createAction function, make sure to invoke the function\n before dispatching the action. For example, someAction should be someAction().");if(typeof Nt>"u")throw new TypeError("Actions must be objects");if(typeof Nt.type>"u")throw new TypeError("Actions must have a type property");super.next(Nt)}complete(){}ngOnDestroy(){super.complete()}}return(it=Bt).\u0275fac=function(Nt){return new(Nt||it)},it.\u0275prov=s.jDH({token:it,factory:it.\u0275fac}),Bt})();const dt=[We],Ye=new s.nKC("@ngrx/store Internal Root Guard"),we=new s.nKC("@ngrx/store Internal Initial State"),ze=new s.nKC("@ngrx/store Initial State"),Ke=new s.nKC("@ngrx/store Reducer Factory"),je=new s.nKC("@ngrx/store Internal Reducer Factory Provider"),Ze=new s.nKC("@ngrx/store Initial Reducers"),k=new s.nKC("@ngrx/store Internal Initial Reducers"),F=new s.nKC("@ngrx/store Store Features"),Y=new s.nKC("@ngrx/store Internal Store Reducers"),P=new s.nKC("@ngrx/store Internal Feature Reducers"),ce=new s.nKC("@ngrx/store Internal Feature Configs"),Se=new s.nKC("@ngrx/store Internal Store Features"),Be=new s.nKC("@ngrx/store Internal Feature Reducers Token"),Tt=new s.nKC("@ngrx/store Feature Reducers"),zt=new s.nKC("@ngrx/store User Provided Meta Reducers"),Mt=new s.nKC("@ngrx/store Meta Reducers"),He=new s.nKC("@ngrx/store Internal Resolved Meta Reducers"),lt=new s.nKC("@ngrx/store User Runtime Checks Config"),Et=new s.nKC("@ngrx/store Internal User Runtime Checks Config"),Ce=new s.nKC("@ngrx/store Internal Runtime Checks"),ye=new s.nKC("@ngrx/store Check if Action types are unique");function Ge(it,Bt={}){const Lt=Object.keys(it),Nt={};for(let Tn=0;Tn<Lt.length;Tn++){const nr=Lt[Tn];"function"==typeof it[nr]&&(Nt[nr]=it[nr])}const yn=Object.keys(Nt);return function(nr,Xr){nr=void 0===nr?Bt:nr;let Dr=!1;const ei={};for(let Un=0;Un<yn.length;Un++){const _i=yn[Un],T=nr[_i],me=(0,Nt[_i])(T,Xr);ei[_i]=me,Dr=Dr||me!==T}return Dr?ei:nr}}function Me(...it){return function(Bt){if(0===it.length)return Bt;const Lt=it[it.length-1];return it.slice(0,-1).reduceRight((yn,Tn)=>Tn(yn),Lt(Bt))}}function Ve(it,Bt){return Array.isArray(Bt)&&Bt.length>0&&(it=Me.apply(null,[...Bt,it])),(Lt,Nt)=>{const yn=it(Lt);return(Tn,nr)=>yn(Tn=void 0===Tn?Nt:Tn,nr)}}new s.nKC("@ngrx/store Root Store Provider"),new s.nKC("@ngrx/store Feature State Provider");class at extends d.c{}class ct extends We{}let Ft=(()=>{var it;class Bt extends f.t{get currentReducers(){return this.reducers}constructor(Nt,yn,Tn,nr){super(nr(Tn,yn)),this.dispatcher=Nt,this.initialState=yn,this.reducers=Tn,this.reducerFactory=nr}addFeature(Nt){this.addFeatures([Nt])}addFeatures(Nt){const yn=Nt.reduce((Tn,{reducers:nr,reducerFactory:Xr,metaReducers:Dr,initialState:ei,key:Un})=>{const _i="function"==typeof nr?function rt(it){const Bt=Array.isArray(it)&&it.length>0?Me(...it):Lt=>Lt;return(Lt,Nt)=>(Lt=Bt(Lt),(yn,Tn)=>Lt(yn=void 0===yn?Nt:yn,Tn))}(Dr)(nr,ei):Ve(Xr,Dr)(nr,ei);return Tn[Un]=_i,Tn},{});this.addReducers(yn)}removeFeature(Nt){this.removeFeatures([Nt])}removeFeatures(Nt){this.removeReducers(Nt.map(yn=>yn.key))}addReducer(Nt,yn){this.addReducers({[Nt]:yn})}addReducers(Nt){this.reducers=(0,g.A)((0,g.A)({},this.reducers),Nt),this.updateReducers(Object.keys(Nt))}removeReducer(Nt){this.removeReducers([Nt])}removeReducers(Nt){Nt.forEach(yn=>{this.reducers=function ge(it,Bt){return Object.keys(it).filter(Lt=>Lt!==Bt).reduce((Lt,Nt)=>Object.assign(Lt,{[Nt]:it[Nt]}),{})}(this.reducers,yn)}),this.updateReducers(Nt)}updateReducers(Nt){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:"@ngrx/store/update-reducers",features:Nt})}ngOnDestroy(){this.complete()}}return(it=Bt).\u0275fac=function(Nt){return new(Nt||it)(s.KVO(ct),s.KVO(ze),s.KVO(Ze),s.KVO(Ke))},it.\u0275prov=s.jDH({token:it,factory:it.\u0275fac}),Bt})();const dn=[Ft,{provide:at,useExisting:Ft},{provide:ct,useExisting:We}];let kn=(()=>{var it;class Bt extends S.B{ngOnDestroy(){this.complete()}}return(it=Bt).\u0275fac=(()=>{let Lt;return function(yn){return(Lt||(Lt=s.xGo(it)))(yn||it)}})(),it.\u0275prov=s.jDH({token:it,factory:it.\u0275fac}),Bt})();const ln=[kn];class Jt extends d.c{}let At=(()=>{var it;class Bt extends f.t{constructor(Nt,yn,Tn,nr){super(nr);const Un=Nt.pipe((0,V.Q)(ve)).pipe((0,Q.E)(yn)).pipe((0,ie.S)(Hn,{state:nr}));this.stateSubscription=Un.subscribe(({state:_i,action:p})=>{this.next(_i),Tn.next(p)}),this.state=(0,Ae.ot)(this,{manualCleanup:!0,requireSync:!0})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}}return(it=Bt).INIT=Le,it.\u0275fac=function(Nt){return new(Nt||it)(s.KVO(We),s.KVO(at),s.KVO(kn),s.KVO(ze))},it.\u0275prov=s.jDH({token:it,factory:it.\u0275fac}),Bt})();function Hn(it={state:void 0},[Bt,Lt]){const{state:Nt}=it;return{state:Lt(Nt,Bt),action:Bt}}const Yn=[At,{provide:Jt,useExisting:At}];let or=(()=>{var it;class Bt extends d.c{constructor(Nt,yn,Tn,nr){super(),this.actionsObserver=yn,this.reducerManager=Tn,this.injector=nr,this.source=Nt,this.state=Nt.state}select(Nt,...yn){return tn.call(null,Nt,...yn)(this)}selectSignal(Nt,yn){return(0,s.EWP)(()=>Nt(this.state()),yn)}lift(Nt){const yn=new Bt(this,this.actionsObserver,this.reducerManager);return yn.operator=Nt,yn}dispatch(Nt,yn){if("function"==typeof Nt)return this.processDispatchFn(Nt,yn);this.actionsObserver.next(Nt)}next(Nt){this.actionsObserver.next(Nt)}error(Nt){this.actionsObserver.error(Nt)}complete(){this.actionsObserver.complete()}addReducer(Nt,yn){this.reducerManager.addReducer(Nt,yn)}removeReducer(Nt){this.reducerManager.removeReducer(Nt)}processDispatchFn(Nt,yn){var Tn,nr;!function le(it,Bt){if(null==it)throw new Error("".concat(Bt," must be defined."))}(this.injector,"Store Injector");const Xr=null!==(Tn=null!==(nr=null==yn?void 0:yn.injector)&&void 0!==nr?nr:function on(){try{return(0,s.WQX)(s.zZn)}catch(it){return}}())&&void 0!==Tn?Tn:this.injector;return(0,s.QZP)(()=>{const Dr=Nt();(0,s.O8t)(()=>this.dispatch(Dr))},{injector:Xr})}}return(it=Bt).\u0275fac=function(Nt){return new(Nt||it)(s.KVO(Jt),s.KVO(We),s.KVO(Ft),s.KVO(s.zZn))},it.\u0275prov=s.jDH({token:it,factory:it.\u0275fac}),Bt})();const jt=[or];function tn(it,Bt,...Lt){return function(yn){let Tn;if("string"==typeof it){const nr=[Bt,...Lt].filter(Boolean);Tn=yn.pipe((0,K.E)(it,...nr))}else{if("function"!=typeof it)throw new TypeError("Unexpected type '".concat(typeof it,"' in select operator,")+" expected 'string' or 'function'");Tn=yn.pipe((0,ee.T)(nr=>it(nr,Bt)))}return Tn.pipe((0,he.F)())}}const kt="https://ngrx.io/guide/store/configuration/runtime-checks";function Pt(it){return void 0===it}function It(it){return null===it}function Dt(it){return Array.isArray(it)}function Qn(it){return"object"==typeof it&&null!==it}function vt(it){return"function"==typeof it}let wt=!1;function jn(it,Bt){return it===Bt}function br(it,Bt=jn,Lt=jn){let Tn,Nt=null,yn=null;return{memoized:function ei(){if(void 0!==Tn)return Tn.result;if(!Nt)return yn=it.apply(null,arguments),Nt=arguments,yn;if(!function Fn(it,Bt,Lt){for(let Nt=0;Nt<it.length;Nt++)if(!Lt(it[Nt],Bt[Nt]))return!0;return!1}(arguments,Nt,Bt))return yn;const Un=it.apply(null,arguments);return Nt=arguments,Lt(yn,Un)?yn:(yn=Un,Un)},reset:function nr(){Nt=null,yn=null},setResult:function Xr(Un=void 0){Tn={result:Un}},clearResult:function Dr(){Tn=void 0}}}function fi(it,Bt,Lt,Nt){if(void 0===Lt){const Tn=Bt.map(nr=>nr(it));return Nt.memoized.apply(null,Tn)}const yn=Bt.map(Tn=>Tn(it,Lt));return Nt.memoized.apply(null,[...yn,Lt])}function ui(it){return function Wr(...it){return function ji(it,Bt={stateFn:fi}){return function(...Lt){let Nt=Lt;if(Array.isArray(Nt[0])){const[Un,..._i]=Nt;Nt=[...Un,..._i]}else 1===Nt.length&&function So(it){return!!it&&"object"==typeof it&&Object.values(it).every(Bt=>"function"==typeof Bt)}(Nt[0])&&(Nt=function Mo(it){const Bt=Object.values(it),Lt=Object.keys(it);return[...Bt,(...yn)=>Lt.reduce((Tn,nr,Xr)=>(0,g.A)((0,g.A)({},Tn),{},{[nr]:yn[Xr]}),{})]}(Nt[0]));const yn=Nt.slice(0,Nt.length-1),Tn=Nt[Nt.length-1],nr=yn.filter(Un=>Un.release&&"function"==typeof Un.release),Xr=it(function(...Un){return Tn.apply(null,Un)}),Dr=br(function(Un,_i){return Bt.stateFn.apply(null,[Un,yn,_i,Xr])});return Object.assign(Dr.memoized,{release:function ei(){Dr.reset(),Xr.reset(),nr.forEach(Un=>Un.release())},projector:Xr.memoized,setResult:Dr.setResult,clearResult:Dr.clearResult})}}(br)(...it)}(Bt=>{const Lt=Bt[it];return!function Pn(){return wt}()&&(0,s.naY)()&&!(it in Bt)&&console.warn('@ngrx/store: The feature name "'.concat(it,'" does ')+"not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module "+"using StoreModule.forRoot('".concat(it,"', ...) or ")+"StoreModule.forFeature('".concat(it,"', ...). If the default ")+"state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored."),Lt},Bt=>Bt)}function et(it){return it instanceof s.nKC?(0,s.WQX)(it):it}function xt(it,Bt){return Bt.map((Lt,Nt)=>{if(it[Nt]instanceof s.nKC){const yn=(0,s.WQX)(it[Nt]);return{key:Lt.key,reducerFactory:yn.reducerFactory?yn.reducerFactory:Ge,metaReducers:yn.metaReducers?yn.metaReducers:[],initialState:yn.initialState}}return Lt})}function yt(it){return it.map(Bt=>Bt instanceof s.nKC?(0,s.WQX)(Bt):Bt)}function Xt(it){return"function"==typeof it?it():it}function nn(it,Bt){return it.concat(Bt)}function un(){if((0,s.WQX)(or,{optional:!0,skipSelf:!0}))throw new TypeError("The root Store has been provided more than once. Feature modules should provide feature states instead.");return"guarded"}function sr(it){Object.freeze(it);const Bt=vt(it);return Object.getOwnPropertyNames(it).forEach(Lt=>{if(!Lt.startsWith("\u0275")&&function ht(it,Bt){return Object.prototype.hasOwnProperty.call(it,Bt)}(it,Lt)&&(!Bt||"caller"!==Lt&&"callee"!==Lt&&"arguments"!==Lt)){const Nt=it[Lt];(Qn(Nt)||vt(Nt))&&!Object.isFrozen(Nt)&&sr(Nt)}}),it}function no(it,Bt=[]){return(Pt(it)||It(it))&&0===Bt.length?{path:["root"],value:it}:Object.keys(it).reduce((Nt,yn)=>{if(Nt)return Nt;const Tn=it[yn];return function bt(it){return vt(it)&&it.hasOwnProperty("\u0275cmp")}(Tn)?Nt:!(Pt(Tn)||It(Tn)||function An(it){return"number"==typeof it}(Tn)||function sn(it){return"boolean"==typeof it}(Tn)||function Ct(it){return"string"==typeof it}(Tn)||Dt(Tn))&&(function st(it){if(!function Fr(it){return Qn(it)&&!Dt(it)}(it))return!1;const Bt=Object.getPrototypeOf(it);return Bt===Object.prototype||null===Bt}(Tn)?no(Tn,[...Bt,yn]):{path:[...Bt,yn],value:Tn})},!1)}function Vi(it,Bt){if(!1===it)return;const Lt=it.path.join("."),Nt=new Error("Detected unserializable ".concat(Bt,' at "').concat(Lt,'". ').concat(kt,"#strict").concat(Bt,"serializability"));throw Nt.value=it.value,Nt.unserializablePath=Lt,Nt}function Ai(it){return(0,s.naY)()?(0,g.A)({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},it):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function ki({strictActionSerializability:it,strictStateSerializability:Bt}){return Lt=>it||Bt?function Oi(it,Bt){return function(Lt,Nt){Bt.action(Nt)&&Vi(no(Nt),"action");const yn=it(Lt,Nt);return Bt.state()&&Vi(no(yn),"state"),yn}}(Lt,{action:Nt=>it&&!Nr(Nt),state:()=>Bt}):Lt}function hi({strictActionImmutability:it,strictStateImmutability:Bt}){return Lt=>it||Bt?function qn(it,Bt){return function(Lt,Nt){const yn=Bt.action(Nt)?sr(Nt):Nt,Tn=it(Lt,yn);return Bt.state()?sr(Tn):Tn}}(Lt,{action:Nt=>it&&!Nr(Nt),state:()=>Bt}):Lt}function Nr(it){return it.type.startsWith("@ngrx")}function Gn({strictActionWithinNgZone:it}){return Bt=>it?function vr(it,Bt){return function(Lt,Nt){if(Bt.action(Nt)&&!s.SKi.isInAngularZone())throw new Error("Action '".concat(Nt.type,"' running outside NgZone. ").concat(kt,"#strictactionwithinngzone"));return it(Lt,Nt)}}(Bt,{action:Lt=>it&&!Nr(Lt)}):Bt}function Yr(it){return[{provide:Et,useValue:it},{provide:lt,useFactory:Xe,deps:[Et]},{provide:Ce,deps:[lt],useFactory:Ai},{provide:Mt,multi:!0,deps:[Ce],useFactory:hi},{provide:Mt,multi:!0,deps:[Ce],useFactory:ki},{provide:Mt,multi:!0,deps:[Ce],useFactory:Gn}]}function Pi(){return[{provide:ye,multi:!0,deps:[Ce],useFactory:_t}]}function Xe(it){return it}function _t(it){if(!it.strictActionTypeUniqueness)return;const Bt=Object.entries(ue).filter(([,Lt])=>Lt>1).map(([Lt])=>Lt);if(Bt.length)throw new Error("Action types are registered more than once, ".concat(Bt.map(Lt=>'"'.concat(Lt,'"')).join(", "),". ").concat(kt,"#strictactiontypeuniqueness"))}function Ut(it={},Bt={}){return[{provide:Ye,useFactory:un},{provide:we,useValue:Bt.initialState},{provide:ze,useFactory:Xt,deps:[we]},{provide:k,useValue:it},{provide:Y,useExisting:it instanceof s.nKC?it:k},{provide:Ze,deps:[k,[new s.y_5(Y)]],useFactory:et},{provide:zt,useValue:Bt.metaReducers?Bt.metaReducers:[]},{provide:He,deps:[Mt,zt],useFactory:nn},{provide:je,useValue:Bt.reducerFactory?Bt.reducerFactory:Ge},{provide:Ke,deps:[je,He],useFactory:Ve},dt,dn,ln,Yn,jt,Yr(Bt.runtimeChecks),Pi()]}function zn(it,Bt,Lt={}){return[{provide:ce,multi:!0,useValue:it instanceof Object?{}:Lt},{provide:F,multi:!0,useValue:{key:it instanceof Object?it.name:it,reducerFactory:Lt instanceof s.nKC||!Lt.reducerFactory?Ge:Lt.reducerFactory,metaReducers:Lt instanceof s.nKC||!Lt.metaReducers?[]:Lt.metaReducers,initialState:Lt instanceof s.nKC||!Lt.initialState?void 0:Lt.initialState}},{provide:Se,deps:[ce,F],useFactory:xt},{provide:P,multi:!0,useValue:it instanceof Object?it.reducer:Bt},{provide:Be,multi:!0,useExisting:Bt instanceof s.nKC?Bt:P},{provide:Tt,multi:!0,deps:[P,[new s.y_5(Be)]],useFactory:yt},Pi()]}let Dn=(()=>{var it;class Bt{constructor(Nt,yn,Tn,nr,Xr,Dr){}}return(it=Bt).\u0275fac=function(Nt){return new(Nt||it)(s.KVO(We),s.KVO(at),s.KVO(kn),s.KVO(or),s.KVO(Ye,8),s.KVO(ye,8))},it.\u0275mod=s.$C({type:it}),it.\u0275inj=s.G2t({}),Bt})(),ii=(()=>{var it;class Bt{constructor(Nt,yn,Tn,nr,Xr){this.features=Nt,this.featureReducers=yn,this.reducerManager=Tn;const Dr=Nt.map((ei,Un)=>{const p=yn.shift()[Un];return(0,g.A)((0,g.A)({},ei),{},{reducers:p,initialState:Xt(ei.initialState)})});Tn.addFeatures(Dr)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}}return(it=Bt).\u0275fac=function(Nt){return new(Nt||it)(s.KVO(Se),s.KVO(Tt),s.KVO(Ft),s.KVO(Dn),s.KVO(ye,8))},it.\u0275mod=s.$C({type:it}),it.\u0275inj=s.G2t({}),Bt})(),Jr=(()=>{var it;class Bt{static forRoot(Nt,yn){return{ngModule:Dn,providers:[...Ut(Nt,yn)]}}static forFeature(Nt,yn,Tn={}){return{ngModule:ii,providers:[...zn(Nt,yn,Tn)]}}}return(it=Bt).\u0275fac=function(Nt){return new(Nt||it)},it.\u0275mod=s.$C({type:it}),it.\u0275inj=s.G2t({}),Bt})();function qr(...it){return{reducer:it.pop(),types:it.map(Nt=>Nt.type)}}function Ir(it,...Bt){const Lt=new Map;for(const Nt of Bt)for(const yn of Nt.types){const Tn=Lt.get(yn);Lt.set(yn,Tn?(Xr,Dr)=>Nt.reducer(Tn(Xr,Dr),Dr):Nt.reducer)}return function(Nt=it,yn){const Tn=Lt.get(yn.type);return Tn?Tn(Nt,yn):Nt}}},5250:(se,E,c)=>{"use strict";c.d(E,{BK:()=>Ng,Fw:()=>Vl});var g=c(9379),s=c(467),f=c(1660);let S,R,U,q,z,ve,de,V,Q,ie,K,ee,he,Ae,ue,oe,_,O,x,B,G,pe,le,W,te,ae,_e,Le;var We=function(l,i){return(We=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,v){u.__proto__=v}||function(u,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(u[y]=v[y])})(l,i)};function dt(l,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function u(){this.constructor=l}We(l,i),l.prototype=null===i?Object.create(i):(u.prototype=i.prototype,new u)}var Ye=function(){return Ye=Object.assign||function(l){for(var i,u=1,v=arguments.length;u<v;u++)for(var y in i=arguments[u])Object.prototype.hasOwnProperty.call(i,y)&&(l[y]=i[y]);return l},Ye.apply(this,arguments)};function we(l,i){var u={};for(var v in l)Object.prototype.hasOwnProperty.call(l,v)&&i.indexOf(v)<0&&(u[v]=l[v]);if(null!=l&&"function"==typeof Object.getOwnPropertySymbols){var y=0;for(v=Object.getOwnPropertySymbols(l);y<v.length;y++)i.indexOf(v[y])<0&&Object.prototype.propertyIsEnumerable.call(l,v[y])&&(u[v[y]]=l[v[y]])}return u}function ze(l,i,u,v){return new(u||(u=Promise))(function(I,H){function Ie(nt){try{Te(v.next(nt))}catch(gt){H(gt)}}function $e(nt){try{Te(v.throw(nt))}catch(gt){H(gt)}}function Te(nt){nt.done?I(nt.value):function y(I){return I instanceof u?I:new u(function(H){H(I)})}(nt.value).then(Ie,$e)}Te((v=v.apply(l,i||[])).next())})}function Ke(l,i){var v,y,I,H,u={label:0,sent:function(){if(1&I[0])throw I[1];return I[1]},trys:[],ops:[]};return H={next:Ie(0),throw:Ie(1),return:Ie(2)},"function"==typeof Symbol&&(H[Symbol.iterator]=function(){return this}),H;function Ie(Te){return function(nt){return function $e(Te){if(v)throw new TypeError("Generator is already executing.");for(;H&&(H=0,Te[0]&&(u=0)),u;)try{if(v=1,y&&(I=2&Te[0]?y.return:Te[0]?y.throw||((I=y.return)&&I.call(y),0):y.next)&&!(I=I.call(y,Te[1])).done)return I;switch(y=0,I&&(Te=[2&Te[0],I.value]),Te[0]){case 0:case 1:I=Te;break;case 4:return u.label++,{value:Te[1],done:!1};case 5:u.label++,y=Te[1],Te=[0];continue;case 7:Te=u.ops.pop(),u.trys.pop();continue;default:if(!(I=(I=u.trys).length>0&&I[I.length-1])&&(6===Te[0]||2===Te[0])){u=0;continue}if(3===Te[0]&&(!I||Te[1]>I[0]&&Te[1]<I[3])){u.label=Te[1];break}if(6===Te[0]&&u.label<I[1]){u.label=I[1],I=Te;break}if(I&&u.label<I[2]){u.label=I[2],u.ops.push(Te);break}I[2]&&u.ops.pop(),u.trys.pop();continue}Te=i.call(l,u)}catch(nt){Te=[6,nt],y=0}finally{v=I=0}if(5&Te[0])throw Te[1];return{value:Te[0]?Te[1]:void 0,done:!0}}([Te,nt])}}}function je(l,i,u){if(u||2===arguments.length)for(var I,v=0,y=i.length;v<y;v++)(I||!(v in i))&&(I||(I=Array.prototype.slice.call(i,0,v)),I[v]=i[v]);return l.concat(I||Array.prototype.slice.call(i))}"function"==typeof SuppressedError&&SuppressedError;var Ze="Invariant Violation",k=Object.setPrototypeOf,F=void 0===k?function(l,i){return l.__proto__=i,l}:k,Y=function(l){function i(u){void 0===u&&(u=Ze);var v=l.call(this,"number"==typeof u?Ze+": "+u+" (see https://github.com/apollographql/invariant-packages)":u)||this;return v.framesToPop=1,v.name=Ze,F(v,i.prototype),v}return dt(i,l),i}(Error);function P(l,i){if(!l)throw new Y(i)}var l,ce=["debug","log","warn","error","silent"],Se=ce.indexOf("log");function Be(l){return function(){if(ce.indexOf(l)>=Se)return(console[l]||console.log).apply(console,arguments)}}(l=P||(P={})).debug=Be("debug"),l.log=Be("log"),l.warn=Be("warn"),l.error=Be("error");var Tt="3.8.1";function zt(l){try{return l()}catch(i){}}var Mt=zt(function(){return globalThis})||zt(function(){return window})||zt(function(){return self})||zt(function(){return global})||zt(function(){return zt.constructor("return this")()}),He=new Map;function lt(l){var i=He.get(l)||1;return He.set(l,i+1),"".concat(l,":").concat(i,":").concat(Math.random().toString(36).slice(2))}function Ce(l){return function(i){for(var u=[],v=1;v<arguments.length;v++)u[v-1]=arguments[v];l.apply(void 0,je(["number"==typeof i?Ge(i):i],u,!1))}}var ye=Object.assign(function(l,i){for(var u=[],v=2;v<arguments.length;v++)u[v-2]=arguments[v];l||P(l,Ge(i,u))},{debug:Ce(P.debug),log:Ce(P.log),warn:Ce(P.warn),error:Ce(P.error)});function Ee(l){for(var i=[],u=1;u<arguments.length;u++)i[u-1]=arguments[u];return new Y(Ge(l,i))}var De=Symbol.for("ApolloErrorMessageHandler_"+Tt);function Ge(l,i){if(void 0===i&&(i=[]),l){var u=i.map(function(v){return"string"==typeof v?v:function Et(l,i){void 0===i&&(i=0);var u=lt("stringifyForDisplay");return JSON.stringify(l,function(v,y){return void 0===y?u:y},i).split(JSON.stringify(u)).join("<undefined>")}(v,2).slice(0,1e3)});return Mt[De]&&Mt[De](l,u)||"An error occured! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:Tt,message:l,args:u})))}}function ge(l,i){if(!l)throw new Error(i)}function Ve(l,i){if(!l)throw new Error(null!=i?i:"Unexpected invariant triggered.")}const rt=/\r\n|[\n\r]/g;function at(l,i){let u=0,v=1;for(const y of l.body.matchAll(rt)){if("number"==typeof y.index||Ve(!1),y.index>=i)break;u=y.index+y[0].length,v+=1}return{line:v,column:i+1-u}}function ct(l){return Yt(l.source,at(l.source,l.start))}function Yt(l,i){const u=l.locationOffset.column-1,v="".padStart(u)+l.body,y=i.line-1,H=i.line+(l.locationOffset.line-1),$e=i.column+(1===i.line?u:0),Te="".concat(l.name,":").concat(H,":").concat($e,"\n"),nt=v.split(/\r\n|[\n\r]/g),gt=nt[y];if(gt.length>120){const mt=Math.floor($e/80),Kt=$e%80,an=[];for(let mn=0;mn<gt.length;mn+=80)an.push(gt.slice(mn,mn+80));return Te+Ft([["".concat(H," |"),an[0]],...an.slice(1,mt+1).map(mn=>["|",mn]),["|","^".padStart(Kt)],["|",an[mt+1]]])}return Te+Ft([["".concat(H-1," |"),nt[y-1]],["".concat(H," |"),gt],["|","^".padStart($e)],["".concat(H+1," |"),nt[y+1]]])}function Ft(l){const i=l.filter(([v,y])=>void 0!==y),u=Math.max(...i.map(([v])=>v.length));return i.map(([v,y])=>v.padStart(u)+(y?" "+y:"")).join("\n")}class kn extends Error{constructor(i,...u){var v,y,I;const{nodes:H,source:Ie,positions:$e,path:Te,originalError:nt,extensions:gt}=function dn(l){const i=l[0];return null==i||"kind"in i||"length"in i?{nodes:i,source:l[1],positions:l[2],path:l[3],originalError:l[4],extensions:l[5]}:i}(u);super(i),this.name="GraphQLError",this.path=null!=Te?Te:void 0,this.originalError=null!=nt?nt:void 0,this.nodes=ln(Array.isArray(H)?H:H?[H]:void 0);const mt=ln(null===(v=this.nodes)||void 0===v?void 0:v.map(an=>an.loc).filter(an=>null!=an));this.source=null!=Ie?Ie:null==mt||null===(y=mt[0])||void 0===y?void 0:y.source,this.positions=null!=$e?$e:null==mt?void 0:mt.map(an=>an.start),this.locations=$e&&Ie?$e.map(an=>at(Ie,an)):null==mt?void 0:mt.map(an=>at(an.source,an.start));const Kt=function Me(l){return"object"==typeof l&&null!==l}(null==nt?void 0:nt.extensions)?null==nt?void 0:nt.extensions:void 0;this.extensions=null!==(I=null!=gt?gt:Kt)&&void 0!==I?I:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=nt&&nt.stack?Object.defineProperty(this,"stack",{value:nt.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,kn):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let i=this.message;if(this.nodes)for(const u of this.nodes)u.loc&&(i+="\n\n"+ct(u.loc));else if(this.source&&this.locations)for(const u of this.locations)i+="\n\n"+Yt(this.source,u);return i}toJSON(){const i={message:this.message};return null!=this.locations&&(i.locations=this.locations),null!=this.path&&(i.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(i.extensions=this.extensions),i}}function ln(l){return void 0===l||0===l.length?void 0:l}function Jt(l,i,u){return new kn("Syntax Error: ".concat(u),{source:l,positions:[i]})}class At{constructor(i,u,v){this.start=i.start,this.end=u.end,this.startToken=i,this.endToken=u,this.source=v}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class Hn{constructor(i,u,v,y,I,H){this.kind=i,this.start=u,this.end=v,this.line=y,this.column=I,this.value=H,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const Yn={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},or=new Set(Object.keys(Yn));function jt(l){const i=null==l?void 0:l.kind;return"string"==typeof i&&or.has(i)}var tn,on,kt,st;function Pt(l){return 9===l||32===l}function It(l){return l>=48&&l<=57}function Dt(l){return l>=97&&l<=122||l>=65&&l<=90}function Ct(l){return Dt(l)||95===l}function sn(l){return Dt(l)||It(l)||95===l}function An(l){var i;let u=Number.MAX_SAFE_INTEGER,v=null,y=-1;for(let H=0;H<l.length;++H){var I;const Ie=l[H],$e=Qn(Ie);$e!==Ie.length&&(v=null!==(I=v)&&void 0!==I?I:H,y=H,0!==H&&$e<u&&(u=$e))}return l.map((H,Ie)=>0===Ie?H:H.slice(u)).slice(null!==(i=v)&&void 0!==i?i:0,y+1)}function Qn(l){let i=0;for(;i<l.length&&Pt(l.charCodeAt(i));)++i;return i}!function(l){l.QUERY="query",l.MUTATION="mutation",l.SUBSCRIPTION="subscription"}(tn||(tn={})),function(l){l.QUERY="QUERY",l.MUTATION="MUTATION",l.SUBSCRIPTION="SUBSCRIPTION",l.FIELD="FIELD",l.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",l.FRAGMENT_SPREAD="FRAGMENT_SPREAD",l.INLINE_FRAGMENT="INLINE_FRAGMENT",l.VARIABLE_DEFINITION="VARIABLE_DEFINITION",l.SCHEMA="SCHEMA",l.SCALAR="SCALAR",l.OBJECT="OBJECT",l.FIELD_DEFINITION="FIELD_DEFINITION",l.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",l.INTERFACE="INTERFACE",l.UNION="UNION",l.ENUM="ENUM",l.ENUM_VALUE="ENUM_VALUE",l.INPUT_OBJECT="INPUT_OBJECT",l.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(on||(on={})),function(l){l.NAME="Name",l.DOCUMENT="Document",l.OPERATION_DEFINITION="OperationDefinition",l.VARIABLE_DEFINITION="VariableDefinition",l.SELECTION_SET="SelectionSet",l.FIELD="Field",l.ARGUMENT="Argument",l.FRAGMENT_SPREAD="FragmentSpread",l.INLINE_FRAGMENT="InlineFragment",l.FRAGMENT_DEFINITION="FragmentDefinition",l.VARIABLE="Variable",l.INT="IntValue",l.FLOAT="FloatValue",l.STRING="StringValue",l.BOOLEAN="BooleanValue",l.NULL="NullValue",l.ENUM="EnumValue",l.LIST="ListValue",l.OBJECT="ObjectValue",l.OBJECT_FIELD="ObjectField",l.DIRECTIVE="Directive",l.NAMED_TYPE="NamedType",l.LIST_TYPE="ListType",l.NON_NULL_TYPE="NonNullType",l.SCHEMA_DEFINITION="SchemaDefinition",l.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",l.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",l.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",l.FIELD_DEFINITION="FieldDefinition",l.INPUT_VALUE_DEFINITION="InputValueDefinition",l.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",l.UNION_TYPE_DEFINITION="UnionTypeDefinition",l.ENUM_TYPE_DEFINITION="EnumTypeDefinition",l.ENUM_VALUE_DEFINITION="EnumValueDefinition",l.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",l.DIRECTIVE_DEFINITION="DirectiveDefinition",l.SCHEMA_EXTENSION="SchemaExtension",l.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",l.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",l.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",l.UNION_TYPE_EXTENSION="UnionTypeExtension",l.ENUM_TYPE_EXTENSION="EnumTypeExtension",l.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(kt||(kt={})),function(l){l.SOF="<SOF>",l.EOF="<EOF>",l.BANG="!",l.DOLLAR="$",l.AMP="&",l.PAREN_L="(",l.PAREN_R=")",l.SPREAD="...",l.COLON=":",l.EQUALS="=",l.AT="@",l.BRACKET_L="[",l.BRACKET_R="]",l.BRACE_L="{",l.PIPE="|",l.BRACE_R="}",l.NAME="Name",l.INT="Int",l.FLOAT="Float",l.STRING="String",l.BLOCK_STRING="BlockString",l.COMMENT="Comment"}(st||(st={}));class vt{constructor(i){const u=new Hn(st.SOF,0,0,0,0);this.source=i,this.lastToken=u,this.token=u,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let i=this.token;if(i.kind!==st.EOF)do{if(i.next)i=i.next;else{const u=Ar(this,i.end);i.next=u,u.prev=i,i=u}}while(i.kind===st.COMMENT);return i}}function ht(l){return l>=0&&l<=55295||l>=57344&&l<=1114111}function wt(l,i){return pn(l.charCodeAt(i))&&Pn(l.charCodeAt(i+1))}function pn(l){return l>=55296&&l<=56319}function Pn(l){return l>=56320&&l<=57343}function jn(l,i){const u=l.source.body.codePointAt(i);if(void 0===u)return st.EOF;if(u>=32&&u<=126){const v=String.fromCodePoint(u);return'"'===v?"'\"'":'"'.concat(v,'"')}return"U+"+u.toString(16).toUpperCase().padStart(4,"0")}function Fn(l,i,u,v,y){return new Hn(i,u,v,l.line,1+u-l.lineStart,y)}function Ar(l,i){const u=l.source.body,v=u.length;let y=i;for(;y<v;){const I=u.charCodeAt(y);switch(I){case 65279:case 9:case 32:case 44:++y;continue;case 10:++y,++l.line,l.lineStart=y;continue;case 13:10===u.charCodeAt(y+1)?y+=2:++y,++l.line,l.lineStart=y;continue;case 35:return br(l,y);case 33:return Fn(l,st.BANG,y,y+1);case 36:return Fn(l,st.DOLLAR,y,y+1);case 38:return Fn(l,st.AMP,y,y+1);case 40:return Fn(l,st.PAREN_L,y,y+1);case 41:return Fn(l,st.PAREN_R,y,y+1);case 46:if(46===u.charCodeAt(y+1)&&46===u.charCodeAt(y+2))return Fn(l,st.SPREAD,y,y+3);break;case 58:return Fn(l,st.COLON,y,y+1);case 61:return Fn(l,st.EQUALS,y,y+1);case 64:return Fn(l,st.AT,y,y+1);case 91:return Fn(l,st.BRACKET_L,y,y+1);case 93:return Fn(l,st.BRACKET_R,y,y+1);case 123:return Fn(l,st.BRACE_L,y,y+1);case 124:return Fn(l,st.PIPE,y,y+1);case 125:return Fn(l,st.BRACE_R,y,y+1);case 34:return 34===u.charCodeAt(y+1)&&34===u.charCodeAt(y+2)?rn(l,y):ji(l,y)}if(It(I)||45===I)return Wr(l,y,I);if(Ct(I))return et(l,y);throw Jt(l.source,y,39===I?"Unexpected single quote character ('), did you mean to use a double quote (\")?":ht(I)||wt(u,y)?"Unexpected character: ".concat(jn(l,y),"."):"Invalid character: ".concat(jn(l,y),"."))}return Fn(l,st.EOF,v,v)}function br(l,i){const u=l.source.body,v=u.length;let y=i+1;for(;y<v;){const I=u.charCodeAt(y);if(10===I||13===I)break;if(ht(I))++y;else{if(!wt(u,y))break;y+=2}}return Fn(l,st.COMMENT,i,y,u.slice(i+1,y))}function Wr(l,i,u){const v=l.source.body;let y=i,I=u,H=!1;if(45===I&&(I=v.charCodeAt(++y)),48===I){if(I=v.charCodeAt(++y),It(I))throw Jt(l.source,y,"Invalid number, unexpected digit after 0: ".concat(jn(l,y),"."))}else y=fi(l,y,I),I=v.charCodeAt(y);if(46===I&&(H=!0,I=v.charCodeAt(++y),y=fi(l,y,I),I=v.charCodeAt(y)),(69===I||101===I)&&(H=!0,I=v.charCodeAt(++y),(43===I||45===I)&&(I=v.charCodeAt(++y)),y=fi(l,y,I),I=v.charCodeAt(y)),46===I||Ct(I))throw Jt(l.source,y,"Invalid number, expected digit but got: ".concat(jn(l,y),"."));return Fn(l,H?st.FLOAT:st.INT,i,y,v.slice(i,y))}function fi(l,i,u){if(!It(u))throw Jt(l.source,i,"Invalid number, expected digit but got: ".concat(jn(l,i),"."));const v=l.source.body;let y=i+1;for(;It(v.charCodeAt(y));)++y;return y}function ji(l,i){const u=l.source.body,v=u.length;let y=i+1,I=y,H="";for(;y<v;){const Ie=u.charCodeAt(y);if(34===Ie)return H+=u.slice(I,y),Fn(l,st.STRING,i,y+1,H);if(92!==Ie){if(10===Ie||13===Ie)break;if(ht(Ie))++y;else{if(!wt(u,y))throw Jt(l.source,y,"Invalid character within String: ".concat(jn(l,y),"."));y+=2}}else{H+=u.slice(I,y);const $e=117===u.charCodeAt(y+1)?123===u.charCodeAt(y+2)?ui(l,y):So(l,y):Jn(l,y);H+=$e.value,y+=$e.size,I=y}}throw Jt(l.source,y,"Unterminated string.")}function ui(l,i){const u=l.source.body;let v=0,y=3;for(;y<12;){const I=u.charCodeAt(i+y++);if(125===I){if(y<5||!ht(v))break;return{value:String.fromCodePoint(v),size:y}}if(v=v<<4|ri(I),v<0)break}throw Jt(l.source,i,'Invalid Unicode escape sequence: "'.concat(u.slice(i,i+y),'".'))}function So(l,i){const u=l.source.body,v=Mo(u,i+2);if(ht(v))return{value:String.fromCodePoint(v),size:6};if(pn(v)&&92===u.charCodeAt(i+6)&&117===u.charCodeAt(i+7)){const y=Mo(u,i+8);if(Pn(y))return{value:String.fromCodePoint(v,y),size:12}}throw Jt(l.source,i,'Invalid Unicode escape sequence: "'.concat(u.slice(i,i+6),'".'))}function Mo(l,i){return ri(l.charCodeAt(i))<<12|ri(l.charCodeAt(i+1))<<8|ri(l.charCodeAt(i+2))<<4|ri(l.charCodeAt(i+3))}function ri(l){return l>=48&&l<=57?l-48:l>=65&&l<=70?l-55:l>=97&&l<=102?l-87:-1}function Jn(l,i){const u=l.source.body;switch(u.charCodeAt(i+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw Jt(l.source,i,'Invalid character escape sequence: "'.concat(u.slice(i,i+2),'".'))}function rn(l,i){const u=l.source.body,v=u.length;let y=l.lineStart,I=i+3,H=I,Ie="";const $e=[];for(;I<v;){const Te=u.charCodeAt(I);if(34===Te&&34===u.charCodeAt(I+1)&&34===u.charCodeAt(I+2)){Ie+=u.slice(H,I),$e.push(Ie);const nt=Fn(l,st.BLOCK_STRING,i,I+3,An($e).join("\n"));return l.line+=$e.length-1,l.lineStart=y,nt}if(92!==Te||34!==u.charCodeAt(I+1)||34!==u.charCodeAt(I+2)||34!==u.charCodeAt(I+3))if(10!==Te&&13!==Te)if(ht(Te))++I;else{if(!wt(u,I))throw Jt(l.source,I,"Invalid character within String: ".concat(jn(l,I),"."));I+=2}else Ie+=u.slice(H,I),$e.push(Ie),13===Te&&10===u.charCodeAt(I+1)?I+=2:++I,Ie="",H=I,y=I;else Ie+=u.slice(H,I),H=I+1,I+=4}throw Jt(l.source,I,"Unterminated string.")}function et(l,i){const u=l.source.body,v=u.length;let y=i+1;for(;y<v&&sn(u.charCodeAt(y));)++y;return Fn(l,st.NAME,i,y,u.slice(i,y))}function Xt(l){return nn(l,[])}function nn(l,i){switch(typeof l){case"string":return JSON.stringify(l);case"function":return l.name?"[function ".concat(l.name,"]"):"[function]";case"object":return function un(l,i){if(null===l)return"null";if(i.includes(l))return"[Circular]";const u=[...i,l];if(function qn(l){return"function"==typeof l.toJSON}(l)){const v=l.toJSON();if(v!==l)return"string"==typeof v?v:nn(v,u)}else if(Array.isArray(l))return function Oi(l,i){if(0===l.length)return"[]";if(i.length>2)return"[Array]";const u=Math.min(10,l.length),v=l.length-u,y=[];for(let I=0;I<u;++I)y.push(nn(l[I],i));return 1===v?y.push("... 1 more item"):v>1&&y.push("... ".concat(v," more items")),"["+y.join(", ")+"]"}(l,u);return function sr(l,i){const u=Object.entries(l);return 0===u.length?"{}":i.length>2?"["+function no(l){const i=Object.prototype.toString.call(l).replace(/^\[object /,"").replace(/]$/,"");if("Object"===i&&"function"==typeof l.constructor){const u=l.constructor.name;if("string"==typeof u&&""!==u)return u}return i}(l)+"]":"{ "+u.map(([v,y])=>v+": "+nn(y,i)).join(", ")+" }"}(l,u)}(l,i);default:return String(l)}}const Vi=globalThis.process&&"production"===globalThis.process.env.NODE_ENV?function(l,i){return l instanceof i}:function(l,i){if(l instanceof i)return!0;if("object"==typeof l&&null!==l){var u;const v=i.prototype[Symbol.toStringTag];if(v===(Symbol.toStringTag in l?l[Symbol.toStringTag]:null===(u=l.constructor)||void 0===u?void 0:u.name)){const I=Xt(l);throw new Error("Cannot use ".concat(v,' "').concat(I,'" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.'))}}return!1};class vr{constructor(i,u="GraphQL request",v={line:1,column:1}){"string"==typeof i||ge(!1,"Body must be a string. Received: ".concat(Xt(i),".")),this.body=i,this.name=u,this.locationOffset=v,this.locationOffset.line>0||ge(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||ge(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class hi{constructor(i,u={}){const v=function Ai(l){return Vi(l,vr)}(i)?i:new vr(i);this._lexer=new vt(v),this._options=u,this._tokenCounter=0}parseName(){const i=this.expectToken(st.NAME);return this.node(i,{kind:kt.NAME,value:i.value})}parseDocument(){return this.node(this._lexer.token,{kind:kt.DOCUMENT,definitions:this.many(st.SOF,this.parseDefinition,st.EOF)})}parseDefinition(){if(this.peek(st.BRACE_L))return this.parseOperationDefinition();const i=this.peekDescription(),u=i?this._lexer.lookahead():this._lexer.token;if(u.kind===st.NAME){switch(u.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(i)throw Jt(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(u.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(u)}parseOperationDefinition(){const i=this._lexer.token;if(this.peek(st.BRACE_L))return this.node(i,{kind:kt.OPERATION_DEFINITION,operation:tn.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const u=this.parseOperationType();let v;return this.peek(st.NAME)&&(v=this.parseName()),this.node(i,{kind:kt.OPERATION_DEFINITION,operation:u,name:v,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const i=this.expectToken(st.NAME);switch(i.value){case"query":return tn.QUERY;case"mutation":return tn.MUTATION;case"subscription":return tn.SUBSCRIPTION}throw this.unexpected(i)}parseVariableDefinitions(){return this.optionalMany(st.PAREN_L,this.parseVariableDefinition,st.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:kt.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(st.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(st.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const i=this._lexer.token;return this.expectToken(st.DOLLAR),this.node(i,{kind:kt.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:kt.SELECTION_SET,selections:this.many(st.BRACE_L,this.parseSelection,st.BRACE_R)})}parseSelection(){return this.peek(st.SPREAD)?this.parseFragment():this.parseField()}parseField(){const i=this._lexer.token,u=this.parseName();let v,y;return this.expectOptionalToken(st.COLON)?(v=u,y=this.parseName()):y=u,this.node(i,{kind:kt.FIELD,alias:v,name:y,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(st.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(i){return this.optionalMany(st.PAREN_L,i?this.parseConstArgument:this.parseArgument,st.PAREN_R)}parseArgument(i=!1){const u=this._lexer.token,v=this.parseName();return this.expectToken(st.COLON),this.node(u,{kind:kt.ARGUMENT,name:v,value:this.parseValueLiteral(i)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const i=this._lexer.token;this.expectToken(st.SPREAD);const u=this.expectOptionalKeyword("on");return!u&&this.peek(st.NAME)?this.node(i,{kind:kt.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(i,{kind:kt.INLINE_FRAGMENT,typeCondition:u?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const i=this._lexer.token;return this.expectKeyword("fragment"),this.node(i,!0===this._options.allowLegacyFragmentVariables?{kind:kt.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}:{kind:kt.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(i){const u=this._lexer.token;switch(u.kind){case st.BRACKET_L:return this.parseList(i);case st.BRACE_L:return this.parseObject(i);case st.INT:return this.advanceLexer(),this.node(u,{kind:kt.INT,value:u.value});case st.FLOAT:return this.advanceLexer(),this.node(u,{kind:kt.FLOAT,value:u.value});case st.STRING:case st.BLOCK_STRING:return this.parseStringLiteral();case st.NAME:switch(this.advanceLexer(),u.value){case"true":return this.node(u,{kind:kt.BOOLEAN,value:!0});case"false":return this.node(u,{kind:kt.BOOLEAN,value:!1});case"null":return this.node(u,{kind:kt.NULL});default:return this.node(u,{kind:kt.ENUM,value:u.value})}case st.DOLLAR:if(i){if(this.expectToken(st.DOLLAR),this._lexer.token.kind===st.NAME)throw Jt(this._lexer.source,u.start,'Unexpected variable "$'.concat(this._lexer.token.value,'" in constant value.'));throw this.unexpected(u)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const i=this._lexer.token;return this.advanceLexer(),this.node(i,{kind:kt.STRING,value:i.value,block:i.kind===st.BLOCK_STRING})}parseList(i){return this.node(this._lexer.token,{kind:kt.LIST,values:this.any(st.BRACKET_L,()=>this.parseValueLiteral(i),st.BRACKET_R)})}parseObject(i){return this.node(this._lexer.token,{kind:kt.OBJECT,fields:this.any(st.BRACE_L,()=>this.parseObjectField(i),st.BRACE_R)})}parseObjectField(i){const u=this._lexer.token,v=this.parseName();return this.expectToken(st.COLON),this.node(u,{kind:kt.OBJECT_FIELD,name:v,value:this.parseValueLiteral(i)})}parseDirectives(i){const u=[];for(;this.peek(st.AT);)u.push(this.parseDirective(i));return u}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(i){const u=this._lexer.token;return this.expectToken(st.AT),this.node(u,{kind:kt.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(i)})}parseTypeReference(){const i=this._lexer.token;let u;if(this.expectOptionalToken(st.BRACKET_L)){const v=this.parseTypeReference();this.expectToken(st.BRACKET_R),u=this.node(i,{kind:kt.LIST_TYPE,type:v})}else u=this.parseNamedType();return this.expectOptionalToken(st.BANG)?this.node(i,{kind:kt.NON_NULL_TYPE,type:u}):u}parseNamedType(){return this.node(this._lexer.token,{kind:kt.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(st.STRING)||this.peek(st.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const i=this._lexer.token,u=this.parseDescription();this.expectKeyword("schema");const v=this.parseConstDirectives(),y=this.many(st.BRACE_L,this.parseOperationTypeDefinition,st.BRACE_R);return this.node(i,{kind:kt.SCHEMA_DEFINITION,description:u,directives:v,operationTypes:y})}parseOperationTypeDefinition(){const i=this._lexer.token,u=this.parseOperationType();this.expectToken(st.COLON);const v=this.parseNamedType();return this.node(i,{kind:kt.OPERATION_TYPE_DEFINITION,operation:u,type:v})}parseScalarTypeDefinition(){const i=this._lexer.token,u=this.parseDescription();this.expectKeyword("scalar");const v=this.parseName(),y=this.parseConstDirectives();return this.node(i,{kind:kt.SCALAR_TYPE_DEFINITION,description:u,name:v,directives:y})}parseObjectTypeDefinition(){const i=this._lexer.token,u=this.parseDescription();this.expectKeyword("type");const v=this.parseName(),y=this.parseImplementsInterfaces(),I=this.parseConstDirectives(),H=this.parseFieldsDefinition();return this.node(i,{kind:kt.OBJECT_TYPE_DEFINITION,description:u,name:v,interfaces:y,directives:I,fields:H})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(st.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(st.BRACE_L,this.parseFieldDefinition,st.BRACE_R)}parseFieldDefinition(){const i=this._lexer.token,u=this.parseDescription(),v=this.parseName(),y=this.parseArgumentDefs();this.expectToken(st.COLON);const I=this.parseTypeReference(),H=this.parseConstDirectives();return this.node(i,{kind:kt.FIELD_DEFINITION,description:u,name:v,arguments:y,type:I,directives:H})}parseArgumentDefs(){return this.optionalMany(st.PAREN_L,this.parseInputValueDef,st.PAREN_R)}parseInputValueDef(){const i=this._lexer.token,u=this.parseDescription(),v=this.parseName();this.expectToken(st.COLON);const y=this.parseTypeReference();let I;this.expectOptionalToken(st.EQUALS)&&(I=this.parseConstValueLiteral());const H=this.parseConstDirectives();return this.node(i,{kind:kt.INPUT_VALUE_DEFINITION,description:u,name:v,type:y,defaultValue:I,directives:H})}parseInterfaceTypeDefinition(){const i=this._lexer.token,u=this.parseDescription();this.expectKeyword("interface");const v=this.parseName(),y=this.parseImplementsInterfaces(),I=this.parseConstDirectives(),H=this.parseFieldsDefinition();return this.node(i,{kind:kt.INTERFACE_TYPE_DEFINITION,description:u,name:v,interfaces:y,directives:I,fields:H})}parseUnionTypeDefinition(){const i=this._lexer.token,u=this.parseDescription();this.expectKeyword("union");const v=this.parseName(),y=this.parseConstDirectives(),I=this.parseUnionMemberTypes();return this.node(i,{kind:kt.UNION_TYPE_DEFINITION,description:u,name:v,directives:y,types:I})}parseUnionMemberTypes(){return this.expectOptionalToken(st.EQUALS)?this.delimitedMany(st.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const i=this._lexer.token,u=this.parseDescription();this.expectKeyword("enum");const v=this.parseName(),y=this.parseConstDirectives(),I=this.parseEnumValuesDefinition();return this.node(i,{kind:kt.ENUM_TYPE_DEFINITION,description:u,name:v,directives:y,values:I})}parseEnumValuesDefinition(){return this.optionalMany(st.BRACE_L,this.parseEnumValueDefinition,st.BRACE_R)}parseEnumValueDefinition(){const i=this._lexer.token,u=this.parseDescription(),v=this.parseEnumValueName(),y=this.parseConstDirectives();return this.node(i,{kind:kt.ENUM_VALUE_DEFINITION,description:u,name:v,directives:y})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw Jt(this._lexer.source,this._lexer.token.start,"".concat(Nr(this._lexer.token)," is reserved and cannot be used for an enum value."));return this.parseName()}parseInputObjectTypeDefinition(){const i=this._lexer.token,u=this.parseDescription();this.expectKeyword("input");const v=this.parseName(),y=this.parseConstDirectives(),I=this.parseInputFieldsDefinition();return this.node(i,{kind:kt.INPUT_OBJECT_TYPE_DEFINITION,description:u,name:v,directives:y,fields:I})}parseInputFieldsDefinition(){return this.optionalMany(st.BRACE_L,this.parseInputValueDef,st.BRACE_R)}parseTypeSystemExtension(){const i=this._lexer.lookahead();if(i.kind===st.NAME)switch(i.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(i)}parseSchemaExtension(){const i=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const u=this.parseConstDirectives(),v=this.optionalMany(st.BRACE_L,this.parseOperationTypeDefinition,st.BRACE_R);if(0===u.length&&0===v.length)throw this.unexpected();return this.node(i,{kind:kt.SCHEMA_EXTENSION,directives:u,operationTypes:v})}parseScalarTypeExtension(){const i=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const u=this.parseName(),v=this.parseConstDirectives();if(0===v.length)throw this.unexpected();return this.node(i,{kind:kt.SCALAR_TYPE_EXTENSION,name:u,directives:v})}parseObjectTypeExtension(){const i=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const u=this.parseName(),v=this.parseImplementsInterfaces(),y=this.parseConstDirectives(),I=this.parseFieldsDefinition();if(0===v.length&&0===y.length&&0===I.length)throw this.unexpected();return this.node(i,{kind:kt.OBJECT_TYPE_EXTENSION,name:u,interfaces:v,directives:y,fields:I})}parseInterfaceTypeExtension(){const i=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const u=this.parseName(),v=this.parseImplementsInterfaces(),y=this.parseConstDirectives(),I=this.parseFieldsDefinition();if(0===v.length&&0===y.length&&0===I.length)throw this.unexpected();return this.node(i,{kind:kt.INTERFACE_TYPE_EXTENSION,name:u,interfaces:v,directives:y,fields:I})}parseUnionTypeExtension(){const i=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const u=this.parseName(),v=this.parseConstDirectives(),y=this.parseUnionMemberTypes();if(0===v.length&&0===y.length)throw this.unexpected();return this.node(i,{kind:kt.UNION_TYPE_EXTENSION,name:u,directives:v,types:y})}parseEnumTypeExtension(){const i=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const u=this.parseName(),v=this.parseConstDirectives(),y=this.parseEnumValuesDefinition();if(0===v.length&&0===y.length)throw this.unexpected();return this.node(i,{kind:kt.ENUM_TYPE_EXTENSION,name:u,directives:v,values:y})}parseInputObjectTypeExtension(){const i=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const u=this.parseName(),v=this.parseConstDirectives(),y=this.parseInputFieldsDefinition();if(0===v.length&&0===y.length)throw this.unexpected();return this.node(i,{kind:kt.INPUT_OBJECT_TYPE_EXTENSION,name:u,directives:v,fields:y})}parseDirectiveDefinition(){const i=this._lexer.token,u=this.parseDescription();this.expectKeyword("directive"),this.expectToken(st.AT);const v=this.parseName(),y=this.parseArgumentDefs(),I=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const H=this.parseDirectiveLocations();return this.node(i,{kind:kt.DIRECTIVE_DEFINITION,description:u,name:v,arguments:y,repeatable:I,locations:H})}parseDirectiveLocations(){return this.delimitedMany(st.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const i=this._lexer.token,u=this.parseName();if(Object.prototype.hasOwnProperty.call(on,u.value))return u;throw this.unexpected(i)}node(i,u){return!0!==this._options.noLocation&&(u.loc=new At(i,this._lexer.lastToken,this._lexer.source)),u}peek(i){return this._lexer.token.kind===i}expectToken(i){const u=this._lexer.token;if(u.kind===i)return this.advanceLexer(),u;throw Jt(this._lexer.source,u.start,"Expected ".concat(Gn(i),", found ").concat(Nr(u),"."))}expectOptionalToken(i){return this._lexer.token.kind===i&&(this.advanceLexer(),!0)}expectKeyword(i){const u=this._lexer.token;if(u.kind!==st.NAME||u.value!==i)throw Jt(this._lexer.source,u.start,'Expected "'.concat(i,'", found ').concat(Nr(u),"."));this.advanceLexer()}expectOptionalKeyword(i){const u=this._lexer.token;return u.kind===st.NAME&&u.value===i&&(this.advanceLexer(),!0)}unexpected(i){const u=null!=i?i:this._lexer.token;return Jt(this._lexer.source,u.start,"Unexpected ".concat(Nr(u),"."))}any(i,u,v){this.expectToken(i);const y=[];for(;!this.expectOptionalToken(v);)y.push(u.call(this));return y}optionalMany(i,u,v){if(this.expectOptionalToken(i)){const y=[];do{y.push(u.call(this))}while(!this.expectOptionalToken(v));return y}return[]}many(i,u,v){this.expectToken(i);const y=[];do{y.push(u.call(this))}while(!this.expectOptionalToken(v));return y}delimitedMany(i,u){this.expectOptionalToken(i);const v=[];do{v.push(u.call(this))}while(this.expectOptionalToken(i));return v}advanceLexer(){const{maxTokens:i}=this._options,u=this._lexer.advance();if(void 0!==i&&u.kind!==st.EOF&&(++this._tokenCounter,this._tokenCounter>i))throw Jt(this._lexer.source,u.start,"Document contains more that ".concat(i," tokens. Parsing aborted."))}}function Nr(l){const i=l.value;return Gn(l.kind)+(null!=i?' "'.concat(i,'"'):"")}function Gn(l){return function bt(l){return l===st.BANG||l===st.DOLLAR||l===st.AMP||l===st.PAREN_L||l===st.PAREN_R||l===st.SPREAD||l===st.COLON||l===st.EQUALS||l===st.AT||l===st.BRACKET_L||l===st.BRACKET_R||l===st.BRACE_L||l===st.PIPE||l===st.BRACE_R}(l)?'"'.concat(l,'"'):l}const Pi=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function Xe(l){return _t[l.charCodeAt(0)]}const _t=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],Zt=Object.freeze({});function Ut(l,i,u=Yn){const v=new Map;for(const en of Object.values(kt))v.set(en,bn(i,en));let y,nt,gt,I=Array.isArray(l),H=[l],Ie=-1,$e=[],Te=l;const mt=[],Kt=[];do{Ie++;const en=Ie===H.length,Mn=en&&0!==$e.length;if(en){if(nt=0===Kt.length?void 0:mt[mt.length-1],Te=gt,gt=Kt.pop(),Mn)if(I){Te=Te.slice();let Zn=0;for(const[er,Xn]of $e){const kr=er-Zn;null===Xn?(Te.splice(kr,1),Zn++):Te[kr]=Xn}}else{Te=Object.defineProperties({},Object.getOwnPropertyDescriptors(Te));for(const[Zn,er]of $e)Te[Zn]=er}Ie=y.index,H=y.keys,$e=y.edits,I=y.inArray,y=y.prev}else if(gt){if(nt=I?Ie:H[Ie],Te=gt[nt],null==Te)continue;mt.push(nt)}let Cn;if(!Array.isArray(Te)){var an,mn;jt(Te)||ge(!1,"Invalid AST Node: ".concat(Xt(Te),"."));const Zn=en?null===(an=v.get(Te.kind))||void 0===an?void 0:an.leave:null===(mn=v.get(Te.kind))||void 0===mn?void 0:mn.enter;if(Cn=null==Zn?void 0:Zn.call(i,Te,nt,gt,mt,Kt),Cn===Zt)break;if(!1===Cn){if(!en){mt.pop();continue}}else if(void 0!==Cn&&($e.push([nt,Cn]),!en)){if(!jt(Cn)){mt.pop();continue}Te=Cn}}var In;void 0===Cn&&Mn&&$e.push([nt,Te]),en?mt.pop():(y={inArray:I,index:Ie,keys:H,edits:$e,prev:y},I=Array.isArray(Te),H=I?Te:null!==(In=u[Te.kind])&&void 0!==In?In:[],Ie=-1,$e=[],gt&&Kt.push(gt),gt=Te)}while(void 0!==y);return 0!==$e.length?$e[$e.length-1][1]:l}function bn(l,i){const u=l[i];return"object"==typeof u?u:"function"==typeof u?{enter:u,leave:void 0}:{enter:l.enter,leave:l.leave}}const Bn={Name:{leave:l=>l.value},Variable:{leave:l=>"$"+l.name},Document:{leave:l=>Sn(l.definitions,"\n\n")},OperationDefinition:{leave(l){const i=Dn("(",Sn(l.variableDefinitions,", "),")"),u=Sn([l.operation,Sn([l.name,i]),Sn(l.directives," ")]," ");return("query"===u?"":u+" ")+l.selectionSet}},VariableDefinition:{leave:({variable:l,type:i,defaultValue:u,directives:v})=>l+": "+i+Dn(" = ",u)+Dn(" ",Sn(v," "))},SelectionSet:{leave:({selections:l})=>zn(l)},Field:{leave({alias:l,name:i,arguments:u,directives:v,selectionSet:y}){const I=Dn("",l,": ")+i;let H=I+Dn("(",Sn(u,", "),")");return H.length>80&&(H=I+Dn("(\n",ii(Sn(u,"\n")),"\n)")),Sn([H,Sn(v," "),y]," ")}},Argument:{leave:({name:l,value:i})=>l+": "+i},FragmentSpread:{leave:({name:l,directives:i})=>"..."+l+Dn(" ",Sn(i," "))},InlineFragment:{leave:({typeCondition:l,directives:i,selectionSet:u})=>Sn(["...",Dn("on ",l),Sn(i," "),u]," ")},FragmentDefinition:{leave:({name:l,typeCondition:i,variableDefinitions:u,directives:v,selectionSet:y})=>"fragment ".concat(l).concat(Dn("(",Sn(u,", "),")")," on ").concat(i," ").concat(Dn("",Sn(v," ")," "))+y},IntValue:{leave:({value:l})=>l},FloatValue:{leave:({value:l})=>l},StringValue:{leave:({value:l,block:i})=>i?function Fr(l,i){const u=l.replace(/"""/g,'\\"""'),v=u.split(/\r\n|[\n\r]/g),y=1===v.length,I=v.length>1&&v.slice(1).every(Kt=>0===Kt.length||Pt(Kt.charCodeAt(0))),H=u.endsWith('\\"""'),Ie=l.endsWith('"')&&!H,$e=l.endsWith("\\"),Te=Ie||$e,nt=!(null!=i&&i.minimize)&&(!y||l.length>70||Te||I||H);let gt="";const mt=y&&Pt(l.charCodeAt(0));return(nt&&!mt||I)&&(gt+="\n"),gt+=u,(nt||Te)&&(gt+="\n"),'"""'+gt+'"""'}(l):function Yr(l){return'"'.concat(l.replace(Pi,Xe),'"')}(l)},BooleanValue:{leave:({value:l})=>l?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:l})=>l},ListValue:{leave:({values:l})=>"["+Sn(l,", ")+"]"},ObjectValue:{leave:({fields:l})=>"{"+Sn(l,", ")+"}"},ObjectField:{leave:({name:l,value:i})=>l+": "+i},Directive:{leave:({name:l,arguments:i})=>"@"+l+Dn("(",Sn(i,", "),")")},NamedType:{leave:({name:l})=>l},ListType:{leave:({type:l})=>"["+l+"]"},NonNullType:{leave:({type:l})=>l+"!"},SchemaDefinition:{leave:({description:l,directives:i,operationTypes:u})=>Dn("",l,"\n")+Sn(["schema",Sn(i," "),zn(u)]," ")},OperationTypeDefinition:{leave:({operation:l,type:i})=>l+": "+i},ScalarTypeDefinition:{leave:({description:l,name:i,directives:u})=>Dn("",l,"\n")+Sn(["scalar",i,Sn(u," ")]," ")},ObjectTypeDefinition:{leave:({description:l,name:i,interfaces:u,directives:v,fields:y})=>Dn("",l,"\n")+Sn(["type",i,Dn("implements ",Sn(u," & ")),Sn(v," "),zn(y)]," ")},FieldDefinition:{leave:({description:l,name:i,arguments:u,type:v,directives:y})=>Dn("",l,"\n")+i+(Jr(u)?Dn("(\n",ii(Sn(u,"\n")),"\n)"):Dn("(",Sn(u,", "),")"))+": "+v+Dn(" ",Sn(y," "))},InputValueDefinition:{leave:({description:l,name:i,type:u,defaultValue:v,directives:y})=>Dn("",l,"\n")+Sn([i+": "+u,Dn("= ",v),Sn(y," ")]," ")},InterfaceTypeDefinition:{leave:({description:l,name:i,interfaces:u,directives:v,fields:y})=>Dn("",l,"\n")+Sn(["interface",i,Dn("implements ",Sn(u," & ")),Sn(v," "),zn(y)]," ")},UnionTypeDefinition:{leave:({description:l,name:i,directives:u,types:v})=>Dn("",l,"\n")+Sn(["union",i,Sn(u," "),Dn("= ",Sn(v," | "))]," ")},EnumTypeDefinition:{leave:({description:l,name:i,directives:u,values:v})=>Dn("",l,"\n")+Sn(["enum",i,Sn(u," "),zn(v)]," ")},EnumValueDefinition:{leave:({description:l,name:i,directives:u})=>Dn("",l,"\n")+Sn([i,Sn(u," ")]," ")},InputObjectTypeDefinition:{leave:({description:l,name:i,directives:u,fields:v})=>Dn("",l,"\n")+Sn(["input",i,Sn(u," "),zn(v)]," ")},DirectiveDefinition:{leave:({description:l,name:i,arguments:u,repeatable:v,locations:y})=>Dn("",l,"\n")+"directive @"+i+(Jr(u)?Dn("(\n",ii(Sn(u,"\n")),"\n)"):Dn("(",Sn(u,", "),")"))+(v?" repeatable":"")+" on "+Sn(y," | ")},SchemaExtension:{leave:({directives:l,operationTypes:i})=>Sn(["extend schema",Sn(l," "),zn(i)]," ")},ScalarTypeExtension:{leave:({name:l,directives:i})=>Sn(["extend scalar",l,Sn(i," ")]," ")},ObjectTypeExtension:{leave:({name:l,interfaces:i,directives:u,fields:v})=>Sn(["extend type",l,Dn("implements ",Sn(i," & ")),Sn(u," "),zn(v)]," ")},InterfaceTypeExtension:{leave:({name:l,interfaces:i,directives:u,fields:v})=>Sn(["extend interface",l,Dn("implements ",Sn(i," & ")),Sn(u," "),zn(v)]," ")},UnionTypeExtension:{leave:({name:l,directives:i,types:u})=>Sn(["extend union",l,Sn(i," "),Dn("= ",Sn(u," | "))]," ")},EnumTypeExtension:{leave:({name:l,directives:i,values:u})=>Sn(["extend enum",l,Sn(i," "),zn(u)]," ")},InputObjectTypeExtension:{leave:({name:l,directives:i,fields:u})=>Sn(["extend input",l,Sn(i," "),zn(u)]," ")}};function Sn(l,i=""){var u;return null!==(u=null==l?void 0:l.filter(v=>v).join(i))&&void 0!==u?u:""}function zn(l){return Dn("{\n",ii(Sn(l,"\n")),"\n}")}function Dn(l,i,u=""){return null!=i&&""!==i?l+i+u:""}function ii(l){return Dn(" ",l.replace(/\n/g,"\n "))}function Jr(l){var i;return null!==(i=null==l?void 0:l.some(u=>u.includes("\n")))&&void 0!==i&&i}function qr(l){return l.kind===kt.FIELD||l.kind===kt.FRAGMENT_SPREAD||l.kind===kt.INLINE_FRAGMENT}function Ir(l,i){var u=l.directives;return!u||!u.length||function Nt(l){var i=[];return l&&l.length&&l.forEach(function(u){if(function Lt(l){var i=l.name.value;return"skip"===i||"include"===i}(u)){var v=u.arguments,y=u.name.value;ye(v&&1===v.length,65,y);var I=v[0];ye(I.name&&"if"===I.name.value,66,y);var H=I.value;ye(H&&("Variable"===H.kind||"BooleanValue"===H.kind),67,y),i.push({directive:u,ifArgument:I})}}),i}(u).every(function(v){var y=v.directive,I=v.ifArgument,H=!1;return"Variable"===I.value.kind?ye(void 0!==(H=i&&i[I.value.name.value]),64,y.name.value):H=I.value.value,"skip"===y.name.value?!H:H})}function it(l,i,u){var v=new Set(l),y=v.size;return Ut(i,{Directive:function(I){if(v.delete(I.name.value)&&(!u||!v.size))return Zt}}),u?!v.size:v.size<y}function Bt(l){return l&&it(["client","export"],l,!0)}const yn=()=>Object.create(null),{forEach:Tn,slice:nr}=Array.prototype,{hasOwnProperty:Xr}=Object.prototype;class Dr{constructor(i=!0,u=yn){this.weakness=i,this.makeData=u}lookup(...i){return this.lookupArray(i)}lookupArray(i){let u=this;return Tn.call(i,v=>u=u.getChildTrie(v)),Xr.call(u,"data")?u.data:u.data=this.makeData(nr.call(i))}peek(...i){return this.peekArray(i)}peekArray(i){let u=this;for(let v=0,y=i.length;u&&v<y;++v){const I=this.weakness&&ei(i[v])?u.weak:u.strong;u=I&&I.get(i[v])}return u&&u.data}getChildTrie(i){const u=this.weakness&&ei(i)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map);let v=u.get(i);return v||u.set(i,v=new Dr(this.weakness,this.makeData)),v}}function ei(l){switch(typeof l){case"object":if(null===l)break;case"function":return!0}return!1}var Un="function"==typeof WeakMap&&"ReactNative"!==zt(function(){return navigator.product}),_i="function"==typeof WeakSet,p="function"==typeof Symbol&&"function"==typeof Symbol.for,T=p&&Symbol.asyncIterator;function me(l){return null!==l&&"object"==typeof l}function Re(l,i){var u=i,v=[];return l.definitions.forEach(function(I){if("OperationDefinition"===I.kind)throw Ee(68,I.operation,I.name?" named '".concat(I.name.value,"'"):"");"FragmentDefinition"===I.kind&&v.push(I)}),typeof u>"u"&&(ye(1===v.length,69,v.length),u=v[0].name.value),Ye(Ye({},l),{definitions:je([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:u}}]}}],l.definitions,!0)})}function ot(l){void 0===l&&(l=[]);var i={};return l.forEach(function(u){i[u.name.value]=u}),i}function Vt(l,i){switch(l.kind){case"InlineFragment":return l;case"FragmentSpread":var u=l.name.value;if("function"==typeof i)return i(u);var v=i&&i[u];return ye(v,70,u),v||null;default:return null}}function $t(l){return{__ref:String(l)}}function vn(l){return!(!l||"object"!=typeof l||"string"!=typeof l.__ref)}function Kn(l,i,u,v){if(function wr(l){return"IntValue"===l.kind}(u)||function zr(l){return"FloatValue"===l.kind}(u))l[i.value]=Number(u.value);else if(function tr(l){return"BooleanValue"===l.kind}(u)||function gr(l){return"StringValue"===l.kind}(u))l[i.value]=u.value;else if(function $i(l){return"ObjectValue"===l.kind}(u)){var y={};u.fields.map(function(H){return Kn(y,H.name,H.value,v)}),l[i.value]=y}else if(function vo(l){return"Variable"===l.kind}(u))l[i.value]=(v||{})[u.name.value];else if(function zo(l){return"ListValue"===l.kind}(u))l[i.value]=u.values.map(function(H){var Ie={};return Kn(Ie,i,H,v),Ie[i.value]});else if(function ci(l){return"EnumValue"===l.kind}(u))l[i.value]=u.value;else{if(!function qi(l){return"NullValue"===l.kind}(u))throw Ee(79,i.value,u.kind);l[i.value]=null}}zt(function(){return window.document.createElement}),zt(function(){return navigator.userAgent.indexOf("jsdom")>=0});var ns=["connection","include","skip","client","rest","export","nonreactive"],Ki=Object.assign(function(l,i,u){if(i&&u&&u.connection&&u.connection.key){if(u.connection.filter&&u.connection.filter.length>0){var v=u.connection.filter?u.connection.filter:[];v.sort();var y={};return v.forEach(function(Ie){y[Ie]=i[Ie]}),"".concat(u.connection.key,"(").concat(Ci(y),")")}return u.connection.key}var I=l;if(i){var H=Ci(i);I+="(".concat(H,")")}return u&&Object.keys(u).forEach(function(Ie){-1===ns.indexOf(Ie)&&(u[Ie]&&Object.keys(u[Ie]).length?I+="@".concat(Ie,"(").concat(Ci(u[Ie]),")"):I+="@".concat(Ie))}),I},{setStringify:function(l){var i=Ci;return Ci=l,i}}),Ci=function(l){return JSON.stringify(l,wo)};function wo(l,i){return me(i)&&!Array.isArray(i)&&(i=Object.keys(i).sort().reduce(function(u,v){return u[v]=i[v],u},{})),i}function as(l,i){if(l.arguments&&l.arguments.length){var u={};return l.arguments.forEach(function(v){return Kn(u,v.name,v.value,i)}),u}return null}function Fo(l){return l.alias?l.alias.value:l.name.value}function Io(l,i,u){for(var v,y=0,I=i.selections;y<I.length;y++)if(lo(H=I[y])){if("__typename"===H.name.value)return l[Fo(H)]}else v?v.push(H):v=[H];if("string"==typeof l.__typename)return l.__typename;if(v)for(var Ie=0,$e=v;Ie<$e.length;Ie++){var H,Te=Io(l,Vt(H=$e[Ie],u).selectionSet,u);if("string"==typeof Te)return Te}}function lo(l){return"Field"===l.kind}function To(l){ye(l&&"Document"===l.kind,71);var i=l.definitions.filter(function(u){return"FragmentDefinition"!==u.kind}).map(function(u){if("OperationDefinition"!==u.kind)throw Ee(72,u.kind);return u});return ye(i.length<=1,73,i.length),l}function _o(l){return To(l),l.definitions.filter(function(i){return"OperationDefinition"===i.kind})[0]}function ls(l){return l.definitions.filter(function(i){return"OperationDefinition"===i.kind&&!!i.name}).map(function(i){return i.name.value})[0]||null}function Ri(l){return l.definitions.filter(function(i){return"FragmentDefinition"===i.kind})}function Yo(l){To(l);for(var i,u=0,v=l.definitions;u<v.length;u++){var y=v[u];if("OperationDefinition"===y.kind){var I=y.operation;if("query"===I||"mutation"===I||"subscription"===I)return y}"FragmentDefinition"===y.kind&&!i&&(i=y)}if(i)return i;throw Ee(78)}function ms(l){var i=Object.create(null),u=l&&l.variableDefinitions;return u&&u.length&&u.forEach(function(v){v.defaultValue&&Kn(i,v.variable.name,v.defaultValue)}),i}function aa(l){return l}var bs=function(){function l(i,u){void 0===u&&(u=Object.create(null)),this.resultCache=_i?new WeakSet:new Set,this.transform=i,u.getCacheKey&&(this.getCacheKey=u.getCacheKey),!1!==u.cache&&(this.stableCacheKeys=new Dr(Un,function(v){return{key:v}}))}return l.prototype.getCacheKey=function(i){return[i]},l.identity=function(){return new l(aa,{cache:!1})},l.split=function(i,u,v){return void 0===v&&(v=l.identity()),new l(function(y){return(i(y)?u:v).transformDocument(y)},{cache:!1})},l.prototype.transformDocument=function(i){if(this.resultCache.has(i))return i;var u=this.getStableCacheEntry(i);if(u&&u.value)return u.value;To(i);var v=this.transform(i);return this.resultCache.add(v),u&&(u.value=v),v},l.prototype.concat=function(i){var u=this;return new l(function(v){return i.transformDocument(u.transformDocument(v))},{cache:!1})},l.prototype.getStableCacheEntry=function(i){if(this.stableCacheKeys){var u=this.getCacheKey(i);if(u)return ye(Array.isArray(u),63),this.stableCacheKeys.lookupArray(u)}},l}(),Do=Un?new WeakMap:void 0,Ys=function(l){var i;return(i=null==Do?void 0:Do.get(l))||(i=function Rn(l){return Ut(l,Bn)}(l),null!=Do&&Do.set(l,i)),i},Gr=Array.isArray;function Fi(l){return Array.isArray(l)&&l.length>0}var uo={kind:kt.FIELD,name:{kind:kt.NAME,value:"__typename"}};function Fs(l,i){return!l||l.selectionSet.selections.every(function(u){return u.kind===kt.FRAGMENT_SPREAD&&Fs(i[u.name.value],i)})}function Ss(l){return Fs(_o(l)||function Cs(l){ye("Document"===l.kind,75),ye(l.definitions.length<=1,76);var i=l.definitions[0];return ye("FragmentDefinition"===i.kind,77),i}(l),ot(Ri(l)))?null:l}function Vr(l){var i=new Map;return function(u){void 0===u&&(u=l);var v=i.get(u);return v||i.set(u,v={variables:new Set,fragmentSpreads:new Set}),v}}function yo(l,i){To(i);for(var u=Vr(""),v=Vr(""),y=function(en){for(var Mn=0,Cn=void 0;Mn<en.length&&(Cn=en[Mn]);++Mn)if(!Gr(Cn)){if(Cn.kind===kt.OPERATION_DEFINITION)return u(Cn.name&&Cn.name.value);if(Cn.kind===kt.FRAGMENT_DEFINITION)return v(Cn.name.value)}return null},I=0,H=i.definitions.length-1;H>=0;--H)i.definitions[H].kind===kt.OPERATION_DEFINITION&&++I;var Ie=function ro(l){var i=new Map,u=new Map;return l.forEach(function(v){v&&(v.name?i.set(v.name,v):v.test&&u.set(v.test,v))}),function(v){var y=i.get(v.name.value);return!y&&u.size&&u.forEach(function(I,H){H(v)&&(y=I)}),y}}(l),$e=function(en){return Fi(en)&&en.map(Ie).some(function(Mn){return Mn&&Mn.remove})},Te=new Map,nt=!1,gt={enter:function(en){if($e(en.directives))return nt=!0,null}},mt=Ut(i,{Field:gt,InlineFragment:gt,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(en,Mn,Cn,Zn,er){var Xn=y(er);Xn&&Xn.variables.add(en.name.value)}},FragmentSpread:{enter:function(en,Mn,Cn,Zn,er){if($e(en.directives))return nt=!0,null;var Xn=y(er);Xn&&Xn.fragmentSpreads.add(en.name.value)}},FragmentDefinition:{enter:function(en,Mn,Cn,Zn){Te.set(JSON.stringify(Zn),en)},leave:function(en,Mn,Cn,Zn){return en===Te.get(JSON.stringify(Zn))?en:I>0&&en.selectionSet.selections.every(function(Xn){return Xn.kind===kt.FIELD&&"__typename"===Xn.name.value})?(v(en.name.value).removed=!0,nt=!0,null):void 0}},Directive:{leave:function(en){if(Ie(en))return nt=!0,null}}});if(!nt)return i;var Kt=function(en){return en.transitiveVars||(en.transitiveVars=new Set(en.variables),en.removed||en.fragmentSpreads.forEach(function(Mn){Kt(v(Mn)).transitiveVars.forEach(function(Cn){en.transitiveVars.add(Cn)})})),en},an=new Set;mt.definitions.forEach(function(en){en.kind===kt.OPERATION_DEFINITION?Kt(u(en.name&&en.name.value)).fragmentSpreads.forEach(function(Mn){an.add(Mn)}):en.kind===kt.FRAGMENT_DEFINITION&&0===I&&!v(en.name.value).removed&&an.add(en.name.value)}),an.forEach(function(en){Kt(v(en)).fragmentSpreads.forEach(function(Mn){an.add(Mn)})});var In={enter:function(en){if(function(en){return!(an.has(en)&&!v(en).removed)}(en.name.value))return null}};return Ss(Ut(mt,{FragmentSpread:In,FragmentDefinition:In,OperationDefinition:{leave:function(en){if(en.variableDefinitions){var Mn=Kt(u(en.name&&en.name.value)).transitiveVars;if(Mn.size<en.variableDefinitions.length)return Ye(Ye({},en),{variableDefinitions:en.variableDefinitions.filter(function(Cn){return Mn.has(Cn.variable.name.value)})})}}}}))}var Is=Object.assign(function(l){return Ut(l,{SelectionSet:{enter:function(i,u,v){if(!v||v.kind!==kt.OPERATION_DEFINITION){var y=i.selections;if(y&&!y.some(function(Ie){return lo(Ie)&&("__typename"===Ie.name.value||0===Ie.name.value.lastIndexOf("__",0))})){var H=v;if(!(lo(H)&&H.directives&&H.directives.some(function(Ie){return"export"===Ie.name.value})))return Ye(Ye({},i),{selections:je(je([],y,!0),[uo],!1)})}}}}})},{added:function(l){return l===uo}});function vs(l){return"query"===Yo(l).operation?l:Ut(l,{OperationDefinition:{enter:function(y){return Ye(Ye({},y),{operation:"query"})}}})}function _s(l){return To(l),yo([{test:function(u){return"client"===u.name.value},remove:!0}],l)}var Ue=Object.prototype.hasOwnProperty;function Ot(){for(var l=[],i=0;i<arguments.length;i++)l[i]=arguments[i];return ut(l)}function ut(l){var i=l[0]||{},u=l.length;if(u>1)for(var v=new j,y=1;y<u;++y)i=v.merge(i,l[y]);return i}var Pe=function(l,i,u){return this.merge(l[u],i[u])},j=function(){function l(i){void 0===i&&(i=Pe),this.reconciler=i,this.isObject=me,this.pastCopies=new Set}return l.prototype.merge=function(i,u){for(var v=this,y=[],I=2;I<arguments.length;I++)y[I-2]=arguments[I];return me(u)&&me(i)?(Object.keys(u).forEach(function(H){if(Ue.call(i,H)){var Ie=i[H];if(u[H]!==Ie){var $e=v.reconciler.apply(v,je([i,u,H],y,!1));$e!==Ie&&((i=v.shallowCopyForMerge(i))[H]=$e)}}else(i=v.shallowCopyForMerge(i))[H]=u[H]}),i):u},l.prototype.shallowCopyForMerge=function(i){return me(i)&&(this.pastCopies.has(i)||(i=Array.isArray(i)?i.slice(0):Ye({__proto__:Object.getPrototypeOf(i)},i),this.pastCopies.add(i))),i},l}();function ne(l,i){(null==i||i>l.length)&&(i=l.length);for(var u=0,v=new Array(i);u<i;u++)v[u]=l[u];return v}function Oe(l,i){for(var u=0;u<i.length;u++){var v=i[u];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(l,v.key,v)}}function Fe(l,i,u){return i&&Oe(l.prototype,i),u&&Oe(l,u),Object.defineProperty(l,"prototype",{writable:!1}),l}var pt=function(){return"function"==typeof Symbol},St=function(l){return pt()&&!!Symbol[l]},Ht=function(l){return St(l)?Symbol[l]:"@@"+l};pt()&&!St("observable")&&(Symbol.observable=Symbol("observable"));var cn=Ht("iterator"),Ln=Ht("observable"),Vn=Ht("species");function dr(l,i){var u=l[i];if(null!=u){if("function"!=typeof u)throw new TypeError(u+" is not a function");return u}}function lr(l){var i=l.constructor;return void 0!==i&&null===(i=i[Vn])&&(i=void 0),void 0!==i?i:Ur}function rr(l){rr.log?rr.log(l):setTimeout(function(){throw l})}function oi(l){Promise.resolve().then(function(){try{l()}catch(i){rr(i)}})}function Ni(l){var i=l._cleanup;if(void 0!==i&&(l._cleanup=void 0,i))try{if("function"==typeof i)i();else{var u=dr(i,"unsubscribe");u&&u.call(i)}}catch(v){rr(v)}}function Mi(l){l._observer=void 0,l._queue=void 0,l._state="closed"}function Zr(l,i,u){l._state="running";var v=l._observer;try{var y=dr(v,i);switch(i){case"next":y&&y.call(v,u);break;case"error":if(Mi(l),!y)throw u;y.call(v,u);break;case"complete":Mi(l),y&&y.call(v)}}catch(I){rr(I)}"closed"===l._state?Ni(l):"running"===l._state&&(l._state="ready")}function co(l,i,u){if("closed"!==l._state){if("buffering"===l._state)return void l._queue.push({type:i,value:u});if("ready"!==l._state)return l._state="buffering",l._queue=[{type:i,value:u}],void oi(function(){return function Hi(l){var i=l._queue;if(i){l._queue=void 0,l._state="ready";for(var u=0;u<i.length&&(Zr(l,i[u].type,i[u].value),"closed"!==l._state);++u);}}(l)});Zr(l,i,u)}}var Xo=function(){function l(u,v){this._cleanup=void 0,this._observer=u,this._queue=void 0,this._state="initializing";var y=new io(this);try{this._cleanup=v.call(void 0,y)}catch(I){y.error(I)}"initializing"===this._state&&(this._state="ready")}return l.prototype.unsubscribe=function(){"closed"!==this._state&&(Mi(this),Ni(this))},Fe(l,[{key:"closed",get:function(){return"closed"===this._state}}]),l}(),io=function(){function l(u){this._subscription=u}var i=l.prototype;return i.next=function(u){co(this._subscription,"next",u)},i.error=function(u){co(this._subscription,"error",u)},i.complete=function(){co(this._subscription,"complete")},Fe(l,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),l}(),Ur=function(){function l(u){if(!(this instanceof l))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof u)throw new TypeError("Observable initializer must be a function");this._subscriber=u}var i=l.prototype;return i.subscribe=function(u){return("object"!=typeof u||null===u)&&(u={next:u,error:arguments[1],complete:arguments[2]}),new Xo(u,this._subscriber)},i.forEach=function(u){var v=this;return new Promise(function(y,I){if("function"==typeof u)var Ie=v.subscribe({next:function($e){try{u($e,H)}catch(Te){I(Te),Ie.unsubscribe()}},error:I,complete:y});else I(new TypeError(u+" is not a function"));function H(){Ie.unsubscribe(),y()}})},i.map=function(u){var v=this;if("function"!=typeof u)throw new TypeError(u+" is not a function");return new(lr(this))(function(I){return v.subscribe({next:function(H){try{H=u(H)}catch(Ie){return I.error(Ie)}I.next(H)},error:function(H){I.error(H)},complete:function(){I.complete()}})})},i.filter=function(u){var v=this;if("function"!=typeof u)throw new TypeError(u+" is not a function");return new(lr(this))(function(I){return v.subscribe({next:function(H){try{if(!u(H))return}catch(Ie){return I.error(Ie)}I.next(H)},error:function(H){I.error(H)},complete:function(){I.complete()}})})},i.reduce=function(u){var v=this;if("function"!=typeof u)throw new TypeError(u+" is not a function");var y=lr(this),I=arguments.length>1,H=!1,$e=arguments[1];return new y(function(Te){return v.subscribe({next:function(nt){var gt=!H;if(H=!0,!gt||I)try{$e=u($e,nt)}catch(mt){return Te.error(mt)}else $e=nt},error:function(nt){Te.error(nt)},complete:function(){if(!H&&!I)return Te.error(new TypeError("Cannot reduce an empty sequence"));Te.next($e),Te.complete()}})})},i.concat=function(){for(var u=this,v=arguments.length,y=new Array(v),I=0;I<v;I++)y[I]=arguments[I];var H=lr(this);return new H(function(Ie){var $e,Te=0;return function nt(gt){$e=gt.subscribe({next:function(mt){Ie.next(mt)},error:function(mt){Ie.error(mt)},complete:function(){Te===y.length?($e=void 0,Ie.complete()):nt(H.from(y[Te++]))}})}(u),function(){$e&&($e.unsubscribe(),$e=void 0)}})},i.flatMap=function(u){var v=this;if("function"!=typeof u)throw new TypeError(u+" is not a function");var y=lr(this);return new y(function(I){var H=[],Ie=v.subscribe({next:function(Te){if(u)try{Te=u(Te)}catch(gt){return I.error(gt)}var nt=y.from(Te).subscribe({next:function(gt){I.next(gt)},error:function(gt){I.error(gt)},complete:function(){var gt=H.indexOf(nt);gt>=0&&H.splice(gt,1),$e()}});H.push(nt)},error:function(Te){I.error(Te)},complete:function(){$e()}});function $e(){Ie.closed&&0===H.length&&I.complete()}return function(){H.forEach(function(Te){return Te.unsubscribe()}),Ie.unsubscribe()}})},i[Ln]=function(){return this},l.from=function(u){var v="function"==typeof this?this:l;if(null==u)throw new TypeError(u+" is not an object");var y=dr(u,Ln);if(y){var I=y.call(u);if(Object(I)!==I)throw new TypeError(I+" is not an object");return function ur(l){return l instanceof Ur}(I)&&I.constructor===v?I:new v(function(H){return I.subscribe(H)})}if(St("iterator")&&(y=dr(u,cn)))return new v(function(H){oi(function(){if(!H.closed){for(var $e,Ie=function C(l,i){var u=typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(u)return(u=u.call(l)).next.bind(u);if(Array.isArray(l)||(u=function M(l,i){if(l){if("string"==typeof l)return ne(l,i);var u=Object.prototype.toString.call(l).slice(8,-1);if("Object"===u&&l.constructor&&(u=l.constructor.name),"Map"===u||"Set"===u)return Array.from(l);if("Arguments"===u||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return ne(l,i)}}(l))||i&&l&&"number"==typeof l.length){u&&(l=u);var v=0;return function(){return v>=l.length?{done:!0}:{done:!1,value:l[v++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(y.call(u));!($e=Ie()).done;)if(H.next($e.value),H.closed)return;H.complete()}})});if(Array.isArray(u))return new v(function(H){oi(function(){if(!H.closed){for(var Ie=0;Ie<u.length;++Ie)if(H.next(u[Ie]),H.closed)return;H.complete()}})});throw new TypeError(u+" is not observable")},l.of=function(){for(var u=arguments.length,v=new Array(u),y=0;y<u;y++)v[y]=arguments[y];return new("function"==typeof this?this:l)(function(H){oi(function(){if(!H.closed){for(var Ie=0;Ie<v.length;++Ie)if(H.next(v[Ie]),H.closed)return;H.complete()}})})},Fe(l,null,[{key:Vn,get:function(){return this}}]),l}();pt()&&Object.defineProperty(Ur,Symbol("extensions"),{value:{symbol:Ln,hostReportError:rr},configurable:!0}),function Uo(l){var i,u=l.Symbol;if("function"==typeof u)if(u.observable)i=u.observable;else{i="function"==typeof u.for?u.for("https://github.com/benlesh/symbol-observable"):u("https://github.com/benlesh/symbol-observable");try{u.observable=i}catch(v){}}else i="@@observable"}(typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:typeof module<"u"?module:Function("return this")());var rs=Ur.prototype,Bo="@@observable";rs[Bo]||(rs[Bo]=function(){return this});var is=Object.prototype.toString;function Ia(l){return Ts(l)}function Ts(l,i){switch(is.call(l)){case"[object Array]":if((i=i||new Map).has(l))return i.get(l);var u=l.slice(0);return i.set(l,u),u.forEach(function(y,I){u[I]=Ts(y,i)}),u;case"[object Object]":if((i=i||new Map).has(l))return i.get(l);var v=Object.create(Object.getPrototypeOf(l));return i.set(l,v),Object.keys(l).forEach(function(y){v[y]=Ts(l[y],i)}),v;default:return l}}function Tr(l,i,u){var v=[];l.forEach(function(y){return y[i]&&v.push(y)}),v.forEach(function(y){return y[i](u)})}function bi(l,i,u){return new Ur(function(v){var y=v.next,I=v.error,H=v.complete,Ie=0,$e=!1,Te={then:function(Kt){return new Promise(function(an){return an(Kt())})}};function nt(Kt,an){return Kt?function(mn){++Ie;var In=function(){return Kt(mn)};Te=Te.then(In,In).then(function(en){--Ie,y&&y.call(v,en),$e&&gt.complete()},function(en){throw--Ie,en}).catch(function(en){I&&I.call(v,en)})}:function(mn){return an&&an.call(v,mn)}}var gt={next:nt(i,y),error:nt(u,I),complete:function(){$e=!0,Ie||H&&H.call(v)}},mt=l.subscribe(gt);return function(){return mt.unsubscribe()}})}function Ro(l){function i(u){Object.defineProperty(l,u,{value:Ur})}return p&&Symbol.species&&i(Symbol.species),i("@@species"),l}function ti(l){return l&&"function"==typeof l.then}var fo=function(l){function i(u){var v=l.call(this,function(y){return v.addObserver(y),function(){return v.removeObserver(y)}})||this;return v.observers=new Set,v.promise=new Promise(function(y,I){v.resolve=y,v.reject=I}),v.handlers={next:function(y){null!==v.sub&&(v.latest=["next",y],v.notify("next",y),Tr(v.observers,"next",y))},error:function(y){var I=v.sub;null!==I&&(I&&setTimeout(function(){return I.unsubscribe()}),v.sub=null,v.latest=["error",y],v.reject(y),v.notify("error",y),Tr(v.observers,"error",y))},complete:function(){var I=v.sub,H=v.sources;if(null!==I){var $e=(void 0===H?[]:H).shift();$e?ti($e)?$e.then(function(Te){return v.sub=Te.subscribe(v.handlers)}):v.sub=$e.subscribe(v.handlers):(I&&setTimeout(function(){return I.unsubscribe()}),v.sub=null,v.latest&&"next"===v.latest[0]?v.resolve(v.latest[1]):v.resolve(),v.notify("complete"),Tr(v.observers,"complete"))}}},v.nextResultListeners=new Set,v.cancel=function(y){v.reject(y),v.sources=[],v.handlers.complete()},v.promise.catch(function(y){}),"function"==typeof u&&(u=[new Ur(u)]),ti(u)?u.then(function(y){return v.start(y)},v.handlers.error):v.start(u),v}return dt(i,l),i.prototype.start=function(u){void 0===this.sub&&(this.sources=Array.from(u),this.handlers.complete())},i.prototype.deliverLastMessage=function(u){if(this.latest){var v=this.latest[0],y=u[v];y&&y.call(u,this.latest[1]),null===this.sub&&"next"===v&&u.complete&&u.complete()}},i.prototype.addObserver=function(u){this.observers.has(u)||(this.deliverLastMessage(u),this.observers.add(u))},i.prototype.removeObserver=function(u){this.observers.delete(u)&&this.observers.size<1&&this.handlers.complete()},i.prototype.notify=function(u,v){var y=this.nextResultListeners;y.size&&(this.nextResultListeners=new Set,y.forEach(function(I){return I(u,v)}))},i.prototype.beforeNext=function(u){var v=!1;this.nextResultListeners.add(function(y,I){v||(v=!0,u(y,I))})},i}(Ur);function si(l){return"incremental"in l}function eo(l){return me(l)&&"payload"in l}function us(l,i){var u=l,v=new j;return si(i)&&Fi(i.incremental)&&i.incremental.forEach(function(y){for(var I=y.data,H=y.path,Ie=H.length-1;Ie>=0;--Ie){var $e=H[Ie],nt=isNaN(+$e)?{}:[];nt[$e]=I,I=nt}u=v.merge(u,I)}),u}function Eo(l){return Fi(Us(l))}function Us(l){var i=Fi(l.errors)?l.errors.slice(0):[];return si(l)&&Fi(l.incremental)&&l.incremental.forEach(function(u){u.errors&&i.push.apply(i,u.errors)}),i}function os(){for(var l=[],i=0;i<arguments.length;i++)l[i]=arguments[i];var u=Object.create(null);return l.forEach(function(v){v&&Object.keys(v).forEach(function(y){var I=v[y];void 0!==I&&(u[y]=I)})}),u}function la(l,i){return os(l,i,i.variables&&{variables:os(Ye(Ye({},l&&l.variables),i.variables))})}function ua(l){return new Ur(function(i){i.error(l)})}Ro(fo);var Qr=function(l,i,u){var v=new Error(u);throw v.name="ServerError",v.response=l,v.statusCode=l.status,v.result=i,v};function oo(l,i){return i?i(l):Ur.of()}function Wi(l){return"function"==typeof l?new Br(l):l}function cs(l){return l.request.length<=1}var Br=function(){function l(i){i&&(this.request=i)}return l.empty=function(){return new l(function(){return Ur.of()})},l.from=function(i){return 0===i.length?l.empty():i.map(Wi).reduce(function(u,v){return u.concat(v)})},l.split=function(i,u,v){var y=Wi(u),I=Wi(v||new l(oo));return cs(y)&&cs(I)?new l(function(H){return i(H)?y.request(H)||Ur.of():I.request(H)||Ur.of()}):new l(function(H,Ie){return i(H)?y.request(H,Ie)||Ur.of():I.request(H,Ie)||Ur.of()})},l.execute=function(i,u){return i.request(function pr(l,i){var u=Ye({},l);return Object.defineProperty(i,"setContext",{enumerable:!1,value:function(I){u=Ye(Ye({},u),"function"==typeof I?I(u):I)}}),Object.defineProperty(i,"getContext",{enumerable:!1,value:function(){return Ye({},u)}}),i}(u.context,function pi(l){var i={variables:l.variables||{},extensions:l.extensions||{},operationName:l.operationName,query:l.query};return i.operationName||(i.operationName="string"!=typeof i.query?ls(i.query)||void 0:""),i}(function Nn(l){for(var i=["query","operationName","variables","extensions","context"],u=0,v=Object.keys(l);u<v.length;u++){var y=v[u];if(i.indexOf(y)<0)throw Ee(41,y)}return l}(u))))||Ur.of()},l.concat=function(i,u){var v=Wi(i);if(cs(v))return v;var y=Wi(u);return cs(y)?new l(function(I){return v.request(I,function(H){return y.request(H)||Ur.of()})||Ur.of()}):new l(function(I,H){return v.request(I,function(Ie){return y.request(Ie,H)||Ur.of()})||Ur.of()})},l.prototype.split=function(i,u,v){return this.concat(l.split(i,u,v||new l(oo)))},l.prototype.concat=function(i){return l.concat(this,i)},l.prototype.request=function(i,u){throw Ee(34)},l.prototype.onError=function(i,u){if(u&&u.error)return u.error(i),!1;throw i},l.prototype.setOnError=function(i){return this.onError=i,this},l}(),yi=Br.from,jo=Br.execute;function qe(l){var i={next:function(){return l.read()}};return T&&(i[Symbol.asyncIterator]=function(){return this}),i}function Sr(l){var i=l;if(function X(l){return!!l.body}(l)&&(i=l.body),function tt(l){return!(!T||!l[Symbol.asyncIterator])}(i))return function yr(l){var i,u=l[Symbol.asyncIterator]();return(i={next:function(){return u.next()}})[Symbol.asyncIterator]=function(){return this},i}(i);if(function xe(l){return!!l.getReader}(i))return qe(i.getReader());if(function qt(l){return!!l.stream}(i))return qe(i.stream().getReader());if(function En(l){return!!l.arrayBuffer}(i))return function re(l){var i=!1,u={next:function(){return i?Promise.resolve({value:void 0,done:!0}):(i=!0,new Promise(function(v,y){l.then(function(I){v({value:I,done:!1})}).catch(y)}))}};return T&&(u[Symbol.asyncIterator]=function(){return this}),u}(i.arrayBuffer());if(function _r(l){return!!l.pipe}(i))return function $(l){var i=null,u=null,v=!1,y=[],I=[];function H(gt){if(!u){if(I.length){var mt=I.shift();if(Array.isArray(mt)&&mt[0])return mt[0]({value:gt,done:!1})}y.push(gt)}}function Ie(gt){u=gt,I.slice().forEach(function(Kt){Kt[1](gt)}),!i||i()}function $e(){v=!0,I.slice().forEach(function(mt){mt[0]({value:void 0,done:!0})}),!i||i()}i=function(){i=null,l.removeListener("data",H),l.removeListener("error",Ie),l.removeListener("end",$e),l.removeListener("finish",$e),l.removeListener("close",$e)},l.on("data",H),l.on("error",Ie),l.on("end",$e),l.on("finish",$e),l.on("close",$e);var nt={next:function(){return function Te(){return new Promise(function(gt,mt){return u?mt(u):y.length?gt({value:y.shift(),done:!1}):v?gt({value:void 0,done:!0}):void I.push([gt,mt])})}()}};return T&&(nt[Symbol.asyncIterator]=function(){return this}),nt}(i);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var Or=Symbol(),gi=function(l){function i(u){var v=u.graphQLErrors,y=u.protocolErrors,I=u.clientErrors,H=u.networkError,Ie=u.errorMessage,$e=u.extraInfo,Te=l.call(this,Ie)||this;return Te.name="ApolloError",Te.graphQLErrors=v||[],Te.protocolErrors=y||[],Te.clientErrors=I||[],Te.networkError=H||null,Te.message=Ie||function(l){var i=je(je(je([],l.graphQLErrors,!0),l.clientErrors,!0),l.protocolErrors,!0);return l.networkError&&i.push(l.networkError),i.map(function(u){return me(u)&&u.message||"Error message not found."}).join("\n")}(Te),Te.extraInfo=$e,Te.__proto__=i.prototype,Te}return dt(i,l),i}(Error),po=Object.prototype.hasOwnProperty;function ds(l){var i={};return l.split("\n").forEach(function(u){var v=u.indexOf(":");if(v>-1){var y=u.slice(0,v).trim().toLowerCase(),I=u.slice(v+1).trim();i[y]=I}}),i}function No(l,i){l.status>=300&&Qr(l,function(){try{return JSON.parse(i)}catch(y){return i}}(),"Response not successful: Received status code ".concat(l.status));try{return JSON.parse(i)}catch(y){var v=y;throw v.name="ServerParseError",v.response=l,v.statusCode=l.status,v.bodyText=i,v}}var Ei=function(l,i){var u;try{u=JSON.stringify(l)}catch(y){var v=Ee(37,i,y.message);throw v.parseError=y,v}return u},Os={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},Ta=function(l,i){return i(l)};var $a=zt(function(){return fetch}),wd=function(l){void 0===l&&(l={});var i=l.uri,u=void 0===i?"/graphql":i,v=l.fetch,y=l.print,I=void 0===y?Ta:y,H=l.includeExtensions,Ie=l.preserveHeaderCase,$e=l.useGETForQueries,Te=l.includeUnusedVariables,nt=void 0!==Te&&Te,gt=we(l,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]),mt={http:{includeExtensions:H,preserveHeaderCase:Ie},options:gt.fetchOptions,credentials:gt.credentials,headers:gt.headers};return new Br(function(Kt){var an=function(l,i){return l.getContext().uri||("function"==typeof i?i(l):i||"/graphql")}(Kt,u),mn=Kt.getContext(),In={};if(mn.clientAwareness){var en=mn.clientAwareness,Mn=en.name,Cn=en.version;Mn&&(In["apollographql-client-name"]=Mn),Cn&&(In["apollographql-client-version"]=Cn)}var Zn=Ye(Ye({},In),mn.headers),er={http:mn.http,options:mn.fetchOptions,credentials:mn.credentials,headers:Zn};if(it(["client"],Kt.query)){var Xn=_s(Kt.query);if(!Xn)return ua(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));Kt.query=Xn}var Di,kr=function ys(l,i){for(var u=[],v=2;v<arguments.length;v++)u[v-2]=arguments[v];var y={},I={};u.forEach(function(gt){y=Ye(Ye(Ye({},y),gt.options),{headers:Ye(Ye({},y.headers),gt.headers)}),gt.credentials&&(y.credentials=gt.credentials),I=Ye(Ye({},I),gt.http)}),y.headers&&(y.headers=function Pd(l,i){if(!i){var u=Object.create(null);return Object.keys(Object(l)).forEach(function(I){u[I.toLowerCase()]=l[I]}),u}var v=Object.create(null);Object.keys(Object(l)).forEach(function(I){v[I.toLowerCase()]={originalName:I,value:l[I]}});var y=Object.create(null);return Object.keys(v).forEach(function(I){y[v[I].originalName]=v[I].value}),y}(y.headers,I.preserveHeaderCase));var Te=l.query,nt={operationName:l.operationName,variables:l.variables};return I.includeExtensions&&(nt.extensions=l.extensions),I.includeQuery&&(nt.query=i(Te,Ys)),{options:y,body:nt}}(Kt,I,Os,mt,er),$r=kr.options,xi=kr.body;xi.variables&&!nt&&(xi.variables=function ho(l,i){var u=Ye({},l),v=new Set(Object.keys(l));return Ut(i,{Variable:function(y,I,H){H&&"VariableDefinition"!==H.kind&&v.delete(y.name.value)}}),v.forEach(function(y){delete u[y]}),u}(xi.variables,Kt.query)),!$r.signal&&typeof AbortController<"u"&&(Di=new AbortController,$r.signal=Di.signal);var Ho,Gs="OperationDefinition"===(Ho=Yo(Kt.query)).kind&&"subscription"===Ho.operation,$l=it(["defer"],Kt.query);if($e&&!Kt.query.definitions.some(function(Ho){return"OperationDefinition"===Ho.kind&&"mutation"===Ho.operation})&&($r.method="GET"),$l||Gs){$r.headers=$r.headers||{};var ka="multipart/mixed;";Gs?ka+="boundary=graphql;subscriptionSpec=1.0,application/json":$l&&(ka+="deferSpec=20220824,application/json"),$r.headers.accept=ka}if("GET"===$r.method){var Fa=function Qh(l,i){var u=[],v=function(gt,mt){u.push("".concat(gt,"=").concat(encodeURIComponent(mt)))};if("query"in i&&v("query",i.query),i.operationName&&v("operationName",i.operationName),i.variables){var y=void 0;try{y=Ei(i.variables,"Variables map")}catch(gt){return{parseError:gt}}v("variables",y)}if(i.extensions){var I=void 0;try{I=Ei(i.extensions,"Extensions map")}catch(gt){return{parseError:gt}}v("extensions",I)}var H="",Ie=l,$e=l.indexOf("#");-1!==$e&&(H=l.substr($e),Ie=l.substr(0,$e));var Te=-1===Ie.indexOf("?")?"?":"&";return{newURI:Ie+Te+u.join("&")+H}}(an,xi),Kl=Fa.newURI,xs=Fa.parseError;if(xs)return ua(xs);an=Kl}else try{$r.body=Ei(xi,"Payload")}catch(Ho){return ua(Ho)}return new Ur(function(Ho){var Vu=v||zt(function(){return fetch})||$a,Hl=Ho.next.bind(Ho);return Vu(an,$r).then(function(ia){var ll;Kt.setContext({response:ia});var ul=null===(ll=ia.headers)||void 0===ll?void 0:ll.get("content-type");return null!==ul&&/^multipart\/mixed/i.test(ul)?function Gi(l,i){var u;return ze(this,void 0,void 0,function(){var v,y,I,H,Ie,$e,Te,nt,gt,mt,Kt,an,mn,In,en,Mn,Cn,Zn,er,Xn,kr,$r,xi;return Ke(this,function(Di){var Xi,ts,Gs;switch(Di.label){case 0:if(void 0===TextDecoder)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");v=new TextDecoder("utf-8"),y=null===(u=l.headers)||void 0===u?void 0:u.get("content-type"),I="boundary=",H=null!==(Xi=y)&&void 0!==Xi&&Xi.includes(I)?null===(ts=y)||void 0===ts?void 0:ts.substring((null===(Gs=y)||void 0===Gs?void 0:Gs.indexOf(I))+9).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",Ie="\r\n--".concat(H),$e="",Te=Sr(l),nt=!0,Di.label=1;case 1:return nt?[4,Te.next()]:[3,3];case 2:for(gt=Di.sent(),Kt=gt.done,an="string"==typeof(mt=gt.value)?mt:v.decode(mt),mn=$e.length-Ie.length+1,nt=!Kt,In=($e+=an).indexOf(Ie,mn);In>-1;){if(en=void 0,$r=[$e.slice(0,In),$e.slice(In+Ie.length)],$e=$r[1],Mn=(en=$r[0]).indexOf("\r\n\r\n"),Cn=ds(en.slice(0,Mn)),(Zn=Cn["content-type"])&&-1===Zn.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(er=en.slice(Mn))if(Xn=No(l,er),Object.keys(Xn).length>1||"data"in Xn||"incremental"in Xn||"errors"in Xn||"payload"in Xn)eo(Xn)?(kr={},"payload"in Xn&&(kr=Ye({},Xn.payload)),"errors"in Xn&&(kr=Ye(Ye({},kr),{extensions:Ye(Ye({},"extensions"in kr?kr.extensions:null),(xi={},xi[Or]=Xn.errors,xi))})),i(kr)):i(Xn);else if(1===Object.keys(Xn).length&&"hasNext"in Xn&&!Xn.hasNext)return[2];In=$e.indexOf(Ie)}return[3,1];case 3:return[2]}})})}(ia,Hl):function ai(l){return function(i){return i.text().then(function(u){return No(i,u)}).then(function(u){return i.status>=300&&Qr(i,u,"Response not successful: Received status code ".concat(i.status)),!Array.isArray(u)&&!po.call(u,"data")&&!po.call(u,"errors")&&Qr(i,u,"Server response was missing for query '".concat(Array.isArray(l)?l.map(function(v){return v.operationName}):l.operationName,"'.")),u})}}(Kt)(ia).then(Hl)}).then(function(){Di=void 0,Ho.complete()}).catch(function(ia){Di=void 0,function di(l,i){l.result&&l.result.errors&&l.result.data&&i.next(l.result),i.error(l)}(ia,Ho)}),function(){Di&&Di.abort()}})})},tu=function(l){function i(u){void 0===u&&(u={});var v=l.call(this,wd(u).request)||this;return v.options=u,v}return dt(i,l),i}(Br);const{toString:Rd,hasOwnProperty:Yh}=Object.prototype,Xh=Function.prototype.toString,nu=new Map;function so(l,i){try{return ru(l,i)}finally{nu.clear()}}function ru(l,i){if(l===i)return!0;const u=Rd.call(l);if(u!==Rd.call(i))return!1;switch(u){case"[object Array]":if(l.length!==i.length)return!1;case"[object Object]":{if(rc(l,i))return!0;const y=Zh(l),I=Zh(i),H=y.length;if(H!==I.length)return!1;for(let Ie=0;Ie<H;++Ie)if(!Yh.call(i,y[Ie]))return!1;for(let Ie=0;Ie<H;++Ie){const $e=y[Ie];if(!ru(l[$e],i[$e]))return!1}return!0}case"[object Error]":return l.name===i.name&&l.message===i.message;case"[object Number]":if(l!=l)return i!=i;case"[object Boolean]":case"[object Date]":return+l==+i;case"[object RegExp]":case"[object String]":return l=="".concat(i);case"[object Map]":case"[object Set]":{if(l.size!==i.size)return!1;if(rc(l,i))return!0;const y=l.entries(),I="[object Map]"===u;for(;;){const H=y.next();if(H.done)break;const[Ie,$e]=H.value;if(!i.has(Ie)||I&&!ru($e,i.get(Ie)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":l=new Uint8Array(l),i=new Uint8Array(i);case"[object DataView]":{let y=l.byteLength;if(y===i.byteLength)for(;y--&&l[y]===i[y];);return-1===y}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const y=Xh.call(l);return y===Xh.call(i)&&!function qh(l,i){const u=l.length-i.length;return u>=0&&l.indexOf(i,u)===u}(y,Jh)}}return!1}function Zh(l){return Object.keys(l).filter(Vm,l)}function Vm(l){return void 0!==this[l]}const Jh="{ [native code] }";function rc(l,i){let u=nu.get(l);if(u){if(u.has(i))return!0}else nu.set(l,u=new Set);return u.add(i),!1}function Nd(){}class ep{constructor(i=1/0,u=Nd){this.max=i,this.dispose=u,this.map=new Map,this.newest=null,this.oldest=null}has(i){return this.map.has(i)}get(i){const u=this.getNode(i);return u&&u.value}getNode(i){const u=this.map.get(i);if(u&&u!==this.newest){const{older:v,newer:y}=u;y&&(y.older=v),v&&(v.newer=y),u.older=this.newest,u.older.newer=u,u.newer=null,this.newest=u,u===this.oldest&&(this.oldest=y)}return u}set(i,u){let v=this.getNode(i);return v?v.value=u:(v={key:i,value:u,newer:null,older:this.newest},this.newest&&(this.newest.newer=v),this.newest=v,this.oldest=this.oldest||v,this.map.set(i,v),v.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(i){const u=this.map.get(i);return!!u&&(u===this.newest&&(this.newest=u.older),u===this.oldest&&(this.oldest=u.newer),u.newer&&(u.newer.older=u.older),u.older&&(u.older.newer=u.newer),this.map.delete(i),this.dispose(u.value,i),!0)}}let xo=null;const xd={};let tp=1;function ic(l){try{return l()}catch(i){}}const gl="@wry/context:Slot",oc=ic(()=>globalThis)||ic(()=>global)||Object.create(null),kd=oc[gl]||Array[gl]||function(l){try{Object.defineProperty(oc,gl,{value:l,enumerable:!1,writable:!1,configurable:!0})}finally{return l}}(class{constructor(){this.id=["slot",tp++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let l=xo;l;l=l.parent)if(this.id in l.slots){const i=l.slots[this.id];if(i===xd)break;return l!==xo&&(xo.slots[this.id]=i),!0}return xo&&(xo.slots[this.id]=xd),!1}getValue(){if(this.hasValue())return xo.slots[this.id]}withValue(l,i,u,v){const I=xo;xo={parent:I,slots:{__proto__:null,[this.id]:l}};try{return i.apply(v,u)}finally{xo=I}}static bind(l){const i=xo;return function(){const u=xo;try{return xo=i,l.apply(this,arguments)}finally{xo=u}}}static noContext(l,i,u){if(!xo)return l.apply(u,i);{const v=xo;try{return xo=null,l.apply(u,i)}finally{xo=v}}}}),ml=new kd,{hasOwnProperty:Fd}=Object.prototype,sc=Array.from||function(l){const i=[];return l.forEach(u=>i.push(u)),i};function Ka(l){const{unsubscribe:i}=l;"function"==typeof i&&(l.unsubscribe=void 0,i())}const vl=[];function w(l,i){if(!l)throw new Error(i||"assertion failure")}function J(l){switch(l.length){case 0:throw new Error("unknown value");case 1:return l[0];case 2:throw l[1]}}let fe=(()=>{class l{constructor(u){this.fn=u,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++l.count}peek(){if(1===this.value.length&&!gn(this))return ke(this),this.value[0]}recompute(u){return w(!this.recomputing,"already recomputing"),ke(this),gn(this)?function Qe(l,i){return Vo(l),ml.withValue(l,Wt,[l,i]),function Jo(l,i){if("function"==typeof l.subscribe)try{Ka(l),l.unsubscribe=l.subscribe.apply(null,i)}catch(u){return l.setDirty(),!1}return!0}(l,i)&&function Qt(l){l.dirty=!1,!gn(l)&&Er(l)}(l),J(l.value)}(this,u):J(this.value)}setDirty(){this.dirty||(this.dirty=!0,this.value.length=0,Wn(this),Ka(this))}dispose(){this.setDirty(),Vo(this),ni(this,(u,v)=>{u.setDirty(),Bs(u,this)})}forget(){this.dispose()}dependOn(u){u.add(this),this.deps||(this.deps=vl.pop()||new Set),this.deps.add(u)}forgetDeps(){this.deps&&(sc(this.deps).forEach(u=>u.delete(this)),this.deps.clear(),vl.push(this.deps),this.deps=null)}}return l.count=0,l})();function ke(l){const i=ml.getValue();if(i)return l.parents.add(i),i.childValues.has(l)||i.childValues.set(l,[]),gn(l)?mr(i,l):Ui(i,l),i}function Wt(l,i){l.recomputing=!0,l.value.length=0;try{l.value[0]=l.fn.apply(null,i)}catch(u){l.value[1]=u}l.recomputing=!1}function gn(l){return l.dirty||!(!l.dirtyChildren||!l.dirtyChildren.size)}function Wn(l){ni(l,mr)}function Er(l){ni(l,Ui)}function ni(l,i){const u=l.parents.size;if(u){const v=sc(l.parents);for(let y=0;y<u;++y)i(v[y],l)}}function mr(l,i){w(l.childValues.has(i)),w(gn(i));const u=!gn(l);if(l.dirtyChildren){if(l.dirtyChildren.has(i))return}else l.dirtyChildren=vl.pop()||new Set;l.dirtyChildren.add(i),u&&Wn(l)}function Ui(l,i){w(l.childValues.has(i)),w(!gn(i));const u=l.childValues.get(i);0===u.length?l.childValues.set(i,function L(l){return l.slice(0)}(i.value)):function N(l,i){const u=l.length;return u>0&&u===i.length&&l[u-1]===i[u-1]}(u,i.value)||l.setDirty(),Oo(l,i),!gn(l)&&Er(l)}function Oo(l,i){const u=l.dirtyChildren;u&&(u.delete(i),0===u.size&&(vl.length<100&&vl.push(u),l.dirtyChildren=null))}function Vo(l){l.childValues.size>0&&l.childValues.forEach((i,u)=>{Bs(l,u)}),l.forgetDeps(),w(null===l.dirtyChildren)}function Bs(l,i){i.parents.delete(l),l.childValues.delete(i),Oo(l,i)}const Xs={setDirty:!0,dispose:!0,forget:!0};function da(l){const i=new Map,u=l&&l.subscribe;function v(y){const I=ml.getValue();if(I){let H=i.get(y);H||i.set(y,H=new Set),I.dependOn(H),"function"==typeof u&&(Ka(H),H.unsubscribe=u(y))}}return v.dirty=function(y,I){const H=i.get(y);if(H){const Ie=I&&Fd.call(Xs,I)?I:"setDirty";sc(H).forEach($e=>$e[Ie]()),i.delete(y),Ka(H)}},v}let Oa;function js(...l){return(Oa||(Oa=new Dr("function"==typeof WeakMap))).lookupArray(l)}const fa=new Set;function ou(l,{max:i=Math.pow(2,16),makeCacheKey:u=js,keyArgs:v,subscribe:y}=Object.create(null)){const I=new ep(i,nt=>nt.dispose()),H=function(){const nt=u.apply(null,v?v.apply(null,arguments):arguments);if(void 0===nt)return l.apply(null,arguments);let gt=I.get(nt);gt||(I.set(nt,gt=new fe(l)),gt.subscribe=y,gt.forget=()=>I.delete(nt));const mt=gt.recompute(Array.prototype.slice.call(arguments));return I.set(nt,gt),fa.add(I),ml.hasValue()||(fa.forEach(Kt=>Kt.clean()),fa.clear()),mt};function Ie(nt){const gt=I.get(nt);gt&&gt.setDirty()}function $e(nt){const gt=I.get(nt);if(gt)return gt.peek()}function Te(nt){return I.delete(nt)}return Object.defineProperty(H,"size",{get:()=>I.map.size,configurable:!1,enumerable:!1}),Object.freeze(H.options={max:i,makeCacheKey:u,keyArgs:v,subscribe:y}),H.dirtyKey=Ie,H.dirty=function(){Ie(u.apply(null,arguments))},H.peekKey=$e,H.peek=function(){return $e(u.apply(null,arguments))},H.forgetKey=Te,H.forget=function(){return Te(u.apply(null,arguments))},H.makeCacheKey=u,H.getKey=v?function(){return u.apply(null,v.apply(null,arguments))}:u,Object.freeze(H)}var np=function(){function l(){this.assumeImmutableResults=!1,this.getFragmentDoc=ou(Re)}return l.prototype.batch=function(i){var y,u=this;return this.performTransaction(function(){return y=i.update(u)},"string"==typeof i.optimistic?i.optimistic:!1===i.optimistic?null:void 0),y},l.prototype.recordOptimisticTransaction=function(i,u){this.performTransaction(i,u)},l.prototype.transformDocument=function(i){return i},l.prototype.transformForLink=function(i){return i},l.prototype.identify=function(i){},l.prototype.gc=function(){return[]},l.prototype.modify=function(i){return!1},l.prototype.readQuery=function(i,u){return void 0===u&&(u=!!i.optimistic),this.read(Ye(Ye({},i),{rootId:i.id||"ROOT_QUERY",optimistic:u}))},l.prototype.readFragment=function(i,u){return void 0===u&&(u=!!i.optimistic),this.read(Ye(Ye({},i),{query:this.getFragmentDoc(i.fragment,i.fragmentName),rootId:i.id,optimistic:u}))},l.prototype.writeQuery=function(i){var u=i.id,v=i.data,y=we(i,["id","data"]);return this.write(Object.assign(y,{dataId:u||"ROOT_QUERY",result:v}))},l.prototype.writeFragment=function(i){var u=i.id,v=i.data,y=i.fragment,I=i.fragmentName,H=we(i,["id","data","fragment","fragmentName"]);return this.write(Object.assign(H,{query:this.getFragmentDoc(y,I),dataId:u,result:v}))},l.prototype.updateQuery=function(i,u){return this.batch({update:function(v){var y=v.readQuery(i),I=u(y);return null==I?y:(v.writeQuery(Ye(Ye({},i),{data:I})),I)}})},l.prototype.updateFragment=function(i,u){return this.batch({update:function(v){var y=v.readFragment(i),I=u(y);return null==I?y:(v.writeFragment(Ye(Ye({},i),{data:I})),I)}})},l}(),Rr=function(l){function i(u,v,y,I){var H,Ie=l.call(this,u)||this;if(Ie.message=u,Ie.path=v,Ie.query=y,Ie.variables=I,Array.isArray(Ie.path)){Ie.missing=Ie.message;for(var $e=Ie.path.length-1;$e>=0;--$e)Ie.missing=((H={})[Ie.path[$e]]=Ie.missing,H)}else Ie.missing=Ie.path;return Ie.__proto__=i.prototype,Ie}return dt(i,l),i}(Error),go=Object.prototype.hasOwnProperty;function Ha(l){return null==l}function ac(l,i){var u=l.__typename,v=l.id,y=l._id;if("string"==typeof u&&(i&&(i.keyObject=Ha(v)?Ha(y)?void 0:{_id:y}:{id:v}),Ha(v)&&!Ha(y)&&(v=y),!Ha(v)))return"".concat(u,":").concat("number"==typeof v||"string"==typeof v?v:JSON.stringify(v))}var $m={dataIdFromObject:ac,addTypename:!0,resultCaching:!0,canonizeResults:!1};function rp(l){var i=l.canonizeResults;return void 0===i?$m.canonizeResults:i}var Ud=/^[_a-z][_0-9a-z]*/i;function Es(l){var i=l.match(Ud);return i?i[0]:l}function Bd(l,i,u){return!!me(i)&&(Gr(i)?i.every(function(v){return Bd(l,v,u)}):l.selections.every(function(v){if(lo(v)&&Ir(v,u)){var y=Fo(v);return go.call(i,y)&&(!v.selectionSet||Bd(v.selectionSet,i[y],u))}return!0}))}function _l(l){return me(l)&&!vn(l)&&!Gr(l)}function ip(l,i){var u=ot(Ri(l));return{fragmentMap:u,lookupFragment:function(v){var y=u[v];return!y&&i&&(y=i.lookup(v)),y||null}}}var lc=Object.create(null),fn=function(){return lc},Mr=Object.create(null),yl=function(){function l(i,u){var v=this;this.policies=i,this.group=u,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(y,I){return vn(y)?v.get(y.__ref,I):y&&y[I]},this.canRead=function(y){return vn(y)?v.has(y.__ref):"object"==typeof y},this.toReference=function(y,I){if("string"==typeof y)return $t(y);if(vn(y))return y;var H=v.policies.identify(y)[0];if(H){var Ie=$t(H);return I&&v.merge(H,y),Ie}}}return l.prototype.toObject=function(){return Ye({},this.data)},l.prototype.has=function(i){return void 0!==this.lookup(i,!0)},l.prototype.get=function(i,u){if(this.group.depend(i,u),go.call(this.data,i)){var v=this.data[i];if(v&&go.call(v,u))return v[u]}return"__typename"===u&&go.call(this.policies.rootTypenamesById,i)?this.policies.rootTypenamesById[i]:this instanceof Ps?this.parent.get(i,u):void 0},l.prototype.lookup=function(i,u){return u&&this.group.depend(i,"__exists"),go.call(this.data,i)?this.data[i]:this instanceof Ps?this.parent.lookup(i,u):this.policies.rootTypenamesById[i]?Object.create(null):void 0},l.prototype.merge=function(i,u){var y,v=this;vn(i)&&(i=i.__ref),vn(u)&&(u=u.__ref);var I="string"==typeof i?this.lookup(y=i):i,H="string"==typeof u?this.lookup(y=u):u;if(H){ye("string"==typeof y,1);var Ie=new j($d).merge(I,H);if(this.data[y]=Ie,Ie!==I&&(delete this.refs[y],this.group.caching)){var $e=Object.create(null);I||($e.__exists=1),Object.keys(H).forEach(function(Te){if(!I||I[Te]!==Ie[Te]){$e[Te]=1;var nt=Es(Te);nt!==Te&&!v.policies.hasKeyArgs(Ie.__typename,nt)&&($e[nt]=1),void 0===Ie[Te]&&!(v instanceof Ps)&&delete Ie[Te]}}),$e.__typename&&!(I&&I.__typename)&&this.policies.rootTypenamesById[y]===Ie.__typename&&delete $e.__typename,Object.keys($e).forEach(function(Te){return v.group.dirty(y,Te)})}}},l.prototype.modify=function(i,u){var v=this,y=this.lookup(i);if(y){var I=Object.create(null),H=!1,Ie=!0,$e={DELETE:lc,INVALIDATE:Mr,isReference:vn,toReference:this.toReference,canRead:this.canRead,readField:function(Te,nt){return v.policies.readField("string"==typeof Te?{fieldName:Te,from:nt||$t(i)}:Te,{store:v})}};if(Object.keys(y).forEach(function(Te){var nt=Es(Te),gt=y[Te];if(void 0!==gt){var mt="function"==typeof u?u:u[Te]||u[nt];if(mt){var Kt=mt===fn?lc:mt(gt,Ye(Ye({},$e),{fieldName:nt,storeFieldName:Te,storage:v.getStorage(i,Te)}));Kt===Mr?v.group.dirty(i,Te):(Kt===lc&&(Kt=void 0),Kt!==gt&&(I[Te]=Kt,H=!0,gt=Kt))}void 0!==gt&&(Ie=!1)}}),H)return this.merge(i,I),Ie&&(this instanceof Ps?this.data[i]=void 0:delete this.data[i],this.group.dirty(i,"__exists")),!0}return!1},l.prototype.delete=function(i,u,v){var y,I=this.lookup(i);if(I){var H=this.getFieldValue(I,"__typename"),Ie=u&&v?this.policies.getStoreFieldName({typename:H,fieldName:u,args:v}):u;return this.modify(i,Ie?((y={})[Ie]=fn,y):fn)}return!1},l.prototype.evict=function(i,u){var v=!1;return i.id&&(go.call(this.data,i.id)&&(v=this.delete(i.id,i.fieldName,i.args)),this instanceof Ps&&this!==u&&(v=this.parent.evict(i,u)||v),(i.fieldName||v)&&this.group.dirty(i.id,i.fieldName||"__exists")),v},l.prototype.clear=function(){this.replace(null)},l.prototype.extract=function(){var i=this,u=this.toObject(),v=[];return this.getRootIdSet().forEach(function(y){go.call(i.policies.rootTypenamesById,y)||v.push(y)}),v.length&&(u.__META={extraRootIds:v.sort()}),u},l.prototype.replace=function(i){var u=this;if(Object.keys(this.data).forEach(function(I){i&&go.call(i,I)||u.delete(I)}),i){var v=i.__META,y=we(i,["__META"]);Object.keys(y).forEach(function(I){u.merge(I,y[I])}),v&&v.extraRootIds.forEach(this.retain,this)}},l.prototype.retain=function(i){return this.rootIds[i]=(this.rootIds[i]||0)+1},l.prototype.release=function(i){if(this.rootIds[i]>0){var u=--this.rootIds[i];return u||delete this.rootIds[i],u}return 0},l.prototype.getRootIdSet=function(i){return void 0===i&&(i=new Set),Object.keys(this.rootIds).forEach(i.add,i),this instanceof Ps?this.parent.getRootIdSet(i):Object.keys(this.policies.rootTypenamesById).forEach(i.add,i),i},l.prototype.gc=function(){var i=this,u=this.getRootIdSet(),v=this.toObject();u.forEach(function(H){go.call(v,H)&&(Object.keys(i.findChildRefIds(H)).forEach(u.add,u),delete v[H])});var y=Object.keys(v);if(y.length){for(var I=this;I instanceof Ps;)I=I.parent;y.forEach(function(H){return I.delete(H)})}return y},l.prototype.findChildRefIds=function(i){if(!go.call(this.refs,i)){var u=this.refs[i]=Object.create(null),v=this.data[i];if(!v)return u;var y=new Set([v]);y.forEach(function(I){vn(I)&&(u[I.__ref]=!0),me(I)&&Object.keys(I).forEach(function(H){var Ie=I[H];me(Ie)&&y.add(Ie)})})}return this.refs[i]},l.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},l}(),jd=function(){function l(i,u){void 0===u&&(u=null),this.caching=i,this.parent=u,this.d=null,this.resetCaching()}return l.prototype.resetCaching=function(){this.d=this.caching?da():null,this.keyMaker=new Dr(Un)},l.prototype.depend=function(i,u){if(this.d){this.d(Kr(i,u));var v=Es(u);v!==u&&this.d(Kr(i,v)),this.parent&&this.parent.depend(i,u)}},l.prototype.dirty=function(i,u){this.d&&this.d.dirty(Kr(i,u),"__exists"===u?"forget":"setDirty")},l}();function Kr(l,i){return i+"#"+l}function Vd(l,i){Wa(l)&&l.group.depend(i,"__exists")}!function(l){var i=function(u){function v(y){var H=y.resultCaching,$e=y.seed,Te=u.call(this,y.policies,new jd(void 0===H||H))||this;return Te.stump=new Vs(Te),Te.storageTrie=new Dr(Un),$e&&Te.replace($e),Te}return dt(v,u),v.prototype.addLayer=function(y,I){return this.stump.addLayer(y,I)},v.prototype.removeLayer=function(){return this},v.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},v}(l);l.Root=i}(yl||(yl={}));var Ps=function(l){function i(u,v,y,I){var H=l.call(this,v.policies,I)||this;return H.id=u,H.parent=v,H.replay=y,H.group=I,y(H),H}return dt(i,l),i.prototype.addLayer=function(u,v){return new i(u,this,v,this.group)},i.prototype.removeLayer=function(u){var v=this,y=this.parent.removeLayer(u);return u===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(I){var H=v.data[I],Ie=y.lookup(I);Ie?H?H!==Ie&&Object.keys(H).forEach(function($e){so(H[$e],Ie[$e])||v.group.dirty(I,$e)}):(v.group.dirty(I,"__exists"),Object.keys(Ie).forEach(function($e){v.group.dirty(I,$e)})):v.delete(I)}),y):y===this.parent?this:y.addLayer(this.id,this.replay)},i.prototype.toObject=function(){return Ye(Ye({},this.parent.toObject()),this.data)},i.prototype.findChildRefIds=function(u){var v=this.parent.findChildRefIds(u);return go.call(this.data,u)?Ye(Ye({},v),l.prototype.findChildRefIds.call(this,u)):v},i.prototype.getStorage=function(){for(var u=this.parent;u.parent;)u=u.parent;return u.getStorage.apply(u,arguments)},i}(yl),Vs=function(l){function i(u){return l.call(this,"EntityStore.Stump",u,function(){},new jd(u.group.caching,u.group))||this}return dt(i,l),i.prototype.removeLayer=function(){return this},i.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},i}(Ps);function $d(l,i,u){var v=l[u],y=i[u];return so(v,y)?v:y}function Wa(l){return!!(l instanceof yl&&l.group.caching)}var uc,cc,sp=function(){function l(){this.known=new(_i?WeakSet:Set),this.pool=new Dr(Un),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return l.prototype.isKnown=function(i){return me(i)&&this.known.has(i)},l.prototype.pass=function(i){if(me(i)){var u=function op(l){return me(l)?Gr(l)?l.slice(0):Ye({__proto__:Object.getPrototypeOf(l)},l):l}(i);return this.passes.set(u,i),u}return i},l.prototype.admit=function(i){var u=this;if(me(i)){var v=this.passes.get(i);if(v)return v;switch(Object.getPrototypeOf(i)){case Array.prototype:if(this.known.has(i))return i;var I=i.map(this.admit,this);return(H=this.pool.lookupArray(I)).array||this.known.add(H.array=I),H.array;case null:case Object.prototype:if(this.known.has(i))return i;var Ie=Object.getPrototypeOf(i),$e=[Ie],Te=this.sortedKeys(i);$e.push(Te.json);var H,nt=$e.length;if(Te.sorted.forEach(function(Kt){$e.push(u.admit(i[Kt]))}),!(H=this.pool.lookupArray($e)).object){var gt=H.object=Object.create(Ie);this.known.add(gt),Te.sorted.forEach(function(Kt,an){gt[Kt]=$e[nt+an]})}return H.object}}return i},l.prototype.sortedKeys=function(i){var u=Object.keys(i),v=this.pool.lookupArray(u);if(!v.keys){u.sort();var y=JSON.stringify(u);(v.keys=this.keysByJSON.get(y))||this.keysByJSON.set(y,v.keys={sorted:u,json:y})}return v.keys},l}(),El=Object.assign(function(l){if(me(l)){void 0===uc&&su();var i=uc.admit(l),u=cc.get(i);return void 0===u&&cc.set(i,u=JSON.stringify(i)),u}return JSON.stringify(l)},{reset:su});function su(){uc=new sp,cc=new(Un?WeakMap:Map)}function qo(l){return[l.selectionSet,l.objectOrReference,l.context,l.context.canonizeResults]}var ha=function(){function l(i){var u=this;this.knownResults=new(Un?WeakMap:Map),this.config=os(i,{addTypename:!1!==i.addTypename,canonizeResults:rp(i)}),this.canon=i.canon||new sp,this.executeSelectionSet=ou(function(v){var y,I=v.context.canonizeResults,H=qo(v);H[3]=!I;var Ie=(y=u.executeSelectionSet).peek.apply(y,H);return Ie?I?Ye(Ye({},Ie),{result:u.canon.admit(Ie.result)}):Ie:(Vd(v.context.store,v.enclosingRef.__ref),u.execSelectionSetImpl(v))},{max:this.config.resultCacheMaxSize,keyArgs:qo,makeCacheKey:function(v,y,I,H){if(Wa(I.store))return I.store.makeCacheKey(v,vn(y)?y.__ref:y,I.varString,H)}}),this.executeSubSelectedArray=ou(function(v){return Vd(v.context.store,v.enclosingRef.__ref),u.execSubSelectedArrayImpl(v)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(v){var y=v.field,I=v.array,H=v.context;if(Wa(H.store))return H.store.makeCacheKey(y,I,H.varString)}})}return l.prototype.resetCanon=function(){this.canon=new sp},l.prototype.diffQueryAgainstStore=function(i){var u=i.store,v=i.query,y=i.rootId,I=void 0===y?"ROOT_QUERY":y,H=i.variables,Ie=i.returnPartialData,$e=void 0===Ie||Ie,Te=i.canonizeResults,nt=void 0===Te?this.config.canonizeResults:Te,gt=this.config.cache.policies;H=Ye(Ye({},ms(function gs(l){var i=_o(l);return ye(i&&"query"===i.operation,74),i}(v))),H);var an,mt=$t(I),Kt=this.executeSelectionSet({selectionSet:Yo(v).selectionSet,objectOrReference:mt,enclosingRef:mt,context:Ye({store:u,query:v,policies:gt,variables:H,varString:El(H),canonizeResults:nt},ip(v,this.config.fragments))});if(Kt.missing&&(an=[new Rr(ap(Kt.missing),Kt.missing,v,H)],!$e))throw an[0];return{result:Kt.result,complete:!an,missing:an}},l.prototype.isFresh=function(i,u,v,y){if(Wa(y.store)&&this.knownResults.get(i)===v){var I=this.executeSelectionSet.peek(v,u,y,this.canon.isKnown(i));if(I&&i===I.result)return!0}return!1},l.prototype.execSelectionSetImpl=function(i){var u=this,v=i.selectionSet,y=i.objectOrReference,I=i.enclosingRef,H=i.context;if(vn(y)&&!H.policies.rootTypenamesById[y.__ref]&&!H.store.has(y.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(y.__ref," object")};var mt,Ie=H.variables,$e=H.policies,nt=H.store.getFieldValue(y,"__typename"),gt=[],Kt=new j;function an(Cn,Zn){var er;return Cn.missing&&(mt=Kt.merge(mt,((er={})[Zn]=Cn.missing,er))),Cn.result}this.config.addTypename&&"string"==typeof nt&&!$e.rootIdsByTypename[nt]&&gt.push({__typename:nt});var mn=new Set(v.selections);mn.forEach(function(Cn){var Zn,er;if(Ir(Cn,Ie))if(lo(Cn)){var Xn=$e.readField({fieldName:Cn.name.value,field:Cn,variables:H.variables,from:y},H),kr=Fo(Cn);void 0===Xn?Is.added(Cn)||(mt=Kt.merge(mt,((Zn={})[kr]="Can't find field '".concat(Cn.name.value,"' on ").concat(vn(y)?y.__ref+" object":"object "+JSON.stringify(y,null,2)),Zn))):Gr(Xn)?Xn=an(u.executeSubSelectedArray({field:Cn,array:Xn,enclosingRef:I,context:H}),kr):Cn.selectionSet?null!=Xn&&(Xn=an(u.executeSelectionSet({selectionSet:Cn.selectionSet,objectOrReference:Xn,enclosingRef:vn(Xn)?Xn:I,context:H}),kr)):H.canonizeResults&&(Xn=u.canon.pass(Xn)),void 0!==Xn&&gt.push(((er={})[kr]=Xn,er))}else{var $r=Vt(Cn,H.lookupFragment);if(!$r&&Cn.kind===kt.FRAGMENT_SPREAD)throw Ee(7,Cn.name.value);$r&&$e.fragmentMatches($r,nt)&&$r.selectionSet.selections.forEach(mn.add,mn)}});var en={result:ut(gt),missing:mt},Mn=H.canonizeResults?this.canon.admit(en):en;return Mn.result&&this.knownResults.set(Mn.result,v),Mn},l.prototype.execSubSelectedArrayImpl=function(i){var Ie,u=this,v=i.field,y=i.array,I=i.enclosingRef,H=i.context,$e=new j;function Te(nt,gt){var mt;return nt.missing&&(Ie=$e.merge(Ie,((mt={})[gt]=nt.missing,mt))),nt.result}return v.selectionSet&&(y=y.filter(H.store.canRead)),y=y.map(function(nt,gt){return null===nt?null:Gr(nt)?Te(u.executeSubSelectedArray({field:v,array:nt,enclosingRef:I,context:H}),gt):v.selectionSet?Te(u.executeSelectionSet({selectionSet:v.selectionSet,objectOrReference:nt,enclosingRef:vn(nt)?nt:I,context:H}),gt):nt}),{result:H.canonizeResults?this.canon.admit(y):y,missing:Ie}},l}();function ap(l){try{JSON.stringify(l,function(i,u){if("string"==typeof u)throw u;return u})}catch(i){return i}}var Ks=new kd,lp=new WeakMap;function Al(l){var i=lp.get(l);return i||lp.set(l,i={vars:new Set,dep:da()}),i}function up(l){Al(l).vars.forEach(function(i){return i.forgetCache(l)})}function Kd(l){var i=new Set,u=new Set,v=function(I){if(arguments.length>0){if(l!==I){l=I,i.forEach(function($e){Al($e).dep.dirty(v),function Hd(l){l.broadcastWatches&&l.broadcastWatches()}($e)});var H=Array.from(u);u.clear(),H.forEach(function($e){return $e(l)})}}else{var Ie=Ks.getValue();Ie&&(y(Ie),Al(Ie).dep(v))}return l};v.onNextChange=function(I){return u.add(I),function(){u.delete(I)}};var y=v.attachCache=function(I){return i.add(I),Al(I).vars.add(v),v};return v.forgetCache=function(I){return i.delete(I)},v}var dc=Object.create(null);function Cl(l){var i=JSON.stringify(l);return dc[i]||(dc[i]=Object.create(null))}function cp(l){var i=Cl(l);return i.keyFieldsFn||(i.keyFieldsFn=function(u,v){var y=function(H,Ie){return v.readField(Ie,H)},I=v.keyObject=au(l,function(H){var Ie=Ga(v.storeObject,H,y);return void 0===Ie&&u!==v.storeObject&&go.call(u,H[0])&&(Ie=Ga(u,H,zd)),ye(void 0!==Ie,2,H.join("."),u),Ie});return"".concat(v.typename,":").concat(JSON.stringify(I))})}function Wd(l){var i=Cl(l);return i.keyArgsFn||(i.keyArgsFn=function(u,v){var y=v.field,I=v.variables,H=v.fieldName,Ie=au(l,function(Te){var nt=Te[0],gt=nt.charAt(0);if("@"!==gt)if("$"!==gt){if(u)return Ga(u,Te)}else{var mn=nt.slice(1);if(I&&go.call(I,mn)){var In=Te.slice(0);return In[0]=mn,Ga(I,In)}}else if(y&&Fi(y.directives)){var mt=nt.slice(1),Kt=y.directives.find(function(en){return en.name.value===mt}),an=Kt&&as(Kt,I);return an&&Ga(an,Te.slice(1))}}),$e=JSON.stringify(Ie);return(u||"{}"!==$e)&&(H+=":"+$e),H})}function au(l,i){var u=new j;return Gd(l).reduce(function(v,y){var I,H=i(y);if(void 0!==H){for(var Ie=y.length-1;Ie>=0;--Ie)(I={})[y[Ie]]=H,H=I;v=u.merge(v,H)}return v},Object.create(null))}function Gd(l){var i=Cl(l);if(!i.paths){var u=i.paths=[],v=[];l.forEach(function(y,I){Gr(y)?(Gd(y).forEach(function(H){return u.push(v.concat(H))}),v.length=0):(v.push(y),Gr(l[I+1])||(u.push(v.slice(0)),v.length=0))})}return i.paths}function zd(l,i){return l[i]}function Ga(l,i,u){return u=u||zd,Qd(i.reduce(function v(y,I){return Gr(y)?y.map(function(H){return v(H,I)}):y&&u(y,I)},l))}function Qd(l){return me(l)?Gr(l)?l.map(Qd):au(Object.keys(l).sort(),function(i){return Ga(l,i)}):l}function lu(l){return void 0!==l.args?l.args:l.field?as(l.field,l.variables):null}Ki.setStringify(El);var zm=function(){},Lo=function(l,i){return i.fieldName},Pa=function(l,i,u){return(0,u.mergeObjects)(l,i)},Si=function(l,i){return i},dp=function(){function l(i){this.config=i,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=Ye({dataIdFromObject:ac},i),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),i.possibleTypes&&this.addPossibleTypes(i.possibleTypes),i.typePolicies&&this.addTypePolicies(i.typePolicies)}return l.prototype.identify=function(i,u){var v,y=this,I=u&&(u.typename||(null===(v=u.storeObject)||void 0===v?void 0:v.__typename))||i.__typename;if(I===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var $e,H=u&&u.storeObject||i,Ie=Ye(Ye({},u),{typename:I,storeObject:H,readField:u&&u.readField||function(){var mt=Yd(arguments,H);return y.readField(mt,{store:y.cache.data,variables:mt.variables})}}),Te=I&&this.getTypePolicy(I),nt=Te&&Te.keyFn||this.config.dataIdFromObject;nt;){var gt=nt(Ye(Ye({},i),H),Ie);if(!Gr(gt)){$e=gt;break}nt=cp(gt)}return $e=$e?String($e):void 0,Ie.keyObject?[$e,Ie.keyObject]:[$e]},l.prototype.addTypePolicies=function(i){var u=this;Object.keys(i).forEach(function(v){var y=i[v],I=y.queryType,H=y.mutationType,Ie=y.subscriptionType,$e=we(y,["queryType","mutationType","subscriptionType"]);I&&u.setRootTypename("Query",v),H&&u.setRootTypename("Mutation",v),Ie&&u.setRootTypename("Subscription",v),go.call(u.toBeAdded,v)?u.toBeAdded[v].push($e):u.toBeAdded[v]=[$e]})},l.prototype.updateTypePolicy=function(i,u){var v=this,y=this.getTypePolicy(i),I=u.keyFields,H=u.fields;function Ie($e,Te){$e.merge="function"==typeof Te?Te:!0===Te?Pa:!1===Te?Si:$e.merge}Ie(y,u.merge),y.keyFn=!1===I?zm:Gr(I)?cp(I):"function"==typeof I?I:y.keyFn,H&&Object.keys(H).forEach(function($e){var Te=v.getFieldPolicy(i,$e,!0),nt=H[$e];if("function"==typeof nt)Te.read=nt;else{var gt=nt.keyArgs,mt=nt.read,Kt=nt.merge;Te.keyFn=!1===gt?Lo:Gr(gt)?Wd(gt):"function"==typeof gt?gt:Te.keyFn,"function"==typeof mt&&(Te.read=mt),Ie(Te,Kt)}Te.read&&Te.merge&&(Te.keyFn=Te.keyFn||Lo)})},l.prototype.setRootTypename=function(i,u){void 0===u&&(u=i);var v="ROOT_"+i.toUpperCase(),y=this.rootTypenamesById[v];u!==y&&(ye(!y||y===i,3,i),y&&delete this.rootIdsByTypename[y],this.rootIdsByTypename[u]=v,this.rootTypenamesById[v]=u)},l.prototype.addPossibleTypes=function(i){var u=this;this.usingPossibleTypes=!0,Object.keys(i).forEach(function(v){u.getSupertypeSet(v,!0),i[v].forEach(function(y){u.getSupertypeSet(y,!0).add(v);var I=y.match(Ud);(!I||I[0]!==y)&&u.fuzzySubtypes.set(y,new RegExp(y))})})},l.prototype.getTypePolicy=function(i){var u=this;if(!go.call(this.typePolicies,i)){var v=this.typePolicies[i]=Object.create(null);v.fields=Object.create(null);var y=this.supertypeMap.get(i);!y&&this.fuzzySubtypes.size&&(y=this.getSupertypeSet(i,!0),this.fuzzySubtypes.forEach(function(H,Ie){if(H.test(i)){var $e=u.supertypeMap.get(Ie);$e&&$e.forEach(function(Te){return y.add(Te)})}})),y&&y.size&&y.forEach(function(H){var Ie=u.getTypePolicy(H),$e=Ie.fields,Te=we(Ie,["fields"]);Object.assign(v,Te),Object.assign(v.fields,$e)})}var I=this.toBeAdded[i];return I&&I.length&&I.splice(0).forEach(function(H){u.updateTypePolicy(i,H)}),this.typePolicies[i]},l.prototype.getFieldPolicy=function(i,u,v){if(i){var y=this.getTypePolicy(i).fields;return y[u]||v&&(y[u]=Object.create(null))}},l.prototype.getSupertypeSet=function(i,u){var v=this.supertypeMap.get(i);return!v&&u&&this.supertypeMap.set(i,v=new Set),v},l.prototype.fragmentMatches=function(i,u,v,y){var I=this;if(!i.typeCondition)return!0;if(!u)return!1;var H=i.typeCondition.name.value;if(u===H)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(H))for(var Ie=this.getSupertypeSet(u,!0),$e=[Ie],Te=function(an){var mn=I.getSupertypeSet(an,!1);mn&&mn.size&&$e.indexOf(mn)<0&&$e.push(mn)},nt=!(!v||!this.fuzzySubtypes.size),mt=0;mt<$e.length;++mt){var Kt=$e[mt];if(Kt.has(H))return Ie.has(H)||Ie.add(H),!0;Kt.forEach(Te),nt&&mt===$e.length-1&&Bd(i.selectionSet,v,y)&&(nt=!1,this.fuzzySubtypes.forEach(function(an,mn){var In=u.match(an);In&&In[0]===u&&Te(mn)}))}return!1},l.prototype.hasKeyArgs=function(i,u){var v=this.getFieldPolicy(i,u,!1);return!(!v||!v.keyFn)},l.prototype.getStoreFieldName=function(i){var I,u=i.typename,v=i.fieldName,y=this.getFieldPolicy(u,v,!1),H=y&&y.keyFn;if(H&&u)for(var Ie={typename:u,fieldName:v,field:i.field||null,variables:i.variables},$e=lu(i);H;){var Te=H($e,Ie);if(!Gr(Te)){I=Te||v;break}H=Wd(Te)}return void 0===I&&(I=i.field?function ss(l,i){var u=null;l.directives&&(u={},l.directives.forEach(function(y){u[y.name.value]={},y.arguments&&y.arguments.forEach(function(I){return Kn(u[y.name.value],I.name,I.value,i)})}));var v=null;return l.arguments&&l.arguments.length&&(v={},l.arguments.forEach(function(y){return Kn(v,y.name,y.value,i)})),Ki(l.name.value,v,u)}(i.field,i.variables):Ki(v,lu(i))),!1===I?v:v===Es(I)?I:v+":"+I},l.prototype.readField=function(i,u){var v=i.from;if(v&&(i.field||i.fieldName)){if(void 0===i.typename){var I=u.store.getFieldValue(v,"__typename");I&&(i.typename=I)}var H=this.getStoreFieldName(i),Ie=Es(H),$e=u.store.getFieldValue(v,H),Te=this.getFieldPolicy(i.typename,Ie,!1),nt=Te&&Te.read;if(nt){var gt=fp(this,v,i,u,u.store.getStorage(vn(v)?v.__ref:v,H));return Ks.withValue(this.cache,nt,[$e,gt])}return $e}},l.prototype.getReadFunction=function(i,u){var v=this.getFieldPolicy(i,u,!1);return v&&v.read},l.prototype.getMergeFunction=function(i,u,v){var y=this.getFieldPolicy(i,u,!1),I=y&&y.merge;return!I&&v&&(I=(y=this.getTypePolicy(v))&&y.merge),I},l.prototype.runMergeFunction=function(i,u,v,y,I){var H=v.field,Ie=v.typename,$e=v.merge;return $e===Pa?hp(y.store)(i,u):$e===Si?u:(y.overwrite&&(i=void 0),$e(i,u,fp(this,void 0,{typename:Ie,fieldName:H.name.value,field:H,variables:y.variables},y,I||Object.create(null))))},l}();function fp(l,i,u,v,y){var I=l.getStoreFieldName(u),H=Es(I),Ie=u.variables||v.variables,$e=v.store,Te=$e.toReference,nt=$e.canRead;return{args:lu(u),field:u.field||null,fieldName:H,storeFieldName:I,variables:Ie,isReference:vn,toReference:Te,storage:y,cache:l.cache,canRead:nt,readField:function(){return l.readField(Yd(arguments,i,Ie),v)},mergeObjects:hp(v.store)}}function Yd(l,i,u){var H,v=l[0];return"string"==typeof v?H={fieldName:v,from:l.length>1?l[1]:i}:(H=Ye({},v),go.call(H,"from")||(H.from=i)),void 0===H.variables&&(H.variables=u),H}function hp(l){return function(i,u){if(Gr(i)||Gr(u))throw Ee(6);if(me(i)&&me(u)){var v=l.getFieldValue(i,"__typename"),y=l.getFieldValue(u,"__typename");if(v&&y&&v!==y)return u;if(vn(i)&&_l(u))return l.merge(i.__ref,u),i;if(_l(i)&&vn(u))return l.merge(i,u.__ref),u;if(_l(i)&&_l(u))return Ye(Ye({},i),u)}return u}}function fc(l,i,u){var v="".concat(i).concat(u),y=l.flavors.get(v);return y||l.flavors.set(v,y=l.clientOnly===i&&l.deferred===u?l:Ye(Ye({},l),{clientOnly:i,deferred:u})),y}var Ii,pp=function(){function l(i,u,v){this.cache=i,this.reader=u,this.fragments=v}return l.prototype.writeToStore=function(i,u){var v=this,y=u.query,I=u.result,H=u.dataId,Ie=u.variables,$e=u.overwrite,Te=_o(y),nt=function Wm(){return new j}();Ie=Ye(Ye({},ms(Te)),Ie);var gt=Ye(Ye({store:i,written:Object.create(null),merge:function(Kt,an){return nt.merge(Kt,an)},variables:Ie,varString:El(Ie)},ip(y,this.fragments)),{overwrite:!!$e,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),mt=this.processSelectionSet({result:I||Object.create(null),dataId:H,selectionSet:Te.selectionSet,mergeTree:{map:new Map},context:gt});if(!vn(mt))throw Ee(9,I);return gt.incomingById.forEach(function(Kt,an){var mn=Kt.storeObject,In=Kt.mergeTree,Mn=$t(an);if(In&&In.map.size){var Cn=v.applyMerges(In,Mn,mn,gt);if(vn(Cn))return;mn=Cn}i.merge(an,mn)}),i.retain(mt.__ref),mt},l.prototype.processSelectionSet=function(i){var u=this,v=i.dataId,y=i.result,I=i.selectionSet,H=i.context,Ie=i.mergeTree,$e=this.cache.policies,Te=Object.create(null),nt=v&&$e.rootTypenamesById[v]||Io(y,I,H.fragmentMap)||v&&H.store.get(v,"__typename");"string"==typeof nt&&(Te.__typename=nt);var gt=function(){var Cn=Yd(arguments,Te,H.variables);if(vn(Cn.from)){var Zn=H.incomingById.get(Cn.from.__ref);if(Zn){var er=$e.readField(Ye(Ye({},Cn),{from:Zn.storeObject}),H);if(void 0!==er)return er}}return $e.readField(Cn,H)},mt=new Set;this.flattenFields(I,y,H,nt).forEach(function(Cn,Zn){var er,Xn=Fo(Zn),kr=y[Xn];if(mt.add(Zn),void 0!==kr){var $r=$e.getStoreFieldName({typename:nt,fieldName:Zn.name.value,field:Zn,variables:Cn.variables}),xi=Hs(Ie,$r),Di=u.processFieldValue(kr,Zn,Zn.selectionSet?fc(Cn,!1,!1):Cn,xi),Xi=void 0;Zn.selectionSet&&(vn(Di)||_l(Di))&&(Xi=gt("__typename",Di));var ts=$e.getMergeFunction(nt,Zn.name.value,Xi);ts?xi.info={field:Zn,typename:nt,merge:ts}:uu(Ie,$r),Te=Cn.merge(Te,((er={})[$r]=Di,er))}});try{var Kt=$e.identify(y,{typename:nt,selectionSet:I,fragmentMap:H.fragmentMap,storeObject:Te,readField:gt}),mn=Kt[1];v=v||Kt[0],mn&&(Te=H.merge(Te,mn))}catch(Cn){if(!v)throw Cn}if("string"==typeof v){var In=$t(v),en=H.written[v]||(H.written[v]=[]);if(en.indexOf(I)>=0||(en.push(I),this.reader&&this.reader.isFresh(y,In,I,H)))return In;var Mn=H.incomingById.get(v);return Mn?(Mn.storeObject=H.merge(Mn.storeObject,Te),Mn.mergeTree=Xd(Mn.mergeTree,Ie),mt.forEach(function(Cn){return Mn.fieldNodeSet.add(Cn)})):H.incomingById.set(v,{storeObject:Te,mergeTree:za(Ie)?void 0:Ie,fieldNodeSet:mt}),In}return Te},l.prototype.processFieldValue=function(i,u,v,y){var I=this;return u.selectionSet&&null!==i?Gr(i)?i.map(function(H,Ie){var $e=I.processFieldValue(H,u,v,Hs(y,Ie));return uu(y,Ie),$e}):this.processSelectionSet({result:i,selectionSet:u.selectionSet,context:v,mergeTree:y}):i},l.prototype.flattenFields=function(i,u,v,y){void 0===y&&(y=Io(u,i,v.fragmentMap));var I=new Map,H=this.cache.policies,Ie=new Dr(!1);return function $e(Te,nt){var gt=Ie.lookup(Te,nt.clientOnly,nt.deferred);gt.visited||(gt.visited=!0,Te.selections.forEach(function(mt){if(Ir(mt,v.variables)){var Kt=nt.clientOnly,an=nt.deferred;if(!(Kt&&an)&&Fi(mt.directives)&&mt.directives.forEach(function(en){var Mn=en.name.value;if("client"===Mn&&(Kt=!0),"defer"===Mn){var Cn=as(en,v.variables);(!Cn||!1!==Cn.if)&&(an=!0)}}),lo(mt)){var mn=I.get(mt);mn&&(Kt=Kt&&mn.clientOnly,an=an&&mn.deferred),I.set(mt,fc(v,Kt,an))}else{var In=Vt(mt,v.lookupFragment);if(!In&&mt.kind===kt.FRAGMENT_SPREAD)throw Ee(11,mt.name.value);In&&H.fragmentMatches(In,y,u,v.variables)&&$e(In.selectionSet,fc(v,Kt,an))}}}))}(i,v),I},l.prototype.applyMerges=function(i,u,v,y,I){var H,Ie=this;if(i.map.size&&!vn(v)){var $e=Gr(v)||!vn(u)&&!_l(u)?void 0:u,Te=v;$e&&!I&&(I=[vn($e)?$e.__ref:$e]);var nt,gt=function(mt,Kt){return Gr(mt)?"number"==typeof Kt?mt[Kt]:void 0:y.store.getFieldValue(mt,String(Kt))};i.map.forEach(function(mt,Kt){var an=gt($e,Kt),mn=gt(Te,Kt);if(void 0!==mn){I&&I.push(Kt);var In=Ie.applyMerges(mt,an,mn,y,I);In!==mn&&(nt=nt||new Map).set(Kt,In),I&&ye(I.pop()===Kt)}}),nt&&(v=Gr(Te)?Te.slice(0):Ye({},Te),nt.forEach(function(mt,Kt){v[Kt]=mt}))}return i.info?this.cache.policies.runMergeFunction(u,v,i.info,y,I&&(H=y.store).getStorage.apply(H,I)):v},l}(),bl=[];function Hs(l,i){var u=l.map;return u.has(i)||u.set(i,bl.pop()||{map:new Map}),u.get(i)}function Xd(l,i){if(l===i||!i||za(i))return l;if(!l||za(l))return i;var u=l.info&&i.info?Ye(Ye({},l.info),i.info):l.info||i.info,v=l.map.size&&i.map.size,I={info:u,map:v?new Map:l.map.size?l.map:i.map};if(v){var H=new Set(i.map.keys());l.map.forEach(function(Ie,$e){I.map.set($e,Xd(Ie,i.map.get($e))),H.delete($e)}),H.forEach(function(Ie){I.map.set(Ie,Xd(i.map.get(Ie),l.map.get(Ie)))})}return I}function za(l){return!l||!(l.info||l.map.size)}function uu(l,i){var u=l.map,v=u.get(i);v&&za(v)&&(bl.push(v),u.delete(i))}function Sl(l){return!!l&&l<7}function Qm(l,i,u,v){var y=i.data,I=we(i,["data"]),H=u.data;return so(I,we(u,["data"]))&&pa(Yo(l).selectionSet,y,H,{fragmentMap:ot(Ri(l)),variables:v})}function pa(l,i,u,v){if(i===u)return!0;var y=new Set;return l.selections.every(function(I){if(y.has(I)||(y.add(I),!Ir(I,v.variables))||Il(I))return!0;if(lo(I)){var H=Fo(I),Ie=i&&i[H],$e=u&&u[H],Te=I.selectionSet;if(!Te)return so(Ie,$e);var nt=Array.isArray(Ie),gt=Array.isArray($e);if(nt!==gt)return!1;if(nt&&gt){var mt=Ie.length;if($e.length!==mt)return!1;for(var Kt=0;Kt<mt;++Kt)if(!pa(Te,Ie[Kt],$e[Kt],v))return!1;return!0}return pa(Te,Ie,$e,v)}var an=Vt(I,v.fragmentMap);return an?!!Il(an)||pa(an.selectionSet,i,u,v):void 0})}function Il(l){return!!l.directives&&l.directives.some(Ym)}function Ym(l){return"nonreactive"===l.name.value}!function(l){function i(u){void 0===u&&(u={});var v=l.call(this)||this;return v.watches=new Set,v.addTypenameTransform=new bs(Is),v.assumeImmutableResults=!0,v.makeVar=Kd,v.txCount=0,v.config=function Km(l){return os($m,l)}(u),v.addTypename=!!v.config.addTypename,v.policies=new dp({cache:v,dataIdFromObject:v.config.dataIdFromObject,possibleTypes:v.config.possibleTypes,typePolicies:v.config.typePolicies}),v.init(),v}dt(i,l),i.prototype.init=function(){var u=this.data=new yl.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=u.stump,this.resetResultCache()},i.prototype.resetResultCache=function(u){var v=this,y=this.storeReader,I=this.config.fragments;this.storeWriter=new pp(this,this.storeReader=new ha({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:rp(this.config),canon:u?void 0:y&&y.canon,fragments:I}),I),this.maybeBroadcastWatch=ou(function(H,Ie){return v.broadcastWatch(H,Ie)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(H){var Ie=H.optimistic?v.optimisticData:v.data;if(Wa(Ie))return Ie.makeCacheKey(H.query,H.callback,El({optimistic:H.optimistic,id:H.id,variables:H.variables}))}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(H){return H.resetCaching()})},i.prototype.restore=function(u){return this.init(),u&&this.data.replace(u),this},i.prototype.extract=function(u){return void 0===u&&(u=!1),(u?this.optimisticData:this.data).extract()},i.prototype.read=function(u){var v=u.returnPartialData,y=void 0!==v&&v;try{return this.storeReader.diffQueryAgainstStore(Ye(Ye({},u),{store:u.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:y})).result||null}catch(I){if(I instanceof Rr)return null;throw I}},i.prototype.write=function(u){try{return++this.txCount,this.storeWriter.writeToStore(this.data,u)}finally{! --this.txCount&&!1!==u.broadcast&&this.broadcastWatches()}},i.prototype.modify=function(u){if(go.call(u,"id")&&!u.id)return!1;var v=u.optimistic?this.optimisticData:this.data;try{return++this.txCount,v.modify(u.id||"ROOT_QUERY",u.fields)}finally{! --this.txCount&&!1!==u.broadcast&&this.broadcastWatches()}},i.prototype.diff=function(u){return this.storeReader.diffQueryAgainstStore(Ye(Ye({},u),{store:u.optimistic?this.optimisticData:this.data,rootId:u.id||"ROOT_QUERY",config:this.config}))},i.prototype.watch=function(u){var v=this;return this.watches.size||function Gm(l){Al(l).vars.forEach(function(i){return i.attachCache(l)})}(this),this.watches.add(u),u.immediate&&this.maybeBroadcastWatch(u),function(){v.watches.delete(u)&&!v.watches.size&&up(v),v.maybeBroadcastWatch.forget(u)}},i.prototype.gc=function(u){El.reset();var v=this.optimisticData.gc();return u&&!this.txCount&&(u.resetResultCache?this.resetResultCache(u.resetResultIdentities):u.resetResultIdentities&&this.storeReader.resetCanon()),v},i.prototype.retain=function(u,v){return(v?this.optimisticData:this.data).retain(u)},i.prototype.release=function(u,v){return(v?this.optimisticData:this.data).release(u)},i.prototype.identify=function(u){if(vn(u))return u.__ref;try{return this.policies.identify(u)[0]}catch(v){}},i.prototype.evict=function(u){if(!u.id){if(go.call(u,"id"))return!1;u=Ye(Ye({},u),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(u,this.data)}finally{! --this.txCount&&!1!==u.broadcast&&this.broadcastWatches()}},i.prototype.reset=function(u){var v=this;return this.init(),El.reset(),u&&u.discardWatches?(this.watches.forEach(function(y){return v.maybeBroadcastWatch.forget(y)}),this.watches.clear(),up(this)):this.broadcastWatches(),Promise.resolve()},i.prototype.removeOptimistic=function(u){var v=this.optimisticData.removeLayer(u);v!==this.optimisticData&&(this.optimisticData=v,this.broadcastWatches())},i.prototype.batch=function(u){var Te,v=this,y=u.update,I=u.optimistic,H=void 0===I||I,Ie=u.removeOptimistic,$e=u.onWatchUpdated,nt=function(mt){var an=v.data,mn=v.optimisticData;++v.txCount,mt&&(v.data=v.optimisticData=mt);try{return Te=y(v)}finally{--v.txCount,v.data=an,v.optimisticData=mn}},gt=new Set;return $e&&!this.txCount&&this.broadcastWatches(Ye(Ye({},u),{onWatchUpdated:function(mt){return gt.add(mt),!1}})),"string"==typeof H?this.optimisticData=this.optimisticData.addLayer(H,nt):!1===H?nt(this.data):nt(),"string"==typeof Ie&&(this.optimisticData=this.optimisticData.removeLayer(Ie)),$e&&gt.size?(this.broadcastWatches(Ye(Ye({},u),{onWatchUpdated:function(mt,Kt){var an=$e.call(this,mt,Kt);return!1!==an&&gt.delete(mt),an}})),gt.size&&gt.forEach(function(mt){return v.maybeBroadcastWatch.dirty(mt)})):this.broadcastWatches(u),Te},i.prototype.performTransaction=function(u,v){return this.batch({update:u,optimistic:v||null!==v})},i.prototype.transformDocument=function(u){return this.addTypenameToDocument(this.addFragmentsToDocument(u))},i.prototype.broadcastWatches=function(u){var v=this;this.txCount||this.watches.forEach(function(y){return v.maybeBroadcastWatch(y,u)})},i.prototype.addFragmentsToDocument=function(u){var v=this.config.fragments;return v?v.transform(u):u},i.prototype.addTypenameToDocument=function(u){return this.addTypename?this.addTypenameTransform.transformDocument(u):u},i.prototype.broadcastWatch=function(u,v){var y=u.lastDiff,I=this.diff(u);v&&(u.optimistic&&"string"==typeof v.optimistic&&(I.fromOptimisticTransaction=!0),v.onWatchUpdated&&!1===v.onWatchUpdated.call(this,u,I,y))||(!y||!so(y.result,I.result))&&u.callback(u.lastDiff=I,y)}}(np),function(l){l[l.loading=1]="loading",l[l.setVariables=2]="setVariables",l[l.fetchMore=3]="fetchMore",l[l.refetch=4]="refetch",l[l.poll=6]="poll",l[l.ready=7]="ready",l[l.error=8]="error"}(Ii||(Ii={}));var hc=Object.assign,Zd=function(l){function i(u){var v=u.queryManager,y=u.queryInfo,I=u.options,H=l.call(this,function(In){try{var en=In._subscription._observer;en&&!en.error&&(en.error=Xm)}catch(Zn){}var Mn=!H.observers.size;H.observers.add(In);var Cn=H.last;return Cn&&Cn.error?In.error&&In.error(Cn.error):Cn&&Cn.result&&In.next&&In.next(Cn.result),Mn&&H.reobserve().catch(function(){}),function(){H.observers.delete(In)&&!H.observers.size&&H.tearDownQuery()}})||this;H.observers=new Set,H.subscriptions=new Set,H.queryInfo=y,H.queryManager=v,H.waitForOwnResult=_p(I.fetchPolicy),H.isTornDown=!1;var Ie=v.defaultOptions.watchQuery,Te=(void 0===Ie?{}:Ie).fetchPolicy,nt=void 0===Te?"cache-first":Te,gt=I.fetchPolicy,mt=void 0===gt?nt:gt,Kt=I.initialFetchPolicy,an=void 0===Kt?"standby"===mt?nt:mt:Kt;H.options=Ye(Ye({},I),{initialFetchPolicy:an,fetchPolicy:mt}),H.queryId=y.queryId||v.generateQueryId();var mn=_o(H.query);return H.queryName=mn&&mn.name&&mn.name.value,H}return dt(i,l),Object.defineProperty(i.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),i.prototype.result=function(){var u=this;return new Promise(function(v,y){var I={next:function(Ie){v(Ie),u.observers.delete(I),u.observers.size||u.queryManager.removeQuery(u.queryId),setTimeout(function(){H.unsubscribe()},0)},error:y},H=u.subscribe(I)})},i.prototype.getCurrentResult=function(u){void 0===u&&(u=!0);var v=this.getLastResult(!0),y=this.queryInfo.networkStatus||v&&v.networkStatus||Ii.ready,I=Ye(Ye({},v),{loading:Sl(y),networkStatus:y}),H=this.options.fetchPolicy,Ie=void 0===H?"cache-first":H;if(!_p(Ie)&&!this.queryManager.getDocumentInfo(this.query).hasForcedResolvers)if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var $e=this.queryInfo.getDiff();($e.complete||this.options.returnPartialData)&&(I.data=$e.result),so(I.data,{})&&(I.data=void 0),$e.complete?(delete I.partial,$e.complete&&I.networkStatus===Ii.loading&&("cache-first"===Ie||"cache-only"===Ie)&&(I.networkStatus=Ii.ready,I.loading=!1)):I.partial=!0}return u&&this.updateLastResult(I),I},i.prototype.isDifferentFromLastResult=function(u,v){return!this.last||(this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!Qm(this.query,this.last.result,u,this.variables):!so(this.last.result,u))||v&&!so(this.last.variables,v)},i.prototype.getLast=function(u,v){var y=this.last;if(y&&y[u]&&(!v||so(y.variables,this.variables)))return y[u]},i.prototype.getLastResult=function(u){return this.getLast("result",u)},i.prototype.getLastError=function(u){return this.getLast("error",u)},i.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},i.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},i.prototype.refetch=function(u){var y={pollInterval:0},I=this.options.fetchPolicy;return y.fetchPolicy="cache-and-network"===I?I:"no-cache"===I?"no-cache":"network-only",u&&!so(this.options.variables,u)&&(y.variables=this.options.variables=Ye(Ye({},this.options.variables),u)),this.queryInfo.resetLastWrite(),this.reobserve(y,Ii.refetch)},i.prototype.fetchMore=function(u){var v=this,y=Ye(Ye({},u.query?u:Ye(Ye(Ye(Ye({},this.options),{query:this.options.query}),u),{variables:Ye(Ye({},this.options.variables),u.variables)})),{fetchPolicy:"no-cache"});y.query=this.transformDocument(y.query);var I=this.queryManager.generateQueryId();this.lastQuery=u.query?this.transformDocument(this.options.query):y.query;var H=this.queryInfo,Ie=H.networkStatus;H.networkStatus=Ii.fetchMore,y.notifyOnNetworkStatusChange&&this.observe();var $e=new Set;return this.queryManager.fetchQuery(I,y,Ii.fetchMore).then(function(Te){return v.queryManager.removeQuery(I),H.networkStatus===Ii.fetchMore&&(H.networkStatus=Ie),v.queryManager.cache.batch({update:function(nt){var gt=u.updateQuery;gt?nt.updateQuery({query:v.query,variables:v.variables,returnPartialData:!0,optimistic:!1},function(mt){return gt(mt,{fetchMoreResult:Te.data,variables:y.variables})}):nt.writeQuery({query:y.query,variables:y.variables,data:Te.data})},onWatchUpdated:function(nt){$e.add(nt.query)}}),Te}).finally(function(){$e.has(v.query)||vp(v)})},i.prototype.subscribeToMore=function(u){var v=this,y=this.queryManager.startGraphQLSubscription({query:u.document,variables:u.variables,context:u.context}).subscribe({next:function(I){var H=u.updateQuery;H&&v.updateQuery(function(Ie,$e){return H(Ie,{subscriptionData:I,variables:$e.variables})})},error:function(I){u.onError&&u.onError(I)}});return this.subscriptions.add(y),function(){v.subscriptions.delete(y)&&y.unsubscribe()}},i.prototype.setOptions=function(u){return this.reobserve(u)},i.prototype.silentSetOptions=function(u){var v=os(this.options,u||{});hc(this.options,v)},i.prototype.setVariables=function(u){return so(this.variables,u)?this.observers.size?this.result():Promise.resolve():(this.options.variables=u,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:u},Ii.setVariables):Promise.resolve())},i.prototype.updateQuery=function(u){var v=this.queryManager,I=u(v.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});I&&(v.cache.writeQuery({query:this.options.query,data:I,variables:this.variables}),v.broadcastQueries())},i.prototype.startPolling=function(u){this.options.pollInterval=u,this.updatePolling()},i.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},i.prototype.applyNextFetchPolicy=function(u,v){if(v.nextFetchPolicy){var y=v.fetchPolicy,I=void 0===y?"cache-first":y,H=v.initialFetchPolicy,Ie=void 0===H?I:H;"standby"===I||(v.fetchPolicy="function"==typeof v.nextFetchPolicy?v.nextFetchPolicy(I,{reason:u,options:v,observable:this,initialFetchPolicy:Ie}):"variables-changed"===u?Ie:v.nextFetchPolicy)}return v.fetchPolicy},i.prototype.fetch=function(u,v){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,u,v)},i.prototype.updatePolling=function(){var u=this;if(!this.queryManager.ssrMode){var y=this.pollingInfo,I=this.options.pollInterval;if(!I)return void(y&&(clearTimeout(y.timeout),delete this.pollingInfo));if(!y||y.interval!==I){ye(I,20),(y||(this.pollingInfo={})).interval=I;var Ie=function(){u.pollingInfo&&(Sl(u.queryInfo.networkStatus)?$e():u.reobserve({fetchPolicy:"no-cache"===u.options.initialFetchPolicy?"no-cache":"network-only"},Ii.poll).then($e,$e))},$e=function(){var Te=u.pollingInfo;Te&&(clearTimeout(Te.timeout),Te.timeout=setTimeout(Ie,Te.interval))};$e()}}},i.prototype.updateLastResult=function(u,v){void 0===v&&(v=this.variables);var y=this.getLastError();return y&&this.last&&!so(v,this.last.variables)&&(y=void 0),this.last=Ye({result:this.queryManager.assumeImmutableResults?u:Ia(u),variables:v},y?{error:y}:null)},i.prototype.reobserveAsConcast=function(u,v){var y=this;this.isTornDown=!1;var I=v===Ii.refetch||v===Ii.fetchMore||v===Ii.poll,H=this.options.variables,Ie=this.options.fetchPolicy,$e=os(this.options,u||{}),Te=I?$e:hc(this.options,$e),nt=this.transformDocument(Te.query);this.lastQuery=nt,I||(this.updatePolling(),u&&u.variables&&!so(u.variables,H)&&"standby"!==Te.fetchPolicy&&Te.fetchPolicy===Ie&&(this.applyNextFetchPolicy("variables-changed",Te),void 0===v&&(v=Ii.setVariables)));var gt=nt===Te.query?Te:Ye(Ye({},Te),{query:nt});this.waitForOwnResult&&(this.waitForOwnResult=_p(gt.fetchPolicy));var mt=function(){y.concast===mn&&(y.waitForOwnResult=!1)},Kt=gt.variables&&Ye({},gt.variables),an=this.fetch(gt,v),mn=an.concast,en={next:function(Mn){mt(),y.reportResult(Mn,Kt)},error:function(Mn){mt(),y.reportError(Mn,Kt)}};return!I&&(an.fromLink||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=mn,this.observer=en),mn.addObserver(en),mn},i.prototype.reobserve=function(u,v){return this.reobserveAsConcast(u,v).promise},i.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},i.prototype.reportResult=function(u,v){var y=this.getLastError(),I=this.isDifferentFromLastResult(u,v);(y||!u.partial||this.options.returnPartialData)&&this.updateLastResult(u,v),(y||I)&&Tr(this.observers,"next",u)},i.prototype.reportError=function(u,v){var y=Ye(Ye({},this.getLastResult()),{error:u,errors:u.graphQLErrors,networkStatus:Ii.error,loading:!1});this.updateLastResult(y,v),Tr(this.observers,"error",this.last.error=u)},i.prototype.hasObservers=function(){return this.observers.size>0},i.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(u){return u.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},i.prototype.transformDocument=function(u){return this.queryManager.transform(u)},i}(Ur);function vp(l){var i=l.options,u=i.fetchPolicy,v=i.nextFetchPolicy;return"cache-and-network"===u||"network-only"===u?l.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return this.nextFetchPolicy=v,"function"==typeof v?v.apply(this,arguments):u}}):l.reobserve()}function Xm(l){}function _p(l){return"network-only"===l||"no-cache"===l||"standby"===l}Ro(Zd);var yp=function(){function l(i){var u=i.cache,v=i.client,y=i.resolvers,I=i.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=u,v&&(this.client=v),y&&this.addResolvers(y),I&&this.setFragmentMatcher(I)}return l.prototype.addResolvers=function(i){var u=this;this.resolvers=this.resolvers||{},Array.isArray(i)?i.forEach(function(v){u.resolvers=Ot(u.resolvers,v)}):this.resolvers=Ot(this.resolvers,i)},l.prototype.setResolvers=function(i){this.resolvers={},this.addResolvers(i)},l.prototype.getResolvers=function(){return this.resolvers||{}},l.prototype.runResolvers=function(i){var u=i.document,v=i.remoteResult,y=i.context,I=i.variables,H=i.onlyRunForcedResolvers,Ie=void 0!==H&&H;return ze(this,void 0,void 0,function(){return Ke(this,function($e){return u?[2,this.resolveDocument(u,v.data,y,I,this.fragmentMatcher,Ie).then(function(Te){return Ye(Ye({},v),{data:Te.result})})]:[2,v]})})},l.prototype.setFragmentMatcher=function(i){this.fragmentMatcher=i},l.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},l.prototype.clientQuery=function(i){return it(["client"],i)&&this.resolvers?i:null},l.prototype.serverQuery=function(i){return _s(i)},l.prototype.prepareContext=function(i){var u=this.cache;return Ye(Ye({},i),{cache:u,getCacheKey:function(v){return u.identify(v)}})},l.prototype.addExportedVariables=function(i,u,v){return void 0===u&&(u={}),void 0===v&&(v={}),ze(this,void 0,void 0,function(){return Ke(this,function(y){return i?[2,this.resolveDocument(i,this.buildRootValueFromCache(i,u)||{},this.prepareContext(v),u).then(function(I){return Ye(Ye({},u),I.exportedVariables)})]:[2,Ye({},u)]})})},l.prototype.shouldForceResolvers=function(i){var u=!1;return Ut(i,{Directive:{enter:function(v){if("client"===v.name.value&&v.arguments&&(u=v.arguments.some(function(y){return"always"===y.name.value&&"BooleanValue"===y.value.kind&&!0===y.value.value})))return Zt}}}),u},l.prototype.buildRootValueFromCache=function(i,u){return this.cache.diff({query:vs(i),variables:u,returnPartialData:!0,optimistic:!1}).result},l.prototype.resolveDocument=function(i,u,v,y,I,H){return void 0===v&&(v={}),void 0===y&&(y={}),void 0===I&&(I=function(){return!0}),void 0===H&&(H=!1),ze(this,void 0,void 0,function(){var Ie,$e,Te,nt,gt,mt,Kt,an,mn,In;return Ke(this,function(Mn){return Ie=Yo(i),$e=Ri(i),Te=ot($e),nt=this.collectSelectionsToResolve(Ie,Te),mt=(gt=Ie.operation)?gt.charAt(0).toUpperCase()+gt.slice(1):"Query",an=(Kt=this).cache,mn=Kt.client,In={fragmentMap:Te,context:Ye(Ye({},v),{cache:an,client:mn}),variables:y,fragmentMatcher:I,defaultOperationType:mt,exportedVariables:{},selectionsToResolve:nt,onlyRunForcedResolvers:H},[2,this.resolveSelectionSet(Ie.selectionSet,!1,u,In).then(function(Cn){return{result:Cn,exportedVariables:In.exportedVariables}})]})})},l.prototype.resolveSelectionSet=function(i,u,v,y){return ze(this,void 0,void 0,function(){var I,H,Ie,$e,Te,nt=this;return Ke(this,function(gt){return I=y.fragmentMap,H=y.context,Ie=y.variables,$e=[v],Te=function(mt){return ze(nt,void 0,void 0,function(){var Kt;return Ke(this,function(mn){return(u||y.selectionsToResolve.has(mt))&&Ir(mt,Ie)?lo(mt)?[2,this.resolveField(mt,u,v,y).then(function(In){var en;typeof In<"u"&&$e.push(((en={})[Fo(mt)]=In,en))})]:(function Qo(l){return"InlineFragment"===l.kind}(mt)?Kt=mt:ye(Kt=I[mt.name.value],16,mt.name.value),Kt&&Kt.typeCondition&&y.fragmentMatcher(v,Kt.typeCondition.name.value,H)?[2,this.resolveSelectionSet(Kt.selectionSet,u,v,y).then(function(In){$e.push(In)})]:[2]):[2]})})},[2,Promise.all(i.selections.map(Te)).then(function(){return ut($e)})]})})},l.prototype.resolveField=function(i,u,v,y){return ze(this,void 0,void 0,function(){var I,H,Ie,$e,Te,nt,gt,mt,Kt,an=this;return Ke(this,function(mn){return v?(I=y.variables,H=i.name.value,Ie=Fo(i),$e=H!==Ie,Te=v[Ie]||v[H],nt=Promise.resolve(Te),(!y.onlyRunForcedResolvers||this.shouldForceResolvers(i))&&(gt=v.__typename||y.defaultOperationType,(mt=this.resolvers&&this.resolvers[gt])&&(Kt=mt[$e?H:Ie])&&(nt=Promise.resolve(Ks.withValue(this.cache,Kt,[v,as(i,I),y.context,{field:i,fragmentMap:y.fragmentMap}])))),[2,nt.then(function(In){var en,Mn;if(void 0===In&&(In=Te),i.directives&&i.directives.forEach(function(Zn){"export"===Zn.name.value&&Zn.arguments&&Zn.arguments.forEach(function(er){"as"===er.name.value&&"StringValue"===er.value.kind&&(y.exportedVariables[er.value.value]=In)})}),!i.selectionSet||null==In)return In;var Cn=null!==(Mn=null===(en=i.directives)||void 0===en?void 0:en.some(function(Zn){return"client"===Zn.name.value}))&&void 0!==Mn&&Mn;return Array.isArray(In)?an.resolveSubSelectedArray(i,u||Cn,In,y):i.selectionSet?an.resolveSelectionSet(i.selectionSet,u||Cn,In,y):void 0})]):[2,null]})})},l.prototype.resolveSubSelectedArray=function(i,u,v,y){var I=this;return Promise.all(v.map(function(H){return null===H?null:Array.isArray(H)?I.resolveSubSelectedArray(i,u,H,y):i.selectionSet?I.resolveSelectionSet(i.selectionSet,u,H,y):void 0}))},l.prototype.collectSelectionsToResolve=function(i,u){var v=function(H){return!Array.isArray(H)},y=this.selectionsToResolveCache;return function I(H){if(!y.has(H)){var Ie=new Set;y.set(H,Ie),Ut(H,{Directive:function($e,Te,nt,gt,mt){"client"===$e.name.value&&mt.forEach(function(Kt){v(Kt)&&qr(Kt)&&Ie.add(Kt)})},FragmentSpread:function($e,Te,nt,gt,mt){var Kt=u[$e.name.value];ye(Kt,17,$e.name.value);var an=I(Kt);an.size>0&&(mt.forEach(function(mn){v(mn)&&qr(mn)&&Ie.add(mn)}),Ie.add($e),an.forEach(function(mn){Ie.add(mn)}))}})}return y.get(H)}(i)},l}(),Qa=new(Un?WeakMap:Map);function pc(l,i){var u=l[i];"function"==typeof u&&(l[i]=function(){return Qa.set(l,(Qa.get(l)+1)%1e15),u.apply(this,arguments)})}function Ya(l){l.notifyTimeout&&(clearTimeout(l.notifyTimeout),l.notifyTimeout=void 0)}var gc=function(){function l(i,u){void 0===u&&(u=i.generateQueryId()),this.queryId=u,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var v=this.cache=i.cache;Qa.has(v)||(Qa.set(v,0),pc(v,"evict"),pc(v,"modify"),pc(v,"reset"))}return l.prototype.init=function(i){var u=i.networkStatus||Ii.loading;return this.variables&&this.networkStatus!==Ii.loading&&!so(this.variables,i.variables)&&(u=Ii.setVariables),so(i.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:i.document,variables:i.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:u}),i.observableQuery&&this.setObservableQuery(i.observableQuery),i.lastRequestId&&(this.lastRequestId=i.lastRequestId),this},l.prototype.reset=function(){Ya(this),this.dirty=!1},l.prototype.getDiff=function(i){void 0===i&&(i=this.variables);var u=this.getDiffOptions(i);if(this.lastDiff&&so(u,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=i);var v=this.observableQuery;if(v&&"no-cache"===v.options.fetchPolicy)return{complete:!1};var y=this.cache.diff(u);return this.updateLastDiff(y,u),y},l.prototype.updateLastDiff=function(i,u){this.lastDiff=i?{diff:i,options:u||this.getDiffOptions()}:void 0},l.prototype.getDiffOptions=function(i){var u;return void 0===i&&(i=this.variables),{query:this.document,variables:i,returnPartialData:!0,optimistic:!0,canonizeResults:null===(u=this.observableQuery)||void 0===u?void 0:u.options.canonizeResults}},l.prototype.setDiff=function(i){var u=this,v=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(i),!this.dirty&&!so(v&&v.result,i&&i.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return u.notify()},0)))},l.prototype.setObservableQuery=function(i){var u=this;i!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=i,i?(i.queryInfo=this,this.listeners.add(this.oqListener=function(){u.getDiff().fromOptimisticTransaction?i.observe():vp(i)})):delete this.oqListener)},l.prototype.notify=function(){var i=this;Ya(this),this.shouldNotify()&&this.listeners.forEach(function(u){return u(i)}),this.dirty=!1},l.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(Sl(this.networkStatus)&&this.observableQuery){var i=this.observableQuery.options.fetchPolicy;if("cache-only"!==i&&"cache-and-network"!==i)return!1}return!0},l.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=l.prototype.cancel,this.subscriptions.forEach(function(u){return u.unsubscribe()});var i=this.observableQuery;i&&i.stopPolling()}},l.prototype.cancel=function(){},l.prototype.updateWatch=function(i){var u=this;void 0===i&&(i=this.variables);var v=this.observableQuery;if(!v||"no-cache"!==v.options.fetchPolicy){var y=Ye(Ye({},this.getDiffOptions(i)),{watcher:this,callback:function(I){return u.setDiff(I)}});(!this.lastWatch||!so(y,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=y))}},l.prototype.resetLastWrite=function(){this.lastWrite=void 0},l.prototype.shouldWrite=function(i,u){var v=this.lastWrite;return!(v&&v.dmCount===Qa.get(this.cache)&&so(u,v.variables)&&so(i.data,v.result.data))},l.prototype.markResult=function(i,u,v,y){var I=this,H=new j,Ie=Fi(i.errors)?i.errors.slice(0):[];if(this.reset(),"incremental"in i&&Fi(i.incremental)){var $e=us(this.getDiff().result,i);i.data=$e}else if("hasNext"in i&&i.hasNext){var Te=this.getDiff();i.data=H.merge(Te.result,i.data)}this.graphQLErrors=Ie,"no-cache"===v.fetchPolicy?this.updateLastDiff({result:i.data,complete:!0},this.getDiffOptions(v.variables)):0!==y&&(du(i,v.errorPolicy)?this.cache.performTransaction(function(nt){if(I.shouldWrite(i,v.variables))nt.writeQuery({query:u,data:i.data,variables:v.variables,overwrite:1===y}),I.lastWrite={result:i,variables:v.variables,dmCount:Qa.get(I.cache)};else if(I.lastDiff&&I.lastDiff.diff.complete)return void(i.data=I.lastDiff.diff.result);var gt=I.getDiffOptions(v.variables),mt=nt.diff(gt);I.stopped||I.updateWatch(v.variables),I.updateLastDiff(mt,gt),mt.complete&&(i.data=mt.result)}):this.lastWrite=void 0)},l.prototype.markReady=function(){return this.networkError=null,this.networkStatus=Ii.ready},l.prototype.markError=function(i){return this.networkStatus=Ii.error,this.lastWrite=void 0,this.reset(),i.graphQLErrors&&(this.graphQLErrors=i.graphQLErrors),i.networkError&&(this.networkError=i.networkError),i},l}();function du(l,i){void 0===i&&(i="none");var u="ignore"===i||"all"===i,v=!Eo(l);return!v&&u&&l.data&&(v=!0),v}var Xa=Object.prototype.hasOwnProperty,Jd=function(){function l(i){var u=i.cache,v=i.link,y=i.defaultOptions,I=i.documentTransform,H=i.queryDeduplication,Ie=void 0!==H&&H,$e=i.onBroadcast,Te=i.ssrMode,nt=void 0!==Te&&Te,gt=i.clientAwareness,mt=void 0===gt?{}:gt,Kt=i.localState,an=i.assumeImmutableResults,mn=void 0===an?!!u.assumeImmutableResults:an,In=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(Un?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map;var en=new bs(function(Mn){return In.cache.transformDocument(Mn)},{cache:!1});this.cache=u,this.link=v,this.defaultOptions=y||Object.create(null),this.queryDeduplication=Ie,this.clientAwareness=mt,this.localState=Kt||new yp({cache:u}),this.ssrMode=nt,this.assumeImmutableResults=mn,this.documentTransform=I?en.concat(I).concat(en):en,(this.onBroadcast=$e)&&(this.mutationStore=Object.create(null))}return l.prototype.stop=function(){var i=this;this.queries.forEach(function(u,v){i.stopQueryNoBroadcast(v)}),this.cancelPendingFetches(Ee(23))},l.prototype.cancelPendingFetches=function(i){this.fetchCancelFns.forEach(function(u){return u(i)}),this.fetchCancelFns.clear()},l.prototype.mutate=function(i){var u,v,y=i.mutation,I=i.variables,H=i.optimisticResponse,Ie=i.updateQueries,$e=i.refetchQueries,Te=void 0===$e?[]:$e,nt=i.awaitRefetchQueries,gt=void 0!==nt&&nt,mt=i.update,Kt=i.onQueryUpdated,an=i.fetchPolicy,mn=void 0===an?(null===(u=this.defaultOptions.mutate)||void 0===u?void 0:u.fetchPolicy)||"network-only":an,In=i.errorPolicy,en=void 0===In?(null===(v=this.defaultOptions.mutate)||void 0===v?void 0:v.errorPolicy)||"none":In,Mn=i.keepRootFields,Cn=i.context;return ze(this,void 0,void 0,function(){var Zn,er,Xn,kr;return Ke(this,function($r){switch($r.label){case 0:return ye(y,24),ye("network-only"===mn||"no-cache"===mn,25),Zn=this.generateMutationId(),y=this.cache.transformForLink(this.transform(y)),er=this.getDocumentInfo(y).hasClientExports,I=this.getVariables(y,I),er?[4,this.localState.addExportedVariables(y,I,Cn)]:[3,2];case 1:I=$r.sent(),$r.label=2;case 2:return Xn=this.mutationStore&&(this.mutationStore[Zn]={mutation:y,variables:I,loading:!0,error:null}),H&&this.markMutationOptimistic(H,{mutationId:Zn,document:y,variables:I,fetchPolicy:mn,errorPolicy:en,context:Cn,updateQueries:Ie,update:mt,keepRootFields:Mn}),this.broadcastQueries(),kr=this,[2,new Promise(function(xi,Di){return bi(kr.getObservableFromLink(y,Ye(Ye({},Cn),{optimisticResponse:H}),I,!1),function(Xi){if(Eo(Xi)&&"none"===en)throw new gi({graphQLErrors:Us(Xi)});Xn&&(Xn.loading=!1,Xn.error=null);var ts=Ye({},Xi);return"function"==typeof Te&&(Te=Te(ts)),"ignore"===en&&Eo(ts)&&delete ts.errors,kr.markMutationResult({mutationId:Zn,result:ts,document:y,variables:I,fetchPolicy:mn,errorPolicy:en,context:Cn,update:mt,updateQueries:Ie,awaitRefetchQueries:gt,refetchQueries:Te,removeOptimistic:H?Zn:void 0,onQueryUpdated:Kt,keepRootFields:Mn})}).subscribe({next:function(Xi){kr.broadcastQueries(),(!("hasNext"in Xi)||!1===Xi.hasNext)&&xi(Xi)},error:function(Xi){Xn&&(Xn.loading=!1,Xn.error=Xi),H&&kr.cache.removeOptimistic(Zn),kr.broadcastQueries(),Di(Xi instanceof gi?Xi:new gi({networkError:Xi}))}})})]}})})},l.prototype.markMutationResult=function(i,u){var v=this;void 0===u&&(u=this.cache);var y=i.result,I=[],H="no-cache"===i.fetchPolicy;if(!H&&du(y,i.errorPolicy)){if(si(y)||I.push({result:y.data,dataId:"ROOT_MUTATION",query:i.document,variables:i.variables}),si(y)&&Fi(y.incremental)){var Ie=u.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(i.document).asQuery,variables:i.variables,optimistic:!1,returnPartialData:!0}),$e=void 0;Ie.result&&($e=us(Ie.result,y)),typeof $e<"u"&&(y.data=$e,I.push({result:$e,dataId:"ROOT_MUTATION",query:i.document,variables:i.variables}))}var Te=i.updateQueries;Te&&this.queries.forEach(function(gt,mt){var Kt=gt.observableQuery,an=Kt&&Kt.queryName;if(an&&Xa.call(Te,an)){var mn=Te[an],In=v.queries.get(mt),en=In.document,Mn=In.variables,Cn=u.diff({query:en,variables:Mn,returnPartialData:!0,optimistic:!1}),Zn=Cn.result;if(Cn.complete&&Zn){var Xn=mn(Zn,{mutationResult:y,queryName:en&&ls(en)||void 0,queryVariables:Mn});Xn&&I.push({result:Xn,dataId:"ROOT_QUERY",query:en,variables:Mn})}}})}if(I.length>0||i.refetchQueries||i.update||i.onQueryUpdated||i.removeOptimistic){var nt=[];if(this.refetchQueries({updateCache:function(gt){H||I.forEach(function(mn){return gt.write(mn)});var mt=i.update,Kt=!function pl(l){return si(l)||function Ds(l){return"hasNext"in l&&"data"in l}(l)}(y)||si(y)&&!y.hasNext;if(mt){if(!H){var an=gt.diff({id:"ROOT_MUTATION",query:v.getDocumentInfo(i.document).asQuery,variables:i.variables,optimistic:!1,returnPartialData:!0});an.complete&&("incremental"in(y=Ye(Ye({},y),{data:an.result}))&&delete y.incremental,"hasNext"in y&&delete y.hasNext)}Kt&&mt(gt,y,{context:i.context,variables:i.variables})}!H&&!i.keepRootFields&&Kt&&gt.modify({id:"ROOT_MUTATION",fields:function(mn,In){return"__typename"===In.fieldName?mn:In.DELETE}})},include:i.refetchQueries,optimistic:!1,removeOptimistic:i.removeOptimistic,onQueryUpdated:i.onQueryUpdated||null}).forEach(function(gt){return nt.push(gt)}),i.awaitRefetchQueries||i.onQueryUpdated)return Promise.all(nt).then(function(){return y})}return Promise.resolve(y)},l.prototype.markMutationOptimistic=function(i,u){var v=this,y="function"==typeof i?i(u.variables):i;return this.cache.recordOptimisticTransaction(function(I){try{v.markMutationResult(Ye(Ye({},u),{result:{data:y}}),I)}catch(H){}},u.mutationId)},l.prototype.fetchQuery=function(i,u,v){return this.fetchConcastWithInfo(i,u,v).concast.promise},l.prototype.getQueryStore=function(){var i=Object.create(null);return this.queries.forEach(function(u,v){i[v]={variables:u.variables,networkStatus:u.networkStatus,networkError:u.networkError,graphQLErrors:u.graphQLErrors}}),i},l.prototype.resetErrors=function(i){var u=this.queries.get(i);u&&(u.networkError=void 0,u.graphQLErrors=[])},l.prototype.transform=function(i){return this.documentTransform.transformDocument(i)},l.prototype.getDocumentInfo=function(i){var u=this.transformCache;if(!u.has(i)){var v={hasClientExports:Bt(i),hasForcedResolvers:this.localState.shouldForceResolvers(i),hasNonreactiveDirective:it(["nonreactive"],i),clientQuery:this.localState.clientQuery(i),serverQuery:yo([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],i),defaultVars:ms(_o(i)),asQuery:Ye(Ye({},i),{definitions:i.definitions.map(function(y){return"OperationDefinition"===y.kind&&"query"!==y.operation?Ye(Ye({},y),{operation:"query"}):y})})};u.set(i,v)}return u.get(i)},l.prototype.getVariables=function(i,u){return Ye(Ye({},this.getDocumentInfo(i).defaultVars),u)},l.prototype.watchQuery=function(i){var u=this.transform(i.query);typeof(i=Ye(Ye({},i),{variables:this.getVariables(u,i.variables)})).notifyOnNetworkStatusChange>"u"&&(i.notifyOnNetworkStatusChange=!1);var v=new gc(this),y=new Zd({queryManager:this,queryInfo:v,options:i});return y.lastQuery=u,this.queries.set(y.queryId,v),v.init({document:u,observableQuery:y,variables:y.variables}),y},l.prototype.query=function(i,u){var v=this;return void 0===u&&(u=this.generateQueryId()),ye(i.query,26),ye("Document"===i.query.kind,27),ye(!i.returnPartialData,28),ye(!i.pollInterval,29),this.fetchQuery(u,Ye(Ye({},i),{query:this.transform(i.query)})).finally(function(){return v.stopQuery(u)})},l.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},l.prototype.generateRequestId=function(){return this.requestIdCounter++},l.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},l.prototype.stopQueryInStore=function(i){this.stopQueryInStoreNoBroadcast(i),this.broadcastQueries()},l.prototype.stopQueryInStoreNoBroadcast=function(i){var u=this.queries.get(i);u&&u.stop()},l.prototype.clearStore=function(i){return void 0===i&&(i={discardWatches:!0}),this.cancelPendingFetches(Ee(30)),this.queries.forEach(function(u){u.observableQuery?u.networkStatus=Ii.loading:u.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(i)},l.prototype.getObservableQueries=function(i){var u=this;void 0===i&&(i="active");var v=new Map,y=new Map,I=new Set;return Array.isArray(i)&&i.forEach(function(H){"string"==typeof H?y.set(H,!1):function xn(l){return me(l)&&"Document"===l.kind&&Array.isArray(l.definitions)}(H)?y.set(u.transform(H),!1):me(H)&&H.query&&I.add(H)}),this.queries.forEach(function(H,Ie){var $e=H.observableQuery,Te=H.document;if($e){if("all"===i)return void v.set(Ie,$e);var nt=$e.queryName;if("standby"===$e.options.fetchPolicy||"active"===i&&!$e.hasObservers())return;("active"===i||nt&&y.has(nt)||Te&&y.has(Te))&&(v.set(Ie,$e),nt&&y.set(nt,!0),Te&&y.set(Te,!0))}}),I.size&&I.forEach(function(H){var Ie=lt("legacyOneTimeQuery"),$e=u.getQuery(Ie).init({document:H.query,variables:H.variables}),Te=new Zd({queryManager:u,queryInfo:$e,options:Ye(Ye({},H),{fetchPolicy:"network-only"})});ye(Te.queryId===Ie),$e.setObservableQuery(Te),v.set(Ie,Te)}),v},l.prototype.reFetchObservableQueries=function(i){var u=this;void 0===i&&(i=!1);var v=[];return this.getObservableQueries(i?"all":"active").forEach(function(y,I){var H=y.options.fetchPolicy;y.resetLastResults(),(i||"standby"!==H&&"cache-only"!==H)&&v.push(y.refetch()),u.getQuery(I).setDiff(null)}),this.broadcastQueries(),Promise.all(v)},l.prototype.setObservableQuery=function(i){this.getQuery(i.queryId).setObservableQuery(i)},l.prototype.startGraphQLSubscription=function(i){var u=this,v=i.query,y=i.fetchPolicy,I=i.errorPolicy,H=i.variables,Ie=i.context,$e=void 0===Ie?{}:Ie;v=this.transform(v),H=this.getVariables(v,H);var Te=function(gt){return u.getObservableFromLink(v,$e,gt).map(function(mt){"no-cache"!==y&&(du(mt,I)&&u.cache.write({query:v,result:mt.data,dataId:"ROOT_SUBSCRIPTION",variables:gt}),u.broadcastQueries());var Kt=Eo(mt),an=function Pr(l){return!!l.extensions&&Array.isArray(l.extensions[Or])}(mt);if(Kt||an){var mn={};throw Kt&&(mn.graphQLErrors=mt.errors),an&&(mn.protocolErrors=mt.extensions[Or]),new gi(mn)}return mt})};if(this.getDocumentInfo(v).hasClientExports){var nt=this.localState.addExportedVariables(v,H,$e).then(Te);return new Ur(function(gt){var mt=null;return nt.then(function(Kt){return mt=Kt.subscribe(gt)},gt.error),function(){return mt&&mt.unsubscribe()}})}return Te(H)},l.prototype.stopQuery=function(i){this.stopQueryNoBroadcast(i),this.broadcastQueries()},l.prototype.stopQueryNoBroadcast=function(i){this.stopQueryInStoreNoBroadcast(i),this.removeQuery(i)},l.prototype.removeQuery=function(i){this.fetchCancelFns.delete(i),this.queries.has(i)&&(this.getQuery(i).stop(),this.queries.delete(i))},l.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(i){return i.notify()})},l.prototype.getLocalState=function(){return this.localState},l.prototype.getObservableFromLink=function(i,u,v,y){var I,Ie,H=this;void 0===y&&(y=null!==(Ie=null===(I=u)||void 0===I?void 0:I.queryDeduplication)&&void 0!==Ie?Ie:this.queryDeduplication);var $e,Te=this.getDocumentInfo(i),nt=Te.serverQuery,gt=Te.clientQuery;if(nt){var Kt=this.inFlightLinkObservables,an=this.link,mn={query:nt,variables:v,operationName:ls(nt)||void 0,context:this.prepareContext(Ye(Ye({},u),{forceFetch:!y}))};if(u=mn.context,y){var In=Ys(nt),en=Kt.get(In)||new Map;Kt.set(In,en);var Mn=El(v);if(!($e=en.get(Mn))){var Cn=new fo([jo(an,mn)]);en.set(Mn,$e=Cn),Cn.beforeNext(function(){en.delete(Mn)&&en.size<1&&Kt.delete(In)})}}else $e=new fo([jo(an,mn)])}else $e=new fo([Ur.of({data:{}})]),u=this.prepareContext(u);return gt&&($e=bi($e,function(Zn){return H.localState.runResolvers({document:gt,remoteResult:Zn,context:u,variables:v})})),$e},l.prototype.getResultsFromLink=function(i,u,v){var y=i.lastRequestId=this.generateRequestId(),I=this.cache.transformForLink(v.query);return bi(this.getObservableFromLink(I,v.context,v.variables),function(H){var Ie=Us(H),$e=Ie.length>0;if(y>=i.lastRequestId){if($e&&"none"===v.errorPolicy)throw i.markError(new gi({graphQLErrors:Ie}));i.markResult(H,I,v,u),i.markReady()}var Te={data:H.data,loading:!1,networkStatus:Ii.ready};return $e&&"ignore"!==v.errorPolicy&&(Te.errors=Ie,Te.networkStatus=Ii.error),Te},function(H){var Ie=function jr(l){return l.hasOwnProperty("graphQLErrors")}(H)?H:new gi({networkError:H});throw y>=i.lastRequestId&&i.markError(Ie),Ie})},l.prototype.fetchConcastWithInfo=function(i,u,v){var y=this;void 0===v&&(v=Ii.loading);var Xn,kr,I=u.query,H=this.getVariables(I,u.variables),Ie=this.getQuery(i),$e=this.defaultOptions.watchQuery,Te=u.fetchPolicy,gt=u.errorPolicy,Kt=u.returnPartialData,mn=u.notifyOnNetworkStatusChange,en=u.context,Cn=Object.assign({},u,{query:I,variables:H,fetchPolicy:void 0===Te?$e&&$e.fetchPolicy||"cache-first":Te,errorPolicy:void 0===gt?$e&&$e.errorPolicy||"none":gt,returnPartialData:void 0!==Kt&&Kt,notifyOnNetworkStatusChange:void 0!==mn&&mn,context:void 0===en?{}:en}),Zn=function(xi){Cn.variables=xi;var Di=y.fetchQueryByPolicy(Ie,Cn,v);return"standby"!==Cn.fetchPolicy&&Di.sources.length>0&&Ie.observableQuery&&Ie.observableQuery.applyNextFetchPolicy("after-fetch",u),Di},er=function(){return y.fetchCancelFns.delete(i)};if(this.fetchCancelFns.set(i,function(xi){er(),setTimeout(function(){return Xn.cancel(xi)})}),this.getDocumentInfo(Cn.query).hasClientExports)Xn=new fo(this.localState.addExportedVariables(Cn.query,Cn.variables,Cn.context).then(Zn).then(function(xi){return xi.sources})),kr=!0;else{var $r=Zn(Cn.variables);kr=$r.fromLink,Xn=new fo($r.sources)}return Xn.promise.then(er,er),{concast:Xn,fromLink:kr}},l.prototype.refetchQueries=function(i){var u=this,v=i.updateCache,y=i.include,I=i.optimistic,H=void 0!==I&&I,Ie=i.removeOptimistic,$e=void 0===Ie?H?lt("refetchQueries"):void 0:Ie,Te=i.onQueryUpdated,nt=new Map;y&&this.getObservableQueries(y).forEach(function(mt,Kt){nt.set(Kt,{oq:mt,lastDiff:u.getQuery(Kt).getDiff()})});var gt=new Map;return v&&this.cache.batch({update:v,optimistic:H&&$e||!1,removeOptimistic:$e,onWatchUpdated:function(mt,Kt,an){var mn=mt.watcher instanceof gc&&mt.watcher.observableQuery;if(mn){if(Te){nt.delete(mn.queryId);var In=Te(mn,Kt,an);return!0===In&&(In=mn.refetch()),!1!==In&&gt.set(mn,In),In}null!==Te&&nt.set(mn.queryId,{oq:mn,lastDiff:an,diff:Kt})}}}),nt.size&&nt.forEach(function(mt,Kt){var en,an=mt.oq,mn=mt.lastDiff,In=mt.diff;if(Te){if(!In){var Mn=an.queryInfo;Mn.reset(),In=Mn.getDiff()}en=Te(an,In,mn)}(!Te||!0===en)&&(en=an.refetch()),!1!==en&&gt.set(an,en),Kt.indexOf("legacyOneTimeQuery")>=0&&u.stopQueryNoBroadcast(Kt)}),$e&&this.cache.removeOptimistic($e),gt},l.prototype.fetchQueryByPolicy=function(i,u,v){var y=this,I=u.query,H=u.variables,Ie=u.fetchPolicy,$e=u.refetchWritePolicy,Te=u.errorPolicy,nt=u.returnPartialData,gt=u.context,mt=u.notifyOnNetworkStatusChange,Kt=i.networkStatus;i.init({document:I,variables:H,networkStatus:v});var an=function(){return i.getDiff(H)},mn=function(Zn,er){void 0===er&&(er=i.networkStatus||Ii.loading);var Xn=Zn.result,kr=function($r){return Ur.of(Ye({data:$r,loading:Sl(er),networkStatus:er},Zn.complete?null:{partial:!0}))};return Xn&&y.getDocumentInfo(I).hasForcedResolvers?y.localState.runResolvers({document:I,remoteResult:{data:Xn},context:gt,variables:H,onlyRunForcedResolvers:!0}).then(function($r){return kr($r.data||void 0)}):"none"===Te&&er===Ii.refetch&&Array.isArray(Zn.missing)?kr(void 0):kr(Xn)},In="no-cache"===Ie?0:v===Ii.refetch&&"merge"!==$e?1:2,en=function(){return y.getResultsFromLink(i,In,{query:I,variables:H,context:gt,fetchPolicy:Ie,errorPolicy:Te})},Mn=mt&&"number"==typeof Kt&&Kt!==v&&Sl(v);switch(Ie){default:case"cache-first":return(Cn=an()).complete?{fromLink:!1,sources:[mn(Cn,i.markReady())]}:nt||Mn?{fromLink:!0,sources:[mn(Cn),en()]}:{fromLink:!0,sources:[en()]};case"cache-and-network":var Cn;return(Cn=an()).complete||nt||Mn?{fromLink:!0,sources:[mn(Cn),en()]}:{fromLink:!0,sources:[en()]};case"cache-only":return{fromLink:!1,sources:[mn(an(),i.markReady())]};case"network-only":return Mn?{fromLink:!0,sources:[mn(an()),en()]}:{fromLink:!0,sources:[en()]};case"no-cache":return Mn?{fromLink:!0,sources:[mn(i.getDiff()),en()]}:{fromLink:!0,sources:[en()]};case"standby":return{fromLink:!1,sources:[]}}},l.prototype.getQuery=function(i){return i&&!this.queries.has(i)&&this.queries.set(i,new gc(this,i)),this.queries.get(i)},l.prototype.prepareContext=function(i){void 0===i&&(i={});var u=this.localState.prepareContext(i);return Ye(Ye({},u),{clientAwareness:this.clientAwareness})},l}(),Ep=function(){function l(i){var u=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!i.cache)throw Ee(13);var v=i.uri,H=i.cache,Ie=i.documentTransform,$e=i.ssrMode,Te=void 0!==$e&&$e,nt=i.ssrForceFetchDelay,gt=void 0===nt?0:nt,mt=i.connectToDevTools,Kt=void 0===mt?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1:mt,an=i.queryDeduplication,mn=void 0===an||an,In=i.defaultOptions,en=i.assumeImmutableResults,Mn=void 0===en?H.assumeImmutableResults:en,Cn=i.resolvers,Zn=i.typeDefs,er=i.fragmentMatcher,Xn=i.name,kr=i.version,$r=i.link;$r||($r=v?new tu({uri:v,credentials:i.credentials,headers:i.headers}):Br.empty()),this.link=$r,this.cache=H,this.disableNetworkFetches=Te||gt>0,this.queryDeduplication=mn,this.defaultOptions=In||Object.create(null),this.typeDefs=Zn,gt&&setTimeout(function(){return u.disableNetworkFetches=!1},gt),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),Kt&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),this.version=Tt,this.localState=new yp({cache:H,client:this,resolvers:Cn,fragmentMatcher:er}),this.queryManager=new Jd({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,documentTransform:Ie,queryDeduplication:mn,ssrMode:Te,clientAwareness:{name:Xn,version:kr},localState:this.localState,assumeImmutableResults:Mn,onBroadcast:Kt?function(){u.devToolsHookCb&&u.devToolsHookCb({action:{},state:{queries:u.queryManager.getQueryStore(),mutations:u.queryManager.mutationStore||{}},dataWithOptimisticResults:u.cache.extract(!0)})}:void 0})}return Object.defineProperty(l.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),l.prototype.stop=function(){this.queryManager.stop()},l.prototype.watchQuery=function(i){return this.defaultOptions.watchQuery&&(i=la(this.defaultOptions.watchQuery,i)),this.disableNetworkFetches&&("network-only"===i.fetchPolicy||"cache-and-network"===i.fetchPolicy)&&(i=Ye(Ye({},i),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(i)},l.prototype.query=function(i){return this.defaultOptions.query&&(i=la(this.defaultOptions.query,i)),ye("cache-and-network"!==i.fetchPolicy,14),this.disableNetworkFetches&&"network-only"===i.fetchPolicy&&(i=Ye(Ye({},i),{fetchPolicy:"cache-first"})),this.queryManager.query(i)},l.prototype.mutate=function(i){return this.defaultOptions.mutate&&(i=la(this.defaultOptions.mutate,i)),this.queryManager.mutate(i)},l.prototype.subscribe=function(i){return this.queryManager.startGraphQLSubscription(i)},l.prototype.readQuery=function(i,u){return void 0===u&&(u=!1),this.cache.readQuery(i,u)},l.prototype.readFragment=function(i,u){return void 0===u&&(u=!1),this.cache.readFragment(i,u)},l.prototype.writeQuery=function(i){var u=this.cache.writeQuery(i);return!1!==i.broadcast&&this.queryManager.broadcastQueries(),u},l.prototype.writeFragment=function(i){var u=this.cache.writeFragment(i);return!1!==i.broadcast&&this.queryManager.broadcastQueries(),u},l.prototype.__actionHookForDevTools=function(i){this.devToolsHookCb=i},l.prototype.__requestRaw=function(i){return jo(this.link,i)},l.prototype.resetStore=function(){var i=this;return Promise.resolve().then(function(){return i.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(i.resetStoreCallbacks.map(function(u){return u()}))}).then(function(){return i.reFetchObservableQueries()})},l.prototype.clearStore=function(){var i=this;return Promise.resolve().then(function(){return i.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(i.clearStoreCallbacks.map(function(u){return u()}))})},l.prototype.onResetStore=function(i){var u=this;return this.resetStoreCallbacks.push(i),function(){u.resetStoreCallbacks=u.resetStoreCallbacks.filter(function(v){return v!==i})}},l.prototype.onClearStore=function(i){var u=this;return this.clearStoreCallbacks.push(i),function(){u.clearStoreCallbacks=u.clearStoreCallbacks.filter(function(v){return v!==i})}},l.prototype.reFetchObservableQueries=function(i){return this.queryManager.reFetchObservableQueries(i)},l.prototype.refetchQueries=function(i){var u=this.queryManager.refetchQueries(i),v=[],y=[];u.forEach(function(H,Ie){v.push(Ie),y.push(H)});var I=Promise.all(y);return I.queries=v,I.results=y,I.catch(function(H){}),I},l.prototype.getObservableQueries=function(i){return void 0===i&&(i="active"),this.queryManager.getObservableQueries(i)},l.prototype.extract=function(i){return this.cache.extract(i)},l.prototype.restore=function(i){return this.cache.restore(i)},l.prototype.addResolvers=function(i){this.localState.addResolvers(i)},l.prototype.setResolvers=function(i){this.localState.setResolvers(i)},l.prototype.getResolvers=function(){return this.localState.getResolvers()},l.prototype.setLocalStateFragmentMatcher=function(i){this.localState.setFragmentMatcher(i)},l.prototype.setLink=function(i){this.link=this.queryManager.link=i},l}(),Ma=new Map,qd=new Map,mc=!0,Za=!1;function Zm(l){return l.replace(/[\s,]+/g," ").trim()}function Zs(l){var i=Zm(l);if(!Ma.has(i)){var u=function ki(l,i){return new hi(l,i).parseDocument()}(l,{experimentalFragmentVariables:Za,allowLegacyFragmentVariables:Za});if(!u||"Document"!==u.kind)throw new Error("Not a valid GraphQL document.");Ma.set(i,function Jm(l){var i=new Set(l.definitions);i.forEach(function(v){v.loc&&delete v.loc,Object.keys(v).forEach(function(y){var I=v[y];I&&"object"==typeof I&&i.add(I)})});var u=l.loc;return u&&(delete u.startToken,delete u.endToken),l}(function Cp(l){var i=new Set,u=[];return l.definitions.forEach(function(v){if("FragmentDefinition"===v.kind){var y=v.name.value,I=function Ap(l){return Zm(l.source.body.substring(l.start,l.end))}(v.loc),H=qd.get(y);H&&!H.has(I)?mc&&console.warn("Warning: fragment with name "+y+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):H||qd.set(y,H=new Set),H.add(I),i.has(I)||(i.add(I),u.push(v))}else u.push(v)}),Ye(Ye({},l),{definitions:u})}(u)))}return Ma.get(i)}function li(l){for(var i=[],u=1;u<arguments.length;u++)i[u-1]=arguments[u];"string"==typeof l&&(l=[l]);var v=l[0];return i.forEach(function(y,I){v+=y&&"Document"===y.kind?y.loc.source.body:y,v+=l[I+1]}),Zs(v)}var Ja_gql=li,Ja_resetCaches=function vc(){Ma.clear(),qd.clear()},Ja_disableFragmentWarnings=function ef(){mc=!1},Ja_enableExperimentalFragmentVariables=function bp(){Za=!0},Ja_disableExperimentalFragmentVariables=function _c(){Za=!1};(function(l){l.gql=Ja_gql,l.resetCaches=Ja_resetCaches,l.disableFragmentWarnings=Ja_disableFragmentWarnings,l.enableExperimentalFragmentVariables=Ja_enableExperimentalFragmentVariables,l.disableExperimentalFragmentVariables=Ja_disableExperimentalFragmentVariables})(li||(li={})),li.default=li;var wi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},xr={},tf={},nf={};Object.defineProperty(nf,"__esModule",{value:!0});var Sp,hu={};Object.defineProperty(hu,"__esModule",{value:!0}),hu.APP_STATE_TYPE=void 0,function(l){l.STARTED="STARTED",l.RESUMED="RESUMED",l.PAUSED="PAUSED",l.STOPPED="STOPPED"}(Sp||(hu.APP_STATE_TYPE=Sp={}));var pu={};Object.defineProperty(pu,"__esModule",{value:!0});var Ip,rf,Ms={};Object.defineProperty(Ms,"__esModule",{value:!0}),Ms.CONNECTION_TYPE=Ms.CONNECTION_STATE=void 0,function(l){l.ONLINE="ONLINE",l.OFFLINE="OFFLINE"}(Ip||(Ms.CONNECTION_STATE=Ip={})),function(l){l.TYPE_3G="TYPE_3G",l.TYPE_WLAN="TYPE_WLAN"}(rf||(Ms.CONNECTION_TYPE=rf={}));var ga,wa,qa={};Object.defineProperty(qa,"__esModule",{value:!0}),qa.DisplayMode=qa.DISPLAY_MODE=void 0,function(l){l.EMBEDDED="embedded",l.MODAL="modal"}(ga||(qa.DISPLAY_MODE=ga={})),function(l){l.EMBEDDED="EMBEDDED",l.MODAL="MODAL"}(wa||(qa.DisplayMode=wa={}));var Tp,zi={};Object.defineProperty(zi,"__esModule",{value:!0}),zi.ENTITLEMENT_MODE=void 0,function(l){l.ENTITLEMENT="entitlement",l.OAUTH="oauth",l.NONE="none"}(Tp||(zi.ENTITLEMENT_MODE=Tp={}));var sf={};Object.defineProperty(sf,"__esModule",{value:!0});var yc={};Object.defineProperty(yc,"__esModule",{value:!0});var af,Ec={};Object.defineProperty(Ec,"__esModule",{value:!0}),Ec.ISSUE_STATE=void 0,function(l){l.PURCHASABLE="PURCHASABLE",l.DOWNLOAD_PAUSED="DOWNLOAD_PAUSED",l.DOWNLOADING="DOWNLOADING",l.AVAILABLE="AVAILABLE",l.INSTALLING="INSTALLING",l.UPDATE="UPDATE",l.INSTALLED="INSTALLED",l.LOCKED="LOCKED",l.COMING_SOON="COMING_SOON",l.INDEXING="INDEXING",l.PARTIALLY_INSTALLED_DOWNLOADING="PARTIALLY_INSTALLED_DOWNLOADING",l.PARTIALLY_INSTALLED_PAUSED="PARTIALLY_INSTALLED_PAUSED"}(af||(Ec.ISSUE_STATE=af={}));var gu={};Object.defineProperty(gu,"__esModule",{value:!0});var lf,Ac={};Object.defineProperty(Ac,"__esModule",{value:!0}),Ac.MEDIA_PLAYBACK_STATE=void 0,function(l){l.NONE="NONE",l.ERROR="ERROR",l.LOADING="LOADING",l.READY="READY",l.PLAYING="PLAYING"}(lf||(Ac.MEDIA_PLAYBACK_STATE=lf={}));var mu,Tl={};Object.defineProperty(Tl,"__esModule",{value:!0}),Tl.Platform=void 0,function(l){l.ANDROID="android",l.IOS="ios"}(mu||(Tl.Platform=mu={}));var Dp,vu={};Object.defineProperty(vu,"__esModule",{value:!0}),vu.PUBLICATION_TYPE=void 0,function(l){l.KIOSK="KIOSK",l.CHANNEL="CHANNEL"}(Dp||(vu.PUBLICATION_TYPE=Dp={}));var Op={};Object.defineProperty(Op,"__esModule",{value:!0});var Pp={};Object.defineProperty(Pp,"__esModule",{value:!0});var uf={};Object.defineProperty(uf,"__esModule",{value:!0});var Mp={};Object.defineProperty(Mp,"__esModule",{value:!0});var wp,Rp,el={};Object.defineProperty(el,"__esModule",{value:!0}),el.OpenFileMode=el.OpenFileTarget=void 0,function(l){l.INTERNAL="INTERNAL",l.EXTERNAL="EXTERNAL"}(wp||(el.OpenFileTarget=wp={})),function(l){l.MODAL="MODAL",l.EMBEDDED="EMBEDDED"}(Rp||(el.OpenFileMode=Rp={}));var qm={};Object.defineProperty(qm,"__esModule",{value:!0});var cf,_u={};Object.defineProperty(_u,"__esModule",{value:!0}),_u.METADATA_KEY=void 0,function(l){l.APP_ID="app_id",l.APP_VERSION="app_version",l.BUNDLE_ID="bundle_id",l.DEEPLINK_SCHEME="deeplink_scheme",l.PREVIEW_APP="preview_app",l.DEVICE_ID="device_id",l.DEVICE_MODEL="device_model",l.DEVICE_OS="device_os",l.PLATFORM="platform",l.LOCALE="locale",l.MANAGER_BASE_URL="manager_base_url",l.PUSH_REGISTRATION_TOKEN="push_registration_token",l.ENTITLEMENT_LOGIN="entitlement_login",l.ENTITLEMENT_TOKEN="entitlement_token",l.ENTITLEMENT_FORCED_LOGIN_ENABLED="entitlement_forced_login_enabled",l.ENTITLEMENT_LOGIN_MODE="entitlement_login_mode",l.ENTITLEMENT_MODE="entitlement_mode",l.ISSUE_ID="issue_id",l.ISSUE_NAME="issue_name",l.PUBLICATION_ID="publication_id",l.PUBLICATION_NAME="publication_name",l.PAGE_ID="page_id",l.PAGE_ALIAS="page_alias",l.PAGE_TITLE="page_title",l.PAGE_INDEX="page_index",l.PAGE_FILENAME="page_filename",l.PURPLE_VERSION="purple_version",l.ONBOARDING_MODE="onboarding_mode"}(cf||(_u.METADATA_KEY=cf={}));var Ji={};Object.defineProperty(Ji,"__esModule",{value:!0});var ev={};Object.defineProperty(ev,"__esModule",{value:!0});var tv,Cc={};Object.defineProperty(Cc,"__esModule",{value:!0}),Cc.SUBSCRIPTION_STATE=void 0,function(l){l.NONE="NONE",l.PURCHASING="PURCHASING",l.VALIDATING="VALIDATING",l.PURCHASED="PURCHASED"}(tv||(Cc.SUBSCRIPTION_STATE=tv={}));var df={};Object.defineProperty(df,"__esModule",{value:!0});var ff,Np,hs={};Object.defineProperty(hs,"__esModule",{value:!0}),hs.UPDATE_STOREFRONT_ERROR_CODE=hs.UPDATE_STOREFRONT_TYPE=void 0,function(l){l.PARTIAL="PARTIAL",l.FULL="FULL",l.LOGIN="LOGIN",l.LOGOUT="LOGOUT"}(ff||(hs.UPDATE_STOREFRONT_TYPE=ff={})),function(l){l.OFFLINE="OFFLINE",l.UNKNOWN="UNKNOWN"}(Np||(hs.UPDATE_STOREFRONT_ERROR_CODE=Np={}));var Js={};Object.defineProperty(Js,"__esModule",{value:!0});var tl={};Object.defineProperty(tl,"__esModule",{value:!0});var nv={},hf={};Object.defineProperty(hf,"__esModule",{value:!0});var qs,xp,Ra={};Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.AppSubscriptionType=Ra.AppSubscriptionDuration=void 0,function(l){l.SEVEN_DAYS="SEVEN_DAYS",l.TWO_WEEKS="TWO_WEEKS",l.ONE_MONTH="ONE_MONTH",l.TWO_MONTHS="TWO_MONTHS",l.THREE_MONTHS="THREE_MONTHS",l.SIX_MONTHS="SIX_MONTHS",l.ONE_YEAR="ONE_YEAR"}(qs||(Ra.AppSubscriptionDuration=qs={})),function(l){l.FREE="FREE",l.AUTORENEWABLE="AUTORENEWABLE",l.NONAUTORENEWABLE="NONAUTORENEWABLE"}(xp||(Ra.AppSubscriptionType=xp={}));var ea,bc={};Object.defineProperty(bc,"__esModule",{value:!0}),bc.AppSubscriptionAdditionalBackIssueUnlocksType=void 0,function(l){l.DAY="DAY",l.WEEK="WEEK",l.MONTH="MONTH",l.YEAR="YEAR"}(ea||(bc.AppSubscriptionAdditionalBackIssueUnlocksType=ea={}));var Dl={};Object.defineProperty(Dl,"__esModule",{value:!0});var pf={};Object.defineProperty(pf,"__esModule",{value:!0});var gf={};Object.defineProperty(gf,"__esModule",{value:!0});var rv={};Object.defineProperty(rv,"__esModule",{value:!0});var yu,Lp,Bi,kp,ws={};Object.defineProperty(ws,"__esModule",{value:!0}),ws.ContentResourceType=ws.CatalogBundleType=ws.CatalogContentType=ws.Access=void 0,function(l){l.FREE="FREE",l.HIDDEN="HIDDEN",l.PURCHASABLE="PURCHASABLE"}(yu||(ws.Access=yu={})),function(l){l.ISSUE="ISSUE",l.POST="POST",l.BUNDLE="BUNDLE"}(Lp||(ws.CatalogContentType=Lp={})),function(l){l.ISSUE="ISSUE",l.DOSSIER="DOSSIER"}(Bi||(ws.CatalogBundleType=Bi={})),function(l){l.ASSET="ASSET",l.CONTENT_BUNDLE="CONTENT_BUNDLE"}(kp||(ws.ContentResourceType=kp={}));var Fp,Up,Na={};Object.defineProperty(Na,"__esModule",{value:!0}),Na.IssueType=Na.PurchaseOption=void 0,function(l){l.APP_STORE_PURCHASE="APP_STORE_PURCHASE",l.APP_STORE_SUBSCRIPTION="APP_STORE_SUBSCRIPTION",l.ENTITLEMENT="ENTITLEMENT",l.SUBSCRIPTION_CODE="SUBSCRIPTION_CODE",l.TRIAL="TRIAL",l.PUBLICATION_PRODUCT="PUBLICATION_PRODUCT"}(Fp||(Na.PurchaseOption=Fp={})),function(l){l.ARTICLE="ARTICLE",l.ISSUE="ISSUE"}(Up||(Na.IssueType=Up={}));var Sc={};Object.defineProperty(Sc,"__esModule",{value:!0});var mf={};Object.defineProperty(mf,"__esModule",{value:!0});var vf={};Object.defineProperty(vf,"__esModule",{value:!0});var Ic={};Object.defineProperty(Ic,"__esModule",{value:!0});var Bp,Tc={};Object.defineProperty(Tc,"__esModule",{value:!0}),Tc.PublicationType=void 0,function(l){l.KIOSK="KIOSK",l.CHANNEL="CHANNEL"}(Bp||(Tc.PublicationType=Bp={}));var _f={};Object.defineProperty(_f,"__esModule",{value:!0});var jp={};Object.defineProperty(jp,"__esModule",{value:!0});var ta={};Object.defineProperty(ta,"__esModule",{value:!0});var Vp={};Object.defineProperty(Vp,"__esModule",{value:!0});var iv,Eu={};Object.defineProperty(Eu,"__esModule",{value:!0}),Eu.SortDirection=void 0,function(l){l.ASC="ASC",l.DESC="DESC"}(iv||(Eu.SortDirection=iv={}));var $p={};Object.defineProperty($p,"__esModule",{value:!0});var yf={};Object.defineProperty(yf,"__esModule",{value:!0});var Kp={};Object.defineProperty(Kp,"__esModule",{value:!0});var Hp={};Object.defineProperty(Hp,"__esModule",{value:!0});var Wp={};Object.defineProperty(Wp,"__esModule",{value:!0});var nl={};Object.defineProperty(nl,"__esModule",{value:!0});var Ol={};Object.defineProperty(Ol,"__esModule",{value:!0});var Ef={};Object.defineProperty(Ef,"__esModule",{value:!0});var Af={};Object.defineProperty(Af,"__esModule",{value:!0});var Dc,ao={};Object.defineProperty(ao,"__esModule",{value:!0}),ao.ERROR_CODE=void 0,function(l){l.ACCESS_DENIED="ACCESS_DENIED",l.ALREADY_LOGGED_IN="ALREADY_LOGGED_IN",l.ALREADY_OWNED="ALREADY_OWNED",l.CANCELLED="CANCELLED",l.CONFIGURATION_ERROR="CONFIGURATION_ERROR",l.DUPLICATE_CODE="DUPLICATE_CODE",l.ERROR_ILLEGAL_ARGUMENTS="ERROR_ILLEGAL_ARGUMENTS",l.ILLEGAL_ARGUMENTS="ILLEGAL_ARGUMENTS",l.INSTALLATION_LIMIT_EXCEEDED="INSTALLATION_LIMIT_EXCEEDED",l.INSUFFICIENT_SPACE="INSUFFICIENT_SPACE",l.INVALID_CODE="INVALID_CODE",l.INVALID_CREDENTIALS="INVALID_CREDENTIALS",l.NETWORK="NETWORK",l.NO_ISSUES_FOUND="NO_ISSUES_FOUND",l.NOT_AVAILABLE="NOT_AVAILABLE",l.NOT_FOUND="NOT_FOUND",l.ISSUE_NOT_FOUND="ISSUE_NOT_FOUND",l.RESOURCE_NOT_FOUND="RESOURCE_NOT_FOUND",l.NOT_HANDLED="NOT_HANDLED",l.NOTHING_LOADED="NOTHING_LOADED",l.NOT_LOGGED_IN="NOT_LOGGED_IN",l.PAYMENT_REQUIRED="PAYMENT_REQUIRED",l.UNKNOWN="UNKNOWN",l.UNKNOWN_CODE="UNKNOWN_CODE",l.UNKNOWN_OFFER="UNKNOWN_OFFER",l.UNKNOWN_PRODUCT="UNKNOWN_PRODUCT",l.UNKNOWN_VENDOR="UNKNOWN_VENDOR",l.USER_DEACTIVATED="USER_DEACTIVATED",l.VALIDATION_FAILED="VALIDATION_FAILED"}(Dc||(ao.ERROR_CODE=Dc={}));var ov,Oc,Au,Cf,ma={};Object.defineProperty(ma,"__esModule",{value:!0}),ma.ListOperation=ma.IntOperation=ma.DateOperation=ma.StringOperation=void 0,function(l){l.EQUAL="EQUAL",l.CONTAINS="CONTAINS",l.STARTS_WITH="STARTS_WITH",l.GREATER_THAN="GREATER_THAN",l.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",l.LESS_THAN="LESS_THAN",l.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",l.REGEX="REGEX"}(ov||(ma.StringOperation=ov={})),function(l){l.GREATER_THAN="GREATER_THAN",l.LESS_THAN="LESS_THAN",l.EQUAL="EQUAL"}(Oc||(ma.DateOperation=Oc={})),function(l){l.GREATER_THAN="GREATER_THAN",l.LESS_THAN="LESS_THAN",l.EQUAL="EQUAL"}(Au||(ma.IntOperation=Au={})),function(l){l.CONTAINS="CONTAINS",l.CONTAINS_ONLY="CONTAINS_ONLY"}(Cf||(ma.ListOperation=Cf={}));var Gp={};Object.defineProperty(Gp,"__esModule",{value:!0});var bf={};Object.defineProperty(bf,"__esModule",{value:!0});var Pl={};Object.defineProperty(Pl,"__esModule",{value:!0});var zp={};Object.defineProperty(zp,"__esModule",{value:!0});var Pc={};Object.defineProperty(Pc,"__esModule",{value:!0});var Sf={};Object.defineProperty(Sf,"__esModule",{value:!0});var Ml={};Object.defineProperty(Ml,"__esModule",{value:!0});var wl={};Object.defineProperty(wl,"__esModule",{value:!0});var If={};Object.defineProperty(If,"__esModule",{value:!0});var Cu={};Object.defineProperty(Cu,"__esModule",{value:!0});var bu={};Object.defineProperty(bu,"__esModule",{value:!0});var Qp={};Object.defineProperty(Qp,"__esModule",{value:!0});var Yp={};Object.defineProperty(Yp,"__esModule",{value:!0});var Xp={};Object.defineProperty(Xp,"__esModule",{value:!0});var Tf={};Object.defineProperty(Tf,"__esModule",{value:!0});var Mc={};Object.defineProperty(Mc,"__esModule",{value:!0});var Zp={};Object.defineProperty(Zp,"__esModule",{value:!0});var Jp={};Object.defineProperty(Jp,"__esModule",{value:!0});var es={};Object.defineProperty(es,"__esModule",{value:!0});var wc={};Object.defineProperty(wc,"__esModule",{value:!0});var Df={};Object.defineProperty(Df,"__esModule",{value:!0});var Su={};Object.defineProperty(Su,"__esModule",{value:!0});var sv={};Object.defineProperty(sv,"__esModule",{value:!0});var av={};Object.defineProperty(av,"__esModule",{value:!0});var $o={};Object.defineProperty($o,"__esModule",{value:!0});var rl={};Object.defineProperty(rl,"__esModule",{value:!0});var Rc={};Object.defineProperty(Rc,"__esModule",{value:!0});var Of={};Object.defineProperty(Of,"__esModule",{value:!0});var qp={};Object.defineProperty(qp,"__esModule",{value:!0});var Pf={};Object.defineProperty(Pf,"__esModule",{value:!0});var eg={};Object.defineProperty(eg,"__esModule",{value:!0});var Mf={};Object.defineProperty(Mf,"__esModule",{value:!0});var wf,Nc={};Object.defineProperty(Nc,"__esModule",{value:!0}),Nc.PublicationProductType=void 0,function(l){l.BACK_ISSUE_COMPLETION="BACK_ISSUE_COMPLETION",l.REPEATABLE_ISSUE_PURCHASE="REPEATABLE_ISSUE_PURCHASE"}(wf||(Nc.PublicationProductType=wf={}));var tg={};Object.defineProperty(tg,"__esModule",{value:!0});var ng={};Object.defineProperty(ng,"__esModule",{value:!0});var rg={};Object.defineProperty(rg,"__esModule",{value:!0});var ig={};Object.defineProperty(ig,"__esModule",{value:!0});var Rf,Iu={};Object.defineProperty(Iu,"__esModule",{value:!0}),Iu.SystemConsentStatus=void 0,function(l){l.GRANTED="GRANTED",l.DENIED="DENIED",l.UNDETERMINED="UNDETERMINED"}(Rf||(Iu.SystemConsentStatus=Rf={}));var Nf={};Object.defineProperty(Nf,"__esModule",{value:!0});var Tu={};Object.defineProperty(Tu,"__esModule",{value:!0});var xf={};Object.defineProperty(xf,"__esModule",{value:!0});var Lf={};Object.defineProperty(Lf,"__esModule",{value:!0});var kf,Du={};Object.defineProperty(Du,"__esModule",{value:!0}),Du.SearchResultSortCriteria=void 0,function(l){l.RELEVANCE="RELEVANCE",l.PUB_DATE_DESC="PUB_DATE_DESC"}(kf||(Du.SearchResultSortCriteria=kf={}));var og,xc={};Object.defineProperty(xc,"__esModule",{value:!0}),xc.SearchField=void 0,function(l){l.CONTENT="CONTENT",l.CONTENT_NAME="CONTENT_NAME",l.CONTENT_DESCRIPTION="CONTENT_DESCRIPTION",l.CUSTOM_TERMS="CUSTOM_TERMS"}(og||(xc.SearchField=og={}));var sg={};Object.defineProperty(sg,"__esModule",{value:!0});var ag={};Object.defineProperty(ag,"__esModule",{value:!0});var lv,Ou={};Object.defineProperty(Ou,"__esModule",{value:!0}),Ou.StartDownloadError=void 0,function(l){l.NETWORK="NETWORK",l.INSUFFICIENT_SPACE="INSUFFICIENT_SPACE",l.PAYMENT_REQUIRED="PAYMENT_REQUIRED",l.NOT_FOUND="NOT_FOUND",l.UNKNOWN="UNKNOWN"}(lv||(Ou.StartDownloadError=lv={}));var Ff={};Object.defineProperty(Ff,"__esModule",{value:!0});var lg={};Object.defineProperty(lg,"__esModule",{value:!0});var ug={};Object.defineProperty(ug,"__esModule",{value:!0});var uv={};Object.defineProperty(uv,"__esModule",{value:!0});var cg={};Object.defineProperty(cg,"__esModule",{value:!0});var Uf={};Object.defineProperty(Uf,"__esModule",{value:!0}),function(l){var i=wi&&wi.__createBinding||(Object.create?function(v,y,I,H){void 0===H&&(H=I);var Ie=Object.getOwnPropertyDescriptor(y,I);(!Ie||("get"in Ie?!y.__esModule:Ie.writable||Ie.configurable))&&(Ie={enumerable:!0,get:function(){return y[I]}}),Object.defineProperty(v,H,Ie)}:function(v,y,I,H){void 0===H&&(H=I),v[H]=y[I]}),u=wi&&wi.__exportStar||function(v,y){for(var I in v)"default"!==I&&!Object.prototype.hasOwnProperty.call(y,I)&&i(y,v,I)};Object.defineProperty(l,"__esModule",{value:!0}),u(hf,l),u(Ra,l),u(bc,l),u(Dl,l),u(pf,l),u(gf,l),u(rv,l),u(ws,l),u(Na,l),u(Sc,l),u(mf,l),u(vf,l),u(Ic,l),u(Tc,l),u(_f,l),u(jp,l),u(ta,l),u(Vp,l),u(Eu,l),u($p,l),u(yf,l),u(Kp,l),u(Hp,l),u(Wp,l),u(nl,l),u(Ol,l),u(Ef,l),u(Af,l),u(ao,l),u(ma,l),u(Gp,l),u(bf,l),u(Pl,l),u(zp,l),u(Pc,l),u(Sf,l),u(Ml,l),u(wl,l),u(If,l),u(Cu,l),u(bu,l),u(Qp,l),u(Yp,l),u(Xp,l),u(Tf,l),u(Mc,l),u(Zp,l),u(Jp,l),u(es,l),u(wc,l),u(Df,l),u(Su,l),u(sv,l),u(av,l),u($o,l),u(rl,l),u(Rc,l),u(Of,l),u(qp,l),u(Pf,l),u(eg,l),u(Mf,l),u(Nc,l),u(tg,l),u(ng,l),u(rg,l),u(ig,l),u(Iu,l),u(Nf,l),u(Tu,l),u(xf,l),u(Lf,l),u(Du,l),u(xc,l),u(sg,l),u(ag,l),u(Ou,l),u(Ff,l),u(lg,l),u(ug,l),u(uv,l),u(cg,l),u(Uf,l)}(nv);var Rs,il,dg,Lc={},Rl={};Object.defineProperty(Rl,"__esModule",{value:!0}),Rl.ContentStateError=Rs=Rl.ContentInstallState=void 0,function(l){l.NOT_INSTALLED="NOT_INSTALLED",l.INCOMPLETE="INCOMPLETE",l.COMPLETE="COMPLETE"}(il||(Rs=Rl.ContentInstallState=il={})),function(l){l.NETWORK="NETWORK",l.INSUFFICIENT_SPACE="INSUFFICIENT_SPACE",l.PAYMENT_REQUIRED="PAYMENT_REQUIRED",l.NOT_FOUND="NOT_FOUND",l.UNKNOWN="UNKNOWN"}(dg||(Rl.ContentStateError=dg={}));var kc={};Object.defineProperty(kc,"__esModule",{value:!0});var Fc={};Object.defineProperty(Fc,"__esModule",{value:!0});var cv={};Object.defineProperty(cv,"__esModule",{value:!0});var fg={};Object.defineProperty(fg,"__esModule",{value:!0});var hg={};Object.defineProperty(hg,"__esModule",{value:!0});var Bf={};Object.defineProperty(Bf,"__esModule",{value:!0});var jf={};Object.defineProperty(jf,"__esModule",{value:!0});var pg={};Object.defineProperty(pg,"__esModule",{value:!0});var va,Uc={};Object.defineProperty(Uc,"__esModule",{value:!0}),Uc.ElementAlignment=void 0,function(l){l.TOP_LEFT="TOP_LEFT",l.TOP_CENTER="TOP_CENTER",l.TOP_RIGHT="TOP_RIGHT",l.CENTER_LEFT="CENTER_LEFT",l.CENTER_CENTER="CENTER_CENTER",l.CENTER_RIGHT="CENTER_RIGHT",l.BOTTOM_LEFT="BOTTOM_LEFT",l.BOTTOM_CENTER="BOTTOM_CENTER",l.BOTTOM_RIGHT="BOTTOM_RIGHT"}(va||(Uc.ElementAlignment=va={}));var gg={};Object.defineProperty(gg,"__esModule",{value:!0});var Bc={};Object.defineProperty(Bc,"__esModule",{value:!0}),function(l){var i=wi&&wi.__createBinding||(Object.create?function(v,y,I,H){void 0===H&&(H=I);var Ie=Object.getOwnPropertyDescriptor(y,I);(!Ie||("get"in Ie?!y.__esModule:Ie.writable||Ie.configurable))&&(Ie={enumerable:!0,get:function(){return y[I]}}),Object.defineProperty(v,H,Ie)}:function(v,y,I,H){void 0===H&&(H=I),v[H]=y[I]}),u=wi&&wi.__exportStar||function(v,y){for(var I in v)"default"!==I&&!Object.prototype.hasOwnProperty.call(y,I)&&i(y,v,I)};Object.defineProperty(l,"__esModule",{value:!0}),u(Rl,l),u(kc,l),u(Fc,l),u(cv,l),u(fg,l),u(hg,l),u(Bf,l),u(jf,l),u(pg,l),u(Uc,l),u(gg,l),u(Bc,l)}(Lc);var jc={},Vc={};Object.defineProperty(Vc,"__esModule",{value:!0});var Vf={};Object.defineProperty(Vf,"__esModule",{value:!0});var Nl={};Object.defineProperty(Nl,"__esModule",{value:!0});var Pu={};Object.defineProperty(Pu,"__esModule",{value:!0});var ol={};Object.defineProperty(ol,"__esModule",{value:!0});var xl={};Object.defineProperty(xl,"__esModule",{value:!0});var _a={};Object.defineProperty(_a,"__esModule",{value:!0});var $c={};Object.defineProperty($c,"__esModule",{value:!0});var Ll={};Object.defineProperty(Ll,"__esModule",{value:!0});var sl={};Object.defineProperty(sl,"__esModule",{value:!0});var Mu={};Object.defineProperty(Mu,"__esModule",{value:!0});var Kc={};Object.defineProperty(Kc,"__esModule",{value:!0});var wu={};Object.defineProperty(wu,"__esModule",{value:!0});var Hc,Ru={};Object.defineProperty(Ru,"__esModule",{value:!0}),Ru.ProrationMode=void 0,function(l){l.IMMEDIATE_WITH_TIME_PRORATION="IMMEDIATE_WITH_TIME_PRORATION",l.IMMEDIATE_AND_CHARGE_PRORATED_PRICE="IMMEDIATE_AND_CHARGE_PRORATED_PRICE",l.IMMEDIATE_WITHOUT_PRORATION="IMMEDIATE_WITHOUT_PRORATION",l.DEFERRED="DEFERRED"}(Hc||(Ru.ProrationMode=Hc={}));var dv={};Object.defineProperty(dv,"__esModule",{value:!0}),function(l){var i=wi&&wi.__createBinding||(Object.create?function(v,y,I,H){void 0===H&&(H=I);var Ie=Object.getOwnPropertyDescriptor(y,I);(!Ie||("get"in Ie?!y.__esModule:Ie.writable||Ie.configurable))&&(Ie={enumerable:!0,get:function(){return y[I]}}),Object.defineProperty(v,H,Ie)}:function(v,y,I,H){void 0===H&&(H=I),v[H]=y[I]}),u=wi&&wi.__exportStar||function(v,y){for(var I in v)"default"!==I&&!Object.prototype.hasOwnProperty.call(y,I)&&i(y,v,I)};Object.defineProperty(l,"__esModule",{value:!0}),u(Vc,l),u(Vf,l),u(Nl,l),u(Pu,l),u(ol,l),u(xl,l),u(_a,l),u($c,l),u(Ll,l),u(sl,l),u(Mu,l),u(Kc,l),u(wu,l),u(Ru,l),u(dv,l)}(jc);var al={},$f={};Object.defineProperty($f,"__esModule",{value:!0});var Kf={};Object.defineProperty(Kf,"__esModule",{value:!0});var Hf={};Object.defineProperty(Hf,"__esModule",{value:!0});var Wc={};Object.defineProperty(Wc,"__esModule",{value:!0});var Nu={};Object.defineProperty(Nu,"__esModule",{value:!0}),Nu.LAST_VISITED_PATH=void 0,Nu.LAST_VISITED_PATH="lastVisitedPath",function(l){var i=wi&&wi.__createBinding||(Object.create?function(v,y,I,H){void 0===H&&(H=I);var Ie=Object.getOwnPropertyDescriptor(y,I);(!Ie||("get"in Ie?!y.__esModule:Ie.writable||Ie.configurable))&&(Ie={enumerable:!0,get:function(){return y[I]}}),Object.defineProperty(v,H,Ie)}:function(v,y,I,H){void 0===H&&(H=I),v[H]=y[I]}),u=wi&&wi.__exportStar||function(v,y){for(var I in v)"default"!==I&&!Object.prototype.hasOwnProperty.call(y,I)&&i(y,v,I)};Object.defineProperty(l,"__esModule",{value:!0}),u($f,l),u(Kf,l),u(Hf,l),u(Wc,l),u(Nu,l)}(al);var Gc,Wf={},kl={};Object.defineProperty(kl,"__esModule",{value:!0}),kl.AssignLocalPurchasesMode=void 0,function(l){l.UNASSIGNED="UNASSIGNED",l.REASSIGN="REASSIGN",l.ASSIGN="ASSIGN"}(Gc||(kl.AssignLocalPurchasesMode=Gc={})),function(l){var i=wi&&wi.__createBinding||(Object.create?function(v,y,I,H){void 0===H&&(H=I);var Ie=Object.getOwnPropertyDescriptor(y,I);(!Ie||("get"in Ie?!y.__esModule:Ie.writable||Ie.configurable))&&(Ie={enumerable:!0,get:function(){return y[I]}}),Object.defineProperty(v,H,Ie)}:function(v,y,I,H){void 0===H&&(H=I),v[H]=y[I]}),u=wi&&wi.__exportStar||function(v,y){for(var I in v)"default"!==I&&!Object.prototype.hasOwnProperty.call(y,I)&&i(y,v,I)};Object.defineProperty(l,"__esModule",{value:!0}),u(kl,l)}(Wf),function(l){var i=wi&&wi.__createBinding||(Object.create?function(v,y,I,H){void 0===H&&(H=I);var Ie=Object.getOwnPropertyDescriptor(y,I);(!Ie||("get"in Ie?!y.__esModule:Ie.writable||Ie.configurable))&&(Ie={enumerable:!0,get:function(){return y[I]}}),Object.defineProperty(v,H,Ie)}:function(v,y,I,H){void 0===H&&(H=I),v[H]=y[I]}),u=wi&&wi.__exportStar||function(v,y){for(var I in v)"default"!==I&&!Object.prototype.hasOwnProperty.call(y,I)&&i(y,v,I)};Object.defineProperty(l,"__esModule",{value:!0}),u(nf,l),u(hu,l),u(pu,l),u(Ms,l),u(qa,l),u(zi,l),u(sf,l),u(yc,l),u(Ec,l),u(gu,l),u(Ac,l),u(Tl,l),u(vu,l),u(Op,l),u(Pp,l),u(uf,l),u(Mp,l),u(el,l),u(qm,l),u(_u,l),u(Ji,l),u(ev,l),u(Cc,l),u(df,l),u(hs,l),u(Js,l),u(tl,l),u(nv,l),u(Lc,l),u(jc,l),u(al,l),u(Wf,l)}(tf),function(l){var i=wi&&wi.__createBinding||(Object.create?function(v,y,I,H){void 0===H&&(H=I);var Ie=Object.getOwnPropertyDescriptor(y,I);(!Ie||("get"in Ie?!y.__esModule:Ie.writable||Ie.configurable))&&(Ie={enumerable:!0,get:function(){return y[I]}}),Object.defineProperty(v,H,Ie)}:function(v,y,I,H){void 0===H&&(H=I),v[H]=y[I]}),u=wi&&wi.__exportStar||function(v,y){for(var I in v)"default"!==I&&!Object.prototype.hasOwnProperty.call(y,I)&&i(y,v,I)};Object.defineProperty(l,"__esModule",{value:!0}),u(tf,l)}(xr);var Lr=(l=>(l.NOT_IMPLEMENTED="not implemented. Please override this method",l))(Lr||{});class Ko{constructor(i,u){this.major=i,this.minor=u}toString(){return"".concat(this.major,".").concat(this.minor)}}var Ti=(l=>(l.INVALIDATION="APP:INVALIDATION",l.MEDIA_STATUS="MEDIA:STATUS",l.MEDIA_PROGRESS="MEDIA:PROGRESS",l.ISSUE_PAGER_STATE="ISSUEPAGER:STATE",l))(Ti||{});const Qi={sendEvent:(l,i)=>{window.dispatchEvent(new CustomEvent(l,{detail:i}))},addListener(l,i){window.addEventListener(l,i)},removeListener(l,i){window.removeEventListener(l,i)}};class mg{constructor(){(0,f.A)(this,"version",new Ko(1,3))}addConnectionStateListener(i){}addInvalidationListener(i){Qi.addListener(Ti.INVALIDATION,i)}addLifecycleListener(i){}closeOnboarding(i){console.warn("app.closeOnboarding:"+Lr.NOT_IMPLEMENTED)}performActionUrl(i){return(0,s.A)(function*(){console.warn("app.performActionUrl:"+Lr.NOT_IMPLEMENTED)})()}performAuthentication(i){return(0,s.A)(function*(){return console.warn("app.performAuthentication:"+Lr.NOT_IMPLEMENTED),{values:new Map}})()}removeConnectionStateListener(i){}removeInvalidationListener(i){Qi.removeListener(Ti.INVALIDATION,i)}removeLifecycleListener(i){}}class vg{constructor(){(0,f.A)(this,"version",new Ko(2,0))}getDisplayConfig(){return(0,s.A)(function*(){return{controlsEnabled:!1,displayMode:xr.DisplayMode.EMBEDDED,statusBarEnabled:!1,titleBarEnabled:!1}})()}getDisplayMode(i){this.getDisplayConfig().then(u=>i(u.displayMode.toLowerCase()))}isControlsEnabled(i){this.getDisplayConfig().then(u=>i(u.controlsEnabled))}isStatusBarEnabled(i){this.getDisplayConfig().then(u=>i(u.statusBarEnabled))}isTitleBarEnabled(i){this.getDisplayConfig().then(u=>i(u.titleBarEnabled))}}class _g{constructor(){(0,f.A)(this,"version",new Ko(1,0))}assignLocalPurchases(i){return(0,s.A)(function*(){return Promise.resolve(void 0)})()}getUserData(){return(0,s.A)(function*(){return Promise.resolve({token:void 0})})()}login(i){return(0,s.A)(function*(){return Promise.resolve(void 0)})()}logout(){return(0,s.A)(function*(){return Promise.resolve(void 0)})()}}class yg{constructor(){(0,f.A)(this,"version",new Ko(2,0))}createBookmark(i){return(0,s.A)(function*(){return console.warn("bookmark.createBookmark:"+Lr.NOT_IMPLEMENTED),null})()}deleteBookmark(i){return(0,s.A)(function*(){console.warn("bookmark.deleteBookmark:"+Lr.NOT_IMPLEMENTED)})()}getBookmarks(){return(0,s.A)(function*(){return console.warn("bookmark.getBookmarks:"+Lr.NOT_IMPLEMENTED),{bookmarks:[]}})()}}class xu{constructor(){(0,f.A)(this,"version",new Ko(1,7))}open(i){return Promise.resolve()}getLocalContents(){return(0,s.A)(function*(){return console.warn("content.getLocalContents:"+Lr.NOT_IMPLEMENTED),{contents:[],previewContents:[]}})()}syncLocalContents(i){return(0,s.A)(function*(){console.warn("content.syncLocalContents:"+Lr.NOT_IMPLEMENTED)})()}startDownload(i){return(0,s.A)(function*(){console.warn("content.startDownload:"+Lr.NOT_IMPLEMENTED)})()}pauseDownload(i){return(0,s.A)(function*(){console.warn("content.pauseDownload:"+Lr.NOT_IMPLEMENTED)})()}deleteDownload(i){return(0,s.A)(function*(){console.warn("content.deleteDownload:"+Lr.NOT_IMPLEMENTED)})()}getContentStates(i){return(0,s.A)(function*(){return Object.fromEntries(i.contents.map(({contentId:u})=>[u,{contentId:u,installState:Rs.NOT_INSTALLED,updateAvailable:!1,downloading:!1,progress:0}]))})()}addContentStateListener(i,u){console.warn("content.addContentStateListener:"+Lr.NOT_IMPLEMENTED)}removeContentStateListener(i,u){console.warn("content.removeContentStateListener:"+Lr.NOT_IMPLEMENTED)}getPostResourceUrl(i){return(0,s.A)(function*(){return console.warn("content.getPostResourceUrl:"+Lr.NOT_IMPLEMENTED),""})()}}const Ws="pageInfo { hasNextPage, endCursor }";function Ns(l){return l?"totalCount":""}const V0=l=>"preview_".concat(l),Yi=li(S||(S=sI||(sI=Li(["\nfragment TaxonomySummaryFragment on Taxonomy {\n id\n internalId\n name\n type\n parentId\n seoMetadata @include(if: $includeContentSeoMetadata) {\n key\n value\n }\n properties {\n key\n value\n }\n}\n"])))),xa=li(R||(R=aI||(aI=Li(["\n fragment ContentFragment on Content {\n __typename\n id\n version\n name\n description\n index\n alias\n externalId\n publicationDate\n unpublishDate\n lastModified\n access\n productId\n purchaseData {\n purchased\n purchasedBy\n }\n publication {\n id\n }\n properties (filter: $propertyFilter) {\n key\n value\n }\n seoMetadata @include(if: $includeContentSeoMetadata) {\n key\n value\n }\n thumbnails {\n kind\n url\n properties {\n key\n value\n }\n }\n categories\n tags\n }\n"])))),Eg=li(U||(U=lI||(lI=Li(["\nfragment ContentBlockFragment on ContentBlock {\n id\n type\n parentId\n children\n sequence\n html\n level\n properties {\n key\n value\n type\n }\n}\n"])))),mi=li(q||(q=uI||(uI=Li(["\nfragment IssueFragment on Issue {\n contentLength\n numberOfPages\n previewContentLength\n resources @include(if: $includeResources) {\n id\n url\n type\n contentLength\n properties {\n key\n value\n type\n }\n }\n}\n"])))),na=li(z||(z=cI||(cI=Li(["\nfragment PostFragment on Post {\n postType\n bundleId\n bundles {\n id\n bundleType\n }\n taxonomies {\n ...TaxonomySummaryFragment\n }\n authors {\n name\n email\n }\n bundleId\n content @include(if: $includeBlocks) {\n ...ContentBlockFragment\n }\n\n previewContentBlocks @include(if: $includeBlocks) {\n ...ContentBlockFragment\n }\n\n contentHtml @include(if: $includeHtml)\n previewContentHtml @include(if: $includeHtml)\n resources @include(if: $includeResources) {\n id\n url\n type\n contentLength\n properties {\n key\n value\n type\n }\n }\n}\n\n","\n"]))),Eg),ra=li(ve||(ve=dI||(dI=Li(["\n fragment BundleFragment on Bundle {\n bundleType\n taxonomies {\n ...TaxonomySummaryFragment\n }\n authors {\n name\n email\n }\n contents @include(if: $includeBundledContent) {\n id\n content {\n ...ContentFragment\n ...PostFragment\n }\n }\n }\n"])))),zc=li(Q||(Q=pI||(pI=Li(["\nfragment PostSearchResultFragment on PostSearchResult {\n post {\n ...ContentFragment\n ...PostFragment\n },\n excerpt\n}\n "]))));var ar=(l=>(l.APP_PERFORM_ACTION_URL="APP_PERFORM_ACTION_URL",l.APP_BROWSER_GET_DISPLAY_CONFIG="APP_BROWSER_GET_DISPLAY_CONFIG",l.ACCOUNT_ASSIGN_LOCAL_PURCHASES="ACCOUNT_ASSIGN_LOCAL_PURCHASES",l.ACCOUNT_GET_USER_DATA="ACCOUNT_GET_USER_DATA",l.ACCOUNT_LOGIN="ACCOUNT_LOGIN",l.ACCOUNT_LOGOUT="ACCOUNT_LOGOUT",l.BOOKMARK_CREATE="BOOKMARK_CREATE",l.BOOKMARK_DELETE="BOOKMARK_DELETE",l.BOOKMARK_GET="BOOKMARK_GET",l.CATALOG_GET_CATEGORIES="CATALOG_GET_CATEGORIES",l.CATALOG_GET_ISSUES="CATALOG_GET_ISSUES",l.CATALOG_GET_METADATA="CATALOG_GET_METADATA",l.CATALOG_GET_CONTENT="CATALOG_GET_CONTENT",l.CATALOG_GET_PRODUCTS="CATALOG_GET_PRODUCTS",l.CATALOG_GET_PUBLICATION_PRODUCTS="CATALOG_GET_PUBLICATION_PRODUCTS",l.CATALOG_GET_PUBLICATIONS="CATALOG_GET_PUBLICATIONS",l.CATALOG_GET_SUBSCRIPTIONS="CATALOG_GET_PUBLICATIONS",l.CATALOG_SEARCH="CATALOG_SEARCH",l.CATALOG_GET_ISSUE_STATES="CATALOG_GET_ISSUE_STATES",l.CATALOG_GET_MENUS="CATALOG_GET_MENUS",l.CATALOG_GET_TAXONOMIES="CATALOG_GET_TAXONOMIES",l.CATALOG_GET_COLLECTIONS="CATALOG_GET_COLLECTIONS",l.CATALOG_GET_APP_SETTINGS="CATALOG_GET_APP_SETTINGS",l.CATALOG_GET_REDIRECTS="CATALOG_GET_REDIRECTS",l.CATALOG_LOOKUP_PATH_SEGMENTS="CATALOG_LOOKUP_PATH_SEGMENTS",l.CLOSE_VIEW="CLOSE_VIEW",l.CONTENT_OPEN="CONTENT_OPEN",l.ENTITLEMENT_GET_USER_DATA="ENTITLEMENT_GET_USER_DATA",l.ENTITLEMENT_LOGIN="ENTITLEMENT_LOGIN",l.ENTITLEMENT_LOGIN_OAUTH="ENTITLEMENT_LOGIN_OAUTH",l.ENTITLEMENT_LOGOUT="ENTITLEMENT_LOGOUT",l.ENTITLEMENT_INVALIDATE_TOKENS="ENTITLEMENT_INVALIDATE_TOKENS",l.ENTITLEMENT_CHECK_OAUTH="ENTITLEMENT_CHECK_OAUTH",l.ENTITLEMENT_VERIFY_ACCESS_TOKEN="ENTITLEMENT_VERIFY_ACCESS_TOKEN",l.CONSENT_GET_CONSENT="CONSENT_GET_CONSENT",l.CONSENT_GRANT_CONSENT="CONSENT_GRANT_CONSENT",l.CONSENT_SHOW_PRIVACY_MANAGER="CONSENT_SHOW_PRIVACY_MANAGER",l.CONSENT_GET_SYSTEM_CONSENT="CONSENT_GET_SYSTEM_CONSENT",l.CONSENT_SHOW_SYSTEM_PRIVACY_MANAGER="CONSENT_SHOW_SYSTEM_PRIVACY_MANAGER",l.ENV_RESOURCE_URL="ENV_RESOURCE_URL",l.ENV_RESIZE="ENV_RESIZE",l.ENV_CSS_URLS="ENV_CSS_URLS",l.ENV_INIT="ENV_INIT",l.ENV_TITLE="ENV_TITLE",l.ENV_PRINT="ENV_PRINT",l.ENV_BACK="ENV_BACK",l.ENV_FORWARD="ENV_FORWARD",l.ENV_RELOAD="ENV_RELOAD",l.ENV_LOCATION="ENV_LOCATION",l.ISSUE_GET_BASE_URL="ISSUE_GET_BASE_URL",l.ISSUE_GET_PAGES="ISSUE_GET_PAGES",l.ISSUE_GET_TOC="ISSUE_GET_TOC",l.ISSUE_PAGER_GET_INFO="ISSUE_PAGER_GET_INFO",l.ISSUE_PAGER_NAVIGATE_TO="ISSUE_PAGER_NAVIGATE_TO",l.MEDIA_START_AUDIO="MEDIA_START_AUDIO",l.MEDIA_PAUSE_AUDIO="MEDIA_PAUSE_AUDIO",l.MEDIA_RESUME_AUDIO="MEDIA_RESUME_AUDIO",l.MEDIA_STOP_AUDIO="MEDIA_STOP_AUDIO",l.MEDIA_SEEK_TO="MEDIA_SEEK_TO",l.MEDIA_GET_PLAYBACK_RATE="MEDIA_GET_PLAYBACK_RATE",l.MEDIA_SET_PLAYBACK_RATE="MEDIA_SET_PLAYBACK_RATE",l.METADATA_GET_METADATA="METADATA_GET_METADATA",l.SHARE_SHARE="SHARE_SHARE",l.STATE_GET_STATE="STATE_GET_STATE",l.STATE_SET_STATE="STATE_SET_STATE",l.STORE_ADD_SUBSCRIPTION_CODES="STORE_ADD_SUBSCRIPTION_CODES",l.STORE_ADD_SUBSCRIPTION_CODE="STORE_ADD_SUBSCRIPTION_CODE",l.STORE_GET_PRICES="STORE_GET_PRICES",l.STORE_GET_SUBSCRIPTION_CODES="STORE_GET_SUBSCRIPTION_CODES",l.STORE_OPEN_CODE_REDEMPTION="STORE_OPEN_CODE_REDEMPTION",l.STORE_PURCHASE="STORE_PURCHASE",l.STORE_REMOVE_SUBSCRIPTION_CODE="STORE_REMOVE_SUBSCRIPTION_CODE",l.STORE_REMOVE_SUBSCRIPTION_CODES="STORE_REMOVE_SUBSCRIPTION_CODES",l.STORE_RESTORE_PURCHASES="STORE_RESTORE_PURCHASES",l.STORE_SUBSCRIBE="STORE_SUBSCRIBE",l.TRACKING_TRACK_ACTION="TRACKING_TRACK_ACTION",l.TRACKING_TRACK_VIEW="TRACKING_TRACK_VIEW",l.TRACKING_TRACK_PURCHASE="TRACKING_TRACK_PURCHASE",l.TRACKING_SET_USER_ATTRIBUTE="TRACKING_SET_USER_ATTRIBUTE",l))(ar||{}),Ul=(l=>(l.ANDROID="ANDROID",l.IOS="IOS",l.WEB="WEB",l))(Ul||{}),ku=(l=>(l.CONNECTIONS_STATE="APP_CONNECTION_STATE",l.LIFECYCLE="APP_LIFECYCLE",l.INVALIDATION="APP_INVALIDATION",l.MEDIA_STATUS="MEDIA_STATUS",l.MEDIA_PROGRESS="MEDIA_PROGRESS",l.ISSUE_PAGER_STATE="ISSUE_PAGER_STATE",l))(ku||{});class pv{constructor(i,u,v,y,I,H){var Ie=this;(0,f.A)(this,"version",new Ko(1,14)),(0,f.A)(this,"getPublications",function(){var $e=(0,s.A)(function*(Te){var nt,gt,mt,Kt,an,mn,In;const en=null===(nt=Te=Ie.convertPublicationsParams(Te))||void 0===nt?void 0:nt.contentsParams,Mn=null==en?void 0:en.fetchOptions,Cn=(yield Ie.queryWithAuthRetry(function hv(l,i){return li(K||(K=mI||(mI=Li(["\nquery CatalogPublicationQuery(\n $appInfo: AppInfo!,\n $deviceInfo: DeviceInfo!,\n $authorization: Authorization!,\n $filter: PublicationFilter,\n $sort: [PublicationComparator!],\n $first: Int,\n $after: String,\n $includeContents: Boolean!,\n $contentFilter: ContentFilter,\n $contentSort: [ContentComparator!],\n $contentFirst: Int,\n $contentAfter: String,\n $includeBundledContent: Boolean!,\n $includeResources: Boolean!,\n $includeBlocks: Boolean!,\n $includeHtml: Boolean!,\n $includeContentSeoMetadata: Boolean!,\n $propertyFilter: PropertyFilter\n) {\n catalog(\n appInfo: $appInfo,\n deviceInfo: $deviceInfo,\n authorization: $authorization\n ) {\n publicationsConnection(\n filter: $filter,\n sort: $sort,\n first: $first,\n after: $after\n ) {\n ","\n ","\n edges {\n publication: node {\n ...PublicationFragment\n }\n }\n }\n }\n}\n\n","\n "]))),Ws,Ns(null==l?void 0:l.totalCount),function Lu(l){return li(V||(V=hI||(hI=Li(["\nfragment PublicationFragment on Publication {\n id\n name\n description\n type\n language\n index\n currentContentId\n contentsConnection(\n filter: $contentFilter,\n sort: $contentSort,\n first: $contentFirst,\n after: $contentAfter\n ) @include(if: $includeContents) {\n ",",\n ",",\n edges {\n node {\n ...ContentFragment\n ...IssueFragment\n ...PostFragment\n ...BundleFragment\n }\n }\n }\n properties {\n key\n value\n }\n thumbnails {\n kind\n url\n properties {\n key\n value\n }\n },\n tocSettings {\n pageLabelsEnabled\n style\n }\n}\n\n","\n","\n","\n","\n","\n"]))),Ws,Ns(null==l?void 0:l.totalCount),xa,mi,na,ra,Yi)}(i))}(null===(gt=Te)||void 0===gt?void 0:gt.fetchOptions,Mn),{filter:null===(mt=Te)||void 0===mt?void 0:mt.publicationFilter,sort:null===(Kt=Te)||void 0===Kt?void 0:Kt.sort,first:null===(an=Te)||void 0===an?void 0:an.first,after:null===(mn=Te)||void 0===mn?void 0:mn.after,includeContents:!(null===(In=Te)||void 0===In||!In.includeContents),contentFilter:null==en?void 0:en.contentFilter,contentSort:null==en?void 0:en.sort,contentFirst:null==en?void 0:en.first,contentAfter:null==en?void 0:en.after,includeBundledContent:!(null==Mn||!Mn.includeBundledContent),includeResources:!(null==Mn||!Mn.includeResources),includeBlocks:!(null==Mn||!Mn.includeBlocks),includeHtml:!(null==Mn||!Mn.includeHtml),includeContentSeoMetadata:!(null==Mn||!Mn.seoMetadata),propertyFilter:null==Mn?void 0:Mn.properties})).catalog;return Ie.toPage(Cn.publicationsConnection,Zn=>Ie.mapPublication(Zn.publication))});return function(Te){return $e.apply(this,arguments)}}()),(0,f.A)(this,"getIssues",function(){var $e=(0,s.A)(function*(Te){const nt=Ie.convertIssueParams(Te);return Ie.getContents(nt)});return function(Te){return $e.apply(this,arguments)}}()),(0,f.A)(this,"getContents",function(){var $e=(0,s.A)(function*(Te){const nt=null==Te?void 0:Te.fetchOptions,gt=(yield Ie.queryWithAuthRetry(function fv(l){return li(ie||(ie=gI||(gI=Li(["\nquery CatalogContentsQuery(\n $appInfo: AppInfo!,\n $deviceInfo: DeviceInfo!,\n $authorization: Authorization!,\n $filter: ContentFilter,\n $sort: [ContentComparator!],\n $first: Int,\n $after: String,\n $includeBundledContent: Boolean!,\n $includeResources: Boolean!,\n $includeBlocks: Boolean!,\n $includeHtml: Boolean!,\n $includeContentSeoMetadata: Boolean!,\n $propertyFilter: PropertyFilter\n) {\n catalog(\n appInfo: $appInfo,\n deviceInfo: $deviceInfo,\n authorization: $authorization\n ) {\n contentsConnection(\n filter: $filter,\n sort: $sort,\n first: $first,\n after: $after\n ) {\n ","\n ","\n edges {\n content: node {\n __typename\n ...ContentFragment\n ...PostFragment\n ...IssueFragment \n ...BundleFragment\n }\n }\n }\n }\n}\n","\n","\n","\n","\n","\n"]))),Ws,Ns(null==l?void 0:l.totalCount),xa,na,ra,mi,Yi)}(nt),{filter:null==Te?void 0:Te.contentFilter,sort:null==Te?void 0:Te.sort,first:null==Te?void 0:Te.first,after:null==Te?void 0:Te.after,includeBlocks:!(null==nt||!nt.includeBlocks),includeHtml:!(null==nt||!nt.includeHtml),includeResources:!(null==nt||!nt.includeResources),includeBundledContent:!(null==nt||!nt.includeBundledContent),includeContentSeoMetadata:!(null==nt||!nt.seoMetadata),propertyFilter:null==nt?void 0:nt.properties})).catalog;return Ie.toPage(gt.contentsConnection,mt=>Ie.mapContent(mt.content))});return function(Te){return $e.apply(this,arguments)}}()),(0,f.A)(this,"getMenus",function(){var $e=(0,s.A)(function*(Te){const nt=(yield Ie.queryWithAuthRetry(function Fu(l){return li(he||(he=_I||(_I=Li(["\n query MenuQuery(\n $appInfo: AppInfo!,\n $deviceInfo: DeviceInfo!,\n $authorization: Authorization!,\n $filter: MenuFilter,\n $first: Int,\n $after: String,\n $includeItems: Boolean!\n ) {\n catalog(\n appInfo: $appInfo\n deviceInfo: $deviceInfo\n authorization: $authorization\n ) {\n menusConnection(filter: $filter, first: $first, after: $after) {\n edges {\n node {\n id\n name\n properties {\n key\n value\n type\n }\n items @include(if: $includeItems) {\n id\n sortIndex\n parentId\n url\n name\n title\n description\n target\n cssClasses\n properties {\n key\n value\n type\n }\n thumbnails {\n kind\n url\n properties {\n key\n value\n }\n }\n }\n }\n },\n ","\n ","\n }\n }\n }\n"]))),Ws,Ns(null==l?void 0:l.totalCount))}(null==Te?void 0:Te.fetchOptions),{filter:null==Te?void 0:Te.menuFilter,first:null==Te?void 0:Te.first,after:null==Te?void 0:Te.after,includeItems:!(null==Te||!Te.includeItems)})).catalog;return Ie.toPage(nt.menusConnection,gt=>Ie.mapMenu(gt.node))});return function(Te){return $e.apply(this,arguments)}}()),(0,f.A)(this,"getCollections",function(){var $e=(0,s.A)(function*(Te){const nt=null==Te?void 0:Te.elementsParams,gt=null==Te?void 0:Te.fetchOptions,mt=null==nt?void 0:nt.fetchOptions,Kt=(yield Ie.queryWithAuthRetry(function Qc(l,i){return li(Ae||(Ae=yI||(yI=Li(["\nquery CatalogCollections(\n $appInfo: AppInfo!,\n $deviceInfo: DeviceInfo!,\n $authorization: Authorization!,\n $filter: CollectionFilter,\n $sort: [CollectionComparator!],\n $first: Int,\n $after: String,\n $includeElements: Boolean!,\n $elementsFirst: Int,\n $elementsAfter: String,\n $includeBundledContent: Boolean!,\n $includeResources: Boolean!,\n $includeBlocks: Boolean!,\n $includeHtml: Boolean!,\n $includeContentSeoMetadata: Boolean!,\n $propertyFilter: PropertyFilter\n) {\n catalog(appInfo: $appInfo, deviceInfo: $deviceInfo, authorization: $authorization) {\n collectionsConnection(\n filter: $filter\n sort: $sort\n first: $first\n after: $after\n ) {\n ","\n ","\n edges {\n node {\n id\n name\n properties {\n key\n value\n }\n elementsConnection(\n first: $elementsFirst,\n after: $elementsAfter\n ) @include(if: $includeElements) {\n ","\n ","\n edges {\n node {\n __typename\n ... on ContentElement {\n id\n sortIndex\n content {\n ...ContentFragment\n ...IssueFragment\n ...PostFragment\n ...BundleFragment\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}\n","\n","\n","\n","\n","\n"]))),Ws,Ns(null==l?void 0:l.totalCount),Ws,Ns(null==i?void 0:i.totalCount),xa,mi,na,ra,Yi)}(gt,mt),{filter:null==Te?void 0:Te.collectionFilter,sort:null==Te?void 0:Te.sort,first:null==Te?void 0:Te.first,after:null==Te?void 0:Te.after,includeElements:!(null==Te||!Te.includeElements),elementsFirst:null==nt?void 0:nt.first,elementsAfter:null==nt?void 0:nt.after,includeBlocks:!(null==mt||!mt.includeBlocks),includeHtml:!(null==mt||!mt.includeHtml),includeResources:!(null==mt||!mt.includeResources),includeBundledContent:!(null==mt||!mt.includeBundledContent),includeContentSeoMetadata:!(null==mt||!mt.seoMetadata),propertyFilter:null==mt?void 0:mt.properties})).catalog;return Ie.toPage(Kt.collectionsConnection,an=>Ie.mapCollection(an.node))});return function(Te){return $e.apply(this,arguments)}}()),(0,f.A)(this,"getCategories",function(){var $e=(0,s.A)(function*(Te){const nt=Ie.convertCategoriesParams(Te),gt=yield Ie.getTaxonomies(nt);return Ie.convertToCategoryPage(gt)});return function(Te){return $e.apply(this,arguments)}}()),(0,f.A)(this,"getTaxonomies",function(){var $e=(0,s.A)(function*(Te){var nt;const gt=null==Te?void 0:Te.contentsParams,mt=null==gt?void 0:gt.fetchOptions,Kt=(yield Ie.queryWithAuthRetry(function Ag(l,i){return li(ue||(ue=EI||(EI=Li(["\nquery CatalogTaxonomiesQuery(\n $appInfo: AppInfo!,\n $deviceInfo: DeviceInfo!,\n $authorization: Authorization!,\n $filter: TaxonomyFilter,\n $sort: [TaxonomyComparator!],\n $first: Int,\n $after: String,\n $includeTaxonomySeoMetadata: Boolean!,\n $includeContents: Boolean!,\n $contentFilter: ContentFilter,\n $contentSort: [ContentComparator!],\n $contentFirst: Int,\n $contentAfter: String,\n $includeBundledContent: Boolean!,\n $includeResources: Boolean!,\n $includeBlocks: Boolean!,\n $includeHtml: Boolean!,\n $includeContentSeoMetadata: Boolean!,\n $propertyFilter: PropertyFilter\n) {\n catalog(\n appInfo: $appInfo,\n deviceInfo: $deviceInfo,\n authorization: $authorization\n ) {\n taxonomiesConnection(\n first: $first,\n after: $after,\n sort: $sort,\n filter: $filter\n ) {\n ","\n ","\n edges {\n node {\n __typename\n ...TaxonomyFragment\n }\n }\n }\n }\n}\n","\n"]))),Ws,Ns(null==l?void 0:l.totalCount),function La(l){return li(de||(de=fI||(fI=Li(["\n fragment TaxonomyFragment on Taxonomy {\n id\n internalId\n name\n description\n type\n parentId\n seoMetadata @include(if: $includeTaxonomySeoMetadata) {\n key\n value\n }\n properties {\n key\n value\n }\n thumbnails {\n kind\n url\n properties {\n key\n value\n }\n }\n contentsConnection(\n filter: $contentFilter,\n sort: $contentSort,\n first: $contentFirst,\n after: $contentAfter\n ) @include(if: $includeContents) {\n ",",\n ",",\n edges {\n node {\n ...ContentFragment\n ...IssueFragment\n ...PostFragment\n ...BundleFragment\n }\n }\n }\n }\n\n ","\n ","\n ","\n ","\n ","\n"]))),Ws,Ns(null==l?void 0:l.totalCount),xa,mi,na,ra,Yi)}(i))}(null==Te?void 0:Te.fetchOptions,mt),{filter:null==Te?void 0:Te.taxonomyFilter,sort:null==Te?void 0:Te.sort,first:null==Te?void 0:Te.first,after:null==Te?void 0:Te.after,includeTaxonomySeoMetadata:!(null==Te||null===(nt=Te.fetchOptions)||void 0===nt||!nt.seoMetadata),includeContents:!(null==Te||!Te.includeContents),contentFilter:null==gt?void 0:gt.contentFilter,contentSort:null==gt?void 0:gt.sort,contentFirst:null==gt?void 0:gt.first,contentAfter:null==gt?void 0:gt.after,includeBundledContent:!(null==mt||!mt.includeBundledContent),includeResources:!(null==mt||!mt.includeResources),includeBlocks:!(null==mt||!mt.includeBlocks),includeHtml:!(null==mt||!mt.includeHtml),includeContentSeoMetadata:!(null==mt||!mt.seoMetadata),propertyFilter:null==mt?void 0:mt.properties})).catalog;return Ie.toPage(Kt.taxonomiesConnection,an=>Ie.mapTaxonomy(an.node))});return function(Te){return $e.apply(this,arguments)}}()),(0,f.A)(this,"getAppSettings",function(){var $e=(0,s.A)(function*(Te){const nt=(yield Ie.queryWithAuthRetry(function Cg(l){return li(oe||(oe=AI||(AI=Li(["\n query AppSettingsQuery(\n $appInfo: AppInfo!\n $deviceInfo: DeviceInfo!\n $authorization: Authorization!\n $filter: AppSettingFilter\n $first: Int\n $after: String\n ) {\n catalog(\n appInfo: $appInfo\n deviceInfo: $deviceInfo\n authorization: $authorization\n ) {\n appSettingsConnection(filter: $filter, first: $first, after: $after) {\n edges {\n node {\n key\n value\n }\n },\n ","\n ","\n }\n }\n }\n "]))),Ws,Ns(null==l?void 0:l.totalCount))}(null==Te?void 0:Te.fetchOptions),{filter:null==Te?void 0:Te.appSettingFilter,first:null==Te?void 0:Te.first,after:null==Te?void 0:Te.after})).catalog;return Ie.toPage(nt.appSettingsConnection,gt=>gt.node)});return function(Te){return $e.apply(this,arguments)}}()),(0,f.A)(this,"getRedirects",function(){var $e=(0,s.A)(function*(Te){const nt=(yield Ie.queryWithAuthRetry(function Uu(l){return li(_||(_=CI||(CI=Li(["\n query RedirectsQuery(\n $appInfo: AppInfo!\n $deviceInfo: DeviceInfo!\n $authorization: Authorization!\n $filter: RedirectFilter,\n $first: Int,\n $after: String\n ) {\n catalog(\n appInfo: $appInfo\n deviceInfo: $deviceInfo\n authorization: $authorization\n ) {\n redirectsConnection(filter: $filter, first: $first, after: $after) {\n edges {\n node {\n id\n identifier\n type\n target\n statusCode\n }\n },\n ","\n ","\n }\n }\n }\n "]))),Ws,Ns(null==l?void 0:l.totalCount))}(null==Te?void 0:Te.fetchOptions),{filter:null==Te?void 0:Te.redirectFilter,first:null==Te?void 0:Te.first,after:null==Te?void 0:Te.after})).catalog;return Ie.toPage(nt.redirectsConnection,gt=>Ie.mapRedirect(gt.node))});return function(Te){return $e.apply(this,arguments)}}()),(0,f.A)(this,"lookupPathSegments",function(){var $e=(0,s.A)(function*(Te){return(yield Ie.queryWithAuthRetry(function ps(){return li(O||(O=bI||(bI=Li(["\n query LookupPathSegmentsQuery(\n $appInfo: AppInfo!\n $deviceInfo: DeviceInfo!\n $authorization: Authorization!\n $pathSegments: [String!]!\n ) {\n catalog(\n appInfo: $appInfo\n deviceInfo: $deviceInfo\n authorization: $authorization\n ) {\n lookupPathSegments(pathSegments: $pathSegments) {\n identifier\n matches {\n __typename\n ... on ContentMatch {\n id\n contentType\n postType\n }\n ... on TaxonomyMatch {\n id\n identifier\n parentIdentifier\n name\n taxonomyType\n }\n ... on CollectionMatch {\n id\n name\n }\n ... on RedirectMatch {\n id\n identifier\n redirectType\n target\n statusCode\n }\n }\n }\n }\n }\n "]))))}(),{pathSegments:Te.pathSegments})).catalog.lookupPathSegments.map(nt=>Ie.mapPathSegmentLookupResult(nt))});return function(Te){return $e.apply(this,arguments)}}()),(0,f.A)(this,"search",function(){var $e=(0,s.A)(function*(Te){var nt,gt,mt,Kt,an,mn,In;let Mn=Te.contentFilter;if(Te.phrase||Te.issueFilter){const kr={contentType:{value:xr.CatalogContentType.ISSUE}};Mn=Te.issueFilter?{AND:[kr,Te.issueFilter]}:kr}let Cn=Te.sort;if(!Cn&&null!==(nt=Te.options)&&void 0!==nt&&nt.sortBy)switch(null===(gt=Te.options)||void 0===gt?void 0:gt.sortBy){case xr.SearchResultSortCriteria.RELEVANCE:Cn=[{relevance:{direction:xr.SortDirection.DESC}}];break;case xr.SearchResultSortCriteria.PUB_DATE_DESC:Cn=[{publicationDate:{direction:xr.SortDirection.DESC}}]}let Zn=null===(mt=Te.options)||void 0===mt?void 0:mt.pageSort;!Zn&&null!==(Kt=Te.options)&&void 0!==Kt&&Kt.sortPages&&(Zn=[{index:{direction:xr.SortDirection.ASC}}]);const er=Te.fetchOptions,Xn=(yield Ie.queryWithAuthRetry(function Fl(l){return li(ee||(ee=vI||(vI=Li(["\nquery CatalogSearchQuery(\n $appInfo: AppInfo!,\n $deviceInfo: DeviceInfo!,\n $authorization: Authorization!,\n $phrase: String!,\n $fields: [SearchField!],\n $fuzzy: Boolean,\n $pageSort: [IssuePageComparator!]\n $sort: [ContentSearchResultComparator!]\n $findAll: Boolean,\n $contentFilter: ContentFilter,\n $first: Int,\n $after: String,\n $includeHtml: Boolean!,\n $includeBlocks: Boolean!,\n $includeResources: Boolean!,\n $includeBundledContent: Boolean!,\n $includeContentSeoMetadata: Boolean!,\n $propertyFilter: PropertyFilter\n) {\n catalog(\n appInfo: $appInfo,\n deviceInfo: $deviceInfo,\n authorization: $authorization\n ) {\n contentSearchConnection(\n searchPhrase: $phrase,\n searchFields: $fields,\n contentFilter: $contentFilter,\n fuzzyMatching: $fuzzy,\n sort: $sort,\n findAllWords: $findAll,\n first: $first,\n after: $after\n ) {\n ","\n ","\n edges {\n searchResult: node {\n __typename\n ... on IssueSearchResult {\n issue {\n ...ContentFragment\n ...IssueFragment\n }\n pagesConnection(\n sort: $pageSort\n ) {\n edges {\n node {\n excerpt\n pageIndex\n pageNumber\n pageLabel\n pageTitle\n elementAlias\n }\n }\n }\n }\n ...PostSearchResultFragment\n ... on BundleSearchResult {\n bundle {\n ...ContentFragment\n ...BundleFragment\n }\n posts {\n ...PostSearchResultFragment\n }\n }\n }\n }\n }\n }\n}\n","\n","\n","\n","\n","\n","\n "]))),Ws,Ns(null==l?void 0:l.totalCount),zc,mi,xa,ra,na,Yi)}(er),{phrase:null!==(an=Te.searchPhrase)&&void 0!==an?an:Te.phrase,fields:Te.searchFields,fuzzy:null===(mn=Te.options)||void 0===mn?void 0:mn.fuzzy,sort:Cn,findAll:null===(In=Te.options)||void 0===In?void 0:In.findAll,contentFilter:Mn,pageSort:Zn,first:Te.first,after:Te.after,includeHtml:!(null==er||!er.includeHtml),includeBlocks:!(null==er||!er.includeBlocks),includeBundledContent:!(null==er||!er.includeBundledContent),includeResources:!(null==er||!er.includeResources),includeContentSeoMetadata:!(null==er||!er.seoMetadata),propertyFilter:null==er?void 0:er.properties})).catalog;return Ie.toPage(Xn.contentSearchConnection,kr=>Ie.mapSearchResult(kr.searchResult))});return function(Te){return $e.apply(this,arguments)}}()),this.getConfig=i,this.thisPurple=u,this.client=v,this.appInfo=y,this.deviceInfo=I,this.authorization=H}get config(){return this.getConfig()}getDataOrThrow(i){if(i.data)return i.data;throw{message:i.errors[0].message,code:"UNKNOWN"}}queryWithAuthRetry(i,u){var v=this;return(0,s.A)(function*(){var y;let I=yield v.client.query({query:i,variables:(0,g.A)((0,g.A)({},u),{},{appInfo:v.appInfo(),deviceInfo:v.deviceInfo(),authorization:v.authorization()})});if(null!==(y=I.errors)&&void 0!==y&&y.some(H=>"INVALID_ENTITLEMENT_TOKEN"===H.extensions.code)){if(console.warn("err: INVALID_ENTITLEMENT_TOKEN, refreshing token and retrying again"),!v.getConfig().entitlementRefreshToken)return v.logoutAndReturnResponse(I,"Error during refresh: no refreshToken");try{yield v.thisPurple.entitlement.refreshAccessToken()}catch(H){return v.logoutAndReturnResponse(I,"Error during refresh: logging user out",H)}console.debug("refreshed accessToken, retrying query again"),I=yield v.client.query({query:i,variables:(0,g.A)((0,g.A)({},u),{},{appInfo:v.appInfo(),deviceInfo:v.deviceInfo(),authorization:v.authorization()})})}return v.getDataOrThrow(I)})()}logoutAndReturnResponse(i,u,v){return console.error(u,v),this.thisPurple.entitlement.clearLocalData(),this.getDataOrThrow(i)}toPage(i,u){return{totalCount:i.totalCount,cursor:i.pageInfo.endCursor,hasNextPage:i.pageInfo.hasNextPage,nodes:i.edges.map(u).filter(v=>!!v)}}mapProperties(i){return i.reduce((u,v)=>(0,g.A)((0,g.A)({},u),{},{[v.key]:v.value}),{})}mapSeoMetadata(i){return null==i?void 0:i.reduce((u,v)=>(0,g.A)((0,g.A)({},u),{},{[v.key]:v.value}),{})}mapThumbnails(i){return i.reduce((u,v)=>(0,g.A)((0,g.A)({},u),{},{[v.kind]:v.url}),{})}mapThumbnailsExtended(i){return i.reduce((u,v)=>(u[v.kind]={kind:v.kind,url:v.url,properties:this.mapProperties(v.properties)},u),{})}mapPublication(i){return{id:i.id,currentContentId:i.currentContentId,currentIssueId:i.currentContentId,description:i.description,freeConsumable:i.freeConsumable,index:i.index,contents:i.contentsConnection?this.toPage(i.contentsConnection,u=>this.mapContent(u.node)):null,language:i.language,name:i.name,printSubscriptionEnabled:i.printSubscriptionEnabled,properties:this.mapProperties(i.properties),thumbnails:this.mapThumbnails(i.thumbnails),thumbnailsExtended:this.mapThumbnailsExtended(i.thumbnails),type:i.type,tocSettings:i.tocSettings}}mapIssueToCatalogPreviewIssue(i){return{id:V0(i.id),contentLength:i.contentLength,numberOfPages:i.numberOfPages,state:this.getIssueState(i.id),version:i.version}}getIssueState(i){return{installState:xr.ContentInstallState.NOT_INSTALLED,downloading:!1,issueId:i,progress:0,updateAvailable:!1}}mapIssue(i){const u=this.mapContent(i);if((null==u?void 0:u.contentType)!==xr.CatalogContentType.ISSUE)throw new Error("mapIssue received contentType: ".concat(u.contentType));return u}mapIssueSpecificFields(i){var u;return{comingSoon:!1,contentLength:i.contentLength,numberOfPages:i.numberOfPages,previewIssue:i.previewContentLength>0?this.mapIssueToCatalogPreviewIssue(i):void 0,state:this.getIssueState(i.id),purchasable:i.access===xr.Access.PURCHASABLE,type:xr.IssueType.ISSUE,externalIssueId:i.externalId,purchased:i.purchaseData.purchased,purchasedBy:i.purchaseData.purchased,categories:i.categories,tags:i.tags,resources:null===(u=i.resources)||void 0===u?void 0:u.map(v=>this.mapResource(v))}}mapPost(i){const u=this.mapContent(i);if((null==u?void 0:u.contentType)!==xr.CatalogContentType.POST)throw new Error("mapPost received contentType: "+u.contentType);return u}mapPostSpecificFields(i){var u,v,y,I;return{postType:i.postType,content:null===(u=i.content)||void 0===u?void 0:u.map(H=>this.mapPostBlock(H)),contentHtml:i.contentHtml,authors:null===(v=i.authors)||void 0===v?void 0:v.map(H=>this.mapAuthor(H)),resources:null===(y=i.resources)||void 0===y?void 0:y.map(H=>this.mapResource(H)),previewResources:null===(I=i.previewResources)||void 0===I?void 0:I.map(H=>this.mapResource(H)),taxonomies:i.taxonomies.map(H=>this.mapTaxonomySummary(H)),bundleId:i.bundleId,bundles:i.bundles.map(H=>this.mapBundleSummary(H))}}mapBundle(i){const u=this.mapContent(i);if((null==u?void 0:u.contentType)!==xr.CatalogContentType.BUNDLE)throw new Error("mapBundle received contentType: "+u.contentType);return u}mapPostBlock(i){return{id:i.id,html:i.html,children:i.children,level:i.level,properties:this.mapProperties(i.properties),sequence:i.sequence,type:i.type,parentId:i.parentId}}mapBundleSummary(i){return{id:i.id,bundleType:i.bundleType}}mapAuthor(i){return{name:i.name,email:i.email}}mapBundleSpecificFields(i){var u,v;return{bundleType:i.bundleType,taxonomies:i.taxonomies.map(y=>this.mapTaxonomySummary(y)),contents:null===(u=i.contents)||void 0===u?void 0:u.map(y=>this.mapBundleContent(y)),authors:null===(v=i.authors)||void 0===v?void 0:v.map(y=>this.mapAuthor(y))}}mapBundleContent(i){return{id:i.id,post:this.mapPost(i.content)}}mapContent(i){var u;const v=i.__typename.toUpperCase(),y={contentType:v,id:i.id,publicationId:i.publication.id,version:i.version,name:i.name,description:null!==(u=i.description)&&void 0!==u?u:"",alias:i.alias,externalId:i.externalId,publicationDate:Ao(i.publicationDate),lastModified:Ao(i.lastModified),unpublishDate:Ao(i.unpublishDate),index:i.index,productId:i.productId,access:i.access,purchaseData:i.purchaseData,properties:this.mapProperties(i.properties),seoMetadata:this.mapSeoMetadata(i.seoMetadata),thumbnails:this.mapThumbnails(i.thumbnails),thumbnailsExtended:this.mapThumbnailsExtended(i.thumbnails)};switch(v){case xr.CatalogContentType.ISSUE:return(0,g.A)((0,g.A)({},y),this.mapIssueSpecificFields(i));case xr.CatalogContentType.BUNDLE:return(0,g.A)((0,g.A)({},y),this.mapBundleSpecificFields(i));case xr.CatalogContentType.POST:return(0,g.A)((0,g.A)({},y),this.mapPostSpecificFields(i));default:return}}mapResource(i){return{id:i.id,url:i.url,properties:this.mapProperties(i.properties),contentLength:i.contentLength,type:i.type}}mapPathSegmentLookupResult(i){return{identifier:i.identifier,matches:i.matches.map(u=>this.mapPathSegmentMatch(u)).filter(u=>!!u)}}mapPathSegmentMatch(i){switch(i.__typename){case"ContentMatch":return{type:"CONTENT",contentType:i.contentType,id:i.id,postType:i.postType};case"TaxonomyMatch":return{type:"TAXONOMY",id:i.id,identifier:i.identifier,name:i.name,taxonomyType:i.taxonomyType,parentIdentifier:i.parentIdentifier};case"CollectionMatch":return{type:"COLLECTION",id:i.id,name:i.name};case"RedirectMatch":return{type:"REDIRECT",id:i.id,identifier:i.identifier,redirectType:i.redirectType,statusCode:i.statusCode,target:i.target};default:return}}mapTaxonomy(i){return{id:i.id,internalId:i.internalId,name:i.name,description:i.description,seoMetadata:this.mapSeoMetadata(i.seoMetadata),properties:this.mapProperties(i.properties),thumbnails:this.mapThumbnails(i.thumbnails),thumbnailsExtended:this.mapThumbnailsExtended(i.thumbnails),type:i.type,parentId:i.parentId,contents:i.contentsConnection?this.toPage(i.contentsConnection,u=>this.mapContent(u.node)):null}}mapTaxonomySummary(i){return{id:i.id,internalId:i.internalId,name:i.name,seoMetadata:this.mapSeoMetadata(i.seoMetadata),properties:this.mapProperties(i.properties),type:i.type,parentId:i.parentId}}mapCollection(i){return{id:i.id,name:i.name,properties:i.properties?this.mapProperties(i.properties):null,elements:i.elementsConnection?this.toPage(i.elementsConnection,u=>this.mapCollectionElement(u.node)):void 0}}mapCollectionElement(i){if("ContentElement"===i.__typename)return{id:i.id,sortIndex:i.sortIndex,type:"CONTENT",content:this.mapContent(i.content)}}mapIssueSearchResult(i){return{contentType:xr.CatalogContentType.ISSUE,issue:this.mapIssue(i.issue),pageHits:i.pagesConnection.edges.map(({node:u})=>({excerpt:u.excerpt,pageIndex:u.pageIndex,pageNumber:u.pageNumber,pageLabel:u.pageLabel,pageTitle:u.pageTitle,elementAlias:u.elementAlias}))}}mapPostSearchResult(i){return{contentType:xr.CatalogContentType.POST,excerpt:i.excerpt,post:this.mapPost(i.post)}}mapBundleSearchResult(i){return{contentType:xr.CatalogContentType.BUNDLE,bundle:this.mapBundle(i.bundle),posts:i.posts.map(u=>this.mapPostSearchResult(u))}}mapSearchResult(i){switch(i.__typename){case"IssueSearchResult":return this.mapIssueSearchResult(i);case"PostSearchResult":return this.mapPostSearchResult(i);case"BundleSearchResult":return this.mapBundleSearchResult(i);default:return}}mapRedirect(i){return{id:i.id,identifier:i.identifier,statusCode:i.statusCode,target:i.target,type:i.type}}mapMenu(i){var u;return{id:i.id,name:i.name,properties:this.mapProperties(i.properties),items:null===(u=i.items)||void 0===u?void 0:u.map(v=>this.mapMenuItem(v))}}mapMenuItem(i){return{id:i.id,name:i.name,properties:this.mapProperties(i.properties),title:i.title,description:i.description,target:i.target,cssClasses:i.cssClasses,sortIndex:i.sortIndex,url:i.url,parentId:i.parentId,thumbnailsExtended:this.mapThumbnailsExtended(i.thumbnails)}}getLocalIssues(){return(0,s.A)(function*(){return Promise.resolve({issues:[],previewIssues:[]})})()}getIssueStates(i){return(0,s.A)(function*(){return Object.fromEntries(i.issues.map(({issueId:u})=>[u,{issueId:u,installState:xr.ContentInstallState.NOT_INSTALLED,updateAvailable:!1,downloading:!1,progress:0}]))})()}startDownload(i){return(0,s.A)(function*(){console.warn("catalog.startDownload:"+Lr.NOT_IMPLEMENTED)})()}pauseDownload(i){return(0,s.A)(function*(){console.warn("catalog.pauseDownload:"+Lr.NOT_IMPLEMENTED)})()}addInvalidationListener(i){Qi.addListener(Ti.INVALIDATION,i)}addIssueStateListener(i,u){}deleteIssue(i){return(0,s.A)(function*(){console.warn("catalog.deleteIssue:"+Lr.NOT_IMPLEMENTED)})()}deleteIssues(i){return(0,s.A)(function*(){return console.warn("catalog.deleteIssues:"+Lr.NOT_IMPLEMENTED),{}})()}getMetadata(){return Promise.resolve({activePurchaseTypes:[]})}getPublicationProducts(i){return(0,s.A)(function*(){return console.warn("catalog.getPublicationProducts:"+Lr.NOT_IMPLEMENTED),{cursor:"",hasNextPage:!1,nodes:[],totalCount:0}})()}getSubscriptions(i){return(0,s.A)(function*(){return console.warn("catalog.getSubscriptions:"+Lr.NOT_IMPLEMENTED),{cursor:"",hasNextPage:!1,nodes:[],totalCount:0}})()}pauseDownloads(i){return(0,s.A)(function*(){return console.warn("catalog.pauseDownloads:"+Lr.NOT_IMPLEMENTED),{}})()}removeInvalidationListener(i){Qi.removeListener(Ti.INVALIDATION,i)}removeIssueStateListener(i,u){}startDownloads(i){return(0,s.A)(function*(){return console.warn("catalog.startDownloads:"+Lr.NOT_IMPLEMENTED),{}})()}syncLocalIssues(i){return(0,s.A)(function*(){console.warn("catalog.syncLocalIssues:"+Lr.NOT_IMPLEMENTED)})()}getProducts(i){return(0,s.A)(function*(){return console.warn("catalog.getProducts:"+Lr.NOT_IMPLEMENTED),{issues:[],subscriptions:[],publicationProducts:[],contents:[]}})()}convertIssueParams(i){return i?{contentFilter:this.issueToContentFilter(i.issueFilter,!0),sort:i.sort&&i.sort.map(u=>this.issueToContentSort(u)),first:i.first,after:i.after}:{contentFilter:this.issueToContentFilter(void 0,!0)}}convertCategoriesParams(i){return i?{taxonomyFilter:this.categoryToTaxonomyFilter(i.categoryFilter,!0),sort:i.sort&&i.sort.map(u=>this.categoryToTaxonomySort(u)),first:i.first,after:i.after,includeContents:i.includeIssues,contentsParams:i.includeIssues?this.convertIssueParams(i.issuesParams):void 0}:{taxonomyFilter:this.categoryToTaxonomyFilter(void 0,!0)}}convertPublicationsParams(i){var u;let v=null==i?void 0:i.contentsParams;return null!=i&&i.includeIssues&&(console.warn('PublicationParams: deprecated "includeIssues" used',i),v=this.convertIssueParams(null==i?void 0:i.issuesParams)),(0,g.A)((0,g.A)({},i),{},{publicationFilter:this.pubToPubFilter(null==i?void 0:i.publicationFilter),sort:null==i||null===(u=i.sort)||void 0===u?void 0:u.map(y=>this.pubToPubSort(y)),includeContents:(null==i?void 0:i.includeContents)||(null==i?void 0:i.includeIssues),contentsParams:v})}convertToCategoryPage(i){return{hasNextPage:i.hasNextPage,totalCount:i.totalCount,cursor:i.cursor,nodes:i.nodes.map(u=>({id:u.id,name:u.name,type:u.type,parentCategoryId:u.parentId,thumbnails:u.thumbnails,properties:u.properties,issues:u.contents}))}}issueToContentSort(i){return i&&{index:i.index,publicationDate:i.publicationDate,property:i.property}}categoryToTaxonomySort(i){return i&&{name:i.name,property:i.property}}pubToPubSort(i){if(i)return i.currentIssuePublicationDate&&console.warn('PublicationComparator: deprecated "currentIssuePublicationDate" use',i),{index:i.index,property:i.property,currentContentPublicationDate:i.currentContentPublicationDate||i.currentIssuePublicationDate}}categoryToTaxonomyFilter(i,u){const v=i&&{AND:i.AND&&i.AND.map(y=>this.categoryToTaxonomyFilter(y,!1)),OR:i.OR&&i.OR.map(y=>this.categoryToTaxonomyFilter(y,!1)),id:i.id,parentId:i.parentCategoryId,name:i.name,properties:i.properties,contents:this.issueListToContentListFilter(i.issues)};return u?this.wrapAsCategoryFilter(v):v}issueToContentFilter(i,u){const v=i&&{AND:i.AND&&i.AND.map(y=>this.issueToContentFilter(y,!1)),OR:i.OR&&i.OR.map(y=>this.issueToContentFilter(y,!1)),id:i.id,externalId:i.externalIssueId,alias:i.alias,publicationDate:i.publicationDate,access:this.purchasableToAccessFilter(i.purchasable),purchased:i.purchased,publication:this.pubToPubFilter(i.publication)||this.issueTypeToPubFilter(i.type),properties:i.properties,taxonomies:this.stringListToTaxonomyListFilter("category",i.categories)||this.stringListToTaxonomyListFilter("tag",i.tags)};return u?this.wrapAsIssueFilter(v):v}purchasableToAccessFilter(i){return i&&{value:xr.Access.FREE,negated:i.value}}stringListToTaxonomyListFilter(i,u){if(u)return{negated:u.negated,content:this.stringListContentToTaxonomyListContentFilter(i,u.content),size:u.size}}stringListContentToTaxonomyListContentFilter(i,u){if(u)return{operation:u.operation,value:this.stringFilterToTaxonomyFilter(i,u.value)}}stringFilterToTaxonomyFilter(i,u){return{AND:[{type:{value:i}},{id:u}]}}issueTypeToPubFilter(i){if(i)return{type:{negated:i.negated,value:"ARTICLE"===i.value?xr.PublicationType.CHANNEL:xr.PublicationType.KIOSK}}}pubToPubFilter(i){if(!i)return;let u=i.contents;return!i.contents&&i.issues&&(console.warn('PublicationFilter: deprecated "issues" used',i),u=this.issueListToContentListFilter(i.issues)),{AND:i.AND&&i.AND.map(v=>this.pubToPubFilter(v)),OR:i.OR&&i.OR.map(v=>this.pubToPubFilter(v)),id:i.id,type:i.type,language:i.language,properties:i.properties,contents:u}}issueListToContentListFilter(i){return i&&{negated:i.negated,content:this.issueListContentToContentListContentFilter(i.content),size:i.size}}issueListContentToContentListContentFilter(i){return i&&{operation:i.operation,value:this.issueToContentFilter(i.value,!0)}}wrapAsCategoryFilter(i){return i?{AND:[{type:{value:"category"}},i]}:{type:{value:"category"}}}wrapAsIssueFilter(i){return i?{AND:[{contentType:{value:xr.CatalogContentType.ISSUE}},i]}:{contentType:{value:xr.CatalogContentType.ISSUE}}}}function Ao(l){return new Date(l).getTime()}class gv{constructor(i){(0,f.A)(this,"version",new Ko(2,2)),this._getMetadata=i}getMetadata(i,u,v){return Promise.resolve((0,g.A)({},this._getMetadata(v)))}}const Qf=li(G||(G=TI||(TI=Li(["\n fragment AppWebConfigurationFields on AppWebConfiguration {\n id\n dynamicResources {\n lastModified\n }\n favicons {\n url\n mimeType\n }\n entitlementConfig {\n __typename\n ... on EntitlementConfig {\n dummy\n }\n ... on OAuthConfig {\n clientId\n tokenUrl\n loginUrl\n logoutUrl\n }\n }\n }\n"]))));class bg{constructor(){(0,f.A)(this,"version",new Ko(2,0))}getState(i,u){let v;v="string"==typeof i?i:i.key;let y=localStorage.getItem("storefront-"+v);if(void 0===y&&(y=null),!u)return Promise.resolve({key:v,value:y});u(v,y)}setState(i,u){let v,y;return"string"==typeof i?(v=i,y=u):(v=i.key,y=i.value),null==y?localStorage.removeItem("storefront-"+v):localStorage.setItem("storefront-"+v,y),Promise.resolve()}}class $0{constructor(i,u,v,y,I){(0,f.A)(this,"version",new Ko(2,4)),this.setConfigValue=i,this.getConfig=u,this.client=v,this.appInfo=y,this.deviceInfo=I}get config(){return this.getConfig()}sanitizeCode(i){return i.substring(0,255).trim().toUpperCase()}addSubscriptionCode(i){var u=this;return(0,s.A)(function*(){const v=u.sanitizeCode(i.code);if(u.config.subscriptionCodes.includes(v))throw{code:"DUPLICATE_CODE",message:"Code is already added: ".concat(i.code)};try{if(!((yield u.client.mutate({mutation:li(pe||(pe=DI||(DI=Li(["\n mutation CheckSubscriptionCodes(\n $appInfo: AppInfo!,\n $deviceInfo: DeviceInfo!\n $subscriptionCodes: [String!]!\n ) {\n subscriptionCodes(\n appInfo: $appInfo\n deviceInfo: $deviceInfo\n codes: $subscriptionCodes\n ) {\n codes {\n code\n valid\n }\n }\n }\n "])))),variables:{appInfo:u.appInfo(),deviceInfo:u.deviceInfo(),subscriptionCodes:[v]}})).data.subscriptionCodes.codes.filter(y=>y.code===v&&y.valid).length>0))throw{code:"INVALID_CODE",message:"Code is invalid: ".concat(i.code)};u.setConfigValue("subscriptionCodes",u.config.subscriptionCodes.concat(v)),Qi.sendEvent(Ti.INVALIDATION,{})}catch(y){throw console.warn(y),y}})()}addSubscriptionCodes(i,u){console.warn("store.addSubscriptionCodes:"+Lr.NOT_IMPLEMENTED),u({success:!0})}getPrices(i,u){return console.warn("store.getPrices:"+Lr.NOT_IMPLEMENTED),Promise.resolve({priceInfos:[]})}getSubscriptionCodes(i){const u=this.config.subscriptionCodes;if("function"!=typeof i)return Promise.resolve({subscriptionCodes:u});i(u)}openCodeRedemption(){return(0,s.A)(function*(){console.warn("store.purchase:"+Lr.NOT_IMPLEMENTED)})()}purchase(i,u){return console.warn("store.purchase:"+Lr.NOT_IMPLEMENTED),Promise.resolve({productId:"string"==typeof i?i:i.productId})}removeSubscriptionCode(i){var u=this;return(0,s.A)(function*(){const v=u.sanitizeCode(i.code),y=u.config.subscriptionCodes,I=y.indexOf(v);if(!(I>-1))throw{code:"UNKNOWN_CODE",message:"No such code found: ".concat(i.code)};y.splice(I,1),u.setConfigValue("subscriptionCodes",y),Qi.sendEvent(Ti.INVALIDATION,{})})()}removeSubscriptionCodes(i,u){}restorePurchases(i){console.warn("store.restorePurchases:"+Lr.NOT_IMPLEMENTED)}setPurchaseStateListener(i){}subscribe(i,u){return console.warn("store.subscribe:"+Lr.NOT_IMPLEMENTED),Promise.resolve({productId:"string"==typeof i?i:i.productId})}}class Sg{constructor(){(0,f.A)(this,"version",new Ko(2,1))}setUserAttribute(i){return(0,s.A)(function*(){console.warn("tracking.setUserAttribute:"+Lr.NOT_IMPLEMENTED)})()}trackAction(i,u,v){console.warn("tracking.trackAction:"+Lr.NOT_IMPLEMENTED)}trackPurchase(i,u,v,y,I,H,Ie){console.warn("tracking.trackPurchase:"+Lr.NOT_IMPLEMENTED)}trackView(i,u,v){console.warn("tracking.trackView:"+Lr.NOT_IMPLEMENTED)}debug(i){return(0,s.A)(function*(){console.warn("tracking.debug:"+Lr.NOT_IMPLEMENTED)})()}}const ya=li(Le||(Le=NI||(NI=Li(["\nfragment EntitlementFields on EntitlementResult {\n ... on EntitlementError {\n code\n message\n }\n ... on EntitlementUserData {\n accessToken\n refreshToken\n roles\n }\n}\n"]))));class Xc{constructor(i,u,v,y,I,H){(0,f.A)(this,"version",new Ko(1,2)),(0,f.A)(this,"isRefreshing",!1),(0,f.A)(this,"refreshSubscribers",[]),this.getMetadata=i,this.setConfigValue=u,this.getConfig=v,this.client=y,this.appInfo=I,this.deviceInfo=H}get config(){return this.getConfig()}entitlementMutation(i,u,v,y,I){var H=this;return(0,s.A)(function*(){try{const Ie=yield H.client.mutate({mutation:i,variables:(0,g.A)((0,g.A)({},u),{},{appInfo:H.appInfo(),deviceInfo:H.deviceInfo()})});return H.handleEntitlementResult(v(Ie.data),y,I)}catch(Ie){throw{code:Ie.code||xr.ERROR_CODE.UNKNOWN,message:Ie.message,error:Ie}}})()}handleEntitlementResult(i,u,v){const y=this.mapEntitlementResult(i);if(function Zc(l){return"code"in l}(y))throw y;return v&&this.setConfigValue("entitlementLogin",v),this.setConfigValue("entitlementToken",y.accessToken),y.refreshToken&&this.setConfigValue("entitlementRefreshToken",y.refreshToken),y.roles&&this.setConfigValue("entitlementRoles",y.roles),u&&Qi.sendEvent(Ti.INVALIDATION,{}),this.mapLoginResult(y)}getUserData(){return Promise.resolve({username:this.config.entitlementLogin,accessToken:this.config.entitlementToken,refreshToken:this.config.entitlementRefreshToken})}getRedirectUri(){const i=new URL(location.protocol+"//"+location.host+location.pathname+location.search),u=new URL(this.config.baseUrl).host;return i.pathname=i.host.indexOf(u)>-1||i.host.indexOf("localhost")>-1?i.pathname.split("/")[1]+"/":"",i.pathname=i.pathname+"oauth/callback",i.toString()}login(i){var u=this;return(0,s.A)(function*(){if(i.externalToken)return u.loginWithExternalToken(i.externalToken);{const v=u.config.entitlementConfig;switch(v.mode){case xr.ENTITLEMENT_MODE.ENTITLEMENT:return u.loginWithUsernameAndPassword(i.username,i.password);case xr.ENTITLEMENT_MODE.OAUTH:return u.loginWithOauth(v,i.state);default:throw{code:xr.ERROR_CODE.CONFIGURATION_ERROR,message:"No Entitlement configured"}}}})()}loginWithExternalToken(i){var u=this;return(0,s.A)(function*(){return yield u.entitlementMutation(function Xf(){return li(_e||(_e=RI||(RI=Li(["\n mutation LoginWithExternalToken(\n $appInfo: AppInfo!,\n $deviceInfo: DeviceInfo!,\n $externalToken: String!,\n ) {\n loginWithExternalToken(\n appInfo: $appInfo,\n deviceInfo: $deviceInfo,\n externalToken: $externalToken,\n ) {\n ... EntitlementFields\n }\n }",""]))),ya)}(),{externalToken:i},v=>v.loginWithExternalToken,!0)})()}loginWithUsernameAndPassword(i,u){var v=this;return(0,s.A)(function*(){return yield v.entitlementMutation(function _v(){return li(le||(le=OI||(OI=Li(["\n mutation Login(\n $appInfo: AppInfo!,\n $deviceInfo: DeviceInfo!,\n $username: String!,\n $password: String\n ) {\n login(\n appInfo: $appInfo,\n deviceInfo: $deviceInfo,\n username: $username,\n password: $password\n ) {\n ... EntitlementFields\n }\n }\n \n ",""]))),ya)}(),{username:i,password:u},y=>y.login,!0,i)})()}loginWithOauth(i,u){var v=this;return(0,s.A)(function*(){const y=new URL(i.loginUrl);y.searchParams.set("response_type","code"),y.searchParams.set("client_id",i.clientId),y.searchParams.set("device_id",v.config.deviceId);const I=v.getRedirectUri();y.searchParams.set("redirectUri",I);const H=function Zf(){var l=new Uint32Array(28);return window.crypto.getRandomValues(l),Array.from(l,Bl).join("")}(),Ie=yield function Tg(l){return Bu.apply(this,arguments)}(H);if(y.searchParams.set("code_challenge",Ie),y.searchParams.set("code_challenge_method","S256"),!v.config.deviceId)throw{code:"MISSING_DEVICE_ID",message:"oauth is only available if an deviceId was specified"};const $e=u||{};$e.verifier=H,$e.tokenRedirectUrl=I;const Te=encodeURIComponent(btoa(JSON.stringify($e)));return y.searchParams.set("state",Te),localStorage.setItem("loginState",Te),window.location.href=y.toString(),new Promise(()=>{})})()}checkForOauthEntitlement(){var i=this;return(0,s.A)(function*(){const u=localStorage.getItem("loginState"),v=localStorage.getItem("logoutState");return u?i.handleOauthLogin(u):v?i.handleOauthLogout(v):void 0})()}handleOauthLogin(i){var u=this;return(0,s.A)(function*(){const v=new URL(window.location.href),y=v.searchParams.get("code"),I=v.searchParams.get("state");if(i&&i!=I)throw{code:xr.ERROR_CODE.INVALID_CREDENTIALS,message:"Invalid State"};localStorage.removeItem("loginState");const H=JSON.parse(atob(decodeURIComponent(I))),Ie=JSON.parse(localStorage.getItem("AppWebConfiguration"));if(Ie.entitlementConfig.mode!==xr.ENTITLEMENT_MODE.OAUTH)throw{code:xr.ERROR_CODE.CONFIGURATION_ERROR,message:"Invalid entitlement mode"};const $e=Ie.entitlementConfig,Te=$e.clientId,nt=$e.tokenUrl;let gt=new FormData;gt.append("grant_type","authorization_code"),gt.append("code",y),gt.append("redirect_uri",H.tokenRedirectUrl),gt.append("code_verifier",H.verifier),gt.append("client_id",Te);let mt=yield(yield fetch(nt,{method:"POST",body:gt})).json();if(mt.error)throw{code:xr.ERROR_CODE.INVALID_CREDENTIALS,message:"Error when retrieving token"};if(mt.access_token){var Kt;const an={accessToken:mt.access_token,refreshToken:mt.refresh_token,roles:mt.roles,state:H};return u.setConfigValue("entitlementToken",an.accessToken),u.setConfigValue("entitlementRefreshToken",an.refreshToken),u.setConfigValue("entitlementRoles",an.roles),Qi.sendEvent(Ti.INVALIDATION,{}),null===(Kt=an.state)||void 0===Kt?void 0:Kt.redirectUrl}})()}logout(i){var u=this;return(0,s.A)(function*(){const v=u.config.entitlementToken,y=u.config.entitlementRefreshToken;if(!v)throw new Error("No accessToken to logout");try{const Ie=u.config.entitlementConfig;if(Ie.mode===xr.ENTITLEMENT_MODE.OAUTH&&Ie.logoutUrl){var I,H;const $e=new URL(Ie.logoutUrl);return $e.searchParams.set("redirect_uri",u.getRedirectUri()),$e.searchParams.set("device_id",u.config.deviceId),localStorage.setItem("logoutState",JSON.stringify({redirectUri:null!==(I=null==i||null===(H=i.state)||void 0===H?void 0:H.redirectUrl)&&void 0!==I?I:"purple://app/home/open"})),window.location.href=$e.href,new Promise(()=>{})}yield u.client.mutate({mutation:li(W||(W=PI||(PI=Li(["\n mutation Logout(\n $appInfo: AppInfo!,\n $deviceInfo: DeviceInfo!,\n $accessToken: String!,\n $refreshToken: String\n ) {\n logout(\n appInfo: $appInfo,\n deviceInfo: $deviceInfo,\n accessToken: $accessToken,\n refreshToken: $refreshToken\n )\n }"])))),variables:{appInfo:u.appInfo(),deviceInfo:u.deviceInfo(),accessToken:v,refreshToken:y}}),u.clearLocalData()}catch(Ie){throw console.warn(Ie),Ie}})()}handleOauthLogout(i){var u=this;return(0,s.A)(function*(){localStorage.removeItem("logoutState");const v=JSON.parse(i);return u.clearLocalData(),Promise.resolve(v.redirectUri)})()}refreshAccessToken(){var i=this;return(0,s.A)(function*(){const u=i.config.entitlementRefreshToken;if(!u)throw{code:"NO_REFRESH_TOKEN",message:"Tried to refresh without refresh token"};if(i.isRefreshing)return new Promise(v=>{i.addRefreshSubscriber(y=>{v(y)})});i.isRefreshing=!0;try{const v=yield i.entitlementMutation(function Yf(){return li(ae||(ae=wI||(wI=Li(["\n mutation RefreshAccessToken(\n $appInfo: AppInfo!,\n $deviceInfo: DeviceInfo!,\n $refreshToken: String!\n ) {\n refreshAccessToken(\n appInfo: $appInfo,\n deviceInfo: $deviceInfo\n refreshToken: $refreshToken\n ) {\n ... EntitlementFields\n }\n }\n ",""]))),ya)}(),{refreshToken:u},y=>y.refreshAccessToken,!1);return i.notifyRefreshSubscribers(v),v}catch(v){throw v}finally{i.isRefreshing=!1}})()}addRefreshSubscriber(i){this.refreshSubscribers.push(i)}notifyRefreshSubscribers(i){this.refreshSubscribers.forEach(u=>u(i)),this.refreshSubscribers=[]}mapLoginResult(i){return{accessToken:i.accessToken,refreshToken:i.refreshToken,roles:i.roles}}mapEntitlementResult(i){return i.accessToken?this.mapEntitlementUserData(i):this.mapEntitlementError(i)}mapEntitlementUserData(i){return{accessToken:i.accessToken,refreshToken:i.refreshToken,roles:i.roles}}mapEntitlementError(i){return{message:i.message,code:this.mapEntitlementErrorCode(i.code)}}mapEntitlementErrorCode(i){switch(i){case"WRONG_PASSWORD_OR_USERNAME":case"WRONG_PASSWORD":case"AUTHENTICATION_ERROR":return xr.ERROR_CODE.INVALID_CREDENTIALS;case"USER_DEACTIVATED":return xr.ERROR_CODE.USER_DEACTIVATED;case"INSTALLATION_LIMIT_EXCEEDED":return xr.ERROR_CODE.INSTALLATION_LIMIT_EXCEEDED;case"SYSTEM_ERROR_IN_REMOTE_SYSTEM":case"PARAMETER_ERROR_IN_REMOTE_SYSTEM":return xr.ERROR_CODE.CONFIGURATION_ERROR;default:return xr.ERROR_CODE.UNKNOWN}}invalidateTokens(i){null!=i&&i.refreshTokenOnly||this.setConfigValue("entitlementToken","devtest_".concat(this.config.entitlementToken)),null!=i&&i.accessTokenOnly||this.setConfigValue("entitlementRefreshToken","devtest_".concat(this.config.entitlementRefreshToken))}clearLocalData(){this.setConfigValue("entitlementLogin",null),this.setConfigValue("entitlementToken",null),this.setConfigValue("entitlementRefreshToken",null),this.setConfigValue("entitlementRoles",null),Qi.sendEvent(Ti.INVALIDATION,{})}verifyAccessToken(i){var u=this;return(0,s.A)(function*(){return yield u.entitlementMutation(function Yc(){return li(te||(te=MI||(MI=Li(["\n mutation VerifyToken(\n $appInfo: AppInfo!,\n $deviceInfo: DeviceInfo!,\n $accessToken: String!\n ) {\n verify(\n appInfo: $appInfo,\n deviceInfo: $deviceInfo,\n accessToken: $accessToken\n ) {\n ... EntitlementFields\n }\n }\n ",""]))),ya)}(),{accessToken:i.accessToken},v=>v.verify,!0)})()}}function Bl(l){return("0"+l.toString(16)).substr(-2)}function Bu(){return Bu=(0,s.A)(function*(l){const i=yield function Ig(l){const i=(new TextEncoder).encode(l);return window.crypto.subtle.digest("SHA-256",i)}(l);return function Jf(l){for(var i="",u=new Uint8Array(l),v=u.byteLength,y=0;y<v;y++)i+=String.fromCharCode(u[y]);return btoa(i).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}(i)}),Bu.apply(this,arguments)}const Dg="purple-catalog-audio-context";class yv{constructor(){(0,f.A)(this,"version",new Ko(2,0)),(0,f.A)(this,"audioElement",void 0),(0,f.A)(this,"title",void 0),(0,f.A)(this,"playbackRate",1),this.audioElement=document.getElementById(Dg),this.audioElement||this.setupAudioElement(),this.setupEventListeners()}setupAudioElement(){this.audioElement=document.createElement("audio"),this.audioElement.id=Dg,document.body.append(this.audioElement)}setupEventListeners(){this.audioElement.addEventListener("playing",()=>this.sendStatus({playbackState:"PLAYING"})),this.audioElement.addEventListener("pause",()=>this.sendStatus({playbackState:this.audioElement.src?"READY":"NONE"})),this.audioElement.addEventListener("timeupdate",()=>this.sendProgress({currentTime:1e3*this.audioElement.currentTime,duration:1e3*this.audioElement.duration})),this.audioElement.addEventListener("waiting",()=>this.sendStatus({playbackState:"LOADING"}))}sendStatus(i){const u=(0,g.A)({displayName:this.title,url:this.audioElement.src},i);Qi.sendEvent(Ti.MEDIA_STATUS,u)}sendProgress(i){Qi.sendEvent(Ti.MEDIA_PROGRESS,i)}addProgressListener(i){Qi.addListener(Ti.MEDIA_PROGRESS,i)}addStatusListener(i){Qi.addListener(Ti.MEDIA_STATUS,i)}getPlaybackRate(i){var u=this;return(0,s.A)(function*(){return{playbackRate:u.playbackRate}})()}pauseAudio(){var i=this;return(0,s.A)(function*(){i.audioElement.pause()})()}removeProgressListener(i){Qi.removeListener(Ti.MEDIA_PROGRESS,i)}removeStatusListener(i){Qi.removeListener(Ti.MEDIA_STATUS,i)}resumeAudio(){return this.audioElement.play()}seekTo(i){var u=this;return(0,s.A)(function*(){"number"==typeof i&&(i={time:i}),u.audioElement.currentTime=i.time/1e3})()}setPlaybackRate(i){var u=this;return(0,s.A)(function*(){return"number"==typeof i&&(i={playbackRate:i}),u.playbackRate=i.playbackRate,u.audioElement.playbackRate=u.playbackRate,{playbackRate:u.audioElement.playbackRate}})()}startAudio(i,u){var v=this;return(0,s.A)(function*(){"string"==typeof i&&(i={displayName:i,url:u}),v.audioElement.src=i.url,v.audioElement.playbackRate=v.playbackRate,v.title=i.displayName;try{return v.audioElement.play()}catch(y){v.sendStatus({playbackState:"ERROR"})}})()}stopAudio(){this.audioElement.pause(),this.audioElement.currentTime=0,this.audioElement.src=null,this.title=null,this.sendStatus({playbackState:"NONE"}),this.sendProgress({duration:-1,currentTime:0})}}class jl{constructor(){(0,f.A)(this,"version",new Ko(2,0))}getBaseUrl(){return(0,s.A)(function*(){return console.warn("issue.getBaseUrl:"+Lr.NOT_IMPLEMENTED),{baseUrl:""}})()}getPages(i){return(0,s.A)(function*(){return console.warn("issue.getPages:"+Lr.NOT_IMPLEMENTED),[]})()}getToc(i){return(0,s.A)(function*(){return console.warn("issue.getToc:"+Lr.NOT_IMPLEMENTED),[]})()}openFile(i){return(0,s.A)(function*(){console.warn("issue.openFile:"+Lr.NOT_IMPLEMENTED)})()}}class ju{constructor(){(0,f.A)(this,"version",new Ko(1,0))}share(i){return(0,s.A)(function*(){console.warn("Share.share:"+Lr.NOT_IMPLEMENTED)})()}}class H0{constructor(i){(0,f.A)(this,"version",new Ko(1,2)),this.getPagerInfo=i}getInfo(){return Promise.resolve(this.getPagerInfo())}navigateTo(i){return Promise.resolve(void 0)}addIssueChangeListener(i){}removeIssueChangeListener(i){}retryLoad(){}}class Og{constructor(){(0,f.A)(this,"version",new Ko(1,1))}getConsent(i){throw new Error("Method not implemented.")}grantConsent(i){throw new Error("Method not implemented.")}showPrivacyManager(){throw new Error("Method not implemented.")}getSystemConsent(){throw new Error("Method not implemented.")}showSystemPrivacyManager(){throw new Error("Method not implemented.")}}function Pg(l){return new Br(function(i,u){return new Ur(function(v){var y,I,H;try{y=u(i).subscribe({next:function(Ie){Ie.errors&&(H=l({graphQLErrors:Ie.errors,response:Ie,operation:i,forward:u}))?I=H.subscribe({next:v.next.bind(v),error:v.error.bind(v),complete:v.complete.bind(v)}):v.next(Ie)},error:function(Ie){(H=l({operation:i,networkError:Ie,graphQLErrors:Ie&&Ie.result&&Ie.result.errors,forward:u}))?I=H.subscribe({next:v.next.bind(v),error:v.error.bind(v),complete:v.complete.bind(v)}):v.error(Ie)},complete:function(){H||v.complete.bind(v)()}})}catch(Ie){l({networkError:Ie,operation:i,forward:u}),v.error(Ie)}return function(){y&&y.unsubscribe(),I&&y.unsubscribe()}})})}!function(l){function i(u){var v=l.call(this)||this;return v.link=Pg(u),v}dt(i,l),i.prototype.request=function(u,v){return this.link.request(u,v)}}(Br);class Mg{constructor(i,u){(0,f.A)(this,"version",new Ko(3,1)),(0,f.A)(this,"app",void 0),(0,f.A)(this,"appBrowser",void 0),(0,f.A)(this,"account",void 0),(0,f.A)(this,"bookmark",void 0),(0,f.A)(this,"content",void 0),(0,f.A)(this,"consent",void 0),(0,f.A)(this,"catalog",void 0),(0,f.A)(this,"entitlement",void 0),(0,f.A)(this,"experience",void 0),(0,f.A)(this,"issue",void 0),(0,f.A)(this,"issuePager",void 0),(0,f.A)(this,"media",void 0),(0,f.A)(this,"share",void 0),(0,f.A)(this,"storefront",void 0),(0,f.A)(this,"metadata",void 0),(0,f.A)(this,"state",void 0),(0,f.A)(this,"store",void 0),(0,f.A)(this,"tracking",void 0),(0,f.A)(this,"pageData",{}),(0,f.A)(this,"pagerInfo",void 0),(0,f.A)(this,"cache",new Rg),(0,f.A)(this,"client",void 0),this.config=i,this.onConfigChange=u;const v=Pg(({graphQLErrors:I})=>{null==I||I.forEach(H=>this.config.onGraphQLError(H))}),y=new tu({uri:"".concat(this.config.contentUrl,"/graphql")});this.client=new Ep({cache:this.cache,link:yi([v,y]),defaultOptions:{watchQuery:{fetchPolicy:"no-cache",errorPolicy:"ignore"},query:{fetchPolicy:"no-cache",errorPolicy:"all"},mutate:{errorPolicy:"all"}}}),this.account=new _g,this.app=new mg,this.appBrowser=new vg,this.bookmark=new yg,this.content=new xu,this.entitlement=new Xc(()=>this.configToMetadata(),(I,H)=>this.setConfigValue(I,H),()=>i,this.client,this.appInfo,this.deviceInfo),this.issue=new jl,this.issuePager=new H0(()=>this.pagerInfo),this.media=new yv,this.metadata=new gv(I=>this.configToMetadata(I)),this.share=new ju,this.state=new bg,this.store=new $0((I,H)=>this.setConfigValue(I,H),()=>i,this.client,this.appInfo,this.deviceInfo),this.tracking=new Sg,this.consent=new Og,this.catalog=null,this.storefront=null}appInfo(){return{appId:this.config.appId,appVersion:this.config.appVersion,preview:this.config.preview}}deviceInfo(){var i;return{deviceId:this.config.deviceId,deviceModel:this.config.deviceModel,locale:this.config.locale,smallestScreenWidthDp:this.config.smallestScreenWidthDp,deviceOs:this.config.deviceOs,platform:(null!==(i=this.config.platform)&&void 0!==i?i:"web").toUpperCase()}}authorization(){return{accessToken:this.config.entitlementToken,subscriptionCodes:this.config.subscriptionCodes,accountAccessToken:this.config.accountAccessToken}}closeView(){console.warn("closeView:"+Lr.NOT_IMPLEMENTED)}setConfig(i,u){this.config=i,this.onConfigChange((0,g.A)({},this.config),u)}setConfigValue(i,u){this.config[i]=u,this.setConfig(this.config,i)}setPageData(i,u){this.pageData[i]=u}setIssuePagerInfo(i){this.pagerInfo=i}configToMetadata(i){const u=this.pageData[i]||{};return this.config.preview=this.config.preview||!1,{app_id:this.config.appId,app_version:this.config.appVersion,bundle_id:this.config.bundleId,device_id:this.config.deviceId,device_model:this.config.deviceModel,device_os:this.config.deviceOs,entitlement_forced_login_enabled:this.config.entitlementForcedLoginEnabled,entitlement_login:this.config.entitlementLogin,entitlement_login_mode:this.config.entitlementLoginMode,entitlement_mode:this.config.entitlementConfig.mode,entitlement_token:this.config.entitlementToken,locale:this.config.locale,manager_base_url:this.config.baseUrl,platform:this.config.platform,preview_app:this.config.preview.toString(),purple_version:this.config.purple_version,issue_id:this.config.issueId,issue_name:this.config.issueName,publication_Id:this.config.publicationId,publication_name:this.config.publicationName,page_id:u.id,page_alias:u.alias,page_label:u.label,page_title:u.title,page_filename:u.filename,page_number:u.number}}}class Vl extends Mg{constructor(i,u){super(i,u),this.config=i,this.onConfigChange=u,this.catalog=new pv(()=>this.config,this,this.client,this.appInfo,this.deviceInfo,this.authorization)}static getAppIdByPath(i,u,v=!1){return(0,s.A)(function*(){return Vl.getAppWebConfig(function zf(){return li(B||(B=II||(II=Li(["\n query AppWebConfigForPath(\n $path: String!\n $preview: Boolean! = false\n ) {\n appConfigurationForPath(\n path: $path,\n preview: $preview\n ) {\n ... AppWebConfigurationFields\n }\n }\n ","\n "]))),Qf)}(),y=>y.appConfigurationForPath,u,{path:i,preview:v})})()}static getAppIdByDomain(i,u,v){return(0,s.A)(function*(){return Vl.getAppWebConfig(function mv(){return li(x||(x=SI||(SI=Li(["\n query AppWebConfigForDomain(\n $domainName: String!\n $preview: Boolean! = false\n ) {\n appConfigurationForDomain(\n domainName: $domainName,\n preview: $preview\n ) {\n ... AppWebConfigurationFields\n }\n }\n ","\n "]))),Qf)}(),y=>y.appConfigurationForDomain,u,{domainName:i,preview:v})})()}static getAppWebConfig(i,u,v,y){return(0,s.A)(function*(){const I=function wg(l){return new Ep({uri:l+"/graphql",cache:new Rg,defaultOptions:{watchQuery:{fetchPolicy:"no-cache",errorPolicy:"ignore"},query:{fetchPolicy:"no-cache",errorPolicy:"all"}}})}(v),H=yield I.query({query:i,variables:y});return I.stop(),Vl.mapAppConfiguration(u(H.data))})()}static mapAppConfiguration(i){var u;return i?{id:i.id,dynamicResources:{lastModified:null===(u=i.dynamicResources)||void 0===u?void 0:u.lastModified},favicons:i.favicons.map(v=>Vl.mapFavicons(v)),entitlementConfig:Vl.mapEntitlementConfig(i.entitlementConfig)}:null}static mapFavicons(i){if(i)return{url:i.url,mimeType:i.mimeType}}static mapEntitlementConfig(i){switch(null==i?void 0:i.__typename){case"EntitlementConfig":return{mode:xr.ENTITLEMENT_MODE.ENTITLEMENT};case"OAuthConfig":return{mode:xr.ENTITLEMENT_MODE.OAUTH,clientId:i.clientId,loginUrl:i.loginUrl,tokenUrl:i.tokenUrl,logoutUrl:i.logoutUrl};default:return{mode:xr.ENTITLEMENT_MODE.NONE}}}}class Rg extends np{constructor(...i){super(...i),(0,f.A)(this,"read",()=>null),(0,f.A)(this,"write",()=>{}),(0,f.A)(this,"diff",()=>({})),(0,f.A)(this,"watch",()=>()=>{}),(0,f.A)(this,"reset",(0,s.A)(function*(){})),(0,f.A)(this,"evict",()=>!1),(0,f.A)(this,"restore",()=>this),(0,f.A)(this,"extract",()=>({})),(0,f.A)(this,"removeOptimistic",()=>{}),(0,f.A)(this,"batch",()=>{}),(0,f.A)(this,"performTransaction",()=>{}),(0,f.A)(this,"recordOptimisticTransaction",()=>{}),(0,f.A)(this,"transformDocument",u=>u),(0,f.A)(this,"transformForLink",u=>u),(0,f.A)(this,"identify",()=>{}),(0,f.A)(this,"gc",()=>[]),(0,f.A)(this,"modify",()=>!1),(0,f.A)(this,"readQuery",()=>null),(0,f.A)(this,"readFragment",()=>null),(0,f.A)(this,"writeQuery",()=>{}),(0,f.A)(this,"writeFragment",()=>{}),(0,f.A)(this,"updateQuery",()=>null),(0,f.A)(this,"updateFragment",()=>null)}}class Ng{constructor(i){(0,f.A)(this,"purple",void 0),(0,f.A)(this,"getCssUrls",void 0),(0,f.A)(this,"getResourceUrl",void 0),(0,f.A)(this,"onLocationChange",void 0),(0,f.A)(this,"onSetTitle",void 0),(0,f.A)(this,"windows",[]),(0,f.A)(this,"messageEventListener",void 0),(0,f.A)(this,"invalidationEventListener",void 0),(0,f.A)(this,"audioStatusListener",void 0),(0,f.A)(this,"audioProgressListener",void 0),(0,f.A)(this,"issuePagerStateListener",void 0),this.purple=i.purple,this.getCssUrls=i.getCssUrls||(()=>({})),this.getResourceUrl=i.getResourceUrl||(u=>u),this.onLocationChange=i.onLocationChange||(u=>{}),this.onSetTitle=i.onSetTitle||(u=>{}),this.setup()}setup(){var i=this;this.messageEventListener=function(){var u=(0,s.A)(function*(v){if(i.windows.includes(v.source))try{const y=JSON.parse(v.data),{callback:I,key:H,params:Ie,webViewId:$e,pageId:Te}=y;if(I&&H){let nt,gt;try{nt=yield i.handleMessage(H,Ie,$e,Te)}catch(mt){console.warn(mt),gt=mt}v.source.postMessage(JSON.stringify({callback:I,data:nt,error:gt}),"*")}}catch(y){console.warn(y)}});return function(v){return u.apply(this,arguments)}}(),this.invalidationEventListener=u=>{this.windows.forEach(v=>{v.postMessage(JSON.stringify({key:ku.INVALIDATION,data:u.detail}),"*")})},this.audioStatusListener=u=>{this.windows.forEach(v=>{v.postMessage(JSON.stringify({key:ku.MEDIA_STATUS,data:u.detail}),"*")})},this.audioProgressListener=u=>{this.windows.forEach(v=>{v.postMessage(JSON.stringify({key:ku.MEDIA_PROGRESS,data:u.detail}),"*")})},this.issuePagerStateListener=u=>{this.windows.forEach(v=>{v.postMessage(JSON.stringify({key:ku.ISSUE_PAGER_STATE,data:u.detail}),"*")})},Qi.addListener(Ti.INVALIDATION,this.invalidationEventListener),Qi.addListener(Ti.MEDIA_STATUS,this.audioStatusListener),Qi.addListener(Ti.MEDIA_PROGRESS,this.audioProgressListener),Qi.addListener(Ti.ISSUE_PAGER_STATE,this.issuePagerStateListener),window.addEventListener("message",this.messageEventListener)}destroy(){window.removeEventListener("message",this.messageEventListener),Qi.removeListener(Ti.INVALIDATION,this.invalidationEventListener),Qi.removeListener(Ti.MEDIA_STATUS,this.audioStatusListener),Qi.removeListener(Ti.MEDIA_PROGRESS,this.audioProgressListener),Qi.removeListener(Ti.ISSUE_PAGER_STATE,this.issuePagerStateListener)}connectWindow(i){i.postMessage(ar.ENV_INIT,"*"),this.windows.push(i)}disconnectWindow(i){this.windows=this.windows.filter(u=>u!==i)}handleMessage(i,u,v,y){var I=this;return(0,s.A)(function*(){var H,Ie,$e,Te,nt,gt,mt,Kt,an,mn,In,en,Mn,Cn,Zn,er,Xn,kr,$r,xi,Di,Xi,ts,Gs,$l,ka,Fa,Kl,xs,Ho,Vu,Hl,ia,ll,ul,qf,eh,th,nh,rh,$u,ih,oh,Jc,Ku;switch(i){case ar.APP_PERFORM_ACTION_URL:return null===(H=I.purple.app)||void 0===H?void 0:H.performActionUrl(u);case ar.APP_BROWSER_GET_DISPLAY_CONFIG:return I.purple.appBrowser.getDisplayConfig();case ar.ACCOUNT_ASSIGN_LOCAL_PURCHASES:return null===(Ie=I.purple.account)||void 0===Ie?void 0:Ie.assignLocalPurchases(u);case ar.ACCOUNT_GET_USER_DATA:return null===($e=I.purple.account)||void 0===$e?void 0:$e.getUserData();case ar.ACCOUNT_LOGIN:return null===(Te=I.purple.account)||void 0===Te?void 0:Te.login(u);case ar.ACCOUNT_LOGOUT:return null===(nt=I.purple.account)||void 0===nt?void 0:nt.logout();case ar.BOOKMARK_CREATE:return null===(gt=I.purple.bookmark)||void 0===gt?void 0:gt.createBookmark(u);case ar.BOOKMARK_DELETE:return null===(mt=I.purple.bookmark)||void 0===mt?void 0:mt.deleteBookmark(u);case ar.BOOKMARK_GET:return null===(Kt=I.purple.bookmark)||void 0===Kt?void 0:Kt.getBookmarks();case ar.CATALOG_GET_CATEGORIES:return null===(an=I.purple.catalog)||void 0===an?void 0:an.getCategories(u);case ar.CATALOG_GET_ISSUES:return null===(mn=I.purple.catalog)||void 0===mn?void 0:mn.getIssues(u);case ar.CATALOG_GET_METADATA:return null===(In=I.purple.catalog)||void 0===In?void 0:In.getMetadata();case ar.CATALOG_GET_PUBLICATIONS:return null===(en=I.purple.catalog)||void 0===en?void 0:en.getPublications(u);case ar.CATALOG_GET_PUBLICATION_PRODUCTS:return null===(Mn=I.purple.catalog)||void 0===Mn?void 0:Mn.getPublicationProducts(u);case ar.CATALOG_GET_SUBSCRIPTIONS:return null===(Cn=I.purple.catalog)||void 0===Cn?void 0:Cn.getSubscriptions(u);case ar.CATALOG_SEARCH:return null===(Zn=I.purple.catalog)||void 0===Zn?void 0:Zn.search(u);case ar.CATALOG_GET_ISSUE_STATES:return null===(er=I.purple.catalog)||void 0===er?void 0:er.getIssueStates(u);case ar.CLOSE_VIEW:return I.purple.closeView();case ar.CONTENT_OPEN:return I.purple.content.open(u);case ar.ENTITLEMENT_GET_USER_DATA:return null===(Xn=I.purple.entitlement)||void 0===Xn?void 0:Xn.getUserData();case ar.ENTITLEMENT_LOGIN:return null===(kr=I.purple.entitlement)||void 0===kr?void 0:kr.login(u);case ar.ENTITLEMENT_LOGOUT:return null===($r=I.purple.entitlement)||void 0===$r?void 0:$r.logout();case ar.ENV_RESOURCE_URL:return I.getResourceUrl(u);case ar.ENV_RESIZE:return I.handleResize(v,u);case ar.ENV_CSS_URLS:return I.getCssUrls();case ar.ENV_TITLE:return I.onSetTitle(u);case ar.ENV_LOCATION:return I.onLocationChange(u);case ar.ISSUE_GET_BASE_URL:return null===(xi=I.purple.issue)||void 0===xi?void 0:xi.getBaseUrl();case ar.ISSUE_GET_PAGES:return new Promise(Ea=>{var to;return null===(to=I.purple.issue)||void 0===to?void 0:to.getPages(Ea)});case ar.ISSUE_GET_TOC:return new Promise(Ea=>{var to;return null===(to=I.purple.issue)||void 0===to?void 0:to.getToc(Ea)});case ar.ISSUE_PAGER_GET_INFO:return null===(Di=I.purple.issuePager)||void 0===Di?void 0:Di.getInfo();case ar.ISSUE_PAGER_NAVIGATE_TO:return null===(Xi=I.purple.issuePager)||void 0===Xi?void 0:Xi.navigateTo(u);case ar.MEDIA_START_AUDIO:return null===(ts=I.purple.media)||void 0===ts?void 0:ts.startAudio(u);case ar.MEDIA_PAUSE_AUDIO:return null===(Gs=I.purple.media)||void 0===Gs?void 0:Gs.pauseAudio();case ar.MEDIA_RESUME_AUDIO:return null===($l=I.purple.media)||void 0===$l?void 0:$l.resumeAudio();case ar.MEDIA_STOP_AUDIO:return null===(ka=I.purple.media)||void 0===ka?void 0:ka.stopAudio();case ar.MEDIA_SEEK_TO:return null===(Fa=I.purple.media)||void 0===Fa?void 0:Fa.seekTo(u);case ar.MEDIA_GET_PLAYBACK_RATE:return null===(Kl=I.purple.media)||void 0===Kl?void 0:Kl.getPlaybackRate();case ar.MEDIA_SET_PLAYBACK_RATE:return null===(xs=I.purple.media)||void 0===xs?void 0:xs.setPlaybackRate(u);case ar.METADATA_GET_METADATA:return null===(Ho=I.purple.metadata)||void 0===Ho?void 0:Ho.getMetadata(u,null,y);case ar.SHARE_SHARE:return null===(Vu=I.purple.share)||void 0===Vu?void 0:Vu.share(u);case ar.STATE_GET_STATE:return null===(Hl=I.purple.state)||void 0===Hl?void 0:Hl.getState(u);case ar.STATE_SET_STATE:return null===(ia=I.purple.state)||void 0===ia?void 0:ia.setState(u);case ar.STORE_ADD_SUBSCRIPTION_CODE:return null===(ll=I.purple.store)||void 0===ll?void 0:ll.addSubscriptionCode(u);case ar.STORE_ADD_SUBSCRIPTION_CODES:return new Promise(Ea=>{var to;return null===(to=I.purple.store)||void 0===to?void 0:to.addSubscriptionCodes(u,Ea)});case ar.STORE_GET_PRICES:return null===(ul=I.purple.store)||void 0===ul?void 0:ul.getPrices(u);case ar.STORE_GET_SUBSCRIPTION_CODES:return null===(qf=I.purple.store)||void 0===qf?void 0:qf.getSubscriptionCodes();case ar.STORE_OPEN_CODE_REDEMPTION:return null===(eh=I.purple.store)||void 0===eh?void 0:eh.openCodeRedemption();case ar.STORE_PURCHASE:return null===(th=I.purple.store)||void 0===th?void 0:th.purchase(u);case ar.STORE_REMOVE_SUBSCRIPTION_CODE:return null===(nh=I.purple.store)||void 0===nh?void 0:nh.removeSubscriptionCode(u);case ar.STORE_REMOVE_SUBSCRIPTION_CODES:return new Promise(Ea=>{var to;return null===(to=I.purple.store)||void 0===to?void 0:to.removeSubscriptionCodes(u,Ea)});case ar.STORE_RESTORE_PURCHASES:return null===(rh=I.purple.store)||void 0===rh?void 0:rh.restorePurchases();case ar.STORE_SUBSCRIBE:return null===($u=I.purple.store)||void 0===$u?void 0:$u.subscribe(u);case ar.TRACKING_TRACK_ACTION:return null===(ih=I.purple.tracking)||void 0===ih?void 0:ih.trackAction(u);case ar.TRACKING_TRACK_VIEW:return null===(oh=I.purple.tracking)||void 0===oh?void 0:oh.trackView(u);case ar.TRACKING_TRACK_PURCHASE:return null===(Jc=I.purple.tracking)||void 0===Jc?void 0:Jc.trackPurchase(u);case ar.TRACKING_SET_USER_ATTRIBUTE:return null===(Ku=I.purple.tracking)||void 0===Ku?void 0:Ku.setUserAttribute(u)}})()}handleResize(i,u){return(0,s.A)(function*(){if(i){const v="webView-"+i;let y=document.getElementById(v);y||(y=document.createElement("style"),y.id=v,document.head.appendChild(y)),y.innerHTML="@media print {#"+i+" iframe {height: "+u+"px !important;}}"}})()}print(i){i.postMessage(ar.ENV_PRINT,"*")}back(i){i.postMessage(ar.ENV_BACK,"*")}forward(i){i.postMessage(ar.ENV_FORWARD,"*")}reload(i){i.postMessage(ar.ENV_RELOAD,"*")}}},9360:(se,E,c)=>{"use strict";function g(U){return null!==U&&"object"==typeof U&&"constructor"in U&&U.constructor===Object}function s(U={},q={}){Object.keys(q).forEach(z=>{typeof U[z]>"u"?U[z]=q[z]:g(q[z])&&g(U[z])&&Object.keys(q[z]).length>0&&s(U[z],q[z])})}c.d(E,{YE:()=>d,zk:()=>R});const f={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function d(){const U=typeof document<"u"?document:{};return s(U,f),U}const S={document:f,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:U=>typeof setTimeout>"u"?(U(),null):setTimeout(U,0),cancelAnimationFrame(U){typeof setTimeout>"u"||clearTimeout(U)}};function R(){const U=typeof window<"u"?window:{};return s(U,S),U}},467:(se,E,c)=>{"use strict";function g(f,d,S,R,U,q,z){try{var ve=f[q](z),de=ve.value}catch(V){return void S(V)}ve.done?d(de):Promise.resolve(de).then(R,U)}function s(f){return function(){var d=this,S=arguments;return new Promise(function(R,U){var q=f.apply(d,S);function z(de){g(q,R,U,z,ve,"next",de)}function ve(de){g(q,R,U,z,ve,"throw",de)}z(void 0)})}}c.d(E,{A:()=>s})},1660:(se,E,c)=>{"use strict";c.d(E,{A:()=>d});var g=c(2284);function d(S,R,U){return(R=function f(S){var R=function s(S,R){if("object"!=(0,g.A)(S)||!S)return S;var U=S[Symbol.toPrimitive];if(void 0!==U){var q=U.call(S,R||"default");if("object"!=(0,g.A)(q))return q;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===R?String:Number)(S)}(S,"string");return"symbol"==(0,g.A)(R)?R:R+""}(R))in S?Object.defineProperty(S,R,{value:U,enumerable:!0,configurable:!0,writable:!0}):S[R]=U,S}},9379:(se,E,c)=>{"use strict";c.d(E,{A:()=>f});var g=c(1660);function s(d,S){var R=Object.keys(d);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(d);S&&(U=U.filter(function(q){return Object.getOwnPropertyDescriptor(d,q).enumerable})),R.push.apply(R,U)}return R}function f(d){for(var S=1;S<arguments.length;S++){var R=null!=arguments[S]?arguments[S]:{};S%2?s(Object(R),!0).forEach(function(U){(0,g.A)(d,U,R[U])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(R)):s(Object(R)).forEach(function(U){Object.defineProperty(d,U,Object.getOwnPropertyDescriptor(R,U))})}return d}},2305:(se,E,c)=>{"use strict";function s(f,d){if(null==f)return{};var S,R,U=function g(f,d){if(null==f)return{};var S={};for(var R in f)if({}.hasOwnProperty.call(f,R)){if(d.includes(R))continue;S[R]=f[R]}return S}(f,d);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(f);for(R=0;R<q.length;R++)d.includes(S=q[R])||{}.propertyIsEnumerable.call(f,S)&&(U[S]=f[S])}return U}c.d(E,{A:()=>s})},2284:(se,E,c)=>{"use strict";function g(s){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(f){return typeof f}:function(f){return f&&"function"==typeof Symbol&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f})(s)}c.d(E,{A:()=>g})},7027:(se,E,c)=>{"use strict";c.d(E,{A:()=>d});var g=c(2284);function s(S,R){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(U,q){return U.__proto__=q,U})(S,R)}function d(){d=function(ve,de){return new U(ve,void 0,de)};var S=RegExp.prototype,R=new WeakMap;function U(z,ve,de){var V=RegExp(z,ve);return R.set(V,de||R.get(z)),s(V,U.prototype)}function q(z,ve){var de=R.get(ve);return Object.keys(de).reduce(function(V,Q){var ie=de[Q];if("number"==typeof ie)V[Q]=z[ie];else{for(var K=0;void 0===z[ie[K]]&&K+1<ie.length;)K++;V[Q]=z[ie[K]]}return V},Object.create(null))}return function f(S,R){if("function"!=typeof R&&null!==R)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(R&&R.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),Object.defineProperty(S,"prototype",{writable:!1}),R&&s(S,R)}(U,RegExp),U.prototype.exec=function(z){var ve=S.exec.call(this,z);if(ve){ve.groups=q(ve,this);var de=ve.indices;de&&(de.groups=q(de,this))}return ve},U.prototype[Symbol.replace]=function(z,ve){if("string"==typeof ve){var de=R.get(this);return S[Symbol.replace].call(this,z,ve.replace(/\$<([^>]+)>/g,function(Q,ie){var K=de[ie];return"$"+(Array.isArray(K)?K.join("$"):K)}))}if("function"==typeof ve){var V=this;return S[Symbol.replace].call(this,z,function(){var Q=arguments;return"object"!=(0,g.A)(Q[Q.length-1])&&(Q=[].slice.call(Q)).push(q(Q,V)),ve.apply(this,Q)})}return S[Symbol.replace].call(this,z,ve)},d.apply(this,arguments)}},1635:(se,E,c)=>{"use strict";function V(we,ze,Ke,je){return new(Ke||(Ke=Promise))(function(k,F){function Y(Se){try{ce(je.next(Se))}catch(Be){F(Be)}}function P(Se){try{ce(je.throw(Se))}catch(Be){F(Be)}}function ce(Se){Se.done?k(Se.value):function Ze(k){return k instanceof Ke?k:new Ke(function(F){F(k)})}(Se.value).then(Y,P)}ce((je=je.apply(we,ze||[])).next())})}function _(we){return this instanceof _?(this.v=we,this):new _(we)}function O(we,ze,Ke){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ze,je=Ke.apply(we,ze||[]),k=[];return Ze={},Y("next"),Y("throw"),Y("return",function F(zt){return function(Mt){return Promise.resolve(Mt).then(zt,Be)}}),Ze[Symbol.asyncIterator]=function(){return this},Ze;function Y(zt,Mt){je[zt]&&(Ze[zt]=function(He){return new Promise(function(lt,Et){k.push([zt,He,lt,Et])>1||P(zt,He)})},Mt&&(Ze[zt]=Mt(Ze[zt])))}function P(zt,Mt){try{!function ce(zt){zt.value instanceof _?Promise.resolve(zt.value.v).then(Se,Be):Tt(k[0][2],zt)}(je[zt](Mt))}catch(He){Tt(k[0][3],He)}}function Se(zt){P("next",zt)}function Be(zt){P("throw",zt)}function Tt(zt,Mt){zt(Mt),k.shift(),k.length&&P(k[0][0],k[0][1])}}function B(we){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ke,ze=we[Symbol.asyncIterator];return ze?ze.call(we):(we=function ee(we){var ze="function"==typeof Symbol&&Symbol.iterator,Ke=ze&&we[ze],je=0;if(Ke)return Ke.call(we);if(we&&"number"==typeof we.length)return{next:function(){return we&&je>=we.length&&(we=void 0),{value:we&&we[je++],done:!we}}};throw new TypeError(ze?"Object is not iterable.":"Symbol.iterator is not defined.")}(we),Ke={},je("next"),je("throw"),je("return"),Ke[Symbol.asyncIterator]=function(){return this},Ke);function je(k){Ke[k]=we[k]&&function(F){return new Promise(function(Y,P){!function Ze(k,F,Y,P){Promise.resolve(P).then(function(ce){k({value:ce,done:Y})},F)}(Y,P,(F=we[k](F)).done,F.value)})}}}c.d(E,{AQ:()=>O,N3:()=>_,sH:()=>V,xN:()=>B}),"function"==typeof SuppressedError&&SuppressedError},8330:se=>{"use strict";se.exports=JSON.parse('{"rE":"3.9.0-SNAPSHOT"}')}},se=>{se(se.s=7377)}]);