@cling-se/widget 0.17.2 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (232) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/AddClientCallout-Bod9Eqx4.js +101 -0
  3. package/dist/AnswerModal-a2cyKFbt.js +3371 -0
  4. package/dist/AttachmentItem-DBUqckCS.js +171 -0
  5. package/dist/BaseUpload-DrWzuvbS.js +6503 -0
  6. package/dist/BlockMedia-DuE_K9hR.js +103 -0
  7. package/dist/CCallout-CM1VsH30.js +104 -0
  8. package/dist/{CCurrencyDropdown-CKRgncWy.js → CCurrencyDropdown-C_lAaq4P.js} +91 -53
  9. package/dist/CDropdownItem-DMUAJ90n.js +749 -0
  10. package/dist/CFormField.vue_vue_type_script_setup_true_lang-BqAyWe3T.js +292 -0
  11. package/dist/{CPhoneFormat-Bd-HZuYo.js → CPhoneFormat-Dnn_cKk7.js} +13 -21
  12. package/dist/CPhoneInput-DuGkDiv-.js +207 -0
  13. package/dist/CPriceInput-B7DYzKcF.js +142 -0
  14. package/dist/CSelect-BZZDr27O.js +98 -0
  15. package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-D2jDhnYI.js +51 -0
  16. package/dist/ClientAutocomplete-DuaJ5zDf.js +532 -0
  17. package/dist/ClientModal-CaMSjLkD.js +1188 -0
  18. package/dist/ColorPicker-BISZPQ6j.js +1408 -0
  19. package/dist/CompanyModal-ClTcmU4Y.js +250 -0
  20. package/dist/ContentWrapper-Bj7jbWU0.js +265 -0
  21. package/dist/CoverBlockSettings-AXyiLxrF.js +861 -0
  22. package/dist/DocAnswer-Bu09V33D.js +33 -0
  23. package/dist/DocDetails-B6-2LKsO.js +452 -0
  24. package/dist/DocForm-CFN8LWSd.js +6772 -0
  25. package/dist/DocFormSend-D1CUhy4n.js +171 -0
  26. package/dist/DocLinks-CuliFqtN.js +36 -0
  27. package/dist/DocModalBase-BxKsnwN-.js +29 -0
  28. package/dist/DocPrint-B_HJ_RET.js +399 -0
  29. package/dist/DocReceipt-D-A1TaTI.js +341 -0
  30. package/dist/DocSendReminder-BKTJonzh.js +181 -0
  31. package/dist/{DocTextEditor-DFid7uKr.js → DocTextEditor-CEPcJT2o.js} +7907 -5579
  32. package/dist/DocTimeline-CF9S4YDZ.js +537 -0
  33. package/dist/DocumentClient-7mbq2QA4.js +90 -0
  34. package/dist/DocumentLayout-DkFlHgW6.js +1434 -0
  35. package/dist/DocumentLogotype-BTYMdpNi.js +162 -0
  36. package/dist/DocumentVoided-CWr5WMUv.js +33 -0
  37. package/dist/EmbedInput-SevVEpwc.js +156 -0
  38. package/dist/EmbedSettings-YMbUmp1O.js +103 -0
  39. package/dist/ErrorCallout-CQo2iF9c.js +34 -0
  40. package/dist/FilePreviewModal-C0xBeoAz.js +202 -0
  41. package/dist/Flag-BObij6SN.js +41 -0
  42. package/dist/HeaderSettings-C77pR78n.js +720 -0
  43. package/dist/ImageSelectModal-DKdU-0uq.js +119 -0
  44. package/dist/ImageUploadWrapper-BGkS5Cll.js +1585 -0
  45. package/dist/Index-B3y-jq9s.js +1098 -0
  46. package/dist/Index-B41pUREi.js +47 -0
  47. package/dist/Index-BEyeS1OG.js +52 -0
  48. package/dist/Index-BG5j8ZFP.js +93 -0
  49. package/dist/Index-BOT65yQR.js +68 -0
  50. package/dist/Index-BQNl-cXP.js +28 -0
  51. package/dist/Index-BY6xsS7C.js +38 -0
  52. package/dist/Index-Bh0Xv5ry.js +163 -0
  53. package/dist/Index-Bn4FSQcx.js +228 -0
  54. package/dist/Index-BrRIAede.js +87 -0
  55. package/dist/Index-C-6um0kX.js +76 -0
  56. package/dist/{Index-EO0rsTmx.js → Index-C-gHa5xk.js} +319 -214
  57. package/dist/Index-C0wcjKCH.js +629 -0
  58. package/dist/Index-C6BbUFYw.js +160 -0
  59. package/dist/Index-C8xwJ0m1.js +200 -0
  60. package/dist/Index-CKgFEJF4.js +140 -0
  61. package/dist/{Index-CbYLDVU5.js → Index-CQwmu4f1.js} +47 -60
  62. package/dist/Index-CXchTpBa.js +74 -0
  63. package/dist/{Index-BzcZCdHj.js → Index-CYoRt8PA.js} +9 -17
  64. package/dist/Index-CZZNQ4q5.js +39 -0
  65. package/dist/Index-CkaAs5ms.js +136 -0
  66. package/dist/Index-CtpXaBz8.js +363 -0
  67. package/dist/Index-CxDsSGtZ.js +126 -0
  68. package/dist/Index-DFkTBm02.js +102 -0
  69. package/dist/Index-DP3ll8F-.js +70 -0
  70. package/dist/{Index-BdJbs8bM.js → Index-DPDzMKQa.js} +10 -18
  71. package/dist/Index-DvxSig3z.js +25 -0
  72. package/dist/Index-Dzrn3Y6p.js +16 -0
  73. package/dist/{Index-BWnh94_i.js → Index-LQb0omFE.js} +10 -18
  74. package/dist/Index-Mt4mSaNT.js +4 -0
  75. package/dist/Index-_xN_cczo.js +3477 -0
  76. package/dist/Index-gAz45qgR.js +21 -0
  77. package/dist/Index-xXLFalgR.js +49 -0
  78. package/dist/Index-zyZRPz3H.js +28 -0
  79. package/dist/Index.vue_vue_type_script_lang-Ddo1wo-D.js +671 -0
  80. package/dist/InputToggleRow-CokEYwm2.js +99 -0
  81. package/dist/ManualPopover-Dukly7GP.js +65 -0
  82. package/dist/MediaWrapper-B8msCrQm.js +18 -0
  83. package/dist/{NotBindingText-D8Blua5a.js → NotBindingText-DcQd8Eej.js} +13 -17
  84. package/dist/PackageGroup-clUIUoik.js +1060 -0
  85. package/dist/PdfTerms-DpzMVRfN.js +34 -0
  86. package/dist/PdfViewer-CSf4Rtbj.js +392 -0
  87. package/dist/PlainHtml.vue_vue_type_script_setup_true_lang-D6KSjjMA.js +17 -0
  88. package/dist/PriceHeader-Dyweu8aH.js +488 -0
  89. package/dist/{SearchApi-Bg9FwkW0.js → SearchApi-Y1fDQn0u.js} +37 -49
  90. package/dist/SendForm-B9l24WwR.js +6689 -0
  91. package/dist/Setup-DyzbPFM4.js +47 -0
  92. package/dist/{SmartList-DofjZjfy.js → SmartList-CWGKoAJh.js} +16 -24
  93. package/dist/Sortable.vue_vue_type_script_setup_true_lang-C2Gwp6Q-.js +1349 -0
  94. package/dist/{TermsSettings-B4glHd0I.js → TermsSettings-BeQH307A.js} +169 -56
  95. package/dist/ThemeColorRow-DFIsPy55.js +105 -0
  96. package/dist/ToggleBinding-DlH4y1IM.js +44 -0
  97. package/dist/UploadModal-BZ0mPBBB.js +134 -0
  98. package/dist/VideoPlayerInput-DBxcTUb7.js +134 -0
  99. package/dist/VideoPlayerSettings-Dg1OxjOa.js +78 -0
  100. package/dist/VideoSelectModal-BhbanMix.js +217 -0
  101. package/dist/{anime.es-BrPTThYb.js → anime.es-4wvNItHq.js} +205 -201
  102. package/dist/{color-TdtKxwVa.js → color-HetJPhlA.js} +1 -2
  103. package/dist/{dom-Ds4ypDrd.js → dom-CkTGWrfu.js} +3 -6
  104. package/dist/{focusDrawerMixin-DVCJIsb_.js → focusDrawerMixin-BVbTYOGr.js} +1 -1
  105. package/dist/{formDrawerState-BYsq1pB0.js → formDrawerState-CogZ-GVm.js} +2 -2
  106. package/dist/helpers-B4GUxtdD.js +46 -0
  107. package/dist/index-BZDey7B-.js +268 -0
  108. package/dist/index-Bd8_ZHHq.js +188 -0
  109. package/dist/index-BvyoYp1e.js +508 -0
  110. package/dist/index-CJZoubA3.js +3525 -0
  111. package/dist/index-D7yQWP4d.js +125 -0
  112. package/dist/index-D8hGHka6.js +513 -0
  113. package/dist/index-Dxy4tf7x.js +149 -0
  114. package/dist/index.es.js +2 -5
  115. package/dist/index.umd.js +303 -1486
  116. package/dist/main-Bn5XkQPb.js +57570 -0
  117. package/dist/mapFormMixin-C7FJLnbO.js +1528 -0
  118. package/dist/omit-DrWpFvRJ.js +56 -0
  119. package/dist/{publicSenderState-C4cIGu3m.js → publicSenderState-tdtCFPMx.js} +4 -4
  120. package/dist/splitpanes-BApidgjj.js +342 -0
  121. package/dist/template-CHdf2K2I.js +1572 -0
  122. package/dist/tippy.esm-Co6FYzEM.js +1994 -0
  123. package/dist/useTermsModal-VDnO1Lro.js +87 -0
  124. package/dist/{utils-CMs9ODO8.js → utils-DZkn0Q9c.js} +8 -11
  125. package/dist/validation-CqBkar3f.js +40 -0
  126. package/dist/widget.css +1 -0
  127. package/package.json +20 -25
  128. package/dist/AddClientCallout-TF4dWJwb.js +0 -48
  129. package/dist/AnswerModal-CLHDa2TD.js +0 -3879
  130. package/dist/AttachmentItem-ICP5nbhT.js +0 -85
  131. package/dist/BaseDatePicker-wwmiz_b5.js +0 -3187
  132. package/dist/BaseUpload-CDZOjohX.js +0 -1977
  133. package/dist/BlockMedia-D1JAYF9F.js +0 -76
  134. package/dist/CCallout-dAjcZXrm.js +0 -58
  135. package/dist/CDropdownItem-CkSNbSdj.js +0 -640
  136. package/dist/CFormField-Dw6UM1u6.js +0 -240
  137. package/dist/CPhoneInput-Dd6cJ4jg.js +0 -138
  138. package/dist/CPriceInput-CjV95s8E.js +0 -116
  139. package/dist/CSelect-izVnsQME.js +0 -91
  140. package/dist/CSkeleton-C0TjtLtY.js +0 -55
  141. package/dist/ClientAutocomplete-Cfu3abEx.js +0 -438
  142. package/dist/ClientModal-DjSoPQ9x.js +0 -666
  143. package/dist/ColorPicker-DZP6FIdn.js +0 -2879
  144. package/dist/CompanyModal-BYQWdbhG.js +0 -147
  145. package/dist/ContentWrapper-Bci9pSEp.js +0 -190
  146. package/dist/CoverBlockSettings-wD55bj3k.js +0 -659
  147. package/dist/DocAnswer-B5q-ntKP.js +0 -36
  148. package/dist/DocDetails-BQuaNZ4b.js +0 -263
  149. package/dist/DocForm-QzZ5wqsS.js +0 -5017
  150. package/dist/DocFormSend-CORtQPhb.js +0 -146
  151. package/dist/DocLinks-DZPzODUe.js +0 -38
  152. package/dist/DocModalBase-TTALjv6K.js +0 -28
  153. package/dist/DocPrint-BB-KT9ut.js +0 -240
  154. package/dist/DocReceipt-CGks1GLS.js +0 -217
  155. package/dist/DocSendReminder-BBQXJbsV.js +0 -140
  156. package/dist/DocTimeline-4jnYDmBI.js +0 -485
  157. package/dist/DocumentClient-BAAX7Dxk.js +0 -136
  158. package/dist/DocumentLayout-C4edCFmr.js +0 -4880
  159. package/dist/DocumentLogotype-i7YSQKcH.js +0 -92
  160. package/dist/DocumentVoided-BvZoMFB_.js +0 -25
  161. package/dist/EmbedInput-Bij7ER30.js +0 -117
  162. package/dist/EmbedSettings-D0oyq4-9.js +0 -74
  163. package/dist/ErrorCallout-CsW3WTZp.js +0 -27
  164. package/dist/FilePreviewModal-Doaawg0l.js +0 -81
  165. package/dist/Flag-C4Mf2xUU.js +0 -46
  166. package/dist/HeaderSettings-DwZ54IsK.js +0 -440
  167. package/dist/ImageSelectModal-ClFJ5uXM.js +0 -86
  168. package/dist/ImageUploadWrapper-DtEp_Pg3.js +0 -1604
  169. package/dist/Index-2MwnGZ_4.js +0 -25
  170. package/dist/Index-3CwdeytO.js +0 -107
  171. package/dist/Index-B-bSVOoh.js +0 -73
  172. package/dist/Index-BDyMp1ib.js +0 -643
  173. package/dist/Index-BMgtwHVA.js +0 -24
  174. package/dist/Index-BTD3hWbY.js +0 -54
  175. package/dist/Index-BUbd06rz.js +0 -144
  176. package/dist/Index-Bv2XrpgK.js +0 -25
  177. package/dist/Index-C00Ay-7P.js +0 -62
  178. package/dist/Index-CHL_6WQH.js +0 -66
  179. package/dist/Index-CLyNrkJA.js +0 -28
  180. package/dist/Index-CV57PvUE.js +0 -26
  181. package/dist/Index-Crj4apcP.js +0 -146
  182. package/dist/Index-CryBgLTa.js +0 -294
  183. package/dist/Index-Cv33nreP.js +0 -33
  184. package/dist/Index-D0ErQJ2M.js +0 -2445
  185. package/dist/Index-D8ZnVbsP.js +0 -32
  186. package/dist/Index-DPNIJewY.js +0 -56
  187. package/dist/Index-DVXhB0Ja.js +0 -58
  188. package/dist/Index-DWhQwxeB.js +0 -94
  189. package/dist/Index-DX7tomhl.js +0 -230
  190. package/dist/Index-D_AdmLWe.js +0 -41
  191. package/dist/Index-DgTQzlfK.js +0 -754
  192. package/dist/Index-DhapmO-4.js +0 -55
  193. package/dist/Index-DjC8joRt.js +0 -150
  194. package/dist/Index-Dv4l4LKF.js +0 -154
  195. package/dist/Index-TTFKPIIC.js +0 -84
  196. package/dist/Index-cT8oYfLR.js +0 -41
  197. package/dist/Index-igPwrQMu.js +0 -77
  198. package/dist/InputToggleRow-BgOubdXs.js +0 -57
  199. package/dist/ManualPopover-8suun-i9.js +0 -60
  200. package/dist/MediaWrapper-BadblLbS.js +0 -23
  201. package/dist/PackageGroup-BxmqH6qI.js +0 -704
  202. package/dist/PdfTerms-C6MRk0Ix.js +0 -31
  203. package/dist/PdfViewer-DUoiQx_1.js +0 -383
  204. package/dist/PlainHtml-DZ9V0Yuf.js +0 -27
  205. package/dist/PriceHeader-C3_CoKrL.js +0 -338
  206. package/dist/SendForm-D-OvqCee.js +0 -1023
  207. package/dist/Setup-CwK4er2y.js +0 -50
  208. package/dist/ThemeColorRow-BplIaxA2.js +0 -69
  209. package/dist/ToggleBinding-6ntt38Ye.js +0 -42
  210. package/dist/UploadModal-B6jQzsYA.js +0 -95
  211. package/dist/VideoPlayerInput-ryP77WC0.js +0 -97
  212. package/dist/VideoPlayerSettings-DJh0JNRI.js +0 -61
  213. package/dist/VideoSelectModal-8udQ394X.js +0 -104
  214. package/dist/answerDocumentMixin-CF4J_vsp.js +0 -51
  215. package/dist/debounce-CgyZi04Q.js +0 -84
  216. package/dist/formValidationMixin-Dq7aZhBk.js +0 -49
  217. package/dist/index-2Q8Ejpof.js +0 -167
  218. package/dist/index-B5-izJkt.js +0 -102
  219. package/dist/index-BQb6k0M8.js +0 -351
  220. package/dist/index-CR-KQfRE.js +0 -81
  221. package/dist/index-CogHiXWx.js +0 -2700
  222. package/dist/index-lZ1sSNWc.js +0 -492
  223. package/dist/main-BpqUyMpC.js +0 -57349
  224. package/dist/mapFormMixin-rxtAFyFK.js +0 -3028
  225. package/dist/omit-C7FeydiO.js +0 -31
  226. package/dist/simplebar.min-Dm388s-3.js +0 -71
  227. package/dist/splitpanes-BHUVsCZF.js +0 -382
  228. package/dist/style.css +0 -4
  229. package/dist/throttle-CfcsX8nA.js +0 -18
  230. package/dist/tippy.esm-C9mV-Rzr.js +0 -1805
  231. package/dist/vuedraggable.umd-CChGnToh.js +0 -3161
  232. package/dist/vuex.esm-DKGl8mcw.js +0 -467
