@clickview/exchange 0.43.0-rc.2 → 0.43.1-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (284) hide show
  1. package/dist/Actions-BtMRNMuv.cjs +1 -0
  2. package/dist/Actions-DfeKDy3k.js +178 -0
  3. package/dist/AddToLibraryView-BoCLtcWV.js +508 -0
  4. package/dist/AddToLibraryView-MpkcVgoR.cjs +1 -0
  5. package/dist/Badge-3MW5GacP.cjs +1 -0
  6. package/dist/Badge-Ddz0Il5v.js +326 -0
  7. package/dist/BadgeListContainer-CqwUuWKL.js +19 -0
  8. package/dist/BadgeListContainer-DLrBuDpU.cjs +1 -0
  9. package/dist/ButtonGroup-C-z2yWvb.cjs +1 -0
  10. package/dist/ButtonGroup-zaxEq7ZK.js +24 -0
  11. package/dist/Caret-Cpx0uvJ0.js +36 -0
  12. package/dist/Caret-Dgjy7YHO.cjs +1 -0
  13. package/dist/ChevronDownSvg-BI6xUNrZ.cjs +1 -0
  14. package/dist/ChevronDownSvg-BfijmId7.js +13 -0
  15. package/dist/ClassNameHelper-aJ0BDnVo.js +29 -0
  16. package/dist/ClassNameHelper-n4BHW-GR.cjs +1 -0
  17. package/dist/CloseSvg-2PKjla1T.js +13 -0
  18. package/dist/CloseSvg-B7rizkGp.cjs +1 -0
  19. package/dist/CurationStatus-BGjsO3l8.cjs +1 -0
  20. package/dist/CurationStatus-DZn3C9Qe.js +4 -0
  21. package/dist/DevErrorView-Bg1Ufy6-.js +79 -0
  22. package/dist/DevErrorView-CpXfV0V4.cjs +1 -0
  23. package/dist/DialogView-B5FEh3e8.cjs +1 -0
  24. package/dist/DialogView-RcNOylD7.js +22 -0
  25. package/dist/DownloadHelper-ChKHN-Le.cjs +1 -0
  26. package/dist/DownloadHelper-dL46n0Kq.js +32 -0
  27. package/dist/DownloadVideoView-CvDFi8HI.cjs +1 -0
  28. package/dist/DownloadVideoView-HSnwAYLp.js +32 -0
  29. package/dist/DragDropMoveWrapper-B_dy7ady.cjs +1 -0
  30. package/dist/DragDropMoveWrapper-TdzJqiqv.js +462 -0
  31. package/dist/ExchangeAddView-BRLjRe3p.js +63 -0
  32. package/dist/ExchangeAddView-CWfp5W52.cjs +1 -0
  33. package/dist/ExchangeFolderView-4ArEcQvn.js +159 -0
  34. package/dist/ExchangeFolderView-_ldS0uwf.cjs +1 -0
  35. package/dist/ExchangeMostRecentView-BMAosIXz.js +61 -0
  36. package/dist/ExchangeMostRecentView-s1iLfclz.cjs +1 -0
  37. package/dist/ExchangeNotFoundView-C_dtuc6J.cjs +1 -0
  38. package/dist/ExchangeNotFoundView-Cb-rmQH1.js +7 -0
  39. package/dist/ExchangePreviewView-hztBChIE.js +82 -0
  40. package/dist/ExchangePreviewView-kjDv-uqf.cjs +1 -0
  41. package/dist/ExchangeRequests-B3wRfv5Y.cjs +1 -0
  42. package/dist/ExchangeRequests-DV7BD3HZ.js +115 -0
  43. package/dist/ExchangeSearchBar-CNtU_swT.js +32 -0
  44. package/dist/ExchangeSearchBar-Ci1_Sc2S.cjs +1 -0
  45. package/dist/ExchangeSearchResultsView-CEueb9Li.js +1641 -0
  46. package/dist/ExchangeSearchResultsView-CGSIyjiV.cjs +2 -0
  47. package/dist/ExchangeSeriesView-BGBgwgMW.cjs +1 -0
  48. package/dist/ExchangeSeriesView-DMr_mCAH.js +143 -0
  49. package/dist/ExchangeSuggestEditView-B3P-nGFE.js +307 -0
  50. package/dist/ExchangeSuggestEditView-D1m5Z20N.cjs +1 -0
  51. package/dist/ExchangeTabs-CrA22PjN.js +46 -0
  52. package/dist/ExchangeTabs-KgrROs1d.cjs +1 -0
  53. package/dist/ExchangeUtils-BRDE3b9w.cjs +1 -0
  54. package/dist/ExchangeUtils-CCCrn5oQ.js +65 -0
  55. package/dist/ExchangeView-Cui4zZ4D.js +30 -0
  56. package/dist/ExchangeView-Dql8pHzi.cjs +1 -0
  57. package/dist/FormButtons-CDOsf9A-.cjs +1 -0
  58. package/dist/FormButtons-fQkvwYsy.js +20 -0
  59. package/dist/FormFeedback-5Dd3bMCl.js +7 -0
  60. package/dist/FormFeedback-BU7vSBqB.cjs +1 -0
  61. package/dist/FormField-Cb2l2GMO.cjs +5 -0
  62. package/dist/FormField-DYeERWxm.js +3353 -0
  63. package/dist/GiveFeedbackView-0tH6h1s3.js +5436 -0
  64. package/dist/GiveFeedbackView-DirGDc2a.cjs +7 -0
  65. package/dist/GroupSvg-BmwXO6yT.js +53 -0
  66. package/dist/GroupSvg-DVAq4iNX.cjs +1 -0
  67. package/dist/HardCoded-25AFj2sZ.js +51 -0
  68. package/dist/HardCoded-BbbeCQNt.cjs +1 -0
  69. package/dist/HttpErrorHandlers-CBhvfsvb.cjs +1 -0
  70. package/dist/HttpErrorHandlers-DKqNIMOg.js +76 -0
  71. package/dist/IconCircle-BVHFUBGt.cjs +1 -0
  72. package/dist/IconCircle-CxFLsbLY.js +26 -0
  73. package/dist/InstanceRegion-C7aJEkFV.cjs +1 -0
  74. package/dist/InstanceRegion-DQlzs4EK.js +4 -0
  75. package/dist/LazyImage-DBQklqeJ.js +163 -0
  76. package/dist/LazyImage-lv36coda.cjs +1 -0
  77. package/dist/LibraryRequests-BHAZPSUw.js +186 -0
  78. package/dist/LibraryRequests-DKCsJHbr.cjs +1 -0
  79. package/dist/LinkifyHelper-DPHYATPc.js +925 -0
  80. package/dist/LinkifyHelper-EOfbsqdi.cjs +4 -0
  81. package/dist/MasterTypeHelper-Y_SDsEUF.cjs +1 -0
  82. package/dist/MasterTypeHelper-uSKy6GZd.js +16 -0
  83. package/dist/MediaQueries-9caJ2eG6.js +4 -0
  84. package/dist/MediaQueries-CE9Kbs0e.cjs +1 -0
  85. package/dist/PartialLoadingHelper-D42uOdDd.cjs +1 -0
  86. package/dist/PartialLoadingHelper-DIas6hnM.js +29 -0
  87. package/dist/PermissionFilterOption-B-QrMVdA.js +4 -0
  88. package/dist/PermissionFilterOption-BIA__Q_O.cjs +1 -0
  89. package/dist/PillTabSelector-B5V2rqf0.js +64 -0
  90. package/dist/PillTabSelector-yR52s5ix.cjs +14 -0
  91. package/dist/PreviewVideoDetails-BQ0lYYbK.cjs +362 -0
  92. package/dist/PreviewVideoDetails-DJXB4vV3.js +68337 -0
  93. package/dist/ProgramType-DHk-SlRZ.cjs +1 -0
  94. package/dist/ProgramType-FpE5cuZV.js +60 -0
  95. package/dist/RatingRequests-BNPZAxXm.cjs +1 -0
  96. package/dist/RatingRequests-Dr3w3-z8.js +11 -0
  97. package/dist/RedirectView-BK8yU-PU.js +22 -0
  98. package/dist/RedirectView-OEJhJrvf.cjs +1 -0
  99. package/dist/RestrictionHelper-BSceJYz-.js +112 -0
  100. package/dist/RestrictionHelper-C5u_CmoL.cjs +1 -0
  101. package/dist/ScrollHelper-Dg7bDIH7.js +10 -0
  102. package/dist/ScrollHelper-ESsjtyv8.cjs +1 -0
  103. package/dist/SearchFilters-C_yEnumc.js +3046 -0
  104. package/dist/SearchFilters-D3fLjseM.cjs +1 -0
  105. package/dist/SearchSvg-BB6oXs1v.js +13 -0
  106. package/dist/SearchSvg-BU6G1Fs0.cjs +1 -0
  107. package/dist/SharedSearchHelper-BuVD-GvT.js +159 -0
  108. package/dist/SharedSearchHelper-D5GJJwW7.cjs +1 -0
  109. package/dist/TagItem-BBc3HmnI.cjs +1 -0
  110. package/dist/TagItem-BFnSikAz.js +1125 -0
  111. package/dist/TvAdFreeBadge-BDFn2ujd.js +11 -0
  112. package/dist/TvAdFreeBadge-X2iSf6B3.cjs +1 -0
  113. package/dist/TvAdFreeRequestView-CEAvozfO.js +46 -0
  114. package/dist/TvAdFreeRequestView-DgnMCKX4.cjs +1 -0
  115. package/dist/TvAddView-Bv12wfX7.js +276 -0
  116. package/dist/TvAddView-CA7Yappn.cjs +1 -0
  117. package/dist/TvAlreadyAddedView-C240rLQ7.js +56 -0
  118. package/dist/TvAlreadyAddedView-X4KElzJA.cjs +1 -0
  119. package/dist/TvBroadcastContentView-DizJHvTQ.js +52 -0
  120. package/dist/TvBroadcastContentView-g8i0Cy-k.cjs +1 -0
  121. package/dist/TvChannelBadge-B4a1wkQI.cjs +1 -0
  122. package/dist/TvChannelBadge-Doqs12s9.js +11 -0
  123. package/dist/TvChannelView-CSn0VleL.js +177 -0
  124. package/dist/TvChannelView-Ds_F3Mmp.cjs +1 -0
  125. package/dist/TvChannelsView-CM_T5E3j.js +171 -0
  126. package/dist/TvChannelsView-r3NO_BRv.cjs +1 -0
  127. package/dist/TvGuideView-B8vS-8lS.cjs +1 -0
  128. package/dist/TvGuideView-BLlQJiZ3.js +54 -0
  129. package/dist/TvHomeView-C_h4DZw_.cjs +1 -0
  130. package/dist/TvHomeView-CbNg8AyI.js +15 -0
  131. package/dist/TvPreviewView-DhXD3H__.js +114 -0
  132. package/dist/TvPreviewView-hGq7_Bzs.cjs +1 -0
  133. package/dist/TvProgramTimeBadge-BtQKNLz2.js +18 -0
  134. package/dist/TvProgramTimeBadge-DPJu73xG.cjs +1 -0
  135. package/dist/TvProgramsView-Ba9VPnEh.cjs +1 -0
  136. package/dist/TvProgramsView-DO4WnPJx.js +223 -0
  137. package/dist/TvRadioDownloadView-ByABG_YW.js +41 -0
  138. package/dist/TvRadioDownloadView-CitV60kZ.cjs +1 -0
  139. package/dist/TvRequestProgramView-CYc5nAEt.cjs +1 -0
  140. package/dist/TvRequestProgramView-Dm5Bra4d.js +267 -0
  141. package/dist/TvRequests-Bcy68aT5.js +227 -0
  142. package/dist/TvRequests-l_Xv-rcr.cjs +1 -0
  143. package/dist/TvSearchBar-5J6420z2.cjs +1 -0
  144. package/dist/TvSearchBar-KZqcg7G0.js +95 -0
  145. package/dist/TvSearchResultsView-BTONTtMg.cjs +1 -0
  146. package/dist/TvSearchResultsView-CMsq8ehS.js +212 -0
  147. package/dist/TvTabs-CrQVKuod.js +88 -0
  148. package/dist/TvTabs-JuCI2Ea7.cjs +1 -0
  149. package/dist/TypeHelper-Dt2Y9Wc4.js +14 -0
  150. package/dist/TypeHelper-Z2rqPzup.cjs +1 -0
  151. package/dist/UseAlerts-B2BbQeN3.js +39 -0
  152. package/dist/UseAlerts-pIg83NsO.cjs +1 -0
  153. package/dist/UseFetchAll-BaDVJFdj.cjs +1 -0
  154. package/dist/UseFetchAll-DYGA8s5a.js +147 -0
  155. package/dist/UseGetMediaQueryString-BLeJTZt2.cjs +1 -0
  156. package/dist/UseGetMediaQueryString-Dc_jP0rr.js +226 -0
  157. package/dist/UseHandleDialogError-BJHsOnKn.js +9 -0
  158. package/dist/UseHandleDialogError-PbyWsVaT.cjs +1 -0
  159. package/dist/UseHandleObjectError-CBFN1Ill.cjs +1 -0
  160. package/dist/UseHandleObjectError-DAhDbPEo.js +16 -0
  161. package/dist/UseHover-CLOLtbUV.cjs +1 -0
  162. package/dist/UseHover-Cc_d5rRf.js +85 -0
  163. package/dist/UseSelectAllPages-04737Rdu.cjs +1 -0
  164. package/dist/UseSelectAllPages-Cnk3MEAt.js +149 -0
  165. package/dist/VideoHelper-3AKe5Jyy.js +477 -0
  166. package/dist/VideoHelper-BQ7rWUw0.cjs +1 -0
  167. package/dist/VideoList-SNG1hmoL.cjs +49 -0
  168. package/dist/VideoList-s7lvSqSs.js +2622 -0
  169. package/dist/VideoRequests-CpDXl7E_.cjs +1 -0
  170. package/dist/VideoRequests-DlUeYLjl.js +225 -0
  171. package/dist/VideoSortSelect-3JfrvPfj.cjs +1 -0
  172. package/dist/VideoSortSelect-DS9Uvc-S.js +116 -0
  173. package/dist/VisibleOnSvg-BisjF586.cjs +1 -0
  174. package/dist/VisibleOnSvg-WDCQPPvV.js +33 -0
  175. package/dist/app-2U039aX_.js +67680 -0
  176. package/dist/app-DcIbciDa.cjs +454 -0
  177. package/dist/app.js +1 -0
  178. package/dist/en.json +1 -0
  179. package/dist/exchange.css +1 -0
  180. package/dist/getRegionInfo-B_h_jjAy.js +31 -0
  181. package/dist/getRegionInfo-Bs5JKG7h.cjs +1 -0
  182. package/dist/index-CGkY5YVS.cjs +1 -0
  183. package/dist/index-DUgR-v-j.js +885 -0
  184. package/dist/toLocalTime-Bt8Uy4Kq.js +15 -0
  185. package/dist/toLocalTime-DF9SIfIt.cjs +1 -0
  186. package/dist/useBreakpoints-37V489ap.js +66 -0
  187. package/dist/useBreakpoints-B-bcgx-L.cjs +1 -0
  188. package/dist/useGetExchangeActions-BwXrBSH-.cjs +1 -0
  189. package/dist/useGetExchangeActions-C8Y1FNSl.js +176 -0
  190. package/dist/useGetTvActions-CmEBdHbw.cjs +1 -0
  191. package/dist/useGetTvActions-DENrO3wZ.js +54 -0
  192. package/dist/useHandleRegionError-BNRrs6y8.cjs +1 -0
  193. package/dist/useHandleRegionError-BNxhNPKP.js +10 -0
  194. package/dist/usePreviewContext--ihfEi4P.js +14 -0
  195. package/dist/usePreviewContext-DjpFhe3I.cjs +1 -0
  196. package/dist/useSelectedRegion-7_2s4QQF.js +16 -0
  197. package/dist/useSelectedRegion-D3Xsu2Ut.cjs +1 -0
  198. package/dist/useVerifiedEmailRequiredErrorHandler-CSkvs-EW.cjs +1 -0
  199. package/dist/useVerifiedEmailRequiredErrorHandler-DFLs3cQc.js +57 -0
  200. package/package.json +12 -3
  201. package/typings/utils/imports.d.ts +1 -1
  202. package/vite-i18n-plugin.ts +113 -0
  203. package/vite.config.ts +59 -0
  204. package/dist/bundles.json +0 -4
  205. package/dist/css/137-exchange-8c1b8716b3.chunk.css +0 -25
  206. package/dist/css/212-exchange-d71527fc65.chunk.css +0 -1
  207. package/dist/css/226-exchange-9ab9f14b3c.chunk.css +0 -57
  208. package/dist/css/291-exchange-be9d9f0cdb.chunk.css +0 -11
  209. package/dist/css/298-exchange-78ece5c7c5.chunk.css +0 -37
  210. package/dist/css/332-exchange-e4754ae27a.chunk.css +0 -1
  211. package/dist/css/489-exchange-6ecb1e7adc.chunk.css +0 -85
  212. package/dist/css/494-exchange-02d7a0249c.chunk.css +0 -2
  213. package/dist/css/522-exchange-1387f35e92.chunk.css +0 -14
  214. package/dist/css/538-exchange-4cbfe56ba3.chunk.css +0 -1
  215. package/dist/css/589-exchange-fa098d9131.chunk.css +0 -11
  216. package/dist/css/611-exchange-cbf2bb5621.chunk.css +0 -5
  217. package/dist/css/669-exchange-e80e6c6649.chunk.css +0 -10
  218. package/dist/css/68-exchange-b5eaf8af44.chunk.css +0 -35
  219. package/dist/css/75-exchange-6d2304419c.chunk.css +0 -5
  220. package/dist/css/759-exchange-23bb5dd175.chunk.css +0 -8
  221. package/dist/css/858-exchange-06944bdfa4.chunk.css +0 -1
  222. package/dist/css/904-exchange-0eab318199.chunk.css +0 -40
  223. package/dist/css/95-exchange-4cbfe56ba3.chunk.css +0 -1
  224. package/dist/css/lite-exchange-ed6bd260c5.css +0 -14
  225. package/dist/languages/en.json +0 -1
  226. package/dist/scripts/117-e2b3dd7f3e-exchange.chunk.js +0 -1
  227. package/dist/scripts/127-4a3c8f9725-exchange.chunk.js +0 -1
  228. package/dist/scripts/136-fd99ef4c9d-exchange.chunk.js +0 -2
  229. package/dist/scripts/136-fd99ef4c9d-exchange.chunk.js.LICENSE.txt +0 -1
  230. package/dist/scripts/137-51b4dab452-exchange.chunk.js +0 -1
  231. package/dist/scripts/156-847dae6ace-exchange.chunk.js +0 -1
  232. package/dist/scripts/170-9db7c3b12e-exchange.chunk.js +0 -1
  233. package/dist/scripts/173-3668db114a-exchange.chunk.js +0 -1
  234. package/dist/scripts/212-6ed71b2797-exchange.chunk.js +0 -1
  235. package/dist/scripts/226-889bef8e6c-exchange.chunk.js +0 -1
  236. package/dist/scripts/267-7daf64f8a1-exchange.chunk.js +0 -1
  237. package/dist/scripts/291-7e85a6e844-exchange.chunk.js +0 -1
  238. package/dist/scripts/298-ed8e8b8328-exchange.chunk.js +0 -1
  239. package/dist/scripts/312-69afcbbc39-exchange.chunk.js +0 -1
  240. package/dist/scripts/325-76baea117f-exchange.chunk.js +0 -1
  241. package/dist/scripts/332-08d48debc2-exchange.chunk.js +0 -1
  242. package/dist/scripts/414-567e121c75-exchange.chunk.js +0 -2
  243. package/dist/scripts/414-567e121c75-exchange.chunk.js.LICENSE.txt +0 -60
  244. package/dist/scripts/442-fcba36183d-exchange.chunk.js +0 -1
  245. package/dist/scripts/455-ceeb969c54-exchange.chunk.js +0 -1
  246. package/dist/scripts/484-08c82c5a88-exchange.chunk.js +0 -1
  247. package/dist/scripts/489-be60742399-exchange.chunk.js +0 -2
  248. package/dist/scripts/489-be60742399-exchange.chunk.js.LICENSE.txt +0 -1
  249. package/dist/scripts/494-abba46b945-exchange.chunk.js +0 -2
  250. package/dist/scripts/494-abba46b945-exchange.chunk.js.LICENSE.txt +0 -1
  251. package/dist/scripts/507-b6e119c8e2-exchange.chunk.js +0 -1
  252. package/dist/scripts/522-ce819dee18-exchange.chunk.js +0 -2
  253. package/dist/scripts/522-ce819dee18-exchange.chunk.js.LICENSE.txt +0 -1
  254. package/dist/scripts/536-b915864d5f-exchange.chunk.js +0 -1
  255. package/dist/scripts/538-ccc01a623f-exchange.chunk.js +0 -2
  256. package/dist/scripts/538-ccc01a623f-exchange.chunk.js.LICENSE.txt +0 -1
  257. package/dist/scripts/558-1bdbbc1f64-exchange.chunk.js +0 -1
  258. package/dist/scripts/589-17d73ab116-exchange.chunk.js +0 -1
  259. package/dist/scripts/601-a3c22b0a9f-exchange.chunk.js +0 -1
  260. package/dist/scripts/611-d8bd3e98dc-exchange.chunk.js +0 -1
  261. package/dist/scripts/619-1abac6cb1d-exchange.chunk.js +0 -1
  262. package/dist/scripts/648-485af12c37-exchange.chunk.js +0 -1
  263. package/dist/scripts/659-d08f206e1d-exchange.chunk.js +0 -1
  264. package/dist/scripts/669-a49a0838ff-exchange.chunk.js +0 -1
  265. package/dist/scripts/68-34b81dae8c-exchange.chunk.js +0 -1
  266. package/dist/scripts/725-9ddf1084b6-exchange.chunk.js +0 -1
  267. package/dist/scripts/726-868a877381-exchange.chunk.js +0 -1
  268. package/dist/scripts/75-9780e4300e-exchange.chunk.js +0 -1
  269. package/dist/scripts/759-f1a9db4868-exchange.chunk.js +0 -1
  270. package/dist/scripts/782-2c340d8404-exchange.chunk.js +0 -1
  271. package/dist/scripts/831-8808647fc7-exchange.chunk.js +0 -1
  272. package/dist/scripts/851-61f77ce4aa-exchange.chunk.js +0 -2
  273. package/dist/scripts/851-61f77ce4aa-exchange.chunk.js.LICENSE.txt +0 -1
  274. package/dist/scripts/858-70085ed3b1-exchange.chunk.js +0 -1
  275. package/dist/scripts/866-14ce8a3a4d-exchange.chunk.js +0 -1
  276. package/dist/scripts/87-d569a1463e-exchange.chunk.js +0 -1
  277. package/dist/scripts/877-5b357aeb63-exchange.chunk.js +0 -1
  278. package/dist/scripts/904-bd1dfd39e0-exchange.chunk.js +0 -1
  279. package/dist/scripts/925-f70ee1c7f9-exchange.chunk.js +0 -1
  280. package/dist/scripts/937-2e1f1f330e-exchange.chunk.js +0 -1
  281. package/dist/scripts/95-841a847f54-exchange.chunk.js +0 -2
  282. package/dist/scripts/95-841a847f54-exchange.chunk.js.LICENSE.txt +0 -1
  283. package/dist/scripts/bundle-26830afcc1.min.js +0 -2
  284. package/dist/scripts/bundle-26830afcc1.min.js.LICENSE.txt +0 -108
