@peculiar/certificates-viewer 2.0.1 → 2.0.2-alpha.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-cd98aa01.js → certification_request-96951e7b.js} +2880 -3313
  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-1ff0a3be.js → certification_request-48e8b956.js} +2898 -3328
  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 +15 -16
  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-1ff0a3be.js +0 -12692
  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-3d339152.system.entry.js +0 -1
  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-84e8326d.entry.js +0 -110
  290. package/dist/peculiar/p-94f96303.system.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-bd1f9066.system.js +0 -36
  295. package/dist/peculiar/p-bd949790.js +0 -1
  296. package/dist/peculiar/p-cf1841f8.js +0 -30
  297. package/dist/peculiar/p-dbdd61e7.entry.js +0 -1
  298. package/dist/peculiar/p-dc6b70b2.js +0 -100
  299. package/dist/peculiar/p-fb53799e.system.js +0 -1
  300. package/dist/peculiar/p-fc92385a.system.entry.js +0 -457
  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,385 +0,0 @@
1
- 'use strict';
2
-
3
- /*
4
- Stencil Client Platform v1.17.4 | MIT Licensed | https://stenciljs.com
5
- */
6
- /**
7
- * @license
8
- * Copyright Google Inc. All Rights Reserved.
9
- *
10
- * Use of this source code is governed by an MIT-style license that can be
11
- * found in the LICENSE file at https://angular.io/license
12
- *
13
- * This file is a port of shadowCSS from webcomponents.js to TypeScript.
14
- * https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
15
- * https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
16
- */
17
- const safeSelector = (selector) => {
18
- const placeholders = [];
19
- let index = 0;
20
- let content;
21
- // Replaces attribute selectors with placeholders.
22
- // The WS in [attr="va lue"] would otherwise be interpreted as a selector separator.
23
- selector = selector.replace(/(\[[^\]]*\])/g, (_, keep) => {
24
- const replaceBy = `__ph-${index}__`;
25
- placeholders.push(keep);
26
- index++;
27
- return replaceBy;
28
- });
29
- // Replaces the expression in `:nth-child(2n + 1)` with a placeholder.
30
- // WS and "+" would otherwise be interpreted as selector separators.
31
- content = selector.replace(/(:nth-[-\w]+)(\([^)]+\))/g, (_, pseudo, exp) => {
32
- const replaceBy = `__ph-${index}__`;
33
- placeholders.push(exp);
34
- index++;
35
- return pseudo + replaceBy;
36
- });
37
- const ss = {
38
- content,
39
- placeholders,
40
- };
41
- return ss;
42
- };
43
- const restoreSafeSelector = (placeholders, content) => {
44
- return content.replace(/__ph-(\d+)__/g, (_, index) => placeholders[+index]);
45
- };
46
- const _polyfillHost = '-shadowcsshost';
47
- const _polyfillSlotted = '-shadowcssslotted';
48
- // note: :host-context pre-processed to -shadowcsshostcontext.
49
- const _polyfillHostContext = '-shadowcsscontext';
50
- const _parenSuffix = ')(?:\\((' + '(?:\\([^)(]*\\)|[^)(]*)+?' + ')\\))?([^,{]*)';
51
- const _cssColonHostRe = new RegExp('(' + _polyfillHost + _parenSuffix, 'gim');
52
- const _cssColonHostContextRe = new RegExp('(' + _polyfillHostContext + _parenSuffix, 'gim');
53
- const _cssColonSlottedRe = new RegExp('(' + _polyfillSlotted + _parenSuffix, 'gim');
54
- const _polyfillHostNoCombinator = _polyfillHost + '-no-combinator';
55
- const _polyfillHostNoCombinatorRe = /-shadowcsshost-no-combinator([^\s]*)/;
56
- const _shadowDOMSelectorsRe = [/::shadow/g, /::content/g];
57
- const _selectorReSuffix = '([>\\s~+[.,{:][\\s\\S]*)?$';
58
- const _polyfillHostRe = /-shadowcsshost/gim;
59
- const _colonHostRe = /:host/gim;
60
- const _colonSlottedRe = /::slotted/gim;
61
- const _colonHostContextRe = /:host-context/gim;
62
- const _commentRe = /\/\*\s*[\s\S]*?\*\//g;
63
- const stripComments = (input) => {
64
- return input.replace(_commentRe, '');
65
- };
66
- const _commentWithHashRe = /\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;
67
- const extractCommentsWithHash = (input) => {
68
- return input.match(_commentWithHashRe) || [];
69
- };
70
- const _ruleRe = /(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g;
71
- const _curlyRe = /([{}])/g;
72
- const OPEN_CURLY = '{';
73
- const CLOSE_CURLY = '}';
74
- const BLOCK_PLACEHOLDER = '%BLOCK%';
75
- const processRules = (input, ruleCallback) => {
76
- const inputWithEscapedBlocks = escapeBlocks(input);
77
- let nextBlockIndex = 0;
78
- return inputWithEscapedBlocks.escapedString.replace(_ruleRe, (...m) => {
79
- const selector = m[2];
80
- let content = '';
81
- let suffix = m[4];
82
- let contentPrefix = '';
83
- if (suffix && suffix.startsWith('{' + BLOCK_PLACEHOLDER)) {
84
- content = inputWithEscapedBlocks.blocks[nextBlockIndex++];
85
- suffix = suffix.substring(BLOCK_PLACEHOLDER.length + 1);
86
- contentPrefix = '{';
87
- }
88
- const cssRule = {
89
- selector,
90
- content,
91
- };
92
- const rule = ruleCallback(cssRule);
93
- return `${m[1]}${rule.selector}${m[3]}${contentPrefix}${rule.content}${suffix}`;
94
- });
95
- };
96
- const escapeBlocks = (input) => {
97
- const inputParts = input.split(_curlyRe);
98
- const resultParts = [];
99
- const escapedBlocks = [];
100
- let bracketCount = 0;
101
- let currentBlockParts = [];
102
- for (let partIndex = 0; partIndex < inputParts.length; partIndex++) {
103
- const part = inputParts[partIndex];
104
- if (part === CLOSE_CURLY) {
105
- bracketCount--;
106
- }
107
- if (bracketCount > 0) {
108
- currentBlockParts.push(part);
109
- }
110
- else {
111
- if (currentBlockParts.length > 0) {
112
- escapedBlocks.push(currentBlockParts.join(''));
113
- resultParts.push(BLOCK_PLACEHOLDER);
114
- currentBlockParts = [];
115
- }
116
- resultParts.push(part);
117
- }
118
- if (part === OPEN_CURLY) {
119
- bracketCount++;
120
- }
121
- }
122
- if (currentBlockParts.length > 0) {
123
- escapedBlocks.push(currentBlockParts.join(''));
124
- resultParts.push(BLOCK_PLACEHOLDER);
125
- }
126
- const strEscapedBlocks = {
127
- escapedString: resultParts.join(''),
128
- blocks: escapedBlocks,
129
- };
130
- return strEscapedBlocks;
131
- };
132
- const insertPolyfillHostInCssText = (selector) => {
133
- selector = selector
134
- .replace(_colonHostContextRe, _polyfillHostContext)
135
- .replace(_colonHostRe, _polyfillHost)
136
- .replace(_colonSlottedRe, _polyfillSlotted);
137
- return selector;
138
- };
139
- const convertColonRule = (cssText, regExp, partReplacer) => {
140
- // m[1] = :host(-context), m[2] = contents of (), m[3] rest of rule
141
- return cssText.replace(regExp, (...m) => {
142
- if (m[2]) {
143
- const parts = m[2].split(',');
144
- const r = [];
145
- for (let i = 0; i < parts.length; i++) {
146
- const p = parts[i].trim();
147
- if (!p)
148
- break;
149
- r.push(partReplacer(_polyfillHostNoCombinator, p, m[3]));
150
- }
151
- return r.join(',');
152
- }
153
- else {
154
- return _polyfillHostNoCombinator + m[3];
155
- }
156
- });
157
- };
158
- const colonHostPartReplacer = (host, part, suffix) => {
159
- return host + part.replace(_polyfillHost, '') + suffix;
160
- };
161
- const convertColonHost = (cssText) => {
162
- return convertColonRule(cssText, _cssColonHostRe, colonHostPartReplacer);
163
- };
164
- const colonHostContextPartReplacer = (host, part, suffix) => {
165
- if (part.indexOf(_polyfillHost) > -1) {
166
- return colonHostPartReplacer(host, part, suffix);
167
- }
168
- else {
169
- return host + part + suffix + ', ' + part + ' ' + host + suffix;
170
- }
171
- };
172
- const convertColonSlotted = (cssText, slotScopeId) => {
173
- const slotClass = '.' + slotScopeId + ' > ';
174
- const selectors = [];
175
- cssText = cssText.replace(_cssColonSlottedRe, (...m) => {
176
- if (m[2]) {
177
- const compound = m[2].trim();
178
- const suffix = m[3];
179
- const slottedSelector = slotClass + compound + suffix;
180
- let prefixSelector = '';
181
- for (let i = m[4] - 1; i >= 0; i--) {
182
- const char = m[5][i];
183
- if (char === '}' || char === ',') {
184
- break;
185
- }
186
- prefixSelector = char + prefixSelector;
187
- }
188
- const orgSelector = prefixSelector + slottedSelector;
189
- const addedSelector = `${prefixSelector.trimRight()}${slottedSelector.trim()}`;
190
- if (orgSelector.trim() !== addedSelector.trim()) {
191
- const updatedSelector = `${addedSelector}, ${orgSelector}`;
192
- selectors.push({
193
- orgSelector,
194
- updatedSelector,
195
- });
196
- }
197
- return slottedSelector;
198
- }
199
- else {
200
- return _polyfillHostNoCombinator + m[3];
201
- }
202
- });
203
- return {
204
- selectors,
205
- cssText,
206
- };
207
- };
208
- const convertColonHostContext = (cssText) => {
209
- return convertColonRule(cssText, _cssColonHostContextRe, colonHostContextPartReplacer);
210
- };
211
- const convertShadowDOMSelectors = (cssText) => {
212
- return _shadowDOMSelectorsRe.reduce((result, pattern) => result.replace(pattern, ' '), cssText);
213
- };
214
- const makeScopeMatcher = (scopeSelector) => {
215
- const lre = /\[/g;
216
- const rre = /\]/g;
217
- scopeSelector = scopeSelector.replace(lre, '\\[').replace(rre, '\\]');
218
- return new RegExp('^(' + scopeSelector + ')' + _selectorReSuffix, 'm');
219
- };
220
- const selectorNeedsScoping = (selector, scopeSelector) => {
221
- const re = makeScopeMatcher(scopeSelector);
222
- return !re.test(selector);
223
- };
224
- const applySimpleSelectorScope = (selector, scopeSelector, hostSelector) => {
225
- // In Android browser, the lastIndex is not reset when the regex is used in String.replace()
226
- _polyfillHostRe.lastIndex = 0;
227
- if (_polyfillHostRe.test(selector)) {
228
- const replaceBy = `.${hostSelector}`;
229
- return selector
230
- .replace(_polyfillHostNoCombinatorRe, (_, selector) => {
231
- return selector.replace(/([^:]*)(:*)(.*)/, (_, before, colon, after) => {
232
- return before + replaceBy + colon + after;
233
- });
234
- })
235
- .replace(_polyfillHostRe, replaceBy + ' ');
236
- }
237
- return scopeSelector + ' ' + selector;
238
- };
239
- const applyStrictSelectorScope = (selector, scopeSelector, hostSelector) => {
240
- const isRe = /\[is=([^\]]*)\]/g;
241
- scopeSelector = scopeSelector.replace(isRe, (_, ...parts) => parts[0]);
242
- const className = '.' + scopeSelector;
243
- const _scopeSelectorPart = (p) => {
244
- let scopedP = p.trim();
245
- if (!scopedP) {
246
- return '';
247
- }
248
- if (p.indexOf(_polyfillHostNoCombinator) > -1) {
249
- scopedP = applySimpleSelectorScope(p, scopeSelector, hostSelector);
250
- }
251
- else {
252
- // remove :host since it should be unnecessary
253
- const t = p.replace(_polyfillHostRe, '');
254
- if (t.length > 0) {
255
- const matches = t.match(/([^:]*)(:*)(.*)/);
256
- if (matches) {
257
- scopedP = matches[1] + className + matches[2] + matches[3];
258
- }
259
- }
260
- }
261
- return scopedP;
262
- };
263
- const safeContent = safeSelector(selector);
264
- selector = safeContent.content;
265
- let scopedSelector = '';
266
- let startIndex = 0;
267
- let res;
268
- const sep = /( |>|\+|~(?!=))\s*/g;
269
- // If a selector appears before :host it should not be shimmed as it
270
- // matches on ancestor elements and not on elements in the host's shadow
271
- // `:host-context(div)` is transformed to
272
- // `-shadowcsshost-no-combinatordiv, div -shadowcsshost-no-combinator`
273
- // the `div` is not part of the component in the 2nd selectors and should not be scoped.
274
- // Historically `component-tag:host` was matching the component so we also want to preserve
275
- // this behavior to avoid breaking legacy apps (it should not match).
276
- // The behavior should be:
277
- // - `tag:host` -> `tag[h]` (this is to avoid breaking legacy apps, should not match anything)
278
- // - `tag :host` -> `tag [h]` (`tag` is not scoped because it's considered part of a
279
- // `:host-context(tag)`)
280
- const hasHost = selector.indexOf(_polyfillHostNoCombinator) > -1;
281
- // Only scope parts after the first `-shadowcsshost-no-combinator` when it is present
282
- let shouldScope = !hasHost;
283
- while ((res = sep.exec(selector)) !== null) {
284
- const separator = res[1];
285
- const part = selector.slice(startIndex, res.index).trim();
286
- shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
287
- const scopedPart = shouldScope ? _scopeSelectorPart(part) : part;
288
- scopedSelector += `${scopedPart} ${separator} `;
289
- startIndex = sep.lastIndex;
290
- }
291
- const part = selector.substring(startIndex);
292
- shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
293
- scopedSelector += shouldScope ? _scopeSelectorPart(part) : part;
294
- // replace the placeholders with their original values
295
- return restoreSafeSelector(safeContent.placeholders, scopedSelector);
296
- };
297
- const scopeSelector = (selector, scopeSelectorText, hostSelector, slotSelector) => {
298
- return selector
299
- .split(',')
300
- .map(shallowPart => {
301
- if (slotSelector && shallowPart.indexOf('.' + slotSelector) > -1) {
302
- return shallowPart.trim();
303
- }
304
- if (selectorNeedsScoping(shallowPart, scopeSelectorText)) {
305
- return applyStrictSelectorScope(shallowPart, scopeSelectorText, hostSelector).trim();
306
- }
307
- else {
308
- return shallowPart.trim();
309
- }
310
- })
311
- .join(', ');
312
- };
313
- const scopeSelectors = (cssText, scopeSelectorText, hostSelector, slotSelector, commentOriginalSelector) => {
314
- return processRules(cssText, (rule) => {
315
- let selector = rule.selector;
316
- let content = rule.content;
317
- if (rule.selector[0] !== '@') {
318
- selector = scopeSelector(rule.selector, scopeSelectorText, hostSelector, slotSelector);
319
- }
320
- else if (rule.selector.startsWith('@media') || rule.selector.startsWith('@supports') || rule.selector.startsWith('@page') || rule.selector.startsWith('@document')) {
321
- content = scopeSelectors(rule.content, scopeSelectorText, hostSelector, slotSelector);
322
- }
323
- const cssRule = {
324
- selector: selector.replace(/\s{2,}/g, ' ').trim(),
325
- content,
326
- };
327
- return cssRule;
328
- });
329
- };
330
- const scopeCssText = (cssText, scopeId, hostScopeId, slotScopeId, commentOriginalSelector) => {
331
- cssText = insertPolyfillHostInCssText(cssText);
332
- cssText = convertColonHost(cssText);
333
- cssText = convertColonHostContext(cssText);
334
- const slotted = convertColonSlotted(cssText, slotScopeId);
335
- cssText = slotted.cssText;
336
- cssText = convertShadowDOMSelectors(cssText);
337
- if (scopeId) {
338
- cssText = scopeSelectors(cssText, scopeId, hostScopeId, slotScopeId);
339
- }
340
- cssText = cssText.replace(/-shadowcsshost-no-combinator/g, `.${hostScopeId}`);
341
- cssText = cssText.replace(/>\s*\*\s+([^{, ]+)/gm, ' $1 ');
342
- return {
343
- cssText: cssText.trim(),
344
- slottedSelectors: slotted.selectors,
345
- };
346
- };
347
- const scopeCss = (cssText, scopeId, commentOriginalSelector) => {
348
- const hostScopeId = scopeId + '-h';
349
- const slotScopeId = scopeId + '-s';
350
- const commentsWithHash = extractCommentsWithHash(cssText);
351
- cssText = stripComments(cssText);
352
- const orgSelectors = [];
353
- if (commentOriginalSelector) {
354
- const processCommentedSelector = (rule) => {
355
- const placeholder = `/*!@___${orgSelectors.length}___*/`;
356
- const comment = `/*!@${rule.selector}*/`;
357
- orgSelectors.push({ placeholder, comment });
358
- rule.selector = placeholder + rule.selector;
359
- return rule;
360
- };
361
- cssText = processRules(cssText, rule => {
362
- if (rule.selector[0] !== '@') {
363
- return processCommentedSelector(rule);
364
- }
365
- else if (rule.selector.startsWith('@media') || rule.selector.startsWith('@supports') || rule.selector.startsWith('@page') || rule.selector.startsWith('@document')) {
366
- rule.content = processRules(rule.content, processCommentedSelector);
367
- return rule;
368
- }
369
- return rule;
370
- });
371
- }
372
- const scoped = scopeCssText(cssText, scopeId, hostScopeId, slotScopeId);
373
- cssText = [scoped.cssText, ...commentsWithHash].join('\n');
374
- if (commentOriginalSelector) {
375
- orgSelectors.forEach(({ placeholder, comment }) => {
376
- cssText = cssText.replace(placeholder, comment);
377
- });
378
- }
379
- scoped.slottedSelectors.forEach(slottedSelector => {
380
- cssText = cssText.replace(slottedSelector.orgSelector, slottedSelector.updatedSelector);
381
- });
382
- return cssText;
383
- };
384
-
385
- exports.scopeCss = scopeCss;
@@ -1,4 +0,0 @@
1
- /*
2
- Stencil Client Patch v1.17.4 | MIT Licensed | https://stenciljs.com
3
- */
4
- var StyleNode=function(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector="";};function parse(e){return parseCss(lex(e=clean(e)),e)}function clean(e){return e.replace(RX.comments,"").replace(RX.port,"")}function lex(e){var t=new StyleNode;t.start=0,t.end=e.length;for(var r=t,n=0,s=e.length;n<s;n++)if(e[n]===OPEN_BRACE){r.rules||(r.rules=[]);var o=r,a=o.rules[o.rules.length-1]||null;(r=new StyleNode).start=n+1,r.parent=o,r.previous=a,o.rules.push(r);}else e[n]===CLOSE_BRACE&&(r.end=n+1,r=r.parent||t);return t}function parseCss(e,t){var r=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=r.trim(),e.parent){var n=e.previous?e.previous.end:e.parent.start;r=(r=(r=_expandUnicodeEscapes(r=t.substring(n,e.start-1))).replace(RX.multipleSpaces," ")).substring(r.lastIndexOf(";")+1);var s=e.parsedSelector=e.selector=r.trim();e.atRule=0===s.indexOf(AT_START),e.atRule?0===s.indexOf(MEDIA_START)?e.type=types.MEDIA_RULE:s.match(RX.keyframesRule)&&(e.type=types.KEYFRAMES_RULE,e.keyframesName=e.selector.split(RX.multipleSpaces).pop()):0===s.indexOf(VAR_START)?e.type=types.MIXIN_RULE:e.type=types.STYLE_RULE;}var o=e.rules;if(o)for(var a=0,i=o.length,l=void 0;a<i&&(l=o[a]);a++)parseCss(l,t);return e}function _expandUnicodeEscapes(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){for(var e=arguments[1],t=6-e.length;t--;)e="0"+e;return "\\"+e}))}var types={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},OPEN_BRACE="{",CLOSE_BRACE="}",RX={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},VAR_START="--",MEDIA_START="@media",AT_START="@";function findRegex(e,t,r){e.lastIndex=0;var n=t.substring(r).match(e);if(n){var s=r+n.index;return {start:s,end:s+n[0].length}}return null}var VAR_USAGE_START=/\bvar\(/,VAR_ASSIGN_START=/\B--[\w-]+\s*:/,COMMENTS=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,TRAILING_LINES=/^[\t ]+\n/gm;function resolveVar(e,t,r){return e[t]?e[t]:r?executeTemplate(r,e):""}function findVarEndIndex(e,t){for(var r=0,n=t;n<e.length;n++){var s=e[n];if("("===s)r++;else if(")"===s&&--r<=0)return n+1}return n}function parseVar(e,t){var r=findRegex(VAR_USAGE_START,e,t);if(!r)return null;var n=findVarEndIndex(e,r.start),s=e.substring(r.end,n-1).split(","),o=s[0],a=s.slice(1);return {start:r.start,end:n,propName:o.trim(),fallback:a.length>0?a.join(",").trim():void 0}}function compileVar(e,t,r){var n=parseVar(e,r);if(!n)return t.push(e.substring(r,e.length)),e.length;var s=n.propName,o=null!=n.fallback?compileTemplate(n.fallback):void 0;return t.push(e.substring(r,n.start),(function(e){return resolveVar(e,s,o)})),n.end}function executeTemplate(e,t){for(var r="",n=0;n<e.length;n++){var s=e[n];r+="string"==typeof s?s:s(t);}return r}function findEndValue(e,t){for(var r=!1,n=!1,s=t;s<e.length;s++){var o=e[s];if(r)n&&'"'===o&&(r=!1),n||"'"!==o||(r=!1);else if('"'===o)r=!0,n=!0;else if("'"===o)r=!0,n=!1;else {if(";"===o)return s+1;if("}"===o)return s}}return s}function removeCustomAssigns(e){for(var t="",r=0;;){var n=findRegex(VAR_ASSIGN_START,e,r),s=n?n.start:e.length;if(t+=e.substring(r,s),!n)break;r=findEndValue(e,s);}return t}function compileTemplate(e){var t=0;e=removeCustomAssigns(e=e.replace(COMMENTS,"")).replace(TRAILING_LINES,"");for(var r=[];t<e.length;)t=compileVar(e,r,t);return r}function resolveValues(e){var t={};e.forEach((function(e){e.declarations.forEach((function(e){t[e.prop]=e.value;}));}));for(var r={},n=Object.entries(t),s=function(e){var t=!1;if(n.forEach((function(e){var n=e[0],s=executeTemplate(e[1],r);s!==r[n]&&(r[n]=s,t=!0);})),!t)return "break"},o=0;o<10;o++){if("break"===s())break}return r}function getSelectors(e,t){if(void 0===t&&(t=0),!e.rules)return [];var r=[];return e.rules.filter((function(e){return e.type===types.STYLE_RULE})).forEach((function(e){var n=getDeclarations(e.cssText);n.length>0&&e.parsedSelector.split(",").forEach((function(e){e=e.trim(),r.push({selector:e,declarations:n,specificity:computeSpecificity(),nu:t});})),t++;})),r}function computeSpecificity(e){return 1}var IMPORTANT="!important",FIND_DECLARATIONS=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;function getDeclarations(e){for(var t,r=[];t=FIND_DECLARATIONS.exec(e.trim());){var n=normalizeValue(t[2]),s=n.value,o=n.important;r.push({prop:t[1].trim(),value:compileTemplate(s),important:o});}return r}function normalizeValue(e){var t=(e=e.replace(/\s+/gim," ").trim()).endsWith(IMPORTANT);return t&&(e=e.substr(0,e.length-IMPORTANT.length).trim()),{value:e,important:t}}function getActiveSelectors(e,t,r){var n=[],s=getScopesForElement(t,e);return r.forEach((function(e){return n.push(e)})),s.forEach((function(e){return n.push(e)})),sortSelectors(getSelectorsForScopes(n).filter((function(t){return matches(e,t.selector)})))}function getScopesForElement(e,t){for(var r=[];t;){var n=e.get(t);n&&r.push(n),t=t.parentElement;}return r}function getSelectorsForScopes(e){var t=[];return e.forEach((function(e){t.push.apply(t,e.selectors);})),t}function sortSelectors(e){return e.sort((function(e,t){return e.specificity===t.specificity?e.nu-t.nu:e.specificity-t.specificity})),e}function matches(e,t){return ":root"===t||"html"===t||e.matches(t)}function parseCSS(e){var t=parse(e),r=compileTemplate(e);return {original:e,template:r,selectors:getSelectors(t),usesCssVars:r.length>1}}function addGlobalStyle(e,t){if(e.some((function(e){return e.styleEl===t})))return !1;var r=parseCSS(t.textContent);return r.styleEl=t,e.push(r),!0}function updateGlobalScopes(e){var t=resolveValues(getSelectorsForScopes(e));e.forEach((function(e){e.usesCssVars&&(e.styleEl.textContent=executeTemplate(e.template,t));}));}function reScope(e,t){var r=e.template.map((function(r){return "string"==typeof r?replaceScope(r,e.scopeId,t):r})),n=e.selectors.map((function(r){return Object.assign(Object.assign({},r),{selector:replaceScope(r.selector,e.scopeId,t)})}));return Object.assign(Object.assign({},e),{template:r,selectors:n,scopeId:t})}function replaceScope(e,t,r){return e=replaceAll(e,"\\."+t,"."+r)}function replaceAll(e,t,r){return e.replace(new RegExp(t,"g"),r)}function loadDocument(e,t){return loadDocumentStyles(e,t),loadDocumentLinks(e,t).then((function(){updateGlobalScopes(t);}))}function startWatcher(e,t){"undefined"!=typeof MutationObserver&&new MutationObserver((function(){loadDocumentStyles(e,t)&&updateGlobalScopes(t);})).observe(document.head,{childList:!0});}function loadDocumentLinks(e,t){for(var r=[],n=e.querySelectorAll('link[rel="stylesheet"][href]:not([data-no-shim])'),s=0;s<n.length;s++)r.push(addGlobalLink(e,t,n[s]));return Promise.all(r)}function loadDocumentStyles(e,t){return Array.from(e.querySelectorAll("style:not([data-styles]):not([data-no-shim])")).map((function(e){return addGlobalStyle(t,e)})).some(Boolean)}function addGlobalLink(e,t,r){var n=r.href;return fetch(n).then((function(e){return e.text()})).then((function(s){if(hasCssVariables(s)&&r.parentNode){hasRelativeUrls(s)&&(s=fixRelativeUrls(s,n));var o=e.createElement("style");o.setAttribute("data-styles",""),o.textContent=s,addGlobalStyle(t,o),r.parentNode.insertBefore(o,r),r.remove();}})).catch((function(e){console.error(e);}))}var CSS_VARIABLE_REGEXP=/[\s;{]--[-a-zA-Z0-9]+\s*:/m;function hasCssVariables(e){return e.indexOf("var(")>-1||CSS_VARIABLE_REGEXP.test(e)}var CSS_URL_REGEXP=/url[\s]*\([\s]*['"]?(?!(?:https?|data)\:|\/)([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim;function hasRelativeUrls(e){return CSS_URL_REGEXP.lastIndex=0,CSS_URL_REGEXP.test(e)}function fixRelativeUrls(e,t){var r=t.replace(/[^/]*$/,"");return e.replace(CSS_URL_REGEXP,(function(e,t){var n=r+t;return e.replace(t,n)}))}var CustomStyle=function(){function e(e,t){this.win=e,this.doc=t,this.count=0,this.hostStyleMap=new WeakMap,this.hostScopeMap=new WeakMap,this.globalScopes=[],this.scopesMap=new Map,this.didInit=!1;}return e.prototype.i=function(){var e=this;return this.didInit||!this.win.requestAnimationFrame?Promise.resolve():(this.didInit=!0,new Promise((function(t){e.win.requestAnimationFrame((function(){startWatcher(e.doc,e.globalScopes),loadDocument(e.doc,e.globalScopes).then((function(){return t()}));}));})))},e.prototype.addLink=function(e){var t=this;return addGlobalLink(this.doc,this.globalScopes,e).then((function(){t.updateGlobal();}))},e.prototype.addGlobalStyle=function(e){addGlobalStyle(this.globalScopes,e)&&this.updateGlobal();},e.prototype.createHostStyle=function(e,t,r,n){if(this.hostScopeMap.has(e))throw new Error("host style already created");var s=this.registerHostTemplate(r,t,n),o=this.doc.createElement("style");return o.setAttribute("data-no-shim",""),s.usesCssVars?n?(o["s-sc"]=t=s.scopeId+"-"+this.count,o.textContent="/*needs update*/",this.hostStyleMap.set(e,o),this.hostScopeMap.set(e,reScope(s,t)),this.count++):(s.styleEl=o,s.usesCssVars||(o.textContent=executeTemplate(s.template,{})),this.globalScopes.push(s),this.updateGlobal(),this.hostScopeMap.set(e,s)):o.textContent=r,o},e.prototype.removeHost=function(e){var t=this.hostStyleMap.get(e);t&&t.remove(),this.hostStyleMap.delete(e),this.hostScopeMap.delete(e);},e.prototype.updateHost=function(e){var t=this.hostScopeMap.get(e);if(t&&t.usesCssVars&&t.isScoped){var r=this.hostStyleMap.get(e);if(r){var n=resolveValues(getActiveSelectors(e,this.hostScopeMap,this.globalScopes));r.textContent=executeTemplate(t.template,n);}}},e.prototype.updateGlobal=function(){updateGlobalScopes(this.globalScopes);},e.prototype.registerHostTemplate=function(e,t,r){var n=this.scopesMap.get(t);return n||((n=parseCSS(e)).scopeId=t,n.isScoped=r,this.scopesMap.set(t,n)),n},e}();!function(e){!e||e.__cssshim||e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")||(e.__cssshim=new CustomStyle(e,e.document));}("undefined"!=typeof window&&window);
@@ -1 +0,0 @@
1
-
@@ -1,109 +0,0 @@
1
- import { C as CSS, p as plt, w as win, a as promiseResolve, d as doc, N as NAMESPACE } from './index-5ef692cc.js';
2
-
3
- /*
4
- Stencil Client Patch v1.17.4 | MIT Licensed | https://stenciljs.com
5
- */
6
- const noop = () => {
7
- /* noop*/
8
- };
9
- const IS_DENO_ENV = typeof Deno !== 'undefined';
10
- const IS_NODE_ENV = !IS_DENO_ENV &&
11
- typeof global !== 'undefined' &&
12
- typeof require === 'function' &&
13
- !!global.process &&
14
- typeof __filename === 'string' &&
15
- (!global.origin || typeof global.origin !== 'string');
16
- const IS_DENO_WINDOWS_ENV = IS_DENO_ENV && Deno.build.os === 'windows';
17
- const getCurrentDirectory = IS_NODE_ENV ? process.cwd : IS_DENO_ENV ? Deno.cwd : () => '/';
18
- const exit = IS_NODE_ENV ? process.exit : IS_DENO_ENV ? Deno.exit : noop;
19
- const getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\s|-/g, '_')}`;
20
- const patchEsm = () => {
21
- // NOTE!! This fn cannot use async/await!
22
- // @ts-ignore
23
- if ( !(CSS && CSS.supports && CSS.supports('color', 'var(--c)'))) {
24
- // @ts-ignore
25
- return import(/* webpackChunkName: "polyfills-css-shim" */ './css-shim-5ce2b5c4.js').then(() => {
26
- if ((plt.$cssShim$ = win.__cssshim)) {
27
- return plt.$cssShim$.i();
28
- }
29
- else {
30
- // for better minification
31
- return 0;
32
- }
33
- });
34
- }
35
- return promiseResolve();
36
- };
37
- const patchBrowser = () => {
38
- {
39
- // shim css vars
40
- plt.$cssShim$ = win.__cssshim;
41
- }
42
- // @ts-ignore
43
- const scriptElm = Array.from(doc.querySelectorAll('script')).find(s => new RegExp(`\/${NAMESPACE}(\\.esm)?\\.js($|\\?|#)`).test(s.src) || s.getAttribute('data-stencil-namespace') === NAMESPACE)
44
- ;
45
- const opts = scriptElm['data-opts'] || {} ;
46
- if ( 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {
47
- // Safari < v11 support: This IF is true if it's Safari below v11.
48
- // This fn cannot use async/await since Safari didn't support it until v11,
49
- // however, Safari 10 did support modules. Safari 10 also didn't support "nomodule",
50
- // so both the ESM file and nomodule file would get downloaded. Only Safari
51
- // has 'onbeforeload' in the script, and "history.scrollRestoration" was added
52
- // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.
53
- // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.
54
- return {
55
- then() {
56
- /* promise noop */
57
- },
58
- };
59
- }
60
- {
61
- opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;
62
- {
63
- patchDynamicImport(opts.resourcesUrl, scriptElm);
64
- }
65
- if ( !win.customElements) {
66
- // module support, but no custom elements support (Old Edge)
67
- // @ts-ignore
68
- return import(/* webpackChunkName: "polyfills-dom" */ './dom-91ed8d21.js').then(() => opts);
69
- }
70
- }
71
- return promiseResolve(opts);
72
- };
73
- const patchDynamicImport = (base, orgScriptElm) => {
74
- const importFunctionName = getDynamicImportFunction(NAMESPACE);
75
- try {
76
- // test if this browser supports dynamic imports
77
- // There is a caching issue in V8, that breaks using import() in Function
78
- // By generating a random string, we can workaround it
79
- // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info
80
- win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);
81
- }
82
- catch (e) {
83
- // this shim is specifically for browsers that do support "esm" imports
84
- // however, they do NOT support "dynamic" imports
85
- // basically this code is for old Edge, v18 and below
86
- const moduleMap = new Map();
87
- win[importFunctionName] = (src) => {
88
- const url = new URL(src, base).href;
89
- let mod = moduleMap.get(url);
90
- if (!mod) {
91
- const script = doc.createElement('script');
92
- script.type = 'module';
93
- script.crossOrigin = orgScriptElm.crossOrigin;
94
- script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], { type: 'application/javascript' }));
95
- mod = new Promise(resolve => {
96
- script.onload = () => {
97
- resolve(win[importFunctionName].m);
98
- script.remove();
99
- };
100
- });
101
- moduleMap.set(url, mod);
102
- doc.head.appendChild(script);
103
- }
104
- return mod;
105
- };
106
- }
107
- };
108
-
109
- export { patchEsm as a, patchBrowser as p };
@@ -1,6 +0,0 @@
1
- import { b as bootstrapLazy } from './index-5ef692cc.js';
2
- import { p as patchBrowser } from './patch-f8a17185.js';
3
-
4
- patchBrowser().then(options => {
5
- return bootstrapLazy([["peculiar-attribute-certificate-viewer_9",[[1,"peculiar-certificate-decoder",{"certificateExample":[1,"certificate-example"],"certificateDecoded":[32]}],[1,"peculiar-attribute-certificate-viewer",{"certificate":[1],"download":[4],"authKeyIdParentLink":[513,"auth-key-id-parent-link"],"authKeyIdSiblingsLink":[513,"auth-key-id-siblings-link"],"subjectKeyIdChildrenLink":[513,"subject-key-id-children-link"],"subjectKeyIdSiblingsLink":[513,"subject-key-id-siblings-link"],"isDecodeInProcess":[32]}],[1,"peculiar-csr-viewer",{"certificate":[513],"download":[4],"subjectKeyIdChildrenLink":[513,"subject-key-id-children-link"],"subjectKeyIdSiblingsLink":[513,"subject-key-id-siblings-link"],"view":[513],"isDecodeInProcess":[32]}],[1,"peculiar-certificate-viewer",{"certificate":[513],"download":[516],"authKeyIdParentLink":[513,"auth-key-id-parent-link"],"authKeyIdSiblingsLink":[513,"auth-key-id-siblings-link"],"subjectKeyIdChildrenLink":[513,"subject-key-id-children-link"],"subjectKeyIdSiblingsLink":[513,"subject-key-id-siblings-link"],"issuerDnLink":[513,"issuer-dn-link"],"view":[513],"isDecodeInProcess":[32]}],[1,"peculiar-button-split",{"onClick":[16],"fill":[1],"actions":[16],"open":[32]}],[1,"peculiar-text-hider",{"opened":[1540]},[[0,"textExpand","textExpandHandler"]]],[1,"peculiar-link",{"href":[513],"type":[513]}],[1,"peculiar-typography",{"type":[513],"color":[1],"align":[1],"ellipsis":[4],"monospace":[4]}],[1,"peculiar-button",{"fill":[1],"disabled":[516],"href":[1],"target":[1],"onClick":[16]}]]],["peculiar-certificate-summary_3",[[1,"peculiar-certificate-summary",{"certificate":[16],"showIssuer":[4,"show-issuer"]}],[1,"peculiar-circular-progress",{"size":[2],"width":[2]}],[1,"peculiar-highlight-words",{"search":[1]}]]],["peculiar-certificates-viewer",[[1,"peculiar-certificates-viewer",{"certificates":[16],"filterWithSearch":[4,"filter-with-search"],"highlightWithSearch":[4,"highlight-with-search"],"search":[32],"certificatesDecoded":[32],"expandedRow":[32],"certificateSelectedForDetails":[32],"isDecodeInProcess":[32]}]]]], options);
6
- });