next-element-vue 0.3.1 → 0.3.3

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.
package/dist/index.min.js CHANGED
@@ -2,9 +2,9 @@
2
2
  /**
3
3
  * 作  者:huangteng
4
4
  * 邮  箱:htengweb@163.com
5
- * 当前版本:0.3.1 v
6
- * 发布日期:2024-06-22
5
+ * 当前版本:0.3.3 v
6
+ * 发布日期:2024-07-23
7
7
  * 地  址:https://www.npmjs.com/package/next-element-vue
8
8
  */
9
9
 
10
- import{getCurrentInstance as e,inject as t,ref as l,computed as a,unref as n,isRef as o,defineComponent as r,createVNode as i,Fragment as s,openBlock as u,createElementBlock as c,createElementVNode as d,reactive as p,createTextVNode as h,resolveComponent as f,Teleport as v,isVNode as m,onUnmounted as g,provide as b,watch as y,markRaw as x,watchEffect as w,h as C,onMounted as S,toRaw as _,render as z,nextTick as D,toRef as k}from"vue";import{localeContextKey as M,ElMessage as j,ElTooltip as A,ElScrollbar as L,ElDivider as T,ElColorPicker as O,ElSwitch as H,ElDropdown as E,ElIcon as N,ElDropdownMenu as V,ElDropdownItem as B,ElDrawer as R,ElMenuItem as F,ElSubMenu as P,ElMenu as I,ElContainer as W,ElCol as Y,ElFormItem as $,ElInput as U,ElSelect as X,ElOption as q,ElDatePicker as K,ElInputNumber as G,ElForm as Z,ElRow as J,ElButton as Q,ElTable as ee,ElTableColumn as te,ElCheckbox as le,ElMessageBox as ae,ElPagination as ne,ElDialog as oe,ElTag as re,ElRadioGroup as ie,ElRadio as se,ElUpload as ue,ElImageViewer as ce,ElImage as de,ElTreeSelect as pe,ElTimeSelect as he,ElCheckboxGroup as fe,ElEmpty as ve,ElPopover as me,ElPopconfirm as ge}from"element-plus";import{useDateFormat as be,useNow as ye,useFullscreen as xe}from"@vueuse/core";import*as we from"@tensorflow/tfjs";import Ce from"video.js";import"video.js/dist/video-js.css";import Se from"video.js/dist/lang/zh-CN.json";import _e from"video.js/dist/lang/en.json";import ze from"video.js/dist/lang/zh-TW.json";const De="next",ke=(e,t,l,a,n)=>{let o=`${e}-${t}`;return l&&(o+=`-${l}`),a&&(o+=`__${a}`),n&&(o+=`--${n}`),o},Me=Symbol("namespaceContextKey"),je=o=>{const r=o||(e()?t(Me,l(De)):l(De));return a((()=>n(r)||De))},Ae=(e,t)=>{const l=je(t);return{namespace:l,b:(t="")=>ke(l.value,e,t,"",""),e:t=>t?ke(l.value,e,"",t,""):"",m:t=>t?ke(l.value,e,"","",t):"",be:(t,a)=>t&&a?ke(l.value,e,t,a,""):"",em:(t,a)=>t&&a?ke(l.value,e,"",t,a):"",bm:(t,a)=>t&&a?ke(l.value,e,t,"",a):"",bem:(t,a,n)=>t&&a&&n?ke(l.value,e,t,a,n):"",bf:(...t)=>{let a=`${l.value}-${e}`;for(const e in t){const l=t[e];l&&(a+="-"+l)}return a},is:(e,...t)=>{const l=!(t.length>=1)||t[0];return e&&l?`is-${e}`:""},cssVar:e=>{const t={};for(const a in e)e[a]&&(t[`--${l.value}-${a}`]=e[a]);return t},cssVarName:e=>`--${l.value}-${e}`,cssVarBlock:t=>{const a={};for(const n in t)t[n]&&(a[`--${l.value}-${e}-${n}`]=t[n]);return a},cssVarBlockName:t=>`--${l.value}-${e}-${t}`}};var Le="object"==typeof global&&global&&global.Object===Object&&global,Te="object"==typeof self&&self&&self.Object===Object&&self,Oe=Le||Te||Function("return this")(),He=Oe.Symbol,Ee=Object.prototype,Ne=Ee.hasOwnProperty,Ve=Ee.toString,Be=He?He.toStringTag:void 0;var Re=Object.prototype.toString;var Fe="[object Null]",Pe="[object Undefined]",Ie=He?He.toStringTag:void 0;function We(e){return null==e?void 0===e?Pe:Fe:Ie&&Ie in Object(e)?function(e){var t=Ne.call(e,Be),l=e[Be];try{e[Be]=void 0;var a=!0}catch(e){}var n=Ve.call(e);return a&&(t?e[Be]=l:delete e[Be]),n}(e):function(e){return Re.call(e)}(e)}function Ye(e){return null!=e&&"object"==typeof e}var $e="[object Symbol]";function Ue(e){return"symbol"==typeof e||Ye(e)&&We(e)==$e}var Xe=Array.isArray,qe=1/0,Ke=He?He.prototype:void 0,Ge=Ke?Ke.toString:void 0;function Ze(e){if("string"==typeof e)return e;if(Xe(e))return function(e,t){for(var l=-1,a=null==e?0:e.length,n=Array(a);++l<a;)n[l]=t(e[l],l,e);return n}(e,Ze)+"";if(Ue(e))return Ge?Ge.call(e):"";var t=e+"";return"0"==t&&1/e==-qe?"-0":t}function Je(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Qe(e){return e}var et="[object AsyncFunction]",tt="[object Function]",lt="[object GeneratorFunction]",at="[object Proxy]";function nt(e){if(!Je(e))return!1;var t=We(e);return t==tt||t==lt||t==et||t==at}var ot,rt=Oe["__core-js_shared__"],it=(ot=/[^.]+$/.exec(rt&&rt.keys&&rt.keys.IE_PROTO||""))?"Symbol(src)_1."+ot:"";var st=Function.prototype.toString;function ut(e){if(null!=e){try{return st.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var ct=/^\[object .+?Constructor\]$/,dt=Function.prototype,pt=Object.prototype,ht=dt.toString,ft=pt.hasOwnProperty,vt=RegExp("^"+ht.call(ft).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function mt(e){return!(!Je(e)||(t=e,it&&it in t))&&(nt(e)?vt:ct).test(ut(e));var t}function gt(e,t){var l=function(e,t){return null==e?void 0:e[t]}(e,t);return mt(l)?l:void 0}var bt=gt(Oe,"WeakMap"),yt=Object.create,xt=function(){function e(){}return function(t){if(!Je(t))return{};if(yt)return yt(t);e.prototype=t;var l=new e;return e.prototype=void 0,l}}();var wt=Date.now;var Ct,St,_t,zt=function(){try{var e=gt(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Dt=zt?function(e,t){return zt(e,"toString",{configurable:!0,enumerable:!1,value:(l=t,function(){return l}),writable:!0});var l}:Qe,kt=(Ct=Dt,St=0,_t=0,function(){var e=wt(),t=16-(e-_t);if(_t=e,t>0){if(++St>=800)return arguments[0]}else St=0;return Ct.apply(void 0,arguments)}),Mt=9007199254740991,jt=/^(?:0|[1-9]\d*)$/;function At(e,t){var l=typeof e;return!!(t=null==t?Mt:t)&&("number"==l||"symbol"!=l&&jt.test(e))&&e>-1&&e%1==0&&e<t}function Lt(e,t,l){"__proto__"==t&&zt?zt(e,t,{configurable:!0,enumerable:!0,value:l,writable:!0}):e[t]=l}function Tt(e,t){return e===t||e!=e&&t!=t}var Ot=Object.prototype.hasOwnProperty;function Ht(e,t,l){var a=e[t];Ot.call(e,t)&&Tt(a,l)&&(void 0!==l||t in e)||Lt(e,t,l)}var Et=Math.max;function Nt(e,t){return kt(function(e,t,l){return t=Et(void 0===t?e.length-1:t,0),function(){for(var a=arguments,n=-1,o=Et(a.length-t,0),r=Array(o);++n<o;)r[n]=a[t+n];n=-1;for(var i=Array(t+1);++n<t;)i[n]=a[n];return i[t]=l(r),function(e,t,l){switch(l.length){case 0:return e.call(t);case 1:return e.call(t,l[0]);case 2:return e.call(t,l[0],l[1]);case 3:return e.call(t,l[0],l[1],l[2])}return e.apply(t,l)}(e,this,i)}}(e,t,Qe),e+"")}var Vt=9007199254740991;function Bt(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Vt}function Rt(e){return null!=e&&Bt(e.length)&&!nt(e)}function Ft(e){return Nt((function(t,l){var a=-1,n=l.length,o=n>1?l[n-1]:void 0,r=n>2?l[2]:void 0;for(o=e.length>3&&"function"==typeof o?(n--,o):void 0,r&&function(e,t,l){if(!Je(l))return!1;var a=typeof t;return!!("number"==a?Rt(l)&&At(t,l.length):"string"==a&&t in l)&&Tt(l[t],e)}(l[0],l[1],r)&&(o=n<3?void 0:o,n=1),t=Object(t);++a<n;){var i=l[a];i&&e(t,i,a,o)}return t}))}var Pt=Object.prototype;function It(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Pt)}function Wt(e){return Ye(e)&&"[object Arguments]"==We(e)}var Yt=Object.prototype,$t=Yt.hasOwnProperty,Ut=Yt.propertyIsEnumerable,Xt=Wt(function(){return arguments}())?Wt:function(e){return Ye(e)&&$t.call(e,"callee")&&!Ut.call(e,"callee")};var qt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Kt=qt&&"object"==typeof module&&module&&!module.nodeType&&module,Gt=Kt&&Kt.exports===qt?Oe.Buffer:void 0,Zt=(Gt?Gt.isBuffer:void 0)||function(){return!1},Jt={};Jt["[object Float32Array]"]=Jt["[object Float64Array]"]=Jt["[object Int8Array]"]=Jt["[object Int16Array]"]=Jt["[object Int32Array]"]=Jt["[object Uint8Array]"]=Jt["[object Uint8ClampedArray]"]=Jt["[object Uint16Array]"]=Jt["[object Uint32Array]"]=!0,Jt["[object Arguments]"]=Jt["[object Array]"]=Jt["[object ArrayBuffer]"]=Jt["[object Boolean]"]=Jt["[object DataView]"]=Jt["[object Date]"]=Jt["[object Error]"]=Jt["[object Function]"]=Jt["[object Map]"]=Jt["[object Number]"]=Jt["[object Object]"]=Jt["[object RegExp]"]=Jt["[object Set]"]=Jt["[object String]"]=Jt["[object WeakMap]"]=!1;var Qt="object"==typeof exports&&exports&&!exports.nodeType&&exports,el=Qt&&"object"==typeof module&&module&&!module.nodeType&&module,tl=el&&el.exports===Qt&&Le.process,ll=function(){try{var e=el&&el.require&&el.require("util").types;return e||tl&&tl.binding&&tl.binding("util")}catch(e){}}(),al=ll&&ll.isTypedArray,nl=al?function(e){return function(t){return e(t)}}(al):function(e){return Ye(e)&&Bt(e.length)&&!!Jt[We(e)]},ol=Object.prototype.hasOwnProperty;function rl(e,t){var l=Xe(e),a=!l&&Xt(e),n=!l&&!a&&Zt(e),o=!l&&!a&&!n&&nl(e),r=l||a||n||o,i=r?function(e,t){for(var l=-1,a=Array(e);++l<e;)a[l]=t(l);return a}(e.length,String):[],s=i.length;for(var u in e)!t&&!ol.call(e,u)||r&&("length"==u||n&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||At(u,s))||i.push(u);return i}function il(e,t){return function(l){return e(t(l))}}var sl=il(Object.keys,Object),ul=Object.prototype.hasOwnProperty;function cl(e){return Rt(e)?rl(e):function(e){if(!It(e))return sl(e);var t=[];for(var l in Object(e))ul.call(e,l)&&"constructor"!=l&&t.push(l);return t}(e)}var dl=Object.prototype.hasOwnProperty;function pl(e){if(!Je(e))return function(e){var t=[];if(null!=e)for(var l in Object(e))t.push(l);return t}(e);var t=It(e),l=[];for(var a in e)("constructor"!=a||!t&&dl.call(e,a))&&l.push(a);return l}function hl(e){return Rt(e)?rl(e,!0):pl(e)}var fl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vl=/^\w*$/;var ml=gt(Object,"create");var gl=Object.prototype.hasOwnProperty;var bl=Object.prototype.hasOwnProperty;function yl(e){var t=-1,l=null==e?0:e.length;for(this.clear();++t<l;){var a=e[t];this.set(a[0],a[1])}}function xl(e,t){for(var l=e.length;l--;)if(Tt(e[l][0],t))return l;return-1}yl.prototype.clear=function(){this.__data__=ml?ml(null):{},this.size=0},yl.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},yl.prototype.get=function(e){var t=this.__data__;if(ml){var l=t[e];return"__lodash_hash_undefined__"===l?void 0:l}return gl.call(t,e)?t[e]:void 0},yl.prototype.has=function(e){var t=this.__data__;return ml?void 0!==t[e]:bl.call(t,e)},yl.prototype.set=function(e,t){var l=this.__data__;return this.size+=this.has(e)?0:1,l[e]=ml&&void 0===t?"__lodash_hash_undefined__":t,this};var wl=Array.prototype.splice;function Cl(e){var t=-1,l=null==e?0:e.length;for(this.clear();++t<l;){var a=e[t];this.set(a[0],a[1])}}Cl.prototype.clear=function(){this.__data__=[],this.size=0},Cl.prototype.delete=function(e){var t=this.__data__,l=xl(t,e);return!(l<0)&&(l==t.length-1?t.pop():wl.call(t,l,1),--this.size,!0)},Cl.prototype.get=function(e){var t=this.__data__,l=xl(t,e);return l<0?void 0:t[l][1]},Cl.prototype.has=function(e){return xl(this.__data__,e)>-1},Cl.prototype.set=function(e,t){var l=this.__data__,a=xl(l,e);return a<0?(++this.size,l.push([e,t])):l[a][1]=t,this};var Sl=gt(Oe,"Map");function _l(e,t){var l,a,n=e.__data__;return("string"==(a=typeof(l=t))||"number"==a||"symbol"==a||"boolean"==a?"__proto__"!==l:null===l)?n["string"==typeof t?"string":"hash"]:n.map}function zl(e){var t=-1,l=null==e?0:e.length;for(this.clear();++t<l;){var a=e[t];this.set(a[0],a[1])}}zl.prototype.clear=function(){this.size=0,this.__data__={hash:new yl,map:new(Sl||Cl),string:new yl}},zl.prototype.delete=function(e){var t=_l(this,e).delete(e);return this.size-=t?1:0,t},zl.prototype.get=function(e){return _l(this,e).get(e)},zl.prototype.has=function(e){return _l(this,e).has(e)},zl.prototype.set=function(e,t){var l=_l(this,e),a=l.size;return l.set(e,t),this.size+=l.size==a?0:1,this};var Dl="Expected a function";function kl(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(Dl);var l=function(){var a=arguments,n=t?t.apply(this,a):a[0],o=l.cache;if(o.has(n))return o.get(n);var r=e.apply(this,a);return l.cache=o.set(n,r)||o,r};return l.cache=new(kl.Cache||zl),l}kl.Cache=zl;var Ml=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jl=/\\(\\)?/g,Al=function(e){var t=kl(e,(function(e){return 500===l.size&&l.clear(),e})),l=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ml,(function(e,l,a,n){t.push(a?n.replace(jl,"$1"):l||e)})),t}));function Ll(e,t){return Xe(e)?e:function(e,t){if(Xe(e))return!1;var l=typeof e;return!("number"!=l&&"symbol"!=l&&"boolean"!=l&&null!=e&&!Ue(e))||vl.test(e)||!fl.test(e)||null!=t&&e in Object(t)}(e,t)?[e]:Al(function(e){return null==e?"":Ze(e)}(e))}var Tl=1/0;function Ol(e){if("string"==typeof e||Ue(e))return e;var t=e+"";return"0"==t&&1/e==-Tl?"-0":t}function Hl(e,t,l){var a=null==e?void 0:function(e,t){for(var l=0,a=(t=Ll(t,e)).length;null!=e&&l<a;)e=e[Ol(t[l++])];return l&&l==a?e:void 0}(e,t);return void 0===a?l:a}var El=il(Object.getPrototypeOf,Object),Nl="[object Object]",Vl=Function.prototype,Bl=Object.prototype,Rl=Vl.toString,Fl=Bl.hasOwnProperty,Pl=Rl.call(Object);function Il(e){var t=this.__data__=new Cl(e);this.size=t.size}Il.prototype.clear=function(){this.__data__=new Cl,this.size=0},Il.prototype.delete=function(e){var t=this.__data__,l=t.delete(e);return this.size=t.size,l},Il.prototype.get=function(e){return this.__data__.get(e)},Il.prototype.has=function(e){return this.__data__.has(e)},Il.prototype.set=function(e,t){var l=this.__data__;if(l instanceof Cl){var a=l.__data__;if(!Sl||a.length<199)return a.push([e,t]),this.size=++l.size,this;l=this.__data__=new zl(a)}return l.set(e,t),this.size=l.size,this};var Wl="object"==typeof exports&&exports&&!exports.nodeType&&exports,Yl=Wl&&"object"==typeof module&&module&&!module.nodeType&&module,$l=Yl&&Yl.exports===Wl?Oe.Buffer:void 0,Ul=$l?$l.allocUnsafe:void 0;var Xl=Object.prototype.propertyIsEnumerable,ql=Object.getOwnPropertySymbols,Kl=ql?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var l=-1,a=null==e?0:e.length,n=0,o=[];++l<a;){var r=e[l];t(r,l,e)&&(o[n++]=r)}return o}(ql(e),(function(t){return Xl.call(e,t)})))}:function(){return[]},Gl=Kl;function Zl(e){return function(e,t,l){var a=t(e);return Xe(e)?a:function(e,t){for(var l=-1,a=t.length,n=e.length;++l<a;)e[n+l]=t[l];return e}(a,l(e))}(e,cl,Gl)}var Jl=gt(Oe,"DataView"),Ql=gt(Oe,"Promise"),ea=gt(Oe,"Set"),ta="[object Map]",la="[object Promise]",aa="[object Set]",na="[object WeakMap]",oa="[object DataView]",ra=ut(Jl),ia=ut(Sl),sa=ut(Ql),ua=ut(ea),ca=ut(bt),da=We;(Jl&&da(new Jl(new ArrayBuffer(1)))!=oa||Sl&&da(new Sl)!=ta||Ql&&da(Ql.resolve())!=la||ea&&da(new ea)!=aa||bt&&da(new bt)!=na)&&(da=function(e){var t=We(e),l="[object Object]"==t?e.constructor:void 0,a=l?ut(l):"";if(a)switch(a){case ra:return oa;case ia:return ta;case sa:return la;case ua:return aa;case ca:return na}return t});var pa=da,ha=Oe.Uint8Array;function fa(e,t){var l,a,n=t?(l=e.buffer,a=new l.constructor(l.byteLength),new ha(a).set(new ha(l)),a):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function va(e){var t=-1,l=null==e?0:e.length;for(this.__data__=new zl;++t<l;)this.add(e[t])}function ma(e,t){for(var l=-1,a=null==e?0:e.length;++l<a;)if(t(e[l],l,e))return!0;return!1}va.prototype.add=va.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},va.prototype.has=function(e){return this.__data__.has(e)};var ga=1,ba=2;function ya(e,t,l,a,n,o){var r=l&ga,i=e.length,s=t.length;if(i!=s&&!(r&&s>i))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var d=-1,p=!0,h=l&ba?new va:void 0;for(o.set(e,t),o.set(t,e);++d<i;){var f=e[d],v=t[d];if(a)var m=r?a(v,f,d,t,e,o):a(f,v,d,e,t,o);if(void 0!==m){if(m)continue;p=!1;break}if(h){if(!ma(t,(function(e,t){if(r=t,!h.has(r)&&(f===e||n(f,e,l,a,o)))return h.push(t);var r}))){p=!1;break}}else if(f!==v&&!n(f,v,l,a,o)){p=!1;break}}return o.delete(e),o.delete(t),p}function xa(e){var t=-1,l=Array(e.size);return e.forEach((function(e,a){l[++t]=[a,e]})),l}function wa(e){var t=-1,l=Array(e.size);return e.forEach((function(e){l[++t]=e})),l}var Ca=1,Sa=2,_a="[object Boolean]",za="[object Date]",Da="[object Error]",ka="[object Map]",Ma="[object Number]",ja="[object RegExp]",Aa="[object Set]",La="[object String]",Ta="[object Symbol]",Oa="[object ArrayBuffer]",Ha="[object DataView]",Ea=He?He.prototype:void 0,Na=Ea?Ea.valueOf:void 0;var Va=1,Ba=Object.prototype.hasOwnProperty;var Ra=1,Fa="[object Arguments]",Pa="[object Array]",Ia="[object Object]",Wa=Object.prototype.hasOwnProperty;function Ya(e,t,l,a,n,o){var r=Xe(e),i=Xe(t),s=r?Pa:pa(e),u=i?Pa:pa(t),c=(s=s==Fa?Ia:s)==Ia,d=(u=u==Fa?Ia:u)==Ia,p=s==u;if(p&&Zt(e)){if(!Zt(t))return!1;r=!0,c=!1}if(p&&!c)return o||(o=new Il),r||nl(e)?ya(e,t,l,a,n,o):function(e,t,l,a,n,o,r){switch(l){case Ha:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Oa:return!(e.byteLength!=t.byteLength||!o(new ha(e),new ha(t)));case _a:case za:case Ma:return Tt(+e,+t);case Da:return e.name==t.name&&e.message==t.message;case ja:case La:return e==t+"";case ka:var i=xa;case Aa:var s=a&Ca;if(i||(i=wa),e.size!=t.size&&!s)return!1;var u=r.get(e);if(u)return u==t;a|=Sa,r.set(e,t);var c=ya(i(e),i(t),a,n,o,r);return r.delete(e),c;case Ta:if(Na)return Na.call(e)==Na.call(t)}return!1}(e,t,s,l,a,n,o);if(!(l&Ra)){var h=c&&Wa.call(e,"__wrapped__"),f=d&&Wa.call(t,"__wrapped__");if(h||f){var v=h?e.value():e,m=f?t.value():t;return o||(o=new Il),n(v,m,l,a,o)}}return!!p&&(o||(o=new Il),function(e,t,l,a,n,o){var r=l&Va,i=Zl(e),s=i.length;if(s!=Zl(t).length&&!r)return!1;for(var u=s;u--;){var c=i[u];if(!(r?c in t:Ba.call(t,c)))return!1}var d=o.get(e),p=o.get(t);if(d&&p)return d==t&&p==e;var h=!0;o.set(e,t),o.set(t,e);for(var f=r;++u<s;){var v=e[c=i[u]],m=t[c];if(a)var g=r?a(m,v,c,t,e,o):a(v,m,c,e,t,o);if(!(void 0===g?v===m||n(v,m,l,a,o):g)){h=!1;break}f||(f="constructor"==c)}if(h&&!f){var b=e.constructor,y=t.constructor;b==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y||(h=!1)}return o.delete(e),o.delete(t),h}(e,t,l,a,n,o))}function $a(e,t,l,a,n){return e===t||(null==e||null==t||!Ye(e)&&!Ye(t)?e!=e&&t!=t:Ya(e,t,l,a,$a,n))}var Ua,Xa=function(e,t,l){for(var a=-1,n=Object(e),o=l(e),r=o.length;r--;){var i=o[Ua?r:++a];if(!1===t(n[i],i,n))break}return e};function qa(e,t,l){(void 0!==l&&!Tt(e[t],l)||void 0===l&&!(t in e))&&Lt(e,t,l)}function Ka(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function Ga(e){return function(e,t,l,a){var n=!l;l||(l={});for(var o=-1,r=t.length;++o<r;){var i=t[o],s=a?a(l[i],e[i],i,l,e):void 0;void 0===s&&(s=e[i]),n?Lt(l,i,s):Ht(l,i,s)}return l}(e,hl(e))}function Za(e,t,l,a,n,o,r){var i=Ka(e,l),s=Ka(t,l),u=r.get(s);if(u)qa(e,l,u);else{var c,d=o?o(i,s,l+"",e,t,r):void 0,p=void 0===d;if(p){var h=Xe(s),f=!h&&Zt(s),v=!h&&!f&&nl(s);d=s,h||f||v?Xe(i)?d=i:Ye(c=i)&&Rt(c)?d=function(e,t){var l=-1,a=e.length;for(t||(t=Array(a));++l<a;)t[l]=e[l];return t}(i):f?(p=!1,d=function(e,t){if(t)return e.slice();var l=e.length,a=Ul?Ul(l):new e.constructor(l);return e.copy(a),a}(s,!0)):v?(p=!1,d=fa(s,!0)):d=[]:function(e){if(!Ye(e)||We(e)!=Nl)return!1;var t=El(e);if(null===t)return!0;var l=Fl.call(t,"constructor")&&t.constructor;return"function"==typeof l&&l instanceof l&&Rl.call(l)==Pl}(s)||Xt(s)?(d=i,Xt(i)?d=Ga(i):Je(i)&&!nt(i)||(d=function(e){return"function"!=typeof e.constructor||It(e)?{}:xt(El(e))}(s))):p=!1}p&&(r.set(s,d),n(d,s,a,o,r),r.delete(s)),qa(e,l,d)}}function Ja(e,t,l,a,n){e!==t&&Xa(t,(function(o,r){if(n||(n=new Il),Je(o))Za(e,t,r,l,Ja,a,n);else{var i=a?a(Ka(e,r),o,r+"",e,t,n):void 0;void 0===i&&(i=o),qa(e,r,i)}}),hl)}var Qa=Ft((function(e,t,l,a){Ja(e,t,l,a)}));var en=Ft((function(e,t,l){Ja(e,t,l)})),tn=en,ln={name:"zh-cn",next:{loading:"加载中...",table:{search:"查询",clear:"清空",add:"新增",delete:"删除",batchDelete:"批量删除",export:"导出",edit:"编辑",view:"查看",unfoldSearch:"展开搜索",foldSearch:"收起搜索",notData:"暂无数据",operation:"操作",selection:"选择",selectionAll:"全选",setting:{title:"设置列",label:"列名",hide:"隐藏",filter:"筛选",sort:"排序"},message:{tip:"提示",batchDeleteTip:"您确定要批量删除吗?",cancelBatchDelete:"取消批量删除操作",deleteTip:"您确定要删除该数据吗?",cancelDelete:"取消删除操作",confirmButtonText:"确 定",cancelButtonText:"取 消"},uploadfileExceed:"上传文件数量超出限制范围"},form:{input:"请输入",select:"请选择",requiredInput:" 必填",requiredSelect:" 必选",submit:"提 交",cancel:"取 消",reset:"重 置",confirm:"确 定",tableSelect:" 选择",selectFile:"选择文件"},date:{oneWeekAge:"一周以前",oneMonthAge:"一个月以前",threeMonthsAge:"三个月以前",oneYearAge:"一年以前",threeYearsAge:"三年以前",rangeSeparator:"至",startPlaceholder:"开始时间",endPlaceholder:"结束时间"},layout:{home:"首页",personal:"个人中心",logOut:"退出登录",tabsOther:"关闭其他",tabsLeft:"关闭左侧",tabsRight:"关闭右侧",tabsAll:"关闭全部",systemSetting:"系统配置"},labelimg:{saveTxt:"保存中...",emptyLabelText:"暂无标签数据",confirmDeleteLabel:"确定要删除该标注吗?",saveLabel:"保存当前标注",instructions:"使用说明",labelNoUpdate:"暂无标签数据更新"}}},an={name:"en",next:{loading:"loading...",table:{search:"search",clear:"clear",add:"add",delete:"del",batchDelete:"batch delete",export:"export",edit:"edit",view:"view",unfoldSearch:"unfold search",foldSearch:"fold search",notData:"not data",operation:"operations",selection:"selection",selectionAll:"select all",setting:{title:"column setting",label:"column name",hide:"hide",filter:"filter",sort:"srot"},message:{tip:"tip",batchDeleteTip:"Are you sure you want to delete them in bulk ?",cancelBatchDelete:"Cancel batch deletion",deleteTip:"Are you sure you want to delete this data ?",cancelDelete:"Cancel delete",confirmButtonText:"OK",cancelButtonText:"Cancel"},uploadfileExceed:"The number of uploaded files exceeds the limit"},form:{input:"please input ",select:"please select ",requiredInput:" required",requiredSelect:" required",submit:"Submit",cancel:"Cancel",reset:"reset",confirm:"confirm",tableSelect:" select",selectFile:"select file"},date:{oneWeekAge:"one week age",oneMonthAge:"one month age",threeMonthsAge:"three months age",oneYearAge:"one year age",threeYearsAge:"three years age",rangeSeparator:"to",startPlaceholder:"start time",endPlaceholder:"end time"},layout:{home:"Home",personal:"Personal",logOut:"LogOut",tabsOther:"close other",tabsLeft:"close left",tabsRight:"close right",tabsAll:"close all",systemSetting:"system setting"},labelimg:{saveTxt:"saving...",emptyLabelText:"No label data",confirmDeleteLabel:"Are you sure you want to delete this annotation?",saveLabel:"save label",instructions:"instructions",labelNoUpdate:"No label data update"}}},nn={name:"zh-tw",next:{loading:"加載中...",table:{search:"查詢",clear:"清空",add:"新增",delete:"刪除",batchDelete:"批量刪除",export:"導出",edit:"編輯",view:"查看",unfoldSearch:"展開搜索",foldSearch:"收起搜索",notData:"暫無數據",operation:"操作",selection:"选择",selectionAll:"全选",setting:{title:"設置列",label:"列名",hide:"隱藏",filter:"篩選",sort:"排序"},message:{tip:"提示",batchDeleteTip:"您確定要批量刪除嗎?",cancelBatchDelete:"取消批量刪除操作",deleteTip:"您确定要删除该数据吗?",cancelDelete:"取消删除操作",confirmButtonText:"確 定",cancelButtonText:"取 消"},uploadfileExceed:"上传文件数量超出限制范围"},form:{input:"請輸入",select:"請選擇",requiredInput:" 必填",requiredSelect:" 必選",submit:"提 交",cancel:"取 消",reset:"重 置",confirm:"确 定",tableSelect:" 選擇",selectFile:"選擇文件"},date:{oneWeekAge:"一周以前",oneMonthAge:"一个月以前",threeMonthsAge:"三个月以前",oneYearAge:"一年以前",threeYearsAge:"三年以前",rangeSeparator:"至",startPlaceholder:"開始時間",endPlaceholder:"結束時間"},layout:{home:"首頁",personal:"個人中心",logOut:"退出登錄",tabsOther:"關閉其他",tabsLeft:"關閉左側",tabsRight:"關閉右側",tabsAll:"關閉全部",systemSetting:"系統配置"},labelimg:{saveTxt:"保存中...",emptyLabelText:"暂无标签数据",confirmDeleteLabel:"确定要删除该标注吗?",saveLabel:"保存当前标注",instructions:"使用说明",labelNoUpdate:"暂无标签数据更新"}}};const on={[ln.name]:{...ln},[an.name]:{...an},[nn.name]:{...nn}},rn=(e,t,l)=>Hl(l,e,e)?.replace(/\{(\w+)\}/g,((e,l)=>`${t?.[l]??`{${l}}`}`)),sn=e=>(t,l)=>rn(t,l,n(e)),un=e=>{const t=a((()=>n(e).name)),r=o(e)?e:l(e),i=on[t.value]||on["zh-cn"];return r.value.next=i.next,{lang:t,locale:r,t:sn(e)}},cn=M,dn=e=>{const n=e||t(cn,l());return un(a((()=>n?.value||ln)))},pn=(e,t)=>{const a=o(e)?e:l(e),n=on[t]||on["zh-cn"];a.value.name=t,a.value.next=n.next};function hn(){return{hexToRgb:e=>{let t="";if(!/^\#?[0-9A-Fa-f]{6}$/.test(e))return j.warning("输入错误的hex"),"";t=(e=e.replace("#","")).match(/../g);for(let e=0;e<3;e++)t[e]=parseInt(t[e],16);return t},rgbToHex:(e,t,l)=>{let a=/^\d{1,3}$/;if(!a.test(e)||!a.test(t)||!a.test(l))return j.warning("输入错误的rgb颜色值"),"";let n=[e.toString(16),t.toString(16),l.toString(16)];for(let e=0;e<3;e++)1==n[e].length&&(n[e]=`0${n[e]}`);return`#${n.join("")}`},getDarkColor:(e,t)=>{if(!/^\#?[0-9A-Fa-f]{6}$/.test(e))return j.warning("输入错误的hex颜色值"),"";let l=hn().hexToRgb(e);for(let e=0;e<3;e++)l[e]=Math.floor(l[e]*(1-t));return hn().rgbToHex(l[0],l[1],l[2])},getLightColor:(e,t)=>{if(!/^\#?[0-9A-Fa-f]{6}$/.test(e))return j.warning("输入错误的hex颜色值"),"";let l=hn().hexToRgb(e);for(let e=0;e<3;e++)l[e]=Math.floor((255-l[e])*t+l[e]);return hn().rgbToHex(l[0],l[1],l[2])}}}const{getLightColor:fn}=hn(),vn=(e,t)=>{document.documentElement.style.setProperty(e,t)},mn=(e,t)=>{vn(e,t);for(let l=1;l<10;l++)vn(e+"-light-"+l,fn(t,l/10));vn(`${e}-dark-2`,t)},gn=e=>{e&&mn("--el-color-primary",e)},bn={themeColor:"--el-color-primary",headerBarColor:"--next-layout-bg-color",headerBarFontColor:"--next-layout-font-color"},yn=e=>{for(const t in bn){const l=bn[t];e[t]&&mn(l,e[t])}const t=document.documentElement;e.isDark?t.setAttribute("data-theme","dark"):t.setAttribute("data-theme","")},xn=async(e,t,l,a,n,o=[],r,i)=>{const{videoWidth:s,videoHeight:u}=e;if(!s||!u)return;let[c,d]=t.inputs[0].shape.slice(1,3),p=a.tidy((()=>a.image.resizeBilinear(a.browser.fromPixels(e),[c,d]).div(255).expandDims(0)));l.clearRect(0,0,s,u),r.clearRect(0,0,s,u),await t.executeAsync(p).then((async t=>{let[c,d,h,f]=t;for(let t=0;t<f.dataSync()[0];++t){let[a,p,f,v]=c.dataSync().slice(4*t,4*(t+1));a=a<0||a>1?parseInt(a):a,f=f<0||f>1?parseInt(f):f,p=p<0||p>1?parseInt(p):p,v=v<0||v>1?parseInt(v):v,a=Math.round(Math.abs(a)*s),f=Math.round(Math.abs(f)*s),p=Math.round(Math.abs(p)*u),v=Math.round(Math.abs(v)*u);const m=f-a,g=v-p,b=a,y=p;let x=h.dataSync()[t],w=d.dataSync()[t].toFixed(2);const C=(e,t,l)=>{const a=`#${(1<<24|Math.floor(256*Math.random())<<16|Math.floor(256*Math.random())<<8|Math.floor(256*Math.random())).toString(16).slice(1)}`;l.strokeStyle=a,l.lineWidth=2,l.beginPath(),l.rect(b,y,m,g),l.stroke(),l.font="bold 16px Arial",l.fillStyle=a,l.fillText(`${e} ${t}`,b+10,y<20?20:y-10)};if(o?.length)for(let t=0;t<o.length;t++){const a=o[t];if(a.cls==x&&Number(w)>a.score){const t=n.find((e=>e.value==x));if(t){const a=t.label;C(a,w,await wn(e,r)),C(a,w,l),i&&i(a,w)}}}else if(w>.5){const e=n.find((e=>e.value==x));if(e){C(e.label||"",w,l)}}}p.dispose(),a.dispose(t)}))},wn=(e,t)=>{const l=e.videoWidth,a=e.videoHeight,n=l/a,o=l/a,r=l,i=a;let s,u,c,d;return n>o?(c=l,d=l/n,s=0,u=Math.round((a-d)/2)):n===o?(c=l,d=a,s=0,u=0):n<o&&(c=a*n,d=a,s=Math.round((l-c)/2),u=0),t.drawImage(e,0,0,r,i,s,u,c,d),t},Cn=()=>({detectVideoFrameImage:({container:e,video:t,modelUrl:l,classNames:a,classInput:n=[]},o,r)=>l?a?void we.loadGraphModel(l).then((l=>{const r=document.createElement("canvas"),i=r.getContext("2d");r.style.position="absolute",r.style.zIndex="99",r.style.pointerEvents="none",e&&e.appendChild(r);const s=document.createElement("canvas"),u=s.getContext("2d");t.ontimeupdate=e=>{const{clientWidth:c,clientHeight:d}=e.target,{videoWidth:p,videoHeight:h,offsetTop:f,offsetLeft:v}=t;r.width=p,r.height=h,r.style.top=f+"px",r.style.left=v+"px",r.style.width=c+"px",r.style.height=d+"px",s.width=p,s.height=h,s.style.width=c+"px",s.style.height=d+"px",xn(t,l,i,we,a,n,u,((e,t)=>{const l="image/png";let a=r.toDataURL(l,.92).replace(l,"image/octet-stream");a=a.replace(/^data:image\/[^;]+/,"data:application/octet-stream");const n=s.toDataURL(l,.92);o&&o({name:e,score:t,detectImage:n,detectCanvas:s},{canvas:r,imageDataURL:a})}))}})):(r&&r("模型类别不能未空"),!1):(r&&r("模型文件地址不能为空"),!1)}),Sn=(e,t)=>{if(e.install=l=>{for(const a of[e,...Object.values(t??{})])l.component(a.name,a)},t)for(const[l,a]of Object.entries(t))e[l]=a;return e},_n="header-menu",zn="header-tools-prefix",Dn="header-tools-suffix";var kn={logo:"",title:"Next Element Vue",userName:"Admin",language:"zh-cn",languageDropdown:[{value:"zh-cn",label:"简体中文"},{value:"en",label:"English"},{value:"zh-tw",label:"繁體中文"}],userDropdown:[{value:"/",label:"next.layout.home",svg:'<svg t="1718695810903" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="11410" width="16" height="16"><path d="M988.672 502.272l-476.16-476.16-476.16 476.16c-8.704 8.704-8.704 22.528 0 31.232l1.536 1.536c8.704 8.704 22.528 8.704 31.232 0l443.392-443.392 443.392 443.392c8.704 8.704 22.528 8.704 31.232 0l1.536-1.536c8.704-8.704 8.704-22.528 0-31.232z" fill="" p-id="11411"></path><path d="M860.16 534.016c-12.288 0-22.016 9.728-22.016 22.016v333.312c0 54.272-27.648 64-47.104 64h-152.064v-227.84c0-25.088 0-59.392-44.544-59.392H418.816c-44.032 0-44.032 33.28-44.032 59.392v227.84h-153.6c-44.032 0-45.056-64-45.056-64v-333.312c0.512-12.288-8.704-22.528-20.992-23.04-12.288-0.512-22.528 8.704-23.04 20.992v368.64c0 65.536 70.144 75.264 70.144 75.264h217.088v-287.232h176.64v287.232H824.32c39.424 0 57.856-44.032 57.856-75.264v-366.592c0-12.288-9.728-22.016-22.016-22.016z" fill="" p-id="11412"></path></svg>'},{value:"/personal",label:"next.layout.personal",svg:'<svg t="1718695007028" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2161" width="16" height="16"><path d="M512 87.04c-136.704 0-247.808 111.104-247.808 247.808 0 98.816 58.368 184.32 142.336 223.744-155.136 45.568-268.8 188.928-268.8 358.912 0 10.752 8.704 19.456 19.456 19.456 10.752 0 19.456-8.704 19.456-19.456 0-184.832 150.528-335.36 335.36-335.36 136.704 0 247.808-111.104 247.808-247.808S648.704 87.04 512 87.04z m0 456.192c-115.2 0-208.384-93.696-208.384-208.384 0-115.2 93.696-208.384 208.384-208.384 115.2 0 208.384 93.696 208.384 208.384 0 114.688-93.184 208.384-208.384 208.384z m226.816 76.8c-8.704-6.656-20.992-5.12-27.648 3.584-6.656 8.704-5.12 20.992 3.584 27.648 83.968 64 132.096 161.28 132.096 266.752 0 10.752 8.704 19.456 19.456 19.456 10.752 0 19.456-8.704 19.456-19.456 0.512-118.272-53.248-226.816-146.944-297.984z" fill="" p-id="2162"></path></svg>'},{value:"logOut",label:"next.layout.logOut",svg:'<svg t="1718695049981" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2313" width="16" height="16"><path d="M896 928H384a32 32 0 0 1-32-32v-128a32 32 0 0 1 64 0v96h448v-704h-448V256a32 32 0 1 1-64 0V128a32 32 0 0 1 32-32h512a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32z" fill="" p-id="2314"></path><path d="M608 544H192a32 32 0 0 1 0-64h416a32 32 0 0 1 0 64z" fill="" p-id="2315"></path><path d="M256 672a30.08 30.08 0 0 1-22.4-9.6l-128-128a30.72 30.72 0 0 1 0-44.8l128-128a31.36 31.36 0 1 1 44.8 44.8L173.44 512l104.96 105.6a30.72 30.72 0 0 1 0 44.8 30.08 30.08 0 0 1-22.4 9.6z" fill="" p-id="2316"></path></svg>',divided:!0}],showTabs:!0,activeTab:"/",tabs:[],menuTree:[],menuRouter:!0,menuMode:"horizontal",setting:{layout:"transverse",themeColor:"#c71585",headerBarColor:"#282c34",headerBarFontColor:"#FFFFFF",isHeaderBarColorGradual:!1,asidebarColor:"#282c34",asidebarFontColor:"#ffffff",isAsidebarColorGradual:!1,isDark:!1}};const Mn=Ae("text-ellipsis");const jn=Sn(r({name:"NextTextEllipsis",props:{content:{type:String,default:""},disabled:{type:Boolean,default:!1},width:{type:[String,Number],default:""},placement:{type:String,default:"top"},textAlign:{type:String,default:"left"},class:{type:String,default:""}},setup(e,{slots:t}){const n=l(!1),o=a((()=>{const t=e.width;let l={textAlign:e.textAlign};return t&&("string"==typeof t?l.width=t:"number"==typeof t&&(l.width=t+"px")),l})),r=l(),u=()=>{try{const e=r.value;e&&e.scrollWidth&&e.scrollWidth>e.offsetWidth?n.value=!0:n.value=!1}catch(e){n.value=!1}};return()=>i(s,null,[i("div",{class:[Mn.b(),e.class],style:o.value,onMouseenter:u},[n.value?i(A,{effect:"dark",content:e.content,placement:e.placement,disabled:e.disabled},{default:()=>[i("span",{class:Mn.e("text"),ref:r},[t.default?t.default():e.content])]}):i("span",{class:Mn.e("text"),ref:r},[t.default?t.default():e.content])])])}}));var An=r({setup(){const e=t("__ns__",{}),l=t("options",{}),{t:a}=dn();return()=>i(s,null,[i("div",{class:e.bf("header","logo")},[l.logo&&i("img",{class:e.be("header-logo","img"),src:l.logo,alt:"logo"},null),l.title&&i("p",{class:e.be("header-logo","title")},[i(jn,{content:a(l.title)},null)])])])}}),Ln=(e,t)=>{let l=e.__vccOpts||e;for(let[e,a]of t)l[e]=a;return l},Tn={name:"ArrowDown"},On={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Hn=[d("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1)];var En=Ln(Tn,[["render",function(e,t,l,a,n,o){return u(),c("svg",On,Hn)}],["__file","arrow-down.vue"]]),Nn={name:"ArrowLeft"},Vn={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Bn=[d("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"},null,-1)];var Rn=Ln(Nn,[["render",function(e,t,l,a,n,o){return u(),c("svg",Vn,Bn)}],["__file","arrow-left.vue"]]),Fn={name:"ArrowRight"},Pn={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},In=[d("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"},null,-1)];var Wn=Ln(Fn,[["render",function(e,t,l,a,n,o){return u(),c("svg",Pn,In)}],["__file","arrow-right.vue"]]),Yn={name:"ArrowUp"},$n={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Un=[d("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0z"},null,-1)];var Xn=Ln(Yn,[["render",function(e,t,l,a,n,o){return u(),c("svg",$n,Un)}],["__file","arrow-up.vue"]]),qn={name:"Back"},Kn={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Gn=[d("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64z"},null,-1),d("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312L237.248 512z"},null,-1)];var Zn=Ln(qn,[["render",function(e,t,l,a,n,o){return u(),c("svg",Kn,Gn)}],["__file","back.vue"]]),Jn={name:"Camera"},Qn={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},eo=[d("path",{fill:"currentColor",d:"M896 256H128v576h768V256zm-199.424-64-32.064-64h-304.96l-32 64h369.024zM96 192h160l46.336-92.608A64 64 0 0 1 359.552 64h304.96a64 64 0 0 1 57.216 35.328L768.192 192H928a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32zm416 512a160 160 0 1 0 0-320 160 160 0 0 0 0 320zm0 64a224 224 0 1 1 0-448 224 224 0 0 1 0 448z"},null,-1)];var to=Ln(Jn,[["render",function(e,t,l,a,n,o){return u(),c("svg",Qn,eo)}],["__file","camera.vue"]]),lo={name:"Close"},ao={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},no=[d("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1)];var oo=Ln(lo,[["render",function(e,t,l,a,n,o){return u(),c("svg",ao,no)}],["__file","close.vue"]]),ro={name:"DArrowLeft"},io={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},so=[d("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"},null,-1)];var uo=Ln(ro,[["render",function(e,t,l,a,n,o){return u(),c("svg",io,so)}],["__file","d-arrow-left.vue"]]),co={name:"DArrowRight"},po={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ho=[d("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688zm-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"},null,-1)];var fo=Ln(co,[["render",function(e,t,l,a,n,o){return u(),c("svg",po,ho)}],["__file","d-arrow-right.vue"]]),vo={name:"Delete"},mo={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},go=[d("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1)];var bo=Ln(vo,[["render",function(e,t,l,a,n,o){return u(),c("svg",mo,go)}],["__file","delete.vue"]]),yo={name:"EditPen"},xo={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},wo=[d("path",{fill:"currentColor",d:"m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696L175.168 732.8zM455.04 229.248l193.92 112 56.704-98.112-193.984-112-56.64 98.112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336L104.32 708.8zm384 254.272v-64h448v64h-448z"},null,-1)];var Co=Ln(yo,[["render",function(e,t,l,a,n,o){return u(),c("svg",xo,wo)}],["__file","edit-pen.vue"]]),So={name:"FullScreen"},_o={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},zo=[d("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64v.064zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64l-192 .192zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64v-.064z"},null,-1)];var Do=Ln(So,[["render",function(e,t,l,a,n,o){return u(),c("svg",_o,zo)}],["__file","full-screen.vue"]]),ko={name:"InfoFilled"},Mo={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},jo=[d("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1)];var Ao=Ln(ko,[["render",function(e,t,l,a,n,o){return u(),c("svg",Mo,jo)}],["__file","info-filled.vue"]]),Lo={name:"MoonNight"},To={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Oo=[d("path",{fill:"currentColor",d:"M384 512a448 448 0 0 1 215.872-383.296A384 384 0 0 0 213.76 640h188.8A448.256 448.256 0 0 1 384 512zM171.136 704a448 448 0 0 1 636.992-575.296A384 384 0 0 0 499.328 704h-328.32z"},null,-1),d("path",{fill:"currentColor",d:"M32 640h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32zm128 128h384a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm160 127.68 224 .256a32 32 0 0 1 32 32V928a32 32 0 0 1-32 32l-224-.384a32 32 0 0 1-32-32v-.064a32 32 0 0 1 32-32z"},null,-1)];var Ho=Ln(Lo,[["render",function(e,t,l,a,n,o){return u(),c("svg",To,Oo)}],["__file","moon-night.vue"]]),Eo={name:"Picture"},No={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Vo=[d("path",{fill:"currentColor",d:"M160 160v704h704V160H160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32z"},null,-1),d("path",{fill:"currentColor",d:"M384 288q64 0 64 64t-64 64q-64 0-64-64t64-64zM185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952L185.408 876.992z"},null,-1)];var Bo=Ln(Eo,[["render",function(e,t,l,a,n,o){return u(),c("svg",No,Vo)}],["__file","picture.vue"]]),Ro={name:"Plus"},Fo={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Po=[d("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"},null,-1)];var Io=Ln(Ro,[["render",function(e,t,l,a,n,o){return u(),c("svg",Fo,Po)}],["__file","plus.vue"]]),Wo={name:"Refresh"},Yo={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},$o=[d("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"},null,-1)];var Uo=Ln(Wo,[["render",function(e,t,l,a,n,o){return u(),c("svg",Yo,$o)}],["__file","refresh.vue"]]),Xo={name:"Right"},qo={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ko=[d("path",{fill:"currentColor",d:"M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312L754.752 480z"},null,-1)];var Go=Ln(Xo,[["render",function(e,t,l,a,n,o){return u(),c("svg",qo,Ko)}],["__file","right.vue"]]),Zo={name:"Search"},Jo={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Qo=[d("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704z"},null,-1)];var er=Ln(Zo,[["render",function(e,t,l,a,n,o){return u(),c("svg",Jo,Qo)}],["__file","search.vue"]]),tr={name:"Setting"},lr={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ar=[d("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384zm0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256z"},null,-1)];var nr=Ln(tr,[["render",function(e,t,l,a,n,o){return u(),c("svg",lr,ar)}],["__file","setting.vue"]]),or={name:"Sunny"},rr={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ir=[d("path",{fill:"currentColor",d:"M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512zm0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32zM195.2 195.2a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 1 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm543.104 543.104a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 0-45.248zM64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32zm768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32zM195.2 828.8a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248L240.448 828.8a32 32 0 0 1-45.248 0zm543.104-543.104a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248l-45.248 45.248a32 32 0 0 1-45.248 0z"},null,-1)];var sr=Ln(or,[["render",function(e,t,l,a,n,o){return u(),c("svg",rr,ir)}],["__file","sunny.vue"]]),ur={name:"Tools"},cr={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},dr=[d("path",{fill:"currentColor",d:"M764.416 254.72a351.68 351.68 0 0 1 86.336 149.184H960v192.064H850.752a351.68 351.68 0 0 1-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 0 1-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.68 351.68 0 0 1-86.336-149.312H64v-192h109.248a351.68 351.68 0 0 1 86.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 0 1 172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 1 0-384 0 192 192 0 0 0 384 0z"},null,-1)];var pr=Ln(ur,[["render",function(e,t,l,a,n,o){return u(),c("svg",cr,dr)}],["__file","tools.vue"]]),hr={name:"View"},fr={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},vr=[d("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1)];var mr=Ln(hr,[["render",function(e,t,l,a,n,o){return u(),c("svg",fr,vr)}],["__file","view.vue"]]),gr={name:"Warning"},br={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},yr=[d("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768zm48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0zm-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32z"},null,-1)];var xr=Ln(gr,[["render",function(e,t,l,a,n,o){return u(),c("svg",br,yr)}],["__file","warning.vue"]]),wr=r({setup(){},render(){const e=t("__slots__",{}),l=t("__ns__",{}),a=t("options",{}),n=t("updateOptions",null),o=p({...a.setting}),r=()=>{const e={...a,setting:{...o}};n(e)},s=e=>{if(!e)return j({type:"warning",message:"主题颜色不能为空"}),!1;o.themeColor=e,mn("--el-color-primary",e),r()},u=()=>{const e=document.documentElement;o.isDark?e.setAttribute("data-theme","dark"):e.setAttribute("data-theme",""),r()},c=(e,t,l)=>{o[t]=e,vn(l,e),r()},d=[{type:"defaults",text:"默认"},{type:"classic",text:"经典"},{type:"transverse",text:"横向"},{type:"columns",text:"分栏"}];return i(L,null,{default:()=>[i(T,{"border-style":"dashed"},{default:()=>[h("全局主题")]}),i("div",{class:l.b("config-bar-item")},[i("span",{class:l.be("config-bar-item","label")},[h("主题颜色")]),i("div",{class:l.be("config-bar-item","value")},[i(O,{modelValue:o.themeColor,"onUpdate:modelValue":e=>o.themeColor=e,predefine:["#409eff","#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","#FB07A0"],onChange:s},null)])]),i("div",{class:l.b("config-bar-item")},[i("span",{class:l.be("config-bar-item","label")},[h("暗黑模式")]),i("div",{class:l.be("config-bar-item","value")},[i(H,{modelValue:o.isDark,"onUpdate:modelValue":e=>o.isDark=e,"inline-prompt":!0,size:"large","active-icon":Ho,"inactive-icon":sr,"active-color":"#1f1f1f","inactive-color":"#dcdfe6",onChange:u},null)])]),i("div",{class:l.b("config-bar-item")},[i("span",{class:l.be("config-bar-item","label")},[h("顶栏背景颜色")]),i("div",{class:l.be("config-bar-item","value")},[i(O,{modelValue:o.headerBarColor,"onUpdate:modelValue":e=>o.headerBarColor=e,predefine:["#282c34","#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","#FB07A0"],onChange:e=>c(e,"headerBarColor","--next-layout-bg-color")},null)])]),i("div",{class:l.b("config-bar-item")},[i("span",{class:l.be("config-bar-item","label")},[h("顶栏字体颜色")]),i("div",{class:l.be("config-bar-item","value")},[i(O,{modelValue:o.headerBarFontColor,"onUpdate:modelValue":e=>o.headerBarFontColor=e,predefine:["#282c34","#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","#FB07A0"],onChange:e=>c(e,"headerBarFontColor","--next-layout-font-color")},null)])]),i("div",{class:l.b("config-bar-item")},[i("span",{class:l.be("config-bar-item","label")},[h("顶栏背景渐变")]),i("div",{class:l.be("config-bar-item","value")},[i(f("el-switch"),{modelValue:o.isHeaderBarColorGradual,"onUpdate:modelValue":e=>o.isHeaderBarColorGradual=e,onChange:r},null)])]),i(T,{"border-style":"dashed"},{default:()=>[h("布局方式")]}),i("ul",{class:l.b("config-bar-layout")},[d.map((e=>i("li",{class:[l.be("config-bar-layout",e.type),l.is("active",o.layout===e.type)],onClick:t=>((e,t)=>{e.stopPropagation(),o.layout=t.type,r()})(t,e)},[i("div",{class:"layout-wrap"},[i("div",{class:"layout-box"},[i("p",{class:"layout-text"},[e.text])])]),i("aside",null,null)])))]),i("div",{class:l.b("config-bar-item"),style:{"margin-top":"20px"}},[i("span",{class:l.be("config-bar-item","label")},[h("是否显示标签栏")]),i("div",{class:l.be("config-bar-item","value")},[i(H,{modelValue:a.showTabs,"onUpdate:modelValue":e=>a.showTabs=e},null)])]),e.setting?.()]})}});var Cr=r({setup(){const e=t(cn,l()),n=t("options",{}),{t:o}=dn(),{toggle:r,isFullscreen:i}=xe(),s=l(a((()=>n.language)).value),u=l(!1);return{locale:e,config:n,t:o,toggle:r,isFullscreen:i,language:s,settingDrawer:u}},render(){const e=t("__ns__",{}),l=this.config,a=t("__emit__",{}),n=this.$slots,o=this.t,r=this.isFullscreen,u=l.profile,c=l.userDropdown,d=l.languageDropdown,p=()=>{this.settingDrawer=!1};return i(s,null,[i("ul",{class:e.b("header-tools")},[n[zn]?.(),i("li",null,[i(E,{"show-timeout":70,"hide-timeout":50,trigger:"click",onCommand:e=>{this.language=e,a("changeLanguage",e),l.onChangeLanguage&&l.onChangeLanguage(e)}},{default:()=>i("div",null,[i(N,{size:16},{default:()=>[i("svg",{class:"icon",viewBox:"0 0 1070 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1855",width:"128",height:"128"},[i("path",{d:"M232.58156522 358.13286957C244.86956522 394.4626087 265.17147826 425.984 293.48730435 453.76556522c24.04173913-26.17878261 42.2066087-58.23443478 53.96034782-95.63269565H232.58156522z","p-id":"1856"},null),i("path",{d:"M981.61530435 143.36h-448.77913044L507.19165217 6.05495652h-416.72347826c-45.94643478 0-83.34469565 37.39826087-83.34469565 83.34469565v708.42991305c0 45.94643478 37.39826087 83.34469565 83.34469565 83.34469565h379.85947826l-30.45286956 137.30504348h541.74052174c45.94643478 0 83.34469565-37.39826087 83.34469565-83.34469565V226.70469565c0-45.94643478-37.39826087-83.34469565-83.34469565-83.34469565zM415.83304348 564.35756522c-49.152-18.16486957-89.75582609-41.13808696-122.34573913-67.85113044-34.19269565 30.45286957-76.93356522 52.89182609-126.61982609 66.7826087l-17.09634783-28.31582609c48.61773913-12.82226087 89.22156522-32.05565217 121.2772174-59.30295652-33.12417391-33.65843478-56.0973913-72.65947826-68.91965218-117.00313044h-46.48069565v-32.05565217H276.92521739c-7.47965217-13.89078261-17.09634783-27.24730435-28.31582609-40.06956522l32.05565218-11.75373913c11.21947826 14.42504348 21.37043478 31.5213913 30.45286956 51.28904348h115.9346087v32.05565218h-46.48069565c-14.95930435 45.94643478-36.32973913 84.41321739-64.64556522 115.40034782 31.5213913 25.11026087 71.05669565 45.94643478 117.5373913 63.04278261l-17.63060869 27.78156522z m607.45460869 370.24278261c0 22.97321739-18.69913043 41.67234783-41.67234782 41.67234782H492.23234783l20.83617391-95.63269565h156.53843478l-89.22156522-497.39686957-0.53426087 2.67130435-3.73982608-19.76765217 1.06852174 0.53426087-32.58991305-181.64869565H982.14956522c22.97321739 0 41.67234783 18.69913043 41.67234782 41.67234782v707.89565218z","p-id":"1857"},null),i("path",{d:"M684.56626087 541.38434783h114.86608696v-30.45286957h-114.86608696V450.02573913h122.34573913v-30.45286956h-158.14121739v219.04695652h162.94956522V608.16695652h-127.15408696v-66.78260869z m239.88313043-65.71408696c-9.61669565 0-18.16486957 1.60278261-26.1787826 5.87686956-7.47965217 3.73982609-14.95930435 9.61669565-20.83617392 17.09634783V479.94434783h-34.72695652v158.67547826h34.72695652v-95.63269566c1.06852174-12.82226087 5.3426087-22.43895652 12.82226087-29.38434782 6.41113043-5.87686957 13.89078261-9.08243478 22.43895652-9.08243478 24.04173913 0 35.79547826 12.82226087 35.79547826 39.00104347v94.56417392h34.72695653v-97.76973913c1.06852174-43.27513043-19.2333913-64.64556522-58.76869566-64.64556522z","p-id":"1858"},null)])]})]),dropdown:()=>{let e;return i(V,null,"function"==typeof(t=e=d.map((e=>i(B,{command:e.value,disabled:this.language===e.value},{default:()=>[e.label]}))))||"[object Object]"===Object.prototype.toString.call(t)&&!m(t)?e:{default:()=>[e]});var t}})]),i("li",null,[i("span",{style:{display:"inline-block",lineHeight:1},onClick:this.toggle},[i(N,{size:16},{default:()=>[r?i("svg",{class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2676",width:"128",height:"128"},[i("path",{d:"M749.248 704H864a32 32 0 1 0 0-64H672a32 32 0 0 0-32 32v192a32 32 0 1 0 64 0v-114.752l137.36 137.36a32 32 0 1 0 45.232-45.264L749.248 704zM320 749.248V864a32 32 0 1 0 64 0V672a32 32 0 0 0-32-32H160a32 32 0 1 0 0 64h114.752l-137.36 137.36a32 32 0 1 0 45.264 45.232L320 749.248zM749.248 320H864a32 32 0 1 1 0 64H672a32 32 0 0 1-32-32V160a32 32 0 1 1 64 0v114.752l137.36-137.36a32 32 0 1 1 45.232 45.264L749.248 320zM320 274.752V160a32 32 0 1 1 64 0v192a32 32 0 0 1-32 32H160a32 32 0 1 1 0-64h114.752l-137.36-137.36a32 32 0 1 1 45.264-45.232L320 274.752z","p-id":"2677"},null)]):i("svg",{class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2522",width:"128",height:"128"},[i("path",{d:"M237.248 192H352a32 32 0 1 0 0-64H160a32 32 0 0 0-32 32v192a32 32 0 1 0 64 0v-114.752l137.36 137.36a32 32 0 1 0 45.232-45.264L237.248 192zM832 237.248V352a32 32 0 1 0 64 0V160a32 32 0 0 0-32-32H672a32 32 0 1 0 0 64h114.752l-137.36 137.36a32 32 0 1 0 45.264 45.232L832 237.248zM237.248 832H352a32 32 0 1 1 0 64H160a32 32 0 0 1-32-32V672a32 32 0 1 1 64 0v114.752l137.36-137.36a32 32 0 1 1 45.232 45.264L237.248 832zM832 786.752V672a32 32 0 1 1 64 0v192a32 32 0 0 1-32 32H672a32 32 0 1 1 0-64h114.752l-137.36-137.36a32 32 0 1 1 45.264-45.232L832 786.752z","p-id":"2523"},null)])]})])]),n[Dn]?.(),i("li",null,[i(E,{"show-timeout":70,"hide-timeout":80,"popper-class":e.be("header-tools","userDropdown"),onCommand:e=>{a("changeUserDropdown",e),l.onChangeUserDropdown&&l.onChangeUserDropdown(e)}},{default:()=>i("span",{class:e.be("header-tools","user")},[u?i("img",{class:"user-photo",src:u},null):null,i("span",null,[l.userName]),i(N,{class:"el-icon--right"},{default:()=>[i(En,null,null)]})]),dropdown:()=>i(V,null,{default:()=>[c?.map((e=>i(B,{command:e.value,divided:!!e.divided},{default:()=>[e.svg?i("span",{innerHTML:e.svg,class:"item-svg"},null):null,e.iconfont?i("i",{class:e.iconfont},null):null,o(e.label)]})))]})})]),i("li",null,[i("span",{style:{display:"inline-block",lineHeight:1},onClick:()=>{this.settingDrawer=!0}},[i(N,{size:16},{default:()=>[i(nr,null,null)]})])])]),i(v,{to:"body"},{default:()=>[i(R,{modelValue:this.settingDrawer,"onUpdate:modelValue":e=>this.settingDrawer=e,title:this.t("next.layout.systemSetting"),direction:"rtl",size:"380px",class:e.be("drawer","setting"),"destroy-on-close":!0,beforeClose:p},{default:()=>[i(wr,null,null)]})]})])}});const{getLightColor:Sr}=hn();var _r=r({setup:()=>({ns:t("ns",{})}),render(){const e=this.$slots,l=this.ns,n=t("options",{}),o=a((()=>{const{isHeaderBarColorGradual:e,headerBarColor:t}=n.setting;return e?{background:`linear-gradient(to bottom , ${t}, ${Sr(t,.5)})`}:""}));return i("header",{class:l.b("header"),style:o.value},[i(An,null,null),i("div",{class:l.bf("header","right")},[i(Cr,null,{default:()=>[e[zn]?.(),e[Dn]?.()]})])])}});function zr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Dr={exports:{}};(Dr.exports={}).forEach=function(e,t){for(var l=0;l<e.length;l++){var a=t(e[l]);if(a)return a}};var kr=Dr.exports,Mr={exports:{}},jr=Mr.exports={};jr.isIE=function(e){return(-1!==(t=navigator.userAgent.toLowerCase()).indexOf("msie")||-1!==t.indexOf("trident")||-1!==t.indexOf(" edge/"))&&(!e||e===function(){var e=3,t=document.createElement("div"),l=t.getElementsByTagName("i");do{t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e"}while(l[0]);return e>4?e:undefined}());var t},jr.isLegacyOpera=function(){return!!window.opera};var Ar=Mr.exports,Lr={exports:{}};(Lr.exports={}).getOption=function(e,t,l){var a=e[t];if(null==a&&void 0!==l)return l;return a};var Tr=Lr.exports;function Or(){var e={},t=0,l=0,a=0;return{add:function(n,o){o||(o=n,n=0),n>l?l=n:n<a&&(a=n),e[n]||(e[n]=[]),e[n].push(o),t++},process:function(){for(var t=a;t<=l;t++)for(var n=e[t],o=0;o<n.length;o++){(0,n[o])()}},size:function(){return t}}}var Hr="_erd";function Er(e){return e[Hr]}var Nr={initState:function(e){return e[Hr]={},Er(e)},getState:Er,cleanState:function(e){delete e[Hr]}},Vr=Ar,Br=kr.forEach,Rr=kr.forEach,Fr=function(e){var t=e.stateHandler.getState;return{isDetectable:function(e){var l=t(e);return l&&!!l.isDetectable},markAsDetectable:function(e){t(e).isDetectable=!0},isBusy:function(e){return!!t(e).busy},markBusy:function(e,l){t(e).busy=!!l}}},Pr=function(e){var t={};function l(l){var a=e.get(l);return void 0===a?[]:t[a]||[]}return{get:l,add:function(l,a){var n=e.get(l);t[n]||(t[n]=[]),t[n].push(a)},removeListener:function(e,t){for(var a=l(e),n=0,o=a.length;n<o;++n)if(a[n]===t){a.splice(n,1);break}},removeAllListeners:function(e){var t=l(e);t&&(t.length=0)}}},Ir=function(){var e=1;return{generate:function(){return e++}}},Wr=function(e){var t=e.idGenerator,l=e.stateHandler.getState;return{get:function(e){var t=l(e);return t&&void 0!==t.id?t.id:null},set:function(e){var a=l(e);if(!a)throw new Error("setId required the element to have a resize detection state.");var n=t.generate();return a.id=n,n}}},Yr=function(e){function t(){}var l={log:t,warn:t,error:t};if(!e&&window.console){var a=function(e,t){e[t]=function(){var e=console[t];if(e.apply)e.apply(console,arguments);else for(var l=0;l<arguments.length;l++)e(arguments[l])}};a(l,"log"),a(l,"warn"),a(l,"error")}return l},$r=Ar,Ur=function(e){var t=(e=e||{}).reporter,l=Tr.getOption(e,"async",!0),a=Tr.getOption(e,"auto",!0);a&&!l&&(t&&t.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),l=!0);var n,o=Or(),r=!1;function i(){for(r=!0;o.size();){var e=o;o=Or(),e.process()}r=!1}function s(){var e;e=i,n=setTimeout(e,0)}return{add:function(e,t){!r&&a&&l&&0===o.size()&&s(),o.add(e,t)},force:function(e){r||(void 0===e&&(e=l),n&&(clearTimeout(n),n=null),e?s():i())}}},Xr=Nr,qr=function(e){var t=(e=e||{}).reporter,l=e.batchProcessor,a=e.stateHandler.getState;if(!t)throw new Error("Missing required dependency: reporter.");function n(t){var l=e.important?" !important; ":"; ";return(t.join(l)+l).trim()}function o(e){return a(e).object}return{makeDetectable:function(e,o,r){r||(r=o,o=e,e=null),(e=e||{}).debug,Vr.isIE(8)?r(o):function(o,r){var i=n(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),s=!1,u=window.getComputedStyle(o),c=o.offsetWidth,d=o.offsetHeight;function p(){function l(){if("static"===u.position){o.style.setProperty("position","relative",e.important?"important":"");var l=function(t,l,a,n){var o=a[n];"auto"!==o&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(o)&&(t.warn("An element that is positioned static has style."+n+"="+o+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+n+" will be set to 0. Element: ",l),l.style.setProperty(n,"0",e.important?"important":""))};l(t,o,u,"top"),l(t,o,u,"right"),l(t,o,u,"bottom"),l(t,o,u,"left")}}""!==u.position&&(l(),s=!0);var n=document.createElement("object");n.style.cssText=i,n.tabIndex=-1,n.type="text/html",n.setAttribute("aria-hidden","true"),n.onload=function(){s||l(),function e(t,l){if(!t.contentDocument){var n=a(t);return n.checkForObjectDocumentTimeoutId&&window.clearTimeout(n.checkForObjectDocumentTimeoutId),void(n.checkForObjectDocumentTimeoutId=setTimeout((function(){n.checkForObjectDocumentTimeoutId=0,e(t,l)}),100))}l(t.contentDocument)}(this,(function(e){r(o)}))},Vr.isIE()||(n.data="about:blank"),a(o)&&(o.appendChild(n),a(o).object=n,Vr.isIE()&&(n.data="about:blank"))}a(o).startSize={width:c,height:d},l?l.add(p):p()}(o,r)},addListener:function(e,t){function l(){t(e)}if(Vr.isIE(8))a(e).object={proxy:l},e.attachEvent("onresize",l);else{var n=o(e);if(!n)throw new Error("Element is not detectable by this strategy.");n.contentDocument.defaultView.addEventListener("resize",l)}},uninstall:function(e){if(a(e)){var t=o(e);t&&(Vr.isIE(8)?e.detachEvent("onresize",t.proxy):e.removeChild(t),a(e).checkForObjectDocumentTimeoutId&&window.clearTimeout(a(e).checkForObjectDocumentTimeoutId),delete a(e).object)}}}},Kr=function(e){var t=(e=e||{}).reporter,l=e.batchProcessor,a=e.stateHandler.getState;e.stateHandler.hasState;var n=e.idHandler;if(!l)throw new Error("Missing required dependency: batchProcessor");if(!t)throw new Error("Missing required dependency: reporter.");var o=function(){var e=500,t=500,l=document.createElement("div");l.style.cssText=s(["position: absolute","width: 1000px","height: 1000px","visibility: hidden","margin: 0","padding: 0"]);var a=document.createElement("div");a.style.cssText=s(["position: absolute","width: 500px","height: 500px","overflow: scroll","visibility: none","top: -1500px","left: -1500px","visibility: hidden","margin: 0","padding: 0"]),a.appendChild(l),document.body.insertBefore(a,document.body.firstChild);var n=e-a.clientWidth,o=t-a.clientHeight;return document.body.removeChild(a),{width:n,height:o}}(),r="erd_scroll_detection_container";function i(e){!function(e,t,l){function a(l,a){a=a||function(t){e.head.appendChild(t)};var n=e.createElement("style");return n.innerHTML=l,n.id=t,a(n),n}if(!e.getElementById(t)){var n=l+"_animation",o=l+"_animation_active",r="/* Created by the element-resize-detector library. */\n";r+="."+l+" > div::-webkit-scrollbar { "+s(["display: none"])+" }\n\n",r+="."+o+" { "+s(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+n,"animation-name: "+n])+" }\n",r+="@-webkit-keyframes "+n+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",a(r+="@keyframes "+n+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}(e,"erd_scroll_detection_scrollbar_style",r)}function s(t){var l=e.important?" !important; ":"; ";return(t.join(l)+l).trim()}function u(e,l,a){if(e.addEventListener)e.addEventListener(l,a);else{if(!e.attachEvent)return t.error("[scroll] Don't know how to add event listeners.");e.attachEvent("on"+l,a)}}function c(e,l,a){if(e.removeEventListener)e.removeEventListener(l,a);else{if(!e.detachEvent)return t.error("[scroll] Don't know how to remove event listeners.");e.detachEvent("on"+l,a)}}function d(e){return a(e).container.childNodes[0].childNodes[0].childNodes[0]}function p(e){return a(e).container.childNodes[0].childNodes[0].childNodes[1]}return i(window.document),{makeDetectable:function(e,i,c){function h(){if(e.debug){var l=Array.prototype.slice.call(arguments);if(l.unshift(n.get(i),"Scroll: "),t.log.apply)t.log.apply(null,l);else for(var a=0;a<l.length;a++)t.log(l[a])}}function f(e){var t=a(e).container.childNodes[0],l=window.getComputedStyle(t);return!l.width||-1===l.width.indexOf("px")}function v(){var e=window.getComputedStyle(i),t={};return t.position=e.position,t.width=i.offsetWidth,t.height=i.offsetHeight,t.top=e.top,t.right=e.right,t.bottom=e.bottom,t.left=e.left,t.widthCSS=e.width,t.heightCSS=e.height,t}function m(){if(h("storeStyle invoked."),a(i)){var e=v();a(i).style=e}else h("Aborting because element has been uninstalled")}function g(e,t,l){a(e).lastWidth=t,a(e).lastHeight=l}function b(){return 2*o.width+1}function y(){return 2*o.height+1}function x(e){return e+10+b()}function w(e){return e+10+y()}function C(e,t,l){var a=d(e),n=p(e),o=x(t),r=w(l),i=function(e){return 2*e+b()}(t),s=function(e){return 2*e+y()}(l);a.scrollLeft=o,a.scrollTop=r,n.scrollLeft=i,n.scrollTop=s}function S(){var e=a(i).container;if(!e){(e=document.createElement("div")).className=r,e.style.cssText=s(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),a(i).container=e,function(e){e.className+=" "+r+"_animation_active"}(e),i.appendChild(e);var t=function(){a(i).onRendered&&a(i).onRendered()};u(e,"animationstart",t),a(i).onAnimationStart=t}return e}function _(){if(h("Injecting elements"),a(i)){!function(){var l=a(i).style;if("static"===l.position){i.style.setProperty("position","relative",e.important?"important":"");var n=function(e,t,l,a){var n=l[a];"auto"!==n&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(n)&&(e.warn("An element that is positioned static has style."+a+"="+n+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+a+" will be set to 0. Element: ",t),t.style[a]=0)};n(t,i,l,"top"),n(t,i,l,"right"),n(t,i,l,"bottom"),n(t,i,l,"left")}}();var l=a(i).container;l||(l=S());var n,c,d,p,f=o.width,v=o.height,m=s(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),g=s(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(["left: "+(n=(n=-(1+f))?n+"px":"0"),"top: "+(c=(c=-(1+v))?c+"px":"0"),"right: "+(p=(p=-f)?p+"px":"0"),"bottom: "+(d=(d=-v)?d+"px":"0")])),b=s(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),y=s(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),x=s(["position: absolute","left: 0","top: 0"]),w=s(["position: absolute","width: 200%","height: 200%"]),C=document.createElement("div"),_=document.createElement("div"),z=document.createElement("div"),D=document.createElement("div"),k=document.createElement("div"),M=document.createElement("div");C.dir="ltr",C.style.cssText=m,C.className=r,_.className=r,_.style.cssText=g,z.style.cssText=b,D.style.cssText=x,k.style.cssText=y,M.style.cssText=w,z.appendChild(D),k.appendChild(M),_.appendChild(z),_.appendChild(k),C.appendChild(_),l.appendChild(C),u(z,"scroll",j),u(k,"scroll",A),a(i).onExpandScroll=j,a(i).onShrinkScroll=A}else h("Aborting because element has been uninstalled");function j(){var e=a(i);e&&e.onExpand?e.onExpand():h("Aborting expand scroll handler: element has been uninstalled")}function A(){var e=a(i);e&&e.onShrink?e.onShrink():h("Aborting shrink scroll handler: element has been uninstalled")}}function z(){function o(t,l,a){var n=function(e){return d(e).childNodes[0]}(t),o=x(l),r=w(a);n.style.setProperty("width",o+"px",e.important?"important":""),n.style.setProperty("height",r+"px",e.important?"important":"")}function r(r){var u=i.offsetWidth,c=i.offsetHeight,d=u!==a(i).lastWidth||c!==a(i).lastHeight;h("Storing current size",u,c),g(i,u,c),l.add(0,(function(){if(d)if(a(i))if(s()){if(e.debug){var l=i.offsetWidth,r=i.offsetHeight;l===u&&r===c||t.warn(n.get(i),"Scroll: Size changed before updating detector elements.")}o(i,u,c)}else h("Aborting because element container has not been initialized");else h("Aborting because element has been uninstalled")})),l.add(1,(function(){a(i)?s()?C(i,u,c):h("Aborting because element container has not been initialized"):h("Aborting because element has been uninstalled")})),d&&r&&l.add(2,(function(){a(i)?s()?r():h("Aborting because element container has not been initialized"):h("Aborting because element has been uninstalled")}))}function s(){return!!a(i).container}function u(){h("notifyListenersIfNeeded invoked");var e=a(i);return void 0===a(i).lastNotifiedWidth&&e.lastWidth===e.startSize.width&&e.lastHeight===e.startSize.height?h("Not notifying: Size is the same as the start size, and there has been no notification yet."):e.lastWidth===e.lastNotifiedWidth&&e.lastHeight===e.lastNotifiedHeight?h("Not notifying: Size already notified"):(h("Current size not notified, notifying..."),e.lastNotifiedWidth=e.lastWidth,e.lastNotifiedHeight=e.lastHeight,void Br(a(i).listeners,(function(e){e(i)})))}function c(){h("Scroll detected."),f(i)?h("Scroll event fired while unrendered. Ignoring..."):r(u)}if(h("registerListenersAndPositionElements invoked."),a(i)){a(i).onRendered=function(){if(h("startanimation triggered."),f(i))h("Ignoring since element is still unrendered...");else{h("Element rendered.");var e=d(i),t=p(i);0!==e.scrollLeft&&0!==e.scrollTop&&0!==t.scrollLeft&&0!==t.scrollTop||(h("Scrollbars out of sync. Updating detector elements..."),r(u))}},a(i).onExpand=c,a(i).onShrink=c;var v=a(i).style;o(i,v.width,v.height)}else h("Aborting because element has been uninstalled")}function D(){if(h("finalizeDomMutation invoked."),a(i)){var e=a(i).style;g(i,e.width,e.height),C(i,e.width,e.height)}else h("Aborting because element has been uninstalled")}function k(){c(i)}function M(){var e;h("Installing..."),a(i).listeners=[],e=v(),a(i).startSize={width:e.width,height:e.height},h("Element start size",a(i).startSize),l.add(0,m),l.add(1,_),l.add(2,z),l.add(3,D),l.add(4,k)}c||(c=i,i=e,e=null),e=e||{},h("Making detectable..."),!function(e){return!function(e){var t=e.getRootNode&&e.getRootNode().contains(e);return e===e.ownerDocument.body||e.ownerDocument.body.contains(e)||t}(e)||null===window.getComputedStyle(e)}(i)?M():(h("Element is detached"),S(),h("Waiting until element is attached..."),a(i).onRendered=function(){h("Element is now attached"),M()})},addListener:function(e,t){if(!a(e).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.");a(e).listeners.push(t)},uninstall:function(e){var t=a(e);t&&(t.onExpandScroll&&c(d(e),"scroll",t.onExpandScroll),t.onShrinkScroll&&c(p(e),"scroll",t.onShrinkScroll),t.onAnimationStart&&c(t.container,"animationstart",t.onAnimationStart),t.container&&e.removeChild(t.container))},initDocument:i}};function Gr(e){return Array.isArray(e)||void 0!==e.length}function Zr(e){if(Array.isArray(e))return e;var t=[];return Rr(e,(function(e){t.push(e)})),t}function Jr(e){return e&&1===e.nodeType}var Qr=function(e){var t;if((e=e||{}).idHandler)t={get:function(t){return e.idHandler.get(t,!0)},set:e.idHandler.set};else{var l=Ir(),a=Wr({idGenerator:l,stateHandler:Xr});t=a}var n=e.reporter;n||(n=Yr(!1===n));var o=ei(e,"batchProcessor",Ur({reporter:n})),r={};r.callOnAdd=!!ei(e,"callOnAdd",!0),r.debug=!!ei(e,"debug",!1);var i,s=Pr(t),u=Fr({stateHandler:Xr}),c=ei(e,"strategy","object"),d=ei(e,"important",!1),p={reporter:n,batchProcessor:o,stateHandler:Xr,idHandler:t,important:d};if("scroll"===c&&($r.isLegacyOpera()?(n.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),c="object"):$r.isIE(9)&&(n.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),c="object")),"scroll"===c)i=Kr(p);else{if("object"!==c)throw new Error("Invalid strategy name: "+c);i=qr(p)}var h={};return{listenTo:function(e,l,a){function o(e){var t=s.get(e);Rr(t,(function(t){t(e)}))}function c(e,t,l){s.add(t,l),e&&l(t)}if(a||(a=l,l=e,e={}),!l)throw new Error("At least one element required.");if(!a)throw new Error("Listener required.");if(Jr(l))l=[l];else{if(!Gr(l))return n.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");l=Zr(l)}var p=0,f=ei(e,"callOnAdd",r.callOnAdd),v=ei(e,"onReady",(function(){})),m=ei(e,"debug",r.debug);Rr(l,(function(e){Xr.getState(e)||(Xr.initState(e),t.set(e));var r=t.get(e);if(m&&n.log("Attaching listener to element",r,e),!u.isDetectable(e))return m&&n.log(r,"Not detectable."),u.isBusy(e)?(m&&n.log(r,"System busy making it detectable"),c(f,e,a),h[r]=h[r]||[],void h[r].push((function(){++p===l.length&&v()}))):(m&&n.log(r,"Making detectable..."),u.markBusy(e,!0),i.makeDetectable({debug:m,important:d},e,(function(e){if(m&&n.log(r,"onElementDetectable"),Xr.getState(e)){u.markAsDetectable(e),u.markBusy(e,!1),i.addListener(e,o),c(f,e,a);var t=Xr.getState(e);if(t&&t.startSize){var s=e.offsetWidth,d=e.offsetHeight;t.startSize.width===s&&t.startSize.height===d||o(e)}h[r]&&Rr(h[r],(function(e){e()}))}else m&&n.log(r,"Element uninstalled before being detectable.");delete h[r],++p===l.length&&v()})));m&&n.log(r,"Already detecable, adding listener."),c(f,e,a),p++})),p===l.length&&v()},removeListener:s.removeListener,removeAllListeners:s.removeAllListeners,uninstall:function(e){if(!e)return n.error("At least one element is required.");if(Jr(e))e=[e];else{if(!Gr(e))return n.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");e=Zr(e)}Rr(e,(function(e){s.removeAllListeners(e),i.uninstall(e),Xr.cleanState(e)}))},initDocument:function(e){i.initDocument&&i.initDocument(e)}}};function ei(e,t,l){var a=e[t];return null==a&&void 0!==l?l:a}var ti=zr(Qr);const li=(e,t)=>{const l=ti();let a=null;l.listenTo(e,(()=>{null!==a&&clearTimeout(a),a=setTimeout((()=>{t&&t(e),clearTimeout(a)}),200)})),g((()=>{l.removeListener(e,(()=>{}))}))},ai=e=>{if(null==e)return e;let t;if("object"==typeof e){t=Array.isArray(e)?[]:{};for(let l in e)"object"==typeof e[l]?t[l]=ai(e[l]):t[l]=e[l]}else t=e;return t},ni=(e,t)=>{const l=[],a=new Map;for(const n of e){const e=n[t];a.has(e)||(a.set(e,!0),l.push(n))}return l},oi=e=>null!=e&&("string"==typeof e?""!==e.trim():!1!==e),ri=(...e)=>{let t=null;for(let l=0;l<e.length;l++){const a=e[l];if(null!=a){t=a;break}}return t},ii=(e,t,l)=>(Object.defineProperty(e,l,{get:()=>t[l]}),{target:e,source:t});var si=r({props:{meta:{type:Object,default:()=>({})}},setup(e){const l=t("ns",{}),{t:a}=dn(),n=e.meta;return()=>i(s,null,[i("span",{class:l.be("item","icon")},[n.icon?i("i",{class:n.icon},null):i("svg",{class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"19771",width:"32",height:"32"},[i("path",{d:"M512 958.8C265.6 958.8 65.2 758.4 65.2 512S265.6 65.2 512 65.2 958.8 265.6 958.8 512 758.4 958.8 512 958.8z m0-832c-212.4 0-385.2 172.8-385.2 385.2S299.6 897.2 512 897.2 897.2 724.4 897.2 512 724.4 126.8 512 126.8z","p-id":"19772"},null),i("path",{d:"M512 512m-169.5 0a169.5 169.5 0 1 0 339 0 169.5 169.5 0 1 0-339 0Z","p-id":"19773"},null)])]),i("span",{class:l.be("item","title")},[a(n.title)])])}});const ui=r({name:"NextMenuItem",props:{menuData:{type:Array,required:!0}},setup(e){const l=t("ns",{}),n=a((()=>e.menuData)).value;return()=>i(s,null,[i(s,null,[n.map((e=>e.children?.length?ri(e.meta?.isHide,!1)?null:i(P,{"popper-class":l.b("popper"),index:e.path||e.id,teleported:!0},{title:()=>i(si,{meta:e.meta},null),default:()=>i(ui,{menuData:e.children},null)}):ri(e.meta?.isHide,!1)?null:i(F,{index:e.path},{default:()=>[i(si,{meta:e.meta},null)]})))])])}}),ci=Ae("menu");const di=Sn(r({name:"NextMenu",props:{className:{type:String,default:""},style:{type:Object,default:()=>({})},router:{type:Boolean,default:!0},mode:{type:String,values:["horizontal","vertical"],default:"horizontal"},menuTree:{type:Array,default:()=>[]}},setup(t){b("ns",ci);const a=e().appContext.config.globalProperties.$router,n=a.currentRoute?.value.fullPath,o=l(n);y((()=>a.currentRoute?.value),(e=>{o.value=e.fullPath}));return()=>i(s,null,[i(I,{class:[ci.b(),t.className],style:t.style,defaultActive:o.value,router:t.router,mode:t.mode,ellipsis:!0},{default:()=>[i(s,null,[t.menuTree.map((e=>e.children?.length?ri(e.meta?.isHide,!1)?null:i(P,{"popper-class":ci.b("popper"),index:e.path||e.id,teleported:!0},{title:()=>i(si,{meta:e.meta},null),default:()=>i(ui,{menuData:e.children},null)}):ri(e.meta?.isHide,!1)?null:i(F,{"popper-class":ci.b("popper"),index:e.path},{default:()=>[i(si,{meta:e.meta},null)]})))])]})])}}));var pi=r({setup:()=>({ns:t("ns",{})}),render(){const e=this.$slots,l=this.ns,a=t("options",{});return i("aside",{class:l.b("sidebar")},[i(L,null,{default:()=>[e[_n]?e[_n]():i(di,{mode:"vertical",menuTree:a.menuTree},null)]})])}});const hi=Ae("layout-defaults");var fi=r({props:{},setup:()=>(b("ns",hi),{}),render(){const e=this.$slots,a=t("options",{}),n=t("__emit__",{});e.menu;const o=l(!!e.tabs);return void 0===e.tabs&&a.showTabs&&(o.value=!0),i(W,{class:hi.b()},{default:()=>[i(pi,null,null),i("div",{class:[hi.b("content")]},[i(_r,null,null),a.showTabs?e.tabs?e.tabs?.():i(Ei,{tabs:a.tabs,activeTab:a.activeTab,onChange:(...e)=>n("tabsChange",...e),onSelect:(...e)=>n("tabsSelect",...e),onClose:(...e)=>n("tabsClose",...e)},null):null,i("main",{class:[hi.bf("main"),hi.is("layout-tabs",o.value)]},[e.default?.()])])]})}});const{getLightColor:vi}=hn();var mi=r({setup(e,{slots:l}){const n=t("ns",{}),o=t("options",{}),r=a((()=>{const{isHeaderBarColorGradual:e,headerBarColor:t}=o.setting;return e?{background:`linear-gradient(to bottom , ${t}, ${vi(t,.5)})`}:""}));return()=>i(s,null,[i("header",{class:n.b("header"),style:r.value},[i(An,null,null),i("div",{class:n.bf("header","menu")},[l[_n]?l[_n]():i(di,{menuTree:o.menuTree,router:o.menuRouter,mode:o.menuMode},null)]),i("div",{class:n.bf("header","right")},[i(Cr,null,{default:()=>[l[zn]?.(),l[Dn]?.()]})])])])}});const gi=Ae("layout-transverse");var bi=r({props:{},setup:()=>(b("ns",gi),{}),render(){const e=this.$slots,a=t("options",{}),n=t("__emit__",{}),o={};e[_n]&&(o[_n]=()=>e[_n]()),e[zn]&&(o[zn]=()=>e[zn]()),e[Dn]&&(o[Dn]=()=>e[Dn]());const r=l(!!e.tabs);return void 0===e.tabs&&a.showTabs&&(r.value=!0),i(s,null,[i(mi,null,(u=o,"function"==typeof u||"[object Object]"===Object.prototype.toString.call(u)&&!m(u)?o:{default:()=>[o]})),a.showTabs?e.tabs?e.tabs?.():i(Ei,{tabs:a.tabs,activeTab:a.activeTab,onChange:(...e)=>n("tabsChange",...e),onSelect:(...e)=>n("tabsSelect",...e),onClose:(...e)=>n("tabsClose",...e)},null):null,i("main",{class:[gi.b("main"),gi.is("layout-tabs",r.value)]},[e.default?.()])]);var u}});const{getLightColor:yi}=hn();var xi=r({setup(e,{slots:l}){const n=t("ns",{}),o=t("options",{}),r=a((()=>{const{isHeaderBarColorGradual:e,headerBarColor:t}=o.setting;return e?{background:`linear-gradient(to bottom , ${t}, ${yi(t,.5)})`}:""}));return()=>i(s,null,[i("header",{class:n.b("header"),style:r.value},[i(An,null,null),i("div",{class:n.bf("header","menu")},null),i("div",{class:n.bf("header","right")},[i(Cr,null,{default:()=>[l[zn]?.(),l[Dn]?.()]})])])])}}),wi=r({setup:()=>({ns:t("ns",{})}),render(){const e=this.$slots,l=this.ns,a=t("options",{});return i("aside",{class:l.b("sidebar")},[e[_n]?e[_n]():i(di,{mode:"vertical",menuTree:a.menuTree},null)])}});const Ci=Ae("layout-columns");var Si=r({props:{},setup:()=>(b("ns",Ci),{}),render(){const e=this.$slots,a=t("options",{}),n=t("__emit__",{}),o={};e[_n]&&(o[_n]=()=>e[_n]()),e[zn]&&(o[zn]=()=>e[zn]()),e[Dn]&&(o[Dn]=()=>e[Dn]());const r=l(!!e.tabs);return void 0===e.tabs&&a.showTabs&&(r.value=!0),i(W,{class:Ci.b()},{default:()=>{return[i(wi,null,null),i("div",{class:[Ci.b("content")]},[i(xi,null,(t=o,"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!m(t)?o:{default:()=>[o]})),a.showTabs?e.tabs?e.tabs?.():i(Ei,{tabs:a.tabs,activeTab:a.activeTab,onChange:(...e)=>n("tabsChange",...e),onSelect:(...e)=>n("tabsSelect",...e),onClose:(...e)=>n("tabsClose",...e)},null):null,i("main",{class:[Ci.bf("main"),Ci.is("layout-tabs",r.value)]},[e.default?.()])])];var t}})}});const{getLightColor:_i}=hn();var zi=r({setup(e,{slots:l}){const n=t("ns",{}),o=t("options",{}),r=a((()=>{const{isHeaderBarColorGradual:e,headerBarColor:t}=o.setting;return e?{background:`linear-gradient(to bottom , ${t}, ${_i(t,.5)})`}:""}));return()=>i(s,null,[i("header",{class:n.b("header"),style:r.value},[i(An,null,null),i("div",{class:n.bf("header","menu")},[l[_n]?.()]),i("div",{class:n.bf("header","right")},[i(Cr,null,{default:()=>[l[zn]?.(),l[Dn]?.()]})])])])}}),Di=r({setup:()=>({ns:t("ns",{})}),render(){const e=this.$slots,l=this.ns,a=t("options",{});return i("aside",{class:l.b("sidebar")},[i(L,null,{default:()=>[e[_n]?e[_n]():i(di,{mode:"vertical",menuTree:a.menuTree},null)]})])}});const ki=Ae("layout-classic");var Mi=r({props:{},setup:()=>(b("ns",ki),{ns:ki}),render(){const e=this.$slots,a=t("options",{}),n=t("__emit__",{});e.menu;const o=l(!!e.tabs);return void 0===e.tabs&&a.showTabs&&(o.value=!0),i(s,null,[i(zi,null,null),i("div",{class:[ki.b("content"),ki.is("layout-tabs",o.value)]},[i(Di,null,null),i("div",{class:ki.b("container")},[a.showTabs?e.tabs?e.tabs?.():i(Ei,{tabs:a.tabs,activeTab:a.activeTab,onChange:(...e)=>n("tabsChange",...e),onSelect:(...e)=>n("tabsSelect",...e),onClose:(...e)=>n("tabsClose",...e)},null):null,i("main",{class:[ki.b("main")]},[e.default?.()])])])])}});const ji=Ae("layout"),Ai={defaults:x(fi),transverse:x(bi),columns:x(Si),classic:x(Mi)},Li=(e,t)=>{if(Array.isArray(e))return t};const Ti=Sn(r({name:"NextLayout",props:{className:{type:String,default:""},style:{type:Object,default:()=>({})},options:{type:Object,default:()=>({})}},emits:["changeLanguage","changeUserDropdown","changeOptions","tabsChange","tabsSelect","tabsClose"],setup(e,{slots:t,emit:a}){const n=l(Qa(kn,e.options,Li));b("options",n.value),b("__ns__",ji),b("__emit__",a),b("__slots__",t);const o=e=>{n.value=Qa(n.value,e,Li),yn(n.value?.setting),a("changeOptions",n.value)};return b("updateOptions",o),y((()=>e.options),(e=>{o(e)}),{deep:!0,immediate:!0}),{options:n.value,updateOptions:o}},render(){const e=this.$props,t=this.$slots,a=this.options.setting?.layout||"transverse",n=l(Ai[a]);w((()=>{n.value=Ai[a],n.value||(n.value=Ai.transverse)}));const o={};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(o[e]=()=>t[e]?.());return i("div",{class:[ji.b(),e.className],style:e.style},[C(n.value,{},{...o})])}})),Oi=Ae("tabs");var Hi=r({name:"NextTabs",props:{activeTab:{type:[String,Number],default:"/"},tabs:{type:Array,default:()=>[]}},emits:["change","select","close"],setup(t,{emit:n}){const{t:o}=dn(),r=e().appContext.config.globalProperties.$router,u=a((()=>r.currentRoute.value.fullPath)),c=a((()=>t.tabs)),d=c.value?.findIndex((e=>e.path===u.value));if(d<0){const e=c.value[0];e&&e.path&&r.replace({path:e.path})}const p=l(d),h=l(c.value),f=e=>{const t=u.value,l=h.value.length,a=h.value.findIndex((e=>e.path===t));switch(e){case"other":a>-1&&(p.value=1,h.value=[h.value[0],h.value[a]]);break;case"left":if(a>-1){const e=h.value.slice(a);e.unshift(h.value[0]),h.value=e,p.value=1}break;case"right":if(a>-1&&a<l-1){const e=h.value.slice(0,a+1);h.value=e}break;case"all":const e=h.value[0];p.value=0,h.value=[e],v(null,e,p.value)}n("change",p.value,h.value,e)},v=(e,t,l)=>{e?.stopPropagation(),p.value=l;let a={path:t.path,query:t.query,params:t.params};r.push(a),n("select",t,l)};y((()=>r.currentRoute?.value),(e=>{const{tagTitle:t}=e.query,l={name:e.name,title:t||e.meta?.title,path:e.path,meta:e.meta,params:e.params,query:e.query},a=h.value.findIndex((t=>t.path===e.path));a>-1?(p.value=a,h.value[a]=l):(p.value=h.value.length,h.value.push(l)),n("change",p.value,h.value,"add")}));const m=()=>i("nav",{class:Oi.b()},[i(L,null,{default:()=>[i("ul",{class:Oi.b("list")},[h.value.map(((e,t)=>e?i("li",{class:["tab-item",Oi.is("active",p.value===t)],onClick:l=>v(l,e,t)},[i("i",{class:["tab-icon",e.meta?.icon]},null),i("span",null,[o(e.title)]),e.meta?.isAffix||"/"===e.path?null:i("span",{onClick:l=>((e,t,l)=>{e.stopPropagation();const a=u.value;if(a===t.path){const e=h.value[l-1];r.push({path:e.path,query:e.query||{},params:e.params||{}}),n("close",e,h.value)}h.value.splice(l,1);const o=h.value.findIndex((e=>e.path===a))||0;p.value=o>-1?o:0,n("change",p.value,h.value,"close")})(l,e,t)},[i(N,{class:"tab-close"},{default:()=>[i(oo,null,null)]})])]):null))])]}),i(E,{"show-timeout":80,"hide-timeout":80,onCommand:f},{default:()=>i("span",{class:Oi.b("tab-more")},[i("i",{class:[Oi.be("tab-more","box"),Oi.be("tab-more","top")]},null),i("i",{class:[Oi.be("tab-more","box"),Oi.be("tab-more","bottom")]},null)]),dropdown:()=>i(V,null,{default:()=>[i(B,{command:"other"},{default:()=>[i(N,null,{default:()=>[i(oo,null,null)]}),i("span",null,[o("next.layout.tabsOther")])]}),i(B,{command:"left"},{default:()=>[i(N,null,{default:()=>[i(Zn,null,null)]}),i("span",null,[o("next.layout.tabsLeft")])]}),i(B,{command:"right"},{default:()=>[i(N,null,{default:()=>[i(Go,null,null)]}),i("span",null,[o("next.layout.tabsRight")])]}),i(B,{command:"all"},{default:()=>[i(N,null,{default:()=>[i(oo,null,null)]}),i("span",null,[o("next.layout.tabsAll")])]})]})})]);return()=>i(s,null,[m()])}});const Ei=Sn(Hi),Ni=Ae("container");const Vi=Sn(r({name:"NextContainer",props:{className:{type:String,default:""},style:{type:Object,default:()=>({})},scrollbar:{type:Boolean,default:!1},padding:{type:[Boolean,String,Number],default:!0},card:{type:Boolean,default:!1}},setup(e,{slots:t}){const l=a((()=>{let t={};const l=e.padding;return"boolean"==typeof l?t=l?{padding:"15px"}:{}:"string"==typeof l?t={padding:l}:"number"==typeof l&&(t={padding:l+"px"}),t}));return()=>e.scrollbar?i(L,{class:[Ni.b(),e.className],style:e.style},{default:()=>[t.default?.()]}):i("div",{class:[Ni.b(),e.className],style:{...l.value,...e.style}},[e.card?i("div",{class:Ni.b("card")},[t.default?.()]):t.default?.()])}}));function Bi(e,t){return $a(e,t)}var Ri={className:{type:String,default:""},style:{type:Object,default:()=>({})},options:{type:Object,default:()=>({})},loading:{type:Boolean,default:!1},data:{type:Array,default:()=>[]},page:{type:Object,default:()=>({pageIndex:1,pageSize:10,total:0})},rowStyle:{type:Function,default:void 0},rowClassName:{type:Function,default:void 0},cellStyle:{type:Function,default:void 0},cellClassName:{type:Function,default:void 0},headerRowStyle:{type:Function,default:void 0},headerRowClassName:{type:Function,default:void 0},headerCellStyle:{type:Function,default:void 0},headerCellClassName:{type:Function,default:void 0},spanMethod:{type:Function,default:void 0}};const Fi=["menu-left-prefix","menu-left-suffix","menu-right-prefix","menu-right-suffix"],Pi=["operation-column-prefix","operation-column-suffix"];var Ii={initLoadData:!0,defaultContentHeight:300,fullscreenchangeContentHeight:!1,rowKey:"id",size:"default",fit:!0,stripe:!0,border:!0,index:!0,selection:!0,headerAlign:"center",cellAlign:"center",columnMinWidth:"100px",columns:[],showSearchForm:!0,showHeaderMenu:!0,showSearchLabel:!0,searchSpan:4,searchGutter:20,searchLabelWidth:"5em",searchColumnMinWidth:300,searchColumns:[],addBtn:!0,viewBtn:!0,delBtn:!0,editBtn:!0,batchDelBtn:!1,refreshBtn:!0,settingBtn:!0,operations:!0,operationsWidth:260,operationsBtnPlain:!1,operationsBtnText:!0,operationsBtnSize:"small",addBtnText:"",isPagination:!0,dialogTitle:"",dialogWidth:"60%",dialogFullscreen:!1,closeOnClickModal:!1,formColumns:[],formLabelWidth:"5em",formSpan:12,formColumnMinWidth:350};const Wi="column-",Yi=e=>Wi+e,$i="search-",Ui=e=>$i+e,Xi="form-",qi=e=>Xi+e,Ki=Ae("spin-loading");var Gi=r({name:"NextSpinLoading",props:{className:{type:String,default:""},style:{type:Object,default:()=>({})},loading:{type:Boolean,default:!1},tip:{type:String,default:""}},setup(e,{expose:t}){const{t:a}=dn(),n=l();return t({elementInstance:n}),{t:a,elementInstance:n}},render(){const e=this.t,t=this.$slots,l=this.$props,a=l.tip||e("next.loading");return i("div",{ref:"elementInstance",class:[Ki.b(),l.className],style:l.style},[t.default?.(),l.loading?i("div",{class:Ki.b("mask")},[i("span",{class:Ki.b("mask-dot")},[i("i",{class:Ki.be("mask","dot-item")},null),i("i",{class:Ki.be("mask","dot-item")},null),i("i",{class:Ki.be("mask","dot-item")},null),i("i",{class:Ki.be("mask","dot-item")},null)]),i("span",{class:Ki.be("mask","text")},[a])]):null])}}),Zi=r({name:"SearchColumn",props:{searchSpan:{type:Number,default:4},columns:{type:Array,default:()=>[]},formParams:{type:Object,default:()=>{}}},setup(e,{slots:a}){const r=t("options",{}),u=o(r)?n(r):r,{t:c}=dn(),d=t("ns",{}),h=l(e.columns);y((()=>e.columns),(()=>{h.value=e.columns}),{deep:!0});const f=p(e.formParams),v=e=>e.getTime()>Date.now(),m=[{text:c("next.date.oneWeekAge"),value:()=>{const e=new Date,t=new Date;return t.setTime(t.getTime()-6048e5),[t,e]}},{text:c("next.date.oneMonthAge"),value:()=>{const e=new Date,t=new Date;return t.setTime(t.getTime()-2592e6),[t,e]}},{text:c("next.date.threeMonthsAge"),value:()=>{const e=new Date,t=new Date;return t.setTime(t.getTime()-7776e6),[t,e]}},{text:c("next.date.oneYearAge"),value:()=>{const e=new Date,t=new Date;return t.setTime(t.getTime()-31536e6),[t,e]}},{text:c("next.date.threeYearsAge"),value:()=>{const e=new Date,t=new Date;return t.setTime(t.getTime()-94608e6),[t,e]}}],g=(e,t)=>{f.value[t]=e},b=e=>{const t=ri(e.searchDisabled,e.disabled,!1);if(a[Ui(e.prop)])return a[Ui(e.prop)]({column:e});if("input"===e.type||!e.type){const l=c("next.form.input")+(e.searchPlaceholder||e.searchLabel||e.label);return i(U,{modelValue:f[e.prop],"onUpdate:modelValue":t=>f[e.prop]=t,clearable:!0,disabled:t,placeholder:l},{prefix:e.prefix?()=>e.prefix(f,e):null,suffix:e.suffix?()=>e.suffix(f,e):null,prepend:e.prepend?()=>e.prepend(f,e):null,append:e.append?()=>e.append(f,e):null})}if("inputInteger"===e.type){const l=c("next.form.input")+(e.searchPlaceholder||e.searchLabel||e.label);return i(U,{modelValue:f[e.prop],"onUpdate:modelValue":t=>f[e.prop]=t,clearable:!0,disabled:t,placeholder:l,onInput:t=>((e,t)=>{const l=e.replace(/\D/g,"");f.value[t]=l})(t,e.prop)},{prefix:e.prefix?()=>e.prefix(f,e):null,suffix:e.suffix?()=>e.suffix(f,e):null,prepend:e.prepend?()=>e.prepend(f,e):null,append:e.append?()=>e.append(f,e):null})}if("inputNumber"===e.type){const l=c("next.form.input")+(e.searchPlaceholder||e.searchLabel||e.label);return i(U,{modelValue:f[e.prop],"onUpdate:modelValue":t=>f[e.prop]=t,clearable:!0,disabled:t,placeholder:l,onInput:t=>((e,t)=>{let l=e;l=l.replace(/[^0-9\.]/g,""),l=l.replace(/^\./,"0."),l=l.replace(/\.{2,}/g,"."),l=l.replace(".","DUMMY"),l=l.replace(/\./g,""),l=l.replace("DUMMY","."),f.value[t]=l})(t,e.prop)},{prefix:e.prefix?()=>e.prefix(f,e):null,suffix:e.suffix?()=>e.suffix(f,e):null,prepend:e.prepend?()=>e.prepend(f,e):null,append:e.append?()=>e.append(f,e):null})}if("select"===e.type){const l=c("next.form.select")+(e.searchPlaceholder||e.searchLabel||e.label);return i(X,{modelValue:f[e.prop],"onUpdate:modelValue":t=>f[e.prop]=t,clearable:!0,disabled:t,placeholder:l,multiple:e.multiple||!1,"collapse-tags":!0,"collapse-tags-tooltip":!0},{default:()=>[e.dicData&&e.dicData.map((e=>i(q,{value:e.value,label:e.label},null)))]})}if("date"===e.type){const l=c("next.form.select")+(e.searchPlaceholder||e.searchLabel||e.label);return i(K,{modelValue:f[e.prop],"onUpdate:modelValue":t=>f[e.prop]=t,type:"date","value-format":e.searchFormat||"YYYY-MM-DD",format:e.searchFormat||"YYYY-MM-DD",clearable:!0,"disabled-date":e.searchDisabledDate||v,disabled:t,placeholder:l,editable:e.searchEditable||!1},null)}if("datetimerange"===e.type)return i(K,{modelValue:f[e.prop],"onUpdate:modelValue":t=>f[e.prop]=t,type:"datetimerange","value-format":e.searchFormat||"YYYY-MM-DD HH:mm:ss",format:e.searchFormat||"YYYY-MM-DD HH:mm:ss",clearable:!0,"range-separator":c("next.date.rangeSeparator"),"start-placeholder":c("next.date.startPlaceholder"),"end-placeholder":c("next.date.endPlaceholder"),"disabled-date":e.searchDisabledDate||v,disabled:t,editable:e.searchEditable||!1,shortcuts:e.searchShortcuts||m},null);if("numberRange"===e.type){const t=f[e.prop],a=l(t[0]),n=l(t[1]),o=l(e.searchMin),r=l(e.searchMax),s=l(!0),u=t=>{a.value=t,g([a.value,n.value],e.prop)},p=t=>{n.value=t,g([a.value,n.value],e.prop)};return i("div",{class:d.b("header-search-item-number-range")},[i(G,{modelValue:a.value,"onUpdate:modelValue":e=>a.value=e,min:o.value,max:r.value,controls:s.value,onChange:u},null),i("span",{class:"number-range-division"},[c("next.date.rangeSeparator")]),i(G,{modelValue:n.value,"onUpdate:modelValue":e=>n.value=e,min:o.value,max:r.value,controls:s.value,onChange:p},null)])}return"treeSelect"===e.type?i(ws,{modelValue:f[e.prop],"onUpdate:modelValue":t=>f[e.prop]=t,disabled:e.disabled,column:e,formParams:f},null):void 0};return()=>i(s,null,[i(s,null,[h.value.map((t=>!t.hide&&i(Y,{span:e.searchSpan,class:d.b("header-search-item")},{default:()=>[i($,null,{label:()=>t.label&&ri(u.showSearchLabel,!0)?i(jn,{width:u.searchLabelWidth,content:t.label,textAlign:"right"},null):null,default:()=>b(t)})]})))])])}});function Ji(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!m(e)}var Qi=r({name:"HeaderSearch",props:{columns:{type:Array,default:()=>[]}},emits:["confirmSearch","clearSearch","zoomResize"],setup(a,{emit:r,slots:u}){const c=t("options",{}),d=o(c)?n(c):c,h=t("ns",{}),{t:f}=dn(),v=t("searchFormSlots"),m={};v.value.forEach((e=>{m[e]=(...t)=>u[e]&&u[e](...t)}));const g=p({}),b=l(a.columns),y=()=>{b.value.forEach((e=>{g[e.prop]="",oi(e.defaultValue)&&(g[e.prop]=e.defaultValue)}))};y();const x=()=>{r("confirmSearch",g)},w=()=>{y(),x(),r("clearSearch")},C=l(d.searchSpan),_=b.value.length,z=l(_),D=l(b.value),k=l([]),M=l(!1),{proxy:j}=e();S((()=>{const e=j.$refs.tableSearchForm?.$el;e&&li(e,(e=>{(e=>{const t=e.clientWidth,l=d.searchColumnMinWidth;let a=Math.floor(t/l);C.value=Math.ceil(24/a);const n=24%C.value;if(n&&(C.value=n,a=24/C.value),z.value=a,_>=z.value){const e=z.value-1;D.value=b.value.slice(0,e),k.value=b.value.slice(e)}else D.value=b.value,k.value=[];const o=Math.floor(t/a);M.value=o<l})(e),r("zoomResize")}))}));const A=l(!1),L=()=>{A.value=!A.value};return()=>i(s,null,[b.value.length?i(Z,{ref:"tableSearchForm",inline:!0,size:d.size,model:g,class:h.b("header")},{default:()=>[i(J,{gutter:d.searchGutter,class:h.b("header-search")},{default:()=>[i(Zi,{searchSpan:C.value,columns:D.value,formParams:g},Ji(m)?m:{default:()=>[m]}),A.value?i(Zi,{searchSpan:C.value,columns:k.value,formParams:g},Ji(m)?m:{default:()=>[m]}):null,i(Y,{span:C.value,class:h.b("header-search-btns")},{default:()=>[i($,null,{default:()=>[i(Q,{type:"primary",onClick:x},{icon:()=>i(N,null,{default:()=>[i(er,null,null)]}),default:()=>f("next.table.search")}),i(Q,{onClick:w},{icon:()=>i(N,null,{default:()=>[i(bo,null,null)]}),default:()=>f("next.table.clear")}),k.value.length?M.value?i(Q,{type:"primary",text:!0,bg:!0,circle:!0,class:h.b("header-search-expandBtn"),onClick:L},{icon:()=>A.value?i(uo,null,null):i(fo,null,null)}):i(Q,{type:"primary",text:!0,bg:!0,class:h.b("header-search-expandBtn"),onClick:L},{icon:()=>A.value?i(N,null,{default:()=>[i(Xn,null,null)]}):i(N,null,{default:()=>[i(En,null,null)]}),default:()=>A.value?f("next.table.foldSearch"):f("next.table.unfoldSearch")}):null]})]})]})]}):null])}}),es=r({name:"DrawerSetting",setup:()=>({visible:l(!1)}),render(){const e=t("options",{}),a=o(e)?n(e):e,r=l(a.columns),{t:s}=dn(),u=t("ns",{});return i(R,{modelValue:this.visible,"onUpdate:modelValue":e=>this.visible=e,title:s("next.table.setting.title"),"append-to-body":!0,size:"450px",class:u.b("setting-drawer")},{default:()=>[i(L,{class:u.be("setting-drawer","container")},{default:()=>[i(ee,{data:r.value,border:!0,style:{width:"100%"}},{default:()=>[i(te,{prop:"label",label:s("next.table.setting.label"),align:"center"},{default:({row:e})=>i(jn,{content:s(e.label)},null)}),i(te,{prop:"hide",label:s("next.table.setting.hide"),align:"center",width:"70px"},{default:({row:e})=>i(le,{modelValue:e.hide,"onUpdate:modelValue":t=>e.hide=t},null)}),i(te,{prop:"filter",label:s("next.table.setting.filter"),align:"center",width:"70px"},{default:({row:e})=>i(le,{modelValue:e.filter,"onUpdate:modelValue":t=>e.filter=t},null)}),i(te,{prop:"sort",label:s("next.table.setting.sort"),align:"center",width:"70px"},{default:({row:e})=>i(le,{modelValue:e.sortable,"onUpdate:modelValue":t=>e.sortable=t},null)})]})]})]})}}),ts=r({name:"HeaderMenu",setup:()=>({}),emits:["clickAdd","clickRefresh","deleteRows"],render(){const e=t("options",{}),r=o(e)?n(e):e,{t:s}=dn(),u=t("ns",{}),c=t("multipleSelection"),d=a((()=>c.value.length)),p=l();return i("div",{class:u.b("header-menu")},[i("div",{class:u.b("header-menu-left")},[this.$slots["menu-left-prefix"]?.({size:r.size}),r.addBtn&&i(Q,{type:"primary",size:r.size,onClick:()=>{this.$emit("clickAdd")}},{icon:()=>i(N,null,{default:()=>[i(Io,null,null)]}),default:()=>s("next.table.add")}),r.batchDelBtn&&i(Q,{type:"danger",size:r.size,disabled:!d.value,onClick:()=>{const e=n(_(c.value.map((e=>_(e)))));ae.confirm(s("next.table.message.batchDeleteTip"),s("next.table.message.tip"),{type:"warning",showClose:!1,center:!1,confirmButtonText:s("next.table.message.confirmButtonText"),cancelButtonText:s("next.table.message.cancelButtonText")}).then((()=>{this.$emit("deleteRows",e)})).catch((()=>{j({type:"info",message:s("next.table.message.cancelBatchDelete")})}))}},{icon:()=>i(N,null,{default:()=>[i(bo,null,null)]}),default:()=>s("next.table.batchDelete")}),this.$slots["menu-left-suffix"]?.({size:r.size})]),i("div",{class:u.b("header-menu-right")},[this.$slots["menu-right-prefix"]?.({size:r.size}),r.refreshBtn&&i(Q,{circle:!0,size:r.size,onClick:()=>{this.$emit("clickRefresh")}},{icon:()=>i(N,null,{default:()=>[i(Uo,null,null)]})}),r.settingBtn&&i(Q,{circle:!0,size:r.size,onClick:()=>{p.value.visible=!0}},{icon:()=>i(N,null,{default:()=>[i(pr,null,null)]})}),this.$slots["menu-right-suffix"]?.({size:r.size})]),i(es,{ref:p},null)])}});const ls=r({name:"TableColumnDynamic",props:{columnOption:{type:Object,default:()=>({})}},setup(e,{slots:l}){const a=t("columnSlots"),r={};a.value.forEach((e=>{r[e]=(...t)=>l[e]&&l[e](...t)}));const u=t("options",{}),c=o(u)?n(u):u,d=e.columnOption,p=ri(d.dicKey,"value"),h=(e,t)=>{const l=t.find((t=>t[p]==e));return l?l.label:e},f=(e,t)=>{if(d.children?.length>0)return i(s,null,[d.children.map((e=>{return i(ls,{columnOption:e},"function"==typeof(t=r)||"[object Object]"===Object.prototype.toString.call(t)&&!m(t)?r:{default:()=>[r]});var t}))]);if(l[Yi(d.prop)])return l[Yi(d.prop)]({row:e,index:t});if(d.dicData?.length>0){const t=e=>{const l=[];return e.forEach((e=>{const a={...e};if(a.children){const e=t(a.children);l.push(...e),delete a.children}l.push(a)})),l},l=t(d.dicData);return i("span",null,[h(e[d.prop],l)])}return null};return()=>i(s,null,[!d.hide&&i(te,{prop:d.prop,label:d.label,headerAlign:d.headerAlign||c.headerAlign,align:d.align||c.cellAlign,minWidth:d.minWidth||c.columnMinWidth||"auto",width:d.width||"auto",fixed:d.fixed,sortable:d.sortable||!1,formatter:d.formatter||null,showOverflowTooltip:ri(d.showOverflowTooltip,!0)},{default:({row:e,$index:t})=>f(e,t)})])}});var as=r({name:"TableColumnOperations",emits:["editRow","viewRow","deleteRow"],setup(e,{emit:l,slots:r}){const u=t("options"),c=o(u)?n(u):u,{t:d}=dn(),p=a((()=>{const{operationsBtnPlain:e,operationsBtnText:t}=c;return t||e})),h=()=>{const e=c.operationsBtnText,t=c.operationsBtnPlain,a=c.operationsBtnSize;return i(te,{fixed:"right",label:d("next.table.operation"),width:c.operationsWidth,headerAlign:c.headerAlign,align:c.cellAlign},{default:n=>i(s,null,[r["operation-column-prefix"]?.(n,{text:e,plain:t,size:a}),c.editBtn?i(A,{enterable:!1,effect:"dark",content:d("next.table.edit"),placement:"top",disabled:p.value},{default:()=>[i(Q,{text:e,plain:t,class:p.value?"":"operations-btn",size:a,type:"primary",onClick:()=>(e=>{l("editRow",e)})(n)},{icon:()=>i(N,null,{default:()=>[i(Co,null,null)]}),default:()=>d("next.table.edit")})]}):null,c.viewBtn?i(A,{enterable:!1,effect:"dark",content:d("next.table.view"),placement:"top",disabled:p.value},{default:()=>[i(Q,{text:e,plain:t,class:p.value?"":"operations-btn",size:a,type:"primary",onClick:()=>(e=>{l("viewRow",e)})(n)},{icon:()=>i(N,null,{default:()=>[i(mr,null,null)]}),default:()=>d("next.table.view")})]}):null,c.delBtn?i(A,{enterable:!1,effect:"dark",content:d("next.table.delete"),placement:"top",disabled:p.value},{default:()=>[i(Q,{text:e,plain:t,class:p.value?"":"operations-btn",size:a,type:"danger",onClick:()=>(e=>{ae.confirm(d("next.table.message.deleteTip"),d("next.table.message.tip"),{type:"warning",showClose:!1,center:!1,confirmButtonText:d("next.table.message.confirmButtonText"),cancelButtonText:d("next.table.message.cancelButtonText")}).then((()=>{l("deleteRow",e)})).catch((()=>{j({type:"info",message:d("next.table.message.cancelDelete")})}))})(n)},{icon:()=>i(N,null,{default:()=>[i(bo,null,null)]}),default:()=>d("next.table.delete")})]}):null,r["operation-column-suffix"]?.(n,{text:e,plain:t,size:a})])})};return()=>i(s,null,[h()])}}),ns=r({name:"FooterPagination",props:{page:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:l}){const a=t("options",{}),r=o(a)?n(a):a,u=e.page,c=e=>{u.pageIndex=e,l("change",u)},d=e=>{u.pageSize=e,l("change",u)};return()=>i(s,null,[i(ne,{currentPage:u.pageIndex,"onUpdate:currentPage":e=>u.pageIndex=e,pageSize:u.pageSize,"onUpdate:pageSize":e=>u.pageSize=e,total:u.total,small:"small"===r.size,layout:"total, sizes, prev, pager, next, jumper","page-sizes":ri(u.pageSizes,[10,20,30,40,50,100]),"onCurrent-change":c,"onSize-change":d},null)])}});const os=Ae("dialog");var rs=r({name:"NextDialog",props:{modelValue:{type:Boolean,default:!1},title:{type:String,default:""},fullscreen:{type:Boolean,default:!1},fullscreenBtn:{type:Boolean,default:!0},width:{type:[String,Number],default:"50%"},closeOnClickModal:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!1},draggable:{type:Boolean,default:!0},zoomSize:{type:Boolean,default:!0},destroyOnClose:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},top:{type:String,default:"15vh"}},emits:["close"],setup(e,{emit:t,slots:a}){const n=l(e.modelValue);y((()=>e.modelValue),(e=>{n.value=e}));const o=()=>{n.value=!1,t("close")},r=l(e.fullscreen);return()=>i(s,null,[i(oe,{modelValue:n.value,"onUpdate:modelValue":e=>n.value=e,class:os.b(),title:e.title,appendToBody:e.appendToBody,"destroy-on-close":!0,fullscreen:r.value,"lock-scroll":!0,modal:e.modal,"show-close":!1,closeOnClickModal:e.closeOnClickModal,width:e.width,top:e.top,draggable:e.draggable,destroyOnClose:e.destroyOnClose,onClose:o},{default:()=>[a.default?.()],header:({close:t,titleId:l,titleClass:a})=>i("div",{class:os.b("header")},[i("h4",{id:l,class:a},[e.title]),i("div",{class:os.e("header-right")},[e.fullscreenBtn&&i("span",{class:"icon-fullscreen",onClick:()=>r.value=!r.value},[i(N,null,{default:()=>[i(Do,null,null)]})]),i("span",{class:"icon-close",onClick:t},[i(N,{size:"18"},{default:()=>[i(oo,null,null)]})])])])})])}});const is={selection:!1,selectType:"radio",addBtn:!1,viewBtn:!1,delBtn:!1,editBtn:!1,batchDelBtn:!1,dialogWidth:"60%",dialogFullscreen:!1,closeOnClickModal:!1,refreshBtn:!0,settingBtn:!0,operations:!1};var ss={size:"default",colSpan:8,labelWidth:"6em",columnMinWidth:350,columns:[],formDatum:{},tableSelectConfig:is,isEditing:!0,showResetBtn:!0,showFooter:!0,submitText:null,resetText:null};const us=Ae("form");var cs=r({name:"NumberRangePicker",props:{modelValue:{type:[Array,String,Number,Boolean,Object],default:function(){return[null,null]}},min:{type:Number,default:0},max:{type:Number,default:100},disabled:{type:Boolean,default:!1}},emits:["change"],setup(e,{emit:t}){const a=e.disabled,{t:n}=dn(),o=l(Array.isArray(e.modelValue)&&e.modelValue[0]||0),r=l(Array.isArray(e.modelValue)&&e.modelValue[1]||0),u=l(e.min),c=l(e.max),d=e=>{o.value=e,t("change",[o.value,r.value])},p=e=>{r.value=e,t("change",[o.value,r.value])},h=l(!0),f=l();S((()=>{const e=f.value;li(e,(e=>{const t=e.clientWidth;h.value=t>200}))}));return()=>i(s,null,[i("div",{ref:f,class:us.e("number-range")},[i(G,{modelValue:o.value,"onUpdate:modelValue":e=>o.value=e,min:u.value,max:c.value,controls:h.value,disabled:a,onChange:d},null),i("span",{class:us.em("number-range","division")},[n("next.date.rangeSeparator")]),i(G,{modelValue:r.value,"onUpdate:modelValue":e=>r.value=e,min:u.value,max:c.value,controls:h.value,disabled:a,onChange:p},null)])])}});const ds=Sn(rs);function ps(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!m(e)}const hs=Ae("form"),fs=r({name:"InputTableSelect",props:{modelValue:{type:[Array,String,Number,Boolean,Object],default:function(){return[]}},column:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1},formParams:{type:Object,default:()=>({})},placeholder:{type:String,default:""}},emits:["select"],setup(e,{emit:t}){const{t:n}=dn(),o=e.disabled,r=e.column,u=r.placeholder||n("next.form.select")+r.label,c=ai(Ii),d=ai(is),f=tn(c,d,r.tableSelect),v=p({visible:!1,title:r.label+n("next.form.tableSelect"),dialogWidth:f.dialogWidth}),m=()=>{v.visible=!0},g=()=>{v.visible=!1},b=p({loading:!1,page:{pageIndex:1,pageSize:20,total:0},data:[]}),x=e=>{b.loading=!0,f.loadData?.(e,b.page,(e=>{b.data=e.data||[],b.page.total=e.total||0,b.loading=!1}))},w=l([]);r.tableSelectDefaultValue?.(e.formParams,r,(e=>{e?.length&&(r.tableSelectRows=e,w.value=e)}));const C=l(""),S=a((()=>"radio"===f.selectType?!C.value:0===w.value.length)),z=e=>w.value.includes(e),D=()=>{w.value=[],C.value=""},{value:k,label:M}=r.tableSelectProps||{value:"id",label:"name"},j=()=>{const e=_(w.value),l=ni(e,k);g(),t("select",l)},L=(e,t)=>{r.addEditData?.(e,t)},T=(e,t)=>{const l=f.rowKey,a=ri(e[l],t);return"checkbox"===f.selectType?i(le,{modelValue:z(_(e)),onChange:t=>((e,t)=>{if(e)w.value.push(t);else{const e=w.value.indexOf(t);-1!==e&&w.value.splice(e,1)}})(t,_(e))},null):i(se,{value:a,onChange:()=>{C.value=a,w.value=[e]}},null)},O=l([]),H=l([]),E=()=>{const e=ni(w.value,k).map((e=>({value:e[k||"value"],label:e[M||"label"]})));e.length>1?(O.value=e.splice(0,1),H.value=e):(O.value=e,H.value=[])};y((()=>r.tableSelectRows),(()=>{E()}),{deep:!0,immediate:!0});const N=(e,l)=>{const a=_(w.value);a.splice(l,1),w.value=a,E(),t("select",a)},V=()=>{let e,t;return i(s,null,[i("div",{class:["el-input",hs.e("input-table"),hs.is("disabled",o)]},[i("div",{class:"el-input__wrapper"},[O?.value.length?i("span",{class:hs.em("input-table","value")},[O.value.map(((e,t)=>i(re,{closable:!o,onClose:()=>N(0,t)},{default:()=>[e.label]}))),H?.value?.length?i(A,{"popper-class":hs.e("tooltip-tags"),placement:"bottom",effect:"light"},{default:()=>i(re,null,{default:()=>[h("+ "),H.value.length]}),content:()=>H.value.map(((e,t)=>i(re,{closable:!o,onClose:()=>N(0,t+1)},{default:()=>[e.label]})))}):null]):i("span",{class:hs.em("input-table","placeholder")},[u])]),i(Q,{type:"primary",class:hs.em("input-table","append"),disabled:o,icon:er,onClick:m},null)]),i(ds,{modelValue:v.visible,"onUpdate:modelValue":e=>v.visible=e,title:v.title,closeOnClickModal:f.closeOnClickModal,width:f.dialogWidth,modal:!1,onClose:g},{default:()=>[i("div",{class:hs.em("input-table","content")},[i(ie,{modelValue:C.value},{default:()=>[i(ks,{options:f,loading:b.loading,data:b.data,page:b.page,"onConfirm-search":x,"onClick-add-edit":L},{default:()=>[i(te,{fixed:"left",label:n("next.table.selection"),width:55,headerAlign:f.headerAlign,align:f.cellAlign},{default:({row:e,$index:t})=>T(e,t)})]})]})]),i("div",{class:hs.em("input-table","footer")},[i(Q,{onClick:D},ps(e=n("next.form.reset"))?e:{default:()=>[e]}),i(Q,{type:"primary",disabled:S.value,onClick:j},ps(t=n("next.form.confirm"))?t:{default:()=>[t]})])]})])};return()=>i(s,null,[V()])}}),vs=Ae("form");var ms=r({name:"UploadImage",props:{className:{type:String,default:""},style:{type:Object,default:()=>({})},modelValue:{type:String,default:""},disabled:{type:Boolean,default:!1},listType:{type:String,values:["text","picture","picture-card"],default:"picture-card"},multiple:{type:Boolean,default:!1},limit:{type:Number,default:1},accept:{type:String,default:"image/*"}},emits:["change","exceed"],setup(t){const{appContext:a}=e(),{t:n}=dn();return{t:n,appContext:a,defaultPreviewSrcList:ai(t.modelValue),uploadfilesPreview:l([])}},render(){const e=this.$slots,t=this.$props,l=this.$emit,a=this.t,n=t.disabled,o=this.uploadfilesPreview;let r=null;return i(s,null,[(()=>{const e=this.defaultPreviewSrcList;let t=[];return"string"==typeof e?t=[e]:"[object Array]"===Object.prototype.toString.call(e)&&(t=e),t=t.filter((e=>!!e)),t.length?i(de,{class:vs.e("preview-image"),src:t[0],previewSrcList:t,"preview-teleported":!0,fit:"cover",style:{width:"146px",height:"146px"}},{default:()=>i(N,null,{default:()=>[i(Bo,null,null)]})}):null})(),n?null:i(ue,{class:[vs.b("upload-image"),t.className],style:t.style,"list-type":t.listType,multiple:t.multiple,limit:t.limit,"auto-upload":!1,"on-preview":e=>{const t=document.getElementsByTagName("body")[0],l=o.value.findIndex((t=>t.url===e.url))||0;r&&(z(null,r),t.removeChild(r)),r=document.createElement("div"),t.appendChild(r);const a=i({render:()=>C(v,{to:"body"},[C(ce,{initialIndex:l,"url-list":o.value.map((e=>e.url)),onClose:()=>{z(null,r)}})])});r.appContext=this.appContext,z(a,r)},"on-change":(e,t)=>{o.value=t,l("change",e,t)},"on-exceed":(e,t)=>{j({type:"info",message:a("next.table.uploadfileExceed")}),l("exceed",e,t)}},{trigger:()=>e.default?e.default():"picture-card"===t.listType?i(N,null,{default:()=>[i(Io,null,null)]}):i(Q,{link:!0,text:!0,type:"primary"},{default:()=>[i(N,null,{default:()=>[i(Io,null,null)]}),i("em",null,[a("next.form.selectFile")])]})})])}}),gs=r({name:"NextTreeSelect",props:{modelValue:{type:[Number,String,Boolean,Object,Array],default:""},column:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1},formParams:{type:Object,default:()=>({})}},emits:["change","node-click","node-contextmenu","check","check-change","node-expand","node-collapse","current-change"],setup(e,{emit:t,expose:a}){const{t:n}=dn(),o=l(e.modelValue);y((()=>e.modelValue),(e=>{o.value=e}));const r=e.column,u=ri(r.treeSelectProps?.value,r.nodeKey,"id"),c=e.formParams,d={label:"label",children:"children"},p=r.placeholder||n("next.form.select")+r.label,h=l=>{e.formParams[r.prop]=l,o.value=l,t("change",l)},f=()=>{e.formParams[r.prop]="",o.value=""},v=(e,l)=>{t("node-click",e,l,c);const a=e[u];r.treeSelectNodeClick?.(e,l,c),h(a)},m=(...e)=>{t("node-contextmenu",...e),r.treeSelectNodeContextmenu?.(...e)},g=(e,l)=>{t("check",e,l,c),r.treeSelectCheck?.(e,l,c);const{checkedKeys:a}=l;h(a)},b=(...e)=>{t("check-change",...e),r.treeSelecCheckChange?.(...e,c)},x=(...e)=>{t("node-expand",...e),r.treeSelecNodeExpand?.(...e)},w=(...e)=>{t("node-collapse",...e),r.treeSelecNodeCollapse?.(...e)},C=(...e)=>{t("current-change",...e),r.treeSelecCurrentChange?.(...e)},S=l(),_=()=>S.value;r.loadInstance&&r.loadInstance(_()),a({getInstance:_,onClearValue:f});return()=>i(s,null,[i(pe,{ref:S,modelValue:o.value,"onUpdate:modelValue":e=>o.value=e,placeholder:p,data:ri(r.dicData,[]),"node-key":ri(r.nodeKey,"id"),filterable:ri(r.filterable,!0),"show-checkbox":ri(r.showCheckbox,!1),"leaf-only":ri(r.leafOnly,!1),"render-after-expand":ri(r.renderAfterExpand,!0),"check-strictly":ri(r.checkStrictly,!1),disabled:ri(e.disabled,!1),clearable:ri(r.clearable,!0),accordion:ri(r.accordion,!1),multiple:ri(r.multiple,!1),"collapse-tags":!0,"collapse-tags-tooltip":!0,props:ri(r.treeSelectProps,d),"value-key":u,"onNode-click":v,"onNode-contextmenu":m,onCheck:g,"onCheck-change":b,"onNode-expand":x,"onNode-collapse":w,"onCurrent-change":C,onClear:f},null)])}});function bs(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!m(e)}const ys=Ae("form");var xs=r({name:"NextForm",props:{options:{type:Object,default:()=>({})},columns:{type:Array,default:()=>[]},formDatum:{type:Object,default:()=>({})}},emits:["submit","close","reset"],setup(e,{slots:t,emit:n,expose:o}){const r=ai(ss),u=p(tn(r,e.options)),c=a((()=>"boolean"!=typeof u.isEditing||u.isEditing)),{t:d}=dn(),h=l(u.colSpan),f=p(e.formDatum)||{},v=p(tn({},f)),m=l([]),g=p({});y((()=>[e.columns,e.formDatum]),(()=>{(()=>{const t=e.columns;m.value=t;for(let e=0;e<t.length;e++){const l=t[e],a=f[l.prop];oi(a)?v[l.prop]=a:v[l.prop]=oi(l.defaultValue)?l.defaultValue:"";const n=[],{label:o}=l;l.required&&n.push({required:!0,message:o+d("next.form.requiredInput"),trigger:["blur","change"]}),l.rules?.length&&n.push(...l.rules),g[l.prop]=n,!l.dicData?.length&&l.loadDicData&&l.loadDicData(l,(e=>{e?.length&&(l.dicData=e)})),"boolean"==typeof l.disabled&&l.disabled||(l.disabled=!c.value)}})()}),{deep:!0,immediate:!0});const b=ni(m.value,"prop"),x=l(!1);S((()=>{const e=w.value?.$el;let t=null;li(e,(e=>{null!==t?clearTimeout(t):x.value=!0,t=setTimeout((()=>{h.value=((e,t=350)=>{const l=e.clientWidth;let a=Math.floor(l/t);return a>4&&(a=4),Math.ceil(24/a)})(e,u.columnMinWidth),x.value=!1,clearTimeout(t)}),200)}))}));const w=l(),C=l(!1),z=async()=>{const e=w.value;e&&await e.validate(((e,t)=>{if(e){const e=_(v);C.value=!0,n("submit",e,(()=>{C.value=!1,n("close")}),(()=>{C.value=!1}))}}))},D=()=>{const e=w.value;e&&(e.resetFields(),C.value=!1,n("reset",v))},k=e=>e.getTime()>Date.now(),M=[{text:d("next.date.oneWeekAge"),value:()=>{const e=new Date,t=new Date;return t.setTime(t.getTime()-6048e5),[t,e]}},{text:d("next.date.oneMonthAge"),value:()=>{const e=new Date,t=new Date;return t.setTime(t.getTime()-2592e6),[t,e]}},{text:d("next.date.threeMonthsAge"),value:()=>{const e=new Date,t=new Date;return t.setTime(t.getTime()-7776e6),[t,e]}},{text:d("next.date.oneYearAge"),value:()=>{const e=new Date,t=new Date;return t.setTime(t.getTime()-31536e6),[t,e]}},{text:d("next.date.threeYearsAge"),value:()=>{const e=new Date,t=new Date;return t.setTime(t.getTime()-94608e6),[t,e]}}],j=e=>{if(t[qi(e.prop)])return t[qi(e.prop)]({column:e,formParams:v});if("input"===e.type||!e.type){const t=e.placeholder||d("next.form.input")+e.label;return i(U,{modelValue:v[e.prop],"onUpdate:modelValue":t=>v[e.prop]=t,clearable:!0,readonly:ri(e.readonly,!1),disabled:e.disabled,placeholder:t,onChange:t=>e.onChange?.(t,e,v,b)},{prefix:e.prefix?()=>e.prefix(v,e):null,suffix:e.suffix?()=>e.suffix(v,e):null,prepend:e.prepend?()=>e.prepend(v,e):null,append:e.append?()=>e.append(v,e):null})}if("password"===e.type){const t=e.placeholder||d("next.form.input")+e.label;return i(U,{modelValue:v[e.prop],"onUpdate:modelValue":t=>v[e.prop]=t,type:"password",clearable:!0,"show-password":!0,readonly:ri(e.readonly,!1),disabled:e.disabled,placeholder:t,onChange:t=>e.onChange?.(t,e,v,b)},{prefix:e.prefix?()=>e.prefix(v,e):null,suffix:e.suffix?()=>e.suffix(v,e):null,prepend:e.prepend?()=>e.prepend(v,e):null,append:e.append?()=>e.append(v,e):null})}if("inputInteger"===e.type){const t=e.placeholder||d("next.form.input")+e.label;return i(U,{modelValue:v[e.prop],"onUpdate:modelValue":t=>v[e.prop]=t,clearable:!0,readonly:ri(e.readonly,!1),disabled:e.disabled,placeholder:t,onInput:t=>((e,t)=>{const l=e.replace(/\D/g,"");v[t]=l?Number(l):""})(t,e.prop),onChange:t=>e.onChange?.(t,e,v,b)},{prefix:e.prefix?()=>e.prefix(v,e):null,suffix:e.suffix?()=>e.suffix(v,e):null,prepend:e.prepend?()=>e.prepend(v,e):null,append:e.append?()=>e.append(v,e):null})}if("inputNumber"===e.type){const t=e.placeholder||d("next.form.input")+e.label;return i(U,{modelValue:v[e.prop],"onUpdate:modelValue":t=>v[e.prop]=t,clearable:!0,readonly:ri(e.readonly,!1),disabled:e.disabled,placeholder:t,onInput:t=>((e,t)=>{let l=e;l=l.replace(/[^0-9\.]/g,""),l=l.replace(/^\./,"0."),l=l.replace(/\.{2,}/g,"."),l=l.replace(".","DUMMY"),l=l.replace(/\./g,""),l=l.replace("DUMMY","."),v[t]=Number(l)})(t,e.prop),onChange:t=>e.onChange?.(t,e,v,b)},{prefix:e.prefix?()=>e.prefix(v,e):null,suffix:e.suffix?()=>e.suffix(v,e):null,prepend:e.prepend?()=>e.prepend(v,e):null,append:e.append?()=>e.append(v,e):null})}if("textarea"===e.type){const t=e.placeholder||d("next.form.input")+e.label;return i(U,{modelValue:v[e.prop],"onUpdate:modelValue":t=>v[e.prop]=t,type:"textarea",clearable:!0,readonly:ri(e.readonly,!1),disabled:e.disabled,placeholder:t,onChange:t=>e.onChange?.(t,e,v,b)},{prefix:e.prefix?()=>e.prefix(v,e):null,suffix:e.suffix?()=>e.suffix(v,e):null,prepend:e.prepend?()=>e.prepend(v,e):null,append:e.append?()=>e.append(v,e):null})}if("select"===e.type){const t=e.placeholder||d("next.form.select")+e.label;return i(X,{modelValue:v[e.prop],"onUpdate:modelValue":t=>v[e.prop]=t,placeholder:t,clearable:!0,disabled:e.disabled,multiple:ri(e.multiple,!1),"collapse-tags-tooltip":!0,onChange:t=>e.onChange?.(t,e,v,b)},{default:()=>[e.dicData&&e.dicData.map((e=>i(q,{key:e.value,value:e.value,label:e.label,disabled:ri(e.disabled,!1)},null)))]})}if("time"===e.type){const t=e.placeholder||d("next.form.select")+e.label;return i(he,{modelValue:v[e.prop],"onUpdate:modelValue":t=>v[e.prop]=t,start:"00:00",step:"00:30",end:"23:59",editable:!1,disabled:e.disabled,placeholder:t,onChange:t=>e.onChange?.(t,e,v,b)},{prefix:()=>e.prefix?e.prefix(v,e):null,suffix:()=>e.suffix?e.suffix(v,e):null})}if("radio"===e.type)return i(ie,{modelValue:v[e.prop],"onUpdate:modelValue":t=>v[e.prop]=t,disabled:e.disabled,onChange:t=>e.onChange?.(t,e,v,b)},{default:()=>[e.dicData&&e.dicData.map((e=>i(se,{key:e.value,value:e.value,disabled:ri(e.disabled,!1)},{default:()=>[e.label]})))]});if("checkbox"===e.type)return oi(v[e.prop])||(v[e.prop]=[]),i(fe,{modelValue:v[e.prop],"onUpdate:modelValue":t=>v[e.prop]=t,disabled:e.disabled,onChange:t=>e.onChange?.(t,e,v,b)},{default:()=>[e.dicData&&e.dicData.map((e=>i(le,{key:e.value,label:e.value,disabled:ri(e.disabled,!1)},{default:()=>[e.label]})))]});if("date"===e.type){const t=e.placeholder||d("next.form.select")+e.label;return i(K,{modelValue:v[e.prop],"onUpdate:modelValue":[t=>v[e.prop]=t,t=>e.onChange?.(t,e,v,b)],placeholder:t,type:"date",valueFormat:e.format||"YYYY-MM-DD",format:e.format||"YYYY-MM-DD",clearable:!0,disabledDate:e.disabledDate||k,disabled:e.disabled,editable:e.editable},null)}if("datetime"===e.type){const t=e.placeholder||d("next.form.select")+e.label;return i(K,{modelValue:v[e.prop],"onUpdate:modelValue":[t=>v[e.prop]=t,t=>e.onChange?.(t,e,v,b)],placeholder:t,type:"datetime",valueFormat:e.format||"YYYY-MM-DD HH:mm:ss",format:e.format||"YYYY-MM-DD HH:mm:ss",clearable:!0,disabledDate:e.disabledDate||k,disabled:e.disabled,editable:e.editable},null)}if("datetimerange"===e.type){const t=e.placeholder||d("next.form.select")+e.label;return i(K,{modelValue:v[e.prop],"onUpdate:modelValue":[t=>v[e.prop]=t,t=>e.onChange?.(t,e,v,b)],placeholder:t,type:"datetimerange",valueFormat:e.format||"YYYY-MM-DD HH:mm:ss",format:e.format||"YYYY-MM-DD HH:mm:ss",clearable:!0,"range-separator":d("next.date.rangeSeparator"),"start-placeholder":d("next.date.startPlaceholder"),"end-placeholder":d("next.date.endPlaceholder"),disabledDate:e.disabledDate||k,disabled:e.disabled,editable:e.editable,shortcuts:e.shortcuts||M},null)}return"numberRange"===e.type?i(cs,{modelValue:v[e.prop],"onUpdate:modelValue":t=>v[e.prop]=t,disabled:e.disabled,onChange:t=>{return l=t,a=e.prop,Array.isArray(v[a])||(v[a]=[]),void(v[a]=Number(l));var l,a}},null):"inputTableSelect"===e.type?i(fs,{modelValue:v[e.prop],"onUpdate:modelValue":t=>v[e.prop]=t,formParams:v,column:e,disabled:e.disabled,onSelect:t=>((e,t)=>{e&&(t.tableSelectRows=e);const{value:l}=t.tableSelectProps||{};v[t.prop]=e.map((e=>e[l||"value"])),t.onTableSelect?.(v,e,t)})(t,e)},null):"uploadImage"===e.type?i(ms,{modelValue:v[e.prop],"onUpdate:modelValue":t=>v[e.prop]=t,disabled:e.disabled,multiple:e.multiple,limit:e.limit,onChange:(...t)=>e.onChange?.(...t,e,v,b),onExceed:(...t)=>e.onExceed?.(...t,e,v,b)},null):"treeSelect"===e.type?i(gs,{modelValue:v[e.prop],"onUpdate:modelValue":t=>v[e.prop]=t,disabled:e.disabled,column:e,formParams:v},null):void 0};o({formParams:_(v),ruleFormRef:w,formColumns:b,getFormInstance:()=>w.value,getFormParams:()=>_(v)});return()=>{let e;return i(Ts,{loading:x.value},bs(e=(()=>{let e;return i(Z,{ref:w,class:ys.b(),inline:!1,model:v,size:u.size},{default:()=>[i(J,{gutter:20},bs(e=b.map((e=>!e.hide&&i(Y,{span:ri(e.span,h.value)},{default:()=>[i($,{prop:e.prop,required:e.required,rules:g[e.prop],style:{"--form-label-width":ri(u.formLabelWidth,u.labelWidth)}},{label:()=>e.label?i(s,null,[i(jn,{content:d(e.label),class:ys.e("item-label")},null),e.tip?i(A,{effect:"dark",content:e.tip,placement:"top"},{default:()=>[i(N,{style:{"margin-left":"5px"},color:"#f3d19e"},{default:()=>[i(Ao,null,null)]})]}):null]):null,default:()=>j(e)})]}))))?e:{default:()=>[e]}),c.value&&u.showFooter?i("div",{class:ys.e("footer")},[i(Q,{type:"primary",loading:C.value,onClick:z},{default:()=>[d(u.submitText)||d("next.form.submit")]}),u.showResetBtn?i(Q,{onClick:D},{default:()=>[d(u.resetText)||d("next.form.reset")]}):null]):null]})})())?e:{default:()=>[e]})}}});const ws=Sn(gs),Cs=Sn(xs);var Ss=r({name:"AddEditForm",props:{formDatum:{type:Object,default:()=>({})},isEditing:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]}},emits:["close","submit"],setup(e,{slots:a,emit:r,expose:u}){const c=t("addEditFormSlots"),d={};c.value.forEach((e=>{d[e]=(...t)=>a[e]&&a[e](...t)}));const p=t("options",{}),h=ai(o(p)?n(p):p);h.columnMinWidth=h.formColumnMinWidth,h.isEditing=e.isEditing;const f=l(),v=ai(o(e.formDatum)?n(e.formDatum):e.formDatum),g=ai(e.columns).map((e=>(e.hide=ri(e.formHide,e.hide,!1),e))),b=(...e)=>{r("submit",...e)};u({getFormExpose:()=>({formParams:f.value?.formParams,formColumns:f.value?.formColumns})});const y=()=>{return i(Cs,{ref:f,options:h,columns:g,formDatum:v,onClose:()=>r("close"),onSubmit:b},"function"==typeof(e=d)||"[object Object]"===Object.prototype.toString.call(e)&&!m(e)?d:{default:()=>[d]});var e};return()=>i(s,null,[y()])}});function _s(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!m(e)}const zs=Ae("crud-table");var Ds=r({name:"NextCrudTable",props:Ri,emits:["confirm-search","clear-search","change-pagination","selection-change","row-click","row-contextmenu","row-dblclick","cell-click","cell-dblclick","cell-contextmenu","cell-mouse-enter","cell-mouse-leave","expand-change","click-add-edit","close-add-edit","view-add-edit","delete-rows","delete-row","submit-form"],setup(e,{emit:t,slots:o,expose:r}){const u=ai(Ii),c=a((()=>{const t=n(e.options);return tn(u,t)})),d=n(c);b("options",a((()=>c.value))),b("ns",zs);const{t:h}=dn(),f=l(d.columns),v=l([]),m=l([]),x=e=>{((e,t)=>{const l=p(e.columns),a=e=>{!e.dicData?.length&&e.loadDicData&&e.loadDicData(e,(t=>{t?.length&&(e.dicData=t)}))},n=e=>{let t=[];return e.forEach((e=>{a(e),t.push(e),e.children?.length&&(t.push(...n(e.children)),e.children&&delete e.children)})),t},o=n(l),r=e.formColumns.map((e=>(a(e),e))),i=o.concat(r).map((e=>{const t={prop:e.prop,label:ri(e.formLabel,e.label,""),type:ri(e.formType,e.type,""),defaultValue:ri(e.formDefaultValue,e.defaultValue,""),placeholder:ri(e.formPlaceholder,""),required:ri(e.formRequired,e.required,!1),sort:ri(e.formSort,e.sort,null),prefix:ri(e.formPrefix,e.prefix,null),suffix:ri(e.formSuffix,e.suffix,null),prepend:ri(e.formPrepend,e.prepend,null),append:ri(e.formAppend,e.append,null),hide:ri(e.formHide,e.hide,!1),disabled:ri(e.formDisabled,e.disabled,!1),clearable:ri(e.formClearable,e.clearable,!1),readonly:ri(e.formReadonly,e.readonly,!1),tip:ri(e.formTip,e.tip,null),rules:ri(e.formRules,e.rules,null),span:ri(e.formSpan,e.span,null),multiple:ri(e.formMultiple,e.multiple,!1),limit:ri(e.formLimit,e.limit,1),dicData:ri(e.formDicData,e.dicData,[]),loadDicData:ri(e.formLoadDicData,e.loadDicData,null),onChange:ri(e.onChangeForm,e.onChange,null),tableSelect:ri(e.tableSelect,{}),tableSelectRows:ri(e.tableSelectRows,[]),tableSelectProps:ri(e.tableSelectProps,null),tableSelectDefaultValue:ri(e.tableSelectDefaultValue,null),onTableSelect:ri(e.onTableSelect,null),filterable:ri(e.filterable,!1),nodeKey:ri(e.formNodeKey,e.nodeKey),accordion:ri(e.formAccordion,e.accordion,!1),leafOnly:ri(e.formLeafOnly,e.leafOnly,!1),showCheckbox:ri(e.formShowCheckboxn,e.showCheckbox,!1),checkStrictly:ri(e.formCheckStrictly,e.checkStrictly,!1),renderAfterExpand:ri(e.formRenderAfterExpand,e.renderAfterExpand,!1),treeSelectProps:ri(e.formTreeSelectProps,e.treeSelectProps,null),treeSelectNodeClick:ri(e.treeSelectNodeClickForm,e.treeSelectNodeClick,null),treeSelectNodeContextmenu:ri(e.treeSelectNodeContextmenuForm,e.treeSelectNodeContextmenu,null),treeSelectCheck:ri(e.treeSelectCheckForm,e.treeSelectCheck,null),treeSelecCheckChange:ri(e.treeSelecCheckChangeForm,e.treeSelecCheckChange,null),treeSelecNodeExpand:ri(e.treeSelecNodeExpandForm,e.treeSelecNodeExpand,null),treeSelecNodeCollapse:ri(e.treeSelecNodeCollapseForm,e.treeSelecNodeCollapse,null),treeSelecCurrentChange:ri(e.treeSelecCurrentChangeForm,e.treeSelecCurrentChange,null)};return!e.dicData?.length&&e.loadDicData&&ii(t,e,"dicData"),t})).filter((e=>e.sort&&e.prop)).sort(((e,t)=>e.sort-t.sort)),s=(e,t)=>{const l={prop:e.prop,type:ri(e.searchType,e.type),multiple:ri(e.searchMultiple,e.multiple),searchFormat:ri(e.searchFormat,null),label:ri(e.searchLabel,e.label),defaultValue:ri(e.searchDefaultValue,e.defaultValue,null),placeholder:ri(e.searchPlaceholder,e.placeholder,null),dicData:ri(e.searchDicData,e.dicData,[]),loadDicData:ri(e.searchLoadDicData,e.loadDicData,null),disabled:ri(e.searchDisabled,e.disabled,!1),readonly:ri(e.searchReadonly,e.readonly,!1),prefix:ri(e.searchPrefix,e.prefix,null),suffix:ri(e.searchSuffix,e.suffix,null),prepend:ri(e.searchPrepend,e.prepend,null),append:ri(e.searchAppend,e.append,null),hide:ri(e.searchHide,!1),sort:ri(e.searchSort,e.sort,t),nodeKey:ri(e.searchNodeKey,e.nodeKey),accordion:ri(e.searchAccordion,e.accordion,!1),leafOnly:ri(e.searchLeafOnly,e.leafOnly,!1),showCheckbox:ri(e.searchShowCheckboxn,e.showCheckbox,!1),checkStrictly:ri(e.searchCheckStrictly,e.checkStrictly,!1),renderAfterExpand:ri(e.searchRenderAfterExpand,e.renderAfterExpand,!1),treeSelectProps:ri(e.searchTreeSelectProps,e.treeSelectProps,null),treeSelectNodeClick:ri(e.treeSelectNodeClickSearch,e.treeSelectNodeClick,null),treeSelectNodeContextmenu:ri(e.treeSelectNodeContextmenuSearch,e.treeSelectNodeContextmenu,null),treeSelectCheck:ri(e.treeSelectCheckSearch,e.treeSelectCheck,null),treeSelecCheckChange:ri(e.treeSelecCheckChangeSearch,e.treeSelecCheckChange,null),treeSelecNodeExpand:ri(e.treeSelecNodeExpandSearch,e.treeSelecNodeExpand,null),treeSelecNodeCollapse:ri(e.treeSelecNodeCollapseSearch,e.treeSelecNodeCollapse,null),treeSelecCurrentChange:ri(e.treeSelecCurrentChangeSearch,e.treeSelecCurrentChange,null)};return!e.dicData?.length&&e.loadDicData&&ii(l,e,"dicData"),l},u=e.searchColumns.map(((e,t)=>(a(e),s(e,t)))),c=u.length,d=u.concat((e=>{let t=[];return e.forEach(((e,l)=>{e.searchType&&t.push(s(e,l+c))})),t})(o)),h=ni(d.sort(((e,t)=>e.sort-t.sort)),"prop");t&&t({formColumns:i,searchColumns:h,columns:l})})(e,(({formColumns:e,searchColumns:t,columns:l})=>{v.value=t,m.value=e,f.value=l}))},w=l(e.data),C=l((()=>{const e=v.value;let t={};for(let l=0;l<e.length;l++){const a=e[l];oi(a.defaultValue)&&(t[a.prop]=a.defaultValue)}return t})()),z=l=>{const a=ai(_(l));Bi(C.value,a)||(e.page.pageIndex=1,C.value=a),t("confirm-search",a)},k=()=>{t("clear-search")},M=()=>{z(C.value)};y((()=>e.data),(e=>{w.value=e}),{immediate:!0}),y((()=>c),(e=>{x(e.value)}),{deep:!0,immediate:!0});const j=l(d.defaultContentHeight),A=l(),L=l(),T=l(),O=l(),H=l(null),E=()=>{D((()=>{const e=(A.value?.clientHeight||0)-((L.value?.clientHeight||0)+(O.value?.clientHeight||0));j.value=e}))},N=e=>{"F11"!==e.key&&"fullscreenchange"!==e.type||E()};S((()=>{li(A.value,(()=>{E()})),d.initLoadData&&z(C.value),d.fullscreenchangeContentHeight&&(document.addEventListener("fullscreenchange",N),document.addEventListener("keydown",N))})),g((()=>{d.fullscreenchangeContentHeight&&(document.removeEventListener("fullscreenchange",N),document.removeEventListener("keydown",N))}));const V=l=>{e.page.pageIndex=l.pageIndex,e.page.pageSize=l.pageSize,t("change-pagination",l),z(C.value)},B=l([]),R=e=>{B.value=e,t("selection-change",B.value)};b("multipleSelection",B);const F=p({visible:!1,title:h("next.table.add"),rowInfo:{},isEditing:!0}),P=(e={})=>{const{dialogTitle:l}=d;F.isEditing=!0,F.title=l+" "+h("next.table.add"),F.rowInfo=e,t("click-add-edit",e),D((()=>{F.visible=!0}))},I=e=>{t("delete-rows",e,(()=>{M()}))},W=e=>{t("delete-row",e,(()=>{M()}))},Y=e=>{const{dialogTitle:l}=d;F.isEditing=!0,F.title=l+" "+h("next.table.edit"),F.rowInfo=e.row,t("click-add-edit",e.row),D((()=>{F.visible=!0}))},$=e=>{const{dialogTitle:l}=d;F.isEditing=!1,F.title=l+" "+h("next.table.view"),F.rowInfo=e.row,t("view-add-edit",e.row),D((()=>{F.visible=!0}))},U=()=>{F.visible=!1,F.title="",F.rowInfo={},t("close-add-edit")},X=(...e)=>{t("submit-form",...e)},q=l([]),K=l([]),G=l([]);for(const e in o)e.includes(Wi)?q.value.push(e):e.includes($i)?K.value.push(e):e.includes(Xi)&&G.value.push(e);b("columnSlots",q),b("searchFormSlots",K),b("addEditFormSlots",G);const Z=t=>{const{pageIndex:l,pageSize:a}=e.page;return(l-1)*a+(t+1)},J=a((()=>{const{total:t}=e.page,l=document.createElement("span");l.innerText=t,l.style.visibility="hidden",document.body.appendChild(l);const a=l.getBoundingClientRect().width,n=Math.ceil(a)+25;return document.body.removeChild(l),n>50?n:50})),Q={};K.value.forEach((e=>{Q[e]=(...t)=>o[e]&&o[e](...t)}));const le={};q.value.forEach((e=>{le[e]=(...t)=>o[e]&&o[e](...t)}));const ae={};G.value.forEach((e=>{ae[e]=(...t)=>o[e]&&o[e](...t)}));const ne={};Fi.forEach((e=>{ne[e]=(...t)=>o[e]&&o[e](...t)}));const oe={};Pi.forEach((e=>{oe[e]=(...t)=>o[e]&&o[e](...t)}));r({onClickRowAdd:P,columns:f.value,getFormExpose:()=>H.value?.getFormExpose(),updateColumns:e=>{x(e)}});return()=>i(s,null,[i(s,null,[i("div",{ref:A,class:[zs.b(),e.className],style:e.style},[d.showSearchForm||d.showHeaderMenu?i("header",{ref:L,class:zs.b("header")},[d.showSearchForm&&i(Qi,{columns:v.value,onZoomResize:E,onConfirmSearch:z,onClearSearch:k},_s(Q)?Q:{default:()=>[Q]}),d.showHeaderMenu&&i(ts,{onClickAdd:P,onDeleteRows:I,onClickRefresh:M},_s(ne)?ne:{default:()=>[ne]}),o["table-head-tip"]?.()]):null,i(Gi,{loading:e.loading},{default:()=>[i("div",{ref:T,class:zs.b("content")},[i(ee,{data:w.value,height:j.value,rowKey:d.rowKey,border:d.border,stripe:d.stripe,fit:d.fit,size:d.size,"row-style":d.rowStyle,"row-class-name":d.rowClassName,"cell-style":d.cellStyle,"cell-class-name":d.cellClassName,"header-row-style":d.headerRowStyle,"header-row-class-name":d.headerRowClassName,"header-cell-style":d.headerCellStyle,"header-cell-class-name":d.headerCellClassName,"span-method":e.spanMethod,"onSelection-change":R,"onRow-click":(...e)=>t("row-click",...e),"onRow-contextmenu":(...e)=>t("row-contextmenu",...e),"onRow-dblclick":(...e)=>t("row-dblclick",...e),"onCell-click":(...e)=>t("cell-click",...e),"onCell-dblclick":(...e)=>t("cell-dblclick",...e),"onCell-contextmenu":(...e)=>t("cell-contextmenu",...e),"onCell-mouse-enter":(...e)=>t("cell-mouse-enter",...e),"onCell-mouse-leave":(...e)=>t("cell-mouse-leave",...e),"onExpand-change":(...e)=>t("expand-change",...e)},{default:()=>[d.index?i(te,{type:"index",label:"#",width:J.value,index:Z,fixed:"left",headerAlign:d.headerAlign,align:d.cellAlign},null):null,d.selection?i(te,{type:"selection",fixed:"left",label:h("next.table.selectionAll"),width:55,headerAlign:d.headerAlign,align:d.cellAlign},null):null,o.default?.(),f.value.map((e=>i(ls,{columnOption:e,key:e.prop},_s(le)?le:{default:()=>[le]}))),d.operations?i(as,{onEditRow:Y,onViewRow:$,onDeleteRow:W},_s(oe)?oe:{default:()=>[oe]}):null],empty:()=>i(ve,{imageSize:j.value>220?100:50,description:h("next.table.notData")},null)})])]}),d.isPagination?i("div",{ref:O,class:zs.b("footer")},[i(ns,{page:e.page,onChange:V},null),o["table-footer-tip"]?.()]):null,i(rs,{modelValue:F.visible,"onUpdate:modelValue":e=>F.visible=e,title:F.title,width:d.dialogWidth,fullscreen:d.dialogFullscreen,closeOnClickModal:d.closeOnClickModal,onClose:U},{default:()=>i(Ss,{ref:H,formDatum:F.rowInfo,columns:m.value,isEditing:F.isEditing,onClose:U,onSubmit:X},_s(ae)?ae:{default:()=>[ae]})})])])])}});const ks=Sn(Ds);var Ms={className:{type:String,default:""},style:{type:Object,default:()=>({})},options:{type:Object,default:()=>({})},loading:{type:Boolean,default:!1},data:{type:Array,default:()=>[]},page:{type:Object,default:()=>({pageIndex:1,pageSize:10,total:0})}},js={};const As=Ae("crud-table-virtualized");const Ls=Sn(r({name:"NextCrudTableVirtualized",props:Ms,setup(e,{emit:t}){const l=ai(js),o=a((()=>{const t=n(e.options);return tn(l,t)})),r=n(o);b("options",a((()=>o.value)));const{t:u}=dn(),c=p({visible:!1,title:u("next.table.add"),rowInfo:{},isEditing:!0}),d=()=>{c.visible=!1,c.title="",c.rowInfo={},t("close-add-edit")};return()=>i(s,null,[i("div",{class:[As.b(),e.className]},[i(Ts,null,null),i(ds,{modelValue:c.visible,"onUpdate:modelValue":e=>c.visible=e,title:c.title,width:r.dialogWidth,fullscreen:r.dialogFullscreen,closeOnClickModal:r.closeOnClickModal,onClose:d},null)])])}})),Ts=Sn(Gi),Os=Ae("upload");const Hs=Sn(r({name:"NextUpload",props:{className:{type:String,default:""},style:{type:Object,default:()=>({})},listType:{type:String,values:["text","picture","picture-card"],default:"picture-card"},accept:{type:String,default:"image/*"}},emits:["change"],setup(){const{appContext:t}=e(),{t:l}=dn();return{t:l,appContext:t}},render(){const e=this.$slots,t=this.$props,a=this.$emit,n=this.t,o=l([]),r=document.getElementsByTagName("body")[0];let s=null;return i(ue,{class:[Os.b(),t.className],style:t.style,"list-type":t.listType,"auto-upload":!1,"on-preview":e=>{const t=o.value.findIndex((t=>t.url===e.url))||0;s&&(z(null,s),r.removeChild(s)),s=document.createElement("div"),r.appendChild(s);const l=i({render:()=>C(v,{to:"body"},[C(ce,{initialIndex:t,"url-list":o.value.map((e=>e.url)),onClose:()=>{z(null,s)}})])});s.appContext=this.appContext,z(l,s)},onChange:(e,t)=>{o.value=t,a("change",e,t)}},{trigger:()=>e.default?e.default():"picture-card"===t.listType?i(N,null,{default:()=>[i(Io,null,null)]}):i(Q,{link:!0,text:!0,type:"primary"},{default:()=>[i(N,null,{default:()=>[i(Io,null,null)]}),i("em",null,[n("next.form.selectFile")])]})})}})),Es=Ae("video-player");var Ns=r({name:"NextVideoPlayer",props:{className:{type:String,default:""},style:{type:Object,default:()=>({})},type:{type:String,default:"mp4",values:["mp4","m3u8","flv","mpegts"]},src:{type:String,default:""},autoplay:{type:Boolean,default:!0},tensorflow:{type:Object}},emits:["loaded","play","error","detector"],setup(e,{emit:t,expose:a}){const{lang:n}=dn(),o={"zh-cn":Se,en:_e,"zh-tw":ze};o[n.value]?Ce.addLanguage("zh-CN",o[n.value]):Ce.addLanguage("zh-CN",Se);const r=_(e.src),u=l(),c=l(),d=l(),p=l(),h=l(),f=l(null),v=l(null),m=e=>{const t=i({render:()=>C("span",{class:"screemshot-btn",onClick:()=>((e,t)=>{const l=be(ye(),"YYYY-MM-DD_HH-mm-ss").value,a=e.el().getElementsByTagName("video")[0],n=document.createElement("canvas"),o=a.videoWidth,r=a.videoHeight;n.width=o,n.height=r;const i=n.getContext("2d"),s=o/r,u=n.width/n.height,c=o,d=r;let p,h,f,v;s>u?(f=n.width,v=n.width/s,p=0,h=Math.round((n.height-v)/2)):s===u?(f=n.width,v=n.height,p=0,h=0):s<u&&(f=n.height*s,v=n.height,p=Math.round((n.width-f)/2),h=0),i.drawImage(a,0,0,c,d,p,h,f,v),t&&i.drawImage(t,0,0);const m="image/png";let g=n.toDataURL(m,.92).replace(m,"image/octet-stream");g=g.replace(/^data:image\/[^;]+/,"data:application/octet-stream");const b=document.createElement("a");b.href=g,b.download=l+"_screenshot.png",b.click()})(d.value,v.value)},[C(N,{color:"#FFFFFF",size:"22px"},{default:()=>C(to)})])});d.value.on("loadedmetadata",(()=>{z(t,e)}))},b=(t,l)=>{if(!e.tensorflow)return;const{modelUrl:a,classNames:n}=e.tensorflow;if(!a)throw new Error("模型文件地址不能未空!");if(!n||!n.length)throw new Error("模型类别不能未空!");t.innerHTML="",we.loadGraphModel(a).then((e=>{const a=document.createElement("canvas");a.className=Es.b("recongition"),t.appendChild(a);const o=a.getContext("2d"),r=document.createElement("canvas").getContext("2d");l.ontimeupdate=()=>{const{videoWidth:t,videoHeight:i,offsetTop:s,offsetLeft:u}=l;a.width=t,a.height=i,a.style.top=s+"px",a.style.left=u+"px",xn(l,e,o,we,n,[],r)},f.value=e,v.value=a}))};g((()=>{f.value&&(we.dispose(),f.value.dispose(),f.value=null),d.value&&(d.value.mse&&(d.value.mse.endOfStream(),d.value.mse.unload(),d.value.mse=null),d.value.pause(),d.value.dispose(),d.value=null),p.value&&(p.value.pause(),p.value.unload(),p.value.detachMediaElement(),p.value.destroy(),p.value=null),h.value&&(h.value.pause(),h.value.unload(),h.value.detachMediaElement(),h.value.destroy(),h.value=null),u.value&&z(null,u.value)}));const y=l=>{if(!l)return(()=>{const l=u.value,a=document.createElement("video");a.className="video-js vjs-default-skin",e.autoplay&&a.setAttribute("autoplay","true"),a.setAttribute("muted","true"),c.value=a,l.appendChild(a),d.value=Ce(a,{techOrder:["html5"],controls:!0,fluid:!0,preload:"auto",language:"zh-CN",sources:[]});const n=document.createElement("div");l.children[0].appendChild(n),d.value.on("play",(()=>{t("play",a,l),b(n,a)})),m(l),t("loaded",{player:d.value,video:a})})(),!1;const a=e.type;"m3u8"===a?(l=>{const a=u.value,n=document.createElement("video");n.className="video-js vjs-default-skin",e.autoplay&&n.setAttribute("autoplay","true"),n.setAttribute("muted","true"),c.value=n,a.appendChild(n);const o={techOrder:["html5"],flvjs:{mediaDataSource:{cors:!0,withCredentials:!1}},controls:!0,fluid:!0,preload:"auto",language:"zh-CN",sources:[{src:l,type:"application/x-mpegURL"}]};d.value=Ce(n,o);const r=document.createElement("div");a.children[0].appendChild(r),d.value.on("play",(()=>{t("play",n,a),b(r,n)})),m(a),t("loaded",{player:d.value,video:n})})(l):"mp4"===a?(l=>{const a=u.value,n=document.createElement("video");n.className="video-js vjs-default-skin",e.autoplay&&n.setAttribute("autoplay","true"),n.setAttribute("muted","true"),c.value=n,a.appendChild(n);const o={techOrder:["html5"],controls:!0,fluid:!0,preload:"auto",language:"zh-CN",sources:[{src:l,type:"video/mp4"}]};d.value=Ce(n,o);const r=document.createElement("div");a.children[0].appendChild(r),d.value.on("play",(()=>{t("play",n,a),b(r,n)})),m(a),t("loaded",{player:d.value,video:n})})(l):"mpegts"===a?(async l=>{let a=window.mpegts;if(a||(a=await import("mpegts.js")),a&&a.getFeatureList().mseLivePlayback){const n=u.value,o=document.createElement("video");o.className="video-js vjs-default-skin",e.autoplay&&o.setAttribute("autoplay","true"),o.setAttribute("muted","true"),c.value=o,n.appendChild(o);const r={controls:!0,autoplay:!1,fluid:!0,muted:!0,liveui:!0,preload:"auto",language:"zh-CN"};d.value=Ce(o,r),h.value=a.createPlayer({enableWorker:!0,type:"flv",isLive:!0,url:l}),h.value.attachMediaElement(o),h.value.load(),h.value.on("error",(()=>{t("error",o)})),m(n);const i=document.createElement("div");n.children[0].appendChild(i),h.value.on("metadata_arrived",(()=>{t("play",o,n),b(i,o)})),t("loaded",{player:d.value,video:o})}})(l):"flv"===a&&(async l=>{let a=window.flvjs;a||(a=await import("flv.js"));const n=u.value,o=document.createElement("video");o.className="video-js vjs-default-skin",e.autoplay&&o.setAttribute("autoplay","true"),o.setAttribute("muted","true"),c.value=o,n.appendChild(o),d.value=Ce(o,{techOrder:["html5","flvjs"],flvjs:{mediaDataSource:{cors:!0,withCredentials:!1}},controls:!0,fluid:!0,preload:"auto",language:"zh-CN"}),a.isSupported()&&(p.value=a.createPlayer({type:"flv",url:l}),p.value.attachMediaElement(o),p.value.load());const r=document.createElement("div");n.children[0].appendChild(r),d.value.on("play",(()=>{t("play",o,n),b(r,o)})),m(n),t("loaded",{player:d.value,video:o})})(l)};S((()=>{D((()=>{y(r)}))}));a({getElement:()=>{const e=u.value,t=e.children[0];return{videoElement:c.value,container:e,palyerContainer:t}}});return()=>i(s,null,[i("div",{ref:u,class:[Es.b(),e.className],style:e.style},null)])}});const Vs=Sn(Ns);const Bs=Sn(r({name:"NextDragResize",props:{},setup:()=>()=>i(s,null,[i(s,null,null)])}));var Rs=r({props:{isFullscreen:{type:Boolean,default:!1}},emits:["fullscreen","save"],setup(e,{emit:l}){const a=t("ns",{}),{t:n}=dn(),o=e=>{l("fullscreen",e)};return()=>i(s,null,[i(s,null,[i("ul",{class:[a.be("header","tool")]},[i("li",{onClick:()=>l("save")},[i("svg",{t:"1719034799379",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4272",width:"18",height:"18"},[i("path",{d:"M831.4 252.2L711.5 132.4c-10.3-10.3-24.2-16.1-38.8-16.1h-450c-23.3 0-42.2 18.9-42.2 42.2v709.4c0 23.3 18.9 42.2 42.2 42.2h582.6c23.3 0 42.2-18.9 42.2-42.2V291c-0.1-14.5-5.8-28.5-16.1-38.8zM619.6 159v159.8c0 4-3.3 7.3-7.3 7.3H387.2c-4 0-7.3-3.3-7.3-7.3V159h239.7z m67.7 708.4H340.8v-292c0-3.9 3.2-7.1 7.1-7.1h332.4c3.9 0 7.1 3.2 7.1 7.1v292z m117.4 0H730v-292c0-27.5-22.3-49.8-49.8-49.8H347.8c-27.5 0-49.8 22.3-49.8 49.8v292h-74.7V159.1h113.9v159.8c0 27.6 22.4 50.1 50.1 50.1h225.1c27.6 0 50.1-22.4 50.1-50.1V159h10.4c3.2 0 6.3 1.3 8.6 3.6l119.9 119.9c2.3 2.3 3.6 5.3 3.6 8.6l-0.3 576.3z","p-id":"4273"},null),i("path",{d:"M536 196.3h42.7v87.2H536zM368.7 641.2h220.7v42.7H368.7zM368.7 744h170.9v42.7H368.7z","p-id":"4274"},null)]),i("span",{style:"padding-left: 3px"},[n("next.labelimg.saveLabel")])])]),i("ul",{class:[a.be("header","tool")]},[i("li",{style:"margin-right: 30px;"},[i(me,{trigger:"hover",placement:"bottom",width:"none"},{reference:()=>i("div",{class:"flex-center"},[i("span",{style:"padding-right: 3px"},[n("next.labelimg.instructions")]),i(N,{size:14},{default:()=>[i(xr,null,null)]})]),default:()=>i("ul",{style:"font-size: 12px;white-space: nowrap;"},[i("li",null,[i("span",null,[h("W:")]),i("span",null,[h("鼠标移入图片中,长按W键,鼠标按下左键,移动鼠标开始绘制,鼠标抬起结束绘制")])]),i("li",null,[i("span",null,[h("A:")]),i("span",null,[h("A键进入上一张图片进行标注")])]),i("li",null,[i("span",null,[h("D:")]),i("span",null,[h("D键进入下一张图片进行标注")])])])})]),e.isFullscreen?i("li",{onClick:()=>o(!1)},[i(A,{placement:"top",content:"取消全屏"},{default:()=>[i("svg",{t:"1719035442027",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5388",width:"18",height:"18"},[i("path",{d:"M354.133333 682.666667H256v-42.666667h170.666667v170.666667H384v-98.133334L243.2 853.333333l-29.866667-29.866666L354.133333 682.666667z m358.4 0l140.8 140.8-29.866666 29.866666-140.8-140.8V810.666667h-42.666667v-170.666667h170.666667v42.666667h-98.133334zM354.133333 384L213.333333 243.2l29.866667-29.866667L384 354.133333V256h42.666667v170.666667H256V384h98.133333z m358.4 0H810.666667v42.666667h-170.666667V256h42.666667v98.133333L823.466667 213.333333l29.866666 29.866667L712.533333 384z","p-id":"5389"},null)])]})]):i("li",{onClick:()=>o(!0)},[i(A,{placement:"top",content:"全屏"},{default:()=>[i("svg",{t:"1719035375323",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5241",width:"18",height:"18"},[i("path",{d:"M285.866667 810.666667H384v42.666666H213.333333v-170.666666h42.666667v98.133333l128-128 29.866667 29.866667-128 128z m494.933333 0l-128-128 29.866667-29.866667 128 128V682.666667h42.666666v170.666666h-170.666666v-42.666666h98.133333zM285.866667 256l128 128-29.866667 29.866667-128-128V384H213.333333V213.333333h170.666667v42.666667H285.866667z m494.933333 0H682.666667V213.333333h170.666666v170.666667h-42.666666V285.866667l-128 128-29.866667-29.866667 128-128z","p-id":"5242"},null)])]})])])])])}});const Fs=["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],Ps=e=>{const t=e.type,l=e.startX+e.rectWidth/2,a=e.startY+e.rectHeight/2;return[t,parseFloat((l/e.canvasWidth).toFixed(6)),parseFloat((a/e.canvasHeight).toFixed(6)),parseFloat((e.rectWidth/e.canvasWidth).toFixed(6)),parseFloat((e.rectHeight/e.canvasHeight).toFixed(6))]},Is=(e,t,l)=>{const[a,n,o,r,i]=e,s=r*t,u=i*l,c=n*t-s/2,d=o*l-u/2;return{type:a,startX:Math.ceil(c),startY:Math.ceil(d),rectWidth:Math.ceil(s),rectHeight:Math.ceil(u),canvasWidth:t,canvasHeight:l}};var Ws=r({props:{labelRect:{type:Object,default:()=>({})},classes:{type:Array,default:()=>[]},activateRect:{type:Object,default:null}},emits:["close","select","delete"],setup(e,{emit:n}){const o=t("ns",{}),r=()=>{n("close")},u=()=>{n("delete",e.activateRect)},c=l();y((()=>e.activateRect),(()=>{const{type:t}=e.activateRect;c.value=oi(t)?t:null}),{deep:!0,immediate:!0});const d=l({width:0,height:0});S((()=>{const{clientWidth:e,clientHeight:t}=p.value;d.value.width=e,d.value.height=t}));const p=l(),f=a((()=>{const{left:t,top:l}=e.labelRect,a=l+d.value.height-window.innerHeight;let n=l;return a>0&&(n-=a),{top:n+"px",left:t+"px"}})),v=()=>i("div",{ref:p,class:[o.b("contextmenu-label")],style:f.value},[i("div",{class:"label-head"},[i("span",{style:"padding-right: 30px"},[h("标签选择")]),i(N,{size:16,onClick:r},{default:()=>[i(oo,null,null)]})]),i("ul",{class:"label-main"},[e.classes.map(((e,t)=>i("li",{key:t,onClick:()=>(e=>{c.value=e,n("select",e)})(t),class:{"activate-label":c.value===t}},[i("span",{style:{"background-color":Fs[t%Fs.length]},class:"label-line"},null),i("span",null,[e])])))]),oi(c.value)?i("div",{style:"margin: 10px auto 0"},[i(Q,{icon:bo,plain:!0,size:"small",type:"danger",onClick:u},{default:()=>[h("删除标注框")]})]):null]);return()=>i(s,null,[v()])}});const{hexToRgb:Ys}=hn();var $s=r({props:{parentEl:{type:Object,default:null},rect:{type:Object,default:()=>({})},color:{type:String,default:null}},emits:["draggle-resize","contextmenu"],setup(e,{emit:t}){const a=l(!1),n=l({topLeft:!1,topCenter:!1,topRight:!1,leftCenter:!1,rightCenter:!1,bottomLeft:!1,bottomCenter:!1,bottomRight:!1}),o=l({diff_x:null,diff_y:null});let r={};const i=k(e.rect),s=e=>{e.preventDefault(),e.stopPropagation(),a.value=!1,n.value.topLeft=!1,n.value.topCenter=!1,n.value.topRight=!1,n.value.leftCenter=!1,n.value.rightCenter=!1,n.value.bottomLeft=!1,n.value.bottomCenter=!1,n.value.bottomRight=!1,t("draggle-resize",i.value)},u=30,c=e=>{if(a.value){const t=e.clientX-r.left-o.value.diff_x,l=e.clientY-r.top-o.value.diff_y;i.value.startX=Math.max(0,Math.min(t,r.width-i.value.rectWidth)),i.value.startY=Math.max(0,Math.min(l,r.height-i.value.rectHeight))}if(n.value.bottomCenter){let t=e.clientY-r.top-i.value.startY;t<u&&(t=u),t+i.value.startY>r.height&&(t=r.height-i.value.startY),i.value.rectHeight=t}if(n.value.topCenter){let t=e.clientY-r.top,l=i.value.startY-t+i.value.rectHeight;if(t<0)return;if(l<u)return;i.value.rectHeight=l,i.value.startY=Math.max(0,Math.min(t,r.height-i.value.rectHeight))}if(n.value.leftCenter){let t=e.clientX-r.left,l=i.value.startX-t+i.value.rectWidth;if(t<0)return;if(l<u)return;i.value.startX=Math.max(0,Math.min(t,r.width-i.value.rectWidth)),i.value.rectWidth=l}if(n.value.rightCenter){let t=e.clientX-r.left-i.value.startX;t<u&&(t=u),t+i.value.startX>r.width&&(t=r.width-i.value.startX),i.value.rectWidth=t}if(n.value.bottomRight){let t=e.clientX-r.left-i.value.startX,l=e.clientY-r.top-i.value.startY;t<u&&(t=u),l<u&&(l=u),t+i.value.startX>r.width&&(t=r.width-i.value.startX),l+i.value.startY>r.height&&(l=r.height-i.value.startY),i.value.rectWidth=t,i.value.rectHeight=l}if(n.value.bottomLeft){let t=e.clientX-r.left,l=i.value.startX-t+i.value.rectWidth,a=e.clientY-r.top-i.value.startY;if(t<0)return;if(l<u)return;a<u&&(a=u),a+i.value.startY>r.height&&(a=r.height-i.value.startY),i.value.startX=Math.max(0,Math.min(t,r.width-i.value.rectWidth)),i.value.rectWidth=l,i.value.rectHeight=a}if(n.value.topLeft){let t=e.clientY-r.top,l=i.value.startY-t+i.value.rectHeight;if(t<0)return;if(l<u)return;i.value.rectHeight=l,i.value.startY=Math.max(0,Math.min(t,r.height-i.value.rectHeight));let a=e.clientX-r.left,n=i.value.startX-a+i.value.rectWidth;if(a<0)return;if(n<u)return;i.value.startX=Math.max(0,Math.min(a,r.width-i.value.rectWidth)),i.value.rectWidth=n}if(n.value.topRight){let t=e.clientY-r.top,l=i.value.startY-t+i.value.rectHeight;if(t<0)return;if(l<u)return;i.value.rectHeight=l,i.value.startY=Math.max(0,Math.min(t,r.height-i.value.rectHeight));let a=e.clientX-r.left-i.value.startX;a<u&&(a=u),a+i.value.startX>r.width&&(a=r.width-i.value.startX),i.value.rectWidth=a}};return S((()=>{r=e.parentEl.getBoundingClientRect(),document.addEventListener("mousemove",c),document.addEventListener("mouseup",s)})),g((()=>{document.removeEventListener("mousemove",c,!1),document.removeEventListener("mouseup",s,!1)})),{onMousedown:e=>{e.preventDefault(),a.value=!0,o.value.diff_x=e.offsetX,o.value.diff_y=e.offsetY},onMouseup:s,onContextmenu:e=>{e.preventDefault(),t("contextmenu",e,i.value)},rect:i,onMousedownDot:(e,t)=>{e.preventDefault(),e.stopPropagation(),n.value[t]=!0}}},render(){const e=t("ns",{}),l=this.$props;return i("div",{class:[e.b("draggable-rect")],style:(()=>{const{startX:e,startY:t,rectWidth:a,rectHeight:n}=this.rect,o={top:t+"px",left:e+"px",width:a+"px",height:n+"px"},r=l.color;if(r){const e=Ys(r);e&&(o.backgroundColor=`rgba(${e[0]},${e[1]},${e[2]}, 0.5)`)}return o})(),onMousedown:this.onMousedown,onMouseup:this.onMouseup,onContextmenu:this.onContextmenu},[i("ul",{class:[e.be("draggable-rect","resize")]},[i("li",{class:"top-left",onMousedown:e=>this.onMousedownDot(e,"topLeft")},null),i("li",{class:"top-center",onMousedown:e=>this.onMousedownDot(e,"topCenter")},null),i("li",{class:"top-right",onMousedown:e=>this.onMousedownDot(e,"topRight")},null),i("li",{class:"left-center",onMousedown:e=>this.onMousedownDot(e,"leftCenter")},null),i("li",{class:"right-center",onMousedown:e=>this.onMousedownDot(e,"rightCenter")},null),i("li",{class:"bottom-left",onMousedown:e=>this.onMousedownDot(e,"bottomLeft")},null),i("li",{class:"bottom-center",onMousedown:e=>this.onMousedownDot(e,"bottomCenter")},null),i("li",{class:"bottom-right",onMousedown:e=>this.onMousedownDot(e,"bottomRight")},null)])])}}),Us=r({name:"NextCanvasContext",props:{classes:{type:Array,default:()=>[]},contextClientHeight:{type:Number,default:null},rowInfo:{type:Object,default:()=>({})}},emits:["change"],setup(e,{emit:n,expose:o}){const r=t("ns",{}),u=t("_emit",null),c=l(),d=l(),p=l(),h=l([]),f=l({}),v=()=>{const e=ai(h.value);let t=[];return{rects:e.map((e=>{delete e.typeName;const l=Ps(e);return t.push(l.join(" ")),_(e)})),label_txt:t.join("\n")}},m=(e,t)=>{c.value.style.width=e+"px",c.value.style.height=t+"px",d.value.width=e,d.value.height=t,d.value.style.width=e+"px",d.value.style.height=t+"px",p.value.width=e,p.value.height=t,p.value.style.width=e+"px",p.value.style.height=t+"px"},g=l(!1),b=t=>{h.value=(t=>t.labels?t.labels.map((t=>{const l=e.classes[t.type];return l&&(t.typeName=l),t})):[])(t);const l=c.value?.clientHeight,a=d.value?.getContext("2d");if(t?.imageSrc){const e=new Image;e.src=t.imageSrc,g.value=!0,e.onload=()=>{g.value=!1;let{width:t,height:n}=e;if(n>l){const a=n/l;n=l,e.style.height=n+"px",t/=a}const o=n,r=parseFloat((o/n).toFixed(3)),i=Math.ceil(t*r);m(i,o),h.value=((e,t)=>{let l=[];for(let a=0;a<e.length;a++){const n=e[a],o=parseFloat((t/n.canvasHeight).toFixed(3));o&&(n.startX=Math.ceil(n.startX*o),n.startY=Math.ceil(n.startY*o),n.rectWidth=Math.ceil(n.rectWidth*o),n.rectHeight=Math.ceil(n.rectHeight*o),n.canvasWidth=Math.ceil(n.canvasWidth*o),n.canvasHeight=t),l.push(n)}return l})(h.value,o);const{updateLabels:s,addDrawRect:u,hitCanvasLabel:c}=(e=>{const{ctx:t,labels:l,image:a,canvasWidth:n,canvasHeight:o}=e,r=()=>{t.clearRect(0,0,n,o),t.drawImage(a,0,0,n,o);for(let e=0;e<l.length;e++){const a=l[e],{startX:n,startY:o,rectWidth:r,rectHeight:i,type:s}=a,u=Fs[s%Fs.length];if(t.font="bold 14px serif",t.textBaseline="top",t.save(),t.strokeStyle=u,t.strokeRect(n,o,r,i),oi(a.typeName)||oi(a.type)){const e=a.typeName||a.type;t.fillStyle=u,t.fillText(e,n+6,o+6)}t.restore()}};return r(),{updateLabels:r,addDrawRect:(e,l="#f30635")=>{const{startX:a,startY:n,rectWidth:o,rectHeight:r}=e;t.strokeStyle=l,t.strokeRect(a,n,o,r)},hitCanvasLabel:(e,t)=>{let a=null,n=null,o=null;for(let r=0;r<l.length;r++){const i=l[r],{type:s,startX:u,startY:c,rectWidth:d,rectHeight:p}=i;e>=u&&e<=u+d&&t>=c&&t<=c+p&&(a=i,n=r,o=Fs[s])}return{hit_rect:a,hit_index:n,color:o}}}})({canvas:d.value,ctx:a,image:e,canvasWidth:i,canvasHeight:o,labels:h.value,scaleFactor:r});f.value.updateLabels=s,f.value.addDrawRect=u,f.value.hitCanvasLabel=c;const{clearCanvas:v}=((e,t,l)=>{const a=e.width,n=e.height,o=e?.getContext("2d"),r=()=>{o.clearRect(0,0,a,n)};r();let i,s,u,c,d=!1,p=!1,h=!1;document.addEventListener("keydown",(t=>{"KeyW"===t.code&&(h=!0,e.style.cursor="crosshair",e.style.zIndex="11",l&&l())})),document.addEventListener("keyup",(t=>{d||"KeyW"===t.code&&(h=!1,e.style.cursor="unset",e.style.zIndex="0")})),e.addEventListener("mousedown",(e=>{h&&(d=!0,i=e.offsetX,s=e.offsetY)})),e.addEventListener("mousemove",(e=>{d&&h&&(p=!0,u=e.offsetX,c=e.offsetY,f())})),e.addEventListener("mouseup",(()=>{if(!p)return;d=!1,h=!1,e.style.cursor="unset",e.style.zIndex="0";const l=Math.abs(u-i),o=Math.abs(c-s);i>u&&(i=u),s>c&&(s=c),t&&t({startX:i,startY:s,rectWidth:l,rectHeight:o,canvasWidth:a,canvasHeight:n},{endX:u,endY:c}),p=!1}));const f=(e="#f30635")=>{r(),o.strokeStyle=e,o.strokeRect(i,s,u-i,c-s)};return{canvas:e,ctx:o,clearCanvas:r,drawRect:f}})(p.value,((e,{endX:t,endY:l})=>{T.value=e,f.value.addDrawRect(e),w(t,l,e)}),(()=>{j()}));f.value.clearCanvasRect=v},e.onerror=()=>{g.value=!1}}d.value.addEventListener("contextmenu",(e=>{e.preventDefault();const t=e.offsetX,l=e.offsetY,{hit_rect:a}=f.value.hitCanvasLabel(t,l);C(),j(),a&&D((()=>{w(t,l,a)}))})),d.value.addEventListener("click",(e=>{const t=e.offsetX,l=e.offsetY,{hit_rect:a,hit_index:n,color:o}=f.value.hitCanvasLabel(t,l);j(),C(),a&&D((()=>{M(t,l,a,n,o)}))}))};S((()=>{y((()=>e.rowInfo),(e=>{const t=_(e);b(t)}),{deep:!0,immediate:!0}),y((()=>e.contextClientHeight),(t=>{if(ri(t)){c.value.style.height=t+"px";const l=_(e.rowInfo);b(l)}}))}));const x=l({show:!1,top:0,left:0,activateRect:null}),w=(e,t,l)=>{const a=d.value.getBoundingClientRect();x.value.show=!0,x.value.left=e+a.x,x.value.top=t+a.y,x.value.canvasWidth=d.value.width,x.value.canvasHeight=d.value.height,x.value.activateRect=l,T.value=l},C=()=>{x.value.show=!1,x.value.top=0,x.value.left=0,x.value.activateRect=null,T.value=null,f.value.updateLabels(),f.value.clearCanvasRect()},z=a((()=>{const{top:e,left:t,canvasWidth:l,canvasHeight:a}=x.value;return{top:e,left:t,canvasWidth:l,canvasHeight:a}})),k=l({show:!1,top:0,left:0,width:0,height:0,activateRect:null,activateIndex:null,color:null}),M=(e,t,l,a,n)=>{k.value.show=!0,k.value.top=t,k.value.left=e,k.value.width=l.rectWidth,k.value.height=l.rectHeight,k.value.activateRect=l,k.value.activateIndex=a,k.value.color=n},j=()=>{k.value.show=!1,k.value.top=0,k.value.left=0,k.value.width=0,k.value.height=0,k.value.activateRect=null,k.value.activateIndex=null,k.value.color=null},A=e=>{k.value.activateRect=e,f.value.updateLabels();const t=h.value.findIndex((t=>Bi(t,e)));t>-1&&h.value.splice(t,1,e);const{rects:l,label_txt:a}=v();u("change",l,a),n("change",l,a)},L=(e,t)=>{e.preventDefault();const l=e.offsetX,a=e.offsetY,n=l+t.startX,o=a+t.startY;C(),D((()=>{w(n,o,t)}))},T=l(),O=t=>{T.value.type=t;const l=e.classes[t];l&&(T.value.typeName=l);const a=h.value.findIndex((e=>Bi(e,T.value)));a>-1?h.value.splice(a,1,T.value):h.value.push(T.value),C();const{rects:o,label_txt:r}=v();u("change",o,r),n("change",o,r)},H=e=>{const t=h.value.findIndex((t=>Bi(t,e)));h.value.splice(t,1),C(),j(),f.value.updateLabels();const{rects:l,label_txt:a}=v();u("change",l,a),n("change",l,a)};o({onCloseDraggableRectFixed:j,onCloseContentmenuLabel:C,onSelectedLabel:(e,t)=>{j(),D((()=>{const{startX:l,startY:a,type:n}=e;M(l,a,e,t,Fs[n])}))},onDeleteLabel:H,rerenderImage:()=>{m(0,0),C(),j(),D((()=>{const t=_(e.rowInfo);b(t)}))}});return()=>i(s,null,[i(Ts,{loading:g.value,class:[r.b("loading")]},{default:()=>[i("div",{ref:c,class:[r.b("canvas")]},[i("canvas",{ref:d,class:[r.be("canvas","context")]},null),i("canvas",{ref:p,class:[r.be("canvas","rect")]},null),x.value.show?i(Ws,{labelRect:z.value,classes:e.classes,activateRect:x.value.activateRect,onClose:C,onSelect:O,onDelete:H},null):null,k.value.show?i($s,{parentEl:c.value,rect:k.value.activateRect,color:k.value.color,onDraggleResize:A,onContextmenu:L},null):null])]})])}}),Xs=r({props:{contentHeight:{type:Number},classes:{type:Array,default:()=>[]},labels:{type:Array,default:()=>[]}},emits:["delete","select"],setup(e,{emit:a}){const{t:n}=dn(),o=t("ns",{}),r=l([]);y((()=>e.labels),(t=>{const l=_(t);r.value=(t=>t.length?t.map((t=>{const l=e.classes[t.type];return l&&(t.typeName=l),t})):[])(l)}),{deep:!0,immediate:!0});const u=()=>i("div",{class:[o.b("right")],style:{height:e.contentHeight+"px"}},[r.value.length?i("ul",null,[r.value.map(((e,t)=>i("li",{key:t,onClick:()=>((e,t)=>{a("select",e,t)})(e,t)},[i("div",null,[i("span",{style:{"background-color":Fs[e.type]},class:"label-line"},null),i("span",null,[e.typeName])]),i(ge,{title:n("next.labelimg.confirmDeleteLabel"),width:180,onConfirm:()=>(e=>{a("delete",e)})(e)},{reference:()=>i(N,{size:16,color:"#ff0000",onClick:e=>{e.preventDefault(),e.stopPropagation()}},{default:()=>[i(bo,null,null)]})})])))]):i(ve,{"image-size":120,description:n("next.labelimg.emptyLabelText")},null)]);return()=>i(s,null,[u()])}}),qs={minContentHeight:500};const Ks=Ae("labelimg");var Gs=r({name:"NextLabelimg",props:{className:{type:String,default:""},style:{type:Object,default:()=>({})},rowKey:{type:String,default:"id"},options:{type:Object,default:()=>({})},classes:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]}},emits:["change","save","prev-click","next-click"],setup(e,{emit:t,slots:o,expose:r}){const{t:u}=dn(),c=ai(qs),d=a((()=>{const t=n(e.options);return tn(c,t)})),p=n(d);b("ns",Ks),b("_emit",t);const h=l(0),f=l(e.classes),v=l(ai(e.data));y((()=>e.data),(e=>{v.value=ai(e)}),{deep:!0}),y((()=>e.data.length),(()=>{h.value=0})),y((()=>e.classes),(e=>{f.value=e}),{deep:!0});const m=a((()=>{if(!v.value)return{};const e=v.value[h.value]||{};return ai(e)})),x=l(m.value.labels||[]);y((()=>m.value),(()=>{x.value=m.value.labels||[]}));const w=e=>{m.value.labels=e,x.value=e},C=l(!1),_=()=>{const e=m.value;let t=[];return e.labels.forEach((e=>{delete e.typeName;const l=Ps(e);t.push(l.join(" "))})),{node:e,label_txt:t.join("\n")}},z=()=>Bi(v.value[h.value].labels,m.value.labels),k=e=>{const t=v.value.length;"KeyD"===e.code?(h.value++,h.value>=t&&(h.value=0)):"KeyA"===e.code&&(h.value--,h.value<0&&(h.value=t-1))},M=e=>{if(C.value)return;if(!["KeyA","KeyD"].includes(e.code))return;C.value=!0;const{node:l,label_txt:a}=_();if(H.value.onCloseDraggableRectFixed(),z())return k(e),void(C.value=!1);t("save",{node:l,label_txt:a},(t=>{v.value[h.value]=t||l,k(e),C.value=!1}),(()=>{C.value=!1}))},A=e=>{if(C.value)return;C.value=!0;const{node:l,label_txt:a}=_();return H.value.onCloseDraggableRectFixed(),z()?(h.value=e,C.value=!1,!1):(t("save",{node:l,label_txt:a},(t=>{v.value[h.value]=t||l,h.value=e,C.value=!1}),(()=>{C.value=!1})),!0)},T=()=>{const e=v.value.length;let l=h.value-1;l<0&&(l=e-1),A(l),t("prev-click")},O=()=>{const e=v.value.length;let l=h.value+1;l>=e&&(l=0),A(l),t("next-click")},H=l(),E=l(),V=l(),B=l(),R=l(),F=l(p.minContentHeight),P=()=>{D((()=>{const e=(E.value?.clientHeight||0)-((V.value?.clientHeight||0)+(R.value?.clientHeight||0));F.value=e}))};S((()=>{document.addEventListener("keydown",M),li(E.value.parentElement,(()=>{P()})),window.addEventListener("resize",P)})),g((()=>{document.removeEventListener("keydown",M),window.removeEventListener("resize",P)}));const I=(e,t)=>{H.value.onSelectedLabel(e,t)},W=e=>{H.value.onDeleteLabel(e)},Y=l(!1),$=e=>{Y.value=e,P(),D((()=>{H.value.rerenderImage()}))};r({convertToLabel:Ps,canvertToCanvas:Is});const U=()=>i("div",{ref:E,class:[Ks.b(),e.className,Y.value?Ks.b("fullscreen"):""],style:{...e.style}},[i(Gi,{loading:C.value,tip:u("next.labelimg.saveTxt"),class:[Ks.b("loading")]},{default:()=>[i(L,null,{default:()=>[i("header",{ref:V,class:[Ks.b("header")]},[o.header?o.header():i(Rs,{isFullscreen:Y.value,onFullscreen:$,onSave:()=>{A(h.value)||j({type:"info",message:u("next.labelimg.labelNoUpdate")})}},null)]),i("div",{ref:B,class:[Ks.b("main")]},[i(L,{class:[Ks.be("main","content")]},{default:()=>[i("div",{class:[Ks.be("main","content")],style:{height:F.value+"px"}},[i(Us,{ref:H,contextClientHeight:F.value,classes:f.value,rowInfo:m.value,onChange:w},null)])]}),i(Xs,{contentHeight:F.value,classes:f.value,labels:x.value,onDelete:W,onSelect:I},null)]),i("footer",{ref:R,class:[Ks.b("footer")]},[i("div",{class:[Ks.be("footer","left")]},[i(N,{size:24,color:"#797979",onClick:T},{default:()=>[i(Rn,null,null)]})]),i("div",{class:[Ks.be("footer","center")]},[i(L,null,{default:()=>[i("ul",{class:[Ks.bem("footer","center","list")]},[v.value.map(((e,t)=>i("li",{key:t,onClick:()=>A(t),class:{"is-activate":h.value===t}},[i(de,{style:"height: 100%",src:e.imageSrc,"zoom-rate":1.2,"max-scale":2,"min-scale":.2,fit:"cover"},null)])))])]})]),i("div",{class:[Ks.be("footer","right")]},[i(N,{size:24,color:"#797979",onClick:O},{default:()=>[i(Wn,null,null)]})])])]})]})]);return()=>i(s,null,[U()])}});const Zs=Ae("labelimg-preview");var Js=r({name:"NextLabelimgPreview",props:{className:{type:String,default:""},style:{type:Object,default:()=>({})},src:{type:String,default:""},classes:{type:Array,default:()=>[]},labels:{type:Array,default:()=>[]}},setup(e){const t=l(),a=l(ai(e.classes)),n=l(ai(e.labels)),o=()=>{if(e.src){const l=t.value?.getContext("2d"),o=new Image;o.src=e.src,o.onload=()=>{const{width:e,height:r}=o,i=r,s=i/r,u=Math.ceil(e*s);((e,l)=>{t.value.width=e,t.value.height=l,t.value.style.width=e+"px",t.value.style.height=l+"px"})(u,i),l.clearRect(0,0,u,i),l.drawImage(o,0,0,u,i);for(let e=0;e<n.value.length;e++){const t=n.value[e],{startX:o,startY:r,rectWidth:i,rectHeight:s,type:u}=t,c=Fs[u%Fs.length];if(l.font="bold 14px serif",l.textBaseline="top",l.save(),l.strokeStyle=c,l.strokeRect(o,r,i,s),!oi(t.typeName)){const e=a.value[t.type];e&&(t.typeName=e)}if(oi(t.typeName)||oi(t.type)){const e=t.typeName||t.type;l.fillStyle=c,l.fillText(e,o+6,r+6)}l.restore()}}}};S((()=>{y((()=>e.src),(()=>{o()}),{immediate:!0})}));return()=>i(s,null,[i("div",{class:[Zs.b(),e.className],style:{...e.style}},[i("canvas",{ref:t},null)])])}});const Qs=Sn(Gs),eu=Sn(Js);var tu=Object.freeze({__proto__:null,NextContainer:Vi,NextCrudTable:ks,NextCrudTableVirtualized:Ls,NextDialog:ds,NextDragResize:Bs,NextForm:Cs,NextLabelimg:Qs,NextLabelimgPreview:eu,NextLayout:Ti,NextMenu:di,NextSpinLoading:Ts,NextTabs:Ei,NextTextEllipsis:jn,NextTreeSelect:ws,NextUpload:Hs,NextVideoPlayer:Vs});const lu=e=>{e.directive("zoom",{mounted(e,t){if(!t.value)return!1;const l="string"==typeof(a=t.value)||!Xe(a)&&Ye(a)&&"[object String]"==We(a)?[t.value,".el-dialog__body",!1,!0]:t.value;var a;l[1]=l[1]?l[1]:".el-dialog__body",l[2]=void 0!==l[2]&&l[2],l[3]=void 0===l[3]||l[3],D((()=>{const e=document.querySelector(l[1]),t=document.querySelector(l[0]),a=document.createElement("div");a.className="dialog-zoom",a.onmouseenter=()=>{a.onmousedown=a=>{const n=a.clientX,o=a.clientY,r=e.offsetWidth,i=e.offsetHeight,s=t.offsetWidth,u=t.offsetHeight;document.onmousemove=a=>{a.preventDefault();const c=r+2*(a.clientX-n),d=i+(a.clientY-o);if(e.style.width=`${c}px`,e.style.height=`${d}px`,l[2]){const e=u+(a.clientY-o);t.style.height=`${e}px`}if(l[3]){const e=s+2*(a.clientX-n);t.style.width=`${e}px`}},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null}}},t.appendChild(a)}))}})},au="0.3.1",nu=function(e){Object.keys(tu).forEach((t=>{const l=tu[t];e.component(l.name,l)})),(e=>{lu(e)})(e)};var ou={version:au,install:nu};export{Vi as NextContainer,ks as NextCrudTable,Ls as NextCrudTableVirtualized,ds as NextDialog,Bs as NextDragResize,Cs as NextForm,Qs as NextLabelimg,eu as NextLabelimgPreview,Ti as NextLayout,di as NextMenu,Ts as NextSpinLoading,Ei as NextTabs,jn as NextTextEllipsis,ws as NextTreeSelect,Hs as NextUpload,Vs as NextVideoPlayer,un as buildLocaleContext,sn as buildTranslator,ou as default,De as defaultNamespace,nu as install,cn as localeContextKey,on as localeLang,Me as namespaceContextKey,mn as nextUseCssTheme,vn as nextUseCssVar,rn as translate,gn as updateThemeColor,yn as updateThemeColorCssVar,Cn as useDetectVideo,je as useGetDerivedNamespace,pn as useLanguage,dn as useLocale,Ae as useNamespace,au as version};
10
+ import{getCurrentInstance as e,inject as t,ref as l,computed as a,unref as n,isRef as o,defineComponent as r,createVNode as i,Fragment as s,openBlock as u,createElementBlock as c,createElementVNode as d,reactive as p,createTextVNode as h,resolveComponent as f,Teleport as v,isVNode as m,onUnmounted as g,provide as b,watch as y,markRaw as x,watchEffect as w,h as C,onMounted as S,toRaw as D,render as k,nextTick as M,toRef as _}from"vue";import{localeContextKey as z,ElMessage as E,ElTooltip as L,ElScrollbar as j,ElDivider as O,ElColorPicker as A,ElSwitch as T,ElDropdown as V,ElIcon as H,ElDropdownMenu as N,ElDropdownItem as P,ElDrawer as B,ElMenuItem as I,ElSubMenu as R,ElMenu as F,ElContainer as W,ElCol as Y,ElFormItem as $,ElInput as U,ElSelect as X,ElOption as q,ElDatePicker as K,ElInputNumber as G,ElForm as J,ElRow as Z,ElButton as Q,ElTable as ee,ElTableColumn as te,ElCheckbox as le,ElMessageBox as ae,ElPagination as ne,ElDialog as oe,ElTag as re,ElRadioGroup as ie,ElRadio as se,ElUpload as ue,ElImageViewer as ce,ElImage as de,ElTreeSelect as pe,ElTimeSelect as he,ElCheckboxGroup as fe,ElEmpty as ve,ElPopover as me,ElPopconfirm as ge}from"element-plus";import{useDateFormat as be,useNow as ye,useFullscreen as xe}from"@vueuse/core";import*as we from"@tensorflow/tfjs";import Ce from"video.js";import"video.js/dist/video-js.css";import Se from"video.js/dist/lang/zh-CN.json";import De from"video.js/dist/lang/en.json";import ke from"video.js/dist/lang/zh-TW.json";const Me="next",_e=(e,t,l,a,n)=>{let o=`${e}-${t}`;return l&&(o+=`-${l}`),a&&(o+=`__${a}`),n&&(o+=`--${n}`),o},ze=Symbol("namespaceContextKey"),Ee=o=>{const r=o||(e()?t(ze,l(Me)):l(Me));return a((()=>n(r)||Me))},Le=(e,t)=>{const l=Ee(t);return{namespace:l,b:(t="")=>_e(l.value,e,t,"",""),e:t=>t?_e(l.value,e,"",t,""):"",m:t=>t?_e(l.value,e,"","",t):"",be:(t,a)=>t&&a?_e(l.value,e,t,a,""):"",em:(t,a)=>t&&a?_e(l.value,e,"",t,a):"",bm:(t,a)=>t&&a?_e(l.value,e,t,"",a):"",bem:(t,a,n)=>t&&a&&n?_e(l.value,e,t,a,n):"",bf:(...t)=>{let a=`${l.value}-${e}`;for(const e in t){const l=t[e];l&&(a+="-"+l)}return a},is:(e,...t)=>{const l=!(t.length>=1)||t[0];return e&&l?`is-${e}`:""},cssVar:e=>{const t={};for(const a in e)e[a]&&(t[`--${l.value}-${a}`]=e[a]);return t},cssVarName:e=>`--${l.value}-${e}`,cssVarBlock:t=>{const a={};for(const n in t)t[n]&&(a[`--${l.value}-${e}-${n}`]=t[n]);return a},cssVarBlockName:t=>`--${l.value}-${e}-${t}`}};var je="object"==typeof global&&global&&global.Object===Object&&global,Oe="object"==typeof self&&self&&self.Object===Object&&self,Ae=je||Oe||Function("return this")(),Te=Ae.Symbol,Ve=Object.prototype,He=Ve.hasOwnProperty,Ne=Ve.toString,Pe=Te?Te.toStringTag:void 0;var Be=Object.prototype.toString;var Ie="[object Null]",Re="[object Undefined]",Fe=Te?Te.toStringTag:void 0;function We(e){return null==e?void 0===e?Re:Ie:Fe&&Fe in Object(e)?function(e){var t=He.call(e,Pe),l=e[Pe];try{e[Pe]=void 0;var a=!0}catch(e){}var n=Ne.call(e);return a&&(t?e[Pe]=l:delete e[Pe]),n}(e):function(e){return Be.call(e)}(e)}function Ye(e){return null!=e&&"object"==typeof e}var $e="[object Symbol]";function Ue(e){return"symbol"==typeof e||Ye(e)&&We(e)==$e}var Xe=Array.isArray,qe=1/0,Ke=Te?Te.prototype:void 0,Ge=Ke?Ke.toString:void 0;function Je(e){if("string"==typeof e)return e;if(Xe(e))return function(e,t){for(var l=-1,a=null==e?0:e.length,n=Array(a);++l<a;)n[l]=t(e[l],l,e);return n}(e,Je)+"";if(Ue(e))return Ge?Ge.call(e):"";var t=e+"";return"0"==t&&1/e==-qe?"-0":t}function Ze(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Qe(e){return e}var et="[object AsyncFunction]",tt="[object Function]",lt="[object GeneratorFunction]",at="[object Proxy]";function nt(e){if(!Ze(e))return!1;var t=We(e);return t==tt||t==lt||t==et||t==at}var ot,rt=Ae["__core-js_shared__"],it=(ot=/[^.]+$/.exec(rt&&rt.keys&&rt.keys.IE_PROTO||""))?"Symbol(src)_1."+ot:"";var st=Function.prototype.toString;function ut(e){if(null!=e){try{return st.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var ct=/^\[object .+?Constructor\]$/,dt=Function.prototype,pt=Object.prototype,ht=dt.toString,ft=pt.hasOwnProperty,vt=RegExp("^"+ht.call(ft).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function mt(e){return!(!Ze(e)||(t=e,it&&it in t))&&(nt(e)?vt:ct).test(ut(e));var t}function gt(e,t){var l=function(e,t){return null==e?void 0:e[t]}(e,t);return mt(l)?l:void 0}var bt=gt(Ae,"WeakMap"),yt=Object.create,xt=function(){function e(){}return function(t){if(!Ze(t))return{};if(yt)return yt(t);e.prototype=t;var l=new e;return e.prototype=void 0,l}}();var wt=Date.now;var Ct,St,Dt,kt=function(){try{var e=gt(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Mt=kt?function(e,t){return kt(e,"toString",{configurable:!0,enumerable:!1,value:(l=t,function(){return l}),writable:!0});var l}:Qe,_t=(Ct=Mt,St=0,Dt=0,function(){var e=wt(),t=16-(e-Dt);if(Dt=e,t>0){if(++St>=800)return arguments[0]}else St=0;return Ct.apply(void 0,arguments)}),zt=9007199254740991,Et=/^(?:0|[1-9]\d*)$/;function Lt(e,t){var l=typeof e;return!!(t=null==t?zt:t)&&("number"==l||"symbol"!=l&&Et.test(e))&&e>-1&&e%1==0&&e<t}function jt(e,t,l){"__proto__"==t&&kt?kt(e,t,{configurable:!0,enumerable:!0,value:l,writable:!0}):e[t]=l}function Ot(e,t){return e===t||e!=e&&t!=t}var At=Object.prototype.hasOwnProperty;function Tt(e,t,l){var a=e[t];At.call(e,t)&&Ot(a,l)&&(void 0!==l||t in e)||jt(e,t,l)}var Vt=Math.max;function Ht(e,t){return _t(function(e,t,l){return t=Vt(void 0===t?e.length-1:t,0),function(){for(var a=arguments,n=-1,o=Vt(a.length-t,0),r=Array(o);++n<o;)r[n]=a[t+n];n=-1;for(var i=Array(t+1);++n<t;)i[n]=a[n];return i[t]=l(r),function(e,t,l){switch(l.length){case 0:return e.call(t);case 1:return e.call(t,l[0]);case 2:return e.call(t,l[0],l[1]);case 3:return e.call(t,l[0],l[1],l[2])}return e.apply(t,l)}(e,this,i)}}(e,t,Qe),e+"")}var Nt=9007199254740991;function Pt(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Nt}function Bt(e){return null!=e&&Pt(e.length)&&!nt(e)}function It(e){return Ht((function(t,l){var a=-1,n=l.length,o=n>1?l[n-1]:void 0,r=n>2?l[2]:void 0;for(o=e.length>3&&"function"==typeof o?(n--,o):void 0,r&&function(e,t,l){if(!Ze(l))return!1;var a=typeof t;return!!("number"==a?Bt(l)&&Lt(t,l.length):"string"==a&&t in l)&&Ot(l[t],e)}(l[0],l[1],r)&&(o=n<3?void 0:o,n=1),t=Object(t);++a<n;){var i=l[a];i&&e(t,i,a,o)}return t}))}var Rt=Object.prototype;function Ft(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Rt)}function Wt(e){return Ye(e)&&"[object Arguments]"==We(e)}var Yt=Object.prototype,$t=Yt.hasOwnProperty,Ut=Yt.propertyIsEnumerable,Xt=Wt(function(){return arguments}())?Wt:function(e){return Ye(e)&&$t.call(e,"callee")&&!Ut.call(e,"callee")};var qt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Kt=qt&&"object"==typeof module&&module&&!module.nodeType&&module,Gt=Kt&&Kt.exports===qt?Ae.Buffer:void 0,Jt=(Gt?Gt.isBuffer:void 0)||function(){return!1},Zt={};Zt["[object Float32Array]"]=Zt["[object Float64Array]"]=Zt["[object Int8Array]"]=Zt["[object Int16Array]"]=Zt["[object Int32Array]"]=Zt["[object Uint8Array]"]=Zt["[object Uint8ClampedArray]"]=Zt["[object Uint16Array]"]=Zt["[object Uint32Array]"]=!0,Zt["[object Arguments]"]=Zt["[object Array]"]=Zt["[object ArrayBuffer]"]=Zt["[object Boolean]"]=Zt["[object DataView]"]=Zt["[object Date]"]=Zt["[object Error]"]=Zt["[object Function]"]=Zt["[object Map]"]=Zt["[object Number]"]=Zt["[object Object]"]=Zt["[object RegExp]"]=Zt["[object Set]"]=Zt["[object String]"]=Zt["[object WeakMap]"]=!1;var Qt="object"==typeof exports&&exports&&!exports.nodeType&&exports,el=Qt&&"object"==typeof module&&module&&!module.nodeType&&module,tl=el&&el.exports===Qt&&je.process,ll=function(){try{var e=el&&el.require&&el.require("util").types;return e||tl&&tl.binding&&tl.binding("util")}catch(e){}}(),al=ll&&ll.isTypedArray,nl=al?function(e){return function(t){return e(t)}}(al):function(e){return Ye(e)&&Pt(e.length)&&!!Zt[We(e)]},ol=Object.prototype.hasOwnProperty;function rl(e,t){var l=Xe(e),a=!l&&Xt(e),n=!l&&!a&&Jt(e),o=!l&&!a&&!n&&nl(e),r=l||a||n||o,i=r?function(e,t){for(var l=-1,a=Array(e);++l<e;)a[l]=t(l);return a}(e.length,String):[],s=i.length;for(var u in e)!t&&!ol.call(e,u)||r&&("length"==u||n&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Lt(u,s))||i.push(u);return i}function il(e,t){return function(l){return e(t(l))}}var sl=il(Object.keys,Object),ul=Object.prototype.hasOwnProperty;function cl(e){return Bt(e)?rl(e):function(e){if(!Ft(e))return sl(e);var t=[];for(var l in Object(e))ul.call(e,l)&&"constructor"!=l&&t.push(l);return t}(e)}var dl=Object.prototype.hasOwnProperty;function pl(e){if(!Ze(e))return function(e){var t=[];if(null!=e)for(var l in Object(e))t.push(l);return t}(e);var t=Ft(e),l=[];for(var a in e)("constructor"!=a||!t&&dl.call(e,a))&&l.push(a);return l}function hl(e){return Bt(e)?rl(e,!0):pl(e)}var fl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vl=/^\w*$/;var ml=gt(Object,"create");var gl=Object.prototype.hasOwnProperty;var bl=Object.prototype.hasOwnProperty;function yl(e){var t=-1,l=null==e?0:e.length;for(this.clear();++t<l;){var a=e[t];this.set(a[0],a[1])}}function xl(e,t){for(var l=e.length;l--;)if(Ot(e[l][0],t))return l;return-1}yl.prototype.clear=function(){this.__data__=ml?ml(null):{},this.size=0},yl.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},yl.prototype.get=function(e){var t=this.__data__;if(ml){var l=t[e];return"__lodash_hash_undefined__"===l?void 0:l}return gl.call(t,e)?t[e]:void 0},yl.prototype.has=function(e){var t=this.__data__;return ml?void 0!==t[e]:bl.call(t,e)},yl.prototype.set=function(e,t){var l=this.__data__;return this.size+=this.has(e)?0:1,l[e]=ml&&void 0===t?"__lodash_hash_undefined__":t,this};var wl=Array.prototype.splice;function Cl(e){var t=-1,l=null==e?0:e.length;for(this.clear();++t<l;){var a=e[t];this.set(a[0],a[1])}}Cl.prototype.clear=function(){this.__data__=[],this.size=0},Cl.prototype.delete=function(e){var t=this.__data__,l=xl(t,e);return!(l<0)&&(l==t.length-1?t.pop():wl.call(t,l,1),--this.size,!0)},Cl.prototype.get=function(e){var t=this.__data__,l=xl(t,e);return l<0?void 0:t[l][1]},Cl.prototype.has=function(e){return xl(this.__data__,e)>-1},Cl.prototype.set=function(e,t){var l=this.__data__,a=xl(l,e);return a<0?(++this.size,l.push([e,t])):l[a][1]=t,this};var Sl=gt(Ae,"Map");function Dl(e,t){var l,a,n=e.__data__;return("string"==(a=typeof(l=t))||"number"==a||"symbol"==a||"boolean"==a?"__proto__"!==l:null===l)?n["string"==typeof t?"string":"hash"]:n.map}function kl(e){var t=-1,l=null==e?0:e.length;for(this.clear();++t<l;){var a=e[t];this.set(a[0],a[1])}}kl.prototype.clear=function(){this.size=0,this.__data__={hash:new yl,map:new(Sl||Cl),string:new yl}},kl.prototype.delete=function(e){var t=Dl(this,e).delete(e);return this.size-=t?1:0,t},kl.prototype.get=function(e){return Dl(this,e).get(e)},kl.prototype.has=function(e){return Dl(this,e).has(e)},kl.prototype.set=function(e,t){var l=Dl(this,e),a=l.size;return l.set(e,t),this.size+=l.size==a?0:1,this};var Ml="Expected a function";function _l(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(Ml);var l=function(){var a=arguments,n=t?t.apply(this,a):a[0],o=l.cache;if(o.has(n))return o.get(n);var r=e.apply(this,a);return l.cache=o.set(n,r)||o,r};return l.cache=new(_l.Cache||kl),l}_l.Cache=kl;var zl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,El=/\\(\\)?/g,Ll=function(e){var t=_l(e,(function(e){return 500===l.size&&l.clear(),e})),l=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(zl,(function(e,l,a,n){t.push(a?n.replace(El,"$1"):l||e)})),t}));function jl(e,t){return Xe(e)?e:function(e,t){if(Xe(e))return!1;var l=typeof e;return!("number"!=l&&"symbol"!=l&&"boolean"!=l&&null!=e&&!Ue(e))||vl.test(e)||!fl.test(e)||null!=t&&e in Object(t)}(e,t)?[e]:Ll(function(e){return null==e?"":Je(e)}(e))}var Ol=1/0;function Al(e){if("string"==typeof e||Ue(e))return e;var t=e+"";return"0"==t&&1/e==-Ol?"-0":t}function Tl(e,t,l){var a=null==e?void 0:function(e,t){for(var l=0,a=(t=jl(t,e)).length;null!=e&&l<a;)e=e[Al(t[l++])];return l&&l==a?e:void 0}(e,t);return void 0===a?l:a}var Vl=il(Object.getPrototypeOf,Object),Hl="[object Object]",Nl=Function.prototype,Pl=Object.prototype,Bl=Nl.toString,Il=Pl.hasOwnProperty,Rl=Bl.call(Object);function Fl(e){var t=this.__data__=new Cl(e);this.size=t.size}Fl.prototype.clear=function(){this.__data__=new Cl,this.size=0},Fl.prototype.delete=function(e){var t=this.__data__,l=t.delete(e);return this.size=t.size,l},Fl.prototype.get=function(e){return this.__data__.get(e)},Fl.prototype.has=function(e){return this.__data__.has(e)},Fl.prototype.set=function(e,t){var l=this.__data__;if(l instanceof Cl){var a=l.__data__;if(!Sl||a.length<199)return a.push([e,t]),this.size=++l.size,this;l=this.__data__=new kl(a)}return l.set(e,t),this.size=l.size,this};var Wl="object"==typeof exports&&exports&&!exports.nodeType&&exports,Yl=Wl&&"object"==typeof module&&module&&!module.nodeType&&module,$l=Yl&&Yl.exports===Wl?Ae.Buffer:void 0,Ul=$l?$l.allocUnsafe:void 0;var Xl=Object.prototype.propertyIsEnumerable,ql=Object.getOwnPropertySymbols,Kl=ql?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var l=-1,a=null==e?0:e.length,n=0,o=[];++l<a;){var r=e[l];t(r,l,e)&&(o[n++]=r)}return o}(ql(e),(function(t){return Xl.call(e,t)})))}:function(){return[]},Gl=Kl;function Jl(e){return function(e,t,l){var a=t(e);return Xe(e)?a:function(e,t){for(var l=-1,a=t.length,n=e.length;++l<a;)e[n+l]=t[l];return e}(a,l(e))}(e,cl,Gl)}var Zl=gt(Ae,"DataView"),Ql=gt(Ae,"Promise"),ea=gt(Ae,"Set"),ta="[object Map]",la="[object Promise]",aa="[object Set]",na="[object WeakMap]",oa="[object DataView]",ra=ut(Zl),ia=ut(Sl),sa=ut(Ql),ua=ut(ea),ca=ut(bt),da=We;(Zl&&da(new Zl(new ArrayBuffer(1)))!=oa||Sl&&da(new Sl)!=ta||Ql&&da(Ql.resolve())!=la||ea&&da(new ea)!=aa||bt&&da(new bt)!=na)&&(da=function(e){var t=We(e),l="[object Object]"==t?e.constructor:void 0,a=l?ut(l):"";if(a)switch(a){case ra:return oa;case ia:return ta;case sa:return la;case ua:return aa;case ca:return na}return t});var pa=da,ha=Ae.Uint8Array;function fa(e,t){var l,a,n=t?(l=e.buffer,a=new l.constructor(l.byteLength),new ha(a).set(new ha(l)),a):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function va(e){var t=-1,l=null==e?0:e.length;for(this.__data__=new kl;++t<l;)this.add(e[t])}function ma(e,t){for(var l=-1,a=null==e?0:e.length;++l<a;)if(t(e[l],l,e))return!0;return!1}va.prototype.add=va.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},va.prototype.has=function(e){return this.__data__.has(e)};var ga=1,ba=2;function ya(e,t,l,a,n,o){var r=l&ga,i=e.length,s=t.length;if(i!=s&&!(r&&s>i))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var d=-1,p=!0,h=l&ba?new va:void 0;for(o.set(e,t),o.set(t,e);++d<i;){var f=e[d],v=t[d];if(a)var m=r?a(v,f,d,t,e,o):a(f,v,d,e,t,o);if(void 0!==m){if(m)continue;p=!1;break}if(h){if(!ma(t,(function(e,t){if(r=t,!h.has(r)&&(f===e||n(f,e,l,a,o)))return h.push(t);var r}))){p=!1;break}}else if(f!==v&&!n(f,v,l,a,o)){p=!1;break}}return o.delete(e),o.delete(t),p}function xa(e){var t=-1,l=Array(e.size);return e.forEach((function(e,a){l[++t]=[a,e]})),l}function wa(e){var t=-1,l=Array(e.size);return e.forEach((function(e){l[++t]=e})),l}var Ca=1,Sa=2,Da="[object Boolean]",ka="[object Date]",Ma="[object Error]",_a="[object Map]",za="[object Number]",Ea="[object RegExp]",La="[object Set]",ja="[object String]",Oa="[object Symbol]",Aa="[object ArrayBuffer]",Ta="[object DataView]",Va=Te?Te.prototype:void 0,Ha=Va?Va.valueOf:void 0;var Na=1,Pa=Object.prototype.hasOwnProperty;var Ba=1,Ia="[object Arguments]",Ra="[object Array]",Fa="[object Object]",Wa=Object.prototype.hasOwnProperty;function Ya(e,t,l,a,n,o){var r=Xe(e),i=Xe(t),s=r?Ra:pa(e),u=i?Ra:pa(t),c=(s=s==Ia?Fa:s)==Fa,d=(u=u==Ia?Fa:u)==Fa,p=s==u;if(p&&Jt(e)){if(!Jt(t))return!1;r=!0,c=!1}if(p&&!c)return o||(o=new Fl),r||nl(e)?ya(e,t,l,a,n,o):function(e,t,l,a,n,o,r){switch(l){case Ta:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Aa:return!(e.byteLength!=t.byteLength||!o(new ha(e),new ha(t)));case Da:case ka:case za:return Ot(+e,+t);case Ma:return e.name==t.name&&e.message==t.message;case Ea:case ja:return e==t+"";case _a:var i=xa;case La:var s=a&Ca;if(i||(i=wa),e.size!=t.size&&!s)return!1;var u=r.get(e);if(u)return u==t;a|=Sa,r.set(e,t);var c=ya(i(e),i(t),a,n,o,r);return r.delete(e),c;case Oa:if(Ha)return Ha.call(e)==Ha.call(t)}return!1}(e,t,s,l,a,n,o);if(!(l&Ba)){var h=c&&Wa.call(e,"__wrapped__"),f=d&&Wa.call(t,"__wrapped__");if(h||f){var v=h?e.value():e,m=f?t.value():t;return o||(o=new Fl),n(v,m,l,a,o)}}return!!p&&(o||(o=new Fl),function(e,t,l,a,n,o){var r=l&Na,i=Jl(e),s=i.length;if(s!=Jl(t).length&&!r)return!1;for(var u=s;u--;){var c=i[u];if(!(r?c in t:Pa.call(t,c)))return!1}var d=o.get(e),p=o.get(t);if(d&&p)return d==t&&p==e;var h=!0;o.set(e,t),o.set(t,e);for(var f=r;++u<s;){var v=e[c=i[u]],m=t[c];if(a)var g=r?a(m,v,c,t,e,o):a(v,m,c,e,t,o);if(!(void 0===g?v===m||n(v,m,l,a,o):g)){h=!1;break}f||(f="constructor"==c)}if(h&&!f){var b=e.constructor,y=t.constructor;b==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y||(h=!1)}return o.delete(e),o.delete(t),h}(e,t,l,a,n,o))}function $a(e,t,l,a,n){return e===t||(null==e||null==t||!Ye(e)&&!Ye(t)?e!=e&&t!=t:Ya(e,t,l,a,$a,n))}var Ua,Xa=function(e,t,l){for(var a=-1,n=Object(e),o=l(e),r=o.length;r--;){var i=o[Ua?r:++a];if(!1===t(n[i],i,n))break}return e};function qa(e,t,l){(void 0!==l&&!Ot(e[t],l)||void 0===l&&!(t in e))&&jt(e,t,l)}function Ka(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function Ga(e){return function(e,t,l,a){var n=!l;l||(l={});for(var o=-1,r=t.length;++o<r;){var i=t[o],s=a?a(l[i],e[i],i,l,e):void 0;void 0===s&&(s=e[i]),n?jt(l,i,s):Tt(l,i,s)}return l}(e,hl(e))}function Ja(e,t,l,a,n,o,r){var i=Ka(e,l),s=Ka(t,l),u=r.get(s);if(u)qa(e,l,u);else{var c,d=o?o(i,s,l+"",e,t,r):void 0,p=void 0===d;if(p){var h=Xe(s),f=!h&&Jt(s),v=!h&&!f&&nl(s);d=s,h||f||v?Xe(i)?d=i:Ye(c=i)&&Bt(c)?d=function(e,t){var l=-1,a=e.length;for(t||(t=Array(a));++l<a;)t[l]=e[l];return t}(i):f?(p=!1,d=function(e,t){if(t)return e.slice();var l=e.length,a=Ul?Ul(l):new e.constructor(l);return e.copy(a),a}(s,!0)):v?(p=!1,d=fa(s,!0)):d=[]:function(e){if(!Ye(e)||We(e)!=Hl)return!1;var t=Vl(e);if(null===t)return!0;var l=Il.call(t,"constructor")&&t.constructor;return"function"==typeof l&&l instanceof l&&Bl.call(l)==Rl}(s)||Xt(s)?(d=i,Xt(i)?d=Ga(i):Ze(i)&&!nt(i)||(d=function(e){return"function"!=typeof e.constructor||Ft(e)?{}:xt(Vl(e))}(s))):p=!1}p&&(r.set(s,d),n(d,s,a,o,r),r.delete(s)),qa(e,l,d)}}function Za(e,t,l,a,n){e!==t&&Xa(t,(function(o,r){if(n||(n=new Fl),Ze(o))Ja(e,t,r,l,Za,a,n);else{var i=a?a(Ka(e,r),o,r+"",e,t,n):void 0;void 0===i&&(i=o),qa(e,r,i)}}),hl)}var Qa=It((function(e,t,l,a){Za(e,t,l,a)}));var en=It((function(e,t,l){Za(e,t,l)})),tn=en,ln={name:"zh-cn",next:{loading:"加载中...",table:{search:"查询",clear:"清空",add:"新增",delete:"删除",batchDelete:"批量删除",export:"导出",edit:"编辑",view:"查看",unfoldSearch:"展开搜索",foldSearch:"收起搜索",notData:"暂无数据",operation:"操作",selection:"选择",selectionAll:"全选",setting:{title:"设置列",label:"列名",hide:"隐藏",filter:"筛选",sort:"排序"},message:{tip:"提示",batchDeleteTip:"您确定要批量删除吗?",cancelBatchDelete:"取消批量删除操作",deleteTip:"您确定要删除该数据吗?",cancelDelete:"取消删除操作",confirmButtonText:"确 定",cancelButtonText:"取 消"},uploadfileExceed:"上传文件数量超出限制范围"},form:{input:"请输入",select:"请选择",requiredInput:" 必填",requiredSelect:" 必选",submit:"提 交",cancel:"取 消",reset:"重 置",confirm:"确 定",tableSelect:" 选择",selectFile:"选择文件"},date:{oneWeekAge:"一周以前",oneMonthAge:"一个月以前",threeMonthsAge:"三个月以前",oneYearAge:"一年以前",threeYearsAge:"三年以前",rangeSeparator:"至",startPlaceholder:"开始时间",endPlaceholder:"结束时间"},layout:{home:"首页",personal:"个人中心",logOut:"退出登录",tabsOther:"关闭其他",tabsLeft:"关闭左侧",tabsRight:"关闭右侧",tabsAll:"关闭全部",systemSetting:"系统配置"},labelimg:{saveTxt:"保存中...",emptyLabelText:"暂无标签数据",confirmDeleteLabel:"确定要删除该标注吗?",saveLabel:"保存当前标注",instructions:"使用说明",labelNoUpdate:"暂无标签数据更新"}}},an={name:"en",next:{loading:"loading...",table:{search:"search",clear:"clear",add:"add",delete:"del",batchDelete:"batch delete",export:"export",edit:"edit",view:"view",unfoldSearch:"unfold search",foldSearch:"fold search",notData:"not data",operation:"operations",selection:"selection",selectionAll:"select all",setting:{title:"column setting",label:"column name",hide:"hide",filter:"filter",sort:"srot"},message:{tip:"tip",batchDeleteTip:"Are you sure you want to delete them in bulk ?",cancelBatchDelete:"Cancel batch deletion",deleteTip:"Are you sure you want to delete this data ?",cancelDelete:"Cancel delete",confirmButtonText:"OK",cancelButtonText:"Cancel"},uploadfileExceed:"The number of uploaded files exceeds the limit"},form:{input:"please input ",select:"please select ",requiredInput:" required",requiredSelect:" required",submit:"Submit",cancel:"Cancel",reset:"reset",confirm:"confirm",tableSelect:" select",selectFile:"select file"},date:{oneWeekAge:"one week age",oneMonthAge:"one month age",threeMonthsAge:"three months age",oneYearAge:"one year age",threeYearsAge:"three years age",rangeSeparator:"to",startPlaceholder:"start time",endPlaceholder:"end time"},layout:{home:"Home",personal:"Personal",logOut:"LogOut",tabsOther:"close other",tabsLeft:"close left",tabsRight:"close right",tabsAll:"close all",systemSetting:"system setting"},labelimg:{saveTxt:"saving...",emptyLabelText:"No label data",confirmDeleteLabel:"Are you sure you want to delete this annotation?",saveLabel:"save label",instructions:"instructions",labelNoUpdate:"No label data update"}}},nn={name:"zh-tw",next:{loading:"加載中...",table:{search:"查詢",clear:"清空",add:"新增",delete:"刪除",batchDelete:"批量刪除",export:"導出",edit:"編輯",view:"查看",unfoldSearch:"展開搜索",foldSearch:"收起搜索",notData:"暫無數據",operation:"操作",selection:"选择",selectionAll:"全选",setting:{title:"設置列",label:"列名",hide:"隱藏",filter:"篩選",sort:"排序"},message:{tip:"提示",batchDeleteTip:"您確定要批量刪除嗎?",cancelBatchDelete:"取消批量刪除操作",deleteTip:"您确定要删除该数据吗?",cancelDelete:"取消删除操作",confirmButtonText:"確 定",cancelButtonText:"取 消"},uploadfileExceed:"上传文件数量超出限制范围"},form:{input:"請輸入",select:"請選擇",requiredInput:" 必填",requiredSelect:" 必選",submit:"提 交",cancel:"取 消",reset:"重 置",confirm:"确 定",tableSelect:" 選擇",selectFile:"選擇文件"},date:{oneWeekAge:"一周以前",oneMonthAge:"一个月以前",threeMonthsAge:"三个月以前",oneYearAge:"一年以前",threeYearsAge:"三年以前",rangeSeparator:"至",startPlaceholder:"開始時間",endPlaceholder:"結束時間"},layout:{home:"首頁",personal:"個人中心",logOut:"退出登錄",tabsOther:"關閉其他",tabsLeft:"關閉左側",tabsRight:"關閉右側",tabsAll:"關閉全部",systemSetting:"系統配置"},labelimg:{saveTxt:"保存中...",emptyLabelText:"暂无标签数据",confirmDeleteLabel:"确定要删除该标注吗?",saveLabel:"保存当前标注",instructions:"使用说明",labelNoUpdate:"暂无标签数据更新"}}};const on={[ln.name]:{...ln},[an.name]:{...an},[nn.name]:{...nn}},rn=(e,t,l)=>Tl(l,e,e)?.replace(/\{(\w+)\}/g,((e,l)=>`${t?.[l]??`{${l}}`}`)),sn=e=>(t,l)=>rn(t,l,n(e)),un=e=>{const t=a((()=>n(e).name)),r=o(e)?e:l(e),i=on[t.value]||on["zh-cn"];return r.value.next=i.next,{lang:t,locale:r,t:sn(e)}},cn=z,dn=e=>{const n=e||t(cn,l());return un(a((()=>n?.value||ln)))},pn=(e,t)=>{const a=o(e)?e:l(e),n=on[t]||on["zh-cn"];a.value.name=t,a.value.next=n.next};function hn(){return{hexToRgb:e=>{let t="";if(!/^\#?[0-9A-Fa-f]{6}$/.test(e))return E.warning("输入错误的hex"),"";t=(e=e.replace("#","")).match(/../g);for(let e=0;e<3;e++)t[e]=parseInt(t[e],16);return t},hexToRgba:(e,t=1)=>{let l="";if(!/^\#?[0-9A-Fa-f]{6}$/.test(e))return E.warning("输入错误的hex"),"";l=(e=e.replace("#","")).match(/../g);for(let e=0;e<3;e++)l[e]=parseInt(l[e],16);return`rgba(${l.join(",")},${t})`},rgbToHex:(e,t,l)=>{let a=/^\d{1,3}$/;if(!a.test(e)||!a.test(t)||!a.test(l))return E.warning("输入错误的rgb颜色值"),"";let n=[e.toString(16),t.toString(16),l.toString(16)];for(let e=0;e<3;e++)1==n[e].length&&(n[e]=`0${n[e]}`);return`#${n.join("")}`},getDarkColor:(e,t)=>{if(!/^\#?[0-9A-Fa-f]{6}$/.test(e))return E.warning("输入错误的hex颜色值"),"";let l=hn().hexToRgb(e);for(let e=0;e<3;e++)l[e]=Math.floor(l[e]*(1-t));return hn().rgbToHex(l[0],l[1],l[2])},getLightColor:(e,t)=>{if(!/^\#?[0-9A-Fa-f]{6}$/.test(e))return E.warning("输入错误的hex颜色值"),"";let l=hn().hexToRgb(e);for(let e=0;e<3;e++)l[e]=Math.floor((255-l[e])*t+l[e]);return hn().rgbToHex(l[0],l[1],l[2])}}}const{getLightColor:fn}=hn(),vn=(e,t)=>{document.documentElement.style.setProperty(e,t)},mn=(e,t)=>{vn(e,t);for(let l=1;l<10;l++)vn(e+"-light-"+l,fn(t,l/10));vn(`${e}-dark-2`,t)},gn=e=>{e&&mn("--el-color-primary",e)},bn={themeColor:"--el-color-primary",headerBarColor:"--next-layout-bg-color",headerBarFontColor:"--next-layout-font-color"},yn=e=>{for(const t in bn){const l=bn[t];e[t]&&mn(l,e[t])}const t=document.documentElement;e.isDark?t.setAttribute("data-theme","dark"):t.setAttribute("data-theme","")},xn=async(e,t,l,a,n,o=[],r,i)=>{const{videoWidth:s,videoHeight:u}=e;if(!s||!u)return;let[c,d]=t.inputs[0].shape.slice(1,3),p=a.tidy((()=>a.image.resizeBilinear(a.browser.fromPixels(e),[c,d]).div(255).expandDims(0)));l.clearRect(0,0,s,u),r.clearRect(0,0,s,u),await t.executeAsync(p).then((async t=>{let[c,d,h,f]=t;for(let t=0;t<f.dataSync()[0];++t){let[a,p,f,v]=c.dataSync().slice(4*t,4*(t+1));a=a<0||a>1?parseInt(a):a,f=f<0||f>1?parseInt(f):f,p=p<0||p>1?parseInt(p):p,v=v<0||v>1?parseInt(v):v,a=Math.round(Math.abs(a)*s),f=Math.round(Math.abs(f)*s),p=Math.round(Math.abs(p)*u),v=Math.round(Math.abs(v)*u);const m=f-a,g=v-p,b=a,y=p;let x=h.dataSync()[t],w=d.dataSync()[t].toFixed(2);const C=(e,t,l)=>{const a=`#${(1<<24|Math.floor(256*Math.random())<<16|Math.floor(256*Math.random())<<8|Math.floor(256*Math.random())).toString(16).slice(1)}`;l.strokeStyle=a,l.lineWidth=2,l.beginPath(),l.rect(b,y,m,g),l.stroke(),l.font="bold 16px Arial",l.fillStyle=a,l.fillText(`${e} ${t}`,b+10,y<20?20:y-10)};if(o?.length)for(let t=0;t<o.length;t++){const a=o[t];if(a.cls==x&&Number(w)>a.score){const t=n.find((e=>e.value==x));if(t){const a=t.label;C(a,w,await wn(e,r)),C(a,w,l),i&&i(a,w)}}}else if(w>.5){const e=n.find((e=>e.value==x));if(e){C(e.label||"",w,l)}}}p.dispose(),a.dispose(t)}))},wn=(e,t)=>{const l=e.videoWidth,a=e.videoHeight,n=l/a,o=l/a,r=l,i=a;let s,u,c,d;return n>o?(c=l,d=l/n,s=0,u=Math.round((a-d)/2)):n===o?(c=l,d=a,s=0,u=0):n<o&&(c=a*n,d=a,s=Math.round((l-c)/2),u=0),t.drawImage(e,0,0,r,i,s,u,c,d),t},Cn=()=>({detectVideoFrameImage:({container:e,video:t,modelUrl:l,classNames:a,classInput:n=[]},o,r)=>l?a?void we.loadGraphModel(l).then((l=>{const r=document.createElement("canvas"),i=r.getContext("2d");r.style.position="absolute",r.style.zIndex="99",r.style.pointerEvents="none",e&&e.appendChild(r);const s=document.createElement("canvas"),u=s.getContext("2d");t.ontimeupdate=e=>{const{clientWidth:c,clientHeight:d}=e.target,{videoWidth:p,videoHeight:h,offsetTop:f,offsetLeft:v}=t;r.width=p,r.height=h,r.style.top=f+"px",r.style.left=v+"px",r.style.width=c+"px",r.style.height=d+"px",s.width=p,s.height=h,s.style.width=c+"px",s.style.height=d+"px",xn(t,l,i,we,a,n,u,((e,t)=>{const l="image/png";let a=r.toDataURL(l,.92).replace(l,"image/octet-stream");a=a.replace(/^data:image\/[^;]+/,"data:application/octet-stream");const n=s.toDataURL(l,.92);o&&o({name:e,score:t,detectImage:n,detectCanvas:s},{canvas:r,imageDataURL:a})}))}})):(r&&r("模型类别不能未空"),!1):(r&&r("模型文件地址不能为空"),!1)}),Sn=(e,t)=>{if(e.install=l=>{for(const a of[e,...Object.values(t??{})])l.component(a.name,a)},t)for(const[l,a]of Object.entries(t))e[l]=a;return e},Dn="header-menu",kn="header-tools-prefix",Mn="header-tools-suffix";var _n={logo:"",title:"Next Element Vue",userName:"Admin",language:"zh-cn",languageDropdown:[{value:"zh-cn",label:"简体中文"},{value:"en",label:"English"},{value:"zh-tw",label:"繁體中文"}],userDropdown:[{value:"/",label:"next.layout.home",svg:'<svg t="1718695810903" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="11410" width="16" height="16"><path d="M988.672 502.272l-476.16-476.16-476.16 476.16c-8.704 8.704-8.704 22.528 0 31.232l1.536 1.536c8.704 8.704 22.528 8.704 31.232 0l443.392-443.392 443.392 443.392c8.704 8.704 22.528 8.704 31.232 0l1.536-1.536c8.704-8.704 8.704-22.528 0-31.232z" fill="" p-id="11411"></path><path d="M860.16 534.016c-12.288 0-22.016 9.728-22.016 22.016v333.312c0 54.272-27.648 64-47.104 64h-152.064v-227.84c0-25.088 0-59.392-44.544-59.392H418.816c-44.032 0-44.032 33.28-44.032 59.392v227.84h-153.6c-44.032 0-45.056-64-45.056-64v-333.312c0.512-12.288-8.704-22.528-20.992-23.04-12.288-0.512-22.528 8.704-23.04 20.992v368.64c0 65.536 70.144 75.264 70.144 75.264h217.088v-287.232h176.64v287.232H824.32c39.424 0 57.856-44.032 57.856-75.264v-366.592c0-12.288-9.728-22.016-22.016-22.016z" fill="" p-id="11412"></path></svg>'},{value:"/personal",label:"next.layout.personal",svg:'<svg t="1718695007028" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2161" width="16" height="16"><path d="M512 87.04c-136.704 0-247.808 111.104-247.808 247.808 0 98.816 58.368 184.32 142.336 223.744-155.136 45.568-268.8 188.928-268.8 358.912 0 10.752 8.704 19.456 19.456 19.456 10.752 0 19.456-8.704 19.456-19.456 0-184.832 150.528-335.36 335.36-335.36 136.704 0 247.808-111.104 247.808-247.808S648.704 87.04 512 87.04z m0 456.192c-115.2 0-208.384-93.696-208.384-208.384 0-115.2 93.696-208.384 208.384-208.384 115.2 0 208.384 93.696 208.384 208.384 0 114.688-93.184 208.384-208.384 208.384z m226.816 76.8c-8.704-6.656-20.992-5.12-27.648 3.584-6.656 8.704-5.12 20.992 3.584 27.648 83.968 64 132.096 161.28 132.096 266.752 0 10.752 8.704 19.456 19.456 19.456 10.752 0 19.456-8.704 19.456-19.456 0.512-118.272-53.248-226.816-146.944-297.984z" fill="" p-id="2162"></path></svg>'},{value:"logOut",label:"next.layout.logOut",svg:'<svg t="1718695049981" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2313" width="16" height="16"><path d="M896 928H384a32 32 0 0 1-32-32v-128a32 32 0 0 1 64 0v96h448v-704h-448V256a32 32 0 1 1-64 0V128a32 32 0 0 1 32-32h512a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32z" fill="" p-id="2314"></path><path d="M608 544H192a32 32 0 0 1 0-64h416a32 32 0 0 1 0 64z" fill="" p-id="2315"></path><path d="M256 672a30.08 30.08 0 0 1-22.4-9.6l-128-128a30.72 30.72 0 0 1 0-44.8l128-128a31.36 31.36 0 1 1 44.8 44.8L173.44 512l104.96 105.6a30.72 30.72 0 0 1 0 44.8 30.08 30.08 0 0 1-22.4 9.6z" fill="" p-id="2316"></path></svg>',divided:!0}],showTabs:!0,activeTab:"/",tabs:[],menuTree:[],menuRouter:!0,menuMode:"horizontal",setting:{layout:"transverse",themeColor:"#c71585",headerBarColor:"#282c34",headerBarFontColor:"#FFFFFF",isHeaderBarColorGradual:!1,asidebarColor:"#282c34",asidebarFontColor:"#ffffff",isAsidebarColorGradual:!1,isDark:!1}};const zn=Le("text-ellipsis");const En=Sn(r({name:"NextTextEllipsis",props:{content:{type:String,default:""},disabled:{type:Boolean,default:!1},width:{type:[String,Number],default:""},placement:{type:String,default:"top"},textAlign:{type:String,default:"left"},class:{type:String,default:""}},setup(e,{slots:t}){const n=l(!1),o=a((()=>{const t=e.width;let l={textAlign:e.textAlign};return t&&("string"==typeof t?l.width=t:"number"==typeof t&&(l.width=t+"px")),l})),r=l(),u=()=>{try{const e=r.value;e&&e.scrollWidth&&e.scrollWidth>e.offsetWidth?n.value=!0:n.value=!1}catch(e){n.value=!1}};return()=>i(s,null,[i("div",{class:[zn.b(),e.class],style:o.value,onMouseenter:u},[n.value?i(L,{effect:"dark",content:e.content,placement:e.placement,disabled:e.disabled},{default:()=>[i("span",{class:zn.e("text"),ref:r},[t.default?t.default():e.content])]}):i("span",{class:zn.e("text"),ref:r},[t.default?t.default():e.content])])])}}));var Ln=r({setup(){const e=t("__ns__",{}),l=t("options",{}),{t:a}=dn();return()=>i(s,null,[i("div",{class:e.bf("header","logo")},[l.logo&&i("img",{class:e.be("header-logo","img"),src:l.logo,alt:"logo"},null),l.title&&i("p",{class:e.be("header-logo","title")},[i(En,{content:a(l.title)},null)])])])}}),jn=(e,t)=>{let l=e.__vccOpts||e;for(let[e,a]of t)l[e]=a;return l},On={name:"ArrowDown"},An={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Tn=[d("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1)];var Vn=jn(On,[["render",function(e,t,l,a,n,o){return u(),c("svg",An,Tn)}],["__file","arrow-down.vue"]]),Hn={name:"ArrowLeft"},Nn={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Pn=[d("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"},null,-1)];var Bn=jn(Hn,[["render",function(e,t,l,a,n,o){return u(),c("svg",Nn,Pn)}],["__file","arrow-left.vue"]]),In={name:"ArrowRight"},Rn={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Fn=[d("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"},null,-1)];var Wn=jn(In,[["render",function(e,t,l,a,n,o){return u(),c("svg",Rn,Fn)}],["__file","arrow-right.vue"]]),Yn={name:"ArrowUp"},$n={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Un=[d("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0z"},null,-1)];var Xn=jn(Yn,[["render",function(e,t,l,a,n,o){return u(),c("svg",$n,Un)}],["__file","arrow-up.vue"]]),qn={name:"Back"},Kn={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Gn=[d("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64z"},null,-1),d("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312L237.248 512z"},null,-1)];var Jn=jn(qn,[["render",function(e,t,l,a,n,o){return u(),c("svg",Kn,Gn)}],["__file","back.vue"]]),Zn={name:"Camera"},Qn={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},eo=[d("path",{fill:"currentColor",d:"M896 256H128v576h768V256zm-199.424-64-32.064-64h-304.96l-32 64h369.024zM96 192h160l46.336-92.608A64 64 0 0 1 359.552 64h304.96a64 64 0 0 1 57.216 35.328L768.192 192H928a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32zm416 512a160 160 0 1 0 0-320 160 160 0 0 0 0 320zm0 64a224 224 0 1 1 0-448 224 224 0 0 1 0 448z"},null,-1)];var to=jn(Zn,[["render",function(e,t,l,a,n,o){return u(),c("svg",Qn,eo)}],["__file","camera.vue"]]),lo={name:"Close"},ao={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},no=[d("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1)];var oo=jn(lo,[["render",function(e,t,l,a,n,o){return u(),c("svg",ao,no)}],["__file","close.vue"]]),ro={name:"DArrowLeft"},io={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},so=[d("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"},null,-1)];var uo=jn(ro,[["render",function(e,t,l,a,n,o){return u(),c("svg",io,so)}],["__file","d-arrow-left.vue"]]),co={name:"DArrowRight"},po={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ho=[d("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688zm-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"},null,-1)];var fo=jn(co,[["render",function(e,t,l,a,n,o){return u(),c("svg",po,ho)}],["__file","d-arrow-right.vue"]]),vo={name:"Delete"},mo={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},go=[d("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1)];var bo=jn(vo,[["render",function(e,t,l,a,n,o){return u(),c("svg",mo,go)}],["__file","delete.vue"]]),yo={name:"EditPen"},xo={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},wo=[d("path",{fill:"currentColor",d:"m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696L175.168 732.8zM455.04 229.248l193.92 112 56.704-98.112-193.984-112-56.64 98.112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336L104.32 708.8zm384 254.272v-64h448v64h-448z"},null,-1)];var Co=jn(yo,[["render",function(e,t,l,a,n,o){return u(),c("svg",xo,wo)}],["__file","edit-pen.vue"]]),So={name:"FullScreen"},Do={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ko=[d("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64v.064zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64l-192 .192zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64v-.064z"},null,-1)];var Mo=jn(So,[["render",function(e,t,l,a,n,o){return u(),c("svg",Do,ko)}],["__file","full-screen.vue"]]),_o={name:"InfoFilled"},zo={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Eo=[d("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1)];var Lo=jn(_o,[["render",function(e,t,l,a,n,o){return u(),c("svg",zo,Eo)}],["__file","info-filled.vue"]]),jo={name:"MoonNight"},Oo={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ao=[d("path",{fill:"currentColor",d:"M384 512a448 448 0 0 1 215.872-383.296A384 384 0 0 0 213.76 640h188.8A448.256 448.256 0 0 1 384 512zM171.136 704a448 448 0 0 1 636.992-575.296A384 384 0 0 0 499.328 704h-328.32z"},null,-1),d("path",{fill:"currentColor",d:"M32 640h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32zm128 128h384a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm160 127.68 224 .256a32 32 0 0 1 32 32V928a32 32 0 0 1-32 32l-224-.384a32 32 0 0 1-32-32v-.064a32 32 0 0 1 32-32z"},null,-1)];var To=jn(jo,[["render",function(e,t,l,a,n,o){return u(),c("svg",Oo,Ao)}],["__file","moon-night.vue"]]),Vo={name:"Picture"},Ho={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},No=[d("path",{fill:"currentColor",d:"M160 160v704h704V160H160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32z"},null,-1),d("path",{fill:"currentColor",d:"M384 288q64 0 64 64t-64 64q-64 0-64-64t64-64zM185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952L185.408 876.992z"},null,-1)];var Po=jn(Vo,[["render",function(e,t,l,a,n,o){return u(),c("svg",Ho,No)}],["__file","picture.vue"]]),Bo={name:"Plus"},Io={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ro=[d("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"},null,-1)];var Fo=jn(Bo,[["render",function(e,t,l,a,n,o){return u(),c("svg",Io,Ro)}],["__file","plus.vue"]]),Wo={name:"Refresh"},Yo={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},$o=[d("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"},null,-1)];var Uo=jn(Wo,[["render",function(e,t,l,a,n,o){return u(),c("svg",Yo,$o)}],["__file","refresh.vue"]]),Xo={name:"Right"},qo={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ko=[d("path",{fill:"currentColor",d:"M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312L754.752 480z"},null,-1)];var Go=jn(Xo,[["render",function(e,t,l,a,n,o){return u(),c("svg",qo,Ko)}],["__file","right.vue"]]),Jo={name:"Search"},Zo={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Qo=[d("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704z"},null,-1)];var er=jn(Jo,[["render",function(e,t,l,a,n,o){return u(),c("svg",Zo,Qo)}],["__file","search.vue"]]),tr={name:"Setting"},lr={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ar=[d("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384zm0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256z"},null,-1)];var nr=jn(tr,[["render",function(e,t,l,a,n,o){return u(),c("svg",lr,ar)}],["__file","setting.vue"]]),or={name:"Sunny"},rr={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ir=[d("path",{fill:"currentColor",d:"M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512zm0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32zM195.2 195.2a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 1 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm543.104 543.104a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 0-45.248zM64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32zm768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32zM195.2 828.8a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248L240.448 828.8a32 32 0 0 1-45.248 0zm543.104-543.104a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248l-45.248 45.248a32 32 0 0 1-45.248 0z"},null,-1)];var sr=jn(or,[["render",function(e,t,l,a,n,o){return u(),c("svg",rr,ir)}],["__file","sunny.vue"]]),ur={name:"Tools"},cr={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},dr=[d("path",{fill:"currentColor",d:"M764.416 254.72a351.68 351.68 0 0 1 86.336 149.184H960v192.064H850.752a351.68 351.68 0 0 1-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 0 1-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.68 351.68 0 0 1-86.336-149.312H64v-192h109.248a351.68 351.68 0 0 1 86.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 0 1 172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 1 0-384 0 192 192 0 0 0 384 0z"},null,-1)];var pr=jn(ur,[["render",function(e,t,l,a,n,o){return u(),c("svg",cr,dr)}],["__file","tools.vue"]]),hr={name:"View"},fr={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},vr=[d("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1)];var mr=jn(hr,[["render",function(e,t,l,a,n,o){return u(),c("svg",fr,vr)}],["__file","view.vue"]]),gr={name:"Warning"},br={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},yr=[d("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768zm48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0zm-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32z"},null,-1)];var xr=jn(gr,[["render",function(e,t,l,a,n,o){return u(),c("svg",br,yr)}],["__file","warning.vue"]]),wr=r({setup(){},render(){const e=t("__slots__",{}),l=t("__ns__",{}),a=t("options",{}),n=t("updateOptions",null),o=p({...a.setting}),r=()=>{const e={...a,setting:{...o}};n(e)},s=e=>{if(!e)return E({type:"warning",message:"主题颜色不能为空"}),!1;o.themeColor=e,mn("--el-color-primary",e),r()},u=()=>{const e=document.documentElement;o.isDark?e.setAttribute("data-theme","dark"):e.setAttribute("data-theme",""),r()},c=(e,t,l)=>{o[t]=e,vn(l,e),r()},d=[{type:"defaults",text:"默认"},{type:"classic",text:"经典"},{type:"transverse",text:"横向"},{type:"columns",text:"分栏"}];return i(j,null,{default:()=>[i(O,{"border-style":"dashed"},{default:()=>[h("全局主题")]}),i("div",{class:l.b("config-bar-item")},[i("span",{class:l.be("config-bar-item","label")},[h("主题颜色")]),i("div",{class:l.be("config-bar-item","value")},[i(A,{modelValue:o.themeColor,"onUpdate:modelValue":e=>o.themeColor=e,predefine:["#409eff","#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","#FB07A0"],onChange:s},null)])]),i("div",{class:l.b("config-bar-item")},[i("span",{class:l.be("config-bar-item","label")},[h("暗黑模式")]),i("div",{class:l.be("config-bar-item","value")},[i(T,{modelValue:o.isDark,"onUpdate:modelValue":e=>o.isDark=e,"inline-prompt":!0,size:"large","active-icon":To,"inactive-icon":sr,"active-color":"#1f1f1f","inactive-color":"#dcdfe6",onChange:u},null)])]),i("div",{class:l.b("config-bar-item")},[i("span",{class:l.be("config-bar-item","label")},[h("顶栏背景颜色")]),i("div",{class:l.be("config-bar-item","value")},[i(A,{modelValue:o.headerBarColor,"onUpdate:modelValue":e=>o.headerBarColor=e,predefine:["#282c34","#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","#FB07A0"],onChange:e=>c(e,"headerBarColor","--next-layout-bg-color")},null)])]),i("div",{class:l.b("config-bar-item")},[i("span",{class:l.be("config-bar-item","label")},[h("顶栏字体颜色")]),i("div",{class:l.be("config-bar-item","value")},[i(A,{modelValue:o.headerBarFontColor,"onUpdate:modelValue":e=>o.headerBarFontColor=e,predefine:["#282c34","#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","#FB07A0"],onChange:e=>c(e,"headerBarFontColor","--next-layout-font-color")},null)])]),i("div",{class:l.b("config-bar-item")},[i("span",{class:l.be("config-bar-item","label")},[h("顶栏背景渐变")]),i("div",{class:l.be("config-bar-item","value")},[i(f("el-switch"),{modelValue:o.isHeaderBarColorGradual,"onUpdate:modelValue":e=>o.isHeaderBarColorGradual=e,onChange:r},null)])]),i(O,{"border-style":"dashed"},{default:()=>[h("布局方式")]}),i("ul",{class:l.b("config-bar-layout")},[d.map((e=>i("li",{class:[l.be("config-bar-layout",e.type),l.is("active",o.layout===e.type)],onClick:t=>((e,t)=>{e.stopPropagation(),o.layout=t.type,r()})(t,e)},[i("div",{class:"layout-wrap"},[i("div",{class:"layout-box"},[i("p",{class:"layout-text"},[e.text])])]),i("aside",null,null)])))]),i("div",{class:l.b("config-bar-item"),style:{"margin-top":"20px"}},[i("span",{class:l.be("config-bar-item","label")},[h("是否显示标签栏")]),i("div",{class:l.be("config-bar-item","value")},[i(T,{modelValue:a.showTabs,"onUpdate:modelValue":e=>a.showTabs=e},null)])]),e.setting?.()]})}});var Cr=r({setup(){const e=t(cn,l()),n=t("options",{}),{t:o}=dn(),{toggle:r,isFullscreen:i}=xe(),s=l(a((()=>n.language)).value),u=l(!1);return{locale:e,config:n,t:o,toggle:r,isFullscreen:i,language:s,settingDrawer:u}},render(){const e=t("__ns__",{}),l=this.config,a=t("__emit__",{}),n=this.$slots,o=this.t,r=this.isFullscreen,u=l.profile,c=l.userDropdown,d=l.languageDropdown,p=()=>{this.settingDrawer=!1};return i(s,null,[i("ul",{class:e.b("header-tools")},[n[kn]?.(),i("li",null,[i(V,{"show-timeout":70,"hide-timeout":50,trigger:"click",onCommand:e=>{this.language=e,a("changeLanguage",e),l.onChangeLanguage&&l.onChangeLanguage(e)}},{default:()=>i("div",null,[i(H,{size:16},{default:()=>[i("svg",{class:"icon",viewBox:"0 0 1070 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1855",width:"128",height:"128"},[i("path",{d:"M232.58156522 358.13286957C244.86956522 394.4626087 265.17147826 425.984 293.48730435 453.76556522c24.04173913-26.17878261 42.2066087-58.23443478 53.96034782-95.63269565H232.58156522z","p-id":"1856"},null),i("path",{d:"M981.61530435 143.36h-448.77913044L507.19165217 6.05495652h-416.72347826c-45.94643478 0-83.34469565 37.39826087-83.34469565 83.34469565v708.42991305c0 45.94643478 37.39826087 83.34469565 83.34469565 83.34469565h379.85947826l-30.45286956 137.30504348h541.74052174c45.94643478 0 83.34469565-37.39826087 83.34469565-83.34469565V226.70469565c0-45.94643478-37.39826087-83.34469565-83.34469565-83.34469565zM415.83304348 564.35756522c-49.152-18.16486957-89.75582609-41.13808696-122.34573913-67.85113044-34.19269565 30.45286957-76.93356522 52.89182609-126.61982609 66.7826087l-17.09634783-28.31582609c48.61773913-12.82226087 89.22156522-32.05565217 121.2772174-59.30295652-33.12417391-33.65843478-56.0973913-72.65947826-68.91965218-117.00313044h-46.48069565v-32.05565217H276.92521739c-7.47965217-13.89078261-17.09634783-27.24730435-28.31582609-40.06956522l32.05565218-11.75373913c11.21947826 14.42504348 21.37043478 31.5213913 30.45286956 51.28904348h115.9346087v32.05565218h-46.48069565c-14.95930435 45.94643478-36.32973913 84.41321739-64.64556522 115.40034782 31.5213913 25.11026087 71.05669565 45.94643478 117.5373913 63.04278261l-17.63060869 27.78156522z m607.45460869 370.24278261c0 22.97321739-18.69913043 41.67234783-41.67234782 41.67234782H492.23234783l20.83617391-95.63269565h156.53843478l-89.22156522-497.39686957-0.53426087 2.67130435-3.73982608-19.76765217 1.06852174 0.53426087-32.58991305-181.64869565H982.14956522c22.97321739 0 41.67234783 18.69913043 41.67234782 41.67234782v707.89565218z","p-id":"1857"},null),i("path",{d:"M684.56626087 541.38434783h114.86608696v-30.45286957h-114.86608696V450.02573913h122.34573913v-30.45286956h-158.14121739v219.04695652h162.94956522V608.16695652h-127.15408696v-66.78260869z m239.88313043-65.71408696c-9.61669565 0-18.16486957 1.60278261-26.1787826 5.87686956-7.47965217 3.73982609-14.95930435 9.61669565-20.83617392 17.09634783V479.94434783h-34.72695652v158.67547826h34.72695652v-95.63269566c1.06852174-12.82226087 5.3426087-22.43895652 12.82226087-29.38434782 6.41113043-5.87686957 13.89078261-9.08243478 22.43895652-9.08243478 24.04173913 0 35.79547826 12.82226087 35.79547826 39.00104347v94.56417392h34.72695653v-97.76973913c1.06852174-43.27513043-19.2333913-64.64556522-58.76869566-64.64556522z","p-id":"1858"},null)])]})]),dropdown:()=>{let e;return i(N,null,"function"==typeof(t=e=d.map((e=>i(P,{command:e.value,disabled:this.language===e.value},{default:()=>[e.label]}))))||"[object Object]"===Object.prototype.toString.call(t)&&!m(t)?e:{default:()=>[e]});var t}})]),i("li",null,[i("span",{style:{display:"inline-block",lineHeight:1},onClick:this.toggle},[i(H,{size:16},{default:()=>[r?i("svg",{class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2676",width:"128",height:"128"},[i("path",{d:"M749.248 704H864a32 32 0 1 0 0-64H672a32 32 0 0 0-32 32v192a32 32 0 1 0 64 0v-114.752l137.36 137.36a32 32 0 1 0 45.232-45.264L749.248 704zM320 749.248V864a32 32 0 1 0 64 0V672a32 32 0 0 0-32-32H160a32 32 0 1 0 0 64h114.752l-137.36 137.36a32 32 0 1 0 45.264 45.232L320 749.248zM749.248 320H864a32 32 0 1 1 0 64H672a32 32 0 0 1-32-32V160a32 32 0 1 1 64 0v114.752l137.36-137.36a32 32 0 1 1 45.232 45.264L749.248 320zM320 274.752V160a32 32 0 1 1 64 0v192a32 32 0 0 1-32 32H160a32 32 0 1 1 0-64h114.752l-137.36-137.36a32 32 0 1 1 45.264-45.232L320 274.752z","p-id":"2677"},null)]):i("svg",{class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2522",width:"128",height:"128"},[i("path",{d:"M237.248 192H352a32 32 0 1 0 0-64H160a32 32 0 0 0-32 32v192a32 32 0 1 0 64 0v-114.752l137.36 137.36a32 32 0 1 0 45.232-45.264L237.248 192zM832 237.248V352a32 32 0 1 0 64 0V160a32 32 0 0 0-32-32H672a32 32 0 1 0 0 64h114.752l-137.36 137.36a32 32 0 1 0 45.264 45.232L832 237.248zM237.248 832H352a32 32 0 1 1 0 64H160a32 32 0 0 1-32-32V672a32 32 0 1 1 64 0v114.752l137.36-137.36a32 32 0 1 1 45.232 45.264L237.248 832zM832 786.752V672a32 32 0 1 1 64 0v192a32 32 0 0 1-32 32H672a32 32 0 1 1 0-64h114.752l-137.36-137.36a32 32 0 1 1 45.264-45.232L832 786.752z","p-id":"2523"},null)])]})])]),n[Mn]?.(),i("li",null,[i(V,{"show-timeout":70,"hide-timeout":80,"popper-class":e.be("header-tools","userDropdown"),onCommand:e=>{a("changeUserDropdown",e),l.onChangeUserDropdown&&l.onChangeUserDropdown(e)}},{default:()=>i("span",{class:e.be("header-tools","user")},[u?i("img",{class:"user-photo",src:u},null):null,i("span",null,[l.userName]),i(H,{class:"el-icon--right"},{default:()=>[i(Vn,null,null)]})]),dropdown:()=>i(N,null,{default:()=>[c?.map((e=>i(P,{command:e.value,divided:!!e.divided},{default:()=>[e.svg?i("span",{innerHTML:e.svg,class:"item-svg"},null):null,e.iconfont?i("i",{class:e.iconfont},null):null,o(e.label)]})))]})})]),i("li",null,[i("span",{style:{display:"inline-block",lineHeight:1},onClick:()=>{this.settingDrawer=!0}},[i(H,{size:16},{default:()=>[i(nr,null,null)]})])])]),i(v,{to:"body"},{default:()=>[i(B,{modelValue:this.settingDrawer,"onUpdate:modelValue":e=>this.settingDrawer=e,title:this.t("next.layout.systemSetting"),direction:"rtl",size:"380px",class:e.be("drawer","setting"),"destroy-on-close":!0,beforeClose:p},{default:()=>[i(wr,null,null)]})]})])}});const{getLightColor:Sr}=hn();var Dr=r({setup:()=>({ns:t("ns",{})}),render(){const e=this.$slots,l=this.ns,n=t("options",{}),o=a((()=>{const{isHeaderBarColorGradual:e,headerBarColor:t}=n.setting;return e?{background:`linear-gradient(to bottom , ${t}, ${Sr(t,.5)})`}:""}));return i("header",{class:l.b("header"),style:o.value},[i(Ln,null,null),i("div",{class:l.bf("header","right")},[i(Cr,null,{default:()=>[e[kn]?.(),e[Mn]?.()]})])])}});function kr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mr={exports:{}};(Mr.exports={}).forEach=function(e,t){for(var l=0;l<e.length;l++){var a=t(e[l]);if(a)return a}};var _r=Mr.exports,zr={exports:{}},Er=zr.exports={};Er.isIE=function(e){return(-1!==(t=navigator.userAgent.toLowerCase()).indexOf("msie")||-1!==t.indexOf("trident")||-1!==t.indexOf(" edge/"))&&(!e||e===function(){var e=3,t=document.createElement("div"),l=t.getElementsByTagName("i");do{t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e"}while(l[0]);return e>4?e:undefined}());var t},Er.isLegacyOpera=function(){return!!window.opera};var Lr=zr.exports,jr={exports:{}};(jr.exports={}).getOption=function(e,t,l){var a=e[t];if(null==a&&void 0!==l)return l;return a};var Or=jr.exports;function Ar(){var e={},t=0,l=0,a=0;return{add:function(n,o){o||(o=n,n=0),n>l?l=n:n<a&&(a=n),e[n]||(e[n]=[]),e[n].push(o),t++},process:function(){for(var t=a;t<=l;t++)for(var n=e[t],o=0;o<n.length;o++){(0,n[o])()}},size:function(){return t}}}var Tr="_erd";function Vr(e){return e[Tr]}var Hr={initState:function(e){return e[Tr]={},Vr(e)},getState:Vr,cleanState:function(e){delete e[Tr]}},Nr=Lr,Pr=_r.forEach,Br=_r.forEach,Ir=function(e){var t=e.stateHandler.getState;return{isDetectable:function(e){var l=t(e);return l&&!!l.isDetectable},markAsDetectable:function(e){t(e).isDetectable=!0},isBusy:function(e){return!!t(e).busy},markBusy:function(e,l){t(e).busy=!!l}}},Rr=function(e){var t={};function l(l){var a=e.get(l);return void 0===a?[]:t[a]||[]}return{get:l,add:function(l,a){var n=e.get(l);t[n]||(t[n]=[]),t[n].push(a)},removeListener:function(e,t){for(var a=l(e),n=0,o=a.length;n<o;++n)if(a[n]===t){a.splice(n,1);break}},removeAllListeners:function(e){var t=l(e);t&&(t.length=0)}}},Fr=function(){var e=1;return{generate:function(){return e++}}},Wr=function(e){var t=e.idGenerator,l=e.stateHandler.getState;return{get:function(e){var t=l(e);return t&&void 0!==t.id?t.id:null},set:function(e){var a=l(e);if(!a)throw new Error("setId required the element to have a resize detection state.");var n=t.generate();return a.id=n,n}}},Yr=function(e){function t(){}var l={log:t,warn:t,error:t};if(!e&&window.console){var a=function(e,t){e[t]=function(){var e=console[t];if(e.apply)e.apply(console,arguments);else for(var l=0;l<arguments.length;l++)e(arguments[l])}};a(l,"log"),a(l,"warn"),a(l,"error")}return l},$r=Lr,Ur=function(e){var t=(e=e||{}).reporter,l=Or.getOption(e,"async",!0),a=Or.getOption(e,"auto",!0);a&&!l&&(t&&t.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),l=!0);var n,o=Ar(),r=!1;function i(){for(r=!0;o.size();){var e=o;o=Ar(),e.process()}r=!1}function s(){var e;e=i,n=setTimeout(e,0)}return{add:function(e,t){!r&&a&&l&&0===o.size()&&s(),o.add(e,t)},force:function(e){r||(void 0===e&&(e=l),n&&(clearTimeout(n),n=null),e?s():i())}}},Xr=Hr,qr=function(e){var t=(e=e||{}).reporter,l=e.batchProcessor,a=e.stateHandler.getState;if(!t)throw new Error("Missing required dependency: reporter.");function n(t){var l=e.important?" !important; ":"; ";return(t.join(l)+l).trim()}function o(e){return a(e).object}return{makeDetectable:function(e,o,r){r||(r=o,o=e,e=null),(e=e||{}).debug,Nr.isIE(8)?r(o):function(o,r){var i=n(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),s=!1,u=window.getComputedStyle(o),c=o.offsetWidth,d=o.offsetHeight;function p(){function l(){if("static"===u.position){o.style.setProperty("position","relative",e.important?"important":"");var l=function(t,l,a,n){var o=a[n];"auto"!==o&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(o)&&(t.warn("An element that is positioned static has style."+n+"="+o+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+n+" will be set to 0. Element: ",l),l.style.setProperty(n,"0",e.important?"important":""))};l(t,o,u,"top"),l(t,o,u,"right"),l(t,o,u,"bottom"),l(t,o,u,"left")}}""!==u.position&&(l(),s=!0);var n=document.createElement("object");n.style.cssText=i,n.tabIndex=-1,n.type="text/html",n.setAttribute("aria-hidden","true"),n.onload=function(){s||l(),function e(t,l){if(!t.contentDocument){var n=a(t);return n.checkForObjectDocumentTimeoutId&&window.clearTimeout(n.checkForObjectDocumentTimeoutId),void(n.checkForObjectDocumentTimeoutId=setTimeout((function(){n.checkForObjectDocumentTimeoutId=0,e(t,l)}),100))}l(t.contentDocument)}(this,(function(e){r(o)}))},Nr.isIE()||(n.data="about:blank"),a(o)&&(o.appendChild(n),a(o).object=n,Nr.isIE()&&(n.data="about:blank"))}a(o).startSize={width:c,height:d},l?l.add(p):p()}(o,r)},addListener:function(e,t){function l(){t(e)}if(Nr.isIE(8))a(e).object={proxy:l},e.attachEvent("onresize",l);else{var n=o(e);if(!n)throw new Error("Element is not detectable by this strategy.");n.contentDocument.defaultView.addEventListener("resize",l)}},uninstall:function(e){if(a(e)){var t=o(e);t&&(Nr.isIE(8)?e.detachEvent("onresize",t.proxy):e.removeChild(t),a(e).checkForObjectDocumentTimeoutId&&window.clearTimeout(a(e).checkForObjectDocumentTimeoutId),delete a(e).object)}}}},Kr=function(e){var t=(e=e||{}).reporter,l=e.batchProcessor,a=e.stateHandler.getState;e.stateHandler.hasState;var n=e.idHandler;if(!l)throw new Error("Missing required dependency: batchProcessor");if(!t)throw new Error("Missing required dependency: reporter.");var o=function(){var e=500,t=500,l=document.createElement("div");l.style.cssText=s(["position: absolute","width: 1000px","height: 1000px","visibility: hidden","margin: 0","padding: 0"]);var a=document.createElement("div");a.style.cssText=s(["position: absolute","width: 500px","height: 500px","overflow: scroll","visibility: none","top: -1500px","left: -1500px","visibility: hidden","margin: 0","padding: 0"]),a.appendChild(l),document.body.insertBefore(a,document.body.firstChild);var n=e-a.clientWidth,o=t-a.clientHeight;return document.body.removeChild(a),{width:n,height:o}}(),r="erd_scroll_detection_container";function i(e){!function(e,t,l){function a(l,a){a=a||function(t){e.head.appendChild(t)};var n=e.createElement("style");return n.innerHTML=l,n.id=t,a(n),n}if(!e.getElementById(t)){var n=l+"_animation",o=l+"_animation_active",r="/* Created by the element-resize-detector library. */\n";r+="."+l+" > div::-webkit-scrollbar { "+s(["display: none"])+" }\n\n",r+="."+o+" { "+s(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+n,"animation-name: "+n])+" }\n",r+="@-webkit-keyframes "+n+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",a(r+="@keyframes "+n+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}(e,"erd_scroll_detection_scrollbar_style",r)}function s(t){var l=e.important?" !important; ":"; ";return(t.join(l)+l).trim()}function u(e,l,a){if(e.addEventListener)e.addEventListener(l,a);else{if(!e.attachEvent)return t.error("[scroll] Don't know how to add event listeners.");e.attachEvent("on"+l,a)}}function c(e,l,a){if(e.removeEventListener)e.removeEventListener(l,a);else{if(!e.detachEvent)return t.error("[scroll] Don't know how to remove event listeners.");e.detachEvent("on"+l,a)}}function d(e){return a(e).container.childNodes[0].childNodes[0].childNodes[0]}function p(e){return a(e).container.childNodes[0].childNodes[0].childNodes[1]}return i(window.document),{makeDetectable:function(e,i,c){function h(){if(e.debug){var l=Array.prototype.slice.call(arguments);if(l.unshift(n.get(i),"Scroll: "),t.log.apply)t.log.apply(null,l);else for(var a=0;a<l.length;a++)t.log(l[a])}}function f(e){var t=a(e).container.childNodes[0],l=window.getComputedStyle(t);return!l.width||-1===l.width.indexOf("px")}function v(){var e=window.getComputedStyle(i),t={};return t.position=e.position,t.width=i.offsetWidth,t.height=i.offsetHeight,t.top=e.top,t.right=e.right,t.bottom=e.bottom,t.left=e.left,t.widthCSS=e.width,t.heightCSS=e.height,t}function m(){if(h("storeStyle invoked."),a(i)){var e=v();a(i).style=e}else h("Aborting because element has been uninstalled")}function g(e,t,l){a(e).lastWidth=t,a(e).lastHeight=l}function b(){return 2*o.width+1}function y(){return 2*o.height+1}function x(e){return e+10+b()}function w(e){return e+10+y()}function C(e,t,l){var a=d(e),n=p(e),o=x(t),r=w(l),i=function(e){return 2*e+b()}(t),s=function(e){return 2*e+y()}(l);a.scrollLeft=o,a.scrollTop=r,n.scrollLeft=i,n.scrollTop=s}function S(){var e=a(i).container;if(!e){(e=document.createElement("div")).className=r,e.style.cssText=s(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),a(i).container=e,function(e){e.className+=" "+r+"_animation_active"}(e),i.appendChild(e);var t=function(){a(i).onRendered&&a(i).onRendered()};u(e,"animationstart",t),a(i).onAnimationStart=t}return e}function D(){if(h("Injecting elements"),a(i)){!function(){var l=a(i).style;if("static"===l.position){i.style.setProperty("position","relative",e.important?"important":"");var n=function(e,t,l,a){var n=l[a];"auto"!==n&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(n)&&(e.warn("An element that is positioned static has style."+a+"="+n+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+a+" will be set to 0. Element: ",t),t.style[a]=0)};n(t,i,l,"top"),n(t,i,l,"right"),n(t,i,l,"bottom"),n(t,i,l,"left")}}();var l=a(i).container;l||(l=S());var n,c,d,p,f=o.width,v=o.height,m=s(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),g=s(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(["left: "+(n=(n=-(1+f))?n+"px":"0"),"top: "+(c=(c=-(1+v))?c+"px":"0"),"right: "+(p=(p=-f)?p+"px":"0"),"bottom: "+(d=(d=-v)?d+"px":"0")])),b=s(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),y=s(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),x=s(["position: absolute","left: 0","top: 0"]),w=s(["position: absolute","width: 200%","height: 200%"]),C=document.createElement("div"),D=document.createElement("div"),k=document.createElement("div"),M=document.createElement("div"),_=document.createElement("div"),z=document.createElement("div");C.dir="ltr",C.style.cssText=m,C.className=r,D.className=r,D.style.cssText=g,k.style.cssText=b,M.style.cssText=x,_.style.cssText=y,z.style.cssText=w,k.appendChild(M),_.appendChild(z),D.appendChild(k),D.appendChild(_),C.appendChild(D),l.appendChild(C),u(k,"scroll",E),u(_,"scroll",L),a(i).onExpandScroll=E,a(i).onShrinkScroll=L}else h("Aborting because element has been uninstalled");function E(){var e=a(i);e&&e.onExpand?e.onExpand():h("Aborting expand scroll handler: element has been uninstalled")}function L(){var e=a(i);e&&e.onShrink?e.onShrink():h("Aborting shrink scroll handler: element has been uninstalled")}}function k(){function o(t,l,a){var n=function(e){return d(e).childNodes[0]}(t),o=x(l),r=w(a);n.style.setProperty("width",o+"px",e.important?"important":""),n.style.setProperty("height",r+"px",e.important?"important":"")}function r(r){var u=i.offsetWidth,c=i.offsetHeight,d=u!==a(i).lastWidth||c!==a(i).lastHeight;h("Storing current size",u,c),g(i,u,c),l.add(0,(function(){if(d)if(a(i))if(s()){if(e.debug){var l=i.offsetWidth,r=i.offsetHeight;l===u&&r===c||t.warn(n.get(i),"Scroll: Size changed before updating detector elements.")}o(i,u,c)}else h("Aborting because element container has not been initialized");else h("Aborting because element has been uninstalled")})),l.add(1,(function(){a(i)?s()?C(i,u,c):h("Aborting because element container has not been initialized"):h("Aborting because element has been uninstalled")})),d&&r&&l.add(2,(function(){a(i)?s()?r():h("Aborting because element container has not been initialized"):h("Aborting because element has been uninstalled")}))}function s(){return!!a(i).container}function u(){h("notifyListenersIfNeeded invoked");var e=a(i);return void 0===a(i).lastNotifiedWidth&&e.lastWidth===e.startSize.width&&e.lastHeight===e.startSize.height?h("Not notifying: Size is the same as the start size, and there has been no notification yet."):e.lastWidth===e.lastNotifiedWidth&&e.lastHeight===e.lastNotifiedHeight?h("Not notifying: Size already notified"):(h("Current size not notified, notifying..."),e.lastNotifiedWidth=e.lastWidth,e.lastNotifiedHeight=e.lastHeight,void Pr(a(i).listeners,(function(e){e(i)})))}function c(){h("Scroll detected."),f(i)?h("Scroll event fired while unrendered. Ignoring..."):r(u)}if(h("registerListenersAndPositionElements invoked."),a(i)){a(i).onRendered=function(){if(h("startanimation triggered."),f(i))h("Ignoring since element is still unrendered...");else{h("Element rendered.");var e=d(i),t=p(i);0!==e.scrollLeft&&0!==e.scrollTop&&0!==t.scrollLeft&&0!==t.scrollTop||(h("Scrollbars out of sync. Updating detector elements..."),r(u))}},a(i).onExpand=c,a(i).onShrink=c;var v=a(i).style;o(i,v.width,v.height)}else h("Aborting because element has been uninstalled")}function M(){if(h("finalizeDomMutation invoked."),a(i)){var e=a(i).style;g(i,e.width,e.height),C(i,e.width,e.height)}else h("Aborting because element has been uninstalled")}function _(){c(i)}function z(){var e;h("Installing..."),a(i).listeners=[],e=v(),a(i).startSize={width:e.width,height:e.height},h("Element start size",a(i).startSize),l.add(0,m),l.add(1,D),l.add(2,k),l.add(3,M),l.add(4,_)}c||(c=i,i=e,e=null),e=e||{},h("Making detectable..."),!function(e){return!function(e){var t=e.getRootNode&&e.getRootNode().contains(e);return e===e.ownerDocument.body||e.ownerDocument.body.contains(e)||t}(e)||null===window.getComputedStyle(e)}(i)?z():(h("Element is detached"),S(),h("Waiting until element is attached..."),a(i).onRendered=function(){h("Element is now attached"),z()})},addListener:function(e,t){if(!a(e).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.");a(e).listeners.push(t)},uninstall:function(e){var t=a(e);t&&(t.onExpandScroll&&c(d(e),"scroll",t.onExpandScroll),t.onShrinkScroll&&c(p(e),"scroll",t.onShrinkScroll),t.onAnimationStart&&c(t.container,"animationstart",t.onAnimationStart),t.container&&e.removeChild(t.container))},initDocument:i}};function Gr(e){return Array.isArray(e)||void 0!==e.length}function Jr(e){if(Array.isArray(e))return e;var t=[];return Br(e,(function(e){t.push(e)})),t}function Zr(e){return e&&1===e.nodeType}var Qr=function(e){var t;if((e=e||{}).idHandler)t={get:function(t){return e.idHandler.get(t,!0)},set:e.idHandler.set};else{var l=Fr(),a=Wr({idGenerator:l,stateHandler:Xr});t=a}var n=e.reporter;n||(n=Yr(!1===n));var o=ei(e,"batchProcessor",Ur({reporter:n})),r={};r.callOnAdd=!!ei(e,"callOnAdd",!0),r.debug=!!ei(e,"debug",!1);var i,s=Rr(t),u=Ir({stateHandler:Xr}),c=ei(e,"strategy","object"),d=ei(e,"important",!1),p={reporter:n,batchProcessor:o,stateHandler:Xr,idHandler:t,important:d};if("scroll"===c&&($r.isLegacyOpera()?(n.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),c="object"):$r.isIE(9)&&(n.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),c="object")),"scroll"===c)i=Kr(p);else{if("object"!==c)throw new Error("Invalid strategy name: "+c);i=qr(p)}var h={};return{listenTo:function(e,l,a){function o(e){var t=s.get(e);Br(t,(function(t){t(e)}))}function c(e,t,l){s.add(t,l),e&&l(t)}if(a||(a=l,l=e,e={}),!l)throw new Error("At least one element required.");if(!a)throw new Error("Listener required.");if(Zr(l))l=[l];else{if(!Gr(l))return n.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");l=Jr(l)}var p=0,f=ei(e,"callOnAdd",r.callOnAdd),v=ei(e,"onReady",(function(){})),m=ei(e,"debug",r.debug);Br(l,(function(e){Xr.getState(e)||(Xr.initState(e),t.set(e));var r=t.get(e);if(m&&n.log("Attaching listener to element",r,e),!u.isDetectable(e))return m&&n.log(r,"Not detectable."),u.isBusy(e)?(m&&n.log(r,"System busy making it detectable"),c(f,e,a),h[r]=h[r]||[],void h[r].push((function(){++p===l.length&&v()}))):(m&&n.log(r,"Making detectable..."),u.markBusy(e,!0),i.makeDetectable({debug:m,important:d},e,(function(e){if(m&&n.log(r,"onElementDetectable"),Xr.getState(e)){u.markAsDetectable(e),u.markBusy(e,!1),i.addListener(e,o),c(f,e,a);var t=Xr.getState(e);if(t&&t.startSize){var s=e.offsetWidth,d=e.offsetHeight;t.startSize.width===s&&t.startSize.height===d||o(e)}h[r]&&Br(h[r],(function(e){e()}))}else m&&n.log(r,"Element uninstalled before being detectable.");delete h[r],++p===l.length&&v()})));m&&n.log(r,"Already detecable, adding listener."),c(f,e,a),p++})),p===l.length&&v()},removeListener:s.removeListener,removeAllListeners:s.removeAllListeners,uninstall:function(e){if(!e)return n.error("At least one element is required.");if(Zr(e))e=[e];else{if(!Gr(e))return n.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");e=Jr(e)}Br(e,(function(e){s.removeAllListeners(e),i.uninstall(e),Xr.cleanState(e)}))},initDocument:function(e){i.initDocument&&i.initDocument(e)}}};function ei(e,t,l){var a=e[t];return null==a&&void 0!==l?l:a}var ti=kr(Qr);const li=(e,t)=>{const l=ti();let a=null;l.listenTo(e,(()=>{null!==a&&clearTimeout(a),a=setTimeout((()=>{t&&t(e),clearTimeout(a)}),200)})),g((()=>{l.removeListener(e,(()=>{}))}))},ai=e=>{if(null==e)return e;let t;if("object"==typeof e){t=Array.isArray(e)?[]:{};for(let l in e)"object"==typeof e[l]?t[l]=ai(e[l]):t[l]=e[l]}else t=e;return t},ni=(e,t)=>{const l=[],a=new Map;for(const n of e){const e=n[t];a.has(e)||(a.set(e,!0),l.push(n))}return l},oi=e=>null!=e&&("string"==typeof e?""!==e.trim():!1!==e),ri=(...e)=>{let t=null;for(let l=0;l<e.length;l++){const a=e[l];if(null!=a){t=a;break}}return t},ii=(e,t,l)=>(Object.defineProperty(e,l,{get:()=>t[l]}),{target:e,source:t});var si=r({props:{meta:{type:Object,default:()=>({})}},setup(e){const l=t("ns",{}),{t:a}=dn(),n=e.meta;return()=>i(s,null,[i("span",{class:l.be("item","icon")},[n.icon?i("i",{class:n.icon},null):i("svg",{class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"19771",width:"32",height:"32"},[i("path",{d:"M512 958.8C265.6 958.8 65.2 758.4 65.2 512S265.6 65.2 512 65.2 958.8 265.6 958.8 512 758.4 958.8 512 958.8z m0-832c-212.4 0-385.2 172.8-385.2 385.2S299.6 897.2 512 897.2 897.2 724.4 897.2 512 724.4 126.8 512 126.8z","p-id":"19772"},null),i("path",{d:"M512 512m-169.5 0a169.5 169.5 0 1 0 339 0 169.5 169.5 0 1 0-339 0Z","p-id":"19773"},null)])]),i("span",{class:l.be("item","title")},[a(n.title)])])}});const ui=r({name:"NextMenuItem",props:{menuData:{type:Array,required:!0}},setup(e){const l=t("ns",{}),n=a((()=>e.menuData)).value;return()=>i(s,null,[i(s,null,[n.map((e=>e.children?.length?ri(e.meta?.isHide,!1)?null:i(R,{"popper-class":l.b("popper"),index:e.path||e.id,teleported:!0},{title:()=>i(si,{meta:e.meta},null),default:()=>i(ui,{menuData:e.children},null)}):ri(e.meta?.isHide,!1)?null:i(I,{index:e.path},{default:()=>[i(si,{meta:e.meta},null)]})))])])}}),ci=Le("menu");const di=Sn(r({name:"NextMenu",props:{className:{type:String,default:""},style:{type:Object,default:()=>({})},router:{type:Boolean,default:!0},mode:{type:String,values:["horizontal","vertical"],default:"horizontal"},menuTree:{type:Array,default:()=>[]}},setup(t){b("ns",ci);const a=e().appContext.config.globalProperties.$router,n=a.currentRoute?.value.fullPath,o=l(n);y((()=>a.currentRoute?.value),(e=>{o.value=e.fullPath}));return()=>i(s,null,[i(F,{class:[ci.b(),t.className],style:t.style,defaultActive:o.value,router:t.router,mode:t.mode,ellipsis:!0},{default:()=>[i(s,null,[t.menuTree.map((e=>e.children?.length?ri(e.meta?.isHide,!1)?null:i(R,{"popper-class":ci.b("popper"),index:e.path||e.id,teleported:!0},{title:()=>i(si,{meta:e.meta},null),default:()=>i(ui,{menuData:e.children},null)}):ri(e.meta?.isHide,!1)?null:i(I,{"popper-class":ci.b("popper"),index:e.path},{default:()=>[i(si,{meta:e.meta},null)]})))])]})])}}));var pi=r({setup:()=>({ns:t("ns",{})}),render(){const e=this.$slots,l=this.ns,a=t("options",{});return i("aside",{class:l.b("sidebar")},[i(j,null,{default:()=>[e[Dn]?e[Dn]():i(di,{mode:"vertical",menuTree:a.menuTree},null)]})])}});const hi=Le("layout-defaults");var fi=r({props:{},setup:()=>(b("ns",hi),{}),render(){const e=this.$slots,a=t("options",{}),n=t("__emit__",{});e.menu;const o=l(!!e.tabs);return void 0===e.tabs&&a.showTabs&&(o.value=!0),i(W,{class:hi.b()},{default:()=>[i(pi,null,null),i("div",{class:[hi.b("content")]},[i(Dr,null,null),a.showTabs?e.tabs?e.tabs?.():i(Vi,{tabs:a.tabs,activeTab:a.activeTab,onChange:(...e)=>n("tabsChange",...e),onSelect:(...e)=>n("tabsSelect",...e),onClose:(...e)=>n("tabsClose",...e)},null):null,i("main",{class:[hi.bf("main"),hi.is("layout-tabs",o.value)]},[e.default?.()])])]})}});const{getLightColor:vi}=hn();var mi=r({setup(e,{slots:l}){const n=t("ns",{}),o=t("options",{}),r=a((()=>{const{isHeaderBarColorGradual:e,headerBarColor:t}=o.setting;return e?{background:`linear-gradient(to bottom , ${t}, ${vi(t,.5)})`}:""}));return()=>i(s,null,[i("header",{class:n.b("header"),style:r.value},[i(Ln,null,null),i("div",{class:n.bf("header","menu")},[l[Dn]?l[Dn]():i(di,{menuTree:o.menuTree,router:o.menuRouter,mode:o.menuMode},null)]),i("div",{class:n.bf("header","right")},[i(Cr,null,{default:()=>[l[kn]?.(),l[Mn]?.()]})])])])}});const gi=Le("layout-transverse");var bi=r({props:{},setup:()=>(b("ns",gi),{}),render(){const e=this.$slots,a=t("options",{}),n=t("__emit__",{}),o={};e[Dn]&&(o[Dn]=()=>e[Dn]()),e[kn]&&(o[kn]=()=>e[kn]()),e[Mn]&&(o[Mn]=()=>e[Mn]());const r=l(!!e.tabs);return void 0===e.tabs&&a.showTabs&&(r.value=!0),i(s,null,[i(mi,null,(u=o,"function"==typeof u||"[object Object]"===Object.prototype.toString.call(u)&&!m(u)?o:{default:()=>[o]})),a.showTabs?e.tabs?e.tabs?.():i(Vi,{tabs:a.tabs,activeTab:a.activeTab,onChange:(...e)=>n("tabsChange",...e),onSelect:(...e)=>n("tabsSelect",...e),onClose:(...e)=>n("tabsClose",...e)},null):null,i("main",{class:[gi.b("main"),gi.is("layout-tabs",r.value)]},[e.default?.()])]);var u}});const{getLightColor:yi}=hn();var xi=r({setup(e,{slots:l}){const n=t("ns",{}),o=t("options",{}),r=a((()=>{const{isHeaderBarColorGradual:e,headerBarColor:t}=o.setting;return e?{background:`linear-gradient(to bottom , ${t}, ${yi(t,.5)})`}:""}));return()=>i(s,null,[i("header",{class:n.b("header"),style:r.value},[i(Ln,null,null),i("div",{class:n.bf("header","menu")},null),i("div",{class:n.bf("header","right")},[i(Cr,null,{default:()=>[l[kn]?.(),l[Mn]?.()]})])])])}}),wi=r({setup:()=>({ns:t("ns",{})}),render(){const e=this.$slots,l=this.ns,a=t("options",{});return i("aside",{class:l.b("sidebar")},[e[Dn]?e[Dn]():i(di,{mode:"vertical",menuTree:a.menuTree},null)])}});const Ci=Le("layout-columns");var Si=r({props:{},setup:()=>(b("ns",Ci),{}),render(){const e=this.$slots,a=t("options",{}),n=t("__emit__",{}),o={};e[Dn]&&(o[Dn]=()=>e[Dn]()),e[kn]&&(o[kn]=()=>e[kn]()),e[Mn]&&(o[Mn]=()=>e[Mn]());const r=l(!!e.tabs);return void 0===e.tabs&&a.showTabs&&(r.value=!0),i(W,{class:Ci.b()},{default:()=>{return[i(wi,null,null),i("div",{class:[Ci.b("content")]},[i(xi,null,(t=o,"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!m(t)?o:{default:()=>[o]})),a.showTabs?e.tabs?e.tabs?.():i(Vi,{tabs:a.tabs,activeTab:a.activeTab,onChange:(...e)=>n("tabsChange",...e),onSelect:(...e)=>n("tabsSelect",...e),onClose:(...e)=>n("tabsClose",...e)},null):null,i("main",{class:[Ci.bf("main"),Ci.is("layout-tabs",r.value)]},[e.default?.()])])];var t}})}});const{getLightColor:Di}=hn();var ki=r({setup(e,{slots:l}){const n=t("ns",{}),o=t("options",{}),r=a((()=>{const{isHeaderBarColorGradual:e,headerBarColor:t}=o.setting;return e?{background:`linear-gradient(to bottom , ${t}, ${Di(t,.5)})`}:""}));return()=>i(s,null,[i("header",{class:n.b("header"),style:r.value},[i(Ln,null,null),i("div",{class:n.bf("header","menu")},[l[Dn]?.()]),i("div",{class:n.bf("header","right")},[i(Cr,null,{default:()=>[l[kn]?.(),l[Mn]?.()]})])])])}}),Mi=r({setup:()=>({ns:t("ns",{})}),render(){const e=this.$slots,l=this.ns,a=t("options",{});return i("aside",{class:l.b("sidebar")},[i(j,null,{default:()=>[e[Dn]?e[Dn]():i(di,{mode:"vertical",menuTree:a.menuTree},null)]})])}});const _i=Le("layout-classic");var zi=r({props:{},setup:()=>(b("ns",_i),{ns:_i}),render(){const e=this.$slots,a=t("options",{}),n=t("__emit__",{});e.menu;const o=l(!!e.tabs);return void 0===e.tabs&&a.showTabs&&(o.value=!0),i(s,null,[i(ki,null,null),i("div",{class:[_i.b("content"),_i.is("layout-tabs",o.value)]},[i(Mi,null,null),i("div",{class:_i.b("container")},[a.showTabs?e.tabs?e.tabs?.():i(Vi,{tabs:a.tabs,activeTab:a.activeTab,onChange:(...e)=>n("tabsChange",...e),onSelect:(...e)=>n("tabsSelect",...e),onClose:(...e)=>n("tabsClose",...e)},null):null,i("main",{class:[_i.b("main")]},[e.default?.()])])])])}});const Ei=Le("layout"),Li={defaults:x(fi),transverse:x(bi),columns:x(Si),classic:x(zi)},ji=(e,t)=>{if(Array.isArray(e))return t};const Oi=Sn(r({name:"NextLayout",props:{className:{type:String,default:""},style:{type:Object,default:()=>({})},options:{type:Object,default:()=>({})}},emits:["changeLanguage","changeUserDropdown","changeOptions","tabsChange","tabsSelect","tabsClose"],setup(e,{slots:t,emit:a}){const n=l(Qa(_n,e.options,ji));b("options",n.value),b("__ns__",Ei),b("__emit__",a),b("__slots__",t);const o=e=>{n.value=Qa(n.value,e,ji),yn(n.value?.setting),a("changeOptions",n.value)};return b("updateOptions",o),y((()=>e.options),(e=>{o(e)}),{deep:!0,immediate:!0}),{options:n.value,updateOptions:o}},render(){const e=this.$props,t=this.$slots,a=this.options.setting?.layout||"transverse",n=l(Li[a]);w((()=>{n.value=Li[a],n.value||(n.value=Li.transverse)}));const o={};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(o[e]=()=>t[e]?.());return i("div",{class:[Ei.b(),e.className],style:e.style},[C(n.value,{},{...o})])}})),Ai=Le("tabs");var Ti=r({name:"NextTabs",props:{activeTab:{type:[String,Number],default:"/"},tabs:{type:Array,default:()=>[]}},emits:["change","select","close"],setup(t,{emit:n}){const{t:o}=dn(),r=e().appContext.config.globalProperties.$router,u=a((()=>r.currentRoute.value.fullPath)),c=a((()=>t.tabs)),d=c.value?.findIndex((e=>e.path===u.value));if(d<0){const e=c.value[0];e&&e.path&&r.replace({path:e.path})}const p=l(d),h=l(c.value),f=e=>{const t=u.value,l=h.value.length,a=h.value.findIndex((e=>e.path===t));switch(e){case"other":a>-1&&(p.value=1,h.value=[h.value[0],h.value[a]]);break;case"left":if(a>-1){const e=h.value.slice(a);e.unshift(h.value[0]),h.value=e,p.value=1}break;case"right":if(a>-1&&a<l-1){const e=h.value.slice(0,a+1);h.value=e}break;case"all":const e=h.value[0];p.value=0,h.value=[e],v(null,e,p.value)}n("change",p.value,h.value,e)},v=(e,t,l)=>{e?.stopPropagation(),p.value=l;let a={path:t.path,query:t.query,params:t.params};r.push(a),n("select",t,l)};y((()=>r.currentRoute?.value),(e=>{const{tagTitle:t}=e.query,l={name:e.name,title:t||e.meta?.title,path:e.path,meta:e.meta,params:e.params,query:e.query},a=h.value.findIndex((t=>t.path===e.path));a>-1?(p.value=a,h.value[a]=l):(p.value=h.value.length,h.value.push(l)),n("change",p.value,h.value,"add")}));const m=()=>i("nav",{class:Ai.b()},[i(j,null,{default:()=>[i("ul",{class:Ai.b("list")},[h.value.map(((e,t)=>e?i("li",{class:["tab-item",Ai.is("active",p.value===t)],onClick:l=>v(l,e,t)},[i("i",{class:["tab-icon",e.meta?.icon]},null),i("span",null,[o(e.title)]),e.meta?.isAffix||"/"===e.path?null:i("span",{onClick:l=>((e,t,l)=>{e.stopPropagation();const a=u.value;if(a===t.path){const e=h.value[l-1];r.push({path:e.path,query:e.query||{},params:e.params||{}}),n("close",e,h.value)}h.value.splice(l,1);const o=h.value.findIndex((e=>e.path===a))||0;p.value=o>-1?o:0,n("change",p.value,h.value,"close")})(l,e,t)},[i(H,{class:"tab-close"},{default:()=>[i(oo,null,null)]})])]):null))])]}),i(V,{"show-timeout":80,"hide-timeout":80,onCommand:f},{default:()=>i("span",{class:Ai.b("tab-more")},[i("i",{class:[Ai.be("tab-more","box"),Ai.be("tab-more","top")]},null),i("i",{class:[Ai.be("tab-more","box"),Ai.be("tab-more","bottom")]},null)]),dropdown:()=>i(N,null,{default:()=>[i(P,{command:"other"},{default:()=>[i(H,null,{default:()=>[i(oo,null,null)]}),i("span",null,[o("next.layout.tabsOther")])]}),i(P,{command:"left"},{default:()=>[i(H,null,{default:()=>[i(Jn,null,null)]}),i("span",null,[o("next.layout.tabsLeft")])]}),i(P,{command:"right"},{default:()=>[i(H,null,{default:()=>[i(Go,null,null)]}),i("span",null,[o("next.layout.tabsRight")])]}),i(P,{command:"all"},{default:()=>[i(H,null,{default:()=>[i(oo,null,null)]}),i("span",null,[o("next.layout.tabsAll")])]})]})})]);return()=>i(s,null,[m()])}});const Vi=Sn(Ti),Hi=Le("container");const Ni=Sn(r({name:"NextContainer",props:{className:{type:String,default:""},style:{type:Object,default:()=>({})},scrollbar:{type:Boolean,default:!1},padding:{type:[Boolean,String,Number],default:!0},card:{type:Boolean,default:!1}},setup(e,{slots:t}){const l=a((()=>{let t={};const l=e.padding;return"boolean"==typeof l?t=l?{padding:"15px"}:{}:"string"==typeof l?t={padding:l}:"number"==typeof l&&(t={padding:l+"px"}),t}));return()=>e.scrollbar?i(j,{class:[Hi.b(),e.className],style:e.style},{default:()=>[t.default?.()]}):i("div",{class:[Hi.b(),e.className],style:{...l.value,...e.style}},[e.card?i("div",{class:Hi.b("card")},[t.default?.()]):t.default?.()])}}));function Pi(e,t){return $a(e,t)}var Bi={className:{type:String,default:""},style:{type:Object,default:()=>({})},options:{type:Object,default:()=>({})},loading:{type:Boolean,default:!1},data:{type:Array,default:()=>[]},page:{type:Object,default:()=>({pageIndex:1,pageSize:10,total:0})},rowStyle:{type:Function,default:void 0},rowClassName:{type:Function,default:void 0},cellStyle:{type:Function,default:void 0},cellClassName:{type:Function,default:void 0},headerRowStyle:{type:Function,default:void 0},headerRowClassName:{type:Function,default:void 0},headerCellStyle:{type:Function,default:void 0},headerCellClassName:{type:Function,default:void 0},spanMethod:{type:Function,default:void 0}};const Ii=["menu-left-prefix","menu-left-suffix","menu-right-prefix","menu-right-suffix"],Ri=["operation-column-prefix","operation-column-suffix"];var Fi={initLoadData:!0,defaultContentHeight:300,fullscreenchangeContentHeight:!1,rowKey:"id",size:"default",fit:!0,stripe:!0,border:!0,index:!0,selection:!0,headerAlign:"center",cellAlign:"center",columnMinWidth:"100px",columns:[],showSearchForm:!0,showHeaderMenu:!0,showSearchLabel:!0,searchSpan:4,searchGutter:20,searchLabelWidth:"5em",searchColumnMinWidth:300,searchColumns:[],addBtn:!0,viewBtn:!0,delBtn:!0,editBtn:!0,batchDelBtn:!1,refreshBtn:!0,settingBtn:!0,operations:!0,operationsWidth:260,operationsHeaderAlign:"center",operationsColumnAlign:"center",operationsBtnPlain:!1,operationsBtnText:!0,operationsBtnSize:"small",addBtnText:"",isPagination:!0,dialogTitle:"",dialogWidth:"60%",dialogFullscreen:!1,closeOnClickModal:!1,formColumns:[],formLabelWidth:"5em",formSpan:12,formColumnMinWidth:350};const Wi="column-",Yi=e=>Wi+e,$i="search-",Ui=e=>$i+e,Xi="form-",qi=e=>Xi+e,Ki=Le("spin-loading");var Gi=r({name:"NextSpinLoading",props:{className:{type:String,default:""},style:{type:Object,default:()=>({})},loading:{type:Boolean,default:!1},tip:{type:String,default:""}},setup(e,{expose:t}){const{t:a}=dn(),n=l();return t({elementInstance:n}),{t:a,elementInstance:n}},render(){const e=this.t,t=this.$slots,l=this.$props,a=l.tip||e("next.loading");return i("div",{ref:"elementInstance",class:[Ki.b(),l.className],style:l.style},[t.default?.(),l.loading?i("div",{class:Ki.b("mask")},[i("span",{class:Ki.b("mask-dot")},[i("i",{class:Ki.be("mask","dot-item")},null),i("i",{class:Ki.be("mask","dot-item")},null),i("i",{class:Ki.be("mask","dot-item")},null),i("i",{class:Ki.be("mask","dot-item")},null)]),i("span",{class:Ki.be("mask","text")},[a])]):null])}}),Ji=r({name:"SearchColumn",props:{searchSpan:{type:Number,default:4},columns:{type:Array,default:()=>[]},formParams:{type:Object,default:()=>{}}},setup(e,{slots:a}){const r=t("options",{}),u=o(r)?n(r):r,{t:c}=dn(),d=t("ns",{}),h=l(e.columns);y((()=>e.columns),(()=>{h.value=e.columns}),{deep:!0});const f=p(e.formParams),v=e=>e.getTime()>Date.now(),m=[{text:c("next.date.oneWeekAge"),value:()=>{const e=new Date,t=new Date;return t.setTime(t.getTime()-6048e5),[t,e]}},{text:c("next.date.oneMonthAge"),value:()=>{const e=new Date,t=new Date;return t.setTime(t.getTime()-2592e6),[t,e]}},{text:c("next.date.threeMonthsAge"),value:()=>{const e=new Date,t=new Date;return t.setTime(t.getTime()-7776e6),[t,e]}},{text:c("next.date.oneYearAge"),value:()=>{const e=new Date,t=new Date;return t.setTime(t.getTime()-31536e6),[t,e]}},{text:c("next.date.threeYearsAge"),value:()=>{const e=new Date,t=new Date;return t.setTime(t.getTime()-94608e6),[t,e]}}],g=(e,t)=>{f.value[t]=e},b=e=>{const t=ri(e.searchDisabled,e.disabled,!1);if(a[Ui(e.prop)])return a[Ui(e.prop)]({column:e});if("input"===e.type||!e.type){const l=c("next.form.input")+(e.searchPlaceholder||e.searchLabel||e.label);return i(U,{modelValue:f[e.prop],"onUpdate:modelValue":t=>f[e.prop]=t,clearable:!0,disabled:t,placeholder:l},{prefix:e.prefix?()=>e.prefix(f,e):null,suffix:e.suffix?()=>e.suffix(f,e):null,prepend:e.prepend?()=>e.prepend(f,e):null,append:e.append?()=>e.append(f,e):null})}if("inputInteger"===e.type){const l=c("next.form.input")+(e.searchPlaceholder||e.searchLabel||e.label);return i(U,{modelValue:f[e.prop],"onUpdate:modelValue":t=>f[e.prop]=t,clearable:!0,disabled:t,placeholder:l,onInput:t=>((e,t)=>{const l=e.replace(/\D/g,"");f.value[t]=l})(t,e.prop)},{prefix:e.prefix?()=>e.prefix(f,e):null,suffix:e.suffix?()=>e.suffix(f,e):null,prepend:e.prepend?()=>e.prepend(f,e):null,append:e.append?()=>e.append(f,e):null})}if("inputNumber"===e.type){const l=c("next.form.input")+(e.searchPlaceholder||e.searchLabel||e.label);return i(U,{modelValue:f[e.prop],"onUpdate:modelValue":t=>f[e.prop]=t,clearable:!0,disabled:t,placeholder:l,onInput:t=>((e,t)=>{let l=e;l=l.replace(/[^0-9\.]/g,""),l=l.replace(/^\./,"0."),l=l.replace(/\.{2,}/g,"."),l=l.replace(".","DUMMY"),l=l.replace(/\./g,""),l=l.replace("DUMMY","."),f.value[t]=l})(t,e.prop)},{prefix:e.prefix?()=>e.prefix(f,e):null,suffix:e.suffix?()=>e.suffix(f,e):null,prepend:e.prepend?()=>e.prepend(f,e):null,append:e.append?()=>e.append(f,e):null})}if("select"===e.type){const l=c("next.form.select")+(e.searchPlaceholder||e.searchLabel||e.label);return i(X,{modelValue:f[e.prop],"onUpdate:modelValue":t=>f[e.prop]=t,clearable:!0,disabled:t,placeholder:l,multiple:e.multiple||!1,"collapse-tags":!0,"collapse-tags-tooltip":!0},{default:()=>[e.dicData&&e.dicData.map((e=>i(q,{value:e.value,label:e.label},null)))]})}if("date"===e.type){const l=c("next.form.select")+(e.searchPlaceholder||e.searchLabel||e.label);return i(K,{modelValue:f[e.prop],"onUpdate:modelValue":t=>f[e.prop]=t,type:"date","value-format":e.searchFormat||"YYYY-MM-DD",format:e.searchFormat||"YYYY-MM-DD",clearable:!0,"disabled-date":e.searchDisabledDate||v,disabled:t,placeholder:l,editable:e.searchEditable||!1},null)}if("datetimerange"===e.type)return i(K,{modelValue:f[e.prop],"onUpdate:modelValue":t=>f[e.prop]=t,type:"datetimerange","value-format":e.searchFormat||"YYYY-MM-DD HH:mm:ss",format:e.searchFormat||"YYYY-MM-DD HH:mm:ss",clearable:!0,"range-separator":c("next.date.rangeSeparator"),"start-placeholder":c("next.date.startPlaceholder"),"end-placeholder":c("next.date.endPlaceholder"),"disabled-date":e.searchDisabledDate||v,disabled:t,editable:e.searchEditable||!1,shortcuts:e.searchShortcuts||m},null);if("numberRange"===e.type){const t=f[e.prop],a=l(t[0]),n=l(t[1]),o=l(e.searchMin),r=l(e.searchMax),s=l(!0),u=t=>{a.value=t,g([a.value,n.value],e.prop)},p=t=>{n.value=t,g([a.value,n.value],e.prop)};return i("div",{class:d.b("header-search-item-number-range")},[i(G,{modelValue:a.value,"onUpdate:modelValue":e=>a.value=e,min:o.value,max:r.value,controls:s.value,onChange:u},null),i("span",{class:"number-range-division"},[c("next.date.rangeSeparator")]),i(G,{modelValue:n.value,"onUpdate:modelValue":e=>n.value=e,min:o.value,max:r.value,controls:s.value,onChange:p},null)])}return"treeSelect"===e.type?i(ws,{modelValue:f[e.prop],"onUpdate:modelValue":t=>f[e.prop]=t,disabled:e.disabled,column:e,formParams:f},null):void 0};return()=>i(s,null,[i(s,null,[h.value.map((t=>!t.hide&&i(Y,{span:e.searchSpan,class:d.b("header-search-item")},{default:()=>[i($,null,{label:()=>t.label&&ri(u.showSearchLabel,!0)?i(En,{width:u.searchLabelWidth,content:t.label,textAlign:"right"},null):null,default:()=>b(t)})]})))])])}});function Zi(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!m(e)}var Qi=r({name:"HeaderSearch",props:{columns:{type:Array,default:()=>[]}},emits:["confirmSearch","clearSearch","zoomResize"],setup(a,{emit:r,slots:u}){const c=t("options",{}),d=o(c)?n(c):c,h=t("ns",{}),{t:f}=dn(),v=t("searchFormSlots"),m={};v.value.forEach((e=>{m[e]=(...t)=>u[e]&&u[e](...t)}));const g=p({}),b=l(a.columns),y=()=>{b.value.forEach((e=>{g[e.prop]="",oi(e.defaultValue)&&(g[e.prop]=e.defaultValue)}))};y();const x=()=>{r("confirmSearch",g)},w=()=>{y(),x(),r("clearSearch")},C=l(d.searchSpan),D=b.value.length,k=l(D),M=l(b.value),_=l([]),z=l(!1),{proxy:E}=e();S((()=>{const e=E.$refs.tableSearchForm?.$el;e&&li(e,(e=>{(e=>{const t=e.clientWidth,l=d.searchColumnMinWidth;let a=Math.floor(t/l);C.value=Math.ceil(24/a);const n=24%C.value;if(n&&(C.value=n,a=24/C.value),k.value=a,D>=k.value){const e=k.value-1;M.value=b.value.slice(0,e),_.value=b.value.slice(e)}else M.value=b.value,_.value=[];const o=Math.floor(t/a);z.value=o<l})(e),r("zoomResize")}))}));const L=l(!1),j=()=>{L.value=!L.value};return()=>i(s,null,[b.value.length?i(J,{ref:"tableSearchForm",inline:!0,size:d.size,model:g,class:h.b("header")},{default:()=>[i(Z,{gutter:d.searchGutter,class:h.b("header-search")},{default:()=>[i(Ji,{searchSpan:C.value,columns:M.value,formParams:g},Zi(m)?m:{default:()=>[m]}),L.value?i(Ji,{searchSpan:C.value,columns:_.value,formParams:g},Zi(m)?m:{default:()=>[m]}):null,i(Y,{span:C.value,class:h.b("header-search-btns")},{default:()=>[i($,null,{default:()=>[i(Q,{type:"primary",onClick:x},{icon:()=>i(H,null,{default:()=>[i(er,null,null)]}),default:()=>f("next.table.search")}),i(Q,{onClick:w},{icon:()=>i(H,null,{default:()=>[i(bo,null,null)]}),default:()=>f("next.table.clear")}),_.value.length?z.value?i(Q,{type:"primary",text:!0,bg:!0,circle:!0,class:h.b("header-search-expandBtn"),onClick:j},{icon:()=>L.value?i(uo,null,null):i(fo,null,null)}):i(Q,{type:"primary",text:!0,bg:!0,class:h.b("header-search-expandBtn"),onClick:j},{icon:()=>L.value?i(H,null,{default:()=>[i(Xn,null,null)]}):i(H,null,{default:()=>[i(Vn,null,null)]}),default:()=>L.value?f("next.table.foldSearch"):f("next.table.unfoldSearch")}):null]})]})]})]}):null])}}),es=r({name:"DrawerSetting",setup:()=>({visible:l(!1)}),render(){const e=t("options",{}),a=o(e)?n(e):e,r=l(a.columns),{t:s}=dn(),u=t("ns",{});return i(B,{modelValue:this.visible,"onUpdate:modelValue":e=>this.visible=e,title:s("next.table.setting.title"),"append-to-body":!0,size:"450px",class:u.b("setting-drawer")},{default:()=>[i(j,{class:u.be("setting-drawer","container")},{default:()=>[i(ee,{data:r.value,border:!0,style:{width:"100%"}},{default:()=>[i(te,{prop:"label",label:s("next.table.setting.label"),align:"center"},{default:({row:e})=>i(En,{content:s(e.label)},null)}),i(te,{prop:"hide",label:s("next.table.setting.hide"),align:"center",width:"70px"},{default:({row:e})=>i(le,{modelValue:e.hide,"onUpdate:modelValue":t=>e.hide=t},null)}),i(te,{prop:"filter",label:s("next.table.setting.filter"),align:"center",width:"70px"},{default:({row:e})=>i(le,{modelValue:e.filter,"onUpdate:modelValue":t=>e.filter=t},null)}),i(te,{prop:"sort",label:s("next.table.setting.sort"),align:"center",width:"70px"},{default:({row:e})=>i(le,{modelValue:e.sortable,"onUpdate:modelValue":t=>e.sortable=t},null)})]})]})]})}}),ts=r({name:"HeaderMenu",setup:()=>({}),emits:["clickAdd","clickRefresh","deleteRows"],render(){const e=t("options",{}),r=o(e)?n(e):e,{t:s}=dn(),u=t("ns",{}),c=t("multipleSelection"),d=a((()=>c.value.length)),p=l();return i("div",{class:u.b("header-menu")},[i("div",{class:u.b("header-menu-left")},[this.$slots["menu-left-prefix"]?.({size:r.size}),r.addBtn&&i(Q,{type:"primary",size:r.size,onClick:()=>{this.$emit("clickAdd")}},{icon:()=>i(H,null,{default:()=>[i(Fo,null,null)]}),default:()=>s("next.table.add")}),r.batchDelBtn&&i(Q,{type:"danger",size:r.size,disabled:!d.value,onClick:()=>{const e=n(D(c.value.map((e=>D(e)))));ae.confirm(s("next.table.message.batchDeleteTip"),s("next.table.message.tip"),{type:"warning",showClose:!1,center:!1,confirmButtonText:s("next.table.message.confirmButtonText"),cancelButtonText:s("next.table.message.cancelButtonText")}).then((()=>{this.$emit("deleteRows",e)})).catch((()=>{E({type:"info",message:s("next.table.message.cancelBatchDelete")})}))}},{icon:()=>i(H,null,{default:()=>[i(bo,null,null)]}),default:()=>s("next.table.batchDelete")}),this.$slots["menu-left-suffix"]?.({size:r.size})]),i("div",{class:u.b("header-menu-right")},[this.$slots["menu-right-prefix"]?.({size:r.size}),r.refreshBtn&&i(Q,{circle:!0,size:r.size,onClick:()=>{this.$emit("clickRefresh")}},{icon:()=>i(H,null,{default:()=>[i(Uo,null,null)]})}),r.settingBtn&&i(Q,{circle:!0,size:r.size,onClick:()=>{p.value.visible=!0}},{icon:()=>i(H,null,{default:()=>[i(pr,null,null)]})}),this.$slots["menu-right-suffix"]?.({size:r.size})]),i(es,{ref:p},null)])}});const ls=r({name:"TableColumnDynamic",props:{columnOption:{type:Object,default:()=>({})}},setup(e,{slots:l}){const a=t("columnSlots"),r={};a.value.forEach((e=>{r[e]=(...t)=>l[e]&&l[e](...t)}));const u=t("options",{}),c=o(u)?n(u):u,d=e.columnOption,p=ri(d.dicKey,"value"),h=(e,t)=>{const l=t.find((t=>t[p]==e));return l?l.label:e},f=(e,t)=>{if(d.children?.length>0)return i(s,null,[d.children.map((e=>{return i(ls,{columnOption:e},"function"==typeof(t=r)||"[object Object]"===Object.prototype.toString.call(t)&&!m(t)?r:{default:()=>[r]});var t}))]);if(l[Yi(d.prop)])return l[Yi(d.prop)]({row:e,index:t});if(d.dicData?.length>0){const t=e=>{const l=[];return e.forEach((e=>{const a={...e};if(a.children){const e=t(a.children);l.push(...e),delete a.children}l.push(a)})),l},l=t(d.dicData);return i("span",null,[h(e[d.prop],l)])}return d.cellUnit?i(s,null,[i("span",null,[e[d.prop]]),i("em",{class:"cell-unit"},[d.cellUnit])]):null};return()=>i(s,null,[!d.hide&&i(te,{prop:d.prop,label:d.label,headerAlign:d.headerAlign||c.headerAlign,align:d.align||c.cellAlign,minWidth:d.minWidth||c.columnMinWidth||"auto",width:d.width||"auto",fixed:d.fixed,sortable:d.sortable||!1,formatter:d.formatter||null,showOverflowTooltip:ri(d.showOverflowTooltip,!0)},{default:({row:e,$index:t})=>f(e,t)})])}});var as=r({name:"TableColumnOperations",emits:["editRow","viewRow","deleteRow"],setup(e,{emit:l,slots:r}){const u=t("options"),c=o(u)?n(u):u,{t:d}=dn(),p=a((()=>{const{operationsBtnPlain:e,operationsBtnText:t}=c;return t||e})),h=()=>{const e=c.operationsBtnText,t=c.operationsBtnPlain,a=c.operationsBtnSize;return i(te,{fixed:"right",label:d("next.table.operation"),width:c.operationsWidth,headerAlign:ri(c.operationsHeaderAlign,c.headerAlign),align:ri(c.operationsColumnAlign,c.cellAlign)},{default:n=>i(s,null,[r["operation-column-prefix"]?.(n,{text:e,plain:t,size:a}),c.editBtn?i(L,{enterable:!1,effect:"dark",content:d("next.table.edit"),placement:"top",disabled:p.value},{default:()=>[i(Q,{text:e,plain:t,class:p.value?"":"operations-btn",size:a,type:"primary",onClick:()=>(e=>{l("editRow",e)})(n)},{icon:()=>i(H,null,{default:()=>[i(Co,null,null)]}),default:()=>d("next.table.edit")})]}):null,c.viewBtn?i(L,{enterable:!1,effect:"dark",content:d("next.table.view"),placement:"top",disabled:p.value},{default:()=>[i(Q,{text:e,plain:t,class:p.value?"":"operations-btn",size:a,type:"primary",onClick:()=>(e=>{l("viewRow",e)})(n)},{icon:()=>i(H,null,{default:()=>[i(mr,null,null)]}),default:()=>d("next.table.view")})]}):null,c.delBtn?i(L,{enterable:!1,effect:"dark",content:d("next.table.delete"),placement:"top",disabled:p.value},{default:()=>[i(Q,{text:e,plain:t,class:p.value?"":"operations-btn",size:a,type:"danger",onClick:()=>(e=>{ae.confirm(d("next.table.message.deleteTip"),d("next.table.message.tip"),{type:"warning",showClose:!1,center:!1,confirmButtonText:d("next.table.message.confirmButtonText"),cancelButtonText:d("next.table.message.cancelButtonText")}).then((()=>{l("deleteRow",e)})).catch((()=>{E({type:"info",message:d("next.table.message.cancelDelete")})}))})(n)},{icon:()=>i(H,null,{default:()=>[i(bo,null,null)]}),default:()=>d("next.table.delete")})]}):null,r["operation-column-suffix"]?.(n,{text:e,plain:t,size:a})])})};return()=>i(s,null,[h()])}}),ns=r({name:"FooterPagination",props:{page:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:l}){const a=t("options",{}),r=o(a)?n(a):a,u=e.page,c=e=>{u.pageIndex=e,l("change",u)},d=e=>{u.pageSize=e,l("change",u)};return()=>i(s,null,[i(ne,{currentPage:u.pageIndex,"onUpdate:currentPage":e=>u.pageIndex=e,pageSize:u.pageSize,"onUpdate:pageSize":e=>u.pageSize=e,total:u.total,small:"small"===r.size,layout:"total, sizes, prev, pager, next, jumper","page-sizes":ri(u.pageSizes,[10,20,30,40,50,100]),"onCurrent-change":c,"onSize-change":d},null)])}});const os=Le("dialog");var rs=r({name:"NextDialog",props:{modelValue:{type:Boolean,default:!1},title:{type:String,default:""},fullscreen:{type:Boolean,default:!1},fullscreenBtn:{type:Boolean,default:!0},width:{type:[String,Number],default:"50%"},closeOnClickModal:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!1},draggable:{type:Boolean,default:!0},zoomSize:{type:Boolean,default:!0},destroyOnClose:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},top:{type:String,default:"15vh"}},emits:["close"],setup(e,{emit:t,slots:a}){const n=l(e.modelValue);y((()=>e.modelValue),(e=>{n.value=e}));const o=()=>{n.value=!1,t("close")},r=l(e.fullscreen);return()=>i(s,null,[i(oe,{modelValue:n.value,"onUpdate:modelValue":e=>n.value=e,class:os.b(),title:e.title,appendToBody:e.appendToBody,"destroy-on-close":!0,fullscreen:r.value,"lock-scroll":!0,modal:e.modal,"show-close":!1,closeOnClickModal:e.closeOnClickModal,width:e.width,top:e.top,draggable:e.draggable,destroyOnClose:e.destroyOnClose,onClose:o},{default:()=>[a.default?.()],header:({close:t,titleId:l,titleClass:a})=>i("div",{class:os.b("header")},[i("h4",{id:l,class:a},[e.title]),i("div",{class:os.e("header-right")},[e.fullscreenBtn&&i("span",{class:"icon-fullscreen",onClick:()=>r.value=!r.value},[i(H,null,{default:()=>[i(Mo,null,null)]})]),e.showClose&&i("span",{class:"icon-close",onClick:t},[i(H,{size:"18"},{default:()=>[i(oo,null,null)]})])])])})])}});const is={selection:!1,selectType:"radio",addBtn:!1,viewBtn:!1,delBtn:!1,editBtn:!1,batchDelBtn:!1,dialogWidth:"60%",dialogFullscreen:!1,closeOnClickModal:!1,refreshBtn:!0,settingBtn:!0,operations:!1};var ss={size:"default",colSpan:8,labelWidth:"6em",columnMinWidth:350,columns:[],formDatum:{},tableSelectConfig:is,isEditing:!0,showResetBtn:!0,showFooter:!0,submitText:null,resetText:null};const us=Le("form");var cs=r({name:"NumberRangePicker",props:{modelValue:{type:[Array,String,Number,Boolean,Object],default:function(){return[null,null]}},min:{type:Number,default:0},max:{type:Number,default:100},disabled:{type:Boolean,default:!1}},emits:["change"],setup(e,{emit:t}){const a=e.disabled,{t:n}=dn(),o=l(Array.isArray(e.modelValue)&&e.modelValue[0]||0),r=l(Array.isArray(e.modelValue)&&e.modelValue[1]||0),u=l(e.min),c=l(e.max),d=e=>{o.value=e,t("change",[o.value,r.value])},p=e=>{r.value=e,t("change",[o.value,r.value])},h=l(!0),f=l();S((()=>{const e=f.value;li(e,(e=>{const t=e.clientWidth;h.value=t>200}))}));return()=>i(s,null,[i("div",{ref:f,class:us.e("number-range")},[i(G,{modelValue:o.value,"onUpdate:modelValue":e=>o.value=e,min:u.value,max:c.value,controls:h.value,disabled:a,onChange:d},null),i("span",{class:us.em("number-range","division")},[n("next.date.rangeSeparator")]),i(G,{modelValue:r.value,"onUpdate:modelValue":e=>r.value=e,min:u.value,max:c.value,controls:h.value,disabled:a,onChange:p},null)])])}});const ds=Sn(rs);function ps(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!m(e)}const hs=Le("form"),fs=r({name:"InputTableSelect",props:{modelValue:{type:[Array,String,Number,Boolean,Object],default:function(){return[]}},column:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1},formParams:{type:Object,default:()=>({})},placeholder:{type:String,default:""}},emits:["select"],setup(e,{emit:t}){const{t:n}=dn(),o=e.disabled,r=e.column,u=r.placeholder||n("next.form.select")+r.label,c=ai(Fi),d=ai(is),f=tn(c,d,r.tableSelect),v=p({visible:!1,title:r.label+n("next.form.tableSelect"),dialogWidth:f.dialogWidth}),m=()=>{v.visible=!0},g=()=>{v.visible=!1},b=p({loading:!1,page:{pageIndex:1,pageSize:20,total:0},data:[]}),x=e=>{b.loading=!0,f.loadData?.(e,b.page,(e=>{b.data=e.data||[],b.page.total=e.total||0,b.loading=!1}))},w=l([]);r.tableSelectDefaultValue?.(e.formParams,r,(e=>{e?.length&&(r.tableSelectRows=e,w.value=e)}));const C=l(""),S=a((()=>"radio"===f.selectType?!C.value:0===w.value.length)),k=e=>w.value.includes(e),M=()=>{w.value=[],C.value=""},{value:_,label:z}=r.tableSelectProps||{value:"id",label:"name"},E=()=>{const e=D(w.value),l=ni(e,_);g(),t("select",l)},j=(e,t)=>{r.addEditData?.(e,t)},O=(e,t)=>{const l=f.rowKey,a=ri(e[l],t);return"checkbox"===f.selectType?i(le,{modelValue:k(D(e)),onChange:t=>((e,t)=>{if(e)w.value.push(t);else{const e=w.value.indexOf(t);-1!==e&&w.value.splice(e,1)}})(t,D(e))},null):i(se,{value:a,onChange:()=>{C.value=a,w.value=[e]}},null)},A=l([]),T=l([]),V=()=>{const e=ni(w.value,_).map((e=>({value:e[_||"value"],label:e[z||"label"]})));e.length>1?(A.value=e.splice(0,1),T.value=e):(A.value=e,T.value=[])};y((()=>r.tableSelectRows),(()=>{V()}),{deep:!0,immediate:!0});const H=(e,l)=>{const a=D(w.value);a.splice(l,1),w.value=a,V(),t("select",a)},N=()=>{let e,t;return i(s,null,[i("div",{class:["el-input",hs.e("input-table"),hs.is("disabled",o)]},[i("div",{class:"el-input__wrapper"},[A?.value.length?i("span",{class:hs.em("input-table","value")},[A.value.map(((e,t)=>i(re,{closable:!o,onClose:()=>H(0,t)},{default:()=>[e.label]}))),T?.value?.length?i(L,{"popper-class":hs.e("tooltip-tags"),placement:"bottom",effect:"light"},{default:()=>i(re,null,{default:()=>[h("+ "),T.value.length]}),content:()=>T.value.map(((e,t)=>i(re,{closable:!o,onClose:()=>H(0,t+1)},{default:()=>[e.label]})))}):null]):i("span",{class:hs.em("input-table","placeholder")},[u])]),i(Q,{type:"primary",class:hs.em("input-table","append"),disabled:o,icon:er,onClick:m},null)]),i(ds,{modelValue:v.visible,"onUpdate:modelValue":e=>v.visible=e,title:v.title,closeOnClickModal:f.closeOnClickModal,width:f.dialogWidth,modal:!1,onClose:g},{default:()=>[i("div",{class:hs.em("input-table","content")},[i(ie,{modelValue:C.value},{default:()=>[i(_s,{options:f,loading:b.loading,data:b.data,page:b.page,"onConfirm-search":x,"onClick-add-edit":j},{default:()=>[i(te,{fixed:"left",label:n("next.table.selection"),width:55,headerAlign:f.headerAlign,align:f.cellAlign},{default:({row:e,$index:t})=>O(e,t)})]})]})]),i("div",{class:hs.em("input-table","footer")},[i(Q,{onClick:M},ps(e=n("next.form.reset"))?e:{default:()=>[e]}),i(Q,{type:"primary",disabled:S.value,onClick:E},ps(t=n("next.form.confirm"))?t:{default:()=>[t]})])]})])};return()=>i(s,null,[N()])}}),vs=Le("form");var ms=r({name:"UploadImage",props:{className:{type:String,default:""},style:{type:Object,default:()=>({})},modelValue:{type:String,default:""},disabled:{type:Boolean,default:!1},listType:{type:String,values:["text","picture","picture-card"],default:"picture-card"},multiple:{type:Boolean,default:!1},limit:{type:Number,default:1},accept:{type:String,default:"image/*"}},emits:["change","exceed"],setup(t){const{appContext:a}=e(),{t:n}=dn();return{t:n,appContext:a,defaultPreviewSrcList:ai(t.modelValue),uploadfilesPreview:l([])}},render(){const e=this.$slots,t=this.$props,l=this.$emit,a=this.t,n=t.disabled,o=this.uploadfilesPreview;let r=null;return i(s,null,[(()=>{const e=this.defaultPreviewSrcList;let t=[];return"string"==typeof e?t=[e]:"[object Array]"===Object.prototype.toString.call(e)&&(t=e),t=t.filter((e=>!!e)),t.length?i(de,{class:vs.e("preview-image"),src:t[0],previewSrcList:t,"preview-teleported":!0,fit:"cover",style:{width:"146px",height:"146px"}},{default:()=>i(H,null,{default:()=>[i(Po,null,null)]})}):null})(),n?null:i(ue,{class:[vs.b("upload-image"),t.className],style:t.style,"list-type":t.listType,multiple:t.multiple,limit:t.limit,"auto-upload":!1,"on-preview":e=>{const t=document.getElementsByTagName("body")[0],l=o.value.findIndex((t=>t.url===e.url))||0;r&&(k(null,r),t.removeChild(r)),r=document.createElement("div"),t.appendChild(r);const a=i({render:()=>C(v,{to:"body"},[C(ce,{initialIndex:l,"url-list":o.value.map((e=>e.url)),onClose:()=>{k(null,r)}})])});r.appContext=this.appContext,k(a,r)},"on-change":(e,t)=>{o.value=t,l("change",e,t)},"on-exceed":(e,t)=>{E({type:"info",message:a("next.table.uploadfileExceed")}),l("exceed",e,t)}},{trigger:()=>e.default?e.default():"picture-card"===t.listType?i(H,null,{default:()=>[i(Fo,null,null)]}):i(Q,{link:!0,text:!0,type:"primary"},{default:()=>[i(H,null,{default:()=>[i(Fo,null,null)]}),i("em",null,[a("next.form.selectFile")])]})})])}}),gs=r({name:"NextTreeSelect",props:{modelValue:{type:[Number,String,Boolean,Object,Array],default:""},column:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1},formParams:{type:Object,default:()=>({})}},emits:["change","node-click","node-contextmenu","check","check-change","node-expand","node-collapse","current-change"],setup(e,{emit:t,expose:a}){const{t:n}=dn(),o=l(e.modelValue);y((()=>e.modelValue),(e=>{o.value=e}));const r=e.column,u=ri(r.treeSelectProps?.value,r.nodeKey,"id"),c=e.formParams,d={label:"label",children:"children"},p=r.placeholder||n("next.form.select")+r.label,h=l=>{e.formParams[r.prop]=l,o.value=l,t("change",l)},f=()=>{e.formParams[r.prop]="",o.value=""},v=(e,l)=>{t("node-click",e,l,c);const a=e[u];r.treeSelectNodeClick?.(e,l,c),h(a)},m=(...e)=>{t("node-contextmenu",...e),r.treeSelectNodeContextmenu?.(...e)},g=(e,l)=>{t("check",e,l,c),r.treeSelectCheck?.(e,l,c);const{checkedKeys:a}=l;h(a)},b=(...e)=>{t("check-change",...e),r.treeSelecCheckChange?.(...e,c)},x=(...e)=>{t("node-expand",...e),r.treeSelecNodeExpand?.(...e)},w=(...e)=>{t("node-collapse",...e),r.treeSelecNodeCollapse?.(...e)},C=(...e)=>{t("current-change",...e),r.treeSelecCurrentChange?.(...e)},S=l(),D=()=>S.value;r.loadInstance&&r.loadInstance(D()),a({getInstance:D,onClearValue:f});return()=>i(s,null,[i(pe,{ref:S,modelValue:o.value,"onUpdate:modelValue":e=>o.value=e,placeholder:p,data:ri(r.dicData,[]),"node-key":ri(r.nodeKey,"id"),filterable:ri(r.filterable,!0),"show-checkbox":ri(r.showCheckbox,!1),"leaf-only":ri(r.leafOnly,!1),"render-after-expand":ri(r.renderAfterExpand,!0),"check-strictly":ri(r.checkStrictly,!1),disabled:ri(e.disabled,!1),clearable:ri(r.clearable,!0),accordion:ri(r.accordion,!1),multiple:ri(r.multiple,!1),"collapse-tags":!0,"collapse-tags-tooltip":!0,props:ri(r.treeSelectProps,d),"value-key":u,"onNode-click":v,"onNode-contextmenu":m,onCheck:g,"onCheck-change":b,"onNode-expand":x,"onNode-collapse":w,"onCurrent-change":C,onClear:f},null)])}});function bs(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!m(e)}const ys=Le("form");var xs=r({name:"NextForm",props:{options:{type:Object,default:()=>({})},columns:{type:Array,default:()=>[]},formDatum:{type:Object,default:()=>({})}},emits:["submit","close","reset"],setup(e,{slots:t,emit:n,expose:o}){const r=ai(ss),u=p(tn(r,e.options)),c=a((()=>"boolean"!=typeof u.isEditing||u.isEditing)),{t:d}=dn(),h=l(u.colSpan),f=p(e.formDatum)||{},v=p(tn({},f)),m=l([]),g=p({});y((()=>[e.columns,e.formDatum]),(()=>{(()=>{const t=e.columns;m.value=t;for(let e=0;e<t.length;e++){const l=t[e],a=f[l.prop];oi(a)?v[l.prop]=a:v[l.prop]=oi(l.defaultValue)?l.defaultValue:"";const n=[],{label:o}=l;l.required&&n.push({required:!0,message:o+d("next.form.requiredInput"),trigger:["blur","change"]}),l.rules?.length&&n.push(...l.rules),g[l.prop]=n,!l.dicData?.length&&l.loadDicData&&l.loadDicData(l,(e=>{e?.length&&(l.dicData=e)})),"boolean"==typeof l.disabled&&l.disabled||(l.disabled=!c.value)}})()}),{deep:!0,immediate:!0});const b=ni(m.value,"prop"),x=l(!1);S((()=>{const e=w.value?.$el;let t=null;li(e,(e=>{null!==t?clearTimeout(t):x.value=!0,t=setTimeout((()=>{h.value=((e,t=350)=>{const l=e.clientWidth;let a=Math.floor(l/t);return a>4&&(a=4),Math.ceil(24/a)})(e,u.columnMinWidth),x.value=!1,clearTimeout(t)}),200)}))}));const w=l(),C=l(!1),k=async()=>{const e=w.value;e&&await e.validate(((e,t)=>{if(e){const e=D(v);C.value=!0,n("submit",e,(()=>{C.value=!1,n("close")}),(()=>{C.value=!1}))}}))},M=()=>{const e=w.value;e&&(e.resetFields(),C.value=!1,n("reset",v))},_=e=>e.getTime()>Date.now(),z=[{text:d("next.date.oneWeekAge"),value:()=>{const e=new Date,t=new Date;return t.setTime(t.getTime()-6048e5),[t,e]}},{text:d("next.date.oneMonthAge"),value:()=>{const e=new Date,t=new Date;return t.setTime(t.getTime()-2592e6),[t,e]}},{text:d("next.date.threeMonthsAge"),value:()=>{const e=new Date,t=new Date;return t.setTime(t.getTime()-7776e6),[t,e]}},{text:d("next.date.oneYearAge"),value:()=>{const e=new Date,t=new Date;return t.setTime(t.getTime()-31536e6),[t,e]}},{text:d("next.date.threeYearsAge"),value:()=>{const e=new Date,t=new Date;return t.setTime(t.getTime()-94608e6),[t,e]}}],E=e=>{if(t[qi(e.prop)])return t[qi(e.prop)]({column:e,formParams:v});if("input"===e.type||!e.type){const t=e.placeholder||d("next.form.input")+e.label;return i(U,{modelValue:v[e.prop],"onUpdate:modelValue":t=>v[e.prop]=t,clearable:!0,readonly:ri(e.readonly,!1),disabled:e.disabled,placeholder:t,onChange:t=>e.onChange?.(t,e,v,b)},{prefix:e.prefix?()=>e.prefix(v,e):null,suffix:e.suffix?()=>e.suffix(v,e):null,prepend:e.prepend?()=>e.prepend(v,e):null,append:e.append?()=>e.append(v,e):null})}if("password"===e.type){const t=e.placeholder||d("next.form.input")+e.label;return i(U,{modelValue:v[e.prop],"onUpdate:modelValue":t=>v[e.prop]=t,type:"password",clearable:!0,"show-password":!0,readonly:ri(e.readonly,!1),disabled:e.disabled,placeholder:t,onChange:t=>e.onChange?.(t,e,v,b)},{prefix:e.prefix?()=>e.prefix(v,e):null,suffix:e.suffix?()=>e.suffix(v,e):null,prepend:e.prepend?()=>e.prepend(v,e):null,append:e.append?()=>e.append(v,e):null})}if("inputInteger"===e.type){const t=e.placeholder||d("next.form.input")+e.label;return i(U,{modelValue:v[e.prop],"onUpdate:modelValue":t=>v[e.prop]=t,clearable:!0,readonly:ri(e.readonly,!1),disabled:e.disabled,placeholder:t,onInput:t=>((e,t)=>{const l=e.replace(/\D/g,"");v[t]=l?Number(l):""})(t,e.prop),onChange:t=>e.onChange?.(t,e,v,b)},{prefix:e.prefix?()=>e.prefix(v,e):null,suffix:e.suffix?()=>e.suffix(v,e):null,prepend:e.prepend?()=>e.prepend(v,e):null,append:e.append?()=>e.append(v,e):null})}if("inputNumber"===e.type){const t=e.placeholder||d("next.form.input")+e.label;return i(U,{modelValue:v[e.prop],"onUpdate:modelValue":t=>v[e.prop]=t,clearable:!0,readonly:ri(e.readonly,!1),disabled:e.disabled,placeholder:t,onInput:t=>((e,t)=>{let l=e;l=l.replace(/[^0-9\.]/g,""),l=l.replace(/^\./,"0."),l=l.replace(/\.{2,}/g,"."),l=l.replace(".","DUMMY"),l=l.replace(/\./g,""),l=l.replace("DUMMY","."),v[t]=Number(l)})(t,e.prop),onChange:t=>e.onChange?.(t,e,v,b)},{prefix:e.prefix?()=>e.prefix(v,e):null,suffix:e.suffix?()=>e.suffix(v,e):null,prepend:e.prepend?()=>e.prepend(v,e):null,append:e.append?()=>e.append(v,e):null})}if("textarea"===e.type){const t=e.placeholder||d("next.form.input")+e.label;return i(U,{modelValue:v[e.prop],"onUpdate:modelValue":t=>v[e.prop]=t,type:"textarea",clearable:!0,readonly:ri(e.readonly,!1),disabled:e.disabled,placeholder:t,onChange:t=>e.onChange?.(t,e,v,b)},{prefix:e.prefix?()=>e.prefix(v,e):null,suffix:e.suffix?()=>e.suffix(v,e):null,prepend:e.prepend?()=>e.prepend(v,e):null,append:e.append?()=>e.append(v,e):null})}if("select"===e.type){const t=e.placeholder||d("next.form.select")+e.label;return i(X,{modelValue:v[e.prop],"onUpdate:modelValue":t=>v[e.prop]=t,placeholder:t,clearable:!0,disabled:e.disabled,multiple:ri(e.multiple,!1),"collapse-tags-tooltip":!0,onChange:t=>e.onChange?.(t,e,v,b)},{default:()=>[e.dicData&&e.dicData.map((e=>i(q,{key:e.value,value:e.value,label:e.label,disabled:ri(e.disabled,!1)},null)))]})}if("time"===e.type){const t=e.placeholder||d("next.form.select")+e.label;return i(he,{modelValue:v[e.prop],"onUpdate:modelValue":t=>v[e.prop]=t,start:"00:00",step:"00:30",end:"23:59",editable:!1,disabled:e.disabled,placeholder:t,onChange:t=>e.onChange?.(t,e,v,b)},{prefix:()=>e.prefix?e.prefix(v,e):null,suffix:()=>e.suffix?e.suffix(v,e):null})}if("radio"===e.type)return i(ie,{modelValue:v[e.prop],"onUpdate:modelValue":t=>v[e.prop]=t,disabled:e.disabled,onChange:t=>e.onChange?.(t,e,v,b)},{default:()=>[e.dicData&&e.dicData.map((e=>i(se,{key:e.value,value:e.value,disabled:ri(e.disabled,!1)},{default:()=>[e.label]})))]});if("checkbox"===e.type)return oi(v[e.prop])||(v[e.prop]=[]),i(fe,{modelValue:v[e.prop],"onUpdate:modelValue":t=>v[e.prop]=t,disabled:e.disabled,onChange:t=>e.onChange?.(t,e,v,b)},{default:()=>[e.dicData&&e.dicData.map((e=>i(le,{key:e.value,label:e.value,disabled:ri(e.disabled,!1)},{default:()=>[e.label]})))]});if("date"===e.type){const t=e.placeholder||d("next.form.select")+e.label;return i(K,{modelValue:v[e.prop],"onUpdate:modelValue":[t=>v[e.prop]=t,t=>e.onChange?.(t,e,v,b)],placeholder:t,type:"date",valueFormat:e.format||"YYYY-MM-DD",format:e.format||"YYYY-MM-DD",clearable:!0,disabledDate:e.disabledDate||_,disabled:e.disabled,editable:e.editable},null)}if("datetime"===e.type){const t=e.placeholder||d("next.form.select")+e.label;return i(K,{modelValue:v[e.prop],"onUpdate:modelValue":[t=>v[e.prop]=t,t=>e.onChange?.(t,e,v,b)],placeholder:t,type:"datetime",valueFormat:e.format||"YYYY-MM-DD HH:mm:ss",format:e.format||"YYYY-MM-DD HH:mm:ss",clearable:!0,disabledDate:e.disabledDate||_,disabled:e.disabled,editable:e.editable},null)}if("datetimerange"===e.type){const t=e.placeholder||d("next.form.select")+e.label;return i(K,{modelValue:v[e.prop],"onUpdate:modelValue":[t=>v[e.prop]=t,t=>e.onChange?.(t,e,v,b)],placeholder:t,type:"datetimerange",valueFormat:e.format||"YYYY-MM-DD HH:mm:ss",format:e.format||"YYYY-MM-DD HH:mm:ss",clearable:!0,"range-separator":d("next.date.rangeSeparator"),"start-placeholder":d("next.date.startPlaceholder"),"end-placeholder":d("next.date.endPlaceholder"),disabledDate:e.disabledDate||_,disabled:e.disabled,editable:e.editable,shortcuts:e.shortcuts||z},null)}return"numberRange"===e.type?i(cs,{modelValue:v[e.prop],"onUpdate:modelValue":t=>v[e.prop]=t,disabled:e.disabled,onChange:t=>{return l=t,a=e.prop,Array.isArray(v[a])||(v[a]=[]),void(v[a]=Number(l));var l,a}},null):"inputTableSelect"===e.type?i(fs,{modelValue:v[e.prop],"onUpdate:modelValue":t=>v[e.prop]=t,formParams:v,column:e,disabled:e.disabled,onSelect:t=>((e,t)=>{e&&(t.tableSelectRows=e);const{value:l}=t.tableSelectProps||{};v[t.prop]=e.map((e=>e[l||"value"])),t.onTableSelect?.(v,e,t)})(t,e)},null):"uploadImage"===e.type?i(ms,{modelValue:v[e.prop],"onUpdate:modelValue":t=>v[e.prop]=t,disabled:e.disabled,multiple:e.multiple,limit:e.limit,onChange:(...t)=>e.onChange?.(...t,e,v,b),onExceed:(...t)=>e.onExceed?.(...t,e,v,b)},null):"treeSelect"===e.type?i(gs,{modelValue:v[e.prop],"onUpdate:modelValue":t=>v[e.prop]=t,disabled:e.disabled,column:e,formParams:v},null):void 0};o({formParams:D(v),ruleFormRef:w,formColumns:b,getFormInstance:()=>w.value,getFormParams:()=>D(v)});return()=>{let e;return i(Os,{loading:x.value},bs(e=(()=>{let e;return i(J,{ref:w,class:ys.b(),inline:!1,model:v,size:u.size},{default:()=>[i(Z,{gutter:20},bs(e=b.map((e=>!e.hide&&i(Y,{span:ri(e.span,h.value)},{default:()=>[i($,{prop:e.prop,required:e.required,rules:g[e.prop],style:{"--form-label-width":ri(u.formLabelWidth,u.labelWidth)}},{label:()=>e.label?i(s,null,[i(En,{content:d(e.label),class:ys.e("item-label")},null),e.tip?i(L,{effect:"dark",content:e.tip,placement:"top"},{default:()=>[i(H,{style:{"margin-left":"5px"},color:"#f3d19e"},{default:()=>[i(Lo,null,null)]})]}):null]):null,default:()=>E(e)})]}))))?e:{default:()=>[e]}),c.value&&u.showFooter?i("div",{class:ys.e("footer")},[i(Q,{type:"primary",loading:C.value,onClick:k},{default:()=>[d(u.submitText)||d("next.form.submit")]}),u.showResetBtn?i(Q,{onClick:M},{default:()=>[d(u.resetText)||d("next.form.reset")]}):null]):null]})})())?e:{default:()=>[e]})}}});const ws=Sn(gs),Cs=Sn(xs);var Ss=r({name:"AddEditForm",props:{formDatum:{type:Object,default:()=>({})},isEditing:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]}},emits:["close","submit"],setup(e,{slots:a,emit:r,expose:u}){const c=t("addEditFormSlots"),d={};c.value.forEach((e=>{d[e]=(...t)=>a[e]&&a[e](...t)}));const p=t("options",{}),h=ai(o(p)?n(p):p);h.columnMinWidth=h.formColumnMinWidth,h.isEditing=e.isEditing;const f=l(),v=ai(o(e.formDatum)?n(e.formDatum):e.formDatum),g=ai(e.columns).map((e=>(e.hide=ri(e.formHide,e.hide,!1),e))),b=(...e)=>{r("submit",...e)};u({getFormExpose:()=>({formParams:f.value?.formParams,formColumns:f.value?.formColumns})});const y=()=>{return i(Cs,{ref:f,options:h,columns:g,formDatum:v,onClose:()=>r("close"),onSubmit:b},"function"==typeof(e=d)||"[object Object]"===Object.prototype.toString.call(e)&&!m(e)?d:{default:()=>[d]});var e};return()=>i(s,null,[y()])}});function Ds(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!m(e)}const ks=Le("crud-table");var Ms=r({name:"NextCrudTable",props:Bi,emits:["confirm-search","clear-search","change-pagination","selection-change","row-click","row-contextmenu","row-dblclick","cell-click","cell-dblclick","cell-contextmenu","cell-mouse-enter","cell-mouse-leave","expand-change","click-add-edit","close-add-edit","view-add-edit","delete-rows","delete-row","submit-form"],setup(e,{emit:t,slots:o,expose:r}){const u=ai(Fi),c=a((()=>{const t=n(e.options);return tn(u,t)})),d=n(c);b("options",a((()=>c.value))),b("ns",ks);const{t:h}=dn(),f=l(d.columns),v=l([]),m=l([]),x=e=>{((e,t)=>{const l=p(e.columns),a=e=>{!e.dicData?.length&&e.loadDicData&&e.loadDicData(e,(t=>{t?.length&&(e.dicData=t)}))},n=e=>{let t=[];return e.forEach((e=>{a(e),t.push(e),e.children?.length&&(t.push(...n(e.children)),e.children&&delete e.children)})),t},o=n(l),r=e.formColumns.map((e=>(a(e),e))),i=o.concat(r).map((e=>{const t={prop:e.prop,label:ri(e.formLabel,e.label,""),type:ri(e.formType,e.type,""),defaultValue:ri(e.formDefaultValue,e.defaultValue,""),placeholder:ri(e.formPlaceholder,""),required:ri(e.formRequired,e.required,!1),sort:ri(e.formSort,e.sort,null),prefix:ri(e.formPrefix,e.prefix,null),suffix:ri(e.formSuffix,e.suffix,null),prepend:ri(e.formPrepend,e.prepend,null),append:ri(e.formAppend,e.append,null),hide:ri(e.formHide,e.hide,!1),disabled:ri(e.formDisabled,e.disabled,!1),clearable:ri(e.formClearable,e.clearable,!1),readonly:ri(e.formReadonly,e.readonly,!1),tip:ri(e.formTip,e.tip,null),rules:ri(e.formRules,e.rules,null),span:ri(e.formSpan,e.span,null),multiple:ri(e.formMultiple,e.multiple,!1),limit:ri(e.formLimit,e.limit,1),dicData:ri(e.formDicData,e.dicData,[]),loadDicData:ri(e.formLoadDicData,e.loadDicData,null),onChange:ri(e.onChangeForm,e.onChange,null),tableSelect:ri(e.tableSelect,{}),tableSelectRows:ri(e.tableSelectRows,[]),tableSelectProps:ri(e.tableSelectProps,null),tableSelectDefaultValue:ri(e.tableSelectDefaultValue,null),onTableSelect:ri(e.onTableSelect,null),filterable:ri(e.filterable,!1),nodeKey:ri(e.formNodeKey,e.nodeKey),accordion:ri(e.formAccordion,e.accordion,!1),leafOnly:ri(e.formLeafOnly,e.leafOnly,!1),showCheckbox:ri(e.formShowCheckboxn,e.showCheckbox,!1),checkStrictly:ri(e.formCheckStrictly,e.checkStrictly,!1),renderAfterExpand:ri(e.formRenderAfterExpand,e.renderAfterExpand,!1),treeSelectProps:ri(e.formTreeSelectProps,e.treeSelectProps,null),treeSelectNodeClick:ri(e.treeSelectNodeClickForm,e.treeSelectNodeClick,null),treeSelectNodeContextmenu:ri(e.treeSelectNodeContextmenuForm,e.treeSelectNodeContextmenu,null),treeSelectCheck:ri(e.treeSelectCheckForm,e.treeSelectCheck,null),treeSelecCheckChange:ri(e.treeSelecCheckChangeForm,e.treeSelecCheckChange,null),treeSelecNodeExpand:ri(e.treeSelecNodeExpandForm,e.treeSelecNodeExpand,null),treeSelecNodeCollapse:ri(e.treeSelecNodeCollapseForm,e.treeSelecNodeCollapse,null),treeSelecCurrentChange:ri(e.treeSelecCurrentChangeForm,e.treeSelecCurrentChange,null)};return!e.dicData?.length&&e.loadDicData&&ii(t,e,"dicData"),t})).filter((e=>e.sort&&e.prop)).sort(((e,t)=>e.sort-t.sort)),s=(e,t)=>{const l={prop:e.prop,type:ri(e.searchType,e.type),multiple:ri(e.searchMultiple,e.multiple),searchFormat:ri(e.searchFormat,null),label:ri(e.searchLabel,e.label),defaultValue:ri(e.searchDefaultValue,e.defaultValue,null),placeholder:ri(e.searchPlaceholder,e.placeholder,null),dicData:ri(e.searchDicData,e.dicData,[]),loadDicData:ri(e.searchLoadDicData,e.loadDicData,null),disabled:ri(e.searchDisabled,e.disabled,!1),readonly:ri(e.searchReadonly,e.readonly,!1),prefix:ri(e.searchPrefix,e.prefix,null),suffix:ri(e.searchSuffix,e.suffix,null),prepend:ri(e.searchPrepend,e.prepend,null),append:ri(e.searchAppend,e.append,null),hide:ri(e.searchHide,!1),sort:ri(e.searchSort,e.sort,t),nodeKey:ri(e.searchNodeKey,e.nodeKey),accordion:ri(e.searchAccordion,e.accordion,!1),leafOnly:ri(e.searchLeafOnly,e.leafOnly,!1),showCheckbox:ri(e.searchShowCheckboxn,e.showCheckbox,!1),checkStrictly:ri(e.searchCheckStrictly,e.checkStrictly,!1),renderAfterExpand:ri(e.searchRenderAfterExpand,e.renderAfterExpand,!1),treeSelectProps:ri(e.searchTreeSelectProps,e.treeSelectProps,null),treeSelectNodeClick:ri(e.treeSelectNodeClickSearch,e.treeSelectNodeClick,null),treeSelectNodeContextmenu:ri(e.treeSelectNodeContextmenuSearch,e.treeSelectNodeContextmenu,null),treeSelectCheck:ri(e.treeSelectCheckSearch,e.treeSelectCheck,null),treeSelecCheckChange:ri(e.treeSelecCheckChangeSearch,e.treeSelecCheckChange,null),treeSelecNodeExpand:ri(e.treeSelecNodeExpandSearch,e.treeSelecNodeExpand,null),treeSelecNodeCollapse:ri(e.treeSelecNodeCollapseSearch,e.treeSelecNodeCollapse,null),treeSelecCurrentChange:ri(e.treeSelecCurrentChangeSearch,e.treeSelecCurrentChange,null)};return!e.dicData?.length&&e.loadDicData&&ii(l,e,"dicData"),l},u=e.searchColumns.map(((e,t)=>(a(e),s(e,t)))),c=u.length,d=u.concat((e=>{let t=[];return e.forEach(((e,l)=>{e.searchType&&t.push(s(e,l+c))})),t})(o)),h=ni(d.sort(((e,t)=>e.sort-t.sort)),"prop");t&&t({formColumns:i,searchColumns:h,columns:l})})(e,(({formColumns:e,searchColumns:t,columns:l})=>{v.value=t,m.value=e,f.value=l}))},w=l(e.data),C=l((()=>{const e=v.value;let t={};for(let l=0;l<e.length;l++){const a=e[l];oi(a.defaultValue)&&(t[a.prop]=a.defaultValue)}return t})()),k=l=>{const a=ai(D(l));Pi(C.value,a)||(e.page.pageIndex=1,C.value=a),t("confirm-search",a)},_=()=>{t("clear-search")},z=()=>{k(C.value)};y((()=>e.data),(e=>{w.value=e}),{immediate:!0}),y((()=>c),(e=>{x(e.value)}),{deep:!0,immediate:!0});const E=l(d.defaultContentHeight),L=l(),j=l(),O=l(),A=l(),T=l(null),V=()=>{M((()=>{const e=(L.value?.clientHeight||0)-((j.value?.clientHeight||0)+(A.value?.clientHeight||0));E.value=e}))},H=e=>{"F11"!==e.key&&"fullscreenchange"!==e.type||V()};S((()=>{li(L.value,(()=>{V()})),d.initLoadData&&k(C.value),d.fullscreenchangeContentHeight&&(document.addEventListener("fullscreenchange",H),document.addEventListener("keydown",H))})),g((()=>{d.fullscreenchangeContentHeight&&(document.removeEventListener("fullscreenchange",H),document.removeEventListener("keydown",H))}));const N=l=>{e.page.pageIndex=l.pageIndex,e.page.pageSize=l.pageSize,t("change-pagination",l),k(C.value)},P=l([]),B=e=>{P.value=e,t("selection-change",P.value)};b("multipleSelection",P);const I=p({visible:!1,title:h("next.table.add"),rowInfo:{},isEditing:!0}),R=(e={})=>{const{dialogTitle:l}=d;I.isEditing=!0,I.title=l+" "+h("next.table.add"),I.rowInfo=e,t("click-add-edit",e),M((()=>{I.visible=!0}))},F=e=>{t("delete-rows",e,(()=>{z()}))},W=e=>{t("delete-row",e,(()=>{z()}))},Y=e=>{const{dialogTitle:l}=d;I.isEditing=!0,I.title=l+" "+h("next.table.edit"),I.rowInfo=e.row,t("click-add-edit",e.row),M((()=>{I.visible=!0}))},$=e=>{const{dialogTitle:l}=d;I.isEditing=!1,I.title=l+" "+h("next.table.view"),I.rowInfo=e.row,t("view-add-edit",e.row),M((()=>{I.visible=!0}))},U=()=>{I.visible=!1,I.title="",I.rowInfo={},t("close-add-edit")},X=(...e)=>{t("submit-form",...e)},q=l([]),K=l([]),G=l([]);for(const e in o)e.includes(Wi)?q.value.push(e):e.includes($i)?K.value.push(e):e.includes(Xi)&&G.value.push(e);b("columnSlots",q),b("searchFormSlots",K),b("addEditFormSlots",G);const J=t=>{const{pageIndex:l,pageSize:a}=e.page;return(l-1)*a+(t+1)},Z=a((()=>{const{total:t}=e.page,l=document.createElement("span");l.innerText=t,l.style.visibility="hidden",document.body.appendChild(l);const a=l.getBoundingClientRect().width,n=Math.ceil(a)+25;return document.body.removeChild(l),n>50?n:50})),Q={};K.value.forEach((e=>{Q[e]=(...t)=>o[e]&&o[e](...t)}));const le={};q.value.forEach((e=>{le[e]=(...t)=>o[e]&&o[e](...t)}));const ae={};G.value.forEach((e=>{ae[e]=(...t)=>o[e]&&o[e](...t)}));const ne={};Ii.forEach((e=>{ne[e]=(...t)=>o[e]&&o[e](...t)}));const oe={};Ri.forEach((e=>{oe[e]=(...t)=>o[e]&&o[e](...t)}));r({onClickRowAdd:R,columns:f.value,getFormExpose:()=>T.value?.getFormExpose(),updateColumns:e=>{x(e)},getSearchFormParams:()=>C.value});return()=>i(s,null,[i(s,null,[i("div",{ref:L,class:[ks.b(),e.className],style:e.style},[d.showSearchForm||d.showHeaderMenu?i("header",{ref:j,class:ks.b("header")},[d.showSearchForm&&i(Qi,{columns:v.value,onZoomResize:V,onConfirmSearch:k,onClearSearch:_},Ds(Q)?Q:{default:()=>[Q]}),d.showHeaderMenu&&i(ts,{onClickAdd:R,onDeleteRows:F,onClickRefresh:z},Ds(ne)?ne:{default:()=>[ne]}),o["table-head-tip"]?.()]):null,i(Gi,{loading:e.loading},{default:()=>[i("div",{ref:O,class:ks.b("content")},[i(ee,{data:w.value,height:E.value,rowKey:d.rowKey,border:d.border,stripe:d.stripe,fit:d.fit,size:d.size,"row-style":d.rowStyle,"row-class-name":d.rowClassName,"cell-style":d.cellStyle,"cell-class-name":d.cellClassName,"header-row-style":d.headerRowStyle,"header-row-class-name":d.headerRowClassName,"header-cell-style":d.headerCellStyle,"header-cell-class-name":d.headerCellClassName,"span-method":e.spanMethod,"onSelection-change":B,"onRow-click":(...e)=>t("row-click",...e),"onRow-contextmenu":(...e)=>t("row-contextmenu",...e),"onRow-dblclick":(...e)=>t("row-dblclick",...e),"onCell-click":(...e)=>t("cell-click",...e),"onCell-dblclick":(...e)=>t("cell-dblclick",...e),"onCell-contextmenu":(...e)=>t("cell-contextmenu",...e),"onCell-mouse-enter":(...e)=>t("cell-mouse-enter",...e),"onCell-mouse-leave":(...e)=>t("cell-mouse-leave",...e),"onExpand-change":(...e)=>t("expand-change",...e)},{default:()=>[d.index?i(te,{type:"index",label:"#",width:Z.value,index:J,fixed:"left",headerAlign:d.headerAlign,align:d.cellAlign},null):null,d.selection?i(te,{type:"selection",fixed:"left",label:h("next.table.selectionAll"),width:55,headerAlign:d.headerAlign,align:d.cellAlign},null):null,o.default?.(),f.value.map((e=>i(ls,{columnOption:e,key:e.prop},Ds(le)?le:{default:()=>[le]}))),d.operations?i(as,{onEditRow:Y,onViewRow:$,onDeleteRow:W},Ds(oe)?oe:{default:()=>[oe]}):null],empty:()=>i(ve,{imageSize:E.value>220?100:50,description:h("next.table.notData")},null)})])]}),d.isPagination?i("div",{ref:A,class:ks.b("footer")},[i(ns,{page:e.page,onChange:N},null),o["table-footer-tip"]?.()]):null,i(rs,{modelValue:I.visible,"onUpdate:modelValue":e=>I.visible=e,title:I.title,width:d.dialogWidth,fullscreen:d.dialogFullscreen,closeOnClickModal:d.closeOnClickModal,onClose:U},{default:()=>i(Ss,{ref:T,formDatum:I.rowInfo,columns:m.value,isEditing:I.isEditing,onClose:U,onSubmit:X},Ds(ae)?ae:{default:()=>[ae]})})])])])}});const _s=Sn(Ms);var zs={className:{type:String,default:""},style:{type:Object,default:()=>({})},options:{type:Object,default:()=>({})},loading:{type:Boolean,default:!1},data:{type:Array,default:()=>[]},page:{type:Object,default:()=>({pageIndex:1,pageSize:10,total:0})}},Es={};const Ls=Le("crud-table-virtualized");const js=Sn(r({name:"NextCrudTableVirtualized",props:zs,setup(e,{emit:t}){const l=ai(Es),o=a((()=>{const t=n(e.options);return tn(l,t)})),r=n(o);b("options",a((()=>o.value)));const{t:u}=dn(),c=p({visible:!1,title:u("next.table.add"),rowInfo:{},isEditing:!0}),d=()=>{c.visible=!1,c.title="",c.rowInfo={},t("close-add-edit")};return()=>i(s,null,[i("div",{class:[Ls.b(),e.className]},[i(Os,null,null),i(ds,{modelValue:c.visible,"onUpdate:modelValue":e=>c.visible=e,title:c.title,width:r.dialogWidth,fullscreen:r.dialogFullscreen,closeOnClickModal:r.closeOnClickModal,onClose:d},null)])])}})),Os=Sn(Gi),As=Le("upload");const Ts=Sn(r({name:"NextUpload",props:{className:{type:String,default:""},style:{type:Object,default:()=>({})},listType:{type:String,values:["text","picture","picture-card"],default:"picture-card"},accept:{type:String,default:"image/*"}},emits:["change"],setup(){const{appContext:t}=e(),{t:l}=dn();return{t:l,appContext:t}},render(){const e=this.$slots,t=this.$props,a=this.$emit,n=this.t,o=l([]),r=document.getElementsByTagName("body")[0];let s=null;return i(ue,{class:[As.b(),t.className],style:t.style,"list-type":t.listType,"auto-upload":!1,"on-preview":e=>{const t=o.value.findIndex((t=>t.url===e.url))||0;s&&(k(null,s),r.removeChild(s)),s=document.createElement("div"),r.appendChild(s);const l=i({render:()=>C(v,{to:"body"},[C(ce,{initialIndex:t,"url-list":o.value.map((e=>e.url)),onClose:()=>{k(null,s)}})])});s.appContext=this.appContext,k(l,s)},onChange:(e,t)=>{o.value=t,a("change",e,t)}},{trigger:()=>e.default?e.default():"picture-card"===t.listType?i(H,null,{default:()=>[i(Fo,null,null)]}):i(Q,{link:!0,text:!0,type:"primary"},{default:()=>[i(H,null,{default:()=>[i(Fo,null,null)]}),i("em",null,[n("next.form.selectFile")])]})})}})),Vs=Le("video-player");var Hs=r({name:"NextVideoPlayer",props:{className:{type:String,default:""},style:{type:Object,default:()=>({})},type:{type:String,default:"mp4",values:["mp4","m3u8","flv","mpegts"]},src:{type:String,default:""},autoplay:{type:Boolean,default:!0},tensorflow:{type:Object}},emits:["loaded","play","error","detector"],setup(e,{emit:t,expose:a}){const{lang:n}=dn(),o={"zh-cn":Se,en:De,"zh-tw":ke};o[n.value]?Ce.addLanguage("zh-CN",o[n.value]):Ce.addLanguage("zh-CN",Se);const r=D(e.src),u=l(),c=l(),d=l(),p=l(),h=l(),f=l(null),v=l(null),m=e=>{const t=i({render:()=>C("span",{class:"screemshot-btn",onClick:()=>((e,t)=>{const l=be(ye(),"YYYY-MM-DD_HH-mm-ss").value,a=e.el().getElementsByTagName("video")[0],n=document.createElement("canvas"),o=a.videoWidth,r=a.videoHeight;n.width=o,n.height=r;const i=n.getContext("2d"),s=o/r,u=n.width/n.height,c=o,d=r;let p,h,f,v;s>u?(f=n.width,v=n.width/s,p=0,h=Math.round((n.height-v)/2)):s===u?(f=n.width,v=n.height,p=0,h=0):s<u&&(f=n.height*s,v=n.height,p=Math.round((n.width-f)/2),h=0),i.drawImage(a,0,0,c,d,p,h,f,v),t&&i.drawImage(t,0,0);const m="image/png";let g=n.toDataURL(m,.92).replace(m,"image/octet-stream");g=g.replace(/^data:image\/[^;]+/,"data:application/octet-stream");const b=document.createElement("a");b.href=g,b.download=l+"_screenshot.png",b.click()})(d.value,v.value)},[C(H,{color:"#FFFFFF",size:"22px"},{default:()=>C(to)})])});d.value.on("loadedmetadata",(()=>{k(t,e)}))},b=(t,l)=>{if(!e.tensorflow)return;const{modelUrl:a,classNames:n}=e.tensorflow;if(!a)throw new Error("模型文件地址不能未空!");if(!n||!n.length)throw new Error("模型类别不能未空!");t.innerHTML="",we.loadGraphModel(a).then((e=>{const a=document.createElement("canvas");a.className=Vs.b("recongition"),t.appendChild(a);const o=a.getContext("2d"),r=document.createElement("canvas").getContext("2d");l.ontimeupdate=()=>{const{videoWidth:t,videoHeight:i,offsetTop:s,offsetLeft:u}=l;a.width=t,a.height=i,a.style.top=s+"px",a.style.left=u+"px",xn(l,e,o,we,n,[],r)},f.value=e,v.value=a}))};g((()=>{f.value&&(we.dispose(),f.value.dispose(),f.value=null),d.value&&(d.value.mse&&(d.value.mse.endOfStream(),d.value.mse.unload(),d.value.mse=null),d.value.pause(),d.value.dispose(),d.value=null),p.value&&(p.value.pause(),p.value.unload(),p.value.detachMediaElement(),p.value.destroy(),p.value=null),h.value&&(h.value.pause(),h.value.unload(),h.value.detachMediaElement(),h.value.destroy(),h.value=null),u.value&&k(null,u.value)}));const y=l=>{if(!l)return(()=>{const l=u.value,a=document.createElement("video");a.className="video-js vjs-default-skin",e.autoplay&&a.setAttribute("autoplay","true"),a.setAttribute("muted","true"),c.value=a,l.appendChild(a),d.value=Ce(a,{techOrder:["html5"],controls:!0,fluid:!0,preload:"auto",language:"zh-CN",sources:[]});const n=document.createElement("div");l.children[0].appendChild(n),d.value.on("play",(()=>{t("play",a,l),b(n,a)})),m(l),t("loaded",{player:d.value,video:a})})(),!1;const a=e.type;"m3u8"===a?(l=>{const a=u.value,n=document.createElement("video");n.className="video-js vjs-default-skin",e.autoplay&&n.setAttribute("autoplay","true"),n.setAttribute("muted","true"),c.value=n,a.appendChild(n);const o={techOrder:["html5"],flvjs:{mediaDataSource:{cors:!0,withCredentials:!1}},controls:!0,fluid:!0,preload:"auto",language:"zh-CN",sources:[{src:l,type:"application/x-mpegURL"}]};d.value=Ce(n,o);const r=document.createElement("div");a.children[0].appendChild(r),d.value.on("play",(()=>{t("play",n,a),b(r,n)})),m(a),t("loaded",{player:d.value,video:n})})(l):"mp4"===a?(l=>{const a=u.value,n=document.createElement("video");n.className="video-js vjs-default-skin",e.autoplay&&n.setAttribute("autoplay","true"),n.setAttribute("muted","true"),c.value=n,a.appendChild(n);const o={techOrder:["html5"],controls:!0,fluid:!0,preload:"auto",language:"zh-CN",sources:[{src:l,type:"video/mp4"}]};d.value=Ce(n,o);const r=document.createElement("div");a.children[0].appendChild(r),d.value.on("play",(()=>{t("play",n,a),b(r,n)})),m(a),t("loaded",{player:d.value,video:n})})(l):"mpegts"===a?(async l=>{let a=window.mpegts;if(a||(a=await import("mpegts.js")),a&&a.getFeatureList().mseLivePlayback){const n=u.value,o=document.createElement("video");o.className="video-js vjs-default-skin",e.autoplay&&o.setAttribute("autoplay","true"),o.setAttribute("muted","true"),c.value=o,n.appendChild(o);const r={controls:!0,autoplay:!1,fluid:!0,muted:!0,liveui:!0,preload:"auto",language:"zh-CN"};d.value=Ce(o,r),h.value=a.createPlayer({enableWorker:!0,type:"flv",isLive:!0,url:l}),h.value.attachMediaElement(o),h.value.load(),h.value.on("error",(()=>{t("error",o)})),m(n);const i=document.createElement("div");n.children[0].appendChild(i),h.value.on("metadata_arrived",(()=>{t("play",o,n),b(i,o)})),t("loaded",{player:d.value,video:o})}})(l):"flv"===a&&(async l=>{let a=window.flvjs;a||(a=await import("flv.js"));const n=u.value,o=document.createElement("video");o.className="video-js vjs-default-skin",e.autoplay&&o.setAttribute("autoplay","true"),o.setAttribute("muted","true"),c.value=o,n.appendChild(o),d.value=Ce(o,{techOrder:["html5","flvjs"],flvjs:{mediaDataSource:{cors:!0,withCredentials:!1}},controls:!0,fluid:!0,preload:"auto",language:"zh-CN"}),a.isSupported()&&(p.value=a.createPlayer({type:"flv",url:l}),p.value.attachMediaElement(o),p.value.load());const r=document.createElement("div");n.children[0].appendChild(r),d.value.on("play",(()=>{t("play",o,n),b(r,o)})),m(n),t("loaded",{player:d.value,video:o})})(l)};S((()=>{M((()=>{y(r)}))}));a({getElement:()=>{const e=u.value,t=e.children[0];return{videoElement:c.value,container:e,palyerContainer:t}}});return()=>i(s,null,[i("div",{ref:u,class:[Vs.b(),e.className],style:e.style},null)])}});const Ns=Sn(Hs);const Ps=Sn(r({name:"NextDragResize",props:{},setup:()=>()=>i(s,null,[i(s,null,null)])}));var Bs=r({props:{isFullscreen:{type:Boolean,default:!1},imageIndex:{type:Number,default:0},imageLength:{type:Number,default:0}},emits:["fullscreen","save"],setup(e,{emit:l}){const a=t("ns",{}),{t:n}=dn(),o=e=>{l("fullscreen",e)};return()=>i(s,null,[i(s,null,[i("ul",{class:[a.be("header","tool")]},[i("li",{class:"hover",onClick:()=>l("save")},[i("svg",{t:"1719034799379",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4272",width:"18",height:"18"},[i("path",{d:"M831.4 252.2L711.5 132.4c-10.3-10.3-24.2-16.1-38.8-16.1h-450c-23.3 0-42.2 18.9-42.2 42.2v709.4c0 23.3 18.9 42.2 42.2 42.2h582.6c23.3 0 42.2-18.9 42.2-42.2V291c-0.1-14.5-5.8-28.5-16.1-38.8zM619.6 159v159.8c0 4-3.3 7.3-7.3 7.3H387.2c-4 0-7.3-3.3-7.3-7.3V159h239.7z m67.7 708.4H340.8v-292c0-3.9 3.2-7.1 7.1-7.1h332.4c3.9 0 7.1 3.2 7.1 7.1v292z m117.4 0H730v-292c0-27.5-22.3-49.8-49.8-49.8H347.8c-27.5 0-49.8 22.3-49.8 49.8v292h-74.7V159.1h113.9v159.8c0 27.6 22.4 50.1 50.1 50.1h225.1c27.6 0 50.1-22.4 50.1-50.1V159h10.4c3.2 0 6.3 1.3 8.6 3.6l119.9 119.9c2.3 2.3 3.6 5.3 3.6 8.6l-0.3 576.3z","p-id":"4273"},null),i("path",{d:"M536 196.3h42.7v87.2H536zM368.7 641.2h220.7v42.7H368.7zM368.7 744h170.9v42.7H368.7z","p-id":"4274"},null)]),i("span",{style:"padding-left: 3px"},[n("next.labelimg.saveLabel")])])]),i("ul",{class:[a.be("header","tool")]},[e.imageLength?i("li",null,[i("span",null,[h("第 "),e.imageIndex+1,h(" 张")]),i("em",{style:"padding: 0 5px;"},[h("/")]),i("span",null,[h("共 "),e.imageLength,h(" 张")])]):null,i("li",{style:"margin-right: 30px;",class:"hover"},[i(me,{trigger:"hover",placement:"bottom",width:"none"},{reference:()=>i("div",{class:"flex-center"},[i("span",{style:"padding-right: 3px"},[n("next.labelimg.instructions")]),i(H,{size:14},{default:()=>[i(xr,null,null)]})]),default:()=>i("ul",{style:"font-size: 12px;white-space: nowrap;"},[i("li",null,[i("span",null,[h("W:")]),i("span",null,[h("鼠标移入图片中,长按W键,鼠标按下左键,移动鼠标开始绘制,鼠标抬起结束绘制")])]),i("li",null,[i("span",null,[h("A:")]),i("span",null,[h("A键进入上一张图片进行标注")])]),i("li",null,[i("span",null,[h("D:")]),i("span",null,[h("D键进入下一张图片进行标注")])])])})]),e.isFullscreen?i("li",{class:"hover",onClick:()=>o(!1)},[i(L,{placement:"top",content:"取消全屏"},{default:()=>[i("svg",{t:"1719035442027",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5388",width:"18",height:"18"},[i("path",{d:"M354.133333 682.666667H256v-42.666667h170.666667v170.666667H384v-98.133334L243.2 853.333333l-29.866667-29.866666L354.133333 682.666667z m358.4 0l140.8 140.8-29.866666 29.866666-140.8-140.8V810.666667h-42.666667v-170.666667h170.666667v42.666667h-98.133334zM354.133333 384L213.333333 243.2l29.866667-29.866667L384 354.133333V256h42.666667v170.666667H256V384h98.133333z m358.4 0H810.666667v42.666667h-170.666667V256h42.666667v98.133333L823.466667 213.333333l29.866666 29.866667L712.533333 384z","p-id":"5389"},null)])]})]):i("li",{class:"hover",onClick:()=>o(!0)},[i(L,{placement:"top",content:"全屏"},{default:()=>[i("svg",{t:"1719035375323",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5241",width:"18",height:"18"},[i("path",{d:"M285.866667 810.666667H384v42.666666H213.333333v-170.666666h42.666667v98.133333l128-128 29.866667 29.866667-128 128z m494.933333 0l-128-128 29.866667-29.866667 128 128V682.666667h42.666666v170.666666h-170.666666v-42.666666h98.133333zM285.866667 256l128 128-29.866667 29.866667-128-128V384H213.333333V213.333333h170.666667v42.666667H285.866667z m494.933333 0H682.666667V213.333333h170.666666v170.666667h-42.666666V285.866667l-128 128-29.866667-29.866667 128-128z","p-id":"5242"},null)])]})])])])])}});const Is=["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],Rs=e=>{const t=e.type,l=e.startX+e.rectWidth/2,a=e.startY+e.rectHeight/2;return[t,parseFloat((l/e.canvasWidth).toFixed(6)),parseFloat((a/e.canvasHeight).toFixed(6)),parseFloat((e.rectWidth/e.canvasWidth).toFixed(6)),parseFloat((e.rectHeight/e.canvasHeight).toFixed(6))]},Fs=(e,t,l)=>{const[a,n,o,r,i]=e,s=r*t,u=i*l,c=n*t-s/2,d=o*l-u/2;return{type:a,startX:Math.ceil(c),startY:Math.ceil(d),rectWidth:Math.ceil(s),rectHeight:Math.ceil(u),canvasWidth:t,canvasHeight:l}};var Ws=r({props:{labelRect:{type:Object,default:()=>({})},classes:{type:Array,default:()=>[]},activateRect:{type:Object,default:null}},emits:["close","select","delete"],setup(e,{emit:n}){const o=t("ns",{}),r=()=>{n("close")},u=()=>{n("delete",e.activateRect)},c=l();y((()=>e.activateRect),(()=>{const{type:t}=e.activateRect;c.value=oi(t)?t:null}),{deep:!0,immediate:!0});const d=l({width:0,height:0});S((()=>{const{clientWidth:e,clientHeight:t}=p.value;d.value.width=e,d.value.height=t}));const p=l(),f=a((()=>{const{left:t,top:l}=e.labelRect,a=l+d.value.height-window.innerHeight;let n=l;return a>0&&(n-=a),{top:n+"px",left:t+"px"}})),v=()=>i("div",{ref:p,class:[o.b("contextmenu-label")],style:f.value},[i("div",{class:"label-head"},[i("span",{style:"padding-right: 30px"},[h("标签选择")]),i(H,{size:16,onClick:r},{default:()=>[i(oo,null,null)]})]),i("ul",{class:"label-main"},[e.classes.map(((e,t)=>i("li",{key:t,onClick:()=>(e=>{c.value=e,n("select",e)})(t),class:{"activate-label":c.value===t}},[i("span",{style:{"background-color":Is[t%Is.length]},class:"label-line"},null),i("span",null,[e])])))]),oi(c.value)?i("div",{style:"margin: 10px auto 0"},[i(Q,{icon:bo,plain:!0,size:"small",type:"danger",onClick:u},{default:()=>[h("删除标注框")]})]):null]);return()=>i(s,null,[v()])}});const{hexToRgb:Ys}=hn();var $s=r({props:{parentEl:{type:Object,default:null},rect:{type:Object,default:()=>({})},color:{type:String,default:null}},emits:["draggle-resize","contextmenu"],setup(e,{emit:t}){const a=l(!1),n=l({topLeft:!1,topCenter:!1,topRight:!1,leftCenter:!1,rightCenter:!1,bottomLeft:!1,bottomCenter:!1,bottomRight:!1}),o=l({diff_x:null,diff_y:null});let r={};const i=_(e.rect),s=e=>{e.preventDefault(),e.stopPropagation(),a.value=!1,n.value.topLeft=!1,n.value.topCenter=!1,n.value.topRight=!1,n.value.leftCenter=!1,n.value.rightCenter=!1,n.value.bottomLeft=!1,n.value.bottomCenter=!1,n.value.bottomRight=!1,t("draggle-resize",i.value)},u=30,c=e=>{if(a.value){const t=e.clientX-r.left-o.value.diff_x,l=e.clientY-r.top-o.value.diff_y;i.value.startX=Math.max(0,Math.min(t,r.width-i.value.rectWidth)),i.value.startY=Math.max(0,Math.min(l,r.height-i.value.rectHeight))}if(n.value.bottomCenter){let t=e.clientY-r.top-i.value.startY;t<u&&(t=u),t+i.value.startY>r.height&&(t=r.height-i.value.startY),i.value.rectHeight=t}if(n.value.topCenter){let t=e.clientY-r.top,l=i.value.startY-t+i.value.rectHeight;if(t<0)return;if(l<u)return;i.value.rectHeight=l,i.value.startY=Math.max(0,Math.min(t,r.height-i.value.rectHeight))}if(n.value.leftCenter){let t=e.clientX-r.left,l=i.value.startX-t+i.value.rectWidth;if(t<0)return;if(l<u)return;i.value.startX=Math.max(0,Math.min(t,r.width-i.value.rectWidth)),i.value.rectWidth=l}if(n.value.rightCenter){let t=e.clientX-r.left-i.value.startX;t<u&&(t=u),t+i.value.startX>r.width&&(t=r.width-i.value.startX),i.value.rectWidth=t}if(n.value.bottomRight){let t=e.clientX-r.left-i.value.startX,l=e.clientY-r.top-i.value.startY;t<u&&(t=u),l<u&&(l=u),t+i.value.startX>r.width&&(t=r.width-i.value.startX),l+i.value.startY>r.height&&(l=r.height-i.value.startY),i.value.rectWidth=t,i.value.rectHeight=l}if(n.value.bottomLeft){let t=e.clientX-r.left,l=i.value.startX-t+i.value.rectWidth,a=e.clientY-r.top-i.value.startY;if(t<0)return;if(l<u)return;a<u&&(a=u),a+i.value.startY>r.height&&(a=r.height-i.value.startY),i.value.startX=Math.max(0,Math.min(t,r.width-i.value.rectWidth)),i.value.rectWidth=l,i.value.rectHeight=a}if(n.value.topLeft){let t=e.clientY-r.top,l=i.value.startY-t+i.value.rectHeight;if(t<0)return;if(l<u)return;i.value.rectHeight=l,i.value.startY=Math.max(0,Math.min(t,r.height-i.value.rectHeight));let a=e.clientX-r.left,n=i.value.startX-a+i.value.rectWidth;if(a<0)return;if(n<u)return;i.value.startX=Math.max(0,Math.min(a,r.width-i.value.rectWidth)),i.value.rectWidth=n}if(n.value.topRight){let t=e.clientY-r.top,l=i.value.startY-t+i.value.rectHeight;if(t<0)return;if(l<u)return;i.value.rectHeight=l,i.value.startY=Math.max(0,Math.min(t,r.height-i.value.rectHeight));let a=e.clientX-r.left-i.value.startX;a<u&&(a=u),a+i.value.startX>r.width&&(a=r.width-i.value.startX),i.value.rectWidth=a}};return S((()=>{r=e.parentEl.getBoundingClientRect(),document.addEventListener("mousemove",c),document.addEventListener("mouseup",s)})),g((()=>{document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",s)})),{onMousedown:e=>{e.preventDefault(),a.value=!0,o.value.diff_x=e.offsetX,o.value.diff_y=e.offsetY},onMouseup:s,onContextmenu:e=>{e.preventDefault(),e.preventDefault(),t("contextmenu",e,i.value)},rect:i,onMousedownDot:(e,t)=>{e.preventDefault(),e.stopPropagation(),n.value[t]=!0}}},render(){const e=t("ns",{}),l=this.$props;return i("div",{class:[e.b("draggable-rect")],style:(()=>{const{startX:e,startY:t,rectWidth:a,rectHeight:n}=this.rect,o={top:t+"px",left:e+"px",width:a+"px",height:n+"px"},r=l.color;if(r){const e=Ys(r);e&&(o.backgroundColor=`rgba(${e[0]},${e[1]},${e[2]}, 0.5)`)}return o})(),onMousedown:this.onMousedown,onMouseup:this.onMouseup,onContextmenu:this.onContextmenu},[i("ul",{class:[e.be("draggable-rect","resize")]},[i("li",{class:"top-left",onMousedown:e=>this.onMousedownDot(e,"topLeft")},null),i("li",{class:"top-center",onMousedown:e=>this.onMousedownDot(e,"topCenter")},null),i("li",{class:"top-right",onMousedown:e=>this.onMousedownDot(e,"topRight")},null),i("li",{class:"left-center",onMousedown:e=>this.onMousedownDot(e,"leftCenter")},null),i("li",{class:"right-center",onMousedown:e=>this.onMousedownDot(e,"rightCenter")},null),i("li",{class:"bottom-left",onMousedown:e=>this.onMousedownDot(e,"bottomLeft")},null),i("li",{class:"bottom-center",onMousedown:e=>this.onMousedownDot(e,"bottomCenter")},null),i("li",{class:"bottom-right",onMousedown:e=>this.onMousedownDot(e,"bottomRight")},null)])])}}),Us=r({name:"NextCanvasContext",props:{classes:{type:Array,default:()=>[]},contextClientHeight:{type:Number,default:null},rowInfo:{type:Object,default:()=>({})}},emits:["change"],setup(e,{emit:n,expose:o}){const r=t("ns",{}),u=t("_emit",null),c=l(),d=l(),p=l(),h=l([]),f=l({}),v=()=>{const e=ai(h.value);let t=[];return{rects:e.map((e=>{delete e.typeName;const l=Rs(e);return t.push(l.join(" ")),D(e)})),label_txt:t.join("\n")}},m=(e,t)=>{c.value.style.width=e+"px",c.value.style.height=t+"px",d.value.width=e,d.value.height=t,d.value.style.width=e+"px",d.value.style.height=t+"px",p.value.width=e,p.value.height=t,p.value.style.width=e+"px",p.value.style.height=t+"px"},b=l(!1),x=t=>{h.value=(t=>t.labels?t.labels.map((t=>{const l=e.classes[t.type];return l&&(t.typeName=l),t})):[])(t);const l=c.value?.clientHeight,a=d.value?.getContext("2d");if(t?.imageSrc){const e=new Image;e.src=t.imageSrc,b.value=!0,e.onload=()=>{b.value=!1;let{width:t,height:n}=e;if(n>l){const a=n/l;n=l,e.style.height=n+"px",t/=a}const o=n,r=parseFloat((o/n).toFixed(3)),i=Math.ceil(t*r);m(i,o),h.value=((e,t)=>{let l=[];for(let a=0;a<e.length;a++){const n=e[a],o=parseFloat((t/n.canvasHeight).toFixed(3));o&&(n.startX=Math.ceil(n.startX*o),n.startY=Math.ceil(n.startY*o),n.rectWidth=Math.ceil(n.rectWidth*o),n.rectHeight=Math.ceil(n.rectHeight*o),n.canvasWidth=Math.ceil(n.canvasWidth*o),n.canvasHeight=t),l.push(n)}return l})(h.value,o);const{updateLabels:s,addDrawRect:u,hitCanvasLabel:c}=(e=>{const{ctx:t,labels:l,image:a,canvasWidth:n,canvasHeight:o}=e,r=()=>{t.clearRect(0,0,n,o),t.drawImage(a,0,0,n,o);for(let e=0;e<l.length;e++){const a=l[e],{startX:n,startY:o,rectWidth:r,rectHeight:i,type:s}=a,u=Is[s%Is.length];if(t.font="bold 14px serif",t.textBaseline="top",t.save(),t.strokeStyle=u,t.strokeRect(n,o,r,i),oi(a.typeName)||oi(a.type)){const e=a.typeName||a.type;t.fillStyle=u,t.fillText(e,n+6,o+6)}t.restore()}};return r(),{updateLabels:r,addDrawRect:(e,l="#f30635")=>{const{startX:a,startY:n,rectWidth:o,rectHeight:r}=e;t.strokeStyle=l,t.strokeRect(a,n,o,r)},hitCanvasLabel:(e,t)=>{let a=null,n=null,o=null;for(let r=0;r<l.length;r++){const i=l[r],{type:s,startX:u,startY:c,rectWidth:d,rectHeight:p}=i;e>=u&&e<=u+d&&t>=c&&t<=c+p&&(a=i,n=r,o=Is[s])}return{hit_rect:a,hit_index:n,color:o}}}})({canvas:d.value,ctx:a,image:e,canvasWidth:i,canvasHeight:o,labels:h.value,scaleFactor:r});f.value.updateLabels=s,f.value.addDrawRect=u,f.value.hitCanvasLabel=c;const{clearCanvas:v,removeEventAll:g}=((e,t,l)=>{const a=e.width,n=e.height,o=e?.getContext("2d"),r=()=>{o.clearRect(0,0,a,n)};r();let i,s,u,c,d=!1,p=!1,h=!1;const f=()=>{const e=Math.abs(u-i),l=Math.abs(c-s);i>u&&(i=u),s>c&&(s=c),t&&t({startX:i,startY:s,rectWidth:e,rectHeight:l,canvasWidth:a,canvasHeight:n},{endX:u,endY:c})},v=t=>{"KeyW"===t.code&&(h=!0,e.style.cursor="crosshair",e.style.zIndex="11",l&&l())},m=t=>{d||"KeyW"===t.code&&(h=!1,e.style.cursor="unset",e.style.zIndex="0")},g=()=>{p&&(d=!1,h=!1,e.style.cursor="unset",e.style.zIndex="0",f(),p=!1)};document.addEventListener("keydown",v),document.addEventListener("keyup",m),document.addEventListener("mouseup",g);const b=e=>{h&&(d=!0,i=e.offsetX,s=e.offsetY)},y=e=>{d&&h&&(p=!0,u=e.offsetX,c=e.offsetY,w())},x=t=>{t.stopPropagation(),p&&(d=!1,h=!1,e.style.cursor="unset",e.style.zIndex="0",f(),p=!1)};e.addEventListener("mousedown",b),e.addEventListener("mousemove",y),e.addEventListener("mouseup",x);const w=(e="#f30635")=>{r(),o.strokeStyle=e,o.strokeRect(i,s,u-i,c-s)};return{canvas:e,ctx:o,clearCanvas:r,drawRect:w,removeEventAll:()=>{document.removeEventListener("mousedown",v),document.removeEventListener("keyup",m),document.removeEventListener("mouseup",g),e.removeEventListener("mousedown",b),e.removeEventListener("mousemove",y),e.removeEventListener("mouseup",x)}}})(p.value,((e,{endX:t,endY:l})=>{A.value=e,f.value.addDrawRect(e),C(t,l,e)}),(()=>{L()}));f.value.clearCanvasRect=v,f.value.removeEventAll=g},e.onerror=()=>{b.value=!1}}d.value.addEventListener("contextmenu",(e=>{e.preventDefault();const t=e.offsetX,l=e.offsetY,{hit_rect:a}=f.value.hitCanvasLabel(t,l);k(),L(),a&&M((()=>{C(t,l,a)}))})),d.value.addEventListener("click",(e=>{const t=e.offsetX,l=e.offsetY,{hit_rect:a,hit_index:n,color:o}=f.value.hitCanvasLabel(t,l);L(),k(),a&&M((()=>{E(t,l,a,n,o)}))}))};S((()=>{y((()=>e.rowInfo),(e=>{const t=D(e);x(t)}),{deep:!0,immediate:!0}),y((()=>e.contextClientHeight),(t=>{if(ri(t)){c.value.style.height=t+"px";const l=D(e.rowInfo);x(l)}}))})),g((()=>{f.value.removeEventAll()}));const w=l({show:!1,top:0,left:0,activateRect:null}),C=(e,t,l)=>{const a=d.value.getBoundingClientRect();w.value.show=!0,w.value.left=e+a.x,w.value.top=t+a.y,w.value.canvasWidth=d.value.width,w.value.canvasHeight=d.value.height,w.value.activateRect=l,A.value=l},k=()=>{w.value.show=!1,w.value.top=0,w.value.left=0,w.value.activateRect=null,A.value=null,f.value.updateLabels(),f.value.clearCanvasRect()},_=a((()=>{const{top:e,left:t,canvasWidth:l,canvasHeight:a}=w.value;return{top:e,left:t,canvasWidth:l,canvasHeight:a}})),z=l({show:!1,top:0,left:0,width:0,height:0,activateRect:null,activateIndex:null,color:null}),E=(e,t,l,a,n)=>{z.value.show=!0,z.value.top=t,z.value.left=e,z.value.width=l.rectWidth,z.value.height=l.rectHeight,z.value.activateRect=l,z.value.activateIndex=a,z.value.color=n},L=()=>{z.value.show=!1,z.value.top=0,z.value.left=0,z.value.width=0,z.value.height=0,z.value.activateRect=null,z.value.activateIndex=null,z.value.color=null},j=e=>{z.value.activateRect=e,f.value.updateLabels();const t=h.value.findIndex((t=>Pi(t,e)));t>-1&&h.value.splice(t,1,e);const{rects:l,label_txt:a}=v();u("change",l,a),n("change",l,a)},O=(e,t)=>{e.preventDefault();const l=e.offsetX,a=e.offsetY,n=l+t.startX,o=a+t.startY;k(),M((()=>{C(n,o,t)}))},A=l(),T=t=>{A.value.type=t;const l=e.classes[t];l&&(A.value.typeName=l);const a=h.value.findIndex((e=>Pi(e,A.value)));a>-1?h.value.splice(a,1,A.value):h.value.push(A.value),k();const{rects:o,label_txt:r}=v();u("change",o,r),n("change",o,r)},V=e=>{const t=h.value.findIndex((t=>Pi(t,e)));h.value.splice(t,1),k(),L(),f.value.updateLabels();const{rects:l,label_txt:a}=v();u("change",l,a),n("change",l,a)};o({onCloseDraggableRectFixed:L,onCloseContentmenuLabel:k,onSelectedLabel:(e,t)=>{L(),M((()=>{const{startX:l,startY:a,type:n}=e,o=Is[n];E(l,a,h.value[t],t,o)}))},onDeleteLabel:V,rerenderImage:()=>{m(0,0),k(),L(),M((()=>{const t=D(e.rowInfo);x(t)}))}});return()=>i(s,null,[i(Os,{loading:b.value,class:[r.b("loading")]},{default:()=>[i("div",{ref:c,class:[r.b("canvas")]},[i("canvas",{ref:d,class:[r.be("canvas","context")]},null),i("canvas",{ref:p,class:[r.be("canvas","rect")]},null),w.value.show?i(Ws,{labelRect:_.value,classes:e.classes,activateRect:w.value.activateRect,onClose:k,onSelect:T,onDelete:V},null):null,z.value.show?i($s,{parentEl:c.value,rect:z.value.activateRect,color:z.value.color,onDraggleResize:j,onContextmenu:O},null):null])]})])}}),Xs=r({props:{contentHeight:{type:Number},classes:{type:Array,default:()=>[]},labels:{type:Array,default:()=>[]}},emits:["delete","select"],setup(e,{emit:a}){const{t:n}=dn(),o=t("ns",{}),r=l([]);y((()=>e.labels),(t=>{const l=D(t);r.value=(t=>t.length?t.map((t=>{const l=e.classes[t.type];return l&&(t.typeName=l),t})):[])(l)}),{deep:!0,immediate:!0});const u=()=>i("div",{class:[o.b("right")],style:{height:e.contentHeight+"px"}},[r.value.length?i("ul",null,[r.value.map(((e,t)=>i("li",{key:t,onClick:()=>((e,t)=>{a("select",e,t)})(e,t)},[i("div",null,[i("span",{style:{"background-color":Is[e.type]},class:"label-line"},null),i("span",null,[e.typeName])]),i(ge,{title:n("next.labelimg.confirmDeleteLabel"),width:200,onConfirm:()=>(e=>{a("delete",e)})(e)},{reference:()=>i(H,{size:16,color:"#ff0000",onClick:e=>{e.preventDefault(),e.stopPropagation()}},{default:()=>[i(bo,null,null)]})})])))]):i(ve,{"image-size":120,description:n("next.labelimg.emptyLabelText")},null)]);return()=>i(s,null,[u()])}}),qs={minContentHeight:500};const Ks=Le("labelimg");var Gs=r({name:"NextLabelimg",props:{className:{type:String,default:""},style:{type:Object,default:()=>({})},options:{type:Object,default:()=>({})},classes:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]}},emits:["change","save","prev-click","next-click"],setup(e,{emit:t,slots:o,expose:r}){const{t:u}=dn(),c=ai(qs),d=a((()=>{const t=n(e.options);return tn(c,t)})),p=n(d);b("ns",Ks),b("_emit",t);const h=l(0),f=l(e.classes),v=l(ai(e.data));y((()=>e.data),(e=>{v.value=ai(e)}),{deep:!0}),y((()=>e.data.length),(()=>{h.value=0})),y((()=>e.classes),(e=>{f.value=e}),{deep:!0});const m=a((()=>{if(!v.value)return{};const e=v.value[h.value]||{};return ai(e)})),x=l(m.value.labels||[]);y((()=>m.value),(()=>{x.value=m.value.labels||[]}));const w=e=>{m.value.labels=e,x.value=e},C=l(!1),k=()=>{const e=m.value;let t=[];return e.labels.forEach((e=>{delete e.typeName;const l=Rs(e);t.push(l.join(" "))})),{node:e,label_txt:t.join("\n")}},_=()=>{const e=v.value[h.value];return Pi(D(e.labels).map((e=>Rs(e))),m.value.labels.map((e=>Rs(e))))},z=e=>{const t=v.value.length;"KeyD"===e.code?(h.value++,h.value>=t&&(h.value=0)):"KeyA"===e.code&&(h.value--,h.value<0&&(h.value=t-1))},L=e=>{if(C.value)return;if(!["KeyA","KeyD"].includes(e.code))return;C.value=!0;const{node:l,label_txt:a}=k();if(V.value.onCloseDraggableRectFixed(),_())return z(e),void(C.value=!1);t("save",{node:l,label_txt:a},(t=>{v.value[h.value]=t||l,z(e),C.value=!1}),(()=>{C.value=!1}))},O=e=>{if(C.value)return;C.value=!0;const{node:l,label_txt:a}=k();return V.value.onCloseDraggableRectFixed(),_()?(h.value=e,C.value=!1,!1):(t("save",{node:l,label_txt:a},(t=>{v.value[h.value]=t||l,h.value=e,C.value=!1}),(()=>{C.value=!1})),!0)},A=()=>{const e=v.value.length;let l=h.value-1;l<0&&(l=e-1),O(l),t("prev-click")},T=()=>{const e=v.value.length;let l=h.value+1;l>=e&&(l=0),O(l),t("next-click")},V=l(),N=l(),P=l(),B=l(),I=l(),R=l(p.minContentHeight),F=()=>{M((()=>{const e=(N.value?.clientHeight||0)-((P.value?.clientHeight||0)+(I.value?.clientHeight||0));R.value=e}))};S((()=>{document.addEventListener("keydown",L),li(N.value.parentElement,(()=>{F()})),window.addEventListener("resize",F)})),g((()=>{document.removeEventListener("keydown",L),window.removeEventListener("resize",F)}));const W=(e,t)=>{V.value.onSelectedLabel(e,t)},Y=e=>{V.value.onDeleteLabel(e)},$=l(!1),U=e=>{$.value=e,F(),M((()=>{V.value.rerenderImage()}))};r({convertToLabel:Rs,canvertToCanvas:Fs});const X=()=>i("div",{ref:N,class:[Ks.b(),e.className,$.value?Ks.b("fullscreen"):""],style:{...e.style}},[i(Gi,{loading:C.value,tip:u("next.labelimg.saveTxt"),class:[Ks.b("loading")]},{default:()=>[i(j,null,{default:()=>[i("header",{ref:P,class:[Ks.b("header")]},[o.header?o.header():i(Bs,{isFullscreen:$.value,imageIndex:h.value,imageLength:v.value.length,onFullscreen:U,onSave:()=>{O(h.value)||E({type:"info",message:u("next.labelimg.labelNoUpdate")})}},null)]),i("div",{ref:B,class:[Ks.b("main")]},[i(j,{class:[Ks.be("main","content")]},{default:()=>[i("div",{class:[Ks.be("main","content")],style:{height:R.value+"px"}},[i(Us,{ref:V,contextClientHeight:R.value,classes:f.value,rowInfo:m.value,onChange:w},null)])]}),i(Xs,{contentHeight:R.value,classes:f.value,labels:x.value,onDelete:Y,onSelect:W},null)]),i("footer",{ref:I,class:[Ks.b("footer")]},[i("div",{class:[Ks.be("footer","left")]},[i(H,{size:24,color:"#797979",onClick:A},{default:()=>[i(Bn,null,null)]})]),i("div",{class:[Ks.be("footer","center")]},[i(j,null,{default:()=>[i("ul",{class:[Ks.bem("footer","center","list")]},[v.value.map(((e,t)=>i("li",{key:t,onClick:()=>O(t),class:{"is-activate":h.value===t}},[i(de,{style:"height: 100%",src:e.imageSrc,"zoom-rate":1.2,"max-scale":2,"min-scale":.2,fit:"cover"},null)])))])]})]),i("div",{class:[Ks.be("footer","right")]},[i(H,{size:24,color:"#797979",onClick:T},{default:()=>[i(Wn,null,null)]})])])]})]})]);return()=>i(s,null,[X()])}});const Js=Le("labelimg-preview");var Zs=r({name:"NextLabelimgPreview",props:{className:{type:String,default:""},style:{type:Object,default:()=>({})},src:{type:String,default:""},classes:{type:Array,default:()=>[]},labels:{type:Array,default:()=>[]}},setup(e){const t=l(),a=l(ai(e.classes)),n=l(ai(e.labels)),o=()=>{if(e.src){const l=t.value?.getContext("2d"),o=new Image;o.src=e.src,o.onload=()=>{const{width:e,height:r}=o,i=r,s=i/r,u=Math.ceil(e*s);((e,l)=>{t.value.width=e,t.value.height=l,t.value.style.width=e+"px",t.value.style.height=l+"px"})(u,i),l.clearRect(0,0,u,i),l.drawImage(o,0,0,u,i);for(let e=0;e<n.value.length;e++){const t=n.value[e],{startX:o,startY:r,rectWidth:i,rectHeight:s,type:u}=t,c=Is[u%Is.length];if(l.font="bold 14px serif",l.textBaseline="top",l.save(),l.strokeStyle=c,l.strokeRect(o,r,i,s),!oi(t.typeName)){const e=a.value[t.type];e&&(t.typeName=e)}if(oi(t.typeName)||oi(t.type)){const e=t.typeName||t.type;l.fillStyle=c,l.fillText(e,o+6,r+6)}l.restore()}}}};S((()=>{y((()=>e.src),(()=>{o()}),{immediate:!0})}));return()=>i(s,null,[i("div",{class:[Js.b(),e.className],style:{...e.style}},[i("canvas",{ref:t},null)])])}});const Qs=Sn(Gs),eu=Sn(Zs),tu=(e,t,l,a,n)=>Math.sqrt(Math.pow(e-l,2)+Math.pow(t-a,2))<n,lu=e=>Array.from(new Set(e.map((e=>JSON.stringify(e))))).map((e=>JSON.parse(e))),{hexToRgba:au}=hn(),nu="#5470c6",ou=["#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"];class ru{canvas;ctx;vertexes;isDrawing;mouseOffset;vertexesObservers=[];destroyedObservers;constructor(e,t){this.canvas=e,this.ctx=t,this.isDrawing=!1,this.vertexes=[],this.mouseOffset={x:0,y:0},e.addEventListener("click",this.canvasMouseClick.bind(this)),e.addEventListener("mousemove",this.canvasMousemove.bind(this)),e.addEventListener("dblclick",this.canvasMouseDblclick.bind(this)),this.vertexes=new Proxy(this.vertexes,{set:(e,t,l)=>(e[t]=l,this.notifyVertexChangeListeners(),!0)}),this.mouseOffset=new Proxy(this.mouseOffset,{set:(e,t,l)=>(e[t]=l,this.notifyVertexChangeListeners(),!0)})}notifyVertexChangeListeners(){this.vertexesObservers.forEach((e=>{e(this.vertexes,this.mouseOffset)}))}vertexesChangeEventListener(e){this.vertexesObservers.push(e)}notifyDestryedListerers(){this.destroyedObservers(this.vertexes)}onDestroyed(e){this.destroyedObservers=e}canvasMouseClick(e){e.stopPropagation(),this.isDrawing=!0,this.mouseOffset.x=e.offsetX,this.mouseOffset.y=e.offsetY,this.vertexes.push([e.offsetX,e.offsetY]),this.vertexes=lu(this.vertexes)}canvasMousemove(e){e.stopPropagation(),this.isDrawing&&(this.mouseOffset.x=e.offsetX,this.mouseOffset.y=e.offsetY,this.canvas.style.cursor="crosshair")}canvasMouseDblclick(e){e.stopPropagation(),this.canvas.style.cursor="unset",this.mouseOffset.x=e.offsetX,this.mouseOffset.y=e.offsetY,this.vertexes.push([e.offsetX,e.offsetY]),this.vertexes=lu(this.vertexes),this.notifyDestryedListerers(),this.destroyed()}destroyed(){this.isDrawing=!1,this.vertexes=[],this.vertexesObservers=[],this.canvas.removeEventListener("click",this.canvasMouseClick),this.canvas.removeEventListener("mousemove",this.canvasMousemove),this.canvas.removeEventListener("dblclick",this.canvasMouseDblclick)}}class iu{canvas;ctx;vertexes;isEditing;isMoveEditing;canClickEvent;pointVertexIndex;pointCentreIndex;vertexRadius;edgeCentreRadius;observers=[];constructor(e,t){this.canvas=e,this.ctx=t,this.vertexes=[],this.isEditing=!1,this.canClickEvent=!0,this.isMoveEditing=!1,this.pointVertexIndex=-1,this.pointCentreIndex=-1,this.vertexRadius=8,this.edgeCentreRadius=5}drawPolygonPath(e,t,l){const a=this.ctx;if(!e.length)return;const n=nu;a.beginPath(),a.lineWidth=3,a.strokeStyle=n,a.fillStyle=au(n,.2),a.moveTo(e[0][0],e[0][1]);for(let t=1;t<e.length;t++){const[l,n]=e[t];a.lineTo(l,n)}isNaN(t)||isNaN(l)||a.lineTo(t,l),a.closePath(),a.stroke(),a.fill()}drawPolygonEdgeCentre(e){const t=this.ctx,l=nu;for(let a=0;a<e.length;a++){const[n,o]=e[a];t.beginPath(),t.fillStyle=l,t.arc(n,o,this.vertexRadius,0,2*Math.PI),t.closePath(),t.fill(),t.beginPath(),t.fillStyle="#FFFFFF",t.arc(n,o,this.vertexRadius-3,0,2*Math.PI),t.closePath(),t.fill()}for(let a=0;a<e.length;a++){const n=e[a%e.length],o=e[(a+1)%e.length],r=n[0]+(o[0]-n[0])/2,i=n[1]+(o[1]-n[1])/2;t.beginPath(),t.fillStyle=l,t.arc(r,i,this.edgeCentreRadius,0,2*Math.PI),t.closePath(),t.fill()}}drawPolygon(e,t){this.vertexes=e,t?this.drawPolygonPath(e,t.x,t.y):(this.drawPolygonPath(e),this.drawPolygonEdgeCentre(e))}pointInVertexes(e,t){const l=this.vertexes;let a=null;for(let n=0;n<l.length;n++){const[o,r]=l[n];if(tu(e,t,o,r,this.vertexRadius)){this.canvas.style.cursor="pointer",a=n;break}this.canvas.style.cursor="unset"}return a}pointInEdgeCentre(e,t){const l=this.vertexes;let a=null;for(let n=0;n<l.length;n++){const o=l[n%l.length],r=l[(n+1)%l.length],i=o[0]+(r[0]-o[0])/2,s=o[1]+(r[1]-o[1])/2;if(tu(e,t,i,s,this.edgeCentreRadius)){this.canvas.style.cursor="pointer",a=n;break}this.canvas.style.cursor="unset"}return a}pointInVertexesOrEdgeCentre(e,t){const l=this.vertexes;for(let a=0;a<l.length;a++){const[n,o]=l[a],r=tu(e,t,n,o,this.vertexRadius),i=l[a%l.length],s=l[(a+1)%l.length],u=i[0]+(s[0]-i[0])/2,c=i[1]+(s[1]-i[1])/2,d=tu(e,t,u,c,this.edgeCentreRadius);if(r||d){this.canvas.style.cursor="pointer";break}this.canvas.style.cursor="unset"}}notifyObservers(){this.observers.forEach((e=>{e(this.vertexes)}))}updatePolygon(e){this.isEditing=!0,this.canvas.addEventListener("mousedown",this.canvasMousedown.bind(this)),this.canvas.addEventListener("mouseup",this.canvasMouseup.bind(this)),this.canvas.addEventListener("click",this.canvasMouseClick.bind(this)),this.canvas.addEventListener("mousemove",this.canvasMousemove.bind(this)),this.observers.push(e)}canvasMousedown(e){e.stopPropagation(),e.preventDefault(),this.canClickEvent=!0;const{offsetX:t,offsetY:l}=e;if(this.isEditing){const e=this.pointInVertexes(t,l);oi(e)&&(this.isMoveEditing=!0,this.pointVertexIndex=e,this.vertexes.splice(this.pointVertexIndex,1,[t,l]));const a=this.pointInEdgeCentre(t,l);oi(a)&&(this.isMoveEditing=!0,this.pointCentreIndex=a+1,this.vertexes.splice(this.pointCentreIndex,0,[t,l]))}setTimeout((()=>{this.canClickEvent=!1}),200)}canvasMouseup(e){e.stopPropagation(),e.preventDefault();const{offsetX:t,offsetY:l}=e;this.pointVertexIndex>-1&&this.vertexes.splice(this.pointVertexIndex,1,[t,l]),this.pointCentreIndex>-1&&this.vertexes.splice(this.pointCentreIndex,1,[t,l]),this.isMoveEditing=!1,this.pointVertexIndex=-1,this.pointCentreIndex=-1,this.notifyObservers()}canvasMouseClick(e){e.stopPropagation();const{offsetX:t,offsetY:l}=e;if(this.isEditing&&this.canClickEvent){e.stopImmediatePropagation();const a=this.pointInVertexes(t,l);if(oi(a)){if(this.vertexes.length<=3)return;this.vertexes.splice(a,1),this.drawPolygon(this.vertexes),this.notifyObservers()}}}canvasMousemove(e){e.stopPropagation();const{offsetX:t,offsetY:l}=e;this.pointInVertexesOrEdgeCentre(t,l),this.isMoveEditing&&(this.pointVertexIndex>-1&&this.vertexes.splice(this.pointVertexIndex,1,[t,l]),this.pointCentreIndex>-1&&this.vertexes.splice(this.pointCentreIndex,1,[t,l]),this.notifyObservers())}destroyed(){this.vertexes=[],this.observers=[],this.isEditing=!1,this.canvas.removeEventListener("mousedown",this.canvasMousedown),this.canvas.removeEventListener("mouseup",this.canvasMouseup),this.canvas.removeEventListener("click",this.canvasMouseClick),this.canvas.removeEventListener("mousemove",this.canvasMousemove)}}class su{canvas;ctx;image;canvasWidth;canvasHeight;paths;editDrawPolygon;createPolygonVertexes;editVertexes;editPolygonObservers=[];constructor(e){const{canvas:t,ctx:l,image:a,canvasWidth:n,canvasHeight:o,paths:r}=e;this.canvas=t,this.ctx=l,this.image=a,this.canvasWidth=n,this.canvasHeight=o,this.paths=r||[],this.editVertexes=[],this.render(),this.editDrawPolygon=new iu(t,l),this.createPolygonVertexes=new ru(t,l),this.createPolygonVertexes.vertexesChangeEventListener(((e,t)=>{this.render(),this.editDrawPolygon.drawPolygon(e,t),this.editVertexes=e,this.notifyObservers()})),this.createPolygonVertexes.onDestroyed((e=>{this.render(),this.editDrawPolygon.drawPolygon(e),this.editDrawPolygon.updatePolygon((e=>{this.render(),this.editDrawPolygon.drawPolygon(e),this.editVertexes=e,this.notifyObservers()}))}))}notifyObservers(){this.editPolygonObservers.forEach((e=>{e(this.editVertexes)}))}updatePolygon(e){this.editPolygonObservers.push(e)}drawPolygons(e){const t=this.ctx;for(let l=0;l<e.length;l++){const a=e[l].path;if(!a.length)return;const n=ou[l%ou.length];t.beginPath(),t.lineWidth=2,t.strokeStyle=n,t.fillStyle=au(n,.2),t.moveTo(a[0][0],a[0][1]);for(let e=1;e<a.length;e++){const[l,n]=a[e];t.lineTo(l,n)}t.closePath(),t.stroke(),t.fill()}}initCanvas=()=>{this.ctx.clearRect(0,0,this.canvasWidth,this.canvasHeight),this.ctx.drawImage(this.image,0,0,this.canvasWidth,this.canvasHeight),this.drawPolygons(this.paths)};render=()=>{this.initCanvas()};destroyed(){this.paths=[],this.editDrawPolygon.destroyed(),this.createPolygonVertexes.destroyed()}}var uu=r({props:{classes:{type:Array,default:()=>[]},contextClientHeight:{type:Number,default:null},rowInfo:{type:Object,default:()=>({})}},emits:["editPolygon"],setup(e,{emit:a}){const n=t("ns",{}),o=l(),r=l(),u=l(),c=l(!1),d=e=>{const t=o.value?.clientHeight,l=r.value?.getContext("2d");if(e?.imageSrc){const n=new Image;n.src=e.imageSrc,c.value=!0,n.onload=()=>{c.value=!1;let{width:i,height:s}=n;if(s>t){const e=s/t;s=t,n.style.height=s+"px",i/=e}const d=s,p=parseFloat((d/s).toFixed(3)),h=Math.ceil(i*p);((e,t)=>{o.value.style.width=e+"px",o.value.style.height=t+"px",r.value.width=e,r.value.height=t,r.value.style.width=e+"px",r.value.style.height=t+"px"})(h,d),u.value=new su({canvas:r.value,ctx:l,image:n,canvasWidth:h,canvasHeight:d,scaleFactor:p,paths:e.labels}),u.value.updatePolygon((e=>{a("editPolygon",{vertexes:e,canvasWidth:h,canvasHeight:d})}))},n.onerror=()=>{c.value=!1}}};S((()=>{y((()=>e.rowInfo),(e=>{const t=D(e);d(t)}),{deep:!0,immediate:!0}),y((()=>e.contextClientHeight),(t=>{if(ri(t)){o.value.style.height=t+"px";const l=D(e.rowInfo);d(l)}}))}));return()=>i(s,null,[i(Os,{loading:c.value,class:[n.b("loading")]},{default:()=>[i("div",{ref:o,class:[n.b("canvas")]},[i("canvas",{ref:r,class:[n.be("canvas","context")]},null)])]})])}}),cu={minContentHeight:500};const du=Le("labelme");const pu=Sn(r({name:"NextLabelme",props:{className:{type:String,default:""},style:{type:Object,default:()=>({})},options:{type:Object,default:()=>({})},classes:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]}},emits:["change","edit-polygon"],setup(e,{emit:t}){const o=ai(cu),r=a((()=>{const t=n(e.options);return tn(o,t)})),u=n(r);b("ns",du),dn();const c=l(0),d=l(e.classes),p=l(ai(e.data));y((()=>e.data),(e=>{p.value=ai(e)}),{deep:!0}),y((()=>e.data.length),(()=>{c.value=0})),y((()=>e.classes),(e=>{d.value=e}),{deep:!0});const h=a((()=>{if(!p.value)return{};const e=p.value[c.value]||{};return ai(e)})),f=l(u.minContentHeight),v=l(),m=l(!1),g=e=>{t("edit-polygon",e)};return()=>i(s,null,[i("div",{class:[du.b(),e.className,m.value?du.b("fullscreen"):""],style:{...e.style}},[i("div",{ref:v,class:[du.b("main")]},[i("div",{class:[du.be("main","content")],style:{height:f.value+"px"}},[i(uu,{rowInfo:h.value,onEditPolygon:g},null)])])])])}}));var hu=Object.freeze({__proto__:null,NextContainer:Ni,NextCrudTable:_s,NextCrudTableVirtualized:js,NextDialog:ds,NextDragResize:Ps,NextForm:Cs,NextLabelimg:Qs,NextLabelimgPreview:eu,NextLabelme:pu,NextLayout:Oi,NextMenu:di,NextSpinLoading:Os,NextTabs:Vi,NextTextEllipsis:En,NextTreeSelect:ws,NextUpload:Ts,NextVideoPlayer:Ns});const fu=e=>{e.directive("zoom",{mounted(e,t){if(!t.value)return!1;const l="string"==typeof(a=t.value)||!Xe(a)&&Ye(a)&&"[object String]"==We(a)?[t.value,".el-dialog__body",!1,!0]:t.value;var a;l[1]=l[1]?l[1]:".el-dialog__body",l[2]=void 0!==l[2]&&l[2],l[3]=void 0===l[3]||l[3],M((()=>{const e=document.querySelector(l[1]),t=document.querySelector(l[0]),a=document.createElement("div");a.className="dialog-zoom",a.onmouseenter=()=>{a.onmousedown=a=>{const n=a.clientX,o=a.clientY,r=e.offsetWidth,i=e.offsetHeight,s=t.offsetWidth,u=t.offsetHeight;document.onmousemove=a=>{a.preventDefault();const c=r+2*(a.clientX-n),d=i+(a.clientY-o);if(e.style.width=`${c}px`,e.style.height=`${d}px`,l[2]){const e=u+(a.clientY-o);t.style.height=`${e}px`}if(l[3]){const e=s+2*(a.clientX-n);t.style.width=`${e}px`}},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null}}},t.appendChild(a)}))}})},vu="0.3.3",mu=function(e){Object.keys(hu).forEach((t=>{const l=hu[t];e.component(l.name,l)})),(e=>{fu(e)})(e)};var gu={version:vu,install:mu};export{Ni as NextContainer,_s as NextCrudTable,js as NextCrudTableVirtualized,ds as NextDialog,Ps as NextDragResize,Cs as NextForm,Qs as NextLabelimg,eu as NextLabelimgPreview,pu as NextLabelme,Oi as NextLayout,di as NextMenu,Os as NextSpinLoading,Vi as NextTabs,En as NextTextEllipsis,ws as NextTreeSelect,Ts as NextUpload,Ns as NextVideoPlayer,un as buildLocaleContext,sn as buildTranslator,gu as default,Me as defaultNamespace,mu as install,cn as localeContextKey,on as localeLang,ze as namespaceContextKey,mn as nextUseCssTheme,vn as nextUseCssVar,rn as translate,gn as updateThemeColor,yn as updateThemeColorCssVar,Cn as useDetectVideo,Ee as useGetDerivedNamespace,pn as useLanguage,dn as useLocale,Le as useNamespace,vu as version};