cherry-muse 1.0.1

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 (226) hide show
  1. package/LICENSE +162 -0
  2. package/README.md +139 -0
  3. package/dist/addons/cherry-code-block-card-plugin.js +1 -0
  4. package/dist/addons/cherry-code-block-echarts-plugin.js +1 -0
  5. package/dist/addons/cherry-code-block-mermaid-plugin.js +1 -0
  6. package/dist/cherry-markdown.core.common.js +1 -0
  7. package/dist/cherry-markdown.core.js +1 -0
  8. package/dist/cherry-markdown.css +4089 -0
  9. package/dist/cherry-markdown.engine.core.common.js +1 -0
  10. package/dist/cherry-markdown.engine.core.esm.js +1 -0
  11. package/dist/cherry-markdown.engine.core.js +1 -0
  12. package/dist/cherry-markdown.esm.js +1 -0
  13. package/dist/cherry-markdown.js +70837 -0
  14. package/dist/cherry-markdown.js.map +1 -0
  15. package/dist/cherry-markdown.min.css +1 -0
  16. package/dist/cherry-markdown.min.js +1 -0
  17. package/dist/stats.html +4838 -0
  18. package/examples/scripts/pinyin/README.md +53 -0
  19. package/package.json +167 -0
  20. package/src/Cherry.config.js +411 -0
  21. package/src/Cherry.js +788 -0
  22. package/src/CherryStatic.js +70 -0
  23. package/src/Editor.js +746 -0
  24. package/src/Engine.js +334 -0
  25. package/src/Event.js +74 -0
  26. package/src/Factory.js +180 -0
  27. package/src/Logger.js +31 -0
  28. package/src/Previewer.js +1147 -0
  29. package/src/Sanitizer.js +4 -0
  30. package/src/Sanitizer.node.js +7 -0
  31. package/src/Stats.js +101 -0
  32. package/src/Theme.js +46 -0
  33. package/src/UrlCache.js +98 -0
  34. package/src/addons/cherry-code-block-card-plugin.js +213 -0
  35. package/src/addons/cherry-code-block-echarts-plugin.js +161 -0
  36. package/src/addons/cherry-code-block-mermaid-plugin.js +118 -0
  37. package/src/core/HookCenter.js +303 -0
  38. package/src/core/HooksConfig.js +106 -0
  39. package/src/core/ParagraphBase.js +314 -0
  40. package/src/core/SentenceBase.js +65 -0
  41. package/src/core/SyntaxBase.js +197 -0
  42. package/src/core/hooks/AutoLink.js +251 -0
  43. package/src/core/hooks/BackgroundColor.js +46 -0
  44. package/src/core/hooks/Badge.js +100 -0
  45. package/src/core/hooks/Blockquote.js +113 -0
  46. package/src/core/hooks/Br.js +85 -0
  47. package/src/core/hooks/CodeBlock.js +876 -0
  48. package/src/core/hooks/Color.js +78 -0
  49. package/src/core/hooks/CommentReference.js +96 -0
  50. package/src/core/hooks/Detail.js +138 -0
  51. package/src/core/hooks/Emoji.config.js +9388 -0
  52. package/src/core/hooks/Emoji.js +223 -0
  53. package/src/core/hooks/Emphasis.js +113 -0
  54. package/src/core/hooks/Footnote.js +125 -0
  55. package/src/core/hooks/FrontMatter.js +52 -0
  56. package/src/core/hooks/FrontMatterVars.js +82 -0
  57. package/src/core/hooks/Header.js +229 -0
  58. package/src/core/hooks/HighLight.js +37 -0
  59. package/src/core/hooks/Hr.js +52 -0
  60. package/src/core/hooks/HtmlBlock.js +159 -0
  61. package/src/core/hooks/Iframe.js +80 -0
  62. package/src/core/hooks/Image.js +276 -0
  63. package/src/core/hooks/InlineCode.js +45 -0
  64. package/src/core/hooks/InlineMath.js +142 -0
  65. package/src/core/hooks/Link.js +169 -0
  66. package/src/core/hooks/List.js +260 -0
  67. package/src/core/hooks/Mark.js +55 -0
  68. package/src/core/hooks/MathBlock.js +97 -0
  69. package/src/core/hooks/Panel.js +170 -0
  70. package/src/core/hooks/Paragraph.js +84 -0
  71. package/src/core/hooks/Ruby.js +34 -0
  72. package/src/core/hooks/Size.js +84 -0
  73. package/src/core/hooks/Strikethrough.js +54 -0
  74. package/src/core/hooks/Sub.js +47 -0
  75. package/src/core/hooks/SuggestList.js +317 -0
  76. package/src/core/hooks/Suggester.js +759 -0
  77. package/src/core/hooks/Sup.js +47 -0
  78. package/src/core/hooks/Table.js +315 -0
  79. package/src/core/hooks/Toc.js +290 -0
  80. package/src/core/hooks/Transfer.js +47 -0
  81. package/src/core/hooks/Underline.js +37 -0
  82. package/src/index.core.js +29 -0
  83. package/src/index.engine.core.js +62 -0
  84. package/src/index.engine.js +30 -0
  85. package/src/index.js +28 -0
  86. package/src/locales/index.js +21 -0
  87. package/src/locales/zh_CN.js +170 -0
  88. package/src/sass/cherry.scss +122 -0
  89. package/src/sass/components/bubble.scss +122 -0
  90. package/src/sass/components/codemirror.scss +628 -0
  91. package/src/sass/components/dropdown.scss +37 -0
  92. package/src/sass/components/editor.scss +78 -0
  93. package/src/sass/components/preview.scss +71 -0
  94. package/src/sass/components/prism.scss +142 -0
  95. package/src/sass/components/stats.scss +32 -0
  96. package/src/sass/components/toc.scss +184 -0
  97. package/src/sass/components/toolbar.scss +117 -0
  98. package/src/sass/core/AutoLink.scss +20 -0
  99. package/src/sass/core/BackgroundColor.scss +0 -0
  100. package/src/sass/core/Badge.scss +116 -0
  101. package/src/sass/core/Blockquote.scss +12 -0
  102. package/src/sass/core/Br.scss +0 -0
  103. package/src/sass/core/Card.scss +219 -0
  104. package/src/sass/core/CodeBlock.scss +205 -0
  105. package/src/sass/core/Color.scss +37 -0
  106. package/src/sass/core/CommentReference.scss +0 -0
  107. package/src/sass/core/Detail.scss +107 -0
  108. package/src/sass/core/Emoji.scss +127 -0
  109. package/src/sass/core/Emphasis.scss +9 -0
  110. package/src/sass/core/Footnote.scss +21 -0
  111. package/src/sass/core/FrontMatterVars.scss +19 -0
  112. package/src/sass/core/Header.scss +103 -0
  113. package/src/sass/core/HighLight.scss +0 -0
  114. package/src/sass/core/Hr.scss +10 -0
  115. package/src/sass/core/HtmlBlock.scss +0 -0
  116. package/src/sass/core/Iframe.scss +36 -0
  117. package/src/sass/core/Image.scss +59 -0
  118. package/src/sass/core/InlineCode.scss +10 -0
  119. package/src/sass/core/InlineMath.scss +11 -0
  120. package/src/sass/core/Link.scss +16 -0
  121. package/src/sass/core/List.scss +61 -0
  122. package/src/sass/core/Mark.scss +15 -0
  123. package/src/sass/core/MathBlock.scss +0 -0
  124. package/src/sass/core/Panel.scss +150 -0
  125. package/src/sass/core/Paragraph.scss +6 -0
  126. package/src/sass/core/Ruby.scss +0 -0
  127. package/src/sass/core/Size.scss +8 -0
  128. package/src/sass/core/Strikethrough.scss +0 -0
  129. package/src/sass/core/Sub.scss +5 -0
  130. package/src/sass/core/Suggester.scss +62 -0
  131. package/src/sass/core/Sup.scss +5 -0
  132. package/src/sass/core/Table.scss +127 -0
  133. package/src/sass/core/Toc.scss +28 -0
  134. package/src/sass/core/Transfer.scss +0 -0
  135. package/src/sass/core/Underline.scss +0 -0
  136. package/src/sass/google-fonts.scss +34 -0
  137. package/src/sass/index.scss +3 -0
  138. package/src/sass/prism/dark.scss +131 -0
  139. package/src/sass/prism/light.scss +143 -0
  140. package/src/sass/variables/colors.scss +96 -0
  141. package/src/toolbars/Bubble.js +232 -0
  142. package/src/toolbars/BubbleTable.js +147 -0
  143. package/src/toolbars/HookCenter.js +185 -0
  144. package/src/toolbars/MenuBase.js +357 -0
  145. package/src/toolbars/PreviewerBubble.js +558 -0
  146. package/src/toolbars/Toc.js +246 -0
  147. package/src/toolbars/Toolbar.js +401 -0
  148. package/src/toolbars/hooks/Audio.js +53 -0
  149. package/src/toolbars/hooks/Badge.js +80 -0
  150. package/src/toolbars/hooks/BarTable.js +41 -0
  151. package/src/toolbars/hooks/Bold.js +70 -0
  152. package/src/toolbars/hooks/Br.js +34 -0
  153. package/src/toolbars/hooks/Card.js +64 -0
  154. package/src/toolbars/hooks/CheckList.js +41 -0
  155. package/src/toolbars/hooks/Code.js +46 -0
  156. package/src/toolbars/hooks/Color.js +285 -0
  157. package/src/toolbars/hooks/Copy.js +139 -0
  158. package/src/toolbars/hooks/Detail.js +70 -0
  159. package/src/toolbars/hooks/ECharts.js +303 -0
  160. package/src/toolbars/hooks/Emoji.js +303 -0
  161. package/src/toolbars/hooks/Export.js +47 -0
  162. package/src/toolbars/hooks/File.js +54 -0
  163. package/src/toolbars/hooks/Formula.js +36 -0
  164. package/src/toolbars/hooks/FullScreen.js +55 -0
  165. package/src/toolbars/hooks/Graph.js +281 -0
  166. package/src/toolbars/hooks/H1.js +71 -0
  167. package/src/toolbars/hooks/H2.js +71 -0
  168. package/src/toolbars/hooks/H3.js +71 -0
  169. package/src/toolbars/hooks/Header.js +100 -0
  170. package/src/toolbars/hooks/Hr.js +35 -0
  171. package/src/toolbars/hooks/Iframe.js +35 -0
  172. package/src/toolbars/hooks/Image.js +60 -0
  173. package/src/toolbars/hooks/Insert.js +36 -0
  174. package/src/toolbars/hooks/Italic.js +70 -0
  175. package/src/toolbars/hooks/LineTable.js +41 -0
  176. package/src/toolbars/hooks/Link.js +46 -0
  177. package/src/toolbars/hooks/List.js +55 -0
  178. package/src/toolbars/hooks/Ol.js +41 -0
  179. package/src/toolbars/hooks/Panel.js +155 -0
  180. package/src/toolbars/hooks/Quote.js +45 -0
  181. package/src/toolbars/hooks/Redo.js +33 -0
  182. package/src/toolbars/hooks/Ruby.js +59 -0
  183. package/src/toolbars/hooks/Size.js +100 -0
  184. package/src/toolbars/hooks/Split.js +37 -0
  185. package/src/toolbars/hooks/Strikethrough.js +65 -0
  186. package/src/toolbars/hooks/Sub.js +58 -0
  187. package/src/toolbars/hooks/Sup.js +58 -0
  188. package/src/toolbars/hooks/SwitchModel.js +78 -0
  189. package/src/toolbars/hooks/Table.js +56 -0
  190. package/src/toolbars/hooks/Toc.js +35 -0
  191. package/src/toolbars/hooks/TogglePreview.js +79 -0
  192. package/src/toolbars/hooks/Ul.js +41 -0
  193. package/src/toolbars/hooks/Underline.js +65 -0
  194. package/src/toolbars/hooks/Undo.js +30 -0
  195. package/src/toolbars/hooks/Video.js +53 -0
  196. package/src/utils/LazyLoadImg.js +341 -0
  197. package/src/utils/autoindent.js +58 -0
  198. package/src/utils/codeBlockContentHandler.js +351 -0
  199. package/src/utils/config.js +98 -0
  200. package/src/utils/copy.js +55 -0
  201. package/src/utils/dialog.js +196 -0
  202. package/src/utils/dom.js +162 -0
  203. package/src/utils/downloadUtil.js +23 -0
  204. package/src/utils/env.js +22 -0
  205. package/src/utils/error.js +61 -0
  206. package/src/utils/event.js +38 -0
  207. package/src/utils/export.js +115 -0
  208. package/src/utils/file.js +121 -0
  209. package/src/utils/formulaUtilsHandler.js +230 -0
  210. package/src/utils/htmlparser.js +977 -0
  211. package/src/utils/image.js +99 -0
  212. package/src/utils/imgSizeHandler.js +279 -0
  213. package/src/utils/jsonUtils.js +17 -0
  214. package/src/utils/lineFeed.js +49 -0
  215. package/src/utils/listContentHandler.js +227 -0
  216. package/src/utils/lookbehind-replace.js +81 -0
  217. package/src/utils/mathjax.js +89 -0
  218. package/src/utils/myersDiff.js +211 -0
  219. package/src/utils/pasteHelper.js +253 -0
  220. package/src/utils/recount-pos.js +59 -0
  221. package/src/utils/regexp.js +295 -0
  222. package/src/utils/sanitize.js +477 -0
  223. package/src/utils/selection.js +50 -0
  224. package/src/utils/svgUtils.js +96 -0
  225. package/src/utils/tableContentHandler.js +592 -0
  226. package/tools/README.md +3 -0
