@peculiar/certificates-viewer 2.0.0 → 3.0.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 (304) hide show
  1. package/README.md +3 -3
  2. package/dist/cjs/_commonjsHelpers-cb1f949a.js +23 -0
  3. package/dist/cjs/{download-ccba709e.js → certification_request-96951e7b.js} +2889 -3334
  4. package/dist/cjs/{dom-760f300f.js → dom-f57e260e.js} +4 -1
  5. package/dist/cjs/download-5e7d5455.js +438 -0
  6. package/dist/cjs/{index-2973f90a.js → index-064e95c7.js} +287 -634
  7. package/dist/cjs/index.cjs.js +12 -0
  8. package/dist/cjs/{l10n-e971a5ac.js → l10n-2e7def18.js} +72 -90
  9. package/dist/cjs/loader.cjs.js +12 -3
  10. package/dist/cjs/peculiar-attribute-certificate-viewer_9.cjs.entry.js +1426 -1391
  11. package/dist/cjs/peculiar-certificate-summary_3.cjs.entry.js +66 -62
  12. package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +222 -217
  13. package/dist/cjs/peculiar.cjs.js +70 -3
  14. package/dist/collection/collection-manifest.json +2 -2
  15. package/dist/collection/components/attribute-certificate-viewer/attribute-certificate-viewer.js +220 -205
  16. package/dist/collection/components/attribute-certificate-viewer/holder.js +27 -24
  17. package/dist/collection/components/attribute-certificate-viewer/issuer.js +11 -8
  18. package/dist/collection/components/button/button.css +2 -7
  19. package/dist/collection/components/button/button.js +125 -122
  20. package/dist/collection/components/button-split/button-split.js +103 -100
  21. package/dist/collection/components/certificate-decoder/certificate-decoder.css +1 -3
  22. package/dist/collection/components/certificate-decoder/certificate-decoder.js +158 -155
  23. package/dist/collection/components/certificate-summary/certificate-summary.js +75 -72
  24. package/dist/collection/components/certificate-viewer/attributes/activity_description_attribute.js +11 -8
  25. package/dist/collection/components/certificate-viewer/attributes/as_string_attribute.js +6 -3
  26. package/dist/collection/components/certificate-viewer/attributes/basic_attribute.js +11 -8
  27. package/dist/collection/components/certificate-viewer/attributes/challenge_password_attribute.js +6 -3
  28. package/dist/collection/components/certificate-viewer/attributes/index.js +45 -42
  29. package/dist/collection/components/certificate-viewer/attributes/insurance_value_attribute.js +7 -4
  30. package/dist/collection/components/certificate-viewer/attributes/name_attribute.js +6 -3
  31. package/dist/collection/components/certificate-viewer/attributes/name_part.js +8 -5
  32. package/dist/collection/components/certificate-viewer/attributes/type_relationship_attribute.js +5 -2
  33. package/dist/collection/components/certificate-viewer/attributes/unstructured_name_attribute.js +6 -3
  34. package/dist/collection/components/certificate-viewer/attributes/valuation_ranking_attribute.js +18 -15
  35. package/dist/collection/components/certificate-viewer/attributes/web_gdpr_attribute.js +13 -10
  36. package/dist/collection/components/certificate-viewer/basic_information.js +13 -10
  37. package/dist/collection/components/certificate-viewer/certificate-viewer.js +255 -240
  38. package/dist/collection/components/certificate-viewer/extensions/archive_rev_info_extension.js +6 -3
  39. package/dist/collection/components/certificate-viewer/extensions/as_string_extension.js +6 -3
  40. package/dist/collection/components/certificate-viewer/extensions/attribute_value.js +4 -1
  41. package/dist/collection/components/certificate-viewer/extensions/authority_key_identifier_extension.js +18 -15
  42. package/dist/collection/components/certificate-viewer/extensions/basic_constraints_extension.js +7 -4
  43. package/dist/collection/components/certificate-viewer/extensions/basic_extension.js +12 -9
  44. package/dist/collection/components/certificate-viewer/extensions/biometric_syntax_extension.js +12 -9
  45. package/dist/collection/components/certificate-viewer/extensions/ca_version_extension.js +8 -5
  46. package/dist/collection/components/certificate-viewer/extensions/certificate_policies_extension.js +28 -25
  47. package/dist/collection/components/certificate-viewer/extensions/certificate_template_extension.js +8 -5
  48. package/dist/collection/components/certificate-viewer/extensions/certificate_transparency_extension.js +13 -10
  49. package/dist/collection/components/certificate-viewer/extensions/crl_distribution_points_extension.js +11 -8
  50. package/dist/collection/components/certificate-viewer/extensions/crl_reason_extension.js +6 -3
  51. package/dist/collection/components/certificate-viewer/extensions/enroll_cert_type_extension.js +6 -3
  52. package/dist/collection/components/certificate-viewer/extensions/entrust_version_info_extension.js +7 -4
  53. package/dist/collection/components/certificate-viewer/extensions/extended_key_usage_extension.js +5 -2
  54. package/dist/collection/components/certificate-viewer/extensions/general_name_part.js +55 -52
  55. package/dist/collection/components/certificate-viewer/extensions/index.js +112 -109
  56. package/dist/collection/components/certificate-viewer/extensions/info_access_syntax_extension.js +9 -6
  57. package/dist/collection/components/certificate-viewer/extensions/key_usage_extension.js +6 -3
  58. package/dist/collection/components/certificate-viewer/extensions/lei_extension.js +6 -3
  59. package/dist/collection/components/certificate-viewer/extensions/lei_role_extennsion.js +6 -3
  60. package/dist/collection/components/certificate-viewer/extensions/logotype_extension.js +49 -46
  61. package/dist/collection/components/certificate-viewer/extensions/name_constraints_extension.js +8 -5
  62. package/dist/collection/components/certificate-viewer/extensions/netscape_cert_type_extension.js +6 -3
  63. package/dist/collection/components/certificate-viewer/extensions/netscape_comment_extension.js +6 -3
  64. package/dist/collection/components/certificate-viewer/extensions/policy_constraints_extension.js +7 -4
  65. package/dist/collection/components/certificate-viewer/extensions/policy_mappings_extension.js +9 -6
  66. package/dist/collection/components/certificate-viewer/extensions/private_key_usage_period_extension.js +7 -4
  67. package/dist/collection/components/certificate-viewer/extensions/qc_statements_extension.js +9 -6
  68. package/dist/collection/components/certificate-viewer/extensions/subject_alternative_name_extension.js +5 -2
  69. package/dist/collection/components/certificate-viewer/extensions/subject_directory_attributes_extension.js +9 -6
  70. package/dist/collection/components/certificate-viewer/extensions/subject_key_identifier_extension.js +18 -15
  71. package/dist/collection/components/certificate-viewer/extensions/timestamp_extension.js +8 -5
  72. package/dist/collection/components/certificate-viewer/extensions/tn_auth_list_extension.js +10 -7
  73. package/dist/collection/components/certificate-viewer/get_string_by_oid.js +8 -5
  74. package/dist/collection/components/certificate-viewer/issuer_name.js +9 -6
  75. package/dist/collection/components/certificate-viewer/miscellaneous.js +29 -26
  76. package/dist/collection/components/certificate-viewer/public_key.js +31 -28
  77. package/dist/collection/components/certificate-viewer/row.js +35 -32
  78. package/dist/collection/components/certificate-viewer/signature.js +12 -9
  79. package/dist/collection/components/certificate-viewer/subject_name.js +8 -5
  80. package/dist/collection/components/certificate-viewer/thumbprints.js +15 -12
  81. package/dist/collection/components/certificates-viewer/certificates-viewer.css +1 -19
  82. package/dist/collection/components/certificates-viewer/certificates-viewer.js +384 -381
  83. package/dist/collection/components/circular-progress/circular-progress.css +2 -24
  84. package/dist/collection/components/circular-progress/circular-progress.js +73 -70
  85. package/dist/collection/components/csr-viewer/csr-viewer.js +197 -188
  86. package/dist/collection/components/highlight-words/highlight-words.js +56 -53
  87. package/dist/collection/components/link/link.css +1 -3
  88. package/dist/collection/components/link/link.js +60 -57
  89. package/dist/collection/components/text-hider/text-hider.js +75 -72
  90. package/dist/collection/components/typography/typography.css +1 -3
  91. package/dist/collection/components/typography/typography.js +126 -123
  92. package/dist/collection/constants/logs.js +79 -76
  93. package/dist/collection/constants/oids.js +2301 -2298
  94. package/dist/collection/crypto/asn_data.js +33 -32
  95. package/dist/collection/crypto/attribute.js +52 -49
  96. package/dist/collection/crypto/csr.js +64 -61
  97. package/dist/collection/crypto/extension.js +126 -123
  98. package/dist/collection/crypto/index.js +3 -0
  99. package/dist/collection/crypto/name.js +33 -32
  100. package/dist/collection/crypto/provider.js +28 -25
  101. package/dist/collection/crypto/utils.js +24 -21
  102. package/dist/collection/crypto/x509_attribute_certificate.js +61 -58
  103. package/dist/collection/crypto/x509_certificate.js +107 -104
  104. package/dist/collection/index.js +5 -1
  105. package/dist/collection/utils/date_formatter.js +19 -16
  106. package/dist/collection/utils/download.js +18 -15
  107. package/dist/collection/utils/download_from_buffer.js +30 -25
  108. package/dist/collection/utils/history.js +5 -2
  109. package/dist/collection/utils/index.js +3 -0
  110. package/dist/collection/utils/is_link.js +4 -1
  111. package/dist/collection/utils/l10n.js +28 -25
  112. package/dist/collection/utils/parse_hash.js +16 -13
  113. package/dist/collection/utils/query_stringify.js +12 -9
  114. package/dist/collection/utils/read_file.js +43 -40
  115. package/dist/collection/utils/third_party_links.js +3 -0
  116. package/dist/collection/utils/validator.js +15 -12
  117. package/dist/esm/_commonjsHelpers-bfbd2ad8.js +20 -0
  118. package/dist/esm/{download-efafe986.js → certification_request-48e8b956.js} +2907 -3349
  119. package/dist/esm/{dom-91ed8d21.js → dom-f1b08a97.js} +4 -1
  120. package/dist/esm/download-cf68ac2c.js +434 -0
  121. package/dist/esm/{index-5ef692cc.js → index-bbd484d9.js} +278 -624
  122. package/dist/esm/index.js +5 -0
  123. package/dist/esm/{l10n-c8cf6930.js → l10n-ead9928b.js} +71 -86
  124. package/dist/esm/{loader.mjs → loader.js} +11 -2
  125. package/dist/esm/peculiar-attribute-certificate-viewer_9.entry.js +1425 -1390
  126. package/dist/esm/peculiar-certificate-summary_3.entry.js +66 -62
  127. package/dist/esm/peculiar-certificates-viewer.entry.js +222 -217
  128. package/dist/esm/peculiar.js +73 -0
  129. package/dist/esm/polyfills/css-shim.js +1 -1
  130. package/dist/esm/polyfills/index.js +2 -2
  131. package/dist/esm-es5/_commonjsHelpers-bfbd2ad8.js +4 -0
  132. package/dist/esm-es5/certification_request-48e8b956.js +89 -0
  133. package/dist/esm-es5/dom-f1b08a97.js +24 -0
  134. package/dist/esm-es5/download-cf68ac2c.js +18 -0
  135. package/dist/esm-es5/index-bbd484d9.js +5 -0
  136. package/dist/esm-es5/index.js +4 -0
  137. package/dist/esm-es5/l10n-ead9928b.js +39 -0
  138. package/dist/esm-es5/loader.js +4 -0
  139. package/dist/esm-es5/peculiar-attribute-certificate-viewer_9.entry.js +198 -1907
  140. package/dist/esm-es5/peculiar-certificate-summary_3.entry.js +4 -83
  141. package/dist/esm-es5/peculiar-certificates-viewer.entry.js +4 -290
  142. package/dist/esm-es5/peculiar.js +4 -0
  143. package/dist/index.cjs.js +1 -0
  144. package/dist/index.js +1 -1
  145. package/dist/peculiar/index.esm.js +4 -0
  146. package/dist/peculiar/p-047b12d9.system.js +89 -0
  147. package/dist/peculiar/p-13e9d17d.system.entry.js +460 -0
  148. package/dist/peculiar/p-29cdd256.system.js +18 -0
  149. package/dist/peculiar/{p-75076c56.system.js → p-3929074b.system.js} +18 -15
  150. package/dist/peculiar/p-452d69af.entry.js +113 -0
  151. package/dist/peculiar/p-4f52a24f.system.js +39 -0
  152. package/dist/peculiar/p-5f7fbf05.system.entry.js +4 -0
  153. package/dist/peculiar/p-82033e2e.system.entry.js +4 -0
  154. package/dist/peculiar/p-886e9c53.js +87 -0
  155. package/dist/peculiar/p-88fbaf05.system.js +4 -0
  156. package/dist/peculiar/p-8df391dc.system.js +4 -0
  157. package/dist/peculiar/p-9837be14.system.js +5 -0
  158. package/dist/peculiar/p-9ae6b1f8.entry.js +4 -0
  159. package/dist/peculiar/{p-3d1015c2.js → p-9f4ee110.js} +5 -2
  160. package/dist/peculiar/p-c774ec0b.js +18 -0
  161. package/dist/peculiar/p-d09b762f.js +33 -0
  162. package/dist/peculiar/p-d0b55fbb.js +4 -0
  163. package/dist/peculiar/p-e5f99586.entry.js +4 -0
  164. package/dist/peculiar/p-ee0e2707.system.js +4 -0
  165. package/dist/peculiar/p-f7683ba5.js +5 -0
  166. package/dist/peculiar/peculiar.esm.js +4 -1
  167. package/dist/peculiar/peculiar.js +1 -3
  168. package/dist/types/components/attribute-certificate-viewer/attribute-certificate-viewer.d.ts +56 -56
  169. package/dist/types/components/attribute-certificate-viewer/holder.d.ts +1 -1
  170. package/dist/types/components/attribute-certificate-viewer/issuer.d.ts +1 -1
  171. package/dist/types/components/button/button.d.ts +17 -17
  172. package/dist/types/components/button-split/button-split.d.ts +10 -10
  173. package/dist/types/components/certificate-decoder/certificate-decoder.d.ts +16 -16
  174. package/dist/types/components/certificate-summary/certificate-summary.d.ts +4 -4
  175. package/dist/types/components/certificate-viewer/attributes/activity_description_attribute.d.ts +1 -1
  176. package/dist/types/components/certificate-viewer/attributes/as_string_attribute.d.ts +1 -1
  177. package/dist/types/components/certificate-viewer/attributes/basic_attribute.d.ts +1 -1
  178. package/dist/types/components/certificate-viewer/attributes/challenge_password_attribute.d.ts +1 -1
  179. package/dist/types/components/certificate-viewer/attributes/index.d.ts +1 -1
  180. package/dist/types/components/certificate-viewer/attributes/insurance_value_attribute.d.ts +1 -1
  181. package/dist/types/components/certificate-viewer/attributes/name_attribute.d.ts +1 -1
  182. package/dist/types/components/certificate-viewer/attributes/name_part.d.ts +1 -1
  183. package/dist/types/components/certificate-viewer/attributes/type_relationship_attribute.d.ts +1 -1
  184. package/dist/types/components/certificate-viewer/attributes/unstructured_name_attribute.d.ts +1 -1
  185. package/dist/types/components/certificate-viewer/attributes/valuation_ranking_attribute.d.ts +1 -1
  186. package/dist/types/components/certificate-viewer/attributes/web_gdpr_attribute.d.ts +1 -1
  187. package/dist/types/components/certificate-viewer/basic_information.d.ts +6 -6
  188. package/dist/types/components/certificate-viewer/certificate-viewer.d.ts +66 -66
  189. package/dist/types/components/certificate-viewer/extensions/archive_rev_info_extension.d.ts +1 -1
  190. package/dist/types/components/certificate-viewer/extensions/as_string_extension.d.ts +1 -1
  191. package/dist/types/components/certificate-viewer/extensions/authority_key_identifier_extension.d.ts +1 -1
  192. package/dist/types/components/certificate-viewer/extensions/basic_constraints_extension.d.ts +1 -1
  193. package/dist/types/components/certificate-viewer/extensions/basic_extension.d.ts +1 -1
  194. package/dist/types/components/certificate-viewer/extensions/biometric_syntax_extension.d.ts +1 -1
  195. package/dist/types/components/certificate-viewer/extensions/ca_version_extension.d.ts +1 -1
  196. package/dist/types/components/certificate-viewer/extensions/certificate_policies_extension.d.ts +1 -1
  197. package/dist/types/components/certificate-viewer/extensions/certificate_template_extension.d.ts +1 -1
  198. package/dist/types/components/certificate-viewer/extensions/certificate_transparency_extension.d.ts +1 -1
  199. package/dist/types/components/certificate-viewer/extensions/crl_distribution_points_extension.d.ts +1 -1
  200. package/dist/types/components/certificate-viewer/extensions/crl_reason_extension.d.ts +1 -1
  201. package/dist/types/components/certificate-viewer/extensions/enroll_cert_type_extension.d.ts +1 -1
  202. package/dist/types/components/certificate-viewer/extensions/entrust_version_info_extension.d.ts +1 -1
  203. package/dist/types/components/certificate-viewer/extensions/extended_key_usage_extension.d.ts +1 -1
  204. package/dist/types/components/certificate-viewer/extensions/general_name_part.d.ts +1 -1
  205. package/dist/types/components/certificate-viewer/extensions/index.d.ts +2 -2
  206. package/dist/types/components/certificate-viewer/extensions/info_access_syntax_extension.d.ts +1 -1
  207. package/dist/types/components/certificate-viewer/extensions/key_usage_extension.d.ts +1 -1
  208. package/dist/types/components/certificate-viewer/extensions/lei_extension.d.ts +1 -1
  209. package/dist/types/components/certificate-viewer/extensions/lei_role_extennsion.d.ts +1 -1
  210. package/dist/types/components/certificate-viewer/extensions/logotype_extension.d.ts +1 -1
  211. package/dist/types/components/certificate-viewer/extensions/name_constraints_extension.d.ts +1 -1
  212. package/dist/types/components/certificate-viewer/extensions/netscape_cert_type_extension.d.ts +1 -1
  213. package/dist/types/components/certificate-viewer/extensions/netscape_comment_extension.d.ts +1 -1
  214. package/dist/types/components/certificate-viewer/extensions/policy_constraints_extension.d.ts +1 -1
  215. package/dist/types/components/certificate-viewer/extensions/policy_mappings_extension.d.ts +1 -1
  216. package/dist/types/components/certificate-viewer/extensions/private_key_usage_period_extension.d.ts +1 -1
  217. package/dist/types/components/certificate-viewer/extensions/qc_statements_extension.d.ts +1 -1
  218. package/dist/types/components/certificate-viewer/extensions/subject_alternative_name_extension.d.ts +1 -1
  219. package/dist/types/components/certificate-viewer/extensions/subject_directory_attributes_extension.d.ts +1 -1
  220. package/dist/types/components/certificate-viewer/extensions/subject_key_identifier_extension.d.ts +1 -1
  221. package/dist/types/components/certificate-viewer/extensions/timestamp_extension.d.ts +1 -1
  222. package/dist/types/components/certificate-viewer/extensions/tn_auth_list_extension.d.ts +1 -1
  223. package/dist/types/components/certificate-viewer/issuer_name.d.ts +2 -2
  224. package/dist/types/components/certificate-viewer/miscellaneous.d.ts +1 -1
  225. package/dist/types/components/certificate-viewer/public_key.d.ts +1 -1
  226. package/dist/types/components/certificate-viewer/row.d.ts +7 -7
  227. package/dist/types/components/certificate-viewer/signature.d.ts +1 -1
  228. package/dist/types/components/certificate-viewer/subject_name.d.ts +1 -1
  229. package/dist/types/components/certificate-viewer/thumbprints.d.ts +1 -1
  230. package/dist/types/components/certificate-viewer/types.d.ts +26 -0
  231. package/dist/types/components/certificates-viewer/certificates-viewer.d.ts +64 -64
  232. package/dist/types/components/circular-progress/circular-progress.d.ts +10 -10
  233. package/dist/types/components/csr-viewer/csr-viewer.d.ts +45 -45
  234. package/dist/types/components/highlight-words/highlight-words.d.ts +8 -8
  235. package/dist/types/components/link/link.d.ts +6 -6
  236. package/dist/types/components/text-hider/text-hider.d.ts +4 -4
  237. package/dist/types/components/typography/typography.d.ts +18 -18
  238. package/dist/types/components.d.ts +11 -3
  239. package/dist/types/constants/logs.d.ts +76 -76
  240. package/dist/types/constants/oids.d.ts +2293 -2293
  241. package/dist/types/crypto/asn_data.d.ts +6 -6
  242. package/dist/types/crypto/attribute.d.ts +3 -3
  243. package/dist/types/crypto/csr.d.ts +19 -19
  244. package/dist/types/crypto/extension.d.ts +3 -3
  245. package/dist/types/crypto/name.d.ts +7 -7
  246. package/dist/types/crypto/provider.d.ts +15 -15
  247. package/dist/types/crypto/x509_attribute_certificate.d.ts +22 -22
  248. package/dist/types/crypto/x509_certificate.d.ts +28 -28
  249. package/dist/types/index.d.ts +2 -1
  250. package/dist/types/interface.d.ts +3 -0
  251. package/dist/types/stencil-public-runtime.d.ts +230 -217
  252. package/dist/types/utils/download.d.ts +8 -8
  253. package/dist/types/utils/download_from_buffer.d.ts +3 -3
  254. package/dist/types/utils/l10n.d.ts +43 -43
  255. package/dist/types/utils/read_file.d.ts +7 -7
  256. package/loader/cdn.js +3 -1
  257. package/loader/index.cjs.js +3 -1
  258. package/loader/index.d.ts +0 -1
  259. package/loader/index.es2017.js +5 -0
  260. package/loader/{index.mjs → index.js} +4 -2
  261. package/loader/package.json +4 -5
  262. package/package.json +32 -33
  263. package/dist/cjs/css-shim-1b988199.js +0 -6
  264. package/dist/cjs/patch-15ea31af.js +0 -112
  265. package/dist/cjs/shadow-css-376763e9.js +0 -385
  266. package/dist/esm/css-shim-5ce2b5c4.js +0 -4
  267. package/dist/esm/index.mjs +0 -1
  268. package/dist/esm/patch-f8a17185.js +0 -109
  269. package/dist/esm/peculiar.mjs +0 -6
  270. package/dist/esm/shadow-css-95922619.js +0 -383
  271. package/dist/esm-es5/css-shim-5ce2b5c4.js +0 -122
  272. package/dist/esm-es5/dom-91ed8d21.js +0 -468
  273. package/dist/esm-es5/download-efafe986.js +0 -12704
  274. package/dist/esm-es5/index-5ef692cc.js +0 -1839
  275. package/dist/esm-es5/index.mjs +0 -0
  276. package/dist/esm-es5/l10n-c8cf6930.js +0 -758
  277. package/dist/esm-es5/loader.mjs +0 -10
  278. package/dist/esm-es5/patch-f8a17185.js +0 -106
  279. package/dist/esm-es5/peculiar.mjs +0 -5
  280. package/dist/esm-es5/shadow-css-95922619.js +0 -408
  281. package/dist/index.mjs +0 -1
  282. package/dist/peculiar/p-0ad0b6e8.js +0 -1
  283. package/dist/peculiar/p-198d9121.js +0 -1
  284. package/dist/peculiar/p-294c4ef9.entry.js +0 -1
  285. package/dist/peculiar/p-368352ac.system.js +0 -100
  286. package/dist/peculiar/p-4b7cd42f.js +0 -12
  287. package/dist/peculiar/p-50ea2036.system.js +0 -1
  288. package/dist/peculiar/p-557d912f.system.js +0 -1
  289. package/dist/peculiar/p-60e08389.system.entry.js +0 -1
  290. package/dist/peculiar/p-63588298.js +0 -100
  291. package/dist/peculiar/p-983b5210.system.entry.js +0 -1
  292. package/dist/peculiar/p-9f815f76.system.js +0 -1
  293. package/dist/peculiar/p-aa0a9b36.system.js +0 -1
  294. package/dist/peculiar/p-b8de1700.entry.js +0 -110
  295. package/dist/peculiar/p-bd1f9066.system.js +0 -36
  296. package/dist/peculiar/p-bd949790.js +0 -1
  297. package/dist/peculiar/p-cf1841f8.js +0 -30
  298. package/dist/peculiar/p-e652bcd4.system.entry.js +0 -457
  299. package/dist/peculiar/p-e6d55f8a.entry.js +0 -1
  300. package/dist/peculiar/p-fb53799e.system.js +0 -1
  301. package/dist/peculiar/p-fdad110e.system.js +0 -13
  302. package/dist/peculiar.js +0 -30
  303. package/loader/index.es2017.mjs +0 -3
  304. package/loader/node-main.js +0 -3
