@fox-js/foxui-pc 4.0.1-67 → 4.0.1-68

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
- (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,Me,m,Ve,Ce){"use strict";/*!
2
- * @fox-js/foxui-desktop v4.0.0 Thu Aug 31 2023 15:07:36 GMT+0800 (中国标准时间)
1
+ (function(g,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):(g=typeof globalThis<"u"?globalThis:g||self,r(g.FoxUI={},g.Vue,g.FoxValidator,g.ElementPlus,g.ElementPlusIconsVue,g.FoxI18n))})(this,function(g,r,Me,m,Ve,Ce){"use strict";/*!
2
+ * @fox-js/foxui-desktop v4.0.0 Fri Sep 01 2023 08:21:16 GMT+0800 (中国标准时间)
3
3
  */const gt=window,Yo=typeof window<"u";function Uo(){return typeof gt<"u"?gt.requestAnimationFrame||gt.webkitRequestAnimationFrame||function(e){gt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Go(e){Yo?cancelAnimationFrame(e):clearTimeout(e)}const Xo=Uo();/*!
4
4
  * @fox-js/big-decimal v4.0.1-6 Thu Aug 17 2023 21:31:19 GMT+0800 (中国标准时间)
5
- */function mt(e,t="0"){let o=0,n=-1;e[0]=="-"&&(o++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(o++,n=2,t=t.substring(1),t.length),e=he(e),t=he(t),[e,t]=Pt(he(e),he(t)),o==1&&(n==1?e=_t(e):t=_t(t));let a=xn(e,t);return o?o==2?"-"+he(a):e.length<a.length?he(a.substring(1)):"-"+he(_t(a)):he(a)}function _t(e){let t="",o=e.length,n=e.split(".")[1],a=n?n.length:0;for(let s=0;s<o;s++)e[s]>="0"&&e[s]<="9"?t+=9-parseInt(e[s]):t+=e[s];let l=a>0?"0."+new Array(a).join("0")+"1":"1";return xn(t,l)}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 Pt(e,t){let o=e.split("."),n=t.split("."),a=o[0].length,l=n[0].length;return a>l?n[0]=new Array(Math.abs(a-l)+1).join("0")+(n[0]?n[0]:""):o[0]=new Array(Math.abs(a-l)+1).join("0")+(o[0]?o[0]:""),a=o[1]?o[1].length:0,l=n[1]?n[1].length:0,(a||l)&&(a>l?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(a-l)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(a-l)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function xn(e,t){[e,t]=Pt(e,t);let o="",n=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){o="."+o;continue}let l=parseInt(e[a])+parseInt(t[a])+n;o=l%10+o,n=Math.floor(l/10)}return n?n.toString()+o:o}var oe=(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))(oe||{});function tt(e,t=0,o=oe.HALF_EVEN){if(o===oe.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 a=e.split("."),l=a[0],s=a[1];if(t<0){if(t=-t,l.length<=t)return"0";{let u=l.substr(0,l.length-t);return e=u+"."+l.substr(l.length-t)+s,u=tt(e,0,o),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return l.length,Nn(a[1],l,n,o)?(n?"-":"")+Ht(l):(n?"-":"")+l;if(a[1]){if(a[1].length<t)return(n?"-":"")+l+"."+a[1]+new Array(t-a[1].length+1).join("0")}else return(n?"-":"")+l+"."+new Array(t+1).join("0");s=a[1].substring(0,t);let i=a[1].substring(t);return i&&Nn(i,s,n,o)&&(s=Ht(s),s.length>t)?(n?"-":"")+Ht(l,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+l+"."+s}function Nn(e,t,o,n){if(!e||e===new Array(e.length+1).join("0")||n===oe.DOWN||!o&&n===oe.FLOOR||o&&n===oe.CEILING)return!1;if(n===oe.UP||o&&n===oe.FLOOR||!o&&n===oe.CEILING)return!0;let a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)return!1;switch(n){case oe.HALF_DOWN:return!1;case oe.HALF_UP:return!0;case oe.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function Ht(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let o=e.length-1,n="";for(let a=o;a>=0;a--){let l=parseInt(e[a])+t;l==10?(t=1,l=0):t=0,n+=l}return t&&(n+=t),n.split("").reverse().join("")}function zt(e,t){e=e.toString(),t=t.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),t[0]=="-"&&(o++,t=t.substr(1)),e=nt(e),t=nt(t);let n=0,a=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(a=t.length-t.indexOf(".")-1);let l=n+a;if(e=nt(e.replace(".","")),t=nt(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 w=t.length-1;w>=f&&w>=0;w--)u[w]>-1&&u[w]<e.length&&(S+=parseInt(e[u[w]--])*parseInt(t[w]));S+=i,i=Math.floor(S/10),c=S%10+c,f--}return c=nt(Zo(c,l)),o==1&&(c="-"+c),c}function Zo(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 nt(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 Kt(e,t,o=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 a=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=he(t.replace(".","")),a>=0){let f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=he(e+new Array(a+1).join("0"));else if(a>f)e=e.replace(".",""),e=he(e+new Array(a-f+1).join("0"));else if(a<f){e=e.replace(".","");let c=e.length-f+a;e=he(e.substring(0,c)+"."+e.substring(c))}else a==f&&(e=he(e.replace(".","")))}let l=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")),l=f,i="0."+new Array(f).join("0")}for(o=o+2;l<=o;){let f=0;for(;parseInt(u)>=parseInt(t);)u=mt(u,"-"+t),f++;i+=f,e?(e[0]=="."&&(i+=".",l++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(l||(i+="."),l++,u=u+"0")}return(n==1?"-":"")+he(tt(i,o-2))}function Wt(e,t){return e=e.toString(),t=t.toString(),t=Yt(t),mt(e,t)}function Yt(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function kn(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),Vn(e),Vn(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=Wt(e,zt(t,tt(Kt(e,t),0,oe.FLOOR)));return o+n}function Vn(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function On(e,t){let o=!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),o=!0),[e,t]=Pt(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]?o?-1:1:o?1:-1;return 0}class J{value;static RoundingModes=oe;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[o,n]=t.split(/[eE]/);o=he(o);let a="";o[0]=="-"&&(a="-",o=o.substring(1)),o.indexOf(".")>=0?(n=parseInt(n)+o.indexOf("."),o=o.replace(".","")):n=parseInt(n)+o.length,o.length<n?t=a+o+new Array(n-o.length+1).join("0"):o.length>=n&&n>0?t=a+he(o.substring(0,n))+(o.length>n?"."+o.substring(n):""):t=a+"0."+new Array(-n+1).join("0")+o}return t}constructor(t="0"){this.value=J.validate(t)}getValue(){return this.value}static getPrettyValue(t,o,n){if(!(o||n))o=3,n=",";else if(!(o&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=J.validate(t);let a=t.charAt(0)=="-";a&&(t=t.substring(1));var l=t.indexOf(".");l=l>0?l:t.length;for(var s="",i=l;i>0;)i<o?(o=i,i=0):i-=o,s=t.substring(i,i+o)+(i<l-o&&i>=0?n:"")+s;return(a?"-":"")+s+t.substring(l)}getPrettyValue(t,o){return J.getPrettyValue(this.value,t,o)}static round(t,o=0,n=oe.HALF_EVEN){if(t=J.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return tt(t,o,n)}round(t=0,o=oe.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new J(tt(this.value,t,o))}static floor(t){return t=J.validate(t),t.indexOf(".")===-1?t:J.round(t,0,oe.FLOOR)}floor(){return this.value.indexOf(".")===-1?new J(this.value):new J(this.value).round(0,oe.FLOOR)}static ceil(t){return t=J.validate(t),t.indexOf(".")===-1?t:J.round(t,0,oe.CEILING)}ceil(){return this.value.indexOf(".")===-1?new J(this.value):new J(this.value).round(0,oe.CEILING)}static add(t,o){return t=J.validate(t),o=J.validate(o),mt(t,o)}add(t){return new J(mt(this.value,t.getValue()))}static subtract(t,o){return t=J.validate(t),o=J.validate(o),Wt(t,o)}subtract(t){return new J(Wt(this.value,t.getValue()))}static multiply(t,o){return t=J.validate(t),o=J.validate(o),zt(t,o)}multiply(t){return new J(zt(this.value,t.getValue()))}static divide(t,o,n){return t=J.validate(t),o=J.validate(o),Kt(t,o,n)}divide(t,o){return new J(Kt(this.value,t.getValue(),o))}static modulus(t,o){return t=J.validate(t),o=J.validate(o),kn(t,o)}modulus(t){return new J(kn(this.value,t.getValue()))}static compareTo(t,o){return t=J.validate(t),o=J.validate(o),On(t,o)}compareTo(t){return On(this.value,t.getValue())}static negate(t){return t=J.validate(t),Yt(t)}negate(){return new J(Yt(this.value))}}function In(e,t){return J.multiply(`${e}`,`${t}`)}function Ut(e,t,o=8){return J.divide(`${e}`,`${t}`,o)}function Gt(e,t){return e=`${e}`,t=`${t}`,J.compareTo(e,t)}function Rn(e){return J.negate(e)}function pt(e,t=-1,o=!1,n=3,a=","){let l=`${e}`;if(l.length==0||l==="-")return"";let s=l.charAt(0);s=="-"?l=l.substring(1):s="";let i=l,u="",f=l.indexOf(".");f!=-1&&(i=l.substring(0,f),u=l.substring(f+1)),t!=-1&&(t<u.length?u=u.substring(0,t):o&&t>u.length&&(u=u.padEnd(t,"0")));let c;if(n>0){let d="",S=i.split("").reverse();for(let w=0;w<S.length;w++)d+=S[w]+((w+1)%n==0&&w+1!=S.length?a:"");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 An(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const Jo=Xo,Qo=Array.isArray,ea=e=>yt(e)==="[object Map]",ta=e=>yt(e)==="[object Set]",na=e=>e instanceof Date,Xt=e=>typeof e=="function",Dn=e=>typeof e=="string",ra=e=>typeof e=="symbol",Fe=e=>e!==null&&typeof e=="object",oa=e=>Fe(e)&&Xt(e.then)&&Xt(e.catch),Fn=Object.prototype.toString,yt=e=>Fn.call(e),Zt=e=>yt(e)==="[object Object]",Bn=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function aa(e){return e.__esModule||Bn&&e[Symbol.toStringTag]==="Module"}const la=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function je(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,n=e.length,a=!1;for(typeof t=="boolean"&&(a=t,t=e[o]??{},o++),typeof t!="object"&&(t={});o<n;o++)if(e[o]!==null&&e[o]!==void 0){let l=e[o];for(let s in l){let i=t[s],u=l[s];if(i!==u)if(a===!0&&u&&typeof u=="object"){let f;Array.isArray(u)?f=i&&Array.isArray(i)?i:[]:f=i&&typeof i=="object"?i:{},t[s]=je(a,f,u)}else u!==void 0&&(t[s]=u)}}return t}function Jt(e,t,o=!1){if(!o)je(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let a in t){let l=e[a],s=t[a];if(l!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!Zt(s))continue;l=Jt(l,s,o),e[a]=l}else{if(typeof s=="function")continue;e[a]=s}}const n=Object.getOwnPropertySymbols(t);for(let a of n){let l=e[a],s=t[a];if(l!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!Zt(s))continue;l=Jt(l,s,o),e[a]=l}else{if(typeof s=="function")continue;e[a]=s}}}return e}const Qt=la?Promise.resolve():null;function ia(e,...t){Qt!==null?t&&t.length>0?Qt.then(()=>{e(t)}):Qt.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 sa={"[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 bt(e){let o=Object.prototype.toString.call(e);return e==null?String(e):sa[o]||"object"}function Ln(e){return e&&typeof e=="object"&&"setInterval"in e}function qn(e){return!e||e.offsetParent===null}function Mn(e){let t=!!e&&"length"in e&&e.length,o=bt(e);return o==="function"||Ln(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function jn(e,t){let o=+t.length,n=0,a=e.length;for(;n<o;n++)e[a++]=t[n];return e.length=a,e}function ua(e,t=[]){let o=t;return e!=null&&(Mn(Object(e))?jn(o,typeof e=="string"?[e]:e):o.push(e)),o}function Be(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=bt(e),n=bt(t);if(o!==n)return!1;if(o==="object"){let a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(let s=0;s<a.length;s++){let i=a[s],u=e[i],f=t[i];if(!Be(u,f))return!1}return!0}else if(o==="array"){if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++){let l=e[a],s=t[a];if(!Be(l,s))return!1}return!0}return!1}const rt=typeof window<"u";function _n(e){return e==null}function Pn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ae=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Hn(e){return ae(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ae(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function zn(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 o=t.indexOf(".");return o==-1?t.length:o}function Kn(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const o=t.indexOf(".");return o==-1?0:t.length-(o+1)}function Wn(e,t,o){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(o,"")}function ca(e,t=!0,o=!0){t?e=Wn(e,".",/\./g):e=e.replace(/\./g,""),o?e=Wn(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function fa(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(Be(e,o))return!0}):t.indexOf(e)}function da(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(n=>{if(Be(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function ot(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Yn(e,...t){const o={};return t.forEach(n=>{for(const a in n)o[a]=e[a]}),o}function me(e,...t){const o=[];t.forEach(a=>{Reflect.apply([].push,o,Reflect.ownKeys(a))});const n={};for(const a in e)o.includes(a)||(n[a]=e[a]);return n}const ha=(e,t,o)=>{const n=Object.assign({},e),a=Object.assign({},o);return Object.keys(t).length>0?(Object.keys(n).forEach(l=>{a.hasOwnProperty(l)?typeof a[l]=="string"&&(n[l]=t[a[l]]):t[l]&&(n[l]=t[l])}),n):e},le=Symbol.for("BroadcastKey");class en{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,o,n){this.parent=t,this.proxy=o,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const o=this.children.findIndex(n=>t===n);o!==-1&&this.children.splice(o,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,o,...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 a=!1;!t.name||t.name==="*"?a=!0:!t.name||t.name==="+"?(a=!1,t.name="*"):Pn(t.name)&&this.name&&t.name.test(this.name)?a=!0:typeof t.name=="function"?a=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(a=!0);const l=[];if(a){const s=this.callbacks.get(o);if(typeof s=="function"){const u=Reflect.apply(s,this.proxy,[...n]);u!=null&&l.push(u)}const i=this.proxy??{};if(typeof i[o]=="function"){const u=Reflect.apply(i[o],i,[...n]);u!=null&&l.push(u)}}return this.children.forEach(s=>{const i=Reflect.apply(s.emit,s,[{...t},o,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,l,[...i])}),l}emitToChildren(t,o,...n){const a=[];return this.children.forEach(l=>{const s=Reflect.apply(l.emit,l,[{...t},o,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}on(t,o){this.callbacks.set(t,o)}}function wt(e,t,o,n){const a=new en(t,e,o);if(n&&typeof n=="object")for(const l in n)a.on(l,n[l]);return a}function ga(e,t,o){const n=o;if(n[le])return n[le];const a=r.inject(le,null),l=new en(a,o,e);if(t&&typeof t=="object")for(const s in t)l.on(s,t[s]);return n[le]=l,r.provide(le,l),r.onUnmounted(()=>{l.destroy(),n[le]=void 0}),l}function at(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[le]??r.inject(le,null):r.inject(le,null)}const _e=e=>e.default??e;class ma{error(t,o){const n=o,a=at(o);a?a.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const o=t,n=at(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=at(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(t,o,n){Array.isArray(t)||(t=[t]);const a=n,l=at(n),s=o.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?l?l.emit({name:"*"},"setRequired",!0):typeof a.setRequired=="function"&&a.setRequired(!0):s&&!i&&(l?l.emit({name:"*"},"setRequired",!1):typeof a.setRequired=="function"&&a.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let Un=new ma;function pa(e){Un=e}function ya(e,t){_e(Me).setValidator(e,t)}function ba(e){_e(Me).deleteValidator(e)}let Gn=["blur","clear"];function wa(e){Gn=e}function Xn(){return Gn}let Zn=["focus","change"];function Sa(e){Zn=e}function Jn(){return Zn}function va(e){_e(Me).messages(e)}function lt(...e){const t=[];return e.forEach(o=>{o.forEach(n=>{const a=t.findIndex(l=>l.type===n.type);a!==-1&&t.splice(a,1),t.push(n)})}),t}function St(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 Oe=Symbol("ValidateSchemaKey");class Qn{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,o,n){this.parent=t,this.descriptor=o,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 o=St(lt(this.attrRules,this.rules)),n=[];for(let l in t){let s=t[l];if(this.hasValidator(l,!0)){if(s===!1)continue;let u={type:l};s!==null&&typeof s=="object"&&Object.assign(u,s),n.push(u);continue}let i=this.getValidator(l);if(i!==null){let u={type:l,validator:i};n.push(u)}}this.attrRules=St(n);const a=lt(this.attrRules,this.rules);r.nextTick(()=>{this.decorate(a,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(t,...o){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...o]);const a=Un;return a&&typeof a[t]=="function"?Reflect.apply(a[t],a,[...o]):null}decorate(t,o){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,o,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,o,n=!1){n?_e(Me).setValidator(t,o):this.validators[t]=o}getValidator(t){let o=this.validators[t]??null;return o||(o=this.parent?.getValidator(t)??null),o}deleteValidator(t,o=!1){o?_e(Me).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return _e(Me).hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const o=lt(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=St(t):this.rules=St([t]);const n=lt(this.attrRules,this.rules);r.nextTick(()=>{this.decorate(n,o)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let o=lt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(o.length>0){const a={[`${n}`]:o},l=this.getValue(),s={[`${n}`]:l},i=_e(Me),u=new i(a),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 vt(e,t,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const a=o.valueName;o.validateHandler={getValue(l){return l[a]}}}return new Qn(t,o,e)}const er=Symbol.for("EventEmitterKey");class $a{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,o){let n=this.register.get(t);if(n&&Array.isArray(n)){let a=n.findIndex(l=>l===o);a!==-1&&n.splice(a,1)}}on(t,o){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(o)}emit(t,...o){const n=this.register.get(t);n&&n.forEach(a=>{try{Reflect.apply(a,null,[t,...o])}catch(l){console.error(l.message,l)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...o])}}function it(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function tr(e,t){let o=0;return function(...n){const a=new Date().getTime();a-o<t||(o=a,Reflect.apply(e,null,[...n]))}}function Ta(e,t){const o=it((n,a)=>{e=n,a()},t);return r.customRef((n,a)=>({get(){return n(),e},set(l){o(l,a)}}))}function Ea(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function tn(e,t,o,n=0,a=!0){let l=t,s=0;if(a){const u=e();if(s++,u||s>o)return}const i=()=>{const u=e();s++,!(u||s>o)&&(l+=n,setTimeout(i,l))};setTimeout(i,l)}const ve=Symbol("DomainKey"),Ke=Symbol("DataItemsKey");class $t{_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,o=[]){for(const n in t){const a=t[n];o.length>0&&o.indexOf(a)!==-1||(this._props[n]=a)}}has(t){if(Reflect.has(this._props,t)){const o=this._props[t];if(o!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,o){this._props[t]=o}get(t,o){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?o:this.parent.get(t,o)}getForParent(t,o){return this.parent==null?o:this.parent.get(t,o)}getForSelf(t){return this._props[t]}getAll(t){const o=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const a=n._props[t];o.push(a)}n=n._parent}return o}}const Ca=new $t;function We(){return Ca}function Ie(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[ve]??r.inject(ve,null):r.inject(ve,null)}const nn=Symbol("OriginalDateKey");function rn(e,t,o=[],n){const a=r.getCurrentInstance(),l=a?.proxy;let s=r.inject(ve,null);s===null&&(s=We());const i=e||t.prop||t.name,u=new $t(i);u.parent=s;const f=g=>{l[nn]||S(g),u.set("modelValue",g)},c=()=>u.getForSelf("modelValue")??null,d=()=>l[nn]??null,S=g=>{const y={};je(!0,y,r.toRaw(g)),l[nn]=y};r.isReactive(t)?r.watchEffect(()=>{u.merge(t,o)}):u.merge(t,o),t.modelValue&&S(t.modelValue),l[ve]=u,r.provide(ve,u);let w=null,$=null;if(a!==null){const g=r.inject(le,null);w=wt(l,g,i,n),u.broadcast=w,l[le]=w,r.provide(le,w),l.broadcast=(p,E,...V)=>Reflect.apply(w.emit,w,[p,E,...V]);const y=r.inject(Oe,null);$=vt(l,y,{componentName:""}),u.validateSchema=$,l[Oe]=$,r.provide(Oe,$),l[Ke]=new Map,l.validate=(p=!0)=>{const E=[];let V=null;const F={deep:!1};if(p===!0)V={name:"*"};else if(Array.isArray(p)&&p.length>0){const N=p;V={name:x=>x?N.indexOf(x)!==-1:!1}}else if(p!=null&&typeof p=="object"){const N=p;if(F.ignoreHidden=N.ignoreHidden,Array.isArray(N.include)&&N.include.length>0){const x=N.include;V={name:I=>I?x.indexOf(I)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const x=N.exclude;V={name:I=>I?x.indexOf(I)===-1:!1}}else V={name:"*"}}if(V){const N=w?.emitToChildren(V,"validate",F);N&&Reflect.apply([].push,E,N)}return E.length==1?E[0]:E.length>1?Promise.all(E).then(N=>{let x=[];return N.forEach(I=>{I.pass===!1&&Array.isArray(I.errors)&&(x=[...x,...I.errors])}),x.length>0?{pass:!1,errors:x}:{pass:!0}}):Promise.resolve({pass:!0})},l.setNameValidateRules=(p,E=!0)=>{if(E){const V=Reflect.ownKeys(p),F=[...V],N={name:x=>{const I=V.includes(x);if(I){const k=F.findIndex(R=>x===R);k!==-1&&F.splice(k,1)}return I}};w?.emitToChildren(N,"setNameValidateRules",p,!1),F.length>0&&F.forEach(x=>{let I=String(x);const R=or(u,I,{componentName:"",fieldName:I,pureDataValidate:!0},w,$);l[Ke].set(I,R);const B=p[I];B&&R.validateSchema.setRule(B)})}},l.clearValidate=(p=!0)=>{let E=null;if(p===!0)E={name:"*"};else if(Array.isArray(p)&&p.length>0){const V=p;E={name:F=>F?V.indexOf(F)!==-1:!1}}else if(p!=null&&typeof p=="object"){const V=p;if(Array.isArray(V.include)&&V.include.length>0){const F=V.include;E={name:N=>N?F.indexOf(N)!==-1:!1}}else if(Array.isArray(V.exclude)&&V.exclude.length>0){const F=V.exclude;E={name:N=>N?F.indexOf(N)===-1:!1}}else E={name:"*"}}E&&w?.emitToChildren(E,"clearValidate",!1)},l.resetFields=p=>{const E=c();if(!E)return;const V={};if(je(!0,V,d()??{}),Array.isArray(p))p.forEach(F=>{E[F]=V[F]});else if(p&&Array.isArray(p.include))(p.include??[]).forEach(N=>{E[N]=V[N]});else if(p&&Array.isArray(p.exclude)){let F=p.exclude??[];Reflect.ownKeys(V).forEach(N=>{F.includes(N)||(E[N]=V[N])})}else Object.assign(E,V);l.clearValidate(p)},l.setModelValue=(p,E)=>{!E||E===i?f(p):w?.emitToChildren({name:E},"setModelValue",p)},l.getModelValue=()=>c()}return r.onUnmounted(()=>{u.destroy(),l[ve]=void 0,l[Ke]&&(l[Ke].clear(),l[Ke]=void 0),w!==null&&(w.destroy(),l[le]=void 0),$!==null&&($.destroy(),l[Oe]=void 0)}),u}function nr(e,t,o=[]){const a=r.getCurrentInstance()?.proxy;let l=r.inject(ve,null);l===null&&(l=We());const s=e||t.prop||t.name,i=new $t(s);return i.parent=l,r.isReactive(t)?r.watchEffect(()=>{i.merge(t,o)}):i.merge(t,o),a[ve]=i,r.provide(ve,i),r.onUnmounted(()=>{i.destroy(),a[ve]=void 0}),i}function rr(e,t,o){const a=Ie(e)?.get("rules");if(!a)return;let l=a[o];l&&(Array.isArray(l)||(l=[l]),l.forEach(s=>{t.setRule(s)}))}function ue(e,t,o){const a=r.getCurrentInstance()?.proxy,l=t??"",s=r.inject(le,null),i=wt(a,s,l,o);a[le]=i,r.provide(le,i),a.broadcast=($,g,...y)=>Reflect.apply(i.emit,i,[$,g,...y]);const u=r.inject(Oe,null);e.fieldName=e.fieldName??l;const f=vt(a,u,e);a[Oe]=f,r.provide(Oe,f),rr(a,f,l),a.validate=($=null)=>{const g=[];let y=!1,p=!1;if(Array.isArray($)&&$.indexOf(l)!==-1)p=!0,y=!0;else if($&&typeof $=="object"){const E=$;E.ignoreHidden===!0&&qn(a.$el)?p=!1:(Array.isArray(E.include)&&E.include.indexOf(l)!==-1||Array.isArray(E.exclude)&&E.exclude.indexOf(l),p=!0),y=E.deep??!1}else typeof $=="boolean"&&(y=$),p=!0;if(p){const E=f?.validate();g.push(E)}if(y){let E=null;const V={deep:!1};if($===!0)E={name:"*"};else if(Array.isArray($)&&$.length>0){const F=$;E={name:N=>N?F.indexOf(N)!==-1:!1}}else if($!=null&&typeof $=="object"){const F=$;if(V.ignoreHidden=F.ignoreHidden,Array.isArray(F.include)&&F.include.length>0){const N=F.include;E={name:x=>x?N.indexOf(x)!==-1:!1}}else if(Array.isArray(F.exclude)&&F.exclude.length>0){const N=F.exclude;E={name:x=>x?N.indexOf(x)===-1:!1}}else E={name:"*"}}if(E){const F=i.emitToChildren(E,"validate",V);Reflect.apply([].push,g,F)}}return g.length==1?g[0]:g.length>1?Promise.all(g).then(E=>{let V=[];return E.forEach(F=>{F.pass===!1&&Array.isArray(F.errors)&&(V=[...V,...F.errors])}),V.length>0?{pass:!1,errors:V}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=$=>f?.setRule($),a.setNameValidateRules=($,g=!1)=>{const y=$[l];if(y&&f?.setRule(y),g){const p={name:E=>Reflect.ownKeys($).includes(E)};i.emitToChildren(p,"setNameValidateRules",$,!1)}},a.clearValidate=($=null)=>{(!Array.isArray($)||$.indexOf(t??"")!==-1)&&f?.clear();let g=null;if($===!0)g={name:"*"};else if(Array.isArray($)&&$.length>0){const y=$;g={name:p=>p?y.indexOf(p)!==-1:!1}}else if($!=null&&typeof $=="object"){const y=$;if(Array.isArray(y.include)&&y.include.length>0){const p=y.include;g={name:E=>E?p.indexOf(E)!==-1:!1}}else if(Array.isArray(y.exclude)&&y.exclude.length>0){const p=y.exclude;g={name:E=>E?p.indexOf(E)===-1:!1}}else g={name:"*"}}g&&i.emitToChildren(g,"clearValidate",!1)};const c=new $a(a);a[er]=c;const d=it(($="validate")=>{$==="reset"?f.clear():f.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Xn()).forEach($=>{c.on($,g=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Jn()).forEach($=>{c.on($,g=>{d("reset")})}),r.onUnmounted(()=>{i.destroy(),a[le]=void 0,f.destroy(),a[Oe]=void 0,c.destroy(),a[er]=void 0}),{broadcast:i,validateSchema:f,emitEvent:($,...g)=>{Reflect.apply(c.emit,c,[$,...g])},onEvent:($,g)=>{Reflect.apply(c.on,c,[g])},offEvent:($,g)=>{Reflect.apply(c.off,c,[g])}}}function or(e,t,o,n,a){const l={},s=t??"";o.fieldName=s,o.validateHandler={getValue(f){const c=e.getForSelf("modelValue");return c?c[s]:null}};const i=vt({},a,o);l.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 w=f;Array.isArray(w.include)&&w.include.indexOf(s)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(s),S=!0,d=w.deep??!1}else typeof f=="boolean"&&(d=f),S=!0;if(S){const w=i?.validate();c.push(w)}if(d){let w=null;const $={deep:!1};if(f===!0)w={name:"*"};else if(Array.isArray(f)&&f.length>0){const g=f;w={name:y=>y?g.indexOf(y)!==-1:!1}}else if(f!=null&&typeof f=="object"){const g=f;if(Array.isArray(g.include)&&g.include.length>0){const y=g.include;w={name:p=>p?y.indexOf(p)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const y=g.exclude;w={name:p=>p?y.indexOf(p)===-1:!1}}else w={name:"*"}}if(w){const g=u.emitToChildren(w,"validate",$);Reflect.apply([].push,c,g)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(w=>{let $=[];return w.forEach(g=>{g.pass===!1&&Array.isArray(g.errors)&&($=[...$,...g.errors])}),$.length>0?{pass:!1,errors:$}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=f=>i?.setRule(f),l.setNameValidateRules=f=>{const c=f[s];c&&i?.setRule(c)};const u=wt(null,n,s,l);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 o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let a=Number(e.substring(0,o)),l=1;if(rt){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(l=Number(s.substring(0,i)))}return a*=l,a}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*t;const n=Number(e);return isNaN(n)?0:n}const Le="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 on(e,t,o={},n=!0,a=-1,l=-1,s=0,i=0){if(e.headerHeight=re(o.headerHeight??t.headerHeight),e.headerPadding=xe(o.headerPadding??t.headerPadding),e.footerHeight=re(o.footerHeight??t.footerHeight),e.footerPadding=xe(o.footerPadding??t.footerPadding),e.contentPadding=xe(o.contentPadding??t.contentPadding),n){const u=o.height??t.height;u?e.height=re(u,l):e.height=re(l)-re(s,l)-re(i,l),e.width=re(o.width??t.width??0,a)}}function ar(e,t={}){const o={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},a=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});a&&(n.safeAreaTop=re(a.top),n.safeAreaBottom=re(a.bottom),n.safeAreaLeft=re(a.left),n.safeAreaRight=re(a.right));const l=e.get("pageLayout");if(!l)return null;const s=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,f=e.get("footerBarHeight")??0;on(n,l,t,!0,s,i,u,f);const c=r.reactive(n),d=e.getForParent(Le);d&&(n.height=Et(e,d),n.width=Ct(e,d),r.watch([()=>d.height,()=>d.width,()=>d.contentPadding,()=>d.headerMounted,()=>d.footerMounted],()=>{c.height=Et(e,d),c.width=Ct(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")],([w,$,g=-1,y=-1,p=0,E=0])=>{on(c,$,t,S,g,y,p,E)}),e.set(Le,c),c}function Tt(e){return e.get(Le)}function st(e,t){if(t=t??e.get(Le),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function ut(e,t){if(t=t??e.get(Le),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function Et(e,t){if(t=t??e.get(Le),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=st(e,t),n=ut(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function Ct(e,t){return t=t??e.get(Le),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function xa(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function Na(e){return!!e.getForParent(Le)}var $e=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))($e||{});function an(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Se(e,t,o=1,n){const a=Ie();return a==null?e:o===0?r.computed(()=>{const l=a.getAll(t);for(let i=l.length-1;i>=0;i--){const u=l[i];if(an(u,n))return u}const s=e.value;return an(s,n)?s:null}):r.computed(()=>{const l=e.value;return an(l,n)?l:a?.get(t)})}function be(e){return Se(e,"readonly",0,function(o){return te(o)})}function we(e){return Se(e,"disabled",0,function(o){return te(o)})}function ne(e,t="modelValue",o){const n=r.toRef(e,t);let a=n.value;typeof o=="function"&&(a=o(n.value));const l=r.ref(a);return r.watch(n,s=>{if(typeof o=="function"){const i=o(s);i!==l.value&&(l.value=i)}else s!==l.value&&(l.value=s)}),l}const lr=new Map,xt=new Map;let ln=null;function ka(e){ln=e}function ir(e,t,o){if(o){let n=xt.get(o);n||(n=new Map,xt.set(o,n)),n.set(e,t)}else lr.set(e,t)}function Ne(e,t,o){!o&&ln&&(o=ln(e)??void 0);let n=null;if(o){let a=xt.get(o);a&&(n=a.get(t))}return n||(n=lr.get(t)),n}function Va(e,t){for(let o in e){const n=e[o];ir(o,n,t)}}function Oa(e){xt.delete(e)}function Ia(){return{top:0,left:0,bottom:0,right:0}}function Ra(e=0,t=0){if(rt){const o=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,a={width:o,height:n-re(e,n)-re(t,n),headerHeight:44,footerHeight:44};return{rootWidth:o,rootHeight:n,pageLayout:a}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}}class Aa{packages;installers;_version;get version(){return this._version}constructor(t,o,n){this.packages=t,this.installers=o,this._version=n}install(t,o={}){o?.install!==!1&&(this.packages.forEach(l=>{l.install?t.use(l):l.name&&t.component(l.name,l)}),this.installers.forEach(l=>{l(t)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],a=We();if(this.initPageLayout(o,a),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const l=tr(()=>{const i={...o},u=document.documentElement.clientWidth||document.body.clientWidth,f=document.documentElement.clientHeight||document.body.clientHeight;i.width=u,i.height=f,this.initPageLayout(i,a)},150);new window.ResizeObserver(l).observe(window.document.body)}for(const l in o)n.indexOf(l)===-1&&a.set(l,o[l])}initPageLayout(t,o){const n=t.headerBarHeight??0,a=t.footerBarHeight??0,l=je({},Ia(),t.safeAreaInset),s=Ra(n,a),i=je({},s.pageLayout,t.pageLayout);o=o??We(),o.set("safeAreaInset",l),o.set("headerBarHeight",n),o.set("footerBarHeight",a),o.set("pageLayout",i),o.set("rootWidth",s.rootWidth),o.set("rootHeight",s.rootHeight)}setScopeGetter(t){ka(t)}setAPI(t,o,n){ir(t,o,n)}getAPI(t,o,n){return Ne(t,o,n)}batchSetAPI(t,o){Va(t,o)}clearScopeAPI(t){Oa(t)}getRootDomain(){return We()}}const Da=[m.ElAffix,m.ElAlert,m.ElAutocomplete,m.ElAutoResizer,m.ElAvatar,m.ElBacktop,m.ElBadge,m.ElBreadcrumb,m.ElBreadcrumbItem,m.ElButton,m.ElButtonGroup,m.ElCalendar,m.ElCard,m.ElCarousel,m.ElCarouselItem,m.ElCascader,m.ElCascaderPanel,m.ElCheckTag,m.ElCheckbox,m.ElCheckboxButton,m.ElCheckboxGroup,m.ElCol,m.ElCollapse,m.ElCollapseItem,m.ElCollapseTransition,m.ElColorPicker,m.ElConfigProvider,m.ElContainer,m.ElAside,m.ElFooter,m.ElHeader,m.ElMain,m.ElDatePicker,m.ElDescriptions,m.ElDescriptionsItem,m.ElDialog,m.ElDivider,m.ElDrawer,m.ElDropdown,m.ElDropdownItem,m.ElDropdownMenu,m.ElEmpty,m.ElForm,m.ElFormItem,m.ElIcon,m.ElImage,m.ElImageViewer,m.ElInput,m.ElInputNumber,m.ElLink,m.ElMenu,m.ElSubMenu,m.ElMenuItem,m.ElMenuItemGroup,m.ElPageHeader,m.ElPagination,m.ElPopconfirm,m.ElPopover,m.ElPopper,m.ElProgress,m.ElRadio,m.ElRadioButton,m.ElRadioGroup,m.ElRate,m.ElResult,m.ElRow,m.ElScrollbar,m.ElSelect,m.ElOption,m.ElOptionGroup,m.ElSelectV2,m.ElSkeleton,m.ElSkeletonItem,m.ElSlider,m.ElSpace,m.ElSteps,m.ElStep,m.ElSwitch,m.ElTable,m.ElTableColumn,m.ElTableV2,m.ElTabs,m.ElTabPane,m.ElTag,m.ElTimePicker,m.ElTimeSelect,m.ElTimeline,m.ElTimelineItem,m.ElTooltip,m.ElTransfer,m.ElTree,m.ElTreeSelect,m.ElTreeV2,m.ElUpload],Fa=[m.ElInfiniteScroll,m.ElLoading,m.ElMessage,m.ElMessageBox,m.ElNotification,m.ElPopoverDirective],Ba=e=>{Da.forEach(t=>{let o=t.name;typeof o=="string"?(o=`Fox${o.slice(2)}`,e.component(o,t)):e.use(t)}),Fa.forEach(t=>{e.use(t)})};function Q(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=t,o.install=n=>{n.component(o.name,o)},r.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,r.defineComponent(o)}}}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}},sr={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}},ur={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}},cr=[];for(const e in ur)cr.push(e);function fe(e,t=null){if(t||(t=r.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const La=Symbol.for("InnerPageScopeKey"),qa=(e,t)=>({inheritAttrs:!0,props:{...ie,...sr,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(o,n){const a=rn(o.name,o);if(a){const f=ar(a,o);fe({getPageContentHeight:()=>Et(a,f),getPageContentWidth:()=>Ct(a,f),getPageHeaderHeight:()=>st(a,f),getPageFooterHeight:()=>ut(a,f)});const c=r.inject(La,!1);f&&c&&(f.contentHeight="100%")}const l=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(()=>o.rules,(f,c)=>{if(!f&&!c)return;const d=r.toRaw(c),S=r.toRaw(f),w=S?Reflect.ownKeys(S):[];(d?Reflect.ownKeys(d):[]).forEach(g=>{w.includes(g)||(S[g]=[])}),u(S)},{deep:!0}),r.onMounted(()=>{if(o.rules){const f=r.toRaw(o.rules);u(f)}}),r.onBeforeUnmount(()=>{}),{classes:l,styles:s}}}),{componentName:Ma,create:ja,scope:_c}=Q("page"),_a=ja(qa(Ma));function Pa(e,t,o,n,a,l){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),title:""},[r.renderSlot(e.$slots,"default")],6)}const Te=(e,t)=>{const o=e.__vccOpts||e;for(const[n,a]of t)o[n]=a;return o},fr=Te(_a,[["render",Pa]]),Ha=["aria-labelledby"],za=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),Ka=[za],Wa=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 o=e,n=i=>{t("click",i)},a=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},l=r.computed(()=>{const i="fox-icon";return{[o.class]:!!o.class,[i]:!0,[i+"-"+o.name]:o.name}}),s=r.computed(()=>{const i={};return i.height=a(o.height)??a(o.size),i.width=a(o.width)??a(o.size),i.color=o.color,i});return(i,u)=>(r.openBlock(),r.createElementBlock("svg",{class:r.normalizeClass(l.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"},Ka,14,Ha))}});function sn(e){const t=r.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function un(e){const t=r.unref(e),o=window.getComputedStyle(t,null),n=parseFloat(o.getPropertyValue("padding-left")),a=parseFloat(o.getPropertyValue("padding-right")),l=parseFloat(o.getPropertyValue("padding-top")),s=parseFloat(o.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-a,height:t.clientHeight-l-s}}const Ya=(e,t,o,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:o},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(a,l){const s=Ie(),i=s?Tt(s):null;i&&(i.headerMounted=!0);const u=r.computed(()=>{const b=e;return{[b]:!0,[`${b}--border`]:a.border,[`${b}--fixed`]:a.fixed,[`${b}--safe-area-inset-top`]:a.safeAreaInsetTop}}),f=a.height!==null&&a.height!==void 0?re(a.height):null,c=r.computed(()=>{const b={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const T=xe(a.padding??i.headerPadding);return Object.assign(b,T),f&&(i.headerHeight=f),b.height=i.headerHeight,b.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,b.safeAreaTop>0&&(b.top=b.safeAreaTop+(T.top??0),b.height=b.height+b.safeAreaTop),b}if(f&&(b.height=f),a.padding){const T=xe(a.padding);Object.assign(b,T)}return b}),d=r.ref(null),S=()=>{if(i&&d.value&&d.value.offsetParent!==null){if(!n){const b=sn(d.value);i.headerAllHeight=b.height}return i.headerMounted=!0,!0}return!1};r.onMounted(()=>{i&&tn(S,50,5,50,!0)}),r.onUnmounted(()=>{i&&(i.headerMounted=!1)});const w=r.computed(()=>{const b={};return c.value.height!==null&&c.value.height!==void 0&&(b.height=`${c.value.height}px`),c.value.top!==null&&c.value.top!==void 0&&(b.paddingTop=`${c.value.top}px`),c.value.left!==null&&c.value.left!==void 0&&(b.paddingLeft=`${c.value.left}px`),c.value.right!==null&&c.value.right!==void 0&&(b.paddingRight=`${c.value.right}px`),c.value.bottom!==null&&c.value.bottom!==void 0&&(b.paddingBottom=`${c.value.bottom}px`),b}),$=r.computed(()=>{const b={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(b.top=`${c.value.safeAreaTop}px`),b}),g=r.computed(()=>{const b={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(b.top=`${c.value.safeAreaTop}px`),b}),y=r.computed(()=>!!a.leftShow),p=r.computed(()=>!(c.value.height!==null&&c.value.height!==void 0&&c.value.height<=0)),E=r.computed(()=>a.titleShow?a.title||a.titleIcon||l.slots.titleIcon||l.slots.default:!1),V=r.computed(()=>a.rightShow?a.rightText||a.rightIcon||l.slots.rightIcon||l.slots.right:!1),F=r.computed(()=>a.leftIcon),N=r.computed(()=>F.value||l.slots.leftIcon),x=r.computed(()=>a.titleIcon),I=r.computed(()=>a.titleIcon||l.slots.titleIcon),k=r.computed(()=>a.rightIcon),R=r.computed(()=>a.rightIcon||l.slots.rightIcon);function B(){l.emit("back")}function z(){l.emit("click-title")}function _(){l.emit("click-right")}function v(){l.emit("click-right-text")}return{headerBarRef:d,classes:u,styles:w,mHeaderShow:p,leftStyles:$,rightStyles:g,mLeftShow:y,mTitleShow:E,mRightShow:V,mLeftIcon:F,hasLeftIcon:N,mTitleIcon:x,hasTitleIcon:I,mRightIcon:k,hasRightIcon:R,handleLeft:B,handleCenter:z,handleRight:_,handleRightText:v}}}),{componentName:Ua,create:Ga,scope:Xa}=Q("header-bar"),Za=Ga(Ya(Ua,Xa,Wa)),Ja={key:1,class:"fox-header-bar__title"},Qa={key:0,class:"title-text"};function el(e,t,o,n,a,l){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",Ja,[r.renderSlot(e.$slots,"default",{},()=>[e.title?(r.openBlock(),r.createElementBlock("view",Qa,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 dr=Te(Za,[["render",el]]);function tl(e,t,o=!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,a){const l=Ie(),s=l?Tt(l):null,i=r.computed(()=>{const w=e;return{[w]:!0,[`${w}--${n.align}`]:!0,[`${w}--border`]:n.border,[`${w}--fixed`]:n.fixed,[`${w}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?re(n.height):null,f=r.computed(()=>{const w={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(l&&s){const $=xe(n.padding??s.footerPadding);return Object.assign(w,$),u&&(s.footerHeight=u),w.height=s.footerHeight,w.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,w.safeAreaBottom>0&&(w.height=w.height+w.safeAreaBottom,w.bottom=w.safeAreaBottom+($.bottom??0)),w}if(u&&(w.height=u),n.padding){const $=xe(n.padding);Object.assign(w,$)}return w}),c=r.ref(null),d=()=>{if(s&&c.value&&c.value.offsetParent!==null){if(!o){const w=sn(c.value);s.footerAllHeight=w.height}return s.footerMounted=!0,!0}return!1};r.onMounted(()=>{s&&tn(d,50,5,50,!0)}),r.onUnmounted(()=>{s&&(s.footerMounted=!1)});const S=r.computed(()=>{const w={};return f.value.height!==null&&f.value.height!==void 0&&(w.height=ce(f.value.height)),f.value.top!==null&&f.value.top!==void 0&&(w.paddingTop=ce(f.value.top)),f.value.left!==null&&f.value.left!==void 0&&(w.paddingLeft=ce(f.value.left)),f.value.right!==null&&f.value.right!==void 0&&(w.paddingRight=ce(f.value.right)),f.value.bottom!==null&&f.value.bottom!==void 0&&(w.paddingBottom=ce(f.value.bottom)),w});return{footerBarRef:c,classes:i,styles:S}}}}const{componentName:nl,create:rl,scope:Pc}=Q("footer-bar"),ol=rl(tl(nl));function al(e,t,o,n,a,l){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 hr=Te(ol,[["render",al]]);function ll(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const n=Ie(),a=r.computed(()=>({[e]:!0})),l=n?Tt(n):null,s=r.computed(()=>{const f={};if(n&&l){if(o.padding){const w=xe(o.padding);Object.assign(l.contentPadding,w)}const c=st(n,l),d=ut(n,l);let S="";if(l.contentHeight?S=`${l.contentHeight}`:S=`${l.height}px`,l.contentPadding,f.height=S,l.contentPadding.top||c>0){const w=(l&&l.contentPadding&&l.contentPadding.top)??0;f.paddingTop=`${c+w}px`}if(l.contentPadding.bottom||d>0){const w=(l&&l.contentPadding&&l.contentPadding.bottom)??0;f.paddingBottom=`${d+w}px`}return l.contentPadding.left&&(f.paddingLeft=`${l.contentPadding.left}px`),l.contentPadding.right&&(f.paddingRight=`${l.contentPadding.right}px`),f}if(o.padding){const c=xe(o.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(l&&i.value){const f=un(i.value);l.contentInnerHeight=f.height,l.contentInnerWidth=f.width}};return r.onMounted(()=>{u()}),n&&l&&r.watch([()=>st(n),()=>ut(n)],([])=>{u()}),{contentRef:i,classes:a,styles:s}}}}const{componentName:il,create:sl,scope:Hc}=Q("content"),ul=sl(ll(il));function cl(e,t,o,n,a,l){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 gr=Te(ul,[["render",cl]]),Ye="GroupStateKey",mr=Symbol.for("GroupScopeKey");function Nt(){return r.inject(mr,!1)}function kt(e=!0){r.provide(mr,e)}function fl(e,t={}){const n={type:"form",width:e.get("width",-1),column:-1,gutter:-1};Object.assign(n,t);const a=r.shallowRef(n),l=r.markRaw({layout:a,passport:0,order:{index:0}});return e.set(Ye,l),l}function cn(e,t,o=-1,n=-1,a=!1,l,s){const i=e.get(Ye);if(!i)return;const u=e.get("groupLayout")??{};o===-1&&(o=u.column??1),n===-1&&(n=u.gutter??0),l||(l=u.minItemWidth??-1),s||(s=u.maxItemWidth??-1);const f=re(l),c=re(s),d=()=>{const S=t===""||t===-1,w=re(t);let $=ge(o);const g=re(n);if(!S){let E=(w-($-1)*g)/$;for(;c!==-1&&E>c;)$++,E=(w-($-1)*g)/$;for(;f!==-1&&$>1&&E<f;)$--,E=(w-($-1)*g)/$}let y=!1;const p=i.layout;p.value.width=t,p.value.column!==$&&(p.value.column=$,y=!0),p.value.gutter!==g&&(p.value.gutter=g,y=!0),y&&r.triggerRef(p)};if(a)d();else{const S=++i.passport;setTimeout(()=>{S===i.passport&&d()},50)}}function Vt(e,t=!1){let o;return t?o=e.getForParent(Ye):o=e.get(Ye),o.layout}function Ot(e,t=!1){let o;return t?o=e.getForParent(Ye):o=e.get(Ye),o.order}function pr(e,t=1){if(t==="stretch")return-1;const o=ge(t);return o===-1?100:100*o/e}function It(e,t,o=1,n=0,a){const l={};let s=0;a?s=re(a):s=pr(t.column,o),s>0&&(l.width=`${s}%`);const i=pr(t.column,n);i>0&&(l["margin-left"]=`${i}%`);const u=t.gutter/2;return u>0&&(l["padding-left"]=`${u}px`,l["padding-right"]=`${u}px`),l}function Rt(e,t,o=1,n=0){if(o==="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 a=ge(o);if(a===-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(a>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 l=ge(n)%t.column;let s=(e.index+l)%t.column,i=s+a;return i>t.column?(s=0,i=s+a,e.index=e.index+(t.column-s)+a):e.index=e.index+l+a,l>0?{"grid-column":`${s+1} / span ${a}`}:{"grid-column-start":`span ${a}`}}function fn(e){let t=e.offsetHeight;if(t<=0){const o=e.cloneNode(!0),n=e.offsetWidth;o.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),t=o.offsetHeight,document.body.removeChild(o)}return t}function dl(e,t,o){if(e<=0)return"1fr";const n=(e-(t-1)*o)/t;return n>0?`${n}px`:"1fr"}function hl(e,t,o){return{props:{...ie,...sr,...ur},emits:["update:collapse"],setup(n,a){const l=rn(n.name,n,cr),s=fl(l,{type:n.type}),i=Nt();kt(!0);const u=r.computed(()=>i&&l?Vt(l,!0).value:null),f=r.getCurrentInstance(),c=M=>{const Y=f?.proxy;Y&&typeof Y.setNameValidateRules=="function"&&Y.setNameValidateRules(M,!0)};r.watch(()=>n.rules,(M,Y)=>{if(!M&&!Y)return;const G=r.toRaw(Y),D=r.toRaw(M),U=D?Reflect.ownKeys(D):[];(G?Reflect.ownKeys(G):[]).forEach(j=>{U.includes(j)||(D[j]=[])}),c(D)},{deep:!0});const d=e,S=r.computed(()=>{const M={};M.height=v.value;const Y=i?Ot(l,!0):null;if(u.value&&Y){if(u.value.type==="grid"){const G=Rt(Y,u.value,n.span,n.offset);Object.assign(M,G)}else if(u.value.type==="flow"){const G=It(Y,u.value,n.span,n.offset,n.width);Object.assign(M,G)}}else if(n.width){const G=ce(n.width);M.width=G}return O.value&&(M["box-sizing"]="content-box"),M}),w=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 M="";if(n.columnWidth)M=`repeat(auto-fill, ${n.columnWidth})`;else{const Y=dl(x.value,s.layout.value.column,s.layout.value.gutter);M=`repeat(${s.layout.value.column}, ${Y})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":M}}}),g=r.toRef(n,"title"),y=r.toRef(n,"gutter"),p=r.toRef(n,"column"),E=r.computed(()=>i?!0:te(n.isWrap)),V=[],F=M=>{V.push(M)},N=()=>{let M=V.length;V.splice(0,M)},x=r.ref(-1),I=M=>{const Y=un(M).width;Y>0&&Y!==x.value&&(x.value=Y)};cn(l,x.value,p.value,y.value,!0,n.minItemWidth,n.maxItemWidth),n.autoLayout&&r.watch([x,p,y],([M,Y,G])=>{s.order.index=0,cn(l,M,Y,G,!1,n.minItemWidth,n.maxItemWidth)});const k=r.computed(()=>b.value?n.expandText??"":n.collapseText??""),R=r.computed(()=>({[`${e}__header-collapse-text`]:!0})),B=r.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!b.value,"is-collapse":b.value})),z=r.ref(),_=r.ref(),v=r.computed(()=>T.value||ce(n.height)||""),b=r.ref(!1),T=r.ref(""),O=r.ref(!1);let q=-1;const W=(M,Y=!0)=>{const G=z.value;if(G&&b.value!==M){if(q=q===-1?fn(G):q,O.value=!0,Y)if(G.style["will-change"]="height",G.ontransitionend=function(){G.ontransitionend=null,this.style["will-change"]="auto",M||(T.value="",O.value=!1)},M){let D=0;n.collapseHeight?D=n.collapseHeight:_.value&&_.value.classList.contains(`${e}__header`)&&(D=fn(_.value)),T.value=`${q}px`,r.nextTick(()=>{T.value=`${D}px`})}else T.value=`${q}px`;else if(M){let D=0;n.collapseHeight?D=n.collapseHeight:_.value&&_.value.classList.contains(`${e}__header`)&&(D=fn(_.value)),T.value=`${D}px`}else O.value=!1,T.value=`${q}px`;b.value=M,a.emit("update:collapse",M)}};r.watch(()=>n.collapse,M=>{W(M)});const C=()=>{A()},A=M=>{M=M??!b.value,W(M)};fe({toggleCollapse:A,doLayout:()=>{V[0]&&(I(V[0]),cn(l,x.value,p.value,y.value,!0,n.minItemWidth,n.maxItemWidth))}});let L=null;r.onMounted(()=>{if(n.rules){const M=r.toRaw(n.rules);c(M)}if(rt&&(W(te(n.collapse),!1),n.autoLayout&&Array.isArray(V)&&V.length>0)){const M=V[0];I(M),window.ResizeObserver&&(L=new window.ResizeObserver(()=>{I(M)}),L.observe(M))}}),r.onUnmounted(()=>{L?.disconnect()});const K=(M,Y,G,D)=>{const U={...w.value};return Y===0&&(U[`${d}__first`]=!0),G>=D-1&&(U[`${d}__last`]=!0),r.h("div",{ref:F,key:`${Y}`,class:U,style:$.value},M)};return()=>{s.order.index=0;const M=[];let Y=0;if(a.slots.header){const D={key:`${Y++}`,ref:_,class:{[`${d}__header`]:!0,[`${d}__first`]:!0}},U=r.h("div",D,[a.slots.header()]);M.push(U)}else{const D=[];if(g.value){if(n.showMark){const P={class:{[`${d}__header-mark`]:!0}};n.markColor&&(P.style={background:n.markColor});const j=r.h("div",P);D.push(j)}const U=r.h("div",{class:{[`${d}__header-title`]:!0}},[g.value]);D.push(U)}if(a.slots.toolbar&&D.push(a.slots.toolbar()),n.showCollapse){const U=[];if(k.value){const X={class:R.value},Z=r.h("span",X,[k.value]);U.push(Z)}const P={class:B.value},j=o(n.collapseIcon,P);if(j&&U.push(j),U.length>0){const X=r.h("div",{class:{[`${d}__header-collapse`]:!0},onClick:C},U);D.push(X)}}if(D.length>0){const U={key:`${Y++}`,ref:_,class:{[`${d}__header`]:!0,[`${d}__first`]:!0}},P=r.h("div",U,D);M.push(P)}}N();const G=a.slots.default?a.slots.default():[];if(n.type==="grid"){const D=K(G,Y++,0,G.length);M.push(D)}else if(n.type==="flow"){const D=K(G,Y++,0,G.length);M.push(D)}else for(let D=0;D<G.length;D++){const U=G[D],P=K([U],Y++,D,G.length);M.push(P)}if(E.value){const D=n.tag||"div";return r.h(D,{ref:z,prop:n.name,class:{[`${d}`]:!0,"is-collapse":O.value},style:S.value},[M])}else return M}}}}const{componentName:gl,create:ml,scope:pl}=Q("group"),yr=ml(hl(gl,pl,(e,t)=>(e=e??Ve.ArrowUp,r.h(m.ElIcon,t,{default:()=>[r.h(e)]}))));function yl(e){return e===window}const bl=/matrix\((.+)\)/,br=e=>{const t=r.unref(e);if(!t)return{x:0,y:0};if(yl(t))return{x:0,y:0};let o=0,n=0,a=t;for(;a!==null;)o+=a.offsetLeft,n+=a.offsetTop,a=a.offsetParent;let l=0,s=0,i=0,u=0;for(a=t;a!==document;){s+=a.scrollTop,l+=a.scrollLeft;const{transform:f}=window.getComputedStyle(a);if(f){const c=bl.exec(f);if(c){let S=c[1].split(/\s*,\s*/);S.length==6&&(i+=Number(S[4]),u+=Number(S[5]))}}a=a.parentNode}return o-=l,n-=s,o+=i,n+=u,{x:o,y:n}};function wl(e){return e===window}const dn=e=>{const t=r.unref(e);if(wl(t)){const o=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:o,bottom:n,width:o,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}};class Sl{watchedListeners=[];add(t){this.watchedListeners.push(t)}remove(t){const o=this.watchedListeners.indexOf(t);o!==-1&&this.watchedListeners.splice(o,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(t=>{try{t()}catch{}})}}class vl{monitorRegister=new WeakMap;watch(t,o){let n=t.parentNode;const a=document.body.parentNode;for(;n&&n!==a;){let l=this.monitorRegister.get(n);l||(l=new Sl,n.addEventListener("scroll",l.listen),n===document.body&&n.addEventListener("resize",l.listen),this.monitorRegister.set(n,l)),l.add(o),n=n.parentNode}}unwatch(t,o){let n=t.parentNode;const a=document.body.parentNode;for(;n&&n!==a;){let l=this.monitorRegister.get(n);l&&(l.remove(o),l.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",l.listen),n===document.body&&n.removeEventListener("resize",l.listen))),n=n.parentNode}}}const wr=new vl,Sr={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:$l,create:Tl}=Q("price"),El=Tl({props:{...Sr},setup(e){const t=r.computed(()=>({[$l]:!0})),o=r.computed(()=>e.needSymbol?e.symbol:""),n=r.computed(()=>ot(e.price)==0?"":pt(e.price,e.decimalLength,!0,ge(e.digits),e.separator)),a=r.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),l=r.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(i+1)});return{classes:t,showSymbol:o,intText:a,decimalText:l}}}),Cl=["innerHTML"],xl=["innerHTML"];function Nl(e,t,o,n,a,l){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,Cl)):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 hn=Te(El,[["render",Nl]]),{componentName:At,create:kl}=Q("hint-text"),Vl=kl({components:{Price:hn},props:{...Sr,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 l=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(()=>({[At]:!0})),S=r.ref(null),w=(k,R,B=10)=>{if(!rt||R===!1||!k)return;l.value=!0;const z=dn(e.reference);u.value=z.width,f.value=z.height,setTimeout(()=>{if(!S.value)return;const _=br(e.reference),v=document.documentElement.clientWidth||document.body.clientWidth,b=S.value.offsetWidth,T=S.value.offsetHeight;_.y-T>=0?(c.value="top",s.value.y=_.y-T-10-4,i.value.y=T):(c.value="bottom",s.value.y=_.y+f.value+10,i.value.y=-10);const O=_.x+b-v;O<0?(s.value.x=_.x,i.value.x=20):(s.value.x=_.x-O,i.value.x=O+20),l.value=!1},B)},$=it(()=>{w(e.message,e.visible)},10),g=r.computed(()=>e.visible&&y.value),y=r.ref(!0),p=it(k=>{const R=k[0];R&&(y.value=R.isIntersecting)},10),E=new IntersectionObserver(p);r.watch([()=>e.message,()=>e.visible],([k,R])=>{w(k,R)}),r.onMounted(()=>{w(e.message,e.visible),wr.watch(e.reference,$),E.observe(e.reference)}),r.onBeforeMount(()=>{wr.unwatch(e.reference,$),E.unobserve(e.reference),E.disconnect()});const V=r.computed(()=>{const k={"min-width":ce(u.value)};return l.value?k.visibility="hidden":k.transform=`translate(${s.value.x}px, ${s.value.y}px)`,k}),F=r.computed(()=>({[`${At}__content`]:!0})),N=r.computed(()=>({})),x=r.computed(()=>({[`${At}__arrow`]:!0,[`${At}__arrow-${e.placement}`]:!0})),I=r.computed(()=>({top:`${i.value.y}px`,left:`${i.value.x}px`}));return{show:g,tipRef:S,classes:d,styles:V,textClasses:F,textStyles:N,arrowClasses:x,arrowStyles:I}}}),Ol={key:1,class:"text"};function Il(e,t,o,n,a,l){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",Ol,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 Dt=Te(Vl,[["render",Il]]);class vr{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 gn={},Rl=new vr,Ue=new Map,mn=e=>{if(e){const t=document.getElementById(e);Ue.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of Ue.keys()){const o=document.getElementById(t);o&&o.parentNode?.removeChild(o)}Ue.clear()}},Al=e=>{const t=document.getElementById(e.id);if(t){const o=Ue.get(e.id);o?e={...gn,...o,...e}:e={...gn,...e};const n=r.createVNode(Dt,e);return r.render(n,t),e.id}},Dl=e=>{e.unmount=mn;let t;if(e.id){if(t=e.id,Ue.has(t))return Al(e)}else t=`hinttext_${Rl.get()}`;e={...gn,...e},e.id=t,Ue.set(t,e);const o=document.createElement("div");o.id=e.id;const n=r.createVNode(Dt,e);return r.render(n,o),document.body.appendChild(o),t},Fl=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Ft={show(e,t,o={},n=!0){return n&&mn(),Fl(t),Dl({...o,message:t,reference:e})},hide(e){mn(e)},install(e){e.config.globalProperties.$hintText=Ft}},{componentName:$r,create:Bl}=Q("item"),Ll=Bl({inheritAttrs:!0,props:{...ie,...pe},emits:["appear","disappear"],setup(e,t){const o=e.prop??t.attrs.name;ue({componentName:$r,validate:!1},o);const n=Ie(),a=Nt();kt(!1);const l=r.computed(()=>a&&n?Vt(n,!1).value:null),s=$r,i=r.ref(null),u=r.computed(()=>{const D={[s]:!0,[`${s}__gutter`]:l.value&&l.value.type!=="flow",[`${s}__stretch`]:e.span==="stretch",[`${s}__input--border`]:e.hasBorder};if(D[e.errorMarkClass]=!!z.value,D[e.warnMarkClass]=!!R.value,D[e.infoMarkClass]=!!I.value,typeof i.value=="function"){const U=i.value(o);D[U]=!0}else if(typeof i.value=="string"){const U=i.value;D[U]=!0}return D}),f=r.computed(()=>{const D={},U=a&&n?Ot(n,!1):null;if(l.value&&U)if(l.value.type==="grid"){const P=Rt(U,l.value,e.span,e.offset);Object.assign(D,P)}else if(l.value.type==="flow"){const P=It(U,l.value,e.span,e.offset,e.width);Object.assign(D,P)}else return e.width&&(D.width=ce(e.width)),D;else e.width&&(D.width=ce(e.width));return D}),c=r.ref(null),d=r.computed({get:()=>c.value??te(e.isRequired),set:D=>{c.value=D}}),S=r.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),w=Se(r.toRef(e,"labelPosition"),"labelPosition",$e.Near),$=r.computed(()=>w&&w.value==="top"?"top":w&&w.value==="right"?"right":"left"),g=r.computed(()=>({[`${s}__main`]:!0,[`${s}__main--${$.value}`]:!0})),y=r.computed(()=>({label:!0,[`label--${$.value}`]:!0})),p=Se(r.toRef(e,"labelWidth"),"labelWidth",$e.Near),E=r.computed(()=>p&&p.value?{width:ce(p.value)}:{}),V=r.computed(()=>({"label--string":!0,"label--required":d.value})),F=r.computed(()=>({content:!0,[e.contentClass]:!0})),N=r.computed(()=>({...e.contentStyle})),x=r.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});fe({setRequired(D){d.value=D},setErrorTip(D){x.errorTip=D},setErrorIcon(D){x.errorIcon=D},setWarnTip(D){x.warnTip=D},setWarnIcon(D){x.warnIcon=D},setInfoTip(D){x.infoTip=D},setInfoIcon(D){x.infoIcon=D},setCustomClassName(D){i.value=D}});const I=r.computed(()=>e.infoTip||x.infoTip),k=r.computed(()=>e.infoIcon||x.infoIcon),R=r.computed(()=>e.warnTip||x.warnTip),B=r.computed(()=>e.warnIcon||x.warnIcon),z=r.computed(()=>e.errorTip||x.errorTip),_=r.computed(()=>e.errorIcon||x.errorIcon),v=r.computed(()=>z.value?"error":R.value?"warn":I.value?"info":""),b=r.computed(()=>v.value.length>0),T=r.computed(()=>v.value==="error"?z.value:v.value==="warn"?R.value:v.value==="info"?I.value:""),O=r.computed(()=>v.value==="error"?_.value:v.value==="warn"?B.value:v.value==="info"?k.value:null),q=r.computed(()=>{let D={[`${s}__tip`]:!0,[`${s}__tip--${v.value}`]:!0};return v.value==="error"&&e.errorClass?D[`${e.errorClass}`]=!0:v.value==="warn"&&e.warnClass?D[`${e.warnClass}`]=!0:v.value==="info"&&e.infoClass&&(D[`${e.infoClass}`]=!0),D}),W=r.computed(()=>{let D={};return w&&w.value==="top"||!S.value?D["padding-left"]="0px":p&&p.value&&(D["padding-left"]=ce(p.value)),D}),C=()=>r.h(O.value,{width:12,height:12}),A=r.computed(()=>t.slots.fixedTip),H=r.computed(()=>({[`${s}__fixed-tip`]:!0})),L=r.ref();let K="";r.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([D,U,P,j])=>{L.value&&(D&&!ae(U)?K?Ft.show(L.value,U,{...j,id:K,type:P},!0):K=Ft.show(L.value,U,{...j,type:P},!0):Ft.hide(K))});let M=null;const Y=()=>{M||!L.value||(M=new IntersectionObserver(D=>{let U=!1;for(let P of D)if(P.intersectionRatio>0){U=!0,U&&t.emit("appear",P);break}U||t.emit("disappear")}),M.observe(L.value))},G=()=>{!M||!L.value||(M.unobserve(L.value),M=null)};return r.watch(()=>te(e.appearListen),D=>{D?Y():G()}),r.onMounted(()=>{te(e.appearListen)&&Y()}),r.onUnmounted(G),{classes:u,styles:f,mainClasses:g,hasLabel:S,labelClasses:y,labelStyles:E,labelStringClasses:V,contentClasses:F,contentStyles:N,contentRef:L,hasTip:b,mTip:T,mIcon:O,renderIcon:C,tipClasses:q,tipStyles:W,hasFixedTip:A,fixedTipClasses:H}}}),ql=["prop"],Ml={key:0,class:"fox-item__tip--icon"},jl={class:"fox-item__tip--text"};function _l(e,t,o,n,a,l){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",Ml,[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.renderIcon())))])):r.createCommentVNode("",!0),r.createElementVNode("div",jl,r.toDisplayString(e.mTip),1)],6)):r.createCommentVNode("",!0)]),_:1}),r.renderSlot(e.$slots,"hide")],14,ql)}const de=Te(Ll,[["render",_l]]);function Pl(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(o,n){const a=Ie(),l=Nt();kt(!1);const s=r.computed(()=>l&&a?Vt(a,!1).value:null),i=e,u=r.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:o.span==="stretch"})),f=r.computed(()=>{const c={},d=l&&a?Ot(a,!1):null;if(s.value&&d)if(s.value.type==="grid"){const S=Rt(d,s.value,o.span,o.offset);Object.assign(c,S)}else if(s.value.type==="flow"){const S=It(d,s.value,o.span,o.offset,o.width);Object.assign(c,S)}else return o.width&&(c.width=ce(o.width)),c;else o.width&&(c.width=ce(o.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:Hl,create:zl,scope:Kc}=Q("slot-item"),Tr=zl(Pl(Hl));function Kl(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(o,n){const a=e,l=r.computed(()=>({[a]:!0,[`${a}__stretch`]:o.span==="stretch",[`${a}__${o.align}`]:!0})),s=Ie(),i=Nt();kt(!1);const u=r.computed(()=>{const f={};if(i&&s){const c=Vt(s,!1),d=Ot(s,!1);if(c.value&&d)if(c.value.type==="grid"){const S=Rt(d,c.value,o.span,o.offset);Object.assign(f,S)}else if(c.value.type==="flow"){const S=It(d,c.value,o.span,o.offset,o.width);Object.assign(f,S)}else o.width&&(f.width=ce(o.width))}else o.width&&(f.width=ce(o.width));return f});return()=>{const f=[];if(n.slots.default){const d=n.slots.default();if(o.divide)for(let S=0;S<d.length;S++){if(S>0){const w=r.h("div",{class:{[`${a}__divide`]:!0}});f.push(w)}f.push(d[S])}else Reflect.apply([].push,f,d)}const c={class:l.value,style:u.value};return r.h("div",c,f)}}}}const{componentName:Wl,create:Yl,scope:Wc}=Q("row-item"),Er=Yl(Kl(Wl)),Cr={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 Ul(e,t,o){return{props:{...ie,...pe,...Cr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=we(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ce.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ne(n,"modelValue"),S=e,w=r.computed(()=>({[S]:!0,[`${S}__disabled`]:l.value,[`${S}__readonly`]:s.value})),$=v=>{d.value=v,i("update:modelValue",v),i("input",v)},g=v=>{i("change",v)};let y=ne(n,"hintText"),p=r.ref(!1);const E=v=>{let T=v.target.value;c.value=!0,ae(y.value)||(p.value=!0),i("focus",T,v)},V=v=>{setTimeout(()=>{p.value&&(p.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)},F=()=>{i("clear","")},N=r.ref(!1);let x=null;const I=()=>{n.showTooltip&&N.value===!1&&(x=setTimeout(()=>{N.value=!0},150))},k=()=>{x&&(clearTimeout(x),N.value=!1,x=null)},R=r.computed(()=>N.value||p.value),B=r.computed(()=>N.value?d.value:y.value),z=r.computed(()=>ot(n.unit)>0),_=r.ref();return fe({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},select:()=>{_?.value.select()}}),()=>{const b={...a.attrs,ref:_,class:w.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:l.value,readonly:s.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:F,onChange:g,onInput:$,onFocus:E,onBlur:V,onMouseover:I,onMouseleave:k},T={};a.slots.prepend&&(T.prepend=a.slots.prepend),a.slots.append&&(T.append=a.slots.append),a.slots.prefix&&(T.prefix=a.slots.prefix),a.slots.suffix?T.suffix=a.slots.suffix:z.value&&(T.suffix=()=>[n.unit]);const O=[],q=r.h(m.ElInput,b,T);O.push(q);const W={default:()=>O};a.slots.default&&(W.label=a.slots.default),a.slots.default&&(W.fixedTip=a.slots.fixedTip);const A={...me(n,Cr),hintText:B.value,hintVisible:R.value,prop:`${n.prop}_item`};return r.h(o,A,W)}}}}const{componentName:Gl,create:Xl,scope:Zl}=Q("input-item"),xr=Xl(Ul(Gl,Zl,de));function Pe(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ge(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Nr(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function Jl(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Ql=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const a=Ne(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Fe(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}};function ei(){const e=r.getCurrentInstance();return new Ql(e.proxy)}function kr(e,t,o){const n=Pe(e,t),a=Pe(e,o);if(n!==a)return!1;const l=Ge(e,t),s=Ge(e,o);return l===s}function Vr(e,t,o,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];return t.forEach(l=>{for(let s of n){const i=Nr(e,s);if(Array.isArray(i)&&i.length>0){const u=Vr(e,l,o,i)??[];Reflect.apply([].push,a,u)}else{let u=!1;if(o==="text")u=Pe(e,s)===l;else if(o==="item")u=kr(e,s,l);else{let f=Ge(e,s);f==null&&(f=Pe(e,s)),u=f===l}if(u){a.push(s);break}}}}),a}function ti(e){return{text:e,value:e}}const Or={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 ni(e,t,o){return{props:{...ie,...pe,...Or},emits:["change","update:modelValue","blur","focus","clear","visible-change","remove-tag","selected"],setup(n,a){const l=we(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ce.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(null),d=r.ref([]),S=(L,K,M,Y=!0)=>{const G=Vr(n,L,K,M);if(G===null){if(d.value===null||d.value.length===0)return;c.value=null,d.value=[],Y&&(i("update:modelValue",null),i("change",null));return}let D=!0;if(G.length!==d.value.length)D=!1;else for(let U=0;U<G.length;U++){const P=G[U],j=d.value[U];if(!kr(n,P,j)){D=!1;break}}if(!D){d.value=G;let U=[],P=[];G.forEach(X=>{U.push(Ge(n,X)),n.valueType==="text"?P.push(Pe(n,X)):n.valueType==="item"?P.push(X):P.push(Ge(n,X))});let j;n.multiple?(c.value=U,j=r.toRaw(P)):(c.value=U[0]??"",j=r.toRaw(P[0]??"")),Y&&(i("update:modelValue",j),i("change",j))}},w=r.ref(null),$=r.ref(null),g=r.computed(()=>$.value??w.value??[]),y=Se(r.computed(()=>n.lazyLoad),"lazyLoad",$e.Near,L=>te(L)),p=ei(),E=async(L,K)=>{if(L){const M=await p.load("select",L,K);if(M.length>0)if(typeof M[0]=="string"){let D=M.map(U=>ti(U));w.value=D}else w.value=M;else w.value=null}};r.watch([()=>n.source,()=>n.params],([L,K])=>{E(L,K)},{immediate:!y.value});let V=!1;const F=()=>{V||(V=!0,E(n.source,n.params))};r.watch([()=>g.value,()=>n.modelValue],([L,K])=>{S(K,n.valueType,L,!1)});let N=null,x=r.ref(!1);typeof n.remoteMethod=="function"&&(N=async L=>{if(L==null){$.value=null;return}x.value=!0;try{const K=await n.remoteMethod(L);K&&($.value=K)}catch(K){$.value=null,console.error(K)}x.value=!1});let I=null;typeof n.filterMethod=="function"&&(I=async L=>{if(L==null){$.value=null;return}x.value=!0;try{const K=await n.filterMethod(L,w.value);K&&($.value=K)}catch(K){$.value=null,console.error(K)}x.value=!1});const k=r.ref(!1),R=e,B=r.computed(()=>({[R]:!0})),z=L=>{n.allowCreate?(i("update:modelValue",L),i("change",L),c.value=L):S(L,"value",g.value,!0)};let _=ne(n,"hintText"),v=r.ref(!1);const b=L=>{let M=L.target.value;k.value=!0,ae(_.value)||(v.value=!0),i("focus",M,L)},T=L=>{setTimeout(()=>{v.value&&(v.value=!1),k.value=!1},0);let M=L.target.value;n.maxLength&&M.length>Number(n.maxLength)&&(M=M.slice(0,Number(n.maxLength))),q.value||i("blur",M,L)},O=()=>{i("clear","")},q=r.ref(!1),W=L=>{q.value=L,i("visible-change",L),L||i("selected")},C=L=>{i("remove-tag",L)},A=(L,K)=>{const M=[];return L.forEach((Y,G)=>{const D=Nr(n,Y);if(Array.isArray(D)&&D.length>0){const U=A(D,K),P=Pe(n,Y),X={key:`${P}_${G}`,label:P};M.push(r.h(m.ElOptionGroup,X,{default:()=>U}))}else{const U=Ge(n,Y),P=Pe(n,Y),j=Jl(n,Y),Z={key:`${U}_${G}`,label:P,disabled:j,value:U};if(typeof K=="function")M.push(r.h(m.ElOption,Z,{default:()=>K(Y)}));else if(n.optionType==="item"){const ee={class:{"fox-select-item__option-left":!0}},ye=r.h("span",ee,[U]),se={class:{"fox-select-item__option-right":!0}},ze=r.h("span",se,[P]),Wo=r.h("div",{class:{"fox-select-item__option":!0}},[ye,ze]);M.push(r.h(m.ElOption,Z,{default:()=>Wo}))}else n.optionType==="value"?M.push(r.h(m.ElOption,Z,{default:()=>[U]})):M.push(r.h(m.ElOption,Z))}}),M},H=r.ref();return fe({focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()}}),()=>{const K={...a.attrs,ref:H,class:B.value,clearable:n.clearable,multiple:n.multiple,placeholder:f.placeholder.value,disabled:l.value||s.value,modelValue:c.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:O,onChange:z,onFocus:b,onBlur:T,onVisibleChange:W,onRemoveTag:C};typeof N=="function"&&(K["remote-method"]=N,K.loading=x.value),typeof I=="function"&&(K["filter-method"]=I,K.loading=x.value);const M={};a.slots.prefix&&(M.prefix=a.slots.prefix),a.slots.empty&&(M.empty=a.slots.empty),a.slots.options?M.default=a.slots.options:M.default=()=>A(g.value,a.slots.option);const Y=[],G=r.h(m.ElSelect,K,M);Y.push(G);const D={default:()=>Y};a.slots.default&&(D.label=a.slots.default),a.slots.fixedTip&&(D.fixedTip=a.slots.fixedTip);const P={...me(n,Or),hintText:_.value,hintVisible:v.value,prop:`${n.prop??a.attrs.name}_item`};return y.value&&(P["appear-listen"]=!0,P.onAppear=F),r.h(o,P,D)}}}}const{componentName:ri,create:oi,scope:ai}=Q("select-item"),Ir=oi(ni(ri,ai,de));var Re=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ae(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Rr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Re,function(){var o=1e3,n=6e4,a=36e5,l="millisecond",s="second",i="minute",u="hour",f="day",c="week",d="month",S="quarter",w="year",$="date",g="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|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,E={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("_")},V=function(v,b,T){var O=String(v);return!O||O.length>=b?v:""+Array(b+1-O.length).join(T)+v},F={s:V,z:function(v){var b=-v.utcOffset(),T=Math.abs(b),O=Math.floor(T/60),q=T%60;return(b<=0?"+":"-")+V(O,2,"0")+":"+V(q,2,"0")},m:function v(b,T){if(b.date()<T.date())return-v(T,b);var O=12*(T.year()-b.year())+(T.month()-b.month()),q=b.clone().add(O,d),W=T-q<0,C=b.clone().add(O+(W?-1:1),d);return+(-(O+(T-q)/(W?q-C:C-q))||0)},a:function(v){return v<0?Math.ceil(v)||0:Math.floor(v)},p:function(v){return{M:d,y:w,w:c,d:f,D:$,h:u,m:i,s,ms:l,Q:S}[v]||String(v||"").toLowerCase().replace(/s$/,"")},u:function(v){return v===void 0}},N="en",x={};x[N]=E;var I=function(v){return v instanceof z},k=function v(b,T,O){var q;if(!b)return N;if(typeof b=="string"){var W=b.toLowerCase();x[W]&&(q=W),T&&(x[W]=T,q=W);var C=b.split("-");if(!q&&C.length>1)return v(C[0])}else{var A=b.name;x[A]=b,q=A}return!O&&q&&(N=q),q||!O&&N},R=function(v,b){if(I(v))return v.clone();var T=typeof b=="object"?b:{};return T.date=v,T.args=arguments,new z(T)},B=F;B.l=k,B.i=I,B.w=function(v,b){return R(v,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var z=function(){function v(T){this.$L=k(T.locale,null,!0),this.parse(T)}var b=v.prototype;return b.parse=function(T){this.$d=function(O){var q=O.date,W=O.utc;if(q===null)return new Date(NaN);if(B.u(q))return new Date;if(q instanceof Date)return new Date(q);if(typeof q=="string"&&!/Z$/i.test(q)){var C=q.match(y);if(C){var A=C[2]-1||0,H=(C[7]||"0").substring(0,3);return W?new Date(Date.UTC(C[1],A,C[3]||1,C[4]||0,C[5]||0,C[6]||0,H)):new Date(C[1],A,C[3]||1,C[4]||0,C[5]||0,C[6]||0,H)}}return new Date(q)}(T),this.$x=T.x||{},this.init()},b.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()},b.$utils=function(){return B},b.isValid=function(){return this.$d.toString()!==g},b.isSame=function(T,O){var q=R(T);return this.startOf(O)<=q&&q<=this.endOf(O)},b.isAfter=function(T,O){return R(T)<this.startOf(O)},b.isBefore=function(T,O){return this.endOf(O)<R(T)},b.$g=function(T,O,q){return B.u(T)?this[O]:this.set(q,T)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(T,O){var q=this,W=!!B.u(O)||O,C=B.p(T),A=function(U,P){var j=B.w(q.$u?Date.UTC(q.$y,P,U):new Date(q.$y,P,U),q);return W?j:j.endOf(f)},H=function(U,P){return B.w(q.toDate()[U].apply(q.toDate("s"),(W?[0,0,0,0]:[23,59,59,999]).slice(P)),q)},L=this.$W,K=this.$M,M=this.$D,Y="set"+(this.$u?"UTC":"");switch(C){case w:return W?A(1,0):A(31,11);case d:return W?A(1,K):A(0,K+1);case c:var G=this.$locale().weekStart||0,D=(L<G?L+7:L)-G;return A(W?M-D:M+(6-D),K);case f:case $:return H(Y+"Hours",0);case u:return H(Y+"Minutes",1);case i:return H(Y+"Seconds",2);case s:return H(Y+"Milliseconds",3);default:return this.clone()}},b.endOf=function(T){return this.startOf(T,!1)},b.$set=function(T,O){var q,W=B.p(T),C="set"+(this.$u?"UTC":""),A=(q={},q[f]=C+"Date",q[$]=C+"Date",q[d]=C+"Month",q[w]=C+"FullYear",q[u]=C+"Hours",q[i]=C+"Minutes",q[s]=C+"Seconds",q[l]=C+"Milliseconds",q)[W],H=W===f?this.$D+(O-this.$W):O;if(W===d||W===w){var L=this.clone().set($,1);L.$d[A](H),L.init(),this.$d=L.set($,Math.min(this.$D,L.daysInMonth())).$d}else A&&this.$d[A](H);return this.init(),this},b.set=function(T,O){return this.clone().$set(T,O)},b.get=function(T){return this[B.p(T)]()},b.add=function(T,O){var q,W=this;T=Number(T);var C=B.p(O),A=function(K){var M=R(W);return B.w(M.date(M.date()+Math.round(K*T)),W)};if(C===d)return this.set(d,this.$M+T);if(C===w)return this.set(w,this.$y+T);if(C===f)return A(1);if(C===c)return A(7);var H=(q={},q[i]=n,q[u]=a,q[s]=o,q)[C]||1,L=this.$d.getTime()+T*H;return B.w(L,this)},b.subtract=function(T,O){return this.add(-1*T,O)},b.format=function(T){var O=this,q=this.$locale();if(!this.isValid())return q.invalidDate||g;var W=T||"YYYY-MM-DDTHH:mm:ssZ",C=B.z(this),A=this.$H,H=this.$m,L=this.$M,K=q.weekdays,M=q.months,Y=function(P,j,X,Z){return P&&(P[j]||P(O,W))||X[j].slice(0,Z)},G=function(P){return B.s(A%12||12,P,"0")},D=q.meridiem||function(P,j,X){var Z=P<12?"AM":"PM";return X?Z.toLowerCase():Z},U={YY:String(this.$y).slice(-2),YYYY:this.$y,M:L+1,MM:B.s(L+1,2,"0"),MMM:Y(q.monthsShort,L,M,3),MMMM:Y(M,L),D:this.$D,DD:B.s(this.$D,2,"0"),d:String(this.$W),dd:Y(q.weekdaysMin,this.$W,K,2),ddd:Y(q.weekdaysShort,this.$W,K,3),dddd:K[this.$W],H:String(A),HH:B.s(A,2,"0"),h:G(1),hh:G(2),a:D(A,H,!0),A:D(A,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 W.replace(p,function(P,j){return j||U[P]||C.replace(":","")})},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(T,O,q){var W,C=B.p(O),A=R(T),H=(A.utcOffset()-this.utcOffset())*n,L=this-A,K=B.m(this,A);return K=(W={},W[w]=K/12,W[d]=K,W[S]=K/3,W[c]=(L-H)/6048e5,W[f]=(L-H)/864e5,W[u]=L/a,W[i]=L/n,W[s]=L/o,W)[C]||L,q?K:B.a(K)},b.daysInMonth=function(){return this.endOf(d).$D},b.$locale=function(){return x[this.$L]},b.locale=function(T,O){if(!T)return this.$L;var q=this.clone(),W=k(T,O,!0);return W&&(q.$L=W),q},b.clone=function(){return B.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},v}(),_=z.prototype;return R.prototype=_,[["$ms",l],["$s",s],["$m",i],["$H",u],["$W",f],["$M",d],["$y",w],["$D",$]].forEach(function(v){_[v[1]]=function(b){return this.$g(b,v[0],v[1])}}),R.extend=function(v,b){return v.$i||(v(b,z,R),v.$i=!0),R},R.locale=k,R.isDayjs=I,R.unix=function(v){return R(1e3*v)},R.en=x[N],R.Ls=x,R.p={},R})})(Rr);var li=Rr.exports;const ke=Ae(li);var Ar={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Re,function(){var o={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,a=/\d\d/,l=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},u=function(g){return(g=+g)+(g>68?1900:2e3)},f=function(g){return function(y){this[g]=+y}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var p=y.match(/([+-]|\d\d)/g),E=60*p[1]+(+p[2]||0);return E===0?0:p[0]==="+"?-E:E}(g)}],d=function(g){var y=i[g];return y&&(y.indexOf?y:y.s.concat(y.f))},S=function(g,y){var p,E=i.meridiem;if(E){for(var V=1;V<=24;V+=1)if(g.indexOf(E(V,0,y))>-1){p=V>12;break}}else p=g===(y?"pm":"PM");return p},w={A:[s,function(g){this.afternoon=S(g,!1)}],a:[s,function(g){this.afternoon=S(g,!0)}],S:[/\d/,function(g){this.milliseconds=100*+g}],SS:[a,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[l,f("seconds")],ss:[l,f("seconds")],m:[l,f("minutes")],mm:[l,f("minutes")],H:[l,f("hours")],h:[l,f("hours")],HH:[l,f("hours")],hh:[l,f("hours")],D:[l,f("day")],DD:[a,f("day")],Do:[s,function(g){var y=i.ordinal,p=g.match(/\d+/);if(this.day=p[0],y)for(var E=1;E<=31;E+=1)y(E).replace(/\[|\]/g,"")===g&&(this.day=E)}],M:[l,f("month")],MM:[a,f("month")],MMM:[s,function(g){var y=d("months"),p=(d("monthsShort")||y.map(function(E){return E.slice(0,3)})).indexOf(g)+1;if(p<1)throw new Error;this.month=p%12||p}],MMMM:[s,function(g){var y=d("months").indexOf(g)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,f("year")],YY:[a,function(g){this.year=u(g)}],YYYY:[/\d{4}/,f("year")],Z:c,ZZ:c};function $(g){var y,p;y=g,p=i&&i.formats;for(var E=(g=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(R,B,z){var _=z&&z.toUpperCase();return B||p[z]||o[z]||p[_].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,b,T){return b||T.slice(1)})})).match(n),V=E.length,F=0;F<V;F+=1){var N=E[F],x=w[N],I=x&&x[0],k=x&&x[1];E[F]=k?{regex:I,parser:k}:N.replace(/^\[|\]$/g,"")}return function(R){for(var B={},z=0,_=0;z<V;z+=1){var v=E[z];if(typeof v=="string")_+=v.length;else{var b=v.regex,T=v.parser,O=R.slice(_),q=b.exec(O)[0];T.call(B,q),R=R.replace(q,"")}}return function(W){var C=W.afternoon;if(C!==void 0){var A=W.hours;C?A<12&&(W.hours+=12):A===12&&(W.hours=0),delete W.afternoon}}(B),B}}return function(g,y,p){p.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(u=g.parseTwoDigitYear);var E=y.prototype,V=E.parse;E.parse=function(F){var N=F.date,x=F.utc,I=F.args;this.$u=x;var k=I[1];if(typeof k=="string"){var R=I[2]===!0,B=I[3]===!0,z=R||B,_=I[2];B&&(_=I[2]),i=this.$locale(),!R&&_&&(i=p.Ls[_]),this.$d=function(O,q,W){try{if(["x","X"].indexOf(q)>-1)return new Date((q==="X"?1e3:1)*O);var C=$(q)(O),A=C.year,H=C.month,L=C.day,K=C.hours,M=C.minutes,Y=C.seconds,G=C.milliseconds,D=C.zone,U=new Date,P=L||(A||H?1:U.getDate()),j=A||U.getFullYear(),X=0;A&&!H||(X=H>0?H-1:U.getMonth());var Z=K||0,ee=M||0,ye=Y||0,se=G||0;return D?new Date(Date.UTC(j,X,P,Z,ee,ye,se+60*D.offset*1e3)):W?new Date(Date.UTC(j,X,P,Z,ee,ye,se)):new Date(j,X,P,Z,ee,ye,se)}catch{return new Date("")}}(N,k,x),this.init(),_&&_!==!0&&(this.$L=this.locale(_).$L),z&&N!=this.format(k)&&(this.$d=new Date("")),i={}}else if(k instanceof Array)for(var v=k.length,b=1;b<=v;b+=1){I[1]=k[b-1];var T=p.apply(this,I);if(T.isValid()){this.$d=T.$d,this.$L=T.$L,this.init();break}b===v&&(this.$d=new Date(""))}else V.call(this,F)}}})})(Ar);var ii=Ar.exports;const si=Ae(ii);var Dr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Re,function(){return function(o,n,a){var l=n.prototype,s=l.format;a.en.ordinal=function(i){var u=["th","st","nd","rd"],f=i%100;return"["+i+(u[(f-20)%10]||u[f]||u[0])+"]"},l.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)}}})})(Dr);var ui=Dr.exports;const ci=Ae(ui);var Fr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Re,function(){return function(o,n,a){var l=n.prototype,s=function(d){return d&&(d.indexOf?d:d.s)},i=function(d,S,w,$,g){var y=d.name?d:d.$locale(),p=s(y[S]),E=s(y[w]),V=p||E.map(function(N){return N.slice(0,$)});if(!g)return V;var F=y.weekStart;return V.map(function(N,x){return V[(x+(F||0))%7]})},u=function(){return a.Ls[a.locale()]},f=function(d,S){return d.formats[S]||function(w){return w.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function($,g,y){return g||y.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}};l.localeData=function(){return c.bind(this)()},a.localeData=function(){var d=u();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(S){return f(d,S)},meridiem:d.meridiem,ordinal:d.ordinal}},a.months=function(){return i(u(),"months")},a.monthsShort=function(){return i(u(),"monthsShort","months",3)},a.weekdays=function(d){return i(u(),"weekdays",null,null,d)},a.weekdaysShort=function(d){return i(u(),"weekdaysShort","weekdays",3,d)},a.weekdaysMin=function(d){return i(u(),"weekdaysMin","weekdays",2,d)}}})})(Fr);var fi=Fr.exports;const di=Ae(fi);var Br={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Re,function(){var o="week",n="year";return function(a,l,s){var i=l.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(o);if(c.isBefore(d))return 1}var S=s(this).startOf(n).date(f).startOf(o).subtract(1,"millisecond"),w=this.diff(S,o,!0);return w<0?s(this).startOf("week").week():Math.ceil(w)},i.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(Br);var hi=Br.exports;const gi=Ae(hi);var Lr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Re,function(){return function(o,n){n.prototype.weekYear=function(){var a=this.month(),l=this.week(),s=this.year();return l===1&&a===11?s+1:a===0&&l>=52?s-1:s}}})})(Lr);var mi=Lr.exports;const pi=Ae(mi);var qr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Re,function(){return function(o,n,a){n.prototype.dayOfYear=function(l){var s=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return l==null?s:this.add(l-s,"day")}}})})(qr);var yi=qr.exports;const bi=Ae(yi);var Mr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Re,function(){return function(o,n){n.prototype.isSameOrAfter=function(a,l){return this.isSame(a,l)||this.isAfter(a,l)}}})})(Mr);var wi=Mr.exports;const Si=Ae(wi);var jr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Re,function(){return function(o,n){n.prototype.isSameOrBefore=function(a,l){return this.isSame(a,l)||this.isBefore(a,l)}}})})(jr);var vi=jr.exports;const $i=Ae(vi);ke.extend(di),ke.extend(ci),ke.extend(si),ke.extend(gi),ke.extend(pi),ke.extend(bi),ke.extend(Si),ke.extend($i);const ct={format(e,t){return ke(e).format(t)},parser(e,t){return ke(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,o){const a=new Date(e+"/"+t+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][a]},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 o=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),a=this.getNumTwoBit(e.getDate());return[o,n,a].join(t)},getDay(e,t){e=e||0;let o=t??new Date;const n=e*(1e3*60*60*24);return o=new Date(o.getTime()+n),this.date2Str(o)},compareDate(e,t){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let n;return typeof t=="string"?n=new Date(t.replace("-","/").replace("-","/")):n=t,!(o>=n)},isEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e;let n;return typeof t=="string"?n=new Date(t).getTime():n=t,o==n},getMonthWeek:function(e,t,o,n=0){const a=new Date(Number(e),parseInt(t)-1,Number(o));let l=a.getDay(),s=a.getDate(),i=6-l;return n!==0&&(l=l==0?7:l,i=7-l),Math.ceil((s+i)/7)},getYearWeek:function(e,t,o,n=0){const a=new Date(Number(e),parseInt(t)-1,Number(o)),l=new Date(Number(e),0,1),s=Math.round((a.valueOf()-l.valueOf())/864e5);let i=a.getDay(),u=6-i;return n!==0&&(i=i==0?7:i,u=7-i),Math.ceil((s+u)/7)},getWeekDate:function(e,t,o,n=0){const a=new Date(Number(e),parseInt(t)-1,Number(o)),l=a.getTime();let s=a.getDay();if(n===0){const u=l-s*864e5,f=l+(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=l-(s-1)*i,f=l+(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]=ct.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=ct.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,o){const n=new Date(new Date(t).setDate(t.getDate()+o)),a=e.getTime(),l=n.getTime(),s=t.getTime();return l>s?a>=s&&a<=l:a>=l&&a<=s},inScope4Month(e,t,o){const n=new Date(new Date(t).setMonth(t.getMonth()+o)),a=e.getTime(),l=n.getTime(),s=t.getTime();return l>s?a>=s&&a<=l:a>=l&&a<=s}},_r={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},valueFormat:{type:[String],required:!1}},Pr={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 Ti(e,t,o){return{props:{...ie,...pe,..._r,...Pr},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,a){const l=we(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ce.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ne(n,"modelValue"),S=e,w=r.computed(()=>({[`${S}__input`]:!0})),$=b=>{d.value=b,i("update:modelValue",b),i("change",b)};let g=ne(n,"hintText"),y=r.ref(!1);const p=b=>{let O=b.target.value;c.value=!0,ae(g.value)||(y.value=!0),i("focus",O,b)},E=b=>{setTimeout(()=>{y.value&&(y.value=!1),c.value=!1},0);let O=b.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),i("blur",O,b)},V=()=>{i("clear","")},F=b=>{i("calendar-change",b)},N=(b,T,O)=>{i("panel-change",b,T,O)},x=b=>{i("visible-change",b)},I=Se(r.computed(()=>n.longTermValue),"longTermText",$e.Near),k=Se(r.computed(()=>n.longTermValue),"longTermValue",$e.Near);let R=null;const B=r.ref(te(n.longTerm)),z=b=>{if(B.value=b,i("update:longTerm",b),b){let T="";Array.isArray(k.value)?T=k.value.map((O,q)=>O||(Array.isArray(d.value)?d.value[q]:n.valueFormat?ct.format(new Date,n.valueFormat):new Date)):T=k.value,R=d.value,i("update:modelValue",T)}else i("update:modelValue",R)},_=te(n.isLongTerm);if(_){const b=()=>{if(B.value===!0){let T="";Array.isArray(k.value)?T=k.value.map((O,q)=>O||(Array.isArray(d.value)?d.value[q]:n.valueFormat?ct.format(new Date,n.valueFormat):new Date)):T=k.value,R=d.value,i("update:modelValue",T)}else Be(k.value,d.value)&&(B.value=!0)};b(),r.watch([()=>n.longTerm],([T])=>{B.value!==T&&b()})}const v=r.ref();return fe({focus:()=>{v?.value.focus()},blur:()=>{v?.value.blur()},handleOpen:()=>{v?.value.handleOpen()},handleClose:()=>{v?.value.handleClose()}}),()=>{const T={...a.attrs,ref:v,class:w.value,placeholder:f.placeholder.value,disabled:l.value||B.value,readonly:s.value,modelValue:d.value,valueFormat:n.valueFormat,"onUpdate:modelValue":$,onClear:V,onFocus:p,onBlur:E,onCalendarChange:F,onPanelChange:N,onVisibleChange:x},O={};a.slots["range-separator"]&&(O["range-separator"]=a.slots["range-separator"]),a.slots.cell&&(O.default=a.slots.cell);const q=[],W=r.h(m.ElDatePicker,T,O);q.push(W);const C={default:()=>q};if(a.slots.default&&(C.label=a.slots.default),a.slots.fixedTip&&(C.fixedTip=a.slots.fixedTip),_){const K={label:I.value,disabled:s.value||l.value,modelValue:B.value,"onUpdate:modelValue":z},M=r.h(m.ElCheckbox,K),Y=r.h("div",{class:{[`${S}__append`]:!0}},[M]);C.append=()=>Y}const H={...me(n,_r,Pr),class:{[`${S}__wrapper`]:!0,"has-append":_},hintText:g.value,hintVisible:y.value,prop:`${n.prop}_item`};return r.h(o,H,C)}}}}const{componentName:Ei,create:Ci,scope:xi}=Q("date-item"),Hr=Ci(Ti(Ei,xi,de)),zr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Ni(e,t,o){return{props:{...ie,...pe,...zr},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,a){const l=we(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ce.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ne(n,"modelValue"),S=e,w=r.computed(()=>({[S]:!0})),$=x=>{d.value=x,i("update:modelValue",x),i("change",x)};let g=ne(n,"hintText"),y=r.ref(!1);const p=x=>{let k=x.target.value;c.value=!0,ae(g.value)||(y.value=!0),i("focus",k,x)},E=x=>{setTimeout(()=>{y.value&&(y.value=!1),c.value=!1},0);let k=x.target.value;n.maxLength&&k.length>Number(n.maxLength)&&(k=k.slice(0,Number(n.maxLength))),i("blur",k,x)},V=()=>{i("clear","")},F=x=>{i("visible-change",x)},N=r.ref();return fe({focus:()=>{N?.value.focus()},blur:()=>{N?.value.blur()},handleOpen:()=>{N?.value.handleOpen()},handleClose:()=>{N?.value.handleClose()}}),()=>{const I={...a.attrs,ref:N,class:w.value,placeholder:f.placeholder.value,disabled:l.value,readonly:s.value,modelValue:d.value,"onUpdate:modelValue":$,onClear:V,onFocus:p,onBlur:E,onVisibleChange:F},k={},R=[],B=r.h(m.ElTimePicker,I,k);R.push(B);const z={default:()=>R};a.slots.default&&(z.label=a.slots.default),a.slots.fixedTip&&(z.fixedTip=a.slots.fixedTip);const v={...me(n,zr),hintText:g.value,hintVisible:y.value,prop:`${n.prop}_item`};return r.h(o,v,z)}}}}const{componentName:ki,create:Vi,scope:Oi}=Q("time-item"),Kr=Vi(Ni(ki,Oi,de)),Wr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Ii(e,t,o){return{props:{...ie,...pe,...Wr},emits:["change","update:modelValue","blur","focus","clear"],setup(n,a){const l=we(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ce.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ne(n,"modelValue"),S=e,w=r.computed(()=>({[S]:!0})),$=N=>{d.value=N,i("update:modelValue",N),i("change",N)};let g=ne(n,"hintText"),y=r.ref(!1);const p=N=>{let I=N.target.value;c.value=!0,ae(g.value)||(y.value=!0),i("focus",I,N)},E=N=>{setTimeout(()=>{y.value&&(y.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)},V=()=>{i("clear","")},F=r.ref();return fe({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()},handleOpen:()=>{F?.value.handleOpen()},handleClose:()=>{F?.value.handleClose()}}),()=>{const x={...a.attrs,ref:F,class:w.value,placeholder:f.placeholder.value,disabled:l.value,readonly:s.value,modelValue:d.value,"onUpdate:modelValue":$,onClear:V,onFocus:p,onBlur:E},I={},k=[],R=r.h(m.ElTimeSelect,x,I);k.push(R);const B={default:()=>k};a.slots.default&&(B.label=a.slots.default),a.slots.fixedTip&&(B.fixedTip=a.slots.fixedTip);const _={...me(n,Wr),hintText:g.value,hintVisible:y.value,prop:`${n.prop}_item`};return r.h(o,_,B)}}}}const{componentName:Ri,create:Ai,scope:Di}=Q("time-select-item"),Yr=Ai(Ii(Ri,Di,de));function Ur(e,t=0){let o=`${e}`,n=o.indexOf(".");if(n==-1)return o;let a=n;for(let l=o.length-1;l>=n;l--)if(o.charAt(l)!="0"){a=l;break}return a-n<t?a=n+t+1:a!=n&&(a+=1),a>o.length?o=o.padEnd(a,"0"):o=o.substring(0,a),o}function Gr(e,t,o=20){if(typeof t=="string"&&(t=ge(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=In(`${e}`,`${t}`);return Ur(n)}else{let n=Ut(`${e}`,Rn(`${t}`),20);return Ur(n)}}function Fi(e,t=-1,o=!1,n=3,a=","){return pt(e,t,o,n,a)}function Xr(e,t,o,n,a=!0){if(e=="")return"";if(e=An(e),t=ge(t),t==1)return e;if(n)e=Gr(e,t),o&&(e=="0"&&a?e=`${e}.`.padEnd(ge(o)+2,"0"):e=Ut(e,1,ge(o)));else{let l=-1*t;e=Gr(e,l)}return e}function Zr(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=te(t.minInclude),a=Gt(e,t.min);if(n&&a==-1||!n&&(a==0||a==-1)){let l="请输入不小于 {0} 的数值";o.message=l.replace("{0}",t.min),o.minValid=!1}}if(t.max!=null){let n=te(t.maxInclude),a=Gt(e,t.max);(n&&a==1||!n&&(a==0||a==1))&&(o.maxValid=!1)}return o}const Jr={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 Bi(e,t,o){return{props:{...ie,...pe,...Jr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=we(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),u=r.ref(!1),f=ne(n,"modelValue"),c=r.ref("");r.watch([()=>f.value,()=>n.rates,()=>n.precision],([v,b,T])=>{if(ae(v)){c.value="";return}const O=Xr(v,b,T,!1);c.value!==O&&(c.value=O)},{immediate:!0});const d=r.computed(()=>{let v="";return u.value&&(v=c.value),v}),{t:S}=Ce.useFoxI18n(t),w=r.computed(()=>{let v=n.placeholder??"";return!u.value&&!ae(c.value)?v=Fi(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):v=S(["placeholder",v]),v}),$=e,g=r.computed(()=>({[$]:!0,[`${$}__disabled`]:l.value,[`${$}__placeholder`]:c.value.length>0})),y=Se(r.computed(()=>n.textAlign),"textAlign");r.computed(()=>u.value?{textAlign:"left"}:{textAlign:y.value??"right"});const p=r.ref(""),E=r.computed(()=>{let v=p.value;return ae(v)&&(v=n.errorTip??""),v}),V=r.ref(""),F=r.ref(!1),N=(v,b)=>{if(v=`${v}`,ae(v)){c.value="",f.value="",b.forEach(T=>{i(T,"")}),te(n.showTip)&&F.value&&(F.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(!Hn(v)){r.triggerRef(c);return}if(n.integerLength!=-1&&zn(v)>Number(n.integerLength)){r.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&Kn(v)>Number(n.decimalLength)){r.triggerRef(c);return}let T=Zr(v,n);if(T.maxValid===!1){p.value=T.message,r.triggerRef(c);return}}else if(n.min!=null&&ge(n.min)>=0){r.triggerRef(c);return}V.value=v,te(n.showTip)&&(F.value=v.length>0),c.value=v,f.value=Xr(v,n.rates,n.precision,!0),b.forEach(T=>{i(T,f.value)})},x=v=>{N(v,["update:modelValue","input"])},I=v=>{N(v,["update:modelValue","change"])},k=v=>{if(u.value=!0,te(n.showTip)){let b=c.value;ae(b)&&(b=n.hintText),ae(b)||(V.value=b,F.value=!0)}p.value="",i("focus",f.value,v)},R=v=>{if(setTimeout(()=>{u.value=!1,te(n.showTip)&&F.value===!0&&(F.value=!1)},0),!ae(c.value)){let b=Zr(c.value,n);if(b.minValid===!1||b.maxValid===!1){p.value=b.message;return}}i("update:modelValue",f.value,v),i("blur",f.value,v)},B=()=>{i("clear","")},z=r.computed(()=>ot(n.unit)>0),_=r.ref();return fe({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},select:()=>{_?.value.select()}}),()=>{const b={...a.attrs,ref:_,class:g.value,type:"digit",maxlength:n.maxLength,placeholder:w.value,clearable:n.clearable,disabled:l.value,readonly:s.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:B,onInput:x,onChange:I,onFocus:k,onBlur:R},T={};a.slots.prepend&&(T.prepend=a.slots.prepend),a.slots.append&&(T.append=a.slots.append),a.slots.prefix&&(T.prefix=a.slots.prefix),a.slots.suffix?T.suffix=a.slots.suffix:z.value&&(T.suffix=()=>[n.unit]);const O=[],q=r.h(m.ElInput,b,T);O.push(q);const W={default:()=>O};a.slots.default&&(W.label=a.slots.default),a.slots.fixedTip&&(W.fixedTip=a.slots.fixedTip);const A={...me(n,Jr),errorTip:E.value,hintText:V.value,hintVisible:F.value,hintType:"number",prop:`${n.prop}_item`};return r.h(o,A,W)}}}}const{componentName:Li,create:qi,scope:Mi}=Q("money-item"),Qr=qi(Bi(Li,Mi,de)),eo={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 ji(e,t,o){return{props:{...ie,...pe,...eo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=we(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ce.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ne(n,"modelValue"),S=e,w=r.computed(()=>({[S]:!0,[`${S}__append`]:x.value})),$=r.computed(()=>({[`${S}__unit`]:!0})),g=k=>{d.value=k,i("update:modelValue",k),i("input",k)},y=k=>{i("change",k)};let p=ne(n,"hintText"),E=r.ref(!1);const V=k=>{let B=k.target.value;c.value=!0,ae(p.value)||(E.value=!0),i("focus",B,k)},F=k=>{setTimeout(()=>{E.value&&(E.value=!1),c.value=!1},0);let B=k.target.value;n.maxLength&&B.length>Number(n.maxLength)&&(B=B.slice(0,Number(n.maxLength))),i("blur",B,k)},N=()=>{i("clear","")},x=r.computed(()=>ot(n.unit)>0),I=r.ref();return fe({focus:()=>{I?.value.focus()},blur:()=>{I?.value.blur()}}),()=>{const R={...a.attrs,ref:I,class:w.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:l.value,readonly:s.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:N,onChange:y,onInput:g,onFocus:V,onBlur:F},B={},z=[],_=r.h(m.ElInputNumber,R,B);z.push(_);const v={default:()=>z};a.slots.default&&(v.label=a.slots.default),a.slots.fixedTip&&(v.fixedTip=a.slots.fixedTip);const T={...me(n,eo),hintText:p.value,hintVisible:E.value,prop:`${n.prop}_item`};if(a.slots.append)v.append=a.slots.append;else if(x.value){const q={class:$.value},W=r.h("div",q,[n.unit]);v.append=()=>W}return r.h(o,T,v)}}}}const{componentName:_i,create:Pi,scope:Hi}=Q("input-number-item"),to=Pi(ji(_i,Hi,de));function Xe(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function He(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function zi(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let Ki=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,a){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n,a);const l=Ne(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Fe(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(o,n,a))}};function Wi(){const e=r.getCurrentInstance();return new Ki(e.proxy)}function pn(e,t,o){const n=Xe(e,t),a=Xe(e,o);if(n!==a)return!1;const l=He(e,t),s=He(e,o);return l===s}function no(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];let l=n;for(let s=0;Array.isArray(l)&&s<t.length;s++){const i=t[s];if(Array.isArray(i)){const u=no(e,i,o,n);a.push(u)}else{let u=!1;for(let f of l){if(o==="text")u=Xe(e,f)===i;else if(o==="item")u=pn(e,f,i);else{let c=He(e,f);c==null&&(c=Xe(e,f)),u=c===i}if(u){a.push(f),l=zi(e,f);break}}if(!u)break}}return a}function Yi(e){return{text:e,value:e}}const ro={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 Ui(e,t,o){return{props:{...ie,...pe,...ro},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected"],setup(n,a){const l=we(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ce.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(null),d=r.ref([]),S=(A,H,L,K=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(c.value===A)return;c.value=A;const G=r.toRaw(A);if(K){const D=C?.value.getCheckedNodes();if(D)if(n.multiple){const U=[];D.forEach(P=>{const X=(P.pathNodes??[]).map(Z=>Z.data);U.push(X)}),i("update:pathNodes",U)}else{const P=(D[0]?.pathNodes??[]).map(j=>j.data);i("update:pathNodes",P)}i("update:modelValue",G),i("change",G)}}const M=no(n,A,H,L);if(M===null){if(d.value.length===0||d.value===null)return;d.value=[],c.value=null,K&&(i("update:pathNodes",[]),i("update:modelValue",null),i("change",null));return}let Y=!0;if(M.length!==d.value.length)Y=!1;else for(let G=0;G<M.length;G++){const D=M[G],U=d.value[G];if(Array.isArray(D)){if(!Array.isArray(U)||D.length!==U.length)Y=!1;else for(let P=0;P<D.length;P++)if(!pn(n,D[P],U[P])){Y=!1;break}}else pn(n,D,U)||(Y=!1);if(!Y)break}if(!Y){d.value=M;let G=[],D=[];M.forEach(P=>{if(Array.isArray(P)){let j=[],X=[];for(let Z of P)j.push(He(n,Z)),n.valueType==="text"?X.push(Xe(n,Z)):n.valueType==="item"?X.push(Z):X.push(He(n,Z));G.push(j),D.push(X)}else G.push(He(n,P)),n.valueType==="text"?D.push(Xe(n,P)):n.valueType==="item"?D.push(P):D.push(He(n,P))}),c.value=G;const U=r.toRaw(D);K&&(i("update:pathNodes",M),i("update:modelValue",U),i("change",U))}},w=r.ref([]),$=Se(r.computed(()=>n.lazyLoad),"lazyLoad",$e.Near,A=>te(A)),g=Wi(),y=async(A,H)=>{if(A){const L=await g.load("cascader",A,H);if(L.length>0)if(typeof L[0]=="string"){let Y=L.map(G=>Yi(G));w.value=Y}else w.value=L}};r.watch([()=>n.source,()=>n.params],async([A,H])=>{y(A,H)},{immediate:!($.value||n.lazy)});let p=!1;const E=()=>{p||(p=!0,y(n.source,n.params))};r.watch([()=>w.value,()=>n.modelValue],([A,H])=>{S(H,n.valueType,A,!1)}),n.lazy&&S(n.modelValue,"value",[],!1);let V=null,F=r.ref(!1);typeof n.remoteMethod=="function"&&(V=async A=>{if(A!=null){F.value=!0;try{const H=await n.remoteMethod(A);w.value=H}catch(H){console.error(H)}F.value=!1}});const N=r.ref(!1),x=e,I=r.computed(()=>({[x]:!0})),k=r.computed(()=>{let A={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(A.multiple=!0),n.props&&Object.assign(A,n.props),n.lazy&&(A.lazy=!0,A.lazyLoad=async(H,L)=>{const K=await g.load("cascader",n.source,H,!0);L(K)}),A}),R=A=>{n.allowCreate?(i("update:modelValue",A),i("change",A),c.value=A):S(A,"value",w.value,!0)};let B=ne(n,"hintText"),z=r.ref(!1);const _=A=>{let L=A.target.value;N.value=!0,ae(B.value)||(z.value=!0),i("focus",L,A)},v=A=>{setTimeout(()=>{z.value&&(z.value=!1),N.value=!1},0);let L=A.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),T.value||i("blur",L,A)},b=()=>{i("clear","")},T=r.ref(!1),O=A=>{T.value=A,i("visible-change",A),A||i("selected")},q=A=>{i("remove-tag",A)},W=A=>{i("expand-change",A)},C=r.ref();return fe({focus:()=>{C?.value.focus()},blur:()=>{C?.value.blur()},getCheckedNodes:()=>C?.value.getCheckedNodes()}),()=>{const H={...a.attrs,ref:C,class:I.value,props:k.value,clearable:n.clearable,placeholder:f.placeholder.value,disabled:l.value||s.value,options:w.value,modelValue:c.value,onClear:b,onChange:R,onFocus:_,onBlur:v,onVisibleChange:O,onRemoveTag:q,expandChange:W};typeof V=="function"&&(H["remote-method"]=V,H.loading=F.value);const L={};a.slots.option&&(L.default=a.slots.option),a.slots.empty&&(L.empty=a.slots.empty);const K=[],M=r.h(m.ElCascader,H,L);K.push(M);const Y={default:()=>K};a.slots.default&&(Y.label=a.slots.default),a.slots.fixedTip&&(Y.fixedTip=a.slots.fixedTip);const D={...me(n,ro),hintText:B.value,hintVisible:z.value,prop:`${n.prop??a.attrs.name}_item`};return $.value&&!n.lazy&&(D["appear-listen"]=!0,D.onAppear=E),r.h(o,D,Y)}}}}const{componentName:Gi,create:Xi,scope:Zi}=Q("cascader-item"),oo=Xi(Ui(Gi,Zi,de)),ao={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1}};function Ji(e,t,o){return{props:{...ie,...pe,...ao},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,a){const l=we(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ce.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ne(n,"modelValue"),S=e,w=r.computed(()=>({[S]:!0})),$=x=>{d.value=x,i("update:modelValue",x),i("input",x)},g=x=>{i("change",x)};let y=ne(n,"hintText"),p=r.ref(!1);const E=x=>{let k=x.target.value;c.value=!0,ae(y.value)||(p.value=!0),i("focus",k,x)},V=x=>{setTimeout(()=>{p.value&&(p.value=!1),c.value=!1},0);let k=x.target.value;n.maxLength&&k.length>Number(n.maxLength)&&(k=k.slice(0,Number(n.maxLength))),i("blur",k,x)},F=()=>{i("clear","")},N=r.ref();return fe({focus:()=>{N?.value.focus()},blur:()=>{N?.value.blur()},select:()=>{N?.value.select()}}),()=>{const I={...a.attrs,ref:N,class:w.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:l.value,readonly:s.value,modelValue:d.value,onClear:F,onChange:g,onInput:$,onFocus:E,onBlur:V},k={};a.slots.prepend&&(k.prepend=a.slots.prepend),a.slots.append&&(k.append=a.slots.append),a.slots.prefix&&(k.prefix=a.slots.prefix),a.slots.suffix&&(k.suffix=a.slots.suffix),a.slots.option&&(k.default=a.slots.option);const R=[],B=r.h(m.ElAutocomplete,I,k);R.push(B);const z={default:()=>R};a.slots.default&&(z.label=a.slots.default),a.slots.fixedTip&&(z.fixedTip=a.slots.fixedTip);const v={...me(n,ao),hintText:y.value,hintVisible:p.value,prop:`${n.prop}_item`};return r.h(o,v,z)}}}}const{componentName:Qi,create:es,scope:ts}=Q("autocomplete-item"),lo=es(Ji(Qi,ts,de));function ns(e,t,o,n,a){let l=[];Array.isArray(e)?l=e:l=[e];const s=[],i=t[0];if(Array.isArray(i))for(let u=0;u<t.length&&u<l.length;u++){let f=t[u],c=l[u];const d=f.find(S=>S[n]===c);if(!d)break;s.push(d[o])}else{let u=t;for(let f=0;u&&f<l.length;f++){let c=l[f],d=u.find(S=>S[n]===c);if(!d)break;s.push(d[o]),u=d[a]}}return s}let rs=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const a=Ne(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Fe(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}};function os(){const e=r.getCurrentInstance();return new rs(e.proxy)}const io={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 as(e,t){return{props:{...io},setup(o,{attrs:n,slots:a}){const l=os(),s=r.ref([]);r.watch([()=>o.source,()=>o.params],async([f,c])=>{s.value=await l.load(o.sourceType,f,c)},{immediate:!0});const i=r.computed(()=>{if(!Array.isArray(s.value)||s.value.length===0)return"";let f=ns(o.modelValue,s.value,o.textKey,o.valueKey,o.childrenKey);return f.length==0?o.emptyText??"":f.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${f[0]}`:f[0]:f.join(o.separator)}),u=o.resolveTag?r.resolveComponent(o.tag):o.tag;return()=>{const f={...n};return a.default?a.default({text:i.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===i.value?r.h(o.emptyTag??"span",{...n,class:o.emptyClass},i.value):r.h(u,f,{default:()=>i.value}):r.h(u,f,i.value)}}}}const{componentName:Yc,create:ls,scope:Uc}=Q("mapping"),Bt=ls(as());function is(e,t){let o=t.split("."),n=e;for(let a=0;a<o.length;a++){let l=o[a],s=0,i=l.indexOf("["),u=i==-1?-1:l.indexOf("]",i);for(;i!==-1&&u!==-1;){let f=l.substring(i+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(s==0){let d=l.substring(0,i);n=n[d][c]}else n=n[c];s++}i=l.indexOf("[",u),u=i==-1?-1:l.indexOf("]",i)}s===0&&(n=n[l])}return n}function ss(e,t){return{props:{...io},setup(o,{attrs:n,slots:a}){return()=>{const l={default:s=>{const i=is(s.row,s.column.property);return a.default?r.h(Bt,{...o,modelValue:i},{default:a.default}):r.h(Bt,{...o,modelValue:i})}};return r.h(m.ElTableColumn,{...n},l)}}}}const{componentName:Gc,create:us,scope:Xc}=Q("table-mapping-column"),so=us(ss()),cs=Symbol.for("TableStateKey");function uo(e,t){let o=t.split("."),n=e;for(let a=0;a<o.length;a++){let l=o[a],s=0,i=l.indexOf("["),u=i==-1?-1:l.indexOf("]",i);for(;i!==-1&&u!==-1;){let f=l.substring(i+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(s==0){let d=l.substring(0,i);n=n[d][c]}else n=n[c];s++}i=l.indexOf("[",u),u=i==-1?-1:l.indexOf("]",i)}s===0&&(n=n[l])}return n}function fs(e,t){return{props:{},setup(o,{attrs:n}){const a=r.inject(cs,{});return()=>{const l=a.currentRow?a.currentRow.value:null,s={default:i=>{const u=uo(i.row,i.column.property),f=l?uo(l,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}})]),w={class:{"el-radio":!0,"is-checked":c}};return r.h("label",w,[S])}};return r.h(m.ElTableColumn,{...n},s)}}}}const{componentName:Zc,create:ds,scope:Jc}=Q("table-radio-column"),co=ds(fs()),hs={},gs={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"},ms=[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 ps(e,t){return r.openBlock(),r.createElementBlock("svg",gs,ms)}const ys=Te(hs,[["render",ps]]),{componentName:ef,create:bs,scope:tf}=Q("table-setting"),ws={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:"不固定"}},Ss=bs({components:{FoxPopover:m.ElPopover,FoxCheckbox:m.ElCheckbox,FoxCheckboxGroup:m.ElCheckboxGroup,FoxButton:m.ElButton,FoxIcon:m.ElIcon,DragIcon:ys,Download:Ve.Download,RefreshLeft:Ve.RefreshLeft},props:{...ws},emits:["update:modelValue","change","close"],setup(e,{emit:t,attrs:o}){let n=[];const a=r.ref([]),l=r.computed(()=>a.value.filter(C=>C.label===""||C.type?!1:C.fixed===""||C.fixed===!0||C.fixed==="left")),s=r.computed(()=>a.value.filter(C=>C.label===""||C.type?!1:C.fixed==="right")),i=r.computed(()=>a.value.filter(C=>!(C.label===""||C.type||C.fixed!==void 0))),u=r.computed(()=>(l.value.length>0||s.value.length>0)&&i.value.length>0),f=r.computed(()=>l.value.length>0),c=r.computed(()=>s.value.length>0),d=C=>C.length>1,S=C=>{const A=[];a.value=C.map((L,K)=>(!(L.label===""||L.type)&&L.visible!==!1&&A.push(L.prop),{...L,sortIndex:K})),i.value.length+l.value.length+s.value.length===A.length?E.value=!0:A.length>0&&(V.value=!0),x.value=A},w=C=>C?C.type?C.type:C.label?C.prop:"":"",$=(C,A)=>{if(C.length!==A.length)return!1;const H=C.map(L=>w(L));for(let L of A){const K=w(L);if(H.indexOf(K)===-1)return!1}return!0},g=C=>{if(!C){const A=e.tableRef.getColumnSetting(),H=A.srcColumnPropertyList;n=H.map((L,K)=>({...L,sortIndex:K})),C=A.columnPropertyList,C&&C.length>0&&$(H,C)||(C=H)}S(C)},y=()=>{e.tableRef.setColumnSetting(a.value)},p=r.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),E=r.ref(!1),V=r.ref(!1),F=C=>{const A=[];a.value.forEach(L=>{C&&!(L.label===""||L.type)&&A.push(L.prop),L.visible=C}),E.value=!1,V.value=!1,i.value.length+l.value.length+s.value.length===A.length?E.value=!0:A.length>0&&(V.value=!0),x.value=A,y()},N=()=>{g(n),y()},x=r.ref([]),I=C=>{a.value.forEach(H=>{if(H.label===""||H.type)return;const L=C.indexOf(H.prop)!==-1;H.visible=L}),E.value=!1,V.value=!1;const A=i.value.length+l.value.length+s.value.length;C.length===A?E.value=!0:C.length>0&&(V.value=!0),y()},k=()=>{g()};r.onMounted(()=>{setTimeout(()=>{g()},50)});const R={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:o,leftFixedColumns:l,rightFixedColumns:s,unFixedColumns:i,isShowNotFixedTitle:u,isShowLeftFixedTitle:f,isShowRightFixedTitle:c,isDraggble:d,isCheckAll:E,isIndeterminate:V,handleCheckAllChange:F,handleReset:N,checkedValue:x,handleCheckChange:I,onShow:k,onDragStart:C=>{const A=C.currentTarget;A&&A.dataset&&(R.roleType=A.dataset.roleType,R.index=A.dataset.index)},onDragEnd:C=>{R.currentRow&&(R.currentRow.classList.remove("is-dragover"),R.currentRow=null),R.index=null,R.roleType=null},onDragOver:C=>{const A=C.currentTarget;C.relatedTarget;const H=B(A);if(!H)return;const L=H.dataset&&H.dataset.roleType;R.roleType===L&&(C.preventDefault(),R.currentRow&&R.currentRow!==H&&R.currentRow.classList.remove("is-dragover"),H.classList.add("is-dragover"),R.currentRow=H)},onDragLeave:C=>{C.preventDefault(),R.currentRow&&(R.currentRow.classList.remove("is-dragover"),R.currentRow=null)},onDrop:C=>{debugger;const A=C.currentTarget,H=B(A);if(!H)return;const L=H.dataset&&H.dataset.roleType;if(R.roleType!==L)return;C.preventDefault();const K=Number(R.index),M=Number(H.dataset.index);if(K!==M){if(K<M){const Y=a.value[K];a.value.splice(K,1),a.value.splice(M,0,Y)}else{const Y=a.value[K];a.value.splice(K,1),a.value.splice(M+1,0,Y)}S(a.value),y()}},toLeftFixed:C=>{const A=a.value[C];A.fixed="left",y()},toRightFixed:C=>{const A=a.value[C];A.fixed="right",y()},toUnFixed:C=>{const A=a.value[C];A.fixed=void 0,y()},checkboxLabelStyle:p}}}),vs={class:"fox-table-setting"},$s={class:"fox-table-setting__header"},Ts={class:"fox-table-setting__body"},Es={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Cs={key:0,class:"fox-table-setting__body-title"},xs=["data-index","draggable"],Ns={class:"tools-item"},ks={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},Vs={key:0,class:"fox-table-setting__body-title"},Os=["data-index","draggable"],Is={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"},Ds=["data-index","draggable"],Fs={class:"tools-item"};function Bs(e,t,o,n,a,l){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"),w=r.resolveComponent("fox-checkbox"),$=r.resolveComponent("FoxCheckboxGroup"),g=r.resolveComponent("FoxPopover");return r.openBlock(),r.createBlock(g,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",vs,[r.createElementVNode("div",$s,[r.createVNode(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=y=>e.isCheckAll=y),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",Ts,[r.createVNode($,{modelValue:e.checkedValue,"onUpdate:modelValue":t[16]||(t[16]=y=>e.checkedValue=y),onChange:e.handleCheckChange},{default:r.withCtx(()=>[e.leftFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",Es,[e.isShowLeftFixedTitle?(r.openBlock(),r.createElementBlock("div",Cs,r.toDisplayString(e.leftFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.leftFixedColumns,y=>(r.openBlock(),r.createElementBlock("div",{key:y.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":y.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[1]||(t[1]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[2]||(t[2]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[3]||(t[3]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[4]||(t[4]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[5]||(t[5]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.leftFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(s,{class:"checkbox-item",label:y.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(y.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Ns,[r.createVNode(d,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:p=>e.toUnFixed(y.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:p=>e.toRightFixed(y.sortIndex)},{default:r.withCtx(()=>[r.createVNode(S)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,xs))),128))])):r.createCommentVNode("",!0),e.unFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",ks,[e.isShowNotFixedTitle?(r.openBlock(),r.createElementBlock("div",Vs,r.toDisplayString(e.unFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.unFixedColumns,y=>(r.openBlock(),r.createElementBlock("div",{key:y.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":y.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[6]||(t[6]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[7]||(t[7]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[8]||(t[8]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[9]||(t[9]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[10]||(t[10]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.unFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(s,{class:"checkbox-item",label:y.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(y.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Is,[r.createVNode(d,{content:e.fixedLeftText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:p=>e.toLeftFixed(y.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:p=>e.toRightFixed(y.sortIndex)},{default:r.withCtx(()=>[r.createVNode(S)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Os))),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,y=>(r.openBlock(),r.createElementBlock("div",{key:y.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":y.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[11]||(t[11]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[12]||(t[12]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[13]||(t[13]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[14]||(t[14]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[15]||(t[15]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.rightFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(w,{class:"checkbox-item",label:y.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(y.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Fs,[r.createVNode(d,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:p=>e.toUnFixed(y.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:p=>e.toLeftFixed(y.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(S)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Ds))),128))])):r.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const yn=Te(Ss,[["render",Bs]]);let Ls=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,a,l,s,i){if(Array.isArray(o)){let f=(n-1)*a,c=f+a;c>o.length&&(c=o.length);const d=o.slice(f,c);return{totalSize:o.length,page:d}}if(typeof o=="function")return await Reflect.apply(o,null,[n,a,l,s,i]);const u=Ne(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(Fe(l)&&r.isReactive(l)&&(l=r.toRaw(l)),await Reflect.apply(u,null,[o,n,a,l,s,i]))}};function qs(){const e=r.getCurrentInstance();return new Ls(e.proxy)}class Ms{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const n=Ne(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=Ne(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=Ne(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function js(){const e=r.getCurrentInstance();return new Ms(e.proxy)}const _s=Symbol.for("TableStateKey");function Ps(e,t){let o=t.split("."),n=e;for(let a=0;a<o.length;a++){let l=o[a],s=0,i=l.indexOf("["),u=i==-1?-1:l.indexOf("]",i);for(;i!==-1&&u!==-1;){let f=l.substring(i+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(s==0){let d=l.substring(0,i);n=n[d][c]}else n=n[c];s++}i=l.indexOf("[",u),u=i==-1?-1:l.indexOf("]",i)}s===0&&(n=n[l])}return n}function bn(e,t){return e.filter(n=>{for(let a in t){const l=t[a],s=Ps(n,a);if(l!==s)return!1}return!0})}const fo={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"}},ho={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}},wn={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 Hs(e,t,o){return{inheritAttrs:!1,props:{...ie,...pe,...fo,...ho,...wn},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,a){const{locale:l}=Ce.useFoxI18n(t),{emitEvent:s}=ue({componentName:e,validateHandler:{getValue(...j){return V.value}}},n.prop??a.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 w=j=>{S.value=j,s("page-index-change",j)},$=r.ref(n.pageSize);r.watch(()=>n.pageSize,j=>{$.value=j});const g=j=>{$.value=j,s("page-size-change",j)},y=r.shallowRef({}),p=r.computed(()=>({...y.value,...n.params??{},...n.baseParams??{}})),E=r.ref(0),V=r.ref(),F=qs();let N=!0;const x=()=>Array.isArray(n.data)||typeof n.data=="function"?!0:te(n.autoLoad),I=Se(r.computed(()=>n.lazyLoad),"lazyLoad",$e.Near,j=>te(j)),k=async(j,X,Z,ee)=>{try{const ye=await F.load("table",j,X,Z,ee,N,l.value);E.value=ye.totalSize,V.value=ye.page}catch(ye){console.error("[FoxUI] Load Table Data Fail",ye),E.value=0,V.value=[]}N=!1,setTimeout(()=>{s("loaded-data")},250)};r.watch([S,$],([j,X],[Z,ee])=>{X!==ee&&(S.value=1,j=1),k(n.data,j,X,p.value)}),r.watch([()=>n.data,p],([j,X],[Z,ee])=>{x()&&(j!==Z&&(N=!0),!(!Array.isArray(j)&&Be(j,Z)&&Be(X,ee))&&k(j,S.value,$.value,X))},{deep:!0});const R=(j={},X=!1)=>new Promise(Z=>{y.value=r.toRaw(j??{}),r.triggerRef(y),X||(S.value=n.pageIndex??1),r.nextTick(async()=>{await k(n.data,S.value,$.value,p.value),Z()})}),B=()=>{E.value=0,V.value=[]};let z=!1;const _=()=>{z||(z=!0,R())};x()&&!I.value&&R();const v=r.ref(null);r.provide(_s,{currentRow:v});const b=(j,X)=>{v.value=j,s("current-change",j,X)},T=(j,X,Z)=>{s("row-click",j,X,Z),te(n.rowClickSelectable)===!0&&P?.value.toggleRowSelection(j)},O=[],q=(j,X)=>{if(s("expand-change",j,X),te(n.uniqueExpansion))if(Array.isArray(X)&&X.length==0){const Z=O.length;O.splice(0,Z)}else{O.forEach(ee=>{ee!==j&&P?.value.toggleRowExpansion(ee,!1)});const Z=O.length;O.splice(0,Z,j)}},W=a.attrs.id??n.prop??a.attrs.name,C=js(),A=r.ref([]);let H=[];const L=()=>({srcColumnPropertyList:H.map(X=>({...X})),columnPropertyList:A.value}),K=j=>{A.value=[...j],Y()},M=async()=>{const j=await C.load(W);j&&(A.value=j)},Y=()=>{C.save(W,A.value)},G=()=>{C.remove(W)};M();const D=j=>j?j.type?j.type:j.label?j.prop:"":"",U=r.computed(()=>{if(typeof a.slots.default=="function"){const j=a.slots.default(),X=new Map;if(H=[],j.forEach(Z=>{const ee=Z;if(!ee.props)return;const ye=D(ee.props);X.set(ye,Z);const se={label:"",prop:""};Object.assign(se,ee.props),H.push(se)}),A.value.length===H.length){const Z=[];for(let ee of A.value){const ye=D(ee),se=X.get(ye);if(!se)return j;if(ee.visible===!1)continue;const ze=r.cloneVNode(se);ze.props.fixed=ee.fixed,Z.push(ze)}return Z}return j}return[]}),P=r.ref();return fe({clearSelection:()=>P?.value.clearSelection(),getSelectionRows:()=>P?.value.getSelectionRows(),toggleRowSelection:(j,X)=>{P?.value.toggleRowSelection(j,X)},toggleRowSelectionByProp:(j,X)=>{if(!V.value)return;const Z=bn(V.value,j);Z.length!==0&&Z.forEach(ee=>{P?.value.toggleRowSelection(ee,X)})},toggleAllSelection:()=>{P?.value.toggleAllSelection()},toggleRowExpansion:(j,X)=>{P?.value.toggleRowExpansion(j,X)},toggleRowExpansionByProp:(j,X)=>{if(!V.value)return;const Z=bn(V.value,j);Z.length!==0&&Z.forEach(ee=>{P?.value.toggleRowExpansion(ee,X)})},setCurrentRow:j=>{P?.value.setCurrentRow(j)},setCurrentRowByProp:j=>{if(!V.value)return;const X=bn(V.value,j);X.length!==0&&P?.value.setCurrentRow(X[0])},getCurrentRow:()=>v.value,clearSort:()=>{P?.value.clearSort()},clearFilter:j=>{P?.value.clearFilter(j)},doLayout:()=>{P?.value.doLayout()},sort:(j,X)=>{P?.value.sort(j,X)},scrollTo:(j,X)=>{P?.value.scrollTo(j,X)},setScrollTop:j=>{P?.value.setScrollTop(j)},setScrollLeft:j=>{P?.value.setScrollLeft(j)},loadData:R,clearData:B,getData(){return V.value},getTotalSize(){return E.value},getPageIndex(){return S.value},getPageSize(){return $.value},getColumnSetting:L,setColumnSetting:K,removeColumnSetting:G}),()=>{const X={...a.attrs,onCurrentChange:b,onRowClick:T,onExpandChange:q,data:V.value,ref:P,class:u.value},Z={};a.slots.default&&(Z.default=()=>U.value),a.slots.append&&(Z.append=a.slots.append),a.slots.empty&&(Z.empty=a.slots.empty);const ee=[],ye=r.h(m.ElTable,X,Z);ee.push(ye);let se=null;if(typeof a.slots.pagination=="function")se=a.slots.pagination();else if(n.showPagination){const ht={class:d.value,total:E.value,pageSize:$.value,"onUpdate:pageSize":g,pageSizes:n.pageSizes,currentPage:S.value,"onUpdate:currentPage":w,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0};se=r.h(m.ElPagination,ht)}if(n.showSetting){const ht=[];se&&ht.push(se);const Lc=r.h(m.ElIcon,{class:f.value},{default:()=>r.h(Ve.Setting)}),qc=Yn(n,wn),Mc=r.h(yn,{...qc,tableRef:{getColumnSetting:L,setColumnSetting:K,removeColumnSetting:G}},{default:()=>Lc});ht.push(Mc);const jc=r.h("div",{class:c.value},ht);ee.push(jc)}else se&&ee.push(se);const ze={default:()=>ee},dt={...me(n,fo,ho,wn),prop:`${n.prop}_item`};return dt.contentClass=`${i}__wrap`,dt.errorMarkClass="is-table-error",I.value&&x()&&(dt["appear-listen"]=!0,dt.onAppear=_),r.h(o,dt,ze)}}}}const{componentName:zs,create:Ks,scope:Ws}=Q("table-item"),go=Ks(Hs(zs,Ws,de));function Ze(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ft(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Ys(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Us=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const a=Ne(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Fe(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}};function Gs(){const e=r.getCurrentInstance();return new Us(e.proxy)}function mo(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=Ze(e,t),a=Ze(e,o);if(n!==a)return!1;const l=ft(e,t),s=ft(e,o);return l===s}function Xs(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;let a=null;for(let l of n){let s=!1;if(o==="text")s=Ze(e,l)===t;else if(o==="item")s=mo(e,l,t);else{let i=ft(e,l);i==null&&(i=Ze(e,l)),s=i===t}if(s){a=l;break}}return a}function Zs(e){return{text:e,value:e}}function Js(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const po={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 Qs(e,t,o){return{inheritAttrs:!0,props:{...ie,...pe,...po},emits:["change","update:modelValue"],setup(n,a){const l=we(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),u=r.ref(null),f=r.ref(null),c=(I,k,R,B=!0)=>{const z=Xs(n,I,k,R);if(z===null){if(f.value===null)return;f.value=null,u.value=null,B&&(i("update:modelValue",null),i("change",null));return}if(!mo(n,z,f.value)){u.value=I;const v=r.toRaw(z);f.value=v;let b=null;n.valueType==="text"?b=Ze(n,v):n.valueType==="item"?b=v:b=ft(n,v),B&&(i("update:modelValue",b),i("change",b))}},d=r.ref([]),S=Se(r.computed(()=>n.lazyLoad),"lazyLoad",$e.Near,I=>te(I)),w=Gs(),$=async(I,k)=>{if(I){const R=await w.load("radio",I,k);if(R.length>0)if(typeof R[0]=="string"){let _=R.map(v=>Zs(v));d.value=_}else d.value=R}};r.watch([()=>n.source,()=>n.params],async([I,k])=>{$(I,k)},{immediate:!S.value});let g=!1;const y=()=>{g||(g=!0,$(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([I,k])=>{c(k,n.valueType,I,!1)});const p=e,E=r.computed(()=>({[p]:!0,[`is-${n.direction}`]:!0})),V=I=>{c(I,"value",d.value,!0)};let F=ne(n,"hintText"),N=ne(n,"hintVisible");const x=(I,k)=>{const R=[];return I.forEach((B,z)=>{const _=ft(n,B),v=Ze(n,B);let b=Ys(n,B);l.value===!0&&(b=l.value),s.value===!0&&(b=s.value);const T=Js(n,B,z)??{},O=`${_}_${z}`,q={...T,key:O,label:_,disabled:b,size:n.size,border:te(n.border)};n.itemType==="button"?R.push(r.h(m.ElRadioButton,q,{default:()=>[v]})):typeof k=="function"?R.push(r.h(m.ElRadio,q,{default:()=>k(B)})):R.push(r.h(m.ElRadio,q,{default:()=>[v]}))}),R};return()=>{const k={...a.attrs,class:E.value,disabled:l.value||s.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:V},R=[],B={};a.slots.options?B.default=a.slots.options:B.default=()=>x(d.value,a.slots.text);const z=r.h(m.ElRadioGroup,k,B);R.push(z);const _={default:()=>R};a.slots.default&&(_.label=a.slots.default),a.slots.fixedTip&&(_.fixedTip=a.slots.fixedTip);const b={...me(n,po),hintText:F.value,hintVisible:N.value,prop:`${n.prop??a.attrs.name}_item`};return S.value&&(b["appear-listen"]=!0,b.onAppear=y),r.h(o,b,_)}}}}const{componentName:eu,create:tu,scope:nu}=Q("radio-item"),yo=tu(Qs(eu,nu,de));function Je(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Qe(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function ru(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}class ou{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const a=Ne(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Fe(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}}function au(){const e=r.getCurrentInstance();return new ou(e.proxy)}function bo(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=Je(e,t),a=Je(e,o);if(n!==a)return!1;const l=Qe(e,t),s=Qe(e,o);return l===s}function lu(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];return t.forEach(l=>{for(let s of n){let i=!1;if(o==="text")i=Je(e,s)===l;else if(o==="item")i=bo(e,s,l);else{let u=Qe(e,s);u==null&&(u=Je(e,s)),i=u===l}if(i){a.push(s);break}}}),a}function iu(e){return{text:e,value:e}}function su(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const wo={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 uu(e,t,o){return{inheritAttrs:!1,props:{...ie,...pe,...wo},emits:["change","update:modelValue"],setup(n,a){const l=we(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),u=r.ref([]),f=r.ref([]),c=(I,k,R,B=!0)=>{const z=lu(n,I,k,R);if(z===null){if(f.value===null||f.value.length===0)return;u.value=[],f.value=[],B&&(i("update:modelValue",[]),i("change",[]));return}let _=!0;if(z.length!==f.value.length)_=!1;else for(let v=0;v<z.length;v++){const b=z[v],T=f.value[v];if(!bo(n,b,T)){_=!1;break}}if(!_){f.value=z;let v=[],b=[];z.forEach(O=>{v.push(Qe(n,O)),n.valueType==="text"?b.push(Je(n,O)):n.valueType==="item"?b.push(O):b.push(Qe(n,O))}),u.value=v;const T=r.toRaw(b);B&&(i("update:modelValue",T),i("change",T))}},d=r.ref([]),S=Se(r.computed(()=>n.lazyLoad),"lazyLoad",$e.Near,I=>te(I)),w=au(),$=async(I,k)=>{if(I){const R=await w.load("checkbox",I,k);if(R.length>0)if(typeof R[0]=="string"){let _=R.map(v=>iu(v));d.value=_}else d.value=R}};r.watch([()=>n.source,()=>n.params],async([I,k])=>{$(I,k)},{immediate:!S.value});let g=!1;const y=()=>{g||(g=!0,$(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([I,k])=>{c(k,n.valueType,I,!1)});const p=e,E=r.computed(()=>({[p]:!0,[`is-${n.direction}`]:!0})),V=I=>{c(I,"value",d.value,!0)};let F=ne(n,"hintText"),N=ne(n,"hintVisible");const x=(I,k)=>{const R=[];return I.forEach((B,z)=>{const _=Qe(n,B),v=Je(n,B);let b=ru(n,B);l.value===!0&&(b=l.value),s.value===!0&&(b=s.value);const T=su(n,B,z)??{},O=`${_}_${z}`,q={...T,key:O,class:n.itemClass,label:_,disabled:b,size:n.size,border:te(n.border)};n.itemType==="button"?R.push(r.h(m.ElCheckboxButton,q,{default:()=>[v]})):typeof k=="function"?R.push(r.h(m.ElCheckbox,q,{default:()=>k(B)})):R.push(r.h(m.ElCheckbox,q,{default:()=>[v]}))}),R};return()=>{const k={...a.attrs,class:E.value,disabled:l.value||s.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:ge(n.max),min:ge(n.min),onChange:V},R=[],B={};a.slots.options?B.default=a.slots.options:B.default=()=>x(d.value,a.slots.text);const z=r.h(m.ElCheckboxGroup,k,B);R.push(z);const _={default:()=>R};a.slots.default&&(_.label=a.slots.default),a.slots.fixedTip&&(_.fixedTip=a.slots.fixedTip);const b={...me(n,wo),hintText:F.value,hintVisible:N.value,prop:`${n.prop??a.attrs.name}_item`};return S.value&&(b["appear-listen"]=!0,b.onAppear=y),r.h(o,b,_)}}}}const{componentName:cu,create:fu,scope:du}=Q("checkbox-item"),So=fu(uu(cu,du,de)),vo={modelValue:{type:[Number,String],required:!1}};function hu(e,t,o){return{props:{...ie,...pe,...vo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=we(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),u=ne(n,"modelValue",g=>ge(g)),f=e,c=r.computed(()=>({[f]:!0})),d=g=>{i("update:modelValue",g),i("change",g)};let S=ne(n,"hintText"),w=r.ref(!1);const $=r.ref();return fe({}),()=>{const y={...a.attrs,ref:$,class:c.value,readonly:s.value||l.value,modelValue:u.value,onChange:d},p={},E=[],V=r.h(m.ElRate,y,p);E.push(V);const F={default:()=>E};a.slots.default&&(F.label=a.slots.default),a.slots.fixedTip&&(F.fixedTip=a.slots.fixedTip);const x={...me(n,vo),hintText:S.value,hintVisible:w.value,prop:`${n.prop}_item`};return r.h(o,x,F)}}}}const{componentName:gu,create:mu,scope:pu}=Q("rate-item"),$o=mu(hu(gu,pu,de)),To={modelValue:{type:[Boolean,String,Number],required:!1}};function yu(e,t,o){return{props:{...ie,...pe,...To},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=we(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),u=ne(n,"modelValue"),f=e,c=r.computed(()=>({[f]:!0})),d=g=>{i("update:modelValue",g),i("change",g)};let S=ne(n,"hintText"),w=ne(n,"hintVisible");const $=r.ref();return fe({}),()=>{const y={...a.attrs,ref:$,class:c.value,readonly:s.value,disabled:l.value,modelValue:u.value,onChange:d},p={},E=[],V=r.h(m.ElSwitch,y,p);E.push(V);const F={default:()=>E};a.slots.default&&(F.label=a.slots.default),a.slots.fixedTip&&(F.fixedTip=a.slots.fixedTip);const x={...me(n,To),hintText:S.value,hintVisible:w.value,prop:`${n.prop}_item`};return r.h(o,x,F)}}}}const{componentName:bu,create:wu,scope:Su}=Q("switch-item"),Eo=wu(yu(bu,Su,de)),Co={modelValue:{type:[String,Number,Boolean],required:!1}};function vu(e,t,o){return{props:{...ie,...pe,...Co},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=we(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),i=r.ref(!1),{emitEvent:u}=ue({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),f=ne(n,"modelValue"),c=e,d=r.computed(()=>({[c]:!0})),S=N=>{u("update:modelValue",N),u("change",N)};let w=ne(n,"hintText"),$=r.ref(!1);const g=N=>{let I=N.target.value;i.value=!0,ae(w.value)||($.value=!0),u("focus",I,N)},y=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))),E.value||u("blur",I,N)},p=()=>{u("clear","")},E=r.ref(!1),V=N=>{E.value=N,u("visible-change",N),N||u("selected")},F=r.ref();return fe({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()}}),()=>{const x={...a.attrs,ref:F,class:d.value,disabled:l.value||s.value,modelValue:f.value,"onUpdate:modelValue":S,onClear:p,onFocus:g,onBlur:y,onVisibleChange:V},I={};a.slots.option&&(I.default=a.slots.option);const k=[],R=r.h(m.ElTreeSelect,x,I);k.push(R);const B={default:()=>k};a.slots.default&&(B.label=a.slots.default),a.slots.fixedTip&&(B.fixedTip=a.slots.fixedTip);const _={...me(n,Co),hintText:w.value,hintVisible:$.value,prop:`${n.prop}_item`};return r.h(o,_,B)}}}}const{componentName:$u,create:Tu,scope:Eu}=Q("tree-select-item"),xo=Tu(vu($u,Eu,de)),Cu=Symbol.for("InnerPageScopeKey"),xu=Symbol.for("PageWrapperKey");function Nu(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(o,n){r.provide(Cu,!0);const a={};r.provide(xu,a);const l=u=>{typeof a.beforeClose=="function"&&a.beforeClose()},s=r.ref(!0),i=u=>{s.value=u};return()=>{const f={...n.attrs,title:o.title,draggable:o.draggable,modelValue:s.value,"onUpdate:modelValue":i,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":l},c={};if(typeof n.slots.default=="function"){const d=n.slots.default();c.default=()=>d}return r.h(m.ElDialog,f,c)}}}}const{componentName:nf,create:ku,scope:rf}=Q("dialog-item"),No=ku(Nu());function Vu(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(o,{slots:n}){const a=e,l=r.computed(()=>({[a]:!0})),s=r.computed(()=>o.icon?{[`${a}__icon`]:!0,[`${a}__icon-${o.type}`]:!0}:{[`${a}__mark`]:!0,[`${a}__mark-${o.type}`]:!0}),i=r.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),u=r.computed(()=>{const c={[`${a}__text`]:!0,[`${a}__text-${o.type}`]:!0};return o.textPosition==="left"?c["is-left"]=!0:c["is-right"]=!0,c}),f=r.computed(()=>o.color?{color:o.color}:null);return()=>{let c=null;if(n.mark)c=n.mark()[0];else{const g={class:s.value,style:i.value};c=r.h(o.icon??"div",g)}const d={class:u.value,style:f.value},S=n.default?n.default():[],w=r.h("div",d,S),$={class:l.value};return o.textPosition==="right"?r.h("div",$,[c,w]):r.h("div",$,[w,c])}}}}const{componentName:Ou,create:Iu,scope:of}=Q("indicator"),ko=Iu(Vu(Ou));function Ru(e,t){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const n=o.getBoundingClientRect().width;if(n>0){t(n);return}e.classList.add("is-selectable"),setTimeout(()=>{o.setStart(e,0),o.setEnd(e,e.childNodes.length);const a=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(a)},500)}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 Du(e,t){return{props:{...Au},setup(o,n){const a=r.ref(!0),l=r.ref(null),s=r.computed(()=>{const c={[`${e}`]:!0,"is-truncated":o.truncated};return typeof o.class=="string"&&o.class.length>0&&o.class.split(/\s+/).forEach(S=>{c[S]=!0}),o.type&&(c[`${e}__${o.type}`]=!0),o.size&&(c[`${e}__${o.size}`]=!0),c}),i=c=>{if(c&&te(o.showOverflowTooltip)){const d=c.clientWidth;Ru(c,S=>{a.value=S<=d})}};let u=null;r.onMounted(()=>{if(!te(o.showOverflowTooltip))return;const c=l.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 o.highlightFilter=="string"&&o.highlightFilter.length>0){const w=o.highlightFilter;if(c.indexOf(w)!==-1){const g=c.replace(new RegExp(w,"g"),`<span>${w}</span>`);d.innerHTML=g,d.class["is-highlight"]=!0,S=r.h(o.tag,d)}}else if(typeof o.highlightFilter=="function"){const w=o.highlightFilter(c);w&&(d.innerHTML=w,d.class["is-highlight"]=!0,S=r.h(o.tag,d))}return S};return()=>{const c={},d={...n.attrs,class:{...s.value},ref:l};if(te(o.numberFormat)&&typeof n.slots.default=="function"){const g=n.slots.default();if(Array.isArray(g)&&g.length===1){const y=g[0].type.toString();if(y==="Symbol(Text)"||y==="Symbol(v-txt)"){const p=ge(o.digits),E=ge(o.decimalLength),V=te(o.autoPadding);let F=`${g[0].children}`,N=F.split("").reverse().join("");N=pt(N,E,V,p,o.separator),F=N.split("").reverse().join("");let x=null;o.highlightFilter!==void 0&&(x=f(F,d)),x||(d.innerHTML=F,x=r.h(o.tag,d)),c.default=()=>x}}}else{let g=null;if(o.highlightFilter!==void 0&&typeof n.slots.default=="function"){const y=n.slots.default();if(Array.isArray(y)&&y.length===1){const p=y[0].type.toString();if(p==="Symbol(Text)"||p==="Symbol(v-txt)"){const E=`${y[0].children}`;g=f(E,d),g||(d.innerHTML=E,g=r.h(o.tag,d))}}}g||(g=r.h(o.tag,d,{default:n.slots.default})),c.default=()=>g}const w={disabled:a.value};return c.content=n.slots.default,r.h(m.ElTooltip,w,c)}}}}const{componentName:Fu,create:Bu,scope:af}=Q("text"),Vo=Bu(Du(Fu)),Lu={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:Ve.ArrowUp}};function qu(e,t,o){return{props:{...Lu},emits:["click","update:modelValue"],setup(n,{emit:a}){const l=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=()=>{a("update:modelValue",!s.value)};return()=>{const d=[];if(i.value){const g={class:u.value},y=r.h("span",g,[i.value]);d.push(y)}const S={class:f.value},w=o(n.icon,S);return w&&d.push(w),r.h("div",{class:l.value,onClick:c},d)}}}}const{componentName:Mu,create:ju,scope:_u}=Q("more-button"),Oo=ju(qu(Mu,_u,(e,t)=>(e=e??Ve.ArrowUp,r.h(m.ElIcon,t,{default:()=>[r.h(e)]})))),{componentName:Pu,create:Hu,scope:sf}=Q("tour"),zu=Hu({components:{Close:Ve.Close,ElPopover:m.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 o=Pu,n=r.reactive({showTour:e.modelValue,showPopup:!1,active:0}),a=r.ref({}),l=r.computed(()=>`${o}`),s=r.computed(()=>{const{offset:$,maskWidth:g,maskHeight:y}=e,{width:p,height:E,left:V,top:F}=a.value,N=e.steps[n.active].offset??$,x=[V+p/2,F+E/2],I=Number(g||p),k=Number(y||E);return{width:`${I+ +N.left+N.right}px`,height:`${k+N.top+N.bottom}px`,top:`${x[1]-k/2-+N.top}px`,left:`${x[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}`),g=dn($);a.value={x:g.left,y:g.top,top:g.top,left:g.left,width:g.width,height:g.height}},d=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},S=()=>{e.closeOnClickOverlay&&d()},w=($,g=0)=>{$&&c(),e.steps,n.active=g,n.showTour=$,n.showPopup=$};return r.onMounted(()=>{w(e.modelValue,e.current)}),r.watch(()=>e.modelValue,$=>{w($)}),{...r.toRefs(n),classes:l,maskStyle:s,changeStep:i,popoverWidth:u,popoverLocation:f,close:d,handleClickMask:S}}}),Ku={key:0,class:"fox-tour__content"},Wu={key:0,class:"fox-tour__content-top"},Yu={class:"fox-tour__content-inner"},Uu={class:"fox-tour__content-bottom"},Gu={class:"fox-tour__content-bottom-init"},Xu={class:"fox-tour__content-bottom-operate"},Zu={key:1,class:"fox-tour__content fox-tour__content-tile"},Ju={class:"fox-tour__content-inner"};function Qu(e,t,o,n,a,l){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",Ku,[e.showTitleBar?(r.openBlock(),r.createElementBlock("div",Wu,[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",Yu,r.toDisplayString(f.content),1),r.createElementVNode("div",Uu,[r.createElementVNode("div",Gu,r.toDisplayString(e.active+1)+"/"+r.toDisplayString(e.steps.length),1),r.createElementVNode("div",Xu,[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",Zu,[r.createElementVNode("div",Ju,r.toDisplayString(f.content),1)])):r.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):r.createCommentVNode("",!0)]))),128))],2)}const Io=Te(zu,[["render",Qu]]);function Sn(e){let t=e.offsetHeight;if(t<=0){const o=e.cloneNode(!0),n=e.offsetWidth;o.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),t=o.offsetHeight,document.body.removeChild(o)}return t}const Ee=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,De=e=>e==null,Ro=10;function ec(e,t){return e>t&&e>Ro?"horizontal":t>e&&t>Ro?"vertical":""}function tc(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},t=()=>e.direction==="vertical",o=()=>e.direction==="horizontal",n=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:s=>{if(s.touches){const i=s.touches[0];e.deltaX=i.clientX-e.startX,e.deltaY=i.clientY-e.startY,e.moveX=i.clientX,e.moveY=i.clientY}else e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY;e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=ec(e.offsetX,e.offsetY))},start:s=>{if(n(),s.touches){const i=s.touches[0];e.startX=i.clientX,e.startY=i.clientY}else e.startX=s.clientX,e.startY=s.clientY;e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:o,state:e}}function nc(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function rc(e){e.stopPropagation()}function oc(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&rc(e)}class ac{startMove;updateMove;isTouch=!1;el=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,o){this.startMove=t,this.updateMove=o,this.isTouch=nc()}open(t){this.el=t;const o=tc(),n=(a,l,s,i,u)=>{this.updateMove({x:l,y:s})};this.touchstart=a=>{this.moving||(o.start(a),this.startMove({x:o.state.startX,y:o.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=a=>{this.moving&&(o.move(a),o.isHorizontal()&&oc(a,!0),n(t,o.state.deltaX,o.state.deltaY))},this.touchend=()=>{n(t,o.state.deltaX,o.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),o.reset(),this.moving=!1},t.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const t=this.el;this.touchstart&&t.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.el=null}}function lc(e,t){return new ac(e,t)}var Ao;const vn=typeof window<"u";vn&&((Ao=window?.navigator)!=null&&Ao.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let et=[];const Do=e=>{const t=e;t.key==="Escape"&&et.forEach(o=>o(t))},ic=e=>{r.onMounted(()=>{et.length===0&&document.addEventListener("keydown",Do),vn&&et.push(e)}),r.onBeforeUnmount(()=>{et=et.filter(t=>t!==e),et.length===0&&vn&&document.removeEventListener("keydown",Do)})},$n="fox-focus-trap.focus-after-trapped",Tn="fox-focus-trap.focus-after-released",sc="fox-focus-trap.focusout-prevented",Fo={cancelable:!0,bubbles:!1},uc={cancelable:!0,bubbles:!1},Bo="foxFocusAfterTrapped",Lo="foxFocusAfterReleased",cc=Symbol("foxFocusTrap"),En=r.ref(),Lt=r.ref(0),Cn=r.ref(0);let qt=0;const qo=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},fc=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},Mo=(e,t)=>{for(const o of e)if(!fc(o,t))return o},dc=e=>{const t=qo(e),o=Mo(t,e),n=Mo(t.reverse(),e);return[o,n]},hc=e=>e instanceof HTMLInputElement&&"select"in e,qe=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),Cn.value=window.performance.now(),e!==o&&hc(e)&&t&&e.select()}};function jo(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const gc=()=>{let e=[];return{push:n=>{const a=e[0];a&&n!==a&&a.pause(),e=jo(e,n),e.unshift(n)},remove:n=>{e=jo(e,n),e[0]?.resume?.()}}},mc=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(qe(n,t),document.activeElement!==o)return},_o=gc(),pc=()=>Lt.value>Cn.value,Mt=()=>{En.value="pointer",Lt.value=window.performance.now()},Po=()=>{En.value="keyboard",Lt.value=window.performance.now()},yc=()=>(r.onMounted(()=>{qt===0&&(document.addEventListener("mousedown",Mt),document.addEventListener("touchstart",Mt),document.addEventListener("keydown",Po)),qt++}),r.onBeforeUnmount(()=>{qt--,qt<=0&&(document.removeEventListener("mousedown",Mt),document.removeEventListener("touchstart",Mt),document.removeEventListener("keydown",Po))}),{focusReason:En,lastUserFocusTimestamp:Lt,lastAutomatedFocusTimestamp:Cn}),jt=e=>new CustomEvent(sc,{...uc,detail:e}),{componentName:uf,create:bc,scope:cf}=Q("focus-trap"),wc=bc({props:{loop:{type:[Boolean]},trapped:{type:[Boolean],required:!0},focusTrapEl:{type:Object},focusStartEl:{type:[Object,String],default:"first"}},emits:[Bo,Lo,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=r.ref();let a,l;const{focusReason:s}=yc();ic(g=>{e.trapped&&!i.paused&&o("release-requested",g)});const i={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=g=>{if(!e.loop&&!e.trapped||i.paused)return;const{key:y,altKey:p,ctrlKey:E,metaKey:V,currentTarget:F,shiftKey:N}=g,{loop:x}=e,I=y==="Tab"&&!p&&!E&&!V,k=document.activeElement;if(I&&k){const R=F,[B,z]=dc(R);if(B&&z){if(!N&&k===z){const v=jt({focusReason:s.value});o("focusout-prevented",v),v.defaultPrevented||(g.preventDefault(),x&&qe(B,!0))}else if(N&&[B,R].includes(k)){const v=jt({focusReason:s.value});o("focusout-prevented",v),v.defaultPrevented||(g.preventDefault(),x&&qe(z,!0))}}else if(k===R){const v=jt({focusReason:s.value});o("focusout-prevented",v),v.defaultPrevented||g.preventDefault()}}};r.provide(cc,{focusTrapRef:n,onKeydown:u}),r.watch(()=>e.focusTrapEl,g=>{g&&(n.value=g)},{immediate:!0}),r.watch([n],([g],[y])=>{g&&(g.addEventListener("keydown",u),g.addEventListener("focusin",d),g.addEventListener("focusout",S)),y&&(y.removeEventListener("keydown",u),y.removeEventListener("focusin",d),y.removeEventListener("focusout",S))});const f=g=>{o(Bo,g)},c=g=>o(Lo,g),d=g=>{const y=r.unref(n);if(!y)return;const p=g.target,E=g.relatedTarget,V=p&&y.contains(p);e.trapped||E&&y.contains(E)||(a=E),V&&o("focusin",g),!i.paused&&e.trapped&&(V?l=p:qe(l,!0))},S=g=>{const y=r.unref(n);if(!(i.paused||!y))if(e.trapped){const p=g.relatedTarget;!_n(p)&&!y.contains(p)&&setTimeout(()=>{if(!i.paused&&e.trapped){const E=jt({focusReason:s.value});o("focusout-prevented",E),E.defaultPrevented||qe(l,!0)}},0)}else{const p=g.target;p&&y.contains(p)||o("focusout",g)}};async function w(){await r.nextTick();const g=r.unref(n);if(g){_o.push(i);const y=g.contains(document.activeElement)?a:document.activeElement;if(a=y,!g.contains(y)){const E=new Event($n,Fo);g.addEventListener($n,f),g.dispatchEvent(E),E.defaultPrevented||r.nextTick(()=>{let V=e.focusStartEl;Dn(V)||(qe(V),document.activeElement!==V&&(V="first")),V==="first"&&mc(qo(g),!0),(document.activeElement===y||V==="container")&&qe(g)})}}}function $(){const g=r.unref(n);if(g){g.removeEventListener($n,f);const y=new CustomEvent(Tn,{...Fo,detail:{focusReason:s.value}});g.addEventListener(Tn,c),g.dispatchEvent(y),!y.defaultPrevented&&(s.value=="keyboard"||!pc())&&qe(a??document.body,!0),g.removeEventListener(Tn,f),_o.remove(i)}}return r.onMounted(()=>{e.trapped&&w(),r.watch(()=>e.trapped,g=>{g?w():$()})}),r.onBeforeUnmount(()=>{e.trapped&&$()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:Sc,create:vc,scope:df}=Q("floating-window"),$c=Symbol.for("InnerPageScopeKey"),Tc=Symbol.for("PageWrapperKey"),Ec={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},appendToBody:{type:[Boolean],required:!1,default:!0},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"展开"},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[Number,String],requried:!1},collapseWidth:{type:[Number,String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0}},Cc=vc({components:{FoxIcon:m.ElIcon,FocusTrap:wc},props:{...Ec},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=Sc,n=r.ref(e.modelValue);r.watch(()=>e.modelValue,O=>{n.value=O});const a=r.ref(e.left),l=r.ref(e.top),s=r.ref(e.right),i=r.ref(e.bottom),u=r.computed(()=>{const O={};return De(a.value)||(O.left=Ee(a.value)),De(l.value)||(O.top=Ee(l.value)),De(s.value)||(O.right=Ee(s.value)),De(i.value)||(O.bottom=Ee(i.valu)),De(e.zIndex)||(O["z-index"]=Ee(e.zIndex)),De(E.value)||(O.height=E.value),De(V.value)||(O.width=V.value),O}),f=r.computed(()=>e.closeIcon??Ve.Close);r.provide($c,!0);const c={};r.provide(Tc,c);const d=()=>{typeof c.beforeClose=="function"?c.beforeClose(()=>{n.value=!1}):n.value=!1},S=r.computed(()=>e.collapseIcon??Ve.ArrowUp),w=r.computed(()=>F.value?e.expandText??"":e.collapseText??""),$=r.computed(()=>({[`${o}__collapse-text`]:!0})),g=r.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!F.value,"is-collapse":F.value})),y=r.ref(),p=r.ref(),E=r.computed(()=>N.value||Ee(e.height)||""),V=r.computed(()=>x.value||Ee(e.width)||""),F=r.ref(!1),N=r.ref(""),x=r.ref(""),I=r.ref(!1);let k=-1;const R=(O,q=!0)=>{const W=y.value;if(W&&F.value!==O){if(k=k===-1?Sn(W):k,I.value=!0,q)if(W.style["will-change"]="height",W.ontransitionend=function(){W.ontransitionend=null,this.style["will-change"]="auto",O||(N.value="",I.value=!1)},O){let C=0;e.collapseHeight?C=e.collapseHeight:p.value&&p.value.classList.contains(`${o}__header`)&&(C=Sn(p.value)),N.value=`${k}px`,r.nextTick(()=>{N.value=`${C}px`,x.value=De(e.collapseWidth)?"":Ee(e.collapseWidth)})}else N.value=`${k}px`,x.value="";else if(O){let C=0;e.collapseHeight?C=e.collapseHeight:p.value&&p.value.classList.contains(`${o}__header`)&&(C=Sn(p.value)),N.value=`${C}px`,x.value=De(e.collapseWidth)?"":Ee(e.collapseWidth)}else I.value=!1,N.value=`${k}px`,x.value="";F.value=O,t("update:collapse",O)}};r.watch(()=>e.collapse,O=>{R(O)});const B=()=>{z()},z=O=>{O=O??!F.value,R(O)},_={x:0,y:0},T=lc(O=>{if(!y.value)return;const q=y.value;a.value=q.offsetLeft,l.value=q.offsetTop,_.x=a.value,_.y=l.value,s.value=null,i.value=null},O=>{if(!y.value)return;const q=y.value;a.value=_.x+O.x,l.value=_.y+O.y,s.value=null,i.value=null,q.style.left=Ee(a.value),q.style.top=Ee(l.value)});return r.onMounted(()=>{e.draggable&&p.value&&y.value&&T.open(p.value),e.collapse===!0&&R(e.collapse,!1)}),r.onBeforeUnmount(()=>{e.draggable&&p.value&&T.close()}),{styles:u,visible:n,closeIcon:f,onClose:d,dialogRef:y,headerRef:p,onClickToggle:B,collapseIcon:S,currentCollapseText:w,collapseTextClasses:$,collapseIconClasses:g}}}),xc={ref:"headerRef",class:"fox-floating-window__header"},Nc={class:"fox-floating-window__title"},kc={class:"fox-floating-window__tools"},Vc={class:"fox-floating-window__body"};function Oc(e,t,o,n,a,l){const s=r.resolveComponent("FoxIcon"),i=r.resolveComponent("FocusTrap");return r.openBlock(),r.createBlock(r.Teleport,{to:"body",disabled:!e.appendToBody},[r.createVNode(r.Transition,{name:"dialog-fade"},{default:r.withCtx(()=>[r.createVNode(i,{loop:!0,trapped:e.visible,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",{ref:"dialogRef",class:"fox-floating-window",style:r.normalizeStyle(e.styles),tabindex:"-1"},[r.createElementVNode("div",xc,[r.renderSlot(e.$slots,"header",{},()=>[r.createElementVNode("span",Nc,r.toDisplayString(e.title),1),r.createElementVNode("div",kc,[e.showCollapse?(r.openBlock(),r.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[r.createElementVNode("span",{class:r.normalizeClass(e.collapseTextClasses)},r.toDisplayString(e.currentCollapseText),3),r.createVNode(s,{class:r.normalizeClass(e.collapseIconClasses)},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):r.createCommentVNode("",!0),e.showClose?(r.openBlock(),r.createBlock(s,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):r.createCommentVNode("",!0)])])],512),r.createElementVNode("div",Vc,[r.renderSlot(e.$slots,"default")])],4),[[r.vShow,e.visible]])]),_:3},8,["trapped","focus-trap-el"])]),_:3})],8,["disabled"])}const Ho=Te(Cc,[["render",Oc]]);function Ic(e,t){return{props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return nr(o.name,o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:hf,create:Rc,scope:gf}=Q("domain-provider"),zo=Rc(Ic()),Ko=10;function Ac(e,t){return e>t&&e>Ko?"horizontal":t>e&&t>Ko?"vertical":""}function Dc(){const e=r.ref(0),t=r.ref(0),o=r.ref(0),n=r.ref(0),a=r.ref(0),l=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",w=()=>{s.value=0,i.value=0,u.value=0,f.value=0,c.value="",o.value=0};return{move:y=>{const p=y.touches[0];s.value=p.clientX-e.value,i.value=p.clientY-t.value,a.value=p.clientX,l.value=p.clientY,u.value=Math.abs(s.value),f.value=Math.abs(i.value),n.value=Date.now()-o.value,c.value||(c.value=Ac(u.value,f.value))},start:y=>{w(),e.value=y.touches[0].clientX,t.value=y.touches[0].clientY,o.value=Date.now()},reset:w,startX:e,startY:t,startTime:o,duration:n,moveX:a,moveY:l,deltaX:s,deltaY:i,offsetX:u,offsetY:f,direction:c,isVertical:d,isHorizontal:S}}const Fc=[fr,dr,hr,gr,yr,de,Tr,Er,Dt,xr,Ir,Hr,Kr,Yr,Qr,to,oo,lo,so,co,yn,go,yo,So,$o,Eo,xo,No,Bt,hn,ko,Vo,Oo,Io,Ho,zo],Bc=new Aa(Fc,[Ba],"4.0.0");Object.defineProperty(h,"FoxAffix",{enumerable:!0,get:()=>m.ElAffix}),Object.defineProperty(h,"FoxAlert",{enumerable:!0,get:()=>m.ElAlert}),Object.defineProperty(h,"FoxAside",{enumerable:!0,get:()=>m.ElAside}),Object.defineProperty(h,"FoxAutoResizer",{enumerable:!0,get:()=>m.ElAutoResizer}),Object.defineProperty(h,"FoxAutocomplete",{enumerable:!0,get:()=>m.ElAutocomplete}),Object.defineProperty(h,"FoxAvatar",{enumerable:!0,get:()=>m.ElAvatar}),Object.defineProperty(h,"FoxBacktop",{enumerable:!0,get:()=>m.ElBacktop}),Object.defineProperty(h,"FoxBadge",{enumerable:!0,get:()=>m.ElBadge}),Object.defineProperty(h,"FoxBreadcrumb",{enumerable:!0,get:()=>m.ElBreadcrumb}),Object.defineProperty(h,"FoxBreadcrumbItem",{enumerable:!0,get:()=>m.ElBreadcrumbItem}),Object.defineProperty(h,"FoxButton",{enumerable:!0,get:()=>m.ElButton}),Object.defineProperty(h,"FoxButtonGroup",{enumerable:!0,get:()=>m.ElButtonGroup}),Object.defineProperty(h,"FoxCalendar",{enumerable:!0,get:()=>m.ElCalendar}),Object.defineProperty(h,"FoxCard",{enumerable:!0,get:()=>m.ElCard}),Object.defineProperty(h,"FoxCarousel",{enumerable:!0,get:()=>m.ElCarousel}),Object.defineProperty(h,"FoxCarouselItem",{enumerable:!0,get:()=>m.ElCarouselItem}),Object.defineProperty(h,"FoxCascader",{enumerable:!0,get:()=>m.ElCascader}),Object.defineProperty(h,"FoxCascaderPanel",{enumerable:!0,get:()=>m.ElCascaderPanel}),Object.defineProperty(h,"FoxCheckTag",{enumerable:!0,get:()=>m.ElCheckTag}),Object.defineProperty(h,"FoxCheckbox",{enumerable:!0,get:()=>m.ElCheckbox}),Object.defineProperty(h,"FoxCheckboxButton",{enumerable:!0,get:()=>m.ElCheckboxButton}),Object.defineProperty(h,"FoxCheckboxGroup",{enumerable:!0,get:()=>m.ElCheckboxGroup}),Object.defineProperty(h,"FoxCol",{enumerable:!0,get:()=>m.ElCol}),Object.defineProperty(h,"FoxCollapse",{enumerable:!0,get:()=>m.ElCollapse}),Object.defineProperty(h,"FoxCollapseItem",{enumerable:!0,get:()=>m.ElCollapseItem}),Object.defineProperty(h,"FoxCollapseTransition",{enumerable:!0,get:()=>m.ElCollapseTransition}),Object.defineProperty(h,"FoxColorPicker",{enumerable:!0,get:()=>m.ElColorPicker}),Object.defineProperty(h,"FoxConfigProvider",{enumerable:!0,get:()=>m.ElConfigProvider}),Object.defineProperty(h,"FoxContainer",{enumerable:!0,get:()=>m.ElContainer}),Object.defineProperty(h,"FoxDatePicker",{enumerable:!0,get:()=>m.ElDatePicker}),Object.defineProperty(h,"FoxDescriptions",{enumerable:!0,get:()=>m.ElDescriptions}),Object.defineProperty(h,"FoxDescriptionsItem",{enumerable:!0,get:()=>m.ElDescriptionsItem}),Object.defineProperty(h,"FoxDialog",{enumerable:!0,get:()=>m.ElDialog}),Object.defineProperty(h,"FoxDivider",{enumerable:!0,get:()=>m.ElDivider}),Object.defineProperty(h,"FoxDrawer",{enumerable:!0,get:()=>m.ElDrawer}),Object.defineProperty(h,"FoxDropdown",{enumerable:!0,get:()=>m.ElDropdown}),Object.defineProperty(h,"FoxDropdownItem",{enumerable:!0,get:()=>m.ElDropdownItem}),Object.defineProperty(h,"FoxDropdownMenu",{enumerable:!0,get:()=>m.ElDropdownMenu}),Object.defineProperty(h,"FoxEmpty",{enumerable:!0,get:()=>m.ElEmpty}),Object.defineProperty(h,"FoxFooter",{enumerable:!0,get:()=>m.ElFooter}),Object.defineProperty(h,"FoxForm",{enumerable:!0,get:()=>m.ElForm}),Object.defineProperty(h,"FoxFormItem",{enumerable:!0,get:()=>m.ElFormItem}),Object.defineProperty(h,"FoxHeader",{enumerable:!0,get:()=>m.ElHeader}),Object.defineProperty(h,"FoxIcon",{enumerable:!0,get:()=>m.ElIcon}),Object.defineProperty(h,"FoxImage",{enumerable:!0,get:()=>m.ElImage}),Object.defineProperty(h,"FoxImageViewer",{enumerable:!0,get:()=>m.ElImageViewer}),Object.defineProperty(h,"FoxInput",{enumerable:!0,get:()=>m.ElInput}),Object.defineProperty(h,"FoxInputNumber",{enumerable:!0,get:()=>m.ElInputNumber}),Object.defineProperty(h,"FoxLink",{enumerable:!0,get:()=>m.ElLink}),Object.defineProperty(h,"FoxMain",{enumerable:!0,get:()=>m.ElMain}),Object.defineProperty(h,"FoxMenu",{enumerable:!0,get:()=>m.ElMenu}),Object.defineProperty(h,"FoxMenuItem",{enumerable:!0,get:()=>m.ElMenuItem}),Object.defineProperty(h,"FoxMenuItemGroup",{enumerable:!0,get:()=>m.ElMenuItemGroup}),Object.defineProperty(h,"FoxOption",{enumerable:!0,get:()=>m.ElOption}),Object.defineProperty(h,"FoxOptionGroup",{enumerable:!0,get:()=>m.ElOptionGroup}),Object.defineProperty(h,"FoxPageHeader",{enumerable:!0,get:()=>m.ElPageHeader}),Object.defineProperty(h,"FoxPagination",{enumerable:!0,get:()=>m.ElPagination}),Object.defineProperty(h,"FoxPopconfirm",{enumerable:!0,get:()=>m.ElPopconfirm}),Object.defineProperty(h,"FoxPopover",{enumerable:!0,get:()=>m.ElPopover}),Object.defineProperty(h,"FoxPopper",{enumerable:!0,get:()=>m.ElPopper}),Object.defineProperty(h,"FoxProgress",{enumerable:!0,get:()=>m.ElProgress}),Object.defineProperty(h,"FoxRadio",{enumerable:!0,get:()=>m.ElRadio}),Object.defineProperty(h,"FoxRadioButton",{enumerable:!0,get:()=>m.ElRadioButton}),Object.defineProperty(h,"FoxRadioGroup",{enumerable:!0,get:()=>m.ElRadioGroup}),Object.defineProperty(h,"FoxRate",{enumerable:!0,get:()=>m.ElRate}),Object.defineProperty(h,"FoxResult",{enumerable:!0,get:()=>m.ElResult}),Object.defineProperty(h,"FoxRow",{enumerable:!0,get:()=>m.ElRow}),Object.defineProperty(h,"FoxScrollbar",{enumerable:!0,get:()=>m.ElScrollbar}),Object.defineProperty(h,"FoxSelect",{enumerable:!0,get:()=>m.ElSelect}),Object.defineProperty(h,"FoxSelectV2",{enumerable:!0,get:()=>m.ElSelectV2}),Object.defineProperty(h,"FoxSkeleton",{enumerable:!0,get:()=>m.ElSkeleton}),Object.defineProperty(h,"FoxSkeletonItem",{enumerable:!0,get:()=>m.ElSkeletonItem}),Object.defineProperty(h,"FoxSlider",{enumerable:!0,get:()=>m.ElSlider}),Object.defineProperty(h,"FoxSpace",{enumerable:!0,get:()=>m.ElSpace}),Object.defineProperty(h,"FoxStep",{enumerable:!0,get:()=>m.ElStep}),Object.defineProperty(h,"FoxSteps",{enumerable:!0,get:()=>m.ElSteps}),Object.defineProperty(h,"FoxSubMenu",{enumerable:!0,get:()=>m.ElSubMenu}),Object.defineProperty(h,"FoxSwitch",{enumerable:!0,get:()=>m.ElSwitch}),Object.defineProperty(h,"FoxTabPane",{enumerable:!0,get:()=>m.ElTabPane}),Object.defineProperty(h,"FoxTable",{enumerable:!0,get:()=>m.ElTable}),Object.defineProperty(h,"FoxTableColumn",{enumerable:!0,get:()=>m.ElTableColumn}),Object.defineProperty(h,"FoxTableV2",{enumerable:!0,get:()=>m.ElTableV2}),Object.defineProperty(h,"FoxTabs",{enumerable:!0,get:()=>m.ElTabs}),Object.defineProperty(h,"FoxTag",{enumerable:!0,get:()=>m.ElTag}),Object.defineProperty(h,"FoxTimePicker",{enumerable:!0,get:()=>m.ElTimePicker}),Object.defineProperty(h,"FoxTimeSelect",{enumerable:!0,get:()=>m.ElTimeSelect}),Object.defineProperty(h,"FoxTimeline",{enumerable:!0,get:()=>m.ElTimeline}),Object.defineProperty(h,"FoxTimelineItem",{enumerable:!0,get:()=>m.ElTimelineItem}),Object.defineProperty(h,"FoxTooltip",{enumerable:!0,get:()=>m.ElTooltip}),Object.defineProperty(h,"FoxTransfer",{enumerable:!0,get:()=>m.ElTransfer}),Object.defineProperty(h,"FoxTree",{enumerable:!0,get:()=>m.ElTree}),Object.defineProperty(h,"FoxTreeSelect",{enumerable:!0,get:()=>m.ElTreeSelect}),Object.defineProperty(h,"FoxTreeV2",{enumerable:!0,get:()=>m.ElTreeV2}),Object.defineProperty(h,"FoxUpload",{enumerable:!0,get:()=>m.ElUpload}),h.AutocompleteItem=lo,h.Broadcast=en,h.BroadcastKey=le,h.CascaderItem=oo,h.CheckboxItem=So,h.Content=gr,h.DataItemsKey=Ke,h.DateItem=Hr,h.DateUtils=ct,h.DialogItem=No,h.Domain=$t,h.DomainKey=ve,h.DomainProvider=zo,h.FloatingWindow=Ho,h.FooterBar=hr,h.Group=yr,h.HeaderBar=dr,h.HintText=Dt,h.Indicator=ko,h.InputItem=xr,h.InputNumberItem=to,h.Item=de,h.Mapping=Bt,h.MoneyItem=Qr,h.MoreButton=Oo,h.Page=fr,h.Price=hn,h.PriorityPolicy=$e,h.RadioItem=yo,h.RateItem=$o,h.RowItem=Er,h.SelectItem=Ir,h.SlotItem=Tr,h.SwitchItem=Eo,h.TableItem=go,h.TableMappingColumn=so,h.TableRadioColumn=co,h.TableSetting=yn,h.Text=Vo,h.TimeItem=Kr,h.TimeSelectItem=Yr,h.Tour=Io,h.TreeSelectItem=xo,h.UniqueID=vr,h.ValidateSchema=Qn,h.ValidateSchemaKey=Oe,h.cancelRaf=Go,h.clearNonNumber=ca,h.clone=Jt,h.compareTo=Gt,h.createBroadcast=wt,h.createValidateSchema=vt,h.debounce=it,h.debounceRef=Ta,h.decimalLength=Kn,h.default=Bc,h.defineBroadcast=ga,h.defineConfigDomain=nr,h.defineDataItem=or,h.defineDomain=rn,h.defineItem=ue,h.definePageState=ar,h.deleteGlobalValidator=ba,h.disabledProperty=we,h.divide=Ut,h.excludeProps=me,h.extend=je,h.floatData=ha,h.getGlobalValidateCheckEvents=Xn,h.getGlobalValidateResetEvents=Jn,h.getPageContentAreaHeight=Et,h.getPageContentAreaWidth=Ct,h.getPageFooterAreaHeight=ut,h.getPageHeaderAreaHeight=st,h.getRootDomain=We,h.hasSymbol=Bn,h.includeProps=Yn,h.indexOf=fa,h.installRules=rr,h.integerLength=zn,h.isArray=Qo,h.isArrayLike=Mn,h.isBrowser=rt,h.isDate=na,h.isESModule=aa,h.isEmptyString=ae,h.isEqual=Be,h.isFunction=Xt,h.isHidden=qn,h.isInnerPage=xa,h.isMap=ea,h.isNil=_n,h.isNumberString=Hn,h.isObject=Fe,h.isPlainObject=Zt,h.isPromise=oa,h.isRegExp=Pn,h.isSet=ta,h.isString=Dn,h.isSubPage=Na,h.isSymbol=ra,h.isWindow=Ln,h.lastIndexOf=da,h.makeArray=ua,h.merge=jn,h.multiply=In,h.negate=Rn,h.nextTick=ia,h.numberFormat=pt,h.objectToString=Fn,h.once=Ea,h.property=Se,h.raf=Jo,h.readonlyProperty=be,h.setGlobalValidateCheckEvents=wa,h.setGlobalValidateHandler=pa,h.setGlobalValidateMessages=va,h.setGlobalValidateResetEvents=Sa,h.setGlobalValidator=ya,h.throttle=tr,h.toBoolean=te,h.toNumber=ge,h.toPadding=xe,h.toPx=re,h.toPxDesc=ce,h.toTypeString=yt,h.toValue=ne,h.tryTimes=tn,h.typeOf=bt,h.unNumberFormat=An,h.updatePageState=on,h.useBroadcast=at,h.useDomain=Ie,h.useExpose=fe,h.useInnerSize=un,h.usePageState=Tt,h.usePosition=br,h.useRect=dn,h.useSize=sn,h.useTouch=Dc,h.valueLength=ot,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
5
+ */function mt(e,t="0"){let o=0,n=-1;e[0]=="-"&&(o++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(o++,n=2,t=t.substring(1),t.length),e=he(e),t=he(t),[e,t]=Pt(he(e),he(t)),o==1&&(n==1?e=_t(e):t=_t(t));let a=Nn(e,t);return o?o==2?"-"+he(a):e.length<a.length?he(a.substring(1)):"-"+he(_t(a)):he(a)}function _t(e){let t="",o=e.length,n=e.split(".")[1],a=n?n.length:0;for(let i=0;i<o;i++)e[i]>="0"&&e[i]<="9"?t+=9-parseInt(e[i]):t+=e[i];let l=a>0?"0."+new Array(a).join("0")+"1":"1";return Nn(t,l)}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 Pt(e,t){let o=e.split("."),n=t.split("."),a=o[0].length,l=n[0].length;return a>l?n[0]=new Array(Math.abs(a-l)+1).join("0")+(n[0]?n[0]:""):o[0]=new Array(Math.abs(a-l)+1).join("0")+(o[0]?o[0]:""),a=o[1]?o[1].length:0,l=n[1]?n[1].length:0,(a||l)&&(a>l?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(a-l)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(a-l)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function Nn(e,t){[e,t]=Pt(e,t);let o="",n=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){o="."+o;continue}let l=parseInt(e[a])+parseInt(t[a])+n;o=l%10+o,n=Math.floor(l/10)}return n?n.toString()+o:o}var oe=(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))(oe||{});function tt(e,t=0,o=oe.HALF_EVEN){if(o===oe.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 a=e.split("."),l=a[0],i=a[1];if(t<0){if(t=-t,l.length<=t)return"0";{let u=l.substr(0,l.length-t);return e=u+"."+l.substr(l.length-t)+i,u=tt(e,0,o),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return l.length,kn(a[1],l,n,o)?(n?"-":"")+Ht(l):(n?"-":"")+l;if(a[1]){if(a[1].length<t)return(n?"-":"")+l+"."+a[1]+new Array(t-a[1].length+1).join("0")}else return(n?"-":"")+l+"."+new Array(t+1).join("0");i=a[1].substring(0,t);let s=a[1].substring(t);return s&&kn(s,i,n,o)&&(i=Ht(i),i.length>t)?(n?"-":"")+Ht(l,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+l+"."+i}function kn(e,t,o,n){if(!e||e===new Array(e.length+1).join("0")||n===oe.DOWN||!o&&n===oe.FLOOR||o&&n===oe.CEILING)return!1;if(n===oe.UP||o&&n===oe.FLOOR||!o&&n===oe.CEILING)return!0;let a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)return!1;switch(n){case oe.HALF_DOWN:return!1;case oe.HALF_UP:return!0;case oe.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function Ht(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let o=e.length-1,n="";for(let a=o;a>=0;a--){let l=parseInt(e[a])+t;l==10?(t=1,l=0):t=0,n+=l}return t&&(n+=t),n.split("").reverse().join("")}function zt(e,t){e=e.toString(),t=t.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),t[0]=="-"&&(o++,t=t.substr(1)),e=nt(e),t=nt(t);let n=0,a=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(a=t.length-t.indexOf(".")-1);let l=n+a;if(e=nt(e.replace(".","")),t=nt(t.replace(".","")),e.length<t.length){let d=e;e=t,t=d}if(t=="0")return"0";let i=t.length,s=0,u=[],c=i-1,f="";for(let d=0;d<i;d++)u[d]=e.length-1;for(let d=0;d<2*e.length;d++){let S=0;for(let w=t.length-1;w>=c&&w>=0;w--)u[w]>-1&&u[w]<e.length&&(S+=parseInt(e[u[w]--])*parseInt(t[w]));S+=s,s=Math.floor(S/10),f=S%10+f,c--}return f=nt(Zo(f,l)),o==1&&(f="-"+f),f}function Zo(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 nt(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 Kt(e,t,o=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 a=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=he(t.replace(".","")),a>=0){let c=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(c==-1)e=he(e+new Array(a+1).join("0"));else if(a>c)e=e.replace(".",""),e=he(e+new Array(a-c+1).join("0"));else if(a<c){e=e.replace(".","");let f=e.length-c+a;e=he(e.substring(0,f)+"."+e.substring(f))}else a==c&&(e=he(e.replace(".","")))}let l=0,i=t.length,s="",u=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),u.indexOf(".")>-1){let c=u.length-u.indexOf(".")-1;u=u.replace(".",""),i>u.length&&(c+=i-u.length,u=u+new Array(i-u.length+1).join("0")),l=c,s="0."+new Array(c).join("0")}for(o=o+2;l<=o;){let c=0;for(;parseInt(u)>=parseInt(t);)u=mt(u,"-"+t),c++;s+=c,e?(e[0]=="."&&(s+=".",l++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(l||(s+="."),l++,u=u+"0")}return(n==1?"-":"")+he(tt(s,o-2))}function Wt(e,t){return e=e.toString(),t=t.toString(),t=Yt(t),mt(e,t)}function Yt(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Vn(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),On(e),On(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=Wt(e,zt(t,tt(Kt(e,t),0,oe.FLOOR)));return o+n}function On(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function In(e,t){let o=!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),o=!0),[e,t]=Pt(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]?o?-1:1:o?1:-1;return 0}class J{value;static RoundingModes=oe;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[o,n]=t.split(/[eE]/);o=he(o);let a="";o[0]=="-"&&(a="-",o=o.substring(1)),o.indexOf(".")>=0?(n=parseInt(n)+o.indexOf("."),o=o.replace(".","")):n=parseInt(n)+o.length,o.length<n?t=a+o+new Array(n-o.length+1).join("0"):o.length>=n&&n>0?t=a+he(o.substring(0,n))+(o.length>n?"."+o.substring(n):""):t=a+"0."+new Array(-n+1).join("0")+o}return t}constructor(t="0"){this.value=J.validate(t)}getValue(){return this.value}static getPrettyValue(t,o,n){if(!(o||n))o=3,n=",";else if(!(o&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=J.validate(t);let a=t.charAt(0)=="-";a&&(t=t.substring(1));var l=t.indexOf(".");l=l>0?l:t.length;for(var i="",s=l;s>0;)s<o?(o=s,s=0):s-=o,i=t.substring(s,s+o)+(s<l-o&&s>=0?n:"")+i;return(a?"-":"")+i+t.substring(l)}getPrettyValue(t,o){return J.getPrettyValue(this.value,t,o)}static round(t,o=0,n=oe.HALF_EVEN){if(t=J.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return tt(t,o,n)}round(t=0,o=oe.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new J(tt(this.value,t,o))}static floor(t){return t=J.validate(t),t.indexOf(".")===-1?t:J.round(t,0,oe.FLOOR)}floor(){return this.value.indexOf(".")===-1?new J(this.value):new J(this.value).round(0,oe.FLOOR)}static ceil(t){return t=J.validate(t),t.indexOf(".")===-1?t:J.round(t,0,oe.CEILING)}ceil(){return this.value.indexOf(".")===-1?new J(this.value):new J(this.value).round(0,oe.CEILING)}static add(t,o){return t=J.validate(t),o=J.validate(o),mt(t,o)}add(t){return new J(mt(this.value,t.getValue()))}static subtract(t,o){return t=J.validate(t),o=J.validate(o),Wt(t,o)}subtract(t){return new J(Wt(this.value,t.getValue()))}static multiply(t,o){return t=J.validate(t),o=J.validate(o),zt(t,o)}multiply(t){return new J(zt(this.value,t.getValue()))}static divide(t,o,n){return t=J.validate(t),o=J.validate(o),Kt(t,o,n)}divide(t,o){return new J(Kt(this.value,t.getValue(),o))}static modulus(t,o){return t=J.validate(t),o=J.validate(o),Vn(t,o)}modulus(t){return new J(Vn(this.value,t.getValue()))}static compareTo(t,o){return t=J.validate(t),o=J.validate(o),In(t,o)}compareTo(t){return In(this.value,t.getValue())}static negate(t){return t=J.validate(t),Yt(t)}negate(){return new J(Yt(this.value))}}function Rn(e,t){return J.multiply(`${e}`,`${t}`)}function Ut(e,t,o=8){return J.divide(`${e}`,`${t}`,o)}function Gt(e,t){return e=`${e}`,t=`${t}`,J.compareTo(e,t)}function An(e){return J.negate(e)}function pt(e,t=-1,o=!1,n=3,a=","){let l=`${e}`;if(l.length==0||l==="-")return"";let i=l.charAt(0);i=="-"?l=l.substring(1):i="";let s=l,u="",c=l.indexOf(".");c!=-1&&(s=l.substring(0,c),u=l.substring(c+1)),t!=-1&&(t<u.length?u=u.substring(0,t):o&&t>u.length&&(u=u.padEnd(t,"0")));let f;if(n>0){let d="",S=s.split("").reverse();for(let w=0;w<S.length;w++)d+=S[w]+((w+1)%n==0&&w+1!=S.length?a:"");u.length==0?f=`${i}${d.split("").reverse().join("")}`:f=`${i}${d.split("").reverse().join("")}.${u}`}else u.length==0?f=`${i}${s}`:f=`${i}${s}.${u}`;return f}function Dn(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const Jo=Xo,Qo=Array.isArray,ea=e=>yt(e)==="[object Map]",ta=e=>yt(e)==="[object Set]",na=e=>e instanceof Date,Xt=e=>typeof e=="function",Fn=e=>typeof e=="string",ra=e=>typeof e=="symbol",Fe=e=>e!==null&&typeof e=="object",oa=e=>Fe(e)&&Xt(e.then)&&Xt(e.catch),Bn=Object.prototype.toString,yt=e=>Bn.call(e),Zt=e=>yt(e)==="[object Object]",Ln=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function aa(e){return e.__esModule||Ln&&e[Symbol.toStringTag]==="Module"}const la=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function je(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,n=e.length,a=!1;for(typeof t=="boolean"&&(a=t,t=e[o]??{},o++),typeof t!="object"&&(t={});o<n;o++)if(e[o]!==null&&e[o]!==void 0){let l=e[o];for(let i in l){let s=t[i],u=l[i];if(s!==u)if(a===!0&&u&&typeof u=="object"){let c;Array.isArray(u)?c=s&&Array.isArray(s)?s:[]:c=s&&typeof s=="object"?s:{},t[i]=je(a,c,u)}else u!==void 0&&(t[i]=u)}}return t}function Jt(e,t,o=!1){if(!o)je(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let a in t){let l=e[a],i=t[a];if(l!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Zt(i))continue;l=Jt(l,i,o),e[a]=l}else{if(typeof i=="function")continue;e[a]=i}}const n=Object.getOwnPropertySymbols(t);for(let a of n){let l=e[a],i=t[a];if(l!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Zt(i))continue;l=Jt(l,i,o),e[a]=l}else{if(typeof i=="function")continue;e[a]=i}}}return e}const Qt=la?Promise.resolve():null;function ia(e,...t){Qt!==null?t&&t.length>0?Qt.then(()=>{e(t)}):Qt.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 sa={"[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 bt(e){let o=Object.prototype.toString.call(e);return e==null?String(e):sa[o]||"object"}function qn(e){return e&&typeof e=="object"&&"setInterval"in e}function Mn(e){return!e||e.offsetParent===null}function jn(e){let t=!!e&&"length"in e&&e.length,o=bt(e);return o==="function"||qn(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function _n(e,t){let o=+t.length,n=0,a=e.length;for(;n<o;n++)e[a++]=t[n];return e.length=a,e}function ua(e,t=[]){let o=t;return e!=null&&(jn(Object(e))?_n(o,typeof e=="string"?[e]:e):o.push(e)),o}function Be(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=bt(e),n=bt(t);if(o!==n)return!1;if(o==="object"){let a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(let i=0;i<a.length;i++){let s=a[i],u=e[s],c=t[s];if(!Be(u,c))return!1}return!0}else if(o==="array"){if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++){let l=e[a],i=t[a];if(!Be(l,i))return!1}return!0}return!1}const rt=typeof window<"u";function en(e){return e==null}function Pn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ae=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Hn(e){return ae(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ae(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function zn(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 o=t.indexOf(".");return o==-1?t.length:o}function Kn(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const o=t.indexOf(".");return o==-1?0:t.length-(o+1)}function Wn(e,t,o){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(o,"")}function ca(e,t=!0,o=!0){t?e=Wn(e,".",/\./g):e=e.replace(/\./g,""),o?e=Wn(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function fa(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(Be(e,o))return!0}):t.indexOf(e)}function da(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(n=>{if(Be(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function ot(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Yn(e,...t){const o={};return t.forEach(n=>{for(const a in n)o[a]=e[a]}),o}function me(e,...t){const o=[];t.forEach(a=>{Reflect.apply([].push,o,Reflect.ownKeys(a))});const n={};for(const a in e)o.includes(a)||(n[a]=e[a]);return n}const ha=(e,t,o)=>{const n=Object.assign({},e),a=Object.assign({},o);return Object.keys(t).length>0?(Object.keys(n).forEach(l=>{a.hasOwnProperty(l)?typeof a[l]=="string"&&(n[l]=t[a[l]]):t[l]&&(n[l]=t[l])}),n):e},le=Symbol.for("BroadcastKey");class tn{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,o,n){this.parent=t,this.proxy=o,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const o=this.children.findIndex(n=>t===n);o!==-1&&this.children.splice(o,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,o,...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 a=!1;!t.name||t.name==="*"?a=!0:!t.name||t.name==="+"?(a=!1,t.name="*"):Pn(t.name)&&this.name&&t.name.test(this.name)?a=!0:typeof t.name=="function"?a=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(a=!0);const l=[];if(a){const i=this.callbacks.get(o);if(typeof i=="function"){const u=Reflect.apply(i,this.proxy,[...n]);u!=null&&l.push(u)}const s=this.proxy??{};if(typeof s[o]=="function"){const u=Reflect.apply(s[o],s,[...n]);u!=null&&l.push(u)}}return this.children.forEach(i=>{const s=Reflect.apply(i.emit,i,[{...t},o,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,l,[...s])}),l}emitToChildren(t,o,...n){const a=[];return this.children.forEach(l=>{const i=Reflect.apply(l.emit,l,[{...t},o,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,a,[...i])}),a}on(t,o){this.callbacks.set(t,o)}}function wt(e,t,o,n){const a=new tn(t,e,o);if(n&&typeof n=="object")for(const l in n)a.on(l,n[l]);return a}function ga(e,t,o){const n=o;if(n[le])return n[le];const a=r.inject(le,null),l=new tn(a,o,e);if(t&&typeof t=="object")for(const i in t)l.on(i,t[i]);return n[le]=l,r.provide(le,l),r.onUnmounted(()=>{l.destroy(),n[le]=void 0}),l}function at(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[le]??r.inject(le,null):r.inject(le,null)}const _e=e=>e.default??e;class ma{error(t,o){const n=o,a=at(o);a?a.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const o=t,n=at(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=at(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(t,o,n){Array.isArray(t)||(t=[t]);const a=n,l=at(n),i=o.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),s=t.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!i&&s?l?l.emit({name:"*"},"setRequired",!0):typeof a.setRequired=="function"&&a.setRequired(!0):i&&!s&&(l?l.emit({name:"*"},"setRequired",!1):typeof a.setRequired=="function"&&a.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let Un=new ma;function pa(e){Un=e}function ya(e,t){_e(Me).setValidator(e,t)}function ba(e){_e(Me).deleteValidator(e)}let Gn=["blur","clear"];function wa(e){Gn=e}function Xn(){return Gn}let Zn=["focus","change"];function Sa(e){Zn=e}function Jn(){return Zn}function va(e){_e(Me).messages(e)}function lt(...e){const t=[];return e.forEach(o=>{o.forEach(n=>{const a=t.findIndex(l=>l.type===n.type);a!==-1&&t.splice(a,1),t.push(n)})}),t}function St(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 Oe=Symbol("ValidateSchemaKey");class Qn{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,o,n){this.parent=t,this.descriptor=o,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 o=St(lt(this.attrRules,this.rules)),n=[];for(let l in t){let i=t[l];if(this.hasValidator(l,!0)){if(i===!1)continue;let u={type:l};i!==null&&typeof i=="object"&&Object.assign(u,i),n.push(u);continue}let s=this.getValidator(l);if(s!==null){let u={type:l,validator:s};n.push(u)}}this.attrRules=St(n);const a=lt(this.attrRules,this.rules);r.nextTick(()=>{this.decorate(a,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(t,...o){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...o]);const a=Un;return a&&typeof a[t]=="function"?Reflect.apply(a[t],a,[...o]):null}decorate(t,o){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,o,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,o,n=!1){n?_e(Me).setValidator(t,o):this.validators[t]=o}getValidator(t){let o=this.validators[t]??null;return o||(o=this.parent?.getValidator(t)??null),o}deleteValidator(t,o=!1){o?_e(Me).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return _e(Me).hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const o=lt(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=St(t):this.rules=St([t]);const n=lt(this.attrRules,this.rules);r.nextTick(()=>{this.decorate(n,o)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let o=lt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(o.length>0){const a={[`${n}`]:o},l=this.getValue(),i={[`${n}`]:l},s=_e(Me),u=new s(a),c=this.proxy??i;return u.validate(i,{context:c}).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=c),this.error(S)}return d}).catch(d=>{const S=d.message??`${d}`;return this.error(S),d})}}return Promise.resolve({pass:!0})}}function vt(e,t,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const a=o.valueName;o.validateHandler={getValue(l){return l[a]}}}return new Qn(t,o,e)}const er=Symbol.for("EventEmitterKey");class $a{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,o){let n=this.register.get(t);if(n&&Array.isArray(n)){let a=n.findIndex(l=>l===o);a!==-1&&n.splice(a,1)}}on(t,o){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(o)}emit(t,...o){const n=this.register.get(t);n&&n.forEach(a=>{try{Reflect.apply(a,null,[t,...o])}catch(l){console.error(l.message,l)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...o])}}function it(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function tr(e,t){let o=0;return function(...n){const a=new Date().getTime();a-o<t||(o=a,Reflect.apply(e,null,[...n]))}}function Ta(e,t){const o=it((n,a)=>{e=n,a()},t);return r.customRef((n,a)=>({get(){return n(),e},set(l){o(l,a)}}))}function Ea(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function nn(e,t,o,n=0,a=!0){let l=t,i=0;if(a){const u=e();if(i++,u||i>o)return}const s=()=>{const u=e();i++,!(u||i>o)&&(l+=n,setTimeout(s,l))};setTimeout(s,l)}const ve=Symbol("DomainKey"),Ke=Symbol("DataItemsKey");class $t{_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,o=[]){for(const n in t){const a=t[n];o.length>0&&o.indexOf(a)!==-1||(this._props[n]=a)}}has(t){if(Reflect.has(this._props,t)){const o=this._props[t];if(o!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,o){this._props[t]=o}get(t,o){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?o:this.parent.get(t,o)}getForParent(t,o){return this.parent==null?o:this.parent.get(t,o)}getForSelf(t){return this._props[t]}getAll(t){const o=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const a=n._props[t];o.push(a)}n=n._parent}return o}}const Ca=new $t;function We(){return Ca}function Ie(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[ve]??r.inject(ve,null):r.inject(ve,null)}const rn=Symbol("OriginalDateKey");function on(e,t,o=[],n){const a=r.getCurrentInstance(),l=a?.proxy;let i=r.inject(ve,null);i===null&&(i=We());const s=e||t.prop||t.name,u=new $t(s);u.parent=i;const c=h=>{l[rn]||S(h),u.set("modelValue",h)},f=()=>u.getForSelf("modelValue")??null,d=()=>l[rn]??null,S=h=>{const y={};je(!0,y,r.toRaw(h)),l[rn]=y};r.isReactive(t)?r.watchEffect(()=>{u.merge(t,o)}):u.merge(t,o),t.modelValue&&S(t.modelValue),l[ve]=u,r.provide(ve,u);let w=null,$=null;if(a!==null){const h=r.inject(le,null);w=wt(l,h,s,n),u.broadcast=w,l[le]=w,r.provide(le,w),l.broadcast=(p,T,...k)=>Reflect.apply(w.emit,w,[p,T,...k]);const y=r.inject(Oe,null);$=vt(l,y,{componentName:""}),u.validateSchema=$,l[Oe]=$,r.provide(Oe,$),l[Ke]=new Map,l.validate=(p=!0)=>{const T=[];let k=null;const D={deep:!1};if(p===!0)k={name:"*"};else if(Array.isArray(p)&&p.length>0){const N=p;k={name:x=>x?N.indexOf(x)!==-1:!1}}else if(p!=null&&typeof p=="object"){const N=p;if(D.ignoreHidden=N.ignoreHidden,Array.isArray(N.include)&&N.include.length>0){const x=N.include;k={name:I=>I?x.indexOf(I)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const x=N.exclude;k={name:I=>I?x.indexOf(I)===-1:!1}}else k={name:"*"}}if(k){const N=w?.emitToChildren(k,"validate",D);N&&Reflect.apply([].push,T,N)}return T.length==1?T[0]:T.length>1?Promise.all(T).then(N=>{let x=[];return N.forEach(I=>{I.pass===!1&&Array.isArray(I.errors)&&(x=[...x,...I.errors])}),x.length>0?{pass:!1,errors:x}:{pass:!0}}):Promise.resolve({pass:!0})},l.setNameValidateRules=(p,T=!0)=>{if(T){const k=Reflect.ownKeys(p),D=[...k],N={name:x=>{const I=k.includes(x);if(I){const V=D.findIndex(R=>x===R);V!==-1&&D.splice(V,1)}return I}};w?.emitToChildren(N,"setNameValidateRules",p,!1),D.length>0&&D.forEach(x=>{let I=String(x);const R=or(u,I,{componentName:"",fieldName:I,pureDataValidate:!0},w,$);l[Ke].set(I,R);const F=p[I];F&&R.validateSchema.setRule(F)})}},l.clearValidate=(p=!0)=>{let T=null;if(p===!0)T={name:"*"};else if(Array.isArray(p)&&p.length>0){const k=p;T={name:D=>D?k.indexOf(D)!==-1:!1}}else if(p!=null&&typeof p=="object"){const k=p;if(Array.isArray(k.include)&&k.include.length>0){const D=k.include;T={name:N=>N?D.indexOf(N)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const D=k.exclude;T={name:N=>N?D.indexOf(N)===-1:!1}}else T={name:"*"}}T&&w?.emitToChildren(T,"clearValidate",!1)},l.resetFields=p=>{const T=f();if(!T)return;const k={};if(je(!0,k,d()??{}),Array.isArray(p))p.forEach(D=>{T[D]=k[D]});else if(p&&Array.isArray(p.include))(p.include??[]).forEach(N=>{T[N]=k[N]});else if(p&&Array.isArray(p.exclude)){let D=p.exclude??[];Reflect.ownKeys(k).forEach(N=>{D.includes(N)||(T[N]=k[N])})}else Object.assign(T,k);l.clearValidate(p)},l.setModelValue=(p,T)=>{!T||T===s?c(p):w?.emitToChildren({name:T},"setModelValue",p)},l.getModelValue=()=>f()}return r.onUnmounted(()=>{u.destroy(),l[ve]=void 0,l[Ke]&&(l[Ke].clear(),l[Ke]=void 0),w!==null&&(w.destroy(),l[le]=void 0),$!==null&&($.destroy(),l[Oe]=void 0)}),u}function nr(e,t,o=[]){const a=r.getCurrentInstance()?.proxy;let l=r.inject(ve,null);l===null&&(l=We());const i=e||t.prop||t.name,s=new $t(i);return s.parent=l,r.isReactive(t)?r.watchEffect(()=>{s.merge(t,o)}):s.merge(t,o),a[ve]=s,r.provide(ve,s),r.onUnmounted(()=>{s.destroy(),a[ve]=void 0}),s}function rr(e,t,o){const a=Ie(e)?.get("rules");if(!a)return;let l=a[o];l&&(Array.isArray(l)||(l=[l]),l.forEach(i=>{t.setRule(i)}))}function ue(e,t,o){const a=r.getCurrentInstance()?.proxy,l=t??"",i=r.inject(le,null),s=wt(a,i,l,o);a[le]=s,r.provide(le,s),a.broadcast=($,h,...y)=>Reflect.apply(s.emit,s,[$,h,...y]);const u=r.inject(Oe,null);e.fieldName=e.fieldName??l;const c=vt(a,u,e);a[Oe]=c,r.provide(Oe,c),rr(a,c,l),a.validate=($=null)=>{const h=[];let y=!1,p=!1;if(Array.isArray($)&&$.indexOf(l)!==-1)p=!0,y=!0;else if($&&typeof $=="object"){const T=$;T.ignoreHidden===!0&&Mn(a.$el)?p=!1:(Array.isArray(T.include)&&T.include.indexOf(l)!==-1||Array.isArray(T.exclude)&&T.exclude.indexOf(l),p=!0),y=T.deep??!1}else typeof $=="boolean"&&(y=$),p=!0;if(p){const T=c?.validate();h.push(T)}if(y){let T=null;const k={deep:!1};if($===!0)T={name:"*"};else if(Array.isArray($)&&$.length>0){const D=$;T={name:N=>N?D.indexOf(N)!==-1:!1}}else if($!=null&&typeof $=="object"){const D=$;if(k.ignoreHidden=D.ignoreHidden,Array.isArray(D.include)&&D.include.length>0){const N=D.include;T={name:x=>x?N.indexOf(x)!==-1:!1}}else if(Array.isArray(D.exclude)&&D.exclude.length>0){const N=D.exclude;T={name:x=>x?N.indexOf(x)===-1:!1}}else T={name:"*"}}if(T){const D=s.emitToChildren(T,"validate",k);Reflect.apply([].push,h,D)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(T=>{let k=[];return T.forEach(D=>{D.pass===!1&&Array.isArray(D.errors)&&(k=[...k,...D.errors])}),k.length>0?{pass:!1,errors:k}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=$=>c?.setRule($),a.setNameValidateRules=($,h=!1)=>{const y=$[l];if(y&&c?.setRule(y),h){const p={name:T=>Reflect.ownKeys($).includes(T)};s.emitToChildren(p,"setNameValidateRules",$,!1)}},a.clearValidate=($=null)=>{(!Array.isArray($)||$.indexOf(t??"")!==-1)&&c?.clear();let h=null;if($===!0)h={name:"*"};else if(Array.isArray($)&&$.length>0){const y=$;h={name:p=>p?y.indexOf(p)!==-1:!1}}else if($!=null&&typeof $=="object"){const y=$;if(Array.isArray(y.include)&&y.include.length>0){const p=y.include;h={name:T=>T?p.indexOf(T)!==-1:!1}}else if(Array.isArray(y.exclude)&&y.exclude.length>0){const p=y.exclude;h={name:T=>T?p.indexOf(T)===-1:!1}}else h={name:"*"}}h&&s.emitToChildren(h,"clearValidate",!1)};const f=new $a(a);a[er]=f;const d=it(($="validate")=>{$==="reset"?c.clear():c.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Xn()).forEach($=>{f.on($,h=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Jn()).forEach($=>{f.on($,h=>{d("reset")})}),r.onUnmounted(()=>{s.destroy(),a[le]=void 0,c.destroy(),a[Oe]=void 0,f.destroy(),a[er]=void 0}),{broadcast:s,validateSchema:c,emitEvent:($,...h)=>{Reflect.apply(f.emit,f,[$,...h])},onEvent:($,h)=>{Reflect.apply(f.on,f,[h])},offEvent:($,h)=>{Reflect.apply(f.off,f,[h])}}}function or(e,t,o,n,a){const l={},i=t??"";o.fieldName=i,o.validateHandler={getValue(c){const f=e.getForSelf("modelValue");return f?f[i]:null}};const s=vt({},a,o);l.validate=(c=null)=>{const f=[];let d=!1,S=!1;if(Array.isArray(c)&&c.indexOf(i)!==-1)S=!0,d=!0;else if(c&&typeof c=="object"){const w=c;Array.isArray(w.include)&&w.include.indexOf(i)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(i),S=!0,d=w.deep??!1}else typeof c=="boolean"&&(d=c),S=!0;if(S){const w=s?.validate();f.push(w)}if(d){let w=null;const $={deep:!1};if(c===!0)w={name:"*"};else if(Array.isArray(c)&&c.length>0){const h=c;w={name:y=>y?h.indexOf(y)!==-1:!1}}else if(c!=null&&typeof c=="object"){const h=c;if(Array.isArray(h.include)&&h.include.length>0){const y=h.include;w={name:p=>p?y.indexOf(p)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const y=h.exclude;w={name:p=>p?y.indexOf(p)===-1:!1}}else w={name:"*"}}if(w){const h=u.emitToChildren(w,"validate",$);Reflect.apply([].push,f,h)}}return f.length==1?f[0]:f.length>1?Promise.all(f).then(w=>{let $=[];return w.forEach(h=>{h.pass===!1&&Array.isArray(h.errors)&&($=[...$,...h.errors])}),$.length>0?{pass:!1,errors:$}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=c=>s?.setRule(c),l.setNameValidateRules=c=>{const f=c[i];f&&s?.setRule(f)};const u=wt(null,n,i,l);return{broadcast:u,validateSchema:s}}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 o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let a=Number(e.substring(0,o)),l=1;if(rt){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(l=Number(i.substring(0,s)))}return a*=l,a}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*t;const n=Number(e);return isNaN(n)?0:n}const Le="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 an(e,t,o={},n=!0,a=-1,l=-1,i=0,s=0){if(e.headerHeight=re(o.headerHeight??t.headerHeight),e.headerPadding=xe(o.headerPadding??t.headerPadding),e.footerHeight=re(o.footerHeight??t.footerHeight),e.footerPadding=xe(o.footerPadding??t.footerPadding),e.contentPadding=xe(o.contentPadding??t.contentPadding),n){const u=o.height??t.height;u?e.height=re(u,l):e.height=re(l)-re(i,l)-re(s,l),e.width=re(o.width??t.width??0,a)}}function ar(e,t={}){const o={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},a=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});a&&(n.safeAreaTop=re(a.top),n.safeAreaBottom=re(a.bottom),n.safeAreaLeft=re(a.left),n.safeAreaRight=re(a.right));const l=e.get("pageLayout");if(!l)return null;const i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,c=e.get("footerBarHeight")??0;an(n,l,t,!0,i,s,u,c);const f=r.reactive(n),d=e.getForParent(Le);d&&(n.height=Et(e,d),n.width=Ct(e,d),r.watch([()=>d.height,()=>d.width,()=>d.contentPadding,()=>d.headerMounted,()=>d.footerMounted],()=>{f.height=Et(e,d),f.width=Ct(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")],([w,$,h=-1,y=-1,p=0,T=0])=>{an(f,$,t,S,h,y,p,T)}),e.set(Le,f),f}function Tt(e){return e.get(Le)}function st(e,t){if(t=t??e.get(Le),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function ut(e,t){if(t=t??e.get(Le),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function Et(e,t){if(t=t??e.get(Le),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=st(e,t),n=ut(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function Ct(e,t){return t=t??e.get(Le),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function xa(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function Na(e){return!!e.getForParent(Le)}var $e=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))($e||{});function ln(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Se(e,t,o=1,n){const a=Ie();return a==null?e:o===0?r.computed(()=>{const l=a.getAll(t);for(let s=l.length-1;s>=0;s--){const u=l[s];if(ln(u,n))return u}const i=e.value;return ln(i,n)?i:null}):r.computed(()=>{const l=e.value;return ln(l,n)?l:a?.get(t)})}function be(e){return Se(e,"readonly",0,function(o){return te(o)})}function we(e){return Se(e,"disabled",0,function(o){return te(o)})}function ne(e,t="modelValue",o){const n=r.toRef(e,t);let a=n.value;typeof o=="function"&&(a=o(n.value));const l=r.ref(a);return r.watch(n,i=>{if(typeof o=="function"){const s=o(i);s!==l.value&&(l.value=s)}else i!==l.value&&(l.value=i)}),l}const lr=new Map,xt=new Map;let sn=null;function ka(e){sn=e}function ir(e,t,o){if(o){let n=xt.get(o);n||(n=new Map,xt.set(o,n)),n.set(e,t)}else lr.set(e,t)}function Ne(e,t,o){!o&&sn&&(o=sn(e)??void 0);let n=null;if(o){let a=xt.get(o);a&&(n=a.get(t))}return n||(n=lr.get(t)),n}function Va(e,t){for(let o in e){const n=e[o];ir(o,n,t)}}function Oa(e){xt.delete(e)}function Ia(){return{top:0,left:0,bottom:0,right:0}}function Ra(e=0,t=0){if(rt){const o=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,a={width:o,height:n-re(e,n)-re(t,n),headerHeight:44,footerHeight:44};return{rootWidth:o,rootHeight:n,pageLayout:a}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}}class Aa{packages;installers;_version;get version(){return this._version}constructor(t,o,n){this.packages=t,this.installers=o,this._version=n}install(t,o={}){o?.install!==!1&&(this.packages.forEach(l=>{l.install?t.use(l):l.name&&t.component(l.name,l)}),this.installers.forEach(l=>{l(t)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],a=We();if(this.initPageLayout(o,a),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const l=tr(()=>{const s={...o},u=document.documentElement.clientWidth||document.body.clientWidth,c=document.documentElement.clientHeight||document.body.clientHeight;s.width=u,s.height=c,this.initPageLayout(s,a)},150);new window.ResizeObserver(l).observe(window.document.body)}for(const l in o)n.indexOf(l)===-1&&a.set(l,o[l])}initPageLayout(t,o){const n=t.headerBarHeight??0,a=t.footerBarHeight??0,l=je({},Ia(),t.safeAreaInset),i=Ra(n,a),s=je({},i.pageLayout,t.pageLayout);o=o??We(),o.set("safeAreaInset",l),o.set("headerBarHeight",n),o.set("footerBarHeight",a),o.set("pageLayout",s),o.set("rootWidth",i.rootWidth),o.set("rootHeight",i.rootHeight)}setScopeGetter(t){ka(t)}setAPI(t,o,n){ir(t,o,n)}getAPI(t,o,n){return Ne(t,o,n)}batchSetAPI(t,o){Va(t,o)}clearScopeAPI(t){Oa(t)}getRootDomain(){return We()}}const Da=[m.ElAffix,m.ElAlert,m.ElAutocomplete,m.ElAutoResizer,m.ElAvatar,m.ElBacktop,m.ElBadge,m.ElBreadcrumb,m.ElBreadcrumbItem,m.ElButton,m.ElButtonGroup,m.ElCalendar,m.ElCard,m.ElCarousel,m.ElCarouselItem,m.ElCascader,m.ElCascaderPanel,m.ElCheckTag,m.ElCheckbox,m.ElCheckboxButton,m.ElCheckboxGroup,m.ElCol,m.ElCollapse,m.ElCollapseItem,m.ElCollapseTransition,m.ElColorPicker,m.ElConfigProvider,m.ElContainer,m.ElAside,m.ElFooter,m.ElHeader,m.ElMain,m.ElDatePicker,m.ElDescriptions,m.ElDescriptionsItem,m.ElDialog,m.ElDivider,m.ElDrawer,m.ElDropdown,m.ElDropdownItem,m.ElDropdownMenu,m.ElEmpty,m.ElForm,m.ElFormItem,m.ElIcon,m.ElImage,m.ElImageViewer,m.ElInput,m.ElInputNumber,m.ElLink,m.ElMenu,m.ElSubMenu,m.ElMenuItem,m.ElMenuItemGroup,m.ElPageHeader,m.ElPagination,m.ElPopconfirm,m.ElPopover,m.ElPopper,m.ElProgress,m.ElRadio,m.ElRadioButton,m.ElRadioGroup,m.ElRate,m.ElResult,m.ElRow,m.ElScrollbar,m.ElSelect,m.ElOption,m.ElOptionGroup,m.ElSelectV2,m.ElSkeleton,m.ElSkeletonItem,m.ElSlider,m.ElSpace,m.ElSteps,m.ElStep,m.ElSwitch,m.ElTable,m.ElTableColumn,m.ElTableV2,m.ElTabs,m.ElTabPane,m.ElTag,m.ElTimePicker,m.ElTimeSelect,m.ElTimeline,m.ElTimelineItem,m.ElTooltip,m.ElTransfer,m.ElTree,m.ElTreeSelect,m.ElTreeV2,m.ElUpload],Fa=[m.ElInfiniteScroll,m.ElLoading,m.ElMessage,m.ElMessageBox,m.ElNotification,m.ElPopoverDirective],Ba=e=>{Da.forEach(t=>{let o=t.name;typeof o=="string"?(o=`Fox${o.slice(2)}`,e.component(o,t)):e.use(t)}),Fa.forEach(t=>{e.use(t)})};function Q(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=t,o.install=n=>{n.component(o.name,o)},r.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,r.defineComponent(o)}}}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}},sr={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}},ur={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},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}},cr=[];for(const e in ur)cr.push(e);function fe(e,t=null){if(t||(t=r.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const La=Symbol.for("InnerPageScopeKey"),qa=(e,t)=>({inheritAttrs:!0,props:{...ie,...sr,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(o,n){const a=on(o.name,o);if(a){const c=ar(a,o);fe({getPageContentHeight:()=>Et(a,c),getPageContentWidth:()=>Ct(a,c),getPageHeaderHeight:()=>st(a,c),getPageFooterHeight:()=>ut(a,c)});const f=r.inject(La,!1);c&&f&&(c.contentHeight="100%")}const l=r.computed(()=>({[e]:!0})),i=r.computed(()=>({})),s=r.getCurrentInstance(),u=c=>{const f=s?.proxy;f&&typeof f.setNameValidateRules=="function"&&f.setNameValidateRules(c,!0)};return r.watch(()=>o.rules,(c,f)=>{if(!c&&!f)return;const d=r.toRaw(f),S=r.toRaw(c),w=S?Reflect.ownKeys(S):[];(d?Reflect.ownKeys(d):[]).forEach(h=>{w.includes(h)||(S[h]=[])}),u(S)},{deep:!0}),r.onMounted(()=>{if(o.rules){const c=r.toRaw(o.rules);u(c)}}),r.onBeforeUnmount(()=>{}),{classes:l,styles:i}}}),{componentName:Ma,create:ja,scope:Pc}=Q("page"),_a=ja(qa(Ma));function Pa(e,t,o,n,a,l){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),title:""},[r.renderSlot(e.$slots,"default")],6)}const Te=(e,t)=>{const o=e.__vccOpts||e;for(const[n,a]of t)o[n]=a;return o},fr=Te(_a,[["render",Pa]]),Ha=["aria-labelledby"],za=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),Ka=[za],Wa=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 o=e,n=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},l=r.computed(()=>{const s="fox-icon";return{[o.class]:!!o.class,[s]:!0,[s+"-"+o.name]:o.name}}),i=r.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,u)=>(r.openBlock(),r.createElementBlock("svg",{class:r.normalizeClass(l.value),style:r.normalizeStyle(i.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Ka,14,Ha))}});function un(e){const t=r.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function cn(e){const t=r.unref(e),o=window.getComputedStyle(t,null),n=parseFloat(o.getPropertyValue("padding-left")),a=parseFloat(o.getPropertyValue("padding-right")),l=parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-a,height:t.clientHeight-l-i}}const Ya=(e,t,o,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:o},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(a,l){const i=Ie(),s=i?Tt(i):null;s&&(s.headerMounted=!0);const u=r.computed(()=>{const b=e;return{[b]:!0,[`${b}--border`]:a.border,[`${b}--fixed`]:a.fixed,[`${b}--safe-area-inset-top`]:a.safeAreaInsetTop}}),c=a.height!==null&&a.height!==void 0?re(a.height):null,f=r.computed(()=>{const b={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const E=xe(a.padding??s.headerPadding);return Object.assign(b,E),c&&(s.headerHeight=c),b.height=s.headerHeight,b.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,b.safeAreaTop>0&&(b.top=b.safeAreaTop+(E.top??0),b.height=b.height+b.safeAreaTop),b}if(c&&(b.height=c),a.padding){const E=xe(a.padding);Object.assign(b,E)}return b}),d=r.ref(null),S=()=>{if(s&&d.value&&d.value.offsetParent!==null){if(!n){const b=un(d.value);s.headerAllHeight=b.height}return s.headerMounted=!0,!0}return!1};r.onMounted(()=>{s&&nn(S,50,5,50,!0)}),r.onUnmounted(()=>{s&&(s.headerMounted=!1)});const w=r.computed(()=>{const b={};return f.value.height!==null&&f.value.height!==void 0&&(b.height=`${f.value.height}px`),f.value.top!==null&&f.value.top!==void 0&&(b.paddingTop=`${f.value.top}px`),f.value.left!==null&&f.value.left!==void 0&&(b.paddingLeft=`${f.value.left}px`),f.value.right!==null&&f.value.right!==void 0&&(b.paddingRight=`${f.value.right}px`),f.value.bottom!==null&&f.value.bottom!==void 0&&(b.paddingBottom=`${f.value.bottom}px`),b}),$=r.computed(()=>{const b={};return f.value.safeAreaTop!==null&&f.value.safeAreaTop!==void 0&&(b.top=`${f.value.safeAreaTop}px`),b}),h=r.computed(()=>{const b={};return f.value.safeAreaTop!==null&&f.value.safeAreaTop!==void 0&&(b.top=`${f.value.safeAreaTop}px`),b}),y=r.computed(()=>!!a.leftShow),p=r.computed(()=>!(f.value.height!==null&&f.value.height!==void 0&&f.value.height<=0)),T=r.computed(()=>a.titleShow?a.title||a.titleIcon||l.slots.titleIcon||l.slots.default:!1),k=r.computed(()=>a.rightShow?a.rightText||a.rightIcon||l.slots.rightIcon||l.slots.right:!1),D=r.computed(()=>a.leftIcon),N=r.computed(()=>D.value||l.slots.leftIcon),x=r.computed(()=>a.titleIcon),I=r.computed(()=>a.titleIcon||l.slots.titleIcon),V=r.computed(()=>a.rightIcon),R=r.computed(()=>a.rightIcon||l.slots.rightIcon);function F(){l.emit("back")}function z(){l.emit("click-title")}function P(){l.emit("click-right")}function v(){l.emit("click-right-text")}return{headerBarRef:d,classes:u,styles:w,mHeaderShow:p,leftStyles:$,rightStyles:h,mLeftShow:y,mTitleShow:T,mRightShow:k,mLeftIcon:D,hasLeftIcon:N,mTitleIcon:x,hasTitleIcon:I,mRightIcon:V,hasRightIcon:R,handleLeft:F,handleCenter:z,handleRight:P,handleRightText:v}}}),{componentName:Ua,create:Ga,scope:Xa}=Q("header-bar"),Za=Ga(Ya(Ua,Xa,Wa)),Ja={key:1,class:"fox-header-bar__title"},Qa={key:0,class:"title-text"};function el(e,t,o,n,a,l){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]=(...i)=>e.handleLeft&&e.handleLeft(...i)),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]=(...i)=>e.handleLeft&&e.handleLeft(...i))},r.toDisplayString(e.leftText),1)):r.createCommentVNode("",!0)])],4)):r.createCommentVNode("",!0),e.mTitleShow?(r.openBlock(),r.createElementBlock("view",Ja,[r.renderSlot(e.$slots,"default",{},()=>[e.title?(r.openBlock(),r.createElementBlock("view",Qa,r.toDisplayString(e.title),1)):r.createCommentVNode("",!0),e.hasTitleIcon?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[2]||(t[2]=(...i)=>e.handleCenter&&e.handleCenter(...i)),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]=(...i)=>e.handleRightText&&e.handleRightText(...i))},r.toDisplayString(e.rightText),1)):r.createCommentVNode("",!0),e.hasRightIcon?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[4]||(t[4]=(...i)=>e.handleRight&&e.handleRight(...i)),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 dr=Te(Za,[["render",el]]);function tl(e,t,o=!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,a){const l=Ie(),i=l?Tt(l):null,s=r.computed(()=>{const w=e;return{[w]:!0,[`${w}--${n.align}`]:!0,[`${w}--border`]:n.border,[`${w}--fixed`]:n.fixed,[`${w}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?re(n.height):null,c=r.computed(()=>{const w={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(l&&i){const $=xe(n.padding??i.footerPadding);return Object.assign(w,$),u&&(i.footerHeight=u),w.height=i.footerHeight,w.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,w.safeAreaBottom>0&&(w.height=w.height+w.safeAreaBottom,w.bottom=w.safeAreaBottom+($.bottom??0)),w}if(u&&(w.height=u),n.padding){const $=xe(n.padding);Object.assign(w,$)}return w}),f=r.ref(null),d=()=>{if(i&&f.value&&f.value.offsetParent!==null){if(!o){const w=un(f.value);i.footerAllHeight=w.height}return i.footerMounted=!0,!0}return!1};r.onMounted(()=>{i&&nn(d,50,5,50,!0)}),r.onUnmounted(()=>{i&&(i.footerMounted=!1)});const S=r.computed(()=>{const w={};return c.value.height!==null&&c.value.height!==void 0&&(w.height=ce(c.value.height)),c.value.top!==null&&c.value.top!==void 0&&(w.paddingTop=ce(c.value.top)),c.value.left!==null&&c.value.left!==void 0&&(w.paddingLeft=ce(c.value.left)),c.value.right!==null&&c.value.right!==void 0&&(w.paddingRight=ce(c.value.right)),c.value.bottom!==null&&c.value.bottom!==void 0&&(w.paddingBottom=ce(c.value.bottom)),w});return{footerBarRef:f,classes:s,styles:S}}}}const{componentName:nl,create:rl,scope:Hc}=Q("footer-bar"),ol=rl(tl(nl));function al(e,t,o,n,a,l){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 hr=Te(ol,[["render",al]]);function ll(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const n=Ie(),a=r.computed(()=>({[e]:!0})),l=n?Tt(n):null,i=r.computed(()=>{const c={};if(n&&l){if(o.padding){const w=xe(o.padding);Object.assign(l.contentPadding,w)}const f=st(n,l),d=ut(n,l);let S="";if(l.contentHeight?S=`${l.contentHeight}`:S=`${l.height}px`,l.contentPadding,c.height=S,l.contentPadding.top||f>0){const w=(l&&l.contentPadding&&l.contentPadding.top)??0;c.paddingTop=`${f+w}px`}if(l.contentPadding.bottom||d>0){const w=(l&&l.contentPadding&&l.contentPadding.bottom)??0;c.paddingBottom=`${d+w}px`}return l.contentPadding.left&&(c.paddingLeft=`${l.contentPadding.left}px`),l.contentPadding.right&&(c.paddingRight=`${l.contentPadding.right}px`),c}if(o.padding){const f=xe(o.padding);f.left&&(c.paddingLeft=`${f.left}px`),f.top&&(c.paddingTop=`${f.top}px`),f.right&&(c.paddingRight=`${f.right}px`),f.bottom&&(c.paddingBottom=`${f.bottom}px`)}return c}),s=r.ref(null),u=()=>{if(l&&s.value){const c=cn(s.value);l.contentInnerHeight=c.height,l.contentInnerWidth=c.width}};return r.onMounted(()=>{u()}),n&&l&&r.watch([()=>st(n),()=>ut(n)],([])=>{u()}),{contentRef:s,classes:a,styles:i}}}}const{componentName:il,create:sl,scope:zc}=Q("content"),ul=sl(ll(il));function cl(e,t,o,n,a,l){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 gr=Te(ul,[["render",cl]]),Ye="GroupStateKey",mr=Symbol.for("GroupScopeKey");function Nt(){return r.inject(mr,!1)}function kt(e=!0){r.provide(mr,e)}function fl(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const a=t[n];en(a)||(e[n]=a)})}function dl(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};fl(n,t);const a=r.shallowRef(n),l=r.markRaw({layout:a,passport:0,order:{index:0}});return e.set(Ye,l),l}function fn(e,t,o=-1,n=-1,a=!1,l,i,s){const u=e.get(Ye);if(!u)return;const c=e.get("groupLayout")??{};o===-1&&(o=c.column??1),n===-1&&(n=c.gutter??0),l||(l=c.minItemWidth??-1),i||(i=c.maxItemWidth??-1);const f=re(l),d=re(i);s||(s=c.type??"grid");const S=()=>{const w=t===""||t===-1,$=re(t);let h=ge(o);const y=re(n);if(!w){let k=($-(h-1)*y)/h;for(;d!==-1&&k>d;)h++,k=($-(h-1)*y)/h;for(;f!==-1&&h>1&&k<f;)h--,k=($-(h-1)*y)/h}let p=!1;const T=u.layout;T.value.width=t,T.value.column!==h&&(T.value.column=h,p=!0),T.value.gutter!==y&&(T.value.gutter=y,p=!0),T.value.type!==s&&(T.value.type=s,p=!0),p&&r.triggerRef(T)};if(a)S();else{const w=++u.passport;setTimeout(()=>{w===u.passport&&S()},50)}}function Vt(e,t=!1){let o;return t?o=e.getForParent(Ye):o=e.get(Ye),o.layout}function Ot(e,t=!1){let o;return t?o=e.getForParent(Ye):o=e.get(Ye),o.order}function pr(e,t=1){if(t==="stretch")return-1;const o=ge(t);return o===-1?100:100*o/e}function It(e,t,o=1,n=0,a){const l={};let i=0;a?i=re(a):i=pr(t.column,o),i>0&&(l.width=`${i}%`);const s=pr(t.column,n);s>0&&(l["margin-left"]=`${s}%`);const u=t.gutter/2;return u>0&&(l["padding-left"]=`${u}px`,l["padding-right"]=`${u}px`),l}function Rt(e,t,o=1,n=0){if(o==="stretch"){const u=e.index%t.column,c=u+(t.column-u);return e.index=e.index+(c-u),{"grid-column":`${u+1} / -1`}}let a=ge(o);if(a===-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(a>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 l=ge(n)%t.column;let i=(e.index+l)%t.column,s=i+a;return s>t.column?(i=0,s=i+a,e.index=e.index+(t.column-i)+a):e.index=e.index+l+a,l>0?{"grid-column":`${i+1} / span ${a}`}:{"grid-column-start":`span ${a}`}}function dn(e){let t=e.offsetHeight;if(t<=0){const o=e.cloneNode(!0),n=e.offsetWidth;o.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),t=o.offsetHeight,document.body.removeChild(o)}return t}function hl(e,t,o){if(e<=0)return"1fr";const n=(e-(t-1)*o)/t;return n>0?`${n}px`:"1fr"}function gl(e,t,o){return{props:{...ie,...sr,...ur},emits:["update:collapse"],setup(n,a){const l=on(n.name,n,cr),i=dl(l,{type:n.type}),s=Nt();kt(!0);const u=r.computed(()=>s&&l?Vt(l,!0).value:null),c=r.getCurrentInstance(),f=L=>{const U=c?.proxy;U&&typeof U.setNameValidateRules=="function"&&U.setNameValidateRules(L,!0)};r.watch(()=>n.rules,(L,U)=>{if(!L&&!U)return;const G=r.toRaw(U),j=r.toRaw(L),K=j?Reflect.ownKeys(j):[];(G?Reflect.ownKeys(G):[]).forEach(M=>{K.includes(M)||(j[M]=[])}),f(j)},{deep:!0});const d=e,S=r.computed(()=>{const L={};L.height=v.value;const U=s?Ot(l,!0):null;if(u.value&&U){if(u.value.type==="grid"){const G=Rt(U,u.value,n.span,n.offset);Object.assign(L,G)}else if(u.value.type==="flow"){const G=It(U,u.value,n.span,n.offset,n.width);Object.assign(L,G)}}else if(n.width){const G=ce(n.width);L.width=G}return O.value&&(L["box-sizing"]="content-box"),L}),w=r.computed(()=>{const L=i.layout.value.type;return L==="grid"||L==="flow"?{[`${d}--${L}`]:!0,[`${d}--${L}-justify-${n.justify}`]:!0,[`${d}--${L}-align-${n.align}`]:!0,[`${d}--gutter`]:!0}:{[`${d}--${L}`]:!0,[`${d}--gutter`]:!0}}),$=r.computed(()=>{if(i.layout.value.type==="grid"){let U="";if(n.columnWidth)U=`repeat(auto-fill, ${n.columnWidth})`;else{const G=hl(x.value,i.layout.value.column,i.layout.value.gutter);U=`repeat(${i.layout.value.column}, ${G})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":U}}}),h=r.toRef(n,"title"),y=r.toRef(n,"gutter"),p=r.toRef(n,"column"),T=r.computed(()=>s?!0:te(n.isWrap)),k=[],D=L=>{k.push(L)},N=()=>{let L=k.length;k.splice(0,L)},x=r.ref(-1),I=L=>{const U=cn(L).width;U>0&&U!==x.value&&(x.value=U)};fn(l,x.value,p.value,y.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&r.watch([x,p,y],([L,U,G])=>{i.order.index=0,fn(l,L,U,G,!1,n.minItemWidth,n.maxItemWidth,n.type)});const V=r.computed(()=>b.value?n.expandText??"":n.collapseText??""),R=r.computed(()=>({[`${e}__header-collapse-text`]:!0})),F=r.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!b.value,"is-collapse":b.value})),z=r.ref(),P=r.ref(),v=r.computed(()=>E.value||ce(n.height)||""),b=r.ref(!1),E=r.ref(""),O=r.ref(!1);let q=-1;const Y=(L,U=!0)=>{const G=z.value;if(G&&b.value!==L){if(q=q===-1?dn(G):q,O.value=!0,U)if(G.style["will-change"]="height",G.ontransitionend=function(){G.ontransitionend=null,this.style["will-change"]="auto",L||(E.value="",O.value=!1)},L){let j=0;n.collapseHeight?j=n.collapseHeight:P.value&&P.value.classList.contains(`${e}__header`)&&(j=dn(P.value)),E.value=`${q}px`,r.nextTick(()=>{E.value=`${j}px`})}else E.value=`${q}px`;else if(L){let j=0;n.collapseHeight?j=n.collapseHeight:P.value&&P.value.classList.contains(`${e}__header`)&&(j=dn(P.value)),E.value=`${j}px`}else O.value=!1,E.value=`${q}px`;b.value=L,a.emit("update:collapse",L)}};r.watch(()=>n.collapse,L=>{Y(L)});const C=()=>{A()},A=L=>{L=L??!b.value,Y(L)};fe({toggleCollapse:A,doLayout:()=>{k[0]&&(I(k[0]),fn(l,x.value,p.value,y.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let B=null;r.onMounted(()=>{if(n.rules){const L=r.toRaw(n.rules);f(L)}if(rt&&(Y(te(n.collapse),!1),n.autoLayout&&Array.isArray(k)&&k.length>0)){const L=k[0];I(L),window.ResizeObserver&&(B=new window.ResizeObserver(()=>{I(L)}),B.observe(L))}}),r.onUnmounted(()=>{B?.disconnect()});const W=(L,U,G,j)=>{const K={...w.value};return U===0&&(K[`${d}__first`]=!0),G>=j-1&&(K[`${d}__last`]=!0),r.h("div",{ref:D,key:`${U}`,class:K,style:$.value},L)};return()=>{i.order.index=0;const L=[];let U=0;if(a.slots.header){const K={key:`${U++}`,ref:P,class:{[`${d}__header`]:!0,[`${d}__first`]:!0}},_=r.h("div",K,[a.slots.header()]);L.push(_)}else{const K=[];if(h.value){if(n.showMark){const M={class:{[`${d}__header-mark`]:!0}};n.markColor&&(M.style={background:n.markColor});const X=r.h("div",M);K.push(X)}const _=r.h("div",{class:{[`${d}__header-title`]:!0}},[h.value]);K.push(_)}if(a.slots.toolbar&&K.push(a.slots.toolbar()),n.showCollapse){const _=[];if(V.value){const Z={class:R.value},ee=r.h("span",Z,[V.value]);_.push(ee)}const M={class:F.value},X=o(n.collapseIcon,M);if(X&&_.push(X),_.length>0){const Z=r.h("div",{class:{[`${d}__header-collapse`]:!0},onClick:C},_);K.push(Z)}}if(K.length>0){const _={key:`${U++}`,ref:P,class:{[`${d}__header`]:!0,[`${d}__first`]:!0}},M=r.h("div",_,K);L.push(M)}}N();const G=a.slots.default?a.slots.default():[],j=i.layout.value.type;if(j==="grid"){const K=W(G,U++,0,G.length);L.push(K)}else if(j==="flow"){const K=W(G,U++,0,G.length);L.push(K)}else for(let K=0;K<G.length;K++){const _=G[K],M=W([_],U++,K,G.length);L.push(M)}if(T.value){const K=n.tag||"div";return r.h(K,{ref:z,prop:n.name,class:{[`${d}`]:!0,"is-collapse":O.value},style:S.value},[L])}else return L}}}}const{componentName:ml,create:pl,scope:yl}=Q("group"),yr=pl(gl(ml,yl,(e,t)=>(e=e??Ve.ArrowUp,r.h(m.ElIcon,t,{default:()=>[r.h(e)]}))));function bl(e){return e===window}const wl=/matrix\((.+)\)/,br=e=>{const t=r.unref(e);if(!t)return{x:0,y:0};if(bl(t))return{x:0,y:0};let o=0,n=0,a=t;for(;a!==null;)o+=a.offsetLeft,n+=a.offsetTop,a=a.offsetParent;let l=0,i=0,s=0,u=0;for(a=t;a!==document;){i+=a.scrollTop,l+=a.scrollLeft;const{transform:c}=window.getComputedStyle(a);if(c){const f=wl.exec(c);if(f){let S=f[1].split(/\s*,\s*/);S.length==6&&(s+=Number(S[4]),u+=Number(S[5]))}}a=a.parentNode}return o-=l,n-=i,o+=s,n+=u,{x:o,y:n}};function Sl(e){return e===window}const hn=e=>{const t=r.unref(e);if(Sl(t)){const o=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:o,bottom:n,width:o,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}};class vl{watchedListeners=[];add(t){this.watchedListeners.push(t)}remove(t){const o=this.watchedListeners.indexOf(t);o!==-1&&this.watchedListeners.splice(o,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(t=>{try{t()}catch{}})}}class $l{monitorRegister=new WeakMap;watch(t,o){let n=t.parentNode;const a=document.body.parentNode;for(;n&&n!==a;){let l=this.monitorRegister.get(n);l||(l=new vl,n.addEventListener("scroll",l.listen),n===document.body&&n.addEventListener("resize",l.listen),this.monitorRegister.set(n,l)),l.add(o),n=n.parentNode}}unwatch(t,o){let n=t.parentNode;const a=document.body.parentNode;for(;n&&n!==a;){let l=this.monitorRegister.get(n);l&&(l.remove(o),l.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",l.listen),n===document.body&&n.removeEventListener("resize",l.listen))),n=n.parentNode}}}const wr=new $l,Sr={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:Tl,create:El}=Q("price"),Cl=El({props:{...Sr},setup(e){const t=r.computed(()=>({[Tl]:!0})),o=r.computed(()=>e.needSymbol?e.symbol:""),n=r.computed(()=>ot(e.price)==0?"":pt(e.price,e.decimalLength,!0,ge(e.digits),e.separator)),a=r.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),l=r.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(s+1)});return{classes:t,showSymbol:o,intText:a,decimalText:l}}}),xl=["innerHTML"],Nl=["innerHTML"];function kl(e,t,o,n,a,l){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,xl)):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,Nl)):r.createCommentVNode("",!0)],2)}const gn=Te(Cl,[["render",kl]]),{componentName:At,create:Vl}=Q("hint-text"),Ol=Vl({components:{Price:gn},props:{...Sr,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 l=r.ref(!0),i=r.ref({x:0,y:0}),s=r.ref({x:0,y:0}),u=r.ref(0),c=r.ref(0),f=r.ref(e.placement),d=r.computed(()=>({[At]:!0})),S=r.ref(null),w=(V,R,F=10)=>{if(!rt||R===!1||!V)return;l.value=!0;const z=hn(e.reference);u.value=z.width,c.value=z.height,setTimeout(()=>{if(!S.value)return;const P=br(e.reference),v=document.documentElement.clientWidth||document.body.clientWidth,b=S.value.offsetWidth,E=S.value.offsetHeight;P.y-E>=0?(f.value="top",i.value.y=P.y-E-10-4,s.value.y=E):(f.value="bottom",i.value.y=P.y+c.value+10,s.value.y=-10);const O=P.x+b-v;O<0?(i.value.x=P.x,s.value.x=20):(i.value.x=P.x-O,s.value.x=O+20),l.value=!1},F)},$=it(()=>{w(e.message,e.visible)},10),h=r.computed(()=>e.visible&&y.value),y=r.ref(!0),p=it(V=>{const R=V[0];R&&(y.value=R.isIntersecting)},10),T=new IntersectionObserver(p);r.watch([()=>e.message,()=>e.visible],([V,R])=>{w(V,R)}),r.onMounted(()=>{w(e.message,e.visible),wr.watch(e.reference,$),T.observe(e.reference)}),r.onBeforeMount(()=>{wr.unwatch(e.reference,$),T.unobserve(e.reference),T.disconnect()});const k=r.computed(()=>{const V={"min-width":ce(u.value)};return l.value?V.visibility="hidden":V.transform=`translate(${i.value.x}px, ${i.value.y}px)`,V}),D=r.computed(()=>({[`${At}__content`]:!0})),N=r.computed(()=>({})),x=r.computed(()=>({[`${At}__arrow`]:!0,[`${At}__arrow-${e.placement}`]:!0})),I=r.computed(()=>({top:`${s.value.y}px`,left:`${s.value.x}px`}));return{show:h,tipRef:S,classes:d,styles:k,textClasses:D,textStyles:N,arrowClasses:x,arrowStyles:I}}}),Il={key:1,class:"text"};function Rl(e,t,o,n,a,l){const i=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(i,{key:0,price:e.message,position:"before"},null,8,["price"])):(r.openBlock(),r.createElementBlock("span",Il,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 Dt=Te(Ol,[["render",Rl]]);class vr{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 mn={},Al=new vr,Ue=new Map,pn=e=>{if(e){const t=document.getElementById(e);Ue.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of Ue.keys()){const o=document.getElementById(t);o&&o.parentNode?.removeChild(o)}Ue.clear()}},Dl=e=>{const t=document.getElementById(e.id);if(t){const o=Ue.get(e.id);o?e={...mn,...o,...e}:e={...mn,...e};const n=r.createVNode(Dt,e);return r.render(n,t),e.id}},Fl=e=>{e.unmount=pn;let t;if(e.id){if(t=e.id,Ue.has(t))return Dl(e)}else t=`hinttext_${Al.get()}`;e={...mn,...e},e.id=t,Ue.set(t,e);const o=document.createElement("div");o.id=e.id;const n=r.createVNode(Dt,e);return r.render(n,o),document.body.appendChild(o),t},Bl=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Ft={show(e,t,o={},n=!0){return n&&pn(),Bl(t),Fl({...o,message:t,reference:e})},hide(e){pn(e)},install(e){e.config.globalProperties.$hintText=Ft}},{componentName:$r,create:Ll}=Q("item"),ql=Ll({inheritAttrs:!0,props:{...ie,...pe},emits:["appear","disappear"],setup(e,t){const o=e.prop??t.attrs.name;ue({componentName:$r,validate:!1},o);const n=Ie(),a=Nt();kt(!1);const l=r.computed(()=>a&&n?Vt(n,!1).value:null),i=$r,s=r.ref(null),u=r.computed(()=>{const j={[i]:!0,[`${i}__gutter`]:l.value&&l.value.type!=="flow",[`${i}__stretch`]:e.span==="stretch",[`${i}__input--border`]:e.hasBorder};if(j[e.errorMarkClass]=!!z.value,j[e.warnMarkClass]=!!R.value,j[e.infoMarkClass]=!!I.value,typeof s.value=="function"){const K=s.value(o);j[K]=!0}else if(typeof s.value=="string"){const K=s.value;j[K]=!0}return j}),c=r.computed(()=>{const j={},K=a&&n?Ot(n,!1):null;if(l.value&&K)if(l.value.type==="grid"){const _=Rt(K,l.value,e.span,e.offset);Object.assign(j,_)}else if(l.value.type==="flow"){const _=It(K,l.value,e.span,e.offset,e.width);Object.assign(j,_)}else return e.width&&(j.width=ce(e.width)),j;else e.width&&(j.width=ce(e.width));return j}),f=r.ref(null),d=r.computed({get:()=>f.value??te(e.isRequired),set:j=>{f.value=j}}),S=r.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),w=Se(r.toRef(e,"labelPosition"),"labelPosition",$e.Near),$=r.computed(()=>w&&w.value==="top"?"top":w&&w.value==="right"?"right":"left"),h=r.computed(()=>({[`${i}__main`]:!0,[`${i}__main--${$.value}`]:!0})),y=r.computed(()=>({label:!0,[`label--${$.value}`]:!0})),p=Se(r.toRef(e,"labelWidth"),"labelWidth",$e.Near),T=r.computed(()=>p&&p.value?{width:ce(p.value)}:{}),k=r.computed(()=>({"label--string":!0,"label--required":d.value})),D=r.computed(()=>({content:!0,[e.contentClass]:!0})),N=r.computed(()=>({...e.contentStyle})),x=r.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});fe({setRequired(j){d.value=j},setErrorTip(j){x.errorTip=j},setErrorIcon(j){x.errorIcon=j},setWarnTip(j){x.warnTip=j},setWarnIcon(j){x.warnIcon=j},setInfoTip(j){x.infoTip=j},setInfoIcon(j){x.infoIcon=j},setCustomClassName(j){s.value=j}});const I=r.computed(()=>e.infoTip||x.infoTip),V=r.computed(()=>e.infoIcon||x.infoIcon),R=r.computed(()=>e.warnTip||x.warnTip),F=r.computed(()=>e.warnIcon||x.warnIcon),z=r.computed(()=>e.errorTip||x.errorTip),P=r.computed(()=>e.errorIcon||x.errorIcon),v=r.computed(()=>z.value?"error":R.value?"warn":I.value?"info":""),b=r.computed(()=>v.value.length>0),E=r.computed(()=>v.value==="error"?z.value:v.value==="warn"?R.value:v.value==="info"?I.value:""),O=r.computed(()=>v.value==="error"?P.value:v.value==="warn"?F.value:v.value==="info"?V.value:null),q=r.computed(()=>{let j={[`${i}__tip`]:!0,[`${i}__tip--${v.value}`]:!0};return v.value==="error"&&e.errorClass?j[`${e.errorClass}`]=!0:v.value==="warn"&&e.warnClass?j[`${e.warnClass}`]=!0:v.value==="info"&&e.infoClass&&(j[`${e.infoClass}`]=!0),j}),Y=r.computed(()=>{let j={};return w&&w.value==="top"||!S.value?j["padding-left"]="0px":p&&p.value&&(j["padding-left"]=ce(p.value)),j}),C=()=>r.h(O.value,{width:12,height:12}),A=r.computed(()=>t.slots.fixedTip),H=r.computed(()=>({[`${i}__fixed-tip`]:!0})),B=r.ref();let W="";r.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([j,K,_,M])=>{B.value&&(j&&!ae(K)?W?Ft.show(B.value,K,{...M,id:W,type:_},!0):W=Ft.show(B.value,K,{...M,type:_},!0):Ft.hide(W))});let L=null;const U=()=>{L||!B.value||(L=new IntersectionObserver(j=>{let K=!1;for(let _ of j)if(_.intersectionRatio>0){K=!0,K&&t.emit("appear",_);break}K||t.emit("disappear")}),L.observe(B.value))},G=()=>{!L||!B.value||(L.unobserve(B.value),L=null)};return r.watch(()=>te(e.appearListen),j=>{j?U():G()}),r.onMounted(()=>{te(e.appearListen)&&U()}),r.onUnmounted(G),{classes:u,styles:c,mainClasses:h,hasLabel:S,labelClasses:y,labelStyles:T,labelStringClasses:k,contentClasses:D,contentStyles:N,contentRef:B,hasTip:b,mTip:E,mIcon:O,renderIcon:C,tipClasses:q,tipStyles:Y,hasFixedTip:A,fixedTipClasses:H}}}),Ml=["prop"],jl={key:0,class:"fox-item__tip--icon"},_l={class:"fox-item__tip--text"};function Pl(e,t,o,n,a,l){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",jl,[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.renderIcon())))])):r.createCommentVNode("",!0),r.createElementVNode("div",_l,r.toDisplayString(e.mTip),1)],6)):r.createCommentVNode("",!0)]),_:1}),r.renderSlot(e.$slots,"hide")],14,Ml)}const de=Te(ql,[["render",Pl]]);function Hl(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(o,n){const a=Ie(),l=Nt();kt(!1);const i=r.computed(()=>l&&a?Vt(a,!1).value:null),s=e,u=r.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:o.span==="stretch"})),c=r.computed(()=>{const f={},d=l&&a?Ot(a,!1):null;if(i.value&&d)if(i.value.type==="grid"){const S=Rt(d,i.value,o.span,o.offset);Object.assign(f,S)}else if(i.value.type==="flow"){const S=It(d,i.value,o.span,o.offset,o.width);Object.assign(f,S)}else return o.width&&(f.width=ce(o.width)),f;else o.width&&(f.width=ce(o.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:zl,create:Kl,scope:Wc}=Q("slot-item"),Tr=Kl(Hl(zl));function Wl(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(o,n){const a=e,l=r.computed(()=>({[a]:!0,[`${a}__stretch`]:o.span==="stretch",[`${a}__${o.align}`]:!0})),i=Ie(),s=Nt();kt(!1);const u=r.computed(()=>{const c={};if(s&&i){const f=Vt(i,!1),d=Ot(i,!1);if(f.value&&d)if(f.value.type==="grid"){const S=Rt(d,f.value,o.span,o.offset);Object.assign(c,S)}else if(f.value.type==="flow"){const S=It(d,f.value,o.span,o.offset,o.width);Object.assign(c,S)}else o.width&&(c.width=ce(o.width))}else o.width&&(c.width=ce(o.width));return c});return()=>{const c=[];if(n.slots.default){const d=n.slots.default();if(o.divide)for(let S=0;S<d.length;S++){if(S>0){const w=r.h("div",{class:{[`${a}__divide`]:!0}});c.push(w)}c.push(d[S])}else Reflect.apply([].push,c,d)}const f={class:l.value,style:u.value};return r.h("div",f,c)}}}}const{componentName:Yl,create:Ul,scope:Yc}=Q("row-item"),Er=Ul(Wl(Yl)),Cr={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 Gl(e,t,o){return{props:{...ie,...pe,...Cr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ce.useFoxI18n(t),c=u(n,["placeholder"]),f=r.ref(!1),d=ne(n,"modelValue"),S=e,w=r.computed(()=>({[S]:!0,[`${S}__disabled`]:l.value,[`${S}__readonly`]:i.value})),$=v=>{d.value=v,s("update:modelValue",v),s("input",v)},h=v=>{s("change",v)};let y=ne(n,"hintText"),p=r.ref(!1);const T=v=>{let E=v.target.value;f.value=!0,ae(y.value)||(p.value=!0),s("focus",E,v)},k=v=>{setTimeout(()=>{p.value&&(p.value=!1),f.value=!1},0);let E=v.target.value;n.maxLength&&E.length>Number(n.maxLength)&&(E=E.slice(0,Number(n.maxLength))),s("blur",E,v)},D=()=>{s("clear","")},N=r.ref(!1);let x=null;const I=()=>{n.showTooltip&&N.value===!1&&(x=setTimeout(()=>{N.value=!0},150))},V=()=>{x&&(clearTimeout(x),N.value=!1,x=null)},R=r.computed(()=>N.value||p.value),F=r.computed(()=>N.value?d.value:y.value),z=r.computed(()=>ot(n.unit)>0),P=r.ref();return fe({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()},select:()=>{P?.value.select()}}),()=>{const b={...a.attrs,ref:P,class:w.value,placeholder:c.placeholder.value,clearable:n.clearable,disabled:l.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:D,onChange:h,onInput:$,onFocus:T,onBlur:k,onMouseover:I,onMouseleave:V},E={};a.slots.prepend&&(E.prepend=a.slots.prepend),a.slots.append&&(E.append=a.slots.append),a.slots.prefix&&(E.prefix=a.slots.prefix),a.slots.suffix?E.suffix=a.slots.suffix:z.value&&(E.suffix=()=>[n.unit]);const O=[],q=r.h(m.ElInput,b,E);O.push(q);const Y={default:()=>O};a.slots.default&&(Y.label=a.slots.default),a.slots.default&&(Y.fixedTip=a.slots.fixedTip);const A={...me(n,Cr),hintText:F.value,hintVisible:R.value,prop:`${n.prop}_item`};return r.h(o,A,Y)}}}}const{componentName:Xl,create:Zl,scope:Jl}=Q("input-item"),xr=Zl(Gl(Xl,Jl,de));function Pe(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ge(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Nr(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function Ql(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let ei=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const a=Ne(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Fe(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}};function ti(){const e=r.getCurrentInstance();return new ei(e.proxy)}function kr(e,t,o){const n=Pe(e,t),a=Pe(e,o);if(n!==a)return!1;const l=Ge(e,t),i=Ge(e,o);return l===i}function Vr(e,t,o,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];return t.forEach(l=>{for(let i of n){const s=Nr(e,i);if(Array.isArray(s)&&s.length>0){const u=Vr(e,l,o,s)??[];Reflect.apply([].push,a,u)}else{let u=!1;if(o==="text")u=Pe(e,i)===l;else if(o==="item")u=kr(e,i,l);else{let c=Ge(e,i);c==null&&(c=Pe(e,i)),u=c===l}if(u){a.push(i);break}}}}),a}function ni(e){return{text:e,value:e}}const Or={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 ri(e,t,o){return{props:{...ie,...pe,...Or},emits:["change","update:modelValue","blur","focus","clear","visible-change","remove-tag","selected"],setup(n,a){const l=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),{emitEvent:s}=ue({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ce.useFoxI18n(t),c=u(n,["placeholder"]),f=r.ref(null),d=r.ref([]),S=(B,W,L,U=!0)=>{const G=Vr(n,B,W,L);if(G===null){if(d.value===null||d.value.length===0)return;f.value=null,d.value=[],U&&(s("update:modelValue",null),s("change",null));return}let j=!0;if(G.length!==d.value.length)j=!1;else for(let K=0;K<G.length;K++){const _=G[K],M=d.value[K];if(!kr(n,_,M)){j=!1;break}}if(!j){d.value=G;let K=[],_=[];G.forEach(X=>{K.push(Ge(n,X)),n.valueType==="text"?_.push(Pe(n,X)):n.valueType==="item"?_.push(X):_.push(Ge(n,X))});let M;n.multiple?(f.value=K,M=r.toRaw(_)):(f.value=K[0]??"",M=r.toRaw(_[0]??"")),U&&(s("update:modelValue",M),s("change",M))}},w=r.ref(null),$=r.ref(null),h=r.computed(()=>$.value??w.value??[]),y=Se(r.computed(()=>n.lazyLoad),"lazyLoad",$e.Near,B=>te(B)),p=ti(),T=async(B,W)=>{if(B){const L=await p.load("select",B,W);if(L.length>0)if(typeof L[0]=="string"){let j=L.map(K=>ni(K));w.value=j}else w.value=L;else w.value=null}};r.watch([()=>n.source,()=>n.params],([B,W])=>{T(B,W)},{immediate:!y.value});let k=!1;const D=()=>{k||(k=!0,T(n.source,n.params))};r.watch([()=>h.value,()=>n.modelValue],([B,W])=>{S(W,n.valueType,B,!1)});let N=null,x=r.ref(!1);typeof n.remoteMethod=="function"&&(N=async B=>{if(B==null){$.value=null;return}x.value=!0;try{const W=await n.remoteMethod(B);W&&($.value=W)}catch(W){$.value=null,console.error(W)}x.value=!1});let I=null;typeof n.filterMethod=="function"&&(I=async B=>{if(B==null){$.value=null;return}x.value=!0;try{const W=await n.filterMethod(B,w.value);W&&($.value=W)}catch(W){$.value=null,console.error(W)}x.value=!1});const V=r.ref(!1),R=e,F=r.computed(()=>({[R]:!0})),z=B=>{n.allowCreate?(s("update:modelValue",B),s("change",B),f.value=B):S(B,"value",h.value,!0)};let P=ne(n,"hintText"),v=r.ref(!1);const b=B=>{let L=B.target.value;V.value=!0,ae(P.value)||(v.value=!0),s("focus",L,B)},E=B=>{setTimeout(()=>{v.value&&(v.value=!1),V.value=!1},0);let L=B.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),q.value||s("blur",L,B)},O=()=>{s("clear","")},q=r.ref(!1),Y=B=>{q.value=B,s("visible-change",B),B||s("selected")},C=B=>{s("remove-tag",B)},A=(B,W)=>{const L=[];return B.forEach((U,G)=>{const j=Nr(n,U);if(Array.isArray(j)&&j.length>0){const K=A(j,W),_=Pe(n,U),X={key:`${_}_${G}`,label:_};L.push(r.h(m.ElOptionGroup,X,{default:()=>K}))}else{const K=Ge(n,U),_=Pe(n,U),M=Ql(n,U),Z={key:`${K}_${G}`,label:_,disabled:M,value:K};if(typeof W=="function")L.push(r.h(m.ElOption,Z,{default:()=>W(U)}));else if(n.optionType==="item"){const ee={class:{"fox-select-item__option-left":!0}},ye=r.h("span",ee,[K]),se={class:{"fox-select-item__option-right":!0}},ze=r.h("span",se,[_]),Wo=r.h("div",{class:{"fox-select-item__option":!0}},[ye,ze]);L.push(r.h(m.ElOption,Z,{default:()=>Wo}))}else n.optionType==="value"?L.push(r.h(m.ElOption,Z,{default:()=>[K]})):L.push(r.h(m.ElOption,Z))}}),L},H=r.ref();return fe({focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()}}),()=>{const W={...a.attrs,ref:H,class:F.value,clearable:n.clearable,multiple:n.multiple,placeholder:c.placeholder.value,disabled:l.value||i.value,modelValue:f.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:O,onChange:z,onFocus:b,onBlur:E,onVisibleChange:Y,onRemoveTag:C};typeof N=="function"&&(W["remote-method"]=N,W.loading=x.value),typeof I=="function"&&(W["filter-method"]=I,W.loading=x.value);const L={};a.slots.prefix&&(L.prefix=a.slots.prefix),a.slots.empty&&(L.empty=a.slots.empty),a.slots.options?L.default=a.slots.options:L.default=()=>A(h.value,a.slots.option);const U=[],G=r.h(m.ElSelect,W,L);U.push(G);const j={default:()=>U};a.slots.default&&(j.label=a.slots.default),a.slots.fixedTip&&(j.fixedTip=a.slots.fixedTip);const _={...me(n,Or),hintText:P.value,hintVisible:v.value,prop:`${n.prop??a.attrs.name}_item`};return y.value&&(_["appear-listen"]=!0,_.onAppear=D),r.h(o,_,j)}}}}const{componentName:oi,create:ai,scope:li}=Q("select-item"),Ir=ai(ri(oi,li,de));var Re=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ae(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Rr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Re,function(){var o=1e3,n=6e4,a=36e5,l="millisecond",i="second",s="minute",u="hour",c="day",f="week",d="month",S="quarter",w="year",$="date",h="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|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,T={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("_")},k=function(v,b,E){var O=String(v);return!O||O.length>=b?v:""+Array(b+1-O.length).join(E)+v},D={s:k,z:function(v){var b=-v.utcOffset(),E=Math.abs(b),O=Math.floor(E/60),q=E%60;return(b<=0?"+":"-")+k(O,2,"0")+":"+k(q,2,"0")},m:function v(b,E){if(b.date()<E.date())return-v(E,b);var O=12*(E.year()-b.year())+(E.month()-b.month()),q=b.clone().add(O,d),Y=E-q<0,C=b.clone().add(O+(Y?-1:1),d);return+(-(O+(E-q)/(Y?q-C:C-q))||0)},a:function(v){return v<0?Math.ceil(v)||0:Math.floor(v)},p:function(v){return{M:d,y:w,w:f,d:c,D:$,h:u,m:s,s:i,ms:l,Q:S}[v]||String(v||"").toLowerCase().replace(/s$/,"")},u:function(v){return v===void 0}},N="en",x={};x[N]=T;var I=function(v){return v instanceof z},V=function v(b,E,O){var q;if(!b)return N;if(typeof b=="string"){var Y=b.toLowerCase();x[Y]&&(q=Y),E&&(x[Y]=E,q=Y);var C=b.split("-");if(!q&&C.length>1)return v(C[0])}else{var A=b.name;x[A]=b,q=A}return!O&&q&&(N=q),q||!O&&N},R=function(v,b){if(I(v))return v.clone();var E=typeof b=="object"?b:{};return E.date=v,E.args=arguments,new z(E)},F=D;F.l=V,F.i=I,F.w=function(v,b){return R(v,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var z=function(){function v(E){this.$L=V(E.locale,null,!0),this.parse(E)}var b=v.prototype;return b.parse=function(E){this.$d=function(O){var q=O.date,Y=O.utc;if(q===null)return new Date(NaN);if(F.u(q))return new Date;if(q instanceof Date)return new Date(q);if(typeof q=="string"&&!/Z$/i.test(q)){var C=q.match(y);if(C){var A=C[2]-1||0,H=(C[7]||"0").substring(0,3);return Y?new Date(Date.UTC(C[1],A,C[3]||1,C[4]||0,C[5]||0,C[6]||0,H)):new Date(C[1],A,C[3]||1,C[4]||0,C[5]||0,C[6]||0,H)}}return new Date(q)}(E),this.$x=E.x||{},this.init()},b.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},b.$utils=function(){return F},b.isValid=function(){return this.$d.toString()!==h},b.isSame=function(E,O){var q=R(E);return this.startOf(O)<=q&&q<=this.endOf(O)},b.isAfter=function(E,O){return R(E)<this.startOf(O)},b.isBefore=function(E,O){return this.endOf(O)<R(E)},b.$g=function(E,O,q){return F.u(E)?this[O]:this.set(q,E)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(E,O){var q=this,Y=!!F.u(O)||O,C=F.p(E),A=function(K,_){var M=F.w(q.$u?Date.UTC(q.$y,_,K):new Date(q.$y,_,K),q);return Y?M:M.endOf(c)},H=function(K,_){return F.w(q.toDate()[K].apply(q.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(_)),q)},B=this.$W,W=this.$M,L=this.$D,U="set"+(this.$u?"UTC":"");switch(C){case w:return Y?A(1,0):A(31,11);case d:return Y?A(1,W):A(0,W+1);case f:var G=this.$locale().weekStart||0,j=(B<G?B+7:B)-G;return A(Y?L-j:L+(6-j),W);case c:case $:return H(U+"Hours",0);case u:return H(U+"Minutes",1);case s:return H(U+"Seconds",2);case i:return H(U+"Milliseconds",3);default:return this.clone()}},b.endOf=function(E){return this.startOf(E,!1)},b.$set=function(E,O){var q,Y=F.p(E),C="set"+(this.$u?"UTC":""),A=(q={},q[c]=C+"Date",q[$]=C+"Date",q[d]=C+"Month",q[w]=C+"FullYear",q[u]=C+"Hours",q[s]=C+"Minutes",q[i]=C+"Seconds",q[l]=C+"Milliseconds",q)[Y],H=Y===c?this.$D+(O-this.$W):O;if(Y===d||Y===w){var B=this.clone().set($,1);B.$d[A](H),B.init(),this.$d=B.set($,Math.min(this.$D,B.daysInMonth())).$d}else A&&this.$d[A](H);return this.init(),this},b.set=function(E,O){return this.clone().$set(E,O)},b.get=function(E){return this[F.p(E)]()},b.add=function(E,O){var q,Y=this;E=Number(E);var C=F.p(O),A=function(W){var L=R(Y);return F.w(L.date(L.date()+Math.round(W*E)),Y)};if(C===d)return this.set(d,this.$M+E);if(C===w)return this.set(w,this.$y+E);if(C===c)return A(1);if(C===f)return A(7);var H=(q={},q[s]=n,q[u]=a,q[i]=o,q)[C]||1,B=this.$d.getTime()+E*H;return F.w(B,this)},b.subtract=function(E,O){return this.add(-1*E,O)},b.format=function(E){var O=this,q=this.$locale();if(!this.isValid())return q.invalidDate||h;var Y=E||"YYYY-MM-DDTHH:mm:ssZ",C=F.z(this),A=this.$H,H=this.$m,B=this.$M,W=q.weekdays,L=q.months,U=function(_,M,X,Z){return _&&(_[M]||_(O,Y))||X[M].slice(0,Z)},G=function(_){return F.s(A%12||12,_,"0")},j=q.meridiem||function(_,M,X){var Z=_<12?"AM":"PM";return X?Z.toLowerCase():Z},K={YY:String(this.$y).slice(-2),YYYY:this.$y,M:B+1,MM:F.s(B+1,2,"0"),MMM:U(q.monthsShort,B,L,3),MMMM:U(L,B),D:this.$D,DD:F.s(this.$D,2,"0"),d:String(this.$W),dd:U(q.weekdaysMin,this.$W,W,2),ddd:U(q.weekdaysShort,this.$W,W,3),dddd:W[this.$W],H:String(A),HH:F.s(A,2,"0"),h:G(1),hh:G(2),a:j(A,H,!0),A:j(A,H,!1),m:String(H),mm:F.s(H,2,"0"),s:String(this.$s),ss:F.s(this.$s,2,"0"),SSS:F.s(this.$ms,3,"0"),Z:C};return Y.replace(p,function(_,M){return M||K[_]||C.replace(":","")})},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(E,O,q){var Y,C=F.p(O),A=R(E),H=(A.utcOffset()-this.utcOffset())*n,B=this-A,W=F.m(this,A);return W=(Y={},Y[w]=W/12,Y[d]=W,Y[S]=W/3,Y[f]=(B-H)/6048e5,Y[c]=(B-H)/864e5,Y[u]=B/a,Y[s]=B/n,Y[i]=B/o,Y)[C]||B,q?W:F.a(W)},b.daysInMonth=function(){return this.endOf(d).$D},b.$locale=function(){return x[this.$L]},b.locale=function(E,O){if(!E)return this.$L;var q=this.clone(),Y=V(E,O,!0);return Y&&(q.$L=Y),q},b.clone=function(){return F.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},v}(),P=z.prototype;return R.prototype=P,[["$ms",l],["$s",i],["$m",s],["$H",u],["$W",c],["$M",d],["$y",w],["$D",$]].forEach(function(v){P[v[1]]=function(b){return this.$g(b,v[0],v[1])}}),R.extend=function(v,b){return v.$i||(v(b,z,R),v.$i=!0),R},R.locale=V,R.isDayjs=I,R.unix=function(v){return R(1e3*v)},R.en=x[N],R.Ls=x,R.p={},R})})(Rr);var ii=Rr.exports;const ke=Ae(ii);var Ar={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Re,function(){var o={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,a=/\d\d/,l=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},u=function(h){return(h=+h)+(h>68?1900:2e3)},c=function(h){return function(y){this[h]=+y}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var p=y.match(/([+-]|\d\d)/g),T=60*p[1]+(+p[2]||0);return T===0?0:p[0]==="+"?-T:T}(h)}],d=function(h){var y=s[h];return y&&(y.indexOf?y:y.s.concat(y.f))},S=function(h,y){var p,T=s.meridiem;if(T){for(var k=1;k<=24;k+=1)if(h.indexOf(T(k,0,y))>-1){p=k>12;break}}else p=h===(y?"pm":"PM");return p},w={A:[i,function(h){this.afternoon=S(h,!1)}],a:[i,function(h){this.afternoon=S(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[a,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[l,c("seconds")],ss:[l,c("seconds")],m:[l,c("minutes")],mm:[l,c("minutes")],H:[l,c("hours")],h:[l,c("hours")],HH:[l,c("hours")],hh:[l,c("hours")],D:[l,c("day")],DD:[a,c("day")],Do:[i,function(h){var y=s.ordinal,p=h.match(/\d+/);if(this.day=p[0],y)for(var T=1;T<=31;T+=1)y(T).replace(/\[|\]/g,"")===h&&(this.day=T)}],M:[l,c("month")],MM:[a,c("month")],MMM:[i,function(h){var y=d("months"),p=(d("monthsShort")||y.map(function(T){return T.slice(0,3)})).indexOf(h)+1;if(p<1)throw new Error;this.month=p%12||p}],MMMM:[i,function(h){var y=d("months").indexOf(h)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,c("year")],YY:[a,function(h){this.year=u(h)}],YYYY:[/\d{4}/,c("year")],Z:f,ZZ:f};function $(h){var y,p;y=h,p=s&&s.formats;for(var T=(h=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(R,F,z){var P=z&&z.toUpperCase();return F||p[z]||o[z]||p[P].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,b,E){return b||E.slice(1)})})).match(n),k=T.length,D=0;D<k;D+=1){var N=T[D],x=w[N],I=x&&x[0],V=x&&x[1];T[D]=V?{regex:I,parser:V}:N.replace(/^\[|\]$/g,"")}return function(R){for(var F={},z=0,P=0;z<k;z+=1){var v=T[z];if(typeof v=="string")P+=v.length;else{var b=v.regex,E=v.parser,O=R.slice(P),q=b.exec(O)[0];E.call(F,q),R=R.replace(q,"")}}return function(Y){var C=Y.afternoon;if(C!==void 0){var A=Y.hours;C?A<12&&(Y.hours+=12):A===12&&(Y.hours=0),delete Y.afternoon}}(F),F}}return function(h,y,p){p.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var T=y.prototype,k=T.parse;T.parse=function(D){var N=D.date,x=D.utc,I=D.args;this.$u=x;var V=I[1];if(typeof V=="string"){var R=I[2]===!0,F=I[3]===!0,z=R||F,P=I[2];F&&(P=I[2]),s=this.$locale(),!R&&P&&(s=p.Ls[P]),this.$d=function(O,q,Y){try{if(["x","X"].indexOf(q)>-1)return new Date((q==="X"?1e3:1)*O);var C=$(q)(O),A=C.year,H=C.month,B=C.day,W=C.hours,L=C.minutes,U=C.seconds,G=C.milliseconds,j=C.zone,K=new Date,_=B||(A||H?1:K.getDate()),M=A||K.getFullYear(),X=0;A&&!H||(X=H>0?H-1:K.getMonth());var Z=W||0,ee=L||0,ye=U||0,se=G||0;return j?new Date(Date.UTC(M,X,_,Z,ee,ye,se+60*j.offset*1e3)):Y?new Date(Date.UTC(M,X,_,Z,ee,ye,se)):new Date(M,X,_,Z,ee,ye,se)}catch{return new Date("")}}(N,V,x),this.init(),P&&P!==!0&&(this.$L=this.locale(P).$L),z&&N!=this.format(V)&&(this.$d=new Date("")),s={}}else if(V instanceof Array)for(var v=V.length,b=1;b<=v;b+=1){I[1]=V[b-1];var E=p.apply(this,I);if(E.isValid()){this.$d=E.$d,this.$L=E.$L,this.init();break}b===v&&(this.$d=new Date(""))}else k.call(this,D)}}})})(Ar);var si=Ar.exports;const ui=Ae(si);var Dr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Re,function(){return function(o,n,a){var l=n.prototype,i=l.format;a.en.ordinal=function(s){var u=["th","st","nd","rd"],c=s%100;return"["+s+(u[(c-20)%10]||u[c]||u[0])+"]"},l.format=function(s){var u=this,c=this.$locale();if(!this.isValid())return i.bind(this)(s);var f=this.$utils(),d=(s||"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 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(),S==="w"?1:2,"0");case"W":case"WW":return f.s(u.isoWeek(),S==="W"?1:2,"0");case"k":case"kk":return f.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 i.bind(this)(d)}}})})(Dr);var ci=Dr.exports;const fi=Ae(ci);var Fr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Re,function(){return function(o,n,a){var l=n.prototype,i=function(d){return d&&(d.indexOf?d:d.s)},s=function(d,S,w,$,h){var y=d.name?d:d.$locale(),p=i(y[S]),T=i(y[w]),k=p||T.map(function(N){return N.slice(0,$)});if(!h)return k;var D=y.weekStart;return k.map(function(N,x){return k[(x+(D||0))%7]})},u=function(){return a.Ls[a.locale()]},c=function(d,S){return d.formats[S]||function(w){return w.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function($,h,y){return h||y.slice(1)})}(d.formats[S.toUpperCase()])},f=function(){var d=this;return{months:function(S){return S?S.format("MMMM"):s(d,"months")},monthsShort:function(S){return S?S.format("MMM"):s(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(S){return S?S.format("dddd"):s(d,"weekdays")},weekdaysMin:function(S){return S?S.format("dd"):s(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(S){return S?S.format("ddd"):s(d,"weekdaysShort","weekdays",3)},longDateFormat:function(S){return c(d.$locale(),S)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};l.localeData=function(){return f.bind(this)()},a.localeData=function(){var d=u();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(S){return c(d,S)},meridiem:d.meridiem,ordinal:d.ordinal}},a.months=function(){return s(u(),"months")},a.monthsShort=function(){return s(u(),"monthsShort","months",3)},a.weekdays=function(d){return s(u(),"weekdays",null,null,d)},a.weekdaysShort=function(d){return s(u(),"weekdaysShort","weekdays",3,d)},a.weekdaysMin=function(d){return s(u(),"weekdaysMin","weekdays",2,d)}}})})(Fr);var di=Fr.exports;const hi=Ae(di);var Br={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Re,function(){var o="week",n="year";return function(a,l,i){var s=l.prototype;s.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=i(this).startOf(n).add(1,n).date(c),d=i(this).endOf(o);if(f.isBefore(d))return 1}var S=i(this).startOf(n).date(c).startOf(o).subtract(1,"millisecond"),w=this.diff(S,o,!0);return w<0?i(this).startOf("week").week():Math.ceil(w)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(Br);var gi=Br.exports;const mi=Ae(gi);var Lr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Re,function(){return function(o,n){n.prototype.weekYear=function(){var a=this.month(),l=this.week(),i=this.year();return l===1&&a===11?i+1:a===0&&l>=52?i-1:i}}})})(Lr);var pi=Lr.exports;const yi=Ae(pi);var qr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Re,function(){return function(o,n,a){n.prototype.dayOfYear=function(l){var i=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return l==null?i:this.add(l-i,"day")}}})})(qr);var bi=qr.exports;const wi=Ae(bi);var Mr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Re,function(){return function(o,n){n.prototype.isSameOrAfter=function(a,l){return this.isSame(a,l)||this.isAfter(a,l)}}})})(Mr);var Si=Mr.exports;const vi=Ae(Si);var jr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Re,function(){return function(o,n){n.prototype.isSameOrBefore=function(a,l){return this.isSame(a,l)||this.isBefore(a,l)}}})})(jr);var $i=jr.exports;const Ti=Ae($i);ke.extend(hi),ke.extend(fi),ke.extend(ui),ke.extend(mi),ke.extend(yi),ke.extend(wi),ke.extend(vi),ke.extend(Ti);const ct={format(e,t){return ke(e).format(t)},parser(e,t){return ke(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,o){const a=new Date(e+"/"+t+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][a]},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 o=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),a=this.getNumTwoBit(e.getDate());return[o,n,a].join(t)},getDay(e,t){e=e||0;let o=t??new Date;const n=e*(1e3*60*60*24);return o=new Date(o.getTime()+n),this.date2Str(o)},compareDate(e,t){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let n;return typeof t=="string"?n=new Date(t.replace("-","/").replace("-","/")):n=t,!(o>=n)},isEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e;let n;return typeof t=="string"?n=new Date(t).getTime():n=t,o==n},getMonthWeek:function(e,t,o,n=0){const a=new Date(Number(e),parseInt(t)-1,Number(o));let l=a.getDay(),i=a.getDate(),s=6-l;return n!==0&&(l=l==0?7:l,s=7-l),Math.ceil((i+s)/7)},getYearWeek:function(e,t,o,n=0){const a=new Date(Number(e),parseInt(t)-1,Number(o)),l=new Date(Number(e),0,1),i=Math.round((a.valueOf()-l.valueOf())/864e5);let s=a.getDay(),u=6-s;return n!==0&&(s=s==0?7:s,u=7-s),Math.ceil((i+u)/7)},getWeekDate:function(e,t,o,n=0){const a=new Date(Number(e),parseInt(t)-1,Number(o)),l=a.getTime();let i=a.getDay();if(n===0){const u=l-i*864e5,c=l+(6-i)*864e5,f=this.date2Str(new Date(u)),d=this.date2Str(new Date(c));return[f,d]}else{i=i==0?7:i;const s=24*60*60*1e3,u=l-(i-1)*s,c=l+(7-i)*s,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]=ct.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=ct.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,o){const n=new Date(new Date(t).setDate(t.getDate()+o)),a=e.getTime(),l=n.getTime(),i=t.getTime();return l>i?a>=i&&a<=l:a>=l&&a<=i},inScope4Month(e,t,o){const n=new Date(new Date(t).setMonth(t.getMonth()+o)),a=e.getTime(),l=n.getTime(),i=t.getTime();return l>i?a>=i&&a<=l:a>=l&&a<=i}},_r={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},valueFormat:{type:[String],required:!1}},Pr={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 Ei(e,t,o){return{props:{...ie,...pe,..._r,...Pr},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,a){const l=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ce.useFoxI18n(t),c=u(n,["placeholder"]),f=r.ref(!1),d=ne(n,"modelValue"),S=e,w=r.computed(()=>({[`${S}__input`]:!0})),$=b=>{d.value=b,s("update:modelValue",b),s("change",b)};let h=ne(n,"hintText"),y=r.ref(!1);const p=b=>{let O=b.target.value;f.value=!0,ae(h.value)||(y.value=!0),s("focus",O,b)},T=b=>{setTimeout(()=>{y.value&&(y.value=!1),f.value=!1},0);let O=b.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),s("blur",O,b)},k=()=>{s("clear","")},D=b=>{s("calendar-change",b)},N=(b,E,O)=>{s("panel-change",b,E,O)},x=b=>{s("visible-change",b)},I=Se(r.computed(()=>n.longTermValue),"longTermText",$e.Near),V=Se(r.computed(()=>n.longTermValue),"longTermValue",$e.Near);let R=null;const F=r.ref(te(n.longTerm)),z=b=>{if(F.value=b,s("update:longTerm",b),b){let E="";Array.isArray(V.value)?E=V.value.map((O,q)=>O||(Array.isArray(d.value)?d.value[q]:n.valueFormat?ct.format(new Date,n.valueFormat):new Date)):E=V.value,R=d.value,s("update:modelValue",E)}else s("update:modelValue",R)},P=te(n.isLongTerm);if(P){const b=()=>{if(F.value===!0){let E="";Array.isArray(V.value)?E=V.value.map((O,q)=>O||(Array.isArray(d.value)?d.value[q]:n.valueFormat?ct.format(new Date,n.valueFormat):new Date)):E=V.value,R=d.value,s("update:modelValue",E)}else Be(V.value,d.value)&&(F.value=!0)};b(),r.watch([()=>n.longTerm],([E])=>{F.value!==E&&b()})}const v=r.ref();return fe({focus:()=>{v?.value.focus()},blur:()=>{v?.value.blur()},handleOpen:()=>{v?.value.handleOpen()},handleClose:()=>{v?.value.handleClose()}}),()=>{const E={...a.attrs,ref:v,class:w.value,placeholder:c.placeholder.value,disabled:l.value||F.value,readonly:i.value,modelValue:d.value,valueFormat:n.valueFormat,"onUpdate:modelValue":$,onClear:k,onFocus:p,onBlur:T,onCalendarChange:D,onPanelChange:N,onVisibleChange:x},O={};a.slots["range-separator"]&&(O["range-separator"]=a.slots["range-separator"]),a.slots.cell&&(O.default=a.slots.cell);const q=[],Y=r.h(m.ElDatePicker,E,O);q.push(Y);const C={default:()=>q};if(a.slots.default&&(C.label=a.slots.default),a.slots.fixedTip&&(C.fixedTip=a.slots.fixedTip),P){const W={label:I.value,disabled:i.value||l.value,modelValue:F.value,"onUpdate:modelValue":z},L=r.h(m.ElCheckbox,W),U=r.h("div",{class:{[`${S}__append`]:!0}},[L]);C.append=()=>U}const H={...me(n,_r,Pr),class:{[`${S}__wrapper`]:!0,"has-append":P},hintText:h.value,hintVisible:y.value,prop:`${n.prop}_item`};return r.h(o,H,C)}}}}const{componentName:Ci,create:xi,scope:Ni}=Q("date-item"),Hr=xi(Ei(Ci,Ni,de)),zr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ki(e,t,o){return{props:{...ie,...pe,...zr},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,a){const l=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ce.useFoxI18n(t),c=u(n,["placeholder"]),f=r.ref(!1),d=ne(n,"modelValue"),S=e,w=r.computed(()=>({[S]:!0})),$=x=>{d.value=x,s("update:modelValue",x),s("change",x)};let h=ne(n,"hintText"),y=r.ref(!1);const p=x=>{let V=x.target.value;f.value=!0,ae(h.value)||(y.value=!0),s("focus",V,x)},T=x=>{setTimeout(()=>{y.value&&(y.value=!1),f.value=!1},0);let V=x.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),s("blur",V,x)},k=()=>{s("clear","")},D=x=>{s("visible-change",x)},N=r.ref();return fe({focus:()=>{N?.value.focus()},blur:()=>{N?.value.blur()},handleOpen:()=>{N?.value.handleOpen()},handleClose:()=>{N?.value.handleClose()}}),()=>{const I={...a.attrs,ref:N,class:w.value,placeholder:c.placeholder.value,disabled:l.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":$,onClear:k,onFocus:p,onBlur:T,onVisibleChange:D},V={},R=[],F=r.h(m.ElTimePicker,I,V);R.push(F);const z={default:()=>R};a.slots.default&&(z.label=a.slots.default),a.slots.fixedTip&&(z.fixedTip=a.slots.fixedTip);const v={...me(n,zr),hintText:h.value,hintVisible:y.value,prop:`${n.prop}_item`};return r.h(o,v,z)}}}}const{componentName:Vi,create:Oi,scope:Ii}=Q("time-item"),Kr=Oi(ki(Vi,Ii,de)),Wr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Ri(e,t,o){return{props:{...ie,...pe,...Wr},emits:["change","update:modelValue","blur","focus","clear"],setup(n,a){const l=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ce.useFoxI18n(t),c=u(n,["placeholder"]),f=r.ref(!1),d=ne(n,"modelValue"),S=e,w=r.computed(()=>({[S]:!0})),$=N=>{d.value=N,s("update:modelValue",N),s("change",N)};let h=ne(n,"hintText"),y=r.ref(!1);const p=N=>{let I=N.target.value;f.value=!0,ae(h.value)||(y.value=!0),s("focus",I,N)},T=N=>{setTimeout(()=>{y.value&&(y.value=!1),f.value=!1},0);let I=N.target.value;n.maxLength&&I.length>Number(n.maxLength)&&(I=I.slice(0,Number(n.maxLength))),s("blur",I,N)},k=()=>{s("clear","")},D=r.ref();return fe({focus:()=>{D?.value.focus()},blur:()=>{D?.value.blur()},handleOpen:()=>{D?.value.handleOpen()},handleClose:()=>{D?.value.handleClose()}}),()=>{const x={...a.attrs,ref:D,class:w.value,placeholder:c.placeholder.value,disabled:l.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":$,onClear:k,onFocus:p,onBlur:T},I={},V=[],R=r.h(m.ElTimeSelect,x,I);V.push(R);const F={default:()=>V};a.slots.default&&(F.label=a.slots.default),a.slots.fixedTip&&(F.fixedTip=a.slots.fixedTip);const P={...me(n,Wr),hintText:h.value,hintVisible:y.value,prop:`${n.prop}_item`};return r.h(o,P,F)}}}}const{componentName:Ai,create:Di,scope:Fi}=Q("time-select-item"),Yr=Di(Ri(Ai,Fi,de));function Ur(e,t=0){let o=`${e}`,n=o.indexOf(".");if(n==-1)return o;let a=n;for(let l=o.length-1;l>=n;l--)if(o.charAt(l)!="0"){a=l;break}return a-n<t?a=n+t+1:a!=n&&(a+=1),a>o.length?o=o.padEnd(a,"0"):o=o.substring(0,a),o}function Gr(e,t,o=20){if(typeof t=="string"&&(t=ge(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=Rn(`${e}`,`${t}`);return Ur(n)}else{let n=Ut(`${e}`,An(`${t}`),20);return Ur(n)}}function Bi(e,t=-1,o=!1,n=3,a=","){return pt(e,t,o,n,a)}function Xr(e,t,o,n,a=!0){if(e=="")return"";if(e=Dn(e),t=ge(t),t==1)return e;if(n)e=Gr(e,t),o&&(e=="0"&&a?e=`${e}.`.padEnd(ge(o)+2,"0"):e=Ut(e,1,ge(o)));else{let l=-1*t;e=Gr(e,l)}return e}function Zr(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=te(t.minInclude),a=Gt(e,t.min);if(n&&a==-1||!n&&(a==0||a==-1)){let l="请输入不小于 {0} 的数值";o.message=l.replace("{0}",t.min),o.minValid=!1}}if(t.max!=null){let n=te(t.maxInclude),a=Gt(e,t.max);(n&&a==1||!n&&(a==0||a==1))&&(o.maxValid=!1)}return o}const Jr={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 Li(e,t,o){return{props:{...ie,...pe,...Jr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),u=r.ref(!1),c=ne(n,"modelValue"),f=r.ref("");r.watch([()=>c.value,()=>n.rates,()=>n.precision],([v,b,E])=>{if(ae(v)){f.value="";return}const O=Xr(v,b,E,!1);f.value!==O&&(f.value=O)},{immediate:!0});const d=r.computed(()=>{let v="";return u.value&&(v=f.value),v}),{t:S}=Ce.useFoxI18n(t),w=r.computed(()=>{let v=n.placeholder??"";return!u.value&&!ae(f.value)?v=Bi(f.value,n.decimalLength,n.autoPadding,n.digits,n.separator):v=S(["placeholder",v]),v}),$=e,h=r.computed(()=>({[$]:!0,[`${$}__disabled`]:l.value,[`${$}__placeholder`]:f.value.length>0})),y=Se(r.computed(()=>n.textAlign),"textAlign");r.computed(()=>u.value?{textAlign:"left"}:{textAlign:y.value??"right"});const p=r.ref(""),T=r.computed(()=>{let v=p.value;return ae(v)&&(v=n.errorTip??""),v}),k=r.ref(""),D=r.ref(!1),N=(v,b)=>{if(v=`${v}`,ae(v)){f.value="",c.value="",b.forEach(E=>{s(E,"")}),te(n.showTip)&&D.value&&(D.value=!1);return}if(v.length>=2){let E=v;if(E.charAt(0)=="-"&&(E=E.substring(1)),E.length>=2&&E.charAt(0)=="0"&&E.charAt(1)!="."){r.triggerRef(f);return}}if(v!="-"){if(!Hn(v)){r.triggerRef(f);return}if(n.integerLength!=-1&&zn(v)>Number(n.integerLength)){r.triggerRef(f);return}if(n.decimalLength&&n.decimalLength!=-1&&Kn(v)>Number(n.decimalLength)){r.triggerRef(f);return}let E=Zr(v,n);if(E.maxValid===!1){p.value=E.message,r.triggerRef(f);return}}else if(n.min!=null&&ge(n.min)>=0){r.triggerRef(f);return}k.value=v,te(n.showTip)&&(D.value=v.length>0),f.value=v,c.value=Xr(v,n.rates,n.precision,!0),b.forEach(E=>{s(E,c.value)})},x=v=>{N(v,["update:modelValue","input"])},I=v=>{N(v,["update:modelValue","change"])},V=v=>{if(u.value=!0,te(n.showTip)){let b=f.value;ae(b)&&(b=n.hintText),ae(b)||(k.value=b,D.value=!0)}p.value="",s("focus",c.value,v)},R=v=>{if(setTimeout(()=>{u.value=!1,te(n.showTip)&&D.value===!0&&(D.value=!1)},0),!ae(f.value)){let b=Zr(f.value,n);if(b.minValid===!1||b.maxValid===!1){p.value=b.message;return}}s("update:modelValue",c.value,v),s("blur",c.value,v)},F=()=>{s("clear","")},z=r.computed(()=>ot(n.unit)>0),P=r.ref();return fe({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()},select:()=>{P?.value.select()}}),()=>{const b={...a.attrs,ref:P,class:h.value,type:"digit",maxlength:n.maxLength,placeholder:w.value,clearable:n.clearable,disabled:l.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:F,onInput:x,onChange:I,onFocus:V,onBlur:R},E={};a.slots.prepend&&(E.prepend=a.slots.prepend),a.slots.append&&(E.append=a.slots.append),a.slots.prefix&&(E.prefix=a.slots.prefix),a.slots.suffix?E.suffix=a.slots.suffix:z.value&&(E.suffix=()=>[n.unit]);const O=[],q=r.h(m.ElInput,b,E);O.push(q);const Y={default:()=>O};a.slots.default&&(Y.label=a.slots.default),a.slots.fixedTip&&(Y.fixedTip=a.slots.fixedTip);const A={...me(n,Jr),errorTip:T.value,hintText:k.value,hintVisible:D.value,hintType:"number",prop:`${n.prop}_item`};return r.h(o,A,Y)}}}}const{componentName:qi,create:Mi,scope:ji}=Q("money-item"),Qr=Mi(Li(qi,ji,de)),eo={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 _i(e,t,o){return{props:{...ie,...pe,...eo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ce.useFoxI18n(t),c=u(n,["placeholder"]),f=r.ref(!1),d=ne(n,"modelValue"),S=e,w=r.computed(()=>({[S]:!0,[`${S}__append`]:x.value})),$=r.computed(()=>({[`${S}__unit`]:!0})),h=V=>{d.value=V,s("update:modelValue",V),s("input",V)},y=V=>{s("change",V)};let p=ne(n,"hintText"),T=r.ref(!1);const k=V=>{let F=V.target.value;f.value=!0,ae(p.value)||(T.value=!0),s("focus",F,V)},D=V=>{setTimeout(()=>{T.value&&(T.value=!1),f.value=!1},0);let F=V.target.value;n.maxLength&&F.length>Number(n.maxLength)&&(F=F.slice(0,Number(n.maxLength))),s("blur",F,V)},N=()=>{s("clear","")},x=r.computed(()=>ot(n.unit)>0),I=r.ref();return fe({focus:()=>{I?.value.focus()},blur:()=>{I?.value.blur()}}),()=>{const R={...a.attrs,ref:I,class:w.value,placeholder:c.placeholder.value,clearable:n.clearable,disabled:l.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:N,onChange:y,onInput:h,onFocus:k,onBlur:D},F={},z=[],P=r.h(m.ElInputNumber,R,F);z.push(P);const v={default:()=>z};a.slots.default&&(v.label=a.slots.default),a.slots.fixedTip&&(v.fixedTip=a.slots.fixedTip);const E={...me(n,eo),hintText:p.value,hintVisible:T.value,prop:`${n.prop}_item`};if(a.slots.append)v.append=a.slots.append;else if(x.value){const q={class:$.value},Y=r.h("div",q,[n.unit]);v.append=()=>Y}return r.h(o,E,v)}}}}const{componentName:Pi,create:Hi,scope:zi}=Q("input-number-item"),to=Hi(_i(Pi,zi,de));function Xe(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function He(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Ki(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let Wi=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,a){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n,a);const l=Ne(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Fe(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(o,n,a))}};function Yi(){const e=r.getCurrentInstance();return new Wi(e.proxy)}function yn(e,t,o){const n=Xe(e,t),a=Xe(e,o);if(n!==a)return!1;const l=He(e,t),i=He(e,o);return l===i}function no(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];let l=n;for(let i=0;Array.isArray(l)&&i<t.length;i++){const s=t[i];if(Array.isArray(s)){const u=no(e,s,o,n);a.push(u)}else{let u=!1;for(let c of l){if(o==="text")u=Xe(e,c)===s;else if(o==="item")u=yn(e,c,s);else{let f=He(e,c);f==null&&(f=Xe(e,c)),u=f===s}if(u){a.push(c),l=Ki(e,c);break}}if(!u)break}}return a}function Ui(e){return{text:e,value:e}}const ro={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 Gi(e,t,o){return{props:{...ie,...pe,...ro},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected"],setup(n,a){const l=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),{emitEvent:s}=ue({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ce.useFoxI18n(t),c=u(n,["placeholder"]),f=r.ref(null),d=r.ref([]),S=(A,H,B,W=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(f.value===A)return;f.value=A;const G=r.toRaw(A);if(W){const j=C?.value.getCheckedNodes();if(j)if(n.multiple){const K=[];j.forEach(_=>{const X=(_.pathNodes??[]).map(Z=>Z.data);K.push(X)}),s("update:pathNodes",K)}else{const _=(j[0]?.pathNodes??[]).map(M=>M.data);s("update:pathNodes",_)}s("update:modelValue",G),s("change",G)}}const L=no(n,A,H,B);if(L===null){if(d.value.length===0||d.value===null)return;d.value=[],f.value=null,W&&(s("update:pathNodes",[]),s("update:modelValue",null),s("change",null));return}let U=!0;if(L.length!==d.value.length)U=!1;else for(let G=0;G<L.length;G++){const j=L[G],K=d.value[G];if(Array.isArray(j)){if(!Array.isArray(K)||j.length!==K.length)U=!1;else for(let _=0;_<j.length;_++)if(!yn(n,j[_],K[_])){U=!1;break}}else yn(n,j,K)||(U=!1);if(!U)break}if(!U){d.value=L;let G=[],j=[];L.forEach(_=>{if(Array.isArray(_)){let M=[],X=[];for(let Z of _)M.push(He(n,Z)),n.valueType==="text"?X.push(Xe(n,Z)):n.valueType==="item"?X.push(Z):X.push(He(n,Z));G.push(M),j.push(X)}else G.push(He(n,_)),n.valueType==="text"?j.push(Xe(n,_)):n.valueType==="item"?j.push(_):j.push(He(n,_))}),f.value=G;const K=r.toRaw(j);W&&(s("update:pathNodes",L),s("update:modelValue",K),s("change",K))}},w=r.ref([]),$=Se(r.computed(()=>n.lazyLoad),"lazyLoad",$e.Near,A=>te(A)),h=Yi(),y=async(A,H)=>{if(A){const B=await h.load("cascader",A,H);if(B.length>0)if(typeof B[0]=="string"){let U=B.map(G=>Ui(G));w.value=U}else w.value=B}};r.watch([()=>n.source,()=>n.params],async([A,H])=>{y(A,H)},{immediate:!($.value||n.lazy)});let p=!1;const T=()=>{p||(p=!0,y(n.source,n.params))};r.watch([()=>w.value,()=>n.modelValue],([A,H])=>{S(H,n.valueType,A,!1)}),n.lazy&&S(n.modelValue,"value",[],!1);let k=null,D=r.ref(!1);typeof n.remoteMethod=="function"&&(k=async A=>{if(A!=null){D.value=!0;try{const H=await n.remoteMethod(A);w.value=H}catch(H){console.error(H)}D.value=!1}});const N=r.ref(!1),x=e,I=r.computed(()=>({[x]:!0})),V=r.computed(()=>{let A={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(A.multiple=!0),n.props&&Object.assign(A,n.props),n.lazy&&(A.lazy=!0,A.lazyLoad=async(H,B)=>{const W=await h.load("cascader",n.source,H,!0);B(W)}),A}),R=A=>{n.allowCreate?(s("update:modelValue",A),s("change",A),f.value=A):S(A,"value",w.value,!0)};let F=ne(n,"hintText"),z=r.ref(!1);const P=A=>{let B=A.target.value;N.value=!0,ae(F.value)||(z.value=!0),s("focus",B,A)},v=A=>{setTimeout(()=>{z.value&&(z.value=!1),N.value=!1},0);let B=A.target.value;n.maxLength&&B.length>Number(n.maxLength)&&(B=B.slice(0,Number(n.maxLength))),E.value||s("blur",B,A)},b=()=>{s("clear","")},E=r.ref(!1),O=A=>{E.value=A,s("visible-change",A),A||s("selected")},q=A=>{s("remove-tag",A)},Y=A=>{s("expand-change",A)},C=r.ref();return fe({focus:()=>{C?.value.focus()},blur:()=>{C?.value.blur()},getCheckedNodes:()=>C?.value.getCheckedNodes()}),()=>{const H={...a.attrs,ref:C,class:I.value,props:V.value,clearable:n.clearable,placeholder:c.placeholder.value,disabled:l.value||i.value,options:w.value,modelValue:f.value,onClear:b,onChange:R,onFocus:P,onBlur:v,onVisibleChange:O,onRemoveTag:q,expandChange:Y};typeof k=="function"&&(H["remote-method"]=k,H.loading=D.value);const B={};a.slots.option&&(B.default=a.slots.option),a.slots.empty&&(B.empty=a.slots.empty);const W=[],L=r.h(m.ElCascader,H,B);W.push(L);const U={default:()=>W};a.slots.default&&(U.label=a.slots.default),a.slots.fixedTip&&(U.fixedTip=a.slots.fixedTip);const j={...me(n,ro),hintText:F.value,hintVisible:z.value,prop:`${n.prop??a.attrs.name}_item`};return $.value&&!n.lazy&&(j["appear-listen"]=!0,j.onAppear=T),r.h(o,j,U)}}}}const{componentName:Xi,create:Zi,scope:Ji}=Q("cascader-item"),oo=Zi(Gi(Xi,Ji,de)),ao={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1}};function Qi(e,t,o){return{props:{...ie,...pe,...ao},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,a){const l=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ce.useFoxI18n(t),c=u(n,["placeholder"]),f=r.ref(!1),d=ne(n,"modelValue"),S=e,w=r.computed(()=>({[S]:!0})),$=x=>{d.value=x,s("update:modelValue",x),s("input",x)},h=x=>{s("change",x)};let y=ne(n,"hintText"),p=r.ref(!1);const T=x=>{let V=x.target.value;f.value=!0,ae(y.value)||(p.value=!0),s("focus",V,x)},k=x=>{setTimeout(()=>{p.value&&(p.value=!1),f.value=!1},0);let V=x.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),s("blur",V,x)},D=()=>{s("clear","")},N=r.ref();return fe({focus:()=>{N?.value.focus()},blur:()=>{N?.value.blur()},select:()=>{N?.value.select()}}),()=>{const I={...a.attrs,ref:N,class:w.value,placeholder:c.placeholder.value,clearable:n.clearable,disabled:l.value,readonly:i.value,modelValue:d.value,onClear:D,onChange:h,onInput:$,onFocus:T,onBlur:k},V={};a.slots.prepend&&(V.prepend=a.slots.prepend),a.slots.append&&(V.append=a.slots.append),a.slots.prefix&&(V.prefix=a.slots.prefix),a.slots.suffix&&(V.suffix=a.slots.suffix),a.slots.option&&(V.default=a.slots.option);const R=[],F=r.h(m.ElAutocomplete,I,V);R.push(F);const z={default:()=>R};a.slots.default&&(z.label=a.slots.default),a.slots.fixedTip&&(z.fixedTip=a.slots.fixedTip);const v={...me(n,ao),hintText:y.value,hintVisible:p.value,prop:`${n.prop}_item`};return r.h(o,v,z)}}}}const{componentName:es,create:ts,scope:ns}=Q("autocomplete-item"),lo=ts(Qi(es,ns,de));function rs(e,t,o,n,a){let l=[];Array.isArray(e)?l=e:l=[e];const i=[],s=t[0];if(Array.isArray(s))for(let u=0;u<t.length&&u<l.length;u++){let c=t[u],f=l[u];const d=c.find(S=>S[n]===f);if(!d)break;i.push(d[o])}else{let u=t;for(let c=0;u&&c<l.length;c++){let f=l[c],d=u.find(S=>S[n]===f);if(!d)break;i.push(d[o]),u=d[a]}}return i}let os=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const a=Ne(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Fe(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}};function as(){const e=r.getCurrentInstance();return new os(e.proxy)}const io={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 ls(e,t){return{props:{...io},setup(o,{attrs:n,slots:a}){const l=as(),i=r.ref([]);r.watch([()=>o.source,()=>o.params],async([c,f])=>{i.value=await l.load(o.sourceType,c,f)},{immediate:!0});const s=r.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let c=rs(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return c.length==0?o.emptyText??"":c.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${c[0]}`:c[0]:c.join(o.separator)}),u=o.resolveTag?r.resolveComponent(o.tag):o.tag;return()=>{const c={...n};return a.default?a.default({text:s.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===s.value?r.h(o.emptyTag??"span",{...n,class:o.emptyClass},s.value):r.h(u,c,{default:()=>s.value}):r.h(u,c,s.value)}}}}const{componentName:Uc,create:is,scope:Gc}=Q("mapping"),Bt=is(ls());function ss(e,t){let o=t.split("."),n=e;for(let a=0;a<o.length;a++){let l=o[a],i=0,s=l.indexOf("["),u=s==-1?-1:l.indexOf("]",s);for(;s!==-1&&u!==-1;){let c=l.substring(s+1,u);if(/^\d+$/.test(c)){let f=parseInt(c);if(i==0){let d=l.substring(0,s);n=n[d][f]}else n=n[f];i++}s=l.indexOf("[",u),u=s==-1?-1:l.indexOf("]",s)}i===0&&(n=n[l])}return n}function us(e,t){return{props:{...io},setup(o,{attrs:n,slots:a}){return()=>{const l={default:i=>{const s=ss(i.row,i.column.property);return a.default?r.h(Bt,{...o,modelValue:s},{default:a.default}):r.h(Bt,{...o,modelValue:s})}};return r.h(m.ElTableColumn,{...n},l)}}}}const{componentName:Xc,create:cs,scope:Zc}=Q("table-mapping-column"),so=cs(us()),fs=Symbol.for("TableStateKey");function uo(e,t){let o=t.split("."),n=e;for(let a=0;a<o.length;a++){let l=o[a],i=0,s=l.indexOf("["),u=s==-1?-1:l.indexOf("]",s);for(;s!==-1&&u!==-1;){let c=l.substring(s+1,u);if(/^\d+$/.test(c)){let f=parseInt(c);if(i==0){let d=l.substring(0,s);n=n[d][f]}else n=n[f];i++}s=l.indexOf("[",u),u=s==-1?-1:l.indexOf("]",s)}i===0&&(n=n[l])}return n}function ds(e,t){return{props:{},setup(o,{attrs:n}){const a=r.inject(fs,{});return()=>{const l=a.currentRow?a.currentRow.value:null,i={default:s=>{const u=uo(s.row,s.column.property),c=l?uo(l,s.column.property):null,f=u===c,d={class:{"el-radio__input":!0,"is-checked":f}},S=r.h("span",d,[r.h("span",{class:{"el-radio__inner":!0}})]),w={class:{"el-radio":!0,"is-checked":f}};return r.h("label",w,[S])}};return r.h(m.ElTableColumn,{...n},i)}}}}const{componentName:Jc,create:hs,scope:Qc}=Q("table-radio-column"),co=hs(ds()),gs={},ms={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"},ps=[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 ys(e,t){return r.openBlock(),r.createElementBlock("svg",ms,ps)}const bs=Te(gs,[["render",ys]]),{componentName:tf,create:ws,scope:nf}=Q("table-setting"),Ss={tableRef:{type:Object},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:"不固定"}},vs=ws({components:{FoxPopover:m.ElPopover,FoxCheckbox:m.ElCheckbox,FoxCheckboxGroup:m.ElCheckboxGroup,FoxButton:m.ElButton,FoxIcon:m.ElIcon,DragIcon:bs,Download:Ve.Download,RefreshLeft:Ve.RefreshLeft},props:{...Ss},emits:["update:modelValue","change","close"],setup(e,{emit:t,attrs:o}){let n=[];const a=r.ref([]),l=r.computed(()=>a.value.filter(C=>C.label===""||C.type?!1:C.fixed===""||C.fixed===!0||C.fixed==="left")),i=r.computed(()=>a.value.filter(C=>C.label===""||C.type?!1:C.fixed==="right")),s=r.computed(()=>a.value.filter(C=>!(C.label===""||C.type||C.fixed!==void 0))),u=r.computed(()=>(l.value.length>0||i.value.length>0)&&s.value.length>0),c=r.computed(()=>l.value.length>0),f=r.computed(()=>i.value.length>0),d=C=>C.length>1,S=C=>{const A=[];a.value=C.map((B,W)=>(!(B.label===""||B.type)&&B.visible!==!1&&A.push(B.prop),{...B,sortIndex:W})),s.value.length+l.value.length+i.value.length===A.length?T.value=!0:A.length>0&&(k.value=!0),x.value=A},w=C=>C?C.type?C.type:C.label?C.prop:"":"",$=(C,A)=>{if(C.length!==A.length)return!1;const H=C.map(B=>w(B));for(let B of A){const W=w(B);if(H.indexOf(W)===-1)return!1}return!0},h=C=>{if(!C){const A=e.tableRef.getColumnSetting(),H=A.srcColumnPropertyList;n=H.map((B,W)=>({...B,sortIndex:W})),C=A.columnPropertyList,C&&C.length>0&&$(H,C)||(C=H)}S(C)},y=()=>{e.tableRef.setColumnSetting(a.value)},p=r.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),T=r.ref(!1),k=r.ref(!1),D=C=>{const A=[];a.value.forEach(B=>{C&&!(B.label===""||B.type)&&A.push(B.prop),B.visible=C}),T.value=!1,k.value=!1,s.value.length+l.value.length+i.value.length===A.length?T.value=!0:A.length>0&&(k.value=!0),x.value=A,y()},N=()=>{h(n),y()},x=r.ref([]),I=C=>{a.value.forEach(H=>{if(H.label===""||H.type)return;const B=C.indexOf(H.prop)!==-1;H.visible=B}),T.value=!1,k.value=!1;const A=s.value.length+l.value.length+i.value.length;C.length===A?T.value=!0:C.length>0&&(k.value=!0),y()},V=()=>{h()};r.onMounted(()=>{setTimeout(()=>{h()},50)});const R={currentRow:null,index:null,roleType:null},F=C=>C?C.dataset&&C.dataset.role==="row"?C:C.tagName.toLowerCase()!=="body"?(C=C.parentElement,F(C)):null:null;return{attrs:o,leftFixedColumns:l,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:u,isShowLeftFixedTitle:c,isShowRightFixedTitle:f,isDraggble:d,isCheckAll:T,isIndeterminate:k,handleCheckAllChange:D,handleReset:N,checkedValue:x,handleCheckChange:I,onShow:V,onDragStart:C=>{const A=C.currentTarget;A&&A.dataset&&(R.roleType=A.dataset.roleType,R.index=A.dataset.index)},onDragEnd:C=>{R.currentRow&&(R.currentRow.classList.remove("is-dragover"),R.currentRow=null),R.index=null,R.roleType=null},onDragOver:C=>{const A=C.currentTarget;C.relatedTarget;const H=F(A);if(!H)return;const B=H.dataset&&H.dataset.roleType;R.roleType===B&&(C.preventDefault(),R.currentRow&&R.currentRow!==H&&R.currentRow.classList.remove("is-dragover"),H.classList.add("is-dragover"),R.currentRow=H)},onDragLeave:C=>{C.preventDefault(),R.currentRow&&(R.currentRow.classList.remove("is-dragover"),R.currentRow=null)},onDrop:C=>{debugger;const A=C.currentTarget,H=F(A);if(!H)return;const B=H.dataset&&H.dataset.roleType;if(R.roleType!==B)return;C.preventDefault();const W=Number(R.index),L=Number(H.dataset.index);if(W!==L){if(W<L){const U=a.value[W];a.value.splice(W,1),a.value.splice(L,0,U)}else{const U=a.value[W];a.value.splice(W,1),a.value.splice(L+1,0,U)}S(a.value),y()}},toLeftFixed:C=>{const A=a.value[C];A.fixed="left",y()},toRightFixed:C=>{const A=a.value[C];A.fixed="right",y()},toUnFixed:C=>{const A=a.value[C];A.fixed=void 0,y()},checkboxLabelStyle:p}}}),$s={class:"fox-table-setting"},Ts={class:"fox-table-setting__header"},Es={class:"fox-table-setting__body"},Cs={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},xs={key:0,class:"fox-table-setting__body-title"},Ns=["data-index","draggable"],ks={class:"tools-item"},Vs={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},Os={key:0,class:"fox-table-setting__body-title"},Is=["data-index","draggable"],Rs={class:"tools-item"},As={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Ds={key:0,class:"fox-table-setting__body-title"},Fs=["data-index","draggable"],Bs={class:"tools-item"};function Ls(e,t,o,n,a,l){const i=r.resolveComponent("FoxCheckbox"),s=r.resolveComponent("FoxButton"),u=r.resolveComponent("DragIcon"),c=r.resolveComponent("RefreshLeft"),f=r.resolveComponent("FoxIcon"),d=r.resolveComponent("fox-tooltip"),S=r.resolveComponent("Download"),w=r.resolveComponent("fox-checkbox"),$=r.resolveComponent("FoxCheckboxGroup"),h=r.resolveComponent("FoxPopover");return r.openBlock(),r.createBlock(h,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",$s,[r.createElementVNode("div",Ts,[r.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=y=>e.isCheckAll=y),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),r.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),r.createElementVNode("div",Es,[r.createVNode($,{modelValue:e.checkedValue,"onUpdate:modelValue":t[16]||(t[16]=y=>e.checkedValue=y),onChange:e.handleCheckChange},{default:r.withCtx(()=>[e.leftFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",Cs,[e.isShowLeftFixedTitle?(r.openBlock(),r.createElementBlock("div",xs,r.toDisplayString(e.leftFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.leftFixedColumns,y=>(r.openBlock(),r.createElementBlock("div",{key:y.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":y.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[1]||(t[1]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[2]||(t[2]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[3]||(t[3]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[4]||(t[4]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[5]||(t[5]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.leftFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(i,{class:"checkbox-item",label:y.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(y.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",ks,[r.createVNode(d,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(f,{onClick:p=>e.toUnFixed(y.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:p=>e.toRightFixed(y.sortIndex)},{default:r.withCtx(()=>[r.createVNode(S)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Ns))),128))])):r.createCommentVNode("",!0),e.unFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",Vs,[e.isShowNotFixedTitle?(r.openBlock(),r.createElementBlock("div",Os,r.toDisplayString(e.unFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.unFixedColumns,y=>(r.openBlock(),r.createElementBlock("div",{key:y.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":y.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[6]||(t[6]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[7]||(t[7]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[8]||(t[8]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[9]||(t[9]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[10]||(t[10]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.unFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(i,{class:"checkbox-item",label:y.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(y.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Rs,[r.createVNode(d,{content:e.fixedLeftText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(f,{onClick:p=>e.toLeftFixed(y.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(f,{onClick:p=>e.toRightFixed(y.sortIndex)},{default:r.withCtx(()=>[r.createVNode(S)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Is))),128))])):r.createCommentVNode("",!0),e.rightFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",As,[e.isShowRightFixedTitle?(r.openBlock(),r.createElementBlock("div",Ds,r.toDisplayString(e.rightFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.rightFixedColumns,y=>(r.openBlock(),r.createElementBlock("div",{key:y.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":y.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[11]||(t[11]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[12]||(t[12]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[13]||(t[13]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[14]||(t[14]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[15]||(t[15]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.rightFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(w,{class:"checkbox-item",label:y.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(y.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Bs,[r.createVNode(d,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(f,{onClick:p=>e.toUnFixed(y.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:p=>e.toLeftFixed(y.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(S)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Fs))),128))])):r.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const bn=Te(vs,[["render",Ls]]);let qs=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,a,l,i,s){if(Array.isArray(o)){let c=(n-1)*a,f=c+a;f>o.length&&(f=o.length);const d=o.slice(c,f);return{totalSize:o.length,page:d}}if(typeof o=="function")return await Reflect.apply(o,null,[n,a,l,i,s]);const u=Ne(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(Fe(l)&&r.isReactive(l)&&(l=r.toRaw(l)),await Reflect.apply(u,null,[o,n,a,l,i,s]))}};function Ms(){const e=r.getCurrentInstance();return new qs(e.proxy)}class js{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const n=Ne(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=Ne(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=Ne(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function _s(){const e=r.getCurrentInstance();return new js(e.proxy)}const Ps=Symbol.for("TableStateKey");function Hs(e,t){let o=t.split("."),n=e;for(let a=0;a<o.length;a++){let l=o[a],i=0,s=l.indexOf("["),u=s==-1?-1:l.indexOf("]",s);for(;s!==-1&&u!==-1;){let c=l.substring(s+1,u);if(/^\d+$/.test(c)){let f=parseInt(c);if(i==0){let d=l.substring(0,s);n=n[d][f]}else n=n[f];i++}s=l.indexOf("[",u),u=s==-1?-1:l.indexOf("]",s)}i===0&&(n=n[l])}return n}function wn(e,t){return e.filter(n=>{for(let a in t){const l=t[a],i=Hs(n,a);if(l!==i)return!1}return!0})}const fo={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"}},ho={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}},Sn={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 zs(e,t,o){return{inheritAttrs:!1,props:{...ie,...pe,...fo,...ho,...Sn},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,a){const{locale:l}=Ce.useFoxI18n(t),{emitEvent:i}=ue({componentName:e,validateHandler:{getValue(...M){return k.value}}},n.prop??a.attrs.name),s=e,u=r.computed(()=>({[s]:!0})),c=r.computed(()=>({[`${s}__setting`]:!0})),f=r.computed(()=>({[`${s}__footer`]:!0,[`${s}__footer__${n.footerAlign}`]:!0})),d=r.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${n.paginationAlign}`]:!0})),S=r.ref(n.pageIndex);r.watch(()=>n.pageIndex,M=>{S.value=M});const w=M=>{S.value=M,i("page-index-change",M)},$=r.ref(n.pageSize);r.watch(()=>n.pageSize,M=>{$.value=M});const h=M=>{$.value=M,i("page-size-change",M)},y=r.shallowRef({}),p=r.computed(()=>({...y.value,...n.params??{},...n.baseParams??{}})),T=r.ref(0),k=r.ref(),D=Ms();let N=!0;const x=()=>Array.isArray(n.data)||typeof n.data=="function"?!0:te(n.autoLoad),I=Se(r.computed(()=>n.lazyLoad),"lazyLoad",$e.Near,M=>te(M)),V=async(M,X,Z,ee)=>{try{const ye=await D.load("table",M,X,Z,ee,N,l.value);T.value=ye.totalSize,k.value=ye.page}catch(ye){console.error("[FoxUI] Load Table Data Fail",ye),T.value=0,k.value=[]}N=!1,setTimeout(()=>{i("loaded-data")},250)};r.watch([S,$],([M,X],[Z,ee])=>{X!==ee&&(S.value=1,M=1),V(n.data,M,X,p.value)}),r.watch([()=>n.data,p],([M,X],[Z,ee])=>{x()&&(M!==Z&&(N=!0),!(!Array.isArray(M)&&Be(M,Z)&&Be(X,ee))&&V(M,S.value,$.value,X))},{deep:!0});const R=(M={},X=!1)=>new Promise(Z=>{y.value=r.toRaw(M??{}),r.triggerRef(y),X||(S.value=n.pageIndex??1),r.nextTick(async()=>{await V(n.data,S.value,$.value,p.value),Z()})}),F=()=>{T.value=0,k.value=[]};let z=!1;const P=()=>{z||(z=!0,R())};x()&&!I.value&&R();const v=r.ref(null);r.provide(Ps,{currentRow:v});const b=(M,X)=>{v.value=M,i("current-change",M,X)},E=(M,X,Z)=>{i("row-click",M,X,Z),te(n.rowClickSelectable)===!0&&_?.value.toggleRowSelection(M)},O=[],q=(M,X)=>{if(i("expand-change",M,X),te(n.uniqueExpansion))if(Array.isArray(X)&&X.length==0){const Z=O.length;O.splice(0,Z)}else{O.forEach(ee=>{ee!==M&&_?.value.toggleRowExpansion(ee,!1)});const Z=O.length;O.splice(0,Z,M)}},Y=a.attrs.id??n.prop??a.attrs.name,C=_s(),A=r.ref([]);let H=[];const B=()=>({srcColumnPropertyList:H.map(X=>({...X})),columnPropertyList:A.value}),W=M=>{A.value=[...M],U()},L=async()=>{const M=await C.load(Y);M&&(A.value=M)},U=()=>{C.save(Y,A.value)},G=()=>{C.remove(Y)};L();const j=M=>M?M.type?M.type:M.label?M.prop:"":"",K=r.computed(()=>{if(typeof a.slots.default=="function"){const M=a.slots.default(),X=new Map;if(H=[],M.forEach(Z=>{const ee=Z;if(!ee.props)return;const ye=j(ee.props);X.set(ye,Z);const se={label:"",prop:""};Object.assign(se,ee.props),H.push(se)}),A.value.length===H.length){const Z=[];for(let ee of A.value){const ye=j(ee),se=X.get(ye);if(!se)return M;if(ee.visible===!1)continue;const ze=r.cloneVNode(se);ze.props.fixed=ee.fixed,Z.push(ze)}return Z}return M}return[]}),_=r.ref();return fe({clearSelection:()=>_?.value.clearSelection(),getSelectionRows:()=>_?.value.getSelectionRows(),toggleRowSelection:(M,X)=>{_?.value.toggleRowSelection(M,X)},toggleRowSelectionByProp:(M,X)=>{if(!k.value)return;const Z=wn(k.value,M);Z.length!==0&&Z.forEach(ee=>{_?.value.toggleRowSelection(ee,X)})},toggleAllSelection:()=>{_?.value.toggleAllSelection()},toggleRowExpansion:(M,X)=>{_?.value.toggleRowExpansion(M,X)},toggleRowExpansionByProp:(M,X)=>{if(!k.value)return;const Z=wn(k.value,M);Z.length!==0&&Z.forEach(ee=>{_?.value.toggleRowExpansion(ee,X)})},setCurrentRow:M=>{_?.value.setCurrentRow(M)},setCurrentRowByProp:M=>{if(!k.value)return;const X=wn(k.value,M);X.length!==0&&_?.value.setCurrentRow(X[0])},getCurrentRow:()=>v.value,clearSort:()=>{_?.value.clearSort()},clearFilter:M=>{_?.value.clearFilter(M)},doLayout:()=>{_?.value.doLayout()},sort:(M,X)=>{_?.value.sort(M,X)},scrollTo:(M,X)=>{_?.value.scrollTo(M,X)},setScrollTop:M=>{_?.value.setScrollTop(M)},setScrollLeft:M=>{_?.value.setScrollLeft(M)},loadData:R,clearData:F,getData(){return k.value},getTotalSize(){return T.value},getPageIndex(){return S.value},getPageSize(){return $.value},getColumnSetting:B,setColumnSetting:W,removeColumnSetting:G}),()=>{const X={...a.attrs,onCurrentChange:b,onRowClick:E,onExpandChange:q,data:k.value,ref:_,class:u.value},Z={};a.slots.default&&(Z.default=()=>K.value),a.slots.append&&(Z.append=a.slots.append),a.slots.empty&&(Z.empty=a.slots.empty);const ee=[],ye=r.h(m.ElTable,X,Z);ee.push(ye);let se=null;if(typeof a.slots.pagination=="function")se=a.slots.pagination();else if(n.showPagination){const ht={class:d.value,total:T.value,pageSize:$.value,"onUpdate:pageSize":h,pageSizes:n.pageSizes,currentPage:S.value,"onUpdate:currentPage":w,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0};se=r.h(m.ElPagination,ht)}if(n.showSetting){const ht=[];se&&ht.push(se);const qc=r.h(m.ElIcon,{class:c.value},{default:()=>r.h(Ve.Setting)}),Mc=Yn(n,Sn),jc=r.h(bn,{...Mc,tableRef:{getColumnSetting:B,setColumnSetting:W,removeColumnSetting:G}},{default:()=>qc});ht.push(jc);const _c=r.h("div",{class:f.value},ht);ee.push(_c)}else se&&ee.push(se);const ze={default:()=>ee},dt={...me(n,fo,ho,Sn),prop:`${n.prop}_item`};return dt.contentClass=`${s}__wrap`,dt.errorMarkClass="is-table-error",I.value&&x()&&(dt["appear-listen"]=!0,dt.onAppear=P),r.h(o,dt,ze)}}}}const{componentName:Ks,create:Ws,scope:Ys}=Q("table-item"),go=Ws(zs(Ks,Ys,de));function Ze(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ft(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Us(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Gs=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const a=Ne(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Fe(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}};function Xs(){const e=r.getCurrentInstance();return new Gs(e.proxy)}function mo(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=Ze(e,t),a=Ze(e,o);if(n!==a)return!1;const l=ft(e,t),i=ft(e,o);return l===i}function Zs(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;let a=null;for(let l of n){let i=!1;if(o==="text")i=Ze(e,l)===t;else if(o==="item")i=mo(e,l,t);else{let s=ft(e,l);s==null&&(s=Ze(e,l)),i=s===t}if(i){a=l;break}}return a}function Js(e){return{text:e,value:e}}function Qs(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const po={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 eu(e,t,o){return{inheritAttrs:!0,props:{...ie,...pe,...po},emits:["change","update:modelValue"],setup(n,a){const l=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),u=r.ref(null),c=r.ref(null),f=(I,V,R,F=!0)=>{const z=Zs(n,I,V,R);if(z===null){if(c.value===null)return;c.value=null,u.value=null,F&&(s("update:modelValue",null),s("change",null));return}if(!mo(n,z,c.value)){u.value=I;const v=r.toRaw(z);c.value=v;let b=null;n.valueType==="text"?b=Ze(n,v):n.valueType==="item"?b=v:b=ft(n,v),F&&(s("update:modelValue",b),s("change",b))}},d=r.ref([]),S=Se(r.computed(()=>n.lazyLoad),"lazyLoad",$e.Near,I=>te(I)),w=Xs(),$=async(I,V)=>{if(I){const R=await w.load("radio",I,V);if(R.length>0)if(typeof R[0]=="string"){let P=R.map(v=>Js(v));d.value=P}else d.value=R}};r.watch([()=>n.source,()=>n.params],async([I,V])=>{$(I,V)},{immediate:!S.value});let h=!1;const y=()=>{h||(h=!0,$(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([I,V])=>{f(V,n.valueType,I,!1)});const p=e,T=r.computed(()=>({[p]:!0,[`is-${n.direction}`]:!0})),k=I=>{f(I,"value",d.value,!0)};let D=ne(n,"hintText"),N=ne(n,"hintVisible");const x=(I,V)=>{const R=[];return I.forEach((F,z)=>{const P=ft(n,F),v=Ze(n,F);let b=Us(n,F);l.value===!0&&(b=l.value),i.value===!0&&(b=i.value);const E=Qs(n,F,z)??{},O=`${P}_${z}`,q={...E,key:O,label:P,disabled:b,size:n.size,border:te(n.border)};n.itemType==="button"?R.push(r.h(m.ElRadioButton,q,{default:()=>[v]})):typeof V=="function"?R.push(r.h(m.ElRadio,q,{default:()=>V(F)})):R.push(r.h(m.ElRadio,q,{default:()=>[v]}))}),R};return()=>{const V={...a.attrs,class:T.value,disabled:l.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:k},R=[],F={};a.slots.options?F.default=a.slots.options:F.default=()=>x(d.value,a.slots.text);const z=r.h(m.ElRadioGroup,V,F);R.push(z);const P={default:()=>R};a.slots.default&&(P.label=a.slots.default),a.slots.fixedTip&&(P.fixedTip=a.slots.fixedTip);const b={...me(n,po),hintText:D.value,hintVisible:N.value,prop:`${n.prop??a.attrs.name}_item`};return S.value&&(b["appear-listen"]=!0,b.onAppear=y),r.h(o,b,P)}}}}const{componentName:tu,create:nu,scope:ru}=Q("radio-item"),yo=nu(eu(tu,ru,de));function Je(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Qe(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function ou(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}class au{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const a=Ne(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Fe(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}}function lu(){const e=r.getCurrentInstance();return new au(e.proxy)}function bo(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=Je(e,t),a=Je(e,o);if(n!==a)return!1;const l=Qe(e,t),i=Qe(e,o);return l===i}function iu(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];return t.forEach(l=>{for(let i of n){let s=!1;if(o==="text")s=Je(e,i)===l;else if(o==="item")s=bo(e,i,l);else{let u=Qe(e,i);u==null&&(u=Je(e,i)),s=u===l}if(s){a.push(i);break}}}),a}function su(e){return{text:e,value:e}}function uu(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const wo={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 cu(e,t,o){return{inheritAttrs:!1,props:{...ie,...pe,...wo},emits:["change","update:modelValue"],setup(n,a){const l=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),u=r.ref([]),c=r.ref([]),f=(I,V,R,F=!0)=>{const z=iu(n,I,V,R);if(z===null){if(c.value===null||c.value.length===0)return;u.value=[],c.value=[],F&&(s("update:modelValue",[]),s("change",[]));return}let P=!0;if(z.length!==c.value.length)P=!1;else for(let v=0;v<z.length;v++){const b=z[v],E=c.value[v];if(!bo(n,b,E)){P=!1;break}}if(!P){c.value=z;let v=[],b=[];z.forEach(O=>{v.push(Qe(n,O)),n.valueType==="text"?b.push(Je(n,O)):n.valueType==="item"?b.push(O):b.push(Qe(n,O))}),u.value=v;const E=r.toRaw(b);F&&(s("update:modelValue",E),s("change",E))}},d=r.ref([]),S=Se(r.computed(()=>n.lazyLoad),"lazyLoad",$e.Near,I=>te(I)),w=lu(),$=async(I,V)=>{if(I){const R=await w.load("checkbox",I,V);if(R.length>0)if(typeof R[0]=="string"){let P=R.map(v=>su(v));d.value=P}else d.value=R}};r.watch([()=>n.source,()=>n.params],async([I,V])=>{$(I,V)},{immediate:!S.value});let h=!1;const y=()=>{h||(h=!0,$(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([I,V])=>{f(V,n.valueType,I,!1)});const p=e,T=r.computed(()=>({[p]:!0,[`is-${n.direction}`]:!0})),k=I=>{f(I,"value",d.value,!0)};let D=ne(n,"hintText"),N=ne(n,"hintVisible");const x=(I,V)=>{const R=[];return I.forEach((F,z)=>{const P=Qe(n,F),v=Je(n,F);let b=ou(n,F);l.value===!0&&(b=l.value),i.value===!0&&(b=i.value);const E=uu(n,F,z)??{},O=`${P}_${z}`,q={...E,key:O,class:n.itemClass,label:P,disabled:b,size:n.size,border:te(n.border)};n.itemType==="button"?R.push(r.h(m.ElCheckboxButton,q,{default:()=>[v]})):typeof V=="function"?R.push(r.h(m.ElCheckbox,q,{default:()=>V(F)})):R.push(r.h(m.ElCheckbox,q,{default:()=>[v]}))}),R};return()=>{const V={...a.attrs,class:T.value,disabled:l.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:ge(n.max),min:ge(n.min),onChange:k},R=[],F={};a.slots.options?F.default=a.slots.options:F.default=()=>x(d.value,a.slots.text);const z=r.h(m.ElCheckboxGroup,V,F);R.push(z);const P={default:()=>R};a.slots.default&&(P.label=a.slots.default),a.slots.fixedTip&&(P.fixedTip=a.slots.fixedTip);const b={...me(n,wo),hintText:D.value,hintVisible:N.value,prop:`${n.prop??a.attrs.name}_item`};return S.value&&(b["appear-listen"]=!0,b.onAppear=y),r.h(o,b,P)}}}}const{componentName:fu,create:du,scope:hu}=Q("checkbox-item"),So=du(cu(fu,hu,de)),vo={modelValue:{type:[Number,String],required:!1}};function gu(e,t,o){return{props:{...ie,...pe,...vo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),u=ne(n,"modelValue",h=>ge(h)),c=e,f=r.computed(()=>({[c]:!0})),d=h=>{s("update:modelValue",h),s("change",h)};let S=ne(n,"hintText"),w=r.ref(!1);const $=r.ref();return fe({}),()=>{const y={...a.attrs,ref:$,class:f.value,readonly:i.value||l.value,modelValue:u.value,onChange:d},p={},T=[],k=r.h(m.ElRate,y,p);T.push(k);const D={default:()=>T};a.slots.default&&(D.label=a.slots.default),a.slots.fixedTip&&(D.fixedTip=a.slots.fixedTip);const x={...me(n,vo),hintText:S.value,hintVisible:w.value,prop:`${n.prop}_item`};return r.h(o,x,D)}}}}const{componentName:mu,create:pu,scope:yu}=Q("rate-item"),$o=pu(gu(mu,yu,de)),To={modelValue:{type:[Boolean,String,Number],required:!1}};function bu(e,t,o){return{props:{...ie,...pe,...To},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),u=ne(n,"modelValue"),c=e,f=r.computed(()=>({[c]:!0})),d=h=>{s("update:modelValue",h),s("change",h)};let S=ne(n,"hintText"),w=ne(n,"hintVisible");const $=r.ref();return fe({}),()=>{const y={...a.attrs,ref:$,class:f.value,readonly:i.value,disabled:l.value,modelValue:u.value,onChange:d},p={},T=[],k=r.h(m.ElSwitch,y,p);T.push(k);const D={default:()=>T};a.slots.default&&(D.label=a.slots.default),a.slots.fixedTip&&(D.fixedTip=a.slots.fixedTip);const x={...me(n,To),hintText:S.value,hintVisible:w.value,prop:`${n.prop}_item`};return r.h(o,x,D)}}}}const{componentName:wu,create:Su,scope:vu}=Q("switch-item"),Eo=Su(bu(wu,vu,de)),Co={modelValue:{type:[String,Number,Boolean],required:!1}};function $u(e,t,o){return{props:{...ie,...pe,...Co},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),s=r.ref(!1),{emitEvent:u}=ue({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),c=ne(n,"modelValue"),f=e,d=r.computed(()=>({[f]:!0})),S=N=>{u("update:modelValue",N),u("change",N)};let w=ne(n,"hintText"),$=r.ref(!1);const h=N=>{let I=N.target.value;s.value=!0,ae(w.value)||($.value=!0),u("focus",I,N)},y=N=>{setTimeout(()=>{$.value&&($.value=!1),s.value=!1},0);let I=N.target.value;n.maxLength&&I.length>Number(n.maxLength)&&(I=I.slice(0,Number(n.maxLength))),T.value||u("blur",I,N)},p=()=>{u("clear","")},T=r.ref(!1),k=N=>{T.value=N,u("visible-change",N),N||u("selected")},D=r.ref();return fe({focus:()=>{D?.value.focus()},blur:()=>{D?.value.blur()}}),()=>{const x={...a.attrs,ref:D,class:d.value,disabled:l.value||i.value,modelValue:c.value,"onUpdate:modelValue":S,onClear:p,onFocus:h,onBlur:y,onVisibleChange:k},I={};a.slots.option&&(I.default=a.slots.option);const V=[],R=r.h(m.ElTreeSelect,x,I);V.push(R);const F={default:()=>V};a.slots.default&&(F.label=a.slots.default),a.slots.fixedTip&&(F.fixedTip=a.slots.fixedTip);const P={...me(n,Co),hintText:w.value,hintVisible:$.value,prop:`${n.prop}_item`};return r.h(o,P,F)}}}}const{componentName:Tu,create:Eu,scope:Cu}=Q("tree-select-item"),xo=Eu($u(Tu,Cu,de)),xu=Symbol.for("InnerPageScopeKey"),Nu=Symbol.for("PageWrapperKey");function ku(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(o,n){r.provide(xu,!0);const a={};r.provide(Nu,a);const l=u=>{typeof a.beforeClose=="function"&&a.beforeClose()},i=r.ref(!0),s=u=>{i.value=u};return()=>{const c={...n.attrs,title:o.title,draggable:o.draggable,modelValue:i.value,"onUpdate:modelValue":s,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":l},f={};if(typeof n.slots.default=="function"){const d=n.slots.default();f.default=()=>d}return r.h(m.ElDialog,c,f)}}}}const{componentName:rf,create:Vu,scope:of}=Q("dialog-item"),No=Vu(ku());function Ou(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(o,{slots:n}){const a=e,l=r.computed(()=>({[a]:!0})),i=r.computed(()=>o.icon?{[`${a}__icon`]:!0,[`${a}__icon-${o.type}`]:!0}:{[`${a}__mark`]:!0,[`${a}__mark-${o.type}`]:!0}),s=r.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),u=r.computed(()=>{const f={[`${a}__text`]:!0,[`${a}__text-${o.type}`]:!0};return o.textPosition==="left"?f["is-left"]=!0:f["is-right"]=!0,f}),c=r.computed(()=>o.color?{color:o.color}:null);return()=>{let f=null;if(n.mark)f=n.mark()[0];else{const h={class:i.value,style:s.value};f=r.h(o.icon??"div",h)}const d={class:u.value,style:c.value},S=n.default?n.default():[],w=r.h("div",d,S),$={class:l.value};return o.textPosition==="right"?r.h("div",$,[f,w]):r.h("div",$,[w,f])}}}}const{componentName:Iu,create:Ru,scope:af}=Q("indicator"),ko=Ru(Ou(Iu));function Au(e,t){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const n=o.getBoundingClientRect().width;if(n>0){t(n);return}e.classList.add("is-selectable"),setTimeout(()=>{o.setStart(e,0),o.setEnd(e,e.childNodes.length);const a=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(a)},500)}const Du={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 Fu(e,t){return{props:{...Du},setup(o,n){const a=r.ref(!0),l=r.ref(null),i=r.computed(()=>{const f={[`${e}`]:!0,"is-truncated":o.truncated};return typeof o.class=="string"&&o.class.length>0&&o.class.split(/\s+/).forEach(S=>{f[S]=!0}),o.type&&(f[`${e}__${o.type}`]=!0),o.size&&(f[`${e}__${o.size}`]=!0),f}),s=f=>{if(f&&te(o.showOverflowTooltip)){const d=f.clientWidth;Au(f,S=>{a.value=S<=d})}};let u=null;r.onMounted(()=>{if(!te(o.showOverflowTooltip))return;const f=l.value;s(f),f&&window.ResizeObserver&&(u=new window.ResizeObserver(()=>{s(f)}),u.observe(f))}),r.onUnmounted(()=>{u?.disconnect()});const c=(f,d)=>{let S=null;if(typeof o.highlightFilter=="string"&&o.highlightFilter.length>0){const w=o.highlightFilter;if(f.indexOf(w)!==-1){const h=f.replace(new RegExp(w,"g"),`<span>${w}</span>`);d.innerHTML=h,d.class["is-highlight"]=!0,S=r.h(o.tag,d)}}else if(typeof o.highlightFilter=="function"){const w=o.highlightFilter(f);w&&(d.innerHTML=w,d.class["is-highlight"]=!0,S=r.h(o.tag,d))}return S};return()=>{const f={},d={...n.attrs,class:{...i.value},ref:l};if(te(o.numberFormat)&&typeof n.slots.default=="function"){const h=n.slots.default();if(Array.isArray(h)&&h.length===1){const y=h[0].type.toString();if(y==="Symbol(Text)"||y==="Symbol(v-txt)"){const p=ge(o.digits),T=ge(o.decimalLength),k=te(o.autoPadding);let D=`${h[0].children}`,N=D.split("").reverse().join("");N=pt(N,T,k,p,o.separator),D=N.split("").reverse().join("");let x=null;o.highlightFilter!==void 0&&(x=c(D,d)),x||(d.innerHTML=D,x=r.h(o.tag,d)),f.default=()=>x}}}else{let h=null;if(o.highlightFilter!==void 0&&typeof n.slots.default=="function"){const y=n.slots.default();if(Array.isArray(y)&&y.length===1){const p=y[0].type.toString();if(p==="Symbol(Text)"||p==="Symbol(v-txt)"){const T=`${y[0].children}`;h=c(T,d),h||(d.innerHTML=T,h=r.h(o.tag,d))}}}h||(h=r.h(o.tag,d,{default:n.slots.default})),f.default=()=>h}const w={disabled:a.value};return f.content=n.slots.default,r.h(m.ElTooltip,w,f)}}}}const{componentName:Bu,create:Lu,scope:lf}=Q("text"),Vo=Lu(Fu(Bu)),qu={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:Ve.ArrowUp}};function Mu(e,t,o){return{props:{...qu},emits:["click","update:modelValue"],setup(n,{emit:a}){const l=r.computed(()=>{const d={[`${e}`]:!0};return n.disabled?d[`${e}__disabled`]=!0:d[`${e}__${n.type}`]=!0,d}),i=ne(n,"modelValue"),s=r.computed(()=>i.value?n.expandText??"":n.collapseText??""),u=r.computed(()=>({[`${e}__text`]:!0})),c=r.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),f=()=>{a("update:modelValue",!i.value)};return()=>{const d=[];if(s.value){const h={class:u.value},y=r.h("span",h,[s.value]);d.push(y)}const S={class:c.value},w=o(n.icon,S);return w&&d.push(w),r.h("div",{class:l.value,onClick:f},d)}}}}const{componentName:ju,create:_u,scope:Pu}=Q("more-button"),Oo=_u(Mu(ju,Pu,(e,t)=>(e=e??Ve.ArrowUp,r.h(m.ElIcon,t,{default:()=>[r.h(e)]})))),{componentName:Hu,create:zu,scope:uf}=Q("tour"),Ku=zu({components:{Close:Ve.Close,ElPopover:m.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 o=Hu,n=r.reactive({showTour:e.modelValue,showPopup:!1,active:0}),a=r.ref({}),l=r.computed(()=>`${o}`),i=r.computed(()=>{const{offset:$,maskWidth:h,maskHeight:y}=e,{width:p,height:T,left:k,top:D}=a.value,N=e.steps[n.active].offset??$,x=[k+p/2,D+T/2],I=Number(h||p),V=Number(y||T);return{width:`${I+ +N.left+N.right}px`,height:`${V+N.top+N.bottom}px`,top:`${x[1]-V/2-+N.top}px`,left:`${x[0]-I/2-+N.left}px`}}),s=$=>{$=="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=$=>$.popoverWidth??e.width,c=$=>$.location??e.location,f=()=>{const $=document.querySelector(`${e.steps[n.active].target}`),h=hn($);a.value={x:h.left,y:h.top,top:h.top,left:h.left,width:h.width,height:h.height}},d=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},S=()=>{e.closeOnClickOverlay&&d()},w=($,h=0)=>{$&&f(),e.steps,n.active=h,n.showTour=$,n.showPopup=$};return r.onMounted(()=>{w(e.modelValue,e.current)}),r.watch(()=>e.modelValue,$=>{w($)}),{...r.toRefs(n),classes:l,maskStyle:i,changeStep:s,popoverWidth:u,popoverLocation:c,close:d,handleClickMask:S}}}),Wu={key:0,class:"fox-tour__content"},Yu={key:0,class:"fox-tour__content-top"},Uu={class:"fox-tour__content-inner"},Gu={class:"fox-tour__content-bottom"},Xu={class:"fox-tour__content-bottom-init"},Zu={class:"fox-tour__content-bottom-operate"},Ju={key:1,class:"fox-tour__content fox-tour__content-tile"},Qu={class:"fox-tour__content-inner"};function ec(e,t,o,n,a,l){const i=r.resolveComponent("Close"),s=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",Wu,[e.showTitleBar?(r.openBlock(),r.createElementBlock("div",Yu,[r.createElementVNode("div",{onClick:t[1]||(t[1]=(...d)=>e.close&&e.close(...d))},[r.createVNode(i,{class:"fox-tour__content-top-close"})])])):r.createCommentVNode("",!0),r.createElementVNode("div",Uu,r.toDisplayString(c.content),1),r.createElementVNode("div",Gu,[r.createElementVNode("div",Xu,r.toDisplayString(e.active+1)+"/"+r.toDisplayString(e.steps.length),1),r.createElementVNode("div",Zu,[r.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(r.openBlock(),r.createBlock(s,{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(s,{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(s,{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",Ju,[r.createElementVNode("div",Qu,r.toDisplayString(c.content),1)])):r.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):r.createCommentVNode("",!0)]))),128))],2)}const Io=Te(Ku,[["render",ec]]);function vn(e){let t=e.offsetHeight;if(t<=0){const o=e.cloneNode(!0),n=e.offsetWidth;o.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),t=o.offsetHeight,document.body.removeChild(o)}return t}const Ee=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,De=e=>e==null,Ro=10;function tc(e,t){return e>t&&e>Ro?"horizontal":t>e&&t>Ro?"vertical":""}function nc(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},t=()=>e.direction==="vertical",o=()=>e.direction==="horizontal",n=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const s=i.touches[0];e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY}else e.deltaX=i.clientX-e.startX,e.deltaY=i.clientY-e.startY,e.moveX=i.clientX,e.moveY=i.clientY;e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=tc(e.offsetX,e.offsetY))},start:i=>{if(n(),i.touches){const s=i.touches[0];e.startX=s.clientX,e.startY=s.clientY}else e.startX=i.clientX,e.startY=i.clientY;e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:o,state:e}}function rc(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function oc(e){e.stopPropagation()}function ac(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&oc(e)}class lc{startMove;updateMove;isTouch=!1;el=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,o){this.startMove=t,this.updateMove=o,this.isTouch=rc()}open(t){this.el=t;const o=nc(),n=(a,l,i,s,u)=>{this.updateMove({x:l,y:i})};this.touchstart=a=>{this.moving||(o.start(a),this.startMove({x:o.state.startX,y:o.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=a=>{this.moving&&(o.move(a),o.isHorizontal()&&ac(a,!0),n(t,o.state.deltaX,o.state.deltaY))},this.touchend=()=>{n(t,o.state.deltaX,o.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),o.reset(),this.moving=!1},t.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const t=this.el;this.touchstart&&t.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.el=null}}function ic(e,t){return new lc(e,t)}var Ao;const $n=typeof window<"u";$n&&((Ao=window?.navigator)!=null&&Ao.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let et=[];const Do=e=>{const t=e;t.key==="Escape"&&et.forEach(o=>o(t))},sc=e=>{r.onMounted(()=>{et.length===0&&document.addEventListener("keydown",Do),$n&&et.push(e)}),r.onBeforeUnmount(()=>{et=et.filter(t=>t!==e),et.length===0&&$n&&document.removeEventListener("keydown",Do)})},Tn="fox-focus-trap.focus-after-trapped",En="fox-focus-trap.focus-after-released",uc="fox-focus-trap.focusout-prevented",Fo={cancelable:!0,bubbles:!1},cc={cancelable:!0,bubbles:!1},Bo="foxFocusAfterTrapped",Lo="foxFocusAfterReleased",fc=Symbol("foxFocusTrap"),Cn=r.ref(),Lt=r.ref(0),xn=r.ref(0);let qt=0;const qo=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},dc=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},Mo=(e,t)=>{for(const o of e)if(!dc(o,t))return o},hc=e=>{const t=qo(e),o=Mo(t,e),n=Mo(t.reverse(),e);return[o,n]},gc=e=>e instanceof HTMLInputElement&&"select"in e,qe=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),xn.value=window.performance.now(),e!==o&&gc(e)&&t&&e.select()}};function jo(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const mc=()=>{let e=[];return{push:n=>{const a=e[0];a&&n!==a&&a.pause(),e=jo(e,n),e.unshift(n)},remove:n=>{e=jo(e,n),e[0]?.resume?.()}}},pc=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(qe(n,t),document.activeElement!==o)return},_o=mc(),yc=()=>Lt.value>xn.value,Mt=()=>{Cn.value="pointer",Lt.value=window.performance.now()},Po=()=>{Cn.value="keyboard",Lt.value=window.performance.now()},bc=()=>(r.onMounted(()=>{qt===0&&(document.addEventListener("mousedown",Mt),document.addEventListener("touchstart",Mt),document.addEventListener("keydown",Po)),qt++}),r.onBeforeUnmount(()=>{qt--,qt<=0&&(document.removeEventListener("mousedown",Mt),document.removeEventListener("touchstart",Mt),document.removeEventListener("keydown",Po))}),{focusReason:Cn,lastUserFocusTimestamp:Lt,lastAutomatedFocusTimestamp:xn}),jt=e=>new CustomEvent(uc,{...cc,detail:e}),{componentName:cf,create:wc,scope:ff}=Q("focus-trap"),Sc=wc({props:{loop:{type:[Boolean]},trapped:{type:[Boolean],required:!0},focusTrapEl:{type:Object},focusStartEl:{type:[Object,String],default:"first"}},emits:[Bo,Lo,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=r.ref();let a,l;const{focusReason:i}=bc();sc(h=>{e.trapped&&!s.paused&&o("release-requested",h)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=h=>{if(!e.loop&&!e.trapped||s.paused)return;const{key:y,altKey:p,ctrlKey:T,metaKey:k,currentTarget:D,shiftKey:N}=h,{loop:x}=e,I=y==="Tab"&&!p&&!T&&!k,V=document.activeElement;if(I&&V){const R=D,[F,z]=hc(R);if(F&&z){if(!N&&V===z){const v=jt({focusReason:i.value});o("focusout-prevented",v),v.defaultPrevented||(h.preventDefault(),x&&qe(F,!0))}else if(N&&[F,R].includes(V)){const v=jt({focusReason:i.value});o("focusout-prevented",v),v.defaultPrevented||(h.preventDefault(),x&&qe(z,!0))}}else if(V===R){const v=jt({focusReason:i.value});o("focusout-prevented",v),v.defaultPrevented||h.preventDefault()}}};r.provide(fc,{focusTrapRef:n,onKeydown:u}),r.watch(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),r.watch([n],([h],[y])=>{h&&(h.addEventListener("keydown",u),h.addEventListener("focusin",d),h.addEventListener("focusout",S)),y&&(y.removeEventListener("keydown",u),y.removeEventListener("focusin",d),y.removeEventListener("focusout",S))});const c=h=>{o(Bo,h)},f=h=>o(Lo,h),d=h=>{const y=r.unref(n);if(!y)return;const p=h.target,T=h.relatedTarget,k=p&&y.contains(p);e.trapped||T&&y.contains(T)||(a=T),k&&o("focusin",h),!s.paused&&e.trapped&&(k?l=p:qe(l,!0))},S=h=>{const y=r.unref(n);if(!(s.paused||!y))if(e.trapped){const p=h.relatedTarget;!en(p)&&!y.contains(p)&&setTimeout(()=>{if(!s.paused&&e.trapped){const T=jt({focusReason:i.value});o("focusout-prevented",T),T.defaultPrevented||qe(l,!0)}},0)}else{const p=h.target;p&&y.contains(p)||o("focusout",h)}};async function w(){await r.nextTick();const h=r.unref(n);if(h){_o.push(s);const y=h.contains(document.activeElement)?a:document.activeElement;if(a=y,!h.contains(y)){const T=new Event(Tn,Fo);h.addEventListener(Tn,c),h.dispatchEvent(T),T.defaultPrevented||r.nextTick(()=>{let k=e.focusStartEl;Fn(k)||(qe(k),document.activeElement!==k&&(k="first")),k==="first"&&pc(qo(h),!0),(document.activeElement===y||k==="container")&&qe(h)})}}}function $(){const h=r.unref(n);if(h){h.removeEventListener(Tn,c);const y=new CustomEvent(En,{...Fo,detail:{focusReason:i.value}});h.addEventListener(En,f),h.dispatchEvent(y),!y.defaultPrevented&&(i.value=="keyboard"||!yc())&&qe(a??document.body,!0),h.removeEventListener(En,c),_o.remove(s)}}return r.onMounted(()=>{e.trapped&&w(),r.watch(()=>e.trapped,h=>{h?w():$()})}),r.onBeforeUnmount(()=>{e.trapped&&$()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:vc,create:$c,scope:hf}=Q("floating-window"),Tc=Symbol.for("InnerPageScopeKey"),Ec=Symbol.for("PageWrapperKey"),Cc={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},appendToBody:{type:[Boolean],required:!1,default:!0},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"展开"},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[Number,String],requried:!1},collapseWidth:{type:[Number,String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0}},xc=$c({components:{FoxIcon:m.ElIcon,FocusTrap:Sc},props:{...Cc},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=vc,n=r.ref(e.modelValue);r.watch(()=>e.modelValue,O=>{n.value=O});const a=r.ref(e.left),l=r.ref(e.top),i=r.ref(e.right),s=r.ref(e.bottom),u=r.computed(()=>{const O={};return De(a.value)||(O.left=Ee(a.value)),De(l.value)||(O.top=Ee(l.value)),De(i.value)||(O.right=Ee(i.value)),De(s.value)||(O.bottom=Ee(s.valu)),De(e.zIndex)||(O["z-index"]=Ee(e.zIndex)),De(T.value)||(O.height=T.value),De(k.value)||(O.width=k.value),O}),c=r.computed(()=>e.closeIcon??Ve.Close);r.provide(Tc,!0);const f={};r.provide(Ec,f);const d=()=>{typeof f.beforeClose=="function"?f.beforeClose(()=>{n.value=!1}):n.value=!1},S=r.computed(()=>e.collapseIcon??Ve.ArrowUp),w=r.computed(()=>D.value?e.expandText??"":e.collapseText??""),$=r.computed(()=>({[`${o}__collapse-text`]:!0})),h=r.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!D.value,"is-collapse":D.value})),y=r.ref(),p=r.ref(),T=r.computed(()=>N.value||Ee(e.height)||""),k=r.computed(()=>x.value||Ee(e.width)||""),D=r.ref(!1),N=r.ref(""),x=r.ref(""),I=r.ref(!1);let V=-1;const R=(O,q=!0)=>{const Y=y.value;if(Y&&D.value!==O){if(V=V===-1?vn(Y):V,I.value=!0,q)if(Y.style["will-change"]="height",Y.ontransitionend=function(){Y.ontransitionend=null,this.style["will-change"]="auto",O||(N.value="",I.value=!1)},O){let C=0;e.collapseHeight?C=e.collapseHeight:p.value&&p.value.classList.contains(`${o}__header`)&&(C=vn(p.value)),N.value=`${V}px`,r.nextTick(()=>{N.value=`${C}px`,x.value=De(e.collapseWidth)?"":Ee(e.collapseWidth)})}else N.value=`${V}px`,x.value="";else if(O){let C=0;e.collapseHeight?C=e.collapseHeight:p.value&&p.value.classList.contains(`${o}__header`)&&(C=vn(p.value)),N.value=`${C}px`,x.value=De(e.collapseWidth)?"":Ee(e.collapseWidth)}else I.value=!1,N.value=`${V}px`,x.value="";D.value=O,t("update:collapse",O)}};r.watch(()=>e.collapse,O=>{R(O)});const F=()=>{z()},z=O=>{O=O??!D.value,R(O)},P={x:0,y:0},E=ic(O=>{if(!y.value)return;const q=y.value;a.value=q.offsetLeft,l.value=q.offsetTop,P.x=a.value,P.y=l.value,i.value=null,s.value=null},O=>{if(!y.value)return;const q=y.value;a.value=P.x+O.x,l.value=P.y+O.y,i.value=null,s.value=null,q.style.left=Ee(a.value),q.style.top=Ee(l.value)});return r.onMounted(()=>{e.draggable&&p.value&&y.value&&E.open(p.value),e.collapse===!0&&R(e.collapse,!1)}),r.onBeforeUnmount(()=>{e.draggable&&p.value&&E.close()}),{styles:u,visible:n,closeIcon:c,onClose:d,dialogRef:y,headerRef:p,onClickToggle:F,collapseIcon:S,currentCollapseText:w,collapseTextClasses:$,collapseIconClasses:h}}}),Nc={ref:"headerRef",class:"fox-floating-window__header"},kc={class:"fox-floating-window__title"},Vc={class:"fox-floating-window__tools"},Oc={class:"fox-floating-window__body"};function Ic(e,t,o,n,a,l){const i=r.resolveComponent("FoxIcon"),s=r.resolveComponent("FocusTrap");return r.openBlock(),r.createBlock(r.Teleport,{to:"body",disabled:!e.appendToBody},[r.createVNode(r.Transition,{name:"dialog-fade"},{default:r.withCtx(()=>[r.createVNode(s,{loop:!0,trapped:e.visible,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",{ref:"dialogRef",class:"fox-floating-window",style:r.normalizeStyle(e.styles),tabindex:"-1"},[r.createElementVNode("div",Nc,[r.renderSlot(e.$slots,"header",{},()=>[r.createElementVNode("span",kc,r.toDisplayString(e.title),1),r.createElementVNode("div",Vc,[e.showCollapse?(r.openBlock(),r.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[r.createElementVNode("span",{class:r.normalizeClass(e.collapseTextClasses)},r.toDisplayString(e.currentCollapseText),3),r.createVNode(i,{class:r.normalizeClass(e.collapseIconClasses)},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):r.createCommentVNode("",!0),e.showClose?(r.openBlock(),r.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):r.createCommentVNode("",!0)])])],512),r.createElementVNode("div",Oc,[r.renderSlot(e.$slots,"default")])],4),[[r.vShow,e.visible]])]),_:3},8,["trapped","focus-trap-el"])]),_:3})],8,["disabled"])}const Ho=Te(xc,[["render",Ic]]);function Rc(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return nr(o.name,o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:gf,create:Ac,scope:mf}=Q("domain-provider"),zo=Ac(Rc()),Ko=10;function Dc(e,t){return e>t&&e>Ko?"horizontal":t>e&&t>Ko?"vertical":""}function Fc(){const e=r.ref(0),t=r.ref(0),o=r.ref(0),n=r.ref(0),a=r.ref(0),l=r.ref(0),i=r.ref(0),s=r.ref(0),u=r.ref(0),c=r.ref(0),f=r.ref(""),d=()=>f.value==="vertical",S=()=>f.value==="horizontal",w=()=>{i.value=0,s.value=0,u.value=0,c.value=0,f.value="",o.value=0};return{move:y=>{const p=y.touches[0];i.value=p.clientX-e.value,s.value=p.clientY-t.value,a.value=p.clientX,l.value=p.clientY,u.value=Math.abs(i.value),c.value=Math.abs(s.value),n.value=Date.now()-o.value,f.value||(f.value=Dc(u.value,c.value))},start:y=>{w(),e.value=y.touches[0].clientX,t.value=y.touches[0].clientY,o.value=Date.now()},reset:w,startX:e,startY:t,startTime:o,duration:n,moveX:a,moveY:l,deltaX:i,deltaY:s,offsetX:u,offsetY:c,direction:f,isVertical:d,isHorizontal:S}}const Bc=[fr,dr,hr,gr,yr,de,Tr,Er,Dt,xr,Ir,Hr,Kr,Yr,Qr,to,oo,lo,so,co,bn,go,yo,So,$o,Eo,xo,No,Bt,gn,ko,Vo,Oo,Io,Ho,zo],Lc=new Aa(Bc,[Ba],"4.0.0");Object.defineProperty(g,"FoxAffix",{enumerable:!0,get:()=>m.ElAffix}),Object.defineProperty(g,"FoxAlert",{enumerable:!0,get:()=>m.ElAlert}),Object.defineProperty(g,"FoxAside",{enumerable:!0,get:()=>m.ElAside}),Object.defineProperty(g,"FoxAutoResizer",{enumerable:!0,get:()=>m.ElAutoResizer}),Object.defineProperty(g,"FoxAutocomplete",{enumerable:!0,get:()=>m.ElAutocomplete}),Object.defineProperty(g,"FoxAvatar",{enumerable:!0,get:()=>m.ElAvatar}),Object.defineProperty(g,"FoxBacktop",{enumerable:!0,get:()=>m.ElBacktop}),Object.defineProperty(g,"FoxBadge",{enumerable:!0,get:()=>m.ElBadge}),Object.defineProperty(g,"FoxBreadcrumb",{enumerable:!0,get:()=>m.ElBreadcrumb}),Object.defineProperty(g,"FoxBreadcrumbItem",{enumerable:!0,get:()=>m.ElBreadcrumbItem}),Object.defineProperty(g,"FoxButton",{enumerable:!0,get:()=>m.ElButton}),Object.defineProperty(g,"FoxButtonGroup",{enumerable:!0,get:()=>m.ElButtonGroup}),Object.defineProperty(g,"FoxCalendar",{enumerable:!0,get:()=>m.ElCalendar}),Object.defineProperty(g,"FoxCard",{enumerable:!0,get:()=>m.ElCard}),Object.defineProperty(g,"FoxCarousel",{enumerable:!0,get:()=>m.ElCarousel}),Object.defineProperty(g,"FoxCarouselItem",{enumerable:!0,get:()=>m.ElCarouselItem}),Object.defineProperty(g,"FoxCascader",{enumerable:!0,get:()=>m.ElCascader}),Object.defineProperty(g,"FoxCascaderPanel",{enumerable:!0,get:()=>m.ElCascaderPanel}),Object.defineProperty(g,"FoxCheckTag",{enumerable:!0,get:()=>m.ElCheckTag}),Object.defineProperty(g,"FoxCheckbox",{enumerable:!0,get:()=>m.ElCheckbox}),Object.defineProperty(g,"FoxCheckboxButton",{enumerable:!0,get:()=>m.ElCheckboxButton}),Object.defineProperty(g,"FoxCheckboxGroup",{enumerable:!0,get:()=>m.ElCheckboxGroup}),Object.defineProperty(g,"FoxCol",{enumerable:!0,get:()=>m.ElCol}),Object.defineProperty(g,"FoxCollapse",{enumerable:!0,get:()=>m.ElCollapse}),Object.defineProperty(g,"FoxCollapseItem",{enumerable:!0,get:()=>m.ElCollapseItem}),Object.defineProperty(g,"FoxCollapseTransition",{enumerable:!0,get:()=>m.ElCollapseTransition}),Object.defineProperty(g,"FoxColorPicker",{enumerable:!0,get:()=>m.ElColorPicker}),Object.defineProperty(g,"FoxConfigProvider",{enumerable:!0,get:()=>m.ElConfigProvider}),Object.defineProperty(g,"FoxContainer",{enumerable:!0,get:()=>m.ElContainer}),Object.defineProperty(g,"FoxDatePicker",{enumerable:!0,get:()=>m.ElDatePicker}),Object.defineProperty(g,"FoxDescriptions",{enumerable:!0,get:()=>m.ElDescriptions}),Object.defineProperty(g,"FoxDescriptionsItem",{enumerable:!0,get:()=>m.ElDescriptionsItem}),Object.defineProperty(g,"FoxDialog",{enumerable:!0,get:()=>m.ElDialog}),Object.defineProperty(g,"FoxDivider",{enumerable:!0,get:()=>m.ElDivider}),Object.defineProperty(g,"FoxDrawer",{enumerable:!0,get:()=>m.ElDrawer}),Object.defineProperty(g,"FoxDropdown",{enumerable:!0,get:()=>m.ElDropdown}),Object.defineProperty(g,"FoxDropdownItem",{enumerable:!0,get:()=>m.ElDropdownItem}),Object.defineProperty(g,"FoxDropdownMenu",{enumerable:!0,get:()=>m.ElDropdownMenu}),Object.defineProperty(g,"FoxEmpty",{enumerable:!0,get:()=>m.ElEmpty}),Object.defineProperty(g,"FoxFooter",{enumerable:!0,get:()=>m.ElFooter}),Object.defineProperty(g,"FoxForm",{enumerable:!0,get:()=>m.ElForm}),Object.defineProperty(g,"FoxFormItem",{enumerable:!0,get:()=>m.ElFormItem}),Object.defineProperty(g,"FoxHeader",{enumerable:!0,get:()=>m.ElHeader}),Object.defineProperty(g,"FoxIcon",{enumerable:!0,get:()=>m.ElIcon}),Object.defineProperty(g,"FoxImage",{enumerable:!0,get:()=>m.ElImage}),Object.defineProperty(g,"FoxImageViewer",{enumerable:!0,get:()=>m.ElImageViewer}),Object.defineProperty(g,"FoxInput",{enumerable:!0,get:()=>m.ElInput}),Object.defineProperty(g,"FoxInputNumber",{enumerable:!0,get:()=>m.ElInputNumber}),Object.defineProperty(g,"FoxLink",{enumerable:!0,get:()=>m.ElLink}),Object.defineProperty(g,"FoxMain",{enumerable:!0,get:()=>m.ElMain}),Object.defineProperty(g,"FoxMenu",{enumerable:!0,get:()=>m.ElMenu}),Object.defineProperty(g,"FoxMenuItem",{enumerable:!0,get:()=>m.ElMenuItem}),Object.defineProperty(g,"FoxMenuItemGroup",{enumerable:!0,get:()=>m.ElMenuItemGroup}),Object.defineProperty(g,"FoxOption",{enumerable:!0,get:()=>m.ElOption}),Object.defineProperty(g,"FoxOptionGroup",{enumerable:!0,get:()=>m.ElOptionGroup}),Object.defineProperty(g,"FoxPageHeader",{enumerable:!0,get:()=>m.ElPageHeader}),Object.defineProperty(g,"FoxPagination",{enumerable:!0,get:()=>m.ElPagination}),Object.defineProperty(g,"FoxPopconfirm",{enumerable:!0,get:()=>m.ElPopconfirm}),Object.defineProperty(g,"FoxPopover",{enumerable:!0,get:()=>m.ElPopover}),Object.defineProperty(g,"FoxPopper",{enumerable:!0,get:()=>m.ElPopper}),Object.defineProperty(g,"FoxProgress",{enumerable:!0,get:()=>m.ElProgress}),Object.defineProperty(g,"FoxRadio",{enumerable:!0,get:()=>m.ElRadio}),Object.defineProperty(g,"FoxRadioButton",{enumerable:!0,get:()=>m.ElRadioButton}),Object.defineProperty(g,"FoxRadioGroup",{enumerable:!0,get:()=>m.ElRadioGroup}),Object.defineProperty(g,"FoxRate",{enumerable:!0,get:()=>m.ElRate}),Object.defineProperty(g,"FoxResult",{enumerable:!0,get:()=>m.ElResult}),Object.defineProperty(g,"FoxRow",{enumerable:!0,get:()=>m.ElRow}),Object.defineProperty(g,"FoxScrollbar",{enumerable:!0,get:()=>m.ElScrollbar}),Object.defineProperty(g,"FoxSelect",{enumerable:!0,get:()=>m.ElSelect}),Object.defineProperty(g,"FoxSelectV2",{enumerable:!0,get:()=>m.ElSelectV2}),Object.defineProperty(g,"FoxSkeleton",{enumerable:!0,get:()=>m.ElSkeleton}),Object.defineProperty(g,"FoxSkeletonItem",{enumerable:!0,get:()=>m.ElSkeletonItem}),Object.defineProperty(g,"FoxSlider",{enumerable:!0,get:()=>m.ElSlider}),Object.defineProperty(g,"FoxSpace",{enumerable:!0,get:()=>m.ElSpace}),Object.defineProperty(g,"FoxStep",{enumerable:!0,get:()=>m.ElStep}),Object.defineProperty(g,"FoxSteps",{enumerable:!0,get:()=>m.ElSteps}),Object.defineProperty(g,"FoxSubMenu",{enumerable:!0,get:()=>m.ElSubMenu}),Object.defineProperty(g,"FoxSwitch",{enumerable:!0,get:()=>m.ElSwitch}),Object.defineProperty(g,"FoxTabPane",{enumerable:!0,get:()=>m.ElTabPane}),Object.defineProperty(g,"FoxTable",{enumerable:!0,get:()=>m.ElTable}),Object.defineProperty(g,"FoxTableColumn",{enumerable:!0,get:()=>m.ElTableColumn}),Object.defineProperty(g,"FoxTableV2",{enumerable:!0,get:()=>m.ElTableV2}),Object.defineProperty(g,"FoxTabs",{enumerable:!0,get:()=>m.ElTabs}),Object.defineProperty(g,"FoxTag",{enumerable:!0,get:()=>m.ElTag}),Object.defineProperty(g,"FoxTimePicker",{enumerable:!0,get:()=>m.ElTimePicker}),Object.defineProperty(g,"FoxTimeSelect",{enumerable:!0,get:()=>m.ElTimeSelect}),Object.defineProperty(g,"FoxTimeline",{enumerable:!0,get:()=>m.ElTimeline}),Object.defineProperty(g,"FoxTimelineItem",{enumerable:!0,get:()=>m.ElTimelineItem}),Object.defineProperty(g,"FoxTooltip",{enumerable:!0,get:()=>m.ElTooltip}),Object.defineProperty(g,"FoxTransfer",{enumerable:!0,get:()=>m.ElTransfer}),Object.defineProperty(g,"FoxTree",{enumerable:!0,get:()=>m.ElTree}),Object.defineProperty(g,"FoxTreeSelect",{enumerable:!0,get:()=>m.ElTreeSelect}),Object.defineProperty(g,"FoxTreeV2",{enumerable:!0,get:()=>m.ElTreeV2}),Object.defineProperty(g,"FoxUpload",{enumerable:!0,get:()=>m.ElUpload}),g.AutocompleteItem=lo,g.Broadcast=tn,g.BroadcastKey=le,g.CascaderItem=oo,g.CheckboxItem=So,g.Content=gr,g.DataItemsKey=Ke,g.DateItem=Hr,g.DateUtils=ct,g.DialogItem=No,g.Domain=$t,g.DomainKey=ve,g.DomainProvider=zo,g.FloatingWindow=Ho,g.FooterBar=hr,g.Group=yr,g.HeaderBar=dr,g.HintText=Dt,g.Indicator=ko,g.InputItem=xr,g.InputNumberItem=to,g.Item=de,g.Mapping=Bt,g.MoneyItem=Qr,g.MoreButton=Oo,g.Page=fr,g.Price=gn,g.PriorityPolicy=$e,g.RadioItem=yo,g.RateItem=$o,g.RowItem=Er,g.SelectItem=Ir,g.SlotItem=Tr,g.SwitchItem=Eo,g.TableItem=go,g.TableMappingColumn=so,g.TableRadioColumn=co,g.TableSetting=bn,g.Text=Vo,g.TimeItem=Kr,g.TimeSelectItem=Yr,g.Tour=Io,g.TreeSelectItem=xo,g.UniqueID=vr,g.ValidateSchema=Qn,g.ValidateSchemaKey=Oe,g.cancelRaf=Go,g.clearNonNumber=ca,g.clone=Jt,g.compareTo=Gt,g.createBroadcast=wt,g.createValidateSchema=vt,g.debounce=it,g.debounceRef=Ta,g.decimalLength=Kn,g.default=Lc,g.defineBroadcast=ga,g.defineConfigDomain=nr,g.defineDataItem=or,g.defineDomain=on,g.defineItem=ue,g.definePageState=ar,g.deleteGlobalValidator=ba,g.disabledProperty=we,g.divide=Ut,g.excludeProps=me,g.extend=je,g.floatData=ha,g.getGlobalValidateCheckEvents=Xn,g.getGlobalValidateResetEvents=Jn,g.getPageContentAreaHeight=Et,g.getPageContentAreaWidth=Ct,g.getPageFooterAreaHeight=ut,g.getPageHeaderAreaHeight=st,g.getRootDomain=We,g.hasSymbol=Ln,g.includeProps=Yn,g.indexOf=fa,g.installRules=rr,g.integerLength=zn,g.isArray=Qo,g.isArrayLike=jn,g.isBrowser=rt,g.isDate=na,g.isESModule=aa,g.isEmptyString=ae,g.isEqual=Be,g.isFunction=Xt,g.isHidden=Mn,g.isInnerPage=xa,g.isMap=ea,g.isNil=en,g.isNumberString=Hn,g.isObject=Fe,g.isPlainObject=Zt,g.isPromise=oa,g.isRegExp=Pn,g.isSet=ta,g.isString=Fn,g.isSubPage=Na,g.isSymbol=ra,g.isWindow=qn,g.lastIndexOf=da,g.makeArray=ua,g.merge=_n,g.multiply=Rn,g.negate=An,g.nextTick=ia,g.numberFormat=pt,g.objectToString=Bn,g.once=Ea,g.property=Se,g.raf=Jo,g.readonlyProperty=be,g.setGlobalValidateCheckEvents=wa,g.setGlobalValidateHandler=pa,g.setGlobalValidateMessages=va,g.setGlobalValidateResetEvents=Sa,g.setGlobalValidator=ya,g.throttle=tr,g.toBoolean=te,g.toNumber=ge,g.toPadding=xe,g.toPx=re,g.toPxDesc=ce,g.toTypeString=yt,g.toValue=ne,g.tryTimes=nn,g.typeOf=bt,g.unNumberFormat=Dn,g.updatePageState=an,g.useBroadcast=at,g.useDomain=Ie,g.useExpose=fe,g.useInnerSize=cn,g.usePageState=Tt,g.usePosition=br,g.useRect=hn,g.useSize=un,g.useTouch=Fc,g.valueLength=ot,Object.defineProperties(g,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});