@oiz/stzh-components 0.0.0-pretest → 1.4.0-npmjstest

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (924) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +56 -56
  3. package/dist/cjs/{animation-utils-c816beac.js → animation-utils-cfa35ce7.js} +37 -37
  4. package/dist/cjs/{app-globals-83a6c2d3.js → app-globals-e07b8f5f.js} +42 -42
  5. package/dist/cjs/{arrow-70a32014.js → arrow-3c3b0ae5.js} +3 -3
  6. package/dist/cjs/{date-adapter-2ffd8eaf.js → date-adapter-2a78f6f8.js} +85 -85
  7. package/dist/cjs/{date-utils-898a50be.js → date-utils-bb50c91f.js} +156 -156
  8. package/dist/cjs/{event-utils-4d7d610a.js → event-utils-9b64c792.js} +13 -13
  9. package/dist/cjs/loader.cjs.js +2 -2
  10. package/dist/cjs/{media-utils-f1720906.js → media-utils-8cfc8591.js} +19 -19
  11. package/dist/cjs/{string-utils-223b03e2.js → string-utils-a867b99d.js} +12 -12
  12. package/dist/cjs/stzh-accordion-item.cjs.entry.js +170 -170
  13. package/dist/cjs/stzh-accordion.cjs.entry.js +63 -63
  14. package/dist/cjs/stzh-actions.cjs.entry.js +42 -42
  15. package/dist/cjs/stzh-appnav.cjs.entry.js +39 -39
  16. package/dist/cjs/stzh-appointments.cjs.entry.js +260 -260
  17. package/dist/cjs/stzh-badge_3.cjs.entry.js +146 -146
  18. package/dist/cjs/stzh-calendar.cjs.entry.js +291 -291
  19. package/dist/cjs/stzh-cell.cjs.entry.js +24 -24
  20. package/dist/cjs/stzh-checkbox.cjs.entry.js +123 -123
  21. package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +157 -157
  22. package/dist/cjs/stzh-chip-select.cjs.entry.js +55 -55
  23. package/dist/cjs/stzh-chip.cjs.entry.js +90 -90
  24. package/dist/cjs/stzh-components.cjs.js +2 -2
  25. package/dist/cjs/stzh-container.cjs.entry.js +8 -8
  26. package/dist/cjs/stzh-cspace.cjs.entry.js +11 -11
  27. package/dist/cjs/stzh-datamessagelist-item.cjs.entry.js +92 -92
  28. package/dist/cjs/stzh-datamessagelist.cjs.entry.js +12 -12
  29. package/dist/cjs/stzh-datatable.cjs.entry.js +201 -201
  30. package/dist/cjs/stzh-datepicker_4.cjs.entry.js +458 -458
  31. package/dist/cjs/stzh-dialog.cjs.entry.js +179 -179
  32. package/dist/cjs/stzh-dropdown.cjs.entry.js +450 -450
  33. package/dist/cjs/stzh-fieldset.cjs.entry.js +24 -24
  34. package/dist/cjs/stzh-figure.cjs.entry.js +19 -19
  35. package/dist/cjs/stzh-flyingfocus.cjs.entry.js +167 -167
  36. package/dist/cjs/stzh-footer.cjs.entry.js +56 -56
  37. package/dist/cjs/stzh-ghettobox_2.cjs.entry.js +132 -132
  38. package/dist/cjs/stzh-header.cjs.entry.js +151 -151
  39. package/dist/cjs/stzh-heading.cjs.entry.js +21 -21
  40. package/dist/cjs/stzh-hr.cjs.entry.js +12 -12
  41. package/dist/cjs/stzh-hspace.cjs.entry.js +30 -30
  42. package/dist/cjs/stzh-icon-sprite.cjs.entry.js +9 -9
  43. package/dist/cjs/{stzh-input-description-9ed61d1d.js → stzh-input-description-9802abc2.js} +15 -15
  44. package/dist/cjs/stzh-input.cjs.entry.js +181 -181
  45. package/dist/cjs/stzh-link.cjs.entry.js +95 -95
  46. package/dist/cjs/stzh-list-item.cjs.entry.js +15 -15
  47. package/dist/cjs/stzh-list.cjs.entry.js +15 -15
  48. package/dist/cjs/stzh-loader.cjs.entry.js +20 -20
  49. package/dist/cjs/stzh-loadingbar.cjs.entry.js +22 -22
  50. package/dist/cjs/stzh-menu_2.cjs.entry.js +81 -81
  51. package/dist/cjs/stzh-message.cjs.entry.js +72 -72
  52. package/dist/cjs/stzh-metanav.cjs.entry.js +26 -26
  53. package/dist/cjs/stzh-overlay.cjs.entry.js +88 -88
  54. package/dist/cjs/stzh-page-skiplinks.cjs.entry.js +26 -26
  55. package/dist/cjs/stzh-pagetitle.cjs.entry.js +61 -61
  56. package/dist/cjs/stzh-popover.cjs.entry.js +349 -349
  57. package/dist/cjs/stzh-portal-mitwirken.cjs.entry.js +12 -12
  58. package/dist/cjs/stzh-progressbar-item.cjs.entry.js +46 -46
  59. package/dist/cjs/stzh-progressbar.cjs.entry.js +114 -114
  60. package/dist/cjs/stzh-readspeaker.cjs.entry.js +47 -47
  61. package/dist/cjs/stzh-row.cjs.entry.js +29 -29
  62. package/dist/cjs/stzh-saptcha.cjs.entry.js +70 -70
  63. package/dist/cjs/stzh-section.cjs.entry.js +13 -13
  64. package/dist/cjs/stzh-servicecard-list.cjs.entry.js +45 -45
  65. package/dist/cjs/stzh-servicecard.cjs.entry.js +201 -201
  66. package/dist/cjs/stzh-skiplink.cjs.entry.js +16 -16
  67. package/dist/cjs/stzh-sortable.cjs.entry.js +288 -288
  68. package/dist/cjs/stzh-status.cjs.entry.js +25 -25
  69. package/dist/cjs/stzh-table.cjs.entry.js +132 -132
  70. package/dist/cjs/stzh-toggle.cjs.entry.js +123 -123
  71. package/dist/cjs/stzh-tooltip.cjs.entry.js +310 -310
  72. package/dist/cjs/stzh-upload.cjs.entry.js +440 -440
  73. package/dist/cjs/stzh-vbz-linechip.cjs.entry.js +71 -71
  74. package/dist/cjs/stzh-vbz-majorticker.cjs.entry.js +95 -95
  75. package/dist/cjs/stzh-vbz-ticker.cjs.entry.js +171 -171
  76. package/dist/cjs/stzh-visuallyhidden.cjs.entry.js +10 -10
  77. package/dist/cjs/stzh-vspace.cjs.entry.js +30 -30
  78. package/dist/cjs/{translation-utils-2dbbce94.js → translation-utils-73073e44.js} +54 -54
  79. package/dist/cjs/{utils-e84f4a8d.js → utils-d327c19d.js} +30 -30
  80. package/dist/collection/assets/favicons/browserconfig.xml +9 -9
  81. package/dist/collection/assets/favicons/site.webmanifest +19 -19
  82. package/dist/collection/assets/fonts.css +39 -39
  83. package/dist/collection/assets/i18n/de.json +154 -154
  84. package/dist/collection/assets/i18n/en.json +154 -154
  85. package/dist/collection/assets/icons/mono/alarm-bell.svg +3 -3
  86. package/dist/collection/assets/icons/mono/angle-down.svg +3 -3
  87. package/dist/collection/assets/icons/mono/angle-left.svg +3 -3
  88. package/dist/collection/assets/icons/mono/angle-right.svg +3 -3
  89. package/dist/collection/assets/icons/mono/angle-up.svg +3 -3
  90. package/dist/collection/assets/icons/mono/archive-box.svg +3 -3
  91. package/dist/collection/assets/icons/mono/arrow-down.svg +3 -3
  92. package/dist/collection/assets/icons/mono/arrow-left-circle.svg +4 -4
  93. package/dist/collection/assets/icons/mono/arrow-left.svg +3 -3
  94. package/dist/collection/assets/icons/mono/arrow-right-long.svg +3 -3
  95. package/dist/collection/assets/icons/mono/arrow-right.svg +3 -3
  96. package/dist/collection/assets/icons/mono/arrow-up.svg +3 -3
  97. package/dist/collection/assets/icons/mono/bulleted-list.svg +3 -3
  98. package/dist/collection/assets/icons/mono/calendar.svg +3 -3
  99. package/dist/collection/assets/icons/mono/cart.svg +3 -3
  100. package/dist/collection/assets/icons/mono/checkmark-circle.svg +3 -3
  101. package/dist/collection/assets/icons/mono/checkmark.svg +3 -3
  102. package/dist/collection/assets/icons/mono/clock.svg +3 -3
  103. package/dist/collection/assets/icons/mono/close-circle.svg +3 -3
  104. package/dist/collection/assets/icons/mono/close.svg +3 -3
  105. package/dist/collection/assets/icons/mono/compass-direction.svg +3 -3
  106. package/dist/collection/assets/icons/mono/compass-north.svg +4 -4
  107. package/dist/collection/assets/icons/mono/construction.svg +3 -3
  108. package/dist/collection/assets/icons/mono/copy.svg +3 -3
  109. package/dist/collection/assets/icons/mono/delete.svg +3 -3
  110. package/dist/collection/assets/icons/mono/download.svg +3 -3
  111. package/dist/collection/assets/icons/mono/drag.svg +10 -10
  112. package/dist/collection/assets/icons/mono/edit.svg +3 -3
  113. package/dist/collection/assets/icons/mono/email-check.svg +10 -10
  114. package/dist/collection/assets/icons/mono/expand.svg +3 -3
  115. package/dist/collection/assets/icons/mono/external-link.svg +4 -4
  116. package/dist/collection/assets/icons/mono/facebook-comment.svg +3 -3
  117. package/dist/collection/assets/icons/mono/facebook.svg +10 -10
  118. package/dist/collection/assets/icons/mono/file.svg +3 -3
  119. package/dist/collection/assets/icons/mono/filtering.svg +3 -3
  120. package/dist/collection/assets/icons/mono/flag.svg +10 -10
  121. package/dist/collection/assets/icons/mono/focus.svg +3 -3
  122. package/dist/collection/assets/icons/mono/gear.svg +3 -3
  123. package/dist/collection/assets/icons/mono/heart.svg +10 -10
  124. package/dist/collection/assets/icons/mono/home.svg +10 -10
  125. package/dist/collection/assets/icons/mono/important-warning.svg +3 -3
  126. package/dist/collection/assets/icons/mono/info-help.svg +3 -3
  127. package/dist/collection/assets/icons/mono/instagram.svg +3 -3
  128. package/dist/collection/assets/icons/mono/like-hand.svg +10 -10
  129. package/dist/collection/assets/icons/mono/linkedin.svg +5 -5
  130. package/dist/collection/assets/icons/mono/list-expanded.svg +4 -4
  131. package/dist/collection/assets/icons/mono/list-shrinked.svg +3 -3
  132. package/dist/collection/assets/icons/mono/lock.svg +10 -10
  133. package/dist/collection/assets/icons/mono/mail.svg +10 -10
  134. package/dist/collection/assets/icons/mono/map.svg +3 -3
  135. package/dist/collection/assets/icons/mono/menu.svg +3 -3
  136. package/dist/collection/assets/icons/mono/minus.svg +3 -3
  137. package/dist/collection/assets/icons/mono/more-horizontal.svg +5 -5
  138. package/dist/collection/assets/icons/mono/more-vertical.svg +5 -5
  139. package/dist/collection/assets/icons/mono/paper-clip.svg +10 -10
  140. package/dist/collection/assets/icons/mono/phone.svg +10 -10
  141. package/dist/collection/assets/icons/mono/pin-location.svg +10 -10
  142. package/dist/collection/assets/icons/mono/pin.svg +11 -11
  143. package/dist/collection/assets/icons/mono/play-1.svg +4 -4
  144. package/dist/collection/assets/icons/mono/play-button.svg +11 -11
  145. package/dist/collection/assets/icons/mono/play.svg +10 -10
  146. package/dist/collection/assets/icons/mono/plus.svg +3 -3
  147. package/dist/collection/assets/icons/mono/portfolio-grid.svg +11 -11
  148. package/dist/collection/assets/icons/mono/print.svg +10 -10
  149. package/dist/collection/assets/icons/mono/question-help.svg +3 -3
  150. package/dist/collection/assets/icons/mono/read-mail.svg +10 -10
  151. package/dist/collection/assets/icons/mono/reload.svg +10 -10
  152. package/dist/collection/assets/icons/mono/reset-time.svg +10 -10
  153. package/dist/collection/assets/icons/mono/reset.svg +10 -10
  154. package/dist/collection/assets/icons/mono/resize.svg +8 -8
  155. package/dist/collection/assets/icons/mono/rss.svg +12 -12
  156. package/dist/collection/assets/icons/mono/search.svg +3 -3
  157. package/dist/collection/assets/icons/mono/services.svg +6 -6
  158. package/dist/collection/assets/icons/mono/share.svg +3 -3
  159. package/dist/collection/assets/icons/mono/shrink.svg +3 -3
  160. package/dist/collection/assets/icons/mono/silent-mode.svg +3 -3
  161. package/dist/collection/assets/icons/mono/social-media.svg +23 -23
  162. package/dist/collection/assets/icons/mono/star-filled.svg +3 -3
  163. package/dist/collection/assets/icons/mono/star.svg +3 -3
  164. package/dist/collection/assets/icons/mono/subtitle.svg +3 -3
  165. package/dist/collection/assets/icons/mono/team.svg +10 -10
  166. package/dist/collection/assets/icons/mono/text-message.svg +6 -6
  167. package/dist/collection/assets/icons/mono/thermometer.svg +10 -10
  168. package/dist/collection/assets/icons/mono/transcript.svg +3 -3
  169. package/dist/collection/assets/icons/mono/twitter-reply.svg +3 -3
  170. package/dist/collection/assets/icons/mono/twitter-retweet.svg +3 -3
  171. package/dist/collection/assets/icons/mono/twitter.svg +10 -10
  172. package/dist/collection/assets/icons/mono/unlock.svg +10 -10
  173. package/dist/collection/assets/icons/mono/user.svg +3 -3
  174. package/dist/collection/assets/icons/mono/view-hidden.svg +3 -3
  175. package/dist/collection/assets/icons/mono/view.svg +4 -4
  176. package/dist/collection/assets/icons/mono/volume-medium.svg +3 -3
  177. package/dist/collection/assets/icons/mono/warning-big.svg +4 -4
  178. package/dist/collection/assets/icons/mono/warning.svg +3 -3
  179. package/dist/collection/assets/icons/mono/web-Link.svg +3 -3
  180. package/dist/collection/assets/icons/mono/wifi-signal.svg +3 -3
  181. package/dist/collection/assets/icons/mono/world-globe.svg +10 -10
  182. package/dist/collection/assets/icons/mono/xing.svg +11 -11
  183. package/dist/collection/assets/polyfills/ie11CustomProperties.min.js +8 -8
  184. package/dist/collection/assets/polyfills/intersection-observer.min.js +7 -7
  185. package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.Common.Settings.js +278 -278
  186. package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.Core.js +544 -544
  187. package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.HL.js +1111 -1111
  188. package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.PlayerAPI.js +211 -211
  189. package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.js +257 -257
  190. package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.lib.Facade.adapter.jquery.js +120 -120
  191. package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.lib.RSLib.js +796 -796
  192. package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.pub.Config.js +384 -384
  193. package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.ui.js +1241 -1241
  194. package/dist/collection/assets/vendors/readspeaker/ReadSpeakerClassic.css +357 -357
  195. package/dist/collection/assets/vendors/readspeaker/ReadSpeakerClassic.js +51 -51
  196. package/dist/collection/assets/vendors/readspeaker/mods/enlargeHL/ReadSpeaker.enlargeHL.js +24 -24
  197. package/dist/collection/components/stzh-accordion/stzh-accordion.js +156 -156
  198. package/dist/collection/components/stzh-accordion/stzh-accordion.stories.js +52 -52
  199. package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.js +429 -429
  200. package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.stories.js +45 -45
  201. package/dist/collection/components/stzh-actions/stzh-actions.js +98 -98
  202. package/dist/collection/components/stzh-actions/stzh-actions.stories.js +66 -66
  203. package/dist/collection/components/stzh-appnav/stzh-appnav.js +112 -112
  204. package/dist/collection/components/stzh-appnav/stzh-appnav.stories.js +53 -53
  205. package/dist/collection/components/stzh-appointments/stzh-appointments.js +515 -515
  206. package/dist/collection/components/stzh-appointments/stzh-appointments.localization.js +1 -1
  207. package/dist/collection/components/stzh-appointments/stzh-appointments.stories.js +186 -186
  208. package/dist/collection/components/stzh-badge/stzh-badge.js +47 -47
  209. package/dist/collection/components/stzh-badge/stzh-badge.stories.js +36 -36
  210. package/dist/collection/components/stzh-button/stzh-button.js +516 -516
  211. package/dist/collection/components/stzh-button/stzh-button.stories.js +66 -66
  212. package/dist/collection/components/stzh-calendar/stzh-calendar-day.js +22 -22
  213. package/dist/collection/components/stzh-calendar/stzh-calendar-month.js +21 -21
  214. package/dist/collection/components/stzh-calendar/stzh-calendar.js +463 -463
  215. package/dist/collection/components/stzh-calendar/stzh-calendar.localization.js +1 -1
  216. package/dist/collection/components/stzh-calendar/stzh-calendar.stories.js +37 -37
  217. package/dist/collection/components/stzh-cell/stzh-cell.js +179 -179
  218. package/dist/collection/components/stzh-cell/stzh-cell.stories.js +39 -39
  219. package/dist/collection/components/stzh-checkbox/assets/check.svg +3 -3
  220. package/dist/collection/components/stzh-checkbox/stzh-checkbox.js +459 -459
  221. package/dist/collection/components/stzh-checkbox/stzh-checkbox.stories.js +38 -38
  222. package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.js +450 -450
  223. package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.stories.js +39 -39
  224. package/dist/collection/components/stzh-chip/stzh-chip.js +407 -407
  225. package/dist/collection/components/stzh-chip/stzh-chip.stories.js +64 -64
  226. package/dist/collection/components/stzh-chip-select/stzh-chip-select.js +158 -158
  227. package/dist/collection/components/stzh-chip-select/stzh-chip-select.stories.js +69 -69
  228. package/dist/collection/components/stzh-container/stzh-container.js +21 -21
  229. package/dist/collection/components/stzh-container/stzh-container.stories.js +35 -35
  230. package/dist/collection/components/stzh-cspace/stzh-cspace.js +24 -24
  231. package/dist/collection/components/stzh-cspace/stzh-cspace.stories.js +34 -34
  232. package/dist/collection/components/stzh-datamessagelist/stzh-datamessagelist.js +24 -24
  233. package/dist/collection/components/stzh-datamessagelist/stzh-datamessagelist.stories.js +149 -149
  234. package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.js +358 -358
  235. package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.localization.js +1 -1
  236. package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.stories.js +63 -63
  237. package/dist/collection/components/stzh-datatable/stzh-datatable.js +413 -413
  238. package/dist/collection/components/stzh-datatable/stzh-datatable.localization.js +1 -1
  239. package/dist/collection/components/stzh-datatable/stzh-datatable.stories.js +63 -63
  240. package/dist/collection/components/stzh-datepicker/stzh-datepicker.js +586 -586
  241. package/dist/collection/components/stzh-datepicker/stzh-datepicker.localization.js +1 -1
  242. package/dist/collection/components/stzh-datepicker/stzh-datepicker.stories.js +39 -39
  243. package/dist/collection/components/stzh-dialog/stzh-dialog.js +480 -480
  244. package/dist/collection/components/stzh-dialog/stzh-dialog.localization.js +1 -1
  245. package/dist/collection/components/stzh-dialog/stzh-dialog.stories.js +75 -75
  246. package/dist/collection/components/stzh-dropdown/stzh-dropdown.js +1436 -1436
  247. package/dist/collection/components/stzh-dropdown/stzh-dropdown.localization.js +1 -1
  248. package/dist/collection/components/stzh-dropdown/stzh-dropdown.stories.js +109 -109
  249. package/dist/collection/components/stzh-fieldset/stzh-fieldset.js +120 -120
  250. package/dist/collection/components/stzh-fieldset/stzh-fieldset.stories.js +55 -55
  251. package/dist/collection/components/stzh-figure/stzh-figure.js +76 -76
  252. package/dist/collection/components/stzh-figure/stzh-figure.stories.js +36 -36
  253. package/dist/collection/components/stzh-flyingfocus/stzh-flyingfocus.js +253 -253
  254. package/dist/collection/components/stzh-flyingfocus/stzh-flyingfocus.stories.js +27 -27
  255. package/dist/collection/components/stzh-footer/stzh-footer.js +147 -147
  256. package/dist/collection/components/stzh-footer/stzh-footer.localization.js +1 -1
  257. package/dist/collection/components/stzh-footer/stzh-footer.stories.js +49 -49
  258. package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.js +319 -319
  259. package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.localization.js +1 -1
  260. package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.stories.js +49 -49
  261. package/dist/collection/components/stzh-header/stzh-header.js +267 -267
  262. package/dist/collection/components/stzh-header/stzh-header.stories.js +178 -178
  263. package/dist/collection/components/stzh-heading/stzh-heading.js +99 -99
  264. package/dist/collection/components/stzh-heading/stzh-heading.stories.js +37 -37
  265. package/dist/collection/components/stzh-hr/stzh-hr.js +25 -25
  266. package/dist/collection/components/stzh-hr/stzh-hr.stories.js +23 -23
  267. package/dist/collection/components/stzh-hspace/stzh-hspace.js +246 -246
  268. package/dist/collection/components/stzh-hspace/stzh-hspace.stories.js +73 -73
  269. package/dist/collection/components/stzh-icon/stzh-icon.js +76 -76
  270. package/dist/collection/components/stzh-icon/stzh-icon.stories.js +37 -37
  271. package/dist/collection/components/stzh-icon-sprite/assets/svgsprites/symbol/sprite.symbol.html +1354 -1354
  272. package/dist/collection/components/stzh-icon-sprite/stzh-icon-sprite.js +19 -19
  273. package/dist/collection/components/stzh-icon-sprite/stzh-icon-sprite.stories.js +46 -46
  274. package/dist/collection/components/stzh-input/stzh-input-description.js +8 -8
  275. package/dist/collection/components/stzh-input/stzh-input.js +724 -724
  276. package/dist/collection/components/stzh-input/stzh-input.stories.js +116 -116
  277. package/dist/collection/components/stzh-link/stzh-link.js +427 -427
  278. package/dist/collection/components/stzh-link/stzh-link.stories.js +67 -67
  279. package/dist/collection/components/stzh-list/stzh-list.js +52 -52
  280. package/dist/collection/components/stzh-list/stzh-list.stories.js +42 -42
  281. package/dist/collection/components/stzh-list-item/assets/checkmark.svg +3 -3
  282. package/dist/collection/components/stzh-list-item/stzh-list-item.js +26 -26
  283. package/dist/collection/components/stzh-loader/stzh-loader.js +93 -93
  284. package/dist/collection/components/stzh-loader/stzh-loader.stories.js +36 -36
  285. package/dist/collection/components/stzh-loadingbar/stzh-loadingbar.js +94 -94
  286. package/dist/collection/components/stzh-loadingbar/stzh-loadingbar.stories.js +34 -34
  287. package/dist/collection/components/stzh-menu/stzh-menu.js +21 -21
  288. package/dist/collection/components/stzh-menu/stzh-menu.stories.js +69 -69
  289. package/dist/collection/components/stzh-menu-item/stzh-menu-item.js +296 -296
  290. package/dist/collection/components/stzh-menu-item/stzh-menu-item.stories.js +52 -52
  291. package/dist/collection/components/stzh-message/stzh-message.js +287 -287
  292. package/dist/collection/components/stzh-message/stzh-message.localization.js +1 -1
  293. package/dist/collection/components/stzh-message/stzh-message.stories.js +40 -40
  294. package/dist/collection/components/stzh-metanav/stzh-metanav.js +41 -41
  295. package/dist/collection/components/stzh-metanav/stzh-metanav.stories.js +39 -39
  296. package/dist/collection/components/stzh-overlay/stzh-overlay.js +239 -239
  297. package/dist/collection/components/stzh-overlay/stzh-overlay.stories.js +50 -50
  298. package/dist/collection/components/stzh-page-skiplinks/stzh-page-skiplinks.js +41 -41
  299. package/dist/collection/components/stzh-page-skiplinks/stzh-page-skiplinks.stories.js +43 -43
  300. package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.js +76 -76
  301. package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.stories.js +107 -107
  302. package/dist/collection/components/stzh-popover/stzh-popover.js +673 -673
  303. package/dist/collection/components/stzh-popover/stzh-popover.localization.js +1 -1
  304. package/dist/collection/components/stzh-popover/stzh-popover.stories.js +67 -67
  305. package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.css +578 -578
  306. package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.js +25 -25
  307. package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.stories.js +28 -28
  308. package/dist/collection/components/stzh-progressbar/stzh-progressbar.js +272 -272
  309. package/dist/collection/components/stzh-progressbar/stzh-progressbar.stories.js +164 -164
  310. package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.js +250 -250
  311. package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.stories.js +36 -36
  312. package/dist/collection/components/stzh-radio/stzh-radio.js +458 -458
  313. package/dist/collection/components/stzh-radio/stzh-radio.stories.js +38 -38
  314. package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.js +479 -477
  315. package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.stories.js +39 -39
  316. package/dist/collection/components/stzh-readspeaker/stzh-readspeaker.js +114 -114
  317. package/dist/collection/components/stzh-readspeaker/stzh-readspeaker.stories.js +50 -50
  318. package/dist/collection/components/stzh-richtext/stzh-richtext.js +90 -90
  319. package/dist/collection/components/stzh-richtext/stzh-richtext.stories.js +79 -79
  320. package/dist/collection/components/stzh-row/stzh-row.js +207 -207
  321. package/dist/collection/components/stzh-row/stzh-row.stories.js +90 -90
  322. package/dist/collection/components/stzh-saptcha/stzh-saptcha.js +221 -221
  323. package/dist/collection/components/stzh-saptcha/stzh-saptcha.localization.js +1 -1
  324. package/dist/collection/components/stzh-saptcha/stzh-saptcha.stories.js +34 -34
  325. package/dist/collection/components/stzh-section/stzh-section.js +50 -50
  326. package/dist/collection/components/stzh-section/stzh-section.stories.js +100 -100
  327. package/dist/collection/components/stzh-servicecard/stzh-servicecard.js +592 -592
  328. package/dist/collection/components/stzh-servicecard/stzh-servicecard.localization.js +1 -1
  329. package/dist/collection/components/stzh-servicecard/stzh-servicecard.stories.js +73 -73
  330. package/dist/collection/components/stzh-servicecard-list/stzh-servicecard-list.js +153 -153
  331. package/dist/collection/components/stzh-servicecard-list/stzh-servicecard-list.localization.js +1 -1
  332. package/dist/collection/components/stzh-servicecard-list/stzh-servicecard-list.stories.js +115 -115
  333. package/dist/collection/components/stzh-skiplink/stzh-skiplink.js +106 -106
  334. package/dist/collection/components/stzh-skiplink/stzh-skiplink.stories.js +53 -53
  335. package/dist/collection/components/stzh-sortable/stzh-sortable.js +501 -501
  336. package/dist/collection/components/stzh-sortable/stzh-sortable.localization.js +1 -1
  337. package/dist/collection/components/stzh-sortable/stzh-sortable.stories.js +34 -34
  338. package/dist/collection/components/stzh-status/stzh-status.js +115 -115
  339. package/dist/collection/components/stzh-status/stzh-status.stories.js +34 -34
  340. package/dist/collection/components/stzh-table/stzh-table.js +215 -215
  341. package/dist/collection/components/stzh-table/stzh-table.stories.js +89 -89
  342. package/dist/collection/components/stzh-text/stzh-text.js +232 -232
  343. package/dist/collection/components/stzh-text/stzh-text.stories.js +43 -43
  344. package/dist/collection/components/stzh-toggle/stzh-toggle.js +479 -479
  345. package/dist/collection/components/stzh-toggle/stzh-toggle.stories.js +38 -38
  346. package/dist/collection/components/stzh-tooltip/assets/arrow.svg +3 -3
  347. package/dist/collection/components/stzh-tooltip/stzh-tooltip.js +667 -667
  348. package/dist/collection/components/stzh-tooltip/stzh-tooltip.localization.js +1 -1
  349. package/dist/collection/components/stzh-tooltip/stzh-tooltip.stories.js +63 -63
  350. package/dist/collection/components/stzh-upload/stzh-upload.js +1358 -1358
  351. package/dist/collection/components/stzh-upload/stzh-upload.localization.js +1 -1
  352. package/dist/collection/components/stzh-upload/stzh-upload.stories.js +69 -69
  353. package/dist/collection/components/stzh-vbz-linechip/stzh-vbz-linechip.js +229 -229
  354. package/dist/collection/components/stzh-vbz-linechip/stzh-vbz-linechip.stories.js +36 -36
  355. package/dist/collection/components/stzh-vbz-majorticker/stzh-vbz-majorticker.js +236 -236
  356. package/dist/collection/components/stzh-vbz-majorticker/stzh-vbz-majorticker.localization.js +1 -1
  357. package/dist/collection/components/stzh-vbz-majorticker/stzh-vbz-majorticker.stories.js +52 -52
  358. package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.js +292 -292
  359. package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.localization.js +1 -1
  360. package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.stories.js +53 -53
  361. package/dist/collection/components/stzh-visuallyhidden/stzh-visuallyhidden.js +23 -23
  362. package/dist/collection/components/stzh-visuallyhidden/stzh-visuallyhidden.stories.js +45 -45
  363. package/dist/collection/components/stzh-vspace/stzh-vspace.js +246 -246
  364. package/dist/collection/components/stzh-vspace/stzh-vspace.stories.js +73 -73
  365. package/dist/collection/global/js/helpers/autofocus.js +20 -20
  366. package/dist/collection/global/js/helpers/scrollbar-width.js +20 -20
  367. package/dist/collection/global/js/script.js +17 -17
  368. package/dist/collection/index.js +7 -7
  369. package/dist/collection/pages/egov.stories.js +262 -262
  370. package/dist/collection/pages/example.stories.js +170 -170
  371. package/dist/collection/pages/meinkonto.stories.js +660 -660
  372. package/dist/collection/patterns/appointments.stories.js +43 -43
  373. package/dist/collection/patterns/processingscreen.stories.js +43 -43
  374. package/dist/collection/utils/animation-utils.js +51 -51
  375. package/dist/collection/utils/date-adapter.js +86 -86
  376. package/dist/collection/utils/date-utils.js +196 -196
  377. package/dist/collection/utils/decorators.js +15 -15
  378. package/dist/collection/utils/event-utils.js +14 -14
  379. package/dist/collection/utils/h.js +109 -109
  380. package/dist/collection/utils/media-utils.js +20 -20
  381. package/dist/collection/utils/string-utils.js +13 -13
  382. package/dist/collection/utils/test-utils.js +27 -27
  383. package/dist/collection/utils/translation-utils.js +55 -55
  384. package/dist/collection/utils/utils.js +41 -41
  385. package/dist/components/animation-utils.js +37 -37
  386. package/dist/components/arrow.js +3 -3
  387. package/dist/components/date-adapter.js +85 -85
  388. package/dist/components/event-utils.js +13 -13
  389. package/dist/components/index.js +41 -41
  390. package/dist/components/media-utils.js +19 -19
  391. package/dist/components/string-utils.js +12 -12
  392. package/dist/components/stzh-accordion-item.js +192 -192
  393. package/dist/components/stzh-accordion.js +81 -81
  394. package/dist/components/stzh-actions.js +58 -58
  395. package/dist/components/stzh-appnav.js +56 -56
  396. package/dist/components/stzh-appointments.js +343 -343
  397. package/dist/components/stzh-badge2.js +26 -26
  398. package/dist/components/stzh-button2.js +155 -155
  399. package/dist/components/stzh-calendar2.js +475 -475
  400. package/dist/components/stzh-cell.js +47 -47
  401. package/dist/components/stzh-checkbox.js +159 -159
  402. package/dist/components/stzh-checkboxgroup.js +192 -192
  403. package/dist/components/stzh-chip-select.js +93 -93
  404. package/dist/components/stzh-chip2.js +122 -122
  405. package/dist/components/stzh-container.js +22 -22
  406. package/dist/components/stzh-cspace.js +25 -25
  407. package/dist/components/stzh-datamessagelist-item.js +156 -156
  408. package/dist/components/stzh-datamessagelist.js +26 -26
  409. package/dist/components/stzh-datatable.js +255 -255
  410. package/dist/components/stzh-datepicker2.js +206 -206
  411. package/dist/components/stzh-dialog.js +214 -214
  412. package/dist/components/stzh-dropdown2.js +514 -514
  413. package/dist/components/stzh-fieldset.js +48 -48
  414. package/dist/components/stzh-figure.js +35 -35
  415. package/dist/components/stzh-flyingfocus.js +188 -188
  416. package/dist/components/stzh-footer.js +88 -88
  417. package/dist/components/stzh-ghettobox2.js +124 -124
  418. package/dist/components/stzh-header.js +174 -174
  419. package/dist/components/stzh-heading2.js +39 -39
  420. package/dist/components/stzh-hr.js +26 -26
  421. package/dist/components/stzh-hspace.js +54 -54
  422. package/dist/components/stzh-icon-sprite.js +23 -23
  423. package/dist/components/stzh-icon2.js +41 -41
  424. package/dist/components/stzh-input-description.js +15 -15
  425. package/dist/components/stzh-input2.js +239 -239
  426. package/dist/components/stzh-link2.js +134 -134
  427. package/dist/components/stzh-list-item.js +30 -30
  428. package/dist/components/stzh-list.js +32 -32
  429. package/dist/components/stzh-loader.js +38 -38
  430. package/dist/components/stzh-loadingbar.js +40 -40
  431. package/dist/components/stzh-menu-item2.js +106 -106
  432. package/dist/components/stzh-menu2.js +22 -22
  433. package/dist/components/stzh-message.js +100 -100
  434. package/dist/components/stzh-metanav.js +40 -40
  435. package/dist/components/stzh-overlay.js +108 -108
  436. package/dist/components/stzh-page-skiplinks.js +40 -40
  437. package/dist/components/stzh-pagetitle.js +74 -74
  438. package/dist/components/stzh-popover2.js +376 -376
  439. package/dist/components/stzh-portal-mitwirken.js +26 -26
  440. package/dist/components/stzh-progressbar-item2.js +74 -74
  441. package/dist/components/stzh-progressbar.js +146 -146
  442. package/dist/components/stzh-radio2.js +156 -156
  443. package/dist/components/stzh-radiogroup2.js +202 -202
  444. package/dist/components/stzh-readspeaker.js +63 -63
  445. package/dist/components/stzh-richtext2.js +57 -57
  446. package/dist/components/stzh-row.js +53 -53
  447. package/dist/components/stzh-saptcha.js +116 -116
  448. package/dist/components/stzh-section.js +29 -29
  449. package/dist/components/stzh-servicecard-list.js +84 -84
  450. package/dist/components/stzh-servicecard.js +263 -263
  451. package/dist/components/stzh-skiplink.js +35 -35
  452. package/dist/components/stzh-sortable2.js +310 -310
  453. package/dist/components/stzh-status2.js +44 -44
  454. package/dist/components/stzh-table.js +153 -153
  455. package/dist/components/stzh-text2.js +57 -57
  456. package/dist/components/stzh-toggle.js +160 -160
  457. package/dist/components/stzh-tooltip2.js +340 -340
  458. package/dist/components/stzh-upload.js +502 -502
  459. package/dist/components/stzh-vbz-linechip2.js +96 -96
  460. package/dist/components/stzh-vbz-majorticker.js +139 -139
  461. package/dist/components/stzh-vbz-ticker.js +214 -214
  462. package/dist/components/stzh-visuallyhidden.js +24 -24
  463. package/dist/components/stzh-vspace.js +54 -54
  464. package/dist/components/translation-utils.js +54 -54
  465. package/dist/components/utils.js +30 -30
  466. package/dist/esm/{animation-utils-27dcfc1e.js → animation-utils-25c74e5b.js} +37 -37
  467. package/dist/esm/{app-globals-137e106c.js → app-globals-70c229e3.js} +42 -42
  468. package/dist/esm/{arrow-18769ca6.js → arrow-86a679c7.js} +3 -3
  469. package/dist/esm/{date-adapter-c0ee5963.js → date-adapter-cbc340fa.js} +85 -85
  470. package/dist/esm/{date-utils-282e96fe.js → date-utils-be83fff1.js} +156 -156
  471. package/dist/esm/{event-utils-68b64805.js → event-utils-7a709e21.js} +13 -13
  472. package/dist/esm/loader.js +2 -2
  473. package/dist/esm/{media-utils-db7c9057.js → media-utils-9b041ceb.js} +19 -19
  474. package/dist/esm/polyfills/core-js.js +0 -0
  475. package/dist/esm/polyfills/dom.js +0 -0
  476. package/dist/esm/polyfills/es5-html-element.js +0 -0
  477. package/dist/esm/polyfills/index.js +0 -0
  478. package/dist/esm/polyfills/system.js +0 -0
  479. package/dist/esm/{string-utils-33181845.js → string-utils-f98ee4e8.js} +12 -12
  480. package/dist/esm/stzh-accordion-item.entry.js +170 -170
  481. package/dist/esm/stzh-accordion.entry.js +63 -63
  482. package/dist/esm/stzh-actions.entry.js +42 -42
  483. package/dist/esm/stzh-appnav.entry.js +39 -39
  484. package/dist/esm/stzh-appointments.entry.js +260 -260
  485. package/dist/esm/stzh-badge_3.entry.js +146 -146
  486. package/dist/esm/stzh-calendar.entry.js +291 -291
  487. package/dist/esm/stzh-cell.entry.js +24 -24
  488. package/dist/esm/stzh-checkbox.entry.js +123 -123
  489. package/dist/esm/stzh-checkboxgroup.entry.js +157 -157
  490. package/dist/esm/stzh-chip-select.entry.js +55 -55
  491. package/dist/esm/stzh-chip.entry.js +90 -90
  492. package/dist/esm/stzh-components.js +2 -2
  493. package/dist/esm/stzh-container.entry.js +8 -8
  494. package/dist/esm/stzh-cspace.entry.js +11 -11
  495. package/dist/esm/stzh-datamessagelist-item.entry.js +92 -92
  496. package/dist/esm/stzh-datamessagelist.entry.js +12 -12
  497. package/dist/esm/stzh-datatable.entry.js +201 -201
  498. package/dist/esm/stzh-datepicker_4.entry.js +458 -458
  499. package/dist/esm/stzh-dialog.entry.js +179 -179
  500. package/dist/esm/stzh-dropdown.entry.js +450 -450
  501. package/dist/esm/stzh-fieldset.entry.js +24 -24
  502. package/dist/esm/stzh-figure.entry.js +19 -19
  503. package/dist/esm/stzh-flyingfocus.entry.js +167 -167
  504. package/dist/esm/stzh-footer.entry.js +56 -56
  505. package/dist/esm/stzh-ghettobox_2.entry.js +132 -132
  506. package/dist/esm/stzh-header.entry.js +151 -151
  507. package/dist/esm/stzh-heading.entry.js +21 -21
  508. package/dist/esm/stzh-hr.entry.js +12 -12
  509. package/dist/esm/stzh-hspace.entry.js +30 -30
  510. package/dist/esm/stzh-icon-sprite.entry.js +9 -9
  511. package/dist/esm/{stzh-input-description-fa0a4b5b.js → stzh-input-description-da7b0e98.js} +15 -15
  512. package/dist/esm/stzh-input.entry.js +181 -181
  513. package/dist/esm/stzh-link.entry.js +95 -95
  514. package/dist/esm/stzh-list-item.entry.js +15 -15
  515. package/dist/esm/stzh-list.entry.js +15 -15
  516. package/dist/esm/stzh-loader.entry.js +20 -20
  517. package/dist/esm/stzh-loadingbar.entry.js +22 -22
  518. package/dist/esm/stzh-menu_2.entry.js +81 -81
  519. package/dist/esm/stzh-message.entry.js +72 -72
  520. package/dist/esm/stzh-metanav.entry.js +26 -26
  521. package/dist/esm/stzh-overlay.entry.js +88 -88
  522. package/dist/esm/stzh-page-skiplinks.entry.js +26 -26
  523. package/dist/esm/stzh-pagetitle.entry.js +61 -61
  524. package/dist/esm/stzh-popover.entry.js +349 -349
  525. package/dist/esm/stzh-portal-mitwirken.entry.js +12 -12
  526. package/dist/esm/stzh-progressbar-item.entry.js +46 -46
  527. package/dist/esm/stzh-progressbar.entry.js +114 -114
  528. package/dist/esm/stzh-readspeaker.entry.js +47 -47
  529. package/dist/esm/stzh-row.entry.js +29 -29
  530. package/dist/esm/stzh-saptcha.entry.js +70 -70
  531. package/dist/esm/stzh-section.entry.js +13 -13
  532. package/dist/esm/stzh-servicecard-list.entry.js +45 -45
  533. package/dist/esm/stzh-servicecard.entry.js +201 -201
  534. package/dist/esm/stzh-skiplink.entry.js +16 -16
  535. package/dist/esm/stzh-sortable.entry.js +288 -288
  536. package/dist/esm/stzh-status.entry.js +25 -25
  537. package/dist/esm/stzh-table.entry.js +132 -132
  538. package/dist/esm/stzh-toggle.entry.js +123 -123
  539. package/dist/esm/stzh-tooltip.entry.js +310 -310
  540. package/dist/esm/stzh-upload.entry.js +440 -440
  541. package/dist/esm/stzh-vbz-linechip.entry.js +71 -71
  542. package/dist/esm/stzh-vbz-majorticker.entry.js +95 -95
  543. package/dist/esm/stzh-vbz-ticker.entry.js +171 -171
  544. package/dist/esm/stzh-visuallyhidden.entry.js +10 -10
  545. package/dist/esm/stzh-vspace.entry.js +30 -30
  546. package/dist/esm/{translation-utils-f5b09945.js → translation-utils-2623783f.js} +54 -54
  547. package/dist/esm/{utils-c5d68020.js → utils-904416df.js} +30 -30
  548. package/dist/esm-es5/{animation-utils-27dcfc1e.js → animation-utils-25c74e5b.js} +0 -0
  549. package/dist/esm-es5/app-globals-70c229e3.js +1 -0
  550. package/dist/esm-es5/{arrow-18769ca6.js → arrow-86a679c7.js} +0 -0
  551. package/dist/esm-es5/{date-adapter-c0ee5963.js → date-adapter-cbc340fa.js} +0 -0
  552. package/dist/esm-es5/{date-utils-282e96fe.js → date-utils-be83fff1.js} +0 -0
  553. package/dist/esm-es5/{event-utils-68b64805.js → event-utils-7a709e21.js} +0 -0
  554. package/dist/esm-es5/loader.js +1 -1
  555. package/dist/esm-es5/{media-utils-db7c9057.js → media-utils-9b041ceb.js} +0 -0
  556. package/dist/esm-es5/{string-utils-33181845.js → string-utils-f98ee4e8.js} +0 -0
  557. package/dist/esm-es5/stzh-accordion-item.entry.js +1 -1
  558. package/dist/esm-es5/stzh-actions.entry.js +1 -1
  559. package/dist/esm-es5/stzh-appnav.entry.js +1 -1
  560. package/dist/esm-es5/stzh-appointments.entry.js +1 -1
  561. package/dist/esm-es5/stzh-badge_3.entry.js +1 -1
  562. package/dist/esm-es5/stzh-calendar.entry.js +1 -1
  563. package/dist/esm-es5/stzh-checkbox.entry.js +1 -1
  564. package/dist/esm-es5/stzh-checkboxgroup.entry.js +1 -1
  565. package/dist/esm-es5/stzh-components.js +1 -1
  566. package/dist/esm-es5/stzh-datamessagelist-item.entry.js +1 -1
  567. package/dist/esm-es5/stzh-datatable.entry.js +1 -1
  568. package/dist/esm-es5/stzh-datepicker_4.entry.js +1 -1
  569. package/dist/esm-es5/stzh-dialog.entry.js +1 -1
  570. package/dist/esm-es5/stzh-dropdown.entry.js +1 -1
  571. package/dist/esm-es5/stzh-figure.entry.js +1 -1
  572. package/dist/esm-es5/stzh-flyingfocus.entry.js +1 -1
  573. package/dist/esm-es5/stzh-footer.entry.js +1 -1
  574. package/dist/esm-es5/stzh-ghettobox_2.entry.js +1 -1
  575. package/dist/esm-es5/stzh-header.entry.js +1 -1
  576. package/dist/esm-es5/{stzh-input-description-fa0a4b5b.js → stzh-input-description-da7b0e98.js} +0 -0
  577. package/dist/esm-es5/stzh-input.entry.js +1 -1
  578. package/dist/esm-es5/stzh-link.entry.js +1 -1
  579. package/dist/esm-es5/stzh-menu_2.entry.js +1 -1
  580. package/dist/esm-es5/stzh-message.entry.js +1 -1
  581. package/dist/esm-es5/stzh-pagetitle.entry.js +1 -1
  582. package/dist/esm-es5/stzh-popover.entry.js +1 -1
  583. package/dist/esm-es5/stzh-progressbar.entry.js +1 -1
  584. package/dist/esm-es5/stzh-readspeaker.entry.js +1 -1
  585. package/dist/esm-es5/stzh-saptcha.entry.js +1 -1
  586. package/dist/esm-es5/stzh-servicecard-list.entry.js +1 -1
  587. package/dist/esm-es5/stzh-servicecard.entry.js +1 -1
  588. package/dist/esm-es5/stzh-sortable.entry.js +1 -1
  589. package/dist/esm-es5/stzh-table.entry.js +1 -1
  590. package/dist/esm-es5/stzh-toggle.entry.js +1 -1
  591. package/dist/esm-es5/stzh-tooltip.entry.js +1 -1
  592. package/dist/esm-es5/stzh-upload.entry.js +1 -1
  593. package/dist/esm-es5/stzh-vbz-majorticker.entry.js +1 -1
  594. package/dist/esm-es5/stzh-vbz-ticker.entry.js +1 -1
  595. package/dist/esm-es5/{translation-utils-f5b09945.js → translation-utils-2623783f.js} +0 -0
  596. package/dist/esm-es5/{utils-c5d68020.js → utils-904416df.js} +0 -0
  597. package/dist/stzh-components/assets/favicons/browserconfig.xml +9 -9
  598. package/dist/stzh-components/assets/favicons/site.webmanifest +19 -19
  599. package/dist/stzh-components/assets/fonts.css +39 -39
  600. package/dist/stzh-components/assets/i18n/de.json +154 -154
  601. package/dist/stzh-components/assets/i18n/en.json +154 -154
  602. package/dist/stzh-components/assets/icons/mono/alarm-bell.svg +3 -3
  603. package/dist/stzh-components/assets/icons/mono/angle-down.svg +3 -3
  604. package/dist/stzh-components/assets/icons/mono/angle-left.svg +3 -3
  605. package/dist/stzh-components/assets/icons/mono/angle-right.svg +3 -3
  606. package/dist/stzh-components/assets/icons/mono/angle-up.svg +3 -3
  607. package/dist/stzh-components/assets/icons/mono/archive-box.svg +3 -3
  608. package/dist/stzh-components/assets/icons/mono/arrow-down.svg +3 -3
  609. package/dist/stzh-components/assets/icons/mono/arrow-left-circle.svg +4 -4
  610. package/dist/stzh-components/assets/icons/mono/arrow-left.svg +3 -3
  611. package/dist/stzh-components/assets/icons/mono/arrow-right-long.svg +3 -3
  612. package/dist/stzh-components/assets/icons/mono/arrow-right.svg +3 -3
  613. package/dist/stzh-components/assets/icons/mono/arrow-up.svg +3 -3
  614. package/dist/stzh-components/assets/icons/mono/bulleted-list.svg +3 -3
  615. package/dist/stzh-components/assets/icons/mono/calendar.svg +3 -3
  616. package/dist/stzh-components/assets/icons/mono/cart.svg +3 -3
  617. package/dist/stzh-components/assets/icons/mono/checkmark-circle.svg +3 -3
  618. package/dist/stzh-components/assets/icons/mono/checkmark.svg +3 -3
  619. package/dist/stzh-components/assets/icons/mono/clock.svg +3 -3
  620. package/dist/stzh-components/assets/icons/mono/close-circle.svg +3 -3
  621. package/dist/stzh-components/assets/icons/mono/close.svg +3 -3
  622. package/dist/stzh-components/assets/icons/mono/compass-direction.svg +3 -3
  623. package/dist/stzh-components/assets/icons/mono/compass-north.svg +4 -4
  624. package/dist/stzh-components/assets/icons/mono/construction.svg +3 -3
  625. package/dist/stzh-components/assets/icons/mono/copy.svg +3 -3
  626. package/dist/stzh-components/assets/icons/mono/delete.svg +3 -3
  627. package/dist/stzh-components/assets/icons/mono/download.svg +3 -3
  628. package/dist/stzh-components/assets/icons/mono/drag.svg +10 -10
  629. package/dist/stzh-components/assets/icons/mono/edit.svg +3 -3
  630. package/dist/stzh-components/assets/icons/mono/email-check.svg +10 -10
  631. package/dist/stzh-components/assets/icons/mono/expand.svg +3 -3
  632. package/dist/stzh-components/assets/icons/mono/external-link.svg +4 -4
  633. package/dist/stzh-components/assets/icons/mono/facebook-comment.svg +3 -3
  634. package/dist/stzh-components/assets/icons/mono/facebook.svg +10 -10
  635. package/dist/stzh-components/assets/icons/mono/file.svg +3 -3
  636. package/dist/stzh-components/assets/icons/mono/filtering.svg +3 -3
  637. package/dist/stzh-components/assets/icons/mono/flag.svg +10 -10
  638. package/dist/stzh-components/assets/icons/mono/focus.svg +3 -3
  639. package/dist/stzh-components/assets/icons/mono/gear.svg +3 -3
  640. package/dist/stzh-components/assets/icons/mono/heart.svg +10 -10
  641. package/dist/stzh-components/assets/icons/mono/home.svg +10 -10
  642. package/dist/stzh-components/assets/icons/mono/important-warning.svg +3 -3
  643. package/dist/stzh-components/assets/icons/mono/info-help.svg +3 -3
  644. package/dist/stzh-components/assets/icons/mono/instagram.svg +3 -3
  645. package/dist/stzh-components/assets/icons/mono/like-hand.svg +10 -10
  646. package/dist/stzh-components/assets/icons/mono/linkedin.svg +5 -5
  647. package/dist/stzh-components/assets/icons/mono/list-expanded.svg +4 -4
  648. package/dist/stzh-components/assets/icons/mono/list-shrinked.svg +3 -3
  649. package/dist/stzh-components/assets/icons/mono/lock.svg +10 -10
  650. package/dist/stzh-components/assets/icons/mono/mail.svg +10 -10
  651. package/dist/stzh-components/assets/icons/mono/map.svg +3 -3
  652. package/dist/stzh-components/assets/icons/mono/menu.svg +3 -3
  653. package/dist/stzh-components/assets/icons/mono/minus.svg +3 -3
  654. package/dist/stzh-components/assets/icons/mono/more-horizontal.svg +5 -5
  655. package/dist/stzh-components/assets/icons/mono/more-vertical.svg +5 -5
  656. package/dist/stzh-components/assets/icons/mono/paper-clip.svg +10 -10
  657. package/dist/stzh-components/assets/icons/mono/phone.svg +10 -10
  658. package/dist/stzh-components/assets/icons/mono/pin-location.svg +10 -10
  659. package/dist/stzh-components/assets/icons/mono/pin.svg +11 -11
  660. package/dist/stzh-components/assets/icons/mono/play-1.svg +4 -4
  661. package/dist/stzh-components/assets/icons/mono/play-button.svg +11 -11
  662. package/dist/stzh-components/assets/icons/mono/play.svg +10 -10
  663. package/dist/stzh-components/assets/icons/mono/plus.svg +3 -3
  664. package/dist/stzh-components/assets/icons/mono/portfolio-grid.svg +11 -11
  665. package/dist/stzh-components/assets/icons/mono/print.svg +10 -10
  666. package/dist/stzh-components/assets/icons/mono/question-help.svg +3 -3
  667. package/dist/stzh-components/assets/icons/mono/read-mail.svg +10 -10
  668. package/dist/stzh-components/assets/icons/mono/reload.svg +10 -10
  669. package/dist/stzh-components/assets/icons/mono/reset-time.svg +10 -10
  670. package/dist/stzh-components/assets/icons/mono/reset.svg +10 -10
  671. package/dist/stzh-components/assets/icons/mono/resize.svg +8 -8
  672. package/dist/stzh-components/assets/icons/mono/rss.svg +12 -12
  673. package/dist/stzh-components/assets/icons/mono/search.svg +3 -3
  674. package/dist/stzh-components/assets/icons/mono/services.svg +6 -6
  675. package/dist/stzh-components/assets/icons/mono/share.svg +3 -3
  676. package/dist/stzh-components/assets/icons/mono/shrink.svg +3 -3
  677. package/dist/stzh-components/assets/icons/mono/silent-mode.svg +3 -3
  678. package/dist/stzh-components/assets/icons/mono/social-media.svg +23 -23
  679. package/dist/stzh-components/assets/icons/mono/star-filled.svg +3 -3
  680. package/dist/stzh-components/assets/icons/mono/star.svg +3 -3
  681. package/dist/stzh-components/assets/icons/mono/subtitle.svg +3 -3
  682. package/dist/stzh-components/assets/icons/mono/team.svg +10 -10
  683. package/dist/stzh-components/assets/icons/mono/text-message.svg +6 -6
  684. package/dist/stzh-components/assets/icons/mono/thermometer.svg +10 -10
  685. package/dist/stzh-components/assets/icons/mono/transcript.svg +3 -3
  686. package/dist/stzh-components/assets/icons/mono/twitter-reply.svg +3 -3
  687. package/dist/stzh-components/assets/icons/mono/twitter-retweet.svg +3 -3
  688. package/dist/stzh-components/assets/icons/mono/twitter.svg +10 -10
  689. package/dist/stzh-components/assets/icons/mono/unlock.svg +10 -10
  690. package/dist/stzh-components/assets/icons/mono/user.svg +3 -3
  691. package/dist/stzh-components/assets/icons/mono/view-hidden.svg +3 -3
  692. package/dist/stzh-components/assets/icons/mono/view.svg +4 -4
  693. package/dist/stzh-components/assets/icons/mono/volume-medium.svg +3 -3
  694. package/dist/stzh-components/assets/icons/mono/warning-big.svg +4 -4
  695. package/dist/stzh-components/assets/icons/mono/warning.svg +3 -3
  696. package/dist/stzh-components/assets/icons/mono/web-Link.svg +3 -3
  697. package/dist/stzh-components/assets/icons/mono/wifi-signal.svg +3 -3
  698. package/dist/stzh-components/assets/icons/mono/world-globe.svg +10 -10
  699. package/dist/stzh-components/assets/icons/mono/xing.svg +11 -11
  700. package/dist/stzh-components/assets/polyfills/ie11CustomProperties.min.js +8 -8
  701. package/dist/stzh-components/assets/polyfills/intersection-observer.min.js +7 -7
  702. package/dist/stzh-components/assets/svgsprites/symbol/sprite.symbol.html +1354 -1354
  703. package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.Common.Settings.js +278 -278
  704. package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.Core.js +544 -544
  705. package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.HL.js +1111 -1111
  706. package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.PlayerAPI.js +211 -211
  707. package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.js +257 -257
  708. package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.lib.Facade.adapter.jquery.js +120 -120
  709. package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.lib.RSLib.js +796 -796
  710. package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.pub.Config.js +384 -384
  711. package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.ui.js +1241 -1241
  712. package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeakerClassic.css +357 -357
  713. package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeakerClassic.js +51 -51
  714. package/dist/stzh-components/assets/vendors/readspeaker/mods/enlargeHL/ReadSpeaker.enlargeHL.js +24 -24
  715. package/dist/stzh-components/{p-95a3c962.system.entry.js → p-043ab41e.system.entry.js} +1 -1
  716. package/dist/stzh-components/{p-bf5b6523.entry.js → p-07f16263.entry.js} +1 -1
  717. package/dist/stzh-components/p-08d4ed80.entry.js +1 -0
  718. package/dist/stzh-components/{p-e1b64b8a.system.entry.js → p-0c92ee26.system.entry.js} +1 -1
  719. package/dist/stzh-components/{p-3e3e4bfd.system.js → p-11816251.system.js} +0 -0
  720. package/dist/stzh-components/{p-d790a367.entry.js → p-11d0c8f3.entry.js} +1 -1
  721. package/dist/stzh-components/{p-bb900d9f.entry.js → p-14d728f0.entry.js} +1 -1
  722. package/dist/stzh-components/{p-f481f21d.system.js → p-176db2fe.system.js} +0 -0
  723. package/dist/stzh-components/{p-af47430b.system.entry.js → p-19344366.system.entry.js} +1 -1
  724. package/dist/stzh-components/{p-afa7061e.entry.js → p-1bfc1097.entry.js} +1 -1
  725. package/dist/stzh-components/{p-da8218fa.system.entry.js → p-1ccbd2d6.system.entry.js} +1 -1
  726. package/dist/stzh-components/{p-22f948e2.entry.js → p-1d914f6c.entry.js} +1 -1
  727. package/dist/stzh-components/{p-9fe34fe8.system.js → p-1e4b4d71.system.js} +0 -0
  728. package/dist/stzh-components/{p-160c6e5f.system.entry.js → p-1f15a4e0.system.entry.js} +1 -1
  729. package/dist/stzh-components/{p-1a40a6e4.js → p-25a09313.js} +0 -0
  730. package/dist/stzh-components/{p-ab2727e6.entry.js → p-298276e4.entry.js} +1 -1
  731. package/dist/stzh-components/{p-3ca5c2e6.system.entry.js → p-2990206c.system.entry.js} +1 -1
  732. package/dist/stzh-components/{p-320aedf7.js → p-2a5855f8.js} +0 -0
  733. package/dist/stzh-components/{p-6113bb25.entry.js → p-2d0685e3.entry.js} +1 -1
  734. package/dist/stzh-components/{p-1aaa5112.system.entry.js → p-2f2cb544.system.entry.js} +1 -1
  735. package/dist/stzh-components/{p-99195f5a.system.js → p-309d2b66.system.js} +0 -0
  736. package/dist/stzh-components/{p-59bdb14a.system.entry.js → p-30cb8bc0.system.entry.js} +1 -1
  737. package/dist/stzh-components/{p-8ba6ca80.js → p-32b78d65.js} +0 -0
  738. package/dist/stzh-components/{p-b06cc533.entry.js → p-33d75303.entry.js} +1 -1
  739. package/dist/stzh-components/{p-45d4e9b4.system.entry.js → p-346e26f2.system.entry.js} +1 -1
  740. package/dist/stzh-components/{p-4b8893d1.entry.js → p-3c4478b0.entry.js} +1 -1
  741. package/dist/stzh-components/{p-740dd50f.entry.js → p-3c799247.entry.js} +1 -1
  742. package/dist/stzh-components/{p-3410ef5a.system.entry.js → p-48bbcc26.system.entry.js} +1 -1
  743. package/dist/stzh-components/{p-3eb7b6b4.entry.js → p-49e37004.entry.js} +1 -1
  744. package/dist/stzh-components/{p-e029f6c5.system.entry.js → p-49ea222f.system.entry.js} +1 -1
  745. package/dist/stzh-components/p-4c61dcad.js +4 -4
  746. package/dist/stzh-components/{p-efb9fa47.system.entry.js → p-4cfe83b5.system.entry.js} +1 -1
  747. package/dist/stzh-components/{p-a499fa98.system.entry.js → p-4e9bfeb8.system.entry.js} +1 -1
  748. package/dist/stzh-components/{p-4c68fa45.system.js → p-5318ba20.system.js} +0 -0
  749. package/dist/stzh-components/{p-301841e3.entry.js → p-55188328.entry.js} +1 -1
  750. package/dist/stzh-components/{p-3afe13ac.system.entry.js → p-58ffc722.system.entry.js} +1 -1
  751. package/dist/stzh-components/{p-ebf73698.entry.js → p-5f7b72c8.entry.js} +1 -1
  752. package/dist/stzh-components/{p-af819e4e.system.js → p-5f856307.system.js} +0 -0
  753. package/dist/stzh-components/{p-73d51acc.system.entry.js → p-60b4f34c.system.entry.js} +1 -1
  754. package/dist/stzh-components/{p-5f20178b.system.js → p-6267a327.system.js} +0 -0
  755. package/dist/stzh-components/{p-ac9e6d17.system.entry.js → p-634095bd.system.entry.js} +1 -1
  756. package/dist/stzh-components/{p-42430cdf.js → p-6c502e6e.js} +0 -0
  757. package/dist/stzh-components/{p-f8bb1bed.system.entry.js → p-6ea5c23d.system.entry.js} +1 -1
  758. package/dist/stzh-components/{p-25afa99e.entry.js → p-6ec17efc.entry.js} +1 -1
  759. package/dist/stzh-components/{p-4b69a3e8.system.entry.js → p-6edd58a4.system.entry.js} +1 -1
  760. package/dist/stzh-components/{p-58b8d309.system.entry.js → p-7279af4a.system.entry.js} +1 -1
  761. package/dist/stzh-components/{p-7c6f9cb3.entry.js → p-73194e28.entry.js} +1 -1
  762. package/dist/stzh-components/{p-81d9f3e0.js → p-77a00e55.js} +0 -0
  763. package/dist/stzh-components/{p-bb91feeb.entry.js → p-79ca1ba6.entry.js} +1 -1
  764. package/dist/stzh-components/{p-79770abe.system.entry.js → p-7a6e347d.system.entry.js} +2 -2
  765. package/dist/stzh-components/{p-cd29b7ca.entry.js → p-7bb1bd3b.entry.js} +1 -1
  766. package/dist/stzh-components/{p-649164c7.entry.js → p-7d098987.entry.js} +1 -1
  767. package/dist/stzh-components/{p-b9e4095d.entry.js → p-7d2237ca.entry.js} +1 -1
  768. package/dist/stzh-components/{p-927901f5.system.entry.js → p-7d62dfeb.system.entry.js} +1 -1
  769. package/dist/stzh-components/{p-c2218965.system.entry.js → p-82d85c3a.system.entry.js} +1 -1
  770. package/dist/stzh-components/{p-adaf8b15.entry.js → p-8462ba57.entry.js} +1 -1
  771. package/dist/stzh-components/{p-a42a7524.entry.js → p-86d3ce62.entry.js} +1 -1
  772. package/dist/stzh-components/{p-1f3e6fad.system.entry.js → p-88a4f756.system.entry.js} +1 -1
  773. package/dist/stzh-components/{p-d7b5770c.entry.js → p-88bef2cd.entry.js} +1 -1
  774. package/dist/stzh-components/{p-a8c3af68.system.entry.js → p-8db4279d.system.entry.js} +1 -1
  775. package/dist/stzh-components/{p-0c2b5907.js → p-9111e257.js} +0 -0
  776. package/dist/stzh-components/{p-d2f660e1.system.js → p-9c0494a6.system.js} +0 -0
  777. package/dist/stzh-components/{p-b24040ff.system.entry.js → p-9e6c25ed.system.entry.js} +1 -1
  778. package/dist/stzh-components/{p-582cf0f1.system.js → p-a408bfba.system.js} +0 -0
  779. package/dist/stzh-components/{p-c3ac1bdc.system.entry.js → p-a4100bd8.system.entry.js} +1 -1
  780. package/dist/stzh-components/{p-efd78d08.system.entry.js → p-a6486f64.system.entry.js} +1 -1
  781. package/dist/stzh-components/{p-b56c83a4.entry.js → p-a7c3b41a.entry.js} +1 -1
  782. package/dist/stzh-components/{p-e00139a1.entry.js → p-a86c6487.entry.js} +1 -1
  783. package/dist/stzh-components/{p-e3769e97.system.js → p-aa4e28cc.system.js} +1 -1
  784. package/dist/stzh-components/p-ac1da083.system.js +1 -0
  785. package/dist/stzh-components/{p-17258518.entry.js → p-b3b5ee7e.entry.js} +1 -1
  786. package/dist/stzh-components/{p-87140179.system.entry.js → p-b63d6ded.system.entry.js} +1 -1
  787. package/dist/stzh-components/{p-63bf05f1.system.entry.js → p-bba52769.system.entry.js} +1 -1
  788. package/dist/stzh-components/{p-9be4e960.entry.js → p-bcade28e.entry.js} +1 -1
  789. package/dist/stzh-components/p-be21cebd.js +1 -0
  790. package/dist/stzh-components/{p-67eac0a0.entry.js → p-c2d58384.entry.js} +1 -1
  791. package/dist/stzh-components/{p-f0422b6c.entry.js → p-c6ad1a8c.entry.js} +1 -1
  792. package/dist/stzh-components/{p-649621fc.js → p-c8bcceac.js} +0 -0
  793. package/dist/stzh-components/{p-1e2ee622.system.entry.js → p-cb4a91b7.system.entry.js} +1 -1
  794. package/dist/stzh-components/{p-ffa293cf.entry.js → p-cf162e67.entry.js} +1 -1
  795. package/dist/stzh-components/{p-a7454367.js → p-cf6003d6.js} +0 -0
  796. package/dist/stzh-components/{p-d1821750.system.entry.js → p-d04e8743.system.entry.js} +1 -1
  797. package/dist/stzh-components/{p-0e9e4c68.entry.js → p-debb00e6.entry.js} +1 -1
  798. package/dist/stzh-components/{p-e69a66bb.js → p-df2bb358.js} +0 -0
  799. package/dist/stzh-components/{p-3da37219.entry.js → p-e048de42.entry.js} +1 -1
  800. package/dist/stzh-components/{p-a5b616bb.system.entry.js → p-e2ce48f1.system.entry.js} +1 -1
  801. package/dist/stzh-components/{p-22fba26d.entry.js → p-e58d3bc7.entry.js} +1 -1
  802. package/dist/stzh-components/{p-08cc711a.system.entry.js → p-e972a44f.system.entry.js} +1 -1
  803. package/dist/stzh-components/{p-6d23fb4d.system.entry.js → p-e987954a.system.entry.js} +1 -1
  804. package/dist/stzh-components/{p-648695c2.js → p-ee7a68db.js} +0 -0
  805. package/dist/stzh-components/p-ef5d4167.js +1 -1
  806. package/dist/stzh-components/{p-b3b05b6c.entry.js → p-f544cf3d.entry.js} +1 -1
  807. package/dist/stzh-components/{p-a7785d9b.system.js → p-f58c28ad.system.js} +0 -0
  808. package/dist/stzh-components/{p-c51a61cb.system.entry.js → p-f8d9411d.system.entry.js} +1 -1
  809. package/dist/stzh-components/{p-4e9e606f.entry.js → p-f9dc7a9b.entry.js} +1 -1
  810. package/dist/stzh-components/{p-ab864a8a.system.entry.js → p-fc9c4fc3.system.entry.js} +1 -1
  811. package/dist/stzh-components/{p-75f1b800.entry.js → p-ff8a3e96.entry.js} +1 -1
  812. package/dist/stzh-components/stzh-components.esm.js +1 -1
  813. package/dist/stzh-components/stzh-components.js +1 -1
  814. package/dist/types/components/stzh-appointments/stzh-appointments.localization.d.ts +11 -11
  815. package/dist/types/components/stzh-badge/stzh-badge.d.ts +8 -8
  816. package/dist/types/components/stzh-calendar/stzh-calendar-day.d.ts +14 -14
  817. package/dist/types/components/stzh-calendar/stzh-calendar-month.d.ts +21 -21
  818. package/dist/types/components/stzh-calendar/stzh-calendar.localization.d.ts +7 -7
  819. package/dist/types/components/stzh-cell/stzh-cell.d.ts +21 -21
  820. package/dist/types/components/stzh-container/stzh-container.d.ts +6 -6
  821. package/dist/types/components/stzh-cspace/stzh-cspace.d.ts +6 -6
  822. package/dist/types/components/stzh-datamessagelist-item/stzh-datamessagelist-item.localization.d.ts +4 -4
  823. package/dist/types/components/stzh-datatable/stzh-datatable.localization.d.ts +4 -4
  824. package/dist/types/components/stzh-datepicker/stzh-datepicker.localization.d.ts +5 -5
  825. package/dist/types/components/stzh-dialog/stzh-dialog.localization.d.ts +4 -4
  826. package/dist/types/components/stzh-dropdown/stzh-dropdown.localization.d.ts +7 -7
  827. package/dist/types/components/stzh-fieldset/stzh-fieldset.d.ts +15 -15
  828. package/dist/types/components/stzh-footer/stzh-footer.localization.d.ts +9 -9
  829. package/dist/types/components/stzh-ghettobox/stzh-ghettobox.localization.d.ts +5 -5
  830. package/dist/types/components/stzh-heading/stzh-heading.d.ts +13 -13
  831. package/dist/types/components/stzh-hspace/stzh-hspace.d.ts +25 -25
  832. package/dist/types/components/stzh-icon/stzh-icon.d.ts +15 -15
  833. package/dist/types/components/stzh-icon-sprite/stzh-icon-sprite.d.ts +3 -3
  834. package/dist/types/components/stzh-input/stzh-input-description.d.ts +11 -11
  835. package/dist/types/components/stzh-menu/stzh-menu.d.ts +6 -6
  836. package/dist/types/components/stzh-message/stzh-message.localization.d.ts +4 -4
  837. package/dist/types/components/stzh-popover/stzh-popover.localization.d.ts +4 -4
  838. package/dist/types/components/stzh-portal-mitwirken/stzh-portal-mitwirken.d.ts +8 -8
  839. package/dist/types/components/stzh-progressbar-item/stzh-progressbar-item.d.ts +22 -22
  840. package/dist/types/components/stzh-row/stzh-row.d.ts +23 -23
  841. package/dist/types/components/stzh-saptcha/stzh-saptcha.localization.d.ts +7 -7
  842. package/dist/types/components/stzh-section/stzh-section.d.ts +8 -8
  843. package/dist/types/components/stzh-servicecard/stzh-servicecard.localization.d.ts +8 -8
  844. package/dist/types/components/stzh-servicecard-list/stzh-servicecard-list.localization.d.ts +5 -5
  845. package/dist/types/components/stzh-skiplink/stzh-skiplink.d.ts +16 -16
  846. package/dist/types/components/stzh-sortable/stzh-sortable.localization.d.ts +8 -8
  847. package/dist/types/components/stzh-text/stzh-text.d.ts +23 -23
  848. package/dist/types/components/stzh-tooltip/stzh-tooltip.localization.d.ts +4 -4
  849. package/dist/types/components/stzh-upload/stzh-upload.localization.d.ts +16 -16
  850. package/dist/types/components/stzh-vbz-majorticker/stzh-vbz-majorticker.localization.d.ts +4 -4
  851. package/dist/types/components/stzh-vbz-ticker/stzh-vbz-ticker.localization.d.ts +15 -15
  852. package/dist/types/components/stzh-visuallyhidden/stzh-visuallyhidden.d.ts +6 -6
  853. package/dist/types/components/stzh-vspace/stzh-vspace.d.ts +25 -25
  854. package/dist/types/index.d.ts +427 -427
  855. package/dist/types/utils/animation-utils.d.ts +10 -10
  856. package/dist/types/utils/date-adapter.d.ts +8 -8
  857. package/dist/types/utils/date-utils.d.ts +61 -61
  858. package/dist/types/utils/event-utils.d.ts +1 -1
  859. package/dist/types/utils/h.d.ts +18 -18
  860. package/dist/types/utils/media-utils.d.ts +3 -3
  861. package/dist/types/utils/string-utils.d.ts +2 -2
  862. package/dist/types/utils/test-utils.d.ts +9 -9
  863. package/dist/types/utils/translation-utils.d.ts +40 -40
  864. package/dist/types/utils/utils.d.ts +3 -3
  865. package/dist/vscode-data.json +64 -60
  866. package/package.json +1 -1
  867. package/dist/esm-es5/app-globals-137e106c.js +0 -1
  868. package/dist/stzh-components/p-4476344d.js +0 -1
  869. package/dist/stzh-components/p-5977373f.system.js +0 -1
  870. package/dist/stzh-components/p-91e9ccfa.entry.js +0 -1
  871. package/dist/types/components/stzh-accordion/stzh-accordion.d.ts +0 -15
  872. package/dist/types/components/stzh-accordion-item/stzh-accordion-item.d.ts +0 -44
  873. package/dist/types/components/stzh-actions/stzh-actions.d.ts +0 -16
  874. package/dist/types/components/stzh-appnav/stzh-appnav.d.ts +0 -17
  875. package/dist/types/components/stzh-appointments/stzh-appointments.d.ts +0 -73
  876. package/dist/types/components/stzh-button/stzh-button.d.ts +0 -59
  877. package/dist/types/components/stzh-calendar/stzh-calendar.d.ts +0 -76
  878. package/dist/types/components/stzh-checkbox/stzh-checkbox.d.ts +0 -55
  879. package/dist/types/components/stzh-checkboxgroup/stzh-checkboxgroup.d.ts +0 -62
  880. package/dist/types/components/stzh-chip/stzh-chip.d.ts +0 -47
  881. package/dist/types/components/stzh-chip-select/stzh-chip-select.d.ts +0 -23
  882. package/dist/types/components/stzh-datamessagelist/stzh-datamessagelist.d.ts +0 -6
  883. package/dist/types/components/stzh-datamessagelist-item/stzh-datamessagelist-item.d.ts +0 -44
  884. package/dist/types/components/stzh-datatable/stzh-datatable.d.ts +0 -49
  885. package/dist/types/components/stzh-datepicker/stzh-datepicker.d.ts +0 -93
  886. package/dist/types/components/stzh-dialog/stzh-dialog.d.ts +0 -59
  887. package/dist/types/components/stzh-dropdown/stzh-dropdown.d.ts +0 -150
  888. package/dist/types/components/stzh-figure/stzh-figure.d.ts +0 -13
  889. package/dist/types/components/stzh-flyingfocus/stzh-flyingfocus.d.ts +0 -39
  890. package/dist/types/components/stzh-footer/stzh-footer.d.ts +0 -21
  891. package/dist/types/components/stzh-ghettobox/stzh-ghettobox.d.ts +0 -49
  892. package/dist/types/components/stzh-header/stzh-header.d.ts +0 -57
  893. package/dist/types/components/stzh-hr/stzh-hr.d.ts +0 -7
  894. package/dist/types/components/stzh-input/stzh-input.d.ts +0 -95
  895. package/dist/types/components/stzh-link/stzh-link.d.ts +0 -50
  896. package/dist/types/components/stzh-list/stzh-list.d.ts +0 -9
  897. package/dist/types/components/stzh-list-item/stzh-list-item.d.ts +0 -7
  898. package/dist/types/components/stzh-loader/stzh-loader.d.ts +0 -13
  899. package/dist/types/components/stzh-loadingbar/stzh-loadingbar.d.ts +0 -12
  900. package/dist/types/components/stzh-menu-item/stzh-menu-item.d.ts +0 -35
  901. package/dist/types/components/stzh-message/stzh-message.d.ts +0 -36
  902. package/dist/types/components/stzh-metanav/stzh-metanav.d.ts +0 -11
  903. package/dist/types/components/stzh-overlay/stzh-overlay.d.ts +0 -34
  904. package/dist/types/components/stzh-page-skiplinks/stzh-page-skiplinks.d.ts +0 -11
  905. package/dist/types/components/stzh-pagetitle/stzh-pagetitle.d.ts +0 -11
  906. package/dist/types/components/stzh-popover/stzh-popover.d.ts +0 -73
  907. package/dist/types/components/stzh-progressbar/stzh-progressbar.d.ts +0 -42
  908. package/dist/types/components/stzh-radio/stzh-radio.d.ts +0 -55
  909. package/dist/types/components/stzh-radiogroup/stzh-radiogroup.d.ts +0 -64
  910. package/dist/types/components/stzh-readspeaker/stzh-readspeaker.d.ts +0 -18
  911. package/dist/types/components/stzh-richtext/stzh-richtext.d.ts +0 -14
  912. package/dist/types/components/stzh-saptcha/stzh-saptcha.d.ts +0 -28
  913. package/dist/types/components/stzh-servicecard/stzh-servicecard.d.ts +0 -72
  914. package/dist/types/components/stzh-servicecard-list/stzh-servicecard-list.d.ts +0 -23
  915. package/dist/types/components/stzh-sortable/stzh-sortable.d.ts +0 -52
  916. package/dist/types/components/stzh-status/stzh-status.d.ts +0 -14
  917. package/dist/types/components/stzh-table/stzh-table.d.ts +0 -33
  918. package/dist/types/components/stzh-toggle/stzh-toggle.d.ts +0 -57
  919. package/dist/types/components/stzh-tooltip/stzh-tooltip.d.ts +0 -78
  920. package/dist/types/components/stzh-upload/stzh-upload.d.ts +0 -207
  921. package/dist/types/components/stzh-vbz-linechip/stzh-vbz-linechip.d.ts +0 -27
  922. package/dist/types/components/stzh-vbz-majorticker/stzh-vbz-majorticker.d.ts +0 -34
  923. package/dist/types/components/stzh-vbz-ticker/stzh-vbz-ticker.d.ts +0 -54
  924. package/dist/types/types/svg.d.ts +0 -4