@@ -1,468 +0,0 @@
1
- /*
2
- Stencil Client Patch v1.17.4 | MIT Licensed | https://stenciljs.com
3
- */
4
- (function () {
5
- var aa = new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));
6
- function g(a) { var b = aa.has(a); a = /^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(a); return !b && a; }
7
- function l(a) { var b = a.isConnected; if (void 0 !== b)
8
- return b; for (; a && !(a.__CE_isImportDocument || a instanceof Document);)
9
- a = a.parentNode || (window.ShadowRoot && a instanceof ShadowRoot ? a.host : void 0); return !(!a || !(a.__CE_isImportDocument || a instanceof Document)); }
10
- function n(a, b) { for (; b && b !== a && !b.nextSibling;)
11
- b = b.parentNode; return b && b !== a ? b.nextSibling : null; }
12
- function p(a, b, d) { d = void 0 === d ? new Set : d; for (var c = a; c;) {
13
- if (c.nodeType === Node.ELEMENT_NODE) {
14
- var e = c;
15
- b(e);
16
- var f = e.localName;
17
- if ("link" === f && "import" === e.getAttribute("rel")) {
18
- c = e.import;
19
- if (c instanceof Node && !d.has(c))
20
- for (d.add(c), c = c.firstChild; c; c = c.nextSibling)
21
- p(c, b, d);
22
- c = n(a, e);
23
- continue;
24
- }
25
- else if ("template" === f) {
26
- c = n(a, e);
27
- continue;
28
- }
29
- if (e = e.__CE_shadowRoot)
30
- for (e = e.firstChild; e; e = e.nextSibling)
31
- p(e, b, d);
32
- }
33
- c = c.firstChild ? c.firstChild : n(a, c);
34
- } }
35
- function r(a, b, d) { a[b] = d; }
36
- function u() { this.a = new Map; this.g = new Map; this.c = []; this.f = []; this.b = !1; }
37
- function ba(a, b, d) { a.a.set(b, d); a.g.set(d.constructorFunction, d); }
38
- function ca(a, b) { a.b = !0; a.c.push(b); }
39
- function da(a, b) { a.b = !0; a.f.push(b); }
40
- function v(a, b) { a.b && p(b, function (b) { return w(a, b); }); }
41
- function w(a, b) { if (a.b && !b.__CE_patched) {
42
- b.__CE_patched = !0;
43
- for (var d = 0; d < a.c.length; d++)
44
- a.c[d](b);
45
- for (d = 0; d < a.f.length; d++)
46
- a.f[d](b);
47
- } }
48
- function x(a, b) { var d = []; p(b, function (b) { return d.push(b); }); for (b = 0; b < d.length; b++) {
49
- var c = d[b];
50
- 1 === c.__CE_state ? a.connectedCallback(c) : y(a, c);
51
- } }
52
- function z(a, b) { var d = []; p(b, function (b) { return d.push(b); }); for (b = 0; b < d.length; b++) {
53
- var c = d[b];
54
- 1 === c.__CE_state && a.disconnectedCallback(c);
55
- } }
56
- function A(a, b, d) {
57
- d = void 0 === d ? {} : d;
58
- var c = d.u || new Set, e = d.i || function (b) { return y(a, b); }, f = [];
59
- p(b, function (b) { if ("link" === b.localName && "import" === b.getAttribute("rel")) {
60
- var d = b.import;
61
- d instanceof Node && (d.__CE_isImportDocument = !0, d.__CE_hasRegistry = !0);
62
- d && "complete" === d.readyState ? d.__CE_documentLoadHandled = !0 : b.addEventListener("load", function () { var d = b.import; if (!d.__CE_documentLoadHandled) {
63
- d.__CE_documentLoadHandled = !0;
64
- var f = new Set(c);
65
- f.delete(d);
66
- A(a, d, { u: f, i: e });
67
- } });
68
- }
69
- else
70
- f.push(b); }, c);
71
- if (a.b)
72
- for (b =
73
- 0; b < f.length; b++)
74
- w(a, f[b]);
75
- for (b = 0; b < f.length; b++)
76
- e(f[b]);
77
- }
78
- function y(a, b) {
79
- if (void 0 === b.__CE_state) {
80
- var d = b.ownerDocument;
81
- if (d.defaultView || d.__CE_isImportDocument && d.__CE_hasRegistry)
82
- if (d = a.a.get(b.localName)) {
83
- d.constructionStack.push(b);
84
- var c = d.constructorFunction;
85
- try {
86
- try {
87
- if (new c !== b)
88
- throw Error("The custom element constructor did not produce the element being upgraded.");
89
- }
90
- finally {
91
- d.constructionStack.pop();
92
- }
93
- }
94
- catch (t) {
95
- throw b.__CE_state = 2, t;
96
- }
97
- b.__CE_state = 1;
98
- b.__CE_definition = d;
99
- if (d.attributeChangedCallback)
100
- for (d = d.observedAttributes, c = 0; c < d.length; c++) {
101
- var e = d[c], f = b.getAttribute(e);
102
- null !== f && a.attributeChangedCallback(b, e, null, f, null);
103
- }
104
- l(b) && a.connectedCallback(b);
105
- }
106
- }
107
- }
108
- u.prototype.connectedCallback = function (a) { var b = a.__CE_definition; b.connectedCallback && b.connectedCallback.call(a); };
109
- u.prototype.disconnectedCallback = function (a) { var b = a.__CE_definition; b.disconnectedCallback && b.disconnectedCallback.call(a); };
110
- u.prototype.attributeChangedCallback = function (a, b, d, c, e) { var f = a.__CE_definition; f.attributeChangedCallback && -1 < f.observedAttributes.indexOf(b) && f.attributeChangedCallback.call(a, b, d, c, e); };
111
- function B(a) { var b = document; this.c = a; this.a = b; this.b = void 0; A(this.c, this.a); "loading" === this.a.readyState && (this.b = new MutationObserver(this.f.bind(this)), this.b.observe(this.a, { childList: !0, subtree: !0 })); }
112
- function C(a) { a.b && a.b.disconnect(); }
113
- B.prototype.f = function (a) { var b = this.a.readyState; "interactive" !== b && "complete" !== b || C(this); for (b = 0; b < a.length; b++)
114
- for (var d = a[b].addedNodes, c = 0; c < d.length; c++)
115
- A(this.c, d[c]); };
116
- function ea() { var a = this; this.b = this.a = void 0; this.c = new Promise(function (b) { a.b = b; a.a && b(a.a); }); }
117
- function D(a) { if (a.a)
118
- throw Error("Already resolved."); a.a = void 0; a.b && a.b(void 0); }
119
- function E(a) { this.c = !1; this.a = a; this.j = new Map; this.f = function (b) { return b(); }; this.b = !1; this.g = []; this.o = new B(a); }
120
- E.prototype.l = function (a, b) {
121
- var d = this;
122
- if (!(b instanceof Function))
123
- throw new TypeError("Custom element constructors must be functions.");
124
- if (!g(a))
125
- throw new SyntaxError("The element name '" + a + "' is not valid.");
126
- if (this.a.a.get(a))
127
- throw Error("A custom element with name '" + a + "' has already been defined.");
128
- if (this.c)
129
- throw Error("A custom element is already being defined.");
130
- this.c = !0;
131
- try {
132
- var c = function (b) {
133
- var a = e[b];
134
- if (void 0 !== a && !(a instanceof Function))
135
- throw Error("The '" + b + "' callback must be a function.");
136
- return a;
137
- }, e = b.prototype;
138
- if (!(e instanceof Object))
139
- throw new TypeError("The custom element constructor's prototype is not an object.");
140
- var f = c("connectedCallback");
141
- var t = c("disconnectedCallback");
142
- var k = c("adoptedCallback");
143
- var h = c("attributeChangedCallback");
144
- var m = b.observedAttributes || [];
145
- }
146
- catch (q) {
147
- return;
148
- }
149
- finally {
150
- this.c = !1;
151
- }
152
- b = { localName: a, constructorFunction: b, connectedCallback: f, disconnectedCallback: t, adoptedCallback: k, attributeChangedCallback: h, observedAttributes: m, constructionStack: [] };
153
- ba(this.a, a, b);
154
- this.g.push(b);
155
- this.b || (this.b = !0, this.f(function () { return fa(d); }));
156
- };
157
- E.prototype.i = function (a) { A(this.a, a); };
158
- function fa(a) { if (!1 !== a.b) {
159
- a.b = !1;
160
- for (var b = a.g, d = [], c = new Map, e = 0; e < b.length; e++)
161
- c.set(b[e].localName, []);
162
- A(a.a, document, { i: function (b) { if (void 0 === b.__CE_state) {
163
- var e = b.localName, f = c.get(e);
164
- f ? f.push(b) : a.a.a.get(e) && d.push(b);
165
- } } });
166
- for (e = 0; e < d.length; e++)
167
- y(a.a, d[e]);
168
- for (; 0 < b.length;) {
169
- var f = b.shift();
170
- e = f.localName;
171
- f = c.get(f.localName);
172
- for (var t = 0; t < f.length; t++)
173
- y(a.a, f[t]);
174
- (e = a.j.get(e)) && D(e);
175
- }
176
- } }
177
- E.prototype.get = function (a) { if (a = this.a.a.get(a))
178
- return a.constructorFunction; };
179
- E.prototype.m = function (a) { if (!g(a))
180
- return Promise.reject(new SyntaxError("'" + a + "' is not a valid custom element name.")); var b = this.j.get(a); if (b)
181
- return b.c; b = new ea; this.j.set(a, b); this.a.a.get(a) && !this.g.some(function (b) { return b.localName === a; }) && D(b); return b.c; };
182
- E.prototype.s = function (a) { C(this.o); var b = this.f; this.f = function (d) { return a(function () { return b(d); }); }; };
183
- window.CustomElementRegistry = E;
184
- E.prototype.define = E.prototype.l;
185
- E.prototype.upgrade = E.prototype.i;
186
- E.prototype.get = E.prototype.get;
187
- E.prototype.whenDefined = E.prototype.m;
188
- E.prototype.polyfillWrapFlushCallback = E.prototype.s;
189
- var F = window.Document.prototype.createElement, G = window.Document.prototype.createElementNS, ha = window.Document.prototype.importNode, ia = window.Document.prototype.prepend, ja = window.Document.prototype.append, ka = window.DocumentFragment.prototype.prepend, la = window.DocumentFragment.prototype.append, H = window.Node.prototype.cloneNode, I = window.Node.prototype.appendChild, J = window.Node.prototype.insertBefore, K = window.Node.prototype.removeChild, L = window.Node.prototype.replaceChild, M = Object.getOwnPropertyDescriptor(window.Node.prototype, "textContent"), N = window.Element.prototype.attachShadow, O = Object.getOwnPropertyDescriptor(window.Element.prototype, "innerHTML"), P = window.Element.prototype.getAttribute, Q = window.Element.prototype.setAttribute, R = window.Element.prototype.removeAttribute, S = window.Element.prototype.getAttributeNS, T = window.Element.prototype.setAttributeNS, U = window.Element.prototype.removeAttributeNS, ma = window.Element.prototype.insertAdjacentElement, na = window.Element.prototype.insertAdjacentHTML, oa = window.Element.prototype.prepend, pa = window.Element.prototype.append, V = window.Element.prototype.before, qa = window.Element.prototype.after, ra = window.Element.prototype.replaceWith, sa = window.Element.prototype.remove, ta = window.HTMLElement, W = Object.getOwnPropertyDescriptor(window.HTMLElement.prototype, "innerHTML"), ua = window.HTMLElement.prototype.insertAdjacentElement, va = window.HTMLElement.prototype.insertAdjacentHTML;
190
- var wa = new function () { };
191
- function xa() {
192
- var a = X;
193
- window.HTMLElement = function () {
194
- function b() {
195
- var b = this.constructor, c = a.g.get(b);
196
- if (!c)
197
- throw Error("The custom element being constructed was not registered with `customElements`.");
198
- var e = c.constructionStack;
199
- if (0 === e.length)
200
- return e = F.call(document, c.localName), Object.setPrototypeOf(e, b.prototype), e.__CE_state = 1, e.__CE_definition = c, w(a, e), e;
201
- c = e.length - 1;
202
- var f = e[c];
203
- if (f === wa)
204
- throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");
205
- e[c] = wa;
206
- Object.setPrototypeOf(f, b.prototype);
207
- w(a, f);
208
- return f;
209
- }
210
- b.prototype = ta.prototype;
211
- Object.defineProperty(b.prototype, "constructor", { writable: !0, configurable: !0, enumerable: !1, value: b });
212
- return b;
213
- }();
214
- }
215
- function Y(a, b, d) { function c(b) { return function (d) { for (var e = [], c = 0; c < arguments.length; ++c)
216
- e[c] = arguments[c]; c = []; for (var f = [], m = 0; m < e.length; m++) {
217
- var q = e[m];
218
- q instanceof Element && l(q) && f.push(q);
219
- if (q instanceof DocumentFragment)
220
- for (q = q.firstChild; q; q = q.nextSibling)
221
- c.push(q);
222
- else
223
- c.push(q);
224
- } b.apply(this, e); for (e = 0; e < f.length; e++)
225
- z(a, f[e]); if (l(this))
226
- for (e = 0; e < c.length; e++)
227
- f = c[e], f instanceof Element && x(a, f); }; } void 0 !== d.h && (b.prepend = c(d.h)); void 0 !== d.append && (b.append = c(d.append)); }
228
- function ya() {
229
- var a = X;
230
- r(Document.prototype, "createElement", function (b) { if (this.__CE_hasRegistry) {
231
- var d = a.a.get(b);
232
- if (d)
233
- return new d.constructorFunction;
234
- } b = F.call(this, b); w(a, b); return b; });
235
- r(Document.prototype, "importNode", function (b, d) { b = ha.call(this, b, !!d); this.__CE_hasRegistry ? A(a, b) : v(a, b); return b; });
236
- r(Document.prototype, "createElementNS", function (b, d) {
237
- if (this.__CE_hasRegistry && (null === b || "http://www.w3.org/1999/xhtml" === b)) {
238
- var c = a.a.get(d);
239
- if (c)
240
- return new c.constructorFunction;
241
- }
242
- b = G.call(this, b, d);
243
- w(a, b);
244
- return b;
245
- });
246
- Y(a, Document.prototype, { h: ia, append: ja });
247
- }
248
- function za() {
249
- function a(a, c) { Object.defineProperty(a, "textContent", { enumerable: c.enumerable, configurable: !0, get: c.get, set: function (a) { if (this.nodeType === Node.TEXT_NODE)
250
- c.set.call(this, a);
251
- else {
252
- var d = void 0;
253
- if (this.firstChild) {
254
- var e = this.childNodes, k = e.length;
255
- if (0 < k && l(this)) {
256
- d = Array(k);
257
- for (var h = 0; h < k; h++)
258
- d[h] = e[h];
259
- }
260
- }
261
- c.set.call(this, a);
262
- if (d)
263
- for (a = 0; a < d.length; a++)
264
- z(b, d[a]);
265
- } } }); }
266
- var b = X;
267
- r(Node.prototype, "insertBefore", function (a, c) {
268
- if (a instanceof DocumentFragment) {
269
- var e = Array.prototype.slice.apply(a.childNodes);
270
- a = J.call(this, a, c);
271
- if (l(this))
272
- for (c = 0; c < e.length; c++)
273
- x(b, e[c]);
274
- return a;
275
- }
276
- e = l(a);
277
- c = J.call(this, a, c);
278
- e && z(b, a);
279
- l(this) && x(b, a);
280
- return c;
281
- });
282
- r(Node.prototype, "appendChild", function (a) { if (a instanceof DocumentFragment) {
283
- var c = Array.prototype.slice.apply(a.childNodes);
284
- a = I.call(this, a);
285
- if (l(this))
286
- for (var e = 0; e < c.length; e++)
287
- x(b, c[e]);
288
- return a;
289
- } c = l(a); e = I.call(this, a); c && z(b, a); l(this) && x(b, a); return e; });
290
- r(Node.prototype, "cloneNode", function (a) {
291
- a = H.call(this, !!a);
292
- this.ownerDocument.__CE_hasRegistry ? A(b, a) : v(b, a);
293
- return a;
294
- });
295
- r(Node.prototype, "removeChild", function (a) { var c = l(a), e = K.call(this, a); c && z(b, a); return e; });
296
- r(Node.prototype, "replaceChild", function (a, c) { if (a instanceof DocumentFragment) {
297
- var e = Array.prototype.slice.apply(a.childNodes);
298
- a = L.call(this, a, c);
299
- if (l(this))
300
- for (z(b, c), c = 0; c < e.length; c++)
301
- x(b, e[c]);
302
- return a;
303
- } e = l(a); var f = L.call(this, a, c), d = l(this); d && z(b, c); e && z(b, a); d && x(b, a); return f; });
304
- M && M.get ? a(Node.prototype, M) : ca(b, function (b) {
305
- a(b, { enumerable: !0, configurable: !0, get: function () {
306
- for (var a = [], b = 0; b < this.childNodes.length; b++) {
307
- var f = this.childNodes[b];
308
- f.nodeType !== Node.COMMENT_NODE && a.push(f.textContent);
309
- }
310
- return a.join("");
311
- }, set: function (a) { for (; this.firstChild;)
312
- K.call(this, this.firstChild); null != a && "" !== a && I.call(this, document.createTextNode(a)); } });
313
- });
314
- }
315
- function Aa(a) {
316
- function b(b) { return function (e) { for (var c = [], d = 0; d < arguments.length; ++d)
317
- c[d] = arguments[d]; d = []; for (var k = [], h = 0; h < c.length; h++) {
318
- var m = c[h];
319
- m instanceof Element && l(m) && k.push(m);
320
- if (m instanceof DocumentFragment)
321
- for (m = m.firstChild; m; m = m.nextSibling)
322
- d.push(m);
323
- else
324
- d.push(m);
325
- } b.apply(this, c); for (c = 0; c < k.length; c++)
326
- z(a, k[c]); if (l(this))
327
- for (c = 0; c < d.length; c++)
328
- k = d[c], k instanceof Element && x(a, k); }; }
329
- var d = Element.prototype;
330
- void 0 !== V && (d.before = b(V));
331
- void 0 !== V && (d.after = b(qa));
332
- void 0 !== ra &&
333
- r(d, "replaceWith", function (b) { for (var e = [], c = 0; c < arguments.length; ++c)
334
- e[c] = arguments[c]; c = []; for (var d = [], k = 0; k < e.length; k++) {
335
- var h = e[k];
336
- h instanceof Element && l(h) && d.push(h);
337
- if (h instanceof DocumentFragment)
338
- for (h = h.firstChild; h; h = h.nextSibling)
339
- c.push(h);
340
- else
341
- c.push(h);
342
- } k = l(this); ra.apply(this, e); for (e = 0; e < d.length; e++)
343
- z(a, d[e]); if (k)
344
- for (z(a, this), e = 0; e < c.length; e++)
345
- d = c[e], d instanceof Element && x(a, d); });
346
- void 0 !== sa && r(d, "remove", function () { var b = l(this); sa.call(this); b && z(a, this); });
347
- }
348
- function Ba() {
349
- function a(a, b) { Object.defineProperty(a, "innerHTML", { enumerable: b.enumerable, configurable: !0, get: b.get, set: function (a) { var e = this, d = void 0; l(this) && (d = [], p(this, function (a) { a !== e && d.push(a); })); b.set.call(this, a); if (d)
350
- for (var f = 0; f < d.length; f++) {
351
- var t = d[f];
352
- 1 === t.__CE_state && c.disconnectedCallback(t);
353
- } this.ownerDocument.__CE_hasRegistry ? A(c, this) : v(c, this); return a; } }); }
354
- function b(a, b) { r(a, "insertAdjacentElement", function (a, e) { var d = l(e); a = b.call(this, a, e); d && z(c, e); l(a) && x(c, e); return a; }); }
355
- function d(a, b) {
356
- function e(a, b) { for (var e = []; a !== b; a = a.nextSibling)
357
- e.push(a); for (b = 0; b < e.length; b++)
358
- A(c, e[b]); }
359
- r(a, "insertAdjacentHTML", function (a, c) {
360
- a = a.toLowerCase();
361
- if ("beforebegin" === a) {
362
- var d = this.previousSibling;
363
- b.call(this, a, c);
364
- e(d || this.parentNode.firstChild, this);
365
- }
366
- else if ("afterbegin" === a)
367
- d = this.firstChild, b.call(this, a, c), e(this.firstChild, d);
368
- else if ("beforeend" === a)
369
- d = this.lastChild, b.call(this, a, c), e(d || this.firstChild, null);
370
- else if ("afterend" === a)
371
- d = this.nextSibling, b.call(this, a, c), e(this.nextSibling, d);
372
- else
373
- throw new SyntaxError("The value provided (" + String(a) + ") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");
374
- });
375
- }
376
- var c = X;
377
- N && r(Element.prototype, "attachShadow", function (a) { a = N.call(this, a); var b = c; if (b.b && !a.__CE_patched) {
378
- a.__CE_patched = !0;
379
- for (var e = 0; e < b.c.length; e++)
380
- b.c[e](a);
381
- } return this.__CE_shadowRoot = a; });
382
- O && O.get ? a(Element.prototype, O) : W && W.get ? a(HTMLElement.prototype, W) : da(c, function (b) {
383
- a(b, { enumerable: !0, configurable: !0, get: function () { return H.call(this, !0).innerHTML; }, set: function (a) { var b = "template" === this.localName, c = b ? this.content : this, e = G.call(document, this.namespaceURI, this.localName); for (e.innerHTML = a; 0 < c.childNodes.length;)
384
- K.call(c, c.childNodes[0]); for (a = b ? e.content : e; 0 < a.childNodes.length;)
385
- I.call(c, a.childNodes[0]); } });
386
- });
387
- r(Element.prototype, "setAttribute", function (a, b) { if (1 !== this.__CE_state)
388
- return Q.call(this, a, b); var e = P.call(this, a); Q.call(this, a, b); b = P.call(this, a); c.attributeChangedCallback(this, a, e, b, null); });
389
- r(Element.prototype, "setAttributeNS", function (a, b, d) { if (1 !== this.__CE_state)
390
- return T.call(this, a, b, d); var e = S.call(this, a, b); T.call(this, a, b, d); d = S.call(this, a, b); c.attributeChangedCallback(this, b, e, d, a); });
391
- r(Element.prototype, "removeAttribute", function (a) { if (1 !== this.__CE_state)
392
- return R.call(this, a); var b = P.call(this, a); R.call(this, a); null !== b && c.attributeChangedCallback(this, a, b, null, null); });
393
- r(Element.prototype, "removeAttributeNS", function (a, b) {
394
- if (1 !== this.__CE_state)
395
- return U.call(this, a, b);
396
- var d = S.call(this, a, b);
397
- U.call(this, a, b);
398
- var e = S.call(this, a, b);
399
- d !== e && c.attributeChangedCallback(this, b, d, e, a);
400
- });
401
- ua ? b(HTMLElement.prototype, ua) : ma ? b(Element.prototype, ma) : console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched.");
402
- va ? d(HTMLElement.prototype, va) : na ? d(Element.prototype, na) : console.warn("Custom Elements: `Element#insertAdjacentHTML` was not patched.");
403
- Y(c, Element.prototype, { h: oa, append: pa });
404
- Aa(c);
405
- }
406
- var Z = window.customElements;
407
- if (!Z || Z.forcePolyfill || "function" != typeof Z.define || "function" != typeof Z.get) {
408
- var X = new u;
409
- xa();
410
- ya();
411
- Y(X, DocumentFragment.prototype, { h: ka, append: la });
412
- za();
413
- Ba();
414
- document.__CE_hasRegistry = !0;
415
- var customElements = new E(X);
416
- Object.defineProperty(window, "customElements", { configurable: !0, enumerable: !0, value: customElements });
417
- }
418
- }).call(self);
419
- // Polyfill document.baseURI
420
- "string" !== typeof document.baseURI && Object.defineProperty(Document.prototype, "baseURI", { enumerable: !0, configurable: !0, get: function () { var a = document.querySelector("base"); return a && a.href ? a.href : document.URL; } });
421
- // Polyfill CustomEvent
422
- "function" !== typeof window.CustomEvent && (window.CustomEvent = function (c, a) { a = a || { bubbles: !1, cancelable: !1, detail: void 0 }; var b = document.createEvent("CustomEvent"); b.initCustomEvent(c, a.bubbles, a.cancelable, a.detail); return b; }, window.CustomEvent.prototype = window.Event.prototype);
423
- // Event.composedPath
424
- (function (b, c, d) { b.composedPath || (b.composedPath = function () { if (this.path)
425
- return this.path; var a = this.target; for (this.path = []; null !== a.parentNode;)
426
- this.path.push(a), a = a.parentNode; this.path.push(c, d); return this.path; }); })(Event.prototype, document, window);
427
- /*!
428
- Element.closest and Element.matches
429
- https://github.com/jonathantneal/closest
430
- Creative Commons Zero v1.0 Universal
431
- */
432
- (function (a) { "function" !== typeof a.matches && (a.matches = a.msMatchesSelector || a.mozMatchesSelector || a.webkitMatchesSelector || function (a) { a = (this.document || this.ownerDocument).querySelectorAll(a); for (var b = 0; a[b] && a[b] !== this;)
433
- ++b; return !!a[b]; }); "function" !== typeof a.closest && (a.closest = function (a) { for (var b = this; b && 1 === b.nodeType;) {
434
- if (b.matches(a))
435
- return b;
436
- b = b.parentNode;
437
- } return null; }); })(window.Element.prototype);
438
- /*!
439
- Element.getRootNode()
440
- */
441
- (function (c) { function d(a) { a = b(a); return a && 11 === a.nodeType ? d(a.host) : a; } function b(a) { return a && a.parentNode ? b(a.parentNode) : a; } "function" !== typeof c.getRootNode && (c.getRootNode = function (a) { return a && a.composed ? d(this) : b(this); }); })(Element.prototype);
442
- /*!
443
- Element.isConnected()
444
- */
445
- (function (a) { "isConnected" in a || Object.defineProperty(a, "isConnected", { configurable: !0, enumerable: !0, get: function () { var a = this.getRootNode({ composed: !0 }); return a && 9 === a.nodeType; } }); })(Element.prototype);
446
- /*!
447
- Element.remove()
448
- */
449
- (function (b) { b.forEach(function (a) { a.hasOwnProperty("remove") || Object.defineProperty(a, "remove", { configurable: !0, enumerable: !0, writable: !0, value: function () { null !== this.parentNode && this.parentNode.removeChild(this); } }); }); })([Element.prototype, CharacterData.prototype, DocumentType.prototype]);
450
- /*!
451
- Element.classList
452
- */
453
- !function (e) { 'classList' in e || Object.defineProperty(e, "classList", { get: function () { var e = this, t = (e.getAttribute("class") || "").replace(/^\s+|\s$/g, "").split(/\s+/g); function n() { t.length > 0 ? e.setAttribute("class", t.join(" ")) : e.removeAttribute("class"); } return "" === t[0] && t.splice(0, 1), t.toggle = function (e, i) { void 0 !== i ? i ? t.add(e) : t.remove(e) : -1 !== t.indexOf(e) ? t.splice(t.indexOf(e), 1) : t.push(e), n(); }, t.add = function () { for (var e = [].slice.call(arguments), i = 0, s = e.length; i < s; i++)
454
- -1 === t.indexOf(e[i]) && t.push(e[i]); n(); }, t.remove = function () { for (var e = [].slice.call(arguments), i = 0, s = e.length; i < s; i++)
455
- -1 !== t.indexOf(e[i]) && t.splice(t.indexOf(e[i]), 1); n(); }, t.item = function (e) { return t[e]; }, t.contains = function (e) { return -1 !== t.indexOf(e); }, t.replace = function (e, i) { -1 !== t.indexOf(e) && t.splice(t.indexOf(e), 1, i), n(); }, t.value = e.getAttribute("class") || "", t; } }); }(Element.prototype);
456
- /*!
457
- DOMTokenList
458
- */
459
- (function (b) { try {
460
- document.body.classList.add();
461
- }
462
- catch (e) {
463
- var c = b.add, d = b.remove;
464
- b.add = function () { for (var a = 0; a < arguments.length; a++)
465
- c.call(this, arguments[a]); };
466
- b.remove = function () { for (var a = 0; a < arguments.length; a++)
467
- d.call(this, arguments[a]); };
468
- } })(DOMTokenList.prototype);