@fox-js/foxui-pc 4.0.1-62 → 4.0.1-64

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.umd.js CHANGED
@@ -1,5 +1,5 @@
1
1
  (function(h,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("@fox-js/validator"),require("element-plus"),require("@element-plus/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","element-plus","@element-plus/icons-vue","@fox-js/i18n"],r):(h=typeof globalThis<"u"?globalThis:h||self,r(h.FoxUI={},h.Vue,h.FoxValidator,h.ElementPlus,h.ElementPlusIconsVue,h.FoxI18n))})(this,function(h,r,Be,g,Fe,Te){"use strict";/*!
2
- * @fox-js/foxui-desktop v4.0.0 Wed Aug 16 2023 13:41:13 GMT+0800 (中国标准时间)
3
- */const st=window,pa=typeof window<"u";function ya(){return typeof st<"u"?st.requestAnimationFrame||st.webkitRequestAnimationFrame||function(e){st.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function ba(e){pa?cancelAnimationFrame(e):clearTimeout(e)}const Sa=ya();/*!
4
- * @fox-js/big-decimal v4.0.1-5 Mon Jan 30 2023 14:39:30 GMT+0800 (中国标准时间)
5
- */function ut(e,t="0"){let a=0,n=-1;e[0]=="-"&&(a++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(a++,n=2,t=t.substring(1),t.length),e=he(e),t=he(t),[e,t]=At(he(e),he(t)),a==1&&(n==1?e=Rt(e):t=Rt(t));let l=sn(e,t);return a?a==2?"-"+he(l):e.length<l.length?he(l.substring(1)):"-"+he(Rt(l)):he(l)}function Rt(e){let t="",a=e.length,n=e.split(".")[1],l=n?n.length:0;for(let s=0;s<a;s++)e[s]>="0"&&e[s]<="9"?t+=9-parseInt(e[s]):t+=e[s];let o=l>0?"0."+new Array(l).join("0")+"1":"1";return sn(t,o)}function he(e){let t=e.split(".");for(t[0]||(t[0]="0");t[0][0]=="0"&&t[0].length>1;)t[0]=t[0].substring(1);return t[0]+(t[1]?"."+t[1]:"")}function At(e,t){let a=e.split("."),n=t.split("."),l=a[0].length,o=n[0].length;return l>o?n[0]=new Array(Math.abs(l-o)+1).join("0")+(n[0]?n[0]:""):a[0]=new Array(Math.abs(l-o)+1).join("0")+(a[0]?a[0]:""),l=a[1]?a[1].length:0,o=n[1]?n[1].length:0,(l||o)&&(l>o?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(l-o)+1).join("0"):a[1]=(a[1]?a[1]:"")+new Array(Math.abs(l-o)+1).join("0")),e=a[0]+(a[1]?"."+a[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function sn(e,t){[e,t]=At(e,t);let a="",n=0;for(let l=e.length-1;l>=0;l--){if(e[l]==="."){a="."+a;continue}let o=parseInt(e[l])+parseInt(t[l])+n;a=o%10+a,n=Math.floor(o/10)}return n?n.toString()+a:a}var ae=(e=>(e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e))(ae||{});function Ze(e,t=0,a=ae.HALF_EVEN){if(a===ae.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let l=e.split("."),o=l[0],s=l[1];if(t<0){if(t=-t,o.length<=t)return"0";{let u=o.substr(0,o.length-t);return e=u+"."+o.substr(o.length-t)+s,u=Ze(e,0,a),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return o.length,un(l[1],o,n,a)?(n?"-":"")+Bt(o):(n?"-":"")+o;if(l[1]){if(l[1].length<t)return(n?"-":"")+o+"."+l[1]+new Array(t-l[1].length+1).join("0")}else return(n?"-":"")+o+"."+new Array(t+1).join("0");s=l[1].substring(0,t);let i=l[1].substring(t);return i&&un(i,s,n,a)&&(s=Bt(s),s.length>t)?(n?"-":"")+Bt(o,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+o+"."+s}function un(e,t,a,n){if(!e||e===new Array(e.length+1).join("0")||n===ae.DOWN||!a&&n===ae.FLOOR||a&&n===ae.CEILING)return!1;if(n===ae.UP||a&&n===ae.FLOOR||!a&&n===ae.CEILING)return!0;let l="5"+new Array(e.length).join("0");if(e>l)return!0;if(e<l)return!1;switch(n){case ae.HALF_DOWN:return!1;case ae.HALF_UP:return!0;case ae.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function Bt(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let a=e.length-1,n="";for(let l=a;l>=0;l--){let o=parseInt(e[l])+t;o==10?(t=1,o=0):t=0,n+=o}return t&&(n+=t),n.split("").reverse().join("")}function Ft(e,t){e=e.toString(),t=t.toString();let a=0;e[0]=="-"&&(a++,e=e.substr(1)),t[0]=="-"&&(a++,t=t.substr(1)),e=Je(e),t=Je(t);let n=0,l=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(l=t.length-t.indexOf(".")-1);let o=n+l;if(e=Je(e.replace(".","")),t=Je(t.replace(".","")),e.length<t.length){let d=e;e=t,t=d}if(t=="0")return"0";let s=t.length,i=0,u=[],c=s-1,f="";for(let d=0;d<s;d++)u[d]=e.length-1;for(let d=0;d<2*e.length;d++){let y=0;for(let x=t.length-1;x>=c&&x>=0;x--)u[x]>-1&&u[x]<e.length&&(y+=parseInt(e[u[x]--])*parseInt(t[x]));y+=i,i=Math.floor(y/10),f=y%10+f,c--}return f=Je(wa(f,o)),a==1&&(f="-"+f),f}function wa(e,t){return t==0?e:(e=t>=e.length?new Array(t-e.length+1).join("0")+e:e,e.substr(0,e.length-t)+"."+e.substr(e.length-t,t))}function Je(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function qt(e,t,a=8){if(t==0)throw new Error("Cannot divide by 0");if(e=e.toString(),t=t.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),t=t.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;t[0]=="-"&&(t=t.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var l=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=he(t.replace(".","")),l>=0){let c=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(c==-1)e=he(e+new Array(l+1).join("0"));else if(l>c)e=e.replace(".",""),e=he(e+new Array(l-c+1).join("0"));else if(l<c){e=e.replace(".","");let f=e.length-c+l;e=he(e.substring(0,f)+"."+e.substring(f))}else l==c&&(e=he(e.replace(".","")))}let o=0,s=t.length,i="",u=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(0,s+1):e.substring(0,s);if(e=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(s+1):e.substring(s),u.indexOf(".")>-1){let c=u.length-u.indexOf(".")-1;u=u.replace(".",""),s>u.length&&(c+=s-u.length,u=u+new Array(s-u.length+1).join("0")),o=c,i="0."+new Array(c).join("0")}for(a=a+2;o<=a;){let c=0;for(;parseInt(u)>=parseInt(t);)u=ut(u,"-"+t),c++;i+=c,e?(e[0]=="."&&(i+=".",o++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(o||(i+="."),o++,u=u+"0")}return(n==1?"-":"")+he(Ze(i,a-2))}function Lt(e,t){return e=e.toString(),t=t.toString(),t=jt(t),ut(e,t)}function jt(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function cn(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),fn(e),fn(t);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=Lt(e,Ft(t,Ze(qt(e,t),0,ae.FLOOR)));return a+n}function fn(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function dn(e,t){let a=!1;if(e[0]=="-"&&t[0]!="-")return-1;if(e[0]!="-"&&t[0]=="-")return 1;if(e[0]=="-"&&t[0]=="-"&&(e=e.substr(1),t=t.substr(1),a=!0),[e,t]=At(e,t),e.localeCompare(t)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return e[n]>t[n]?a?-1:1:a?1:-1;return 0}class J{value;static RoundingModes=ae;static validate(t){if(t){if(t=t.toString(),isNaN(t))throw Error("Parameter is not a number: "+t);t[0]=="+"&&(t=t.substring(1))}else t="0";if(t.startsWith(".")?t="0"+t:t.startsWith("-.")&&(t="-0"+t.substr(1)),/e/i.test(t)){let[a,n]=t.split(/[eE]/);a=he(a);let l="";a[0]=="-"&&(l="-",a=a.substring(1)),a.indexOf(".")>=0?(n=parseInt(n)+a.indexOf("."),a=a.replace(".","")):n=parseInt(n)+a.length,a.length<n?t=l+a+new Array(n-a.length+1).join("0"):a.length>=n&&n>0?t=l+he(a.substring(0,n))+(a.length>n?"."+a.substring(n):""):t=l+"0."+new Array(-n+1).join("0")+a}return t}constructor(t="0"){this.value=J.validate(t)}getValue(){return this.value}static getPrettyValue(t,a,n){if(!(a||n))a=3,n=",";else if(!(a&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=J.validate(t);let l=t.charAt(0)=="-";l&&(t=t.substring(1));var o=t.indexOf(".");o=o>0?o:t.length;for(var s="",i=o;i>0;)i<a?(a=i,i=0):i-=a,s=t.substring(i,i+a)+(i<o-a&&i>=0?n:"")+s;return(l?"-":"")+s+t.substring(o)}getPrettyValue(t,a){return J.getPrettyValue(this.value,t,a)}static round(t,a=0,n=ae.HALF_EVEN){if(t=J.validate(t),isNaN(a))throw Error("Precision is not a number: "+a);return Ze(t,a,n)}round(t=0,a=ae.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new J(Ze(this.value,t,a))}static floor(t){return t=J.validate(t),t.indexOf(".")===-1?t:J.round(t,0,ae.FLOOR)}floor(){return this.value.indexOf(".")===-1?new J(this.value):new J(this.value).round(0,ae.FLOOR)}static ceil(t){return t=J.validate(t),t.indexOf(".")===-1?t:J.round(t,0,ae.CEILING)}ceil(){return this.value.indexOf(".")===-1?new J(this.value):new J(this.value).round(0,ae.CEILING)}static add(t,a){return t=J.validate(t),a=J.validate(a),ut(t,a)}add(t){return new J(ut(this.value,t.getValue()))}static subtract(t,a){return t=J.validate(t),a=J.validate(a),Lt(t,a)}subtract(t){return new J(Lt(this.value,t.getValue()))}static multiply(t,a){return t=J.validate(t),a=J.validate(a),Ft(t,a)}multiply(t){return new J(Ft(this.value,t.getValue()))}static divide(t,a,n){return t=J.validate(t),a=J.validate(a),qt(t,a,n)}divide(t,a){return new J(qt(this.value,t.getValue(),a))}static modulus(t,a){return t=J.validate(t),a=J.validate(a),cn(t,a)}modulus(t){return new J(cn(this.value,t.getValue()))}static compareTo(t,a){return t=J.validate(t),a=J.validate(a),dn(t,a)}compareTo(t){return dn(this.value,t.getValue())}static negate(t){return t=J.validate(t),jt(t)}negate(){return new J(jt(this.value))}}function hn(e,t){return J.multiply(`${e}`,`${t}`)}function Mt(e,t,a=8){return J.divide(`${e}`,`${t}`,a)}function _t(e,t){return e=`${e}`,t=`${t}`,J.compareTo(e,t)}function gn(e){return J.negate(e)}function ct(e,t=-1,a=!1,n=3,l=","){let o=`${e}`;if(o.length==0||o==="-")return"";let s=o.charAt(0);s=="-"?o=o.substring(1):s="";let i=o,u="",c=o.indexOf(".");c!=-1&&(i=o.substring(0,c),u=o.substring(c+1)),t!=-1&&(t<u.length?u=u.substring(0,t):a&&t>u.length&&(u=u.padEnd(t,"0")));let f;if(n>0){let d="",y=i.split("").reverse();for(let x=0;x<y.length;x++)d+=y[x]+((x+1)%n==0&&x+1!=y.length?l:"");u.length==0?f=`${s}${d.split("").reverse().join("")}`:f=`${s}${d.split("").reverse().join("")}.${u}`}else u.length==0?f=`${s}${i}`:f=`${s}${i}.${u}`;return f}function mn(e){let t=`${e}`,a=t.charAt(0);a=="-"?t=t.substring(1):a="";let n=t.replace(/[^\d\.-]/g,"");return`${a}${n}`}const $a=Sa,va=Array.isArray,Ta=e=>ft(e)==="[object Map]",xa=e=>ft(e)==="[object Set]",Ca=e=>e instanceof Date,Pt=e=>typeof e=="function",Ea=e=>typeof e=="string",Na=e=>typeof e=="symbol",De=e=>e!==null&&typeof e=="object",ka=e=>De(e)&&Pt(e.then)&&Pt(e.catch),pn=Object.prototype.toString,ft=e=>pn.call(e),Ht=e=>ft(e)==="[object Object]",yn=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Va(e){return e.__esModule||yn&&e[Symbol.toStringTag]==="Module"}const Oa=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function qe(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},a=1,n=e.length,l=!1;for(typeof t=="boolean"&&(l=t,t=e[a]??{},a++),typeof t!="object"&&(t={});a<n;a++)if(e[a]!==null&&e[a]!==void 0){let o=e[a];for(let s in o){let i=t[s],u=o[s];if(i!==u)if(l===!0&&u&&typeof u=="object"){let c;Array.isArray(u)?c=i&&Array.isArray(i)?i:[]:c=i&&typeof i=="object"?i:{},t[s]=qe(l,c,u)}else u!==void 0&&(t[s]=u)}}return t}function zt(e,t,a=!1){if(!a)qe(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let l in t){let o=e[l],s=t[l];if(o!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!Ht(s))continue;o=zt(o,s,a),e[l]=o}else{if(typeof s=="function")continue;e[l]=s}}const n=Object.getOwnPropertySymbols(t);for(let l of n){let o=e[l],s=t[l];if(o!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!Ht(s))continue;o=zt(o,s,a),e[l]=o}else{if(typeof s=="function")continue;e[l]=s}}}return e}const Kt=Oa?Promise.resolve():null;function Ia(e,...t){Kt!==null?t&&t.length>0?Kt.then(()=>{e(t)}):Kt.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function te(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function ge(e){return typeof e=="number"?e:Number(e)}const Da={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function dt(e){let a=Object.prototype.toString.call(e);return e==null?String(e):Da[a]||"object"}function bn(e){return e&&typeof e=="object"&&"setInterval"in e}function Sn(e){return!e||e.offsetParent===null}function wn(e){let t=!!e&&"length"in e&&e.length,a=dt(e);return a==="function"||bn(e)?!1:a==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function $n(e,t){let a=+t.length,n=0,l=e.length;for(;n<a;n++)e[l++]=t[n];return e.length=l,e}function Ra(e,t=[]){let a=t;return e!=null&&(wn(Object(e))?$n(a,typeof e=="string"?[e]:e):a.push(e)),a}function Re(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let a=dt(e),n=dt(t);if(a!==n)return!1;if(a==="object"){let l=Object.keys(e),o=Object.keys(t);if(l.length!==o.length)return!1;for(let s=0;s<l.length;s++){let i=l[s],u=e[i],c=t[i];if(!Re(u,c))return!1}return!0}else if(a==="array"){if(e.length!==t.length)return!1;for(let l=0;l<e.length;l++){let o=e[l],s=t[l];if(!Re(o,s))return!1}return!0}return!1}const Qe=typeof window<"u";function vn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const le=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Tn(e){return le(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),le(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function xn(e){if(e==null)return 0;let t=`${e}`;if(t.length==0)return 0;t.charAt(0)=="-"&&(t=t.substring(1)),t=t.replace(/[^\d\.-]/g,"");const a=t.indexOf(".");return a==-1?t.length:a}function Cn(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const a=t.indexOf(".");return a==-1?0:t.length-(a+1)}function En(e,t,a){const n=e.indexOf(t);return n===-1?e:t==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(a,"")}function Aa(e,t=!0,a=!0){t?e=En(e,".",/\./g):e=e.replace(/\./g,""),a?e=En(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function Ba(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(a=>{if(Re(e,a))return!0}):t.indexOf(e)}function Fa(e,t){if(typeof e=="object"||Array.isArray(e)){let a=t.reverse().findIndex(n=>{if(Re(e,n))return!0});return a!==-1&&(a=t.length-1-a),a}return t.lastIndexOf(e)}function et(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Nn(e,...t){const a={};return t.forEach(n=>{for(const l in n)a[l]=e[l]}),a}function me(e,...t){const a=[];t.forEach(l=>{Reflect.apply([].push,a,Reflect.ownKeys(l))});const n={};for(const l in e)a.includes(l)||(n[l]=e[l]);return n}const qa=(e,t,a)=>{const n=Object.assign({},e),l=Object.assign({},a);return Object.keys(t).length>0?(Object.keys(n).forEach(o=>{l.hasOwnProperty(o)?typeof l[o]=="string"&&(n[o]=t[l[o]]):t[o]&&(n[o]=t[o])}),n):e},oe=Symbol.for("BroadcastKey");class Wt{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,a,n){this.parent=t,this.proxy=a,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const a=this.children.findIndex(n=>t===n);a!==-1&&this.children.splice(a,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,a,...n){if(t.maxLevel!==void 0&&t.maxLevel!==null&&t.maxLevel>0){if(t.level=t.level??0,t.level>t.maxLevel)return[];t.level++}let l=!1;!t.name||t.name==="*"?l=!0:!t.name||t.name==="+"?(l=!1,t.name="*"):vn(t.name)&&this.name&&t.name.test(this.name)?l=!0:typeof t.name=="function"?l=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(l=!0);const o=[];if(l){const s=this.callbacks.get(a);if(typeof s=="function"){const u=Reflect.apply(s,this.proxy,[...n]);u!=null&&o.push(u)}const i=this.proxy??{};if(typeof i[a]=="function"){const u=Reflect.apply(i[a],i,[...n]);u!=null&&o.push(u)}}return this.children.forEach(s=>{const i=Reflect.apply(s.emit,s,[{...t},a,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,o,[...i])}),o}emitToChildren(t,a,...n){const l=[];return this.children.forEach(o=>{const s=Reflect.apply(o.emit,o,[{...t},a,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,l,[...s])}),l}on(t,a){this.callbacks.set(t,a)}}function ht(e,t,a,n){const l=new Wt(t,e,a);if(n&&typeof n=="object")for(const o in n)l.on(o,n[o]);return l}function La(e,t,a){const n=a;if(n[oe])return n[oe];const l=r.inject(oe,null),o=new Wt(l,a,e);if(t&&typeof t=="object")for(const s in t)o.on(s,t[s]);return n[oe]=o,r.provide(oe,o),r.onUnmounted(()=>{o.destroy(),n[oe]=void 0}),o}function tt(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[oe]??r.inject(oe,null):r.inject(oe,null)}const Le=e=>e.default??e;class ja{error(t,a){const n=a,l=tt(a);l?l.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const a=t,n=tt(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}success(t){const a=t,n=tt(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}decorate(t,a,n){Array.isArray(t)||(t=[t]);const l=n,o=tt(n),s=a.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),i=t.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!s&&i?o?o.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):s&&!i&&(o?o.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let kn=new ja;function Ma(e){kn=e}function _a(e,t){Le(Be).setValidator(e,t)}function Pa(e){Le(Be).deleteValidator(e)}let Vn=["blur","clear"];function Ha(e){Vn=e}function On(){return Vn}let In=["focus","change"];function za(e){In=e}function Dn(){return In}function Ka(e){Le(Be).messages(e)}function nt(...e){const t=[];return e.forEach(a=>{a.forEach(n=>{const l=t.findIndex(o=>o.type===n.type);l!==-1&&t.splice(l,1),t.push(n)})}),t}function gt(e){return e.forEach(t=>{t.type==="required"&&(t.required===null||t.required===void 0)&&(t.required=!0),!t.type&&(t.required===!0||t.required===!1)&&(t.type="required")}),e}const ke=Symbol("ValidateSchemaKey");class Rn{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,a,n){this.parent=t,this.descriptor=a,this.proxy=n,this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;t&&(this.scope=r.effectScope(),this.scope.run(()=>{r.watchEffect(()=>{const a=gt(nt(this.attrRules,this.rules)),n=[];for(let o in t){let s=t[o];if(this.hasValidator(o,!0)){if(s===!1)continue;let u={type:o};s!==null&&typeof s=="object"&&Object.assign(u,s),n.push(u);continue}let i=this.getValidator(o);if(i!==null){let u={type:o,validator:i};n.push(u)}}this.attrRules=gt(n);const l=nt(this.attrRules,this.rules);r.nextTick(()=>{this.decorate(l,a)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(t,...a){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...a]);const l=kn;return l&&typeof l[t]=="function"?Reflect.apply(l[t],l,[...a]):null}decorate(t,a){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,a,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(t){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",t,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(t,a,n=!1){n?Le(Be).setValidator(t,a):this.validators[t]=a}getValidator(t){let a=this.validators[t]??null;return a||(a=this.parent?.getValidator(t)??null),a}deleteValidator(t,a=!1){a?Le(Be).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,a=!1){if(a)return Le(Be).hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const a=nt(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=gt(t):this.rules=gt([t]);const n=nt(this.attrRules,this.rules);r.nextTick(()=>{this.decorate(n,a)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let a=nt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(a.length>0){const l={[`${n}`]:a},o=this.getValue(),s={[`${n}`]:o},i=Le(Be),u=new i(l),c=this.proxy??s;return u.validate(s,{context:c}).then(d=>{if(d.pass)this.success();else{let y="error";Array.isArray(d.errors)&&d.errors.length>0&&(y=d.errors[0].message??y,d.errors=[d.errors[0]],d.errors[0].ref=c),this.error(y)}return d}).catch(d=>{const y=d.message??`${d}`;return this.error(y),d})}}return Promise.resolve({pass:!0})}}function mt(e,t,a){if(a.valueName=a.valueName??"modelValue",a.valueType=a.valueType??"string",!a.validateHandler&&a.valueName!=="modelValue"){const l=a.valueName;a.validateHandler={getValue(o){return o[l]}}}return new Rn(t,a,e)}const An=Symbol.for("EventEmitterKey");class Wa{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,a){let n=this.register.get(t);if(n&&Array.isArray(n)){let l=n.findIndex(o=>o===a);l!==-1&&n.splice(l,1)}}on(t,a){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(a)}emit(t,...a){const n=this.register.get(t);n&&n.forEach(l=>{try{Reflect.apply(l,null,[t,...a])}catch(o){console.error(o.message,o)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...a])}}function rt(e,t){let a=null;return function(...n){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...n])},t)}}function Bn(e,t){let a=0;return function(...n){const l=new Date().getTime();l-a<t||(a=l,Reflect.apply(e,null,[...n]))}}function Ga(e,t){const a=rt((n,l)=>{e=n,l()},t);return r.customRef((n,l)=>({get(){return n(),e},set(o){a(o,l)}}))}function Ya(e){let t=!1;return function(...a){t||(t=!0,Reflect.apply(e,null,[...a]))}}const $e=Symbol("DomainKey"),Pe=Symbol("DataItemsKey");class pt{_parent=null;get parent(){return this._parent}set parent(t){this._parent=t}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(t){this._broadcast=t}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(t){this._validateSchema=t}_props=r.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,a=[]){for(const n in t){const l=t[n];a.length>0&&a.indexOf(l)!==-1||(this._props[n]=l)}}has(t){if(Reflect.has(this._props,t)){const a=this._props[t];if(a!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,a){this._props[t]=a}get(t,a){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?a:this.parent.get(t,a)}getForParent(t,a){return this.parent==null?a:this.parent.get(t,a)}getForSelf(t){return this._props[t]}getAll(t){const a=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const l=n._props[t];a.push(l)}n=n._parent}return a}}const Ua=new pt;function He(){return Ua}function Ve(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[$e]??r.inject($e,null):r.inject($e,null)}const Gt=Symbol("OriginalDateKey");function Yt(e,t,a=[],n){const l=r.getCurrentInstance(),o=l?.proxy;let s=r.inject($e,null);s===null&&(s=He());const i=e||t.prop||t.name,u=new pt(i);u.parent=s;const c=p=>{o[Gt]||y(p),u.set("modelValue",p)},f=()=>u.getForSelf("modelValue")??null,d=()=>o[Gt]??null,y=p=>{const b={};qe(!0,b,r.toRaw(p)),o[Gt]=b};r.isReactive(t)?r.watchEffect(()=>{u.merge(t,a)}):u.merge(t,a),t.modelValue&&y(t.modelValue),o[$e]=u,r.provide($e,u);let x=null,w=null;if(l!==null){const p=r.inject(oe,null);x=ht(o,p,i,n),u.broadcast=x,o[oe]=x,r.provide(oe,x),o.broadcast=(m,C,...R)=>Reflect.apply(x.emit,x,[m,C,...R]);const b=r.inject(ke,null);w=mt(o,b,{componentName:""}),u.validateSchema=w,o[ke]=w,r.provide(ke,w),o[Pe]=new Map,o.validate=(m=!0)=>{const C=[];let R=null;const B={deep:!1};if(m===!0)R={name:"*"};else if(Array.isArray(m)&&m.length>0){const k=m;R={name:N=>N?k.indexOf(N)!==-1:!1}}else if(m!=null&&typeof m=="object"){const k=m;if(B.ignoreHidden=k.ignoreHidden,Array.isArray(k.include)&&k.include.length>0){const N=k.include;R={name:I=>I?N.indexOf(I)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const N=k.exclude;R={name:I=>I?N.indexOf(I)===-1:!1}}else R={name:"*"}}if(R){const k=x?.emitToChildren(R,"validate",B);k&&Reflect.apply([].push,C,k)}return C.length==1?C[0]:C.length>1?Promise.all(C).then(k=>{let N=[];return k.forEach(I=>{I.pass===!1&&Array.isArray(I.errors)&&(N=[...N,...I.errors])}),N.length>0?{pass:!1,errors:N}:{pass:!0}}):Promise.resolve({pass:!0})},o.setNameValidateRules=(m,C=!0)=>{if(C){const R=Reflect.ownKeys(m),B=[...R],k={name:N=>{const I=R.includes(N);if(I){const O=B.findIndex(D=>N===D);O!==-1&&B.splice(O,1)}return I}};x?.emitToChildren(k,"setNameValidateRules",m,!1),B.length>0&&B.forEach(N=>{let I=String(N);const D=Ln(u,I,{componentName:"",fieldName:I,pureDataValidate:!0},x,w);o[Pe].set(I,D);const A=m[I];A&&D.validateSchema.setRule(A)})}},o.clearValidate=(m=!0)=>{let C=null;if(m===!0)C={name:"*"};else if(Array.isArray(m)&&m.length>0){const R=m;C={name:B=>B?R.indexOf(B)!==-1:!1}}else if(m!=null&&typeof m=="object"){const R=m;if(Array.isArray(R.include)&&R.include.length>0){const B=R.include;C={name:k=>k?B.indexOf(k)!==-1:!1}}else if(Array.isArray(R.exclude)&&R.exclude.length>0){const B=R.exclude;C={name:k=>k?B.indexOf(k)===-1:!1}}else C={name:"*"}}C&&x?.emitToChildren(C,"clearValidate",!1)},o.resetFields=m=>{const C=f();if(!C)return;const R={};if(qe(!0,R,d()??{}),Array.isArray(m))m.forEach(B=>{C[B]=R[B]});else if(m&&Array.isArray(m.include))(m.include??[]).forEach(k=>{C[k]=R[k]});else if(m&&Array.isArray(m.exclude)){let B=m.exclude??[];Reflect.ownKeys(R).forEach(k=>{B.includes(k)||(C[k]=R[k])})}else Object.assign(C,R);o.clearValidate(m)},o.setModelValue=(m,C)=>{!C||C===i?c(m):x?.emitToChildren({name:C},"setModelValue",m)},o.getModelValue=()=>f()}return r.onUnmounted(()=>{u.destroy(),o[$e]=void 0,o[Pe]&&(o[Pe].clear(),o[Pe]=void 0),x!==null&&(x.destroy(),o[oe]=void 0),w!==null&&(w.destroy(),o[ke]=void 0)}),u}function Fn(e,t,a=[]){const l=r.getCurrentInstance()?.proxy;let o=r.inject($e,null);o===null&&(o=He());const s=e||t.prop||t.name,i=new pt(s);return i.parent=o,r.isReactive(t)?r.watchEffect(()=>{i.merge(t,a)}):i.merge(t,a),l[$e]=i,r.provide($e,i),r.onUnmounted(()=>{i.destroy(),l[$e]=void 0}),i}function qn(e,t,a){const l=Ve(e)?.get("rules");if(!l)return;let o=l[a];o&&(Array.isArray(o)||(o=[o]),o.forEach(s=>{t.setRule(s)}))}function ue(e,t,a){const l=r.getCurrentInstance()?.proxy,o=t??"",s=r.inject(oe,null),i=ht(l,s,o,a);l[oe]=i,r.provide(oe,i),l.broadcast=(w,p,...b)=>Reflect.apply(i.emit,i,[w,p,...b]);const u=r.inject(ke,null);e.fieldName=e.fieldName??o;const c=mt(l,u,e);l[ke]=c,r.provide(ke,c),qn(l,c,o),l.validate=(w=null)=>{const p=[];let b=!1,m=!1;if(Array.isArray(w)&&w.indexOf(o)!==-1)m=!0,b=!0;else if(w&&typeof w=="object"){const C=w;C.ignoreHidden===!0&&Sn(l.$el)?m=!1:(Array.isArray(C.include)&&C.include.indexOf(o)!==-1||Array.isArray(C.exclude)&&C.exclude.indexOf(o),m=!0),b=C.deep??!1}else typeof w=="boolean"&&(b=w),m=!0;if(m){const C=c?.validate();p.push(C)}if(b){let C=null;const R={deep:!1};if(w===!0)C={name:"*"};else if(Array.isArray(w)&&w.length>0){const B=w;C={name:k=>k?B.indexOf(k)!==-1:!1}}else if(w!=null&&typeof w=="object"){const B=w;if(R.ignoreHidden=B.ignoreHidden,Array.isArray(B.include)&&B.include.length>0){const k=B.include;C={name:N=>N?k.indexOf(N)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const k=B.exclude;C={name:N=>N?k.indexOf(N)===-1:!1}}else C={name:"*"}}if(C){const B=i.emitToChildren(C,"validate",R);Reflect.apply([].push,p,B)}}return p.length==1?p[0]:p.length>1?Promise.all(p).then(C=>{let R=[];return C.forEach(B=>{B.pass===!1&&Array.isArray(B.errors)&&(R=[...R,...B.errors])}),R.length>0?{pass:!1,errors:R}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=w=>c?.setRule(w),l.setNameValidateRules=(w,p=!1)=>{const b=w[o];if(b&&c?.setRule(b),p){const m={name:C=>Reflect.ownKeys(w).includes(C)};i.emitToChildren(m,"setNameValidateRules",w,!1)}},l.clearValidate=(w=null)=>{(!Array.isArray(w)||w.indexOf(t??"")!==-1)&&c?.clear();let p=null;if(w===!0)p={name:"*"};else if(Array.isArray(w)&&w.length>0){const b=w;p={name:m=>m?b.indexOf(m)!==-1:!1}}else if(w!=null&&typeof w=="object"){const b=w;if(Array.isArray(b.include)&&b.include.length>0){const m=b.include;p={name:C=>C?m.indexOf(C)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const m=b.exclude;p={name:C=>C?m.indexOf(C)===-1:!1}}else p={name:"*"}}p&&i.emitToChildren(p,"clearValidate",!1)};const f=new Wa(l);l[An]=f;const d=rt((w="validate")=>{w==="reset"?c.clear():c.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:On()).forEach(w=>{f.on(w,p=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Dn()).forEach(w=>{f.on(w,p=>{d("reset")})}),r.onUnmounted(()=>{i.destroy(),l[oe]=void 0,c.destroy(),l[ke]=void 0,f.destroy(),l[An]=void 0}),{broadcast:i,validateSchema:c,emitEvent:(w,...p)=>{Reflect.apply(f.emit,f,[w,...p])},onEvent:(w,p)=>{Reflect.apply(f.on,f,[p])},offEvent:(w,p)=>{Reflect.apply(f.off,f,[p])}}}function Ln(e,t,a,n,l){const o={},s=t??"";a.fieldName=s,a.validateHandler={getValue(c){const f=e.getForSelf("modelValue");return f?f[s]:null}};const i=mt({},l,a);o.validate=(c=null)=>{const f=[];let d=!1,y=!1;if(Array.isArray(c)&&c.indexOf(s)!==-1)y=!0,d=!0;else if(c&&typeof c=="object"){const x=c;Array.isArray(x.include)&&x.include.indexOf(s)!==-1||Array.isArray(x.exclude)&&x.exclude.indexOf(s),y=!0,d=x.deep??!1}else typeof c=="boolean"&&(d=c),y=!0;if(y){const x=i?.validate();f.push(x)}if(d){let x=null;const w={deep:!1};if(c===!0)x={name:"*"};else if(Array.isArray(c)&&c.length>0){const p=c;x={name:b=>b?p.indexOf(b)!==-1:!1}}else if(c!=null&&typeof c=="object"){const p=c;if(Array.isArray(p.include)&&p.include.length>0){const b=p.include;x={name:m=>m?b.indexOf(m)!==-1:!1}}else if(Array.isArray(p.exclude)&&p.exclude.length>0){const b=p.exclude;x={name:m=>m?b.indexOf(m)===-1:!1}}else x={name:"*"}}if(x){const p=u.emitToChildren(x,"validate",w);Reflect.apply([].push,f,p)}}return f.length==1?f[0]:f.length>1?Promise.all(f).then(x=>{let w=[];return x.forEach(p=>{p.pass===!1&&Array.isArray(p.errors)&&(w=[...w,...p.errors])}),w.length>0?{pass:!1,errors:w}:{pass:!0}}):Promise.resolve({pass:!0})},o.setValidateRule=c=>i?.setRule(c),o.setNameValidateRules=c=>{const f=c[s];f&&i?.setRule(f)};const u=ht(null,n,s,o);return{broadcast:u,validateSchema:i}}const ce=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${re(e,t)}px`:"";function re(e,t=-1){if(typeof e=="number")return e>0&&e<1&&t>0?e*t:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let a=e.indexOf("px");if(a!==-1)return Number(e.substring(0,a));if(a=e.indexOf("rem"),a!==-1){let l=Number(e.substring(0,a)),o=1;if(Qe){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(o=Number(s.substring(0,i)))}return l*=o,l}if(a=e.indexOf("%"),a!==-1)return Number(e.substring(0,a))/100*t;const n=Number(e);return isNaN(n)?0:n}const Ae="PageStateKey";function xe(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=re(e.top)),e.left!==null&&e.left!==void 0&&(t.left=re(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=re(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=re(e.right))),t}function Ut(e,t,a={},n=!0,l=-1,o=-1,s=0,i=0){if(e.headerHeight=re(a.headerHeight??t.headerHeight),e.headerPadding=xe(a.headerPadding??t.headerPadding),e.footerHeight=re(a.footerHeight??t.footerHeight),e.footerPadding=xe(a.footerPadding??t.footerPadding),e.contentPadding=xe(a.contentPadding??t.contentPadding),n){const u=a.height??t.height;u?e.height=re(u,o):e.height=re(o)-re(s,o)-re(i,o),e.width=re(a.width??t.width??0,l)}}function jn(e,t={}){const a={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...a},footerHeight:0,footerPadding:{...a},contentPadding:{...a},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},l=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});l&&(n.safeAreaTop=re(l.top),n.safeAreaBottom=re(l.bottom),n.safeAreaLeft=re(l.left),n.safeAreaRight=re(l.right));const o=e.get("pageLayout");if(!o)return null;const s=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,c=e.get("footerBarHeight")??0;Ut(n,o,t,!0,s,i,u,c);const f=r.reactive(n),d=e.getForParent(Ae);d&&(n.height=wt(e,d),n.width=$t(e,d),r.watch([()=>d.height,()=>d.width,()=>d.contentPadding,()=>d.headerMounted,()=>d.footerMounted],()=>{f.height=wt(e,d),f.width=$t(e,d)}));const y=!d;return r.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([x,w,p=-1,b=-1,m=0,C=0])=>{Ut(f,w,t,y,p,b,m,C)}),e.set(Ae,f),f}function yt(e){return e.get(Ae)}function bt(e,t){return t=t??e.get(Ae),t&&t.headerMounted?t.headerHeight+t.safeAreaTop:0}function St(e,t){return t=t??e.get(Ae),t&&t.footerMounted?t.footerHeight+t.safeAreaBottom:0}function wt(e,t){if(t=t??e.get(Ae),t){const a=bt(e,t),n=St(e,t);return t.height-a-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function $t(e,t){return t=t??e.get(Ae),t?t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Xa(e,t){const a=e.get("isInnerPage");return typeof a=="function"?Reflect.apply(a,{},[t,e]):!1}function Za(e){return!!e.getForParent(Ae)}var ve=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(ve||{});function Xt(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function we(e,t,a=1,n){const l=Ve();return l==null?e:a===0?r.computed(()=>{const o=l.getAll(t);for(let i=o.length-1;i>=0;i--){const u=o[i];if(Xt(u,n))return u}const s=e.value;return Xt(s,n)?s:null}):r.computed(()=>{const o=e.value;return Xt(o,n)?o:l?.get(t)})}function be(e){return we(e,"readonly",0,function(a){return te(a)})}function Se(e){return we(e,"disabled",0,function(a){return te(a)})}function ne(e,t="modelValue",a){const n=r.toRef(e,t);let l=n.value;typeof a=="function"&&(l=a(n.value));const o=r.ref(l);return r.watch(n,s=>{if(typeof a=="function"){const i=a(s);i!==o.value&&(o.value=i)}else s!==o.value&&(o.value=s)}),o}const Mn=new Map,vt=new Map;let Zt=null;function Ja(e){Zt=e}function _n(e,t,a){if(a){let n=vt.get(a);n||(n=new Map,vt.set(a,n)),n.set(e,t)}else Mn.set(e,t)}function Ce(e,t,a){!a&&Zt&&(a=Zt(e)??void 0);let n=null;if(a){let l=vt.get(a);l&&(n=l.get(t))}return n||(n=Mn.get(t)),n}function Qa(e,t){for(let a in e){const n=e[a];_n(a,n,t)}}function el(e){vt.delete(e)}function tl(){return{top:0,left:0,bottom:0,right:0}}function nl(e=0,t=0){if(Qe){const a=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,l={width:a,height:n-re(e,n)-re(t,n),headerHeight:44,footerHeight:44};return{rootWidth:a,rootHeight:n,pageLayout:l}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}}class rl{packages;installers;_version;get version(){return this._version}constructor(t,a,n){this.packages=t,this.installers=a,this._version=n}install(t,a={}){a?.install!==!1&&(this.packages.forEach(o=>{o.install?t.use(o):o.name&&t.component(o.name,o)}),this.installers.forEach(o=>{o(t)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],l=He();if(this.initPageLayout(a,l),a.autoAdjustPageLayout!==!1&&window.ResizeObserver){const o=Bn(()=>{const i={...a},u=document.documentElement.clientWidth||document.body.clientWidth,c=document.documentElement.clientHeight||document.body.clientHeight;i.width=u,i.height=c,this.initPageLayout(i,l)},150);new window.ResizeObserver(o).observe(window.document.body)}for(const o in a)n.indexOf(o)===-1&&l.set(o,a[o])}initPageLayout(t,a){const n=t.headerBarHeight??0,l=t.footerBarHeight??0,o=qe({},tl(),t.safeAreaInset),s=nl(n,l),i=qe({},s.pageLayout,t.pageLayout);a=a??He(),a.set("safeAreaInset",o),a.set("headerBarHeight",n),a.set("footerBarHeight",l),a.set("pageLayout",i),a.set("rootWidth",s.rootWidth),a.set("rootHeight",s.rootHeight)}setScopeGetter(t){Ja(t)}setAPI(t,a,n){_n(t,a,n)}getAPI(t,a,n){return Ce(t,a,n)}batchSetAPI(t,a){Qa(t,a)}clearScopeAPI(t){el(t)}getRootDomain(){return He()}}const al=[g.ElAffix,g.ElAlert,g.ElAutocomplete,g.ElAutoResizer,g.ElAvatar,g.ElBacktop,g.ElBadge,g.ElBreadcrumb,g.ElBreadcrumbItem,g.ElButton,g.ElButtonGroup,g.ElCalendar,g.ElCard,g.ElCarousel,g.ElCarouselItem,g.ElCascader,g.ElCascaderPanel,g.ElCheckTag,g.ElCheckbox,g.ElCheckboxButton,g.ElCheckboxGroup,g.ElCol,g.ElCollapse,g.ElCollapseItem,g.ElCollapseTransition,g.ElColorPicker,g.ElConfigProvider,g.ElContainer,g.ElAside,g.ElFooter,g.ElHeader,g.ElMain,g.ElDatePicker,g.ElDescriptions,g.ElDescriptionsItem,g.ElDialog,g.ElDivider,g.ElDrawer,g.ElDropdown,g.ElDropdownItem,g.ElDropdownMenu,g.ElEmpty,g.ElForm,g.ElFormItem,g.ElIcon,g.ElImage,g.ElImageViewer,g.ElInput,g.ElInputNumber,g.ElLink,g.ElMenu,g.ElSubMenu,g.ElMenuItem,g.ElMenuItemGroup,g.ElPageHeader,g.ElPagination,g.ElPopconfirm,g.ElPopover,g.ElPopper,g.ElProgress,g.ElRadio,g.ElRadioButton,g.ElRadioGroup,g.ElRate,g.ElResult,g.ElRow,g.ElScrollbar,g.ElSelect,g.ElOption,g.ElOptionGroup,g.ElSelectV2,g.ElSkeleton,g.ElSkeletonItem,g.ElSlider,g.ElSpace,g.ElSteps,g.ElStep,g.ElSwitch,g.ElTable,g.ElTableColumn,g.ElTableV2,g.ElTabs,g.ElTabPane,g.ElTag,g.ElTimePicker,g.ElTimeSelect,g.ElTimeline,g.ElTimelineItem,g.ElTooltip,g.ElTransfer,g.ElTree,g.ElTreeSelect,g.ElTreeV2,g.ElUpload],ll=[g.ElInfiniteScroll,g.ElLoading,g.ElMessage,g.ElMessageBox,g.ElNotification,g.ElPopoverDirective],ol=e=>{al.forEach(t=>{let a=t.name;typeof a=="string"?(a=`Fox${a.slice(2)}`,e.component(a,t)):e.use(t)}),ll.forEach(t=>{e.use(t)})};function Q(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(a){return a.baseName=e,a.name=t,a.install=n=>{n.component(a.name,a)},r.defineComponent(a)},createDemo(a){return a.baseName=e,a.name="demo-"+e,r.defineComponent(a)}}}const ie={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},pe={prop:{type:String,required:!1},label:{type:String,required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},Pn={column:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},maxItemWidth:{type:[String,Number],required:!1}},Hn={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},type:{type:[String],required:!1,default:"grid"},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!0},markColor:{type:[String],required:!1},title:{type:String,default:""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:!1},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1}},zn=[];for(const e in Hn)zn.push(e);function fe(e,t=null){if(t||(t=r.getCurrentInstance()),t&&t.proxy){let a=t.proxy;Object.assign(a,e)}}const il=Symbol.for("InnerPageScopeKey"),sl=(e,t)=>({inheritAttrs:!0,props:{...ie,...Pn,name:{type:String,required:!1,default:""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1}},setup(a,n){const l=Yt(a.name,a);if(l){const c=jn(l,a);fe({getPageContentHeight:()=>wt(l,c),getPageContentWidth:()=>$t(l,c),getPageHeaderHeight:()=>bt(l,c),getPageFooterHeight:()=>St(l,c)});const f=r.inject(il,!1);c&&f&&(c.contentHeight="100%")}const o=r.computed(()=>({[e]:!0})),s=r.computed(()=>({})),i=r.getCurrentInstance(),u=c=>{const f=i?.proxy;f&&typeof f.setNameValidateRules=="function"&&f.setNameValidateRules(c,!0)};return r.watch(()=>a.rules,(c,f)=>{if(!c&&!f)return;const d=r.toRaw(f),y=r.toRaw(c),x=y?Reflect.ownKeys(y):[];(d?Reflect.ownKeys(d):[]).forEach(p=>{x.includes(p)||(y[p]=[])}),u(y)},{deep:!0}),r.onMounted(()=>{if(a.rules){const c=r.toRaw(a.rules);u(c)}}),r.onBeforeUnmount(()=>{}),{classes:o,styles:s}}}),{componentName:ul,create:cl,scope:Bu}=Q("page"),fl=cl(sl(ul));function dl(e,t,a,n,l,o){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),title:""},[r.renderSlot(e.$slots,"default")],6)}const Ee=(e,t)=>{const a=e.__vccOpts||e;for(const[n,l]of t)a[n]=l;return a},Kn=Ee(fl,[["render",dl]]),hl=["aria-labelledby"],gl=r.createElementVNode("path",{d:"M642.973 1005.542 321.912 587.098a123.278 123.278 0 0 1 0-150.17l321.06-418.443a47.182 47.182 0 0 1 74.83 57.422l-321.088 418.47a28.994 28.994 0 0 0 0 35.3l321.088 418.47a47.155 47.155 0 0 1-74.83 57.395",fill:"currentColor","fill-opacity":"0.9"},null,-1),ml=[gl],pl=r.defineComponent({__name:"Left",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const a=e,n=i=>{t("click",i)},l=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},o=r.computed(()=>{const i="fox-icon";return{[a.class]:!!a.class,[i]:!0,[i+"-"+a.name]:a.name}}),s=r.computed(()=>{const i={};return i.height=l(a.height)??l(a.size),i.width=l(a.width)??l(a.size),i.color=a.color,i});return(i,u)=>(r.openBlock(),r.createElementBlock("svg",{class:r.normalizeClass(o.value),style:r.normalizeStyle(s.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},ml,14,hl))}}),yl=(e,t,a)=>({props:{height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:a},leftText:{type:String,required:!1,default:""},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(n,l){const o=Ve(),s=o?yt(o):null;s&&(s.headerMounted=!0);const i=r.computed(()=>({[e]:!0})),u=n.height!==null&&n.height!==void 0?re(n.height):null,c=r.computed(()=>{const F={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(o&&s){const W=xe(n.padding??s.footerPadding);return Object.assign(F,W),u&&(s.headerHeight=u),F.height=s.headerHeight,F.safeAreaTop=s.safeAreaTop,F.safeAreaTop&&(F.top=F.safeAreaTop+(W.top??0),F.height=F.height+s.safeAreaTop),F.height,F.safeAreaTop,F}if(u&&(F.height=u),n.padding){const W=xe(n.padding);Object.assign(F,W)}return F});r.onUnmounted(()=>{s&&(s.headerMounted=!1)});const f=r.computed(()=>{const F={};return c.value.height!==null&&c.value.height!==void 0&&(F.height=`${c.value.height}px`),c.value.top!==null&&c.value.top!==void 0&&(F.paddingTop=`${c.value.top}px`),c.value.left!==null&&c.value.left!==void 0&&(F.paddingLeft=`${c.value.left}px`),c.value.right!==null&&c.value.right!==void 0&&(F.paddingRight=`${c.value.right}px`),c.value.bottom!==null&&c.value.bottom!==void 0&&(F.paddingBottom=`${c.value.bottom}px`),F}),d=r.computed(()=>{const F={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(F.top=`${c.value.safeAreaTop}px`),F}),y=r.computed(()=>{const F={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(F.top=`${c.value.safeAreaTop}px`),F}),x=r.computed(()=>!!n.leftShow),w=r.computed(()=>!(c.value.height!==null&&c.value.height!==void 0&&c.value.height<=0)),p=r.computed(()=>n.titleShow?n.title||n.titleIcon||l.slots.titleIcon||l.slots.default:!1),b=r.computed(()=>n.rightShow?n.rightText||n.rightIcon||l.slots.rightIcon||l.slots.right:!1),m=r.computed(()=>n.leftIcon),C=r.computed(()=>m.value||l.slots.leftIcon),R=r.computed(()=>n.titleIcon),B=r.computed(()=>n.titleIcon||l.slots.titleIcon),k=r.computed(()=>n.rightIcon),N=r.computed(()=>n.rightIcon||l.slots.rightIcon);function I(){l.emit("back")}function O(){l.emit("click-title")}function D(){l.emit("click-right")}function A(){l.emit("click-right-text")}return{classes:i,styles:f,mHeaderShow:w,leftStyles:d,rightStyles:y,mLeftShow:x,mTitleShow:p,mRightShow:b,mLeftIcon:m,hasLeftIcon:C,mTitleIcon:R,hasTitleIcon:B,mRightIcon:k,hasRightIcon:N,handleLeft:I,handleCenter:O,handleRight:D,handleRightText:A}}}),{componentName:bl,create:Sl,scope:wl}=Q("header-bar"),$l=Sl(yl(bl,wl,pl)),vl={key:1,class:"fox-header-bar__title"},Tl={key:0,class:"title-text"};function xl(e,t,a,n,l,o){return e.mHeaderShow?(r.openBlock(),r.createElementBlock("view",{key:0,class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"all",{},()=>[e.mLeftShow?(r.openBlock(),r.createElementBlock("view",{key:0,class:"fox-header-bar__left",style:r.normalizeStyle(e.leftStyles)},[r.renderSlot(e.$slots,"left",{},()=>[e.hasLeftIcon?(r.openBlock(),r.createElementBlock("view",{key:0,onClick:t[0]||(t[0]=(...s)=>e.handleLeft&&e.handleLeft(...s)),class:"left-icon"},[r.renderSlot(e.$slots,"leftIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mLeftIcon)))])])):r.createCommentVNode("",!0),e.leftText?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[1]||(t[1]=(...s)=>e.handleLeft&&e.handleLeft(...s))},r.toDisplayString(e.leftText),1)):r.createCommentVNode("",!0)])],4)):r.createCommentVNode("",!0),e.mTitleShow?(r.openBlock(),r.createElementBlock("view",vl,[r.renderSlot(e.$slots,"default",{},()=>[e.title?(r.openBlock(),r.createElementBlock("view",Tl,r.toDisplayString(e.title),1)):r.createCommentVNode("",!0),e.hasTitleIcon?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[2]||(t[2]=(...s)=>e.handleCenter&&e.handleCenter(...s)),class:"title-icon"},[r.renderSlot(e.$slots,"titleIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mTitleIcon)))])])):r.createCommentVNode("",!0)])])):r.createCommentVNode("",!0),e.mRightShow?(r.openBlock(),r.createElementBlock("view",{key:2,class:"fox-header-bar__right",style:r.normalizeStyle(e.rightStyles)},[r.renderSlot(e.$slots,"right",{},()=>[e.rightText?(r.openBlock(),r.createElementBlock("view",{key:0,onClick:t[3]||(t[3]=(...s)=>e.handleRightText&&e.handleRightText(...s))},r.toDisplayString(e.rightText),1)):r.createCommentVNode("",!0),e.hasRightIcon?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[4]||(t[4]=(...s)=>e.handleRight&&e.handleRight(...s)),class:"right-icon"},[r.renderSlot(e.$slots,"rightIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mRightIcon)))])])):r.createCommentVNode("",!0)])],4)):r.createCommentVNode("",!0)])],6)):r.createCommentVNode("",!0)}const Wn=Ee($l,[["render",xl]]);function Cl(e,t){return{props:{height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(a,n){const l=Ve(),o=l?yt(l):null;o&&(o.footerMounted=!0);const s=r.computed(()=>{const f=e;let d=e;return a.align==="left"?d=`${d}__left`:a.align==="right"?d=`${d}__right`:d=`${d}__center`,{[f]:!0,[d]:!0}}),i=a.height!==null&&a.height!==void 0?re(a.height):null,u=r.computed(()=>{const f={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(l&&o){const d=xe(a.padding??o.footerPadding);return Object.assign(f,d),i&&(o.footerHeight=i),f.height=o.footerHeight,f.safeAreaBottom=o.safeAreaBottom,f.safeAreaBottom&&(f.height=f.height+o.safeAreaBottom,f.bottom=f.safeAreaBottom+(d.bottom??0)),f}if(i&&(f.height=i),a.padding){const d=xe(a.padding);Object.assign(f,d)}return f});r.onUnmounted(()=>{o&&(o.footerMounted=!1)});const c=r.computed(()=>{const f={};return u.value.height!==null&&u.value.height!==void 0&&(f.height=ce(u.value.height)),u.value.top!==null&&u.value.top!==void 0&&(f.paddingTop=ce(u.value.top)),u.value.left!==null&&u.value.left!==void 0&&(f.paddingLeft=ce(u.value.left)),u.value.right!==null&&u.value.right!==void 0&&(f.paddingRight=ce(u.value.right)),u.value.bottom!==null&&u.value.bottom!==void 0&&(f.paddingBottom=ce(u.value.bottom)),f});return{classes:s,styles:c}}}}const{componentName:El,create:Nl,scope:Fu}=Q("footer-bar"),kl=Nl(Cl(El));function Vl(e,t,a,n,l,o){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"default")],6)}const Gn=Ee(kl,[["render",Vl]]);function Ol(e,t){return{props:{padding:{type:[Object],required:!1}},setup(a){const n=Ve(),l=r.computed(()=>({[e]:!0})),o=r.computed(()=>{const s={};if(n){const i=yt(n);if(i){if(a.padding){const d=xe(a.padding);Object.assign(i.contentPadding,d)}const u=bt(n,i),c=St(n,i);let f="";if(i.contentHeight?f=`${i.contentHeight}`:f=`${i.height}px`,i.contentPadding,s.height=f,i.contentPadding.top!==null&&i.contentPadding.top!==void 0||u>0){const d=(i&&i.contentPadding&&i.contentPadding.top)??0;s.paddingTop=`${u+d}px`}if(i.contentPadding.bottom!==null&&i.contentPadding.bottom!==void 0||c>0){const d=(i&&i.contentPadding&&i.contentPadding.bottom)??0;s.paddingBottom=`${c+d}px`}return i.contentPadding.left!==null&&i.contentPadding.left!==void 0&&(s.paddingLeft=`${i.contentPadding.left}px`),i.contentPadding.right!==null&&i.contentPadding.right!==void 0&&(s.paddingRight=`${i.contentPadding.right}px`),s}}if(a.padding){const i=xe(a.padding);i.left!==null&&i.left!==void 0&&(s.paddingLeft=`${i.left}px`),i.top!==null&&i.top!==void 0&&(s.paddingTop=`${i.top}px`),i.right!==null&&i.right!==void 0&&(s.paddingRight=`${i.right}px`),i.bottom!==null&&i.bottom!==void 0&&(s.paddingBottom=`${i.bottom}px`)}return s});return{classes:l,styles:o}}}}const{componentName:Il,create:Dl,scope:qu}=Q("content"),Rl=Dl(Ol(Il));function Al(e,t,a,n,l,o){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"default")],6)}const Yn=Ee(Rl,[["render",Al]]),ze="GroupStateKey",Un=Symbol.for("GroupScopeKey");function Tt(){return r.inject(Un,!1)}function xt(e=!0){r.provide(Un,e)}function Bl(e,t={}){const n={type:"form",width:e.get("width",-1),column:-1,gutter:-1};Object.assign(n,t);const l=r.shallowRef(n),o=r.markRaw({layout:l,passport:0,order:{index:0}});return e.set(ze,o),o}function Xn(e,t,a=-1,n=-1,l=!1,o,s){const i=e.get(ze);if(!i)return;const u=e.get("groupLayout")??{};a===-1&&(a=u.column??1),n===-1&&(n=u.gutter??0),o||(o=u.minItemWidth??-1),s||(s=u.maxItemWidth??-1);const c=re(o),f=re(s),d=()=>{const y=t===""||t===-1,x=re(t);let w=ge(a);const p=re(n);if(!y){let C=(x-(w-1)*p)/w;for(;f!==-1&&C>f;)w++,C=(x-(w-1)*p)/w;for(;c!==-1&&w>1&&C<c;)w--,C=(x-(w-1)*p)/w}let b=!1;const m=i.layout;m.value.width=t,m.value.column!==w&&(m.value.column=w,b=!0),m.value.gutter!==p&&(m.value.gutter=p,b=!0),b&&r.triggerRef(m)};if(l)d();else{const y=++i.passport;setTimeout(()=>{y===i.passport&&d()},50)}}function Ct(e,t=!1){let a;return t?a=e.getForParent(ze):a=e.get(ze),a.layout}function Et(e,t=!1){let a;return t?a=e.getForParent(ze):a=e.get(ze),a.order}function Zn(e,t=1){if(t==="stretch")return-1;const a=ge(t);return a===-1?100:100*a/e}function Nt(e,t,a=1,n=0,l){const o={};let s=0;l?s=re(l):s=Zn(t.column,a),s>0&&(o.width=`${s}%`);const i=Zn(t.column,n);i>0&&(o["margin-left"]=`${i}%`);const u=t.gutter/2;return u>0&&(o["padding-left"]=`${u}px`,o["padding-right"]=`${u}px`),o}function kt(e,t,a=1,n=0){if(a==="stretch"){const u=e.index%t.column,c=u+(t.column-u);return e.index=e.index+(c-u),{"grid-column-start":u+1,"grid-column-end":c+1}}let l=ge(a);if(l===-1){const u=e.index%t.column,c=t.column;return u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column-start":1,"grid-column-end":c+1}}if(l>t.column){const u=e.index%t.column,c=t.column;return u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column-start":1,"grid-column-end":c+1}}const o=ge(n)%t.column;let s=(e.index+o)%t.column,i=s+l;return i>t.column?(s=0,i=s+l,e.index=e.index+(t.column-s)+l):e.index=e.index+o+l,{"grid-column-start":s+1,"grid-column-end":i+1}}function Jn(e){const t=r.unref(e),a=window.getComputedStyle(t,null),n=parseFloat(a.getPropertyValue("padding-left")),l=parseFloat(a.getPropertyValue("padding-right")),o=parseFloat(a.getPropertyValue("padding-top")),s=parseFloat(a.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-l,height:t.clientHeight-o-s}}function Jt(e){let t=e.offsetHeight;if(t<=0){const a=e.cloneNode(!0),n=e.offsetWidth;a.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(a),t=a.offsetHeight,document.body.removeChild(a)}return t}function Fl(e,t,a){if(e<=0)return"1fr";const n=(e-(t-1)*a)/t;return n>0?`${n}px`:"1fr"}function ql(e,t,a){return{props:{...ie,...Pn,...Hn},emits:["update:collapse"],setup(n,l){const o=Yt(n.name,n,zn),s=Bl(o,{type:n.type}),i=Tt();xt(!0);const u=r.computed(()=>i&&o?Ct(o,!0).value:null),c=r.getCurrentInstance(),f=$=>{const L=c?.proxy;L&&typeof L.setNameValidateRules=="function"&&L.setNameValidateRules($,!0)};r.watch(()=>n.rules,($,L)=>{if(!$&&!L)return;const P=r.toRaw(L),K=r.toRaw($),X=K?Reflect.ownKeys(K):[];(P?Reflect.ownKeys(P):[]).forEach(Y=>{X.includes(Y)||(K[Y]=[])}),f(K)},{deep:!0});const d=e,y=r.computed(()=>{const $={};$.height=W.value;const L=i?Et(o,!0):null;if(u.value&&L){if(u.value.type==="grid"){const P=kt(L,u.value,n.span,n.offset);Object.assign($,P)}else if(u.value.type==="flow"){const P=Nt(L,u.value,n.span,n.offset,n.width);Object.assign($,P)}}else if(n.width){const P=ce(n.width);$.width=P}return v.value&&($["box-sizing"]="content-box"),$}),x=r.computed(()=>n.type==="grid"||n.type==="flow"?{[`${d}__${n.type}`]:!0,[`${d}__${n.type}-justify-${n.justify}`]:!0,[`${d}__${n.type}-align-${n.align}`]:!0,[`${d}__gutter`]:!0}:{[`${d}__${n.type}`]:!0,[`${d}__gutter`]:!0}),w=r.computed(()=>{if(n.type==="grid"){const $=Fl(N.value,s.layout.value.column,s.layout.value.gutter);return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":`repeat(${s.layout.value.column}, ${$})`}}}),p=r.toRef(n,"title"),b=r.toRef(n,"gutter"),m=r.toRef(n,"column"),C=r.computed(()=>i?!0:te(n.isWrap)),R=[],B=$=>{R.push($)},k=()=>{let $=R.length;R.splice(0,$)},N=r.ref(-1);Xn(o,N.value,m.value,b.value,!0,n.minItemWidth,n.maxItemWidth),n.autoLayout&&r.watch([N,m,b],([$,L,P])=>{s.order.index=0,Xn(o,$,L,P,!1,n.minItemWidth,n.maxItemWidth)});const I=r.computed(()=>v.value?n.expandText??"":n.collapseText??""),O=r.computed(()=>({[`${e}__header-collapse-text`]:!0})),D=r.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!v.value,"is-collapse":v.value})),A=r.ref(),F=r.ref(),W=r.computed(()=>T.value||ce(n.height)||""),S=r.ref(!1),T=r.ref(""),v=r.ref(!1);let q=-1;const j=($,L=!0)=>{const P=A.value;if(P&&S.value!==$){if(q=q===-1?Jt(P):q,v.value=!0,L)if(P.style["will-change"]="height",P.ontransitionend=function(){P.ontransitionend=null,this.style["will-change"]="auto",$||(T.value="",v.value=!1)},$){let K=0;n.collapseHeight?K=n.collapseHeight:F.value&&F.value.classList.contains(`${e}__header`)&&(K=Jt(F.value)),T.value=`${q}px`,r.nextTick(()=>{T.value=`${K}px`})}else T.value=`${q}px`;else if($){let K=0;n.collapseHeight?K=n.collapseHeight:F.value&&F.value.classList.contains(`${e}__header`)&&(K=Jt(F.value)),T.value=`${K}px`}else v.value=!1,T.value=`${q}px`;S.value=$,l.emit("update:collapse",$)}};r.watch(()=>n.collapse,$=>{j($)});const G=()=>{E()},E=$=>{$=$??!S.value,j($)};fe({toggleCollapse:E});let V=null;r.onMounted(()=>{if(n.rules){const $=r.toRaw(n.rules);f($)}if(Qe&&(j(te(n.collapse),!1),n.autoLayout&&Array.isArray(R)&&R.length>0)){const $=R[0];N.value=Jn($).width,window.ResizeObserver&&(V=new window.ResizeObserver(()=>{const L=Jn($).width;L>0&&L!==N.value&&(N.value=L)}),V.observe($))}}),r.onUnmounted(()=>{V?.disconnect()});const H=($,L,P,K)=>{const X={...x.value};return L===0&&(X[`${d}__first`]=!0),P>=K-1&&(X[`${d}__last`]=!0),r.h("div",{ref:B,key:`${L}`,class:X,style:w.value},$)};return()=>{s.order.index=0;const $=[];let L=0;if(l.slots.header){const K={key:`${L++}`,ref:F,class:{[`${d}__header`]:!0,[`${d}__first`]:!0}},X=r.h("div",K,[l.slots.header()]);$.push(X)}else{const K=[];if(p.value){if(n.showMark){const _={class:{[`${d}__header-mark`]:!0}};n.markColor&&(_.style={background:n.markColor});const Y=r.h("div",_);K.push(Y)}const X=r.h("div",{class:{[`${d}__header-title`]:!0}},[p.value]);K.push(X)}if(l.slots.toolbar&&K.push(l.slots.toolbar()),n.showCollapse){const X=[];if(I.value){const z={class:O.value},M=r.h("span",z,[I.value]);X.push(M)}const _={class:D.value},Y=a(n.collapseIcon,_);if(Y&&X.push(Y),X.length>0){const z=r.h("div",{class:{[`${d}__header-collapse`]:!0},onClick:G},X);K.push(z)}}if(K.length>0){const X={key:`${L++}`,ref:F,class:{[`${d}__header`]:!0,[`${d}__first`]:!0}},_=r.h("div",X,K);$.push(_)}}k();const P=l.slots.default?l.slots.default():[];if(n.type==="grid"){const K=H(P,L++,0,P.length);$.push(K)}else if(n.type==="flow"){const K=H(P,L++,0,P.length);$.push(K)}else for(let K=0;K<P.length;K++){const X=P[K],_=H([X],L++,K,P.length);$.push(_)}if(C.value){const K=n.tag||"div";return r.h(K,{ref:A,prop:n.name,class:{[`${d}`]:!0,"is-collapse":v.value},style:y.value},[$])}else return $}}}}const{componentName:Ll,create:jl,scope:Ml}=Q("group"),Qn=jl(ql(Ll,Ml,(e,t)=>(e=e??Fe.ArrowUp,r.h(g.ElIcon,t,{default:()=>[r.h(e)]}))));function _l(e){return e===window}const Pl=/matrix\((.+)\)/,er=e=>{const t=r.unref(e);if(!t)return{x:0,y:0};if(_l(t))return{x:0,y:0};let a=0,n=0,l=t;for(;l!==null;)a+=l.offsetLeft,n+=l.offsetTop,l=l.offsetParent;let o=0,s=0,i=0,u=0;for(l=t;l!==document;){s+=l.scrollTop,o+=l.scrollLeft;const{transform:c}=window.getComputedStyle(l);if(c){const f=Pl.exec(c);if(f){let y=f[1].split(/\s*,\s*/);y.length==6&&(i+=Number(y[4]),u+=Number(y[5]))}}l=l.parentNode}return a-=o,n-=s,a+=i,n+=u,{x:a,y:n}};function Hl(e){return e===window}const Qt=e=>{const t=r.unref(e);if(Hl(t)){const a=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:a,bottom:n,width:a,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}};class zl{watchedListeners=[];add(t){this.watchedListeners.push(t)}remove(t){const a=this.watchedListeners.indexOf(t);a!==-1&&this.watchedListeners.splice(a,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(t=>{try{t()}catch{}})}}class Kl{monitorRegister=new WeakMap;watch(t,a){let n=t.parentNode;const l=document.body.parentNode;for(;n&&n!==l;){let o=this.monitorRegister.get(n);o||(o=new zl,n.addEventListener("scroll",o.listen),n===document.body&&n.addEventListener("resize",o.listen),this.monitorRegister.set(n,o)),o.add(a),n=n.parentNode}}unwatch(t,a){let n=t.parentNode;const l=document.body.parentNode;for(;n&&n!==l;){let o=this.monitorRegister.get(n);o&&(o.remove(a),o.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",o.listen),n===document.body&&n.removeEventListener("resize",o.listen))),n=n.parentNode}}}const tr=new Kl,nr={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Wl,create:Gl}=Q("price"),Yl=Gl({props:{...nr},setup(e){const t=r.computed(()=>({[Wl]:!0})),a=r.computed(()=>e.needSymbol?e.symbol:""),n=r.computed(()=>et(e.price)==0?"":ct(e.price,e.decimalLength,!0,ge(e.digits),e.separator)),l=r.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),o=r.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(i+1)});return{classes:t,showSymbol:a,intText:l,decimalText:o}}}),Ul=["innerHTML"],Xl=["innerHTML"];function Zl(e,t,a,n,l,o){return r.openBlock(),r.createElementBlock("view",{class:r.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(r.openBlock(),r.createElementBlock("view",{key:0,class:r.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Ul)):r.createCommentVNode("",!0),r.createElementVNode("view",{class:r.normalizeClass(`fox-price--${e.size}`)},r.toDisplayString(e.intText),3),e.decimalText.length!=0?(r.openBlock(),r.createElementBlock("view",{key:1,class:r.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):r.createCommentVNode("",!0),r.createElementVNode("view",{class:r.normalizeClass(`fox-price--decimal-${e.size}`)},r.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(r.openBlock(),r.createElementBlock("view",{key:2,class:r.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Xl)):r.createCommentVNode("",!0)],2)}const en=Ee(Yl,[["render",Zl]]),{componentName:Vt,create:Jl}=Q("hint-text"),Ql=Jl({components:{Price:en},props:{...nr,type:{type:String,default:"number"},placement:{type:String,default:"top"},id:{type:String},reference:{type:Object},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function}},setup(e,t){const o=r.ref(!0),s=r.ref({x:0,y:0}),i=r.ref({x:0,y:0}),u=r.ref(0),c=r.ref(0),f=r.ref(e.placement),d=r.computed(()=>({[Vt]:!0})),y=r.ref(null),x=(O,D,A=10)=>{if(!Qe||D===!1||!O)return;o.value=!0;const F=Qt(e.reference);u.value=F.width,c.value=F.height,setTimeout(()=>{if(!y.value)return;const W=er(e.reference),S=document.documentElement.clientWidth||document.body.clientWidth,T=y.value.offsetWidth,v=y.value.offsetHeight;W.y-v>=0?(f.value="top",s.value.y=W.y-v-10-4,i.value.y=v):(f.value="bottom",s.value.y=W.y+c.value+10,i.value.y=-10);const q=W.x+T-S;q<0?(s.value.x=W.x,i.value.x=20):(s.value.x=W.x-q,i.value.x=q+20),o.value=!1},A)},w=rt(()=>{x(e.message,e.visible)},10),p=r.computed(()=>e.visible&&b.value),b=r.ref(!0),m=rt(O=>{const D=O[0];D&&(b.value=D.isIntersecting)},10),C=new IntersectionObserver(m);r.watch([()=>e.message,()=>e.visible],([O,D])=>{x(O,D)}),r.onMounted(()=>{x(e.message,e.visible),tr.watch(e.reference,w),C.observe(e.reference)}),r.onBeforeMount(()=>{tr.unwatch(e.reference,w),C.unobserve(e.reference),C.disconnect()});const R=r.computed(()=>{const O={"min-width":ce(u.value)};return o.value?O.visibility="hidden":O.transform=`translate(${s.value.x}px, ${s.value.y}px)`,O}),B=r.computed(()=>({[`${Vt}__content`]:!0})),k=r.computed(()=>({})),N=r.computed(()=>({[`${Vt}__arrow`]:!0,[`${Vt}__arrow-${e.placement}`]:!0})),I=r.computed(()=>({top:`${i.value.y}px`,left:`${i.value.x}px`}));return{show:p,tipRef:y,classes:d,styles:R,textClasses:B,textStyles:k,arrowClasses:N,arrowStyles:I}}}),eo={key:1,class:"text"};function to(e,t,a,n,l,o){const s=r.resolveComponent("Price");return r.openBlock(),r.createBlock(r.Transition,{name:"hint-text-fade"},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",{ref:"tipRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.createElementVNode("div",{class:r.normalizeClass(e.textClasses),style:r.normalizeStyle(e.textStyles)},[e.type=="number"?(r.openBlock(),r.createBlock(s,{key:0,price:e.message,position:"before"},null,8,["price"])):(r.openBlock(),r.createElementBlock("span",eo,r.toDisplayString(e.message),1))],6),r.createElementVNode("div",{class:r.normalizeClass(e.arrowClasses),style:r.normalizeStyle(e.arrowStyles)},null,6)],6),[[r.vShow,e.show]])]),_:1})}const Ot=Ee(Ql,[["render",to]]);class rr{seed=new Date().getTime();constructor(t){this.seed=t??new Date().getTime()}get(){let t=this.seed++;return this.seed<0&&(this.seed=0),t}}const tn={},no=new rr,Ke=new Map,nn=e=>{if(e){const t=document.getElementById(e);Ke.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of Ke.keys()){const a=document.getElementById(t);a&&a.parentNode?.removeChild(a)}Ke.clear()}},ro=e=>{const t=document.getElementById(e.id);if(t){const a=Ke.get(e.id);a?e={...tn,...a,...e}:e={...tn,...e};const n=r.createVNode(Ot,e);return r.render(n,t),e.id}},ao=e=>{e.unmount=nn;let t;if(e.id){if(t=e.id,Ke.has(t))return ro(e)}else t=`hinttext_${no.get()}`;e={...tn,...e},e.id=t,Ke.set(t,e);const a=document.createElement("div");a.id=e.id;const n=r.createVNode(Ot,e);return r.render(n,a),document.body.appendChild(a),t},lo=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},It={show(e,t,a={},n=!0){return n&&nn(),lo(t),ao({...a,message:t,reference:e})},hide(e){nn(e)},install(e){e.config.globalProperties.$hintText=It}},{componentName:ar,create:oo}=Q("item"),io=oo({inheritAttrs:!0,props:{...ie,...pe},emits:["appear","disappear"],setup(e,t){const a=e.prop??t.attrs.name;ue({componentName:ar,validate:!1},a);const n=Ve(),l=Tt();xt(!1);const o=r.computed(()=>l&&n?Ct(n,!1).value:null),s=ar,i=r.ref(null),u=r.computed(()=>{const _={[s]:!0,[`${s}__gutter`]:o.value&&o.value.type!=="flow",[`${s}__stretch`]:e.span==="stretch",[`${s}__input--border`]:e.hasBorder};if(_[e.errorMarkClass]=!!F.value,_[e.warnMarkClass]=!!D.value,_[e.infoMarkClass]=!!I.value,typeof i.value=="function"){const Y=i.value(a);_[Y]=!0}else if(typeof i.value=="string"){const Y=i.value;_[Y]=!0}return _}),c=r.computed(()=>{const _={},Y=l&&n?Et(n,!1):null;if(o.value&&Y)if(o.value.type==="grid"){const z=kt(Y,o.value,e.span,e.offset);Object.assign(_,z)}else if(o.value.type==="flow"){const z=Nt(Y,o.value,e.span,e.offset,e.width);Object.assign(_,z)}else return e.width&&(_.width=ce(e.width)),_;else e.width&&(_.width=ce(e.width));return _}),f=r.ref(null),d=r.computed({get:()=>f.value??te(e.isRequired),set:_=>{f.value=_}}),y=r.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),x=we(r.toRef(e,"labelPosition"),"labelPosition",ve.Near),w=r.computed(()=>x&&x.value==="top"?"top":x&&x.value==="right"?"right":"left"),p=r.computed(()=>({[`${s}__main`]:!0,[`${s}__main--${w.value}`]:!0})),b=r.computed(()=>({label:!0,[`label--${w.value}`]:!0})),m=we(r.toRef(e,"labelWidth"),"labelWidth",ve.Near),C=r.computed(()=>m&&m.value?{width:ce(m.value)}:{}),R=r.computed(()=>({"label--string":!0,"label--required":d.value})),B=r.computed(()=>({content:!0,[e.contentClass]:!0})),k=r.computed(()=>({...e.contentStyle})),N=r.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});fe({setRequired(_){d.value=_},setErrorTip(_){N.errorTip=_},setErrorIcon(_){N.errorIcon=_},setWarnTip(_){N.warnTip=_},setWarnIcon(_){N.warnIcon=_},setInfoTip(_){N.infoTip=_},setInfoIcon(_){N.infoIcon=_},setCustomClassName(_){i.value=_}});const I=r.computed(()=>e.infoTip||N.infoTip),O=r.computed(()=>e.infoIcon||N.infoIcon),D=r.computed(()=>e.warnTip||N.warnTip),A=r.computed(()=>e.warnIcon||N.warnIcon),F=r.computed(()=>e.errorTip||N.errorTip),W=r.computed(()=>e.errorIcon||N.errorIcon),S=r.computed(()=>F.value?"error":D.value?"warn":I.value?"info":""),T=r.computed(()=>S.value.length>0),v=r.computed(()=>S.value==="error"?F.value:S.value==="warn"?D.value:S.value==="info"?I.value:""),q=r.computed(()=>S.value==="error"?W.value:S.value==="warn"?A.value:S.value==="info"?O.value:null),j=r.computed(()=>{let _={[`${s}__tip`]:!0,[`${s}__tip--${S.value}`]:!0};return S.value==="error"&&e.errorClass?_[`${e.errorClass}`]=!0:S.value==="warn"&&e.warnClass?_[`${e.warnClass}`]=!0:S.value==="info"&&e.infoClass&&(_[`${e.infoClass}`]=!0),_}),G=r.computed(()=>{let _={};return x&&x.value==="top"||!y.value?_["padding-left"]="0px":m&&m.value&&(_["padding-left"]=ce(m.value)),_}),E=()=>r.h(q.value,{width:12,height:12}),V=r.computed(()=>t.slots.fixedTip),H=r.computed(()=>({[`${s}__fixed-tip`]:!0})),$=r.ref();let L="";r.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([_,Y,z,M])=>{$.value&&(_&&!le(Y)?L?It.show($.value,Y,{...M,id:L,type:z},!0):L=It.show($.value,Y,{...M,type:z},!0):It.hide(L))});let P=null;const K=()=>{P||!$.value||(P=new IntersectionObserver(_=>{let Y=!1;for(let z of _)if(z.intersectionRatio>0){Y=!0,Y&&t.emit("appear",z);break}Y||t.emit("disappear")}),P.observe($.value))},X=()=>{!P||!$.value||(P.unobserve($.value),P=null)};return r.watch(()=>te(e.appearListen),_=>{_?K():X()}),r.onMounted(()=>{te(e.appearListen)&&K()}),r.onUnmounted(X),{classes:u,styles:c,mainClasses:p,hasLabel:y,labelClasses:b,labelStyles:C,labelStringClasses:R,contentClasses:B,contentStyles:k,contentRef:$,hasTip:T,mTip:v,mIcon:q,renderIcon:E,tipClasses:j,tipStyles:G,hasFixedTip:V,fixedTipClasses:H}}}),so=["prop"],uo={key:0,class:"fox-item__tip--icon"},co={class:"fox-item__tip--text"};function fo(e,t,a,n,l,o){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),prop:e.prop},[r.createElementVNode("div",{class:r.normalizeClass(e.mainClasses)},[e.hasLabel?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.labelClasses),style:r.normalizeStyle(e.labelStyles)},[r.createElementVNode("div",{class:r.normalizeClass(e.labelStringClasses)},[r.renderSlot(e.$slots,"label",{},()=>[r.createTextVNode(r.toDisplayString(e.label),1)])],2)],6)):r.createCommentVNode("",!0),r.createElementVNode("div",{ref:"contentRef",class:r.normalizeClass(e.contentClasses),style:r.normalizeStyle(e.contentStyles)},[r.renderSlot(e.$slots,"prepend"),r.renderSlot(e.$slots,"default"),r.renderSlot(e.$slots,"append"),e.hasFixedTip?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.fixedTipClasses)},[r.renderSlot(e.$slots,"fixedTip")],2)):r.createCommentVNode("",!0)],6)],2),r.createVNode(r.Transition,{name:"fox-item__animate"},{default:r.withCtx(()=>[e.hasTip?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.tipClasses),style:r.normalizeStyle(e.tipStyles)},[e.mIcon?(r.openBlock(),r.createElementBlock("div",uo,[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.renderIcon())))])):r.createCommentVNode("",!0),r.createElementVNode("div",co,r.toDisplayString(e.mTip),1)],6)):r.createCommentVNode("",!0)]),_:1}),r.renderSlot(e.$slots,"hide")],14,so)}const de=Ee(io,[["render",fo]]);function ho(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(a,n){const l=Ve(),o=Tt();xt(!1);const s=r.computed(()=>o&&l?Ct(l,!1).value:null),i=e,u=r.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:a.span==="stretch"})),c=r.computed(()=>{const f={},d=o&&l?Et(l,!1):null;if(s.value&&d)if(s.value.type==="grid"){const y=kt(d,s.value,a.span,a.offset);Object.assign(f,y)}else if(s.value.type==="flow"){const y=Nt(d,s.value,a.span,a.offset,a.width);Object.assign(f,y)}else return a.width&&(f.width=ce(a.width)),f;else a.width&&(f.width=ce(a.width));return f});return()=>{const f={class:u.value,style:c.value};return n.slots&&typeof n.slots.default=="function"?r.h("div",f,n.slots.default()):r.h("div",f)}}}}const{componentName:go,create:mo,scope:ju}=Q("slot-item"),lr=mo(ho(go));function po(e,t){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean],required:!1,default:!1}},setup(a,n){const l=e,o=r.computed(()=>({[l]:!0,[`${l}__stretch`]:a.span==="stretch",[`${l}__${a.align}`]:!0})),s=Ve(),i=Tt();xt(!1);const u=r.computed(()=>{const c={};if(i&&s){const f=Ct(s,!1),d=Et(s,!1);if(f.value&&d)if(f.value.type==="grid"){const y=kt(d,f.value,a.span,a.offset);Object.assign(c,y)}else if(f.value.type==="flow"){const y=Nt(d,f.value,a.span,a.offset,a.width);Object.assign(c,y)}else a.width&&(c.width=ce(a.width))}else a.width&&(c.width=ce(a.width));return c});return()=>{const c=[];if(n.slots.default){const d=n.slots.default();if(a.divide)for(let y=0;y<d.length;y++){if(y>0){const x=r.h("div",{class:{[`${l}__divide`]:!0}});c.push(x)}c.push(d[y])}else Reflect.apply([].push,c,d)}const f={class:o.value,style:u.value};return r.h("div",f,c)}}}}const{componentName:yo,create:bo,scope:Mu}=Q("row-item"),or=bo(po(yo)),ir={modelValue:{type:[String,Boolean,Number,Object],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!1}};function So(e,t,a){return{props:{...ie,...pe,...ir},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Te.useFoxI18n(t),c=u(n,["placeholder"]),f=r.ref(!1),d=ne(n,"modelValue"),y=e,x=r.computed(()=>({[y]:!0,[`${y}__disabled`]:o.value,[`${y}__readonly`]:s.value})),w=S=>{d.value=S,i("update:modelValue",S),i("input",S)},p=S=>{i("change",S)};let b=ne(n,"hintText"),m=r.ref(!1);const C=S=>{let v=S.target.value;f.value=!0,le(b.value)||(m.value=!0),i("focus",v,S)},R=S=>{setTimeout(()=>{m.value&&(m.value=!1),f.value=!1},0);let v=S.target.value;n.maxLength&&v.length>Number(n.maxLength)&&(v=v.slice(0,Number(n.maxLength))),i("blur",v,S)},B=()=>{i("clear","")},k=r.ref(!1);let N=null;const I=()=>{n.showTooltip&&k.value===!1&&(N=setTimeout(()=>{k.value=!0},150))},O=()=>{N&&(clearTimeout(N),k.value=!1,N=null)},D=r.computed(()=>k.value||m.value),A=r.computed(()=>k.value?d.value:b.value),F=r.computed(()=>et(n.unit)>0),W=r.ref();return fe({focus:()=>{W?.value.focus()},blur:()=>{W?.value.blur()},select:()=>{W?.value.select()}}),()=>{const T={...l.attrs,ref:W,class:x.value,placeholder:c.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:s.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:B,onChange:p,onInput:w,onFocus:C,onBlur:R,onMouseover:I,onMouseleave:O},v={};l.slots.prepend&&(v.prepend=l.slots.prepend),l.slots.append&&(v.append=l.slots.append),l.slots.prefix&&(v.prefix=l.slots.prefix),l.slots.suffix?v.suffix=l.slots.suffix:F.value&&(v.suffix=()=>[n.unit]);const q=[],j=r.h(g.ElInput,T,v);q.push(j);const G={default:()=>q};l.slots.default&&(G.label=l.slots.default),l.slots.default&&(G.fixedTip=l.slots.fixedTip);const V={...me(n,ir),hintText:A.value,hintVisible:D.value,prop:`${n.prop}_item`};return r.h(a,V,G)}}}}const{componentName:wo,create:$o,scope:vo}=Q("input-item"),sr=$o(So(wo,vo,de));function je(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function We(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function ur(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function To(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let xo=class{proxy;constructor(t){this.proxy=t}async load(t,a,n){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n);const l=Ce(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(De(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(a,n))}};function Co(){const e=r.getCurrentInstance();return new xo(e.proxy)}function cr(e,t,a){const n=je(e,t),l=je(e,a);if(n!==l)return!1;const o=We(e,t),s=We(e,a);return o===s}function fr(e,t,a,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];return t.forEach(o=>{for(let s of n){const i=ur(e,s);if(Array.isArray(i)&&i.length>0){const u=fr(e,o,a,i)??[];Reflect.apply([].push,l,u)}else{let u=!1;if(a==="text")u=je(e,s)===o;else if(a==="item")u=cr(e,s,o);else{let c=We(e,s);c==null&&(c=je(e,s)),u=c===o}if(u){l.push(s);break}}}}),l}function Eo(e){return{text:e,value:e}}const dr={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},lazyLoad:{type:[Boolean,String],default:!1}};function No(e,t,a){return{props:{...ie,...pe,...dr},emits:["change","update:modelValue","blur","focus","clear","visible-change","remove-tag","selected"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Te.useFoxI18n(t),c=u(n,["placeholder"]),f=r.ref(null),d=r.ref([]),y=($,L,P,K=!0)=>{const X=fr(n,$,L,P);if(X===null){if(d.value===null||d.value.length===0)return;f.value=null,d.value=[],K&&(i("update:modelValue",null),i("change",null));return}let _=!0;if(X.length!==d.value.length)_=!1;else for(let Y=0;Y<X.length;Y++){const z=X[Y],M=d.value[Y];if(!cr(n,z,M)){_=!1;break}}if(!_){d.value=X;let Y=[],z=[];X.forEach(U=>{Y.push(We(n,U)),n.valueType==="text"?z.push(je(n,U)):n.valueType==="item"?z.push(U):z.push(We(n,U))});let M;n.multiple?(f.value=Y,M=r.toRaw(z)):(f.value=Y[0]??"",M=r.toRaw(z[0]??"")),K&&(i("update:modelValue",M),i("change",M))}},x=r.ref(null),w=r.ref(null),p=r.computed(()=>w.value??x.value??[]),b=we(r.computed(()=>n.lazyLoad),"lazyLoad",ve.Near,$=>te($)),m=Co(),C=async($,L)=>{if($){const P=await m.load("select",$,L);if(P.length>0)if(typeof P[0]=="string"){let _=P.map(Y=>Eo(Y));x.value=_}else x.value=P;else x.value=null}};r.watch([()=>n.source,()=>n.params],([$,L])=>{C($,L)},{immediate:!b.value});let R=!1;const B=()=>{R||(R=!0,C(n.source,n.params))};r.watch([()=>p.value,()=>n.modelValue],([$,L])=>{y(L,n.valueType,$,!1)});let k=null,N=r.ref(!1);typeof n.remoteMethod=="function"&&(k=async $=>{if($==null){w.value=null;return}N.value=!0;try{const L=await n.remoteMethod($);L&&(w.value=L)}catch(L){w.value=null,console.error(L)}N.value=!1});let I=null;typeof n.filterMethod=="function"&&(I=async $=>{if($==null){w.value=null;return}N.value=!0;try{const L=await n.filterMethod($,x.value);L&&(w.value=L)}catch(L){w.value=null,console.error(L)}N.value=!1});const O=r.ref(!1),D=e,A=r.computed(()=>({[D]:!0})),F=$=>{n.allowCreate?(i("update:modelValue",$),i("change",$),f.value=$):y($,"value",p.value,!0)};let W=ne(n,"hintText"),S=r.ref(!1);const T=$=>{let P=$.target.value;O.value=!0,le(W.value)||(S.value=!0),i("focus",P,$)},v=$=>{setTimeout(()=>{S.value&&(S.value=!1),O.value=!1},0);let P=$.target.value;n.maxLength&&P.length>Number(n.maxLength)&&(P=P.slice(0,Number(n.maxLength))),j.value||i("blur",P,$)},q=()=>{i("clear","")},j=r.ref(!1),G=$=>{j.value=$,i("visible-change",$),$||i("selected")},E=$=>{i("remove-tag",$)},V=($,L)=>{const P=[];return $.forEach((K,X)=>{const _=ur(n,K);if(Array.isArray(_)&&_.length>0){const Y=V(_,L),z=je(n,K),U={key:`${z}_${X}`,label:z};P.push(r.h(g.ElOptionGroup,U,{default:()=>Y}))}else{const Y=We(n,K),z=je(n,K),M=To(n,K),Z={key:`${Y}_${X}`,label:z,disabled:M,value:Y};if(typeof L=="function")P.push(r.h(g.ElOption,Z,{default:()=>L(K)}));else if(n.optionType==="item"){const ee={class:{"fox-select-item__option-left":!0}},ye=r.h("span",ee,[Y]),se={class:{"fox-select-item__option-right":!0}},_e=r.h("span",se,[z]),ma=r.h("div",{class:{"fox-select-item__option":!0}},[ye,_e]);P.push(r.h(g.ElOption,Z,{default:()=>ma}))}else n.optionType==="value"?P.push(r.h(g.ElOption,Z,{default:()=>[Y]})):P.push(r.h(g.ElOption,Z))}}),P},H=r.ref();return fe({focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()}}),()=>{const L={...l.attrs,ref:H,class:A.value,clearable:n.clearable,multiple:n.multiple,placeholder:c.placeholder.value,disabled:o.value||s.value,modelValue:f.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:q,onChange:F,onFocus:T,onBlur:v,onVisibleChange:G,onRemoveTag:E};typeof k=="function"&&(L["remote-method"]=k,L.loading=N.value),typeof I=="function"&&(L["filter-method"]=I,L.loading=N.value);const P={};l.slots.prefix&&(P.prefix=l.slots.prefix),l.slots.empty&&(P.empty=l.slots.empty),l.slots.options?P.default=l.slots.options:P.default=()=>V(p.value,l.slots.option);const K=[],X=r.h(g.ElSelect,L,P);K.push(X);const _={default:()=>K};l.slots.default&&(_.label=l.slots.default),l.slots.fixedTip&&(_.fixedTip=l.slots.fixedTip);const z={...me(n,dr),hintText:W.value,hintVisible:S.value,prop:`${n.prop??l.attrs.name}_item`};return b.value&&(z["appear-listen"]=!0,z.onAppear=B),r.h(a,z,_)}}}}const{componentName:ko,create:Vo,scope:Oo}=Q("select-item"),hr=Vo(No(ko,Oo,de));var Oe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ie(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Oe,function(){var a=1e3,n=6e4,l=36e5,o="millisecond",s="second",i="minute",u="hour",c="day",f="week",d="month",y="quarter",x="year",w="date",p="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},R=function(S,T,v){var q=String(S);return!q||q.length>=T?S:""+Array(T+1-q.length).join(v)+S},B={s:R,z:function(S){var T=-S.utcOffset(),v=Math.abs(T),q=Math.floor(v/60),j=v%60;return(T<=0?"+":"-")+R(q,2,"0")+":"+R(j,2,"0")},m:function S(T,v){if(T.date()<v.date())return-S(v,T);var q=12*(v.year()-T.year())+(v.month()-T.month()),j=T.clone().add(q,d),G=v-j<0,E=T.clone().add(q+(G?-1:1),d);return+(-(q+(v-j)/(G?j-E:E-j))||0)},a:function(S){return S<0?Math.ceil(S)||0:Math.floor(S)},p:function(S){return{M:d,y:x,w:f,d:c,D:w,h:u,m:i,s,ms:o,Q:y}[S]||String(S||"").toLowerCase().replace(/s$/,"")},u:function(S){return S===void 0}},k="en",N={};N[k]=C;var I=function(S){return S instanceof F},O=function S(T,v,q){var j;if(!T)return k;if(typeof T=="string"){var G=T.toLowerCase();N[G]&&(j=G),v&&(N[G]=v,j=G);var E=T.split("-");if(!j&&E.length>1)return S(E[0])}else{var V=T.name;N[V]=T,j=V}return!q&&j&&(k=j),j||!q&&k},D=function(S,T){if(I(S))return S.clone();var v=typeof T=="object"?T:{};return v.date=S,v.args=arguments,new F(v)},A=B;A.l=O,A.i=I,A.w=function(S,T){return D(S,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var F=function(){function S(v){this.$L=O(v.locale,null,!0),this.parse(v)}var T=S.prototype;return T.parse=function(v){this.$d=function(q){var j=q.date,G=q.utc;if(j===null)return new Date(NaN);if(A.u(j))return new Date;if(j instanceof Date)return new Date(j);if(typeof j=="string"&&!/Z$/i.test(j)){var E=j.match(b);if(E){var V=E[2]-1||0,H=(E[7]||"0").substring(0,3);return G?new Date(Date.UTC(E[1],V,E[3]||1,E[4]||0,E[5]||0,E[6]||0,H)):new Date(E[1],V,E[3]||1,E[4]||0,E[5]||0,E[6]||0,H)}}return new Date(j)}(v),this.$x=v.x||{},this.init()},T.init=function(){var v=this.$d;this.$y=v.getFullYear(),this.$M=v.getMonth(),this.$D=v.getDate(),this.$W=v.getDay(),this.$H=v.getHours(),this.$m=v.getMinutes(),this.$s=v.getSeconds(),this.$ms=v.getMilliseconds()},T.$utils=function(){return A},T.isValid=function(){return this.$d.toString()!==p},T.isSame=function(v,q){var j=D(v);return this.startOf(q)<=j&&j<=this.endOf(q)},T.isAfter=function(v,q){return D(v)<this.startOf(q)},T.isBefore=function(v,q){return this.endOf(q)<D(v)},T.$g=function(v,q,j){return A.u(v)?this[q]:this.set(j,v)},T.unix=function(){return Math.floor(this.valueOf()/1e3)},T.valueOf=function(){return this.$d.getTime()},T.startOf=function(v,q){var j=this,G=!!A.u(q)||q,E=A.p(v),V=function(Y,z){var M=A.w(j.$u?Date.UTC(j.$y,z,Y):new Date(j.$y,z,Y),j);return G?M:M.endOf(c)},H=function(Y,z){return A.w(j.toDate()[Y].apply(j.toDate("s"),(G?[0,0,0,0]:[23,59,59,999]).slice(z)),j)},$=this.$W,L=this.$M,P=this.$D,K="set"+(this.$u?"UTC":"");switch(E){case x:return G?V(1,0):V(31,11);case d:return G?V(1,L):V(0,L+1);case f:var X=this.$locale().weekStart||0,_=($<X?$+7:$)-X;return V(G?P-_:P+(6-_),L);case c:case w:return H(K+"Hours",0);case u:return H(K+"Minutes",1);case i:return H(K+"Seconds",2);case s:return H(K+"Milliseconds",3);default:return this.clone()}},T.endOf=function(v){return this.startOf(v,!1)},T.$set=function(v,q){var j,G=A.p(v),E="set"+(this.$u?"UTC":""),V=(j={},j[c]=E+"Date",j[w]=E+"Date",j[d]=E+"Month",j[x]=E+"FullYear",j[u]=E+"Hours",j[i]=E+"Minutes",j[s]=E+"Seconds",j[o]=E+"Milliseconds",j)[G],H=G===c?this.$D+(q-this.$W):q;if(G===d||G===x){var $=this.clone().set(w,1);$.$d[V](H),$.init(),this.$d=$.set(w,Math.min(this.$D,$.daysInMonth())).$d}else V&&this.$d[V](H);return this.init(),this},T.set=function(v,q){return this.clone().$set(v,q)},T.get=function(v){return this[A.p(v)]()},T.add=function(v,q){var j,G=this;v=Number(v);var E=A.p(q),V=function(L){var P=D(G);return A.w(P.date(P.date()+Math.round(L*v)),G)};if(E===d)return this.set(d,this.$M+v);if(E===x)return this.set(x,this.$y+v);if(E===c)return V(1);if(E===f)return V(7);var H=(j={},j[i]=n,j[u]=l,j[s]=a,j)[E]||1,$=this.$d.getTime()+v*H;return A.w($,this)},T.subtract=function(v,q){return this.add(-1*v,q)},T.format=function(v){var q=this,j=this.$locale();if(!this.isValid())return j.invalidDate||p;var G=v||"YYYY-MM-DDTHH:mm:ssZ",E=A.z(this),V=this.$H,H=this.$m,$=this.$M,L=j.weekdays,P=j.months,K=function(z,M,U,Z){return z&&(z[M]||z(q,G))||U[M].slice(0,Z)},X=function(z){return A.s(V%12||12,z,"0")},_=j.meridiem||function(z,M,U){var Z=z<12?"AM":"PM";return U?Z.toLowerCase():Z},Y={YY:String(this.$y).slice(-2),YYYY:this.$y,M:$+1,MM:A.s($+1,2,"0"),MMM:K(j.monthsShort,$,P,3),MMMM:K(P,$),D:this.$D,DD:A.s(this.$D,2,"0"),d:String(this.$W),dd:K(j.weekdaysMin,this.$W,L,2),ddd:K(j.weekdaysShort,this.$W,L,3),dddd:L[this.$W],H:String(V),HH:A.s(V,2,"0"),h:X(1),hh:X(2),a:_(V,H,!0),A:_(V,H,!1),m:String(H),mm:A.s(H,2,"0"),s:String(this.$s),ss:A.s(this.$s,2,"0"),SSS:A.s(this.$ms,3,"0"),Z:E};return G.replace(m,function(z,M){return M||Y[z]||E.replace(":","")})},T.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},T.diff=function(v,q,j){var G,E=A.p(q),V=D(v),H=(V.utcOffset()-this.utcOffset())*n,$=this-V,L=A.m(this,V);return L=(G={},G[x]=L/12,G[d]=L,G[y]=L/3,G[f]=($-H)/6048e5,G[c]=($-H)/864e5,G[u]=$/l,G[i]=$/n,G[s]=$/a,G)[E]||$,j?L:A.a(L)},T.daysInMonth=function(){return this.endOf(d).$D},T.$locale=function(){return N[this.$L]},T.locale=function(v,q){if(!v)return this.$L;var j=this.clone(),G=O(v,q,!0);return G&&(j.$L=G),j},T.clone=function(){return A.w(this.$d,this)},T.toDate=function(){return new Date(this.valueOf())},T.toJSON=function(){return this.isValid()?this.toISOString():null},T.toISOString=function(){return this.$d.toISOString()},T.toString=function(){return this.$d.toUTCString()},S}(),W=F.prototype;return D.prototype=W,[["$ms",o],["$s",s],["$m",i],["$H",u],["$W",c],["$M",d],["$y",x],["$D",w]].forEach(function(S){W[S[1]]=function(T){return this.$g(T,S[0],S[1])}}),D.extend=function(S,T){return S.$i||(S(T,F,D),S.$i=!0),D},D.locale=O,D.isDayjs=I,D.unix=function(S){return D(1e3*S)},D.en=N[k],D.Ls=N,D.p={},D})})(gr);var Io=gr.exports;const Ne=Ie(Io);var mr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Oe,function(){var a={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,l=/\d\d/,o=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},u=function(p){return(p=+p)+(p>68?1900:2e3)},c=function(p){return function(b){this[p]=+b}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var m=b.match(/([+-]|\d\d)/g),C=60*m[1]+(+m[2]||0);return C===0?0:m[0]==="+"?-C:C}(p)}],d=function(p){var b=i[p];return b&&(b.indexOf?b:b.s.concat(b.f))},y=function(p,b){var m,C=i.meridiem;if(C){for(var R=1;R<=24;R+=1)if(p.indexOf(C(R,0,b))>-1){m=R>12;break}}else m=p===(b?"pm":"PM");return m},x={A:[s,function(p){this.afternoon=y(p,!1)}],a:[s,function(p){this.afternoon=y(p,!0)}],S:[/\d/,function(p){this.milliseconds=100*+p}],SS:[l,function(p){this.milliseconds=10*+p}],SSS:[/\d{3}/,function(p){this.milliseconds=+p}],s:[o,c("seconds")],ss:[o,c("seconds")],m:[o,c("minutes")],mm:[o,c("minutes")],H:[o,c("hours")],h:[o,c("hours")],HH:[o,c("hours")],hh:[o,c("hours")],D:[o,c("day")],DD:[l,c("day")],Do:[s,function(p){var b=i.ordinal,m=p.match(/\d+/);if(this.day=m[0],b)for(var C=1;C<=31;C+=1)b(C).replace(/\[|\]/g,"")===p&&(this.day=C)}],M:[o,c("month")],MM:[l,c("month")],MMM:[s,function(p){var b=d("months"),m=(d("monthsShort")||b.map(function(C){return C.slice(0,3)})).indexOf(p)+1;if(m<1)throw new Error;this.month=m%12||m}],MMMM:[s,function(p){var b=d("months").indexOf(p)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,c("year")],YY:[l,function(p){this.year=u(p)}],YYYY:[/\d{4}/,c("year")],Z:f,ZZ:f};function w(p){var b,m;b=p,m=i&&i.formats;for(var C=(p=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(D,A,F){var W=F&&F.toUpperCase();return A||m[F]||a[F]||m[W].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(S,T,v){return T||v.slice(1)})})).match(n),R=C.length,B=0;B<R;B+=1){var k=C[B],N=x[k],I=N&&N[0],O=N&&N[1];C[B]=O?{regex:I,parser:O}:k.replace(/^\[|\]$/g,"")}return function(D){for(var A={},F=0,W=0;F<R;F+=1){var S=C[F];if(typeof S=="string")W+=S.length;else{var T=S.regex,v=S.parser,q=D.slice(W),j=T.exec(q)[0];v.call(A,j),D=D.replace(j,"")}}return function(G){var E=G.afternoon;if(E!==void 0){var V=G.hours;E?V<12&&(G.hours+=12):V===12&&(G.hours=0),delete G.afternoon}}(A),A}}return function(p,b,m){m.p.customParseFormat=!0,p&&p.parseTwoDigitYear&&(u=p.parseTwoDigitYear);var C=b.prototype,R=C.parse;C.parse=function(B){var k=B.date,N=B.utc,I=B.args;this.$u=N;var O=I[1];if(typeof O=="string"){var D=I[2]===!0,A=I[3]===!0,F=D||A,W=I[2];A&&(W=I[2]),i=this.$locale(),!D&&W&&(i=m.Ls[W]),this.$d=function(q,j,G){try{if(["x","X"].indexOf(j)>-1)return new Date((j==="X"?1e3:1)*q);var E=w(j)(q),V=E.year,H=E.month,$=E.day,L=E.hours,P=E.minutes,K=E.seconds,X=E.milliseconds,_=E.zone,Y=new Date,z=$||(V||H?1:Y.getDate()),M=V||Y.getFullYear(),U=0;V&&!H||(U=H>0?H-1:Y.getMonth());var Z=L||0,ee=P||0,ye=K||0,se=X||0;return _?new Date(Date.UTC(M,U,z,Z,ee,ye,se+60*_.offset*1e3)):G?new Date(Date.UTC(M,U,z,Z,ee,ye,se)):new Date(M,U,z,Z,ee,ye,se)}catch{return new Date("")}}(k,O,N),this.init(),W&&W!==!0&&(this.$L=this.locale(W).$L),F&&k!=this.format(O)&&(this.$d=new Date("")),i={}}else if(O instanceof Array)for(var S=O.length,T=1;T<=S;T+=1){I[1]=O[T-1];var v=m.apply(this,I);if(v.isValid()){this.$d=v.$d,this.$L=v.$L,this.init();break}T===S&&(this.$d=new Date(""))}else R.call(this,B)}}})})(mr);var Do=mr.exports;const Ro=Ie(Do);var pr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Oe,function(){return function(a,n,l){var o=n.prototype,s=o.format;l.en.ordinal=function(i){var u=["th","st","nd","rd"],c=i%100;return"["+i+(u[(c-20)%10]||u[c]||u[0])+"]"},o.format=function(i){var u=this,c=this.$locale();if(!this.isValid())return s.bind(this)(i);var f=this.$utils(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(y){switch(y){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return c.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return c.ordinal(u.week(),"W");case"w":case"ww":return f.s(u.week(),y==="w"?1:2,"0");case"W":case"WW":return f.s(u.isoWeek(),y==="W"?1:2,"0");case"k":case"kk":return f.s(String(u.$H===0?24:u.$H),y==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return y}});return s.bind(this)(d)}}})})(pr);var Ao=pr.exports;const Bo=Ie(Ao);var yr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Oe,function(){return function(a,n,l){var o=n.prototype,s=function(d){return d&&(d.indexOf?d:d.s)},i=function(d,y,x,w,p){var b=d.name?d:d.$locale(),m=s(b[y]),C=s(b[x]),R=m||C.map(function(k){return k.slice(0,w)});if(!p)return R;var B=b.weekStart;return R.map(function(k,N){return R[(N+(B||0))%7]})},u=function(){return l.Ls[l.locale()]},c=function(d,y){return d.formats[y]||function(x){return x.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(w,p,b){return p||b.slice(1)})}(d.formats[y.toUpperCase()])},f=function(){var d=this;return{months:function(y){return y?y.format("MMMM"):i(d,"months")},monthsShort:function(y){return y?y.format("MMM"):i(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(y){return y?y.format("dddd"):i(d,"weekdays")},weekdaysMin:function(y){return y?y.format("dd"):i(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(y){return y?y.format("ddd"):i(d,"weekdaysShort","weekdays",3)},longDateFormat:function(y){return c(d.$locale(),y)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return f.bind(this)()},l.localeData=function(){var d=u();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return l.weekdays()},weekdaysShort:function(){return l.weekdaysShort()},weekdaysMin:function(){return l.weekdaysMin()},months:function(){return l.months()},monthsShort:function(){return l.monthsShort()},longDateFormat:function(y){return c(d,y)},meridiem:d.meridiem,ordinal:d.ordinal}},l.months=function(){return i(u(),"months")},l.monthsShort=function(){return i(u(),"monthsShort","months",3)},l.weekdays=function(d){return i(u(),"weekdays",null,null,d)},l.weekdaysShort=function(d){return i(u(),"weekdaysShort","weekdays",3,d)},l.weekdaysMin=function(d){return i(u(),"weekdaysMin","weekdays",2,d)}}})})(yr);var Fo=yr.exports;const qo=Ie(Fo);var br={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Oe,function(){var a="week",n="year";return function(l,o,s){var i=o.prototype;i.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=s(this).startOf(n).add(1,n).date(c),d=s(this).endOf(a);if(f.isBefore(d))return 1}var y=s(this).startOf(n).date(c).startOf(a).subtract(1,"millisecond"),x=this.diff(y,a,!0);return x<0?s(this).startOf("week").week():Math.ceil(x)},i.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(br);var Lo=br.exports;const jo=Ie(Lo);var Sr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Oe,function(){return function(a,n){n.prototype.weekYear=function(){var l=this.month(),o=this.week(),s=this.year();return o===1&&l===11?s+1:l===0&&o>=52?s-1:s}}})})(Sr);var Mo=Sr.exports;const _o=Ie(Mo);var wr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Oe,function(){return function(a,n,l){n.prototype.dayOfYear=function(o){var s=Math.round((l(this).startOf("day")-l(this).startOf("year"))/864e5)+1;return o==null?s:this.add(o-s,"day")}}})})(wr);var Po=wr.exports;const Ho=Ie(Po);var $r={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Oe,function(){return function(a,n){n.prototype.isSameOrAfter=function(l,o){return this.isSame(l,o)||this.isAfter(l,o)}}})})($r);var zo=$r.exports;const Ko=Ie(zo);var vr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Oe,function(){return function(a,n){n.prototype.isSameOrBefore=function(l,o){return this.isSame(l,o)||this.isBefore(l,o)}}})})(vr);var Wo=vr.exports;const Go=Ie(Wo);Ne.extend(qo),Ne.extend(Bo),Ne.extend(Ro),Ne.extend(jo),Ne.extend(_o),Ne.extend(Ho),Ne.extend(Ko),Ne.extend(Go);const at={format(e,t){return Ne(e).format(t)},parser(e,t){return Ne(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,a){const l=new Date(e+"/"+t+"/"+a).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][l]},getMonthPreDay(e,t){let n=new Date(e+"/"+t+"/01").getDay();return n==0&&(n=7),n},getMonthDays(e,t){return/^0/.test(t)&&(t=t.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][t]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,t){t=t||"-";const a=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),l=this.getNumTwoBit(e.getDate());return[a,n,l].join(t)},getDay(e){e=e||0;let t=new Date;const a=e*(1e3*60*60*24);return t=new Date(t.getTime()+a),this.date2Str(t)},compareDate(e,t){let a;typeof e=="string"?a=new Date(e.replace("-","/").replace("-","/")):a=e;let n;return typeof t=="string"?n=new Date(t.replace("-","/").replace("-","/")):n=t,!(a>=n)},isEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;let a;typeof e=="string"?a=new Date(e).getTime():a=e;let n;return typeof t=="string"?n=new Date(t).getTime():n=t,a==n},getMonthWeek:function(e,t,a,n=0){const l=new Date(Number(e),parseInt(t)-1,Number(a));let o=l.getDay(),s=l.getDate(),i=6-o;return n!==0&&(o=o==0?7:o,i=7-o),Math.ceil((s+i)/7)},getYearWeek:function(e,t,a,n=0){const l=new Date(Number(e),parseInt(t)-1,Number(a)),o=new Date(Number(e),0,1),s=Math.round((l.valueOf()-o.valueOf())/864e5);return Math.ceil((s+(o.getDay()+1-1))/7)},getWeekDate:function(e,t,a,n=0){const l=new Date(Number(e),parseInt(t)-1,Number(a)),o=l.getTime();let s=l.getDay();if(n===0){const u=o-s*864e5,c=o+(6-s)*864e5,f=this.date2Str(new Date(u)),d=this.date2Str(new Date(c));return[f,d]}else{s=s==0?7:s;const i=24*60*60*1e3,u=o-(s-1)*i,c=o+(7-s)*i,f=this.date2Str(new Date(u)),d=this.date2Str(new Date(c));return[f,d]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=at.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=at.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,a){const n=new Date(new Date(t).setDate(t.getDate()+a)),l=e.getTime(),o=n.getTime(),s=t.getTime();return o>s?l>=s&&l<=o:l>=o&&l<=s},inScope4Month(e,t,a){const n=new Date(new Date(t).setMonth(t.getMonth()+a)),l=e.getTime(),o=n.getTime(),s=t.getTime();return o>s?l>=s&&l<=o:l>=o&&l<=s}},Tr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},valueFormat:{type:[String],required:!1}},xr={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1}};function Yo(e,t,a){return{props:{...ie,...pe,...Tr,...xr},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Te.useFoxI18n(t),c=u(n,["placeholder"]),f=r.ref(!1),d=ne(n,"modelValue"),y=e,x=r.computed(()=>({[`${y}__input`]:!0})),w=T=>{d.value=T,i("update:modelValue",T),i("change",T)};let p=ne(n,"hintText"),b=r.ref(!1);const m=T=>{let q=T.target.value;f.value=!0,le(p.value)||(b.value=!0),i("focus",q,T)},C=T=>{setTimeout(()=>{b.value&&(b.value=!1),f.value=!1},0);let q=T.target.value;n.maxLength&&q.length>Number(n.maxLength)&&(q=q.slice(0,Number(n.maxLength))),i("blur",q,T)},R=()=>{i("clear","")},B=T=>{i("calendar-change",T)},k=(T,v,q)=>{i("panel-change",T,v,q)},N=T=>{i("visible-change",T)},I=we(r.computed(()=>n.longTermValue),"longTermText",ve.Near),O=we(r.computed(()=>n.longTermValue),"longTermValue",ve.Near);let D=null;const A=r.ref(te(n.longTerm)),F=T=>{if(A.value=T,i("update:longTerm",T),T){let v="";Array.isArray(O.value)?v=O.value.map((q,j)=>q||(Array.isArray(d.value)?d.value[j]:n.valueFormat?at.format(new Date,n.valueFormat):new Date)):v=O.value,D=d.value,i("update:modelValue",v)}else i("update:modelValue",D)},W=te(n.isLongTerm);if(W){const T=()=>{if(A.value===!0){let v="";Array.isArray(O.value)?v=O.value.map((q,j)=>q||(Array.isArray(d.value)?d.value[j]:n.valueFormat?at.format(new Date,n.valueFormat):new Date)):v=O.value,D=d.value,i("update:modelValue",v)}else Re(O.value,d.value)&&(A.value=!0)};T(),r.watch([()=>n.longTerm],([v])=>{A.value!==v&&T()})}const S=r.ref();return fe({focus:()=>{S?.value.focus()},blur:()=>{S?.value.blur()},handleOpen:()=>{S?.value.handleOpen()},handleClose:()=>{S?.value.handleClose()}}),()=>{const v={...l.attrs,ref:S,class:x.value,placeholder:c.placeholder.value,disabled:o.value||A.value,readonly:s.value,modelValue:d.value,valueFormat:n.valueFormat,"onUpdate:modelValue":w,onClear:R,onFocus:m,onBlur:C,onCalendarChange:B,onPanelChange:k,onVisibleChange:N},q={};l.slots["range-separator"]&&(q["range-separator"]=l.slots["range-separator"]),l.slots.cell&&(q.default=l.slots.cell);const j=[],G=r.h(g.ElDatePicker,v,q);j.push(G);const E={default:()=>j};if(l.slots.default&&(E.label=l.slots.default),l.slots.fixedTip&&(E.fixedTip=l.slots.fixedTip),W){const L={label:I.value,disabled:s.value||o.value,modelValue:A.value,"onUpdate:modelValue":F},P=r.h(g.ElCheckbox,L),K=r.h("div",{class:{[`${y}__append`]:!0}},[P]);E.append=()=>K}const H={...me(n,Tr,xr),class:{[`${y}__wrapper`]:!0,"has-append":W},hintText:p.value,hintVisible:b.value,prop:`${n.prop}_item`};return r.h(a,H,E)}}}}const{componentName:Uo,create:Xo,scope:Zo}=Q("date-item"),Cr=Xo(Yo(Uo,Zo,de)),Er={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Jo(e,t,a){return{props:{...ie,...pe,...Er},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Te.useFoxI18n(t),c=u(n,["placeholder"]),f=r.ref(!1),d=ne(n,"modelValue"),y=e,x=r.computed(()=>({[y]:!0})),w=N=>{d.value=N,i("update:modelValue",N),i("change",N)};let p=ne(n,"hintText"),b=r.ref(!1);const m=N=>{let O=N.target.value;f.value=!0,le(p.value)||(b.value=!0),i("focus",O,N)},C=N=>{setTimeout(()=>{b.value&&(b.value=!1),f.value=!1},0);let O=N.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),i("blur",O,N)},R=()=>{i("clear","")},B=N=>{i("visible-change",N)},k=r.ref();return fe({focus:()=>{k?.value.focus()},blur:()=>{k?.value.blur()},handleOpen:()=>{k?.value.handleOpen()},handleClose:()=>{k?.value.handleClose()}}),()=>{const I={...l.attrs,ref:k,class:x.value,placeholder:c.placeholder.value,disabled:o.value,readonly:s.value,modelValue:d.value,"onUpdate:modelValue":w,onClear:R,onFocus:m,onBlur:C,onVisibleChange:B},O={},D=[],A=r.h(g.ElTimePicker,I,O);D.push(A);const F={default:()=>D};l.slots.default&&(F.label=l.slots.default),l.slots.fixedTip&&(F.fixedTip=l.slots.fixedTip);const S={...me(n,Er),hintText:p.value,hintVisible:b.value,prop:`${n.prop}_item`};return r.h(a,S,F)}}}}const{componentName:Qo,create:ei,scope:ti}=Q("time-item"),Nr=ei(Jo(Qo,ti,de)),kr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ni(e,t,a){return{props:{...ie,...pe,...kr},emits:["change","update:modelValue","blur","focus","clear"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Te.useFoxI18n(t),c=u(n,["placeholder"]),f=r.ref(!1),d=ne(n,"modelValue"),y=e,x=r.computed(()=>({[y]:!0})),w=k=>{d.value=k,i("update:modelValue",k),i("change",k)};let p=ne(n,"hintText"),b=r.ref(!1);const m=k=>{let I=k.target.value;f.value=!0,le(p.value)||(b.value=!0),i("focus",I,k)},C=k=>{setTimeout(()=>{b.value&&(b.value=!1),f.value=!1},0);let I=k.target.value;n.maxLength&&I.length>Number(n.maxLength)&&(I=I.slice(0,Number(n.maxLength))),i("blur",I,k)},R=()=>{i("clear","")},B=r.ref();return fe({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},handleOpen:()=>{B?.value.handleOpen()},handleClose:()=>{B?.value.handleClose()}}),()=>{const N={...l.attrs,ref:B,class:x.value,placeholder:c.placeholder.value,disabled:o.value,readonly:s.value,modelValue:d.value,"onUpdate:modelValue":w,onClear:R,onFocus:m,onBlur:C},I={},O=[],D=r.h(g.ElTimeSelect,N,I);O.push(D);const A={default:()=>O};l.slots.default&&(A.label=l.slots.default),l.slots.fixedTip&&(A.fixedTip=l.slots.fixedTip);const W={...me(n,kr),hintText:p.value,hintVisible:b.value,prop:`${n.prop}_item`};return r.h(a,W,A)}}}}const{componentName:ri,create:ai,scope:li}=Q("time-select-item"),Vr=ai(ni(ri,li,de));function Or(e,t=0){let a=`${e}`,n=a.indexOf(".");if(n==-1)return a;let l=n;for(let o=a.length-1;o>=n;o--)if(a.charAt(o)!="0"){l=o;break}return l-n<t?l=n+t+1:l!=n&&(l+=1),l>a.length?a=a.padEnd(l,"0"):a=a.substring(0,l),a}function Ir(e,t,a=20){if(typeof t=="string"&&(t=ge(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=hn(`${e}`,`${t}`);return Or(n)}else{let n=Mt(`${e}`,gn(`${t}`),20);return Or(n)}}function oi(e,t=-1,a=!1,n=3,l=","){return ct(e,t,a,n,l)}function Dr(e,t,a,n,l=!0){if(e=="")return"";if(e=mn(e),t=ge(t),t==1)return e;if(n)e=Ir(e,t),a&&(e=="0"&&l?e=`${e}.`.padEnd(ge(a)+2,"0"):e=Mt(e,1,ge(a)));else{let o=-1*t;e=Ir(e,o)}return e}function Rr(e,t){let a={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=te(t.minInclude),l=_t(e,t.min);if(n&&l==-1||!n&&(l==0||l==-1)){let o="请输入不小于 {0} 的数值";a.message=o.replace("{0}",t.min),a.minValid=!1}}if(t.max!=null){let n=te(t.maxInclude),l=_t(e,t.max);(n&&l==1||!n&&(l==0||l==1))&&(a.maxValid=!1)}return a}const Ar={modelValue:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},showTip:{type:[Boolean,String],required:!1,default:!0},min:{type:[Number,String],required:!1},minInclude:{type:[Boolean,String],required:!1,default:!0},max:{type:[Number,String],required:!1},maxInclude:{type:[Boolean,String],required:!1,default:!0},unit:{type:String,required:!1},rates:{type:[Number,String],required:!1,default:1},precision:{type:[Number,String],required:!1},integerLength:{type:[Number,String],required:!1,default:-1},decimalLength:{type:[Number,String],required:!1,default:2},autoPadding:{type:Boolean,required:!1,default:!0},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},placeholder:{type:String,required:!1,default:""},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function ii(e,t,a){return{props:{...ie,...pe,...Ar},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),u=r.ref(!1),c=ne(n,"modelValue"),f=r.ref("");r.watch([()=>c.value,()=>n.rates,()=>n.precision],([S,T,v])=>{if(le(S)){f.value="";return}const q=Dr(S,T,v,!1);f.value!==q&&(f.value=q)},{immediate:!0});const d=r.computed(()=>{let S="";return u.value&&(S=f.value),S}),{t:y}=Te.useFoxI18n(t),x=r.computed(()=>{let S=n.placeholder??"";return!u.value&&!le(f.value)?S=oi(f.value,n.decimalLength,n.autoPadding,n.digits,n.separator):S=y(["placeholder",S]),S}),w=e,p=r.computed(()=>({[w]:!0,[`${w}__disabled`]:o.value,[`${w}__placeholder`]:f.value.length>0})),b=we(r.computed(()=>n.textAlign),"textAlign");r.computed(()=>u.value?{textAlign:"left"}:{textAlign:b.value??"right"});const m=r.ref(""),C=r.computed(()=>{let S=m.value;return le(S)&&(S=n.errorTip??""),S}),R=r.ref(""),B=r.ref(!1),k=(S,T)=>{if(S=`${S}`,le(S)){f.value="",c.value="",T.forEach(v=>{i(v,"")}),te(n.showTip)&&B.value&&(B.value=!1);return}if(S.length>=2){let v=S;if(v.charAt(0)=="-"&&(v=v.substring(1)),v.length>=2&&v.charAt(0)=="0"&&v.charAt(1)!="."){r.triggerRef(f);return}}if(S!="-"){if(!Tn(S)){r.triggerRef(f);return}if(n.integerLength!=-1&&xn(S)>Number(n.integerLength)){r.triggerRef(f);return}if(n.decimalLength&&n.decimalLength!=-1&&Cn(S)>Number(n.decimalLength)){r.triggerRef(f);return}let v=Rr(S,n);if(v.maxValid===!1){m.value=v.message,r.triggerRef(f);return}}else if(n.min!=null&&ge(n.min)>=0){r.triggerRef(f);return}R.value=S,te(n.showTip)&&(B.value=S.length>0),f.value=S,c.value=Dr(S,n.rates,n.precision,!0),T.forEach(v=>{i(v,c.value)})},N=S=>{k(S,["update:modelValue","input"])},I=S=>{k(S,["update:modelValue","change"])},O=S=>{if(u.value=!0,te(n.showTip)){let T=f.value;le(T)&&(T=n.hintText),le(T)||(R.value=T,B.value=!0)}m.value="",i("focus",c.value,S)},D=S=>{if(setTimeout(()=>{u.value=!1,te(n.showTip)&&B.value===!0&&(B.value=!1)},0),!le(f.value)){let T=Rr(f.value,n);if(T.minValid===!1||T.maxValid===!1){m.value=T.message;return}}i("update:modelValue",c.value,S),i("blur",c.value,S)},A=()=>{i("clear","")},F=r.computed(()=>et(n.unit)>0),W=r.ref();return fe({focus:()=>{W?.value.focus()},blur:()=>{W?.value.blur()},select:()=>{W?.value.select()}}),()=>{const T={...l.attrs,ref:W,class:p.value,type:"digit",maxlength:n.maxLength,placeholder:x.value,clearable:n.clearable,disabled:o.value,readonly:s.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:A,onInput:N,onChange:I,onFocus:O,onBlur:D},v={};l.slots.prepend&&(v.prepend=l.slots.prepend),l.slots.append&&(v.append=l.slots.append),l.slots.prefix&&(v.prefix=l.slots.prefix),l.slots.suffix?v.suffix=l.slots.suffix:F.value&&(v.suffix=()=>[n.unit]);const q=[],j=r.h(g.ElInput,T,v);q.push(j);const G={default:()=>q};l.slots.default&&(G.label=l.slots.default),l.slots.fixedTip&&(G.fixedTip=l.slots.fixedTip);const V={...me(n,Ar),errorTip:C.value,hintText:R.value,hintVisible:B.value,hintType:"number",prop:`${n.prop}_item`};return r.h(a,V,G)}}}}const{componentName:si,create:ui,scope:ci}=Q("money-item"),Br=ui(ii(si,ci,de)),Fr={modelValue:{type:[String,Number],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function fi(e,t,a){return{props:{...ie,...pe,...Fr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Te.useFoxI18n(t),c=u(n,["placeholder"]),f=r.ref(!1),d=ne(n,"modelValue"),y=e,x=r.computed(()=>({[y]:!0,[`${y}__append`]:N.value})),w=r.computed(()=>({[`${y}__unit`]:!0})),p=O=>{d.value=O,i("update:modelValue",O),i("input",O)},b=O=>{i("change",O)};let m=ne(n,"hintText"),C=r.ref(!1);const R=O=>{let A=O.target.value;f.value=!0,le(m.value)||(C.value=!0),i("focus",A,O)},B=O=>{setTimeout(()=>{C.value&&(C.value=!1),f.value=!1},0);let A=O.target.value;n.maxLength&&A.length>Number(n.maxLength)&&(A=A.slice(0,Number(n.maxLength))),i("blur",A,O)},k=()=>{i("clear","")},N=r.computed(()=>et(n.unit)>0),I=r.ref();return fe({focus:()=>{I?.value.focus()},blur:()=>{I?.value.blur()}}),()=>{const D={...l.attrs,ref:I,class:x.value,placeholder:c.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:s.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:k,onChange:b,onInput:p,onFocus:R,onBlur:B},A={},F=[],W=r.h(g.ElInputNumber,D,A);F.push(W);const S={default:()=>F};l.slots.default&&(S.label=l.slots.default),l.slots.fixedTip&&(S.fixedTip=l.slots.fixedTip);const v={...me(n,Fr),hintText:m.value,hintVisible:C.value,prop:`${n.prop}_item`};if(l.slots.append)S.append=l.slots.append;else if(N.value){const j={class:w.value},G=r.h("div",j,[n.unit]);S.append=()=>G}return r.h(a,v,S)}}}}const{componentName:di,create:hi,scope:gi}=Q("input-number-item"),qr=hi(fi(di,gi,de));function Ge(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Me(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function mi(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let pi=class{proxy;constructor(t){this.proxy=t}async load(t,a,n,l){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n,l);const o=Ce(this.proxy,t);return o===null?(console.error(`${t} component not found api function`),[]):(De(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await o(a,n,l))}};function yi(){const e=r.getCurrentInstance();return new pi(e.proxy)}function rn(e,t,a){const n=Ge(e,t),l=Ge(e,a);if(n!==l)return!1;const o=Me(e,t),s=Me(e,a);return o===s}function Lr(e,t,a,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];let o=n;for(let s=0;Array.isArray(o)&&s<t.length;s++){const i=t[s];if(Array.isArray(i)){const u=Lr(e,i,a,n);l.push(u)}else{let u=!1;for(let c of o){if(a==="text")u=Ge(e,c)===i;else if(a==="item")u=rn(e,c,i);else{let f=Me(e,c);f==null&&(f=Ge(e,c)),u=f===i}if(u){l.push(c),o=mi(e,c);break}}if(!u)break}}return l}function bi(e){return{text:e,value:e}}const jr={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},lazyLoad:{type:[Boolean,String],default:!1},lazy:{type:[Boolean],default:!1},leafKey:{type:[String],default:"leaf"}};function Si(e,t,a){return{props:{...ie,...pe,...jr},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Te.useFoxI18n(t),c=u(n,["placeholder"]),f=r.ref(null),d=r.ref([]),y=(V,H,$,L=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(f.value===V)return;f.value=V;const X=r.toRaw(V);if(L){const _=E?.value.getCheckedNodes();if(_)if(n.multiple){const Y=[];_.forEach(z=>{const U=(z.pathNodes??[]).map(Z=>Z.data);Y.push(U)}),i("update:pathNodes",Y)}else{const z=(_[0]?.pathNodes??[]).map(M=>M.data);i("update:pathNodes",z)}i("update:modelValue",X),i("change",X)}}const P=Lr(n,V,H,$);if(P===null){if(d.value.length===0||d.value===null)return;d.value=[],f.value=null,L&&(i("update:pathNodes",[]),i("update:modelValue",null),i("change",null));return}let K=!0;if(P.length!==d.value.length)K=!1;else for(let X=0;X<P.length;X++){const _=P[X],Y=d.value[X];if(Array.isArray(_)){if(!Array.isArray(Y)||_.length!==Y.length)K=!1;else for(let z=0;z<_.length;z++)if(!rn(n,_[z],Y[z])){K=!1;break}}else rn(n,_,Y)||(K=!1);if(!K)break}if(!K){d.value=P;let X=[],_=[];P.forEach(z=>{if(Array.isArray(z)){let M=[],U=[];for(let Z of z)M.push(Me(n,Z)),n.valueType==="text"?U.push(Ge(n,Z)):n.valueType==="item"?U.push(Z):U.push(Me(n,Z));X.push(M),_.push(U)}else X.push(Me(n,z)),n.valueType==="text"?_.push(Ge(n,z)):n.valueType==="item"?_.push(z):_.push(Me(n,z))}),f.value=X;const Y=r.toRaw(_);L&&(i("update:pathNodes",P),i("update:modelValue",Y),i("change",Y))}},x=r.ref([]),w=we(r.computed(()=>n.lazyLoad),"lazyLoad",ve.Near,V=>te(V)),p=yi(),b=async(V,H)=>{if(V){const $=await p.load("cascader",V,H);if($.length>0)if(typeof $[0]=="string"){let K=$.map(X=>bi(X));x.value=K}else x.value=$}};r.watch([()=>n.source,()=>n.params],async([V,H])=>{b(V,H)},{immediate:!(w.value||n.lazy)});let m=!1;const C=()=>{m||(m=!0,b(n.source,n.params))};r.watch([()=>x.value,()=>n.modelValue],([V,H])=>{y(H,n.valueType,V,!1)}),n.lazy&&y(n.modelValue,"value",[],!1);let R=null,B=r.ref(!1);typeof n.remoteMethod=="function"&&(R=async V=>{if(V!=null){B.value=!0;try{const H=await n.remoteMethod(V);x.value=H}catch(H){console.error(H)}B.value=!1}});const k=r.ref(!1),N=e,I=r.computed(()=>({[N]:!0})),O=r.computed(()=>{let V={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(V.multiple=!0),n.props&&Object.assign(V,n.props),n.lazy&&(V.lazy=!0,V.lazyLoad=async(H,$)=>{const L=await p.load("cascader",n.source,H,!0);$(L)}),V}),D=V=>{n.allowCreate?(i("update:modelValue",V),i("change",V),f.value=V):y(V,"value",x.value,!0)};let A=ne(n,"hintText"),F=r.ref(!1);const W=V=>{let $=V.target.value;k.value=!0,le(A.value)||(F.value=!0),i("focus",$,V)},S=V=>{setTimeout(()=>{F.value&&(F.value=!1),k.value=!1},0);let $=V.target.value;n.maxLength&&$.length>Number(n.maxLength)&&($=$.slice(0,Number(n.maxLength))),v.value||i("blur",$,V)},T=()=>{i("clear","")},v=r.ref(!1),q=V=>{v.value=V,i("visible-change",V),V||i("selected")},j=V=>{i("remove-tag",V)},G=V=>{i("expand-change",V)},E=r.ref();return fe({focus:()=>{E?.value.focus()},blur:()=>{E?.value.blur()},getCheckedNodes:()=>E?.value.getCheckedNodes()}),()=>{const H={...l.attrs,ref:E,class:I.value,props:O.value,clearable:n.clearable,placeholder:c.placeholder.value,disabled:o.value||s.value,options:x.value,modelValue:f.value,onClear:T,onChange:D,onFocus:W,onBlur:S,onVisibleChange:q,onRemoveTag:j,expandChange:G};typeof R=="function"&&(H["remote-method"]=R,H.loading=B.value);const $={};l.slots.option&&($.default=l.slots.option),l.slots.empty&&($.empty=l.slots.empty);const L=[],P=r.h(g.ElCascader,H,$);L.push(P);const K={default:()=>L};l.slots.default&&(K.label=l.slots.default),l.slots.fixedTip&&(K.fixedTip=l.slots.fixedTip);const _={...me(n,jr),hintText:A.value,hintVisible:F.value,prop:`${n.prop??l.attrs.name}_item`};return w.value&&!n.lazy&&(_["appear-listen"]=!0,_.onAppear=C),r.h(a,_,K)}}}}const{componentName:wi,create:$i,scope:vi}=Q("cascader-item"),Mr=$i(Si(wi,vi,de)),_r={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1}};function Ti(e,t,a){return{props:{...ie,...pe,..._r},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Te.useFoxI18n(t),c=u(n,["placeholder"]),f=r.ref(!1),d=ne(n,"modelValue"),y=e,x=r.computed(()=>({[y]:!0})),w=N=>{d.value=N,i("update:modelValue",N),i("input",N)},p=N=>{i("change",N)};let b=ne(n,"hintText"),m=r.ref(!1);const C=N=>{let O=N.target.value;f.value=!0,le(b.value)||(m.value=!0),i("focus",O,N)},R=N=>{setTimeout(()=>{m.value&&(m.value=!1),f.value=!1},0);let O=N.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),i("blur",O,N)},B=()=>{i("clear","")},k=r.ref();return fe({focus:()=>{k?.value.focus()},blur:()=>{k?.value.blur()},select:()=>{k?.value.select()}}),()=>{const I={...l.attrs,ref:k,class:x.value,placeholder:c.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:s.value,modelValue:d.value,onClear:B,onChange:p,onInput:w,onFocus:C,onBlur:R},O={};l.slots.prepend&&(O.prepend=l.slots.prepend),l.slots.append&&(O.append=l.slots.append),l.slots.prefix&&(O.prefix=l.slots.prefix),l.slots.suffix&&(O.suffix=l.slots.suffix),l.slots.option&&(O.default=l.slots.option);const D=[],A=r.h(g.ElAutocomplete,I,O);D.push(A);const F={default:()=>D};l.slots.default&&(F.label=l.slots.default),l.slots.fixedTip&&(F.fixedTip=l.slots.fixedTip);const S={...me(n,_r),hintText:b.value,hintVisible:m.value,prop:`${n.prop}_item`};return r.h(a,S,F)}}}}const{componentName:xi,create:Ci,scope:Ei}=Q("autocomplete-item"),Pr=Ci(Ti(xi,Ei,de));function Ni(e,t,a,n,l){let o=[];Array.isArray(e)?o=e:o=[e];const s=[],i=t[0];if(Array.isArray(i))for(let u=0;u<t.length&&u<o.length;u++){let c=t[u],f=o[u];const d=c.find(y=>y[n]===f);if(!d)break;s.push(d[a])}else{let u=t;for(let c=0;u&&c<o.length;c++){let f=o[c],d=u.find(y=>y[n]===f);if(!d)break;s.push(d[a]),u=d[l]}}return s}let ki=class{proxy;constructor(t){this.proxy=t}async load(t,a,n){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n);const l=Ce(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(De(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(a,n))}};function Vi(){const e=r.getCurrentInstance();return new ki(e.proxy)}const Hr={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1},emptyTag:{type:[String],required:!1,default:"span"},emptyClass:{type:[String],required:!1}};function Oi(e,t){return{props:{...Hr},setup(a,{attrs:n,slots:l}){const o=Vi(),s=r.ref([]);r.watch([()=>a.source,()=>a.params],async([c,f])=>{s.value=await o.load(a.sourceType,c,f)},{immediate:!0});const i=r.computed(()=>{if(!Array.isArray(s.value)||s.value.length===0)return"";let c=Ni(a.modelValue,s.value,a.textKey,a.valueKey,a.childrenKey);return c.length==0?a.emptyText??"":c.length===1?a.optionType=="item"?`${a.modelValue}${a.separator}${c[0]}`:c[0]:c.join(a.separator)}),u=a.resolveTag?r.resolveComponent(a.tag):a.tag;return()=>{const c={...n};return l.default?l.default({text:i.value,value:a.modelValue}):a.resolveTag?a.emptyText!==void 0&&a.emptyText===i.value?r.h(a.emptyTag??"span",{...n,class:a.emptyClass},i.value):r.h(u,c,{default:()=>i.value}):r.h(u,c,i.value)}}}}const{componentName:_u,create:Ii,scope:Pu}=Q("mapping"),Dt=Ii(Oi());function Di(e,t){let a=t.split("."),n=e;for(let l=0;l<a.length;l++){let o=a[l],s=0,i=o.indexOf("["),u=i==-1?-1:o.indexOf("]",i);for(;i!==-1&&u!==-1;){let c=o.substring(i+1,u);if(/^\d+$/.test(c)){let f=parseInt(c);if(s==0){let d=o.substring(0,i);n=n[d][f]}else n=n[f];s++}i=o.indexOf("[",u),u=i==-1?-1:o.indexOf("]",i)}s===0&&(n=n[o])}return n}function Ri(e,t){return{props:{...Hr},setup(a,{attrs:n,slots:l}){return()=>{const o={default:s=>{const i=Di(s.row,s.column.property);return l.default?r.h(Dt,{...a,modelValue:i},{default:l.default}):r.h(Dt,{...a,modelValue:i})}};return r.h(g.ElTableColumn,{...n},o)}}}}const{componentName:Hu,create:Ai,scope:zu}=Q("table-mapping-column"),zr=Ai(Ri()),Bi=Symbol.for("TableStateKey");function Kr(e,t){let a=t.split("."),n=e;for(let l=0;l<a.length;l++){let o=a[l],s=0,i=o.indexOf("["),u=i==-1?-1:o.indexOf("]",i);for(;i!==-1&&u!==-1;){let c=o.substring(i+1,u);if(/^\d+$/.test(c)){let f=parseInt(c);if(s==0){let d=o.substring(0,i);n=n[d][f]}else n=n[f];s++}i=o.indexOf("[",u),u=i==-1?-1:o.indexOf("]",i)}s===0&&(n=n[o])}return n}function Fi(e,t){return{props:{},setup(a,{attrs:n}){const l=r.inject(Bi,{});return()=>{const o=l.currentRow?l.currentRow.value:null,s={default:i=>{const u=Kr(i.row,i.column.property),c=o?Kr(o,i.column.property):null,f=u===c,d={class:{"el-radio__input":!0,"is-checked":f}},y=r.h("span",d,[r.h("span",{class:{"el-radio__inner":!0}})]),x={class:{"el-radio":!0,"is-checked":f}};return r.h("label",x,[y])}};return r.h(g.ElTableColumn,{...n},s)}}}}const{componentName:Ku,create:qi,scope:Wu}=Q("table-radio-column"),Wr=qi(Fi()),Li={},ji={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"},Mi=[r.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function _i(e,t){return r.openBlock(),r.createElementBlock("svg",ji,Mi)}const Pi=Ee(Li,[["render",_i]]),{componentName:Yu,create:Hi,scope:Uu}=Q("table-setting"),zi={tableRef:{type:Object,required:!0},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}},Ki=Hi({components:{FoxPopover:g.ElPopover,FoxCheckbox:g.ElCheckbox,FoxCheckboxGroup:g.ElCheckboxGroup,FoxButton:g.ElButton,FoxIcon:g.ElIcon,DragIcon:Pi,Download:Fe.Download,RefreshLeft:Fe.RefreshLeft},props:{...zi},emits:["update:modelValue","change","close"],setup(e,{emit:t,attrs:a}){let n=[];const l=r.ref([]),o=r.computed(()=>l.value.filter(E=>E.label===""||E.type?!1:E.fixed===""||E.fixed===!0||E.fixed==="left")),s=r.computed(()=>l.value.filter(E=>E.label===""||E.type?!1:E.fixed==="right")),i=r.computed(()=>l.value.filter(E=>!(E.label===""||E.type||E.fixed!==void 0))),u=r.computed(()=>(o.value.length>0||s.value.length>0)&&i.value.length>0),c=r.computed(()=>o.value.length>0),f=r.computed(()=>s.value.length>0),d=E=>E.length>1,y=E=>{const V=[];l.value=E.map(($,L)=>(!($.label===""||$.type)&&$.visible!==!1&&V.push($.prop),{...$,sortIndex:L})),i.value.length+o.value.length+s.value.length===V.length?C.value=!0:V.length>0&&(R.value=!0),N.value=V},x=E=>E?E.type?E.type:E.label?E.prop:"":"",w=(E,V)=>{if(E.length!==V.length)return!1;const H=E.map($=>x($));for(let $ of V){const L=x($);if(H.indexOf(L)===-1)return!1}return!0},p=E=>{if(!E){const V=e.tableRef.getColumnSetting(),H=V.srcColumnPropertyList;n=H.map(($,L)=>({...$,sortIndex:L})),E=V.columnPropertyList,E&&E.length>0&&w(H,E)||(E=H)}y(E)},b=()=>{e.tableRef.setColumnSetting(l.value)},m=r.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),C=r.ref(!1),R=r.ref(!1),B=E=>{const V=[];l.value.forEach($=>{E&&!($.label===""||$.type)&&V.push($.prop),$.visible=E}),C.value=!1,R.value=!1,i.value.length+o.value.length+s.value.length===V.length?C.value=!0:V.length>0&&(R.value=!0),N.value=V,b()},k=()=>{p(n),b()},N=r.ref([]),I=E=>{l.value.forEach(H=>{if(H.label===""||H.type)return;const $=E.indexOf(H.prop)!==-1;H.visible=$}),C.value=!1,R.value=!1;const V=i.value.length+o.value.length+s.value.length;E.length===V?C.value=!0:E.length>0&&(R.value=!0),b()},O=()=>{p()};r.onMounted(()=>{setTimeout(()=>{p()},50)});const D={currentRow:null,index:null,roleType:null},A=E=>E?E.dataset&&E.dataset.role==="row"?E:E.tagName.toLowerCase()!=="body"?(E=E.parentElement,A(E)):null:null;return{attrs:a,leftFixedColumns:o,rightFixedColumns:s,unFixedColumns:i,isShowNotFixedTitle:u,isShowLeftFixedTitle:c,isShowRightFixedTitle:f,isDraggble:d,isCheckAll:C,isIndeterminate:R,handleCheckAllChange:B,handleReset:k,checkedValue:N,handleCheckChange:I,onShow:O,onDragStart:E=>{const V=E.currentTarget;V&&V.dataset&&(D.roleType=V.dataset.roleType,D.index=V.dataset.index)},onDragEnd:E=>{D.currentRow&&(D.currentRow.classList.remove("is-dragover"),D.currentRow=null),D.index=null,D.roleType=null},onDragOver:E=>{const V=E.currentTarget;E.relatedTarget;const H=A(V);if(!H)return;const $=H.dataset&&H.dataset.roleType;D.roleType===$&&(E.preventDefault(),D.currentRow&&D.currentRow!==H&&D.currentRow.classList.remove("is-dragover"),H.classList.add("is-dragover"),D.currentRow=H)},onDragLeave:E=>{E.preventDefault(),D.currentRow&&(D.currentRow.classList.remove("is-dragover"),D.currentRow=null)},onDrop:E=>{debugger;const V=E.currentTarget,H=A(V);if(!H)return;const $=H.dataset&&H.dataset.roleType;if(D.roleType!==$)return;E.preventDefault();const L=Number(D.index),P=Number(H.dataset.index);if(L!==P){if(L<P){const K=l.value[L];l.value.splice(L,1),l.value.splice(P,0,K)}else{const K=l.value[L];l.value.splice(L,1),l.value.splice(P+1,0,K)}y(l.value),b()}},toLeftFixed:E=>{const V=l.value[E];V.fixed="left",b()},toRightFixed:E=>{const V=l.value[E];V.fixed="right",b()},toUnFixed:E=>{const V=l.value[E];V.fixed=void 0,b()},checkboxLabelStyle:m}}}),Wi={class:"fox-table-setting"},Gi={class:"fox-table-setting__header"},Yi={class:"fox-table-setting__body"},Ui={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Xi={key:0,class:"fox-table-setting__body-title"},Zi=["data-index","draggable"],Ji={class:"tools-item"},Qi={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},es={key:0,class:"fox-table-setting__body-title"},ts=["data-index","draggable"],ns={class:"tools-item"},rs={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},as={key:0,class:"fox-table-setting__body-title"},ls=["data-index","draggable"],os={class:"tools-item"};function is(e,t,a,n,l,o){const s=r.resolveComponent("FoxCheckbox"),i=r.resolveComponent("FoxButton"),u=r.resolveComponent("DragIcon"),c=r.resolveComponent("RefreshLeft"),f=r.resolveComponent("FoxIcon"),d=r.resolveComponent("fox-tooltip"),y=r.resolveComponent("Download"),x=r.resolveComponent("fox-checkbox"),w=r.resolveComponent("FoxCheckboxGroup"),p=r.resolveComponent("FoxPopover");return r.openBlock(),r.createBlock(p,r.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:r.withCtx(()=>[r.renderSlot(e.$slots,"default")]),default:r.withCtx(()=>[r.createElementVNode("div",Wi,[r.createElementVNode("div",Gi,[r.createVNode(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=b=>e.isCheckAll=b),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),r.createVNode(i,{onClick:e.handleReset,link:"",type:"primary"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),r.createElementVNode("div",Yi,[r.createVNode(w,{modelValue:e.checkedValue,"onUpdate:modelValue":t[16]||(t[16]=b=>e.checkedValue=b),onChange:e.handleCheckChange},{default:r.withCtx(()=>[e.leftFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",Ui,[e.isShowLeftFixedTitle?(r.openBlock(),r.createElementBlock("div",Xi,r.toDisplayString(e.leftFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.leftFixedColumns,b=>(r.openBlock(),r.createElementBlock("div",{key:b.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":b.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[1]||(t[1]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[2]||(t[2]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[3]||(t[3]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[4]||(t[4]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[5]||(t[5]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.leftFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(s,{class:"checkbox-item",label:b.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(b.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Ji,[r.createVNode(d,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(f,{onClick:m=>e.toUnFixed(b.sortIndex)},{default:r.withCtx(()=>[r.createVNode(c)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.fixedRightText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(f,{onClick:m=>e.toRightFixed(b.sortIndex)},{default:r.withCtx(()=>[r.createVNode(y)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Zi))),128))])):r.createCommentVNode("",!0),e.unFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",Qi,[e.isShowNotFixedTitle?(r.openBlock(),r.createElementBlock("div",es,r.toDisplayString(e.unFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.unFixedColumns,b=>(r.openBlock(),r.createElementBlock("div",{key:b.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":b.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[6]||(t[6]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[7]||(t[7]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[8]||(t[8]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[9]||(t[9]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[10]||(t[10]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.unFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(s,{class:"checkbox-item",label:b.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(b.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",ns,[r.createVNode(d,{content:e.fixedLeftText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(f,{onClick:m=>e.toLeftFixed(b.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(y)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.fixedRightText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(f,{onClick:m=>e.toRightFixed(b.sortIndex)},{default:r.withCtx(()=>[r.createVNode(y)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,ts))),128))])):r.createCommentVNode("",!0),e.rightFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",rs,[e.isShowRightFixedTitle?(r.openBlock(),r.createElementBlock("div",as,r.toDisplayString(e.rightFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.rightFixedColumns,b=>(r.openBlock(),r.createElementBlock("div",{key:b.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":b.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[11]||(t[11]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[12]||(t[12]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[13]||(t[13]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[14]||(t[14]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[15]||(t[15]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.rightFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(x,{class:"checkbox-item",label:b.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(b.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",os,[r.createVNode(d,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(f,{onClick:m=>e.toUnFixed(b.sortIndex)},{default:r.withCtx(()=>[r.createVNode(c)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.fixedLeftText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(f,{onClick:m=>e.toLeftFixed(b.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(y)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,ls))),128))])):r.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const an=Ee(Ki,[["render",is]]);let ss=class{proxy;constructor(t){this.proxy=t}async load(t,a,n,l,o,s,i){if(Array.isArray(a)){let c=(n-1)*l,f=c+l;f>a.length&&(f=a.length);const d=a.slice(c,f);return{totalSize:a.length,page:d}}if(typeof a=="function")return await Reflect.apply(a,null,[n,l,o,s,i]);const u=Ce(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(De(o)&&r.isReactive(o)&&(o=r.toRaw(o)),await Reflect.apply(u,null,[a,n,l,o,s,i]))}};function us(){const e=r.getCurrentInstance();return new ss(e.proxy)}class cs{proxy;constructor(t){this.proxy=t}async load(t){let a=null;const n=Ce(this.proxy,"tableSetting");return typeof n=="function"&&(a=await Reflect.apply(n,null,["load",t])),a}save(t,a){const n=Ce(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,a])}remove(t){const a=Ce(this.proxy,"tableSetting");typeof a=="function"&&Reflect.apply(a,null,["remove",t])}}function fs(){const e=r.getCurrentInstance();return new cs(e.proxy)}const ds=Symbol.for("TableStateKey");function hs(e,t){let a=t.split("."),n=e;for(let l=0;l<a.length;l++){let o=a[l],s=0,i=o.indexOf("["),u=i==-1?-1:o.indexOf("]",i);for(;i!==-1&&u!==-1;){let c=o.substring(i+1,u);if(/^\d+$/.test(c)){let f=parseInt(c);if(s==0){let d=o.substring(0,i);n=n[d][f]}else n=n[f];s++}i=o.indexOf("[",u),u=i==-1?-1:o.indexOf("]",i)}s===0&&(n=n[o])}return n}function ln(e,t){return e.filter(n=>{for(let l in t){const o=t[l],s=hs(n,l);if(o!==s)return!1}return!0})}const Gr={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},lazy:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]},rowClickSelectable:{type:[String,Boolean],required:!1,default:!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:!1},showSetting:{type:[Boolean],required:!1,default:!1},footerAlign:{type:[String],required:!1,default:"right"}},Yr={pageIndex:{type:[Number],required:!1,default:1},pageSize:{type:[Number],required:!1,default:10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:"right"},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},on={popoverWidth:{type:[String,Number],required:!1,default:280},popoverPlacement:{type:[String],required:!1,default:"top-start"},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}};function gs(e,t,a){return{inheritAttrs:!1,props:{...ie,...pe,...Gr,...Yr,...on},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,l){const{locale:o}=Te.useFoxI18n(t),{emitEvent:s}=ue({componentName:e,validateHandler:{getValue(...M){return R.value}}},n.prop??l.attrs.name),i=e,u=r.computed(()=>({[i]:!0})),c=r.computed(()=>({[`${i}__setting`]:!0})),f=r.computed(()=>({[`${i}__footer`]:!0,[`${i}__footer__${n.footerAlign}`]:!0})),d=r.computed(()=>({[`${i}__pagination`]:!0,[`${i}__pagination__${n.paginationAlign}`]:!0})),y=r.ref(n.pageIndex);r.watch(()=>n.pageIndex,M=>{y.value=M});const x=M=>{y.value=M,s("page-index-change",M)},w=r.ref(n.pageSize);r.watch(()=>n.pageSize,M=>{w.value=M});const p=M=>{w.value=M,s("page-size-change",M)},b=r.shallowRef({}),m=r.computed(()=>({...b.value,...n.params??{},...n.baseParams??{}})),C=r.ref(0),R=r.ref(),B=us();let k=!0;const N=()=>Array.isArray(n.data)||typeof n.data=="function"?!0:te(n.autoLoad),I=we(r.computed(()=>n.lazyLoad),"lazyLoad",ve.Near,M=>te(M)),O=async(M,U,Z,ee)=>{try{const ye=await B.load("table",M,U,Z,ee,k,o.value);C.value=ye.totalSize,R.value=ye.page}catch(ye){console.error("[FoxUI] Load Table Data Fail",ye),C.value=0,R.value=[]}k=!1,setTimeout(()=>{s("loaded-data")},250)};r.watch([y,w],([M,U],[Z,ee])=>{U!==ee&&(y.value=1,M=1),O(n.data,M,U,m.value)}),r.watch([()=>n.data,m],([M,U],[Z,ee])=>{N()&&(M!==Z&&(k=!0),!(!Array.isArray(M)&&Re(M,Z)&&Re(U,ee))&&O(M,y.value,w.value,U))},{deep:!0});const D=(M={},U=!1)=>new Promise(Z=>{b.value=r.toRaw(M??{}),r.triggerRef(b),U||(y.value=n.pageIndex??1),r.nextTick(async()=>{await O(n.data,y.value,w.value,m.value),Z()})}),A=()=>{C.value=0,R.value=[]};let F=!1;const W=()=>{F||(F=!0,D())};N()&&!I.value&&D();const S=r.ref(null);r.provide(ds,{currentRow:S});const T=(M,U)=>{S.value=M,s("current-change",M,U)},v=(M,U,Z)=>{s("row-click",M,U,Z),te(n.rowClickSelectable)===!0&&z?.value.toggleRowSelection(M)},q=[],j=(M,U)=>{if(s("expand-change",M,U),te(n.uniqueExpansion))if(Array.isArray(U)&&U.length==0){const Z=q.length;q.splice(0,Z)}else{q.forEach(ee=>{ee!==M&&z?.value.toggleRowExpansion(ee,!1)});const Z=q.length;q.splice(0,Z,M)}},G=l.attrs.id??n.prop??l.attrs.name,E=fs(),V=r.ref([]);let H=[];const $=()=>({srcColumnPropertyList:H.map(U=>({...U})),columnPropertyList:V.value}),L=M=>{V.value=[...M],K()},P=async()=>{const M=await E.load(G);M&&(V.value=M)},K=()=>{E.save(G,V.value)},X=()=>{E.remove(G)};P();const _=M=>M?M.type?M.type:M.label?M.prop:"":"",Y=r.computed(()=>{if(typeof l.slots.default=="function"){const M=l.slots.default(),U=new Map;if(H=[],M.forEach(Z=>{const ee=Z;if(!ee.props)return;const ye=_(ee.props);U.set(ye,Z);const se={label:"",prop:""};Object.assign(se,ee.props),H.push(se)}),V.value.length===H.length){const Z=[];for(let ee of V.value){const ye=_(ee),se=U.get(ye);if(!se)return M;if(ee.visible===!1)continue;const _e=r.cloneVNode(se);_e.props.fixed=ee.fixed,Z.push(_e)}return Z}return M}return[]}),z=r.ref();return fe({clearSelection:()=>z?.value.clearSelection(),getSelectionRows:()=>z?.value.getSelectionRows(),toggleRowSelection:(M,U)=>{z?.value.toggleRowSelection(M,U)},toggleRowSelectionByProp:(M,U)=>{if(!R.value)return;const Z=ln(R.value,M);Z.length!==0&&Z.forEach(ee=>{z?.value.toggleRowSelection(ee,U)})},toggleAllSelection:()=>{z?.value.toggleAllSelection()},toggleRowExpansion:(M,U)=>{z?.value.toggleRowExpansion(M,U)},toggleRowExpansionByProp:(M,U)=>{if(!R.value)return;const Z=ln(R.value,M);Z.length!==0&&Z.forEach(ee=>{z?.value.toggleRowExpansion(ee,U)})},setCurrentRow:M=>{z?.value.setCurrentRow(M)},setCurrentRowByProp:M=>{if(!R.value)return;const U=ln(R.value,M);U.length!==0&&z?.value.setCurrentRow(U[0])},getCurrentRow:()=>S.value,clearSort:()=>{z?.value.clearSort()},clearFilter:M=>{z?.value.clearFilter(M)},doLayout:()=>{z?.value.doLayout()},sort:(M,U)=>{z?.value.sort(M,U)},scrollTo:(M,U)=>{z?.value.scrollTo(M,U)},setScrollTop:M=>{z?.value.setScrollTop(M)},setScrollLeft:M=>{z?.value.setScrollLeft(M)},loadData:D,clearData:A,getData(){return R.value},getTotalSize(){return C.value},getPageIndex(){return y.value},getPageSize(){return w.value},getColumnSetting:$,setColumnSetting:L,removeColumnSetting:X}),()=>{const U={...l.attrs,onCurrentChange:T,onRowClick:v,onExpandChange:j,data:R.value,ref:z,class:u.value},Z={};l.slots.default&&(Z.default=()=>Y.value),l.slots.append&&(Z.append=l.slots.append),l.slots.empty&&(Z.empty=l.slots.empty);const ee=[],ye=r.h(g.ElTable,U,Z);ee.push(ye);let se=null;if(typeof l.slots.pagination=="function")se=l.slots.pagination();else if(n.showPagination){const it={class:d.value,total:C.value,pageSize:w.value,"onUpdate:pageSize":p,pageSizes:n.pageSizes,currentPage:y.value,"onUpdate:currentPage":x,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0};se=r.h(g.ElPagination,it)}if(n.showSetting){const it=[];se&&it.push(se);const Iu=r.h(g.ElIcon,{class:c.value},{default:()=>r.h(Fe.Setting)}),Du=Nn(n,on),Ru=r.h(an,{...Du,tableRef:{getColumnSetting:$,setColumnSetting:L,removeColumnSetting:X}},{default:()=>Iu});it.push(Ru);const Au=r.h("div",{class:f.value},it);ee.push(Au)}else se&&ee.push(se);const _e={default:()=>ee},ot={...me(n,Gr,Yr,on),prop:`${n.prop}_item`};return ot.contentClass=`${i}__wrap`,ot.errorMarkClass="is-table-error",I.value&&N()&&(ot["appear-listen"]=!0,ot.onAppear=W),r.h(a,ot,_e)}}}}const{componentName:ms,create:ps,scope:ys}=Q("table-item"),Ur=ps(gs(ms,ys,de));function Ye(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function lt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function bs(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Ss=class{proxy;constructor(t){this.proxy=t}async load(t,a,n){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n);const l=Ce(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(De(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(a,n))}};function ws(){const e=r.getCurrentInstance();return new Ss(e.proxy)}function Xr(e,t,a){if(t===a)return!0;if(t===null||a===null)return!1;const n=Ye(e,t),l=Ye(e,a);if(n!==l)return!1;const o=lt(e,t),s=lt(e,a);return o===s}function $s(e,t,a,n){if(n.length==0||t===""||t===null||t===void 0)return null;let l=null;for(let o of n){let s=!1;if(a==="text")s=Ye(e,o)===t;else if(a==="item")s=Xr(e,o,t);else{let i=lt(e,o);i==null&&(i=Ye(e,o)),s=i===t}if(s){l=o;break}}return l}function vs(e){return{text:e,value:e}}function Ts(e,t,a){return typeof e.itemOptions=="function"?e.itemOptions(t,a):e.itemOptions}const Zr={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function xs(e,t,a){return{inheritAttrs:!0,props:{...ie,...pe,...Zr},emits:["change","update:modelValue"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),u=r.ref(null),c=r.ref(null),f=(I,O,D,A=!0)=>{const F=$s(n,I,O,D);if(F===null){if(c.value===null)return;c.value=null,u.value=null,A&&(i("update:modelValue",null),i("change",null));return}if(!Xr(n,F,c.value)){u.value=I;const S=r.toRaw(F);c.value=S;let T=null;n.valueType==="text"?T=Ye(n,S):n.valueType==="item"?T=S:T=lt(n,S),A&&(i("update:modelValue",T),i("change",T))}},d=r.ref([]),y=we(r.computed(()=>n.lazyLoad),"lazyLoad",ve.Near,I=>te(I)),x=ws(),w=async(I,O)=>{if(I){const D=await x.load("radio",I,O);if(D.length>0)if(typeof D[0]=="string"){let W=D.map(S=>vs(S));d.value=W}else d.value=D}};r.watch([()=>n.source,()=>n.params],async([I,O])=>{w(I,O)},{immediate:!y.value});let p=!1;const b=()=>{p||(p=!0,w(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([I,O])=>{f(O,n.valueType,I,!1)});const m=e,C=r.computed(()=>({[m]:!0,[`is-${n.direction}`]:!0})),R=I=>{f(I,"value",d.value,!0)};let B=ne(n,"hintText"),k=ne(n,"hintVisible");const N=(I,O)=>{const D=[];return I.forEach((A,F)=>{const W=lt(n,A),S=Ye(n,A);let T=bs(n,A);o.value===!0&&(T=o.value),s.value===!0&&(T=s.value);const v=Ts(n,A,F)??{},q=`${W}_${F}`,j={...v,key:q,label:W,disabled:T,size:n.size,border:te(n.border)};n.itemType==="button"?D.push(r.h(g.ElRadioButton,j,{default:()=>[S]})):typeof O=="function"?D.push(r.h(g.ElRadio,j,{default:()=>O(A)})):D.push(r.h(g.ElRadio,j,{default:()=>[S]}))}),D};return()=>{const O={...l.attrs,class:C.value,disabled:o.value||s.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:R},D=[],A={};l.slots.options?A.default=l.slots.options:A.default=()=>N(d.value,l.slots.text);const F=r.h(g.ElRadioGroup,O,A);D.push(F);const W={default:()=>D};l.slots.default&&(W.label=l.slots.default),l.slots.fixedTip&&(W.fixedTip=l.slots.fixedTip);const T={...me(n,Zr),hintText:B.value,hintVisible:k.value,prop:`${n.prop??l.attrs.name}_item`};return y.value&&(T["appear-listen"]=!0,T.onAppear=b),r.h(a,T,W)}}}}const{componentName:Cs,create:Es,scope:Ns}=Q("radio-item"),Jr=Es(xs(Cs,Ns,de));function Ue(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Xe(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function ks(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}class Vs{proxy;constructor(t){this.proxy=t}async load(t,a,n){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n);const l=Ce(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(De(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(a,n))}}function Os(){const e=r.getCurrentInstance();return new Vs(e.proxy)}function Qr(e,t,a){if(t===a)return!0;if(t===null||a===null)return!1;const n=Ue(e,t),l=Ue(e,a);if(n!==l)return!1;const o=Xe(e,t),s=Xe(e,a);return o===s}function Is(e,t,a,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];return t.forEach(o=>{for(let s of n){let i=!1;if(a==="text")i=Ue(e,s)===o;else if(a==="item")i=Qr(e,s,o);else{let u=Xe(e,s);u==null&&(u=Ue(e,s)),i=u===o}if(i){l.push(s);break}}}),l}function Ds(e){return{text:e,value:e}}function Rs(e,t,a){return typeof e.itemOptions=="function"?e.itemOptions(t,a):e.itemOptions}const ea={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function As(e,t,a){return{inheritAttrs:!1,props:{...ie,...pe,...ea},emits:["change","update:modelValue"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),u=r.ref([]),c=r.ref([]),f=(I,O,D,A=!0)=>{const F=Is(n,I,O,D);if(F===null){if(c.value===null||c.value.length===0)return;u.value=[],c.value=[],A&&(i("update:modelValue",[]),i("change",[]));return}let W=!0;if(F.length!==c.value.length)W=!1;else for(let S=0;S<F.length;S++){const T=F[S],v=c.value[S];if(!Qr(n,T,v)){W=!1;break}}if(!W){c.value=F;let S=[],T=[];F.forEach(q=>{S.push(Xe(n,q)),n.valueType==="text"?T.push(Ue(n,q)):n.valueType==="item"?T.push(q):T.push(Xe(n,q))}),u.value=S;const v=r.toRaw(T);A&&(i("update:modelValue",v),i("change",v))}},d=r.ref([]),y=we(r.computed(()=>n.lazyLoad),"lazyLoad",ve.Near,I=>te(I)),x=Os(),w=async(I,O)=>{if(I){const D=await x.load("checkbox",I,O);if(D.length>0)if(typeof D[0]=="string"){let W=D.map(S=>Ds(S));d.value=W}else d.value=D}};r.watch([()=>n.source,()=>n.params],async([I,O])=>{w(I,O)},{immediate:!y.value});let p=!1;const b=()=>{p||(p=!0,w(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([I,O])=>{f(O,n.valueType,I,!1)});const m=e,C=r.computed(()=>({[m]:!0,[`is-${n.direction}`]:!0})),R=I=>{f(I,"value",d.value,!0)};let B=ne(n,"hintText"),k=ne(n,"hintVisible");const N=(I,O)=>{const D=[];return I.forEach((A,F)=>{const W=Xe(n,A),S=Ue(n,A);let T=ks(n,A);o.value===!0&&(T=o.value),s.value===!0&&(T=s.value);const v=Rs(n,A,F)??{},q=`${W}_${F}`,j={...v,key:q,class:n.itemClass,label:W,disabled:T,size:n.size,border:te(n.border)};n.itemType==="button"?D.push(r.h(g.ElCheckboxButton,j,{default:()=>[S]})):typeof O=="function"?D.push(r.h(g.ElCheckbox,j,{default:()=>O(A)})):D.push(r.h(g.ElCheckbox,j,{default:()=>[S]}))}),D};return()=>{const O={...l.attrs,class:C.value,disabled:o.value||s.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:ge(n.max),min:ge(n.min),onChange:R},D=[],A={};l.slots.options?A.default=l.slots.options:A.default=()=>N(d.value,l.slots.text);const F=r.h(g.ElCheckboxGroup,O,A);D.push(F);const W={default:()=>D};l.slots.default&&(W.label=l.slots.default),l.slots.fixedTip&&(W.fixedTip=l.slots.fixedTip);const T={...me(n,ea),hintText:B.value,hintVisible:k.value,prop:`${n.prop??l.attrs.name}_item`};return y.value&&(T["appear-listen"]=!0,T.onAppear=b),r.h(a,T,W)}}}}const{componentName:Bs,create:Fs,scope:qs}=Q("checkbox-item"),ta=Fs(As(Bs,qs,de)),na={modelValue:{type:[Number,String],required:!1}};function Ls(e,t,a){return{props:{...ie,...pe,...na},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),u=ne(n,"modelValue",p=>ge(p)),c=e,f=r.computed(()=>({[c]:!0})),d=p=>{i("update:modelValue",p),i("change",p)};let y=ne(n,"hintText"),x=r.ref(!1);const w=r.ref();return fe({}),()=>{const b={...l.attrs,ref:w,class:f.value,readonly:s.value||o.value,modelValue:u.value,onChange:d},m={},C=[],R=r.h(g.ElRate,b,m);C.push(R);const B={default:()=>C};l.slots.default&&(B.label=l.slots.default),l.slots.fixedTip&&(B.fixedTip=l.slots.fixedTip);const N={...me(n,na),hintText:y.value,hintVisible:x.value,prop:`${n.prop}_item`};return r.h(a,N,B)}}}}const{componentName:js,create:Ms,scope:_s}=Q("rate-item"),ra=Ms(Ls(js,_s,de)),aa={modelValue:{type:[Boolean,String,Number],required:!1}};function Ps(e,t,a){return{props:{...ie,...pe,...aa},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),u=ne(n,"modelValue"),c=e,f=r.computed(()=>({[c]:!0})),d=p=>{i("update:modelValue",p),i("change",p)};let y=ne(n,"hintText"),x=ne(n,"hintVisible");const w=r.ref();return fe({}),()=>{const b={...l.attrs,ref:w,class:f.value,readonly:s.value,disabled:o.value,modelValue:u.value,onChange:d},m={},C=[],R=r.h(g.ElSwitch,b,m);C.push(R);const B={default:()=>C};l.slots.default&&(B.label=l.slots.default),l.slots.fixedTip&&(B.fixedTip=l.slots.fixedTip);const N={...me(n,aa),hintText:y.value,hintVisible:x.value,prop:`${n.prop}_item`};return r.h(a,N,B)}}}}const{componentName:Hs,create:zs,scope:Ks}=Q("switch-item"),la=zs(Ps(Hs,Ks,de)),oa={modelValue:{type:[String,Number,Boolean],required:!1}};function Ws(e,t,a){return{props:{...ie,...pe,...oa},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),i=r.ref(!1),{emitEvent:u}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),c=ne(n,"modelValue"),f=e,d=r.computed(()=>({[f]:!0})),y=k=>{u("update:modelValue",k),u("change",k)};let x=ne(n,"hintText"),w=r.ref(!1);const p=k=>{let I=k.target.value;i.value=!0,le(x.value)||(w.value=!0),u("focus",I,k)},b=k=>{setTimeout(()=>{w.value&&(w.value=!1),i.value=!1},0);let I=k.target.value;n.maxLength&&I.length>Number(n.maxLength)&&(I=I.slice(0,Number(n.maxLength))),C.value||u("blur",I,k)},m=()=>{u("clear","")},C=r.ref(!1),R=k=>{C.value=k,u("visible-change",k),k||u("selected")},B=r.ref();return fe({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()}}),()=>{const N={...l.attrs,ref:B,class:d.value,disabled:o.value||s.value,modelValue:c.value,"onUpdate:modelValue":y,onClear:m,onFocus:p,onBlur:b,onVisibleChange:R},I={};l.slots.option&&(I.default=l.slots.option);const O=[],D=r.h(g.ElTreeSelect,N,I);O.push(D);const A={default:()=>O};l.slots.default&&(A.label=l.slots.default),l.slots.fixedTip&&(A.fixedTip=l.slots.fixedTip);const W={...me(n,oa),hintText:x.value,hintVisible:w.value,prop:`${n.prop}_item`};return r.h(a,W,A)}}}}const{componentName:Gs,create:Ys,scope:Us}=Q("tree-select-item"),ia=Ys(Ws(Gs,Us,de)),Xs=Symbol.for("InnerPageScopeKey"),Zs=Symbol.for("PageWrapperKey");function Js(e,t){return{props:{title:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(a,n){r.provide(Xs,!0);const l={};r.provide(Zs,l);const o=u=>{typeof l.beforeClose=="function"&&l.beforeClose()},s=r.ref(!0),i=u=>{s.value=u};return()=>{const c={...n.attrs,title:a.title,draggable:a.draggable,modelValue:s.value,"onUpdate:modelValue":i,"append-to-body":a.appendToBody,"close-on-click-modal":a.closeOnClickModal,"close-on-press-escape":a.closeOnPressEscape,"before-close":o},f={};if(typeof n.slots.default=="function"){const d=n.slots.default();f.default=()=>d}return r.h(g.ElDialog,c,f)}}}}const{componentName:Xu,create:Qs,scope:Zu}=Q("dialog-item"),sa=Qs(Js());function eu(e,t){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(a,{slots:n}){const l=e,o=r.computed(()=>({[l]:!0})),s=r.computed(()=>a.icon?{[`${l}__icon`]:!0,[`${l}__icon-${a.type}`]:!0}:{[`${l}__mark`]:!0,[`${l}__mark-${a.type}`]:!0}),i=r.computed(()=>a.color?a.icon?{color:a.color}:{background:a.color}:null),u=r.computed(()=>{const f={[`${l}__text`]:!0,[`${l}__text-${a.type}`]:!0};return a.textPosition==="left"?f["is-left"]=!0:f["is-right"]=!0,f}),c=r.computed(()=>a.color?{color:a.color}:null);return()=>{let f=null;if(n.mark)f=n.mark()[0];else{const p={class:s.value,style:i.value};f=r.h(a.icon??"div",p)}const d={class:u.value,style:c.value},y=n.default?n.default():[],x=r.h("div",d,y),w={class:o.value};return a.textPosition==="right"?r.h("div",w,[f,x]):r.h("div",w,[x,f])}}}}const{componentName:tu,create:nu,scope:Ju}=Q("indicator"),ua=nu(eu(tu));function ru(e){const t=document.createRange();return t.setStart(e,0),t.setEnd(e,e.childNodes.length),t.getBoundingClientRect().width}const au={class:{type:[String],required:!1},tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1}};function lu(e,t){return{props:{...au},setup(a,n){const l=r.ref(!0),o=r.ref(null),s=r.computed(()=>{const f={[`${e}`]:!0,"is-truncated":a.truncated};return typeof a.class=="string"&&a.class.length>0&&a.class.split(/\s+/).forEach(y=>{f[y]=!0}),a.type&&(f[`${e}__${a.type}`]=!0),a.size&&(f[`${e}__${a.size}`]=!0),f}),i=f=>{if(f&&te(a.showOverflowTooltip)){const d=f.clientWidth,y=ru(f);l.value=y<=d}};let u=null;r.onMounted(()=>{if(!te(a.showOverflowTooltip))return;const f=o.value;i(f),f&&window.ResizeObserver&&(u=new window.ResizeObserver(()=>{i(f)}),u.observe(f))}),r.onUnmounted(()=>{u?.disconnect()});const c=(f,d)=>{let y=null;if(typeof a.highlightFilter=="string"&&a.highlightFilter.length>0){const x=a.highlightFilter;if(f.indexOf(x)!==-1){const p=f.replace(new RegExp(x,"g"),`<span>${x}</span>`);d.innerHTML=p,d.class["is-highlight"]=!0,y=r.h(a.tag,d)}}else if(typeof a.highlightFilter=="function"){const x=a.highlightFilter(f);x&&(d.innerHTML=x,d.class["is-highlight"]=!0,y=r.h(a.tag,d))}return y};return()=>{const f={},d={...n.attrs,class:{...s.value},ref:o};if(te(a.numberFormat)&&typeof n.slots.default=="function"){const p=n.slots.default();if(Array.isArray(p)&&p.length===1){const b=p[0].type.toString();if(b==="Symbol(Text)"||b==="Symbol(v-txt)"){const m=ge(a.digits),C=ge(a.decimalLength),R=te(a.autoPadding);let B=`${p[0].children}`,k=B.split("").reverse().join("");k=ct(k,C,R,m,a.separator),B=k.split("").reverse().join("");let N=null;a.highlightFilter!==void 0&&(N=c(B,d)),N||(d.innerHTML=B,N=r.h(a.tag,d)),f.default=()=>N}}}else{let p=null;if(a.highlightFilter!==void 0&&typeof n.slots.default=="function"){const b=n.slots.default();if(Array.isArray(b)&&b.length===1){const m=b[0].type.toString();if(m==="Symbol(Text)"||m==="Symbol(v-txt)"){const C=`${b[0].children}`;p=c(C,d),p||(d.innerHTML=C,p=r.h(a.tag,d))}}}p||(p=r.h(a.tag,d,{default:n.slots.default})),f.default=()=>p}const x={disabled:l.value};return f.content=n.slots.default,r.h(g.ElTooltip,x,f)}}}}const{componentName:ou,create:iu,scope:Qu}=Q("text"),ca=iu(lu(ou)),su={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1,default:Fe.ArrowUp}};function uu(e,t,a){return{props:{...su},emits:["click","update:modelValue"],setup(n,{emit:l}){const o=r.computed(()=>{const d={[`${e}`]:!0};return n.disabled?d[`${e}__disabled`]=!0:d[`${e}__${n.type}`]=!0,d}),s=ne(n,"modelValue"),i=r.computed(()=>s.value?n.expandText??"":n.collapseText??""),u=r.computed(()=>({[`${e}__text`]:!0})),c=r.computed(()=>({[`${e}__icon`]:!0,"is-expand":!s.value,"is-collapse":s.value})),f=()=>{l("update:modelValue",!s.value)};return()=>{const d=[];if(i.value){const p={class:u.value},b=r.h("span",p,[i.value]);d.push(b)}const y={class:c.value},x=a(n.icon,y);return x&&d.push(x),r.h("div",{class:o.value,onClick:f},d)}}}}const{componentName:cu,create:fu,scope:du}=Q("more-button"),fa=fu(uu(cu,du,(e,t)=>(e=e??Fe.ArrowUp,r.h(g.ElIcon,t,{default:()=>[r.h(e)]})))),{componentName:hu,create:gu,scope:tc}=Q("tour"),mu=gu({components:{Close:Fe.Close,ElPopover:g.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:t}){const a=hu,n=r.reactive({showTour:e.modelValue,showPopup:!1,active:0}),l=r.ref({}),o=r.computed(()=>`${a}`),s=r.computed(()=>{const{offset:w,maskWidth:p,maskHeight:b}=e,{width:m,height:C,left:R,top:B}=l.value,k=e.steps[n.active].offset??w,N=[R+m/2,B+C/2],I=Number(p||m),O=Number(b||C);return{width:`${I+ +k.left+k.right}px`,height:`${O+k.top+k.bottom}px`,top:`${N[1]-O/2-+k.top}px`,left:`${N[0]-I/2-+k.left}px`}}),i=w=>{w=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,r.nextTick(()=>{n.showPopup=!0,f()}),t("change",n.active)},u=w=>w.popoverWidth??e.width,c=w=>w.location??e.location,f=()=>{const w=document.querySelector(`${e.steps[n.active].target}`),p=Qt(w);l.value={x:p.left,y:p.top,top:p.top,left:p.left,width:p.width,height:p.height}},d=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},y=()=>{e.closeOnClickOverlay&&d()},x=(w,p=0)=>{w&&f(),e.steps,n.active=p,n.showTour=w,n.showPopup=w};return r.onMounted(()=>{x(e.modelValue,e.current)}),r.watch(()=>e.modelValue,w=>{x(w)}),{...r.toRefs(n),classes:o,maskStyle:s,changeStep:i,popoverWidth:u,popoverLocation:c,close:d,handleClickMask:y}}}),pu={key:0,class:"fox-tour__content"},yu={key:0,class:"fox-tour__content-top"},bu={class:"fox-tour__content-inner"},Su={class:"fox-tour__content-bottom"},wu={class:"fox-tour__content-bottom-init"},$u={class:"fox-tour__content-bottom-operate"},vu={key:1,class:"fox-tour__content fox-tour__content-tile"},Tu={class:"fox-tour__content-inner"};function xu(e,t,a,n,l,o){const s=r.resolveComponent("Close"),i=r.resolveComponent("fox-button"),u=r.resolveComponent("ElPopover");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes)},[r.withDirectives(r.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[r.vShow,e.showTour]]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.steps,(c,f)=>(r.openBlock(),r.createElementBlock("div",{key:f,style:{height:"0"}},[f==e.active?(r.openBlock(),r.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(c),width:e.popoverWidth(c)},{reference:r.withCtx(()=>[e.showTour?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:r.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):r.createCommentVNode("",!0)]),default:r.withCtx(()=>[r.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(r.openBlock(),r.createElementBlock("div",pu,[e.showTitleBar?(r.openBlock(),r.createElementBlock("div",yu,[r.createElementVNode("div",{onClick:t[1]||(t[1]=(...d)=>e.close&&e.close(...d))},[r.createVNode(s,{class:"fox-tour__content-top-close"})])])):r.createCommentVNode("",!0),r.createElementVNode("div",bu,r.toDisplayString(c.content),1),r.createElementVNode("div",Su,[r.createElementVNode("div",wu,r.toDisplayString(e.active+1)+"/"+r.toDisplayString(e.steps.length),1),r.createElementVNode("div",$u,[r.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(r.openBlock(),r.createBlock(i,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=d=>e.changeStep("prev"))},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.prevStepText),1)]),_:1})):r.createCommentVNode("",!0)]),e.steps.length-1==e.active?(r.openBlock(),r.createBlock(i,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):r.createCommentVNode("",!0),r.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(r.openBlock(),r.createBlock(i,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=d=>e.changeStep("next"))},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.nextStepText),1)]),_:1})):r.createCommentVNode("",!0)])])])])):r.createCommentVNode("",!0),e.type=="tile"?(r.openBlock(),r.createElementBlock("div",vu,[r.createElementVNode("div",Tu,r.toDisplayString(c.content),1)])):r.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):r.createCommentVNode("",!0)]))),128))],2)}const da=Ee(mu,[["render",xu]]);function Cu(e,t){return{props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(a,{slots:n}){return Fn(a.name,a.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:nc,create:Eu,scope:rc}=Q("domain-provider"),ha=Eu(Cu()),ga=10;function Nu(e,t){return e>t&&e>ga?"horizontal":t>e&&t>ga?"vertical":""}function ku(){const e=r.ref(0),t=r.ref(0),a=r.ref(0),n=r.ref(0),l=r.ref(0),o=r.ref(0),s=r.ref(0),i=r.ref(0),u=r.ref(0),c=r.ref(0),f=r.ref(""),d=()=>f.value==="vertical",y=()=>f.value==="horizontal",x=()=>{s.value=0,i.value=0,u.value=0,c.value=0,f.value="",a.value=0};return{move:b=>{const m=b.touches[0];s.value=m.clientX-e.value,i.value=m.clientY-t.value,l.value=m.clientX,o.value=m.clientY,u.value=Math.abs(s.value),c.value=Math.abs(i.value),n.value=Date.now()-a.value,f.value||(f.value=Nu(u.value,c.value))},start:b=>{x(),e.value=b.touches[0].clientX,t.value=b.touches[0].clientY,a.value=Date.now()},reset:x,startX:e,startY:t,startTime:a,duration:n,moveX:l,moveY:o,deltaX:s,deltaY:i,offsetX:u,offsetY:c,direction:f,isVertical:d,isHorizontal:y}}const Vu=[Kn,Wn,Gn,Yn,Qn,de,lr,or,Ot,sr,hr,Cr,Nr,Vr,Br,qr,Mr,Pr,zr,Wr,an,Ur,Jr,ta,ra,la,ia,sa,Dt,en,ua,ca,fa,da,ha],Ou=new rl(Vu,[ol],"4.0.0");Object.defineProperty(h,"FoxAffix",{enumerable:!0,get:()=>g.ElAffix}),Object.defineProperty(h,"FoxAlert",{enumerable:!0,get:()=>g.ElAlert}),Object.defineProperty(h,"FoxAside",{enumerable:!0,get:()=>g.ElAside}),Object.defineProperty(h,"FoxAutoResizer",{enumerable:!0,get:()=>g.ElAutoResizer}),Object.defineProperty(h,"FoxAutocomplete",{enumerable:!0,get:()=>g.ElAutocomplete}),Object.defineProperty(h,"FoxAvatar",{enumerable:!0,get:()=>g.ElAvatar}),Object.defineProperty(h,"FoxBacktop",{enumerable:!0,get:()=>g.ElBacktop}),Object.defineProperty(h,"FoxBadge",{enumerable:!0,get:()=>g.ElBadge}),Object.defineProperty(h,"FoxBreadcrumb",{enumerable:!0,get:()=>g.ElBreadcrumb}),Object.defineProperty(h,"FoxBreadcrumbItem",{enumerable:!0,get:()=>g.ElBreadcrumbItem}),Object.defineProperty(h,"FoxButton",{enumerable:!0,get:()=>g.ElButton}),Object.defineProperty(h,"FoxButtonGroup",{enumerable:!0,get:()=>g.ElButtonGroup}),Object.defineProperty(h,"FoxCalendar",{enumerable:!0,get:()=>g.ElCalendar}),Object.defineProperty(h,"FoxCard",{enumerable:!0,get:()=>g.ElCard}),Object.defineProperty(h,"FoxCarousel",{enumerable:!0,get:()=>g.ElCarousel}),Object.defineProperty(h,"FoxCarouselItem",{enumerable:!0,get:()=>g.ElCarouselItem}),Object.defineProperty(h,"FoxCascader",{enumerable:!0,get:()=>g.ElCascader}),Object.defineProperty(h,"FoxCascaderPanel",{enumerable:!0,get:()=>g.ElCascaderPanel}),Object.defineProperty(h,"FoxCheckTag",{enumerable:!0,get:()=>g.ElCheckTag}),Object.defineProperty(h,"FoxCheckbox",{enumerable:!0,get:()=>g.ElCheckbox}),Object.defineProperty(h,"FoxCheckboxButton",{enumerable:!0,get:()=>g.ElCheckboxButton}),Object.defineProperty(h,"FoxCheckboxGroup",{enumerable:!0,get:()=>g.ElCheckboxGroup}),Object.defineProperty(h,"FoxCol",{enumerable:!0,get:()=>g.ElCol}),Object.defineProperty(h,"FoxCollapse",{enumerable:!0,get:()=>g.ElCollapse}),Object.defineProperty(h,"FoxCollapseItem",{enumerable:!0,get:()=>g.ElCollapseItem}),Object.defineProperty(h,"FoxCollapseTransition",{enumerable:!0,get:()=>g.ElCollapseTransition}),Object.defineProperty(h,"FoxColorPicker",{enumerable:!0,get:()=>g.ElColorPicker}),Object.defineProperty(h,"FoxConfigProvider",{enumerable:!0,get:()=>g.ElConfigProvider}),Object.defineProperty(h,"FoxContainer",{enumerable:!0,get:()=>g.ElContainer}),Object.defineProperty(h,"FoxDatePicker",{enumerable:!0,get:()=>g.ElDatePicker}),Object.defineProperty(h,"FoxDescriptions",{enumerable:!0,get:()=>g.ElDescriptions}),Object.defineProperty(h,"FoxDescriptionsItem",{enumerable:!0,get:()=>g.ElDescriptionsItem}),Object.defineProperty(h,"FoxDialog",{enumerable:!0,get:()=>g.ElDialog}),Object.defineProperty(h,"FoxDivider",{enumerable:!0,get:()=>g.ElDivider}),Object.defineProperty(h,"FoxDrawer",{enumerable:!0,get:()=>g.ElDrawer}),Object.defineProperty(h,"FoxDropdown",{enumerable:!0,get:()=>g.ElDropdown}),Object.defineProperty(h,"FoxDropdownItem",{enumerable:!0,get:()=>g.ElDropdownItem}),Object.defineProperty(h,"FoxDropdownMenu",{enumerable:!0,get:()=>g.ElDropdownMenu}),Object.defineProperty(h,"FoxEmpty",{enumerable:!0,get:()=>g.ElEmpty}),Object.defineProperty(h,"FoxFooter",{enumerable:!0,get:()=>g.ElFooter}),Object.defineProperty(h,"FoxForm",{enumerable:!0,get:()=>g.ElForm}),Object.defineProperty(h,"FoxFormItem",{enumerable:!0,get:()=>g.ElFormItem}),Object.defineProperty(h,"FoxHeader",{enumerable:!0,get:()=>g.ElHeader}),Object.defineProperty(h,"FoxIcon",{enumerable:!0,get:()=>g.ElIcon}),Object.defineProperty(h,"FoxImage",{enumerable:!0,get:()=>g.ElImage}),Object.defineProperty(h,"FoxImageViewer",{enumerable:!0,get:()=>g.ElImageViewer}),Object.defineProperty(h,"FoxInput",{enumerable:!0,get:()=>g.ElInput}),Object.defineProperty(h,"FoxInputNumber",{enumerable:!0,get:()=>g.ElInputNumber}),Object.defineProperty(h,"FoxLink",{enumerable:!0,get:()=>g.ElLink}),Object.defineProperty(h,"FoxMain",{enumerable:!0,get:()=>g.ElMain}),Object.defineProperty(h,"FoxMenu",{enumerable:!0,get:()=>g.ElMenu}),Object.defineProperty(h,"FoxMenuItem",{enumerable:!0,get:()=>g.ElMenuItem}),Object.defineProperty(h,"FoxMenuItemGroup",{enumerable:!0,get:()=>g.ElMenuItemGroup}),Object.defineProperty(h,"FoxOption",{enumerable:!0,get:()=>g.ElOption}),Object.defineProperty(h,"FoxOptionGroup",{enumerable:!0,get:()=>g.ElOptionGroup}),Object.defineProperty(h,"FoxPageHeader",{enumerable:!0,get:()=>g.ElPageHeader}),Object.defineProperty(h,"FoxPagination",{enumerable:!0,get:()=>g.ElPagination}),Object.defineProperty(h,"FoxPopconfirm",{enumerable:!0,get:()=>g.ElPopconfirm}),Object.defineProperty(h,"FoxPopover",{enumerable:!0,get:()=>g.ElPopover}),Object.defineProperty(h,"FoxPopper",{enumerable:!0,get:()=>g.ElPopper}),Object.defineProperty(h,"FoxProgress",{enumerable:!0,get:()=>g.ElProgress}),Object.defineProperty(h,"FoxRadio",{enumerable:!0,get:()=>g.ElRadio}),Object.defineProperty(h,"FoxRadioButton",{enumerable:!0,get:()=>g.ElRadioButton}),Object.defineProperty(h,"FoxRadioGroup",{enumerable:!0,get:()=>g.ElRadioGroup}),Object.defineProperty(h,"FoxRate",{enumerable:!0,get:()=>g.ElRate}),Object.defineProperty(h,"FoxResult",{enumerable:!0,get:()=>g.ElResult}),Object.defineProperty(h,"FoxRow",{enumerable:!0,get:()=>g.ElRow}),Object.defineProperty(h,"FoxScrollbar",{enumerable:!0,get:()=>g.ElScrollbar}),Object.defineProperty(h,"FoxSelect",{enumerable:!0,get:()=>g.ElSelect}),Object.defineProperty(h,"FoxSelectV2",{enumerable:!0,get:()=>g.ElSelectV2}),Object.defineProperty(h,"FoxSkeleton",{enumerable:!0,get:()=>g.ElSkeleton}),Object.defineProperty(h,"FoxSkeletonItem",{enumerable:!0,get:()=>g.ElSkeletonItem}),Object.defineProperty(h,"FoxSlider",{enumerable:!0,get:()=>g.ElSlider}),Object.defineProperty(h,"FoxSpace",{enumerable:!0,get:()=>g.ElSpace}),Object.defineProperty(h,"FoxStep",{enumerable:!0,get:()=>g.ElStep}),Object.defineProperty(h,"FoxSteps",{enumerable:!0,get:()=>g.ElSteps}),Object.defineProperty(h,"FoxSubMenu",{enumerable:!0,get:()=>g.ElSubMenu}),Object.defineProperty(h,"FoxSwitch",{enumerable:!0,get:()=>g.ElSwitch}),Object.defineProperty(h,"FoxTabPane",{enumerable:!0,get:()=>g.ElTabPane}),Object.defineProperty(h,"FoxTable",{enumerable:!0,get:()=>g.ElTable}),Object.defineProperty(h,"FoxTableColumn",{enumerable:!0,get:()=>g.ElTableColumn}),Object.defineProperty(h,"FoxTableV2",{enumerable:!0,get:()=>g.ElTableV2}),Object.defineProperty(h,"FoxTabs",{enumerable:!0,get:()=>g.ElTabs}),Object.defineProperty(h,"FoxTag",{enumerable:!0,get:()=>g.ElTag}),Object.defineProperty(h,"FoxTimePicker",{enumerable:!0,get:()=>g.ElTimePicker}),Object.defineProperty(h,"FoxTimeSelect",{enumerable:!0,get:()=>g.ElTimeSelect}),Object.defineProperty(h,"FoxTimeline",{enumerable:!0,get:()=>g.ElTimeline}),Object.defineProperty(h,"FoxTimelineItem",{enumerable:!0,get:()=>g.ElTimelineItem}),Object.defineProperty(h,"FoxTooltip",{enumerable:!0,get:()=>g.ElTooltip}),Object.defineProperty(h,"FoxTransfer",{enumerable:!0,get:()=>g.ElTransfer}),Object.defineProperty(h,"FoxTree",{enumerable:!0,get:()=>g.ElTree}),Object.defineProperty(h,"FoxTreeSelect",{enumerable:!0,get:()=>g.ElTreeSelect}),Object.defineProperty(h,"FoxTreeV2",{enumerable:!0,get:()=>g.ElTreeV2}),Object.defineProperty(h,"FoxUpload",{enumerable:!0,get:()=>g.ElUpload}),h.AutocompleteItem=Pr,h.Broadcast=Wt,h.BroadcastKey=oe,h.CascaderItem=Mr,h.CheckboxItem=ta,h.Content=Yn,h.DataItemsKey=Pe,h.DateItem=Cr,h.DateUtils=at,h.DialogItem=sa,h.Domain=pt,h.DomainKey=$e,h.DomainProvider=ha,h.FooterBar=Gn,h.Group=Qn,h.HeaderBar=Wn,h.HintText=Ot,h.Indicator=ua,h.InputItem=sr,h.InputNumberItem=qr,h.Item=de,h.Mapping=Dt,h.MoneyItem=Br,h.MoreButton=fa,h.Page=Kn,h.Price=en,h.PriorityPolicy=ve,h.RadioItem=Jr,h.RateItem=ra,h.RowItem=or,h.SelectItem=hr,h.SlotItem=lr,h.SwitchItem=la,h.TableItem=Ur,h.TableMappingColumn=zr,h.TableRadioColumn=Wr,h.TableSetting=an,h.Text=ca,h.TimeItem=Nr,h.TimeSelectItem=Vr,h.Tour=da,h.TreeSelectItem=ia,h.UniqueID=rr,h.ValidateSchema=Rn,h.ValidateSchemaKey=ke,h.cancelRaf=ba,h.clearNonNumber=Aa,h.clone=zt,h.compareTo=_t,h.createBroadcast=ht,h.createValidateSchema=mt,h.debounce=rt,h.debounceRef=Ga,h.decimalLength=Cn,h.default=Ou,h.defineBroadcast=La,h.defineConfigDomain=Fn,h.defineDataItem=Ln,h.defineDomain=Yt,h.defineItem=ue,h.definePageState=jn,h.deleteGlobalValidator=Pa,h.disabledProperty=Se,h.divide=Mt,h.excludeProps=me,h.extend=qe,h.floatData=qa,h.getGlobalValidateCheckEvents=On,h.getGlobalValidateResetEvents=Dn,h.getPageContentAreaHeight=wt,h.getPageContentAreaWidth=$t,h.getPageFooterAreaHeight=St,h.getPageHeaderAreaHeight=bt,h.getRootDomain=He,h.hasSymbol=yn,h.includeProps=Nn,h.indexOf=Ba,h.installRules=qn,h.integerLength=xn,h.isArray=va,h.isArrayLike=wn,h.isBrowser=Qe,h.isDate=Ca,h.isESModule=Va,h.isEmptyString=le,h.isEqual=Re,h.isFunction=Pt,h.isHidden=Sn,h.isInnerPage=Xa,h.isMap=Ta,h.isNumberString=Tn,h.isObject=De,h.isPlainObject=Ht,h.isPromise=ka,h.isRegExp=vn,h.isSet=xa,h.isString=Ea,h.isSubPage=Za,h.isSymbol=Na,h.isWindow=bn,h.lastIndexOf=Fa,h.makeArray=Ra,h.merge=$n,h.multiply=hn,h.negate=gn,h.nextTick=Ia,h.numberFormat=ct,h.objectToString=pn,h.once=Ya,h.property=we,h.raf=$a,h.readonlyProperty=be,h.setGlobalValidateCheckEvents=Ha,h.setGlobalValidateHandler=Ma,h.setGlobalValidateMessages=Ka,h.setGlobalValidateResetEvents=za,h.setGlobalValidator=_a,h.throttle=Bn,h.toBoolean=te,h.toNumber=ge,h.toPadding=xe,h.toPx=re,h.toPxDesc=ce,h.toTypeString=ft,h.toValue=ne,h.typeOf=dt,h.unNumberFormat=mn,h.updatePageState=Ut,h.useBroadcast=tt,h.useDomain=Ve,h.useExpose=fe,h.usePageState=yt,h.usePosition=er,h.useRect=Qt,h.useTouch=ku,h.valueLength=et,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
2
+ * @fox-js/foxui-desktop v4.0.0 Wed Aug 23 2023 19:02:27 GMT+0800 (中国标准时间)
3
+ */const ct=window,ba=typeof window<"u";function Sa(){return typeof ct<"u"?ct.requestAnimationFrame||ct.webkitRequestAnimationFrame||function(e){ct.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function wa(e){ba?cancelAnimationFrame(e):clearTimeout(e)}const $a=Sa();/*!
4
+ * @fox-js/big-decimal v4.0.1-6 Thu Aug 17 2023 21:31:19 GMT+0800 (中国标准时间)
5
+ */function ft(e,t="0"){let a=0,n=-1;e[0]=="-"&&(a++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(a++,n=2,t=t.substring(1),t.length),e=he(e),t=he(t),[e,t]=Dt(he(e),he(t)),a==1&&(n==1?e=At(e):t=At(t));let l=dn(e,t);return a?a==2?"-"+he(l):e.length<l.length?he(l.substring(1)):"-"+he(At(l)):he(l)}function At(e){let t="",a=e.length,n=e.split(".")[1],l=n?n.length:0;for(let s=0;s<a;s++)e[s]>="0"&&e[s]<="9"?t+=9-parseInt(e[s]):t+=e[s];let o=l>0?"0."+new Array(l).join("0")+"1":"1";return dn(t,o)}function he(e){let t=e.split(".");for(t[0]||(t[0]="0");t[0][0]=="0"&&t[0].length>1;)t[0]=t[0].substring(1);return t[0]+(t[1]?"."+t[1]:"")}function Dt(e,t){let a=e.split("."),n=t.split("."),l=a[0].length,o=n[0].length;return l>o?n[0]=new Array(Math.abs(l-o)+1).join("0")+(n[0]?n[0]:""):a[0]=new Array(Math.abs(l-o)+1).join("0")+(a[0]?a[0]:""),l=a[1]?a[1].length:0,o=n[1]?n[1].length:0,(l||o)&&(l>o?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(l-o)+1).join("0"):a[1]=(a[1]?a[1]:"")+new Array(Math.abs(l-o)+1).join("0")),e=a[0]+(a[1]?"."+a[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function dn(e,t){[e,t]=Dt(e,t);let a="",n=0;for(let l=e.length-1;l>=0;l--){if(e[l]==="."){a="."+a;continue}let o=parseInt(e[l])+parseInt(t[l])+n;a=o%10+a,n=Math.floor(o/10)}return n?n.toString()+a:a}var ae=(e=>(e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e))(ae||{});function Ze(e,t=0,a=ae.HALF_EVEN){if(a===ae.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let l=e.split("."),o=l[0],s=l[1];if(t<0){if(t=-t,o.length<=t)return"0";{let u=o.substr(0,o.length-t);return e=u+"."+o.substr(o.length-t)+s,u=Ze(e,0,a),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return o.length,hn(l[1],o,n,a)?(n?"-":"")+Bt(o):(n?"-":"")+o;if(l[1]){if(l[1].length<t)return(n?"-":"")+o+"."+l[1]+new Array(t-l[1].length+1).join("0")}else return(n?"-":"")+o+"."+new Array(t+1).join("0");s=l[1].substring(0,t);let i=l[1].substring(t);return i&&hn(i,s,n,a)&&(s=Bt(s),s.length>t)?(n?"-":"")+Bt(o,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+o+"."+s}function hn(e,t,a,n){if(!e||e===new Array(e.length+1).join("0")||n===ae.DOWN||!a&&n===ae.FLOOR||a&&n===ae.CEILING)return!1;if(n===ae.UP||a&&n===ae.FLOOR||!a&&n===ae.CEILING)return!0;let l="5"+new Array(e.length).join("0");if(e>l)return!0;if(e<l)return!1;switch(n){case ae.HALF_DOWN:return!1;case ae.HALF_UP:return!0;case ae.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function Bt(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let a=e.length-1,n="";for(let l=a;l>=0;l--){let o=parseInt(e[l])+t;o==10?(t=1,o=0):t=0,n+=o}return t&&(n+=t),n.split("").reverse().join("")}function Ft(e,t){e=e.toString(),t=t.toString();let a=0;e[0]=="-"&&(a++,e=e.substr(1)),t[0]=="-"&&(a++,t=t.substr(1)),e=Je(e),t=Je(t);let n=0,l=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(l=t.length-t.indexOf(".")-1);let o=n+l;if(e=Je(e.replace(".","")),t=Je(t.replace(".","")),e.length<t.length){let d=e;e=t,t=d}if(t=="0")return"0";let s=t.length,i=0,u=[],f=s-1,c="";for(let d=0;d<s;d++)u[d]=e.length-1;for(let d=0;d<2*e.length;d++){let S=0;for(let b=t.length-1;b>=f&&b>=0;b--)u[b]>-1&&u[b]<e.length&&(S+=parseInt(e[u[b]--])*parseInt(t[b]));S+=i,i=Math.floor(S/10),c=S%10+c,f--}return c=Je(va(c,o)),a==1&&(c="-"+c),c}function va(e,t){return t==0?e:(e=t>=e.length?new Array(t-e.length+1).join("0")+e:e,e.substr(0,e.length-t)+"."+e.substr(e.length-t,t))}function Je(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function qt(e,t,a=8){if(t==0)throw new Error("Cannot divide by 0");if(e=e.toString(),t=t.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),t=t.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;t[0]=="-"&&(t=t.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var l=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=he(t.replace(".","")),l>=0){let f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=he(e+new Array(l+1).join("0"));else if(l>f)e=e.replace(".",""),e=he(e+new Array(l-f+1).join("0"));else if(l<f){e=e.replace(".","");let c=e.length-f+l;e=he(e.substring(0,c)+"."+e.substring(c))}else l==f&&(e=he(e.replace(".","")))}let o=0,s=t.length,i="",u=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(0,s+1):e.substring(0,s);if(e=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(s+1):e.substring(s),u.indexOf(".")>-1){let f=u.length-u.indexOf(".")-1;u=u.replace(".",""),s>u.length&&(f+=s-u.length,u=u+new Array(s-u.length+1).join("0")),o=f,i="0."+new Array(f).join("0")}for(a=a+2;o<=a;){let f=0;for(;parseInt(u)>=parseInt(t);)u=ft(u,"-"+t),f++;i+=f,e?(e[0]=="."&&(i+=".",o++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(o||(i+="."),o++,u=u+"0")}return(n==1?"-":"")+he(Ze(i,a-2))}function Lt(e,t){return e=e.toString(),t=t.toString(),t=jt(t),ft(e,t)}function jt(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function gn(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),mn(e),mn(t);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=Lt(e,Ft(t,Ze(qt(e,t),0,ae.FLOOR)));return a+n}function mn(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function pn(e,t){let a=!1;if(e[0]=="-"&&t[0]!="-")return-1;if(e[0]!="-"&&t[0]=="-")return 1;if(e[0]=="-"&&t[0]=="-"&&(e=e.substr(1),t=t.substr(1),a=!0),[e,t]=Dt(e,t),e.localeCompare(t)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return e[n]>t[n]?a?-1:1:a?1:-1;return 0}class J{value;static RoundingModes=ae;static validate(t){if(t){if(t=t.toString(),isNaN(t))throw Error("Parameter is not a number: "+t);t[0]=="+"&&(t=t.substring(1))}else t="0";if(t.startsWith(".")?t="0"+t:t.startsWith("-.")&&(t="-0"+t.substr(1)),/e/i.test(t)){let[a,n]=t.split(/[eE]/);a=he(a);let l="";a[0]=="-"&&(l="-",a=a.substring(1)),a.indexOf(".")>=0?(n=parseInt(n)+a.indexOf("."),a=a.replace(".","")):n=parseInt(n)+a.length,a.length<n?t=l+a+new Array(n-a.length+1).join("0"):a.length>=n&&n>0?t=l+he(a.substring(0,n))+(a.length>n?"."+a.substring(n):""):t=l+"0."+new Array(-n+1).join("0")+a}return t}constructor(t="0"){this.value=J.validate(t)}getValue(){return this.value}static getPrettyValue(t,a,n){if(!(a||n))a=3,n=",";else if(!(a&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=J.validate(t);let l=t.charAt(0)=="-";l&&(t=t.substring(1));var o=t.indexOf(".");o=o>0?o:t.length;for(var s="",i=o;i>0;)i<a?(a=i,i=0):i-=a,s=t.substring(i,i+a)+(i<o-a&&i>=0?n:"")+s;return(l?"-":"")+s+t.substring(o)}getPrettyValue(t,a){return J.getPrettyValue(this.value,t,a)}static round(t,a=0,n=ae.HALF_EVEN){if(t=J.validate(t),isNaN(a))throw Error("Precision is not a number: "+a);return Ze(t,a,n)}round(t=0,a=ae.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new J(Ze(this.value,t,a))}static floor(t){return t=J.validate(t),t.indexOf(".")===-1?t:J.round(t,0,ae.FLOOR)}floor(){return this.value.indexOf(".")===-1?new J(this.value):new J(this.value).round(0,ae.FLOOR)}static ceil(t){return t=J.validate(t),t.indexOf(".")===-1?t:J.round(t,0,ae.CEILING)}ceil(){return this.value.indexOf(".")===-1?new J(this.value):new J(this.value).round(0,ae.CEILING)}static add(t,a){return t=J.validate(t),a=J.validate(a),ft(t,a)}add(t){return new J(ft(this.value,t.getValue()))}static subtract(t,a){return t=J.validate(t),a=J.validate(a),Lt(t,a)}subtract(t){return new J(Lt(this.value,t.getValue()))}static multiply(t,a){return t=J.validate(t),a=J.validate(a),Ft(t,a)}multiply(t){return new J(Ft(this.value,t.getValue()))}static divide(t,a,n){return t=J.validate(t),a=J.validate(a),qt(t,a,n)}divide(t,a){return new J(qt(this.value,t.getValue(),a))}static modulus(t,a){return t=J.validate(t),a=J.validate(a),gn(t,a)}modulus(t){return new J(gn(this.value,t.getValue()))}static compareTo(t,a){return t=J.validate(t),a=J.validate(a),pn(t,a)}compareTo(t){return pn(this.value,t.getValue())}static negate(t){return t=J.validate(t),jt(t)}negate(){return new J(jt(this.value))}}function yn(e,t){return J.multiply(`${e}`,`${t}`)}function Mt(e,t,a=8){return J.divide(`${e}`,`${t}`,a)}function _t(e,t){return e=`${e}`,t=`${t}`,J.compareTo(e,t)}function bn(e){return J.negate(e)}function dt(e,t=-1,a=!1,n=3,l=","){let o=`${e}`;if(o.length==0||o==="-")return"";let s=o.charAt(0);s=="-"?o=o.substring(1):s="";let i=o,u="",f=o.indexOf(".");f!=-1&&(i=o.substring(0,f),u=o.substring(f+1)),t!=-1&&(t<u.length?u=u.substring(0,t):a&&t>u.length&&(u=u.padEnd(t,"0")));let c;if(n>0){let d="",S=i.split("").reverse();for(let b=0;b<S.length;b++)d+=S[b]+((b+1)%n==0&&b+1!=S.length?l:"");u.length==0?c=`${s}${d.split("").reverse().join("")}`:c=`${s}${d.split("").reverse().join("")}.${u}`}else u.length==0?c=`${s}${i}`:c=`${s}${i}.${u}`;return c}function Sn(e){let t=`${e}`,a=t.charAt(0);a=="-"?t=t.substring(1):a="";let n=t.replace(/[^\d\.-]/g,"");return`${a}${n}`}const Ta=$a,xa=Array.isArray,Ca=e=>ht(e)==="[object Map]",Ea=e=>ht(e)==="[object Set]",Na=e=>e instanceof Date,Pt=e=>typeof e=="function",ka=e=>typeof e=="string",Va=e=>typeof e=="symbol",Re=e=>e!==null&&typeof e=="object",Oa=e=>Re(e)&&Pt(e.then)&&Pt(e.catch),wn=Object.prototype.toString,ht=e=>wn.call(e),Ht=e=>ht(e)==="[object Object]",$n=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Ia(e){return e.__esModule||$n&&e[Symbol.toStringTag]==="Module"}const Ra=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function qe(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},a=1,n=e.length,l=!1;for(typeof t=="boolean"&&(l=t,t=e[a]??{},a++),typeof t!="object"&&(t={});a<n;a++)if(e[a]!==null&&e[a]!==void 0){let o=e[a];for(let s in o){let i=t[s],u=o[s];if(i!==u)if(l===!0&&u&&typeof u=="object"){let f;Array.isArray(u)?f=i&&Array.isArray(i)?i:[]:f=i&&typeof i=="object"?i:{},t[s]=qe(l,f,u)}else u!==void 0&&(t[s]=u)}}return t}function zt(e,t,a=!1){if(!a)qe(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let l in t){let o=e[l],s=t[l];if(o!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!Ht(s))continue;o=zt(o,s,a),e[l]=o}else{if(typeof s=="function")continue;e[l]=s}}const n=Object.getOwnPropertySymbols(t);for(let l of n){let o=e[l],s=t[l];if(o!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!Ht(s))continue;o=zt(o,s,a),e[l]=o}else{if(typeof s=="function")continue;e[l]=s}}}return e}const Kt=Ra?Promise.resolve():null;function Aa(e,...t){Kt!==null?t&&t.length>0?Kt.then(()=>{e(t)}):Kt.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function te(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function ge(e){return typeof e=="number"?e:Number(e)}const Da={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function gt(e){let a=Object.prototype.toString.call(e);return e==null?String(e):Da[a]||"object"}function vn(e){return e&&typeof e=="object"&&"setInterval"in e}function Tn(e){return!e||e.offsetParent===null}function xn(e){let t=!!e&&"length"in e&&e.length,a=gt(e);return a==="function"||vn(e)?!1:a==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function Cn(e,t){let a=+t.length,n=0,l=e.length;for(;n<a;n++)e[l++]=t[n];return e.length=l,e}function Ba(e,t=[]){let a=t;return e!=null&&(xn(Object(e))?Cn(a,typeof e=="string"?[e]:e):a.push(e)),a}function Ae(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let a=gt(e),n=gt(t);if(a!==n)return!1;if(a==="object"){let l=Object.keys(e),o=Object.keys(t);if(l.length!==o.length)return!1;for(let s=0;s<l.length;s++){let i=l[s],u=e[i],f=t[i];if(!Ae(u,f))return!1}return!0}else if(a==="array"){if(e.length!==t.length)return!1;for(let l=0;l<e.length;l++){let o=e[l],s=t[l];if(!Ae(o,s))return!1}return!0}return!1}const Qe=typeof window<"u";function En(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const le=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Nn(e){return le(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),le(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function kn(e){if(e==null)return 0;let t=`${e}`;if(t.length==0)return 0;t.charAt(0)=="-"&&(t=t.substring(1)),t=t.replace(/[^\d\.-]/g,"");const a=t.indexOf(".");return a==-1?t.length:a}function Vn(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const a=t.indexOf(".");return a==-1?0:t.length-(a+1)}function On(e,t,a){const n=e.indexOf(t);return n===-1?e:t==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(a,"")}function Fa(e,t=!0,a=!0){t?e=On(e,".",/\./g):e=e.replace(/\./g,""),a?e=On(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function qa(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(a=>{if(Ae(e,a))return!0}):t.indexOf(e)}function La(e,t){if(typeof e=="object"||Array.isArray(e)){let a=t.reverse().findIndex(n=>{if(Ae(e,n))return!0});return a!==-1&&(a=t.length-1-a),a}return t.lastIndexOf(e)}function et(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function In(e,...t){const a={};return t.forEach(n=>{for(const l in n)a[l]=e[l]}),a}function me(e,...t){const a=[];t.forEach(l=>{Reflect.apply([].push,a,Reflect.ownKeys(l))});const n={};for(const l in e)a.includes(l)||(n[l]=e[l]);return n}const ja=(e,t,a)=>{const n=Object.assign({},e),l=Object.assign({},a);return Object.keys(t).length>0?(Object.keys(n).forEach(o=>{l.hasOwnProperty(o)?typeof l[o]=="string"&&(n[o]=t[l[o]]):t[o]&&(n[o]=t[o])}),n):e},oe=Symbol.for("BroadcastKey");class Wt{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,a,n){this.parent=t,this.proxy=a,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const a=this.children.findIndex(n=>t===n);a!==-1&&this.children.splice(a,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,a,...n){if(t.maxLevel!==void 0&&t.maxLevel!==null&&t.maxLevel>0){if(t.level=t.level??0,t.level>t.maxLevel)return[];t.level++}let l=!1;!t.name||t.name==="*"?l=!0:!t.name||t.name==="+"?(l=!1,t.name="*"):En(t.name)&&this.name&&t.name.test(this.name)?l=!0:typeof t.name=="function"?l=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(l=!0);const o=[];if(l){const s=this.callbacks.get(a);if(typeof s=="function"){const u=Reflect.apply(s,this.proxy,[...n]);u!=null&&o.push(u)}const i=this.proxy??{};if(typeof i[a]=="function"){const u=Reflect.apply(i[a],i,[...n]);u!=null&&o.push(u)}}return this.children.forEach(s=>{const i=Reflect.apply(s.emit,s,[{...t},a,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,o,[...i])}),o}emitToChildren(t,a,...n){const l=[];return this.children.forEach(o=>{const s=Reflect.apply(o.emit,o,[{...t},a,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,l,[...s])}),l}on(t,a){this.callbacks.set(t,a)}}function mt(e,t,a,n){const l=new Wt(t,e,a);if(n&&typeof n=="object")for(const o in n)l.on(o,n[o]);return l}function Ma(e,t,a){const n=a;if(n[oe])return n[oe];const l=r.inject(oe,null),o=new Wt(l,a,e);if(t&&typeof t=="object")for(const s in t)o.on(s,t[s]);return n[oe]=o,r.provide(oe,o),r.onUnmounted(()=>{o.destroy(),n[oe]=void 0}),o}function tt(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[oe]??r.inject(oe,null):r.inject(oe,null)}const Le=e=>e.default??e;class _a{error(t,a){const n=a,l=tt(a);l?l.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const a=t,n=tt(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}success(t){const a=t,n=tt(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}decorate(t,a,n){Array.isArray(t)||(t=[t]);const l=n,o=tt(n),s=a.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),i=t.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!s&&i?o?o.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):s&&!i&&(o?o.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let Rn=new _a;function Pa(e){Rn=e}function Ha(e,t){Le(Be).setValidator(e,t)}function za(e){Le(Be).deleteValidator(e)}let An=["blur","clear"];function Ka(e){An=e}function Dn(){return An}let Bn=["focus","change"];function Wa(e){Bn=e}function Fn(){return Bn}function Ga(e){Le(Be).messages(e)}function nt(...e){const t=[];return e.forEach(a=>{a.forEach(n=>{const l=t.findIndex(o=>o.type===n.type);l!==-1&&t.splice(l,1),t.push(n)})}),t}function pt(e){return e.forEach(t=>{t.type==="required"&&(t.required===null||t.required===void 0)&&(t.required=!0),!t.type&&(t.required===!0||t.required===!1)&&(t.type="required")}),e}const ke=Symbol("ValidateSchemaKey");class qn{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,a,n){this.parent=t,this.descriptor=a,this.proxy=n,this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;t&&(this.scope=r.effectScope(),this.scope.run(()=>{r.watchEffect(()=>{const a=pt(nt(this.attrRules,this.rules)),n=[];for(let o in t){let s=t[o];if(this.hasValidator(o,!0)){if(s===!1)continue;let u={type:o};s!==null&&typeof s=="object"&&Object.assign(u,s),n.push(u);continue}let i=this.getValidator(o);if(i!==null){let u={type:o,validator:i};n.push(u)}}this.attrRules=pt(n);const l=nt(this.attrRules,this.rules);r.nextTick(()=>{this.decorate(l,a)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(t,...a){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...a]);const l=Rn;return l&&typeof l[t]=="function"?Reflect.apply(l[t],l,[...a]):null}decorate(t,a){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,a,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(t){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",t,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(t,a,n=!1){n?Le(Be).setValidator(t,a):this.validators[t]=a}getValidator(t){let a=this.validators[t]??null;return a||(a=this.parent?.getValidator(t)??null),a}deleteValidator(t,a=!1){a?Le(Be).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,a=!1){if(a)return Le(Be).hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const a=nt(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=pt(t):this.rules=pt([t]);const n=nt(this.attrRules,this.rules);r.nextTick(()=>{this.decorate(n,a)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let a=nt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(a.length>0){const l={[`${n}`]:a},o=this.getValue(),s={[`${n}`]:o},i=Le(Be),u=new i(l),f=this.proxy??s;return u.validate(s,{context:f}).then(d=>{if(d.pass)this.success();else{let S="error";Array.isArray(d.errors)&&d.errors.length>0&&(S=d.errors[0].message??S,d.errors=[d.errors[0]],d.errors[0].ref=f),this.error(S)}return d}).catch(d=>{const S=d.message??`${d}`;return this.error(S),d})}}return Promise.resolve({pass:!0})}}function yt(e,t,a){if(a.valueName=a.valueName??"modelValue",a.valueType=a.valueType??"string",!a.validateHandler&&a.valueName!=="modelValue"){const l=a.valueName;a.validateHandler={getValue(o){return o[l]}}}return new qn(t,a,e)}const Ln=Symbol.for("EventEmitterKey");class Ya{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,a){let n=this.register.get(t);if(n&&Array.isArray(n)){let l=n.findIndex(o=>o===a);l!==-1&&n.splice(l,1)}}on(t,a){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(a)}emit(t,...a){const n=this.register.get(t);n&&n.forEach(l=>{try{Reflect.apply(l,null,[t,...a])}catch(o){console.error(o.message,o)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...a])}}function rt(e,t){let a=null;return function(...n){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...n])},t)}}function jn(e,t){let a=0;return function(...n){const l=new Date().getTime();l-a<t||(a=l,Reflect.apply(e,null,[...n]))}}function Ua(e,t){const a=rt((n,l)=>{e=n,l()},t);return r.customRef((n,l)=>({get(){return n(),e},set(o){a(o,l)}}))}function Xa(e){let t=!1;return function(...a){t||(t=!0,Reflect.apply(e,null,[...a]))}}function Gt(e,t,a,n=0,l=!0){let o=t,s=0;if(l){const u=e();if(s++,u||s>a)return}const i=()=>{const u=e();s++,!(u||s>a)&&(o+=n,setTimeout(i,o))};setTimeout(i,o)}const $e=Symbol("DomainKey"),Pe=Symbol("DataItemsKey");class bt{_parent=null;get parent(){return this._parent}set parent(t){this._parent=t}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(t){this._broadcast=t}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(t){this._validateSchema=t}_props=r.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,a=[]){for(const n in t){const l=t[n];a.length>0&&a.indexOf(l)!==-1||(this._props[n]=l)}}has(t){if(Reflect.has(this._props,t)){const a=this._props[t];if(a!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,a){this._props[t]=a}get(t,a){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?a:this.parent.get(t,a)}getForParent(t,a){return this.parent==null?a:this.parent.get(t,a)}getForSelf(t){return this._props[t]}getAll(t){const a=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const l=n._props[t];a.push(l)}n=n._parent}return a}}const Za=new bt;function He(){return Za}function Ve(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[$e]??r.inject($e,null):r.inject($e,null)}const Yt=Symbol("OriginalDateKey");function Ut(e,t,a=[],n){const l=r.getCurrentInstance(),o=l?.proxy;let s=r.inject($e,null);s===null&&(s=He());const i=e||t.prop||t.name,u=new bt(i);u.parent=s;const f=p=>{o[Yt]||S(p),u.set("modelValue",p)},c=()=>u.getForSelf("modelValue")??null,d=()=>o[Yt]??null,S=p=>{const w={};qe(!0,w,r.toRaw(p)),o[Yt]=w};r.isReactive(t)?r.watchEffect(()=>{u.merge(t,a)}):u.merge(t,a),t.modelValue&&S(t.modelValue),o[$e]=u,r.provide($e,u);let b=null,$=null;if(l!==null){const p=r.inject(oe,null);b=mt(o,p,i,n),u.broadcast=b,o[oe]=b,r.provide(oe,b),o.broadcast=(m,x,...R)=>Reflect.apply(b.emit,b,[m,x,...R]);const w=r.inject(ke,null);$=yt(o,w,{componentName:""}),u.validateSchema=$,o[ke]=$,r.provide(ke,$),o[Pe]=new Map,o.validate=(m=!0)=>{const x=[];let R=null;const q={deep:!1};if(m===!0)R={name:"*"};else if(Array.isArray(m)&&m.length>0){const N=m;R={name:E=>E?N.indexOf(E)!==-1:!1}}else if(m!=null&&typeof m=="object"){const N=m;if(q.ignoreHidden=N.ignoreHidden,Array.isArray(N.include)&&N.include.length>0){const E=N.include;R={name:I=>I?E.indexOf(I)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const E=N.exclude;R={name:I=>I?E.indexOf(I)===-1:!1}}else R={name:"*"}}if(R){const N=b?.emitToChildren(R,"validate",q);N&&Reflect.apply([].push,x,N)}return x.length==1?x[0]:x.length>1?Promise.all(x).then(N=>{let E=[];return N.forEach(I=>{I.pass===!1&&Array.isArray(I.errors)&&(E=[...E,...I.errors])}),E.length>0?{pass:!1,errors:E}:{pass:!0}}):Promise.resolve({pass:!0})},o.setNameValidateRules=(m,x=!0)=>{if(x){const R=Reflect.ownKeys(m),q=[...R],N={name:E=>{const I=R.includes(E);if(I){const V=q.findIndex(A=>E===A);V!==-1&&q.splice(V,1)}return I}};b?.emitToChildren(N,"setNameValidateRules",m,!1),q.length>0&&q.forEach(E=>{let I=String(E);const A=Pn(u,I,{componentName:"",fieldName:I,pureDataValidate:!0},b,$);o[Pe].set(I,A);const B=m[I];B&&A.validateSchema.setRule(B)})}},o.clearValidate=(m=!0)=>{let x=null;if(m===!0)x={name:"*"};else if(Array.isArray(m)&&m.length>0){const R=m;x={name:q=>q?R.indexOf(q)!==-1:!1}}else if(m!=null&&typeof m=="object"){const R=m;if(Array.isArray(R.include)&&R.include.length>0){const q=R.include;x={name:N=>N?q.indexOf(N)!==-1:!1}}else if(Array.isArray(R.exclude)&&R.exclude.length>0){const q=R.exclude;x={name:N=>N?q.indexOf(N)===-1:!1}}else x={name:"*"}}x&&b?.emitToChildren(x,"clearValidate",!1)},o.resetFields=m=>{const x=c();if(!x)return;const R={};if(qe(!0,R,d()??{}),Array.isArray(m))m.forEach(q=>{x[q]=R[q]});else if(m&&Array.isArray(m.include))(m.include??[]).forEach(N=>{x[N]=R[N]});else if(m&&Array.isArray(m.exclude)){let q=m.exclude??[];Reflect.ownKeys(R).forEach(N=>{q.includes(N)||(x[N]=R[N])})}else Object.assign(x,R);o.clearValidate(m)},o.setModelValue=(m,x)=>{!x||x===i?f(m):b?.emitToChildren({name:x},"setModelValue",m)},o.getModelValue=()=>c()}return r.onUnmounted(()=>{u.destroy(),o[$e]=void 0,o[Pe]&&(o[Pe].clear(),o[Pe]=void 0),b!==null&&(b.destroy(),o[oe]=void 0),$!==null&&($.destroy(),o[ke]=void 0)}),u}function Mn(e,t,a=[]){const l=r.getCurrentInstance()?.proxy;let o=r.inject($e,null);o===null&&(o=He());const s=e||t.prop||t.name,i=new bt(s);return i.parent=o,r.isReactive(t)?r.watchEffect(()=>{i.merge(t,a)}):i.merge(t,a),l[$e]=i,r.provide($e,i),r.onUnmounted(()=>{i.destroy(),l[$e]=void 0}),i}function _n(e,t,a){const l=Ve(e)?.get("rules");if(!l)return;let o=l[a];o&&(Array.isArray(o)||(o=[o]),o.forEach(s=>{t.setRule(s)}))}function ue(e,t,a){const l=r.getCurrentInstance()?.proxy,o=t??"",s=r.inject(oe,null),i=mt(l,s,o,a);l[oe]=i,r.provide(oe,i),l.broadcast=($,p,...w)=>Reflect.apply(i.emit,i,[$,p,...w]);const u=r.inject(ke,null);e.fieldName=e.fieldName??o;const f=yt(l,u,e);l[ke]=f,r.provide(ke,f),_n(l,f,o),l.validate=($=null)=>{const p=[];let w=!1,m=!1;if(Array.isArray($)&&$.indexOf(o)!==-1)m=!0,w=!0;else if($&&typeof $=="object"){const x=$;x.ignoreHidden===!0&&Tn(l.$el)?m=!1:(Array.isArray(x.include)&&x.include.indexOf(o)!==-1||Array.isArray(x.exclude)&&x.exclude.indexOf(o),m=!0),w=x.deep??!1}else typeof $=="boolean"&&(w=$),m=!0;if(m){const x=f?.validate();p.push(x)}if(w){let x=null;const R={deep:!1};if($===!0)x={name:"*"};else if(Array.isArray($)&&$.length>0){const q=$;x={name:N=>N?q.indexOf(N)!==-1:!1}}else if($!=null&&typeof $=="object"){const q=$;if(R.ignoreHidden=q.ignoreHidden,Array.isArray(q.include)&&q.include.length>0){const N=q.include;x={name:E=>E?N.indexOf(E)!==-1:!1}}else if(Array.isArray(q.exclude)&&q.exclude.length>0){const N=q.exclude;x={name:E=>E?N.indexOf(E)===-1:!1}}else x={name:"*"}}if(x){const q=i.emitToChildren(x,"validate",R);Reflect.apply([].push,p,q)}}return p.length==1?p[0]:p.length>1?Promise.all(p).then(x=>{let R=[];return x.forEach(q=>{q.pass===!1&&Array.isArray(q.errors)&&(R=[...R,...q.errors])}),R.length>0?{pass:!1,errors:R}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=$=>f?.setRule($),l.setNameValidateRules=($,p=!1)=>{const w=$[o];if(w&&f?.setRule(w),p){const m={name:x=>Reflect.ownKeys($).includes(x)};i.emitToChildren(m,"setNameValidateRules",$,!1)}},l.clearValidate=($=null)=>{(!Array.isArray($)||$.indexOf(t??"")!==-1)&&f?.clear();let p=null;if($===!0)p={name:"*"};else if(Array.isArray($)&&$.length>0){const w=$;p={name:m=>m?w.indexOf(m)!==-1:!1}}else if($!=null&&typeof $=="object"){const w=$;if(Array.isArray(w.include)&&w.include.length>0){const m=w.include;p={name:x=>x?m.indexOf(x)!==-1:!1}}else if(Array.isArray(w.exclude)&&w.exclude.length>0){const m=w.exclude;p={name:x=>x?m.indexOf(x)===-1:!1}}else p={name:"*"}}p&&i.emitToChildren(p,"clearValidate",!1)};const c=new Ya(l);l[Ln]=c;const d=rt(($="validate")=>{$==="reset"?f.clear():f.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Dn()).forEach($=>{c.on($,p=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Fn()).forEach($=>{c.on($,p=>{d("reset")})}),r.onUnmounted(()=>{i.destroy(),l[oe]=void 0,f.destroy(),l[ke]=void 0,c.destroy(),l[Ln]=void 0}),{broadcast:i,validateSchema:f,emitEvent:($,...p)=>{Reflect.apply(c.emit,c,[$,...p])},onEvent:($,p)=>{Reflect.apply(c.on,c,[p])},offEvent:($,p)=>{Reflect.apply(c.off,c,[p])}}}function Pn(e,t,a,n,l){const o={},s=t??"";a.fieldName=s,a.validateHandler={getValue(f){const c=e.getForSelf("modelValue");return c?c[s]:null}};const i=yt({},l,a);o.validate=(f=null)=>{const c=[];let d=!1,S=!1;if(Array.isArray(f)&&f.indexOf(s)!==-1)S=!0,d=!0;else if(f&&typeof f=="object"){const b=f;Array.isArray(b.include)&&b.include.indexOf(s)!==-1||Array.isArray(b.exclude)&&b.exclude.indexOf(s),S=!0,d=b.deep??!1}else typeof f=="boolean"&&(d=f),S=!0;if(S){const b=i?.validate();c.push(b)}if(d){let b=null;const $={deep:!1};if(f===!0)b={name:"*"};else if(Array.isArray(f)&&f.length>0){const p=f;b={name:w=>w?p.indexOf(w)!==-1:!1}}else if(f!=null&&typeof f=="object"){const p=f;if(Array.isArray(p.include)&&p.include.length>0){const w=p.include;b={name:m=>m?w.indexOf(m)!==-1:!1}}else if(Array.isArray(p.exclude)&&p.exclude.length>0){const w=p.exclude;b={name:m=>m?w.indexOf(m)===-1:!1}}else b={name:"*"}}if(b){const p=u.emitToChildren(b,"validate",$);Reflect.apply([].push,c,p)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(b=>{let $=[];return b.forEach(p=>{p.pass===!1&&Array.isArray(p.errors)&&($=[...$,...p.errors])}),$.length>0?{pass:!1,errors:$}:{pass:!0}}):Promise.resolve({pass:!0})},o.setValidateRule=f=>i?.setRule(f),o.setNameValidateRules=f=>{const c=f[s];c&&i?.setRule(c)};const u=mt(null,n,s,o);return{broadcast:u,validateSchema:i}}const ce=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${re(e,t)}px`:"";function re(e,t=-1){if(typeof e=="number")return e>0&&e<1&&t>0?e*t:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let a=e.indexOf("px");if(a!==-1)return Number(e.substring(0,a));if(a=e.indexOf("rem"),a!==-1){let l=Number(e.substring(0,a)),o=1;if(Qe){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(o=Number(s.substring(0,i)))}return l*=o,l}if(a=e.indexOf("%"),a!==-1)return Number(e.substring(0,a))/100*t;const n=Number(e);return isNaN(n)?0:n}const De="PageStateKey";function xe(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=re(e.top)),e.left!==null&&e.left!==void 0&&(t.left=re(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=re(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=re(e.right))),t}function Xt(e,t,a={},n=!0,l=-1,o=-1,s=0,i=0){if(e.headerHeight=re(a.headerHeight??t.headerHeight),e.headerPadding=xe(a.headerPadding??t.headerPadding),e.footerHeight=re(a.footerHeight??t.footerHeight),e.footerPadding=xe(a.footerPadding??t.footerPadding),e.contentPadding=xe(a.contentPadding??t.contentPadding),n){const u=a.height??t.height;u?e.height=re(u,o):e.height=re(o)-re(s,o)-re(i,o),e.width=re(a.width??t.width??0,l)}}function Hn(e,t={}){const a={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...a},footerHeight:0,footerPadding:{...a},contentPadding:{...a},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},l=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});l&&(n.safeAreaTop=re(l.top),n.safeAreaBottom=re(l.bottom),n.safeAreaLeft=re(l.left),n.safeAreaRight=re(l.right));const o=e.get("pageLayout");if(!o)return null;const s=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,f=e.get("footerBarHeight")??0;Xt(n,o,t,!0,s,i,u,f);const c=r.reactive(n),d=e.getForParent(De);d&&(n.height=wt(e,d),n.width=$t(e,d),r.watch([()=>d.height,()=>d.width,()=>d.contentPadding,()=>d.headerMounted,()=>d.footerMounted],()=>{c.height=wt(e,d),c.width=$t(e,d)}));const S=!d;return r.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([b,$,p=-1,w=-1,m=0,x=0])=>{Xt(c,$,t,S,p,w,m,x)}),e.set(De,c),c}function St(e){return e.get(De)}function at(e,t){if(t=t??e.get(De),t&&t.headerMounted){const a=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+a}return 0}function lt(e,t){if(t=t??e.get(De),t&&t.footerMounted){const a=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+a}return 0}function wt(e,t){if(t=t??e.get(De),t){if(t.contentInnerHeight)return t.contentInnerHeight;const a=at(e,t),n=lt(e,t);return t.height-a-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function $t(e,t){return t=t??e.get(De),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Ja(e,t){const a=e.get("isInnerPage");return typeof a=="function"?Reflect.apply(a,{},[t,e]):!1}function Qa(e){return!!e.getForParent(De)}var ve=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(ve||{});function Zt(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function we(e,t,a=1,n){const l=Ve();return l==null?e:a===0?r.computed(()=>{const o=l.getAll(t);for(let i=o.length-1;i>=0;i--){const u=o[i];if(Zt(u,n))return u}const s=e.value;return Zt(s,n)?s:null}):r.computed(()=>{const o=e.value;return Zt(o,n)?o:l?.get(t)})}function be(e){return we(e,"readonly",0,function(a){return te(a)})}function Se(e){return we(e,"disabled",0,function(a){return te(a)})}function ne(e,t="modelValue",a){const n=r.toRef(e,t);let l=n.value;typeof a=="function"&&(l=a(n.value));const o=r.ref(l);return r.watch(n,s=>{if(typeof a=="function"){const i=a(s);i!==o.value&&(o.value=i)}else s!==o.value&&(o.value=s)}),o}const zn=new Map,vt=new Map;let Jt=null;function el(e){Jt=e}function Kn(e,t,a){if(a){let n=vt.get(a);n||(n=new Map,vt.set(a,n)),n.set(e,t)}else zn.set(e,t)}function Ce(e,t,a){!a&&Jt&&(a=Jt(e)??void 0);let n=null;if(a){let l=vt.get(a);l&&(n=l.get(t))}return n||(n=zn.get(t)),n}function tl(e,t){for(let a in e){const n=e[a];Kn(a,n,t)}}function nl(e){vt.delete(e)}function rl(){return{top:0,left:0,bottom:0,right:0}}function al(e=0,t=0){if(Qe){const a=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,l={width:a,height:n-re(e,n)-re(t,n),headerHeight:44,footerHeight:44};return{rootWidth:a,rootHeight:n,pageLayout:l}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}}class ll{packages;installers;_version;get version(){return this._version}constructor(t,a,n){this.packages=t,this.installers=a,this._version=n}install(t,a={}){a?.install!==!1&&(this.packages.forEach(o=>{o.install?t.use(o):o.name&&t.component(o.name,o)}),this.installers.forEach(o=>{o(t)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],l=He();if(this.initPageLayout(a,l),a.autoAdjustPageLayout!==!1&&window.ResizeObserver){const o=jn(()=>{const i={...a},u=document.documentElement.clientWidth||document.body.clientWidth,f=document.documentElement.clientHeight||document.body.clientHeight;i.width=u,i.height=f,this.initPageLayout(i,l)},150);new window.ResizeObserver(o).observe(window.document.body)}for(const o in a)n.indexOf(o)===-1&&l.set(o,a[o])}initPageLayout(t,a){const n=t.headerBarHeight??0,l=t.footerBarHeight??0,o=qe({},rl(),t.safeAreaInset),s=al(n,l),i=qe({},s.pageLayout,t.pageLayout);a=a??He(),a.set("safeAreaInset",o),a.set("headerBarHeight",n),a.set("footerBarHeight",l),a.set("pageLayout",i),a.set("rootWidth",s.rootWidth),a.set("rootHeight",s.rootHeight)}setScopeGetter(t){el(t)}setAPI(t,a,n){Kn(t,a,n)}getAPI(t,a,n){return Ce(t,a,n)}batchSetAPI(t,a){tl(t,a)}clearScopeAPI(t){nl(t)}getRootDomain(){return He()}}const ol=[g.ElAffix,g.ElAlert,g.ElAutocomplete,g.ElAutoResizer,g.ElAvatar,g.ElBacktop,g.ElBadge,g.ElBreadcrumb,g.ElBreadcrumbItem,g.ElButton,g.ElButtonGroup,g.ElCalendar,g.ElCard,g.ElCarousel,g.ElCarouselItem,g.ElCascader,g.ElCascaderPanel,g.ElCheckTag,g.ElCheckbox,g.ElCheckboxButton,g.ElCheckboxGroup,g.ElCol,g.ElCollapse,g.ElCollapseItem,g.ElCollapseTransition,g.ElColorPicker,g.ElConfigProvider,g.ElContainer,g.ElAside,g.ElFooter,g.ElHeader,g.ElMain,g.ElDatePicker,g.ElDescriptions,g.ElDescriptionsItem,g.ElDialog,g.ElDivider,g.ElDrawer,g.ElDropdown,g.ElDropdownItem,g.ElDropdownMenu,g.ElEmpty,g.ElForm,g.ElFormItem,g.ElIcon,g.ElImage,g.ElImageViewer,g.ElInput,g.ElInputNumber,g.ElLink,g.ElMenu,g.ElSubMenu,g.ElMenuItem,g.ElMenuItemGroup,g.ElPageHeader,g.ElPagination,g.ElPopconfirm,g.ElPopover,g.ElPopper,g.ElProgress,g.ElRadio,g.ElRadioButton,g.ElRadioGroup,g.ElRate,g.ElResult,g.ElRow,g.ElScrollbar,g.ElSelect,g.ElOption,g.ElOptionGroup,g.ElSelectV2,g.ElSkeleton,g.ElSkeletonItem,g.ElSlider,g.ElSpace,g.ElSteps,g.ElStep,g.ElSwitch,g.ElTable,g.ElTableColumn,g.ElTableV2,g.ElTabs,g.ElTabPane,g.ElTag,g.ElTimePicker,g.ElTimeSelect,g.ElTimeline,g.ElTimelineItem,g.ElTooltip,g.ElTransfer,g.ElTree,g.ElTreeSelect,g.ElTreeV2,g.ElUpload],il=[g.ElInfiniteScroll,g.ElLoading,g.ElMessage,g.ElMessageBox,g.ElNotification,g.ElPopoverDirective],sl=e=>{ol.forEach(t=>{let a=t.name;typeof a=="string"?(a=`Fox${a.slice(2)}`,e.component(a,t)):e.use(t)}),il.forEach(t=>{e.use(t)})};function Q(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(a){return a.baseName=e,a.name=t,a.install=n=>{n.component(a.name,a)},r.defineComponent(a)},createDemo(a){return a.baseName=e,a.name="demo-"+e,r.defineComponent(a)}}}const ie={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},pe={prop:{type:String,required:!1},label:{type:String,required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},Wn={column:{type:[String,Number],required:!1},columnWidth:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},maxItemWidth:{type:[String,Number],required:!1}},Gn={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},type:{type:[String],required:!1,default:"grid"},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!0},markColor:{type:[String],required:!1},title:{type:String,default:""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:!1},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1}},Yn=[];for(const e in Gn)Yn.push(e);function fe(e,t=null){if(t||(t=r.getCurrentInstance()),t&&t.proxy){let a=t.proxy;Object.assign(a,e)}}const ul=Symbol.for("InnerPageScopeKey"),cl=(e,t)=>({inheritAttrs:!0,props:{...ie,...Wn,name:{type:String,required:!1,default:""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1}},setup(a,n){const l=Ut(a.name,a);if(l){const f=Hn(l,a);fe({getPageContentHeight:()=>wt(l,f),getPageContentWidth:()=>$t(l,f),getPageHeaderHeight:()=>at(l,f),getPageFooterHeight:()=>lt(l,f)});const c=r.inject(ul,!1);f&&c&&(f.contentHeight="100%")}const o=r.computed(()=>({[e]:!0})),s=r.computed(()=>({})),i=r.getCurrentInstance(),u=f=>{const c=i?.proxy;c&&typeof c.setNameValidateRules=="function"&&c.setNameValidateRules(f,!0)};return r.watch(()=>a.rules,(f,c)=>{if(!f&&!c)return;const d=r.toRaw(c),S=r.toRaw(f),b=S?Reflect.ownKeys(S):[];(d?Reflect.ownKeys(d):[]).forEach(p=>{b.includes(p)||(S[p]=[])}),u(S)},{deep:!0}),r.onMounted(()=>{if(a.rules){const f=r.toRaw(a.rules);u(f)}}),r.onBeforeUnmount(()=>{}),{classes:o,styles:s}}}),{componentName:fl,create:dl,scope:qu}=Q("page"),hl=dl(cl(fl));function gl(e,t,a,n,l,o){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),title:""},[r.renderSlot(e.$slots,"default")],6)}const Ee=(e,t)=>{const a=e.__vccOpts||e;for(const[n,l]of t)a[n]=l;return a},Un=Ee(hl,[["render",gl]]),ml=["aria-labelledby"],pl=r.createElementVNode("path",{d:"M642.973 1005.542 321.912 587.098a123.278 123.278 0 0 1 0-150.17l321.06-418.443a47.182 47.182 0 0 1 74.83 57.422l-321.088 418.47a28.994 28.994 0 0 0 0 35.3l321.088 418.47a47.155 47.155 0 0 1-74.83 57.395",fill:"currentColor","fill-opacity":"0.9"},null,-1),yl=[pl],bl=r.defineComponent({__name:"Left",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const a=e,n=i=>{t("click",i)},l=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},o=r.computed(()=>{const i="fox-icon";return{[a.class]:!!a.class,[i]:!0,[i+"-"+a.name]:a.name}}),s=r.computed(()=>{const i={};return i.height=l(a.height)??l(a.size),i.width=l(a.width)??l(a.size),i.color=a.color,i});return(i,u)=>(r.openBlock(),r.createElementBlock("svg",{class:r.normalizeClass(o.value),style:r.normalizeStyle(s.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},yl,14,ml))}});function Qt(e){const t=r.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function en(e){const t=r.unref(e),a=window.getComputedStyle(t,null),n=parseFloat(a.getPropertyValue("padding-left")),l=parseFloat(a.getPropertyValue("padding-right")),o=parseFloat(a.getPropertyValue("padding-top")),s=parseFloat(a.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-l,height:t.clientHeight-o-s}}const Sl=(e,t,a,n=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:a},leftText:{type:String,required:!1,default:""},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(l,o){const s=Ve(),i=s?St(s):null;i&&(i.headerMounted=!0);const u=r.computed(()=>{const y=e;return{[y]:!0,[`${y}--border`]:l.border,[`${y}--fixed`]:l.fixed,[`${y}--safe-area-inset-top`]:l.safeAreaInsetTop}}),f=l.height!==null&&l.height!==void 0?re(l.height):null,c=r.computed(()=>{const y={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const T=xe(l.padding??i.headerPadding);return Object.assign(y,T),f&&(i.headerHeight=f),y.height=i.headerHeight,y.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,y.safeAreaTop>0&&(y.top=y.safeAreaTop+(T.top??0),y.height=y.height+y.safeAreaTop),y}if(f&&(y.height=f),l.padding){const T=xe(l.padding);Object.assign(y,T)}return y}),d=r.ref(null),S=()=>{if(i&&d.value&&d.value.offsetParent!==null){if(!n){const y=Qt(d.value);i.headerAllHeight=y.height}return i.headerMounted=!0,!0}return!1};r.onMounted(()=>{i&&Gt(S,50,5,50,!0)}),r.onUnmounted(()=>{i&&(i.headerMounted=!1)});const b=r.computed(()=>{const y={};return c.value.height!==null&&c.value.height!==void 0&&(y.height=`${c.value.height}px`),c.value.top!==null&&c.value.top!==void 0&&(y.paddingTop=`${c.value.top}px`),c.value.left!==null&&c.value.left!==void 0&&(y.paddingLeft=`${c.value.left}px`),c.value.right!==null&&c.value.right!==void 0&&(y.paddingRight=`${c.value.right}px`),c.value.bottom!==null&&c.value.bottom!==void 0&&(y.paddingBottom=`${c.value.bottom}px`),y}),$=r.computed(()=>{const y={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(y.top=`${c.value.safeAreaTop}px`),y}),p=r.computed(()=>{const y={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(y.top=`${c.value.safeAreaTop}px`),y}),w=r.computed(()=>!!l.leftShow),m=r.computed(()=>!(c.value.height!==null&&c.value.height!==void 0&&c.value.height<=0)),x=r.computed(()=>l.titleShow?l.title||l.titleIcon||o.slots.titleIcon||o.slots.default:!1),R=r.computed(()=>l.rightShow?l.rightText||l.rightIcon||o.slots.rightIcon||o.slots.right:!1),q=r.computed(()=>l.leftIcon),N=r.computed(()=>q.value||o.slots.leftIcon),E=r.computed(()=>l.titleIcon),I=r.computed(()=>l.titleIcon||o.slots.titleIcon),V=r.computed(()=>l.rightIcon),A=r.computed(()=>l.rightIcon||o.slots.rightIcon);function B(){o.emit("back")}function K(){o.emit("click-title")}function P(){o.emit("click-right")}function v(){o.emit("click-right-text")}return{headerBarRef:d,classes:u,styles:b,mHeaderShow:m,leftStyles:$,rightStyles:p,mLeftShow:w,mTitleShow:x,mRightShow:R,mLeftIcon:q,hasLeftIcon:N,mTitleIcon:E,hasTitleIcon:I,mRightIcon:V,hasRightIcon:A,handleLeft:B,handleCenter:K,handleRight:P,handleRightText:v}}}),{componentName:wl,create:$l,scope:vl}=Q("header-bar"),Tl=$l(Sl(wl,vl,bl)),xl={key:1,class:"fox-header-bar__title"},Cl={key:0,class:"title-text"};function El(e,t,a,n,l,o){return e.mHeaderShow?(r.openBlock(),r.createElementBlock("view",{key:0,ref:"headerBarRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"all",{},()=>[e.mLeftShow?(r.openBlock(),r.createElementBlock("view",{key:0,class:"fox-header-bar__left",style:r.normalizeStyle(e.leftStyles)},[r.renderSlot(e.$slots,"left",{},()=>[e.hasLeftIcon?(r.openBlock(),r.createElementBlock("view",{key:0,onClick:t[0]||(t[0]=(...s)=>e.handleLeft&&e.handleLeft(...s)),class:"left-icon"},[r.renderSlot(e.$slots,"leftIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mLeftIcon)))])])):r.createCommentVNode("",!0),e.leftText?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[1]||(t[1]=(...s)=>e.handleLeft&&e.handleLeft(...s))},r.toDisplayString(e.leftText),1)):r.createCommentVNode("",!0)])],4)):r.createCommentVNode("",!0),e.mTitleShow?(r.openBlock(),r.createElementBlock("view",xl,[r.renderSlot(e.$slots,"default",{},()=>[e.title?(r.openBlock(),r.createElementBlock("view",Cl,r.toDisplayString(e.title),1)):r.createCommentVNode("",!0),e.hasTitleIcon?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[2]||(t[2]=(...s)=>e.handleCenter&&e.handleCenter(...s)),class:"title-icon"},[r.renderSlot(e.$slots,"titleIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mTitleIcon)))])])):r.createCommentVNode("",!0)])])):r.createCommentVNode("",!0),e.mRightShow?(r.openBlock(),r.createElementBlock("view",{key:2,class:"fox-header-bar__right",style:r.normalizeStyle(e.rightStyles)},[r.renderSlot(e.$slots,"right",{},()=>[e.rightText?(r.openBlock(),r.createElementBlock("view",{key:0,onClick:t[3]||(t[3]=(...s)=>e.handleRightText&&e.handleRightText(...s))},r.toDisplayString(e.rightText),1)):r.createCommentVNode("",!0),e.hasRightIcon?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[4]||(t[4]=(...s)=>e.handleRight&&e.handleRight(...s)),class:"right-icon"},[r.renderSlot(e.$slots,"rightIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mRightIcon)))])])):r.createCommentVNode("",!0)])],4)):r.createCommentVNode("",!0)])],6)):r.createCommentVNode("",!0)}const Xn=Ee(Tl,[["render",El]]);function Nl(e,t,a=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(n,l){const o=Ve(),s=o?St(o):null,i=r.computed(()=>{const b=e;return{[b]:!0,[`${b}--${n.align}`]:!0,[`${b}--border`]:n.border,[`${b}--fixed`]:n.fixed,[`${b}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?re(n.height):null,f=r.computed(()=>{const b={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(o&&s){const $=xe(n.padding??s.footerPadding);return Object.assign(b,$),u&&(s.footerHeight=u),b.height=s.footerHeight,b.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,b.safeAreaBottom>0&&(b.height=b.height+b.safeAreaBottom,b.bottom=b.safeAreaBottom+($.bottom??0)),b}if(u&&(b.height=u),n.padding){const $=xe(n.padding);Object.assign(b,$)}return b}),c=r.ref(null),d=()=>{if(s&&c.value&&c.value.offsetParent!==null){if(!a){const b=Qt(c.value);s.footerAllHeight=b.height}return s.footerMounted=!0,!0}return!1};r.onMounted(()=>{s&&Gt(d,50,5,50,!0)}),r.onUnmounted(()=>{s&&(s.footerMounted=!1)});const S=r.computed(()=>{const b={};return f.value.height!==null&&f.value.height!==void 0&&(b.height=ce(f.value.height)),f.value.top!==null&&f.value.top!==void 0&&(b.paddingTop=ce(f.value.top)),f.value.left!==null&&f.value.left!==void 0&&(b.paddingLeft=ce(f.value.left)),f.value.right!==null&&f.value.right!==void 0&&(b.paddingRight=ce(f.value.right)),f.value.bottom!==null&&f.value.bottom!==void 0&&(b.paddingBottom=ce(f.value.bottom)),b});return{footerBarRef:c,classes:i,styles:S}}}}const{componentName:kl,create:Vl,scope:Lu}=Q("footer-bar"),Ol=Vl(Nl(kl));function Il(e,t,a,n,l,o){return r.openBlock(),r.createElementBlock("view",{ref:"footerBarRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"default")],6)}const Zn=Ee(Ol,[["render",Il]]);function Rl(e,t){return{props:{padding:{type:[Object],required:!1}},setup(a){const n=Ve(),l=r.computed(()=>({[e]:!0})),o=n?St(n):null,s=r.computed(()=>{const f={};if(n&&o){if(a.padding){const b=xe(a.padding);Object.assign(o.contentPadding,b)}const c=at(n,o),d=lt(n,o);let S="";if(o.contentHeight?S=`${o.contentHeight}`:S=`${o.height}px`,o.contentPadding,f.height=S,o.contentPadding.top||c>0){const b=(o&&o.contentPadding&&o.contentPadding.top)??0;f.paddingTop=`${c+b}px`}if(o.contentPadding.bottom||d>0){const b=(o&&o.contentPadding&&o.contentPadding.bottom)??0;f.paddingBottom=`${d+b}px`}return o.contentPadding.left&&(f.paddingLeft=`${o.contentPadding.left}px`),o.contentPadding.right&&(f.paddingRight=`${o.contentPadding.right}px`),f}if(a.padding){const c=xe(a.padding);c.left&&(f.paddingLeft=`${c.left}px`),c.top&&(f.paddingTop=`${c.top}px`),c.right&&(f.paddingRight=`${c.right}px`),c.bottom&&(f.paddingBottom=`${c.bottom}px`)}return f}),i=r.ref(null),u=()=>{if(o&&i.value){const f=en(i.value);o.contentInnerHeight=f.height,o.contentInnerWidth=f.width}};return r.onMounted(()=>{u()}),n&&o&&r.watch([()=>at(n),()=>lt(n)],([])=>{u()}),{contentRef:i,classes:l,styles:s}}}}const{componentName:Al,create:Dl,scope:ju}=Q("content"),Bl=Dl(Rl(Al));function Fl(e,t,a,n,l,o){return r.openBlock(),r.createElementBlock("div",{ref:"contentRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"default")],6)}const Jn=Ee(Bl,[["render",Fl]]),ze="GroupStateKey",Qn=Symbol.for("GroupScopeKey");function Tt(){return r.inject(Qn,!1)}function xt(e=!0){r.provide(Qn,e)}function ql(e,t={}){const n={type:"form",width:e.get("width",-1),column:-1,gutter:-1};Object.assign(n,t);const l=r.shallowRef(n),o=r.markRaw({layout:l,passport:0,order:{index:0}});return e.set(ze,o),o}function tn(e,t,a=-1,n=-1,l=!1,o,s){const i=e.get(ze);if(!i)return;const u=e.get("groupLayout")??{};a===-1&&(a=u.column??1),n===-1&&(n=u.gutter??0),o||(o=u.minItemWidth??-1),s||(s=u.maxItemWidth??-1);const f=re(o),c=re(s),d=()=>{const S=t===""||t===-1,b=re(t);let $=ge(a);const p=re(n);if(!S){let x=(b-($-1)*p)/$;for(;c!==-1&&x>c;)$++,x=(b-($-1)*p)/$;for(;f!==-1&&$>1&&x<f;)$--,x=(b-($-1)*p)/$}let w=!1;const m=i.layout;m.value.width=t,m.value.column!==$&&(m.value.column=$,w=!0),m.value.gutter!==p&&(m.value.gutter=p,w=!0),w&&r.triggerRef(m)};if(l)d();else{const S=++i.passport;setTimeout(()=>{S===i.passport&&d()},50)}}function Ct(e,t=!1){let a;return t?a=e.getForParent(ze):a=e.get(ze),a.layout}function Et(e,t=!1){let a;return t?a=e.getForParent(ze):a=e.get(ze),a.order}function er(e,t=1){if(t==="stretch")return-1;const a=ge(t);return a===-1?100:100*a/e}function Nt(e,t,a=1,n=0,l){const o={};let s=0;l?s=re(l):s=er(t.column,a),s>0&&(o.width=`${s}%`);const i=er(t.column,n);i>0&&(o["margin-left"]=`${i}%`);const u=t.gutter/2;return u>0&&(o["padding-left"]=`${u}px`,o["padding-right"]=`${u}px`),o}function kt(e,t,a=1,n=0){if(a==="stretch"){const u=e.index%t.column,f=u+(t.column-u);return e.index=e.index+(f-u),{"grid-column":`${u+1} / -1`}}let l=ge(a);if(l===-1){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}if(l>t.column){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}const o=ge(n)%t.column;let s=(e.index+o)%t.column,i=s+l;return i>t.column?(s=0,i=s+l,e.index=e.index+(t.column-s)+l):e.index=e.index+o+l,o>0?{"grid-column":`${s+1} / span ${l}`}:{"grid-column-start":`span ${l}`}}function nn(e){let t=e.offsetHeight;if(t<=0){const a=e.cloneNode(!0),n=e.offsetWidth;a.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(a),t=a.offsetHeight,document.body.removeChild(a)}return t}function Ll(e,t,a){if(e<=0)return"1fr";const n=(e-(t-1)*a)/t;return n>0?`${n}px`:"1fr"}function jl(e,t,a){return{props:{...ie,...Wn,...Gn},emits:["update:collapse"],setup(n,l){const o=Ut(n.name,n,Yn),s=ql(o,{type:n.type}),i=Tt();xt(!0);const u=r.computed(()=>i&&o?Ct(o,!0).value:null),f=r.getCurrentInstance(),c=F=>{const W=f?.proxy;W&&typeof W.setNameValidateRules=="function"&&W.setNameValidateRules(F,!0)};r.watch(()=>n.rules,(F,W)=>{if(!F&&!W)return;const U=r.toRaw(W),O=r.toRaw(F),G=O?Reflect.ownKeys(O):[];(U?Reflect.ownKeys(U):[]).forEach(j=>{G.includes(j)||(O[j]=[])}),c(O)},{deep:!0});const d=e,S=r.computed(()=>{const F={};F.height=v.value;const W=i?Et(o,!0):null;if(u.value&&W){if(u.value.type==="grid"){const U=kt(W,u.value,n.span,n.offset);Object.assign(F,U)}else if(u.value.type==="flow"){const U=Nt(W,u.value,n.span,n.offset,n.width);Object.assign(F,U)}}else if(n.width){const U=ce(n.width);F.width=U}return L.value&&(F["box-sizing"]="content-box"),F}),b=r.computed(()=>n.type==="grid"||n.type==="flow"?{[`${d}--${n.type}`]:!0,[`${d}--${n.type}-justify-${n.justify}`]:!0,[`${d}--${n.type}-align-${n.align}`]:!0,[`${d}--gutter`]:!0}:{[`${d}--${n.type}`]:!0,[`${d}--gutter`]:!0}),$=r.computed(()=>{if(n.type==="grid"){let F="";if(n.columnWidth)F=`repeat(auto-fill, ${n.columnWidth})`;else{const W=Ll(E.value,s.layout.value.column,s.layout.value.gutter);F=`repeat(${s.layout.value.column}, ${W})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":F}}}),p=r.toRef(n,"title"),w=r.toRef(n,"gutter"),m=r.toRef(n,"column"),x=r.computed(()=>i?!0:te(n.isWrap)),R=[],q=F=>{R.push(F)},N=()=>{let F=R.length;R.splice(0,F)},E=r.ref(-1),I=F=>{const W=en(F).width;W>0&&W!==E.value&&(E.value=W)};tn(o,E.value,m.value,w.value,!0,n.minItemWidth,n.maxItemWidth),n.autoLayout&&r.watch([E,m,w],([F,W,U])=>{s.order.index=0,tn(o,F,W,U,!1,n.minItemWidth,n.maxItemWidth)});const V=r.computed(()=>L.value?n.expandText??"":n.collapseText??""),A=r.computed(()=>({[`${e}__header-collapse-text`]:!0})),B=r.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!L.value,"is-collapse":L.value})),K=r.ref(),P=r.ref(),v=r.computed(()=>T.value||ce(n.height)||""),y=r.ref(!1),T=r.ref(""),L=r.ref(!1);let M=-1;const Y=(F,W=!0)=>{const U=K.value;if(U&&y.value!==F){if(M=M===-1?nn(U):M,L.value=!0,W)if(U.style["will-change"]="height",U.ontransitionend=function(){U.ontransitionend=null,this.style["will-change"]="auto",F||(T.value="",L.value=!1)},F){let O=0;n.collapseHeight?O=n.collapseHeight:P.value&&P.value.classList.contains(`${e}__header`)&&(O=nn(P.value)),T.value=`${M}px`,r.nextTick(()=>{T.value=`${O}px`})}else T.value=`${M}px`;else if(F){let O=0;n.collapseHeight?O=n.collapseHeight:P.value&&P.value.classList.contains(`${e}__header`)&&(O=nn(P.value)),T.value=`${O}px`}else L.value=!1,T.value=`${M}px`;y.value=F,l.emit("update:collapse",F)}};r.watch(()=>n.collapse,F=>{Y(F)});const C=()=>{k()},k=F=>{F=F??!y.value,Y(F)};fe({toggleCollapse:k,doLayout:()=>{R[0]&&(I(R[0]),tn(o,E.value,m.value,w.value,!0,n.minItemWidth,n.maxItemWidth))}});let D=null;r.onMounted(()=>{if(n.rules){const F=r.toRaw(n.rules);c(F)}if(Qe&&(Y(te(n.collapse),!1),n.autoLayout&&Array.isArray(R)&&R.length>0)){const F=R[0];I(F),window.ResizeObserver&&(D=new window.ResizeObserver(()=>{I(F)}),D.observe(F))}}),r.onUnmounted(()=>{D?.disconnect()});const z=(F,W,U,O)=>{const G={...b.value};return W===0&&(G[`${d}__first`]=!0),U>=O-1&&(G[`${d}__last`]=!0),r.h("div",{ref:q,key:`${W}`,class:G,style:$.value},F)};return()=>{s.order.index=0;const F=[];let W=0;if(l.slots.header){const O={key:`${W++}`,ref:P,class:{[`${d}__header`]:!0,[`${d}__first`]:!0}},G=r.h("div",O,[l.slots.header()]);F.push(G)}else{const O=[];if(p.value){if(n.showMark){const _={class:{[`${d}__header-mark`]:!0}};n.markColor&&(_.style={background:n.markColor});const j=r.h("div",_);O.push(j)}const G=r.h("div",{class:{[`${d}__header-title`]:!0}},[p.value]);O.push(G)}if(l.slots.toolbar&&O.push(l.slots.toolbar()),n.showCollapse){const G=[];if(V.value){const X={class:A.value},Z=r.h("span",X,[V.value]);G.push(Z)}const _={class:B.value},j=a(n.collapseIcon,_);if(j&&G.push(j),G.length>0){const X=r.h("div",{class:{[`${d}__header-collapse`]:!0},onClick:C},G);O.push(X)}}if(O.length>0){const G={key:`${W++}`,ref:P,class:{[`${d}__header`]:!0,[`${d}__first`]:!0}},_=r.h("div",G,O);F.push(_)}}N();const U=l.slots.default?l.slots.default():[];if(n.type==="grid"){const O=z(U,W++,0,U.length);F.push(O)}else if(n.type==="flow"){const O=z(U,W++,0,U.length);F.push(O)}else for(let O=0;O<U.length;O++){const G=U[O],_=z([G],W++,O,U.length);F.push(_)}if(x.value){const O=n.tag||"div";return r.h(O,{ref:K,prop:n.name,class:{[`${d}`]:!0,"is-collapse":L.value},style:S.value},[F])}else return F}}}}const{componentName:Ml,create:_l,scope:Pl}=Q("group"),tr=_l(jl(Ml,Pl,(e,t)=>(e=e??Fe.ArrowUp,r.h(g.ElIcon,t,{default:()=>[r.h(e)]}))));function Hl(e){return e===window}const zl=/matrix\((.+)\)/,nr=e=>{const t=r.unref(e);if(!t)return{x:0,y:0};if(Hl(t))return{x:0,y:0};let a=0,n=0,l=t;for(;l!==null;)a+=l.offsetLeft,n+=l.offsetTop,l=l.offsetParent;let o=0,s=0,i=0,u=0;for(l=t;l!==document;){s+=l.scrollTop,o+=l.scrollLeft;const{transform:f}=window.getComputedStyle(l);if(f){const c=zl.exec(f);if(c){let S=c[1].split(/\s*,\s*/);S.length==6&&(i+=Number(S[4]),u+=Number(S[5]))}}l=l.parentNode}return a-=o,n-=s,a+=i,n+=u,{x:a,y:n}};function Kl(e){return e===window}const rn=e=>{const t=r.unref(e);if(Kl(t)){const a=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:a,bottom:n,width:a,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}};class Wl{watchedListeners=[];add(t){this.watchedListeners.push(t)}remove(t){const a=this.watchedListeners.indexOf(t);a!==-1&&this.watchedListeners.splice(a,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(t=>{try{t()}catch{}})}}class Gl{monitorRegister=new WeakMap;watch(t,a){let n=t.parentNode;const l=document.body.parentNode;for(;n&&n!==l;){let o=this.monitorRegister.get(n);o||(o=new Wl,n.addEventListener("scroll",o.listen),n===document.body&&n.addEventListener("resize",o.listen),this.monitorRegister.set(n,o)),o.add(a),n=n.parentNode}}unwatch(t,a){let n=t.parentNode;const l=document.body.parentNode;for(;n&&n!==l;){let o=this.monitorRegister.get(n);o&&(o.remove(a),o.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",o.listen),n===document.body&&n.removeEventListener("resize",o.listen))),n=n.parentNode}}}const rr=new Gl,ar={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Yl,create:Ul}=Q("price"),Xl=Ul({props:{...ar},setup(e){const t=r.computed(()=>({[Yl]:!0})),a=r.computed(()=>e.needSymbol?e.symbol:""),n=r.computed(()=>et(e.price)==0?"":dt(e.price,e.decimalLength,!0,ge(e.digits),e.separator)),l=r.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),o=r.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(i+1)});return{classes:t,showSymbol:a,intText:l,decimalText:o}}}),Zl=["innerHTML"],Jl=["innerHTML"];function Ql(e,t,a,n,l,o){return r.openBlock(),r.createElementBlock("view",{class:r.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(r.openBlock(),r.createElementBlock("view",{key:0,class:r.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Zl)):r.createCommentVNode("",!0),r.createElementVNode("view",{class:r.normalizeClass(`fox-price--${e.size}`)},r.toDisplayString(e.intText),3),e.decimalText.length!=0?(r.openBlock(),r.createElementBlock("view",{key:1,class:r.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):r.createCommentVNode("",!0),r.createElementVNode("view",{class:r.normalizeClass(`fox-price--decimal-${e.size}`)},r.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(r.openBlock(),r.createElementBlock("view",{key:2,class:r.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Jl)):r.createCommentVNode("",!0)],2)}const an=Ee(Xl,[["render",Ql]]),{componentName:Vt,create:eo}=Q("hint-text"),to=eo({components:{Price:an},props:{...ar,type:{type:String,default:"number"},placement:{type:String,default:"top"},id:{type:String},reference:{type:Object},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function}},setup(e,t){const o=r.ref(!0),s=r.ref({x:0,y:0}),i=r.ref({x:0,y:0}),u=r.ref(0),f=r.ref(0),c=r.ref(e.placement),d=r.computed(()=>({[Vt]:!0})),S=r.ref(null),b=(V,A,B=10)=>{if(!Qe||A===!1||!V)return;o.value=!0;const K=rn(e.reference);u.value=K.width,f.value=K.height,setTimeout(()=>{if(!S.value)return;const P=nr(e.reference),v=document.documentElement.clientWidth||document.body.clientWidth,y=S.value.offsetWidth,T=S.value.offsetHeight;P.y-T>=0?(c.value="top",s.value.y=P.y-T-10-4,i.value.y=T):(c.value="bottom",s.value.y=P.y+f.value+10,i.value.y=-10);const L=P.x+y-v;L<0?(s.value.x=P.x,i.value.x=20):(s.value.x=P.x-L,i.value.x=L+20),o.value=!1},B)},$=rt(()=>{b(e.message,e.visible)},10),p=r.computed(()=>e.visible&&w.value),w=r.ref(!0),m=rt(V=>{const A=V[0];A&&(w.value=A.isIntersecting)},10),x=new IntersectionObserver(m);r.watch([()=>e.message,()=>e.visible],([V,A])=>{b(V,A)}),r.onMounted(()=>{b(e.message,e.visible),rr.watch(e.reference,$),x.observe(e.reference)}),r.onBeforeMount(()=>{rr.unwatch(e.reference,$),x.unobserve(e.reference),x.disconnect()});const R=r.computed(()=>{const V={"min-width":ce(u.value)};return o.value?V.visibility="hidden":V.transform=`translate(${s.value.x}px, ${s.value.y}px)`,V}),q=r.computed(()=>({[`${Vt}__content`]:!0})),N=r.computed(()=>({})),E=r.computed(()=>({[`${Vt}__arrow`]:!0,[`${Vt}__arrow-${e.placement}`]:!0})),I=r.computed(()=>({top:`${i.value.y}px`,left:`${i.value.x}px`}));return{show:p,tipRef:S,classes:d,styles:R,textClasses:q,textStyles:N,arrowClasses:E,arrowStyles:I}}}),no={key:1,class:"text"};function ro(e,t,a,n,l,o){const s=r.resolveComponent("Price");return r.openBlock(),r.createBlock(r.Transition,{name:"hint-text-fade"},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",{ref:"tipRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.createElementVNode("div",{class:r.normalizeClass(e.textClasses),style:r.normalizeStyle(e.textStyles)},[e.type=="number"?(r.openBlock(),r.createBlock(s,{key:0,price:e.message,position:"before"},null,8,["price"])):(r.openBlock(),r.createElementBlock("span",no,r.toDisplayString(e.message),1))],6),r.createElementVNode("div",{class:r.normalizeClass(e.arrowClasses),style:r.normalizeStyle(e.arrowStyles)},null,6)],6),[[r.vShow,e.show]])]),_:1})}const Ot=Ee(to,[["render",ro]]);class lr{seed=new Date().getTime();constructor(t){this.seed=t??new Date().getTime()}get(){let t=this.seed++;return this.seed<0&&(this.seed=0),t}}const ln={},ao=new lr,Ke=new Map,on=e=>{if(e){const t=document.getElementById(e);Ke.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of Ke.keys()){const a=document.getElementById(t);a&&a.parentNode?.removeChild(a)}Ke.clear()}},lo=e=>{const t=document.getElementById(e.id);if(t){const a=Ke.get(e.id);a?e={...ln,...a,...e}:e={...ln,...e};const n=r.createVNode(Ot,e);return r.render(n,t),e.id}},oo=e=>{e.unmount=on;let t;if(e.id){if(t=e.id,Ke.has(t))return lo(e)}else t=`hinttext_${ao.get()}`;e={...ln,...e},e.id=t,Ke.set(t,e);const a=document.createElement("div");a.id=e.id;const n=r.createVNode(Ot,e);return r.render(n,a),document.body.appendChild(a),t},io=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},It={show(e,t,a={},n=!0){return n&&on(),io(t),oo({...a,message:t,reference:e})},hide(e){on(e)},install(e){e.config.globalProperties.$hintText=It}},{componentName:or,create:so}=Q("item"),uo=so({inheritAttrs:!0,props:{...ie,...pe},emits:["appear","disappear"],setup(e,t){const a=e.prop??t.attrs.name;ue({componentName:or,validate:!1},a);const n=Ve(),l=Tt();xt(!1);const o=r.computed(()=>l&&n?Ct(n,!1).value:null),s=or,i=r.ref(null),u=r.computed(()=>{const O={[s]:!0,[`${s}__gutter`]:o.value&&o.value.type!=="flow",[`${s}__stretch`]:e.span==="stretch",[`${s}__input--border`]:e.hasBorder};if(O[e.errorMarkClass]=!!K.value,O[e.warnMarkClass]=!!A.value,O[e.infoMarkClass]=!!I.value,typeof i.value=="function"){const G=i.value(a);O[G]=!0}else if(typeof i.value=="string"){const G=i.value;O[G]=!0}return O}),f=r.computed(()=>{const O={},G=l&&n?Et(n,!1):null;if(o.value&&G)if(o.value.type==="grid"){const _=kt(G,o.value,e.span,e.offset);Object.assign(O,_)}else if(o.value.type==="flow"){const _=Nt(G,o.value,e.span,e.offset,e.width);Object.assign(O,_)}else return e.width&&(O.width=ce(e.width)),O;else e.width&&(O.width=ce(e.width));return O}),c=r.ref(null),d=r.computed({get:()=>c.value??te(e.isRequired),set:O=>{c.value=O}}),S=r.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),b=we(r.toRef(e,"labelPosition"),"labelPosition",ve.Near),$=r.computed(()=>b&&b.value==="top"?"top":b&&b.value==="right"?"right":"left"),p=r.computed(()=>({[`${s}__main`]:!0,[`${s}__main--${$.value}`]:!0})),w=r.computed(()=>({label:!0,[`label--${$.value}`]:!0})),m=we(r.toRef(e,"labelWidth"),"labelWidth",ve.Near),x=r.computed(()=>m&&m.value?{width:ce(m.value)}:{}),R=r.computed(()=>({"label--string":!0,"label--required":d.value})),q=r.computed(()=>({content:!0,[e.contentClass]:!0})),N=r.computed(()=>({...e.contentStyle})),E=r.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});fe({setRequired(O){d.value=O},setErrorTip(O){E.errorTip=O},setErrorIcon(O){E.errorIcon=O},setWarnTip(O){E.warnTip=O},setWarnIcon(O){E.warnIcon=O},setInfoTip(O){E.infoTip=O},setInfoIcon(O){E.infoIcon=O},setCustomClassName(O){i.value=O}});const I=r.computed(()=>e.infoTip||E.infoTip),V=r.computed(()=>e.infoIcon||E.infoIcon),A=r.computed(()=>e.warnTip||E.warnTip),B=r.computed(()=>e.warnIcon||E.warnIcon),K=r.computed(()=>e.errorTip||E.errorTip),P=r.computed(()=>e.errorIcon||E.errorIcon),v=r.computed(()=>K.value?"error":A.value?"warn":I.value?"info":""),y=r.computed(()=>v.value.length>0),T=r.computed(()=>v.value==="error"?K.value:v.value==="warn"?A.value:v.value==="info"?I.value:""),L=r.computed(()=>v.value==="error"?P.value:v.value==="warn"?B.value:v.value==="info"?V.value:null),M=r.computed(()=>{let O={[`${s}__tip`]:!0,[`${s}__tip--${v.value}`]:!0};return v.value==="error"&&e.errorClass?O[`${e.errorClass}`]=!0:v.value==="warn"&&e.warnClass?O[`${e.warnClass}`]=!0:v.value==="info"&&e.infoClass&&(O[`${e.infoClass}`]=!0),O}),Y=r.computed(()=>{let O={};return b&&b.value==="top"||!S.value?O["padding-left"]="0px":m&&m.value&&(O["padding-left"]=ce(m.value)),O}),C=()=>r.h(L.value,{width:12,height:12}),k=r.computed(()=>t.slots.fixedTip),H=r.computed(()=>({[`${s}__fixed-tip`]:!0})),D=r.ref();let z="";r.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([O,G,_,j])=>{D.value&&(O&&!le(G)?z?It.show(D.value,G,{...j,id:z,type:_},!0):z=It.show(D.value,G,{...j,type:_},!0):It.hide(z))});let F=null;const W=()=>{F||!D.value||(F=new IntersectionObserver(O=>{let G=!1;for(let _ of O)if(_.intersectionRatio>0){G=!0,G&&t.emit("appear",_);break}G||t.emit("disappear")}),F.observe(D.value))},U=()=>{!F||!D.value||(F.unobserve(D.value),F=null)};return r.watch(()=>te(e.appearListen),O=>{O?W():U()}),r.onMounted(()=>{te(e.appearListen)&&W()}),r.onUnmounted(U),{classes:u,styles:f,mainClasses:p,hasLabel:S,labelClasses:w,labelStyles:x,labelStringClasses:R,contentClasses:q,contentStyles:N,contentRef:D,hasTip:y,mTip:T,mIcon:L,renderIcon:C,tipClasses:M,tipStyles:Y,hasFixedTip:k,fixedTipClasses:H}}}),co=["prop"],fo={key:0,class:"fox-item__tip--icon"},ho={class:"fox-item__tip--text"};function go(e,t,a,n,l,o){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),prop:e.prop},[r.createElementVNode("div",{class:r.normalizeClass(e.mainClasses)},[e.hasLabel?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.labelClasses),style:r.normalizeStyle(e.labelStyles)},[r.createElementVNode("div",{class:r.normalizeClass(e.labelStringClasses)},[r.renderSlot(e.$slots,"label",{},()=>[r.createTextVNode(r.toDisplayString(e.label),1)])],2)],6)):r.createCommentVNode("",!0),r.createElementVNode("div",{ref:"contentRef",class:r.normalizeClass(e.contentClasses),style:r.normalizeStyle(e.contentStyles)},[r.renderSlot(e.$slots,"prepend"),r.renderSlot(e.$slots,"default"),r.renderSlot(e.$slots,"append"),e.hasFixedTip?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.fixedTipClasses)},[r.renderSlot(e.$slots,"fixedTip")],2)):r.createCommentVNode("",!0)],6)],2),r.createVNode(r.Transition,{name:"fox-item__animate"},{default:r.withCtx(()=>[e.hasTip?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.tipClasses),style:r.normalizeStyle(e.tipStyles)},[e.mIcon?(r.openBlock(),r.createElementBlock("div",fo,[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.renderIcon())))])):r.createCommentVNode("",!0),r.createElementVNode("div",ho,r.toDisplayString(e.mTip),1)],6)):r.createCommentVNode("",!0)]),_:1}),r.renderSlot(e.$slots,"hide")],14,co)}const de=Ee(uo,[["render",go]]);function mo(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(a,n){const l=Ve(),o=Tt();xt(!1);const s=r.computed(()=>o&&l?Ct(l,!1).value:null),i=e,u=r.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:a.span==="stretch"})),f=r.computed(()=>{const c={},d=o&&l?Et(l,!1):null;if(s.value&&d)if(s.value.type==="grid"){const S=kt(d,s.value,a.span,a.offset);Object.assign(c,S)}else if(s.value.type==="flow"){const S=Nt(d,s.value,a.span,a.offset,a.width);Object.assign(c,S)}else return a.width&&(c.width=ce(a.width)),c;else a.width&&(c.width=ce(a.width));return c});return()=>{const c={class:u.value,style:f.value};return n.slots&&typeof n.slots.default=="function"?r.h("div",c,n.slots.default()):r.h("div",c)}}}}const{componentName:po,create:yo,scope:_u}=Q("slot-item"),ir=yo(mo(po));function bo(e,t){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean],required:!1,default:!1}},setup(a,n){const l=e,o=r.computed(()=>({[l]:!0,[`${l}__stretch`]:a.span==="stretch",[`${l}__${a.align}`]:!0})),s=Ve(),i=Tt();xt(!1);const u=r.computed(()=>{const f={};if(i&&s){const c=Ct(s,!1),d=Et(s,!1);if(c.value&&d)if(c.value.type==="grid"){const S=kt(d,c.value,a.span,a.offset);Object.assign(f,S)}else if(c.value.type==="flow"){const S=Nt(d,c.value,a.span,a.offset,a.width);Object.assign(f,S)}else a.width&&(f.width=ce(a.width))}else a.width&&(f.width=ce(a.width));return f});return()=>{const f=[];if(n.slots.default){const d=n.slots.default();if(a.divide)for(let S=0;S<d.length;S++){if(S>0){const b=r.h("div",{class:{[`${l}__divide`]:!0}});f.push(b)}f.push(d[S])}else Reflect.apply([].push,f,d)}const c={class:o.value,style:u.value};return r.h("div",c,f)}}}}const{componentName:So,create:wo,scope:Pu}=Q("row-item"),sr=wo(bo(So)),ur={modelValue:{type:[String,Boolean,Number,Object],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!1}};function $o(e,t,a){return{props:{...ie,...pe,...ur},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Te.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ne(n,"modelValue"),S=e,b=r.computed(()=>({[S]:!0,[`${S}__disabled`]:o.value,[`${S}__readonly`]:s.value})),$=v=>{d.value=v,i("update:modelValue",v),i("input",v)},p=v=>{i("change",v)};let w=ne(n,"hintText"),m=r.ref(!1);const x=v=>{let T=v.target.value;c.value=!0,le(w.value)||(m.value=!0),i("focus",T,v)},R=v=>{setTimeout(()=>{m.value&&(m.value=!1),c.value=!1},0);let T=v.target.value;n.maxLength&&T.length>Number(n.maxLength)&&(T=T.slice(0,Number(n.maxLength))),i("blur",T,v)},q=()=>{i("clear","")},N=r.ref(!1);let E=null;const I=()=>{n.showTooltip&&N.value===!1&&(E=setTimeout(()=>{N.value=!0},150))},V=()=>{E&&(clearTimeout(E),N.value=!1,E=null)},A=r.computed(()=>N.value||m.value),B=r.computed(()=>N.value?d.value:w.value),K=r.computed(()=>et(n.unit)>0),P=r.ref();return fe({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()},select:()=>{P?.value.select()}}),()=>{const y={...l.attrs,ref:P,class:b.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:s.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:q,onChange:p,onInput:$,onFocus:x,onBlur:R,onMouseover:I,onMouseleave:V},T={};l.slots.prepend&&(T.prepend=l.slots.prepend),l.slots.append&&(T.append=l.slots.append),l.slots.prefix&&(T.prefix=l.slots.prefix),l.slots.suffix?T.suffix=l.slots.suffix:K.value&&(T.suffix=()=>[n.unit]);const L=[],M=r.h(g.ElInput,y,T);L.push(M);const Y={default:()=>L};l.slots.default&&(Y.label=l.slots.default),l.slots.default&&(Y.fixedTip=l.slots.fixedTip);const k={...me(n,ur),hintText:B.value,hintVisible:A.value,prop:`${n.prop}_item`};return r.h(a,k,Y)}}}}const{componentName:vo,create:To,scope:xo}=Q("input-item"),cr=To($o(vo,xo,de));function je(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function We(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function fr(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function Co(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Eo=class{proxy;constructor(t){this.proxy=t}async load(t,a,n){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n);const l=Ce(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Re(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(a,n))}};function No(){const e=r.getCurrentInstance();return new Eo(e.proxy)}function dr(e,t,a){const n=je(e,t),l=je(e,a);if(n!==l)return!1;const o=We(e,t),s=We(e,a);return o===s}function hr(e,t,a,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];return t.forEach(o=>{for(let s of n){const i=fr(e,s);if(Array.isArray(i)&&i.length>0){const u=hr(e,o,a,i)??[];Reflect.apply([].push,l,u)}else{let u=!1;if(a==="text")u=je(e,s)===o;else if(a==="item")u=dr(e,s,o);else{let f=We(e,s);f==null&&(f=je(e,s)),u=f===o}if(u){l.push(s);break}}}}),l}function ko(e){return{text:e,value:e}}const gr={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},lazyLoad:{type:[Boolean,String],default:!1}};function Vo(e,t,a){return{props:{...ie,...pe,...gr},emits:["change","update:modelValue","blur","focus","clear","visible-change","remove-tag","selected"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Te.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(null),d=r.ref([]),S=(D,z,F,W=!0)=>{const U=hr(n,D,z,F);if(U===null){if(d.value===null||d.value.length===0)return;c.value=null,d.value=[],W&&(i("update:modelValue",null),i("change",null));return}let O=!0;if(U.length!==d.value.length)O=!1;else for(let G=0;G<U.length;G++){const _=U[G],j=d.value[G];if(!dr(n,_,j)){O=!1;break}}if(!O){d.value=U;let G=[],_=[];U.forEach(X=>{G.push(We(n,X)),n.valueType==="text"?_.push(je(n,X)):n.valueType==="item"?_.push(X):_.push(We(n,X))});let j;n.multiple?(c.value=G,j=r.toRaw(_)):(c.value=G[0]??"",j=r.toRaw(_[0]??"")),W&&(i("update:modelValue",j),i("change",j))}},b=r.ref(null),$=r.ref(null),p=r.computed(()=>$.value??b.value??[]),w=we(r.computed(()=>n.lazyLoad),"lazyLoad",ve.Near,D=>te(D)),m=No(),x=async(D,z)=>{if(D){const F=await m.load("select",D,z);if(F.length>0)if(typeof F[0]=="string"){let O=F.map(G=>ko(G));b.value=O}else b.value=F;else b.value=null}};r.watch([()=>n.source,()=>n.params],([D,z])=>{x(D,z)},{immediate:!w.value});let R=!1;const q=()=>{R||(R=!0,x(n.source,n.params))};r.watch([()=>p.value,()=>n.modelValue],([D,z])=>{S(z,n.valueType,D,!1)});let N=null,E=r.ref(!1);typeof n.remoteMethod=="function"&&(N=async D=>{if(D==null){$.value=null;return}E.value=!0;try{const z=await n.remoteMethod(D);z&&($.value=z)}catch(z){$.value=null,console.error(z)}E.value=!1});let I=null;typeof n.filterMethod=="function"&&(I=async D=>{if(D==null){$.value=null;return}E.value=!0;try{const z=await n.filterMethod(D,b.value);z&&($.value=z)}catch(z){$.value=null,console.error(z)}E.value=!1});const V=r.ref(!1),A=e,B=r.computed(()=>({[A]:!0})),K=D=>{n.allowCreate?(i("update:modelValue",D),i("change",D),c.value=D):S(D,"value",p.value,!0)};let P=ne(n,"hintText"),v=r.ref(!1);const y=D=>{let F=D.target.value;V.value=!0,le(P.value)||(v.value=!0),i("focus",F,D)},T=D=>{setTimeout(()=>{v.value&&(v.value=!1),V.value=!1},0);let F=D.target.value;n.maxLength&&F.length>Number(n.maxLength)&&(F=F.slice(0,Number(n.maxLength))),M.value||i("blur",F,D)},L=()=>{i("clear","")},M=r.ref(!1),Y=D=>{M.value=D,i("visible-change",D),D||i("selected")},C=D=>{i("remove-tag",D)},k=(D,z)=>{const F=[];return D.forEach((W,U)=>{const O=fr(n,W);if(Array.isArray(O)&&O.length>0){const G=k(O,z),_=je(n,W),X={key:`${_}_${U}`,label:_};F.push(r.h(g.ElOptionGroup,X,{default:()=>G}))}else{const G=We(n,W),_=je(n,W),j=Co(n,W),Z={key:`${G}_${U}`,label:_,disabled:j,value:G};if(typeof z=="function")F.push(r.h(g.ElOption,Z,{default:()=>z(W)}));else if(n.optionType==="item"){const ee={class:{"fox-select-item__option-left":!0}},ye=r.h("span",ee,[G]),se={class:{"fox-select-item__option-right":!0}},_e=r.h("span",se,[_]),ya=r.h("div",{class:{"fox-select-item__option":!0}},[ye,_e]);F.push(r.h(g.ElOption,Z,{default:()=>ya}))}else n.optionType==="value"?F.push(r.h(g.ElOption,Z,{default:()=>[G]})):F.push(r.h(g.ElOption,Z))}}),F},H=r.ref();return fe({focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()}}),()=>{const z={...l.attrs,ref:H,class:B.value,clearable:n.clearable,multiple:n.multiple,placeholder:f.placeholder.value,disabled:o.value||s.value,modelValue:c.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:L,onChange:K,onFocus:y,onBlur:T,onVisibleChange:Y,onRemoveTag:C};typeof N=="function"&&(z["remote-method"]=N,z.loading=E.value),typeof I=="function"&&(z["filter-method"]=I,z.loading=E.value);const F={};l.slots.prefix&&(F.prefix=l.slots.prefix),l.slots.empty&&(F.empty=l.slots.empty),l.slots.options?F.default=l.slots.options:F.default=()=>k(p.value,l.slots.option);const W=[],U=r.h(g.ElSelect,z,F);W.push(U);const O={default:()=>W};l.slots.default&&(O.label=l.slots.default),l.slots.fixedTip&&(O.fixedTip=l.slots.fixedTip);const _={...me(n,gr),hintText:P.value,hintVisible:v.value,prop:`${n.prop??l.attrs.name}_item`};return w.value&&(_["appear-listen"]=!0,_.onAppear=q),r.h(a,_,O)}}}}const{componentName:Oo,create:Io,scope:Ro}=Q("select-item"),mr=Io(Vo(Oo,Ro,de));var Oe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ie(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Oe,function(){var a=1e3,n=6e4,l=36e5,o="millisecond",s="second",i="minute",u="hour",f="day",c="week",d="month",S="quarter",b="year",$="date",p="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},R=function(v,y,T){var L=String(v);return!L||L.length>=y?v:""+Array(y+1-L.length).join(T)+v},q={s:R,z:function(v){var y=-v.utcOffset(),T=Math.abs(y),L=Math.floor(T/60),M=T%60;return(y<=0?"+":"-")+R(L,2,"0")+":"+R(M,2,"0")},m:function v(y,T){if(y.date()<T.date())return-v(T,y);var L=12*(T.year()-y.year())+(T.month()-y.month()),M=y.clone().add(L,d),Y=T-M<0,C=y.clone().add(L+(Y?-1:1),d);return+(-(L+(T-M)/(Y?M-C:C-M))||0)},a:function(v){return v<0?Math.ceil(v)||0:Math.floor(v)},p:function(v){return{M:d,y:b,w:c,d:f,D:$,h:u,m:i,s,ms:o,Q:S}[v]||String(v||"").toLowerCase().replace(/s$/,"")},u:function(v){return v===void 0}},N="en",E={};E[N]=x;var I=function(v){return v instanceof K},V=function v(y,T,L){var M;if(!y)return N;if(typeof y=="string"){var Y=y.toLowerCase();E[Y]&&(M=Y),T&&(E[Y]=T,M=Y);var C=y.split("-");if(!M&&C.length>1)return v(C[0])}else{var k=y.name;E[k]=y,M=k}return!L&&M&&(N=M),M||!L&&N},A=function(v,y){if(I(v))return v.clone();var T=typeof y=="object"?y:{};return T.date=v,T.args=arguments,new K(T)},B=q;B.l=V,B.i=I,B.w=function(v,y){return A(v,{locale:y.$L,utc:y.$u,x:y.$x,$offset:y.$offset})};var K=function(){function v(T){this.$L=V(T.locale,null,!0),this.parse(T)}var y=v.prototype;return y.parse=function(T){this.$d=function(L){var M=L.date,Y=L.utc;if(M===null)return new Date(NaN);if(B.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var C=M.match(w);if(C){var k=C[2]-1||0,H=(C[7]||"0").substring(0,3);return Y?new Date(Date.UTC(C[1],k,C[3]||1,C[4]||0,C[5]||0,C[6]||0,H)):new Date(C[1],k,C[3]||1,C[4]||0,C[5]||0,C[6]||0,H)}}return new Date(M)}(T),this.$x=T.x||{},this.init()},y.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},y.$utils=function(){return B},y.isValid=function(){return this.$d.toString()!==p},y.isSame=function(T,L){var M=A(T);return this.startOf(L)<=M&&M<=this.endOf(L)},y.isAfter=function(T,L){return A(T)<this.startOf(L)},y.isBefore=function(T,L){return this.endOf(L)<A(T)},y.$g=function(T,L,M){return B.u(T)?this[L]:this.set(M,T)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(T,L){var M=this,Y=!!B.u(L)||L,C=B.p(T),k=function(G,_){var j=B.w(M.$u?Date.UTC(M.$y,_,G):new Date(M.$y,_,G),M);return Y?j:j.endOf(f)},H=function(G,_){return B.w(M.toDate()[G].apply(M.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(_)),M)},D=this.$W,z=this.$M,F=this.$D,W="set"+(this.$u?"UTC":"");switch(C){case b:return Y?k(1,0):k(31,11);case d:return Y?k(1,z):k(0,z+1);case c:var U=this.$locale().weekStart||0,O=(D<U?D+7:D)-U;return k(Y?F-O:F+(6-O),z);case f:case $:return H(W+"Hours",0);case u:return H(W+"Minutes",1);case i:return H(W+"Seconds",2);case s:return H(W+"Milliseconds",3);default:return this.clone()}},y.endOf=function(T){return this.startOf(T,!1)},y.$set=function(T,L){var M,Y=B.p(T),C="set"+(this.$u?"UTC":""),k=(M={},M[f]=C+"Date",M[$]=C+"Date",M[d]=C+"Month",M[b]=C+"FullYear",M[u]=C+"Hours",M[i]=C+"Minutes",M[s]=C+"Seconds",M[o]=C+"Milliseconds",M)[Y],H=Y===f?this.$D+(L-this.$W):L;if(Y===d||Y===b){var D=this.clone().set($,1);D.$d[k](H),D.init(),this.$d=D.set($,Math.min(this.$D,D.daysInMonth())).$d}else k&&this.$d[k](H);return this.init(),this},y.set=function(T,L){return this.clone().$set(T,L)},y.get=function(T){return this[B.p(T)]()},y.add=function(T,L){var M,Y=this;T=Number(T);var C=B.p(L),k=function(z){var F=A(Y);return B.w(F.date(F.date()+Math.round(z*T)),Y)};if(C===d)return this.set(d,this.$M+T);if(C===b)return this.set(b,this.$y+T);if(C===f)return k(1);if(C===c)return k(7);var H=(M={},M[i]=n,M[u]=l,M[s]=a,M)[C]||1,D=this.$d.getTime()+T*H;return B.w(D,this)},y.subtract=function(T,L){return this.add(-1*T,L)},y.format=function(T){var L=this,M=this.$locale();if(!this.isValid())return M.invalidDate||p;var Y=T||"YYYY-MM-DDTHH:mm:ssZ",C=B.z(this),k=this.$H,H=this.$m,D=this.$M,z=M.weekdays,F=M.months,W=function(_,j,X,Z){return _&&(_[j]||_(L,Y))||X[j].slice(0,Z)},U=function(_){return B.s(k%12||12,_,"0")},O=M.meridiem||function(_,j,X){var Z=_<12?"AM":"PM";return X?Z.toLowerCase():Z},G={YY:String(this.$y).slice(-2),YYYY:this.$y,M:D+1,MM:B.s(D+1,2,"0"),MMM:W(M.monthsShort,D,F,3),MMMM:W(F,D),D:this.$D,DD:B.s(this.$D,2,"0"),d:String(this.$W),dd:W(M.weekdaysMin,this.$W,z,2),ddd:W(M.weekdaysShort,this.$W,z,3),dddd:z[this.$W],H:String(k),HH:B.s(k,2,"0"),h:U(1),hh:U(2),a:O(k,H,!0),A:O(k,H,!1),m:String(H),mm:B.s(H,2,"0"),s:String(this.$s),ss:B.s(this.$s,2,"0"),SSS:B.s(this.$ms,3,"0"),Z:C};return Y.replace(m,function(_,j){return j||G[_]||C.replace(":","")})},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(T,L,M){var Y,C=B.p(L),k=A(T),H=(k.utcOffset()-this.utcOffset())*n,D=this-k,z=B.m(this,k);return z=(Y={},Y[b]=z/12,Y[d]=z,Y[S]=z/3,Y[c]=(D-H)/6048e5,Y[f]=(D-H)/864e5,Y[u]=D/l,Y[i]=D/n,Y[s]=D/a,Y)[C]||D,M?z:B.a(z)},y.daysInMonth=function(){return this.endOf(d).$D},y.$locale=function(){return E[this.$L]},y.locale=function(T,L){if(!T)return this.$L;var M=this.clone(),Y=V(T,L,!0);return Y&&(M.$L=Y),M},y.clone=function(){return B.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},v}(),P=K.prototype;return A.prototype=P,[["$ms",o],["$s",s],["$m",i],["$H",u],["$W",f],["$M",d],["$y",b],["$D",$]].forEach(function(v){P[v[1]]=function(y){return this.$g(y,v[0],v[1])}}),A.extend=function(v,y){return v.$i||(v(y,K,A),v.$i=!0),A},A.locale=V,A.isDayjs=I,A.unix=function(v){return A(1e3*v)},A.en=E[N],A.Ls=E,A.p={},A})})(pr);var Ao=pr.exports;const Ne=Ie(Ao);var yr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Oe,function(){var a={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,l=/\d\d/,o=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},u=function(p){return(p=+p)+(p>68?1900:2e3)},f=function(p){return function(w){this[p]=+w}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=function(w){if(!w||w==="Z")return 0;var m=w.match(/([+-]|\d\d)/g),x=60*m[1]+(+m[2]||0);return x===0?0:m[0]==="+"?-x:x}(p)}],d=function(p){var w=i[p];return w&&(w.indexOf?w:w.s.concat(w.f))},S=function(p,w){var m,x=i.meridiem;if(x){for(var R=1;R<=24;R+=1)if(p.indexOf(x(R,0,w))>-1){m=R>12;break}}else m=p===(w?"pm":"PM");return m},b={A:[s,function(p){this.afternoon=S(p,!1)}],a:[s,function(p){this.afternoon=S(p,!0)}],S:[/\d/,function(p){this.milliseconds=100*+p}],SS:[l,function(p){this.milliseconds=10*+p}],SSS:[/\d{3}/,function(p){this.milliseconds=+p}],s:[o,f("seconds")],ss:[o,f("seconds")],m:[o,f("minutes")],mm:[o,f("minutes")],H:[o,f("hours")],h:[o,f("hours")],HH:[o,f("hours")],hh:[o,f("hours")],D:[o,f("day")],DD:[l,f("day")],Do:[s,function(p){var w=i.ordinal,m=p.match(/\d+/);if(this.day=m[0],w)for(var x=1;x<=31;x+=1)w(x).replace(/\[|\]/g,"")===p&&(this.day=x)}],M:[o,f("month")],MM:[l,f("month")],MMM:[s,function(p){var w=d("months"),m=(d("monthsShort")||w.map(function(x){return x.slice(0,3)})).indexOf(p)+1;if(m<1)throw new Error;this.month=m%12||m}],MMMM:[s,function(p){var w=d("months").indexOf(p)+1;if(w<1)throw new Error;this.month=w%12||w}],Y:[/[+-]?\d+/,f("year")],YY:[l,function(p){this.year=u(p)}],YYYY:[/\d{4}/,f("year")],Z:c,ZZ:c};function $(p){var w,m;w=p,m=i&&i.formats;for(var x=(p=w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(A,B,K){var P=K&&K.toUpperCase();return B||m[K]||a[K]||m[P].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,y,T){return y||T.slice(1)})})).match(n),R=x.length,q=0;q<R;q+=1){var N=x[q],E=b[N],I=E&&E[0],V=E&&E[1];x[q]=V?{regex:I,parser:V}:N.replace(/^\[|\]$/g,"")}return function(A){for(var B={},K=0,P=0;K<R;K+=1){var v=x[K];if(typeof v=="string")P+=v.length;else{var y=v.regex,T=v.parser,L=A.slice(P),M=y.exec(L)[0];T.call(B,M),A=A.replace(M,"")}}return function(Y){var C=Y.afternoon;if(C!==void 0){var k=Y.hours;C?k<12&&(Y.hours+=12):k===12&&(Y.hours=0),delete Y.afternoon}}(B),B}}return function(p,w,m){m.p.customParseFormat=!0,p&&p.parseTwoDigitYear&&(u=p.parseTwoDigitYear);var x=w.prototype,R=x.parse;x.parse=function(q){var N=q.date,E=q.utc,I=q.args;this.$u=E;var V=I[1];if(typeof V=="string"){var A=I[2]===!0,B=I[3]===!0,K=A||B,P=I[2];B&&(P=I[2]),i=this.$locale(),!A&&P&&(i=m.Ls[P]),this.$d=function(L,M,Y){try{if(["x","X"].indexOf(M)>-1)return new Date((M==="X"?1e3:1)*L);var C=$(M)(L),k=C.year,H=C.month,D=C.day,z=C.hours,F=C.minutes,W=C.seconds,U=C.milliseconds,O=C.zone,G=new Date,_=D||(k||H?1:G.getDate()),j=k||G.getFullYear(),X=0;k&&!H||(X=H>0?H-1:G.getMonth());var Z=z||0,ee=F||0,ye=W||0,se=U||0;return O?new Date(Date.UTC(j,X,_,Z,ee,ye,se+60*O.offset*1e3)):Y?new Date(Date.UTC(j,X,_,Z,ee,ye,se)):new Date(j,X,_,Z,ee,ye,se)}catch{return new Date("")}}(N,V,E),this.init(),P&&P!==!0&&(this.$L=this.locale(P).$L),K&&N!=this.format(V)&&(this.$d=new Date("")),i={}}else if(V instanceof Array)for(var v=V.length,y=1;y<=v;y+=1){I[1]=V[y-1];var T=m.apply(this,I);if(T.isValid()){this.$d=T.$d,this.$L=T.$L,this.init();break}y===v&&(this.$d=new Date(""))}else R.call(this,q)}}})})(yr);var Do=yr.exports;const Bo=Ie(Do);var br={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Oe,function(){return function(a,n,l){var o=n.prototype,s=o.format;l.en.ordinal=function(i){var u=["th","st","nd","rd"],f=i%100;return"["+i+(u[(f-20)%10]||u[f]||u[0])+"]"},o.format=function(i){var u=this,f=this.$locale();if(!this.isValid())return s.bind(this)(i);var c=this.$utils(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(S){switch(S){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return f.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return f.ordinal(u.week(),"W");case"w":case"ww":return c.s(u.week(),S==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),S==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),S==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return S}});return s.bind(this)(d)}}})})(br);var Fo=br.exports;const qo=Ie(Fo);var Sr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Oe,function(){return function(a,n,l){var o=n.prototype,s=function(d){return d&&(d.indexOf?d:d.s)},i=function(d,S,b,$,p){var w=d.name?d:d.$locale(),m=s(w[S]),x=s(w[b]),R=m||x.map(function(N){return N.slice(0,$)});if(!p)return R;var q=w.weekStart;return R.map(function(N,E){return R[(E+(q||0))%7]})},u=function(){return l.Ls[l.locale()]},f=function(d,S){return d.formats[S]||function(b){return b.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function($,p,w){return p||w.slice(1)})}(d.formats[S.toUpperCase()])},c=function(){var d=this;return{months:function(S){return S?S.format("MMMM"):i(d,"months")},monthsShort:function(S){return S?S.format("MMM"):i(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(S){return S?S.format("dddd"):i(d,"weekdays")},weekdaysMin:function(S){return S?S.format("dd"):i(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(S){return S?S.format("ddd"):i(d,"weekdaysShort","weekdays",3)},longDateFormat:function(S){return f(d.$locale(),S)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return c.bind(this)()},l.localeData=function(){var d=u();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return l.weekdays()},weekdaysShort:function(){return l.weekdaysShort()},weekdaysMin:function(){return l.weekdaysMin()},months:function(){return l.months()},monthsShort:function(){return l.monthsShort()},longDateFormat:function(S){return f(d,S)},meridiem:d.meridiem,ordinal:d.ordinal}},l.months=function(){return i(u(),"months")},l.monthsShort=function(){return i(u(),"monthsShort","months",3)},l.weekdays=function(d){return i(u(),"weekdays",null,null,d)},l.weekdaysShort=function(d){return i(u(),"weekdaysShort","weekdays",3,d)},l.weekdaysMin=function(d){return i(u(),"weekdaysMin","weekdays",2,d)}}})})(Sr);var Lo=Sr.exports;const jo=Ie(Lo);var wr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Oe,function(){var a="week",n="year";return function(l,o,s){var i=o.prototype;i.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=s(this).startOf(n).add(1,n).date(f),d=s(this).endOf(a);if(c.isBefore(d))return 1}var S=s(this).startOf(n).date(f).startOf(a).subtract(1,"millisecond"),b=this.diff(S,a,!0);return b<0?s(this).startOf("week").week():Math.ceil(b)},i.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(wr);var Mo=wr.exports;const _o=Ie(Mo);var $r={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Oe,function(){return function(a,n){n.prototype.weekYear=function(){var l=this.month(),o=this.week(),s=this.year();return o===1&&l===11?s+1:l===0&&o>=52?s-1:s}}})})($r);var Po=$r.exports;const Ho=Ie(Po);var vr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Oe,function(){return function(a,n,l){n.prototype.dayOfYear=function(o){var s=Math.round((l(this).startOf("day")-l(this).startOf("year"))/864e5)+1;return o==null?s:this.add(o-s,"day")}}})})(vr);var zo=vr.exports;const Ko=Ie(zo);var Tr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Oe,function(){return function(a,n){n.prototype.isSameOrAfter=function(l,o){return this.isSame(l,o)||this.isAfter(l,o)}}})})(Tr);var Wo=Tr.exports;const Go=Ie(Wo);var xr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Oe,function(){return function(a,n){n.prototype.isSameOrBefore=function(l,o){return this.isSame(l,o)||this.isBefore(l,o)}}})})(xr);var Yo=xr.exports;const Uo=Ie(Yo);Ne.extend(jo),Ne.extend(qo),Ne.extend(Bo),Ne.extend(_o),Ne.extend(Ho),Ne.extend(Ko),Ne.extend(Go),Ne.extend(Uo);const ot={format(e,t){return Ne(e).format(t)},parser(e,t){return Ne(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,a){const l=new Date(e+"/"+t+"/"+a).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][l]},getMonthPreDay(e,t){let n=new Date(e+"/"+t+"/01").getDay();return n==0&&(n=7),n},getMonthDays(e,t){return/^0/.test(t)&&(t=t.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][t]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,t){t=t||"-";const a=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),l=this.getNumTwoBit(e.getDate());return[a,n,l].join(t)},getDay(e,t){e=e||0;let a=t??new Date;const n=e*(1e3*60*60*24);return a=new Date(a.getTime()+n),this.date2Str(a)},compareDate(e,t){let a;typeof e=="string"?a=new Date(e.replace("-","/").replace("-","/")):a=e;let n;return typeof t=="string"?n=new Date(t.replace("-","/").replace("-","/")):n=t,!(a>=n)},isEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;let a;typeof e=="string"?a=new Date(e).getTime():a=e;let n;return typeof t=="string"?n=new Date(t).getTime():n=t,a==n},getMonthWeek:function(e,t,a,n=0){const l=new Date(Number(e),parseInt(t)-1,Number(a));let o=l.getDay(),s=l.getDate(),i=6-o;return n!==0&&(o=o==0?7:o,i=7-o),Math.ceil((s+i)/7)},getYearWeek:function(e,t,a,n=0){const l=new Date(Number(e),parseInt(t)-1,Number(a)),o=new Date(Number(e),0,1),s=Math.round((l.valueOf()-o.valueOf())/864e5);let i=l.getDay(),u=6-i;return n!==0&&(i=i==0?7:i,u=7-i),Math.ceil((s+u)/7)},getWeekDate:function(e,t,a,n=0){const l=new Date(Number(e),parseInt(t)-1,Number(a)),o=l.getTime();let s=l.getDay();if(n===0){const u=o-s*864e5,f=o+(6-s)*864e5,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}else{s=s==0?7:s;const i=24*60*60*1e3,u=o-(s-1)*i,f=o+(7-s)*i,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=ot.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=ot.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,a){const n=new Date(new Date(t).setDate(t.getDate()+a)),l=e.getTime(),o=n.getTime(),s=t.getTime();return o>s?l>=s&&l<=o:l>=o&&l<=s},inScope4Month(e,t,a){const n=new Date(new Date(t).setMonth(t.getMonth()+a)),l=e.getTime(),o=n.getTime(),s=t.getTime();return o>s?l>=s&&l<=o:l>=o&&l<=s}},Cr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},valueFormat:{type:[String],required:!1}},Er={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1}};function Xo(e,t,a){return{props:{...ie,...pe,...Cr,...Er},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Te.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ne(n,"modelValue"),S=e,b=r.computed(()=>({[`${S}__input`]:!0})),$=y=>{d.value=y,i("update:modelValue",y),i("change",y)};let p=ne(n,"hintText"),w=r.ref(!1);const m=y=>{let L=y.target.value;c.value=!0,le(p.value)||(w.value=!0),i("focus",L,y)},x=y=>{setTimeout(()=>{w.value&&(w.value=!1),c.value=!1},0);let L=y.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),i("blur",L,y)},R=()=>{i("clear","")},q=y=>{i("calendar-change",y)},N=(y,T,L)=>{i("panel-change",y,T,L)},E=y=>{i("visible-change",y)},I=we(r.computed(()=>n.longTermValue),"longTermText",ve.Near),V=we(r.computed(()=>n.longTermValue),"longTermValue",ve.Near);let A=null;const B=r.ref(te(n.longTerm)),K=y=>{if(B.value=y,i("update:longTerm",y),y){let T="";Array.isArray(V.value)?T=V.value.map((L,M)=>L||(Array.isArray(d.value)?d.value[M]:n.valueFormat?ot.format(new Date,n.valueFormat):new Date)):T=V.value,A=d.value,i("update:modelValue",T)}else i("update:modelValue",A)},P=te(n.isLongTerm);if(P){const y=()=>{if(B.value===!0){let T="";Array.isArray(V.value)?T=V.value.map((L,M)=>L||(Array.isArray(d.value)?d.value[M]:n.valueFormat?ot.format(new Date,n.valueFormat):new Date)):T=V.value,A=d.value,i("update:modelValue",T)}else Ae(V.value,d.value)&&(B.value=!0)};y(),r.watch([()=>n.longTerm],([T])=>{B.value!==T&&y()})}const v=r.ref();return fe({focus:()=>{v?.value.focus()},blur:()=>{v?.value.blur()},handleOpen:()=>{v?.value.handleOpen()},handleClose:()=>{v?.value.handleClose()}}),()=>{const T={...l.attrs,ref:v,class:b.value,placeholder:f.placeholder.value,disabled:o.value||B.value,readonly:s.value,modelValue:d.value,valueFormat:n.valueFormat,"onUpdate:modelValue":$,onClear:R,onFocus:m,onBlur:x,onCalendarChange:q,onPanelChange:N,onVisibleChange:E},L={};l.slots["range-separator"]&&(L["range-separator"]=l.slots["range-separator"]),l.slots.cell&&(L.default=l.slots.cell);const M=[],Y=r.h(g.ElDatePicker,T,L);M.push(Y);const C={default:()=>M};if(l.slots.default&&(C.label=l.slots.default),l.slots.fixedTip&&(C.fixedTip=l.slots.fixedTip),P){const z={label:I.value,disabled:s.value||o.value,modelValue:B.value,"onUpdate:modelValue":K},F=r.h(g.ElCheckbox,z),W=r.h("div",{class:{[`${S}__append`]:!0}},[F]);C.append=()=>W}const H={...me(n,Cr,Er),class:{[`${S}__wrapper`]:!0,"has-append":P},hintText:p.value,hintVisible:w.value,prop:`${n.prop}_item`};return r.h(a,H,C)}}}}const{componentName:Zo,create:Jo,scope:Qo}=Q("date-item"),Nr=Jo(Xo(Zo,Qo,de)),kr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ei(e,t,a){return{props:{...ie,...pe,...kr},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Te.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ne(n,"modelValue"),S=e,b=r.computed(()=>({[S]:!0})),$=E=>{d.value=E,i("update:modelValue",E),i("change",E)};let p=ne(n,"hintText"),w=r.ref(!1);const m=E=>{let V=E.target.value;c.value=!0,le(p.value)||(w.value=!0),i("focus",V,E)},x=E=>{setTimeout(()=>{w.value&&(w.value=!1),c.value=!1},0);let V=E.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),i("blur",V,E)},R=()=>{i("clear","")},q=E=>{i("visible-change",E)},N=r.ref();return fe({focus:()=>{N?.value.focus()},blur:()=>{N?.value.blur()},handleOpen:()=>{N?.value.handleOpen()},handleClose:()=>{N?.value.handleClose()}}),()=>{const I={...l.attrs,ref:N,class:b.value,placeholder:f.placeholder.value,disabled:o.value,readonly:s.value,modelValue:d.value,"onUpdate:modelValue":$,onClear:R,onFocus:m,onBlur:x,onVisibleChange:q},V={},A=[],B=r.h(g.ElTimePicker,I,V);A.push(B);const K={default:()=>A};l.slots.default&&(K.label=l.slots.default),l.slots.fixedTip&&(K.fixedTip=l.slots.fixedTip);const v={...me(n,kr),hintText:p.value,hintVisible:w.value,prop:`${n.prop}_item`};return r.h(a,v,K)}}}}const{componentName:ti,create:ni,scope:ri}=Q("time-item"),Vr=ni(ei(ti,ri,de)),Or={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ai(e,t,a){return{props:{...ie,...pe,...Or},emits:["change","update:modelValue","blur","focus","clear"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Te.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ne(n,"modelValue"),S=e,b=r.computed(()=>({[S]:!0})),$=N=>{d.value=N,i("update:modelValue",N),i("change",N)};let p=ne(n,"hintText"),w=r.ref(!1);const m=N=>{let I=N.target.value;c.value=!0,le(p.value)||(w.value=!0),i("focus",I,N)},x=N=>{setTimeout(()=>{w.value&&(w.value=!1),c.value=!1},0);let I=N.target.value;n.maxLength&&I.length>Number(n.maxLength)&&(I=I.slice(0,Number(n.maxLength))),i("blur",I,N)},R=()=>{i("clear","")},q=r.ref();return fe({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},handleOpen:()=>{q?.value.handleOpen()},handleClose:()=>{q?.value.handleClose()}}),()=>{const E={...l.attrs,ref:q,class:b.value,placeholder:f.placeholder.value,disabled:o.value,readonly:s.value,modelValue:d.value,"onUpdate:modelValue":$,onClear:R,onFocus:m,onBlur:x},I={},V=[],A=r.h(g.ElTimeSelect,E,I);V.push(A);const B={default:()=>V};l.slots.default&&(B.label=l.slots.default),l.slots.fixedTip&&(B.fixedTip=l.slots.fixedTip);const P={...me(n,Or),hintText:p.value,hintVisible:w.value,prop:`${n.prop}_item`};return r.h(a,P,B)}}}}const{componentName:li,create:oi,scope:ii}=Q("time-select-item"),Ir=oi(ai(li,ii,de));function Rr(e,t=0){let a=`${e}`,n=a.indexOf(".");if(n==-1)return a;let l=n;for(let o=a.length-1;o>=n;o--)if(a.charAt(o)!="0"){l=o;break}return l-n<t?l=n+t+1:l!=n&&(l+=1),l>a.length?a=a.padEnd(l,"0"):a=a.substring(0,l),a}function Ar(e,t,a=20){if(typeof t=="string"&&(t=ge(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=yn(`${e}`,`${t}`);return Rr(n)}else{let n=Mt(`${e}`,bn(`${t}`),20);return Rr(n)}}function si(e,t=-1,a=!1,n=3,l=","){return dt(e,t,a,n,l)}function Dr(e,t,a,n,l=!0){if(e=="")return"";if(e=Sn(e),t=ge(t),t==1)return e;if(n)e=Ar(e,t),a&&(e=="0"&&l?e=`${e}.`.padEnd(ge(a)+2,"0"):e=Mt(e,1,ge(a)));else{let o=-1*t;e=Ar(e,o)}return e}function Br(e,t){let a={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=te(t.minInclude),l=_t(e,t.min);if(n&&l==-1||!n&&(l==0||l==-1)){let o="请输入不小于 {0} 的数值";a.message=o.replace("{0}",t.min),a.minValid=!1}}if(t.max!=null){let n=te(t.maxInclude),l=_t(e,t.max);(n&&l==1||!n&&(l==0||l==1))&&(a.maxValid=!1)}return a}const Fr={modelValue:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},showTip:{type:[Boolean,String],required:!1,default:!0},min:{type:[Number,String],required:!1},minInclude:{type:[Boolean,String],required:!1,default:!0},max:{type:[Number,String],required:!1},maxInclude:{type:[Boolean,String],required:!1,default:!0},unit:{type:String,required:!1},rates:{type:[Number,String],required:!1,default:1},precision:{type:[Number,String],required:!1},integerLength:{type:[Number,String],required:!1,default:-1},decimalLength:{type:[Number,String],required:!1,default:2},autoPadding:{type:Boolean,required:!1,default:!0},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},placeholder:{type:String,required:!1,default:""},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function ui(e,t,a){return{props:{...ie,...pe,...Fr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),u=r.ref(!1),f=ne(n,"modelValue"),c=r.ref("");r.watch([()=>f.value,()=>n.rates,()=>n.precision],([v,y,T])=>{if(le(v)){c.value="";return}const L=Dr(v,y,T,!1);c.value!==L&&(c.value=L)},{immediate:!0});const d=r.computed(()=>{let v="";return u.value&&(v=c.value),v}),{t:S}=Te.useFoxI18n(t),b=r.computed(()=>{let v=n.placeholder??"";return!u.value&&!le(c.value)?v=si(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):v=S(["placeholder",v]),v}),$=e,p=r.computed(()=>({[$]:!0,[`${$}__disabled`]:o.value,[`${$}__placeholder`]:c.value.length>0})),w=we(r.computed(()=>n.textAlign),"textAlign");r.computed(()=>u.value?{textAlign:"left"}:{textAlign:w.value??"right"});const m=r.ref(""),x=r.computed(()=>{let v=m.value;return le(v)&&(v=n.errorTip??""),v}),R=r.ref(""),q=r.ref(!1),N=(v,y)=>{if(v=`${v}`,le(v)){c.value="",f.value="",y.forEach(T=>{i(T,"")}),te(n.showTip)&&q.value&&(q.value=!1);return}if(v.length>=2){let T=v;if(T.charAt(0)=="-"&&(T=T.substring(1)),T.length>=2&&T.charAt(0)=="0"&&T.charAt(1)!="."){r.triggerRef(c);return}}if(v!="-"){if(!Nn(v)){r.triggerRef(c);return}if(n.integerLength!=-1&&kn(v)>Number(n.integerLength)){r.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&Vn(v)>Number(n.decimalLength)){r.triggerRef(c);return}let T=Br(v,n);if(T.maxValid===!1){m.value=T.message,r.triggerRef(c);return}}else if(n.min!=null&&ge(n.min)>=0){r.triggerRef(c);return}R.value=v,te(n.showTip)&&(q.value=v.length>0),c.value=v,f.value=Dr(v,n.rates,n.precision,!0),y.forEach(T=>{i(T,f.value)})},E=v=>{N(v,["update:modelValue","input"])},I=v=>{N(v,["update:modelValue","change"])},V=v=>{if(u.value=!0,te(n.showTip)){let y=c.value;le(y)&&(y=n.hintText),le(y)||(R.value=y,q.value=!0)}m.value="",i("focus",f.value,v)},A=v=>{if(setTimeout(()=>{u.value=!1,te(n.showTip)&&q.value===!0&&(q.value=!1)},0),!le(c.value)){let y=Br(c.value,n);if(y.minValid===!1||y.maxValid===!1){m.value=y.message;return}}i("update:modelValue",f.value,v),i("blur",f.value,v)},B=()=>{i("clear","")},K=r.computed(()=>et(n.unit)>0),P=r.ref();return fe({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()},select:()=>{P?.value.select()}}),()=>{const y={...l.attrs,ref:P,class:p.value,type:"digit",maxlength:n.maxLength,placeholder:b.value,clearable:n.clearable,disabled:o.value,readonly:s.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:B,onInput:E,onChange:I,onFocus:V,onBlur:A},T={};l.slots.prepend&&(T.prepend=l.slots.prepend),l.slots.append&&(T.append=l.slots.append),l.slots.prefix&&(T.prefix=l.slots.prefix),l.slots.suffix?T.suffix=l.slots.suffix:K.value&&(T.suffix=()=>[n.unit]);const L=[],M=r.h(g.ElInput,y,T);L.push(M);const Y={default:()=>L};l.slots.default&&(Y.label=l.slots.default),l.slots.fixedTip&&(Y.fixedTip=l.slots.fixedTip);const k={...me(n,Fr),errorTip:x.value,hintText:R.value,hintVisible:q.value,hintType:"number",prop:`${n.prop}_item`};return r.h(a,k,Y)}}}}const{componentName:ci,create:fi,scope:di}=Q("money-item"),qr=fi(ui(ci,di,de)),Lr={modelValue:{type:[String,Number],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function hi(e,t,a){return{props:{...ie,...pe,...Lr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Te.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ne(n,"modelValue"),S=e,b=r.computed(()=>({[S]:!0,[`${S}__append`]:E.value})),$=r.computed(()=>({[`${S}__unit`]:!0})),p=V=>{d.value=V,i("update:modelValue",V),i("input",V)},w=V=>{i("change",V)};let m=ne(n,"hintText"),x=r.ref(!1);const R=V=>{let B=V.target.value;c.value=!0,le(m.value)||(x.value=!0),i("focus",B,V)},q=V=>{setTimeout(()=>{x.value&&(x.value=!1),c.value=!1},0);let B=V.target.value;n.maxLength&&B.length>Number(n.maxLength)&&(B=B.slice(0,Number(n.maxLength))),i("blur",B,V)},N=()=>{i("clear","")},E=r.computed(()=>et(n.unit)>0),I=r.ref();return fe({focus:()=>{I?.value.focus()},blur:()=>{I?.value.blur()}}),()=>{const A={...l.attrs,ref:I,class:b.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:s.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:N,onChange:w,onInput:p,onFocus:R,onBlur:q},B={},K=[],P=r.h(g.ElInputNumber,A,B);K.push(P);const v={default:()=>K};l.slots.default&&(v.label=l.slots.default),l.slots.fixedTip&&(v.fixedTip=l.slots.fixedTip);const T={...me(n,Lr),hintText:m.value,hintVisible:x.value,prop:`${n.prop}_item`};if(l.slots.append)v.append=l.slots.append;else if(E.value){const M={class:$.value},Y=r.h("div",M,[n.unit]);v.append=()=>Y}return r.h(a,T,v)}}}}const{componentName:gi,create:mi,scope:pi}=Q("input-number-item"),jr=mi(hi(gi,pi,de));function Ge(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Me(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function yi(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let bi=class{proxy;constructor(t){this.proxy=t}async load(t,a,n,l){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n,l);const o=Ce(this.proxy,t);return o===null?(console.error(`${t} component not found api function`),[]):(Re(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await o(a,n,l))}};function Si(){const e=r.getCurrentInstance();return new bi(e.proxy)}function sn(e,t,a){const n=Ge(e,t),l=Ge(e,a);if(n!==l)return!1;const o=Me(e,t),s=Me(e,a);return o===s}function Mr(e,t,a,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];let o=n;for(let s=0;Array.isArray(o)&&s<t.length;s++){const i=t[s];if(Array.isArray(i)){const u=Mr(e,i,a,n);l.push(u)}else{let u=!1;for(let f of o){if(a==="text")u=Ge(e,f)===i;else if(a==="item")u=sn(e,f,i);else{let c=Me(e,f);c==null&&(c=Ge(e,f)),u=c===i}if(u){l.push(f),o=yi(e,f);break}}if(!u)break}}return l}function wi(e){return{text:e,value:e}}const _r={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},lazyLoad:{type:[Boolean,String],default:!1},lazy:{type:[Boolean],default:!1},leafKey:{type:[String],default:"leaf"}};function $i(e,t,a){return{props:{...ie,...pe,..._r},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Te.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(null),d=r.ref([]),S=(k,H,D,z=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(c.value===k)return;c.value=k;const U=r.toRaw(k);if(z){const O=C?.value.getCheckedNodes();if(O)if(n.multiple){const G=[];O.forEach(_=>{const X=(_.pathNodes??[]).map(Z=>Z.data);G.push(X)}),i("update:pathNodes",G)}else{const _=(O[0]?.pathNodes??[]).map(j=>j.data);i("update:pathNodes",_)}i("update:modelValue",U),i("change",U)}}const F=Mr(n,k,H,D);if(F===null){if(d.value.length===0||d.value===null)return;d.value=[],c.value=null,z&&(i("update:pathNodes",[]),i("update:modelValue",null),i("change",null));return}let W=!0;if(F.length!==d.value.length)W=!1;else for(let U=0;U<F.length;U++){const O=F[U],G=d.value[U];if(Array.isArray(O)){if(!Array.isArray(G)||O.length!==G.length)W=!1;else for(let _=0;_<O.length;_++)if(!sn(n,O[_],G[_])){W=!1;break}}else sn(n,O,G)||(W=!1);if(!W)break}if(!W){d.value=F;let U=[],O=[];F.forEach(_=>{if(Array.isArray(_)){let j=[],X=[];for(let Z of _)j.push(Me(n,Z)),n.valueType==="text"?X.push(Ge(n,Z)):n.valueType==="item"?X.push(Z):X.push(Me(n,Z));U.push(j),O.push(X)}else U.push(Me(n,_)),n.valueType==="text"?O.push(Ge(n,_)):n.valueType==="item"?O.push(_):O.push(Me(n,_))}),c.value=U;const G=r.toRaw(O);z&&(i("update:pathNodes",F),i("update:modelValue",G),i("change",G))}},b=r.ref([]),$=we(r.computed(()=>n.lazyLoad),"lazyLoad",ve.Near,k=>te(k)),p=Si(),w=async(k,H)=>{if(k){const D=await p.load("cascader",k,H);if(D.length>0)if(typeof D[0]=="string"){let W=D.map(U=>wi(U));b.value=W}else b.value=D}};r.watch([()=>n.source,()=>n.params],async([k,H])=>{w(k,H)},{immediate:!($.value||n.lazy)});let m=!1;const x=()=>{m||(m=!0,w(n.source,n.params))};r.watch([()=>b.value,()=>n.modelValue],([k,H])=>{S(H,n.valueType,k,!1)}),n.lazy&&S(n.modelValue,"value",[],!1);let R=null,q=r.ref(!1);typeof n.remoteMethod=="function"&&(R=async k=>{if(k!=null){q.value=!0;try{const H=await n.remoteMethod(k);b.value=H}catch(H){console.error(H)}q.value=!1}});const N=r.ref(!1),E=e,I=r.computed(()=>({[E]:!0})),V=r.computed(()=>{let k={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(k.multiple=!0),n.props&&Object.assign(k,n.props),n.lazy&&(k.lazy=!0,k.lazyLoad=async(H,D)=>{const z=await p.load("cascader",n.source,H,!0);D(z)}),k}),A=k=>{n.allowCreate?(i("update:modelValue",k),i("change",k),c.value=k):S(k,"value",b.value,!0)};let B=ne(n,"hintText"),K=r.ref(!1);const P=k=>{let D=k.target.value;N.value=!0,le(B.value)||(K.value=!0),i("focus",D,k)},v=k=>{setTimeout(()=>{K.value&&(K.value=!1),N.value=!1},0);let D=k.target.value;n.maxLength&&D.length>Number(n.maxLength)&&(D=D.slice(0,Number(n.maxLength))),T.value||i("blur",D,k)},y=()=>{i("clear","")},T=r.ref(!1),L=k=>{T.value=k,i("visible-change",k),k||i("selected")},M=k=>{i("remove-tag",k)},Y=k=>{i("expand-change",k)},C=r.ref();return fe({focus:()=>{C?.value.focus()},blur:()=>{C?.value.blur()},getCheckedNodes:()=>C?.value.getCheckedNodes()}),()=>{const H={...l.attrs,ref:C,class:I.value,props:V.value,clearable:n.clearable,placeholder:f.placeholder.value,disabled:o.value||s.value,options:b.value,modelValue:c.value,onClear:y,onChange:A,onFocus:P,onBlur:v,onVisibleChange:L,onRemoveTag:M,expandChange:Y};typeof R=="function"&&(H["remote-method"]=R,H.loading=q.value);const D={};l.slots.option&&(D.default=l.slots.option),l.slots.empty&&(D.empty=l.slots.empty);const z=[],F=r.h(g.ElCascader,H,D);z.push(F);const W={default:()=>z};l.slots.default&&(W.label=l.slots.default),l.slots.fixedTip&&(W.fixedTip=l.slots.fixedTip);const O={...me(n,_r),hintText:B.value,hintVisible:K.value,prop:`${n.prop??l.attrs.name}_item`};return $.value&&!n.lazy&&(O["appear-listen"]=!0,O.onAppear=x),r.h(a,O,W)}}}}const{componentName:vi,create:Ti,scope:xi}=Q("cascader-item"),Pr=Ti($i(vi,xi,de)),Hr={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1}};function Ci(e,t,a){return{props:{...ie,...pe,...Hr},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Te.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ne(n,"modelValue"),S=e,b=r.computed(()=>({[S]:!0})),$=E=>{d.value=E,i("update:modelValue",E),i("input",E)},p=E=>{i("change",E)};let w=ne(n,"hintText"),m=r.ref(!1);const x=E=>{let V=E.target.value;c.value=!0,le(w.value)||(m.value=!0),i("focus",V,E)},R=E=>{setTimeout(()=>{m.value&&(m.value=!1),c.value=!1},0);let V=E.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),i("blur",V,E)},q=()=>{i("clear","")},N=r.ref();return fe({focus:()=>{N?.value.focus()},blur:()=>{N?.value.blur()},select:()=>{N?.value.select()}}),()=>{const I={...l.attrs,ref:N,class:b.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:s.value,modelValue:d.value,onClear:q,onChange:p,onInput:$,onFocus:x,onBlur:R},V={};l.slots.prepend&&(V.prepend=l.slots.prepend),l.slots.append&&(V.append=l.slots.append),l.slots.prefix&&(V.prefix=l.slots.prefix),l.slots.suffix&&(V.suffix=l.slots.suffix),l.slots.option&&(V.default=l.slots.option);const A=[],B=r.h(g.ElAutocomplete,I,V);A.push(B);const K={default:()=>A};l.slots.default&&(K.label=l.slots.default),l.slots.fixedTip&&(K.fixedTip=l.slots.fixedTip);const v={...me(n,Hr),hintText:w.value,hintVisible:m.value,prop:`${n.prop}_item`};return r.h(a,v,K)}}}}const{componentName:Ei,create:Ni,scope:ki}=Q("autocomplete-item"),zr=Ni(Ci(Ei,ki,de));function Vi(e,t,a,n,l){let o=[];Array.isArray(e)?o=e:o=[e];const s=[],i=t[0];if(Array.isArray(i))for(let u=0;u<t.length&&u<o.length;u++){let f=t[u],c=o[u];const d=f.find(S=>S[n]===c);if(!d)break;s.push(d[a])}else{let u=t;for(let f=0;u&&f<o.length;f++){let c=o[f],d=u.find(S=>S[n]===c);if(!d)break;s.push(d[a]),u=d[l]}}return s}let Oi=class{proxy;constructor(t){this.proxy=t}async load(t,a,n){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n);const l=Ce(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Re(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(a,n))}};function Ii(){const e=r.getCurrentInstance();return new Oi(e.proxy)}const Kr={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1},emptyTag:{type:[String],required:!1,default:"span"},emptyClass:{type:[String],required:!1}};function Ri(e,t){return{props:{...Kr},setup(a,{attrs:n,slots:l}){const o=Ii(),s=r.ref([]);r.watch([()=>a.source,()=>a.params],async([f,c])=>{s.value=await o.load(a.sourceType,f,c)},{immediate:!0});const i=r.computed(()=>{if(!Array.isArray(s.value)||s.value.length===0)return"";let f=Vi(a.modelValue,s.value,a.textKey,a.valueKey,a.childrenKey);return f.length==0?a.emptyText??"":f.length===1?a.optionType=="item"?`${a.modelValue}${a.separator}${f[0]}`:f[0]:f.join(a.separator)}),u=a.resolveTag?r.resolveComponent(a.tag):a.tag;return()=>{const f={...n};return l.default?l.default({text:i.value,value:a.modelValue}):a.resolveTag?a.emptyText!==void 0&&a.emptyText===i.value?r.h(a.emptyTag??"span",{...n,class:a.emptyClass},i.value):r.h(u,f,{default:()=>i.value}):r.h(u,f,i.value)}}}}const{componentName:Hu,create:Ai,scope:zu}=Q("mapping"),Rt=Ai(Ri());function Di(e,t){let a=t.split("."),n=e;for(let l=0;l<a.length;l++){let o=a[l],s=0,i=o.indexOf("["),u=i==-1?-1:o.indexOf("]",i);for(;i!==-1&&u!==-1;){let f=o.substring(i+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(s==0){let d=o.substring(0,i);n=n[d][c]}else n=n[c];s++}i=o.indexOf("[",u),u=i==-1?-1:o.indexOf("]",i)}s===0&&(n=n[o])}return n}function Bi(e,t){return{props:{...Kr},setup(a,{attrs:n,slots:l}){return()=>{const o={default:s=>{const i=Di(s.row,s.column.property);return l.default?r.h(Rt,{...a,modelValue:i},{default:l.default}):r.h(Rt,{...a,modelValue:i})}};return r.h(g.ElTableColumn,{...n},o)}}}}const{componentName:Ku,create:Fi,scope:Wu}=Q("table-mapping-column"),Wr=Fi(Bi()),qi=Symbol.for("TableStateKey");function Gr(e,t){let a=t.split("."),n=e;for(let l=0;l<a.length;l++){let o=a[l],s=0,i=o.indexOf("["),u=i==-1?-1:o.indexOf("]",i);for(;i!==-1&&u!==-1;){let f=o.substring(i+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(s==0){let d=o.substring(0,i);n=n[d][c]}else n=n[c];s++}i=o.indexOf("[",u),u=i==-1?-1:o.indexOf("]",i)}s===0&&(n=n[o])}return n}function Li(e,t){return{props:{},setup(a,{attrs:n}){const l=r.inject(qi,{});return()=>{const o=l.currentRow?l.currentRow.value:null,s={default:i=>{const u=Gr(i.row,i.column.property),f=o?Gr(o,i.column.property):null,c=u===f,d={class:{"el-radio__input":!0,"is-checked":c}},S=r.h("span",d,[r.h("span",{class:{"el-radio__inner":!0}})]),b={class:{"el-radio":!0,"is-checked":c}};return r.h("label",b,[S])}};return r.h(g.ElTableColumn,{...n},s)}}}}const{componentName:Gu,create:ji,scope:Yu}=Q("table-radio-column"),Yr=ji(Li()),Mi={},_i={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"},Pi=[r.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function Hi(e,t){return r.openBlock(),r.createElementBlock("svg",_i,Pi)}const zi=Ee(Mi,[["render",Hi]]),{componentName:Xu,create:Ki,scope:Zu}=Q("table-setting"),Wi={tableRef:{type:Object,required:!0},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}},Gi=Ki({components:{FoxPopover:g.ElPopover,FoxCheckbox:g.ElCheckbox,FoxCheckboxGroup:g.ElCheckboxGroup,FoxButton:g.ElButton,FoxIcon:g.ElIcon,DragIcon:zi,Download:Fe.Download,RefreshLeft:Fe.RefreshLeft},props:{...Wi},emits:["update:modelValue","change","close"],setup(e,{emit:t,attrs:a}){let n=[];const l=r.ref([]),o=r.computed(()=>l.value.filter(C=>C.label===""||C.type?!1:C.fixed===""||C.fixed===!0||C.fixed==="left")),s=r.computed(()=>l.value.filter(C=>C.label===""||C.type?!1:C.fixed==="right")),i=r.computed(()=>l.value.filter(C=>!(C.label===""||C.type||C.fixed!==void 0))),u=r.computed(()=>(o.value.length>0||s.value.length>0)&&i.value.length>0),f=r.computed(()=>o.value.length>0),c=r.computed(()=>s.value.length>0),d=C=>C.length>1,S=C=>{const k=[];l.value=C.map((D,z)=>(!(D.label===""||D.type)&&D.visible!==!1&&k.push(D.prop),{...D,sortIndex:z})),i.value.length+o.value.length+s.value.length===k.length?x.value=!0:k.length>0&&(R.value=!0),E.value=k},b=C=>C?C.type?C.type:C.label?C.prop:"":"",$=(C,k)=>{if(C.length!==k.length)return!1;const H=C.map(D=>b(D));for(let D of k){const z=b(D);if(H.indexOf(z)===-1)return!1}return!0},p=C=>{if(!C){const k=e.tableRef.getColumnSetting(),H=k.srcColumnPropertyList;n=H.map((D,z)=>({...D,sortIndex:z})),C=k.columnPropertyList,C&&C.length>0&&$(H,C)||(C=H)}S(C)},w=()=>{e.tableRef.setColumnSetting(l.value)},m=r.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),x=r.ref(!1),R=r.ref(!1),q=C=>{const k=[];l.value.forEach(D=>{C&&!(D.label===""||D.type)&&k.push(D.prop),D.visible=C}),x.value=!1,R.value=!1,i.value.length+o.value.length+s.value.length===k.length?x.value=!0:k.length>0&&(R.value=!0),E.value=k,w()},N=()=>{p(n),w()},E=r.ref([]),I=C=>{l.value.forEach(H=>{if(H.label===""||H.type)return;const D=C.indexOf(H.prop)!==-1;H.visible=D}),x.value=!1,R.value=!1;const k=i.value.length+o.value.length+s.value.length;C.length===k?x.value=!0:C.length>0&&(R.value=!0),w()},V=()=>{p()};r.onMounted(()=>{setTimeout(()=>{p()},50)});const A={currentRow:null,index:null,roleType:null},B=C=>C?C.dataset&&C.dataset.role==="row"?C:C.tagName.toLowerCase()!=="body"?(C=C.parentElement,B(C)):null:null;return{attrs:a,leftFixedColumns:o,rightFixedColumns:s,unFixedColumns:i,isShowNotFixedTitle:u,isShowLeftFixedTitle:f,isShowRightFixedTitle:c,isDraggble:d,isCheckAll:x,isIndeterminate:R,handleCheckAllChange:q,handleReset:N,checkedValue:E,handleCheckChange:I,onShow:V,onDragStart:C=>{const k=C.currentTarget;k&&k.dataset&&(A.roleType=k.dataset.roleType,A.index=k.dataset.index)},onDragEnd:C=>{A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null),A.index=null,A.roleType=null},onDragOver:C=>{const k=C.currentTarget;C.relatedTarget;const H=B(k);if(!H)return;const D=H.dataset&&H.dataset.roleType;A.roleType===D&&(C.preventDefault(),A.currentRow&&A.currentRow!==H&&A.currentRow.classList.remove("is-dragover"),H.classList.add("is-dragover"),A.currentRow=H)},onDragLeave:C=>{C.preventDefault(),A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null)},onDrop:C=>{debugger;const k=C.currentTarget,H=B(k);if(!H)return;const D=H.dataset&&H.dataset.roleType;if(A.roleType!==D)return;C.preventDefault();const z=Number(A.index),F=Number(H.dataset.index);if(z!==F){if(z<F){const W=l.value[z];l.value.splice(z,1),l.value.splice(F,0,W)}else{const W=l.value[z];l.value.splice(z,1),l.value.splice(F+1,0,W)}S(l.value),w()}},toLeftFixed:C=>{const k=l.value[C];k.fixed="left",w()},toRightFixed:C=>{const k=l.value[C];k.fixed="right",w()},toUnFixed:C=>{const k=l.value[C];k.fixed=void 0,w()},checkboxLabelStyle:m}}}),Yi={class:"fox-table-setting"},Ui={class:"fox-table-setting__header"},Xi={class:"fox-table-setting__body"},Zi={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Ji={key:0,class:"fox-table-setting__body-title"},Qi=["data-index","draggable"],es={class:"tools-item"},ts={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},ns={key:0,class:"fox-table-setting__body-title"},rs=["data-index","draggable"],as={class:"tools-item"},ls={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},os={key:0,class:"fox-table-setting__body-title"},is=["data-index","draggable"],ss={class:"tools-item"};function us(e,t,a,n,l,o){const s=r.resolveComponent("FoxCheckbox"),i=r.resolveComponent("FoxButton"),u=r.resolveComponent("DragIcon"),f=r.resolveComponent("RefreshLeft"),c=r.resolveComponent("FoxIcon"),d=r.resolveComponent("fox-tooltip"),S=r.resolveComponent("Download"),b=r.resolveComponent("fox-checkbox"),$=r.resolveComponent("FoxCheckboxGroup"),p=r.resolveComponent("FoxPopover");return r.openBlock(),r.createBlock(p,r.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:r.withCtx(()=>[r.renderSlot(e.$slots,"default")]),default:r.withCtx(()=>[r.createElementVNode("div",Yi,[r.createElementVNode("div",Ui,[r.createVNode(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=w=>e.isCheckAll=w),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),r.createVNode(i,{onClick:e.handleReset,link:"",type:"primary"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),r.createElementVNode("div",Xi,[r.createVNode($,{modelValue:e.checkedValue,"onUpdate:modelValue":t[16]||(t[16]=w=>e.checkedValue=w),onChange:e.handleCheckChange},{default:r.withCtx(()=>[e.leftFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",Zi,[e.isShowLeftFixedTitle?(r.openBlock(),r.createElementBlock("div",Ji,r.toDisplayString(e.leftFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.leftFixedColumns,w=>(r.openBlock(),r.createElementBlock("div",{key:w.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":w.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[1]||(t[1]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[2]||(t[2]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[3]||(t[3]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[4]||(t[4]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[5]||(t[5]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.leftFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(s,{class:"checkbox-item",label:w.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(w.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",es,[r.createVNode(d,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:m=>e.toUnFixed(w.sortIndex)},{default:r.withCtx(()=>[r.createVNode(f)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.fixedRightText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:m=>e.toRightFixed(w.sortIndex)},{default:r.withCtx(()=>[r.createVNode(S)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Qi))),128))])):r.createCommentVNode("",!0),e.unFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",ts,[e.isShowNotFixedTitle?(r.openBlock(),r.createElementBlock("div",ns,r.toDisplayString(e.unFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.unFixedColumns,w=>(r.openBlock(),r.createElementBlock("div",{key:w.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":w.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[6]||(t[6]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[7]||(t[7]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[8]||(t[8]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[9]||(t[9]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[10]||(t[10]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.unFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(s,{class:"checkbox-item",label:w.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(w.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",as,[r.createVNode(d,{content:e.fixedLeftText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:m=>e.toLeftFixed(w.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(S)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.fixedRightText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:m=>e.toRightFixed(w.sortIndex)},{default:r.withCtx(()=>[r.createVNode(S)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,rs))),128))])):r.createCommentVNode("",!0),e.rightFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",ls,[e.isShowRightFixedTitle?(r.openBlock(),r.createElementBlock("div",os,r.toDisplayString(e.rightFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.rightFixedColumns,w=>(r.openBlock(),r.createElementBlock("div",{key:w.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":w.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[11]||(t[11]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[12]||(t[12]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[13]||(t[13]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[14]||(t[14]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[15]||(t[15]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.rightFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(b,{class:"checkbox-item",label:w.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(w.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",ss,[r.createVNode(d,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:m=>e.toUnFixed(w.sortIndex)},{default:r.withCtx(()=>[r.createVNode(f)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.fixedLeftText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:m=>e.toLeftFixed(w.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(S)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,is))),128))])):r.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const un=Ee(Gi,[["render",us]]);let cs=class{proxy;constructor(t){this.proxy=t}async load(t,a,n,l,o,s,i){if(Array.isArray(a)){let f=(n-1)*l,c=f+l;c>a.length&&(c=a.length);const d=a.slice(f,c);return{totalSize:a.length,page:d}}if(typeof a=="function")return await Reflect.apply(a,null,[n,l,o,s,i]);const u=Ce(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(Re(o)&&r.isReactive(o)&&(o=r.toRaw(o)),await Reflect.apply(u,null,[a,n,l,o,s,i]))}};function fs(){const e=r.getCurrentInstance();return new cs(e.proxy)}class ds{proxy;constructor(t){this.proxy=t}async load(t){let a=null;const n=Ce(this.proxy,"tableSetting");return typeof n=="function"&&(a=await Reflect.apply(n,null,["load",t])),a}save(t,a){const n=Ce(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,a])}remove(t){const a=Ce(this.proxy,"tableSetting");typeof a=="function"&&Reflect.apply(a,null,["remove",t])}}function hs(){const e=r.getCurrentInstance();return new ds(e.proxy)}const gs=Symbol.for("TableStateKey");function ms(e,t){let a=t.split("."),n=e;for(let l=0;l<a.length;l++){let o=a[l],s=0,i=o.indexOf("["),u=i==-1?-1:o.indexOf("]",i);for(;i!==-1&&u!==-1;){let f=o.substring(i+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(s==0){let d=o.substring(0,i);n=n[d][c]}else n=n[c];s++}i=o.indexOf("[",u),u=i==-1?-1:o.indexOf("]",i)}s===0&&(n=n[o])}return n}function cn(e,t){return e.filter(n=>{for(let l in t){const o=t[l],s=ms(n,l);if(o!==s)return!1}return!0})}const Ur={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},lazy:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]},rowClickSelectable:{type:[String,Boolean],required:!1,default:!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:!1},showSetting:{type:[Boolean],required:!1,default:!1},footerAlign:{type:[String],required:!1,default:"right"}},Xr={pageIndex:{type:[Number],required:!1,default:1},pageSize:{type:[Number],required:!1,default:10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:"right"},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},fn={popoverWidth:{type:[String,Number],required:!1,default:280},popoverPlacement:{type:[String],required:!1,default:"top-start"},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}};function ps(e,t,a){return{inheritAttrs:!1,props:{...ie,...pe,...Ur,...Xr,...fn},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,l){const{locale:o}=Te.useFoxI18n(t),{emitEvent:s}=ue({componentName:e,validateHandler:{getValue(...j){return R.value}}},n.prop??l.attrs.name),i=e,u=r.computed(()=>({[i]:!0})),f=r.computed(()=>({[`${i}__setting`]:!0})),c=r.computed(()=>({[`${i}__footer`]:!0,[`${i}__footer__${n.footerAlign}`]:!0})),d=r.computed(()=>({[`${i}__pagination`]:!0,[`${i}__pagination__${n.paginationAlign}`]:!0})),S=r.ref(n.pageIndex);r.watch(()=>n.pageIndex,j=>{S.value=j});const b=j=>{S.value=j,s("page-index-change",j)},$=r.ref(n.pageSize);r.watch(()=>n.pageSize,j=>{$.value=j});const p=j=>{$.value=j,s("page-size-change",j)},w=r.shallowRef({}),m=r.computed(()=>({...w.value,...n.params??{},...n.baseParams??{}})),x=r.ref(0),R=r.ref(),q=fs();let N=!0;const E=()=>Array.isArray(n.data)||typeof n.data=="function"?!0:te(n.autoLoad),I=we(r.computed(()=>n.lazyLoad),"lazyLoad",ve.Near,j=>te(j)),V=async(j,X,Z,ee)=>{try{const ye=await q.load("table",j,X,Z,ee,N,o.value);x.value=ye.totalSize,R.value=ye.page}catch(ye){console.error("[FoxUI] Load Table Data Fail",ye),x.value=0,R.value=[]}N=!1,setTimeout(()=>{s("loaded-data")},250)};r.watch([S,$],([j,X],[Z,ee])=>{X!==ee&&(S.value=1,j=1),V(n.data,j,X,m.value)}),r.watch([()=>n.data,m],([j,X],[Z,ee])=>{E()&&(j!==Z&&(N=!0),!(!Array.isArray(j)&&Ae(j,Z)&&Ae(X,ee))&&V(j,S.value,$.value,X))},{deep:!0});const A=(j={},X=!1)=>new Promise(Z=>{w.value=r.toRaw(j??{}),r.triggerRef(w),X||(S.value=n.pageIndex??1),r.nextTick(async()=>{await V(n.data,S.value,$.value,m.value),Z()})}),B=()=>{x.value=0,R.value=[]};let K=!1;const P=()=>{K||(K=!0,A())};E()&&!I.value&&A();const v=r.ref(null);r.provide(gs,{currentRow:v});const y=(j,X)=>{v.value=j,s("current-change",j,X)},T=(j,X,Z)=>{s("row-click",j,X,Z),te(n.rowClickSelectable)===!0&&_?.value.toggleRowSelection(j)},L=[],M=(j,X)=>{if(s("expand-change",j,X),te(n.uniqueExpansion))if(Array.isArray(X)&&X.length==0){const Z=L.length;L.splice(0,Z)}else{L.forEach(ee=>{ee!==j&&_?.value.toggleRowExpansion(ee,!1)});const Z=L.length;L.splice(0,Z,j)}},Y=l.attrs.id??n.prop??l.attrs.name,C=hs(),k=r.ref([]);let H=[];const D=()=>({srcColumnPropertyList:H.map(X=>({...X})),columnPropertyList:k.value}),z=j=>{k.value=[...j],W()},F=async()=>{const j=await C.load(Y);j&&(k.value=j)},W=()=>{C.save(Y,k.value)},U=()=>{C.remove(Y)};F();const O=j=>j?j.type?j.type:j.label?j.prop:"":"",G=r.computed(()=>{if(typeof l.slots.default=="function"){const j=l.slots.default(),X=new Map;if(H=[],j.forEach(Z=>{const ee=Z;if(!ee.props)return;const ye=O(ee.props);X.set(ye,Z);const se={label:"",prop:""};Object.assign(se,ee.props),H.push(se)}),k.value.length===H.length){const Z=[];for(let ee of k.value){const ye=O(ee),se=X.get(ye);if(!se)return j;if(ee.visible===!1)continue;const _e=r.cloneVNode(se);_e.props.fixed=ee.fixed,Z.push(_e)}return Z}return j}return[]}),_=r.ref();return fe({clearSelection:()=>_?.value.clearSelection(),getSelectionRows:()=>_?.value.getSelectionRows(),toggleRowSelection:(j,X)=>{_?.value.toggleRowSelection(j,X)},toggleRowSelectionByProp:(j,X)=>{if(!R.value)return;const Z=cn(R.value,j);Z.length!==0&&Z.forEach(ee=>{_?.value.toggleRowSelection(ee,X)})},toggleAllSelection:()=>{_?.value.toggleAllSelection()},toggleRowExpansion:(j,X)=>{_?.value.toggleRowExpansion(j,X)},toggleRowExpansionByProp:(j,X)=>{if(!R.value)return;const Z=cn(R.value,j);Z.length!==0&&Z.forEach(ee=>{_?.value.toggleRowExpansion(ee,X)})},setCurrentRow:j=>{_?.value.setCurrentRow(j)},setCurrentRowByProp:j=>{if(!R.value)return;const X=cn(R.value,j);X.length!==0&&_?.value.setCurrentRow(X[0])},getCurrentRow:()=>v.value,clearSort:()=>{_?.value.clearSort()},clearFilter:j=>{_?.value.clearFilter(j)},doLayout:()=>{_?.value.doLayout()},sort:(j,X)=>{_?.value.sort(j,X)},scrollTo:(j,X)=>{_?.value.scrollTo(j,X)},setScrollTop:j=>{_?.value.setScrollTop(j)},setScrollLeft:j=>{_?.value.setScrollLeft(j)},loadData:A,clearData:B,getData(){return R.value},getTotalSize(){return x.value},getPageIndex(){return S.value},getPageSize(){return $.value},getColumnSetting:D,setColumnSetting:z,removeColumnSetting:U}),()=>{const X={...l.attrs,onCurrentChange:y,onRowClick:T,onExpandChange:M,data:R.value,ref:_,class:u.value},Z={};l.slots.default&&(Z.default=()=>G.value),l.slots.append&&(Z.append=l.slots.append),l.slots.empty&&(Z.empty=l.slots.empty);const ee=[],ye=r.h(g.ElTable,X,Z);ee.push(ye);let se=null;if(typeof l.slots.pagination=="function")se=l.slots.pagination();else if(n.showPagination){const ut={class:d.value,total:x.value,pageSize:$.value,"onUpdate:pageSize":p,pageSizes:n.pageSizes,currentPage:S.value,"onUpdate:currentPage":b,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0};se=r.h(g.ElPagination,ut)}if(n.showSetting){const ut=[];se&&ut.push(se);const Au=r.h(g.ElIcon,{class:f.value},{default:()=>r.h(Fe.Setting)}),Du=In(n,fn),Bu=r.h(un,{...Du,tableRef:{getColumnSetting:D,setColumnSetting:z,removeColumnSetting:U}},{default:()=>Au});ut.push(Bu);const Fu=r.h("div",{class:c.value},ut);ee.push(Fu)}else se&&ee.push(se);const _e={default:()=>ee},st={...me(n,Ur,Xr,fn),prop:`${n.prop}_item`};return st.contentClass=`${i}__wrap`,st.errorMarkClass="is-table-error",I.value&&E()&&(st["appear-listen"]=!0,st.onAppear=P),r.h(a,st,_e)}}}}const{componentName:ys,create:bs,scope:Ss}=Q("table-item"),Zr=bs(ps(ys,Ss,de));function Ye(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function it(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function ws(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let $s=class{proxy;constructor(t){this.proxy=t}async load(t,a,n){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n);const l=Ce(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Re(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(a,n))}};function vs(){const e=r.getCurrentInstance();return new $s(e.proxy)}function Jr(e,t,a){if(t===a)return!0;if(t===null||a===null)return!1;const n=Ye(e,t),l=Ye(e,a);if(n!==l)return!1;const o=it(e,t),s=it(e,a);return o===s}function Ts(e,t,a,n){if(n.length==0||t===""||t===null||t===void 0)return null;let l=null;for(let o of n){let s=!1;if(a==="text")s=Ye(e,o)===t;else if(a==="item")s=Jr(e,o,t);else{let i=it(e,o);i==null&&(i=Ye(e,o)),s=i===t}if(s){l=o;break}}return l}function xs(e){return{text:e,value:e}}function Cs(e,t,a){return typeof e.itemOptions=="function"?e.itemOptions(t,a):e.itemOptions}const Qr={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function Es(e,t,a){return{inheritAttrs:!0,props:{...ie,...pe,...Qr},emits:["change","update:modelValue"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),u=r.ref(null),f=r.ref(null),c=(I,V,A,B=!0)=>{const K=Ts(n,I,V,A);if(K===null){if(f.value===null)return;f.value=null,u.value=null,B&&(i("update:modelValue",null),i("change",null));return}if(!Jr(n,K,f.value)){u.value=I;const v=r.toRaw(K);f.value=v;let y=null;n.valueType==="text"?y=Ye(n,v):n.valueType==="item"?y=v:y=it(n,v),B&&(i("update:modelValue",y),i("change",y))}},d=r.ref([]),S=we(r.computed(()=>n.lazyLoad),"lazyLoad",ve.Near,I=>te(I)),b=vs(),$=async(I,V)=>{if(I){const A=await b.load("radio",I,V);if(A.length>0)if(typeof A[0]=="string"){let P=A.map(v=>xs(v));d.value=P}else d.value=A}};r.watch([()=>n.source,()=>n.params],async([I,V])=>{$(I,V)},{immediate:!S.value});let p=!1;const w=()=>{p||(p=!0,$(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([I,V])=>{c(V,n.valueType,I,!1)});const m=e,x=r.computed(()=>({[m]:!0,[`is-${n.direction}`]:!0})),R=I=>{c(I,"value",d.value,!0)};let q=ne(n,"hintText"),N=ne(n,"hintVisible");const E=(I,V)=>{const A=[];return I.forEach((B,K)=>{const P=it(n,B),v=Ye(n,B);let y=ws(n,B);o.value===!0&&(y=o.value),s.value===!0&&(y=s.value);const T=Cs(n,B,K)??{},L=`${P}_${K}`,M={...T,key:L,label:P,disabled:y,size:n.size,border:te(n.border)};n.itemType==="button"?A.push(r.h(g.ElRadioButton,M,{default:()=>[v]})):typeof V=="function"?A.push(r.h(g.ElRadio,M,{default:()=>V(B)})):A.push(r.h(g.ElRadio,M,{default:()=>[v]}))}),A};return()=>{const V={...l.attrs,class:x.value,disabled:o.value||s.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:R},A=[],B={};l.slots.options?B.default=l.slots.options:B.default=()=>E(d.value,l.slots.text);const K=r.h(g.ElRadioGroup,V,B);A.push(K);const P={default:()=>A};l.slots.default&&(P.label=l.slots.default),l.slots.fixedTip&&(P.fixedTip=l.slots.fixedTip);const y={...me(n,Qr),hintText:q.value,hintVisible:N.value,prop:`${n.prop??l.attrs.name}_item`};return S.value&&(y["appear-listen"]=!0,y.onAppear=w),r.h(a,y,P)}}}}const{componentName:Ns,create:ks,scope:Vs}=Q("radio-item"),ea=ks(Es(Ns,Vs,de));function Ue(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Xe(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Os(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}class Is{proxy;constructor(t){this.proxy=t}async load(t,a,n){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n);const l=Ce(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Re(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(a,n))}}function Rs(){const e=r.getCurrentInstance();return new Is(e.proxy)}function ta(e,t,a){if(t===a)return!0;if(t===null||a===null)return!1;const n=Ue(e,t),l=Ue(e,a);if(n!==l)return!1;const o=Xe(e,t),s=Xe(e,a);return o===s}function As(e,t,a,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];return t.forEach(o=>{for(let s of n){let i=!1;if(a==="text")i=Ue(e,s)===o;else if(a==="item")i=ta(e,s,o);else{let u=Xe(e,s);u==null&&(u=Ue(e,s)),i=u===o}if(i){l.push(s);break}}}),l}function Ds(e){return{text:e,value:e}}function Bs(e,t,a){return typeof e.itemOptions=="function"?e.itemOptions(t,a):e.itemOptions}const na={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function Fs(e,t,a){return{inheritAttrs:!1,props:{...ie,...pe,...na},emits:["change","update:modelValue"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),u=r.ref([]),f=r.ref([]),c=(I,V,A,B=!0)=>{const K=As(n,I,V,A);if(K===null){if(f.value===null||f.value.length===0)return;u.value=[],f.value=[],B&&(i("update:modelValue",[]),i("change",[]));return}let P=!0;if(K.length!==f.value.length)P=!1;else for(let v=0;v<K.length;v++){const y=K[v],T=f.value[v];if(!ta(n,y,T)){P=!1;break}}if(!P){f.value=K;let v=[],y=[];K.forEach(L=>{v.push(Xe(n,L)),n.valueType==="text"?y.push(Ue(n,L)):n.valueType==="item"?y.push(L):y.push(Xe(n,L))}),u.value=v;const T=r.toRaw(y);B&&(i("update:modelValue",T),i("change",T))}},d=r.ref([]),S=we(r.computed(()=>n.lazyLoad),"lazyLoad",ve.Near,I=>te(I)),b=Rs(),$=async(I,V)=>{if(I){const A=await b.load("checkbox",I,V);if(A.length>0)if(typeof A[0]=="string"){let P=A.map(v=>Ds(v));d.value=P}else d.value=A}};r.watch([()=>n.source,()=>n.params],async([I,V])=>{$(I,V)},{immediate:!S.value});let p=!1;const w=()=>{p||(p=!0,$(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([I,V])=>{c(V,n.valueType,I,!1)});const m=e,x=r.computed(()=>({[m]:!0,[`is-${n.direction}`]:!0})),R=I=>{c(I,"value",d.value,!0)};let q=ne(n,"hintText"),N=ne(n,"hintVisible");const E=(I,V)=>{const A=[];return I.forEach((B,K)=>{const P=Xe(n,B),v=Ue(n,B);let y=Os(n,B);o.value===!0&&(y=o.value),s.value===!0&&(y=s.value);const T=Bs(n,B,K)??{},L=`${P}_${K}`,M={...T,key:L,class:n.itemClass,label:P,disabled:y,size:n.size,border:te(n.border)};n.itemType==="button"?A.push(r.h(g.ElCheckboxButton,M,{default:()=>[v]})):typeof V=="function"?A.push(r.h(g.ElCheckbox,M,{default:()=>V(B)})):A.push(r.h(g.ElCheckbox,M,{default:()=>[v]}))}),A};return()=>{const V={...l.attrs,class:x.value,disabled:o.value||s.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:ge(n.max),min:ge(n.min),onChange:R},A=[],B={};l.slots.options?B.default=l.slots.options:B.default=()=>E(d.value,l.slots.text);const K=r.h(g.ElCheckboxGroup,V,B);A.push(K);const P={default:()=>A};l.slots.default&&(P.label=l.slots.default),l.slots.fixedTip&&(P.fixedTip=l.slots.fixedTip);const y={...me(n,na),hintText:q.value,hintVisible:N.value,prop:`${n.prop??l.attrs.name}_item`};return S.value&&(y["appear-listen"]=!0,y.onAppear=w),r.h(a,y,P)}}}}const{componentName:qs,create:Ls,scope:js}=Q("checkbox-item"),ra=Ls(Fs(qs,js,de)),aa={modelValue:{type:[Number,String],required:!1}};function Ms(e,t,a){return{props:{...ie,...pe,...aa},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),u=ne(n,"modelValue",p=>ge(p)),f=e,c=r.computed(()=>({[f]:!0})),d=p=>{i("update:modelValue",p),i("change",p)};let S=ne(n,"hintText"),b=r.ref(!1);const $=r.ref();return fe({}),()=>{const w={...l.attrs,ref:$,class:c.value,readonly:s.value||o.value,modelValue:u.value,onChange:d},m={},x=[],R=r.h(g.ElRate,w,m);x.push(R);const q={default:()=>x};l.slots.default&&(q.label=l.slots.default),l.slots.fixedTip&&(q.fixedTip=l.slots.fixedTip);const E={...me(n,aa),hintText:S.value,hintVisible:b.value,prop:`${n.prop}_item`};return r.h(a,E,q)}}}}const{componentName:_s,create:Ps,scope:Hs}=Q("rate-item"),la=Ps(Ms(_s,Hs,de)),oa={modelValue:{type:[Boolean,String,Number],required:!1}};function zs(e,t,a){return{props:{...ie,...pe,...oa},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),u=ne(n,"modelValue"),f=e,c=r.computed(()=>({[f]:!0})),d=p=>{i("update:modelValue",p),i("change",p)};let S=ne(n,"hintText"),b=ne(n,"hintVisible");const $=r.ref();return fe({}),()=>{const w={...l.attrs,ref:$,class:c.value,readonly:s.value,disabled:o.value,modelValue:u.value,onChange:d},m={},x=[],R=r.h(g.ElSwitch,w,m);x.push(R);const q={default:()=>x};l.slots.default&&(q.label=l.slots.default),l.slots.fixedTip&&(q.fixedTip=l.slots.fixedTip);const E={...me(n,oa),hintText:S.value,hintVisible:b.value,prop:`${n.prop}_item`};return r.h(a,E,q)}}}}const{componentName:Ks,create:Ws,scope:Gs}=Q("switch-item"),ia=Ws(zs(Ks,Gs,de)),sa={modelValue:{type:[String,Number,Boolean],required:!1}};function Ys(e,t,a){return{props:{...ie,...pe,...sa},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),i=r.ref(!1),{emitEvent:u}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),f=ne(n,"modelValue"),c=e,d=r.computed(()=>({[c]:!0})),S=N=>{u("update:modelValue",N),u("change",N)};let b=ne(n,"hintText"),$=r.ref(!1);const p=N=>{let I=N.target.value;i.value=!0,le(b.value)||($.value=!0),u("focus",I,N)},w=N=>{setTimeout(()=>{$.value&&($.value=!1),i.value=!1},0);let I=N.target.value;n.maxLength&&I.length>Number(n.maxLength)&&(I=I.slice(0,Number(n.maxLength))),x.value||u("blur",I,N)},m=()=>{u("clear","")},x=r.ref(!1),R=N=>{x.value=N,u("visible-change",N),N||u("selected")},q=r.ref();return fe({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()}}),()=>{const E={...l.attrs,ref:q,class:d.value,disabled:o.value||s.value,modelValue:f.value,"onUpdate:modelValue":S,onClear:m,onFocus:p,onBlur:w,onVisibleChange:R},I={};l.slots.option&&(I.default=l.slots.option);const V=[],A=r.h(g.ElTreeSelect,E,I);V.push(A);const B={default:()=>V};l.slots.default&&(B.label=l.slots.default),l.slots.fixedTip&&(B.fixedTip=l.slots.fixedTip);const P={...me(n,sa),hintText:b.value,hintVisible:$.value,prop:`${n.prop}_item`};return r.h(a,P,B)}}}}const{componentName:Us,create:Xs,scope:Zs}=Q("tree-select-item"),ua=Xs(Ys(Us,Zs,de)),Js=Symbol.for("InnerPageScopeKey"),Qs=Symbol.for("PageWrapperKey");function eu(e,t){return{props:{title:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(a,n){r.provide(Js,!0);const l={};r.provide(Qs,l);const o=u=>{typeof l.beforeClose=="function"&&l.beforeClose()},s=r.ref(!0),i=u=>{s.value=u};return()=>{const f={...n.attrs,title:a.title,draggable:a.draggable,modelValue:s.value,"onUpdate:modelValue":i,"append-to-body":a.appendToBody,"close-on-click-modal":a.closeOnClickModal,"close-on-press-escape":a.closeOnPressEscape,"before-close":o},c={};if(typeof n.slots.default=="function"){const d=n.slots.default();c.default=()=>d}return r.h(g.ElDialog,f,c)}}}}const{componentName:Ju,create:tu,scope:Qu}=Q("dialog-item"),ca=tu(eu());function nu(e,t){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(a,{slots:n}){const l=e,o=r.computed(()=>({[l]:!0})),s=r.computed(()=>a.icon?{[`${l}__icon`]:!0,[`${l}__icon-${a.type}`]:!0}:{[`${l}__mark`]:!0,[`${l}__mark-${a.type}`]:!0}),i=r.computed(()=>a.color?a.icon?{color:a.color}:{background:a.color}:null),u=r.computed(()=>{const c={[`${l}__text`]:!0,[`${l}__text-${a.type}`]:!0};return a.textPosition==="left"?c["is-left"]=!0:c["is-right"]=!0,c}),f=r.computed(()=>a.color?{color:a.color}:null);return()=>{let c=null;if(n.mark)c=n.mark()[0];else{const p={class:s.value,style:i.value};c=r.h(a.icon??"div",p)}const d={class:u.value,style:f.value},S=n.default?n.default():[],b=r.h("div",d,S),$={class:o.value};return a.textPosition==="right"?r.h("div",$,[c,b]):r.h("div",$,[b,c])}}}}const{componentName:ru,create:au,scope:ec}=Q("indicator"),fa=au(nu(ru));function lu(e){const t=document.createRange();return t.setStart(e,0),t.setEnd(e,e.childNodes.length),t.getBoundingClientRect().width}const ou={class:{type:[String],required:!1},tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1}};function iu(e,t){return{props:{...ou},setup(a,n){const l=r.ref(!0),o=r.ref(null),s=r.computed(()=>{const c={[`${e}`]:!0,"is-truncated":a.truncated};return typeof a.class=="string"&&a.class.length>0&&a.class.split(/\s+/).forEach(S=>{c[S]=!0}),a.type&&(c[`${e}__${a.type}`]=!0),a.size&&(c[`${e}__${a.size}`]=!0),c}),i=c=>{if(c&&te(a.showOverflowTooltip)){const d=c.clientWidth,S=lu(c);l.value=S<=d}};let u=null;r.onMounted(()=>{if(!te(a.showOverflowTooltip))return;const c=o.value;i(c),c&&window.ResizeObserver&&(u=new window.ResizeObserver(()=>{i(c)}),u.observe(c))}),r.onUnmounted(()=>{u?.disconnect()});const f=(c,d)=>{let S=null;if(typeof a.highlightFilter=="string"&&a.highlightFilter.length>0){const b=a.highlightFilter;if(c.indexOf(b)!==-1){const p=c.replace(new RegExp(b,"g"),`<span>${b}</span>`);d.innerHTML=p,d.class["is-highlight"]=!0,S=r.h(a.tag,d)}}else if(typeof a.highlightFilter=="function"){const b=a.highlightFilter(c);b&&(d.innerHTML=b,d.class["is-highlight"]=!0,S=r.h(a.tag,d))}return S};return()=>{const c={},d={...n.attrs,class:{...s.value},ref:o};if(te(a.numberFormat)&&typeof n.slots.default=="function"){const p=n.slots.default();if(Array.isArray(p)&&p.length===1){const w=p[0].type.toString();if(w==="Symbol(Text)"||w==="Symbol(v-txt)"){const m=ge(a.digits),x=ge(a.decimalLength),R=te(a.autoPadding);let q=`${p[0].children}`,N=q.split("").reverse().join("");N=dt(N,x,R,m,a.separator),q=N.split("").reverse().join("");let E=null;a.highlightFilter!==void 0&&(E=f(q,d)),E||(d.innerHTML=q,E=r.h(a.tag,d)),c.default=()=>E}}}else{let p=null;if(a.highlightFilter!==void 0&&typeof n.slots.default=="function"){const w=n.slots.default();if(Array.isArray(w)&&w.length===1){const m=w[0].type.toString();if(m==="Symbol(Text)"||m==="Symbol(v-txt)"){const x=`${w[0].children}`;p=f(x,d),p||(d.innerHTML=x,p=r.h(a.tag,d))}}}p||(p=r.h(a.tag,d,{default:n.slots.default})),c.default=()=>p}const b={disabled:l.value};return c.content=n.slots.default,r.h(g.ElTooltip,b,c)}}}}const{componentName:su,create:uu,scope:tc}=Q("text"),da=uu(iu(su)),cu={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1,default:Fe.ArrowUp}};function fu(e,t,a){return{props:{...cu},emits:["click","update:modelValue"],setup(n,{emit:l}){const o=r.computed(()=>{const d={[`${e}`]:!0};return n.disabled?d[`${e}__disabled`]=!0:d[`${e}__${n.type}`]=!0,d}),s=ne(n,"modelValue"),i=r.computed(()=>s.value?n.expandText??"":n.collapseText??""),u=r.computed(()=>({[`${e}__text`]:!0})),f=r.computed(()=>({[`${e}__icon`]:!0,"is-expand":!s.value,"is-collapse":s.value})),c=()=>{l("update:modelValue",!s.value)};return()=>{const d=[];if(i.value){const p={class:u.value},w=r.h("span",p,[i.value]);d.push(w)}const S={class:f.value},b=a(n.icon,S);return b&&d.push(b),r.h("div",{class:o.value,onClick:c},d)}}}}const{componentName:du,create:hu,scope:gu}=Q("more-button"),ha=hu(fu(du,gu,(e,t)=>(e=e??Fe.ArrowUp,r.h(g.ElIcon,t,{default:()=>[r.h(e)]})))),{componentName:mu,create:pu,scope:rc}=Q("tour"),yu=pu({components:{Close:Fe.Close,ElPopover:g.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:t}){const a=mu,n=r.reactive({showTour:e.modelValue,showPopup:!1,active:0}),l=r.ref({}),o=r.computed(()=>`${a}`),s=r.computed(()=>{const{offset:$,maskWidth:p,maskHeight:w}=e,{width:m,height:x,left:R,top:q}=l.value,N=e.steps[n.active].offset??$,E=[R+m/2,q+x/2],I=Number(p||m),V=Number(w||x);return{width:`${I+ +N.left+N.right}px`,height:`${V+N.top+N.bottom}px`,top:`${E[1]-V/2-+N.top}px`,left:`${E[0]-I/2-+N.left}px`}}),i=$=>{$=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,r.nextTick(()=>{n.showPopup=!0,c()}),t("change",n.active)},u=$=>$.popoverWidth??e.width,f=$=>$.location??e.location,c=()=>{const $=document.querySelector(`${e.steps[n.active].target}`),p=rn($);l.value={x:p.left,y:p.top,top:p.top,left:p.left,width:p.width,height:p.height}},d=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},S=()=>{e.closeOnClickOverlay&&d()},b=($,p=0)=>{$&&c(),e.steps,n.active=p,n.showTour=$,n.showPopup=$};return r.onMounted(()=>{b(e.modelValue,e.current)}),r.watch(()=>e.modelValue,$=>{b($)}),{...r.toRefs(n),classes:o,maskStyle:s,changeStep:i,popoverWidth:u,popoverLocation:f,close:d,handleClickMask:S}}}),bu={key:0,class:"fox-tour__content"},Su={key:0,class:"fox-tour__content-top"},wu={class:"fox-tour__content-inner"},$u={class:"fox-tour__content-bottom"},vu={class:"fox-tour__content-bottom-init"},Tu={class:"fox-tour__content-bottom-operate"},xu={key:1,class:"fox-tour__content fox-tour__content-tile"},Cu={class:"fox-tour__content-inner"};function Eu(e,t,a,n,l,o){const s=r.resolveComponent("Close"),i=r.resolveComponent("fox-button"),u=r.resolveComponent("ElPopover");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes)},[r.withDirectives(r.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...f)=>e.handleClickMask&&e.handleClickMask(...f))},null,512),[[r.vShow,e.showTour]]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.steps,(f,c)=>(r.openBlock(),r.createElementBlock("div",{key:c,style:{height:"0"}},[c==e.active?(r.openBlock(),r.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(f),width:e.popoverWidth(f)},{reference:r.withCtx(()=>[e.showTour?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:r.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):r.createCommentVNode("",!0)]),default:r.withCtx(()=>[r.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(r.openBlock(),r.createElementBlock("div",bu,[e.showTitleBar?(r.openBlock(),r.createElementBlock("div",Su,[r.createElementVNode("div",{onClick:t[1]||(t[1]=(...d)=>e.close&&e.close(...d))},[r.createVNode(s,{class:"fox-tour__content-top-close"})])])):r.createCommentVNode("",!0),r.createElementVNode("div",wu,r.toDisplayString(f.content),1),r.createElementVNode("div",$u,[r.createElementVNode("div",vu,r.toDisplayString(e.active+1)+"/"+r.toDisplayString(e.steps.length),1),r.createElementVNode("div",Tu,[r.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(r.openBlock(),r.createBlock(i,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=d=>e.changeStep("prev"))},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.prevStepText),1)]),_:1})):r.createCommentVNode("",!0)]),e.steps.length-1==e.active?(r.openBlock(),r.createBlock(i,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):r.createCommentVNode("",!0),r.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(r.openBlock(),r.createBlock(i,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=d=>e.changeStep("next"))},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.nextStepText),1)]),_:1})):r.createCommentVNode("",!0)])])])])):r.createCommentVNode("",!0),e.type=="tile"?(r.openBlock(),r.createElementBlock("div",xu,[r.createElementVNode("div",Cu,r.toDisplayString(f.content),1)])):r.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):r.createCommentVNode("",!0)]))),128))],2)}const ga=Ee(yu,[["render",Eu]]);function Nu(e,t){return{props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(a,{slots:n}){return Mn(a.name,a.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:ac,create:ku,scope:lc}=Q("domain-provider"),ma=ku(Nu()),pa=10;function Vu(e,t){return e>t&&e>pa?"horizontal":t>e&&t>pa?"vertical":""}function Ou(){const e=r.ref(0),t=r.ref(0),a=r.ref(0),n=r.ref(0),l=r.ref(0),o=r.ref(0),s=r.ref(0),i=r.ref(0),u=r.ref(0),f=r.ref(0),c=r.ref(""),d=()=>c.value==="vertical",S=()=>c.value==="horizontal",b=()=>{s.value=0,i.value=0,u.value=0,f.value=0,c.value="",a.value=0};return{move:w=>{const m=w.touches[0];s.value=m.clientX-e.value,i.value=m.clientY-t.value,l.value=m.clientX,o.value=m.clientY,u.value=Math.abs(s.value),f.value=Math.abs(i.value),n.value=Date.now()-a.value,c.value||(c.value=Vu(u.value,f.value))},start:w=>{b(),e.value=w.touches[0].clientX,t.value=w.touches[0].clientY,a.value=Date.now()},reset:b,startX:e,startY:t,startTime:a,duration:n,moveX:l,moveY:o,deltaX:s,deltaY:i,offsetX:u,offsetY:f,direction:c,isVertical:d,isHorizontal:S}}const Iu=[Un,Xn,Zn,Jn,tr,de,ir,sr,Ot,cr,mr,Nr,Vr,Ir,qr,jr,Pr,zr,Wr,Yr,un,Zr,ea,ra,la,ia,ua,ca,Rt,an,fa,da,ha,ga,ma],Ru=new ll(Iu,[sl],"4.0.0");Object.defineProperty(h,"FoxAffix",{enumerable:!0,get:()=>g.ElAffix}),Object.defineProperty(h,"FoxAlert",{enumerable:!0,get:()=>g.ElAlert}),Object.defineProperty(h,"FoxAside",{enumerable:!0,get:()=>g.ElAside}),Object.defineProperty(h,"FoxAutoResizer",{enumerable:!0,get:()=>g.ElAutoResizer}),Object.defineProperty(h,"FoxAutocomplete",{enumerable:!0,get:()=>g.ElAutocomplete}),Object.defineProperty(h,"FoxAvatar",{enumerable:!0,get:()=>g.ElAvatar}),Object.defineProperty(h,"FoxBacktop",{enumerable:!0,get:()=>g.ElBacktop}),Object.defineProperty(h,"FoxBadge",{enumerable:!0,get:()=>g.ElBadge}),Object.defineProperty(h,"FoxBreadcrumb",{enumerable:!0,get:()=>g.ElBreadcrumb}),Object.defineProperty(h,"FoxBreadcrumbItem",{enumerable:!0,get:()=>g.ElBreadcrumbItem}),Object.defineProperty(h,"FoxButton",{enumerable:!0,get:()=>g.ElButton}),Object.defineProperty(h,"FoxButtonGroup",{enumerable:!0,get:()=>g.ElButtonGroup}),Object.defineProperty(h,"FoxCalendar",{enumerable:!0,get:()=>g.ElCalendar}),Object.defineProperty(h,"FoxCard",{enumerable:!0,get:()=>g.ElCard}),Object.defineProperty(h,"FoxCarousel",{enumerable:!0,get:()=>g.ElCarousel}),Object.defineProperty(h,"FoxCarouselItem",{enumerable:!0,get:()=>g.ElCarouselItem}),Object.defineProperty(h,"FoxCascader",{enumerable:!0,get:()=>g.ElCascader}),Object.defineProperty(h,"FoxCascaderPanel",{enumerable:!0,get:()=>g.ElCascaderPanel}),Object.defineProperty(h,"FoxCheckTag",{enumerable:!0,get:()=>g.ElCheckTag}),Object.defineProperty(h,"FoxCheckbox",{enumerable:!0,get:()=>g.ElCheckbox}),Object.defineProperty(h,"FoxCheckboxButton",{enumerable:!0,get:()=>g.ElCheckboxButton}),Object.defineProperty(h,"FoxCheckboxGroup",{enumerable:!0,get:()=>g.ElCheckboxGroup}),Object.defineProperty(h,"FoxCol",{enumerable:!0,get:()=>g.ElCol}),Object.defineProperty(h,"FoxCollapse",{enumerable:!0,get:()=>g.ElCollapse}),Object.defineProperty(h,"FoxCollapseItem",{enumerable:!0,get:()=>g.ElCollapseItem}),Object.defineProperty(h,"FoxCollapseTransition",{enumerable:!0,get:()=>g.ElCollapseTransition}),Object.defineProperty(h,"FoxColorPicker",{enumerable:!0,get:()=>g.ElColorPicker}),Object.defineProperty(h,"FoxConfigProvider",{enumerable:!0,get:()=>g.ElConfigProvider}),Object.defineProperty(h,"FoxContainer",{enumerable:!0,get:()=>g.ElContainer}),Object.defineProperty(h,"FoxDatePicker",{enumerable:!0,get:()=>g.ElDatePicker}),Object.defineProperty(h,"FoxDescriptions",{enumerable:!0,get:()=>g.ElDescriptions}),Object.defineProperty(h,"FoxDescriptionsItem",{enumerable:!0,get:()=>g.ElDescriptionsItem}),Object.defineProperty(h,"FoxDialog",{enumerable:!0,get:()=>g.ElDialog}),Object.defineProperty(h,"FoxDivider",{enumerable:!0,get:()=>g.ElDivider}),Object.defineProperty(h,"FoxDrawer",{enumerable:!0,get:()=>g.ElDrawer}),Object.defineProperty(h,"FoxDropdown",{enumerable:!0,get:()=>g.ElDropdown}),Object.defineProperty(h,"FoxDropdownItem",{enumerable:!0,get:()=>g.ElDropdownItem}),Object.defineProperty(h,"FoxDropdownMenu",{enumerable:!0,get:()=>g.ElDropdownMenu}),Object.defineProperty(h,"FoxEmpty",{enumerable:!0,get:()=>g.ElEmpty}),Object.defineProperty(h,"FoxFooter",{enumerable:!0,get:()=>g.ElFooter}),Object.defineProperty(h,"FoxForm",{enumerable:!0,get:()=>g.ElForm}),Object.defineProperty(h,"FoxFormItem",{enumerable:!0,get:()=>g.ElFormItem}),Object.defineProperty(h,"FoxHeader",{enumerable:!0,get:()=>g.ElHeader}),Object.defineProperty(h,"FoxIcon",{enumerable:!0,get:()=>g.ElIcon}),Object.defineProperty(h,"FoxImage",{enumerable:!0,get:()=>g.ElImage}),Object.defineProperty(h,"FoxImageViewer",{enumerable:!0,get:()=>g.ElImageViewer}),Object.defineProperty(h,"FoxInput",{enumerable:!0,get:()=>g.ElInput}),Object.defineProperty(h,"FoxInputNumber",{enumerable:!0,get:()=>g.ElInputNumber}),Object.defineProperty(h,"FoxLink",{enumerable:!0,get:()=>g.ElLink}),Object.defineProperty(h,"FoxMain",{enumerable:!0,get:()=>g.ElMain}),Object.defineProperty(h,"FoxMenu",{enumerable:!0,get:()=>g.ElMenu}),Object.defineProperty(h,"FoxMenuItem",{enumerable:!0,get:()=>g.ElMenuItem}),Object.defineProperty(h,"FoxMenuItemGroup",{enumerable:!0,get:()=>g.ElMenuItemGroup}),Object.defineProperty(h,"FoxOption",{enumerable:!0,get:()=>g.ElOption}),Object.defineProperty(h,"FoxOptionGroup",{enumerable:!0,get:()=>g.ElOptionGroup}),Object.defineProperty(h,"FoxPageHeader",{enumerable:!0,get:()=>g.ElPageHeader}),Object.defineProperty(h,"FoxPagination",{enumerable:!0,get:()=>g.ElPagination}),Object.defineProperty(h,"FoxPopconfirm",{enumerable:!0,get:()=>g.ElPopconfirm}),Object.defineProperty(h,"FoxPopover",{enumerable:!0,get:()=>g.ElPopover}),Object.defineProperty(h,"FoxPopper",{enumerable:!0,get:()=>g.ElPopper}),Object.defineProperty(h,"FoxProgress",{enumerable:!0,get:()=>g.ElProgress}),Object.defineProperty(h,"FoxRadio",{enumerable:!0,get:()=>g.ElRadio}),Object.defineProperty(h,"FoxRadioButton",{enumerable:!0,get:()=>g.ElRadioButton}),Object.defineProperty(h,"FoxRadioGroup",{enumerable:!0,get:()=>g.ElRadioGroup}),Object.defineProperty(h,"FoxRate",{enumerable:!0,get:()=>g.ElRate}),Object.defineProperty(h,"FoxResult",{enumerable:!0,get:()=>g.ElResult}),Object.defineProperty(h,"FoxRow",{enumerable:!0,get:()=>g.ElRow}),Object.defineProperty(h,"FoxScrollbar",{enumerable:!0,get:()=>g.ElScrollbar}),Object.defineProperty(h,"FoxSelect",{enumerable:!0,get:()=>g.ElSelect}),Object.defineProperty(h,"FoxSelectV2",{enumerable:!0,get:()=>g.ElSelectV2}),Object.defineProperty(h,"FoxSkeleton",{enumerable:!0,get:()=>g.ElSkeleton}),Object.defineProperty(h,"FoxSkeletonItem",{enumerable:!0,get:()=>g.ElSkeletonItem}),Object.defineProperty(h,"FoxSlider",{enumerable:!0,get:()=>g.ElSlider}),Object.defineProperty(h,"FoxSpace",{enumerable:!0,get:()=>g.ElSpace}),Object.defineProperty(h,"FoxStep",{enumerable:!0,get:()=>g.ElStep}),Object.defineProperty(h,"FoxSteps",{enumerable:!0,get:()=>g.ElSteps}),Object.defineProperty(h,"FoxSubMenu",{enumerable:!0,get:()=>g.ElSubMenu}),Object.defineProperty(h,"FoxSwitch",{enumerable:!0,get:()=>g.ElSwitch}),Object.defineProperty(h,"FoxTabPane",{enumerable:!0,get:()=>g.ElTabPane}),Object.defineProperty(h,"FoxTable",{enumerable:!0,get:()=>g.ElTable}),Object.defineProperty(h,"FoxTableColumn",{enumerable:!0,get:()=>g.ElTableColumn}),Object.defineProperty(h,"FoxTableV2",{enumerable:!0,get:()=>g.ElTableV2}),Object.defineProperty(h,"FoxTabs",{enumerable:!0,get:()=>g.ElTabs}),Object.defineProperty(h,"FoxTag",{enumerable:!0,get:()=>g.ElTag}),Object.defineProperty(h,"FoxTimePicker",{enumerable:!0,get:()=>g.ElTimePicker}),Object.defineProperty(h,"FoxTimeSelect",{enumerable:!0,get:()=>g.ElTimeSelect}),Object.defineProperty(h,"FoxTimeline",{enumerable:!0,get:()=>g.ElTimeline}),Object.defineProperty(h,"FoxTimelineItem",{enumerable:!0,get:()=>g.ElTimelineItem}),Object.defineProperty(h,"FoxTooltip",{enumerable:!0,get:()=>g.ElTooltip}),Object.defineProperty(h,"FoxTransfer",{enumerable:!0,get:()=>g.ElTransfer}),Object.defineProperty(h,"FoxTree",{enumerable:!0,get:()=>g.ElTree}),Object.defineProperty(h,"FoxTreeSelect",{enumerable:!0,get:()=>g.ElTreeSelect}),Object.defineProperty(h,"FoxTreeV2",{enumerable:!0,get:()=>g.ElTreeV2}),Object.defineProperty(h,"FoxUpload",{enumerable:!0,get:()=>g.ElUpload}),h.AutocompleteItem=zr,h.Broadcast=Wt,h.BroadcastKey=oe,h.CascaderItem=Pr,h.CheckboxItem=ra,h.Content=Jn,h.DataItemsKey=Pe,h.DateItem=Nr,h.DateUtils=ot,h.DialogItem=ca,h.Domain=bt,h.DomainKey=$e,h.DomainProvider=ma,h.FooterBar=Zn,h.Group=tr,h.HeaderBar=Xn,h.HintText=Ot,h.Indicator=fa,h.InputItem=cr,h.InputNumberItem=jr,h.Item=de,h.Mapping=Rt,h.MoneyItem=qr,h.MoreButton=ha,h.Page=Un,h.Price=an,h.PriorityPolicy=ve,h.RadioItem=ea,h.RateItem=la,h.RowItem=sr,h.SelectItem=mr,h.SlotItem=ir,h.SwitchItem=ia,h.TableItem=Zr,h.TableMappingColumn=Wr,h.TableRadioColumn=Yr,h.TableSetting=un,h.Text=da,h.TimeItem=Vr,h.TimeSelectItem=Ir,h.Tour=ga,h.TreeSelectItem=ua,h.UniqueID=lr,h.ValidateSchema=qn,h.ValidateSchemaKey=ke,h.cancelRaf=wa,h.clearNonNumber=Fa,h.clone=zt,h.compareTo=_t,h.createBroadcast=mt,h.createValidateSchema=yt,h.debounce=rt,h.debounceRef=Ua,h.decimalLength=Vn,h.default=Ru,h.defineBroadcast=Ma,h.defineConfigDomain=Mn,h.defineDataItem=Pn,h.defineDomain=Ut,h.defineItem=ue,h.definePageState=Hn,h.deleteGlobalValidator=za,h.disabledProperty=Se,h.divide=Mt,h.excludeProps=me,h.extend=qe,h.floatData=ja,h.getGlobalValidateCheckEvents=Dn,h.getGlobalValidateResetEvents=Fn,h.getPageContentAreaHeight=wt,h.getPageContentAreaWidth=$t,h.getPageFooterAreaHeight=lt,h.getPageHeaderAreaHeight=at,h.getRootDomain=He,h.hasSymbol=$n,h.includeProps=In,h.indexOf=qa,h.installRules=_n,h.integerLength=kn,h.isArray=xa,h.isArrayLike=xn,h.isBrowser=Qe,h.isDate=Na,h.isESModule=Ia,h.isEmptyString=le,h.isEqual=Ae,h.isFunction=Pt,h.isHidden=Tn,h.isInnerPage=Ja,h.isMap=Ca,h.isNumberString=Nn,h.isObject=Re,h.isPlainObject=Ht,h.isPromise=Oa,h.isRegExp=En,h.isSet=Ea,h.isString=ka,h.isSubPage=Qa,h.isSymbol=Va,h.isWindow=vn,h.lastIndexOf=La,h.makeArray=Ba,h.merge=Cn,h.multiply=yn,h.negate=bn,h.nextTick=Aa,h.numberFormat=dt,h.objectToString=wn,h.once=Xa,h.property=we,h.raf=Ta,h.readonlyProperty=be,h.setGlobalValidateCheckEvents=Ka,h.setGlobalValidateHandler=Pa,h.setGlobalValidateMessages=Ga,h.setGlobalValidateResetEvents=Wa,h.setGlobalValidator=Ha,h.throttle=jn,h.toBoolean=te,h.toNumber=ge,h.toPadding=xe,h.toPx=re,h.toPxDesc=ce,h.toTypeString=ht,h.toValue=ne,h.tryTimes=Gt,h.typeOf=gt,h.unNumberFormat=Sn,h.updatePageState=Xt,h.useBroadcast=tt,h.useDomain=Ve,h.useExpose=fe,h.useInnerSize=en,h.usePageState=St,h.usePosition=nr,h.useRect=rn,h.useSize=Qt,h.useTouch=Ou,h.valueLength=et,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});