@@ -0,0 +1,925 @@
1
+ import { M as G, j as g, ao as Je, T as ze, at as Be, ad as He, ac as Ke, L as Ge, G as et, Q as Ae, bf as tt, r as ee, R as $e, y as nt, bm as at } from "./app-2U039aX_.js";
2
+ import { V as Oe } from "./VideoHelper-3AKe5Jyy.js";
3
+ import { C as rt } from "./CurationStatus-DZn3C9Qe.js";
4
+ const he = {
5
+ padNumber(n, t) {
6
+ let a = n.toString();
7
+ if (a.length >= t)
8
+ return a;
9
+ for (t = t - a.length; t > 0; )
10
+ a = "0" + a, t--;
11
+ return a;
12
+ }
13
+ }, ot = {
14
+ isSeries(n) {
15
+ return (n == null ? void 0 : n.typeId) === G.Series;
16
+ },
17
+ buildSeriesSeasonEpisodeText(n, t, a) {
18
+ if (!n)
19
+ return "";
20
+ if (!t || !a)
21
+ return n.toUpperCase();
22
+ const e = he.padNumber(t, 2), r = he.padNumber(a, 2);
23
+ return `${n.toUpperCase()} S${e} • E${r}`;
24
+ }
25
+ }, it = "_subText_5u663_1", st = {
26
+ subText: it
27
+ };
28
+ function Ye(n) {
29
+ const t = `text-uppercase text-truncate mb-0 ${st.subText} ${n.className}`;
30
+ return n.appLink ? /* @__PURE__ */ g.jsx(
31
+ Je,
32
+ {
33
+ className: t,
34
+ appLink: n.appLink,
35
+ analyticsData: n.analyticsData,
36
+ analyticsOptions: n.analyticsOptions,
37
+ title: n.title,
38
+ ariaLabel: n.ariaLabel,
39
+ children: n.children
40
+ }
41
+ ) : /* @__PURE__ */ g.jsx(
42
+ "div",
43
+ {
44
+ className: t,
45
+ title: n.title,
46
+ "aria-label": n.ariaLabel,
47
+ children: n.children
48
+ }
49
+ );
50
+ }
51
+ const lt = "_appLink_1owb0_1", ct = "_hoverUnderline_1owb0_4", ye = {
52
+ appLink: lt,
53
+ hoverUnderline: ct
54
+ }, ut = "shared.videoSubText", Fe = Ge.encloseNamespace(ut);
55
+ function ft(n) {
56
+ const { video: t } = n, { season: a } = t;
57
+ if (!t.episodeNumber || !a)
58
+ return /* @__PURE__ */ g.jsx(g.Fragment, {});
59
+ const e = he.padNumber(a.number, 2), r = he.padNumber(t.episodeNumber, 2);
60
+ return /* @__PURE__ */ g.jsxs("span", { className: `d-inline-block ${n.appLink ? ye.hoverUnderline : ""}`, children: [
61
+ n.withSeriesTitle && /* @__PURE__ */ g.jsx(g.Fragment, { children: " " }),
62
+ !!e && `S${e} • `,
63
+ "E",
64
+ r
65
+ ] });
66
+ }
67
+ function dt(n) {
68
+ const t = Oe.getReleaseDate(n.video);
69
+ return t ? Oe.hasSeries(n.video) ? /* @__PURE__ */ g.jsx(g.Fragment, { children: ` • ${t}` }) : /* @__PURE__ */ g.jsx(g.Fragment, { children: t }) : /* @__PURE__ */ g.jsx(g.Fragment, {});
70
+ }
71
+ function ht(n) {
72
+ var s;
73
+ const { appLink: t, video: a, className: e = "" } = n, r = a == null ? void 0 : a.series, u = Oe.getReleaseDate(n.video);
74
+ if (!(r != null && r.id) && !u)
75
+ return /* @__PURE__ */ g.jsx(g.Fragment, {});
76
+ const o = (r == null ? void 0 : r.id) && t && {
77
+ ...t,
78
+ args: [r.id, ze.slugify(r.name)]
79
+ }, f = {
80
+ ...n.analyticsData,
81
+ id: r == null ? void 0 : r.id,
82
+ name: r == null ? void 0 : r.name,
83
+ videoId: a == null ? void 0 : a.id,
84
+ videoName: a == null ? void 0 : a.name
85
+ }, i = {
86
+ ...n.analyticsOptions,
87
+ entity: Ke.Series,
88
+ actionType: He.Click,
89
+ descriptor: Be.Title
90
+ }, l = ot.buildSeriesSeasonEpisodeText(
91
+ r == null ? void 0 : r.name,
92
+ (s = a.season) == null ? void 0 : s.number,
93
+ a.episodeNumber
94
+ );
95
+ return /* @__PURE__ */ g.jsxs(
96
+ Ye,
97
+ {
98
+ appLink: o,
99
+ className: `d-block ${ye.appLink} ${e}`,
100
+ analyticsData: f,
101
+ analyticsOptions: i,
102
+ title: l,
103
+ ariaLabel: `${Fe("ariaSeries")} ${l}`,
104
+ children: [
105
+ (r == null ? void 0 : r.name) && r.name,
106
+ /* @__PURE__ */ g.jsx(ft, { ...n, withSeriesTitle: !0 }),
107
+ /* @__PURE__ */ g.jsx(dt, { ...n })
108
+ ]
109
+ }
110
+ );
111
+ }
112
+ function pt(n) {
113
+ var i, l;
114
+ const { appLink: t, video: a, className: e = "" } = n, r = (l = (i = a == null ? void 0 : a.productionCompanies) == null ? void 0 : i.data) == null ? void 0 : l[0];
115
+ if (!(r != null && r.id))
116
+ return /* @__PURE__ */ g.jsx(g.Fragment, {});
117
+ const u = (r == null ? void 0 : r.id) && t && {
118
+ ...t,
119
+ args: [r.id, ze.slugify(r.name)]
120
+ }, o = {
121
+ ...n.analyticsData,
122
+ id: r == null ? void 0 : r.id,
123
+ name: r == null ? void 0 : r.name,
124
+ videoId: a == null ? void 0 : a.id,
125
+ videoName: a == null ? void 0 : a.name
126
+ }, f = {
127
+ ...n.analyticsOptions,
128
+ entity: Ke.Company,
129
+ actionType: He.Click,
130
+ descriptor: Be.Title
131
+ };
132
+ return /* @__PURE__ */ g.jsx(
133
+ Ye,
134
+ {
135
+ appLink: u,
136
+ className: `d-block ${ye.appLink} ${e}`,
137
+ analyticsData: o,
138
+ analyticsOptions: f,
139
+ title: r.name,
140
+ ariaLabel: `${Fe("ariaCompany")} ${r.name}`,
141
+ children: r.name
142
+ }
143
+ );
144
+ }
145
+ function Gt(n) {
146
+ const { type: t = "series" } = n;
147
+ return t === "none" ? /* @__PURE__ */ g.jsx(g.Fragment, {}) : t === "series" ? /* @__PURE__ */ g.jsx(ht, { ...n }) : /* @__PURE__ */ g.jsx(pt, { ...n });
148
+ }
149
+ function mt(n) {
150
+ return /* @__PURE__ */ g.jsx("svg", { ...n, children: /* @__PURE__ */ g.jsx(
151
+ "path",
152
+ {
153
+ fill: "currentColor",
154
+ d: "M14.893 16.357a2.5 2.5 0 0 1 1.806-1.354 2.506 2.506 0 0 1 2.902 2.042 2.516 2.516 0 0 1-2.032 2.916 2.5 2.5 0 0 1-2.74-1.494l-2.603-5.208-2.57 5.138a2.504 2.504 0 0 1-2.769 1.564 2.516 2.516 0 0 1-2.031-2.916 2.506 2.506 0 0 1 2.901-2.042c.81.144 1.46.663 1.803 1.348l2.107-4.212-3.703-7.41a.504.504 0 0 1 .222-.675.5.5 0 0 1 .672.223l3.369 6.743 3.372-6.743a.5.5 0 0 1 .671-.223.504.504 0 0 1 .223.674l-3.707 7.412zm-9.053.863a1.51 1.51 0 0 0 1.221 1.752 1.505 1.505 0 0 0 1.743-1.227 1.51 1.51 0 0 0-1.22-1.752A1.505 1.505 0 0 0 5.84 17.22m11.555 1.752a1.51 1.51 0 0 0 1.221-1.752 1.505 1.505 0 0 0-1.743-1.227 1.51 1.51 0 0 0-1.22 1.752 1.505 1.505 0 0 0 1.742 1.227"
155
+ }
156
+ ) });
157
+ }
158
+ function vt(n) {
159
+ return /* @__PURE__ */ g.jsx("svg", { ...n, children: /* @__PURE__ */ g.jsx(
160
+ "path",
161
+ {
162
+ fill: "currentColor",
163
+ d: "M11.91 4.025c-3.308 0-6 2.692-6 6 0 1.923.916 3.716 2.462 4.846v3.77c0 .763.621 1.384 1.385 1.384h4.308c.763 0 1.384-.62 1.384-1.384v-3.77a6 6 0 0 0 2.462-4.846c0-3.308-2.692-6-6-6m2.616 12.77v.615h-5.23v-.615zm-4.77 2.307a.46.46 0 0 1-.46-.461v-.308h5.23v.308a.46.46 0 0 1-.461.461zm4.77-4.471v1.24h-5.23v-1.24a.46.46 0 0 0-.205-.384 5.07 5.07 0 0 1-2.257-4.222c0-2.8 2.277-5.077 5.077-5.077s5.077 2.278 5.077 5.077a5.07 5.07 0 0 1-2.257 4.222.46.46 0 0 0-.205.384m-2.396-2.616a.56.56 0 0 0 .107-.348v-.068q.004-.237.076-.402a1 1 0 0 1 .235-.317q.165-.153.454-.35.462-.316.757-.724.294-.41.295-.97 0-.591-.283-.993a1.8 1.8 0 0 0-.76-.61 2.6 2.6 0 0 0-1.05-.208q-.629 0-1.151.279-.525.277-.78.825a1.2 1.2 0 0 0-.12.522.44.44 0 0 0 .105.303q.105.118.3.118.162 0 .271-.091a.5.5 0 0 0 .157-.247q.162-.518.471-.704.309-.187.718-.187.343 0 .62.119.28.118.443.339.164.22.164.53 0 .27-.104.467-.106.195-.28.35a5 5 0 0 1-.391.305q-.281.195-.516.419a1.9 1.9 0 0 0-.378.498 1.3 1.3 0 0 0-.143.613v.193q0 .213.114.346.114.134.338.133.224 0 .33-.14m.088 2.081a.6.6 0 0 0 .17-.426.6.6 0 0 0-.17-.428.57.57 0 0 0-.424-.177q-.242 0-.416.177a.59.59 0 0 0-.174.428.6.6 0 0 0 .174.426q.174.18.416.18.252 0 .424-.18"
164
+ }
165
+ ) });
166
+ }
167
+ function gt(n) {
168
+ return /* @__PURE__ */ g.jsx("svg", { ...n, children: /* @__PURE__ */ g.jsx(
169
+ "path",
170
+ {
171
+ d: "M18.06 4c.519 0 .94.479.94 1.075v13.85c0 .594-.419 1.075-.94 1.075H5.94c-.519 0-.94-.479-.94-1.075V5.075C5 4.48 5.419 4 5.94 4zM9.256 5H5.882v.184l-.001.1v.418l-.001.175-.001 1.113v1.429l-.001.314v2.024l-.001.352-.001 3.162v.335l-.001 4.386h.105l.08.001h.36l.157.001h.571l.221.001h.741l.27.001h1.174l.313.001h1.63l.332.001 2.61.001h.305l3.362.001h.012v-.184l.001-.1v-.418l.001-.175.001-1.113v-1.429l.001-.314v-2.024l.001-.352.001-3.162v-.335l.001-4.374v-.012h-.105l-.08-.001h-.36l-.157-.001h-.571l-.221-.001h-.741l-.27-.001h-1.174l-.313-.001h-1.63l-.332-.001-2.61-.001zm1.438 8c.238 0 .431.224.431.5s-.193.5-.431.5H8.056c-.238 0-.431-.224-.431-.5s.193-.5.431-.5zm5.198-3c.267 0 .483.224.483.5s-.216.5-.483.5H8.108a.49.49 0 0 1-.483-.5c0-.276.216-.5.483-.5zm0-3c.267 0 .483.224.483.5s-.216.5-.483.5H8.108a.49.49 0 0 1-.483-.5c0-.276.216-.5.483-.5z",
172
+ fill: "currentColor"
173
+ }
174
+ ) });
175
+ }
176
+ const bt = "_topLeftContainer_z6mhb_1", xt = "_draft_z6mhb_7", Ot = "_badge_z6mhb_10", yt = "_svg_z6mhb_20", St = "_text_z6mhb_29", Et = "_sm_z6mhb_33", oe = {
177
+ topLeftContainer: bt,
178
+ draft: xt,
179
+ badge: Ot,
180
+ svg: yt,
181
+ text: St,
182
+ sm: Et
183
+ }, Lt = "shared.typeBadge", be = Ge.encloseNamespace(Lt);
184
+ function Nt(n) {
185
+ switch (n) {
186
+ case G.Clip:
187
+ return be("clip");
188
+ case G.Interactive:
189
+ return be("interactive");
190
+ case G.Resource:
191
+ return be("resource");
192
+ default:
193
+ return "";
194
+ }
195
+ }
196
+ function Tt(n) {
197
+ switch (n) {
198
+ case G.Clip:
199
+ return mt;
200
+ case G.Interactive:
201
+ return vt;
202
+ case G.Resource:
203
+ return gt;
204
+ default:
205
+ return null;
206
+ }
207
+ }
208
+ function At(n, t) {
209
+ switch (n) {
210
+ case G.Clip:
211
+ return "bg-ultramarine";
212
+ case G.Interactive:
213
+ return t === rt.Draft ? oe.draft : "bg-green";
214
+ case G.Resource:
215
+ return "bg-indigo";
216
+ default:
217
+ return "";
218
+ }
219
+ }
220
+ kt.default = {
221
+ size: "md"
222
+ };
223
+ function kt(n) {
224
+ const t = `${oe.badge} rounded-pill text-white ps-0 ${n.size === "sm" ? oe.sm : ""}`;
225
+ return /* @__PURE__ */ g.jsx("div", { className: n.inContainer ? "" : oe.topLeftContainer, children: /* @__PURE__ */ g.jsxs("div", { className: `${t} ${At(n.typeId, n.status)}`, children: [
226
+ /* @__PURE__ */ g.jsx(
227
+ et,
228
+ {
229
+ className: `svg-container d-block ${oe.svg}`,
230
+ size: n.size === "sm" ? Ae.Small : Ae.Standard,
231
+ svg: Tt(n.typeId)
232
+ }
233
+ ),
234
+ /* @__PURE__ */ g.jsx("span", { className: oe.text, children: Nt(n.typeId) })
235
+ ] }) });
236
+ }
237
+ var Qe = /* @__PURE__ */ function() {
238
+ var n = function(t, a) {
239
+ return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
240
+ e.__proto__ = r;
241
+ } || function(e, r) {
242
+ for (var u in r) r.hasOwnProperty(u) && (e[u] = r[u]);
243
+ }, n(t, a);
244
+ };
245
+ return function(t, a) {
246
+ n(t, a);
247
+ function e() {
248
+ this.constructor = t;
249
+ }
250
+ t.prototype = a === null ? Object.create(a) : (e.prototype = a.prototype, new e());
251
+ };
252
+ }(), Se = "html", Ee = "svg", Ct = "http://www.w3.org/2000/svg", Pt = function(n, t) {
253
+ if (t === Se)
254
+ return n instanceof HTMLElement;
255
+ if (t === Ee)
256
+ return n instanceof SVGElement;
257
+ throw new Error('Unrecognized element type "' + t + '" for validateElementType.');
258
+ }, We = function(n, t) {
259
+ var a = {}, e, r, u;
260
+ if (n === Se)
261
+ u = document.createElement("div");
262
+ else if (n === Ee)
263
+ u = document.createElementNS(Ct, "g");
264
+ else
265
+ throw new Error('Invalid element type "' + n + '" for createPortalNode: must be "html" or "svg".');
266
+ if (t && typeof t == "object")
267
+ for (var o = 0, f = Object.entries(t.attributes); o < f.length; o++) {
268
+ var i = f[o], l = i[0], s = i[1];
269
+ u.setAttribute(l, s);
270
+ }
271
+ var c = {
272
+ element: u,
273
+ elementType: n,
274
+ setPortalProps: function(d) {
275
+ a = d;
276
+ },
277
+ getInitialPortalProps: function() {
278
+ return a;
279
+ },
280
+ mount: function(d, m) {
281
+ if (m !== r) {
282
+ if (c.unmount(), d !== e && !Pt(d, n))
283
+ throw new Error('Invalid element type for portal: "' + n + '" portalNodes must be used with ' + n + " elements, but OutPortal is within <" + d.tagName + ">.");
284
+ d.replaceChild(c.element, m), e = d, r = m;
285
+ }
286
+ },
287
+ unmount: function(d) {
288
+ d && d !== r || e && r && (e.replaceChild(r, c.element), e = void 0, r = void 0);
289
+ }
290
+ };
291
+ return c;
292
+ }, $t = (
293
+ /** @class */
294
+ function(n) {
295
+ Qe(t, n);
296
+ function t(a) {
297
+ var e = n.call(this, a) || this;
298
+ return e.addPropsChannel = function() {
299
+ Object.assign(e.props.node, {
300
+ setPortalProps: function(r) {
301
+ e.setState({ nodeProps: r });
302
+ }
303
+ });
304
+ }, e.state = {
305
+ nodeProps: e.props.node.getInitialPortalProps()
306
+ }, e;
307
+ }
308
+ return t.prototype.componentDidMount = function() {
309
+ this.addPropsChannel();
310
+ }, t.prototype.componentDidUpdate = function() {
311
+ this.addPropsChannel();
312
+ }, t.prototype.render = function() {
313
+ var a = this, e = this.props, r = e.children, u = e.node;
314
+ return tt.createPortal(ee.Children.map(r, function(o) {
315
+ return ee.isValidElement(o) ? ee.cloneElement(o, a.state.nodeProps) : o;
316
+ }), u.element);
317
+ }, t;
318
+ }(ee.PureComponent)
319
+ ), Yt = (
320
+ /** @class */
321
+ function(n) {
322
+ Qe(t, n);
323
+ function t(a) {
324
+ var e = n.call(this, a) || this;
325
+ return e.placeholderNode = ee.createRef(), e.passPropsThroughPortal(), e;
326
+ }
327
+ return t.prototype.passPropsThroughPortal = function() {
328
+ var a = Object.assign({}, this.props, { node: void 0 });
329
+ this.props.node.setPortalProps(a);
330
+ }, t.prototype.componentDidMount = function() {
331
+ var a = this.props.node;
332
+ this.currentPortalNode = a;
333
+ var e = this.placeholderNode.current, r = e.parentNode;
334
+ a.mount(r, e), this.passPropsThroughPortal();
335
+ }, t.prototype.componentDidUpdate = function() {
336
+ var a = this.props.node;
337
+ this.currentPortalNode && a !== this.currentPortalNode && (this.currentPortalNode.unmount(this.placeholderNode.current), this.currentPortalNode.setPortalProps({}), this.currentPortalNode = a);
338
+ var e = this.placeholderNode.current, r = e.parentNode;
339
+ a.mount(r, e), this.passPropsThroughPortal();
340
+ }, t.prototype.componentWillUnmount = function() {
341
+ var a = this.props.node;
342
+ a.unmount(this.placeholderNode.current), a.setPortalProps({});
343
+ }, t.prototype.render = function() {
344
+ return ee.createElement("div", { ref: this.placeholderNode });
345
+ }, t;
346
+ }(ee.PureComponent)
347
+ ), Ft = We.bind(null, Se);
348
+ We.bind(null, Ee);
349
+ const _t = $e.createContext({ hasProvider: !1 });
350
+ function Qt() {
351
+ return $e.useContext(_t);
352
+ }
353
+ var ue = {}, E = {}, fe = {}, ke;
354
+ function pe() {
355
+ if (ke) return fe;
356
+ ke = 1, fe.__esModule = !0, fe.inherits = n;
357
+ function n(t, a) {
358
+ var e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = Object.create(t.prototype);
359
+ for (var u in e)
360
+ r[u] = e[u];
361
+ return r.constructor = a, a.prototype = r, a;
362
+ }
363
+ return fe;
364
+ }
365
+ var re = {}, Ce;
366
+ function Rt() {
367
+ if (Ce) return re;
368
+ Ce = 1, re.__esModule = !0;
369
+ var n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(o) {
370
+ return typeof o;
371
+ } : function(o) {
372
+ return o && typeof Symbol == "function" && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
373
+ }, t = {
374
+ defaultProtocol: "http",
375
+ events: null,
376
+ format: r,
377
+ formatHref: r,
378
+ nl2br: !1,
379
+ tagName: "a",
380
+ target: u,
381
+ validate: !0,
382
+ ignoreTags: [],
383
+ attributes: null,
384
+ className: "linkified"
385
+ // Deprecated value - no default class will be provided in the future
386
+ };
387
+ re.defaults = t, re.Options = a, re.contains = e;
388
+ function a(o) {
389
+ o = o || {}, this.defaultProtocol = o.hasOwnProperty("defaultProtocol") ? o.defaultProtocol : t.defaultProtocol, this.events = o.hasOwnProperty("events") ? o.events : t.events, this.format = o.hasOwnProperty("format") ? o.format : t.format, this.formatHref = o.hasOwnProperty("formatHref") ? o.formatHref : t.formatHref, this.nl2br = o.hasOwnProperty("nl2br") ? o.nl2br : t.nl2br, this.tagName = o.hasOwnProperty("tagName") ? o.tagName : t.tagName, this.target = o.hasOwnProperty("target") ? o.target : t.target, this.validate = o.hasOwnProperty("validate") ? o.validate : t.validate, this.ignoreTags = [], this.attributes = o.attributes || o.linkAttributes || t.attributes, this.className = o.hasOwnProperty("className") ? o.className : o.linkClass || t.className;
390
+ for (var f = o.hasOwnProperty("ignoreTags") ? o.ignoreTags : t.ignoreTags, i = 0; i < f.length; i++)
391
+ this.ignoreTags.push(f[i].toUpperCase());
392
+ }
393
+ a.prototype = {
394
+ /**
395
+ * Given the token, return all options for how it should be displayed
396
+ */
397
+ resolve: function(f) {
398
+ var i = f.toHref(this.defaultProtocol);
399
+ return {
400
+ formatted: this.get("format", f.toString(), f),
401
+ formattedHref: this.get("formatHref", i, f),
402
+ tagName: this.get("tagName", i, f),
403
+ className: this.get("className", i, f),
404
+ target: this.get("target", i, f),
405
+ events: this.getObject("events", i, f),
406
+ attributes: this.getObject("attributes", i, f)
407
+ };
408
+ },
409
+ /**
410
+ * Returns true or false based on whether a token should be displayed as a
411
+ * link based on the user options. By default,
412
+ */
413
+ check: function(f) {
414
+ return this.get("validate", f.toString(), f);
415
+ },
416
+ // Private methods
417
+ /**
418
+ * Resolve an option's value based on the value of the option and the given
419
+ * params.
420
+ * @param {String} key Name of option to use
421
+ * @param operator will be passed to the target option if it's method
422
+ * @param {MultiToken} token The token from linkify.tokenize
423
+ */
424
+ get: function(f, i, l) {
425
+ var s = void 0, c = this[f];
426
+ if (!c)
427
+ return c;
428
+ switch (typeof c > "u" ? "undefined" : n(c)) {
429
+ case "function":
430
+ return c(i, l.type);
431
+ case "object":
432
+ return s = c.hasOwnProperty(l.type) ? c[l.type] : t[f], typeof s == "function" ? s(i, l.type) : s;
433
+ }
434
+ return c;
435
+ },
436
+ getObject: function(f, i, l) {
437
+ var s = this[f];
438
+ return typeof s == "function" ? s(i, l.type) : s;
439
+ }
440
+ };
441
+ function e(o, f) {
442
+ for (var i = 0; i < o.length; i++)
443
+ if (o[i] === f)
444
+ return !0;
445
+ return !1;
446
+ }
447
+ function r(o) {
448
+ return o;
449
+ }
450
+ function u(o, f) {
451
+ return f === "url" ? "_blank" : null;
452
+ }
453
+ return re;
454
+ }
455
+ var j = {}, W = {}, Pe;
456
+ function Ve() {
457
+ if (Pe) return W;
458
+ Pe = 1, W.__esModule = !0, W.stateify = W.TokenState = W.CharacterState = void 0;
459
+ var n = pe();
460
+ function t() {
461
+ return function(o) {
462
+ this.j = [], this.T = o || null;
463
+ };
464
+ }
465
+ var a = t();
466
+ a.prototype = {
467
+ defaultTransition: !1,
468
+ /**
469
+ @method constructor
470
+ @param {Class} tClass Pass in the kind of token to emit if there are
471
+ no jumps after this state and the state is accepting.
472
+ */
473
+ /**
474
+ On the given symbol(s), this machine should go to the given state
475
+ @method on
476
+ @param {Array|Mixed} symbol
477
+ @param {BaseState} state Note that the type of this state should be the
478
+ same as the current instance (i.e., don't pass in a different
479
+ subclass)
480
+ */
481
+ on: function(f, i) {
482
+ if (f instanceof Array) {
483
+ for (var l = 0; l < f.length; l++)
484
+ this.j.push([f[l], i]);
485
+ return this;
486
+ }
487
+ return this.j.push([f, i]), this;
488
+ },
489
+ /**
490
+ Given the next item, returns next state for that item
491
+ @method next
492
+ @param {Mixed} item Should be an instance of the symbols handled by
493
+ this particular machine.
494
+ @return {State} state Returns false if no jumps are available
495
+ */
496
+ next: function(f) {
497
+ for (var i = 0; i < this.j.length; i++) {
498
+ var l = this.j[i], s = l[0], c = l[1];
499
+ if (this.test(f, s))
500
+ return c;
501
+ }
502
+ return this.defaultTransition;
503
+ },
504
+ /**
505
+ Does this state accept?
506
+ `true` only of `this.T` exists
507
+ @method accepts
508
+ @return {Boolean}
509
+ */
510
+ accepts: function() {
511
+ return !!this.T;
512
+ },
513
+ /**
514
+ Determine whether a given item "symbolizes" the symbol, where symbol is
515
+ a class of items handled by this state machine.
516
+ This method should be overriden in extended classes.
517
+ @method test
518
+ @param {Mixed} item Does this item match the given symbol?
519
+ @param {Mixed} symbol
520
+ @return {Boolean}
521
+ */
522
+ test: function(f, i) {
523
+ return f === i;
524
+ },
525
+ /**
526
+ Emit the token for this State (just return it in this case)
527
+ If this emits a token, this instance is an accepting state
528
+ @method emit
529
+ @return {Class} T
530
+ */
531
+ emit: function() {
532
+ return this.T;
533
+ }
534
+ };
535
+ var e = (0, n.inherits)(a, t(), {
536
+ /**
537
+ Does the given character match the given character or regular
538
+ expression?
539
+ @method test
540
+ @param {String} char
541
+ @param {String|RegExp} charOrRegExp
542
+ @return {Boolean}
543
+ */
544
+ test: function(f, i) {
545
+ return f === i || i instanceof RegExp && i.test(f);
546
+ }
547
+ }), r = (0, n.inherits)(a, t(), {
548
+ /**
549
+ * Similar to `on`, but returns the state the results in the transition from
550
+ * the given item
551
+ * @method jump
552
+ * @param {Mixed} item
553
+ * @param {Token} [token]
554
+ * @return state
555
+ */
556
+ jump: function(f) {
557
+ var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, l = this.next(new f(""));
558
+ return l === this.defaultTransition ? (l = new this.constructor(i), this.on(f, l)) : i && (l.T = i), l;
559
+ },
560
+ /**
561
+ Is the given token an instance of the given token class?
562
+ @method test
563
+ @param {TextToken} token
564
+ @param {Class} tokenClass
565
+ @return {Boolean}
566
+ */
567
+ test: function(f, i) {
568
+ return f instanceof i;
569
+ }
570
+ });
571
+ function u(o, f, i, l) {
572
+ for (var s = 0, c = o.length, d = f, m = [], v = void 0; s < c && (v = d.next(o[s])); )
573
+ d = v, s++;
574
+ if (s >= c)
575
+ return [];
576
+ for (; s < c - 1; )
577
+ v = new e(l), m.push(v), d.on(o[s], v), d = v, s++;
578
+ return v = new e(i), m.push(v), d.on(o[c - 1], v), m;
579
+ }
580
+ return W.CharacterState = e, W.TokenState = r, W.stateify = u, W;
581
+ }
582
+ var h = {}, de = {}, _e;
583
+ function Xe() {
584
+ if (_e) return de;
585
+ _e = 1, de.__esModule = !0;
586
+ function n() {
587
+ return function(t) {
588
+ t && (this.v = t);
589
+ };
590
+ }
591
+ return de.createTokenClass = n, de;
592
+ }
593
+ var Re;
594
+ function Le() {
595
+ if (Re) return h;
596
+ Re = 1, h.__esModule = !0, h.AMPERSAND = h.CLOSEPAREN = h.CLOSEANGLEBRACKET = h.CLOSEBRACKET = h.CLOSEBRACE = h.OPENPAREN = h.OPENANGLEBRACKET = h.OPENBRACKET = h.OPENBRACE = h.WS = h.TLD = h.SYM = h.UNDERSCORE = h.SLASH = h.MAILTO = h.PROTOCOL = h.QUERY = h.POUND = h.PLUS = h.NUM = h.NL = h.LOCALHOST = h.PUNCTUATION = h.DOT = h.COLON = h.AT = h.DOMAIN = h.Base = void 0;
597
+ var n = Xe(), t = pe(), a = (0, n.createTokenClass)();
598
+ a.prototype = {
599
+ toString: function() {
600
+ return this.v + "";
601
+ }
602
+ };
603
+ function e(F) {
604
+ var S = F ? { v: F } : {};
605
+ return (0, t.inherits)(a, (0, n.createTokenClass)(), S);
606
+ }
607
+ var r = e(), u = e("@"), o = e(":"), f = e("."), i = e(), l = e(), s = e(`
608
+ `), c = e(), d = e("+"), m = e("#"), v = e(), b = e("mailto:"), p = e("?"), L = e("/"), _ = e("_"), k = e(), C = e(), R = e(), T = e("{"), y = e("["), I = e("<"), A = e("("), w = e("}"), $ = e("]"), Y = e(">"), q = e(")"), B = e("&");
609
+ return h.Base = a, h.DOMAIN = r, h.AT = u, h.COLON = o, h.DOT = f, h.PUNCTUATION = i, h.LOCALHOST = l, h.NL = s, h.NUM = c, h.PLUS = d, h.POUND = m, h.QUERY = p, h.PROTOCOL = v, h.MAILTO = b, h.SLASH = L, h.UNDERSCORE = _, h.SYM = k, h.TLD = C, h.WS = R, h.OPENBRACE = T, h.OPENBRACKET = y, h.OPENANGLEBRACKET = I, h.OPENPAREN = A, h.CLOSEBRACE = w, h.CLOSEBRACKET = $, h.CLOSEANGLEBRACKET = Y, h.CLOSEPAREN = q, h.AMPERSAND = B, h;
610
+ }
611
+ var we;
612
+ function wt() {
613
+ if (we) return j;
614
+ we = 1, j.__esModule = !0, j.start = j.run = j.TOKENS = j.State = void 0;
615
+ var n = Ve(), t = Le(), a = e(t);
616
+ function e(S) {
617
+ if (S && S.__esModule)
618
+ return S;
619
+ var M = {};
620
+ if (S != null)
621
+ for (var V in S)
622
+ Object.prototype.hasOwnProperty.call(S, V) && (M[V] = S[V]);
623
+ return M.default = S, M;
624
+ }
625
+ var r = "aaa|aarp|abarth|abb|abbott|abbvie|abc|able|abogado|abudhabi|ac|academy|accenture|accountant|accountants|aco|active|actor|ad|adac|ads|adult|ae|aeg|aero|aetna|af|afamilycompany|afl|africa|ag|agakhan|agency|ai|aig|aigo|airbus|airforce|airtel|akdn|al|alfaromeo|alibaba|alipay|allfinanz|allstate|ally|alsace|alstom|am|americanexpress|americanfamily|amex|amfam|amica|amsterdam|analytics|android|anquan|anz|ao|aol|apartments|app|apple|aq|aquarelle|ar|arab|aramco|archi|army|arpa|art|arte|as|asda|asia|associates|at|athleta|attorney|au|auction|audi|audible|audio|auspost|author|auto|autos|avianca|aw|aws|ax|axa|az|azure|ba|baby|baidu|banamex|bananarepublic|band|bank|bar|barcelona|barclaycard|barclays|barefoot|bargains|baseball|basketball|bauhaus|bayern|bb|bbc|bbt|bbva|bcg|bcn|bd|be|beats|beauty|beer|bentley|berlin|best|bestbuy|bet|bf|bg|bh|bharti|bi|bible|bid|bike|bing|bingo|bio|biz|bj|black|blackfriday|blanco|blockbuster|blog|bloomberg|blue|bm|bms|bmw|bn|bnl|bnpparibas|bo|boats|boehringer|bofa|bom|bond|boo|book|booking|boots|bosch|bostik|boston|bot|boutique|box|br|bradesco|bridgestone|broadway|broker|brother|brussels|bs|bt|budapest|bugatti|build|builders|business|buy|buzz|bv|bw|by|bz|bzh|ca|cab|cafe|cal|call|calvinklein|cam|camera|camp|cancerresearch|canon|capetown|capital|capitalone|car|caravan|cards|care|career|careers|cars|cartier|casa|case|caseih|cash|casino|cat|catering|catholic|cba|cbn|cbre|cbs|cc|cd|ceb|center|ceo|cern|cf|cfa|cfd|cg|ch|chanel|channel|chase|chat|cheap|chintai|chloe|christmas|chrome|chrysler|church|ci|cipriani|circle|cisco|citadel|citi|citic|city|cityeats|ck|cl|claims|cleaning|click|clinic|clinique|clothing|cloud|club|clubmed|cm|cn|co|coach|codes|coffee|college|cologne|com|comcast|commbank|community|company|compare|computer|comsec|condos|construction|consulting|contact|contractors|cooking|cookingchannel|cool|coop|corsica|country|coupon|coupons|courses|cr|credit|creditcard|creditunion|cricket|crown|crs|cruise|cruises|csc|cu|cuisinella|cv|cw|cx|cy|cymru|cyou|cz|dabur|dad|dance|data|date|dating|datsun|day|dclk|dds|de|deal|dealer|deals|degree|delivery|dell|deloitte|delta|democrat|dental|dentist|desi|design|dev|dhl|diamonds|diet|digital|direct|directory|discount|discover|dish|diy|dj|dk|dm|dnp|do|docs|doctor|dodge|dog|doha|domains|dot|download|drive|dtv|dubai|duck|dunlop|duns|dupont|durban|dvag|dvr|dz|earth|eat|ec|eco|edeka|edu|education|ee|eg|email|emerck|energy|engineer|engineering|enterprises|epost|epson|equipment|er|ericsson|erni|es|esq|estate|esurance|et|etisalat|eu|eurovision|eus|events|everbank|exchange|expert|exposed|express|extraspace|fage|fail|fairwinds|faith|family|fan|fans|farm|farmers|fashion|fast|fedex|feedback|ferrari|ferrero|fi|fiat|fidelity|fido|film|final|finance|financial|fire|firestone|firmdale|fish|fishing|fit|fitness|fj|fk|flickr|flights|flir|florist|flowers|fly|fm|fo|foo|food|foodnetwork|football|ford|forex|forsale|forum|foundation|fox|fr|free|fresenius|frl|frogans|frontdoor|frontier|ftr|fujitsu|fujixerox|fun|fund|furniture|futbol|fyi|ga|gal|gallery|gallo|gallup|game|games|gap|garden|gb|gbiz|gd|gdn|ge|gea|gent|genting|george|gf|gg|ggee|gh|gi|gift|gifts|gives|giving|gl|glade|glass|gle|global|globo|gm|gmail|gmbh|gmo|gmx|gn|godaddy|gold|goldpoint|golf|goo|goodhands|goodyear|goog|google|gop|got|gov|gp|gq|gr|grainger|graphics|gratis|green|gripe|grocery|group|gs|gt|gu|guardian|gucci|guge|guide|guitars|guru|gw|gy|hair|hamburg|hangout|haus|hbo|hdfc|hdfcbank|health|healthcare|help|helsinki|here|hermes|hgtv|hiphop|hisamitsu|hitachi|hiv|hk|hkt|hm|hn|hockey|holdings|holiday|homedepot|homegoods|homes|homesense|honda|honeywell|horse|hospital|host|hosting|hot|hoteles|hotels|hotmail|house|how|hr|hsbc|ht|htc|hu|hughes|hyatt|hyundai|ibm|icbc|ice|icu|id|ie|ieee|ifm|ikano|il|im|imamat|imdb|immo|immobilien|in|industries|infiniti|info|ing|ink|institute|insurance|insure|int|intel|international|intuit|investments|io|ipiranga|iq|ir|irish|is|iselect|ismaili|ist|istanbul|it|itau|itv|iveco|iwc|jaguar|java|jcb|jcp|je|jeep|jetzt|jewelry|jio|jlc|jll|jm|jmp|jnj|jo|jobs|joburg|jot|joy|jp|jpmorgan|jprs|juegos|juniper|kaufen|kddi|ke|kerryhotels|kerrylogistics|kerryproperties|kfh|kg|kh|ki|kia|kim|kinder|kindle|kitchen|kiwi|km|kn|koeln|komatsu|kosher|kp|kpmg|kpn|kr|krd|kred|kuokgroup|kw|ky|kyoto|kz|la|lacaixa|ladbrokes|lamborghini|lamer|lancaster|lancia|lancome|land|landrover|lanxess|lasalle|lat|latino|latrobe|law|lawyer|lb|lc|lds|lease|leclerc|lefrak|legal|lego|lexus|lgbt|li|liaison|lidl|life|lifeinsurance|lifestyle|lighting|like|lilly|limited|limo|lincoln|linde|link|lipsy|live|living|lixil|lk|loan|loans|locker|locus|loft|lol|london|lotte|lotto|love|lpl|lplfinancial|lr|ls|lt|ltd|ltda|lu|lundbeck|lupin|luxe|luxury|lv|ly|ma|macys|madrid|maif|maison|makeup|man|management|mango|map|market|marketing|markets|marriott|marshalls|maserati|mattel|mba|mc|mckinsey|md|me|med|media|meet|melbourne|meme|memorial|men|menu|meo|merckmsd|metlife|mg|mh|miami|microsoft|mil|mini|mint|mit|mitsubishi|mk|ml|mlb|mls|mm|mma|mn|mo|mobi|mobile|mobily|moda|moe|moi|mom|monash|money|monster|mopar|mormon|mortgage|moscow|moto|motorcycles|mov|movie|movistar|mp|mq|mr|ms|msd|mt|mtn|mtr|mu|museum|mutual|mv|mw|mx|my|mz|na|nab|nadex|nagoya|name|nationwide|natura|navy|nba|nc|ne|nec|net|netbank|netflix|network|neustar|new|newholland|news|next|nextdirect|nexus|nf|nfl|ng|ngo|nhk|ni|nico|nike|nikon|ninja|nissan|nissay|nl|no|nokia|northwesternmutual|norton|now|nowruz|nowtv|np|nr|nra|nrw|ntt|nu|nyc|nz|obi|observer|off|office|okinawa|olayan|olayangroup|oldnavy|ollo|om|omega|one|ong|onl|online|onyourside|ooo|open|oracle|orange|org|organic|origins|osaka|otsuka|ott|ovh|pa|page|panasonic|panerai|paris|pars|partners|parts|party|passagens|pay|pccw|pe|pet|pf|pfizer|pg|ph|pharmacy|phd|philips|phone|photo|photography|photos|physio|piaget|pics|pictet|pictures|pid|pin|ping|pink|pioneer|pizza|pk|pl|place|play|playstation|plumbing|plus|pm|pn|pnc|pohl|poker|politie|porn|post|pr|pramerica|praxi|press|prime|pro|prod|productions|prof|progressive|promo|properties|property|protection|pru|prudential|ps|pt|pub|pw|pwc|py|qa|qpon|quebec|quest|qvc|racing|radio|raid|re|read|realestate|realtor|realty|recipes|red|redstone|redumbrella|rehab|reise|reisen|reit|reliance|ren|rent|rentals|repair|report|republican|rest|restaurant|review|reviews|rexroth|rich|richardli|ricoh|rightathome|ril|rio|rip|rmit|ro|rocher|rocks|rodeo|rogers|room|rs|rsvp|ru|rugby|ruhr|run|rw|rwe|ryukyu|sa|saarland|safe|safety|sakura|sale|salon|samsclub|samsung|sandvik|sandvikcoromant|sanofi|sap|sapo|sarl|sas|save|saxo|sb|sbi|sbs|sc|sca|scb|schaeffler|schmidt|scholarships|school|schule|schwarz|science|scjohnson|scor|scot|sd|se|search|seat|secure|security|seek|select|sener|services|ses|seven|sew|sex|sexy|sfr|sg|sh|shangrila|sharp|shaw|shell|shia|shiksha|shoes|shop|shopping|shouji|show|showtime|shriram|si|silk|sina|singles|site|sj|sk|ski|skin|sky|skype|sl|sling|sm|smart|smile|sn|sncf|so|soccer|social|softbank|software|sohu|solar|solutions|song|sony|soy|space|spiegel|spot|spreadbetting|sr|srl|srt|st|stada|staples|star|starhub|statebank|statefarm|statoil|stc|stcgroup|stockholm|storage|store|stream|studio|study|style|su|sucks|supplies|supply|support|surf|surgery|suzuki|sv|swatch|swiftcover|swiss|sx|sy|sydney|symantec|systems|sz|tab|taipei|talk|taobao|target|tatamotors|tatar|tattoo|tax|taxi|tc|tci|td|tdk|team|tech|technology|tel|telecity|telefonica|temasek|tennis|teva|tf|tg|th|thd|theater|theatre|tiaa|tickets|tienda|tiffany|tips|tires|tirol|tj|tjmaxx|tjx|tk|tkmaxx|tl|tm|tmall|tn|to|today|tokyo|tools|top|toray|toshiba|total|tours|town|toyota|toys|tr|trade|trading|training|travel|travelchannel|travelers|travelersinsurance|trust|trv|tt|tube|tui|tunes|tushu|tv|tvs|tw|tz|ua|ubank|ubs|uconnect|ug|uk|unicom|university|uno|uol|ups|us|uy|uz|va|vacations|vana|vanguard|vc|ve|vegas|ventures|verisign|versicherung|vet|vg|vi|viajes|video|vig|viking|villas|vin|vip|virgin|visa|vision|vista|vistaprint|viva|vivo|vlaanderen|vn|vodka|volkswagen|volvo|vote|voting|voto|voyage|vu|vuelos|wales|walmart|walter|wang|wanggou|warman|watch|watches|weather|weatherchannel|webcam|weber|website|wed|wedding|weibo|weir|wf|whoswho|wien|wiki|williamhill|win|windows|wine|winners|wme|wolterskluwer|woodside|work|works|world|wow|ws|wtc|wtf|xbox|xerox|xfinity|xihuan|xin|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--30rr7y|xn--3bst00m|xn--3ds443g|xn--3e0b707e|xn--3hcrj9c|xn--3oq18vl8pn36a|xn--3pxu8k|xn--42c2d9a|xn--45br5cyl|xn--45brj9c|xn--45q11c|xn--4gbrim|xn--54b7fta0cc|xn--55qw42g|xn--55qx5d|xn--5su34j936bgsg|xn--5tzm5g|xn--6frz82g|xn--6qq986b3xl|xn--80adxhks|xn--80ao21a|xn--80aqecdr1a|xn--80asehdb|xn--80aswg|xn--8y0a063a|xn--90a3ac|xn--90ae|xn--90ais|xn--9dbq2a|xn--9et52u|xn--9krt00a|xn--b4w605ferd|xn--bck1b9a5dre4c|xn--c1avg|xn--c2br7g|xn--cck2b3b|xn--cg4bki|xn--clchc0ea0b2g2a9gcd|xn--czr694b|xn--czrs0t|xn--czru2d|xn--d1acj3b|xn--d1alf|xn--e1a4c|xn--eckvdtc9d|xn--efvy88h|xn--estv75g|xn--fct429k|xn--fhbei|xn--fiq228c5hs|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--fjq720a|xn--flw351e|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--fzys8d69uvgm|xn--g2xx48c|xn--gckr3f0f|xn--gecrj9c|xn--gk3at1e|xn--h2breg3eve|xn--h2brj9c|xn--h2brj9c8c|xn--hxt814e|xn--i1b6b1a6a2e|xn--imr513n|xn--io0a7i|xn--j1aef|xn--j1amh|xn--j6w193g|xn--jlq61u9w7b|xn--jvr189m|xn--kcrx77d1x4a|xn--kprw13d|xn--kpry57d|xn--kpu716f|xn--kput3i|xn--l1acc|xn--lgbbat1ad8j|xn--mgb9awbf|xn--mgba3a3ejt|xn--mgba3a4f16a|xn--mgba7c0bbn0a|xn--mgbaakc7dvf|xn--mgbaam7a8h|xn--mgbab2bd|xn--mgbai9azgqp6j|xn--mgbayh7gpa|xn--mgbb9fbpob|xn--mgbbh1a|xn--mgbbh1a71e|xn--mgbc0a9azcg|xn--mgbca7dzdo|xn--mgberp4a5d4ar|xn--mgbgu82a|xn--mgbi4ecexp|xn--mgbpl2fh|xn--mgbt3dhd|xn--mgbtx2b|xn--mgbx4cd0ab|xn--mix891f|xn--mk1bu44c|xn--mxtq1m|xn--ngbc5azd|xn--ngbe9e0a|xn--ngbrx|xn--node|xn--nqv7f|xn--nqv7fs00ema|xn--nyqy26a|xn--o3cw4h|xn--ogbpf8fl|xn--p1acf|xn--p1ai|xn--pbt977c|xn--pgbs0dh|xn--pssy2u|xn--q9jyb4c|xn--qcka1pmc|xn--qxam|xn--rhqv96g|xn--rovu88b|xn--rvc1e0am3e|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--tckwe|xn--tiq49xqyj|xn--unup4y|xn--vermgensberater-ctb|xn--vermgensberatung-pwb|xn--vhquv|xn--vuq861b|xn--w4r85el8fhu5dnra|xn--w4rs40l|xn--wgbh1c|xn--wgbl6a|xn--xhq521b|xn--xkc2al3hye2a|xn--xkc2dl3a5ee0h|xn--y9a3aq|xn--yfro4i67o|xn--ygbi2ammx|xn--zfr164b|xperia|xxx|xyz|yachts|yahoo|yamaxun|yandex|ye|yodobashi|yoga|yokohama|you|youtube|yt|yun|za|zappos|zara|zero|zip|zippo|zm|zone|zuerich|zw".split("|"), u = "0123456789".split(""), o = "0123456789abcdefghijklmnopqrstuvwxyz".split(""), f = [" ", "\f", "\r", " ", "\v", " ", " ", "᠎"], i = [], l = function(M) {
626
+ return new n.CharacterState(M);
627
+ }, s = l(), c = l(t.NUM), d = l(t.DOMAIN), m = l(), v = l(t.WS);
628
+ s.on("@", l(t.AT)).on(".", l(t.DOT)).on("+", l(t.PLUS)).on("#", l(t.POUND)).on("?", l(t.QUERY)).on("/", l(t.SLASH)).on("_", l(t.UNDERSCORE)).on(":", l(t.COLON)).on("{", l(t.OPENBRACE)).on("[", l(t.OPENBRACKET)).on("<", l(t.OPENANGLEBRACKET)).on("(", l(t.OPENPAREN)).on("}", l(t.CLOSEBRACE)).on("]", l(t.CLOSEBRACKET)).on(">", l(t.CLOSEANGLEBRACKET)).on(")", l(t.CLOSEPAREN)).on("&", l(t.AMPERSAND)).on([",", ";", "!", '"', "'"], l(t.PUNCTUATION)), s.on(`
629
+ `, l(t.NL)).on(f, v), v.on(f, v);
630
+ for (var b = 0; b < r.length; b++) {
631
+ var p = (0, n.stateify)(r[b], s, t.TLD, t.DOMAIN);
632
+ i.push.apply(i, p);
633
+ }
634
+ var L = (0, n.stateify)("file", s, t.DOMAIN, t.DOMAIN), _ = (0, n.stateify)("ftp", s, t.DOMAIN, t.DOMAIN), k = (0, n.stateify)("http", s, t.DOMAIN, t.DOMAIN), C = (0, n.stateify)("mailto", s, t.DOMAIN, t.DOMAIN);
635
+ i.push.apply(i, L), i.push.apply(i, _), i.push.apply(i, k), i.push.apply(i, C);
636
+ var R = L.pop(), T = _.pop(), y = k.pop(), I = C.pop(), A = l(t.DOMAIN), w = l(t.PROTOCOL), $ = l(t.MAILTO);
637
+ T.on("s", A).on(":", w), y.on("s", A).on(":", w), i.push(A), R.on(":", w), A.on(":", w), I.on(":", $);
638
+ var Y = (0, n.stateify)("localhost", s, t.LOCALHOST, t.DOMAIN);
639
+ i.push.apply(i, Y), s.on(u, c), c.on("-", m).on(u, c).on(o, d), d.on("-", m).on(o, d);
640
+ for (var q = 0; q < i.length; q++)
641
+ i[q].on("-", m).on(o, d);
642
+ m.on("-", m).on(u, d).on(o, d), s.defaultTransition = l(t.SYM);
643
+ var B = function(M) {
644
+ for (var V = M.replace(/[A-Z]/g, function(me) {
645
+ return me.toLowerCase();
646
+ }), H = M.length, te = [], P = 0; P < H; ) {
647
+ for (var Q = s, ie = null, ne = 0, O = null, x = -1; P < H && (ie = Q.next(V[P])); )
648
+ Q = ie, Q.accepts() ? (x = 0, O = Q) : x >= 0 && x++, ne++, P++;
649
+ if (!(x < 0)) {
650
+ P -= x, ne -= x;
651
+ var X = O.emit();
652
+ te.push(new X(M.substr(P - ne, ne)));
653
+ }
654
+ }
655
+ return te;
656
+ }, F = s;
657
+ return j.State = n.CharacterState, j.TOKENS = a, j.run = B, j.start = F, j;
658
+ }
659
+ var z = {}, N = {}, Me;
660
+ function Mt() {
661
+ if (Me) return N;
662
+ Me = 1, N.__esModule = !0, N.URL = N.TEXT = N.NL = N.EMAIL = N.MAILTOEMAIL = N.Base = void 0;
663
+ var n = Xe(), t = pe(), a = Le();
664
+ function e(s) {
665
+ return s instanceof a.DOMAIN || s instanceof a.TLD;
666
+ }
667
+ var r = (0, n.createTokenClass)();
668
+ r.prototype = {
669
+ /**
670
+ String representing the type for this token
671
+ @property type
672
+ @default 'TOKEN'
673
+ */
674
+ type: "token",
675
+ /**
676
+ Is this multitoken a link?
677
+ @property isLink
678
+ @default false
679
+ */
680
+ isLink: !1,
681
+ /**
682
+ Return the string this token represents.
683
+ @method toString
684
+ @return {String}
685
+ */
686
+ toString: function() {
687
+ for (var c = [], d = 0; d < this.v.length; d++)
688
+ c.push(this.v[d].toString());
689
+ return c.join("");
690
+ },
691
+ /**
692
+ What should the value for this token be in the `href` HTML attribute?
693
+ Returns the `.toString` value by default.
694
+ @method toHref
695
+ @return {String}
696
+ */
697
+ toHref: function() {
698
+ return this.toString();
699
+ },
700
+ /**
701
+ Returns a hash of relevant values for this token, which includes keys
702
+ * type - Kind of token ('url', 'email', etc.)
703
+ * value - Original text
704
+ * href - The value that should be added to the anchor tag's href
705
+ attribute
706
+ @method toObject
707
+ @param {String} [protocol] `'http'` by default
708
+ @return {Object}
709
+ */
710
+ toObject: function() {
711
+ var c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "http";
712
+ return {
713
+ type: this.type,
714
+ value: this.toString(),
715
+ href: this.toHref(c)
716
+ };
717
+ }
718
+ };
719
+ var u = (0, t.inherits)(r, (0, n.createTokenClass)(), {
720
+ type: "email",
721
+ isLink: !0
722
+ }), o = (0, t.inherits)(r, (0, n.createTokenClass)(), {
723
+ type: "email",
724
+ isLink: !0,
725
+ toHref: function() {
726
+ return "mailto:" + this.toString();
727
+ }
728
+ }), f = (0, t.inherits)(r, (0, n.createTokenClass)(), { type: "text" }), i = (0, t.inherits)(r, (0, n.createTokenClass)(), { type: "nl" }), l = (0, t.inherits)(r, (0, n.createTokenClass)(), {
729
+ type: "url",
730
+ isLink: !0,
731
+ /**
732
+ Lowercases relevant parts of the domain and adds the protocol if
733
+ required. Note that this will not escape unsafe HTML characters in the
734
+ URL.
735
+ @method href
736
+ @param {String} protocol
737
+ @return {String}
738
+ */
739
+ toHref: function() {
740
+ for (var c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "http", d = !1, m = !1, v = this.v, b = [], p = 0; v[p] instanceof a.PROTOCOL; )
741
+ d = !0, b.push(v[p].toString().toLowerCase()), p++;
742
+ for (; v[p] instanceof a.SLASH; )
743
+ m = !0, b.push(v[p].toString()), p++;
744
+ for (; e(v[p]); )
745
+ b.push(v[p].toString().toLowerCase()), p++;
746
+ for (; p < v.length; p++)
747
+ b.push(v[p].toString());
748
+ return b = b.join(""), d || m || (b = c + "://" + b), b;
749
+ },
750
+ hasProtocol: function() {
751
+ return this.v[0] instanceof a.PROTOCOL;
752
+ }
753
+ });
754
+ return N.Base = r, N.MAILTOEMAIL = u, N.EMAIL = o, N.NL = i, N.TEXT = f, N.URL = l, N;
755
+ }
756
+ var De;
757
+ function Dt() {
758
+ if (De) return z;
759
+ De = 1, z.__esModule = !0, z.start = z.run = z.TOKENS = z.State = void 0;
760
+ var n = Ve(), t = Mt(), a = r(t), e = Le();
761
+ function r(K) {
762
+ if (K && K.__esModule)
763
+ return K;
764
+ var D = {};
765
+ if (K != null)
766
+ for (var Z in K)
767
+ Object.prototype.hasOwnProperty.call(K, Z) && (D[Z] = K[Z]);
768
+ return D.default = K, D;
769
+ }
770
+ var u = function(D) {
771
+ return new n.TokenState(D);
772
+ }, o = u(), f = u(), i = u(), l = u(), s = u(), c = u(), d = u(), m = u(t.URL), v = u(), b = u(t.URL), p = u(t.URL), L = u(), _ = u(), k = u(), C = u(), R = u(), T = u(t.URL), y = u(t.URL), I = u(t.URL), A = u(t.URL), w = u(), $ = u(), Y = u(), q = u(), B = u(), F = u(), S = u(t.EMAIL), M = u(), V = u(t.EMAIL), H = u(t.MAILTOEMAIL), te = u(), P = u(), Q = u(), ie = u(), ne = u(t.NL);
773
+ o.on(e.NL, ne).on(e.PROTOCOL, f).on(e.MAILTO, i).on(e.SLASH, l), f.on(e.SLASH, l), l.on(e.SLASH, s), o.on(e.TLD, c).on(e.DOMAIN, c).on(e.LOCALHOST, m).on(e.NUM, c), s.on(e.TLD, p).on(e.DOMAIN, p).on(e.NUM, p).on(e.LOCALHOST, p), c.on(e.DOT, d), B.on(e.DOT, F), d.on(e.TLD, m).on(e.DOMAIN, c).on(e.NUM, c).on(e.LOCALHOST, c), F.on(e.TLD, S).on(e.DOMAIN, B).on(e.NUM, B).on(e.LOCALHOST, B), m.on(e.DOT, d), S.on(e.DOT, F), m.on(e.COLON, v).on(e.SLASH, p), v.on(e.NUM, b), b.on(e.SLASH, p), S.on(e.COLON, M), M.on(e.NUM, V);
774
+ var O = [e.DOMAIN, e.AT, e.LOCALHOST, e.NUM, e.PLUS, e.POUND, e.PROTOCOL, e.SLASH, e.TLD, e.UNDERSCORE, e.SYM, e.AMPERSAND], x = [e.COLON, e.DOT, e.QUERY, e.PUNCTUATION, e.CLOSEBRACE, e.CLOSEBRACKET, e.CLOSEANGLEBRACKET, e.CLOSEPAREN, e.OPENBRACE, e.OPENBRACKET, e.OPENANGLEBRACKET, e.OPENPAREN];
775
+ p.on(e.OPENBRACE, _).on(e.OPENBRACKET, k).on(e.OPENANGLEBRACKET, C).on(e.OPENPAREN, R), L.on(e.OPENBRACE, _).on(e.OPENBRACKET, k).on(e.OPENANGLEBRACKET, C).on(e.OPENPAREN, R), _.on(e.CLOSEBRACE, p), k.on(e.CLOSEBRACKET, p), C.on(e.CLOSEANGLEBRACKET, p), R.on(e.CLOSEPAREN, p), T.on(e.CLOSEBRACE, p), y.on(e.CLOSEBRACKET, p), I.on(e.CLOSEANGLEBRACKET, p), A.on(e.CLOSEPAREN, p), w.on(e.CLOSEBRACE, p), $.on(e.CLOSEBRACKET, p), Y.on(e.CLOSEANGLEBRACKET, p), q.on(e.CLOSEPAREN, p), _.on(O, T), k.on(O, y), C.on(O, I), R.on(O, A), _.on(x, w), k.on(x, $), C.on(x, Y), R.on(x, q), T.on(O, T), y.on(O, y), I.on(O, I), A.on(O, A), T.on(x, T), y.on(x, y), I.on(x, I), A.on(x, A), w.on(O, T), $.on(O, y), Y.on(O, I), q.on(O, A), w.on(x, w), $.on(x, $), Y.on(x, Y), q.on(x, q), p.on(O, p), L.on(O, p), p.on(x, L), L.on(x, L), i.on(e.TLD, H).on(e.DOMAIN, H).on(e.NUM, H).on(e.LOCALHOST, H), H.on(O, H).on(x, te), te.on(O, H).on(x, te);
776
+ var X = [e.DOMAIN, e.NUM, e.PLUS, e.POUND, e.QUERY, e.UNDERSCORE, e.SYM, e.AMPERSAND, e.TLD];
777
+ c.on(X, P).on(e.AT, Q), m.on(X, P).on(e.AT, Q), d.on(X, P), P.on(X, P).on(e.AT, Q).on(e.DOT, ie), ie.on(X, P), Q.on(e.TLD, B).on(e.DOMAIN, B).on(e.LOCALHOST, S);
778
+ var me = function(D) {
779
+ for (var Z = D.length, U = 0, le = [], J = []; U < Z; ) {
780
+ for (var se = o, ve = null, Ne = null, ce = 0, Te = null, ae = -1; U < Z && !(ve = se.next(D[U])); )
781
+ J.push(D[U++]);
782
+ for (; U < Z && (Ne = ve || se.next(D[U])); )
783
+ ve = null, se = Ne, se.accepts() ? (ae = 0, Te = se) : ae >= 0 && ae++, U++, ce++;
784
+ if (ae < 0)
785
+ for (var ge = U - ce; ge < U; ge++)
786
+ J.push(D[ge]);
787
+ else {
788
+ J.length > 0 && (le.push(new t.TEXT(J)), J = []), U -= ae, ce -= ae;
789
+ var Ze = Te.emit();
790
+ le.push(new Ze(D.slice(U - ce, U)));
791
+ }
792
+ }
793
+ return J.length > 0 && le.push(new t.TEXT(J)), le;
794
+ };
795
+ return z.State = n.TokenState, z.TOKENS = a, z.run = me, z.start = o, z;
796
+ }
797
+ var Ue;
798
+ function Ut() {
799
+ if (Ue) return E;
800
+ Ue = 1, E.__esModule = !0, E.tokenize = E.test = E.scanner = E.parser = E.options = E.inherits = E.find = void 0;
801
+ var n = pe(), t = Rt(), a = f(t), e = wt(), r = f(e), u = Dt(), o = f(u);
802
+ function f(c) {
803
+ if (c && c.__esModule)
804
+ return c;
805
+ var d = {};
806
+ if (c != null)
807
+ for (var m in c)
808
+ Object.prototype.hasOwnProperty.call(c, m) && (d[m] = c[m]);
809
+ return d.default = c, d;
810
+ }
811
+ Array.isArray || (Array.isArray = function(c) {
812
+ return Object.prototype.toString.call(c) === "[object Array]";
813
+ });
814
+ var i = function(d) {
815
+ return o.run(r.run(d));
816
+ }, l = function(d) {
817
+ for (var m = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, v = i(d), b = [], p = 0; p < v.length; p++) {
818
+ var L = v[p];
819
+ L.isLink && (!m || L.type === m) && b.push(L.toObject());
820
+ }
821
+ return b;
822
+ }, s = function(d) {
823
+ var m = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, v = i(d);
824
+ return v.length === 1 && v[0].isLink && (!m || v[0].type === m);
825
+ };
826
+ return E.find = l, E.inherits = n.inherits, E.options = a, E.parser = o, E.scanner = r, E.test = s, E.tokenize = i, E;
827
+ }
828
+ var Ie;
829
+ function It() {
830
+ if (Ie) return ue;
831
+ Ie = 1, ue.__esModule = !0;
832
+ var n = Ut(), t = a(n);
833
+ function a(s) {
834
+ if (s && s.__esModule)
835
+ return s;
836
+ var c = {};
837
+ if (s != null)
838
+ for (var d in s)
839
+ Object.prototype.hasOwnProperty.call(s, d) && (c[d] = s[d]);
840
+ return c.default = s, c;
841
+ }
842
+ var e = t.tokenize, r = t.options, u = r.Options;
843
+ function o(s) {
844
+ return s.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
845
+ }
846
+ function f(s) {
847
+ return s.replace(/"/g, "&quot;");
848
+ }
849
+ function i(s) {
850
+ if (!s)
851
+ return "";
852
+ var c = [];
853
+ for (var d in s) {
854
+ var m = s[d] + "";
855
+ c.push(d + '="' + f(m) + '"');
856
+ }
857
+ return c.join(" ");
858
+ }
859
+ function l(s) {
860
+ var c = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
861
+ c = new u(c);
862
+ for (var d = e(s), m = [], v = 0; v < d.length; v++) {
863
+ var b = d[v];
864
+ if (b.type === "nl" && c.nl2br) {
865
+ m.push(`<br>
866
+ `);
867
+ continue;
868
+ } else if (!b.isLink || !c.check(b)) {
869
+ m.push(o(b.toString()));
870
+ continue;
871
+ }
872
+ var p = c.resolve(b), L = p.formatted, _ = p.formattedHref, k = p.tagName, C = p.className, R = p.target, T = p.attributes, y = "<" + k + ' href="' + f(_) + '"';
873
+ C && (y += ' class="' + f(C) + '"'), R && (y += ' target="' + f(R) + '"'), T && (y += " " + i(T)), y += ">" + o(L) + "</" + k + ">", m.push(y);
874
+ }
875
+ return m.join("");
876
+ }
877
+ if (!String.prototype.linkify)
878
+ try {
879
+ Object.defineProperty(String.prototype, "linkify", {
880
+ set: function() {
881
+ },
882
+ get: function() {
883
+ return function(d) {
884
+ return l(this, d);
885
+ };
886
+ }
887
+ });
888
+ } catch {
889
+ String.prototype.linkify || (String.prototype.linkify = function(c) {
890
+ return l(this, c);
891
+ });
892
+ }
893
+ return ue.default = l, ue;
894
+ }
895
+ var xe, qe;
896
+ function qt() {
897
+ return qe || (qe = 1, xe = It().default), xe;
898
+ }
899
+ var jt = qt();
900
+ const zt = /* @__PURE__ */ nt(jt), je = {
901
+ className: "info-link",
902
+ defaultProtocol: "https"
903
+ }, Wt = {
904
+ /**
905
+ * The underlying linkifyStr interface escapes text within the input string
906
+ */
907
+ linkifyText(n, t) {
908
+ if (!n) return;
909
+ const a = t ? at({}, je, t) : je;
910
+ return zt(n, a);
911
+ }
912
+ };
913
+ export {
914
+ $t as I,
915
+ Wt as L,
916
+ Yt as O,
917
+ gt as R,
918
+ ft as S,
919
+ kt as T,
920
+ Gt as V,
921
+ vt as a,
922
+ Ye as b,
923
+ Ft as c,
924
+ Qt as u
925
+ };