@@ -1,1111 +1,1111 @@
1
- rspkr.HL = function () {
2
- var c = "", a = {firstRun: 0, previousWord: {}, previousSent: {}, lastWord: null, selectionRange: null, selectionHTML: null, selectedWordsRange: []}, d = {oldWordHL: [], oldWordHLClass: [], oldSentHL: [], oldSentHLClass: [], sync: function (b, j) {
3
- var a = !1, c = document.getElementById("sync" + j);
4
- 0 == (b & 2) && (a = 0 != (b & 1) ? !0 : !1);
5
- if (c && c.className.replace("word", "") != c.className) {
6
- if (!a && 0 < this.oldWordHL.length) {
7
- for (a = 0; a < this.oldWordHLClass.length; a++)this.oldWordHL[a].className = this.oldWordHLClass[a];
8
- this.oldWordHL = [];
9
- this.oldWordHLClass = []
10
- }
11
- this.oldWordHLClass.push(c.className);
12
- this.oldWordHL.push(c);
13
- rspkr.HL.customHL && rspkr.HL.customHL.active() && rspkr.HL.customHL.wordHL(c, b);
14
- c.className = c.className.replace("sync_word", "sync_word_highlighted")
15
- } else if (c && c.className.replace("sent", "") != c.className) {
16
- if (!a && 0 < this.oldSentHL.length) {
17
- for (a = 0; a < this.oldSentHL.length; a++)this.oldSentHL[a].className = this.oldSentHLClass[a];
18
- this.oldSentHL = [];
19
- this.oldSentHLClass = []
20
- }
21
- this.oldSentHLClass.push(c.className);
22
- this.oldSentHL.push(c);
23
- rspkr.HL.customHL && rspkr.HL.customHL.active() && rspkr.HL.customHL.sentHL(c, b);
24
- c.className = c.className.replace("sync_sent", "sync_sent_highlighted")
25
- }
26
- c && rspkr.HL.Scroll.execScroll(c)
27
- }, preProcess: {setRestoreContent: function () {
28
- rspkr.log("[Servermarkup.preProcess.setRestoreContent] Called!");
29
- var b = rspkr.Common.data.getParam("readid"), b = document.getElementById(b).innerHTML;
30
- rspkr.Common.data.setRestoreContent(b)
31
- }}, postProcess: {fullCleanUp: function () {
32
- rspkr.log("[Servermarkup.postProcess.fullCleanUp] Called!");
33
- rspkr.HL.Restore.all()
34
- }, lightCleanUp: function () {
35
- rspkr.log("[Servermarkup.postProcess.lightCleanUp] Called!");
36
- var b = rspkr.HL.serverMarkup.oldWordHL, a = rspkr.HL.serverMarkup.oldWordHLClass, c = rspkr.HL.serverMarkup.oldSentHL, e = rspkr.HL.serverMarkup.oldSentHLClass;
37
- if (0 < b.length) {
38
- for (var d = 0; d < b.length; d++)b[d].className = a[d];
39
- rspkr.HL.serverMarkup.oldWordHL = [];
40
- rspkr.HL.serverMarkup.oldWordHLClass = []
41
- }
42
- if (0 < c.length) {
43
- for (d = 0; d < c.length; d++)c[d].className = e[d];
44
- rspkr.HL.serverMarkup.oldSentHL = [];
45
- rspkr.HL.serverMarkup.oldSentHLClass =
46
- []
47
- }
48
- b = document.getElementsByTagName(rspkr.Common.data.browser.syncContainer);
49
- for (d = b.length - 1; -1 < d; d--)b[d].className = b[d].className.replace("sync_sent_highlighted", "sync_sent"), b[d].className = b[d].className.replace("sync_word_highlighted", "sync_word"), -1 !== b[d].className.toLowerCase().indexOf("sync_user") && (b[d].className = b[d].className.replace("sync_sent", ""), b[d].className = b[d].className.replace("sync_word", ""), b[d].removeAttribute("id"))
50
- }}}, e = {enums: {key: "readspeaker_inline_styles", sent: "sync_sent",
51
- sent_hl: "sync_sent_highlighted", word: "sync_word", word_hl: "sync_word_highlighted"}, word_index: null, sent_index: null, hlChanged: !1, setHL: function () {
52
- var b = rspkr.pub.Config, a = rspkr.Common.Settings.get("hlword") || b.item("settings.hlword"), c = rspkr.Common.Settings.get("hlsent") || b.item("settings.hlsent"), b = rspkr.Common.Settings.get("hltext") || b.item("settings.hltext");
53
- this.updateHL("hlword", a, null);
54
- this.updateHL("hlsent", c, null);
55
- this.updateHL("hltext", b, null)
56
- }, updateHL: function (b, j, d) {
57
- d = d || null;
58
- "hlspeed" ===
59
- b && j !== d && (this.hlChanged = !0);
60
- if (j !== d && ("hl" === b || "hltoggle" === b))this.hlChanged = !0, rspkr.HL.sync.lightCleanUp();
61
- if (j !== d && ("hl" === b && "none" !== j || "hltoggle" === b && "hlon" === j))this.setTextStyle("word", rspkr.Common.Settings.get("hlword")), this.setTextStyle("sent", rspkr.Common.Settings.get("hlsent")), this.setTextStyle("hltext", rspkr.Common.Settings.get("hltext")), this.hlChanged = !0, rspkr.HL.Type.CURRENT === rspkr.HL.Type.CLIENT_MARKUP && rspkr.PlayerAPI.releaseAdapter();
62
- /hltext|hlword|hlsent|hlscroll/i.test(b) &&
63
- j != d && ("hlscroll" == b ? rspkr.HL.Scroll.initScroll() : (this.setTextStyle(b, j), "explorer" == c && (a.selectionRange && ("wordsent" === rspkr.st.get("hl") && "hlsent" == b) && (a.selectionRange.execCommand("backcolor", 0, rspkr.Common.Settings.get("hlsent")), a.selectionRange.execCommand("forecolor", 0, rspkr.Common.Settings.get("hltext"))), a.lastWord && ("sent" == rspkr.st.get("hl") ? a.lastWord.execCommand("backcolor", 0, rspkr.Common.Settings.get("hlsent")) : a.lastWord.execCommand("backcolor", 0, rspkr.Common.Settings.get("hlword")),
64
- a.lastWord.execCommand("forecolor", 0, rspkr.Common.Settings.get("settings.hltext"))))))
65
- }, setTextStyle: function (b, a, c) {
66
- var d = /word/.test(b) ? "word" : "sent", g = "background-color", c = c || e.enums.key;
67
- /underline/.test(a) ? (g = "text-decoration", a += " !important; background-color: none !important") : /none/.test(a) ? (g = "background", a += " !important; text-decoration: none !important; background-color: none !important") : "hltext" === b ? (b = a, a = this.getStyleString(rspkr.Common.Settings.get("hlsent"), b), b = this.getStyleString(rspkr.Common.Settings.get("hlword"),
68
- b), rspkr.Common.css.replaceRule(c, "." + e.enums.word_hl, g + ": " + b)) : a += " !important; text-decoration: none !important; color: " + rspkr.Common.Settings.get("hltext") + " !important";
69
- rspkr.Common.css.replaceRule(c, "." + e.enums[d + "_hl"], g + ": " + a)
70
- }, getStyleString: function (b, a) {
71
- var c = /underline|none/i.test(b) ? "none" : b, d = /underline/i.test(b) ? "underline" : "none";
72
- return c + " !important; text-decoration: " + d + " !important; color: " + a + " !important"
73
- }};
74
- return{meta: {revision: "3253"}, init: function () {
75
- var b = rspkr.Common.addEvent;
76
- b("onAfterModsLoaded", function () {
77
- b("onAPIInitAdapter", rspkr.HL.Restore.setRestoreContent);
78
- rspkr.HL.addEvents();
79
- rspkr.HL.Scroll.initScroll();
80
- c = document.selection && (9 > rspkr.Common.data.browser.version || 9 > document.documentMode) ? "explorer" : "gecko";
81
- rspkr.log("[rspkr.hl] Using engine " + c);
82
- var j = rspkr.HL.engine[c].clientExtension, d;
83
- for (d in j)a[d] = j[d];
84
- window.addEventListener && window.addEventListener("message", rspkr.HL.html5.receiveMessage, !1, !0)
85
- });
86
- b("onModsLoaded", {func: e.setHL, context: e});
87
- b("onSettingsChanged",
88
- {func: e.updateHL, context: e});
89
- var j = rspkr.HL, d = document.createElement("audio");
90
- j.chunking = {html5support: !!d.canPlayType, close: function () {
91
- var b = $rs.get(".rsresume");
92
- $rs.isArray(b) || (b = [b]);
93
- for (var a = 0, c; c = b[a]; a++)c.parentElement.removeChild(c)
94
- }, silence: function () {
95
- rspkr.HL.chunking.entracte && rspkr.HL.chunking.entracte.src && (rspkr.HL.chunking.entracte.pause(), rspkr.HL.chunking.entracte.currentTime && (rspkr.HL.chunking.entracte.currentTime = 0))
96
- }, kill: function () {
97
- rspkr.HL.chunking.timer && clearTimeout(rspkr.HL.chunking.timer);
98
- rspkr.HL.chunking.continueHref = null;
99
- rspkr.HL.chunking.stall = null;
100
- rspkr.HL.chunking.chunkEnded = null;
101
- rspkr.HL.chunking.currentChunkNumber = 1;
102
- rspkr.HL.chunking.entracte && rspkr.HL.chunking.entracte.removeAttribute("src")
103
- }, destroy: function () {
104
- rspkr.HL.chunking.silence();
105
- rspkr.HL.chunking.close();
106
- rspkr.HL.chunking.kill()
107
- }};
108
- rspkr.HL.chunking.currentChunkNumber = 1;
109
- -1 != Object.keys(rspkr.Common.e).indexOf("onChunkResume") && b("onChunkResume", function () {
110
- rspkr.HL.chunking.silence();
111
- var b = rspkr.ui.getActivePlayer().getContainer();
112
- if ($rs.hasClass(b, "rsautopaused") || !$rs.hasClass(b, "rspaused"))if (rspkr.HL.chunking.stall)setTimeout(function () {
113
- rspkr.c.dispatchEvent("onChunkResume", window)
114
- }, 250); else {
115
- $rs.removeClass(b, "rsautopaused");
116
- clearTimeout(rspkr.HL.chunking.timer);
117
- var b = rspkr.HL.chunking.continueHref.replace("%{AUDIOFORMAT}", rspkr.Common.data.browser.html5AudioFormat), a = rspkr.HL.chunking.continueHref.replace("%{AUDIOFORMAT}", "html5iframe");
118
- rspkr.HL.chunking.continueHref = void 0;
119
- rspkr.HL.html5.audioUrl = b.replace(/&amp;/g,
120
- "&");
121
- rspkr.HL.html5.frameUrl = a.replace(/&amp;/g, "&");
122
- rspkr.HL.html5.initSyncFrame();
123
- rspkr.HL.html5.initAudio();
124
- rspkr.ui.getActivePlayer().play();
125
- rspkr.HL.chunking.currentChunkNumber++
126
- }
127
- });
128
- rspkr.log("[rspkr.HL] Initialized!")
129
- }, addEvents: function () {
130
- rspkr.log("[rspkr.HL.addEvents]");
131
- evt("onUIClosePlayer", rspkr.HL.sync.lightCleanUp);
132
- evt("onUIClosePlayer", rspkr.HL.cleanUpHandler);
133
- evt("onUIClosePlayer", function () {
134
- rspkr.hl.State.setState(rspkr.hl.State.READY)
135
- });
136
- evt("onUIStop", function () {
137
- rspkr.hl.State.setState(rspkr.hl.State.STOPPED)
138
- });
139
- evt("onUIBeforePlay", function () {
140
- rspkr.hl.Restore.checkContent()
141
- });
142
- rspkr.PlayerAPI && (rspkr.PlayerAPI.adapter && "html5" === rspkr.PlayerAPI.adapter) && (rspkr.evt("onAPIInitAdapter", rspkr.HL.html5.handlers.init), rspkr.evt("onAPIPlay", rspkr.HL.html5.handlers.play), rspkr.evt("onAPIPause", rspkr.HL.html5.handlers.pause), rspkr.evt("onAPIStop", rspkr.HL.html5.handlers.stop), rspkr.evt("onAPIRewind", rspkr.HL.html5.handlers.updateTime), rspkr.evt("onAPISetProgress", rspkr.HL.html5.handlers.updateTime), rspkr.evt("onAPIReleaseAdapter",
143
- rspkr.HL.html5.handlers.release));
144
- rspkr.evt("onAPIStop", rspkr.HL.sync.lightCleanUp)
145
- }, cleanUpHandler: function (b) {
146
- rspkr.log("[rspkr.HL.cleanUpHandler] String is: " + b);
147
- "userclick" === b || "nosel" === b ? rspkr.HL.sync.fullCleanUp() : rspkr.HL.sync.lightCleanUp()
148
- }, clientMarkup: a, serverMarkup: d, markedUpHTML: [], html5: {States: {BEGIN: 0, STOPPED: 1, USER_START_NOT_READY: 2, USER_START_PLAYING: 3, NOT_PLAYING: 4, CURRENT: 0, setState: function (b) {
149
- this.CURRENT = b;
150
- rspkr.log("[rspkr.hl.html5.States.setState] Changing state from " +
151
- this.CURRENT + " to " + b, 1)
152
- }}, Events: {canPlay: !1, durationChange: !1, syncReady: !1, eventTimer: null, onCanPlay: function () {
153
- rspkr.log("onCanPlay fired!", 1);
154
- this.canPlay = !0;
155
- this.checkCompletion();
156
- this.eventTimer = setTimeout(function () {
157
- rspkr.log("[rspkr.hl.html5.Events] Timer triggered. Starting playback.", 1);
158
- rspkr.hl.html5.Events.resetAll();
159
- rspkr.hl.html5.refresh()
160
- }, 2500);
161
- return!1
162
- }, checkCompletion: function () {
163
- this.canPlay && (this.durationChange && this.syncReady) && (clearTimeout(this.eventTimer), this.eventTimer = null,
164
- rspkr.hl.html5.Events.resetAll(), rspkr.hl.html5.refresh())
165
- }, onDurationChange: function () {
166
- rspkr.log("onDurationChange fired!", 1);
167
- this.durationChange = !0;
168
- this.checkCompletion();
169
- this.eventTimer = setTimeout(function () {
170
- rspkr.log("[rspkr.hl.html5.Events] Timer triggered. Starting playback.", 1);
171
- rspkr.hl.html5.Events.resetAll();
172
- rspkr.hl.html5.refresh()
173
- }, 2500)
174
- }, onSyncReady: function () {
175
- rspkr.log("onSyncReady fired!", 1);
176
- this.syncReady = !0;
177
- this.checkCompletion();
178
- this.eventTimer = setTimeout(function () {
179
- rspkr.log("[rspkr.hl.html5.Events] Timer triggered. Starting playback.",
180
- 1);
181
- rspkr.hl.html5.Events.resetAll();
182
- rspkr.hl.html5.refresh()
183
- }, 2500)
184
- }, resetAll: function () {
185
- this.syncReady = this.durationChange = this.canPlay = !1
186
- }}, lastcurrenttime: -1, currentsyncindex: 0, lastevent: null, lastlastevent: null, lastlastlastevent: null, synclist: [], synclistindex: 0, audioUrl: null, backupUrl: null, frameUrl: null, timer: null, postMessageData: [], runningRefresh: !1, handlers: {init: function () {
187
- rspkr.log("[rspkr.HL.html5.handlers.init]");
188
- rspkr.HL.html5.cronologyCheck = {proxyCallsDone: !1, errorOccured: !1, quarantine: []};
189
- rspkr.HL.html5.rshlendCall = !1;
190
- var b = Math.random(), a = {};
191
- a.audioformat = rspkr.Common.data.browser.html5AudioFormat;
192
- a.requestgrouptype = "html5iframe";
193
- a.requestgroup = b;
194
- window.rshlcontinue && ("function" == typeof window.rshlcontinue && -1 != Object.keys(rspkr.Common.e).indexOf("onChunkResume")) && (a.chunk = 1);
195
- rspkr.HL.html5.backupUrl = rspkr.Common.data.getAudioLink(a);
196
- (!0 === rspkr.cfg.item("general.usePost") || 0 < rspkr.Common.data.selectedText.length || 0 < rspkr.Common.data.selectedHTML.length) && "iOS" !== rspkr.Common.data.browser.OS &&
197
- "Android" !== rspkr.Common.data.browser.OS ? rspkr.HL.html5.timer = setTimeout(function () {
198
- rspkr.HL.html5.initSyncFrame(a);
199
- rspkr.HL.html5.initAudio();
200
- clearTimeout(rspkr.HL.html5.timer)
201
- }, 2E3) : (rspkr.log("Normal audio init!"), rspkr.HL.html5.initSyncFrame(a), rspkr.HL.html5.initAudio())
202
- }, play: function () {
203
- rspkr.log("[rspkr.HL.html5.handlers.play]");
204
- rspkr.HL.Type.CURRENT == rspkr.HL.Type.CLIENT_MARKUP && rspkr.hl.html5.States.CURRENT == rspkr.hl.html5.States.STOPPED ? (rspkr.hl.html5.States.setState(rspkr.hl.html5.States.BEGIN),
205
- rspkr.PlayerAPI.playerRef.pause(), rspkr.HL.html5.handlers.runPostMessages()) : rspkr.HL.Type.CURRENT == rspkr.HL.Type.SERVER_MARKUP && rspkr.hl.html5.States.CURRENT == rspkr.hl.html5.States.STOPPED ? rspkr.hl.State.setState(rspkr.hl.State.RELOAD) ? this.init() : (rspkr.hl.html5.States.setState(rspkr.hl.html5.States.BEGIN), rspkr.PlayerAPI.playerRef.pause(), rspkr.HL.html5.handlers.runPostMessages()) : (rspkr.hl.html5.States.CURRENT = rspkr.hl.html5.States.USER_START_PLAYING, rspkr.hl.html5.refresh())
206
- }, pause: function () {
207
- rspkr.hl.html5.States.setState(rspkr.hl.html5.States.NOT_PLAYING);
208
- rspkr.hl.html5.lastcurrenttime = 0
209
- }, release: function () {
210
- rspkr.log("[rspkr.HL.html5.handlers.release]");
211
- rspkr.HL.html5.synclist = [];
212
- rspkr.HL.html5.synclistindex = 0;
213
- rspkr.HL.html5.currentsyncindex = 0;
214
- rspkr.HL.html5.lastcurrenttime = -1;
215
- rspkr.HL.html5.audioUrl = null;
216
- rspkr.HL.html5.backupUrl = null;
217
- rspkr.HL.html5.frameUrl = null;
218
- rspkr.HL.html5.postMessageData = [];
219
- rspkr.HL.html5.Events.resetAll();
220
- rspkr.PlayerAPI.playerRef && rspkr.PlayerAPI.playerRef.removeEventListener("ended", rshlexit, !1);
221
- rspkr.PlayerAPI.playerRef =
222
- null;
223
- var b = document.getElementById("ReadSpeaker_sync_iframe");
224
- b && (b.src = "about:blank")
225
- }, stop: function () {
226
- rspkr.hl.html5.States.setState(rspkr.hl.html5.States.STOPPED);
227
- rspkr.HL.html5.lastcurrenttime = -1;
228
- rspkr.HL.html5.currentsyncindex = 0
229
- }, updateTime: function () {
230
- rspkr.log("[rspkr.HL.html5.handlers.updateTime]");
231
- rspkr.hl.html5.States.setState(rspkr.hl.html5.States.NOT_PLAYING);
232
- rspkr.HL.html5.lastcurrenttime = rspkr.PlayerAPI.playerRef.currentTime;
233
- rspkr.HL.html5.currentsyncindex = 0;
234
- rspkr.HL.html5.handlers.setCurrentSyncIndex();
235
- rspkr.hl.html5.States.setState(rspkr.hl.html5.States.USER_START_PLAYING)
236
- }, runPostMessages: function () {
237
- rspkr.log("[rspkr.HL.html5.handlers.runPostMessages]");
238
- var b = rspkr.HL.html5.postMessageData, a;
239
- for (a in b)null !== b[a - 1] && "rshlsetContent" == b[a] ? rspkr.HL.sync.setContent(rspkr.Common.base64.decode(b[a - 1])) : null !== b[a - 1] && "rshlsetId" == b[a] ? rspkr.HL.sync.setId(b[a - 1]) : "rshlinit" == b[a] && (rspkr.HL.sync.init(), rspkr.PlayerAPI.playerRef.play(), rspkr.HL.html5.refresh())
240
- }, setCurrentSyncIndex: function () {
241
- if (0 <
242
- rspkr.HL.html5.synclist.length && rspkr.HL.html5.synclist[rspkr.HL.html5.currentsyncindex])for (; rspkr.HL.html5.synclist[rspkr.HL.html5.currentsyncindex] && 20 >= 1 * rspkr.HL.html5.synclist[rspkr.HL.html5.currentsyncindex][0] - 1E3 * rspkr.PlayerAPI.playerRef.currentTime;)rspkr.HL.html5.currentsyncindex++
243
- }, totalTime: function () {
244
- var b = rspkr.PlayerAPI.playerRef;
245
- if (b)if ("Opera" !== rspkr.Common.data.browser.name && b.buffered && b.buffered.end)try {
246
- return 0 < b.buffered.length ? b.buffered.end(b.buffered.length - 1) : b.buffered.end(0)
247
- } catch (a) {
248
- return b.duration &&
249
- "infinity" !== b.duration.toString().toLowerCase() && "NaN" !== b.duration ? b.duration : b.currentTime + 15
250
- } else return b.duration && "infinity" !== b.duration.toString.toLowerCase() && "NaN" !== b.duration ? b.duration : b.currentTime + 15
251
- }}, initAudio: function () {
252
- rspkr.HL.html5.audioUrl || (rspkr.HL.html5.audioUrl = rspkr.HL.html5.backupUrl);
253
- rspkr.log("[rspkr.html5.initAudio] Audio URL: " + rspkr.HL.html5.audioUrl, 1);
254
- /ios|android/i.test(rspkr.c.data.browser.OS) && "object" === typeof window.rspkr.audio && null !== window.rspkr.audio ? (rspkr.audio.src =
255
- rspkr.HL.html5.audioUrl, rspkr.PlayerAPI.playerRef = rspkr.audio, rspkr.log("[rs.hl.initAudio] Reusing existing audio element.", 4)) : rspkr.PlayerAPI.playerRef = new Audio(rspkr.HL.html5.audioUrl);
256
- var b = rspkr.PlayerAPI.playerRef;
257
- b.loop = !1;
258
- b.preload = "auto";
259
- b.volume = parseFloat((rspkr.st.get("hlvol") || 100) / 100);
260
- rspkr.devt("onVolumeAdjusted", window);
261
- /ios|android/i.test(rspkr.c.data.browser.OS) && (rspkr.PlayerAPI.playerRef.play(), rspkr.PlayerAPI.playerRef.pause());
262
- b.addEventListener("canplay", function () {
263
- rspkr.hl.html5.Events.onCanPlay()
264
- },
265
- !1);
266
- b.addEventListener("durationchange", function () {
267
- rspkr.log("[rspkr.hl.html5.initAudio] Durationchange occurred", 1);
268
- 1 == rspkr.HL.html5.handlers.totalTime() && !0 == rspkr.PlayerAPI.playerRef.paused ? rspkr.HL.html5.initAudio() : (0 === rspkr.HL.html5.handlers.totalTime() && rspkr.pl.playerRef.play(), rspkr.hl.html5.Events.onDurationChange())
269
- }, !1);
270
- rspkr.PlayerAPI.playerRef.addEventListener("ended", function () {
271
- rs.HL.chunking.continueHref ? window.rshlcontinue() : window.rshlexit("false")
272
- }, !1);
273
- rspkr.pl.checkNetworkStatus();
274
- rspkr.hl.html5.States.setState(rspkr.hl.html5.States.BEGIN)
275
- }, initSyncFrame: function (b) {
276
- if ("none" != rspkr.Common.data.sync) {
277
- var a = null;
278
- document.getElementById("ReadSpeaker_sync_iframe") ? a = document.getElementById("ReadSpeaker_sync_iframe") : (a = document.createElement("iframe"), a.setAttribute("id", "ReadSpeaker_sync_iframe"), a.setAttribute("title", "ReadSpeaker_sync_iframe"), a.setAttribute("aria-hidden", "true"), a.height = 0, a.width = 0, a.style.display = "none", document.body.appendChild(a));
279
- !rspkr.HL.html5.frameUrl &&
280
- (!0 === rspkr.cfg.item("general.usePost") || 0 < rspkr.Common.data.selectedText.length || 0 < rspkr.Common.data.selectedHTML.length) ? rspkr.HL.html5.frameUrl = rspkr.HL.html5.backupUrl + "sync" : rspkr.HL.html5.frameUrl || (b.audioformat = "html5iframe", rspkr.HL.html5.frameUrl = rspkr.Common.data.getAudioLink(b));
281
- rspkr.log("[rspkr.HL.html5.initSyncFrame] Audio URL: " + rspkr.HL.html5.frameUrl);
282
- rspkr.HL.html5.frameUrl && (a.src = rspkr.HL.html5.frameUrl, a.type = "text/javascript")
283
- } else rspkr.hl.html5.States.setState(rspkr.hl.html5.States.USER_START_PLAYING),
284
- rspkr.PlayerAPI.playerRef.play()
285
- }, removeSyncFrame: function () {
286
- var b = document.getElementById("ReadSpeaker_sync_iframe");
287
- b && b.parentNode.removeChild(b)
288
- }, receiveMessage: function (b) {
289
- var a = !0;
290
- rspkr.cfg.item("general.servercall") && (a = document.createElement("a"), a.href = rspkr.cfg.item("general.servercall"), a = !b.origin.match(a.hostname));
291
- if (b.origin.match(/readspeaker.?.com/gi) || b.origin.match(rspkr.cfg.item("general.domain")) || !a) {
292
- if (!0 === rspkr.cfg.item("general.usePost")) {
293
- var c = rspkr.HL.html5.cronologyCheck;
294
- if ("rshlend" === b.data && c.quarantine && 0 < c.quarantine.length)c.errorOccured = !1, c.cleanUpTimer = setInterval(function () {
295
- if (0 < c.quarantine.length) {
296
- var b = c.quarantine.shift();
297
- window.postMessage(b, "*")
298
- } else clearInterval(c.cleanUpTimer)
299
- }, 0); else if ("rshlendpost" === b.data)c.proxyCallsDone = !0; else if ((!c.proxyCallsDone || c.errorOccured) && "http" !== b.data.substring(0, 4) && "rshlaudio" !== b.data && "rshlhtml5sync" !== b.data && "rshlfinished" !== b.data) {
300
- c.errorOccured = !0;
301
- c.quarantine.push(b.data);
302
- return
303
- }
304
- }
305
- rspkr.HL.html5.postMessageData.push(b.data);
306
- !/android|ios/i.test(rspkr.Common.data.browser.OS) && "rshlfinished" == b.data && (rspkr.HL.html5.timer && clearTimeout(rspkr.HL.html5.timer), rspkr.HL.html5.initSyncFrame(), rspkr.HL.html5.initAudio());
307
- if ("rshlend" === b.data)rspkr.HL.html5.rshlendCall = !0, rspkr.c.post.removeIframe(), rspkr.HL.html5.removeSyncFrame(); else {
308
- if (-1 != b.data.indexOf("." + rspkr.Common.data.browser.html5AudioFormat)) {
309
- b = rs.cfg.item("general.customProxy") ? rs.cfg.item("general.customProxy") + encodeURIComponent(b.data) : b.data;
310
- rspkr.HL.html5.audioUrl =
311
- b;
312
- return
313
- }
314
- if (-1 != b.data.indexOf(".html5iframe")) {
315
- b = rs.cfg.item("general.customProxy") ? rs.cfg.item("general.customProxy") + encodeURIComponent(b.data) : b.data;
316
- rspkr.HL.html5.frameUrl = b;
317
- return
318
- }
319
- if ("rshlaudio" == b.data || "rshlhtml5sync" == b.data)return;
320
- null != rspkr.HL.html5.lastevent && "rshlsetContent" == b.data ? (rspkr.HL.html5.synclist = [], rspkr.HL.html5.synclistindex = 0, rspkr.HL.sync.setContent(rspkr.Common.base64.decode(rspkr.HL.html5.lastevent.data))) : null != rspkr.HL.html5.lastevent && "rshlsetId" == b.data ? rspkr.HL.sync.setId(rspkr.HL.html5.lastevent.data) :
321
- null != rspkr.HL.html5.lastevent && "rshlReplace" == b.data ? (rspkr.HL.html5.lastevent.data.match(/class=[^&|,]+/gi) && (a = rspkr.HL.html5.lastevent.data.match(/class=[^&|,]+/gi)[0].replace("class=", ""), rspkr.HL.sync.setClass(a)), rspkr.HL.html5.lastevent.data.match(/id=[^&|,]+/gi) && (a = rspkr.HL.html5.lastevent.data.match(/id=[^&|,]+/gi)[0].replace("id=", ""), rspkr.HL.sync.setId(a))) : "rshlinit" == b.data ? (rspkr.HL.sync.init(), rspkr.hl.html5.Events.onSyncReady()) : null != rspkr.HL.html5.lastlastlastevent && null != rspkr.HL.html5.lastlastevent &&
322
- null != rspkr.HL.html5.lastevent && "rshlsync" == b.data ? (rspkr.HL.html5.synclist[rspkr.HL.html5.synclistindex] = [rspkr.HL.html5.lastlastlastevent.data, rspkr.HL.html5.lastlastevent.data, rspkr.HL.html5.lastevent.data], rspkr.HL.html5.synclistindex++) : null != rspkr.HL.html5.lastevent && "rshlcontinue" == b.data ? (rs.HL.chunking.continueHref = rspkr.HL.html5.lastevent.data, rs.HL.chunking.continueTime = rspkr.HL.html5.lastlastevent && !isNaN(rspkr.HL.html5.lastlastevent.data) ? rspkr.HL.html5.lastlastevent.data : -1, /ios|android/i.test(rspkr.c.data.browser.OS) &&
323
- (rspkr.HL.chunking.continueTime = -1)) : "rshlresume" == b.data && (rspkr.HL.html5.synclist.length = 0, rspkr.HL.html5.synclistindex = 0, rspkr.HL.html5.currentsynclistindex = 0, rspkr.HL.html5.currentsyncindex = 0)
324
- }
325
- rspkr.HL.html5.lastlastlastevent = rspkr.HL.html5.lastlastevent;
326
- rspkr.HL.html5.lastlastevent = rspkr.HL.html5.lastevent;
327
- rspkr.HL.html5.lastevent = b
328
- }
329
- }, refresh: function () {
330
- var b = rspkr.PlayerAPI.playerRef, a = rspkr.HL.html5;
331
- !b || a.States.CURRENT == a.States.STOPPED ? (rspkr.log("[rspkr.hl.html5.refresh] Audio is undefined or player is stopped",
332
- 2), a.runningRefresh = !1) : (a.States.CURRENT == a.States.NOT_PLAYING && setTimeout(function () {
333
- a.refresh()
334
- }, 500), 0 < b.currentTime && parseInt(a.lastcurrenttime) > parseInt(b.currentTime) ? (rspkr.log("[rspkr.hl.html5.refresh] An error has occurred. Player is stopped.", 2), rspkr.ui.getActivePlayer().stop(), a.runningRefresh = !1) : (a.lastcurrenttime = b.currentTime, a.runningRefresh = !0, a.States.CURRENT == a.States.BEGIN ? (rspkr.hl.html5.States.setState(a.States.USER_START_NOT_READY), setTimeout(function () {
335
- a.refresh()
336
- }, 200)) :
337
- a.States.CURRENT == a.States.USER_START_NOT_READY ? 0 < a.handlers.totalTime() && (rspkr.HL.html5.rshlendCall || a.synclist[a.currentsyncindex] && a.synclist[a.currentsyncindex][0] < 1E3 * a.handlers.totalTime()) ? (rspkr.hl.html5.States.setState(a.States.USER_START_PLAYING), b.play(), setTimeout(function () {
338
- a.refresh()
339
- }, 50)) : 0 === a.handlers.totalTime() ? (b.play(), setTimeout(function () {
340
- a.refresh()
341
- }, 250)) : a.synclist[a.currentsyncindex] ? 20 >= 1 * a.synclist[a.currentsyncindex][0] - 1E3 * b.currentTime ? setTimeout(function () {
342
- a.refresh()
343
- },
344
- 0) : (b = 1 * a.synclist[a.currentsyncindex][0] - 1E3 * b.currentTime - 20, 75 < b ? setTimeout(function () {
345
- a.refresh()
346
- }, 75) : 0 > b ? setTimeout(function () {
347
- a.refresh()
348
- }, 0) : setTimeout(function () {
349
- a.refresh()
350
- }, b)) : setTimeout(function () {
351
- a.refresh()
352
- }, 75) : a.States.CURRENT == a.States.USER_START_PLAYING && (a.synclist[a.currentsyncindex] && 1 * a.synclist[a.currentsyncindex][0] - 20 < 1E3 * b.currentTime && (rspkr.HL.sync.execute(a.synclist[a.currentsyncindex][1], a.synclist[a.currentsyncindex][2]), a.currentsyncindex++), a.synclist[a.currentsyncindex] ?
353
- 20 >= 1 * a.synclist[a.currentsyncindex][0] - 1E3 * b.currentTime ? setTimeout(function () {
354
- a.refresh()
355
- }, 0) : (b = 1 * a.synclist[a.currentsyncindex][0] - 1E3 * b.currentTime - 20, 75 < b ? setTimeout(function () {
356
- a.refresh()
357
- }, 75) : 0 > b ? setTimeout(function () {
358
- a.refresh()
359
- }, 0) : setTimeout(function () {
360
- a.refresh()
361
- }, b)) : setTimeout(function () {
362
- a.refresh()
363
- }, 75))))
364
- }}, Preserve: {cls: "rs_preserve", testElem: null, elementShelter: [], formShelter: [], formData: function (b, a, c, d, e) {
365
- this.name = b;
366
- this.type = a;
367
- this.value = c;
368
- this.checked = d;
369
- this.selectedIndex = e;
370
- this.selectedOptions = []
371
- }, moveToShelter: function (b) {
372
- function a(b) {
373
- if (b.childNodes)for (var c = 0; c < b.childNodes.length; c++) {
374
- var d = b.childNodes[c];
375
- 1 == d.nodeType && f.test(d.className) ? l.push(d) : 1 == d.nodeType && a(d)
376
- }
377
- }
378
-
379
- rspkr.log("[rspkr.HL.Preserve.moveToShelter]");
380
- var c = [], d = [], e = null, l = [], f = RegExp(rspkr.HL.Preserve.cls, "i");
381
- a(b);
382
- for (var h = 0, s = l.length; h < s; h++)e = $rs.get(l[h]).cloneNode(!1), l[h].parentNode.insertBefore(e, l[h]), c.push($rs.detach(l[h]));
383
- rspkr.log("[rspkr.hl.Preserve] Moved " + h + " nodes to the shelter.");
384
- b = $rs.findIn(b, "input, select");
385
- for (h = 0; h < b.length; h++) {
386
- e = new rspkr.HL.Preserve.formData(b[h].name, b[h].type, b[h].value, b[h].checked, b[h].selectedIndex);
387
- if ("select-multiple" == b[h].type) {
388
- for (var s = b[h].options, p = [], n = 0; n < s.length; n++)p.push(s[n].selected);
389
- e.selectedOptions = p
390
- }
391
- d.push(e)
392
- }
393
- rspkr.HL.Preserve.elementShelter.push(c);
394
- rspkr.HL.Preserve.formShelter.push(d)
395
- }, restoreFromShelter: function (b) {
396
- var a = [], c, d;
397
- rspkr.log("[rspkr.HL.Preserve.restoreFromShelter]");
398
- if (rspkr.HL.Preserve.elementShelter.length &&
399
- (d = rspkr.HL.Preserve.elementShelter.shift(), d.length)) {
400
- var e = RegExp(rspkr.HL.Preserve.cls, "i"), l = function (b) {
401
- for (var c = 0; c < b.childNodes.length; c++) {
402
- var d = b.childNodes[c];
403
- 1 == d.nodeType && e.test(d.className) ? a.push(d) : 1 == d.nodeType && l(d)
404
- }
405
- };
406
- l(b);
407
- for (var f = 0, h = a.length; f < h; f++)c = d.shift(), a[f].parentNode.insertBefore(c, a[f]), a[f].parentNode.removeChild(a[f])
408
- }
409
- if (rspkr.HL.Preserve.formShelter.length && (b = $rs.findIn(b, "input, select"), c = rspkr.HL.Preserve.formShelter.shift(), b.length && c.length && b.length ===
410
- c.length))for (f = 0; f < b.length; f++)if (b[f].name === c[f].name)switch (b[f].type) {
411
- case "text":
412
- b[f].value = c[f].value;
413
- break;
414
- case "password":
415
- b[f].value = c[f].value;
416
- break;
417
- case "radio":
418
- !0 === c[f].checked && (b[f].checked = !0);
419
- break;
420
- case "checkbox":
421
- b[f].checked = c[f].checked;
422
- break;
423
- case "select-one":
424
- b[f].selectedIndex = c[f].selectedIndex;
425
- break;
426
- case "select-multiple":
427
- d = b[f].options;
428
- for (h = 0; h < d.length; h++)d[h].selected = c[f].selectedOptions[h]
429
- }
430
- }, clearShelter: function () {
431
- rspkr.log("[rspkr.HL.Preserve.clearShelter]");
432
- rspkr.HL.Preserve.elementShelter =
433
- [];
434
- rspkr.HL.Preserve.formShelter = []
435
- }}, Restore: {Storage: {readClass: [], readId: [], restoreContent: []}, all: function () {
436
- rspkr.log("[rspkr.HL.Restore.all]");
437
- var b = rspkr.HL.Restore.Storage, a = [], c = null, d = /sync_(word|sent)/gi;
438
- if (!rspkr.cfg.item("general.premarkup")) {
439
- rspkr.c.dispatchEvent("onBeforeContentChange", window);
440
- if (!b.readId.length && !b.restoreContent.length && !b.readClass.length)rspkr.log("No stored content exists!", 2); else {
441
- c = $rs.flatten ? $rs.flatten(b.readClass) : b.readClass;
442
- a = $rs.flatten ? $rs.flatten(b.readId) :
443
- b.readId;
444
- c = c.length ? ("." + c.join(",.")).split(",") : [];
445
- c = a.length ? c.concat(("#" + a.join(",#")).split(",")) : c;
446
- a = $rs.get(c.join(","));
447
- $rs.isArray(a) || (a = [a]);
448
- for (var e = 0; c = a[e]; e++)!0 === d.test(c.innerHTML) && (rspkr.HL.Preserve.moveToShelter(c), c.innerHTML = b.restoreContent[e], rspkr.HL.Preserve.restoreFromShelter(c))
449
- }
450
- rspkr.c.dispatchEvent("onAfterContentChange", window)
451
- }
452
- b.readId.length = 0;
453
- b.readClass.length = 0
454
- }, checkContent: function () {
455
- rspkr.log("[rspkr.hl.Restore.checkContent]", 1);
456
- !1 === this.hasMarkup() && (rspkr.hl.State.CURRENT ==
457
- rspkr.hl.State.STOPPED && rspkr.HL.Type.CURRENT == rspkr.HL.Type.SERVER_MARKUP) && (this.clearRestoreContent(), this.setRestoreContent(), rspkr.pl.releaseAdapter(), rspkr.hl.State.setState(rspkr.hl.State.RELOAD))
458
- }, hasMarkup: function () {
459
- var b = rspkr.HL.Restore.Storage, a = [], c = null, d = /sync_(word|sent)/gi, c = $rs.flatten ? $rs.flatten(b.readClass) : b.readClass, a = $rs.flatten ? $rs.flatten(b.readId) : b.readId, c = c.length ? ("." + c.join(",.")).split(",") : [], c = a.length ? c.concat(("#" + a.join(",#")).split(",")) : c, a = $rs.get(c.join(","));
460
- $rs.isArray(a) || (a = [a]);
461
- if (a.length && b.restoreContent.length)for (b = 0; c = a[b]; b++)if (d.test(c.innerHTML))return!0;
462
- return!1
463
- }, clearRestoreContent: function () {
464
- rspkr.log("[rspkr.HL.Restore.clearRestoreContent] Called!")
465
- }, setRestoreContent: function () {
466
- rspkr.log("[rspkr.HL.Restore.setRestoreContent] Called!");
467
- if ("Explorer" === rs.c.data.browser.name && 9 >= rs.c.data.browser.version)for (var b = document.body.getElementsByTagName("style"), a = 0, c; c = b[a]; a++) {
468
- c.parentNode.removeChild(c);
469
- document.getElementsByTagName("head")[0].appendChild(c);
470
- var d = c.innerHTML;
471
- if (-1 != d.indexOf("@import")) {
472
- for (var e = d.split("\n"), l, d = 0, f; f = e[d]; d++)if ("@import" === f.substring(0, 7)) {
473
- d = f.replace(/;/g, "").replace("@import ", "").replace("url(", "").replace(")", "").replace(/\"/g, "").replace(/\'/g, "").split(" ");
474
- for (e = 0; e < d.length; e++) {
475
- var h = d[e].replace(/ /g, "");
476
- if (h) {
477
- l = h;
478
- break
479
- }
480
- }
481
- break
482
- }
483
- c = c.sheet ? c.sheet : c.styleSheet;
484
- c.insertRule ? c.insertRule(f, 0) : c.addImport && c.addImport(l)
485
- }
486
- }
487
- b = rspkr.HL.Restore.Storage;
488
- f = [];
489
- a = /sync_(word|sent|user)/gi;
490
- l = b.restoreContent;
491
- 0 === b.readClass.length &&
492
- 0 === b.readId.length && rspkr.HL.Restore.getReadData();
493
- if (0 == b.readClass.length && 0 == b.readId.length)rspkr.log("ERR: Could not set restore content or find the read area data", 3); else {
494
- d = $rs.flatten ? $rs.flatten(b.readClass) : b.readClass;
495
- c = $rs.flatten ? $rs.flatten(b.readId) : b.readId;
496
- d = d.length ? ("." + d.join(",.")).split(",") : [];
497
- d = c.length ? d.concat(("#" + c.join(",#")).split(",")) : d;
498
- f = $rs.get(d.join(","));
499
- $rs.isArray(f) || (f = [f]);
500
- b.restoreContent = [];
501
- for (d = 0; c = f[d]; d++)!1 === a.test(c.innerHTML) ? b.restoreContent.push(c.innerHTML) :
502
- 0 < l.length && l[d] ? b.restoreContent.push(l[d]) : b.restoreContent.push(c.innerHTML)
503
- }
504
- }, getReadData: function () {
505
- rspkr.log("[rspkr.HL.Restore.getReadData]");
506
- var b = rspkr.HL.Restore.Storage, a;
507
- a = rspkr.ui.getActivePlayer() ? $rs.findIn(rspkr.ui.getActivePlayer().getContainer(), "a") : $rs.findIn($rs.get("." + rs.ui.rsbtnClass), "a");
508
- $rs.isArray(a) || (a = [a]);
509
- for (var c = 0, d = a.length; c < d; c++) {
510
- var e = a[c].getAttribute("href").match(/readspeaker.?.com\/cgi-bin\/.*rsent/gi);
511
- rspkr.cfg.item("general.servercall") && (e = e ? e : -1 < a[c].getAttribute("href").indexOf(rspkr.cfg.item("general.servercall")));
512
- if (a[c].getAttribute("href") && -1 !== (a[c].getAttribute("href").indexOf(rspkr.cfg.item("general.domain") + "/cgi-bin/" + rspkr.cfg.item("general.rsent")) || e) && "rsSaveBtn" !== a[c].id && "rs_selimg" !== a[c].id)-1 !== a[c].getAttribute("href").search(/readclass=/) && (e = a[c].getAttribute("href").match(/readclass=[^&]+/gi)[0].replace("readclass=", ""), e = e.split(","), rspkr.HL.Restore.Storage.readClass.push(e)), -1 !== a[c].getAttribute("href").search(/readid=/) && (e = a[c].getAttribute("href").match(/readid=[^&]+/gi)[0].replace("readid=",
513
- ""), e = e.split(","), rspkr.HL.Restore.Storage.readId.push(e))
514
- }
515
- 0 === b.readClass.length && 0 === b.readId.length && (rspkr.c.data.params.hasOwnProperty("readid") ? b.readId.push([rspkr.c.data.params.readid]) : rspkr.c.data.params.hasOwnProperty("readclass") && b.readClass.push([rspkr.c.data.params.readclass]))
516
- }}, Scroll: {currentSpan: null, timer: null, useScroll: !1, userScrollTimer: null, stopped: !0, getScrollY: function () {
517
- var a = 0;
518
- "number" == typeof document.pageYOffset ? a = document.pageYOffset : document.documentElement && document.documentElement.scrollTop &&
519
- 0 < document.documentElement.scrollTop ? a = document.documentElement.scrollTop : document.body && document.body.scrollTop && (a = document.body.scrollTop);
520
- return a
521
- }, getWindowHeight: function () {
522
- var a = 0;
523
- "number" == typeof window.innerHeight ? a = window.innerHeight : document.documentElement && document.documentElement.clientHeight && 0 < document.documentElement.clientHeight ? a = document.documentElement.clientHeight : document.body && document.body.clientHeight && (a = document.body.clientHeight);
524
- return a + 30
525
- }, userScroll: function () {
526
- rspkr.HL.Scroll.timer &&
527
- (clearTimeout(rspkr.HL.Scroll.timer), rspkr.HL.Scroll.timer = null);
528
- rspkr.HL.Scroll.userScrollTimer && clearTimeout(rspkr.HL.Scroll.userScrollTimer);
529
- rspkr.HL.Scroll.userScrollTimer = setTimeout(function () {
530
- rspkr.HL.Scroll.userScrollTimer = null
531
- }, 5E3)
532
- }, stopTimer: function () {
533
- rspkr.log("[rspkr.Hl.Scroll.stopTimer] Called!");
534
- rspkr.HL.Scroll.timer && (clearTimeout(rspkr.HL.Scroll.timer), rspkr.HL.Scroll.timer = null);
535
- rspkr.HL.Scroll.stopped = !0
536
- }, initScroll: function () {
537
- "scrollon" == rspkr.Common.Settings.get("hlscroll") ? (rspkr.log("[rspkr.HL.Sroll.initScroll] Scroll initiated!"),
538
- rspkr.HL.Scroll.useScroll = !0, rspkr.evt("onUIClosePlayer", rspkr.HL.Scroll.stopTimer), rspkr.evt("onUIStop", rspkr.HL.Scroll.stopTimer), rspkr.evt("onUIPause", rspkr.HL.Scroll.stopTimer), rspkr.evt("onUISliderMove", rspkr.HL.Scroll.userScroll), rspkr.evt("onFocusIn", rspkr.HL.Scroll.userScroll), rspkr.evt("onFocusOut", rspkr.HL.Scroll.userScroll), document.addEventListener ? document.addEventListener("scroll", function () {
539
- setTimeout(function () {
540
- rspkr.HL.Scroll.userScroll()
541
- }, 0)
542
- }, !1) : document.attachEvent ? document.attachEvent("onscroll",
543
- rspkr.HL.Scroll.userScroll) : document.onscroll = rspkr.HL.Scroll.userScroll) : this.useScroll = !1
544
- }, execScroll: function (a) {
545
- this.useScroll && (this.currentSpan = a, !0 === this.stopped && (this.stopped = !1), this.timer || (rspkr.log("[rspkr.hl.Scroll] execScroll"), this.timer = setTimeout(function () {
546
- rspkr.HL.Scroll.timer = null;
547
- rspkr.HL.Scroll.triggerScroll(rspkr.HL.Scroll.currentSpan)
548
- }, 500)))
549
- }, triggerScroll: function (a) {
550
- rspkr.log("[rspkr.HL.Scroll.triggerScroll] timer: " + rspkr.hl.Scroll.userScrollTimer + ", stopped: " + rspkr.HL.Scroll.stopped);
551
- !rspkr.HL.Scroll.userScrollTimer && !1 === rspkr.HL.Scroll.stopped && rspkr.u.scroll.scrollToElm(a)
552
- }}, State: {CURRENT: 1, READY: 1, STOPPED: 2, PLAYING: 3, RELOAD: 4, setState: function (a) {
553
- this.CURRENT = a;
554
- rspkr.log("[rspkr.hl.html5.States.setState] Changing state from " + this.CURRENT + " to " + a, 1)
555
- }}, sync: {init: function () {
556
- rspkr.c.dispatchEvent("onBeforeSyncInit", window);
557
- e.hlChanged = !1;
558
- if (0 < rspkr.Common.data.selectedText.length || 0 < rspkr.Common.data.selectedHTML.length)rspkr.log("[rspkr.HL._sync.init] client markup"), rspkr.HL.Type.CURRENT =
559
- rspkr.HL.Type.CLIENT_MARKUP, a.firstRun = 1, "explorer" == c ? document.selection.empty() : a.preProcess.identifyElementsReplacementNode(document.body); else if (rspkr.log("[rspkr.HL._sync.init] server markup"), rspkr.HL.Type.CURRENT = rspkr.HL.Type.SERVER_MARKUP, "none" != rspkr.Common.data.sync) {
560
- var b = [], d = [], b = [];
561
- rspkr.c.data.params.hasOwnProperty("readid") && rspkr.c.data.params.readid.length && (b = b.concat(("#" + rspkr.c.data.params.readid.split(",").join(",#")).split(",")));
562
- rspkr.c.data.params.hasOwnProperty("readclass") &&
563
- rspkr.c.data.params.readclass.length && (b = b.concat(("." + rspkr.c.data.params.readclass.split(",").join(",.")).split(",")));
564
- b = $rs.get(b.join(","));
565
- $rs.isArray(b) || (b = [b]);
566
- var m;
567
- if ("flash" == rspkr.PlayerAPI.adapter) {
568
- m = rspkr.HL.markedUpHTML.join("").split("<\!--RSPEAK_STOP--\>");
569
- for (var k = 0; m[k]; k++);
570
- } else m = rspkr.HL.markedUpHTML;
571
- for (var k = 0, g; g = b[k]; k++)g = g.nodeName && "TABLE" == g.nodeName ? document.createElement("TABLE") : document.createElement("DIV"), g.innerHTML = m[k], d.push(g);
572
- rspkr.log("[rspkr.HL.sync.init] readElements length: " +
573
- b.length);
574
- if (!rspkr.cfg.item("general.premarkup")) {
575
- rspkr.c.dispatchEvent("onBeforeContentChange", window);
576
- for (k = 0; k < b.length; k++)rspkr.HL.Preserve.moveToShelter(b[k]), b[k].innerHTML = d[k].innerHTML, rspkr.HL.Preserve.restoreFromShelter(b[k]);
577
- rspkr.c.dispatchEvent("onAfterContentChange", window);
578
- rspkr.HL.Preserve.clearShelter()
579
- }
580
- }
581
- rspkr.HL.markedUpHTML.length = 0;
582
- rspkr.c.post.removeIframe();
583
- rspkr.c.dispatchEvent("onAfterSyncInit", window)
584
- }, lightCleanUp: function () {
585
- rspkr.HL.customHL && rspkr.HL.customHL.active() &&
586
- rspkr.HL.customHL.cleanUp();
587
- rspkr.log("[rspkr.HL._sync.lightCleanUp] Called! " + rspkr.HL.Type.CURRENT);
588
- rspkr.HL.Type.CURRENT == rspkr.HL.Type.CLIENT_MARKUP && !0 === e.hlChanged ? a.postProcess.settingsCleanUp() : rspkr.HL.Type.CURRENT == rspkr.HL.Type.CLIENT_MARKUP && !1 === e.hlChanged || 0 < rspkr.Common.data.selectedText.length ? a.postProcess.lightCleanUp() : rspkr.HL.Type.CURRENT == rspkr.HL.Type.SERVER_MARKUP && d.postProcess.lightCleanUp()
589
- }, fullCleanUp: function () {
590
- rspkr.log("[rspkr.HL._sync.fullCleanUp] Called!");
591
- rspkr.HL.customHL &&
592
- rspkr.HL.customHL.active() && rspkr.HL.customHL.cleanUp();
593
- rspkr.HL.Type.CURRENT == rspkr.HL.Type.CLIENT_MARKUP && a.postProcess.fullCleanUp();
594
- d.postProcess.fullCleanUp()
595
- }, setId: function () {
596
- rspkr.log("[rspkr.HL._sync.setId] Called!")
597
- }, setClass: function () {
598
- rspkr.log("[rspkr.HL._sync.setClass] Called!")
599
- }, setContent: function (a) {
600
- rspkr.log("[rspkr.HL._sync.setContent] Called!");
601
- rspkr.HL.markedUpHTML.push(a)
602
- }, execute: function (a, c) {
603
- var d = rspkr.Common.Settings;
604
- if (!("none" === d.get("hl") || "hloff" === d.get("hltoggle"))) {
605
- if (rspkr.HL.Type.CURRENT ==
606
- rspkr.HL.Type.SERVER_MARKUP) {
607
- var e = $rs.hasClass($rs.get("#sync" + c), "sync_sent") ? "sent" : "word";
608
- if ("sent" === d.get("hl") && "word" === e || "word" === d.get("hl") && "sent" === e)return
609
- }
610
- rspkr.c.dispatchEvent("onBeforeSync", window, [a, c]);
611
- rspkr.HL.Type.CURRENT == rspkr.HL.Type.CLIENT_MARKUP ? (d = rspkr.cfg.item("general.selectionEngine")) && ("new" === d || "newcontent" === d) ? rspkr.HL.clientMarkup.syncNew(a, c) : rspkr.HL.clientMarkup.sync(a, c) : rspkr.HL.serverMarkup.sync(a, c);
612
- rspkr.c.dispatchEvent("onAfterSync", window, [a, c])
613
- }
614
- }},
615
- settings: e, Type: {CURRENT: 0, DEFAULT: 0, SERVER_MARKUP: 1, CLIENT_MARKUP: 2}}
616
- }();
617
- rspkr.HL.engine || (rspkr.HL.engine = {});
618
- rspkr.HL.engine.explorer = function () {
619
- return{clientExtension: {firstRun: 0, previousWord: {}, previousSent: {}, selectionRange: null, selectionHTML: null, selectedWordsRange: [], wordsRangeClasses: [], originalParentContent: "", originalParent: null, preProcess: {bookMarkIndex: 1, endNode: null, endOffset: null, excludednodes: "table tr select option textarea ul ol dl thead tbody tfoot colgroup script map optgroup style noscript".split(" "), firstRun: 0, inc: 0, numberOfSelections: 0, startNode: null, startOffset: null, init: function () {
620
- this.numberOfSelections++;
621
- var c;
622
- c = "new" === rspkr.cfg.item("general.selectionEngine") || "newcontent" === rspkr.cfg.item("general.selectionEngine") ? this.buildMarkupNew(rspkr.Common.data.selectedRange) : this.buildMarkup(rspkr.Common.data.selectedRange);
623
- c.replace(/ +/g, " ");
624
- rspkr.Common.data.selectedHTML = c;
625
- rspkr.hl.clientMarkup.originalParent = rspkr.c.data.selectedRange.parentElement();
626
- rspkr.hl.clientMarkup.originalParentContent = rspkr.c.data.selectedRange.parentElement().innerHTML
627
- }, buildMarkup: function (c) {
628
- for (var a = rspkr.c.data.getParam("lang"),
629
- d = !1, e = null, b = rspkr.cfg.item("general.sentOnlyLang"), j = 0; j < b.length; j++)if (a && a.toLowerCase() === b[j]) {
630
- d = !0;
631
- break
632
- }
633
- var a = c.duplicate(), j = 0, b = "", m = 1, k = 0, g = 0, l = "", f = "", h = null;
634
- c.moveStart("word", -1);
635
- c.moveStart("word", 1);
636
- a.isEqual(c) || c.moveStart("word", -1);
637
- a = c.duplicate();
638
- c.moveEnd("word", 1);
639
- c.moveEnd("word", -1);
640
- a.isEqual(c) || c.moveEnd("word", 1);
641
- rspkr.HL.clientMarkup.selectionRange = c.duplicate();
642
- var s = c.parentElement(), p = c.duplicate();
643
- p.collapse(!1);
644
- a = c.duplicate();
645
- a.collapse();
646
- for (d && (e = c.text.split(RegExp(decodeURIComponent("%e3%80%81") +
647
- "|" + decodeURIComponent("%e3%80%82") + "|" + decodeURIComponent("%DB%94") + "|" + decodeURIComponent("%D8%8C") + "||\\s|\\n"))); c.inRange(a) && 0 != c.compareEndPoints("EndToEnd", a);) {
648
- g++;
649
- j++;
650
- if (1E4 < j)break;
651
- if (d)if (a = c.duplicate(), e[g - 1])a.findText(e[g - 1]); else break; else a.collapse(!1), a.expand("word", 1);
652
- f = l = "";
653
- p.collapse(!1);
654
- var n = a.duplicate();
655
- n.collapse(!1);
656
- if (0 == p.compareEndPoints("StartToStart", n) && 0 == p.compareEndPoints("EndToEnd", n) && n.htmlText == p.htmlText) {
657
- k++;
658
- if (2 > k)a.move("character", 1); else if (4 > k)a.move("character",
659
- 2); else if (6 > k)a.move("word", 1); else if (8 > k)a.move("word", 2); else if (10 > k)a.move("sentence", 1); else if (12 > k)a.move("sentence", 2); else break;
660
- a.collapse(!1)
661
- } else {
662
- k = 0;
663
- if (-1 === g)return a;
664
- rspkr.HL.clientMarkup.selectedWordsRange[g] = a.duplicate();
665
- p = a.text;
666
- n = a.htmlText;
667
- a.collapse(!1);
668
- var v;
669
- 1 === m ? (h = a.duplicate(), v = this.iterateParentTree(h.parentElement(), document.body, s, 0)) : v = this.iterateParentTree(a.parentElement(), h.parentElement(), s, 0);
670
- for (var u = this.iterateParentTree(h.parentElement(), a.parentElement(),
671
- s, 0), q = a.parentElement(), r = 0; r < v && 20 > r; r++)q.className.match("sync_") || (l = q.outerHTML.match("<[^>]*>")[0] + l), q = q.parentElement;
672
- q = h.parentElement();
673
- for (r = 0; r < u && 20 > r; r++)q.className.match("sync_") || (f += "</" + q.tagName + ">"), q = q.parentElement;
674
- if (0 != v || 0 != u)h = a.duplicate();
675
- 1 === m ? (b += l, m = 0) : b += f + l;
676
- "" != n.replace("sync_sent_highlighted", "") && (b += "<" + rspkr.Common.data.browser.syncContainer + ' class="sync_user" id="sync' + g + '">' + p + "</" + rspkr.Common.data.browser.syncContainer + ">");
677
- p = a.duplicate()
678
- }
679
- }
680
- b += "<\!-- f --\>";
681
- u = this.iterateParentTree(h.parentElement(), document.body, s, 0);
682
- q = h.parentElement();
683
- for (r = 0; r < u; r++)q.className.match("sync_") || (b += "</" + q.tagName + ">"), q = q.parentElement;
684
- a.collapse();
685
- return b
686
- }, buildMarkupNew: function (c) {
687
- for (var a = rspkr.c.data.getParam("lang"), d = !1, e = rspkr.cfg.item("general.sentOnlyLang"), b = 0; b < e.length; b++)if (a && a.toLowerCase() === e[b]) {
688
- d = !0;
689
- break
690
- }
691
- var a = c.duplicate(), e = "", j = 1, m = 0, k = 0, g = "", l = "", f = "", h = null, b = 0;
692
- rspkr.HL.clientMarkup.selectionRange = c.duplicate();
693
- var s = c.parentElement(),
694
- p = c.duplicate(), g = c.duplicate();
695
- p.collapse(!1);
696
- a.collapse();
697
- var n = [], l = g.duplicate(), f = g.duplicate();
698
- g.moveStart("sentence", -1);
699
- g.moveStart("sentence", 1);
700
- l.isEqual(g) || g.moveStart("sentence", -1);
701
- l = g.duplicate();
702
- g.moveEnd("sentence", 1);
703
- g.moveEnd("sentence", -1);
704
- l.isEqual(g) || g.moveEnd("sentence", 1);
705
- l = g.duplicate();
706
- f.collapse(!0);
707
- for (g.collapse(!0); l.inRange(g) && 0 != l.compareEndPoints("EndToEnd", g);) {
708
- f.expand("sentence", 1);
709
- if (!0 === f.isEqual(g) || 0 === f.compareEndPoints("EndToEnd", g))break;
710
- g.expand("sentence",
711
- 1);
712
- n.push(f.duplicate())
713
- }
714
- for (; !1 === c.inRange(n[0]) && 0 != c.compareEndPoints("StartToStart", n[0]);)n[0].moveStart("word", 1);
715
- for (; !1 === c.inRange(n[n.length - 1]) && 0 != c.compareEndPoints("EndToEnd", n[n.length - 1]);)n[n.length - 1].moveEnd("word", -1);
716
- for (var v = 0; v < n.length; v++) {
717
- for (f = ""; n[v].inRange(a) && 0 != n[v].compareEndPoints("EndToEnd", a);) {
718
- k++;
719
- b++;
720
- if (1E4 < b)break;
721
- d ? (a = c.duplicate(), a.findText(null[k - 1])) : (a.collapse(!1), a.expand("word", 1));
722
- l = g = "";
723
- p.collapse(!1);
724
- var u = a.duplicate();
725
- u.collapse(!1);
726
- if (0 == p.compareEndPoints("StartToStart",
727
- u) && 0 == p.compareEndPoints("EndToEnd", u) && u.htmlText == p.htmlText) {
728
- m++;
729
- if (2 > m)a.move("character", 1); else if (4 > m)a.move("character", 2); else if (6 > m)a.move("word", 1); else if (8 > m)a.move("word", 2); else if (10 > m)a.move("sentence", 1); else if (12 > m)a.move("sentence", 2); else break;
730
- a.collapse(!1)
731
- } else {
732
- m = 0;
733
- if (-1 === k)return a;
734
- rspkr.HL.clientMarkup.selectedWordsRange[k] = a.duplicate();
735
- rspkr.HL.clientMarkup.wordsRangeClasses[k] = "word";
736
- p = a.text;
737
- u = a.htmlText;
738
- a.collapse(!1);
739
- var q;
740
- 1 === j ? (h = a.duplicate(), q = this.iterateParentTree(h.parentElement(),
741
- document.body, s, 0)) : q = this.iterateParentTree(a.parentElement(), h.parentElement(), s, 0);
742
- for (var r = this.iterateParentTree(h.parentElement(), a.parentElement(), s, 0), t = a.parentElement(), w = 0; w < q && 20 > w; w++)t.className.match("sync_") || (g = t.outerHTML.match("<[^>]*>")[0] + g), t = t.parentElement;
743
- t = h.parentElement();
744
- for (w = 0; w < r && 20 > w; w++)t.className.match("sync_") || (l += "</" + t.tagName + ">"), t = t.parentElement;
745
- if (0 != q || 0 != r)h = a.duplicate();
746
- 1 === j ? (f += g, j = 0) : f += l + g;
747
- "" != u.replace("sync_sent_highlighted", "") && (f += "<" + rspkr.Common.data.browser.syncContainer +
748
- ' class="sync_user sync_word" id="sync' + k + '">' + p + "</" + rspkr.Common.data.browser.syncContainer + ">");
749
- p = a.duplicate()
750
- }
751
- }
752
- k++;
753
- rspkr.HL.clientMarkup.selectedWordsRange[k] = n[v];
754
- rspkr.HL.clientMarkup.wordsRangeClasses[k] = "sent";
755
- e += "<" + rspkr.Common.data.browser.syncContainer + ' class="sync_user sync_sent" id="sync' + k + '">';
756
- e += f;
757
- e += "</" + rspkr.Common.data.browser.syncContainer + ">\n"
758
- }
759
- r = this.iterateParentTree(h.parentElement(), document.body, s, 0);
760
- t = h.parentElement();
761
- for (w = 0; w < r; w++)t.className.match("sync_") || (e +=
762
- "</" + t.tagName + ">"), t = t.parentElement;
763
- a.collapse();
764
- return e
765
- }, iterateParentTree: function (c, a, d, e) {
766
- for (var b = a; null !== b;) {
767
- if (c == d || c == b)return e;
768
- b = b.parentElement
769
- }
770
- e++;
771
- return this.iterateParentTree(c.parentElement, a, d, e)
772
- }}, postProcess: {lightCleanUp: function () {
773
- rspkr.log("[clientMarkup.postProcess.lightCleanUp] called!");
774
- for (var c = document.getElementsByTagName(rspkr.Common.data.browser.syncContainer), a = c.length - 1; -1 < a; a--)c[a].className = c[a].className.replace("sync_sent_highlighted", "sync_sent"), c[a].className =
775
- c[a].className.replace("sync_word_highlighted", "sync_word"), -1 === c[a].className.toLowerCase().indexOf("sync_user") && (c[a].removeAttribute("id"), c[a].removeAttribute("color"));
776
- var c = rspkr.HL.clientMarkup.previousWord.range, d = rspkr.HL.clientMarkup.previousWord.forecolor, e = rspkr.HL.clientMarkup.previousWord.backcolor, b = rspkr.HL.clientMarkup.previousSent.range, j = rspkr.HL.clientMarkup.previousSent.forecolor, m = rspkr.HL.clientMarkup.previousSent.backcolor;
777
- if (0 < c.length)for (var a = 0, k = c.length; a < k; a++)null !==
778
- e[a] && (c[a].execCommand("backcolor", 0, e[a]), null !== d[a] && c[a] && c[a].execCommand("forecolor", 0, d[a]));
779
- if (0 < b.length) {
780
- a = 0;
781
- for (k = b.length; a < k; a++)null !== m[a] && (b[a].execCommand("backcolor", 0, m[a]), null !== j[a] && b[a] && b[a].execCommand("forecolor", 0, j[a]))
782
- }
783
- rspkr.hl.clientMarkup.lastWord = null
784
- }, settingsCleanUp: function () {
785
- this.lightCleanUp()
786
- }, fullCleanUp: function () {
787
- rspkr.log("[ClientMarkup.postProcess.fullCleanUp] called!");
788
- if (null === rspkr.hl.clientMarkup.originalParent)this.lightCleanUp(); else {
789
- var c = rspkr.hl.clientMarkup.originalParent;
790
- rspkr.hl.Preserve.moveToShelter(c);
791
- c.innerHTML = rspkr.hl.clientMarkup.originalParentContent;
792
- rspkr.hl.Preserve.restoreFromShelter(c)
793
- }
794
- rspkr.hl.clientMarkup.selectedWordsRange = [];
795
- rspkr.hl.clientMarkup.selectionRange = null;
796
- rspkr.hl.clientMarkup.originalParentContent = "";
797
- rspkr.hl.clientMarkup.originalParent = null;
798
- rspkr.hl.clientMarkup.lastWord = null
799
- }}, sync: function (c, a) {
800
- var d = !1, e;
801
- 0 === (c & 2) && (d = 0 != (c & 1) ? !0 : !1);
802
- 1 === this.firstRun && (this.previousWord.range = [], this.previousWord.backcolor = [], this.previousWord.forecolor =
803
- [], this.previousSent.range = [], this.previousSent.backcolor = [], this.previousSent.forecolor = []);
804
- e = this.selectedWordsRange[a];
805
- if (1 === this.firstRun) {
806
- this.firstRun = 0;
807
- if (0 < this.previousSent.range.length) {
808
- for (var b = 0, j = this.previousSent.range.length; b < j; b++)this.previousSent.range[b].execCommand("backcolor", 0, this.previousSent.backcolor[b]), null !== this.previousSent.forecolor[b] && this.previousSent.range[b].execCommand("forecolor", 0, this.previousSent.forecolor[b]);
809
- this.previousSent.range = [];
810
- this.previousSent.backcolor =
811
- [];
812
- this.previousSent.forecolor = []
813
- }
814
- rspkr.HL.clientMarkup.selectionRange && "wordsent" === rspkr.st.get("hl") && (this.previousSent.range.push(rspkr.HL.clientMarkup.selectionRange), this.previousSent.backcolor.push(rspkr.HL.clientMarkup.selectionRange.queryCommandValue("backcolor")), this.previousSent.forecolor.push(rspkr.HL.clientMarkup.selectionRange.queryCommandValue("forecolor")), this.selectionRange.execCommand("backcolor", 0, rspkr.Common.Settings.get("hlsent")), this.selectionRange.execCommand("forecolor",
815
- 0, rspkr.Common.Settings.get("hltext")))
816
- }
817
- if (!d && 0 < this.previousWord.range.length) {
818
- for (b = 0; b < this.previousWord.range.length; b++)"word" == rspkr.st.get("hl") || "sent" == rspkr.st.get("hl") ? this.previousWord.range[b].execCommand("backcolor", 0, this.previousWord.backcolor[b]) : this.previousWord.range[b].execCommand("backcolor", 0, rspkr.Common.Settings.get("hlsent")), this.previousWord.range[b].execCommand("forecolor", 0, this.previousWord.forecolor[b]);
819
- this.previousWord.range = [];
820
- this.previousWord.backcolor = [];
821
- this.previousWord.forecolor =
822
- []
823
- }
824
- this.previousWord.backcolor.push(e.queryCommandValue("backcolor"));
825
- this.previousWord.forecolor.push(e.queryCommandValue("forecolor"));
826
- this.previousWord.range.push(e);
827
- "sent" == rspkr.st.get("hl") ? (rspkr.HL.customHL && rspkr.HL.customHL.active() && rspkr.HL.customHL.sentHL(e, c), e.execCommand("backcolor", 0, rspkr.Common.Settings.get("hlsent"))) : (rspkr.HL.customHL && rspkr.HL.customHL.active() && rspkr.HL.customHL.wordHL(e, c), e.execCommand("backcolor", 0, rspkr.Common.Settings.get("hlword")));
828
- this.lastWord = e;
829
- rspkr.HL.customHL &&
830
- rspkr.HL.customHL.active();
831
- e.execCommand("forecolor", 0, rspkr.Common.Settings.get("hltext"))
832
- }, syncNew: function (c, a) {
833
- var d = !1;
834
- 0 === (c & 2) && (d = 0 != (c & 1) ? !0 : !1);
835
- 1 === this.firstRun && (this.previousWord.range = [], this.previousWord.backcolor = [], this.previousWord.forecolor = [], this.previousSent.range = [], this.previousSent.backcolor = [], this.previousSent.forecolor = [], this.firstRun = 0);
836
- var e = this.selectedWordsRange[a];
837
- if (e && "word" === this.wordsRangeClasses[a] && ("word" == rspkr.st.get("hl") || "wordsent" == rspkr.st.get("hl"))) {
838
- if (0 <
839
- this.previousWord.range.length && !d) {
840
- for (d = 0; d < this.previousWord.range.length; d++)"word" == rspkr.st.get("hl") || "sent" == rspkr.st.get("hl") ? this.previousWord.range[d].execCommand("backcolor", 0, this.previousWord.backcolor[d]) : this.previousWord.range[d].execCommand("backcolor", 0, rspkr.Common.Settings.get("hlsent")), this.previousWord.range[d].execCommand("forecolor", 0, this.previousWord.forecolor[d]);
841
- this.previousWord.range = [];
842
- this.previousWord.backcolor = [];
843
- this.previousWord.forecolor = []
844
- }
845
- this.previousWord.backcolor.push(e.queryCommandValue("backcolor"));
846
- this.previousWord.forecolor.push(e.queryCommandValue("forecolor"));
847
- this.previousWord.range.push(e);
848
- e.execCommand("backcolor", 0, rspkr.Common.Settings.get("hlword"));
849
- this.lastWord = e;
850
- e.execCommand("forecolor", 0, rspkr.Common.Settings.get("hltext"))
851
- } else if (e && "sent" === this.wordsRangeClasses[a] && ("sent" == rspkr.st.get("hl") || "wordsent" == rspkr.st.get("hl"))) {
852
- if (0 < this.previousWord.range.length) {
853
- for (d = 0; d < this.previousWord.range.length; d++)this.previousWord.range[d].execCommand("backcolor", 0, this.previousWord.backcolor[d]),
854
- this.previousWord.range[d].execCommand("forecolor", 0, this.previousWord.forecolor[d]);
855
- this.previousWord.range = [];
856
- this.previousWord.backcolor = [];
857
- this.previousWord.forecolor = []
858
- }
859
- if (0 < this.previousSent.range.length) {
860
- for (d = 0; d < this.previousSent.range.length; d++)this.previousSent.range[d].execCommand("backcolor", 0, this.previousSent.backcolor[d]), this.previousSent.range[d].execCommand("forecolor", 0, this.previousSent.forecolor[d]);
861
- this.previousSent.range = [];
862
- this.previousSent.backcolor = [];
863
- this.previousSent.forecolor =
864
- []
865
- }
866
- this.previousSent.backcolor.push(e.queryCommandValue("backcolor"));
867
- this.previousSent.forecolor.push(e.queryCommandValue("forecolor"));
868
- this.previousSent.range.push(e);
869
- e.execCommand("backcolor", 0, rspkr.Common.Settings.get("hlsent"));
870
- e.execCommand("forecolor", 0, rspkr.Common.Settings.get("hltext"))
871
- }
872
- }}}
873
- }();
874
- rspkr.HL.engine.gecko = function () {
875
- return{clientExtension: {preProcess: {bookMarkIndex: 1, endNode: null, endOffset: null, excludednodes: "table tr select option textarea ul ol dl thead tbody tfoot colgroup script map optgroup style noscript".split(" "), firstRun: 0, inc: 0, numberOfSelections: 0, startNode: null, startOffset: null, init: function () {
876
- this.numberOfSelections++;
877
- var c = "", c = rspkr.Common.data.selectedRange;
878
- this.startNode = c.startContainer;
879
- this.endNode = c.endContainer;
880
- this.startOffset = this.modifyOffsetStartOfWord(this.startNode,
881
- c.startOffset);
882
- this.endOffset = this.modifyOffsetEndOfWord(this.endNode, c.endOffset);
883
- c = this.buildMarkup(c.commonAncestorContainer);
884
- c.replace(/ +/g, " ");
885
- window.getSelection().removeAllRanges();
886
- rspkr.Common.data.selectedHTML = c
887
- }, buildMarkup: function (c) {
888
- this.firstRun = 1;
889
- var a = "", d = this.inc;
890
- if (3 == c.nodeType)a += this.textMarkup(c); else {
891
- var e, b = "";
892
- if (c.hasChildNodes())for (e = 0; e < c.childNodes.length; e++) {
893
- var j = c.childNodes.item(e);
894
- j == this.startNode && (this.inc = 1);
895
- c == this.startNode && e == this.startOffset && (this.inc =
896
- 1);
897
- 8 != j.nodeType && (b += this.buildMarkup(j));
898
- if (c == this.endNode && e == this.endOffset) {
899
- this.inc = 0;
900
- break
901
- }
902
- if (j == this.endNode) {
903
- this.inc = 0;
904
- break
905
- }
906
- }
907
- (d || this.inc) && (!c.className || c.className.replace("sync") === c.className && c.id.replace("sync") === c.id) ? (d = document.createElement("div"), d.appendChild(c.cloneNode(!0)), tempdivtag = d.innerHTML.match("<[^>]*>"), null !== tempdivtag && 0 < tempdivtag.length ? (a += tempdivtag[0], a = a + b + ("</" + c.nodeName + ">")) : a += b) : a += b;
908
- if (c.hasChildNodes())for (e = 0; e < c.childNodes.length; e++) {
909
- if (c ===
910
- this.endNode && e === this.endOffset) {
911
- this.inc = 0;
912
- break
913
- }
914
- if (j === this.endNode) {
915
- this.inc = 0;
916
- break
917
- }
918
- }
919
- }
920
- return a
921
- }, textMarkup: function (c) {
922
- var a = !0, d = "", e, b = "", j = "", m = c.nodeValue;
923
- c === this.startNode && -1 !== this.startOffset && c === this.endNode && -1 !== this.endOffset ? (b = c.nodeValue.substring(0, this.startOffset), m = c.nodeValue.substring(this.startOffset, this.endOffset), j = c.nodeValue.substring(this.endOffset), this.inc = 1) : c === this.startNode && -1 !== this.startOffset ? (b = c.nodeValue.substring(0, this.startOffset), m = c.nodeValue.substring(this.startOffset),
924
- this.inc = 1) : c === this.endNode && -1 !== this.endOffset && (m = c.nodeValue.substring(0, this.endOffset), j = c.nodeValue.substring(this.endOffset), this.inc = 1);
925
- if (!this.inc)return"";
926
- for (e = 0; e < this.excludednodes.length; e++)if (c.parentNode && c.parentNode.nodeName.toLowerCase() === this.excludednodes[e]) {
927
- a = !1;
928
- d = this.htmlencode(m);
929
- break
930
- }
931
- a && (d = (d = rspkr.cfg.item("general.selectionEngine")) && ("new" === d || "newcontent" === d) ? this.markupSentencesNew(this.htmlencode(m), null) : this.markupSentences(this.htmlencode(m), null));
932
- c ===
933
- this.endNode && -1 !== this.endOffset && (this.inc = 0);
934
- if (rs.cfg.item("general.enableSkipAlways")) {
935
- e = c;
936
- for (var k = !1; e.parentNode;) {
937
- if (/rs_skip_always/i.test(e.className)) {
938
- k = !0;
939
- break
940
- }
941
- e = e.parentNode
942
- }
943
- k && (d = '<span class="rs_skip_always">' + d + "</span>")
944
- }
945
- a && (null !== c.parentNode && "" !== m) && (a = this.createreplacementnode(b + d + j, getComputedStyle(c.parentNode, null)), c.parentNode.insertBefore(a, c), c.parentNode.removeChild(c));
946
- return d
947
- }, markupSentencesNew: function (c) {
948
- c = this.splitString(c, [", ", ". ", "! ", "? ", decodeURIComponent("%e3%80%81"),
949
- decodeURIComponent("%e3%80%82"), decodeURIComponent("%DB%94"), decodeURIComponent("%D8%8C")]);
950
- if (!c)return"";
951
- for (var a = "", d = "", e = !1, b = 0; b < c.length; b++)a += "<" + rspkr.Common.data.browser.syncContainer + ' class="sync_user sync_sent cj' + this.numberOfSelections + '" ', a += 'id="sync' + this.bookMarkIndex++ + '">', this.endsWithSpace(c[b]) ? (e = !0, d = c[b].slice(0, -1)) : d = c[b], a += this.markupWords(d), a += "</" + rspkr.Common.data.browser.syncContainer + ">", !0 === e && (a += " "), e = !1;
952
- return a
953
- }, markupSentences: function (c) {
954
- c = this.splitString(c,
955
- [", ", ". ", "! ", "? ", decodeURIComponent("%e3%80%81"), decodeURIComponent("%e3%80%82"), decodeURIComponent("%DB%94"), decodeURIComponent("%D8%8C")]);
956
- if (!c)return"";
957
- for (var a = "", d = "", e = !1, b = 0; b < c.length; b++)a += "<" + rspkr.Common.data.browser.syncContainer + ' class="ffsent' + this.numberOfSelections + " cj" + this.numberOfSelections + '" ', a += 'id="sync' + this.bookMarkIndex++ + '">', this.endsWithSpace(c[b]) ? (e = !0, d = c[b].slice(0, -1)) : d = c[b], a += this.markupWords(d), !0 === e && (a += " "), a += "</" + rspkr.Common.data.browser.syncContainer +
958
- ">", e = !1;
959
- return a
960
- }, markupWords: function (c) {
961
- c = this.splitString(c, " ");
962
- if (!c)return"";
963
- for (var a = "", d = "", e = !1, b = 0; b < c.length; b++)a += "<" + rspkr.Common.data.browser.syncContainer + ' class="sync_user sync_word ck' + this.numberOfSelections + '"', a += ' id="sync' + this.bookMarkIndex++ + '">', this.endsWithSpace(c[b]) ? (e = !0, d = c[b].slice(0, -1)) : d = c[b], a += d, a += "</" + rspkr.Common.data.browser.syncContainer + ">", !0 === e && (a += " "), e = !1;
964
- return a
965
- }, trim: function (c) {
966
- return c.replace(/^\s+|\s+$/g, "")
967
- }, htmlencode: function (c) {
968
- var a =
969
- document.createElement("div"), c = document.createTextNode(c);
970
- a.appendChild(c);
971
- return a.innerHTML
972
- }, identifyElementsReplacementNode: function (c) {
973
- c.tagName && (c.tagName.toLowerCase() == rspkr.Common.data.browser.syncContainer && c.id) && (rspkr.HL.clientMarkup.selectedWordsRange[c.id] = c);
974
- if (c.hasChildNodes())for (var a = 0; a < c.childNodes.length; a++)this.identifyElementsReplacementNode(c.childNodes[a])
975
- }, createreplacementnode: function (c) {
976
- var a = document.createElement(rspkr.Common.data.browser.syncContainer);
977
- a.innerHTML =
978
- c;
979
- a.setAttribute("class", "synctemp cl" + this.numberOfSelections);
980
- return a
981
- }, modifyOffsetStartOfWord: function (c, a) {
982
- for (var d = [" ", ", ", ". ", "! ", "? ", decodeURIComponent("%e3%80%81"), decodeURIComponent("%e3%80%82"), decodeURIComponent("%DB%94"), decodeURIComponent("%D8%8C")]; c.nodeValue && 0 != a;) {
983
- for (var e = 0; e < d.length; e++)if (breakstr = d[e], 0 == c.nodeValue.substring(a).indexOf(breakstr))return a;
984
- a--
985
- }
986
- return a
987
- }, modifyOffsetEndOfWord: function (c, a) {
988
- for (var d = [" ", ", ", ". ", "! ", "? ", decodeURIComponent("%e3%80%81"),
989
- decodeURIComponent("%e3%80%82"), decodeURIComponent("%DB%94"), decodeURIComponent("%D8%8C")]; c.nodeValue && a != c.nodeValue.length;) {
990
- for (var e = 0; e < d.length; e++)if (breakstr = d[e], 0 == c.nodeValue.substring(a - 1).indexOf(breakstr))return a;
991
- a++
992
- }
993
- return a
994
- }, returnClassArraySubstring: function (c) {
995
- var a = document.getElementsByTagName("*"), d = 0, e = [];
996
- for (i = 0; i < a.length; i++)"undefined" != typeof a[i].className && a[i].className.replace(c, "") != a[i].className && (e[d] = a[i], d++);
997
- return e
998
- }, splitString: function (c, a) {
999
- for (var d = [""],
1000
- e = 0, b = 0; b < c.length; b++) {
1001
- for (var j = 0; j < a.length; j++) {
1002
- for (var m = a[j], k = !0, g = 0; g < m.length; g++)if (0 > c.length - (b + g) || m[m.length - g - 1] != c[b - g - 1]) {
1003
- k = !1;
1004
- break
1005
- }
1006
- k && (e++, d[e] = "")
1007
- }
1008
- d[e] += c[b]
1009
- }
1010
- return d
1011
- }, endsWithSpace: function (c) {
1012
- return-1 !== c.indexOf(" ", c.length - 1)
1013
- }}, postProcess: {cleanUpSpans: function () {
1014
- rspkr.log("[ClientMarkup.postProcess.cleanUpSpans] called!");
1015
- var c = document.getElementsByTagName(rspkr.Common.data.browser.syncContainer), a;
1016
- for (i = c.length - 1; -1 < i; i--)a = document.createDocumentFragment(), a.textContent =
1017
- c[i].textContent, c[i].parentNode.replaceChild(a, c[i])
1018
- }, lightCleanUp: function () {
1019
- rspkr.log("[ClientMarkup.postProcess.lightCleanUp] called!!");
1020
- var c = document.getElementsByTagName(rspkr.Common.data.browser.syncContainer);
1021
- for (i = c.length - 1; -1 < i; i--)rspkr.HL.chunking.continueHref || (c[i].className = c[i].className.replace("sync_sent_highlighted", "sync_sent")), c[i].className = c[i].className.replace("sync_word_highlighted", "sync_word"), !rspkr.HL.chunking.continueHref && -1 === c[i].className.toLowerCase().indexOf("sync_user") &&
1022
- c[i].removeAttribute("id")
1023
- }, settingsCleanUp: function () {
1024
- rspkr.log("[ClientMarkup.postProcess.settingsCleanUp] called!");
1025
- var c = rspkr.HL.clientMarkup.previousWord.element, a = rspkr.HL.clientMarkup.previousWord.className, d = rspkr.HL.clientMarkup.previousSent.element, e = rspkr.HL.clientMarkup.previousSent.className;
1026
- if (0 < c.length) {
1027
- for (var b in c)c[b].className = a[b];
1028
- rspkr.HL.clientMarkup.previousWord.element = [];
1029
- rspkr.HL.clientMarkup.previousWord.className = []
1030
- }
1031
- if (0 < d.length) {
1032
- for (b in d)d[b].className = e[b];
1033
- rspkr.HL.clientMarkup.previousSent.element =
1034
- [];
1035
- rspkr.HL.clientMarkup.previousSent.className = []
1036
- }
1037
- }, fullCleanUp: function () {
1038
- rspkr.log("[ClientMarkup.postProcess.fullCleanUp] called!");
1039
- var c = rspkr.HL.clientMarkup.previousWord.element, a = rspkr.HL.clientMarkup.previousWord.className, d = rspkr.HL.clientMarkup.previousSent.element, e = rspkr.HL.clientMarkup.previousSent.className;
1040
- if (0 < c.length) {
1041
- for (var b in c)c[b].className = a[b];
1042
- rspkr.HL.clientMarkup.previousWord.element = [];
1043
- rspkr.HL.clientMarkup.previousWord.className = []
1044
- }
1045
- if (0 < d.length) {
1046
- for (b in d)d[b].className =
1047
- e[b];
1048
- rspkr.HL.clientMarkup.previousSent.element = [];
1049
- rspkr.HL.clientMarkup.previousSent.className = []
1050
- }
1051
- this.cleanUpSpans();
1052
- rspkr.Common.data.selectedHTML = ""
1053
- }}, sync: function (c, a) {
1054
- var d = !1, e;
1055
- 0 == (c & 2) && (d = 0 != (c & 1) ? !0 : !1);
1056
- 1 == this.firstRun && (this.previousWord.element = [], this.previousWord.className = [], this.previousSent.element = [], this.previousSent.className = []);
1057
- e = this.selectedWordsRange["sync" + a];
1058
- if (e.className.replace("word", "") != e.className) {
1059
- rspkr.log("inside");
1060
- if (0 < this.previousWord.element.length && 0 < this.previousWord.className.length && !d) {
1061
- for (d = 0; d < this.previousWord.element.length; d++)this.previousWord.element[d].className = this.previousWord.className[d];
1062
- this.previousWord.element = [];
1063
- this.previousWord.className = []
1064
- }
1065
- this.previousWord.element.push(e);
1066
- this.previousWord.className.push(e.className);
1067
- "sent" === rspkr.st.get("hl") ? e.className = e.className.replace("sync_sent", "sync_user sync_sent_highlighted") : (rspkr.HL.customHL && rspkr.HL.customHL.active() && rspkr.HL.customHL.wordHL(e, c), e.className = e.className.replace("sync_word", "sync_user sync_word_highlighted"))
1068
- }
1069
- e &&
1070
- rspkr.HL.Scroll.execScroll(e);
1071
- if (1 == this.firstRun) {
1072
- this.firstRun = 0;
1073
- if (0 < this.previousSent.element.length) {
1074
- for (d = 0; d < this.previousSent.element.length; d++)this.previousSent.element[d].className = this.previousSent.className[d];
1075
- this.previousSent.element = [];
1076
- this.previousSent.className = []
1077
- }
1078
- if ("wordsent" == rspkr.st.get("hl")) {
1079
- e = this.preProcess.returnClassArraySubstring("ffsent" + this.preProcess.numberOfSelections + " ");
1080
- for (d = 0; d < e.length; d++)this.previousSent.element[d] = e[d], this.previousSent.className[d] = e[d].className,
1081
- e[d].className = "ffsent" + this.preProcess.numberOfSelections + " sync_sent_highlighted"
1082
- }
1083
- }
1084
- }, syncNew: function (c, a) {
1085
- var d;
1086
- 1 == this.firstRun && (this.previousWord.element = [], this.previousWord.className = [], this.previousSent.element = [], this.previousSent.className = [], this.firstRun = 0);
1087
- d = document.getElementById("sync" + a);
1088
- if (d.className.replace("word", "") != d.className && ("word" === rspkr.st.get("hl") || "wordsent" === rspkr.st.get("hl"))) {
1089
- if (0 < this.previousWord.element.length && 0 < this.previousWord.className.length) {
1090
- for (var e =
1091
- 0; e < this.previousWord.element.length; e++)this.previousWord.element[e].className = this.previousWord.className[e];
1092
- this.previousWord.element = [];
1093
- this.previousWord.className = []
1094
- }
1095
- this.previousWord.element.push(d);
1096
- this.previousWord.className.push(d.className);
1097
- d.className = "sync_user sync_word_highlighted"
1098
- } else if (d.className.replace("sent", "") != d.className && ("sent" === rspkr.st.get("hl") || "wordsent" === rspkr.st.get("hl"))) {
1099
- if (0 < this.previousSent.element.length && 0 < this.previousSent.className.length) {
1100
- for (e = 0; e <
1101
- this.previousSent.element.length; e++)this.previousSent.element[e].className = this.previousSent.className[e];
1102
- this.previousSent.element = [];
1103
- this.previousSent.className = []
1104
- }
1105
- this.previousSent.element.push(d);
1106
- this.previousSent.className.push(d.className);
1107
- d.className = d.className.replace("sync_sent", "sync_user sync_sent_highlighted")
1108
- }
1109
- d && rspkr.HL.Scroll.execScroll(d)
1110
- }}}
1111
- }();
1
+ rspkr.HL = function () {
2
+ var c = "", a = {firstRun: 0, previousWord: {}, previousSent: {}, lastWord: null, selectionRange: null, selectionHTML: null, selectedWordsRange: []}, d = {oldWordHL: [], oldWordHLClass: [], oldSentHL: [], oldSentHLClass: [], sync: function (b, j) {
3
+ var a = !1, c = document.getElementById("sync" + j);
4
+ 0 == (b & 2) && (a = 0 != (b & 1) ? !0 : !1);
5
+ if (c && c.className.replace("word", "") != c.className) {
6
+ if (!a && 0 < this.oldWordHL.length) {
7
+ for (a = 0; a < this.oldWordHLClass.length; a++)this.oldWordHL[a].className = this.oldWordHLClass[a];
8
+ this.oldWordHL = [];
9
+ this.oldWordHLClass = []
10
+ }
11
+ this.oldWordHLClass.push(c.className);
12
+ this.oldWordHL.push(c);
13
+ rspkr.HL.customHL && rspkr.HL.customHL.active() && rspkr.HL.customHL.wordHL(c, b);
14
+ c.className = c.className.replace("sync_word", "sync_word_highlighted")
15
+ } else if (c && c.className.replace("sent", "") != c.className) {
16
+ if (!a && 0 < this.oldSentHL.length) {
17
+ for (a = 0; a < this.oldSentHL.length; a++)this.oldSentHL[a].className = this.oldSentHLClass[a];
18
+ this.oldSentHL = [];
19
+ this.oldSentHLClass = []
20
+ }
21
+ this.oldSentHLClass.push(c.className);
22
+ this.oldSentHL.push(c);
23
+ rspkr.HL.customHL && rspkr.HL.customHL.active() && rspkr.HL.customHL.sentHL(c, b);
24
+ c.className = c.className.replace("sync_sent", "sync_sent_highlighted")
25
+ }
26
+ c && rspkr.HL.Scroll.execScroll(c)
27
+ }, preProcess: {setRestoreContent: function () {
28
+ rspkr.log("[Servermarkup.preProcess.setRestoreContent] Called!");
29
+ var b = rspkr.Common.data.getParam("readid"), b = document.getElementById(b).innerHTML;
30
+ rspkr.Common.data.setRestoreContent(b)
31
+ }}, postProcess: {fullCleanUp: function () {
32
+ rspkr.log("[Servermarkup.postProcess.fullCleanUp] Called!");
33
+ rspkr.HL.Restore.all()
34
+ }, lightCleanUp: function () {
35
+ rspkr.log("[Servermarkup.postProcess.lightCleanUp] Called!");
36
+ var b = rspkr.HL.serverMarkup.oldWordHL, a = rspkr.HL.serverMarkup.oldWordHLClass, c = rspkr.HL.serverMarkup.oldSentHL, e = rspkr.HL.serverMarkup.oldSentHLClass;
37
+ if (0 < b.length) {
38
+ for (var d = 0; d < b.length; d++)b[d].className = a[d];
39
+ rspkr.HL.serverMarkup.oldWordHL = [];
40
+ rspkr.HL.serverMarkup.oldWordHLClass = []
41
+ }
42
+ if (0 < c.length) {
43
+ for (d = 0; d < c.length; d++)c[d].className = e[d];
44
+ rspkr.HL.serverMarkup.oldSentHL = [];
45
+ rspkr.HL.serverMarkup.oldSentHLClass =
46
+ []
47
+ }
48
+ b = document.getElementsByTagName(rspkr.Common.data.browser.syncContainer);
49
+ for (d = b.length - 1; -1 < d; d--)b[d].className = b[d].className.replace("sync_sent_highlighted", "sync_sent"), b[d].className = b[d].className.replace("sync_word_highlighted", "sync_word"), -1 !== b[d].className.toLowerCase().indexOf("sync_user") && (b[d].className = b[d].className.replace("sync_sent", ""), b[d].className = b[d].className.replace("sync_word", ""), b[d].removeAttribute("id"))
50
+ }}}, e = {enums: {key: "readspeaker_inline_styles", sent: "sync_sent",
51
+ sent_hl: "sync_sent_highlighted", word: "sync_word", word_hl: "sync_word_highlighted"}, word_index: null, sent_index: null, hlChanged: !1, setHL: function () {
52
+ var b = rspkr.pub.Config, a = rspkr.Common.Settings.get("hlword") || b.item("settings.hlword"), c = rspkr.Common.Settings.get("hlsent") || b.item("settings.hlsent"), b = rspkr.Common.Settings.get("hltext") || b.item("settings.hltext");
53
+ this.updateHL("hlword", a, null);
54
+ this.updateHL("hlsent", c, null);
55
+ this.updateHL("hltext", b, null)
56
+ }, updateHL: function (b, j, d) {
57
+ d = d || null;
58
+ "hlspeed" ===
59
+ b && j !== d && (this.hlChanged = !0);
60
+ if (j !== d && ("hl" === b || "hltoggle" === b))this.hlChanged = !0, rspkr.HL.sync.lightCleanUp();
61
+ if (j !== d && ("hl" === b && "none" !== j || "hltoggle" === b && "hlon" === j))this.setTextStyle("word", rspkr.Common.Settings.get("hlword")), this.setTextStyle("sent", rspkr.Common.Settings.get("hlsent")), this.setTextStyle("hltext", rspkr.Common.Settings.get("hltext")), this.hlChanged = !0, rspkr.HL.Type.CURRENT === rspkr.HL.Type.CLIENT_MARKUP && rspkr.PlayerAPI.releaseAdapter();
62
+ /hltext|hlword|hlsent|hlscroll/i.test(b) &&
63
+ j != d && ("hlscroll" == b ? rspkr.HL.Scroll.initScroll() : (this.setTextStyle(b, j), "explorer" == c && (a.selectionRange && ("wordsent" === rspkr.st.get("hl") && "hlsent" == b) && (a.selectionRange.execCommand("backcolor", 0, rspkr.Common.Settings.get("hlsent")), a.selectionRange.execCommand("forecolor", 0, rspkr.Common.Settings.get("hltext"))), a.lastWord && ("sent" == rspkr.st.get("hl") ? a.lastWord.execCommand("backcolor", 0, rspkr.Common.Settings.get("hlsent")) : a.lastWord.execCommand("backcolor", 0, rspkr.Common.Settings.get("hlword")),
64
+ a.lastWord.execCommand("forecolor", 0, rspkr.Common.Settings.get("settings.hltext"))))))
65
+ }, setTextStyle: function (b, a, c) {
66
+ var d = /word/.test(b) ? "word" : "sent", g = "background-color", c = c || e.enums.key;
67
+ /underline/.test(a) ? (g = "text-decoration", a += " !important; background-color: none !important") : /none/.test(a) ? (g = "background", a += " !important; text-decoration: none !important; background-color: none !important") : "hltext" === b ? (b = a, a = this.getStyleString(rspkr.Common.Settings.get("hlsent"), b), b = this.getStyleString(rspkr.Common.Settings.get("hlword"),
68
+ b), rspkr.Common.css.replaceRule(c, "." + e.enums.word_hl, g + ": " + b)) : a += " !important; text-decoration: none !important; color: " + rspkr.Common.Settings.get("hltext") + " !important";
69
+ rspkr.Common.css.replaceRule(c, "." + e.enums[d + "_hl"], g + ": " + a)
70
+ }, getStyleString: function (b, a) {
71
+ var c = /underline|none/i.test(b) ? "none" : b, d = /underline/i.test(b) ? "underline" : "none";
72
+ return c + " !important; text-decoration: " + d + " !important; color: " + a + " !important"
73
+ }};
74
+ return{meta: {revision: "3253"}, init: function () {
75
+ var b = rspkr.Common.addEvent;
76
+ b("onAfterModsLoaded", function () {
77
+ b("onAPIInitAdapter", rspkr.HL.Restore.setRestoreContent);
78
+ rspkr.HL.addEvents();
79
+ rspkr.HL.Scroll.initScroll();
80
+ c = document.selection && (9 > rspkr.Common.data.browser.version || 9 > document.documentMode) ? "explorer" : "gecko";
81
+ rspkr.log("[rspkr.hl] Using engine " + c);
82
+ var j = rspkr.HL.engine[c].clientExtension, d;
83
+ for (d in j)a[d] = j[d];
84
+ window.addEventListener && window.addEventListener("message", rspkr.HL.html5.receiveMessage, !1, !0)
85
+ });
86
+ b("onModsLoaded", {func: e.setHL, context: e});
87
+ b("onSettingsChanged",
88
+ {func: e.updateHL, context: e});
89
+ var j = rspkr.HL, d = document.createElement("audio");
90
+ j.chunking = {html5support: !!d.canPlayType, close: function () {
91
+ var b = $rs.get(".rsresume");
92
+ $rs.isArray(b) || (b = [b]);
93
+ for (var a = 0, c; c = b[a]; a++)c.parentElement.removeChild(c)
94
+ }, silence: function () {
95
+ rspkr.HL.chunking.entracte && rspkr.HL.chunking.entracte.src && (rspkr.HL.chunking.entracte.pause(), rspkr.HL.chunking.entracte.currentTime && (rspkr.HL.chunking.entracte.currentTime = 0))
96
+ }, kill: function () {
97
+ rspkr.HL.chunking.timer && clearTimeout(rspkr.HL.chunking.timer);
98
+ rspkr.HL.chunking.continueHref = null;
99
+ rspkr.HL.chunking.stall = null;
100
+ rspkr.HL.chunking.chunkEnded = null;
101
+ rspkr.HL.chunking.currentChunkNumber = 1;
102
+ rspkr.HL.chunking.entracte && rspkr.HL.chunking.entracte.removeAttribute("src")
103
+ }, destroy: function () {
104
+ rspkr.HL.chunking.silence();
105
+ rspkr.HL.chunking.close();
106
+ rspkr.HL.chunking.kill()
107
+ }};
108
+ rspkr.HL.chunking.currentChunkNumber = 1;
109
+ -1 != Object.keys(rspkr.Common.e).indexOf("onChunkResume") && b("onChunkResume", function () {
110
+ rspkr.HL.chunking.silence();
111
+ var b = rspkr.ui.getActivePlayer().getContainer();
112
+ if ($rs.hasClass(b, "rsautopaused") || !$rs.hasClass(b, "rspaused"))if (rspkr.HL.chunking.stall)setTimeout(function () {
113
+ rspkr.c.dispatchEvent("onChunkResume", window)
114
+ }, 250); else {
115
+ $rs.removeClass(b, "rsautopaused");
116
+ clearTimeout(rspkr.HL.chunking.timer);
117
+ var b = rspkr.HL.chunking.continueHref.replace("%{AUDIOFORMAT}", rspkr.Common.data.browser.html5AudioFormat), a = rspkr.HL.chunking.continueHref.replace("%{AUDIOFORMAT}", "html5iframe");
118
+ rspkr.HL.chunking.continueHref = void 0;
119
+ rspkr.HL.html5.audioUrl = b.replace(/&amp;/g,
120
+ "&");
121
+ rspkr.HL.html5.frameUrl = a.replace(/&amp;/g, "&");
122
+ rspkr.HL.html5.initSyncFrame();
123
+ rspkr.HL.html5.initAudio();
124
+ rspkr.ui.getActivePlayer().play();
125
+ rspkr.HL.chunking.currentChunkNumber++
126
+ }
127
+ });
128
+ rspkr.log("[rspkr.HL] Initialized!")
129
+ }, addEvents: function () {
130
+ rspkr.log("[rspkr.HL.addEvents]");
131
+ evt("onUIClosePlayer", rspkr.HL.sync.lightCleanUp);
132
+ evt("onUIClosePlayer", rspkr.HL.cleanUpHandler);
133
+ evt("onUIClosePlayer", function () {
134
+ rspkr.hl.State.setState(rspkr.hl.State.READY)
135
+ });
136
+ evt("onUIStop", function () {
137
+ rspkr.hl.State.setState(rspkr.hl.State.STOPPED)
138
+ });
139
+ evt("onUIBeforePlay", function () {
140
+ rspkr.hl.Restore.checkContent()
141
+ });
142
+ rspkr.PlayerAPI && (rspkr.PlayerAPI.adapter && "html5" === rspkr.PlayerAPI.adapter) && (rspkr.evt("onAPIInitAdapter", rspkr.HL.html5.handlers.init), rspkr.evt("onAPIPlay", rspkr.HL.html5.handlers.play), rspkr.evt("onAPIPause", rspkr.HL.html5.handlers.pause), rspkr.evt("onAPIStop", rspkr.HL.html5.handlers.stop), rspkr.evt("onAPIRewind", rspkr.HL.html5.handlers.updateTime), rspkr.evt("onAPISetProgress", rspkr.HL.html5.handlers.updateTime), rspkr.evt("onAPIReleaseAdapter",
143
+ rspkr.HL.html5.handlers.release));
144
+ rspkr.evt("onAPIStop", rspkr.HL.sync.lightCleanUp)
145
+ }, cleanUpHandler: function (b) {
146
+ rspkr.log("[rspkr.HL.cleanUpHandler] String is: " + b);
147
+ "userclick" === b || "nosel" === b ? rspkr.HL.sync.fullCleanUp() : rspkr.HL.sync.lightCleanUp()
148
+ }, clientMarkup: a, serverMarkup: d, markedUpHTML: [], html5: {States: {BEGIN: 0, STOPPED: 1, USER_START_NOT_READY: 2, USER_START_PLAYING: 3, NOT_PLAYING: 4, CURRENT: 0, setState: function (b) {
149
+ this.CURRENT = b;
150
+ rspkr.log("[rspkr.hl.html5.States.setState] Changing state from " +
151
+ this.CURRENT + " to " + b, 1)
152
+ }}, Events: {canPlay: !1, durationChange: !1, syncReady: !1, eventTimer: null, onCanPlay: function () {
153
+ rspkr.log("onCanPlay fired!", 1);
154
+ this.canPlay = !0;
155
+ this.checkCompletion();
156
+ this.eventTimer = setTimeout(function () {
157
+ rspkr.log("[rspkr.hl.html5.Events] Timer triggered. Starting playback.", 1);
158
+ rspkr.hl.html5.Events.resetAll();
159
+ rspkr.hl.html5.refresh()
160
+ }, 2500);
161
+ return!1
162
+ }, checkCompletion: function () {
163
+ this.canPlay && (this.durationChange && this.syncReady) && (clearTimeout(this.eventTimer), this.eventTimer = null,
164
+ rspkr.hl.html5.Events.resetAll(), rspkr.hl.html5.refresh())
165
+ }, onDurationChange: function () {
166
+ rspkr.log("onDurationChange fired!", 1);
167
+ this.durationChange = !0;
168
+ this.checkCompletion();
169
+ this.eventTimer = setTimeout(function () {
170
+ rspkr.log("[rspkr.hl.html5.Events] Timer triggered. Starting playback.", 1);
171
+ rspkr.hl.html5.Events.resetAll();
172
+ rspkr.hl.html5.refresh()
173
+ }, 2500)
174
+ }, onSyncReady: function () {
175
+ rspkr.log("onSyncReady fired!", 1);
176
+ this.syncReady = !0;
177
+ this.checkCompletion();
178
+ this.eventTimer = setTimeout(function () {
179
+ rspkr.log("[rspkr.hl.html5.Events] Timer triggered. Starting playback.",
180
+ 1);
181
+ rspkr.hl.html5.Events.resetAll();
182
+ rspkr.hl.html5.refresh()
183
+ }, 2500)
184
+ }, resetAll: function () {
185
+ this.syncReady = this.durationChange = this.canPlay = !1
186
+ }}, lastcurrenttime: -1, currentsyncindex: 0, lastevent: null, lastlastevent: null, lastlastlastevent: null, synclist: [], synclistindex: 0, audioUrl: null, backupUrl: null, frameUrl: null, timer: null, postMessageData: [], runningRefresh: !1, handlers: {init: function () {
187
+ rspkr.log("[rspkr.HL.html5.handlers.init]");
188
+ rspkr.HL.html5.cronologyCheck = {proxyCallsDone: !1, errorOccured: !1, quarantine: []};
189
+ rspkr.HL.html5.rshlendCall = !1;
190
+ var b = Math.random(), a = {};
191
+ a.audioformat = rspkr.Common.data.browser.html5AudioFormat;
192
+ a.requestgrouptype = "html5iframe";
193
+ a.requestgroup = b;
194
+ window.rshlcontinue && ("function" == typeof window.rshlcontinue && -1 != Object.keys(rspkr.Common.e).indexOf("onChunkResume")) && (a.chunk = 1);
195
+ rspkr.HL.html5.backupUrl = rspkr.Common.data.getAudioLink(a);
196
+ (!0 === rspkr.cfg.item("general.usePost") || 0 < rspkr.Common.data.selectedText.length || 0 < rspkr.Common.data.selectedHTML.length) && "iOS" !== rspkr.Common.data.browser.OS &&
197
+ "Android" !== rspkr.Common.data.browser.OS ? rspkr.HL.html5.timer = setTimeout(function () {
198
+ rspkr.HL.html5.initSyncFrame(a);
199
+ rspkr.HL.html5.initAudio();
200
+ clearTimeout(rspkr.HL.html5.timer)
201
+ }, 2E3) : (rspkr.log("Normal audio init!"), rspkr.HL.html5.initSyncFrame(a), rspkr.HL.html5.initAudio())
202
+ }, play: function () {
203
+ rspkr.log("[rspkr.HL.html5.handlers.play]");
204
+ rspkr.HL.Type.CURRENT == rspkr.HL.Type.CLIENT_MARKUP && rspkr.hl.html5.States.CURRENT == rspkr.hl.html5.States.STOPPED ? (rspkr.hl.html5.States.setState(rspkr.hl.html5.States.BEGIN),
205
+ rspkr.PlayerAPI.playerRef.pause(), rspkr.HL.html5.handlers.runPostMessages()) : rspkr.HL.Type.CURRENT == rspkr.HL.Type.SERVER_MARKUP && rspkr.hl.html5.States.CURRENT == rspkr.hl.html5.States.STOPPED ? rspkr.hl.State.setState(rspkr.hl.State.RELOAD) ? this.init() : (rspkr.hl.html5.States.setState(rspkr.hl.html5.States.BEGIN), rspkr.PlayerAPI.playerRef.pause(), rspkr.HL.html5.handlers.runPostMessages()) : (rspkr.hl.html5.States.CURRENT = rspkr.hl.html5.States.USER_START_PLAYING, rspkr.hl.html5.refresh())
206
+ }, pause: function () {
207
+ rspkr.hl.html5.States.setState(rspkr.hl.html5.States.NOT_PLAYING);
208
+ rspkr.hl.html5.lastcurrenttime = 0
209
+ }, release: function () {
210
+ rspkr.log("[rspkr.HL.html5.handlers.release]");
211
+ rspkr.HL.html5.synclist = [];
212
+ rspkr.HL.html5.synclistindex = 0;
213
+ rspkr.HL.html5.currentsyncindex = 0;
214
+ rspkr.HL.html5.lastcurrenttime = -1;
215
+ rspkr.HL.html5.audioUrl = null;
216
+ rspkr.HL.html5.backupUrl = null;
217
+ rspkr.HL.html5.frameUrl = null;
218
+ rspkr.HL.html5.postMessageData = [];
219
+ rspkr.HL.html5.Events.resetAll();
220
+ rspkr.PlayerAPI.playerRef && rspkr.PlayerAPI.playerRef.removeEventListener("ended", rshlexit, !1);
221
+ rspkr.PlayerAPI.playerRef =
222
+ null;
223
+ var b = document.getElementById("ReadSpeaker_sync_iframe");
224
+ b && (b.src = "about:blank")
225
+ }, stop: function () {
226
+ rspkr.hl.html5.States.setState(rspkr.hl.html5.States.STOPPED);
227
+ rspkr.HL.html5.lastcurrenttime = -1;
228
+ rspkr.HL.html5.currentsyncindex = 0
229
+ }, updateTime: function () {
230
+ rspkr.log("[rspkr.HL.html5.handlers.updateTime]");
231
+ rspkr.hl.html5.States.setState(rspkr.hl.html5.States.NOT_PLAYING);
232
+ rspkr.HL.html5.lastcurrenttime = rspkr.PlayerAPI.playerRef.currentTime;
233
+ rspkr.HL.html5.currentsyncindex = 0;
234
+ rspkr.HL.html5.handlers.setCurrentSyncIndex();
235
+ rspkr.hl.html5.States.setState(rspkr.hl.html5.States.USER_START_PLAYING)
236
+ }, runPostMessages: function () {
237
+ rspkr.log("[rspkr.HL.html5.handlers.runPostMessages]");
238
+ var b = rspkr.HL.html5.postMessageData, a;
239
+ for (a in b)null !== b[a - 1] && "rshlsetContent" == b[a] ? rspkr.HL.sync.setContent(rspkr.Common.base64.decode(b[a - 1])) : null !== b[a - 1] && "rshlsetId" == b[a] ? rspkr.HL.sync.setId(b[a - 1]) : "rshlinit" == b[a] && (rspkr.HL.sync.init(), rspkr.PlayerAPI.playerRef.play(), rspkr.HL.html5.refresh())
240
+ }, setCurrentSyncIndex: function () {
241
+ if (0 <
242
+ rspkr.HL.html5.synclist.length && rspkr.HL.html5.synclist[rspkr.HL.html5.currentsyncindex])for (; rspkr.HL.html5.synclist[rspkr.HL.html5.currentsyncindex] && 20 >= 1 * rspkr.HL.html5.synclist[rspkr.HL.html5.currentsyncindex][0] - 1E3 * rspkr.PlayerAPI.playerRef.currentTime;)rspkr.HL.html5.currentsyncindex++
243
+ }, totalTime: function () {
244
+ var b = rspkr.PlayerAPI.playerRef;
245
+ if (b)if ("Opera" !== rspkr.Common.data.browser.name && b.buffered && b.buffered.end)try {
246
+ return 0 < b.buffered.length ? b.buffered.end(b.buffered.length - 1) : b.buffered.end(0)
247
+ } catch (a) {
248
+ return b.duration &&
249
+ "infinity" !== b.duration.toString().toLowerCase() && "NaN" !== b.duration ? b.duration : b.currentTime + 15
250
+ } else return b.duration && "infinity" !== b.duration.toString.toLowerCase() && "NaN" !== b.duration ? b.duration : b.currentTime + 15
251
+ }}, initAudio: function () {
252
+ rspkr.HL.html5.audioUrl || (rspkr.HL.html5.audioUrl = rspkr.HL.html5.backupUrl);
253
+ rspkr.log("[rspkr.html5.initAudio] Audio URL: " + rspkr.HL.html5.audioUrl, 1);
254
+ /ios|android/i.test(rspkr.c.data.browser.OS) && "object" === typeof window.rspkr.audio && null !== window.rspkr.audio ? (rspkr.audio.src =
255
+ rspkr.HL.html5.audioUrl, rspkr.PlayerAPI.playerRef = rspkr.audio, rspkr.log("[rs.hl.initAudio] Reusing existing audio element.", 4)) : rspkr.PlayerAPI.playerRef = new Audio(rspkr.HL.html5.audioUrl);
256
+ var b = rspkr.PlayerAPI.playerRef;
257
+ b.loop = !1;
258
+ b.preload = "auto";
259
+ b.volume = parseFloat((rspkr.st.get("hlvol") || 100) / 100);
260
+ rspkr.devt("onVolumeAdjusted", window);
261
+ /ios|android/i.test(rspkr.c.data.browser.OS) && (rspkr.PlayerAPI.playerRef.play(), rspkr.PlayerAPI.playerRef.pause());
262
+ b.addEventListener("canplay", function () {
263
+ rspkr.hl.html5.Events.onCanPlay()
264
+ },
265
+ !1);
266
+ b.addEventListener("durationchange", function () {
267
+ rspkr.log("[rspkr.hl.html5.initAudio] Durationchange occurred", 1);
268
+ 1 == rspkr.HL.html5.handlers.totalTime() && !0 == rspkr.PlayerAPI.playerRef.paused ? rspkr.HL.html5.initAudio() : (0 === rspkr.HL.html5.handlers.totalTime() && rspkr.pl.playerRef.play(), rspkr.hl.html5.Events.onDurationChange())
269
+ }, !1);
270
+ rspkr.PlayerAPI.playerRef.addEventListener("ended", function () {
271
+ rs.HL.chunking.continueHref ? window.rshlcontinue() : window.rshlexit("false")
272
+ }, !1);
273
+ rspkr.pl.checkNetworkStatus();
274
+ rspkr.hl.html5.States.setState(rspkr.hl.html5.States.BEGIN)
275
+ }, initSyncFrame: function (b) {
276
+ if ("none" != rspkr.Common.data.sync) {
277
+ var a = null;
278
+ document.getElementById("ReadSpeaker_sync_iframe") ? a = document.getElementById("ReadSpeaker_sync_iframe") : (a = document.createElement("iframe"), a.setAttribute("id", "ReadSpeaker_sync_iframe"), a.setAttribute("title", "ReadSpeaker_sync_iframe"), a.setAttribute("aria-hidden", "true"), a.height = 0, a.width = 0, a.style.display = "none", document.body.appendChild(a));
279
+ !rspkr.HL.html5.frameUrl &&
280
+ (!0 === rspkr.cfg.item("general.usePost") || 0 < rspkr.Common.data.selectedText.length || 0 < rspkr.Common.data.selectedHTML.length) ? rspkr.HL.html5.frameUrl = rspkr.HL.html5.backupUrl + "sync" : rspkr.HL.html5.frameUrl || (b.audioformat = "html5iframe", rspkr.HL.html5.frameUrl = rspkr.Common.data.getAudioLink(b));
281
+ rspkr.log("[rspkr.HL.html5.initSyncFrame] Audio URL: " + rspkr.HL.html5.frameUrl);
282
+ rspkr.HL.html5.frameUrl && (a.src = rspkr.HL.html5.frameUrl, a.type = "text/javascript")
283
+ } else rspkr.hl.html5.States.setState(rspkr.hl.html5.States.USER_START_PLAYING),
284
+ rspkr.PlayerAPI.playerRef.play()
285
+ }, removeSyncFrame: function () {
286
+ var b = document.getElementById("ReadSpeaker_sync_iframe");
287
+ b && b.parentNode.removeChild(b)
288
+ }, receiveMessage: function (b) {
289
+ var a = !0;
290
+ rspkr.cfg.item("general.servercall") && (a = document.createElement("a"), a.href = rspkr.cfg.item("general.servercall"), a = !b.origin.match(a.hostname));
291
+ if (b.origin.match(/readspeaker.?.com/gi) || b.origin.match(rspkr.cfg.item("general.domain")) || !a) {
292
+ if (!0 === rspkr.cfg.item("general.usePost")) {
293
+ var c = rspkr.HL.html5.cronologyCheck;
294
+ if ("rshlend" === b.data && c.quarantine && 0 < c.quarantine.length)c.errorOccured = !1, c.cleanUpTimer = setInterval(function () {
295
+ if (0 < c.quarantine.length) {
296
+ var b = c.quarantine.shift();
297
+ window.postMessage(b, "*")
298
+ } else clearInterval(c.cleanUpTimer)
299
+ }, 0); else if ("rshlendpost" === b.data)c.proxyCallsDone = !0; else if ((!c.proxyCallsDone || c.errorOccured) && "http" !== b.data.substring(0, 4) && "rshlaudio" !== b.data && "rshlhtml5sync" !== b.data && "rshlfinished" !== b.data) {
300
+ c.errorOccured = !0;
301
+ c.quarantine.push(b.data);
302
+ return
303
+ }
304
+ }
305
+ rspkr.HL.html5.postMessageData.push(b.data);
306
+ !/android|ios/i.test(rspkr.Common.data.browser.OS) && "rshlfinished" == b.data && (rspkr.HL.html5.timer && clearTimeout(rspkr.HL.html5.timer), rspkr.HL.html5.initSyncFrame(), rspkr.HL.html5.initAudio());
307
+ if ("rshlend" === b.data)rspkr.HL.html5.rshlendCall = !0, rspkr.c.post.removeIframe(), rspkr.HL.html5.removeSyncFrame(); else {
308
+ if (-1 != b.data.indexOf("." + rspkr.Common.data.browser.html5AudioFormat)) {
309
+ b = rs.cfg.item("general.customProxy") ? rs.cfg.item("general.customProxy") + encodeURIComponent(b.data) : b.data;
310
+ rspkr.HL.html5.audioUrl =
311
+ b;
312
+ return
313
+ }
314
+ if (-1 != b.data.indexOf(".html5iframe")) {
315
+ b = rs.cfg.item("general.customProxy") ? rs.cfg.item("general.customProxy") + encodeURIComponent(b.data) : b.data;
316
+ rspkr.HL.html5.frameUrl = b;
317
+ return
318
+ }
319
+ if ("rshlaudio" == b.data || "rshlhtml5sync" == b.data)return;
320
+ null != rspkr.HL.html5.lastevent && "rshlsetContent" == b.data ? (rspkr.HL.html5.synclist = [], rspkr.HL.html5.synclistindex = 0, rspkr.HL.sync.setContent(rspkr.Common.base64.decode(rspkr.HL.html5.lastevent.data))) : null != rspkr.HL.html5.lastevent && "rshlsetId" == b.data ? rspkr.HL.sync.setId(rspkr.HL.html5.lastevent.data) :
321
+ null != rspkr.HL.html5.lastevent && "rshlReplace" == b.data ? (rspkr.HL.html5.lastevent.data.match(/class=[^&|,]+/gi) && (a = rspkr.HL.html5.lastevent.data.match(/class=[^&|,]+/gi)[0].replace("class=", ""), rspkr.HL.sync.setClass(a)), rspkr.HL.html5.lastevent.data.match(/id=[^&|,]+/gi) && (a = rspkr.HL.html5.lastevent.data.match(/id=[^&|,]+/gi)[0].replace("id=", ""), rspkr.HL.sync.setId(a))) : "rshlinit" == b.data ? (rspkr.HL.sync.init(), rspkr.hl.html5.Events.onSyncReady()) : null != rspkr.HL.html5.lastlastlastevent && null != rspkr.HL.html5.lastlastevent &&
322
+ null != rspkr.HL.html5.lastevent && "rshlsync" == b.data ? (rspkr.HL.html5.synclist[rspkr.HL.html5.synclistindex] = [rspkr.HL.html5.lastlastlastevent.data, rspkr.HL.html5.lastlastevent.data, rspkr.HL.html5.lastevent.data], rspkr.HL.html5.synclistindex++) : null != rspkr.HL.html5.lastevent && "rshlcontinue" == b.data ? (rs.HL.chunking.continueHref = rspkr.HL.html5.lastevent.data, rs.HL.chunking.continueTime = rspkr.HL.html5.lastlastevent && !isNaN(rspkr.HL.html5.lastlastevent.data) ? rspkr.HL.html5.lastlastevent.data : -1, /ios|android/i.test(rspkr.c.data.browser.OS) &&
323
+ (rspkr.HL.chunking.continueTime = -1)) : "rshlresume" == b.data && (rspkr.HL.html5.synclist.length = 0, rspkr.HL.html5.synclistindex = 0, rspkr.HL.html5.currentsynclistindex = 0, rspkr.HL.html5.currentsyncindex = 0)
324
+ }
325
+ rspkr.HL.html5.lastlastlastevent = rspkr.HL.html5.lastlastevent;
326
+ rspkr.HL.html5.lastlastevent = rspkr.HL.html5.lastevent;
327
+ rspkr.HL.html5.lastevent = b
328
+ }
329
+ }, refresh: function () {
330
+ var b = rspkr.PlayerAPI.playerRef, a = rspkr.HL.html5;
331
+ !b || a.States.CURRENT == a.States.STOPPED ? (rspkr.log("[rspkr.hl.html5.refresh] Audio is undefined or player is stopped",
332
+ 2), a.runningRefresh = !1) : (a.States.CURRENT == a.States.NOT_PLAYING && setTimeout(function () {
333
+ a.refresh()
334
+ }, 500), 0 < b.currentTime && parseInt(a.lastcurrenttime) > parseInt(b.currentTime) ? (rspkr.log("[rspkr.hl.html5.refresh] An error has occurred. Player is stopped.", 2), rspkr.ui.getActivePlayer().stop(), a.runningRefresh = !1) : (a.lastcurrenttime = b.currentTime, a.runningRefresh = !0, a.States.CURRENT == a.States.BEGIN ? (rspkr.hl.html5.States.setState(a.States.USER_START_NOT_READY), setTimeout(function () {
335
+ a.refresh()
336
+ }, 200)) :
337
+ a.States.CURRENT == a.States.USER_START_NOT_READY ? 0 < a.handlers.totalTime() && (rspkr.HL.html5.rshlendCall || a.synclist[a.currentsyncindex] && a.synclist[a.currentsyncindex][0] < 1E3 * a.handlers.totalTime()) ? (rspkr.hl.html5.States.setState(a.States.USER_START_PLAYING), b.play(), setTimeout(function () {
338
+ a.refresh()
339
+ }, 50)) : 0 === a.handlers.totalTime() ? (b.play(), setTimeout(function () {
340
+ a.refresh()
341
+ }, 250)) : a.synclist[a.currentsyncindex] ? 20 >= 1 * a.synclist[a.currentsyncindex][0] - 1E3 * b.currentTime ? setTimeout(function () {
342
+ a.refresh()
343
+ },
344
+ 0) : (b = 1 * a.synclist[a.currentsyncindex][0] - 1E3 * b.currentTime - 20, 75 < b ? setTimeout(function () {
345
+ a.refresh()
346
+ }, 75) : 0 > b ? setTimeout(function () {
347
+ a.refresh()
348
+ }, 0) : setTimeout(function () {
349
+ a.refresh()
350
+ }, b)) : setTimeout(function () {
351
+ a.refresh()
352
+ }, 75) : a.States.CURRENT == a.States.USER_START_PLAYING && (a.synclist[a.currentsyncindex] && 1 * a.synclist[a.currentsyncindex][0] - 20 < 1E3 * b.currentTime && (rspkr.HL.sync.execute(a.synclist[a.currentsyncindex][1], a.synclist[a.currentsyncindex][2]), a.currentsyncindex++), a.synclist[a.currentsyncindex] ?
353
+ 20 >= 1 * a.synclist[a.currentsyncindex][0] - 1E3 * b.currentTime ? setTimeout(function () {
354
+ a.refresh()
355
+ }, 0) : (b = 1 * a.synclist[a.currentsyncindex][0] - 1E3 * b.currentTime - 20, 75 < b ? setTimeout(function () {
356
+ a.refresh()
357
+ }, 75) : 0 > b ? setTimeout(function () {
358
+ a.refresh()
359
+ }, 0) : setTimeout(function () {
360
+ a.refresh()
361
+ }, b)) : setTimeout(function () {
362
+ a.refresh()
363
+ }, 75))))
364
+ }}, Preserve: {cls: "rs_preserve", testElem: null, elementShelter: [], formShelter: [], formData: function (b, a, c, d, e) {
365
+ this.name = b;
366
+ this.type = a;
367
+ this.value = c;
368
+ this.checked = d;
369
+ this.selectedIndex = e;
370
+ this.selectedOptions = []
371
+ }, moveToShelter: function (b) {
372
+ function a(b) {
373
+ if (b.childNodes)for (var c = 0; c < b.childNodes.length; c++) {
374
+ var d = b.childNodes[c];
375
+ 1 == d.nodeType && f.test(d.className) ? l.push(d) : 1 == d.nodeType && a(d)
376
+ }
377
+ }
378
+
379
+ rspkr.log("[rspkr.HL.Preserve.moveToShelter]");
380
+ var c = [], d = [], e = null, l = [], f = RegExp(rspkr.HL.Preserve.cls, "i");
381
+ a(b);
382
+ for (var h = 0, s = l.length; h < s; h++)e = $rs.get(l[h]).cloneNode(!1), l[h].parentNode.insertBefore(e, l[h]), c.push($rs.detach(l[h]));
383
+ rspkr.log("[rspkr.hl.Preserve] Moved " + h + " nodes to the shelter.");
384
+ b = $rs.findIn(b, "input, select");
385
+ for (h = 0; h < b.length; h++) {
386
+ e = new rspkr.HL.Preserve.formData(b[h].name, b[h].type, b[h].value, b[h].checked, b[h].selectedIndex);
387
+ if ("select-multiple" == b[h].type) {
388
+ for (var s = b[h].options, p = [], n = 0; n < s.length; n++)p.push(s[n].selected);
389
+ e.selectedOptions = p
390
+ }
391
+ d.push(e)
392
+ }
393
+ rspkr.HL.Preserve.elementShelter.push(c);
394
+ rspkr.HL.Preserve.formShelter.push(d)
395
+ }, restoreFromShelter: function (b) {
396
+ var a = [], c, d;
397
+ rspkr.log("[rspkr.HL.Preserve.restoreFromShelter]");
398
+ if (rspkr.HL.Preserve.elementShelter.length &&
399
+ (d = rspkr.HL.Preserve.elementShelter.shift(), d.length)) {
400
+ var e = RegExp(rspkr.HL.Preserve.cls, "i"), l = function (b) {
401
+ for (var c = 0; c < b.childNodes.length; c++) {
402
+ var d = b.childNodes[c];
403
+ 1 == d.nodeType && e.test(d.className) ? a.push(d) : 1 == d.nodeType && l(d)
404
+ }
405
+ };
406
+ l(b);
407
+ for (var f = 0, h = a.length; f < h; f++)c = d.shift(), a[f].parentNode.insertBefore(c, a[f]), a[f].parentNode.removeChild(a[f])
408
+ }
409
+ if (rspkr.HL.Preserve.formShelter.length && (b = $rs.findIn(b, "input, select"), c = rspkr.HL.Preserve.formShelter.shift(), b.length && c.length && b.length ===
410
+ c.length))for (f = 0; f < b.length; f++)if (b[f].name === c[f].name)switch (b[f].type) {
411
+ case "text":
412
+ b[f].value = c[f].value;
413
+ break;
414
+ case "password":
415
+ b[f].value = c[f].value;
416
+ break;
417
+ case "radio":
418
+ !0 === c[f].checked && (b[f].checked = !0);
419
+ break;
420
+ case "checkbox":
421
+ b[f].checked = c[f].checked;
422
+ break;
423
+ case "select-one":
424
+ b[f].selectedIndex = c[f].selectedIndex;
425
+ break;
426
+ case "select-multiple":
427
+ d = b[f].options;
428
+ for (h = 0; h < d.length; h++)d[h].selected = c[f].selectedOptions[h]
429
+ }
430
+ }, clearShelter: function () {
431
+ rspkr.log("[rspkr.HL.Preserve.clearShelter]");
432
+ rspkr.HL.Preserve.elementShelter =
433
+ [];
434
+ rspkr.HL.Preserve.formShelter = []
435
+ }}, Restore: {Storage: {readClass: [], readId: [], restoreContent: []}, all: function () {
436
+ rspkr.log("[rspkr.HL.Restore.all]");
437
+ var b = rspkr.HL.Restore.Storage, a = [], c = null, d = /sync_(word|sent)/gi;
438
+ if (!rspkr.cfg.item("general.premarkup")) {
439
+ rspkr.c.dispatchEvent("onBeforeContentChange", window);
440
+ if (!b.readId.length && !b.restoreContent.length && !b.readClass.length)rspkr.log("No stored content exists!", 2); else {
441
+ c = $rs.flatten ? $rs.flatten(b.readClass) : b.readClass;
442
+ a = $rs.flatten ? $rs.flatten(b.readId) :
443
+ b.readId;
444
+ c = c.length ? ("." + c.join(",.")).split(",") : [];
445
+ c = a.length ? c.concat(("#" + a.join(",#")).split(",")) : c;
446
+ a = $rs.get(c.join(","));
447
+ $rs.isArray(a) || (a = [a]);
448
+ for (var e = 0; c = a[e]; e++)!0 === d.test(c.innerHTML) && (rspkr.HL.Preserve.moveToShelter(c), c.innerHTML = b.restoreContent[e], rspkr.HL.Preserve.restoreFromShelter(c))
449
+ }
450
+ rspkr.c.dispatchEvent("onAfterContentChange", window)
451
+ }
452
+ b.readId.length = 0;
453
+ b.readClass.length = 0
454
+ }, checkContent: function () {
455
+ rspkr.log("[rspkr.hl.Restore.checkContent]", 1);
456
+ !1 === this.hasMarkup() && (rspkr.hl.State.CURRENT ==
457
+ rspkr.hl.State.STOPPED && rspkr.HL.Type.CURRENT == rspkr.HL.Type.SERVER_MARKUP) && (this.clearRestoreContent(), this.setRestoreContent(), rspkr.pl.releaseAdapter(), rspkr.hl.State.setState(rspkr.hl.State.RELOAD))
458
+ }, hasMarkup: function () {
459
+ var b = rspkr.HL.Restore.Storage, a = [], c = null, d = /sync_(word|sent)/gi, c = $rs.flatten ? $rs.flatten(b.readClass) : b.readClass, a = $rs.flatten ? $rs.flatten(b.readId) : b.readId, c = c.length ? ("." + c.join(",.")).split(",") : [], c = a.length ? c.concat(("#" + a.join(",#")).split(",")) : c, a = $rs.get(c.join(","));
460
+ $rs.isArray(a) || (a = [a]);
461
+ if (a.length && b.restoreContent.length)for (b = 0; c = a[b]; b++)if (d.test(c.innerHTML))return!0;
462
+ return!1
463
+ }, clearRestoreContent: function () {
464
+ rspkr.log("[rspkr.HL.Restore.clearRestoreContent] Called!")
465
+ }, setRestoreContent: function () {
466
+ rspkr.log("[rspkr.HL.Restore.setRestoreContent] Called!");
467
+ if ("Explorer" === rs.c.data.browser.name && 9 >= rs.c.data.browser.version)for (var b = document.body.getElementsByTagName("style"), a = 0, c; c = b[a]; a++) {
468
+ c.parentNode.removeChild(c);
469
+ document.getElementsByTagName("head")[0].appendChild(c);
470
+ var d = c.innerHTML;
471
+ if (-1 != d.indexOf("@import")) {
472
+ for (var e = d.split("\n"), l, d = 0, f; f = e[d]; d++)if ("@import" === f.substring(0, 7)) {
473
+ d = f.replace(/;/g, "").replace("@import ", "").replace("url(", "").replace(")", "").replace(/\"/g, "").replace(/\'/g, "").split(" ");
474
+ for (e = 0; e < d.length; e++) {
475
+ var h = d[e].replace(/ /g, "");
476
+ if (h) {
477
+ l = h;
478
+ break
479
+ }
480
+ }
481
+ break
482
+ }
483
+ c = c.sheet ? c.sheet : c.styleSheet;
484
+ c.insertRule ? c.insertRule(f, 0) : c.addImport && c.addImport(l)
485
+ }
486
+ }
487
+ b = rspkr.HL.Restore.Storage;
488
+ f = [];
489
+ a = /sync_(word|sent|user)/gi;
490
+ l = b.restoreContent;
491
+ 0 === b.readClass.length &&
492
+ 0 === b.readId.length && rspkr.HL.Restore.getReadData();
493
+ if (0 == b.readClass.length && 0 == b.readId.length)rspkr.log("ERR: Could not set restore content or find the read area data", 3); else {
494
+ d = $rs.flatten ? $rs.flatten(b.readClass) : b.readClass;
495
+ c = $rs.flatten ? $rs.flatten(b.readId) : b.readId;
496
+ d = d.length ? ("." + d.join(",.")).split(",") : [];
497
+ d = c.length ? d.concat(("#" + c.join(",#")).split(",")) : d;
498
+ f = $rs.get(d.join(","));
499
+ $rs.isArray(f) || (f = [f]);
500
+ b.restoreContent = [];
501
+ for (d = 0; c = f[d]; d++)!1 === a.test(c.innerHTML) ? b.restoreContent.push(c.innerHTML) :
502
+ 0 < l.length && l[d] ? b.restoreContent.push(l[d]) : b.restoreContent.push(c.innerHTML)
503
+ }
504
+ }, getReadData: function () {
505
+ rspkr.log("[rspkr.HL.Restore.getReadData]");
506
+ var b = rspkr.HL.Restore.Storage, a;
507
+ a = rspkr.ui.getActivePlayer() ? $rs.findIn(rspkr.ui.getActivePlayer().getContainer(), "a") : $rs.findIn($rs.get("." + rs.ui.rsbtnClass), "a");
508
+ $rs.isArray(a) || (a = [a]);
509
+ for (var c = 0, d = a.length; c < d; c++) {
510
+ var e = a[c].getAttribute("href").match(/readspeaker.?.com\/cgi-bin\/.*rsent/gi);
511
+ rspkr.cfg.item("general.servercall") && (e = e ? e : -1 < a[c].getAttribute("href").indexOf(rspkr.cfg.item("general.servercall")));
512
+ if (a[c].getAttribute("href") && -1 !== (a[c].getAttribute("href").indexOf(rspkr.cfg.item("general.domain") + "/cgi-bin/" + rspkr.cfg.item("general.rsent")) || e) && "rsSaveBtn" !== a[c].id && "rs_selimg" !== a[c].id)-1 !== a[c].getAttribute("href").search(/readclass=/) && (e = a[c].getAttribute("href").match(/readclass=[^&]+/gi)[0].replace("readclass=", ""), e = e.split(","), rspkr.HL.Restore.Storage.readClass.push(e)), -1 !== a[c].getAttribute("href").search(/readid=/) && (e = a[c].getAttribute("href").match(/readid=[^&]+/gi)[0].replace("readid=",
513
+ ""), e = e.split(","), rspkr.HL.Restore.Storage.readId.push(e))
514
+ }
515
+ 0 === b.readClass.length && 0 === b.readId.length && (rspkr.c.data.params.hasOwnProperty("readid") ? b.readId.push([rspkr.c.data.params.readid]) : rspkr.c.data.params.hasOwnProperty("readclass") && b.readClass.push([rspkr.c.data.params.readclass]))
516
+ }}, Scroll: {currentSpan: null, timer: null, useScroll: !1, userScrollTimer: null, stopped: !0, getScrollY: function () {
517
+ var a = 0;
518
+ "number" == typeof document.pageYOffset ? a = document.pageYOffset : document.documentElement && document.documentElement.scrollTop &&
519
+ 0 < document.documentElement.scrollTop ? a = document.documentElement.scrollTop : document.body && document.body.scrollTop && (a = document.body.scrollTop);
520
+ return a
521
+ }, getWindowHeight: function () {
522
+ var a = 0;
523
+ "number" == typeof window.innerHeight ? a = window.innerHeight : document.documentElement && document.documentElement.clientHeight && 0 < document.documentElement.clientHeight ? a = document.documentElement.clientHeight : document.body && document.body.clientHeight && (a = document.body.clientHeight);
524
+ return a + 30
525
+ }, userScroll: function () {
526
+ rspkr.HL.Scroll.timer &&
527
+ (clearTimeout(rspkr.HL.Scroll.timer), rspkr.HL.Scroll.timer = null);
528
+ rspkr.HL.Scroll.userScrollTimer && clearTimeout(rspkr.HL.Scroll.userScrollTimer);
529
+ rspkr.HL.Scroll.userScrollTimer = setTimeout(function () {
530
+ rspkr.HL.Scroll.userScrollTimer = null
531
+ }, 5E3)
532
+ }, stopTimer: function () {
533
+ rspkr.log("[rspkr.Hl.Scroll.stopTimer] Called!");
534
+ rspkr.HL.Scroll.timer && (clearTimeout(rspkr.HL.Scroll.timer), rspkr.HL.Scroll.timer = null);
535
+ rspkr.HL.Scroll.stopped = !0
536
+ }, initScroll: function () {
537
+ "scrollon" == rspkr.Common.Settings.get("hlscroll") ? (rspkr.log("[rspkr.HL.Sroll.initScroll] Scroll initiated!"),
538
+ rspkr.HL.Scroll.useScroll = !0, rspkr.evt("onUIClosePlayer", rspkr.HL.Scroll.stopTimer), rspkr.evt("onUIStop", rspkr.HL.Scroll.stopTimer), rspkr.evt("onUIPause", rspkr.HL.Scroll.stopTimer), rspkr.evt("onUISliderMove", rspkr.HL.Scroll.userScroll), rspkr.evt("onFocusIn", rspkr.HL.Scroll.userScroll), rspkr.evt("onFocusOut", rspkr.HL.Scroll.userScroll), document.addEventListener ? document.addEventListener("scroll", function () {
539
+ setTimeout(function () {
540
+ rspkr.HL.Scroll.userScroll()
541
+ }, 0)
542
+ }, !1) : document.attachEvent ? document.attachEvent("onscroll",
543
+ rspkr.HL.Scroll.userScroll) : document.onscroll = rspkr.HL.Scroll.userScroll) : this.useScroll = !1
544
+ }, execScroll: function (a) {
545
+ this.useScroll && (this.currentSpan = a, !0 === this.stopped && (this.stopped = !1), this.timer || (rspkr.log("[rspkr.hl.Scroll] execScroll"), this.timer = setTimeout(function () {
546
+ rspkr.HL.Scroll.timer = null;
547
+ rspkr.HL.Scroll.triggerScroll(rspkr.HL.Scroll.currentSpan)
548
+ }, 500)))
549
+ }, triggerScroll: function (a) {
550
+ rspkr.log("[rspkr.HL.Scroll.triggerScroll] timer: " + rspkr.hl.Scroll.userScrollTimer + ", stopped: " + rspkr.HL.Scroll.stopped);
551
+ !rspkr.HL.Scroll.userScrollTimer && !1 === rspkr.HL.Scroll.stopped && rspkr.u.scroll.scrollToElm(a)
552
+ }}, State: {CURRENT: 1, READY: 1, STOPPED: 2, PLAYING: 3, RELOAD: 4, setState: function (a) {
553
+ this.CURRENT = a;
554
+ rspkr.log("[rspkr.hl.html5.States.setState] Changing state from " + this.CURRENT + " to " + a, 1)
555
+ }}, sync: {init: function () {
556
+ rspkr.c.dispatchEvent("onBeforeSyncInit", window);
557
+ e.hlChanged = !1;
558
+ if (0 < rspkr.Common.data.selectedText.length || 0 < rspkr.Common.data.selectedHTML.length)rspkr.log("[rspkr.HL._sync.init] client markup"), rspkr.HL.Type.CURRENT =
559
+ rspkr.HL.Type.CLIENT_MARKUP, a.firstRun = 1, "explorer" == c ? document.selection.empty() : a.preProcess.identifyElementsReplacementNode(document.body); else if (rspkr.log("[rspkr.HL._sync.init] server markup"), rspkr.HL.Type.CURRENT = rspkr.HL.Type.SERVER_MARKUP, "none" != rspkr.Common.data.sync) {
560
+ var b = [], d = [], b = [];
561
+ rspkr.c.data.params.hasOwnProperty("readid") && rspkr.c.data.params.readid.length && (b = b.concat(("#" + rspkr.c.data.params.readid.split(",").join(",#")).split(",")));
562
+ rspkr.c.data.params.hasOwnProperty("readclass") &&
563
+ rspkr.c.data.params.readclass.length && (b = b.concat(("." + rspkr.c.data.params.readclass.split(",").join(",.")).split(",")));
564
+ b = $rs.get(b.join(","));
565
+ $rs.isArray(b) || (b = [b]);
566
+ var m;
567
+ if ("flash" == rspkr.PlayerAPI.adapter) {
568
+ m = rspkr.HL.markedUpHTML.join("").split("<\!--RSPEAK_STOP--\>");
569
+ for (var k = 0; m[k]; k++);
570
+ } else m = rspkr.HL.markedUpHTML;
571
+ for (var k = 0, g; g = b[k]; k++)g = g.nodeName && "TABLE" == g.nodeName ? document.createElement("TABLE") : document.createElement("DIV"), g.innerHTML = m[k], d.push(g);
572
+ rspkr.log("[rspkr.HL.sync.init] readElements length: " +
573
+ b.length);
574
+ if (!rspkr.cfg.item("general.premarkup")) {
575
+ rspkr.c.dispatchEvent("onBeforeContentChange", window);
576
+ for (k = 0; k < b.length; k++)rspkr.HL.Preserve.moveToShelter(b[k]), b[k].innerHTML = d[k].innerHTML, rspkr.HL.Preserve.restoreFromShelter(b[k]);
577
+ rspkr.c.dispatchEvent("onAfterContentChange", window);
578
+ rspkr.HL.Preserve.clearShelter()
579
+ }
580
+ }
581
+ rspkr.HL.markedUpHTML.length = 0;
582
+ rspkr.c.post.removeIframe();
583
+ rspkr.c.dispatchEvent("onAfterSyncInit", window)
584
+ }, lightCleanUp: function () {
585
+ rspkr.HL.customHL && rspkr.HL.customHL.active() &&
586
+ rspkr.HL.customHL.cleanUp();
587
+ rspkr.log("[rspkr.HL._sync.lightCleanUp] Called! " + rspkr.HL.Type.CURRENT);
588
+ rspkr.HL.Type.CURRENT == rspkr.HL.Type.CLIENT_MARKUP && !0 === e.hlChanged ? a.postProcess.settingsCleanUp() : rspkr.HL.Type.CURRENT == rspkr.HL.Type.CLIENT_MARKUP && !1 === e.hlChanged || 0 < rspkr.Common.data.selectedText.length ? a.postProcess.lightCleanUp() : rspkr.HL.Type.CURRENT == rspkr.HL.Type.SERVER_MARKUP && d.postProcess.lightCleanUp()
589
+ }, fullCleanUp: function () {
590
+ rspkr.log("[rspkr.HL._sync.fullCleanUp] Called!");
591
+ rspkr.HL.customHL &&
592
+ rspkr.HL.customHL.active() && rspkr.HL.customHL.cleanUp();
593
+ rspkr.HL.Type.CURRENT == rspkr.HL.Type.CLIENT_MARKUP && a.postProcess.fullCleanUp();
594
+ d.postProcess.fullCleanUp()
595
+ }, setId: function () {
596
+ rspkr.log("[rspkr.HL._sync.setId] Called!")
597
+ }, setClass: function () {
598
+ rspkr.log("[rspkr.HL._sync.setClass] Called!")
599
+ }, setContent: function (a) {
600
+ rspkr.log("[rspkr.HL._sync.setContent] Called!");
601
+ rspkr.HL.markedUpHTML.push(a)
602
+ }, execute: function (a, c) {
603
+ var d = rspkr.Common.Settings;
604
+ if (!("none" === d.get("hl") || "hloff" === d.get("hltoggle"))) {
605
+ if (rspkr.HL.Type.CURRENT ==
606
+ rspkr.HL.Type.SERVER_MARKUP) {
607
+ var e = $rs.hasClass($rs.get("#sync" + c), "sync_sent") ? "sent" : "word";
608
+ if ("sent" === d.get("hl") && "word" === e || "word" === d.get("hl") && "sent" === e)return
609
+ }
610
+ rspkr.c.dispatchEvent("onBeforeSync", window, [a, c]);
611
+ rspkr.HL.Type.CURRENT == rspkr.HL.Type.CLIENT_MARKUP ? (d = rspkr.cfg.item("general.selectionEngine")) && ("new" === d || "newcontent" === d) ? rspkr.HL.clientMarkup.syncNew(a, c) : rspkr.HL.clientMarkup.sync(a, c) : rspkr.HL.serverMarkup.sync(a, c);
612
+ rspkr.c.dispatchEvent("onAfterSync", window, [a, c])
613
+ }
614
+ }},
615
+ settings: e, Type: {CURRENT: 0, DEFAULT: 0, SERVER_MARKUP: 1, CLIENT_MARKUP: 2}}
616
+ }();
617
+ rspkr.HL.engine || (rspkr.HL.engine = {});
618
+ rspkr.HL.engine.explorer = function () {
619
+ return{clientExtension: {firstRun: 0, previousWord: {}, previousSent: {}, selectionRange: null, selectionHTML: null, selectedWordsRange: [], wordsRangeClasses: [], originalParentContent: "", originalParent: null, preProcess: {bookMarkIndex: 1, endNode: null, endOffset: null, excludednodes: "table tr select option textarea ul ol dl thead tbody tfoot colgroup script map optgroup style noscript".split(" "), firstRun: 0, inc: 0, numberOfSelections: 0, startNode: null, startOffset: null, init: function () {
620
+ this.numberOfSelections++;
621
+ var c;
622
+ c = "new" === rspkr.cfg.item("general.selectionEngine") || "newcontent" === rspkr.cfg.item("general.selectionEngine") ? this.buildMarkupNew(rspkr.Common.data.selectedRange) : this.buildMarkup(rspkr.Common.data.selectedRange);
623
+ c.replace(/ +/g, " ");
624
+ rspkr.Common.data.selectedHTML = c;
625
+ rspkr.hl.clientMarkup.originalParent = rspkr.c.data.selectedRange.parentElement();
626
+ rspkr.hl.clientMarkup.originalParentContent = rspkr.c.data.selectedRange.parentElement().innerHTML
627
+ }, buildMarkup: function (c) {
628
+ for (var a = rspkr.c.data.getParam("lang"),
629
+ d = !1, e = null, b = rspkr.cfg.item("general.sentOnlyLang"), j = 0; j < b.length; j++)if (a && a.toLowerCase() === b[j]) {
630
+ d = !0;
631
+ break
632
+ }
633
+ var a = c.duplicate(), j = 0, b = "", m = 1, k = 0, g = 0, l = "", f = "", h = null;
634
+ c.moveStart("word", -1);
635
+ c.moveStart("word", 1);
636
+ a.isEqual(c) || c.moveStart("word", -1);
637
+ a = c.duplicate();
638
+ c.moveEnd("word", 1);
639
+ c.moveEnd("word", -1);
640
+ a.isEqual(c) || c.moveEnd("word", 1);
641
+ rspkr.HL.clientMarkup.selectionRange = c.duplicate();
642
+ var s = c.parentElement(), p = c.duplicate();
643
+ p.collapse(!1);
644
+ a = c.duplicate();
645
+ a.collapse();
646
+ for (d && (e = c.text.split(RegExp(decodeURIComponent("%e3%80%81") +
647
+ "|" + decodeURIComponent("%e3%80%82") + "|" + decodeURIComponent("%DB%94") + "|" + decodeURIComponent("%D8%8C") + "||\\s|\\n"))); c.inRange(a) && 0 != c.compareEndPoints("EndToEnd", a);) {
648
+ g++;
649
+ j++;
650
+ if (1E4 < j)break;
651
+ if (d)if (a = c.duplicate(), e[g - 1])a.findText(e[g - 1]); else break; else a.collapse(!1), a.expand("word", 1);
652
+ f = l = "";
653
+ p.collapse(!1);
654
+ var n = a.duplicate();
655
+ n.collapse(!1);
656
+ if (0 == p.compareEndPoints("StartToStart", n) && 0 == p.compareEndPoints("EndToEnd", n) && n.htmlText == p.htmlText) {
657
+ k++;
658
+ if (2 > k)a.move("character", 1); else if (4 > k)a.move("character",
659
+ 2); else if (6 > k)a.move("word", 1); else if (8 > k)a.move("word", 2); else if (10 > k)a.move("sentence", 1); else if (12 > k)a.move("sentence", 2); else break;
660
+ a.collapse(!1)
661
+ } else {
662
+ k = 0;
663
+ if (-1 === g)return a;
664
+ rspkr.HL.clientMarkup.selectedWordsRange[g] = a.duplicate();
665
+ p = a.text;
666
+ n = a.htmlText;
667
+ a.collapse(!1);
668
+ var v;
669
+ 1 === m ? (h = a.duplicate(), v = this.iterateParentTree(h.parentElement(), document.body, s, 0)) : v = this.iterateParentTree(a.parentElement(), h.parentElement(), s, 0);
670
+ for (var u = this.iterateParentTree(h.parentElement(), a.parentElement(),
671
+ s, 0), q = a.parentElement(), r = 0; r < v && 20 > r; r++)q.className.match("sync_") || (l = q.outerHTML.match("<[^>]*>")[0] + l), q = q.parentElement;
672
+ q = h.parentElement();
673
+ for (r = 0; r < u && 20 > r; r++)q.className.match("sync_") || (f += "</" + q.tagName + ">"), q = q.parentElement;
674
+ if (0 != v || 0 != u)h = a.duplicate();
675
+ 1 === m ? (b += l, m = 0) : b += f + l;
676
+ "" != n.replace("sync_sent_highlighted", "") && (b += "<" + rspkr.Common.data.browser.syncContainer + ' class="sync_user" id="sync' + g + '">' + p + "</" + rspkr.Common.data.browser.syncContainer + ">");
677
+ p = a.duplicate()
678
+ }
679
+ }
680
+ b += "<\!-- f --\>";
681
+ u = this.iterateParentTree(h.parentElement(), document.body, s, 0);
682
+ q = h.parentElement();
683
+ for (r = 0; r < u; r++)q.className.match("sync_") || (b += "</" + q.tagName + ">"), q = q.parentElement;
684
+ a.collapse();
685
+ return b
686
+ }, buildMarkupNew: function (c) {
687
+ for (var a = rspkr.c.data.getParam("lang"), d = !1, e = rspkr.cfg.item("general.sentOnlyLang"), b = 0; b < e.length; b++)if (a && a.toLowerCase() === e[b]) {
688
+ d = !0;
689
+ break
690
+ }
691
+ var a = c.duplicate(), e = "", j = 1, m = 0, k = 0, g = "", l = "", f = "", h = null, b = 0;
692
+ rspkr.HL.clientMarkup.selectionRange = c.duplicate();
693
+ var s = c.parentElement(),
694
+ p = c.duplicate(), g = c.duplicate();
695
+ p.collapse(!1);
696
+ a.collapse();
697
+ var n = [], l = g.duplicate(), f = g.duplicate();
698
+ g.moveStart("sentence", -1);
699
+ g.moveStart("sentence", 1);
700
+ l.isEqual(g) || g.moveStart("sentence", -1);
701
+ l = g.duplicate();
702
+ g.moveEnd("sentence", 1);
703
+ g.moveEnd("sentence", -1);
704
+ l.isEqual(g) || g.moveEnd("sentence", 1);
705
+ l = g.duplicate();
706
+ f.collapse(!0);
707
+ for (g.collapse(!0); l.inRange(g) && 0 != l.compareEndPoints("EndToEnd", g);) {
708
+ f.expand("sentence", 1);
709
+ if (!0 === f.isEqual(g) || 0 === f.compareEndPoints("EndToEnd", g))break;
710
+ g.expand("sentence",
711
+ 1);
712
+ n.push(f.duplicate())
713
+ }
714
+ for (; !1 === c.inRange(n[0]) && 0 != c.compareEndPoints("StartToStart", n[0]);)n[0].moveStart("word", 1);
715
+ for (; !1 === c.inRange(n[n.length - 1]) && 0 != c.compareEndPoints("EndToEnd", n[n.length - 1]);)n[n.length - 1].moveEnd("word", -1);
716
+ for (var v = 0; v < n.length; v++) {
717
+ for (f = ""; n[v].inRange(a) && 0 != n[v].compareEndPoints("EndToEnd", a);) {
718
+ k++;
719
+ b++;
720
+ if (1E4 < b)break;
721
+ d ? (a = c.duplicate(), a.findText(null[k - 1])) : (a.collapse(!1), a.expand("word", 1));
722
+ l = g = "";
723
+ p.collapse(!1);
724
+ var u = a.duplicate();
725
+ u.collapse(!1);
726
+ if (0 == p.compareEndPoints("StartToStart",
727
+ u) && 0 == p.compareEndPoints("EndToEnd", u) && u.htmlText == p.htmlText) {
728
+ m++;
729
+ if (2 > m)a.move("character", 1); else if (4 > m)a.move("character", 2); else if (6 > m)a.move("word", 1); else if (8 > m)a.move("word", 2); else if (10 > m)a.move("sentence", 1); else if (12 > m)a.move("sentence", 2); else break;
730
+ a.collapse(!1)
731
+ } else {
732
+ m = 0;
733
+ if (-1 === k)return a;
734
+ rspkr.HL.clientMarkup.selectedWordsRange[k] = a.duplicate();
735
+ rspkr.HL.clientMarkup.wordsRangeClasses[k] = "word";
736
+ p = a.text;
737
+ u = a.htmlText;
738
+ a.collapse(!1);
739
+ var q;
740
+ 1 === j ? (h = a.duplicate(), q = this.iterateParentTree(h.parentElement(),
741
+ document.body, s, 0)) : q = this.iterateParentTree(a.parentElement(), h.parentElement(), s, 0);
742
+ for (var r = this.iterateParentTree(h.parentElement(), a.parentElement(), s, 0), t = a.parentElement(), w = 0; w < q && 20 > w; w++)t.className.match("sync_") || (g = t.outerHTML.match("<[^>]*>")[0] + g), t = t.parentElement;
743
+ t = h.parentElement();
744
+ for (w = 0; w < r && 20 > w; w++)t.className.match("sync_") || (l += "</" + t.tagName + ">"), t = t.parentElement;
745
+ if (0 != q || 0 != r)h = a.duplicate();
746
+ 1 === j ? (f += g, j = 0) : f += l + g;
747
+ "" != u.replace("sync_sent_highlighted", "") && (f += "<" + rspkr.Common.data.browser.syncContainer +
748
+ ' class="sync_user sync_word" id="sync' + k + '">' + p + "</" + rspkr.Common.data.browser.syncContainer + ">");
749
+ p = a.duplicate()
750
+ }
751
+ }
752
+ k++;
753
+ rspkr.HL.clientMarkup.selectedWordsRange[k] = n[v];
754
+ rspkr.HL.clientMarkup.wordsRangeClasses[k] = "sent";
755
+ e += "<" + rspkr.Common.data.browser.syncContainer + ' class="sync_user sync_sent" id="sync' + k + '">';
756
+ e += f;
757
+ e += "</" + rspkr.Common.data.browser.syncContainer + ">\n"
758
+ }
759
+ r = this.iterateParentTree(h.parentElement(), document.body, s, 0);
760
+ t = h.parentElement();
761
+ for (w = 0; w < r; w++)t.className.match("sync_") || (e +=
762
+ "</" + t.tagName + ">"), t = t.parentElement;
763
+ a.collapse();
764
+ return e
765
+ }, iterateParentTree: function (c, a, d, e) {
766
+ for (var b = a; null !== b;) {
767
+ if (c == d || c == b)return e;
768
+ b = b.parentElement
769
+ }
770
+ e++;
771
+ return this.iterateParentTree(c.parentElement, a, d, e)
772
+ }}, postProcess: {lightCleanUp: function () {
773
+ rspkr.log("[clientMarkup.postProcess.lightCleanUp] called!");
774
+ for (var c = document.getElementsByTagName(rspkr.Common.data.browser.syncContainer), a = c.length - 1; -1 < a; a--)c[a].className = c[a].className.replace("sync_sent_highlighted", "sync_sent"), c[a].className =
775
+ c[a].className.replace("sync_word_highlighted", "sync_word"), -1 === c[a].className.toLowerCase().indexOf("sync_user") && (c[a].removeAttribute("id"), c[a].removeAttribute("color"));
776
+ var c = rspkr.HL.clientMarkup.previousWord.range, d = rspkr.HL.clientMarkup.previousWord.forecolor, e = rspkr.HL.clientMarkup.previousWord.backcolor, b = rspkr.HL.clientMarkup.previousSent.range, j = rspkr.HL.clientMarkup.previousSent.forecolor, m = rspkr.HL.clientMarkup.previousSent.backcolor;
777
+ if (0 < c.length)for (var a = 0, k = c.length; a < k; a++)null !==
778
+ e[a] && (c[a].execCommand("backcolor", 0, e[a]), null !== d[a] && c[a] && c[a].execCommand("forecolor", 0, d[a]));
779
+ if (0 < b.length) {
780
+ a = 0;
781
+ for (k = b.length; a < k; a++)null !== m[a] && (b[a].execCommand("backcolor", 0, m[a]), null !== j[a] && b[a] && b[a].execCommand("forecolor", 0, j[a]))
782
+ }
783
+ rspkr.hl.clientMarkup.lastWord = null
784
+ }, settingsCleanUp: function () {
785
+ this.lightCleanUp()
786
+ }, fullCleanUp: function () {
787
+ rspkr.log("[ClientMarkup.postProcess.fullCleanUp] called!");
788
+ if (null === rspkr.hl.clientMarkup.originalParent)this.lightCleanUp(); else {
789
+ var c = rspkr.hl.clientMarkup.originalParent;
790
+ rspkr.hl.Preserve.moveToShelter(c);
791
+ c.innerHTML = rspkr.hl.clientMarkup.originalParentContent;
792
+ rspkr.hl.Preserve.restoreFromShelter(c)
793
+ }
794
+ rspkr.hl.clientMarkup.selectedWordsRange = [];
795
+ rspkr.hl.clientMarkup.selectionRange = null;
796
+ rspkr.hl.clientMarkup.originalParentContent = "";
797
+ rspkr.hl.clientMarkup.originalParent = null;
798
+ rspkr.hl.clientMarkup.lastWord = null
799
+ }}, sync: function (c, a) {
800
+ var d = !1, e;
801
+ 0 === (c & 2) && (d = 0 != (c & 1) ? !0 : !1);
802
+ 1 === this.firstRun && (this.previousWord.range = [], this.previousWord.backcolor = [], this.previousWord.forecolor =
803
+ [], this.previousSent.range = [], this.previousSent.backcolor = [], this.previousSent.forecolor = []);
804
+ e = this.selectedWordsRange[a];
805
+ if (1 === this.firstRun) {
806
+ this.firstRun = 0;
807
+ if (0 < this.previousSent.range.length) {
808
+ for (var b = 0, j = this.previousSent.range.length; b < j; b++)this.previousSent.range[b].execCommand("backcolor", 0, this.previousSent.backcolor[b]), null !== this.previousSent.forecolor[b] && this.previousSent.range[b].execCommand("forecolor", 0, this.previousSent.forecolor[b]);
809
+ this.previousSent.range = [];
810
+ this.previousSent.backcolor =
811
+ [];
812
+ this.previousSent.forecolor = []
813
+ }
814
+ rspkr.HL.clientMarkup.selectionRange && "wordsent" === rspkr.st.get("hl") && (this.previousSent.range.push(rspkr.HL.clientMarkup.selectionRange), this.previousSent.backcolor.push(rspkr.HL.clientMarkup.selectionRange.queryCommandValue("backcolor")), this.previousSent.forecolor.push(rspkr.HL.clientMarkup.selectionRange.queryCommandValue("forecolor")), this.selectionRange.execCommand("backcolor", 0, rspkr.Common.Settings.get("hlsent")), this.selectionRange.execCommand("forecolor",
815
+ 0, rspkr.Common.Settings.get("hltext")))
816
+ }
817
+ if (!d && 0 < this.previousWord.range.length) {
818
+ for (b = 0; b < this.previousWord.range.length; b++)"word" == rspkr.st.get("hl") || "sent" == rspkr.st.get("hl") ? this.previousWord.range[b].execCommand("backcolor", 0, this.previousWord.backcolor[b]) : this.previousWord.range[b].execCommand("backcolor", 0, rspkr.Common.Settings.get("hlsent")), this.previousWord.range[b].execCommand("forecolor", 0, this.previousWord.forecolor[b]);
819
+ this.previousWord.range = [];
820
+ this.previousWord.backcolor = [];
821
+ this.previousWord.forecolor =
822
+ []
823
+ }
824
+ this.previousWord.backcolor.push(e.queryCommandValue("backcolor"));
825
+ this.previousWord.forecolor.push(e.queryCommandValue("forecolor"));
826
+ this.previousWord.range.push(e);
827
+ "sent" == rspkr.st.get("hl") ? (rspkr.HL.customHL && rspkr.HL.customHL.active() && rspkr.HL.customHL.sentHL(e, c), e.execCommand("backcolor", 0, rspkr.Common.Settings.get("hlsent"))) : (rspkr.HL.customHL && rspkr.HL.customHL.active() && rspkr.HL.customHL.wordHL(e, c), e.execCommand("backcolor", 0, rspkr.Common.Settings.get("hlword")));
828
+ this.lastWord = e;
829
+ rspkr.HL.customHL &&
830
+ rspkr.HL.customHL.active();
831
+ e.execCommand("forecolor", 0, rspkr.Common.Settings.get("hltext"))
832
+ }, syncNew: function (c, a) {
833
+ var d = !1;
834
+ 0 === (c & 2) && (d = 0 != (c & 1) ? !0 : !1);
835
+ 1 === this.firstRun && (this.previousWord.range = [], this.previousWord.backcolor = [], this.previousWord.forecolor = [], this.previousSent.range = [], this.previousSent.backcolor = [], this.previousSent.forecolor = [], this.firstRun = 0);
836
+ var e = this.selectedWordsRange[a];
837
+ if (e && "word" === this.wordsRangeClasses[a] && ("word" == rspkr.st.get("hl") || "wordsent" == rspkr.st.get("hl"))) {
838
+ if (0 <
839
+ this.previousWord.range.length && !d) {
840
+ for (d = 0; d < this.previousWord.range.length; d++)"word" == rspkr.st.get("hl") || "sent" == rspkr.st.get("hl") ? this.previousWord.range[d].execCommand("backcolor", 0, this.previousWord.backcolor[d]) : this.previousWord.range[d].execCommand("backcolor", 0, rspkr.Common.Settings.get("hlsent")), this.previousWord.range[d].execCommand("forecolor", 0, this.previousWord.forecolor[d]);
841
+ this.previousWord.range = [];
842
+ this.previousWord.backcolor = [];
843
+ this.previousWord.forecolor = []
844
+ }
845
+ this.previousWord.backcolor.push(e.queryCommandValue("backcolor"));
846
+ this.previousWord.forecolor.push(e.queryCommandValue("forecolor"));
847
+ this.previousWord.range.push(e);
848
+ e.execCommand("backcolor", 0, rspkr.Common.Settings.get("hlword"));
849
+ this.lastWord = e;
850
+ e.execCommand("forecolor", 0, rspkr.Common.Settings.get("hltext"))
851
+ } else if (e && "sent" === this.wordsRangeClasses[a] && ("sent" == rspkr.st.get("hl") || "wordsent" == rspkr.st.get("hl"))) {
852
+ if (0 < this.previousWord.range.length) {
853
+ for (d = 0; d < this.previousWord.range.length; d++)this.previousWord.range[d].execCommand("backcolor", 0, this.previousWord.backcolor[d]),
854
+ this.previousWord.range[d].execCommand("forecolor", 0, this.previousWord.forecolor[d]);
855
+ this.previousWord.range = [];
856
+ this.previousWord.backcolor = [];
857
+ this.previousWord.forecolor = []
858
+ }
859
+ if (0 < this.previousSent.range.length) {
860
+ for (d = 0; d < this.previousSent.range.length; d++)this.previousSent.range[d].execCommand("backcolor", 0, this.previousSent.backcolor[d]), this.previousSent.range[d].execCommand("forecolor", 0, this.previousSent.forecolor[d]);
861
+ this.previousSent.range = [];
862
+ this.previousSent.backcolor = [];
863
+ this.previousSent.forecolor =
864
+ []
865
+ }
866
+ this.previousSent.backcolor.push(e.queryCommandValue("backcolor"));
867
+ this.previousSent.forecolor.push(e.queryCommandValue("forecolor"));
868
+ this.previousSent.range.push(e);
869
+ e.execCommand("backcolor", 0, rspkr.Common.Settings.get("hlsent"));
870
+ e.execCommand("forecolor", 0, rspkr.Common.Settings.get("hltext"))
871
+ }
872
+ }}}
873
+ }();
874
+ rspkr.HL.engine.gecko = function () {
875
+ return{clientExtension: {preProcess: {bookMarkIndex: 1, endNode: null, endOffset: null, excludednodes: "table tr select option textarea ul ol dl thead tbody tfoot colgroup script map optgroup style noscript".split(" "), firstRun: 0, inc: 0, numberOfSelections: 0, startNode: null, startOffset: null, init: function () {
876
+ this.numberOfSelections++;
877
+ var c = "", c = rspkr.Common.data.selectedRange;
878
+ this.startNode = c.startContainer;
879
+ this.endNode = c.endContainer;
880
+ this.startOffset = this.modifyOffsetStartOfWord(this.startNode,
881
+ c.startOffset);
882
+ this.endOffset = this.modifyOffsetEndOfWord(this.endNode, c.endOffset);
883
+ c = this.buildMarkup(c.commonAncestorContainer);
884
+ c.replace(/ +/g, " ");
885
+ window.getSelection().removeAllRanges();
886
+ rspkr.Common.data.selectedHTML = c
887
+ }, buildMarkup: function (c) {
888
+ this.firstRun = 1;
889
+ var a = "", d = this.inc;
890
+ if (3 == c.nodeType)a += this.textMarkup(c); else {
891
+ var e, b = "";
892
+ if (c.hasChildNodes())for (e = 0; e < c.childNodes.length; e++) {
893
+ var j = c.childNodes.item(e);
894
+ j == this.startNode && (this.inc = 1);
895
+ c == this.startNode && e == this.startOffset && (this.inc =
896
+ 1);
897
+ 8 != j.nodeType && (b += this.buildMarkup(j));
898
+ if (c == this.endNode && e == this.endOffset) {
899
+ this.inc = 0;
900
+ break
901
+ }
902
+ if (j == this.endNode) {
903
+ this.inc = 0;
904
+ break
905
+ }
906
+ }
907
+ (d || this.inc) && (!c.className || c.className.replace("sync") === c.className && c.id.replace("sync") === c.id) ? (d = document.createElement("div"), d.appendChild(c.cloneNode(!0)), tempdivtag = d.innerHTML.match("<[^>]*>"), null !== tempdivtag && 0 < tempdivtag.length ? (a += tempdivtag[0], a = a + b + ("</" + c.nodeName + ">")) : a += b) : a += b;
908
+ if (c.hasChildNodes())for (e = 0; e < c.childNodes.length; e++) {
909
+ if (c ===
910
+ this.endNode && e === this.endOffset) {
911
+ this.inc = 0;
912
+ break
913
+ }
914
+ if (j === this.endNode) {
915
+ this.inc = 0;
916
+ break
917
+ }
918
+ }
919
+ }
920
+ return a
921
+ }, textMarkup: function (c) {
922
+ var a = !0, d = "", e, b = "", j = "", m = c.nodeValue;
923
+ c === this.startNode && -1 !== this.startOffset && c === this.endNode && -1 !== this.endOffset ? (b = c.nodeValue.substring(0, this.startOffset), m = c.nodeValue.substring(this.startOffset, this.endOffset), j = c.nodeValue.substring(this.endOffset), this.inc = 1) : c === this.startNode && -1 !== this.startOffset ? (b = c.nodeValue.substring(0, this.startOffset), m = c.nodeValue.substring(this.startOffset),
924
+ this.inc = 1) : c === this.endNode && -1 !== this.endOffset && (m = c.nodeValue.substring(0, this.endOffset), j = c.nodeValue.substring(this.endOffset), this.inc = 1);
925
+ if (!this.inc)return"";
926
+ for (e = 0; e < this.excludednodes.length; e++)if (c.parentNode && c.parentNode.nodeName.toLowerCase() === this.excludednodes[e]) {
927
+ a = !1;
928
+ d = this.htmlencode(m);
929
+ break
930
+ }
931
+ a && (d = (d = rspkr.cfg.item("general.selectionEngine")) && ("new" === d || "newcontent" === d) ? this.markupSentencesNew(this.htmlencode(m), null) : this.markupSentences(this.htmlencode(m), null));
932
+ c ===
933
+ this.endNode && -1 !== this.endOffset && (this.inc = 0);
934
+ if (rs.cfg.item("general.enableSkipAlways")) {
935
+ e = c;
936
+ for (var k = !1; e.parentNode;) {
937
+ if (/rs_skip_always/i.test(e.className)) {
938
+ k = !0;
939
+ break
940
+ }
941
+ e = e.parentNode
942
+ }
943
+ k && (d = '<span class="rs_skip_always">' + d + "</span>")
944
+ }
945
+ a && (null !== c.parentNode && "" !== m) && (a = this.createreplacementnode(b + d + j, getComputedStyle(c.parentNode, null)), c.parentNode.insertBefore(a, c), c.parentNode.removeChild(c));
946
+ return d
947
+ }, markupSentencesNew: function (c) {
948
+ c = this.splitString(c, [", ", ". ", "! ", "? ", decodeURIComponent("%e3%80%81"),
949
+ decodeURIComponent("%e3%80%82"), decodeURIComponent("%DB%94"), decodeURIComponent("%D8%8C")]);
950
+ if (!c)return"";
951
+ for (var a = "", d = "", e = !1, b = 0; b < c.length; b++)a += "<" + rspkr.Common.data.browser.syncContainer + ' class="sync_user sync_sent cj' + this.numberOfSelections + '" ', a += 'id="sync' + this.bookMarkIndex++ + '">', this.endsWithSpace(c[b]) ? (e = !0, d = c[b].slice(0, -1)) : d = c[b], a += this.markupWords(d), a += "</" + rspkr.Common.data.browser.syncContainer + ">", !0 === e && (a += " "), e = !1;
952
+ return a
953
+ }, markupSentences: function (c) {
954
+ c = this.splitString(c,
955
+ [", ", ". ", "! ", "? ", decodeURIComponent("%e3%80%81"), decodeURIComponent("%e3%80%82"), decodeURIComponent("%DB%94"), decodeURIComponent("%D8%8C")]);
956
+ if (!c)return"";
957
+ for (var a = "", d = "", e = !1, b = 0; b < c.length; b++)a += "<" + rspkr.Common.data.browser.syncContainer + ' class="ffsent' + this.numberOfSelections + " cj" + this.numberOfSelections + '" ', a += 'id="sync' + this.bookMarkIndex++ + '">', this.endsWithSpace(c[b]) ? (e = !0, d = c[b].slice(0, -1)) : d = c[b], a += this.markupWords(d), !0 === e && (a += " "), a += "</" + rspkr.Common.data.browser.syncContainer +
958
+ ">", e = !1;
959
+ return a
960
+ }, markupWords: function (c) {
961
+ c = this.splitString(c, " ");
962
+ if (!c)return"";
963
+ for (var a = "", d = "", e = !1, b = 0; b < c.length; b++)a += "<" + rspkr.Common.data.browser.syncContainer + ' class="sync_user sync_word ck' + this.numberOfSelections + '"', a += ' id="sync' + this.bookMarkIndex++ + '">', this.endsWithSpace(c[b]) ? (e = !0, d = c[b].slice(0, -1)) : d = c[b], a += d, a += "</" + rspkr.Common.data.browser.syncContainer + ">", !0 === e && (a += " "), e = !1;
964
+ return a
965
+ }, trim: function (c) {
966
+ return c.replace(/^\s+|\s+$/g, "")
967
+ }, htmlencode: function (c) {
968
+ var a =
969
+ document.createElement("div"), c = document.createTextNode(c);
970
+ a.appendChild(c);
971
+ return a.innerHTML
972
+ }, identifyElementsReplacementNode: function (c) {
973
+ c.tagName && (c.tagName.toLowerCase() == rspkr.Common.data.browser.syncContainer && c.id) && (rspkr.HL.clientMarkup.selectedWordsRange[c.id] = c);
974
+ if (c.hasChildNodes())for (var a = 0; a < c.childNodes.length; a++)this.identifyElementsReplacementNode(c.childNodes[a])
975
+ }, createreplacementnode: function (c) {
976
+ var a = document.createElement(rspkr.Common.data.browser.syncContainer);
977
+ a.innerHTML =
978
+ c;
979
+ a.setAttribute("class", "synctemp cl" + this.numberOfSelections);
980
+ return a
981
+ }, modifyOffsetStartOfWord: function (c, a) {
982
+ for (var d = [" ", ", ", ". ", "! ", "? ", decodeURIComponent("%e3%80%81"), decodeURIComponent("%e3%80%82"), decodeURIComponent("%DB%94"), decodeURIComponent("%D8%8C")]; c.nodeValue && 0 != a;) {
983
+ for (var e = 0; e < d.length; e++)if (breakstr = d[e], 0 == c.nodeValue.substring(a).indexOf(breakstr))return a;
984
+ a--
985
+ }
986
+ return a
987
+ }, modifyOffsetEndOfWord: function (c, a) {
988
+ for (var d = [" ", ", ", ". ", "! ", "? ", decodeURIComponent("%e3%80%81"),
989
+ decodeURIComponent("%e3%80%82"), decodeURIComponent("%DB%94"), decodeURIComponent("%D8%8C")]; c.nodeValue && a != c.nodeValue.length;) {
990
+ for (var e = 0; e < d.length; e++)if (breakstr = d[e], 0 == c.nodeValue.substring(a - 1).indexOf(breakstr))return a;
991
+ a++
992
+ }
993
+ return a
994
+ }, returnClassArraySubstring: function (c) {
995
+ var a = document.getElementsByTagName("*"), d = 0, e = [];
996
+ for (i = 0; i < a.length; i++)"undefined" != typeof a[i].className && a[i].className.replace(c, "") != a[i].className && (e[d] = a[i], d++);
997
+ return e
998
+ }, splitString: function (c, a) {
999
+ for (var d = [""],
1000
+ e = 0, b = 0; b < c.length; b++) {
1001
+ for (var j = 0; j < a.length; j++) {
1002
+ for (var m = a[j], k = !0, g = 0; g < m.length; g++)if (0 > c.length - (b + g) || m[m.length - g - 1] != c[b - g - 1]) {
1003
+ k = !1;
1004
+ break
1005
+ }
1006
+ k && (e++, d[e] = "")
1007
+ }
1008
+ d[e] += c[b]
1009
+ }
1010
+ return d
1011
+ }, endsWithSpace: function (c) {
1012
+ return-1 !== c.indexOf(" ", c.length - 1)
1013
+ }}, postProcess: {cleanUpSpans: function () {
1014
+ rspkr.log("[ClientMarkup.postProcess.cleanUpSpans] called!");
1015
+ var c = document.getElementsByTagName(rspkr.Common.data.browser.syncContainer), a;
1016
+ for (i = c.length - 1; -1 < i; i--)a = document.createDocumentFragment(), a.textContent =
1017
+ c[i].textContent, c[i].parentNode.replaceChild(a, c[i])
1018
+ }, lightCleanUp: function () {
1019
+ rspkr.log("[ClientMarkup.postProcess.lightCleanUp] called!!");
1020
+ var c = document.getElementsByTagName(rspkr.Common.data.browser.syncContainer);
1021
+ for (i = c.length - 1; -1 < i; i--)rspkr.HL.chunking.continueHref || (c[i].className = c[i].className.replace("sync_sent_highlighted", "sync_sent")), c[i].className = c[i].className.replace("sync_word_highlighted", "sync_word"), !rspkr.HL.chunking.continueHref && -1 === c[i].className.toLowerCase().indexOf("sync_user") &&
1022
+ c[i].removeAttribute("id")
1023
+ }, settingsCleanUp: function () {
1024
+ rspkr.log("[ClientMarkup.postProcess.settingsCleanUp] called!");
1025
+ var c = rspkr.HL.clientMarkup.previousWord.element, a = rspkr.HL.clientMarkup.previousWord.className, d = rspkr.HL.clientMarkup.previousSent.element, e = rspkr.HL.clientMarkup.previousSent.className;
1026
+ if (0 < c.length) {
1027
+ for (var b in c)c[b].className = a[b];
1028
+ rspkr.HL.clientMarkup.previousWord.element = [];
1029
+ rspkr.HL.clientMarkup.previousWord.className = []
1030
+ }
1031
+ if (0 < d.length) {
1032
+ for (b in d)d[b].className = e[b];
1033
+ rspkr.HL.clientMarkup.previousSent.element =
1034
+ [];
1035
+ rspkr.HL.clientMarkup.previousSent.className = []
1036
+ }
1037
+ }, fullCleanUp: function () {
1038
+ rspkr.log("[ClientMarkup.postProcess.fullCleanUp] called!");
1039
+ var c = rspkr.HL.clientMarkup.previousWord.element, a = rspkr.HL.clientMarkup.previousWord.className, d = rspkr.HL.clientMarkup.previousSent.element, e = rspkr.HL.clientMarkup.previousSent.className;
1040
+ if (0 < c.length) {
1041
+ for (var b in c)c[b].className = a[b];
1042
+ rspkr.HL.clientMarkup.previousWord.element = [];
1043
+ rspkr.HL.clientMarkup.previousWord.className = []
1044
+ }
1045
+ if (0 < d.length) {
1046
+ for (b in d)d[b].className =
1047
+ e[b];
1048
+ rspkr.HL.clientMarkup.previousSent.element = [];
1049
+ rspkr.HL.clientMarkup.previousSent.className = []
1050
+ }
1051
+ this.cleanUpSpans();
1052
+ rspkr.Common.data.selectedHTML = ""
1053
+ }}, sync: function (c, a) {
1054
+ var d = !1, e;
1055
+ 0 == (c & 2) && (d = 0 != (c & 1) ? !0 : !1);
1056
+ 1 == this.firstRun && (this.previousWord.element = [], this.previousWord.className = [], this.previousSent.element = [], this.previousSent.className = []);
1057
+ e = this.selectedWordsRange["sync" + a];
1058
+ if (e.className.replace("word", "") != e.className) {
1059
+ rspkr.log("inside");
1060
+ if (0 < this.previousWord.element.length && 0 < this.previousWord.className.length && !d) {
1061
+ for (d = 0; d < this.previousWord.element.length; d++)this.previousWord.element[d].className = this.previousWord.className[d];
1062
+ this.previousWord.element = [];
1063
+ this.previousWord.className = []
1064
+ }
1065
+ this.previousWord.element.push(e);
1066
+ this.previousWord.className.push(e.className);
1067
+ "sent" === rspkr.st.get("hl") ? e.className = e.className.replace("sync_sent", "sync_user sync_sent_highlighted") : (rspkr.HL.customHL && rspkr.HL.customHL.active() && rspkr.HL.customHL.wordHL(e, c), e.className = e.className.replace("sync_word", "sync_user sync_word_highlighted"))
1068
+ }
1069
+ e &&
1070
+ rspkr.HL.Scroll.execScroll(e);
1071
+ if (1 == this.firstRun) {
1072
+ this.firstRun = 0;
1073
+ if (0 < this.previousSent.element.length) {
1074
+ for (d = 0; d < this.previousSent.element.length; d++)this.previousSent.element[d].className = this.previousSent.className[d];
1075
+ this.previousSent.element = [];
1076
+ this.previousSent.className = []
1077
+ }
1078
+ if ("wordsent" == rspkr.st.get("hl")) {
1079
+ e = this.preProcess.returnClassArraySubstring("ffsent" + this.preProcess.numberOfSelections + " ");
1080
+ for (d = 0; d < e.length; d++)this.previousSent.element[d] = e[d], this.previousSent.className[d] = e[d].className,
1081
+ e[d].className = "ffsent" + this.preProcess.numberOfSelections + " sync_sent_highlighted"
1082
+ }
1083
+ }
1084
+ }, syncNew: function (c, a) {
1085
+ var d;
1086
+ 1 == this.firstRun && (this.previousWord.element = [], this.previousWord.className = [], this.previousSent.element = [], this.previousSent.className = [], this.firstRun = 0);
1087
+ d = document.getElementById("sync" + a);
1088
+ if (d.className.replace("word", "") != d.className && ("word" === rspkr.st.get("hl") || "wordsent" === rspkr.st.get("hl"))) {
1089
+ if (0 < this.previousWord.element.length && 0 < this.previousWord.className.length) {
1090
+ for (var e =
1091
+ 0; e < this.previousWord.element.length; e++)this.previousWord.element[e].className = this.previousWord.className[e];
1092
+ this.previousWord.element = [];
1093
+ this.previousWord.className = []
1094
+ }
1095
+ this.previousWord.element.push(d);
1096
+ this.previousWord.className.push(d.className);
1097
+ d.className = "sync_user sync_word_highlighted"
1098
+ } else if (d.className.replace("sent", "") != d.className && ("sent" === rspkr.st.get("hl") || "wordsent" === rspkr.st.get("hl"))) {
1099
+ if (0 < this.previousSent.element.length && 0 < this.previousSent.className.length) {
1100
+ for (e = 0; e <
1101
+ this.previousSent.element.length; e++)this.previousSent.element[e].className = this.previousSent.className[e];
1102
+ this.previousSent.element = [];
1103
+ this.previousSent.className = []
1104
+ }
1105
+ this.previousSent.element.push(d);
1106
+ this.previousSent.className.push(d.className);
1107
+ d.className = d.className.replace("sync_sent", "sync_user sync_sent_highlighted")
1108
+ }
1109
+ d && rspkr.HL.Scroll.execScroll(d)
1110
+ }}}
1111
+ }();