@gct-paas/core-web 0.1.4-dev.7 → 0.1.4-dev.9

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 (262) hide show
  1. package/dist/index-BghCpvxN.js +76 -0
  2. package/dist/index-PLrMc0gl.cjs +76 -0
  3. package/dist/index-oVPMi6Ep.js +29160 -0
  4. package/dist/index.esm.min.mjs +34 -7924
  5. package/dist/index.min.cjs +1 -20
  6. package/dist/index.min.css +1 -0
  7. package/dist/index.system.min.js +1 -20
  8. package/dist/monaco-editor-B8X-ou0h.js +20245 -0
  9. package/dist/monaco-editor-Bdgpd_KL.cjs +19 -0
  10. package/dist/monaco-editor-NIWDtQNB.js +19 -0
  11. package/es/_virtual/_plugin-vue_export-helper.mjs +9 -0
  12. package/es/components/app-modal/app-modal-component.css +149 -0
  13. package/es/components/app-modal/app-modal-component.d.ts +26 -0
  14. package/es/components/app-modal/app-modal-component.mjs +140 -0
  15. package/es/components/assets-svg-icon/assets-svg-icon.css +188 -0
  16. package/es/components/assets-svg-icon/assets-svg-icon.d.ts +134 -0
  17. package/es/components/assets-svg-icon/assets-svg-icon.mjs +238 -0
  18. package/es/components/assets-svg-icon/request.d.ts +2 -0
  19. package/es/components/assets-svg-icon/request.mjs +51 -0
  20. package/es/components/assets-svg-icon/utils.d.ts +9 -0
  21. package/es/components/assets-svg-icon/utils.mjs +21 -0
  22. package/es/components/assets-svg-icon/validate.d.ts +4 -0
  23. package/es/components/assets-svg-icon/validate.mjs +43 -0
  24. package/es/components/base-button/base-button.css +74 -0
  25. package/es/components/base-button/base-button.vue.d.ts +173 -0
  26. package/es/components/base-button/base-button.vue.mjs +7 -0
  27. package/es/components/base-button/base-button.vue3.mjs +179 -0
  28. package/es/components/basic-button/basic-button.css +25 -0
  29. package/es/components/basic-button/basic-button.vue.d.ts +100 -0
  30. package/es/components/basic-button/basic-button.vue.mjs +7 -0
  31. package/es/components/basic-button/basic-button.vue3.mjs +130 -0
  32. package/es/components/code-editor/code-editor.css +67 -0
  33. package/es/components/code-editor/code-editor.d.ts +1 -1
  34. package/es/components/code-editor/code-editor.mjs +9 -10
  35. package/es/components/index.d.ts +10 -0
  36. package/es/components/index.mjs +21 -6
  37. package/es/components/layout/flex-container/flex-container.css +67 -0
  38. package/es/components/layout/flex-container/flex-container.mjs +13 -9
  39. package/es/components/layout/flex-item/flex-item.mjs +11 -9
  40. package/es/components/layout/grid-container/grid-container.mjs +11 -7
  41. package/es/components/layout/view-container/view-container.css +83 -0
  42. package/es/components/layout/view-container/view-container.mjs +6 -7
  43. package/es/components/svg-icon/svg-icon.css +73 -0
  44. package/es/components/svg-icon/svg-icon.vue.d.ts +40 -0
  45. package/es/components/svg-icon/svg-icon.vue.mjs +50 -0
  46. package/es/components/svg-icon/svg-icon.vue3.mjs +6 -0
  47. package/es/create-app-vue.d.ts +9 -0
  48. package/es/create-app-vue.mjs +17 -0
  49. package/es/directives/drag-resize.d.ts +4 -0
  50. package/es/directives/drag-resize.mjs +42 -0
  51. package/es/directives/index.d.ts +8 -0
  52. package/es/directives/index.mjs +9 -0
  53. package/es/directives/target-loading.d.ts +4 -0
  54. package/es/directives/target-loading.mjs +40 -0
  55. package/es/editor/gct-form-check-switch/gct-form-check-switch.d.ts +1 -1
  56. package/es/editor/gct-form-i18n/gct-form-i18n.d.ts +1 -1
  57. package/es/editor/gct-form-info/gct-form-info.d.ts +1 -1
  58. package/es/editor/gct-form-length-unit/gct-form-length-unit.d.ts +1 -1
  59. package/es/editor/gct-form-number/gct-form-number.d.ts +1 -1
  60. package/es/editor/gct-form-radio/gct-form-radio.d.ts +1 -1
  61. package/es/editor/gct-form-select/gct-form-select.d.ts +1 -1
  62. package/es/editor/gct-form-switch/gct-form-switch.d.ts +1 -1
  63. package/es/editor/gct-form-textarea/gct-form-textarea.d.ts +1 -1
  64. package/es/hooks/index.d.ts +3 -0
  65. package/es/hooks/useDragLine.d.ts +6 -0
  66. package/es/hooks/useDragLine.mjs +79 -0
  67. package/es/hooks/useLocale.d.ts +4 -0
  68. package/es/hooks/useLocale.mjs +32 -0
  69. package/es/hooks/useTheme.d.ts +8 -0
  70. package/es/hooks/useTheme.mjs +20 -0
  71. package/es/index.d.ts +7 -7
  72. package/es/index.mjs +35 -24
  73. package/es/modules/code-editor/index.d.ts +163 -0
  74. package/es/modules/code-editor/index.mjs +8 -0
  75. package/es/modules/code-editor/monaco-editor.css +49 -0
  76. package/es/modules/code-editor/monaco-editor.vue.d.ts +143 -0
  77. package/es/modules/code-editor/monaco-editor.vue.mjs +7 -0
  78. package/es/modules/code-editor/monaco-editor.vue2.mjs +440 -0
  79. package/es/modules/code-editor/useEditorConsole.d.ts +54 -0
  80. package/es/modules/code-editor/useEditorConsole.mjs +194 -0
  81. package/es/modules/code-editor/useMonacoEditor.d.ts +26 -0
  82. package/es/modules/code-editor/useMonacoEditor.mjs +26 -0
  83. package/es/modules/color-picker/index.d.ts +2 -0
  84. package/es/modules/color-picker/src/ColorPicker.css +16 -0
  85. package/es/modules/color-picker/src/ColorPicker.vue.d.ts +49 -0
  86. package/es/modules/color-picker/src/ColorPicker.vue.mjs +8 -0
  87. package/es/modules/color-picker/src/ColorPicker.vue2.mjs +545 -0
  88. package/es/modules/color-picker/src/ColorPicker2.css +156 -0
  89. package/es/modules/gct-dnd/components/gct-dnd-container/gct-dnd-container.css +72 -0
  90. package/es/modules/gct-dnd/components/gct-dnd-container/gct-dnd-container.d.ts +37 -0
  91. package/es/modules/gct-dnd/components/gct-dnd-container/gct-dnd-container.mjs +195 -0
  92. package/es/modules/gct-dnd/components/gct-dnd-drop-line/gct-dnd-drop-line.css +79 -0
  93. package/es/modules/gct-dnd/components/gct-dnd-drop-line/gct-dnd-drop-line.d.ts +29 -0
  94. package/es/modules/gct-dnd/components/gct-dnd-drop-line/gct-dnd-drop-line.mjs +98 -0
  95. package/es/modules/gct-dnd/components/gct-dnd-item/gct-dnd-item.css +70 -0
  96. package/es/modules/gct-dnd/components/gct-dnd-item/gct-dnd-item.d.ts +50 -0
  97. package/es/modules/gct-dnd/components/gct-dnd-item/gct-dnd-item.mjs +239 -0
  98. package/es/modules/gct-dnd/constants/index.d.ts +22 -0
  99. package/es/modules/gct-dnd/constants/index.mjs +20 -0
  100. package/es/modules/gct-dnd/index.d.ts +5 -0
  101. package/es/modules/gct-dnd/interface/i-gct-dnd-config.d.ts +101 -0
  102. package/es/modules/gct-dnd/interface/i-gct-dnd-data.d.ts +14 -0
  103. package/es/modules/gct-dnd/interface/i-gct-dnd-render-item-options.d.ts +28 -0
  104. package/es/modules/gct-dnd/interface/i-gct-drag-collect.d.ts +24 -0
  105. package/es/modules/gct-dnd/interface/i-gct-drag-dnd-data.d.ts +51 -0
  106. package/es/modules/gct-dnd/interface/i-gct-drop-collect.d.ts +32 -0
  107. package/es/modules/gct-dnd/interface/i-gct-drop-result.d.ts +47 -0
  108. package/es/modules/gct-dnd/interface/index.d.ts +7 -0
  109. package/es/modules/global-modal/index.d.ts +5 -0
  110. package/es/modules/global-modal/index.mjs +16 -0
  111. package/es/modules/global-modal/src/BasicModal.vue.d.ts +518 -0
  112. package/es/modules/global-modal/src/BasicModal.vue.mjs +221 -0
  113. package/es/modules/global-modal/src/BasicModal.vue2.mjs +5 -0
  114. package/es/modules/global-modal/src/components/GlboalModal.d.ts +251 -0
  115. package/es/modules/global-modal/src/components/GlboalModal.mjs +40 -0
  116. package/es/modules/global-modal/src/components/ModalClose.css +95 -0
  117. package/es/modules/global-modal/src/components/ModalClose.vue.d.ts +27 -0
  118. package/es/modules/global-modal/src/components/ModalClose.vue.mjs +79 -0
  119. package/es/modules/global-modal/src/components/ModalClose.vue3.mjs +6 -0
  120. package/es/modules/global-modal/src/components/ModalFooter.vue.d.ts +270 -0
  121. package/es/modules/global-modal/src/components/ModalFooter.vue.mjs +44 -0
  122. package/es/modules/global-modal/src/components/ModalFooter.vue2.mjs +5 -0
  123. package/es/modules/global-modal/src/components/ModalHeader.vue.d.ts +17 -0
  124. package/es/modules/global-modal/src/components/ModalHeader.vue.mjs +11 -0
  125. package/es/modules/global-modal/src/components/ModalHeader.vue2.mjs +13 -0
  126. package/es/modules/global-modal/src/components/ModalWrapper.vue.d.ts +95 -0
  127. package/es/modules/global-modal/src/components/ModalWrapper.vue.mjs +26 -0
  128. package/es/modules/global-modal/src/components/ModalWrapper.vue2.mjs +136 -0
  129. package/es/modules/global-modal/src/hooks/useModal.d.ts +6 -0
  130. package/es/modules/global-modal/src/hooks/useModal.mjs +120 -0
  131. package/es/modules/global-modal/src/hooks/useModalContext.d.ts +5 -0
  132. package/es/modules/global-modal/src/hooks/useModalContext.mjs +11 -0
  133. package/es/modules/global-modal/src/hooks/useModalDrag.d.ts +7 -0
  134. package/es/modules/global-modal/src/hooks/useModalDrag.mjs +82 -0
  135. package/es/modules/global-modal/src/hooks/useModalFullScreen.d.ts +11 -0
  136. package/es/modules/global-modal/src/hooks/useModalFullScreen.mjs +16 -0
  137. package/es/modules/global-modal/src/index.css +153 -0
  138. package/es/modules/global-modal/src/props.d.ts +156 -0
  139. package/es/modules/global-modal/src/props.mjs +57 -0
  140. package/es/modules/global-modal/src/typing.d.ts +174 -0
  141. package/es/modules/target-loading/index.d.ts +4 -0
  142. package/es/modules/target-loading/src/createLoading.d.ts +13 -0
  143. package/es/modules/target-loading/src/createLoading.mjs +57 -0
  144. package/es/modules/target-loading/src/target-loading.css +18 -0
  145. package/es/modules/target-loading/src/target-loading.vue.d.ts +57 -0
  146. package/es/modules/target-loading/src/target-loading.vue.mjs +52 -0
  147. package/es/modules/target-loading/src/target-loading.vue3.mjs +7 -0
  148. package/es/modules/target-loading/src/typing.d.ts +9 -0
  149. package/es/modules/target-loading/src/useLoading.d.ts +9 -0
  150. package/es/setup-app.d.ts +1 -0
  151. package/es/setup-app.mjs +4 -0
  152. package/es/types/index.d.ts +190 -0
  153. package/es/utils/index.d.ts +4 -1
  154. package/es/utils/message-util/message-util.d.ts +7 -0
  155. package/es/utils/message-util/message-util.mjs +26 -0
  156. package/es/utils/monaco-loader/monaco-loader.d.ts +59 -0
  157. package/es/utils/monaco-loader/monaco-loader.mjs +88 -0
  158. package/es/utils/overlay-controller/overlay-controller.d.ts +18 -0
  159. package/es/utils/overlay-controller/overlay-controller.mjs +23 -0
  160. package/es/utils/with-install.mjs +0 -1
  161. package/es/widgets/gct-edit-form/gct-edit-form.d.ts +1 -1
  162. package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.d.ts +1 -1
  163. package/package.json +19 -8
  164. package/dist/index.min.css.css +0 -1
  165. package/es/components/code-editor/code-editor.scss +0 -3
  166. package/es/components/layout/flex-container/flex-container.scss +0 -3
  167. package/es/components/layout/flex-item/flex-item.scss +0 -17
  168. package/es/components/layout/view-container/view-container.scss +0 -19
  169. package/es/editor/gct-form-check-switch/gct-form-check-switch.mjs +0 -53
  170. package/es/editor/gct-form-check-switch/gct-form-check-switch.provider.mjs +0 -6
  171. package/es/editor/gct-form-check-switch/gct-form-check-switch.scss +0 -10
  172. package/es/editor/gct-form-check-switch/index.mjs +0 -12
  173. package/es/editor/gct-form-checkbox/gct-form-checkbox.mjs +0 -70
  174. package/es/editor/gct-form-checkbox/gct-form-checkbox.scss +0 -56
  175. package/es/editor/gct-form-checkbox/index.mjs +0 -19
  176. package/es/editor/gct-form-color/gct-form-color.mjs +0 -45
  177. package/es/editor/gct-form-color/gct-form-color.provider.mjs +0 -6
  178. package/es/editor/gct-form-color/gct-form-color.scss +0 -3
  179. package/es/editor/gct-form-color/index.mjs +0 -17
  180. package/es/editor/gct-form-field-select/gct-form-field-select.mjs +0 -48
  181. package/es/editor/gct-form-field-select/gct-form-field-select.provider.mjs +0 -6
  182. package/es/editor/gct-form-field-select/gct-form-field-select.scss +0 -7
  183. package/es/editor/gct-form-field-select/gct-model-select.vue +0 -70
  184. package/es/editor/gct-form-field-select/index.mjs +0 -12
  185. package/es/editor/gct-form-i18n/gct-form-i18n.mjs +0 -62
  186. package/es/editor/gct-form-i18n/gct-form-i18n.provider.mjs +0 -6
  187. package/es/editor/gct-form-i18n/index.mjs +0 -12
  188. package/es/editor/gct-form-icon-select/gct-form-icon-select.mjs +0 -74
  189. package/es/editor/gct-form-icon-select/gct-form-icon-select.scss +0 -14
  190. package/es/editor/gct-form-icon-select/index.mjs +0 -14
  191. package/es/editor/gct-form-info/gct-form-info.mjs +0 -40
  192. package/es/editor/gct-form-info/gct-form-info.scss +0 -8
  193. package/es/editor/gct-form-info/index.mjs +0 -14
  194. package/es/editor/gct-form-length-unit/gct-form-length-unit.mjs +0 -43
  195. package/es/editor/gct-form-length-unit/gct-form-length-unit.provider.mjs +0 -6
  196. package/es/editor/gct-form-length-unit/index.mjs +0 -12
  197. package/es/editor/gct-form-modal-select/gct-form-modal-select.mjs +0 -99
  198. package/es/editor/gct-form-modal-select/gct-form-modal-select.provider.mjs +0 -6
  199. package/es/editor/gct-form-modal-select/gct-form-modal-select.scss +0 -7
  200. package/es/editor/gct-form-modal-select/index.mjs +0 -12
  201. package/es/editor/gct-form-number/gct-form-number.mjs +0 -44
  202. package/es/editor/gct-form-number/gct-form-number.provider.mjs +0 -6
  203. package/es/editor/gct-form-number/gct-form-number.scss +0 -3
  204. package/es/editor/gct-form-number/index.mjs +0 -17
  205. package/es/editor/gct-form-picker/gct-form-picker.mjs +0 -92
  206. package/es/editor/gct-form-picker/gct-form-picker.provider.mjs +0 -6
  207. package/es/editor/gct-form-picker/index.mjs +0 -12
  208. package/es/editor/gct-form-radio/gct-form-radio.mjs +0 -70
  209. package/es/editor/gct-form-radio/gct-form-radio.scss +0 -68
  210. package/es/editor/gct-form-radio/index.mjs +0 -19
  211. package/es/editor/gct-form-select/gct-form-select.mjs +0 -50
  212. package/es/editor/gct-form-select/gct-form-select.provider.mjs +0 -6
  213. package/es/editor/gct-form-select/index.mjs +0 -12
  214. package/es/editor/gct-form-span/gct-form-span.mjs +0 -89
  215. package/es/editor/gct-form-span/gct-form-span.provider.mjs +0 -6
  216. package/es/editor/gct-form-span/gct-form-span.scss +0 -10
  217. package/es/editor/gct-form-span/index.mjs +0 -12
  218. package/es/editor/gct-form-switch/gct-form-switch.mjs +0 -35
  219. package/es/editor/gct-form-switch/gct-form-switch.provider.mjs +0 -6
  220. package/es/editor/gct-form-switch/index.mjs +0 -17
  221. package/es/editor/gct-form-text/gct-form-text.mjs +0 -45
  222. package/es/editor/gct-form-text/gct-form-text.provider.mjs +0 -6
  223. package/es/editor/gct-form-text/index.mjs +0 -17
  224. package/es/editor/gct-form-textarea/gct-form-textarea.mjs +0 -40
  225. package/es/editor/gct-form-textarea/gct-form-textarea.provider.mjs +0 -6
  226. package/es/editor/gct-form-textarea/index.mjs +0 -12
  227. package/es/editor/index.mjs +0 -51
  228. package/es/utils/index.mjs +0 -3
  229. package/es/vite-env.d.ts +0 -1
  230. package/es/widgets/gct-edit-form/gct-edit-form.mjs +0 -126
  231. package/es/widgets/gct-edit-form/index.mjs +0 -10
  232. package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.mjs +0 -73
  233. package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.provider.mjs +0 -11
  234. package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.scss +0 -62
  235. package/es/widgets/gct-form/gct-form-collapse/index.mjs +0 -15
  236. package/es/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.mjs +0 -71
  237. package/es/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.provider.mjs +0 -13
  238. package/es/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.scss +0 -23
  239. package/es/widgets/gct-form/gct-form-collapse-pane/index.mjs +0 -15
  240. package/es/widgets/gct-form/gct-form-group/gct-form-group.mjs +0 -88
  241. package/es/widgets/gct-form/gct-form-group/gct-form-group.provider.mjs +0 -11
  242. package/es/widgets/gct-form/gct-form-group/gct-form-group.scss +0 -28
  243. package/es/widgets/gct-form/gct-form-group/index.mjs +0 -15
  244. package/es/widgets/gct-form/gct-form-hidden-item/gct-form-hidden-item.provider.mjs +0 -13
  245. package/es/widgets/gct-form/gct-form-item/gct-form-item.mjs +0 -141
  246. package/es/widgets/gct-form/gct-form-item/gct-form-item.provider.mjs +0 -11
  247. package/es/widgets/gct-form/gct-form-item/gct-form-item.scss +0 -115
  248. package/es/widgets/gct-form/gct-form-tab/gct-form-tab.mjs +0 -53
  249. package/es/widgets/gct-form/gct-form-tab/gct-form-tab.provider.mjs +0 -11
  250. package/es/widgets/gct-form/gct-form-tab/gct-form-tab.scss +0 -63
  251. package/es/widgets/gct-form/gct-form-tab/index.mjs +0 -12
  252. package/es/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.mjs +0 -65
  253. package/es/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.provider.mjs +0 -11
  254. package/es/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.scss +0 -16
  255. package/es/widgets/gct-form/gct-form-tab-pane/index.mjs +0 -15
  256. package/es/widgets/gct-form/gct-form-title-group/gct-form-title-group.mjs +0 -71
  257. package/es/widgets/gct-form/gct-form-title-group/gct-form-title-group.provider.mjs +0 -11
  258. package/es/widgets/gct-form/gct-form-title-group/gct-form-title-group.scss +0 -25
  259. package/es/widgets/gct-form/gct-form-title-group/index.mjs +0 -16
  260. package/es/widgets/gct-form/gct-form.mjs +0 -112
  261. package/es/widgets/gct-form/gct-form.scss +0 -11
  262. package/es/widgets/gct-form/index.mjs +0 -31
