@gct-paas/core-web 0.1.5-dev.6 → 0.1.5-dev.7

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 (192) hide show
  1. package/dist/_plugin-vue_export-helper-BBfAJeJ1.js +1 -0
  2. package/dist/{icon-next-picker-CShmDJI0.js → icon-next-picker-y8hJhkCi.js} +1 -1
  3. package/dist/index.min.css +1 -1
  4. package/dist/loader.esm.min.js +1 -1
  5. package/dist/{monaco-editor-t8SRxaFC.js → monaco-editor-5qU4ukgX.js} +1 -1
  6. package/es/components/FullScreen/full-screen.vue.d.ts +30 -0
  7. package/es/components/FullScreen/full-screen.vue.mjs +5 -0
  8. package/es/components/FullScreen/full-screen.vue_vue_type_script_setup_true_lang.mjs +44 -0
  9. package/es/components/I18nSelect/src/i18n-select-btn.vue.mjs +2 -2
  10. package/es/components/I18nSelect/src/i18n-select-btn.vue_vue_type_script_setup_true_name_i18n-select-btn_lang.mjs +3 -3
  11. package/es/components/I18nSelect/src/{i18n-select-btn.vue_vue_type_style_index_0_scoped_d0fab479_lang.css → i18n-select-btn.vue_vue_type_style_index_0_scoped_8e75ca4b_lang.css} +13 -13
  12. package/es/components/app-full-screen-container/app-full-screen-container.css +77 -0
  13. package/es/components/app-full-screen-container/app-full-screen-container.d.ts +26 -0
  14. package/es/components/app-full-screen-container/app-full-screen-container.mjs +83 -0
  15. package/es/components/app-popover/app-popover-component.css +100 -0
  16. package/es/components/app-popover/app-popover-component.d.ts +13 -0
  17. package/es/components/app-popover/app-popover-component.mjs +160 -0
  18. package/es/components/field-cascader/index.d.ts +2 -0
  19. package/es/components/field-cascader/index.mjs +1 -0
  20. package/es/components/field-cascader/src/FieldCascader.vue.d.ts +87 -0
  21. package/es/components/field-cascader/src/FieldCascader.vue.mjs +6 -0
  22. package/es/components/field-cascader/src/FieldCascader.vue_vue_type_script_setup_true_lang.mjs +115 -0
  23. package/es/components/field-cascader/src/FieldCascader.vue_vue_type_style_index_0_lang.css +69 -0
  24. package/es/components/field-cascader/src/SearchInput.vue.d.ts +11 -0
  25. package/es/components/field-cascader/src/SearchInput.vue.mjs +7 -0
  26. package/es/components/field-cascader/src/SearchInput.vue_vue_type_script_setup_true_lang.mjs +38 -0
  27. package/es/components/field-cascader/src/SearchInput.vue_vue_type_style_index_0_scoped_512c4b38_lang.css +9 -0
  28. package/es/components/field-cascader/src/hooks.d.ts +129 -0
  29. package/es/components/field-cascader/src/hooks.mjs +163 -0
  30. package/es/components/field-tree-select/field-sort-popover.vue.d.ts +129 -0
  31. package/es/components/field-tree-select/field-sort-popover.vue.mjs +7 -0
  32. package/es/components/field-tree-select/field-sort-popover.vue_vue_type_script_setup_true_lang.mjs +206 -0
  33. package/es/components/field-tree-select/field-sort-popover.vue_vue_type_style_index_0_scoped_c1811778_lang.css +136 -0
  34. package/es/components/field-tree-select/field-tree-select.vue.d.ts +119 -0
  35. package/es/components/field-tree-select/field-tree-select.vue.mjs +7 -0
  36. package/es/components/field-tree-select/field-tree-select.vue_vue_type_script_setup_true_lang.mjs +338 -0
  37. package/es/components/field-tree-select/field-tree-select.vue_vue_type_style_index_0_scoped_898030d3_lang.css +147 -0
  38. package/es/components/field-tree-select/index.d.ts +307 -0
  39. package/es/components/field-tree-select/index.mjs +7 -0
  40. package/es/components/icon-next-picker/icon-next-picker.vue_vue_type_script_setup_true_name_IconNextPicker_lang.mjs +1 -1
  41. package/es/components/index.d.ts +5 -1
  42. package/es/components/index.mjs +6 -0
  43. package/es/components/overlay-scrollbars/gct-overlay-scrollbars.css +72 -0
  44. package/es/components/overlay-scrollbars/gct-overlay-scrollbars.d.ts +75 -0
  45. package/es/components/overlay-scrollbars/gct-overlay-scrollbars.mjs +87 -0
  46. package/es/components/serial-number/index.d.ts +2 -0
  47. package/es/components/serial-number/index.mjs +1 -0
  48. package/es/components/serial-number/serial-number-container.vue.d.ts +23 -0
  49. package/es/components/serial-number/serial-number-container.vue.mjs +7 -0
  50. package/es/components/serial-number/serial-number-container.vue_vue_type_script_setup_true_name_serial-number-container_lang.mjs +219 -0
  51. package/es/components/serial-number/serial-number-container.vue_vue_type_style_index_0_scoped_35a73b4c_lang.css +30 -0
  52. package/es/components/serial-number/serial-number-item.vue.d.ts +22 -0
  53. package/es/components/serial-number/serial-number-item.vue.mjs +8 -0
  54. package/es/components/serial-number/serial-number-item.vue_vue_type_script_setup_true_lang.mjs +452 -0
  55. package/es/components/serial-number/serial-number-item.vue_vue_type_style_index_0_scoped_7baf8e25_lang.css +67 -0
  56. package/es/components/serial-number/serial-number-item.vue_vue_type_style_index_1_lang.css +51 -0
  57. package/es/create-app-vue.mjs +5 -3
  58. package/es/index.mjs +17 -1
  59. package/es/modules/color-picker/index.d.ts +2 -2
  60. package/es/modules/color-picker/index.mjs +1 -0
  61. package/es/modules/color-picker/src/ColorPicker.vue.mjs +1 -1
  62. package/es/modules/color-picker/src/color-editor.vue.d.ts +9 -0
  63. package/es/modules/color-picker/src/color-editor.vue.mjs +7 -0
  64. package/es/modules/color-picker/src/color-editor.vue_vue_type_script_setup_true_name_color-editor_lang.mjs +31 -0
  65. package/es/modules/color-picker/src/color-editor.vue_vue_type_style_index_0_scoped_7b102f87_lang.css +5 -0
  66. package/es/modules/gct-form/controller/form-edit-item/form-edit-item.controller.d.ts +0 -1
  67. package/es/modules/gct-form/controller/form-edit-item/form-edit-item.controller.mjs +1 -20
  68. package/es/modules/gct-form/controller/form-item-basic/form-item-basic.controller.d.ts +8 -0
  69. package/es/modules/gct-form/controller/form-item-basic/form-item-basic.controller.mjs +14 -0
  70. package/es/modules/gct-form/controller/gct-form/gct-form.controller.mjs +4 -10
  71. package/es/modules/gct-form/editor/gct-form-action/index.mjs +1 -1
  72. package/es/modules/gct-form/editor/gct-form-check-switch/gct-form-check-switch.css +2 -2
  73. package/es/modules/gct-form/editor/gct-form-color/gct-form-color.d.ts +1 -4
  74. package/es/modules/gct-form/editor/gct-form-color/gct-form-color.mjs +9 -10
  75. package/es/modules/gct-form/editor/gct-form-radio/gct-form-radio.css +25 -22
  76. package/es/modules/gct-form/editor/gct-form-radio/gct-form-radio.mjs +1 -1
  77. package/es/modules/gct-form/index.d.ts +2 -0
  78. package/es/modules/gct-form/index.mjs +12 -1
  79. package/es/modules/gct-form/interface/i-controller/form-item-basic/form-item-basic.controller.d.ts +6 -0
  80. package/es/modules/gct-form/interface/i-editor/i-select-editor.d.ts +1 -1
  81. package/es/modules/gct-form/interface/i-form/i-form-edit-item.d.ts +0 -8
  82. package/es/modules/gct-form/interface/i-form/i-form-item-basic.d.ts +8 -0
  83. package/es/modules/gct-form/utils/index.d.ts +18 -0
  84. package/es/modules/gct-form/utils/index.mjs +37 -0
  85. package/es/modules/gct-form/widgets/gct-edit-form/gct-edit-form.mjs +2 -1
  86. package/es/modules/gct-form/widgets/gct-form/gct-form-collapse/gct-form-collapse.model.mjs +25 -0
  87. package/es/modules/gct-form/widgets/gct-form/gct-form-collapse/index.mjs +1 -0
  88. package/es/modules/gct-form/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.model.mjs +25 -0
  89. package/es/modules/gct-form/widgets/gct-form/gct-form-collapse-pane/index.mjs +1 -0
  90. package/es/modules/gct-form/widgets/gct-form/gct-form-group/gct-form-group.model.mjs +25 -0
  91. package/es/modules/gct-form/widgets/gct-form/gct-form-group/index.mjs +1 -0
  92. package/es/modules/gct-form/widgets/gct-form/gct-form-hidden-item/gct-form-hidden-item.model.mjs +21 -0
  93. package/es/modules/gct-form/widgets/gct-form/gct-form-hidden-item/index.mjs +1 -0
  94. package/es/modules/gct-form/widgets/gct-form/gct-form-item/gct-form-item.css +13 -6
  95. package/es/modules/gct-form/widgets/gct-form/gct-form-item/gct-form-item.model.mjs +23 -0
  96. package/es/modules/gct-form/widgets/gct-form/gct-form-item/index.mjs +1 -0
  97. package/es/modules/gct-form/widgets/gct-form/gct-form-line/gct-form-line.model.mjs +20 -0
  98. package/es/modules/gct-form/widgets/gct-form/gct-form-line/index.mjs +1 -0
  99. package/es/modules/gct-form/widgets/gct-form/gct-form-tab/gct-form-tab.model.mjs +16 -0
  100. package/es/modules/gct-form/widgets/gct-form/gct-form-tab/index.mjs +1 -0
  101. package/es/modules/gct-form/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.model.mjs +24 -0
  102. package/es/modules/gct-form/widgets/gct-form/gct-form-tab-pane/index.mjs +1 -0
  103. package/es/modules/gct-form/widgets/gct-form/gct-form-title-group/gct-form-title-group.model.mjs +25 -0
  104. package/es/modules/gct-form/widgets/gct-form/gct-form-title-group/index.mjs +1 -0
  105. package/es/modules/gct-form/widgets/gct-form/gct-form.css +1 -3
  106. package/es/modules/gct-form/widgets/gct-form/index.d.ts +3 -3
  107. package/es/modules/gct-form/widgets/gct-form/index.mjs +9 -0
  108. package/es/modules/global-modal/src/BasicModal.vue.d.ts +4 -0
  109. package/es/modules/global-modal/src/BasicModal.vue_vue_type_script_setup_true_name_BasicModal_lang.mjs +1 -0
  110. package/es/modules/global-modal/src/components/ModalWrapper.vue.d.ts +1 -0
  111. package/es/modules/global-modal/src/components/ModalWrapper.vue.mjs +11 -6
  112. package/es/modules/global-modal/src/components/ModalWrapper.vue_vue_type_script_lang.mjs +3 -0
  113. package/es/modules/global-modal/src/components/ModalWrapper.vue_vue_type_style_index_0_lang.css +67 -0
  114. package/es/modules/personnel-selection/components/index.d.ts +3 -0
  115. package/es/modules/personnel-selection/components/personnel-select-tree/personnel-select-tree.d.ts +22 -0
  116. package/es/modules/personnel-selection/components/variable/check-variable/check-variable.d.ts +19 -0
  117. package/es/modules/personnel-selection/components/variable/index.d.ts +3 -0
  118. package/es/modules/personnel-selection/components/variable/list-variable/list-variable.d.ts +19 -0
  119. package/es/modules/personnel-selection/components/variable/tree-select-variable/tree-select-variable.d.ts +19 -0
  120. package/es/modules/personnel-selection/components/variable-select-pane/variable-select-pane.d.ts +21 -0
  121. package/es/modules/personnel-selection/constants/index.d.ts +16 -0
  122. package/es/modules/personnel-selection/controller/index.d.ts +2 -0
  123. package/es/modules/personnel-selection/controller/tab-item/tab-item.controller.d.ts +18 -0
  124. package/es/modules/personnel-selection/controller/variable-item/variable-item.controller.d.ts +17 -0
  125. package/es/modules/personnel-selection/editors/index.d.ts +1 -0
  126. package/es/modules/personnel-selection/editors/personnel-selection-editor/personnel-selection-editor.d.ts +2 -0
  127. package/es/modules/personnel-selection/enums/index.d.ts +31 -0
  128. package/es/modules/personnel-selection/index.d.ts +3 -0
  129. package/es/modules/personnel-selection/interface/controller/index.d.ts +3 -0
  130. package/es/modules/personnel-selection/interface/controller/tab-item/i-tab-item.controller.d.ts +86 -0
  131. package/es/modules/personnel-selection/interface/controller/tab-item/i-variable-tab-item.controller.d.ts +11 -0
  132. package/es/modules/personnel-selection/interface/controller/variable/i-variable-item.controller.d.ts +53 -0
  133. package/es/modules/personnel-selection/interface/data/i-data-node.d.ts +42 -0
  134. package/es/modules/personnel-selection/interface/index.d.ts +6 -0
  135. package/es/modules/personnel-selection/interface/options/index.d.ts +3 -0
  136. package/es/modules/personnel-selection/interface/options/personnel-selection-options/personnel-selection-options.d.ts +45 -0
  137. package/es/modules/personnel-selection/interface/options/select-area-options/select-area-options.d.ts +18 -0
  138. package/es/modules/personnel-selection/interface/options/select-region-options/select-region-options.d.ts +18 -0
  139. package/es/modules/personnel-selection/interface/providers/i-tab-item.provider.d.ts +51 -0
  140. package/es/modules/personnel-selection/interface/providers/i-variable-item.provider.d.ts +51 -0
  141. package/es/modules/personnel-selection/interface/state/i-tab-item.state.d.ts +27 -0
  142. package/es/modules/personnel-selection/interface/state/i-variable-item.state.d.ts +18 -0
  143. package/es/modules/personnel-selection/interface/state/index.d.ts +2 -0
  144. package/es/modules/personnel-selection/interface/store/i-variable-inst-store.d.ts +37 -0
  145. package/es/modules/personnel-selection/interface/store/i-variable-plugin-manage-store.d.ts +44 -0
  146. package/es/modules/personnel-selection/interface/store/i-variable-store.d.ts +29 -0
  147. package/es/modules/personnel-selection/interface/store/i-view-plugin-manage-store.d.ts +44 -0
  148. package/es/modules/personnel-selection/interface/store/i-view-store.d.ts +29 -0
  149. package/es/modules/personnel-selection/interface/store/i-view-tabs-store.d.ts +54 -0
  150. package/es/modules/personnel-selection/interface/store/index.d.ts +11 -0
  151. package/es/modules/personnel-selection/plugins/index.d.ts +23 -0
  152. package/es/modules/personnel-selection/plugins/tab-item/personnel-select-tab-item/personnel-select-tab-item.controller.d.ts +12 -0
  153. package/es/modules/personnel-selection/plugins/tab-item/variable-tab-item/variable-tab-item.controller.d.ts +14 -0
  154. package/es/modules/personnel-selection/plugins/variable-item/check-variable-item/check-variable-item.controller.d.ts +12 -0
  155. package/es/modules/personnel-selection/plugins/variable-item/list-variable-item/list-variable-item.controller.d.ts +12 -0
  156. package/es/modules/personnel-selection/plugins/variable-item/tree-select-variable-item/tree-select-variable-item.controller.d.ts +12 -0
  157. package/es/modules/personnel-selection/props/index.d.ts +75 -0
  158. package/es/modules/personnel-selection/state/index.d.ts +2 -0
  159. package/es/modules/personnel-selection/state/tab-item.state.d.ts +15 -0
  160. package/es/modules/personnel-selection/state/variable-item.state.d.ts +4 -0
  161. package/es/modules/personnel-selection/store/index.d.ts +1 -0
  162. package/es/modules/personnel-selection/store/variable/variable-inst.d.ts +10 -0
  163. package/es/modules/personnel-selection/store/variable/variable-plugin-manage.d.ts +10 -0
  164. package/es/modules/personnel-selection/store/variable/variable-store.d.ts +5 -0
  165. package/es/modules/personnel-selection/store/view/view-plugin-manage.d.ts +10 -0
  166. package/es/modules/personnel-selection/store/view/view-store.d.ts +11 -0
  167. package/es/modules/personnel-selection/store/view/view-tabs.d.ts +10 -0
  168. package/es/modules/personnel-selection/use/index.d.ts +40 -0
  169. package/es/modules/personnel-selection/utils/index.d.ts +1 -0
  170. package/es/modules/personnel-selection/views/index.d.ts +12 -0
  171. package/es/modules/personnel-selection/views/personnel-selection-view/personnel-selection-view.d.ts +181 -0
  172. package/es/modules/personnel-selection/widgets/index.d.ts +2 -0
  173. package/es/modules/personnel-selection/widgets/personnel-select-area/personnel-select-area.d.ts +1 -0
  174. package/es/modules/personnel-selection/widgets/personnel-select-region/personnel-select-region.d.ts +2 -0
  175. package/es/modules/picture-cropper/src/CopperFreeModal.vue.d.ts +2 -2
  176. package/es/modules/picture-cropper/src/CopperFreeModal.vue.mjs +2 -2
  177. package/es/modules/picture-cropper/src/{CopperFreeModal.vue_vue_type_style_index_0_scoped_488ed4c7_lang.css → CopperFreeModal.vue_vue_type_style_index_0_scoped_9069f48a_lang.css} +10 -10
  178. package/es/modules/picture-cropper/src/CopperModal.vue.d.ts +2 -2
  179. package/es/modules/picture-cropper/src/CopperModal.vue.mjs +2 -2
  180. package/es/modules/picture-cropper/src/{CopperModal.vue_vue_type_style_index_0_scoped_ee086999_lang.css → CopperModal.vue_vue_type_style_index_0_scoped_f1134678_lang.css} +14 -14
  181. package/es/modules/picture-cropper/src/CropperAvatar.vue.d.ts +2 -2
  182. package/es/modules/picture-cropper/src/CropperAvatar.vue.mjs +2 -2
  183. package/es/modules/picture-cropper/src/{CropperAvatar.vue_vue_type_style_index_0_scoped_b1cbaaf1_lang.css → CropperAvatar.vue_vue_type_style_index_0_scoped_ef939ff0_lang.css} +7 -7
  184. package/es/modules/picture-cropper/src/CropperFree.vue.d.ts +2 -2
  185. package/es/modules/picture-cropper/src/CropperFree.vue.mjs +2 -2
  186. package/es/modules/picture-cropper/src/{CropperFree.vue_vue_type_style_index_0_scoped_bab12130_lang.css → CropperFree.vue_vue_type_style_index_0_scoped_7a51c6b9_lang.css} +16 -16
  187. package/es/utils/overlay-controller/overlay-controller.d.ts +16 -1
  188. package/es/utils/overlay-controller/overlay-controller.mjs +18 -0
  189. package/es/utils/with-install.d.ts +1 -0
  190. package/es/utils/with-install.mjs +1 -1
  191. package/package.json +13 -9
  192. package/dist/_plugin-vue_export-helper-DySwtVV7.js +0 -1