package/LICENSE ADDED
@@ -0,0 +1,162 @@
1
+ Tencent is pleased to support the open source community by making CherryMarkdown available.
2
+
3
+ Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
4
+ CherryMarkdown is licensed under the Apache License Version 2.0 except for the third-party components listed below.
5
+
6
+ License for CherryMarkdown:
7
+ --------------------------------------------------------------------
8
+ Apache License
9
+
10
+ Version 2.0, January 2004
11
+
12
+ http://www.apache.org/licenses/
13
+
14
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
15
+ 1. Definitions.
16
+
17
+ "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
18
+
19
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
20
+
21
+ "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
24
+
25
+ "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
26
+
27
+ "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
28
+
29
+ "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
30
+
31
+ "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
32
+
33
+ "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
34
+
35
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
36
+
37
+ 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
38
+
39
+ 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
40
+
41
+ 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
42
+
43
+ You must give any other recipients of the Work or Derivative Works a copy of this License; and
44
+
45
+ You must cause any modified files to carry prominent notices stating that You changed the files; and
46
+
47
+ You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
48
+
49
+ If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
50
+
51
+ You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
52
+
53
+ 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
54
+
55
+ 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
56
+
57
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
58
+
59
+ 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
60
+
61
+ 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
62
+
63
+ END OF TERMS AND CONDITIONS
64
+
65
+
66
+
67
+ Other dependencies and licenses:
68
+
69
+
70
+ Open Source Software Licensed under the MIT License:
71
+ --------------------------------------------------------------------
72
+ 1. babel
73
+ Copyright (c) 2014-present Sebastian McKenzie and other contributors
74
+
75
+ 2. codemirror
76
+ Copyright (C) 2017 by Marijn Haverbeke <marijnh@gmail.com> and others
77
+
78
+ 3. core-js-pure
79
+ Copyright (c) 2014-2021 Denis Pushkarev
80
+
81
+ 4. mitt
82
+ Copyright © Jason Miller
83
+
84
+ 5. virtual-dom
85
+ Copyright (c) 2014 Matt-Esch.
86
+
87
+ 6. mermaid
88
+ Copyright (c) 2014 - 2018 Knut Sveidqvist
89
+
90
+ 7. juice
91
+ Copyright (c) 2021 Automattic
92
+
93
+
94
+ Terms of the MIT License:
95
+ --------------------------------------------------------------------
96
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
97
+
98
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
99
+
100
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
101
+
102
+
103
+
104
+ Open Source Software Licensed under the Apache License Version 2.0:
105
+ --------------------------------------------------------------------
106
+ 1. dompurify
107
+ Copyright 2015 Mario Heiderich
108
+
109
+ A copy of the Apache Version 2.0 License is included in this file.
110
+
111
+
112
+
113
+ Open Source Software Licensed under the MIT License and Other Licenses of the Third-Party Components therein:
114
+ --------------------------------------------------------------------
115
+ 1. lodash
116
+ Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
117
+
118
+
119
+ A copy of the MIT License is included in this file.
120
+
121
+ For Sample code:
122
+ Copyright Sample code author and original authors
123
+ Software Licensed in the Public Domain
124
+
125
+ For third-party backbone:
126
+ Copyright (c) 2010-2016 Jeremy Ashkenas, DocumentCloud
127
+ This software is licensed under the MIT.
128
+ A copy of the MIT License is included in this file.
129
+
130
+ For third-party json2.js:
131
+ Copyright json2.js author and original authors
132
+ Software Licensed in the Public Domain
133
+
134
+ For third-party underscore:
135
+ Copyright (c) 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative
136
+ This software is licensed under the MIT.
137
+ A copy of the MIT License is included in this file.
138
+
139
+
140
+ Open Source Software Licensed under the BSD 3-Clause License:
141
+ --------------------------------------------------------------------
142
+ 1. md5
143
+ Copyright © 2011-2012, Paul Vorbach.
144
+ Copyright © 2009, Jeff Mott.
145
+
146
+ All rights reserved.
147
+
148
+
149
+ Terms of the BSD 3-Clause License:
150
+ --------------------------------------------------------------------
151
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
152
+
153
+ 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
154
+
155
+ 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
156
+
157
+ 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
158
+
159
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
160
+
161
+
162
+
package/README.md ADDED
@@ -0,0 +1,139 @@
1
+ <p align="center"><img src="logo/android-chrome-192x192.png" alt="cherry logo" width="100px"/></p>
2
+
3
+ # Cherry Muse
4
+
5
+ > 基于 [Cherry Markdown](https://github.com/Tencent/cherry-markdown) 的深度定制版本
6
+
7
+ ## 为什么选择 Cherry Muse?
8
+
9
+ **体积优化**: 编译后的 `cherry-markdown.min.js` 仅 **800KB**,相比官方版本的 4.8MB 减少了 **83%**
10
+
11
+ **核心改进**:
12
+ - 🎨 现代化 UI 设计,自动跟随系统主题切换
13
+ - ⚡ 更激进的按需加载策略(Mermaid/ECharts/MathJax 支持 API 渲染)
14
+ - 🔧 增强的 Markdown 语法支持(文件渲染、卡片列表、高亮、徽章等)
15
+ - 🌐 专注中文环境优化
16
+
17
+ ## 快速开始
18
+
19
+ ### 安装
20
+
21
+ ```bash
22
+ npm install cherry-muse
23
+ ```
24
+
25
+ ### 基础使用
26
+
27
+ ```javascript
28
+ import Cherry from 'cherry-muse';
29
+
30
+ const cherry = new Cherry({
31
+ id: 'markdown-container',
32
+ value: '# Hello Cherry Muse'
33
+ });
34
+ ```
35
+
36
+ ### CDN 引入
37
+
38
+ ```html
39
+ <link href="dist/cherry-markdown.min.css" rel="stylesheet">
40
+ <script src="dist/cherry-markdown.min.js"></script>
41
+
42
+ <div id="markdown-container"></div>
43
+
44
+ <script>
45
+ const cherry = new Cherry({
46
+ id: 'markdown-container',
47
+ value: '# Hello Cherry Muse'
48
+ });
49
+ </script>
50
+ ```
51
+
52
+ ## 主要特性
53
+
54
+ ### 🎨 UI/UX 增强
55
+
56
+ - 内置 `light` 和 `dark` 主题,自动跟随系统切换
57
+ - 使用 Google Fonts 图标替代原有字体图标
58
+ - Typora 风格的语法提示效果
59
+ - 重新设计的编辑器界面,更简洁现代
60
+
61
+ ### ✨ 新增语法
62
+
63
+ | 语法 | 说明 | 示例 |
64
+ |------|------|------|
65
+ | 文件渲染 | 渲染文件链接 | `!file[文件名](url)` |
66
+ | 高亮 | 文本高亮显示 | `==高亮文本==` |
67
+ | 徽章 | 显示徽章 | 徽章语法 |
68
+ | 卡片列表 | 卡片样式列表 | 卡片列表语法 |
69
+ | Iframe | 嵌入外部页面 | iframe 语法 |
70
+ | FrontMatter | 完整的元数据支持 | 支持 `yaml` 和 `json` |
71
+
72
+ ### ⚡ 性能优化
73
+
74
+ **按需加载策略**:大型渲染库支持 API 服务端渲染或前端引入
75
+ - Mermaid 图表
76
+ - ECharts 图表
77
+ - MathJax 公式
78
+
79
+ 这意味着:
80
+ - 默认情况下使用 API 渲染,零前端体积
81
+ - 需要离线环境?自行引入对应 JS 库即可切换为前端渲染
82
+
83
+ ### 🔧 功能优化
84
+
85
+ **新增功能**:
86
+ - Emoji 自动联想补全
87
+ - 编辑器渲染完成事件
88
+ - 二级菜单打开事件
89
+ - 编辑器模式修改事件
90
+
91
+ **改进功能**:
92
+ - 重新设计的联想功能,修复深拷贝问题
93
+ - Checklist 使用原生 `<input>` 替代图标
94
+ - 字数统计移至左下角显示
95
+ - 更流畅的预览切换体验
96
+
97
+ **精简内容**:
98
+ - 移除 PlantUML 语法
99
+ - 移除浮动菜单(FloatMenu)
100
+ - 移除导出长图功能
101
+ - 移除预览时修改代码语言功能
102
+ - 删除英语语言包,完善中文语言包
103
+
104
+ ### 🛠️ 开发体验
105
+
106
+ - 移除 TypeScript 相关内容(纯 JavaScript)
107
+ - 删除所有测试用例
108
+ - 更小的构建产物
109
+
110
+ ## 与原版的区别
111
+
112
+ Cherry Muse 是对 Cherry Markdown 的**精简优化版**,而非功能增强版。我们的理念是:
113
+
114
+ ```
115
+ 体积更小 + 核心功能完整 > 大而全但臃肿
116
+ ```
117
+
118
+ **适合使用 Cherry Muse 的场景**:
119
+ - 需要控制前端资源体积的项目
120
+ - 主要面向中文用户的应用
121
+ - 不需要 PlantUML、长图导出等边缘功能
122
+ - 希望使用服务端渲染 Mermaid/ECharts 的项目
123
+
124
+ **仍然建议使用原版的场景**:
125
+ - 需要完整的国际化支持
126
+ - 依赖 PlantUML 等被移除的功能
127
+ - 团队已经深度依赖 TypeScript 类型定义
128
+
129
+ ## 维护策略
130
+
131
+ 定期跟随 Cherry Markdown 官方更新,保持同步。
132
+
133
+ ## 开源协议
134
+
135
+ Apache-2.0
136
+
137
+ ---
138
+
139
+ **基于 [Cherry Markdown](https://github.com/Tencent/cherry-markdown) 构建** | 感谢腾讯开源团队的优秀工作
@@ -0,0 +1 @@
1
+ !function(t,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):(t="undefined"!=typeof globalThis?globalThis:t||self).CherryCodeBlockCardPlugin=r()}(this,(function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t,r){return t(r={exports:{}},r.exports),r.exports}function n(t){return t&&t.default||t}var e,o,i=function(t){return t&&t.Math==Math&&t},a=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof t&&t)||function(){return this}()||Function("return this")(),c=function(t){try{return!!t()}catch(t){return!0}},u=!c((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=Function.prototype,s=f.apply,l=f.call,v="object"==typeof Reflect&&Reflect.apply||(u?l.bind(s):function(){return l.apply(s,arguments)}),p=Function.prototype,y=p.bind,h=p.call,d=u&&y.bind(h,h),b=u?function(t){return t&&d(t)}:function(t){return t&&function(){return h.apply(t,arguments)}},g=function(t){return"function"==typeof t},m=!c((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),_=Function.prototype.call,O=u?_.bind(_):function(){return _.apply(_,arguments)},j={}.propertyIsEnumerable,w=Object.getOwnPropertyDescriptor,S={f:w&&!j.call({1:2},1)?function(t){var r=w(this,t);return!!r&&r.enumerable}:j},A=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},x=b({}.toString),E=b("".slice),P=function(t){return E(x(t),8,-1)},F=a.Object,T=b("".split),C=c((function(){return!F("z").propertyIsEnumerable(0)}))?function(t){return"String"==P(t)?T(t,""):F(t)}:F,D=a.TypeError,k=function(t){if(null==t)throw D("Can't call method on "+t);return t},L=function(t){return C(k(t))},I=function(t){return"object"==typeof t?null!==t:g(t)},M={},B=function(t){return g(t)?t:void 0},z=function(t,r){return arguments.length<2?B(M[t])||B(a[t]):M[t]&&M[t][r]||a[t]&&a[t][r]},R=b({}.isPrototypeOf),N=z("navigator","userAgent")||"",G=a.process,U=a.Deno,W=G&&G.versions||U&&U.version,$=W&&W.v8;$&&(o=(e=$.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!o&&N&&(!(e=N.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=N.match(/Chrome\/(\d+)/))&&(o=+e[1]);var V=o,q=!!Object.getOwnPropertySymbols&&!c((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&V&&V<41})),H=q&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,J=a.Object,Y=H?function(t){return"symbol"==typeof t}:function(t){var r=z("Symbol");return g(r)&&R(r.prototype,J(t))},X=a.String,Q=function(t){try{return X(t)}catch(t){return"Object"}},K=a.TypeError,Z=function(t){if(g(t))return t;throw K(Q(t)+" is not a function")},tt=function(t,r){var n=t[r];return null==n?void 0:Z(n)},rt=a.TypeError,nt=Object.defineProperty,et="__core-js_shared__",ot=a[et]||function(t,r){try{nt(a,t,{value:r,configurable:!0,writable:!0})}catch(n){a[t]=r}return r}(et,{}),it=r((function(t){(t.exports=function(t,r){return ot[t]||(ot[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.22.6",mode:"pure",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.6/LICENSE",source:"https://github.com/zloirock/core-js"})})),at=a.Object,ct=function(t){return at(k(t))},ut=b({}.hasOwnProperty),ft=Object.hasOwn||function(t,r){return ut(ct(t),r)},st=0,lt=Math.random(),vt=b(1..toString),pt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+vt(++st+lt,36)},yt=it("wks"),ht=a.Symbol,dt=ht&&ht.for,bt=H?ht:ht&&ht.withoutSetter||pt,gt=function(t){if(!ft(yt,t)||!q&&"string"!=typeof yt[t]){var r="Symbol."+t;q&&ft(ht,t)?yt[t]=ht[t]:yt[t]=H&&dt?dt(r):bt(r)}return yt[t]},mt=a.TypeError,_t=gt("toPrimitive"),Ot=function(t,r){if(!I(t)||Y(t))return t;var n,e=tt(t,_t);if(e){if(void 0===r&&(r="default"),n=O(e,t,r),!I(n)||Y(n))return n;throw mt("Can't convert object to primitive value")}return void 0===r&&(r="number"),function(t,r){var n,e;if("string"===r&&g(n=t.toString)&&!I(e=O(n,t)))return e;if(g(n=t.valueOf)&&!I(e=O(n,t)))return e;if("string"!==r&&g(n=t.toString)&&!I(e=O(n,t)))return e;throw rt("Can't convert object to primitive value")}(t,r)},jt=function(t){var r=Ot(t,"string");return Y(r)?r:r+""},wt=a.document,St=I(wt)&&I(wt.createElement),At=function(t){return St?wt.createElement(t):{}},xt=!m&&!c((function(){return 7!=Object.defineProperty(At("div"),"a",{get:function(){return 7}}).a})),Et=Object.getOwnPropertyDescriptor,Pt={f:m?Et:function(t,r){if(t=L(t),r=jt(r),xt)try{return Et(t,r)}catch(t){}if(ft(t,r))return A(!O(S.f,t,r),t[r])}},Ft=/#|\.prototype\./,Tt=function(t,r){var n=Dt[Ct(t)];return n==Lt||n!=kt&&(g(r)?c(r):!!r)},Ct=Tt.normalize=function(t){return String(t).replace(Ft,".").toLowerCase()},Dt=Tt.data={},kt=Tt.NATIVE="N",Lt=Tt.POLYFILL="P",It=Tt,Mt=b(b.bind),Bt=function(t,r){return Z(t),void 0===r?t:u?Mt(t,r):function(){return t.apply(r,arguments)}},zt=m&&c((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Rt=a.String,Nt=a.TypeError,Gt=function(t){if(I(t))return t;throw Nt(Rt(t)+" is not an object")},Ut=a.TypeError,Wt=Object.defineProperty,$t=Object.getOwnPropertyDescriptor,Vt="enumerable",qt="configurable",Ht="writable",Jt={f:m?zt?function(t,r,n){if(Gt(t),r=jt(r),Gt(n),"function"==typeof t&&"prototype"===r&&"value"in n&&Ht in n&&!n[Ht]){var e=$t(t,r);e&&e[Ht]&&(t[r]=n.value,n={configurable:qt in n?n[qt]:e[qt],enumerable:Vt in n?n[Vt]:e[Vt],writable:!1})}return Wt(t,r,n)}:Wt:function(t,r,n){if(Gt(t),r=jt(r),Gt(n),xt)try{return Wt(t,r,n)}catch(t){}if("get"in n||"set"in n)throw Ut("Accessors not supported");return"value"in n&&(t[r]=n.value),t}},Yt=m?function(t,r,n){return Jt.f(t,r,A(1,n))}:function(t,r,n){return t[r]=n,t},Xt=Pt.f,Qt=function(t){var r=function(n,e,o){if(this instanceof r){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,o)}return v(t,this,arguments)};return r.prototype=t.prototype,r},Kt=function(t,r){var n,e,o,i,c,u,f,s,l=t.target,v=t.global,p=t.stat,y=t.proto,h=v?a:p?a[l]:(a[l]||{}).prototype,d=v?M:M[l]||Yt(M,l,{})[l],m=d.prototype;for(o in r)n=!It(v?o:l+(p?".":"#")+o,t.forced)&&h&&ft(h,o),c=d[o],n&&(u=t.dontCallGetSet?(s=Xt(h,o))&&s.value:h[o]),i=n&&u?u:r[o],n&&typeof c==typeof i||(f=t.bind&&n?Bt(i,a):t.wrap&&n?Qt(i):y&&g(i)?b(i):i,(t.sham||i&&i.sham||c&&c.sham)&&Yt(f,"sham",!0),Yt(d,o,f),y&&(ft(M,e=l+"Prototype")||Yt(M,e,{}),Yt(M[e],o,i),t.real&&m&&!m[o]&&Yt(m,o,i)))},Zt=Array.isArray||function(t){return"Array"==P(t)};Kt({target:"Array",stat:!0},{isArray:Zt});var tr=M.Array.isArray;var rr=Math.ceil,nr=Math.floor,er=Math.trunc||function(t){var r=+t;return(r>0?nr:rr)(r)},or=function(t){var r=+t;return r!=r||0===r?0:er(r)},ir=Math.min,ar=function(t){return t>0?ir(or(t),9007199254740991):0},cr=function(t){return ar(t.length)},ur=function(t,r,n){var e=jt(r);e in t?Jt.f(t,e,A(0,n)):t[e]=n},fr={};fr[gt("toStringTag")]="z";var sr="[object z]"===String(fr),lr=gt("toStringTag"),vr=a.Object,pr="Arguments"==P(function(){return arguments}()),yr=sr?P:function(t){var r,n,e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,r){try{return t[r]}catch(t){}}(r=vr(t),lr))?n:pr?P(r):"Object"==(e=P(r))&&g(r.callee)?"Arguments":e},hr=b(Function.toString);g(ot.inspectSource)||(ot.inspectSource=function(t){return hr(t)});var dr=ot.inspectSource,br=function(){},gr=[],mr=z("Reflect","construct"),_r=/^\s*(?:class|function)\b/,Or=b(_r.exec),jr=!_r.exec(br),wr=function(t){if(!g(t))return!1;try{return mr(br,gr,t),!0}catch(t){return!1}},Sr=function(t){if(!g(t))return!1;switch(yr(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return jr||!!Or(_r,dr(t))}catch(t){return!0}};Sr.sham=!0;var Ar=!mr||c((function(){var t;return wr(wr.call)||!wr(Object)||!wr((function(){t=!0}))||t}))?Sr:wr,xr=gt("species"),Er=a.Array,Pr=function(t,r){return new(function(t){var r;return Zt(t)&&(r=t.constructor,(Ar(r)&&(r===Er||Zt(r.prototype))||I(r)&&null===(r=r[xr]))&&(r=void 0)),void 0===r?Er:r}(t))(0===r?0:r)},Fr=gt("species"),Tr=function(t){return V>=51||!c((function(){var r=[];return(r.constructor={})[Fr]=function(){return{foo:1}},1!==r[t](Boolean).foo}))},Cr=gt("isConcatSpreadable"),Dr=9007199254740991,kr="Maximum allowed index exceeded",Lr=a.TypeError,Ir=V>=51||!c((function(){var t=[];return t[Cr]=!1,t.concat()[0]!==t})),Mr=Tr("concat"),Br=function(t){if(!I(t))return!1;var r=t[Cr];return void 0!==r?!!r:Zt(t)};Kt({target:"Array",proto:!0,arity:1,forced:!Ir||!Mr},{concat:function(t){var r,n,e,o,i,a=ct(this),c=Pr(a,0),u=0;for(r=-1,e=arguments.length;r<e;r++)if(Br(i=-1===r?a:arguments[r])){if(u+(o=cr(i))>Dr)throw Lr(kr);for(n=0;n<o;n++,u++)n in i&&ur(c,u,i[n])}else{if(u>=Dr)throw Lr(kr);ur(c,u++,i)}return c.length=u,c}});var zr,Rr=Object.freeze({__proto__:null}),Nr=a.String,Gr=function(t){if("Symbol"===yr(t))throw TypeError("Cannot convert a Symbol value to a string");return Nr(t)},Ur=Math.max,Wr=Math.min,$r=function(t,r){var n=or(t);return n<0?Ur(n+r,0):Wr(n,r)},Vr=function(t){return function(r,n,e){var o,i=L(r),a=cr(i),c=$r(e,a);if(t&&n!=n){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===n)return t||c||0;return!t&&-1}},qr={includes:Vr(!0),indexOf:Vr(!1)},Hr={},Jr=qr.indexOf,Yr=b([].push),Xr=function(t,r){var n,e=L(t),o=0,i=[];for(n in e)!ft(Hr,n)&&ft(e,n)&&Yr(i,n);for(;r.length>o;)ft(e,n=r[o++])&&(~Jr(i,n)||Yr(i,n));return i},Qr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Kr=Object.keys||function(t){return Xr(t,Qr)},Zr=m&&!zt?Object.defineProperties:function(t,r){Gt(t);for(var n,e=L(r),o=Kr(r),i=o.length,a=0;i>a;)Jt.f(t,n=o[a++],e[n]);return t},tn={f:Zr},rn=z("document","documentElement"),nn=it("keys"),en=function(t){return nn[t]||(nn[t]=pt(t))},on="prototype",an="script",cn=en("IE_PROTO"),un=function(){},fn=function(t){return"<"+an+">"+t+"</"+an+">"},sn=function(t){t.write(fn("")),t.close();var r=t.parentWindow.Object;return t=null,r},ln=function(){try{zr=new ActiveXObject("htmlfile")}catch(t){}var t,r,n;ln="undefined"!=typeof document?document.domain&&zr?sn(zr):(r=At("iframe"),n="java"+an+":",r.style.display="none",rn.appendChild(r),r.src=String(n),(t=r.contentWindow.document).open(),t.write(fn("document.F=Object")),t.close(),t.F):sn(zr);for(var e=Qr.length;e--;)delete ln[on][Qr[e]];return ln()};Hr[cn]=!0;var vn,pn,yn,hn=Object.create||function(t,r){var n;return null!==t?(un[on]=Gt(t),n=new un,un[on]=null,n[cn]=t):n=ln(),void 0===r?n:tn.f(n,r)},dn=Qr.concat("length","prototype"),bn={f:Object.getOwnPropertyNames||function(t){return Xr(t,dn)}},gn=a.Array,mn=Math.max,_n=bn.f,On="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],jn=function(t){try{return _n(t)}catch(t){return function(t,r,n){for(var e=cr(t),o=$r(r,e),i=$r(void 0===n?e:n,e),a=gn(mn(i-o,0)),c=0;o<i;o++,c++)ur(a,c,t[o]);return a.length=c,a}(On)}},wn={f:function(t){return On&&"Window"==P(t)?jn(t):_n(L(t))}},Sn={f:Object.getOwnPropertySymbols},An=function(t,r,n,e){return e&&e.enumerable?t[r]=n:Yt(t,r,n),t},xn={f:gt},En=Jt.f,Pn=function(t){var r=M.Symbol||(M.Symbol={});ft(r,t)||En(r,t,{value:xn.f(t)})},Fn=function(){var t=z("Symbol"),r=t&&t.prototype,n=r&&r.valueOf,e=gt("toPrimitive");r&&!r[e]&&An(r,e,(function(t){return O(n,this)}),{arity:1})},Tn=sr?{}.toString:function(){return"[object "+yr(this)+"]"},Cn=Jt.f,Dn=gt("toStringTag"),kn=function(t,r,n,e){if(t){var o=n?t:t.prototype;ft(o,Dn)||Cn(o,Dn,{configurable:!0,value:r}),e&&!sr&&Yt(o,"toString",Tn)}},Ln=a.WeakMap,In=g(Ln)&&/native code/.test(dr(Ln)),Mn="Object already initialized",Bn=a.TypeError,zn=a.WeakMap;if(In||ot.state){var Rn=ot.state||(ot.state=new zn),Nn=b(Rn.get),Gn=b(Rn.has),Un=b(Rn.set);vn=function(t,r){if(Gn(Rn,t))throw new Bn(Mn);return r.facade=t,Un(Rn,t,r),r},pn=function(t){return Nn(Rn,t)||{}},yn=function(t){return Gn(Rn,t)}}else{var Wn=en("state");Hr[Wn]=!0,vn=function(t,r){if(ft(t,Wn))throw new Bn(Mn);return r.facade=t,Yt(t,Wn,r),r},pn=function(t){return ft(t,Wn)?t[Wn]:{}},yn=function(t){return ft(t,Wn)}}var $n={set:vn,get:pn,has:yn,enforce:function(t){return yn(t)?pn(t):vn(t,{})},getterFor:function(t){return function(r){var n;if(!I(r)||(n=pn(r)).type!==t)throw Bn("Incompatible receiver, "+t+" required");return n}}},Vn=b([].push),qn=function(t){var r=1==t,n=2==t,e=3==t,o=4==t,i=6==t,a=7==t,c=5==t||i;return function(u,f,s,l){for(var v,p,y=ct(u),h=C(y),d=Bt(f,s),b=cr(h),g=0,m=l||Pr,_=r?m(u,b):n||a?m(u,0):void 0;b>g;g++)if((c||g in h)&&(p=d(v=h[g],g,y),t))if(r)_[g]=p;else if(p)switch(t){case 3:return!0;case 5:return v;case 6:return g;case 2:Vn(_,v)}else switch(t){case 4:return!1;case 7:Vn(_,v)}return i?-1:e||o?o:_}},Hn={forEach:qn(0),map:qn(1),filter:qn(2),some:qn(3),every:qn(4),find:qn(5),findIndex:qn(6),filterReject:qn(7)},Jn=Hn.forEach,Yn=en("hidden"),Xn="Symbol",Qn="prototype",Kn=$n.set,Zn=$n.getterFor(Xn),te=Object[Qn],re=a.Symbol,ne=re&&re[Qn],ee=a.TypeError,oe=a.QObject,ie=Pt.f,ae=Jt.f,ce=wn.f,ue=S.f,fe=b([].push),se=it("symbols"),le=it("op-symbols"),ve=it("wks"),pe=!oe||!oe[Qn]||!oe[Qn].findChild,ye=m&&c((function(){return 7!=hn(ae({},"a",{get:function(){return ae(this,"a",{value:7}).a}})).a}))?function(t,r,n){var e=ie(te,r);e&&delete te[r],ae(t,r,n),e&&t!==te&&ae(te,r,e)}:ae,he=function(t,r){var n=se[t]=hn(ne);return Kn(n,{type:Xn,tag:t,description:r}),m||(n.description=r),n},de=function(t,r,n){t===te&&de(le,r,n),Gt(t);var e=jt(r);return Gt(n),ft(se,e)?(n.enumerable?(ft(t,Yn)&&t[Yn][e]&&(t[Yn][e]=!1),n=hn(n,{enumerable:A(0,!1)})):(ft(t,Yn)||ae(t,Yn,A(1,{})),t[Yn][e]=!0),ye(t,e,n)):ae(t,e,n)},be=function(t,r){Gt(t);var n=L(r),e=Kr(n).concat(Oe(n));return Jn(e,(function(r){m&&!O(ge,n,r)||de(t,r,n[r])})),t},ge=function(t){var r=jt(t),n=O(ue,this,r);return!(this===te&&ft(se,r)&&!ft(le,r))&&(!(n||!ft(this,r)||!ft(se,r)||ft(this,Yn)&&this[Yn][r])||n)},me=function(t,r){var n=L(t),e=jt(r);if(n!==te||!ft(se,e)||ft(le,e)){var o=ie(n,e);return!o||!ft(se,e)||ft(n,Yn)&&n[Yn][e]||(o.enumerable=!0),o}},_e=function(t){var r=ce(L(t)),n=[];return Jn(r,(function(t){ft(se,t)||ft(Hr,t)||fe(n,t)})),n},Oe=function(t){var r=t===te,n=ce(r?le:L(t)),e=[];return Jn(n,(function(t){!ft(se,t)||r&&!ft(te,t)||fe(e,se[t])})),e};q||(re=function(){if(R(ne,this))throw ee("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?Gr(arguments[0]):void 0,r=pt(t),n=function(t){this===te&&O(n,le,t),ft(this,Yn)&&ft(this[Yn],r)&&(this[Yn][r]=!1),ye(this,r,A(1,t))};return m&&pe&&ye(te,r,{configurable:!0,set:n}),he(r,t)},ne=re[Qn],An(ne,"toString",(function(){return Zn(this).tag})),An(re,"withoutSetter",(function(t){return he(pt(t),t)})),S.f=ge,Jt.f=de,tn.f=be,Pt.f=me,bn.f=wn.f=_e,Sn.f=Oe,xn.f=function(t){return he(gt(t),t)},m&&ae(ne,"description",{configurable:!0,get:function(){return Zn(this).description}})),Kt({global:!0,constructor:!0,wrap:!0,forced:!q,sham:!q},{Symbol:re}),Jn(Kr(ve),(function(t){Pn(t)})),Kt({target:Xn,stat:!0,forced:!q},{useSetter:function(){pe=!0},useSimple:function(){pe=!1}}),Kt({target:"Object",stat:!0,forced:!q,sham:!m},{create:function(t,r){return void 0===r?hn(t):be(hn(t),r)},defineProperty:de,defineProperties:be,getOwnPropertyDescriptor:me}),Kt({target:"Object",stat:!0,forced:!q},{getOwnPropertyNames:_e}),Fn(),kn(re,Xn),Hr[Yn]=!0;var je=q&&!!Symbol.for&&!!Symbol.keyFor,we=it("string-to-symbol-registry"),Se=it("symbol-to-string-registry");Kt({target:"Symbol",stat:!0,forced:!je},{for:function(t){var r=Gr(t);if(ft(we,r))return we[r];var n=z("Symbol")(r);return we[r]=n,Se[n]=r,n}});var Ae=it("symbol-to-string-registry");Kt({target:"Symbol",stat:!0,forced:!je},{keyFor:function(t){if(!Y(t))throw TypeError(Q(t)+" is not a symbol");if(ft(Ae,t))return Ae[t]}});var xe=b([].slice),Ee=z("JSON","stringify"),Pe=b(/./.exec),Fe=b("".charAt),Te=b("".charCodeAt),Ce=b("".replace),De=b(1..toString),ke=/[\uD800-\uDFFF]/g,Le=/^[\uD800-\uDBFF]$/,Ie=/^[\uDC00-\uDFFF]$/,Me=!q||c((function(){var t=z("Symbol")();return"[null]"!=Ee([t])||"{}"!=Ee({a:t})||"{}"!=Ee(Object(t))})),Be=c((function(){return'"\\udf06\\ud834"'!==Ee("\udf06\ud834")||'"\\udead"'!==Ee("\udead")})),ze=function(t,r){var n=xe(arguments),e=r;if((I(r)||void 0!==t)&&!Y(t))return Zt(r)||(r=function(t,r){if(g(e)&&(r=O(e,this,t,r)),!Y(r))return r}),n[1]=r,v(Ee,null,n)},Re=function(t,r,n){var e=Fe(n,r-1),o=Fe(n,r+1);return Pe(Le,t)&&!Pe(Ie,o)||Pe(Ie,t)&&!Pe(Le,e)?"\\u"+De(Te(t,0),16):t};Ee&&Kt({target:"JSON",stat:!0,arity:3,forced:Me||Be},{stringify:function(t,r,n){var e=xe(arguments),o=v(Me?ze:Ee,null,e);return Be&&"string"==typeof o?Ce(o,ke,Re):o}});var Ne=!q||c((function(){Sn.f(1)}));Kt({target:"Object",stat:!0,forced:Ne},{getOwnPropertySymbols:function(t){var r=Sn.f;return r?r(ct(t)):[]}}),Pn("asyncIterator");var Ge=Object.freeze({__proto__:null});Pn("hasInstance"),Pn("isConcatSpreadable"),Pn("iterator"),Pn("match"),Pn("matchAll"),Pn("replace"),Pn("search"),Pn("species"),Pn("split"),Pn("toPrimitive"),Fn(),Pn("toStringTag"),kn(z("Symbol"),"Symbol"),Pn("unscopables"),kn(a.JSON,"JSON",!0);var Ue=Object.freeze({__proto__:null}),We=Object.freeze({__proto__:null});n(Rr),n(Ge),n(Ue),n(We);var $e,Ve,qe,He=M.Symbol,Je={},Ye=Function.prototype,Xe=m&&Object.getOwnPropertyDescriptor,Qe=ft(Ye,"name"),Ke={EXISTS:Qe,PROPER:Qe&&"something"===function(){}.name,CONFIGURABLE:Qe&&(!m||m&&Xe(Ye,"name").configurable)},Ze=!c((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),to=en("IE_PROTO"),ro=a.Object,no=ro.prototype,eo=Ze?ro.getPrototypeOf:function(t){var r=ct(t);if(ft(r,to))return r[to];var n=r.constructor;return g(n)&&r instanceof n?n.prototype:r instanceof ro?no:null},oo=gt("iterator"),io=!1;[].keys&&("next"in(qe=[].keys())?(Ve=eo(eo(qe)))!==Object.prototype&&($e=Ve):io=!0);var ao=null==$e||c((function(){var t={};return $e[oo].call(t)!==t}));$e=ao?{}:hn($e),g($e[oo])||An($e,oo,(function(){return this}));var co={IteratorPrototype:$e,BUGGY_SAFARI_ITERATORS:io},uo=co.IteratorPrototype,fo=function(){return this};a.String,a.TypeError;Object.setPrototypeOf||"__proto__"in{}&&function(){var t,r=!1,n={};try{(t=b(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),r=n instanceof Array}catch(t){}}();var so=Ke.PROPER,lo=co.BUGGY_SAFARI_ITERATORS,vo=gt("iterator"),po="keys",yo="values",ho="entries",bo=function(){return this},go=function(t,r,n,e,o,i,a){!function(t,r,n,e){var o=r+" Iterator";t.prototype=hn(uo,{next:A(+!e,n)}),kn(t,o,!1,!0),Je[o]=fo}(n,r,e);var c,u,f,s=function(t){if(t===o&&h)return h;if(!lo&&t in p)return p[t];switch(t){case po:case yo:case ho:return function(){return new n(this,t)}}return function(){return new n(this)}},l=r+" Iterator",v=!1,p=t.prototype,y=p[vo]||p["@@iterator"]||o&&p[o],h=!lo&&y||s(o),d="Array"==r&&p.entries||y;if(d&&(c=eo(d.call(new t)))!==Object.prototype&&c.next&&(kn(c,l,!0,!0),Je[l]=bo),so&&o==yo&&y&&y.name!==yo&&(v=!0,h=function(){return O(y,this)}),o)if(u={values:s(yo),keys:i?h:s(po),entries:s(ho)},a)for(f in u)(lo||v||!(f in p))&&An(p,f,u[f]);else Kt({target:r,proto:!0,forced:lo||v},u);return a&&p[vo]!==h&&An(p,vo,h,{name:o}),Je[r]=h,u};Jt.f;var mo="Array Iterator",_o=$n.set,Oo=$n.getterFor(mo);go(Array,"Array",(function(t,r){_o(this,{type:mo,target:L(t),index:0,kind:r})}),(function(){var t=Oo(this),r=t.target,n=t.kind,e=t.index++;return!r||e>=r.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:e,done:!1}:"values"==n?{value:r[e],done:!1}:{value:[e,r[e]],done:!1}}),"values"),Je.Arguments=Je.Array;var jo=gt("toStringTag");for(var wo in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var So=a[wo],Ao=So&&So.prototype;Ao&&yr(Ao)!==jo&&Yt(Ao,jo,wo),Je[wo]=Je.Array}var xo=He;Pn("asyncDispose"),Pn("dispose"),Pn("matcher"),Pn("metadata"),Pn("observable"),Pn("patternMatch"),Pn("replaceAll");var Eo=xo,Po=b("".charAt),Fo=b("".charCodeAt),To=b("".slice),Co=function(t){return function(r,n){var e,o,i=Gr(k(r)),a=or(n),c=i.length;return a<0||a>=c?t?"":void 0:(e=Fo(i,a))<55296||e>56319||a+1===c||(o=Fo(i,a+1))<56320||o>57343?t?Po(i,a):e:t?To(i,a,a+2):o-56320+(e-55296<<10)+65536}},Do={codeAt:Co(!1),charAt:Co(!0)}.charAt,ko="String Iterator",Lo=$n.set,Io=$n.getterFor(ko);go(String,"String",(function(t){Lo(this,{type:ko,string:Gr(t),index:0})}),(function(){var t,r=Io(this),n=r.string,e=r.index;return e>=n.length?{value:void 0,done:!0}:(t=Do(n,e),r.index+=t.length,{value:t,done:!1})}));var Mo=gt("iterator"),Bo=function(t){if(null!=t)return tt(t,Mo)||tt(t,"@@iterator")||Je[yr(t)]},zo=Bo;var Ro=Tr("slice"),No=gt("species"),Go=a.Array,Uo=Math.max;Kt({target:"Array",proto:!0,forced:!Ro},{slice:function(t,r){var n,e,o,i=L(this),a=cr(i),c=$r(t,a),u=$r(void 0===r?a:r,a);if(Zt(i)&&(n=i.constructor,(Ar(n)&&(n===Go||Zt(n.prototype))||I(n)&&null===(n=n[No]))&&(n=void 0),n===Go||void 0===n))return xe(i,c,u);for(e=new(void 0===n?Go:n)(Uo(u-c,0)),o=0;c<u;c++,o++)c in i&&ur(e,o,i[c]);return e.length=o,e}});var Wo=function(t){return M[t+"Prototype"]},$o=Wo("Array").slice,Vo=Array.prototype,qo=function(t){var r=t.slice;return t===Vo||R(Vo,t)&&r===Vo.slice?$o:r},Ho=qo,Jo=function(t,r,n,e){try{return e?r(Gt(n)[0],n[1]):r(n)}catch(r){!function(t,r,n){var e,o;Gt(t);try{if(!(e=tt(t,"return"))){if("throw"===r)throw n;return n}e=O(e,t)}catch(t){o=!0,e=t}if("throw"===r)throw n;if(o)throw e;Gt(e)}(t,"throw",r)}},Yo=gt("iterator"),Xo=Array.prototype,Qo=a.TypeError,Ko=a.Array,Zo=gt("iterator"),ti=!1;try{var ri=0,ni={next:function(){return{done:!!ri++}},return:function(){ti=!0}};ni[Zo]=function(){return this},Array.from(ni,(function(){throw 2}))}catch(t){}var ei=!function(t,r){if(!r&&!ti)return!1;var n=!1;try{var e={};e[Zo]=function(){return{next:function(){return{done:n=!0}}}},t(e)}catch(t){}return n}((function(t){Array.from(t)}));Kt({target:"Array",stat:!0,forced:ei},{from:function(t){var r=ct(t),n=Ar(this),e=arguments.length,o=e>1?arguments[1]:void 0,i=void 0!==o;i&&(o=Bt(o,e>2?arguments[2]:void 0));var a,c,u,f,s,l,v,p=Bo(r),y=0;if(p&&(this!=Ko||(void 0===(v=p)||Je.Array!==v&&Xo[Yo]!==v)))for(f=function(t,r){var n=arguments.length<2?Bo(t):r;if(Z(n))return Gt(O(n,t));throw Qo(Q(t)+" is not iterable")}(r,p),s=f.next,c=n?new this:[];!(u=O(s,f)).done;y++)l=i?Jo(f,o,[u.value,y],!0):u.value,ur(c,y,l);else for(a=cr(r),c=n?new this(a):Ko(a);a>y;y++)l=i?o(r[y],y):r[y],ur(c,y,l);return c.length=y,c}});var oi=M.Array.from;function ii(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=new Array(r);n<r;n++)e[n]=t[n];return e}function ai(t,r){return function(t){if(tr(t))return t}(t)||function(t,r){var n=null==t?null:void 0!==Eo&&zo(t)||t["@@iterator"];if(null!=n){var e,o,i=[],a=!0,c=!1;try{for(n=n.call(t);!(a=(e=n.next()).done)&&(i.push(e.value),!r||i.length!==r);a=!0);}catch(t){c=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(t,r)||function(t,r){var n;if(t){if("string"==typeof t)return ii(t,r);var e=Ho(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?oi(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?ii(t,r):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ci=Jt.f;Kt({target:"Object",stat:!0,forced:Object.defineProperty!==ci,sham:!m},{defineProperty:ci});var ui=r((function(t){var r=M.Object,n=t.exports=function(t,n,e){return r.defineProperty(t,n,e)};r.defineProperty.sham&&(n.sham=!0)})),fi=ui;function si(t,r){for(var n=0;n<r.length;n++){var e=r[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),fi(t,e.key,e)}}var li,vi="\t\n\v\f\r                 \u2028\u2029\ufeff",pi=b("".replace),yi="["+vi+"]",hi=RegExp("^"+yi+yi+"*"),di=RegExp(yi+yi+"*$"),bi=function(t){return function(r){var n=Gr(k(r));return 1&t&&(n=pi(n,hi,"")),2&t&&(n=pi(n,di,"")),n}},gi={start:bi(1),end:bi(2),trim:bi(3)},mi=Ke.PROPER,_i=gi.trim;Kt({target:"String",proto:!0,forced:(li="trim",c((function(){return!!vi[li]()||"​…᠎"!=="​…᠎"[li]()||mi&&vi[li].name!==li})))},{trim:function(){return _i(this)}});var Oi=Wo("String").trim,ji=String.prototype,wi=function(t){var r=t.trim;return"string"==typeof t||t===ji||R(ji,t)&&r===ji.trim?Oi:r},Si=gt("match"),Ai=a.TypeError,xi=function(t){if(function(t){var r;return I(t)&&(void 0!==(r=t[Si])?!!r:"RegExp"==P(t))}(t))throw Ai("The method doesn't accept regular expressions");return t},Ei=gt("match"),Pi=b("".startsWith),Fi=b("".slice),Ti=Math.min,Ci=function(t){var r=/./;try{"/./"[t](r)}catch(n){try{return r[Ei]=!1,"/./"[t](r)}catch(t){}}return!1}("startsWith");Kt({target:"String",proto:!0,forced:!Ci},{startsWith:function(t){var r=Gr(k(this));xi(t);var n=ar(Ti(arguments.length>1?arguments[1]:void 0,r.length)),e=Gr(t);return Pi?Pi(r,e,n):Fi(r,n,n+e.length)===e}});var Di=Wo("String").startsWith,ki=String.prototype,Li=function(t){var r=t.startsWith;return"string"==typeof t||t===ki||R(ki,t)&&r===ki.startsWith?Di:r},Ii=qo,Mi=gi.trim,Bi=a.parseInt,zi=a.Symbol,Ri=zi&&zi.iterator,Ni=/^[+-]?0x/i,Gi=b(Ni.exec),Ui=8!==Bi(vi+"08")||22!==Bi(vi+"0x16")||Ri&&!c((function(){Bi(Object(Ri))}))?function(t,r){var n=Mi(Gr(t));return Bi(n,r>>>0||(Gi(Ni,n)?16:10))}:Bi;Kt({global:!0,forced:parseInt!=Ui},{parseInt:Ui});var Wi=M.parseInt,$i=Hn.forEach,Vi=function(t,r){var n=[][t];return!!n&&c((function(){n.call(null,r||function(){return 1},1)}))}("forEach"),qi=Vi?[].forEach:function(t){return $i(this,t,arguments.length>1?arguments[1]:void 0)};Kt({target:"Array",proto:!0,forced:[].forEach!=qi},{forEach:qi});var Hi=Wo("Array").forEach,Ji=Array.prototype,Yi={DOMTokenList:!0,NodeList:!0},Xi=function(t){var r=t.forEach;return t===Ji||R(Ji,t)&&r===Ji.forEach||ft(Yi,yr(t))?Hi:r},Qi=Wo("Array").concat,Ki=Array.prototype,Zi=function(t){var r=t.concat;return t===Ki||R(Ki,t)&&r===Ki.concat?Qi:r};var ta=function(){this.__data__=[],this.size=0};var ra=function(t,r){return t===r||t!=t&&r!=r};var na=function(t,r){for(var n=t.length;n--;)if(ra(t[n][0],r))return n;return-1},ea=Array.prototype.splice;var oa=function(t){var r=this.__data__,n=na(r,t);return!(n<0)&&(n==r.length-1?r.pop():ea.call(r,n,1),--this.size,!0)};var ia=function(t){var r=this.__data__,n=na(r,t);return n<0?void 0:r[n][1]};var aa=function(t){return na(this.__data__,t)>-1};var ca=function(t,r){var n=this.__data__,e=na(n,t);return e<0?(++this.size,n.push([t,r])):n[e][1]=r,this};function ua(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}ua.prototype.clear=ta,ua.prototype.delete=oa,ua.prototype.get=ia,ua.prototype.has=aa,ua.prototype.set=ca;var fa=ua;var sa=function(){this.__data__=new fa,this.size=0};var la=function(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n};var va=function(t){return this.__data__.get(t)};var pa=function(t){return this.__data__.has(t)},ya="object"==typeof t&&t&&t.Object===Object&&t,ha="object"==typeof self&&self&&self.Object===Object&&self,da=ya||ha||Function("return this")(),ba=da.Symbol,ga=Object.prototype,ma=ga.hasOwnProperty,_a=ga.toString,Oa=ba?ba.toStringTag:void 0;var ja=function(t){var r=ma.call(t,Oa),n=t[Oa];try{t[Oa]=void 0;var e=!0}catch(t){}var o=_a.call(t);return e&&(r?t[Oa]=n:delete t[Oa]),o},wa=Object.prototype.toString;var Sa=function(t){return wa.call(t)},Aa=ba?ba.toStringTag:void 0;var xa=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Aa&&Aa in Object(t)?ja(t):Sa(t)};var Ea=function(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)};var Pa=function(t){if(!Ea(t))return!1;var r=xa(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r},Fa=da["__core-js_shared__"],Ta=function(){var t=/[^.]+$/.exec(Fa&&Fa.keys&&Fa.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();var Ca=function(t){return!!Ta&&Ta in t},Da=Function.prototype.toString;var ka=function(t){if(null!=t){try{return Da.call(t)}catch(t){}try{return t+""}catch(t){}}return""},La=/^\[object .+?Constructor\]$/,Ia=Function.prototype,Ma=Object.prototype,Ba=Ia.toString,za=Ma.hasOwnProperty,Ra=RegExp("^"+Ba.call(za).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Na=function(t){return!(!Ea(t)||Ca(t))&&(Pa(t)?Ra:La).test(ka(t))};var Ga=function(t,r){return null==t?void 0:t[r]};var Ua=function(t,r){var n=Ga(t,r);return Na(n)?n:void 0},Wa=Ua(da,"Map"),$a=Ua(Object,"create");var Va=function(){this.__data__=$a?$a(null):{},this.size=0};var qa=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r},Ha=Object.prototype.hasOwnProperty;var Ja=function(t){var r=this.__data__;if($a){var n=r[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ha.call(r,t)?r[t]:void 0},Ya=Object.prototype.hasOwnProperty;var Xa=function(t){var r=this.__data__;return $a?void 0!==r[t]:Ya.call(r,t)};var Qa=function(t,r){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=$a&&void 0===r?"__lodash_hash_undefined__":r,this};function Ka(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}Ka.prototype.clear=Va,Ka.prototype.delete=qa,Ka.prototype.get=Ja,Ka.prototype.has=Xa,Ka.prototype.set=Qa;var Za=Ka;var tc=function(){this.size=0,this.__data__={hash:new Za,map:new(Wa||fa),string:new Za}};var rc=function(t){var r=typeof t;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t};var nc=function(t,r){var n=t.__data__;return rc(r)?n["string"==typeof r?"string":"hash"]:n.map};var ec=function(t){var r=nc(this,t).delete(t);return this.size-=r?1:0,r};var oc=function(t){return nc(this,t).get(t)};var ic=function(t){return nc(this,t).has(t)};var ac=function(t,r){var n=nc(this,t),e=n.size;return n.set(t,r),this.size+=n.size==e?0:1,this};function cc(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}cc.prototype.clear=tc,cc.prototype.delete=ec,cc.prototype.get=oc,cc.prototype.has=ic,cc.prototype.set=ac;var uc=cc;var fc=function(t,r){var n=this.__data__;if(n instanceof fa){var e=n.__data__;if(!Wa||e.length<199)return e.push([t,r]),this.size=++n.size,this;n=this.__data__=new uc(e)}return n.set(t,r),this.size=n.size,this};function sc(t){var r=this.__data__=new fa(t);this.size=r.size}sc.prototype.clear=sa,sc.prototype.delete=la,sc.prototype.get=va,sc.prototype.has=pa,sc.prototype.set=fc;var lc=sc,vc=function(){try{var t=Ua(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();var pc=function(t,r,n){"__proto__"==r&&vc?vc(t,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[r]=n};var yc=function(t,r,n){(void 0!==n&&!ra(t[r],n)||void 0===n&&!(r in t))&&pc(t,r,n)};var hc=function(t){return function(r,n,e){for(var o=-1,i=Object(r),a=e(r),c=a.length;c--;){var u=a[t?c:++o];if(!1===n(i[u],u,i))break}return r}}(),dc=r((function(t,r){var n=r&&!r.nodeType&&r,e=n&&t&&!t.nodeType&&t,o=e&&e.exports===n?da.Buffer:void 0,i=o?o.allocUnsafe:void 0;t.exports=function(t,r){if(r)return t.slice();var n=t.length,e=i?i(n):new t.constructor(n);return t.copy(e),e}})),bc=da.Uint8Array;var gc=function(t){var r=new t.constructor(t.byteLength);return new bc(r).set(new bc(t)),r};var mc=function(t,r){var n=r?gc(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};var _c=function(t,r){var n=-1,e=t.length;for(r||(r=Array(e));++n<e;)r[n]=t[n];return r},Oc=Object.create,jc=function(){function t(){}return function(r){if(!Ea(r))return{};if(Oc)return Oc(r);t.prototype=r;var n=new t;return t.prototype=void 0,n}}();var wc=function(t,r){return function(n){return t(r(n))}}(Object.getPrototypeOf,Object),Sc=Object.prototype;var Ac=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||Sc)};var xc=function(t){return"function"!=typeof t.constructor||Ac(t)?{}:jc(wc(t))};var Ec=function(t){return null!=t&&"object"==typeof t};var Pc=function(t){return Ec(t)&&"[object Arguments]"==xa(t)},Fc=Object.prototype,Tc=Fc.hasOwnProperty,Cc=Fc.propertyIsEnumerable,Dc=Pc(function(){return arguments}())?Pc:function(t){return Ec(t)&&Tc.call(t,"callee")&&!Cc.call(t,"callee")},kc=Dc,Lc=Array.isArray;var Ic=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Mc=function(t){return null!=t&&Ic(t.length)&&!Pa(t)};var Bc=function(t){return Ec(t)&&Mc(t)};var zc=function(){return!1},Rc=r((function(t,r){var n=r&&!r.nodeType&&r,e=n&&t&&!t.nodeType&&t,o=e&&e.exports===n?da.Buffer:void 0,i=(o?o.isBuffer:void 0)||zc;t.exports=i})),Nc=Function.prototype,Gc=Object.prototype,Uc=Nc.toString,Wc=Gc.hasOwnProperty,$c=Uc.call(Object);var Vc=function(t){if(!Ec(t)||"[object Object]"!=xa(t))return!1;var r=wc(t);if(null===r)return!0;var n=Wc.call(r,"constructor")&&r.constructor;return"function"==typeof n&&n instanceof n&&Uc.call(n)==$c},qc={};qc["[object Float32Array]"]=qc["[object Float64Array]"]=qc["[object Int8Array]"]=qc["[object Int16Array]"]=qc["[object Int32Array]"]=qc["[object Uint8Array]"]=qc["[object Uint8ClampedArray]"]=qc["[object Uint16Array]"]=qc["[object Uint32Array]"]=!0,qc["[object Arguments]"]=qc["[object Array]"]=qc["[object ArrayBuffer]"]=qc["[object Boolean]"]=qc["[object DataView]"]=qc["[object Date]"]=qc["[object Error]"]=qc["[object Function]"]=qc["[object Map]"]=qc["[object Number]"]=qc["[object Object]"]=qc["[object RegExp]"]=qc["[object Set]"]=qc["[object String]"]=qc["[object WeakMap]"]=!1;var Hc=function(t){return Ec(t)&&Ic(t.length)&&!!qc[xa(t)]};var Jc=function(t){return function(r){return t(r)}},Yc=r((function(t,r){var n=r&&!r.nodeType&&r,e=n&&t&&!t.nodeType&&t,o=e&&e.exports===n&&ya.process,i=function(){try{var t=e&&e.require&&e.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=i})),Xc=Yc&&Yc.isTypedArray,Qc=Xc?Jc(Xc):Hc;var Kc=function(t,r){if(("constructor"!==r||"function"!=typeof t[r])&&"__proto__"!=r)return t[r]},Zc=Object.prototype.hasOwnProperty;var tu=function(t,r,n){var e=t[r];Zc.call(t,r)&&ra(e,n)&&(void 0!==n||r in t)||pc(t,r,n)};var ru=function(t,r,n,e){var o=!n;n||(n={});for(var i=-1,a=r.length;++i<a;){var c=r[i],u=e?e(n[c],t[c],c,n,t):void 0;void 0===u&&(u=t[c]),o?pc(n,c,u):tu(n,c,u)}return n};var nu=function(t,r){for(var n=-1,e=Array(t);++n<t;)e[n]=r(n);return e},eu=/^(?:0|[1-9]\d*)$/;var ou=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&eu.test(t))&&t>-1&&t%1==0&&t<r},iu=Object.prototype.hasOwnProperty;var au=function(t,r){var n=Lc(t),e=!n&&kc(t),o=!n&&!e&&Rc(t),i=!n&&!e&&!o&&Qc(t),a=n||e||o||i,c=a?nu(t.length,String):[],u=c.length;for(var f in t)!r&&!iu.call(t,f)||a&&("length"==f||o&&("offset"==f||"parent"==f)||i&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||ou(f,u))||c.push(f);return c};var cu=function(t){var r=[];if(null!=t)for(var n in Object(t))r.push(n);return r},uu=Object.prototype.hasOwnProperty;var fu=function(t){if(!Ea(t))return cu(t);var r=Ac(t),n=[];for(var e in t)("constructor"!=e||!r&&uu.call(t,e))&&n.push(e);return n};var su=function(t){return Mc(t)?au(t,!0):fu(t)};var lu=function(t){return ru(t,su(t))};var vu=function(t,r,n,e,o,i,a){var c=Kc(t,n),u=Kc(r,n),f=a.get(u);if(f)yc(t,n,f);else{var s=i?i(c,u,n+"",t,r,a):void 0,l=void 0===s;if(l){var v=Lc(u),p=!v&&Rc(u),y=!v&&!p&&Qc(u);s=u,v||p||y?Lc(c)?s=c:Bc(c)?s=_c(c):p?(l=!1,s=dc(u,!0)):y?(l=!1,s=mc(u,!0)):s=[]:Vc(u)||kc(u)?(s=c,kc(c)?s=lu(c):Ea(c)&&!Pa(c)||(s=xc(u))):l=!1}l&&(a.set(u,s),o(s,u,e,i,a),a.delete(u)),yc(t,n,s)}};var pu=function t(r,n,e,o,i){r!==n&&hc(n,(function(a,c){if(i||(i=new lc),Ea(a))vu(r,n,c,e,t,o,i);else{var u=o?o(Kc(r,c),a,c+"",r,n,i):void 0;void 0===u&&(u=a),yc(r,c,u)}}),su)};var yu=function(t){return t};var hu=function(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)},du=Math.max;var bu=function(t,r,n){return r=du(void 0===r?t.length-1:r,0),function(){for(var e=arguments,o=-1,i=du(e.length-r,0),a=Array(i);++o<i;)a[o]=e[r+o];o=-1;for(var c=Array(r+1);++o<r;)c[o]=e[o];return c[r]=n(a),hu(t,this,c)}};var gu=function(t){return function(){return t}},mu=vc?function(t,r){return vc(t,"toString",{configurable:!0,enumerable:!1,value:gu(r),writable:!0})}:yu,_u=Date.now;var Ou=function(t){var r=0,n=0;return function(){var e=_u(),o=16-(e-n);if(n=e,o>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}},ju=Ou(mu);var wu=function(t,r){return ju(bu(t,r,yu),t+"")};var Su=function(t,r,n){if(!Ea(n))return!1;var e=typeof r;return!!("number"==e?Mc(n)&&ou(r,n.length):"string"==e&&r in n)&&ra(n[r],t)};var Au=function(t){return wu((function(r,n){var e=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,a&&Su(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),r=Object(r);++e<o;){var c=n[e];c&&t(r,c,e,i)}return r}))}((function(t,r,n,e){pu(t,r,n,e)})),xu=function(){function t(){!function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,t)}var r,n,e;return r=t,n=[{key:"render",value:function(t,r,n){try{var e,o=function(t){var r,n,e=wi(t).call(t).split("\n"),o={type:Li(r=e[0]).call(r,"#image")?"image":"list",count:"auto",data:[]};if(Li(n=e[0]).call(n,"#")){var i,a=ai(Ii(i=e[0]).call(i,1).split("/"),2),c=a[0],u=a[1];o.type=c||"list",o.count=u?Wi(u):"auto",e.shift()}return Xi(e).call(e,(function(t){if(t=wi(t).call(t)){var r=t.match(/(?:!\[(.*?)\]\((.*?)\))?\s*\[(.*?)\]\((.*?)\)(?:\s+(.*))?/);if(r){var n=ai(r,6);n[0],n[1];var e=n[2],i=n[3],a=n[4],c=n[5];o.data.push({title:i||"",desc:c||"",image:e||"",link:a||"",bgColor:"",textColor:""})}}})),o}(t),i=o.count;"auto"===i&&(i=3,o.data.length<i&&(i=o.data.length)),(!i||i>4||i<1)&&(i=3);var a=o.type,c="";return"list"===a?c=this.getListDOM(o.data,i):"image"===a&&(c=this.getImageDOM(o.data,i)),Zi(e='<div class="cherry-card cherry-card-'.concat(a,'-container">')).call(e,c,"</div>")}catch(t){return console.warn("Card syntax parse error:",t),'<div class="cherry-card-error">卡片语法错误,请检查格式</div>'}}},{key:"getRandomColor",value:function(){var t=[{bg:"#34495E",text:"#BDC3C7"},{bg:"#16A085",text:"#A3E4D7"},{bg:"#27AE60",text:"#A9DFBF"},{bg:"#2980B9",text:"#AED6F1"},{bg:"#8E44AD",text:"#D2B4DE"},{bg:"#2C3E50",text:"#ECF0F1"},{bg:"#F39C12",text:"#FDEBD0"},{bg:"#D35400",text:"#F5CBA7"},{bg:"#C0392B",text:"#F5B7B1"},{bg:"#7F8C8D",text:"#D5DBDB"},{bg:"#95A5A6",text:"#E5E8E8"},{bg:"#F4D03F",text:"#FCF3CF"},{bg:"#1ABC9C",text:"#A2D9CE"},{bg:"#3498DB",text:"#D6EAF8"},{bg:"#9B59B6",text:"#E8DAEF"},{bg:"#34495E",text:"#AAB7B8"},{bg:"#E67E22",text:"#FAD7A0"},{bg:"#E74C3C",text:"#F5B7B1"},{bg:"#BDC3C7",text:"#2C3E50"},{bg:"#7F8C8D",text:"#2C3E50"}];return t[Math.floor(Math.random()*t.length)]}},{key:"getListDOM",value:function(t,r){var n=this,e="";return Xi(t).call(t,(function(t){var o,i,a,c,u,f,s,l=n.getRandomColor(),v=t.link,p=void 0===v?"":v,y=t.image,h=void 0===y?"":y,d=t.bgColor,b=void 0===d?l.bg:d,g=t.textColor,m=void 0===g?l.text:g,_=t.title,O=void 0===_?"":_,j=t.desc,w=void 0===j?"":j;""===p&&(p=null),""===h&&(h=null),""===O&&(O=""),""===w&&(w=""),""===b&&(b=l.bg),""===m&&(m=l.text),e+=Zi(o=Zi(i=Zi(a=Zi(c=Zi(u=Zi(f=Zi(s="\n <".concat(p?'a href="'.concat(p,'" target="_blank"'):"span",' class="cherry-card-item ')).call(s,r?"cherry-card-row-".concat(r):"",'"\n style="padding:0;background-color:')).call(f,b,";color:")).call(u,m,';"\n >\n ')).call(c,h?'<img src="'.concat(h,'" class="cherry-card-image" alt="">'):"",'\n <div class="cherry-card-body">\n <p class="cherry-card-title">')).call(a,O,'</p>\n <p class="cherry-card-desc">')).call(i,w,"</p>\n </div>\n </")).call(o,p?"a":"span",">\n ")})),e}},{key:"getImageDOM",value:function(t,r){var n="";return Xi(t).call(t,(function(t){var e,o,i,a,c=t.link,u=void 0===c?"":c,f=t.image,s=void 0===f?"":f,l=t.title,v=void 0===l?"":l,p=t.desc,y=void 0===p?"":p;""===u&&(u=null),""===s&&(s=""),""===v&&(v=""),""===y&&(y=null),n+=Zi(e=Zi(o=Zi(i=Zi(a='\n <div class="cherry-card-item '.concat(r?"cherry-card-row-".concat(r):"",'" >\n <a href="')).call(a,u,'" target="_blank">\n <div class="cherry-card-box-img">\n <img src="')).call(i,s,'" class="cherry-card-image" style="object-fit: cover" alt="">\n </div>\n <div class="cherry-card-box-info">\n <p class="cherry-card-title">')).call(o,v,"</p>\n ")).call(e,y?'<p class="cherry-card-desc" >'.concat(y,"</p>"):"","\n </div>\n\n \n </a>\n </div>\n ")})),n}}],e=[{key:"install",value:function(r,n){Au(r,{engine:{syntax:{codeBlock:{customRenderer:{card:new t}}}}})}}],n&&si(r.prototype,n),e&&si(r,e),fi(r,"prototype",{writable:!1}),t}();return xu}));
@@ -0,0 +1 @@
1
+ !function(t,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):(t="undefined"!=typeof globalThis?globalThis:t||self).CherryCodeBlockEchartsPlugin=r()}(this,(function(){"use strict";var t=function(t){try{return!!t()}catch(t){return!0}},r=!t((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),e=Function.prototype,n=e.bind,o=e.call,i=r&&n.bind(o,o),a=r?function(t){return t&&i(t)}:function(t){return t&&function(){return o.apply(t,arguments)}},c=a({}.isPrototypeOf),u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function f(t,r){return t(r={exports:{}},r.exports),r.exports}var s,l,p=function(t){return t&&t.Math==Math&&t},v=p("object"==typeof globalThis&&globalThis)||p("object"==typeof window&&window)||p("object"==typeof self&&self)||p("object"==typeof u&&u)||function(){return this}()||Function("return this")(),y=Function.prototype,h=y.apply,d=y.call,b="object"==typeof Reflect&&Reflect.apply||(r?d.bind(h):function(){return d.apply(h,arguments)}),g=function(t){return"function"==typeof t},m=!t((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),O=Function.prototype.call,w=r?O.bind(O):function(){return O.apply(O,arguments)},j={}.propertyIsEnumerable,S=Object.getOwnPropertyDescriptor,_={f:S&&!j.call({1:2},1)?function(t){var r=S(this,t);return!!r&&r.enumerable}:j},A=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},P=a({}.toString),T=a("".slice),I=function(t){return T(P(t),8,-1)},E=v.Object,x=a("".split),k=t((function(){return!E("z").propertyIsEnumerable(0)}))?function(t){return"String"==I(t)?x(t,""):E(t)}:E,F=v.TypeError,C=function(t){if(null==t)throw F("Can't call method on "+t);return t},L=function(t){return k(C(t))},M=function(t){return"object"==typeof t?null!==t:g(t)},R={},D=function(t){return g(t)?t:void 0},z=function(t,r){return arguments.length<2?D(R[t])||D(v[t]):R[t]&&R[t][r]||v[t]&&v[t][r]},N=z("navigator","userAgent")||"",B=v.process,G=v.Deno,U=B&&B.versions||G&&G.version,H=U&&U.v8;H&&(l=(s=H.split("."))[0]>0&&s[0]<4?1:+(s[0]+s[1])),!l&&N&&(!(s=N.match(/Edge\/(\d+)/))||s[1]>=74)&&(s=N.match(/Chrome\/(\d+)/))&&(l=+s[1]);var J=l,$=!!Object.getOwnPropertySymbols&&!t((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&J&&J<41})),V=$&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,q=v.Object,W=V?function(t){return"symbol"==typeof t}:function(t){var r=z("Symbol");return g(r)&&c(r.prototype,q(t))},Y=v.String,X=function(t){try{return Y(t)}catch(t){return"Object"}},K=v.TypeError,Q=function(t){if(g(t))return t;throw K(X(t)+" is not a function")},Z=function(t,r){var e=t[r];return null==e?void 0:Q(e)},tt=v.TypeError,rt=Object.defineProperty,et="__core-js_shared__",nt=v[et]||function(t,r){try{rt(v,t,{value:r,configurable:!0,writable:!0})}catch(e){v[t]=r}return r}(et,{}),ot=f((function(t){(t.exports=function(t,r){return nt[t]||(nt[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.22.6",mode:"pure",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.6/LICENSE",source:"https://github.com/zloirock/core-js"})})),it=v.Object,at=function(t){return it(C(t))},ct=a({}.hasOwnProperty),ut=Object.hasOwn||function(t,r){return ct(at(t),r)},ft=0,st=Math.random(),lt=a(1..toString),pt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+lt(++ft+st,36)},vt=ot("wks"),yt=v.Symbol,ht=yt&&yt.for,dt=V?yt:yt&&yt.withoutSetter||pt,bt=function(t){if(!ut(vt,t)||!$&&"string"!=typeof vt[t]){var r="Symbol."+t;$&&ut(yt,t)?vt[t]=yt[t]:vt[t]=V&&ht?ht(r):dt(r)}return vt[t]},gt=v.TypeError,mt=bt("toPrimitive"),Ot=function(t,r){if(!M(t)||W(t))return t;var e,n=Z(t,mt);if(n){if(void 0===r&&(r="default"),e=w(n,t,r),!M(e)||W(e))return e;throw gt("Can't convert object to primitive value")}return void 0===r&&(r="number"),function(t,r){var e,n;if("string"===r&&g(e=t.toString)&&!M(n=w(e,t)))return n;if(g(e=t.valueOf)&&!M(n=w(e,t)))return n;if("string"!==r&&g(e=t.toString)&&!M(n=w(e,t)))return n;throw tt("Can't convert object to primitive value")}(t,r)},wt=function(t){var r=Ot(t,"string");return W(r)?r:r+""},jt=v.document,St=M(jt)&&M(jt.createElement),_t=function(t){return St?jt.createElement(t):{}},At=!m&&!t((function(){return 7!=Object.defineProperty(_t("div"),"a",{get:function(){return 7}}).a})),Pt=Object.getOwnPropertyDescriptor,Tt={f:m?Pt:function(t,r){if(t=L(t),r=wt(r),At)try{return Pt(t,r)}catch(t){}if(ut(t,r))return A(!w(_.f,t,r),t[r])}},It=/#|\.prototype\./,Et=function(r,e){var n=kt[xt(r)];return n==Ct||n!=Ft&&(g(e)?t(e):!!e)},xt=Et.normalize=function(t){return String(t).replace(It,".").toLowerCase()},kt=Et.data={},Ft=Et.NATIVE="N",Ct=Et.POLYFILL="P",Lt=Et,Mt=a(a.bind),Rt=function(t,e){return Q(t),void 0===e?t:r?Mt(t,e):function(){return t.apply(e,arguments)}},Dt=m&&t((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),zt=v.String,Nt=v.TypeError,Bt=function(t){if(M(t))return t;throw Nt(zt(t)+" is not an object")},Gt=v.TypeError,Ut=Object.defineProperty,Ht=Object.getOwnPropertyDescriptor,Jt="enumerable",$t="configurable",Vt="writable",qt={f:m?Dt?function(t,r,e){if(Bt(t),r=wt(r),Bt(e),"function"==typeof t&&"prototype"===r&&"value"in e&&Vt in e&&!e[Vt]){var n=Ht(t,r);n&&n[Vt]&&(t[r]=e.value,e={configurable:$t in e?e[$t]:n[$t],enumerable:Jt in e?e[Jt]:n[Jt],writable:!1})}return Ut(t,r,e)}:Ut:function(t,r,e){if(Bt(t),r=wt(r),Bt(e),At)try{return Ut(t,r,e)}catch(t){}if("get"in e||"set"in e)throw Gt("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},Wt=m?function(t,r,e){return qt.f(t,r,A(1,e))}:function(t,r,e){return t[r]=e,t},Yt=Tt.f,Xt=function(t){var r=function(e,n,o){if(this instanceof r){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,o)}return b(t,this,arguments)};return r.prototype=t.prototype,r},Kt=function(t,r){var e,n,o,i,c,u,f,s,l=t.target,p=t.global,y=t.stat,h=t.proto,d=p?v:y?v[l]:(v[l]||{}).prototype,b=p?R:R[l]||Wt(R,l,{})[l],m=b.prototype;for(o in r)e=!Lt(p?o:l+(y?".":"#")+o,t.forced)&&d&&ut(d,o),c=b[o],e&&(u=t.dontCallGetSet?(s=Yt(d,o))&&s.value:d[o]),i=e&&u?u:r[o],e&&typeof c==typeof i||(f=t.bind&&e?Rt(i,v):t.wrap&&e?Xt(i):h&&g(i)?a(i):i,(t.sham||i&&i.sham||c&&c.sham)&&Wt(f,"sham",!0),Wt(b,o,f),h&&(ut(R,n=l+"Prototype")||Wt(R,n,{}),Wt(R[n],o,i),t.real&&m&&!m[o]&&Wt(m,o,i)))},Qt=Array.isArray||function(t){return"Array"==I(t)},Zt={};Zt[bt("toStringTag")]="z";var tr="[object z]"===String(Zt),rr=bt("toStringTag"),er=v.Object,nr="Arguments"==I(function(){return arguments}()),or=tr?I:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(r=er(t),rr))?e:nr?I(r):"Object"==(n=I(r))&&g(r.callee)?"Arguments":n},ir=a(Function.toString);g(nt.inspectSource)||(nt.inspectSource=function(t){return ir(t)});var ar=nt.inspectSource,cr=function(){},ur=[],fr=z("Reflect","construct"),sr=/^\s*(?:class|function)\b/,lr=a(sr.exec),pr=!sr.exec(cr),vr=function(t){if(!g(t))return!1;try{return fr(cr,ur,t),!0}catch(t){return!1}},yr=function(t){if(!g(t))return!1;switch(or(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return pr||!!lr(sr,ar(t))}catch(t){return!0}};yr.sham=!0;var hr=!fr||t((function(){var t;return vr(vr.call)||!vr(Object)||!vr((function(){t=!0}))||t}))?yr:vr,dr=Math.ceil,br=Math.floor,gr=Math.trunc||function(t){var r=+t;return(r>0?br:dr)(r)},mr=function(t){var r=+t;return r!=r||0===r?0:gr(r)},Or=Math.max,wr=Math.min,jr=function(t,r){var e=mr(t);return e<0?Or(e+r,0):wr(e,r)},Sr=Math.min,_r=function(t){return(r=t.length)>0?Sr(mr(r),9007199254740991):0;var r},Ar=function(t,r,e){var n=wt(r);n in t?qt.f(t,n,A(0,e)):t[n]=e},Pr=bt("species"),Tr=function(r){return J>=51||!t((function(){var t=[];return(t.constructor={})[Pr]=function(){return{foo:1}},1!==t[r](Boolean).foo}))},Ir=a([].slice),Er=Tr("slice"),xr=bt("species"),kr=v.Array,Fr=Math.max;Kt({target:"Array",proto:!0,forced:!Er},{slice:function(t,r){var e,n,o,i=L(this),a=_r(i),c=jr(t,a),u=jr(void 0===r?a:r,a);if(Qt(i)&&(e=i.constructor,(hr(e)&&(e===kr||Qt(e.prototype))||M(e)&&null===(e=e[xr]))&&(e=void 0),e===kr||void 0===e))return Ir(i,c,u);for(n=new(void 0===e?kr:e)(Fr(u-c,0)),o=0;c<u;c++,o++)c in i&&Ar(n,o,i[c]);return n.length=o,n}});var Cr,Lr,Mr,Rr=function(t){return R[t+"Prototype"]},Dr=Rr("Array").slice,zr=Array.prototype,Nr=function(t){var r=t.slice;return t===zr||c(zr,t)&&r===zr.slice?Dr:r},Br=Nr,Gr=v.String,Ur=function(t){if("Symbol"===or(t))throw TypeError("Cannot convert a Symbol value to a string");return Gr(t)},Hr=a("".charAt),Jr=a("".charCodeAt),$r=a("".slice),Vr=function(t){return function(r,e){var n,o,i=Ur(C(r)),a=mr(e),c=i.length;return a<0||a>=c?t?"":void 0:(n=Jr(i,a))<55296||n>56319||a+1===c||(o=Jr(i,a+1))<56320||o>57343?t?Hr(i,a):n:t?$r(i,a,a+2):o-56320+(n-55296<<10)+65536}},qr={codeAt:Vr(!1),charAt:Vr(!0)},Wr=v.WeakMap,Yr=g(Wr)&&/native code/.test(ar(Wr)),Xr=ot("keys"),Kr=function(t){return Xr[t]||(Xr[t]=pt(t))},Qr={},Zr="Object already initialized",te=v.TypeError,re=v.WeakMap;if(Yr||nt.state){var ee=nt.state||(nt.state=new re),ne=a(ee.get),oe=a(ee.has),ie=a(ee.set);Cr=function(t,r){if(oe(ee,t))throw new te(Zr);return r.facade=t,ie(ee,t,r),r},Lr=function(t){return ne(ee,t)||{}},Mr=function(t){return oe(ee,t)}}else{var ae=Kr("state");Qr[ae]=!0,Cr=function(t,r){if(ut(t,ae))throw new te(Zr);return r.facade=t,Wt(t,ae,r),r},Lr=function(t){return ut(t,ae)?t[ae]:{}},Mr=function(t){return ut(t,ae)}}var ce,ue={set:Cr,get:Lr,has:Mr,enforce:function(t){return Mr(t)?Lr(t):Cr(t,{})},getterFor:function(t){return function(r){var e;if(!M(r)||(e=Lr(r)).type!==t)throw te("Incompatible receiver, "+t+" required");return e}}},fe=Function.prototype,se=m&&Object.getOwnPropertyDescriptor,le=ut(fe,"name"),pe={EXISTS:le,PROPER:le&&"something"===function(){}.name,CONFIGURABLE:le&&(!m||m&&se(fe,"name").configurable)},ve=function(t){return function(r,e,n){var o,i=L(r),a=_r(i),c=jr(n,a);if(t&&e!=e){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===e)return t||c||0;return!t&&-1}},ye={includes:ve(!0),indexOf:ve(!1)}.indexOf,he=a([].push),de=function(t,r){var e,n=L(t),o=0,i=[];for(e in n)!ut(Qr,e)&&ut(n,e)&&he(i,e);for(;r.length>o;)ut(n,e=r[o++])&&(~ye(i,e)||he(i,e));return i},be=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ge=Object.keys||function(t){return de(t,be)},me=m&&!Dt?Object.defineProperties:function(t,r){Bt(t);for(var e,n=L(r),o=ge(r),i=o.length,a=0;i>a;)qt.f(t,e=o[a++],n[e]);return t},Oe={f:me},we=z("document","documentElement"),je="prototype",Se="script",_e=Kr("IE_PROTO"),Ae=function(){},Pe=function(t){return"<"+Se+">"+t+"</"+Se+">"},Te=function(t){t.write(Pe("")),t.close();var r=t.parentWindow.Object;return t=null,r},Ie=function(){try{ce=new ActiveXObject("htmlfile")}catch(t){}var t,r,e;Ie="undefined"!=typeof document?document.domain&&ce?Te(ce):(r=_t("iframe"),e="java"+Se+":",r.style.display="none",we.appendChild(r),r.src=String(e),(t=r.contentWindow.document).open(),t.write(Pe("document.F=Object")),t.close(),t.F):Te(ce);for(var n=be.length;n--;)delete Ie[je][be[n]];return Ie()};Qr[_e]=!0;var Ee,xe,ke,Fe=Object.create||function(t,r){var e;return null!==t?(Ae[je]=Bt(t),e=new Ae,Ae[je]=null,e[_e]=t):e=Ie(),void 0===r?e:Oe.f(e,r)},Ce=!t((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Le=Kr("IE_PROTO"),Me=v.Object,Re=Me.prototype,De=Ce?Me.getPrototypeOf:function(t){var r=at(t);if(ut(r,Le))return r[Le];var e=r.constructor;return g(e)&&r instanceof e?e.prototype:r instanceof Me?Re:null},ze=function(t,r,e,n){return n&&n.enumerable?t[r]=e:Wt(t,r,e),t},Ne=bt("iterator"),Be=!1;[].keys&&("next"in(ke=[].keys())?(xe=De(De(ke)))!==Object.prototype&&(Ee=xe):Be=!0);var Ge=null==Ee||t((function(){var t={};return Ee[Ne].call(t)!==t}));Ee=Ge?{}:Fe(Ee),g(Ee[Ne])||ze(Ee,Ne,(function(){return this}));var Ue={IteratorPrototype:Ee,BUGGY_SAFARI_ITERATORS:Be},He=tr?{}.toString:function(){return"[object "+or(this)+"]"},Je=qt.f,$e=bt("toStringTag"),Ve=function(t,r,e,n){if(t){var o=e?t:t.prototype;ut(o,$e)||Je(o,$e,{configurable:!0,value:r}),n&&!tr&&Wt(o,"toString",He)}},qe={},We=Ue.IteratorPrototype,Ye=function(){return this};v.String,v.TypeError;Object.setPrototypeOf||"__proto__"in{}&&function(){var t,r=!1,e={};try{(t=a(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),r=e instanceof Array}catch(t){}}();var Xe=pe.PROPER,Ke=Ue.BUGGY_SAFARI_ITERATORS,Qe=bt("iterator"),Ze="keys",tn="values",rn="entries",en=function(){return this},nn=function(t,r,e,n,o,i,a){!function(t,r,e,n){var o=r+" Iterator";t.prototype=Fe(We,{next:A(+!n,e)}),Ve(t,o,!1,!0),qe[o]=Ye}(e,r,n);var c,u,f,s=function(t){if(t===o&&h)return h;if(!Ke&&t in v)return v[t];switch(t){case Ze:case tn:case rn:return function(){return new e(this,t)}}return function(){return new e(this)}},l=r+" Iterator",p=!1,v=t.prototype,y=v[Qe]||v["@@iterator"]||o&&v[o],h=!Ke&&y||s(o),d="Array"==r&&v.entries||y;if(d&&(c=De(d.call(new t)))!==Object.prototype&&c.next&&(Ve(c,l,!0,!0),qe[l]=en),Xe&&o==tn&&y&&y.name!==tn&&(p=!0,h=function(){return w(y,this)}),o)if(u={values:s(tn),keys:i?h:s(Ze),entries:s(rn)},a)for(f in u)(Ke||p||!(f in v))&&ze(v,f,u[f]);else Kt({target:r,proto:!0,forced:Ke||p},u);return a&&v[Qe]!==h&&ze(v,Qe,h,{name:o}),qe[r]=h,u},on=qr.charAt,an="String Iterator",cn=ue.set,un=ue.getterFor(an);nn(String,"String",(function(t){cn(this,{type:an,string:Ur(t),index:0})}),(function(){var t,r=un(this),e=r.string,n=r.index;return n>=e.length?{value:void 0,done:!0}:(t=on(e,n),r.index+=t.length,{value:t,done:!1})}));var fn=function(t,r,e,n){try{return n?r(Bt(e)[0],e[1]):r(e)}catch(r){!function(t,r,e){var n,o;Bt(t);try{if(!(n=Z(t,"return"))){if("throw"===r)throw e;return e}n=w(n,t)}catch(t){o=!0,n=t}if("throw"===r)throw e;if(o)throw n;Bt(n)}(t,"throw",r)}},sn=bt("iterator"),ln=Array.prototype,pn=bt("iterator"),vn=function(t){if(null!=t)return Z(t,pn)||Z(t,"@@iterator")||qe[or(t)]},yn=v.TypeError,hn=v.Array,dn=bt("iterator"),bn=!1;try{var gn=0,mn={next:function(){return{done:!!gn++}},return:function(){bn=!0}};mn[dn]=function(){return this},Array.from(mn,(function(){throw 2}))}catch(t){}var On=!function(t,r){if(!r&&!bn)return!1;var e=!1;try{var n={};n[dn]=function(){return{next:function(){return{done:e=!0}}}},t(n)}catch(t){}return e}((function(t){Array.from(t)}));Kt({target:"Array",stat:!0,forced:On},{from:function(t){var r=at(t),e=hr(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=Rt(o,n>2?arguments[2]:void 0));var a,c,u,f,s,l,p,v=vn(r),y=0;if(v&&(this!=hn||(void 0===(p=v)||qe.Array!==p&&ln[sn]!==p)))for(f=function(t,r){var e=arguments.length<2?vn(t):r;if(Q(e))return Bt(w(e,t));throw yn(X(t)+" is not iterable")}(r,v),s=f.next,c=e?new this:[];!(u=w(s,f)).done;y++)l=i?fn(f,o,[u.value,y],!0):u.value,Ar(c,y,l);else for(a=_r(r),c=e?new this(a):hn(a);a>y;y++)l=i?o(r[y],y):r[y],Ar(c,y,l);return c.length=y,c}});var wn=R.Array.from,jn=wn,Sn=bt("species"),_n=v.Array,An=function(t,r){return new(function(t){var r;return Qt(t)&&(r=t.constructor,(hr(r)&&(r===_n||Qt(r.prototype))||M(r)&&null===(r=r[Sn]))&&(r=void 0)),void 0===r?_n:r}(t))(0===r?0:r)},Pn=bt("isConcatSpreadable"),Tn=9007199254740991,In="Maximum allowed index exceeded",En=v.TypeError,xn=J>=51||!t((function(){var t=[];return t[Pn]=!1,t.concat()[0]!==t})),kn=Tr("concat"),Fn=function(t){if(!M(t))return!1;var r=t[Pn];return void 0!==r?!!r:Qt(t)};Kt({target:"Array",proto:!0,arity:1,forced:!xn||!kn},{concat:function(t){var r,e,n,o,i,a=at(this),c=An(a,0),u=0;for(r=-1,n=arguments.length;r<n;r++)if(Fn(i=-1===r?a:arguments[r])){if(u+(o=_r(i))>Tn)throw En(In);for(e=0;e<o;e++,u++)e in i&&Ar(c,u,i[e])}else{if(u>=Tn)throw En(In);Ar(c,u++,i)}return c.length=u,c}});var Cn=be.concat("length","prototype"),Ln={f:Object.getOwnPropertyNames||function(t){return de(t,Cn)}},Mn=v.Array,Rn=Math.max,Dn=Ln.f,zn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Nn=function(t){try{return Dn(t)}catch(t){return function(t,r,e){for(var n=_r(t),o=jr(r,n),i=jr(void 0===e?n:e,n),a=Mn(Rn(i-o,0)),c=0;o<i;o++,c++)Ar(a,c,t[o]);return a.length=c,a}(zn)}},Bn={f:function(t){return zn&&"Window"==I(t)?Nn(t):Dn(L(t))}},Gn={f:Object.getOwnPropertySymbols},Un={f:bt},Hn=qt.f,Jn=function(t){var r=R.Symbol||(R.Symbol={});ut(r,t)||Hn(r,t,{value:Un.f(t)})},$n=function(){var t=z("Symbol"),r=t&&t.prototype,e=r&&r.valueOf,n=bt("toPrimitive");r&&!r[n]&&ze(r,n,(function(t){return w(e,this)}),{arity:1})},Vn=a([].push),qn=function(t){var r=1==t,e=2==t,n=3==t,o=4==t,i=6==t,a=7==t,c=5==t||i;return function(u,f,s,l){for(var p,v,y=at(u),h=k(y),d=Rt(f,s),b=_r(h),g=0,m=l||An,O=r?m(u,b):e||a?m(u,0):void 0;b>g;g++)if((c||g in h)&&(v=d(p=h[g],g,y),t))if(r)O[g]=v;else if(v)switch(t){case 3:return!0;case 5:return p;case 6:return g;case 2:Vn(O,p)}else switch(t){case 4:return!1;case 7:Vn(O,p)}return i?-1:n||o?o:O}},Wn={forEach:qn(0),map:qn(1),filter:qn(2),some:qn(3),every:qn(4),find:qn(5),findIndex:qn(6),filterReject:qn(7)},Yn=Wn.forEach,Xn=Kr("hidden"),Kn="Symbol",Qn="prototype",Zn=ue.set,to=ue.getterFor(Kn),ro=Object[Qn],eo=v.Symbol,no=eo&&eo[Qn],oo=v.TypeError,io=v.QObject,ao=Tt.f,co=qt.f,uo=Bn.f,fo=_.f,so=a([].push),lo=ot("symbols"),po=ot("op-symbols"),vo=ot("wks"),yo=!io||!io[Qn]||!io[Qn].findChild,ho=m&&t((function(){return 7!=Fe(co({},"a",{get:function(){return co(this,"a",{value:7}).a}})).a}))?function(t,r,e){var n=ao(ro,r);n&&delete ro[r],co(t,r,e),n&&t!==ro&&co(ro,r,n)}:co,bo=function(t,r){var e=lo[t]=Fe(no);return Zn(e,{type:Kn,tag:t,description:r}),m||(e.description=r),e},go=function(t,r,e){t===ro&&go(po,r,e),Bt(t);var n=wt(r);return Bt(e),ut(lo,n)?(e.enumerable?(ut(t,Xn)&&t[Xn][n]&&(t[Xn][n]=!1),e=Fe(e,{enumerable:A(0,!1)})):(ut(t,Xn)||co(t,Xn,A(1,{})),t[Xn][n]=!0),ho(t,n,e)):co(t,n,e)},mo=function(t,r){Bt(t);var e=L(r),n=ge(e).concat(So(e));return Yn(n,(function(r){m&&!w(Oo,e,r)||go(t,r,e[r])})),t},Oo=function(t){var r=wt(t),e=w(fo,this,r);return!(this===ro&&ut(lo,r)&&!ut(po,r))&&(!(e||!ut(this,r)||!ut(lo,r)||ut(this,Xn)&&this[Xn][r])||e)},wo=function(t,r){var e=L(t),n=wt(r);if(e!==ro||!ut(lo,n)||ut(po,n)){var o=ao(e,n);return!o||!ut(lo,n)||ut(e,Xn)&&e[Xn][n]||(o.enumerable=!0),o}},jo=function(t){var r=uo(L(t)),e=[];return Yn(r,(function(t){ut(lo,t)||ut(Qr,t)||so(e,t)})),e},So=function(t){var r=t===ro,e=uo(r?po:L(t)),n=[];return Yn(e,(function(t){!ut(lo,t)||r&&!ut(ro,t)||so(n,lo[t])})),n};$||(eo=function(){if(c(no,this))throw oo("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?Ur(arguments[0]):void 0,r=pt(t),e=function(t){this===ro&&w(e,po,t),ut(this,Xn)&&ut(this[Xn],r)&&(this[Xn][r]=!1),ho(this,r,A(1,t))};return m&&yo&&ho(ro,r,{configurable:!0,set:e}),bo(r,t)},no=eo[Qn],ze(no,"toString",(function(){return to(this).tag})),ze(eo,"withoutSetter",(function(t){return bo(pt(t),t)})),_.f=Oo,qt.f=go,Oe.f=mo,Tt.f=wo,Ln.f=Bn.f=jo,Gn.f=So,Un.f=function(t){return bo(bt(t),t)},m&&co(no,"description",{configurable:!0,get:function(){return to(this).description}})),Kt({global:!0,constructor:!0,wrap:!0,forced:!$,sham:!$},{Symbol:eo}),Yn(ge(vo),(function(t){Jn(t)})),Kt({target:Kn,stat:!0,forced:!$},{useSetter:function(){yo=!0},useSimple:function(){yo=!1}}),Kt({target:"Object",stat:!0,forced:!$,sham:!m},{create:function(t,r){return void 0===r?Fe(t):mo(Fe(t),r)},defineProperty:go,defineProperties:mo,getOwnPropertyDescriptor:wo}),Kt({target:"Object",stat:!0,forced:!$},{getOwnPropertyNames:jo}),$n(),Ve(eo,Kn),Qr[Xn]=!0;var _o=$&&!!Symbol.for&&!!Symbol.keyFor,Ao=ot("string-to-symbol-registry"),Po=ot("symbol-to-string-registry");Kt({target:"Symbol",stat:!0,forced:!_o},{for:function(t){var r=Ur(t);if(ut(Ao,r))return Ao[r];var e=z("Symbol")(r);return Ao[r]=e,Po[e]=r,e}});var To=ot("symbol-to-string-registry");Kt({target:"Symbol",stat:!0,forced:!_o},{keyFor:function(t){if(!W(t))throw TypeError(X(t)+" is not a symbol");if(ut(To,t))return To[t]}});var Io=z("JSON","stringify"),Eo=a(/./.exec),xo=a("".charAt),ko=a("".charCodeAt),Fo=a("".replace),Co=a(1..toString),Lo=/[\uD800-\uDFFF]/g,Mo=/^[\uD800-\uDBFF]$/,Ro=/^[\uDC00-\uDFFF]$/,Do=!$||t((function(){var t=z("Symbol")();return"[null]"!=Io([t])||"{}"!=Io({a:t})||"{}"!=Io(Object(t))})),zo=t((function(){return'"\\udf06\\ud834"'!==Io("\udf06\ud834")||'"\\udead"'!==Io("\udead")})),No=function(t,r){var e=Ir(arguments),n=r;if((M(r)||void 0!==t)&&!W(t))return Qt(r)||(r=function(t,r){if(g(n)&&(r=w(n,this,t,r)),!W(r))return r}),e[1]=r,b(Io,null,e)},Bo=function(t,r,e){var n=xo(e,r-1),o=xo(e,r+1);return Eo(Mo,t)&&!Eo(Ro,o)||Eo(Ro,t)&&!Eo(Mo,n)?"\\u"+Co(ko(t,0),16):t};Io&&Kt({target:"JSON",stat:!0,arity:3,forced:Do||zo},{stringify:function(t,r,e){var n=Ir(arguments),o=b(Do?No:Io,null,n);return zo&&"string"==typeof o?Fo(o,Lo,Bo):o}});var Go=!$||t((function(){Gn.f(1)}));Kt({target:"Object",stat:!0,forced:Go},{getOwnPropertySymbols:function(t){var r=Gn.f;return r?r(at(t)):[]}}),Jn("asyncIterator"),Jn("hasInstance"),Jn("isConcatSpreadable"),Jn("iterator"),Jn("match"),Jn("matchAll"),Jn("replace"),Jn("search"),Jn("species"),Jn("split"),Jn("toPrimitive"),$n(),Jn("toStringTag"),Ve(z("Symbol"),"Symbol"),Jn("unscopables"),Ve(v.JSON,"JSON",!0);var Uo=R.Symbol;qt.f;var Ho="Array Iterator",Jo=ue.set,$o=ue.getterFor(Ho);nn(Array,"Array",(function(t,r){Jo(this,{type:Ho,target:L(t),index:0,kind:r})}),(function(){var t=$o(this),r=t.target,e=t.kind,n=t.index++;return!r||n>=r.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==e?{value:n,done:!1}:"values"==e?{value:r[n],done:!1}:{value:[n,r[n]],done:!1}}),"values"),qe.Arguments=qe.Array;var Vo=bt("toStringTag");for(var qo in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Wo=v[qo],Yo=Wo&&Wo.prototype;Yo&&or(Yo)!==Vo&&Wt(Yo,Vo,qo),qe[qo]=qe.Array}var Xo=Uo,Ko=Xo,Qo=vn;Kt({target:"Array",stat:!0},{isArray:Qt});var Zo=R.Array.isArray,ti=Zo,ri=t((function(){ge(1)}));Kt({target:"Object",stat:!0,forced:ri},{keys:function(t){return ge(at(t))}});var ei=R.Object.keys,ni=R.Object.getOwnPropertySymbols,oi=Wn.filter,ii=Tr("filter");Kt({target:"Array",proto:!0,forced:!ii},{filter:function(t){return oi(this,t,arguments.length>1?arguments[1]:void 0)}});var ai=Rr("Array").filter,ci=Array.prototype,ui=function(t){var r=t.filter;return t===ci||c(ci,t)&&r===ci.filter?ai:r},fi=Tt.f,si=t((function(){fi(1)}));Kt({target:"Object",stat:!0,forced:!m||si,sham:!m},{getOwnPropertyDescriptor:function(t,r){return fi(L(t),r)}});var li,pi,vi=f((function(t){var r=R.Object,e=t.exports=function(t,e){return r.getOwnPropertyDescriptor(t,e)};r.getOwnPropertyDescriptor.sham&&(e.sham=!0)})),yi=vi,hi=Wn.forEach,di=!!(pi=[]["forEach"])&&t((function(){pi.call(null,li||function(){return 1},1)}))?[].forEach:function(t){return hi(this,t,arguments.length>1?arguments[1]:void 0)};Kt({target:"Array",proto:!0,forced:[].forEach!=di},{forEach:di});var bi=Rr("Array").forEach,gi=Array.prototype,mi={DOMTokenList:!0,NodeList:!0},Oi=function(t){var r=t.forEach;return t===gi||c(gi,t)&&r===gi.forEach||ut(mi,or(t))?bi:r},wi=a([].concat),ji=z("Reflect","ownKeys")||function(t){var r=Ln.f(Bt(t)),e=Gn.f;return e?wi(r,e(t)):r};Kt({target:"Object",stat:!0,sham:!m},{getOwnPropertyDescriptors:function(t){for(var r,e,n=L(t),o=Tt.f,i=ji(n),a={},c=0;i.length>c;)void 0!==(e=o(n,r=i[c++]))&&Ar(a,r,e);return a}});var Si=R.Object.getOwnPropertyDescriptors,_i=Oe.f;Kt({target:"Object",stat:!0,forced:Object.defineProperties!==_i,sham:!m},{defineProperties:_i});var Ai=f((function(t){var r=R.Object,e=t.exports=function(t,e){return r.defineProperties(t,e)};r.defineProperties.sham&&(e.sham=!0)})),Pi=Ai,Ti=qt.f;Kt({target:"Object",stat:!0,forced:Object.defineProperty!==Ti,sham:!m},{defineProperty:Ti});var Ii=f((function(t){var r=R.Object,e=t.exports=function(t,e,n){return r.defineProperty(t,e,n)};r.defineProperty.sham&&(e.sham=!0)})),Ei=Ii,xi=Ii;function ki(t,r,e){return r in t?xi(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}var Fi=Zo;var Ci=Xo;Jn("asyncDispose"),Jn("dispose"),Jn("matcher"),Jn("metadata"),Jn("observable"),Jn("patternMatch"),Jn("replaceAll");var Li=Ci;var Mi=Nr,Ri=wn;function Di(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function zi(t,r){return function(t){if(Fi(t))return t}(t)||function(t,r){var e=null==t?null:void 0!==Li&&Qo(t)||t["@@iterator"];if(null!=e){var n,o,i=[],a=!0,c=!1;try{for(e=e.call(t);!(a=(n=e.next()).done)&&(i.push(n.value),!r||i.length!==r);a=!0);}catch(t){c=!0,o=t}finally{try{a||null==e.return||e.return()}finally{if(c)throw o}}return i}}(t,r)||function(t,r){var e;if(t){if("string"==typeof t)return Di(t,r);var n=Mi(e=Object.prototype.toString.call(t)).call(e,8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Ri(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Di(t,r):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ni(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function Bi(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),xi(t,n.key,n)}}function Gi(t,r,e){return r&&Bi(t.prototype,r),e&&Bi(t,e),xi(t,"prototype",{writable:!1}),t}var Ui=Rr("Array").concat,Hi=Array.prototype,Ji=function(t){var r=t.concat;return t===Hi||c(Hi,t)&&r===Hi.concat?Ui:r};R.JSON||(R.JSON={stringify:JSON.stringify});var $i=function(t,r,e){return b(R.JSON.stringify,null,arguments)},Vi=$i;var qi=function(){this.__data__=[],this.size=0};var Wi=function(t,r){return t===r||t!=t&&r!=r};var Yi=function(t,r){for(var e=t.length;e--;)if(Wi(t[e][0],r))return e;return-1},Xi=Array.prototype.splice;var Ki=function(t){var r=this.__data__,e=Yi(r,t);return!(e<0)&&(e==r.length-1?r.pop():Xi.call(r,e,1),--this.size,!0)};var Qi=function(t){var r=this.__data__,e=Yi(r,t);return e<0?void 0:r[e][1]};var Zi=function(t){return Yi(this.__data__,t)>-1};var ta=function(t,r){var e=this.__data__,n=Yi(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this};function ra(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}ra.prototype.clear=qi,ra.prototype.delete=Ki,ra.prototype.get=Qi,ra.prototype.has=Zi,ra.prototype.set=ta;var ea=ra;var na=function(){this.__data__=new ea,this.size=0};var oa=function(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e};var ia=function(t){return this.__data__.get(t)};var aa=function(t){return this.__data__.has(t)},ca="object"==typeof u&&u&&u.Object===Object&&u,ua="object"==typeof self&&self&&self.Object===Object&&self,fa=ca||ua||Function("return this")(),sa=fa.Symbol,la=Object.prototype,pa=la.hasOwnProperty,va=la.toString,ya=sa?sa.toStringTag:void 0;var ha=function(t){var r=pa.call(t,ya),e=t[ya];try{t[ya]=void 0;var n=!0}catch(t){}var o=va.call(t);return n&&(r?t[ya]=e:delete t[ya]),o},da=Object.prototype.toString;var ba=function(t){return da.call(t)},ga=sa?sa.toStringTag:void 0;var ma=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ga&&ga in Object(t)?ha(t):ba(t)};var Oa=function(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)};var wa=function(t){if(!Oa(t))return!1;var r=ma(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r},ja=fa["__core-js_shared__"],Sa=function(){var t=/[^.]+$/.exec(ja&&ja.keys&&ja.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();var _a=function(t){return!!Sa&&Sa in t},Aa=Function.prototype.toString;var Pa=function(t){if(null!=t){try{return Aa.call(t)}catch(t){}try{return t+""}catch(t){}}return""},Ta=/^\[object .+?Constructor\]$/,Ia=Function.prototype,Ea=Object.prototype,xa=Ia.toString,ka=Ea.hasOwnProperty,Fa=RegExp("^"+xa.call(ka).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Ca=function(t){return!(!Oa(t)||_a(t))&&(wa(t)?Fa:Ta).test(Pa(t))};var La=function(t,r){return null==t?void 0:t[r]};var Ma=function(t,r){var e=La(t,r);return Ca(e)?e:void 0},Ra=Ma(fa,"Map"),Da=Ma(Object,"create");var za=function(){this.__data__=Da?Da(null):{},this.size=0};var Na=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r},Ba=Object.prototype.hasOwnProperty;var Ga=function(t){var r=this.__data__;if(Da){var e=r[t];return"__lodash_hash_undefined__"===e?void 0:e}return Ba.call(r,t)?r[t]:void 0},Ua=Object.prototype.hasOwnProperty;var Ha=function(t){var r=this.__data__;return Da?void 0!==r[t]:Ua.call(r,t)};var Ja=function(t,r){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=Da&&void 0===r?"__lodash_hash_undefined__":r,this};function $a(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}$a.prototype.clear=za,$a.prototype.delete=Na,$a.prototype.get=Ga,$a.prototype.has=Ha,$a.prototype.set=Ja;var Va=$a;var qa=function(){this.size=0,this.__data__={hash:new Va,map:new(Ra||ea),string:new Va}};var Wa=function(t){var r=typeof t;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t};var Ya=function(t,r){var e=t.__data__;return Wa(r)?e["string"==typeof r?"string":"hash"]:e.map};var Xa=function(t){var r=Ya(this,t).delete(t);return this.size-=r?1:0,r};var Ka=function(t){return Ya(this,t).get(t)};var Qa=function(t){return Ya(this,t).has(t)};var Za=function(t,r){var e=Ya(this,t),n=e.size;return e.set(t,r),this.size+=e.size==n?0:1,this};function tc(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}tc.prototype.clear=qa,tc.prototype.delete=Xa,tc.prototype.get=Ka,tc.prototype.has=Qa,tc.prototype.set=Za;var rc=tc;var ec=function(t,r){var e=this.__data__;if(e instanceof ea){var n=e.__data__;if(!Ra||n.length<199)return n.push([t,r]),this.size=++e.size,this;e=this.__data__=new rc(n)}return e.set(t,r),this.size=e.size,this};function nc(t){var r=this.__data__=new ea(t);this.size=r.size}nc.prototype.clear=na,nc.prototype.delete=oa,nc.prototype.get=ia,nc.prototype.has=aa,nc.prototype.set=ec;var oc=nc,ic=function(){try{var t=Ma(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();var ac=function(t,r,e){"__proto__"==r&&ic?ic(t,r,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[r]=e};var cc=function(t,r,e){(void 0!==e&&!Wi(t[r],e)||void 0===e&&!(r in t))&&ac(t,r,e)};var uc=function(t){return function(r,e,n){for(var o=-1,i=Object(r),a=n(r),c=a.length;c--;){var u=a[t?c:++o];if(!1===e(i[u],u,i))break}return r}}(),fc=f((function(t,r){var e=r&&!r.nodeType&&r,n=e&&t&&!t.nodeType&&t,o=n&&n.exports===e?fa.Buffer:void 0,i=o?o.allocUnsafe:void 0;t.exports=function(t,r){if(r)return t.slice();var e=t.length,n=i?i(e):new t.constructor(e);return t.copy(n),n}})),sc=fa.Uint8Array;var lc=function(t){var r=new t.constructor(t.byteLength);return new sc(r).set(new sc(t)),r};var pc=function(t,r){var e=r?lc(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)};var vc=function(t,r){var e=-1,n=t.length;for(r||(r=Array(n));++e<n;)r[e]=t[e];return r},yc=Object.create,hc=function(){function t(){}return function(r){if(!Oa(r))return{};if(yc)return yc(r);t.prototype=r;var e=new t;return t.prototype=void 0,e}}();var dc=function(t,r){return function(e){return t(r(e))}}(Object.getPrototypeOf,Object),bc=Object.prototype;var gc=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||bc)};var mc=function(t){return"function"!=typeof t.constructor||gc(t)?{}:hc(dc(t))};var Oc=function(t){return null!=t&&"object"==typeof t};var wc=function(t){return Oc(t)&&"[object Arguments]"==ma(t)},jc=Object.prototype,Sc=jc.hasOwnProperty,_c=jc.propertyIsEnumerable,Ac=wc(function(){return arguments}())?wc:function(t){return Oc(t)&&Sc.call(t,"callee")&&!_c.call(t,"callee")},Pc=Ac,Tc=Array.isArray;var Ic=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ec=function(t){return null!=t&&Ic(t.length)&&!wa(t)};var xc=function(t){return Oc(t)&&Ec(t)};var kc=function(){return!1},Fc=f((function(t,r){var e=r&&!r.nodeType&&r,n=e&&t&&!t.nodeType&&t,o=n&&n.exports===e?fa.Buffer:void 0,i=(o?o.isBuffer:void 0)||kc;t.exports=i})),Cc=Function.prototype,Lc=Object.prototype,Mc=Cc.toString,Rc=Lc.hasOwnProperty,Dc=Mc.call(Object);var zc=function(t){if(!Oc(t)||"[object Object]"!=ma(t))return!1;var r=dc(t);if(null===r)return!0;var e=Rc.call(r,"constructor")&&r.constructor;return"function"==typeof e&&e instanceof e&&Mc.call(e)==Dc},Nc={};Nc["[object Float32Array]"]=Nc["[object Float64Array]"]=Nc["[object Int8Array]"]=Nc["[object Int16Array]"]=Nc["[object Int32Array]"]=Nc["[object Uint8Array]"]=Nc["[object Uint8ClampedArray]"]=Nc["[object Uint16Array]"]=Nc["[object Uint32Array]"]=!0,Nc["[object Arguments]"]=Nc["[object Array]"]=Nc["[object ArrayBuffer]"]=Nc["[object Boolean]"]=Nc["[object DataView]"]=Nc["[object Date]"]=Nc["[object Error]"]=Nc["[object Function]"]=Nc["[object Map]"]=Nc["[object Number]"]=Nc["[object Object]"]=Nc["[object RegExp]"]=Nc["[object Set]"]=Nc["[object String]"]=Nc["[object WeakMap]"]=!1;var Bc=function(t){return Oc(t)&&Ic(t.length)&&!!Nc[ma(t)]};var Gc=function(t){return function(r){return t(r)}},Uc=f((function(t,r){var e=r&&!r.nodeType&&r,n=e&&t&&!t.nodeType&&t,o=n&&n.exports===e&&ca.process,i=function(){try{var t=n&&n.require&&n.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=i})),Hc=Uc&&Uc.isTypedArray,Jc=Hc?Gc(Hc):Bc;var $c=function(t,r){if(("constructor"!==r||"function"!=typeof t[r])&&"__proto__"!=r)return t[r]},Vc=Object.prototype.hasOwnProperty;var qc=function(t,r,e){var n=t[r];Vc.call(t,r)&&Wi(n,e)&&(void 0!==e||r in t)||ac(t,r,e)};var Wc=function(t,r,e,n){var o=!e;e||(e={});for(var i=-1,a=r.length;++i<a;){var c=r[i],u=n?n(e[c],t[c],c,e,t):void 0;void 0===u&&(u=t[c]),o?ac(e,c,u):qc(e,c,u)}return e};var Yc=function(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n},Xc=/^(?:0|[1-9]\d*)$/;var Kc=function(t,r){var e=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==e||"symbol"!=e&&Xc.test(t))&&t>-1&&t%1==0&&t<r},Qc=Object.prototype.hasOwnProperty;var Zc=function(t,r){var e=Tc(t),n=!e&&Pc(t),o=!e&&!n&&Fc(t),i=!e&&!n&&!o&&Jc(t),a=e||n||o||i,c=a?Yc(t.length,String):[],u=c.length;for(var f in t)!r&&!Qc.call(t,f)||a&&("length"==f||o&&("offset"==f||"parent"==f)||i&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||Kc(f,u))||c.push(f);return c};var tu=function(t){var r=[];if(null!=t)for(var e in Object(t))r.push(e);return r},ru=Object.prototype.hasOwnProperty;var eu=function(t){if(!Oa(t))return tu(t);var r=gc(t),e=[];for(var n in t)("constructor"!=n||!r&&ru.call(t,n))&&e.push(n);return e};var nu=function(t){return Ec(t)?Zc(t,!0):eu(t)};var ou=function(t){return Wc(t,nu(t))};var iu=function(t,r,e,n,o,i,a){var c=$c(t,e),u=$c(r,e),f=a.get(u);if(f)cc(t,e,f);else{var s=i?i(c,u,e+"",t,r,a):void 0,l=void 0===s;if(l){var p=Tc(u),v=!p&&Fc(u),y=!p&&!v&&Jc(u);s=u,p||v||y?Tc(c)?s=c:xc(c)?s=vc(c):v?(l=!1,s=fc(u,!0)):y?(l=!1,s=pc(u,!0)):s=[]:zc(u)||Pc(u)?(s=c,Pc(c)?s=ou(c):Oa(c)&&!wa(c)||(s=mc(u))):l=!1}l&&(a.set(u,s),o(s,u,n,i,a),a.delete(u)),cc(t,e,s)}};var au=function t(r,e,n,o,i){r!==e&&uc(e,(function(a,c){if(i||(i=new oc),Oa(a))iu(r,e,c,n,t,o,i);else{var u=o?o($c(r,c),a,c+"",r,e,i):void 0;void 0===u&&(u=a),cc(r,c,u)}}),nu)};var cu=function(t){return t};var uu=function(t,r,e){switch(e.length){case 0:return t.call(r);case 1:return t.call(r,e[0]);case 2:return t.call(r,e[0],e[1]);case 3:return t.call(r,e[0],e[1],e[2])}return t.apply(r,e)},fu=Math.max;var su=function(t,r,e){return r=fu(void 0===r?t.length-1:r,0),function(){for(var n=arguments,o=-1,i=fu(n.length-r,0),a=Array(i);++o<i;)a[o]=n[r+o];o=-1;for(var c=Array(r+1);++o<r;)c[o]=n[o];return c[r]=e(a),uu(t,this,c)}};var lu=function(t){return function(){return t}},pu=ic?function(t,r){return ic(t,"toString",{configurable:!0,enumerable:!1,value:lu(r),writable:!0})}:cu,vu=Date.now;var yu=function(t){var r=0,e=0;return function(){var n=vu(),o=16-(n-e);if(e=n,o>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}},hu=yu(pu);var du=function(t,r){return hu(su(t,r,cu),t+"")};var bu=function(t,r,e){if(!Oa(e))return!1;var n=typeof r;return!!("number"==n?Ec(e)&&Kc(r,e.length):"string"==n&&r in e)&&Wi(e[r],t)};var gu=function(t){return du((function(r,e){var n=-1,o=e.length,i=o>1?e[o-1]:void 0,a=o>2?e[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,a&&bu(e[0],e[1],a)&&(i=o<3?void 0:i,o=1),r=Object(r);++n<o;){var c=e[n];c&&t(r,c,n,i)}return r}))}((function(t,r,e,n){au(t,r,e,n)}));var mu=new(function(){function t(){var r;Ni(this,t),ki(this,"Events",{previewerClose:"previewerClose",previewerOpen:"previewerOpen",editorClose:"editorClose",editorOpen:"editorOpen",toolbarHide:"toolbarHide",toolbarShow:"toolbarShow",modelChange:"modelChange",cleanAllSubMenus:"cleanAllSubMenus",afterChange:"afterChange",afterInit:"afterInit",focus:"focus",blur:"blur",selectionChange:"selectionChange"}),ki(this,"emitter",{all:r=r||new Map,on:function(t,e){var n=r.get(t);n?n.push(e):r.set(t,[e])},off:function(t,e){var n=r.get(t);n&&(e?n.splice(n.indexOf(e)>>>0,1):r.set(t,[]))},emit:function(t,e){var n=r.get(t);n&&n.slice().map((function(t){t(e)})),(n=r.get("*"))&&n.slice().map((function(r){r(t,e)}))}})}return Gi(t,[{key:"on",value:function(t,r,e){var n;this.emitter.on(Ji(n="".concat(t,":")).call(n,r),e)}},{key:"emit",value:function(t,r){for(var e,n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];this.emitter.emit(Ji(e="".concat(t,":")).call(e,r),o)}},{key:"off",value:function(t,r,e){var n;this.emitter.off(Ji(n="".concat(t,":")).call(n,r),e)}}]),t}()),Ou=Un.f("iterator");function wu(t){return wu="function"==typeof Li&&"symbol"==typeof Ou?function(t){return typeof t}:function(t){return t&&"function"==typeof Li&&t.constructor===Li&&t!==Li.prototype?"symbol":typeof t},wu(t)}function ju(t,r){var e=ei(t);if(ni){var n=ni(t);r&&(n=ui(n).call(n,(function(r){return yi(t,r).enumerable}))),e.push.apply(e,n)}return e}function Su(t){for(var r=1;r<arguments.length;r++){var e,n,o=null!=arguments[r]?arguments[r]:{};r%2?Oi(e=ju(Object(o),!0)).call(e,(function(r){ki(t,r,o[r])})):Si?Pi(t,Si(o)):Oi(n=ju(Object(o))).call(n,(function(r){Ei(t,r,yi(o,r))}))}return t}function _u(t,r){var e=void 0!==Ko&&Qo(t)||t["@@iterator"];if(!e){if(ti(t)||(e=function(t,r){var e;if(!t)return;if("string"==typeof t)return Au(t,r);var n=Br(e=Object.prototype.toString.call(t)).call(e,8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return jn(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Au(t,r)}(t))||r&&t&&"number"==typeof t.length){e&&(t=e);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==e.return||e.return()}finally{if(c)throw i}}}}function Au(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var Pu=function(){function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Ni(this,t);var e=r.echarts,n=r.apiHost,o=void 0===n?"https://echarts-api.vercel.app":n;this.api=!e&&!window.echarts,this.apiHost=o,this.echartsInstanceRef=e||window.echarts;var i=this;mu.on("previewer","beforeRenderDom",(function(t){var r=zi(t,2),e=r[0],n=r[1];if(!i.api){var o="echarts-".concat(e),a=n.querySelectorAll(".".concat(o));if(a){var c,u=_u(a);try{for(u.s();!(c=u.n()).done;){var f=c.value,s=i.echartsInstanceRef.getInstanceByDom(f);s&&(sessionStorage.setItem("chartWidth",s.getWidth()),sessionStorage.setItem("chartHeight",s.getHeight()),s.dispose(),sessionStorage.removeItem(o))}}catch(t){u.e(t)}finally{u.f()}}}})),mu.on("previewer","afterRenderDom",(function(t){var r=zi(t,2),e=r[0];if(r[1],!i.api){var n="echarts-".concat(e),o=sessionStorage.getItem(n);if(o){var a=JSON.parse(o),c=document.querySelectorAll(".".concat(n));if(c){var u,f=_u(c);try{for(f.s();!(u=f.n()).done;){var s=u.value,l=i.echartsInstanceRef.getInstanceByDom(s);l||(l=i.echartsInstanceRef.init(s,window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"",{renderer:"svg"})),l.setOption(a)}}catch(t){f.e(t)}finally{f.f()}}}}})),window.addEventListener("resize",(function(){if(!i.api){var t=document.querySelectorAll(".echart-container");if(t){var r,e=_u(t);try{for(e.s();!(r=e.n()).done;){var n=r.value,o=i.echartsInstanceRef.getInstanceByDom(n);o&&o.resize()}}catch(t){e.e(t)}finally{e.f()}}}})),mu.on("Theme","change",(function(t){!function(t){var r=document.querySelectorAll(".echart-container");if(r){var e,n=_u(r);try{for(n.s();!(e=n.n()).done;){var o=e.value;if(i.api)o.src=t?o.src.replace("theme%22%3A%22%22","theme%22%3A%22dark%22"):o.src.replace("theme%22%3A%22dark%22","theme%22%3A%22%22");else{var a=sessionStorage.getItem(o.dataset.json);if(!a)continue;var c=JSON.parse(a),u=i.echartsInstanceRef.getInstanceByDom(o);u&&u.dispose(),(u=i.echartsInstanceRef.init(o,t?"dark":"",{renderer:"svg"})).setOption(c)}}}catch(t){n.e(t)}finally{n.f()}}}(zi(t,1)[0])}))}return Gi(t,[{key:"renderFromApi",value:function(t,r){var e,n={theme:r?"dark":"",width:600,height:400,options:t};return Ji(e="<img class='echart-container' style=\"max-width: 100%\" src='".concat(this.apiHost,"?data=")).call(e,encodeURIComponent(Vi(n)),'\' alt=""/>')}},{key:"render",value:function(t,r,e){var n,o=r;o||(o=Math.round(1e8*Math.random()));var i="echarts-".concat(o),a=function(t){if("object"===wu(t))return t;try{return JSON.parse(t)}catch(r){try{return new Function("return ".concat(t))()}catch(t){console.error("解析错误:",t)}return{}}}(t);return this.api?this.renderFromApi(a,window.matchMedia("(prefers-color-scheme: dark)").matches):(sessionStorage.setItem(i,Vi(a)),Ji(n='<div class="'.concat(i,' echart-container" data-json="')).call(n,i,'" style="height: 400px;width: 100%"></div>'))}}],[{key:"install",value:function(r,e){var n;gu(r,{engine:{syntax:{codeBlock:{customRenderer:{echarts:new t(Su(Su({},e),null!==(n=r.engine.syntax.echarts)&&void 0!==n?n:{}))}}}}})}}]),t}();return Pu}));