@@ -1,4880 +0,0 @@
1
- import { u as _o, b4 as yo, n as ht, c as aa, b5 as ca, b6 as la, V as ua, q as da, ad as xn, l as fi, y as fa, x as ti, j as pa, b as ha } from "./main-BpqUyMpC.js";
2
- import { a as ma, C as va } from "./CDropdownItem-CkSNbSdj.js";
3
- import { d as ga } from "./debounce-CgyZi04Q.js";
4
- const ya = (d, a) => {
5
- const p = d[a];
6
- return p ? typeof p == "function" ? p() : Promise.resolve(p) : new Promise((c, k) => {
7
- (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(k.bind(null, new Error("Unknown variable dynamic import: " + a)));
8
- });
9
- }, _a = /* @__PURE__ */ _o({
10
- __name: "LoadingBlock",
11
- setup(d) {
12
- return { __sfc: !0, randomWidth: yo(`${Math.floor(Math.random() * 56 + 25)}%`) };
13
- }
14
- });
15
- var ba = function() {
16
- var a = this, p = a._self._c, c = a._self._setupProxy;
17
- return p("div", { staticClass: "c-loading" }, [p("div", { staticClass: "c-loading-title", style: { width: c.randomWidth } }), p("div", { staticClass: "c-loading-body" })]);
18
- }, Sa = [], xa = /* @__PURE__ */ ht(
19
- _a,
20
- ba,
21
- Sa,
22
- !1,
23
- null,
24
- "70f204ee"
25
- );
26
- const ni = xa.exports, wa = {
27
- name: "DynamicChapter",
28
- components: {
29
- DynamicChapter: () => Promise.resolve().then(() => Oa),
30
- LoadingBlock: ni
31
- },
32
- provide() {
33
- return this.level !== 0 ? null : {
34
- parentSize: this.parentSize,
35
- _firstBlock: this._firstBlock,
36
- _lastBlock: this._lastBlock
37
- };
38
- },
39
- inject: {
40
- isPdf: {
41
- default: !1
42
- }
43
- },
44
- props: {
45
- componentProps: {
46
- type: Object,
47
- default: () => ({})
48
- },
49
- componentName: {
50
- type: String,
51
- required: !0
52
- },
53
- level: {
54
- type: Number,
55
- default: 0
56
- },
57
- isVisible: {
58
- type: [Boolean, Object],
59
- default: !0
60
- },
61
- _firstBlock: {
62
- type: Boolean,
63
- default: !1
64
- },
65
- _lastBlock: {
66
- type: Boolean,
67
- default: !1
68
- },
69
- parentSize: {
70
- type: Object,
71
- default: () => ({
72
- width: window.innerWidth
73
- })
74
- },
75
- children: {
76
- type: Array,
77
- default: () => []
78
- },
79
- onInput: {
80
- type: Function,
81
- default: () => {
82
- }
83
- },
84
- onRemove: {
85
- type: Function,
86
- default: () => {
87
- }
88
- },
89
- onMount: {
90
- type: Function,
91
- default: () => {
92
- }
93
- }
94
- },
95
- data() {
96
- return {
97
- component: ni
98
- };
99
- },
100
- computed: {
101
- loader() {
102
- return () => ya(/* @__PURE__ */ Object.assign({ "../blocks/answer/Index.vue": () => import("./Index-CryBgLTa.js"), "../blocks/attachments/Index.vue": () => import("./Index-DjC8joRt.js"), "../blocks/coverBlock/Index.vue": () => import("./Index-TTFKPIIC.js"), "../blocks/custom/Index.vue": () => import("./Index-EO0rsTmx.js"), "../blocks/docChapter/Index.vue": () => import("./Index-BTD3hWbY.js"), "../blocks/docChapterSub/Index.vue": () => import("./Index-cT8oYfLR.js"), "../blocks/docParties/Index.vue": () => import("./Index-DX7tomhl.js"), "../blocks/embed/Index.vue": () => import("./Index-CHL_6WQH.js"), "../blocks/estimatedTimeToCompleteText/Index.vue": () => import("./Index-2MwnGZ_4.js"), "../blocks/estimatedWorkStartAndEndAtText/Index.vue": () => import("./Index-Bv2XrpgK.js"), "../blocks/extraWorkConstructionPricingList/Index.vue": () => import("./Index-D8ZnVbsP.js"), "../blocks/extraWorkTimeImpactText/Index.vue": () => import("./Index-Cv33nreP.js"), "../blocks/header/Index.vue": () => import("./Index-BUbd06rz.js"), "../blocks/multiGroupPricing/Index.vue": () => import("./Index-igPwrQMu.js"), "../blocks/notBinding/Index.vue": () => import("./Index-CV57PvUE.js"), "../blocks/packageGroup/Index.vue": () => import("./Index-C00Ay-7P.js"), "../blocks/pdf/Index.vue": () => import("./Index-3CwdeytO.js"), "../blocks/presentation/Index.vue": () => import("./Index-BDyMp1ib.js"), "../blocks/terms/Index.vue": () => import("./Index-DhapmO-4.js"), "../blocks/textContent/Index.vue": () => import("./Index-D_AdmLWe.js"), "../blocks/videoPlayer/Index.vue": () => import("./Index-DWhQwxeB.js"), "../blocks/workAddressText/Index.vue": () => import("./Index-BMgtwHVA.js") }), `../blocks/${this.componentName}/Index.vue`);
103
- },
104
- isPdfPrintAndPdfBlock() {
105
- var d, a;
106
- return !!(this.isPdf && ((a = (d = this.children) == null ? void 0 : d[0]) == null ? void 0 : a.componentName) === "pdf");
107
- },
108
- isPdfBlock() {
109
- var d, a;
110
- return ((a = (d = this.children) == null ? void 0 : d[0]) == null ? void 0 : a.componentName) === "pdf";
111
- }
112
- },
113
- mounted() {
114
- this.loader().then(() => {
115
- this.component = () => this.loader();
116
- }).catch((d) => {
117
- console.log(d);
118
- });
119
- }
120
- };
121
- var Ca = function() {
122
- var a = this, p = a._self._c;
123
- return a.component ? p(a.component, a._b({ tag: "component", class: a.level === 0 && [
124
- {
125
- "is-mobile": a.parentSize.width <= 640,
126
- "is-tablet": a.parentSize.width > 640 && a.parentSize.width <= 1024,
127
- "is-desktop": a.parentSize.width > 1024
128
- },
129
- a.componentProps && a.componentProps.classList ? a.componentProps.classList : ""
130
- ], attrs: { "enable-spacing-x": !a.isPdfPrintAndPdfBlock, "pdf-spacing-x": a.isPdfBlock, "enable-spacing-y": !!(!a.isPdfPrintAndPdfBlock && a.isVisible) }, on: { input: a.onInput, remove: a.onRemove, "hook:mounted": function(c) {
131
- return a.onMount(a.$el);
132
- } } }, "component", a.componentProps, !1), [a.children.length ? a._l(a.children, function(c, k) {
133
- return p("DynamicChapter", { key: c.itemId + `${k}`, attrs: { "component-name": c.componentName, "component-props": {
134
- ...c.props,
135
- _document: a.componentProps._document,
136
- _value: c._value,
137
- _nodeId: c.nodeId
138
- }, children: c.children, level: a.level + 1, "on-input": a.onInput, "on-remove": a.onRemove, "on-mount": a.onMount } });
139
- }) : a._e()], 2) : a._e();
140
- }, $a = [], ka = /* @__PURE__ */ ht(
141
- wa,
142
- Ca,
143
- $a,
144
- !1,
145
- null,
146
- null
147
- );
148
- const pi = ka.exports, Oa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
149
- __proto__: null,
150
- default: pi
151
- }, Symbol.toStringTag, { value: "Module" })), hi = "data-is-preview", Ea = aa.google.fontsKey, Ta = "https://www.googleapis.com/webfonts/v1/webfonts", Ia = "https://fonts.googleapis.com/css", oi = {
152
- 100: { label: "Thin", value: "100" },
153
- 200: { label: "Extra Light", value: "200" },
154
- 300: { label: "Light", value: "300" },
155
- regular: { label: "Normal", value: "400" },
156
- 500: { label: "Medium", value: "500" },
157
- 600: { label: "Semi Bold", value: "600" },
158
- 700: { label: "Bold", value: "700" },
159
- 800: { label: "Extra Bold", value: "800" },
160
- 900: { label: "Black", value: "900" }
161
- }, mi = (d) => `font-${d.replace(/\s+/g, "-").toLowerCase()}`, Da = (d, a = !1) => {
162
- const p = document.getElementById(mi(d));
163
- return p !== null && p.getAttribute(hi) === a.toString();
164
- }, Pa = (d, a = !1) => {
165
- const p = document.head || document.getElementsByTagName("head")[0], c = document.createElement("link");
166
- c.id = mi(d), c.setAttribute("rel", "stylesheet"), c.setAttribute(hi, a.toString());
167
- let k = `${Ia}?family=${d.replace(/\s/gi, "+")}`;
168
- return a ? k += `&text=${d}` : k += ":100,100italic,200,200italic,300,300italic,400,400italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic", k += "&display=swap", c.setAttribute("href", k), p.appendChild(c), c;
169
- }, vi = (d, a = !1) => {
170
- d && !Da(d, a) && Pa(d, a);
171
- }, gi = (d = {}) => {
172
- if (!(typeof d != "object" || !d))
173
- for (const a in d)
174
- a === "fontFamily" ? vi(d[a]) : typeof d[a] == "object" && gi(d[a]);
175
- }, za = /* @__PURE__ */ _o({
176
- __name: "FontDropdownItem",
177
- props: {
178
- source: null
179
- },
180
- setup(d) {
181
- const a = d, p = yo(null), c = (C, F) => {
182
- let O = C, W = O.$options.name;
183
- for (; O && (!W || W !== F); )
184
- O = O.$parent, O && ({ name: W } = O.$options);
185
- return O || null;
186
- }, k = a.source.family, R = yo({
187
- paddingRight: "calc(0.5 * var(--rem))",
188
- fontFamily: `'${k}'`
189
- }), $ = la();
190
- return $ && (p.value = c($.proxy, "CDropdown")), ca(() => {
191
- vi(k, !0);
192
- }), { __sfc: !0, props: a, customParent: p, getCustomParent: c, family: k, itemStyle: R, instance: $, CDropdownItem: ma };
193
- }
194
- });
195
- var Aa = function() {
196
- var a = this, p = a._self._c, c = a._self._setupProxy;
197
- return p(c.CDropdownItem, { staticClass: "truncate-text", style: c.itemStyle, attrs: { value: a.source, "custom-parent": c.customParent } }, [a._v(" " + a._s(c.family) + " ")]);
198
- }, ja = [], La = /* @__PURE__ */ ht(
199
- za,
200
- Aa,
201
- ja,
202
- !1,
203
- null,
204
- null
205
- );
206
- const yi = La.exports, Ra = 1e3 * 60 * 60 * 24 * 14, je = ua.observable({
207
- list: [],
208
- fetchedAt: null,
209
- error: "",
210
- loading: !1
211
- }), Fa = async (d = "popularity") => {
212
- let a = [];
213
- try {
214
- const { data: p } = await da.get(Ta, {
215
- params: {
216
- sort: d,
217
- key: Ea
218
- }
219
- });
220
- a = p.items || [];
221
- } catch (p) {
222
- je.error = p;
223
- }
224
- return a;
225
- };
226
- je.load = async () => {
227
- if (je.loading) {
228
- await je.loading;
229
- return;
230
- }
231
- (!je.fetchedAt || je.fetchedAt < Date.now() - Ra) && (je.loading = new Promise(async (d) => {
232
- je.list = await Fa(), je.fetchedAt = Date.now(), d(!1);
233
- }), await je.loading);
234
- };
235
- const _i = (d = []) => (d || []).filter((a) => !!oi[a]).map((a) => oi[a]), Xc = async (d) => {
236
- if (!d || typeof d != "string")
237
- return {};
238
- !je.list.length && !je.error && await je.load();
239
- const { variants: a } = je.list.find((p) => p.family === d) || {};
240
- return _i(a || []);
241
- };
242
- var bi = { exports: {} }, vo = { exports: {} }, go = { exports: {} };
243
- /*!
244
- * Vue.js v2.7.13
245
- * (c) 2014-2022 Evan You
246
- * Released under the MIT License.
247
- */
248
- var ri;
249
- function Ma() {
250
- if (ri)
251
- return go.exports;
252
- ri = 1;
253
- const d = Object.freeze({}), a = Array.isArray;
254
- function p(e) {
255
- return e == null;
256
- }
257
- function c(e) {
258
- return e != null;
259
- }
260
- function k(e) {
261
- return e === !0;
262
- }
263
- function R(e) {
264
- return typeof e == "string" || typeof e == "number" || typeof e == "symbol" || typeof e == "boolean";
265
- }
266
- function $(e) {
267
- return typeof e == "function";
268
- }
269
- function C(e) {
270
- return e !== null && typeof e == "object";
271
- }
272
- const F = Object.prototype.toString;
273
- function O(e) {
274
- return F.call(e) === "[object Object]";
275
- }
276
- function W(e) {
277
- const t = parseFloat(String(e));
278
- return t >= 0 && Math.floor(t) === t && isFinite(e);
279
- }
280
- function de(e) {
281
- return c(e) && typeof e.then == "function" && typeof e.catch == "function";
282
- }
283
- function Le(e) {
284
- return e == null ? "" : Array.isArray(e) || O(e) && e.toString === F ? JSON.stringify(e, null, 2) : String(e);
285
- }
286
- function Y(e) {
287
- const t = parseFloat(e);
288
- return isNaN(t) ? e : t;
289
- }
290
- function V(e, t) {
291
- const n = /* @__PURE__ */ Object.create(null), o = e.split(",");
292
- for (let r = 0; r < o.length; r++)
293
- n[o[r]] = !0;
294
- return t ? (r) => n[r.toLowerCase()] : (r) => n[r];
295
- }
296
- const ve = V("key,ref,slot,slot-scope,is");
297
- function le(e, t) {
298
- const n = e.length;
299
- if (n) {
300
- if (t === e[n - 1])
301
- return void (e.length = n - 1);
302
- const o = e.indexOf(t);
303
- if (o > -1)
304
- return e.splice(o, 1);
305
- }
306
- }
307
- const Re = Object.prototype.hasOwnProperty;
308
- function H(e, t) {
309
- return Re.call(e, t);
310
- }
311
- function Q(e) {
312
- const t = /* @__PURE__ */ Object.create(null);
313
- return function(n) {
314
- return t[n] || (t[n] = e(n));
315
- };
316
- }
317
- const z = /-(\w)/g, b = Q((e) => e.replace(z, (t, n) => n ? n.toUpperCase() : "")), ee = Q((e) => e.charAt(0).toUpperCase() + e.slice(1)), D = /\B([A-Z])/g, te = Q((e) => e.replace(D, "-$1").toLowerCase()), ge = Function.prototype.bind ? function(e, t) {
318
- return e.bind(t);
319
- } : function(e, t) {
320
- function n(o) {
321
- const r = arguments.length;
322
- return r ? r > 1 ? e.apply(t, arguments) : e.call(t, o) : e.call(t);
323
- }
324
- return n._length = e.length, n;
325
- };
326
- function K(e, t) {
327
- t = t || 0;
328
- let n = e.length - t;
329
- const o = new Array(n);
330
- for (; n--; )
331
- o[n] = e[n + t];
332
- return o;
333
- }
334
- function M(e, t) {
335
- for (const n in t)
336
- e[n] = t[n];
337
- return e;
338
- }
339
- function _(e) {
340
- const t = {};
341
- for (let n = 0; n < e.length; n++)
342
- e[n] && M(t, e[n]);
343
- return t;
344
- }
345
- function f(e, t, n) {
346
- }
347
- const h = (e, t, n) => !1, x = (e) => e;
348
- function L(e, t) {
349
- if (e === t)
350
- return !0;
351
- const n = C(e), o = C(t);
352
- if (!n || !o)
353
- return !n && !o && String(e) === String(t);
354
- try {
355
- const r = Array.isArray(e), i = Array.isArray(t);
356
- if (r && i)
357
- return e.length === t.length && e.every((s, l) => L(s, t[l]));
358
- if (e instanceof Date && t instanceof Date)
359
- return e.getTime() === t.getTime();
360
- if (r || i)
361
- return !1;
362
- {
363
- const s = Object.keys(e), l = Object.keys(t);
364
- return s.length === l.length && s.every((u) => L(e[u], t[u]));
365
- }
366
- } catch {
367
- return !1;
368
- }
369
- }
370
- function re(e, t) {
371
- for (let n = 0; n < e.length; n++)
372
- if (L(e[n], t))
373
- return n;
374
- return -1;
375
- }
376
- function he(e) {
377
- let t = !1;
378
- return function() {
379
- t || (t = !0, e.apply(this, arguments));
380
- };
381
- }
382
- function Ce(e, t) {
383
- return e === t ? e === 0 && 1 / e != 1 / t : e == e || t == t;
384
- }
385
- const Fe = ["component", "directive", "filter"], tt = ["beforeCreate", "created", "beforeMount", "mounted", "beforeUpdate", "updated", "beforeDestroy", "destroyed", "activated", "deactivated", "errorCaptured", "serverPrefetch", "renderTracked", "renderTriggered"];
386
- var Ie = { optionMergeStrategies: /* @__PURE__ */ Object.create(null), silent: !1, productionTip: !1, devtools: !1, performance: !1, errorHandler: null, warnHandler: null, ignoredElements: [], keyCodes: /* @__PURE__ */ Object.create(null), isReservedTag: h, isReservedAttr: h, isUnknownElement: h, getTagNamespace: f, parsePlatformTagName: x, mustUseProp: h, async: !0, _lifecycleHooks: tt };
387
- function Ke(e) {
388
- const t = (e + "").charCodeAt(0);
389
- return t === 36 || t === 95;
390
- }
391
- function ie(e, t, n, o) {
392
- Object.defineProperty(e, t, { value: n, enumerable: !!o, writable: !0, configurable: !0 });
393
- }
394
- const mt = new RegExp(`[^${/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/.source}.$_\\d]`), $t = "__proto__" in {}, Se = typeof window < "u", me = Se && window.navigator.userAgent.toLowerCase(), E = me && /msie|trident/.test(me), B = me && me.indexOf("msie 9.0") > 0, se = me && me.indexOf("edge/") > 0;
395
- me && me.indexOf("android");
396
- const Me = me && /iphone|ipad|ipod|ios/.test(me), Ge = me && me.match(/firefox\/(\d+)/), nt = {}.watch;
397
- let ot, De = !1;
398
- if (Se)
399
- try {
400
- const e = {};
401
- Object.defineProperty(e, "passive", { get() {
402
- De = !0;
403
- } }), window.addEventListener("test-passive", null, e);
404
- } catch {
405
- }
406
- const q = () => (ot === void 0 && (ot = !Se && typeof xn < "u" && xn.process && xn.process.env.VUE_ENV === "server"), ot), Ne = Se && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
407
- function He(e) {
408
- return typeof e == "function" && /native code/.test(e.toString());
409
- }
410
- const Be = typeof Symbol < "u" && He(Symbol) && typeof Reflect < "u" && He(Reflect.ownKeys);
411
- let We;
412
- We = typeof Set < "u" && He(Set) ? Set : class {
413
- constructor() {
414
- this.set = /* @__PURE__ */ Object.create(null);
415
- }
416
- has(e) {
417
- return this.set[e] === !0;
418
- }
419
- add(e) {
420
- this.set[e] = !0;
421
- }
422
- clear() {
423
- this.set = /* @__PURE__ */ Object.create(null);
424
- }
425
- };
426
- let ae = null;
427
- function Ze(e = null) {
428
- e || ae && ae._scope.off(), ae = e, e && e._scope.on();
429
- }
430
- class Ee {
431
- constructor(t, n, o, r, i, s, l, u) {
432
- this.tag = t, this.data = n, this.children = o, this.text = r, this.elm = i, this.ns = void 0, this.context = s, this.fnContext = void 0, this.fnOptions = void 0, this.fnScopeId = void 0, this.key = n && n.key, this.componentOptions = l, this.componentInstance = void 0, this.parent = void 0, this.raw = !1, this.isStatic = !1, this.isRootInsert = !0, this.isComment = !1, this.isCloned = !1, this.isOnce = !1, this.asyncFactory = u, this.asyncMeta = void 0, this.isAsyncPlaceholder = !1;
433
- }
434
- get child() {
435
- return this.componentInstance;
436
- }
437
- }
438
- const rt = (e = "") => {
439
- const t = new Ee();
440
- return t.text = e, t.isComment = !0, t;
441
- };
442
- function ct(e) {
443
- return new Ee(void 0, void 0, void 0, String(e));
444
- }
445
- function zt(e) {
446
- const t = new Ee(e.tag, e.data, e.children && e.children.slice(), e.text, e.elm, e.context, e.componentOptions, e.asyncFactory);
447
- return t.ns = e.ns, t.isStatic = e.isStatic, t.key = e.key, t.isComment = e.isComment, t.fnContext = e.fnContext, t.fnOptions = e.fnOptions, t.fnScopeId = e.fnScopeId, t.asyncMeta = e.asyncMeta, t.isCloned = !0, t;
448
- }
449
- let xe = 0;
450
- const Ve = [];
451
- class we {
452
- constructor() {
453
- this._pending = !1, this.id = xe++, this.subs = [];
454
- }
455
- addSub(t) {
456
- this.subs.push(t);
457
- }
458
- removeSub(t) {
459
- this.subs[this.subs.indexOf(t)] = null, this._pending || (this._pending = !0, Ve.push(this));
460
- }
461
- depend(t) {
462
- we.target && we.target.addDep(this);
463
- }
464
- notify(t) {
465
- const n = this.subs.filter((o) => o);
466
- for (let o = 0, r = n.length; o < r; o++)
467
- n[o].update();
468
- }
469
- }
470
- we.target = null;
471
- const Ye = [];
472
- function vt(e) {
473
- Ye.push(e), we.target = e;
474
- }
475
- function Je() {
476
- Ye.pop(), we.target = Ye[Ye.length - 1];
477
- }
478
- const Zt = Array.prototype, gt = Object.create(Zt);
479
- ["push", "pop", "shift", "unshift", "splice", "sort", "reverse"].forEach(function(e) {
480
- const t = Zt[e];
481
- ie(gt, e, function(...n) {
482
- const o = t.apply(this, n), r = this.__ob__;
483
- let i;
484
- switch (e) {
485
- case "push":
486
- case "unshift":
487
- i = n;
488
- break;
489
- case "splice":
490
- i = n.slice(2);
491
- }
492
- return i && r.observeArray(i), r.dep.notify(), o;
493
- });
494
- });
495
- const Jt = /* @__PURE__ */ new WeakMap();
496
- function wn(e) {
497
- return So(e, !0), ie(e, "__v_isShallow", !0), e;
498
- }
499
- function So(e, t) {
500
- Ot(e) || lt(e, t, q());
501
- }
502
- function kt(e) {
503
- return Ot(e) ? kt(e.__v_raw) : !(!e || !e.__ob__);
504
- }
505
- function en(e) {
506
- return !(!e || !e.__v_isShallow);
507
- }
508
- function Ot(e) {
509
- return !(!e || !e.__v_isReadonly);
510
- }
511
- const xo = Object.getOwnPropertyNames(gt), wo = {};
512
- let Cn = !0;
513
- function yt(e) {
514
- Cn = e;
515
- }
516
- const Ei = { notify: f, depend: f, addSub: f, removeSub: f };
517
- class Co {
518
- constructor(t, n = !1, o = !1) {
519
- if (this.value = t, this.shallow = n, this.mock = o, this.dep = o ? Ei : new we(), this.vmCount = 0, ie(t, "__ob__", this), a(t)) {
520
- if (!o)
521
- if ($t)
522
- t.__proto__ = gt;
523
- else
524
- for (let r = 0, i = xo.length; r < i; r++) {
525
- const s = xo[r];
526
- ie(t, s, gt[s]);
527
- }
528
- n || this.observeArray(t);
529
- } else {
530
- const r = Object.keys(t);
531
- for (let i = 0; i < r.length; i++)
532
- _t(t, r[i], wo, void 0, n, o);
533
- }
534
- }
535
- observeArray(t) {
536
- for (let n = 0, o = t.length; n < o; n++)
537
- lt(t[n], !1, this.mock);
538
- }
539
- }
540
- function lt(e, t, n) {
541
- return e && H(e, "__ob__") && e.__ob__ instanceof Co ? e.__ob__ : !Cn || !n && q() || !a(e) && !O(e) || !Object.isExtensible(e) || e.__v_skip || Jt.has(e) || Te(e) || e instanceof Ee ? void 0 : new Co(e, t, n);
542
- }
543
- function _t(e, t, n, o, r, i) {
544
- const s = new we(), l = Object.getOwnPropertyDescriptor(e, t);
545
- if (l && l.configurable === !1)
546
- return;
547
- const u = l && l.get, v = l && l.set;
548
- u && !v || n !== wo && arguments.length !== 2 || (n = e[t]);
549
- let m = !r && lt(n, !1, i);
550
- return Object.defineProperty(e, t, { enumerable: !0, configurable: !0, get: function() {
551
- const S = u ? u.call(e) : n;
552
- return we.target && (s.depend(), m && (m.dep.depend(), a(S) && $o(S))), Te(S) && !r ? S.value : S;
553
- }, set: function(S) {
554
- const w = u ? u.call(e) : n;
555
- if (Ce(w, S)) {
556
- if (v)
557
- v.call(e, S);
558
- else {
559
- if (u)
560
- return;
561
- if (!r && Te(w) && !Te(S))
562
- return void (w.value = S);
563
- n = S;
564
- }
565
- m = !r && lt(S, !1, i), s.notify();
566
- }
567
- } }), s;
568
- }
569
- function tn(e, t, n) {
570
- if (Ot(e))
571
- return;
572
- const o = e.__ob__;
573
- return a(e) && W(t) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), o && !o.shallow && o.mock && lt(n, !1, !0), n) : t in e && !(t in Object.prototype) ? (e[t] = n, n) : e._isVue || o && o.vmCount ? n : o ? (_t(o.value, t, n, void 0, o.shallow, o.mock), o.dep.notify(), n) : (e[t] = n, n);
574
- }
575
- function $n(e, t) {
576
- if (a(e) && W(t))
577
- return void e.splice(t, 1);
578
- const n = e.__ob__;
579
- e._isVue || n && n.vmCount || Ot(e) || H(e, t) && (delete e[t], n && n.dep.notify());
580
- }
581
- function $o(e) {
582
- for (let t, n = 0, o = e.length; n < o; n++)
583
- t = e[n], t && t.__ob__ && t.__ob__.dep.depend(), a(t) && $o(t);
584
- }
585
- function Te(e) {
586
- return !(!e || e.__v_isRef !== !0);
587
- }
588
- function ko(e, t) {
589
- if (Te(e))
590
- return e;
591
- const n = {};
592
- return ie(n, "__v_isRef", !0), ie(n, "__v_isShallow", t), ie(n, "dep", _t(n, "value", e, null, t, q())), n;
593
- }
594
- function nn(e, t, n) {
595
- Object.defineProperty(e, n, { enumerable: !0, configurable: !0, get: () => {
596
- const o = t[n];
597
- if (Te(o))
598
- return o.value;
599
- {
600
- const r = o && o.__ob__;
601
- return r && r.dep.depend(), o;
602
- }
603
- }, set: (o) => {
604
- const r = t[n];
605
- Te(r) && !Te(o) ? r.value = o : t[n] = o;
606
- } });
607
- }
608
- function Oo(e, t, n) {
609
- const o = e[t];
610
- if (Te(o))
611
- return o;
612
- const r = { get value() {
613
- const i = e[t];
614
- return i === void 0 ? n : i;
615
- }, set value(i) {
616
- e[t] = i;
617
- } };
618
- return ie(r, "__v_isRef", !0), r;
619
- }
620
- const Ti = /* @__PURE__ */ new WeakMap(), Ii = /* @__PURE__ */ new WeakMap();
621
- function Eo(e) {
622
- return To(e, !1);
623
- }
624
- function To(e, t) {
625
- if (!O(e) || Ot(e))
626
- return e;
627
- const n = t ? Ii : Ti, o = n.get(e);
628
- if (o)
629
- return o;
630
- const r = Object.create(Object.getPrototypeOf(e));
631
- n.set(e, r), ie(r, "__v_isReadonly", !0), ie(r, "__v_raw", e), Te(e) && ie(r, "__v_isRef", !0), (t || en(e)) && ie(r, "__v_isShallow", !0);
632
- const i = Object.keys(e);
633
- for (let s = 0; s < i.length; s++)
634
- Di(r, e, i[s], t);
635
- return r;
636
- }
637
- function Di(e, t, n, o) {
638
- Object.defineProperty(e, n, { enumerable: !0, configurable: !0, get() {
639
- const r = t[n];
640
- return o || !O(r) ? r : Eo(r);
641
- }, set() {
642
- } });
643
- }
644
- function Io(e, t) {
645
- return on(e, null, { flush: "post" });
646
- }
647
- const Do = {};
648
- function on(e, t, { immediate: n, deep: o, flush: r = "pre", onTrack: i, onTrigger: s } = d) {
649
- const l = ae, u = (A, U, X = null) => ut(A, null, X, l, U);
650
- let v, m, S = !1, w = !1;
651
- if (Te(e) ? (v = () => e.value, S = en(e)) : kt(e) ? (v = () => (e.__ob__.dep.depend(), e), o = !0) : a(e) ? (w = !0, S = e.some((A) => kt(A) || en(A)), v = () => e.map((A) => Te(A) ? A.value : kt(A) ? At(A) : $(A) ? u(A, "watcher getter") : void 0)) : v = $(e) ? t ? () => u(e, "watcher getter") : () => {
652
- if (!l || !l._isDestroyed)
653
- return m && m(), u(e, "watcher", [T]);
654
- } : f, t && o) {
655
- const A = v;
656
- v = () => At(A());
657
- }
658
- let T = (A) => {
659
- m = I.onStop = () => {
660
- u(A, "watcher cleanup");
661
- };
662
- };
663
- if (q())
664
- return T = f, t ? n && u(t, "watcher callback", [v(), w ? [] : void 0, T]) : v(), f;
665
- const I = new Ut(ae, v, f, { lazy: !0 });
666
- I.noRecurse = !t;
667
- let j = w ? [] : Do;
668
- return I.run = () => {
669
- if (I.active)
670
- if (t) {
671
- const A = I.get();
672
- (o || S || (w ? A.some((U, X) => Ce(U, j[X])) : Ce(A, j))) && (m && m(), u(t, "watcher callback", [A, j === Do ? void 0 : j, T]), j = A);
673
- } else
674
- I.get();
675
- }, r === "sync" ? I.update = I.run : r === "post" ? (I.post = !0, I.update = () => Bn(I)) : I.update = () => {
676
- if (l && l === ae && !l._isMounted) {
677
- const A = l._preWatchers || (l._preWatchers = []);
678
- A.indexOf(I) < 0 && A.push(I);
679
- } else
680
- Bn(I);
681
- }, t ? n ? I.run() : j = I.get() : r === "post" && l ? l.$once("hook:mounted", () => I.get()) : I.get(), () => {
682
- I.teardown();
683
- };
684
- }
685
- let Pe;
686
- class kn {
687
- constructor(t = !1) {
688
- this.detached = t, this.active = !0, this.effects = [], this.cleanups = [], this.parent = Pe, !t && Pe && (this.index = (Pe.scopes || (Pe.scopes = [])).push(this) - 1);
689
- }
690
- run(t) {
691
- if (this.active) {
692
- const n = Pe;
693
- try {
694
- return Pe = this, t();
695
- } finally {
696
- Pe = n;
697
- }
698
- }
699
- }
700
- on() {
701
- Pe = this;
702
- }
703
- off() {
704
- Pe = this.parent;
705
- }
706
- stop(t) {
707
- if (this.active) {
708
- let n, o;
709
- for (n = 0, o = this.effects.length; n < o; n++)
710
- this.effects[n].teardown();
711
- for (n = 0, o = this.cleanups.length; n < o; n++)
712
- this.cleanups[n]();
713
- if (this.scopes)
714
- for (n = 0, o = this.scopes.length; n < o; n++)
715
- this.scopes[n].stop(!0);
716
- if (!this.detached && this.parent && !t) {
717
- const r = this.parent.scopes.pop();
718
- r && r !== this && (this.parent.scopes[this.index] = r, r.index = this.index);
719
- }
720
- this.parent = void 0, this.active = !1;
721
- }
722
- }
723
- }
724
- function Po(e) {
725
- const t = e._provided, n = e.$parent && e.$parent._provided;
726
- return n === t ? e._provided = Object.create(n) : t;
727
- }
728
- const zo = Q((e) => {
729
- const t = e.charAt(0) === "&", n = (e = t ? e.slice(1) : e).charAt(0) === "~", o = (e = n ? e.slice(1) : e).charAt(0) === "!";
730
- return { name: e = o ? e.slice(1) : e, once: n, capture: o, passive: t };
731
- });
732
- function On(e, t) {
733
- function n() {
734
- const o = n.fns;
735
- if (!a(o))
736
- return ut(o, null, arguments, t, "v-on handler");
737
- {
738
- const r = o.slice();
739
- for (let i = 0; i < r.length; i++)
740
- ut(r[i], null, arguments, t, "v-on handler");
741
- }
742
- }
743
- return n.fns = e, n;
744
- }
745
- function Ao(e, t, n, o, r, i) {
746
- let s, l, u, v;
747
- for (s in e)
748
- l = e[s], u = t[s], v = zo(s), p(l) || (p(u) ? (p(l.fns) && (l = e[s] = On(l, i)), k(v.once) && (l = e[s] = r(v.name, l, v.capture)), n(v.name, l, v.capture, v.passive, v.params)) : l !== u && (u.fns = l, e[s] = u));
749
- for (s in t)
750
- p(e[s]) && (v = zo(s), o(v.name, t[s], v.capture));
751
- }
752
- function bt(e, t, n) {
753
- let o;
754
- e instanceof Ee && (e = e.data.hook || (e.data.hook = {}));
755
- const r = e[t];
756
- function i() {
757
- n.apply(this, arguments), le(o.fns, i);
758
- }
759
- p(r) ? o = On([i]) : c(r.fns) && k(r.merged) ? (o = r, o.fns.push(i)) : o = On([r, i]), o.merged = !0, e[t] = o;
760
- }
761
- function jo(e, t, n, o, r) {
762
- if (c(t)) {
763
- if (H(t, n))
764
- return e[n] = t[n], r || delete t[n], !0;
765
- if (H(t, o))
766
- return e[n] = t[o], r || delete t[o], !0;
767
- }
768
- return !1;
769
- }
770
- function En(e) {
771
- return R(e) ? [ct(e)] : a(e) ? Lo(e) : void 0;
772
- }
773
- function Bt(e) {
774
- return c(e) && c(e.text) && e.isComment === !1;
775
- }
776
- function Lo(e, t) {
777
- const n = [];
778
- let o, r, i, s;
779
- for (o = 0; o < e.length; o++)
780
- r = e[o], p(r) || typeof r == "boolean" || (i = n.length - 1, s = n[i], a(r) ? r.length > 0 && (r = Lo(r, `${t || ""}_${o}`), Bt(r[0]) && Bt(s) && (n[i] = ct(s.text + r[0].text), r.shift()), n.push.apply(n, r)) : R(r) ? Bt(s) ? n[i] = ct(s.text + r) : r !== "" && n.push(ct(r)) : Bt(r) && Bt(s) ? n[i] = ct(s.text + r.text) : (k(e._isVList) && c(r.tag) && p(r.key) && c(t) && (r.key = `__vlist${t}_${o}__`), n.push(r)));
781
- return n;
782
- }
783
- function Pi(e, t) {
784
- let n, o, r, i, s = null;
785
- if (a(e) || typeof e == "string")
786
- for (s = new Array(e.length), n = 0, o = e.length; n < o; n++)
787
- s[n] = t(e[n], n);
788
- else if (typeof e == "number")
789
- for (s = new Array(e), n = 0; n < e; n++)
790
- s[n] = t(n + 1, n);
791
- else if (C(e))
792
- if (Be && e[Symbol.iterator]) {
793
- s = [];
794
- const l = e[Symbol.iterator]();
795
- let u = l.next();
796
- for (; !u.done; )
797
- s.push(t(u.value, s.length)), u = l.next();
798
- } else
799
- for (r = Object.keys(e), s = new Array(r.length), n = 0, o = r.length; n < o; n++)
800
- i = r[n], s[n] = t(e[i], i, n);
801
- return c(s) || (s = []), s._isVList = !0, s;
802
- }
803
- function zi(e, t, n, o) {
804
- const r = this.$scopedSlots[e];
805
- let i;
806
- r ? (n = n || {}, o && (n = M(M({}, o), n)), i = r(n) || ($(t) ? t() : t)) : i = this.$slots[e] || ($(t) ? t() : t);
807
- const s = n && n.slot;
808
- return s ? this.$createElement("template", { slot: s }, i) : i;
809
- }
810
- function Ai(e) {
811
- return fn(this.$options, "filters", e) || x;
812
- }
813
- function Ro(e, t) {
814
- return a(e) ? e.indexOf(t) === -1 : e !== t;
815
- }
816
- function ji(e, t, n, o, r) {
817
- const i = Ie.keyCodes[t] || n;
818
- return r && o && !Ie.keyCodes[t] ? Ro(r, o) : i ? Ro(i, e) : o ? te(o) !== t : e === void 0;
819
- }
820
- function Li(e, t, n, o, r) {
821
- if (n && C(n)) {
822
- let i;
823
- a(n) && (n = _(n));
824
- for (const s in n) {
825
- if (s === "class" || s === "style" || ve(s))
826
- i = e;
827
- else {
828
- const v = e.attrs && e.attrs.type;
829
- i = o || Ie.mustUseProp(t, v, s) ? e.domProps || (e.domProps = {}) : e.attrs || (e.attrs = {});
830
- }
831
- const l = b(s), u = te(s);
832
- !(l in i) && !(u in i) && (i[s] = n[s], r) && ((e.on || (e.on = {}))[`update:${s}`] = function(v) {
833
- n[s] = v;
834
- });
835
- }
836
- }
837
- return e;
838
- }
839
- function Ri(e, t) {
840
- const n = this._staticTrees || (this._staticTrees = []);
841
- let o = n[e];
842
- return o && !t || (o = n[e] = this.$options.staticRenderFns[e].call(this._renderProxy, this._c, this), Fo(o, `__static__${e}`, !1)), o;
843
- }
844
- function Fi(e, t, n) {
845
- return Fo(e, `__once__${t}${n ? `_${n}` : ""}`, !0), e;
846
- }
847
- function Fo(e, t, n) {
848
- if (a(e))
849
- for (let o = 0; o < e.length; o++)
850
- e[o] && typeof e[o] != "string" && Mo(e[o], `${t}_${o}`, n);
851
- else
852
- Mo(e, t, n);
853
- }
854
- function Mo(e, t, n) {
855
- e.isStatic = !0, e.key = t, e.isOnce = n;
856
- }
857
- function Mi(e, t) {
858
- if (t && O(t)) {
859
- const n = e.on = e.on ? M({}, e.on) : {};
860
- for (const o in t) {
861
- const r = n[o], i = t[o];
862
- n[o] = r ? [].concat(r, i) : i;
863
- }
864
- }
865
- return e;
866
- }
867
- function No(e, t, n, o) {
868
- t = t || { $stable: !n };
869
- for (let r = 0; r < e.length; r++) {
870
- const i = e[r];
871
- a(i) ? No(i, t, n) : i && (i.proxy && (i.fn.proxy = !0), t[i.key] = i.fn);
872
- }
873
- return o && (t.$key = o), t;
874
- }
875
- function Ni(e, t) {
876
- for (let n = 0; n < t.length; n += 2) {
877
- const o = t[n];
878
- typeof o == "string" && o && (e[t[n]] = t[n + 1]);
879
- }
880
- return e;
881
- }
882
- function Bi(e, t) {
883
- return typeof e == "string" ? t + e : e;
884
- }
885
- function Bo(e) {
886
- e._o = Fi, e._n = Y, e._s = Le, e._l = Pi, e._t = zi, e._q = L, e._i = re, e._m = Ri, e._f = Ai, e._k = ji, e._b = Li, e._v = ct, e._e = rt, e._u = No, e._g = Mi, e._d = Ni, e._p = Bi;
887
- }
888
- function Tn(e, t) {
889
- if (!e || !e.length)
890
- return {};
891
- const n = {};
892
- for (let o = 0, r = e.length; o < r; o++) {
893
- const i = e[o], s = i.data;
894
- if (s && s.attrs && s.attrs.slot && delete s.attrs.slot, i.context !== t && i.fnContext !== t || !s || s.slot == null)
895
- (n.default || (n.default = [])).push(i);
896
- else {
897
- const l = s.slot, u = n[l] || (n[l] = []);
898
- i.tag === "template" ? u.push.apply(u, i.children || []) : u.push(i);
899
- }
900
- }
901
- for (const o in n)
902
- n[o].every(Hi) && delete n[o];
903
- return n;
904
- }
905
- function Hi(e) {
906
- return e.isComment && !e.asyncFactory || e.text === " ";
907
- }
908
- function Ht(e) {
909
- return e.isComment && e.asyncFactory;
910
- }
911
- function Wt(e, t, n, o) {
912
- let r;
913
- const i = Object.keys(n).length > 0, s = t ? !!t.$stable : !i, l = t && t.$key;
914
- if (t) {
915
- if (t._normalized)
916
- return t._normalized;
917
- if (s && o && o !== d && l === o.$key && !i && !o.$hasNormal)
918
- return o;
919
- r = {};
920
- for (const u in t)
921
- t[u] && u[0] !== "$" && (r[u] = Wi(e, n, u, t[u]));
922
- } else
923
- r = {};
924
- for (const u in n)
925
- u in r || (r[u] = Vi(n, u));
926
- return t && Object.isExtensible(t) && (t._normalized = r), ie(r, "$stable", s), ie(r, "$key", l), ie(r, "$hasNormal", i), r;
927
- }
928
- function Wi(e, t, n, o) {
929
- const r = function() {
930
- const i = ae;
931
- Ze(e);
932
- let s = arguments.length ? o.apply(null, arguments) : o({});
933
- s = s && typeof s == "object" && !a(s) ? [s] : En(s);
934
- const l = s && s[0];
935
- return Ze(i), s && (!l || s.length === 1 && l.isComment && !Ht(l)) ? void 0 : s;
936
- };
937
- return o.proxy && Object.defineProperty(t, n, { get: r, enumerable: !0, configurable: !0 }), r;
938
- }
939
- function Vi(e, t) {
940
- return () => e[t];
941
- }
942
- function Ho(e) {
943
- return { get attrs() {
944
- if (!e._attrsProxy) {
945
- const t = e._attrsProxy = {};
946
- ie(t, "_v_attr_proxy", !0), rn(t, e.$attrs, d, e, "$attrs");
947
- }
948
- return e._attrsProxy;
949
- }, get listeners() {
950
- return e._listenersProxy || rn(e._listenersProxy = {}, e.$listeners, d, e, "$listeners"), e._listenersProxy;
951
- }, get slots() {
952
- return function(t) {
953
- return t._slotsProxy || Wo(t._slotsProxy = {}, t.$scopedSlots), t._slotsProxy;
954
- }(e);
955
- }, emit: ge(e.$emit, e), expose(t) {
956
- t && Object.keys(t).forEach((n) => nn(e, t, n));
957
- } };
958
- }
959
- function rn(e, t, n, o, r) {
960
- let i = !1;
961
- for (const s in t)
962
- s in e ? t[s] !== n[s] && (i = !0) : (i = !0, qi(e, s, o, r));
963
- for (const s in e)
964
- s in t || (i = !0, delete e[s]);
965
- return i;
966
- }
967
- function qi(e, t, n, o) {
968
- Object.defineProperty(e, t, { enumerable: !0, configurable: !0, get: () => n[o][t] });
969
- }
970
- function Wo(e, t) {
971
- for (const n in t)
972
- e[n] = t[n];
973
- for (const n in e)
974
- n in t || delete e[n];
975
- }
976
- function In() {
977
- const e = ae;
978
- return e._setupContext || (e._setupContext = Ho(e));
979
- }
980
- let Dn = null;
981
- function Pn(e, t) {
982
- return (e.__esModule || Be && e[Symbol.toStringTag] === "Module") && (e = e.default), C(e) ? t.extend(e) : e;
983
- }
984
- function Vo(e) {
985
- if (a(e))
986
- for (let t = 0; t < e.length; t++) {
987
- const n = e[t];
988
- if (c(n) && (c(n.componentOptions) || Ht(n)))
989
- return n;
990
- }
991
- }
992
- function Vt(e, t, n, o, r, i) {
993
- return (a(n) || R(n)) && (r = o, o = n, n = void 0), k(i) && (r = 2), function(s, l, u, v, m) {
994
- if (c(u) && c(u.__ob__) || (c(u) && c(u.is) && (l = u.is), !l))
995
- return rt();
996
- a(v) && $(v[0]) && ((u = u || {}).scopedSlots = { default: v[0] }, v.length = 0), m === 2 ? v = En(v) : m === 1 && (v = function(T) {
997
- for (let I = 0; I < T.length; I++)
998
- if (a(T[I]))
999
- return Array.prototype.concat.apply([], T);
1000
- return T;
1001
- }(v));
1002
- let S, w;
1003
- if (typeof l == "string") {
1004
- let T;
1005
- w = s.$vnode && s.$vnode.ns || Ie.getTagNamespace(l), S = u && u.pre || !c(T = fn(s.$options, "components", l)) ? new Ee(l, u, v, void 0, void 0, s) : or(T, u, s, v, l);
1006
- } else
1007
- S = or(l, u, s, v);
1008
- return a(S) ? S : c(S) ? (c(w) && qo(S, w), c(u) && function(T) {
1009
- C(T.style) && At(T.style), C(T.class) && At(T.class);
1010
- }(u), S) : rt();
1011
- }(e, t, n, o, r);
1012
- }
1013
- function qo(e, t, n) {
1014
- if (e.ns = t, e.tag === "foreignObject" && (t = void 0, n = !0), c(e.children))
1015
- for (let o = 0, r = e.children.length; o < r; o++) {
1016
- const i = e.children[o];
1017
- c(i.tag) && (p(i.ns) || k(n) && i.tag !== "svg") && qo(i, t, n);
1018
- }
1019
- }
1020
- function Et(e, t, n) {
1021
- vt();
1022
- try {
1023
- if (t) {
1024
- let o = t;
1025
- for (; o = o.$parent; ) {
1026
- const r = o.$options.errorCaptured;
1027
- if (r)
1028
- for (let i = 0; i < r.length; i++)
1029
- try {
1030
- if (r[i].call(o, e, t, n) === !1)
1031
- return;
1032
- } catch (s) {
1033
- Uo(s, o, "errorCaptured hook");
1034
- }
1035
- }
1036
- }
1037
- Uo(e, t, n);
1038
- } finally {
1039
- Je();
1040
- }
1041
- }
1042
- function ut(e, t, n, o, r) {
1043
- let i;
1044
- try {
1045
- i = n ? e.apply(t, n) : e.call(t), i && !i._isVue && de(i) && !i._handled && (i.catch((s) => Et(s, o, r + " (Promise/async)")), i._handled = !0);
1046
- } catch (s) {
1047
- Et(s, o, r);
1048
- }
1049
- return i;
1050
- }
1051
- function Uo(e, t, n) {
1052
- Ui(e);
1053
- }
1054
- function Ui(e, t, n) {
1055
- if (!Se || typeof console > "u")
1056
- throw e;
1057
- console.error(e);
1058
- }
1059
- let zn = !1;
1060
- const An = [];
1061
- let sn, jn = !1;
1062
- function an() {
1063
- jn = !1;
1064
- const e = An.slice(0);
1065
- An.length = 0;
1066
- for (let t = 0; t < e.length; t++)
1067
- e[t]();
1068
- }
1069
- if (typeof Promise < "u" && He(Promise)) {
1070
- const e = Promise.resolve();
1071
- sn = () => {
1072
- e.then(an), Me && setTimeout(f);
1073
- }, zn = !0;
1074
- } else if (E || typeof MutationObserver > "u" || !He(MutationObserver) && MutationObserver.toString() !== "[object MutationObserverConstructor]")
1075
- sn = typeof setImmediate < "u" && He(setImmediate) ? () => {
1076
- setImmediate(an);
1077
- } : () => {
1078
- setTimeout(an, 0);
1079
- };
1080
- else {
1081
- let e = 1;
1082
- const t = new MutationObserver(an), n = document.createTextNode(String(e));
1083
- t.observe(n, { characterData: !0 }), sn = () => {
1084
- e = (e + 1) % 2, n.data = String(e);
1085
- }, zn = !0;
1086
- }
1087
- function cn(e, t) {
1088
- let n;
1089
- if (An.push(() => {
1090
- if (e)
1091
- try {
1092
- e.call(t);
1093
- } catch (o) {
1094
- Et(o, t, "nextTick");
1095
- }
1096
- else
1097
- n && n(t);
1098
- }), jn || (jn = !0, sn()), !e && typeof Promise < "u")
1099
- return new Promise((o) => {
1100
- n = o;
1101
- });
1102
- }
1103
- function Qe(e) {
1104
- return (t, n = ae) => {
1105
- if (n)
1106
- return function(o, r, i) {
1107
- const s = o.$options;
1108
- s[r] = rr(s[r], i);
1109
- }(n, e, t);
1110
- };
1111
- }
1112
- const Ki = Qe("beforeMount"), Gi = Qe("mounted"), Yi = Qe("beforeUpdate"), Qi = Qe("updated"), Xi = Qe("beforeDestroy"), Zi = Qe("destroyed"), Ji = Qe("activated"), es = Qe("deactivated"), ts = Qe("serverPrefetch"), ns = Qe("renderTracked"), os = Qe("renderTriggered"), rs = Qe("errorCaptured");
1113
- var is = Object.freeze({ __proto__: null, version: "2.7.13", defineComponent: function(e) {
1114
- return e;
1115
- }, ref: function(e) {
1116
- return ko(e, !1);
1117
- }, shallowRef: function(e) {
1118
- return ko(e, !0);
1119
- }, isRef: Te, toRef: Oo, toRefs: function(e) {
1120
- const t = a(e) ? new Array(e.length) : {};
1121
- for (const n in e)
1122
- t[n] = Oo(e, n);
1123
- return t;
1124
- }, unref: function(e) {
1125
- return Te(e) ? e.value : e;
1126
- }, proxyRefs: function(e) {
1127
- if (kt(e))
1128
- return e;
1129
- const t = {}, n = Object.keys(e);
1130
- for (let o = 0; o < n.length; o++)
1131
- nn(t, e, n[o]);
1132
- return t;
1133
- }, customRef: function(e) {
1134
- const t = new we(), { get: n, set: o } = e(() => {
1135
- t.depend();
1136
- }, () => {
1137
- t.notify();
1138
- }), r = { get value() {
1139
- return n();
1140
- }, set value(i) {
1141
- o(i);
1142
- } };
1143
- return ie(r, "__v_isRef", !0), r;
1144
- }, triggerRef: function(e) {
1145
- e.dep && e.dep.notify();
1146
- }, reactive: function(e) {
1147
- return So(e, !1), e;
1148
- }, isReactive: kt, isReadonly: Ot, isShallow: en, isProxy: function(e) {
1149
- return kt(e) || Ot(e);
1150
- }, shallowReactive: wn, markRaw: function(e) {
1151
- return C(e) && Jt.set(e, !0), e;
1152
- }, toRaw: function e(t) {
1153
- const n = t && t.__v_raw;
1154
- return n ? e(n) : t;
1155
- }, readonly: Eo, shallowReadonly: function(e) {
1156
- return To(e, !0);
1157
- }, computed: function(e, t) {
1158
- let n, o;
1159
- const r = $(e);
1160
- r ? (n = e, o = f) : (n = e.get, o = e.set);
1161
- const i = q() ? null : new Ut(ae, n, f, { lazy: !0 }), s = { effect: i, get value() {
1162
- return i ? (i.dirty && i.evaluate(), we.target && i.depend(), i.value) : n();
1163
- }, set value(l) {
1164
- o(l);
1165
- } };
1166
- return ie(s, "__v_isRef", !0), ie(s, "__v_isReadonly", r), s;
1167
- }, watch: function(e, t, n) {
1168
- return on(e, t, n);
1169
- }, watchEffect: function(e, t) {
1170
- return on(e, null, t);
1171
- }, watchPostEffect: Io, watchSyncEffect: function(e, t) {
1172
- return on(e, null, { flush: "sync" });
1173
- }, EffectScope: kn, effectScope: function(e) {
1174
- return new kn(e);
1175
- }, onScopeDispose: function(e) {
1176
- Pe && Pe.cleanups.push(e);
1177
- }, getCurrentScope: function() {
1178
- return Pe;
1179
- }, provide: function(e, t) {
1180
- ae && (Po(ae)[e] = t);
1181
- }, inject: function(e, t, n = !1) {
1182
- const o = ae;
1183
- if (o) {
1184
- const r = o.$parent && o.$parent._provided;
1185
- if (r && e in r)
1186
- return r[e];
1187
- if (arguments.length > 1)
1188
- return n && $(t) ? t.call(o) : t;
1189
- }
1190
- }, h: function(e, t, n) {
1191
- return Vt(ae, e, t, n, 2, !0);
1192
- }, getCurrentInstance: function() {
1193
- return ae && { proxy: ae };
1194
- }, useSlots: function() {
1195
- return In().slots;
1196
- }, useAttrs: function() {
1197
- return In().attrs;
1198
- }, useListeners: function() {
1199
- return In().listeners;
1200
- }, mergeDefaults: function(e, t) {
1201
- const n = a(e) ? e.reduce((o, r) => (o[r] = {}, o), {}) : e;
1202
- for (const o in t) {
1203
- const r = n[o];
1204
- r ? a(r) || $(r) ? n[o] = { type: r, default: t[o] } : r.default = t[o] : r === null && (n[o] = { default: t[o] });
1205
- }
1206
- return n;
1207
- }, nextTick: cn, set: tn, del: $n, useCssModule: function(e = "$style") {
1208
- return ae && ae[e] || d;
1209
- }, useCssVars: function(e) {
1210
- if (!Se)
1211
- return;
1212
- const t = ae;
1213
- t && Io(() => {
1214
- const n = t.$el, o = e(t, t._setupProxy);
1215
- if (n && n.nodeType === 1) {
1216
- const r = n.style;
1217
- for (const i in o)
1218
- r.setProperty(`--${i}`, o[i]);
1219
- }
1220
- });
1221
- }, defineAsyncComponent: function(e) {
1222
- $(e) && (e = { loader: e });
1223
- const { loader: t, loadingComponent: n, errorComponent: o, delay: r = 200, timeout: i, suspensible: s = !1, onError: l } = e;
1224
- let u = null, v = 0;
1225
- const m = () => {
1226
- let S;
1227
- return u || (S = u = t().catch((w) => {
1228
- if (w = w instanceof Error ? w : new Error(String(w)), l)
1229
- return new Promise((T, I) => {
1230
- l(w, () => T((v++, u = null, m())), () => I(w), v + 1);
1231
- });
1232
- throw w;
1233
- }).then((w) => S !== u && u ? u : (w && (w.__esModule || w[Symbol.toStringTag] === "Module") && (w = w.default), w)));
1234
- };
1235
- return () => ({ component: m(), delay: r, timeout: i, error: o, loading: n });
1236
- }, onBeforeMount: Ki, onMounted: Gi, onBeforeUpdate: Yi, onUpdated: Qi, onBeforeUnmount: Xi, onUnmounted: Zi, onActivated: Ji, onDeactivated: es, onServerPrefetch: ts, onRenderTracked: ns, onRenderTriggered: os, onErrorCaptured: function(e, t = ae) {
1237
- rs(e, t);
1238
- } });
1239
- const Ko = new We();
1240
- function At(e) {
1241
- return ln(e, Ko), Ko.clear(), e;
1242
- }
1243
- function ln(e, t) {
1244
- let n, o;
1245
- const r = a(e);
1246
- if (!(!r && !C(e) || e.__v_skip || Object.isFrozen(e) || e instanceof Ee)) {
1247
- if (e.__ob__) {
1248
- const i = e.__ob__.dep.id;
1249
- if (t.has(i))
1250
- return;
1251
- t.add(i);
1252
- }
1253
- if (r)
1254
- for (n = e.length; n--; )
1255
- ln(e[n], t);
1256
- else if (Te(e))
1257
- ln(e.value, t);
1258
- else
1259
- for (o = Object.keys(e), n = o.length; n--; )
1260
- ln(e[o[n]], t);
1261
- }
1262
- }
1263
- let qt, ss = 0;
1264
- class Ut {
1265
- constructor(t, n, o, r, i) {
1266
- (function(s, l = Pe) {
1267
- l && l.active && l.effects.push(s);
1268
- })(this, Pe && !Pe._vm ? Pe : t ? t._scope : void 0), (this.vm = t) && i && (t._watcher = this), r ? (this.deep = !!r.deep, this.user = !!r.user, this.lazy = !!r.lazy, this.sync = !!r.sync, this.before = r.before) : this.deep = this.user = this.lazy = this.sync = !1, this.cb = o, this.id = ++ss, this.active = !0, this.post = !1, this.dirty = this.lazy, this.deps = [], this.newDeps = [], this.depIds = new We(), this.newDepIds = new We(), this.expression = "", $(n) ? this.getter = n : (this.getter = function(s) {
1269
- if (mt.test(s))
1270
- return;
1271
- const l = s.split(".");
1272
- return function(u) {
1273
- for (let v = 0; v < l.length; v++) {
1274
- if (!u)
1275
- return;
1276
- u = u[l[v]];
1277
- }
1278
- return u;
1279
- };
1280
- }(n), this.getter || (this.getter = f)), this.value = this.lazy ? void 0 : this.get();
1281
- }
1282
- get() {
1283
- let t;
1284
- vt(this);
1285
- const n = this.vm;
1286
- try {
1287
- t = this.getter.call(n, n);
1288
- } catch (o) {
1289
- if (!this.user)
1290
- throw o;
1291
- Et(o, n, `getter for watcher "${this.expression}"`);
1292
- } finally {
1293
- this.deep && At(t), Je(), this.cleanupDeps();
1294
- }
1295
- return t;
1296
- }
1297
- addDep(t) {
1298
- const n = t.id;
1299
- this.newDepIds.has(n) || (this.newDepIds.add(n), this.newDeps.push(t), this.depIds.has(n) || t.addSub(this));
1300
- }
1301
- cleanupDeps() {
1302
- let t = this.deps.length;
1303
- for (; t--; ) {
1304
- const o = this.deps[t];
1305
- this.newDepIds.has(o.id) || o.removeSub(this);
1306
- }
1307
- let n = this.depIds;
1308
- this.depIds = this.newDepIds, this.newDepIds = n, this.newDepIds.clear(), n = this.deps, this.deps = this.newDeps, this.newDeps = n, this.newDeps.length = 0;
1309
- }
1310
- update() {
1311
- this.lazy ? this.dirty = !0 : this.sync ? this.run() : Bn(this);
1312
- }
1313
- run() {
1314
- if (this.active) {
1315
- const t = this.get();
1316
- if (t !== this.value || C(t) || this.deep) {
1317
- const n = this.value;
1318
- if (this.value = t, this.user) {
1319
- const o = `callback for watcher "${this.expression}"`;
1320
- ut(this.cb, this.vm, [t, n], this.vm, o);
1321
- } else
1322
- this.cb.call(this.vm, t, n);
1323
- }
1324
- }
1325
- }
1326
- evaluate() {
1327
- this.value = this.get(), this.dirty = !1;
1328
- }
1329
- depend() {
1330
- let t = this.deps.length;
1331
- for (; t--; )
1332
- this.deps[t].depend();
1333
- }
1334
- teardown() {
1335
- if (this.vm && !this.vm._isBeingDestroyed && le(this.vm._scope.effects, this), this.active) {
1336
- let t = this.deps.length;
1337
- for (; t--; )
1338
- this.deps[t].removeSub(this);
1339
- this.active = !1, this.onStop && this.onStop();
1340
- }
1341
- }
1342
- }
1343
- function as(e, t) {
1344
- qt.$on(e, t);
1345
- }
1346
- function cs(e, t) {
1347
- qt.$off(e, t);
1348
- }
1349
- function ls(e, t) {
1350
- const n = qt;
1351
- return function o() {
1352
- t.apply(null, arguments) !== null && n.$off(e, o);
1353
- };
1354
- }
1355
- function Go(e, t, n) {
1356
- qt = e, Ao(t, n || {}, as, cs, ls, e), qt = void 0;
1357
- }
1358
- let Tt = null;
1359
- function Yo(e) {
1360
- const t = Tt;
1361
- return Tt = e, () => {
1362
- Tt = t;
1363
- };
1364
- }
1365
- function Qo(e) {
1366
- for (; e && (e = e.$parent); )
1367
- if (e._inactive)
1368
- return !0;
1369
- return !1;
1370
- }
1371
- function Ln(e, t) {
1372
- if (t) {
1373
- if (e._directInactive = !1, Qo(e))
1374
- return;
1375
- } else if (e._directInactive)
1376
- return;
1377
- if (e._inactive || e._inactive === null) {
1378
- e._inactive = !1;
1379
- for (let n = 0; n < e.$children.length; n++)
1380
- Ln(e.$children[n]);
1381
- et(e, "activated");
1382
- }
1383
- }
1384
- function Xo(e, t) {
1385
- if (!(t && (e._directInactive = !0, Qo(e)) || e._inactive)) {
1386
- e._inactive = !0;
1387
- for (let n = 0; n < e.$children.length; n++)
1388
- Xo(e.$children[n]);
1389
- et(e, "deactivated");
1390
- }
1391
- }
1392
- function et(e, t, n, o = !0) {
1393
- vt();
1394
- const r = ae;
1395
- o && Ze(e);
1396
- const i = e.$options[t], s = `${t} hook`;
1397
- if (i)
1398
- for (let l = 0, u = i.length; l < u; l++)
1399
- ut(i[l], e, null, e, s);
1400
- e._hasHookEvent && e.$emit("hook:" + t), o && Ze(r), Je();
1401
- }
1402
- const dt = [], Rn = [];
1403
- let un = {}, Fn = !1, Mn = !1, jt = 0, Zo = 0, Nn = Date.now;
1404
- if (Se && !E) {
1405
- const e = window.performance;
1406
- e && typeof e.now == "function" && Nn() > document.createEvent("Event").timeStamp && (Nn = () => e.now());
1407
- }
1408
- const us = (e, t) => {
1409
- if (e.post) {
1410
- if (!t.post)
1411
- return 1;
1412
- } else if (t.post)
1413
- return -1;
1414
- return e.id - t.id;
1415
- };
1416
- function ds() {
1417
- let e, t;
1418
- for (Zo = Nn(), Mn = !0, dt.sort(us), jt = 0; jt < dt.length; jt++)
1419
- e = dt[jt], e.before && e.before(), t = e.id, un[t] = null, e.run();
1420
- const n = Rn.slice(), o = dt.slice();
1421
- jt = dt.length = Rn.length = 0, un = {}, Fn = Mn = !1, function(r) {
1422
- for (let i = 0; i < r.length; i++)
1423
- r[i]._inactive = !0, Ln(r[i], !0);
1424
- }(n), function(r) {
1425
- let i = r.length;
1426
- for (; i--; ) {
1427
- const s = r[i], l = s.vm;
1428
- l && l._watcher === s && l._isMounted && !l._isDestroyed && et(l, "updated");
1429
- }
1430
- }(o), (() => {
1431
- for (let r = 0; r < Ve.length; r++) {
1432
- const i = Ve[r];
1433
- i.subs = i.subs.filter((s) => s), i._pending = !1;
1434
- }
1435
- Ve.length = 0;
1436
- })(), Ne && Ie.devtools && Ne.emit("flush");
1437
- }
1438
- function Bn(e) {
1439
- const t = e.id;
1440
- if (un[t] == null && (e !== we.target || !e.noRecurse)) {
1441
- if (un[t] = !0, Mn) {
1442
- let n = dt.length - 1;
1443
- for (; n > jt && dt[n].id > e.id; )
1444
- n--;
1445
- dt.splice(n + 1, 0, e);
1446
- } else
1447
- dt.push(e);
1448
- Fn || (Fn = !0, cn(ds));
1449
- }
1450
- }
1451
- function Jo(e, t) {
1452
- if (e) {
1453
- const n = /* @__PURE__ */ Object.create(null), o = Be ? Reflect.ownKeys(e) : Object.keys(e);
1454
- for (let r = 0; r < o.length; r++) {
1455
- const i = o[r];
1456
- if (i === "__ob__")
1457
- continue;
1458
- const s = e[i].from;
1459
- if (s in t._provided)
1460
- n[i] = t._provided[s];
1461
- else if ("default" in e[i]) {
1462
- const l = e[i].default;
1463
- n[i] = $(l) ? l.call(t) : l;
1464
- }
1465
- }
1466
- return n;
1467
- }
1468
- }
1469
- function Hn(e, t, n, o, r) {
1470
- const i = r.options;
1471
- let s;
1472
- H(o, "_uid") ? (s = Object.create(o), s._original = o) : (s = o, o = o._original);
1473
- const l = k(i._compiled), u = !l;
1474
- this.data = e, this.props = t, this.children = n, this.parent = o, this.listeners = e.on || d, this.injections = Jo(i.inject, o), this.slots = () => (this.$slots || Wt(o, e.scopedSlots, this.$slots = Tn(n, o)), this.$slots), Object.defineProperty(this, "scopedSlots", { enumerable: !0, get() {
1475
- return Wt(o, e.scopedSlots, this.slots());
1476
- } }), l && (this.$options = i, this.$slots = this.slots(), this.$scopedSlots = Wt(o, e.scopedSlots, this.$slots)), i._scopeId ? this._c = (v, m, S, w) => {
1477
- const T = Vt(s, v, m, S, w, u);
1478
- return T && !a(T) && (T.fnScopeId = i._scopeId, T.fnContext = o), T;
1479
- } : this._c = (v, m, S, w) => Vt(s, v, m, S, w, u);
1480
- }
1481
- function er(e, t, n, o, r) {
1482
- const i = zt(e);
1483
- return i.fnContext = n, i.fnOptions = o, t.slot && ((i.data || (i.data = {})).slot = t.slot), i;
1484
- }
1485
- function tr(e, t) {
1486
- for (const n in t)
1487
- e[b(n)] = t[n];
1488
- }
1489
- function dn(e) {
1490
- return e.name || e.__name || e._componentTag;
1491
- }
1492
- Bo(Hn.prototype);
1493
- const Wn = { init(e, t) {
1494
- if (e.componentInstance && !e.componentInstance._isDestroyed && e.data.keepAlive) {
1495
- const n = e;
1496
- Wn.prepatch(n, n);
1497
- } else
1498
- (e.componentInstance = function(n, o) {
1499
- const r = { _isComponent: !0, _parentVnode: n, parent: o }, i = n.data.inlineTemplate;
1500
- return c(i) && (r.render = i.render, r.staticRenderFns = i.staticRenderFns), new n.componentOptions.Ctor(r);
1501
- }(e, Tt)).$mount(t ? e.elm : void 0, t);
1502
- }, prepatch(e, t) {
1503
- const n = t.componentOptions;
1504
- (function(o, r, i, s, l) {
1505
- const u = s.data.scopedSlots, v = o.$scopedSlots, m = !!(u && !u.$stable || v !== d && !v.$stable || u && o.$scopedSlots.$key !== u.$key || !u && o.$scopedSlots.$key);
1506
- let S = !!(l || o.$options._renderChildren || m);
1507
- const w = o.$vnode;
1508
- o.$options._parentVnode = s, o.$vnode = s, o._vnode && (o._vnode.parent = s), o.$options._renderChildren = l;
1509
- const T = s.data.attrs || d;
1510
- o._attrsProxy && rn(o._attrsProxy, T, w.data && w.data.attrs || d, o, "$attrs") && (S = !0), o.$attrs = T, i = i || d;
1511
- const I = o.$options._parentListeners;
1512
- if (o._listenersProxy && rn(o._listenersProxy, i, I || d, o, "$listeners"), o.$listeners = o.$options._parentListeners = i, Go(o, i, I), r && o.$options.props) {
1513
- yt(!1);
1514
- const j = o._props, A = o.$options._propKeys || [];
1515
- for (let U = 0; U < A.length; U++) {
1516
- const X = A[U], ye = o.$options.props;
1517
- j[X] = Un(X, ye, r, o);
1518
- }
1519
- yt(!0), o.$options.propsData = r;
1520
- }
1521
- S && (o.$slots = Tn(l, s.context), o.$forceUpdate());
1522
- })(t.componentInstance = e.componentInstance, n.propsData, n.listeners, t, n.children);
1523
- }, insert(e) {
1524
- const { context: t, componentInstance: n } = e;
1525
- var o;
1526
- n._isMounted || (n._isMounted = !0, et(n, "mounted")), e.data.keepAlive && (t._isMounted ? ((o = n)._inactive = !1, Rn.push(o)) : Ln(n, !0));
1527
- }, destroy(e) {
1528
- const { componentInstance: t } = e;
1529
- t._isDestroyed || (e.data.keepAlive ? Xo(t, !0) : t.$destroy());
1530
- } }, nr = Object.keys(Wn);
1531
- function or(e, t, n, o, r) {
1532
- if (p(e))
1533
- return;
1534
- const i = n.$options._base;
1535
- if (C(e) && (e = i.extend(e)), typeof e != "function")
1536
- return;
1537
- let s;
1538
- if (p(e.cid) && (s = e, e = function(m, S) {
1539
- if (k(m.error) && c(m.errorComp))
1540
- return m.errorComp;
1541
- if (c(m.resolved))
1542
- return m.resolved;
1543
- const w = Dn;
1544
- if (w && c(m.owners) && m.owners.indexOf(w) === -1 && m.owners.push(w), k(m.loading) && c(m.loadingComp))
1545
- return m.loadingComp;
1546
- if (w && !c(m.owners)) {
1547
- const T = m.owners = [w];
1548
- let I = !0, j = null, A = null;
1549
- w.$on("hook:destroyed", () => le(T, w));
1550
- const U = (Xe) => {
1551
- for (let ke = 0, g = T.length; ke < g; ke++)
1552
- T[ke].$forceUpdate();
1553
- Xe && (T.length = 0, j !== null && (clearTimeout(j), j = null), A !== null && (clearTimeout(A), A = null));
1554
- }, X = he((Xe) => {
1555
- m.resolved = Pn(Xe, S), I ? T.length = 0 : U(!0);
1556
- }), ye = he((Xe) => {
1557
- c(m.errorComp) && (m.error = !0, U(!0));
1558
- }), ue = m(X, ye);
1559
- return C(ue) && (de(ue) ? p(m.resolved) && ue.then(X, ye) : de(ue.component) && (ue.component.then(X, ye), c(ue.error) && (m.errorComp = Pn(ue.error, S)), c(ue.loading) && (m.loadingComp = Pn(ue.loading, S), ue.delay === 0 ? m.loading = !0 : j = setTimeout(() => {
1560
- j = null, p(m.resolved) && p(m.error) && (m.loading = !0, U(!1));
1561
- }, ue.delay || 200)), c(ue.timeout) && (A = setTimeout(() => {
1562
- A = null, p(m.resolved) && ye(null);
1563
- }, ue.timeout)))), I = !1, m.loading ? m.loadingComp : m.resolved;
1564
- }
1565
- }(s, i), e === void 0))
1566
- return function(m, S, w, T, I) {
1567
- const j = rt();
1568
- return j.asyncFactory = m, j.asyncMeta = { data: S, context: w, children: T, tag: I }, j;
1569
- }(s, t, n, o, r);
1570
- t = t || {}, Qn(e), c(t.model) && function(m, S) {
1571
- const w = m.model && m.model.prop || "value", T = m.model && m.model.event || "input";
1572
- (S.attrs || (S.attrs = {}))[w] = S.model.value;
1573
- const I = S.on || (S.on = {}), j = I[T], A = S.model.callback;
1574
- c(j) ? (a(j) ? j.indexOf(A) === -1 : j !== A) && (I[T] = [A].concat(j)) : I[T] = A;
1575
- }(e.options, t);
1576
- const l = function(m, S, w) {
1577
- const T = S.options.props;
1578
- if (p(T))
1579
- return;
1580
- const I = {}, { attrs: j, props: A } = m;
1581
- if (c(j) || c(A))
1582
- for (const U in T) {
1583
- const X = te(U);
1584
- jo(I, A, U, X, !0) || jo(I, j, U, X, !1);
1585
- }
1586
- return I;
1587
- }(t, e);
1588
- if (k(e.options.functional))
1589
- return function(m, S, w, T, I) {
1590
- const j = m.options, A = {}, U = j.props;
1591
- if (c(U))
1592
- for (const ue in U)
1593
- A[ue] = Un(ue, U, S || d);
1594
- else
1595
- c(w.attrs) && tr(A, w.attrs), c(w.props) && tr(A, w.props);
1596
- const X = new Hn(w, A, I, T, m), ye = j.render.call(null, X._c, X);
1597
- if (ye instanceof Ee)
1598
- return er(ye, w, X.parent, j);
1599
- if (a(ye)) {
1600
- const ue = En(ye) || [], Xe = new Array(ue.length);
1601
- for (let ke = 0; ke < ue.length; ke++)
1602
- Xe[ke] = er(ue[ke], w, X.parent, j);
1603
- return Xe;
1604
- }
1605
- }(e, l, t, n, o);
1606
- const u = t.on;
1607
- if (t.on = t.nativeOn, k(e.options.abstract)) {
1608
- const m = t.slot;
1609
- t = {}, m && (t.slot = m);
1610
- }
1611
- (function(m) {
1612
- const S = m.hook || (m.hook = {});
1613
- for (let w = 0; w < nr.length; w++) {
1614
- const T = nr[w], I = S[T], j = Wn[T];
1615
- I === j || I && I._merged || (S[T] = I ? fs(j, I) : j);
1616
- }
1617
- })(t);
1618
- const v = dn(e.options) || r;
1619
- return new Ee(`vue-component-${e.cid}${v ? `-${v}` : ""}`, t, void 0, void 0, void 0, n, { Ctor: e, propsData: l, listeners: u, tag: r, children: o }, s);
1620
- }
1621
- function fs(e, t) {
1622
- const n = (o, r) => {
1623
- e(o, r), t(o, r);
1624
- };
1625
- return n._merged = !0, n;
1626
- }
1627
- let ps = f;
1628
- const it = Ie.optionMergeStrategies;
1629
- function Vn(e, t) {
1630
- if (!t)
1631
- return e;
1632
- let n, o, r;
1633
- const i = Be ? Reflect.ownKeys(t) : Object.keys(t);
1634
- for (let s = 0; s < i.length; s++)
1635
- n = i[s], n !== "__ob__" && (o = e[n], r = t[n], H(e, n) ? o !== r && O(o) && O(r) && Vn(o, r) : tn(e, n, r));
1636
- return e;
1637
- }
1638
- function qn(e, t, n) {
1639
- return n ? function() {
1640
- const o = $(t) ? t.call(n, n) : t, r = $(e) ? e.call(n, n) : e;
1641
- return o ? Vn(o, r) : r;
1642
- } : t ? e ? function() {
1643
- return Vn($(t) ? t.call(this, this) : t, $(e) ? e.call(this, this) : e);
1644
- } : t : e;
1645
- }
1646
- function rr(e, t) {
1647
- const n = t ? e ? e.concat(t) : a(t) ? t : [t] : e;
1648
- return n && function(o) {
1649
- const r = [];
1650
- for (let i = 0; i < o.length; i++)
1651
- r.indexOf(o[i]) === -1 && r.push(o[i]);
1652
- return r;
1653
- }(n);
1654
- }
1655
- function hs(e, t, n, o) {
1656
- const r = Object.create(e || null);
1657
- return t ? M(r, t) : r;
1658
- }
1659
- it.data = function(e, t, n) {
1660
- return n ? qn(e, t, n) : t && typeof t != "function" ? e : qn(e, t);
1661
- }, tt.forEach((e) => {
1662
- it[e] = rr;
1663
- }), Fe.forEach(function(e) {
1664
- it[e + "s"] = hs;
1665
- }), it.watch = function(e, t, n, o) {
1666
- if (e === nt && (e = void 0), t === nt && (t = void 0), !t)
1667
- return Object.create(e || null);
1668
- if (!e)
1669
- return t;
1670
- const r = {};
1671
- M(r, e);
1672
- for (const i in t) {
1673
- let s = r[i];
1674
- const l = t[i];
1675
- s && !a(s) && (s = [s]), r[i] = s ? s.concat(l) : a(l) ? l : [l];
1676
- }
1677
- return r;
1678
- }, it.props = it.methods = it.inject = it.computed = function(e, t, n, o) {
1679
- if (!e)
1680
- return t;
1681
- const r = /* @__PURE__ */ Object.create(null);
1682
- return M(r, e), t && M(r, t), r;
1683
- }, it.provide = qn;
1684
- const ms = function(e, t) {
1685
- return t === void 0 ? e : t;
1686
- };
1687
- function It(e, t, n) {
1688
- if ($(t) && (t = t.options), function(s, l) {
1689
- const u = s.props;
1690
- if (!u)
1691
- return;
1692
- const v = {};
1693
- let m, S, w;
1694
- if (a(u))
1695
- for (m = u.length; m--; )
1696
- S = u[m], typeof S == "string" && (w = b(S), v[w] = { type: null });
1697
- else if (O(u))
1698
- for (const T in u)
1699
- S = u[T], w = b(T), v[w] = O(S) ? S : { type: S };
1700
- s.props = v;
1701
- }(t), function(s, l) {
1702
- const u = s.inject;
1703
- if (!u)
1704
- return;
1705
- const v = s.inject = {};
1706
- if (a(u))
1707
- for (let m = 0; m < u.length; m++)
1708
- v[u[m]] = { from: u[m] };
1709
- else if (O(u))
1710
- for (const m in u) {
1711
- const S = u[m];
1712
- v[m] = O(S) ? M({ from: m }, S) : { from: S };
1713
- }
1714
- }(t), function(s) {
1715
- const l = s.directives;
1716
- if (l)
1717
- for (const u in l) {
1718
- const v = l[u];
1719
- $(v) && (l[u] = { bind: v, update: v });
1720
- }
1721
- }(t), !t._base && (t.extends && (e = It(e, t.extends, n)), t.mixins))
1722
- for (let s = 0, l = t.mixins.length; s < l; s++)
1723
- e = It(e, t.mixins[s], n);
1724
- const o = {};
1725
- let r;
1726
- for (r in e)
1727
- i(r);
1728
- for (r in t)
1729
- H(e, r) || i(r);
1730
- function i(s) {
1731
- const l = it[s] || ms;
1732
- o[s] = l(e[s], t[s], n, s);
1733
- }
1734
- return o;
1735
- }
1736
- function fn(e, t, n, o) {
1737
- if (typeof n != "string")
1738
- return;
1739
- const r = e[t];
1740
- if (H(r, n))
1741
- return r[n];
1742
- const i = b(n);
1743
- if (H(r, i))
1744
- return r[i];
1745
- const s = ee(i);
1746
- return H(r, s) ? r[s] : r[n] || r[i] || r[s];
1747
- }
1748
- function Un(e, t, n, o) {
1749
- const r = t[e], i = !H(n, e);
1750
- let s = n[e];
1751
- const l = sr(Boolean, r.type);
1752
- if (l > -1) {
1753
- if (i && !H(r, "default"))
1754
- s = !1;
1755
- else if (s === "" || s === te(e)) {
1756
- const u = sr(String, r.type);
1757
- (u < 0 || l < u) && (s = !0);
1758
- }
1759
- }
1760
- if (s === void 0) {
1761
- s = function(v, m, S) {
1762
- if (!H(m, "default"))
1763
- return;
1764
- const w = m.default;
1765
- return v && v.$options.propsData && v.$options.propsData[S] === void 0 && v._props[S] !== void 0 ? v._props[S] : $(w) && Kn(m.type) !== "Function" ? w.call(v) : w;
1766
- }(o, r, e);
1767
- const u = Cn;
1768
- yt(!0), lt(s), yt(u);
1769
- }
1770
- return s;
1771
- }
1772
- const vs = /^\s*function (\w+)/;
1773
- function Kn(e) {
1774
- const t = e && e.toString().match(vs);
1775
- return t ? t[1] : "";
1776
- }
1777
- function ir(e, t) {
1778
- return Kn(e) === Kn(t);
1779
- }
1780
- function sr(e, t) {
1781
- if (!a(t))
1782
- return ir(t, e) ? 0 : -1;
1783
- for (let n = 0, o = t.length; n < o; n++)
1784
- if (ir(t[n], e))
1785
- return n;
1786
- return -1;
1787
- }
1788
- const St = { enumerable: !0, configurable: !0, get: f, set: f };
1789
- function Gn(e, t, n) {
1790
- St.get = function() {
1791
- return this[t][n];
1792
- }, St.set = function(o) {
1793
- this[t][n] = o;
1794
- }, Object.defineProperty(e, n, St);
1795
- }
1796
- function gs(e) {
1797
- const t = e.$options;
1798
- if (t.props && function(n, o) {
1799
- const r = n.$options.propsData || {}, i = n._props = wn({}), s = n.$options._propKeys = [];
1800
- n.$parent && yt(!1);
1801
- for (const l in o)
1802
- s.push(l), _t(i, l, Un(l, o, r, n)), l in n || Gn(n, "_props", l);
1803
- yt(!0);
1804
- }(e, t.props), function(n) {
1805
- const o = n.$options, r = o.setup;
1806
- if (r) {
1807
- const i = n._setupContext = Ho(n);
1808
- Ze(n), vt();
1809
- const s = ut(r, null, [n._props || wn({}), i], n, "setup");
1810
- if (Je(), Ze(), $(s))
1811
- o.render = s;
1812
- else if (C(s))
1813
- if (n._setupState = s, s.__sfc) {
1814
- const l = n._setupProxy = {};
1815
- for (const u in s)
1816
- u !== "__sfc" && nn(l, s, u);
1817
- } else
1818
- for (const l in s)
1819
- Ke(l) || nn(n, s, l);
1820
- }
1821
- }(e), t.methods && function(n, o) {
1822
- n.$options.props;
1823
- for (const r in o)
1824
- n[r] = typeof o[r] != "function" ? f : ge(o[r], n);
1825
- }(e, t.methods), t.data)
1826
- (function(n) {
1827
- let o = n.$options.data;
1828
- o = n._data = $(o) ? function(u, v) {
1829
- vt();
1830
- try {
1831
- return u.call(v, v);
1832
- } catch (m) {
1833
- return Et(m, v, "data()"), {};
1834
- } finally {
1835
- Je();
1836
- }
1837
- }(o, n) : o || {}, O(o) || (o = {});
1838
- const r = Object.keys(o), i = n.$options.props;
1839
- n.$options.methods;
1840
- let s = r.length;
1841
- for (; s--; ) {
1842
- const u = r[s];
1843
- i && H(i, u) || Ke(u) || Gn(n, "_data", u);
1844
- }
1845
- const l = lt(o);
1846
- l && l.vmCount++;
1847
- })(e);
1848
- else {
1849
- const n = lt(e._data = {});
1850
- n && n.vmCount++;
1851
- }
1852
- t.computed && function(n, o) {
1853
- const r = n._computedWatchers = /* @__PURE__ */ Object.create(null), i = q();
1854
- for (const s in o) {
1855
- const l = o[s], u = $(l) ? l : l.get;
1856
- i || (r[s] = new Ut(n, u || f, f, ys)), s in n || ar(n, s, l);
1857
- }
1858
- }(e, t.computed), t.watch && t.watch !== nt && function(n, o) {
1859
- for (const r in o) {
1860
- const i = o[r];
1861
- if (a(i))
1862
- for (let s = 0; s < i.length; s++)
1863
- Yn(n, r, i[s]);
1864
- else
1865
- Yn(n, r, i);
1866
- }
1867
- }(e, t.watch);
1868
- }
1869
- const ys = { lazy: !0 };
1870
- function ar(e, t, n) {
1871
- const o = !q();
1872
- $(n) ? (St.get = o ? cr(t) : lr(n), St.set = f) : (St.get = n.get ? o && n.cache !== !1 ? cr(t) : lr(n.get) : f, St.set = n.set || f), Object.defineProperty(e, t, St);
1873
- }
1874
- function cr(e) {
1875
- return function() {
1876
- const t = this._computedWatchers && this._computedWatchers[e];
1877
- if (t)
1878
- return t.dirty && t.evaluate(), we.target && t.depend(), t.value;
1879
- };
1880
- }
1881
- function lr(e) {
1882
- return function() {
1883
- return e.call(this, this);
1884
- };
1885
- }
1886
- function Yn(e, t, n, o) {
1887
- return O(n) && (o = n, n = n.handler), typeof n == "string" && (n = e[n]), e.$watch(t, n, o);
1888
- }
1889
- let _s = 0;
1890
- function Qn(e) {
1891
- let t = e.options;
1892
- if (e.super) {
1893
- const n = Qn(e.super);
1894
- if (n !== e.superOptions) {
1895
- e.superOptions = n;
1896
- const o = function(r) {
1897
- let i;
1898
- const s = r.options, l = r.sealedOptions;
1899
- for (const u in s)
1900
- s[u] !== l[u] && (i || (i = {}), i[u] = s[u]);
1901
- return i;
1902
- }(e);
1903
- o && M(e.extendOptions, o), t = e.options = It(n, e.extendOptions), t.name && (t.components[t.name] = e);
1904
- }
1905
- }
1906
- return t;
1907
- }
1908
- function _e(e) {
1909
- this._init(e);
1910
- }
1911
- function bs(e) {
1912
- e.cid = 0;
1913
- let t = 1;
1914
- e.extend = function(n) {
1915
- n = n || {};
1916
- const o = this, r = o.cid, i = n._Ctor || (n._Ctor = {});
1917
- if (i[r])
1918
- return i[r];
1919
- const s = dn(n) || dn(o.options), l = function(u) {
1920
- this._init(u);
1921
- };
1922
- return (l.prototype = Object.create(o.prototype)).constructor = l, l.cid = t++, l.options = It(o.options, n), l.super = o, l.options.props && function(u) {
1923
- const v = u.options.props;
1924
- for (const m in v)
1925
- Gn(u.prototype, "_props", m);
1926
- }(l), l.options.computed && function(u) {
1927
- const v = u.options.computed;
1928
- for (const m in v)
1929
- ar(u.prototype, m, v[m]);
1930
- }(l), l.extend = o.extend, l.mixin = o.mixin, l.use = o.use, Fe.forEach(function(u) {
1931
- l[u] = o[u];
1932
- }), s && (l.options.components[s] = l), l.superOptions = o.options, l.extendOptions = n, l.sealedOptions = M({}, l.options), i[r] = l, l;
1933
- };
1934
- }
1935
- function ur(e) {
1936
- return e && (dn(e.Ctor.options) || e.tag);
1937
- }
1938
- function pn(e, t) {
1939
- return a(e) ? e.indexOf(t) > -1 : typeof e == "string" ? e.split(",").indexOf(t) > -1 : (n = e, F.call(n) === "[object RegExp]" && e.test(t));
1940
- var n;
1941
- }
1942
- function dr(e, t) {
1943
- const { cache: n, keys: o, _vnode: r } = e;
1944
- for (const i in n) {
1945
- const s = n[i];
1946
- if (s) {
1947
- const l = s.name;
1948
- l && !t(l) && Xn(n, i, o, r);
1949
- }
1950
- }
1951
- }
1952
- function Xn(e, t, n, o) {
1953
- const r = e[t];
1954
- !r || o && r.tag === o.tag || r.componentInstance.$destroy(), e[t] = null, le(n, t);
1955
- }
1956
- (function(e) {
1957
- e.prototype._init = function(t) {
1958
- const n = this;
1959
- n._uid = _s++, n._isVue = !0, n.__v_skip = !0, n._scope = new kn(!0), n._scope._vm = !0, t && t._isComponent ? function(o, r) {
1960
- const i = o.$options = Object.create(o.constructor.options), s = r._parentVnode;
1961
- i.parent = r.parent, i._parentVnode = s;
1962
- const l = s.componentOptions;
1963
- i.propsData = l.propsData, i._parentListeners = l.listeners, i._renderChildren = l.children, i._componentTag = l.tag, r.render && (i.render = r.render, i.staticRenderFns = r.staticRenderFns);
1964
- }(n, t) : n.$options = It(Qn(n.constructor), t || {}, n), n._renderProxy = n, n._self = n, function(o) {
1965
- const r = o.$options;
1966
- let i = r.parent;
1967
- if (i && !r.abstract) {
1968
- for (; i.$options.abstract && i.$parent; )
1969
- i = i.$parent;
1970
- i.$children.push(o);
1971
- }
1972
- o.$parent = i, o.$root = i ? i.$root : o, o.$children = [], o.$refs = {}, o._provided = i ? i._provided : /* @__PURE__ */ Object.create(null), o._watcher = null, o._inactive = null, o._directInactive = !1, o._isMounted = !1, o._isDestroyed = !1, o._isBeingDestroyed = !1;
1973
- }(n), function(o) {
1974
- o._events = /* @__PURE__ */ Object.create(null), o._hasHookEvent = !1;
1975
- const r = o.$options._parentListeners;
1976
- r && Go(o, r);
1977
- }(n), function(o) {
1978
- o._vnode = null, o._staticTrees = null;
1979
- const r = o.$options, i = o.$vnode = r._parentVnode, s = i && i.context;
1980
- o.$slots = Tn(r._renderChildren, s), o.$scopedSlots = i ? Wt(o.$parent, i.data.scopedSlots, o.$slots) : d, o._c = (u, v, m, S) => Vt(o, u, v, m, S, !1), o.$createElement = (u, v, m, S) => Vt(o, u, v, m, S, !0);
1981
- const l = i && i.data;
1982
- _t(o, "$attrs", l && l.attrs || d, null, !0), _t(o, "$listeners", r._parentListeners || d, null, !0);
1983
- }(n), et(n, "beforeCreate", void 0, !1), function(o) {
1984
- const r = Jo(o.$options.inject, o);
1985
- r && (yt(!1), Object.keys(r).forEach((i) => {
1986
- _t(o, i, r[i]);
1987
- }), yt(!0));
1988
- }(n), gs(n), function(o) {
1989
- const r = o.$options.provide;
1990
- if (r) {
1991
- const i = $(r) ? r.call(o) : r;
1992
- if (!C(i))
1993
- return;
1994
- const s = Po(o), l = Be ? Reflect.ownKeys(i) : Object.keys(i);
1995
- for (let u = 0; u < l.length; u++) {
1996
- const v = l[u];
1997
- Object.defineProperty(s, v, Object.getOwnPropertyDescriptor(i, v));
1998
- }
1999
- }
2000
- }(n), et(n, "created"), n.$options.el && n.$mount(n.$options.el);
2001
- };
2002
- })(_e), function(e) {
2003
- const t = { get: function() {
2004
- return this._data;
2005
- } }, n = { get: function() {
2006
- return this._props;
2007
- } };
2008
- Object.defineProperty(e.prototype, "$data", t), Object.defineProperty(e.prototype, "$props", n), e.prototype.$set = tn, e.prototype.$delete = $n, e.prototype.$watch = function(o, r, i) {
2009
- const s = this;
2010
- if (O(r))
2011
- return Yn(s, o, r, i);
2012
- (i = i || {}).user = !0;
2013
- const l = new Ut(s, o, r, i);
2014
- if (i.immediate) {
2015
- const u = `callback for immediate watcher "${l.expression}"`;
2016
- vt(), ut(r, s, [l.value], s, u), Je();
2017
- }
2018
- return function() {
2019
- l.teardown();
2020
- };
2021
- };
2022
- }(_e), function(e) {
2023
- const t = /^hook:/;
2024
- e.prototype.$on = function(n, o) {
2025
- const r = this;
2026
- if (a(n))
2027
- for (let i = 0, s = n.length; i < s; i++)
2028
- r.$on(n[i], o);
2029
- else
2030
- (r._events[n] || (r._events[n] = [])).push(o), t.test(n) && (r._hasHookEvent = !0);
2031
- return r;
2032
- }, e.prototype.$once = function(n, o) {
2033
- const r = this;
2034
- function i() {
2035
- r.$off(n, i), o.apply(r, arguments);
2036
- }
2037
- return i.fn = o, r.$on(n, i), r;
2038
- }, e.prototype.$off = function(n, o) {
2039
- const r = this;
2040
- if (!arguments.length)
2041
- return r._events = /* @__PURE__ */ Object.create(null), r;
2042
- if (a(n)) {
2043
- for (let u = 0, v = n.length; u < v; u++)
2044
- r.$off(n[u], o);
2045
- return r;
2046
- }
2047
- const i = r._events[n];
2048
- if (!i)
2049
- return r;
2050
- if (!o)
2051
- return r._events[n] = null, r;
2052
- let s, l = i.length;
2053
- for (; l--; )
2054
- if (s = i[l], s === o || s.fn === o) {
2055
- i.splice(l, 1);
2056
- break;
2057
- }
2058
- return r;
2059
- }, e.prototype.$emit = function(n) {
2060
- const o = this;
2061
- let r = o._events[n];
2062
- if (r) {
2063
- r = r.length > 1 ? K(r) : r;
2064
- const i = K(arguments, 1), s = `event handler for "${n}"`;
2065
- for (let l = 0, u = r.length; l < u; l++)
2066
- ut(r[l], o, i, o, s);
2067
- }
2068
- return o;
2069
- };
2070
- }(_e), function(e) {
2071
- e.prototype._update = function(t, n) {
2072
- const o = this, r = o.$el, i = o._vnode, s = Yo(o);
2073
- o._vnode = t, o.$el = i ? o.__patch__(i, t) : o.__patch__(o.$el, t, n, !1), s(), r && (r.__vue__ = null), o.$el && (o.$el.__vue__ = o);
2074
- let l = o;
2075
- for (; l && l.$vnode && l.$parent && l.$vnode === l.$parent._vnode; )
2076
- l.$parent.$el = l.$el, l = l.$parent;
2077
- }, e.prototype.$forceUpdate = function() {
2078
- const t = this;
2079
- t._watcher && t._watcher.update();
2080
- }, e.prototype.$destroy = function() {
2081
- const t = this;
2082
- if (t._isBeingDestroyed)
2083
- return;
2084
- et(t, "beforeDestroy"), t._isBeingDestroyed = !0;
2085
- const n = t.$parent;
2086
- !n || n._isBeingDestroyed || t.$options.abstract || le(n.$children, t), t._scope.stop(), t._data.__ob__ && t._data.__ob__.vmCount--, t._isDestroyed = !0, t.__patch__(t._vnode, null), et(t, "destroyed"), t.$off(), t.$el && (t.$el.__vue__ = null), t.$vnode && (t.$vnode.parent = null);
2087
- };
2088
- }(_e), function(e) {
2089
- Bo(e.prototype), e.prototype.$nextTick = function(t) {
2090
- return cn(t, this);
2091
- }, e.prototype._render = function() {
2092
- const t = this, { render: n, _parentVnode: o } = t.$options;
2093
- let r;
2094
- o && t._isMounted && (t.$scopedSlots = Wt(t.$parent, o.data.scopedSlots, t.$slots, t.$scopedSlots), t._slotsProxy && Wo(t._slotsProxy, t.$scopedSlots)), t.$vnode = o;
2095
- try {
2096
- Ze(t), Dn = t, r = n.call(t._renderProxy, t.$createElement);
2097
- } catch (i) {
2098
- Et(i, t, "render"), r = t._vnode;
2099
- } finally {
2100
- Dn = null, Ze();
2101
- }
2102
- return a(r) && r.length === 1 && (r = r[0]), r instanceof Ee || (r = rt()), r.parent = o, r;
2103
- };
2104
- }(_e);
2105
- const fr = [String, RegExp, Array];
2106
- var Ss = { KeepAlive: { name: "keep-alive", abstract: !0, props: { include: fr, exclude: fr, max: [String, Number] }, methods: { cacheVNode() {
2107
- const { cache: e, keys: t, vnodeToCache: n, keyToCache: o } = this;
2108
- if (n) {
2109
- const { tag: r, componentInstance: i, componentOptions: s } = n;
2110
- e[o] = { name: ur(s), tag: r, componentInstance: i }, t.push(o), this.max && t.length > parseInt(this.max) && Xn(e, t[0], t, this._vnode), this.vnodeToCache = null;
2111
- }
2112
- } }, created() {
2113
- this.cache = /* @__PURE__ */ Object.create(null), this.keys = [];
2114
- }, destroyed() {
2115
- for (const e in this.cache)
2116
- Xn(this.cache, e, this.keys);
2117
- }, mounted() {
2118
- this.cacheVNode(), this.$watch("include", (e) => {
2119
- dr(this, (t) => pn(e, t));
2120
- }), this.$watch("exclude", (e) => {
2121
- dr(this, (t) => !pn(e, t));
2122
- });
2123
- }, updated() {
2124
- this.cacheVNode();
2125
- }, render() {
2126
- const e = this.$slots.default, t = Vo(e), n = t && t.componentOptions;
2127
- if (n) {
2128
- const o = ur(n), { include: r, exclude: i } = this;
2129
- if (r && (!o || !pn(r, o)) || i && o && pn(i, o))
2130
- return t;
2131
- const { cache: s, keys: l } = this, u = t.key == null ? n.Ctor.cid + (n.tag ? `::${n.tag}` : "") : t.key;
2132
- s[u] ? (t.componentInstance = s[u].componentInstance, le(l, u), l.push(u)) : (this.vnodeToCache = t, this.keyToCache = u), t.data.keepAlive = !0;
2133
- }
2134
- return t || e && e[0];
2135
- } } };
2136
- (function(e) {
2137
- Object.defineProperty(e, "config", { get: () => Ie }), e.util = { warn: ps, extend: M, mergeOptions: It, defineReactive: _t }, e.set = tn, e.delete = $n, e.nextTick = cn, e.observable = (n) => (lt(n), n), e.options = /* @__PURE__ */ Object.create(null), Fe.forEach((n) => {
2138
- e.options[n + "s"] = /* @__PURE__ */ Object.create(null);
2139
- }), e.options._base = e, M(e.options.components, Ss), function(n) {
2140
- n.use = function(o) {
2141
- const r = this._installedPlugins || (this._installedPlugins = []);
2142
- if (r.indexOf(o) > -1)
2143
- return this;
2144
- const i = K(arguments, 1);
2145
- return i.unshift(this), $(o.install) ? o.install.apply(o, i) : $(o) && o.apply(null, i), r.push(o), this;
2146
- };
2147
- }(e), function(n) {
2148
- n.mixin = function(o) {
2149
- return this.options = It(this.options, o), this;
2150
- };
2151
- }(e), bs(e), function(n) {
2152
- Fe.forEach((o) => {
2153
- n[o] = function(r, i) {
2154
- return i ? (o === "component" && O(i) && (i.name = i.name || r, i = this.options._base.extend(i)), o === "directive" && $(i) && (i = { bind: i, update: i }), this.options[o + "s"][r] = i, i) : this.options[o + "s"][r];
2155
- };
2156
- });
2157
- }(e);
2158
- })(_e), Object.defineProperty(_e.prototype, "$isServer", { get: q }), Object.defineProperty(_e.prototype, "$ssrContext", { get() {
2159
- return this.$vnode && this.$vnode.ssrContext;
2160
- } }), Object.defineProperty(_e, "FunctionalRenderContext", { value: Hn }), _e.version = "2.7.13";
2161
- const xs = V("style,class"), ws = V("input,textarea,option,select,progress"), pr = V("contenteditable,draggable,spellcheck"), Cs = V("events,caret,typing,plaintext-only"), $s = V("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"), Zn = "http://www.w3.org/1999/xlink", Jn = (e) => e.charAt(5) === ":" && e.slice(0, 5) === "xlink", hr = (e) => Jn(e) ? e.slice(6, e.length) : "", hn = (e) => e == null || e === !1;
2162
- function ks(e) {
2163
- let t = e.data, n = e, o = e;
2164
- for (; c(o.componentInstance); )
2165
- o = o.componentInstance._vnode, o && o.data && (t = mr(o.data, t));
2166
- for (; c(n = n.parent); )
2167
- n && n.data && (t = mr(t, n.data));
2168
- return function(r, i) {
2169
- return c(r) || c(i) ? eo(r, to(i)) : "";
2170
- }(t.staticClass, t.class);
2171
- }
2172
- function mr(e, t) {
2173
- return { staticClass: eo(e.staticClass, t.staticClass), class: c(e.class) ? [e.class, t.class] : t.class };
2174
- }
2175
- function eo(e, t) {
2176
- return e ? t ? e + " " + t : e : t || "";
2177
- }
2178
- function to(e) {
2179
- return Array.isArray(e) ? function(t) {
2180
- let n, o = "";
2181
- for (let r = 0, i = t.length; r < i; r++)
2182
- c(n = to(t[r])) && n !== "" && (o && (o += " "), o += n);
2183
- return o;
2184
- }(e) : C(e) ? function(t) {
2185
- let n = "";
2186
- for (const o in t)
2187
- t[o] && (n && (n += " "), n += o);
2188
- return n;
2189
- }(e) : typeof e == "string" ? e : "";
2190
- }
2191
- const Os = { svg: "http://www.w3.org/2000/svg", math: "http://www.w3.org/1998/Math/MathML" }, Es = V("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"), no = V("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view", !0), vr = (e) => Es(e) || no(e), mn = /* @__PURE__ */ Object.create(null), oo = V("text,number,password,search,email,tel,url");
2192
- var Ts = Object.freeze({ __proto__: null, createElement: function(e, t) {
2193
- const n = document.createElement(e);
2194
- return e !== "select" || t.data && t.data.attrs && t.data.attrs.multiple !== void 0 && n.setAttribute("multiple", "multiple"), n;
2195
- }, createElementNS: function(e, t) {
2196
- return document.createElementNS(Os[e], t);
2197
- }, createTextNode: function(e) {
2198
- return document.createTextNode(e);
2199
- }, createComment: function(e) {
2200
- return document.createComment(e);
2201
- }, insertBefore: function(e, t, n) {
2202
- e.insertBefore(t, n);
2203
- }, removeChild: function(e, t) {
2204
- e.removeChild(t);
2205
- }, appendChild: function(e, t) {
2206
- e.appendChild(t);
2207
- }, parentNode: function(e) {
2208
- return e.parentNode;
2209
- }, nextSibling: function(e) {
2210
- return e.nextSibling;
2211
- }, tagName: function(e) {
2212
- return e.tagName;
2213
- }, setTextContent: function(e, t) {
2214
- e.textContent = t;
2215
- }, setStyleScope: function(e, t) {
2216
- e.setAttribute(t, "");
2217
- } }), Is = { create(e, t) {
2218
- Lt(t);
2219
- }, update(e, t) {
2220
- e.data.ref !== t.data.ref && (Lt(e, !0), Lt(t));
2221
- }, destroy(e) {
2222
- Lt(e, !0);
2223
- } };
2224
- function Lt(e, t) {
2225
- const n = e.data.ref;
2226
- if (!c(n))
2227
- return;
2228
- const o = e.context, r = e.componentInstance || e.elm, i = t ? null : r, s = t ? void 0 : r;
2229
- if ($(n))
2230
- return void ut(n, o, [i], o, "template ref function");
2231
- const l = e.data.refInFor, u = typeof n == "string" || typeof n == "number", v = Te(n), m = o.$refs;
2232
- if (u || v) {
2233
- if (l) {
2234
- const S = u ? m[n] : n.value;
2235
- t ? a(S) && le(S, r) : a(S) ? S.includes(r) || S.push(r) : u ? (m[n] = [r], gr(o, n, m[n])) : n.value = [r];
2236
- } else if (u) {
2237
- if (t && m[n] !== r)
2238
- return;
2239
- m[n] = s, gr(o, n, i);
2240
- } else if (v) {
2241
- if (t && n.value !== r)
2242
- return;
2243
- n.value = i;
2244
- }
2245
- }
2246
- }
2247
- function gr({ _setupState: e }, t, n) {
2248
- e && H(e, t) && (Te(e[t]) ? e[t].value = n : e[t] = n);
2249
- }
2250
- const xt = new Ee("", {}, []), Kt = ["create", "activate", "update", "remove", "destroy"];
2251
- function Dt(e, t) {
2252
- return e.key === t.key && e.asyncFactory === t.asyncFactory && (e.tag === t.tag && e.isComment === t.isComment && c(e.data) === c(t.data) && function(n, o) {
2253
- if (n.tag !== "input")
2254
- return !0;
2255
- let r;
2256
- const i = c(r = n.data) && c(r = r.attrs) && r.type, s = c(r = o.data) && c(r = r.attrs) && r.type;
2257
- return i === s || oo(i) && oo(s);
2258
- }(e, t) || k(e.isAsyncPlaceholder) && p(t.asyncFactory.error));
2259
- }
2260
- function Ds(e, t, n) {
2261
- let o, r;
2262
- const i = {};
2263
- for (o = t; o <= n; ++o)
2264
- r = e[o].key, c(r) && (i[r] = o);
2265
- return i;
2266
- }
2267
- var Ps = { create: ro, update: ro, destroy: function(e) {
2268
- ro(e, xt);
2269
- } };
2270
- function ro(e, t) {
2271
- (e.data.directives || t.data.directives) && function(n, o) {
2272
- const r = n === xt, i = o === xt, s = yr(n.data.directives, n.context), l = yr(o.data.directives, o.context), u = [], v = [];
2273
- let m, S, w;
2274
- for (m in l)
2275
- S = s[m], w = l[m], S ? (w.oldValue = S.value, w.oldArg = S.arg, Gt(w, "update", o, n), w.def && w.def.componentUpdated && v.push(w)) : (Gt(w, "bind", o, n), w.def && w.def.inserted && u.push(w));
2276
- if (u.length) {
2277
- const T = () => {
2278
- for (let I = 0; I < u.length; I++)
2279
- Gt(u[I], "inserted", o, n);
2280
- };
2281
- r ? bt(o, "insert", T) : T();
2282
- }
2283
- if (v.length && bt(o, "postpatch", () => {
2284
- for (let T = 0; T < v.length; T++)
2285
- Gt(v[T], "componentUpdated", o, n);
2286
- }), !r)
2287
- for (m in s)
2288
- l[m] || Gt(s[m], "unbind", n, n, i);
2289
- }(e, t);
2290
- }
2291
- const zs = /* @__PURE__ */ Object.create(null);
2292
- function yr(e, t) {
2293
- const n = /* @__PURE__ */ Object.create(null);
2294
- if (!e)
2295
- return n;
2296
- let o, r;
2297
- for (o = 0; o < e.length; o++) {
2298
- if (r = e[o], r.modifiers || (r.modifiers = zs), n[As(r)] = r, t._setupState && t._setupState.__sfc) {
2299
- const i = r.def || fn(t, "_setupState", "v-" + r.name);
2300
- r.def = typeof i == "function" ? { bind: i, update: i } : i;
2301
- }
2302
- r.def = r.def || fn(t.$options, "directives", r.name);
2303
- }
2304
- return n;
2305
- }
2306
- function As(e) {
2307
- return e.rawName || `${e.name}.${Object.keys(e.modifiers || {}).join(".")}`;
2308
- }
2309
- function Gt(e, t, n, o, r) {
2310
- const i = e.def && e.def[t];
2311
- if (i)
2312
- try {
2313
- i(n.elm, e, n, o, r);
2314
- } catch (s) {
2315
- Et(s, n.context, `directive ${e.name} ${t} hook`);
2316
- }
2317
- }
2318
- var js = [Is, Ps];
2319
- function _r(e, t) {
2320
- const n = t.componentOptions;
2321
- if (c(n) && n.Ctor.options.inheritAttrs === !1 || p(e.data.attrs) && p(t.data.attrs))
2322
- return;
2323
- let o, r, i;
2324
- const s = t.elm, l = e.data.attrs || {};
2325
- let u = t.data.attrs || {};
2326
- for (o in (c(u.__ob__) || k(u._v_attr_proxy)) && (u = t.data.attrs = M({}, u)), u)
2327
- r = u[o], i = l[o], i !== r && br(s, o, r, t.data.pre);
2328
- for (o in (E || se) && u.value !== l.value && br(s, "value", u.value), l)
2329
- p(u[o]) && (Jn(o) ? s.removeAttributeNS(Zn, hr(o)) : pr(o) || s.removeAttribute(o));
2330
- }
2331
- function br(e, t, n, o) {
2332
- o || e.tagName.indexOf("-") > -1 ? Sr(e, t, n) : $s(t) ? hn(n) ? e.removeAttribute(t) : (n = t === "allowfullscreen" && e.tagName === "EMBED" ? "true" : t, e.setAttribute(t, n)) : pr(t) ? e.setAttribute(t, ((r, i) => hn(i) || i === "false" ? "false" : r === "contenteditable" && Cs(i) ? i : "true")(t, n)) : Jn(t) ? hn(n) ? e.removeAttributeNS(Zn, hr(t)) : e.setAttributeNS(Zn, t, n) : Sr(e, t, n);
2333
- }
2334
- function Sr(e, t, n) {
2335
- if (hn(n))
2336
- e.removeAttribute(t);
2337
- else {
2338
- if (E && !B && e.tagName === "TEXTAREA" && t === "placeholder" && n !== "" && !e.__ieph) {
2339
- const o = (r) => {
2340
- r.stopImmediatePropagation(), e.removeEventListener("input", o);
2341
- };
2342
- e.addEventListener("input", o), e.__ieph = !0;
2343
- }
2344
- e.setAttribute(t, n);
2345
- }
2346
- }
2347
- var Ls = { create: _r, update: _r };
2348
- function xr(e, t) {
2349
- const n = t.elm, o = t.data, r = e.data;
2350
- if (p(o.staticClass) && p(o.class) && (p(r) || p(r.staticClass) && p(r.class)))
2351
- return;
2352
- let i = ks(t);
2353
- const s = n._transitionClasses;
2354
- c(s) && (i = eo(i, to(s))), i !== n._prevClass && (n.setAttribute("class", i), n._prevClass = i);
2355
- }
2356
- var Rs = { create: xr, update: xr };
2357
- let Yt;
2358
- function Fs(e, t, n) {
2359
- const o = Yt;
2360
- return function r() {
2361
- t.apply(null, arguments) !== null && wr(e, r, n, o);
2362
- };
2363
- }
2364
- const Ms = zn && !(Ge && Number(Ge[1]) <= 53);
2365
- function Ns(e, t, n, o) {
2366
- if (Ms) {
2367
- const r = Zo, i = t;
2368
- t = i._wrapper = function(s) {
2369
- if (s.target === s.currentTarget || s.timeStamp >= r || s.timeStamp <= 0 || s.target.ownerDocument !== document)
2370
- return i.apply(this, arguments);
2371
- };
2372
- }
2373
- Yt.addEventListener(e, t, De ? { capture: n, passive: o } : n);
2374
- }
2375
- function wr(e, t, n, o) {
2376
- (o || Yt).removeEventListener(e, t._wrapper || t, n);
2377
- }
2378
- function io(e, t) {
2379
- if (p(e.data.on) && p(t.data.on))
2380
- return;
2381
- const n = t.data.on || {}, o = e.data.on || {};
2382
- Yt = t.elm || e.elm, function(r) {
2383
- if (c(r.__r)) {
2384
- const i = E ? "change" : "input";
2385
- r[i] = [].concat(r.__r, r[i] || []), delete r.__r;
2386
- }
2387
- c(r.__c) && (r.change = [].concat(r.__c, r.change || []), delete r.__c);
2388
- }(n), Ao(n, o, Ns, wr, Fs, t.context), Yt = void 0;
2389
- }
2390
- var Bs = { create: io, update: io, destroy: (e) => io(e, xt) };
2391
- let vn;
2392
- function Cr(e, t) {
2393
- if (p(e.data.domProps) && p(t.data.domProps))
2394
- return;
2395
- let n, o;
2396
- const r = t.elm, i = e.data.domProps || {};
2397
- let s = t.data.domProps || {};
2398
- for (n in (c(s.__ob__) || k(s._v_attr_proxy)) && (s = t.data.domProps = M({}, s)), i)
2399
- n in s || (r[n] = "");
2400
- for (n in s) {
2401
- if (o = s[n], n === "textContent" || n === "innerHTML") {
2402
- if (t.children && (t.children.length = 0), o === i[n])
2403
- continue;
2404
- r.childNodes.length === 1 && r.removeChild(r.childNodes[0]);
2405
- }
2406
- if (n === "value" && r.tagName !== "PROGRESS") {
2407
- r._value = o;
2408
- const l = p(o) ? "" : String(o);
2409
- Hs(r, l) && (r.value = l);
2410
- } else if (n === "innerHTML" && no(r.tagName) && p(r.innerHTML)) {
2411
- vn = vn || document.createElement("div"), vn.innerHTML = `<svg>${o}</svg>`;
2412
- const l = vn.firstChild;
2413
- for (; r.firstChild; )
2414
- r.removeChild(r.firstChild);
2415
- for (; l.firstChild; )
2416
- r.appendChild(l.firstChild);
2417
- } else if (o !== i[n])
2418
- try {
2419
- r[n] = o;
2420
- } catch {
2421
- }
2422
- }
2423
- }
2424
- function Hs(e, t) {
2425
- return !e.composing && (e.tagName === "OPTION" || function(n, o) {
2426
- let r = !0;
2427
- try {
2428
- r = document.activeElement !== n;
2429
- } catch {
2430
- }
2431
- return r && n.value !== o;
2432
- }(e, t) || function(n, o) {
2433
- const r = n.value, i = n._vModifiers;
2434
- if (c(i)) {
2435
- if (i.number)
2436
- return Y(r) !== Y(o);
2437
- if (i.trim)
2438
- return r.trim() !== o.trim();
2439
- }
2440
- return r !== o;
2441
- }(e, t));
2442
- }
2443
- var Ws = { create: Cr, update: Cr };
2444
- const Vs = Q(function(e) {
2445
- const t = {}, n = /:(.+)/;
2446
- return e.split(/;(?![^(]*\))/g).forEach(function(o) {
2447
- if (o) {
2448
- const r = o.split(n);
2449
- r.length > 1 && (t[r[0].trim()] = r[1].trim());
2450
- }
2451
- }), t;
2452
- });
2453
- function so(e) {
2454
- const t = $r(e.style);
2455
- return e.staticStyle ? M(e.staticStyle, t) : t;
2456
- }
2457
- function $r(e) {
2458
- return Array.isArray(e) ? _(e) : typeof e == "string" ? Vs(e) : e;
2459
- }
2460
- const qs = /^--/, kr = /\s*!important$/, Or = (e, t, n) => {
2461
- if (qs.test(t))
2462
- e.style.setProperty(t, n);
2463
- else if (kr.test(n))
2464
- e.style.setProperty(te(t), n.replace(kr, ""), "important");
2465
- else {
2466
- const o = Us(t);
2467
- if (Array.isArray(n))
2468
- for (let r = 0, i = n.length; r < i; r++)
2469
- e.style[o] = n[r];
2470
- else
2471
- e.style[o] = n;
2472
- }
2473
- }, Er = ["Webkit", "Moz", "ms"];
2474
- let gn;
2475
- const Us = Q(function(e) {
2476
- if (gn = gn || document.createElement("div").style, (e = b(e)) !== "filter" && e in gn)
2477
- return e;
2478
- const t = e.charAt(0).toUpperCase() + e.slice(1);
2479
- for (let n = 0; n < Er.length; n++) {
2480
- const o = Er[n] + t;
2481
- if (o in gn)
2482
- return o;
2483
- }
2484
- });
2485
- function Tr(e, t) {
2486
- const n = t.data, o = e.data;
2487
- if (p(n.staticStyle) && p(n.style) && p(o.staticStyle) && p(o.style))
2488
- return;
2489
- let r, i;
2490
- const s = t.elm, l = o.staticStyle, u = o.normalizedStyle || o.style || {}, v = l || u, m = $r(t.data.style) || {};
2491
- t.data.normalizedStyle = c(m.__ob__) ? M({}, m) : m;
2492
- const S = function(w, T) {
2493
- const I = {};
2494
- let j;
2495
- {
2496
- let U = w;
2497
- for (; U.componentInstance; )
2498
- U = U.componentInstance._vnode, U && U.data && (j = so(U.data)) && M(I, j);
2499
- }
2500
- (j = so(w.data)) && M(I, j);
2501
- let A = w;
2502
- for (; A = A.parent; )
2503
- A.data && (j = so(A.data)) && M(I, j);
2504
- return I;
2505
- }(t);
2506
- for (i in v)
2507
- p(S[i]) && Or(s, i, "");
2508
- for (i in S)
2509
- r = S[i], r !== v[i] && Or(s, i, r ?? "");
2510
- }
2511
- var Ks = { create: Tr, update: Tr };
2512
- const Ir = /\s+/;
2513
- function Dr(e, t) {
2514
- if (t && (t = t.trim()))
2515
- if (e.classList)
2516
- t.indexOf(" ") > -1 ? t.split(Ir).forEach((n) => e.classList.add(n)) : e.classList.add(t);
2517
- else {
2518
- const n = ` ${e.getAttribute("class") || ""} `;
2519
- n.indexOf(" " + t + " ") < 0 && e.setAttribute("class", (n + t).trim());
2520
- }
2521
- }
2522
- function Pr(e, t) {
2523
- if (t && (t = t.trim()))
2524
- if (e.classList)
2525
- t.indexOf(" ") > -1 ? t.split(Ir).forEach((n) => e.classList.remove(n)) : e.classList.remove(t), e.classList.length || e.removeAttribute("class");
2526
- else {
2527
- let n = ` ${e.getAttribute("class") || ""} `;
2528
- const o = " " + t + " ";
2529
- for (; n.indexOf(o) >= 0; )
2530
- n = n.replace(o, " ");
2531
- n = n.trim(), n ? e.setAttribute("class", n) : e.removeAttribute("class");
2532
- }
2533
- }
2534
- function zr(e) {
2535
- if (e) {
2536
- if (typeof e == "object") {
2537
- const t = {};
2538
- return e.css !== !1 && M(t, Ar(e.name || "v")), M(t, e), t;
2539
- }
2540
- return typeof e == "string" ? Ar(e) : void 0;
2541
- }
2542
- }
2543
- const Ar = Q((e) => ({ enterClass: `${e}-enter`, enterToClass: `${e}-enter-to`, enterActiveClass: `${e}-enter-active`, leaveClass: `${e}-leave`, leaveToClass: `${e}-leave-to`, leaveActiveClass: `${e}-leave-active` })), jr = Se && !B;
2544
- let yn = "transition", _n = "transitionend", ao = "animation", Lr = "animationend";
2545
- jr && (window.ontransitionend === void 0 && window.onwebkittransitionend !== void 0 && (yn = "WebkitTransition", _n = "webkitTransitionEnd"), window.onanimationend === void 0 && window.onwebkitanimationend !== void 0 && (ao = "WebkitAnimation", Lr = "webkitAnimationEnd"));
2546
- const Rr = Se ? window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : setTimeout : (e) => e();
2547
- function Fr(e) {
2548
- Rr(() => {
2549
- Rr(e);
2550
- });
2551
- }
2552
- function Pt(e, t) {
2553
- const n = e._transitionClasses || (e._transitionClasses = []);
2554
- n.indexOf(t) < 0 && (n.push(t), Dr(e, t));
2555
- }
2556
- function ft(e, t) {
2557
- e._transitionClasses && le(e._transitionClasses, t), Pr(e, t);
2558
- }
2559
- function Mr(e, t, n) {
2560
- const { type: o, timeout: r, propCount: i } = Nr(e, t);
2561
- if (!o)
2562
- return n();
2563
- const s = o === "transition" ? _n : Lr;
2564
- let l = 0;
2565
- const u = () => {
2566
- e.removeEventListener(s, v), n();
2567
- }, v = (m) => {
2568
- m.target === e && ++l >= i && u();
2569
- };
2570
- setTimeout(() => {
2571
- l < i && u();
2572
- }, r + 1), e.addEventListener(s, v);
2573
- }
2574
- const Gs = /\b(transform|all)(,|$)/;
2575
- function Nr(e, t) {
2576
- const n = window.getComputedStyle(e), o = (n[yn + "Delay"] || "").split(", "), r = (n[yn + "Duration"] || "").split(", "), i = Br(o, r), s = (n[ao + "Delay"] || "").split(", "), l = (n[ao + "Duration"] || "").split(", "), u = Br(s, l);
2577
- let v, m = 0, S = 0;
2578
- return t === "transition" ? i > 0 && (v = "transition", m = i, S = r.length) : t === "animation" ? u > 0 && (v = "animation", m = u, S = l.length) : (m = Math.max(i, u), v = m > 0 ? i > u ? "transition" : "animation" : null, S = v ? v === "transition" ? r.length : l.length : 0), { type: v, timeout: m, propCount: S, hasTransform: v === "transition" && Gs.test(n[yn + "Property"]) };
2579
- }
2580
- function Br(e, t) {
2581
- for (; e.length < t.length; )
2582
- e = e.concat(e);
2583
- return Math.max.apply(null, t.map((n, o) => Hr(n) + Hr(e[o])));
2584
- }
2585
- function Hr(e) {
2586
- return 1e3 * Number(e.slice(0, -1).replace(",", "."));
2587
- }
2588
- function co(e, t) {
2589
- const n = e.elm;
2590
- c(n._leaveCb) && (n._leaveCb.cancelled = !0, n._leaveCb());
2591
- const o = zr(e.data.transition);
2592
- if (p(o) || c(n._enterCb) || n.nodeType !== 1)
2593
- return;
2594
- const { css: r, type: i, enterClass: s, enterToClass: l, enterActiveClass: u, appearClass: v, appearToClass: m, appearActiveClass: S, beforeEnter: w, enter: T, afterEnter: I, enterCancelled: j, beforeAppear: A, appear: U, afterAppear: X, appearCancelled: ye, duration: ue } = o;
2595
- let Xe = Tt, ke = Tt.$vnode;
2596
- for (; ke && ke.parent; )
2597
- Xe = ke.context, ke = ke.parent;
2598
- const g = !Xe._isMounted || !e.isRootInsert;
2599
- if (g && !U && U !== "")
2600
- return;
2601
- const y = g && v ? v : s, P = g && S ? S : u, N = g && m ? m : l, Z = g && A || w, fe = g && $(U) ? U : T, ce = g && X || I, ne = g && ye || j, be = Y(C(ue) ? ue.enter : ue), pe = r !== !1 && !B, J = lo(fe), $e = n._enterCb = he(() => {
2602
- pe && (ft(n, N), ft(n, P)), $e.cancelled ? (pe && ft(n, y), ne && ne(n)) : ce && ce(n), n._enterCb = null;
2603
- });
2604
- e.data.show || bt(e, "insert", () => {
2605
- const oe = n.parentNode, G = oe && oe._pending && oe._pending[e.key];
2606
- G && G.tag === e.tag && G.elm._leaveCb && G.elm._leaveCb(), fe && fe(n, $e);
2607
- }), Z && Z(n), pe && (Pt(n, y), Pt(n, P), Fr(() => {
2608
- ft(n, y), $e.cancelled || (Pt(n, N), J || (Vr(be) ? setTimeout($e, be) : Mr(n, i, $e)));
2609
- })), e.data.show && (t && t(), fe && fe(n, $e)), pe || J || $e();
2610
- }
2611
- function Wr(e, t) {
2612
- const n = e.elm;
2613
- c(n._enterCb) && (n._enterCb.cancelled = !0, n._enterCb());
2614
- const o = zr(e.data.transition);
2615
- if (p(o) || n.nodeType !== 1)
2616
- return t();
2617
- if (c(n._leaveCb))
2618
- return;
2619
- const { css: r, type: i, leaveClass: s, leaveToClass: l, leaveActiveClass: u, beforeLeave: v, leave: m, afterLeave: S, leaveCancelled: w, delayLeave: T, duration: I } = o, j = r !== !1 && !B, A = lo(m), U = Y(C(I) ? I.leave : I), X = n._leaveCb = he(() => {
2620
- n.parentNode && n.parentNode._pending && (n.parentNode._pending[e.key] = null), j && (ft(n, l), ft(n, u)), X.cancelled ? (j && ft(n, s), w && w(n)) : (t(), S && S(n)), n._leaveCb = null;
2621
- });
2622
- function ye() {
2623
- X.cancelled || (!e.data.show && n.parentNode && ((n.parentNode._pending || (n.parentNode._pending = {}))[e.key] = e), v && v(n), j && (Pt(n, s), Pt(n, u), Fr(() => {
2624
- ft(n, s), X.cancelled || (Pt(n, l), A || (Vr(U) ? setTimeout(X, U) : Mr(n, i, X)));
2625
- })), m && m(n, X), j || A || X());
2626
- }
2627
- T ? T(ye) : ye();
2628
- }
2629
- function Vr(e) {
2630
- return typeof e == "number" && !isNaN(e);
2631
- }
2632
- function lo(e) {
2633
- if (p(e))
2634
- return !1;
2635
- const t = e.fns;
2636
- return c(t) ? lo(Array.isArray(t) ? t[0] : t) : (e._length || e.length) > 1;
2637
- }
2638
- function qr(e, t) {
2639
- t.data.show !== !0 && co(t);
2640
- }
2641
- const Ys = function(e) {
2642
- let t, n;
2643
- const o = {}, { modules: r, nodeOps: i } = e;
2644
- for (t = 0; t < Kt.length; ++t)
2645
- for (o[Kt[t]] = [], n = 0; n < r.length; ++n)
2646
- c(r[n][Kt[t]]) && o[Kt[t]].push(r[n][Kt[t]]);
2647
- function s(g) {
2648
- const y = i.parentNode(g);
2649
- c(y) && i.removeChild(y, g);
2650
- }
2651
- function l(g, y, P, N, Z, fe, ce) {
2652
- if (c(g.elm) && c(fe) && (g = fe[ce] = zt(g)), g.isRootInsert = !Z, function(J, $e, oe, G) {
2653
- let ze = J.data;
2654
- if (c(ze)) {
2655
- const ho = c(J.componentInstance) && ze.keepAlive;
2656
- if (c(ze = ze.hook) && c(ze = ze.init) && ze(J, !1), c(J.componentInstance))
2657
- return u(J, $e), v(oe, J.elm, G), k(ho) && function(Rt, Ft, Mt, Sn) {
2658
- let Ae, Oe = Rt;
2659
- for (; Oe.componentInstance; )
2660
- if (Oe = Oe.componentInstance._vnode, c(Ae = Oe.data) && c(Ae = Ae.transition)) {
2661
- for (Ae = 0; Ae < o.activate.length; ++Ae)
2662
- o.activate[Ae](xt, Oe);
2663
- Ft.push(Oe);
2664
- break;
2665
- }
2666
- v(Mt, Rt.elm, Sn);
2667
- }(J, $e, oe, G), !0;
2668
- }
2669
- }(g, y, P, N))
2670
- return;
2671
- const ne = g.data, be = g.children, pe = g.tag;
2672
- c(pe) ? (g.elm = g.ns ? i.createElementNS(g.ns, pe) : i.createElement(pe, g), T(g), m(g, be, y), c(ne) && w(g, y), v(P, g.elm, N)) : k(g.isComment) ? (g.elm = i.createComment(g.text), v(P, g.elm, N)) : (g.elm = i.createTextNode(g.text), v(P, g.elm, N));
2673
- }
2674
- function u(g, y) {
2675
- c(g.data.pendingInsert) && (y.push.apply(y, g.data.pendingInsert), g.data.pendingInsert = null), g.elm = g.componentInstance.$el, S(g) ? (w(g, y), T(g)) : (Lt(g), y.push(g));
2676
- }
2677
- function v(g, y, P) {
2678
- c(g) && (c(P) ? i.parentNode(P) === g && i.insertBefore(g, y, P) : i.appendChild(g, y));
2679
- }
2680
- function m(g, y, P) {
2681
- if (a(y))
2682
- for (let N = 0; N < y.length; ++N)
2683
- l(y[N], P, g.elm, null, !0, y, N);
2684
- else
2685
- R(g.text) && i.appendChild(g.elm, i.createTextNode(String(g.text)));
2686
- }
2687
- function S(g) {
2688
- for (; g.componentInstance; )
2689
- g = g.componentInstance._vnode;
2690
- return c(g.tag);
2691
- }
2692
- function w(g, y) {
2693
- for (let P = 0; P < o.create.length; ++P)
2694
- o.create[P](xt, g);
2695
- t = g.data.hook, c(t) && (c(t.create) && t.create(xt, g), c(t.insert) && y.push(g));
2696
- }
2697
- function T(g) {
2698
- let y;
2699
- if (c(y = g.fnScopeId))
2700
- i.setStyleScope(g.elm, y);
2701
- else {
2702
- let P = g;
2703
- for (; P; )
2704
- c(y = P.context) && c(y = y.$options._scopeId) && i.setStyleScope(g.elm, y), P = P.parent;
2705
- }
2706
- c(y = Tt) && y !== g.context && y !== g.fnContext && c(y = y.$options._scopeId) && i.setStyleScope(g.elm, y);
2707
- }
2708
- function I(g, y, P, N, Z, fe) {
2709
- for (; N <= Z; ++N)
2710
- l(P[N], fe, g, y, !1, P, N);
2711
- }
2712
- function j(g) {
2713
- let y, P;
2714
- const N = g.data;
2715
- if (c(N))
2716
- for (c(y = N.hook) && c(y = y.destroy) && y(g), y = 0; y < o.destroy.length; ++y)
2717
- o.destroy[y](g);
2718
- if (c(y = g.children))
2719
- for (P = 0; P < g.children.length; ++P)
2720
- j(g.children[P]);
2721
- }
2722
- function A(g, y, P) {
2723
- for (; y <= P; ++y) {
2724
- const N = g[y];
2725
- c(N) && (c(N.tag) ? (U(N), j(N)) : s(N.elm));
2726
- }
2727
- }
2728
- function U(g, y) {
2729
- if (c(y) || c(g.data)) {
2730
- let P;
2731
- const N = o.remove.length + 1;
2732
- for (c(y) ? y.listeners += N : y = function(Z, fe) {
2733
- function ce() {
2734
- --ce.listeners == 0 && s(Z);
2735
- }
2736
- return ce.listeners = fe, ce;
2737
- }(g.elm, N), c(P = g.componentInstance) && c(P = P._vnode) && c(P.data) && U(P, y), P = 0; P < o.remove.length; ++P)
2738
- o.remove[P](g, y);
2739
- c(P = g.data.hook) && c(P = P.remove) ? P(g, y) : y();
2740
- } else
2741
- s(g.elm);
2742
- }
2743
- function X(g, y, P, N) {
2744
- for (let Z = P; Z < N; Z++) {
2745
- const fe = y[Z];
2746
- if (c(fe) && Dt(g, fe))
2747
- return Z;
2748
- }
2749
- }
2750
- function ye(g, y, P, N, Z, fe) {
2751
- if (g === y)
2752
- return;
2753
- c(y.elm) && c(N) && (y = N[Z] = zt(y));
2754
- const ce = y.elm = g.elm;
2755
- if (k(g.isAsyncPlaceholder))
2756
- return void (c(y.asyncFactory.resolved) ? ke(g.elm, y, P) : y.isAsyncPlaceholder = !0);
2757
- if (k(y.isStatic) && k(g.isStatic) && y.key === g.key && (k(y.isCloned) || k(y.isOnce)))
2758
- return void (y.componentInstance = g.componentInstance);
2759
- let ne;
2760
- const be = y.data;
2761
- c(be) && c(ne = be.hook) && c(ne = ne.prepatch) && ne(g, y);
2762
- const pe = g.children, J = y.children;
2763
- if (c(be) && S(y)) {
2764
- for (ne = 0; ne < o.update.length; ++ne)
2765
- o.update[ne](g, y);
2766
- c(ne = be.hook) && c(ne = ne.update) && ne(g, y);
2767
- }
2768
- p(y.text) ? c(pe) && c(J) ? pe !== J && function($e, oe, G, ze, ho) {
2769
- let Rt, Ft, Mt, Sn, Ae = 0, Oe = 0, pt = oe.length - 1, Ue = oe[0], st = oe[pt], at = G.length - 1, qe = G[0], Nt = G[at];
2770
- const mo = !ho;
2771
- for (; Ae <= pt && Oe <= at; )
2772
- p(Ue) ? Ue = oe[++Ae] : p(st) ? st = oe[--pt] : Dt(Ue, qe) ? (ye(Ue, qe, ze, G, Oe), Ue = oe[++Ae], qe = G[++Oe]) : Dt(st, Nt) ? (ye(st, Nt, ze, G, at), st = oe[--pt], Nt = G[--at]) : Dt(Ue, Nt) ? (ye(Ue, Nt, ze, G, at), mo && i.insertBefore($e, Ue.elm, i.nextSibling(st.elm)), Ue = oe[++Ae], Nt = G[--at]) : Dt(st, qe) ? (ye(st, qe, ze, G, Oe), mo && i.insertBefore($e, st.elm, Ue.elm), st = oe[--pt], qe = G[++Oe]) : (p(Rt) && (Rt = Ds(oe, Ae, pt)), Ft = c(qe.key) ? Rt[qe.key] : X(qe, oe, Ae, pt), p(Ft) ? l(qe, ze, $e, Ue.elm, !1, G, Oe) : (Mt = oe[Ft], Dt(Mt, qe) ? (ye(Mt, qe, ze, G, Oe), oe[Ft] = void 0, mo && i.insertBefore($e, Mt.elm, Ue.elm)) : l(qe, ze, $e, Ue.elm, !1, G, Oe)), qe = G[++Oe]);
2773
- Ae > pt ? (Sn = p(G[at + 1]) ? null : G[at + 1].elm, I($e, Sn, G, Oe, at, ze)) : Oe > at && A(oe, Ae, pt);
2774
- }(ce, pe, J, P, fe) : c(J) ? (c(g.text) && i.setTextContent(ce, ""), I(ce, null, J, 0, J.length - 1, P)) : c(pe) ? A(pe, 0, pe.length - 1) : c(g.text) && i.setTextContent(ce, "") : g.text !== y.text && i.setTextContent(ce, y.text), c(be) && c(ne = be.hook) && c(ne = ne.postpatch) && ne(g, y);
2775
- }
2776
- function ue(g, y, P) {
2777
- if (k(P) && c(g.parent))
2778
- g.parent.data.pendingInsert = y;
2779
- else
2780
- for (let N = 0; N < y.length; ++N)
2781
- y[N].data.hook.insert(y[N]);
2782
- }
2783
- const Xe = V("attrs,class,staticClass,staticStyle,key");
2784
- function ke(g, y, P, N) {
2785
- let Z;
2786
- const { tag: fe, data: ce, children: ne } = y;
2787
- if (N = N || ce && ce.pre, y.elm = g, k(y.isComment) && c(y.asyncFactory))
2788
- return y.isAsyncPlaceholder = !0, !0;
2789
- if (c(ce) && (c(Z = ce.hook) && c(Z = Z.init) && Z(y, !0), c(Z = y.componentInstance)))
2790
- return u(y, P), !0;
2791
- if (c(fe)) {
2792
- if (c(ne))
2793
- if (g.hasChildNodes())
2794
- if (c(Z = ce) && c(Z = Z.domProps) && c(Z = Z.innerHTML)) {
2795
- if (Z !== g.innerHTML)
2796
- return !1;
2797
- } else {
2798
- let be = !0, pe = g.firstChild;
2799
- for (let J = 0; J < ne.length; J++) {
2800
- if (!pe || !ke(pe, ne[J], P, N)) {
2801
- be = !1;
2802
- break;
2803
- }
2804
- pe = pe.nextSibling;
2805
- }
2806
- if (!be || pe)
2807
- return !1;
2808
- }
2809
- else
2810
- m(y, ne, P);
2811
- if (c(ce)) {
2812
- let be = !1;
2813
- for (const pe in ce)
2814
- if (!Xe(pe)) {
2815
- be = !0, w(y, P);
2816
- break;
2817
- }
2818
- !be && ce.class && At(ce.class);
2819
- }
2820
- } else
2821
- g.data !== y.text && (g.data = y.text);
2822
- return !0;
2823
- }
2824
- return function(g, y, P, N) {
2825
- if (p(y))
2826
- return void (c(g) && j(g));
2827
- let Z = !1;
2828
- const fe = [];
2829
- if (p(g))
2830
- Z = !0, l(y, fe);
2831
- else {
2832
- const ne = c(g.nodeType);
2833
- if (!ne && Dt(g, y))
2834
- ye(g, y, fe, null, null, N);
2835
- else {
2836
- if (ne) {
2837
- if (g.nodeType === 1 && g.hasAttribute("data-server-rendered") && (g.removeAttribute("data-server-rendered"), P = !0), k(P) && ke(g, y, fe))
2838
- return ue(y, fe, !0), g;
2839
- ce = g, g = new Ee(i.tagName(ce).toLowerCase(), {}, [], void 0, ce);
2840
- }
2841
- const be = g.elm, pe = i.parentNode(be);
2842
- if (l(y, fe, be._leaveCb ? null : pe, i.nextSibling(be)), c(y.parent)) {
2843
- let J = y.parent;
2844
- const $e = S(y);
2845
- for (; J; ) {
2846
- for (let oe = 0; oe < o.destroy.length; ++oe)
2847
- o.destroy[oe](J);
2848
- if (J.elm = y.elm, $e) {
2849
- for (let G = 0; G < o.create.length; ++G)
2850
- o.create[G](xt, J);
2851
- const oe = J.data.hook.insert;
2852
- if (oe.merged)
2853
- for (let G = 1; G < oe.fns.length; G++)
2854
- oe.fns[G]();
2855
- } else
2856
- Lt(J);
2857
- J = J.parent;
2858
- }
2859
- }
2860
- c(pe) ? A([g], 0, 0) : c(g.tag) && j(g);
2861
- }
2862
- }
2863
- var ce;
2864
- return ue(y, fe, Z), y.elm;
2865
- };
2866
- }({ nodeOps: Ts, modules: [Ls, Rs, Bs, Ws, Ks, Se ? { create: qr, activate: qr, remove(e, t) {
2867
- e.data.show !== !0 ? Wr(e, t) : t();
2868
- } } : {}].concat(js) });
2869
- B && document.addEventListener("selectionchange", () => {
2870
- const e = document.activeElement;
2871
- e && e.vmodel && uo(e, "input");
2872
- });
2873
- const Ur = { inserted(e, t, n, o) {
2874
- n.tag === "select" ? (o.elm && !o.elm._vOptions ? bt(n, "postpatch", () => {
2875
- Ur.componentUpdated(e, t, n);
2876
- }) : Kr(e, t, n.context), e._vOptions = [].map.call(e.options, bn)) : (n.tag === "textarea" || oo(e.type)) && (e._vModifiers = t.modifiers, t.modifiers.lazy || (e.addEventListener("compositionstart", Qs), e.addEventListener("compositionend", Qr), e.addEventListener("change", Qr), B && (e.vmodel = !0)));
2877
- }, componentUpdated(e, t, n) {
2878
- if (n.tag === "select") {
2879
- Kr(e, t, n.context);
2880
- const o = e._vOptions, r = e._vOptions = [].map.call(e.options, bn);
2881
- r.some((i, s) => !L(i, o[s])) && (e.multiple ? t.value.some((i) => Yr(i, r)) : t.value !== t.oldValue && Yr(t.value, r)) && uo(e, "change");
2882
- }
2883
- } };
2884
- function Kr(e, t, n) {
2885
- Gr(e, t), (E || se) && setTimeout(() => {
2886
- Gr(e, t);
2887
- }, 0);
2888
- }
2889
- function Gr(e, t, n) {
2890
- const o = t.value, r = e.multiple;
2891
- if (r && !Array.isArray(o))
2892
- return;
2893
- let i, s;
2894
- for (let l = 0, u = e.options.length; l < u; l++)
2895
- if (s = e.options[l], r)
2896
- i = re(o, bn(s)) > -1, s.selected !== i && (s.selected = i);
2897
- else if (L(bn(s), o))
2898
- return void (e.selectedIndex !== l && (e.selectedIndex = l));
2899
- r || (e.selectedIndex = -1);
2900
- }
2901
- function Yr(e, t) {
2902
- return t.every((n) => !L(n, e));
2903
- }
2904
- function bn(e) {
2905
- return "_value" in e ? e._value : e.value;
2906
- }
2907
- function Qs(e) {
2908
- e.target.composing = !0;
2909
- }
2910
- function Qr(e) {
2911
- e.target.composing && (e.target.composing = !1, uo(e.target, "input"));
2912
- }
2913
- function uo(e, t) {
2914
- const n = document.createEvent("HTMLEvents");
2915
- n.initEvent(t, !0, !0), e.dispatchEvent(n);
2916
- }
2917
- function fo(e) {
2918
- return !e.componentInstance || e.data && e.data.transition ? e : fo(e.componentInstance._vnode);
2919
- }
2920
- var Xs = { bind(e, { value: t }, n) {
2921
- const o = (n = fo(n)).data && n.data.transition, r = e.__vOriginalDisplay = e.style.display === "none" ? "" : e.style.display;
2922
- t && o ? (n.data.show = !0, co(n, () => {
2923
- e.style.display = r;
2924
- })) : e.style.display = t ? r : "none";
2925
- }, update(e, { value: t, oldValue: n }, o) {
2926
- !t != !n && ((o = fo(o)).data && o.data.transition ? (o.data.show = !0, t ? co(o, () => {
2927
- e.style.display = e.__vOriginalDisplay;
2928
- }) : Wr(o, () => {
2929
- e.style.display = "none";
2930
- })) : e.style.display = t ? e.__vOriginalDisplay : "none");
2931
- }, unbind(e, t, n, o, r) {
2932
- r || (e.style.display = e.__vOriginalDisplay);
2933
- } }, Zs = { model: Ur, show: Xs };
2934
- const Xr = { name: String, appear: Boolean, css: Boolean, mode: String, type: String, enterClass: String, leaveClass: String, enterToClass: String, leaveToClass: String, enterActiveClass: String, leaveActiveClass: String, appearClass: String, appearActiveClass: String, appearToClass: String, duration: [Number, String, Object] };
2935
- function po(e) {
2936
- const t = e && e.componentOptions;
2937
- return t && t.Ctor.options.abstract ? po(Vo(t.children)) : e;
2938
- }
2939
- function Zr(e) {
2940
- const t = {}, n = e.$options;
2941
- for (const r in n.propsData)
2942
- t[r] = e[r];
2943
- const o = n._parentListeners;
2944
- for (const r in o)
2945
- t[b(r)] = o[r];
2946
- return t;
2947
- }
2948
- function Jr(e, t) {
2949
- if (/\d-keep-alive$/.test(t.tag))
2950
- return e("keep-alive", { props: t.componentOptions.propsData });
2951
- }
2952
- const Js = (e) => e.tag || Ht(e), ea = (e) => e.name === "show";
2953
- var ta = { name: "transition", props: Xr, abstract: !0, render(e) {
2954
- let t = this.$slots.default;
2955
- if (!t || (t = t.filter(Js), !t.length))
2956
- return;
2957
- const n = this.mode, o = t[0];
2958
- if (function(v) {
2959
- for (; v = v.parent; )
2960
- if (v.data.transition)
2961
- return !0;
2962
- }(this.$vnode))
2963
- return o;
2964
- const r = po(o);
2965
- if (!r)
2966
- return o;
2967
- if (this._leaving)
2968
- return Jr(e, o);
2969
- const i = `__transition-${this._uid}-`;
2970
- r.key = r.key == null ? r.isComment ? i + "comment" : i + r.tag : R(r.key) ? String(r.key).indexOf(i) === 0 ? r.key : i + r.key : r.key;
2971
- const s = (r.data || (r.data = {})).transition = Zr(this), l = this._vnode, u = po(l);
2972
- if (r.data.directives && r.data.directives.some(ea) && (r.data.show = !0), u && u.data && !function(v, m) {
2973
- return m.key === v.key && m.tag === v.tag;
2974
- }(r, u) && !Ht(u) && (!u.componentInstance || !u.componentInstance._vnode.isComment)) {
2975
- const v = u.data.transition = M({}, s);
2976
- if (n === "out-in")
2977
- return this._leaving = !0, bt(v, "afterLeave", () => {
2978
- this._leaving = !1, this.$forceUpdate();
2979
- }), Jr(e, o);
2980
- if (n === "in-out") {
2981
- if (Ht(r))
2982
- return l;
2983
- let m;
2984
- const S = () => {
2985
- m();
2986
- };
2987
- bt(s, "afterEnter", S), bt(s, "enterCancelled", S), bt(v, "delayLeave", (w) => {
2988
- m = w;
2989
- });
2990
- }
2991
- }
2992
- return o;
2993
- } };
2994
- const ei = M({ tag: String, moveClass: String }, Xr);
2995
- delete ei.mode;
2996
- var na = { props: ei, beforeMount() {
2997
- const e = this._update;
2998
- this._update = (t, n) => {
2999
- const o = Yo(this);
3000
- this.__patch__(this._vnode, this.kept, !1, !0), this._vnode = this.kept, o(), e.call(this, t, n);
3001
- };
3002
- }, render(e) {
3003
- const t = this.tag || this.$vnode.data.tag || "span", n = /* @__PURE__ */ Object.create(null), o = this.prevChildren = this.children, r = this.$slots.default || [], i = this.children = [], s = Zr(this);
3004
- for (let l = 0; l < r.length; l++) {
3005
- const u = r[l];
3006
- u.tag && u.key != null && String(u.key).indexOf("__vlist") !== 0 && (i.push(u), n[u.key] = u, (u.data || (u.data = {})).transition = s);
3007
- }
3008
- if (o) {
3009
- const l = [], u = [];
3010
- for (let v = 0; v < o.length; v++) {
3011
- const m = o[v];
3012
- m.data.transition = s, m.data.pos = m.elm.getBoundingClientRect(), n[m.key] ? l.push(m) : u.push(m);
3013
- }
3014
- this.kept = e(t, null, l), this.removed = u;
3015
- }
3016
- return e(t, null, i);
3017
- }, updated() {
3018
- const e = this.prevChildren, t = this.moveClass || (this.name || "v") + "-move";
3019
- e.length && this.hasMove(e[0].elm, t) && (e.forEach(oa), e.forEach(ra), e.forEach(ia), this._reflow = document.body.offsetHeight, e.forEach((n) => {
3020
- if (n.data.moved) {
3021
- const o = n.elm, r = o.style;
3022
- Pt(o, t), r.transform = r.WebkitTransform = r.transitionDuration = "", o.addEventListener(_n, o._moveCb = function i(s) {
3023
- s && s.target !== o || s && !/transform$/.test(s.propertyName) || (o.removeEventListener(_n, i), o._moveCb = null, ft(o, t));
3024
- });
3025
- }
3026
- }));
3027
- }, methods: { hasMove(e, t) {
3028
- if (!jr)
3029
- return !1;
3030
- if (this._hasMove)
3031
- return this._hasMove;
3032
- const n = e.cloneNode();
3033
- e._transitionClasses && e._transitionClasses.forEach((r) => {
3034
- Pr(n, r);
3035
- }), Dr(n, t), n.style.display = "none", this.$el.appendChild(n);
3036
- const o = Nr(n);
3037
- return this.$el.removeChild(n), this._hasMove = o.hasTransform;
3038
- } } };
3039
- function oa(e) {
3040
- e.elm._moveCb && e.elm._moveCb(), e.elm._enterCb && e.elm._enterCb();
3041
- }
3042
- function ra(e) {
3043
- e.data.newPos = e.elm.getBoundingClientRect();
3044
- }
3045
- function ia(e) {
3046
- const t = e.data.pos, n = e.data.newPos, o = t.left - n.left, r = t.top - n.top;
3047
- if (o || r) {
3048
- e.data.moved = !0;
3049
- const i = e.elm.style;
3050
- i.transform = i.WebkitTransform = `translate(${o}px,${r}px)`, i.transitionDuration = "0s";
3051
- }
3052
- }
3053
- var sa = { Transition: ta, TransitionGroup: na };
3054
- return _e.config.mustUseProp = (e, t, n) => n === "value" && ws(e) && t !== "button" || n === "selected" && e === "option" || n === "checked" && e === "input" || n === "muted" && e === "video", _e.config.isReservedTag = vr, _e.config.isReservedAttr = xs, _e.config.getTagNamespace = function(e) {
3055
- return no(e) ? "svg" : e === "math" ? "math" : void 0;
3056
- }, _e.config.isUnknownElement = function(e) {
3057
- if (!Se)
3058
- return !0;
3059
- if (vr(e))
3060
- return !1;
3061
- if (e = e.toLowerCase(), mn[e] != null)
3062
- return mn[e];
3063
- const t = document.createElement(e);
3064
- return e.indexOf("-") > -1 ? mn[e] = t.constructor === window.HTMLUnknownElement || t.constructor === window.HTMLElement : mn[e] = /HTMLUnknownElement/.test(t.toString());
3065
- }, M(_e.options.directives, Zs), M(_e.options.components, sa), _e.prototype.__patch__ = Se ? Ys : f, _e.prototype.$mount = function(e, t) {
3066
- return function(n, o, r) {
3067
- let i;
3068
- n.$el = o, n.$options.render || (n.$options.render = rt), et(n, "beforeMount"), i = () => {
3069
- n._update(n._render(), r);
3070
- }, new Ut(n, i, f, { before() {
3071
- n._isMounted && !n._isDestroyed && et(n, "beforeUpdate");
3072
- } }, !0), r = !1;
3073
- const s = n._preWatchers;
3074
- if (s)
3075
- for (let l = 0; l < s.length; l++)
3076
- s[l].run();
3077
- return n.$vnode == null && (n._isMounted = !0, et(n, "mounted")), n;
3078
- }(this, e = e && Se ? function(n) {
3079
- return typeof n == "string" ? document.querySelector(n) || document.createElement("div") : n;
3080
- }(e) : void 0, t);
3081
- }, Se && setTimeout(() => {
3082
- }, 0), M(_e, is), go.exports = _e, go.exports;
3083
- }
3084
- var ii;
3085
- function Na() {
3086
- return ii || (ii = 1, vo.exports = Ma()), vo.exports;
3087
- }
3088
- /*!
3089
- * vue-virtual-scroll-list v2.3.4
3090
- * open source under the MIT license
3091
- * https://github.com/tangbc/vue-virtual-scroll-list#readme
3092
- */
3093
- (function(d, a) {
3094
- (function(p, c) {
3095
- d.exports = c(Na());
3096
- })(xn, function(p) {
3097
- p = p && Object.prototype.hasOwnProperty.call(p, "default") ? p.default : p;
3098
- function c(_, f) {
3099
- if (!(_ instanceof f))
3100
- throw new TypeError("Cannot call a class as a function");
3101
- }
3102
- function k(_, f) {
3103
- for (var h = 0; h < f.length; h++) {
3104
- var x = f[h];
3105
- x.enumerable = x.enumerable || !1, x.configurable = !0, "value" in x && (x.writable = !0), Object.defineProperty(_, x.key, x);
3106
- }
3107
- }
3108
- function R(_, f, h) {
3109
- return f && k(_.prototype, f), _;
3110
- }
3111
- function $(_, f, h) {
3112
- return f in _ ? Object.defineProperty(_, f, {
3113
- value: h,
3114
- enumerable: !0,
3115
- configurable: !0,
3116
- writable: !0
3117
- }) : _[f] = h, _;
3118
- }
3119
- function C(_, f) {
3120
- var h = Object.keys(_);
3121
- if (Object.getOwnPropertySymbols) {
3122
- var x = Object.getOwnPropertySymbols(_);
3123
- f && (x = x.filter(function(L) {
3124
- return Object.getOwnPropertyDescriptor(_, L).enumerable;
3125
- })), h.push.apply(h, x);
3126
- }
3127
- return h;
3128
- }
3129
- function F(_) {
3130
- for (var f = 1; f < arguments.length; f++) {
3131
- var h = arguments[f] != null ? arguments[f] : {};
3132
- f % 2 ? C(Object(h), !0).forEach(function(x) {
3133
- $(_, x, h[x]);
3134
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(_, Object.getOwnPropertyDescriptors(h)) : C(Object(h)).forEach(function(x) {
3135
- Object.defineProperty(_, x, Object.getOwnPropertyDescriptor(h, x));
3136
- });
3137
- }
3138
- return _;
3139
- }
3140
- function O(_) {
3141
- return W(_) || de(_) || Le(_) || V();
3142
- }
3143
- function W(_) {
3144
- if (Array.isArray(_))
3145
- return Y(_);
3146
- }
3147
- function de(_) {
3148
- if (typeof Symbol < "u" && Symbol.iterator in Object(_))
3149
- return Array.from(_);
3150
- }
3151
- function Le(_, f) {
3152
- if (_) {
3153
- if (typeof _ == "string")
3154
- return Y(_, f);
3155
- var h = Object.prototype.toString.call(_).slice(8, -1);
3156
- if (h === "Object" && _.constructor && (h = _.constructor.name), h === "Map" || h === "Set")
3157
- return Array.from(h);
3158
- if (h === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h))
3159
- return Y(_, f);
3160
- }
3161
- }
3162
- function Y(_, f) {
3163
- (f == null || f > _.length) && (f = _.length);
3164
- for (var h = 0, x = new Array(f); h < f; h++)
3165
- x[h] = _[h];
3166
- return x;
3167
- }
3168
- function V() {
3169
- throw new TypeError(`Invalid attempt to spread non-iterable instance.
3170
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
3171
- }
3172
- var ve = {
3173
- FRONT: "FRONT",
3174
- // scroll up or left
3175
- BEHIND: "BEHIND"
3176
- // scroll down or right
3177
- }, le = {
3178
- INIT: "INIT",
3179
- FIXED: "FIXED",
3180
- DYNAMIC: "DYNAMIC"
3181
- }, Re = 0, H = /* @__PURE__ */ function() {
3182
- function _(f, h) {
3183
- c(this, _), this.init(f, h);
3184
- }
3185
- return R(_, [{
3186
- key: "init",
3187
- value: function(h, x) {
3188
- this.param = h, this.callUpdate = x, this.sizes = /* @__PURE__ */ new Map(), this.firstRangeTotalSize = 0, this.firstRangeAverageSize = 0, this.lastCalcIndex = 0, this.fixedSizeValue = 0, this.calcType = le.INIT, this.offset = 0, this.direction = "", this.range = /* @__PURE__ */ Object.create(null), h && this.checkRange(0, h.keeps - 1);
3189
- }
3190
- }, {
3191
- key: "destroy",
3192
- value: function() {
3193
- this.init(null, null);
3194
- }
3195
- // return current render range
3196
- }, {
3197
- key: "getRange",
3198
- value: function() {
3199
- var h = /* @__PURE__ */ Object.create(null);
3200
- return h.start = this.range.start, h.end = this.range.end, h.padFront = this.range.padFront, h.padBehind = this.range.padBehind, h;
3201
- }
3202
- }, {
3203
- key: "isBehind",
3204
- value: function() {
3205
- return this.direction === ve.BEHIND;
3206
- }
3207
- }, {
3208
- key: "isFront",
3209
- value: function() {
3210
- return this.direction === ve.FRONT;
3211
- }
3212
- // return start index offset
3213
- }, {
3214
- key: "getOffset",
3215
- value: function(h) {
3216
- return (h < 1 ? 0 : this.getIndexOffset(h)) + this.param.slotHeaderSize;
3217
- }
3218
- }, {
3219
- key: "updateParam",
3220
- value: function(h, x) {
3221
- var L = this;
3222
- this.param && h in this.param && (h === "uniqueIds" && this.sizes.forEach(function(re, he) {
3223
- x.includes(he) || L.sizes.delete(he);
3224
- }), this.param[h] = x);
3225
- }
3226
- // save each size map by id
3227
- }, {
3228
- key: "saveSize",
3229
- value: function(h, x) {
3230
- this.sizes.set(h, x), this.calcType === le.INIT ? (this.fixedSizeValue = x, this.calcType = le.FIXED) : this.calcType === le.FIXED && this.fixedSizeValue !== x && (this.calcType = le.DYNAMIC, delete this.fixedSizeValue), this.calcType !== le.FIXED && typeof this.firstRangeTotalSize < "u" && (this.sizes.size < Math.min(this.param.keeps, this.param.uniqueIds.length) ? (this.firstRangeTotalSize = O(this.sizes.values()).reduce(function(L, re) {
3231
- return L + re;
3232
- }, 0), this.firstRangeAverageSize = Math.round(this.firstRangeTotalSize / this.sizes.size)) : delete this.firstRangeTotalSize);
3233
- }
3234
- // in some special situation (e.g. length change) we need to update in a row
3235
- // try goiong to render next range by a leading buffer according to current direction
3236
- }, {
3237
- key: "handleDataSourcesChange",
3238
- value: function() {
3239
- var h = this.range.start;
3240
- this.isFront() ? h = h - Re : this.isBehind() && (h = h + Re), h = Math.max(h, 0), this.updateRange(this.range.start, this.getEndByStart(h));
3241
- }
3242
- // when slot size change, we also need force update
3243
- }, {
3244
- key: "handleSlotSizeChange",
3245
- value: function() {
3246
- this.handleDataSourcesChange();
3247
- }
3248
- // calculating range on scroll
3249
- }, {
3250
- key: "handleScroll",
3251
- value: function(h) {
3252
- this.direction = h < this.offset ? ve.FRONT : ve.BEHIND, this.offset = h, this.param && (this.direction === ve.FRONT ? this.handleFront() : this.direction === ve.BEHIND && this.handleBehind());
3253
- }
3254
- // ----------- public method end -----------
3255
- }, {
3256
- key: "handleFront",
3257
- value: function() {
3258
- var h = this.getScrollOvers();
3259
- if (!(h > this.range.start)) {
3260
- var x = Math.max(h - this.param.buffer, 0);
3261
- this.checkRange(x, this.getEndByStart(x));
3262
- }
3263
- }
3264
- }, {
3265
- key: "handleBehind",
3266
- value: function() {
3267
- var h = this.getScrollOvers();
3268
- h < this.range.start + this.param.buffer || this.checkRange(h, this.getEndByStart(h));
3269
- }
3270
- // return the pass overs according to current scroll offset
3271
- }, {
3272
- key: "getScrollOvers",
3273
- value: function() {
3274
- var h = this.offset - this.param.slotHeaderSize;
3275
- if (h <= 0)
3276
- return 0;
3277
- if (this.isFixedType())
3278
- return Math.floor(h / this.fixedSizeValue);
3279
- for (var x = 0, L = 0, re = 0, he = this.param.uniqueIds.length; x <= he; ) {
3280
- if (L = x + Math.floor((he - x) / 2), re = this.getIndexOffset(L), re === h)
3281
- return L;
3282
- re < h ? x = L + 1 : re > h && (he = L - 1);
3283
- }
3284
- return x > 0 ? --x : 0;
3285
- }
3286
- // return a scroll offset from given index, can efficiency be improved more here?
3287
- // although the call frequency is very high, its only a superposition of numbers
3288
- }, {
3289
- key: "getIndexOffset",
3290
- value: function(h) {
3291
- if (!h)
3292
- return 0;
3293
- for (var x = 0, L = 0, re = 0; re < h; re++)
3294
- L = this.sizes.get(this.param.uniqueIds[re]), x = x + (typeof L == "number" ? L : this.getEstimateSize());
3295
- return this.lastCalcIndex = Math.max(this.lastCalcIndex, h - 1), this.lastCalcIndex = Math.min(this.lastCalcIndex, this.getLastIndex()), x;
3296
- }
3297
- // is fixed size type
3298
- }, {
3299
- key: "isFixedType",
3300
- value: function() {
3301
- return this.calcType === le.FIXED;
3302
- }
3303
- // return the real last index
3304
- }, {
3305
- key: "getLastIndex",
3306
- value: function() {
3307
- return this.param.uniqueIds.length - 1;
3308
- }
3309
- // in some conditions range is broke, we need correct it
3310
- // and then decide whether need update to next range
3311
- }, {
3312
- key: "checkRange",
3313
- value: function(h, x) {
3314
- var L = this.param.keeps, re = this.param.uniqueIds.length;
3315
- re <= L ? (h = 0, x = this.getLastIndex()) : x - h < L - 1 && (h = x - L + 1), this.range.start !== h && this.updateRange(h, x);
3316
- }
3317
- // setting to a new range and rerender
3318
- }, {
3319
- key: "updateRange",
3320
- value: function(h, x) {
3321
- this.range.start = h, this.range.end = x, this.range.padFront = this.getPadFront(), this.range.padBehind = this.getPadBehind(), this.callUpdate(this.getRange());
3322
- }
3323
- // return end base on start
3324
- }, {
3325
- key: "getEndByStart",
3326
- value: function(h) {
3327
- var x = h + this.param.keeps - 1, L = Math.min(x, this.getLastIndex());
3328
- return L;
3329
- }
3330
- // return total front offset
3331
- }, {
3332
- key: "getPadFront",
3333
- value: function() {
3334
- return this.isFixedType() ? this.fixedSizeValue * this.range.start : this.getIndexOffset(this.range.start);
3335
- }
3336
- // return total behind offset
3337
- }, {
3338
- key: "getPadBehind",
3339
- value: function() {
3340
- var h = this.range.end, x = this.getLastIndex();
3341
- return this.isFixedType() ? (x - h) * this.fixedSizeValue : this.lastCalcIndex === x ? this.getIndexOffset(x) - this.getIndexOffset(h) : (x - h) * this.getEstimateSize();
3342
- }
3343
- // get the item estimate size
3344
- }, {
3345
- key: "getEstimateSize",
3346
- value: function() {
3347
- return this.isFixedType() ? this.fixedSizeValue : this.firstRangeAverageSize || this.param.estimateSize;
3348
- }
3349
- }]), _;
3350
- }(), Q = {
3351
- dataKey: {
3352
- type: [String, Function],
3353
- required: !0
3354
- },
3355
- dataSources: {
3356
- type: Array,
3357
- required: !0
3358
- },
3359
- dataComponent: {
3360
- type: [Object, Function],
3361
- required: !0
3362
- },
3363
- keeps: {
3364
- type: Number,
3365
- default: 30
3366
- },
3367
- extraProps: {
3368
- type: Object
3369
- },
3370
- estimateSize: {
3371
- type: Number,
3372
- default: 50
3373
- },
3374
- direction: {
3375
- type: String,
3376
- default: "vertical"
3377
- // the other value is horizontal
3378
- },
3379
- start: {
3380
- type: Number,
3381
- default: 0
3382
- },
3383
- offset: {
3384
- type: Number,
3385
- default: 0
3386
- },
3387
- topThreshold: {
3388
- type: Number,
3389
- default: 0
3390
- },
3391
- bottomThreshold: {
3392
- type: Number,
3393
- default: 0
3394
- },
3395
- pageMode: {
3396
- type: Boolean,
3397
- default: !1
3398
- },
3399
- rootTag: {
3400
- type: String,
3401
- default: "div"
3402
- },
3403
- wrapTag: {
3404
- type: String,
3405
- default: "div"
3406
- },
3407
- wrapClass: {
3408
- type: String,
3409
- default: ""
3410
- },
3411
- wrapStyle: {
3412
- type: Object
3413
- },
3414
- itemTag: {
3415
- type: String,
3416
- default: "div"
3417
- },
3418
- itemClass: {
3419
- type: String,
3420
- default: ""
3421
- },
3422
- itemClassAdd: {
3423
- type: Function
3424
- },
3425
- itemStyle: {
3426
- type: Object
3427
- },
3428
- headerTag: {
3429
- type: String,
3430
- default: "div"
3431
- },
3432
- headerClass: {
3433
- type: String,
3434
- default: ""
3435
- },
3436
- headerStyle: {
3437
- type: Object
3438
- },
3439
- footerTag: {
3440
- type: String,
3441
- default: "div"
3442
- },
3443
- footerClass: {
3444
- type: String,
3445
- default: ""
3446
- },
3447
- footerStyle: {
3448
- type: Object
3449
- },
3450
- itemScopedSlots: {
3451
- type: Object
3452
- }
3453
- }, z = {
3454
- index: {
3455
- type: Number
3456
- },
3457
- event: {
3458
- type: String
3459
- },
3460
- tag: {
3461
- type: String
3462
- },
3463
- horizontal: {
3464
- type: Boolean
3465
- },
3466
- source: {
3467
- type: Object
3468
- },
3469
- component: {
3470
- type: [Object, Function]
3471
- },
3472
- slotComponent: {
3473
- type: Function
3474
- },
3475
- uniqueKey: {
3476
- type: [String, Number]
3477
- },
3478
- extraProps: {
3479
- type: Object
3480
- },
3481
- scopedSlots: {
3482
- type: Object
3483
- }
3484
- }, b = {
3485
- event: {
3486
- type: String
3487
- },
3488
- uniqueKey: {
3489
- type: String
3490
- },
3491
- tag: {
3492
- type: String
3493
- },
3494
- horizontal: {
3495
- type: Boolean
3496
- }
3497
- }, ee = {
3498
- created: function() {
3499
- this.shapeKey = this.horizontal ? "offsetWidth" : "offsetHeight";
3500
- },
3501
- mounted: function() {
3502
- var f = this;
3503
- typeof ResizeObserver < "u" && (this.resizeObserver = new ResizeObserver(function() {
3504
- f.dispatchSizeChange();
3505
- }), this.resizeObserver.observe(this.$el));
3506
- },
3507
- // since componet will be reused, so disptach when updated
3508
- updated: function() {
3509
- this.dispatchSizeChange();
3510
- },
3511
- beforeDestroy: function() {
3512
- this.resizeObserver && (this.resizeObserver.disconnect(), this.resizeObserver = null);
3513
- },
3514
- methods: {
3515
- getCurrentSize: function() {
3516
- return this.$el ? this.$el[this.shapeKey] : 0;
3517
- },
3518
- // tell parent current size identify by unqiue key
3519
- dispatchSizeChange: function() {
3520
- this.$parent.$emit(this.event, this.uniqueKey, this.getCurrentSize(), this.hasInitial);
3521
- }
3522
- }
3523
- }, D = p.component("virtual-list-item", {
3524
- mixins: [ee],
3525
- props: z,
3526
- render: function(f) {
3527
- var h = this.tag, x = this.component, L = this.extraProps, re = L === void 0 ? {} : L, he = this.index, Ce = this.source, Fe = this.scopedSlots, tt = Fe === void 0 ? {} : Fe, Ie = this.uniqueKey, Ke = this.slotComponent, ie = F({}, re, {
3528
- source: Ce,
3529
- index: he
3530
- });
3531
- return f(h, {
3532
- key: Ie,
3533
- attrs: {
3534
- role: "listitem"
3535
- }
3536
- }, [Ke ? f("div", Ke({
3537
- item: Ce,
3538
- index: he,
3539
- scope: ie
3540
- })) : f(x, {
3541
- props: ie,
3542
- scopedSlots: tt
3543
- })]);
3544
- }
3545
- }), te = p.component("virtual-list-slot", {
3546
- mixins: [ee],
3547
- props: b,
3548
- render: function(f) {
3549
- var h = this.tag, x = this.uniqueKey;
3550
- return f(h, {
3551
- key: x,
3552
- attrs: {
3553
- role: x
3554
- }
3555
- }, this.$slots.default);
3556
- }
3557
- }), ge = {
3558
- ITEM: "item_resize",
3559
- SLOT: "slot_resize"
3560
- }, K = {
3561
- HEADER: "thead",
3562
- // string value also use for aria role attribute
3563
- FOOTER: "tfoot"
3564
- }, M = p.component("virtual-list", {
3565
- props: Q,
3566
- data: function() {
3567
- return {
3568
- range: null
3569
- };
3570
- },
3571
- watch: {
3572
- "dataSources.length": function() {
3573
- this.virtual.updateParam("uniqueIds", this.getUniqueIdFromDataSources()), this.virtual.handleDataSourcesChange();
3574
- },
3575
- keeps: function(f) {
3576
- this.virtual.updateParam("keeps", f), this.virtual.handleSlotSizeChange();
3577
- },
3578
- start: function(f) {
3579
- this.scrollToIndex(f);
3580
- },
3581
- offset: function(f) {
3582
- this.scrollToOffset(f);
3583
- }
3584
- },
3585
- created: function() {
3586
- this.isHorizontal = this.direction === "horizontal", this.directionKey = this.isHorizontal ? "scrollLeft" : "scrollTop", this.installVirtual(), this.$on(ge.ITEM, this.onItemResized), (this.$slots.header || this.$slots.footer) && this.$on(ge.SLOT, this.onSlotResized);
3587
- },
3588
- activated: function() {
3589
- this.scrollToOffset(this.virtual.offset), this.pageMode && document.addEventListener("scroll", this.onScroll, {
3590
- passive: !1
3591
- });
3592
- },
3593
- deactivated: function() {
3594
- this.pageMode && document.removeEventListener("scroll", this.onScroll);
3595
- },
3596
- mounted: function() {
3597
- this.start ? this.scrollToIndex(this.start) : this.offset && this.scrollToOffset(this.offset), this.pageMode && (this.updatePageModeFront(), document.addEventListener("scroll", this.onScroll, {
3598
- passive: !1
3599
- }));
3600
- },
3601
- beforeDestroy: function() {
3602
- this.virtual.destroy(), this.pageMode && document.removeEventListener("scroll", this.onScroll);
3603
- },
3604
- methods: {
3605
- // get item size by id
3606
- getSize: function(f) {
3607
- return this.virtual.sizes.get(f);
3608
- },
3609
- // get the total number of stored (rendered) items
3610
- getSizes: function() {
3611
- return this.virtual.sizes.size;
3612
- },
3613
- // return current scroll offset
3614
- getOffset: function() {
3615
- if (this.pageMode)
3616
- return document.documentElement[this.directionKey] || document.body[this.directionKey];
3617
- var f = this.$refs.root;
3618
- return f ? Math.ceil(f[this.directionKey]) : 0;
3619
- },
3620
- // return client viewport size
3621
- getClientSize: function() {
3622
- var f = this.isHorizontal ? "clientWidth" : "clientHeight";
3623
- if (this.pageMode)
3624
- return document.documentElement[f] || document.body[f];
3625
- var h = this.$refs.root;
3626
- return h ? Math.ceil(h[f]) : 0;
3627
- },
3628
- // return all scroll size
3629
- getScrollSize: function() {
3630
- var f = this.isHorizontal ? "scrollWidth" : "scrollHeight";
3631
- if (this.pageMode)
3632
- return document.documentElement[f] || document.body[f];
3633
- var h = this.$refs.root;
3634
- return h ? Math.ceil(h[f]) : 0;
3635
- },
3636
- // set current scroll position to a expectant offset
3637
- scrollToOffset: function(f) {
3638
- if (this.pageMode)
3639
- document.body[this.directionKey] = f, document.documentElement[this.directionKey] = f;
3640
- else {
3641
- var h = this.$refs.root;
3642
- h && (h[this.directionKey] = f);
3643
- }
3644
- },
3645
- // set current scroll position to a expectant index
3646
- scrollToIndex: function(f) {
3647
- if (f >= this.dataSources.length - 1)
3648
- this.scrollToBottom();
3649
- else {
3650
- var h = this.virtual.getOffset(f);
3651
- this.scrollToOffset(h);
3652
- }
3653
- },
3654
- // set current scroll position to bottom
3655
- scrollToBottom: function() {
3656
- var f = this, h = this.$refs.shepherd;
3657
- if (h) {
3658
- var x = h[this.isHorizontal ? "offsetLeft" : "offsetTop"];
3659
- this.scrollToOffset(x), setTimeout(function() {
3660
- f.getOffset() + f.getClientSize() + 1 < f.getScrollSize() && f.scrollToBottom();
3661
- }, 3);
3662
- }
3663
- },
3664
- // when using page mode we need update slot header size manually
3665
- // taking root offset relative to the browser as slot header size
3666
- updatePageModeFront: function() {
3667
- var f = this.$refs.root;
3668
- if (f) {
3669
- var h = f.getBoundingClientRect(), x = f.ownerDocument.defaultView, L = this.isHorizontal ? h.left + x.pageXOffset : h.top + x.pageYOffset;
3670
- this.virtual.updateParam("slotHeaderSize", L);
3671
- }
3672
- },
3673
- // reset all state back to initial
3674
- reset: function() {
3675
- this.virtual.destroy(), this.scrollToOffset(0), this.installVirtual();
3676
- },
3677
- // ----------- public method end -----------
3678
- installVirtual: function() {
3679
- this.virtual = new H({
3680
- slotHeaderSize: 0,
3681
- slotFooterSize: 0,
3682
- keeps: this.keeps,
3683
- estimateSize: this.estimateSize,
3684
- buffer: Math.round(this.keeps / 3),
3685
- // recommend for a third of keeps
3686
- uniqueIds: this.getUniqueIdFromDataSources()
3687
- }, this.onRangeChanged), this.range = this.virtual.getRange();
3688
- },
3689
- getUniqueIdFromDataSources: function() {
3690
- var f = this.dataKey;
3691
- return this.dataSources.map(function(h) {
3692
- return typeof f == "function" ? f(h) : h[f];
3693
- });
3694
- },
3695
- // event called when each item mounted or size changed
3696
- onItemResized: function(f, h) {
3697
- this.virtual.saveSize(f, h), this.$emit("resized", f, h);
3698
- },
3699
- // event called when slot mounted or size changed
3700
- onSlotResized: function(f, h, x) {
3701
- f === K.HEADER ? this.virtual.updateParam("slotHeaderSize", h) : f === K.FOOTER && this.virtual.updateParam("slotFooterSize", h), x && this.virtual.handleSlotSizeChange();
3702
- },
3703
- // here is the rerendering entry
3704
- onRangeChanged: function(f) {
3705
- this.range = f;
3706
- },
3707
- onScroll: function(f) {
3708
- var h = this.getOffset(), x = this.getClientSize(), L = this.getScrollSize();
3709
- h < 0 || h + x > L + 1 || !L || (this.virtual.handleScroll(h), this.emitEvent(h, x, L, f));
3710
- },
3711
- // emit event in special position
3712
- emitEvent: function(f, h, x, L) {
3713
- this.$emit("scroll", L, this.virtual.getRange()), this.virtual.isFront() && this.dataSources.length && f - this.topThreshold <= 0 ? this.$emit("totop") : this.virtual.isBehind() && f + h + this.bottomThreshold >= x && this.$emit("tobottom");
3714
- },
3715
- // get the real render slots based on range data
3716
- // in-place patch strategy will try to reuse components as possible
3717
- // so those components that are reused will not trigger lifecycle mounted
3718
- getRenderSlots: function(f) {
3719
- for (var h = [], x = this.range, L = x.start, re = x.end, he = this.dataSources, Ce = this.dataKey, Fe = this.itemClass, tt = this.itemTag, Ie = this.itemStyle, Ke = this.isHorizontal, ie = this.extraProps, mt = this.dataComponent, $t = this.itemScopedSlots, Se = this.$scopedSlots && this.$scopedSlots.item, me = L; me <= re; me++) {
3720
- var E = he[me];
3721
- if (E) {
3722
- var B = typeof Ce == "function" ? Ce(E) : E[Ce];
3723
- typeof B == "string" || typeof B == "number" ? h.push(f(D, {
3724
- props: {
3725
- index: me,
3726
- tag: tt,
3727
- event: ge.ITEM,
3728
- horizontal: Ke,
3729
- uniqueKey: B,
3730
- source: E,
3731
- extraProps: ie,
3732
- component: mt,
3733
- slotComponent: Se,
3734
- scopedSlots: $t
3735
- },
3736
- style: Ie,
3737
- class: "".concat(Fe).concat(this.itemClassAdd ? " " + this.itemClassAdd(me) : "")
3738
- })) : console.warn("Cannot get the data-key '".concat(Ce, "' from data-sources."));
3739
- } else
3740
- console.warn("Cannot get the index '".concat(me, "' from data-sources."));
3741
- }
3742
- return h;
3743
- }
3744
- },
3745
- // render function, a closer-to-the-compiler alternative to templates
3746
- // https://vuejs.org/v2/guide/render-function.html#The-Data-Object-In-Depth
3747
- render: function(f) {
3748
- var h = this.$slots, x = h.header, L = h.footer, re = this.range, he = re.padFront, Ce = re.padBehind, Fe = this.isHorizontal, tt = this.pageMode, Ie = this.rootTag, Ke = this.wrapTag, ie = this.wrapClass, mt = this.wrapStyle, $t = this.headerTag, Se = this.headerClass, me = this.headerStyle, E = this.footerTag, B = this.footerClass, se = this.footerStyle, Me = {
3749
- padding: Fe ? "0px ".concat(Ce, "px 0px ").concat(he, "px") : "".concat(he, "px 0px ").concat(Ce, "px")
3750
- }, Ge = mt ? Object.assign({}, mt, Me) : Me;
3751
- return f(Ie, {
3752
- ref: "root",
3753
- on: {
3754
- "&scroll": !tt && this.onScroll
3755
- }
3756
- }, [
3757
- // header slot
3758
- x ? f(te, {
3759
- class: Se,
3760
- style: me,
3761
- props: {
3762
- tag: $t,
3763
- event: ge.SLOT,
3764
- uniqueKey: K.HEADER
3765
- }
3766
- }, x) : null,
3767
- // main list
3768
- f(Ke, {
3769
- class: ie,
3770
- attrs: {
3771
- role: "group"
3772
- },
3773
- style: Ge
3774
- }, this.getRenderSlots(f)),
3775
- // footer slot
3776
- L ? f(te, {
3777
- class: B,
3778
- style: se,
3779
- props: {
3780
- tag: E,
3781
- event: ge.SLOT,
3782
- uniqueKey: K.FOOTER
3783
- }
3784
- }, L) : null,
3785
- // an empty element use to scroll to bottom
3786
- f("div", {
3787
- ref: "shepherd",
3788
- style: {
3789
- width: Fe ? "0px" : "100%",
3790
- height: Fe ? "100%" : "0px"
3791
- }
3792
- })
3793
- ]);
3794
- }
3795
- });
3796
- return M;
3797
- });
3798
- })(bi);
3799
- var Ba = bi.exports;
3800
- const Ha = /* @__PURE__ */ fi(Ba), Wa = /* @__PURE__ */ _o({
3801
- __name: "VirtualFontsList",
3802
- props: {
3803
- items: null
3804
- },
3805
- setup(d) {
3806
- const a = fa(), p = ti(() => a.style), c = ti(() => ({
3807
- "overflow-y": "auto",
3808
- height: "250px",
3809
- ...p
3810
- }));
3811
- return { __sfc: !0, attrs: a, staticStyle: p, listStyle: c, VirtualList: Ha, FontDropdownItem: yi };
3812
- }
3813
- });
3814
- var Va = function() {
3815
- var a = this, p = a._self._c, c = a._self._setupProxy;
3816
- return p("div", [p(c.VirtualList, a._g(a._b({ style: c.listStyle, attrs: { "data-key": "family", "data-sources": a.items, "data-component": c.FontDropdownItem, "estimate-size": 37 }, scopedSlots: a._u([a.$slots.footer ? { key: "footer", fn: function() {
3817
- return [a._t("footer")];
3818
- }, proxy: !0 } : null], null, !0) }, "VirtualList", a.$attrs, !1), a.$listeners))], 1);
3819
- }, qa = [], Ua = /* @__PURE__ */ ht(
3820
- Wa,
3821
- Va,
3822
- qa,
3823
- !1,
3824
- null,
3825
- null
3826
- );
3827
- const Ka = Ua.exports, Ga = {
3828
- name: "FontPickerDropdown",
3829
- components: {
3830
- CInput: pa,
3831
- CDropdown: va,
3832
- VirtualFontsList: Ka
3833
- },
3834
- props: {
3835
- value: {
3836
- type: Object,
3837
- default: null
3838
- },
3839
- height: {
3840
- type: String,
3841
- default: "250px"
3842
- }
3843
- },
3844
- data() {
3845
- return {
3846
- FontDropdownItem: yi,
3847
- visualQuery: "",
3848
- // string visual to user
3849
- activeQuery: ""
3850
- // query used for filtering results, hidden behind debounce
3851
- };
3852
- },
3853
- computed: {
3854
- selectedValue: {
3855
- get() {
3856
- return {
3857
- family: "Inter",
3858
- weight: "400",
3859
- ...this.value
3860
- };
3861
- },
3862
- set(d) {
3863
- const { family: a, variants: p = [] } = d || {};
3864
- let { weight: c = "400" } = this.value || {};
3865
- const k = _i(p), R = k.map(($) => $.value);
3866
- R.length && !R.includes(`${c}`) && (c = R.reduce(
3867
- ($, C) => Math.abs(C - c) < Math.abs($ - c) ? C : $
3868
- )), this.$emit("input", {
3869
- family: a,
3870
- weight: c,
3871
- options: k
3872
- });
3873
- }
3874
- },
3875
- fontsList() {
3876
- const d = je.list || [];
3877
- if (this.activeQuery) {
3878
- const a = new RegExp(this.activeQuery, "i");
3879
- return d.filter((p) => a.test(p.family));
3880
- }
3881
- return d;
3882
- }
3883
- },
3884
- watch: {
3885
- visualQuery: ga(function(a) {
3886
- this.activeQuery = a;
3887
- }, 300)
3888
- },
3889
- created() {
3890
- je.load();
3891
- }
3892
- };
3893
- var Ya = function() {
3894
- var a = this, p = a._self._c;
3895
- return p("CDropdown", a._b({ ref: "dropdown", staticClass: "control", attrs: { size: a.$attrs.size, disabled: a.$attrs.disabled, "menu-styling": {
3896
- minWidth: "250px",
3897
- maxWidth: "300px"
3898
- }, "max-height": a.height, scrollable: !0 }, scopedSlots: a._u([{ key: "trigger", fn: function() {
3899
- return [a._t("default", function() {
3900
- return [p("CButton", { staticClass: "is-left", staticStyle: { width: "100%", "text-align": "left", "min-width": "7em" }, style: { fontFamily: a.selectedValue.family } }, [a._v(" " + a._s(a.selectedValue.family) + " ")])];
3901
- }, { selectedFamily: a.selectedValue.family })];
3902
- }, proxy: !0 }, { key: "header", fn: function() {
3903
- return [p("CInput", { staticStyle: { "margin-bottom": "0.25em" }, attrs: { placeholder: a.$t("_common:search"), filled: "" }, model: { value: a.visualQuery, callback: function(c) {
3904
- a.visualQuery = c;
3905
- }, expression: "visualQuery" } })];
3906
- }, proxy: !0 }], null, !0), model: { value: a.selectedValue, callback: function(c) {
3907
- a.selectedValue = c;
3908
- }, expression: "selectedValue" } }, "CDropdown", {
3909
- position: "is-bottom-left",
3910
- ...a.$attrs,
3911
- ...a.$props
3912
- }, !1), [a.fontsList.length ? p("VirtualFontsList", { staticStyle: { height: "250px" }, attrs: { items: a.fontsList } }) : p("div", { staticStyle: { height: "250px", display: "flex", "justify-content": "center", "align-items": "center" }, style: { height: a.height } }, [a._v(" " + a._s(a.$t("_common:noResults")) + " ")])], 1);
3913
- }, Qa = [], Xa = /* @__PURE__ */ ht(
3914
- Ga,
3915
- Ya,
3916
- Qa,
3917
- !1,
3918
- null,
3919
- "b08d841b"
3920
- );
3921
- const Zc = Xa.exports;
3922
- function Za({
3923
- minWidthPx: d,
3924
- maxWidthPx: a,
3925
- minFontSize: p,
3926
- maxFontSize: c
3927
- }) {
3928
- const k = d, R = a, $ = (c - p) / (R - k), C = -k * $ + p, F = (O) => Math.round(O * 1e3) / 1e3;
3929
- return `clamp(${F(p)}px, ${F(
3930
- C
3931
- )}px + calc(${F($) * 100} * var(--vw, 1vw)), ${F(
3932
- c
3933
- )}px)`;
3934
- }
3935
- function Ja({ size: d }) {
3936
- let a = d * 0.9;
3937
- return d > 30 && (a = d * 0.8), d > 40 && (a = d * 0.725), d > 50 && (a = d * 0.675), Za({
3938
- minWidthPx: 375,
3939
- maxWidthPx: 1200,
3940
- minFontSize: a,
3941
- maxFontSize: d
3942
- });
3943
- }
3944
- const ec = ({ json: d, prefix: a = "" } = {}) => Object.keys(d || {}).map((p) => {
3945
- const c = d[p], R = Object.keys(c).map(($) => {
3946
- const C = $.startsWith("--") ? $ : $.split(/(?=[A-Z])/).join("-").toLowerCase(), F = c[$];
3947
- let O = `${C}:${F}`;
3948
- return C === "font-size" && (O += `; font-size: ${Ja({
3949
- size: parseInt(F, 10)
3950
- })}`), O;
3951
- }).join(";");
3952
- return `${a}${p}{${R}}`;
3953
- }).join(`
3954
- `), tc = {
3955
- name: "DynamicStyle",
3956
- props: {
3957
- json: {
3958
- type: Object,
3959
- default: null
3960
- },
3961
- prefix: {
3962
- type: String,
3963
- default: ""
3964
- }
3965
- },
3966
- created() {
3967
- gi(this.json);
3968
- },
3969
- methods: {
3970
- jsonToCss: ec
3971
- }
3972
- };
3973
- var nc = function() {
3974
- var a = this, p = a._self._c;
3975
- return a.json ? p("style", { tag: "component" }, [a._v(" " + a._s(a.jsonToCss({ json: a.json, prefix: a.prefix })) + " ")]) : a._e();
3976
- }, oc = [], rc = /* @__PURE__ */ ht(
3977
- tc,
3978
- nc,
3979
- oc,
3980
- !1,
3981
- null,
3982
- null
3983
- );
3984
- const ic = rc.exports, sc = {
3985
- name: "DocumentStyleContainer",
3986
- components: {
3987
- DynamicStyle: ic
3988
- },
3989
- props: {
3990
- inputStyle: {
3991
- type: Object,
3992
- default: null
3993
- }
3994
- },
3995
- computed: {
3996
- docBaseClass() {
3997
- return `document-base-style-${this._uid}`;
3998
- },
3999
- docLegacyClasses() {
4000
- const d = {
4001
- '[data-typography="title"]': "title",
4002
- h1: "h1",
4003
- h2: "h2",
4004
- h3: "h3",
4005
- p: "p",
4006
- blockquote: "blockquote",
4007
- ".chapter": "section"
4008
- };
4009
- return Object.keys(d).filter((a) => !(this.inputStyle || {})[a]).map((a) => `document-legacy-style-${d[a]}`);
4010
- },
4011
- legacyHeadingColorResolver() {
4012
- var d, a;
4013
- return ((a = (d = this.inputStyle) == null ? void 0 : d[".chapter"]) == null ? void 0 : a["--accentColor"]) || ha(this, "_document.theme.headingColor");
4014
- }
4015
- }
4016
- };
4017
- var ac = function() {
4018
- var a = this, p = a._self._c;
4019
- return p("div", { class: [...a.docLegacyClasses, a.docBaseClass] }, [p("style", { tag: "component" }, [a._v(" .primary-text-color { color: " + a._s(a.legacyHeadingColorResolver) + " !important } .primary-background-color, quill-format ul li::before { background-color: " + a._s(a.legacyHeadingColorResolver) + " !important } .primary-box-shadow-left-color { box-shadow: inset 4px 0 " + a._s(a.legacyHeadingColorResolver) + " !important } .primary-border-left-color { border-left-color: " + a._s(a.legacyHeadingColorResolver) + " !important } .primary-pseudo-background::after { background-color: " + a._s(a.legacyHeadingColorResolver) + " !important } .primary-svg-fill { fill: " + a._s(a.legacyHeadingColorResolver) + " !important } .primary-light-background { background-color: hsla(0, 0%, 0%, 0.05) !important} .primary-light-box-shadow-left-color { box-shadow: inset 4px 0 " + a._s(a.legacyHeadingColorResolver ? a.legacyHeadingColorResolver.replace(/[^,]+(?=\))/, "0.08") : "") + " !important} .quill-format ul li::before { background-color: " + a._s(a.legacyHeadingColorResolver) + " !important } ")]), p("DynamicStyle", { attrs: { json: a.inputStyle, prefix: `.${a.docBaseClass}.${a.docBaseClass}.${a.docBaseClass} ` } }), a._t("default")], 2);
4020
- }, cc = [], lc = /* @__PURE__ */ ht(
4021
- sc,
4022
- ac,
4023
- cc,
4024
- !1,
4025
- null,
4026
- null
4027
- );
4028
- const uc = lc.exports;
4029
- var Si = { exports: {} }, dc = Si.exports = {};
4030
- dc.forEach = function(d, a) {
4031
- for (var p = 0; p < d.length; p++) {
4032
- var c = a(d[p]);
4033
- if (c)
4034
- return c;
4035
- }
4036
- };
4037
- var xi = Si.exports, fc = function(d) {
4038
- var a = d.stateHandler.getState;
4039
- function p($) {
4040
- var C = a($);
4041
- return C && !!C.isDetectable;
4042
- }
4043
- function c($) {
4044
- a($).isDetectable = !0;
4045
- }
4046
- function k($) {
4047
- return !!a($).busy;
4048
- }
4049
- function R($, C) {
4050
- a($).busy = !!C;
4051
- }
4052
- return {
4053
- isDetectable: p,
4054
- markAsDetectable: c,
4055
- isBusy: k,
4056
- markBusy: R
4057
- };
4058
- }, pc = function(d) {
4059
- var a = {};
4060
- function p($) {
4061
- var C = d.get($);
4062
- return C === void 0 ? [] : a[C] || [];
4063
- }
4064
- function c($, C) {
4065
- var F = d.get($);
4066
- a[F] || (a[F] = []), a[F].push(C);
4067
- }
4068
- function k($, C) {
4069
- for (var F = p($), O = 0, W = F.length; O < W; ++O)
4070
- if (F[O] === C) {
4071
- F.splice(O, 1);
4072
- break;
4073
- }
4074
- }
4075
- function R($) {
4076
- var C = p($);
4077
- C && (C.length = 0);
4078
- }
4079
- return {
4080
- get: p,
4081
- add: c,
4082
- removeListener: k,
4083
- removeAllListeners: R
4084
- };
4085
- }, hc = function() {
4086
- var d = 1;
4087
- function a() {
4088
- return d++;
4089
- }
4090
- return {
4091
- generate: a
4092
- };
4093
- }, mc = function(d) {
4094
- var a = d.idGenerator, p = d.stateHandler.getState;
4095
- function c(R) {
4096
- var $ = p(R);
4097
- return $ && $.id !== void 0 ? $.id : null;
4098
- }
4099
- function k(R) {
4100
- var $ = p(R);
4101
- if (!$)
4102
- throw new Error("setId required the element to have a resize detection state.");
4103
- var C = a.generate();
4104
- return $.id = C, C;
4105
- }
4106
- return {
4107
- get: c,
4108
- set: k
4109
- };
4110
- }, vc = function(d) {
4111
- function a() {
4112
- }
4113
- var p = {
4114
- log: a,
4115
- warn: a,
4116
- error: a
4117
- };
4118
- if (!d && window.console) {
4119
- var c = function(k, R) {
4120
- k[R] = function() {
4121
- var C = console[R];
4122
- if (C.apply)
4123
- C.apply(console, arguments);
4124
- else
4125
- for (var F = 0; F < arguments.length; F++)
4126
- C(arguments[F]);
4127
- };
4128
- };
4129
- c(p, "log"), c(p, "warn"), c(p, "error");
4130
- }
4131
- return p;
4132
- }, wi = { exports: {} }, Ci = wi.exports = {};
4133
- Ci.isIE = function(d) {
4134
- function a() {
4135
- var c = navigator.userAgent.toLowerCase();
4136
- return c.indexOf("msie") !== -1 || c.indexOf("trident") !== -1 || c.indexOf(" edge/") !== -1;
4137
- }
4138
- if (!a())
4139
- return !1;
4140
- if (!d)
4141
- return !0;
4142
- var p = function() {
4143
- var c, k = 3, R = document.createElement("div"), $ = R.getElementsByTagName("i");
4144
- do
4145
- R.innerHTML = "<!--[if gt IE " + ++k + "]><i></i><![endif]-->";
4146
- while ($[0]);
4147
- return k > 4 ? k : c;
4148
- }();
4149
- return d === p;
4150
- };
4151
- Ci.isLegacyOpera = function() {
4152
- return !!window.opera;
4153
- };
4154
- var $i = wi.exports, ki = { exports: {} }, gc = ki.exports = {};
4155
- gc.getOption = yc;
4156
- function yc(d, a, p) {
4157
- var c = d[a];
4158
- return c == null && p !== void 0 ? p : c;
4159
- }
4160
- var _c = ki.exports, si = _c, bc = function(a) {
4161
- a = a || {};
4162
- var p = a.reporter, c = si.getOption(a, "async", !0), k = si.getOption(a, "auto", !0);
4163
- k && !c && (p && p.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."), c = !0);
4164
- var R = ai(), $, C = !1;
4165
- function F(V, ve) {
4166
- !C && k && c && R.size() === 0 && de(), R.add(V, ve);
4167
- }
4168
- function O() {
4169
- for (C = !0; R.size(); ) {
4170
- var V = R;
4171
- R = ai(), V.process();
4172
- }
4173
- C = !1;
4174
- }
4175
- function W(V) {
4176
- C || (V === void 0 && (V = c), $ && (Le($), $ = null), V ? de() : O());
4177
- }
4178
- function de() {
4179
- $ = Y(O);
4180
- }
4181
- function Le(V) {
4182
- var ve = clearTimeout;
4183
- return ve(V);
4184
- }
4185
- function Y(V) {
4186
- var ve = function(le) {
4187
- return setTimeout(le, 0);
4188
- };
4189
- return ve(V);
4190
- }
4191
- return {
4192
- add: F,
4193
- force: W
4194
- };
4195
- };
4196
- function ai() {
4197
- var d = {}, a = 0, p = 0, c = 0;
4198
- function k(C, F) {
4199
- F || (F = C, C = 0), C > p ? p = C : C < c && (c = C), d[C] || (d[C] = []), d[C].push(F), a++;
4200
- }
4201
- function R() {
4202
- for (var C = c; C <= p; C++)
4203
- for (var F = d[C], O = 0; O < F.length; O++) {
4204
- var W = F[O];
4205
- W();
4206
- }
4207
- }
4208
- function $() {
4209
- return a;
4210
- }
4211
- return {
4212
- add: k,
4213
- process: R,
4214
- size: $
4215
- };
4216
- }
4217
- var bo = "_erd";
4218
- function Sc(d) {
4219
- return d[bo] = {}, Oi(d);
4220
- }
4221
- function Oi(d) {
4222
- return d[bo];
4223
- }
4224
- function xc(d) {
4225
- delete d[bo];
4226
- }
4227
- var wc = {
4228
- initState: Sc,
4229
- getState: Oi,
4230
- cleanState: xc
4231
- }, Qt = $i, Cc = function(d) {
4232
- d = d || {};
4233
- var a = d.reporter, p = d.batchProcessor, c = d.stateHandler.getState;
4234
- if (!a)
4235
- throw new Error("Missing required dependency: reporter.");
4236
- function k(O, W) {
4237
- function de() {
4238
- W(O);
4239
- }
4240
- if (Qt.isIE(8))
4241
- c(O).object = {
4242
- proxy: de
4243
- }, O.attachEvent("onresize", de);
4244
- else {
4245
- var Le = C(O);
4246
- if (!Le)
4247
- throw new Error("Element is not detectable by this strategy.");
4248
- Le.contentDocument.defaultView.addEventListener("resize", de);
4249
- }
4250
- }
4251
- function R(O) {
4252
- var W = d.important ? " !important; " : "; ";
4253
- return (O.join(W) + W).trim();
4254
- }
4255
- function $(O, W, de) {
4256
- de || (de = W, W = O, O = null), O = O || {}, O.debug;
4257
- function Le(Y, V) {
4258
- var ve = R(["display: block", "position: absolute", "top: 0", "left: 0", "width: 100%", "height: 100%", "border: none", "padding: 0", "margin: 0", "opacity: 0", "z-index: -1000", "pointer-events: none"]), le = !1, Re = window.getComputedStyle(Y), H = Y.offsetWidth, Q = Y.offsetHeight;
4259
- c(Y).startSize = {
4260
- width: H,
4261
- height: Q
4262
- };
4263
- function z() {
4264
- function b() {
4265
- if (Re.position === "static") {
4266
- Y.style.setProperty("position", "relative", O.important ? "important" : "");
4267
- var te = function(ge, K, M, _) {
4268
- function f(x) {
4269
- return x.replace(/[^-\d\.]/g, "");
4270
- }
4271
- var h = M[_];
4272
- h !== "auto" && f(h) !== "0" && (ge.warn("An element that is positioned static has style." + _ + "=" + h + " which is ignored due to the static positioning. The element will need to be positioned relative, so the style." + _ + " will be set to 0. Element: ", K), K.style.setProperty(_, "0", O.important ? "important" : ""));
4273
- };
4274
- te(a, Y, Re, "top"), te(a, Y, Re, "right"), te(a, Y, Re, "bottom"), te(a, Y, Re, "left");
4275
- }
4276
- }
4277
- function ee() {
4278
- le || b();
4279
- function te(K, M) {
4280
- if (!K.contentDocument) {
4281
- var _ = c(K);
4282
- _.checkForObjectDocumentTimeoutId && window.clearTimeout(_.checkForObjectDocumentTimeoutId), _.checkForObjectDocumentTimeoutId = setTimeout(function() {
4283
- _.checkForObjectDocumentTimeoutId = 0, te(K, M);
4284
- }, 100);
4285
- return;
4286
- }
4287
- M(K.contentDocument);
4288
- }
4289
- var ge = this;
4290
- te(ge, function(M) {
4291
- V(Y);
4292
- });
4293
- }
4294
- Re.position !== "" && (b(), le = !0);
4295
- var D = document.createElement("object");
4296
- D.style.cssText = ve, D.tabIndex = -1, D.type = "text/html", D.setAttribute("aria-hidden", "true"), D.onload = ee, Qt.isIE() || (D.data = "about:blank"), c(Y) && (Y.appendChild(D), c(Y).object = D, Qt.isIE() && (D.data = "about:blank"));
4297
- }
4298
- p ? p.add(z) : z();
4299
- }
4300
- Qt.isIE(8) ? de(W) : Le(W, de);
4301
- }
4302
- function C(O) {
4303
- return c(O).object;
4304
- }
4305
- function F(O) {
4306
- if (c(O)) {
4307
- var W = C(O);
4308
- W && (Qt.isIE(8) ? O.detachEvent("onresize", W.proxy) : O.removeChild(W), c(O).checkForObjectDocumentTimeoutId && window.clearTimeout(c(O).checkForObjectDocumentTimeoutId), delete c(O).object);
4309
- }
4310
- }
4311
- return {
4312
- makeDetectable: $,
4313
- addListener: k,
4314
- uninstall: F
4315
- };
4316
- }, $c = xi.forEach, kc = function(d) {
4317
- d = d || {};
4318
- var a = d.reporter, p = d.batchProcessor, c = d.stateHandler.getState;
4319
- d.stateHandler.hasState;
4320
- var k = d.idHandler;
4321
- if (!p)
4322
- throw new Error("Missing required dependency: batchProcessor");
4323
- if (!a)
4324
- throw new Error("Missing required dependency: reporter.");
4325
- var R = W(), $ = "erd_scroll_detection_scrollbar_style", C = "erd_scroll_detection_container";
4326
- function F(z) {
4327
- de(z, $, C);
4328
- }
4329
- F(window.document);
4330
- function O(z) {
4331
- var b = d.important ? " !important; " : "; ";
4332
- return (z.join(b) + b).trim();
4333
- }
4334
- function W() {
4335
- var z = 500, b = 500, ee = document.createElement("div");
4336
- ee.style.cssText = O(["position: absolute", "width: " + z * 2 + "px", "height: " + b * 2 + "px", "visibility: hidden", "margin: 0", "padding: 0"]);
4337
- var D = document.createElement("div");
4338
- D.style.cssText = O(["position: absolute", "width: " + z + "px", "height: " + b + "px", "overflow: scroll", "visibility: none", "top: " + -z * 3 + "px", "left: " + -b * 3 + "px", "visibility: hidden", "margin: 0", "padding: 0"]), D.appendChild(ee), document.body.insertBefore(D, document.body.firstChild);
4339
- var te = z - D.clientWidth, ge = b - D.clientHeight;
4340
- return document.body.removeChild(D), {
4341
- width: te,
4342
- height: ge
4343
- };
4344
- }
4345
- function de(z, b, ee) {
4346
- function D(M, _) {
4347
- _ = _ || function(h) {
4348
- z.head.appendChild(h);
4349
- };
4350
- var f = z.createElement("style");
4351
- return f.innerHTML = M, f.id = b, _(f), f;
4352
- }
4353
- if (!z.getElementById(b)) {
4354
- var te = ee + "_animation", ge = ee + "_animation_active", K = `/* Created by the element-resize-detector library. */
4355
- `;
4356
- K += "." + ee + " > div::-webkit-scrollbar { " + O(["display: none"]) + ` }
4357
-
4358
- `, K += "." + ge + " { " + O(["-webkit-animation-duration: 0.1s", "animation-duration: 0.1s", "-webkit-animation-name: " + te, "animation-name: " + te]) + ` }
4359
- `, K += "@-webkit-keyframes " + te + ` { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }
4360
- `, K += "@keyframes " + te + " { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }", D(K);
4361
- }
4362
- }
4363
- function Le(z) {
4364
- z.className += " " + C + "_animation_active";
4365
- }
4366
- function Y(z, b, ee) {
4367
- if (z.addEventListener)
4368
- z.addEventListener(b, ee);
4369
- else if (z.attachEvent)
4370
- z.attachEvent("on" + b, ee);
4371
- else
4372
- return a.error("[scroll] Don't know how to add event listeners.");
4373
- }
4374
- function V(z, b, ee) {
4375
- if (z.removeEventListener)
4376
- z.removeEventListener(b, ee);
4377
- else if (z.detachEvent)
4378
- z.detachEvent("on" + b, ee);
4379
- else
4380
- return a.error("[scroll] Don't know how to remove event listeners.");
4381
- }
4382
- function ve(z) {
4383
- return c(z).container.childNodes[0].childNodes[0].childNodes[0];
4384
- }
4385
- function le(z) {
4386
- return c(z).container.childNodes[0].childNodes[0].childNodes[1];
4387
- }
4388
- function Re(z, b) {
4389
- var ee = c(z).listeners;
4390
- if (!ee.push)
4391
- throw new Error("Cannot add listener to an element that is not detectable.");
4392
- c(z).listeners.push(b);
4393
- }
4394
- function H(z, b, ee) {
4395
- ee || (ee = b, b = z, z = null), z = z || {};
4396
- function D() {
4397
- if (z.debug) {
4398
- var E = Array.prototype.slice.call(arguments);
4399
- if (E.unshift(k.get(b), "Scroll: "), a.log.apply)
4400
- a.log.apply(null, E);
4401
- else
4402
- for (var B = 0; B < E.length; B++)
4403
- a.log(E[B]);
4404
- }
4405
- }
4406
- function te(E) {
4407
- function B(se) {
4408
- var Me = se.getRootNode && se.getRootNode().contains(se);
4409
- return se === se.ownerDocument.body || se.ownerDocument.body.contains(se) || Me;
4410
- }
4411
- return !B(E) || window.getComputedStyle(E) === null;
4412
- }
4413
- function ge(E) {
4414
- var B = c(E).container.childNodes[0], se = window.getComputedStyle(B);
4415
- return !se.width || se.width.indexOf("px") === -1;
4416
- }
4417
- function K() {
4418
- var E = window.getComputedStyle(b), B = {};
4419
- return B.position = E.position, B.width = b.offsetWidth, B.height = b.offsetHeight, B.top = E.top, B.right = E.right, B.bottom = E.bottom, B.left = E.left, B.widthCSS = E.width, B.heightCSS = E.height, B;
4420
- }
4421
- function M() {
4422
- var E = K();
4423
- c(b).startSize = {
4424
- width: E.width,
4425
- height: E.height
4426
- }, D("Element start size", c(b).startSize);
4427
- }
4428
- function _() {
4429
- c(b).listeners = [];
4430
- }
4431
- function f() {
4432
- if (D("storeStyle invoked."), !c(b)) {
4433
- D("Aborting because element has been uninstalled");
4434
- return;
4435
- }
4436
- var E = K();
4437
- c(b).style = E;
4438
- }
4439
- function h(E, B, se) {
4440
- c(E).lastWidth = B, c(E).lastHeight = se;
4441
- }
4442
- function x(E) {
4443
- return ve(E).childNodes[0];
4444
- }
4445
- function L() {
4446
- return 2 * R.width + 1;
4447
- }
4448
- function re() {
4449
- return 2 * R.height + 1;
4450
- }
4451
- function he(E) {
4452
- return E + 10 + L();
4453
- }
4454
- function Ce(E) {
4455
- return E + 10 + re();
4456
- }
4457
- function Fe(E) {
4458
- return E * 2 + L();
4459
- }
4460
- function tt(E) {
4461
- return E * 2 + re();
4462
- }
4463
- function Ie(E, B, se) {
4464
- var Me = ve(E), Ge = le(E), nt = he(B), ot = Ce(se), De = Fe(B), q = tt(se);
4465
- Me.scrollLeft = nt, Me.scrollTop = ot, Ge.scrollLeft = De, Ge.scrollTop = q;
4466
- }
4467
- function Ke() {
4468
- var E = c(b).container;
4469
- if (!E) {
4470
- E = document.createElement("div"), E.className = C, E.style.cssText = O(["visibility: hidden", "display: inline", "width: 0px", "height: 0px", "z-index: -1", "overflow: hidden", "margin: 0", "padding: 0"]), c(b).container = E, Le(E), b.appendChild(E);
4471
- var B = function() {
4472
- c(b).onRendered && c(b).onRendered();
4473
- };
4474
- Y(E, "animationstart", B), c(b).onAnimationStart = B;
4475
- }
4476
- return E;
4477
- }
4478
- function ie() {
4479
- function E() {
4480
- var xe = c(b).style;
4481
- if (xe.position === "static") {
4482
- b.style.setProperty("position", "relative", z.important ? "important" : "");
4483
- var Ve = function(we, Ye, vt, Je) {
4484
- function Zt(Jt) {
4485
- return Jt.replace(/[^-\d\.]/g, "");
4486
- }
4487
- var gt = vt[Je];
4488
- gt !== "auto" && Zt(gt) !== "0" && (we.warn("An element that is positioned static has style." + Je + "=" + gt + " which is ignored due to the static positioning. The element will need to be positioned relative, so the style." + Je + " will be set to 0. Element: ", Ye), Ye.style[Je] = 0);
4489
- };
4490
- Ve(a, b, xe, "top"), Ve(a, b, xe, "right"), Ve(a, b, xe, "bottom"), Ve(a, b, xe, "left");
4491
- }
4492
- }
4493
- function B(xe, Ve, we, Ye) {
4494
- return xe = xe ? xe + "px" : "0", Ve = Ve ? Ve + "px" : "0", we = we ? we + "px" : "0", Ye = Ye ? Ye + "px" : "0", ["left: " + xe, "top: " + Ve, "right: " + Ye, "bottom: " + we];
4495
- }
4496
- if (D("Injecting elements"), !c(b)) {
4497
- D("Aborting because element has been uninstalled");
4498
- return;
4499
- }
4500
- E();
4501
- var se = c(b).container;
4502
- se || (se = Ke());
4503
- var Me = R.width, Ge = R.height, nt = O(["position: absolute", "flex: none", "overflow: hidden", "z-index: -1", "visibility: hidden", "width: 100%", "height: 100%", "left: 0px", "top: 0px"]), ot = O(["position: absolute", "flex: none", "overflow: hidden", "z-index: -1", "visibility: hidden"].concat(B(-(1 + Me), -(1 + Ge), -Ge, -Me))), De = O(["position: absolute", "flex: none", "overflow: scroll", "z-index: -1", "visibility: hidden", "width: 100%", "height: 100%"]), q = O(["position: absolute", "flex: none", "overflow: scroll", "z-index: -1", "visibility: hidden", "width: 100%", "height: 100%"]), Ne = O(["position: absolute", "left: 0", "top: 0"]), He = O(["position: absolute", "width: 200%", "height: 200%"]), Be = document.createElement("div"), We = document.createElement("div"), ae = document.createElement("div"), Ze = document.createElement("div"), Ee = document.createElement("div"), rt = document.createElement("div");
4504
- Be.dir = "ltr", Be.style.cssText = nt, Be.className = C, We.className = C, We.style.cssText = ot, ae.style.cssText = De, Ze.style.cssText = Ne, Ee.style.cssText = q, rt.style.cssText = He, ae.appendChild(Ze), Ee.appendChild(rt), We.appendChild(ae), We.appendChild(Ee), Be.appendChild(We), se.appendChild(Be);
4505
- function ct() {
4506
- var xe = c(b);
4507
- xe && xe.onExpand ? xe.onExpand() : D("Aborting expand scroll handler: element has been uninstalled");
4508
- }
4509
- function zt() {
4510
- var xe = c(b);
4511
- xe && xe.onShrink ? xe.onShrink() : D("Aborting shrink scroll handler: element has been uninstalled");
4512
- }
4513
- Y(ae, "scroll", ct), Y(Ee, "scroll", zt), c(b).onExpandScroll = ct, c(b).onShrinkScroll = zt;
4514
- }
4515
- function mt() {
4516
- function E(De, q, Ne) {
4517
- var He = x(De), Be = he(q), We = Ce(Ne);
4518
- He.style.setProperty("width", Be + "px", z.important ? "important" : ""), He.style.setProperty("height", We + "px", z.important ? "important" : "");
4519
- }
4520
- function B(De) {
4521
- var q = b.offsetWidth, Ne = b.offsetHeight, He = q !== c(b).lastWidth || Ne !== c(b).lastHeight;
4522
- D("Storing current size", q, Ne), h(b, q, Ne), p.add(0, function() {
4523
- if (He) {
4524
- if (!c(b)) {
4525
- D("Aborting because element has been uninstalled");
4526
- return;
4527
- }
4528
- if (!se()) {
4529
- D("Aborting because element container has not been initialized");
4530
- return;
4531
- }
4532
- if (z.debug) {
4533
- var We = b.offsetWidth, ae = b.offsetHeight;
4534
- (We !== q || ae !== Ne) && a.warn(k.get(b), "Scroll: Size changed before updating detector elements.");
4535
- }
4536
- E(b, q, Ne);
4537
- }
4538
- }), p.add(1, function() {
4539
- if (!c(b)) {
4540
- D("Aborting because element has been uninstalled");
4541
- return;
4542
- }
4543
- if (!se()) {
4544
- D("Aborting because element container has not been initialized");
4545
- return;
4546
- }
4547
- Ie(b, q, Ne);
4548
- }), He && De && p.add(2, function() {
4549
- if (!c(b)) {
4550
- D("Aborting because element has been uninstalled");
4551
- return;
4552
- }
4553
- if (!se()) {
4554
- D("Aborting because element container has not been initialized");
4555
- return;
4556
- }
4557
- De();
4558
- });
4559
- }
4560
- function se() {
4561
- return !!c(b).container;
4562
- }
4563
- function Me() {
4564
- function De() {
4565
- return c(b).lastNotifiedWidth === void 0;
4566
- }
4567
- D("notifyListenersIfNeeded invoked");
4568
- var q = c(b);
4569
- if (De() && q.lastWidth === q.startSize.width && q.lastHeight === q.startSize.height)
4570
- return D("Not notifying: Size is the same as the start size, and there has been no notification yet.");
4571
- if (q.lastWidth === q.lastNotifiedWidth && q.lastHeight === q.lastNotifiedHeight)
4572
- return D("Not notifying: Size already notified");
4573
- D("Current size not notified, notifying..."), q.lastNotifiedWidth = q.lastWidth, q.lastNotifiedHeight = q.lastHeight, $c(c(b).listeners, function(Ne) {
4574
- Ne(b);
4575
- });
4576
- }
4577
- function Ge() {
4578
- if (D("startanimation triggered."), ge(b)) {
4579
- D("Ignoring since element is still unrendered...");
4580
- return;
4581
- }
4582
- D("Element rendered.");
4583
- var De = ve(b), q = le(b);
4584
- (De.scrollLeft === 0 || De.scrollTop === 0 || q.scrollLeft === 0 || q.scrollTop === 0) && (D("Scrollbars out of sync. Updating detector elements..."), B(Me));
4585
- }
4586
- function nt() {
4587
- if (D("Scroll detected."), ge(b)) {
4588
- D("Scroll event fired while unrendered. Ignoring...");
4589
- return;
4590
- }
4591
- B(Me);
4592
- }
4593
- if (D("registerListenersAndPositionElements invoked."), !c(b)) {
4594
- D("Aborting because element has been uninstalled");
4595
- return;
4596
- }
4597
- c(b).onRendered = Ge, c(b).onExpand = nt, c(b).onShrink = nt;
4598
- var ot = c(b).style;
4599
- E(b, ot.width, ot.height);
4600
- }
4601
- function $t() {
4602
- if (D("finalizeDomMutation invoked."), !c(b)) {
4603
- D("Aborting because element has been uninstalled");
4604
- return;
4605
- }
4606
- var E = c(b).style;
4607
- h(b, E.width, E.height), Ie(b, E.width, E.height);
4608
- }
4609
- function Se() {
4610
- ee(b);
4611
- }
4612
- function me() {
4613
- D("Installing..."), _(), M(), p.add(0, f), p.add(1, ie), p.add(2, mt), p.add(3, $t), p.add(4, Se);
4614
- }
4615
- D("Making detectable..."), te(b) ? (D("Element is detached"), Ke(), D("Waiting until element is attached..."), c(b).onRendered = function() {
4616
- D("Element is now attached"), me();
4617
- }) : me();
4618
- }
4619
- function Q(z) {
4620
- var b = c(z);
4621
- b && (b.onExpandScroll && V(ve(z), "scroll", b.onExpandScroll), b.onShrinkScroll && V(le(z), "scroll", b.onShrinkScroll), b.onAnimationStart && V(b.container, "animationstart", b.onAnimationStart), b.container && z.removeChild(b.container));
4622
- }
4623
- return {
4624
- makeDetectable: H,
4625
- addListener: Re,
4626
- uninstall: Q,
4627
- initDocument: F
4628
- };
4629
- }, Xt = xi.forEach, Oc = fc, Ec = pc, Tc = hc, Ic = mc, Dc = vc, ci = $i, Pc = bc, wt = wc, zc = Cc, Ac = kc;
4630
- function li(d) {
4631
- return Array.isArray(d) || d.length !== void 0;
4632
- }
4633
- function ui(d) {
4634
- if (Array.isArray(d))
4635
- return d;
4636
- var a = [];
4637
- return Xt(d, function(p) {
4638
- a.push(p);
4639
- }), a;
4640
- }
4641
- function di(d) {
4642
- return d && d.nodeType === 1;
4643
- }
4644
- var jc = function(d) {
4645
- d = d || {};
4646
- var a;
4647
- if (d.idHandler)
4648
- a = {
4649
- get: function(H) {
4650
- return d.idHandler.get(H, !0);
4651
- },
4652
- set: d.idHandler.set
4653
- };
4654
- else {
4655
- var p = Tc(), c = Ic({
4656
- idGenerator: p,
4657
- stateHandler: wt
4658
- });
4659
- a = c;
4660
- }
4661
- var k = d.reporter;
4662
- if (!k) {
4663
- var R = k === !1;
4664
- k = Dc(R);
4665
- }
4666
- var $ = Ct(d, "batchProcessor", Pc({ reporter: k })), C = {};
4667
- C.callOnAdd = !!Ct(d, "callOnAdd", !0), C.debug = !!Ct(d, "debug", !1);
4668
- var F = Ec(a), O = Oc({
4669
- stateHandler: wt
4670
- }), W, de = Ct(d, "strategy", "object"), Le = Ct(d, "important", !1), Y = {
4671
- reporter: k,
4672
- batchProcessor: $,
4673
- stateHandler: wt,
4674
- idHandler: a,
4675
- important: Le
4676
- };
4677
- if (de === "scroll" && (ci.isLegacyOpera() ? (k.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."), de = "object") : ci.isIE(9) && (k.warn("Scroll strategy is not supported on IE9. Changing to object strategy."), de = "object")), de === "scroll")
4678
- W = Ac(Y);
4679
- else if (de === "object")
4680
- W = zc(Y);
4681
- else
4682
- throw new Error("Invalid strategy name: " + de);
4683
- var V = {};
4684
- function ve(H, Q, z) {
4685
- function b(M) {
4686
- var _ = F.get(M);
4687
- Xt(_, function(h) {
4688
- h(M);
4689
- });
4690
- }
4691
- function ee(M, _, f) {
4692
- F.add(_, f), M && f(_);
4693
- }
4694
- if (z || (z = Q, Q = H, H = {}), !Q)
4695
- throw new Error("At least one element required.");
4696
- if (!z)
4697
- throw new Error("Listener required.");
4698
- if (di(Q))
4699
- Q = [Q];
4700
- else if (li(Q))
4701
- Q = ui(Q);
4702
- else
4703
- return k.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");
4704
- var D = 0, te = Ct(H, "callOnAdd", C.callOnAdd), ge = Ct(H, "onReady", function() {
4705
- }), K = Ct(H, "debug", C.debug);
4706
- Xt(Q, function(_) {
4707
- wt.getState(_) || (wt.initState(_), a.set(_));
4708
- var f = a.get(_);
4709
- if (K && k.log("Attaching listener to element", f, _), !O.isDetectable(_)) {
4710
- if (K && k.log(f, "Not detectable."), O.isBusy(_)) {
4711
- K && k.log(f, "System busy making it detectable"), ee(te, _, z), V[f] = V[f] || [], V[f].push(function() {
4712
- D++, D === Q.length && ge();
4713
- });
4714
- return;
4715
- }
4716
- return K && k.log(f, "Making detectable..."), O.markBusy(_, !0), W.makeDetectable({ debug: K, important: Le }, _, function(x) {
4717
- if (K && k.log(f, "onElementDetectable"), wt.getState(x)) {
4718
- O.markAsDetectable(x), O.markBusy(x, !1), W.addListener(x, b), ee(te, x, z);
4719
- var L = wt.getState(x);
4720
- if (L && L.startSize) {
4721
- var re = x.offsetWidth, he = x.offsetHeight;
4722
- (L.startSize.width !== re || L.startSize.height !== he) && b(x);
4723
- }
4724
- V[f] && Xt(V[f], function(Ce) {
4725
- Ce();
4726
- });
4727
- } else
4728
- K && k.log(f, "Element uninstalled before being detectable.");
4729
- delete V[f], D++, D === Q.length && ge();
4730
- });
4731
- }
4732
- K && k.log(f, "Already detecable, adding listener."), ee(te, _, z), D++;
4733
- }), D === Q.length && ge();
4734
- }
4735
- function le(H) {
4736
- if (!H)
4737
- return k.error("At least one element is required.");
4738
- if (di(H))
4739
- H = [H];
4740
- else if (li(H))
4741
- H = ui(H);
4742
- else
4743
- return k.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");
4744
- Xt(H, function(Q) {
4745
- F.removeAllListeners(Q), W.uninstall(Q), wt.cleanState(Q);
4746
- });
4747
- }
4748
- function Re(H) {
4749
- W.initDocument && W.initDocument(H);
4750
- }
4751
- return {
4752
- listenTo: ve,
4753
- removeListener: F.removeListener,
4754
- removeAllListeners: F.removeAllListeners,
4755
- uninstall: le,
4756
- initDocument: Re
4757
- };
4758
- };
4759
- function Ct(d, a, p) {
4760
- var c = d[a];
4761
- return c == null && p !== void 0 ? p : c;
4762
- }
4763
- const Lc = /* @__PURE__ */ fi(jc);
4764
- window.elementResizeDetectorMaker || (window.elementResizeDetectorMaker = Lc({
4765
- strategy: "scroll"
4766
- }));
4767
- const Rc = (d) => d <= 640 ? "mobile" : d <= 1024 ? "tablet" : "desktop", Fc = {
4768
- provide() {
4769
- if (this.provideDevice)
4770
- return { containerType: this.containerType };
4771
- },
4772
- props: {
4773
- provideDevice: {
4774
- type: Boolean,
4775
- default: !1
4776
- }
4777
- },
4778
- data() {
4779
- return {
4780
- width: null,
4781
- height: null,
4782
- containerType: {
4783
- device: "desktop"
4784
- }
4785
- };
4786
- },
4787
- created() {
4788
- this.provideDevice && this.$watch("width", (d) => {
4789
- this.containerType.device = Rc(d);
4790
- }), this.width = window.innerWidth, this.height = window.innerHeight;
4791
- },
4792
- mounted() {
4793
- window.elementResizeDetectorMaker.listenTo(this.$el, (d) => {
4794
- this.width = d.offsetWidth, this.height = d.offsetHeight, this.$emit("width", d.offsetWidth), this.$emit("height", d.offsetHeight), this.$emit("resize");
4795
- }), this.$nextTick(() => {
4796
- this.width = this.$el.offsetWidth, this.height = this.$el.offsetHeight;
4797
- });
4798
- },
4799
- beforeDestroy() {
4800
- window.elementResizeDetectorMaker.uninstall(this.$el);
4801
- },
4802
- render() {
4803
- return this.$scopedSlots.default({
4804
- width: this.width,
4805
- height: this.height
4806
- });
4807
- }
4808
- }, Mc = null, Nc = null;
4809
- var Bc = /* @__PURE__ */ ht(
4810
- Fc,
4811
- Mc,
4812
- Nc,
4813
- !1,
4814
- null,
4815
- null
4816
- );
4817
- const Hc = Bc.exports, Wc = {
4818
- name: "DocumentLayout",
4819
- components: {
4820
- DynamicChapter: pi,
4821
- DocumentStyleContainer: uc,
4822
- WithDimensions: Hc
4823
- },
4824
- props: {
4825
- document: {
4826
- type: Object,
4827
- required: !0
4828
- }
4829
- },
4830
- computed: {
4831
- layout() {
4832
- var d;
4833
- return ((d = this.document) == null ? void 0 : d.readLayout) || [];
4834
- }
4835
- },
4836
- methods: {
4837
- calcStyle({ width: d, height: a }) {
4838
- this.$nextTick(() => ({
4839
- "--vh": `${a / 100}px`,
4840
- "--vw": `${d / 100}px`
4841
- }));
4842
- }
4843
- }
4844
- };
4845
- var Vc = function() {
4846
- var a = this, p = a._self._c;
4847
- return p("div", { staticClass: "font-family-default h-full w-full" }, [p("WithDimensions", { attrs: { "provide-device": !0 }, scopedSlots: a._u([{ key: "default", fn: function({ width: c, height: k }) {
4848
- var R, $;
4849
- return [p("DocumentStyleContainer", { staticClass: "h-full w-full", staticStyle: { flex: "1 0 auto" }, style: {
4850
- ...a.calcStyle({ width: c, height: k })
4851
- }, attrs: { "input-style": ($ = (R = a.document) == null ? void 0 : R.data) == null ? void 0 : $.css } }, a._l(a.layout, function(C, F) {
4852
- return p("DynamicChapter", { key: F, attrs: { "component-name": C.componentName, "component-props": {
4853
- ...C.props,
4854
- _document: a.document,
4855
- _value: C.value
4856
- }, children: C.children, "parent-size": { width: c }, "_first-block": F === 0, "_last-block": F === a.layout.length - 1 } });
4857
- }), 1)];
4858
- } }]) })], 1);
4859
- }, qc = [], Uc = /* @__PURE__ */ ht(
4860
- Wc,
4861
- Vc,
4862
- qc,
4863
- !1,
4864
- null,
4865
- null
4866
- );
4867
- const Kc = Uc.exports, Jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4868
- __proto__: null,
4869
- default: Kc
4870
- }, Symbol.toStringTag, { value: "Module" }));
4871
- export {
4872
- Kc as D,
4873
- Zc as F,
4874
- Hc as W,
4875
- uc as a,
4876
- pi as b,
4877
- Jc as c,
4878
- Xc as g,
4879
- vi as l
4880
- };