xt-element-ui 2.2.3 → 2.2.4

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 (116) hide show
  1. package/README.md +140 -192
  2. package/docs/README.md +162 -88
  3. package/docs/components/base/theme.md +248 -0
  4. package/docs/components/base/xt-list.md +1 -1
  5. package/docs/components/base/xt-scroll-arrow.md +87 -1
  6. package/docs/components/base/xt-scroll.md +237 -0
  7. package/docs/components/utils/config.md +18 -4
  8. package/docs/components/utils/theme.md +280 -183
  9. package/lib/index.common.1.js +4 -26
  10. package/lib/index.common.2.js +1 -1
  11. package/lib/index.common.js +1871 -671
  12. package/lib/index.css +1 -1
  13. package/lib/index.umd.1.js +4 -26
  14. package/lib/index.umd.2.js +1 -1
  15. package/lib/index.umd.js +1871 -671
  16. package/lib/index.umd.min.1.js +1 -1
  17. package/lib/index.umd.min.js +1 -1
  18. package/lib/theme/element-overrides.css +607 -0
  19. package/lib/theme/element-vars.css +280 -0
  20. package/lib/xt-badge/xt-badge.common.js +1 -1
  21. package/lib/xt-badge/xt-badge.umd.js +1 -1
  22. package/lib/xt-button/xt-button.common.js +1 -1
  23. package/lib/xt-button/xt-button.umd.js +1 -1
  24. package/lib/xt-card/xt-card.common.js +1 -1
  25. package/lib/xt-card/xt-card.umd.js +1 -1
  26. package/lib/xt-card-item/xt-card-item.common.js +1 -1
  27. package/lib/xt-card-item/xt-card-item.umd.js +1 -1
  28. package/lib/xt-chart/xt-chart.common.js +5 -5
  29. package/lib/xt-chart/xt-chart.umd.js +5 -5
  30. package/lib/xt-config-provider/xt-config-provider.css +1 -1
  31. package/lib/xt-date-picker/xt-date-picker.common.1.js +4 -26
  32. package/lib/xt-date-picker/xt-date-picker.common.2.js +1 -1
  33. package/lib/xt-date-picker/xt-date-picker.common.js +1 -47
  34. package/lib/xt-date-picker/xt-date-picker.css +1 -1
  35. package/lib/xt-date-picker/xt-date-picker.umd.1.js +4 -26
  36. package/lib/xt-date-picker/xt-date-picker.umd.2.js +1 -1
  37. package/lib/xt-date-picker/xt-date-picker.umd.js +1 -47
  38. package/lib/xt-date-picker/xt-date-picker.umd.min.1.js +1 -1
  39. package/lib/xt-date-picker/xt-date-picker.umd.min.js +1 -1
  40. package/lib/xt-flex-box/xt-flex-box.common.js +1 -1
  41. package/lib/xt-flex-box/xt-flex-box.umd.js +1 -1
  42. package/lib/xt-flow/xt-flow.common.js +1 -1
  43. package/lib/xt-flow/xt-flow.umd.js +1 -1
  44. package/lib/xt-form-schema/xt-form-schema.common.js +1 -1
  45. package/lib/xt-form-schema/xt-form-schema.umd.js +1 -1
  46. package/lib/xt-grid-box/xt-grid-box.common.js +1 -1
  47. package/lib/xt-grid-box/xt-grid-box.umd.js +1 -1
  48. package/lib/xt-grid-item/xt-grid-item.common.js +1 -1
  49. package/lib/xt-grid-item/xt-grid-item.umd.js +1 -1
  50. package/lib/xt-icon/xt-icon.common.js +1 -1
  51. package/lib/xt-icon/xt-icon.umd.js +1 -1
  52. package/lib/xt-input/xt-input.common.js +1 -1
  53. package/lib/xt-input/xt-input.umd.js +1 -1
  54. package/lib/xt-list/xt-list.common.js +457 -118
  55. package/lib/xt-list/xt-list.css +1 -1
  56. package/lib/xt-list/xt-list.umd.js +457 -118
  57. package/lib/xt-list/xt-list.umd.min.js +1 -1
  58. package/lib/xt-map/xt-map.common.js +1 -1
  59. package/lib/xt-map/xt-map.umd.js +1 -1
  60. package/lib/xt-map-provider/xt-map-provider.common.js +1 -1
  61. package/lib/xt-map-provider/xt-map-provider.umd.js +1 -1
  62. package/lib/xt-page/xt-page.common.js +1 -1
  63. package/lib/xt-page/xt-page.umd.js +1 -1
  64. package/lib/xt-progress/xt-progress.common.js +1 -1
  65. package/lib/xt-progress/xt-progress.umd.js +1 -1
  66. package/lib/xt-scroll/demo.html +10 -0
  67. package/lib/xt-scroll/index.js +1 -0
  68. package/lib/xt-scroll/xt-scroll.common.js +551 -0
  69. package/lib/xt-scroll/xt-scroll.css +1 -0
  70. package/lib/xt-scroll/xt-scroll.umd.js +561 -0
  71. package/lib/xt-scroll/xt-scroll.umd.min.js +1 -0
  72. package/lib/xt-scroll-arrow/xt-scroll-arrow.common.js +591 -170
  73. package/lib/xt-scroll-arrow/xt-scroll-arrow.css +1 -1
  74. package/lib/xt-scroll-arrow/xt-scroll-arrow.umd.js +591 -170
  75. package/lib/xt-scroll-arrow/xt-scroll-arrow.umd.min.js +1 -1
  76. package/lib/xt-select-tree/xt-select-tree.common.js +1 -1
  77. package/lib/xt-select-tree/xt-select-tree.umd.js +1 -1
  78. package/lib/xt-step-price/xt-step-price.common.js +2 -2
  79. package/lib/xt-step-price/xt-step-price.umd.js +2 -2
  80. package/lib/xt-step-price-item/xt-step-price-item.common.js +1 -1
  81. package/lib/xt-step-price-item/xt-step-price-item.umd.js +1 -1
  82. package/lib/xt-tab-pane/xt-tab-pane.common.js +1 -1
  83. package/lib/xt-tab-pane/xt-tab-pane.umd.js +1 -1
  84. package/lib/xt-table/xt-table.common.js +2 -2
  85. package/lib/xt-table/xt-table.umd.js +2 -2
  86. package/lib/xt-tabs/xt-tabs.common.js +1 -1
  87. package/lib/xt-tabs/xt-tabs.umd.js +1 -1
  88. package/lib/xt-text/xt-text.common.js +1 -1
  89. package/lib/xt-text/xt-text.umd.js +1 -1
  90. package/lib/xt-time/xt-time.common.js +1 -1
  91. package/lib/xt-time/xt-time.umd.js +1 -1
  92. package/lib/xt-transfer-tree/xt-transfer-tree.common.js +1 -1
  93. package/lib/xt-transfer-tree/xt-transfer-tree.umd.js +1 -1
  94. package/lib/xt-upload/xt-upload.common.js +2 -2
  95. package/lib/xt-upload/xt-upload.umd.js +2 -2
  96. package/package.json +5 -3
  97. package/src/components/index.scss +3 -0
  98. package/src/components/theme/element-overrides.css +607 -0
  99. package/src/components/theme/element-vars.css +280 -0
  100. package/src/components/theme/iframe-injector.js +502 -0
  101. package/src/components/theme/index.js +64 -0
  102. package/src/components/xt-config-provider/style/index.scss +0 -11
  103. package/src/components/xt-date-picker/component/RangeDate.vue +1 -29
  104. package/src/components/xt-date-picker/style/index.scss +80 -53
  105. package/src/components/xt-list/index.vue +23 -12
  106. package/src/components/xt-scroll/index.js +9 -0
  107. package/src/components/xt-scroll/index.vue +363 -0
  108. package/src/components/xt-scroll/style/index.scss +107 -0
  109. package/src/components/xt-scroll-arrow/index.vue +200 -83
  110. package/src/components/xt-scroll-arrow/style/index.scss +16 -5
  111. package/src/index.js +9 -2
  112. package/src/utils/color.js +105 -0
  113. package/src/utils/index.js +456 -468
  114. package/src/utils/theme-vars.js +134 -0
  115. package/lib/css/1.87a493be.css +0 -1
  116. package/lib/xt-date-picker/css/1.87a493be.css +0 -1
@@ -1 +1 @@
1
- (function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(function(){try{return require("echarts")}catch(e){}}(),require("vue")):"function"===typeof define&&define.amd?define(["echarts","vue"],t):"object"===typeof exports?exports["index"]=t(function(){try{return require("echarts")}catch(e){}}(),require("vue")):e["index"]=t(e["echarts"],e["Vue"])})("undefined"!==typeof self?self:this,(function(e,t){return function(e){function t(t){for(var i,s,a=t[0],n=t[1],l=0,o=[];l<a.length;l++)s=a[l],Object.prototype.hasOwnProperty.call(r,s)&&r[s]&&o.push(r[s][0]),r[s]=0;for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);h&&h(t);while(o.length)o.shift()()}var i={},s={0:0},r={0:0};function a(e){return n.p+"index.umd.min."+({}[e]||e)+".js"}function n(t){if(i[t])return i[t].exports;var s=i[t]={i:t,l:!1,exports:{}};return e[t].call(s.exports,s,s.exports,n),s.l=!0,s.exports}n.e=function(e){var t=[],i={1:1};s[e]?t.push(s[e]):0!==s[e]&&i[e]&&t.push(s[e]=new Promise((function(t,i){for(var r="css/"+({}[e]||e)+"."+{1:"87a493be",2:"31d6cfe0"}[e]+".css",a=n.p+r,l=document.getElementsByTagName("link"),o=0;o<l.length;o++){var c=l[o],h=c.getAttribute("data-href")||c.getAttribute("href");if("stylesheet"===c.rel&&(h===r||h===a))return t()}var d=document.getElementsByTagName("style");for(o=0;o<d.length;o++){c=d[o],h=c.getAttribute("data-href");if(h===r||h===a)return t()}var u=document.createElement("link");u.rel="stylesheet",u.type="text/css",u.onload=t,u.onerror=function(t){var r=t&&t.target&&t.target.src||a,n=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");n.code="CSS_CHUNK_LOAD_FAILED",n.request=r,delete s[e],u.parentNode.removeChild(u),i(n)},u.href=a;var p=document.getElementsByTagName("head")[0];p.appendChild(u)})).then((function(){s[e]=0})));var l=r[e];if(0!==l)if(l)t.push(l[2]);else{var o=new Promise((function(t,i){l=r[e]=[t,i]}));t.push(l[2]=o);var c,h=document.createElement("script");h.charset="utf-8",h.timeout=120,n.nc&&h.setAttribute("nonce",n.nc),h.src=a(e);var d=new Error;c=function(t){h.onerror=h.onload=null,clearTimeout(u);var i=r[e];if(0!==i){if(i){var s=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;d.message="Loading chunk "+e+" failed.\n("+s+": "+a+")",d.name="ChunkLoadError",d.type=s,d.request=a,i[1](d)}r[e]=void 0}};var u=setTimeout((function(){c({type:"timeout",target:h})}),12e4);h.onerror=h.onload=c,document.head.appendChild(h)}return Promise.all(t)},n.m=e,n.c=i,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)n.d(i,s,function(t){return e[t]}.bind(null,s));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n.oe=function(e){throw console.error(e),e};var l=("undefined"!==typeof self?self:this)["webpackJsonpindex"]=("undefined"!==typeof self?self:this)["webpackJsonpindex"]||[],o=l.push.bind(l);l.push=t,l=l.slice();for(var c=0;c<l.length;c++)t(l[c]);var h=o;return n(n.s="fb15")}({"0461":function(e,t,i){},"04c6":function(e,t,i){"use strict";i("8596")},"0563":function(e,t,i){},"0ba2":function(e,t,i){},"0ba5":function(e,t,i){},"0e15":function(e,t,i){var s=i("597f");e.exports=function(e,t,i){return void 0===i?s(e,t,!1):s(e,i,!1!==t)}},"164e":function(t,i){if("undefined"===typeof e){var s=new Error("Cannot find module 'undefined'");throw s.code="MODULE_NOT_FOUND",s}t.exports=e},"176d":function(e,t,i){},"17b4":function(e,t,i){},"1a07":function(e,t,i){},"1f11":function(e,t,i){},2474:function(e,t,i){},"26be":function(e,t,i){"use strict";i("0ba2")},2877:function(e,t,i){"use strict";function s(e,t,i,s,r,a,n,l){var o,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=i,c._compiled=!0),s&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),n?(o=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(n)},c._ssrRegister=o):r&&(o=l?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),o)if(c.functional){c._injectStyles=o;var h=c.render;c.render=function(e,t){return o.call(t),h(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,o):[o]}return{exports:e,options:c}}i.d(t,"a",(function(){return s}))},"2c86":function(e,t,i){"use strict";i("6d33")},"2e12":function(e,t,i){},"3cef":function(e,t,i){"use strict";i("69c5")},4010:function(e,t,i){"use strict";t.__esModule=!0,t.removeResizeListener=t.addResizeListener=void 0;var s=i("6dd8"),r=n(s),a=i("9619");function n(e){return e&&e.__esModule?e:{default:e}}var l="undefined"===typeof window,o=function(e){var t=e,i=Array.isArray(t),s=0;for(t=i?t:t[Symbol.iterator]();;){var r;if(i){if(s>=t.length)break;r=t[s++]}else{if(s=t.next(),s.done)break;r=s.value}var a=r,n=a.target.__resizeListeners__||[];n.length&&n.forEach((function(e){e()}))}};t.addResizeListener=function(e,t){l||(e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new r.default((0,a.debounce)(16,o)),e.__ro__.observe(e)),e.__resizeListeners__.push(t))},t.removeResizeListener=function(e,t){e&&e.__resizeListeners__&&(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||e.__ro__.disconnect())}},"419e":function(e,t,i){},4202:function(e,t,i){},"439a":function(e,t,i){"use strict";i("1a07")},"4e56":function(e,t,i){},5820:function(e,t,i){},"588c":function(e,t,i){},"597f":function(e,t){e.exports=function(e,t,i,s){var r,a=0;function n(){var n=this,l=Number(new Date)-a,o=arguments;function c(){a=Number(new Date),i.apply(n,o)}function h(){r=void 0}s&&!r&&c(),r&&clearTimeout(r),void 0===s&&l>e?c():!0!==t&&(r=setTimeout(s?h:c,void 0===s?e-l:e))}return"boolean"!==typeof t&&(s=i,i=t,t=void 0),n}},"69c5":function(e,t,i){},"6b14":function(e,t,i){"use strict";i("176d")},"6c9e":function(e,t,i){},"6d33":function(e,t,i){},"6dd8":function(e,t,i){"use strict";i.r(t),function(e){var i=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var i=-1;return e.some((function(e,s){return e[0]===t&&(i=s,!0)})),i}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var i=e(this.__entries__,t),s=this.__entries__[i];return s&&s[1]},t.prototype.set=function(t,i){var s=e(this.__entries__,t);~s?this.__entries__[s][1]=i:this.__entries__.push([t,i])},t.prototype.delete=function(t){var i=this.__entries__,s=e(i,t);~s&&i.splice(s,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var i=0,s=this.__entries__;i<s.length;i++){var r=s[i];e.call(t,r[1],r[0])}},t}()}(),s="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,r=function(){return"undefined"!==typeof e&&e.Math===Math?e:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")()}(),a=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(r):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)}}(),n=2;function l(e,t){var i=!1,s=!1,r=0;function l(){i&&(i=!1,e()),s&&c()}function o(){a(l)}function c(){var e=Date.now();if(i){if(e-r<n)return;s=!0}else i=!0,s=!1,setTimeout(o,t);r=e}return c}var o=20,c=["top","right","bottom","left","width","height","size","weight"],h="undefined"!==typeof MutationObserver,d=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=l(this.refresh.bind(this),o)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,i=t.indexOf(e);~i&&t.splice(i,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){s&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),h?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){s&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,i=void 0===t?"":t,s=c.some((function(e){return!!~i.indexOf(e)}));s&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),u=function(e,t){for(var i=0,s=Object.keys(t);i<s.length;i++){var r=s[i];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},p=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||r},f=S(0,0,0,0);function m(e){return parseFloat(e)||0}function y(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];return t.reduce((function(t,i){var s=e["border-"+i+"-width"];return t+m(s)}),0)}function g(e){for(var t=["top","right","bottom","left"],i={},s=0,r=t;s<r.length;s++){var a=r[s],n=e["padding-"+a];i[a]=m(n)}return i}function b(e){var t=e.getBBox();return S(0,0,t.width,t.height)}function v(e){var t=e.clientWidth,i=e.clientHeight;if(!t&&!i)return f;var s=p(e).getComputedStyle(e),r=g(s),a=r.left+r.right,n=r.top+r.bottom,l=m(s.width),o=m(s.height);if("border-box"===s.boxSizing&&(Math.round(l+a)!==t&&(l-=y(s,"left","right")+a),Math.round(o+n)!==i&&(o-=y(s,"top","bottom")+n)),!x(e)){var c=Math.round(l+a)-t,h=Math.round(o+n)-i;1!==Math.abs(c)&&(l-=c),1!==Math.abs(h)&&(o-=h)}return S(r.left,r.top,l,o)}var _=function(){return"undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof p(e).SVGGraphicsElement}:function(e){return e instanceof p(e).SVGElement&&"function"===typeof e.getBBox}}();function x(e){return e===p(e).document.documentElement}function w(e){return s?_(e)?b(e):v(e):f}function C(e){var t=e.x,i=e.y,s=e.width,r=e.height,a="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,n=Object.create(a.prototype);return u(n,{x:t,y:i,width:s,height:r,top:i,right:t+s,bottom:r+i,left:t}),n}function S(e,t,i,s){return{x:e,y:t,width:i,height:s}}var T=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=S(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=w(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),k=function(){function e(e,t){var i=C(t);u(this,{target:e,contentRect:i})}return e}(),M=function(){function e(e,t,s){if(this.activeObservations_=[],this.observations_=new i,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=s}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new T(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new k(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),z="undefined"!==typeof WeakMap?new WeakMap:new i,$=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=d.getInstance(),s=new M(t,i,this);z.set(this,s)}return e}();["observe","unobserve","disconnect"].forEach((function(e){$.prototype[e]=function(){var t;return(t=z.get(this))[e].apply(t,arguments)}}));var L=function(){return"undefined"!==typeof r.ResizeObserver?r.ResizeObserver:$}();t["default"]=L}.call(this,i("c8ba"))},"72fa":function(e,t,i){},"732a":function(e,t,i){"use strict";i("e895")},"76cb":function(e,t,i){},8596:function(e,t,i){},"86ae":function(e,t,i){},"8bbf":function(e,i){e.exports=t},"916e":function(e,t,i){"use strict";i("17b4")},9619:function(e,t,i){var s=i("597f"),r=i("0e15");e.exports={throttle:s,debounce:r}},9940:function(e,t,i){"use strict";i("f3c2")},"9c79":function(e,t,i){},a075:function(e,t,i){"use strict";i("588c")},a148:function(e,t,i){"use strict";i("9c79")},ad4d:function(e,t,i){e.exports={xtColorPrimary:"#1890ff",xtColorSuccess:"#37c3a4",xtColorWarning:"#FFB74D",xtColorDanger:"#EA1D34",xtColorInfo:"#999999"}},afef:function(e,t,i){},b574:function(e,t,i){"use strict";i("0461")},b8f0:function(e,t,i){},bf3f:function(e,t,i){},c1e7:function(e,t,i){},c32d:function(e,t,i){"use strict";i("afef")},c74a:function(e,t,i){},c759:function(e,t,i){},c828:function(e,t,i){},c8ba:function(e,t){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(s){"object"===typeof window&&(i=window)}e.exports=i},ceb9:function(e,t,i){"use strict";i("b8f0")},cf38:function(e,t,i){"use strict";i("c74a")},d010:function(e,t,i){"use strict";function s(e,t,i){this.$children.forEach((function(r){var a=r.$options.componentName;a===e?r.$emit.apply(r,[t].concat(i)):s.apply(r,[e,t].concat([i]))}))}t.__esModule=!0,t.default={methods:{dispatch:function(e,t,i){var s=this.$parent||this.$root,r=s.$options.componentName;while(s&&(!r||r!==e))s=s.$parent,s&&(r=s.$options.componentName);s&&s.$emit.apply(s,[t].concat(i))},broadcast:function(e,t,i){s.call(this,e,t,i)}}}},d0a8:function(e,t,i){},d2eb:function(e,t,i){"use strict";i("d0a8")},d67a:function(e,t,i){},e895:function(e,t,i){},e8d2:function(e,t,i){},ee05:function(e,t,i){"use strict";i("76cb")},f3c2:function(e,t,i){},fb15:function(e,t,i){"use strict";if(i.r(t),i.d(t,"utils",(function(){return Ga})),i.d(t,"getConfig",(function(){return Ja})),i.d(t,"setConfig",(function(){return Qa})),i.d(t,"getTheme",(function(){return en})),i.d(t,"getSize",(function(){return tn})),i.d(t,"getPrimaryColor",(function(){return sn})),i.d(t,"resetConfig",(function(){return rn})),i.d(t,"onConfigChange",(function(){return an})),i.d(t,"setTheme",(function(){return nn})),i.d(t,"setSize",(function(){return ln})),i.d(t,"setPrimaryColor",(function(){return on})),i.d(t,"XtButton",(function(){return ee})),i.d(t,"XtInput",(function(){return le})),i.d(t,"XtFlexBox",(function(){return fe})),i.d(t,"XtCard",(function(){return xe})),i.d(t,"XtCardItem",(function(){return ze})),i.d(t,"XtConfigProvider",(function(){return Pe})),i.d(t,"XtText",(function(){return He})),i.d(t,"XtTime",(function(){return et})),i.d(t,"XtStepPrice",(function(){return pt})),i.d(t,"XtStepPriceItem",(function(){return ft})),i.d(t,"XtMap",(function(){return di})),i.d(t,"XtMapProvider",(function(){return bi})),i.d(t,"XtGridBox",(function(){return Ti})),i.d(t,"XtGridItem",(function(){return Ai})),i.d(t,"XtProgress",(function(){return Ri})),i.d(t,"XtTabs",(function(){return Qi})),i.d(t,"XtBadge",(function(){return ns})),i.d(t,"XtDatePicker",(function(){return gs})),i.d(t,"XtIcon",(function(){return ar})),i.d(t,"XtTable",(function(){return wr})),i.d(t,"XtList",(function(){return Ir})),i.d(t,"XtScrollArrow",(function(){return Br})),i.d(t,"XtBar",(function(){return Ts})),i.d(t,"XtLine",(function(){return Is})),i.d(t,"XtChart",(function(){return Ys})),i.d(t,"XtPie",(function(){return Ds})),i.d(t,"XtMulti",(function(){return Hs})),i.d(t,"XtPage",(function(){return Vr})),i.d(t,"XtSelectTree",(function(){return ta})),i.d(t,"XtUpload",(function(){return Sa})),i.d(t,"XtTransferTree",(function(){return Ia})),i.d(t,"XtFormSchema",(function(){return Ba})),i.d(t,"XtFlow",(function(){return Za})),"undefined"!==typeof window){var s=window.document.currentScript,r=s&&s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);r&&(i.p=r[1])}i("72fa"),i("d67a");var a={color:["#1890ff","#37c3a4","#29c0ce","#6480D7","#8cce6f","#3a5dca","#ffb74d"],backgroundColor:"#ffffff",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#333",fontSize:16},subtextStyle:{color:"#666666",fontSize:12}},line:{itemStyle:{},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#333"}},radar:{indicator:{color:"#666666"}},map:{label:{color:"#333"},itemStyle:{borderColor:"#fff"}},valueAxis:{axisLabel:{color:"#666666"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#666666"}},xAxis:{axisLine:{lineStyle:{color:"#DFE9EE"}},axisTick:{lineStyle:{color:"#DFE9EE"},show:!1}},yAxis:{axisLine:{lineStyle:{color:"#DFE9EE"}},axisTick:{lineStyle:{color:"#DFE9EE"}},splitLine:{show:!0,lineStyle:{type:"dashed",color:"#DFE9EE"}}},splitArea:{areaStyle:{color:["#f7f8fa","#ffffff"]}},legend:{textStyle:{color:"#333333"}},tooltip:{borderWidth:1,backgroundColor:"#ffffff",borderColor:"#dcdfe6",textStyle:{color:"#333333"},trigger:"axis"}},n=(i("ad4d"),{color:["#1060ff","#6648fe","#26ddff","#1bae94","#ff8041","#3a5dca","#c7dd4b"],backgroundColor:"#000",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#ffffff",fontSize:16},subtextStyle:{color:"#ffffff",fontSize:12}},line:{itemStyle:{},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#ffffff"}},radar:{indicator:{color:"#ffffff"}},map:{label:{color:"#ffffff"},itemStyle:{borderColor:"#dcdfe6"}},valueAxis:{axisLabel:{color:"#ffffff"}},categoryAxis:{axisLabel:{color:"#ffffff"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#ffffff"}},xAxis:{axisLine:{lineStyle:{color:"#DCDFE6"}},axisTick:{lineStyle:{color:"#DCDFE6"}}},yAxis:{axisLine:{lineStyle:{color:"#DCDFE6"}},axisTick:{lineStyle:{color:"#DCDFE6"}}},splitLine:{lineStyle:{color:"#ebeef5"}},splitArea:{areaStyle:{color:["#666666","#666666"]}},legend:{textStyle:{color:"#ffffff"}},tooltip:{backgroundColor:"#333333",borderWidth:1,borderColor:"#dcdfe6",textStyle:{color:"#fff"}},trigger:"axis"});const l={default:a,white:a,dark:n},o={water:["#0077be","#0099cc","#5DB1FF","#005C91","#003D61"],electricity:["#2ecc71","#27ae60","#5DD3B0","#22A85A","#167039"],gas:["#f39c12","#e67e22","#F5C976","#C28500","#8C6000"]};let c=null,h=!1;function d(){if(!c&&"undefined"!==typeof window)try{if(c=i("164e"),!h){for(const e in l)c.registerTheme(e,l[e]);h=!0}}catch(e){console.warn("[XtChart] echarts 加载失败:",e.message)}return c}const u={small:{title:14,subtitle:11,legend:11,axisLabel:10,tooltip:11,label:11},medium:{title:16,subtitle:12,legend:12,axisLabel:12,tooltip:12,label:12},large:{title:18,subtitle:14,legend:14,axisLabel:14,tooltip:14,label:14}};function p(){}function f(e,t){if(null==t)return e;if(Array.isArray(t))return t.slice();if("object"!==typeof t)return t;if(null==e||"object"!==typeof e)return JSON.parse(JSON.stringify(t));const i=Array.isArray(e)?e.slice():Object.assign({},e);return Object.keys(t).forEach(e=>{const s=t[e];null!==s&&void 0!==s?i[e]="object"===typeof s?f(i[e],s):s:t.hasOwnProperty(e)&&(i[e]=s)}),i}p.currentTheme="default",p.currentSize="medium",p.inverse=!1,p.hexToRgb=function(e){const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null},p.rgbToHex=function(e,t,i){return"#"+[e,t,i].map(e=>{const t=e.toString(16);return 1===t.length?"0"+t:t}).join("")},p.lightenColor=function(e,t){const i=this.hexToRgb(e);if(!i)return e;const s=t/100,r=Math.round(i.r*(1-s)+255*s),a=Math.round(i.g*(1-s)+255*s),n=Math.round(i.b*(1-s)+255*s);return this.rgbToHex(r,a,n)},p.darkenColor=function(e,t){const i=this.hexToRgb(e);if(!i)return e;const s=t/100,r=Math.max(0,Math.round(i.r*(1-s))),a=Math.max(0,Math.round(i.g*(1-s))),n=Math.max(0,Math.round(i.b*(1-s)));return this.rgbToHex(r,a,n)},p.EchartsUtil={backgroundColor:"transparent",tooltip:{trigger:"axis",borderWidth:1},legend:{right:20,top:0,show:!0,textStyle:{fontSize:12}},grid:{left:16,right:16,top:40,bottom:48,containLabel:!0}},p.chartInstanceList=[],p.resizeObserverList=[],p.simpleModeOption={legend:{show:!1},tooltip:{borderWidth:0,extraCssText:"box-shadow: 0 2px 8px rgba(0,0,0,0.12);"},grid:{top:"5%",left:"5%",right:"5%",bottom:"5%",containLabel:!0},xAxis:{axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!1}},yAxis:{axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}},animationDuration:300,animationEasing:"linear"},p.simpleModeByType={bar:{series:{barWidth:"60%",label:{show:!1},markPoint:null,emphasis:{itemStyle:{shadowBlur:6,shadowOffsetX:0,shadowColor:"rgba(0,0,0,0.15)"}}}},line:{series:{symbol:"none",smooth:!0,symbolSize:0,label:{show:!1},areaStyle:null}},pie:{legend:{show:!1},title:{show:!1},series:{radius:["40%","72%"],label:{show:!1},labelLine:{show:!1}}},multi:{legend:{show:!1},grid:{top:"8%",left:"5%",right:"5%",bottom:"5%",containLabel:!0}}},p.applySimpleMode=function(e,t){if(!e||"object"!==typeof e)return e;const i=JSON.parse(JSON.stringify(p.simpleModeOption)),s=p.simpleModeByType[t]||{},r=f(i,s);if(Object.keys(r).forEach(t=>{"series"!==t&&(null==e[t]?e[t]=r[t]:"object"!==typeof e[t]||"object"!==typeof r[t]||Array.isArray(e[t])||(e[t]=f(r[t],e[t])))}),e.series&&Array.isArray(e.series)){const t=r.series||{};e.series=e.series.map(e=>null==e||"object"!==typeof e?e:f(t,e))}return["xAxis","yAxis"].forEach(t=>{if(null!=e[t]&&"object"===typeof e[t]){const i=r[t]||{};Array.isArray(e[t])?e[t]=e[t].map(e=>null==e||"object"!==typeof e?e:f(i,e)):e[t]=f(i,e[t])}}),e},p.mergeOptions=function(e,t){return Object.assign({},e,t)},p.applyFontSize=function(e,t){const i=u[t]||u.medium,s=JSON.parse(JSON.stringify(e));s.title&&s.title.textStyle&&(s.title.textStyle.fontSize=i.title),s.title&&s.title.subtextStyle&&(s.title.subtextStyle.fontSize=i.subtitle),s.legend&&s.legend.textStyle&&(s.legend.textStyle.fontSize=i.legend),s.tooltip&&s.tooltip.textStyle&&(s.tooltip.textStyle.fontSize=i.tooltip),s.pie&&s.pie.label&&"object"===typeof s.pie.label&&(s.pie.label.fontSize=i.label),s.radar&&s.radar.indicator&&"object"===typeof s.radar.indicator&&s.radar.indicator.textStyle&&(s.radar.indicator.textStyle.fontSize=i.label),s.map&&s.map.label&&"object"===typeof s.map.label&&(s.map.label.fontSize=i.label);const r=function(e){e&&(e.axisLabel||(e.axisLabel={}),s.axisLabel&&s.axisLabel.color&&(e.axisLabel.color=s.axisLabel.color),e.axisLabel.fontSize=i.axisLabel)};return s.xAxis&&(Array.isArray(s.xAxis)?s.xAxis.forEach(r):r(s.xAxis)),s.yAxis&&(Array.isArray(s.yAxis)?s.yAxis.forEach(r):r(s.yAxis)),s},p.init=function(e,t,i,s){const r=d();if(!r||!e)return null;t=t||"default",s=s||"medium",i=i||{};const a=this.currentTheme||t,n=this.currentSize||s;this.currentTheme=a,this.currentSize=n;let l=JSON.parse(JSON.stringify(p.EchartsUtil));l=this.applyFontSize(l,n);const o=this.mergeOptions(l,i),c=r.init(e,a);return c.setOption(o,!0),this.chartInstanceList.push({dom:e,chart:c,customOption:i,size:n}),this.bindResize(c),c},p.changeSingleTheme=function(e,t,i,s){const r=d();if(!r||!e||!t)return;i=i||{},s=s||"default",this.currentTheme=s,t.dispose();const a=r.init(e,s,i),n=this.chartInstanceList.find((function(t){return t.dom===e}));return n&&(n.chart=a),a},p.changeAllTheme=function(e,t,i,s){const r=d();r&&e&&(this.currentTheme=e,t&&(this.currentSize=t),this.chartInstanceList.forEach((function(t){const a=t.dom,n=t.chart,l=t.customOption,c=t.size||p.currentSize;n&&n.dispose();const h=r.init(a,e);let d=JSON.parse(JSON.stringify(p.EchartsUtil));d=p.applyFontSize(d,c),s&&o[s]?d.color=o[s]:i&&(d.color=[i,p.lightenColor(i,30),p.lightenColor(i,50),p.darkenColor(i,20),p.darkenColor(i,40)]);const u=p.mergeOptions(d,l);console.log("option1",u),h.setOption(u,!0),t.chart=h,t.size=c,p.bindResize(h)})))},p.bindResize=function(e){e&&!e.resizeLocked&&(window.addEventListener("resize",(function(){e.resize()})),e._resizeLocked=!0)},p.bindResizeObserver=function(e,t){if(!e||!t||"undefined"===typeof ResizeObserver)return;const i=new ResizeObserver(()=>{t.resize()});i.observe(e),p.resizeObserverList.push({dom:e,observer:i,chartIns:t})},p.unbindResizeObserver=function(e){const t=p.resizeObserverList.findIndex(t=>t.dom===e);-1!==t&&(p.resizeObserverList[t].observer.disconnect(),p.resizeObserverList.splice(t,1))},p.destroy=function(e){e&&e.dispose(),this.chartInstanceList=this.chartInstanceList.filter((function(t){return t.chart!==e}))},p.destroyAll=function(){this.chartInstanceList.forEach((function(e){e.chart&&e.chart.dispose()})),this.chartInstanceList=[],this.resizeObserverList.forEach((function(e){e.observer.disconnect()})),this.resizeObserverList=[]};var m=p;const y={theme:"white",size:"medium",primaryColor:"#1890ff"};let g={...y};const b=[],v=function(e,t){b.forEach(i=>{i(e,t)})},_=function(){return{...g}},x=function(e){"object"===typeof e&&null!==e?(void 0!==e.theme&&C(e.theme),void 0!==e.size&&S(e.size),void 0!==e.primaryColor&&z(e.primaryColor)):console.warn("[XtElementUI] setConfig 必须传入对象参数")};function w(){return"undefined"!==typeof window&&"undefined"!==typeof document}const C=function(e){const t=["white","dark"];if(t.includes(e)){if(g.theme=e,w()){const t=document.documentElement;"dark"===e?t.setAttribute("data-theme","dark"):t.setAttribute("data-theme",e),m.changeAllTheme(g.theme,g.size)}v("theme",e)}else console.warn(`[XtElementUI] 无效的主题值: ${e},可选值: ${t.join(", ")}`)},S=function(e){const t=["small","medium","large"];t.includes(e)?(g.size=e,w()&&(document.documentElement.setAttribute("data-size",e),m.changeAllTheme(g.theme,g.size)),v("size",e)):console.warn(`[XtElementUI] 无效的大小值: ${e},可选值: ${t.join(", ")}`)};function T(e){const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}function k(e,t,i){return"#"+[e,t,i].map(e=>{const t=e.toString(16);return 1===t.length?"0"+t:t}).join("")}function M(e,t){const i=T(e);if(!i)return e;const s=Math.round(2.55*t),r=Math.min(255,i.r+s),a=Math.min(255,i.g+s),n=Math.min(255,i.b+s);return k(r,a,n)}const z=function(e){const t=/^#[0-9A-Fa-f]{3}$|^#[0-9A-Fa-f]{6}$|^#[0-9A-Fa-f]{8}$/;if(!t.test(e))return void console.warn(`[XtElementUI] 无效的颜色值: ${e},请使用十六进制颜色格式,如 #1890ff`);let i=e;4===e.length?i="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]:9===e.length&&(i=e.substring(0,7)),g.primaryColor=i,w()&&(document.documentElement.style.setProperty("--xt-color-primary",i),document.documentElement.style.setProperty("--xt-color-primary-light-3",M(i,30)),document.documentElement.style.setProperty("--xt-color-primary-light-5",M(i,50)),document.documentElement.style.setProperty("--xt-color-primary-light-7",M(i,70)),document.documentElement.style.setProperty("--xt-color-primary-light-8",M(i,80)),document.documentElement.style.setProperty("--xt-color-primary-light-9",M(i,90))),v("primaryColor",i)},$=function(){return g.theme},L=function(){return g.size},I=function(){return g.primaryColor},A=function(){x(y)},N=function(e){if("function"===typeof e)return b.push(e),function(){const t=b.indexOf(e);t>-1&&b.splice(t,1)};console.warn("[XtElementUI] onConfigChange 必须传入函数")},O=function(e,t){if(null===e||void 0===e||""===e)return"";const i="string"===typeof e?parseFloat(e):e;if(isNaN(i))return String(e);const s=Object.assign({decimals:2,thousand:!0,prefix:"",suffix:"",showSign:!1},t||{});let r=i.toFixed(s.decimals);if(s.thousand){const e=r.split(".");e[0]=e[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),r=e.join(".")}return s.showSign&&i>0&&(r="+"+r),s.prefix+r+s.suffix},E=function(e,t){return O(e,{decimals:null!=t?t:2,thousand:!0})},P=function(e,t){if(null===e||void 0===e||""===e)return"";const i="string"===typeof e?parseFloat(e):e;return isNaN(i)?String(e):O(100*i,{decimals:null!=t?t:2,thousand:!0,suffix:"%"})};function D(e,t){return t=t||2,String(e).padStart(t,"0")}const B=function(e,t){if(!e)return"";let i;if(e instanceof Date)i=e;else if("number"===typeof e)i=new Date(10===e.toString().length?1e3*e:e);else{if("string"!==typeof e)return"";e=e.trim(),i=/^\d+$/.test(e)?new Date(10===e.length?1e3*parseInt(e):parseInt(e)):new Date(e.replace(/-/g,"/"))}if(isNaN(i.getTime()))return"";const s=t||"yyyy-MM-dd",r=i.getFullYear(),a=i.getMonth()+1,n=i.getDate(),l=i.getHours(),o=i.getMinutes(),c=i.getSeconds(),h=i.getDay(),d=["日","一","二","三","四","五","六"];return s.replace("yyyy",r).replace("MM",D(a)).replace("M",a).replace("dd",D(n)).replace("d",n).replace("HH",D(l)).replace("H",l).replace("hh",D(l%12||12)).replace("h",l%12||12).replace("mm",D(o)).replace("m",o).replace("ss",D(c)).replace("s",c).replace("w",d[h]).replace("W","星期"+d[h])},R=function(e,t){return B(e,t||"yyyy-MM-dd HH:mm:ss")},F=function(e,t){return B(e,t||"HH:mm:ss")},j=function(e){if(!e)return"";let t;if(e instanceof Date)t=e;else if("number"===typeof e)t=new Date(10===e.toString().length?1e3*e:e);else{if("string"!==typeof e)return"";e=e.trim(),t=/^\d+$/.test(e)?new Date(10===e.length?1e3*parseInt(e):parseInt(e)):new Date(e.replace(/-/g,"/"))}if(isNaN(t.getTime()))return"";const i=new Date,s=i.getTime()-t.getTime(),r=6e4,a=60*r,n=24*a,l=7*n,o=30*n,c=365*n;return s<r?"刚刚":s<a?Math.floor(s/r)+"分钟前":s<n?Math.floor(s/a)+"小时前":s<l?Math.floor(s/n)+"天前":s<o?Math.floor(s/l)+"周前":s<c?Math.floor(s/o)+"个月前":Math.floor(s/c)+"年前"},X=function(e,t){if(null===e||void 0===e||""===e)return"";const i="string"===typeof e?parseFloat(e):e;if(isNaN(i))return String(e);const s=Object.assign({currency:"CNY",decimals:2,prefix:"",suffix:"",showSign:!1},t||{}),r={CNY:"¥",USD:"$",EUR:"€",JPY:"¥",GBP:"£",AUD:"A$",CAD:"C$"};let a=r[s.currency]||"",n=i.toFixed(s.decimals);const l=n.split(".");return l[0]=l[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),n=l.join("."),s.showSign&&i>0&&(n="+"+n),s.prefix&&(n=s.prefix+n),s.suffix&&(n+=s.suffix),a+n},H=function(e,t){return X(e,{currency:"CNY",decimals:null!=t?t:2})},K=function(e,t){return X(e,{currency:"USD",decimals:null!=t?t:2})},V=function(e){if(null===e||void 0===e||""===e)return"";const t="string"===typeof e?parseFloat(e):e;if(isNaN(t))return String(e);if(0===t)return"0 B";const i=1024,s=["B","KB","MB","GB","TB"],r=Math.floor(Math.log(t)/Math.log(i));return parseFloat((t/Math.pow(i,r)).toFixed(2))+" "+s[r]};var U={setTheme:C,setSize:S,setPrimaryColor:z,getConfig:_,setConfig:x,getTheme:$,getSize:L,getPrimaryColor:I,resetConfig:A,onConfigChange:N,formatNumber:O,formatThousand:E,formatPercent:P,formatDate:B,formatDateTime:R,formatTime:F,formatRelativeTime:j,formatMoney:X,formatCNY:H,formatUSD:K,formatFileSize:V},W=(i("0ba5"),function(){var e=this,t=e._self._c;return t("el-button",e._b({staticClass:"xt-button",class:e.buttonClasses,attrs:{type:e.type},on:{click:e.handleClick}},"el-button",e.$attrs,!1),[e._t("default")],2)}),Y=[],q={name:"XtButton",inheritAttrs:!1,inject:{xtConfig:{default:()=>({theme:void 0,size:void 0,primaryColor:void 0})}},props:{type:{type:String,default:"",validator:e=>["","primary","success","warning","danger"].includes(e)},throttle:{type:Number,default:0},size:{type:String,default:null,validator:e=>!e||["mini","small","medium","large"].includes(e)},square:{type:Boolean,default:!1}},data(){return{lastClickTime:0}},computed:{finalSize(){return this.size||this.xtConfig.size||"medium"},buttonClasses(){return["xt-button-"+this.finalSize,"xt-button-"+this.type,this.square?"is-square":""]}},methods:{handleClick(){this.throttle>0&&Date.now()-this.lastClickTime<this.throttle||(this.lastClickTime=Date.now(),this.$emit("click"))}}},Z=q,G=i("2877"),J=Object(G["a"])(Z,W,Y,!1,null,null,null),Q=J.exports;Q.install=function(e){e.component(Q.name,Q)};var ee=Q,te=(i("0563"),function(){var e=this,t=e._self._c;return t("div",{staticClass:"xt-input",class:[e.size?"xt-input--"+e.size:"",{"is-disabled":e.disabled},{"is-error":e.hasError}]},[t("el-input",{style:e.inputStyle,attrs:{value:e.displayValue,placeholder:e.placeholder,type:e.inputType,size:e.size,disabled:e.disabled,readonly:e.readonly,maxlength:e.maxlength,"show-word-limit":e.showWordLimit,"prefix-icon":e.prefixIcon,"suffix-icon":e.suffixIcon},on:{input:e.handleInput,change:e.handleChange,focus:e.handleFocus,blur:e.handleBlur,clear:e.handleClear},scopedSlots:e._u([e.$slots.prefix?{key:"prefix",fn:function(){return[e._t("prefix")]},proxy:!0}:null,e.$slots.suffix?{key:"suffix",fn:function(){return[e._t("suffix")]},proxy:!0}:null],null,!0)})],1)}),ie=[],se={name:"XtInput",props:{value:[String,Number],placeholder:{type:String,default:"请输入内容"},type:{type:String,default:"text",validator:e=>["text","number","integer","decimal","money","phone","email","idcard","password","textarea"].includes(e)},size:{type:String,default:""},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},color:{type:String,default:""},precision:{type:Number,default:2,validator:e=>e>=0&&e<=10},min:{type:Number,default:void 0},max:{type:Number,default:void 0},allowNegative:{type:Boolean,default:!1},thousandSeparator:{type:Boolean,default:!1},maxlength:{type:Number,default:void 0},showWordLimit:{type:Boolean,default:!1},prefixIcon:{type:String,default:""},suffixIcon:{type:String,default:""},trim:{type:Boolean,default:!1}},data(){return{currentStr:"",isFocused:!1,hasError:!1}},computed:{inputType(){return"textarea"===this.type?"textarea":"password"===this.type?"password":(this.isNumberType,"text")},isNumberType(){return["number","integer","decimal","money"].includes(this.type)},displayValue(){return this.isNumberType?this.thousandSeparator&&this.currentStr?this.formatThousand(this.currentStr):this.currentStr:this.value},inputStyle(){const e={};return this.color&&(e["--xt-input-focus-color"]=this.color),e}},watch:{value:{immediate:!0,handler(e){if(this.isNumberType&&!this.isFocused)if(null===e||void 0===e||""===e)this.currentStr="";else{const t=String(e);this.thousandSeparator?this.currentStr=this.parseThousand(t):this.currentStr=t}}}},methods:{isValidNumber(e){if(!e)return!0;const t=this.allowNegative?"[-+]?":"";return"integer"===this.type?new RegExp(`^${t}\\d*$`).test(e):"decimal"===this.type||"number"===this.type?0===this.precision?new RegExp(`^${t}\\d*$`).test(e):new RegExp(`^${t}\\d*\\.?\\d{0,${this.precision}}$`).test(e):"money"!==this.type||new RegExp(`^${t}\\d*\\.?\\d{0,${this.precision}}$`).test(e)},isValidPhone(e){return/^1[3-9]\d{0,9}$/.test(e)},isValidEmail(e){return!e||/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e)},isValidIdCard(e){return/^[1-9]\d{0,17}$/.test(e)},formatThousand(e){if(!e)return"";const t=e.split(".");return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),t.join(".")},parseThousand(e){return e.replace(/,/g,"")},parseToNumber(e){if(!e||"+"===e||"-"===e||"."===e||"+."===e||"-."===e||"-."===e)return;const t=parseFloat(e);return isNaN(t)?void 0:t},handleInput(e){let t=e;if(this.thousandSeparator&&this.isNumberType&&(t=this.parseThousand(e)),"phone"===this.type)return t=e.replace(/[^\d]/g,""),this.isValidPhone(t)||(t=t.slice(0,-1)),void this.$emit("input",t);if("idcard"===this.type)return t=e.replace(/[^\dXx]/g,""),this.isValidIdCard(t)||(t=t.slice(0,-1)),void this.$emit("input",t.toUpperCase());if("email"===this.type)return this.isValidEmail(t)?this.hasError=!1:this.hasError=!0,void this.$emit("input",t);if(this.isNumberType){if(this.isValidNumber(t)){this.currentStr=t;const e=this.parseToNumber(t);if(void 0!==e){let t=e;void 0!==this.min&&e<this.min&&(t=this.min,this.currentStr=String(t)),void 0!==this.max&&e>this.max&&(t=this.max,this.currentStr=String(t)),this.$emit("input",t),this.hasError=!1}else this.$emit("input",void 0)}}else this.trim&&(t=t.trim()),this.$emit("input",t)},handleChange(e){let t=e;if(this.thousandSeparator&&this.isNumberType&&(t=this.parseThousand(e)),this.isNumberType){const e=this.parseToNumber(t);this.$emit("change",e)}else this.trim&&(t=t.trim()),this.$emit("change",t)},handleFocus(e){this.isFocused=!0,this.$emit("focus",e)},handleBlur(e){if(this.isFocused=!1,this.isNumberType){const t=this.parseToNumber(this.currentStr);if(void 0!==t){let i=t;this.precision>0&&(i=Number(t.toFixed(this.precision))),this.currentStr=String(i),this.$emit("input",i),this.$emit("blur",i,e),this.hasError=!1}else""!==this.currentStr&&(this.currentStr="",this.$emit("input",void 0)),this.$emit("blur",void 0,e),this.hasError=!1}else"email"===this.type&&(this.isValidEmail(this.value)||(this.hasError=!0)),this.$emit("blur",e)},handleClear(){this.isNumberType&&(this.currentStr=""),this.hasError=!1,this.$emit("input",this.isNumberType?void 0:""),this.$emit("clear")},reset(){this.currentStr="",this.hasError=!1,this.$emit("input",this.isNumberType?void 0:"")}}},re=se,ae=Object(G["a"])(re,te,ie,!1,null,null,null),ne=ae.exports;ne.install=function(e){e.component(ne.name,ne)};var le=ne,oe=(i("5820"),function(){var e=this,t=e._self._c;return t("div",{staticClass:"xt-flex-box",class:e.classAttrs,style:e.flexStyle},[e._t("default")],2)}),ce=[],he={name:"XtFlexBox",props:{type:{type:String,default:"flex"},align:{type:String,default:"center"},content:{type:String,default:"start"},direction:{type:String,default:"row"},wrap:{type:String,default:"unset"},gap:{type:String,default:""}},computed:{classAttrs(){const{type:e,align:t,wrap:i,direction:s,content:r}=this;return[""+e,"align-"+t,"content-"+r,"direction-"+s,"wrap-"+i]},flexStyle(){const e={};return this.gap?e.gap=this.gap:e.gap="",e}}},de=he,ue=Object(G["a"])(de,oe,ce,!1,null,null,null),pe=ue.exports;pe.install=function(e){e.component(pe.name,pe)};var fe=pe,me=(i("419e"),function(){var e=this,t=e._self._c;return t("el-card",e._b({staticClass:"xt-card",class:e.cardClasses,scopedSlots:e._u([e.$slots.header||e.title?{key:"header",fn:function(){return[e._t("header",(function(){return[e._v(e._s(e.title))]}))]},proxy:!0}:null],null,!0)},"el-card",e.$attrs,!1),[e._t("default")],2)}),ye=[],ge={name:"XtCard",inheritAttrs:!1,inject:{xtConfig:{default:()=>({theme:void 0,size:void 0,primaryColor:void 0})}},props:{title:{type:String,default:""},shadow:{type:String,default:"always",validator:e=>["always","hover","never"].includes(e)},bordered:{type:Boolean,default:!0},bodyClass:{type:String,default:""},size:{type:String,default:null,validator:e=>!e||["small","medium","large"].includes(e)}},computed:{finalSize(){return this.size||this.xtConfig.size||"medium"},cardClasses(){return["xt-card-"+this.shadow,"xt-card-"+this.finalSize,{"xt-card-no-border":!this.bordered,[this.bodyClass]:this.bodyClass}]}}},be=ge,ve=Object(G["a"])(be,me,ye,!1,null,null,null),_e=ve.exports;_e.install=function(e){e.component(_e.name,_e)};var xe=_e,we=(i("c1e7"),function(){var e=this,t=e._self._c;return t("xt-card",{staticClass:"xt-card-item",class:{["is-"+e.type]:!!e.type},attrs:{bordered:!1}},[t("xt-flex-box",{attrs:{content:"between"}},[t("div",[t("div",[t("xt-text",{attrs:{bold:"",size:"extra-large"}},[e._v(e._s(e.title))])],1),t("xt-text",{attrs:{bold:"",size:"large",format:"thousand",type:e.type,decimals:0},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}}),t("div",{staticStyle:{margin:"5px 0"}},[t("xt-text",{attrs:{size:"small"}},[e._v("较昨日")]),t("xt-text",{attrs:{format:"normal",type:e.diff>0?"success":"danger",suffix:e.diff>0?"↑":"↓"},model:{value:e.reference,callback:function(t){e.reference=t},expression:"reference"}})],1)],1),t("div",{staticStyle:{height:"100%"}},[e._t("icon",(function(){return[t("xt-text",{attrs:{size:"extra-large",type:e.type}},[t("xt-icon",{attrs:{name:"el-icon-user",size:48}})],1)]}))],2)])],1)}),Ce=[],Se={name:"XtCardItem",props:{type:{type:String,default:"primary"},title:{type:String,default:""},diff:{type:Number,default:0},value:{type:Number,default:0},reference:{type:Number,default:0}},data(){return{}}},Te=Se,ke=Object(G["a"])(Te,we,Ce,!1,null,null,null),Me=ke.exports;Me.install=function(e){e.component(Me.name,Me)};var ze=Me;i("2474");const $e="undefined"!==typeof HTMLElement?HTMLElement:Object;var Le,Ie,Ae={name:"XtConfigProvider",inheritAttrs:!1,data(){return{xtConfig:{theme:this.theme,size:this.size,primaryColor:this.primaryColor,brand:this.brand}}},provide(){return{xtConfig:this.xtConfig}},watch:{theme(e){this.xtConfig.theme=e,this.updateConfig()},size(e){this.xtConfig.size=e,this.updateConfig()},primaryColor(e){this.xtConfig.primaryColor=e,this.updateConfig()},brand(e){this.xtConfig.brand=e,this.updateConfig()}},render(e){const t=this.$slots.default;return"template"===this.tag||this.proxyElement?t&&0!==t.length?1===t.length?t[0]:e("div",{class:"xt-config-provider-wrapper",attrs:{"data-theme":this.theme,"data-brand":this.brand}},t):e("div"):e(this.tag,{style:this.mergedStyle,class:this.computedClass,attrs:{...this.customAttrs,"data-theme":this.theme,"data-brand":this.brand}},this.$slots.default)},props:{theme:{type:String,default:"white",validator:e=>["white","dark","auto"].includes(e)},size:{type:String,default:"medium",validator:e=>["small","medium","large"].includes(e)},primaryColor:{type:String,default:"#1890ff"},brand:{type:String,default:"",validator:e=>["","water","electricity","gas"].includes(e)},vars:{type:Object,default:()=>({})},tag:{type:String,default:"div",validator:e=>["div","span","section","main","template","article","aside"].includes(e)},injectBackground:{type:Boolean,default:!1},injectColor:{type:Boolean,default:!1},proxyElement:{type:[$e,String,Object],default:null,description:"代理元素,将样式应用到该元素上。支持 HTMLElement、CSS选择器字符串或 ref 对象"},onThemeChange:{type:Function,default:null,description:"主题改变时的钩子函数,接收参数: { theme, size, primaryColor, brand }"},onStyleApplied:{type:Function,default:null,description:"样式应用完成时的钩子函数,接收参数: { element, style, theme, brand }"}},computed:{mergedStyle(){const e={...this.vars};if(this.primaryColor){const t=this.normalizeColor(this.primaryColor);e["--xt-color-primary"]=t,e["--xt-color-primary-light-3"]=this.lightenColor(t,30),e["--xt-color-primary-light-5"]=this.lightenColor(t,50),e["--xt-color-primary-light-7"]=this.lightenColor(t,70),e["--xt-color-primary-light-8"]=this.lightenColor(t,80),e["--xt-color-primary-light-9"]=this.lightenColor(t,90),e["--xt-color-primary-dark-2"]=this.darkenColor(t,20)}const t={small:"14px",medium:"16px",large:"18px"};return t[this.size]&&(e["--xt-font-size-base"]=t[this.size]),"dark"===this.theme?(this.injectBackground&&(e.backgroundColor=e["--xt-bg-color"]||"#141414"),this.injectColor&&(e.color=e["--xt-text-color-primary"]||"#E5EAF3")):(this.injectBackground&&(e.backgroundColor=e["--xt-bg-color"]||"#ffffff"),this.injectColor&&(e.color=e["--xt-text-color-primary"]||"#303133")),e},computedClass(){const e=[];return"template"!==this.tag&&e.push("xt-config-provider"),e},customAttrs(){const e=["theme","size","primaryColor","brand","vars","tag","injectBackground","injectColor","proxyElement"],t={};for(const i in this.$attrs)e.includes(i)||(t[i]=this.$attrs[i]);return t}},mounted(){this.applyProxyElementStyle()},updated(){this.applyProxyElementStyle()},beforeUnmount(){this.clearProxyElementStyle()},methods:{updateConfig(){this.applyProxyElementStyle()},normalizeColor(e){if(!e)return"#1890ff";if(/^#[0-9A-Fa-f]{6}$/.test(e))return e;if(/^#[0-9A-Fa-f]{3}$/.test(e))return"#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3];if(/^#[0-9A-Fa-f]{8}$/.test(e))return e.substring(0,7);const t=e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)/i);if(t){const e=parseInt(t[1]),i=parseInt(t[2]),s=parseInt(t[3]);return this.rgbToHex(e,i,s)}return console.warn("[XtConfigProvider] 无法识别的颜色格式:",e),"#1890ff"},hexToRgb(e){const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null},rgbToHex(e,t,i){return"#"+[e,t,i].map(e=>{const t=e.toString(16);return 1===t.length?"0"+t:t}).join("")},lightenColor(e,t){const i=this.hexToRgb(e);if(!i)return e;const s=t/100,r=Math.round(i.r*(1-s)+255*s),a=Math.round(i.g*(1-s)+255*s),n=Math.round(i.b*(1-s)+255*s);return this.rgbToHex(r,a,n)},darkenColor(e,t){const i=this.hexToRgb(e);if(!i)return e;const s=t/100,r=Math.max(0,Math.round(i.r*(1-s))),a=Math.max(0,Math.round(i.g*(1-s))),n=Math.max(0,Math.round(i.b*(1-s)));return this.rgbToHex(r,a,n)},getProxyElement(){const{proxyElement:e}=this;return e?e instanceof HTMLElement?e:"string"===typeof e?document.querySelector(e):e.$el?e.$el:e.value&&e.value instanceof HTMLElement?e.value:(console.warn("[XtConfigProvider] 无法解析 proxyElement:",e),null):null},applyProxyElementStyle(){const e=this.getProxyElement();if(!e)return;const t=this.mergedStyle,i=e.getAttribute("data-theme"),s=e.getAttribute("data-brand");for(const r in t)e.style.setProperty(r,t[r]);e.setAttribute("data-theme",this.theme),e.setAttribute("data-brand",this.brand),m.changeAllTheme(this.theme,this.size,this.primaryColor,this.brand),i!==this.theme&&"function"===typeof this.onThemeChange&&this.onThemeChange({theme:this.theme,size:this.size,primaryColor:this.primaryColor,brand:this.brand,prevTheme:i,prevBrand:s}),"function"===typeof this.onStyleApplied&&this.onStyleApplied({element:e,style:t,theme:this.theme,size:this.size,primaryColor:this.primaryColor,brand:this.brand})},clearProxyElementStyle(){const e=this.getProxyElement();if(!e)return;const t=this.mergedStyle;for(const i in t)e.style.removeProperty(i);e.removeAttribute("data-theme"),e.removeAttribute("data-brand")}}},Ne=Ae,Oe=(i("a075"),Object(G["a"])(Ne,Le,Ie,!1,null,"25b37bc4",null)),Ee=Oe.exports;Ee.install=function(e){e.component(Ee.name,Ee)};var Pe=Ee,De=(i("86ae"),function(){var e=this,t=e._self._c;return e.showTooltip&&e.ellipsis?t("el-tooltip",{attrs:{content:e.displayTooltipContent,placement:e.tooltipPlacement,disabled:!e.isOverflow,effect:"dark"}},[t("span",{ref:"textRef",staticClass:"xt-text",class:[e.type?"xt-text--"+e.type:"","xt-text--"+e.size,{"xt-text--bold":e.bold},{"xt-text--money":"money"===e.format},{"xt-text--ellipsis":e.ellipsis&&1==e.ellipsisRows},{"xt-text--ellipsis-multiline":e.ellipsis&&e.ellipsisRows>1}],style:e.customStyle,on:{mouseenter:e.handleMouseEnter}},[e.$slots.prefix?[e._t("prefix")]:e.prefix?[e._v(e._s(e.prefix))]:e._e(),e._t("default",(function(){return[void 0!==e.formattedValue?[e._v(e._s(e.formattedValue))]:e._e()]})),e.$slots.suffix?[e._t("suffix")]:e.suffix?[e._v(e._s(e.suffix))]:e._e()],2)]):t("span",{ref:"textRef",staticClass:"xt-text",class:[e.type?"xt-text--"+e.type:"","xt-text--"+e.size,{"xt-text--bold":e.bold},{"xt-text--money":"money"===e.format},{"xt-text--ellipsis":e.ellipsis&&1==e.ellipsisRows},{"xt-text--ellipsis-multiline":e.ellipsis&&e.ellipsisRows>1}],style:e.customStyle},[e.$slots.prefix?[e._t("prefix")]:e.prefix?[e._v(e._s(e.prefix))]:e._e(),e._t("default",(function(){return[void 0!==e.formattedValue?[e._v(e._s(e.formattedValue))]:e._e()]})),e.$slots.suffix?[e._t("suffix")]:e.suffix?[e._v(e._s(e.suffix))]:e._e()],2)}),Be=[],Re={name:"XtText",model:{prop:"value",event:"input"},props:{type:{type:String,default:"",validator:e=>["","primary","success","warning","danger"].includes(e)},size:{type:String,default:"small",validator:e=>["extra-large","large","medium","small","mini","extra-small"].includes(e)},bold:{type:Boolean,default:!1},letterSpacing:{type:[String,Number],default:""},ellipsis:{type:Boolean,default:!1},ellipsisRows:{type:Number,default:1,validator:e=>e>=1&&e<=10},showTooltip:{type:Boolean,default:!0},tooltipPlacement:{type:String,default:"top",validator:e=>["top","bottom","left","right","top-start","top-end","bottom-start","bottom-end","left-start","left-end","right-start","right-end"].includes(e)},tooltipContent:{type:String,default:""},format:{type:String,default:"normal",validator:e=>["normal","thousand","money"].includes(e)},money:{type:Boolean,default:!1},value:{type:[Number,String],default:""},currency:{type:String,default:"CNY",validator:e=>["CNY","USD","EUR","JPY","GBP","AUD","CAD"].includes(e)},decimals:{type:Number,default:2,validator:e=>e>=0&&e<=10},locale:{type:String,default:"zh-CN"},showSign:{type:Boolean,default:!1},prefix:{type:String,default:""},suffix:{type:String,default:""}},data(){return{ellipsisWidth:void 0,isOverflow:!1}},computed:{realFormat(){return this.money?"money":this.format},customStyle(){const e={};return this.letterSpacing&&(e.letterSpacing="number"===typeof this.letterSpacing?this.letterSpacing+"px":this.letterSpacing),this.ellipsis&&this.ellipsisRows>1&&(e.WebkitLineClamp=this.ellipsisRows,e.width=this.ellipsisWidth+"px"),e},displayTooltipContent(){return this.tooltipContent?this.tooltipContent:void 0!==this.formattedValue?this.formattedValue:this.$slots.default&&this.$slots.default.length>0?this.extractSlotText(this.$slots.default):this.value},formattedValue(){const e=this.realFormat,{value:t}=this;if(""===t||void 0===t||null===t)return;const i="string"===typeof t?parseFloat(t):t;if(isNaN(i))return t;try{let t="";const s=this.showSign?"always":"auto";switch(e){case"thousand":t=new Intl.NumberFormat(this.locale,{minimumFractionDigits:this.decimals,maximumFractionDigits:this.decimals,signDisplay:s}).format(i);break;case"money":t=new Intl.NumberFormat(this.locale,{style:"currency",currency:this.currency,minimumFractionDigits:this.decimals,maximumFractionDigits:this.decimals,signDisplay:s}).format(i);break;default:return}return t}catch(s){return t}}},methods:{handleMouseEnter(){this.checkOverflow()},checkOverflow(){const e=this.$refs.textRef;e?this.ellipsisRows>1?(this.isOverflow=e.scrollHeight>e.clientHeight,this.ellipsisWidth=e.clientWidth):this.isOverflow=e.scrollWidth>e.clientWidth:this.isOverflow=!1},extractSlotText(e){let t="";return e.forEach(e=>{"string"===typeof e.children?t+=e.children:"string"===typeof e.text?t+=e.text:e.children&&Array.isArray(e.children)&&(t+=this.extractSlotText(e.children))}),t.trim()}},mounted(){this.ellipsis&&this.showTooltip&&this.$nextTick(()=>{this.checkOverflow()}),this._resizeObserver=new ResizeObserver(()=>{this.ellipsis&&this.showTooltip&&this.checkOverflow()}),this.$nextTick(()=>{this.$refs.textRef&&this._resizeObserver.observe(this.$refs.textRef)})},beforeDestroy(){this._resizeObserver&&this._resizeObserver.disconnect()},watch:{value(){this.ellipsis&&this.showTooltip&&this.$nextTick(()=>{this.checkOverflow()})},ellipsis(e){e&&this.showTooltip&&this.$nextTick(()=>{this.checkOverflow()})}}},Fe=Re,je=Object(G["a"])(Fe,De,Be,!1,null,null,null),Xe=je.exports;Xe.install=function(e){e.component(Xe.name,Xe)};var He=Xe,Ke=(i("6c9e"),function(){var e=this,t=e._self._c;return t("span",{staticClass:"xt-time",class:[e.typeColor?"xt-time--"+e.typeColor:"","xt-time--"+e.size,{"xt-time--bold":e.bold}],style:e.customStyle,on:{click:e.handleClick}},[e._t("prefix",(function(){return[e._v(e._s(e.prefix))]})),e._t("default",(function(){return["text"===e.mode?[void 0!==e.displayText?[e._v(e._s(e.displayText))]:e.hideEmpty?e._e():[e._v(e._s(e.emptyText))]]:"now"===e.mode?[e._v(" "+e._s(e.nowText)+" ")]:"countdown"===e.mode?[e.isCountdownFinished?[e._t("finished",(function(){return[e._v(e._s(e.finishedText))]}))]:[e._v(" "+e._s(e.countdownText)+" ")]]:e._e()]})),e._t("suffix",(function(){return[e._v(e._s(e.suffix))]}))],2)}),Ve=[];const Ue="YYYY-MM-DD HH:mm:ss";function We(e){const t=String(e);return t.length<2?"0"+t:t}function Ye(e){if(null===e||void 0===e||""===e)return null;if(e instanceof Date)return isNaN(e.getTime())?null:e;if("number"===typeof e){const t=e<1e12?1e3*e:e,i=new Date(t);return isNaN(i.getTime())?null:i}if("string"===typeof e){if(/^\d+$/.test(e)){const t=Number(e),i=t<1e12?1e3*t:t,s=new Date(i);return isNaN(s.getTime())?null:s}const t=e.replace(/-/g,"/"),i=new Date(t);return isNaN(i.getTime())?null:i}return null}function qe(e,t){if(!e)return"";const i=t||Ue,s={YYYY:e.getFullYear(),MM:We(e.getMonth()+1),DD:We(e.getDate()),HH:We(e.getHours()),mm:We(e.getMinutes()),ss:We(e.getSeconds()),SSS:String(e.getMilliseconds()).padStart(3,"0")};return i.replace(/YYYY|MM|DD|HH|mm|ss|SSS/g,e=>s[e])}var Ze={name:"XtTime",props:{type:{type:String,default:"now",validator:e=>["now","countdown","text"].includes(e)},size:{type:String,default:"base",validator:e=>["extra-large","large","medium","base","small","extra-small"].includes(e)},typeColor:{type:String,default:"",validator:e=>["","primary","success","warning","danger"].includes(e)},bold:{type:Boolean,default:!1},format:{type:String,default:Ue},prefix:{type:String,default:""},suffix:{type:String,default:""},emptyText:{type:String,default:"-"},hideEmpty:{type:Boolean,default:!1},interval:{type:Number,default:1e3,validator:e=>e>=100},value:{type:[String,Number,Date],default:""},targetTime:{type:[String,Number,Date],default:""},countdownFormat:{type:String,default:"DHMS",validator:e=>["DHMS","HMS","MS","SEC"].includes(e)},finishedText:{type:String,default:"已结束"}},data(){return{tick:0}},computed:{mode(){return this.type},parsedValue(){return Ye(this.value)},parsedTarget(){return Ye(this.targetTime)},displayText(){if(this.parsedValue)return qe(this.parsedValue,this.format)},nowText(){this.tick;return qe(new Date,this.format)},remainingMs(){if("countdown"!==this.mode)return 0;this.tick;if(!this.parsedTarget)return 0;const e=this.parsedTarget.getTime()-Date.now();return e>0?e:0},isCountdownFinished(){return"countdown"===this.mode&&this.parsedTarget&&this.remainingMs<=0},countdownText(){if(!this.parsedTarget)return this.emptyText;const e=Math.floor(this.remainingMs/1e3);if(e<=0)return this.finishedText;switch(this.countdownFormat){case"SEC":return e+"秒";case"MS":{const t=Math.floor(e/60),i=e%60;return`${We(t)}分${We(i)}秒`}case"HMS":{const t=Math.floor(e/3600),i=Math.floor(e%3600/60),s=e%60;return`${We(t)}时${We(i)}分${We(s)}秒`}case"DHMS":default:{const t=Math.floor(e/86400),i=Math.floor(e%86400/3600),s=Math.floor(e%3600/60),r=e%60;return`${t}天${We(i)}时${We(s)}分${We(r)}秒`}}},customStyle(){return{}}},watch:{type(){this.restartTimer()},interval(){this.restartTimer()}},mounted(){this.restartTimer()},beforeDestroy(){this.clearTimer()},activated(){this.restartTimer()},deactivated(){this.clearTimer()},methods:{restartTimer(){this.clearTimer(),"now"!==this.mode&&"countdown"!==this.mode||(this.tick++,this._timer=setInterval(()=>{this.tick++,"countdown"===this.mode&&this.parsedTarget&&this.remainingMs<=0&&(this.clearTimer(),this.$emit("finish"))},this.interval))},clearTimer(){this._timer&&(clearInterval(this._timer),this._timer=null)},handleClick(e){this.$emit("click",e)}}},Ge=Ze,Je=Object(G["a"])(Ge,Ke,Ve,!1,null,null,null),Qe=Je.exports;Qe.install=function(e){e.component(Qe.name,Qe)};var et=Qe,tt=(i("fd93"),function(){var e=this,t=e._self._c;return t("div",{staticClass:"xt-step-price",class:{"is-disabled":e.disabled}},[e.title||e.$slots.header?t("div",{staticClass:"xt-step-price__header"},[e.title?t("xt-text",{attrs:{bold:"",size:"medium"}},[e._v(e._s(e.title))]):e._e(),e._t("header"),e.disabled||e.isLimitReached?e._e():t("xt-button",{attrs:{type:"primary",size:"small",icon:"el-icon-plus",plain:""},on:{click:e.onAdd}},[e._v("新增"+e._s(e.stepName))]),e.isLimitReached?t("xt-text",{attrs:{size:"small","type-color":"info"}},[e._v("已达上限("+e._s(e.localItems.length)+"/"+e._s(e.limit)+")")]):e._e()],2):e._e(),t("div",{staticClass:"xt-step-price__list"},e._l(e.localItems,(function(i,s){return t("XtStepPriceItem",{key:s,attrs:{value:i,index:s,"is-first":0===s,"is-last":s===e.localItems.length-1,"items-length":e.localItems.length,removable:0!==s,"min-locked":0!==s,unit:e.unit,precision:e.precision,"step-name":e.stepName,step:e.step,"left-bracket":e.leftBracket,"right-bracket":e.rightBracket,"field-keys":e.fieldKeys,disabled:e.disabled,"allow-negative":e.allowNegative},on:{input:t=>e.onItemInput(t,s),"max-change":e.onMaxChange,"min-change":e.onMinChange,delete:e.onDelete,blur:e.onFieldBlur}})})),1),0===e.localItems.length?t("div",{staticClass:"xt-step-price__empty"},[t("span",[e._v("暂无数据,点击右上角「新增"+e._s(e.stepName)+"」开始配置")])]):e._e(),e.tip||e.$slots.tip?t("div",{staticClass:"xt-step-price__tip"},[e._t("tip",(function(){return[t("xt-text",{attrs:{size:"small","type-color":"warning"}},[e._v(e._s(e.tip))])]}))],2):e._e()])}),it=[],st=function(){var e=this,t=e._self._c;return t("div",{staticClass:"xt-step-price-item"},[t("div",{staticClass:"xt-step-price-item__range"},[t("span",{staticClass:"xt-step-price-item__bracket"},[e._v(e._s(e.finalLeftBracket))]),e.itemsLength>1?t("span",{staticClass:"xt-step-price-item__name"},[e._v("第"+e._s(e.index+1)+e._s(e.stepName))]):e._e(),t("span",{staticClass:"xt-step-price-item__bracket"},[e._v(e._s(e.finalRightBracket))]),t("xt-input",{staticClass:"xt-step-price-item__input",attrs:{disabled:e.disabled||e.minLocked,size:"small",placeholder:"下限"},on:{blur:t=>{e.onMinBlur(),e.onBlur(t)}},model:{value:e.minInput,callback:function(t){e.minInput=e._n(t)},expression:"minInput"}}),t("span",{staticClass:"xt-step-price-item__comma"},[e._v("-")]),e.isLast?t("span",{staticClass:"xt-step-price-item__infinity"},[e._v("+∞")]):t("xt-input",{staticClass:"xt-step-price-item__input",attrs:{type:"number",disabled:e.disabled,size:"small",placeholder:"上限"},on:{blur:t=>{e.onMaxBlur(),e.onBlur(t)}},model:{value:e.maxInput,callback:function(t){e.maxInput=e._n(t)},expression:"maxInput"}})],1),t("div",{staticClass:"xt-step-price-item__price"},[t("xt-input",{staticClass:"xt-step-price-item__input xt-step-price-item__input--price",attrs:{type:"number",disabled:e.disabled,size:"small",placeholder:"价格"},on:{blur:t=>{e.onPriceBlur(),e.onBlur(t)}},model:{value:e.priceInput,callback:function(t){e.priceInput=e._n(t)},expression:"priceInput"}}),t("span",{staticClass:"xt-step-price-item__unit"},[e._v(e._s(e.unit))])],1),!e.disabled&&e.removable&&e.itemsLength>1?t("xt-button",{staticClass:"xt-step-price-item__delete",attrs:{type:"text",icon:"el-icon-delete"},on:{click:e.onDelete}}):e._e()],1)},rt=[],at={name:"XtStepPriceItem",props:{value:{type:Object,required:!0,default:()=>({min:0,max:null,price:0})},stepName:{type:String,default:"阶梯"},index:{type:Number,default:0},isFirst:{type:Boolean,default:!1},isLast:{type:Boolean,default:!1},itemsLength:{type:Number,default:1},removable:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},allowNegative:{type:Boolean,default:!1},minLocked:{type:Boolean,default:!1},unit:{type:String,default:"元"},precision:{type:Number,default:2},step:{type:Number,default:1},leftBracket:{type:String,default:"["},rightBracket:{type:String,default:null},fieldKeys:{type:Object,default:()=>({min:"min",max:"max",price:"price"})}},computed:{keyMin(){return this.fieldKeys&&this.fieldKeys.min||"min"},keyMax(){return this.fieldKeys&&this.fieldKeys.max||"max"},keyPrice(){return this.fieldKeys&&this.fieldKeys.price||"price"},finalRightBracket(){return null!==this.rightBracket&&void 0!==this.rightBracket&&""!==this.rightBracket?this.rightBracket:this.isLast?"]":")"},finalLeftBracket(){return null===this.leftBracket||void 0===this.leftBracket?"[":this.leftBracket}},data(){const{minVal:e,maxVal:t,priceVal:i}=this.getPriceItem(this.value);return{minInput:e,maxInput:t,priceInput:i}},watch:{value:{deep:!0,immediate:!0,handler(e){const{minVal:t,maxVal:i,priceVal:s}=this.getPriceItem(e);this.minInput=t,this.maxInput=i,this.priceInput=s}},isLast(e){if(e)this.maxInput=null;else{const e=this.safeNumber(this.minInput,0),t=this.value;this.maxInput=this.safeNumber(t&&t[this.keyMax],e+1)}}},methods:{getPriceItem(e){const t=e,i=this.safeNumber(t&&t[this.keyMin],0),s=this.isLast?null:this.safeNumber(t&&t[this.keyMax],i+1),r=this.safeNumber(t&&t[this.keyPrice],0);return{minVal:i,maxVal:s,priceVal:r}},safeNumber(e,t=0){if(null===e||void 0===e||""===e||e===1/0||e===-1/0)return t;const i=Number(e);return isNaN(i)?t:i},emitChange(e){const t={[this.keyMin]:this.minInput,[this.keyMax]:this.isLast?null:this.maxInput,[this.keyPrice]:this.priceInput,...e};this.$emit("input",t),this.$emit("change",t,this.index)},onMinBlur(){let e=this.safeNumber(this.minInput,0);0!==e&&(e=Number(e.toFixed(this.precision))),this.minInput=e,this.$emit("min-change",e,this.index),this.emitChange({[this.keyMin]:e})},onMaxBlur(){if(this.isLast)return;const e=this.safeNumber(this.minInput,0),t=this.safeNumber(this.step,1);let i=this.safeNumber(this.maxInput,e+t);i<=e&&(i=e+t),i=Number(i.toFixed(this.precision)),this.maxInput=i,this.$emit("max-change",i,this.index),this.emitChange({[this.keyMax]:i})},onPriceBlur(){const e=this.priceInput;if(null===e||void 0===e||""===e||isNaN(e))return this.priceInput="",void this.emitChange({[this.keyPrice]:""});let t=this.safeNumber(e,0);t<0&&!this.allowNegative&&(t=0),t=Number(t.toFixed(this.precision)),this.priceInput=t,this.emitChange({[this.keyPrice]:t})},onBlur(e){this.$emit("blur",e)},onDelete(){this.$emit("delete",this.index)}}},nt=at,lt=Object(G["a"])(nt,st,rt,!1,null,null,null),ot=lt.exports,ct={name:"XtStepPrice",components:{XtStepPriceItem:ot},inject:{elFormItem:{default:""}},computed:{keyMin(){return this.fieldKeys&&this.fieldKeys.min||"min"},keyMax(){return this.fieldKeys&&this.fieldKeys.max||"max"},keyPrice(){return this.fieldKeys&&this.fieldKeys.price||"price"},isLimitReached(){const e=Number(this.limit);return e>0&&this.localItems.length>=e}},props:{value:{type:Array,default:()=>[]},title:{type:String,default:""},unit:{type:String,default:"元"},stepName:{type:String,default:"阶梯"},precision:{type:Number,default:2},leftBracket:{type:String,default:"["},rightBracket:{type:String,default:null},fieldKeys:{type:Object,default:()=>({min:"min",max:"max",price:"price"})},limit:{type:Number,default:0},step:{type:Number,default:10},disabled:{type:Boolean,default:!1},allowNegative:{type:Boolean,default:!1},tip:{type:String,default:"区间左闭右闭 [min, max],最后一级为 [min, +∞),保证连续且不重叠。"},defaultFirst:{type:Boolean,default:!0}},data(){return{localItems:this.normalize(this.value)}},watch:{value:{deep:!0,immediate:!0,handler(e){this.localItems=this.normalize(e)}}},methods:{safeNumber(e,t=0){if(null===e||void 0===e||""===e||e===1/0||e===-1/0)return t;const i=Number(e);return isNaN(i)?t:i},cloneItems(e){return Array.isArray(e)?e.map(e=>{const t=e&&e[this.keyPrice];return{[this.keyMin]:this.safeNumber(e&&e[this.keyMin],0),[this.keyMax]:e&&null==e[this.keyMax]||e&&""===e[this.keyMax]?null:this.safeNumber(e[this.keyMax],null),[this.keyPrice]:null===t||void 0===t||""===t?"":this.safeNumber(t,0)}}):[]},normalize(e){const t=this.cloneItems(e);return 0===t.length&&this.defaultFirst&&t.push({[this.keyMin]:0,[this.keyMax]:null,[this.keyPrice]:0}),this.ensureContinuity(t),t},ensureContinuity(e){if(!Array.isArray(e)||0===e.length)return;e[0][this.keyMin]=0;const t=this.safeNumber(this.step,1);for(let i=0;i<e.length;i++){const s=e[i],r=e[i+1],a=this.safeNumber(s[this.keyMin],0);if(r){let e=this.safeNumber(s[this.keyMax],a+t);e<=a&&(e=a+t),e=Number(e.toFixed(this.precision)),s[this.keyMax]=e,r[this.keyMin]=e}else s[this.keyMax]=null;const n=s[this.keyPrice];s[this.keyPrice]=null===n||void 0===n||""===n?"":this.safeNumber(n,0)}},emit(){this.ensureContinuity(this.localItems);const e=this.cloneItems(this.localItems);this.$emit("input",e),this.$emit("change",e),this.dispatchFormEvent("el.form.change",e)},dispatchFormEvent(e,t){this.elFormItem&&this.elFormItem.$emit(e,t)},onFieldBlur(){this.dispatchFormEvent("el.form.blur",this.localItems)},validate(e){const t=this.localItems;if(!Array.isArray(t)||0===t.length)return e&&e(!1,[{field:"stepPrice",message:"请配置"+this.stepName,type:"error"}]),!1;const i=[];for(let s=0;s<t.length;s++){const e=t[s],r=e[this.keyPrice],a=e[this.keyMin],n=e[this.keyMax],l=this.safeNumber(r,0),o=this.safeNumber(a,0);if(null===r||void 0===r||""===r?i.push({field:`stepPrice[${s}].price`,message:`第${s+1}${this.stepName}价格不能为空`,type:"error"}):l<0&&!this.allowNegative&&i.push({field:`stepPrice[${s}].price`,message:`第${s+1}${this.stepName}价格不能为负数`,type:"error"}),null===a||void 0===a||""===a?i.push({field:`stepPrice[${s}].min`,message:`第${s+1}${this.stepName}下限不能为空`,type:"error"}):o<0&&!this.allowNegative&&i.push({field:`stepPrice[${s}].min`,message:`第${s+1}${this.stepName}下限不能为负数`,type:"error"}),this.isLast(s)||(null===n||void 0===n||""===n?i.push({field:`stepPrice[${s}].max`,message:`第${s+1}${this.stepName}上限不能为空`,type:"error"}):this.safeNumber(n,0)<=o&&i.push({field:`stepPrice[${s}].max`,message:`第${s+1}${this.stepName}上限必须大于下限`,type:"error"})),s>0){const e=t[s-1],r=e[this.keyMax];null!==r&&this.safeNumber(r,0)!==o&&i.push({field:`stepPrice[${s}].min`,message:`第${s+1}${this.stepName}下限必须等于上一${this.stepName}上限`,type:"error"})}}return i.length>0?(e&&e(!1,i),!1):(e&&e(!0),!0)},isLast(e){return e===this.localItems.length-1},onItemInput(e,t){const i=this.localItems[t];if(i&&e&&void 0!==e[this.keyPrice]){const t=e[this.keyPrice];if(null===t||void 0===t||""===t)i[this.keyPrice]="";else{let e=this.safeNumber(t,0);e=Number(e.toFixed(this.precision)),i[this.keyPrice]=e}this.emit()}},onMaxChange(e,t){const i=this.localItems[t];if(!i)return;const s=this.safeNumber(this.step,1);let r=this.safeNumber(e,this.safeNumber(i[this.keyMin],0)+s);r=Number(r.toFixed(this.precision)),i[this.keyMax]=r;const a=this.localItems[t+1];a&&(a[this.keyMin]=r),this.emit()},onMinChange(e,t){const i=this.localItems[t];if(i){if(0===t)i[this.keyMin]=0;else{let s=this.safeNumber(e,this.safeNumber(i[this.keyMin],0));0!==s&&(s=Number(s.toFixed(this.precision))),i[this.keyMin]=s;const r=this.localItems[t-1];r&&(r[this.keyMax]=s)}this.emit()}},onAdd(){const e=this.localItems,t=Number(this.limit);if(t>0&&e.length>=t)return;const i=this.safeNumber(this.step,1);if(0===e.length)return e.push({[this.keyMin]:0,[this.keyMax]:null,[this.keyPrice]:10}),void this.emit();const s=e[e.length-1],r=this.safeNumber(s[this.keyMin],0),a=r+i;let n=0;const l=[...e.slice(0,-1),{[this.keyMin]:r,[this.keyMax]:a,[this.keyPrice]:n},{[this.keyMin]:a,[this.keyMax]:null,[this.keyPrice]:n}];this.localItems=l,this.emit()},onDelete(e){const t=this.localItems;if(t.length<=1)return;if(0===e)return;const i=t[e],s=t[e-1],r=t[e+1];s&&r?s[this.keyMax]=null==i[this.keyMax]?null:Number(i[this.keyMax]):s&&!r?s[this.keyMax]=null:!s&&r&&(r[this.keyMin]=0),t.splice(e,1),this.emit()}}},ht=ct,dt=Object(G["a"])(ht,tt,it,!1,null,null,null),ut=dt.exports;ut.install=function(e){e.component(ut.name,ut),e.component(ot.name,ot)};var pt=ut;ot.install=function(e){e.component(ot.name,ot)};var ft=ot,mt=(i("c759"),function(){var e=this,t=e._self._c;return t("div",{staticClass:"xt-map-wrapper"},[t("div",{ref:"mapContainer",staticClass:"xt-map-container",attrs:{"data-theme":e.mergedTheme}}),e.loading?t("div",{staticClass:"xt-map-loading"},[t("span",[e._v("地图加载中...")])]):e._e(),e.errorMessage?t("div",{staticClass:"xt-map-error"},[t("span",[e._v(e._s(e.errorMessage))])]):e._e(),e._t("overlay")],2)}),yt=[];const gt=new Map,bt=new Map,vt=(e,t={})=>{if("undefined"===typeof window)return Promise.reject(new Error("[XtMap] 非浏览器环境"));const{charset:i="utf-8",async:s=!0,timeout:r=3e4}=t;if(gt.has(e))return gt.get(e);if(bt.has(e))return bt.get(e);const a=new Promise((t,a)=>{const n=document.createElement("script");n.type="text/javascript",n.src=e,n.charset=i,n.async=s;let l=null,o=!1;const c=()=>{o=!0,l&&clearTimeout(l),n.onload=null,n.onerror=null};n.onload=()=>{o||(c(),bt.delete(e),gt.set(e,Promise.resolve(n)),t(n))},n.onerror=t=>{o||(c(),bt.delete(e),a(new Error("[XtMap] 脚本加载失败: "+e)))},r>0&&(l=setTimeout(()=>{o||(c(),bt.delete(e),a(new Error("[XtMap] 脚本加载超时: "+e)))},r)),document.head.appendChild(n)});return bt.set(e,a),a},_t=()=>{gt.clear(),bt.clear()},xt=e=>"undefined"!==typeof window&&void 0!==window[e];const wt={standard:"standard",satellite:"satellite",hybrid:"hybrid",traffic:"traffic"};class Ct{constructor(e,t={}){this.container=e,this.options=t,this.mapInstance=null,this.mapType=t.mapType||"standard",this.theme=t.theme||"light",this.center=t.center||[116.397428,39.90923],this.zoom=t.zoom||11,this.apiKey=t.apiKey||"",this.apiUrl=t.apiUrl||null,this.plugins=t.plugins||[],this.eventHandlers=new Map,this.ready=!1,this._mapTypeMap={...wt}}getScriptUrl(){throw new Error("[XtMap] 子类必须实现 getScriptUrl()")}isSdkLoaded(){throw new Error("[XtMap] 子类必须实现 isSdkLoaded()")}beforeLoadScript(){}async createMap(){throw new Error("[XtMap] 子类必须实现 createMap()")}async init(){if(!this.container)throw new Error("[XtMap] 缺少容器元素");if(!this.isSdkLoaded()){this.beforeLoadScript();const e=this.getScriptUrl();if(!e)throw new Error("[XtMap] 缺少 API URL,请配置 apiKey 或 apiUrl");await vt(e),await this._waitForSdkReady()}return await this.createMap(),this.ready=!0,this.mapInstance}async _waitForSdkReady(){return new Promise(e=>{let t=0;const i=100,s=()=>{this.isSdkLoaded()||t>=i?e():(t++,setTimeout(s,100))};s()})}getNativeMapType(e){return this._mapTypeMap[e]||this._mapTypeMap.standard}setMapType(e){this.mapType=e,this.ready&&this.mapInstance&&this._applyMapType(e)}_applyMapType(e){}setTheme(e){this.theme=e,this.ready&&this.mapInstance&&this._applyTheme(e)}_applyTheme(e){}setCenter(e){this.center=e,this.ready&&this.mapInstance&&this._applyCenter(e)}_applyCenter(e){}setZoom(e){this.zoom=e,this.ready&&this.mapInstance&&this._applyZoom(e)}_applyZoom(e){}getCenter(){return this.center}getZoom(){return this.zoom}getNativeMap(){return this.mapInstance}on(e,t){"function"===typeof t&&(this.eventHandlers.set(e,t),this.ready&&this.mapInstance&&this._bindEvent(e,t))}_bindEvent(e,t){}off(e){const t=this.eventHandlers.get(e);t&&this.ready&&this.mapInstance&&this._unbindEvent(e,t),this.eventHandlers.delete(e)}_unbindEvent(e,t){}resize(){this.ready&&this.mapInstance&&this._applyResize()}_applyResize(){}destroy(){if(this.eventHandlers.clear(),this.mapInstance&&"function"===typeof this.mapInstance.destroy)try{this.mapInstance.destroy()}catch(e){}this.mapInstance=null,this.ready=!1}}const St={standard:"amap",satellite:"satellite",hybrid:"satellite",traffic:"traffic"},Tt={light:"amap://styles/normal",dark:"amap://styles/dark"};class kt extends Ct{constructor(e,t={}){super(e,t),this._mapTypeMap={...St},this._trafficLayer=null,this._satelliteLayer=null,this._roadnetLayer=null,this._currentLayers=[]}getScriptUrl(){return this.apiUrl?this.apiUrl:this.apiKey?`https://webapi.amap.com/maps?v=2.0&key=${encodeURIComponent(this.apiKey)}&plugin=AMap.Scale,AMap.ToolBar`:(console.warn("[XtMap] 高德地图需要配置 apiKey"),"")}beforeLoadScript(){const e=this.options.securityJsCode||"undefined"!==typeof window&&window._AMapSecurityConfig&&window._AMapSecurityConfig.securityJsCode||"";e&&"undefined"!==typeof window&&(window._AMapSecurityConfig={securityJsCode:e})}isSdkLoaded(){return xt("AMap")&&"function"===typeof window.AMap}async createMap(){const e=window.AMap;if(!e)throw new Error("[XtMap] 高德地图 SDK 未加载");const t={center:this.center,zoom:this.zoom,mapStyle:Tt[this.theme]||Tt.light,viewMode:"2D",resizeEnable:!0};this.mapInstance=new e.Map(this.container,t),this._applyMapType(this.mapType),await new Promise(e=>{this.mapInstance.on("complete",()=>e()),setTimeout(e,1500)});for(const[i,s]of this.eventHandlers.entries())this._bindEvent(i,s)}_applyMapType(e){if(!this.mapInstance)return;const t=window.AMap;if(t){this._clearLayers();try{this.mapInstance.setMapStyle(Tt[this.theme]||Tt.light),"satellite"===e?(this._satelliteLayer=new t.TileLayer.Satellite,this.mapInstance.add(this._satelliteLayer),this._currentLayers.push(this._satelliteLayer)):"hybrid"===e?(this._satelliteLayer=new t.TileLayer.Satellite,this._roadnetLayer=new t.TileLayer.RoadNet,this.mapInstance.add([this._satelliteLayer,this._roadnetLayer]),this._currentLayers.push(this._satelliteLayer,this._roadnetLayer)):"traffic"===e&&(this._trafficLayer=new t.TileLayer.Traffic({autoRefresh:!0,interval:180}),this.mapInstance.add(this._trafficLayer),this._currentLayers.push(this._trafficLayer))}catch(i){console.warn("[XtMap] 设置地图类型失败:",i)}}}_clearLayers(){if(this.mapInstance){try{this._currentLayers.length>0&&this.mapInstance.remove(this._currentLayers)}catch(e){}this._currentLayers=[],this._trafficLayer=null,this._satelliteLayer=null,this._roadnetLayer=null}}_applyTheme(e){if(this.mapInstance)try{this.mapInstance.setMapStyle(Tt[e]||Tt.light),this._applyMapType(this.mapType)}catch(t){console.warn("[XtMap] 设置主题失败:",t)}}_applyCenter(e){if(this.mapInstance)try{this.mapInstance.setCenter(e)}catch(t){}}_applyZoom(e){if(this.mapInstance)try{this.mapInstance.setZoom(e)}catch(t){}}getCenter(){if(this.mapInstance&&this.mapInstance.getCenter){const e=this.mapInstance.getCenter();return[e.lng,e.lat]}return this.center}getZoom(){return this.mapInstance&&this.mapInstance.getZoom?this.mapInstance.getZoom():this.zoom}_bindEvent(e,t){if(this.mapInstance)try{const i={click:"click",moveend:"moveend",zoomend:"zoomend",zoomchange:"zoomchange",mapmove:"mapmove",complete:"complete",resize:"resize"},s=i[e]||e;this.mapInstance.on(s,e=>{const i={originalEvent:e,lnglat:e&&e.lnglat?[e.lnglat.lng,e.lnglat.lat]:null};t(i)})}catch(i){console.warn("[XtMap] 事件绑定失败:",e,i)}}_unbindEvent(e,t){if(this.mapInstance)try{this.mapInstance.off(e,t)}catch(i){}}_applyResize(){if(this.mapInstance&&this.mapInstance.resize)try{this.mapInstance.resize()}catch(e){}}destroy(){this._clearLayers(),super.destroy()}}const Mt={standard:"vec",satellite:"img",hybrid:"img",traffic:"vec"},zt={light:"none",dark:"invert(1) hue-rotate(180deg) saturate(1.2) brightness(0.95)"};class $t extends Ct{constructor(e,t={}){super(e,t),this._mapTypeMap={...Mt},this._layerType=t.tiandituLayerType||"vec",this._currentLayer=null,this._annotationLayer=null}getScriptUrl(){return this.apiUrl?this.apiUrl:this.apiKey?"https://api.tianditu.gov.cn/api?v=4.0&tk="+encodeURIComponent(this.apiKey):(console.warn("[XtMap] 天地图需要配置 apiKey (tk)"),"")}isSdkLoaded(){return xt("T")&&"object"===typeof window.T&&window.T.Map}async createMap(){const e=window.T;if(!e||!e.Map)throw new Error("[XtMap] 天地图 SDK 未加载");const t={center:new e.LngLat(this.center[0],this.center[1]),zoom:this.zoom};this.mapInstance=new e.Map(this.container,t),this._applyMapType(this.mapType),this._applyTheme(this.theme),await new Promise(e=>{setTimeout(e,500)});for(const[i,s]of this.eventHandlers.entries())this._bindEvent(i,s)}_applyMapType(e){if(!this.mapInstance)return;const t=window.T;if(t)try{this._mapTypeMap[e];"standard"===e?this.mapInstance.setMapType(window.TMAP_NORMAL_MAP||1):"satellite"===e?this.mapInstance.setMapType(window.TMAP_SATELLITE_MAP||2):"hybrid"===e?this.mapInstance.setMapType(window.TMAP_HYBRID_MAP||3):this.mapInstance.setMapType(window.TMAP_NORMAL_MAP||1)}catch(i){console.warn("[XtMap] 天地图切换地图类型失败:",i)}}_applyTheme(e){if(!this.container)return;const t=zt[e]||"none",i=this.container.querySelectorAll("img");i.forEach(e=>{e.style.filter=t,e.style.webkitFilter=t}),this.container.setAttribute("data-map-theme",e),this._setupThemeObserver(e)}_setupThemeObserver(e){if(this._themeObserver&&this._themeObserver.disconnect(),"dark"!==e)return;const t=zt[e];this._themeObserver=new MutationObserver(e=>{e.forEach(e=>{e.addedNodes.forEach(e=>{if(1===e.nodeType)if("IMG"===e.tagName)e.style.filter=t,e.style.webkitFilter=t;else if(e.querySelectorAll){const i=e.querySelectorAll("img");i.forEach(e=>{e.style.filter=t,e.style.webkitFilter=t})}})})});try{this._themeObserver.observe(this.container,{childList:!0,subtree:!0})}catch(i){}}_applyCenter(e){if(this.mapInstance&&window.T)try{this.mapInstance.centerAndZoom(new window.T.LngLat(e[0],e[1]),this.zoom)}catch(t){}}_applyZoom(e){if(this.mapInstance)try{this.mapInstance.setZoom(e)}catch(t){}}getCenter(){if(this.mapInstance&&this.mapInstance.getCenter){const e=this.mapInstance.getCenter();if(e&&void 0!==e.getLng)return[e.getLng(),e.getLat()]}return this.center}getZoom(){return this.mapInstance&&this.mapInstance.getZoom?this.mapInstance.getZoom():this.zoom}_bindEvent(e,t){if(this.mapInstance)try{const i={click:"click",moveend:"moveend",zoomend:"zoomend",zoomchange:"zoomend"},s=i[e]||e;this.mapInstance.addEventListener(s,e=>{const i={originalEvent:e,lnglat:e&&e.lnglat?[e.lnglat.getLng(),e.lnglat.getLat()]:null};t(i)})}catch(i){console.warn("[XtMap] 天地图事件绑定失败:",e,i)}}_unbindEvent(e,t){if(this.mapInstance)try{this.mapInstance.removeEventListener(e,t)}catch(i){}}_applyResize(){if(this.mapInstance&&this.mapInstance.checkResize)try{this.mapInstance.checkResize()}catch(e){}}destroy(){if(this._themeObserver&&(this._themeObserver.disconnect(),this._themeObserver=null),this.mapInstance&&"function"===typeof this.mapInstance.clearOverLays)try{this.mapInstance.clearOverLays()}catch(e){}super.destroy()}}const Lt={standard:"BMAP_NORMAL_MAP",satellite:"BMAP_SATELLITE_MAP",hybrid:"BMAP_HYBRID_MAP",traffic:"BMAP_NORMAL_MAP"},It={light:{style:"normal"},dark:{style:"dark"}};class At extends Ct{constructor(e,t={}){super(e,t),this._mapTypeMap={...Lt},this._coordType=t.baiduCoordType||"bd09ll",this._trafficLayer=null,this._callbackName=null}getScriptUrl(){return this.apiUrl?this.apiUrl:this.apiKey?`https://api.map.baidu.com/api?v=3.0&ak=${encodeURIComponent(this.apiKey)}&callback=${this._callbackName}`:(console.warn("[XtMap] 百度地图需要配置 apiKey (ak)"),"")}beforeLoadScript(){this._callbackName=`__xt_map_baidu_${Date.now()}_${Math.floor(1e5*Math.random())}`,"undefined"!==typeof window&&(window[this._callbackName]=()=>{})}isSdkLoaded(){return xt("BMap")&&"function"===typeof window.BMap}async createMap(){const e=window.BMap;if(!e)throw new Error("[XtMap] 百度地图 SDK 未加载");const t={enableMapClick:!1};this.mapInstance=new e.Map(this.container,t),this.mapInstance.centerAndZoom(new e.Point(this.center[0],this.center[1]),this.zoom),this.mapInstance.enableScrollWheelZoom(!0),this._applyMapType(this.mapType),this._applyTheme(this.theme),await new Promise(e=>setTimeout(e,500));for(const[i,s]of this.eventHandlers.entries())this._bindEvent(i,s)}_applyMapType(e){if(this.mapInstance&&window.BMap)try{if(this._trafficLayer){try{this.mapInstance.removeTileLayer(this._trafficLayer)}catch(t){}this._trafficLayer=null}if("satellite"===e)this.mapInstance.setMapType(window.BMAP_SATELLITE_MAP||1);else if("hybrid"===e)this.mapInstance.setMapType(window.BMAP_HYBRID_MAP||2);else if("traffic"===e){this.mapInstance.setMapType(window.BMAP_NORMAL_MAP||0);try{const e=window.BMap;this._trafficLayer=new e.TrafficLayer,this.mapInstance.addTileLayer(this._trafficLayer)}catch(t){console.warn("[XtMap] 百度地图加载路况图层失败:",t)}}else this.mapInstance.setMapType(window.BMAP_NORMAL_MAP||0)}catch(t){console.warn("[XtMap] 百度地图切换地图类型失败:",t)}}_applyTheme(e){if(this.mapInstance&&window.BMap)try{const t=It[e]||It.light;if(this.mapInstance.setMapStyleV2)this.mapInstance.setMapStyleV2({styleId:"dark"===t.style?"midnight":""});else if(this.mapInstance.setMapStyle){const t="dark"===e?this._getDarkStyleJson():null;t&&this.mapInstance.setMapStyle({styleJson:t})}}catch(t){console.warn("[XtMap] 百度地图设置主题失败:",t)}}_getDarkStyleJson(){return[{featureType:"land",elementType:"geometry",stylers:{color:"#1a1a1a"}},{featureType:"water",elementType:"geometry",stylers:{color:"#0a1a2a"}},{featureType:"green",elementType:"geometry",stylers:{color:"#0a2a1a"}},{featureType:"building",elementType:"geometry",stylers:{color:"#2a2a2a"}},{featureType:"highway",elementType:"geometry",stylers:{color:"#3a3a3a"}},{featureType:"highway",elementType:"geometry.stroke",stylers:{color:"#4a4a4a"}},{featureType:"arterial",elementType:"geometry",stylers:{color:"#333333"}},{featureType:"arterial",elementType:"geometry.stroke",stylers:{color:"#3d3d3d"}},{featureType:"local",elementType:"geometry",stylers:{color:"#2a2a2a"}},{featureType:"railway",elementType:"geometry",stylers:{color:"#3a3a3a"}},{featureType:"subway",elementType:"geometry",stylers:{color:"#3a3a3a"}},{featureType:"boundary",elementType:"geometry",stylers:{color:"#666666"}},{featureType:"district",elementType:"labels.text.fill",stylers:{color:"#888888"}},{featureType:"poi",elementType:"labels",stylers:{visibility:"off"}}]}_applyCenter(e){if(this.mapInstance&&window.BMap)try{this.mapInstance.centerAndZoom(new window.BMap.Point(e[0],e[1]),this.zoom)}catch(t){}}_applyZoom(e){if(this.mapInstance)try{this.mapInstance.setZoom(e)}catch(t){}}getCenter(){if(this.mapInstance&&this.mapInstance.getCenter){const e=this.mapInstance.getCenter();if(e)return[e.lng,e.lat]}return this.center}getZoom(){return this.mapInstance&&this.mapInstance.getZoom?this.mapInstance.getZoom():this.zoom}_bindEvent(e,t){if(this.mapInstance)try{const i={click:"click",moveend:"moveend",zoomend:"zoomend",zoomchange:"zoomend",mapmove:"movestart"},s=i[e]||e;this.mapInstance.addEventListener(s,e=>{const i={originalEvent:e,lnglat:e&&e.point?[e.point.lng,e.point.lat]:null};t(i)})}catch(i){console.warn("[XtMap] 百度地图事件绑定失败:",e,i)}}_unbindEvent(e,t){if(this.mapInstance)try{this.mapInstance.removeEventListener(e,t)}catch(i){}}_applyResize(){if(this.mapInstance&&this.mapInstance.enableResize)try{"function"===typeof this.mapInstance.checkResize&&this.mapInstance.checkResize()}catch(e){}}destroy(){if(this._callbackName&&"undefined"!==typeof window)try{delete window[this._callbackName]}catch(e){}super.destroy()}}const Nt={amap:kt,tianditu:$t,baidu:At},Ot=e=>Nt[e]||kt;const Et=["amap","tianditu","baidu"],Pt=["standard","satellite","hybrid","traffic"],Dt=["light","dark"],Bt={provider:"amap",apiKey:"",apiUrl:null,mapType:"standard",theme:"light",center:[116.397428,39.90923],zoom:11,plugins:[],securityJsCode:null,tiandituLayerType:"vec",baiduCoordType:"bd09ll"};let Rt={...Bt};const Ft=[],jt=(e,t)=>{Ft.forEach(i=>{try{i(e,t)}catch(s){console.warn("[XtMap] 配置变更监听异常:",s)}})},Xt=()=>({...Rt}),Ht=e=>{Et.includes(e)?(Rt.provider=e,jt("provider",e)):console.warn(`[XtMap] 无效的地图提供商: ${e},可选: ${Et.join(", ")}`)},Kt=e=>{Rt.apiKey=e,jt("apiKey",e)},Vt=e=>{Rt.apiUrl=e,jt("apiUrl",e)},Ut=e=>{Pt.includes(e)?(Rt.mapType=e,jt("mapType",e)):console.warn(`[XtMap] 无效的地图类型: ${e},可选: ${Pt.join(", ")}`)},Wt=e=>{Dt.includes(e)?(Rt.theme=e,jt("theme",e)):console.warn(`[XtMap] 无效的主题: ${e},可选: ${Dt.join(", ")}`)},Yt=e=>{Array.isArray(e)&&2===e.length?(Rt.center=e,jt("center",e)):console.warn("[XtMap] center 必须是 [lng, lat] 数组")},qt=e=>{const t=Number(e);isNaN(t)?console.warn("[XtMap] zoom 必须是数字"):(Rt.zoom=t,jt("zoom",t))},Zt=e=>{Array.isArray(e)?(Rt.plugins=e,jt("plugins",e)):console.warn("[XtMap] plugins 必须是数组")},Gt=e=>{Rt.securityJsCode=e,"undefined"!==typeof window&&e&&(window._AMapSecurityConfig={securityJsCode:e,...window._AMapSecurityConfig||{}}),jt("securityJsCode",e)},Jt=()=>Rt.provider,Qt=()=>Rt.apiKey,ei=()=>Rt.apiUrl,ti=()=>Rt.mapType,ii=()=>Rt.theme,si=()=>Rt.center,ri=()=>Rt.zoom,ai=()=>Rt.plugins,ni=e=>{if("function"===typeof e)return Ft.push(e),()=>{const t=Ft.indexOf(e);t>-1&&Ft.splice(t,1)}};var li={name:"XtMap",props:{provider:{type:String,default:"",validator:e=>""===e||Et.includes(e)},apiKey:{type:String,default:""},apiUrl:{type:String,default:""},mapType:{type:String,default:"",validator:e=>""===e||Pt.includes(e)},theme:{type:String,default:"",validator:e=>""===e||Dt.includes(e)},center:{type:Array,default:()=>null},zoom:{type:Number,default:null},plugins:{type:Array,default:()=>[]},width:{type:String,default:"100%"},height:{type:String,default:"400px"},securityJsCode:{type:String,default:""},tiandituLayerType:{type:String,default:"vec"},baiduCoordType:{type:String,default:"bd09ll"}},data(){return{loading:!0,errorMessage:"",adapter:null,_unsubscribeConfig:null}},computed:{mergedProvider(){return this.provider||Jt()||"amap"},mergedApiKey(){return this.apiKey||Qt()||""},mergedApiUrl(){return this.apiUrl||ei()||""},mergedMapType(){return this.mapType||ti()||"standard"},mergedTheme(){return this.theme||ii()||"light"},mergedCenter(){return this.center||si()||[116.397428,39.90923]},mergedZoom(){return null!==this.zoom?this.zoom:ri()},mergedSecurityJsCode(){return this.securityJsCode||Xt().securityJsCode||""},mergedPlugins(){return this.plugins.length>0?this.plugins:Xt().plugins||[]}},watch:{mergedProvider:{handler(){this.$nextTick(()=>this.rebuildMap())}},mergedApiKey:{handler(){this.$nextTick(()=>this.rebuildMap())}},mergedMapType:{handler(e){this.adapter&&this.adapter.setMapType(e)}},mergedTheme:{handler(e){this.adapter&&this.adapter.setTheme(e),this.$refs.mapContainer&&this.$refs.mapContainer.setAttribute("data-theme",e)}},mergedCenter:{handler(e){this.adapter&&this.adapter.setCenter(e)}},mergedZoom:{handler(e){this.adapter&&this.adapter.setZoom(e)}},width:{handler(){this.$nextTick(()=>{this.adapter&&this.adapter.resize()})}},height:{handler(){this.$nextTick(()=>{this.adapter&&this.adapter.resize()})}},securityJsCode:{handler(e){e&&(Gt(e),"amap"===this.mergedProvider&&this.adapter&&this.adapter.ready&&this.$nextTick(()=>this.rebuildMap()))}}},mounted(){this._unsubscribeConfig=ni((e,t)=>{this.provider||"provider"!==e||this.$nextTick(()=>this.rebuildMap()),this.apiKey||"apiKey"!==e||this.$nextTick(()=>this.rebuildMap()),this.apiUrl||"apiUrl"!==e||this.$nextTick(()=>this.rebuildMap()),!this.theme&&"theme"===e&&this.adapter&&this.adapter.setTheme(t),!this.mapType&&"mapType"===e&&this.adapter&&this.adapter.setMapType(t),!this.center&&"center"===e&&this.adapter&&this.adapter.setCenter(t),null===this.zoom&&"zoom"===e&&this.adapter&&this.adapter.setZoom(t)}),this.securityJsCode&&Gt(this.securityJsCode),this.$nextTick(()=>this.initMap()),this._onWindowResize=()=>{this.adapter&&this.adapter.resize()},"undefined"!==typeof window&&window.addEventListener("resize",this._onWindowResize)},beforeDestroy(){this.destroyMap(),this._unsubscribeConfig&&this._unsubscribeConfig(),this._onWindowResize&&"undefined"!==typeof window&&window.removeEventListener("resize",this._onWindowResize)},methods:{async initMap(){const e=this.$refs.mapContainer;if(!e)return;e.style.width=this.width,e.style.height=this.height,this.securityJsCode&&Gt(this.securityJsCode),this.loading=!0,this.errorMessage="";const t=Ot(this.mergedProvider);this.adapter=new t(e,{apiKey:this.mergedApiKey,apiUrl:this.mergedApiUrl,mapType:this.mergedMapType,theme:this.mergedTheme,center:this.mergedCenter,zoom:this.mergedZoom,plugins:this.mergedPlugins,securityJsCode:this.mergedSecurityJsCode,tiandituLayerType:this.tiandituLayerType,baiduCoordType:this.baiduCoordType});try{await this.adapter.init(),this.loading=!1,this._bindAdapterEvents(),this.$emit("ready",{provider:this.mergedProvider,map:this.adapter.getNativeMap(),adapter:this.adapter})}catch(i){this.loading=!1,this.errorMessage=i.message||"地图初始化失败",this.$emit("error",i)}},rebuildMap(){this.destroyMap(),"function"===typeof _t&&_t(),this.$nextTick(()=>this.initMap())},destroyMap(){this.adapter&&(this.adapter.destroy(),this.adapter=null)},_bindAdapterEvents(){if(!this.adapter)return;const e=["click","moveend","zoomend","zoomchange","mapmove"];e.forEach(e=>{this.adapter.on(e,t=>{this.$emit(e,t)})})},setCenter(e){this.adapter&&this.adapter.setCenter(e)},setZoom(e){this.adapter&&this.adapter.setZoom(e)},setMapType(e){this.adapter&&this.adapter.setMapType(e)},setTheme(e){this.adapter&&this.adapter.setTheme(e)},getCenter(){return this.adapter?this.adapter.getCenter():this.mergedCenter},getZoom(){return this.adapter?this.adapter.getZoom():this.mergedZoom},getNativeMap(){return this.adapter?this.adapter.getNativeMap():null},resize(){this.adapter&&this.adapter.resize()},on(e,t){this.adapter&&this.adapter.on(e,t)},off(e){this.adapter&&this.adapter.off(e)},rebuild(){this.rebuildMap()}}},oi=li,ci=Object(G["a"])(oi,mt,yt,!1,null,null,null),hi=ci.exports;hi.install=function(e){e.component(hi.name,hi)};var di=hi,ui=function(){var e=this,t=e._self._c;return t("div",{class:["xt-map-provider",{"xt-map-provider--dark":"dark"===e.mergedTheme}],style:e.wrapperStyle},[e._t("default")],2)},pi=[],fi={name:"XtMapProvider",props:{provider:{type:String,default:"",validator:e=>""===e||Et.includes(e)},apiKey:{type:String,default:""},apiUrl:{type:String,default:""},mapType:{type:String,default:"",validator:e=>""===e||Pt.includes(e)},theme:{type:String,default:"",validator:e=>""===e||Dt.includes(e)},center:{type:Array,default:()=>null},zoom:{type:Number,default:null},plugins:{type:Array,default:()=>[]},securityJsCode:{type:String,default:""},tag:{type:String,default:"div"}},data(){return{mergedTheme:this.theme||ii()||"light"}},computed:{wrapperStyle(){return{}}},watch:{provider:{immediate:!0,handler(e){e&&Ht(e)}},apiKey:{immediate:!0,handler(e){e&&Kt(e)}},apiUrl:{immediate:!0,handler(e){e&&Vt(e)}},mapType:{immediate:!0,handler(e){e&&Ut(e)}},theme:{immediate:!0,handler(e){e&&(Wt(e),this.mergedTheme=e)}},center:{immediate:!0,handler(e){e&&Yt(e)}},zoom:{immediate:!0,handler(e){null!==e&&void 0!==e&&qt(e)}},plugins:{immediate:!0,handler(e){e&&e.length>0&&Zt(e)}},securityJsCode:{immediate:!0,handler(e){e&&Gt(e)}}},provide(){return{xtMapConfig:{getProvider:()=>this.provider||Jt(),getApiKey:()=>this.apiKey||Qt(),getApiUrl:()=>this.apiUrl||ei(),getMapType:()=>this.mapType||ti(),getTheme:()=>this.theme||ii(),getCenter:()=>this.center||si(),getZoom:()=>null!==this.zoom?this.zoom:ri(),getPlugins:()=>this.plugins.length>0?this.plugins:ai(),getConfig:()=>({provider:this.provider||Jt(),apiKey:this.apiKey||Qt(),apiUrl:this.apiUrl||ei(),mapType:this.mapType||ti(),theme:this.theme||ii(),center:this.center||si(),zoom:null!==this.zoom?this.zoom:ri()})}}},created(){this._unsubscribe=ni((e,t)=>{"theme"===e&&(this.mergedTheme=this.theme||t)})},beforeDestroy(){this._unsubscribe&&this._unsubscribe()}},mi=fi,yi=(i("3cef"),Object(G["a"])(mi,ui,pi,!1,null,"16f243b0",null)),gi=yi.exports;gi.install=function(e){e.component(gi.name,gi)};var bi=gi,vi=(i("4202"),function(){var e=this,t=e._self._c;return t("div",{staticClass:"xt-grid-box",style:e.styleAttrs},[e._t("default")],2)}),_i=[],xi={name:"XtGridBox",props:{columns:{type:[String,Array,Number],default:"1fr"},rows:{type:[String,Array],default:"auto"},gap:{type:String,default:""},rowGap:{type:String,default:""},colGap:{type:String,default:""},flow:{type:String,default:"row",validator:e=>["row","column","row dense","column dense"].includes(e)},areas:{type:[String,Array],default:""},align:{type:String,default:"stretch",validator:e=>["start","end","center","stretch","baseline"].includes(e)},justify:{type:String,default:"start",validator:e=>["start","end","center","space-between","space-around","space-evenly","stretch"].includes(e)},responsive:{type:Object,default:()=>({})},autoFlow:{type:String,default:""}},computed:{styleAttrs(){const e={display:"grid"};return"number"===typeof this.columns?e.gridTemplateColumns=`repeat(${this.columns}, 1fr)`:Array.isArray(this.columns)?e.gridTemplateColumns=this.columns.join(" "):e.gridTemplateColumns=this.columns,Array.isArray(this.rows)?e.gridTemplateRows=this.rows.join(" "):e.gridTemplateRows=this.rows,this.gap?e.gap=this.gap:(this.rowGap&&(e.rowGap=this.rowGap),this.colGap&&(e.columnGap=this.colGap)),this.flow&&(e.gridAutoFlow=this.flow),this.areas&&(Array.isArray(this.areas)?e.gridTemplateAreas=this.areas.map(e=>`"${e}"`).join(" "):e.gridTemplateAreas=this.areas),this.align&&(e.placeItems=this.align),this.justify&&(e.placeContent=this.justify),Object.keys(this.responsive).length>0&&this.addResponsiveStyles(e),e}},methods:{addResponsiveStyles(e){const t={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)"};Object.entries(this.responsive).forEach(([e,i])=>{if(t[e]){t[e]}})}}},wi=xi,Ci=Object(G["a"])(wi,vi,_i,!1,null,null,null),Si=Ci.exports;Si.install=function(e){e.component(Si.name,Si)};var Ti=Si,ki=function(){var e=this,t=e._self._c;return t("div",{staticClass:"xt-grid-item",style:e.styleAttrs},[e._t("default")],2)},Mi=[],zi={name:"XtGridItem",props:{span:{type:Number,default:1,validator:e=>e>=1},rowSpan:{type:Number,default:1,validator:e=>e>=1},start:{type:Number,default:0,validator:e=>e>=0},rowStart:{type:Number,default:0,validator:e=>e>=0},area:{type:String,default:""},justifySelf:{type:String,default:"auto",validator:e=>["auto","start","end","center","stretch"].includes(e)},alignSelf:{type:String,default:"auto",validator:e=>["auto","start","end","center","stretch","baseline"].includes(e)},customClass:{type:String,default:""}},computed:{styleAttrs(){const e={};return this.span>1&&(e.gridColumnEnd="span "+this.span),this.rowSpan>1&&(e.gridRowEnd="span "+this.rowSpan),this.start>0&&(e.gridColumnStart=this.start),this.rowStart>0&&(e.gridRowStart=this.rowStart),this.area&&(e.gridArea=this.area),this.justifySelf&&"auto"!==this.justifySelf&&(e.justifySelf=this.justifySelf),this.alignSelf&&"auto"!==this.alignSelf&&(e.alignSelf=this.alignSelf),e}}},$i=zi,Li=(i("b574"),Object(G["a"])($i,ki,Mi,!1,null,"160dc1ff",null)),Ii=Li.exports;Ii.install=function(e){e.component(Ii.name,Ii)};var Ai=Ii,Ni=(i("2e12"),function(){var e=this,t=e._self._c;return t("div",{staticClass:"xt-progress",class:["xt-progress--"+e.type,"xt-progress--"+e.size]},["line"===e.type?t("div",{staticClass:"xt-progress__bar"},[t("div",{staticClass:"xt-progress__bar-inner",style:{width:e.percentage+"%",backgroundColor:e.color}},[t("transition",{attrs:{name:"xt-progress-fade"}},[e.showText?t("div",{staticClass:"xt-progress__bar-text"},[e._v(e._s(e.percentage)+"%")]):e._e()])],1)]):"circle"===e.type?t("div",{staticClass:"xt-progress__circle"},[t("svg",{staticClass:"xt-progress__circle-svg",attrs:{width:e.circleSize,height:e.circleSize}},[t("circle",{staticClass:"xt-progress__circle-bg",attrs:{cx:e.circleSize/2,cy:e.circleSize/2,r:e.circleRadius,fill:"none",stroke:e.bgColor,"stroke-width":e.strokeWidth}}),t("circle",{staticClass:"xt-progress__circle-bar",attrs:{cx:e.circleSize/2,cy:e.circleSize/2,r:e.circleRadius,fill:"none",stroke:e.color,"stroke-width":e.strokeWidth,"stroke-dasharray":e.circleLength,"stroke-dashoffset":e.circleOffset,"stroke-linecap":"round",transform:"rotate(-90 ${circleSize / 2} ${circleSize / 2})"}})]),e.showText?t("div",{staticClass:"xt-progress__circle-text"},[t("span",{staticClass:"xt-progress__circle-percent"},[e._v(e._s(e.percentage)+"%")])]):e._e()]):e._e(),e.showText&&"line"===e.type?t("div",{staticClass:"xt-progress__text"},[e._v(e._s(e.percentage)+"%")]):e._e()])}),Oi=[],Ei={name:"XtProgress",props:{percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},type:{type:String,default:"line",validator:e=>["line","circle"].includes(e)},size:{type:String,default:"medium",validator:e=>["small","medium","large"].includes(e)},color:{type:String,default:"#1890ff"},bgColor:{type:String,default:"#ebeef5"},showText:{type:Boolean,default:!0},strokeWidth:{type:Number,default:6},circleSize:{type:Number,default:120}},computed:{circleRadius(){return(this.circleSize-this.strokeWidth)/2},circleLength(){return 2*Math.PI*this.circleRadius},circleOffset(){return this.circleLength*(1-this.percentage/100)}}},Pi=Ei,Di=Object(G["a"])(Pi,Ni,Oi,!1,null,null,null),Bi=Di.exports;Bi.install=function(e){e.component(Bi.name,Bi)};var Ri=Bi,Fi=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"xt-tab-pane"},[e._t("default")],2)},ji=[],Xi={name:"XtTabPane",props:{name:{type:[String,Number],required:!0},label:{type:String,default:""},disabled:{type:Boolean,default:!1},closable:{type:Boolean,default:!0}},computed:{isActive(){return this.$parent&&this.$parent.activeName===this.name}},mounted(){this.$parent&&"function"===typeof this.$parent.addPane&&this.$parent.addPane({name:this.name,label:this.label,disabled:this.disabled,closable:this.closable})},beforeDestroy(){this.$parent&&"function"===typeof this.$parent.removePane&&this.$parent.removePane(this.name)}},Hi=Xi,Ki=Object(G["a"])(Hi,Fi,ji,!1,null,null,null),Vi=Ki.exports;Vi.install=function(e){e.component(Vi.name,Vi)};var Ui=Vi,Wi=(i("e8d2"),function(){var e=this,t=e._self._c;return t("div",{ref:"tabsWrap",staticClass:"xt-tabs",class:["xt-tabs--"+e.actualPosition,{"xt-tabs--card":"card"===e.type},{"xt-tabs--border-card":"border-card"===e.type},{"xt-tabs--editable":e.editable}]},[t("div",{ref:"tabsHeader",staticClass:"xt-tabs__header"},[t("div",{ref:"tabsNav",staticClass:"xt-tabs__nav"},[e._l(e.panes,(function(i,s){return t("div",{key:i.name,staticClass:"xt-tabs__nav-item",class:{"xt-tabs__nav-item--active":e.activeName===i.name,"xt-tabs__nav-item--disabled":i.disabled},on:{click:function(t){return e.handleTabClick(i)}}},[t("span",{staticClass:"xt-tabs__nav-link"},[e._v(e._s(i.label))]),!e.closable&&!i.closable||e.editable?e._e():t("span",{staticClass:"xt-tabs__close",on:{click:function(t){return t.stopPropagation(),e.handleTabRemove(i.name)}}},[e._v("×")])])})),e.addable||e.editable?t("div",{staticClass:"xt-tabs__nav-item xt-tabs__nav-item--add",on:{click:e.handleTabAdd}},[t("span",[e._v("+")])]):e._e()],2),t("div",{staticClass:"xt-tabs__nav-indicator",style:e.indicatorStyle})]),t("div",{staticClass:"xt-tabs__content"},[e._t("default")],2)])}),Yi=[],qi={name:"XtTabs",props:{value:{type:[String,Number],default:""},type:{type:String,default:"",validator:e=>["","card","border-card"].includes(e)},position:{type:String,default:"top",validator:e=>["top","bottom","left","right"].includes(e)},tabPosition:{type:String,default:""},closable:{type:Boolean,default:!1},addable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1}},data(){return{panes:[],activeName:this.value}},computed:{actualPosition(){return this.tabPosition||this.position},indicatorStyle(){const e=this.panes.findIndex(e=>e.name===this.activeName);if(-1===e||!this.$refs.tabsNav)return{display:"none"};const t=this.$refs.tabsNav.querySelectorAll(".xt-tabs__nav-item:not(.xt-tabs__nav-item--add)");if(!t||0===t.length)return{display:"none"};const i=t[e];if(!i)return{display:"none"};const s=this.actualPosition,r={transition:"all 0.3s ease"};return"top"===s||"bottom"===s?{...r,left:i.offsetLeft+"px",width:i.offsetWidth+"px",height:"2px",bottom:"top"===s?0:"auto",top:"bottom"===s?0:"auto",display:"block"}:{...r,top:i.offsetTop+"px",height:i.offsetHeight+"px",width:"2px",left:"left"===s?"auto":0,right:"right"===s?0:"auto",display:"block"}}},watch:{value(e){this.activeName=e},activeName(e){this.$emit("input",e),this.$emit("change",e),this.$nextTick(()=>this.$forceUpdate())},panes:{handler(){this.$nextTick(()=>this.$forceUpdate())},deep:!0}},methods:{handleTabClick(e){e.disabled||(this.activeName=e.name,this.$emit("tab-click",e))},handleTabRemove(e){this.$emit("tab-remove",e),this.$emit("edit",e,"remove");const t=this.panes.findIndex(t=>t.name===e);t>-1&&(this.panes.splice(t,1),this.activeName===e&&this.panes.length>0&&(this.activeName=this.panes[0].name))},handleTabAdd(){this.$emit("tab-add"),this.$emit("edit",null,"add")},addPane(e){const t=this.panes.some(t=>t.name===e.name);t||(this.panes.push(e),this.activeName||1!==this.panes.length||(this.activeName=e.name),this.$nextTick(()=>this.$forceUpdate()))},removePane(e){const t=this.panes.findIndex(t=>t.name===e);t>-1&&(this.panes.splice(t,1),this.$nextTick(()=>this.$forceUpdate()))},collectPanes(){this.panes=[],this.$children.forEach(e=>{"XtTabPane"===e.$options.name&&this.addPane({name:e.name,label:e.label,disabled:e.disabled,closable:e.closable})})}},mounted(){this.$nextTick(()=>{this.collectPanes(),this.$watch(()=>this.$children,()=>{this.collectPanes()},{flush:"post"})})}},Zi=qi,Gi=Object(G["a"])(Zi,Wi,Yi,!1,null,null,null),Ji=Gi.exports;Ji.install=function(e){e.component(Ji.name,Ji)};var Qi=Ji,es=(i("bf3f"),function(){var e=this,t=e._self._c;return t("span",{class:e.rootClasses},[t("span",{staticClass:"xt-badge__content"},[e._t("default")],2),e.hidden||!e.value&&!e.isDot?e._e():t("span",{staticClass:"xt-badge__badge",style:e.badgeStyle},[e.isDot?t("span"):e.isOverflow?t("span",[e._v(e._s(e.overflowText))]):t("span",[e._v(e._s(e.value))])])])}),ts=[],is={name:"XtBadge",props:{value:{type:[Number,String],default:""},type:{type:String,default:"primary",validator:e=>["primary","success","warning","danger","info"].includes(e)},max:{type:Number,default:99},isDot:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},showOverflow:{type:Boolean,default:!0},fixed:{type:Boolean,default:!1},color:{type:String,default:""}},computed:{rootClasses(){return["xt-badge","xt-badge--"+this.type,{"xt-badge--dot":this.isDot},{"xt-badge--hidden":this.hidden},{"xt-badge--fixed":this.fixed}]},badgeStyle(){const e={};return this.color&&(e.backgroundColor=this.color),e},overflowText(){return this.max+"+"},isOverflow(){return this.showOverflow&&this.value>this.max}}},ss=is,rs=Object(G["a"])(ss,es,ts,!1,null,null,null),as=rs.exports;as.install=function(e){e.component(as.name,as)};var ns=as,ls=(i("c828"),function(){var e=this,t=e._self._c;return t("div",{staticClass:"xt-date-picker-container"},[e.showDimension?t("div",{staticClass:"xt-date-dimension"},[t("el-radio-group",{attrs:{size:"small"},model:{value:e.dimension,callback:function(t){e.dimension=t},expression:"dimension"}},[t("el-radio-button",{attrs:{label:"date"}},[e._v("日")]),t("el-radio-button",{attrs:{label:"month"}},[e._v("月")]),t("el-radio-button",{attrs:{label:"year"}},[e._v("年")]),t("el-radio-button",{attrs:{label:"daterange"}},[e._v("自定义")])],1)],1):e._e(),t("div",{staticClass:"xt-date-picker-wrapper"},[e.useRangeMode?t("RangeDate",{staticClass:"xt-date",class:{focus:e.isfocus},style:e.width?{width:e.width+"px"}:{},attrs:{type:e.rangeDateType,separator:e.separator,disabled:e.disabled},on:{focus:function(t){e.isfocus=!0,e.$emit("focus")},blur:function(t){e.isfocus=!1,e.$emit("blur")}},model:{value:e.rangeValue,callback:function(t){e.rangeValue=t},expression:"rangeValue"}}):e._e(),e.useRangeMode||"quarter"===e.realDateType?e.useRangeMode||"quarter"!==e.realDateType?e._e():t("Picker",{staticClass:"xt-date",attrs:{type:"quarter",size:"small",disabled:e.disabled,placeholder:e.innerPlaceholder},on:{focus:function(t){e.isfocus=!0,e.$emit("focus")},blur:function(t){e.isfocus=!1,e.$emit("blur")}},model:{value:e.singleValue,callback:function(t){e.singleValue=t},expression:"singleValue"}}):t("el-date-picker",{ref:"singlePicker",staticClass:"xt-date",attrs:{size:"small",disabled:e.disabled,"append-to-body":"",format:e.format,type:e.realDateType,placeholder:e.innerPlaceholder,clearable:""},on:{focus:function(t){e.isfocus=!0,e.$emit("focus")},blur:function(t){e.isfocus=!1,e.$emit("blur")}},model:{value:e.singleValue,callback:function(t){e.singleValue=t},expression:"singleValue"}})],1)])}),os=[];const cs={datetime:"yyyy-MM-dd HH:mm",month:"yyyy-MM",year:"yyyy",date:"yyyy-MM-dd",quarter:"yyyy-Qq",week:"yyyy-WW"},hs={date:"yyyy-MM-dd",month:"yyyy-MM",year:"yyyy",daterange:"yyyy-MM-dd"},ds={date:"date",month:"month",year:"year",daterange:"date"},us={date:"date",month:"month",year:"year",quarter:"quarter",week:"week"};var ps={name:"XtDatePicker",components:{RangeDate:()=>i.e(1).then(i.bind(null,"1db3")),Picker:()=>i.e(2).then(i.bind(null,"b0ea"))},model:{prop:"value",event:"change"},props:{value:{type:[String,Array,null],default:null},dateType:{type:String,default:"date",validator:e=>Object.keys(cs).includes(e)},separator:{type:String,default:"至"},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0},placeholder:String,width:{type:String,default:"100%"},rangeMode:{type:Boolean,default:!1},showDimension:{type:Boolean,default:!1},dimension:{type:String,default:"date",validator:e=>["date","month","year","daterange"].includes(e)}},data(){return{isfocus:!1}},computed:{realDateType(){return this.showDimension?this.dimension:this.dateType},useRangeMode(){return"daterange"===this.dimension||this.rangeMode},rangeDateType(){return this.showDimension?ds[this.dimension]||"date":us[this.dateType]||"date"},format(){return this.showDimension?hs[this.dimension]||cs[this.dateType]:cs[this.dateType]||"yyyy-MM-dd"},innerPlaceholder(){if(this.placeholder)return this.placeholder;const e={date:"请选择日期",month:"请选择月份",year:"请选择年份",quarter:"请选择季度",week:"请选择周",datetime:"请选择日期时间"};return e[this.realDateType]||"请选择"},singleValue:{get(){return this.value},set(e){this.$emit("update:value",e),this.$emit("change",e),this.$emit("dimension-change",{dimension:this.dimension,value:e})}},rangeValue:{get(){return this.value},set(e){this.$emit("update:value",e),this.$emit("change",e),this.$emit("dimension-change",{dimension:this.dimension,value:e})}}},watch:{dimension(e){this.closePickerPanels(),this.immediate&&this.$emit("dimension-change",{dimension:e,value:this.value})}},methods:{closePickerPanels(){this.$refs.singlePicker&&(this.$refs.singlePicker.pickerVisible=!1)}}},fs=ps,ms=Object(G["a"])(fs,ls,os,!1,null,null,null),ys=ms.exports;ys.install=function(e){e.component(ys.name,ys)};var gs=ys,bs=function(){var e=this,t=e._self._c;return"bar"==e.type?t("xt-bar",e._b({attrs:{theme:e.myTheme,size:e.mySize}},"xt-bar",e.$attrs,!1)):"line"==e.type?t("xt-line",e._b({attrs:{theme:e.myTheme,size:e.mySize}},"xt-line",e.$attrs,!1)):"pie"==e.type?t("xt-pie",e._b({attrs:{theme:e.myTheme,size:e.mySize}},"xt-pie",e.$attrs,!1)):"multi"==e.type?t("xt-multi",e._b({attrs:{theme:e.myTheme,size:e.mySize}},"xt-multi",e.$attrs,!1)):e._e()},vs=[],_s=function(){var e=this,t=e._self._c;return t("div",{ref:"barchart",staticClass:"bar-box",style:e.chartStyle})},xs=[],ws={name:"XtBar",props:{chartData:{type:Array,default:()=>[{value:65,label:"吴十"},{value:70,label:"唐九"},{value:73,label:"钱一"},{value:78,label:"孙二"},{value:88,label:"刘八"},{value:93,label:"王七"},{value:99,label:"赵六"},{value:103,label:"宋五"},{value:113,label:"李四"},{value:125,label:"张三"}]},theme:{},size:{type:String,default:"medium"},width:{type:String,default:"100%"},height:{type:String,default:"100%"},ratio:{type:Number,default:null},fieldKeys:{type:Object,default:()=>({label:"label",value:"value",data:"data"})},markPoint:{type:Boolean,default:!1},unit:{type:String,default:""},showZoom:{type:Boolean,default:!1},reverse:{type:Boolean,default:!1},longLable:{type:Boolean,default:!1},longLableSplitNum:{type:Number,default:1},longLablePx:{type:Number,default:150},splitNumber:{type:Number,default:5},simpleMode:{type:Boolean,default:!1}},data(){return{myChart:null,name:"数量"}},computed:{chartStyle(){const e={};return this.width&&(e.width=this.width),this.ratio?e.aspectRatio=this.ratio:this.height&&(e.height=this.height),e}},watch:{chartData:{deep:!0,handler(e,t){const i=this;i.initChart()}},unit:{deep:!0,handler(e,t){const i=this;i.initChart()}},theme(e){this.initChart()}},mounted(){this.initChart(),m.bindResizeObserver(this.$refs.barchart,this.myChart)},beforeUnmount(){m.unbindResizeObserver(this.$refs.barchart),this.myChart&&this.myChart.dispose()},methods:{initChart(){const e=this,t=Object.assign({label:"label",value:"value",data:"data"},e.fieldKeys||{}),i={type:"category",inverse:this.reverse,axisLabel:{interval:0,formatter:function(t){return!e.reverse&&e.longLable?t.replace(new RegExp(`(.{${e.longLableSplitNum}})`,"g"),"$1\n"):t}},data:e.chartData.map(e=>e[t.label])},s={type:"value",splitLine:{lineStyle:{type:"dashed"}},name:e.energyType,axisTick:{inside:!0},min:0,splitNumber:e.splitNumber,scale:!0,axisLabel:{margin:2,formatter:function(e,t){return e>=1e4&&e<1e7?e=e/1e4+"万":e>=1e7&&(e=e/1e7+"千万"),e}}},r={legend:{right:20,top:0,textStyle:{fontSize:12}},tooltip:{borderWidth:1,trigger:"item"},grid:{top:"10",left:40+(this.reverse&&this.longLable?e.longLablePx:0),right:"10",bottom:(e.showZoom?50:20)+(!e.reverse&&e.longLable?e.longLablePx:0),containLabel:!0},xAxis:this.reverse?s:i,yAxis:this.reverse?i:s,series:{name:e.unit,type:"bar",avoidLabelOverlap:!0,data:e.chartData.map((e,i)=>{const s=e[t.label],r=e[t.value];return{value:r,name:s,tooltip:{borderWidth:1}}})},dataZoom:e.showZoom?[{height:20,bottom:0}]:[]};this.simpleMode&&m.applySimpleMode(r,"bar"),this.myChart=m.init(e.$refs.barchart,this.theme,r,this.size)}}},Cs=ws,Ss=(i("cf38"),Object(G["a"])(Cs,_s,xs,!1,null,"5705d26c",null)),Ts=Ss.exports,ks=function(){var e=this,t=e._self._c;return t("div",{ref:"linechart",staticClass:"line-box",style:e.chartStyle})},Ms=[],zs={name:"XtLine",props:{theme:{},size:{type:String,default:"medium"},width:{type:String,default:"100%"},height:{type:String,default:"100%"},ratio:{type:Number,default:null},chartData:{type:Array,default:()=>[{value:53,label:"张三"},{value:10,label:"李四"},{value:60,label:"宋五"}]},fieldKeys:{type:Object,default:()=>({label:"label",value:"value",data:"data"})},isArea:{type:Boolean,default:!1},unit:{type:String,default:""},intervalvalue:{type:Number,default:0},simpleMode:{type:Boolean,default:!1}},data(){return{myChart:null}},computed:{chartStyle(){const e={};return this.width&&(e.width=this.width),this.ratio?e.aspectRatio=this.ratio:this.height&&(e.height=this.height),e}},watch:{chartData:{deep:!0,handler(e,t){const i=this;i.initChart()}},unit:{deep:!0,handler(e,t){const i=this;i.initChart()}},theme(e){this.initChart()}},mounted(){this.initChart(),m.bindResizeObserver(this.$refs.linechart,this.myChart)},beforeUnmount(){m.unbindResizeObserver(this.$refs.linechart),this.myChart&&this.myChart.dispose()},methods:{initChart(){const e=this,t=Object.assign({label:"label",value:"value",data:"data"},e.fieldKeys||{}),i={animationDuration:500,grid:{top:"18%",left:"30",right:"30",bottom:"20"},xAxis:{type:"category",axisLabel:{interval:this.intervalvalue},boundaryGap:!1,data:e.chartData.map(e=>e[t.label])},yAxis:{type:"value",axisLine:{show:!1,lineStyle:{}},axisTick:{show:!1},splitLine:{lineStyle:{type:"dashed"}},name:e.unit,scale:!0,axisLabel:{margin:2,formatter:function(e,t){return e>=1e4&&e<1e7?e=Math.floor(e/1e4)+"万":e>=1e7&&(e=Math.floor(e/1e7)+"千万"),e}}},series:[{type:"line",symbol:"circle",areaStyle:e.isArea?{}:null,smooth:!0,avoidLabelOverlap:!0,data:e.chartData.map((e,i)=>e[t.value])}]};this.simpleMode&&m.applySimpleMode(i,"line"),this.myChart=m.init(e.$refs.linechart,this.theme,i,this.size)}}},$s=zs,Ls=(i("04c6"),Object(G["a"])($s,ks,Ms,!1,null,"ee5ba2d8",null)),Is=Ls.exports,As=function(){var e=this,t=e._self._c;return t("div",{ref:"piechart",staticClass:"pie-box",style:e.chartStyle})},Ns=[],Os={name:"XtPie",props:{theme:{},size:{type:String,default:"medium"},width:{type:String,default:"100%"},height:{type:String,default:"100%"},ratio:{type:Number,default:null},chartData:{type:Array,default:()=>[{value:53,label:"张三"},{value:10,label:"李四"},{value:60,label:"宋五"}]},fieldKeys:{type:Object,default:()=>({label:"label",value:"value",data:"data"})},colors:{type:Array,default:()=>[]},unit:{type:String,default:""},showLegend:{type:Boolean,default:!0},simpleMode:{type:Boolean,default:!1},highlightKey:String,roseType:{type:String,default:""},showLabel:{type:Boolean,default:!0},totalLabel:{type:String,default:"总数"}},data(){return{myChart:null}},computed:{chartStyle(){const e={};return this.width&&(e.width=this.width),this.ratio?e.aspectRatio=this.ratio:this.height&&(e.height=this.height),e},totalNum(){const e=Object.assign({label:"label",value:"value",data:"data"},this.fieldKeys||{});return this.chartData.map(t=>parseFloat(t[e.value])).reduce((e,t)=>e+t,0)}},watch:{chartData:{deep:!0,handler(e,t){const i=this;i.initChart()}},theme(e){this.initChart()}},mounted(){this.$nextTick(()=>{this.initChart(),m.bindResizeObserver(this.$refs.piechart,this.myChart)})},beforeUnmount(){m.unbindResizeObserver(this.$refs.piechart),this.myChart&&this.myChart.dispose()},methods:{initChart(){const e=this,t=Object.assign({label:"label",value:"value",data:"data"},e.fieldKeys||{}),i={title:{text:`${e.totalLabel}:${e.totalNum}`,textStyle:{},top:"middle",left:"center"},tooltip:{trigger:"item"},legend:this.showLegend?{top:"top",right:"20",type:"scroll"}:null,grid:{left:30,right:0,top:20,bottom:0,containLabel:!0},series:[{name:e.unit,type:"pie",center:["50%","50%"],roseType:this.roseType,radius:["50%","65%"],minAngle:5,avoidLabelOverlap:!0,data:e.chartData.map((e,i)=>{const s=e[t.label],r=e[t.value];return{value:r,name:s,labelLine:{show:this.showLabel},emphasis:{labelLine:{show:this.showLabel}},label:{show:this.showLabel},tooltip:{formatter:"{b}:{c} ({d}%)",position:"inside",borderWidth:1}}})}]};this.simpleMode&&m.applySimpleMode(i,"pie"),console.log("option",i),this.myChart=m.init(e.$refs.piechart,this.theme,i,this.size)}}},Es=Os,Ps=(i("ceb9"),Object(G["a"])(Es,As,Ns,!1,null,"504b3110",null)),Ds=Ps.exports,Bs=function(){var e=this,t=e._self._c;return t("div",{ref:"multilinechart",staticClass:"multiline-box",style:e.chartStyle})},Rs=[],Fs={name:"XtMulti",props:{theme:{},size:{type:String,default:"medium"},width:{type:String,default:"100%"},height:{type:String,default:"100%"},ratio:{type:Number,default:null},fieldKeys:{type:Object,default:()=>({label:"label",value:"value",data:"data"})},simpleMode:{type:Boolean,default:!1},highlightKey:String,chartData:{type:Array,default:()=>[{label:"入户数",unit:"户",data:[{label:"01月",value:980},{label:"02月",value:806},{label:"03月",value:930},{label:"04月",value:804},{label:"05月",value:750},{label:"06月",value:660},{label:"07月",value:780},{label:"08月",value:630},{label:"09月",value:806},{label:"10月",value:950},{label:"11月",value:810},{label:"12月",value:703}]},{label:"隐患数",unit:"个",data:[{label:"01月",value:200},{label:"02月",value:120},{label:"03月",value:110},{label:"04月",value:109},{label:"05月",value:108},{label:"06月",value:150},{label:"07月",value:126},{label:"08月",value:130},{label:"09月",value:108},{label:"10月",value:109},{label:"11月",value:140},{label:"12月",value:106}]},{label:"整改数",unit:"个",data:[{label:"01月",value:25},{label:"02月",value:19},{label:"03月",value:34},{label:"04月",value:12},{label:"05月",value:16},{label:"06月",value:20},{label:"07月",value:19},{label:"08月",value:18},{label:"09月",value:14},{label:"10月",value:12},{label:"11月",value:11},{label:"12月",value:16}]}]},colors:{type:Array,default:()=>[]}},data(){return{myChart:null}},computed:{chartStyle(){const e={};return this.width&&(e.width=this.width),this.ratio?e.aspectRatio=this.ratio:this.height&&(e.height=this.height),e}},watch:{chartData:{deep:!0,handler(e,t){const i=this;this.myChart&&this.myChart.dispose(),this.myChart=null,i.initChart(),m.bindResizeObserver(this.$refs.multilinechart,this.myChart)}},theme(e){this.myChart&&this.myChart.dispose(),this.myChart=null,this.initChart(),m.bindResizeObserver(this.$refs.multilinechart,this.myChart)}},mounted(){this.initChart(),m.bindResizeObserver(this.$refs.multilinechart,this.myChart)},beforeUnmount(){m.unbindResizeObserver(this.$refs.multilinechart),this.myChart&&this.myChart.dispose()},methods:{initChart(){const e=this,t=Object.assign({label:"label",value:"value",data:"data"},e.fieldKeys||{}),i=[];(e.chartData||[]).forEach(e=>{const t=e.unit||"";-1===i.indexOf(t)&&i.push(t)});const s=(e,t)=>{const i={type:"value",name:e,axisLine:{show:!1,lineStyle:{}},axisTick:{show:!1},splitLine:{lineStyle:{type:"dashed"}},axisLabel:{formatter:function(e,t){return e>=1e4&&e<1e7?e=Math.floor(e/1e4)+"万":e>=1e7&&(e=Math.floor(e/1e7)+"千万"),e}}};return t>0&&(i.position="right",i.splitLine={show:!1}),i},r=i.length?i.map((e,t)=>s(e,t)):[s("",0)],a={};i.forEach((e,t)=>{a[e]=t});const n=e.chartData&&e.chartData.length&&e.chartData[0][t.data]||[],l={legend:{right:20,top:0,show:!0,data:e.chartData.map(e=>e[t.label]),textStyle:{}},tooltip:{borderWidth:1,trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:16,right:16,top:40,bottom:48,containLabel:!0},xAxis:{type:"category",axisLabel:{},data:n.map(e=>e[t.label])},yAxis:r,dataZoom:[{type:"inside",xAxisIndex:[0],start:1,end:100}],series:this.getSeriesData(a,t)};this.simpleMode&&m.applySimpleMode(l,"multi"),this.myChart=m.init(e.$refs.multilinechart,this.theme,l,this.size)},getSeriesData(e,t){const i=this,s=[];return i.chartData.forEach((i,r)=>{const a=i[t.data]||[],n={animation:!0,name:i[t.label],type:i.type||"bar",avoidLabelOverlap:!0,areaStyle:i.areaStyle?{}:null,smooth:!!i.smooth&&{},data:a.map(e=>e[t.value]),yAxisIndex:null!=e[i.unit||""]?e[i.unit||""]:0};s.push(n)}),s}}},js=Fs,Xs=(i("a148"),Object(G["a"])(js,Bs,Rs,!1,null,"2957321d",null)),Hs=Xs.exports,Ks={name:"XtChart",components:{XtBar:Ts,XtLine:Is,XtPie:Ds,XtMulti:Hs},props:{theme:{type:String,default:""},size:{type:String,default:"medium",validator:e=>["small","medium","large"].includes(e)},type:{type:String,required:!0,default:"bar"}},data(){return{myTheme:this.theme,mySize:this.size,observer:null}},mounted(){this.detectParentTheme(),this.observeThemeChange()},beforeUnmount(){this.observer&&this.observer.disconnect()},watch:{theme(e){this.myTheme=e},size(e){this.mySize=e}},methods:{detectParentTheme(){if(this.theme)return void(this.myTheme=this.theme);let e=this.$el?this.$el.parentElement:null;while(e){const t=e.getAttribute("data-theme");if(t)return void(this.myTheme="dark"===t?"dark":"default");e=e.parentElement}const t=document.body.getAttribute("data-theme"),i=document.documentElement.getAttribute("data-theme");this.myTheme="dark"===t||"dark"===i?"dark":"default"},observeThemeChange(){if(!this.$el)return;this.observer=new MutationObserver(e=>{e.forEach(e=>{if("attributes"===e.type&&"data-theme"===e.attributeName){const t=e.target.getAttribute("data-theme");"dark"===t?this.myTheme="dark":"light"===t&&(this.myTheme="default")}})});let e=this.$el.parentElement;while(e)this.observer.observe(e,{attributes:!0,attributeFilter:["data-theme"]}),e=e.parentElement;this.observer.observe(document.body,{attributes:!0,attributeFilter:["data-theme"]}),this.observer.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})}}},Vs=Ks,Us=Object(G["a"])(Vs,bs,vs,!1,null,null,null),Ws=Us.exports;Ws.install=function(e){e.component(Ws.name,Ws)};var Ys=Ws,qs=(i("1f11"),function(){var e=this,t=e._self._c;e._self._setupProxy;return t(e.tag,e._g({tag:"component",class:e.iconClasses,style:e.iconStyle,on:{click:e.handleClick}},e.$listeners),[e.isSvgSprite?t("svg",{style:e.svgStyle,attrs:{"aria-hidden":"true"}},[t("use",{attrs:{href:e.svgHref}})]):e.hasDefaultSlot?e._t("default"):e._e()],2)}),Zs=[];const Gs={},Js={name:"XtIcon",inheritAttrs:!1,props:{name:{type:String,default:""},size:{type:[String,Number],default:""},color:{type:String,default:""},spin:{type:Boolean,default:!1}},computed:{hasDefaultSlot(){return!!this.$slots.default},iconName(){return(this.name||"").trim()},isElIcon(){return/^el-icon-/.test(this.iconName)},isSvgInline(){return this.iconName.indexOf("<svg")>-1},isSvgSprite(){return/^(#|svg:)/.test(this.iconName)},isCustomFont(){return!!this.iconName&&(!this.isElIcon&&!this.isSvgInline&&!this.isSvgSprite)},svgHref(){if(!this.isSvgSprite)return"";const e=this.iconName.replace(/^svg:/,"").replace(/^#/,"");return"#"+e},needsExIconPrefix(){if(!this.isCustomFont)return!1;for(const e of Object.keys(Gs))if(0===this.iconName.indexOf(e))return!1;return!0},tag(){return this.isSvgInline?"span":"i"},iconClasses(){const e=[];return this.isElIcon?e.push(this.iconName):this.isSvgSprite?e.push("ex-icon-svg"):this.isCustomFont?(this.needsExIconPrefix&&e.push("ex-icon"),e.push(this.iconName)):this.isSvgInline&&e.push("ex-icon-inline-svg"),this.spin&&e.push("ex-icon-spin"),e},iconStyle(){const e={};if(this.size){const t="number"===typeof this.size?this.size+"px":this.size;e.fontSize=t,e.width=t,e.height=t}return this.color&&(e.color=this.color),this.isSvgInline&&(e.display="inline-block",e.verticalAlign="middle"),e},svgStyle(){return{width:"1em",height:"1em",verticalAlign:"-0.15em",fill:"currentColor",overflow:"hidden"}}},mounted(){this.isSvgInline&&this.$el&&(this.$el.innerHTML=this.iconName)},beforeUpdate(){this.isSvgInline&&this.$el&&(this.$el.innerHTML=this.iconName)},methods:{handleClick(e){this.$emit("click",e)}},registerPrefix:function(e){e&&"string"===typeof e&&(Gs[e]=!0)}};var Qs=Js,er=Qs,tr=(i("6b14"),Object(G["a"])(er,qs,Zs,!1,null,"0e301b72",null)),ir=tr.exports;ir.install=function(e){e.component(ir.name,ir)};var sr,rr,ar=ir,nr=function(){var e=this,t=e._self._c;return t("div",{staticClass:"xt-table-wrapper"},[e.title||e.$slots.toolbar?t("div",{staticClass:"xt-table-header"},[e.title?t("span",{staticClass:"xt-table-title"},[e._v(e._s(e.title))]):e._e(),t("div",{staticClass:"xt-table-toolbar"},[e._t("toolbar")],2)]):e._e(),t("div",{staticClass:"xt-table-body"},[t("VirtualElTable",e._g(e._b({ref:"table",staticClass:"xt-table",attrs:{data:e.processedTableData,height:e.computedHeight,"max-height":e.computedMaxHeight,"virtual-scroll":e.virtualScroll,"row-height":e.rowInitHeight,"buffer-size":e.bufferSize,"span-method":e.groupColumns.length?e.handleSpanMethod:void 0,"row-class-name":e.getRowClassName},on:{"selection-change":e.handleSelectionChange,"sort-change":e.handleSortChange}},"VirtualElTable",e.$attrs,!1),e.$listeners),[e.selection?t("el-table-column",{attrs:{type:"selection",width:"55",fixed:e.selectionFixed}}):e._e(),e.showIndex?t("el-table-column",{attrs:{type:"index",width:"60",label:"#",fixed:e.indexFixed,index:e.indexMethod}}):e._e(),e._l(e.flattenedColumns,(function(i){return[i.children&&i.children.length?t("el-table-column",e._b({key:i._key},"el-table-column",e.getColumnProps(i),!1),[e._l(i.children,(function(i){return[t("el-table-column",e._b({key:i._key,scopedSlots:e._u([i.render?{key:"default",fn:function(e){return[t("XtTableCell",{attrs:{row:e.row,index:e.$index,render:i.render,column:i}})]}}:i.slot?{key:"default",fn:function(t){return[e._t(i.slot,null,{row:t.row,index:t.$index,column:i})]}}:null],null,!0)},"el-table-column",e.getColumnProps(i),!1))]}))],2):t("el-table-column",e._b({key:i._key,scopedSlots:e._u([i.render?{key:"default",fn:function(e){return[t("XtTableCell",{attrs:{row:e.row,index:e.$index,render:i.render,column:i}})]}}:i.slot?{key:"default",fn:function(t){return[e._t(i.slot,null,{row:t.row,index:t.$index,column:i})]}}:null],null,!0)},"el-table-column",e.getColumnProps(i),!1))]}))],2)],1),e.showPagination?t("div",{staticClass:"xt-table-footer"},[t("el-pagination",{attrs:{"current-page":e.pagination.pageNum,"page-size":e.pagination.pageSize,total:e.total,"page-sizes":e.pagination.pageSizes||[10,20,50,100],layout:"total, sizes, prev, pager, next, jumper"},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()])},lr=[],or={name:"XtTableCell",functional:!0,props:{row:Object,index:Number,render:Function,column:{type:Object,default:null}},render:(e,t)=>{const i={row:t.props.row,index:t.props.index};t.props.column&&(i.column=t.props.column);const s=e=>null!==e&&void 0!==e&&"object"===typeof e&&e.hasOwnProperty("componentOptions"),r=t.props.render(e,i);return null===r||void 0===r||""===r?e("span",""):s(r)?r:e("span",String(r))}},cr=or,hr=Object(G["a"])(cr,sr,rr,!1,null,null,null),dr=hr.exports,ur=function(){var e=this,t=e._self._c;return t("el-table",e._g(e._b({ref:"innerTable",attrs:{data:e.renderList}},"el-table",e.$attrs,!1),e.$listeners),[e._t("default")],2)},pr=[],fr={name:"VirtualElTable",inheritAttrs:!1,props:{virtualScroll:{type:Boolean,default:!1},rowHeight:{type:Number,default:48},bufferSize:{type:Number,default:5}},data(){return{scrollWrap:null,phantomDom:null,scrollTop:0,startIndex:0,endIndex:20,rafId:null,unwatchPhantom:null,layoutTimer:null,retryTimers:[]}},computed:{originData(){return this.$attrs.data||[]},renderList(){if(!this.virtualScroll)return this.originData;const e=Math.max(0,this.startIndex-this.bufferSize),t=Math.min(this.originData.length,this.endIndex+this.bufferSize);return this.originData.slice(e,t)},totalListHeight(){return this.originData.length*this.rowHeight},contentOffsetY(){return Math.max(0,this.startIndex-this.bufferSize)*this.rowHeight}},watch:{renderList(){this.scheduleLayout()},originData:{handler(e){this.virtualScroll&&e&&e.length&&this.$nextTick(()=>{this.calcVisibleRange()})}}},mounted(){this.$nextTick(()=>{this.initVirtualScroll()})},beforeDestroy(){this.unbindScrollEvent(),this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=null),this.unwatchPhantom&&(this.unwatchPhantom(),this.unwatchPhantom=null),this.layoutTimer&&(clearTimeout(this.layoutTimer),this.layoutTimer=null),this.retryTimers.forEach(e=>clearTimeout(e)),this.retryTimers=[]},methods:{initVirtualScroll(){if(!this.virtualScroll)return;if(this.scrollWrap=this.$refs.innerTable.$el.querySelector(".el-table__body-wrapper"),!this.scrollWrap)return console.warn("[VirtualElTable] 无法找到滚动容器,虚拟滚动功能已禁用"),void(this.virtualScroll=!1);this.scrollWrap.style.overflowY="auto",this.scrollWrap.style.overflowX="auto",this.wrapTableBody(),this.scrollWrap.addEventListener("scroll",this.onScroll,{passive:!0}),this.calcVisibleRange();const e=[100,300,600,1e3];e.forEach(e=>{const t=setTimeout(()=>{this.calcVisibleRange()},e);this.retryTimers.push(t)})},wrapTableBody(){const e=this.scrollWrap.querySelector(".el-table__body");if(!e||e.querySelector(".vs-phantom"))return;const t=document.createElement("div");t.className="vs-phantom",t.style.position="relative",t.style.minWidth="100%",t.style.boxSizing="border-box",t.style.zIndex="1",this.phantomDom=t;const i=e.querySelector("table");t.appendChild(i),e.appendChild(t),this.unwatchPhantom=this.$watch(["totalListHeight","contentOffsetY"],()=>{this.phantomDom&&(this.phantomDom.style.height=this.totalListHeight+"px",this.phantomDom.style.paddingTop=this.contentOffsetY+"px")},{immediate:!0})},onScroll(){this.scrollTop=this.scrollWrap.scrollTop,this.rafId||(this.rafId=requestAnimationFrame(()=>{this.calcVisibleRange(),this.rafId=null}))},calcVisibleRange(){if(!this.scrollWrap)return;let e=this.scrollWrap.clientHeight;if(!e){const t=this.$attrs.height||this.$attrs.maxHeight;t&&(e="number"===typeof t?t:parseInt(String(t),10))}if(!e||e<=0)return;const t=Math.ceil(e/this.rowHeight),i=Math.floor(this.scrollTop/this.rowHeight),s=Math.min(this.originData.length,i+t);i===this.startIndex&&s===this.endIndex||(this.startIndex=i,this.endIndex=s)},unbindScrollEvent(){this.scrollWrap&&this.scrollWrap.removeEventListener("scroll",this.onScroll)},scheduleLayout(){this.layoutTimer||(this.layoutTimer=setTimeout(()=>{this.$refs.innerTable&&this.$refs.innerTable.doLayout(),this.layoutTimer=null},0))},clearSelection(){return this.$refs.innerTable.clearSelection()},toggleRowSelection(){return this.$refs.innerTable.toggleRowSelection()},doLayout(){return this.$refs.innerTable.doLayout()}}},mr=fr,yr=(i("26be"),Object(G["a"])(mr,ur,pr,!1,null,"01f7dcee",null)),gr=yr.exports,br={name:"XtTable",inheritAttrs:!1,components:{XtTableCell:dr,VirtualElTable:gr},props:{tableData:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},groupColumns:{type:Array,default:()=>[]},sortGroup:{type:Boolean,default:!1},defaultSort:{type:Object,default:null},filterMethod:{type:Function,default:null},title:{type:String,default:""},height:{type:[Number,String],default:null},maxHeight:{type:[Number,String],default:null},virtualScroll:{type:Boolean,default:!1},rowInitHeight:{type:Number,default:48},bufferSize:{type:Number,default:5},pagination:{type:Object,default:null},total:{type:Number,default:0},showIndex:{type:Boolean,default:!1},selection:{type:Boolean,default:!1},selectionFixed:{type:[String,Boolean],default:!1},indexFixed:{type:[String,Boolean],default:!1},loading:{type:Boolean,default:!1},emptyText:{type:String,default:"暂无数据"},subtotalConfig:{type:Object,default:()=>({enabled:!1})},totalConfig:{type:Object,default:()=>({enabled:!1})}},data(){return{spanCache:{},flattenedColumnsCache:[],selectedRows:[],sortProp:null,sortOrder:null}},computed:{showPagination(){return this.pagination&&this.total>0},computedHeight(){return this.height||void 0},computedMaxHeight(){return this.height?void 0:this.maxHeight||void 0},sortedTableData(){if(!this.tableData.length)return[];let e=[...this.tableData];if("function"===typeof this.filterMethod&&(e=e.filter(this.filterMethod)),!this.sortProp||!this.sortOrder)return e;const t="ascending"===this.sortOrder?1:-1,i=this.resolveSortMethod(this.sortProp);return this.sortGroup&&this.groupColumns.length?this.groupSort(e,i,t):e.sort((e,s)=>i(e,s)*t)},processedTableData(){if(!this.sortedTableData.length)return[];let e=[...this.sortedTableData];const t=this.subtotalConfig&&this.subtotalConfig.enabled,i=this.totalConfig&&this.totalConfig.enabled;if(!t&&!i)return e;this.findLabelColumn();let s=[];if(t&&this.subtotalConfig.groupBy&&this.subtotalConfig.groupBy.length){const t=this.groupData(e,this.subtotalConfig.groupBy);t.forEach(e=>{s.push(...e);const t=this.createSubtotalRow(e);s.push(t)})}else s=e;if(i){const t=this.createTotalRow(e);s.push(t)}return s},flattenedColumns(){if(this.flattenedColumnsCache.length)return this.flattenedColumnsCache;const e=(t,i="")=>t.map((t,s)=>{const r=i?`${i}_${s}`:String(s),a=t.prop||t.slot||t.label||r,n={...t,_key:a};return t.children&&t.children.length&&(n.children=e(t.children,r)),n});return this.flattenedColumnsCache=e(this.columns),this.flattenedColumnsCache}},watch:{tableData(){this.spanCache={},this.flattenedColumnsCache=[]},columns:{handler(){this.flattenedColumnsCache=[],this.spanCache={}},deep:!0},groupColumns:{handler(){this.spanCache={}},deep:!0},defaultSort:{handler(e){e&&e.prop&&(this.sortProp=e.prop,this.sortOrder=e.order||"ascending")},immediate:!1},sortProp(){this.spanCache={}}},created(){this.defaultSort&&this.defaultSort.prop&&(this.sortProp=this.defaultSort.prop,this.sortOrder=this.defaultSort.order||"ascending")},mounted(){this.$nextTick(()=>{window.addEventListener("resize",this.handleResize)})},beforeDestroy(){window.removeEventListener("resize",this.handleResize)},methods:{resolveSortMethod(e){const t=this.findColumnByProp(e);return t&&"function"===typeof t.sortMethod?t.sortMethod:(t,i)=>{const s=t[e],r=i[e];return null==s&&null==r?0:null==s?-1:null==r?1:"number"===typeof s&&"number"===typeof r?s-r:String(s).localeCompare(String(r),void 0,{numeric:!0})}},findColumnByProp(e){for(const t of this.columns)if(t.children&&t.children.length){for(const i of t.children)if(i.prop===e)return i}else if(t.prop===e)return t;return null},groupSort(e,t,i){const s={};e.forEach(e=>{const t=this.groupColumns.map(t=>null==e[t]?"":String(e[t])).join("|||");s[t]||(s[t]=[]),s[t].push(e)});const r=[];return Object.keys(s).sort().forEach(e=>{const a=s[e];a.sort((e,s)=>t(e,s)*i),r.push(...a)}),r},handleResize(){this.$nextTick(()=>{this.$refs.table&&this.$refs.table.doLayout()})},findLabelColumn(){for(const e of this.columns)if(e.children&&e.children.length){for(const t of e.children)if(t.prop)return{prop:t.prop,label:t.label}}else if(e.prop)return{prop:e.prop,label:e.label};return{prop:"",label:""}},groupData(e,t){const i=new Map;return e.forEach(e=>{const s=t.map(t=>e[t]).join("|||");i.has(s)||i.set(s,[]),i.get(s).push(e)}),i},_calcValue(e,t){if("function"===typeof t)return t(e);const i=t.prop,s=t.type||"sum",r=i?e.map(e=>parseFloat(e[i])||0):[];switch(s){case"sum":return r.reduce((e,t)=>e+t,0);case"avg":case"average":return r.length?r.reduce((e,t)=>e+t,0)/r.length:0;case"count":return e.length;case"min":return r.length?Math.min(...r):0;case"max":return r.length?Math.max(...r):0;default:return""}},createSubtotalRow(e){const t=this.subtotalConfig,i=this.findLabelColumn(),s=t.groupBy?t.groupBy[0]:"",r=e[0]?e[0][s]:"",a=t.labelText||r+" 小计",n={_rowType:"subtotal"};return n[i.prop]=a,t.columns&&Object.keys(t.columns).forEach(i=>{const s=t.columns[i];n[i]="string"===typeof s?this._calcValue(e,{prop:i,type:s}):this._calcValue(e,s)}),n},createTotalRow(e){const t=this.totalConfig,i=this.findLabelColumn(),s=t.labelText||"总计",r={_rowType:"total"};return r[i.prop]=s,t.columns&&Object.keys(t.columns).forEach(i=>{const s=t.columns[i];r[i]="string"===typeof s?this._calcValue(e,{prop:i,type:s}):this._calcValue(e,s)}),r},getRowClassName({row:e}){return"subtotal"===e._rowType?"xt-table-row-subtotal":"total"===e._rowType?"xt-table-row-total":""},getColumnProps(e){const{_key:t,children:i,render:s,slot:r,sortMethod:a,...n}=e;return n},indexMethod(e){return e+1},handleSpanMethod({row:e,column:t,rowIndex:i}){if("subtotal"===e._rowType||"total"===e._rowType)return{rowspan:1,colspan:1};if(!this.groupColumns.length)return{rowspan:1,colspan:1};const s=this.processedTableData,r=t.property,a=this.groupColumns.indexOf(r);if(-1===a)return{rowspan:1,colspan:1};const n=`${i}_${r}`;if(this.spanCache[n])return this.spanCache[n];if(i>0){const t=s[i-1];let r=!0;for(let i=0;i<=a;i++){const s=this.groupColumns[i];if(t[s]!==e[s]){r=!1;break}}if(r){const e={rowspan:0,colspan:1};return this.spanCache[n]=e,e}}let l=1;for(let c=i+1;c<s.length;c++){const t=s[c];let i=!0;for(let s=0;s<=a;s++){const r=this.groupColumns[s];if(t[r]!==e[r]){i=!1;break}}if(!i)break;l++}const o={rowspan:l>1?l:1,colspan:1};return this.spanCache[n]=o,o},handleSelectionChange(e){this.selectedRows=e.filter(e=>!e._rowType),this.$emit("selection-change",this.selectedRows)},handleSortChange(e){this.sortProp=e.prop,this.sortOrder=e.order,this.$emit("sort-change",e)},handleSizeChange(e){this.$emit("size-change",e)},handleCurrentChange(e){this.$emit("page-change",e)},getSelection(){return this.selectedRows},clearSelection(){this.$refs.table&&this.$refs.table.clearSelection(),this.selectedRows=[]},clearSort(){this.sortProp=null,this.sortOrder=null,this.$nextTick(()=>{this.$refs.table&&this.$refs.table.$refs.innerTable&&this.$refs.table.$refs.innerTable.clearSort()})},toggleRowSelection(e,t){this.$refs.table&&this.$refs.table.toggleRowSelection(e,t)},toggleRowsSelection(e,t){e&&e.length&&e.forEach(e=>{this.$refs.table&&this.$refs.table.toggleRowSelection(e,t)})},doLayout(){this.$refs.table&&this.$refs.table.doLayout()}}},vr=br,_r=(i("9940"),Object(G["a"])(vr,nr,lr,!1,null,"39458c28",null)),xr=_r.exports;xr.install=function(e){e.component(xr.name,xr)};var wr=xr,Cr=function(){var e=this,t=e._self._c;return t("div",{staticClass:"xt-list",class:{"xt-list--loading":e.loading}},[e.title||e.filterable||e.sortable||e.$slots.toolbar?t("div",{staticClass:"xt-list__header"},[e.title?t("span",{staticClass:"xt-list__title"},[e._v(e._s(e.title))]):e._e(),t("div",{staticClass:"xt-list__toolbar"},[e.filterable?t("div",{staticClass:"xt-list__search"},[t("el-input",{attrs:{placeholder:e.filterPlaceholder,size:"small",clearable:"","prefix-icon":"el-icon-search"},on:{input:e.handleSearch},model:{value:e.searchText,callback:function(t){e.searchText=t},expression:"searchText"}})],1):e._e(),e.sortable&&e.sortBy?t("el-button",{attrs:{size:"small",icon:"el-icon-sort",type:e.currentSortOrder?"primary":"default",plain:""},on:{click:e.handleSortToggle}},[e._v(" "+e._s(e.sortLabel)+" ")]):e._e(),e._t("toolbar")],2)]):e._e(),t("div",{ref:"scrollContainer",staticClass:"xt-list__body",style:e.bodyStyle,on:{scroll:e.onScroll}},[e.virtualScroll?t("div",{staticClass:"xt-list__phantom",style:{height:e.totalHeight+"px"}},[t("div",{style:{paddingTop:e.offsetY+"px"}},[e.groupedData.length?[e._l(e.visibleGroups,(function(i,s){return[t("div",{key:i._key,staticClass:"xt-list__group"},[t("div",{staticClass:"xt-list__group-title",on:{click:function(t){return e.toggleGroup(i._key)}}},[t("span",{staticClass:"xt-list__group-arrow",class:{"is-expanded":i._expanded}},[t("i",{staticClass:"el-icon-arrow-right"})]),e._t("group-title",(function(){return[t("span",{staticClass:"xt-list__group-label"},[e._v(e._s(e.getGroupLabel(i)))]),t("span",{staticClass:"xt-list__group-count"},[e._v("("+e._s(i._items.length)+")")])]}),{group:i,items:i._items,expanded:i._expanded})],2),i._expanded?t("div",{class:["xt-list__cards","xt-list__cols-"+e.columns]},e._l(e.getVisibleItems(i),(function(s,r){return t("div",{key:s._id||r,staticClass:"xt-list__item",on:{click:function(t){return e.handleItemClick(s,i._key)}}},[t("el-card",{attrs:{shadow:e.shadow,"body-style":e.cardBodyStyle}},[e._t("default",(function(){return[e.getImage(s)?t("div",{staticClass:"xt-list__image"},[t("img",{attrs:{src:e.getImage(s),alt:e.getConfigValue(e.cardConfig.title,s)}})]):e._e(),e.getTag(s)?t("div",{staticClass:"xt-list__tag"},[t("el-tag",{attrs:{size:"small",type:e.getTagType(s)}},[e._v(e._s(e.getTag(s)))])],1):e._e(),e.getConfigValue(e.cardConfig.title,s)?t("div",{staticClass:"xt-list__card-title"},[e._v(" "+e._s(e.getConfigValue(e.cardConfig.title,s))+" ")]):e._e(),e.getConfigValue(e.cardConfig.subtitle,s)?t("div",{staticClass:"xt-list__card-subtitle"},[e._v(" "+e._s(e.getConfigValue(e.cardConfig.subtitle,s))+" ")]):e._e(),e.getConfigValue(e.cardConfig.content,s)?t("div",{staticClass:"xt-list__card-content"},[e._v(" "+e._s(e.getConfigValue(e.cardConfig.content,s))+" ")]):e._e(),e.getConfigValue(e.cardConfig.footer,s)?t("div",{staticClass:"xt-list__card-footer"},[e._t("card-footer",(function(){return[e._v(" "+e._s(e.getConfigValue(e.cardConfig.footer,s))+" ")]}),{item:s,index:e.getItemIndex(s,i)})],2):e._e()]}),{item:s,index:e.getItemIndex(s,i),group:i})],2)],1)})),0):e._e()])]}))]:e.loading?e._e():t("div",{staticClass:"xt-list__empty"},[e._t("empty",(function(){return[t("span",[e._v(e._s(e.emptyText))])]}))],2)],2)]):e.groupedData.length?[e._l(e.groupedData,(function(i){return[t("div",{key:i._key,staticClass:"xt-list__group"},[t("div",{staticClass:"xt-list__group-title",on:{click:function(t){return e.toggleGroup(i._key)}}},[t("span",{staticClass:"xt-list__group-arrow",class:{"is-expanded":i._expanded}},[t("i",{staticClass:"el-icon-arrow-right"})]),e._t("group-title",(function(){return[t("span",{staticClass:"xt-list__group-label"},[e._v(e._s(e.getGroupLabel(i)))]),t("span",{staticClass:"xt-list__group-count"},[e._v("("+e._s(i._items.length)+")")])]}),{group:i,items:i._items,expanded:i._expanded})],2),i._expanded?t("div",{class:["xt-list__cards","xt-list__cols-"+e.columns]},e._l(i._items,(function(s,r){return t("div",{key:s._id||r,staticClass:"xt-list__item",on:{click:function(t){return e.handleItemClick(s,i._key)}}},[t("el-card",{attrs:{shadow:e.shadow,"body-style":e.cardBodyStyle}},[e._t("default",(function(){return[e.getImage(s)?t("div",{staticClass:"xt-list__image"},[t("img",{attrs:{src:e.getImage(s),alt:e.getConfigValue(e.cardConfig.title,s)}})]):e._e(),e.getTag(s)?t("div",{staticClass:"xt-list__tag"},[t("el-tag",{attrs:{size:"small",type:e.getTagType(s)}},[e._v(e._s(e.getTag(s)))])],1):e._e(),e.getConfigValue(e.cardConfig.title,s)?t("div",{staticClass:"xt-list__card-title"},[e._v(" "+e._s(e.getConfigValue(e.cardConfig.title,s))+" ")]):e._e(),e.getConfigValue(e.cardConfig.subtitle,s)?t("div",{staticClass:"xt-list__card-subtitle"},[e._v(" "+e._s(e.getConfigValue(e.cardConfig.subtitle,s))+" ")]):e._e(),e.getConfigValue(e.cardConfig.content,s)?t("div",{staticClass:"xt-list__card-content"},[e._v(" "+e._s(e.getConfigValue(e.cardConfig.content,s))+" ")]):e._e(),e.getConfigValue(e.cardConfig.footer,s)?t("div",{staticClass:"xt-list__card-footer"},[e._t("card-footer",(function(){return[e._v(" "+e._s(e.getConfigValue(e.cardConfig.footer,s))+" ")]}),{item:s,index:r})],2):e._e()]}),{item:s,index:r,group:i})],2)],1)})),0):e._e()])]}))]:e.loading?e._e():t("div",{staticClass:"xt-list__empty"},[e._t("empty",(function(){return[t("span",[e._v(e._s(e.emptyText))])]}))],2),e.loadMore&&e.hasMore&&!e.loading?t("div",{staticClass:"xt-list__loadmore"},[t("el-button",{attrs:{type:"text",loading:e.loadMoreLoading},on:{click:e.handleLoadMore}},[e._v(" "+e._s(e.loadMoreText)+" ")])],1):e._e()],2),e.loading?t("div",{staticClass:"xt-list__loading"},[e._t("loading",(function(){return[t("i",{staticClass:"el-icon-loading"}),t("span",[e._v("加载中...")])]}))],2):e._e(),e.showPagination?t("div",{staticClass:"xt-list__footer"},[t("el-pagination",{attrs:{background:"",small:"","current-page":e.pagination.pageNum,"page-size":e.pagination.pageSize,total:e.total,"page-sizes":e.pagination.pageSizes||[10,20,50],layout:"total, prev, pager, next"},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()])},Sr=[];const Tr=160,kr=44;var Mr={name:"XtList",props:{data:{type:Array,default:()=>[]},groupBy:{type:String,default:""},groupLabel:{type:[String,Function],default:""},cardConfig:{type:Object,default:()=>({title:"title",subtitle:"",content:"",image:"",tag:"",tagType:"",footer:""})},title:{type:String,default:""},columns:{type:Number,default:1},shadow:{type:String,default:"hover"},cardBodyStyle:{type:Object,default:()=>({})},virtualScroll:{type:Boolean,default:!1},itemHeight:{type:Number,default:Tr},bufferSize:{type:Number,default:3},height:{type:[Number,String],default:null},maxHeight:{type:[Number,String],default:null},expandAll:{type:Boolean,default:!0},accordion:{type:Boolean,default:!1},pagination:{type:Object,default:null},total:{type:Number,default:0},loadMore:{type:Boolean,default:!1},hasMore:{type:Boolean,default:!1},loadMoreText:{type:String,default:"加载更多"},loadMoreLoading:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},emptyText:{type:String,default:"暂无数据"},filterable:{type:Boolean,default:!1},filterPlaceholder:{type:String,default:"请输入搜索内容"},filterMethod:{type:Function,default:null},sortable:{type:Boolean,default:!1},sortBy:{type:String,default:""},sortOrder:{type:String,default:""},sortMethod:{type:Function,default:null}},data(){return{groupExpandState:{},scrollTop:0,containerHeight:0,resizeObserver:null,rafId:null,searchText:"",currentSortOrder:this.sortOrder||""}},computed:{showPagination(){return this.pagination&&this.total>0},sortLabel(){return this.currentSortOrder?"ascending"===this.currentSortOrder?"升序":"降序":"排序"},bodyStyle(){const e={};return this.height&&(e.height="number"===typeof this.height?this.height+"px":this.height),this.maxHeight&&(e.maxHeight="number"===typeof this.maxHeight?this.maxHeight+"px":this.maxHeight),this.virtualScroll&&(e.overflowY="auto",e.overflowX="hidden"),e},filteredData(){return this.filterable&&this.searchText?this.data.filter(e=>"function"===typeof this.filterMethod?this.filterMethod(e,this.searchText):Object.values(e).some(e=>null!=e&&String(e).toLowerCase().includes(this.searchText.toLowerCase()))):this.data},sortedData(){if(!this.sortable||!this.sortBy||!this.currentSortOrder)return this.filteredData;const e="ascending"===this.currentSortOrder?1:-1,t="function"===typeof this.sortMethod?this.sortMethod:(e,t)=>{const i=e[this.sortBy],s=t[this.sortBy];return null==i&&null==s?0:null==i?-1:null==s?1:"number"===typeof i&&"number"===typeof s?i-s:String(i).localeCompare(String(s),void 0,{numeric:!0})};return[...this.filteredData].sort((i,s)=>t(i,s)*e)},groupedData(){const e=this.sortedData;if(!e||!e.length)return[];if(!this.groupBy)return[{_key:"_default",_items:e.map((e,t)=>({...e,_id:e._id||"item_"+t})),_expanded:!0}];const t={};e.forEach((e,i)=>{const s=e[this.groupBy],r=null!=s?String(s):"_undefined";t[r]||(t[r]={_key:r,_value:s,_items:[]}),t[r]._items.push({...e,_id:e._id||"item_"+i})});const i=Object.keys(t).sort().map(e=>{const i=t[e];return i._expanded=void 0!==this.groupExpandState[e]?this.groupExpandState[e]:this.expandAll,i});return i},totalHeight(){if(!this.virtualScroll)return 0;let e=0;return this.groupedData.forEach(t=>{if(e+=kr,t._expanded){const i=Math.ceil(t._items.length/this.columns);e+=i*this.itemHeight}}),e},visibleGroups(){if(!this.virtualScroll)return this.groupedData;const e=Math.max(0,this.scrollTop-this.bufferSize*this.itemHeight),t=e+this.containerHeight+this.bufferSize*this.itemHeight*2,i=[];let s=0;return this.groupedData.forEach(r=>{const a=kr+(r._expanded?Math.ceil(r._items.length/this.columns)*this.itemHeight:0),n=s+a;n>=e&&s<=t&&i.push(r),s=n}),i},offsetY(){if(!this.virtualScroll)return 0;let e=0;const t=Math.max(0,this.scrollTop-this.bufferSize*this.itemHeight);for(let i=0;i<this.groupedData.length;i++){const s=this.groupedData[i],r=kr+(s._expanded?Math.ceil(s._items.length/this.columns)*this.itemHeight:0);if(!(e+r<=t))break;e+=r}return e}},watch:{data:{handler(){this.$nextTick(()=>{this.updateContainerHeight()})}},expandAll(e){const t={};this.groupedData.forEach(i=>{t[i._key]=e}),this.groupExpandState=t}},mounted(){this.$nextTick(()=>{this.updateContainerHeight(),this.bindResizeObserver()})},beforeDestroy(){this.unbindResizeObserver(),this.rafId&&"undefined"!==typeof cancelAnimationFrame&&(cancelAnimationFrame(this.rafId),this.rafId=null)},methods:{toggleGroup(e){const t={...this.groupExpandState},i=void 0!==t[e]?t[e]:this.expandAll;this.accordion&&!i&&Object.keys(t).forEach(e=>{t[e]=!1}),t[e]=!i,this.groupExpandState=t,this.$nextTick(()=>{this.updateContainerHeight(),this.$emit("group-toggle",{key:e,expanded:t[e]})})},getGroupLabel(e){return""===this.groupLabel?e._value:"function"===typeof this.groupLabel?this.groupLabel(e):"string"===typeof this.groupLabel&&e._items[0]&&e._items[0][this.groupLabel]||e._value},getConfigValue(e,t){return e?"function"===typeof e?e(t):"string"===typeof e&&t[e]||"":""},getImage(e){return this.getConfigValue(this.cardConfig.image,e)},getTag(e){return this.getConfigValue(this.cardConfig.tag,e)},getTagType(e){return this.cardConfig.tagType?"function"===typeof this.cardConfig.tagType?this.cardConfig.tagType(e):this.cardConfig.tagType:""},getVisibleItems(e){if(!this.virtualScroll)return e._items;const t=this.bufferSize*this.itemHeight,i=Math.max(0,this.scrollTop-t),s=i+this.containerHeight+2*t;let r=0,a=0;for(let c=0;c<this.groupedData.length;c++){const t=this.groupedData[c];if(t._key===e._key){a=r+kr;break}r+=kr+(t._expanded?Math.ceil(t._items.length/this.columns)*this.itemHeight:0)}const n=a+Math.ceil(e._items.length/this.columns)*this.itemHeight;if(n<=i||a>=s)return[];const l=Math.max(0,Math.floor((i-a)/this.itemHeight)*this.columns),o=Math.min(e._items.length,Math.ceil((s-a)/this.itemHeight)*this.columns+t);return e._items.slice(Math.max(0,l),o)},getItemIndex(e,t){return t._items.indexOf(e)},onScroll(){this.virtualScroll&&(this.scrollTop=this.$refs.scrollContainer.scrollTop,this.rafId||"undefined"!==typeof requestAnimationFrame&&(this.rafId=requestAnimationFrame(()=>{this.$forceUpdate(),this.rafId=null})))},updateContainerHeight(){this.$refs.scrollContainer&&(this.containerHeight=this.$refs.scrollContainer.clientHeight)},bindResizeObserver(){if("undefined"===typeof ResizeObserver)return;const e=this.$refs.scrollContainer;e&&(this.resizeObserver=new ResizeObserver(()=>{this.updateContainerHeight()}),this.resizeObserver.observe(e))},unbindResizeObserver(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)},handleSearch(){this.$emit("search",this.searchText)},handleSortToggle(){const e=["","ascending","descending"],t=e.indexOf(this.currentSortOrder);this.currentSortOrder=e[(t+1)%3],this.$emit("sort-change",{prop:this.sortBy,order:this.currentSortOrder})},handleItemClick(e,t){this.$emit("click-item",{item:e,groupKey:t})},handleLoadMore(){this.$emit("load-more")},handleSizeChange(e){this.$emit("size-change",e)},handleCurrentChange(e){this.$emit("page-change",e)},scrollToTop(){this.$refs.scrollContainer&&this.$refs.scrollContainer.scrollTo({top:0,behavior:"smooth"})},expandGroup(e){const t={...this.groupExpandState};t[e]=!0,this.groupExpandState=t},collapseGroup(e){const t={...this.groupExpandState};t[e]=!1,this.groupExpandState=t},collapseAll(){const e={};this.groupedData.forEach(t=>{e[t._key]=!1}),this.groupExpandState=e},expandAllGroups(){this.groupExpandState={}}}},zr=Mr,$r=(i("732a"),Object(G["a"])(zr,Cr,Sr,!1,null,"53c7db00",null)),Lr=$r.exports;Lr.install=function(e){e.component(Lr.name,Lr)};var Ir=Lr,Ar=(i("4e56"),function(){var e=this,t=e._self._c;return t("div",{staticClass:"xt-scroll-arrow",class:["xt-scroll-arrow--"+e.direction],style:e.containerStyle},[e.showLeftArrow?t("div",{staticClass:"xt-scroll-arrow__btn xt-scroll-arrow__btn--left",on:{click:e.scrollLeft}},[t("i",{staticClass:"el-icon-arrow-left"})]):e._e(),t("div",{ref:"scrollContainer",staticClass:"xt-scroll-arrow__content",on:{scroll:e.handleScroll,click:e.handleClick}},[e._t("default")],2),e.showRightArrow?t("div",{staticClass:"xt-scroll-arrow__btn xt-scroll-arrow__btn--right",on:{click:e.scrollRight}},[t("i",{staticClass:"el-icon-arrow-right"})]):e._e(),e.showTopArrow&&"vertical"===e.direction?t("div",{staticClass:"xt-scroll-arrow__btn xt-scroll-arrow__btn--top",on:{click:e.scrollTop}},[t("i",{staticClass:"el-icon-arrow-up"})]):e._e(),e.showBottomArrow&&"vertical"===e.direction?t("div",{staticClass:"xt-scroll-arrow__btn xt-scroll-arrow__btn--bottom",on:{click:e.scrollBottom}},[t("i",{staticClass:"el-icon-arrow-down"})]):e._e()])}),Nr=[],Or={name:"XtScrollArrow",props:{direction:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].includes(e)},scrollStep:{type:Number,default:100},autoHide:{type:Boolean,default:!0},height:{type:[String,Number],default:""},width:{type:[String,Number],default:""},appendMode:{type:Boolean,default:!1},clickMode:{type:Boolean,default:!1}},data(){return{showLeftArrow:!1,showRightArrow:!1,showTopArrow:!1,showBottomArrow:!1}},computed:{containerStyle(){const e={};return this.height&&(e.height="number"===typeof this.height?this.height+"px":this.height),this.width&&(e.width="number"===typeof this.width?this.width+"px":this.width),e}},watch:{direction(){this.$nextTick(()=>{this.checkScroll()})}},mounted(){this.$nextTick(()=>{this.checkScroll()}),this.addResizeObserver(),this.addMutationObserver()},beforeDestroy(){this.removeResizeObserver(),this.removeMutationObserver()},methods:{addResizeObserver(){if("undefined"!==typeof ResizeObserver){this.resizeObserver=new ResizeObserver(()=>{this.$nextTick(()=>{this.checkScroll()})});const e=this.$refs.scrollContainer;e&&this.resizeObserver.observe(e)}},removeResizeObserver(){this.resizeObserver&&this.resizeObserver.disconnect()},addMutationObserver(){if("undefined"!==typeof MutationObserver){this.mutationObserver=new MutationObserver(()=>{this.$nextTick(()=>{this.checkScroll(),this.appendMode&&this.scrollToEnd()})});const e=this.$refs.scrollContainer;e&&this.mutationObserver.observe(e,{childList:!0,subtree:!0})}},removeMutationObserver(){this.mutationObserver&&this.mutationObserver.disconnect()},checkScroll(){const e=this.$refs.scrollContainer;if(e)if("horizontal"===this.direction){const t=e.scrollLeft,i=e.scrollWidth,s=e.clientWidth,r=i-s;this.showTopArrow=!1,this.showBottomArrow=!1,this.autoHide?(this.showLeftArrow=t>0,this.showRightArrow=r>0&&t<r):(this.showLeftArrow=r>0,this.showRightArrow=r>0)}else{const t=e.scrollTop,i=e.scrollHeight,s=e.clientHeight,r=i-s;this.showLeftArrow=!1,this.showRightArrow=!1,this.autoHide?(this.showTopArrow=t>0,this.showBottomArrow=r>0&&t<r):(this.showTopArrow=r>0,this.showBottomArrow=r>0)}},handleScroll(){this.checkScroll(),this.$emit("scroll",this.$refs.scrollContainer)},handleClick(e){if(!this.clickMode)return;const t=this.$refs.scrollContainer;if(!t)return;const i=e.target;if(!i||i===t)return;const s=t.getBoundingClientRect(),r=i.getBoundingClientRect(),a=r.left>=s.left&&r.right<=s.right&&r.top>=s.top&&r.bottom<=s.bottom;if(!a)if("horizontal"===this.direction){const e=i.offsetLeft-(t.clientWidth-r.width)/2;t.scrollTo({left:e,behavior:"smooth"})}else{const e=i.offsetTop-(t.clientHeight-r.height)/2;t.scrollTo({top:e,behavior:"smooth"})}},scrollLeft(){const e=this.$refs.scrollContainer;e&&e.scrollBy({left:-this.scrollStep,behavior:"smooth"})},scrollRight(){const e=this.$refs.scrollContainer;e&&e.scrollBy({left:this.scrollStep,behavior:"smooth"})},scrollTop(){const e=this.$refs.scrollContainer;e&&e.scrollBy({top:-this.scrollStep,behavior:"smooth"})},scrollBottom(){const e=this.$refs.scrollContainer;e&&e.scrollBy({top:this.scrollStep,behavior:"smooth"})},scrollToEnd(){const e=this.$refs.scrollContainer;e&&("horizontal"===this.direction?e.scrollTo({left:e.scrollWidth,behavior:"smooth"}):e.scrollTo({top:e.scrollHeight,behavior:"smooth"}))}}},Er=Or,Pr=Object(G["a"])(Er,Ar,Nr,!1,null,null,null),Dr=Pr.exports;Dr.install=function(e){e.component(Dr.name,Dr)};var Br=Dr,Rr=function(){var e=this,t=e._self._c;return t("div",{staticClass:"xt-page-container",class:e.containerClass,style:e.rootCssVars},[t("el-container",{staticClass:"xt-page-main-wrap"},[e.$slots.header&&e.showHeader?t("el-header",{ref:"header",staticClass:"xt-page-header",class:e.headerClass},[e._t("header")],2):e._e(),t("el-main",{ref:"main",staticClass:"xt-page-main",class:e.mainClass},[e._t("default",null,{tableHeight:e.tableContentHeight})],2),e.$slots.footer&&e.showFooter?t("el-footer",{ref:"footer",staticClass:"xt-page-footer",class:e.footerClass},[e._t("footer")],2):e._e()],1),e.$slots.aside&&e.showAside?t("el-aside",{ref:"aside",staticClass:"xt-page-aside",class:e.asideClass,attrs:{width:e.asideWidth}},[e._t("aside")],2):e._e(),e._t("dialog")],2)},Fr=[],jr={name:"XtPage",props:{showHeader:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0},showAside:{type:Boolean,default:!0},asideWidth:{type:String,default:"240px"},diffHeight:{type:Number,default:0},minTableHeight:{type:Number,default:200},tableBorderHeight:{type:Number,default:1},containerClass:{type:String,default:""},headerClass:{type:String,default:""},mainClass:{type:String,default:""},asideClass:{type:String,default:""},footerClass:{type:String,default:""}},data(){return{rawMainHeight:0,resizeTimer:null}},computed:{rootCssVars(){return{"--xt-page-aside-width":this.asideWidth}},tableContentHeight(){const e=this.rawMainHeight-this.diffHeight-this.tableBorderHeight;return Math.max(e,this.minTableHeight)}},mounted(){this.$nextTick(()=>this.calcMainHeight()),window.addEventListener("resize",this.handleResize)},beforeDestroy(){clearTimeout(this.resizeTimer),window.removeEventListener("resize",this.handleResize)},methods:{handleResize(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{this.calcMainHeight()},120)},calcMainHeight(){if(!this.$refs.main||!this.$refs.main.$el)return;const e=this.$refs.main.$el.getBoundingClientRect();this.rawMainHeight=e.height}}},Xr=jr,Hr=(i("c32d"),Object(G["a"])(Xr,Rr,Fr,!1,null,"a1f6b910",null)),Kr=Hr.exports;Kr.install=function(e){e.component(Kr.name,Kr)};var Vr=Kr,Ur=function(){var e=this,t=e._self._c;return t("div",{staticClass:"el-select select-tree"},[t("el-popover",{ref:"elPopover",attrs:{transition:"el-zoom-in-top","popper-class":"select-tree__popover",trigger:"click",disabled:e.disabled,placement:e.placement,width:e.popoverWidth},on:{"after-enter":e.handleScroll,show:e.handleFocus,hide:e.handleBlur},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[t("el-scrollbar",{ref:"scrollbar",attrs:{"wrap-class":"el-select-dropdown__wrap","view-class":"el-select-dropdown__list"}},[t("el-tree",{ref:"elTree",staticClass:"select-tree__list",style:{minWidth:e.minWidth+"px"},attrs:{"default-expand-keys":e.defaultExpandKeys,"show-checkbox":e.multiple,"expand-on-click-node":e.multiple,data:e.data,props:e.props,"node-key":e.propsValue,"default-expand-all":e.defaultExpandAll,"check-strictly":e.checkStrictly,lazy:e.lazy,load:e.load,"icon-class":e.iconClass,"highlight-current":e.highlightCurrent,indent:e.indent,accordion:e.accordion,"filter-node-method":e.filterNodeMethod,"auto-expand-parent":e.autoExpandParent,"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand},on:{"check-change":e.checkChange,"node-click":e.nodeClick},nativeOn:{transitionend:function(t){return e.$refs.elPopover.updatePopper()}},scopedSlots:e._u([{key:"default",fn:function({data:i}){return t("div",{staticClass:"select-tree__item",class:e.treeItemClass(i)},[e._v(" "+e._s(i[e.propsLabel])+" ")])}}])})],1),t("el-input",{ref:"reference",class:{"is-active":e.visible,"is-selected":e.selectedLabel},attrs:{slot:"reference",clearable:e.clearable,readonly:!e.filterable,"validate-event":!1,size:e.size,disabled:e.disabled,placeholder:e.query||e.placeholder},on:{input:e.getTreeFilter,clear:e.clear},slot:"reference",model:{value:e.selectedLabel,callback:function(t){e.selectedLabel=t},expression:"selectedLabel"}},[t("i",{staticClass:"el-input__icon el-input__icon-arrow-down el-icon-arrow-down",attrs:{slot:"suffix"},slot:"suffix"})])],1)],1)},Wr=[],Yr=i("d010"),qr=i.n(Yr),Zr=i("4010"),Gr={name:"XtSelectTree",mixins:[qr.a],inheritAttrs:!1,model:{prop:"value",event:"change"},props:{data:{type:Array,default(){return[]}},props:{type:Object,default:()=>({value:"value",label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf"})},checkStrictly:Boolean,nodeKey:String,defaultExpandAll:Boolean,lazy:Boolean,load:Function,iconClass:String,indent:Number,accordion:Boolean,filterNodeMethod:{type:Function,default(e,t,i){return!e||-1!==i.label.indexOf(e)}},autoExpandParent:{type:Boolean,default:!0},renderContent:Function,renderAfterExpand:Boolean,clearable:Boolean,placeholder:{type:String,default:"请选择"},placement:{type:String,default:"bottom-start"},size:{type:String,default:""},disabled:Boolean,highlightCurrent:{default:!0,type:Boolean},filterable:{type:Boolean,default:!0},multiple:Boolean,value:{type:[Number,String,Array],default:""},defaultValue:{type:[Number,String,Array],default:""},nodeAbleClick:{type:Function,default(){return(e,t)=>!0}},popoverWidth:Number,checkLeafOnly:{default:!1,type:Boolean},includeHalfChecked:{default:!1,type:Boolean}},data(){return{timer:null,selectedLabel:"",minWidth:0,visible:!1,query:""}},computed:{triggerEventImmediate(){return this.defaultValue==this.value},propsValue(){return this.nodeKey||this.props.value||"value"},propsLabel(){return this.props.label||"label"},propsIsLeaf(){return this.props.isLeaf||"isLeaf"},defaultExpandKeys(){return Array.isArray(this.value)?this.value:this.value||0===this.value?[this.value]:[]}},watch:{value:{handler(){this.setSelected(this.triggerEventImmediate),this.dispatch("ElFormItem","el.form.change")}},data(){this.setSelected()}},created(){if(this.multiple&&!Array.isArray(this.value))throw new Error("[select-tree] props value must be array if use multiple")},mounted(){this.$nextTick(()=>{this.setSelected()}),Object(Zr["addResizeListener"])(this.$el,this.handleResize)},beforeDestroy(){this.$el&&this.handleResize&&Object(Zr["removeResizeListener"])(this.$el,this.handleResize)},methods:{getTreeFilter(e){this.$refs.elTree&&this.$refs.elTree.filter(e)},handleFocus(){this.filterable&&(this.$refs.elTree.filter(""),this.query=this.selectedLabel,this.selectedLabel="")},handleBlur(){this.filterable&&(this.selectedLabel=this.query,this.$refs.reference.blur())},valueChange(e,t){this.$emit("change",e,t)},clear(){this.visible=!1,this.multiple?(this.valueChange([]),this.$nextTick(()=>{this.$refs.elTree.setCheckedKeys([])})):this.valueChange(""),this.$emit("clear")},handleScroll(){this.$refs.scrollbar&&this.$refs.scrollbar.handleScroll()},nodeClick(e,t,i){const s=e[this.propsValue];this.nodeAbleClick(e,t)&&(this.valueChange(s,e),this.selectedLabel=e[this.propsLabel],this.multiple||e.disabled||(this.visible=!1))},checkChange(e,t,i){this.timer&&clearTimeout(this.timer),this.timer=setTimeout(()=>{const e=this.$refs.elTree,t=this.checkLeafOnly,i=this.includeHalfChecked,s=e.getCheckedNodes(t,i),r=e.getCheckedKeys(t);this.valueChange(r,s),this.setMultipleSelectedLabel()},50)},setSelected(e){this.$nextTick(()=>{const t=this.$refs.elTree;if(this.multiple)t.setCheckedKeys(this.value),this.setMultipleSelectedLabel(),e&&this.checkChange();else if(this.value){const i=t.getNode(this.value);t.setCurrentKey(this.value),i&&i.visible&&!this.lazy&&(i.isLeaf?i.parent.expand():i.expand()),this.selectedLabel=i?i.data[this.propsLabel]:"",e&&this.valueChange(this.value,i)}else t.setCurrentKey(""),this.selectedLabel="",e&&this.valueChange("")})},setMultipleSelectedLabel(){const e=this.$refs.elTree,t=e.getCheckedNodes(!this.checkStrictly);this.selectedLabel=t.map(e=>e[this.propsLabel]).join(",")},treeItemClass(e){return{"is-selected":!this.multiple&&e[this.propsValue]===this.value,"is-disabled":e.disabled}},handleResize(){this.minWidth=this.$el.clientWidth-2},getNodeById(e){return this.$refs.elTree.getNode(e)}}},Jr=Gr,Qr=(i("439a"),i("916e"),Object(G["a"])(Jr,Ur,Wr,!1,null,"962f42c0",null)),ea=Qr.exports;ea.install=function(e){e.component(ea.name,ea)};var ta=ea,ia=function(){var e=this,t=e._self._c;return t("XtFlexBox",{attrs:{type:"inline-flex",gap:"5px"}},[e.action?t("el-upload",{ref:"uploadFile",attrs:{disabled:e.disabled||e.uploading,action:e.YSSQP+e.action,"file-list":e.fileList,data:{accessToken:e.accessToken,...e.data},multiple:e.multiple,limit:e.limit,"on-success":e.uploadSuccess,"show-file-list":!1,"auto-upload":e.autoUpload,"before-upload":e.uploadBefore,accept:e.accept}},[t("span",{staticStyle:{"font-size":"20px",padding:"20px",background:"#f0f0f1",color:"#409EFF"},style:{padding:e.plusPx/2+"px",cursor:e.disabled?"not-allowed":"pointer"}},[e._t("default",(function(){return[t("i",{class:e.icon})]}))],2)]):e._e(),null!==e.fileList&&e.fileList.length>0?t("XtFlexBox",{staticClass:"el-upload-list el-upload-list--picture-card",staticStyle:{flex:"1"},attrs:{gap:"5px",wrap:"wrap"}},e._l(e.fileList,(function(i,s){return t("li",{key:s,staticClass:"el-upload-list__item is-ready",staticStyle:{margin:"0",width:"62px",height:"62px"},style:{width:e.plusPx+22+"px",height:e.plusPx+22+"px"}},[t("el-image",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:e.YSSQP+"/"+i,alt:""},on:{click:e.clickHandler}}),t("span",{staticClass:"el-upload-list__item-actions",on:{click:function(t){return e.preShowPicture(i,s)}}},[t("span",{staticClass:"el-upload-list__item-preview",on:{click:function(t){return t.stopPropagation(),e.preShowPicture(i,s)}}},[t("i",{staticClass:"el-icon-zoom-in"})]),e.uploading||e.disabled?e._e():t("span",{staticClass:"el-upload-list__item-delete",staticStyle:{"margin-left":"0"},on:{click:function(t){return t.stopPropagation(),e.handleRemove(s)}}},[t("i",{staticClass:"el-icon-delete"})])])],1)})),0):e._e(),e.preview?[e.previewVisible?t("ImageViewer",{attrs:{"z-index":3e3,"base-url":e.baseUrl+"/",infiniteLoop:!1,"initial-index":e.imageIndex,"url-list":e.allFileList||e.fileList,"on-close":e.closeViewer}}):e._e()]:e._e()],2)},sa=[],ra=function(){var e=this,t=e._self._c;return t("transition",{attrs:{name:"viewer-fade"}},[t("div",{ref:"el-image-viewer__wrapper",staticClass:"el-image-viewer__wrapper",style:{"z-index":e.zIndex},attrs:{tabindex:"-1"}},[t("div",{staticClass:"el-image-viewer__mask",on:{click:e.hide}}),t("span",{staticClass:"el-image-viewer__btn fix_close",on:{click:e.hide}},[t("i",{staticClass:"el-icon-close"})]),e.isSingle?e._e():[t("span",{staticClass:"el-image-viewer__btn el-image-viewer__prev",class:{"is-disabled":!e.infinite&&e.isFirst},on:{click:e.prev}},[t("i",{staticClass:"el-icon-arrow-left"})]),t("span",{staticClass:"el-image-viewer__btn el-image-viewer__next",class:{"is-disabled":!e.infinite&&e.isLast},on:{click:e.next}},[t("i",{staticClass:"el-icon-arrow-right"})])],t("div",{staticClass:"el-image-viewer__btn el-image-viewer__actions"},[t("div",{staticClass:"el-image-viewer__actions__inner"},[t("i",{staticClass:"el-icon-zoom-out",on:{click:function(t){return t.stopPropagation(),e.handleActions("zoomOut")}}}),t("i",{staticClass:"el-icon-zoom-in",on:{click:function(t){return t.stopPropagation(),e.handleActions("zoomIn")}}}),t("i",{staticClass:"el-image-viewer__actions__divider"}),t("i",{class:e.mode.icon,on:{click:function(t){return t.stopPropagation(),e.toggleMode.apply(null,arguments)}}}),t("i",{staticClass:"el-image-viewer__actions__divider"}),t("i",{staticClass:"el-icon-refresh-left",on:{click:function(t){return t.stopPropagation(),e.handleActions("anticlocelise")}}}),t("i",{staticClass:"el-icon-refresh-right",on:{click:function(t){return t.stopPropagation(),e.handleActions("clocelise")}}})])]),t("div",{staticClass:"el-image-viewer__canvas"},e._l(e.urlList,(function(i,s){return s===e.index?t("img",{key:i,ref:"img",refInFor:!0,staticClass:"el-image-viewer__img",style:e.imgStyle,attrs:{src:e.currentImg},on:{load:e.handleImgLoad,error:e.handleImgError,mousedown:e.handleMouseDown}}):e._e()})),0)],2)])},aa=[],na=i("8bbf"),la=i.n(na);const oa=la.a.prototype.$isServer,ca=(oa||Number(document.documentMode),function(){return!oa&&document.addEventListener?function(e,t,i){e&&t&&i&&e.addEventListener(t,i,!1)}:function(e,t,i){e&&t&&i&&e.attachEvent("on"+t,i)}}()),ha=function(){return!oa&&document.removeEventListener?function(e,t,i){e&&t&&e.removeEventListener(t,i,!1)}:function(e,t,i){e&&t&&e.detachEvent("on"+t,i)}}();let da=e=>{var t={};return e&&"[object Function]"===t.toString.call(e)};"object"===typeof Int8Array||!la.a.prototype.$isServer&&"function"===typeof document.childNodes||(da=function(e){return"function"===typeof e||!1});Object.prototype.hasOwnProperty;const ua=function(){return!la.a.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)};function pa(e){let t=!1;return function(...i){t||(t=!0,window.requestAnimationFrame(s=>{e.apply(this,i),t=!1}))}}const fa={CONTAIN:{name:"contain",icon:"el-icon-full-screen"},ORIGINAL:{name:"original",icon:"el-icon-c-scale-to-original"}},ma=ua()?"DOMMouseScroll":"mousewheel";var ya={name:"elImageViewer",props:{baseUrl:{type:String,default:""},urlList:{type:Array,default:()=>[]},zIndex:{type:Number,default:2e3},onSwitch:{type:Function,default:()=>{}},onClose:{type:Function,default:()=>{}},initialIndex:{type:Number,default:0},infiniteLoop:{type:Boolean,default:!0}},data(){return{index:this.initialIndex,isShow:!1,infinite:this.infiniteLoop,loading:!1,mode:fa.CONTAIN,transform:{scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}},computed:{isSingle(){return this.urlList.length<=1},isFirst(){return 0===this.index},isLast(){return this.index===this.urlList.length-1},currentImg(){return this.baseUrl+this.urlList[this.index]},imgStyle(){const{scale:e,deg:t,offsetX:i,offsetY:s,enableTransition:r}=this.transform,a={transform:`scale(${1*e}) rotate(${t}deg)`,transition:r?"transform .3s":"","margin-left":i+"px","margin-top":s+"px"};return this.mode===fa.CONTAIN&&(a.maxWidth=a.maxHeight="80%"),a}},watch:{index:{handler:function(e){this.reset(),this.onSwitch(e)}},currentImg(e){this.$nextTick(e=>{const t=this.$refs.img[0];t.complete||(this.loading=!0)})}},methods:{hide(){this.deviceSupportUninstall(),this.onClose()},deviceSupportInstall(){this._keyDownHandler=pa(e=>{const t=e.keyCode;switch(t){case 27:this.hide();break;case 32:this.toggleMode();break;case 37:this.prev();break;case 38:this.handleActions("zoomIn");break;case 39:this.next();break;case 40:this.handleActions("zoomOut");break}}),this._mouseWheelHandler=pa(e=>{const t=e.wheelDelta?e.wheelDelta:-e.detail;t>0?this.handleActions("zoomIn",{zoomRate:.015,enableTransition:!1}):this.handleActions("zoomOut",{zoomRate:.015,enableTransition:!1})}),ca(document,"keydown",this._keyDownHandler),ca(document,ma,this._mouseWheelHandler)},deviceSupportUninstall(){ha(document,"keydown",this._keyDownHandler),ha(document,ma,this._mouseWheelHandler),this._keyDownHandler=null,this._mouseWheelHandler=null},handleImgLoad(e){this.loading=!1},handleImgError(e){this.loading=!1,e.target.alt="加载失败"},handleMouseDown(e){if(this.loading||0!==e.button)return;const{offsetX:t,offsetY:i}=this.transform,s=e.pageX,r=e.pageY;this._dragHandler=pa(e=>{this.transform.offsetX=t+e.pageX-s,this.transform.offsetY=i+e.pageY-r}),ca(document,"mousemove",this._dragHandler),ca(document,"mouseup",e=>{ha(document,"mousemove",this._dragHandler)}),e.preventDefault()},reset(){this.transform={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}},toggleMode(){if(this.loading)return;const e=Object.keys(fa),t=Object.values(fa),i=t.indexOf(this.mode),s=(i+1)%e.length;this.mode=fa[e[s]],this.reset()},prev(){if(this.isFirst&&!this.infinite)return;const e=this.urlList.length;this.index=(this.index-1+e)%e},next(){if(this.isLast&&!this.infinite)return;const e=this.urlList.length;this.index=(this.index+1)%e},handleActions(e,t={}){if(this.loading)return;const{zoomRate:i,rotateDeg:s,enableTransition:r}={zoomRate:.2,rotateDeg:90,enableTransition:!0,...t},{transform:a}=this;switch(e){case"zoomOut":a.scale>.2&&(a.scale=parseFloat((a.scale-i).toFixed(3)));break;case"zoomIn":a.scale<10&&(a.scale=parseFloat((a.scale+i).toFixed(3)));break;case"clocelise":a.deg+=s;break;case"anticlocelise":a.deg-=s;break}a.enableTransition=r}},mounted(){this.deviceSupportInstall(),this.$refs["el-image-viewer__wrapper"].focus()}},ga=ya,ba=(i("2c86"),Object(G["a"])(ga,ra,aa,!1,null,"236adf7f",null)),va=ba.exports,_a={name:"XtUpload",components:{ImageViewer:va},model:{prop:"src",event:"change"},props:{data:{type:Object,default:()=>({})},src:{type:String,default:"",required:!0},accessToken:{type:String,default:""},autoUpload:{type:Boolean,default:!0},action:{type:String,default:""},baseUrl:{type:String,default:""},multiple:{type:Boolean,default:!1},accept:{type:String,default:".jpg,.jpeg,.png"},limit:{type:Number,default:5},disabled:{type:Boolean,default:!1},size:{type:String,default:""},beforeEmitData:{type:Function,default:(e,t,i)=>200==e.code&&(e.data.Result?e.data.Data:e.data[0])},allFileList:{type:Array},icon:{type:String,default:"el-icon-camera"}},data(){return{YSSQP:this.baseUrl,previewVisible:!1,uploading:!1,imageUrl:"",fileList:[],imageIndex:0}},computed:{preview(){const{fileList:e}=this;return Array.isArray(e)&&e.length>0},plusPx(){const e="big"==this.size?100:20;return 2*e}},watch:{src:{immediate:!0,deep:!0,handler(e){this.fileList=e?e.split(","):[]}}},methods:{clickHandler(){this.preview&&(this.previewVisible=!0)},closeViewer(){this.previewVisible=!1},preShowPicture(e,t){if(this.allFileList&&0!=this.allFileList.length){const i=this.allFileList.findIndex(t=>t==e);this.imageIndex=i>-1?i:t}else this.imageIndex=t;e.indexOf(".pdf")>-1?window.open(e,"_blank"):(this.imageUrl=this.baseUrl+"/"+e,this.previewVisible=!0)},handleRemove(e,t){try{this.fileList.splice(e,1),this.$emit("change",this.fileList.join(","))}catch(i){console.log(i)}},getPathName(e){return e.split("/").pop().split(".")[0]},uploadBefore(e,t){console.log(e);const i="image/jpeg"===e.type||"image/jpg"===e.type||"image/png"===e.type||"application/pdf"===e.type,s=e.size/1024/1024<50;return i||this.$message.error("上传图片只能是jpg,jpeg,png,pdf格式!"),s||this.$message.error("上传图片大小不能超过50MB!"),i&&s},uploadSuccess(e,t,i){const s=this.beforeEmitData(e,t,i);if(s)return this.fileList.push(s),this.$emit("change",this.fileList.join(",")),this.$message({message:"上传成功",center:!0,type:"success"}),e.data[0];this.$message({message:"上传失败",center:!0,type:"error"})}}},xa=_a,wa=Object(G["a"])(xa,ia,sa,!1,null,null,null),Ca=wa.exports;Ca.install=function(e){e.component(Ca.name,Ca)};var Sa=Ca,Ta=function(){var e=this,t=e._self._c;return t("div",{staticClass:"xt-transfer-tree"},[t("div",{staticClass:"xt-transfer-tree__panel xt-transfer-tree__source"},[t("div",{staticClass:"xt-transfer-tree__header"},[t("span",{staticClass:"xt-transfer-tree__title"},[e._v(e._s(e.leftTitle))]),t("span",{staticClass:"xt-transfer-tree__count"},[e._v(e._s(e.leftCheckedCount)+"/"+e._s(e.leftTotalCount))])]),e.filterable?t("div",{staticClass:"xt-transfer-tree__search"},[t("el-input",{attrs:{placeholder:"搜索","prefix-icon":"el-icon-search",size:"small"},model:{value:e.leftFilterText,callback:function(t){e.leftFilterText=t},expression:"leftFilterText"}})],1):e._e(),t("div",{staticClass:"xt-transfer-tree__body"},[t("el-tree",{ref:"leftTree",attrs:{data:e.sourceData,props:e.treeProps,"default-expand-all":e.defaultExpandAll,"filter-node-method":e.filterLeftNode,"show-checkbox":e.showCheckbox,"check-strictly":!e.cascade,"default-checked-keys":e.leftCheckedKeys},on:{"check-change":e.handleLeftCheckChange,"node-click":e.handleLeftNodeClick},scopedSlots:e._u([{key:"default",fn:function({node:i,data:s}){return t("span",{staticClass:"xt-transfer-tree__node"},[t("span",[e._v(e._s(i.label))]),s.children&&s.children.length?t("span",{staticClass:"xt-transfer-tree__node-count"},[e._v(" ("+e._s(s.children.length)+") ")]):e._e()])}}])})],1)]),t("div",{staticClass:"xt-transfer-tree__buttons"},[t("el-button",{attrs:{type:"primary",disabled:!e.leftCheckedCount,size:e.buttonSize},on:{click:e.transferToRight}},[t("i",{staticClass:"el-icon-arrow-right"})]),t("el-button",{attrs:{type:"primary",disabled:!e.rightCheckedCount,size:e.buttonSize},on:{click:e.transferToLeft}},[t("i",{staticClass:"el-icon-arrow-left"})])],1),t("div",{staticClass:"xt-transfer-tree__panel xt-transfer-tree__target"},[t("div",{staticClass:"xt-transfer-tree__header"},[t("span",{staticClass:"xt-transfer-tree__title"},[e._v(e._s(e.rightTitle))]),t("span",{staticClass:"xt-transfer-tree__count"},[e._v(e._s(e.rightCheckedCount)+"/"+e._s(e.rightTotalCount))])]),e.filterable?t("div",{staticClass:"xt-transfer-tree__search"},[t("el-input",{attrs:{placeholder:"搜索","prefix-icon":"el-icon-search",size:"small"},model:{value:e.rightFilterText,callback:function(t){e.rightFilterText=t},expression:"rightFilterText"}})],1):e._e(),t("div",{staticClass:"xt-transfer-tree__body"},[t("el-tree",{ref:"rightTree",attrs:{data:e.targetData,props:e.treeProps,"default-expand-all":e.defaultExpandAll,"filter-node-method":e.filterRightNode,"show-checkbox":e.showCheckbox,"check-strictly":!e.cascade,"default-checked-keys":e.rightCheckedKeys},on:{"check-change":e.handleRightCheckChange,"node-click":e.handleRightNodeClick},scopedSlots:e._u([{key:"default",fn:function({node:i,data:s}){return t("span",{staticClass:"xt-transfer-tree__node"},[t("span",[e._v(e._s(i.label))]),s.children&&s.children.length?t("span",{staticClass:"xt-transfer-tree__node-count"},[e._v(" ("+e._s(s.children.length)+") ")]):e._e()])}}])})],1)])])},ka=[],Ma={name:"XtTransferTree",props:{data:{type:Array,default:()=>[]},value:{type:Array,default:()=>[]},leftTitle:{type:String,default:"待选择"},rightTitle:{type:String,default:"已选择"},treeProps:{type:Object,default:()=>({label:"label",children:"children",value:"id"})},defaultExpandAll:{type:Boolean,default:!0},filterable:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!0},cascade:{type:Boolean,default:!0},transferMode:{type:String,default:"single",validator:e=>["single","multiple","parent-child"].includes(e)},buttonSize:{type:String,default:"small"}},data(){return{leftFilterText:"",rightFilterText:"",leftCheckedKeys:[],rightCheckedKeys:[]}},computed:{sourceData(){const e=new Set(this.value);return this.filterTreeData(this.data,e,!0)},targetData(){const e=new Set(this.value);return this.filterTreeData(this.data,e,!1)},leftTotalCount(){return this.countTreeNodes(this.sourceData)},rightTotalCount(){return this.countTreeNodes(this.targetData)},leftCheckedCount(){return this.leftCheckedKeys.length},rightCheckedCount(){return this.rightCheckedKeys.length}},watch:{leftFilterText(e){this.$refs.leftTree&&this.$refs.leftTree.filter(e)},rightFilterText(e){this.$refs.rightTree&&this.$refs.rightTree.filter(e)}},methods:{filterTreeData(e,t,i){return e.map(e=>{const s=t.has(e[this.treeProps.value]);if(i&&s)return null;if(!i&&!s)return null;const r={...e};if(e.children&&e.children.length){const s=this.filterTreeData(e.children,t,i);s.length?r.children=s:delete r.children}return r}).filter(Boolean)},countTreeNodes(e){let t=0;return e.forEach(e=>{t++,e.children&&(t+=this.countTreeNodes(e.children))}),t},getAllKeys(e,t=[]){return t.push(e[this.treeProps.value]),e.children&&e.children.forEach(e=>this.getAllKeys(e,t)),t},getParentKeys(e,t,i=[]){for(const s of e){if(s[this.treeProps.value]===t)return i;if(s.children){const e=this.getParentKeys(s.children,t,[...i,s[this.treeProps.value]]);if(e.length>0)return e}}return[]},filterLeftNode(e,t){return!e||-1!==String(t[this.treeProps.label]).toLowerCase().indexOf(e.toLowerCase())},filterRightNode(e,t){return!e||-1!==String(t[this.treeProps.label]).toLowerCase().indexOf(e.toLowerCase())},handleLeftCheckChange(e,t){const i=e[this.treeProps.value];t?(this.leftCheckedKeys.includes(i)||this.leftCheckedKeys.push(i),this.cascade&&e.children&&e.children.forEach(e=>{const t=e[this.treeProps.value];this.leftCheckedKeys.includes(t)||this.leftCheckedKeys.push(t)})):(this.leftCheckedKeys=this.leftCheckedKeys.filter(e=>e!==i),this.cascade&&e.children&&e.children.forEach(e=>{this.leftCheckedKeys=this.leftCheckedKeys.filter(t=>t!==e[this.treeProps.value])}))},handleRightCheckChange(e,t){const i=e[this.treeProps.value];t?(this.rightCheckedKeys.includes(i)||this.rightCheckedKeys.push(i),this.cascade&&e.children&&e.children.forEach(e=>{const t=e[this.treeProps.value];this.rightCheckedKeys.includes(t)||this.rightCheckedKeys.push(t)})):(this.rightCheckedKeys=this.rightCheckedKeys.filter(e=>e!==i),this.cascade&&e.children&&e.children.forEach(e=>{this.rightCheckedKeys=this.rightCheckedKeys.filter(t=>t!==e[this.treeProps.value])}))},handleLeftNodeClick(e){if(!this.showCheckbox){e[this.treeProps.value];const t=this.getTransferKeys(e);this.transferKeys(t,!0)}},handleRightNodeClick(e){if(!this.showCheckbox){e[this.treeProps.value];const t=this.getTransferKeys(e);this.transferKeys(t,!1)}},getTransferKeys(e){const t=e[this.treeProps.value];switch(this.transferMode){case"parent-child":return this.getAllKeys(e);case"multiple":return[t];default:return[t]}},transferToRight(){const e=[...this.leftCheckedKeys];this.transferKeys(e,!0),this.leftCheckedKeys=[]},transferToLeft(){const e=[...this.rightCheckedKeys];this.transferKeys(e,!1),this.rightCheckedKeys=[]},transferKeys(e,t){const i=[...this.value],s=new Set(i);t?(e.forEach(e=>s.add(e)),this.cascade&&e.forEach(e=>{const t=this.getParentKeys(this.data,e);t.forEach(e=>s.add(e))})):(e.forEach(e=>s.delete(e)),this.cascade&&e.forEach(e=>{const t=[];this.findAllChildKeys(this.data,e,t),t.forEach(e=>s.delete(e))}));const r=Array.from(s);this.$emit("update:value",r),this.$emit("change",{value:r,addedKeys:t?e:[],removedKeys:t?[]:e})},findAllChildKeys(e,t,i){for(const s of e)s[this.treeProps.value]===t&&s.children&&s.children.forEach(e=>{i.push(e[this.treeProps.value]),e.children&&this.findAllChildKeys([e],e[this.treeProps.value],i)}),s.children&&this.findAllChildKeys(s.children,t,i)},clearSelection(){this.leftCheckedKeys=[],this.rightCheckedKeys=[]}}},za=Ma,$a=(i("d2eb"),Object(G["a"])(za,Ta,ka,!1,null,"561bec94",null)),La=$a.exports;La.install=function(e){e.component(La.name,La)};var Ia=La,Aa=function(){var e=this,t=e._self._c;return t("div",{staticClass:"xt-form-schema"},[e.showSearchTags?t("div",{staticClass:"search-tags"},[t("span",{staticClass:"tags-title"},[e._v("已检索:")]),e._l(e.activeSearchTags,(function(i,s){return t("el-tag",{key:s,attrs:{closable:"",size:"small"},on:{close:function(t){return e.handleRemoveTag(s)}}},[e._v(" "+e._s(i.label)+": "+e._s(i.value)+" ")])})),0===e.activeSearchTagsCount?t("span",{staticClass:"no-tags"},[e._v("暂无检索条件")]):e._e()],2):e._e(),"dialog"===e.mode?t("el-dialog",{staticClass:"xt-form-schema-dialog",attrs:{title:e.title,visible:e.visible,width:e.width,"before-close":e.handleCancel,"append-to-body":"","modal-append-to-body":""},on:{"update:visible":function(t){e.visible=t}}},[t("el-form",{attrs:{model:e.formData,inline:!1,"label-width":"120px"}},e._l(e.schema,(function(i){return t("el-form-item",{key:i.prop,attrs:{label:i.label,prop:i.prop}},[i.isSlot?e._t(i.prop,null,{field:i}):t(e.getFieldComponent(i),e._b({tag:"component"},"component",e.getFieldProps(i),!1))],2)})),1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:e.handleCancel}},[e._v("取消")]),t("el-button",{attrs:{type:"primary"},on:{click:e.handleConfirm}},[e._v("确认")])],1)],1):e._e(),"drawer"===e.mode?t("el-drawer",{staticClass:"xt-form-schema-drawer",attrs:{title:e.title,visible:e.visible,direction:e.direction,size:e.width,"before-close":e.handleCancel,"append-to-body":"","modal-append-to-body":""},on:{"update:visible":function(t){e.visible=t}}},[t("el-form",{attrs:{model:e.formData,inline:!1,"label-width":"120px"}},e._l(e.schema,(function(i){return t("el-form-item",{key:i.prop,attrs:{label:i.label,prop:i.prop}},[i.isSlot?e._t(i.prop,null,{field:i}):t(e.getFieldComponent(i),e._b({tag:"component"},"component",e.getFieldProps(i),!1))],2)})),1),t("div",{staticClass:"drawer-footer"},[t("el-button",{on:{click:e.handleCancel}},[e._v("取消")]),t("el-button",{attrs:{type:"primary"},on:{click:e.handleConfirm}},[e._v("确认")])],1)],1):e._e()],1)},Na=[],Oa={name:"XtFormSchema",props:{visible:{type:Boolean,default:!1},value:{type:Object,default:()=>({})},schema:{type:Array,default:()=>[]},mode:{type:String,default:"dialog",validator:e=>["dialog","drawer"].includes(e)},title:{type:String,default:"高级搜索"},width:{type:[String,Number],default:"500px"},direction:{type:String,default:"rtl",validator:e=>["ltr","rtl","ttb","btt"].includes(e)},showSearchTags:{type:Boolean,default:!1},simpleFields:{type:Array,default:()=>[]}},data(){return{formData:{}}},computed:{activeSearchTags(){const e={};return this.schema.forEach(t=>{const i=this.formData[t.prop];if(null!==i&&void 0!==i&&""!==i&&i!==[]){let s=i;if("select"===t.type&&t.options){const e=t.options.find(e=>e.value===i);s=e?e.label:i}else if("date"===t.type&&Array.isArray(i))s=i.map(e=>e?this.formatDate(e):"").join(" - ");else if("daterange"===t.type&&Array.isArray(i))s=i.map(e=>e?this.formatDate(e):"").join(" - ");else if("checkbox-group"===t.type&&Array.isArray(i)){const e=i.map(e=>{const i=(t.options||[]).find(t=>t.value===e);return i?i.label:e});s=e.join(", ")}e[t.prop]={label:t.label,value:s}}}),e},activeSearchTagsCount(){return Object.keys(this.activeSearchTags).length}},watch:{visible:{immediate:!0,handler(e){e&&this.initFormData()}},value:{deep:!0,handler(e){e&&this.visible&&(this.formData={...e})}}},methods:{initFormData(){const e={};this.schema.forEach(t=>{e[t.prop]=void 0!==this.value[t.prop]?this.value[t.prop]:void 0!==t.defaultValue?t.defaultValue:""}),this.formData=e},getFieldComponent(e){const t={input:"el-input",textarea:"el-input",select:"el-select",checkbox:"el-checkbox","checkbox-group":"el-checkbox-group",radio:"el-radio","radio-group":"el-radio-group",date:"el-date-picker",daterange:"el-date-picker",datetime:"el-date-picker","datetime-range":"el-date-picker",number:"el-input-number",switch:"el-switch"};return t[e.type]||"el-input"},getFieldProps(e){const t={value:this.formData[e.prop],placeholder:e.placeholder||"请输入"+e.label};return"textarea"===e.type&&(t.type="textarea",t.rows=e.rows||3),"select"===e.type&&(t.filterable=e.filterable||!1,t.multiple=e.multiple||!1),"date"===e.type&&(t.type=e.dateType||"date",t.format=e.format||"yyyy-MM-dd",t["value-format"]=e.valueFormat||"yyyy-MM-dd"),"daterange"===e.type&&(t.type="daterange",t.format=e.format||"yyyy-MM-dd",t["value-format"]=e.valueFormat||"yyyy-MM-dd"),"datetime"===e.type&&(t.type="datetime",t.format=e.format||"yyyy-MM-dd HH:mm:ss",t["value-format"]=e.valueFormat||"yyyy-MM-dd HH:mm:ss"),"datetime-range"===e.type&&(t.type="datetimerange",t.format=e.format||"yyyy-MM-dd HH:mm:ss",t["value-format"]=e.valueFormat||"yyyy-MM-dd HH:mm:ss"),"number"===e.type&&(t.min=e.min,t.max=e.max,t.step=e.step||1),"checkbox-group"!==e.type&&"radio-group"!==e.type||(t.options=e.options||[]),void 0!==e.disabled&&(t.disabled=e.disabled),void 0!==e.size&&(t.size=e.size),t["on:input"]=t=>this.handleFieldChange(e.prop,t),t["on:change"]=t=>this.handleFieldChange(e.prop,t),t},handleFieldChange(e,t){this.formData[e]=t,this.$emit("input",{...this.formData}),this.$emit("change",{prop:e,value:t})},handleRemoveTag(e){this.formData[e]="",this.$emit("input",{...this.formData}),this.$emit("change",{prop:e,value:""})},handleConfirm(){this.$emit("confirm",{...this.formData}),this.$emit("input",{...this.formData}),this.$emit("update:visible",!1)},handleCancel(){this.$emit("cancel"),this.$emit("update:visible",!1)},formatDate(e){if(!e)return"";const t=new Date(e),i=t.getFullYear(),s=String(t.getMonth()+1).padStart(2,"0"),r=String(t.getDate()).padStart(2,"0");return`${i}-${s}-${r}`},resetFields(){this.initFormData(),this.schema.forEach(e=>{this.formData[e.prop]=void 0!==e.defaultValue?e.defaultValue:""}),this.$emit("input",{...this.formData})}}},Ea=Oa,Pa=(i("ee05"),Object(G["a"])(Ea,Aa,Na,!1,null,"50399771",null)),Da=Pa.exports;Da.install=function(e){e.component(Da.name,Da)};var Ba=Da,Ra=(i("fdbd"),function(){var e=this,t=e._self._c;return t("div",{staticClass:"xt-flow",class:e.rootClasses},[e._l(e.displayNodes,(function(i,s){return t("div",{key:i.id||s,staticClass:"xt-flow__node",class:e.nodeClasses(i,s)},[t("div",{staticClass:"xt-flow__timeline"},[t("div",{staticClass:"xt-flow__icon",class:"xt-flow__icon--"+i.status},[e._t("node-avatar",(function(){return[t("span",{staticClass:"xt-flow__icon-dot"})]}),{node:i,index:s})],2),s<e.displayNodes.length-1?t("div",{staticClass:"xt-flow__line",class:["xt-flow__line--"+i.status,{"xt-flow__line--dashed":"rejected"===i.status}]}):e._e()]),t("div",{staticClass:"xt-flow__body"},[t("div",{staticClass:"xt-flow__header"},[t("span",{staticClass:"xt-flow__title"},[e._t("node",(function(){return[e._v(" "+e._s(i.name||i.title)+" ")]}),{node:i,index:s})],2),t("span",{staticClass:"xt-flow__status",class:"xt-flow__status--"+i.status},[e._v(" "+e._s(e.statusText(i.status))+" ")])]),t("div",{staticClass:"xt-flow__meta"},[i.assignee?[t("span",{staticClass:"xt-flow__assignee"},[e._t("assignee",(function(){return[t("span",{staticClass:"xt-flow__assignee-icon"},[e._v("👤")]),e._v(" "+e._s(i.assignee)+" ")]}),{node:i,index:s})],2)]:e._e(),i.createTime||i.endTime?[t("span",{staticClass:"xt-flow__time"},[e._v(" "+e._s(e.formatTime(i))+" ")])]:e._e(),i.duration?[t("span",{staticClass:"xt-flow__duration"},[e._v(" "+e._s(i.duration)+" ")])]:e._e()],2),i.comment||i.description?t("div",{staticClass:"xt-flow__desc"},[e._t("node-desc",(function(){return["rejected"===i.status&&i.comment?[t("span",{staticClass:"xt-flow__desc-label"},[e._v("驳回原因:")])]:i.comment?[t("span",{staticClass:"xt-flow__desc-label"},[e._v("审批意见:")])]:e._e(),e._v(" "+e._s(i.comment||i.description)+" ")]}),{node:i,index:s})],2):e._e(),e.$scopedSlots["node-action"]?t("div",{staticClass:"xt-flow__actions"},[e._t("node-action",null,{node:i,index:s})],2):e._e()])])})),e.isCollapsible&&e.collapsed?t("div",{staticClass:"xt-flow__collapse",on:{click:e.toggleCollapse}},[e._t("expand-trigger",(function(){return[t("span",{staticClass:"xt-flow__collapse-text"},[e._v(" 展开全部 "+e._s(e.totalCount)+" 条审批记录 "),t("span",{staticClass:"xt-flow__collapse-arrow"},[e._v("▼")])])]}))],2):e._e(),e.isCollapsible&&!e.collapsed?t("div",{staticClass:"xt-flow__collapse",on:{click:e.toggleCollapse}},[e._t("collapse-trigger",(function(){return[e._m(0)]}))],2):e._e()],2)}),Fa=[function(){var e=this,t=e._self._c;return t("span",{staticClass:"xt-flow__collapse-text"},[e._v(" 收起 "),t("span",{staticClass:"xt-flow__collapse-arrow xt-flow__collapse-arrow--up"},[e._v("▲")])])}];const ja={status:"pending",name:"待处理",assignee:"--",createTime:null,comment:"等待审批中..."};function Xa(e,t={}){const{pendingNode:i=null,autoPending:s=!0}=t;if(!e||!e.length)return[];const r=e.filter(e=>"startEvent"!==e.type&&!!(e.name||e.taskName||e.activityName)).map(e=>{const t={id:e.id||e.taskId||"",name:e.name||e.taskName||e.activityName||"",assignee:e.assignee||"",createTime:e.startTime||e.createTime||"",endTime:e.endTime||"",status:Ha(e),comment:e.comment||e.deleteReason||"",duration:Ka(e.durationInMillis||e.duration),raw:e};return t});if(s&&r.length>0){const e=r[r.length-1];if("pending"!==e.status){const e=i||ja;r.push({id:"pending",name:e.name||"待处理",assignee:e.assignee||"--",createTime:e.createTime||null,endTime:null,status:"pending",comment:e.comment||"",duration:"",raw:e})}}return r}function Ha(e){const t=(e.deleteReason||"").toLowerCase();return t.includes("reject")||t.includes("驳回")?"rejected":t.includes("delegate")||t.includes("委托")?"delegated":t.includes("transfer")||t.includes("转办")?"transferred":t.includes("revoke")||t.includes("撤回")||t.includes("recall")?"recalled":t.includes("cancel")||t.includes("取消")?"cancelled":e.endTime&&!e.deleteReason||e.endTime?"approved":"pending"}function Ka(e){if(!e&&0!==e)return"";const t=Math.floor(e/1e3);if(t<60)return t+"秒";const i=Math.floor(t/60);if(i<60)return i+"分钟";const s=Math.floor(i/60),r=i%60;if(s<24)return r>0?`${s}小时${r}分钟`:s+"小时";const a=Math.floor(s/24),n=s%24;return n>0?`${a}天${n}小时`:a+"天"}function Va(e,t){if(!e)return"";try{const i=new Date(e);if(isNaN(i.getTime()))return e;const s=i.getFullYear(),r=String(i.getMonth()+1).padStart(2,"0"),a=String(i.getDate()).padStart(2,"0"),n=String(i.getHours()).padStart(2,"0"),l=String(i.getMinutes()).padStart(2,"0"),o=String(i.getSeconds()).padStart(2,"0");return t.replace("YYYY",s).replace("MM",r).replace("DD",a).replace("HH",n).replace("mm",l).replace("ss",o)}catch(i){return e}}var Ua={name:"XtFlow",props:{data:{type:Array,default:()=>[]},collapse:{type:Boolean,default:!0},collapseCount:{type:Number,default:5},rounded:{type:String,default:"square",validator:e=>["square","round"].includes(e)},format:{type:String,default:"flowable",validator:e=>["flowable","custom"].includes(e)},timeFormat:{type:String,default:"YYYY-MM-DD HH:mm:ss"},statusMap:{type:Object,default:()=>({approved:"已通过",rejected:"已驳回",pending:"待审批",transferred:"已转办",delegated:"已委托",recalled:"已撤回",started:"已发起",cancelled:"已取消"})}},data(){return{collapsed:!0}},computed:{rootClasses(){return["xt-flow--"+this.rounded]},parsedData(){return"flowable"===this.format?Xa(this.data):this.data},totalCount(){return this.parsedData.length},isCollapsible(){return this.collapse&&this.totalCount>this.collapseCount},displayNodes(){return this.isCollapsible&&this.collapsed?this.parsedData.slice(0,this.collapseCount):this.parsedData}},methods:{nodeClasses(e,t){return["xt-flow__node--"+e.status,{"xt-flow__node--last":t===this.displayNodes.length-1,"xt-flow__node--first":0===t}]},statusText(e){return this.statusMap[e]||e},formatTime(e){return"flowable"===this.format?Va(e.createTime||e.endTime,this.timeFormat):e.createTime||e.endTime||""},toggleCollapse(){this.collapsed=!this.collapsed}}},Wa=Ua,Ya=Object(G["a"])(Wa,Ra,Fa,!1,null,null,null),qa=Ya.exports;qa.install=function(e){e.component(qa.name,qa)};var Za=qa;const Ga=U.default||U,{getConfig:Ja,setConfig:Qa,getTheme:en,getSize:tn,getPrimaryColor:sn,resetConfig:rn,onConfigChange:an,setTheme:nn,setSize:ln,setPrimaryColor:on}=Ga,cn=[ee,le,fe,xe,ze,Pe,He,et,pt,ft,di,bi,Ti,Ai,Ri,Ui,Qi,ns,gs,Ys,ar,wr,Ir,Br,Ts,Is,Ds,Hs,Vr,ta,Sa,Ia,Ba,Za],hn=function(e,t={}){hn.installed||(hn.installed=!0,cn.forEach(t=>{e.component(t.name,t)}),e.prototype.$xt={setTheme:nn,setSize:ln,setPrimaryColor:on,getConfig:Ja,setConfig:Qa,getTheme:en,getSize:tn,getPrimaryColor:sn,resetConfig:rn,onConfigChange:an},t&&(void 0!==t.theme&&nn(t.theme),void 0!==t.size&&ln(t.size),void 0!==t.primaryColor&&on(t.primaryColor),void 0!==t.config&&Qa(t.config)))};"undefined"!==typeof window&&window.Vue&&hn(window.Vue);var dn={install:hn,XtButton:ee,XtInput:le,XtFlexBox:fe,XtCard:xe,XtCardItem:ze,XtConfigProvider:Pe,XtText:He,XtTime:et,XtStepPrice:pt,XtStepPriceItem:ft,XtMap:di,XtMapProvider:bi,XtGridBox:Ti,XtGridItem:Ai,XtProgress:Ri,XtTabs:Qi,XtBadge:ns,XtDatePicker:gs,XtIcon:ar,XtTable:wr,XtList:Ir,XtScrollArrow:Br,XtBar:Ts,XtLine:Is,XtPie:Ds,XtMulti:Hs,XtPage:Vr,XtSelectTree:ta,XtUpload:Sa,XtTransferTree:Ia,XtFormSchema:Ba,XtFlow:Za};t["default"]=dn},fd93:function(e,t,i){},fdbd:function(e,t,i){}})}));
1
+ (function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(function(){try{return require("echarts")}catch(e){}}(),require("vue")):"function"===typeof define&&define.amd?define(["echarts","vue"],t):"object"===typeof exports?exports["index"]=t(function(){try{return require("echarts")}catch(e){}}(),require("vue")):e["index"]=t(e["echarts"],e["Vue"])})("undefined"!==typeof self?self:this,(function(e,t){return function(e){function t(t){for(var r,n,a=t[0],o=t[1],l=0,s=[];l<a.length;l++)n=a[l],Object.prototype.hasOwnProperty.call(i,n)&&i[n]&&s.push(i[n][0]),i[n]=0;for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r]);c&&c(t);while(s.length)s.shift()()}var r={},i={0:0};function n(e){return a.p+"index.umd.min."+({}[e]||e)+".js"}function a(t){if(r[t])return r[t].exports;var i=r[t]={i:t,l:!1,exports:{}};return e[t].call(i.exports,i,i.exports,a),i.l=!0,i.exports}a.e=function(e){var t=[],r=i[e];if(0!==r)if(r)t.push(r[2]);else{var o=new Promise((function(t,n){r=i[e]=[t,n]}));t.push(r[2]=o);var l,s=document.createElement("script");s.charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.src=n(e);var c=new Error;l=function(t){s.onerror=s.onload=null,clearTimeout(d);var r=i[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+a+")",c.name="ChunkLoadError",c.type=n,c.request=a,r[1](c)}i[e]=void 0}};var d=setTimeout((function(){l({type:"timeout",target:s})}),12e4);s.onerror=s.onload=l,document.head.appendChild(s)}return Promise.all(t)},a.m=e,a.c=r,a.d=function(e,t,r){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},a.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(a.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(r,i,function(t){return e[t]}.bind(null,i));return r},a.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a.oe=function(e){throw console.error(e),e};var o=("undefined"!==typeof self?self:this)["webpackJsonpindex"]=("undefined"!==typeof self?self:this)["webpackJsonpindex"]||[],l=o.push.bind(o);o.push=t,o=o.slice();for(var s=0;s<o.length;s++)t(o[s]);var c=l;return a(a.s="fb15")}({"0461":function(e,t,r){},"04c6":function(e,t,r){"use strict";r("8596")},"0563":function(e,t,r){},"0ba2":function(e,t,r){},"0ba5":function(e,t,r){},"0e15":function(e,t,r){var i=r("597f");e.exports=function(e,t,r){return void 0===r?i(e,t,!1):i(e,r,!1!==t)}},"164e":function(t,r){if("undefined"===typeof e){var i=new Error("Cannot find module 'undefined'");throw i.code="MODULE_NOT_FOUND",i}t.exports=e},"176d":function(e,t,r){},"17b4":function(e,t,r){},"1a07":function(e,t,r){},"1f11":function(e,t,r){},2474:function(e,t,r){},"26be":function(e,t,r){"use strict";r("0ba2")},2877:function(e,t,r){"use strict";function i(e,t,r,i,n,a,o,l){var s,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=r,c._compiled=!0),i&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(s=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=s):n&&(s=l?function(){n.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:n),s)if(c.functional){c._injectStyles=s;var d=c.render;c.render=function(e,t){return s.call(t),d(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,s):[s]}return{exports:e,options:c}}r.d(t,"a",(function(){return i}))},"2c86":function(e,t,r){"use strict";r("6d33")},"2e12":function(e,t,r){},"3ae0":function(e,t,r){},"3cef":function(e,t,r){"use strict";r("69c5")},4010:function(e,t,r){"use strict";t.__esModule=!0,t.removeResizeListener=t.addResizeListener=void 0;var i=r("6dd8"),n=o(i),a=r("9619");function o(e){return e&&e.__esModule?e:{default:e}}var l="undefined"===typeof window,s=function(e){var t=e,r=Array.isArray(t),i=0;for(t=r?t:t[Symbol.iterator]();;){var n;if(r){if(i>=t.length)break;n=t[i++]}else{if(i=t.next(),i.done)break;n=i.value}var a=n,o=a.target.__resizeListeners__||[];o.length&&o.forEach((function(e){e()}))}};t.addResizeListener=function(e,t){l||(e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new n.default((0,a.debounce)(16,s)),e.__ro__.observe(e)),e.__resizeListeners__.push(t))},t.removeResizeListener=function(e,t){e&&e.__resizeListeners__&&(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||e.__ro__.disconnect())}},"419e":function(e,t,r){},4202:function(e,t,r){},"439a":function(e,t,r){"use strict";r("1a07")},"4e56":function(e,t,r){},"52fd":function(e,t,r){"use strict";r("3ae0")},5820:function(e,t,r){},"588c":function(e,t,r){},"597f":function(e,t){e.exports=function(e,t,r,i){var n,a=0;function o(){var o=this,l=Number(new Date)-a,s=arguments;function c(){a=Number(new Date),r.apply(o,s)}function d(){n=void 0}i&&!n&&c(),n&&clearTimeout(n),void 0===i&&l>e?c():!0!==t&&(n=setTimeout(i?d:c,void 0===i?e-l:e))}return"boolean"!==typeof t&&(i=r,r=t,t=void 0),o}},"69c5":function(e,t,r){},"6b14":function(e,t,r){"use strict";r("176d")},"6c9e":function(e,t,r){},"6d33":function(e,t,r){},"6dd8":function(e,t,r){"use strict";r.r(t),function(e){var r=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var r=-1;return e.some((function(e,i){return e[0]===t&&(r=i,!0)})),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var r=e(this.__entries__,t),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(t,r){var i=e(this.__entries__,t);~i?this.__entries__[i][1]=r:this.__entries__.push([t,r])},t.prototype.delete=function(t){var r=this.__entries__,i=e(r,t);~i&&r.splice(i,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var r=0,i=this.__entries__;r<i.length;r++){var n=i[r];e.call(t,n[1],n[0])}},t}()}(),i="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,n=function(){return"undefined"!==typeof e&&e.Math===Math?e:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")()}(),a=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(n):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)}}(),o=2;function l(e,t){var r=!1,i=!1,n=0;function l(){r&&(r=!1,e()),i&&c()}function s(){a(l)}function c(){var e=Date.now();if(r){if(e-n<o)return;i=!0}else r=!0,i=!1,setTimeout(s,t);n=e}return c}var s=20,c=["top","right","bottom","left","width","height","size","weight"],d="undefined"!==typeof MutationObserver,h=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=l(this.refresh.bind(this),s)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,r=t.indexOf(e);~r&&t.splice(r,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),d?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,r=void 0===t?"":t,i=c.some((function(e){return!!~r.indexOf(e)}));i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),u=function(e,t){for(var r=0,i=Object.keys(t);r<i.length;r++){var n=i[r];Object.defineProperty(e,n,{value:t[n],enumerable:!1,writable:!1,configurable:!0})}return e},p=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||n},f=S(0,0,0,0);function m(e){return parseFloat(e)||0}function g(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce((function(t,r){var i=e["border-"+r+"-width"];return t+m(i)}),0)}function y(e){for(var t=["top","right","bottom","left"],r={},i=0,n=t;i<n.length;i++){var a=n[i],o=e["padding-"+a];r[a]=m(o)}return r}function b(e){var t=e.getBBox();return S(0,0,t.width,t.height)}function v(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return f;var i=p(e).getComputedStyle(e),n=y(i),a=n.left+n.right,o=n.top+n.bottom,l=m(i.width),s=m(i.height);if("border-box"===i.boxSizing&&(Math.round(l+a)!==t&&(l-=g(i,"left","right")+a),Math.round(s+o)!==r&&(s-=g(i,"top","bottom")+o)),!x(e)){var c=Math.round(l+a)-t,d=Math.round(s+o)-r;1!==Math.abs(c)&&(l-=c),1!==Math.abs(d)&&(s-=d)}return S(n.left,n.top,l,s)}var _=function(){return"undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof p(e).SVGGraphicsElement}:function(e){return e instanceof p(e).SVGElement&&"function"===typeof e.getBBox}}();function x(e){return e===p(e).document.documentElement}function w(e){return i?_(e)?b(e):v(e):f}function C(e){var t=e.x,r=e.y,i=e.width,n=e.height,a="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,o=Object.create(a.prototype);return u(o,{x:t,y:r,width:i,height:n,top:r,right:t+i,bottom:n+r,left:t}),o}function S(e,t,r,i){return{x:e,y:t,width:r,height:i}}var k=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=S(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=w(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),T=function(){function e(e,t){var r=C(t);u(this,{target:e,contentRect:r})}return e}(),M=function(){function e(e,t,i){if(this.activeObservations_=[],this.observations_=new r,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=i}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new k(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new T(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),z="undefined"!==typeof WeakMap?new WeakMap:new r,$=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=h.getInstance(),i=new M(t,r,this);z.set(this,i)}return e}();["observe","unobserve","disconnect"].forEach((function(e){$.prototype[e]=function(){var t;return(t=z.get(this))[e].apply(t,arguments)}}));var I=function(){return"undefined"!==typeof n.ResizeObserver?n.ResizeObserver:$}();t["default"]=I}.call(this,r("c8ba"))},"72fa":function(e,t,r){},"76cb":function(e,t,r){},8596:function(e,t,r){},"86ae":function(e,t,r){},"8bbf":function(e,r){e.exports=t},"916e":function(e,t,r){"use strict";r("17b4")},9619:function(e,t,r){var i=r("597f"),n=r("0e15");e.exports={throttle:i,debounce:n}},9940:function(e,t,r){"use strict";r("f3c2")},"9c79":function(e,t,r){},a075:function(e,t,r){"use strict";r("588c")},a148:function(e,t,r){"use strict";r("9c79")},ad4d:function(e,t,r){e.exports={xtColorPrimary:"#1890ff",xtColorSuccess:"#37c3a4",xtColorWarning:"#FFB74D",xtColorDanger:"#EA1D34",xtColorInfo:"#999999"}},afef:function(e,t,r){},b574:function(e,t,r){"use strict";r("0461")},b85c:function(e,t,r){"use strict";r.r(t),t["default"]='/* ============================================================\r\n * XT-Element-UI 主题 CSS 变量定义\r\n * 用于注入到子系统 iframe 的 <head> 中\r\n * \r\n * 设计原则:\r\n * 1. 定义 Element UI 所需的全部 CSS 变量(--el-*)\r\n * 2. 亮色主题为默认值(:root)\r\n * 3. 暗色主题通过 [data-theme="dark"] 切换\r\n * 4. 子系统无需任何改造,变量注入即生效\r\n * ============================================================ */\r\n\r\n/* ==================== 亮色主题(默认) ==================== */\r\n:root {\r\n /* 基础色 */\r\n --el-color-white: #ffffff;\r\n --el-color-black: #000000;\r\n\r\n /* 主色 RGB */\r\n --el-color-primary-rgb: 24, 144, 255;\r\n --el-color-success-rgb: 103, 194, 58;\r\n --el-color-warning-rgb: 230, 162, 60;\r\n --el-color-danger-rgb: 245, 108, 108;\r\n --el-color-error-rgb: 245, 108, 108;\r\n --el-color-info-rgb: 144, 147, 153;\r\n\r\n /* 主色 */\r\n --el-color-primary: #1890ff;\r\n --el-color-primary-light-3: #5db1ff;\r\n --el-color-primary-light-5: #8cc8ff;\r\n --el-color-primary-light-7: #badeff;\r\n --el-color-primary-light-8: #d1e9ff;\r\n --el-color-primary-light-9: #e8f4ff;\r\n --el-color-primary-dark-2: #1373cc;\r\n\r\n /* 成功色 */\r\n --el-color-success: #67c23a;\r\n --el-color-success-light-3: #95d475;\r\n --el-color-success-light-5: #b3e19d;\r\n --el-color-success-light-7: #d1edc4;\r\n --el-color-success-light-8: #e1f3d8;\r\n --el-color-success-light-9: #f0f9eb;\r\n --el-color-success-dark-2: #529b2e;\r\n\r\n /* 警告色 */\r\n --el-color-warning: #e6a23c;\r\n --el-color-warning-light-3: #eebe77;\r\n --el-color-warning-light-5: #f3d19e;\r\n --el-color-warning-light-7: #f8e3c5;\r\n --el-color-warning-light-8: #faecd8;\r\n --el-color-warning-light-9: #fdf6ec;\r\n --el-color-warning-dark-2: #b88230;\r\n\r\n /* 危险色 */\r\n --el-color-danger: #f56c6c;\r\n --el-color-danger-light-3: #f89898;\r\n --el-color-danger-light-5: #fab6b6;\r\n --el-color-danger-light-7: #fcd3d3;\r\n --el-color-danger-light-8: #fde2e2;\r\n --el-color-danger-light-9: #fef0f0;\r\n --el-color-danger-dark-2: #c45656;\r\n\r\n /* 错误色 */\r\n --el-color-error: #f56c6c;\r\n --el-color-error-light-3: #f89898;\r\n --el-color-error-light-5: #fab6b6;\r\n --el-color-error-light-7: #fcd3d3;\r\n --el-color-error-light-8: #fde2e2;\r\n --el-color-error-light-9: #fef0f0;\r\n --el-color-error-dark-2: #c45656;\r\n\r\n /* 信息色 */\r\n --el-color-info: #909399;\r\n --el-color-info-light-3: #b1b3b8;\r\n --el-color-info-light-5: #c8c9cc;\r\n --el-color-info-light-7: #dedfe0;\r\n --el-color-info-light-8: #e9e9eb;\r\n --el-color-info-light-9: #f4f4f5;\r\n --el-color-info-dark-2: #73767a;\r\n\r\n /* 背景色 */\r\n --el-bg-color: #ffffff;\r\n --el-bg-color-page: #f2f3f5;\r\n --el-bg-color-overlay: #ffffff;\r\n --el-bg-color-block: #ffffff;\r\n\r\n /* 文字色 */\r\n --el-text-color-primary: #303133;\r\n --el-text-color-regular: #606266;\r\n --el-text-color-secondary: #909399;\r\n --el-text-color-placeholder: #a8abb2;\r\n --el-text-color-disabled: #c0c4cc;\r\n\r\n /* 边框色 */\r\n --el-border-color: #dcdfe6;\r\n --el-border-color-light: #e4e7ed;\r\n --el-border-color-lighter: #ebeef5;\r\n --el-border-color-extra-light: #f2f6fc;\r\n --el-border-color-dark: #d4d7de;\r\n --el-border-color-darker: #cdd0d6;\r\n\r\n /* 填充色 */\r\n --el-fill-color: #f0f2f5;\r\n --el-fill-color-light: #f5f7fa;\r\n --el-fill-color-lighter: #fafafa;\r\n --el-fill-color-extra-light: #fafcff;\r\n --el-fill-color-dark: #ebedf0;\r\n --el-fill-color-darker: #e6e8eb;\r\n --el-fill-color-blank: #ffffff;\r\n\r\n /* 阴影 */\r\n --el-box-shadow: 0px 12px 32px 4px rgba(0, 0, 0, .04), 0px 8px 20px rgba(0, 0, 0, .08);\r\n --el-box-shadow-light: 0px 0px 12px rgba(0, 0, 0, .12);\r\n --el-box-shadow-lighter: 0px 0px 6px rgba(0, 0, 0, .12);\r\n --el-box-shadow-dark: 0px 16px 48px 16px rgba(0, 0, 0, .08), 0px 12px 32px rgba(0, 0, 0, .12), 0px 8px 16px -8px rgba(0, 0, 0, .16);\r\n\r\n /* 禁用状态 */\r\n --el-disabled-bg-color: var(--el-fill-color-light);\r\n --el-disabled-text-color: var(--el-text-color-placeholder);\r\n --el-disabled-border-color: var(--el-border-color-light);\r\n\r\n /* 遮罩 */\r\n --el-overlay-color: rgba(0, 0, 0, .8);\r\n --el-overlay-color-light: rgba(0, 0, 0, .7);\r\n --el-overlay-color-lighter: rgba(0, 0, 0, .5);\r\n --el-mask-color: rgba(255, 255, 255, .9);\r\n --el-mask-color-extra-light: rgba(255, 255, 255, .3);\r\n\r\n /* 边框 */\r\n --el-border-width: 1px;\r\n --el-border-style: solid;\r\n --el-border-color-hover: var(--el-text-color-disabled);\r\n --el-border: var(--el-border-width) var(--el-border-style) var(--el-border-color);\r\n\r\n /* 字体 */\r\n --el-font-size-extra-large: 20px;\r\n --el-font-size-large: 18px;\r\n --el-font-size-medium: 16px;\r\n --el-font-size-base: 14px;\r\n --el-font-size-small: 13px;\r\n --el-font-size-extra-small: 12px;\r\n --el-font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;\r\n --el-font-weight-primary: 500;\r\n\r\n /* 圆角 */\r\n --el-border-radius-base: 4px;\r\n --el-border-radius-small: 2px;\r\n --el-border-radius-round: 20px;\r\n --el-border-radius-circle: 100%;\r\n\r\n /* 过渡 */\r\n --el-transition-duration: .3s;\r\n --el-transition-duration-fast: .2s;\r\n --el-transition-function-ease-in-out-bezier: cubic-bezier(.645, .045, .355, 1);\r\n --el-transition-fast-bezier: cubic-bezier(.23, 1, .32, 1);\r\n --el-transition-all: all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);\r\n --el-transition-fade: opacity var(--el-transition-duration) var(--el-transition-fast-bezier);\r\n --el-transition-md-fade: transform var(--el-transition-duration) var(--el-transition-fast-bezier), opacity var(--el-transition-duration) var(--el-transition-fast-bezier);\r\n --el-transition-fade-linear: opacity var(--el-transition-duration-fast) linear;\r\n --el-transition-border: border-color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);\r\n --el-transition-box-shadow: box-shadow var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);\r\n --el-transition-color: color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);\r\n\r\n /* 组件尺寸 */\r\n --el-component-size-large: 40px;\r\n --el-component-size: 32px;\r\n --el-component-size-small: 24px;\r\n\r\n /* 间距 */\r\n --el-spacing-xs: 8px;\r\n --el-spacing-sm: 12px;\r\n --el-spacing-md: 16px;\r\n --el-spacing-lg: 24px;\r\n --el-spacing-xl: 32px;\r\n\r\n /* 层级 */\r\n --el-index-normal: 1;\r\n --el-index-top: 1000;\r\n --el-index-popper: 2000;\r\n}\r\n\r\n/* ==================== 暗色主题 ==================== */\r\n:root[data-theme="dark"],\r\n[data-theme="dark"],\r\nhtml.dark {\r\n color-scheme: dark;\r\n\r\n /* 主色 - 暗色下稍亮 */\r\n --el-color-primary: #409eff;\r\n --el-color-primary-light-3: #3375b9;\r\n --el-color-primary-light-5: #2a598a;\r\n --el-color-primary-light-7: #213d5b;\r\n --el-color-primary-light-8: #1d3043;\r\n --el-color-primary-light-9: #18222b;\r\n --el-color-primary-dark-2: #66b1ff;\r\n\r\n /* 成功色 */\r\n --el-color-success: #67c23a;\r\n --el-color-success-light-3: #4e8e2f;\r\n --el-color-success-light-5: #3e6b27;\r\n --el-color-success-light-7: #2d481f;\r\n --el-color-success-light-8: #25371c;\r\n --el-color-success-light-9: #1c2518;\r\n --el-color-success-dark-2: #85ce61;\r\n\r\n /* 警告色 */\r\n --el-color-warning: #e6a23c;\r\n --el-color-warning-light-3: #a77730;\r\n --el-color-warning-light-5: #7d5b28;\r\n --el-color-warning-light-7: #533f20;\r\n --el-color-warning-light-8: #3e301c;\r\n --el-color-warning-light-9: #292218;\r\n --el-color-warning-dark-2: #ebb563;\r\n\r\n /* 危险色 */\r\n --el-color-danger: #f56c6c;\r\n --el-color-danger-light-3: #b25252;\r\n --el-color-danger-light-5: #854040;\r\n --el-color-danger-light-7: #582e2e;\r\n --el-color-danger-light-8: #412626;\r\n --el-color-danger-light-9: #2a1d1d;\r\n --el-color-danger-dark-2: #f78989;\r\n\r\n /* 错误色 */\r\n --el-color-error: #f56c6c;\r\n --el-color-error-light-3: #b25252;\r\n --el-color-error-light-5: #854040;\r\n --el-color-error-light-7: #582e2e;\r\n --el-color-error-light-8: #412626;\r\n --el-color-error-light-9: #2a1d1d;\r\n --el-color-error-dark-2: #f78989;\r\n\r\n /* 信息色 */\r\n --el-color-info: #909399;\r\n --el-color-info-light-3: #6b6d71;\r\n --el-color-info-light-5: #525457;\r\n --el-color-info-light-7: #393a3c;\r\n --el-color-info-light-8: #2d2d2f;\r\n --el-color-info-light-9: #202121;\r\n --el-color-info-dark-2: #a6a9ad;\r\n\r\n /* 背景色 */\r\n --el-bg-color: #141414;\r\n --el-bg-color-page: #0a0a0a;\r\n --el-bg-color-overlay: #1d1e1f;\r\n --el-bg-color-block: #141414;\r\n\r\n /* 文字色 */\r\n --el-text-color-primary: #E5EAF3;\r\n --el-text-color-regular: #CFD3DC;\r\n --el-text-color-secondary: #A3A6AD;\r\n --el-text-color-placeholder: #8D9095;\r\n --el-text-color-disabled: #6C6E72;\r\n\r\n /* 边框色 */\r\n --el-border-color: #4C4D4F;\r\n --el-border-color-light: #414243;\r\n --el-border-color-lighter: #363637;\r\n --el-border-color-extra-light: #2B2B2C;\r\n --el-border-color-dark: #58585B;\r\n --el-border-color-darker: #636466;\r\n\r\n /* 填充色 */\r\n --el-fill-color: #303030;\r\n --el-fill-color-light: #262727;\r\n --el-fill-color-lighter: #1D1D1D;\r\n --el-fill-color-extra-light: #191919;\r\n --el-fill-color-dark: #39393A;\r\n --el-fill-color-darker: #424243;\r\n --el-fill-color-blank: #141414;\r\n\r\n /* 阴影 */\r\n --el-box-shadow: 0px 12px 32px 4px rgba(0, 0, 0, .36), 0px 8px 20px rgba(0, 0, 0, .72);\r\n --el-box-shadow-light: 0px 0px 12px rgba(0, 0, 0, .72);\r\n --el-box-shadow-lighter: 0px 0px 6px rgba(0, 0, 0, .72);\r\n --el-box-shadow-dark: 0px 16px 48px 16px rgba(0, 0, 0, .72), 0px 12px 32px #000000, 0px 8px 16px -8px #000000;\r\n\r\n /* 遮罩 */\r\n --el-mask-color: rgba(0, 0, 0, .8);\r\n --el-mask-color-extra-light: rgba(0, 0, 0, .3);\r\n}'},b8f0:function(e,t,r){},bf3f:function(e,t,r){},c1e7:function(e,t,r){},c32d:function(e,t,r){"use strict";r("afef")},c74a:function(e,t,r){},c759:function(e,t,r){},c828:function(e,t,r){},c8ba:function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(i){"object"===typeof window&&(r=window)}e.exports=r},c8e4:function(e,t,r){"use strict";r.r(t),t["default"]="/* ============================================================\n * XT-Element-UI Element UI 组件样式覆盖\n * 用于注入到子系统 iframe 的 <head> 中\n *\n * 设计原则:\n * 1. 覆盖 Element UI 编译后的固定颜色值,使其使用 CSS 变量\n * 2. 使用 !important 确保覆盖编译后的样式\n * 3. 子系统无需任何改造,注入此 CSS 后主题变量即生效\n * 4. 覆盖范围:所有核心颜色属性(背景、文字、边框、主色)\n * ============================================================ */\n\n/* ==================== Button 按钮 ==================== */\n.el-button--primary {\n background-color: var(--el-color-primary) !important;\n border-color: var(--el-color-primary) !important;\n color: var(--el-color-white) !important;\n}\n.el-button--primary:hover,\n.el-button--primary:focus {\n background-color: var(--el-color-primary-light-3) !important;\n border-color: var(--el-color-primary-light-3) !important;\n}\n.el-button--primary:active {\n background-color: var(--el-color-primary-dark-2) !important;\n border-color: var(--el-color-primary-dark-2) !important;\n}\n.el-button--primary.is-plain {\n background-color: var(--el-color-primary-light-9) !important;\n border-color: var(--el-color-primary-light-5) !important;\n color: var(--el-color-primary) !important;\n}\n.el-button--primary.is-plain:hover,\n.el-button--primary.is-plain:focus {\n background-color: var(--el-color-primary) !important;\n border-color: var(--el-color-primary) !important;\n color: var(--el-color-white) !important;\n}\n.el-button--primary.is-disabled,\n.el-button--primary.is-disabled:hover {\n background-color: var(--el-color-primary-light-5) !important;\n border-color: var(--el-color-primary-light-5) !important;\n}\n\n/* 成功按钮 */\n.el-button--success {\n background-color: var(--el-color-success) !important;\n border-color: var(--el-color-success) !important;\n}\n.el-button--success.is-plain {\n color: var(--el-color-success) !important;\n border-color: var(--el-color-success-light-5) !important;\n background-color: var(--el-color-success-light-9) !important;\n}\n\n/* 警告按钮 */\n.el-button--warning {\n background-color: var(--el-color-warning) !important;\n border-color: var(--el-color-warning) !important;\n}\n.el-button--warning.is-plain {\n color: var(--el-color-warning) !important;\n border-color: var(--el-color-warning-light-5) !important;\n background-color: var(--el-color-warning-light-9) !important;\n}\n\n/* 危险按钮 */\n.el-button--danger {\n background-color: var(--el-color-danger) !important;\n border-color: var(--el-color-danger) !important;\n}\n.el-button--danger.is-plain {\n color: var(--el-color-danger) !important;\n border-color: var(--el-color-danger-light-5) !important;\n background-color: var(--el-color-danger-light-9) !important;\n}\n\n/* 信息按钮 */\n.el-button--info {\n background-color: var(--el-color-info) !important;\n border-color: var(--el-color-info) !important;\n}\n.el-button--info.is-plain {\n color: var(--el-color-info) !important;\n border-color: var(--el-color-info-light-5) !important;\n background-color: var(--el-color-info-light-9) !important;\n}\n\n/* 默认按钮 */\n.el-button--default {\n background-color: var(--el-bg-color) !important;\n border-color: var(--el-border-color) !important;\n color: var(--el-text-color-regular) !important;\n}\n.el-button--default:hover {\n color: var(--el-color-primary) !important;\n border-color: var(--el-color-primary-light-5) !important;\n background-color: var(--el-color-primary-light-9) !important;\n}\n\n/* 文字按钮 */\n.el-button--text {\n color: var(--el-color-primary) !important;\n}\n\n/* ==================== Input 输入框 ==================== */\n.el-input__inner {\n background-color: var(--el-bg-color) !important;\n border-color: var(--el-border-color) !important;\n color: var(--el-text-color-regular) !important;\n}\n.el-input__inner:hover {\n border-color: var(--el-border-color-dark) !important;\n}\n.el-input__inner:focus {\n border-color: var(--el-color-primary) !important;\n}\n.el-input__inner::placeholder {\n color: var(--el-text-color-placeholder) !important;\n}\n.el-input.is-disabled .el-input__inner {\n background-color: var(--el-fill-color-light) !important;\n border-color: var(--el-border-color-lighter) !important;\n color: var(--el-text-color-disabled) !important;\n}\n\n/* Textarea */\n.el-textarea__inner {\n background-color: var(--el-bg-color) !important;\n border-color: var(--el-border-color) !important;\n color: var(--el-text-color-regular) !important;\n}\n.el-textarea__inner:hover {\n border-color: var(--el-border-color-dark) !important;\n}\n.el-textarea__inner:focus {\n border-color: var(--el-color-primary) !important;\n}\n\n/* ==================== Select 选择器 ==================== */\n.el-select .el-input__inner {\n background-color: var(--el-bg-color) !important;\n border-color: var(--el-border-color) !important;\n color: var(--el-text-color-regular) !important;\n}\n.el-select-dropdown {\n background-color: var(--el-bg-color-overlay) !important;\n border-color: var(--el-border-color-light) !important;\n}\n.el-select-dropdown__item {\n color: var(--el-text-color-regular) !important;\n}\n.el-select-dropdown__item:hover {\n background-color: var(--el-fill-color-light) !important;\n}\n.el-select-dropdown__item.selected {\n color: var(--el-color-primary) !important;\n}\n.el-select-dropdown__item.is-disabled {\n color: var(--el-text-color-disabled) !important;\n}\n\n/* ==================== Table 表格 ==================== */\n.el-table {\n background-color: var(--el-bg-color) !important;\n color: var(--el-text-color-regular) !important;\n}\n.el-table th {\n background-color: var(--el-fill-color) !important;\n color: var(--el-text-color-primary) !important;\n border-color: var(--el-border-color-lighter) !important;\n}\n.el-table td {\n border-color: var(--el-border-color-lighter) !important;\n}\n.el-table--striped .el-table__body tr.el-table__row--striped td {\n background-color: var(--el-fill-color-lighter) !important;\n}\n.el-table--enable-row-hover .el-table__body tr:hover > td {\n background-color: var(--el-fill-color-light) !important;\n}\n.el-table__body tr.current-row > td {\n background-color: var(--el-color-primary-light-9) !important;\n}\n.el-table__fixed-right::before,\n.el-table__fixed::before {\n background-color: var(--el-border-color-lighter) !important;\n}\n.el-table__border::after {\n background-color: var(--el-border-color-lighter) !important;\n}\n\n/* ==================== Dialog 对话框 ==================== */\n.el-dialog {\n background-color: var(--el-bg-color-overlay) !important;\n}\n.el-dialog__title {\n color: var(--el-text-color-primary) !important;\n}\n.el-dialog__header {\n border-bottom-color: var(--el-border-color-lighter) !important;\n}\n.el-dialog__footer {\n border-top-color: var(--el-border-color-lighter) !important;\n}\n.el-dialog__body {\n color: var(--el-text-color-regular) !important;\n}\n\n/* ==================== Menu 菜单 ==================== */\n.el-menu {\n background-color: var(--el-bg-color) !important;\n border-color: var(--el-border-color-lighter) !important;\n}\n.el-menu-item {\n color: var(--el-text-color-regular) !important;\n}\n.el-menu-item:hover {\n background-color: var(--el-fill-color-light) !important;\n}\n.el-menu-item.is-active {\n color: var(--el-color-primary) !important;\n border-bottom-color: var(--el-color-primary) !important;\n}\n.el-submenu__title {\n color: var(--el-text-color-regular) !important;\n}\n.el-submenu__title:hover {\n background-color: var(--el-fill-color-light) !important;\n}\n\n/* 暗色菜单 */\n.el-menu--dark {\n background-color: var(--el-bg-color) !important;\n}\n.el-menu--dark .el-menu-item {\n color: var(--el-text-color-primary) !important;\n}\n.el-menu--dark .el-menu-item:hover {\n background-color: var(--el-fill-color) !important;\n}\n\n/* ==================== Tabs 标签页 ==================== */\n.el-tabs__header {\n border-bottom-color: var(--el-border-color-lighter) !important;\n}\n.el-tabs__item {\n color: var(--el-text-color-regular) !important;\n}\n.el-tabs__item:hover {\n color: var(--el-color-primary) !important;\n}\n.el-tabs__item.is-active {\n color: var(--el-color-primary) !important;\n}\n.el-tabs__active-bar {\n background-color: var(--el-color-primary) !important;\n}\n.el-tabs__nav-wrap::after {\n background-color: var(--el-border-color-light) !important;\n}\n\n/* ==================== Tag 标签 ==================== */\n.el-tag {\n background-color: var(--el-fill-color-light) !important;\n border-color: var(--el-border-color-lighter) !important;\n color: var(--el-text-color-primary) !important;\n}\n.el-tag--primary {\n background-color: var(--el-color-primary-light-9) !important;\n border-color: var(--el-color-primary-light-7) !important;\n color: var(--el-color-primary) !important;\n}\n.el-tag--success {\n background-color: var(--el-color-success-light-9) !important;\n border-color: var(--el-color-success-light-7) !important;\n color: var(--el-color-success) !important;\n}\n.el-tag--warning {\n background-color: var(--el-color-warning-light-9) !important;\n border-color: var(--el-color-warning-light-7) !important;\n color: var(--el-color-warning) !important;\n}\n.el-tag--danger {\n background-color: var(--el-color-danger-light-9) !important;\n border-color: var(--el-color-danger-light-7) !important;\n color: var(--el-color-danger) !important;\n}\n.el-tag--info {\n background-color: var(--el-color-info-light-9) !important;\n border-color: var(--el-color-info-light-7) !important;\n color: var(--el-color-info) !important;\n}\n\n/* ==================== Pagination 分页 ==================== */\n.el-pagination {\n color: var(--el-text-color-regular) !important;\n}\n.el-pagination button {\n background-color: var(--el-bg-color) !important;\n color: var(--el-text-color-regular) !important;\n}\n.el-pagination button:hover {\n color: var(--el-color-primary) !important;\n}\n.el-pagination .el-pager li {\n background-color: var(--el-bg-color) !important;\n color: var(--el-text-color-regular) !important;\n}\n.el-pagination .el-pager li:hover {\n color: var(--el-color-primary) !important;\n}\n.el-pagination .el-pager li.active {\n background-color: var(--el-color-primary) !important;\n color: var(--el-color-white) !important;\n}\n\n/* ==================== Form 表单 ==================== */\n.el-form-item__label {\n color: var(--el-text-color-regular) !important;\n}\n.el-form-item__error {\n color: var(--el-color-danger) !important;\n}\n\n/* ==================== Checkbox 复选框 ==================== */\n.el-checkbox__input.is-checked .el-checkbox__inner {\n background-color: var(--el-color-primary) !important;\n border-color: var(--el-color-primary) !important;\n}\n.el-checkbox__input.is-checked + .el-checkbox__label {\n color: var(--el-color-primary) !important;\n}\n.el-checkbox__label {\n color: var(--el-text-color-regular) !important;\n}\n\n/* ==================== Radio 单选框 ==================== */\n.el-radio__input.is-checked .el-radio__inner {\n background-color: var(--el-color-primary) !important;\n border-color: var(--el-color-primary) !important;\n}\n.el-radio__input.is-checked + .el-radio__label {\n color: var(--el-color-primary) !important;\n}\n.el-radio__label {\n color: var(--el-text-color-regular) !important;\n}\n\n/* ==================== Switch 开关 ==================== */\n.el-switch.is-checked .el-switch__core {\n background-color: var(--el-color-primary) !important;\n border-color: var(--el-color-primary) !important;\n}\n\n/* ==================== DatePicker 日期选择器 ==================== */\n.el-date-table td.current:not(.disabled) span {\n background-color: var(--el-color-primary) !important;\n color: var(--el-color-white) !important;\n}\n.el-date-table td.today span {\n color: var(--el-color-primary) !important;\n}\n.el-date-table td.available:hover {\n color: var(--el-color-primary) !important;\n}\n.el-picker-panel {\n background-color: var(--el-bg-color-overlay) !important;\n color: var(--el-text-color-regular) !important;\n border-color: var(--el-border-color-light) !important;\n}\n.el-picker-panel__icon-btn:hover {\n color: var(--el-color-primary) !important;\n}\n\n/* ==================== Dropdown 下拉菜单 ==================== */\n.el-dropdown-menu {\n background-color: var(--el-bg-color-overlay) !important;\n border-color: var(--el-border-color-light) !important;\n}\n.el-dropdown-menu__item {\n color: var(--el-text-color-regular) !important;\n}\n.el-dropdown-menu__item:hover {\n background-color: var(--el-fill-color-light) !important;\n color: var(--el-color-primary) !important;\n}\n\n/* ==================== Cascader 级联选择器 ==================== */\n.el-cascader-menu {\n background-color: var(--el-bg-color-overlay) !important;\n color: var(--el-text-color-regular) !important;\n border-color: var(--el-border-color-light) !important;\n}\n.el-cascader-node:not(.is-disabled):hover {\n background-color: var(--el-fill-color-light) !important;\n}\n.el-cascader-node.is-active {\n color: var(--el-color-primary) !important;\n}\n\n/* ==================== Tree 树形控件 ==================== */\n.el-tree {\n background-color: var(--el-bg-color) !important;\n color: var(--el-text-color-regular) !important;\n}\n.el-tree-node__content:hover {\n background-color: var(--el-fill-color-light) !important;\n}\n.el-tree-node:focus > .el-tree-node__content {\n background-color: var(--el-fill-color-light) !important;\n}\n.el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content {\n background-color: var(--el-color-primary-light-9) !important;\n}\n\n/* ==================== Loading / Message / Notification ==================== */\n.el-loading-mask {\n background-color: var(--el-mask-color-extra-light) !important;\n}\n\n.el-message {\n background-color: var(--el-bg-color-overlay) !important;\n border-color: var(--el-border-color-light) !important;\n}\n.el-message--success {\n background-color: var(--el-color-success-light-9) !important;\n border-color: var(--el-color-success-light-7) !important;\n}\n.el-message--warning {\n background-color: var(--el-color-warning-light-9) !important;\n border-color: var(--el-color-warning-light-7) !important;\n}\n.el-message--error {\n background-color: var(--el-color-error-light-9) !important;\n border-color: var(--el-color-error-light-7) !important;\n}\n.el-message--info {\n background-color: var(--el-color-info-light-9) !important;\n border-color: var(--el-color-info-light-7) !important;\n}\n\n.el-notification {\n background-color: var(--el-bg-color-overlay) !important;\n border-color: var(--el-border-color-light) !important;\n}\n\n/* ==================== Breadcrumb 面包屑 ==================== */\n.el-breadcrumb__inner {\n color: var(--el-text-color-regular) !important;\n}\n.el-breadcrumb__inner.is-link:hover {\n color: var(--el-color-primary) !important;\n}\n\n/* ==================== Steps 步骤条 ==================== */\n.el-step__title.is-process {\n color: var(--el-text-color-primary) !important;\n}\n.el-step__title.is-wait {\n color: var(--el-text-color-placeholder) !important;\n}\n.el-step__head.is-process {\n color: var(--el-color-primary) !important;\n border-color: var(--el-color-primary) !important;\n}\n.el-step__head.is-finish {\n color: var(--el-color-primary) !important;\n border-color: var(--el-color-primary) !important;\n}\n.el-step__line-inner {\n background-color: var(--el-border-color) !important;\n}\n\n/* ==================== Card 卡片 ==================== */\n.el-card {\n background-color: var(--el-bg-color) !important;\n border-color: var(--el-border-color-light) !important;\n color: var(--el-text-color-regular) !important;\n}\n.el-card__header {\n border-bottom-color: var(--el-border-color-lighter) !important;\n}\n\n/* ==================== Collapse 折叠面板 ==================== */\n.el-collapse {\n border-color: var(--el-border-color-light) !important;\n}\n.el-collapse-item__header {\n background-color: var(--el-bg-color) !important;\n color: var(--el-text-color-primary) !important;\n border-bottom-color: var(--el-border-color-lighter) !important;\n}\n.el-collapse-item__wrap {\n background-color: var(--el-bg-color) !important;\n border-bottom-color: var(--el-border-color-lighter) !important;\n}\n.el-collapse-item__content {\n color: var(--el-text-color-regular) !important;\n}\n\n/* ==================== Alert 警告 ==================== */\n.el-alert--success {\n background-color: var(--el-color-success-light-9) !important;\n}\n.el-alert--warning {\n background-color: var(--el-color-warning-light-9) !important;\n}\n.el-alert--error {\n background-color: var(--el-color-danger-light-9) !important;\n}\n.el-alert--info {\n background-color: var(--el-color-info-light-9) !important;\n}\n\n/* ==================== Badge 标记 ==================== */\n.el-badge__content--primary {\n background-color: var(--el-color-primary) !important;\n}\n.el-badge__content--success {\n background-color: var(--el-color-success) !important;\n}\n.el-badge__content--warning {\n background-color: var(--el-color-warning) !important;\n}\n.el-badge__content--danger {\n background-color: var(--el-color-danger) !important;\n}\n.el-badge__content--info {\n background-color: var(--el-color-info) !important;\n}\n\n/* ==================== Progress 进度条 ==================== */\n.el-progress-bar__inner {\n background-color: var(--el-color-primary) !important;\n}\n.el-progress-bar__outer {\n background-color: var(--el-fill-color) !important;\n}\n.el-progress--success .el-progress-bar__inner {\n background-color: var(--el-color-success) !important;\n}\n.el-progress--exception .el-progress-bar__inner {\n background-color: var(--el-color-danger) !important;\n}\n\n/* ==================== Slider 滑块 ==================== */\n.el-slider__bar {\n background-color: var(--el-color-primary) !important;\n}\n.el-slider__button {\n border-color: var(--el-color-primary) !important;\n}\n\n/* ==================== Transfer 穿梭框 ==================== */\n.el-transfer-panel {\n background-color: var(--el-bg-color) !important;\n border-color: var(--el-border-color-light) !important;\n}\n.el-transfer-panel__header {\n background-color: var(--el-fill-color-light) !important;\n border-bottom-color: var(--el-border-color-lighter) !important;\n color: var(--el-text-color-primary) !important;\n}\n.el-transfer-panel__item.el-checkbox {\n color: var(--el-text-color-regular) !important;\n}\n\n/* ==================== Drawer 抽屉 ==================== */\n.el-drawer {\n background-color: var(--el-bg-color-overlay) !important;\n}\n.el-drawer__header {\n color: var(--el-text-color-primary) !important;\n}\n.el-drawer__body {\n color: var(--el-text-color-regular) !important;\n}\n\n/* ==================== Popover / Tooltip ==================== */\n.el-popover {\n background-color: var(--el-bg-color-overlay) !important;\n border-color: var(--el-border-color-light) !important;\n color: var(--el-text-color-regular) !important;\n}\n\n/* ==================== 全局背景/文字 ==================== */\nbody {\n background-color: var(--el-bg-color-page) !important;\n color: var(--el-text-color-primary) !important;\n}\n\n/* 链接色 */\na {\n color: var(--el-color-primary) !important;\n}\na:hover {\n color: var(--el-color-primary-light-3) !important;\n}\n\n/* 分割线 */\n.el-divider__text {\n background-color: var(--el-bg-color) !important;\n color: var(--el-text-color-primary) !important;\n}\n.el-divider--horizontal {\n border-top-color: var(--el-border-color-lighter) !important;\n}"},ceb9:function(e,t,r){"use strict";r("b8f0")},cf38:function(e,t,r){"use strict";r("c74a")},d010:function(e,t,r){"use strict";function i(e,t,r){this.$children.forEach((function(n){var a=n.$options.componentName;a===e?n.$emit.apply(n,[t].concat(r)):i.apply(n,[e,t].concat([r]))}))}t.__esModule=!0,t.default={methods:{dispatch:function(e,t,r){var i=this.$parent||this.$root,n=i.$options.componentName;while(i&&(!n||n!==e))i=i.$parent,i&&(n=i.$options.componentName);i&&i.$emit.apply(i,[t].concat(r))},broadcast:function(e,t,r){i.call(this,e,t,r)}}}},d0a8:function(e,t,r){},d2eb:function(e,t,r){"use strict";r("d0a8")},d67a:function(e,t,r){},e8d2:function(e,t,r){},ee05:function(e,t,r){"use strict";r("76cb")},f3c2:function(e,t,r){},f699:function(e,t,r){},fb15:function(e,t,r){"use strict";if(r.r(t),r.d(t,"utils",(function(){return Co})),r.d(t,"getConfig",(function(){return So})),r.d(t,"setConfig",(function(){return ko})),r.d(t,"getTheme",(function(){return To})),r.d(t,"getSize",(function(){return Mo})),r.d(t,"getPrimaryColor",(function(){return zo})),r.d(t,"resetConfig",(function(){return $o})),r.d(t,"onConfigChange",(function(){return Io})),r.d(t,"setTheme",(function(){return Lo})),r.d(t,"setSize",(function(){return Ao})),r.d(t,"setPrimaryColor",(function(){return No})),r.d(t,"XtButton",(function(){return de})),r.d(t,"XtInput",(function(){return ye})),r.d(t,"XtFlexBox",(function(){return Se})),r.d(t,"XtCard",(function(){return Le})),r.d(t,"XtCardItem",(function(){return Be})),r.d(t,"XtConfigProvider",(function(){return Ue})),r.d(t,"XtText",(function(){return Qe})),r.d(t,"XtTime",(function(){return dt})),r.d(t,"XtStepPrice",(function(){return Ct})),r.d(t,"XtStepPriceItem",(function(){return St})),r.d(t,"XtMap",(function(){return xr})),r.d(t,"XtMapProvider",(function(){return zr})),r.d(t,"XtGridBox",(function(){return Er})),r.d(t,"XtGridItem",(function(){return Xr})),r.d(t,"XtProgress",(function(){return qr})),r.d(t,"XtTabs",(function(){return ci})),r.d(t,"XtBadge",(function(){return gi})),r.d(t,"XtDatePicker",(function(){return Mi})),r.d(t,"XtIcon",(function(){return gn})),r.d(t,"XtTable",(function(){return Nn})),r.d(t,"XtList",(function(){return qn})),r.d(t,"XtScrollArrow",(function(){return ra})),r.d(t,"XtScroll",(function(){return Xn})),r.d(t,"XtBar",(function(){return Ei})),r.d(t,"XtLine",(function(){return ji})),r.d(t,"XtChart",(function(){return an})),r.d(t,"XtPie",(function(){return Wi})),r.d(t,"XtMulti",(function(){return Qi})),r.d(t,"XtPage",(function(){return ca})),r.d(t,"XtSelectTree",(function(){return va})),r.d(t,"XtUpload",(function(){return Xa})),r.d(t,"XtTransferTree",(function(){return qa})),r.d(t,"XtFormSchema",(function(){return ro})),r.d(t,"XtFlow",(function(){return mo})),r.d(t,"Theme",(function(){return wo})),"undefined"!==typeof window){var i=window.document.currentScript,n=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);n&&(r.p=n[1])}r("72fa"),r("d67a");var a={color:["#1890ff","#37c3a4","#29c0ce","#6480D7","#8cce6f","#3a5dca","#ffb74d"],backgroundColor:"#ffffff",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#333",fontSize:16},subtextStyle:{color:"#666666",fontSize:12}},line:{itemStyle:{},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#333"}},radar:{indicator:{color:"#666666"}},map:{label:{color:"#333"},itemStyle:{borderColor:"#fff"}},valueAxis:{axisLabel:{color:"#666666"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#666666"}},xAxis:{axisLine:{lineStyle:{color:"#DFE9EE"}},axisTick:{lineStyle:{color:"#DFE9EE"},show:!1}},yAxis:{axisLine:{lineStyle:{color:"#DFE9EE"}},axisTick:{lineStyle:{color:"#DFE9EE"}},splitLine:{show:!0,lineStyle:{type:"dashed",color:"#DFE9EE"}}},splitArea:{areaStyle:{color:["#f7f8fa","#ffffff"]}},legend:{textStyle:{color:"#333333"}},tooltip:{borderWidth:1,backgroundColor:"#ffffff",borderColor:"#dcdfe6",textStyle:{color:"#333333"},trigger:"axis"}},o=(r("ad4d"),{color:["#1060ff","#6648fe","#26ddff","#1bae94","#ff8041","#3a5dca","#c7dd4b"],backgroundColor:"#000",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#ffffff",fontSize:16},subtextStyle:{color:"#ffffff",fontSize:12}},line:{itemStyle:{},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#ffffff"}},radar:{indicator:{color:"#ffffff"}},map:{label:{color:"#ffffff"},itemStyle:{borderColor:"#dcdfe6"}},valueAxis:{axisLabel:{color:"#ffffff"}},categoryAxis:{axisLabel:{color:"#ffffff"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#ffffff"}},xAxis:{axisLine:{lineStyle:{color:"#DCDFE6"}},axisTick:{lineStyle:{color:"#DCDFE6"}}},yAxis:{axisLine:{lineStyle:{color:"#DCDFE6"}},axisTick:{lineStyle:{color:"#DCDFE6"}}},splitLine:{lineStyle:{color:"#ebeef5"}},splitArea:{areaStyle:{color:["#666666","#666666"]}},legend:{textStyle:{color:"#ffffff"}},tooltip:{backgroundColor:"#333333",borderWidth:1,borderColor:"#dcdfe6",textStyle:{color:"#fff"}},trigger:"axis"});const l={default:a,white:a,dark:o},s={water:["#0077be","#0099cc","#5DB1FF","#005C91","#003D61"],electricity:["#2ecc71","#27ae60","#5DD3B0","#22A85A","#167039"],gas:["#f39c12","#e67e22","#F5C976","#C28500","#8C6000"]};let c=null,d=!1;function h(){if(!c&&"undefined"!==typeof window)try{if(c=r("164e"),!d){for(const e in l)c.registerTheme(e,l[e]);d=!0}}catch(e){console.warn("[XtChart] echarts 加载失败:",e.message)}return c}const u={small:{title:14,subtitle:11,legend:11,axisLabel:10,tooltip:11,label:11},medium:{title:16,subtitle:12,legend:12,axisLabel:12,tooltip:12,label:12},large:{title:18,subtitle:14,legend:14,axisLabel:14,tooltip:14,label:14}};function p(){}function f(e,t){if(null==t)return e;if(Array.isArray(t))return t.slice();if("object"!==typeof t)return t;if(null==e||"object"!==typeof e)return JSON.parse(JSON.stringify(t));const r=Array.isArray(e)?e.slice():Object.assign({},e);return Object.keys(t).forEach(e=>{const i=t[e];null!==i&&void 0!==i?r[e]="object"===typeof i?f(r[e],i):i:t.hasOwnProperty(e)&&(r[e]=i)}),r}p.currentTheme="default",p.currentSize="medium",p.inverse=!1,p.hexToRgb=function(e){const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null},p.rgbToHex=function(e,t,r){return"#"+[e,t,r].map(e=>{const t=e.toString(16);return 1===t.length?"0"+t:t}).join("")},p.lightenColor=function(e,t){const r=this.hexToRgb(e);if(!r)return e;const i=t/100,n=Math.round(r.r*(1-i)+255*i),a=Math.round(r.g*(1-i)+255*i),o=Math.round(r.b*(1-i)+255*i);return this.rgbToHex(n,a,o)},p.darkenColor=function(e,t){const r=this.hexToRgb(e);if(!r)return e;const i=t/100,n=Math.max(0,Math.round(r.r*(1-i))),a=Math.max(0,Math.round(r.g*(1-i))),o=Math.max(0,Math.round(r.b*(1-i)));return this.rgbToHex(n,a,o)},p.EchartsUtil={backgroundColor:"transparent",tooltip:{trigger:"axis",borderWidth:1},legend:{right:20,top:0,show:!0,textStyle:{fontSize:12}},grid:{left:16,right:16,top:40,bottom:48,containLabel:!0}},p.chartInstanceList=[],p.resizeObserverList=[],p.simpleModeOption={legend:{show:!1},tooltip:{borderWidth:0,extraCssText:"box-shadow: 0 2px 8px rgba(0,0,0,0.12);"},grid:{top:"5%",left:"5%",right:"5%",bottom:"5%",containLabel:!0},xAxis:{axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!1}},yAxis:{axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}},animationDuration:300,animationEasing:"linear"},p.simpleModeByType={bar:{series:{barWidth:"60%",label:{show:!1},markPoint:null,emphasis:{itemStyle:{shadowBlur:6,shadowOffsetX:0,shadowColor:"rgba(0,0,0,0.15)"}}}},line:{series:{symbol:"none",smooth:!0,symbolSize:0,label:{show:!1},areaStyle:null}},pie:{legend:{show:!1},title:{show:!1},series:{radius:["40%","72%"],label:{show:!1},labelLine:{show:!1}}},multi:{legend:{show:!1},grid:{top:"8%",left:"5%",right:"5%",bottom:"5%",containLabel:!0}}},p.applySimpleMode=function(e,t){if(!e||"object"!==typeof e)return e;const r=JSON.parse(JSON.stringify(p.simpleModeOption)),i=p.simpleModeByType[t]||{},n=f(r,i);if(Object.keys(n).forEach(t=>{"series"!==t&&(null==e[t]?e[t]=n[t]:"object"!==typeof e[t]||"object"!==typeof n[t]||Array.isArray(e[t])||(e[t]=f(n[t],e[t])))}),e.series&&Array.isArray(e.series)){const t=n.series||{};e.series=e.series.map(e=>null==e||"object"!==typeof e?e:f(t,e))}return["xAxis","yAxis"].forEach(t=>{if(null!=e[t]&&"object"===typeof e[t]){const r=n[t]||{};Array.isArray(e[t])?e[t]=e[t].map(e=>null==e||"object"!==typeof e?e:f(r,e)):e[t]=f(r,e[t])}}),e},p.mergeOptions=function(e,t){return Object.assign({},e,t)},p.applyFontSize=function(e,t){const r=u[t]||u.medium,i=JSON.parse(JSON.stringify(e));i.title&&i.title.textStyle&&(i.title.textStyle.fontSize=r.title),i.title&&i.title.subtextStyle&&(i.title.subtextStyle.fontSize=r.subtitle),i.legend&&i.legend.textStyle&&(i.legend.textStyle.fontSize=r.legend),i.tooltip&&i.tooltip.textStyle&&(i.tooltip.textStyle.fontSize=r.tooltip),i.pie&&i.pie.label&&"object"===typeof i.pie.label&&(i.pie.label.fontSize=r.label),i.radar&&i.radar.indicator&&"object"===typeof i.radar.indicator&&i.radar.indicator.textStyle&&(i.radar.indicator.textStyle.fontSize=r.label),i.map&&i.map.label&&"object"===typeof i.map.label&&(i.map.label.fontSize=r.label);const n=function(e){e&&(e.axisLabel||(e.axisLabel={}),i.axisLabel&&i.axisLabel.color&&(e.axisLabel.color=i.axisLabel.color),e.axisLabel.fontSize=r.axisLabel)};return i.xAxis&&(Array.isArray(i.xAxis)?i.xAxis.forEach(n):n(i.xAxis)),i.yAxis&&(Array.isArray(i.yAxis)?i.yAxis.forEach(n):n(i.yAxis)),i},p.init=function(e,t,r,i){const n=h();if(!n||!e)return null;t=t||"default",i=i||"medium",r=r||{};const a=this.currentTheme||t,o=this.currentSize||i;this.currentTheme=a,this.currentSize=o;let l=JSON.parse(JSON.stringify(p.EchartsUtil));l=this.applyFontSize(l,o);const s=this.mergeOptions(l,r),c=n.init(e,a);return c.setOption(s,!0),this.chartInstanceList.push({dom:e,chart:c,customOption:r,size:o}),this.bindResize(c),c},p.changeSingleTheme=function(e,t,r,i){const n=h();if(!n||!e||!t)return;r=r||{},i=i||"default",this.currentTheme=i,t.dispose();const a=n.init(e,i,r),o=this.chartInstanceList.find((function(t){return t.dom===e}));return o&&(o.chart=a),a},p.changeAllTheme=function(e,t,r,i){const n=h();n&&e&&(this.currentTheme=e,t&&(this.currentSize=t),this.chartInstanceList.forEach((function(t){const a=t.dom,o=t.chart,l=t.customOption,c=t.size||p.currentSize;o&&o.dispose();const d=n.init(a,e);let h=JSON.parse(JSON.stringify(p.EchartsUtil));h=p.applyFontSize(h,c),i&&s[i]?h.color=s[i]:r&&(h.color=[r,p.lightenColor(r,30),p.lightenColor(r,50),p.darkenColor(r,20),p.darkenColor(r,40)]);const u=p.mergeOptions(h,l);console.log("option1",u),d.setOption(u,!0),t.chart=d,t.size=c,p.bindResize(d)})))},p.bindResize=function(e){e&&!e.resizeLocked&&(window.addEventListener("resize",(function(){e.resize()})),e._resizeLocked=!0)},p.bindResizeObserver=function(e,t){if(!e||!t||"undefined"===typeof ResizeObserver)return;const r=new ResizeObserver(()=>{t.resize()});r.observe(e),p.resizeObserverList.push({dom:e,observer:r,chartIns:t})},p.unbindResizeObserver=function(e){const t=p.resizeObserverList.findIndex(t=>t.dom===e);-1!==t&&(p.resizeObserverList[t].observer.disconnect(),p.resizeObserverList.splice(t,1))},p.destroy=function(e){e&&e.dispose(),this.chartInstanceList=this.chartInstanceList.filter((function(t){return t.chart!==e}))},p.destroyAll=function(){this.chartInstanceList.forEach((function(e){e.chart&&e.chart.dispose()})),this.chartInstanceList=[],this.resizeObserverList.forEach((function(e){e.observer.disconnect()})),this.resizeObserverList=[]};var m=p;function g(e){const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?`${parseInt(t[1],16)}, ${parseInt(t[2],16)}, ${parseInt(t[3],16)}`:"24, 144, 255"}function y(e){const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}function b(e,t,r){return"#"+[e,t,r].map(e=>{const t=e.toString(16);return 1===t.length?"0"+t:t}).join("")}function v(e,t){const r=y(e);if(!r)return e;const i=Math.max(0,r.r-t),n=Math.max(0,r.g-t),a=Math.max(0,r.b-t);return b(i,n,a)}function _(e,t){const r=y(e);if(!r)return e;const i=Math.round(2.55*t),n=Math.min(255,r.r+i),a=Math.min(255,r.g+i),o=Math.min(255,r.b+i);return b(n,a,o)}function x(e){const t="--el-color-primary";return{[t]:e,[t+"-light-3"]:_(e,30),[t+"-light-5"]:_(e,50),[t+"-light-7"]:_(e,70),[t+"-light-8"]:_(e,80),[t+"-light-9"]:_(e,90),[t+"-dark-2"]:v(e,20),[t+"-rgb"]:g(e)}}function w(e){const t="--xt-color-primary";return{[t]:e,[t+"-light-3"]:_(e,30),[t+"-light-5"]:_(e,50),[t+"-light-7"]:_(e,70),[t+"-light-8"]:_(e,80),[t+"-light-9"]:_(e,90)}}const C={"--el-color-primary":"#1890ff","--el-color-success":"#67c23a","--el-color-warning":"#e6a23c","--el-color-danger":"#f56c6c","--el-color-error":"#f56c6c","--el-color-info":"#909399","--el-bg-color":"#ffffff","--el-bg-color-page":"#f2f3f5","--el-bg-color-overlay":"#ffffff","--el-text-color-primary":"#303133","--el-text-color-regular":"#606266","--el-text-color-secondary":"#909399","--el-text-color-placeholder":"#a8abb2","--el-text-color-disabled":"#c0c4cc","--el-border-color":"#dcdfe6","--el-border-color-light":"#e4e7ed","--el-border-color-lighter":"#ebeef5","--el-fill-color":"#f0f2f5","--el-fill-color-light":"#f5f7fa","--el-fill-color-lighter":"#fafafa","--el-mask-color":"rgba(255, 255, 255, .9)","--el-mask-color-extra-light":"rgba(255, 255, 255, .3)"},S={"--el-color-primary":"#409eff","--el-color-success":"#67c23a","--el-color-warning":"#e6a23c","--el-color-danger":"#f56c6c","--el-color-error":"#f56c6c","--el-color-info":"#909399","--el-bg-color":"#141414","--el-bg-color-page":"#0a0a0a","--el-bg-color-overlay":"#1d1e1f","--el-text-color-primary":"#E5EAF3","--el-text-color-regular":"#CFD3DC","--el-text-color-secondary":"#A3A6AD","--el-text-color-placeholder":"#8D9095","--el-text-color-disabled":"#6C6E72","--el-border-color":"#4C4D4F","--el-border-color-light":"#414243","--el-border-color-lighter":"#363637","--el-fill-color":"#303030","--el-fill-color-light":"#262727","--el-fill-color-lighter":"#1D1D1D","--el-mask-color":"rgba(0, 0, 0, .8)","--el-mask-color-extra-light":"rgba(0, 0, 0, .3)"},k={water:{light:"#0077be",dark:"#0099cc"},electricity:{light:"#2ecc71",dark:"#27ae60"},gas:{light:"#f39c12",dark:"#e67e22"}},T="xt-element-ui-theme-config",M="xt-theme-change";function z(e,t){if(!e)return;const{theme:r="white",primaryColor:i,brand:n=""}=t,a=e.style;e.setAttribute("data-theme",r),n?e.setAttribute("data-brand",n):e.removeAttribute("data-brand");const o="dark"===r?S:C;for(const s in o)a.setProperty(s,o[s]);let l=i;if(n&&k[n]&&(l=k[n]["dark"===r?"dark":"light"]||i),l){const e=x(l);for(const t in e)a.setProperty(t,e[t])}}const $={theme:"white",size:"medium",primaryColor:"#1890ff"};let I={...$};const L=[],A=function(e,t){L.forEach(r=>{r(e,t)})},N=function(){return{...I}},O=function(e){"object"===typeof e&&null!==e?(void 0!==e.theme&&D(e.theme),void 0!==e.size&&P(e.size),void 0!==e.primaryColor&&B(e.primaryColor)):console.warn("[XtElementUI] setConfig 必须传入对象参数")};function E(){return"undefined"!==typeof window&&"undefined"!==typeof document}const D=function(e){const t=["white","dark"];if(t.includes(e)){if(I.theme=e,E()){const t=document.documentElement;z(t,{theme:e,primaryColor:I.primaryColor});const r=w(I.primaryColor);for(const e in r)t.style.setProperty(e,r[e]);m.changeAllTheme(I.theme,I.size)}A("theme",e)}else console.warn(`[XtElementUI] 无效的主题值: ${e},可选值: ${t.join(", ")}`)},P=function(e){const t=["small","medium","large"];t.includes(e)?(I.size=e,E()&&(document.documentElement.setAttribute("data-size",e),m.changeAllTheme(I.theme,I.size)),A("size",e)):console.warn(`[XtElementUI] 无效的大小值: ${e},可选值: ${t.join(", ")}`)},B=function(e){const t=/^#[0-9A-Fa-f]{3}$|^#[0-9A-Fa-f]{6}$|^#[0-9A-Fa-f]{8}$/;if(!t.test(e))return void console.warn(`[XtElementUI] 无效的颜色值: ${e},请使用十六进制颜色格式,如 #1890ff`);let r=e;if(4===e.length?r="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]:9===e.length&&(r=e.substring(0,7)),I.primaryColor=r,E()){const e=document.documentElement;z(e,{theme:I.theme,primaryColor:r});const t=w(r);for(const r in t)e.style.setProperty(r,t[r])}A("primaryColor",r)},R=function(){return I.theme},F=function(){return I.size},j=function(){return I.primaryColor},X=function(){O($)},H=function(e){if("function"===typeof e)return L.push(e),function(){const t=L.indexOf(e);t>-1&&L.splice(t,1)};console.warn("[XtElementUI] onConfigChange 必须传入函数")},K=function(e,t){if(null===e||void 0===e||""===e)return"";const r="string"===typeof e?parseFloat(e):e;if(isNaN(r))return String(e);const i=Object.assign({decimals:2,thousand:!0,prefix:"",suffix:"",showSign:!1},t||{});let n=r.toFixed(i.decimals);if(i.thousand){const e=n.split(".");e[0]=e[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),n=e.join(".")}return i.showSign&&r>0&&(n="+"+n),i.prefix+n+i.suffix},V=function(e,t){return K(e,{decimals:null!=t?t:2,thousand:!0})},U=function(e,t){if(null===e||void 0===e||""===e)return"";const r="string"===typeof e?parseFloat(e):e;return isNaN(r)?String(e):K(100*r,{decimals:null!=t?t:2,thousand:!0,suffix:"%"})};function W(e,t){return t=t||2,String(e).padStart(t,"0")}const Y=function(e,t){if(!e)return"";let r;if(e instanceof Date)r=e;else if("number"===typeof e)r=new Date(10===e.toString().length?1e3*e:e);else{if("string"!==typeof e)return"";e=e.trim(),r=/^\d+$/.test(e)?new Date(10===e.length?1e3*parseInt(e):parseInt(e)):new Date(e.replace(/-/g,"/"))}if(isNaN(r.getTime()))return"";const i=t||"yyyy-MM-dd",n=r.getFullYear(),a=r.getMonth()+1,o=r.getDate(),l=r.getHours(),s=r.getMinutes(),c=r.getSeconds(),d=r.getDay(),h=["日","一","二","三","四","五","六"];return i.replace("yyyy",n).replace("MM",W(a)).replace("M",a).replace("dd",W(o)).replace("d",o).replace("HH",W(l)).replace("H",l).replace("hh",W(l%12||12)).replace("h",l%12||12).replace("mm",W(s)).replace("m",s).replace("ss",W(c)).replace("s",c).replace("w",h[d]).replace("W","星期"+h[d])},q=function(e,t){return Y(e,t||"yyyy-MM-dd HH:mm:ss")},Z=function(e,t){return Y(e,t||"HH:mm:ss")},G=function(e){if(!e)return"";let t;if(e instanceof Date)t=e;else if("number"===typeof e)t=new Date(10===e.toString().length?1e3*e:e);else{if("string"!==typeof e)return"";e=e.trim(),t=/^\d+$/.test(e)?new Date(10===e.length?1e3*parseInt(e):parseInt(e)):new Date(e.replace(/-/g,"/"))}if(isNaN(t.getTime()))return"";const r=new Date,i=r.getTime()-t.getTime(),n=6e4,a=60*n,o=24*a,l=7*o,s=30*o,c=365*o;return i<n?"刚刚":i<a?Math.floor(i/n)+"分钟前":i<o?Math.floor(i/a)+"小时前":i<l?Math.floor(i/o)+"天前":i<s?Math.floor(i/l)+"周前":i<c?Math.floor(i/s)+"个月前":Math.floor(i/c)+"年前"},J=function(e,t){if(null===e||void 0===e||""===e)return"";const r="string"===typeof e?parseFloat(e):e;if(isNaN(r))return String(e);const i=Object.assign({currency:"CNY",decimals:2,prefix:"",suffix:"",showSign:!1},t||{}),n={CNY:"¥",USD:"$",EUR:"€",JPY:"¥",GBP:"£",AUD:"A$",CAD:"C$"};let a=n[i.currency]||"",o=r.toFixed(i.decimals);const l=o.split(".");return l[0]=l[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),o=l.join("."),i.showSign&&r>0&&(o="+"+o),i.prefix&&(o=i.prefix+o),i.suffix&&(o+=i.suffix),a+o},Q=function(e,t){return J(e,{currency:"CNY",decimals:null!=t?t:2})},ee=function(e,t){return J(e,{currency:"USD",decimals:null!=t?t:2})},te=function(e){if(null===e||void 0===e||""===e)return"";const t="string"===typeof e?parseFloat(e):e;if(isNaN(t))return String(e);if(0===t)return"0 B";const r=1024,i=["B","KB","MB","GB","TB"],n=Math.floor(Math.log(t)/Math.log(r));return parseFloat((t/Math.pow(r,n)).toFixed(2))+" "+i[n]};var re={setTheme:D,setSize:P,setPrimaryColor:B,getConfig:N,setConfig:O,getTheme:R,getSize:F,getPrimaryColor:j,resetConfig:X,onConfigChange:H,formatNumber:K,formatThousand:V,formatPercent:U,formatDate:Y,formatDateTime:q,formatTime:Z,formatRelativeTime:G,formatMoney:J,formatCNY:Q,formatUSD:ee,formatFileSize:te},ie=(r("0ba5"),function(){var e=this,t=e._self._c;return t("el-button",e._b({staticClass:"xt-button",class:e.buttonClasses,attrs:{type:e.type},on:{click:e.handleClick}},"el-button",e.$attrs,!1),[e._t("default")],2)}),ne=[],ae={name:"XtButton",inheritAttrs:!1,inject:{xtConfig:{default:()=>({theme:void 0,size:void 0,primaryColor:void 0})}},props:{type:{type:String,default:"",validator:e=>["","primary","success","warning","danger"].includes(e)},throttle:{type:Number,default:0},size:{type:String,default:null,validator:e=>!e||["mini","small","medium","large"].includes(e)},square:{type:Boolean,default:!1}},data(){return{lastClickTime:0}},computed:{finalSize(){return this.size||this.xtConfig.size||"medium"},buttonClasses(){return["xt-button-"+this.finalSize,"xt-button-"+this.type,this.square?"is-square":""]}},methods:{handleClick(){this.throttle>0&&Date.now()-this.lastClickTime<this.throttle||(this.lastClickTime=Date.now(),this.$emit("click"))}}},oe=ae,le=r("2877"),se=Object(le["a"])(oe,ie,ne,!1,null,null,null),ce=se.exports;ce.install=function(e){e.component(ce.name,ce)};var de=ce,he=(r("0563"),function(){var e=this,t=e._self._c;return t("div",{staticClass:"xt-input",class:[e.size?"xt-input--"+e.size:"",{"is-disabled":e.disabled},{"is-error":e.hasError}]},[t("el-input",{style:e.inputStyle,attrs:{value:e.displayValue,placeholder:e.placeholder,type:e.inputType,size:e.size,disabled:e.disabled,readonly:e.readonly,maxlength:e.maxlength,"show-word-limit":e.showWordLimit,"prefix-icon":e.prefixIcon,"suffix-icon":e.suffixIcon},on:{input:e.handleInput,change:e.handleChange,focus:e.handleFocus,blur:e.handleBlur,clear:e.handleClear},scopedSlots:e._u([e.$slots.prefix?{key:"prefix",fn:function(){return[e._t("prefix")]},proxy:!0}:null,e.$slots.suffix?{key:"suffix",fn:function(){return[e._t("suffix")]},proxy:!0}:null],null,!0)})],1)}),ue=[],pe={name:"XtInput",props:{value:[String,Number],placeholder:{type:String,default:"请输入内容"},type:{type:String,default:"text",validator:e=>["text","number","integer","decimal","money","phone","email","idcard","password","textarea"].includes(e)},size:{type:String,default:""},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},color:{type:String,default:""},precision:{type:Number,default:2,validator:e=>e>=0&&e<=10},min:{type:Number,default:void 0},max:{type:Number,default:void 0},allowNegative:{type:Boolean,default:!1},thousandSeparator:{type:Boolean,default:!1},maxlength:{type:Number,default:void 0},showWordLimit:{type:Boolean,default:!1},prefixIcon:{type:String,default:""},suffixIcon:{type:String,default:""},trim:{type:Boolean,default:!1}},data(){return{currentStr:"",isFocused:!1,hasError:!1}},computed:{inputType(){return"textarea"===this.type?"textarea":"password"===this.type?"password":(this.isNumberType,"text")},isNumberType(){return["number","integer","decimal","money"].includes(this.type)},displayValue(){return this.isNumberType?this.thousandSeparator&&this.currentStr?this.formatThousand(this.currentStr):this.currentStr:this.value},inputStyle(){const e={};return this.color&&(e["--xt-input-focus-color"]=this.color),e}},watch:{value:{immediate:!0,handler(e){if(this.isNumberType&&!this.isFocused)if(null===e||void 0===e||""===e)this.currentStr="";else{const t=String(e);this.thousandSeparator?this.currentStr=this.parseThousand(t):this.currentStr=t}}}},methods:{isValidNumber(e){if(!e)return!0;const t=this.allowNegative?"[-+]?":"";return"integer"===this.type?new RegExp(`^${t}\\d*$`).test(e):"decimal"===this.type||"number"===this.type?0===this.precision?new RegExp(`^${t}\\d*$`).test(e):new RegExp(`^${t}\\d*\\.?\\d{0,${this.precision}}$`).test(e):"money"!==this.type||new RegExp(`^${t}\\d*\\.?\\d{0,${this.precision}}$`).test(e)},isValidPhone(e){return/^1[3-9]\d{0,9}$/.test(e)},isValidEmail(e){return!e||/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e)},isValidIdCard(e){return/^[1-9]\d{0,17}$/.test(e)},formatThousand(e){if(!e)return"";const t=e.split(".");return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),t.join(".")},parseThousand(e){return e.replace(/,/g,"")},parseToNumber(e){if(!e||"+"===e||"-"===e||"."===e||"+."===e||"-."===e||"-."===e)return;const t=parseFloat(e);return isNaN(t)?void 0:t},handleInput(e){let t=e;if(this.thousandSeparator&&this.isNumberType&&(t=this.parseThousand(e)),"phone"===this.type)return t=e.replace(/[^\d]/g,""),this.isValidPhone(t)||(t=t.slice(0,-1)),void this.$emit("input",t);if("idcard"===this.type)return t=e.replace(/[^\dXx]/g,""),this.isValidIdCard(t)||(t=t.slice(0,-1)),void this.$emit("input",t.toUpperCase());if("email"===this.type)return this.isValidEmail(t)?this.hasError=!1:this.hasError=!0,void this.$emit("input",t);if(this.isNumberType){if(this.isValidNumber(t)){this.currentStr=t;const e=this.parseToNumber(t);if(void 0!==e){let t=e;void 0!==this.min&&e<this.min&&(t=this.min,this.currentStr=String(t)),void 0!==this.max&&e>this.max&&(t=this.max,this.currentStr=String(t)),this.$emit("input",t),this.hasError=!1}else this.$emit("input",void 0)}}else this.trim&&(t=t.trim()),this.$emit("input",t)},handleChange(e){let t=e;if(this.thousandSeparator&&this.isNumberType&&(t=this.parseThousand(e)),this.isNumberType){const e=this.parseToNumber(t);this.$emit("change",e)}else this.trim&&(t=t.trim()),this.$emit("change",t)},handleFocus(e){this.isFocused=!0,this.$emit("focus",e)},handleBlur(e){if(this.isFocused=!1,this.isNumberType){const t=this.parseToNumber(this.currentStr);if(void 0!==t){let r=t;this.precision>0&&(r=Number(t.toFixed(this.precision))),this.currentStr=String(r),this.$emit("input",r),this.$emit("blur",r,e),this.hasError=!1}else""!==this.currentStr&&(this.currentStr="",this.$emit("input",void 0)),this.$emit("blur",void 0,e),this.hasError=!1}else"email"===this.type&&(this.isValidEmail(this.value)||(this.hasError=!0)),this.$emit("blur",e)},handleClear(){this.isNumberType&&(this.currentStr=""),this.hasError=!1,this.$emit("input",this.isNumberType?void 0:""),this.$emit("clear")},reset(){this.currentStr="",this.hasError=!1,this.$emit("input",this.isNumberType?void 0:"")}}},fe=pe,me=Object(le["a"])(fe,he,ue,!1,null,null,null),ge=me.exports;ge.install=function(e){e.component(ge.name,ge)};var ye=ge,be=(r("5820"),function(){var e=this,t=e._self._c;return t("div",{staticClass:"xt-flex-box",class:e.classAttrs,style:e.flexStyle},[e._t("default")],2)}),ve=[],_e={name:"XtFlexBox",props:{type:{type:String,default:"flex"},align:{type:String,default:"center"},content:{type:String,default:"start"},direction:{type:String,default:"row"},wrap:{type:String,default:"unset"},gap:{type:String,default:""}},computed:{classAttrs(){const{type:e,align:t,wrap:r,direction:i,content:n}=this;return[""+e,"align-"+t,"content-"+n,"direction-"+i,"wrap-"+r]},flexStyle(){const e={};return this.gap?e.gap=this.gap:e.gap="",e}}},xe=_e,we=Object(le["a"])(xe,be,ve,!1,null,null,null),Ce=we.exports;Ce.install=function(e){e.component(Ce.name,Ce)};var Se=Ce,ke=(r("419e"),function(){var e=this,t=e._self._c;return t("el-card",e._b({staticClass:"xt-card",class:e.cardClasses,scopedSlots:e._u([e.$slots.header||e.title?{key:"header",fn:function(){return[e._t("header",(function(){return[e._v(e._s(e.title))]}))]},proxy:!0}:null],null,!0)},"el-card",e.$attrs,!1),[e._t("default")],2)}),Te=[],Me={name:"XtCard",inheritAttrs:!1,inject:{xtConfig:{default:()=>({theme:void 0,size:void 0,primaryColor:void 0})}},props:{title:{type:String,default:""},shadow:{type:String,default:"always",validator:e=>["always","hover","never"].includes(e)},bordered:{type:Boolean,default:!0},bodyClass:{type:String,default:""},size:{type:String,default:null,validator:e=>!e||["small","medium","large"].includes(e)}},computed:{finalSize(){return this.size||this.xtConfig.size||"medium"},cardClasses(){return["xt-card-"+this.shadow,"xt-card-"+this.finalSize,{"xt-card-no-border":!this.bordered,[this.bodyClass]:this.bodyClass}]}}},ze=Me,$e=Object(le["a"])(ze,ke,Te,!1,null,null,null),Ie=$e.exports;Ie.install=function(e){e.component(Ie.name,Ie)};var Le=Ie,Ae=(r("c1e7"),function(){var e=this,t=e._self._c;return t("xt-card",{staticClass:"xt-card-item",class:{["is-"+e.type]:!!e.type},attrs:{bordered:!1}},[t("xt-flex-box",{attrs:{content:"between"}},[t("div",[t("div",[t("xt-text",{attrs:{bold:"",size:"extra-large"}},[e._v(e._s(e.title))])],1),t("xt-text",{attrs:{bold:"",size:"large",format:"thousand",type:e.type,decimals:0},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}}),t("div",{staticStyle:{margin:"5px 0"}},[t("xt-text",{attrs:{size:"small"}},[e._v("较昨日")]),t("xt-text",{attrs:{format:"normal",type:e.diff>0?"success":"danger",suffix:e.diff>0?"↑":"↓"},model:{value:e.reference,callback:function(t){e.reference=t},expression:"reference"}})],1)],1),t("div",{staticStyle:{height:"100%"}},[e._t("icon",(function(){return[t("xt-text",{attrs:{size:"extra-large",type:e.type}},[t("xt-icon",{attrs:{name:"el-icon-user",size:48}})],1)]}))],2)])],1)}),Ne=[],Oe={name:"XtCardItem",props:{type:{type:String,default:"primary"},title:{type:String,default:""},diff:{type:Number,default:0},value:{type:Number,default:0},reference:{type:Number,default:0}},data(){return{}}},Ee=Oe,De=Object(le["a"])(Ee,Ae,Ne,!1,null,null,null),Pe=De.exports;Pe.install=function(e){e.component(Pe.name,Pe)};var Be=Pe;r("2474");const Re="undefined"!==typeof HTMLElement?HTMLElement:Object;var Fe,je,Xe={name:"XtConfigProvider",inheritAttrs:!1,data(){return{xtConfig:{theme:this.theme,size:this.size,primaryColor:this.primaryColor,brand:this.brand}}},provide(){return{xtConfig:this.xtConfig}},watch:{theme(e){this.xtConfig.theme=e,this.updateConfig()},size(e){this.xtConfig.size=e,this.updateConfig()},primaryColor(e){this.xtConfig.primaryColor=e,this.updateConfig()},brand(e){this.xtConfig.brand=e,this.updateConfig()}},render(e){const t=this.$slots.default;return"template"===this.tag||this.proxyElement?t&&0!==t.length?1===t.length?t[0]:e("div",{class:"xt-config-provider-wrapper",attrs:{"data-theme":this.theme,"data-brand":this.brand}},t):e("div"):e(this.tag,{style:this.mergedStyle,class:this.computedClass,attrs:{...this.customAttrs,"data-theme":this.theme,"data-brand":this.brand}},this.$slots.default)},props:{theme:{type:String,default:"white",validator:e=>["white","dark","auto"].includes(e)},size:{type:String,default:"medium",validator:e=>["small","medium","large"].includes(e)},primaryColor:{type:String,default:"#1890ff"},brand:{type:String,default:"",validator:e=>["","water","electricity","gas"].includes(e)},vars:{type:Object,default:()=>({})},tag:{type:String,default:"div",validator:e=>["div","span","section","main","template","article","aside"].includes(e)},injectBackground:{type:Boolean,default:!1},injectColor:{type:Boolean,default:!1},proxyElement:{type:[Re,String,Object],default:null,description:"代理元素,将样式应用到该元素上。支持 HTMLElement、CSS选择器字符串或 ref 对象"},onThemeChange:{type:Function,default:null,description:"主题改变时的钩子函数,接收参数: { theme, size, primaryColor, brand }"},onStyleApplied:{type:Function,default:null,description:"样式应用完成时的钩子函数,接收参数: { element, style, theme, brand }"}},computed:{mergedStyle(){const e={...this.vars};if(this.primaryColor){const t=this.normalizeColor(this.primaryColor);e["--xt-color-primary"]=t,e["--xt-color-primary-light-3"]=this.lightenColor(t,30),e["--xt-color-primary-light-5"]=this.lightenColor(t,50),e["--xt-color-primary-light-7"]=this.lightenColor(t,70),e["--xt-color-primary-light-8"]=this.lightenColor(t,80),e["--xt-color-primary-light-9"]=this.lightenColor(t,90),e["--xt-color-primary-dark-2"]=this.darkenColor(t,20)}const t={small:"14px",medium:"16px",large:"18px"};return t[this.size]&&(e["--xt-font-size-base"]=t[this.size]),"dark"===this.theme?(this.injectBackground&&(e.backgroundColor=e["--xt-bg-color"]||"#141414"),this.injectColor&&(e.color=e["--xt-text-color-primary"]||"#E5EAF3")):(this.injectBackground&&(e.backgroundColor=e["--xt-bg-color"]||"#ffffff"),this.injectColor&&(e.color=e["--xt-text-color-primary"]||"#303133")),e},computedClass(){const e=[];return"template"!==this.tag&&e.push("xt-config-provider"),e},customAttrs(){const e=["theme","size","primaryColor","brand","vars","tag","injectBackground","injectColor","proxyElement"],t={};for(const r in this.$attrs)e.includes(r)||(t[r]=this.$attrs[r]);return t}},mounted(){this.applyProxyElementStyle()},updated(){this.applyProxyElementStyle()},beforeUnmount(){this.clearProxyElementStyle()},methods:{updateConfig(){this.applyProxyElementStyle()},normalizeColor(e){if(!e)return"#1890ff";if(/^#[0-9A-Fa-f]{6}$/.test(e))return e;if(/^#[0-9A-Fa-f]{3}$/.test(e))return"#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3];if(/^#[0-9A-Fa-f]{8}$/.test(e))return e.substring(0,7);const t=e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)/i);if(t){const e=parseInt(t[1]),r=parseInt(t[2]),i=parseInt(t[3]);return this.rgbToHex(e,r,i)}return console.warn("[XtConfigProvider] 无法识别的颜色格式:",e),"#1890ff"},hexToRgb(e){const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null},rgbToHex(e,t,r){return"#"+[e,t,r].map(e=>{const t=e.toString(16);return 1===t.length?"0"+t:t}).join("")},lightenColor(e,t){const r=this.hexToRgb(e);if(!r)return e;const i=t/100,n=Math.round(r.r*(1-i)+255*i),a=Math.round(r.g*(1-i)+255*i),o=Math.round(r.b*(1-i)+255*i);return this.rgbToHex(n,a,o)},darkenColor(e,t){const r=this.hexToRgb(e);if(!r)return e;const i=t/100,n=Math.max(0,Math.round(r.r*(1-i))),a=Math.max(0,Math.round(r.g*(1-i))),o=Math.max(0,Math.round(r.b*(1-i)));return this.rgbToHex(n,a,o)},getProxyElement(){const{proxyElement:e}=this;return e?e instanceof HTMLElement?e:"string"===typeof e?document.querySelector(e):e.$el?e.$el:e.value&&e.value instanceof HTMLElement?e.value:(console.warn("[XtConfigProvider] 无法解析 proxyElement:",e),null):null},applyProxyElementStyle(){const e=this.getProxyElement();if(!e)return;const t=this.mergedStyle,r=e.getAttribute("data-theme"),i=e.getAttribute("data-brand");for(const n in t)e.style.setProperty(n,t[n]);e.setAttribute("data-theme",this.theme),e.setAttribute("data-brand",this.brand),m.changeAllTheme(this.theme,this.size,this.primaryColor,this.brand),r!==this.theme&&"function"===typeof this.onThemeChange&&this.onThemeChange({theme:this.theme,size:this.size,primaryColor:this.primaryColor,brand:this.brand,prevTheme:r,prevBrand:i}),"function"===typeof this.onStyleApplied&&this.onStyleApplied({element:e,style:t,theme:this.theme,size:this.size,primaryColor:this.primaryColor,brand:this.brand})},clearProxyElementStyle(){const e=this.getProxyElement();if(!e)return;const t=this.mergedStyle;for(const r in t)e.style.removeProperty(r);e.removeAttribute("data-theme"),e.removeAttribute("data-brand")}}},He=Xe,Ke=(r("a075"),Object(le["a"])(He,Fe,je,!1,null,"25b37bc4",null)),Ve=Ke.exports;Ve.install=function(e){e.component(Ve.name,Ve)};var Ue=Ve,We=(r("86ae"),function(){var e=this,t=e._self._c;return e.showTooltip&&e.ellipsis?t("el-tooltip",{attrs:{content:e.displayTooltipContent,placement:e.tooltipPlacement,disabled:!e.isOverflow,effect:"dark"}},[t("span",{ref:"textRef",staticClass:"xt-text",class:[e.type?"xt-text--"+e.type:"","xt-text--"+e.size,{"xt-text--bold":e.bold},{"xt-text--money":"money"===e.format},{"xt-text--ellipsis":e.ellipsis&&1==e.ellipsisRows},{"xt-text--ellipsis-multiline":e.ellipsis&&e.ellipsisRows>1}],style:e.customStyle,on:{mouseenter:e.handleMouseEnter}},[e.$slots.prefix?[e._t("prefix")]:e.prefix?[e._v(e._s(e.prefix))]:e._e(),e._t("default",(function(){return[void 0!==e.formattedValue?[e._v(e._s(e.formattedValue))]:e._e()]})),e.$slots.suffix?[e._t("suffix")]:e.suffix?[e._v(e._s(e.suffix))]:e._e()],2)]):t("span",{ref:"textRef",staticClass:"xt-text",class:[e.type?"xt-text--"+e.type:"","xt-text--"+e.size,{"xt-text--bold":e.bold},{"xt-text--money":"money"===e.format},{"xt-text--ellipsis":e.ellipsis&&1==e.ellipsisRows},{"xt-text--ellipsis-multiline":e.ellipsis&&e.ellipsisRows>1}],style:e.customStyle},[e.$slots.prefix?[e._t("prefix")]:e.prefix?[e._v(e._s(e.prefix))]:e._e(),e._t("default",(function(){return[void 0!==e.formattedValue?[e._v(e._s(e.formattedValue))]:e._e()]})),e.$slots.suffix?[e._t("suffix")]:e.suffix?[e._v(e._s(e.suffix))]:e._e()],2)}),Ye=[],qe={name:"XtText",model:{prop:"value",event:"input"},props:{type:{type:String,default:"",validator:e=>["","primary","success","warning","danger"].includes(e)},size:{type:String,default:"small",validator:e=>["extra-large","large","medium","small","mini","extra-small"].includes(e)},bold:{type:Boolean,default:!1},letterSpacing:{type:[String,Number],default:""},ellipsis:{type:Boolean,default:!1},ellipsisRows:{type:Number,default:1,validator:e=>e>=1&&e<=10},showTooltip:{type:Boolean,default:!0},tooltipPlacement:{type:String,default:"top",validator:e=>["top","bottom","left","right","top-start","top-end","bottom-start","bottom-end","left-start","left-end","right-start","right-end"].includes(e)},tooltipContent:{type:String,default:""},format:{type:String,default:"normal",validator:e=>["normal","thousand","money"].includes(e)},money:{type:Boolean,default:!1},value:{type:[Number,String],default:""},currency:{type:String,default:"CNY",validator:e=>["CNY","USD","EUR","JPY","GBP","AUD","CAD"].includes(e)},decimals:{type:Number,default:2,validator:e=>e>=0&&e<=10},locale:{type:String,default:"zh-CN"},showSign:{type:Boolean,default:!1},prefix:{type:String,default:""},suffix:{type:String,default:""}},data(){return{ellipsisWidth:void 0,isOverflow:!1}},computed:{realFormat(){return this.money?"money":this.format},customStyle(){const e={};return this.letterSpacing&&(e.letterSpacing="number"===typeof this.letterSpacing?this.letterSpacing+"px":this.letterSpacing),this.ellipsis&&this.ellipsisRows>1&&(e.WebkitLineClamp=this.ellipsisRows,e.width=this.ellipsisWidth+"px"),e},displayTooltipContent(){return this.tooltipContent?this.tooltipContent:void 0!==this.formattedValue?this.formattedValue:this.$slots.default&&this.$slots.default.length>0?this.extractSlotText(this.$slots.default):this.value},formattedValue(){const e=this.realFormat,{value:t}=this;if(""===t||void 0===t||null===t)return;const r="string"===typeof t?parseFloat(t):t;if(isNaN(r))return t;try{let t="";const i=this.showSign?"always":"auto";switch(e){case"thousand":t=new Intl.NumberFormat(this.locale,{minimumFractionDigits:this.decimals,maximumFractionDigits:this.decimals,signDisplay:i}).format(r);break;case"money":t=new Intl.NumberFormat(this.locale,{style:"currency",currency:this.currency,minimumFractionDigits:this.decimals,maximumFractionDigits:this.decimals,signDisplay:i}).format(r);break;default:return}return t}catch(i){return t}}},methods:{handleMouseEnter(){this.checkOverflow()},checkOverflow(){const e=this.$refs.textRef;e?this.ellipsisRows>1?(this.isOverflow=e.scrollHeight>e.clientHeight,this.ellipsisWidth=e.clientWidth):this.isOverflow=e.scrollWidth>e.clientWidth:this.isOverflow=!1},extractSlotText(e){let t="";return e.forEach(e=>{"string"===typeof e.children?t+=e.children:"string"===typeof e.text?t+=e.text:e.children&&Array.isArray(e.children)&&(t+=this.extractSlotText(e.children))}),t.trim()}},mounted(){this.ellipsis&&this.showTooltip&&this.$nextTick(()=>{this.checkOverflow()}),this._resizeObserver=new ResizeObserver(()=>{this.ellipsis&&this.showTooltip&&this.checkOverflow()}),this.$nextTick(()=>{this.$refs.textRef&&this._resizeObserver.observe(this.$refs.textRef)})},beforeDestroy(){this._resizeObserver&&this._resizeObserver.disconnect()},watch:{value(){this.ellipsis&&this.showTooltip&&this.$nextTick(()=>{this.checkOverflow()})},ellipsis(e){e&&this.showTooltip&&this.$nextTick(()=>{this.checkOverflow()})}}},Ze=qe,Ge=Object(le["a"])(Ze,We,Ye,!1,null,null,null),Je=Ge.exports;Je.install=function(e){e.component(Je.name,Je)};var Qe=Je,et=(r("6c9e"),function(){var e=this,t=e._self._c;return t("span",{staticClass:"xt-time",class:[e.typeColor?"xt-time--"+e.typeColor:"","xt-time--"+e.size,{"xt-time--bold":e.bold}],style:e.customStyle,on:{click:e.handleClick}},[e._t("prefix",(function(){return[e._v(e._s(e.prefix))]})),e._t("default",(function(){return["text"===e.mode?[void 0!==e.displayText?[e._v(e._s(e.displayText))]:e.hideEmpty?e._e():[e._v(e._s(e.emptyText))]]:"now"===e.mode?[e._v(" "+e._s(e.nowText)+" ")]:"countdown"===e.mode?[e.isCountdownFinished?[e._t("finished",(function(){return[e._v(e._s(e.finishedText))]}))]:[e._v(" "+e._s(e.countdownText)+" ")]]:e._e()]})),e._t("suffix",(function(){return[e._v(e._s(e.suffix))]}))],2)}),tt=[];const rt="YYYY-MM-DD HH:mm:ss";function it(e){const t=String(e);return t.length<2?"0"+t:t}function nt(e){if(null===e||void 0===e||""===e)return null;if(e instanceof Date)return isNaN(e.getTime())?null:e;if("number"===typeof e){const t=e<1e12?1e3*e:e,r=new Date(t);return isNaN(r.getTime())?null:r}if("string"===typeof e){if(/^\d+$/.test(e)){const t=Number(e),r=t<1e12?1e3*t:t,i=new Date(r);return isNaN(i.getTime())?null:i}const t=e.replace(/-/g,"/"),r=new Date(t);return isNaN(r.getTime())?null:r}return null}function at(e,t){if(!e)return"";const r=t||rt,i={YYYY:e.getFullYear(),MM:it(e.getMonth()+1),DD:it(e.getDate()),HH:it(e.getHours()),mm:it(e.getMinutes()),ss:it(e.getSeconds()),SSS:String(e.getMilliseconds()).padStart(3,"0")};return r.replace(/YYYY|MM|DD|HH|mm|ss|SSS/g,e=>i[e])}var ot={name:"XtTime",props:{type:{type:String,default:"now",validator:e=>["now","countdown","text"].includes(e)},size:{type:String,default:"base",validator:e=>["extra-large","large","medium","base","small","extra-small"].includes(e)},typeColor:{type:String,default:"",validator:e=>["","primary","success","warning","danger"].includes(e)},bold:{type:Boolean,default:!1},format:{type:String,default:rt},prefix:{type:String,default:""},suffix:{type:String,default:""},emptyText:{type:String,default:"-"},hideEmpty:{type:Boolean,default:!1},interval:{type:Number,default:1e3,validator:e=>e>=100},value:{type:[String,Number,Date],default:""},targetTime:{type:[String,Number,Date],default:""},countdownFormat:{type:String,default:"DHMS",validator:e=>["DHMS","HMS","MS","SEC"].includes(e)},finishedText:{type:String,default:"已结束"}},data(){return{tick:0}},computed:{mode(){return this.type},parsedValue(){return nt(this.value)},parsedTarget(){return nt(this.targetTime)},displayText(){if(this.parsedValue)return at(this.parsedValue,this.format)},nowText(){this.tick;return at(new Date,this.format)},remainingMs(){if("countdown"!==this.mode)return 0;this.tick;if(!this.parsedTarget)return 0;const e=this.parsedTarget.getTime()-Date.now();return e>0?e:0},isCountdownFinished(){return"countdown"===this.mode&&this.parsedTarget&&this.remainingMs<=0},countdownText(){if(!this.parsedTarget)return this.emptyText;const e=Math.floor(this.remainingMs/1e3);if(e<=0)return this.finishedText;switch(this.countdownFormat){case"SEC":return e+"秒";case"MS":{const t=Math.floor(e/60),r=e%60;return`${it(t)}分${it(r)}秒`}case"HMS":{const t=Math.floor(e/3600),r=Math.floor(e%3600/60),i=e%60;return`${it(t)}时${it(r)}分${it(i)}秒`}case"DHMS":default:{const t=Math.floor(e/86400),r=Math.floor(e%86400/3600),i=Math.floor(e%3600/60),n=e%60;return`${t}天${it(r)}时${it(i)}分${it(n)}秒`}}},customStyle(){return{}}},watch:{type(){this.restartTimer()},interval(){this.restartTimer()}},mounted(){this.restartTimer()},beforeDestroy(){this.clearTimer()},activated(){this.restartTimer()},deactivated(){this.clearTimer()},methods:{restartTimer(){this.clearTimer(),"now"!==this.mode&&"countdown"!==this.mode||(this.tick++,this._timer=setInterval(()=>{this.tick++,"countdown"===this.mode&&this.parsedTarget&&this.remainingMs<=0&&(this.clearTimer(),this.$emit("finish"))},this.interval))},clearTimer(){this._timer&&(clearInterval(this._timer),this._timer=null)},handleClick(e){this.$emit("click",e)}}},lt=ot,st=Object(le["a"])(lt,et,tt,!1,null,null,null),ct=st.exports;ct.install=function(e){e.component(ct.name,ct)};var dt=ct,ht=(r("fd93"),function(){var e=this,t=e._self._c;return t("div",{staticClass:"xt-step-price",class:{"is-disabled":e.disabled}},[e.title||e.$slots.header?t("div",{staticClass:"xt-step-price__header"},[e.title?t("xt-text",{attrs:{bold:"",size:"medium"}},[e._v(e._s(e.title))]):e._e(),e._t("header"),e.disabled||e.isLimitReached?e._e():t("xt-button",{attrs:{type:"primary",size:"small",icon:"el-icon-plus",plain:""},on:{click:e.onAdd}},[e._v("新增"+e._s(e.stepName))]),e.isLimitReached?t("xt-text",{attrs:{size:"small","type-color":"info"}},[e._v("已达上限("+e._s(e.localItems.length)+"/"+e._s(e.limit)+")")]):e._e()],2):e._e(),t("div",{staticClass:"xt-step-price__list"},e._l(e.localItems,(function(r,i){return t("XtStepPriceItem",{key:i,attrs:{value:r,index:i,"is-first":0===i,"is-last":i===e.localItems.length-1,"items-length":e.localItems.length,removable:0!==i,"min-locked":0!==i,unit:e.unit,precision:e.precision,"step-name":e.stepName,step:e.step,"left-bracket":e.leftBracket,"right-bracket":e.rightBracket,"field-keys":e.fieldKeys,disabled:e.disabled,"allow-negative":e.allowNegative},on:{input:t=>e.onItemInput(t,i),"max-change":e.onMaxChange,"min-change":e.onMinChange,delete:e.onDelete,blur:e.onFieldBlur}})})),1),0===e.localItems.length?t("div",{staticClass:"xt-step-price__empty"},[t("span",[e._v("暂无数据,点击右上角「新增"+e._s(e.stepName)+"」开始配置")])]):e._e(),e.tip||e.$slots.tip?t("div",{staticClass:"xt-step-price__tip"},[e._t("tip",(function(){return[t("xt-text",{attrs:{size:"small","type-color":"warning"}},[e._v(e._s(e.tip))])]}))],2):e._e()])}),ut=[],pt=function(){var e=this,t=e._self._c;return t("div",{staticClass:"xt-step-price-item"},[t("div",{staticClass:"xt-step-price-item__range"},[t("span",{staticClass:"xt-step-price-item__bracket"},[e._v(e._s(e.finalLeftBracket))]),e.itemsLength>1?t("span",{staticClass:"xt-step-price-item__name"},[e._v("第"+e._s(e.index+1)+e._s(e.stepName))]):e._e(),t("span",{staticClass:"xt-step-price-item__bracket"},[e._v(e._s(e.finalRightBracket))]),t("xt-input",{staticClass:"xt-step-price-item__input",attrs:{disabled:e.disabled||e.minLocked,size:"small",placeholder:"下限"},on:{blur:t=>{e.onMinBlur(),e.onBlur(t)}},model:{value:e.minInput,callback:function(t){e.minInput=e._n(t)},expression:"minInput"}}),t("span",{staticClass:"xt-step-price-item__comma"},[e._v("-")]),e.isLast?t("span",{staticClass:"xt-step-price-item__infinity"},[e._v("+∞")]):t("xt-input",{staticClass:"xt-step-price-item__input",attrs:{type:"number",disabled:e.disabled,size:"small",placeholder:"上限"},on:{blur:t=>{e.onMaxBlur(),e.onBlur(t)}},model:{value:e.maxInput,callback:function(t){e.maxInput=e._n(t)},expression:"maxInput"}})],1),t("div",{staticClass:"xt-step-price-item__price"},[t("xt-input",{staticClass:"xt-step-price-item__input xt-step-price-item__input--price",attrs:{type:"number",disabled:e.disabled,size:"small",placeholder:"价格"},on:{blur:t=>{e.onPriceBlur(),e.onBlur(t)}},model:{value:e.priceInput,callback:function(t){e.priceInput=e._n(t)},expression:"priceInput"}}),t("span",{staticClass:"xt-step-price-item__unit"},[e._v(e._s(e.unit))])],1),!e.disabled&&e.removable&&e.itemsLength>1?t("xt-button",{staticClass:"xt-step-price-item__delete",attrs:{type:"text",icon:"el-icon-delete"},on:{click:e.onDelete}}):e._e()],1)},ft=[],mt={name:"XtStepPriceItem",props:{value:{type:Object,required:!0,default:()=>({min:0,max:null,price:0})},stepName:{type:String,default:"阶梯"},index:{type:Number,default:0},isFirst:{type:Boolean,default:!1},isLast:{type:Boolean,default:!1},itemsLength:{type:Number,default:1},removable:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},allowNegative:{type:Boolean,default:!1},minLocked:{type:Boolean,default:!1},unit:{type:String,default:"元"},precision:{type:Number,default:2},step:{type:Number,default:1},leftBracket:{type:String,default:"["},rightBracket:{type:String,default:null},fieldKeys:{type:Object,default:()=>({min:"min",max:"max",price:"price"})}},computed:{keyMin(){return this.fieldKeys&&this.fieldKeys.min||"min"},keyMax(){return this.fieldKeys&&this.fieldKeys.max||"max"},keyPrice(){return this.fieldKeys&&this.fieldKeys.price||"price"},finalRightBracket(){return null!==this.rightBracket&&void 0!==this.rightBracket&&""!==this.rightBracket?this.rightBracket:this.isLast?"]":")"},finalLeftBracket(){return null===this.leftBracket||void 0===this.leftBracket?"[":this.leftBracket}},data(){const{minVal:e,maxVal:t,priceVal:r}=this.getPriceItem(this.value);return{minInput:e,maxInput:t,priceInput:r}},watch:{value:{deep:!0,immediate:!0,handler(e){const{minVal:t,maxVal:r,priceVal:i}=this.getPriceItem(e);this.minInput=t,this.maxInput=r,this.priceInput=i}},isLast(e){if(e)this.maxInput=null;else{const e=this.safeNumber(this.minInput,0),t=this.value;this.maxInput=this.safeNumber(t&&t[this.keyMax],e+1)}}},methods:{getPriceItem(e){const t=e,r=this.safeNumber(t&&t[this.keyMin],0),i=this.isLast?null:this.safeNumber(t&&t[this.keyMax],r+1),n=this.safeNumber(t&&t[this.keyPrice],0);return{minVal:r,maxVal:i,priceVal:n}},safeNumber(e,t=0){if(null===e||void 0===e||""===e||e===1/0||e===-1/0)return t;const r=Number(e);return isNaN(r)?t:r},emitChange(e){const t={[this.keyMin]:this.minInput,[this.keyMax]:this.isLast?null:this.maxInput,[this.keyPrice]:this.priceInput,...e};this.$emit("input",t),this.$emit("change",t,this.index)},onMinBlur(){let e=this.safeNumber(this.minInput,0);0!==e&&(e=Number(e.toFixed(this.precision))),this.minInput=e,this.$emit("min-change",e,this.index),this.emitChange({[this.keyMin]:e})},onMaxBlur(){if(this.isLast)return;const e=this.safeNumber(this.minInput,0),t=this.safeNumber(this.step,1);let r=this.safeNumber(this.maxInput,e+t);r<=e&&(r=e+t),r=Number(r.toFixed(this.precision)),this.maxInput=r,this.$emit("max-change",r,this.index),this.emitChange({[this.keyMax]:r})},onPriceBlur(){const e=this.priceInput;if(null===e||void 0===e||""===e||isNaN(e))return this.priceInput="",void this.emitChange({[this.keyPrice]:""});let t=this.safeNumber(e,0);t<0&&!this.allowNegative&&(t=0),t=Number(t.toFixed(this.precision)),this.priceInput=t,this.emitChange({[this.keyPrice]:t})},onBlur(e){this.$emit("blur",e)},onDelete(){this.$emit("delete",this.index)}}},gt=mt,yt=Object(le["a"])(gt,pt,ft,!1,null,null,null),bt=yt.exports,vt={name:"XtStepPrice",components:{XtStepPriceItem:bt},inject:{elFormItem:{default:""}},computed:{keyMin(){return this.fieldKeys&&this.fieldKeys.min||"min"},keyMax(){return this.fieldKeys&&this.fieldKeys.max||"max"},keyPrice(){return this.fieldKeys&&this.fieldKeys.price||"price"},isLimitReached(){const e=Number(this.limit);return e>0&&this.localItems.length>=e}},props:{value:{type:Array,default:()=>[]},title:{type:String,default:""},unit:{type:String,default:"元"},stepName:{type:String,default:"阶梯"},precision:{type:Number,default:2},leftBracket:{type:String,default:"["},rightBracket:{type:String,default:null},fieldKeys:{type:Object,default:()=>({min:"min",max:"max",price:"price"})},limit:{type:Number,default:0},step:{type:Number,default:10},disabled:{type:Boolean,default:!1},allowNegative:{type:Boolean,default:!1},tip:{type:String,default:"区间左闭右闭 [min, max],最后一级为 [min, +∞),保证连续且不重叠。"},defaultFirst:{type:Boolean,default:!0}},data(){return{localItems:this.normalize(this.value)}},watch:{value:{deep:!0,immediate:!0,handler(e){this.localItems=this.normalize(e)}}},methods:{safeNumber(e,t=0){if(null===e||void 0===e||""===e||e===1/0||e===-1/0)return t;const r=Number(e);return isNaN(r)?t:r},cloneItems(e){return Array.isArray(e)?e.map(e=>{const t=e&&e[this.keyPrice];return{[this.keyMin]:this.safeNumber(e&&e[this.keyMin],0),[this.keyMax]:e&&null==e[this.keyMax]||e&&""===e[this.keyMax]?null:this.safeNumber(e[this.keyMax],null),[this.keyPrice]:null===t||void 0===t||""===t?"":this.safeNumber(t,0)}}):[]},normalize(e){const t=this.cloneItems(e);return 0===t.length&&this.defaultFirst&&t.push({[this.keyMin]:0,[this.keyMax]:null,[this.keyPrice]:0}),this.ensureContinuity(t),t},ensureContinuity(e){if(!Array.isArray(e)||0===e.length)return;e[0][this.keyMin]=0;const t=this.safeNumber(this.step,1);for(let r=0;r<e.length;r++){const i=e[r],n=e[r+1],a=this.safeNumber(i[this.keyMin],0);if(n){let e=this.safeNumber(i[this.keyMax],a+t);e<=a&&(e=a+t),e=Number(e.toFixed(this.precision)),i[this.keyMax]=e,n[this.keyMin]=e}else i[this.keyMax]=null;const o=i[this.keyPrice];i[this.keyPrice]=null===o||void 0===o||""===o?"":this.safeNumber(o,0)}},emit(){this.ensureContinuity(this.localItems);const e=this.cloneItems(this.localItems);this.$emit("input",e),this.$emit("change",e),this.dispatchFormEvent("el.form.change",e)},dispatchFormEvent(e,t){this.elFormItem&&this.elFormItem.$emit(e,t)},onFieldBlur(){this.dispatchFormEvent("el.form.blur",this.localItems)},validate(e){const t=this.localItems;if(!Array.isArray(t)||0===t.length)return e&&e(!1,[{field:"stepPrice",message:"请配置"+this.stepName,type:"error"}]),!1;const r=[];for(let i=0;i<t.length;i++){const e=t[i],n=e[this.keyPrice],a=e[this.keyMin],o=e[this.keyMax],l=this.safeNumber(n,0),s=this.safeNumber(a,0);if(null===n||void 0===n||""===n?r.push({field:`stepPrice[${i}].price`,message:`第${i+1}${this.stepName}价格不能为空`,type:"error"}):l<0&&!this.allowNegative&&r.push({field:`stepPrice[${i}].price`,message:`第${i+1}${this.stepName}价格不能为负数`,type:"error"}),null===a||void 0===a||""===a?r.push({field:`stepPrice[${i}].min`,message:`第${i+1}${this.stepName}下限不能为空`,type:"error"}):s<0&&!this.allowNegative&&r.push({field:`stepPrice[${i}].min`,message:`第${i+1}${this.stepName}下限不能为负数`,type:"error"}),this.isLast(i)||(null===o||void 0===o||""===o?r.push({field:`stepPrice[${i}].max`,message:`第${i+1}${this.stepName}上限不能为空`,type:"error"}):this.safeNumber(o,0)<=s&&r.push({field:`stepPrice[${i}].max`,message:`第${i+1}${this.stepName}上限必须大于下限`,type:"error"})),i>0){const e=t[i-1],n=e[this.keyMax];null!==n&&this.safeNumber(n,0)!==s&&r.push({field:`stepPrice[${i}].min`,message:`第${i+1}${this.stepName}下限必须等于上一${this.stepName}上限`,type:"error"})}}return r.length>0?(e&&e(!1,r),!1):(e&&e(!0),!0)},isLast(e){return e===this.localItems.length-1},onItemInput(e,t){const r=this.localItems[t];if(r&&e&&void 0!==e[this.keyPrice]){const t=e[this.keyPrice];if(null===t||void 0===t||""===t)r[this.keyPrice]="";else{let e=this.safeNumber(t,0);e=Number(e.toFixed(this.precision)),r[this.keyPrice]=e}this.emit()}},onMaxChange(e,t){const r=this.localItems[t];if(!r)return;const i=this.safeNumber(this.step,1);let n=this.safeNumber(e,this.safeNumber(r[this.keyMin],0)+i);n=Number(n.toFixed(this.precision)),r[this.keyMax]=n;const a=this.localItems[t+1];a&&(a[this.keyMin]=n),this.emit()},onMinChange(e,t){const r=this.localItems[t];if(r){if(0===t)r[this.keyMin]=0;else{let i=this.safeNumber(e,this.safeNumber(r[this.keyMin],0));0!==i&&(i=Number(i.toFixed(this.precision))),r[this.keyMin]=i;const n=this.localItems[t-1];n&&(n[this.keyMax]=i)}this.emit()}},onAdd(){const e=this.localItems,t=Number(this.limit);if(t>0&&e.length>=t)return;const r=this.safeNumber(this.step,1);if(0===e.length)return e.push({[this.keyMin]:0,[this.keyMax]:null,[this.keyPrice]:10}),void this.emit();const i=e[e.length-1],n=this.safeNumber(i[this.keyMin],0),a=n+r;let o=0;const l=[...e.slice(0,-1),{[this.keyMin]:n,[this.keyMax]:a,[this.keyPrice]:o},{[this.keyMin]:a,[this.keyMax]:null,[this.keyPrice]:o}];this.localItems=l,this.emit()},onDelete(e){const t=this.localItems;if(t.length<=1)return;if(0===e)return;const r=t[e],i=t[e-1],n=t[e+1];i&&n?i[this.keyMax]=null==r[this.keyMax]?null:Number(r[this.keyMax]):i&&!n?i[this.keyMax]=null:!i&&n&&(n[this.keyMin]=0),t.splice(e,1),this.emit()}}},_t=vt,xt=Object(le["a"])(_t,ht,ut,!1,null,null,null),wt=xt.exports;wt.install=function(e){e.component(wt.name,wt),e.component(bt.name,bt)};var Ct=wt;bt.install=function(e){e.component(bt.name,bt)};var St=bt,kt=(r("c759"),function(){var e=this,t=e._self._c;return t("div",{staticClass:"xt-map-wrapper"},[t("div",{ref:"mapContainer",staticClass:"xt-map-container",attrs:{"data-theme":e.mergedTheme}}),e.loading?t("div",{staticClass:"xt-map-loading"},[t("span",[e._v("地图加载中...")])]):e._e(),e.errorMessage?t("div",{staticClass:"xt-map-error"},[t("span",[e._v(e._s(e.errorMessage))])]):e._e(),e._t("overlay")],2)}),Tt=[];const Mt=new Map,zt=new Map,$t=(e,t={})=>{if("undefined"===typeof window)return Promise.reject(new Error("[XtMap] 非浏览器环境"));const{charset:r="utf-8",async:i=!0,timeout:n=3e4}=t;if(Mt.has(e))return Mt.get(e);if(zt.has(e))return zt.get(e);const a=new Promise((t,a)=>{const o=document.createElement("script");o.type="text/javascript",o.src=e,o.charset=r,o.async=i;let l=null,s=!1;const c=()=>{s=!0,l&&clearTimeout(l),o.onload=null,o.onerror=null};o.onload=()=>{s||(c(),zt.delete(e),Mt.set(e,Promise.resolve(o)),t(o))},o.onerror=t=>{s||(c(),zt.delete(e),a(new Error("[XtMap] 脚本加载失败: "+e)))},n>0&&(l=setTimeout(()=>{s||(c(),zt.delete(e),a(new Error("[XtMap] 脚本加载超时: "+e)))},n)),document.head.appendChild(o)});return zt.set(e,a),a},It=()=>{Mt.clear(),zt.clear()},Lt=e=>"undefined"!==typeof window&&void 0!==window[e];const At={standard:"standard",satellite:"satellite",hybrid:"hybrid",traffic:"traffic"};class Nt{constructor(e,t={}){this.container=e,this.options=t,this.mapInstance=null,this.mapType=t.mapType||"standard",this.theme=t.theme||"light",this.center=t.center||[116.397428,39.90923],this.zoom=t.zoom||11,this.apiKey=t.apiKey||"",this.apiUrl=t.apiUrl||null,this.plugins=t.plugins||[],this.eventHandlers=new Map,this.ready=!1,this._mapTypeMap={...At}}getScriptUrl(){throw new Error("[XtMap] 子类必须实现 getScriptUrl()")}isSdkLoaded(){throw new Error("[XtMap] 子类必须实现 isSdkLoaded()")}beforeLoadScript(){}async createMap(){throw new Error("[XtMap] 子类必须实现 createMap()")}async init(){if(!this.container)throw new Error("[XtMap] 缺少容器元素");if(!this.isSdkLoaded()){this.beforeLoadScript();const e=this.getScriptUrl();if(!e)throw new Error("[XtMap] 缺少 API URL,请配置 apiKey 或 apiUrl");await $t(e),await this._waitForSdkReady()}return await this.createMap(),this.ready=!0,this.mapInstance}async _waitForSdkReady(){return new Promise(e=>{let t=0;const r=100,i=()=>{this.isSdkLoaded()||t>=r?e():(t++,setTimeout(i,100))};i()})}getNativeMapType(e){return this._mapTypeMap[e]||this._mapTypeMap.standard}setMapType(e){this.mapType=e,this.ready&&this.mapInstance&&this._applyMapType(e)}_applyMapType(e){}setTheme(e){this.theme=e,this.ready&&this.mapInstance&&this._applyTheme(e)}_applyTheme(e){}setCenter(e){this.center=e,this.ready&&this.mapInstance&&this._applyCenter(e)}_applyCenter(e){}setZoom(e){this.zoom=e,this.ready&&this.mapInstance&&this._applyZoom(e)}_applyZoom(e){}getCenter(){return this.center}getZoom(){return this.zoom}getNativeMap(){return this.mapInstance}on(e,t){"function"===typeof t&&(this.eventHandlers.set(e,t),this.ready&&this.mapInstance&&this._bindEvent(e,t))}_bindEvent(e,t){}off(e){const t=this.eventHandlers.get(e);t&&this.ready&&this.mapInstance&&this._unbindEvent(e,t),this.eventHandlers.delete(e)}_unbindEvent(e,t){}resize(){this.ready&&this.mapInstance&&this._applyResize()}_applyResize(){}destroy(){if(this.eventHandlers.clear(),this.mapInstance&&"function"===typeof this.mapInstance.destroy)try{this.mapInstance.destroy()}catch(e){}this.mapInstance=null,this.ready=!1}}const Ot={standard:"amap",satellite:"satellite",hybrid:"satellite",traffic:"traffic"},Et={light:"amap://styles/normal",dark:"amap://styles/dark"};class Dt extends Nt{constructor(e,t={}){super(e,t),this._mapTypeMap={...Ot},this._trafficLayer=null,this._satelliteLayer=null,this._roadnetLayer=null,this._currentLayers=[]}getScriptUrl(){return this.apiUrl?this.apiUrl:this.apiKey?`https://webapi.amap.com/maps?v=2.0&key=${encodeURIComponent(this.apiKey)}&plugin=AMap.Scale,AMap.ToolBar`:(console.warn("[XtMap] 高德地图需要配置 apiKey"),"")}beforeLoadScript(){const e=this.options.securityJsCode||"undefined"!==typeof window&&window._AMapSecurityConfig&&window._AMapSecurityConfig.securityJsCode||"";e&&"undefined"!==typeof window&&(window._AMapSecurityConfig={securityJsCode:e})}isSdkLoaded(){return Lt("AMap")&&"function"===typeof window.AMap}async createMap(){const e=window.AMap;if(!e)throw new Error("[XtMap] 高德地图 SDK 未加载");const t={center:this.center,zoom:this.zoom,mapStyle:Et[this.theme]||Et.light,viewMode:"2D",resizeEnable:!0};this.mapInstance=new e.Map(this.container,t),this._applyMapType(this.mapType),await new Promise(e=>{this.mapInstance.on("complete",()=>e()),setTimeout(e,1500)});for(const[r,i]of this.eventHandlers.entries())this._bindEvent(r,i)}_applyMapType(e){if(!this.mapInstance)return;const t=window.AMap;if(t){this._clearLayers();try{this.mapInstance.setMapStyle(Et[this.theme]||Et.light),"satellite"===e?(this._satelliteLayer=new t.TileLayer.Satellite,this.mapInstance.add(this._satelliteLayer),this._currentLayers.push(this._satelliteLayer)):"hybrid"===e?(this._satelliteLayer=new t.TileLayer.Satellite,this._roadnetLayer=new t.TileLayer.RoadNet,this.mapInstance.add([this._satelliteLayer,this._roadnetLayer]),this._currentLayers.push(this._satelliteLayer,this._roadnetLayer)):"traffic"===e&&(this._trafficLayer=new t.TileLayer.Traffic({autoRefresh:!0,interval:180}),this.mapInstance.add(this._trafficLayer),this._currentLayers.push(this._trafficLayer))}catch(r){console.warn("[XtMap] 设置地图类型失败:",r)}}}_clearLayers(){if(this.mapInstance){try{this._currentLayers.length>0&&this.mapInstance.remove(this._currentLayers)}catch(e){}this._currentLayers=[],this._trafficLayer=null,this._satelliteLayer=null,this._roadnetLayer=null}}_applyTheme(e){if(this.mapInstance)try{this.mapInstance.setMapStyle(Et[e]||Et.light),this._applyMapType(this.mapType)}catch(t){console.warn("[XtMap] 设置主题失败:",t)}}_applyCenter(e){if(this.mapInstance)try{this.mapInstance.setCenter(e)}catch(t){}}_applyZoom(e){if(this.mapInstance)try{this.mapInstance.setZoom(e)}catch(t){}}getCenter(){if(this.mapInstance&&this.mapInstance.getCenter){const e=this.mapInstance.getCenter();return[e.lng,e.lat]}return this.center}getZoom(){return this.mapInstance&&this.mapInstance.getZoom?this.mapInstance.getZoom():this.zoom}_bindEvent(e,t){if(this.mapInstance)try{const r={click:"click",moveend:"moveend",zoomend:"zoomend",zoomchange:"zoomchange",mapmove:"mapmove",complete:"complete",resize:"resize"},i=r[e]||e;this.mapInstance.on(i,e=>{const r={originalEvent:e,lnglat:e&&e.lnglat?[e.lnglat.lng,e.lnglat.lat]:null};t(r)})}catch(r){console.warn("[XtMap] 事件绑定失败:",e,r)}}_unbindEvent(e,t){if(this.mapInstance)try{this.mapInstance.off(e,t)}catch(r){}}_applyResize(){if(this.mapInstance&&this.mapInstance.resize)try{this.mapInstance.resize()}catch(e){}}destroy(){this._clearLayers(),super.destroy()}}const Pt={standard:"vec",satellite:"img",hybrid:"img",traffic:"vec"},Bt={light:"none",dark:"invert(1) hue-rotate(180deg) saturate(1.2) brightness(0.95)"};class Rt extends Nt{constructor(e,t={}){super(e,t),this._mapTypeMap={...Pt},this._layerType=t.tiandituLayerType||"vec",this._currentLayer=null,this._annotationLayer=null}getScriptUrl(){return this.apiUrl?this.apiUrl:this.apiKey?"https://api.tianditu.gov.cn/api?v=4.0&tk="+encodeURIComponent(this.apiKey):(console.warn("[XtMap] 天地图需要配置 apiKey (tk)"),"")}isSdkLoaded(){return Lt("T")&&"object"===typeof window.T&&window.T.Map}async createMap(){const e=window.T;if(!e||!e.Map)throw new Error("[XtMap] 天地图 SDK 未加载");const t={center:new e.LngLat(this.center[0],this.center[1]),zoom:this.zoom};this.mapInstance=new e.Map(this.container,t),this._applyMapType(this.mapType),this._applyTheme(this.theme),await new Promise(e=>{setTimeout(e,500)});for(const[r,i]of this.eventHandlers.entries())this._bindEvent(r,i)}_applyMapType(e){if(!this.mapInstance)return;const t=window.T;if(t)try{this._mapTypeMap[e];"standard"===e?this.mapInstance.setMapType(window.TMAP_NORMAL_MAP||1):"satellite"===e?this.mapInstance.setMapType(window.TMAP_SATELLITE_MAP||2):"hybrid"===e?this.mapInstance.setMapType(window.TMAP_HYBRID_MAP||3):this.mapInstance.setMapType(window.TMAP_NORMAL_MAP||1)}catch(r){console.warn("[XtMap] 天地图切换地图类型失败:",r)}}_applyTheme(e){if(!this.container)return;const t=Bt[e]||"none",r=this.container.querySelectorAll("img");r.forEach(e=>{e.style.filter=t,e.style.webkitFilter=t}),this.container.setAttribute("data-map-theme",e),this._setupThemeObserver(e)}_setupThemeObserver(e){if(this._themeObserver&&this._themeObserver.disconnect(),"dark"!==e)return;const t=Bt[e];this._themeObserver=new MutationObserver(e=>{e.forEach(e=>{e.addedNodes.forEach(e=>{if(1===e.nodeType)if("IMG"===e.tagName)e.style.filter=t,e.style.webkitFilter=t;else if(e.querySelectorAll){const r=e.querySelectorAll("img");r.forEach(e=>{e.style.filter=t,e.style.webkitFilter=t})}})})});try{this._themeObserver.observe(this.container,{childList:!0,subtree:!0})}catch(r){}}_applyCenter(e){if(this.mapInstance&&window.T)try{this.mapInstance.centerAndZoom(new window.T.LngLat(e[0],e[1]),this.zoom)}catch(t){}}_applyZoom(e){if(this.mapInstance)try{this.mapInstance.setZoom(e)}catch(t){}}getCenter(){if(this.mapInstance&&this.mapInstance.getCenter){const e=this.mapInstance.getCenter();if(e&&void 0!==e.getLng)return[e.getLng(),e.getLat()]}return this.center}getZoom(){return this.mapInstance&&this.mapInstance.getZoom?this.mapInstance.getZoom():this.zoom}_bindEvent(e,t){if(this.mapInstance)try{const r={click:"click",moveend:"moveend",zoomend:"zoomend",zoomchange:"zoomend"},i=r[e]||e;this.mapInstance.addEventListener(i,e=>{const r={originalEvent:e,lnglat:e&&e.lnglat?[e.lnglat.getLng(),e.lnglat.getLat()]:null};t(r)})}catch(r){console.warn("[XtMap] 天地图事件绑定失败:",e,r)}}_unbindEvent(e,t){if(this.mapInstance)try{this.mapInstance.removeEventListener(e,t)}catch(r){}}_applyResize(){if(this.mapInstance&&this.mapInstance.checkResize)try{this.mapInstance.checkResize()}catch(e){}}destroy(){if(this._themeObserver&&(this._themeObserver.disconnect(),this._themeObserver=null),this.mapInstance&&"function"===typeof this.mapInstance.clearOverLays)try{this.mapInstance.clearOverLays()}catch(e){}super.destroy()}}const Ft={standard:"BMAP_NORMAL_MAP",satellite:"BMAP_SATELLITE_MAP",hybrid:"BMAP_HYBRID_MAP",traffic:"BMAP_NORMAL_MAP"},jt={light:{style:"normal"},dark:{style:"dark"}};class Xt extends Nt{constructor(e,t={}){super(e,t),this._mapTypeMap={...Ft},this._coordType=t.baiduCoordType||"bd09ll",this._trafficLayer=null,this._callbackName=null}getScriptUrl(){return this.apiUrl?this.apiUrl:this.apiKey?`https://api.map.baidu.com/api?v=3.0&ak=${encodeURIComponent(this.apiKey)}&callback=${this._callbackName}`:(console.warn("[XtMap] 百度地图需要配置 apiKey (ak)"),"")}beforeLoadScript(){this._callbackName=`__xt_map_baidu_${Date.now()}_${Math.floor(1e5*Math.random())}`,"undefined"!==typeof window&&(window[this._callbackName]=()=>{})}isSdkLoaded(){return Lt("BMap")&&"function"===typeof window.BMap}async createMap(){const e=window.BMap;if(!e)throw new Error("[XtMap] 百度地图 SDK 未加载");const t={enableMapClick:!1};this.mapInstance=new e.Map(this.container,t),this.mapInstance.centerAndZoom(new e.Point(this.center[0],this.center[1]),this.zoom),this.mapInstance.enableScrollWheelZoom(!0),this._applyMapType(this.mapType),this._applyTheme(this.theme),await new Promise(e=>setTimeout(e,500));for(const[r,i]of this.eventHandlers.entries())this._bindEvent(r,i)}_applyMapType(e){if(this.mapInstance&&window.BMap)try{if(this._trafficLayer){try{this.mapInstance.removeTileLayer(this._trafficLayer)}catch(t){}this._trafficLayer=null}if("satellite"===e)this.mapInstance.setMapType(window.BMAP_SATELLITE_MAP||1);else if("hybrid"===e)this.mapInstance.setMapType(window.BMAP_HYBRID_MAP||2);else if("traffic"===e){this.mapInstance.setMapType(window.BMAP_NORMAL_MAP||0);try{const e=window.BMap;this._trafficLayer=new e.TrafficLayer,this.mapInstance.addTileLayer(this._trafficLayer)}catch(t){console.warn("[XtMap] 百度地图加载路况图层失败:",t)}}else this.mapInstance.setMapType(window.BMAP_NORMAL_MAP||0)}catch(t){console.warn("[XtMap] 百度地图切换地图类型失败:",t)}}_applyTheme(e){if(this.mapInstance&&window.BMap)try{const t=jt[e]||jt.light;if(this.mapInstance.setMapStyleV2)this.mapInstance.setMapStyleV2({styleId:"dark"===t.style?"midnight":""});else if(this.mapInstance.setMapStyle){const t="dark"===e?this._getDarkStyleJson():null;t&&this.mapInstance.setMapStyle({styleJson:t})}}catch(t){console.warn("[XtMap] 百度地图设置主题失败:",t)}}_getDarkStyleJson(){return[{featureType:"land",elementType:"geometry",stylers:{color:"#1a1a1a"}},{featureType:"water",elementType:"geometry",stylers:{color:"#0a1a2a"}},{featureType:"green",elementType:"geometry",stylers:{color:"#0a2a1a"}},{featureType:"building",elementType:"geometry",stylers:{color:"#2a2a2a"}},{featureType:"highway",elementType:"geometry",stylers:{color:"#3a3a3a"}},{featureType:"highway",elementType:"geometry.stroke",stylers:{color:"#4a4a4a"}},{featureType:"arterial",elementType:"geometry",stylers:{color:"#333333"}},{featureType:"arterial",elementType:"geometry.stroke",stylers:{color:"#3d3d3d"}},{featureType:"local",elementType:"geometry",stylers:{color:"#2a2a2a"}},{featureType:"railway",elementType:"geometry",stylers:{color:"#3a3a3a"}},{featureType:"subway",elementType:"geometry",stylers:{color:"#3a3a3a"}},{featureType:"boundary",elementType:"geometry",stylers:{color:"#666666"}},{featureType:"district",elementType:"labels.text.fill",stylers:{color:"#888888"}},{featureType:"poi",elementType:"labels",stylers:{visibility:"off"}}]}_applyCenter(e){if(this.mapInstance&&window.BMap)try{this.mapInstance.centerAndZoom(new window.BMap.Point(e[0],e[1]),this.zoom)}catch(t){}}_applyZoom(e){if(this.mapInstance)try{this.mapInstance.setZoom(e)}catch(t){}}getCenter(){if(this.mapInstance&&this.mapInstance.getCenter){const e=this.mapInstance.getCenter();if(e)return[e.lng,e.lat]}return this.center}getZoom(){return this.mapInstance&&this.mapInstance.getZoom?this.mapInstance.getZoom():this.zoom}_bindEvent(e,t){if(this.mapInstance)try{const r={click:"click",moveend:"moveend",zoomend:"zoomend",zoomchange:"zoomend",mapmove:"movestart"},i=r[e]||e;this.mapInstance.addEventListener(i,e=>{const r={originalEvent:e,lnglat:e&&e.point?[e.point.lng,e.point.lat]:null};t(r)})}catch(r){console.warn("[XtMap] 百度地图事件绑定失败:",e,r)}}_unbindEvent(e,t){if(this.mapInstance)try{this.mapInstance.removeEventListener(e,t)}catch(r){}}_applyResize(){if(this.mapInstance&&this.mapInstance.enableResize)try{"function"===typeof this.mapInstance.checkResize&&this.mapInstance.checkResize()}catch(e){}}destroy(){if(this._callbackName&&"undefined"!==typeof window)try{delete window[this._callbackName]}catch(e){}super.destroy()}}const Ht={amap:Dt,tianditu:Rt,baidu:Xt},Kt=e=>Ht[e]||Dt;const Vt=["amap","tianditu","baidu"],Ut=["standard","satellite","hybrid","traffic"],Wt=["light","dark"],Yt={provider:"amap",apiKey:"",apiUrl:null,mapType:"standard",theme:"light",center:[116.397428,39.90923],zoom:11,plugins:[],securityJsCode:null,tiandituLayerType:"vec",baiduCoordType:"bd09ll"};let qt={...Yt};const Zt=[],Gt=(e,t)=>{Zt.forEach(r=>{try{r(e,t)}catch(i){console.warn("[XtMap] 配置变更监听异常:",i)}})},Jt=()=>({...qt}),Qt=e=>{Vt.includes(e)?(qt.provider=e,Gt("provider",e)):console.warn(`[XtMap] 无效的地图提供商: ${e},可选: ${Vt.join(", ")}`)},er=e=>{qt.apiKey=e,Gt("apiKey",e)},tr=e=>{qt.apiUrl=e,Gt("apiUrl",e)},rr=e=>{Ut.includes(e)?(qt.mapType=e,Gt("mapType",e)):console.warn(`[XtMap] 无效的地图类型: ${e},可选: ${Ut.join(", ")}`)},ir=e=>{Wt.includes(e)?(qt.theme=e,Gt("theme",e)):console.warn(`[XtMap] 无效的主题: ${e},可选: ${Wt.join(", ")}`)},nr=e=>{Array.isArray(e)&&2===e.length?(qt.center=e,Gt("center",e)):console.warn("[XtMap] center 必须是 [lng, lat] 数组")},ar=e=>{const t=Number(e);isNaN(t)?console.warn("[XtMap] zoom 必须是数字"):(qt.zoom=t,Gt("zoom",t))},or=e=>{Array.isArray(e)?(qt.plugins=e,Gt("plugins",e)):console.warn("[XtMap] plugins 必须是数组")},lr=e=>{qt.securityJsCode=e,"undefined"!==typeof window&&e&&(window._AMapSecurityConfig={securityJsCode:e,...window._AMapSecurityConfig||{}}),Gt("securityJsCode",e)},sr=()=>qt.provider,cr=()=>qt.apiKey,dr=()=>qt.apiUrl,hr=()=>qt.mapType,ur=()=>qt.theme,pr=()=>qt.center,fr=()=>qt.zoom,mr=()=>qt.plugins,gr=e=>{if("function"===typeof e)return Zt.push(e),()=>{const t=Zt.indexOf(e);t>-1&&Zt.splice(t,1)}};var yr={name:"XtMap",props:{provider:{type:String,default:"",validator:e=>""===e||Vt.includes(e)},apiKey:{type:String,default:""},apiUrl:{type:String,default:""},mapType:{type:String,default:"",validator:e=>""===e||Ut.includes(e)},theme:{type:String,default:"",validator:e=>""===e||Wt.includes(e)},center:{type:Array,default:()=>null},zoom:{type:Number,default:null},plugins:{type:Array,default:()=>[]},width:{type:String,default:"100%"},height:{type:String,default:"400px"},securityJsCode:{type:String,default:""},tiandituLayerType:{type:String,default:"vec"},baiduCoordType:{type:String,default:"bd09ll"}},data(){return{loading:!0,errorMessage:"",adapter:null,_unsubscribeConfig:null}},computed:{mergedProvider(){return this.provider||sr()||"amap"},mergedApiKey(){return this.apiKey||cr()||""},mergedApiUrl(){return this.apiUrl||dr()||""},mergedMapType(){return this.mapType||hr()||"standard"},mergedTheme(){return this.theme||ur()||"light"},mergedCenter(){return this.center||pr()||[116.397428,39.90923]},mergedZoom(){return null!==this.zoom?this.zoom:fr()},mergedSecurityJsCode(){return this.securityJsCode||Jt().securityJsCode||""},mergedPlugins(){return this.plugins.length>0?this.plugins:Jt().plugins||[]}},watch:{mergedProvider:{handler(){this.$nextTick(()=>this.rebuildMap())}},mergedApiKey:{handler(){this.$nextTick(()=>this.rebuildMap())}},mergedMapType:{handler(e){this.adapter&&this.adapter.setMapType(e)}},mergedTheme:{handler(e){this.adapter&&this.adapter.setTheme(e),this.$refs.mapContainer&&this.$refs.mapContainer.setAttribute("data-theme",e)}},mergedCenter:{handler(e){this.adapter&&this.adapter.setCenter(e)}},mergedZoom:{handler(e){this.adapter&&this.adapter.setZoom(e)}},width:{handler(){this.$nextTick(()=>{this.adapter&&this.adapter.resize()})}},height:{handler(){this.$nextTick(()=>{this.adapter&&this.adapter.resize()})}},securityJsCode:{handler(e){e&&(lr(e),"amap"===this.mergedProvider&&this.adapter&&this.adapter.ready&&this.$nextTick(()=>this.rebuildMap()))}}},mounted(){this._unsubscribeConfig=gr((e,t)=>{this.provider||"provider"!==e||this.$nextTick(()=>this.rebuildMap()),this.apiKey||"apiKey"!==e||this.$nextTick(()=>this.rebuildMap()),this.apiUrl||"apiUrl"!==e||this.$nextTick(()=>this.rebuildMap()),!this.theme&&"theme"===e&&this.adapter&&this.adapter.setTheme(t),!this.mapType&&"mapType"===e&&this.adapter&&this.adapter.setMapType(t),!this.center&&"center"===e&&this.adapter&&this.adapter.setCenter(t),null===this.zoom&&"zoom"===e&&this.adapter&&this.adapter.setZoom(t)}),this.securityJsCode&&lr(this.securityJsCode),this.$nextTick(()=>this.initMap()),this._onWindowResize=()=>{this.adapter&&this.adapter.resize()},"undefined"!==typeof window&&window.addEventListener("resize",this._onWindowResize)},beforeDestroy(){this.destroyMap(),this._unsubscribeConfig&&this._unsubscribeConfig(),this._onWindowResize&&"undefined"!==typeof window&&window.removeEventListener("resize",this._onWindowResize)},methods:{async initMap(){const e=this.$refs.mapContainer;if(!e)return;e.style.width=this.width,e.style.height=this.height,this.securityJsCode&&lr(this.securityJsCode),this.loading=!0,this.errorMessage="";const t=Kt(this.mergedProvider);this.adapter=new t(e,{apiKey:this.mergedApiKey,apiUrl:this.mergedApiUrl,mapType:this.mergedMapType,theme:this.mergedTheme,center:this.mergedCenter,zoom:this.mergedZoom,plugins:this.mergedPlugins,securityJsCode:this.mergedSecurityJsCode,tiandituLayerType:this.tiandituLayerType,baiduCoordType:this.baiduCoordType});try{await this.adapter.init(),this.loading=!1,this._bindAdapterEvents(),this.$emit("ready",{provider:this.mergedProvider,map:this.adapter.getNativeMap(),adapter:this.adapter})}catch(r){this.loading=!1,this.errorMessage=r.message||"地图初始化失败",this.$emit("error",r)}},rebuildMap(){this.destroyMap(),"function"===typeof It&&It(),this.$nextTick(()=>this.initMap())},destroyMap(){this.adapter&&(this.adapter.destroy(),this.adapter=null)},_bindAdapterEvents(){if(!this.adapter)return;const e=["click","moveend","zoomend","zoomchange","mapmove"];e.forEach(e=>{this.adapter.on(e,t=>{this.$emit(e,t)})})},setCenter(e){this.adapter&&this.adapter.setCenter(e)},setZoom(e){this.adapter&&this.adapter.setZoom(e)},setMapType(e){this.adapter&&this.adapter.setMapType(e)},setTheme(e){this.adapter&&this.adapter.setTheme(e)},getCenter(){return this.adapter?this.adapter.getCenter():this.mergedCenter},getZoom(){return this.adapter?this.adapter.getZoom():this.mergedZoom},getNativeMap(){return this.adapter?this.adapter.getNativeMap():null},resize(){this.adapter&&this.adapter.resize()},on(e,t){this.adapter&&this.adapter.on(e,t)},off(e){this.adapter&&this.adapter.off(e)},rebuild(){this.rebuildMap()}}},br=yr,vr=Object(le["a"])(br,kt,Tt,!1,null,null,null),_r=vr.exports;_r.install=function(e){e.component(_r.name,_r)};var xr=_r,wr=function(){var e=this,t=e._self._c;return t("div",{class:["xt-map-provider",{"xt-map-provider--dark":"dark"===e.mergedTheme}],style:e.wrapperStyle},[e._t("default")],2)},Cr=[],Sr={name:"XtMapProvider",props:{provider:{type:String,default:"",validator:e=>""===e||Vt.includes(e)},apiKey:{type:String,default:""},apiUrl:{type:String,default:""},mapType:{type:String,default:"",validator:e=>""===e||Ut.includes(e)},theme:{type:String,default:"",validator:e=>""===e||Wt.includes(e)},center:{type:Array,default:()=>null},zoom:{type:Number,default:null},plugins:{type:Array,default:()=>[]},securityJsCode:{type:String,default:""},tag:{type:String,default:"div"}},data(){return{mergedTheme:this.theme||ur()||"light"}},computed:{wrapperStyle(){return{}}},watch:{provider:{immediate:!0,handler(e){e&&Qt(e)}},apiKey:{immediate:!0,handler(e){e&&er(e)}},apiUrl:{immediate:!0,handler(e){e&&tr(e)}},mapType:{immediate:!0,handler(e){e&&rr(e)}},theme:{immediate:!0,handler(e){e&&(ir(e),this.mergedTheme=e)}},center:{immediate:!0,handler(e){e&&nr(e)}},zoom:{immediate:!0,handler(e){null!==e&&void 0!==e&&ar(e)}},plugins:{immediate:!0,handler(e){e&&e.length>0&&or(e)}},securityJsCode:{immediate:!0,handler(e){e&&lr(e)}}},provide(){return{xtMapConfig:{getProvider:()=>this.provider||sr(),getApiKey:()=>this.apiKey||cr(),getApiUrl:()=>this.apiUrl||dr(),getMapType:()=>this.mapType||hr(),getTheme:()=>this.theme||ur(),getCenter:()=>this.center||pr(),getZoom:()=>null!==this.zoom?this.zoom:fr(),getPlugins:()=>this.plugins.length>0?this.plugins:mr(),getConfig:()=>({provider:this.provider||sr(),apiKey:this.apiKey||cr(),apiUrl:this.apiUrl||dr(),mapType:this.mapType||hr(),theme:this.theme||ur(),center:this.center||pr(),zoom:null!==this.zoom?this.zoom:fr()})}}},created(){this._unsubscribe=gr((e,t)=>{"theme"===e&&(this.mergedTheme=this.theme||t)})},beforeDestroy(){this._unsubscribe&&this._unsubscribe()}},kr=Sr,Tr=(r("3cef"),Object(le["a"])(kr,wr,Cr,!1,null,"16f243b0",null)),Mr=Tr.exports;Mr.install=function(e){e.component(Mr.name,Mr)};var zr=Mr,$r=(r("4202"),function(){var e=this,t=e._self._c;return t("div",{staticClass:"xt-grid-box",style:e.styleAttrs},[e._t("default")],2)}),Ir=[],Lr={name:"XtGridBox",props:{columns:{type:[String,Array,Number],default:"1fr"},rows:{type:[String,Array],default:"auto"},gap:{type:String,default:""},rowGap:{type:String,default:""},colGap:{type:String,default:""},flow:{type:String,default:"row",validator:e=>["row","column","row dense","column dense"].includes(e)},areas:{type:[String,Array],default:""},align:{type:String,default:"stretch",validator:e=>["start","end","center","stretch","baseline"].includes(e)},justify:{type:String,default:"start",validator:e=>["start","end","center","space-between","space-around","space-evenly","stretch"].includes(e)},responsive:{type:Object,default:()=>({})},autoFlow:{type:String,default:""}},computed:{styleAttrs(){const e={display:"grid"};return"number"===typeof this.columns?e.gridTemplateColumns=`repeat(${this.columns}, 1fr)`:Array.isArray(this.columns)?e.gridTemplateColumns=this.columns.join(" "):e.gridTemplateColumns=this.columns,Array.isArray(this.rows)?e.gridTemplateRows=this.rows.join(" "):e.gridTemplateRows=this.rows,this.gap?e.gap=this.gap:(this.rowGap&&(e.rowGap=this.rowGap),this.colGap&&(e.columnGap=this.colGap)),this.flow&&(e.gridAutoFlow=this.flow),this.areas&&(Array.isArray(this.areas)?e.gridTemplateAreas=this.areas.map(e=>`"${e}"`).join(" "):e.gridTemplateAreas=this.areas),this.align&&(e.placeItems=this.align),this.justify&&(e.placeContent=this.justify),Object.keys(this.responsive).length>0&&this.addResponsiveStyles(e),e}},methods:{addResponsiveStyles(e){const t={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)"};Object.entries(this.responsive).forEach(([e,r])=>{if(t[e]){t[e]}})}}},Ar=Lr,Nr=Object(le["a"])(Ar,$r,Ir,!1,null,null,null),Or=Nr.exports;Or.install=function(e){e.component(Or.name,Or)};var Er=Or,Dr=function(){var e=this,t=e._self._c;return t("div",{staticClass:"xt-grid-item",style:e.styleAttrs},[e._t("default")],2)},Pr=[],Br={name:"XtGridItem",props:{span:{type:Number,default:1,validator:e=>e>=1},rowSpan:{type:Number,default:1,validator:e=>e>=1},start:{type:Number,default:0,validator:e=>e>=0},rowStart:{type:Number,default:0,validator:e=>e>=0},area:{type:String,default:""},justifySelf:{type:String,default:"auto",validator:e=>["auto","start","end","center","stretch"].includes(e)},alignSelf:{type:String,default:"auto",validator:e=>["auto","start","end","center","stretch","baseline"].includes(e)},customClass:{type:String,default:""}},computed:{styleAttrs(){const e={};return this.span>1&&(e.gridColumnEnd="span "+this.span),this.rowSpan>1&&(e.gridRowEnd="span "+this.rowSpan),this.start>0&&(e.gridColumnStart=this.start),this.rowStart>0&&(e.gridRowStart=this.rowStart),this.area&&(e.gridArea=this.area),this.justifySelf&&"auto"!==this.justifySelf&&(e.justifySelf=this.justifySelf),this.alignSelf&&"auto"!==this.alignSelf&&(e.alignSelf=this.alignSelf),e}}},Rr=Br,Fr=(r("b574"),Object(le["a"])(Rr,Dr,Pr,!1,null,"160dc1ff",null)),jr=Fr.exports;jr.install=function(e){e.component(jr.name,jr)};var Xr=jr,Hr=(r("2e12"),function(){var e=this,t=e._self._c;return t("div",{staticClass:"xt-progress",class:["xt-progress--"+e.type,"xt-progress--"+e.size]},["line"===e.type?t("div",{staticClass:"xt-progress__bar"},[t("div",{staticClass:"xt-progress__bar-inner",style:{width:e.percentage+"%",backgroundColor:e.color}},[t("transition",{attrs:{name:"xt-progress-fade"}},[e.showText?t("div",{staticClass:"xt-progress__bar-text"},[e._v(e._s(e.percentage)+"%")]):e._e()])],1)]):"circle"===e.type?t("div",{staticClass:"xt-progress__circle"},[t("svg",{staticClass:"xt-progress__circle-svg",attrs:{width:e.circleSize,height:e.circleSize}},[t("circle",{staticClass:"xt-progress__circle-bg",attrs:{cx:e.circleSize/2,cy:e.circleSize/2,r:e.circleRadius,fill:"none",stroke:e.bgColor,"stroke-width":e.strokeWidth}}),t("circle",{staticClass:"xt-progress__circle-bar",attrs:{cx:e.circleSize/2,cy:e.circleSize/2,r:e.circleRadius,fill:"none",stroke:e.color,"stroke-width":e.strokeWidth,"stroke-dasharray":e.circleLength,"stroke-dashoffset":e.circleOffset,"stroke-linecap":"round",transform:"rotate(-90 ${circleSize / 2} ${circleSize / 2})"}})]),e.showText?t("div",{staticClass:"xt-progress__circle-text"},[t("span",{staticClass:"xt-progress__circle-percent"},[e._v(e._s(e.percentage)+"%")])]):e._e()]):e._e(),e.showText&&"line"===e.type?t("div",{staticClass:"xt-progress__text"},[e._v(e._s(e.percentage)+"%")]):e._e()])}),Kr=[],Vr={name:"XtProgress",props:{percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},type:{type:String,default:"line",validator:e=>["line","circle"].includes(e)},size:{type:String,default:"medium",validator:e=>["small","medium","large"].includes(e)},color:{type:String,default:"#1890ff"},bgColor:{type:String,default:"#ebeef5"},showText:{type:Boolean,default:!0},strokeWidth:{type:Number,default:6},circleSize:{type:Number,default:120}},computed:{circleRadius(){return(this.circleSize-this.strokeWidth)/2},circleLength(){return 2*Math.PI*this.circleRadius},circleOffset(){return this.circleLength*(1-this.percentage/100)}}},Ur=Vr,Wr=Object(le["a"])(Ur,Hr,Kr,!1,null,null,null),Yr=Wr.exports;Yr.install=function(e){e.component(Yr.name,Yr)};var qr=Yr,Zr=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"xt-tab-pane"},[e._t("default")],2)},Gr=[],Jr={name:"XtTabPane",props:{name:{type:[String,Number],required:!0},label:{type:String,default:""},disabled:{type:Boolean,default:!1},closable:{type:Boolean,default:!0}},computed:{isActive(){return this.$parent&&this.$parent.activeName===this.name}},mounted(){this.$parent&&"function"===typeof this.$parent.addPane&&this.$parent.addPane({name:this.name,label:this.label,disabled:this.disabled,closable:this.closable})},beforeDestroy(){this.$parent&&"function"===typeof this.$parent.removePane&&this.$parent.removePane(this.name)}},Qr=Jr,ei=Object(le["a"])(Qr,Zr,Gr,!1,null,null,null),ti=ei.exports;ti.install=function(e){e.component(ti.name,ti)};var ri=ti,ii=(r("e8d2"),function(){var e=this,t=e._self._c;return t("div",{ref:"tabsWrap",staticClass:"xt-tabs",class:["xt-tabs--"+e.actualPosition,{"xt-tabs--card":"card"===e.type},{"xt-tabs--border-card":"border-card"===e.type},{"xt-tabs--editable":e.editable}]},[t("div",{ref:"tabsHeader",staticClass:"xt-tabs__header"},[t("div",{ref:"tabsNav",staticClass:"xt-tabs__nav"},[e._l(e.panes,(function(r,i){return t("div",{key:r.name,staticClass:"xt-tabs__nav-item",class:{"xt-tabs__nav-item--active":e.activeName===r.name,"xt-tabs__nav-item--disabled":r.disabled},on:{click:function(t){return e.handleTabClick(r)}}},[t("span",{staticClass:"xt-tabs__nav-link"},[e._v(e._s(r.label))]),!e.closable&&!r.closable||e.editable?e._e():t("span",{staticClass:"xt-tabs__close",on:{click:function(t){return t.stopPropagation(),e.handleTabRemove(r.name)}}},[e._v("×")])])})),e.addable||e.editable?t("div",{staticClass:"xt-tabs__nav-item xt-tabs__nav-item--add",on:{click:e.handleTabAdd}},[t("span",[e._v("+")])]):e._e()],2),t("div",{staticClass:"xt-tabs__nav-indicator",style:e.indicatorStyle})]),t("div",{staticClass:"xt-tabs__content"},[e._t("default")],2)])}),ni=[],ai={name:"XtTabs",props:{value:{type:[String,Number],default:""},type:{type:String,default:"",validator:e=>["","card","border-card"].includes(e)},position:{type:String,default:"top",validator:e=>["top","bottom","left","right"].includes(e)},tabPosition:{type:String,default:""},closable:{type:Boolean,default:!1},addable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1}},data(){return{panes:[],activeName:this.value}},computed:{actualPosition(){return this.tabPosition||this.position},indicatorStyle(){const e=this.panes.findIndex(e=>e.name===this.activeName);if(-1===e||!this.$refs.tabsNav)return{display:"none"};const t=this.$refs.tabsNav.querySelectorAll(".xt-tabs__nav-item:not(.xt-tabs__nav-item--add)");if(!t||0===t.length)return{display:"none"};const r=t[e];if(!r)return{display:"none"};const i=this.actualPosition,n={transition:"all 0.3s ease"};return"top"===i||"bottom"===i?{...n,left:r.offsetLeft+"px",width:r.offsetWidth+"px",height:"2px",bottom:"top"===i?0:"auto",top:"bottom"===i?0:"auto",display:"block"}:{...n,top:r.offsetTop+"px",height:r.offsetHeight+"px",width:"2px",left:"left"===i?"auto":0,right:"right"===i?0:"auto",display:"block"}}},watch:{value(e){this.activeName=e},activeName(e){this.$emit("input",e),this.$emit("change",e),this.$nextTick(()=>this.$forceUpdate())},panes:{handler(){this.$nextTick(()=>this.$forceUpdate())},deep:!0}},methods:{handleTabClick(e){e.disabled||(this.activeName=e.name,this.$emit("tab-click",e))},handleTabRemove(e){this.$emit("tab-remove",e),this.$emit("edit",e,"remove");const t=this.panes.findIndex(t=>t.name===e);t>-1&&(this.panes.splice(t,1),this.activeName===e&&this.panes.length>0&&(this.activeName=this.panes[0].name))},handleTabAdd(){this.$emit("tab-add"),this.$emit("edit",null,"add")},addPane(e){const t=this.panes.some(t=>t.name===e.name);t||(this.panes.push(e),this.activeName||1!==this.panes.length||(this.activeName=e.name),this.$nextTick(()=>this.$forceUpdate()))},removePane(e){const t=this.panes.findIndex(t=>t.name===e);t>-1&&(this.panes.splice(t,1),this.$nextTick(()=>this.$forceUpdate()))},collectPanes(){this.panes=[],this.$children.forEach(e=>{"XtTabPane"===e.$options.name&&this.addPane({name:e.name,label:e.label,disabled:e.disabled,closable:e.closable})})}},mounted(){this.$nextTick(()=>{this.collectPanes(),this.$watch(()=>this.$children,()=>{this.collectPanes()},{flush:"post"})})}},oi=ai,li=Object(le["a"])(oi,ii,ni,!1,null,null,null),si=li.exports;si.install=function(e){e.component(si.name,si)};var ci=si,di=(r("bf3f"),function(){var e=this,t=e._self._c;return t("span",{class:e.rootClasses},[t("span",{staticClass:"xt-badge__content"},[e._t("default")],2),e.hidden||!e.value&&!e.isDot?e._e():t("span",{staticClass:"xt-badge__badge",style:e.badgeStyle},[e.isDot?t("span"):e.isOverflow?t("span",[e._v(e._s(e.overflowText))]):t("span",[e._v(e._s(e.value))])])])}),hi=[],ui={name:"XtBadge",props:{value:{type:[Number,String],default:""},type:{type:String,default:"primary",validator:e=>["primary","success","warning","danger","info"].includes(e)},max:{type:Number,default:99},isDot:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},showOverflow:{type:Boolean,default:!0},fixed:{type:Boolean,default:!1},color:{type:String,default:""}},computed:{rootClasses(){return["xt-badge","xt-badge--"+this.type,{"xt-badge--dot":this.isDot},{"xt-badge--hidden":this.hidden},{"xt-badge--fixed":this.fixed}]},badgeStyle(){const e={};return this.color&&(e.backgroundColor=this.color),e},overflowText(){return this.max+"+"},isOverflow(){return this.showOverflow&&this.value>this.max}}},pi=ui,fi=Object(le["a"])(pi,di,hi,!1,null,null,null),mi=fi.exports;mi.install=function(e){e.component(mi.name,mi)};var gi=mi,yi=(r("c828"),function(){var e=this,t=e._self._c;return t("div",{staticClass:"xt-date-picker-container"},[e.showDimension?t("div",{staticClass:"xt-date-dimension"},[t("el-radio-group",{attrs:{size:"small"},model:{value:e.dimension,callback:function(t){e.dimension=t},expression:"dimension"}},[t("el-radio-button",{attrs:{label:"date"}},[e._v("日")]),t("el-radio-button",{attrs:{label:"month"}},[e._v("月")]),t("el-radio-button",{attrs:{label:"year"}},[e._v("年")]),t("el-radio-button",{attrs:{label:"daterange"}},[e._v("自定义")])],1)],1):e._e(),t("div",{staticClass:"xt-date-picker-wrapper"},[e.useRangeMode?t("RangeDate",{staticClass:"xt-date",class:{focus:e.isfocus},style:e.width?{width:e.width+"px"}:{},attrs:{type:e.rangeDateType,separator:e.separator,disabled:e.disabled},on:{focus:function(t){e.isfocus=!0,e.$emit("focus")},blur:function(t){e.isfocus=!1,e.$emit("blur")}},model:{value:e.rangeValue,callback:function(t){e.rangeValue=t},expression:"rangeValue"}}):e._e(),e.useRangeMode||"quarter"===e.realDateType?e.useRangeMode||"quarter"!==e.realDateType?e._e():t("Picker",{staticClass:"xt-date",attrs:{type:"quarter",size:"small",disabled:e.disabled,placeholder:e.innerPlaceholder},on:{focus:function(t){e.isfocus=!0,e.$emit("focus")},blur:function(t){e.isfocus=!1,e.$emit("blur")}},model:{value:e.singleValue,callback:function(t){e.singleValue=t},expression:"singleValue"}}):t("el-date-picker",{ref:"singlePicker",staticClass:"xt-date",attrs:{size:"small",disabled:e.disabled,"append-to-body":"",format:e.format,type:e.realDateType,placeholder:e.innerPlaceholder,clearable:""},on:{focus:function(t){e.isfocus=!0,e.$emit("focus")},blur:function(t){e.isfocus=!1,e.$emit("blur")}},model:{value:e.singleValue,callback:function(t){e.singleValue=t},expression:"singleValue"}})],1)])}),bi=[];const vi={datetime:"yyyy-MM-dd HH:mm",month:"yyyy-MM",year:"yyyy",date:"yyyy-MM-dd",quarter:"yyyy-Qq",week:"yyyy-WW"},_i={date:"yyyy-MM-dd",month:"yyyy-MM",year:"yyyy",daterange:"yyyy-MM-dd"},xi={date:"date",month:"month",year:"year",daterange:"date"},wi={date:"date",month:"month",year:"year",quarter:"quarter",week:"week"};var Ci={name:"XtDatePicker",components:{RangeDate:()=>r.e(1).then(r.bind(null,"1db3")),Picker:()=>r.e(2).then(r.bind(null,"b0ea"))},model:{prop:"value",event:"change"},props:{value:{type:[String,Array,null],default:null},dateType:{type:String,default:"date",validator:e=>Object.keys(vi).includes(e)},separator:{type:String,default:"至"},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0},placeholder:String,width:{type:String,default:"100%"},rangeMode:{type:Boolean,default:!1},showDimension:{type:Boolean,default:!1},dimension:{type:String,default:"date",validator:e=>["date","month","year","daterange"].includes(e)}},data(){return{isfocus:!1}},computed:{realDateType(){return this.showDimension?this.dimension:this.dateType},useRangeMode(){return"daterange"===this.dimension||this.rangeMode},rangeDateType(){return this.showDimension?xi[this.dimension]||"date":wi[this.dateType]||"date"},format(){return this.showDimension?_i[this.dimension]||vi[this.dateType]:vi[this.dateType]||"yyyy-MM-dd"},innerPlaceholder(){if(this.placeholder)return this.placeholder;const e={date:"请选择日期",month:"请选择月份",year:"请选择年份",quarter:"请选择季度",week:"请选择周",datetime:"请选择日期时间"};return e[this.realDateType]||"请选择"},singleValue:{get(){return this.value},set(e){this.$emit("update:value",e),this.$emit("change",e),this.$emit("dimension-change",{dimension:this.dimension,value:e})}},rangeValue:{get(){return this.value},set(e){this.$emit("update:value",e),this.$emit("change",e),this.$emit("dimension-change",{dimension:this.dimension,value:e})}}},watch:{dimension(e){this.closePickerPanels(),this.immediate&&this.$emit("dimension-change",{dimension:e,value:this.value})}},methods:{closePickerPanels(){this.$refs.singlePicker&&(this.$refs.singlePicker.pickerVisible=!1)}}},Si=Ci,ki=Object(le["a"])(Si,yi,bi,!1,null,null,null),Ti=ki.exports;Ti.install=function(e){e.component(Ti.name,Ti)};var Mi=Ti,zi=function(){var e=this,t=e._self._c;return"bar"==e.type?t("xt-bar",e._b({attrs:{theme:e.myTheme,size:e.mySize}},"xt-bar",e.$attrs,!1)):"line"==e.type?t("xt-line",e._b({attrs:{theme:e.myTheme,size:e.mySize}},"xt-line",e.$attrs,!1)):"pie"==e.type?t("xt-pie",e._b({attrs:{theme:e.myTheme,size:e.mySize}},"xt-pie",e.$attrs,!1)):"multi"==e.type?t("xt-multi",e._b({attrs:{theme:e.myTheme,size:e.mySize}},"xt-multi",e.$attrs,!1)):e._e()},$i=[],Ii=function(){var e=this,t=e._self._c;return t("div",{ref:"barchart",staticClass:"bar-box",style:e.chartStyle})},Li=[],Ai={name:"XtBar",props:{chartData:{type:Array,default:()=>[{value:65,label:"吴十"},{value:70,label:"唐九"},{value:73,label:"钱一"},{value:78,label:"孙二"},{value:88,label:"刘八"},{value:93,label:"王七"},{value:99,label:"赵六"},{value:103,label:"宋五"},{value:113,label:"李四"},{value:125,label:"张三"}]},theme:{},size:{type:String,default:"medium"},width:{type:String,default:"100%"},height:{type:String,default:"100%"},ratio:{type:Number,default:null},fieldKeys:{type:Object,default:()=>({label:"label",value:"value",data:"data"})},markPoint:{type:Boolean,default:!1},unit:{type:String,default:""},showZoom:{type:Boolean,default:!1},reverse:{type:Boolean,default:!1},longLable:{type:Boolean,default:!1},longLableSplitNum:{type:Number,default:1},longLablePx:{type:Number,default:150},splitNumber:{type:Number,default:5},simpleMode:{type:Boolean,default:!1}},data(){return{myChart:null,name:"数量"}},computed:{chartStyle(){const e={};return this.width&&(e.width=this.width),this.ratio?e.aspectRatio=this.ratio:this.height&&(e.height=this.height),e}},watch:{chartData:{deep:!0,handler(e,t){const r=this;r.initChart()}},unit:{deep:!0,handler(e,t){const r=this;r.initChart()}},theme(e){this.initChart()}},mounted(){this.initChart(),m.bindResizeObserver(this.$refs.barchart,this.myChart)},beforeUnmount(){m.unbindResizeObserver(this.$refs.barchart),this.myChart&&this.myChart.dispose()},methods:{initChart(){const e=this,t=Object.assign({label:"label",value:"value",data:"data"},e.fieldKeys||{}),r={type:"category",inverse:this.reverse,axisLabel:{interval:0,formatter:function(t){return!e.reverse&&e.longLable?t.replace(new RegExp(`(.{${e.longLableSplitNum}})`,"g"),"$1\n"):t}},data:e.chartData.map(e=>e[t.label])},i={type:"value",splitLine:{lineStyle:{type:"dashed"}},name:e.energyType,axisTick:{inside:!0},min:0,splitNumber:e.splitNumber,scale:!0,axisLabel:{margin:2,formatter:function(e,t){return e>=1e4&&e<1e7?e=e/1e4+"万":e>=1e7&&(e=e/1e7+"千万"),e}}},n={legend:{right:20,top:0,textStyle:{fontSize:12}},tooltip:{borderWidth:1,trigger:"item"},grid:{top:"10",left:40+(this.reverse&&this.longLable?e.longLablePx:0),right:"10",bottom:(e.showZoom?50:20)+(!e.reverse&&e.longLable?e.longLablePx:0),containLabel:!0},xAxis:this.reverse?i:r,yAxis:this.reverse?r:i,series:{name:e.unit,type:"bar",avoidLabelOverlap:!0,data:e.chartData.map((e,r)=>{const i=e[t.label],n=e[t.value];return{value:n,name:i,tooltip:{borderWidth:1}}})},dataZoom:e.showZoom?[{height:20,bottom:0}]:[]};this.simpleMode&&m.applySimpleMode(n,"bar"),this.myChart=m.init(e.$refs.barchart,this.theme,n,this.size)}}},Ni=Ai,Oi=(r("cf38"),Object(le["a"])(Ni,Ii,Li,!1,null,"5705d26c",null)),Ei=Oi.exports,Di=function(){var e=this,t=e._self._c;return t("div",{ref:"linechart",staticClass:"line-box",style:e.chartStyle})},Pi=[],Bi={name:"XtLine",props:{theme:{},size:{type:String,default:"medium"},width:{type:String,default:"100%"},height:{type:String,default:"100%"},ratio:{type:Number,default:null},chartData:{type:Array,default:()=>[{value:53,label:"张三"},{value:10,label:"李四"},{value:60,label:"宋五"}]},fieldKeys:{type:Object,default:()=>({label:"label",value:"value",data:"data"})},isArea:{type:Boolean,default:!1},unit:{type:String,default:""},intervalvalue:{type:Number,default:0},simpleMode:{type:Boolean,default:!1}},data(){return{myChart:null}},computed:{chartStyle(){const e={};return this.width&&(e.width=this.width),this.ratio?e.aspectRatio=this.ratio:this.height&&(e.height=this.height),e}},watch:{chartData:{deep:!0,handler(e,t){const r=this;r.initChart()}},unit:{deep:!0,handler(e,t){const r=this;r.initChart()}},theme(e){this.initChart()}},mounted(){this.initChart(),m.bindResizeObserver(this.$refs.linechart,this.myChart)},beforeUnmount(){m.unbindResizeObserver(this.$refs.linechart),this.myChart&&this.myChart.dispose()},methods:{initChart(){const e=this,t=Object.assign({label:"label",value:"value",data:"data"},e.fieldKeys||{}),r={animationDuration:500,grid:{top:"18%",left:"30",right:"30",bottom:"20"},xAxis:{type:"category",axisLabel:{interval:this.intervalvalue},boundaryGap:!1,data:e.chartData.map(e=>e[t.label])},yAxis:{type:"value",axisLine:{show:!1,lineStyle:{}},axisTick:{show:!1},splitLine:{lineStyle:{type:"dashed"}},name:e.unit,scale:!0,axisLabel:{margin:2,formatter:function(e,t){return e>=1e4&&e<1e7?e=Math.floor(e/1e4)+"万":e>=1e7&&(e=Math.floor(e/1e7)+"千万"),e}}},series:[{type:"line",symbol:"circle",areaStyle:e.isArea?{}:null,smooth:!0,avoidLabelOverlap:!0,data:e.chartData.map((e,r)=>e[t.value])}]};this.simpleMode&&m.applySimpleMode(r,"line"),this.myChart=m.init(e.$refs.linechart,this.theme,r,this.size)}}},Ri=Bi,Fi=(r("04c6"),Object(le["a"])(Ri,Di,Pi,!1,null,"ee5ba2d8",null)),ji=Fi.exports,Xi=function(){var e=this,t=e._self._c;return t("div",{ref:"piechart",staticClass:"pie-box",style:e.chartStyle})},Hi=[],Ki={name:"XtPie",props:{theme:{},size:{type:String,default:"medium"},width:{type:String,default:"100%"},height:{type:String,default:"100%"},ratio:{type:Number,default:null},chartData:{type:Array,default:()=>[{value:53,label:"张三"},{value:10,label:"李四"},{value:60,label:"宋五"}]},fieldKeys:{type:Object,default:()=>({label:"label",value:"value",data:"data"})},colors:{type:Array,default:()=>[]},unit:{type:String,default:""},showLegend:{type:Boolean,default:!0},simpleMode:{type:Boolean,default:!1},highlightKey:String,roseType:{type:String,default:""},showLabel:{type:Boolean,default:!0},totalLabel:{type:String,default:"总数"}},data(){return{myChart:null}},computed:{chartStyle(){const e={};return this.width&&(e.width=this.width),this.ratio?e.aspectRatio=this.ratio:this.height&&(e.height=this.height),e},totalNum(){const e=Object.assign({label:"label",value:"value",data:"data"},this.fieldKeys||{});return this.chartData.map(t=>parseFloat(t[e.value])).reduce((e,t)=>e+t,0)}},watch:{chartData:{deep:!0,handler(e,t){const r=this;r.initChart()}},theme(e){this.initChart()}},mounted(){this.$nextTick(()=>{this.initChart(),m.bindResizeObserver(this.$refs.piechart,this.myChart)})},beforeUnmount(){m.unbindResizeObserver(this.$refs.piechart),this.myChart&&this.myChart.dispose()},methods:{initChart(){const e=this,t=Object.assign({label:"label",value:"value",data:"data"},e.fieldKeys||{}),r={title:{text:`${e.totalLabel}:${e.totalNum}`,textStyle:{},top:"middle",left:"center"},tooltip:{trigger:"item"},legend:this.showLegend?{top:"top",right:"20",type:"scroll"}:null,grid:{left:30,right:0,top:20,bottom:0,containLabel:!0},series:[{name:e.unit,type:"pie",center:["50%","50%"],roseType:this.roseType,radius:["50%","65%"],minAngle:5,avoidLabelOverlap:!0,data:e.chartData.map((e,r)=>{const i=e[t.label],n=e[t.value];return{value:n,name:i,labelLine:{show:this.showLabel},emphasis:{labelLine:{show:this.showLabel}},label:{show:this.showLabel},tooltip:{formatter:"{b}:{c} ({d}%)",position:"inside",borderWidth:1}}})}]};this.simpleMode&&m.applySimpleMode(r,"pie"),console.log("option",r),this.myChart=m.init(e.$refs.piechart,this.theme,r,this.size)}}},Vi=Ki,Ui=(r("ceb9"),Object(le["a"])(Vi,Xi,Hi,!1,null,"504b3110",null)),Wi=Ui.exports,Yi=function(){var e=this,t=e._self._c;return t("div",{ref:"multilinechart",staticClass:"multiline-box",style:e.chartStyle})},qi=[],Zi={name:"XtMulti",props:{theme:{},size:{type:String,default:"medium"},width:{type:String,default:"100%"},height:{type:String,default:"100%"},ratio:{type:Number,default:null},fieldKeys:{type:Object,default:()=>({label:"label",value:"value",data:"data"})},simpleMode:{type:Boolean,default:!1},highlightKey:String,chartData:{type:Array,default:()=>[{label:"入户数",unit:"户",data:[{label:"01月",value:980},{label:"02月",value:806},{label:"03月",value:930},{label:"04月",value:804},{label:"05月",value:750},{label:"06月",value:660},{label:"07月",value:780},{label:"08月",value:630},{label:"09月",value:806},{label:"10月",value:950},{label:"11月",value:810},{label:"12月",value:703}]},{label:"隐患数",unit:"个",data:[{label:"01月",value:200},{label:"02月",value:120},{label:"03月",value:110},{label:"04月",value:109},{label:"05月",value:108},{label:"06月",value:150},{label:"07月",value:126},{label:"08月",value:130},{label:"09月",value:108},{label:"10月",value:109},{label:"11月",value:140},{label:"12月",value:106}]},{label:"整改数",unit:"个",data:[{label:"01月",value:25},{label:"02月",value:19},{label:"03月",value:34},{label:"04月",value:12},{label:"05月",value:16},{label:"06月",value:20},{label:"07月",value:19},{label:"08月",value:18},{label:"09月",value:14},{label:"10月",value:12},{label:"11月",value:11},{label:"12月",value:16}]}]},colors:{type:Array,default:()=>[]}},data(){return{myChart:null}},computed:{chartStyle(){const e={};return this.width&&(e.width=this.width),this.ratio?e.aspectRatio=this.ratio:this.height&&(e.height=this.height),e}},watch:{chartData:{deep:!0,handler(e,t){const r=this;this.myChart&&this.myChart.dispose(),this.myChart=null,r.initChart(),m.bindResizeObserver(this.$refs.multilinechart,this.myChart)}},theme(e){this.myChart&&this.myChart.dispose(),this.myChart=null,this.initChart(),m.bindResizeObserver(this.$refs.multilinechart,this.myChart)}},mounted(){this.initChart(),m.bindResizeObserver(this.$refs.multilinechart,this.myChart)},beforeUnmount(){m.unbindResizeObserver(this.$refs.multilinechart),this.myChart&&this.myChart.dispose()},methods:{initChart(){const e=this,t=Object.assign({label:"label",value:"value",data:"data"},e.fieldKeys||{}),r=[];(e.chartData||[]).forEach(e=>{const t=e.unit||"";-1===r.indexOf(t)&&r.push(t)});const i=(e,t)=>{const r={type:"value",name:e,axisLine:{show:!1,lineStyle:{}},axisTick:{show:!1},splitLine:{lineStyle:{type:"dashed"}},axisLabel:{formatter:function(e,t){return e>=1e4&&e<1e7?e=Math.floor(e/1e4)+"万":e>=1e7&&(e=Math.floor(e/1e7)+"千万"),e}}};return t>0&&(r.position="right",r.splitLine={show:!1}),r},n=r.length?r.map((e,t)=>i(e,t)):[i("",0)],a={};r.forEach((e,t)=>{a[e]=t});const o=e.chartData&&e.chartData.length&&e.chartData[0][t.data]||[],l={legend:{right:20,top:0,show:!0,data:e.chartData.map(e=>e[t.label]),textStyle:{}},tooltip:{borderWidth:1,trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:16,right:16,top:40,bottom:48,containLabel:!0},xAxis:{type:"category",axisLabel:{},data:o.map(e=>e[t.label])},yAxis:n,dataZoom:[{type:"inside",xAxisIndex:[0],start:1,end:100}],series:this.getSeriesData(a,t)};this.simpleMode&&m.applySimpleMode(l,"multi"),this.myChart=m.init(e.$refs.multilinechart,this.theme,l,this.size)},getSeriesData(e,t){const r=this,i=[];return r.chartData.forEach((r,n)=>{const a=r[t.data]||[],o={animation:!0,name:r[t.label],type:r.type||"bar",avoidLabelOverlap:!0,areaStyle:r.areaStyle?{}:null,smooth:!!r.smooth&&{},data:a.map(e=>e[t.value]),yAxisIndex:null!=e[r.unit||""]?e[r.unit||""]:0};i.push(o)}),i}}},Gi=Zi,Ji=(r("a148"),Object(le["a"])(Gi,Yi,qi,!1,null,"2957321d",null)),Qi=Ji.exports,en={name:"XtChart",components:{XtBar:Ei,XtLine:ji,XtPie:Wi,XtMulti:Qi},props:{theme:{type:String,default:""},size:{type:String,default:"medium",validator:e=>["small","medium","large"].includes(e)},type:{type:String,required:!0,default:"bar"}},data(){return{myTheme:this.theme,mySize:this.size,observer:null}},mounted(){this.detectParentTheme(),this.observeThemeChange()},beforeUnmount(){this.observer&&this.observer.disconnect()},watch:{theme(e){this.myTheme=e},size(e){this.mySize=e}},methods:{detectParentTheme(){if(this.theme)return void(this.myTheme=this.theme);let e=this.$el?this.$el.parentElement:null;while(e){const t=e.getAttribute("data-theme");if(t)return void(this.myTheme="dark"===t?"dark":"default");e=e.parentElement}const t=document.body.getAttribute("data-theme"),r=document.documentElement.getAttribute("data-theme");this.myTheme="dark"===t||"dark"===r?"dark":"default"},observeThemeChange(){if(!this.$el)return;this.observer=new MutationObserver(e=>{e.forEach(e=>{if("attributes"===e.type&&"data-theme"===e.attributeName){const t=e.target.getAttribute("data-theme");"dark"===t?this.myTheme="dark":"light"===t&&(this.myTheme="default")}})});let e=this.$el.parentElement;while(e)this.observer.observe(e,{attributes:!0,attributeFilter:["data-theme"]}),e=e.parentElement;this.observer.observe(document.body,{attributes:!0,attributeFilter:["data-theme"]}),this.observer.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})}}},tn=en,rn=Object(le["a"])(tn,zi,$i,!1,null,null,null),nn=rn.exports;nn.install=function(e){e.component(nn.name,nn)};var an=nn,on=(r("1f11"),function(){var e=this,t=e._self._c;e._self._setupProxy;return t(e.tag,e._g({tag:"component",class:e.iconClasses,style:e.iconStyle,on:{click:e.handleClick}},e.$listeners),[e.isSvgSprite?t("svg",{style:e.svgStyle,attrs:{"aria-hidden":"true"}},[t("use",{attrs:{href:e.svgHref}})]):e.hasDefaultSlot?e._t("default"):e._e()],2)}),ln=[];const sn={},cn={name:"XtIcon",inheritAttrs:!1,props:{name:{type:String,default:""},size:{type:[String,Number],default:""},color:{type:String,default:""},spin:{type:Boolean,default:!1}},computed:{hasDefaultSlot(){return!!this.$slots.default},iconName(){return(this.name||"").trim()},isElIcon(){return/^el-icon-/.test(this.iconName)},isSvgInline(){return this.iconName.indexOf("<svg")>-1},isSvgSprite(){return/^(#|svg:)/.test(this.iconName)},isCustomFont(){return!!this.iconName&&(!this.isElIcon&&!this.isSvgInline&&!this.isSvgSprite)},svgHref(){if(!this.isSvgSprite)return"";const e=this.iconName.replace(/^svg:/,"").replace(/^#/,"");return"#"+e},needsExIconPrefix(){if(!this.isCustomFont)return!1;for(const e of Object.keys(sn))if(0===this.iconName.indexOf(e))return!1;return!0},tag(){return this.isSvgInline?"span":"i"},iconClasses(){const e=[];return this.isElIcon?e.push(this.iconName):this.isSvgSprite?e.push("ex-icon-svg"):this.isCustomFont?(this.needsExIconPrefix&&e.push("ex-icon"),e.push(this.iconName)):this.isSvgInline&&e.push("ex-icon-inline-svg"),this.spin&&e.push("ex-icon-spin"),e},iconStyle(){const e={};if(this.size){const t="number"===typeof this.size?this.size+"px":this.size;e.fontSize=t,e.width=t,e.height=t}return this.color&&(e.color=this.color),this.isSvgInline&&(e.display="inline-block",e.verticalAlign="middle"),e},svgStyle(){return{width:"1em",height:"1em",verticalAlign:"-0.15em",fill:"currentColor",overflow:"hidden"}}},mounted(){this.isSvgInline&&this.$el&&(this.$el.innerHTML=this.iconName)},beforeUpdate(){this.isSvgInline&&this.$el&&(this.$el.innerHTML=this.iconName)},methods:{handleClick(e){this.$emit("click",e)}},registerPrefix:function(e){e&&"string"===typeof e&&(sn[e]=!0)}};var dn=cn,hn=dn,un=(r("6b14"),Object(le["a"])(hn,on,ln,!1,null,"0e301b72",null)),pn=un.exports;pn.install=function(e){e.component(pn.name,pn)};var fn,mn,gn=pn,yn=function(){var e=this,t=e._self._c;return t("div",{staticClass:"xt-table-wrapper"},[e.title||e.$slots.toolbar?t("div",{staticClass:"xt-table-header"},[e.title?t("span",{staticClass:"xt-table-title"},[e._v(e._s(e.title))]):e._e(),t("div",{staticClass:"xt-table-toolbar"},[e._t("toolbar")],2)]):e._e(),t("div",{staticClass:"xt-table-body"},[t("VirtualElTable",e._g(e._b({ref:"table",staticClass:"xt-table",attrs:{data:e.processedTableData,height:e.computedHeight,"max-height":e.computedMaxHeight,"virtual-scroll":e.virtualScroll,"row-height":e.rowInitHeight,"buffer-size":e.bufferSize,"span-method":e.groupColumns.length?e.handleSpanMethod:void 0,"row-class-name":e.getRowClassName},on:{"selection-change":e.handleSelectionChange,"sort-change":e.handleSortChange}},"VirtualElTable",e.$attrs,!1),e.$listeners),[e.selection?t("el-table-column",{attrs:{type:"selection",width:"55",fixed:e.selectionFixed}}):e._e(),e.showIndex?t("el-table-column",{attrs:{type:"index",width:"60",label:"#",fixed:e.indexFixed,index:e.indexMethod}}):e._e(),e._l(e.flattenedColumns,(function(r){return[r.children&&r.children.length?t("el-table-column",e._b({key:r._key},"el-table-column",e.getColumnProps(r),!1),[e._l(r.children,(function(r){return[t("el-table-column",e._b({key:r._key,scopedSlots:e._u([r.render?{key:"default",fn:function(e){return[t("XtTableCell",{attrs:{row:e.row,index:e.$index,render:r.render,column:r}})]}}:r.slot?{key:"default",fn:function(t){return[e._t(r.slot,null,{row:t.row,index:t.$index,column:r})]}}:null],null,!0)},"el-table-column",e.getColumnProps(r),!1))]}))],2):t("el-table-column",e._b({key:r._key,scopedSlots:e._u([r.render?{key:"default",fn:function(e){return[t("XtTableCell",{attrs:{row:e.row,index:e.$index,render:r.render,column:r}})]}}:r.slot?{key:"default",fn:function(t){return[e._t(r.slot,null,{row:t.row,index:t.$index,column:r})]}}:null],null,!0)},"el-table-column",e.getColumnProps(r),!1))]}))],2)],1),e.showPagination?t("div",{staticClass:"xt-table-footer"},[t("el-pagination",{attrs:{"current-page":e.pagination.pageNum,"page-size":e.pagination.pageSize,total:e.total,"page-sizes":e.pagination.pageSizes||[10,20,50,100],layout:"total, sizes, prev, pager, next, jumper"},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()])},bn=[],vn={name:"XtTableCell",functional:!0,props:{row:Object,index:Number,render:Function,column:{type:Object,default:null}},render:(e,t)=>{const r={row:t.props.row,index:t.props.index};t.props.column&&(r.column=t.props.column);const i=e=>null!==e&&void 0!==e&&"object"===typeof e&&e.hasOwnProperty("componentOptions"),n=t.props.render(e,r);return null===n||void 0===n||""===n?e("span",""):i(n)?n:e("span",String(n))}},_n=vn,xn=Object(le["a"])(_n,fn,mn,!1,null,null,null),wn=xn.exports,Cn=function(){var e=this,t=e._self._c;return t("el-table",e._g(e._b({ref:"innerTable",attrs:{data:e.renderList}},"el-table",e.$attrs,!1),e.$listeners),[e._t("default")],2)},Sn=[],kn={name:"VirtualElTable",inheritAttrs:!1,props:{virtualScroll:{type:Boolean,default:!1},rowHeight:{type:Number,default:48},bufferSize:{type:Number,default:5}},data(){return{scrollWrap:null,phantomDom:null,scrollTop:0,startIndex:0,endIndex:20,rafId:null,unwatchPhantom:null,layoutTimer:null,retryTimers:[]}},computed:{originData(){return this.$attrs.data||[]},renderList(){if(!this.virtualScroll)return this.originData;const e=Math.max(0,this.startIndex-this.bufferSize),t=Math.min(this.originData.length,this.endIndex+this.bufferSize);return this.originData.slice(e,t)},totalListHeight(){return this.originData.length*this.rowHeight},contentOffsetY(){return Math.max(0,this.startIndex-this.bufferSize)*this.rowHeight}},watch:{renderList(){this.scheduleLayout()},originData:{handler(e){this.virtualScroll&&e&&e.length&&this.$nextTick(()=>{this.calcVisibleRange()})}}},mounted(){this.$nextTick(()=>{this.initVirtualScroll()})},beforeDestroy(){this.unbindScrollEvent(),this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=null),this.unwatchPhantom&&(this.unwatchPhantom(),this.unwatchPhantom=null),this.layoutTimer&&(clearTimeout(this.layoutTimer),this.layoutTimer=null),this.retryTimers.forEach(e=>clearTimeout(e)),this.retryTimers=[]},methods:{initVirtualScroll(){if(!this.virtualScroll)return;if(this.scrollWrap=this.$refs.innerTable.$el.querySelector(".el-table__body-wrapper"),!this.scrollWrap)return console.warn("[VirtualElTable] 无法找到滚动容器,虚拟滚动功能已禁用"),void(this.virtualScroll=!1);this.scrollWrap.style.overflowY="auto",this.scrollWrap.style.overflowX="auto",this.wrapTableBody(),this.scrollWrap.addEventListener("scroll",this.onScroll,{passive:!0}),this.calcVisibleRange();const e=[100,300,600,1e3];e.forEach(e=>{const t=setTimeout(()=>{this.calcVisibleRange()},e);this.retryTimers.push(t)})},wrapTableBody(){const e=this.scrollWrap.querySelector(".el-table__body");if(!e||e.querySelector(".vs-phantom"))return;const t=document.createElement("div");t.className="vs-phantom",t.style.position="relative",t.style.minWidth="100%",t.style.boxSizing="border-box",t.style.zIndex="1",this.phantomDom=t;const r=e.querySelector("table");t.appendChild(r),e.appendChild(t),this.unwatchPhantom=this.$watch(["totalListHeight","contentOffsetY"],()=>{this.phantomDom&&(this.phantomDom.style.height=this.totalListHeight+"px",this.phantomDom.style.paddingTop=this.contentOffsetY+"px")},{immediate:!0})},onScroll(){this.scrollTop=this.scrollWrap.scrollTop,this.rafId||(this.rafId=requestAnimationFrame(()=>{this.calcVisibleRange(),this.rafId=null}))},calcVisibleRange(){if(!this.scrollWrap)return;let e=this.scrollWrap.clientHeight;if(!e){const t=this.$attrs.height||this.$attrs.maxHeight;t&&(e="number"===typeof t?t:parseInt(String(t),10))}if(!e||e<=0)return;const t=Math.ceil(e/this.rowHeight),r=Math.floor(this.scrollTop/this.rowHeight),i=Math.min(this.originData.length,r+t);r===this.startIndex&&i===this.endIndex||(this.startIndex=r,this.endIndex=i)},unbindScrollEvent(){this.scrollWrap&&this.scrollWrap.removeEventListener("scroll",this.onScroll)},scheduleLayout(){this.layoutTimer||(this.layoutTimer=setTimeout(()=>{this.$refs.innerTable&&this.$refs.innerTable.doLayout(),this.layoutTimer=null},0))},clearSelection(){return this.$refs.innerTable.clearSelection()},toggleRowSelection(){return this.$refs.innerTable.toggleRowSelection()},doLayout(){return this.$refs.innerTable.doLayout()}}},Tn=kn,Mn=(r("26be"),Object(le["a"])(Tn,Cn,Sn,!1,null,"01f7dcee",null)),zn=Mn.exports,$n={name:"XtTable",inheritAttrs:!1,components:{XtTableCell:wn,VirtualElTable:zn},props:{tableData:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},groupColumns:{type:Array,default:()=>[]},sortGroup:{type:Boolean,default:!1},defaultSort:{type:Object,default:null},filterMethod:{type:Function,default:null},title:{type:String,default:""},height:{type:[Number,String],default:null},maxHeight:{type:[Number,String],default:null},virtualScroll:{type:Boolean,default:!1},rowInitHeight:{type:Number,default:48},bufferSize:{type:Number,default:5},pagination:{type:Object,default:null},total:{type:Number,default:0},showIndex:{type:Boolean,default:!1},selection:{type:Boolean,default:!1},selectionFixed:{type:[String,Boolean],default:!1},indexFixed:{type:[String,Boolean],default:!1},loading:{type:Boolean,default:!1},emptyText:{type:String,default:"暂无数据"},subtotalConfig:{type:Object,default:()=>({enabled:!1})},totalConfig:{type:Object,default:()=>({enabled:!1})}},data(){return{spanCache:{},flattenedColumnsCache:[],selectedRows:[],sortProp:null,sortOrder:null}},computed:{showPagination(){return this.pagination&&this.total>0},computedHeight(){return this.height||void 0},computedMaxHeight(){return this.height?void 0:this.maxHeight||void 0},sortedTableData(){if(!this.tableData.length)return[];let e=[...this.tableData];if("function"===typeof this.filterMethod&&(e=e.filter(this.filterMethod)),!this.sortProp||!this.sortOrder)return e;const t="ascending"===this.sortOrder?1:-1,r=this.resolveSortMethod(this.sortProp);return this.sortGroup&&this.groupColumns.length?this.groupSort(e,r,t):e.sort((e,i)=>r(e,i)*t)},processedTableData(){if(!this.sortedTableData.length)return[];let e=[...this.sortedTableData];const t=this.subtotalConfig&&this.subtotalConfig.enabled,r=this.totalConfig&&this.totalConfig.enabled;if(!t&&!r)return e;this.findLabelColumn();let i=[];if(t&&this.subtotalConfig.groupBy&&this.subtotalConfig.groupBy.length){const t=this.groupData(e,this.subtotalConfig.groupBy);t.forEach(e=>{i.push(...e);const t=this.createSubtotalRow(e);i.push(t)})}else i=e;if(r){const t=this.createTotalRow(e);i.push(t)}return i},flattenedColumns(){if(this.flattenedColumnsCache.length)return this.flattenedColumnsCache;const e=(t,r="")=>t.map((t,i)=>{const n=r?`${r}_${i}`:String(i),a=t.prop||t.slot||t.label||n,o={...t,_key:a};return t.children&&t.children.length&&(o.children=e(t.children,n)),o});return this.flattenedColumnsCache=e(this.columns),this.flattenedColumnsCache}},watch:{tableData(){this.spanCache={},this.flattenedColumnsCache=[]},columns:{handler(){this.flattenedColumnsCache=[],this.spanCache={}},deep:!0},groupColumns:{handler(){this.spanCache={}},deep:!0},defaultSort:{handler(e){e&&e.prop&&(this.sortProp=e.prop,this.sortOrder=e.order||"ascending")},immediate:!1},sortProp(){this.spanCache={}}},created(){this.defaultSort&&this.defaultSort.prop&&(this.sortProp=this.defaultSort.prop,this.sortOrder=this.defaultSort.order||"ascending")},mounted(){this.$nextTick(()=>{window.addEventListener("resize",this.handleResize)})},beforeDestroy(){window.removeEventListener("resize",this.handleResize)},methods:{resolveSortMethod(e){const t=this.findColumnByProp(e);return t&&"function"===typeof t.sortMethod?t.sortMethod:(t,r)=>{const i=t[e],n=r[e];return null==i&&null==n?0:null==i?-1:null==n?1:"number"===typeof i&&"number"===typeof n?i-n:String(i).localeCompare(String(n),void 0,{numeric:!0})}},findColumnByProp(e){for(const t of this.columns)if(t.children&&t.children.length){for(const r of t.children)if(r.prop===e)return r}else if(t.prop===e)return t;return null},groupSort(e,t,r){const i={};e.forEach(e=>{const t=this.groupColumns.map(t=>null==e[t]?"":String(e[t])).join("|||");i[t]||(i[t]=[]),i[t].push(e)});const n=[];return Object.keys(i).sort().forEach(e=>{const a=i[e];a.sort((e,i)=>t(e,i)*r),n.push(...a)}),n},handleResize(){this.$nextTick(()=>{this.$refs.table&&this.$refs.table.doLayout()})},findLabelColumn(){for(const e of this.columns)if(e.children&&e.children.length){for(const t of e.children)if(t.prop)return{prop:t.prop,label:t.label}}else if(e.prop)return{prop:e.prop,label:e.label};return{prop:"",label:""}},groupData(e,t){const r=new Map;return e.forEach(e=>{const i=t.map(t=>e[t]).join("|||");r.has(i)||r.set(i,[]),r.get(i).push(e)}),r},_calcValue(e,t){if("function"===typeof t)return t(e);const r=t.prop,i=t.type||"sum",n=r?e.map(e=>parseFloat(e[r])||0):[];switch(i){case"sum":return n.reduce((e,t)=>e+t,0);case"avg":case"average":return n.length?n.reduce((e,t)=>e+t,0)/n.length:0;case"count":return e.length;case"min":return n.length?Math.min(...n):0;case"max":return n.length?Math.max(...n):0;default:return""}},createSubtotalRow(e){const t=this.subtotalConfig,r=this.findLabelColumn(),i=t.groupBy?t.groupBy[0]:"",n=e[0]?e[0][i]:"",a=t.labelText||n+" 小计",o={_rowType:"subtotal"};return o[r.prop]=a,t.columns&&Object.keys(t.columns).forEach(r=>{const i=t.columns[r];o[r]="string"===typeof i?this._calcValue(e,{prop:r,type:i}):this._calcValue(e,i)}),o},createTotalRow(e){const t=this.totalConfig,r=this.findLabelColumn(),i=t.labelText||"总计",n={_rowType:"total"};return n[r.prop]=i,t.columns&&Object.keys(t.columns).forEach(r=>{const i=t.columns[r];n[r]="string"===typeof i?this._calcValue(e,{prop:r,type:i}):this._calcValue(e,i)}),n},getRowClassName({row:e}){return"subtotal"===e._rowType?"xt-table-row-subtotal":"total"===e._rowType?"xt-table-row-total":""},getColumnProps(e){const{_key:t,children:r,render:i,slot:n,sortMethod:a,...o}=e;return o},indexMethod(e){return e+1},handleSpanMethod({row:e,column:t,rowIndex:r}){if("subtotal"===e._rowType||"total"===e._rowType)return{rowspan:1,colspan:1};if(!this.groupColumns.length)return{rowspan:1,colspan:1};const i=this.processedTableData,n=t.property,a=this.groupColumns.indexOf(n);if(-1===a)return{rowspan:1,colspan:1};const o=`${r}_${n}`;if(this.spanCache[o])return this.spanCache[o];if(r>0){const t=i[r-1];let n=!0;for(let r=0;r<=a;r++){const i=this.groupColumns[r];if(t[i]!==e[i]){n=!1;break}}if(n){const e={rowspan:0,colspan:1};return this.spanCache[o]=e,e}}let l=1;for(let c=r+1;c<i.length;c++){const t=i[c];let r=!0;for(let i=0;i<=a;i++){const n=this.groupColumns[i];if(t[n]!==e[n]){r=!1;break}}if(!r)break;l++}const s={rowspan:l>1?l:1,colspan:1};return this.spanCache[o]=s,s},handleSelectionChange(e){this.selectedRows=e.filter(e=>!e._rowType),this.$emit("selection-change",this.selectedRows)},handleSortChange(e){this.sortProp=e.prop,this.sortOrder=e.order,this.$emit("sort-change",e)},handleSizeChange(e){this.$emit("size-change",e)},handleCurrentChange(e){this.$emit("page-change",e)},getSelection(){return this.selectedRows},clearSelection(){this.$refs.table&&this.$refs.table.clearSelection(),this.selectedRows=[]},clearSort(){this.sortProp=null,this.sortOrder=null,this.$nextTick(()=>{this.$refs.table&&this.$refs.table.$refs.innerTable&&this.$refs.table.$refs.innerTable.clearSort()})},toggleRowSelection(e,t){this.$refs.table&&this.$refs.table.toggleRowSelection(e,t)},toggleRowsSelection(e,t){e&&e.length&&e.forEach(e=>{this.$refs.table&&this.$refs.table.toggleRowSelection(e,t)})},doLayout(){this.$refs.table&&this.$refs.table.doLayout()}}},In=$n,Ln=(r("9940"),Object(le["a"])(In,yn,bn,!1,null,"39458c28",null)),An=Ln.exports;An.install=function(e){e.component(An.name,An)};var Nn=An,On=function(){var e=this,t=e._self._c;return t("div",{staticClass:"xt-list",class:{"xt-list--loading":e.loading}},[e.title||e.filterable||e.sortable||e.$slots.toolbar?t("div",{staticClass:"xt-list__header"},[e.title?t("span",{staticClass:"xt-list__title"},[e._v(e._s(e.title))]):e._e(),t("div",{staticClass:"xt-list__toolbar"},[e.filterable?t("div",{staticClass:"xt-list__search"},[t("el-input",{attrs:{placeholder:e.filterPlaceholder,size:"small",clearable:"","prefix-icon":"el-icon-search"},on:{input:e.handleSearch},model:{value:e.searchText,callback:function(t){e.searchText=t},expression:"searchText"}})],1):e._e(),e.sortable&&e.sortBy?t("el-button",{attrs:{size:"small",icon:"el-icon-sort",type:e.currentSortOrder?"primary":"default",plain:""},on:{click:e.handleSortToggle}},[e._v(" "+e._s(e.sortLabel)+" ")]):e._e(),e._t("toolbar")],2)]):e._e(),t("xt-scroll",{ref:"scrollContainer",class:["xt-list__body",{"xt-list__body--virtual":e.virtualScroll}],style:e.bodyStyle,on:{scroll:e.onScroll}},[e.virtualScroll?t("div",{staticClass:"xt-list__phantom",style:{height:e.totalHeight+"px"}},[t("div",{style:{paddingTop:e.offsetY+"px"}},[e.groupedData.length?[e._l(e.visibleGroups,(function(r,i){return[t("div",{key:r._key,staticClass:"xt-list__group"},[t("div",{staticClass:"xt-list__group-title",on:{click:function(t){return e.toggleGroup(r._key)}}},[t("span",{staticClass:"xt-list__group-arrow",class:{"is-expanded":r._expanded}},[t("i",{staticClass:"el-icon-arrow-right"})]),e._t("group-title",(function(){return[t("span",{staticClass:"xt-list__group-label"},[e._v(e._s(e.getGroupLabel(r)))]),t("span",{staticClass:"xt-list__group-count"},[e._v("("+e._s(r._items.length)+")")])]}),{group:r,items:r._items,expanded:r._expanded})],2),r._expanded?t("div",{class:["xt-list__cards","xt-list__cols-"+e.columns]},e._l(e.getVisibleItems(r),(function(i,n){return t("div",{key:i._id||n,staticClass:"xt-list__item",on:{click:function(t){return e.handleItemClick(i,r._key)}}},[t("el-card",{attrs:{shadow:e.shadow,"body-style":e.cardBodyStyle}},[e._t("default",(function(){return[e.getImage(i)?t("div",{staticClass:"xt-list__image"},[t("img",{attrs:{src:e.getImage(i),alt:e.getConfigValue(e.cardConfig.title,i)}})]):e._e(),e.getTag(i)?t("div",{staticClass:"xt-list__tag"},[t("el-tag",{attrs:{size:"small",type:e.getTagType(i)}},[e._v(e._s(e.getTag(i)))])],1):e._e(),e.getConfigValue(e.cardConfig.title,i)?t("div",{staticClass:"xt-list__card-title"},[e._v(" "+e._s(e.getConfigValue(e.cardConfig.title,i))+" ")]):e._e(),e.getConfigValue(e.cardConfig.subtitle,i)?t("div",{staticClass:"xt-list__card-subtitle"},[e._v(" "+e._s(e.getConfigValue(e.cardConfig.subtitle,i))+" ")]):e._e(),e.getConfigValue(e.cardConfig.content,i)?t("div",{staticClass:"xt-list__card-content"},[e._v(" "+e._s(e.getConfigValue(e.cardConfig.content,i))+" ")]):e._e(),e.getConfigValue(e.cardConfig.footer,i)?t("div",{staticClass:"xt-list__card-footer"},[e._t("card-footer",(function(){return[e._v(" "+e._s(e.getConfigValue(e.cardConfig.footer,i))+" ")]}),{item:i,index:e.getItemIndex(i,r)})],2):e._e()]}),{item:i,index:e.getItemIndex(i,r),group:r})],2)],1)})),0):e._e()])]}))]:e.loading?e._e():t("div",{staticClass:"xt-list__empty"},[e._t("empty",(function(){return[t("span",[e._v(e._s(e.emptyText))])]}))],2)],2)]):e.groupedData.length?[e._l(e.groupedData,(function(r){return[t("div",{key:r._key,staticClass:"xt-list__group"},[t("div",{staticClass:"xt-list__group-title",on:{click:function(t){return e.toggleGroup(r._key)}}},[t("span",{staticClass:"xt-list__group-arrow",class:{"is-expanded":r._expanded}},[t("i",{staticClass:"el-icon-arrow-right"})]),e._t("group-title",(function(){return[t("span",{staticClass:"xt-list__group-label"},[e._v(e._s(e.getGroupLabel(r)))]),t("span",{staticClass:"xt-list__group-count"},[e._v("("+e._s(r._items.length)+")")])]}),{group:r,items:r._items,expanded:r._expanded})],2),r._expanded?t("div",{class:["xt-list__cards","xt-list__cols-"+e.columns]},e._l(r._items,(function(i,n){return t("div",{key:i._id||n,staticClass:"xt-list__item",on:{click:function(t){return e.handleItemClick(i,r._key)}}},[t("el-card",{attrs:{shadow:e.shadow,"body-style":e.cardBodyStyle}},[e._t("default",(function(){return[e.getImage(i)?t("div",{staticClass:"xt-list__image"},[t("img",{attrs:{src:e.getImage(i),alt:e.getConfigValue(e.cardConfig.title,i)}})]):e._e(),e.getTag(i)?t("div",{staticClass:"xt-list__tag"},[t("el-tag",{attrs:{size:"small",type:e.getTagType(i)}},[e._v(e._s(e.getTag(i)))])],1):e._e(),e.getConfigValue(e.cardConfig.title,i)?t("div",{staticClass:"xt-list__card-title"},[e._v(" "+e._s(e.getConfigValue(e.cardConfig.title,i))+" ")]):e._e(),e.getConfigValue(e.cardConfig.subtitle,i)?t("div",{staticClass:"xt-list__card-subtitle"},[e._v(" "+e._s(e.getConfigValue(e.cardConfig.subtitle,i))+" ")]):e._e(),e.getConfigValue(e.cardConfig.content,i)?t("div",{staticClass:"xt-list__card-content"},[e._v(" "+e._s(e.getConfigValue(e.cardConfig.content,i))+" ")]):e._e(),e.getConfigValue(e.cardConfig.footer,i)?t("div",{staticClass:"xt-list__card-footer"},[e._t("card-footer",(function(){return[e._v(" "+e._s(e.getConfigValue(e.cardConfig.footer,i))+" ")]}),{item:i,index:n})],2):e._e()]}),{item:i,index:n,group:r})],2)],1)})),0):e._e()])]}))]:e.loading?e._e():t("div",{staticClass:"xt-list__empty"},[e._t("empty",(function(){return[t("span",[e._v(e._s(e.emptyText))])]}))],2),e.loadMore&&e.hasMore&&!e.loading?t("div",{staticClass:"xt-list__loadmore"},[t("el-button",{attrs:{type:"text",loading:e.loadMoreLoading},on:{click:e.handleLoadMore}},[e._v(" "+e._s(e.loadMoreText)+" ")])],1):e._e()],2),e.loading?t("div",{staticClass:"xt-list__loading"},[e._t("loading",(function(){return[t("i",{staticClass:"el-icon-loading"}),t("span",[e._v("加载中...")])]}))],2):e._e(),e.showPagination?t("div",{staticClass:"xt-list__footer"},[t("el-pagination",{attrs:{background:"",small:"","current-page":e.pagination.pageNum,"page-size":e.pagination.pageSize,total:e.total,"page-sizes":e.pagination.pageSizes||[10,20,50],layout:"total, prev, pager, next"},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)},En=[],Dn=(r("f699"),function(){var e=this,t=e._self._c;return t("div",{staticClass:"xt-scroll",class:["xt-scroll--"+e.scrollDirection],style:e.containerStyle},[t("div",{ref:"scrollWrap",staticClass:"xt-scroll__wrap",class:["xt-scroll__wrap--"+e.scrollDirection],on:{scroll:e.onScroll}},[e.vScroll?t("div",{staticClass:"xt-scroll__virtual",style:e.virtualWrapperStyle},["vertical"===e.scrollDirection?t("div",{staticClass:"xt-scroll__phantom",style:{height:e.totalSize+"px"}},[t("div",{style:{transform:`translateY(${e.offsetStart}px)`}},[e._l(e.visibleData,(function(r,i){return[t("div",{key:e.getItemKey(r,i),staticClass:"xt-scroll__item",class:e.itemClassName,style:e.itemStyle},[e._t("item",(function(){return[e._v(" "+e._s(r)+" ")]}),{item:r,index:e.getOriginalIndex(i)})],2)]}))],2)]):"horizontal"===e.scrollDirection?t("div",{staticClass:"xt-scroll__phantom",style:{width:e.totalSize+"px"}},[t("div",{style:{transform:`translateX(${e.offsetStart}px)`}},[e._l(e.visibleData,(function(r,i){return[t("div",{key:e.getItemKey(r,i),staticClass:"xt-scroll__item",class:e.itemClassName,style:e.itemStyle},[e._t("item",(function(){return[e._v(" "+e._s(r)+" ")]}),{item:r,index:e.getOriginalIndex(i)})],2)]}))],2)]):e._e()]):e._e(),!e.vScroll||e.data&&e.data.length||e.loading?e._e():t("div",{staticClass:"xt-scroll__empty"},[e._t("empty",(function(){return[t("span",[e._v(e._s(e.emptyText))])]}))],2),e.loading?t("div",{staticClass:"xt-scroll__loading"},[e._t("loading",(function(){return[t("i",{staticClass:"el-icon-loading"}),t("span",[e._v("加载中...")])]}))],2):e._e(),e.vScroll?e._e():t("div",{staticClass:"xt-scroll__default"},[e._t("default")],2),e.vScroll&&e.showLoadMore&&!e.loading?t("div",{staticClass:"xt-scroll__loadmore",on:{click:e.onLoadMore}},[t("el-button",{attrs:{type:"text",loading:e.loadMoreLoading}},[e._v(" "+e._s(e.loadMoreText)+" ")])],1):e._e()])])}),Pn=[],Bn={name:"XtScroll",props:{vScroll:{type:Boolean,default:!1},data:{type:Array,default:()=>[]},itemSize:{type:Number,default:50},keyField:{type:String,default:"id"},bufferSize:{type:Number,default:5},scrollDirection:{type:String,default:"vertical",validator:e=>["vertical","horizontal"].includes(e)},itemClassName:{type:String,default:""},height:{type:[Number,String],default:""},maxHeight:{type:[Number,String],default:""},width:{type:[Number,String],default:""},maxWidth:{type:[Number,String],default:""},loading:{type:Boolean,default:!1},emptyText:{type:String,default:"暂无数据"},loadMore:{type:Boolean,default:!1},loadMoreText:{type:String,default:"加载更多"},loadMoreLoading:{type:Boolean,default:!1}},data(){return{scrollPos:0,containerSize:0,resizeObserver:null,rafId:null}},computed:{containerStyle(){const e={};return this.height&&(e.height="number"===typeof this.height?this.height+"px":this.height),this.maxHeight&&(e.maxHeight="number"===typeof this.maxHeight?this.maxHeight+"px":this.maxHeight),this.width&&(e.width="number"===typeof this.width?this.width+"px":this.width),this.maxWidth&&(e.maxWidth="number"===typeof this.maxWidth?this.maxWidth+"px":this.maxWidth),e},virtualWrapperStyle(){const e={};return"horizontal"===this.scrollDirection&&(e.height="100%"),e},itemStyle(){return"vertical"===this.scrollDirection?{height:this.itemSize+"px"}:{width:this.itemSize+"px",display:"inline-block"}},dataCount(){return this.data&&this.data.length||0},totalSize(){return this.dataCount*this.itemSize},visibleStartIndex(){if(!this.vScroll)return 0;const e=Math.floor(this.scrollPos/this.itemSize);return Math.max(0,e-this.bufferSize)},visibleEndIndex(){if(!this.vScroll)return this.dataCount;const e=Math.ceil(this.containerSize/this.itemSize),t=Math.ceil(this.scrollPos/this.itemSize)+e;return Math.min(this.dataCount,t+this.bufferSize)},visibleData(){return this.vScroll&&this.data?this.data.slice(this.visibleStartIndex,this.visibleEndIndex):this.data||[]},offsetStart(){return this.visibleStartIndex*this.itemSize},showLoadMore(){return!(!this.loadMore||!this.dataCount)&&("vertical"===this.scrollDirection&&this.scrollPos+this.containerSize>=this.totalSize-2*this.itemSize)}},watch:{data:{handler(){this.$nextTick(()=>{this.updateContainerSize()})}},vScroll(e){e&&this.$nextTick(()=>{this.updateContainerSize(),this.bindResizeObserver()})}},mounted(){this.$nextTick(()=>{this.updateContainerSize(),this.vScroll&&this.bindResizeObserver()})},beforeDestroy(){this.unbindResizeObserver(),this.rafId&&"undefined"!==typeof cancelAnimationFrame&&(cancelAnimationFrame(this.rafId),this.rafId=null)},methods:{onScroll(){const e=this.$refs.scrollWrap;if(!e)return;const t="vertical"===this.scrollDirection?e.scrollTop:e.scrollLeft;this.scrollPos=t,this.$emit("scroll",{scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),this.rafId||"undefined"!==typeof requestAnimationFrame&&(this.rafId=requestAnimationFrame(()=>{this.$forceUpdate(),this.rafId=null}))},getItemKey(e,t){return e&&"object"===typeof e&&this.keyField&&null!=e[this.keyField]?e[this.keyField]:"vitem_"+(this.visibleStartIndex+t)},getOriginalIndex(e){return this.visibleStartIndex+e},updateContainerSize(){const e=this.$refs.scrollWrap;e&&(this.containerSize="vertical"===this.scrollDirection?e.clientHeight:e.clientWidth)},bindResizeObserver(){if("undefined"===typeof ResizeObserver)return;this.unbindResizeObserver();const e=this.$refs.scrollWrap;e&&(this.resizeObserver=new ResizeObserver(()=>{this.updateContainerSize()}),this.resizeObserver.observe(e))},unbindResizeObserver(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)},onLoadMore(){this.$emit("load-more")},getScrollContainer(){return this.$refs.scrollWrap},scrollTo(e,t){const r=this.$refs.scrollWrap;if(!r)return;const i=t&&"string"===typeof t?{behavior:t}:{behavior:"smooth"};"vertical"===this.scrollDirection?r.scrollTo({top:e,...i}):r.scrollTo({left:e,...i})},scrollToItem(e){const t=e*this.itemSize;this.scrollTo(t)},scrollToStart(){this.scrollTo(0)},scrollToEnd(){this.scrollTo(this.totalSize)},getScrollPos(){return this.scrollPos}}},Rn=Bn,Fn=Object(le["a"])(Rn,Dn,Pn,!1,null,null,null),jn=Fn.exports;jn.install=function(e){e.component(jn.name,jn)};var Xn=jn;const Hn=160,Kn=44;var Vn={name:"XtList",components:{XtScroll:Xn},props:{data:{type:Array,default:()=>[]},groupBy:{type:String,default:""},groupLabel:{type:[String,Function],default:""},cardConfig:{type:Object,default:()=>({title:"title",subtitle:"",content:"",image:"",tag:"",tagType:"",footer:""})},title:{type:String,default:""},columns:{type:Number,default:1},shadow:{type:String,default:"hover"},cardBodyStyle:{type:Object,default:()=>({})},virtualScroll:{type:Boolean,default:!1},itemHeight:{type:Number,default:Hn},bufferSize:{type:Number,default:3},height:{type:[Number,String],default:null},maxHeight:{type:[Number,String],default:null},expandAll:{type:Boolean,default:!0},accordion:{type:Boolean,default:!1},pagination:{type:Object,default:null},total:{type:Number,default:0},loadMore:{type:Boolean,default:!1},hasMore:{type:Boolean,default:!1},loadMoreText:{type:String,default:"加载更多"},loadMoreLoading:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},emptyText:{type:String,default:"暂无数据"},filterable:{type:Boolean,default:!1},filterPlaceholder:{type:String,default:"请输入搜索内容"},filterMethod:{type:Function,default:null},sortable:{type:Boolean,default:!1},sortBy:{type:String,default:""},sortOrder:{type:String,default:""},sortMethod:{type:Function,default:null}},data(){return{groupExpandState:{},scrollTop:0,containerHeight:0,resizeObserver:null,rafId:null,searchText:"",currentSortOrder:this.sortOrder||""}},computed:{showPagination(){return this.pagination&&this.total>0},sortLabel(){return this.currentSortOrder?"ascending"===this.currentSortOrder?"升序":"降序":"排序"},bodyStyle(){const e={};return this.height&&(e.height="number"===typeof this.height?this.height+"px":this.height),this.maxHeight&&(e.maxHeight="number"===typeof this.maxHeight?this.maxHeight+"px":this.maxHeight),this.virtualScroll&&(e.overflowY="auto",e.overflowX="hidden"),e},filteredData(){return this.filterable&&this.searchText?this.data.filter(e=>"function"===typeof this.filterMethod?this.filterMethod(e,this.searchText):Object.values(e).some(e=>null!=e&&String(e).toLowerCase().includes(this.searchText.toLowerCase()))):this.data},sortedData(){if(!this.sortable||!this.sortBy||!this.currentSortOrder)return this.filteredData;const e="ascending"===this.currentSortOrder?1:-1,t="function"===typeof this.sortMethod?this.sortMethod:(e,t)=>{const r=e[this.sortBy],i=t[this.sortBy];return null==r&&null==i?0:null==r?-1:null==i?1:"number"===typeof r&&"number"===typeof i?r-i:String(r).localeCompare(String(i),void 0,{numeric:!0})};return[...this.filteredData].sort((r,i)=>t(r,i)*e)},groupedData(){const e=this.sortedData;if(!e||!e.length)return[];if(!this.groupBy)return[{_key:"_default",_items:e.map((e,t)=>({...e,_id:e._id||"item_"+t})),_expanded:!0}];const t={};e.forEach((e,r)=>{const i=e[this.groupBy],n=null!=i?String(i):"_undefined";t[n]||(t[n]={_key:n,_value:i,_items:[]}),t[n]._items.push({...e,_id:e._id||"item_"+r})});const r=Object.keys(t).sort().map(e=>{const r=t[e];return r._expanded=void 0!==this.groupExpandState[e]?this.groupExpandState[e]:this.expandAll,r});return r},totalHeight(){if(!this.virtualScroll)return 0;let e=0;return this.groupedData.forEach(t=>{if(e+=Kn,t._expanded){const r=Math.ceil(t._items.length/this.columns);e+=r*this.itemHeight}}),e},visibleGroups(){if(!this.virtualScroll)return this.groupedData;const e=Math.max(0,this.scrollTop-this.bufferSize*this.itemHeight),t=e+this.containerHeight+this.bufferSize*this.itemHeight*2,r=[];let i=0;return this.groupedData.forEach(n=>{const a=Kn+(n._expanded?Math.ceil(n._items.length/this.columns)*this.itemHeight:0),o=i+a;o>=e&&i<=t&&r.push(n),i=o}),r},offsetY(){if(!this.virtualScroll)return 0;let e=0;const t=Math.max(0,this.scrollTop-this.bufferSize*this.itemHeight);for(let r=0;r<this.groupedData.length;r++){const i=this.groupedData[r],n=Kn+(i._expanded?Math.ceil(i._items.length/this.columns)*this.itemHeight:0);if(!(e+n<=t))break;e+=n}return e}},watch:{data:{handler(){this.$nextTick(()=>{this.updateContainerHeight()})}},expandAll(e){const t={};this.groupedData.forEach(r=>{t[r._key]=e}),this.groupExpandState=t}},mounted(){this.$nextTick(()=>{this.updateContainerHeight(),this.bindResizeObserver()})},beforeDestroy(){this.unbindResizeObserver(),this.rafId&&"undefined"!==typeof cancelAnimationFrame&&(cancelAnimationFrame(this.rafId),this.rafId=null)},methods:{toggleGroup(e){const t={...this.groupExpandState},r=void 0!==t[e]?t[e]:this.expandAll;this.accordion&&!r&&Object.keys(t).forEach(e=>{t[e]=!1}),t[e]=!r,this.groupExpandState=t,this.$nextTick(()=>{this.updateContainerHeight(),this.$emit("group-toggle",{key:e,expanded:t[e]})})},getGroupLabel(e){return""===this.groupLabel?e._value:"function"===typeof this.groupLabel?this.groupLabel(e):"string"===typeof this.groupLabel&&e._items[0]&&e._items[0][this.groupLabel]||e._value},getConfigValue(e,t){return e?"function"===typeof e?e(t):"string"===typeof e&&t[e]||"":""},getImage(e){return this.getConfigValue(this.cardConfig.image,e)},getTag(e){return this.getConfigValue(this.cardConfig.tag,e)},getTagType(e){return this.cardConfig.tagType?"function"===typeof this.cardConfig.tagType?this.cardConfig.tagType(e):this.cardConfig.tagType:""},getVisibleItems(e){if(!this.virtualScroll)return e._items;const t=this.bufferSize*this.itemHeight,r=Math.max(0,this.scrollTop-t),i=r+this.containerHeight+2*t;let n=0,a=0;for(let c=0;c<this.groupedData.length;c++){const t=this.groupedData[c];if(t._key===e._key){a=n+Kn;break}n+=Kn+(t._expanded?Math.ceil(t._items.length/this.columns)*this.itemHeight:0)}const o=a+Math.ceil(e._items.length/this.columns)*this.itemHeight;if(o<=r||a>=i)return[];const l=Math.max(0,Math.floor((r-a)/this.itemHeight)*this.columns),s=Math.min(e._items.length,Math.ceil((i-a)/this.itemHeight)*this.columns+t);return e._items.slice(Math.max(0,l),s)},getItemIndex(e,t){return t._items.indexOf(e)},onScroll(e){this.virtualScroll&&(this.scrollTop=e&&null!=e.scrollTop?e.scrollTop:0,this.rafId||"undefined"!==typeof requestAnimationFrame&&(this.rafId=requestAnimationFrame(()=>{this.$forceUpdate(),this.rafId=null})))},updateContainerHeight(){if(this.$refs.scrollContainer){const e=this.$refs.scrollContainer,t=e.getScrollContainer&&e.getScrollContainer();this.containerHeight=t?t.clientHeight:0}},bindResizeObserver(){if("undefined"===typeof ResizeObserver)return;const e=this.$refs.scrollContainer;if(!e)return;const t=e.getScrollContainer&&e.getScrollContainer();t&&(this.resizeObserver=new ResizeObserver(()=>{this.updateContainerHeight()}),this.resizeObserver.observe(t))},unbindResizeObserver(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)},handleSearch(){this.$emit("search",this.searchText)},handleSortToggle(){const e=["","ascending","descending"],t=e.indexOf(this.currentSortOrder);this.currentSortOrder=e[(t+1)%3],this.$emit("sort-change",{prop:this.sortBy,order:this.currentSortOrder})},handleItemClick(e,t){this.$emit("click-item",{item:e,groupKey:t})},handleLoadMore(){this.$emit("load-more")},handleSizeChange(e){this.$emit("size-change",e)},handleCurrentChange(e){this.$emit("page-change",e)},scrollToTop(){this.$refs.scrollContainer&&this.$refs.scrollContainer.scrollToStart&&this.$refs.scrollContainer.scrollToStart()},expandGroup(e){const t={...this.groupExpandState};t[e]=!0,this.groupExpandState=t},collapseGroup(e){const t={...this.groupExpandState};t[e]=!1,this.groupExpandState=t},collapseAll(){const e={};this.groupedData.forEach(t=>{e[t._key]=!1}),this.groupExpandState=e},expandAllGroups(){this.groupExpandState={}}}},Un=Vn,Wn=(r("52fd"),Object(le["a"])(Un,On,En,!1,null,"084d1476",null)),Yn=Wn.exports;Yn.install=function(e){e.component(Yn.name,Yn)};var qn=Yn,Zn=(r("4e56"),function(){var e=this,t=e._self._c;return t("div",{staticClass:"xt-scroll-arrow",class:["xt-scroll-arrow--"+e.direction],style:e.containerStyle},[e.showLeftArrow?t("div",{staticClass:"xt-scroll-arrow__btn xt-scroll-arrow__btn--left",on:{click:e.scrollLeft}},[t("i",{staticClass:"el-icon-arrow-left"})]):e._e(),e.showTopArrow&&"vertical"===e.direction?t("div",{staticClass:"xt-scroll-arrow__btn xt-scroll-arrow__btn--top",on:{click:e.scrollTop}},[t("i",{staticClass:"el-icon-arrow-up"})]):e._e(),t("xt-scroll",{ref:"scrollRef",class:["xt-scroll-arrow__content",e.scrollClass],attrs:{"v-scroll":e.vScroll,data:e.vScrollData,"item-size":e.itemSize,"key-field":e.keyField,"buffer-size":e.bufferSize,"scroll-direction":e.direction,loading:e.vScrollLoading,"load-more":e.loadMore,"load-more-text":e.loadMoreText,"load-more-loading":e.loadMoreLoading},on:{scroll:e.onScroll,"load-more":function(t){return e.$emit("load-more")}},scopedSlots:e._u([e.vScroll?{key:"item",fn:function({item:r,index:i}){return[e._t("vitem",(function(){return[t("div",{staticClass:"xt-scroll-arrow__vitem"},[e._v(e._s(r))])]}),{item:r,index:i})]}}:{key:"default",fn:function(t){return e._t("default")}}],null,!0)}),e.showRightArrow?t("div",{staticClass:"xt-scroll-arrow__btn xt-scroll-arrow__btn--right",on:{click:e.scrollRight}},[t("i",{staticClass:"el-icon-arrow-right"})]):e._e(),e.showBottomArrow&&"vertical"===e.direction?t("div",{staticClass:"xt-scroll-arrow__btn xt-scroll-arrow__btn--bottom",on:{click:e.scrollBottom}},[t("i",{staticClass:"el-icon-arrow-down"})]):e._e()],1)}),Gn=[],Jn={name:"XtScrollArrow",components:{XtScroll:Xn},props:{direction:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].includes(e)},scrollStep:{type:Number,default:100},autoHide:{type:Boolean,default:!0},height:{type:[String,Number],default:""},width:{type:[String,Number],default:""},appendMode:{type:Boolean,default:!1},clickMode:{type:Boolean,default:!1},vScroll:{type:Boolean,default:!1},vScrollData:{type:Array,default:()=>[]},itemSize:{type:Number,default:50},keyField:{type:String,default:"id"},bufferSize:{type:Number,default:5},vScrollLoading:{type:Boolean,default:!1},loadMore:{type:Boolean,default:!1},loadMoreText:{type:String,default:"加载更多"},loadMoreLoading:{type:Boolean,default:!1}},data(){return{showLeftArrow:!1,showRightArrow:!1,showTopArrow:!1,showBottomArrow:!1,mutationObserver:null}},computed:{containerStyle(){const e={};return this.height&&(e.height="number"===typeof this.height?this.height+"px":this.height),this.width&&(e.width="number"===typeof this.width?this.width+"px":this.width),e},scrollClass(){return this.vScroll?"xt-scroll-arrow__content--virtual":""}},watch:{direction(){this.$nextTick(()=>{this.checkScroll()})},vScrollData:{handler(){this.$nextTick(()=>{this.checkScroll()})}}},mounted(){this.$nextTick(()=>{this.checkScroll()}),this.addResizeObserver(),this.vScroll||this.addMutationObserver()},beforeDestroy(){this.removeResizeObserver(),this.removeMutationObserver()},methods:{addResizeObserver(){if("undefined"!==typeof ResizeObserver){this.resizeObserver=new ResizeObserver(()=>{this.$nextTick(()=>{this.checkScroll()})});const e=this.$el;e&&this.resizeObserver.observe(e)}},removeResizeObserver(){this.resizeObserver&&this.resizeObserver.disconnect()},addMutationObserver(){if("undefined"!==typeof MutationObserver){this.mutationObserver=new MutationObserver(()=>{this.$nextTick(()=>{this.checkScroll(),this.appendMode&&this.scrollToEnd()})});const e=this.$refs.scrollRef;if(e){const t=e.getScrollContainer&&e.getScrollContainer();t&&this.mutationObserver.observe(t,{childList:!0,subtree:!0})}}},removeMutationObserver(){this.mutationObserver&&this.mutationObserver.disconnect()},checkScroll(){const e=this.$refs.scrollRef;if(!e)return;const t=e.getScrollContainer&&e.getScrollContainer();if(t)if("horizontal"===this.direction){const e=t.scrollLeft,r=t.scrollWidth,i=t.clientWidth,n=r-i;this.showTopArrow=!1,this.showBottomArrow=!1,this.autoHide?(this.showLeftArrow=e>0,this.showRightArrow=n>0&&e<n-1):(this.showLeftArrow=n>0,this.showRightArrow=n>0)}else{const e=t.scrollTop,r=t.scrollHeight,i=t.clientHeight,n=r-i;this.showLeftArrow=!1,this.showRightArrow=!1,this.autoHide?(this.showTopArrow=e>0,this.showBottomArrow=n>0&&e<n-1):(this.showTopArrow=n>0,this.showBottomArrow=n>0)}},onScroll(){this.checkScroll(),this.$emit("scroll",this.$refs.scrollRef)},scrollLeft(){this._scrollBy(-this.scrollStep)},scrollRight(){this._scrollBy(this.scrollStep)},scrollTop(){this._scrollBy(-this.scrollStep,"vertical")},scrollBottom(){this._scrollBy(this.scrollStep,"vertical")},_scrollBy(e,t){const r=t||this.direction,i=this.$refs.scrollRef;if(!i)return;const n=i.getScrollContainer&&i.getScrollContainer();n&&("horizontal"===r?n.scrollBy({left:e,behavior:"smooth"}):n.scrollBy({top:e,behavior:"smooth"}))},scrollToEnd(){const e=this.$refs.scrollRef;if(!e)return;const t=e.getScrollContainer&&e.getScrollContainer();t&&("horizontal"===this.direction?t.scrollTo({left:t.scrollWidth,behavior:"smooth"}):t.scrollTo({top:t.scrollHeight,behavior:"smooth"}))},getScrollPos(){const e=this.$refs.scrollRef;if(!e)return 0;const t=e.getScrollContainer&&e.getScrollContainer();return t?"horizontal"===this.direction?t.scrollLeft:t.scrollTop:0},getScrollInstance(){return this.$refs.scrollRef}}},Qn=Jn,ea=Object(le["a"])(Qn,Zn,Gn,!1,null,null,null),ta=ea.exports;ta.install=function(e){e.component(ta.name,ta)};var ra=ta,ia=function(){var e=this,t=e._self._c;return t("div",{staticClass:"xt-page-container",class:e.containerClass,style:e.rootCssVars},[t("el-container",{staticClass:"xt-page-main-wrap"},[e.$slots.header&&e.showHeader?t("el-header",{ref:"header",staticClass:"xt-page-header",class:e.headerClass},[e._t("header")],2):e._e(),t("el-main",{ref:"main",staticClass:"xt-page-main",class:e.mainClass},[e._t("default",null,{tableHeight:e.tableContentHeight})],2),e.$slots.footer&&e.showFooter?t("el-footer",{ref:"footer",staticClass:"xt-page-footer",class:e.footerClass},[e._t("footer")],2):e._e()],1),e.$slots.aside&&e.showAside?t("el-aside",{ref:"aside",staticClass:"xt-page-aside",class:e.asideClass,attrs:{width:e.asideWidth}},[e._t("aside")],2):e._e(),e._t("dialog")],2)},na=[],aa={name:"XtPage",props:{showHeader:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0},showAside:{type:Boolean,default:!0},asideWidth:{type:String,default:"240px"},diffHeight:{type:Number,default:0},minTableHeight:{type:Number,default:200},tableBorderHeight:{type:Number,default:1},containerClass:{type:String,default:""},headerClass:{type:String,default:""},mainClass:{type:String,default:""},asideClass:{type:String,default:""},footerClass:{type:String,default:""}},data(){return{rawMainHeight:0,resizeTimer:null}},computed:{rootCssVars(){return{"--xt-page-aside-width":this.asideWidth}},tableContentHeight(){const e=this.rawMainHeight-this.diffHeight-this.tableBorderHeight;return Math.max(e,this.minTableHeight)}},mounted(){this.$nextTick(()=>this.calcMainHeight()),window.addEventListener("resize",this.handleResize)},beforeDestroy(){clearTimeout(this.resizeTimer),window.removeEventListener("resize",this.handleResize)},methods:{handleResize(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{this.calcMainHeight()},120)},calcMainHeight(){if(!this.$refs.main||!this.$refs.main.$el)return;const e=this.$refs.main.$el.getBoundingClientRect();this.rawMainHeight=e.height}}},oa=aa,la=(r("c32d"),Object(le["a"])(oa,ia,na,!1,null,"a1f6b910",null)),sa=la.exports;sa.install=function(e){e.component(sa.name,sa)};var ca=sa,da=function(){var e=this,t=e._self._c;return t("div",{staticClass:"el-select select-tree"},[t("el-popover",{ref:"elPopover",attrs:{transition:"el-zoom-in-top","popper-class":"select-tree__popover",trigger:"click",disabled:e.disabled,placement:e.placement,width:e.popoverWidth},on:{"after-enter":e.handleScroll,show:e.handleFocus,hide:e.handleBlur},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[t("el-scrollbar",{ref:"scrollbar",attrs:{"wrap-class":"el-select-dropdown__wrap","view-class":"el-select-dropdown__list"}},[t("el-tree",{ref:"elTree",staticClass:"select-tree__list",style:{minWidth:e.minWidth+"px"},attrs:{"default-expand-keys":e.defaultExpandKeys,"show-checkbox":e.multiple,"expand-on-click-node":e.multiple,data:e.data,props:e.props,"node-key":e.propsValue,"default-expand-all":e.defaultExpandAll,"check-strictly":e.checkStrictly,lazy:e.lazy,load:e.load,"icon-class":e.iconClass,"highlight-current":e.highlightCurrent,indent:e.indent,accordion:e.accordion,"filter-node-method":e.filterNodeMethod,"auto-expand-parent":e.autoExpandParent,"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand},on:{"check-change":e.checkChange,"node-click":e.nodeClick},nativeOn:{transitionend:function(t){return e.$refs.elPopover.updatePopper()}},scopedSlots:e._u([{key:"default",fn:function({data:r}){return t("div",{staticClass:"select-tree__item",class:e.treeItemClass(r)},[e._v(" "+e._s(r[e.propsLabel])+" ")])}}])})],1),t("el-input",{ref:"reference",class:{"is-active":e.visible,"is-selected":e.selectedLabel},attrs:{slot:"reference",clearable:e.clearable,readonly:!e.filterable,"validate-event":!1,size:e.size,disabled:e.disabled,placeholder:e.query||e.placeholder},on:{input:e.getTreeFilter,clear:e.clear},slot:"reference",model:{value:e.selectedLabel,callback:function(t){e.selectedLabel=t},expression:"selectedLabel"}},[t("i",{staticClass:"el-input__icon el-input__icon-arrow-down el-icon-arrow-down",attrs:{slot:"suffix"},slot:"suffix"})])],1)],1)},ha=[],ua=r("d010"),pa=r.n(ua),fa=r("4010"),ma={name:"XtSelectTree",mixins:[pa.a],inheritAttrs:!1,model:{prop:"value",event:"change"},props:{data:{type:Array,default(){return[]}},props:{type:Object,default:()=>({value:"value",label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf"})},checkStrictly:Boolean,nodeKey:String,defaultExpandAll:Boolean,lazy:Boolean,load:Function,iconClass:String,indent:Number,accordion:Boolean,filterNodeMethod:{type:Function,default(e,t,r){return!e||-1!==r.label.indexOf(e)}},autoExpandParent:{type:Boolean,default:!0},renderContent:Function,renderAfterExpand:Boolean,clearable:Boolean,placeholder:{type:String,default:"请选择"},placement:{type:String,default:"bottom-start"},size:{type:String,default:""},disabled:Boolean,highlightCurrent:{default:!0,type:Boolean},filterable:{type:Boolean,default:!0},multiple:Boolean,value:{type:[Number,String,Array],default:""},defaultValue:{type:[Number,String,Array],default:""},nodeAbleClick:{type:Function,default(){return(e,t)=>!0}},popoverWidth:Number,checkLeafOnly:{default:!1,type:Boolean},includeHalfChecked:{default:!1,type:Boolean}},data(){return{timer:null,selectedLabel:"",minWidth:0,visible:!1,query:""}},computed:{triggerEventImmediate(){return this.defaultValue==this.value},propsValue(){return this.nodeKey||this.props.value||"value"},propsLabel(){return this.props.label||"label"},propsIsLeaf(){return this.props.isLeaf||"isLeaf"},defaultExpandKeys(){return Array.isArray(this.value)?this.value:this.value||0===this.value?[this.value]:[]}},watch:{value:{handler(){this.setSelected(this.triggerEventImmediate),this.dispatch("ElFormItem","el.form.change")}},data(){this.setSelected()}},created(){if(this.multiple&&!Array.isArray(this.value))throw new Error("[select-tree] props value must be array if use multiple")},mounted(){this.$nextTick(()=>{this.setSelected()}),Object(fa["addResizeListener"])(this.$el,this.handleResize)},beforeDestroy(){this.$el&&this.handleResize&&Object(fa["removeResizeListener"])(this.$el,this.handleResize)},methods:{getTreeFilter(e){this.$refs.elTree&&this.$refs.elTree.filter(e)},handleFocus(){this.filterable&&(this.$refs.elTree.filter(""),this.query=this.selectedLabel,this.selectedLabel="")},handleBlur(){this.filterable&&(this.selectedLabel=this.query,this.$refs.reference.blur())},valueChange(e,t){this.$emit("change",e,t)},clear(){this.visible=!1,this.multiple?(this.valueChange([]),this.$nextTick(()=>{this.$refs.elTree.setCheckedKeys([])})):this.valueChange(""),this.$emit("clear")},handleScroll(){this.$refs.scrollbar&&this.$refs.scrollbar.handleScroll()},nodeClick(e,t,r){const i=e[this.propsValue];this.nodeAbleClick(e,t)&&(this.valueChange(i,e),this.selectedLabel=e[this.propsLabel],this.multiple||e.disabled||(this.visible=!1))},checkChange(e,t,r){this.timer&&clearTimeout(this.timer),this.timer=setTimeout(()=>{const e=this.$refs.elTree,t=this.checkLeafOnly,r=this.includeHalfChecked,i=e.getCheckedNodes(t,r),n=e.getCheckedKeys(t);this.valueChange(n,i),this.setMultipleSelectedLabel()},50)},setSelected(e){this.$nextTick(()=>{const t=this.$refs.elTree;if(this.multiple)t.setCheckedKeys(this.value),this.setMultipleSelectedLabel(),e&&this.checkChange();else if(this.value){const r=t.getNode(this.value);t.setCurrentKey(this.value),r&&r.visible&&!this.lazy&&(r.isLeaf?r.parent.expand():r.expand()),this.selectedLabel=r?r.data[this.propsLabel]:"",e&&this.valueChange(this.value,r)}else t.setCurrentKey(""),this.selectedLabel="",e&&this.valueChange("")})},setMultipleSelectedLabel(){const e=this.$refs.elTree,t=e.getCheckedNodes(!this.checkStrictly);this.selectedLabel=t.map(e=>e[this.propsLabel]).join(",")},treeItemClass(e){return{"is-selected":!this.multiple&&e[this.propsValue]===this.value,"is-disabled":e.disabled}},handleResize(){this.minWidth=this.$el.clientWidth-2},getNodeById(e){return this.$refs.elTree.getNode(e)}}},ga=ma,ya=(r("439a"),r("916e"),Object(le["a"])(ga,da,ha,!1,null,"962f42c0",null)),ba=ya.exports;ba.install=function(e){e.component(ba.name,ba)};var va=ba,_a=function(){var e=this,t=e._self._c;return t("XtFlexBox",{attrs:{type:"inline-flex",gap:"5px"}},[e.action?t("el-upload",{ref:"uploadFile",attrs:{disabled:e.disabled||e.uploading,action:e.YSSQP+e.action,"file-list":e.fileList,data:{accessToken:e.accessToken,...e.data},multiple:e.multiple,limit:e.limit,"on-success":e.uploadSuccess,"show-file-list":!1,"auto-upload":e.autoUpload,"before-upload":e.uploadBefore,accept:e.accept}},[t("span",{staticStyle:{"font-size":"20px",padding:"20px",background:"#f0f0f1",color:"#409EFF"},style:{padding:e.plusPx/2+"px",cursor:e.disabled?"not-allowed":"pointer"}},[e._t("default",(function(){return[t("i",{class:e.icon})]}))],2)]):e._e(),null!==e.fileList&&e.fileList.length>0?t("XtFlexBox",{staticClass:"el-upload-list el-upload-list--picture-card",staticStyle:{flex:"1"},attrs:{gap:"5px",wrap:"wrap"}},e._l(e.fileList,(function(r,i){return t("li",{key:i,staticClass:"el-upload-list__item is-ready",staticStyle:{margin:"0",width:"62px",height:"62px"},style:{width:e.plusPx+22+"px",height:e.plusPx+22+"px"}},[t("el-image",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:e.YSSQP+"/"+r,alt:""},on:{click:e.clickHandler}}),t("span",{staticClass:"el-upload-list__item-actions",on:{click:function(t){return e.preShowPicture(r,i)}}},[t("span",{staticClass:"el-upload-list__item-preview",on:{click:function(t){return t.stopPropagation(),e.preShowPicture(r,i)}}},[t("i",{staticClass:"el-icon-zoom-in"})]),e.uploading||e.disabled?e._e():t("span",{staticClass:"el-upload-list__item-delete",staticStyle:{"margin-left":"0"},on:{click:function(t){return t.stopPropagation(),e.handleRemove(i)}}},[t("i",{staticClass:"el-icon-delete"})])])],1)})),0):e._e(),e.preview?[e.previewVisible?t("ImageViewer",{attrs:{"z-index":3e3,"base-url":e.baseUrl+"/",infiniteLoop:!1,"initial-index":e.imageIndex,"url-list":e.allFileList||e.fileList,"on-close":e.closeViewer}}):e._e()]:e._e()],2)},xa=[],wa=function(){var e=this,t=e._self._c;return t("transition",{attrs:{name:"viewer-fade"}},[t("div",{ref:"el-image-viewer__wrapper",staticClass:"el-image-viewer__wrapper",style:{"z-index":e.zIndex},attrs:{tabindex:"-1"}},[t("div",{staticClass:"el-image-viewer__mask",on:{click:e.hide}}),t("span",{staticClass:"el-image-viewer__btn fix_close",on:{click:e.hide}},[t("i",{staticClass:"el-icon-close"})]),e.isSingle?e._e():[t("span",{staticClass:"el-image-viewer__btn el-image-viewer__prev",class:{"is-disabled":!e.infinite&&e.isFirst},on:{click:e.prev}},[t("i",{staticClass:"el-icon-arrow-left"})]),t("span",{staticClass:"el-image-viewer__btn el-image-viewer__next",class:{"is-disabled":!e.infinite&&e.isLast},on:{click:e.next}},[t("i",{staticClass:"el-icon-arrow-right"})])],t("div",{staticClass:"el-image-viewer__btn el-image-viewer__actions"},[t("div",{staticClass:"el-image-viewer__actions__inner"},[t("i",{staticClass:"el-icon-zoom-out",on:{click:function(t){return t.stopPropagation(),e.handleActions("zoomOut")}}}),t("i",{staticClass:"el-icon-zoom-in",on:{click:function(t){return t.stopPropagation(),e.handleActions("zoomIn")}}}),t("i",{staticClass:"el-image-viewer__actions__divider"}),t("i",{class:e.mode.icon,on:{click:function(t){return t.stopPropagation(),e.toggleMode.apply(null,arguments)}}}),t("i",{staticClass:"el-image-viewer__actions__divider"}),t("i",{staticClass:"el-icon-refresh-left",on:{click:function(t){return t.stopPropagation(),e.handleActions("anticlocelise")}}}),t("i",{staticClass:"el-icon-refresh-right",on:{click:function(t){return t.stopPropagation(),e.handleActions("clocelise")}}})])]),t("div",{staticClass:"el-image-viewer__canvas"},e._l(e.urlList,(function(r,i){return i===e.index?t("img",{key:r,ref:"img",refInFor:!0,staticClass:"el-image-viewer__img",style:e.imgStyle,attrs:{src:e.currentImg},on:{load:e.handleImgLoad,error:e.handleImgError,mousedown:e.handleMouseDown}}):e._e()})),0)],2)])},Ca=[],Sa=r("8bbf"),ka=r.n(Sa);const Ta=ka.a.prototype.$isServer,Ma=(Ta||Number(document.documentMode),function(){return!Ta&&document.addEventListener?function(e,t,r){e&&t&&r&&e.addEventListener(t,r,!1)}:function(e,t,r){e&&t&&r&&e.attachEvent("on"+t,r)}}()),za=function(){return!Ta&&document.removeEventListener?function(e,t,r){e&&t&&e.removeEventListener(t,r,!1)}:function(e,t,r){e&&t&&e.detachEvent("on"+t,r)}}();let $a=e=>{var t={};return e&&"[object Function]"===t.toString.call(e)};"object"===typeof Int8Array||!ka.a.prototype.$isServer&&"function"===typeof document.childNodes||($a=function(e){return"function"===typeof e||!1});Object.prototype.hasOwnProperty;const Ia=function(){return!ka.a.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)};function La(e){let t=!1;return function(...r){t||(t=!0,window.requestAnimationFrame(i=>{e.apply(this,r),t=!1}))}}const Aa={CONTAIN:{name:"contain",icon:"el-icon-full-screen"},ORIGINAL:{name:"original",icon:"el-icon-c-scale-to-original"}},Na=Ia()?"DOMMouseScroll":"mousewheel";var Oa={name:"elImageViewer",props:{baseUrl:{type:String,default:""},urlList:{type:Array,default:()=>[]},zIndex:{type:Number,default:2e3},onSwitch:{type:Function,default:()=>{}},onClose:{type:Function,default:()=>{}},initialIndex:{type:Number,default:0},infiniteLoop:{type:Boolean,default:!0}},data(){return{index:this.initialIndex,isShow:!1,infinite:this.infiniteLoop,loading:!1,mode:Aa.CONTAIN,transform:{scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}},computed:{isSingle(){return this.urlList.length<=1},isFirst(){return 0===this.index},isLast(){return this.index===this.urlList.length-1},currentImg(){return this.baseUrl+this.urlList[this.index]},imgStyle(){const{scale:e,deg:t,offsetX:r,offsetY:i,enableTransition:n}=this.transform,a={transform:`scale(${1*e}) rotate(${t}deg)`,transition:n?"transform .3s":"","margin-left":r+"px","margin-top":i+"px"};return this.mode===Aa.CONTAIN&&(a.maxWidth=a.maxHeight="80%"),a}},watch:{index:{handler:function(e){this.reset(),this.onSwitch(e)}},currentImg(e){this.$nextTick(e=>{const t=this.$refs.img[0];t.complete||(this.loading=!0)})}},methods:{hide(){this.deviceSupportUninstall(),this.onClose()},deviceSupportInstall(){this._keyDownHandler=La(e=>{const t=e.keyCode;switch(t){case 27:this.hide();break;case 32:this.toggleMode();break;case 37:this.prev();break;case 38:this.handleActions("zoomIn");break;case 39:this.next();break;case 40:this.handleActions("zoomOut");break}}),this._mouseWheelHandler=La(e=>{const t=e.wheelDelta?e.wheelDelta:-e.detail;t>0?this.handleActions("zoomIn",{zoomRate:.015,enableTransition:!1}):this.handleActions("zoomOut",{zoomRate:.015,enableTransition:!1})}),Ma(document,"keydown",this._keyDownHandler),Ma(document,Na,this._mouseWheelHandler)},deviceSupportUninstall(){za(document,"keydown",this._keyDownHandler),za(document,Na,this._mouseWheelHandler),this._keyDownHandler=null,this._mouseWheelHandler=null},handleImgLoad(e){this.loading=!1},handleImgError(e){this.loading=!1,e.target.alt="加载失败"},handleMouseDown(e){if(this.loading||0!==e.button)return;const{offsetX:t,offsetY:r}=this.transform,i=e.pageX,n=e.pageY;this._dragHandler=La(e=>{this.transform.offsetX=t+e.pageX-i,this.transform.offsetY=r+e.pageY-n}),Ma(document,"mousemove",this._dragHandler),Ma(document,"mouseup",e=>{za(document,"mousemove",this._dragHandler)}),e.preventDefault()},reset(){this.transform={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}},toggleMode(){if(this.loading)return;const e=Object.keys(Aa),t=Object.values(Aa),r=t.indexOf(this.mode),i=(r+1)%e.length;this.mode=Aa[e[i]],this.reset()},prev(){if(this.isFirst&&!this.infinite)return;const e=this.urlList.length;this.index=(this.index-1+e)%e},next(){if(this.isLast&&!this.infinite)return;const e=this.urlList.length;this.index=(this.index+1)%e},handleActions(e,t={}){if(this.loading)return;const{zoomRate:r,rotateDeg:i,enableTransition:n}={zoomRate:.2,rotateDeg:90,enableTransition:!0,...t},{transform:a}=this;switch(e){case"zoomOut":a.scale>.2&&(a.scale=parseFloat((a.scale-r).toFixed(3)));break;case"zoomIn":a.scale<10&&(a.scale=parseFloat((a.scale+r).toFixed(3)));break;case"clocelise":a.deg+=i;break;case"anticlocelise":a.deg-=i;break}a.enableTransition=n}},mounted(){this.deviceSupportInstall(),this.$refs["el-image-viewer__wrapper"].focus()}},Ea=Oa,Da=(r("2c86"),Object(le["a"])(Ea,wa,Ca,!1,null,"236adf7f",null)),Pa=Da.exports,Ba={name:"XtUpload",components:{ImageViewer:Pa},model:{prop:"src",event:"change"},props:{data:{type:Object,default:()=>({})},src:{type:String,default:"",required:!0},accessToken:{type:String,default:""},autoUpload:{type:Boolean,default:!0},action:{type:String,default:""},baseUrl:{type:String,default:""},multiple:{type:Boolean,default:!1},accept:{type:String,default:".jpg,.jpeg,.png"},limit:{type:Number,default:5},disabled:{type:Boolean,default:!1},size:{type:String,default:""},beforeEmitData:{type:Function,default:(e,t,r)=>200==e.code&&(e.data.Result?e.data.Data:e.data[0])},allFileList:{type:Array},icon:{type:String,default:"el-icon-camera"}},data(){return{YSSQP:this.baseUrl,previewVisible:!1,uploading:!1,imageUrl:"",fileList:[],imageIndex:0}},computed:{preview(){const{fileList:e}=this;return Array.isArray(e)&&e.length>0},plusPx(){const e="big"==this.size?100:20;return 2*e}},watch:{src:{immediate:!0,deep:!0,handler(e){this.fileList=e?e.split(","):[]}}},methods:{clickHandler(){this.preview&&(this.previewVisible=!0)},closeViewer(){this.previewVisible=!1},preShowPicture(e,t){if(this.allFileList&&0!=this.allFileList.length){const r=this.allFileList.findIndex(t=>t==e);this.imageIndex=r>-1?r:t}else this.imageIndex=t;e.indexOf(".pdf")>-1?window.open(e,"_blank"):(this.imageUrl=this.baseUrl+"/"+e,this.previewVisible=!0)},handleRemove(e,t){try{this.fileList.splice(e,1),this.$emit("change",this.fileList.join(","))}catch(r){console.log(r)}},getPathName(e){return e.split("/").pop().split(".")[0]},uploadBefore(e,t){console.log(e);const r="image/jpeg"===e.type||"image/jpg"===e.type||"image/png"===e.type||"application/pdf"===e.type,i=e.size/1024/1024<50;return r||this.$message.error("上传图片只能是jpg,jpeg,png,pdf格式!"),i||this.$message.error("上传图片大小不能超过50MB!"),r&&i},uploadSuccess(e,t,r){const i=this.beforeEmitData(e,t,r);if(i)return this.fileList.push(i),this.$emit("change",this.fileList.join(",")),this.$message({message:"上传成功",center:!0,type:"success"}),e.data[0];this.$message({message:"上传失败",center:!0,type:"error"})}}},Ra=Ba,Fa=Object(le["a"])(Ra,_a,xa,!1,null,null,null),ja=Fa.exports;ja.install=function(e){e.component(ja.name,ja)};var Xa=ja,Ha=function(){var e=this,t=e._self._c;return t("div",{staticClass:"xt-transfer-tree"},[t("div",{staticClass:"xt-transfer-tree__panel xt-transfer-tree__source"},[t("div",{staticClass:"xt-transfer-tree__header"},[t("span",{staticClass:"xt-transfer-tree__title"},[e._v(e._s(e.leftTitle))]),t("span",{staticClass:"xt-transfer-tree__count"},[e._v(e._s(e.leftCheckedCount)+"/"+e._s(e.leftTotalCount))])]),e.filterable?t("div",{staticClass:"xt-transfer-tree__search"},[t("el-input",{attrs:{placeholder:"搜索","prefix-icon":"el-icon-search",size:"small"},model:{value:e.leftFilterText,callback:function(t){e.leftFilterText=t},expression:"leftFilterText"}})],1):e._e(),t("div",{staticClass:"xt-transfer-tree__body"},[t("el-tree",{ref:"leftTree",attrs:{data:e.sourceData,props:e.treeProps,"default-expand-all":e.defaultExpandAll,"filter-node-method":e.filterLeftNode,"show-checkbox":e.showCheckbox,"check-strictly":!e.cascade,"default-checked-keys":e.leftCheckedKeys},on:{"check-change":e.handleLeftCheckChange,"node-click":e.handleLeftNodeClick},scopedSlots:e._u([{key:"default",fn:function({node:r,data:i}){return t("span",{staticClass:"xt-transfer-tree__node"},[t("span",[e._v(e._s(r.label))]),i.children&&i.children.length?t("span",{staticClass:"xt-transfer-tree__node-count"},[e._v(" ("+e._s(i.children.length)+") ")]):e._e()])}}])})],1)]),t("div",{staticClass:"xt-transfer-tree__buttons"},[t("el-button",{attrs:{type:"primary",disabled:!e.leftCheckedCount,size:e.buttonSize},on:{click:e.transferToRight}},[t("i",{staticClass:"el-icon-arrow-right"})]),t("el-button",{attrs:{type:"primary",disabled:!e.rightCheckedCount,size:e.buttonSize},on:{click:e.transferToLeft}},[t("i",{staticClass:"el-icon-arrow-left"})])],1),t("div",{staticClass:"xt-transfer-tree__panel xt-transfer-tree__target"},[t("div",{staticClass:"xt-transfer-tree__header"},[t("span",{staticClass:"xt-transfer-tree__title"},[e._v(e._s(e.rightTitle))]),t("span",{staticClass:"xt-transfer-tree__count"},[e._v(e._s(e.rightCheckedCount)+"/"+e._s(e.rightTotalCount))])]),e.filterable?t("div",{staticClass:"xt-transfer-tree__search"},[t("el-input",{attrs:{placeholder:"搜索","prefix-icon":"el-icon-search",size:"small"},model:{value:e.rightFilterText,callback:function(t){e.rightFilterText=t},expression:"rightFilterText"}})],1):e._e(),t("div",{staticClass:"xt-transfer-tree__body"},[t("el-tree",{ref:"rightTree",attrs:{data:e.targetData,props:e.treeProps,"default-expand-all":e.defaultExpandAll,"filter-node-method":e.filterRightNode,"show-checkbox":e.showCheckbox,"check-strictly":!e.cascade,"default-checked-keys":e.rightCheckedKeys},on:{"check-change":e.handleRightCheckChange,"node-click":e.handleRightNodeClick},scopedSlots:e._u([{key:"default",fn:function({node:r,data:i}){return t("span",{staticClass:"xt-transfer-tree__node"},[t("span",[e._v(e._s(r.label))]),i.children&&i.children.length?t("span",{staticClass:"xt-transfer-tree__node-count"},[e._v(" ("+e._s(i.children.length)+") ")]):e._e()])}}])})],1)])])},Ka=[],Va={name:"XtTransferTree",props:{data:{type:Array,default:()=>[]},value:{type:Array,default:()=>[]},leftTitle:{type:String,default:"待选择"},rightTitle:{type:String,default:"已选择"},treeProps:{type:Object,default:()=>({label:"label",children:"children",value:"id"})},defaultExpandAll:{type:Boolean,default:!0},filterable:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!0},cascade:{type:Boolean,default:!0},transferMode:{type:String,default:"single",validator:e=>["single","multiple","parent-child"].includes(e)},buttonSize:{type:String,default:"small"}},data(){return{leftFilterText:"",rightFilterText:"",leftCheckedKeys:[],rightCheckedKeys:[]}},computed:{sourceData(){const e=new Set(this.value);return this.filterTreeData(this.data,e,!0)},targetData(){const e=new Set(this.value);return this.filterTreeData(this.data,e,!1)},leftTotalCount(){return this.countTreeNodes(this.sourceData)},rightTotalCount(){return this.countTreeNodes(this.targetData)},leftCheckedCount(){return this.leftCheckedKeys.length},rightCheckedCount(){return this.rightCheckedKeys.length}},watch:{leftFilterText(e){this.$refs.leftTree&&this.$refs.leftTree.filter(e)},rightFilterText(e){this.$refs.rightTree&&this.$refs.rightTree.filter(e)}},methods:{filterTreeData(e,t,r){return e.map(e=>{const i=t.has(e[this.treeProps.value]);if(r&&i)return null;if(!r&&!i)return null;const n={...e};if(e.children&&e.children.length){const i=this.filterTreeData(e.children,t,r);i.length?n.children=i:delete n.children}return n}).filter(Boolean)},countTreeNodes(e){let t=0;return e.forEach(e=>{t++,e.children&&(t+=this.countTreeNodes(e.children))}),t},getAllKeys(e,t=[]){return t.push(e[this.treeProps.value]),e.children&&e.children.forEach(e=>this.getAllKeys(e,t)),t},getParentKeys(e,t,r=[]){for(const i of e){if(i[this.treeProps.value]===t)return r;if(i.children){const e=this.getParentKeys(i.children,t,[...r,i[this.treeProps.value]]);if(e.length>0)return e}}return[]},filterLeftNode(e,t){return!e||-1!==String(t[this.treeProps.label]).toLowerCase().indexOf(e.toLowerCase())},filterRightNode(e,t){return!e||-1!==String(t[this.treeProps.label]).toLowerCase().indexOf(e.toLowerCase())},handleLeftCheckChange(e,t){const r=e[this.treeProps.value];t?(this.leftCheckedKeys.includes(r)||this.leftCheckedKeys.push(r),this.cascade&&e.children&&e.children.forEach(e=>{const t=e[this.treeProps.value];this.leftCheckedKeys.includes(t)||this.leftCheckedKeys.push(t)})):(this.leftCheckedKeys=this.leftCheckedKeys.filter(e=>e!==r),this.cascade&&e.children&&e.children.forEach(e=>{this.leftCheckedKeys=this.leftCheckedKeys.filter(t=>t!==e[this.treeProps.value])}))},handleRightCheckChange(e,t){const r=e[this.treeProps.value];t?(this.rightCheckedKeys.includes(r)||this.rightCheckedKeys.push(r),this.cascade&&e.children&&e.children.forEach(e=>{const t=e[this.treeProps.value];this.rightCheckedKeys.includes(t)||this.rightCheckedKeys.push(t)})):(this.rightCheckedKeys=this.rightCheckedKeys.filter(e=>e!==r),this.cascade&&e.children&&e.children.forEach(e=>{this.rightCheckedKeys=this.rightCheckedKeys.filter(t=>t!==e[this.treeProps.value])}))},handleLeftNodeClick(e){if(!this.showCheckbox){e[this.treeProps.value];const t=this.getTransferKeys(e);this.transferKeys(t,!0)}},handleRightNodeClick(e){if(!this.showCheckbox){e[this.treeProps.value];const t=this.getTransferKeys(e);this.transferKeys(t,!1)}},getTransferKeys(e){const t=e[this.treeProps.value];switch(this.transferMode){case"parent-child":return this.getAllKeys(e);case"multiple":return[t];default:return[t]}},transferToRight(){const e=[...this.leftCheckedKeys];this.transferKeys(e,!0),this.leftCheckedKeys=[]},transferToLeft(){const e=[...this.rightCheckedKeys];this.transferKeys(e,!1),this.rightCheckedKeys=[]},transferKeys(e,t){const r=[...this.value],i=new Set(r);t?(e.forEach(e=>i.add(e)),this.cascade&&e.forEach(e=>{const t=this.getParentKeys(this.data,e);t.forEach(e=>i.add(e))})):(e.forEach(e=>i.delete(e)),this.cascade&&e.forEach(e=>{const t=[];this.findAllChildKeys(this.data,e,t),t.forEach(e=>i.delete(e))}));const n=Array.from(i);this.$emit("update:value",n),this.$emit("change",{value:n,addedKeys:t?e:[],removedKeys:t?[]:e})},findAllChildKeys(e,t,r){for(const i of e)i[this.treeProps.value]===t&&i.children&&i.children.forEach(e=>{r.push(e[this.treeProps.value]),e.children&&this.findAllChildKeys([e],e[this.treeProps.value],r)}),i.children&&this.findAllChildKeys(i.children,t,r)},clearSelection(){this.leftCheckedKeys=[],this.rightCheckedKeys=[]}}},Ua=Va,Wa=(r("d2eb"),Object(le["a"])(Ua,Ha,Ka,!1,null,"561bec94",null)),Ya=Wa.exports;Ya.install=function(e){e.component(Ya.name,Ya)};var qa=Ya,Za=function(){var e=this,t=e._self._c;return t("div",{staticClass:"xt-form-schema"},[e.showSearchTags?t("div",{staticClass:"search-tags"},[t("span",{staticClass:"tags-title"},[e._v("已检索:")]),e._l(e.activeSearchTags,(function(r,i){return t("el-tag",{key:i,attrs:{closable:"",size:"small"},on:{close:function(t){return e.handleRemoveTag(i)}}},[e._v(" "+e._s(r.label)+": "+e._s(r.value)+" ")])})),0===e.activeSearchTagsCount?t("span",{staticClass:"no-tags"},[e._v("暂无检索条件")]):e._e()],2):e._e(),"dialog"===e.mode?t("el-dialog",{staticClass:"xt-form-schema-dialog",attrs:{title:e.title,visible:e.visible,width:e.width,"before-close":e.handleCancel,"append-to-body":"","modal-append-to-body":""},on:{"update:visible":function(t){e.visible=t}}},[t("el-form",{attrs:{model:e.formData,inline:!1,"label-width":"120px"}},e._l(e.schema,(function(r){return t("el-form-item",{key:r.prop,attrs:{label:r.label,prop:r.prop}},[r.isSlot?e._t(r.prop,null,{field:r}):t(e.getFieldComponent(r),e._b({tag:"component"},"component",e.getFieldProps(r),!1))],2)})),1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:e.handleCancel}},[e._v("取消")]),t("el-button",{attrs:{type:"primary"},on:{click:e.handleConfirm}},[e._v("确认")])],1)],1):e._e(),"drawer"===e.mode?t("el-drawer",{staticClass:"xt-form-schema-drawer",attrs:{title:e.title,visible:e.visible,direction:e.direction,size:e.width,"before-close":e.handleCancel,"append-to-body":"","modal-append-to-body":""},on:{"update:visible":function(t){e.visible=t}}},[t("el-form",{attrs:{model:e.formData,inline:!1,"label-width":"120px"}},e._l(e.schema,(function(r){return t("el-form-item",{key:r.prop,attrs:{label:r.label,prop:r.prop}},[r.isSlot?e._t(r.prop,null,{field:r}):t(e.getFieldComponent(r),e._b({tag:"component"},"component",e.getFieldProps(r),!1))],2)})),1),t("div",{staticClass:"drawer-footer"},[t("el-button",{on:{click:e.handleCancel}},[e._v("取消")]),t("el-button",{attrs:{type:"primary"},on:{click:e.handleConfirm}},[e._v("确认")])],1)],1):e._e()],1)},Ga=[],Ja={name:"XtFormSchema",props:{visible:{type:Boolean,default:!1},value:{type:Object,default:()=>({})},schema:{type:Array,default:()=>[]},mode:{type:String,default:"dialog",validator:e=>["dialog","drawer"].includes(e)},title:{type:String,default:"高级搜索"},width:{type:[String,Number],default:"500px"},direction:{type:String,default:"rtl",validator:e=>["ltr","rtl","ttb","btt"].includes(e)},showSearchTags:{type:Boolean,default:!1},simpleFields:{type:Array,default:()=>[]}},data(){return{formData:{}}},computed:{activeSearchTags(){const e={};return this.schema.forEach(t=>{const r=this.formData[t.prop];if(null!==r&&void 0!==r&&""!==r&&r!==[]){let i=r;if("select"===t.type&&t.options){const e=t.options.find(e=>e.value===r);i=e?e.label:r}else if("date"===t.type&&Array.isArray(r))i=r.map(e=>e?this.formatDate(e):"").join(" - ");else if("daterange"===t.type&&Array.isArray(r))i=r.map(e=>e?this.formatDate(e):"").join(" - ");else if("checkbox-group"===t.type&&Array.isArray(r)){const e=r.map(e=>{const r=(t.options||[]).find(t=>t.value===e);return r?r.label:e});i=e.join(", ")}e[t.prop]={label:t.label,value:i}}}),e},activeSearchTagsCount(){return Object.keys(this.activeSearchTags).length}},watch:{visible:{immediate:!0,handler(e){e&&this.initFormData()}},value:{deep:!0,handler(e){e&&this.visible&&(this.formData={...e})}}},methods:{initFormData(){const e={};this.schema.forEach(t=>{e[t.prop]=void 0!==this.value[t.prop]?this.value[t.prop]:void 0!==t.defaultValue?t.defaultValue:""}),this.formData=e},getFieldComponent(e){const t={input:"el-input",textarea:"el-input",select:"el-select",checkbox:"el-checkbox","checkbox-group":"el-checkbox-group",radio:"el-radio","radio-group":"el-radio-group",date:"el-date-picker",daterange:"el-date-picker",datetime:"el-date-picker","datetime-range":"el-date-picker",number:"el-input-number",switch:"el-switch"};return t[e.type]||"el-input"},getFieldProps(e){const t={value:this.formData[e.prop],placeholder:e.placeholder||"请输入"+e.label};return"textarea"===e.type&&(t.type="textarea",t.rows=e.rows||3),"select"===e.type&&(t.filterable=e.filterable||!1,t.multiple=e.multiple||!1),"date"===e.type&&(t.type=e.dateType||"date",t.format=e.format||"yyyy-MM-dd",t["value-format"]=e.valueFormat||"yyyy-MM-dd"),"daterange"===e.type&&(t.type="daterange",t.format=e.format||"yyyy-MM-dd",t["value-format"]=e.valueFormat||"yyyy-MM-dd"),"datetime"===e.type&&(t.type="datetime",t.format=e.format||"yyyy-MM-dd HH:mm:ss",t["value-format"]=e.valueFormat||"yyyy-MM-dd HH:mm:ss"),"datetime-range"===e.type&&(t.type="datetimerange",t.format=e.format||"yyyy-MM-dd HH:mm:ss",t["value-format"]=e.valueFormat||"yyyy-MM-dd HH:mm:ss"),"number"===e.type&&(t.min=e.min,t.max=e.max,t.step=e.step||1),"checkbox-group"!==e.type&&"radio-group"!==e.type||(t.options=e.options||[]),void 0!==e.disabled&&(t.disabled=e.disabled),void 0!==e.size&&(t.size=e.size),t["on:input"]=t=>this.handleFieldChange(e.prop,t),t["on:change"]=t=>this.handleFieldChange(e.prop,t),t},handleFieldChange(e,t){this.formData[e]=t,this.$emit("input",{...this.formData}),this.$emit("change",{prop:e,value:t})},handleRemoveTag(e){this.formData[e]="",this.$emit("input",{...this.formData}),this.$emit("change",{prop:e,value:""})},handleConfirm(){this.$emit("confirm",{...this.formData}),this.$emit("input",{...this.formData}),this.$emit("update:visible",!1)},handleCancel(){this.$emit("cancel"),this.$emit("update:visible",!1)},formatDate(e){if(!e)return"";const t=new Date(e),r=t.getFullYear(),i=String(t.getMonth()+1).padStart(2,"0"),n=String(t.getDate()).padStart(2,"0");return`${r}-${i}-${n}`},resetFields(){this.initFormData(),this.schema.forEach(e=>{this.formData[e.prop]=void 0!==e.defaultValue?e.defaultValue:""}),this.$emit("input",{...this.formData})}}},Qa=Ja,eo=(r("ee05"),Object(le["a"])(Qa,Za,Ga,!1,null,"50399771",null)),to=eo.exports;to.install=function(e){e.component(to.name,to)};var ro=to,io=(r("fdbd"),function(){var e=this,t=e._self._c;return t("div",{staticClass:"xt-flow",class:e.rootClasses},[e._l(e.displayNodes,(function(r,i){return t("div",{key:r.id||i,staticClass:"xt-flow__node",class:e.nodeClasses(r,i)},[t("div",{staticClass:"xt-flow__timeline"},[t("div",{staticClass:"xt-flow__icon",class:"xt-flow__icon--"+r.status},[e._t("node-avatar",(function(){return[t("span",{staticClass:"xt-flow__icon-dot"})]}),{node:r,index:i})],2),i<e.displayNodes.length-1?t("div",{staticClass:"xt-flow__line",class:["xt-flow__line--"+r.status,{"xt-flow__line--dashed":"rejected"===r.status}]}):e._e()]),t("div",{staticClass:"xt-flow__body"},[t("div",{staticClass:"xt-flow__header"},[t("span",{staticClass:"xt-flow__title"},[e._t("node",(function(){return[e._v(" "+e._s(r.name||r.title)+" ")]}),{node:r,index:i})],2),t("span",{staticClass:"xt-flow__status",class:"xt-flow__status--"+r.status},[e._v(" "+e._s(e.statusText(r.status))+" ")])]),t("div",{staticClass:"xt-flow__meta"},[r.assignee?[t("span",{staticClass:"xt-flow__assignee"},[e._t("assignee",(function(){return[t("span",{staticClass:"xt-flow__assignee-icon"},[e._v("👤")]),e._v(" "+e._s(r.assignee)+" ")]}),{node:r,index:i})],2)]:e._e(),r.createTime||r.endTime?[t("span",{staticClass:"xt-flow__time"},[e._v(" "+e._s(e.formatTime(r))+" ")])]:e._e(),r.duration?[t("span",{staticClass:"xt-flow__duration"},[e._v(" "+e._s(r.duration)+" ")])]:e._e()],2),r.comment||r.description?t("div",{staticClass:"xt-flow__desc"},[e._t("node-desc",(function(){return["rejected"===r.status&&r.comment?[t("span",{staticClass:"xt-flow__desc-label"},[e._v("驳回原因:")])]:r.comment?[t("span",{staticClass:"xt-flow__desc-label"},[e._v("审批意见:")])]:e._e(),e._v(" "+e._s(r.comment||r.description)+" ")]}),{node:r,index:i})],2):e._e(),e.$scopedSlots["node-action"]?t("div",{staticClass:"xt-flow__actions"},[e._t("node-action",null,{node:r,index:i})],2):e._e()])])})),e.isCollapsible&&e.collapsed?t("div",{staticClass:"xt-flow__collapse",on:{click:e.toggleCollapse}},[e._t("expand-trigger",(function(){return[t("span",{staticClass:"xt-flow__collapse-text"},[e._v(" 展开全部 "+e._s(e.totalCount)+" 条审批记录 "),t("span",{staticClass:"xt-flow__collapse-arrow"},[e._v("▼")])])]}))],2):e._e(),e.isCollapsible&&!e.collapsed?t("div",{staticClass:"xt-flow__collapse",on:{click:e.toggleCollapse}},[e._t("collapse-trigger",(function(){return[e._m(0)]}))],2):e._e()],2)}),no=[function(){var e=this,t=e._self._c;return t("span",{staticClass:"xt-flow__collapse-text"},[e._v(" 收起 "),t("span",{staticClass:"xt-flow__collapse-arrow xt-flow__collapse-arrow--up"},[e._v("▲")])])}];const ao={status:"pending",name:"待处理",assignee:"--",createTime:null,comment:"等待审批中..."};function oo(e,t={}){const{pendingNode:r=null,autoPending:i=!0}=t;if(!e||!e.length)return[];const n=e.filter(e=>"startEvent"!==e.type&&!!(e.name||e.taskName||e.activityName)).map(e=>{const t={id:e.id||e.taskId||"",name:e.name||e.taskName||e.activityName||"",assignee:e.assignee||"",createTime:e.startTime||e.createTime||"",endTime:e.endTime||"",status:lo(e),comment:e.comment||e.deleteReason||"",duration:so(e.durationInMillis||e.duration),raw:e};return t});if(i&&n.length>0){const e=n[n.length-1];if("pending"!==e.status){const e=r||ao;n.push({id:"pending",name:e.name||"待处理",assignee:e.assignee||"--",createTime:e.createTime||null,endTime:null,status:"pending",comment:e.comment||"",duration:"",raw:e})}}return n}function lo(e){const t=(e.deleteReason||"").toLowerCase();return t.includes("reject")||t.includes("驳回")?"rejected":t.includes("delegate")||t.includes("委托")?"delegated":t.includes("transfer")||t.includes("转办")?"transferred":t.includes("revoke")||t.includes("撤回")||t.includes("recall")?"recalled":t.includes("cancel")||t.includes("取消")?"cancelled":e.endTime&&!e.deleteReason||e.endTime?"approved":"pending"}function so(e){if(!e&&0!==e)return"";const t=Math.floor(e/1e3);if(t<60)return t+"秒";const r=Math.floor(t/60);if(r<60)return r+"分钟";const i=Math.floor(r/60),n=r%60;if(i<24)return n>0?`${i}小时${n}分钟`:i+"小时";const a=Math.floor(i/24),o=i%24;return o>0?`${a}天${o}小时`:a+"天"}function co(e,t){if(!e)return"";try{const r=new Date(e);if(isNaN(r.getTime()))return e;const i=r.getFullYear(),n=String(r.getMonth()+1).padStart(2,"0"),a=String(r.getDate()).padStart(2,"0"),o=String(r.getHours()).padStart(2,"0"),l=String(r.getMinutes()).padStart(2,"0"),s=String(r.getSeconds()).padStart(2,"0");return t.replace("YYYY",i).replace("MM",n).replace("DD",a).replace("HH",o).replace("mm",l).replace("ss",s)}catch(r){return e}}var ho={name:"XtFlow",props:{data:{type:Array,default:()=>[]},collapse:{type:Boolean,default:!0},collapseCount:{type:Number,default:5},rounded:{type:String,default:"square",validator:e=>["square","round"].includes(e)},format:{type:String,default:"flowable",validator:e=>["flowable","custom"].includes(e)},timeFormat:{type:String,default:"YYYY-MM-DD HH:mm:ss"},statusMap:{type:Object,default:()=>({approved:"已通过",rejected:"已驳回",pending:"待审批",transferred:"已转办",delegated:"已委托",recalled:"已撤回",started:"已发起",cancelled:"已取消"})}},data(){return{collapsed:!0}},computed:{rootClasses(){return["xt-flow--"+this.rounded]},parsedData(){return"flowable"===this.format?oo(this.data):this.data},totalCount(){return this.parsedData.length},isCollapsible(){return this.collapse&&this.totalCount>this.collapseCount},displayNodes(){return this.isCollapsible&&this.collapsed?this.parsedData.slice(0,this.collapseCount):this.parsedData}},methods:{nodeClasses(e,t){return["xt-flow__node--"+e.status,{"xt-flow__node--last":t===this.displayNodes.length-1,"xt-flow__node--first":0===t}]},statusText(e){return this.statusMap[e]||e},formatTime(e){return"flowable"===this.format?co(e.createTime||e.endTime,this.timeFormat):e.createTime||e.endTime||""},toggleCollapse(){this.collapsed=!this.collapsed}}},uo=ho,po=Object(le["a"])(uo,io,no,!1,null,null,null),fo=po.exports;fo.install=function(e){e.component(fo.name,fo)};var mo=fo;class go{constructor(e={}){e.baseCSS||console.warn("[IframeThemeInjector] baseCSS 未提供,主题样式将无法注入到 iframe"),this.baseCSS=e.baseCSS||"",this.theme=e.theme||"white",this.brand=e.brand||"",this.persist=e.persist||!1,this.onThemeChange=e.onThemeChange||null,this.primaryColor=e.primaryColor||this._getBrandColor(),this._userPrimaryColor=e.primaryColor||"#1890ff",this.iframes=new Map,this._observer=null,this._observerTarget=null,this._injectPending=new Set,this._unsubscribe=H((e,t)=>{this._onUtilsConfigChange(e,t)})}inject(e){return e?!!this.iframes.has(e)||this._doInject(e):(console.warn("[IframeThemeInjector] inject: iframe 参数为空"),!1)}injectAll(e="iframe"){const t=document.querySelectorAll(e);let r=0;return t.forEach(e=>{this.inject(e)&&r++}),r}setTheme(e,t={}){"white"!==e&&"dark"!==e&&(console.warn('[IframeThemeInjector] setTheme: 无效的主题值,使用 "white"',e),e="white");const r=this.theme;this.theme=e,t.primaryColor?(this.primaryColor=t.primaryColor,this._userPrimaryColor=t.primaryColor):(t.brand||this.brand)&&(this.brand=t.brand||this.brand,this.primaryColor=this._getBrandColor()),void 0!==t.brand&&(this.brand=t.brand),D(e),this.primaryColor&&B(this.primaryColor),this.iframes.forEach((e,t)=>{try{t.contentDocument&&this._applyThemeToDocument(t.contentDocument)}catch(r){}}),this.persist&&this._saveToStorage(),this._broadcastChange(),this.onThemeChange&&this.onThemeChange({theme:this.theme,primaryColor:this.primaryColor,brand:this.brand,prevTheme:r})}setPrimaryColor(e){this.primaryColor=e,this._userPrimaryColor=e,this.brand="",B(e),this._applyPrimaryColorToAll()}setBrand(e){this.brand=e,this.primaryColor=this._getBrandColor(),B(this.primaryColor),this._applyPrimaryColorToAll()}remove(e){const t=this.iframes.get(e);t&&t.styleEl&&t.styleEl.parentNode&&t.styleEl.parentNode.removeChild(t.styleEl),this.iframes.delete(e),this._injectPending.delete(e)}removeAll(){this.iframes.forEach((e,t)=>{e.styleEl&&e.styleEl.parentNode&&e.styleEl.parentNode.removeChild(e.styleEl)}),this.iframes.clear(),this._injectPending.clear()}startObserving(e){this.stopObserving(),this._observerTarget=e||document.body,this._observer=new MutationObserver(e=>{e.forEach(e=>{e.addedNodes.forEach(e=>{"IFRAME"===e.tagName&&this._handleNewIframe(e),e.querySelectorAll&&e.querySelectorAll("iframe").forEach(e=>{this._handleNewIframe(e)})})})}),this._observer.observe(this._observerTarget,{childList:!0,subtree:!0})}stopObserving(){this._observer&&(this._observer.disconnect(),this._observer=null),this._observerTarget=null}getConfig(){return{theme:this.theme,primaryColor:this.primaryColor,brand:this.brand}}getIframeCount(){return this.iframes.size}destroy(){this.removeAll(),this.stopObserving(),this._unsubscribe&&(this._unsubscribe(),this._unsubscribe=null)}_onUtilsConfigChange(e,t){if("theme"===e)this.theme=t;else{if("primaryColor"!==e)return;this.primaryColor=t}this._applyPrimaryColorToAll()}_doInject(e){try{const t=e.contentDocument||e.contentWindow.document;if(!t||!t.head)return e.addEventListener("load",()=>this._doInject(e),{once:!0}),!1;const r=t.head.querySelector("style[data-xt-theme-injector]");if(r)return this.iframes.set(e,{styleEl:r,injected:!0}),this._applyThemeToDocument(t),!0;const i=t.createElement("style");return i.setAttribute("data-xt-theme-injector",""),i.setAttribute("type","text/css"),i.textContent=this.baseCSS,t.head.appendChild(i),this._applyThemeToDocument(t),this.iframes.set(e,{styleEl:i,injected:!0}),!0}catch(t){return console.warn("[IframeThemeInjector] 无法注入主题到 iframe(可能是跨域限制):",t.message),!1}}_handleNewIframe(e){if(this.iframes.has(e)||this._injectPending.has(e))return;this._injectPending.add(e);const t=()=>{this._injectPending.delete(e),this.iframes.has(e)||this._doInject(e)};e.contentDocument&&"complete"===e.contentDocument.readyState?t():e.addEventListener("load",t,{once:!0})}_applyThemeToDocument(e){e&&e.documentElement&&z(e.documentElement,{theme:this.theme,primaryColor:this.primaryColor,brand:this.brand})}_applyPrimaryColorToAll(){this.iframes.forEach((e,t)=>{try{t.contentDocument&&z(t.contentDocument.documentElement,{theme:this.theme,primaryColor:this.primaryColor,brand:this.brand})}catch(r){}})}_getBrandColor(){if(!this.brand||!k[this.brand])return this._userPrimaryColor||"#1890ff";const e=k[this.brand];return"dark"===this.theme?e.dark:e.light}_saveToStorage(){if("undefined"!==typeof localStorage)try{localStorage.setItem(T,JSON.stringify({theme:this.theme,primaryColor:this._userPrimaryColor,brand:this.brand,timestamp:Date.now()}))}catch(e){console.warn("[IframeThemeInjector] 保存主题配置失败:",e.message)}}_loadFromStorage(){if("undefined"===typeof localStorage)return null;try{const e=localStorage.getItem(T);return e?JSON.parse(e):null}catch(e){return null}}_broadcastChange(){if("undefined"!==typeof window)try{window.dispatchEvent(new CustomEvent(M,{detail:{theme:this.theme,primaryColor:this.primaryColor,brand:this.brand,timestamp:Date.now()},bubbles:!0,composed:!0}))}catch(e){}}}function yo(e={}){const t=new go(e);if(e.persist){const e=t._loadFromStorage();e&&(t.theme=e.theme||"white",t.brand=e.brand||"",t._userPrimaryColor=e.primaryColor||"#1890ff",t.primaryColor=e.primaryColor||t._getBrandColor())}return t}const bo=r("b85c").default||r("b85c"),vo=r("c8e4").default||r("c8e4"),_o=bo+"\n"+vo;function xo(e={}){return yo({...e,baseCSS:_o})}var wo=xo;const Co=re.default||re,{getConfig:So,setConfig:ko,getTheme:To,getSize:Mo,getPrimaryColor:zo,resetConfig:$o,onConfigChange:Io,setTheme:Lo,setSize:Ao,setPrimaryColor:No}=Co,Oo=[de,ye,Se,Le,Be,Ue,Qe,dt,Ct,St,xr,zr,Er,Xr,qr,ri,ci,gi,Mi,an,gn,Nn,qn,ra,Xn,Ei,ji,Wi,Qi,ca,va,Xa,qa,ro,mo],Eo=function(e,t={}){Eo.installed||(Eo.installed=!0,Oo.forEach(t=>{e.component(t.name,t)}),e.prototype.$xt={setTheme:Lo,setSize:Ao,setPrimaryColor:No,getConfig:So,setConfig:ko,getTheme:To,getSize:Mo,getPrimaryColor:zo,resetConfig:$o,onConfigChange:Io},t&&(void 0!==t.theme&&Lo(t.theme),void 0!==t.size&&Ao(t.size),void 0!==t.primaryColor&&No(t.primaryColor),void 0!==t.config&&ko(t.config)))};"undefined"!==typeof window&&window.Vue&&Eo(window.Vue);var Do={install:Eo,XtButton:de,XtInput:ye,XtFlexBox:Se,XtCard:Le,XtCardItem:Be,XtConfigProvider:Ue,XtText:Qe,XtTime:dt,XtStepPrice:Ct,XtStepPriceItem:St,XtMap:xr,XtMapProvider:zr,XtGridBox:Er,XtGridItem:Xr,XtProgress:qr,XtTabs:ci,XtBadge:gi,XtDatePicker:Mi,XtIcon:gn,XtTable:Nn,XtList:qn,XtScrollArrow:ra,XtScroll:Xn,XtBar:Ei,XtLine:ji,XtPie:Wi,XtMulti:Qi,XtPage:ca,XtSelectTree:va,XtUpload:Xa,XtTransferTree:qa,XtFormSchema:ro,XtFlow:mo,Theme:wo};t["default"]=Do},fd93:function(e,t,r){},fdbd:function(e,t,r){}})}));