@@ -0,0 +1 @@
1
+ import{i as e,n as t,r as n,t as r}from"./chunk-lEgNpoW5.js";import{Modal as o,OverlayContainer as i,OverlayPopoverContainer as a,t as s,useNamespace as c}from"@gct-paas/core";import*as u from"vue";import{Fragment as l,computed as f,createVNode as d,defineComponent as h,getCurrentInstance as g,getCurrentScope as p,h as v,hasInjectionContext as m,inject as y,isRef as b,isVNode as w,nextTick as O,onBeforeUnmount as S,onMounted as D,onScopeDispose as T,onUnmounted as I,provide as E,reactive as x,ref as C,resolveComponent as P,shallowReadonly as j,shallowRef as R,toRaw as N,toRef as A,toRefs as k,toValue as M,unref as L,watch as _,watchEffect as F}from"vue";import{isFunction as H,isNumber as W,isString as U}from"lodash-es";import{ConfigProvider as V,message as B}from"ant-design-vue";function $(e){return $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$(e)}function q(e,t,n){return(t=function(e){var t=function(e){if("object"!=$(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=$(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z(e,t){return!!p()&&(T(e,t),!0)}var Y=/* @__PURE__ */new WeakMap,G="undefined"!=typeof window&&"undefined"!=typeof document,X=("undefined"!=typeof WorkerGlobalScope&&(globalThis,WorkerGlobalScope),e=>null!=e),K=Object.prototype.toString,J=()=>{},Q=/* @__PURE__ */Z();function Z(){var e,t,n;return G&&!!(null===(e=window)||void 0===e||null===(e=e.navigator)||void 0===e?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||(null===(t=window)||void 0===t||null===(t=t.navigator)||void 0===t?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(null===(n=window)||void 0===n?void 0:n.navigator.userAgent))}function ee(e,t){return function(...n){return new Promise((r,o)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(o)})}}var te=e=>e();function ne(e,t={}){let n,r,o=J;const i=e=>{clearTimeout(e),o(),o=J};let a;return s=>{const c=M(e),u=M(t.maxWait);return n&&i(n),c<=0||void 0!==u&&u<=0?(r&&(i(r),r=void 0),Promise.resolve(s())):new Promise((e,l)=>{o=t.rejectOnCancel?l:e,a=s,u&&!r&&(r=setTimeout(()=>{n&&i(n),r=void 0,e(a())},u)),n=setTimeout(()=>{r&&i(r),r=void 0,e(s())},c)})}}function re(e){return e.endsWith("rem")?16*Number.parseFloat(e):Number.parseFloat(e)}function oe(e){return Array.isArray(e)?e:[e]}function ie(e){const t=Object.create(null);return n=>t[n]||(t[n]=e(n))}var ae=/\B([A-Z])/g,se=(ie(e=>e.replace(ae,"-$1").toLowerCase()),/-(\w)/g);function ce(e){return e||g()}function ue(e,t=200,n={}){return ee(ne(t,n),e)}function le(e,t=!0,n){ce(n)?D(e,n):t?e():O(e)}function fe(e,t){ce(t)&&I(e,t)}function de(e,t,n={}){const{immediate:r=!0,immediateCallback:o=!1}=n,i=R(!1);let a;function s(){a&&(clearTimeout(a),a=void 0)}function c(){i.value=!1,s()}function u(...n){o&&e(),s(),i.value=!0,a=setTimeout(()=>{i.value=!1,a=void 0,e(...n)},M(t))}return r&&(i.value=!0,G&&u()),z(c),{isPending:j(i),start:u,stop:c}}function he(e,t,n={}){const{debounce:r=0,maxWait:o,...i}=n;return function(e,t,n={}){const{eventFilter:r=te,...o}=n;return _(e,ee(r,t),o)}(e,t,{...i,eventFilter:ne(r,{maxWait:o})})}ie(e=>e.replace(se,(e,t)=>t?t.toUpperCase():""));var ge=G?window:void 0,pe=G?window.document:void 0;function ve(e){var t;const n=M(e);return null!==(t=null==n?void 0:n.$el)&&void 0!==t?t:n}function me(...e){const t=f(()=>{const t=oe(M(e[0])).filter(e=>null!=e);return t.every(e=>"string"!=typeof e)?t:void 0});return n=([e,t,n,r],o,i)=>{if(!(null==e?void 0:e.length)||!(null==t?void 0:t.length)||!(null==n?void 0:n.length))return;const a=(s=r,"[object Object]"===K.call(s)?{...r}:r);var s;const c=e.flatMap(e=>t.flatMap(t=>n.map(n=>((e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)))(e,t,n,a))));i(()=>{c.forEach(e=>e())})},r={flush:"post"},_(()=>{var n,r;return[null!==(n=null===(r=t.value)||void 0===r?void 0:r.map(e=>ve(e)))&&void 0!==n?n:[ge].filter(e=>null!=e),oe(M(t.value?e[1]:e[0])),oe(L(t.value?e[2]:e[1])),M(t.value?e[3]:e[2])]},n,{...r,immediate:!0});var n,r}G&&window.navigator,G&&window.location;var ye=!1;function be(e,t,n={}){const{window:r=ge,ignore:o=[],capture:i=!0,detectIframe:a=!1,controls:s=!1}=n;if(!r)return s?{stop:J,cancel:J,trigger:J}:J;if(Q&&!ye){ye=!0;const e={passive:!0};Array.from(r.document.body.children).forEach(t=>t.addEventListener("click",J,e)),r.document.documentElement.addEventListener("click",J,e)}let c=!0;const u=e=>M(o).some(t=>{if("string"==typeof t)return Array.from(r.document.querySelectorAll(t)).some(t=>t===e.target||e.composedPath().includes(t));{const n=ve(t);return n&&(e.target===n||e.composedPath().includes(n))}}),l=n=>{const r=ve(e);null!=n.target&&(r instanceof Element||!function(e){const t=M(e);return t&&16===t.$.subTree.shapeFlag}(e)||!function(e,t){const n=M(e),r=n.$.subTree&&n.$.subTree.children;return!(null==r||!Array.isArray(r))&&r.some(e=>e.el===t.target||t.composedPath().includes(e.el))}(e,n))&&r&&r!==n.target&&!n.composedPath().includes(r)&&("detail"in n&&0===n.detail&&(c=!u(n)),c?t(n):c=!0)};let f=!1;const d=[me(r,"click",e=>{f||(f=!0,setTimeout(()=>{f=!1},0),l(e))},{passive:!0,capture:i}),me(r,"pointerdown",t=>{const n=ve(e);c=!u(t)&&!(!n||t.composedPath().includes(n))},{passive:!0}),a&&me(r,"blur",n=>{setTimeout(()=>{var o;const i=ve(e);"IFRAME"!==(null===(o=r.document.activeElement)||void 0===o?void 0:o.tagName)||(null==i?void 0:i.contains(r.document.activeElement))||t(n)},0)},{passive:!0})].filter(Boolean),h=()=>d.forEach(e=>e());return s?{stop:h,cancel:()=>{c=!1},trigger:e=>{c=!0,l(e),c=!1}}:h}function we(e){const t=function(){const e=R(!1),t=g();return t&&D(()=>{e.value=!0},t),e}();return f(()=>(t.value,Boolean(e())))}function Oe(e,t,n={}){const{window:r=ge,...o}=n;let i;const a=/* @__PURE__ */we(()=>r&&"MutationObserver"in r),s=()=>{i&&(i.disconnect(),i=void 0)},c=_(f(()=>{const t=oe(M(e)).map(ve).filter(X);return new Set(t)}),e=>{s(),a.value&&e.size&&(i=new MutationObserver(t),e.forEach(e=>i.observe(e,o)))},{immediate:!0,flush:"post"}),u=()=>{c(),s()};return z(u),{isSupported:a,stop:u,takeRecords:()=>null==i?void 0:i.takeRecords()}}var Se=Symbol("vueuse-ssr-width");function De(){const e=m()?((...e)=>{var t;const n=e[0],r=null===(t=g())||void 0===t?void 0:t.proxy,o=null!=r?r:p();if(null==o&&!m())throw new Error("injectLocal must be called in setup");return o&&Y.has(o)&&n in Y.get(o)?Y.get(o)[n]:y(...e)})(Se,null):null;return"number"==typeof e?e:void 0}function Te(e,t,n={}){const{window:r=ge,...o}=n;let i;const a=/* @__PURE__ */we(()=>r&&"ResizeObserver"in r),s=()=>{i&&(i.disconnect(),i=void 0)},c=_(f(()=>{const t=M(e);return Array.isArray(t)?t.map(e=>ve(e)):[ve(t)]}),e=>{if(s(),a.value&&r){i=new ResizeObserver(t);for(const t of e)t&&i.observe(t,o)}},{immediate:!0,flush:"post"}),u=()=>{s(),c()};return z(u),{isSupported:a,stop:u}}var Ie=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function Ee(e,t={}){const{document:n=pe,autoExit:r=!1}=t,o=f(()=>{var t;return null!==(t=ve(e))&&void 0!==t?t:null==n?void 0:n.documentElement}),i=R(!1),a=f(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(e=>n&&e in n||o.value&&e in o.value)),s=f(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(e=>n&&e in n||o.value&&e in o.value)),c=f(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(e=>n&&e in n||o.value&&e in o.value)),u=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(e=>n&&e in n),l=/* @__PURE__ */we(()=>o.value&&n&&void 0!==a.value&&void 0!==s.value&&void 0!==c.value),d=()=>{if(c.value){if(n&&null!=n[c.value])return n[c.value];{const e=o.value;if(null!=(null==e?void 0:e[c.value]))return Boolean(e[c.value])}}return!1};async function h(){if(l.value&&i.value){if(s.value)if(null!=(null==n?void 0:n[s.value]))await n[s.value]();else{const e=o.value;null!=(null==e?void 0:e[s.value])&&await e[s.value]()}i.value=!1}}async function g(){if(!l.value||i.value)return;d()&&await h();const e=o.value;a.value&&null!=(null==e?void 0:e[a.value])&&(await e[a.value](),i.value=!0)}const p=()=>{const e=d();(!e||e&&u&&(null==n?void 0:n[u])===o.value)&&(i.value=e)},v={capture:!1,passive:!0};return me(n,Ie,p,v),me(()=>ve(o),Ie,p,v),le(p,!1),r&&z(h),{isSupported:l,isFullscreen:i,enter:g,exit:h,toggle:async function(){await(i.value?h():g())}}}function xe(e={}){const{window:t=ge,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:o=!0,includeScrollbar:i=!0,type:a="inner"}=e,s=R(n),c=R(r),u=()=>{if(t)if("outer"===a)s.value=t.outerWidth,c.value=t.outerHeight;else if("visual"===a&&t.visualViewport){const{width:e,height:n,scale:r}=t.visualViewport;s.value=Math.round(e*r),c.value=Math.round(n*r)}else i?(s.value=t.innerWidth,c.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,c.value=t.document.documentElement.clientHeight)};u(),le(u);const l={passive:!0};return me("resize",u,l),t&&"visual"===a&&t.visualViewport&&me(t.visualViewport,"resize",u,l),o&&_(function(e,t={}){const{window:n=ge,ssrWidth:r=/* @__PURE__ */De()}=t,o=/* @__PURE__ */we(()=>n&&"matchMedia"in n&&"function"==typeof n.matchMedia),i=R("number"==typeof r),a=R(),s=R(!1);return F(()=>{if(i.value)return i.value=!o.value,void(s.value=M(e).split(",").some(e=>{const t=e.includes("not all"),n=e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),o=e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let i=Boolean(n||o);return n&&i&&(i=r>=re(n[1])),o&&i&&(i=r<=re(o[1])),t?!i:i}));o.value&&(a.value=n.matchMedia(M(e)),s.value=a.value.matches)}),me(a,"change",e=>{s.value=e.matches},{passive:!0}),f(()=>s.value)}("(orientation: portrait)"),()=>u()),{width:s,height:c}}Number.POSITIVE_INFINITY;var Ce=class{info(e,t){return new Promise(n=>{B.info(e,null==t?void 0:t.duration,n)})}success(e,t){return new Promise(n=>{B.success(e,null==t?void 0:t.duration,n)})}warning(e,t){return new Promise(n=>{B.warning(e,null==t?void 0:t.duration,n)})}error(e,t){return new Promise(n=>{B.error(e,null==t?void 0:t.duration,n)})}};function Pe(e,t,n){const{minValue:r,maxValue:o}=n.specificConfig||{};return"number"==typeof r&&"number"==typeof o&&r>o?Promise.reject(/* @__PURE__ */new Error("MinValue cannot be greater than MaxValue")):Promise.resolve()}function je(e,t,n,r){if(!t)return Promise.resolve();const{minValue:o,maxValue:i}=n.specificConfig||{},a=i??(null==r?void 0:r.end),c=t.length;return"number"==typeof o&&c<o?Promise.reject(`${s("sys.model.minLengthDefault")}${o}`):"number"==typeof a&&c>a?Promise.reject(`${s("sys.model.maxLengthDefault")}${a}`):Promise.resolve()}function Re(e,t,n,r){if(null==t||""===t)return Promise.resolve();const{minValue:o,maxValue:i}=n.specificConfig||{},a=i??(null==r?void 0:r.end),c=Number(t);return"number"==typeof o&&c<o?Promise.reject(`${s("sys.model.minNumDefault")}${o}`):"number"==typeof a&&c>a?Promise.reject(`${s("sys.model.maxNumDefault")}${a}`):Promise.resolve()}function Ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ae(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(n),!0).forEach(function(t){Ae(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(n),!0).forEach(function(t){Le(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_e(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function He(e){return function t(){for(var n=this,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return t.apply(n,[].concat(o,r))}}}function We(e){return{}.toString.call(e).includes("Object")}function Ue(e){return"function"==typeof e}var Ve=He(function(e,t){throw new Error(e[t]||e.default)})({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"}),Be=function(e,t){return We(t)||Ve("changeType"),Object.keys(t).some(function(t){return n=e,r=t,!Object.prototype.hasOwnProperty.call(n,r);var n,r})&&Ve("changeField"),t},$e=function(e){Ue(e)||Ve("selectorType")},qe=function(e){Ue(e)||We(e)||Ve("handlerType"),We(e)&&Object.values(e).some(function(e){return!Ue(e)})&&Ve("handlersType")},ze=function(e){var t;e||Ve("initialIsRequired"),We(e)||Ve("initialType"),t=e,Object.keys(t).length||Ve("initialContent")};function Ye(e,t){return Ue(t)?t(e.current):t}function Ge(e,t){return e.current=Fe(Fe({},e.current),t),t}function Xe(e,t,n){return Ue(t)?t(e.current):Object.keys(n).forEach(function(n){var r;return null===(r=t[n])||void 0===r?void 0:r.call(t,e.current[n])}),n}var Ke,Je=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ze(e),qe(t);var n={current:e},r=He(Xe)(n,t),o=He(Ge)(n),i=He(Be)(e),a=He(Ye)(n);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return $e(e),e(n.current)},function(e){!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}}(r,o,i,a)(e)}]},Qe={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!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "},Ze=(Ke=function(e,t){throw new Error(e[t]||e.default)},function e(){for(var t=this,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return r.length>=Ke.length?Ke.apply(this,r):function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return e.apply(t,[].concat(r,o))}})(Qe),et=function(e){var t;return e||Ze("configIsRequired"),t=e,{}.toString.call(t).includes("Object")||Ze("configType"),e.urls?(console.warn(Qe.deprecation),{paths:{vs:e.urls.monacoBase}}):e};function tt(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],tt(e[n],t[n]))}),Me(Me({},e),t)}var nt={type:"cancelation",msg:"operation is manually canceled"};function rt(e){var t=!1,n=new Promise(function(n,r){e.then(function(e){return t?r(nt):n(e)}),e.catch(r)});return n.cancel=function(){return t=!0},n}var ot,it=["monaco"],at=function(e){if(Array.isArray(e))return e}(ot=Je({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}))||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o,i,a=[],s=!0,c=!1;try{for(o=(t=t.call(e)).next,!2;!(s=(n=o.call(t)).done)&&(a.push(n.value),2!==a.length);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(c)throw r}}return a}}(ot)||function(e){if(e){if("string"==typeof e)return Ne(e,2);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Ne(e,2):void 0}}(ot)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),st=at[0],ct=at[1];function ut(e){return document.body.appendChild(e)}function lt(e){var t,n,r=st(function(e){return{config:e.config,reject:e.reject}}),o=(t="".concat(r.config.paths.vs,"/loader.js"),n=document.createElement("script"),t&&(n.src=t),n);return o.onload=function(){return e()},o.onerror=r.reject,o}function ft(){var e=st(function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(t){var n=t.m||t;dt(n),e.resolve(n)},function(t){e.reject(t)})}function dt(e){st().monaco||ct({monaco:e})}var ht=new Promise(function(e,t){return ct({resolve:e,reject:t})}),gt={config:function(e){var t=et(e),n=t.monaco,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,it);ct(function(e){return{config:tt(e.config,r),monaco:n}})},init:function(){var e=st(function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}});if(!e.isInitialized){if(ct({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),rt(ht);if(window.monaco&&window.monaco.editor)return dt(window.monaco),e.resolve(window.monaco),rt(ht);!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}}(ut,lt)(ft)}return rt(ht)},__getMonacoInstance:function(){return st(function(e){return e.monaco})}},pt=new class{constructor(){q(this,"_monacoInstance",null),q(this,"_loadingPromise",null),this._configureLoader()}_configureLoader(){gt.config({paths:{vs:location.origin+"/extras/monaco-editor/0.55.1/min/vs"}})}async loadMonaco(){if(this._monacoInstance)return this._monacoInstance;if(this._loadingPromise)return this._loadingPromise;this._loadingPromise=gt.init();try{return this._monacoInstance=await this._loadingPromise,console.info("✓ Monaco Editor loaded successfully"),this._monacoInstance}catch(e){throw console.error("✗ Failed to load Monaco Editor:",e),this._loadingPromise=null,e}}getMonaco(){return this._monacoInstance}isMonacoLoaded(){return null!==this._monacoInstance}async createMonacoEditor(e,t){return(await this.loadMonaco()).editor.create(e,t)}async createMonacoDiffEditor(e,t){return(await this.loadMonaco()).editor.createDiffEditor(e,t)}async createMonacoModel(e,t,n){return(await this.loadMonaco()).editor.createModel(e,t,n)}},vt=/* @__PURE__ */t({Vue:()=>u,Vue2:()=>{},del:()=>wt,install:()=>yt,isVue2:()=>!1,isVue3:()=>!0,set:()=>bt});import*as mt from"vue";function yt(){}function bt(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function wt(e,t){Array.isArray(e)?e.splice(t,1):delete e[t]}n(vt,mt);var Ot=Symbol.for("DndContextType");function St(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Dt="function"==typeof Symbol&&Symbol.observable||"@@observable",Tt=function(){return Math.random().toString(36).substring(7).split("").join(".")},It={INIT:"@@redux/INIT"+Tt(),REPLACE:"@@redux/REPLACE"+Tt(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Tt()}};function Et(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(St(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(St(1));return n(Et)(e,t)}if("function"!=typeof e)throw new Error(St(2));var o=e,i=t,a=[],s=a,c=!1;function u(){s===a&&(s=a.slice())}function l(){if(c)throw new Error(St(3));return i}function f(e){if("function"!=typeof e)throw new Error(St(4));if(c)throw new Error(St(5));var t=!0;return u(),s.push(e),function(){if(t){if(c)throw new Error(St(6));t=!1,u();var n=s.indexOf(e);s.splice(n,1),a=null}}}function d(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(St(7));if(void 0===e.type)throw new Error(St(8));if(c)throw new Error(St(9));try{c=!0,i=o(i,e)}finally{c=!1}for(var t=a=s,n=0;n<t.length;n++)(0,t[n])();return e}return d({type:It.INIT}),(r={dispatch:d,subscribe:f,getState:l,replaceReducer:function(e){if("function"!=typeof e)throw new Error(St(10));o=e,d({type:It.REPLACE})}})[Dt]=function(){var e,t=f;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(St(11));function n(){e.next&&e.next(l())}return n(),{unsubscribe:t(n)}}})[Dt]=function(){return this},e},r}function xt(e,t,...n){if("undefined"!=typeof process&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){let e;if(void 0===t)e=/* @__PURE__ */new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let r=0;e=new Error(t.replace(/%s/g,function(){return n[r++]})),e.name="Invariant Violation"}throw e.framesToPop=1,e}}function Ct(e){return"object"==typeof e}var Pt="dnd-core/INIT_COORDS",jt="dnd-core/BEGIN_DRAG",Rt="dnd-core/PUBLISH_DRAG_SOURCE",Nt="dnd-core/HOVER",At="dnd-core/DROP",kt="dnd-core/END_DRAG";function Mt(e,t){return{type:Pt,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}var Lt={type:Pt,payload:{clientOffset:null,sourceClientOffset:null}};function _t(e){return function(t=[],n={publishSource:!0}){const{publishSource:r=!0,clientOffset:o,getSourceClientOffset:i}=n,a=e.getMonitor(),s=e.getRegistry();e.dispatch(Mt(o)),function(e,t,n){xt(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(e){xt(n.getSource(e),"Expected sourceIds to be registered.")})}(t,a,s);const c=function(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,a);if(null==c)return void e.dispatch(Lt);let u=null;if(o){if(!i)throw new Error("getSourceClientOffset must be defined");!function(e){xt("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(i),u=i(c)}e.dispatch(Mt(o,u));const l=s.getSource(c).beginDrag(a,c);return null!=l?(function(e){xt(Ct(e),"Item must be an object.")}(l),s.pinSource(c),{type:jt,payload:{itemType:s.getSourceType(c),item:l,sourceId:c,clientOffset:o||null,sourceClientOffset:u||null,isSourcePublic:!!r}}):void 0}}function Ft(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ht(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Ft(e,t,n[t])})}return e}function Wt(e){return function(t={}){const n=e.getMonitor(),r=e.getRegistry();!function(e){xt(e.isDragging(),"Cannot call drop while not dragging."),xt(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n),function(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n).forEach((o,i)=>{const a={type:At,payload:{dropResult:Ht({},t,Ut(o,i,r,n))}};e.dispatch(a)})}}function Ut(e,t,n,r){const o=n.getTarget(e);let i=o?o.drop(r,e):void 0;return function(e){xt(void 0===e||Ct(e),"Drop result must either be an object or undefined.")}(i),void 0===i&&(i=0===t?{}:r.getDropResult()),i}function Vt(e){return function(){const t=e.getMonitor(),n=e.getRegistry();!function(e){xt(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const r=t.getSourceId();return null!=r&&(n.getSource(r,!0).endDrag(t,r),n.unpinSource()),{type:kt}}}function Bt(e,t){return null===t?null===e:Array.isArray(e)?e.some(e=>e===t):e===t}function $t(e){return function(t,{clientOffset:n}={}){!function(e){xt(Array.isArray(e),"Expected targetIds to be an array.")}(t);const r=t.slice(0),o=e.getMonitor(),i=e.getRegistry();return function(e,t,n){for(let r=e.length-1;r>=0;r--){const o=e[r];Bt(t.getTargetType(o),n)||e.splice(r,1)}}(r,i,o.getItemType()),function(e,t,n){xt(t.isDragging(),"Cannot call hover while not dragging."),xt(!t.didDrop(),"Cannot call hover after drop.");for(let r=0;r<e.length;r++){const t=e[r];xt(e.lastIndexOf(t)===r,"Expected targetIds to be unique in the passed array."),xt(n.getTarget(t),"Expected targetIds to be registered.")}}(r,o,i),function(e,t,n){e.forEach(function(e){n.getTarget(e).hover(t,e)})}(r,o,i),{type:Nt,payload:{targetIds:r,clientOffset:n||null}}}}function qt(e){return function(){if(e.getMonitor().isDragging())return{type:Rt}}}var zt=class{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:t}=this.store,n=function(e){return{beginDrag:_t(e),publishDragSource:qt(e),hover:$t(e),drop:Wt(e),endDrag:Vt(e)}}(this);return Object.keys(n).reduce((r,o)=>{const i=n[o];var a;return r[o]=(a=i,(...n)=>{const r=a.apply(e,n);void 0!==r&&t(r)}),r},{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}};function Yt(e,t){return{x:e.x-t.x,y:e.y-t.y}}var Gt=[],Xt=[];Gt.__IS_NONE__=!0,Xt.__IS_ALL__=!0;var Kt=class{subscribeToStateChange(e,t={}){const{handlerIds:n}=t;xt("function"==typeof e,"listener must be a function."),xt(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let r=this.store.getState().stateId;return this.store.subscribe(()=>{const t=this.store.getState(),o=t.stateId;try{o===r||o===r+1&&!function(e,t){return e!==Gt&&(e===Xt||void 0===t||(n=t,r=e,n.filter(e=>r.indexOf(e)>-1)).length>0);var n,r}(t.dirtyHandlerIds,n)||e()}finally{r=o}})}subscribeToOffsetChange(e){xt("function"==typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe(()=>{const n=this.store.getState().dragOffset;n!==t&&(t=n,e())})}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return xt(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);return xt(t,`Expected to find a valid target. targetId=${e}`),!(!this.isDragging()||this.didDrop())&&Bt(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);return xt(t,`Expected to find a valid source. sourceId=${e}`),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;const{shallow:n}=t;if(!this.isDragging())return!1;const r=this.registry.getTargetType(e),o=this.getItemType();if(o&&!Bt(r,o))return!1;const i=this.getTargetIds();if(!i.length)return!1;const a=i.indexOf(e);return n?a===i.length-1:a>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return t&&n&&r?Yt((i=r,{x:(o=t).x+i.x,y:o.y+i.y}),n):null;var o,i}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:n}=e;return t&&n?Yt(t,n):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}},Jt="undefined"!=typeof global?global:self,Qt=Jt.MutationObserver||Jt.WebKitMutationObserver;function Zt(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}var en,tn="function"==typeof Qt?function(e){let t=1;const n=new Qt(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:Zt,nn=class{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}},rn=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=tn(this.flush),this.requestErrorThrow=Zt(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},on=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new nn(this.onError,e=>t[t.length]=e);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(rn.registerPendingError),an="dnd-core/ADD_SOURCE",sn="dnd-core/ADD_TARGET",cn="dnd-core/REMOVE_SOURCE",un="dnd-core/REMOVE_TARGET";function ln(e,t){t&&Array.isArray(e)?e.forEach(e=>ln(e,!1)):xt("string"==typeof e||"symbol"==typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(en||(en={}));var fn=0;function dn(e){switch(e[0]){case"S":return en.SOURCE;case"T":return en.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function hn(e,t){const n=e.entries();let r=!1;do{const{done:e,value:[,o]}=n.next();if(o===t)return!0;r=!!e}while(!r);return!1}var gn=class{addSource(e,t){ln(e),function(e){xt("function"==typeof e.canDrag,"Expected canDrag to be a function."),xt("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),xt("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const n=this.addHandler(en.SOURCE,e,t);return this.store.dispatch(function(e){return{type:an,payload:{sourceId:e}}}(n)),n}addTarget(e,t){ln(e,!0),function(e){xt("function"==typeof e.canDrop,"Expected canDrop to be a function."),xt("function"==typeof e.hover,"Expected hover to be a function."),xt("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const n=this.addHandler(en.TARGET,e,t);return this.store.dispatch(function(e){return{type:sn,payload:{targetId:e}}}(n)),n}containsHandler(e){return hn(this.dragSources,e)||hn(this.dropTargets,e)}getSource(e,t=!1){return xt(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return xt(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return xt(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return xt(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return dn(e)===en.SOURCE}isTargetId(e){return dn(e)===en.TARGET}removeSource(e){var t;xt(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:cn,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},rn.enqueueTask(on.create(t))}removeTarget(e){xt(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:un,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);xt(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){xt(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){const r=function(e){const t=(fn++).toString();switch(e){case en.SOURCE:return`S${t}`;case en.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}(e);return this.types.set(r,t),e===en.SOURCE?this.dragSources.set(r,n):e===en.TARGET&&this.dropTargets.set(r,n),r}constructor(e){this.types=/* @__PURE__ */new Map,this.dragSources=/* @__PURE__ */new Map,this.dropTargets=/* @__PURE__ */new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}},pn=(e,t)=>e===t;function vn(e=Gt,t){switch(t.type){case Nt:break;case an:case sn:case un:case cn:return Gt;default:return Xt}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload,o=function(e,t){const n=/* @__PURE__ */new Map,r=e=>{n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);const o=[];return n.forEach((e,t)=>{1===e&&o.push(t)}),o}(n,r);if(!(o.length>0)&&function(e,t,n=pn){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}(n,r))return Gt;const i=r[r.length-1],a=n[n.length-1];return i!==a&&(i&&o.push(i),a&&o.push(a)),o}function mn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yn={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function bn(e=yn,t){const{payload:n}=t;switch(t.type){case Pt:case jt:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case Nt:return r=e.clientOffset,o=n.clientOffset,!r&&!o||r&&o&&r.x===o.x&&r.y===o.y?e:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){mn(e,t,n[t])})}return e}({},e,{clientOffset:n.clientOffset});case kt:case At:return yn;default:return e}var r,o}function wn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function On(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){wn(e,t,n[t])})}return e}var Sn={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Dn(e=Sn,t){const{payload:n}=t;switch(t.type){case jt:return On({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case Rt:return On({},e,{isSourcePublic:!0});case Nt:return On({},e,{targetIds:n.targetIds});case un:return-1===e.targetIds.indexOf(n.targetId)?e:On({},e,{targetIds:(r=e.targetIds,o=n.targetId,r.filter(e=>e!==o))});case At:return On({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case kt:return On({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var r,o}function Tn(e=0,t){switch(t.type){case an:case sn:return e+1;case cn:case un:return e-1;default:return e}}function In(e=0){return e+1}function En(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){En(e,t,n[t])})}return e}function Cn(e={},t){return{dirtyHandlerIds:vn(e.dirtyHandlerIds,{type:t.type,payload:xn({},t.payload,{prevTargetIds:(n=e,r=[],"dragOperation.targetIds".split(".").reduce((e,t)=>e&&e[t]?e[t]:r||null,n))})}),dragOffset:bn(e.dragOffset,t),refCount:Tn(e.refCount,t),dragOperation:Dn(e.dragOperation,t),stateId:In(e.stateId)};var n,r}function Pn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var jn=0,Rn=Symbol.for("__VUE_DND_CONTEXT_INSTANCE__");function Nn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:An(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=t;return o[Rn]||(o[Rn]=function(e,t,n={},r=!1){const o=function(e){const t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return Et(Cn,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(r),i=new zt(o,new Kt(o,new gn(o))),a=e(i,t,n);return i.receiveBackend(a),i}(e,t,n,r)),o[Rn]}function An(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:window}var kn=(0,vt.defineComponent)({name:"DndProvider",props:{manager:{type:Object},backend:{type:Function},context:{type:Object},options:{type:Object},debugMode:{type:Boolean}},setup:function(e,t){var n,r,o,i,a=t.slots,s=(o=function(e){return function(e){return"manager"in e&&e.manager}(e)?[e.manager,!1]:[Nn(e.backend,e.context,e.options,e.debugMode),!e.context]}(e),i=2,function(e){if(Array.isArray(e))return e}(o)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(o,i)||function(e,t){if(e){if("string"==typeof e)return Pn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pn(e,t):void 0}}(o,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=s[0],u=s[1];return u&&++jn,(0,vt.onUnmounted)(function(){if(u){var e=An();0===--jn&&(e[Rn]=null)}}),n=c,(0,vt.provide)(Ot,n),function(){var e;return null!==(r=null===(e=a.default)||void 0===e?void 0:e.call(a))&&void 0!==r?r:null}}});(0,vt.defineComponent)({props:{connect:{type:Function,required:!0},src:{type:String,required:!0}},setup:function(e){return(0,vt.watchEffect)(function(){if("undefined"!=typeof Image){var t=!1,n=new Image;return n.src=e.src,n.onload=function(){e.connect(n),t=!0},function(){t&&e.connect(null)}}}),function(){return null}}});var Mn=!1,Ln=!1,_n=/* @__PURE__ */function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourceId=null,this.internalMonitor=t.getMonitor()}var t=e.prototype;return t.receiveHandlerId=function(e){this.sourceId=e},t.getHandlerId=function(){return this.sourceId},t.canDrag=function(){xt(!Mn,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Mn=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Mn=!1}},t.isDragging=function(){if(!this.sourceId)return!1;xt(!Ln,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Ln=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Ln=!1}},t.subscribeToStateChange=function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)},t.isDraggingSource=function(e){return this.internalMonitor.isDraggingSource(e)},t.isOverTarget=function(e,t){return this.internalMonitor.isOverTarget(e,t)},t.getTargetIds=function(){return this.internalMonitor.getTargetIds()},t.isSourcePublic=function(){return this.internalMonitor.isSourcePublic()},t.getSourceId=function(){return this.internalMonitor.getSourceId()},t.subscribeToOffsetChange=function(e){return this.internalMonitor.subscribeToOffsetChange(e)},t.canDragSource=function(e){return this.internalMonitor.canDragSource(e)},t.canDropOnTarget=function(e){return this.internalMonitor.canDropOnTarget(e)},t.getItemType=function(){return this.internalMonitor.getItemType()},t.getItem=function(){return this.internalMonitor.getItem()},t.getDropResult=function(){return this.internalMonitor.getDropResult()},t.didDrop=function(){return this.internalMonitor.didDrop()},t.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},t.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},t.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},t.getClientOffset=function(){return this.internalMonitor.getClientOffset()},t.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},e}(),Fn=!1,Hn=/* @__PURE__ */function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.targetId=null,this.internalMonitor=t.getMonitor()}var t=e.prototype;return t.receiveHandlerId=function(e){this.targetId=e},t.getHandlerId=function(){return this.targetId},t.subscribeToStateChange=function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)},t.canDrop=function(){if(!this.targetId)return!1;xt(!Fn,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return Fn=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Fn=!1}},t.isOver=function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)},t.getItemType=function(){return this.internalMonitor.getItemType()},t.getItem=function(){return this.internalMonitor.getItem()},t.getDropResult=function(){return this.internalMonitor.getDropResult()},t.didDrop=function(){return this.internalMonitor.didDrop()},t.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},t.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},t.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},t.getClientOffset=function(){return this.internalMonitor.getClientOffset()},t.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},e}();function Wn(e){return function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if((t=n)&&t.__v_skip&&function(){throw new Error("Only native element nodes can now be passed to Vue DnD connectors.You can either wrap Component into a <div>, or turn it into a drag source or a drop target itself.")}(),!function(e){return!!(n=e)&&!0===n.__v_isVNode&&"symbol"!=((t=e.type)&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t);var t,n}(n)){var o=n;return e(o,r),o}}}function Un(e){var t={};return Object.keys(e).forEach(function(n){var r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{var o=Wn(r);t[n]=function(){return o}}}),t}function Vn(e,t,n,r){let o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;const i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let c=0;c<i.length;c++){const a=i[c];if(!s(a))return!1;const u=e[a],l=t[a];if(o=n?n.call(r,u,l,a):void 0,!1===o||void 0===o&&u!==l)return!1}return!0}function Bn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var $n=/* @__PURE__ */function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=Un({dragSource:function(e,t){n.clearDragSource(),n.dragSourceOptions=t||null,n.dragSourceNode=e,n.reconnectDragSource()},dragPreview:function(e,t){n.clearDragPreview(),n.dragPreviewOptions=t||null,n.dragPreviewNode=e,n.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceOptionsInternal=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}var t,n,r=e.prototype;return r.receiveHandlerId=function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())},r.reconnect=function(){var e=this.reconnectDragSource();this.reconnectDragPreview(e)},r.reconnectDragSource=function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t},r.reconnectDragPreview=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.dragPreview,n=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();n&&this.disconnectDragPreview(),this.handlerId&&(t?n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)},r.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},r.didConnectedDragSourceChange=function(){return this.lastConnectedDragSource!==this.dragSource},r.didConnectedDragPreviewChange=function(){return this.lastConnectedDragPreview!==this.dragPreview},r.didDragSourceOptionsChange=function(){return!Vn(this.lastConnectedDragSourceOptions,this.dragSourceOptions)},r.didDragPreviewOptionsChange=function(){return!Vn(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)},r.disconnectDragSource=function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)},r.disconnectDragPreview=function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null)},r.clearDragSource=function(){this.dragSourceNode=null},r.clearDragPreview=function(){this.dragPreviewNode=null},t=e,(n=[{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:"dragSource",get:function(){return this.dragSourceNode}},{key:"dragPreview",get:function(){return this.dragPreviewNode}}])&&Bn(t.prototype,n),e}();function qn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var zn=/* @__PURE__ */function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=Un({dropTarget:function(e,t){n.clearDropTarget(),n.dropTargetOptions=t,(0,vt.isRef)(e)?n.dropTargetRef=e:n.dropTargetNode=e,n.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}var t,n,r=e.prototype;return r.reconnect=function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)},r.receiveHandlerId=function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())},r.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},r.didDropTargetChange=function(){return this.lastConnectedDropTarget!==this.dropTarget},r.didOptionsChange=function(){return!Vn(this.lastConnectedDropTargetOptions,this.dropTargetOptions)},r.disconnectDropTarget=function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)},r.clearDropTarget=function(){this.dropTargetRef=null,this.dropTargetNode=null},t=e,(n=[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.value}}])&&qn(t.prototype,n),e}(),Yn=/* @__PURE__ */function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.spec=t,this.monitor=n,this.connector=r}var t=e.prototype;return t.beginDrag=function(){var e,t=this.spec,n=this.monitor;return null!=(e="object"==typeof t.item?t.item:"function"==typeof t.item?t.item(n):{})?e:null},t.canDrag=function(){var e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)},t.isDragging=function(e,t){var n=this.spec,r=this.monitor,o=n.isDragging;return o?o(r):t===e.getSourceId()},t.endDrag=function(){var e=this.spec,t=this.monitor,n=this.connector,r=e.end;r&&r(t.getItem(),t),n.reconnect()},e}();function Gn(){var e=(0,vt.inject)(Ot);return xt(null!=e,"Expected drag drop context"),e}function Xn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Kn(e,t,n){var r=Gn(),o=function(e,t,n){var r=(0,vt.computed)(function(){return new Yn((0,vt.unref)(e),(0,vt.unref)(t),(0,vt.unref)(n))});return(0,vt.watchEffect)(function(){r.value.spec=(0,vt.unref)(e)}),r}(e,t,n),i=function(e){return(0,vt.computed)(function(){var t=(0,vt.unref)(e).type;return xt(null!=t,"spec.type must be defined"),t})}(e);(0,vt.watchEffect)(function(e){if(null!=(0,vt.unref)(i)){var a=(u=function(e,t,n){var r=n.getRegistry(),o=r.addSource(e,t);return[o,function(){return r.removeSource(o)}]}((0,vt.unref)(i),(0,vt.unref)(o),(0,vt.unref)(r)),l=2,function(e){if(Array.isArray(e))return e}(u)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(u,l)||function(e,t){if(e){if("string"==typeof e)return Xn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xn(e,t):void 0}}(u,l)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=a[0],c=a[1];(0,vt.unref)(t).receiveHandlerId(s),(0,vt.unref)(n).receiveHandlerId(s),e(c)}var u,l})}function Jn(e){return(0,vt.computed)(function(){return"function"==typeof e?e():e})}var Qn=/* @__PURE__ */e(/* @__PURE__ */r((e,t)=>{t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!==o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!==o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!==o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}})());function Zn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function er(e,t,n){var r,o,i=(r=function(e,t,n){var r=(0,vt.ref)((0,vt.unref)(t)((0,vt.unref)(e))),o=function(){var o=(0,vt.unref)(t)((0,vt.unref)(e));(0,Qn.default)(r.value,o)||(r.value=o,n&&n())};return(0,vt.watchEffect)(o),[r,o]}(e,t,n),o=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(r,o)||function(e,t){if(e){if("string"==typeof e)return Zn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zn(e,t):void 0}}(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i[0],s=i[1];return(0,vt.watchEffect)(function(t){var n=(0,vt.unref)(e).getHandlerId();null!=n&&t((0,vt.unref)(e).subscribeToStateChange(s,{handlerIds:[n]}))}),a}function tr(e,t,n){return er(t,e||function(){return{}},function(){return(0,vt.unref)(n).reconnect()})}function nr(e,t){var n=(0,vt.reactive)({el:null,options:(0,vt.unref)(t)});return(0,vt.watchEffect)(function(){e(n)},{flush:"post"}),function(e,r){bt(n,"el",e);var o=(0,vt.unref)(t)||r;return(0,Qn.default)(n.options,o)||bt(n,"options",o),(0,vt.unref)(e)}}function rr(e,t){return nr(function(t){(0,vt.unref)(e).hooks.dragSource()(t.el,t.options)},(0,vt.computed)(function(){return(0,vt.unref)(t).options}))}function or(e,t){return nr(function(t){(0,vt.unref)(e).hooks.dragPreview()(t.el,t.options)},(0,vt.computed)(function(){return(0,vt.unref)(t).previewOptions}))}function ir(e){var t,n=Jn(e),r=(t=Gn(),(0,vt.computed)(function(){return new _n((0,vt.unref)(t))})),o=function(e,t){var n=Gn(),r=(0,vt.computed)(function(){return new $n((0,vt.unref)(n).getBackend())});return(0,vt.watchEffect)(function(t){r.value.dragSourceOptions=(0,vt.unref)(e)||null,(0,vt.unref)(r).reconnect(),t(function(){r.value.disconnectDragSource()})}),(0,vt.watchEffect)(function(e){r.value.dragPreviewOptions=(0,vt.unref)(t)||null,(0,vt.unref)(r).reconnect(),e(function(){r.value.disconnectDragPreview()})}),r}((0,vt.computed)(function(){return(0,vt.unref)(n).options}),(0,vt.computed)(function(){return(0,vt.unref)(n).previewOptions}));return Kn(n,r,o),[tr((0,vt.computed)(function(){return(0,vt.unref)(n).collect||function(){return{}}}),r,o),rr(o,n),or(o,n)]}var ar=/* @__PURE__ */function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.spec=t,this.monitor=n}var t=e.prototype;return t.canDrop=function(){var e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)},t.hover=function(){var e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)},t.drop=function(){var e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)},e}();function sr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cr(e,t,n){var r=Gn(),o=function(e,t){var n=(0,vt.computed)(function(){return new ar((0,vt.unref)(e),(0,vt.unref)(t))});return(0,vt.watchEffect)(function(){n.value.spec=(0,vt.unref)(e)}),n}(e,t),i=function(e){return(0,vt.computed)(function(){var t=(0,vt.unref)(e).accept;return xt(null!=t,"accept must be defined"),Array.isArray(t)?t:[t]})}(e);(0,vt.watchEffect)(function(e){var a,s,c=(a=function(e,t,n){var r=(0,vt.unref)(n).getRegistry(),o=r.addTarget((0,vt.unref)(e),(0,vt.unref)(t));return[o,function(){return r.removeTarget(o)}]}(i,o,r),s=2,function(e){if(Array.isArray(e))return e}(a)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(a,s)||function(e,t){if(e){if("string"==typeof e)return sr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sr(e,t):void 0}}(a,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=c[0],l=c[1];(0,vt.unref)(t).receiveHandlerId(u),(0,vt.unref)(n).receiveHandlerId(u),e(l)})}function ur(e,t){return nr(function(t){(0,vt.unref)(e).hooks.dropTarget()(t.el,t.options)},(0,vt.computed)(function(){return(0,vt.unref)(t).options}))}function lr(e){var t,n=Jn(e),r=(t=Gn(),(0,vt.computed)(function(){return new Hn((0,vt.unref)(t))})),o=function(e){var t=Gn(),n=(0,vt.computed)(function(){return new zn((0,vt.unref)(t).getBackend())});return(0,vt.watchEffect)(function(t){n.value.dropTargetOptions=(0,vt.unref)(e)||null,n.value.reconnect(),t(function(){return n.value.disconnectDropTarget()})}),n}((0,vt.computed)(function(){return(0,vt.unref)(n).options}));return cr(n,r,o),[tr((0,vt.computed)(function(){return(0,vt.unref)(n).collect||function(){return{}}}),r,o),ur(o,n)]}function fr(e){let t=null;return()=>(null==t&&(t=e()),t)}var dr=class{enter(e){const t=this.entered.length;return this.entered=function(e,t){const n=/* @__PURE__ */new Set,r=e=>n.add(e);e.forEach(r),t.forEach(r);const o=[];return n.forEach(e=>o.push(e)),o}(this.entered.filter(t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e))),[e]),0===t&&this.entered.length>0}leave(e){const t=this.entered.length;var n,r;return this.entered=(n=this.entered.filter(this.isNodeInDocument),r=e,n.filter(e=>e!==r)),t>0&&0===this.entered.length}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}},hr=class{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get:()=>(console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null)})})}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach(n=>{const r=this.config.exposeProperties[n];null!=r&&(t[n]={value:r(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}},gr=/* @__PURE__ */t({FILE:()=>pr,HTML:()=>yr,TEXT:()=>mr,URL:()=>vr}),pr="__NATIVE_FILE__",vr="__NATIVE_URL__",mr="__NATIVE_TEXT__",yr="__NATIVE_HTML__";function br(e,t,n){const r=t.reduce((t,n)=>t||e.getData(n),"");return null!=r?r:n}var wr={[pr]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[yr]:{exposeProperties:{html:(e,t)=>br(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[vr]:{exposeProperties:{urls:(e,t)=>br(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[mr]:{exposeProperties:{text:(e,t)=>br(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function Or(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(wr).filter(e=>{const n=wr[e];return!!(null==n?void 0:n.matchesTypes)&&n.matchesTypes.some(e=>t.indexOf(e)>-1)})[0]||null}var Sr=fr(()=>/firefox/i.test(navigator.userAgent)),Dr=fr(()=>Boolean(window.safari)),Tr=class{interpolate(e){const{xs:t,ys:n,c1s:r,c2s:o,c3s:i}=this;let a=t.length-1;if(e===t[a])return n[a];let s,c=0,u=i.length-1;for(;c<=u;){s=Math.floor(.5*(c+u));const r=t[s];if(r<e)c=s+1;else{if(!(r>e))return n[s];u=s-1}}a=Math.max(0,u);const l=e-t[a],f=l*l;return n[a]+r[a]*l+o[a]*f+i[a]*l*f}constructor(e,t){const{length:n}=e,r=[];for(let h=0;h<n;h++)r.push(h);r.sort((t,n)=>e[t]<e[n]?-1:1);const o=[],i=[],a=[];let s,c;for(let h=0;h<n-1;h++)s=e[h+1]-e[h],c=t[h+1]-t[h],i.push(s),o.push(c),a.push(c/s);const u=[a[0]];for(let h=0;h<i.length-1;h++){const e=a[h],t=a[h+1];if(e*t<=0)u.push(0);else{s=i[h];const n=i[h+1],r=s+n;u.push(3*r/((r+n)/e+(r+s)/t))}}u.push(a[a.length-1]);const l=[],f=[];let d;for(let h=0;h<u.length-1;h++){d=a[h];const e=u[h],t=1/i[h],n=e+u[h+1]-d-d;l.push((d-e-n)*t),f.push(n*t*t)}this.xs=e,this.ys=t,this.c1s=u,this.c2s=l,this.c3s=f}};function Ir(e){const t=1===e.nodeType?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function Er(e){return{x:e.clientX,y:e.clientY}}var xr=class{get window(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}get document(){var e;return(null===(e=this.globalContext)||void 0===e?void 0:e.document)?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}};function Cr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Cr(e,t,n[t])})}return e}var jr=class{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;var t;void 0!==e&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(t=this.window)||void 0===t||t.cancelAnimationFrame(this.asyncEndDragFrameId)))}connectDragPreview(e,t,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,n){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);const r=t=>this.handleDragStart(t,e),o=e=>this.handleSelectStart(e);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",r),t.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",r),t.removeEventListener("selectstart",o),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const n=t=>this.handleDragEnter(t,e),r=t=>this.handleDragOver(t,e),o=t=>this.handleDrop(t,e);return t.addEventListener("dragenter",n),t.addEventListener("dragover",r),t.addEventListener("drop",o),()=>{t.removeEventListener("dragenter",n),t.removeEventListener("dragover",r),t.removeEventListener("drop",o)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return Pr({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return Pr({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(gr).some(t=>gr[t]===e)}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const n=wr[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new hr(n);return r.loadDataTransfer(t),r}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout(()=>{var e;return null===(e=this.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},1e3)}clearCurrentDragSourceNode(){var e;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,n){this.sourcePreviewNodes=/* @__PURE__ */new Map,this.sourcePreviewNodeOptions=/* @__PURE__ */new Map,this.sourceNodes=/* @__PURE__ */new Map,this.sourceNodeOptions=/* @__PURE__ */new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&Ir(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>Boolean(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{const e=this.currentDragSourceNode;null==e||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{null===this.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{null!==this.hoverRafId&&"undefined"!=typeof cancelAnimationFrame&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;const{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;const n=Er(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:n});const{dataTransfer:r}=e,o=Or(r);if(this.monitor.isDragging()){if(r&&"function"==typeof r.setDragImage){const e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),o=this.sourcePreviewNodes.get(e)||t;if(o){const{anchorX:e,anchorY:i,offsetX:a,offsetY:s}=this.getCurrentSourcePreviewNodeOptions(),c=function(e,t,n,r,o){const i=function(e){var t;return"IMG"===e.nodeName&&(Sr()||!(null===(t=document.documentElement)||void 0===t?void 0:t.contains(e)))}(t),a=Ir(i?e:t),s={x:n.x-a.x,y:n.y-a.y},{offsetWidth:c,offsetHeight:u}=e,{anchorX:l,anchorY:f}=r,{dragPreviewWidth:d,dragPreviewHeight:h}=function(e,t,n,r){let o=e?t.width:n,i=e?t.height:r;return Dr()&&e&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}(i,t,c,u),{offsetX:g,offsetY:p}=o,v=0===p||p;return{x:0===g||g?g:new Tr([0,.5,1],[s.x,s.x/c*d,s.x+d-c]).interpolate(l),y:v?p:(()=>{let e=new Tr([0,.5,1],[s.y,s.y/u*h,s.y+h-u]).interpolate(f);return Dr()&&i&&(e+=(window.devicePixelRatio-1)*h),e})()}}(t,o,n,{anchorX:e,anchorY:i},{offsetX:a,offsetY:s});r.setDragImage(o,c.x,c.y)}}try{null==r||r.setData("application/json",{})}catch(i){}this.setCurrentDragSourceNode(e.target);const{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(o)this.beginDragNativeItem(o);else{if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{var t;if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)),!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;const{dataTransfer:n}=e,r=Or(n);r&&this.beginDragNativeItem(r,n)},this.handleTopDragEnter=e=>{const{dragEnterTargetIds:t}=this;this.dragEnterTargetIds=[],this.monitor.isDragging()&&(this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:Er(e)}),t.some(e=>this.monitor.canDropOnTarget(e))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())))},this.handleTopDragOverCapture=e=>{var t;this.dragOverTargetIds=[],this.isDraggingNativeItem()&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer))},this.handleTopDragOver=e=>{const{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));this.altKeyPressed=e.altKey,this.lastClientOffset=Er(e),this.scheduleHover(t),(t||[]).some(e=>this.monitor.canDropOnTarget(e))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault(),this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=e=>{var t;this.dropTargetIds=[],this.isDraggingNativeItem()?(e.preventDefault(),null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):Or(e.dataTransfer)&&e.preventDefault(),this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:Er(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{const t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new xr(t,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new dr(this.isNodeInDocument)}},Rr=function(e,t,n){return new jr(e,t,n)},Nr={"zh-CN":()=>import("./zh_CN-DY_wA21D.js"),"en-US":()=>import("./en_US-CuX-vrWy.js"),"pt-PT":()=>import("./pt_PT-C0ALlHDr.js"),"tr-TR":()=>import("./tr_TR-Cm3P61iH.js"),"zh-TW":()=>import("./zh_TW-A1Y7MG2g.js"),"ja-JP":()=>import("./ja_JP-CgXnA74i.js"),"vi-VN":()=>import("./vi_VN-BZ_iPKuE.js"),"de-GE":()=>import("./de_DE-BY1He8Sf.js"),"fr-FR":()=>import("./fr_FR-C4TFcMTv.js"),"es-ES":()=>import("./es_ES-BqHRjpc9.js"),"ru-RU":()=>import("./ru_RU-D39vUeFW.js")},Ar=C({locale:""});function kr(){if(Ar.value.locale!==_gct.i18n.global.locale){const e=Nr[_gct.i18n.global.locale];e&&e().then(e=>{Ar.value=e.default})}return{getAntdLocale:Ar}}var Mr=x({});function Lr(){return{themeVars:Mr,setPrimaryColor:function(e){Mr.primaryColor=e,V.config({theme:{primaryColor:e}})}}}function _r(e,t,n={}){const r=n.minValue??10,o=C(e),i=x({offset:"offsetWidth",client:"clientX",clientMove:0,rowType:t,offsetWidth:2e3});function a(e){const t=e-i.clientMove;o.value=s(s(o.value)+t),i.clientMove=e}function s(e){return"right"===i.rowType||"bottom"===i.rowType?i.offsetWidth-e:e}return{moveDomDown:function(e,t,n){const r=t,o=e;i.offsetWidth=r[i.offset]??0,i.clientMove=o[i.client]??0,e.preventDefault(),document.onmousemove=e=>{a(e[i.client]??0)},document.onmouseup=()=>{document.onmouseup=null,document.onmousemove=null,null==n||n()}},moveMobileDomDown:function(e,t,n){const r=t,o=e.touches[0];o&&(i.offsetWidth=r[i.offset]??0,i.clientMove=o[i.client]??0,e.preventDefault(),document.ontouchmove=e=>{a(e.touches[0][i.client]??0)},document.ontouchend=()=>{document.ontouchend=null,document.ontouchmove=null,null==n||n()})},start:f({get:()=>o.value<r?r:o.value>i.offsetWidth-r?i.offsetWidth-r:o.value,set(e){o.value=e}})}}var Fr=/* @__PURE__ */h({props:{opts:{type:Object,default:()=>({})}},setup(e,t){const n=c("modal"),r=C(!1),i=C(!!e.opts.defaultFullscreen),a=()=>{i.value=!i.value},s=C({});e.opts&&Object.assign(s.value,e.opts);let u=null;const l=new o({dismiss:e=>{r.value=!1,u=e,t.emit("dismiss",u)},setOptions(e){Object.assign(s.value,e)}});E("modal",l);const f=e=>l.dismiss(e);t.expose({present:()=>{r.value=!0},dismiss:f});const h=C(!1),g=async()=>{if(l.ok)try{h.value=!0;const e=await l.ok();h.value=!1,!e||!0!==e.ok&&!0!==e.close||f(e)}finally{h.value=!1}else console.warn("打开模态未实现ok方法")},p=async()=>{l.cancel&&!1===await l.cancel()||f()},{getAntdLocale:m}=kr();return()=>{var e,o;let c;const u=null===(e=(o=t.slots).default)||void 0===e?void 0:e.call(o);return u&&u.length>0&&(u[0].props.modal=l),d(V,{locale:m.value},{default:()=>{return[d(kn,{backend:Rr},(e=c=v(P("a-modal"),{visible:r.value,class:[n.b(),s.value.placement&&n.m(s.value.placement),s.value.modalClass,n.is("hidden-footer",!1===s.value.showFooter),n.is("hidden-close-btn",!1===s.value.showCloseBtn),n.is("hidden-cancel-btn",!1===s.value.showCancelBtn),n.is("full-screen",i.value)],centered:!0,onOk:g,confirmLoading:h.value,onCancel:p,okText:"确认",okButtonProps:{disabled:l.state.okDisabled},...s.value},[!1!==s.value.canFullscreen?d("div",{class:n.e("full-screen"),onClick:a},[d("i",{class:"iconfont "+(i.value?"icon-tuichuquanping":"icon-quanping")},null)]):null,u]),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!w(e)?c:{default:()=>[c]}))];var e}})}}}),Hr=Math.min,Wr=Math.max,Ur=Math.round,Vr=Math.floor,Br=e=>({x:e,y:e}),$r={left:"right",right:"left",bottom:"top",top:"bottom"};function qr(e,t,n){return Wr(e,Hr(t,n))}function zr(e,t){return"function"==typeof e?e(t):e}function Yr(e){return e.split("-")[0]}function Gr(e){return e.split("-")[1]}function Xr(e){return"x"===e?"y":"x"}function Kr(e){return"y"===e?"height":"width"}function Jr(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function Qr(e){return Xr(Jr(e))}function Zr(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var eo=["left","right"],to=["right","left"],no=["top","bottom"],ro=["bottom","top"];function oo(e){const t=Yr(e);return $r[t]+e.slice(t.length)}function io(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function ao(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function so(e,t,n){let{reference:r,floating:o}=e;const i=Jr(t),a=Qr(t),s=Kr(a),c=Yr(t),u="y"===i,l=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,d=r[s]/2-o[s]/2;let h;switch(c){case"top":h={x:l,y:r.y-o.height};break;case"bottom":h={x:l,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-o.width,y:f};break;default:h={x:r.x,y:r.y}}switch(Gr(t)){case"start":h[a]-=d*(n&&u?-1:1);break;case"end":h[a]+=d*(n&&u?-1:1)}return h}async function co(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:l="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=zr(t,e),g=io(h),p=s[d?"floating"===f?"reference":"floating":f],v=ao(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(p)))||n?p:p.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:l,strategy:c})),m="floating"===f?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),b=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},w=ao(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:m,offsetParent:y,strategy:c}):m);return{top:(v.top-w.top+g.top)/b.y,bottom:(w.bottom-v.bottom+g.bottom)/b.y,left:(v.left-w.left+g.left)/b.x,right:(w.right-v.right+g.right)/b.x}}var uo=/* @__PURE__ */new Set(["left","top"]);function lo(){return"undefined"!=typeof window}function fo(e){return po(e)?(e.nodeName||"").toLowerCase():"#document"}function ho(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function go(e){var t;return null==(t=(po(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function po(e){return!!lo()&&(e instanceof Node||e instanceof ho(e).Node)}function vo(e){return!!lo()&&(e instanceof Element||e instanceof ho(e).Element)}function mo(e){return!!lo()&&(e instanceof HTMLElement||e instanceof ho(e).HTMLElement)}function yo(e){return!(!lo()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof ho(e).ShadowRoot)}function bo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Po(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function wo(e){return/^(table|td|th)$/.test(fo(e))}function Oo(e){try{if(e.matches(":popover-open"))return!0}catch(t){}try{return e.matches(":modal")}catch(t){return!1}}var So,Do=/transform|translate|scale|rotate|perspective|filter/,To=/paint|layout|strict|content/,Io=e=>!!e&&"none"!==e;function Eo(e){const t=vo(e)?Po(e):e;return Io(t.transform)||Io(t.translate)||Io(t.scale)||Io(t.rotate)||Io(t.perspective)||!xo()&&(Io(t.backdropFilter)||Io(t.filter))||Do.test(t.willChange||"")||To.test(t.contain||"")}function xo(){return null==So&&(So="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),So}function Co(e){return/^(html|body|#document)$/.test(fo(e))}function Po(e){return ho(e).getComputedStyle(e)}function jo(e){return vo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ro(e){if("html"===fo(e))return e;const t=e.assignedSlot||e.parentNode||yo(e)&&e.host||go(e);return yo(t)?t.host:t}function No(e){const t=Ro(e);return Co(t)?e.ownerDocument?e.ownerDocument.body:e.body:mo(t)&&bo(t)?t:No(t)}function Ao(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=No(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=ho(o);if(i){const e=ko(a);return t.concat(a,a.visualViewport||[],bo(o)?o:[],e&&n?Ao(e):[])}return t.concat(o,Ao(o,[],n))}function ko(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Mo(e){const t=Po(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=mo(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Ur(n)!==i||Ur(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Lo(e){return vo(e)?e:e.contextElement}function _o(e){const t=Lo(e);if(!mo(t))return Br(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Mo(t);let a=(i?Ur(n.width):n.width)/r,s=(i?Ur(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}var Fo=/* @__PURE__ */Br(0);function Ho(e){const t=ho(e);return xo()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Fo}function Wo(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Lo(e);let a=Br(1);t&&(r?vo(r)&&(a=_o(r)):a=_o(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==ho(e))&&t}(i,n,r)?Ho(i):Br(0);let c=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,l=o.width/a.x,f=o.height/a.y;if(i){const e=ho(i),t=r&&vo(r)?ho(r):r;let n=e,o=ko(n);for(;o&&r&&t!==n;){const e=_o(o),t=o.getBoundingClientRect(),r=Po(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,l*=e.x,f*=e.y,c+=i,u+=a,n=ho(o),o=ko(n)}}return ao({width:l,height:f,x:c,y:u})}function Uo(e,t){const n=jo(e).scrollLeft;return t?t.left+n:Wo(go(e)).left+n}function Vo(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Uo(e,n),y:n.top+t.scrollTop}}function Bo(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=ho(e),r=go(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const e=xo();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}const u=Uo(r);if(u<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-o);a<=25&&(i-=a)}else u<=25&&(i+=u);return{width:i,height:a,x:s,y:c}}(e,n);else if("document"===t)r=function(e){const t=go(e),n=jo(e),r=e.ownerDocument.body,o=Wr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Wr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Uo(e);const s=-n.scrollTop;return"rtl"===Po(r).direction&&(a+=Wr(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(go(e));else if(vo(t))r=function(e,t){const n=Wo(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=mo(e)?_o(e):Br(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Ho(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ao(r)}function $o(e,t){const n=Ro(e);return!(n===t||!vo(n)||Co(n))&&("fixed"===Po(n).position||$o(n,t))}function qo(e,t){const n=t.get(e);if(n)return n;let r=Ao(e,[],!1).filter(e=>vo(e)&&"body"!==fo(e)),o=null;const i="fixed"===Po(e).position;let a=i?Ro(e):e;for(;vo(a)&&!Co(a);){const t=Po(a),n=Eo(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||bo(a)&&!n&&$o(e,a))?r=r.filter(e=>e!==a):o=t,a=Ro(a)}return t.set(e,r),r}function zo(e,t,n){const r=mo(t),o=go(t),i="fixed"===n,a=Wo(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=Br(0);function u(){c.x=Uo(o)}if(r||!r&&!i)if(("body"!==fo(t)||bo(o))&&(s=jo(t)),r){const e=Wo(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&u();i&&!r&&o&&u();const l=!o||r||i?Br(0):Vo(o,s);return{x:a.left+s.scrollLeft-c.x-l.x,y:a.top+s.scrollTop-c.y-l.y,width:a.width,height:a.height}}function Yo(e){return"static"===Po(e).position}function Go(e,t){if(!mo(e)||"fixed"===Po(e).position)return null;if(t)return t(e);let n=e.offsetParent;return go(e)===n&&(n=n.ownerDocument.body),n}function Xo(e,t){const n=ho(e);if(Oo(e))return n;if(!mo(e)){let t=Ro(e);for(;t&&!Co(t);){if(vo(t)&&!Yo(t))return t;t=Ro(t)}return n}let r=Go(e,t);for(;r&&wo(r)&&Yo(r);)r=Go(r,t);return r&&Co(r)&&Yo(r)&&!Eo(r)?n:r||function(e){let t=Ro(e);for(;mo(t)&&!Co(t);){if(Eo(t))return t;if(Oo(t))return null;t=Ro(t)}return null}(e)||n}var Ko={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=go(r),s=!!t&&Oo(t.floating);if(r===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},u=Br(1);const l=Br(0),f=mo(r);if((f||!f&&!i)&&(("body"!==fo(r)||bo(a))&&(c=jo(r)),f)){const e=Wo(r);u=_o(r),l.x=e.x+r.clientLeft,l.y=e.y+r.clientTop}const d=!a||f||i?Br(0):Vo(a,c);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+l.x+d.x,y:n.y*u.y-c.scrollTop*u.y+l.y+d.y}},getDocumentElement:go,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?Oo(t)?[]:qo(t,this._c):[].concat(n),r],a=Bo(t,i[0],o);let s=a.top,c=a.right,u=a.bottom,l=a.left;for(let f=1;f<i.length;f++){const e=Bo(t,i[f],o);s=Wr(e.top,s),c=Hr(e.right,c),u=Hr(e.bottom,u),l=Wr(e.left,l)}return{width:c-l,height:u-s,x:l,y:s}},getOffsetParent:Xo,getElementRects:async function(e){const t=this.getOffsetParent||Xo,n=this.getDimensions,r=await n(e.floating);return{reference:zo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Mo(e);return{width:t,height:n}},getScale:_o,isElement:vo,isRTL:function(e){return"rtl"===Po(e).direction}};function Jo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}var Qo=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,c=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Yr(n),s=Gr(n),c="y"===Jr(n),u=uo.has(a)?-1:1,l=i&&c?-1:1,f=zr(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:g}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&"number"==typeof g&&(h="end"===s?-1*g:g),c?{x:h*l,y:d*u}:{x:d*u,y:h*l}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:a}}}}},Zo=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=zr(e,t),l={x:n,y:r},f=await i.detectOverflow(t,u),d=Jr(Yr(o)),h=Xr(d);let g=l[h],p=l[d];if(a){const e="y"===h?"bottom":"right";g=qr(g+f["y"===h?"top":"left"],g,g-f[e])}if(s){const e="y"===d?"bottom":"right";p=qr(p+f["y"===d?"top":"left"],p,p-f[e])}const v=c.fn({...t,[h]:g,[d]:p});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[h]:a,[d]:s}}}}}},ei=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:c,elements:u}=t,{mainAxis:l=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:p=!0,...v}=zr(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const m=Yr(o),y=Jr(s),b=Yr(s)===s,w=await(null==c.isRTL?void 0:c.isRTL(u.floating)),O=d||(b||!p?[oo(s)]:function(e){const t=oo(e);return[Zr(e),t,Zr(t)]}(s)),S="none"!==g;!d&&S&&O.push(...function(e,t,n,r){const o=Gr(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?to:eo:t?eo:to;case"left":case"right":return t?no:ro;default:return[]}}(Yr(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(Zr)))),i}(s,p,g,w));const D=[s,...O],T=await c.detectOverflow(t,v),I=[];let E=(null==(r=i.flip)?void 0:r.overflows)||[];if(l&&I.push(T[m]),f){const e=function(e,t,n){void 0===n&&(n=!1);const r=Gr(e),o=Qr(e),i=Kr(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=oo(a)),[a,oo(a)]}(o,a,w);I.push(T[e[0]],T[e[1]])}if(E=[...E,{placement:o,overflows:I}],!I.every(e=>e<=0)){var x,C;const e=((null==(x=i.flip)?void 0:x.index)||0)+1,t=D[e];if(t&&("alignment"!==f||y===Jr(t)||E.every(e=>Jr(e.placement)!==y||e.overflows[0]>0)))return{data:{index:e,overflows:E},reset:{placement:t}};let n=null==(C=E.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:C.placement;if(!n)switch(h){case"bestFit":{var P;const e=null==(P=E.filter(e=>{if(S){const t=Jr(e.placement);return t===y||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:P[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},ti=/* @__PURE__ */h({props:{opts:{type:Object,default:()=>({})}},setup(e,t){const n=c("popover"),r=C(!1),i=C(),a=C(),s=x({}),{width:u,height:l,maxHeight:f}=e.opts;u&&(W(u)?s.width=`${u}px`:s.width=u),l&&(W(l)?s.height=`${l}px`:s.height=l),f&&(W(f)?s.maxHeight=`${f}px`:s.maxHeight=f);const h=new o({dismiss:e=>{t.emit("dismiss",e)}});function g(e){return h.dismiss(e)}let p=()=>{};I(()=>{p()}),be(i,()=>{g({ok:!1})}),t.expose({present:async function(t){r.value=!0,p=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,u=Lo(e),l=o||i?[...u?Ao(u):[],...t?Ao(t):[]]:[];l.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const f=u&&s?function(e,t){let n,r=null;const o=go(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),i();const u=e.getBoundingClientRect(),{left:l,top:f,width:d,height:h}=u;if(s||t(),!d||!h)return;const g={rootMargin:-Vr(f)+"px "+-Vr(o.clientWidth-(l+d))+"px "+-Vr(o.clientHeight-(f+h))+"px "+-Vr(l)+"px",threshold:Wr(0,Hr(1,c))||1};let p=!0;function v(t){const r=t[0].intersectionRatio;if(r!==c){if(!p)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||Jo(u,e.getBoundingClientRect())||a(),p=!1}try{r=new IntersectionObserver(v,{...g,root:o.ownerDocument})}catch(m){r=new IntersectionObserver(v,g)}r.observe(e)}(!0),i}(u,n):null;let d,h=-1,g=null;a&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&g&&t&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),u&&!c&&g.observe(u),t&&g.observe(t));let p=c?Wo(e):null;return c&&function t(){const r=Wo(e);p&&!Jo(p,r)&&n(),p=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;l.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=g)||e.disconnect(),g=null,c&&cancelAnimationFrame(d)}}(t,i.value,()=>async function(e,t,n,r){const o=[Qo(r.offsetOpts||6),ei(),Zo()];r.noArrow||o.push((e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:c}=t,{element:u,padding:l=0}=zr(e,t)||{};if(null==u)return{};const f=io(l),d={x:n,y:r},h=Qr(o),g=Kr(h),p=await a.getDimensions(u),v="y"===h,m=v?"top":"left",y=v?"bottom":"right",b=v?"clientHeight":"clientWidth",w=i.reference[g]+i.reference[h]-d[h]-i.floating[g],O=d[h]-i.reference[h],S=await(null==a.getOffsetParent?void 0:a.getOffsetParent(u));let D=S?S[b]:0;D&&await(null==a.isElement?void 0:a.isElement(S))||(D=s.floating[b]||i.floating[g]);const T=w/2-O/2,I=D/2-p[g]/2-1,E=Hr(f[m],I),x=Hr(f[y],I),C=E,P=D-p[g]-x,j=D/2-p[g]/2+T,R=qr(C,j,P),N=!c.arrow&&null!=Gr(o)&&j!==R&&i.reference[g]/2-(j<C?E:x)-p[g]/2<0,A=N?j<C?j-C:j-P:0;return{[h]:d[h]+A,data:{[h]:R,centerOffset:j-R-A,...N&&{alignmentOffset:A}},reset:N}}}))({element:n}));const i={placement:r.placement,strategy:"absolute",middleware:o};r.options&&Object.assign(i,r.options);const a=await((e,t,n)=>{const r=/* @__PURE__ */new Map,o={platform:Ko,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=a.detectOverflow?a:{...a,detectOverflow:co},c=await(null==a.isRTL?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:l,y:f}=so(u,r,c),d=r,h=0;const g={};for(let p=0;p<i.length;p++){const n=i[p];if(!n)continue;const{name:v,fn:m}=n,{x:y,y:b,data:w,reset:O}=await m({x:l,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:g,rects:u,platform:s,elements:{reference:e,floating:t}});l=null!=y?y:l,f=null!=b?b:f,g[v]={...g[v],...w},O&&h<50&&(h++,"object"==typeof O&&(O.placement&&(d=O.placement),O.rects&&(u=!0===O.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):O.rects),({x:l,y:f}=so(u,d,c))),p=-1)}return{x:l,y:f,placement:d,strategy:o,middlewareData:g}})(e,t,{...o,platform:i})})(e,t,i);{const{x:e,y:o,placement:i,middlewareData:s}=a,{style:c}=t;if(c.left=`${e}px`,c.top=`${o}px`,!r.noArrow){const{x:e,y:t}=s.arrow,r={top:"bottom",right:"left",bottom:"top",left:"right"}[i.split("-")[0]];Object.assign(n.style,{left:null!=e?`${e}px`:"",top:null!=t?`${t}px`:"",right:"",bottom:"",[r]:"-4px"})}}}(t,i.value,a.value,e.opts))},dismiss:g});const{getAntdLocale:v}=kr();return()=>{var o,c;const u=null===(o=(c=t.slots).default)||void 0===o?void 0:o.call(c);u&&u.length>0&&u[0].props&&(u[0].props.modal=h);const l=d("div",{class:[n.b(),n.is("show",r.value),e.opts.className],ref:i,style:s,onClick:e=>{e.stopPropagation()}},[!e.opts.noArrow&&d("div",{class:[n.e("arrow")],ref:a},null),u]);return!0===e.opts.autoClose?d("div",{class:[n.e("overlay")],onClick:()=>{!0===e.opts.autoClose&&g()}},[l]):d(V,{locale:v.value},{default:()=>{return[d(kn,{backend:Rr},(e=l,"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!w(e)?l:{default:()=>[l]}))];var e}})}}}),ni=/* @__PURE__ */h({name:"AppFullScreenContainer",props:{opts:{type:Object,default:()=>({})}},setup(e,t){const n=c("app-full-screen-container"),r=C(!1),i=C({});e.opts&&Object.assign(i.value,e.opts);let a=null;const s=new o({dismiss:e=>{r.value=!1,a=e,t.emit("dismiss",a)}});E("modal",s);const u=e=>s.dismiss(e);t.expose({present:()=>{r.value=!0},dismiss:u,ok:async()=>{if(s.ok){const e=await s.ok();e&&e.ok&&u(e)}else console.warn("打开模态未实现ok方法")},cancel:()=>s.cancel?s.cancel():u()});const{getAntdLocale:l}=kr();return()=>{var e,o;let a;const c=null===(e=(o=t.slots).default)||void 0===e?void 0:e.call(o);return c&&c.length>0&&c[0].props&&(c[0].props.modal=s),d(V,{locale:l.value},{default:()=>{return[d(kn,{backend:Rr},(e=a=v("div",{class:[n.b(),n.is("is-hidden",!0!==r.value),i.value.containerClass],...i.value},[c]),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!w(e)?a:{default:()=>[a]}))];var e}})}}});function ri(e){return U(e)?P(e):e}var oi=class{async modal(e,t,n){const r=this.createModal(e,t,n);return r.present(),r.onWillDismiss()}createModal(e,t,n){return function(e,t){return new i(Fr,e,t)}(H(e)?e:()=>v(ri(e),{...t}),n)}popover(e,t,n,r){const o=this.createPopover(t,n,r);return o.present(e),o.onWillDismiss()}createPopover(e,t,n){return function(e,t){return new a(ti,e,t)}(H(e)?e:()=>v(ri(e),{...t}),n)}fullScreen(e,t,n){const r=this.createFullScreen(e,t,n);return r.present(),r.onWillDismiss()}createFullScreen(e,t,n){return function(e,t){return new i(ni,e,t)}(H(e)?e:()=>v(ri(e),{...t}),n)}},ii=new oi,ai=(e,t)=>(e.install=n=>{const r=e.name||e.displayName||e.__name;r&&(n.component(r,e),t&&(n.config.globalProperties[t]=e))},e),si={VS:"vs",BLACK:"hc-black",DARK:"vs-dark"},ci={JS:"javascript",SQL:"sql",PWSH:"powershell",JAVA:"java",C_SHARP:"csharp",JSON:"json"},ui=class{constructor(){q(this,"value",void 0),q(this,"title",void 0),q(this,"language",void 0),q(this,"theme",void 0),q(this,"readonly",void 0)}},li=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};export{xe as C,he as D,de as E,q as O,Te as S,ue as T,Pe as _,ai as a,Ee as b,_r as c,lr as d,ir as f,Re as g,je as h,si as i,Lr as l,gt as m,ci as n,oi as o,pt as p,ui as r,ii as s,li as t,kr as u,Ce as v,fe as w,Oe as x,be as y};
@@ -1 +1 @@
1
- import{usePlatformConfigStore as e}from"@gct-paas/core";import{Fragment as l,computed as a,createBlock as o,createCommentVNode as n,createElementBlock as t,createElementVNode as i,createVNode as c,defineComponent as u,nextTick as r,normalizeClass as s,normalizeStyle as d,openBlock as v,ref as p,renderList as k,resolveComponent as _,toDisplayString as g,unref as m,vModelText as f,withCtx as y,withDirectives as h}from"vue";import{cloneDeep as C,debounce as b}from"lodash-es";import{IconNamespaceEnum as F,IconNext as x,useIconAsset as w,useIconPark as I,useIconPlatform as E}from"@gct-paas/core-components";import{Empty as S,Form as B}from"ant-design-vue";var A={class:"icon-picker-next"},V={class:"p-12px"},z={class:"flex icon-picker-next__container"},P={class:"icon-picker-next__cats"},j=["title","data-id","onClick"],D={class:"icon-picker-next__panel"},R={class:"icon-picker-next__icons"},U={class:"icon__list"},L=["title","data-id","onClick"],M={key:0,class:"color__setting"},N={class:"color__list"},T=["onClick"],q={class:"color__input"},G={key:1,class:"color__setting"},O={class:"color__list"},W=["onClick"],H={class:"color__input"},J={key:1,class:"flex items-center justify-center h-full"},K="#FFFFFF",Q=/* @__PURE__ */u({__name:"icon-next-picker",props:{value:{type:String,required:!0},disabled:{type:Boolean,default:!1},color:{type:String,default:"#FFFFFF"},size:{type:Number,default:30},showColor:{type:Boolean,default:!1},background:{type:String},showBackground:{type:Boolean,default:!1}},emits:["update:value","update:color","update:background"],setup(u,{emit:Q}){const{themeSetting:X}=e(),Y=u,Z=Q,{getIconAssetCats:$}=w(),{getIconParkCats:ee}=I(),{getIconPlatformCats:le}=E(),{onFieldChange:ae}=B.useInjectFormItemContext(),oe=p(),ne=p(),te=p(!1),ie=["#3370FF","#0DAA9C","#EF3232","#EFA332","#18C8D3","#A33FF2"],ce=[K,...ie],ue=["transparent",...ie],re=p(K),se=p(!1),de=p(K),ve=p(!1);let pe=[];const ke=p([]),_e=p([]),ge=p([]),me=p(""),fe=a(()=>_e.value.length>0&&!_e.value[0].id.startsWith(F.Asset)),ye=()=>{let e,l=ke.value[0]||{};var a;l&&(e=l.icons?l:null===(a=l.children)||void 0===a?void 0:a[0]),e?(ge.value=[e.id],_e.value=e.icons):(ge.value=[],_e.value=[])},he=async e=>{if(e){if(te.value=!0,pe.length>0)ke.value=pe;else{const e=ee(),l=await $(),a=le();pe=l.concat(e).concat(a),ke.value=pe}Y.color?ce.includes(Y.color)?(re.value=K,se.value=!1):(re.value=Y.color,se.value=!0):Z("update:color",K),Y.background?ue.includes(Y.background)?(de.value=K,ve.value=!1):(de.value=Y.background,ve.value=!0):Z("update:background","#3370FF"),(async()=>{if(Y.value){let a=ke.value.reduce((e,l)=>("children"in l?e.push(...l.children):e.push(l),e),[]).find(e=>e.icons.map(e=>e.id).includes(Y.value));var e,l;a?(ge.value=[a.id],_e.value=a.icons,await r(),null===(e=oe.value)||void 0===e||null===(e=e.getElement())||void 0===e||e.scrollIntoView({block:"center"}),null===(l=ne.value)||void 0===l||null===(l=l.getElement())||void 0===l||l.scrollIntoView({block:"center"})):ye()}else ye()})(),te.value=!1}else me.value=""};function Ce(e,l){return e.map(e=>{const a=["children","icons"].find(l=>!!e[l]);return a?(e[a]=Ce(e[a],l),e[a].length>0?e:void 0):e._filter_.some(e=>e.includes(l))?e:void 0}).filter(Boolean)}const be=b(e=>{var l;te.value=!0;const a=null===(l=e.target.value)||void 0===l?void 0:l.trim();ke.value=a?Ce(C(pe),a):pe,ye(),te.value=!1},500),Fe=(e,l=!1)=>{se.value=l,Z("update:color",e),ae()},xe=()=>{se.value&&(Z("update:color",re.value),ae())},we=(e,l=!1)=>{ve.value=l,Z("update:background",e),ae()},Ie=()=>{ve.value&&(Z("update:background",de.value),ae())};return(e,a)=>{const r=_("a-input"),p=_("a-tree"),C=_("overlayScrollbarsComponent"),b=_("CheckOutlined"),F=_("a-empty"),w=_("a-spin"),I=_("a-popover");return v(),t("div",A,[c(I,{placement:"bottomLeft",trigger:"click","overlay-class-name":"icon-picker-next__popover",onVisibleChange:he},{content:y(()=>[i("div",V,[c(r,{value:me.value,"onUpdate:value":a[0]||(a[0]=e=>me.value=e),class:"icon-picker-next__search",placeholder:"搜索图标","allow-clear":"",onChange:a[1]||(a[1]=e=>{te.value=!0,m(be)(e)})},{prefix:y(()=>[...a[6]||(a[6]=[i("i",{class:"iconfont icon-sousuo1"},null,-1)])]),_:1},8,["value"])]),c(w,{spinning:te.value},{default:y(()=>{var e;return[i("div",z,[i("div",P,[c(C,{ref_key:"TreeScrollRef",ref:oe},{default:y(()=>[ke.value.length>0?(v(),o(p,{key:0,"selected-keys":ge.value,"default-expand-all":"","block-node":"","field-names":{children:"children",title:"name",key:"id"},"tree-data":ke.value},{title:y(({data:e})=>[i("div",{class:"ell",title:e.name,"data-id":e.id,onClick:l=>(e=>{(null==e?void 0:e.children)&&(null==e?void 0:e.children.length)||(_e.value=e.icons??[],ge.value=[e.id])})(e)},g(e.name),9,j)]),_:1},8,["selected-keys","tree-data"])):n("",!0)]),_:1},512)]),i("div",D,[(null===(e=_e.value)||void 0===e?void 0:e.length)>0?(v(),t(l,{key:0},[i("div",R,[c(C,{ref_key:"IconsScrollRef",ref:ne},{default:y(()=>[i("ul",U,[(v(!0),t(l,null,k(_e.value,e=>(v(),t("li",{key:e.name,style:d({"--background":u.background||m(X).themeColor}),class:s({"icon-picker-next--selected":e.id===u.value}),title:e.name,"data-id":e.id,onClick:l=>function(e){Z("update:value",e),ae()}(e.id)},[c(m(x),{value:e.id,color:e.id===u.value?u.color:K},null,8,["value","color"])],14,L))),128))])]),_:1},512)]),u.showBackground?(v(),t("div",M,[a[7]||(a[7]=i("div",{class:"color__title"},"背景颜色",-1)),i("div",N,[(v(),t(l,null,k(ue,e=>i("span",{key:e,class:s(["color__item","color__item--"+e]),style:d({backgroundColor:e}),onClick:()=>we(e)},[u.background===e?(v(),o(b,{key:0})):n("",!0)],14,T)),64))]),i("div",q,[i("div",{class:"color__preview",style:d({"--custom-bg":de.value}),onClick:a[2]||(a[2]=()=>we(de.value,!0))},[ve.value?(v(),o(b,{key:0})):n("",!0)],4),h(i("input",{"onUpdate:modelValue":a[3]||(a[3]=e=>de.value=e),type:"text",onBlur:Ie},null,544),[[f,de.value]])])])):n("",!0),u.showColor&&fe.value?(v(),t("div",G,[a[8]||(a[8]=i("div",{class:"color__title"},"图标色",-1)),i("div",O,[(v(),t(l,null,k(ce,e=>i("span",{key:e,class:"color__item",style:d({backgroundColor:e}),onClick:()=>Fe(e)},[u.color===e?(v(),o(b,{key:0})):n("",!0)],12,W)),64))]),i("div",H,[i("div",{class:"color__preview",style:d({"--custom-bg":re.value}),onClick:a[4]||(a[4]=()=>Fe(re.value,!0))},[se.value?(v(),o(b,{key:0})):n("",!0)],4),h(i("input",{"onUpdate:modelValue":a[5]||(a[5]=e=>re.value=e),type:"text",onBlur:xe},null,544),[[f,re.value]])])])):n("",!0)],64)):(v(),t("div",J,[c(F,{image:m(S).PRESENTED_IMAGE_SIMPLE,description:null},null,8,["image"])]))])])]}),_:1},8,["spinning"])]),default:y(()=>[i("div",{class:s(["icon-picker-next__trigger cursor-pointer",{"icon-picker-next--selected":u.value}]),style:d({"--background":u.background||m(X).themeColor})},[u.value?(v(),o(m(x),{key:0,value:u.value,size:u.size,color:u.color},null,8,["value","size","color"])):n("",!0),a[9]||(a[9]=i("div",null,[i("i",{class:"iconfont icon-bianji"})],-1))],6)]),_:1})])}}});export{Q as default};
1
+ import{usePlatformConfigStore as e}from"@gct-paas/core";import{Fragment as l,computed as a,createBlock as o,createCommentVNode as n,createElementBlock as t,createElementVNode as i,createVNode as c,defineComponent as u,nextTick as r,normalizeClass as s,normalizeStyle as d,openBlock as v,ref as p,renderList as k,resolveComponent as _,toDisplayString as g,unref as m,vModelText as f,withCtx as y,withDirectives as h}from"vue";import{cloneDeep as C,debounce as b}from"lodash-es";import{Empty as F,Form as x}from"ant-design-vue";import{IconNamespaceEnum as w,IconNext as I,useIconAsset as E,useIconPark as S,useIconPlatform as B}from"@gct-paas/core-components";var A={class:"icon-picker-next"},V={class:"p-12px"},z={class:"flex icon-picker-next__container"},P={class:"icon-picker-next__cats"},j=["title","data-id","onClick"],D={class:"icon-picker-next__panel"},R={class:"icon-picker-next__icons"},U={class:"icon__list"},L=["title","data-id","onClick"],M={key:0,class:"color__setting"},N={class:"color__list"},T=["onClick"],q={class:"color__input"},G={key:1,class:"color__setting"},O={class:"color__list"},W=["onClick"],H={class:"color__input"},J={key:1,class:"flex items-center justify-center h-full"},K="#FFFFFF",Q=/* @__PURE__ */u({__name:"icon-next-picker",props:{value:{type:String,required:!0},disabled:{type:Boolean,default:!1},color:{type:String,default:"#FFFFFF"},size:{type:Number,default:30},showColor:{type:Boolean,default:!1},background:{type:String},showBackground:{type:Boolean,default:!1}},emits:["update:value","update:color","update:background"],setup(u,{emit:Q}){const{themeSetting:X}=e(),Y=u,Z=Q,{getIconAssetCats:$}=E(),{getIconParkCats:ee}=S(),{getIconPlatformCats:le}=B(),{onFieldChange:ae}=x.useInjectFormItemContext(),oe=p(),ne=p(),te=p(!1),ie=["#3370FF","#0DAA9C","#EF3232","#EFA332","#18C8D3","#A33FF2"],ce=[K,...ie],ue=["transparent",...ie],re=p(K),se=p(!1),de=p(K),ve=p(!1);let pe=[];const ke=p([]),_e=p([]),ge=p([]),me=p(""),fe=a(()=>_e.value.length>0&&!_e.value[0].id.startsWith(w.Asset)),ye=()=>{let e,l=ke.value[0]||{};var a;l&&(e=l.icons?l:null===(a=l.children)||void 0===a?void 0:a[0]),e?(ge.value=[e.id],_e.value=e.icons):(ge.value=[],_e.value=[])},he=async e=>{if(e){if(te.value=!0,pe.length>0)ke.value=pe;else{const e=ee(),l=await $(),a=le();pe=l.concat(e).concat(a),ke.value=pe}Y.color?ce.includes(Y.color)?(re.value=K,se.value=!1):(re.value=Y.color,se.value=!0):Z("update:color",K),Y.background?ue.includes(Y.background)?(de.value=K,ve.value=!1):(de.value=Y.background,ve.value=!0):Z("update:background","#3370FF"),(async()=>{if(Y.value){let a=ke.value.reduce((e,l)=>("children"in l?e.push(...l.children):e.push(l),e),[]).find(e=>e.icons.map(e=>e.id).includes(Y.value));var e,l;a?(ge.value=[a.id],_e.value=a.icons,await r(),null===(e=oe.value)||void 0===e||null===(e=e.getElement())||void 0===e||e.scrollIntoView({block:"center"}),null===(l=ne.value)||void 0===l||null===(l=l.getElement())||void 0===l||l.scrollIntoView({block:"center"})):ye()}else ye()})(),te.value=!1}else me.value=""};function Ce(e,l){return e.map(e=>{const a=["children","icons"].find(l=>!!e[l]);return a?(e[a]=Ce(e[a],l),e[a].length>0?e:void 0):e._filter_.some(e=>e.includes(l))?e:void 0}).filter(Boolean)}const be=b(e=>{var l;te.value=!0;const a=null===(l=e.target.value)||void 0===l?void 0:l.trim();ke.value=a?Ce(C(pe),a):pe,ye(),te.value=!1},500),Fe=(e,l=!1)=>{se.value=l,Z("update:color",e),ae()},xe=()=>{se.value&&(Z("update:color",re.value),ae())},we=(e,l=!1)=>{ve.value=l,Z("update:background",e),ae()},Ie=()=>{ve.value&&(Z("update:background",de.value),ae())};return(e,a)=>{const r=_("a-input"),p=_("a-tree"),C=_("overlayScrollbarsComponent"),b=_("CheckOutlined"),x=_("a-empty"),w=_("a-spin"),E=_("a-popover");return v(),t("div",A,[c(E,{placement:"bottomLeft",trigger:"click","overlay-class-name":"icon-picker-next__popover",onVisibleChange:he},{content:y(()=>[i("div",V,[c(r,{value:me.value,"onUpdate:value":a[0]||(a[0]=e=>me.value=e),class:"icon-picker-next__search",placeholder:"搜索图标","allow-clear":"",onChange:a[1]||(a[1]=e=>{te.value=!0,m(be)(e)})},{prefix:y(()=>[...a[6]||(a[6]=[i("i",{class:"iconfont icon-sousuo1"},null,-1)])]),_:1},8,["value"])]),c(w,{spinning:te.value},{default:y(()=>{var e;return[i("div",z,[i("div",P,[c(C,{ref_key:"TreeScrollRef",ref:oe},{default:y(()=>[ke.value.length>0?(v(),o(p,{key:0,"selected-keys":ge.value,"default-expand-all":"","block-node":"","field-names":{children:"children",title:"name",key:"id"},"tree-data":ke.value},{title:y(({data:e})=>[i("div",{class:"ell",title:e.name,"data-id":e.id,onClick:l=>(e=>{(null==e?void 0:e.children)&&(null==e?void 0:e.children.length)||(_e.value=e.icons??[],ge.value=[e.id])})(e)},g(e.name),9,j)]),_:1},8,["selected-keys","tree-data"])):n("",!0)]),_:1},512)]),i("div",D,[(null===(e=_e.value)||void 0===e?void 0:e.length)>0?(v(),t(l,{key:0},[i("div",R,[c(C,{ref_key:"IconsScrollRef",ref:ne},{default:y(()=>[i("ul",U,[(v(!0),t(l,null,k(_e.value,e=>(v(),t("li",{key:e.name,style:d({"--background":u.background||m(X).themeColor}),class:s({"icon-picker-next--selected":e.id===u.value}),title:e.name,"data-id":e.id,onClick:l=>function(e){Z("update:value",e),ae()}(e.id)},[c(m(I),{value:e.id,color:e.id===u.value?u.color:K},null,8,["value","color"])],14,L))),128))])]),_:1},512)]),u.showBackground?(v(),t("div",M,[a[7]||(a[7]=i("div",{class:"color__title"},"背景颜色",-1)),i("div",N,[(v(),t(l,null,k(ue,e=>i("span",{key:e,class:s(["color__item","color__item--"+e]),style:d({backgroundColor:e}),onClick:()=>we(e)},[u.background===e?(v(),o(b,{key:0})):n("",!0)],14,T)),64))]),i("div",q,[i("div",{class:"color__preview",style:d({"--custom-bg":de.value}),onClick:a[2]||(a[2]=()=>we(de.value,!0))},[ve.value?(v(),o(b,{key:0})):n("",!0)],4),h(i("input",{"onUpdate:modelValue":a[3]||(a[3]=e=>de.value=e),type:"text",onBlur:Ie},null,544),[[f,de.value]])])])):n("",!0),u.showColor&&fe.value?(v(),t("div",G,[a[8]||(a[8]=i("div",{class:"color__title"},"图标色",-1)),i("div",O,[(v(),t(l,null,k(ce,e=>i("span",{key:e,class:"color__item",style:d({backgroundColor:e}),onClick:()=>Fe(e)},[u.color===e?(v(),o(b,{key:0})):n("",!0)],12,W)),64))]),i("div",H,[i("div",{class:"color__preview",style:d({"--custom-bg":re.value}),onClick:a[4]||(a[4]=()=>Fe(re.value,!0))},[se.value?(v(),o(b,{key:0})):n("",!0)],4),h(i("input",{"onUpdate:modelValue":a[5]||(a[5]=e=>re.value=e),type:"text",onBlur:xe},null,544),[[f,re.value]])])])):n("",!0)],64)):(v(),t("div",J,[c(x,{image:m(F).PRESENTED_IMAGE_SIMPLE,description:null},null,8,["image"])]))])])]}),_:1},8,["spinning"])]),default:y(()=>[i("div",{class:s(["icon-picker-next__trigger cursor-pointer",{"icon-picker-next--selected":u.value}]),style:d({"--background":u.background||m(X).themeColor})},[u.value?(v(),o(m(I),{key:0,value:u.value,size:u.size,color:u.color},null,8,["value","size","color"])):n("",!0),a[9]||(a[9]=i("div",null,[i("i",{class:"iconfont icon-bianji"})],-1))],6)]),_:1})])}}});export{Q as default};