@@ -1,20 +1 @@
1
- System.register(["vue","@gct-paas/core","ant-design-vue","lodash-es"],(function(on,Jg){"use strict";var L,D,B,Vt,Po,w,Ge,E,ae,ge,R,re,yr,A,br,Ro,qt,Cr,Ze,Mo,be,Fo,Io,Wt,Lo,Ho,Go,No,xe,an,ln,Bo,U,Qe,se,sn,wr,K,fe,Do,Ut,Sr,xt,Vo,zt,it,lt,un,W,qo,Wo,Oe,J,ue,st,cn,Uo,zo,Ko,Xo,Yo,Jo,Zo,qe,Qo,ea,ta,ra,fn,na,oa,aa,ia,dn,la,sa,hn,pn,Kt;return{setters:[S=>{L=S.defineComponent,D=S.computed,B=S.ref,Vt=S.onMounted,Po=S.onUnmounted,w=S.createVNode,Ge=S.isVNode,E=S.resolveComponent,ae=S.mergeProps,ge=S.watch,R=S.openBlock,re=S.createBlock,yr=S.withCtx,A=S.createElementVNode,br=S.createTextVNode,Ro=S.toRefs,qt=S.nextTick,Cr=S.getCurrentInstance,Ze=S.shallowRef,Mo=S.shallowReadonly,be=S.toValue,Fo=S.getCurrentScope,Io=S.onScopeDispose,Wt=S.readonly,Lo=S.toRef,Ho=S.customRef,Go=S.unref,No=S.toRaw,xe=S.reactive,an=S.inject,ln=S.provide,Bo=S.useSlots,U=S.createElementBlock,Qe=S.Fragment,se=S.normalizeStyle,sn=S.resolveDynamicComponent,wr=S.renderSlot,K=S.createCommentVNode,fe=S.normalizeClass,Do=S.Teleport,Ut=S.withDirectives,Sr=S.vShow,xt=S.renderList,Vo=S.vModelText,zt=S.toDisplayString,it=S.pushScopeId,lt=S.popScopeId,un=S.h},S=>{W=S.useNamespace,qo=S.deepMerge,Wo=S.LengthUnitEditorController,Oe=S.useGctFormValue,J=S.widthEditorInstall,ue=S.EditorTypeOld,st=S.EditorType,cn=S.EditorController,Uo=S.useForm,zo=S.useCopyToClipboard,Ko=S.useGctFormValueByText,Xo=S.useEditFormController,Yo=S.EditFormController,Jo=S.useModal,Zo=S.EditorRegisterConst,qe=S.useFormItemController,Qo=S.FormItemController,ea=S.FormHiddenItemController,ta=S.FormCollapsePaneController,ra=S.FormCollapseController,fn=S.FormGroupController,na=S.FormTabController,oa=S.FormTabPaneController,aa=S.FormContainerType},S=>{ia=S.message,dn=S.RadioGroup,la=S.RadioButton,sa=S.CheckboxGroup,hn=S.Collapse},S=>{pn=S.cloneDeep,Kt=S.merge}],execute:(function(){function S(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ms(e){if(Array.isArray(e))return e}function ys(e,t,r){return(t=ks(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bs(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,a,s,i=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(i.push(n.value),i.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw o}}return i}}function Cs(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ua(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ca(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ua(Object(r),!0).forEach(function(n){ys(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ua(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ws(e,t){if(e==null)return{};var r,n,o=Ss(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Ss(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function xs(e,t){return ms(e)||bs(e,t)||_s(e,t)||Cs()}function Os(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ks(e){var t=Os(e,"string");return typeof t=="symbol"?t:t+""}function _s(e,t){if(e){if(typeof e=="string")return S(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?S(e,t):void 0}}function As(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function da(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fa(Object(r),!0).forEach(function(n){As(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fa(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Es(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return t.reduceRight(function(o,a){return a(o)},n)}}function Xt(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return o.length>=e.length?e.apply(this,o):function(){for(var s=arguments.length,i=new Array(s),l=0;l<s;l++)i[l]=arguments[l];return t.apply(r,[].concat(o,i))}}}function xr(e){return{}.toString.call(e).includes("Object")}function js(e){return!Object.keys(e).length}function Yt(e){return typeof e=="function"}function Ts(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function $s(e,t){return xr(t)||et("changeType"),Object.keys(t).some(function(r){return!Ts(e,r)})&&et("changeField"),t}function Ps(e){Yt(e)||et("selectorType")}function Rs(e){Yt(e)||xr(e)||et("handlerType"),xr(e)&&Object.values(e).some(function(t){return!Yt(t)})&&et("handlersType")}function Ms(e){e||et("initialIsRequired"),xr(e)||et("initialType"),js(e)&&et("initialContent")}function Fs(e,t){throw new Error(e[t]||e.default)}var Is={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},et=Xt(Fs)(Is),Or={changes:$s,selector:Ps,handler:Rs,initial:Ms};function Ls(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Or.initial(e),Or.handler(t);var r={current:e},n=Xt(Ns)(r,t),o=Xt(Gs)(r),a=Xt(Or.changes)(e),s=Xt(Hs)(r);function i(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(u){return u};return Or.selector(c),c(r.current)}function l(c){Es(n,o,a,s)(c)}return[i,l]}function Hs(e,t){return Yt(t)?t(e.current):t}function Gs(e,t){return e.current=da(da({},e.current),t),t}function Ns(e,t,r){return Yt(t)?t(e.current):Object.keys(r).forEach(function(n){var o;return(o=t[n])===null||o===void 0?void 0:o.call(t,e.current[n])}),r}var Bs={create:Ls},Ds={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function Vs(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return o.length>=e.length?e.apply(this,o):function(){for(var s=arguments.length,i=new Array(s),l=0;l<s;l++)i[l]=arguments[l];return t.apply(r,[].concat(o,i))}}}function qs(e){return{}.toString.call(e).includes("Object")}function Ws(e){return e||pa("configIsRequired"),qs(e)||pa("configType"),e.urls?(Us(),{paths:{vs:e.urls.monacoBase}}):e}function Us(){console.warn(ha.deprecation)}function zs(e,t){throw new Error(e[t]||e.default)}var ha={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
3
- You are using deprecated way of configuration.
4
-
5
- Instead of using
6
- monaco.config({ urls: { monacoBase: '...' } })
7
- use
8
- monaco.config({ paths: { vs: '...' } })
9
-
10
- For more please check the link https://github.com/suren-atoyan/monaco-loader#config
11
- `},pa=Vs(zs)(ha),Ks={config:Ws},Xs=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(o){return r.reduceRight(function(a,s){return s(a)},o)}};function va(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],va(e[r],t[r]))}),ca(ca({},e),t)}var Ys={type:"cancelation",msg:"operation is manually canceled"};function vn(e){var t=!1,r=new Promise(function(n,o){e.then(function(a){return t?o(Ys):n(a)}),e.catch(o)});return r.cancel=function(){return t=!0},r}var Js=["monaco"],Zs=Bs.create({config:Ds,isInitialized:!1,resolve:null,reject:null,monaco:null}),ga=xs(Zs,2),Jt=ga[0],kr=ga[1];function Qs(e){var t=Ks.config(e),r=t.monaco,n=ws(t,Js);kr(function(o){return{config:va(o.config,n),monaco:r}})}function eu(){var e=Jt(function(t){var r=t.monaco,n=t.isInitialized,o=t.resolve;return{monaco:r,isInitialized:n,resolve:o}});if(!e.isInitialized){if(kr({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),vn(gn);if(window.monaco&&window.monaco.editor)return ma(window.monaco),e.resolve(window.monaco),vn(gn);Xs(tu,nu)(ou)}return vn(gn)}function tu(e){return document.body.appendChild(e)}function ru(e){var t=document.createElement("script");return e&&(t.src=e),t}function nu(e){var t=Jt(function(n){var o=n.config,a=n.reject;return{config:o,reject:a}}),r=ru("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function ou(){var e=Jt(function(r){var n=r.config,o=r.resolve,a=r.reject;return{config:n,resolve:o,reject:a}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){var n=r.m||r;ma(n),e.resolve(n)},function(r){e.reject(r)})}function ma(e){Jt().monaco||kr({monaco:e})}function au(){return Jt(function(e){var t=e.monaco;return t})}var gn=new Promise(function(e,t){return kr({resolve:e,reject:t})}),iu={config:Qs,init:eu,__getMonacoInstance:au};const ya=on("CodeEditor",L({name:"CodeEditor",props:{value:{type:String,default:""},config:{type:Object,default:()=>({})},language:{type:String,default:"typescript"}},emits:["update:value"],setup(e,{emit:t}){const r=W("code-editor"),n=D({get(){return e.value||""},set(s){t("update:value",s)}}),o=B(null);let a=null;return Vt(()=>{iu.init().then(s=>{o.value&&(a=s.editor.create(o.value,qo({value:n.value,language:e.language,automaticLayout:!0,minimap:{enabled:!1}},e.config)),a.onDidBlurEditorText(()=>{n.value=a.getValue()}))})}),Po(()=>{a?.dispose()}),()=>w("div",{ref:o,class:r.b()},null)}})),mn=L({name:"FlexItem",props:{layout:Object},setup(e){return{ns:W("flex-item"),getStyle:()=>{const n={};if(e.layout){const{order:o,alignSelf:a,flexBasis:s,flexGrow:i,flexShrink:l}=e.layout;o!=null&&(n.order=o),a!=null&&(n["align-self"]=a),s!=null&&(n["flex-basis"]=s),i!=null&&(n["flex-grow"]=i),l!=null&&(n["flex-shrink"]=l)}return n}}},render(){return w("div",{class:this.ns.b(),style:this.getStyle()},[this.$slots.default?.()])}});function lu(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ge(e)}const ba=L({name:"FlexContainer",props:{layout:Object},setup(e){return{ns:W("flex-container"),getStyle:()=>{const o={};if(e.layout){const{alignContent:a,alignItems:s,flexDirection:i,flexWrap:l,justifyContent:c}=e.layout;a!=null&&(o.alignContent=a),s!=null&&(o.alignItems=s),i!=null&&(o.flexDirection=i),l!=null&&(o.flexWrap=l),c!=null&&(o.justifyContent=c)}return o},getItemStyle:o=>{const a={};if(o){const{width:s,height:i}=o;s!=null&&(a.width=s),i!=null&&(a.height=i)}return a}}},render(){let e=this.$slots.default?.()||[];return e.length>0&&(e=e[0].children||[]),w("div",{class:this.ns.b(),style:this.getStyle()},[e.map(t=>{if(!t)return null;const r=t.props.model.flexItem;return w(mn,{layout:r,style:this.getItemStyle(t.props.model)},lu(t)?t:{default:()=>[t]})})])}});function Ca(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ge(e)}const wa=L({name:"GridContainer",props:{layout:Object},setup(){return{ns:W("grid-container")}},render(){let e;const t=this.layout||{};let r=this.$slots.default?.()||[];return r.length>0&&(r=r[0].children||[]),w(E("a-row"),{class:this.ns.b(),wrap:!0,gutter:t.gutter},Ca(e=r.map(n=>{if(!n)return null;const o=n.props.model.gridItem;return w(E("a-col"),{span:o?o.span??24:24,offset:o?o.offset??0:0},Ca(n)?n:{default:()=>[n]})}))?e:{default:()=>[e]})}}),Sa=L({name:"ViewContainer",props:{context:{type:Object},params:{type:Object},modal:{type:Object,required:!0}},setup(){return{ns:W("view-container")}},render(){return w("div",{class:this.ns.b()},[this.$slots.header?w("div",{class:this.ns.b("header")},[this.$slots.header()]):null,w("div",{class:this.ns.b("content")},[this.$slots.default?.()]),this.$slots.footer?w("div",{class:this.ns.b("footer")},[this.$slots.footer()]):null])}}),su=L({name:"GctFormLengthUnit",inheritAttrs:!1,props:{itemModel:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,required:!0}},emits:["update:value"],setup(e){const t=W("form-length-unit"),r=new Wo(e.model),n=Oe();return{ns:t,c:r,val:n}},render(){return w(E("length-unit-editor"),ae({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:[this.ns.b(),this.ns.is("readonly",this.model.readonly)]}),null)}});class uu{component="gct-form-length-unit"}const cu=J(ue.LENGTH_UNIT,()=>new uu,su),xa=L({name:"GctFormColor",inheritAttrs:!1,props:{itemModel:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String}},emits:["update:value"],setup(){const e=W("form-color"),t=Oe();return{ns:e,val:t}},render(){return w(E("color-picker"),ae({pureColor:this.val,"onUpdate:pureColor":e=>this.val=e,format:"rgba",shape:"circle","use-type":"pure","picker-type":"chrome",class:[this.ns.b(),this.ns.is("readonly",this.model.readonly)]},this.model.props||{}),null)}});class Oa{component="gct-form-color"}const fu=J(st.COLOR,()=>new Oa,xa),du=J(ue.COLOR,()=>new Oa,xa);class hu{component="gct-form-check-switch"}const pu=L({name:"GctFormCheckSwitch",props:{itemModel:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:Boolean,default:!1}},emits:["update:value"],setup(e){const t=W("gct-form-check-switch"),r=new cn(e.model),n=Oe();return{ns:t,c:r,val:n}},render(){return this.model.isSwitch?w("div",{class:[this.ns.b(),this.ns.m("switch"),this.ns.is("readonly",this.model.readonly)]},[w(E("a-switch"),ae({checked:this.val,"onUpdate:checked":e=>this.val=e},this.model.props||{}),null)]):w(E("a-checkbox"),ae({checked:this.val,"onUpdate:checked":e=>this.val=e},this.model.props||{},{class:[this.ns.b(),this.ns.m("checkbox"),this.ns.is("readonly",this.model.readonly)]}),{default:()=>[this.model.label]})}}),vu=J(ue.CHECK_SWITCH,()=>new hu,pu);class gu{component="gct-form-i18n"}const mu=L({name:"GctFormI18n",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=W("gct-form-i18n"),r=Uo().item.i18nConfig,n=Oe(),o=D({get:()=>r?r.value:"",set:a=>{r&&(r.value=a)}});return{ns:e,val:n,i18nConfigValue:o}},render(){return w(E("i18n-select-input"),ae(this.model.props||{},{i18nText:this.val,"onUpdate:i18nText":e=>this.val=e,i18nConfig:this.i18nConfigValue,"onUpdate:i18nConfig":e=>this.i18nConfigValue=e,inputExtraProps:{showCount:!0,maxlength:32,disabled:this.c.state.disabled}}),null)}}),yu=J(ue.I18N,()=>new gu,mu),bu=L({name:"GctFormIconSelect",props:{value:{type:Object},model:{type:Object,required:!0}},emits:["update:value"],setup(e,{emit:t}){const r=W("gct-form-icon-select"),n=B(e.value),o=B(n.value?.icon||e.model.defaultIcon),a=B(n.value?.color||e.model.defaultColor),s=B(n.value?.background||e.model.defaultBackground);ge(()=>e.value,l=>{n.value=l,l&&(o.value=l.icon,a.value=l.color)}),ge([o,a,s],()=>{n.value={icon:o.value,color:a.value},t("update:value",n.value)});const i=D(()=>{if(e.model.size)return{"--box-size":e.model.size+"px"}});return{ns:r,icon:o,color:a,background:s,nextPickerStyle:i}},render(){return w("div",{class:this.ns.b()},[w(E("icon-next-picker"),{value:this.icon,"onUpdate:value":e=>this.icon=e,color:this.color,"onUpdate:color":e=>this.color=e,background:"#f5f5f5",disabled:this.model.disabled,showColor:this.model.showColor!==!1,style:this.nextPickerStyle},null),this.model.label?w("span",{class:this.ns.e("title")},[this.model.label]):null])}});let Cu=class{component="gct-form-icon-select"};const wu=J(ue.ICON_SELECT,()=>new Cu,bu);class ka{component="gct-form-number"}const _a=L({name:"GctFormNumber",props:{model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=W("gct-form-number"),t=Oe();return{ns:e,val:t}},render(){return w(E("a-input-number"),ae({value:this.val,"onUpdate:value":e=>this.val=e,class:this.ns.b(),prefix:this.model.prefix,suffix:this.model.suffix,addonBefore:this.model.addonBefore,addonAfter:this.model.addonAfter,placeholder:this.model.placeholder,max:this.model.max,min:this.model.min,precision:this.model.precision},this.model.props||{}),null)}}),Su=J(st.NUMBER,()=>new ka,_a),xu=J(ue.NUMBER,()=>new ka,_a);class Ou{component="gct-form-picker"}const ku=L({name:"GctFormPicker",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:null}},emits:["update:value"],setup(e,{emit:t}){const r=W("gct-form-picker"),n=D({get(){return e.model.nameField?e.c.data[e.model.nameField]:""},set(i){e.model.nameField&&(e.c.data[e.model.nameField]=i)}}),o=D({get:()=>!e.c.state.options.find(l=>l.value===e.value)&&n.value?n.value:e.value,set:i=>{typeof i=="string"&&(i=i.trim()),!(typeof i!="object"&&e.value==i)&&t("update:value",i)}}),a=()=>e.c.loadDictionary();return o.value!=null&&e.c.loadDictionary(),{ns:r,val:o,nameVal:n,loadOptions:a,onChange:(i,l)=>{n.value=l.label}}},render(){return w(E("a-select"),ae({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:this.ns.b(),disabled:this.c.state.disabled,loading:this.c.state.loading,options:this.c.state.options,placeholder:this.model.placeholder,onDropdownVisibleChange:this.loadOptions,onChange:this.onChange}),null)}}),_u=J(ue.PICKER,()=>new Ou,ku);class Au{component="gct-form-select"}const Eu=L({name:"GctFormSelect",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(e){const t=W("gct-form-select"),r=Oe(),n=D(()=>e.c.state.options&&e.c.state.options.length>0?e.c.state.options:[]);return{ns:t,val:r,options:n}},render(){return w(E("a-select"),ae({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:this.ns.b(),options:this.options,allowClear:!0,disabled:this.c.state.disabled}),null)}}),ju=J(ue.SELECT,()=>new Au,Eu);class Tu{component="gct-form-Modal-select"}const $u=L({name:"GctFormModalSelect",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=W("gct-form-modal-select"),t=B("1"),r=Oe(),n=D({get(){return r.value||void 0},set(a){r.value=a}}),o=D(()=>[{label:"默认",options:[{value:"1",label:"模型一"},{value:"2",label:"模型二"}]},{label:"产品建模",options:[{value:"3",label:"产品信息"},{value:"4",label:"产品类型"}]}]);return{ns:e,val:n,options:o,modelCategory:t}},render(){return w(E("a-input-group"),{class:this.ns.b()},{default:()=>[w(E("a-form-item-rest"),null,{default:()=>[w(E("a-select"),ae({value:this.modelCategory,"onUpdate:value":e=>this.modelCategory=e},this.model.props||{},{placeholder:"请选择",options:[{value:"1",label:"实体"},{value:"2",label:"视图"},{value:"3",label:"数据"}],disabled:this.c.state.disabled}),null)]}),w(E("a-select"),ae({class:this.ns.e("select"),value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{placeholder:"请选择",options:this.options,allowClear:!0,disabled:this.c.state.disabled}),null)]})}}),Pu=J(ue.MODEL_SELECT,()=>new Tu,$u);class Ru{component="gct-form-field-select"}const Mu={class:"gct-box"},Aa=((e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r})(L({__name:"gct-model-select",props:{value:{type:Boolean}},emits:["update:value"],setup(e,{emit:t}){const r=e,n=t,o=D({get(){return r.value},set(c){n("update:value",c)}}),a=B([{key:0,title:"公司名称"},{key:1,title:"ID"},{key:2,title:"创建人"},{key:3,title:"创建部门"},{key:4,title:"修改时间"},{key:5,title:"修改人"},{key:6,title:"修改部门"}]),s=B([]),i=(c,u)=>{console.log()};function l(){o.value=!1}return(c,u)=>{const f=E("a-transfer"),d=E("a-modal");return R(),re(d,{visible:o.value,"onUpdate:visible":u[1]||(u[1]=h=>o.value=h),width:"600px",title:"关联模型字段","ok-text":"确认","cancel-text":"取消",onOk:l},{default:yr(()=>[u[2]||(u[2]=A("div",null,"所属模型:公司",-1)),A("div",Mu,[w(f,{"target-keys":s.value,"onUpdate:targetKeys":u[0]||(u[0]=h=>s.value=h),locale:{itemUnit:"项已选",itemsUnit:"项未选",searchPlaceholder:"请输入搜索内容"},"data-source":a.value,"show-search":"","filter-option":i,render:h=>h.title},null,8,["target-keys","data-source","render"])])]),_:1},8,["visible"])}}}),[["__scopeId","data-v-8b0215cc"]]),Fu=L({name:"GctFormFieldSelect",components:{modal:Aa},props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=W("gct-form-field-select"),t=B(!1);return{ns:e,visible:t}},render(){return w("div",null,[w(E("a-button"),{onClick:()=>this.visible=!0,block:!0},{default:()=>[br("选择模型字段")]}),w(Aa,{value:this.visible,"onUpdate:value":e=>this.visible=e},null)])}}),Iu=J(ue.Field_SELECT,()=>new Ru,Fu);class Lu{component="gct-form-span"}const Hu=L({name:"GctFormSpan",props:{c:{type:Object,required:!0},itemModel:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},setup(e){const t=W("form-span"),{model:r,itemModel:n,c:o}=Ro(e);function a(){const{isSuccessRef:i}=zo(e.value);i.value&&ia.success(_gct.t("sys.copySuccess"))}o.value.loadDictionary();const s=D(()=>{if(r.value.format&&typeof r.value.format=="function")return r.value.format(o.value.data,n.value,o.value);if(e.value==null||e.value==="")return e.value;if(n.value.dictionary){const l=(n.value.dictionary.items||[]).find(c=>c.value==e.value);if(l)return l.label}if(o.value.state.options.length>0){const i=o.value.state.options.find(l=>l.value==e.value);if(i)return i.label}return e.value});return{ns:t,val:s,handleClipboardKey:a}},render(){return w("div",{class:this.ns.b()},[w("span",{class:this.ns.e("info")},[this.val]),this.model.copy&&w("span",{class:this.ns.e("copy")},[w("i",{class:"iconfont icon-fuzhi primary-gct",onClick:this.handleClipboardKey},null)])])}}),Gu=J(ue.SPAN,()=>new Lu,Hu);class Ea{component="gct-form-switch"}const ja=L({name:"GctFormSwitch",props:{model:{type:Object,required:!0},value:{type:String,default:""}},setup(){const e=W("gct-form-switch"),t=Oe();return{ns:e,val:t}},render(){return w("div",{class:this.ns.b()},[w(E("a-switch"),ae({checked:this.val,"onUpdate:checked":e=>this.val=e},this.model.props||{}),null)])}}),Nu=J(st.SWITCH,()=>new Ea,ja),Bu=J(ue.SWITCH,()=>new Ea,ja);class Ta{component="gct-form-text"}const $a=L({name:"GctFormText",props:{model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(e){const t=W("gct-form-text"),r=new cn(e.model),n=Ko(e.model.prefix||e.model.addonBefore,e.model.suffix||e.model.addonAfter);return{ns:t,c:r,val:n}},render(){return w(E("a-input"),ae({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:this.ns.b(),prefix:this.model.prefix,suffix:this.model.suffix,addonBefore:this.model.addonBefore,addonAfter:this.model.addonAfter,placeholder:this.model.placeholder,"show-count":this.model.max!=null,maxlength:this.model.max}),null)}}),Du=J(st.TEXT,()=>new Ta,$a),Vu=J(ue.TEXT,()=>new Ta,$a);class qu{component="gct-form-textarea"}const Wu=L({name:"GctFormTextarea",props:{model:{type:Object,required:!0},value:{type:String,default:null}},emits:["update:value"],setup(){const e=W("gct-form-textarea"),t=Oe();return{ns:e,val:t}},render(){return w(E("a-textarea"),ae({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:this.ns.b(),"auto-size":this.model.autoSize,"show-count":this.model.max!=null,maxlength:this.model.max,placeholder:this.model.placeholder}),null)}}),Uu=J(ue.TEXTAREA,()=>new qu,Wu);function zu(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ge(e)}const Pa=L({name:"GctFormRadio",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=W("gct-form-radio"),t=Oe();return{ns:e,val:t}},render(){const e={...this.model.props||{},class:[this.ns.b()],allowClear:!0,disabled:this.c.state.disabled};if(this.model.buttonMode){let t;return e.class.push(this.ns.m("button")),w(dn,ae({value:this.val,"onUpdate:value":r=>this.val=r,size:"small","button-style":"solid"},e),zu(t=this.c.state.options.map(r=>w(la,{key:r.value,value:r.value},{default:()=>[r.label]})))?t:{default:()=>[t]})}return e.class.push(this.ns.m("radio")),w(dn,ae({value:this.val,"onUpdate:value":t=>this.val=t,options:this.c.state.options},e),null)}});let Ra=class{component="gct-form-radio"};const Ku=J(st.RADIO,()=>new Ra,Pa),Xu=J(ue.RADIO,()=>new Ra,Pa),Yu=L({name:"GctFormInfo",props:{value:{type:String,default:""},model:{type:Object,required:!0}},emits:["update:value"],setup(){const e=W("gct-form-info"),t=Oe();return{ns:e,val:t}},render(){return w("div",{class:this.ns.b()},[this.model.icon?w("span",{class:this.ns.e("icon")},[w("i",{class:`iconfont ${this.model.icon}`},null)]):null,w("span",{class:this.ns.e("content")},[this.val||this.model.content])])}});let Ju=class{component="gct-form-info"};const Zu=J(ue.INFO,()=>new Ju,Yu),Ma=L({name:"GctFormCheckbox",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:t}){const r=W("gct-form-checkbox"),n=Oe(),o=D(()=>n.value),a=D(()=>pn(e.c.state.options));return{ns:r,checked:o,onChange:i=>{a.value.forEach(l=>{e.model.minLength&&i.length<=e.model.minLength&&i.includes(l.value)?l.disabled=!0:l.disabled=!1,l.checked=i.includes(l.value)}),t("update:value",i)},options:a}},render(){const e={...this.model.props||{},class:[this.ns.b(),this.ns.m("checkbox"),this.model.layout==="column"&&"isColumn"],disabled:this.c.state.disabled};return w(sa,ae({value:this.checked,"onUpdate:value":t=>this.checked=t,options:this.options},e,{onChange:this.onChange}),null)}});class Fa{component="gct-form-checkbox"}const Qu=J(st.CHECKBOX,()=>new Fa,Ma),ec=J(ue.CHECKBOX,()=>new Fa,Ma);function tc(e,t){return Fo()?(Io(e,t),!0):!1}const yn=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const rc=Object.prototype.toString,nc=e=>rc.call(e)==="[object Object]",ut=()=>{};function oc(...e){if(e.length!==1)return Lo(...e);const t=e[0];return typeof t=="function"?Wt(Ho(()=>({get:t,set:ut}))):B(t)}function Ia(e,t){function r(...n){return new Promise((o,a)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(o).catch(a)})}return r}const La=e=>e();function ac(e,t={}){let r,n,o=ut;const a=l=>{clearTimeout(l),o(),o=ut};let s;return l=>{const c=be(e),u=be(t.maxWait);return r&&a(r),c<=0||u!==void 0&&u<=0?(n&&(a(n),n=void 0),Promise.resolve(l())):new Promise((f,d)=>{o=t.rejectOnCancel?d:f,s=l,u&&!n&&(n=setTimeout(()=>{r&&a(r),n=void 0,f(s())},u)),r=setTimeout(()=>{n&&a(n),n=void 0,f(l())},c)})}}function ic(e=La,t={}){const{initialState:r="active"}=t,n=oc(r==="active");function o(){n.value=!1}function a(){n.value=!0}const s=(...i)=>{n.value&&e(...i)};return{isActive:Wt(n),pause:o,resume:a,eventFilter:s}}function lc(e){let t;function r(){return t||(t=e()),t}return r.reset=async()=>{const n=t;t=void 0,n&&await n},r}function bn(e){return Array.isArray(e)?e:[e]}function sc(e){return Cr()}function We(e,t=200,r={}){return Ia(ac(t,r),e)}function uc(e,t,r={}){const{eventFilter:n=La,...o}=r;return ge(e,Ia(n,t),o)}function cc(e,t,r={}){const{eventFilter:n,initialState:o="active",...a}=r,{eventFilter:s,pause:i,resume:l,isActive:c}=ic(n,{initialState:o});return{stop:uc(e,t,{...a,eventFilter:s}),pause:i,resume:l,isActive:c}}const fc=cc;function ct(e,t=!0,r){sc()?Vt(e,r):t?e():qt(e)}function dc(e,t,r={}){const{immediate:n=!0,immediateCallback:o=!1}=r,a=Ze(!1);let s;function i(){s&&(clearTimeout(s),s=void 0)}function l(){a.value=!1,i()}function c(...u){o&&e(),i(),a.value=!0,s=setTimeout(()=>{a.value=!1,s=void 0,e(...u)},be(t))}return n&&(a.value=!0,yn&&c()),tc(l),{isPending:Mo(a),start:c,stop:l}}function hc(e,t,r){return ge(e,t,{...r,immediate:!0})}function de(e,t,r){const n=ge(e,(o,a,s)=>{o&&(r?.once&&qt(()=>n()),t(o,a,s))},{...r,once:!1});return n}const ft=yn?window:void 0,Ha=yn?window.navigator:void 0;function Zt(e){var t;const r=be(e);return(t=r?.$el)!==null&&t!==void 0?t:r}function dt(...e){const t=(n,o,a,s)=>(n.addEventListener(o,a,s),()=>n.removeEventListener(o,a,s)),r=D(()=>{const n=bn(be(e[0])).filter(o=>o!=null);return n.every(o=>typeof o!="string")?n:void 0});return hc(()=>{var n,o;return[(n=(o=r.value)===null||o===void 0?void 0:o.map(a=>Zt(a)))!==null&&n!==void 0?n:[ft].filter(a=>a!=null),bn(be(r.value?e[1]:e[0])),bn(Go(r.value?e[2]:e[1])),be(r.value?e[3]:e[2])]},([n,o,a,s],i,l)=>{if(!n?.length||!o?.length||!a?.length)return;const c=nc(s)?{...s}:s,u=n.flatMap(f=>o.flatMap(d=>a.map(h=>t(f,d,h,c))));l(()=>{u.forEach(f=>f())})},{flush:"post"})}function pc(e,t,r={}){const{window:n=ft,ignore:o=[],capture:a=!0,detectIframe:s=!1,controls:i=!1}=r;if(!n)return i?{stop:ut,cancel:ut,trigger:ut}:ut;let l=!0;const c=p=>be(o).some(v=>{if(typeof v=="string")return Array.from(n.document.querySelectorAll(v)).some(m=>m===p.target||p.composedPath().includes(m));{const m=Zt(v);return m&&(p.target===m||p.composedPath().includes(m))}});function u(p){const v=be(p);return v&&v.$.subTree.shapeFlag===16}function f(p,v){const m=be(p),C=m.$.subTree&&m.$.subTree.children;return C==null||!Array.isArray(C)?!1:C.some(x=>x.el===v.target||v.composedPath().includes(x.el))}const d=p=>{const v=Zt(e);if(p.target!=null&&!(!(v instanceof Element)&&u(e)&&f(e,p))&&!(!v||v===p.target||p.composedPath().includes(v))){if("detail"in p&&p.detail===0&&(l=!c(p)),!l){l=!0;return}t(p)}};let h=!1;const y=[dt(n,"click",p=>{h||(h=!0,setTimeout(()=>{h=!1},0),d(p))},{passive:!0,capture:a}),dt(n,"pointerdown",p=>{const v=Zt(e);l=!c(p)&&!!(v&&!p.composedPath().includes(v))},{passive:!0}),s&&dt(n,"blur",p=>{setTimeout(()=>{var v;const m=Zt(e);((v=n.document.activeElement)===null||v===void 0?void 0:v.tagName)==="IFRAME"&&!m?.contains(n.document.activeElement)&&t(p)},0)},{passive:!0})].filter(Boolean),g=()=>y.forEach(p=>p());return i?{stop:g,cancel:()=>{l=!1},trigger:p=>{l=!0,d(p),l=!1}}:g}function vc(){const e=Ze(!1),t=Cr();return t&&Vt(()=>{e.value=!0},t),e}function Ga(e){const t=vc();return D(()=>(t.value,!!e()))}function Na(e,t={}){const{controls:r=!1,navigator:n=Ha}=t,o=Ga(()=>n&&"permissions"in n),a=Ze(),s=typeof e=="string"?{name:e}:e,i=Ze(),l=()=>{var u,f;i.value=(u=(f=a.value)===null||f===void 0?void 0:f.state)!==null&&u!==void 0?u:"prompt"};dt(a,"change",l,{passive:!0});const c=lc(async()=>{if(o.value){if(!a.value)try{a.value=await n.permissions.query(s)}catch{a.value=void 0}finally{l()}if(r)return No(a.value)}});return c(),r?{state:i,isSupported:o,query:c}:i}function gc(e={}){const{navigator:t=Ha,read:r=!1,source:n,copiedDuring:o=1500,legacy:a=!1}=e,s=Ga(()=>t&&"clipboard"in t),i=Na("clipboard-read"),l=Na("clipboard-write"),c=D(()=>s.value||a),u=Ze(""),f=Ze(!1),d=dc(()=>f.value=!1,o,{immediate:!1});async function h(){let m=!(s.value&&v(i.value));if(!m)try{u.value=await t.clipboard.readText()}catch{m=!0}m&&(u.value=p())}c.value&&r&&dt(["copy","cut"],h,{passive:!0});async function y(m=be(n)){if(c.value&&m!=null){let C=!(s.value&&v(l.value));if(!C)try{await t.clipboard.writeText(m)}catch{C=!0}C&&g(m),u.value=m,f.value=!0,d.start()}}function g(m){const C=document.createElement("textarea");C.value=m,C.style.position="absolute",C.style.opacity="0",C.setAttribute("readonly",""),document.body.appendChild(C),C.select(),document.execCommand("copy"),C.remove()}function p(){var m,C,x;return(m=(C=document)===null||C===void 0||(x=C.getSelection)===null||x===void 0||(x=x.call(C))===null||x===void 0?void 0:x.toString())!==null&&m!==void 0?m:""}function v(m){return m==="granted"||m==="prompt"}return{isSupported:c,text:Wt(u),copied:Wt(f),copy:y}}const _r=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ar="__vueuse_ssr_handlers__",mc=yc();function yc(){return Ar in _r||(_r[Ar]=_r[Ar]||{}),_r[Ar]}function bc(e,t){return mc[e]||t}function Cc(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const wc={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Ba="vueuse-storage";function Sc(e,t,r,n={}){var o;const{flush:a="pre",deep:s=!0,listenToStorageChanges:i=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:u,window:f=ft,eventFilter:d,onError:h=T=>{console.error(T)},initOnMounted:y}=n,g=(u?Ze:B)(typeof t=="function"?t():t),p=D(()=>be(e));if(!r)try{r=bc("getDefaultStorage",()=>ft?.localStorage)()}catch(T){h(T)}if(!r)return g;const v=be(t),m=Cc(v),C=(o=n.serializer)!==null&&o!==void 0?o:wc[m],{pause:x,resume:j}=fc(g,T=>z(T),{flush:a,deep:s,eventFilter:d});ge(p,()=>$(),{flush:a});let _=!1;const F=T=>{y&&!_||$(T)},V=T=>{y&&!_||H(T)};f&&i&&(r instanceof Storage?dt(f,"storage",F,{passive:!0}):dt(f,Ba,V)),y?ct(()=>{_=!0,$()}):$();function N(T,I){if(f){const q={key:p.value,oldValue:T,newValue:I,storageArea:r};f.dispatchEvent(r instanceof Storage?new StorageEvent("storage",q):new CustomEvent(Ba,{detail:q}))}}function z(T){try{const I=r.getItem(p.value);if(T==null)N(I,null),r.removeItem(p.value);else{const q=C.write(T);I!==q&&(r.setItem(p.value,q),N(I,q))}}catch(I){h(I)}}function b(T){const I=T?T.newValue:r.getItem(p.value);if(I==null)return l&&v!=null&&r.setItem(p.value,C.write(v)),v;if(!T&&c){const q=C.read(I);return typeof c=="function"?c(q,v):m==="object"&&!Array.isArray(q)?{...v,...q}:q}else return typeof I!="string"?I:C.read(I)}function $(T){if(!(T&&T.storageArea!==r)){if(T&&T.key==null){g.value=v;return}if(!(T&&T.key!==p.value)){x();try{const I=C.write(g.value);(T===void 0||T?.newValue!==I)&&(g.value=b(T))}catch(I){h(I)}finally{T?qt(j):j()}}}}function H(T){$(T.detail)}return g}function Cn(e,t,r={}){const{window:n=ft}=r;return Sc(e,t,n?.localStorage,r)}function Er(e){"@babel/helpers - typeof";return Er=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Er(e)}var xc=/^\s+/,Oc=/\s+$/;function O(e,t){if(e=e||"",t=t||{},e instanceof O)return e;if(!(this instanceof O))return new O(e,t);var r=kc(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}O.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),r,n,o,a,s,i;return r=t.r/255,n=t.g/255,o=t.b/255,r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),n<=.03928?s=n/12.92:s=Math.pow((n+.055)/1.055,2.4),o<=.03928?i=o/12.92:i=Math.pow((o+.055)/1.055,2.4),.2126*a+.7152*s+.0722*i},setAlpha:function(t){return this._a=za(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=Va(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=Va(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),o=Math.round(t.v*100);return this._a==1?"hsv("+r+", "+n+"%, "+o+"%)":"hsva("+r+", "+n+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var t=Da(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=Da(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),o=Math.round(t.l*100);return this._a==1?"hsl("+r+", "+n+"%, "+o+"%)":"hsla("+r+", "+n+"%, "+o+"%, "+this._roundA+")"},toHex:function(t){return qa(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return jc(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Z(this._r,255)*100)+"%",g:Math.round(Z(this._g,255)*100)+"%",b:Math.round(Z(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Z(this._r,255)*100)+"%, "+Math.round(Z(this._g,255)*100)+"%, "+Math.round(Z(this._b,255)*100)+"%)":"rgba("+Math.round(Z(this._r,255)*100)+"%, "+Math.round(Z(this._g,255)*100)+"%, "+Math.round(Z(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Bc[qa(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+Wa(this._r,this._g,this._b,this._a),n=r,o=this._gradientType?"GradientType = 1, ":"";if(t){var a=O(t);n="#"+Wa(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+r+",endColorstr="+n+")"},toString:function(t){var r=!!t;t=t||this._format;var n=!1,o=this._a<1&&this._a>=0,a=!r&&o&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return a?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return O(this.toString())},_applyModification:function(t,r){var n=t.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(Rc,arguments)},brighten:function(){return this._applyModification(Mc,arguments)},darken:function(){return this._applyModification(Fc,arguments)},desaturate:function(){return this._applyModification(Tc,arguments)},saturate:function(){return this._applyModification($c,arguments)},greyscale:function(){return this._applyModification(Pc,arguments)},spin:function(){return this._applyModification(Ic,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(Gc,arguments)},complement:function(){return this._applyCombination(Lc,arguments)},monochromatic:function(){return this._applyCombination(Nc,arguments)},splitcomplement:function(){return this._applyCombination(Hc,arguments)},triad:function(){return this._applyCombination(Ua,[3])},tetrad:function(){return this._applyCombination(Ua,[4])}},O.fromRatio=function(e,t){if(Er(e)=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=Qt(e[n]));e=r}return O(e,t)};function kc(e){var t={r:0,g:0,b:0},r=1,n=null,o=null,a=null,s=!1,i=!1;return typeof e=="string"&&(e=Wc(e)),Er(e)=="object"&&(Ue(e.r)&&Ue(e.g)&&Ue(e.b)?(t=_c(e.r,e.g,e.b),s=!0,i=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ue(e.h)&&Ue(e.s)&&Ue(e.v)?(n=Qt(e.s),o=Qt(e.v),t=Ec(e.h,n,o),s=!0,i="hsv"):Ue(e.h)&&Ue(e.s)&&Ue(e.l)&&(n=Qt(e.s),a=Qt(e.l),t=Ac(e.h,n,a),s=!0,i="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=za(r),{ok:s,format:e.format||i,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}function _c(e,t,r){return{r:Z(e,255)*255,g:Z(t,255)*255,b:Z(r,255)*255}}function Da(e,t,r){e=Z(e,255),t=Z(t,255),r=Z(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),a,s,i=(n+o)/2;if(n==o)a=s=0;else{var l=n-o;switch(s=i>.5?l/(2-n-o):l/(n+o),n){case e:a=(t-r)/l+(t<r?6:0);break;case t:a=(r-e)/l+2;break;case r:a=(e-t)/l+4;break}a/=6}return{h:a,s,l:i}}function Ac(e,t,r){var n,o,a;e=Z(e,360),t=Z(t,100),r=Z(r,100);function s(c,u,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?c+(u-c)*6*f:f<1/2?u:f<2/3?c+(u-c)*(2/3-f)*6:c}if(t===0)n=o=a=r;else{var i=r<.5?r*(1+t):r+t-r*t,l=2*r-i;n=s(l,i,e+1/3),o=s(l,i,e),a=s(l,i,e-1/3)}return{r:n*255,g:o*255,b:a*255}}function Va(e,t,r){e=Z(e,255),t=Z(t,255),r=Z(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),a,s,i=n,l=n-o;if(s=n===0?0:l/n,n==o)a=0;else{switch(n){case e:a=(t-r)/l+(t<r?6:0);break;case t:a=(r-e)/l+2;break;case r:a=(e-t)/l+4;break}a/=6}return{h:a,s,v:i}}function Ec(e,t,r){e=Z(e,360)*6,t=Z(t,100),r=Z(r,100);var n=Math.floor(e),o=e-n,a=r*(1-t),s=r*(1-o*t),i=r*(1-(1-o)*t),l=n%6,c=[r,s,a,a,i,r][l],u=[i,r,r,s,a,a][l],f=[a,a,i,r,r,s][l];return{r:c*255,g:u*255,b:f*255}}function qa(e,t,r,n){var o=[Ie(Math.round(e).toString(16)),Ie(Math.round(t).toString(16)),Ie(Math.round(r).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function jc(e,t,r,n,o){var a=[Ie(Math.round(e).toString(16)),Ie(Math.round(t).toString(16)),Ie(Math.round(r).toString(16)),Ie(Ka(n))];return o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function Wa(e,t,r,n){var o=[Ie(Ka(n)),Ie(Math.round(e).toString(16)),Ie(Math.round(t).toString(16)),Ie(Math.round(r).toString(16))];return o.join("")}O.equals=function(e,t){return!e||!t?!1:O(e).toRgbString()==O(t).toRgbString()},O.random=function(){return O.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function Tc(e,t){t=t===0?0:t||10;var r=O(e).toHsl();return r.s-=t/100,r.s=jr(r.s),O(r)}function $c(e,t){t=t===0?0:t||10;var r=O(e).toHsl();return r.s+=t/100,r.s=jr(r.s),O(r)}function Pc(e){return O(e).desaturate(100)}function Rc(e,t){t=t===0?0:t||10;var r=O(e).toHsl();return r.l+=t/100,r.l=jr(r.l),O(r)}function Mc(e,t){t=t===0?0:t||10;var r=O(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),O(r)}function Fc(e,t){t=t===0?0:t||10;var r=O(e).toHsl();return r.l-=t/100,r.l=jr(r.l),O(r)}function Ic(e,t){var r=O(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,O(r)}function Lc(e){var t=O(e).toHsl();return t.h=(t.h+180)%360,O(t)}function Ua(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=O(e).toHsl(),n=[O(e)],o=360/t,a=1;a<t;a++)n.push(O({h:(r.h+a*o)%360,s:r.s,l:r.l}));return n}function Hc(e){var t=O(e).toHsl(),r=t.h;return[O(e),O({h:(r+72)%360,s:t.s,l:t.l}),O({h:(r+216)%360,s:t.s,l:t.l})]}function Gc(e,t,r){t=t||6,r=r||30;var n=O(e).toHsl(),o=360/r,a=[O(e)];for(n.h=(n.h-(o*t>>1)+720)%360;--t;)n.h=(n.h+o)%360,a.push(O(n));return a}function Nc(e,t){t=t||6;for(var r=O(e).toHsv(),n=r.h,o=r.s,a=r.v,s=[],i=1/t;t--;)s.push(O({h:n,s:o,v:a})),a=(a+i)%1;return s}O.mix=function(e,t,r){r=r===0?0:r||50;var n=O(e).toRgb(),o=O(t).toRgb(),a=r/100,s={r:(o.r-n.r)*a+n.r,g:(o.g-n.g)*a+n.g,b:(o.b-n.b)*a+n.b,a:(o.a-n.a)*a+n.a};return O(s)},O.readability=function(e,t){var r=O(e),n=O(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},O.isReadable=function(e,t,r){var n=O.readability(e,t),o,a;switch(a=!1,o=Uc(r),o.level+o.size){case"AAsmall":case"AAAlarge":a=n>=4.5;break;case"AAlarge":a=n>=3;break;case"AAAsmall":a=n>=7;break}return a},O.mostReadable=function(e,t,r){var n=null,o=0,a,s,i,l;r=r||{},s=r.includeFallbackColors,i=r.level,l=r.size;for(var c=0;c<t.length;c++)a=O.readability(e,t[c]),a>o&&(o=a,n=O(t[c]));return O.isReadable(e,n,{level:i,size:l})||!s?n:(r.includeFallbackColors=!1,O.mostReadable(e,["#fff","#000"],r))};var wn=O.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Bc=O.hexNames=Dc(wn);function Dc(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function za(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Z(e,t){Vc(e)&&(e="100%");var r=qc(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function jr(e){return Math.min(1,Math.max(0,e))}function ke(e){return parseInt(e,16)}function Vc(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function qc(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Ie(e){return e.length==1?"0"+e:""+e}function Qt(e){return e<=1&&(e=e*100+"%"),e}function Ka(e){return Math.round(parseFloat(e)*255).toString(16)}function Xa(e){return ke(e)/255}var Le=(function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",r="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",o="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function Ue(e){return!!Le.CSS_UNIT.exec(e)}function Wc(e){e=e.replace(xc,"").replace(Oc,"").toLowerCase();var t=!1;if(wn[e])e=wn[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=Le.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=Le.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Le.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=Le.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Le.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=Le.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Le.hex8.exec(e))?{r:ke(r[1]),g:ke(r[2]),b:ke(r[3]),a:Xa(r[4]),format:t?"name":"hex8"}:(r=Le.hex6.exec(e))?{r:ke(r[1]),g:ke(r[2]),b:ke(r[3]),format:t?"name":"hex"}:(r=Le.hex4.exec(e))?{r:ke(r[1]+""+r[1]),g:ke(r[2]+""+r[2]),b:ke(r[3]+""+r[3]),a:Xa(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=Le.hex3.exec(e))?{r:ke(r[1]+""+r[1]),g:ke(r[2]+""+r[2]),b:ke(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function Uc(e){var t,r;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:t,size:r}}var Tr={},Ya;function zc(){if(Ya)return Tr;Ya=1;var e=e||{};e.stringify=(function(){var t={"visit_linear-gradient":function(r){return t.visit_gradient(r)},"visit_repeating-linear-gradient":function(r){return t.visit_gradient(r)},"visit_radial-gradient":function(r){return t.visit_gradient(r)},"visit_repeating-radial-gradient":function(r){return t.visit_gradient(r)},visit_gradient:function(r){var n=t.visit(r.orientation);return n&&(n+=", "),r.type+"("+n+t.visit(r.colorStops)+")"},visit_shape:function(r){var n=r.value,o=t.visit(r.at),a=t.visit(r.style);return a&&(n+=" "+a),o&&(n+=" at "+o),n},"visit_default-radial":function(r){var n="",o=t.visit(r.at);return o&&(n+=o),n},"visit_extent-keyword":function(r){var n=r.value,o=t.visit(r.at);return o&&(n+=" at "+o),n},"visit_position-keyword":function(r){return r.value},visit_position:function(r){return t.visit(r.value.x)+" "+t.visit(r.value.y)},"visit_%":function(r){return r.value+"%"},visit_em:function(r){return r.value+"em"},visit_px:function(r){return r.value+"px"},visit_calc:function(r){return"calc("+r.value+")"},visit_literal:function(r){return t.visit_color(r.value,r)},visit_hex:function(r){return t.visit_color("#"+r.value,r)},visit_rgb:function(r){return t.visit_color("rgb("+r.value.join(", ")+")",r)},visit_rgba:function(r){return t.visit_color("rgba("+r.value.join(", ")+")",r)},visit_hsl:function(r){return t.visit_color("hsl("+r.value[0]+", "+r.value[1]+"%, "+r.value[2]+"%)",r)},visit_hsla:function(r){return t.visit_color("hsla("+r.value[0]+", "+r.value[1]+"%, "+r.value[2]+"%, "+r.value[3]+")",r)},visit_var:function(r){return t.visit_color("var("+r.value+")",r)},visit_color:function(r,n){var o=r,a=t.visit(n.length);return a&&(o+=" "+a),o},visit_angular:function(r){return r.value+"deg"},visit_directional:function(r){return"to "+r.value},visit_array:function(r){var n="",o=r.length;return r.forEach(function(a,s){n+=t.visit(a),s<o-1&&(n+=", ")}),n},visit_object:function(r){return r.width&&r.height?t.visit(r.width)+" "+t.visit(r.height):""},visit:function(r){if(!r)return"";if(r instanceof Array)return t.visit_array(r);if(typeof r=="object"&&!r.type)return t.visit_object(r);if(r.type){var n=t["visit_"+r.type];if(n)return n(r);throw Error("Missing visitor visit_"+r.type)}else throw Error("Invalid node.")}};return function(r){return t.visit(r)}})();var e=e||{};return e.parse=(function(){var t={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,radianValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))rad/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,varColor:/^var/i,calcValue:/^calc/i,variableName:/^(--[a-zA-Z0-9-,\s\#]+)/,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/,hslColor:/^hsl/i,hslaColor:/^hsla/i},r="";function n(k){var P=new Error(r+": "+k);throw P.source=r,P}function o(){var k=a();return r.length>0&&n("Invalid input not EOF"),k}function a(){return x(s)}function s(){return i("linear-gradient",t.linearGradient,c)||i("repeating-linear-gradient",t.repeatingLinearGradient,c)||i("radial-gradient",t.radialGradient,d)||i("repeating-radial-gradient",t.repeatingRadialGradient,d)}function i(k,P,G){return l(P,function(te){var ye=G();return ye&&(Y(t.comma)||n("Missing comma before color stops")),{type:k,orientation:ye,colorStops:x(j)}})}function l(k,P){var G=Y(k);if(G){Y(t.startCall)||n("Missing (");var te=P(G);return Y(t.endCall)||n("Missing )"),te}}function c(){var k=u();if(k)return k;var P=oe("position-keyword",t.positionKeywords,1);return P?{type:"directional",value:P.value}:f()}function u(){return oe("directional",t.sideOrCorner,1)}function f(){return oe("angular",t.angleValue,1)||oe("angular",t.radianValue,1)}function d(){var k,P=h(),G;return P&&(k=[],k.push(P),G=r,Y(t.comma)&&(P=h(),P?k.push(P):r=G)),k}function h(){var k=y()||g();if(k)k.at=v();else{var P=p();if(P){k=P;var G=v();G&&(k.at=G)}else{var te=v();if(te)k={type:"default-radial",at:te};else{var ye=m();ye&&(k={type:"default-radial",at:ye})}}}return k}function y(){var k=oe("shape",/^(circle)/i,0);return k&&(k.style=Fe()||p()),k}function g(){var k=oe("shape",/^(ellipse)/i,0);return k&&(k.style=m()||q()||p()),k}function p(){return oe("extent-keyword",t.extentKeywords,1)}function v(){if(oe("position",/^at/,0)){var k=m();return k||n("Missing positioning value"),k}}function m(){var k=C();if(k.x||k.y)return{type:"position",value:k}}function C(){return{x:q(),y:q()}}function x(k){var P=k(),G=[];if(P)for(G.push(P);Y(t.comma);)P=k(),P?G.push(P):n("One extra comma");return G}function j(){var k=_();return k||n("Expected color definition"),k.length=q(),k}function _(){return V()||H()||$()||z()||N()||b()||F()}function F(){return oe("literal",t.literalColor,0)}function V(){return oe("hex",t.hexColor,1)}function N(){return l(t.rgbColor,function(){return{type:"rgb",value:x(I)}})}function z(){return l(t.rgbaColor,function(){return{type:"rgba",value:x(I)}})}function b(){return l(t.varColor,function(){return{type:"var",value:T()}})}function $(){return l(t.hslColor,function(){var k=Y(t.percentageValue);k&&n("HSL hue value must be a number in degrees (0-360) or normalized (-360 to 360), not a percentage");var P=I();Y(t.comma);var G=Y(t.percentageValue),te=G?G[1]:null;Y(t.comma),G=Y(t.percentageValue);var ye=G?G[1]:null;return(!te||!ye)&&n("Expected percentage value for saturation and lightness in HSL"),{type:"hsl",value:[P,te,ye]}})}function H(){return l(t.hslaColor,function(){var k=I();Y(t.comma);var P=Y(t.percentageValue),G=P?P[1]:null;Y(t.comma),P=Y(t.percentageValue);var te=P?P[1]:null;Y(t.comma);var ye=I();return(!G||!te)&&n("Expected percentage value for saturation and lightness in HSLA"),{type:"hsla",value:[k,G,te,ye]}})}function T(){return Y(t.variableName)[1]}function I(){return Y(t.number)[1]}function q(){return oe("%",t.percentageValue,1)||ve()||at()||Fe()}function ve(){return oe("position-keyword",t.positionKeywords,1)}function at(){return l(t.calcValue,function(){for(var k=1,P=0;k>0&&P<r.length;){var G=r.charAt(P);G==="("?k++:G===")"&&k--,P++}k>0&&n("Missing closing parenthesis in calc() expression");var te=r.substring(0,P-1);return He(P-1),{type:"calc",value:te}})}function Fe(){return oe("px",t.pixelValue,1)||oe("em",t.emValue,1)}function oe(k,P,G){var te=Y(P);if(te)return{type:k,value:te[G]}}function Y(k){var P,G;return G=/^[\n\r\t\s]+/.exec(r),G&&He(G[0].length),P=k.exec(r),P&&He(P[0].length),P}function He(k){r=r.substr(k)}return function(k){return r=k.toString().trim(),r.endsWith(";")&&(r=r.slice(0,-1)),o()}})(),Tr.parse=e.parse,Tr.stringify=e.stringify,Tr}var Ja=zc(),Ce="top",je="bottom",Te="right",we="left",Sn="auto",er=[Ce,je,Te,we],Ot="start",tr="end",Kc="clippingParents",Za="viewport",rr="popper",Xc="reference",Qa=er.reduce(function(e,t){return e.concat([t+"-"+Ot,t+"-"+tr])},[]),ei=[].concat(er,[Sn]).reduce(function(e,t){return e.concat([t,t+"-"+Ot,t+"-"+tr])},[]),Yc="beforeRead",Jc="read",Zc="afterRead",Qc="beforeMain",ef="main",tf="afterMain",rf="beforeWrite",nf="write",of="afterWrite",af=[Yc,Jc,Zc,Qc,ef,tf,rf,nf,of];function Ne(e){return e?(e.nodeName||"").toLowerCase():null}function _e(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ht(e){var t=_e(e).Element;return e instanceof t||e instanceof Element}function $e(e){var t=_e(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function xn(e){if(typeof ShadowRoot>"u")return!1;var t=_e(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function lf(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},a=t.elements[r];!$e(a)||!Ne(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(s){var i=o[s];i===!1?a.removeAttribute(s):a.setAttribute(s,i===!0?"":i)}))})}function sf(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],a=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),i=s.reduce(function(l,c){return l[c]="",l},{});!$e(o)||!Ne(o)||(Object.assign(o.style,i),Object.keys(a).forEach(function(l){o.removeAttribute(l)}))})}}const uf={name:"applyStyles",enabled:!0,phase:"write",fn:lf,effect:sf,requires:["computeStyles"]};function Be(e){return e.split("-")[0]}var pt=Math.max,$r=Math.min,kt=Math.round;function On(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ti(){return!/^((?!chrome|android).)*safari/i.test(On())}function _t(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&$e(e)&&(o=e.offsetWidth>0&&kt(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&kt(n.height)/e.offsetHeight||1);var s=ht(e)?_e(e):window,i=s.visualViewport,l=!ti()&&r,c=(n.left+(l&&i?i.offsetLeft:0))/o,u=(n.top+(l&&i?i.offsetTop:0))/a,f=n.width/o,d=n.height/a;return{width:f,height:d,top:u,right:c+f,bottom:u+d,left:c,x:c,y:u}}function kn(e){var t=_t(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function ri(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&xn(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ze(e){return _e(e).getComputedStyle(e)}function cf(e){return["table","td","th"].indexOf(Ne(e))>=0}function tt(e){return((ht(e)?e.ownerDocument:e.document)||window.document).documentElement}function Pr(e){return Ne(e)==="html"?e:e.assignedSlot||e.parentNode||(xn(e)?e.host:null)||tt(e)}function ni(e){return!$e(e)||ze(e).position==="fixed"?null:e.offsetParent}function ff(e){var t=/firefox/i.test(On()),r=/Trident/i.test(On());if(r&&$e(e)){var n=ze(e);if(n.position==="fixed")return null}var o=Pr(e);for(xn(o)&&(o=o.host);$e(o)&&["html","body"].indexOf(Ne(o))<0;){var a=ze(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function nr(e){for(var t=_e(e),r=ni(e);r&&cf(r)&&ze(r).position==="static";)r=ni(r);return r&&(Ne(r)==="html"||Ne(r)==="body"&&ze(r).position==="static")?t:r||ff(e)||t}function _n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function or(e,t,r){return pt(e,$r(t,r))}function df(e,t,r){var n=or(e,t,r);return n>r?r:n}function oi(){return{top:0,right:0,bottom:0,left:0}}function ai(e){return Object.assign({},oi(),e)}function ii(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var hf=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,ai(typeof t!="number"?t:ii(t,er))};function pf(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,s=r.modifiersData.popperOffsets,i=Be(r.placement),l=_n(i),c=[we,Te].indexOf(i)>=0,u=c?"height":"width";if(!(!a||!s)){var f=hf(o.padding,r),d=kn(a),h=l==="y"?Ce:we,y=l==="y"?je:Te,g=r.rects.reference[u]+r.rects.reference[l]-s[l]-r.rects.popper[u],p=s[l]-r.rects.reference[l],v=nr(a),m=v?l==="y"?v.clientHeight||0:v.clientWidth||0:0,C=g/2-p/2,x=f[h],j=m-d[u]-f[y],_=m/2-d[u]/2+C,F=or(x,_,j),V=l;r.modifiersData[n]=(t={},t[V]=F,t.centerOffset=F-_,t)}}function vf(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||ri(t.elements.popper,o)&&(t.elements.arrow=o))}const gf={name:"arrow",enabled:!0,phase:"main",fn:pf,effect:vf,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function At(e){return e.split("-")[1]}var mf={top:"auto",right:"auto",bottom:"auto",left:"auto"};function yf(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:kt(r*o)/o||0,y:kt(n*o)/o||0}}function li(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,i=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,d=s.x,h=d===void 0?0:d,y=s.y,g=y===void 0?0:y,p=typeof u=="function"?u({x:h,y:g}):{x:h,y:g};h=p.x,g=p.y;var v=s.hasOwnProperty("x"),m=s.hasOwnProperty("y"),C=we,x=Ce,j=window;if(c){var _=nr(r),F="clientHeight",V="clientWidth";if(_===_e(r)&&(_=tt(r),ze(_).position!=="static"&&i==="absolute"&&(F="scrollHeight",V="scrollWidth")),_=_,o===Ce||(o===we||o===Te)&&a===tr){x=je;var N=f&&_===j&&j.visualViewport?j.visualViewport.height:_[F];g-=N-n.height,g*=l?1:-1}if(o===we||(o===Ce||o===je)&&a===tr){C=Te;var z=f&&_===j&&j.visualViewport?j.visualViewport.width:_[V];h-=z-n.width,h*=l?1:-1}}var b=Object.assign({position:i},c&&mf),$=u===!0?yf({x:h,y:g},_e(r)):{x:h,y:g};if(h=$.x,g=$.y,l){var H;return Object.assign({},b,(H={},H[x]=m?"0":"",H[C]=v?"0":"",H.transform=(j.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",H))}return Object.assign({},b,(t={},t[x]=m?g+"px":"",t[C]=v?h+"px":"",t.transform="",t))}function bf(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,s=a===void 0?!0:a,i=r.roundOffsets,l=i===void 0?!0:i,c={placement:Be(t.placement),variation:At(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,li(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,li(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Cf={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:bf,data:{}};var Rr={passive:!0};function wf(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=o===void 0?!0:o,s=n.resize,i=s===void 0?!0:s,l=_e(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(u){u.addEventListener("scroll",r.update,Rr)}),i&&l.addEventListener("resize",r.update,Rr),function(){a&&c.forEach(function(u){u.removeEventListener("scroll",r.update,Rr)}),i&&l.removeEventListener("resize",r.update,Rr)}}const Sf={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:wf,data:{}};var xf={left:"right",right:"left",bottom:"top",top:"bottom"};function Mr(e){return e.replace(/left|right|bottom|top/g,function(t){return xf[t]})}var Of={start:"end",end:"start"};function si(e){return e.replace(/start|end/g,function(t){return Of[t]})}function An(e){var t=_e(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function En(e){return _t(tt(e)).left+An(e).scrollLeft}function kf(e,t){var r=_e(e),n=tt(e),o=r.visualViewport,a=n.clientWidth,s=n.clientHeight,i=0,l=0;if(o){a=o.width,s=o.height;var c=ti();(c||!c&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}return{width:a,height:s,x:i+En(e),y:l}}function _f(e){var t,r=tt(e),n=An(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=pt(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=pt(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),i=-n.scrollLeft+En(e),l=-n.scrollTop;return ze(o||r).direction==="rtl"&&(i+=pt(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:i,y:l}}function jn(e){var t=ze(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function ui(e){return["html","body","#document"].indexOf(Ne(e))>=0?e.ownerDocument.body:$e(e)&&jn(e)?e:ui(Pr(e))}function ar(e,t){var r;t===void 0&&(t=[]);var n=ui(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=_e(n),s=o?[a].concat(a.visualViewport||[],jn(n)?n:[]):n,i=t.concat(s);return o?i:i.concat(ar(Pr(s)))}function Tn(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Af(e,t){var r=_t(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function ci(e,t,r){return t===Za?Tn(kf(e,r)):ht(t)?Af(t,r):Tn(_f(tt(e)))}function Ef(e){var t=ar(Pr(e)),r=["absolute","fixed"].indexOf(ze(e).position)>=0,n=r&&$e(e)?nr(e):e;return ht(n)?t.filter(function(o){return ht(o)&&ri(o,n)&&Ne(o)!=="body"}):[]}function jf(e,t,r,n){var o=t==="clippingParents"?Ef(e):[].concat(t),a=[].concat(o,[r]),s=a[0],i=a.reduce(function(l,c){var u=ci(e,c,n);return l.top=pt(u.top,l.top),l.right=$r(u.right,l.right),l.bottom=$r(u.bottom,l.bottom),l.left=pt(u.left,l.left),l},ci(e,s,n));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function fi(e){var t=e.reference,r=e.element,n=e.placement,o=n?Be(n):null,a=n?At(n):null,s=t.x+t.width/2-r.width/2,i=t.y+t.height/2-r.height/2,l;switch(o){case Ce:l={x:s,y:t.y-r.height};break;case je:l={x:s,y:t.y+t.height};break;case Te:l={x:t.x+t.width,y:i};break;case we:l={x:t.x-r.width,y:i};break;default:l={x:t.x,y:t.y}}var c=o?_n(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(a){case Ot:l[c]=l[c]-(t[u]/2-r[u]/2);break;case tr:l[c]=l[c]+(t[u]/2-r[u]/2);break}}return l}function ir(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.strategy,s=a===void 0?e.strategy:a,i=r.boundary,l=i===void 0?Kc:i,c=r.rootBoundary,u=c===void 0?Za:c,f=r.elementContext,d=f===void 0?rr:f,h=r.altBoundary,y=h===void 0?!1:h,g=r.padding,p=g===void 0?0:g,v=ai(typeof p!="number"?p:ii(p,er)),m=d===rr?Xc:rr,C=e.rects.popper,x=e.elements[y?m:d],j=jf(ht(x)?x:x.contextElement||tt(e.elements.popper),l,u,s),_=_t(e.elements.reference),F=fi({reference:_,element:C,placement:o}),V=Tn(Object.assign({},C,F)),N=d===rr?V:_,z={top:j.top-N.top+v.top,bottom:N.bottom-j.bottom+v.bottom,left:j.left-N.left+v.left,right:N.right-j.right+v.right},b=e.modifiersData.offset;if(d===rr&&b){var $=b[o];Object.keys(z).forEach(function(H){var T=[Te,je].indexOf(H)>=0?1:-1,I=[Ce,je].indexOf(H)>=0?"y":"x";z[H]+=$[I]*T})}return z}function Tf(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,s=r.padding,i=r.flipVariations,l=r.allowedAutoPlacements,c=l===void 0?ei:l,u=At(n),f=u?i?Qa:Qa.filter(function(y){return At(y)===u}):er,d=f.filter(function(y){return c.indexOf(y)>=0});d.length===0&&(d=f);var h=d.reduce(function(y,g){return y[g]=ir(e,{placement:g,boundary:o,rootBoundary:a,padding:s})[Be(g)],y},{});return Object.keys(h).sort(function(y,g){return h[y]-h[g]})}function $f(e){if(Be(e)===Sn)return[];var t=Mr(e);return[si(e),t,si(t)]}function Pf(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,s=r.altAxis,i=s===void 0?!0:s,l=r.fallbackPlacements,c=r.padding,u=r.boundary,f=r.rootBoundary,d=r.altBoundary,h=r.flipVariations,y=h===void 0?!0:h,g=r.allowedAutoPlacements,p=t.options.placement,v=Be(p),m=v===p,C=l||(m||!y?[Mr(p)]:$f(p)),x=[p].concat(C).reduce(function(P,G){return P.concat(Be(G)===Sn?Tf(t,{placement:G,boundary:u,rootBoundary:f,padding:c,flipVariations:y,allowedAutoPlacements:g}):G)},[]),j=t.rects.reference,_=t.rects.popper,F=new Map,V=!0,N=x[0],z=0;z<x.length;z++){var b=x[z],$=Be(b),H=At(b)===Ot,T=[Ce,je].indexOf($)>=0,I=T?"width":"height",q=ir(t,{placement:b,boundary:u,rootBoundary:f,altBoundary:d,padding:c}),ve=T?H?Te:we:H?je:Ce;j[I]>_[I]&&(ve=Mr(ve));var at=Mr(ve),Fe=[];if(a&&Fe.push(q[$]<=0),i&&Fe.push(q[ve]<=0,q[at]<=0),Fe.every(function(P){return P})){N=b,V=!1;break}F.set(b,Fe)}if(V)for(var oe=y?3:1,Y=function(G){var te=x.find(function(ye){var wt=F.get(ye);if(wt)return wt.slice(0,G).every(function(jo){return jo})});if(te)return N=te,"break"},He=oe;He>0;He--){var k=Y(He);if(k==="break")break}t.placement!==N&&(t.modifiersData[n]._skip=!0,t.placement=N,t.reset=!0)}}const Rf={name:"flip",enabled:!0,phase:"main",fn:Pf,requiresIfExists:["offset"],data:{_skip:!1}};function di(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function hi(e){return[Ce,Te,je,we].some(function(t){return e[t]>=0})}function Mf(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=ir(t,{elementContext:"reference"}),i=ir(t,{altBoundary:!0}),l=di(s,n),c=di(i,o,a),u=hi(l),f=hi(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const Ff={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Mf};function If(e,t,r){var n=Be(e),o=[we,Ce].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=a[0],i=a[1];return s=s||0,i=(i||0)*o,[we,Te].indexOf(n)>=0?{x:i,y:s}:{x:s,y:i}}function Lf(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,s=ei.reduce(function(u,f){return u[f]=If(f,t.rects,a),u},{}),i=s[t.placement],l=i.x,c=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=s}const Hf={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Lf};function Gf(e){var t=e.state,r=e.name;t.modifiersData[r]=fi({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Nf={name:"popperOffsets",enabled:!0,phase:"read",fn:Gf,data:{}};function Bf(e){return e==="x"?"y":"x"}function Df(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=o===void 0?!0:o,s=r.altAxis,i=s===void 0?!1:s,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,f=r.padding,d=r.tether,h=d===void 0?!0:d,y=r.tetherOffset,g=y===void 0?0:y,p=ir(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),v=Be(t.placement),m=At(t.placement),C=!m,x=_n(v),j=Bf(x),_=t.modifiersData.popperOffsets,F=t.rects.reference,V=t.rects.popper,N=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,z=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),b=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,$={x:0,y:0};if(_){if(a){var H,T=x==="y"?Ce:we,I=x==="y"?je:Te,q=x==="y"?"height":"width",ve=_[x],at=ve+p[T],Fe=ve-p[I],oe=h?-V[q]/2:0,Y=m===Ot?F[q]:V[q],He=m===Ot?-V[q]:-F[q],k=t.elements.arrow,P=h&&k?kn(k):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:oi(),te=G[T],ye=G[I],wt=or(0,F[q],P[q]),jo=C?F[q]/2-oe-wt-te-z.mainAxis:Y-wt-te-z.mainAxis,Wg=C?-F[q]/2+oe+wt+ye+z.mainAxis:He+wt+ye+z.mainAxis,To=t.elements.arrow&&nr(t.elements.arrow),Ug=To?x==="y"?To.clientTop||0:To.clientLeft||0:0,ss=(H=b?.[x])!=null?H:0,zg=ve+jo-ss-Ug,Kg=ve+Wg-ss,us=or(h?$r(at,zg):at,ve,h?pt(Fe,Kg):Fe);_[x]=us,$[x]=us-ve}if(i){var cs,Xg=x==="x"?Ce:we,Yg=x==="x"?je:Te,St=_[j],nn=j==="y"?"height":"width",fs=St+p[Xg],ds=St-p[Yg],$o=[Ce,we].indexOf(v)!==-1,hs=(cs=b?.[j])!=null?cs:0,ps=$o?fs:St-F[nn]-V[nn]-hs+z.altAxis,vs=$o?St+F[nn]+V[nn]-hs-z.altAxis:ds,gs=h&&$o?df(ps,St,vs):or(h?ps:fs,St,h?vs:ds);_[j]=gs,$[j]=gs-St}t.modifiersData[n]=$}}const Vf={name:"preventOverflow",enabled:!0,phase:"main",fn:Df,requiresIfExists:["offset"]};function qf(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Wf(e){return e===_e(e)||!$e(e)?An(e):qf(e)}function Uf(e){var t=e.getBoundingClientRect(),r=kt(t.width)/e.offsetWidth||1,n=kt(t.height)/e.offsetHeight||1;return r!==1||n!==1}function zf(e,t,r){r===void 0&&(r=!1);var n=$e(t),o=$e(t)&&Uf(t),a=tt(t),s=_t(e,o,r),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((Ne(t)!=="body"||jn(a))&&(i=Wf(t)),$e(t)?(l=_t(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=En(a))),{x:s.left+i.scrollLeft-l.x,y:s.top+i.scrollTop-l.y,width:s.width,height:s.height}}function Kf(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function o(a){r.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(i){if(!r.has(i)){var l=t.get(i);l&&o(l)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||o(a)}),n}function Xf(e){var t=Kf(e);return af.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function Yf(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Jf(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var pi={placement:"bottom",modifiers:[],strategy:"absolute"};function vi(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Zf(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,a=o===void 0?pi:o;return function(i,l,c){c===void 0&&(c=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},pi,a),modifiersData:{},elements:{reference:i,popper:l},attributes:{},styles:{}},f=[],d=!1,h={state:u,setOptions:function(v){var m=typeof v=="function"?v(u.options):v;g(),u.options=Object.assign({},a,u.options,m),u.scrollParents={reference:ht(i)?ar(i):i.contextElement?ar(i.contextElement):[],popper:ar(l)};var C=Xf(Jf([].concat(n,u.options.modifiers)));return u.orderedModifiers=C.filter(function(x){return x.enabled}),y(),h.update()},forceUpdate:function(){if(!d){var v=u.elements,m=v.reference,C=v.popper;if(vi(m,C)){u.rects={reference:zf(m,nr(C),u.options.strategy==="fixed"),popper:kn(C)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(z){return u.modifiersData[z.name]=Object.assign({},z.data)});for(var x=0;x<u.orderedModifiers.length;x++){if(u.reset===!0){u.reset=!1,x=-1;continue}var j=u.orderedModifiers[x],_=j.fn,F=j.options,V=F===void 0?{}:F,N=j.name;typeof _=="function"&&(u=_({state:u,options:V,name:N,instance:h})||u)}}}},update:Yf(function(){return new Promise(function(p){h.forceUpdate(),p(u)})}),destroy:function(){g(),d=!0}};if(!vi(i,l))return h;h.setOptions(c).then(function(p){!d&&c.onFirstUpdate&&c.onFirstUpdate(p)});function y(){u.orderedModifiers.forEach(function(p){var v=p.name,m=p.options,C=m===void 0?{}:m,x=p.effect;if(typeof x=="function"){var j=x({state:u,name:v,instance:h,options:C}),_=function(){};f.push(j||_)}})}function g(){f.forEach(function(p){return p()}),f=[]}return h}}var Qf=[Sf,Nf,Cf,uf,Hf,Rf,Vf,gf,Ff],ed=Zf({defaultModifiers:Qf});function td(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function gi(e,t,r){return r&&td(e,r),e}function Fr(){return(Fr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function mi(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function yi(e,t){if(e==null)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}function bi(e){return((t=e)!=null&&typeof t=="object"&&Array.isArray(t)===!1)==1&&Object.prototype.toString.call(e)==="[object Object]";var t}var Ci=Object.prototype,wi=Ci.toString,rd=Ci.hasOwnProperty,Si=/^\s*function (\w+)/;function xi(e){var t,r=(t=e?.type)!==null&&t!==void 0?t:e;if(r){var n=r.toString().match(Si);return n?n[1]:""}return""}var vt=function(e){var t,r;return bi(e)!==!1&&typeof(t=e.constructor)=="function"&&bi(r=t.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1},Oi=function(e){return e},Se=Oi;if(process.env.NODE_ENV!=="production"){var nd=typeof console<"u";Se=nd?function(e){console.warn("[VueTypes warn]: "+e)}:Oi}var lr=function(e,t){return rd.call(e,t)},od=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},Et=Array.isArray||function(e){return wi.call(e)==="[object Array]"},jt=function(e){return wi.call(e)==="[object Function]"},Ir=function(e){return vt(e)&&lr(e,"_vueTypes_name")},ki=function(e){return vt(e)&&(lr(e,"type")||["_vueTypes_name","validator","default","required"].some(function(t){return lr(e,t)}))};function $n(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function gt(e,t,r){var n,o=!0,a="";n=vt(e)?e:{type:e};var s=Ir(n)?n._vueTypes_name+" - ":"";if(ki(n)&&n.type!==null){if(n.type===void 0||n.type===!0||!n.required&&t===void 0)return o;Et(n.type)?(o=n.type.some(function(f){return gt(f,t)===!0}),a=n.type.map(function(f){return xi(f)}).join(" or ")):o=(a=xi(n))==="Array"?Et(t):a==="Object"?vt(t):a==="String"||a==="Number"||a==="Boolean"||a==="Function"?(function(f){if(f==null)return"";var d=f.constructor.toString().match(Si);return d?d[1]:""})(t)===a:t instanceof n.type}if(!o){var i=s+'value "'+t+'" should be of type "'+a+'"';return i}if(lr(n,"validator")&&jt(n.validator)){var l=Se,c=[];if(Se=function(f){c.push(f)},o=n.validator(t),Se=l,!o){var u=(c.length>1?"* ":"")+c.join(`
12
- * `);return c.length=0,u}}return o}function Ae(e,t){var r=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(o){return o!==void 0||this.default?jt(o)||gt(this,o)===!0?(this.default=Et(o)?function(){return[].concat(o)}:vt(o)?function(){return Object.assign({},o)}:o,this):(Se(this._vueTypes_name+' - invalid default value: "'+o+'"'),this):this}}}),n=r.validator;return jt(n)&&(r.validator=$n(n,r)),r}function De(e,t){var r=Ae(e,t);return Object.defineProperty(r,"validate",{value:function(n){return jt(this.validator)&&Se(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info:
13
- `+JSON.stringify(this)),this.validator=$n(n,this),this}})}function _i(e,t,r){var n,o,a=(n=t,o={},Object.getOwnPropertyNames(n).forEach(function(f){o[f]=Object.getOwnPropertyDescriptor(n,f)}),Object.defineProperties({},o));if(a._vueTypes_name=e,!vt(r))return a;var s,i,l=r.validator,c=yi(r,["validator"]);if(jt(l)){var u=a.validator;u&&(u=(i=(s=u).__original)!==null&&i!==void 0?i:s),a.validator=$n(u?function(f){return u.call(this,f)&&l.call(this,f)}:l,a)}return Object.assign(a,c)}function Lr(e){return e.replace(/^(?!\s*$)/gm," ")}var ad=function(){return De("any",{})},id=function(){return De("function",{type:Function})},ld=function(){return De("boolean",{type:Boolean})},sd=function(){return De("string",{type:String})},ud=function(){return De("number",{type:Number})},cd=function(){return De("array",{type:Array})},fd=function(){return De("object",{type:Object})},dd=function(){return Ae("integer",{type:Number,validator:function(e){return od(e)}})},hd=function(){return Ae("symbol",{validator:function(e){return typeof e=="symbol"}})};function pd(e,t){if(t===void 0&&(t="custom validation failed"),typeof e!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return Ae(e.name||"<<anonymous function>>",{validator:function(r){var n=e(r);return n||Se(this._vueTypes_name+" - "+t),n}})}function vd(e){if(!Et(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var t='oneOf - value should be one of "'+e.join('", "')+'".',r=e.reduce(function(n,o){if(o!=null){var a=o.constructor;n.indexOf(a)===-1&&n.push(a)}return n},[]);return Ae("oneOf",{type:r.length>0?r:void 0,validator:function(n){var o=e.indexOf(n)!==-1;return o||Se(t),o}})}function gd(e){if(!Et(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var t=!1,r=[],n=0;n<e.length;n+=1){var o=e[n];if(ki(o)){if(Ir(o)&&o._vueTypes_name==="oneOf"){r=r.concat(o.type);continue}if(jt(o.validator)&&(t=!0),o.type!==!0&&o.type){r=r.concat(o.type);continue}}r.push(o)}return r=r.filter(function(a,s){return r.indexOf(a)===s}),Ae("oneOfType",t?{type:r,validator:function(a){var s=[],i=e.some(function(l){var c=gt(Ir(l)&&l._vueTypes_name==="oneOf"?l.type||null:l,a);return typeof c=="string"&&s.push(c),c===!0});return i||Se("oneOfType - provided value does not match any of the "+s.length+` passed-in validators:
14
- `+Lr(s.join(`
15
- `))),i}}:{type:r})}function md(e){return Ae("arrayOf",{type:Array,validator:function(t){var r,n=t.every(function(o){return(r=gt(e,o))===!0});return n||Se(`arrayOf - value validation error:
16
- `+Lr(r)),n}})}function yd(e){return Ae("instanceOf",{type:e})}function bd(e){return Ae("objectOf",{type:Object,validator:function(t){var r,n=Object.keys(t).every(function(o){return(r=gt(e,t[o]))===!0});return n||Se(`objectOf - value validation error:
17
- `+Lr(r)),n}})}function Cd(e){var t=Object.keys(e),r=t.filter(function(o){var a;return!!(!((a=e[o])===null||a===void 0)&&a.required)}),n=Ae("shape",{type:Object,validator:function(o){var a=this;if(!vt(o))return!1;var s=Object.keys(o);if(r.length>0&&r.some(function(l){return s.indexOf(l)===-1})){var i=r.filter(function(l){return s.indexOf(l)===-1});return Se(i.length===1?'shape - required property "'+i[0]+'" is not defined.':'shape - required properties "'+i.join('", "')+'" are not defined.'),!1}return s.every(function(l){if(t.indexOf(l)===-1)return a._vueTypes_isLoose===!0||(Se('shape - shape definition does not include a "'+l+'" property. Allowed keys: "'+t.join('", "')+'".'),!1);var c=gt(e[l],o[l]);return typeof c=="string"&&Se('shape - "'+l+`" property validation error:
18
- `+Lr(c)),c===!0})}});return Object.defineProperty(n,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(n,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),n}var Ve=(function(){function e(){}return e.extend=function(t){var r=this;if(Et(t))return t.forEach(function(f){return r.extend(f)}),this;var n=t.name,o=t.validate,a=o!==void 0&&o,s=t.getter,i=s!==void 0&&s,l=yi(t,["name","validate","getter"]);if(lr(this,n))throw new TypeError('[VueTypes error]: Type "'+n+'" already defined');var c,u=l.type;return Ir(u)?(delete l.type,Object.defineProperty(this,n,i?{get:function(){return _i(n,u,l)}}:{value:function(){var f,d=_i(n,u,l);return d.validator&&(d.validator=(f=d.validator).bind.apply(f,[d].concat([].slice.call(arguments)))),d}})):(c=i?{get:function(){var f=Object.assign({},l);return a?De(n,f):Ae(n,f)},enumerable:!0}:{value:function(){var f,d,h=Object.assign({},l);return f=a?De(n,h):Ae(n,h),h.validator&&(f.validator=(d=h.validator).bind.apply(d,[f].concat([].slice.call(arguments)))),f},enumerable:!0},Object.defineProperty(this,n,c))},gi(e,null,[{key:"any",get:function(){return ad()}},{key:"func",get:function(){return id().def(this.defaults.func)}},{key:"bool",get:function(){return ld().def(this.defaults.bool)}},{key:"string",get:function(){return sd().def(this.defaults.string)}},{key:"number",get:function(){return ud().def(this.defaults.number)}},{key:"array",get:function(){return cd().def(this.defaults.array)}},{key:"object",get:function(){return fd().def(this.defaults.object)}},{key:"integer",get:function(){return dd().def(this.defaults.integer)}},{key:"symbol",get:function(){return hd()}}]),e})();function wd(e){var t;return e===void 0&&(e={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(t=(function(r){function n(){return r.apply(this,arguments)||this}return mi(n,r),gi(n,null,[{key:"sensibleDefaults",get:function(){return Fr({},this.defaults)},set:function(o){this.defaults=o!==!1?Fr({},o!==!0?o:e):{}}}]),n})(Ve)).defaults=Fr({},e),t}Ve.defaults={},Ve.custom=pd,Ve.oneOf=vd,Ve.instanceOf=yd,Ve.oneOfType=gd,Ve.arrayOf=md,Ve.objectOf=bd,Ve.shape=Cd,Ve.utils={validate:function(e,t){return gt(t,e)===!0},toType:function(e,t,r){return r===void 0&&(r=!1),r?De(e,t):Ae(e,t)}};var M=(function(e){function t(){return e.apply(this,arguments)||this}return mi(t,e),t})(wd()),Ai=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Pn(e){var t={exports:{}};return e(t,t.exports),t.exports}var Hr=function(e){return e&&e.Math==Math&&e},le=Hr(typeof globalThis=="object"&&globalThis)||Hr(typeof window=="object"&&window)||Hr(typeof self=="object"&&self)||Hr(typeof Ai=="object"&&Ai)||(function(){return this})()||Function("return this")(),X=function(e){try{return!!e()}catch{return!0}},Pe=!X((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Ei={}.propertyIsEnumerable,ji=Object.getOwnPropertyDescriptor,Sd={f:ji&&!Ei.call({1:2},1)?function(e){var t=ji(this,e);return!!t&&t.enumerable}:Ei},Gr=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},xd={}.toString,Ke=function(e){return xd.call(e).slice(8,-1)},Od="".split,Nr=X((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return Ke(e)=="String"?Od.call(e,""):Object(e)}:Object,rt=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e},Tt=function(e){return Nr(rt(e))},ce=function(e){return typeof e=="object"?e!==null:typeof e=="function"},Rn=function(e,t){if(!ce(e))return e;var r,n;if(t&&typeof(r=e.toString)=="function"&&!ce(n=r.call(e))||typeof(r=e.valueOf)=="function"&&!ce(n=r.call(e))||!t&&typeof(r=e.toString)=="function"&&!ce(n=r.call(e)))return n;throw TypeError("Can't convert object to primitive value")},kd={}.hasOwnProperty,ie=function(e,t){return kd.call(e,t)},Mn=le.document,_d=ce(Mn)&&ce(Mn.createElement),Ti=function(e){return _d?Mn.createElement(e):{}},$i=!Pe&&!X((function(){return Object.defineProperty(Ti("div"),"a",{get:function(){return 7}}).a!=7})),Pi=Object.getOwnPropertyDescriptor,Fn={f:Pe?Pi:function(e,t){if(e=Tt(e),t=Rn(t,!0),$i)try{return Pi(e,t)}catch{}if(ie(e,t))return Gr(!Sd.f.call(e,t),e[t])}},me=function(e){if(!ce(e))throw TypeError(String(e)+" is not an object");return e},Ri=Object.defineProperty,Xe={f:Pe?Ri:function(e,t,r){if(me(e),t=Rn(t,!0),me(r),$i)try{return Ri(e,t,r)}catch{}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},Re=Pe?function(e,t,r){return Xe.f(e,t,Gr(1,r))}:function(e,t,r){return e[t]=r,e},In=function(e,t){try{Re(le,e,t)}catch{le[e]=t}return t},mt=le["__core-js_shared__"]||In("__core-js_shared__",{}),Ad=Function.toString;typeof mt.inspectSource!="function"&&(mt.inspectSource=function(e){return Ad.call(e)});var Br,sr,Dr,Mi=mt.inspectSource,Fi=le.WeakMap,Ed=typeof Fi=="function"&&/native code/.test(Mi(Fi)),Ii=Pn((function(e){(e.exports=function(t,r){return mt[t]||(mt[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.8.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),jd=0,Td=Math.random(),Ln=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++jd+Td).toString(36)},Li=Ii("keys"),Hn=function(e){return Li[e]||(Li[e]=Ln(e))},Vr={},$d=le.WeakMap;if(Ed){var $t=mt.state||(mt.state=new $d),Pd=$t.get,Rd=$t.has,Md=$t.set;Br=function(e,t){return t.facade=e,Md.call($t,e,t),t},sr=function(e){return Pd.call($t,e)||{}},Dr=function(e){return Rd.call($t,e)}}else{var ur=Hn("state");Vr[ur]=!0,Br=function(e,t){return t.facade=e,Re(e,ur,t),t},sr=function(e){return ie(e,ur)?e[ur]:{}},Dr=function(e){return ie(e,ur)}}var nt={set:Br,get:sr,has:Dr,enforce:function(e){return Dr(e)?sr(e):Br(e,{})},getterFor:function(e){return function(t){var r;if(!ce(t)||(r=sr(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}},ot=Pn((function(e){var t=nt.get,r=nt.enforce,n=String(String).split("String");(e.exports=function(o,a,s,i){var l,c=!!i&&!!i.unsafe,u=!!i&&!!i.enumerable,f=!!i&&!!i.noTargetGet;typeof s=="function"&&(typeof a!="string"||ie(s,"name")||Re(s,"name",a),(l=r(s)).source||(l.source=n.join(typeof a=="string"?a:""))),o!==le?(c?!f&&o[a]&&(u=!0):delete o[a],u?o[a]=s:Re(o,a,s)):u?o[a]=s:In(a,s)})(Function.prototype,"toString",(function(){return typeof this=="function"&&t(this).source||Mi(this)}))})),Gn=le,Hi=function(e){return typeof e=="function"?e:void 0},qr=function(e,t){return arguments.length<2?Hi(Gn[e])||Hi(le[e]):Gn[e]&&Gn[e][t]||le[e]&&le[e][t]},Fd=Math.ceil,Id=Math.floor,Pt=function(e){return isNaN(e=+e)?0:(e>0?Id:Fd)(e)},Ld=Math.min,Ee=function(e){return e>0?Ld(Pt(e),9007199254740991):0},Hd=Math.max,Gd=Math.min,Wr=function(e,t){var r=Pt(e);return r<0?Hd(r+t,0):Gd(r,t)},Nd=function(e){return function(t,r,n){var o,a=Tt(t),s=Ee(a.length),i=Wr(n,s);if(e&&r!=r){for(;s>i;)if((o=a[i++])!=o)return!0}else for(;s>i;i++)if((e||i in a)&&a[i]===r)return e||i||0;return!e&&-1}},Gi={indexOf:Nd(!1)},Bd=Gi.indexOf,Ni=function(e,t){var r,n=Tt(e),o=0,a=[];for(r in n)!ie(Vr,r)&&ie(n,r)&&a.push(r);for(;t.length>o;)ie(n,r=t[o++])&&(~Bd(a,r)||a.push(r));return a},Ur=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Dd=Ur.concat("length","prototype"),Vd={f:Object.getOwnPropertyNames||function(e){return Ni(e,Dd)}},qd={f:Object.getOwnPropertySymbols},Wd=qr("Reflect","ownKeys")||function(e){var t=Vd.f(me(e)),r=qd.f;return r?t.concat(r(e)):t},Ud=function(e,t){for(var r=Wd(t),n=Xe.f,o=Fn.f,a=0;a<r.length;a++){var s=r[a];ie(e,s)||n(e,s,o(t,s))}},zd=/#|\.prototype\./,cr=function(e,t){var r=Xd[Kd(e)];return r==Jd||r!=Yd&&(typeof t=="function"?X(t):!!t)},Kd=cr.normalize=function(e){return String(e).replace(zd,".").toLowerCase()},Xd=cr.data={},Yd=cr.NATIVE="N",Jd=cr.POLYFILL="P",Nn=cr,Zd=Fn.f,he=function(e,t){var r,n,o,a,s,i=e.target,l=e.global,c=e.stat;if(r=l?le:c?le[i]||In(i,{}):(le[i]||{}).prototype)for(n in t){if(a=t[n],o=e.noTargetGet?(s=Zd(r,n))&&s.value:r[n],!Nn(l?n:i+(c?".":"#")+n,e.forced)&&o!==void 0){if(typeof a==typeof o)continue;Ud(a,o)}(e.sham||o&&o.sham)&&Re(a,"sham",!0),ot(r,n,a,e)}},Bn=function(e,t){var r=[][e];return!!r&&X((function(){r.call(null,t||function(){throw 1},1)}))},Qd=Object.defineProperty,Dn={},Bi=function(e){throw e},Rt=function(e,t){if(ie(Dn,e))return Dn[e];t||(t={});var r=[][e],n=!!ie(t,"ACCESSORS")&&t.ACCESSORS,o=ie(t,0)?t[0]:Bi,a=ie(t,1)?t[1]:void 0;return Dn[e]=!!r&&!X((function(){if(n&&!Pe)return!0;var s={length:-1};n?Qd(s,1,{enumerable:!0,get:Bi}):s[1]=1,r.call(s,o,a)}))},eh=Gi.indexOf,Di=[].indexOf,Vi=!!Di&&1/[1].indexOf(1,-0)<0,th=Bn("indexOf"),rh=Rt("indexOf",{ACCESSORS:!0,1:0});function yt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nh(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function bt(e,t,r){return r&&nh(e,r),e}he({target:"Array",proto:!0,forced:Vi||!th||!rh},{indexOf:function(e){return Vi?Di.apply(this,arguments)||0:eh(this,e,arguments.length>1?arguments[1]:void 0)}}),(function(){function e(){yt(this,e)}return bt(e,null,[{key:"isInBrowser",value:function(){return typeof window<"u"}},{key:"isServer",value:function(){return typeof window>"u"}},{key:"getUA",value:function(){return e.isInBrowser()?window.navigator.userAgent.toLowerCase():""}},{key:"isMobile",value:function(){return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test(navigator.appVersion)}},{key:"isOpera",value:function(){return navigator.userAgent.indexOf("Opera")!==-1}},{key:"isIE",value:function(){var t=e.getUA();return t!==""&&t.indexOf("msie")>0}},{key:"isIE9",value:function(){var t=e.getUA();return t!==""&&t.indexOf("msie 9.0")>0}},{key:"isEdge",value:function(){var t=e.getUA();return t!==""&&t.indexOf("edge/")>0}},{key:"isChrome",value:function(){var t=e.getUA();return t!==""&&/chrome\/\d+/.test(t)&&!e.isEdge()}},{key:"isPhantomJS",value:function(){var t=e.getUA();return t!==""&&/phantomjs/.test(t)}},{key:"isFirefox",value:function(){var t=e.getUA();return t!==""&&/firefox/.test(t)}}]),e})();var oh=[].join,ah=Nr!=Object,ih=Bn("join",",");he({target:"Array",proto:!0,forced:ah||!ih},{join:function(e){return oh.call(Tt(this),e===void 0?",":e)}});var Mt,zr,Ye=function(e){return Object(rt(e))},Ft=Array.isArray||function(e){return Ke(e)=="Array"},qi=!!Object.getOwnPropertySymbols&&!X((function(){return!String(Symbol())})),lh=qi&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Kr=Ii("wks"),fr=le.Symbol,sh=lh?fr:fr&&fr.withoutSetter||Ln,Q=function(e){return ie(Kr,e)||(qi&&ie(fr,e)?Kr[e]=fr[e]:Kr[e]=sh("Symbol."+e)),Kr[e]},uh=Q("species"),Xr=function(e,t){var r;return Ft(e)&&(typeof(r=e.constructor)!="function"||r!==Array&&!Ft(r.prototype)?ce(r)&&(r=r[uh])===null&&(r=void 0):r=void 0),new(r===void 0?Array:r)(t===0?0:t)},It=function(e,t,r){var n=Rn(t);n in e?Xe.f(e,n,Gr(0,r)):e[n]=r},Vn=qr("navigator","userAgent")||"",Wi=le.process,Ui=Wi&&Wi.versions,zi=Ui&&Ui.v8;zi?zr=(Mt=zi.split("."))[0]+Mt[1]:Vn&&(!(Mt=Vn.match(/Edge\/(\d+)/))||Mt[1]>=74)&&(Mt=Vn.match(/Chrome\/(\d+)/))&&(zr=Mt[1]);var Yr=zr&&+zr,ch=Q("species"),qn=function(e){return Yr>=51||!X((function(){var t=[];return(t.constructor={})[ch]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},fh=qn("splice"),dh=Rt("splice",{ACCESSORS:!0,0:0,1:2}),hh=Math.max,ph=Math.min;he({target:"Array",proto:!0,forced:!fh||!dh},{splice:function(e,t){var r,n,o,a,s,i,l=Ye(this),c=Ee(l.length),u=Wr(e,c),f=arguments.length;if(f===0?r=n=0:f===1?(r=0,n=c-u):(r=f-2,n=ph(hh(Pt(t),0),c-u)),c+r-n>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(o=Xr(l,n),a=0;a<n;a++)(s=u+a)in l&&It(o,a,l[s]);if(o.length=n,r<n){for(a=u;a<c-n;a++)i=a+r,(s=a+n)in l?l[i]=l[s]:delete l[i];for(a=c;a>c-n+r;a--)delete l[a-1]}else if(r>n)for(a=c-n;a>u;a--)i=a+r-1,(s=a+n-1)in l?l[i]=l[s]:delete l[i];for(a=0;a<r;a++)l[a+u]=arguments[a+2];return l.length=c-n+r,o}});var Ki={};Ki[Q("toStringTag")]="z";var Wn=String(Ki)==="[object z]",vh=Q("toStringTag"),gh=Ke((function(){return arguments})())=="Arguments",Xi=Wn?Ke:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=(function(o,a){try{return o[a]}catch{}})(t=Object(e),vh))=="string"?r:gh?Ke(t):(n=Ke(t))=="Object"&&typeof t.callee=="function"?"Arguments":n},mh=Wn?{}.toString:function(){return"[object "+Xi(this)+"]"};Wn||ot(Object.prototype,"toString",mh,{unsafe:!0});var Yi=function(){var e=me(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function Ji(e,t){return RegExp(e,t)}var Un,zn,Zi={UNSUPPORTED_Y:X((function(){var e=Ji("a","y");return e.lastIndex=2,e.exec("abcd")!=null})),BROKEN_CARET:X((function(){var e=Ji("^r","gy");return e.lastIndex=2,e.exec("str")!=null}))},Jr=RegExp.prototype.exec,yh=String.prototype.replace,Qi=Jr,Kn=(Un=/a/,zn=/b*/g,Jr.call(Un,"a"),Jr.call(zn,"a"),Un.lastIndex!==0||zn.lastIndex!==0),el=Zi.UNSUPPORTED_Y||Zi.BROKEN_CARET,Xn=/()??/.exec("")[1]!==void 0;(Kn||Xn||el)&&(Qi=function(e){var t,r,n,o,a=this,s=el&&a.sticky,i=Yi.call(a),l=a.source,c=0,u=e;return s&&((i=i.replace("y","")).indexOf("g")===-1&&(i+="g"),u=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&e[a.lastIndex-1]!==`
19
- `)&&(l="(?: "+l+")",u=" "+u,c++),r=new RegExp("^(?:"+l+")",i)),Xn&&(r=new RegExp("^"+l+"$(?!\\s)",i)),Kn&&(t=a.lastIndex),n=Jr.call(s?r:a,u),s?n?(n.input=n.input.slice(c),n[0]=n[0].slice(c),n.index=a.lastIndex,a.lastIndex+=n[0].length):a.lastIndex=0:Kn&&n&&(a.lastIndex=a.global?n.index+n[0].length:t),Xn&&n&&n.length>1&&yh.call(n[0],r,(function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(n[o]=void 0)})),n});var dr=Qi;he({target:"RegExp",proto:!0,forced:/./.exec!==dr},{exec:dr});var tl=RegExp.prototype,rl=tl.toString,bh=X((function(){return rl.call({source:"a",flags:"b"})!="/a/b"})),Ch=rl.name!="toString";(bh||Ch)&&ot(RegExp.prototype,"toString",(function(){var e=me(this),t=String(e.source),r=e.flags;return"/"+t+"/"+String(r===void 0&&e instanceof RegExp&&!("flags"in tl)?Yi.call(e):r)}),{unsafe:!0});var wh=Q("species"),Sh=!X((function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})),nl="a".replace(/./,"$0")==="$0",ol=Q("replace"),al=!!/./[ol]&&/./[ol]("a","$0")==="",xh=!X((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return r.length!==2||r[0]!=="a"||r[1]!=="b"})),il=function(e,t,r,n){var o=Q(e),a=!X((function(){var f={};return f[o]=function(){return 7},""[e](f)!=7})),s=a&&!X((function(){var f=!1,d=/a/;return e==="split"&&((d={}).constructor={},d.constructor[wh]=function(){return d},d.flags="",d[o]=/./[o]),d.exec=function(){return f=!0,null},d[o](""),!f}));if(!a||!s||e==="replace"&&(!Sh||!nl||al)||e==="split"&&!xh){var i=/./[o],l=r(o,""[e],(function(f,d,h,y,g){return d.exec===dr?a&&!g?{done:!0,value:i.call(d,h,y)}:{done:!0,value:f.call(h,d,y)}:{done:!1}}),{REPLACE_KEEPS_$0:nl,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:al}),c=l[0],u=l[1];ot(String.prototype,e,c),ot(RegExp.prototype,o,function(f,d){return u.call(f,this,d)})}n&&Re(RegExp.prototype[o],"sham",!0)},Oh=Q("match"),ll=function(e){var t;return ce(e)&&((t=e[Oh])!==void 0?!!t:Ke(e)=="RegExp")},Yn=function(e){if(typeof e!="function")throw TypeError(String(e)+" is not a function");return e},kh=Q("species"),_h=function(e){return function(t,r){var n,o,a=String(rt(t)),s=Pt(r),i=a.length;return s<0||s>=i?e?"":void 0:(n=a.charCodeAt(s))<55296||n>56319||s+1===i||(o=a.charCodeAt(s+1))<56320||o>57343?e?a.charAt(s):n:e?a.slice(s,s+2):o-56320+(n-55296<<10)+65536}},sl={charAt:_h(!0)},Ah=sl.charAt,ul=function(e,t,r){return t+(r?Ah(e,t).length:1)},Jn=function(e,t){var r=e.exec;if(typeof r=="function"){var n=r.call(e,t);if(typeof n!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return n}if(Ke(e)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return dr.call(e,t)},Eh=[].push,jh=Math.min,Lt=!X((function(){return!RegExp(4294967295,"y")}));il("split",2,(function(e,t,r){var n;return n="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,a){var s=String(rt(this)),i=a===void 0?4294967295:a>>>0;if(i===0)return[];if(o===void 0)return[s];if(!ll(o))return t.call(s,o,i);for(var l,c,u,f=[],d=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),h=0,y=new RegExp(o.source,d+"g");(l=dr.call(y,s))&&!((c=y.lastIndex)>h&&(f.push(s.slice(h,l.index)),l.length>1&&l.index<s.length&&Eh.apply(f,l.slice(1)),u=l[0].length,h=c,f.length>=i));)y.lastIndex===l.index&&y.lastIndex++;return h===s.length?!u&&y.test("")||f.push(""):f.push(s.slice(h)),f.length>i?f.slice(0,i):f}:"0".split(void 0,0).length?function(o,a){return o===void 0&&a===0?[]:t.call(this,o,a)}:t,[function(o,a){var s=rt(this),i=o?.[e];return i!==void 0?i.call(o,s,a):n.call(String(s),o,a)},function(o,a){var s=r(n,o,this,a,n!==t);if(s.done)return s.value;var i=me(o),l=String(this),c=(function(x,j){var _,F=me(x).constructor;return F===void 0||(_=me(F)[kh])==null?j:Yn(_)})(i,RegExp),u=i.unicode,f=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Lt?"y":"g"),d=new c(Lt?i:"^(?:"+i.source+")",f),h=a===void 0?4294967295:a>>>0;if(h===0)return[];if(l.length===0)return Jn(d,l)===null?[l]:[];for(var y=0,g=0,p=[];g<l.length;){d.lastIndex=Lt?g:0;var v,m=Jn(d,Lt?l:l.slice(g));if(m===null||(v=jh(Ee(d.lastIndex+(Lt?0:g)),l.length))===y)g=ul(l,g,u);else{if(p.push(l.slice(y,g)),p.length===h)return p;for(var C=1;C<=m.length-1;C++)if(p.push(m[C]),p.length===h)return p;g=y=v}}return p.push(l.slice(y)),p}]}),!Lt);var Zn=`
20
- \v\f\r                 \u2028\u2029\uFEFF`,Zr="["+Zn+"]",Th=RegExp("^"+Zr+Zr+"*"),$h=RegExp(Zr+Zr+"*$"),Ph=function(e){return function(t){var r=String(rt(t));return 1&e&&(r=r.replace(Th,"")),2&e&&(r=r.replace($h,"")),r}},Rh={trim:Ph(3)},Mh=Rh.trim;he({target:"String",proto:!0,forced:(function(e){return X((function(){return!!Zn[e]()||"​…᠎"[e]()!="​…᠎"||Zn[e].name!==e}))})("trim")},{trim:function(){return Mh(this)}});var Fh=qn("slice"),Ih=Rt("slice",{ACCESSORS:!0,0:0,1:2}),Lh=Q("species"),Hh=[].slice,Gh=Math.max;he({target:"Array",proto:!0,forced:!Fh||!Ih},{slice:function(e,t){var r,n,o,a=Tt(this),s=Ee(a.length),i=Wr(e,s),l=Wr(t===void 0?s:t,s);if(Ft(a)&&(typeof(r=a.constructor)!="function"||r!==Array&&!Ft(r.prototype)?ce(r)&&(r=r[Lh])===null&&(r=void 0):r=void 0,r===Array||r===void 0))return Hh.call(a,i,l);for(n=new(r===void 0?Array:r)(Gh(l-i,0)),o=0;i<l;i++,o++)i in a&&It(n,o,a[i]);return n.length=o,n}});var Qn=Object.keys||function(e){return Ni(e,Ur)},Nh=X((function(){Qn(1)}));he({target:"Object",stat:!0,forced:Nh},{keys:function(e){return Qn(Ye(e))}});var eo,Bh=function(e){if(ll(e))throw TypeError("The method doesn't accept regular expressions");return e},Dh=Q("match"),Vh=Fn.f,cl="".startsWith,qh=Math.min,fl=(function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[Dh]=!1,"/./"[e](t)}catch{}}return!1})("startsWith"),Wh=!(fl||(eo=Vh(String.prototype,"startsWith"),!eo||eo.writable));function dl(e){return(dl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}he({target:"String",proto:!0,forced:!Wh&&!fl},{startsWith:function(e){var t=String(rt(this));Bh(e);var r=Ee(qh(arguments.length>1?arguments[1]:void 0,t.length)),n=String(e);return cl?cl.call(t,n,r):t.slice(r,r+n.length)===n}});var Ht=function(e){return typeof e=="string"},Gt=function(e){return e!==null&&dl(e)==="object"},hr=(function(){function e(){yt(this,e)}return bt(e,null,[{key:"isWindow",value:function(t){return t===window}},{key:"addEventListener",value:function(t,r,n){var o=arguments.length>3&&arguments[3]!==void 0&&arguments[3];t&&r&&n&&t.addEventListener(r,n,o)}},{key:"removeEventListener",value:function(t,r,n){var o=arguments.length>3&&arguments[3]!==void 0&&arguments[3];t&&r&&n&&t.removeEventListener(r,n,o)}},{key:"triggerDragEvent",value:function(t,r){var n=!1,o=function(s){var i;(i=r.drag)===null||i===void 0||i.call(r,s)},a=function s(i){var l;e.removeEventListener(document,"mousemove",o),e.removeEventListener(document,"mouseup",s),document.onselectstart=null,document.ondragstart=null,n=!1,(l=r.end)===null||l===void 0||l.call(r,i)};e.addEventListener(t,"mousedown",(function(s){var i;n||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},e.addEventListener(document,"mousemove",o),e.addEventListener(document,"mouseup",a),n=!0,(i=r.start)===null||i===void 0||i.call(r,s))}))}},{key:"getBoundingClientRect",value:function(t){return t&&Gt(t)&&t.nodeType===1?t.getBoundingClientRect():null}},{key:"hasClass",value:function(t,r){return!!(t&&Gt(t)&&Ht(r)&&t.nodeType===1)&&t.classList.contains(r.trim())}},{key:"addClass",value:function(t,r){if(t&&Gt(t)&&Ht(r)&&t.nodeType===1&&(r=r.trim(),!e.hasClass(t,r))){var n=t.className;t.className=n?n+" "+r:r}}},{key:"removeClass",value:function(t,r){if(t&&Gt(t)&&Ht(r)&&t.nodeType===1&&typeof t.className=="string"){r=r.trim();for(var n=t.className.trim().split(" "),o=n.length-1;o>=0;o--)n[o]=n[o].trim(),n[o]&&n[o]!==r||n.splice(o,1);t.className=n.join(" ")}}},{key:"toggleClass",value:function(t,r,n){t&&Gt(t)&&Ht(r)&&t.nodeType===1&&t.classList.toggle(r,n)}},{key:"replaceClass",value:function(t,r,n){t&&Gt(t)&&Ht(r)&&Ht(n)&&t.nodeType===1&&(r=r.trim(),n=n.trim(),e.removeClass(t,r),e.addClass(t,n))}},{key:"getScrollTop",value:function(t){var r="scrollTop"in t?t.scrollTop:t.pageYOffset;return Math.max(r,0)}},{key:"setScrollTop",value:function(t,r){"scrollTop"in t?t.scrollTop=r:t.scrollTo(t.scrollX,r)}},{key:"getRootScrollTop",value:function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}},{key:"setRootScrollTop",value:function(t){e.setScrollTop(window,t),e.setScrollTop(document.body,t)}},{key:"getElementTop",value:function(t,r){if(e.isWindow(t))return 0;var n=r?e.getScrollTop(r):e.getRootScrollTop();return t.getBoundingClientRect().top+n}},{key:"getVisibleHeight",value:function(t){return e.isWindow(t)?t.innerHeight:t.getBoundingClientRect().height}},{key:"isHidden",value:function(t){if(!t)return!1;var r=window.getComputedStyle(t),n=r.display==="none",o=t.offsetParent===null&&r.position!=="fixed";return n||o}},{key:"triggerEvent",value:function(t,r){if("createEvent"in document){var n=document.createEvent("HTMLEvents");n.initEvent(r,!1,!0),t.dispatchEvent(n)}}},{key:"calcAngle",value:function(t,r){var n=t.getBoundingClientRect(),o=n.left+n.width/2,a=n.top+n.height/2,s=Math.abs(o-r.clientX),i=Math.abs(a-r.clientY),l=i/Math.sqrt(Math.pow(s,2)+Math.pow(i,2)),c=Math.acos(l),u=Math.floor(180/(Math.PI/c));return r.clientX>o&&r.clientY>a&&(u=180-u),r.clientX==o&&r.clientY>a&&(u=180),r.clientX>o&&r.clientY==a&&(u=90),r.clientX<o&&r.clientY>a&&(u=180+u),r.clientX<o&&r.clientY==a&&(u=270),r.clientX<o&&r.clientY<a&&(u=360-u),u}},{key:"querySelector",value:function(t,r){return r?r.querySelector(t):document.querySelector(t)}},{key:"createElement",value:function(t){for(var r=document.createElement(t),n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];for(var s=0;s<o.length;s++)o[s]&&r.classList.add(o[s]);return r}},{key:"appendChild",value:function(t){for(var r=0;r<(arguments.length<=1?0:arguments.length-1);r++)t.appendChild(r+1<1||arguments.length<=r+1?void 0:arguments[r+1])}},{key:"getWindow",value:function(t){if(t.toString()!=="[object Window]"){var r=t.ownerDocument;return r&&r.defaultView||window}return t}},{key:"isElement",value:function(t){return t instanceof this.getWindow(t).Element||t instanceof Element}},{key:"isHTMLElement",value:function(t){return t instanceof this.getWindow(t).HTMLElement||t instanceof HTMLElement}},{key:"isShadowRoot",value:function(t){return typeof ShadowRoot<"u"&&(t instanceof this.getWindow(t).ShadowRoot||t instanceof ShadowRoot)}},{key:"getWindowScroll",value:function(t){var r=this.getWindow(t);return{scrollLeft:r.pageXOffset||0,scrollTop:r.pageYOffset||0}}}]),e})(),Uh=Math.floor,zh="".replace,Kh=/\$([$&'`]|\d\d?|<[^>]*>)/g,Xh=/\$([$&'`]|\d\d?)/g,Yh=function(e,t,r,n,o,a){var s=r+e.length,i=n.length,l=Xh;return o!==void 0&&(o=Ye(o),l=Kh),zh.call(a,l,(function(c,u){var f;switch(u.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(s);case"<":f=o[u.slice(1,-1)];break;default:var d=+u;if(d===0)return c;if(d>i){var h=Uh(d/10);return h===0?c:h<=i?n[h-1]===void 0?u.charAt(1):n[h-1]+u.charAt(1):c}f=n[d-1]}return f===void 0?"":f}))},Jh=Math.max,Zh=Math.min;il("replace",2,(function(e,t,r,n){var o=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,a=n.REPLACE_KEEPS_$0,s=o?"$":"$0";return[function(i,l){var c=rt(this),u=i?.[e];return u!==void 0?u.call(i,c,l):t.call(String(c),i,l)},function(i,l){if(!o&&a||typeof l=="string"&&l.indexOf(s)===-1){var c=r(t,i,this,l);if(c.done)return c.value}var u=me(i),f=String(this),d=typeof l=="function";d||(l=String(l));var h=u.global;if(h){var y=u.unicode;u.lastIndex=0}for(var g=[];;){var p=Jn(u,f);if(p===null||(g.push(p),!h))break;String(p[0])===""&&(u.lastIndex=ul(f,Ee(u.lastIndex),y))}for(var v,m="",C=0,x=0;x<g.length;x++){p=g[x];for(var j=String(p[0]),_=Jh(Zh(Pt(p.index),f.length),0),F=[],V=1;V<p.length;V++)F.push((v=p[V])===void 0?v:String(v));var N=p.groups;if(d){var z=[j].concat(F,_,f);N!==void 0&&z.push(N);var b=String(l.apply(void 0,z))}else b=Yh(j,f,_,F,N,l);_>=C&&(m+=f.slice(C,_)+b,C=_+j.length)}return m+f.slice(C)}]})),(function(){function e(){yt(this,e)}return bt(e,null,[{key:"camelize",value:function(t){return t.replace(/-(\w)/g,(function(r,n){return n?n.toUpperCase():""}))}},{key:"capitalize",value:function(t){return t.charAt(0).toUpperCase()+t.slice(1)}}]),e})(),(function(){function e(){yt(this,e)}return bt(e,null,[{key:"_clone",value:function(){}}]),e})();var hl=Q("isConcatSpreadable"),Qh=Yr>=51||!X((function(){var e=[];return e[hl]=!1,e.concat()[0]!==e})),ep=qn("concat"),tp=function(e){if(!ce(e))return!1;var t=e[hl];return t!==void 0?!!t:Ft(e)};he({target:"Array",proto:!0,forced:!Qh||!ep},{concat:function(e){var t,r,n,o,a,s=Ye(this),i=Xr(s,0),l=0;for(t=-1,n=arguments.length;t<n;t++)if(tp(a=t===-1?s:arguments[t])){if(l+(o=Ee(a.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<o;r++,l++)r in a&&It(i,l,a[r])}else{if(l>=9007199254740991)throw TypeError("Maximum allowed index exceeded");It(i,l++,a)}return i.length=l,i}});var to,pr=function(e,t,r){if(Yn(e),t===void 0)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,a){return e.call(t,n,o,a)}}return function(){return e.apply(t,arguments)}},pl=[].push,vl=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,a=e==6,s=e==7,i=e==5||a;return function(l,c,u,f){for(var d,h,y=Ye(l),g=Nr(y),p=pr(c,u,3),v=Ee(g.length),m=0,C=f||Xr,x=t?C(l,v):r||s?C(l,0):void 0;v>m;m++)if((i||m in g)&&(h=p(d=g[m],m,y),e))if(t)x[m]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:pl.call(x,d)}else switch(e){case 4:return!1;case 7:pl.call(x,d)}return a?-1:n||o?o:x}},gl={find:vl(5),findIndex:vl(6)},rp=Pe?Object.defineProperties:function(e,t){me(e);for(var r,n=Qn(t),o=n.length,a=0;o>a;)Xe.f(e,r=n[a++],t[r]);return e},np=qr("document","documentElement"),ml=Hn("IE_PROTO"),ro=function(){},yl=function(e){return"<script>"+e+"<\/script>"},Qr=function(){try{to=document.domain&&new ActiveXObject("htmlfile")}catch{}var e,t;Qr=to?(function(n){n.write(yl("")),n.close();var o=n.parentWindow.Object;return n=null,o})(to):((t=Ti("iframe")).style.display="none",np.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(yl("document.F=Object")),e.close(),e.F);for(var r=Ur.length;r--;)delete Qr.prototype[Ur[r]];return Qr()};Vr[ml]=!0;var no=Object.create||function(e,t){var r;return e!==null?(ro.prototype=me(e),r=new ro,ro.prototype=null,r[ml]=e):r=Qr(),t===void 0?r:rp(r,t)},oo=Q("unscopables"),ao=Array.prototype;ao[oo]==null&&Xe.f(ao,oo,{configurable:!0,value:no(null)});var Nt=function(e){ao[oo][e]=!0},op=gl.find,bl=!0,ap=Rt("find");"find"in[]&&Array(1).find((function(){bl=!1})),he({target:"Array",proto:!0,forced:bl||!ap},{find:function(e){return op(this,e,arguments.length>1?arguments[1]:void 0)}}),Nt("find");var ip=gl.findIndex,Cl=!0,lp=Rt("findIndex");"findIndex"in[]&&Array(1).findIndex((function(){Cl=!1})),he({target:"Array",proto:!0,forced:Cl||!lp},{findIndex:function(e){return ip(this,e,arguments.length>1?arguments[1]:void 0)}}),Nt("findIndex");var wl=function(e,t,r,n,o,a,s,i){for(var l,c=o,u=0,f=!!s&&pr(s,i,3);u<n;){if(u in r){if(l=f?f(r[u],u,t):r[u],a>0&&Ft(l))c=wl(e,t,l,Ee(l.length),c,a-1)-1;else{if(c>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[c]=l}c++}u++}return c},sp=wl;he({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Ye(this),r=Ee(t.length),n=Xr(t,0);return n.length=sp(n,t,t,r,0,e===void 0?1:Pt(e)),n}});var io=function(e){var t=e.return;if(t!==void 0)return me(t.call(e)).value},up=function(e,t,r,n){try{return n?t(me(r)[0],r[1]):t(r)}catch(o){throw io(e),o}},Bt={},cp=Q("iterator"),fp=Array.prototype,Sl=function(e){return e!==void 0&&(Bt.Array===e||fp[cp]===e)},dp=Q("iterator"),xl=function(e){if(e!=null)return e[dp]||e["@@iterator"]||Bt[Xi(e)]},Ol=Q("iterator"),kl=!1;try{var hp=0,_l={next:function(){return{done:!!hp++}},return:function(){kl=!0}};_l[Ol]=function(){return this},Array.from(_l,(function(){throw 2}))}catch{}var Al=function(e,t){if(!kl)return!1;var r=!1;try{var n={};n[Ol]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch{}return r},pp=!Al((function(e){Array.from(e)}));he({target:"Array",stat:!0,forced:pp},{from:function(e){var t,r,n,o,a,s,i=Ye(e),l=typeof this=="function"?this:Array,c=arguments.length,u=c>1?arguments[1]:void 0,f=u!==void 0,d=xl(i),h=0;if(f&&(u=pr(u,c>2?arguments[2]:void 0,2)),d==null||l==Array&&Sl(d))for(r=new l(t=Ee(i.length));t>h;h++)s=f?u(i[h],h):i[h],It(r,h,s);else for(a=(o=d.call(i)).next,r=new l;!(n=a.call(o)).done;h++)s=f?up(o,u,[n.value,h],!0):n.value,It(r,h,s);return r.length=h,r}});var vp=function(e){return function(t,r,n,o){Yn(r);var a=Ye(t),s=Nr(a),i=Ee(a.length),l=e?i-1:0,c=e?-1:1;if(n<2)for(;;){if(l in s){o=s[l],l+=c;break}if(l+=c,e?l<0:i<=l)throw TypeError("Reduce of empty array with no initial value")}for(;e?l>=0:i>l;l+=c)l in s&&(o=r(o,s[l],l,a));return o}},gp={left:vp(!1)},mp=Ke(le.process)=="process",yp=gp.left,bp=Bn("reduce"),Cp=Rt("reduce",{1:0});he({target:"Array",proto:!0,forced:!bp||!Cp||!mp&&Yr>79&&Yr<83},{reduce:function(e){return yp(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}}),Nt("flat");var Ct,El,jl,wp=!X((function(){return Object.isExtensible(Object.preventExtensions({}))})),Tl=Pn((function(e){var t=Xe.f,r=Ln("meta"),n=0,o=Object.isExtensible||function(){return!0},a=function(i){t(i,r,{value:{objectID:"O"+ ++n,weakData:{}}})},s=e.exports={REQUIRED:!1,fastKey:function(i,l){if(!ce(i))return typeof i=="symbol"?i:(typeof i=="string"?"S":"P")+i;if(!ie(i,r)){if(!o(i))return"F";if(!l)return"E";a(i)}return i[r].objectID},getWeakData:function(i,l){if(!ie(i,r)){if(!o(i))return!0;if(!l)return!1;a(i)}return i[r].weakData},onFreeze:function(i){return wp&&s.REQUIRED&&o(i)&&!ie(i,r)&&a(i),i}};Vr[r]=!0})),vr=function(e,t){this.stopped=e,this.result=t},$l=function(e,t,r){var n,o,a,s,i,l,c,u=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),y=pr(t,u,1+f+h),g=function(v){return n&&io(n),new vr(!0,v)},p=function(v){return f?(me(v),h?y(v[0],v[1],g):y(v[0],v[1])):h?y(v,g):y(v)};if(d)n=e;else{if(typeof(o=xl(e))!="function")throw TypeError("Target is not iterable");if(Sl(o)){for(a=0,s=Ee(e.length);s>a;a++)if((i=p(e[a]))&&i instanceof vr)return i;return new vr(!1)}n=o.call(e)}for(l=n.next;!(c=l.call(n)).done;){try{i=p(c.value)}catch(v){throw io(n),v}if(typeof i=="object"&&i&&i instanceof vr)return i}return new vr(!1)},Pl=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e},Sp=Xe.f,Rl=Q("toStringTag"),lo=function(e,t,r){e&&!ie(e=r?e:e.prototype,Rl)&&Sp(e,Rl,{configurable:!0,value:t})},en=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,r={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),t=r instanceof Array}catch{}return function(n,o){return me(n),(function(a){if(!ce(a)&&a!==null)throw TypeError("Can't set "+String(a)+" as a prototype")})(o),t?e.call(n,o):n.__proto__=o,n}})():void 0),Ml=function(e,t,r){for(var n in t)ot(e,n,t[n],r);return e},xp=!X((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Fl=Hn("IE_PROTO"),Op=Object.prototype,tn=xp?Object.getPrototypeOf:function(e){return e=Ye(e),ie(e,Fl)?e[Fl]:typeof e.constructor=="function"&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?Op:null},so=Q("iterator"),Il=!1;[].keys&&("next"in(jl=[].keys())?(El=tn(tn(jl)))!==Object.prototype&&(Ct=El):Il=!0),(Ct==null||X((function(){var e={};return Ct[so].call(e)!==e})))&&(Ct={}),ie(Ct,so)||Re(Ct,so,(function(){return this}));var uo={IteratorPrototype:Ct,BUGGY_SAFARI_ITERATORS:Il},kp=uo.IteratorPrototype,_p=function(){return this},co=uo.IteratorPrototype,rn=uo.BUGGY_SAFARI_ITERATORS,gr=Q("iterator"),Ap=function(){return this},fo=function(e,t,r,n,o,a,s){(function(v,m,C){var x=m+" Iterator";v.prototype=no(kp,{next:Gr(1,C)}),lo(v,x,!1),Bt[x]=_p})(r,t,n);var i,l,c,u=function(v){if(v===o&&g)return g;if(!rn&&v in h)return h[v];switch(v){case"keys":case"values":case"entries":return function(){return new r(this,v)}}return function(){return new r(this)}},f=t+" Iterator",d=!1,h=e.prototype,y=h[gr]||h["@@iterator"]||o&&h[o],g=!rn&&y||u(o),p=t=="Array"&&h.entries||y;if(p&&(i=tn(p.call(new e)),co!==Object.prototype&&i.next&&(tn(i)!==co&&(en?en(i,co):typeof i[gr]!="function"&&Re(i,gr,Ap)),lo(i,f,!0))),o=="values"&&y&&y.name!=="values"&&(d=!0,g=function(){return y.call(this)}),h[gr]!==g&&Re(h,gr,g),Bt[t]=g,o)if(l={values:u("values"),keys:a?g:u("keys"),entries:u("entries")},s)for(c in l)(rn||d||!(c in h))&&ot(h,c,l[c]);else he({target:t,proto:!0,forced:rn||d},l);return l},Ll=Q("species"),Ep=Xe.f,Hl=Tl.fastKey,Gl=nt.set,ho=nt.getterFor;(function(e,t,r){var n=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,a=n?"set":"add",s=le[e],i=s&&s.prototype,l=s,c={},u=function(p){var v=i[p];ot(i,p,p=="add"?function(m){return v.call(this,m===0?0:m),this}:p=="delete"?function(m){return!(o&&!ce(m))&&v.call(this,m===0?0:m)}:p=="get"?function(m){return o&&!ce(m)?void 0:v.call(this,m===0?0:m)}:p=="has"?function(m){return!(o&&!ce(m))&&v.call(this,m===0?0:m)}:function(m,C){return v.call(this,m===0?0:m,C),this})};if(Nn(e,typeof s!="function"||!(o||i.forEach&&!X((function(){new s().entries().next()})))))l=r.getConstructor(t,e,n,a),Tl.REQUIRED=!0;else if(Nn(e,!0)){var f=new l,d=f[a](o?{}:-0,1)!=f,h=X((function(){f.has(1)})),y=Al((function(p){new s(p)})),g=!o&&X((function(){for(var p=new s,v=5;v--;)p[a](v,v);return!p.has(-0)}));y||((l=t((function(p,v){Pl(p,l,e);var m=(function(C,x,j){var _,F;return en&&typeof(_=x.constructor)=="function"&&_!==j&&ce(F=_.prototype)&&F!==j.prototype&&en(C,F),C})(new s,p,l);return v!=null&&$l(v,m[a],{that:m,AS_ENTRIES:n}),m}))).prototype=i,i.constructor=l),(h||g)&&(u("delete"),u("has"),n&&u("get")),(g||d)&&u(a),o&&i.clear&&delete i.clear}c[e]=l,he({global:!0,forced:l!=s},c),lo(l,e),o||r.setStrong(l,e,n)})("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),{getConstructor:function(e,t,r,n){var o=e((function(l,c){Pl(l,o,t),Gl(l,{type:t,index:no(null),first:void 0,last:void 0,size:0}),Pe||(l.size=0),c!=null&&$l(c,l[n],{that:l,AS_ENTRIES:r})})),a=ho(t),s=function(l,c,u){var f,d,h=a(l),y=i(l,c);return y?y.value=u:(h.last=y={index:d=Hl(c,!0),key:c,value:u,previous:f=h.last,next:void 0,removed:!1},h.first||(h.first=y),f&&(f.next=y),Pe?h.size++:l.size++,d!=="F"&&(h.index[d]=y)),l},i=function(l,c){var u,f=a(l),d=Hl(c);if(d!=="F")return f.index[d];for(u=f.first;u;u=u.next)if(u.key==c)return u};return Ml(o.prototype,{clear:function(){for(var l=a(this),c=l.index,u=l.first;u;)u.removed=!0,u.previous&&(u.previous=u.previous.next=void 0),delete c[u.index],u=u.next;l.first=l.last=void 0,Pe?l.size=0:this.size=0},delete:function(l){var c=this,u=a(c),f=i(c,l);if(f){var d=f.next,h=f.previous;delete u.index[f.index],f.removed=!0,h&&(h.next=d),d&&(d.previous=h),u.first==f&&(u.first=d),u.last==f&&(u.last=h),Pe?u.size--:c.size--}return!!f},forEach:function(l){for(var c,u=a(this),f=pr(l,arguments.length>1?arguments[1]:void 0,3);c=c?c.next:u.first;)for(f(c.value,c.key,this);c&&c.removed;)c=c.previous},has:function(l){return!!i(this,l)}}),Ml(o.prototype,r?{get:function(l){var c=i(this,l);return c&&c.value},set:function(l,c){return s(this,l===0?0:l,c)}}:{add:function(l){return s(this,l=l===0?0:l,l)}}),Pe&&Ep(o.prototype,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,r){var n=t+" Iterator",o=ho(t),a=ho(n);fo(e,t,(function(s,i){Gl(this,{type:n,target:s,state:o(s),kind:i,last:void 0})}),(function(){for(var s=a(this),i=s.kind,l=s.last;l&&l.removed;)l=l.previous;return s.target&&(s.last=l=l?l.next:s.state.first)?i=="keys"?{value:l.key,done:!1}:i=="values"?{value:l.value,done:!1}:{value:[l.key,l.value],done:!1}:(s.target=void 0,{value:void 0,done:!0})}),r?"entries":"values",!r,!0),(function(s){var i=qr(s),l=Xe.f;Pe&&i&&!i[Ll]&&l(i,Ll,{configurable:!0,get:function(){return this}})})(t)}});var jp=sl.charAt,Tp=nt.set,$p=nt.getterFor("String Iterator");fo(String,"String",(function(e){Tp(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=$p(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=jp(r,n),t.index+=e.length,{value:e,done:!1})}));var Nl={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Pp=nt.set,Rp=nt.getterFor("Array Iterator"),mr=fo(Array,"Array",(function(e,t){Pp(this,{type:"Array Iterator",target:Tt(e),index:0,kind:t})}),(function(){var e=Rp(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values");Bt.Arguments=Bt.Array,Nt("keys"),Nt("values"),Nt("entries");var po=Q("iterator"),Bl=Q("toStringTag"),vo=mr.values;for(var go in Nl){var Dl=le[go],Je=Dl&&Dl.prototype;if(Je){if(Je[po]!==vo)try{Re(Je,po,vo)}catch{Je[po]=vo}if(Je[Bl]||Re(Je,Bl,go),Nl[go]){for(var Dt in mr)if(Je[Dt]!==mr[Dt])try{Re(Je,Dt,mr[Dt])}catch{Je[Dt]=mr[Dt]}}}}(function(){function e(){yt(this,e)}return bt(e,null,[{key:"deduplicate",value:function(t){return Array.from(new Set(t))}},{key:"flat",value:function(t){return t.reduce((function(r,n){var o=Array.isArray(n)?e.flat(n):n;return r.concat(o)}),[])}},{key:"find",value:function(t,r){return t.find(r)}},{key:"findIndex",value:function(t,r){return t.findIndex(r)}}]),e})(),(function(){function e(){yt(this,e)}return bt(e,null,[{key:"today",value:function(){return new Date}}]),e})(),(function(){function e(){yt(this,e)}return bt(e,null,[{key:"range",value:function(t,r,n){return Math.min(Math.max(t,r),n)}},{key:"clamp",value:function(t,r,n){return r<n?t<r?r:t>n?n:t:t<n?n:t>r?r:t}}]),e})();var Mp=Object.defineProperty,Fp=(e,t,r)=>t in e?Mp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,pe=(e,t,r)=>(Fp(e,typeof t!="symbol"?t+"":t,r),r);const ne=e=>Math.round(e*100)/100;class ee{constructor(t){pe(this,"instance"),pe(this,"alphaValue",0),pe(this,"redValue",0),pe(this,"greenValue",0),pe(this,"blueValue",0),pe(this,"hueValue",0),pe(this,"saturationValue",0),pe(this,"brightnessValue",0),pe(this,"hslSaturationValue",0),pe(this,"lightnessValue",0),pe(this,"initAlpha",()=>{const r=this.instance.getAlpha();this.alphaValue=Math.min(1,r)*100}),pe(this,"initLightness",()=>{const{s:r,l:n}=this.instance.toHsl();this.hslSaturationValue=ne(r),this.lightnessValue=ne(n)}),pe(this,"initRgb",()=>{const{r,g:n,b:o}=this.instance.toRgb();this.redValue=ne(r),this.greenValue=ne(n),this.blueValue=ne(o)}),pe(this,"initHsb",()=>{const{h:r,s:n,v:o}=this.instance.toHsv();this.hueValue=Math.min(360,Math.ceil(r)),this.saturationValue=ne(n),this.brightnessValue=ne(o)}),pe(this,"toHexString",()=>this.instance.toHexString()),pe(this,"toRgbString",()=>this.instance.toRgbString()),this.instance=O(t),this.initRgb(),this.initHsb(),this.initLightness(),this.initAlpha()}toString(t){return this.instance.toString(t)}get hex(){return this.instance.toHex()}set hex(t){this.instance=O(t),this.initHsb(),this.initRgb(),this.initAlpha(),this.initLightness()}set hue(t){this.saturation===0&&this.brightness===0&&(this.saturationValue=1,this.brightnessValue=1),this.instance=O({h:ne(t),s:this.saturation,v:this.brightness,a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.hueValue=ne(t)}get hue(){return this.hueValue}set saturation(t){this.instance=O({h:this.hue,s:ne(t),v:this.brightness,a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.saturationValue=ne(t)}get saturation(){return this.saturationValue}set brightness(t){this.instance=O({h:this.hue,s:this.saturation,v:ne(t),a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.brightnessValue=ne(t)}get brightness(){return this.brightnessValue}set lightness(t){this.instance=O({h:this.hue,s:this.hslSaturationValue,l:ne(t),a:this.alphaValue/100}),this.initRgb(),this.initHsb(),this.lightnessValue=ne(t)}get lightness(){return this.lightnessValue}set red(t){const r=this.instance.toRgb();this.instance=O({...r,r:ne(t),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.redValue=ne(t)}get red(){return this.redValue}set green(t){const r=this.instance.toRgb();this.instance=O({...r,g:ne(t),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.greenValue=ne(t)}get green(){return this.greenValue}set blue(t){const r=this.instance.toRgb();this.instance=O({...r,b:ne(t),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.blueValue=ne(t)}get blue(){return this.blueValue}set alpha(t){this.instance.setAlpha(t/100),this.alphaValue=t}get alpha(){return this.alphaValue}get RGB(){return[this.red,this.green,this.blue,parseFloat((this.alpha/100).toFixed(2))]}get HSB(){return[this.hue,this.saturation,this.brightness,parseFloat((this.alpha/100).toFixed(2))]}get HSL(){return[this.hue,this.hslSaturationValue,this.lightness,parseFloat((this.alpha/100).toFixed(2))]}}function Vl(e,t,r,n){return`rgba(${[e,t,r,n/100].join(",")})`}const mo=(e,t,r)=>t<r?e<t?t:e>r?r:e:e<r?r:e>t?t:e,yo="color-history",bo=8,Me=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},Ip=L({name:"Alpha",props:{color:M.instanceOf(ee),size:M.oneOf(["small","default"]).def("default")},emits:["change"],setup(e,{emit:t}){const r=B(null),n=B(null);let o=e.color||new ee;const a=xe({red:o.red,green:o.green,blue:o.blue,alpha:o.alpha});ge(()=>e.color,f=>{f&&(o=f,Kt(a,{red:f.red,green:f.green,blue:f.blue,alpha:f.alpha}))},{deep:!0});const s=D(()=>{const f=Vl(a.red,a.green,a.blue,0),d=Vl(a.red,a.green,a.blue,100);return{background:`linear-gradient(to right, ${f} , ${d})`}}),i=()=>{if(r.value&&n.value){const f=a.alpha/100,d=r.value.getBoundingClientRect(),h=n.value.offsetWidth;return Math.round(f*(d.width-h)+h/2)}return 0},l=D(()=>({left:i()+"px",top:0})),c=f=>{f.target!==r.value&&u(f)},u=f=>{if(f.stopPropagation(),r.value&&n.value){const d=r.value.getBoundingClientRect(),h=n.value.offsetWidth;let y=f.clientX-d.left;y=Math.max(h/2,y),y=Math.min(y,d.width-h/2);const g=Math.round((y-h/2)/(d.width-h)*100);o.alpha=g,a.alpha=g,t("change",g)}};return ct(()=>{const f={drag:d=>{u(d)},end:d=>{u(d)}};r.value&&n.value&&hr.triggerDragEvent(r.value,f)}),{barElement:r,cursorElement:n,getCursorStyle:l,getBackgroundStyle:s,onClickSider:c}}}),Lp=e=>(it("data-v-18925ba6"),e=e(),lt(),e),Hp=Lp(()=>A("div",{class:"vc-alpha-slider__bar-handle"},null,-1)),Gp=[Hp];function Np(e,t,r,n,o,a){return R(),U("div",{class:fe(["vc-alpha-slider","transparent",{"small-slider":e.size==="small"}])},[A("div",{ref:"barElement",class:"vc-alpha-slider__bar",style:se(e.getBackgroundStyle),onClick:t[0]||(t[0]=(...s)=>e.onClickSider&&e.onClickSider(...s))},[A("div",{class:fe(["vc-alpha-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:se(e.getCursorStyle)},Gp,6)],4)],2)}const Co=Me(Ip,[["render",Np],["__scopeId","data-v-18925ba6"]]),Bp=[["#fcc02e","#f67c01","#e64a19","#d81b43","#8e24aa","#512da7","#1f87e8","#008781","#05a045"],["#fed835","#fb8c00","#f5511e","#eb1d4e","#9c28b1","#5d35b0","#2097f3","#029688","#4cb050"],["#ffeb3c","#ffa727","#fe5722","#eb4165","#aa47bc","#673bb7","#42a5f6","#26a59a","#83c683"],["#fff176","#ffb74e","#ff8a66","#f1627e","#b968c7","#7986cc","#64b5f6","#80cbc4","#a5d6a7"],["#fff59c","#ffcc80","#ffab91","#fb879e","#cf93d9","#9ea8db","#90caf8","#b2dfdc","#c8e6ca"],["transparent","#ffffff","#dedede","#a9a9a9","#4b4b4b","#353535","#212121","#000000","advance"]],Dp=L({name:"Palette",emits:["change"],setup(e,{emit:t}){return{palettes:Bp,computedBgStyle:r=>r==="transparent"?r:r==="advance"?{}:{background:O(r).toRgbString()},onColorChange:r=>{t("change",r)}}}}),Vp={class:"vc-compact"},qp=["onClick"];function Wp(e,t,r,n,o,a){return R(),U("div",Vp,[(R(!0),U(Qe,null,xt(e.palettes,(s,i)=>(R(),U("div",{key:i,class:"vc-compact__row"},[(R(!0),U(Qe,null,xt(s,(l,c)=>(R(),U("div",{key:c,class:"vc-compact__color-cube--wrap",onClick:u=>e.onColorChange(l)},[A("div",{class:fe(["vc-compact__color_cube",{advance:l==="advance",transparent:l==="transparent"}]),style:se(e.computedBgStyle(l))},null,6)],8,qp))),128))]))),128))])}const ql=Me(Dp,[["render",Wp],["__scopeId","data-v-b969fd48"]]),Up=L({name:"Board",props:{color:M.instanceOf(ee),round:M.bool.def(!1),hide:M.bool.def(!0)},emits:["change"],setup(e,{emit:t}){var r,n,o;const a=Cr(),s={h:((r=e.color)==null?void 0:r.hue)||0,s:1,v:1},i=new ee(s).toHexString(),l=xe({hueColor:i,saturation:((n=e.color)==null?void 0:n.saturation)||0,brightness:((o=e.color)==null?void 0:o.brightness)||0}),c=B(0),u=B(0),f=B(),d=D(()=>({top:c.value+"px",left:u.value+"px"})),h=()=>{if(a){const C=a.vnode.el;u.value=l.saturation*C?.clientWidth,c.value=(1-l.brightness)*C?.clientHeight}};let y=!1;const g=C=>{y=!0,m(C)},p=C=>{y&&m(C)},v=()=>{y=!1},m=C=>{if(a){const x=a.vnode.el,j=x?.getBoundingClientRect();let _=C.clientX-j.left,F=C.clientY-j.top;_=mo(_,0,j.width),F=mo(F,0,j.height);const V=_/j.width,N=mo(-(F/j.height)+1,0,1);u.value=_,c.value=F,l.saturation=V,l.brightness=N,t("change",V,N)}};return ct(()=>{a&&a.vnode.el&&f.value&&qt(()=>{h()})}),de(()=>e.color,C=>{Kt(l,{hueColor:new ee({h:C.hue,s:1,v:1}).toHexString(),saturation:C.saturation,brightness:C.brightness}),h()},{deep:!0}),{state:l,cursorElement:f,getCursorStyle:d,onClickBoard:g,onDrag:p,onDragEnd:v}}}),wo=e=>(it("data-v-7f0cdcdf"),e=e(),lt(),e),zp=wo(()=>A("div",{class:"vc-saturation__white"},null,-1)),Kp=wo(()=>A("div",{class:"vc-saturation__black"},null,-1)),Xp=wo(()=>A("div",null,null,-1)),Yp=[Xp];function Jp(e,t,r,n,o,a){return R(),U("div",{ref:"boardElement",class:fe(["vc-saturation",{"vc-saturation__chrome":e.round,"vc-saturation__hidden":e.hide}]),style:se({backgroundColor:e.state.hueColor}),onMousedown:t[0]||(t[0]=(...s)=>e.onClickBoard&&e.onClickBoard(...s)),onMousemove:t[1]||(t[1]=(...s)=>e.onDrag&&e.onDrag(...s)),onMouseup:t[2]||(t[2]=(...s)=>e.onDragEnd&&e.onDragEnd(...s))},[zp,Kp,A("div",{class:"vc-saturation__cursor",ref:"cursorElement",style:se(e.getCursorStyle)},Yp,4)],38)}const So=Me(Up,[["render",Jp],["__scopeId","data-v-7f0cdcdf"]]),Zp=L({name:"Hue",props:{color:M.instanceOf(ee),size:M.oneOf(["small","default"]).def("default")},emits:["change"],setup(e,{emit:t}){const r=B(null),n=B(null);let o=e.color||new ee;const a=xe({hue:o.hue||0});ge(()=>e.color,u=>{u&&(o=u,Kt(a,{hue:o.hue}))},{deep:!0});const s=()=>{if(r.value&&n.value){const u=r.value.getBoundingClientRect(),f=n.value.offsetWidth;return a.hue===360?u.width-f/2:a.hue%360*(u.width-f)/360+f/2}return 0},i=D(()=>({left:s()+"px",top:0})),l=u=>{u.target!==r.value&&c(u)},c=u=>{if(u.stopPropagation(),r.value&&n.value){const f=r.value.getBoundingClientRect(),d=n.value.offsetWidth;let h=u.clientX-f.left;h=Math.min(h,f.width-d/2),h=Math.max(d/2,h);const y=Math.round((h-d/2)/(f.width-d)*360);o.hue=y,a.hue=y,t("change",y)}};return ct(()=>{const u={drag:f=>{c(f)},end:f=>{c(f)}};r.value&&n.value&&hr.triggerDragEvent(r.value,u)}),{barElement:r,cursorElement:n,getCursorStyle:i,onClickSider:l}}}),Qp=e=>(it("data-v-e1a08576"),e=e(),lt(),e),ev=Qp(()=>A("div",{class:"vc-hue-slider__bar-handle"},null,-1)),tv=[ev];function rv(e,t,r,n,o,a){return R(),U("div",{class:fe(["vc-hue-slider",{"small-slider":e.size==="small"}])},[A("div",{ref:"barElement",class:"vc-hue-slider__bar",onClick:t[0]||(t[0]=(...s)=>e.onClickSider&&e.onClickSider(...s))},[A("div",{class:fe(["vc-hue-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:se(e.getCursorStyle)},tv,6)],512)],2)}const xo=Me(Zp,[["render",rv],["__scopeId","data-v-e1a08576"]]),nv=L({name:"Lightness",props:{color:M.instanceOf(ee),size:M.oneOf(["small","default"]).def("default")},emits:["change"],setup(e,{emit:t}){const r=B(null),n=B(null);let o=e.color||new ee;const[a,s,i]=o.HSL,l=xe({hue:a,saturation:s,lightness:i});ge(()=>e.color,y=>{if(y){o=y;const[g,p,v]=o.HSL;Kt(l,{hue:g,saturation:p,lightness:v})}},{deep:!0});const c=D(()=>{const y=O({h:l.hue,s:l.saturation,l:.8}).toPercentageRgbString(),g=O({h:l.hue,s:l.saturation,l:.6}).toPercentageRgbString(),p=O({h:l.hue,s:l.saturation,l:.4}).toPercentageRgbString(),v=O({h:l.hue,s:l.saturation,l:.2}).toPercentageRgbString();return{background:[`linear-gradient(to right, rgb(255, 255, 255), ${y}, ${g}, ${p}, ${v}, rgb(0, 0, 0))`,`-webkit-linear-gradient(left, rgb(255, 255, 255), ${y}, ${g}, ${p}, ${v}, rgb(0, 0, 0))`,`-moz-linear-gradient(left, rgb(255, 255, 255), ${y}, ${g}, ${p}, ${v}, rgb(0, 0, 0))`,`-ms-linear-gradient(left, rgb(255, 255, 255), ${y}, ${g}, ${p}, ${v}, rgb(0, 0, 0))`]}}),u=()=>{if(r.value&&n.value){const y=l.lightness,g=r.value.getBoundingClientRect(),p=n.value.offsetWidth;return(1-y)*(g.width-p)+p/2}return 0},f=D(()=>({left:u()+"px",top:0})),d=y=>{y.target!==r.value&&h(y)},h=y=>{if(y.stopPropagation(),r.value&&n.value){const g=r.value.getBoundingClientRect(),p=n.value.offsetWidth;let v=y.clientX-g.left;v=Math.max(p/2,v),v=Math.min(v,g.width-p/2);const m=1-(v-p/2)/(g.width-p);o.lightness=m,t("change",m)}};return ct(()=>{const y={drag:g=>{h(g)},end:g=>{h(g)}};r.value&&n.value&&hr.triggerDragEvent(r.value,y)}),{barElement:r,cursorElement:n,getCursorStyle:f,getBackgroundStyle:c,onClickSider:d}}}),ov=e=>(it("data-v-94a50a9e"),e=e(),lt(),e),av=ov(()=>A("div",{class:"vc-lightness-slider__bar-handle"},null,-1)),iv=[av];function lv(e,t,r,n,o,a){return R(),U("div",{class:fe(["vc-lightness-slider",{"small-slider":e.size==="small"}])},[A("div",{ref:"barElement",class:"vc-lightness-slider__bar",style:se(e.getBackgroundStyle),onClick:t[0]||(t[0]=(...s)=>e.onClickSider&&e.onClickSider(...s))},[A("div",{class:fe(["vc-lightness-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:se(e.getCursorStyle)},iv,6)],4)],2)}const Wl=Me(nv,[["render",lv],["__scopeId","data-v-94a50a9e"]]),sv=L({name:"History",props:{colors:M.arrayOf(String).def(()=>[]),round:M.bool.def(!1)},emits:["change"],setup(e,{emit:t}){return{onColorSelect:r=>{t("change",r)}}}}),uv={key:0,class:"vc-colorPicker__record"},cv={class:"color-list"},fv=["onClick"];function dv(e,t,r,n,o,a){return e.colors&&e.colors.length>0?(R(),U("div",uv,[A("div",cv,[(R(!0),U(Qe,null,xt(e.colors,(s,i)=>(R(),U("div",{key:i,class:fe(["color-item","transparent",{"color-item__round":e.round}]),onClick:l=>e.onColorSelect(s)},[A("div",{class:"color-item__display",style:se({backgroundColor:s})},null,4)],10,fv))),128))])])):K("",!0)}const Oo=Me(sv,[["render",dv],["__scopeId","data-v-0f657238"]]),hv=L({name:"Display",props:{color:M.instanceOf(ee),disableAlpha:M.bool.def(!1)},emits:["update:color","change"],setup(e,{emit:t}){var r,n,o,a;const{copy:s,copied:i,isSupported:l}=gc(),c=B("hex"),u=xe({color:e.color,hex:(r=e.color)==null?void 0:r.hex,alpha:Math.round(((n=e.color)==null?void 0:n.alpha)||100),rgba:(o=e.color)==null?void 0:o.RGB,previewBgColor:(a=e.color)==null?void 0:a.toRgbString()}),f=D(()=>({background:u.previewBgColor})),d=()=>{c.value=c.value==="rgba"?"hex":"rgba"},h=We(v=>{if(!v.target.value)return;let m=parseInt(v.target.value.replace("%",""));m>100&&(v.target.value="100",m=100),m<0&&(v.target.value="0",m=0),isNaN(m)&&(v.target.value="100",m=100),!isNaN(m)&&u.color&&(u.color.alpha=m),t("change",u.color)},300),y=We((v,m)=>{if(u.color){if(c.value==="hex"){const C=v.target.value.replace("#","");O(C).isValid()?[3,4].includes(C.length)&&(u.color.hex=C):u.color.hex="000000",t("change",u.color)}else if(c.value==="rgba"&&m===3&&v.target.value.toString()==="0."&&u.rgba){u.rgba[m]=v.target.value;const[C,x,j,_]=u.rgba;u.color.hex=O({r:C,g:x,b:j}).toHex(),u.color.alpha=Math.round(_*100),t("change",u.color)}}},100),g=We((v,m)=>{if(v.target.value){if(c.value==="hex"){const C=v.target.value.replace("#","");O(C).isValid()&&u.color&&[6,8].includes(C.length)&&(u.color.hex=C)}else if(m!==void 0&&u.rgba&&u.color){if(v.target.value<0&&(v.target.value=0),m===3&&((v.target.value>1||isNaN(v.target.value))&&(v.target.value=1),v.target.value.toString()==="0."))return;m<3&&v.target.value>255&&(v.target.value=255),u.rgba[m]=v.target.value;const[C,x,j,_]=u.rgba;u.color.hex=O({r:C,g:x,b:j}).toHex(),u.color.alpha=Math.round(_*100)}t("change",u.color)}},300),p=()=>{if(l&&u.color){const v=c.value==="hex"?u.color.toString(u.color.alpha===100?"hex6":"hex8"):u.color.toRgbString();s(v||"")}};return de(()=>e.color,v=>{v&&(u.color=v,u.alpha=Math.round(u.color.alpha),u.hex=u.color.hex,u.rgba=u.color.RGB)},{deep:!0}),de(()=>u.color,()=>{u.color&&(u.previewBgColor=u.color.toRgbString())},{deep:!0}),{state:u,getBgColorStyle:f,inputType:c,copied:i,onInputTypeChange:d,onAlphaBlur:h,onInputChange:g,onBlurChange:y,onCopyColorStr:p}}}),pv={class:"vc-display"},vv={class:"vc-current-color vc-transparent"},gv={key:0,class:"copy-text"},mv={key:0,style:{display:"flex",flex:"1",gap:"4px",height:"100%"}},yv={class:"vc-color-input"},bv={key:0,class:"vc-alpha-input"},Cv=["value"],wv={key:1,style:{display:"flex",flex:"1",gap:"4px",height:"100%"}},Sv=["value","onInput","onBlur"];function xv(e,t,r,n,o,a){return R(),U("div",pv,[A("div",vv,[A("div",{class:"color-cube",style:se(e.getBgColorStyle),onClick:t[0]||(t[0]=(...s)=>e.onCopyColorStr&&e.onCopyColorStr(...s))},[e.copied?(R(),U("span",gv,"Copied!")):K("",!0)],4)]),e.inputType==="hex"?(R(),U("div",mv,[A("div",yv,[Ut(A("input",{"onUpdate:modelValue":t[1]||(t[1]=s=>e.state.hex=s),maxlength:"8",onInput:t[2]||(t[2]=(...s)=>e.onInputChange&&e.onInputChange(...s)),onBlur:t[3]||(t[3]=(...s)=>e.onBlurChange&&e.onBlurChange(...s))},null,544),[[Vo,e.state.hex]])]),e.disableAlpha?K("",!0):(R(),U("div",bv,[A("input",{class:"vc-alpha-input__inner",value:e.state.alpha,onInput:t[4]||(t[4]=(...s)=>e.onAlphaBlur&&e.onAlphaBlur(...s))},null,40,Cv),br("% ")]))])):e.state.rgba?(R(),U("div",wv,[(R(!0),U(Qe,null,xt(e.state.rgba,(s,i)=>(R(),U("div",{class:"vc-color-input",key:i},[A("input",{value:s,onInput:l=>e.onInputChange(l,i),onBlur:l=>e.onBlurChange(l,i)},null,40,Sv)]))),128))])):K("",!0),A("div",{class:"vc-input-toggle",onClick:t[5]||(t[5]=(...s)=>e.onInputTypeChange&&e.onInputTypeChange(...s))},zt(e.inputType),1)])}const ko=Me(hv,[["render",xv],["__scopeId","data-v-7334ac20"]]),Ov=L({name:"FkColorPicker",components:{Display:ko,Alpha:Co,Palette:ql,Board:So,Hue:xo,Lightness:Wl,History:Oo},props:{color:M.instanceOf(ee),disableHistory:M.bool.def(!1),roundHistory:M.bool.def(!1),disableAlpha:M.bool.def(!1)},emits:["update:color","change","advanceChange"],setup(e,{emit:t}){const r=e.color||new ee,n=xe({color:r,hex:r.toHexString(),rgb:r.toRgbString()}),o=B(!1),a=D(()=>({background:n.rgb})),s=()=>{o.value=!1,t("advanceChange",!1)},i=Cn(yo,[],{}),l=We(()=>{if(e.disableHistory)return;const g=n.color.toRgbString();if(i.value=i.value.filter(p=>!O.equals(p,g)),!i.value.includes(g)){for(;i.value.length>bo;)i.value.pop();i.value.unshift(g)}},500),c=g=>{g==="advance"?(o.value=!0,t("advanceChange",!0)):(n.color.hex=g,t("advanceChange",!1))},u=g=>{n.color.alpha=g},f=g=>{n.color.hue=g},d=(g,p)=>{n.color.saturation=g,n.color.brightness=p},h=g=>{n.color.lightness=g},y=g=>{const p=g.target.value.replace("#","");O(p).isValid()&&(n.color.hex=p)};return de(()=>e.color,g=>{g&&(n.color=g)},{deep:!0}),de(()=>n.color,()=>{n.hex=n.color.hex,n.rgb=n.color.toRgbString(),l(),t("update:color",n.color),t("change",n.color)},{deep:!0}),{state:n,advancePanelShow:o,onBack:s,onCompactChange:c,onAlphaChange:u,onHueChange:f,onBoardChange:d,onLightChange:h,onInputChange:y,previewStyle:a,historyColors:i}}}),kv=e=>(it("data-v-48e3c224"),e=e(),lt(),e),_v={class:"vc-fk-colorPicker"},Av={class:"vc-fk-colorPicker__inner"},Ev={class:"vc-fk-colorPicker__header"},jv=kv(()=>A("div",{class:"back"},null,-1)),Tv=[jv];function $v(e,t,r,n,o,a){const s=E("Palette"),i=E("Board"),l=E("Hue"),c=E("Lightness"),u=E("Alpha"),f=E("Display"),d=E("History");return R(),U("div",_v,[A("div",Av,[A("div",Ev,[e.advancePanelShow?(R(),U("span",{key:0,style:{cursor:"pointer"},onClick:t[0]||(t[0]=(...h)=>e.onBack&&e.onBack(...h))},Tv)):K("",!0)]),e.advancePanelShow?K("",!0):(R(),re(s,{key:0,onChange:e.onCompactChange},null,8,["onChange"])),e.advancePanelShow?(R(),re(i,{key:1,color:e.state.color,onChange:e.onBoardChange},null,8,["color","onChange"])):K("",!0),e.advancePanelShow?(R(),re(l,{key:2,color:e.state.color,onChange:e.onHueChange},null,8,["color","onChange"])):K("",!0),e.advancePanelShow?K("",!0):(R(),re(c,{key:3,color:e.state.color,onChange:e.onLightChange},null,8,["color","onChange"])),e.disableAlpha?K("",!0):(R(),re(u,{key:4,color:e.state.color,onChange:e.onAlphaChange},null,8,["color","onChange"])),w(f,{color:e.state.color,"disable-alpha":e.disableAlpha},null,8,["color","disable-alpha"]),e.disableHistory?K("",!0):(R(),re(d,{key:5,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])])}const Ul=Me(Ov,[["render",$v],["__scopeId","data-v-48e3c224"]]),Pv=L({name:"ChromeColorPicker",components:{Display:ko,Alpha:Co,Board:So,Hue:xo,History:Oo},props:{color:M.instanceOf(ee),disableHistory:M.bool.def(!1),roundHistory:M.bool.def(!1),disableAlpha:M.bool.def(!1)},emits:["update:color","change"],setup(e,{emit:t}){const r=e.color||new ee,n=xe({color:r,hex:r.toHexString(),rgb:r.toRgbString()}),o=D(()=>({background:n.rgb})),a=Cn(yo,[],{}),s=We(()=>{if(e.disableHistory)return;const d=n.color.toRgbString();if(a.value=a.value.filter(h=>!O.equals(h,d)),!a.value.includes(d)){for(;a.value.length>bo;)a.value.pop();a.value.unshift(d)}},500),i=d=>{n.color.alpha=d},l=d=>{n.color.hue=d},c=d=>{d.hex!==void 0&&(n.color.hex=d.hex),d.alpha!==void 0&&(n.color.alpha=d.alpha)},u=(d,h)=>{n.color.saturation=d,n.color.brightness=h},f=d=>{d!=="advance"&&(n.color.hex=d)};return de(()=>e.color,d=>{d&&(n.color=d)},{deep:!0}),de(()=>n.color,()=>{n.hex=n.color.hex,n.rgb=n.color.toRgbString(),s(),t("update:color",n.color),t("change",n.color)},{deep:!0}),{state:n,previewStyle:o,historyColors:a,onAlphaChange:i,onHueChange:l,onBoardChange:u,onInputChange:c,onCompactChange:f}}}),Rv={class:"vc-chrome-colorPicker"},Mv={class:"vc-chrome-colorPicker-body"},Fv={class:"chrome-controls"},Iv={class:"chrome-sliders"};function Lv(e,t,r,n,o,a){const s=E("Board"),i=E("Hue"),l=E("Alpha"),c=E("Display"),u=E("History");return R(),U("div",Rv,[w(s,{round:!0,hide:!1,color:e.state.color,onChange:e.onBoardChange},null,8,["color","onChange"]),A("div",Mv,[A("div",Fv,[A("div",Iv,[w(i,{size:"small",color:e.state.color,onChange:e.onHueChange},null,8,["color","onChange"]),e.disableAlpha?K("",!0):(R(),re(l,{key:0,size:"small",color:e.state.color,onChange:e.onAlphaChange},null,8,["color","onChange"]))])]),w(c,{color:e.state.color,"disable-alpha":e.disableAlpha},null,8,["color","disable-alpha"]),e.disableHistory?K("",!0):(R(),re(u,{key:0,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])])}const zl=Me(Pv,[["render",Lv],["__scopeId","data-v-2611d66c"]]),_o="Vue3ColorPickerProvider",Hv=(e,t)=>{const r=e.getBoundingClientRect(),n=r.left+r.width/2,o=r.top+r.height/2,a=Math.abs(n-t.clientX),s=Math.abs(o-t.clientY),i=Math.sqrt(Math.pow(a,2)+Math.pow(s,2)),l=s/i,c=Math.acos(l);let u=Math.floor(180/(Math.PI/c));return t.clientX>n&&t.clientY>o&&(u=180-u),t.clientX==n&&t.clientY>o&&(u=180),t.clientX>n&&t.clientY==o&&(u=90),t.clientX<n&&t.clientY>o&&(u=180+u),t.clientX<n&&t.clientY==o&&(u=270),t.clientX<n&&t.clientY<o&&(u=360-u),u};let Ao=!1;const Gv=(e,t)=>{const r=function(o){var a;(a=t.drag)==null||a.call(t,o)},n=function(o){var a;document.removeEventListener("mousemove",r,!1),document.removeEventListener("mouseup",n,!1),document.onselectstart=null,document.ondragstart=null,Ao=!1,(a=t.end)==null||a.call(t,o)};e&&e.addEventListener("mousedown",o=>{var a;Ao||(document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",r,!1),document.addEventListener("mouseup",n,!1),Ao=!0,(a=t.start)==null||a.call(t,o))})},Nv={angle:{type:Number,default:0},size:{type:Number,default:16,validator:e=>e>=16},borderWidth:{type:Number,default:1,validator:e=>e>=1},borderColor:{type:String,default:"#666"}},Bv=L({name:"Angle",props:Nv,emits:["update:angle","change"],setup(e,{emit:t}){const r=B(null),n=B(0);ge(()=>e.angle,i=>{n.value=i});const o=()=>{let i=Number(n.value);isNaN(i)||(i=i>360||i<0?e.angle:i,n.value=i===360?0:i,t("update:angle",n.value),t("change",n.value))},a=D(()=>({width:e.size+"px",height:e.size+"px",borderWidth:e.borderWidth+"px",borderColor:e.borderColor,transform:`rotate(${n.value}deg)`})),s=i=>{r.value&&(n.value=Hv(r.value,i)%360,o())};return Vt(()=>{const i={drag:l=>{s(l)},end:l=>{s(l)}};r.value&&Gv(r.value,i)}),()=>w("div",{class:"bee-angle"},[w("div",{class:"bee-angle__round",ref:r,style:a.value},null)])}}),Dv=L({name:"GradientColorPicker",components:{Angle:Bv,Display:ko,Alpha:Co,Palette:ql,Board:So,Hue:xo,Lightness:Wl,History:Oo},props:{startColor:M.instanceOf(ee).isRequired,endColor:M.instanceOf(ee).isRequired,startColorStop:M.number.def(0),endColorStop:M.number.def(100),angle:M.number.def(0),type:M.oneOf(["linear","radial"]).def("linear"),disableHistory:M.bool.def(!1),roundHistory:M.bool.def(!1),disableAlpha:M.bool.def(!1),pickerType:M.oneOf(["fk","chrome"]).def("fk")},emits:["update:startColor","update:endColor","update:angle","update:startColorStop","update:endColorStop","startColorChange","endColorChange","advanceChange","angleChange","startColorStopChange","endColorStopChange","typeChange"],setup(e,{emit:t}){const r=xe({startActive:!0,startColor:e.startColor,endColor:e.endColor,startColorStop:e.startColorStop,endColorStop:e.endColorStop,angle:e.angle,type:e.type,startColorRgba:e.startColor.toRgbString(),endColorRgba:e.endColor.toRgbString()}),n=an(_o),o=B(e.pickerType==="chrome"),a=B(),s=B(),i=B();ge(()=>[e.startColor,e.endColor,e.angle],b=>{r.startColor=b[0],r.endColor=b[1],r.angle=b[2]}),ge(()=>e.type,b=>{r.type=b});const l=D({get:()=>r.startActive?r.startColor:r.endColor,set:b=>{if(r.startActive){r.startColor=b;return}r.endColor=b}}),c=D(()=>{if(i.value&&a.value){const b=r.startColorStop/100,$=i.value.getBoundingClientRect(),H=a.value.offsetWidth;return Math.round(b*($.width-H)+H/2)}return 0}),u=D(()=>{if(i.value&&s.value){const b=r.endColorStop/100,$=i.value.getBoundingClientRect(),H=s.value.offsetWidth;return Math.round(b*($.width-H)+H/2)}return 0}),f=D(()=>{let b=`background: linear-gradient(${r.angle}deg, ${r.startColorRgba} ${r.startColorStop}%, ${r.endColorRgba} ${r.endColorStop}%)`;return r.type==="radial"&&(b=`background: radial-gradient(circle, ${r.startColorRgba} ${r.startColorStop}%, ${r.endColorRgba} ${r.endColorStop}%)`),b}),d=b=>{var $;if(r.startActive=!0,i.value&&a.value){const H=($=i.value)==null?void 0:$.getBoundingClientRect();let T=b.clientX-H.left;T=Math.max(a.value.offsetWidth/2,T),T=Math.min(T,H.width-a.value.offsetWidth/2),r.startColorStop=Math.round((T-a.value.offsetWidth/2)/(H.width-a.value.offsetWidth)*100),t("update:startColorStop",r.startColorStop),t("startColorStopChange",r.startColorStop)}},h=b=>{var $;if(r.startActive=!1,i.value&&s.value){const H=($=i.value)==null?void 0:$.getBoundingClientRect();let T=b.clientX-H.left;T=Math.max(s.value.offsetWidth/2,T),T=Math.min(T,H.width-s.value.offsetWidth/2),r.endColorStop=Math.round((T-s.value.offsetWidth/2)/(H.width-s.value.offsetWidth)*100),t("update:endColorStop",r.endColorStop),t("endColorStopChange",r.endColorStop)}},y=b=>{const $=b.target,H=parseInt($.value.replace("°",""));isNaN(H)||(r.angle=H%360),t("update:angle",r.angle),t("angleChange",r.angle)},g=b=>{r.angle=b,t("update:angle",r.angle),t("angleChange",r.angle)},p=b=>{b==="advance"?(o.value=!0,t("advanceChange",!0)):(l.value.hex=b,t("advanceChange",!1)),_()},v=b=>{l.value.alpha=b,_()},m=b=>{l.value.hue=b,_()},C=(b,$)=>{l.value.saturation=b,l.value.brightness=$,_()},x=b=>{l.value.lightness=b,_()},j=()=>{_()},_=()=>{r.startActive?(t("update:startColor",r.startColor),t("startColorChange",r.startColor)):(t("update:endColor",r.endColor),t("endColorChange",r.endColor))},F=()=>{o.value=!1,t("advanceChange",!1)},V=()=>{r.type=r.type==="linear"?"radial":"linear",t("typeChange",r.type)},N=Cn(yo,[],{}),z=We(()=>{if(e.disableHistory)return;const b=l.value.toRgbString();if(N.value=N.value.filter($=>!O.equals($,b)),!N.value.includes(b)){for(;N.value.length>bo;)N.value.pop();N.value.unshift(b)}},500);return ct(()=>{s.value&&a.value&&(hr.triggerDragEvent(s.value,{drag:b=>{h(b)},end:b=>{h(b)}}),hr.triggerDragEvent(a.value,{drag:b=>{d(b)},end:b=>{d(b)}}))}),de(()=>r.startColor,b=>{r.startColorRgba=b.toRgbString()},{deep:!0}),de(()=>r.endColor,b=>{r.endColorRgba=b.toRgbString()},{deep:!0}),de(()=>l.value,()=>{z()},{deep:!0}),{startGradientRef:a,stopGradientRef:s,colorRangeRef:i,state:r,currentColor:l,getStartColorLeft:c,getEndColorLeft:u,gradientBg:f,advancePanelShow:o,onDegreeBlur:y,onCompactChange:p,onAlphaChange:v,onHueChange:m,onBoardChange:C,onLightChange:x,historyColors:N,onBack:F,onDegreeChange:g,onDisplayChange:j,onTypeChange:V,lang:n?.lang}}}),Kl=e=>(it("data-v-c4d6d6ea"),e=e(),lt(),e),Vv={class:"vc-gradient-picker"},qv={class:"vc-gradient-picker__header"},Wv={class:"vc-gradient__types"},Uv={class:"vc-gradient-wrap__types"},zv={class:"vc-picker-degree-input vc-degree-input"},Kv={class:"vc-degree-input__control"},Xv=["value"],Yv={class:"vc-degree-input__panel"},Jv={class:"vc-degree-input__disk"},Zv={class:"vc-gradient-picker__body"},Qv={class:"vc-color-range",ref:"colorRangeRef"},eg={class:"vc-color-range__container"},tg={class:"vc-gradient__stop__container"},rg=["title"],ng=Kl(()=>A("span",{class:"vc-gradient__stop--inner"},null,-1)),og=[ng],ag=["title"],ig=Kl(()=>A("span",{class:"vc-gradient__stop--inner"},null,-1)),lg=[ig];function sg(e,t,r,n,o,a){var s,i;const l=E("Angle"),c=E("Board"),u=E("Hue"),f=E("Palette"),d=E("Lightness"),h=E("Alpha"),y=E("Display"),g=E("History");return R(),U("div",Vv,[A("div",qv,[A("div",null,[Ut(A("div",{class:"back",style:{cursor:"pointer"},onClick:t[0]||(t[0]=(...p)=>e.onBack&&e.onBack(...p))},null,512),[[Sr,e.pickerType==="fk"&&e.advancePanelShow]])]),A("div",Wv,[A("div",Uv,[(R(),U(Qe,null,xt(["linear","radial"],p=>A("div",{class:fe(["vc-gradient__type",{active:e.state.type===p}]),key:p,onClick:t[1]||(t[1]=(...v)=>e.onTypeChange&&e.onTypeChange(...v))},zt(e.lang?e.lang[p]:p),3)),64))]),Ut(A("div",zv,[A("div",Kv,[A("input",{value:e.state.angle,onBlur:t[2]||(t[2]=(...p)=>e.onDegreeBlur&&e.onDegreeBlur(...p))},null,40,Xv),br("deg ")]),A("div",Yv,[A("div",Jv,[w(l,{angle:e.state.angle,"onUpdate:angle":t[3]||(t[3]=p=>e.state.angle=p),size:40,onChange:e.onDegreeChange},null,8,["angle","onChange"])])])],512),[[Sr,e.state.type==="linear"]])])]),A("div",Zv,[A("div",Qv,[A("div",eg,[A("div",{class:"vc-background",style:se(e.gradientBg)},null,4),A("div",tg,[A("div",{class:fe(["vc-gradient__stop",{"vc-gradient__stop--current":e.state.startActive}]),ref:"startGradientRef",title:(s=e.lang)==null?void 0:s.start,style:se({left:e.getStartColorLeft+"px",backgroundColor:e.state.startColorRgba})},og,14,rg),A("div",{class:fe(["vc-gradient__stop",{"vc-gradient__stop--current":!e.state.startActive}]),ref:"stopGradientRef",title:(i=e.lang)==null?void 0:i.end,style:se({left:e.getEndColorLeft+"px",backgroundColor:e.state.endColorRgba})},lg,14,ag)])])],512)]),e.advancePanelShow?(R(),re(c,{key:0,color:e.currentColor,onChange:e.onBoardChange},null,8,["color","onChange"])):K("",!0),e.advancePanelShow?(R(),re(u,{key:1,color:e.currentColor,onChange:e.onHueChange},null,8,["color","onChange"])):K("",!0),e.advancePanelShow?K("",!0):(R(),re(f,{key:2,onChange:e.onCompactChange},null,8,["onChange"])),e.advancePanelShow?K("",!0):(R(),re(d,{key:3,color:e.currentColor,onChange:e.onLightChange},null,8,["color","onChange"])),e.disableAlpha?K("",!0):(R(),re(h,{key:4,color:e.currentColor,onChange:e.onAlphaChange},null,8,["color","onChange"])),w(y,{color:e.currentColor,"disable-alpha":e.disableAlpha,onChange:e.onDisplayChange},null,8,["color","disable-alpha","onChange"]),e.disableHistory?K("",!0):(R(),re(g,{key:5,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])}const Xl=Me(Dv,[["render",sg],["__scopeId","data-v-c4d6d6ea"]]),ug=L({name:"WrapContainer",props:{theme:M.oneOf(["white","black"]).def("white"),showTab:M.bool.def(!1),activeKey:M.oneOf(["pure","gradient"]).def("pure")},emits:["update:activeKey","change"],setup(e,{emit:t}){const r=xe({activeKey:e.activeKey}),n=an(_o),o=a=>{r.activeKey=a,t("update:activeKey",a),t("change",a)};return de(()=>e.activeKey,a=>{r.activeKey=a}),{state:r,onActiveKeyChange:o,lang:n?.lang}}}),cg={class:"vc-colorpicker--container"},fg={key:0,class:"vc-colorpicker--tabs"},dg={class:"vc-colorpicker--tabs__inner"},hg={class:"vc-btn__content"},pg={class:"vc-btn__content"};function vg(e,t,r,n,o,a){var s,i;return R(),U("div",{class:fe(["vc-colorpicker",e.theme])},[A("div",cg,[e.showTab?(R(),U("div",fg,[A("div",dg,[A("div",{class:fe(["vc-colorpicker--tabs__btn",{"vc-btn-active":e.state.activeKey==="pure"}]),onClick:t[0]||(t[0]=l=>e.onActiveKeyChange("pure"))},[A("button",null,[A("div",hg,zt((s=e.lang)==null?void 0:s.pure),1)])],2),A("div",{class:fe(["vc-colorpicker--tabs__btn",{"vc-btn-active":e.state.activeKey==="gradient"}]),onClick:t[1]||(t[1]=l=>e.onActiveKeyChange("gradient"))},[A("button",null,[A("div",pg,zt((i=e.lang)==null?void 0:i.gradient),1)])],2),A("div",{class:"vc-colorpicker--tabs__bg",style:se({width:"50%",left:`calc(${e.state.activeKey==="gradient"?50:0}%)`})},null,4)])])):K("",!0),wr(e.$slots,"default",{},void 0,!0)])],2)}const gg=Me(ug,[["render",vg],["__scopeId","data-v-0492277d"]]),mg={start:"Start",end:"End",pure:"Pure",gradient:"Gradient",linear:"linear",radial:"radial"},yg={start:"开始",end:"结束",pure:"纯色",gradient:"渐变",linear:"线性",radial:"径向"},bg={En:mg,"ZH-cn":yg},Cg={isWidget:M.bool.def(!1),pickerType:M.oneOf(["fk","chrome"]).def("fk"),shape:M.oneOf(["circle","square"]).def("square"),pureColor:{type:[String,Object],default:"#000000"},gradientColor:M.string.def("linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(0, 0, 0, 1) 100%)"),format:{type:String,default:"rgb"},disableAlpha:M.bool.def(!1),disableHistory:M.bool.def(!1),roundHistory:M.bool.def(!1),useType:M.oneOf(["pure","gradient","both"]).def("pure"),activeKey:M.oneOf(["pure","gradient"]).def("pure"),lang:{type:String,default:"ZH-cn"},zIndex:M.number.def(9999),pickerContainer:{type:[String,HTMLElement],default:"body"},debounce:M.number.def(100),theme:M.oneOf(["white","black"]).def("white"),blurClose:M.bool.def(!1),defaultPopup:M.bool.def(!1)},wg=L({name:"ColorPicker",components:{FkColorPicker:Ul,ChromeColorPicker:zl,GradientColorPicker:Xl,WrapContainer:gg},inheritAttrs:!1,props:Cg,emits:["update:pureColor","pureColorChange","update:gradientColor","gradientColorChange","update:activeKey","activeKeyChange"],setup(e,{emit:t}){ln(_o,{lang:D(()=>bg[e.lang||"ZH-cn"])});const r=!!Bo().extra,n=xe({pureColor:e.pureColor||"",activeKey:e.useType==="gradient"?"gradient":e.activeKey,isAdvanceMode:!1}),o=new ee("#000"),a=new ee("#000"),s=new ee(n.pureColor),i=xe({startColor:o,endColor:a,startColorStop:0,endColorStop:100,angle:0,type:"linear",gradientColor:e.gradientColor}),l=B(s),c=B(e.defaultPopup),u=B(null),f=B(null);let d=null;const h=D(()=>({background:n.activeKey!=="gradient"?O(n.pureColor).toRgbString():i.gradientColor})),y=D(()=>n.activeKey==="gradient"?Xl.name:e.pickerType==="fk"?Ul.name:zl.name),g=b=>{n.isAdvanceMode=b},p=D(()=>{const b={disableAlpha:e.disableAlpha,disableHistory:e.disableHistory,roundHistory:e.roundHistory,pickerType:e.pickerType};return n.activeKey==="gradient"?{...b,startColor:i.startColor,endColor:i.endColor,angle:i.angle,type:i.type,startColorStop:i.startColorStop,endColorStop:i.endColorStop,onStartColorChange:$=>{i.startColor=$,j()},onEndColorChange:$=>{i.endColor=$,j()},onStartColorStopChange:$=>{i.startColorStop=$,j()},onEndColorStopChange:$=>{i.endColorStop=$,j()},onAngleChange:$=>{i.angle=$,j()},onTypeChange:$=>{i.type=$,j()},onAdvanceChange:g}:{...b,disableAlpha:e.disableAlpha,disableHistory:e.disableHistory,roundHistory:e.roundHistory,color:l.value,onChange:V,onAdvanceChange:g}}),v=()=>{c.value=!0,d?d.update():F()},m=()=>{c.value=!1},C=We(()=>{!e.isWidget&&e.blurClose&&m()},100);pc(f,()=>{m()});const x=()=>{var b,$,H,T;try{const[I]=Ja.parse(i.gradientColor);if(I&&I.type.includes("gradient")&&I.colorStops.length>=2){const q=I.colorStops[0],ve=I.colorStops[1];i.startColorStop=Number((b=q.length)==null?void 0:b.value)||0,i.endColorStop=Number(($=ve.length)==null?void 0:$.value)||0,I.type==="linear-gradient"&&((H=I.orientation)==null?void 0:H.type)==="angular"&&(i.angle=Number((T=I.orientation)==null?void 0:T.value)||0),i.type=I.type.split("-")[0];const[at,Fe,oe,Y]=q.value,[He,k,P,G]=ve.value;i.startColor=new ee({r:Number(at),g:Number(Fe),b:Number(oe),a:Number(Y)}),i.endColor=new ee({r:Number(He),g:Number(k),b:Number(P),a:Number(G)})}}catch(I){console.log(`[Parse Color]: ${I}`)}},j=We(()=>{const b=_();try{i.gradientColor=Ja.stringify(b),t("update:gradientColor",i.gradientColor),t("gradientColorChange",i.gradientColor)}catch($){console.log($)}},e.debounce),_=()=>{const b=[],$=i.startColor.RGB.map(I=>I.toString()),H=i.endColor.RGB.map(I=>I.toString()),T=[{type:"rgba",value:[$[0],$[1],$[2],$[3]],length:{value:i.startColorStop+"",type:"%"}},{type:"rgba",value:[H[0],H[1],H[2],H[3]],length:{value:i.endColorStop+"",type:"%"}}];return i.type==="linear"?b.push({type:"linear-gradient",orientation:{type:"angular",value:i.angle+""},colorStops:T}):i.type==="radial"&&b.push({type:"radial-gradient",orientation:[{type:"shape",value:"circle"}],colorStops:T}),b},F=()=>{u.value&&f.value&&(d=ed(u.value,f.value,{placement:"auto",modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"flip",options:{allowedAutoPlacements:["top","bottom","left","right"],rootBoundary:"viewport"}}]}))},V=b=>{l.value=b,n.pureColor=b.toString(e.format),N()},N=We(()=>{t("update:pureColor",n.pureColor),t("pureColorChange",n.pureColor)},e.debounce),z=b=>{n.activeKey=b,t("update:activeKey",b),t("activeKeyChange",b)};return ct(()=>{x(),d||F()}),de(()=>e.gradientColor,b=>{b!=i.gradientColor&&(i.gradientColor=b)}),de(()=>i.gradientColor,()=>{x()}),de(()=>e.activeKey,b=>{n.activeKey=b}),de(()=>e.useType,b=>{n.activeKey!=="gradient"&&b==="gradient"?n.activeKey="gradient":n.activeKey="pure"}),de(()=>e.pureColor,b=>{O.equals(b,n.pureColor)||(n.pureColor=b,l.value=new ee(b))},{deep:!0}),{colorCubeRef:u,pickerRef:f,showPicker:c,colorInstance:l,getBgColorStyle:h,getComponentName:y,getBindArgs:p,state:n,hasExtra:r,onColorChange:V,onShowPicker:v,onActiveKeyChange:z,onAutoClose:C}}}),Sg={key:0,class:"vc-color-extra"},xg={key:0,class:"vc-color-extra"};function Og(e,t,r,n,o,a){const s=E("WrapContainer");return R(),U(Qe,null,[e.isWidget?(R(),re(s,{key:0,"active-key":e.state.activeKey,"onUpdate:activeKey":t[0]||(t[0]=i=>e.state.activeKey=i),"show-tab":e.useType==="both",style:se({zIndex:e.zIndex}),theme:e.theme,onChange:e.onActiveKeyChange},{default:yr(()=>[(R(),re(sn(e.getComponentName),ae({key:e.getComponentName},e.getBindArgs),null,16)),e.hasExtra?(R(),U("div",Sg,[wr(e.$slots,"extra",{},void 0,!0)])):K("",!0)]),_:3},8,["active-key","show-tab","style","theme","onChange"])):K("",!0),e.isWidget?K("",!0):(R(),U(Qe,{key:1},[A("div",{class:fe(["vc-color-wrap transparent",{round:e.shape==="circle"}]),ref:"colorCubeRef"},[A("div",{class:"current-color",style:se(e.getBgColorStyle),onClick:t[1]||(t[1]=(...i)=>e.onShowPicker&&e.onShowPicker(...i))},null,4)],2),(R(),re(Do,{to:e.pickerContainer},[Ut(A("div",{ref:"pickerRef",style:se({zIndex:e.zIndex}),onMouseleave:t[3]||(t[3]=(...i)=>e.onAutoClose&&e.onAutoClose(...i))},[e.showPicker?(R(),re(s,{key:0,"show-tab":e.useType==="both"&&!e.state.isAdvanceMode,theme:e.theme,"active-key":e.state.activeKey,"onUpdate:activeKey":t[2]||(t[2]=i=>e.state.activeKey=i),onChange:e.onActiveKeyChange},{default:yr(()=>[(R(),re(sn(e.getComponentName),ae({key:e.getComponentName},e.getBindArgs),null,16)),e.hasExtra?(R(),U("div",xg,[wr(e.$slots,"extra",{},void 0,!0)])):K("",!0)]),_:3},8,["show-tab","theme","active-key","onChange"])):K("",!0)],36),[[Sr,e.showPicker]])],8,["to"]))],64))],64)}const kg=Me(wg,[["render",Og],["__scopeId","data-v-354ca836"]]),_g={install(e){e.use(cu),e.use(fu),e.use(vu),e.use(yu),e.use(wu),e.use(Su),e.use(_u),e.use(ju),e.use(Pu),e.use(Iu),e.use(Gu),e.use(Nu),e.use(Du),e.use(Uu),e.use(Ku),e.use(Zu),e.use(Qu),e.use(ec),e.use(du),e.use(Xu),e.use(Bu),e.use(Vu),e.use(xu),e.component("ColorPicker",kg)}},Yl=L({name:"GctEditForm",props:{embed:{type:Boolean,default:!1},context:{type:Object,default:()=>({})},params:{type:Object,default:()=>({})},controller:{type:Object},model:{type:Object,required:!0},data:{type:Object}},emits:["update:data"],setup(e,{emit:t}){const r=W("gct-edit-form");if(!e.model)throw new Error("未传递表单模型配置");const n=e.controller||Xo(()=>new Yo(e.model)),o=B(null),a=async()=>{try{await o.value.formRef.validate()}catch(i){return console.error(i),!1}return!0},s=async i=>{try{await o.value.formRef.validateFields(i)}catch(l){return console.error(l),!1}return!0};return n.validate=a,n.validateItem=s,ge(e.context,()=>{Object.assign(n.context,e.context),n.state.isNew=!n.context.id},{immediate:!0}),ge(e.params,()=>{Object.assign(n.params,e.params)}),Jo(async()=>{try{await o.value.formRef.validate();const i=await n.save();if(i)return{ok:!0,data:[pn(i)]}}catch(i){console.error(i)}return{ok:!1}}),e.data?(Object.assign(n.state.data,e.data),n.loaded()):n.state.isNew!==!0?n.load().then(()=>{n.loaded()}):n.loaded(),e.embed&&n.evt.on("change",()=>{t("update:data",n.getData())}),{ns:r,c:n,formRef:o}},render(){let e=null;return(this.c.state.isNew||this.c.state.isNew==!1&&this.c.state.loaded)&&(e=w(E("gct-form"),{class:"h-full",ref:"formRef",model:this.model,c:this.c},null)),w("div",{class:this.ns.b()},[e])}}),Ag={install(e){e.component(Yl.name,Yl)}};function Eg(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ge(e)}const Jl=L({name:"GctFormItem",props:{c:{type:Object,required:!0},formModel:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=W("gct-form-item"),r={};e.formModel.labelWidth&&(r[t.cssVarName("form-item-label-width")]=e.formModel.labelWidth),e.model.labelWidth&&(r[t.cssVarName("form-item-label-width")]=e.model.labelWidth),e.model.labelAlign&&(r[t.cssVarName("form-item-label-align")]=e.model.labelAlign),e.model.editorAlign&&(r[t.cssVarName("form-item-editor-align")]=e.model.editorAlign),e.model.width&&(r[t.cssVarName("form-item-width")]=e.model.width),e.model.margin&&(r.margin=e.model.margin),e.model.padding&&(r.padding=e.model.padding);const n=D(()=>!!e.model.rules?.find(a=>a.required));return{ns:t,style:r,required:n,renderLabelTooltip:()=>e.model.labelTooltip?w(E("a-tooltip"),{class:t.e("label-tooltip"),placement:"topLeft",title:e.model.labelTooltip},{default:()=>[w("span",{class:"iconfont icon-assist ml5px text-[#bfbfbf]"},null)]}):null}},render(){const e=_gct.register.editor.get(Zo.PREFIX+this.model.editor.type);if(!e)return console.error(`未找到表单项${this.model.name}的编辑器${this.model.editor.type}的适配器实例:`,this.model),null;const t=this.model.labelPosition||"left";let r=null;e?e.render?r=e.render(this.c.editorValue,this.c.data,this.model):e.component?r=un(typeof e.component=="string"?E(e.component):e.component,{key:this.model.name,c:this.c,value:this.c.editorValue,itemModel:this.model,model:this.model.editor,data:this.c.data,disabled:this.c.state.disabled,readonly:this.c.state.readonly,keepalive:this.c.state.keepalive,visible:this.c.state.visible,class:[this.ns.e("editor"),this.ns.e(t),this.model.editor.class],style:this.model.editor.style,"onUpdate:value":o=>{this.c.editorValue=o}}):console.error(`未找到编辑器绘制组件:${this.model.name} - ${this.model.editor.type},请实现 component 或 render 方法`):console.error(`未找到编辑器适配器:${this.model.name} - ${this.model.editor.type}`),this.model.label&&t==="top"&&(r=[w("div",{class:[this.ns.e("label"),this.ns.em("label",t)]},[this.model.label,this.renderLabelTooltip()]),r]);const n={default:()=>r};return t==="left"&&this.model.label&&(n.label=()=>[w("span",null,[this.model.label]),this.renderLabelTooltip()]),w(E("a-form-item"),{key:this.c.model.name,colon:this.formModel.noColon===!0?!1:this.model.noColon!==!0,name:this.model.name,label:void 0,class:[this.ns.b(),this.ns.is("readonly",this.model.editor.readonly===!0),this.ns.is("required",this.required),this.ns.is("hidden",this.c.state.visible===!1),this.ns.is("hidden-label",!this.model.label),this.ns.m("label-"+t)],style:this.style,rules:this.c.state.visible===!0?this.model.rules:[],layout:"horizontal"},Eg(n)?n:{default:()=>[n]})}});function jg(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ge(e)}const Zl=L({name:"GctForm",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=W("gct-form");ln("formController",e.c);const r=B(null),n=e.c;Object.keys(n.item).forEach(c=>{const u=n.item[c];u&&(u.state=xe(u.state))});const a=c=>w(E("gct-form-item"),{class:c.class,style:c.style,c:n.item[c.name],formModel:e.model,model:c},null),s=c=>{const u=n.provider[c.name];if(!u)return console.error(`未找到表单项适配器实例:${c.name}`,c),null;if(u)return un(typeof u.component=="string"?E(u.component):u.component,{key:c.name,model:c,formModel:e.model,c:n.item[c.name],data:n.state.data,class:c.class,style:c.style},i(c.children||[]));console.error(`未找到表单容器适配器:${c.name} - ${c.type}`)},i=c=>{if(!c)return[];const u=[];return c.forEach(f=>{if(f.type==="hidden")return null;let d=null;const h=f;h.type==="container"||h.container?d=s(h):d=a(f),d&&u.push(d)}),u},l={};return e.model.labelWidth&&(l[t.cssVarName("form-item-label-width")]=e.model.labelWidth),{ns:t,formRef:r,staticStyle:l,renderItem:a,renderContainer:s,renderChildren:i}},render(){let e;return w(E("a-form"),{ref:"formRef",layout:this.model.layout,model:this.c.state.data,class:[this.ns.b(),this.ns.is("info",this.model.info===!0)],autocomplete:"off",style:this.staticStyle},jg(e=this.model.children.map(t=>this.renderContainer(t)))?e:{default:()=>[e]})}});class Tg{component="gct-form-item";createController(t,r){return qe(()=>new Qo(t,r))}}class $g{component="gct-form-hidden-item";createController(t,r){return qe(()=>new ea(t,r))}}class Pg{component="gct-form-collapse-pane";createController(t,r){return qe(()=>new ta(t,r))}}function Ql(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ge(e)}const es=L({name:"GctFormCollapsePane",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=W("form-collapse-pane"),r={};function n(o){if(e.model.layout==="flex")return w(E("flex-container"),{layout:e.model.flex},Ql(o)?o:{default:()=>[o]});if(e.model.layout==="grid")return w(E("grid-container"),{layout:e.model.grid},Ql(o)?o:{default:()=>[o]});console.error("不支持的layout类型"+e.model.layout)}return e.model.width&&(r[t.cssVarName("form-collapse-pane-width")]=e.model.width),e.model.height&&(r[t.cssVarName("form-collapse-pane-height")]=e.model.height),{ns:t,style:r,renderContainer:n}},render(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[],t=e[e.length-1];return t&&(t.props=ae(t.props||{},{class:this.ns.e("last-child")})),w("div",{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[this.renderContainer(e)])}}),Rg={install(e){_gct.register.formItem.register("collapse-pane",()=>new Pg),e.component(es.name,es)}};class Mg{component="gct-form-collapse";createController(t,r){return qe(()=>new ra(t,r))}}const ts=L({name:"GctFormCollapse",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=W("form-collapse"),r=B([0]),n={};e.model.width&&(n[t.cssVarName("form-collapse-width")]=e.model.width),e.model.height&&(n[t.cssVarName("form-collapse-height")]=e.model.height);const o=B([]);o.value=e.model.children?.map(s=>s.name)||[];const a=D(()=>e.model.expandIconPosition==="left"?"left":"right");return{ns:t,keys:r,style:n,activeKeys:o,expandIconPosition:a}},render(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[];return w(hn,{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1),this.ns.m("icon-"+(this.model.expandIconStyle||"up-down"))],style:this.style,accordion:this.model.accordion,expandIconPosition:this.expandIconPosition,activeKey:this.activeKeys,"onUpdate:activeKey":t=>this.activeKeys=t},{default:()=>[this.model.children?.map((t,r)=>{if(e[r].props.c.state.visible===!1)return;const o=t.collapsible!==!1?void 0:"disabled";return w(hn.Panel,{key:t.name,header:t.title,collapsible:o},{default:()=>[e[r]]})})]})}}),Fg={install(e){_gct.register.formItem.register("collapse",()=>new Mg),e.component(ts.name,ts)}};class Ig{component="gct-form-group";createController(t,r){return qe(()=>new fn(t,r))}}function Eo(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ge(e)}const rs=L({name:"GctFormGroup",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=W("gct-form-group"),r=B([0]);function n(a){if(e.model.layout==="flex")return w(E("flex-container"),{layout:e.model.flex},Eo(a)?a:{default:()=>[a]});if(e.model.layout==="grid")return w(E("grid-container"),{layout:e.model.grid},Eo(a)?a:{default:()=>[a]});console.error("不支持的layout类型"+e.model.layout)}const o={};return e.model.width&&(o[t.cssVarName("form-group-width")]=e.model.width),e.model.height&&(o[t.cssVarName("form-group-height")]=e.model.height),{ns:t,keys:r,style:o,renderContainer:n}},render(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[];if(this.model.isCollapse){let t;return w(E("a-collapse"),{activeKey:this.keys,"onUpdate:activeKey":r=>this.keys=r,class:[this.ns.b(),this.ns.is("hidden-header",this.model.showHeader===!1),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style,ghost:!0},{default:()=>[w(E("a-collapse-panel"),{key:"0",header:this.model.title},Eo(t=this.renderContainer(e))?t:{default:()=>[t]})]})}return w("div",{class:[this.ns.b(),this.ns.is("hidden-header",this.model.showHeader===!1),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[this.model.showHeader===!1?w("div",{class:this.ns.e("title")},[this.model.title]):null,w("div",{class:this.ns.e("content")},[this.renderContainer(e)])])}}),Lg={install(e){_gct.register.formItem.register("container",()=>new Ig),e.component(rs.name,rs)}};class Hg{component="gct-form-tab";createController(t,r){return qe(()=>new na(t,r))}}const ns=L({name:"GctFormTab",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=W("form-tab"),r={};return e.model.width&&(r[t.cssVarName("form-tab-width")]=e.model.width),e.model.height&&(r[t.cssVarName("form-tab-height")]=e.model.height),{ns:t,style:r}},render(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[];return w(E("a-tabs"),{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1),this.ns.m(this.model.navPosition||"left")],style:this.style},{default:()=>[this.model.children?.map((t,r)=>w(E("a-tab-pane"),{key:t.name,tab:t.title},{default:()=>[e[r]]}))]})}}),Gg={install(e){_gct.register.formItem.register("tab",()=>new Hg),e.component(ns.name,ns)}};class Ng{component="gct-form-tab-pane";createController(t,r){return qe(()=>new oa(t,r))}}function os(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ge(e)}const as=L({name:"GctFormTabPane",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=W("form-tab-pane"),r={};function n(o){if(e.model.layout==="flex")return w(E("flex-container"),{layout:e.model.flex},os(o)?o:{default:()=>[o]});if(e.model.layout==="grid")return w(E("grid-container"),{layout:e.model.grid},os(o)?o:{default:()=>[o]});console.error("不支持的layout类型"+e.model.layout)}return e.model.width&&(r[t.cssVarName("form-tab-pane-width")]=e.model.width),e.model.height&&(r[t.cssVarName("form-tab-pane-height")]=e.model.height),{ns:t,style:r,renderContainer:n}},render(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[];return w("div",{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[this.renderContainer(e)])}}),Bg={install(e){_gct.register.formItem.register("tab-pane",()=>new Ng),e.component(as.name,as)}};class Dg{component="gct-form-title-group";createController(t,r){return qe(()=>new fn(t,r))}}function is(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ge(e)}const ls=L({name:"GctFormTitleGroup",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=W("gct-form-title-group"),r=B([0]);function n(a){if(e.model.layout==="flex")return w(E("flex-container"),{layout:e.model.flex},is(a)?a:{default:()=>[a]});if(e.model.layout==="grid")return w(E("grid-container"),{layout:e.model.grid},is(a)?a:{default:()=>[a]});console.error("不支持的layout类型"+e.model.layout)}const o={};return e.model.width&&(o[t.cssVarName("form-title-group-width")]=e.model.width),e.model.height&&(o[t.cssVarName("form-title-group-height")]=e.model.height),{ns:t,keys:r,style:o,renderContainer:n}},render(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[];return w("div",{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[w("div",{class:this.ns.e("title")},[this.model.title]),w("div",{class:this.ns.e("content")},[this.renderContainer(e)])])}}),Vg={install(e){_gct.register.formItem.register(aa.FORM_TITLE_GROUP,()=>new Dg),e.component(ls.name,ls)}},qg={install(e){_gct.register.formItem.register("item",()=>new Tg),_gct.register.formItem.register("hidden",()=>new $g),e.use(Rg),e.use(Fg),e.use(Lg),e.use(Gg),e.use(Bg),e.use(Vg),e.component(Zl.name,Zl),e.component(Jl.name,Jl)}},em=on("withInstall",(e,t)=>(e.install=r=>{const n=e.name||e.displayName;n&&(r.component(n,e),t&&(r.config.globalProperties[t]=e))},e)),tm=on("default",{install(e){e.use(_g),e.use(Ag),e.use(qg),e.component(ya.name,ya),e.component(ba.name,ba),e.component(mn.name,mn),e.component(wa.name,wa),e.component(Sa.name,Sa)}})})}}));
1
+ System.register(["./index-BghCpvxN.js"],(function(n,r){"use strict";return{setters:[t=>{n({AssetsSvgIcon:t.A,BaseButton:t.b,BasicButton:t.c,BasicModal:t.B,CodeEditor:t.d,FlexContainer:t.e,FlexItem:t.f,GCT_DND_INSERT_POS:t.G,GctDndContainer:t.h,GctDndDropLine:t.i,GctDndItem:t.j,GridContainer:t.k,Lang:t.L,MessageUtil:t.M,MonacoEditor:t.l,OverlayController:t.O,Prop:t.P,SvgIcon:t.n,Theme:t.T,UseDragByLine:t.o,ViewContainer:t.V,coreWebCreateAppVue:t.p,coreWebSetupApp:t.q,monacoLoader:t.m,overlay:t.r,useEditorConsole:t.u,useEditorConsoleInner:t.s,useLocale:t.t,useModal:t.v,useModalContext:t.w,useModalInner:t.x,useTheme:t.y,withInstall:t.z})}],execute:(function(){})}}));