@fox-js/foxui-pc 4.0.1-118 → 4.0.1-120

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(p,l){typeof exports=="object"&&typeof module<"u"?l(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"],l):(p=typeof globalThis<"u"?globalThis:p||self,l(p.FoxUI={},p.Vue,p.FoxValidator,p.ElementPlus,p.ElementPlusIconsVue,p.FoxI18n))})(this,function(p,l,tt,v,$e,Le){"use strict";/*!
2
- * @fox-js/foxui-desktop v4.0.0 Thu Jul 25 2024 13:35:32 GMT+0800 (中国标准时间)
3
- */const Ft=window,Yr=typeof window<"u";function Gr(){return typeof Ft<"u"?Ft.requestAnimationFrame||Ft.webkitRequestAnimationFrame||function(e){Ft.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Ur(e){Yr?cancelAnimationFrame(e):clearTimeout(e)}const ql=Gr();/*!
4
- * @fox-js/big-decimal v4.0.1-6 Thu Aug 17 2023 21:31:19 GMT+0800 (中国标准时间)
5
- */function Rt(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=Ce(e),t=Ce(t),[e,t]=hn(Ce(e),Ce(t)),o==1&&(n==1?e=dn(e):t=dn(t));let r=Pl(e,t);return o?o==2?"-"+Ce(r):e.length<r.length?Ce(r.substring(1)):"-"+Ce(dn(r)):Ce(r)}function dn(e){let t="",o=e.length,n=e.split(".")[1],r=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 a=r>0?"0."+new Array(r).join("0")+"1":"1";return Pl(t,a)}function Ce(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 hn(e,t){let o=e.split("."),n=t.split("."),r=o[0].length,a=n[0].length;return r>a?n[0]=new Array(Math.abs(r-a)+1).join("0")+(n[0]?n[0]:""):o[0]=new Array(Math.abs(r-a)+1).join("0")+(o[0]?o[0]:""),r=o[1]?o[1].length:0,a=n[1]?n[1].length:0,(r||a)&&(r>a?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(r-a)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(r-a)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function Pl(e,t){[e,t]=hn(e,t);let o="",n=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){o="."+o;continue}let a=parseInt(e[r])+parseInt(t[r])+n;o=a%10+o,n=Math.floor(a/10)}return n?n.toString()+o:o}var pe=(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))(pe||{});function pt(e,t=0,o=pe.HALF_EVEN){if(o===pe.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 r=e.split("."),a=r[0],s=r[1];if(t<0){if(t=-t,a.length<=t)return"0";{let u=a.substr(0,a.length-t);return e=u+"."+a.substr(a.length-t)+s,u=pt(e,0,o),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return a.length,jl(r[1],a,n,o)?(n?"-":"")+gn(a):(n?"-":"")+a;if(r[1]){if(r[1].length<t)return(n?"-":"")+a+"."+r[1]+new Array(t-r[1].length+1).join("0")}else return(n?"-":"")+a+"."+new Array(t+1).join("0");s=r[1].substring(0,t);let i=r[1].substring(t);return i&&jl(i,s,n,o)&&(s=gn(s),s.length>t)?(n?"-":"")+gn(a,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+a+"."+s}function jl(e,t,o,n){if(!e||e===new Array(e.length+1).join("0")||n===pe.DOWN||!o&&n===pe.FLOOR||o&&n===pe.CEILING)return!1;if(n===pe.UP||o&&n===pe.FLOOR||!o&&n===pe.CEILING)return!0;let r="5"+new Array(e.length).join("0");if(e>r)return!0;if(e<r)return!1;switch(n){case pe.HALF_DOWN:return!1;case pe.HALF_UP:return!0;case pe.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function gn(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let o=e.length-1,n="";for(let r=o;r>=0;r--){let a=parseInt(e[r])+t;a==10?(t=1,a=0):t=0,n+=a}return t&&(n+=t),n.split("").reverse().join("")}function mn(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=yt(e),t=yt(t);let n=0,r=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(r=t.length-t.indexOf(".")-1);let a=n+r;if(e=yt(e.replace(".","")),t=yt(t.replace(".","")),e.length<t.length){let c=e;e=t,t=c}if(t=="0")return"0";let s=t.length,i=0,u=[],d=s-1,f="";for(let c=0;c<s;c++)u[c]=e.length-1;for(let c=0;c<2*e.length;c++){let S=0;for(let k=t.length-1;k>=d&&k>=0;k--)u[k]>-1&&u[k]<e.length&&(S+=parseInt(e[u[k]--])*parseInt(t[k]));S+=i,i=Math.floor(S/10),f=S%10+f,d--}return f=yt(Xr(f,a)),o==1&&(f="-"+f),f}function Xr(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 yt(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 pn(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 r=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=Ce(t.replace(".","")),r>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Ce(e+new Array(r+1).join("0"));else if(r>d)e=e.replace(".",""),e=Ce(e+new Array(r-d+1).join("0"));else if(r<d){e=e.replace(".","");let f=e.length-d+r;e=Ce(e.substring(0,f)+"."+e.substring(f))}else r==d&&(e=Ce(e.replace(".","")))}let a=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 d=u.length-u.indexOf(".")-1;u=u.replace(".",""),s>u.length&&(d+=s-u.length,u=u+new Array(s-u.length+1).join("0")),a=d,i="0."+new Array(d).join("0")}for(o=o+2;a<=o;){let d=0;for(;parseInt(u)>=parseInt(t);)u=Rt(u,"-"+t),d++;i+=d,e?(e[0]=="."&&(i+=".",a++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(a||(i+="."),a++,u=u+"0")}return(n==1?"-":"")+Ce(pt(i,o-2))}function yn(e,t){return e=e.toString(),t=t.toString(),t=bn(t),Rt(e,t)}function bn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function zl(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),Hl(e),Hl(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=yn(e,mn(t,pt(pn(e,t),0,pe.FLOOR)));return o+n}function Hl(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Kl(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]=hn(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 fe{value;static RoundingModes=pe;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=Ce(o);let r="";o[0]=="-"&&(r="-",o=o.substring(1)),o.indexOf(".")>=0?(n=parseInt(n)+o.indexOf("."),o=o.replace(".","")):n=parseInt(n)+o.length,o.length<n?t=r+o+new Array(n-o.length+1).join("0"):o.length>=n&&n>0?t=r+Ce(o.substring(0,n))+(o.length>n?"."+o.substring(n):""):t=r+"0."+new Array(-n+1).join("0")+o}return t}constructor(t="0"){this.value=fe.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=fe.validate(t);let r=t.charAt(0)=="-";r&&(t=t.substring(1));var a=t.indexOf(".");a=a>0?a:t.length;for(var s="",i=a;i>0;)i<o?(o=i,i=0):i-=o,s=t.substring(i,i+o)+(i<a-o&&i>=0?n:"")+s;return(r?"-":"")+s+t.substring(a)}getPrettyValue(t,o){return fe.getPrettyValue(this.value,t,o)}static round(t,o=0,n=pe.HALF_EVEN){if(t=fe.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return pt(t,o,n)}round(t=0,o=pe.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new fe(pt(this.value,t,o))}static floor(t){return t=fe.validate(t),t.indexOf(".")===-1?t:fe.round(t,0,pe.FLOOR)}floor(){return this.value.indexOf(".")===-1?new fe(this.value):new fe(this.value).round(0,pe.FLOOR)}static ceil(t){return t=fe.validate(t),t.indexOf(".")===-1?t:fe.round(t,0,pe.CEILING)}ceil(){return this.value.indexOf(".")===-1?new fe(this.value):new fe(this.value).round(0,pe.CEILING)}static add(t,o){return t=fe.validate(t),o=fe.validate(o),Rt(t,o)}add(t){return new fe(Rt(this.value,t.getValue()))}static subtract(t,o){return t=fe.validate(t),o=fe.validate(o),yn(t,o)}subtract(t){return new fe(yn(this.value,t.getValue()))}static multiply(t,o){return t=fe.validate(t),o=fe.validate(o),mn(t,o)}multiply(t){return new fe(mn(this.value,t.getValue()))}static divide(t,o,n){return t=fe.validate(t),o=fe.validate(o),pn(t,o,n)}divide(t,o){return new fe(pn(this.value,t.getValue(),o))}static modulus(t,o){return t=fe.validate(t),o=fe.validate(o),zl(t,o)}modulus(t){return new fe(zl(this.value,t.getValue()))}static compareTo(t,o){return t=fe.validate(t),o=fe.validate(o),Kl(t,o)}compareTo(t){return Kl(this.value,t.getValue())}static negate(t){return t=fe.validate(t),bn(t)}negate(){return new fe(bn(this.value))}}function Wl(e,t){return fe.multiply(`${e}`,`${t}`)}function vn(e,t,o=8){return fe.divide(`${e}`,`${t}`,o)}function wn(e,t){return e=`${e}`,t=`${t}`,fe.compareTo(e,t)}function Yl(e){return fe.negate(e)}function At(e,t=-1,o=!1,n=3,r=","){let a=`${e}`;if(a.length==0||a==="-")return"";let s=a.charAt(0);s=="-"?a=a.substring(1):s="";let i=a,u="",d=a.indexOf(".");d!=-1&&(i=a.substring(0,d),u=a.substring(d+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 c="",S=i.split("").reverse();for(let k=0;k<S.length;k++)c+=S[k]+((k+1)%n==0&&k+1!=S.length?r:"");u.length==0?f=`${s}${c.split("").reverse().join("")}`:f=`${s}${c.split("").reverse().join("")}.${u}`}else u.length==0?f=`${s}${i}`:f=`${s}${i}.${u}`;return f}function Gl(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const Sn=ql,Zr=Array.isArray,Jr=e=>Lt(e)==="[object Map]",Qr=e=>Lt(e)==="[object Set]",ea=e=>e instanceof Date,xn=e=>typeof e=="function",Ul=e=>typeof e=="string",ta=e=>typeof e=="symbol",We=e=>e!==null&&typeof e=="object",Xl=e=>We(e)&&xn(e.then)&&xn(e.catch),Zl=Object.prototype.toString,Lt=e=>Zl.call(e),Tn=e=>Lt(e)==="[object Object]",Jl=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function na(e){return e.__esModule||Jl&&e[Symbol.toStringTag]==="Module"}const la=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function nt(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,n=e.length,r=!1;for(typeof t=="boolean"&&(r=t,t=e[o]??{},o++),typeof t!="object"&&(t={});o<n;o++)if(e[o]!==null&&e[o]!==void 0){let a=e[o];for(let s in a){let i=t[s],u=a[s];if(i!==u)if(r===!0&&u&&typeof u=="object"){let d;Array.isArray(u)?d=i&&Array.isArray(i)?i:[]:d=i&&typeof i=="object"?i:{},t[s]=nt(r,d,u)}else u!==void 0&&(t[s]=u)}}return t}function $n(e,t,o=!1){if(!o)nt(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let r in t){let a=e[r],s=t[r];if(a!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!Tn(s))continue;a=$n(a,s,o),e[r]=a}else{if(typeof s=="function")continue;e[r]=s}}const n=Object.getOwnPropertySymbols(t);for(let r of n){let a=e[r],s=t[r];if(a!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!Tn(s))continue;a=$n(a,s,o),e[r]=a}else{if(typeof s=="function")continue;e[r]=s}}}return e}const Cn=la?Promise.resolve():null;function oa(e,...t){Cn!==null?t&&t.length>0?Cn.then(()=>{e(t)}):Cn.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function ue(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function ve(e){return typeof e=="number"?e:Number(e)}const ra={"[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 Mt(e){let o=Object.prototype.toString.call(e);return e==null?String(e):ra[o]||"object"}function Ql(e){return e&&typeof e=="object"&&"setInterval"in e}function Bt(e){if(!e)return!0;const{display:t}=window.getComputedStyle(e);return t==="none"}function eo(e){let t=!!e&&"length"in e&&e.length,o=Mt(e);return o==="function"||Ql(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function to(e,t){let o=+t.length,n=0,r=e.length;for(;n<o;n++)e[r++]=t[n];return e.length=r,e}function aa(e,t=[]){let o=t;return e!=null&&(eo(Object(e))?to(o,typeof e=="string"?[e]:e):o.push(e)),o}function Ye(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=Mt(e),n=Mt(t);if(o!==n)return!1;if(o==="object"){let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let s=0;s<r.length;s++){let i=r[s],u=e[i],d=t[i];if(!Ye(u,d))return!1}return!0}else if(o==="array"){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let a=e[r],s=t[r];if(!Ye(a,s))return!1}return!0}return!1}const lt=typeof window<"u";function Nn(e){return e==null}function no(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const me=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function lo(e){return me(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),me(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function oo(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 ro(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 ao(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 ia(e,t=!0,o=!0){t?e=ao(e,".",/\./g):e=e.replace(/\./g,""),o?e=ao(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function sa(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(Ye(e,o))return!0}):t.indexOf(e)}function ua(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(n=>{if(Ye(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function bt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function io(e,...t){const o={};return t.forEach(n=>{for(const r in n)o[r]=e[r]}),o}function Ne(e,...t){const o=[];t.forEach(r=>{Reflect.apply([].push,o,Reflect.ownKeys(r))});const n={};for(const r in e)o.includes(r)||(n[r]=e[r]);return n}const ca=(e,t,o)=>{const n=Object.assign({},e),r=Object.assign({},o);return Object.keys(t).length>0?(Object.keys(n).forEach(a=>{r.hasOwnProperty(a)?typeof r[a]=="string"&&(n[a]=t[r[a]]):t[a]&&(n[a]=t[a])}),n):e},ye=Symbol.for("BroadcastKey");class kn{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 r=!1;!t.name||t.name==="*"?r=!0:!t.name||t.name==="+"?(r=!1,t.name="*"):no(t.name)&&this.name&&t.name.test(this.name)?r=!0:typeof t.name=="function"?r=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(r=!0);const a=[];if(r){const s=this.callbacks.get(o);if(typeof s=="function"){const u=Reflect.apply(s,this.proxy,[...n]);u!=null&&a.push(u)}const i=this.proxy??{};if(typeof i[o]=="function"){const u=Reflect.apply(i[o],i,[...n]);u!=null&&a.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,a,[...i])}),a}emitToChildren(t,o,...n){const r=[];return this.children.forEach(a=>{const s=Reflect.apply(a.emit,a,[{...t},o,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,r,[...s])}),r}on(t,o){this.callbacks.set(t,o)}}function _t(e,t,o,n){const r=new kn(t,e,o);if(n&&typeof n=="object")for(const a in n)r.on(a,n[a]);return r}function fa(e,t,o){const n=o;if(n[ye])return n[ye];const r=l.inject(ye,null),a=new kn(r,o,e);if(t&&typeof t=="object")for(const s in t)a.on(s,t[s]);return n[ye]=a,l.provide(ye,a),l.onUnmounted(()=>{a.destroy(),n[ye]=void 0}),a}function vt(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[ye]??l.inject(ye,null):l.inject(ye,null)}const ot=e=>e.default??e;class da{error(t,o){const n=o,r=o||l.hasInjectionContext()?vt(o):null;r?r.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const o=t,n=t||l.hasInjectionContext()?vt(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=t||l.hasInjectionContext()?vt(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(t,o,n){Array.isArray(t)||(t=[t]);const r=n,a=n||l.hasInjectionContext()?vt(n):null,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?a?a.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0):s&&!i&&(a?a.emit({name:"*"},"setRequired",!1):typeof r.setRequired=="function"&&r.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let wt=new da;function ha(e){wt=e}function ga(e){wt?Object.assign(wt,e):wt=e}function ma(e,t){ot(tt).setValidator(e,t)}function pa(e){ot(tt).deleteValidator(e)}let so=["blur","clear"];function ya(e){so=e}function uo(){return so}let co=["focus","change","setValue"];function ba(e){co=e}function fo(){return co}function va(e){ot(tt).messages(e)}function St(...e){const t=[];return e.forEach(o=>{o.forEach(n=>{const r=t.findIndex(a=>a.type===n.type);r!==-1&&t.splice(r,1),t.push(n)})}),t}function qt(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 qe=Symbol("ValidateSchemaKey");class ho{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,o,n){this.parent=t,this.descriptor=o,this.proxy=n,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;t&&(this.scope=l.effectScope(!0),this.scope.run(()=>{l.watchEffect(()=>{const o=qt(St(this.attrRules,this.rules)),n=[];for(let a in t){let s=t[a];if(this.hasValidator(a,!0)){if(s===!1)continue;let u={type:a};s!==null&&typeof s=="object"&&Object.assign(u,s),n.push(u);continue}let i=this.getValidator(a);if(i!==null){let u={type:a,validator:i};n.push(u)}}this.attrRules=qt(n);const r=St(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(r,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(t,...o){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...o]);const r=wt;return r&&typeof r[t]=="function"?Reflect.apply(r[t],r,[...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?ot(tt).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?ot(tt).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return ot(tt).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=St(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=qt(t):this.rules=qt([t]);const n=St(this.attrRules,this.rules);l.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=St(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(o.length>0){const r={[`${n}`]:o},a=this.getValue(),s={[`${n}`]:a},i=ot(tt),u=new i(r),d=this.proxy??s;return u.validate(s,{context:d}).then(c=>{if(c.pass)this.success();else{let S="error";Array.isArray(c.errors)&&c.errors.length>0&&(S=c.errors[0].message??S,c.errors=[c.errors[0]],c.errors[0].ref=d),this.error(S)}return c}).catch(c=>{const S=c.message??`${c}`;return this.error(S),c})}}return Promise.resolve({pass:!0})}}function Pt(e,t,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const r=o.valueName;o.validateHandler={getValue(a){return a[r]}}}return new ho(t,o,e)}const jt=Symbol.for("EventEmitterKey");class go{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 r=n.findIndex(a=>a===o);r!==-1&&n.splice(r,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(r=>{try{Reflect.apply(r,null,[t,...o])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...o])}}function xt(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function mo(e,t){let o=0;return function(...n){const r=new Date().getTime();r-o<t||(o=r,Reflect.apply(e,null,[...n]))}}function wa(e,t){const o=xt((n,r)=>{e=n,r()},t);return l.customRef((n,r)=>({get(){return n(),e},set(a){o(a,r)}}))}function Sa(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function zt(e,t,o,n=0,r=!0,a){let s=t,i=0;if(r){const d=e();if(i++,d){typeof a=="function"&&a(!0);return}if(i>o){typeof a=="function"&&a(!1);return}}const u=()=>{const d=e();if(i++,d){typeof a=="function"&&a(!0);return}if(i>o){typeof a=="function"&&a(!1);return}s+=n,setTimeout(u,s)};setTimeout(u,s)}const Ae=Symbol("DomainKey"),st=Symbol("DataItemsKey");class Ht{_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=l.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 r=t[n];o.length>0&&o.indexOf(r)!==-1||(this._props[n]=r)}}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 r=n._props[t];o.push(r)}n=n._parent}return o}}const xa=new Ht;function ut(){return xa}function Ge(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[Ae]??l.inject(Ae,null):l.inject(Ae,null)}const En=Symbol("OriginalDateKey");function In(e,t,o=[],n){const r=l.getCurrentInstance();let a=r?.proxy,s=l.inject(Ae,null);s===null&&(s=ut());const i=e||t.prop||t.name;let u=new Ht(i);u.parent=s;const d=k=>{a[En]||S(k),u?.set("modelValue",k)},f=()=>u?.getForSelf("modelValue")??null,c=()=>a[En]??null,S=k=>{const g={};nt(!0,g,l.toRaw(k)),a[En]=g};if(l.isReactive(t)||typeof t=="function"?l.watch(t,k=>{u?.merge(k,o)},{immediate:!0}):u.merge(t,o),t.modelValue&&S(t.modelValue),a[Ae]=u,l.provide(Ae,u),r!==null){const k=l.inject(ye,null),g=_t(a,k,i,n);u.broadcast=g,a[ye]=g,l.provide(ye,g),a.broadcast=($,w,...C)=>Reflect.apply(g.emit,g,[$,w,...C]);const h=l.inject(qe,null),m=Pt(a,h,{componentName:""});u.validateSchema=m,a[qe]=m,l.provide(qe,m),a[st]=new Map,a.validate=($=!0)=>{const w=[];let C=null;const q={deep:!1};if($===!0)C={name:"*"};else if(Array.isArray($)&&$.length>0){const B=$;C={name:A=>A?B.indexOf(A)!==-1:!1}}else if($!=null&&typeof $=="object"){const B=$;if(Object.assign(q,B),Array.isArray(B.include)&&B.include.length>0){const A=B.include;C={name:L=>L?A.indexOf(L)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const A=B.exclude;C={name:L=>L?A.indexOf(L)===-1:!1}}else C={name:"*"}}if(C){const B=g?.emitToChildren(C,"validate",q);B&&Reflect.apply([].push,w,B)}return w.length==1?w[0]:w.length>1?Promise.all(w).then(B=>{let A=[];return B.forEach(L=>{L.pass===!1&&Array.isArray(L.errors)&&(A=[...A,...L.errors])}),A.length>0?{pass:!1,errors:A}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=($,w=!0,C=!1)=>{if(C===!0){Reflect.ownKeys($).forEach(B=>{let A=String(B);const L={componentName:"",fieldName:A,pureDataValidate:!0};if(u){const M=bo(u,A,L,g,m);a[st].set(A,M);const V=$[A];V&&M.validateSchema.setRule(V)}});return}if(w){const q=Reflect.ownKeys($),B={name:A=>q.includes(A)};g?.emitToChildren(B,"setNameValidateRules",$,!1)}},a.clearValidate=($=!0)=>{let w=null;if($===!0)w={name:"*"};else if(Array.isArray($)&&$.length>0){const C=$;w={name:q=>q?C.indexOf(q)!==-1:!1}}else if($!=null&&typeof $=="object"){const C=$;if(Array.isArray(C.include)&&C.include.length>0){const q=C.include;w={name:B=>B?q.indexOf(B)!==-1:!1}}else if(Array.isArray(C.exclude)&&C.exclude.length>0){const q=C.exclude;w={name:B=>B?q.indexOf(B)===-1:!1}}else w={name:"*"}}w&&g?.emitToChildren(w,"clearValidate",!1)},a.resetFields=$=>{const w=f();if(!w)return;const C={};if(nt(!0,C,c()??{}),Array.isArray($))$.forEach(q=>{w[q]=C[q]});else if($&&Array.isArray($.include))($.include??[]).forEach(B=>{w[B]=C[B]});else if($&&Array.isArray($.exclude)){let q=$.exclude??[];Reflect.ownKeys(C).forEach(B=>{q.includes(B)||(w[B]=C[B])})}else Object.assign(w,C);a.clearValidate($)},a.setModelValue=($,w)=>{!w||w===i?d($):g?.emitToChildren({name:w},"setModelValue",$)},a.getModelValue=()=>f()}return l.onUnmounted(function(){u?.validateSchema&&(u.validateSchema.destroy(),a[qe]=void 0,l.provide(qe,null)),u?.broadcast&&(u?.broadcast?.destroy(),a[ye]=void 0,l.provide(ye,null)),u?.destroy(),a[Ae]=void 0,l.provide(Ae,null),a[st]&&(a[st].clear(),a[st]=void 0),a.broadcast=null,a.validate=null,a.setNameValidateRules=null,a.clearValidate=null,a.resetFields=null,a.setModelValue=null,a.getModelValue=null,u=null,a=null}),u}function po(e,t,o=[]){let r=l.getCurrentInstance()?.proxy,a=l.inject(Ae,null);a===null&&(a=ut());const s=e||t.prop||t.name;let i=new Ht(s);return i.parent=a,l.isReactive(t)||typeof t=="function"?l.watch(t,u=>{i?.merge(u,o)},{immediate:!0}):i.merge(t,o),r[Ae]=i,l.provide(Ae,i),l.onUnmounted(()=>{i?.destroy(),r[Ae]=void 0,l.provide(Ae,null),i=null,r=null}),i}function yo(e,t,o){const r=Ge(e)?.get("rules");if(!r)return;let a=r[o];a&&(Array.isArray(a)||(a=[a]),t.setRule(a))}function xe(e,t,o){const r=l.getCurrentInstance()?.proxy,a=t??"",s=l.inject(ye,null);let i=_t(r,s,a,o);r[ye]=i,l.provide(ye,i),r.broadcast=(g,h,...m)=>i?Reflect.apply(i.emit,i,[g,h,...m]):null;const u=l.inject(qe,null);e.fieldName=e.fieldName??a;let d=Pt(r,u,e);r[qe]=d,l.provide(qe,d),yo(r,d,a),r.validate=(g=null)=>{if(!d)return Promise.resolve({pass:!0});const h=[];let m=!1,$=!1;if(Array.isArray(g)&&g.indexOf(a)!==-1)$=!0,m=!0;else if(g&&typeof g=="object"){const w=g,C=w.ignoreDisabled??!0,q=w.ignoreReadonly??!0,B=w.ignoreHidden??!0;C===!0&&e.disabled===!0||q===!0&&e.readonly===!0||B===!0&&Bt(r.$el)?$=!1:(Array.isArray(w.include)&&w.include.indexOf(a)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(a),$=!0),m=w.deep??!1}else typeof g=="boolean"&&(m=g),$=!0;if($){const w=d?.validate();h.push(w)}if(m){let w=null;const C={deep:!1};if(g===!0)w={name:"*"};else if(Array.isArray(g)&&g.length>0){const q=g;w={name:B=>B?q.indexOf(B)!==-1:!1}}else if(g!=null&&typeof g=="object"){const q=g;if(Object.assign(C,q),Array.isArray(q.include)&&q.include.length>0){const B=q.include;w={name:A=>A?B.indexOf(A)!==-1:!1}}else if(Array.isArray(q.exclude)&&q.exclude.length>0){const B=q.exclude;w={name:A=>A?B.indexOf(A)===-1:!1}}else w={name:"*"}}if(w&&i){const q=i.emitToChildren(w,"validate",C);Reflect.apply([].push,h,q)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(w=>{let C=[];return w.forEach(q=>{q.pass===!1&&Array.isArray(q.errors)&&(C=[...C,...q.errors])}),C.length>0?{pass:!1,errors:C}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=g=>d?.setRule(g),r.setNameValidateRules=(g,h=!1)=>{const m=g[a];if(m&&d?.setRule(m),h&&i){const $={name:w=>Reflect.ownKeys(g).includes(w)};i.emitToChildren($,"setNameValidateRules",g,!1)}},r.clearValidate=(g=null)=>{(!Array.isArray(g)||g.indexOf(t??"")!==-1)&&d?.clear();let h=null;if(g===!0)h={name:"*"};else if(Array.isArray(g)&&g.length>0){const m=g;h={name:$=>$?m.indexOf($)!==-1:!1}}else if(g!=null&&typeof g=="object"){const m=g;if(Array.isArray(m.include)&&m.include.length>0){const $=m.include;h={name:w=>w?$.indexOf(w)!==-1:!1}}else if(Array.isArray(m.exclude)&&m.exclude.length>0){const $=m.exclude;h={name:w=>w?$.indexOf(w)===-1:!1}}else h={name:"*"}}h&&i&&i.emitToChildren(h,"clearValidate",!1)};let f=new go(r);r[jt]=f;const c=xt((g="validate")=>{d&&(g==="reset"?d.clear():d.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:uo()).forEach(g=>{f&&f.on(g,h=>{c("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:fo()).forEach(g=>{f&&f.on(g,h=>{c("reset")})}),l.onUnmounted(()=>{i?.destroy(),r[ye]=void 0,l.provide(ye,null),i=null,d?.destroy(),r[qe]=void 0,l.provide(qe,null),d=null,f?.destroy(),r[jt]=void 0,f=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:i,validateSchema:d,emitEvent:(g,...h)=>{f&&Reflect.apply(f.emit,f,[g,...h])},onEvent:(g,h)=>{f&&Reflect.apply(f.on,f,[h])},offEvent:(g,h)=>{f&&Reflect.apply(f.off,f,[h])}}}function bo(e,t,o,n,r){const a={},s=t??"",i={getValue(){const f=e.getForSelf("modelValue");return f?f[s]:null},isExist(){const f=e.getForSelf("modelValue");return f?Reflect.has(f,s):!1}};o.fieldName=s,o.validateHandler={getValue(f){return i.getValue()}};let u=Pt({},r,o);a.validate=(f=null)=>{if(!i.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const c=[];let S=!1,k=!1;if(Array.isArray(f)&&f.indexOf(s)!==-1)k=!0,S=!0;else if(f&&typeof f=="object"){const g=f;Array.isArray(g.include)&&g.include.indexOf(s)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(s),k=!0,S=g.deep??!1}else typeof f=="boolean"&&(S=f),k=!0;if(k&&u){const g=u.validate();c.push(g)}if(S){let g=null;const h={deep:!1};if(f===!0)g={name:"*"};else if(Array.isArray(f)&&f.length>0){const m=f;g={name:$=>$?m.indexOf($)!==-1:!1}}else if(f!=null&&typeof f=="object"){const m=f;if(Object.assign(h,m),Array.isArray(m.include)&&m.include.length>0){const $=m.include;g={name:w=>w?$.indexOf(w)!==-1:!1}}else if(Array.isArray(m.exclude)&&m.exclude.length>0){const $=m.exclude;g={name:w=>w?$.indexOf(w)===-1:!1}}else g={name:"*"}}if(g&&d){const m=d.emitToChildren(g,"validate",h);Reflect.apply([].push,c,m)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(g=>{let h=[];return g.forEach(m=>{m.pass===!1&&Array.isArray(m.errors)&&(h=[...h,...m.errors])}),h.length>0?{pass:!1,errors:h}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=f=>u?.setRule(f),a.setNameValidateRules=f=>{const c=f[s];c&&u?.setRule(c)};let d=_t(null,n,s,a);return l.onUnmounted(()=>{u=null,d=null}),{broadcast:d,validateSchema:u}}function vo(){let t=l.getCurrentInstance()?.proxy,o=new go(t);return t[jt]=o,l.onUnmounted(()=>{o?.destroy(),t[jt]=void 0,o=null,t=null}),{emitEvent:(n,...r)=>{o&&Reflect.apply(o.emit,o,[n,...r])},onEvent:(n,r)=>{o&&Reflect.apply(o.on,o,[r])},offEvent:(n,r)=>{o&&Reflect.apply(o.off,o,[r])}}}const ke=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${he(e,t)}px`:"";function he(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 r=Number(e.substring(0,o)),a=1;if(lt){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(a=Number(s.substring(0,i)))}return r*=a,r}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*t;const n=Number(e);return isNaN(n)?0:n}const Je="PageStateKey";function ze(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=he(e.top)),e.left!==null&&e.left!==void 0&&(t.left=he(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=he(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=he(e.right))),t}function On(e,t,o={},n=!0,r=-1,a=-1,s=0,i=0){if(e.headerHeight=he(o.headerHeight??t.headerHeight??-1),e.headerPadding=ze(o.headerPadding??t.headerPadding),e.footerHeight=he(o.footerHeight??t.footerHeight??-1),e.footerPadding=ze(o.footerPadding??t.footerPadding),e.contentPadding=ze(o.contentPadding??t.contentPadding),n){const u=o.height??t.height;u?e.height=he(u,a):e.height=he(a)-he(s,a)-he(i,a),e.width=he(o.width??t.width??0,r)}}function wo(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},r=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});r&&(n.safeAreaTop=he(r.top),n.safeAreaBottom=he(r.bottom),n.safeAreaLeft=he(r.left),n.safeAreaRight=he(r.right));const a=e.get("pageLayout");if(!a)return null;const s=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;On(n,a,t,!0,s,i,u,d);const f=l.reactive(n),c=e.getForParent(Je);c&&(n.height=Wt(e,c),n.width=Yt(e,c),l.watch([()=>Wt(e,c),()=>Yt(e,c)],([k,g])=>{f.height=k,f.width=g}));const S=!c;return l.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([k,g,h=-1,m=-1,$=0,w=0])=>{On(f,g,t,S,h,m,$,w)}),e.set(Je,f),f}function Kt(e){return e.get(Je)}function Tt(e,t){if(t=t??e.get(Je),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function $t(e,t){if(t=t??e.get(Je),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function Wt(e,t){if(t=t??e.get(Je),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=Tt(e,t),n=$t(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function Yt(e,t){return t=t??e.get(Je),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Ta(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function $a(e){return!!e.getForParent(Je)}var Me=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Me||{});function Vn(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Ie(e,t,o=1,n){const r=Ge();return r==null?e:o===0?l.computed(()=>{const a=r.getAll(t);for(let i=a.length-1;i>=0;i--){const u=a[i];if(Vn(u,n))return u}const s=e.value;return Vn(s,n)?s:null}):l.computed(()=>{const a=e.value;return Vn(a,n)?a:r?.get(t)})}function Oe(e){return Ie(e,"readonly",0,function(o){return ue(o)})}function Ve(e){return Ie(e,"disabled",0,function(o){return ue(o)})}function ge(e,t="modelValue",o=null,n){const r=l.toRef(e,t);let a=r.value;typeof o=="function"&&(a=o(r.value));const s=l.ref(a);return l.watch(r,i=>{if(typeof o=="function"){const u=o(i);u!==s.value&&(s.value=u,n&&n("setValue",u))}else i!==s.value&&(s.value=i,n&&n("setValue",i))}),s}const So=new Map,Gt=new Map;let Dn=null;function Ca(e){Dn=e}function xo(e,t,o){if(o){let n=Gt.get(o);n||(n=new Map,Gt.set(o,n)),n.set(e,t)}else So.set(e,t)}function Pe(e,t,o){!o&&Dn&&(o=Dn(e)??void 0);let n=null;if(o){let r=Gt.get(o);r&&(n=r.get(t))}return n||(n=So.get(t)),n}function Na(e,t){for(let o in e){const n=e[o];xo(o,n,t)}}function ka(e){Gt.delete(e)}function Ea(){return{top:0,left:0,bottom:0,right:0}}function Ia(e=0,t=0){if(lt){const o=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,r={width:o,height:n-he(e,n)-he(t,n)};return{rootWidth:o,rootHeight:n,pageLayout:r}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}function Oa(e,t){if(t.componentPrefix){const o=e.indexOf("-");return`${t.componentPrefix}${e.slice(o)}`}return e}class Va{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(a=>{if(a.install)t.use(a);else if(a.name){const s=Oa(a.name,o);t.component(s,a)}}),this.installers.forEach(a=>{a(t,o)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=ut();if(this.initPageLayout(o,r),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=mo(()=>{const i={...o},u=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;i.width=u,i.height=d,this.initPageLayout(i,r)},150);new window.ResizeObserver(a).observe(window.document.body)}for(const a in o)n.indexOf(a)===-1&&r.set(a,o[a])}initPageLayout(t,o){const n=t.headerBarHeight??0,r=t.footerBarHeight??0,a=nt({},Ea(),t.safeAreaInset),s=Ia(n,r),i=nt({},s.pageLayout,t.pageLayout);o=o??ut(),o.set("safeAreaInset",a),o.set("headerBarHeight",n),o.set("footerBarHeight",r),o.set("pageLayout",i),o.set("rootWidth",s.rootWidth),o.set("rootHeight",s.rootHeight)}setScopeGetter(t){Ca(t)}setAPI(t,o,n){xo(t,o,n)}getAPI(t,o,n){return Pe(t,o,n)}batchSetAPI(t,o){Na(t,o)}clearScopeAPI(t){ka(t)}getRootDomain(){return ut()}}const Da=[v.ElAffix,v.ElAlert,v.ElAutocomplete,v.ElAutoResizer,v.ElAvatar,v.ElBacktop,v.ElBadge,v.ElBreadcrumb,v.ElBreadcrumbItem,v.ElButton,v.ElButtonGroup,v.ElCalendar,v.ElCard,v.ElCarousel,v.ElCarouselItem,v.ElCascader,v.ElCascaderPanel,v.ElCheckTag,v.ElCheckbox,v.ElCheckboxButton,v.ElCheckboxGroup,v.ElCol,v.ElCollapse,v.ElCollapseItem,v.ElCollapseTransition,v.ElColorPicker,v.ElConfigProvider,v.ElContainer,v.ElAside,v.ElFooter,v.ElHeader,v.ElMain,v.ElDatePicker,v.ElDescriptions,v.ElDescriptionsItem,v.ElDialog,v.ElDivider,v.ElDrawer,v.ElDropdown,v.ElDropdownItem,v.ElDropdownMenu,v.ElEmpty,v.ElForm,v.ElFormItem,v.ElIcon,v.ElImage,v.ElImageViewer,v.ElInput,v.ElInputNumber,v.ElLink,v.ElMenu,v.ElSubMenu,v.ElMenuItem,v.ElMenuItemGroup,v.ElPageHeader,v.ElPagination,v.ElPopconfirm,v.ElPopover,v.ElPopper,v.ElProgress,v.ElRadio,v.ElRadioButton,v.ElRadioGroup,v.ElRate,v.ElResult,v.ElRow,v.ElScrollbar,v.ElSelect,v.ElOption,v.ElOptionGroup,v.ElSelectV2,v.ElSkeleton,v.ElSkeletonItem,v.ElSlider,v.ElSpace,v.ElSteps,v.ElStep,v.ElSwitch,v.ElTable,v.ElTableColumn,v.ElTableV2,v.ElTabs,v.ElTabPane,v.ElTag,v.ElTimePicker,v.ElTimeSelect,v.ElTimeline,v.ElTimelineItem,v.ElTooltip,v.ElTransfer,v.ElTree,v.ElTreeSelect,v.ElTreeV2,v.ElUpload],Fa=[v.ElInfiniteScroll,v.ElLoading,v.ElMessage,v.ElMessageBox,v.ElNotification,v.ElPopoverDirective],Ra=(e,t={})=>{const o=t.componentPrefix??"fox",n=o[0].toUpperCase()+o.slice(1);Da.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${n}${a.slice(2)}`,e.component(a,r)):e.use(r)}),Fa.forEach(r=>{e.use(r)})};function ie(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)},l.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,l.defineComponent(o)}}}function Te(e,t=null){if(t||(t=l.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const we={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},textAlign:{type:[String],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},Ee={prop:{type:String,required:!1},label:{type:String,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}},To={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}},$o={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{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},collapsePosition:{type:[String],requried:!1,default:"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:!0}},Co=[];for(const e in $o)Co.push(e);const Aa=Symbol.for("InnerPageScopeKey"),La={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},pureDataRules:{type:[Object],required:!1}},Ma=(e,t)=>({inheritAttrs:!0,props:{...we,...To,...La},setup(o,{slots:n}){const r=In(o.name,o),a=l.inject(Aa,!1);if(r){const f=wo(r,o);Te({getPageContentHeight:()=>Wt(r,f),getPageContentWidth:()=>Yt(r,f),getPageHeaderHeight:()=>Tt(r,f),getPageFooterHeight:()=>$t(r,f)}),f&&a&&(f.contentHeight="100%")}const s=l.computed(()=>({[e]:!0})),i=l.computed(()=>({})),u=l.getCurrentInstance(),d=(f,c=!1)=>{const S=u?.proxy;S&&typeof S.setNameValidateRules=="function"&&S.setNameValidateRules(f,!0,c)};return l.watch([()=>o.rules,()=>o.pureDataRules],([f,c],[S,k])=>{if(f&&S){const g=l.toRaw(S),h=l.toRaw(f),m=h?Reflect.ownKeys(h):[];(g?Reflect.ownKeys(g):[]).forEach(w=>{m.includes(w)||(h[w]=[])}),d(h)}if(c&&k){const g=l.toRaw(k),h=l.toRaw(c),m=h?Reflect.ownKeys(h):[];(g?Reflect.ownKeys(g):[]).forEach(w=>{m.includes(w)||(h[w]=[])}),d(h,!0)}},{deep:!0}),l.onMounted(()=>{if(o.rules){const f=l.toRaw(o.rules);d(f)}if(o.pureDataRules){const f=l.toRaw(o.pureDataRules);d(f,!0)}}),()=>{const f={class:s.value,style:i.value};return l.h("div",f,[n?.default?.()])}}}),{componentName:Ba,create:_a,scope:vh}=ie("page"),Fn=_a(Ma(Ba));function Ut(e){const t=l.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function Rn(e){const t=l.unref(e),o=window.getComputedStyle(t,null),n=parseFloat(o.getPropertyValue("padding-left")),r=parseFloat(o.getPropertyValue("padding-right")),a=parseFloat(o.getPropertyValue("padding-top")),s=parseFloat(o.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-r,height:t.clientHeight-a-s}}const qa=(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},align:{type:[String],default:"center"},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},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(r,a){const s=Ge(),i=s?Kt(s):null;i&&(i.headerMounted=!0);const u=e,d=l.computed(()=>({[u]:!0,[`${u}--border`]:r.border,[`${u}--fixed`]:r.fixed,[`${u}--safe-area-inset-top`]:r.safeAreaInsetTop})),f=l.computed(()=>({[`${u}__inner`]:!0,[`${u}__inner--${r.align}`]:!0})),c=r.height!==null&&r.height!==void 0?he(r.height):null,S=l.computed(()=>{const E={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const y=ze(r.padding??i.headerPadding);return Object.assign(E,y),c&&(i.headerHeight=c),i.headerHeight>0&&(E.height=i.headerHeight),E.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,E.safeAreaTop>0&&(E.top=E.safeAreaTop+(y.top??0),E.height&&E.height>0&&(E.height=E.height+E.safeAreaTop)),E}if(c&&(E.height=c),r.padding){const y=ze(r.padding);Object.assign(E,y)}return E}),k=l.ref(null),g=()=>{if(i&&k.value&&!Bt(k.value)){if(!n){const E=Ut(k.value);i.headerAllHeight=E.height}return i.headerMounted=!0,!0}return!1};let h=null;l.onMounted(()=>{i&&(zt(g,50,5,50,!0),window.ResizeObserver&&k.value&&(h=new window.ResizeObserver(()=>{g()}),h.observe(k.value)))}),l.onUnmounted(()=>{i&&(i.headerMounted=!1,h&&(h.disconnect(),h=null))});const m=l.computed(()=>{const E={};return S.value.height!==null&&S.value.height!==void 0&&(E.height=`${S.value.height}px`),S.value.top!==null&&S.value.top!==void 0&&(E.paddingTop=`${S.value.top}px`),S.value.left!==null&&S.value.left!==void 0&&(E.paddingLeft=`${S.value.left}px`),S.value.right!==null&&S.value.right!==void 0&&(E.paddingRight=`${S.value.right}px`),S.value.bottom!==null&&S.value.bottom!==void 0&&(E.paddingBottom=`${S.value.bottom}px`),E}),$=l.computed(()=>!(S.value.height!==null&&S.value.height!==void 0&&S.value.height<=0));function w(){a.emit("back")}function C(){a.emit("click-title")}function q(){a.emit("click-right")}function B(){a.emit("click-right-text")}const A=()=>{if(!r.leftShow)return null;const E=[];if(a.slots.left)E.push(a.slots.left());else{if(a.slots.leftIcon){const y=l.h("view",{class:"left-icon",onClick:w},[a.slots.leftIcon()]);E.push(y)}else if(r.leftIcon){const y=l.h("view",{class:"left-icon",onClick:w},[l.h(r.leftIcon)]);E.push(y)}if(r.leftText){const y=l.h("view",{class:"left-text",onClick:w},[r.leftText]);E.push(y)}}return E.length===0?null:l.h("view",{class:"fox-header-bar__left"},E)},L=()=>{if(!r.rightShow)return null;const E=[];if(a.slots.right)E.push(a.slots.right());else{if(r.rightText){const y=l.h("view",{class:"right-text",onClick:B},[r.rightText]);E.push(y)}if(a.slots.rightIcon){const y=l.h("view",{class:"right-icon",onClick:q},[a.slots.rightIcon()]);E.push(y)}else if(r.rightIcon){const y=l.h("view",{class:"right-icon",onClick:q},[l.h(r.rightIcon)]);E.push(y)}}return E.length===0?null:l.h("view",{class:"fox-header-bar__right"},E)},M=()=>{if(!r.titleShow)return null;const E=[],y=a.slots.default?a.slots.default():null;if(y)E.push(y);else{if(r.title){const j=l.h("view",{class:"title-text"},[r.title]);E.push(j)}if(a.slots.titleIcon){const j=l.h("view",{class:"title-icon",onClick:C},[a.slots.titleIcon()]);E.push(j)}else if(r.titleIcon){const j=l.h("view",{class:"title-icon",onClick:C},[l.h(r.titleIcon)]);E.push(j)}}return E.length===0?null:l.h("view",{class:"fox-header-bar__title"},E)},V=()=>{const E=[],y=a.slots.bottom?a.slots.bottom():null;return y&&E.push(y),E.length===0?null:l.h("view",{class:"fox-header-bar__bottom"},E)};return()=>{if(!$.value)return null;const E=[];if(a.slots.all)E.push(a.slots.all());else{const j=[],_=A();_&&j.push(_);const R=M();R&&j.push(R);const D=L();if(D&&j.push(D),j.length>0){const G=l.h("view",{class:f.value},j);E.push(G)}const K=V();K&&E.push(K)}if(E.length===0)return null;const y={class:d.value,style:m.value,ref:k};return l.h("view",y,E)}}}),{componentName:Pa,create:ja,scope:za}=ie("header-bar"),An=ja(qa(Pa,za,$e.ArrowLeft));function Ha(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,r){const a=Ge(),s=a?Kt(a):null,i=l.computed(()=>{const g=e;return{[g]:!0,[`${g}--${n.align}`]:!0,[`${g}--border`]:n.border,[`${g}--fixed`]:n.fixed,[`${g}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?he(n.height):null,d=l.computed(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&s){const h=ze(n.padding??s.footerPadding);return Object.assign(g,h),u&&(s.footerHeight=u),s.footerHeight>0&&(g.height=s.footerHeight),g.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,g.safeAreaBottom>0&&(g.bottom=g.safeAreaBottom+(h.bottom??0),g.height&&g.height>0&&(g.height=g.height+g.safeAreaBottom)),g}if(u&&(g.height=u),n.padding){const h=ze(n.padding);Object.assign(g,h)}return g}),f=l.ref(null),c=()=>{if(s&&f.value&&!Bt(f.value)){if(!o){const g=Ut(f.value);s.footerAllHeight=g.height}return s.footerMounted=!0,!0}return!1};let S=null;l.onMounted(()=>{s&&(zt(c,50,5,50,!0),window.ResizeObserver&&(S=new window.ResizeObserver(()=>{c()}),S.observe(f.value)))}),l.onUnmounted(()=>{s&&(s.footerMounted=!1,S&&(S.disconnect(),S=null))});const k=l.computed(()=>{const g={};return d.value.height!==null&&d.value.height!==void 0&&(g.height=ke(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(g.paddingTop=ke(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(g.paddingLeft=ke(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(g.paddingRight=ke(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(g.paddingBottom=ke(d.value.bottom)),g});return()=>{const g=r.slots.default?r.slots.default():[],h={ref:f,class:i.value,style:k.value};return l.h("view",h,g)}}}}const{componentName:Ka,create:Wa,scope:wh}=ie("footer-bar"),Ln=Wa(Ha(Ka));function Ya(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const n=Ge(),r=l.computed(()=>({[e]:!0})),a=n?Kt(n):null,s=l.computed(()=>{const d={};if(n&&a){if(o.padding){const k=ze(o.padding);Object.assign(a.contentPadding,k)}const f=Tt(n,a),c=$t(n,a);let S="";if(a.contentHeight?S=`${a.contentHeight}`:S=`${a.height}px`,a.contentPadding,d.height=S,a.contentPadding.top||f>0){const k=(a&&a.contentPadding&&a.contentPadding.top)??0;d.paddingTop=`${f+k}px`}if(a.contentPadding.bottom||c>0){const k=(a&&a.contentPadding&&a.contentPadding.bottom)??0;d.paddingBottom=`${c+k}px`}return a.contentPadding.left&&(d.paddingLeft=`${a.contentPadding.left}px`),a.contentPadding.right&&(d.paddingRight=`${a.contentPadding.right}px`),d}if(o.padding){const f=ze(o.padding);f.left&&(d.paddingLeft=`${f.left}px`),f.top&&(d.paddingTop=`${f.top}px`),f.right&&(d.paddingRight=`${f.right}px`),f.bottom&&(d.paddingBottom=`${f.bottom}px`)}return d}),i=l.ref(null),u=()=>{if(a&&i.value){const d=Rn(i.value);a.contentInnerHeight=d.height,a.contentInnerWidth=d.width}};return l.onMounted(()=>{u()}),n&&a&&l.watch([()=>Tt(n),()=>$t(n)],([])=>{u()}),{contentRef:i,classes:r,styles:s}}}}const{componentName:Ga,create:Ua,scope:Sh}=ie("content"),Xa=Ua(Ya(Ga));function Za(e,t,o,n,r,a){return l.openBlock(),l.createElementBlock("div",{ref:"contentRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.renderSlot(e.$slots,"default")],6)}const _e=(e,t)=>{const o=e.__vccOpts||e;for(const[n,r]of t)o[n]=r;return o},Mn=_e(Xa,[["render",Za]]),ct="GroupStateKey",No=Symbol.for("GroupScopeKey");function Xt(){return l.inject(No,!1)}function Zt(e=!0){l.provide(No,e)}function Ja(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const r=t[n];Nn(r)||(e[n]=r)})}function Qa(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Ja(n,t);const r=l.shallowRef(n),a=l.markRaw({layout:r,passport:0,order:{index:0}});return e.set(ct,a),a}function Bn(e,t,o=-1,n=-1,r=!1,a,s,i){const u=e.get(ct);if(!u)return;const d=e.get("groupLayout")??{};o===-1&&(o=d.column??1),n===-1&&(n=d.gutter??0),a||(a=d.minItemWidth??-1),s||(s=d.maxItemWidth??-1);const f=he(a),c=he(s);i||(i=d.type??"grid");const S=()=>{const k=t===""||t===-1,g=he(t);let h=ve(o);const m=he(n);if(!k){let C=(g-(h-1)*m)/h;for(;c!==-1&&C>c;)h++,C=(g-(h-1)*m)/h;for(;f!==-1&&h>1&&C<f;)h--,C=(g-(h-1)*m)/h}let $=!1;const w=u.layout;w.value.width=t,w.value.column!==h&&(w.value.column=h,$=!0),w.value.gutter!==m&&(w.value.gutter=m,$=!0),w.value.type!==i&&(w.value.type=i,$=!0),$&&l.triggerRef(w)};if(r)S();else{const k=++u.passport;setTimeout(()=>{k===u.passport&&S()},50)}}function Jt(e,t=!1){let o;return t?o=e.getForParent(ct):o=e.get(ct),o.layout}function Qt(e,t=!1){let o;return t?o=e.getForParent(ct):o=e.get(ct),o.order}function ko(e,t=1){if(t==="stretch")return-1;const o=ve(t);return o===-1?100:100*o/e}function en(e,t,o=1,n=0,r){const a={};let s=0;r?s=he(r):s=ko(t.column,o),s>0&&(a.width=`${s}%`);const i=ko(t.column,n);i>0&&(a["margin-left"]=`${i}%`);const u=t.gutter/2;return u>0&&(a["padding-left"]=`${u}px`,a["padding-right"]=`${u}px`),a}function tn(e,t,o=1,n=0){if(o==="stretch"){const u=e.index%t.column,d=u+(t.column-u);return e.index=e.index+(d-u),{"grid-column":`${u+1} / -1`}}let r=ve(o);if(r===-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(r>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 a=ve(n)%t.column;let s=(e.index+a)%t.column,i=s+r;return i>t.column?(s=0,i=s+r,e.index=e.index+(t.column-s)+r):e.index=e.index+a+r,a>0?{"grid-column":`${s+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}const Eo=Symbol("RollingStateKey");function ei(e){l.provide(Eo,e)}function ti(){return l.inject(Eo,null)}function _n(e){let t=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const r=parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("padding-bottom"));t=e.clientHeight-r-a}else t=e.offsetHeight;return t}function ni(e){let t=_n(e);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=_n(o),document.body.removeChild(o)}return t}function li(e,t,o){if(e<=0)return"1fr";const n=(e-(t-1)*o)/t;return n>0?`${n}px`:"1fr"}const oi={...we,...To,...$o};function ri(e,t,o){return{props:oi,emits:["update:collapse","header-click"],setup(n,r){const a=In(n.name,n,Co),s=Qa(a,{type:n.type}),i=Xt();Zt(!0);const u=n.rollingDisplay?ti():null,d=l.ref(null),f=l.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),c=l.computed(()=>i&&a?Jt(a,!0).value:null),S=l.getCurrentInstance(),k=(H,J=!1)=>{const te=S?.proxy;te&&typeof te.setNameValidateRules=="function"&&te.setNameValidateRules(H,!0,J)};l.watch([()=>n.rules,()=>n.pureDataRules],([H,J],[te,T])=>{if(H&&te){const W=l.toRaw(te),ne=l.toRaw(H),oe=ne?Reflect.ownKeys(ne):[];(W?Reflect.ownKeys(W):[]).forEach(se=>{oe.includes(se)||(ne[se]=[])}),k(ne)}if(J&&T){const W=l.toRaw(T),ne=l.toRaw(J),oe=ne?Reflect.ownKeys(ne):[];(W?Reflect.ownKeys(W):[]).forEach(se=>{oe.includes(se)||(ne[se]=[])}),k(ne,!0)}},{deep:!0});const g=e,h=l.computed(()=>{const H={};H.height=D.value;const J=i?Qt(a,!0):null;if(c.value&&J){if(c.value.type==="grid"){const te=tn(J,c.value,n.span,n.offset);Object.assign(H,te)}else if(c.value.type==="flow"){const te=en(J,c.value,n.span,n.offset,n.width);Object.assign(H,te)}}else if(n.width){const te=ke(n.width);H.width=te}return H}),m=l.computed(()=>{const H=s.layout.value.type;return H==="grid"||H==="flow"?{[`${g}--${H}`]:!0,[`${g}--${H}-justify-${n.justify}`]:!0,[`${g}--${H}-align-${n.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${H}`]:!0,[`${g}--gutter`]:!0}}),$=l.computed(()=>{if(s.layout.value.type==="grid"){let J="";if(n.columnWidth)J=`repeat(auto-fill, ${n.columnWidth})`;else{const te=li(M.value,s.layout.value.column,s.layout.value.gutter);J=`repeat(${s.layout.value.column}, ${te})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":J}}}),w=l.toRef(n,"gutter"),C=l.toRef(n,"column"),q=l.computed(()=>i||f.value?!0:ue(n.isWrap)),B=[],A=H=>{B.push(H)},L=()=>{let H=B.length;B.splice(0,H)},M=l.ref(-1),V=H=>{const J=Rn(H).width;J>0&&J!==M.value&&(M.value=J)};Bn(a,M.value,C.value,w.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&l.watch([M,C,w],([H,J,te])=>{s.order.index=0,Bn(a,H,J,te,!1,n.minItemWidth,n.maxItemWidth,n.type)});const E=l.computed(()=>K.value?n.expandText??"":n.collapseText??""),y=l.computed(()=>({[`${e}__header-collapse-text`]:!0})),j=l.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!K.value,"is-collapse":K.value})),_=l.ref(),R=l.ref(),D=l.computed(()=>G.value||ke(n.height)||""),K=l.ref(!1),G=l.ref(""),U=l.ref(!1);let Z=-1;const ee=(H,J=!0)=>{const te=_.value;if(te&&K.value!==H){if(Z=Z===-1?ni(te):Z,U.value=!0,J)if(te.style["will-change"]="height",te.ontransitionend=function(){te.ontransitionend=null,this.style["will-change"]="auto",H||(G.value="",U.value=!1)},H){let T=0;n.collapseHeight?T=n.collapseHeight:R.value&&R.value.classList.contains(`${e}__header`)&&(T=R.value.offsetHeight),G.value=`${Z}px`,l.nextTick(()=>{G.value=`${T}px`})}else G.value=`${Z}px`;else if(H){let T=0;n.collapseHeight?T=n.collapseHeight:R.value&&R.value.classList.contains(`${e}__header`)&&(T=R.value.offsetHeight),G.value=`${T}px`}else U.value=!1,G.value=`${Z}px`;K.value=H,r.emit("update:collapse",H)}};l.watch(()=>n.collapse,H=>{ee(H)});const le=H=>{r.emit("header-click",H)},O=()=>{x()},x=H=>{H=H??!K.value,ee(H)};Te({toggleCollapse:x,doLayout:()=>{B[0]&&(V(B[0]),Bn(a,M.value,C.value,w.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let N=null,b=!0;const Y=H=>{if(n.rules){const J=l.toRaw(n.rules);k(J)}if(n.pureDataRules){const J=l.toRaw(n.pureDataRules);k(J,!0)}if(lt&&(H&&ee(ue(n.collapse),!1),n.autoLayout&&Array.isArray(B)&&B.length>0)){const J=B[0];V(J),window.ResizeObserver&&(N=new window.ResizeObserver(()=>{V(J)}),N.observe(J))}},P=()=>{N?.disconnect(),N=null},z=!f.value||u?.acquire();z&&(d.value=f.value?!0:null),l.onMounted(()=>{if(z&&(Y(b),b=!1),f.value&&u){let H=null,J=u.initialHeight;u.observe(_.value,te=>{if(te!==d.value)if(te)d.value=!0,K.value||(G.value=""),H=setTimeout(()=>{H=null,d.value!==!1&&(Y(b),b=!1)},100);else{if(H!==null&&clearTimeout(H),d.value=!1,!K.value)if(b)G.value=u.initialHeight;else{let T=_n(_.value);T<=0?G.value=J:(G.value=`${T}px`,J=G.value)}b||P()}})}}),l.onUnmounted(()=>{N?.disconnect(),u&&u.unobserve(_.value)});const F=(H="right")=>{const J=[];if(E.value){const W={class:y.value},ne=l.h("span",W,[E.value]);J.push(ne)}const te={class:j.value},T=o(n.collapseIcon,te);return T&&J.push(T),J.length>0?l.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${H}`]:!0},onClick:O},J):null},X=(H,J,te,T)=>{const W={...m.value};return J===0&&(W[`${g}__first`]=!0),te>=T-1&&(W[`${g}__last`]=!0),l.h("div",{ref:A,key:`${J}`,class:W,style:$.value},H)};return()=>{if(f.value&&d.value!==!0){const W=n.tag||"div";return l.h(W,{ref:_,prop:n.name,class:{[`${g}`]:!0,"is-collapse":U.value},style:h.value},[])}s.order.index=0;const H=[];let J=0;if(r.slots.header){const W={key:`${J++}`,ref:R,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:le},ne=l.h("div",W,[r.slots.header()]);H.push(ne)}else{const W=[],ne=n.collapsePosition==="left";if(ne&&n.showCollapse){const oe=F("left");oe&&W.push(oe)}if(n.title||r.slots.title){if(n.showMark){const oe={class:{[`${g}__header-mark`]:!0}};n.markColor&&(oe.style={background:n.markColor});const de=l.h("div",oe);W.push(de)}if(r.slots.title){const oe=l.h("div",{class:{[`${g}__header-title`]:!0}},[r.slots.title()]);W.push(oe)}else if(n.title){const oe=l.h("div",{class:{[`${g}__header-title`]:!0}},[n.title]);W.push(oe)}}if(r.slots.toolbar&&W.push(r.slots.toolbar()),!ne&&n.showCollapse){const oe=F("right");oe&&W.push(oe)}if(W.length>0){const oe={key:`${J++}`,ref:R,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:le},de=l.h("div",oe,W);H.push(de)}}L();const te=r.slots.default?r.slots.default():[],T=s.layout.value.type;if(T==="grid"){const W=X(te,J++,0,te.length);H.push(W)}else if(T==="flow"){const W=X(te,J++,0,te.length);H.push(W)}else for(let W=0;W<te.length;W++){const ne=te[W],oe=X([ne],J++,W,te.length);H.push(oe)}if(q.value){const W=n.tag||"div";return l.h(W,{ref:_,prop:n.name,class:{[`${g}`]:!0,"is-collapse":U.value},style:h.value},[H])}else return H}}}}const{componentName:ai,create:ii,scope:si}=ie("group"),qn=ii(ri(ai,si,(e,t)=>(e=e??$e.ArrowUp,l.h(v.ElIcon,t,{default:()=>[l.h(e)]}))));function ui(e){return e===window}const ci=/matrix\((.+)\)/,Io=e=>{const t=l.unref(e);if(!t)return{x:0,y:0};if(ui(t))return{x:0,y:0};let o=0,n=0,r=t;for(;r!==null;)o+=r.offsetLeft,n+=r.offsetTop,r=r.offsetParent;let a=0,s=0,i=0,u=0;for(r=t;r!==document;){s+=r.scrollTop,a+=r.scrollLeft;const{transform:d}=window.getComputedStyle(r);if(d){const f=ci.exec(d);if(f){let S=f[1].split(/\s*,\s*/);S.length==6&&(i+=Number(S[4]),u+=Number(S[5]))}}r=r.parentNode}return o-=a,n-=s,o+=i,n+=u,{x:o,y:n}};class fi{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 di{monitorRegister=new WeakMap;watch(t,o){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a||(a=new fi,n.addEventListener("scroll",a.listen),n===document.body&&n.addEventListener("resize",a.listen),this.monitorRegister.set(n,a)),a.add(o),n=n.parentNode}}unwatch(t,o){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a&&(a.remove(o),a.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",a.listen),n===document.body&&n.removeEventListener("resize",a.listen))),n=n.parentNode}}}const Oo=new di,Vo={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:hi,create:gi}=ie("price"),mi=gi({props:{...Vo},setup(e){const t=l.computed(()=>({[hi]:!0})),o=l.computed(()=>e.needSymbol?e.symbol:""),n=l.computed(()=>bt(e.price)==0?"":At(e.price,e.decimalLength,!0,ve(e.digits),e.separator)),r=l.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),a=l.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:r,decimalText:a}}}),pi=["innerHTML"],yi=["innerHTML"];function bi(e,t,o,n,r,a){return l.openBlock(),l.createElementBlock("view",{class:l.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,pi)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--${e.size}`)},l.toDisplayString(e.intText),3),e.decimalText.length!=0?(l.openBlock(),l.createElementBlock("view",{key:1,class:l.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--decimal-${e.size}`)},l.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(l.openBlock(),l.createElementBlock("view",{key:2,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,yi)):l.createCommentVNode("",!0)],2)}const nn=_e(mi,[["render",bi]]),{componentName:Pn,create:vi}=ie("hint-text"),wi=vi({components:{Price:nn},props:{...Vo,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,t){const o=l.ref({top:null,right:null,bottom:null,left:null}),n=l.ref({x:0,y:0}),r=l.ref(0),a=l.ref(0),s=l.ref(e.placement),i=l.ref(!1),u=l.ref(null),d=(y,j,_,R,D,K)=>{const G=document.documentElement.clientWidth||document.body.clientWidth,U=document.documentElement.clientHeight||document.body.clientHeight,Z=y.split("-");let ee=[];Z[0]==="top"?ee=["top","bottom","right","left"]:Z[0]==="bottom"?ee=["bottom","top","right","left"]:Z[0]==="left"?ee=["left","top","bottom","right"]:Z[0]==="right"&&(ee=["right","top","bottom","left"]);const le={top:null,right:null,bottom:null,left:null},O=[];for(let x=0;x<ee.length;x++){const I=ee[x];if(O[0]=I,Z[1]&&(O[1]=Z[1]),I==="top"){const N=j.y-K-e.arrowSize-e.offset;if(N>=0){le.top=N;let b=0;Z[1]==="start"?b=j.x:Z[1]==="end"?b=j.x+_-D:b=j.x+_/2-D/2;const Y=G-b-D;Y<0?(b+=Y,c.value=-Y):c.value=0,le.left=b<0?0:b;break}}else if(I==="bottom"){const N=j.y+R+e.arrowSize+e.offset;if(N+K<=U){le.top=N;let b=0;Z[1]==="start"?b=j.x:Z[1]==="end"?b=j.x+_-D:b=j.x+_/2-D/2;const Y=G-b-D;Y<0?(b+=Y,c.value=-Y):c.value=0,le.left=b<0?0:b;break}}else if(I==="left"){const N=j.x-D-e.arrowSize-e.offset;if(N>=0){le.left=N;let b=0;Z[1]==="start"?b=j.y:Z[1]==="end"?b=j.y+R-K:b=j.y+R/2-K/2,le.top=b<0?0:b;break}}else if(I==="right"){const N=j.x+_+e.arrowSize+e.offset;if(N+D<=G){le.left=N;let b=0;Z[1]==="start"?b=j.y:Z[1]==="end"?b=j.y+R-K:b=j.y+R/2-K/2,le.top=b<0?0:b;break}}}return{bestPlacement:O.join("-"),bestInsetRect:le}},f=(y,j,_=10)=>{if(!lt||j===!1||!y)return;n.value=Io(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const R=u.value.offsetHeight,D=u.value.offsetWidth,{bestPlacement:K,bestInsetRect:G}=d(e.placement,n.value,r.value,a.value,D,R);s.value=K,o.value=G,i.value=!0},c=l.ref(0),S=xt(()=>{f(e.message,e.visible)},10),k=l.ref(e.visible);l.watch(()=>e.visible,y=>{k.value=y});const g=l.computed(()=>k.value&&h.value),h=l.ref(!0),m=xt(y=>{const j=y[0];j&&(h.value=j.isIntersecting)},10),$=new IntersectionObserver(m);l.watch([()=>e.message,()=>e.visible],([y,j])=>{setTimeout(()=>{f(e.message,e.visible)},0)}),l.onMounted(()=>{setTimeout(()=>{f(e.message,e.visible)},0),Oo.watch(e.reference,S),$.observe(e.reference)}),l.onBeforeMount(()=>{Oo.unwatch(e.reference,S),$.unobserve(e.reference),$.disconnect()});const w=l.computed(()=>{const y={[Pn]:!0};return s.value.startsWith("top")?y["is-top"]=!0:s.value.startsWith("right")?y["is-right"]=!0:s.value.startsWith("bottom")?y["is-bottom"]=!0:s.value.startsWith("right")&&(y["is-right"]=!0),e.size==="small"?y["is-small"]=!0:e.size==="large"&&(y["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(y[`${e.customClass}`]=!0),y}),C=l.computed(()=>{const y={};o.value.top!==null&&(y.top=`${o.value.top}px`),o.value.right!==null&&(y.right=`${o.value.right}px`),o.value.bottom!==null&&(y.bottom=`${o.value.bottom}px`),o.value.left!==null&&(y.left=`${o.value.left}px`),e.autoFit&&(y["min-width"]=`${r.value}px`);const j=document.documentElement.clientWidth||document.body.clientWidth;return y["max-width"]=`${j}px`,i.value&&(y.opacity="1"),e.transition||(y.transition="none"),e.zIndex&&(y["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(y,e.customStyle),y}),q=l.computed(()=>{const y=[`${Pn}__content`];return e.customTextClass&&y.push(e.customTextClass),y}),B=l.computed(()=>{const y={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(y,e.customTextStyle),y}),A=l.computed(()=>({[`${Pn}__arrow`]:!0})),L=l.computed(()=>{const y={};return e.showArrow?(y.width=`${e.arrowSize}px`,y.height=`${e.arrowSize}px`,s.value==="top"?(y.left="50%",y.bottom=`-${e.arrowSize}px`,y.transform=" translate(-50%, 0%)"):s.value==="top-start"?(y.left=`${e.arrowOffset+c.value}px`,y.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(y.right=`${e.arrowOffset-c.value}px`,y.bottom=`-${e.arrowSize}px`):s.value==="right"?(y.left=`-${e.arrowSize}px`,y.top="50%",y.transform=" translate(0%, -50%)"):s.value==="right-start"?(y.left=`-${e.arrowSize}px`,y.top=`${e.arrowOffset}px`):s.value==="right-end"?(y.left=`-${e.arrowSize}px`,y.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(y.left="50%",y.top=`-${e.arrowSize}px`,y.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(y.left=`${e.arrowOffset+c.value}px`,y.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(y.right=`${e.arrowOffset-c.value}px`,y.top=`-${e.arrowSize}px`):s.value==="left"?(y.right=`-${e.arrowSize}px`,y.top="50%",y.transform=" translate(0%, -50%)"):s.value==="left-start"?(y.right=`-${e.arrowSize}px`,y.top=`${e.arrowOffset}px`):s.value==="left-end"&&(y.right=`-${e.arrowSize}px`,y.bottom=`-${e.arrowOffset}px`),y):{display:"none"}}),M=l.computed(()=>g.value&&e.closeOnClick),V=l.computed(()=>{const y={};return e.zIndex&&(y["z-index"]=`${e.zIndex}`),y});return{show:g,tipRef:u,classes:w,styles:C,textClasses:q,textStyles:B,arrowClasses:A,arrowStyles:L,overlayShow:M,overlayStyle:V,onClickOverlay:()=>{k.value=!1,t.emit("update:visible",!1)}}}}),Si=["innerHTML"];function xi(e,t,o,n,r,a){const s=l.resolveComponent("Price");return l.openBlock(),l.createElementBlock(l.Fragment,null,[e.overlayShow?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:l.normalizeStyle(e.overlayStyle),onClick:t[0]||(t[0]=(...i)=>e.onClickOverlay&&e.onClickOverlay(...i))},null,4)):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",{ref:"tipRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.createElementVNode("div",{class:l.normalizeClass(e.textClasses),style:l.normalizeStyle(e.textStyles)},[e.type=="number"?(l.openBlock(),l.createBlock(s,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(l.openBlock(),l.createElementBlock("span",{key:1,innerHTML:e.message},null,8,Si))],6),l.createElementVNode("div",{class:l.normalizeClass(e.arrowClasses),style:l.normalizeStyle(e.arrowStyles)},null,6)],6),[[l.vShow,e.show]])],64)}const Ct=_e(wi,[["render",xi]]);class Do{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 jn={},Ti=new Do,ft=new Map,ln=e=>{if(e){const t=document.getElementById(e);ft.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of ft.keys()){const o=document.getElementById(t);o&&o.parentNode?.removeChild(o)}ft.clear()}},$i=e=>{e.unmount=ln;const t=document.getElementById(e.id);if(t){const o=ft.get(e.id);o?e={...jn,...o,...e}:e={...jn,...e},e.transition=!1;const n=l.createVNode(Ct,e);return l.render(n,t),e.id}},Ci=e=>{e.unmount=ln;let t=e.id??`hinttext_${Ti.get()}`;e={...jn,...e},e.id=t,ft.set(t,e);const o=document.createElement("div");o.id=e.id;const n=l.createVNode(Ct,e);return l.render(n,o),document.body.appendChild(o),t},Ni=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},De={show(e,t,o={},n=!0){Ni(t);const r=o.id;return r&&ft.has(r)?$i({...o,message:t,reference:e}):(n&&ln(),Ci({...o,message:t,reference:e}))},hide(e){ln(e)},install(e){e.config.globalProperties.$hintText=De}};function ki(e,t,o,n=!1){return{inheritAttrs:!0,props:{...we,...Ee},emits:["appear","disappear"],setup(r,a){const s=r.prop??a.attrs.name;xe({componentName:e,validate:!1},s);const i=Ge(),u=Xt();Zt(!1);const d=l.computed(()=>u&&i?Jt(i,!1).value:null),f=e,c=l.ref(null),S=l.computed(()=>{const T={[f]:!0,[`${f}__gutter`]:d.value&&d.value.type!=="flow",[`${f}__stretch`]:r.span==="stretch",[`${f}__input--border`]:ue(r.hasBorder)};if(T[r.errorMarkClass]=!!K.value,T[r.warnMarkClass]=!!R.value,T[r.infoMarkClass]=!!j.value,typeof c.value=="function"){const W=c.value(s);T[W]=!0}else if(typeof c.value=="string"){const W=c.value;T[W]=!0}return T}),k=l.ref(null),g=l.computed(()=>{const T={};if(r.width)r.width!=="auto"&&(T.width=ke(r.width));else{const W=u&&i?Qt(i,!1):null;if(d.value&&W){if(d.value.type==="grid"){const ne=tn(W,d.value,r.span,r.offset);Object.assign(T,ne)}else if(d.value.type==="flow"){const ne=en(W,d.value,r.span,r.offset,r.width);Object.assign(T,ne)}}}if(typeof k.value=="function"){const W=k.value(s);W&&Object.assign(T,W)}else if(k.value&&typeof k.value=="object"){const W=k.value;Object.assign(T,W)}return T}),h=l.ref(null),m=l.computed({get:()=>h.value??ue(r.isRequired),set:T=>{h.value=T}}),$=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",w=Ie(l.toRef(r,"labelPosition"),"labelPosition",Me.Near),C=l.computed(()=>w&&w.value==="top"?"top":w&&w.value==="right"?"right":"left"),q=l.computed(()=>({[`${f}__main`]:!0,[`${f}__main--${C.value}`]:!0})),B=l.computed(()=>({label:!0,[`label--${C.value}`]:!0})),A=Ie(l.toRef(r,"labelWidth"),"labelWidth",Me.Near),L=l.computed(()=>A&&A.value?{width:ke(A.value)}:{}),M=l.computed(()=>({"label--string":!0,"label--required":m.value})),V=l.computed(()=>({content:!0,[r.contentClass]:!0})),E=l.computed(()=>({...r.contentStyle})),y=l.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Te({setRequired(T){m.value=T},setErrorTip(T){y.errorTip=T},setErrorIcon(T){y.errorIcon=T},setWarnTip(T){y.warnTip=T},setWarnIcon(T){y.warnIcon=T},setInfoTip(T){y.infoTip=T},setInfoIcon(T){y.infoIcon=T},setCustomClassName(T){c.value=T},setCustomStyle(T){k.value=T}});const j=l.computed(()=>r.infoTip||y.infoTip),_=l.computed(()=>r.infoIcon||y.infoIcon),R=l.computed(()=>r.warnTip||y.warnTip),D=l.computed(()=>r.warnIcon||y.warnIcon),K=l.computed(()=>r.errorTip||y.errorTip),G=l.computed(()=>r.errorIcon||y.errorIcon),U=l.computed(()=>K.value?"error":R.value?"warn":j.value?"info":""),Z=()=>U.value.length>0,ee=l.computed(()=>U.value==="error"?K.value:U.value==="warn"?R.value:U.value==="info"?j.value:""),le=l.computed(()=>U.value==="error"?G.value:U.value==="warn"?D.value:U.value==="info"?_.value:null),O=l.computed(()=>{const T={[`${f}__tip`]:!0,[`${f}__tip--${U.value}`]:!0,[`${f}--animate`]:!0};return U.value==="error"&&r.errorClass?T[`${r.errorClass}`]=!0:U.value==="warn"&&r.warnClass?T[`${r.warnClass}`]=!0:U.value==="info"&&r.infoClass&&(T[`${r.infoClass}`]=!0),T}),x=l.computed(()=>{const T={};return w&&w.value==="top"||!$()?T["padding-left"]="0px":A&&A.value&&(T["padding-left"]=ke(A.value)),T}),I=l.ref();let N="";l.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([T,W,ne,oe])=>{I.value&&(T&&!me(W)?N?o.show(I.value,W,{...oe,id:N,type:ne},!0):N=o.show(I.value,W,{...oe,type:ne},!0):o.hide(N))});let b=null;const Y=()=>{b||!I.value||(b=new IntersectionObserver(T=>{let W=!1;for(let ne of T)if(ne.intersectionRatio>0){W=!0,W&&a.emit("appear",ne);break}W||a.emit("disappear")}),b.observe(I.value))},P=()=>{!b||!I.value||(b.unobserve(I.value),b=null)};l.watch(()=>ue(r.appearListen),T=>{T?Y():P()}),l.onMounted(()=>{ue(r.appearListen)&&Y()}),l.onUnmounted(P);const z=()=>{if(!$())return null;const T=[],W=a.slots?.label?.()??r.label,ne={class:M.value},oe=l.h("div",ne,[W]);if(T.push(oe),a.slots.fixedPreTip){const se=a.slots.fixedPreTip();T.push(se)}const de={class:B.value,style:L.value};return l.h("div",de,T)},F=()=>{const T=[];if(a.slots.prepend){const ne=a.slots.prepend();T.push(ne)}if(a.slots.default){const ne=a.slots.default();T.push(ne)}if(a.slots.append){const ne=a.slots.append();T.push(ne)}if(a.slots.fixedTip){const ne={class:[`${f}__fixed-tip`]},oe=l.h("div",ne,[a.slots.fixedTip()]);T.push(oe)}const W={ref:I,class:V.value,style:E.value};return l.h("div",W,T)},X=()=>{const T=le.value;return T?typeof T=="function"?l.h("div",{class:"fox-item__tip--icon"},[T()]):l.h("div",{class:"fox-item__tip--icon"},[l.h(T)]):null},H=()=>{const T=ee.value;return T?typeof T=="function"?l.h("div",{class:"fox-item__tip--text"},[T()]):l.h("div",{class:"fox-item__tip--text"},[T]):null},J=()=>{if(!Z())return null;const T=[],W=X();W&&T.push(W);const ne=H();ne&&T.push(ne);const oe={class:O.value,style:x.value};return l.h("div",oe,T)},te=()=>a.slots?.hide?.()??null;return()=>{const T=[],W=[],ne=z();ne&&W.push(ne);const oe=F();oe&&W.push(oe);const de={class:q.value},se=l.h("div",de,W);T.push(se);const Q=J();Q&&T.push(Q);const re=te();re&&T.push(re);const ae={class:S.value,style:g.value,prop:r.prop};return l.h("div",ae,T)}}}}const{componentName:Ei,create:Ii,scope:Oi}=ie("item"),Se=Ii(ki(Ei,Oi,De,!1));function Vi(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(o,n){const r=Ge(),a=Xt();Zt(!1);const s=l.computed(()=>a&&r?Jt(r,!1).value:null),i=e,u=l.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:o.span==="stretch"})),d=l.computed(()=>{const f={},c=a&&r?Qt(r,!1):null;if(s.value&&c)if(s.value.type==="grid"){const S=tn(c,s.value,o.span,o.offset);Object.assign(f,S)}else if(s.value.type==="flow"){const S=en(c,s.value,o.span,o.offset,o.width);Object.assign(f,S)}else return o.width&&(f.width=ke(o.width)),f;else o.width&&(f.width=ke(o.width));return f});return()=>{const f={class:u.value,style:d.value};return n.slots&&typeof n.slots.default=="function"?l.h("div",f,n.slots.default()):l.h("div",f)}}}}const{componentName:Di,create:Fi,scope:Th}=ie("slot-item"),zn=Fi(Vi(Di));function Ri(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,String],required:!1,default:!1}},setup(o,n){const r=e,a=l.computed(()=>({[r]:!0,[`${r}__stretch`]:o.span==="stretch",[`${r}__${o.align}`]:!0})),s=Ge(),i=Xt();Zt(!1);const u=l.computed(()=>{const d={};if(i&&s){const f=Jt(s,!1),c=Qt(s,!1);if(f.value&&c)if(f.value.type==="grid"){const S=tn(c,f.value,o.span,o.offset);Object.assign(d,S)}else if(f.value.type==="flow"){const S=en(c,f.value,o.span,o.offset,o.width);Object.assign(d,S)}else o.width&&(d.width=ke(o.width))}else o.width&&(d.width=ke(o.width));return d});return()=>{const d=[];if(n.slots.default){const c=n.slots.default();if(o.divide)for(let S=0;S<c.length;S++){if(S>0){const k=l.h("div",{class:{[`${r}__divide`]:!0}});d.push(k)}d.push(c[S])}else Reflect.apply([].push,d,c)}const f={class:a.value,style:u.value};return l.h("div",f,d)}}}}const{componentName:Ai,create:Li,scope:$h}=ie("row-item"),Hn=Li(Ri(Ai)),He=(e={})=>{if(!e)return{};const t={};return Reflect.ownKeys(e).forEach(n=>{typeof n=="string"&&n.indexOf("data-fox")!==0&&(t[n]=e[n])}),t},Fo={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 Mi(e,t,o){return{props:{...we,...Ee,...Fo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Ve(l.computed(()=>n.disabled)),s=Oe(l.computed(()=>n.readonly)),{emitEvent:i}=xe({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=ge(n,"modelValue",null,i),S=e,k=l.computed(()=>({[S]:!0,[`${S}__disabled`]:a.value,[`${S}__readonly`]:s.value})),g=_=>{c.value=_,i("update:modelValue",_),i("input",_)},h=_=>{i("change",_)};let m=ge(n,"hintText"),$=l.ref(!1);const w=_=>{let D=_.target.value;f.value=!0,me(m.value)||($.value=!0),i("focus",D,_)},C=_=>{setTimeout(()=>{$.value&&($.value=!1),f.value=!1},0);let D=_.target.value;n.maxLength&&D.length>Number(n.maxLength)&&(D=D.slice(0,Number(n.maxLength))),i("blur",D,_)},q=()=>{i("clear","")},B=l.ref(!1);let A=null;const L=()=>{n.showTooltip&&B.value===!1&&(A&&clearTimeout(A),A=setTimeout(()=>{B.value=!0},150))},M=()=>{A&&(clearTimeout(A),B.value=!1,A=null)},V=l.computed(()=>B.value||$.value),E=l.computed(()=>B.value?c.value:m.value),y=l.computed(()=>bt(n.unit)>0),j=l.ref();return Te({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()},select:()=>{j?.value.select()}}),()=>{const R={...He(r.attrs),ref:j,class:k.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:s.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:q,onChange:h,onInput:g,onFocus:w,onBlur:C,onMouseover:L,onMouseleave:M},D={};r.slots.prepend&&(D.prepend=r.slots.prepend),r.slots.append&&(D.append=r.slots.append),r.slots.prefix&&(D.prefix=r.slots.prefix),r.slots.suffix?D.suffix=r.slots.suffix:y.value&&(D.suffix=()=>[n.unit]);const K=[],G=l.h(v.ElInput,R,D);K.push(G);const U={default:()=>K};r.slots.default&&(U.label=r.slots.default),r.slots.default&&(U.fixedTip=r.slots.fixedTip);const ee={...Ne(n,Fo),hintText:E.value,hintVisible:V.value,prop:`${n.prop}_item`};return l.h(o,ee,U)}}}}const{componentName:Bi,create:_i,scope:qi}=ie("input-item"),Kn=_i(Mi(Bi,qi,Se));function Qe(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Nt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Ro(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function Pi(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let ji=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 r=Pe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(We(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function zi(){const e=l.getCurrentInstance();return new ji(e.proxy)}function Ao(e,t,o){const n=Qe(e,t),r=Qe(e,o);if(n!==r)return!1;const a=Nt(e,t),s=Nt(e,o);return a===s}function Lo(e,t,o,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let s of n){const i=Ro(e,s);if(Array.isArray(i)&&i.length>0){const u=Lo(e,a,o,i)??[];Reflect.apply([].push,r,u)}else{let u=!1;if(o==="text")u=Qe(e,s)===a;else if(o==="item")u=Ao(e,s,a);else{let d=Nt(e,s);d==null&&(d=Qe(e,s)),u=d===a}if(u){r.push(s);break}}}}),r}function Hi(e){return{text:e,value:e}}const Mo={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],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},appearLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function Ki(e,t,o){return{props:{...we,...Ee,...Mo},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(n,r){const a=Ve(l.computed(()=>n.disabled)),s=Oe(l.computed(()=>n.readonly)),{emitEvent:i}=xe({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(null),c=l.ref([]),S=l.computed(()=>c.value?c.value.map(X=>Qe(n,X)).join(" "):""),k=(F,X,H,J=!0)=>{const te=Lo(n,F,X,H);if(te===null){if(c.value===null||c.value.length===0)return;f.value=null,c.value=[],J&&(i("update:modelValue",null),i("update:text",null),i("change",null));return}let T=!0;if(te.length!==c.value.length)T=!1;else for(let W=0;W<te.length;W++){const ne=te[W],oe=c.value[W];if(!Ao(n,ne,oe)){T=!1;break}}if(!T){c.value=te;let W=[],ne=[],oe=[];te.forEach(re=>{const ae=Nt(n,re),ce=Qe(n,re);W.push(ae),oe.push(ce),n.valueType==="text"?ne.push(ce):n.valueType==="item"?ne.push(re):ne.push(ae)});let de,se,Q;ue(n.multiple)?(f.value=W,de=l.toRaw(ne),se=oe,Q=l.toRaw(te)):(f.value=W[0]??"",de=l.toRaw(ne[0]??""),se=oe[0]??"",Q=l.toRaw(te[0])),J&&(i("update:modelValue",de),i("change",de,Q)),i("update:text",se)}},g=l.ref(null),h=l.ref(null),m=l.computed(()=>h.value??g.value??[]),$=Ie(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,F=>ue(F)),w=zi(),C=async(F,X)=>{if(F){const H=await w.load("select",F,X);if(H.length>0)if(typeof H[0]=="string"){let T=H.map(W=>Hi(W));g.value=T}else g.value=H;else g.value=null}};l.watch([()=>n.source,()=>n.params],([F,X])=>{h.value=null,C(F,X)},{immediate:!$.value});let q=!1;const B=()=>{q||(q=!0,C(n.source,n.params))};l.watch([()=>g.value,()=>n.modelValue],([F,X])=>{if(V()&&ue(n.multiple)){Ye(X,f.value)||(f.value=X);return}k(X,n.valueType,m.value,!1),i("setValue",X)});let A=null,L=l.ref(!1);typeof n.remoteMethod=="function"&&(A=async F=>{if(F==null){h.value=null;return}L.value=!0;try{const X=await n.remoteMethod(F);X&&(h.value=X)}catch(X){h.value=null,console.error(X)}L.value=!1});let M=null;typeof n.filterMethod=="function"&&(M=async F=>{if(F==null){h.value=null;return}L.value=!0;try{const X=await n.filterMethod(F,g.value);X&&(h.value=X)}catch(X){h.value=null,console.error(X)}L.value=!1});const V=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",E=l.ref(!1),y=e,j=l.computed(()=>({[y]:!0})),_=F=>{n.allowCreate||V()&&ue(n.multiple)?(i("update:modelValue",F),i("change",F),i("update:text",F),f.value=F):k(F,"value",m.value,!0)};let R=ge(n,"hintText"),D=l.ref(!1);const K=F=>{let H=F.target.value;E.value=!0,me(R.value)||(D.value=!0),i("focus",H,F)},G=F=>{setTimeout(()=>{D.value&&(D.value=!1),E.value=!1},0);let H=F.target.value;n.maxLength&&H.length>Number(n.maxLength)&&(H=H.slice(0,Number(n.maxLength))),N.value||i("blur",H,F)},U=()=>{i("clear","")},Z=l.ref(!1);let ee=null;const le=()=>{n.showTooltip&&Z.value===!1&&(ee&&clearTimeout(ee),ee=setTimeout(()=>{Z.value=!0},150))},O=()=>{ee&&(clearTimeout(ee),Z.value=!1,ee=null)},x=l.computed(()=>Z.value||D.value),I=l.computed(()=>Z.value?S.value:R.value),N=l.ref(!1),b=F=>{N.value=F,i("visible-change",F),F||i("selected")},Y=F=>{i("remove-tag",F)},P=(F,X)=>{const H=[];return F.forEach((J,te)=>{const T=Ro(n,J);if(Array.isArray(T)&&T.length>0){const W=P(T,X),ne=Qe(n,J),de={key:`${ne}_${te}`,label:ne};H.push(l.h(v.ElOptionGroup,de,{default:()=>W}))}else{const W=Nt(n,J),ne=Qe(n,J),oe=Pi(n,J),se={key:`${W}_${te}`,label:ne,disabled:oe,value:W};if(typeof X=="function")H.push(l.h(v.ElOption,se,{default:()=>X(J)}));else if(n.optionType==="item"){const Q={class:{"fox-select-item__option-left":!0}},re=l.h("span",Q,[W]),ae={class:{"fox-select-item__option-right":!0}},ce=l.h("span",ae,[ne]),Re=l.h("div",{class:{"fox-select-item__option":!0}},[re,ce]);H.push(l.h(v.ElOption,se,{default:()=>Re}))}else n.optionType==="value"?H.push(l.h(v.ElOption,se,{default:()=>[W]})):H.push(l.h(v.ElOption,se))}}),H},z=l.ref();return Te({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()}}),()=>{const X={...He(r.attrs),ref:z,class:j.value,clearable:n.clearable,multiple:n.multiple,placeholder:d.placeholder.value,disabled:a.value||s.value,modelValue:f.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:U,onChange:_,onFocus:K,onBlur:G,onVisibleChange:b,onRemoveTag:Y};typeof A=="function"&&(X["remote-method"]=A,X.loading=L.value),typeof M=="function"&&(X["filter-method"]=M,X.loading=L.value);const H={};r.slots.prefix&&(H.prefix=r.slots.prefix),r.slots.empty&&(H.empty=r.slots.empty),r.slots.options?H.default=r.slots.options:H.default=()=>P(m.value,r.slots.option);const J=[],te=l.h(v.ElSelect,X,H);J.push(te);const T={default:()=>J};r.slots.default&&(T.label=r.slots.default),r.slots.fixedTip&&(T.fixedTip=r.slots.fixedTip);const ne={...Ne(n,Mo),hintText:I.value,hintVisible:x.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:le,onMouseleave:O};return $.value&&(ne["appear-listen"]=!0,ne.onAppear=B),l.h(o,ne,T)}}}}const{componentName:Wi,create:Yi,scope:Gi}=ie("select-item"),Wn=Yi(Ki(Wi,Gi,Se));var Ue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){var o=1e3,n=6e4,r=36e5,a="millisecond",s="second",i="minute",u="hour",d="day",f="week",c="month",S="quarter",k="year",g="date",h="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,$=/\[([^\]]+)]|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,w={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("_"),ordinal:function(R){var D=["th","st","nd","rd"],K=R%100;return"["+R+(D[(K-20)%10]||D[K]||D[0])+"]"}},C=function(R,D,K){var G=String(R);return!G||G.length>=D?R:""+Array(D+1-G.length).join(K)+R},q={s:C,z:function(R){var D=-R.utcOffset(),K=Math.abs(D),G=Math.floor(K/60),U=K%60;return(D<=0?"+":"-")+C(G,2,"0")+":"+C(U,2,"0")},m:function R(D,K){if(D.date()<K.date())return-R(K,D);var G=12*(K.year()-D.year())+(K.month()-D.month()),U=D.clone().add(G,c),Z=K-U<0,ee=D.clone().add(G+(Z?-1:1),c);return+(-(G+(K-U)/(Z?U-ee:ee-U))||0)},a:function(R){return R<0?Math.ceil(R)||0:Math.floor(R)},p:function(R){return{M:c,y:k,w:f,d,D:g,h:u,m:i,s,ms:a,Q:S}[R]||String(R||"").toLowerCase().replace(/s$/,"")},u:function(R){return R===void 0}},B="en",A={};A[B]=w;var L="$isDayjsObject",M=function(R){return R instanceof j||!(!R||!R[L])},V=function R(D,K,G){var U;if(!D)return B;if(typeof D=="string"){var Z=D.toLowerCase();A[Z]&&(U=Z),K&&(A[Z]=K,U=Z);var ee=D.split("-");if(!U&&ee.length>1)return R(ee[0])}else{var le=D.name;A[le]=D,U=le}return!G&&U&&(B=U),U||!G&&B},E=function(R,D){if(M(R))return R.clone();var K=typeof D=="object"?D:{};return K.date=R,K.args=arguments,new j(K)},y=q;y.l=V,y.i=M,y.w=function(R,D){return E(R,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var j=function(){function R(K){this.$L=V(K.locale,null,!0),this.parse(K),this.$x=this.$x||K.x||{},this[L]=!0}var D=R.prototype;return D.parse=function(K){this.$d=function(G){var U=G.date,Z=G.utc;if(U===null)return new Date(NaN);if(y.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var ee=U.match(m);if(ee){var le=ee[2]-1||0,O=(ee[7]||"0").substring(0,3);return Z?new Date(Date.UTC(ee[1],le,ee[3]||1,ee[4]||0,ee[5]||0,ee[6]||0,O)):new Date(ee[1],le,ee[3]||1,ee[4]||0,ee[5]||0,ee[6]||0,O)}}return new Date(U)}(K),this.init()},D.init=function(){var K=this.$d;this.$y=K.getFullYear(),this.$M=K.getMonth(),this.$D=K.getDate(),this.$W=K.getDay(),this.$H=K.getHours(),this.$m=K.getMinutes(),this.$s=K.getSeconds(),this.$ms=K.getMilliseconds()},D.$utils=function(){return y},D.isValid=function(){return this.$d.toString()!==h},D.isSame=function(K,G){var U=E(K);return this.startOf(G)<=U&&U<=this.endOf(G)},D.isAfter=function(K,G){return E(K)<this.startOf(G)},D.isBefore=function(K,G){return this.endOf(G)<E(K)},D.$g=function(K,G,U){return y.u(K)?this[G]:this.set(U,K)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(K,G){var U=this,Z=!!y.u(G)||G,ee=y.p(K),le=function(z,F){var X=y.w(U.$u?Date.UTC(U.$y,F,z):new Date(U.$y,F,z),U);return Z?X:X.endOf(d)},O=function(z,F){return y.w(U.toDate()[z].apply(U.toDate("s"),(Z?[0,0,0,0]:[23,59,59,999]).slice(F)),U)},x=this.$W,I=this.$M,N=this.$D,b="set"+(this.$u?"UTC":"");switch(ee){case k:return Z?le(1,0):le(31,11);case c:return Z?le(1,I):le(0,I+1);case f:var Y=this.$locale().weekStart||0,P=(x<Y?x+7:x)-Y;return le(Z?N-P:N+(6-P),I);case d:case g:return O(b+"Hours",0);case u:return O(b+"Minutes",1);case i:return O(b+"Seconds",2);case s:return O(b+"Milliseconds",3);default:return this.clone()}},D.endOf=function(K){return this.startOf(K,!1)},D.$set=function(K,G){var U,Z=y.p(K),ee="set"+(this.$u?"UTC":""),le=(U={},U[d]=ee+"Date",U[g]=ee+"Date",U[c]=ee+"Month",U[k]=ee+"FullYear",U[u]=ee+"Hours",U[i]=ee+"Minutes",U[s]=ee+"Seconds",U[a]=ee+"Milliseconds",U)[Z],O=Z===d?this.$D+(G-this.$W):G;if(Z===c||Z===k){var x=this.clone().set(g,1);x.$d[le](O),x.init(),this.$d=x.set(g,Math.min(this.$D,x.daysInMonth())).$d}else le&&this.$d[le](O);return this.init(),this},D.set=function(K,G){return this.clone().$set(K,G)},D.get=function(K){return this[y.p(K)]()},D.add=function(K,G){var U,Z=this;K=Number(K);var ee=y.p(G),le=function(I){var N=E(Z);return y.w(N.date(N.date()+Math.round(I*K)),Z)};if(ee===c)return this.set(c,this.$M+K);if(ee===k)return this.set(k,this.$y+K);if(ee===d)return le(1);if(ee===f)return le(7);var O=(U={},U[i]=n,U[u]=r,U[s]=o,U)[ee]||1,x=this.$d.getTime()+K*O;return y.w(x,this)},D.subtract=function(K,G){return this.add(-1*K,G)},D.format=function(K){var G=this,U=this.$locale();if(!this.isValid())return U.invalidDate||h;var Z=K||"YYYY-MM-DDTHH:mm:ssZ",ee=y.z(this),le=this.$H,O=this.$m,x=this.$M,I=U.weekdays,N=U.months,b=U.meridiem,Y=function(F,X,H,J){return F&&(F[X]||F(G,Z))||H[X].slice(0,J)},P=function(F){return y.s(le%12||12,F,"0")},z=b||function(F,X,H){var J=F<12?"AM":"PM";return H?J.toLowerCase():J};return Z.replace($,function(F,X){return X||function(H){switch(H){case"YY":return String(G.$y).slice(-2);case"YYYY":return y.s(G.$y,4,"0");case"M":return x+1;case"MM":return y.s(x+1,2,"0");case"MMM":return Y(U.monthsShort,x,N,3);case"MMMM":return Y(N,x);case"D":return G.$D;case"DD":return y.s(G.$D,2,"0");case"d":return String(G.$W);case"dd":return Y(U.weekdaysMin,G.$W,I,2);case"ddd":return Y(U.weekdaysShort,G.$W,I,3);case"dddd":return I[G.$W];case"H":return String(le);case"HH":return y.s(le,2,"0");case"h":return P(1);case"hh":return P(2);case"a":return z(le,O,!0);case"A":return z(le,O,!1);case"m":return String(O);case"mm":return y.s(O,2,"0");case"s":return String(G.$s);case"ss":return y.s(G.$s,2,"0");case"SSS":return y.s(G.$ms,3,"0");case"Z":return ee}return null}(F)||ee.replace(":","")})},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(K,G,U){var Z,ee=this,le=y.p(G),O=E(K),x=(O.utcOffset()-this.utcOffset())*n,I=this-O,N=function(){return y.m(ee,O)};switch(le){case k:Z=N()/12;break;case c:Z=N();break;case S:Z=N()/3;break;case f:Z=(I-x)/6048e5;break;case d:Z=(I-x)/864e5;break;case u:Z=I/r;break;case i:Z=I/n;break;case s:Z=I/o;break;default:Z=I}return U?Z:y.a(Z)},D.daysInMonth=function(){return this.endOf(c).$D},D.$locale=function(){return A[this.$L]},D.locale=function(K,G){if(!K)return this.$L;var U=this.clone(),Z=V(K,G,!0);return Z&&(U.$L=Z),U},D.clone=function(){return y.w(this.$d,this)},D.toDate=function(){return new Date(this.valueOf())},D.toJSON=function(){return this.isValid()?this.toISOString():null},D.toISOString=function(){return this.$d.toISOString()},D.toString=function(){return this.$d.toUTCString()},R}(),_=j.prototype;return E.prototype=_,[["$ms",a],["$s",s],["$m",i],["$H",u],["$W",d],["$M",c],["$y",k],["$D",g]].forEach(function(R){_[R[1]]=function(D){return this.$g(D,R[0],R[1])}}),E.extend=function(R,D){return R.$i||(R(D,j,E),R.$i=!0),E},E.locale=V,E.isDayjs=M,E.unix=function(R){return E(1e3*R)},E.en=A[B],E.Ls=A,E.p={},E})})(Bo);var Ui=Bo.exports;const Ke=Xe(Ui);var _o={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,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,r=/\d\d/,a=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},u=function(h){return(h=+h)+(h>68?1900:2e3)},d=function(h){return function(m){this[h]=+m}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(m){if(!m||m==="Z")return 0;var $=m.match(/([+-]|\d\d)/g),w=60*$[1]+(+$[2]||0);return w===0?0:$[0]==="+"?-w:w}(h)}],c=function(h){var m=i[h];return m&&(m.indexOf?m:m.s.concat(m.f))},S=function(h,m){var $,w=i.meridiem;if(w){for(var C=1;C<=24;C+=1)if(h.indexOf(w(C,0,m))>-1){$=C>12;break}}else $=h===(m?"pm":"PM");return $},k={A:[s,function(h){this.afternoon=S(h,!1)}],a:[s,function(h){this.afternoon=S(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[r,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[a,d("seconds")],ss:[a,d("seconds")],m:[a,d("minutes")],mm:[a,d("minutes")],H:[a,d("hours")],h:[a,d("hours")],HH:[a,d("hours")],hh:[a,d("hours")],D:[a,d("day")],DD:[r,d("day")],Do:[s,function(h){var m=i.ordinal,$=h.match(/\d+/);if(this.day=$[0],m)for(var w=1;w<=31;w+=1)m(w).replace(/\[|\]/g,"")===h&&(this.day=w)}],M:[a,d("month")],MM:[r,d("month")],MMM:[s,function(h){var m=c("months"),$=(c("monthsShort")||m.map(function(w){return w.slice(0,3)})).indexOf(h)+1;if($<1)throw new Error;this.month=$%12||$}],MMMM:[s,function(h){var m=c("months").indexOf(h)+1;if(m<1)throw new Error;this.month=m%12||m}],Y:[/[+-]?\d+/,d("year")],YY:[r,function(h){this.year=u(h)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function g(h){var m,$;m=h,$=i&&i.formats;for(var w=(h=m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(V,E,y){var j=y&&y.toUpperCase();return E||$[y]||o[y]||$[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(_,R,D){return R||D.slice(1)})})).match(n),C=w.length,q=0;q<C;q+=1){var B=w[q],A=k[B],L=A&&A[0],M=A&&A[1];w[q]=M?{regex:L,parser:M}:B.replace(/^\[|\]$/g,"")}return function(V){for(var E={},y=0,j=0;y<C;y+=1){var _=w[y];if(typeof _=="string")j+=_.length;else{var R=_.regex,D=_.parser,K=V.slice(j),G=R.exec(K)[0];D.call(E,G),V=V.replace(G,"")}}return function(U){var Z=U.afternoon;if(Z!==void 0){var ee=U.hours;Z?ee<12&&(U.hours+=12):ee===12&&(U.hours=0),delete U.afternoon}}(E),E}}return function(h,m,$){$.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var w=m.prototype,C=w.parse;w.parse=function(q){var B=q.date,A=q.utc,L=q.args;this.$u=A;var M=L[1];if(typeof M=="string"){var V=L[2]===!0,E=L[3]===!0,y=V||E,j=L[2];E&&(j=L[2]),i=this.$locale(),!V&&j&&(i=$.Ls[j]),this.$d=function(K,G,U){try{if(["x","X"].indexOf(G)>-1)return new Date((G==="X"?1e3:1)*K);var Z=g(G)(K),ee=Z.year,le=Z.month,O=Z.day,x=Z.hours,I=Z.minutes,N=Z.seconds,b=Z.milliseconds,Y=Z.zone,P=new Date,z=O||(ee||le?1:P.getDate()),F=ee||P.getFullYear(),X=0;ee&&!le||(X=le>0?le-1:P.getMonth());var H=x||0,J=I||0,te=N||0,T=b||0;return Y?new Date(Date.UTC(F,X,z,H,J,te,T+60*Y.offset*1e3)):U?new Date(Date.UTC(F,X,z,H,J,te,T)):new Date(F,X,z,H,J,te,T)}catch{return new Date("")}}(B,M,A),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),y&&B!=this.format(M)&&(this.$d=new Date("")),i={}}else if(M instanceof Array)for(var _=M.length,R=1;R<=_;R+=1){L[1]=M[R-1];var D=$.apply(this,L);if(D.isValid()){this.$d=D.$d,this.$L=D.$L,this.init();break}R===_&&(this.$d=new Date(""))}else C.call(this,q)}}})})(_o);var Xi=_o.exports;const Zi=Xe(Xi);var qo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){return function(o,n){var r=n.prototype,a=r.format;r.format=function(s){var i=this,u=this.$locale();if(!this.isValid())return a.bind(this)(s);var d=this.$utils(),f=(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(c){switch(c){case"Q":return Math.ceil((i.$M+1)/3);case"Do":return u.ordinal(i.$D);case"gggg":return i.weekYear();case"GGGG":return i.isoWeekYear();case"wo":return u.ordinal(i.week(),"W");case"w":case"ww":return d.s(i.week(),c==="w"?1:2,"0");case"W":case"WW":return d.s(i.isoWeek(),c==="W"?1:2,"0");case"k":case"kk":return d.s(String(i.$H===0?24:i.$H),c==="k"?1:2,"0");case"X":return Math.floor(i.$d.getTime()/1e3);case"x":return i.$d.getTime();case"z":return"["+i.offsetName()+"]";case"zzz":return"["+i.offsetName("long")+"]";default:return c}});return a.bind(this)(f)}}})})(qo);var Ji=qo.exports;const Qi=Xe(Ji);var Po={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){return function(o,n,r){var a=n.prototype,s=function(c){return c&&(c.indexOf?c:c.s)},i=function(c,S,k,g,h){var m=c.name?c:c.$locale(),$=s(m[S]),w=s(m[k]),C=$||w.map(function(B){return B.slice(0,g)});if(!h)return C;var q=m.weekStart;return C.map(function(B,A){return C[(A+(q||0))%7]})},u=function(){return r.Ls[r.locale()]},d=function(c,S){return c.formats[S]||function(k){return k.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,h,m){return h||m.slice(1)})}(c.formats[S.toUpperCase()])},f=function(){var c=this;return{months:function(S){return S?S.format("MMMM"):i(c,"months")},monthsShort:function(S){return S?S.format("MMM"):i(c,"monthsShort","months",3)},firstDayOfWeek:function(){return c.$locale().weekStart||0},weekdays:function(S){return S?S.format("dddd"):i(c,"weekdays")},weekdaysMin:function(S){return S?S.format("dd"):i(c,"weekdaysMin","weekdays",2)},weekdaysShort:function(S){return S?S.format("ddd"):i(c,"weekdaysShort","weekdays",3)},longDateFormat:function(S){return d(c.$locale(),S)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return f.bind(this)()},r.localeData=function(){var c=u();return{firstDayOfWeek:function(){return c.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(S){return d(c,S)},meridiem:c.meridiem,ordinal:c.ordinal}},r.months=function(){return i(u(),"months")},r.monthsShort=function(){return i(u(),"monthsShort","months",3)},r.weekdays=function(c){return i(u(),"weekdays",null,null,c)},r.weekdaysShort=function(c){return i(u(),"weekdaysShort","weekdays",3,c)},r.weekdaysMin=function(c){return i(u(),"weekdaysMin","weekdays",2,c)}}})})(Po);var es=Po.exports;const ts=Xe(es);var jo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){var o="week",n="year";return function(r,a,s){var i=a.prototype;i.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=s(this).startOf(n).add(1,n).date(d),c=s(this).endOf(o);if(f.isBefore(c))return 1}var S=s(this).startOf(n).date(d).startOf(o).subtract(1,"millisecond"),k=this.diff(S,o,!0);return k<0?s(this).startOf("week").week():Math.ceil(k)},i.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(jo);var ns=jo.exports;const ls=Xe(ns);var zo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){return function(o,n){n.prototype.weekYear=function(){var r=this.month(),a=this.week(),s=this.year();return a===1&&r===11?s+1:r===0&&a>=52?s-1:s}}})})(zo);var os=zo.exports;const rs=Xe(os);var Ho={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){return function(o,n,r){n.prototype.dayOfYear=function(a){var s=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return a==null?s:this.add(a-s,"day")}}})})(Ho);var as=Ho.exports;const is=Xe(as);var Ko={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){return function(o,n){n.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})})(Ko);var ss=Ko.exports;const us=Xe(ss);var Wo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){return function(o,n){n.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})})(Wo);var cs=Wo.exports;const fs=Xe(cs);Ke.extend(ts),Ke.extend(Qi),Ke.extend(Zi),Ke.extend(ls),Ke.extend(rs),Ke.extend(is),Ke.extend(us),Ke.extend(fs);const Be={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 r=new Date(e+"/"+t+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][r]},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),r=this.getNumTwoBit(e.getDate());return[o,n,r].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 r=new Date(Number(e),parseInt(t)-1,Number(o));let a=r.getDay(),s=r.getDate(),i=6-a;return n!==0&&(a=a==0?7:a,i=7-a),Math.ceil((s+i)/7)},getYearWeek:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=new Date(Number(e),0,1),s=Math.round((r.valueOf()-a.valueOf())/864e5);let i=r.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 r=new Date(Number(e),parseInt(t)-1,Number(o)),a=r.getTime();let s=r.getDay();if(n===0){const u=a-s*864e5,d=a+(6-s)*864e5,f=this.date2Str(new Date(u)),c=this.date2Str(new Date(d));return[f,c]}else{s=s==0?7:s;const i=24*60*60*1e3,u=a-(s-1)*i,d=a+(7-s)*i,f=this.date2Str(new Date(u)),c=this.date2Str(new Date(d));return[f,c]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=Be.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=Be.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,o){const n=new Date(new Date(t).setDate(t.getDate()+o)),r=e.getTime(),a=n.getTime(),s=t.getTime();return a>s?r>=s&&r<=a:r>=a&&r<=s},inScope4Month(e,t,o){const n=new Date(new Date(t).setMonth(t.getMonth()+o)),r=e.getTime(),a=n.getTime(),s=t.getTime();return a>s?r>=s&&r<=a:r>=a&&r<=s}},Yo={type:{type:[String],required:!1},modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},valueFormat:{type:[String],required:!1},format:{type:[String],required:!1,default:"YYYY-MM-DD"},flashFill:{type:[Boolean],required:!1,default:!0},flashFillThreshold:{type:[Function,Number],required:!1,default:8},flashFillFormat:{type:[Function,String],required:!1,default:"YYYYMMDD"}},Go={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTermActionLabel:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1},compatibleLongTermValue:{type:[Date,Number,String,Array],required:!1}};function ds(e,t,o){return{props:{...we,...Ee,...Yo,...Go},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(n,r){const a=Ve(l.computed(()=>n.disabled)),s=Oe(l.computed(()=>n.readonly)),{emitEvent:i}=xe({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=ge(n,"modelValue",null,i),S=l.computed(()=>D.value&&Array.isArray(c.value)&&c.value.length==2?c.value[0]:c.value),k=l.computed(()=>D.value?"longTermKey":"normalKey"),g=z=>{if(D.value&&n.type==="daterange"){const F=[...c.value];F[0]=z,c.value=F}else c.value=z;i("update:modelValue",c.value),i("change",c.value)},h=l.computed(()=>D.value&&n.type==="daterange"?"date":n.type),m=e,$=l.computed(()=>({[`${m}`]:!0,"is-long":D.value,"is-readonly":s.value,"is-disabled":a.value}));let w=ge(n,"hintText"),C=l.ref(!1);const q=z=>{let X=z.target.value;f.value=!0,me(w.value)||(C.value=!0),i("focus",X,z)},B=z=>{setTimeout(()=>{C.value&&(C.value=!1),f.value=!1},0);let X=z.target.value;n.maxLength&&X.length>Number(n.maxLength)&&(X=X.slice(0,Number(n.maxLength))),i("blur",X,z)},A=()=>{i("clear","")},L=z=>{i("calendar-change",z)},M=(z,F,X)=>{i("panel-change",z,F,X)},V=z=>{i("visible-change",z)},E=Ie(l.computed(()=>n.longTermText),"longTermText",Me.Near),y=Ie(l.computed(()=>n.longTermActionLabel),"longTermActionLabel",Me.Near),j=Ie(l.computed(()=>n.longTermValue),"longTermValue",Me.Near),_=Ie(l.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",Me.Near);let R=null;const D=l.ref(ue(n.longTerm)),K=z=>{if(D.value=z,i("update:longTerm",z),z){if(R=c.value,n.type==="daterange"){const F=[];Array.isArray(j.value)?(F[0]=c.value?c.value[0]??j.value[0]:null,F[1]=j.value[1]??j.value[0]):(F[0]=c.value?c.value[0]??j.value:null,F[1]=D.value),F[0]||(F[0]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),F[1]||(F[1]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),c.value=F}else Array.isArray(j.value)?c.value=j.value[1]??j.value[0]:c.value=j.value,c.value||(c.value=n.valueFormat?Be.format(new Date,n.valueFormat):new Date);i("update:modelValue",c.value)}else{if(n.type==="daterange"){const F=[];F[0]=Array.isArray(c.value)?c.value[0]:c.value,Array.isArray(R)?F[1]=R[1]:F[1]=R,F[0]||(F[0]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),F[1]||(F[1]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),c.value=F}else c.value=R;i("update:modelValue",c.value),setTimeout(()=>{Y()},100)}},G=ue(n.isLongTerm);if(G){const z=()=>{if(D.value===!0){if(R=c.value,n.type==="daterange"){const F=[c.value[0]];Array.isArray(j.value)?F[1]=j.value[1]??j.value[0]:F[1]=D.value,F[0]||(F[0]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),F[1]||(F[1]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),c.value=F}else c.value=j.value;i("update:modelValue",c.value)}else Ye(j.value,c.value)&&(D.value=!0)};z(),l.watch([()=>n.longTerm],([F])=>{D.value!==F&&z()}),l.watch([()=>c.value],([F])=>{let X=!1;if(n.type==="daterange"&&Array.isArray(F))try{let H=F[1];if(!H)return;typeof H!="string"&&n.valueFormat&&(H=Be.format(H,n.valueFormat));let J=Array.isArray(j.value)?j.value[1]:j.value;(H===J||Array.isArray(_.value)&&_.value.findIndex(T=>H==T)!==-1)&&(X=!0)}catch(H){console.error(H)}D.value!==X&&(D.value=X)},{immediate:!0})}const U=l.computed(()=>({"fox-date-item__long":!0,"is-active":f.value})),Z=l.ref(),ee=l.ref(),le=/^\d+$/,O=(z,F)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(z,F):le.test(z)&&z.length===n.flashFillThreshold,x=(z,F)=>{let X;if(typeof n.flashFillFormat=="function")X=n.flashFillFormat(z,F);else{const J=n.flashFillFormat??"YYYYMMDD";X=Be.parser(z,J)}const H=n.valueFormat??"YYYY-MM-DD";return Be.format(X,H)},I=z=>z?z.endsWith("range"):!1,N=z=>{if(!z.target)return;const F=z.target.value??"";if(O(F,n.type)){const X=x(F,n.type);if(I(n.type)){const H=Array.isArray(c.value)?[...c.value]:[];H[0]=X,g(H)}else g(X)}},b=z=>{if(!z.target)return;const F=z.target.value??"";if(O(F,n.type)){const X=x(F,n.type);if(I(n.type)){const H=Array.isArray(c.value)?[...c.value]:[];H[1]=X,g(H)}else g(X)}},Y=()=>{if(n.flashFill&&Z.value&&Z.value.$el)if(I(n.type)){const z=Z.value.$el.querySelectorAll("input.el-range-input");z[0]&&z[0].addEventListener("input",N),z[1]&&z[1].addEventListener("input",b)}else{const z=Z.value.$el.querySelector("input.el-input__inner");z&&z.addEventListener("input",N)}},P=()=>{if(n.flashFill&&Z.value&&Z.value.$el)if(I(n.type)){const z=Z.value.$el.querySelectorAll("input.el-range-input");z[0]&&z[0].removeEventListener("input",N),z[1]&&z[1].removeEventListener("input",b)}else{const z=Z.value.$el.querySelector("input.el-input__inner");z&&z.removeEventListener("input",N)}};return l.onMounted(Y),l.onBeforeUnmount(P),Te({focus:()=>{ee?.value.focus()},blur:()=>{ee?.value.blur()},handleOpen:()=>{ee?.value.handleOpen()},handleClose:()=>{ee?.value.handleClose()}}),()=>{const F={...r.attrs,key:k.value,type:h.value,ref:ee,class:$.value,placeholder:d.placeholder.value,disabled:a.value,readonly:s.value,modelValue:S.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":g,onClear:A,onFocus:q,onBlur:B,onCalendarChange:L,onPanelChange:M,onVisibleChange:V},X={};r.slots["range-separator"]&&(X["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(X.default=r.slots.cell);const H=[],J=l.h(v.ElDatePicker,F,X);H.push(J);const te={default:()=>H};if(r.slots.default&&(te.label=r.slots.default),r.slots.fixedTip&&(te.fixedTip=r.slots.fixedTip),G){if(D.value){const oe=l.h("span",{class:["fox-date-item__long-splitor"]},["-"]),de=l.h("input",{class:["fox-date-item__long-text"],value:E.value,readonly:!0}),se={class:U.value},Q=l.h("div",se,{default:()=>[oe,de]});H.push(Q)}if(!s.value&&!a.value){const oe={label:y.value||E.value,disabled:s.value||a.value,modelValue:D.value,"onUpdate:modelValue":K},de=l.h(v.ElCheckbox,oe),se=l.h("div",{class:{[`${m}__append`]:!0}},[de]);te.append=()=>se}}const W={...Ne(n,Yo,Go),ref:Z,class:{[`${m}__wrapper`]:!0,"has-append":G},hintText:w.value,hintVisible:C.value,prop:`${n.prop}_item`};return l.h(o,W,te)}}}}const{componentName:hs,create:gs,scope:ms}=ie("date-item"),Yn=gs(ds(hs,ms,Se)),Uo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ps(e,t,o){return{props:{...we,...Ee,...Uo},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(n,r){const a=Ve(l.computed(()=>n.disabled)),s=Oe(l.computed(()=>n.readonly)),{emitEvent:i}=xe({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=ge(n,"modelValue",null,i),S=e,k=l.computed(()=>({[S]:!0})),g=A=>{c.value=A,i("update:modelValue",A),i("change",A)};let h=ge(n,"hintText"),m=l.ref(!1);const $=A=>{let M=A.target.value;f.value=!0,me(h.value)||(m.value=!0),i("focus",M,A)},w=A=>{setTimeout(()=>{m.value&&(m.value=!1),f.value=!1},0);let M=A.target.value;n.maxLength&&M.length>Number(n.maxLength)&&(M=M.slice(0,Number(n.maxLength))),i("blur",M,A)},C=()=>{i("clear","")},q=A=>{i("visible-change",A)},B=l.ref();return Te({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},handleOpen:()=>{B?.value.handleOpen()},handleClose:()=>{B?.value.handleClose()}}),()=>{const L={...r.attrs,ref:B,class:k.value,placeholder:d.placeholder.value,disabled:a.value,readonly:s.value,modelValue:c.value,"onUpdate:modelValue":g,onClear:C,onFocus:$,onBlur:w,onVisibleChange:q},M={},V=[],E=l.h(v.ElTimePicker,L,M);V.push(E);const y={default:()=>V};r.slots.default&&(y.label=r.slots.default),r.slots.fixedTip&&(y.fixedTip=r.slots.fixedTip);const _={...Ne(n,Uo),hintText:h.value,hintVisible:m.value,prop:`${n.prop}_item`};return l.h(o,_,y)}}}}const{componentName:ys,create:bs,scope:vs}=ie("time-item"),Gn=bs(ps(ys,vs,Se)),Xo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ws(e,t,o){return{props:{...we,...Ee,...Xo},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,r){const a=Ve(l.computed(()=>n.disabled)),s=Oe(l.computed(()=>n.readonly)),{emitEvent:i}=xe({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=ge(n,"modelValue",null,i),S=e,k=l.computed(()=>({[S]:!0})),g=B=>{c.value=B,i("update:modelValue",B),i("change",B)};let h=ge(n,"hintText"),m=l.ref(!1);const $=B=>{let L=B.target.value;f.value=!0,me(h.value)||(m.value=!0),i("focus",L,B)},w=B=>{setTimeout(()=>{m.value&&(m.value=!1),f.value=!1},0);let L=B.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),i("blur",L,B)},C=()=>{i("clear","")},q=l.ref();return Te({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},handleOpen:()=>{q?.value.handleOpen()},handleClose:()=>{q?.value.handleClose()}}),()=>{const A={...r.attrs,ref:q,class:k.value,placeholder:d.placeholder.value,disabled:a.value,readonly:s.value,modelValue:c.value,"onUpdate:modelValue":g,onClear:C,onFocus:$,onBlur:w},L={},M=[],V=l.h(v.ElTimeSelect,A,L);M.push(V);const E={default:()=>M};r.slots.default&&(E.label=r.slots.default),r.slots.fixedTip&&(E.fixedTip=r.slots.fixedTip);const j={...Ne(n,Xo),hintText:h.value,hintVisible:m.value,prop:`${n.prop}_item`};return l.h(o,j,E)}}}}const{componentName:Ss,create:xs,scope:Ts}=ie("time-select-item"),Un=xs(ws(Ss,Ts,Se));function Zo(e,t=0){let o=`${e}`,n=o.indexOf(".");if(n==-1)return o;let r=n;for(let a=o.length-1;a>=n;a--)if(o.charAt(a)!="0"){r=a;break}return r-n<t?r=n+t+1:r!=n&&(r+=1),r>o.length?o=o.padEnd(r,"0"):o=o.substring(0,r),o}function Jo(e,t,o=20){if(typeof t=="string"&&(t=ve(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=Wl(`${e}`,`${t}`);return Zo(n)}else{let n=vn(`${e}`,Yl(`${t}`),20);return Zo(n)}}function $s(e,t=-1,o=!1,n=3,r=","){return At(e,t,o,n,r)}function Qo(e,t,o,n,r=!0){if(e==="")return"";if(e=Gl(e),t=ve(t),t==1)return e;if(n)e=Jo(e,t),o&&(e=="0"&&r?e=`${e}.`.padEnd(ve(o)+2,"0"):e=vn(e,1,ve(o)));else{let a=-1*t;e=Jo(e,a)}return e}function er(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=ue(t.minInclude),r=wn(e,t.min);if(n&&r==-1||!n&&(r==0||r==-1)){let a="请输入不小于 {0} 的数值";o.message=a.replace("{0}",t.min),o.minValid=!1}}if(t.max!=null){let n=ue(t.maxInclude),r=wn(e,t.max);(n&&r==1||!n&&(r==0||r==1))&&(o.maxValid=!1)}return o}const tr={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 Cs(e,t,o){return{props:{...we,...Ee,...tr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Ve(l.computed(()=>n.disabled)),s=Oe(l.computed(()=>n.readonly)),{emitEvent:i}=xe({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(!1),d=ge(n,"modelValue",null,i),f=l.ref("");l.watch([()=>d.value,()=>n.rates,()=>n.precision],([_,R,D])=>{if(me(_)){f.value="";return}const K=Qo(_,R,D,!1);f.value!==K&&(f.value=K)},{immediate:!0});const c=l.computed(()=>{let _="";return u.value&&(_=f.value),_}),{t:S}=Le.useFoxI18n(t),k=l.computed(()=>{let _=n.placeholder??"";return!u.value&&!me(f.value)?_=$s(f.value,n.decimalLength,n.autoPadding,n.digits,n.separator):_=S(["placeholder",_]),_}),g=e,h=l.computed(()=>({[g]:!0,[`${g}__disabled`]:a.value,[`${g}__placeholder`]:f.value.length>0})),m=Ie(l.computed(()=>n.textAlign),"textAlign");l.computed(()=>u.value?{textAlign:"left"}:{textAlign:m.value??"right"});const $=l.ref(""),w=l.computed(()=>{let _=$.value;return me(_)&&(_=n.errorTip??""),_}),C=l.ref(""),q=l.ref(!1),B=(_,R)=>{if(_=`${_}`,me(_)){f.value="",d.value="",R.forEach(D=>{i(D,"")}),ue(n.showTip)&&q.value&&(q.value=!1);return}if(_.length>=2){let D=_;if(D.charAt(0)=="-"&&(D=D.substring(1)),D.length>=2&&D.charAt(0)=="0"&&D.charAt(1)!="."){l.triggerRef(f);return}}if(_!="-"){if(!lo(_)){l.triggerRef(f);return}if(n.integerLength!=-1&&oo(_)>Number(n.integerLength)){l.triggerRef(f);return}if(n.decimalLength&&n.decimalLength!=-1&&ro(_)>Number(n.decimalLength)){l.triggerRef(f);return}let D=er(_,n);if(D.maxValid===!1){$.value=D.message,l.triggerRef(f);return}}else if(n.min!=null&&ve(n.min)>=0){l.triggerRef(f);return}C.value=_,ue(n.showTip)&&(q.value=_.length>0),f.value=_,d.value=Qo(_,n.rates,n.precision,!0),R.forEach(D=>{i(D,d.value)})},A=_=>{B(_,["update:modelValue","input"])},L=_=>{B(_,["update:modelValue","change"])},M=_=>{if(u.value=!0,ue(n.showTip)){let R=f.value;me(R)&&(R=n.hintText),me(R)||(C.value=R,q.value=!0)}$.value="",i("focus",d.value,_)},V=_=>{if(setTimeout(()=>{u.value=!1,ue(n.showTip)&&q.value===!0&&(q.value=!1)},0),!me(f.value)){let R=er(f.value,n);if(R.minValid===!1||R.maxValid===!1){$.value=R.message;return}}i("update:modelValue",d.value,_),i("blur",d.value,_)},E=()=>{i("clear","")},y=l.computed(()=>bt(n.unit)>0),j=l.ref();return Te({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()},select:()=>{j?.value.select()}}),()=>{const R={...He(r.attrs),ref:j,class:h.value,type:"digit",maxlength:n.maxLength,placeholder:k.value,clearable:n.clearable,disabled:a.value,readonly:s.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:E,onInput:A,onChange:L,onFocus:M,onBlur:V},D={};r.slots.prepend&&(D.prepend=r.slots.prepend),r.slots.append&&(D.append=r.slots.append),r.slots.prefix&&(D.prefix=r.slots.prefix),r.slots.suffix?D.suffix=r.slots.suffix:y.value&&(D.suffix=()=>[n.unit]);const K=[],G=l.h(v.ElInput,R,D);K.push(G);const U={default:()=>K};r.slots.default&&(U.label=r.slots.default),r.slots.fixedTip&&(U.fixedTip=r.slots.fixedTip);const ee={...Ne(n,tr),errorTip:w.value,hintText:C.value,hintVisible:q.value,hintType:"number",prop:`${n.prop}_item`};return l.h(o,ee,U)}}}}const{componentName:Ns,create:ks,scope:Es}=ie("money-item"),Xn=ks(Cs(Ns,Es,Se)),nr={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 Is(e,t,o){return{props:{...we,...Ee,...nr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Ve(l.computed(()=>n.disabled)),s=Oe(l.computed(()=>n.readonly)),{emitEvent:i}=xe({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=ge(n,"modelValue",null,i),S=e,k=l.computed(()=>({[S]:!0,[`${S}__append`]:A.value})),g=l.computed(()=>({[`${S}__unit`]:!0})),h=M=>{c.value=M,i("update:modelValue",M),i("input",M)},m=M=>{i("change",M)};let $=ge(n,"hintText"),w=l.ref(!1);const C=M=>{let E=M.target.value;f.value=!0,me($.value)||(w.value=!0),i("focus",E,M)},q=M=>{setTimeout(()=>{w.value&&(w.value=!1),f.value=!1},0);let E=M.target.value;n.maxLength&&E.length>Number(n.maxLength)&&(E=E.slice(0,Number(n.maxLength))),i("blur",E,M)},B=()=>{i("clear","")},A=l.computed(()=>bt(n.unit)>0),L=l.ref();return Te({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()}}),()=>{const V={...He(r.attrs),ref:L,class:k.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:s.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:B,onChange:m,onInput:h,onFocus:C,onBlur:q},E={},y=[],j=l.h(v.ElInputNumber,V,E);y.push(j);const _={default:()=>y};r.slots.default&&(_.label=r.slots.default),r.slots.fixedTip&&(_.fixedTip=r.slots.fixedTip);const D={...Ne(n,nr),hintText:$.value,hintVisible:w.value,prop:`${n.prop}_item`};if(r.slots.append)_.append=r.slots.append;else if(A.value){const G={class:g.value},U=l.h("div",G,[n.unit]);_.append=()=>U}return l.h(o,D,_)}}}}const{componentName:Os,create:Vs,scope:Ds}=ie("input-number-item"),Zn=Vs(Is(Os,Ds,Se));function Ze(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function rt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Fs(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let Rs=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,r){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n,r);const a=Pe(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(We(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(o,n,r))}};function As(){const e=l.getCurrentInstance();return new Rs(e.proxy)}function Jn(e,t,o){const n=Ze(e,t),r=Ze(e,o);if(n!==r)return!1;const a=rt(e,t),s=rt(e,o);return a===s}function lr(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];let a=n;for(let s=0;Array.isArray(a)&&s<t.length;s++){const i=t[s];if(Array.isArray(i)){const u=lr(e,i,o,n);r.push(u)}else{let u=!1;for(let d of a){if(o==="text")u=Ze(e,d)===i;else if(o==="item")u=Jn(e,d,i);else{let f=rt(e,d);f==null&&(f=Ze(e,d)),u=f===i}if(u){r.push(d),a=Fs(e,d);break}}if(!u)break}}return r}function Ls(e){return{text:e,value:e}}const or={modelValue:{type:[Array,String],required:!1},pathNodes:{type:[Array],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},appearLoad:{type:[Boolean],default:!1},lazy:{type:[Boolean],default:!1},lazyLoad:{type:[Function]},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function Ms(e,t,o){return{props:{...we,...Ee,...or},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(n,r){const a=Ve(l.computed(()=>n.disabled)),s=Oe(l.computed(()=>n.readonly)),{emitEvent:i}=xe({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(null),c=l.ref([]),S=l.computed(()=>c.value?c.value.map(z=>Array.isArray(z)?z.map(X=>Ze(n,X)).join(" "):Ze(n,z)).join(" "):""),k=(P,z,F,X=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(f.value===P)return;f.value=P;const T=l.toRaw(P);if(X){const W=Y?.value.getCheckedNodes();if(W)if(n.multiple){const ne=[];W.forEach(oe=>{const se=(oe.pathNodes??[]).map(Q=>Q.data);ne.push(se)}),i("update:pathNodes",ne)}else{const oe=(W[0]?.pathNodes??[]).map(de=>de.data);i("update:pathNodes",oe)}i("update:modelValue",T),i("change",T)}return}const H=lr(n,P,z,F);if(H===null){if(c.value.length===0||c.value===null)return;c.value=[],f.value=null,X&&(i("update:pathNodes",[]),i("update:modelValue",null),i("change",null));return}const J=H[H.length-1];if(E.value.checkStrictly!==!0&&J&&!Array.isArray(J)&&Array.isArray(J.children)&&J.children.length>0){const T=[];H.forEach(W=>{const ne=`${Ze(n,W)}`;T.push(ne)}),T.length>0&&(M.value=T.join(n.separator))}else M.value=null;let te=!0;if(H.length!==c.value.length)te=!1;else for(let T=0;T<H.length;T++){const W=H[T],ne=c.value[T];if(Array.isArray(W)){if(!Array.isArray(ne)||W.length!==ne.length)te=!1;else for(let oe=0;oe<W.length;oe++)if(!Jn(n,W[oe],ne[oe])){te=!1;break}}else Jn(n,W,ne)||(te=!1);if(!te)break}if(!te){c.value=H;let T=[],W=[];H.forEach(oe=>{if(Array.isArray(oe)){let de=[],se=[];for(let Q of oe)de.push(rt(n,Q)),n.valueType==="text"?se.push(Ze(n,Q)):n.valueType==="item"?se.push(Q):se.push(rt(n,Q));T.push(de),W.push(se)}else T.push(rt(n,oe)),n.valueType==="text"?W.push(Ze(n,oe)):n.valueType==="item"?W.push(oe):W.push(rt(n,oe))}),f.value=T;const ne=l.toRaw(W);X&&(i("update:pathNodes",H),i("update:modelValue",ne),i("change",ne))}},g=l.ref([]),h=Ie(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,P=>ue(P)),m=As(),$=async(P,z)=>{if(P){const F=await m.load("cascader",P,z);if(F.length>0)if(typeof F[0]=="string"){let J=F.map(te=>Ls(te));g.value=J}else g.value=F}};l.watch([()=>n.source,()=>n.params],async([P,z])=>{$(P,z)},{immediate:!(h.value||n.lazy)});let w=!1;const C=()=>{w||(w=!0,$(n.source,n.params))};l.watch([()=>g.value,()=>n.modelValue],([P,z])=>{k(z,n.valueType,P,!1),i("setValue",z)}),n.lazy&&k(n.modelValue,"value",[],!1);let q=null,B=l.ref(!1);typeof n.remoteMethod=="function"&&(q=async P=>{if(P!=null){B.value=!0;try{const z=await n.remoteMethod(P);g.value=z}catch(z){console.error(z)}B.value=!1}});const A=l.ref(!1),L=e,M=l.ref(null),V=l.computed(()=>({[L]:!0,"is-incomplete":M.value&&M.value.length>0})),E=l.computed(()=>{let P={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(P.multiple=!0),n.props&&Object.assign(P,n.props),n.lazy&&(P.lazy=!0,typeof n.lazyLoad=="function"?P.lazyLoad=n.lazyLoad:P.lazyLoad=async(z,F)=>{const X=await m.load("cascader",n.source,z,!0);if(z?.config?.checkStrictly!==!0&&Array.isArray(f.value)&&f.value.length===z.level){const H=z.pathLabels??[];let J=[];H.forEach(te=>{te&&J.push(te)}),J.length>0&&(M.value=J.join(n.separator))}else M.value=null;F(X)}),P}),y=P=>{n.allowCreate?(i("update:modelValue",P),i("change",P),f.value=P):k(P,"value",g.value,!0)};let j=ge(n,"hintText"),_=l.ref(!1);const R=P=>{let F=P.target.value;A.value=!0,me(j.value)||(_.value=!0),i("focus",F,P)},D=P=>{setTimeout(()=>{_.value&&(_.value=!1),A.value=!1},0);let F=P.target.value;n.maxLength&&F.length>Number(n.maxLength)&&(F=F.slice(0,Number(n.maxLength))),x.value||i("blur",F,P)},K=()=>{i("clear","")},G=l.ref(!1);let U=null;const Z=()=>{n.showTooltip&&G.value===!1&&(U&&clearTimeout(U),U=setTimeout(()=>{G.value=!0},150))},ee=()=>{U&&(clearTimeout(U),G.value=!1,U=null)},le=l.computed(()=>G.value||_.value),O=l.computed(()=>G.value?S.value:j.value),x=l.ref(!1),I=P=>{x.value=P,i("visible-change",P),P||i("selected")},N=P=>{i("remove-tag",P)},b=P=>{i("expand-change",P)},Y=l.ref();return Te({focus:()=>{Y?.value.focus()},blur:()=>{Y?.value.blur()},getCheckedNodes:()=>Y?.value.getCheckedNodes()}),()=>{const z={...r.attrs,ref:Y,class:V.value,props:E.value,clearable:n.clearable,placeholder:M.value||d.placeholder.value,disabled:a.value||s.value,options:g.value,modelValue:f.value,separator:n.separator,onClear:K,onChange:y,onFocus:R,onBlur:D,onVisibleChange:I,onRemoveTag:N,expandChange:b};typeof q=="function"&&(z["remote-method"]=q,z.loading=B.value);const F={};r.slots.option&&(F.default=r.slots.option),r.slots.empty&&(F.empty=r.slots.empty);const X=[],H=l.h(v.ElCascader,z,F);X.push(H);const J={default:()=>X};r.slots.default&&(J.label=r.slots.default),r.slots.fixedTip&&(J.fixedTip=r.slots.fixedTip);const T={...Ne(n,or),hintText:O.value,hintVisible:le.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:Z,onMouseleave:ee};return h.value&&!n.lazy&&(T["appear-listen"]=!0,T.onAppear=C),l.h(o,T,J)}}}}const{componentName:Bs,create:_s,scope:qs}=ie("cascader-item"),Qn=_s(Ms(Bs,qs,Se)),rr={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Ps(e,t,o){return{props:{...we,...Ee,...rr},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(n,r){const a=Ve(l.computed(()=>n.disabled)),s=Oe(l.computed(()=>n.readonly)),{emitEvent:i}=xe({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=ge(n,"modelValue",null,i),S=e,k=l.computed(()=>({[S]:!0})),g=L=>{c.value=L,i("update:modelValue",L),i("input",L)},h=L=>{i("change",L)},m=L=>{i("select",L)};let $=ge(n,"hintText"),w=l.ref(!1);const C=L=>{let V=L.target.value;f.value=!0,me($.value)||(w.value=!0),i("focus",V,L)},q=L=>{setTimeout(()=>{w.value&&(w.value=!1),f.value=!1},0);let V=L.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),i("blur",V,L)},B=()=>{i("clear","")},A=l.ref();return Te({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()},select:()=>{A?.value.select()}}),()=>{const M={...r.attrs,ref:A,class:k.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:s.value,modelValue:c.value,onClear:B,onChange:h,onInput:g,onFocus:C,onBlur:q,onSelect:m},V={};r.slots.prepend&&(V.prepend=r.slots.prepend),r.slots.append&&(V.append=r.slots.append),r.slots.prefix&&(V.prefix=r.slots.prefix),r.slots.suffix&&(V.suffix=r.slots.suffix),r.slots.option&&(V.default=r.slots.option);const E=[],y=l.h(v.ElAutocomplete,M,V);E.push(y);const j={default:()=>E};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const R={...Ne(n,rr),hintText:$.value,hintVisible:w.value,prop:`${n.prop}_item`};return l.h(o,R,j)}}}}const{componentName:js,create:zs,scope:Hs}=ie("autocomplete-item"),el=zs(Ps(js,Hs,Se));function Ks(e,t,o,n,r){let a=[];Array.isArray(e)?a=e:a=[e];const s=[],i=t[0];if(Array.isArray(e)&&!Array.isArray(i)&&!i[r]){let u=t;for(let d=0;u&&d<a.length;d++){let f=a[d],c=u.find(S=>S[n]===f);if(!c)break;s.push(c[o])}return s}if(Array.isArray(i))for(let u=0;u<t.length&&u<a.length;u++){let d=t[u],f=a[u];const c=d.find(S=>S[n]===f);if(!c)break;s.push(c[o])}else{let u=t;for(let d=0;u&&d<a.length;d++){let f=a[d],c=u.find(S=>S[n]===f);if(!c)break;s.push(c[o]),u=c[r]}}return s}let Ws=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 r=Pe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(We(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Ys(){const e=l.getCurrentInstance();return new Ws(e.proxy)}const ar={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 Gs(e,t){return{props:{...ar},setup(o,{attrs:n,slots:r}){const a=Ys(),s=l.ref([]);l.watch([()=>o.source,()=>o.params],async([d,f])=>{s.value=await a.load(o.sourceType,d,f)},{immediate:!0});const i=l.computed(()=>{if(!Array.isArray(s.value)||s.value.length===0)return"";let d=Ks(o.modelValue,s.value,o.textKey,o.valueKey,o.childrenKey);return d.length==0?o.emptyText??"":d.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${d[0]}`:d[0]:d.join(o.separator)}),u=o.resolveTag?l.resolveComponent(o.tag):o.tag;return()=>{const d={...n};return r.default?r.default({text:i.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===i.value?l.h(o.emptyTag??"span",{...n,class:o.emptyClass},i.value):l.h(u,d,{default:()=>i.value}):l.h(u,d,i.value)}}}}const{componentName:Ch,create:Us,scope:Nh}=ie("mapping"),kt=Us(Gs());function Xs(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],s=0,i=a.indexOf("["),u=i==-1?-1:a.indexOf("]",i);for(;i!==-1&&u!==-1;){let d=a.substring(i+1,u);if(/^\d+$/.test(d)){let f=parseInt(d);if(s==0){let c=a.substring(0,i);n=n[c][f]}else n=n[f];s++}i=a.indexOf("[",u),u=i==-1?-1:a.indexOf("]",i)}s===0&&(n=n[a])}return n}function Zs(e,t){return{props:{...ar},setup(o,{attrs:n,slots:r}){return()=>{const a={default:s=>{const i=Xs(s.row,s.column.property);return r.default?l.h(kt,{...o,modelValue:i},{default:r.default}):l.h(kt,{...o,modelValue:i})}};for(let s in r)s!=="default"&&(a[s]=r[s]);return l.h(v.ElTableColumn,{...n},a)}}}}const{componentName:kh,create:Js,scope:Eh}=ie("table-mapping-column"),tl=Js(Zs()),Qs=Symbol.for("TableStateKey");function ir(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],s=0,i=a.indexOf("["),u=i==-1?-1:a.indexOf("]",i);for(;i!==-1&&u!==-1;){let d=a.substring(i+1,u);if(/^\d+$/.test(d)){let f=parseInt(d);if(s==0){let c=a.substring(0,i);n=n[c][f]}else n=n[f];s++}i=a.indexOf("[",u),u=i==-1?-1:a.indexOf("]",i)}s===0&&(n=n[a])}return n}function eu(e,t){return{props:{},setup(o,{attrs:n}){const r=l.inject(Qs,{});return()=>{const a=r.currentRow?r.currentRow.value:null,s={default:i=>{const u=ir(i.row,i.column.property),d=a?ir(a,i.column.property):null,f=u===d,c={class:{"el-radio__input":!0,"is-checked":f}},S=l.h("span",c,[l.h("span",{class:{"el-radio__inner":!0}})]),k={class:{"el-radio":!0,"is-checked":f}};return l.h("label",k,[S])}};return l.h(v.ElTableColumn,{...n},s)}}}}const{componentName:Ih,create:tu,scope:Oh}=ie("table-radio-column"),nl=tu(eu()),nu={},lu={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"},ou=[l.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 ru(e,t){return l.openBlock(),l.createElementBlock("svg",lu,ou)}const au=_e(nu,[["render",ru]]),{componentName:Dh,create:iu,scope:Fh}=ie("table-setting"),su={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:"不固定"}},uu=iu({components:{FoxPopover:v.ElPopover,FoxCheckbox:v.ElCheckbox,FoxCheckboxGroup:v.ElCheckboxGroup,FoxButton:v.ElButton,FoxIcon:v.ElIcon,DragIcon:au,Download:$e.Download,RefreshLeft:$e.RefreshLeft},props:{...su},setup(e,{emit:t,attrs:o}){let n=[];const r=l.ref([]),a=l.computed(()=>r.value.filter(b=>b.label===""||b.type?!1:b.fixed===""||b.fixed===!0||b.fixed==="left")),s=l.computed(()=>r.value.filter(b=>b.label===""||b.type?!1:b.fixed==="right")),i=l.computed(()=>r.value.filter(b=>!(b.label===""||b.type||b.fixed!==void 0))),u=l.computed(()=>(a.value.length>0||s.value.length>0)&&i.value.length>0),d=l.computed(()=>a.value.length>0),f=l.computed(()=>s.value.length>0),c=b=>b.length>1,S=(b,Y)=>{Array.isArray(b)&&Array.isArray(Y)&&b.forEach(F=>{Y.some(X=>X.prop===F.prop?(F.label=X.label,!0):!1)});const P=[];r.value=b.map((F,X)=>(!(F.label===""||F.type)&&F.visible!==!1&&P.push(F.prop),{...F,sortIndex:X})),i.value.length+a.value.length+s.value.length===P.length?w.value=!0:P.length>0&&(C.value=!0),A.value=P},k=b=>b?b.type?b.type:b.label?b.prop:"":"",g=(b,Y)=>{if(b.length!==Y.length)return!1;const P=b.map(z=>k(z));for(let z of Y){const F=k(z);if(P.indexOf(F)===-1)return!1}return!0},h=b=>{if(!b){const Y=e.tableRef.getColumnSetting(),P=Y.srcColumnPropertyList;n=P.map((z,F)=>({...z,sortIndex:F})),b=Y.columnPropertyList,b&&b.length>0&&g(P,b)||(b=P)}S(b,n)},m=()=>{e.tableRef.setColumnSetting(r.value)},$=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),w=l.ref(!1),C=l.ref(!1),q=b=>{const Y=[];r.value.forEach(z=>{b&&!(z.label===""||z.type)&&Y.push(z.prop),z.visible=b}),w.value=!1,C.value=!1,i.value.length+a.value.length+s.value.length===Y.length?w.value=!0:Y.length>0&&(C.value=!0),A.value=Y,m()},B=()=>{h(n),m()},A=l.ref([]),L=b=>{r.value.forEach(P=>{if(P.label===""||P.type)return;const z=b.indexOf(P.prop)!==-1;P.visible=z}),w.value=!1,C.value=!1;const Y=i.value.length+a.value.length+s.value.length;b.length===Y?w.value=!0:b.length>0&&(C.value=!0),m()},M=()=>{h()};l.onMounted(()=>{setTimeout(()=>{h()},50)});const V={currentRow:null,index:null,roleType:null},E=b=>b?b.dataset&&b.dataset.role==="row"?b:b.tagName.toLowerCase()!=="body"?(b=b.parentElement,E(b)):null:null,y=b=>{const Y=b.currentTarget;Y&&Y.dataset&&(V.roleType=Y.dataset.roleType,V.index=Y.dataset.index)},j=b=>{V.currentRow&&(V.currentRow.classList.remove("is-dragover"),V.currentRow=null),V.index=null,V.roleType=null},_=b=>{const Y=b.currentTarget;b.relatedTarget;const P=E(Y);if(!P)return;const z=P.dataset&&P.dataset.roleType;V.roleType===z&&(b.preventDefault(),V.currentRow&&V.currentRow!==P&&V.currentRow.classList.remove("is-dragover"),P.classList.add("is-dragover"),V.currentRow=P)},R=b=>{b.preventDefault(),V.currentRow&&(V.currentRow.classList.remove("is-dragover"),V.currentRow=null)},D=b=>{const Y=b.currentTarget,P=E(Y);if(!P)return;const z=P.dataset&&P.dataset.roleType;if(V.roleType!==z)return;b.preventDefault();const F=Number(V.index),X=Number(P.dataset.index);if(F!==X){if(F<X){const H=r.value[F];r.value.splice(F,1),r.value.splice(X,0,H)}else{const H=r.value[F];r.value.splice(F,1),r.value.splice(X+1,0,H)}S(r.value,n),m()}},K=b=>{const Y=r.value[b];Y.fixed="left",m()},G=b=>{const Y=r.value[b];Y.fixed="right",m()},U=b=>{const Y=r.value[b];Y.fixed=void 0,m()},Z=new Map;let ee=null;function le(b){const Y=document.createRange();return Y.setStart(b,0),Y.setEnd(b,b.childNodes.length),Y.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:s,unFixedColumns:i,isShowNotFixedTitle:u,isShowLeftFixedTitle:d,isShowRightFixedTitle:f,isDraggble:c,isCheckAll:w,isIndeterminate:C,handleCheckAllChange:q,handleReset:B,checkedValue:A,handleCheckChange:L,onShow:M,onDragStart:y,onDragEnd:j,onDragOver:_,onDragLeave:R,onDrop:D,toLeftFixed:K,toRightFixed:G,toUnFixed:U,checkboxLabelStyle:$,onMouseOverForOverflowText:(b,Y,P)=>{const z=b.currentTarget;if(z){const F=Math.floor(z.offsetWidth);if(Math.floor(le(z))>F){let H=Z.get(Y);if(H){if(H===ee)return;De.hide(H)}H=De.show(z,P,{type:"text",placement:"top",closeOnClick:!1}),Z.set(Y,H),ee=H}}},onMouseLeaveForOverflowText:(b,Y)=>{const P=Z.get(Y);P&&(De.hide(P),P===ee&&(ee=null))},onMouseOverForTip:(b,Y)=>{const P=b.currentTarget;P&&(ee&&De.hide(ee),ee=De.show(P,Y,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:b=>{ee&&(De.hide(ee),ee=null)}}}}),cu={class:"fox-table-setting"},fu={class:"fox-table-setting__header"},du={class:"fox-table-setting__body"},hu={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},gu={key:0,class:"fox-table-setting__body-title"},mu=["data-index","draggable"],pu=["onMouseover","onMouseleave"],yu={class:"tools-item"},bu={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},vu={key:0,class:"fox-table-setting__body-title"},wu=["data-index","draggable"],Su=["onMouseover","onMouseleave"],xu={class:"tools-item"},Tu={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},$u={key:0,class:"fox-table-setting__body-title"},Cu=["data-index","draggable"],Nu=["onMouseover","onMouseleave"],ku={class:"tools-item"};function Eu(e,t,o,n,r,a){const s=l.resolveComponent("FoxCheckbox"),i=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),d=l.resolveComponent("RefreshLeft"),f=l.resolveComponent("FoxIcon"),c=l.resolveComponent("Download"),S=l.resolveComponent("fox-checkbox"),k=l.resolveComponent("FoxCheckboxGroup"),g=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(g,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",cu,[l.createElementVNode("div",fu,[l.createVNode(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=h=>e.isCheckAll=h),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(i,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",du,[l.createVNode(k,{modelValue:e.checkedValue,"onUpdate:modelValue":t[28]||(t[28]=h=>e.checkedValue=h),onChange:e.handleCheckChange},{default:l.withCtx(()=>[e.leftFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",hu,[e.isShowLeftFixedTitle?(l.openBlock(),l.createElementBlock("div",gu,l.toDisplayString(e.leftFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.leftFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[5]||(t[5]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[6]||(t[6]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[7]||(t[7]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[8]||(t[8]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[9]||(t[9]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.leftFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(s,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,h.prop,h.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,pu)]),_:2},1032,["label"]),l.createElementVNode("div",yu,[l.createVNode(f,{onClick:m=>e.toUnFixed(h.sortIndex),onMouseover:t[1]||(t[1]=m=>e.onMouseOverForTip(m,e.unFixedText)),onMouseleave:t[2]||(t[2]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:m=>e.toRightFixed(h.sortIndex),onMouseover:t[3]||(t[3]=m=>e.onMouseOverForTip(m,e.fixedRightText)),onMouseleave:t[4]||(t[4]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"])])],40,mu))),128))])):l.createCommentVNode("",!0),e.unFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",bu,[e.isShowNotFixedTitle?(l.openBlock(),l.createElementBlock("div",vu,l.toDisplayString(e.unFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.unFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[14]||(t[14]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[15]||(t[15]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[16]||(t[16]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[17]||(t[17]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[18]||(t[18]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.unFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(s,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,h.prop,h.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Su)]),_:2},1032,["label"]),l.createElementVNode("div",xu,[l.createVNode(f,{onClick:m=>e.toLeftFixed(h.sortIndex),onMouseover:t[10]||(t[10]=m=>e.onMouseOverForTip(m,e.fixedLeftText)),onMouseleave:t[11]||(t[11]=m=>e.onMouseLeaveForTip(m)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:m=>e.toRightFixed(h.sortIndex),onMouseover:t[12]||(t[12]=m=>e.onMouseOverForTip(m,e.fixedRightText)),onMouseleave:t[13]||(t[13]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"])])],40,wu))),128))])):l.createCommentVNode("",!0),e.rightFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Tu,[e.isShowRightFixedTitle?(l.openBlock(),l.createElementBlock("div",$u,l.toDisplayString(e.rightFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.rightFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[23]||(t[23]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[24]||(t[24]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[25]||(t[25]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[26]||(t[26]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[27]||(t[27]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.rightFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(S,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,h.prop,h.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Nu)]),_:2},1032,["label"]),l.createElementVNode("div",ku,[l.createVNode(f,{onClick:m=>e.toUnFixed(h.sortIndex),onMouseover:t[19]||(t[19]=m=>e.onMouseOverForTip(m,e.unFixedText)),onMouseleave:t[20]||(t[20]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:m=>e.toLeftFixed(h.sortIndex),onMouseover:t[21]||(t[21]=m=>e.onMouseOverForTip(m,e.fixedLeftText)),onMouseleave:t[22]||(t[22]=m=>e.onMouseLeaveForTip(m)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"])])],40,Cu))),128))])):l.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const on=_e(uu,[["render",Eu]]);let Iu=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,r,a,s,i){if(Array.isArray(o)){let d=(n-1)*r,f=d+r;f>o.length&&(f=o.length);const c=o.slice(d,f);return{totalSize:o.length,page:c}}if(typeof o=="function")return await Reflect.apply(o,null,[n,r,a,s,i]);const u=Pe(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(We(a)&&l.isReactive(a)&&(a=l.toRaw(a)),await Reflect.apply(u,null,[o,n,r,a,s,i]))}};function Ou(){const e=l.getCurrentInstance();return new Iu(e.proxy)}class Vu{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const n=Pe(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=Pe(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=Pe(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function sr(){const e=l.getCurrentInstance();return new Vu(e.proxy)}const Du=Symbol.for("TableStateKey"),ur={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},appearLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]},cellClassName:{type:Function},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"}},cr={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"},paginationBackground:{type:[Boolean],required:!1,default:!1},paginationSmall:{type:[Boolean],required:!1,default:!0},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},ll={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:"不固定"}},Fu={infiniteLoad:{type:Boolean,default:!1},loadText:{type:String,default:"加载中..."},loadMoreText:{type:String,default:"无更多数据"}};function Ru(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],s=0,i=a.indexOf("["),u=i==-1?-1:a.indexOf("]",i);for(;i!==-1&&u!==-1;){let d=a.substring(i+1,u);if(/^\d+$/.test(d)){let f=parseInt(d);if(s==0){let c=a.substring(0,i);n=n[c][f]}else n=n[f];s++}i=a.indexOf("[",u),u=i==-1?-1:a.indexOf("]",i)}s===0&&(n=n[a])}return n}function ol(e,t){return e.filter(n=>{for(let r in t){const a=t[r],s=Ru(n,r);if(a!==s)return!1}return!0})}function Au(e,t,o){return{inheritAttrs:!1,props:{...we,...Ee,...ur,...cr,...ll,...Fu},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,r){const{locale:a}=Le.useFoxI18n(t),{emitEvent:s}=xe({componentName:e,validateHandler:{getValue(...Q){return A.value}}},n.prop??r.attrs.name),i=e,u=l.computed(()=>({[i]:!0})),d=l.computed(()=>({[`${i}__setting`]:!0})),f=l.computed(()=>({[`${i}__footer`]:!0,[`${i}__footer__${n.footerAlign}`]:!0})),c=l.computed(()=>({[`${i}__pagination`]:!0,[`${i}__pagination__${n.paginationAlign}`]:!0})),S=l.shallowRef({}),k=l.computed(()=>({...S.value,...n.params??{},...n.baseParams??{}})),g=l.ref(n.infiniteLoad===!0?0:n.pageIndex),h=l.ref(n.pageSize),m=ue(n.infiniteLoad);m||(l.watch(()=>n.pageIndex,Q=>{g.value=Q}),l.watch(()=>n.pageSize,Q=>{h.value=Q}),l.watch([g,h],([Q,re],[ae,ce])=>{re!==ce&&(g.value=1,Q=1),E(n.data,Q,re,k.value)}));const $=()=>Array.isArray(n.data)?!0:ue(n.autoLoad);$()&&l.watch([()=>n.data,k],async([Q,re],[ae,ce])=>{$()&&(Q!==ae&&(M=!0),!(!Array.isArray(Q)&&Ye(Q,ae)&&Ye(re,ce))&&(m?(g.value=0,q.value=!0,A.value=[],j()):g.value===1?E(Q,g.value,h.value,re):g.value=1))},{deep:!0});const w=Q=>{g.value=Q,s("page-index-change",Q)},C=Q=>{h.value=Q,s("page-size-change",Q)},q=l.ref(!0),B=l.ref(0),A=l.ref(),L=Ou();let M=!0;const V=Ie(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,Q=>ue(Q)),E=async(Q,re,ae,ce,Re)=>{M=!1;try{if(Re===!0){if(!q.value)return!1;const be=await L.load("table",Q,re,ae,ce,M,a.value);return B.value=be.totalSize,!be.page||!Array.isArray(be.page)||(Reflect.apply([].push,A.value,be.page),setTimeout(()=>{s("loaded-data")},250),(A.value?.length??0)>=B.value)||be.page.length<ae?(q.value=!1,!1):!0}else{const be=await L.load("table",Q,re,ae,ce,M,a.value);return B.value=be.totalSize,A.value=be.page??[],setTimeout(()=>{s("loaded-data")},250),!0}}catch(be){console.error("[FoxUI] Load Table Data Fail",be),B.value=0,A.value=[]}return!1};let y=!1;const j=async()=>{if(!y){if(y=!0,!q.value){y=!1;return}g.value+=1,await E(n.data,g.value,h.value,k.value,!0),y=!1}},_=(Q={},re=!1)=>new Promise(async ae=>{S.value={...l.toRaw(Q??{})},re||(g.value=n.pageIndex??1),m===!0?(g.value=0,A.value=[],q.value=!0,await j()):await E(n.data,g.value,h.value,k.value),ae()}),R=()=>{B.value=0,A.value=[],m===!0&&(g.value=0,q.value=!0)};let D=!1;const K=()=>{D||(D=!0,_())},G=l.ref(null);if(m===!0){let Q=null;const re=()=>{G.value&&(Q=new IntersectionObserver(ce=>{let Re=!1;for(let be of ce)if(be.intersectionRatio>0){Re=!0;break}Re&&j()}),Q.observe(G.value))},ae=()=>{!Q||!G.value||(Q.unobserve(G.value),Q=null)};l.onMounted(re),l.onBeforeUnmount(ae)}$()&&!V.value&&_();const U=l.ref(null);l.provide(Du,{currentRow:U});const Z=(Q,re)=>{U.value=Q,s("current-change",Q,re)},ee=(Q,re,ae)=>{s("row-click",Q,re,ae),ue(n.rowClickSelectable)===!0&&se?.value.toggleRowSelection(Q)},le=[],O=(Q,re)=>{if(s("expand-change",Q,re),ue(n.uniqueExpansion))if(Array.isArray(re)&&re.length==0){const ae=le.length;le.splice(0,ae)}else{le.forEach(ce=>{ce!==Q&&se?.value.toggleRowExpansion(ce,!1)});const ae=le.length;le.splice(0,ae,Q)}},x=r.attrs.id??n.prop??r.attrs.name,I=sr(),N=l.ref([]);let b=[];const Y=()=>({srcColumnPropertyList:b.map(re=>({...re})),columnPropertyList:N.value}),P=Q=>{N.value=[...Q],F()},z=async()=>{const Q=await I.load(x);Q&&(N.value=Q)},F=()=>{I.save(x,N.value)},X=()=>{I.remove(x)};z();const H=Q=>Q?Q.type?Q.type:Q.label?Q.prop:"":"",J=()=>typeof r.slots.default=="function"?r.slots.default():[],te=(Q,re)=>{for(let ae in re){const ce=re[ae];typeof ce!="function"&&(Q[ae]=ce)}},T=l.computed(()=>{const Q=J(),re=new Map;if(b=[],Q.forEach(ae=>{const ce=ae;if(!ce.props)return;const Re=H(ce.props);re.set(Re,ae);const be={label:"",prop:""};te(be,ce.props),b.push(be)}),N.value.length===b.length){const ae=[];for(let ce of N.value){const Re=H(ce),be=re.get(Re);if(!be)return Q;if(ce.visible===!1)continue;const fn=be;fn.props.fixed=ce.fixed,ae.push(fn)}return ae}return Q}),W=l.shallowRef(new Map),ne=({column:Q,rowIndex:re})=>{const ae=`${re}_${Q.property}`;return W.value.get(ae)??""},oe=Q=>typeof Q=="function"?re=>{const ae=[];let ce=ne(re);return ce&&ae.push(ce),ce=Q(re),ce&&ae.push(ce),ae.length===0?"":ae.join(" ")}:ne,de=(Q,re,ae)=>{const ce=`${Q}_${re}`;ae?W.value.set(ce,ae):W.value.delete(ce),l.triggerRef(W)},se=l.ref();return Te({clearSelection:()=>se?.value.clearSelection(),getSelectionRows:()=>se?.value.getSelectionRows(),toggleRowSelection:(Q,re)=>{se?.value.toggleRowSelection(Q,re)},toggleRowSelectionByProp:(Q,re)=>{if(!A.value)return;const ae=ol(A.value,Q);ae.length!==0&&ae.forEach(ce=>{se?.value.toggleRowSelection(ce,re)})},toggleAllSelection:()=>{se?.value.toggleAllSelection()},toggleRowExpansion:(Q,re)=>{se?.value.toggleRowExpansion(Q,re)},toggleRowExpansionByProp:(Q,re)=>{if(!A.value)return;const ae=ol(A.value,Q);ae.length!==0&&ae.forEach(ce=>{se?.value.toggleRowExpansion(ce,re)})},setCurrentRow:Q=>{se?.value.setCurrentRow(Q)},setCurrentRowByProp:Q=>{if(!A.value)return;const re=ol(A.value,Q);re.length!==0&&se?.value.setCurrentRow(re[0])},getCurrentRow:()=>U.value,clearSort:()=>{se?.value.clearSort()},clearFilter:Q=>{se?.value.clearFilter(Q)},doLayout:()=>{se?.value.doLayout()},sort:(Q,re)=>{se?.value.sort(Q,re)},scrollTo:(Q,re)=>{se?.value.scrollTo(Q,re)},setScrollTop:Q=>{se?.value.setScrollTop(Q)},setScrollLeft:Q=>{se?.value.setScrollLeft(Q)},loadData:_,clearData:R,getData(){return A.value},getTotalSize(){return B.value},getPageIndex(){return g.value},getPageSize(){return h.value},getColumnSetting:Y,setColumnSetting:P,removeColumnSetting:X,setCellClassName:de}),()=>{const re={...He(r.attrs),onCurrentChange:Z,onRowClick:ee,onExpandChange:O,data:A.value,ref:se,class:u.value,"cell-class-name":oe(n.cellClassName)},ae={};if(r.slots.default&&(ae.default=()=>T.value),r.slots.append&&(ae.append=r.slots.append),r.slots.empty&&(ae.empty=r.slots.empty),m===!0){const je=[];if(q.value){const Dt=l.h($e.Loading,{class:`${i}__infinite-icon`});je.push(Dt);const _l=l.h("span",{class:`${i}__infinite-text`},[n.loadText]);je.push(_l)}else{const Dt=l.h("span",{class:`${i}__infinite-text`},[n.loadMoreText]);je.push(Dt)}const it={ref:G,class:`${i}__infinite`},Bl=l.h("div",it,je);ae.append=()=>Bl}const ce=l.h(v.ElTable,re,ae),Re=[];if(Re.push(ce),!m){let je=null;if(typeof r.slots.pagination=="function")je=r.slots.pagination();else if(n.showPagination){const it={class:c.value,total:B.value,pageSize:h.value,"onUpdate:pageSize":C,pageSizes:n.pageSizes,currentPage:g.value,"onUpdate:currentPage":w,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,samll:n.paginationSmall,background:n.paginationBackground};je=l.h(v.ElPagination,it)}if(n.showSetting){const it=[];je&&it.push(je);const Bl=l.h(v.ElIcon,{class:d.value},{default:()=>l.h($e.Setting)}),Dt=io(n,ll),_l=l.h(on,{...Dt,tableRef:{getColumnSetting:Y,setColumnSetting:P,removeColumnSetting:X}},{default:()=>Bl});it.push(_l);const bh=l.h("div",{class:f.value},it);Re.push(bh)}else je&&Re.push(je)}const be={default:()=>Re},Vt={...Ne(n,ur,cr,ll),prop:`${n.prop}_item`};return Vt.contentClass=`${i}__wrap`,Vt.errorMarkClass="is-table-error",V.value&&$()&&(Vt["appear-listen"]=!0,Vt.onAppear=K),l.h(o,Vt,be)}}}}const{componentName:Lu,create:Mu,scope:Bu}=ie("table-item"),rl=Mu(Au(Lu,Bu,Se));function dt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Et(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function _u(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let qu=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 r=Pe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(We(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Pu(){const e=l.getCurrentInstance();return new qu(e.proxy)}function fr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=dt(e,t),r=dt(e,o);if(n!==r)return!1;const a=Et(e,t),s=Et(e,o);return a===s}function ju(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;let r=null;for(let a of n){let s=!1;if(o==="text")s=dt(e,a)===t;else if(o==="item")s=fr(e,a,t);else{let i=Et(e,a);i==null&&(i=dt(e,a)),s=i===t}if(s){r=a;break}}return r}function zu(e){return{text:e,value:e}}function Hu(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const dr={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"},appearLoad:{type:[Boolean,String],default:!1}};function Ku(e,t,o){return{inheritAttrs:!0,props:{...we,...Ee,...dr},emits:["change","update:modelValue","setValue"],setup(n,r){const a=Ve(l.computed(()=>n.disabled)),s=Oe(l.computed(()=>n.readonly)),{emitEvent:i}=xe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(null),d=l.ref(null),f=(L,M,V,E=!0)=>{const y=ju(n,L,M,V);if(y===null){if(d.value===null)return;d.value=null,u.value=null,E&&(i("update:modelValue",null),i("change",null));return}if(!fr(n,y,d.value)){u.value=L;const _=l.toRaw(y);d.value=_;let R=null;n.valueType==="text"?R=dt(n,_):n.valueType==="item"?R=_:R=Et(n,_),E&&(i("update:modelValue",R),i("change",R))}},c=l.ref([]),S=Ie(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,L=>ue(L)),k=Pu(),g=async(L,M)=>{if(L){const V=await k.load("radio",L,M);if(V.length>0)if(typeof V[0]=="string"){let j=V.map(_=>zu(_));c.value=j}else c.value=V}};l.watch([()=>n.source,()=>n.params],async([L,M])=>{g(L,M)},{immediate:!S.value});let h=!1;const m=()=>{h||(h=!0,g(n.source,n.params))};l.watch([()=>c.value,()=>n.modelValue],([L,M])=>{f(M,n.valueType,L,!1),i("setValue",M)});const $=e,w=l.computed(()=>({[$]:!0,[`is-${n.direction}`]:!0})),C=L=>{f(L,"value",c.value,!0)};let q=ge(n,"hintText"),B=ge(n,"hintVisible");const A=(L,M)=>{const V=[];return L.forEach((E,y)=>{const j=Et(n,E),_=dt(n,E);let R=_u(n,E);a.value===!0&&(R=a.value),s.value===!0&&(R=s.value);const D=Hu(n,E,y)??{},K=`${j}_${y}`,G={...D,key:K,label:j,size:n.size,border:ue(n.border)};R&&(G.disabled=R),n.itemType==="button"?V.push(l.h(v.ElRadioButton,G,{default:()=>[_]})):typeof M=="function"?V.push(l.h(v.ElRadio,G,{default:()=>M(E)})):V.push(l.h(v.ElRadio,G,{default:()=>[_]}))}),V};return()=>{const M={...He(r.attrs),class:w.value,disabled:a.value||s.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:C},V=[],E={};r.slots.options?E.default=r.slots.options:E.default=()=>A(c.value,r.slots.text);const y=l.h(v.ElRadioGroup,M,E);V.push(y);const j={default:()=>V};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const R={...Ne(n,dr),hintText:q.value,hintVisible:B.value,prop:`${n.prop??r.attrs.name}_item`};return S.value&&(R["appear-listen"]=!0,R.onAppear=m),l.h(o,R,j)}}}}const{componentName:Wu,create:Yu,scope:Gu}=ie("radio-item"),al=Yu(Ku(Wu,Gu,Se));function ht(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function gt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Uu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Xu=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 r=Pe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(We(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Zu(){const e=l.getCurrentInstance();return new Xu(e.proxy)}function hr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=ht(e,t),r=ht(e,o);if(n!==r)return!1;const a=gt(e,t),s=gt(e,o);return a===s}function Ju(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let s of n){let i=!1;if(o==="text")i=ht(e,s)===a;else if(o==="item")i=hr(e,s,a);else{let u=gt(e,s);u==null&&(u=ht(e,s)),i=u===a}if(i){r.push(s);break}}}),r}function Qu(e){return{text:e,value:e}}function ec(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const gr={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"},appearLoad:{type:[Boolean,String],default:!1}};function tc(e,t,o){return{inheritAttrs:!0,props:{...we,...Ee,...gr},emits:["change","update:modelValue","setValue"],setup(n,r){const a=Ve(l.computed(()=>n.disabled)),s=Oe(l.computed(()=>n.readonly)),{emitEvent:i}=xe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref([]),d=l.ref([]),f=(L,M,V,E=!0)=>{const y=Ju(n,L,M,V);if(y===null){if(d.value===null||d.value.length===0)return;u.value=[],d.value=[],E&&(i("update:modelValue",[]),i("change",[]));return}let j=!0;if(y.length!==d.value.length)j=!1;else for(let _=0;_<y.length;_++){const R=y[_],D=d.value[_];if(!hr(n,R,D)){j=!1;break}}if(!j){d.value=y;let _=[],R=[];y.forEach(K=>{_.push(gt(n,K)),n.valueType==="text"?R.push(ht(n,K)):n.valueType==="item"?R.push(K):R.push(gt(n,K))}),u.value=_;const D=l.toRaw(R);E&&(i("update:modelValue",D),i("change",D))}},c=l.ref([]),S=Ie(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,L=>ue(L)),k=Zu(),g=async(L,M)=>{if(L){const V=await k.load("checkbox",L,M);if(V.length>0)if(typeof V[0]=="string"){let j=V.map(_=>Qu(_));c.value=j}else c.value=V}};l.watch([()=>n.source,()=>n.params],async([L,M])=>{g(L,M)},{immediate:!S.value});let h=!1;const m=()=>{h||(h=!0,g(n.source,n.params))};l.watch([()=>c.value,()=>n.modelValue],([L,M])=>{f(M,n.valueType,L,!1),i("setValue",M)});const $=e,w=l.computed(()=>({[$]:!0,[`is-${n.direction}`]:!0})),C=L=>{f(L,"value",c.value,!0)};let q=ge(n,"hintText"),B=ge(n,"hintVisible");const A=(L,M)=>{const V=[];return L.forEach((E,y)=>{const j=gt(n,E),_=ht(n,E);let R=Uu(n,E);a.value===!0&&(R=a.value),s.value===!0&&(R=s.value);const D=ec(n,E,y)??{},K=`${j}_${y}`,G={...D,key:K,class:n.itemClass,label:j,size:n.size,border:ue(n.border)};R&&(G.disabled=R),n.itemType==="button"?V.push(l.h(v.ElCheckboxButton,G,{default:()=>[_]})):typeof M=="function"?V.push(l.h(v.ElCheckbox,G,{default:()=>M(E)})):V.push(l.h(v.ElCheckbox,G,{default:()=>[_]}))}),V};return()=>{const M={...He(r.attrs),class:w.value,disabled:a.value||s.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:ve(n.max),min:ve(n.min),onChange:C},V=[],E={};r.slots.options?E.default=r.slots.options:E.default=()=>A(c.value,r.slots.text);const y=l.h(v.ElCheckboxGroup,M,E);V.push(y);const j={default:()=>V};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const R={...Ne(n,gr),hintText:q.value,hintVisible:B.value,prop:`${n.prop??r.attrs.name}_item`};return S.value&&(R["appear-listen"]=!0,R.onAppear=m),l.h(o,R,j)}}}}const{componentName:nc,create:lc,scope:oc}=ie("checkbox-item"),il=lc(tc(nc,oc,Se)),mr={modelValue:{type:[Number,String],required:!1}};function rc(e,t,o){return{props:{...we,...Ee,...mr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Ve(l.computed(()=>n.disabled)),s=Oe(l.computed(()=>n.readonly)),{emitEvent:i}=xe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=ge(n,"modelValue",h=>ve(h),i),d=e,f=l.computed(()=>({[d]:!0})),c=h=>{i("update:modelValue",h),i("change",h)};let S=ge(n,"hintText"),k=l.ref(!1);const g=l.ref();return Te({}),()=>{const m={...He(r.attrs),ref:g,class:f.value,readonly:s.value||a.value,modelValue:u.value,onChange:c},$={},w=[],C=l.h(v.ElRate,m,$);w.push(C);const q={default:()=>w};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const A={...Ne(n,mr),hintText:S.value,hintVisible:k.value,prop:`${n.prop}_item`};return l.h(o,A,q)}}}}const{componentName:ac,create:ic,scope:sc}=ie("rate-item"),sl=ic(rc(ac,sc,Se)),pr={modelValue:{type:[Boolean,String,Number],required:!1}};function uc(e,t,o){return{props:{...we,...Ee,...pr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Ve(l.computed(()=>n.disabled)),s=Oe(l.computed(()=>n.readonly)),{emitEvent:i}=xe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=ge(n,"modelValue",null,i),d=e,f=l.computed(()=>({[d]:!0})),c=h=>{i("update:modelValue",h),i("change",h)};let S=ge(n,"hintText"),k=ge(n,"hintVisible");const g=l.ref();return Te({}),()=>{const m={...He(r.attrs),ref:g,class:f.value,readonly:s.value,disabled:a.value,modelValue:u.value,onChange:c},$={},w=[],C=l.h(v.ElSwitch,m,$);w.push(C);const q={default:()=>w};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const A={...Ne(n,pr),hintText:S.value,hintVisible:k.value,prop:`${n.prop}_item`};return l.h(o,A,q)}}}}const{componentName:cc,create:fc,scope:dc}=ie("switch-item"),ul=fc(uc(cc,dc,Se)),yr={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function hc(e,t,o){return{props:{...we,...Ee,...yr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Ve(l.computed(()=>n.disabled)),s=Oe(l.computed(()=>n.readonly)),i=l.ref(!1),{emitEvent:u}=xe({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),d=ge(n,"modelValue",null,u),f=e,c=l.computed(()=>({[f]:!0})),S=B=>{u("update:modelValue",B),u("change",B)};let k=ge(n,"hintText"),g=l.ref(!1);const h=B=>{let L=B.target.value;i.value=!0,me(k.value)||(g.value=!0),u("focus",L,B)},m=B=>{setTimeout(()=>{g.value&&(g.value=!1),i.value=!1},0);let L=B.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),w.value||u("blur",L,B)},$=()=>{u("clear","")},w=l.ref(!1),C=B=>{w.value=B,u("visible-change",B),B||u("selected")},q=l.ref();return Te({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()}}),()=>{const A={...He(r.attrs),ref:q,class:c.value,disabled:a.value||s.value,modelValue:d.value,"onUpdate:modelValue":S,onClear:$,onFocus:h,onBlur:m,onVisibleChange:C},L={};r.slots.option&&(L.default=r.slots.option);const M=[],V=l.h(v.ElTreeSelect,A,L);M.push(V);const E={default:()=>M};r.slots.default&&(E.label=r.slots.default),r.slots.fixedTip&&(E.fixedTip=r.slots.fixedTip);const j={...Ne(n,yr),hintText:k.value,hintVisible:g.value,prop:`${n.prop}_item`};return l.h(o,j,E)}}}}const{componentName:gc,create:mc,scope:pc}=ie("tree-select-item"),cl=mc(hc(gc,pc,Se)),yc={},bc={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"},vc=[l.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 wc(e,t){return l.openBlock(),l.createElementBlock("svg",bc,vc)}const Sc=_e(yc,[["render",wc]]),{componentName:Ah,create:xc,scope:Lh}=ie("group-setting"),Tc={groupProp:{type:[String]},groupRef:{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:"重置"},initDelay:{type:[Number],required:!1,default:50},toTopText:{type:[String],required:!1,default:"到顶部"},toBottomText:{type:[String],required:!1,default:"到底部"}},$c=xc({components:{FoxPopover:v.ElPopover,FoxCheckbox:v.ElCheckbox,FoxCheckboxGroup:v.ElCheckboxGroup,FoxButton:v.ElButton,FoxIcon:v.ElIcon,DragIcon:Sc,Download:$e.Download,RefreshLeft:$e.RefreshLeft},props:{...Tc},emits:["change"],setup(e,{emit:t,attrs:o,expose:n}){let r=null;const a=l.ref([]),s=sr(),i=O=>O.length>1,u=()=>{const O=[],x=[...a.value];a.value=x.map((N,b)=>(N.visible!==!1&&O.push(N.prop),{...N,sortIndex:b})),a.value.length===O.length?h.value=!0:O.length>0&&(m.value=!0),C.value=O},d=O=>{let x=null;if(typeof O=="string")x=document.querySelectorAll(`.fox-group[prop="${O}"] > div > .fox-item[prop]`);else if(O&&typeof O=="object"){const N=O.$el??O;typeof N.querySelectorAll=="function"&&(x=N.querySelectorAll(".fox-item[prop]"))}if(!x)return[];const I=[];return x.forEach(N=>{const b=N.querySelector(".label--string");let Y="";b&&(Y=b.textContent??"");const P=N.getAttribute("prop")??"",F=window.getComputedStyle(N,null).getPropertyValue("display");I.push({label:Y,prop:P,sortIndex:0,visible:F!=="none"})}),I},f=()=>{if(!r){const O=d(e.groupRef??e.groupProp);if(O.length===0)return!1;r=O}return!0},c=async(O=!1)=>{const x=await s.load(e.groupProp),I=N=>{if(!N||!r)return;const b=r.map(Y=>({...Y}));Array.isArray(x)&&x.forEach(Y=>{b.some(P=>{if(P.prop===Y.prop){const z=P.label;return Object.assign(P,Y),P.label=z,!0}return!1})}),a.value=b.sort((Y,P)=>Y.sortIndex-P.sortIndex),u(),O&&k(!1)};r?I(!0):zt(f,e.initDelay,5,50,!1,I)},S=()=>{const O=r??[];a.value=O.map(x=>({...x})),u(),k()},k=(O=!0)=>{O&&s.save(e.groupProp,a.value);const x=a.value.map(I=>({...I}));t("change",x)},g=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),h=l.ref(!1),m=l.ref(!1),$=O=>{const x=[];a.value.forEach(N=>{O&&x.push(N.prop),N.visible=O}),h.value=!1,m.value=!1,a.value.length===x.length?h.value=!0:x.length>0&&(m.value=!0),C.value=x,k()},w=()=>{S()},C=l.ref([]),q=O=>{a.value.forEach(I=>{const N=O.indexOf(I.prop)!==-1;I.visible=N}),h.value=!1,m.value=!1;const x=a.value.length;O.length===x?h.value=!0:O.length>0&&(m.value=!0),k()},B=()=>{c()};l.onMounted(()=>{c(!0)});const A={currentRow:null,index:null},L=O=>O?O.dataset&&O.dataset.role==="row"?O:O.tagName.toLowerCase()!=="body"?(O=O.parentElement,L(O)):null:null,M=O=>{const x=O.currentTarget;x&&x.dataset&&(A.index=x.dataset.index)},V=O=>{A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null),A.index=null},E=O=>{const x=O.currentTarget;O.relatedTarget;const I=L(x);I&&(O.preventDefault(),A.currentRow&&A.currentRow!==I&&A.currentRow.classList.remove("is-dragover"),I.classList.add("is-dragover"),A.currentRow=I)},y=O=>{O.preventDefault(),A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null)},j=O=>{const x=O.currentTarget,I=L(x);if(!I)return;O.preventDefault();const N=Number(A.index),b=Number(I.dataset.index);if(N!==b){if(N<b){const Y=a.value[N];a.value.splice(N,1),a.value.splice(b,0,Y)}else{const Y=a.value[N];a.value.splice(N,1),a.value.splice(b+1,0,Y)}u(),k()}},_=O=>{const x=a.value[O];a.value.splice(O,1),a.value.splice(0,0,x),u(),k()},R=O=>{const x=a.value[O];a.value.splice(O,1),a.value.push(x),u(),k()};n({refresh:()=>{r=null,c(!1)}});const D=new Map;let K=null;function G(O){const x=document.createRange();return x.setStart(O,0),x.setEnd(O,O.childNodes.length),x.getBoundingClientRect().width}return{attrs:o,itemPropertyList:a,isDraggble:i,isCheckAll:h,isIndeterminate:m,handleCheckAllChange:$,handleReset:w,checkedValue:C,handleCheckChange:q,onShow:B,onDragStart:M,onDragEnd:V,onDragOver:E,onDragLeave:y,onDrop:j,checkboxLabelStyle:g,toTop:_,toBottom:R,onMouseOverForOverflowText:(O,x,I)=>{const N=O.currentTarget;if(N){const b=Math.floor(N.offsetWidth);if(Math.floor(G(N))>b){let P=D.get(x);if(P){if(P===K)return;De.hide(P)}P=De.show(N,I,{type:"text",placement:"top",closeOnClick:!1}),D.set(x,P),K=P}}},onMouseLeaveForOverflowText:(O,x)=>{const I=D.get(x);I&&(De.hide(I),I===K&&(K=null))},onMouseOverForTip:(O,x)=>{const I=O.currentTarget;I&&(K&&De.hide(K),K=De.show(I,x,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:O=>{K&&(De.hide(K),K=null)}}}}),Cc={class:"fox-group-setting"},Nc={class:"fox-group-setting__header"},kc={class:"fox-group-setting__body"},Ec={class:"fox-group-setting__body-list","data-role":"container"},Ic=["data-index","draggable"],Oc=["onMouseover","onMouseleave"],Vc={class:"tools-item"};function Dc(e,t,o,n,r,a){const s=l.resolveComponent("FoxCheckbox"),i=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),d=l.resolveComponent("Download"),f=l.resolveComponent("FoxIcon"),c=l.resolveComponent("FoxCheckboxGroup"),S=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(S,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",Cc,[l.createElementVNode("div",Nc,[l.createVNode(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=k=>e.isCheckAll=k),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(i,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",kc,[l.createVNode(c,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=k=>e.checkedValue=k),onChange:e.handleCheckChange},{default:l.withCtx(()=>[l.createElementVNode("div",Ec,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.itemPropertyList,k=>(l.openBlock(),l.createElementBlock("div",{key:k.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":k.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:t[5]||(t[5]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[6]||(t[6]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[7]||(t[7]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[8]||(t[8]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[9]||(t[9]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.itemPropertyList)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(s,{class:"checkbox-item",label:k.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,k.prop,k.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,k.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(k.label),45,Oc)]),_:2},1032,["label"]),l.createElementVNode("div",Vc,[l.createVNode(f,{onClick:g=>e.toTop(k.sortIndex),onMouseover:t[1]||(t[1]=g=>e.onMouseOverForTip(g,e.toTopText)),onMouseleave:t[2]||(t[2]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:g=>e.toBottom(k.sortIndex),onMouseover:t[3]||(t[3]=g=>e.onMouseOverForTip(g,e.toBottomText)),onMouseleave:t[4]||(t[4]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Ic))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const fl=_e($c,[["render",Dc]]),Fc=["aria-labelledby"],Rc=l.createElementVNode("path",{d:"M834.7 920.1h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43zm0-729.2h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43s-19.3 43-43 43zm0 354.6h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Ac=[Rc],Lc=l.defineComponent({__name:"MoreH",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=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},s=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),i=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,d)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(s.value),style:l.normalizeStyle(i.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Ac,14,Fc))}}),Mc=["aria-labelledby"],Bc=l.createElementVNode("path",{d:"M784 902.4c9.6 19.2 6.4 41.6-12.8 54.4-19.2 9.6-41.6 3.2-51.2-12.8-9.6-19.2-6.4-41.6 12.8-54.4 16-12.8 38.4-8 51.2 12.8zM550.4 984c0 22.4-16 38.4-38.4 38.4s-38.4-16-38.4-38.4v-24c0-22.4 19.2-38.4 41.6-38.4 19.2 0 35.2 16 38.4 38.4v25.6h-3.2zm-240-43.2c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-16-51.2l28.8-51.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 12.8 54.4l-25.6 48zM121.6 784c-19.2 9.6-41.6 3.2-54.4-16-9.6-19.2-6.4-41.6 12.8-54.4l76.8-44.8c19.2-9.6 41.6-3.2 54.4 16 9.6 19.2 3.2 41.6-16 54.4L121.6 784zM38.4 552C16 552 0 536 0 513.6s16-38.4 38.4-38.4H160c22.4 0 38.4 19.2 38.4 38.4 0 22.4-16 38.4-38.4 38.4H38.4zm44.8-241.6c-19.2-9.6-25.6-35.2-16-51.2 9.6-19.2 35.2-25.6 54.4-16L256 320c19.2 9.6 25.6 35.2 16 54.4s-35.2 25.6-54.4 16l-134.4-80zm160-185.6 92.8 160c9.6 19.2 35.2 25.6 54.4 12.8s25.6-35.2 12.8-54.4l-92.8-160C297.6 64 275.2 60.8 256 70.4c-16 12.8-22.4 33.6-12.8 54.4zM473.6 40c0-22.4 16-38.4 38.4-38.4s38.4 19.2 38.4 38.4v184c0 22.4-19.2 38.4-38.4 38.4-22.4 0-38.4-19.2-38.4-38.4V40zm240 43.2c9.6-19.2 35.2-25.6 54.4-16 19.2 9.6 25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-12.8-54.4l89.6-156.8zm188.8 160-160 92.8c-19.2 9.6-25.6 35.2-16 54.4 12.8 19.2 35.2 25.6 54.4 12.8l160-92.8c19.2-9.6 25.6-35.2 12.8-54.4-9.6-16-32-25.6-51.2-12.8zM985.6 472c22.4 0 38.4 16 38.4 38.4s-16 38.4-38.4 38.4H800c-22.4 0-38.4-19.2-38.4-38.4 0-22.4 19.2-38.4 38.4-38.4h185.6z",fill:"currentColor","fill-opacity":"0.9"},null,-1),_c=[Bc],dl=l.defineComponent({__name:"Loading",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=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},s=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),i=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,d)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(s.value),style:l.normalizeStyle(i.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},_c,14,Mc))}}),qc=["aria-labelledby"],Pc=l.createElementVNode("path",{d:"M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024z",fill:"currentColor","fill-opacity":"0.9"},null,-1),jc=[Pc],zc=l.defineComponent({__name:"Close",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=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},s=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),i=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,d)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(s.value),style:l.normalizeStyle(i.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},jc,14,qc))}}),Hc=["aria-labelledby"],Kc=l.createElementVNode("path",{d:"M159.289 500.622c62.578 0 125.155 17.067 221.867 102.4 8.533 5.69 19.91 5.69 25.6 0 48.355-54.044 238.933-261.689 455.11-329.955 0 0 28.445-5.69 42.667 19.91 8.534 17.067 19.911 34.134-5.689 54.045-22.755 17.067-264.533 179.2-440.888 440.89l-2.845 2.844c-11.378 8.533-68.267 51.2-119.467-14.223-56.888-71.11-85.333-139.377-196.266-196.266-2.845 0-2.845-2.845-5.69-5.69-11.377-11.377-54.044-73.955 25.6-73.955z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Wc=[Kc],Yc=l.defineComponent({__name:"Checklist",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=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},s=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),i=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,d)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(s.value),style:l.normalizeStyle(i.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Wc,14,Hc))}}),Gc=["aria-labelledby"],Uc=l.createElementVNode("path",{d:"m387.547 980.846 305.006-397.532a117.102 117.102 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.538 27.538 0 0 1 0 33.572L316.489 926.318a44.8 44.8 0 0 0 71.058 54.564",fill:"currentColor","fill-opacity":"0.9"},null,-1),Xc=[Uc],Zc=l.defineComponent({__name:"ArrowRight",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=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},s=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),i=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,d)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(s.value),style:l.normalizeStyle(i.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Xc,14,Gc))}}),Jc={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:Object},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},br=(e,t)=>t[e.textKey],It=(e,t)=>t[e.valueKey],Qc=(e,t)=>t[e.visibleKey],vr=(e,t)=>t[e.disabledKey],ef=(e,t)=>{const o=t[e.doitKey];return ue(o)},tf=(e,t)=>{const o=t[e.numKey];return o==null?null:ve(t[o])},wr=(e,t,o)=>{const n=e.itemOptions;return typeof n=="function"?n(t,o):n||null};function nf(e,t,o,n=!1){return{props:{...Jc},emits:["update:modelValue","change"],setup(r,{slots:a,emit:s}){const i=l.computed(()=>{const O={};return O[`${e}`]=!0,O}),u=l.computed(()=>{const O={};return O[`${e}__titles`]=!0,O[`${r.direction}`]=!0,r.align==="left"&&(O.left=!0),r.scroll===!0&&(O.scrollable=!0),r.shape&&(O[`${r.shape}`]=!0),O}),d=l.computed(()=>({})),f=l.computed(()=>{if(!r.gutter)return 0;const O=he(r.gutter);return O<=0?0:O}),c=l.ref(r.modelValue);l.watch(()=>r.modelValue,O=>{c.value!==O&&(c.value=O,G(!1))});const S=l.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),k=l.computed(()=>{const O={};return h.value||(O.display="none"),O}),g=l.ref(),h=l.ref(!1),m=()=>{const O=!h.value;$(O)},$=O=>{const x=O;x?(h.value=x,setTimeout(()=>{S.value["fox-tabs-bar__popup--show"]=!0,S.value["fox-tabs-bar__popup--hide"]=!1},0)):(S.value["fox-tabs-bar__popup--show"]=!1,S.value["fox-tabs-bar__popup--hide"]=!0,g.value?g.value.addEventListener("transitionend",()=>{h.value=!1},{once:!0}):setTimeout(()=>{h.value=!1},0))},w=l.ref(),C=l.ref([]),q=(O,x)=>{C.value[x]=O},B=O=>x=>{q(x,O)},A=(O,x)=>{const I=w.value,N=C.value;if(!I||!N||!N[O])return;const b=N[O];let Y=0;r.direction==="vertical"?Y=b.offsetTop-(I.offsetHeight-b.offsetHeight)/2:Y=b.offsetLeft-(I.offsetWidth-b.offsetWidth)/2,L(I,Y,x?0:.3,r.direction)},L=(O,x,I,N)=>{let b=0;const Y=N==="horizontal"?O.scrollLeft:O.scrollTop,P=I===0?1:Math.round(I*1e3/16);function z(){N==="horizontal"?O.scrollLeft+=(x-Y)/P:O.scrollTop+=(x-Y)/P,++b<P&&Sn(z)}z()},M=(O,x)=>{const I=It(r,O),N={};return N[`${e}__titles-item`]=!0,N.disabled=vr(r,O),N.active=I===c.value,r.shape&&(N[`${r.shape}`]=!0),r.ellipsis&&(N.ellipsis=!0),x&&(x.class&&(N[`${x.class}`]=!0),x.disabled===!0&&(N.disabled=x.disabled)),N},V=(O,x)=>{const I={};if(f.value>0){const N=Math.abs(f.value/2);r.direction==="vertical"?(I["margin-top"]=`${N}px`,I["margin-bottom"]=`${N}px`):(I["margin-left"]=`${N}px`,I["margin-right"]=`${N}px`)}return x&&x.style&&Object.assign(I,x.style),I},E=(O,x)=>`${It(r,O)??x}`,y=(O,x)=>{const I=It(r,O),N={};N[`${e}__popup-item`]=!0,N.disabled=vr(r,O),N.active=I===c.value,r.shape&&(N[`${r.shape}`]=!0);const b=wr(r,O,x);return b&&b.disabled===!0&&(N.disabled=b.disabled),N},j=l.computed(()=>(r.data??[]).filter(x=>Qc(r,x)!==!1)),_=(O,x)=>{const I=It(r,O);if(c.value==I)return;const N=()=>{c.value=I,r.scroll&&A(x,!1),s("update:modelValue",I),s("change",O,x)};if(typeof r.beforeChange=="function"){const b=r.beforeChange(O,x);Xl(b)?b.then(Y=>{Y!==!1&&N()}).catch(()=>{N()}):b!==!1&&N()}else N()},R=(O,x)=>function(){_(O,x)},D=(O,x)=>{_(O,x),$(!1)},K=(O,x)=>function(){D(O,x)},G=O=>{if(!Array.isArray(r.data)||!r.scroll)return;const x=r.data.findIndex(I=>It(r,I)===c.value);x!==-1&&A(x,O)};l.watch(()=>r.data,()=>{setTimeout(G,0)}),l.onMounted(()=>{G(!0)});const U=(O,x)=>{if(a.item)return a.item({item:O,index:x});const I=wr(r,O,x),N=[];if(a.text){const z=a.text({item:O,index:x});N.push(z)}else{const z=[];if(I?.doit===!0||ef(r,O)){const J={class:[`${e}__titles-item-tip`,"doit"]},te=l.h("view",J);z.push(te)}const F=I?.num??tf(r,O);if(F){let J="";const te=ve(F);te>=100?J="99+":J=`${te}`;const T={class:[`${e}__titles-item-tip`,"num"]},W=l.h("view",T,[J]);z.push(W)}const X={class:`${e}__titles-item-text`};z.push(br(r,O));const H=l.h("view",X,z);N.push(H)}const b={class:`${e}__titles-item-line`},Y=l.h("view",b);N.push(Y);const P={ref:B(x),class:M(O,I),style:V(O,I),key:E(O,x),onClick:R(O,x)};return l.h("view",P,N)},Z=()=>{const O=a.default?a.default():[];if(O.length===0)for(let I=0;I<j.value.length;I++){const N=j.value[I],b=U(N,I);O.push(b)}const x={ref:w,class:u.value,style:d.value};return l.h("view",x,O)},ee=()=>{let O=null;a.navigation?O=a.navigation():O=l.h(o);const x={class:`${e}__navigation`,onClick:m};return l.h("view",x,[O])},le=()=>{const O=[];for(let I=0;I<j.value.length;I++){const N=j.value[I];let b=null;a.popupItem?b=a.popupItem({item:N,index:I}):b=br(r,N);const Y={class:y(N,I),key:E(N,I),onClick:K(N,I)},P=l.h("view",Y,[b]);O.push(P)}const x={class:S.value,style:k.value};return l.h("view",x,O)};return()=>{const O=[],x=Z();if(O.push(x),r.showQuickNavigation){const N=ee();O.push(N);const b=le();O.push(b)}const I={class:i.value};return l.h("view",I,O)}}}}const{create:lf,componentName:of,scope:rf}=ie("tabs-bar"),hl=lf(nf(of,rf,Lc,!1)),Sr=Symbol("TabsStatesKey"),af={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function sf(e,t,o=!1){return{props:{...af},emits:["update:modelValue","change"],setup(n,{emit:r,slots:a}){const s=l.shallowRef([]),i={current:l.ref(n.modelValue??""),direction:l.ref(n.direction),tabWidth:l.ref(-1),tabHeight:l.ref(-1),add:h=>{const m={name:h};i.current.value===h&&(m.loaded=!0),s.value.push(m),l.triggerRef(s)},remove:h=>{const m=s.value.findIndex($=>$.name===h);m!==-1&&s.value.splice(m,1)},isLoaded:h=>{if(!n.lazy)return!0;const m=s.value.findIndex($=>$.name===h);return m!==-1?i.current.value?s.value[m].loaded??!1:m===0:!1}};l.provide(Sr,i);const u=h=>{const m=s.value.findIndex($=>$.name===h);m!==-1&&(s.value[m].loaded=!0,l.triggerRef(s))};l.watch([()=>n.modelValue,()=>n.direction],([h,m])=>{i.current.value!==h&&(i.current.value=h??"",u(h??"")),i.direction.value!==m&&(i.direction.value=m)});const d=l.ref(null),f=l.ref(null),c=l.computed(()=>({[e]:!0,[`${n.direction}`]:!0}));let S=!0;const k=l.computed(()=>{const h={},m=s.value.length;if(m<=0)return h;const $=s.value.findIndex(w=>w.name===i.current.value);return i.direction.value==="vertical"?i.tabHeight.value>0&&(h.height=`${m*i.tabHeight.value}px`,$!==-1&&(h.transform=`translate(0, -${$*i.tabHeight.value}px)`)):i.tabWidth.value>0&&(h.width=`${m*i.tabWidth.value}px`,$!==-1&&(h.transform=`translate(-${$*i.tabWidth.value}px, 0)`)),S&&(S=!1,h.transition="transform 0s ease"),h});let g=null;return l.onMounted(()=>{if(!d.value)return;const h=()=>{const m=Ut(d.value);i.tabWidth.value=m.width,i.tabHeight.value=m.height};window.ResizeObserver&&(g=new window.ResizeObserver(h),g.observe(d.value)),h()}),l.onBeforeUnmount(()=>{g&&(g.disconnect(),g=null)}),()=>{const h={class:`${e}__panes`,style:k.value,ref:f},m=l.h("view",h,[a?.default?.()]),$={class:c.value,ref:d};return l.h("view",$,[m])}}}}const{create:uf,componentName:cf,scope:ff}=ie("tabs-container"),gl=uf(sf(cf,ff,!1)),df={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function hf(e,t,o){return{props:{...df},setup(n,{emit:r,slots:a}){const s=l.inject(Sr);l.onMounted(()=>{s.add(n.paneKey)}),l.onBeforeUnmount(()=>{s.remove(n.paneKey)});const i=l.computed(()=>{const d={};return s.direction.value==="vertical"&&s.tabHeight.value>0?d.height=`${s.tabHeight.value}px`:s.tabWidth.value>0&&(d.width=`${s.tabWidth.value}px`),d}),u=l.computed(()=>n.loaded!=null?ue(n.loaded):s.isLoaded(n.paneKey));return()=>{let d=[];if(u.value)d=a?.default?.()??[];else if(a.empty)d=a.empty();else{const c={class:`${e}__empty-icon`},S=n.emptyIcon??o,k=l.h(S,c),g={class:`${e}__empty-text`},h=n.emptyText??"Loading",m=l.h("view",g,[h]),$={class:`${e}__empty`},w=l.h("view",$,[k,m]);d.push(w)}const f={class:`${e}`,style:i.value};return l.h("view",f,d)}}}}const{create:gf,componentName:mf,scope:pf}=ie("tabs-pane"),ml=gf(hf(mf,pf,dl)),yf={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[String]},iconSize:{type:[String,Number]},markIcon:{type:[String]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function bf(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function xr(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Tr(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function vf(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function pl(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function $r(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function Cr(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function yl(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}class wf{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await Reflect.apply(o,null,[n]);const r=Pe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(We(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await Reflect.apply(r,null,[o,n]))}}function Sf(){const e=l.getCurrentInstance();return new wf(e.proxy)}function xf(e,t,o,n){return{props:{...yf},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:s}){const i=e,u=Sf(),d=l.ref([]),f=l.computed(()=>d.value.filter(x=>vf(r,x)!==!1)),c=l.ref(-1),S=()=>{const x=r.modelValue,I=f.value.findIndex(N=>xr(r,N)===x);c.value!==I&&(c.value=I,r.scroll&&le(I,!1))};l.watch([()=>r.modelValue,f],()=>{S()});const k=x=>c.value===x,g=x=>{if(x<0&&x>=f.value.length)return!1;const I=f.value[x],b=(yl(r,I,x)??{}).status??pl(r,I);return k(x)||b},h=l.computed(()=>{const x={[i]:!0};return r.mode?x[`is-${r.mode}`]=!0:r.direction&&(x[`is-${r.direction}`]=!0),r.scroll&&(x["is-scroll"]=!0),x}),m=l.computed(()=>({})),$=(x,I,N,b,Y)=>{const P={[`${i}__step`]:!0};return Y&&(P[`${Y}`]=!0),P[`${w.value}`]=!0,b&&(P["is-doit"]=!0),x===c.value?P["is-active"]=!0:I==="done"?P["is-done"]=!0:I==="error"?P["is-error"]=!0:I==="half"?P["is-half"]=!0:N?P["is-disabled"]=!0:P["is-normal"]=!0,P},w=l.computed(()=>{if(r.mode==="simple")return"start";let x=r.align;return x||(r.direction==="vertical"?x="start":x="center"),x}),C=(x,I={})=>{const N={...I};return w.value==="start"&&x===f.value.length-1?N.flex="0 0 auto":r.step?r.direction==="vertical"?N.height=r.step:N.width=r.step:N.flex="1 1 100%",N},q=(x,I)=>{let N={};if(I<f.value.length-1){const b=I+1;g(I)&&g(b)?r.direction==="vertical"?N.height="100%":N.width="100%":N.opacity="0"}return N},B=x=>f.value.length-1===x,A=(x,I)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&I>c.value||c.value===I)return;const N=c.value,b=I;c.value=I,r.scroll&&le(I,!1);const Y=xr(r,x);s("update:modelValue",Y);const P={fromIndex:N,currentIndex:b,item:x,items:f.value,clickNavigatePolicy:r.clickNavigatePolicy};s("change",Y,P)},L=l.ref(!0),M=async(x,I)=>{try{const N=await u.load("stesbar",x,I);Array.isArray(N)&&(d.value=N),L.value=!1}catch(N){console.error("[FoxUI] Load StepsBar Data Fail",N),d.value=[]}setTimeout(()=>{s("loaded-data")},250)};l.watch([()=>r.data,()=>r.params],async([x,I])=>{x&&M(x,I)},{immediate:!0});const V=(x,I,N,b,Y)=>{let P=null;if(a.icon)P=a.icon({item:x,index:I,status:b});else if(b==="done"){const F={};r.iconSize&&(F.width=r.iconSize,F.height=r.iconSize);const X=r.icon??o;P=l.h(X,F)}else{const F=N??`${I+1}`;P=l.h("span",{},[F])}const z={class:"fox-steps-bar__icon",onClick:()=>{Y||A(x,I)}};return l.h("view",z,[P])},E=(x,I,N)=>{const b=l.h("i",{class:"fox-steps-bar__line-inner",style:q(x,I)});return l.h("view",{class:"fox-steps-bar__line"},[b])},y=()=>{let x=null;if(a.markIcon)x=a.markIcon();else{const N={};r.iconSize&&(N.width=r.markIconSize,N.height=r.markIconSize);const b=r.markIcon??n;x=l.h(b,N)}return l.h("view",{class:"fox-steps-bar__mark"},[x])},j=(x,I,N,b,Y)=>{const P=[];if(!B(I)){const X=E(x,I);P.push(X)}const z=V(x,I,N,b,Y);P.push(z);const F={class:"fox-steps-bar__head"};return l.h("view",F,P)},_=(x,I,N,b)=>{let Y=null;a.main?Y=a.main({item:x,index:I,status:N}):Y=bf(r,x);const P={class:"fox-steps-bar__main",onClick:()=>{b||A(x,I)}};return l.h("view",P,[Y])},R=(x,I,N)=>{let b=null;if(a.sub){b=a.sub({item:x,index:I,status:N});const Y={class:"fox-steps-bar__sub"};return l.h("view",Y,[b])}return null},D=(x,I)=>{const N=yl(r,x,I)??{},b=N.status??pl(r,x);let Y=Tr(r,x);N.disabled===!0&&(Y=!0),r.disabled===!0&&(Y=!0);const P=N.label??Cr(r,x),z=[],F=V(x,I,P,b,Y);F&&z.push(F);const X=_(x,I,b,Y);if(X&&z.push(X),!B(I)){const ne=E(x,I);ne&&z.push(ne)}const H=l.h("view",{class:"fox-steps-bar__head"},z),J=N.class,te=N.style??{};let T=$r(r,x);N.doit===!0&&(T=!0);const W={ref:ee(I),class:$(I,b,Y,T,J),style:C(I,te)};return l.h("view",W,[H])},K=(x,I)=>{const N=yl(r,x,I)??{},b=N.status??pl(r,x);let Y=Tr(r,x);N.disabled===!0&&(Y=!0),r.disabled===!0&&(Y=!0);const P=N.label??Cr(r,x),z=[],F=r.layout;for(let T of F)if(T==="head"){const W=j(x,I,P,b,Y);z.push(W)}else if(T==="main"){const W=_(x,I,b,Y);z.push(W)}else if(T==="sub"){const W=R(x,I,b);z.push(W)}else if(T==="mark"){const W=y();z.push(W)}const X=N.class,H=N.style??{};let J=$r(r,x);N.doit===!0&&(J=!0);const te={ref:ee(I),class:$(I,b,Y,J,X),style:C(I,H)};return l.h("view",te,z)},G=l.ref(),U=l.ref([]),Z=(x,I)=>{U.value[I]=x},ee=x=>I=>{Z(I,x)},le=(x,I)=>{const N=G.value,b=U.value;if(!N||!b||!b[x])return;const Y=b[x];let P=0;r.direction==="vertical"?P=Y.offsetTop-(N.offsetHeight-Y.offsetHeight)/2:P=Y.offsetLeft-(N.offsetWidth-Y.offsetWidth)/2,O(N,P,I?0:.3,r.direction)},O=(x,I,N,b)=>{let Y=0;const P=b==="horizontal"?x.scrollLeft:x.scrollTop,z=N===0?1:Math.round(N*1e3/16);function F(){b==="horizontal"?x.scrollLeft+=(I-P)/z:x.scrollTop+=(I-P)/z,++Y<z&&Sn(F)}F()};return()=>{const x=[];if(r.mode==="simple")for(let N=0;N<f.value.length;N++){const b=f.value[N],Y=D(b,N);x.push(Y)}else for(let N=0;N<f.value.length;N++){const b=f.value[N],Y=K(b,N);x.push(Y)}const I={ref:G,class:h.value,style:m.value};return l.h("view",I,x)}}}}const{componentName:Tf,create:$f,scope:Cf}=ie("steps-bar"),bl=$f(xf(Tf,Cf,Yc,Zc)),Nf=Symbol.for("InnerPageScopeKey"),kf=Symbol.for("PageWrapperKey");function Ef(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){l.provide(Nf,!0);const r={};l.provide(kf,r);const a=u=>{typeof r.beforeClose=="function"&&r.beforeClose()},s=l.ref(!0),i=u=>{s.value=u};return()=>{const d={...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":a},f={};if(typeof n.slots.default=="function"){const c=n.slots.default();f.default=()=>c}return l.h(v.ElDialog,d,f)}}}}const{componentName:Mh,create:If,scope:Bh}=ie("dialog-item"),vl=If(Ef());let Ot=0;const Nr="fox-overflow-hidden",kr=()=>lt?document.body:{classList:[]},Of=e=>[()=>{if(e())try{!Ot&&kr().classList.add(Nr),Ot++}catch{}},()=>{if(e()&&Ot)try{Ot--,!Ot&&kr().classList.remove(Nr)}catch{}}],Vf={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},{componentName:Df,create:Ff}=ie("overlay"),Rf=Ff({props:{...Vf},emits:["click","update:visible"],setup(e,{emit:t}){const[o,n]=Of(()=>e.lockScroll),r=l.computed(()=>({[Df]:!0,[e.overlayClass]:!0})),a=l.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return l.watch(()=>e.visible,i=>{i?o():n()}),{classes:r,style:a,onClick:i=>{t("click",i),e.closeOnClickOverlay&&t("update:visible",!1)}}}});function Af(e,t,o,n,r,a){return l.openBlock(),l.createBlock(l.Transition,{name:"overlay-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.classes),onClick:t[0]||(t[0]=l.withModifiers((...s)=>e.onClick&&e.onClick(...s),["stop"])),style:l.normalizeStyle(e.style)},[l.renderSlot(e.$slots,"default")],6),[[l.vShow,e.visible]])]),_:3})}const rn=_e(Rf,[["render",Af]]),Lf={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:String,default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},Er=2e3;let Ir=Er;const Mf=(e,t)=>({components:t,props:{...Lf},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:n}){const r=l.reactive({zIndex:o.zIndex,showSlot:!0,closed:o.closeable}),a=l.computed(()=>({[e]:!0,round:o.round,[`fox-popup--${o.position}`]:!0,[`fox-popup--${o.position}--safebottom`]:o.position==="bottom"&&o.safeAreaInsetBottom,[o.popClass]:!0})),s=l.computed(()=>({zIndex:r.zIndex,transitionDuration:`${o.duration}s`,...o.style})),i=l.computed(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),u=()=>{o.zIndex!==Er&&(Ir=Number(o.zIndex)),n("update:visible",!0),r.zIndex=++Ir,o.destroyOnClose&&(r.showSlot=!0),n("open")},d=()=>{n("update:visible",!1),n("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},f=h=>{n("click-pop",h)},c=h=>{h.stopPropagation(),n("click-close-icon",h),n("update:visible",!1)},S=h=>{n("click-overlay",h),o.closeOnClickOverlay&&n("update:visible",!1)},k=h=>{n("opend",h)},g=h=>{n("closed",h)};return l.watch(()=>o.visible,h=>{o.visible?u():d()}),l.watch(()=>o.closeable,h=>{r.closed=h}),{...l.toRefs(r),popStyle:s,transitionName:i,classes:a,onClick:f,onClickCloseIcon:c,onClickOverlay:S,onOpened:k,onClosed:g}}}),{componentName:Bf,create:_f}=ie("popup"),qf=_f(Mf(Bf,{FoxOverLay:rn,Close:zc}));function Pf(e,t,o,n,r,a){const s=l.resolveComponent("FoxOverLay"),i=l.resolveComponent("Close");return l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(l.openBlock(),l.createBlock(s,l.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):l.createCommentVNode("",!0),l.createVNode(l.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.popStyle),onClick:t[1]||(t[1]=(...u)=>e.onClick&&e.onClick(...u))},[e.showSlot?l.renderSlot(e.$slots,"default",{key:0}):l.createCommentVNode("",!0),e.closed?(l.openBlock(),l.createElementBlock("view",{key:1,onClick:t[0]||(t[0]=(...u)=>e.onClickCloseIcon&&e.onClickCloseIcon(...u)),class:l.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[l.renderSlot(e.$slots,"close-icon",{},()=>[l.createVNode(i)])],2)):l.createCommentVNode("",!0)],6),[[l.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const wl=_e(qf,[["render",Pf]]),{create:jf}=ie("toast"),zf=jf({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){let o=null;const n=l.reactive({mounted:!1});l.onMounted(()=>{n.mounted=!0});const r=()=>{o&&(clearTimeout(o),o=null)},a=()=>{n.mounted=!1},s=()=>{r(),e.duration&&(o=setTimeout(()=>{a()},e.duration))},i=()=>{e.closeOnClickOverlay&&(a(),t("close"))};e.duration&&s(),l.watch(()=>e.duration,k=>{k&&s()});const u=l.computed(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const k=he(e.iconSize);return l.h(e.icon,{width:k,height:k,color:e.iconColor})},f=l.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":u.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),c=l.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:n,hide:a,clickCover:i,renderIcon:d,hasIcon:u,toastBodyClass:f,toastIconWrapperClass:c,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Hf={key:1,class:"fox-toast-title"},Kf=["innerHTML"];function Wf(e,t,o,n,r,a){return l.openBlock(),l.createBlock(l.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.toastBodyClass),style:l.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:t[0]||(t[0]=(...s)=>e.clickCover&&e.clickCover(...s))},[l.createElementVNode("view",{class:"fox-toast-inner",style:l.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(e.toastIconWrapperClass)},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.renderIcon())))],2)):l.createCommentVNode("",!0),e.title?(l.openBlock(),l.createElementBlock("div",Hf,l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Kf)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Sl=_e(zf,[["render",Wf]]),Yf={modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},Gf=(e,t,o)=>({props:{...Yf},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(n,{slots:r}){const{emitEvent:a}=vo(),{toLocaleRefs:s}=Le.useFoxI18n(t),i=s(n,["placeholder"]),u=l.reactive({active:!1}),d=l.computed(()=>({background:n.background})),f=l.computed(()=>({background:n.inputBackground})),c=V=>{let y=V.target.value;n.maxLength&&y.length>Number(n.maxLength)&&(y=y.slice(0,Number(n.maxLength))),a("update:modelValue",y,V),a("change",y,V)},S=l.ref({}),k=V=>{let y=V.target.value;u.active=!0,S.value=n.focusStyle,a("focus",y,V)},g=V=>{setTimeout(()=>{u.active=!1},0);let y=V.target.value;n.maxLength&&y.length>Number(n.maxLength)&&(y=y.slice(0,Number(n.maxLength))),S.value={},a("blur",y,V)},h=V=>{a("update:modelValue","",V),a("change","",V),a("clear","")},m=l.computed(()=>String(n.modelValue).length>0),$=l.computed(()=>{const V={};return m.value||(V.display="none"),V}),w=()=>{a("search",n.modelValue)},C=V=>{a("keyup-input",V),V.key.toLocaleUpperCase()==="ENTER"&&w()},q=V=>{a("click-input",V)},B=V=>{a("click-left-icon",n.modelValue,V)},A=l.computed(()=>({textAlign:n.inputAlign})),L=l.ref(null);l.onMounted(()=>{n.autofocus&&L.value.focus()});const M=()=>{const V=[];if(r.leftin){const R={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:B},D=l.h("view",R,[r.leftin()]);V.push(D)}const E={ref:L,class:[`${e}__input-inner`],style:A.value,type:n.inputType,maxlengt:n.maxLength,placeholder:i.placeholder.value,value:n.modelValue,disabled:n.disabled,readonly:n.readonly,onClick:q,onInput:c,onFocus:k,onBlur:g,onkeyup:C},y=l.h("input",E);V.push(y);const j=[];if(n.clearable){const R={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:$.value,onClick:h},D=r?.clear?.()??n.clearIcon??o,K=l.h("view",R,[l.h(D)]);j.push(K)}if(r.rightin){const R={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},D=l.h("view",R,[r.rightin()]);j.push(D)}if(j.length>0){const R={class:`${e}__input-inner-right`},D=l.h("view",R,j);V.push(D)}const _={class:[`${e}__search-input`,`${n.shape}`],style:{...f.value,...S.value}};return l.h("view",_,V)};return()=>{const V=[];if(n.label){const j={class:`${e}__search-label`},_=l.h("span",j,[n.label]);V.push(_)}if(r.leftout){const j={class:[`${e}__search-icon`,`${e}__left-search-icon`]},_=l.h("view",j,[r.leftout()]);V.push(_)}const E=M();if(V.push(E),r.rightout){const j={class:[`${e}__search-icon`,`${e}__right-search-icon`]},_=l.h("view",j,[r.rightout()]);V.push(_)}const y={class:`${e}`,style:d.value};return l.h("view",y,V)}}}),{componentName:Uf,create:Xf,scope:Zf}=ie("searchbar"),xl=Xf(Gf(Uf,Zf,$e.CircleClose)),Jf=/scroll|auto|overlay/i,Or=window;function Qf(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function ed(e,t=Or){let o=e;for(;o&&o!==t&&Qf(o);){const{overflowY:n}=window.getComputedStyle(o);if(Jf.test(n))return o;o=o.parentNode}return t}function Vr(e,t=Or){const o=l.ref();return l.onMounted(()=>{e.value&&(o.value=ed(e.value,t))}),o}const Dr=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,td={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},loadMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function nd(e,t,o){return{props:{...td},emits:["scroll-change","load-more","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:s}=Le.useFoxI18n(t),i=s(n,["pullText","loadText","loadMoreText"]),u=l.ref(),d=Vr(u),f=l.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=l.computed(()=>({[e]:!0})),S=w=>w?w.offsetTop+S(w.offsetParent):0,k=()=>{let w=0,C=0,q="down";if(d.value==window){const B=Dr();u.value&&(w=S(u.value)+u.value.offsetHeight-B-window.innerHeight),C=B}else{const{scrollHeight:B,clientHeight:A,scrollTop:L}=d.value;w=B-A-L,C=L}return f.beforeScrollTop>C?q="up":q="down",f.beforeScrollTop=C,r("scroll-change",C),w<=n.threshold&&q=="down"},g=()=>{ql(()=>{if(!k()||!n.hasMore||f.isInfiniting)return!1;f.isInfiniting=!0,r("update:modelValue",!0),l.nextTick(()=>r("load-more"))})},h=()=>{d.value&&d.value.addEventListener("scroll",g,n.useCapture)},m=()=>{d.value&&d.value.removeEventListener("scroll",g,n.useCapture)};l.onMounted(()=>{h(),n.immediate&&g()}),l.onUnmounted(()=>{m()});const $=l.ref(!1);return l.onActivated(()=>{$.value&&($.value=!1,h())}),l.onDeactivated(()=>{$.value=!0,m()}),l.watch(()=>n.modelValue,w=>{w||(f.isInfiniting=!1)}),()=>{const w={class:"fox-infinite__container"},C=l.h("view",w,[a?.default?.()]),q=[];if(f.isInfiniting){let M=a?.loading?.()??null;if(!M){let y=a?.loadingIcon?.()??null;if(!y){const R={class:["fox-infinite__bottom-box__img"]};y=l.h(o,R)}const j={class:"fox-infinite__bottom-box__text"},_=l.h("view",j,[i.loadText.value]);M=[y,_]}const V={class:"fox-infinite__bottom-box"},E=l.h("view",V,M);q.push(E)}else if(!n.hasMore){let M=a?.finished?.()??null;if(!M){const V={class:"fox-infinite__bottom-tips"};M=l.h("view",V,[i.loadMoreText.value]),q.push(M)}}const B={class:"fox-infinite__bottom"},A=l.h("view",B,q),L={class:c.value,ref:u};return l.h("view",L,[C,A])}}}}const{componentName:ld,create:od,scope:rd}=ie("infinite-loading"),Tl=od(nd(ld,rd,dl)),Fr=10;function Rr(e,t){return e>t&&e>Fr?"horizontal":t>e&&t>Fr?"vertical":""}function $l(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Cl(){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 d=s.touches[0];e.deltaX=d.clientX-e.startX,e.deltaY=d.clientY-e.startY,e.moveX=d.clientX,e.moveY=d.clientY}else{const u=s;e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Rr(e.offsetX,e.offsetY))},start:s=>{if(n(),s.touches){const d=s.touches[0];e.startX=d.clientX,e.startY=d.clientY}else{const u=s;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:o,state:e}}function ad(){const e=l.ref(0),t=l.ref(0),o=l.ref(0),n=l.ref(0),r=l.ref(0),a=l.ref(0),s=l.ref(0),i=l.ref(0),u=l.ref(0),d=l.ref(0),f=l.ref(""),c=()=>f.value==="vertical",S=()=>f.value==="horizontal",k=()=>{s.value=0,i.value=0,u.value=0,d.value=0,f.value="",o.value=0};return{move:m=>{if(m.touches){const C=m.touches[0];s.value=C.clientX-e.value,i.value=C.clientY-t.value,r.value=C.clientX,a.value=C.clientY}else{const w=m;s.value=w.clientX-e.value,i.value=w.clientY-t.value,r.value=w.clientX,a.value=w.clientY}u.value=Math.abs(s.value),d.value=Math.abs(i.value),n.value=Date.now()-o.value,f.value||(f.value=Rr(u.value,d.value))},start:m=>{if(k(),m.touches){const C=m.touches[0];e.value=C.clientX,t.value=C.clientY}else{const w=m;e.value=w.clientX,t.value=w.clientY}o.value=Date.now()},reset:k,startX:e,startY:t,startTime:o,duration:n,moveX:r,moveY:a,deltaX:s,deltaY:i,offsetX:u,offsetY:d,direction:f,isVertical:c,isHorizontal:S}}const id={modelValue:{type:[Boolean],default:!1},pullingText:{type:[String]},loosingText:{type:[String]},loadingText:{type:[String]},headHeight:{type:[String,Number],default:50},pullDistance:{type:[String,Number],default:50},duration:{type:[String,Number],default:.3}},sd=(e,t,o)=>({props:{...id},emits:["change","refresh","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:s}=Le.useFoxI18n(t),i=s(n,["pullingText","loosingText","loadingText"]),u=Cl(),d=l.ref(),f=Vr(d),c=l.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),S=l.computed(()=>({[e]:!0})),k=l.computed(()=>{switch(c.status){case"pulling":return a.pulling?"":i.pullingText.value;case"loosing":return a.loosing?"":i.loosingText.value;case"loading":return a.loading?"":i.loadingText.value;default:return""}}),g=l.computed(()=>({transitionDuration:`${n.duration}s`,transform:c.distance?`translate3d(0,${c.distance}px, 0)`:""})),h=l.computed(()=>{const L={};return n.headHeight!=50&&(L.height=ke(n.headHeight)),L}),m=L=>{const M=+(n.pullDistance||n.headHeight);let V=L;return L>M&&(L<M*2?V=(L+M)/2:V=M+L/4),Math.round(V)},$=(L,M)=>{const V=+(n.pullDistance||n.headHeight);c.distance=L,M?c.status="loading":L===0?c.status="normal":L<V?c.status="pulling":c.status="loosing",r("change",{status:c.status,distance:L})},w=()=>c.status!=="loading"&&c.status!=="complete",C=()=>f.value==window?Dr()==0:f.value&&f.value.scrollTop==0,q=L=>{w()&&(C()?(u.start(L),c.isPullRefresh=!0,c.moving=!0):(c.distance=0,c.isPullRefresh=!1))},B=L=>{w()&&c.moving&&(u.move(L),u.isVertical()&&u.state.deltaY>0&&c.isPullRefresh&&(L.cancelable&&L.preventDefault(),$(m(u.state.deltaY))))},A=()=>{c.moving=!1,c.isPullRefresh&&w()&&u.state.deltaY&&(c.status==="loosing"?($(+n.headHeight,!0),r("update:modelValue",!0),l.nextTick(()=>r("refresh"))):$(0)),setTimeout(()=>{u.reset()},0)};return l.watch(()=>n.modelValue,L=>{L?$(+n.headHeight,!0):$(0)}),()=>{const L=[];let M=null;if(c.status==="loading"){if(M=a?.loading?.()??null,!M){const K={class:["fox-pull-refresh-container-topbox-icon"]};M=l.h(o,K)}}else c.status==="pulling"?M=a?.pulling?.()??null:c.status==="loosing"&&(M=a?.loosing?.()??null);M&&L.push(M);const V={class:["fox-pull-refresh-container-topbox-text"]},E=l.h("dive",V,[k.value]);L.push(E);const y={class:["fox-pull-refresh-container-topbox"],style:h.value},j=l.h("div",y,L),_={class:"fox-pull-refresh-container",style:g.value},R=l.h("div",_,[j,a?.default?.()]),D={ref:d,class:S.value};return $l()?Object.assign(D,{onTouchstart:q,onTouchmove:B,onTouchend:A}):Object.assign(D,{onMousedown:q,onMousemove:B,onMouseup:A}),l.h("div",D,[R])}}}),{componentName:ud,create:cd,scope:fd}=ie("pull-refresh"),Nl=cd(sd(ud,fd,dl));function dd(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 r=e,a=l.computed(()=>({[r]:!0})),s=l.computed(()=>o.icon?{[`${r}__icon`]:!0,[`${r}__icon-${o.type}`]:!0}:{[`${r}__mark`]:!0,[`${r}__mark-${o.type}`]:!0}),i=l.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),u=l.computed(()=>{const f={[`${r}__text`]:!0,[`${r}__text-${o.type}`]:!0};return o.textPosition==="left"?f["is-left"]=!0:f["is-right"]=!0,f}),d=l.computed(()=>o.color?{color:o.color}:null);return()=>{let f=null;if(n.mark)f=n.mark()[0];else{const h={class:s.value,style:i.value};f=l.h(o.icon??"div",h)}const c={class:u.value,style:d.value},S=n.default?n.default():[],k=l.h("div",c,S),g={class:a.value};return o.textPosition==="right"?l.h("div",g,[f,k]):l.h("div",g,[k,f])}}}}const{componentName:hd,create:gd,scope:_h}=ie("indicator"),kl=gd(dd(hd));function md(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 r=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(r)},500)}const pd={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],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},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function yd(e,t,o,n=!1){return{props:{...pd},emits:["click"],setup(r,a){const s=l.ref(null),i=l.computed(()=>{const C={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(C[`${e}--${r.type??"default"}`]=!0),r.size&&(C[`${e}--${r.size}`]=!0),C}),u=l.computed(()=>{const C={},q=r.textColor??r.color;return q&&(C.color=q),C}),d=(C,q)=>{let B=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const A=r.highlightFilter;if(C.indexOf(A)!==-1){const M=C.replace(new RegExp(A,"g"),`<span>${A}</span>`);q.innerHTML=M,q.class["is-highlight"]=!0,B=l.h(r.tag,q)}}else if(typeof r.highlightFilter=="function"){const A=r.highlightFilter(C);A&&(q.innerHTML=A,q.class["is-highlight"]=!0,B=l.h(r.tag,q))}return B},f=C=>{a.emit("click",C)};let c="";const S=()=>{const C=s.value;if(!C)return;const q=C.clientWidth;md(C,B=>{const A=C.innerHTML??"";me(A)||B<q||(c?o?.show(C,A,{type:"text",id:c,showArrow:r.showArrow},!0):c=o?.show(C,A,{type:"text",showArrow:r.showArrow},!0)??"")})},k=()=>{c&&o?.hide(c)};let g=null;const h=C=>{g||(g=setTimeout(()=>{S(),g=null},r.showAfter??0))},m=C=>{g&&(clearTimeout(g),g=null),setTimeout(()=>{k()},r.hideAfter??0)},$=()=>{const C=s.value;C&&(C.addEventListener("mouseover",h),C.addEventListener("mouseleave",m))},w=()=>{const C=s.value;C&&(C.removeEventListener("mouseover",h),C.removeEventListener("mouseleave",m))};return l.onMounted(()=>{!ue(r.showOverflowTooltip)||!o||$()}),l.onBeforeUnmount(()=>{!ue(r.showOverflowTooltip)||!o||w()}),()=>{const C={onClick:f,class:i.value,style:u.value,ref:s};let q=null;if(ue(r.numberFormat)&&typeof a.slots.default=="function"){const M=a.slots.default();if(Array.isArray(M)&&M.length===1){const V=M[0].type.toString();if(V==="Symbol(Text)"||V==="Symbol(v-txt)"){const E=ve(r.digits),y=ve(r.decimalLength),j=ue(r.autoPadding);let _=`${M[0].children}`,R=_.split("").reverse().join("");R=At(R,y,j,E,r.separator),_=R.split("").reverse().join(""),r.highlightFilter!==void 0&&(q=d(_,C)),q||(C.innerHTML=_,q=l.h(r.tag,C))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const M=a.slots.default();if(Array.isArray(M)&&M.length===1){const V=M[0].type.toString();if(V==="Symbol(Text)"||V==="Symbol(v-txt)"){const E=`${M[0].children}`;q=d(E,C),q||(C.innerHTML=E,q=l.h(r.tag,C))}}}q||(q=l.h(r.tag,C,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return q;let A=null;if(r.icon){const M={[`${e}__mark-wrap`]:!0};r.type&&(M[`${e}__mark-wrap--${r.type}`]=!0);const V={},E=r.color;E&&(V.color=E);const y={class:M,style:V};A=l.h("view",y,l.h(r.icon))}else if(a.slots.mark){const M={[`${e}__mark-wrap`]:!0};r.type&&(M[`${e}__mark-wrap--${r.type}`]=!0);const V={},E=r.color;E&&(V.color=E);const y={class:M,style:V};A=l.h("view",y,{default:a.slots.mark})}else{const M={[`${e}__mark`]:!0};r.type&&(M[`${e}__mark--${r.type??"default"}`]=!0);const V={},E=r.color;E&&(V["background-color"]=E);const y={class:M,style:V};A=l.h("view",y)}const L={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return l.h("view",L,[A,q])}}}}const{componentName:bd,create:vd,scope:wd}=ie("text"),El=vd(yd(bd,wd,De,!1)),Sd={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:$e.ArrowUp}};function xd(e,t,o){return{props:{...Sd},emits:["click","update:modelValue"],setup(n,{emit:r}){const a=l.computed(()=>{const c={[`${e}`]:!0};return n.disabled?c[`${e}__disabled`]=!0:c[`${e}__${n.type}`]=!0,c}),s=ge(n,"modelValue"),i=l.computed(()=>s.value?n.expandText??"":n.collapseText??""),u=l.computed(()=>({[`${e}__text`]:!0})),d=l.computed(()=>({[`${e}__icon`]:!0,"is-expand":!s.value,"is-collapse":s.value})),f=()=>{r("update:modelValue",!s.value)};return()=>{const c=[];if(i.value){const h={class:u.value},m=l.h("span",h,[i.value]);c.push(m)}const S={class:d.value},k=o(n.icon,S);return k&&c.push(k),l.h("div",{class:a.value,onClick:f},c)}}}}const{componentName:Td,create:$d,scope:Cd}=ie("more-button"),Il=$d(xd(Td,Cd,(e,t)=>(e=e??$e.ArrowUp,l.h(v.ElIcon,t,{default:()=>[l.h(e)]}))));function Nd(e){return e===window}const Ar=e=>{const t=l.unref(e);if(Nd(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}},{componentName:kd,create:Ed,scope:Ph}=ie("tour"),Id=Ed({components:{Close:$e.Close,ElPopover:v.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=kd,n=l.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=l.ref({}),a=l.computed(()=>`${o}`),s=l.computed(()=>{const{offset:g,maskWidth:h,maskHeight:m}=e,{width:$,height:w,left:C,top:q}=r.value,B=e.steps[n.active].offset??g,A=[C+$/2,q+w/2],L=Number(h||$),M=Number(m||w);return{width:`${L+ +B.left+B.right}px`,height:`${M+B.top+B.bottom}px`,top:`${A[1]-M/2-+B.top}px`,left:`${A[0]-L/2-+B.left}px`}}),i=g=>{g=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,l.nextTick(()=>{n.showPopup=!0,f()}),t("change",n.active)},u=g=>g.popoverWidth??e.width,d=g=>g.location??e.location,f=()=>{const g=document.querySelector(`${e.steps[n.active].target}`),h=Ar(g);r.value={x:h.left,y:h.top,top:h.top,left:h.left,width:h.width,height:h.height}},c=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},S=()=>{e.closeOnClickOverlay&&c()},k=(g,h=0)=>{g&&f(),e.steps,n.active=h,n.showTour=g,n.showPopup=g};return l.onMounted(()=>{k(e.modelValue,e.current)}),l.watch(()=>e.modelValue,g=>{k(g)}),{...l.toRefs(n),classes:a,maskStyle:s,changeStep:i,popoverWidth:u,popoverLocation:d,close:c,handleClickMask:S}}}),Od={key:0,class:"fox-tour__content"},Vd={key:0,class:"fox-tour__content-top"},Dd={class:"fox-tour__content-inner"},Fd={class:"fox-tour__content-bottom"},Rd={class:"fox-tour__content-bottom-init"},Ad={class:"fox-tour__content-bottom-operate"},Ld={key:1,class:"fox-tour__content fox-tour__content-tile"},Md={class:"fox-tour__content-inner"};function Bd(e,t,o,n,r,a){const s=l.resolveComponent("Close"),i=l.resolveComponent("fox-button"),u=l.resolveComponent("ElPopover");return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(e.classes)},[l.withDirectives(l.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...d)=>e.handleClickMask&&e.handleClickMask(...d))},null,512),[[l.vShow,e.showTour]]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(d,f)=>(l.openBlock(),l.createElementBlock("div",{key:f,style:{height:"0"}},[f==e.active?(l.openBlock(),l.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(d),width:e.popoverWidth(d)},{reference:l.withCtx(()=>[e.showTour?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:l.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(l.openBlock(),l.createElementBlock("div",Od,[e.showTitleBar?(l.openBlock(),l.createElementBlock("div",Vd,[l.createElementVNode("div",{onClick:t[1]||(t[1]=(...c)=>e.close&&e.close(...c))},[l.createVNode(s,{class:"fox-tour__content-top-close"})])])):l.createCommentVNode("",!0),l.createElementVNode("div",Dd,l.toDisplayString(d.content),1),l.createElementVNode("div",Fd,[l.createElementVNode("div",Rd,l.toDisplayString(e.active+1)+"/"+l.toDisplayString(e.steps.length),1),l.createElementVNode("div",Ad,[l.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(l.openBlock(),l.createBlock(i,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=c=>e.changeStep("prev"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.prevStepText),1)]),_:1})):l.createCommentVNode("",!0)]),e.steps.length-1==e.active?(l.openBlock(),l.createBlock(i,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(l.openBlock(),l.createBlock(i,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=c=>e.changeStep("next"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.nextStepText),1)]),_:1})):l.createCommentVNode("",!0)])])])])):l.createCommentVNode("",!0),e.type=="tile"?(l.openBlock(),l.createElementBlock("div",Ld,[l.createElementVNode("div",Md,l.toDisplayString(d.content),1)])):l.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):l.createCommentVNode("",!0)]))),128))],2)}const Ol=_e(Id,[["render",Bd]]),Fe=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,at=e=>e==null;class _d{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,o){this.startMove=t,this.updateMove=o,this.isTouch=$l()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const o=Cl(),n=(r,a,s,i)=>{this.updateMove({x:r,y:a})};this.touchstart=r=>{this.moving||(o.start(r),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=r=>{this.moving&&(o.move(r),n(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{n(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},this.els.forEach(r=>{this.touchstart&&r.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(t=>{this.touchstart&&t.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Lr(e,t){return new _d(e,t)}const Mr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;let mt=[];const Br=e=>{const t=e;t.key==="Escape"&&mt.forEach(o=>o(t))},qd=e=>{l.onMounted(()=>{mt.length===0&&document.addEventListener("keydown",Br),Mr&&mt.push(e)}),l.onBeforeUnmount(()=>{mt=mt.filter(t=>t!==e),mt.length===0&&Mr&&document.removeEventListener("keydown",Br)})},Vl="fox-focus-trap.focus-after-trapped",Dl="fox-focus-trap.focus-after-released",Pd="fox-focus-trap.focusout-prevented",_r={cancelable:!0,bubbles:!1},jd={cancelable:!0,bubbles:!1},qr="foxFocusAfterTrapped",Pr="foxFocusAfterReleased",zd=Symbol("foxFocusTrap"),Fl=l.ref(),an=l.ref(0),Rl=l.ref(0);let sn=0;const jr=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const r=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||r?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},Hd=(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},zr=(e,t)=>{for(const o of e)if(!Hd(o,t))return o},Kd=e=>{const t=jr(e),o=zr(t,e),n=zr(t.reverse(),e);return[o,n]},Wd=e=>e instanceof HTMLInputElement&&"select"in e,et=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),Rl.value=window.performance.now(),e!==o&&Wd(e)&&t&&e.select()}};function Hr(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const Yd=()=>{let e=[];return{push:n=>{const r=e[0];r&&n!==r&&r.pause(),e=Hr(e,n),e.unshift(n)},remove:n=>{e=Hr(e,n),e[0]?.resume?.()}}},Gd=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(et(n,t),document.activeElement!==o)return},Kr=Yd(),Ud=()=>an.value>Rl.value,un=()=>{Fl.value="pointer",an.value=window.performance.now()},Wr=()=>{Fl.value="keyboard",an.value=window.performance.now()},Xd=()=>(l.onMounted(()=>{sn===0&&(document.addEventListener("mousedown",un),document.addEventListener("touchstart",un),document.addEventListener("keydown",Wr)),sn++}),l.onBeforeUnmount(()=>{sn--,sn<=0&&(document.removeEventListener("mousedown",un),document.removeEventListener("touchstart",un),document.removeEventListener("keydown",Wr))}),{focusReason:Fl,lastUserFocusTimestamp:an,lastAutomatedFocusTimestamp:Rl}),cn=e=>new CustomEvent(Pd,{...jd,detail:e}),{componentName:jh,create:Zd,scope:zh}=ie("focus-trap"),Jd=Zd({props:{loop:{type:[Boolean]},trapped:{type:[Boolean,String],required:!1,default:!1},escape:{type:[Boolean],required:!1,default:!1},focusTrapEl:{type:Object},focusStartEl:{type:[Object,String],default:"first"}},emits:[qr,Pr,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=l.ref();let r,a;const{focusReason:s}=Xd();qd(h=>{ue(e.trapped)&&!i.paused&&o("release-requested",h)});const i={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=h=>{if(!e.loop&&!ue(e.trapped)||i.paused)return;const{key:m,altKey:$,ctrlKey:w,metaKey:C,currentTarget:q,shiftKey:B}=h,{loop:A}=e,L=m==="Tab"&&!$&&!w&&!C,M=document.activeElement;if(L&&M){const V=q,[E,y]=Kd(V);if(E&&y){if(!B&&M===y){const _=cn({focusReason:s.value});o("focusout-prevented",_),_.defaultPrevented||(h.preventDefault(),A&&et(E,!0))}else if(B&&[E,V].includes(M)){const _=cn({focusReason:s.value});o("focusout-prevented",_),_.defaultPrevented||(h.preventDefault(),A&&et(y,!0))}}else if(M===V){const _=cn({focusReason:s.value});o("focusout-prevented",_),_.defaultPrevented||h.preventDefault()}}};l.provide(zd,{focusTrapRef:n,onKeydown:u}),l.watch(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),l.watch([n],([h],[m])=>{h&&(h.addEventListener("keydown",u),h.addEventListener("focusin",c),h.addEventListener("focusout",S)),m&&(m.removeEventListener("keydown",u),m.removeEventListener("focusin",c),m.removeEventListener("focusout",S))});const d=h=>{o(qr,h)},f=h=>o(Pr,h),c=h=>{const m=l.unref(n);if(!m)return;const $=h.target,w=h.relatedTarget,C=$&&m.contains($);ue(e.trapped)||w&&m.contains(w)||(r=w),C&&o("focusin",h),!i.paused&&ue(e.trapped)&&(C?a=$:et(a,!0))},S=h=>{const m=l.unref(n);if(!(i.paused||!m))if(!e.escape&&ue(e.trapped)){const $=h.relatedTarget;!Nn($)&&!m.contains($)&&setTimeout(()=>{if(!i.paused&&ue(e.trapped)){const w=cn({focusReason:s.value});o("focusout-prevented",w),w.defaultPrevented||et(a,!0)}},0)}else{const $=h.target;$&&m.contains($)||o("focusout",h)}};async function k(){await l.nextTick();const h=l.unref(n);if(h){Kr.push(i);const m=h.contains(document.activeElement)?r:document.activeElement;if(r=m,!h.contains(m)){const w=new Event(Vl,_r);h.addEventListener(Vl,d),h.dispatchEvent(w),w.defaultPrevented||l.nextTick(()=>{let C=e.focusStartEl;Ul(C)||(et(C),document.activeElement!==C&&(C="first")),C==="first"&&Gd(jr(h),!0),(document.activeElement===m||C==="container")&&et(h)})}}}function g(){const h=l.unref(n);if(h){h.removeEventListener(Vl,d);const m=new CustomEvent(Dl,{..._r,detail:{focusReason:s.value}});h.addEventListener(Dl,f),h.dispatchEvent(m),!m.defaultPrevented&&(s.value=="keyboard"||!Ud())&&et(r??document.body,!0),h.removeEventListener(Dl,d),Kr.remove(i)}}return l.onMounted(()=>{ue(e.trapped)&&k(),l.watch(()=>e.trapped,h=>{ue(h)?k():g()})}),l.onBeforeUnmount(()=>{ue(e.trapped)&&g()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:Qd,create:eh,scope:Kh}=ie("floating-window"),th=Symbol.for("InnerPageScopeKey"),nh=Symbol.for("PageWrapperKey"),lh={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},teleport:{type:[String,Element],default:"body"},fixedNavTeleport:{type:[String,Element]},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},footerDraggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},oh=eh({inheritAttrs:!1,components:{FoxIcon:v.ElIcon,FocusTrap:Jd},props:{...lh},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=Qd,n=l.ref(e.modelValue),r=l.computed(()=>!e.teleport);l.watch(()=>e.modelValue,T=>{n.value=T});const a=l.computed(()=>n.value===!1?!1:!M.value),s=l.ref(e.left),i=l.ref(e.top),u=l.ref(e.right),d=l.ref(e.bottom),f=l.computed(()=>{const T=["fox-floating-window"];return e.customClass&&T.push(e.customClass),T}),c=l.computed(()=>{const T={};return at(s.value)?T.left="auto":T.left=Fe(s.value),at(i.value)?T.top="auto":T.top=Fe(i.value),at(u.value)?T.right="auto":T.right=Fe(u.value),at(d.value)?T.bottom="auto":T.bottom=Fe(d.value),at(e.zIndex)||(T["z-index"]=Fe(e.zIndex)),at(A.value)||(T.height=A.value),at(L.value)||(T.width=L.value),T}),S=l.computed(()=>e.closeIcon??$e.Close),k=l.computed(()=>e.collapseIcon??$e.ArrowUp),g=l.computed(()=>e.collapseText??""),h=l.computed(()=>e.collapsePosition==="left"?e.expandIcon??$e.ArrowRight:e.expandIcon??$e.ArrowLeft),m=l.computed(()=>e.expandText??e.title??"展开"),$=l.computed(()=>({[`${o}__collapse-text`]:!0})),w=l.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!M.value,"is-collapse":M.value})),C=l.ref(),q=l.ref(null),B=l.ref(null),A=l.computed(()=>Fe(e.height)||""),L=l.computed(()=>Fe(e.width)||""),M=l.ref(ue(e.collapse)),V=(T,W=!0)=>{M.value!==T&&(M.value=T,T?x():I(),t("update:collapse",T),T&&typeof j.onHide=="function"?j.onHide():!T&&typeof j.onShow=="function"&&j.onShow())};l.watch(()=>e.collapse,T=>{V(T)});const E=()=>{y()},y=T=>{T=T??!M.value,V(T)};l.provide(th,!0);const j={setCollapse:V,setFixedNavVisible:T=>{ee.value=T}};l.provide(nh,j);const _=()=>{typeof j.beforeClose=="function"?j.beforeClose(()=>{n.value=!1}):n.value=!1},R=l.ref(null),D=l.computed(()=>!e.fixedNavTeleport),K=l.computed(()=>{const T=["fox-floating-window__fixednav"];return e.expandClass&&T.push(e.expandClass),e.collapsePosition==="left"?T.push("is-left"):e.collapsePosition==="right"&&T.push("is-right"),T}),G=l.ref(""),U=l.computed(()=>{const T={};return G.value?T.top=G.value:e.collapseTop&&(T.top=e.collapseTop),T}),Z=l.ref(M.value),ee=l.computed({set:T=>{Z.value=T},get:()=>n.value===!1?!1:Z.value});let le=null;const O=()=>{typeof le=="function"&&(le(),le=null)},x=()=>{R.value&&R.value.classList.add("slide-in"),ee.value=!0,le=()=>{R.value&&R.value.classList.remove("slide-in")}},I=()=>{R.value&&R.value.classList.add("slide-out"),le=()=>{R.value&&R.value.classList.remove("slide-out"),ee.value=!1}},N=()=>{s.value=null,i.value=null,u.value=null,d.value=null},b={x:0,y:0},z=Lr(T=>{if(!C.value)return;const W=C.value;if(N(),e.origin==="left-top")s.value=W.offsetLeft,i.value=W.offsetTop,b.x=s.value,b.y=i.value;else if(e.origin==="left-bottom"){const ne=document.documentElement.clientHeight||document.body.clientHeight;s.value=W.offsetLeft,d.value=ne-(W.offsetTop+W.offsetHeight),b.x=s.value,b.y=d.value}else if(e.origin==="right-bottom"){const ne=document.documentElement.clientWidth||document.body.clientWidth,oe=document.documentElement.clientHeight||document.body.clientHeight;u.value=ne-(W.offsetLeft+W.offsetWidth),d.value=oe-(W.offsetTop+W.offsetHeight),b.x=u.value,b.y=d.value}else{const ne=document.documentElement.clientWidth||document.body.clientWidth;u.value=ne-(W.offsetLeft+W.offsetWidth),i.value=W.offsetTop,b.x=u.value,b.y=i.value}},T=>{if(!C.value)return;const W=C.value;N(),e.origin==="left-top"?(s.value=b.x+T.x,i.value=b.y+T.y,W.style.left=Fe(s.value),W.style.top=Fe(i.value)):e.origin==="left-bottom"?(s.value=b.x+T.x,d.value=b.y-T.y,W.style.left=Fe(s.value),W.style.bottom=Fe(d.value)):e.origin==="right-bottom"?(u.value=b.x-T.x,d.value=b.y-T.y,W.style.right=Fe(u.value),W.style.bottom=Fe(d.value)):(u.value=b.x-T.x,i.value=b.y+T.y,W.style.right=Fe(u.value),W.style.top=Fe(i.value))}),F={x:0,y:0},J=Lr(T=>{R.value&&(F.x=R.value.offsetLeft,F.y=R.value.offsetTop)},T=>{if(!R.value)return;const W=F.y+T.y;G.value=`${W}px`}),te=()=>{if(C.value){const T=C.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");B.value=T}};return l.onMounted(()=>{if(e.draggable&&C.value){const T=[];q.value&&T.push(q.value),e.footerDraggable&&(te(),B.value&&T.push(B.value)),z.open(T)}e.collapse===!0&&V(e.collapse,!1),R.value&&J.open(R.value)}),l.onBeforeUnmount(()=>{e.draggable&&q.value&&z.close(),R.value&&J.close()}),{classes:f,styles:c,isShow:a,closeIcon:S,onClose:_,dialogRef:C,headerRef:q,onClickToggle:E,collapseIcon:k,collapseText:g,collapseTextClasses:$,collapseIconClasses:w,expandIcon:h,expandText:m,isShowFixedNav:ee,fixedNavRef:R,fixedNavClasses:K,fixedNavStyles:U,onAnimationEnd:O,teleportDisabled:r,fixedNavTeleportDisabled:D}}}),rh={ref:"headerRef",class:"fox-floating-window__header"},ah={class:"fox-floating-window__title"},ih={class:"fox-floating-window__tools"},sh={class:"fox-floating-window__body"},uh={class:"fox-floating-window__fixednav__text"};function ch(e,t,o,n,r,a){const s=l.resolveComponent("FoxIcon"),i=l.resolveComponent("FocusTrap");return l.openBlock(),l.createElementBlock(l.Fragment,null,[(l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[l.createVNode(l.Transition,{name:"fox-floating-window-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("div",{ref:"dialogRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles),tabindex:"-1"},[l.createVNode(i,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:l.withCtx(()=>[l.createElementVNode("div",rh,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("span",ah,l.toDisplayString(e.title),1),l.createElementVNode("div",ih,[e.showCollapse?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[l.createElementVNode("span",{class:l.normalizeClass(e.collapseTextClasses)},l.toDisplayString(e.collapseText),3),l.createVNode(s,{class:l.normalizeClass(e.collapseIconClasses)},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):l.createCommentVNode("",!0),e.showClose?(l.openBlock(),l.createBlock(s,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):l.createCommentVNode("",!0)])])],512),l.createElementVNode("div",sh,[l.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[l.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(l.openBlock(),l.createBlock(l.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[l.withDirectives(l.createElementVNode("div",{ref:"fixedNavRef",class:l.normalizeClass(e.fixedNavClasses),style:l.normalizeStyle(e.fixedNavStyles),onAnimationend:t[2]||(t[2]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[l.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:t[1]||(t[1]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[l.createVNode(s,{class:"fox-floating-window__fixednav__icon"},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.expandIcon)))]),_:1}),l.createElementVNode("div",uh,l.toDisplayString(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const Al=_e(oh,[["render",ch]]);function fh(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return po(o.name,()=>o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:Wh,create:dh,scope:Yh}=ie("domain-provider"),Ll=dh(fh()),hh={initialVisibleObserverSize:{type:[Number],required:!1},initialInvisibleObserverHeight:{type:[String],required:!1,default:"250px"},disabled:{type:[Boolean],required:!1},loadPolicy:{type:[String],required:!1,default:"rolling"},rootMargin:{type:[String],required:!1,default:"250px 0px 250px 0px"},threshold:{type:[Array],required:!1,default:[0,.25]},root:{type:[Object,String]}};function gh(e,t){return{inheritAttrs:!1,props:hh,setup(o,{slots:n}){if(lt&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const s=(S,k)=>{if(f===null){a.set(S,{visible:null,callback:k});return}r.has(S)&&f.unobserve(S),r.set(S,{visible:null,callback:k}),f.observe(S)},i=S=>{if(f===null){a.delete(S);return}r.has(S)&&(r.delete(S),f.unobserve(S))};let u=o.initialVisibleObserverSize;ei({acquire:()=>{const S=u>0;return u--,S},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:s,unobserve:i});let f=null;const c=(S,k,g)=>{f=new IntersectionObserver(h=>{for(let m of h){let $=!1;m.intersectionRatio>0&&($=!0);const w=r.get(m.target);if(w)try{if(o.loadPolicy==="lazy"&&!$&&w.visible!==null)return;w.visible=$,w.callback($)}catch(C){console.error(C)}}},{root:S,rootMargin:k,threshold:g}),a.forEach((h,m)=>{r.set(m,h),f?.observe(m)}),a.clear()};l.watch([()=>o.root,()=>o.disabled],([S,k])=>{if(k||!S||f)return;let g=null;typeof S=="string"?g=document.querySelector(S):g=S,g&&c(g,o.rootMargin,o.threshold)},{immediate:!0}),l.onUnmounted(()=>{f&&(f.disconnect(),f=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:Gh,create:mh,scope:Uh}=ie("rolling-provider"),Ml=mh(gh()),ph=[Fn,An,Ln,Mn,qn,Se,zn,Hn,Ct,Kn,Wn,Yn,Gn,Un,Xn,Zn,Qn,el,tl,nl,on,rl,al,il,sl,ul,cl,fl,hl,gl,ml,bl,vl,rn,wl,Sl,xl,Tl,Nl,kt,nn,kl,El,Il,Ol,Al,Ll,Ml],yh=new Va(ph,[Ra],"4.0.0");Object.defineProperty(p,"FoxAffix",{enumerable:!0,get:()=>v.ElAffix}),Object.defineProperty(p,"FoxAlert",{enumerable:!0,get:()=>v.ElAlert}),Object.defineProperty(p,"FoxAside",{enumerable:!0,get:()=>v.ElAside}),Object.defineProperty(p,"FoxAutoResizer",{enumerable:!0,get:()=>v.ElAutoResizer}),Object.defineProperty(p,"FoxAutocomplete",{enumerable:!0,get:()=>v.ElAutocomplete}),Object.defineProperty(p,"FoxAvatar",{enumerable:!0,get:()=>v.ElAvatar}),Object.defineProperty(p,"FoxBacktop",{enumerable:!0,get:()=>v.ElBacktop}),Object.defineProperty(p,"FoxBadge",{enumerable:!0,get:()=>v.ElBadge}),Object.defineProperty(p,"FoxBreadcrumb",{enumerable:!0,get:()=>v.ElBreadcrumb}),Object.defineProperty(p,"FoxBreadcrumbItem",{enumerable:!0,get:()=>v.ElBreadcrumbItem}),Object.defineProperty(p,"FoxButton",{enumerable:!0,get:()=>v.ElButton}),Object.defineProperty(p,"FoxButtonGroup",{enumerable:!0,get:()=>v.ElButtonGroup}),Object.defineProperty(p,"FoxCalendar",{enumerable:!0,get:()=>v.ElCalendar}),Object.defineProperty(p,"FoxCard",{enumerable:!0,get:()=>v.ElCard}),Object.defineProperty(p,"FoxCarousel",{enumerable:!0,get:()=>v.ElCarousel}),Object.defineProperty(p,"FoxCarouselItem",{enumerable:!0,get:()=>v.ElCarouselItem}),Object.defineProperty(p,"FoxCascader",{enumerable:!0,get:()=>v.ElCascader}),Object.defineProperty(p,"FoxCascaderPanel",{enumerable:!0,get:()=>v.ElCascaderPanel}),Object.defineProperty(p,"FoxCheckTag",{enumerable:!0,get:()=>v.ElCheckTag}),Object.defineProperty(p,"FoxCheckbox",{enumerable:!0,get:()=>v.ElCheckbox}),Object.defineProperty(p,"FoxCheckboxButton",{enumerable:!0,get:()=>v.ElCheckboxButton}),Object.defineProperty(p,"FoxCheckboxGroup",{enumerable:!0,get:()=>v.ElCheckboxGroup}),Object.defineProperty(p,"FoxCol",{enumerable:!0,get:()=>v.ElCol}),Object.defineProperty(p,"FoxCollapse",{enumerable:!0,get:()=>v.ElCollapse}),Object.defineProperty(p,"FoxCollapseItem",{enumerable:!0,get:()=>v.ElCollapseItem}),Object.defineProperty(p,"FoxCollapseTransition",{enumerable:!0,get:()=>v.ElCollapseTransition}),Object.defineProperty(p,"FoxColorPicker",{enumerable:!0,get:()=>v.ElColorPicker}),Object.defineProperty(p,"FoxConfigProvider",{enumerable:!0,get:()=>v.ElConfigProvider}),Object.defineProperty(p,"FoxContainer",{enumerable:!0,get:()=>v.ElContainer}),Object.defineProperty(p,"FoxDatePicker",{enumerable:!0,get:()=>v.ElDatePicker}),Object.defineProperty(p,"FoxDescriptions",{enumerable:!0,get:()=>v.ElDescriptions}),Object.defineProperty(p,"FoxDescriptionsItem",{enumerable:!0,get:()=>v.ElDescriptionsItem}),Object.defineProperty(p,"FoxDialog",{enumerable:!0,get:()=>v.ElDialog}),Object.defineProperty(p,"FoxDivider",{enumerable:!0,get:()=>v.ElDivider}),Object.defineProperty(p,"FoxDrawer",{enumerable:!0,get:()=>v.ElDrawer}),Object.defineProperty(p,"FoxDropdown",{enumerable:!0,get:()=>v.ElDropdown}),Object.defineProperty(p,"FoxDropdownItem",{enumerable:!0,get:()=>v.ElDropdownItem}),Object.defineProperty(p,"FoxDropdownMenu",{enumerable:!0,get:()=>v.ElDropdownMenu}),Object.defineProperty(p,"FoxEmpty",{enumerable:!0,get:()=>v.ElEmpty}),Object.defineProperty(p,"FoxFooter",{enumerable:!0,get:()=>v.ElFooter}),Object.defineProperty(p,"FoxForm",{enumerable:!0,get:()=>v.ElForm}),Object.defineProperty(p,"FoxFormItem",{enumerable:!0,get:()=>v.ElFormItem}),Object.defineProperty(p,"FoxHeader",{enumerable:!0,get:()=>v.ElHeader}),Object.defineProperty(p,"FoxIcon",{enumerable:!0,get:()=>v.ElIcon}),Object.defineProperty(p,"FoxImage",{enumerable:!0,get:()=>v.ElImage}),Object.defineProperty(p,"FoxImageViewer",{enumerable:!0,get:()=>v.ElImageViewer}),Object.defineProperty(p,"FoxInput",{enumerable:!0,get:()=>v.ElInput}),Object.defineProperty(p,"FoxInputNumber",{enumerable:!0,get:()=>v.ElInputNumber}),Object.defineProperty(p,"FoxLink",{enumerable:!0,get:()=>v.ElLink}),Object.defineProperty(p,"FoxMain",{enumerable:!0,get:()=>v.ElMain}),Object.defineProperty(p,"FoxMenu",{enumerable:!0,get:()=>v.ElMenu}),Object.defineProperty(p,"FoxMenuItem",{enumerable:!0,get:()=>v.ElMenuItem}),Object.defineProperty(p,"FoxMenuItemGroup",{enumerable:!0,get:()=>v.ElMenuItemGroup}),Object.defineProperty(p,"FoxOption",{enumerable:!0,get:()=>v.ElOption}),Object.defineProperty(p,"FoxOptionGroup",{enumerable:!0,get:()=>v.ElOptionGroup}),Object.defineProperty(p,"FoxPageHeader",{enumerable:!0,get:()=>v.ElPageHeader}),Object.defineProperty(p,"FoxPagination",{enumerable:!0,get:()=>v.ElPagination}),Object.defineProperty(p,"FoxPopconfirm",{enumerable:!0,get:()=>v.ElPopconfirm}),Object.defineProperty(p,"FoxPopover",{enumerable:!0,get:()=>v.ElPopover}),Object.defineProperty(p,"FoxPopper",{enumerable:!0,get:()=>v.ElPopper}),Object.defineProperty(p,"FoxProgress",{enumerable:!0,get:()=>v.ElProgress}),Object.defineProperty(p,"FoxRadio",{enumerable:!0,get:()=>v.ElRadio}),Object.defineProperty(p,"FoxRadioButton",{enumerable:!0,get:()=>v.ElRadioButton}),Object.defineProperty(p,"FoxRadioGroup",{enumerable:!0,get:()=>v.ElRadioGroup}),Object.defineProperty(p,"FoxRate",{enumerable:!0,get:()=>v.ElRate}),Object.defineProperty(p,"FoxResult",{enumerable:!0,get:()=>v.ElResult}),Object.defineProperty(p,"FoxRow",{enumerable:!0,get:()=>v.ElRow}),Object.defineProperty(p,"FoxScrollbar",{enumerable:!0,get:()=>v.ElScrollbar}),Object.defineProperty(p,"FoxSelect",{enumerable:!0,get:()=>v.ElSelect}),Object.defineProperty(p,"FoxSelectV2",{enumerable:!0,get:()=>v.ElSelectV2}),Object.defineProperty(p,"FoxSkeleton",{enumerable:!0,get:()=>v.ElSkeleton}),Object.defineProperty(p,"FoxSkeletonItem",{enumerable:!0,get:()=>v.ElSkeletonItem}),Object.defineProperty(p,"FoxSlider",{enumerable:!0,get:()=>v.ElSlider}),Object.defineProperty(p,"FoxSpace",{enumerable:!0,get:()=>v.ElSpace}),Object.defineProperty(p,"FoxStep",{enumerable:!0,get:()=>v.ElStep}),Object.defineProperty(p,"FoxSteps",{enumerable:!0,get:()=>v.ElSteps}),Object.defineProperty(p,"FoxSubMenu",{enumerable:!0,get:()=>v.ElSubMenu}),Object.defineProperty(p,"FoxSwitch",{enumerable:!0,get:()=>v.ElSwitch}),Object.defineProperty(p,"FoxTabPane",{enumerable:!0,get:()=>v.ElTabPane}),Object.defineProperty(p,"FoxTable",{enumerable:!0,get:()=>v.ElTable}),Object.defineProperty(p,"FoxTableColumn",{enumerable:!0,get:()=>v.ElTableColumn}),Object.defineProperty(p,"FoxTableV2",{enumerable:!0,get:()=>v.ElTableV2}),Object.defineProperty(p,"FoxTabs",{enumerable:!0,get:()=>v.ElTabs}),Object.defineProperty(p,"FoxTag",{enumerable:!0,get:()=>v.ElTag}),Object.defineProperty(p,"FoxTimePicker",{enumerable:!0,get:()=>v.ElTimePicker}),Object.defineProperty(p,"FoxTimeSelect",{enumerable:!0,get:()=>v.ElTimeSelect}),Object.defineProperty(p,"FoxTimeline",{enumerable:!0,get:()=>v.ElTimeline}),Object.defineProperty(p,"FoxTimelineItem",{enumerable:!0,get:()=>v.ElTimelineItem}),Object.defineProperty(p,"FoxTooltip",{enumerable:!0,get:()=>v.ElTooltip}),Object.defineProperty(p,"FoxTransfer",{enumerable:!0,get:()=>v.ElTransfer}),Object.defineProperty(p,"FoxTree",{enumerable:!0,get:()=>v.ElTree}),Object.defineProperty(p,"FoxTreeSelect",{enumerable:!0,get:()=>v.ElTreeSelect}),Object.defineProperty(p,"FoxTreeV2",{enumerable:!0,get:()=>v.ElTreeV2}),Object.defineProperty(p,"FoxUpload",{enumerable:!0,get:()=>v.ElUpload}),p.AutocompleteItem=el,p.Broadcast=kn,p.BroadcastKey=ye,p.CascaderItem=Qn,p.CheckboxItem=il,p.Content=Mn,p.DataItemsKey=st,p.DateItem=Yn,p.DateUtils=Be,p.DialogItem=vl,p.Domain=Ht,p.DomainKey=Ae,p.DomainProvider=Ll,p.FloatingWindow=Al,p.FooterBar=Ln,p.FoxAutocompleteItem=el,p.FoxCascaderItem=Qn,p.FoxCheckboxItem=il,p.FoxContent=Mn,p.FoxDateItem=Yn,p.FoxDialogItem=vl,p.FoxDomainProvider=Ll,p.FoxFloatingWindow=Al,p.FoxFooterBar=Ln,p.FoxGroup=qn,p.FoxGroupSetting=fl,p.FoxHeaderBar=An,p.FoxHintText=Ct,p.FoxIndicator=kl,p.FoxInfiniteLoading=Tl,p.FoxInputItem=Kn,p.FoxInputNumberItem=Zn,p.FoxItem=Se,p.FoxMapping=kt,p.FoxMoneyItem=Xn,p.FoxMoreButton=Il,p.FoxOverLay=rn,p.FoxPage=Fn,p.FoxPopup=wl,p.FoxPrice=nn,p.FoxPullRefresh=Nl,p.FoxRadioItem=al,p.FoxRateItem=sl,p.FoxRollingProvider=Ml,p.FoxRowItem=Hn,p.FoxSearchBar=xl,p.FoxSelectItem=Wn,p.FoxSlotItem=zn,p.FoxStepsBar=bl,p.FoxSwitchItem=ul,p.FoxTableItem=rl,p.FoxTableMappingColumn=tl,p.FoxTableRadioColumn=nl,p.FoxTableSetting=on,p.FoxTabsBar=hl,p.FoxTabsContainer=gl,p.FoxTabsPane=ml,p.FoxText=El,p.FoxTimeItem=Gn,p.FoxTimeSelectItem=Un,p.FoxToast=Sl,p.FoxTour=Ol,p.FoxTreeSelectItem=cl,p.Group=qn,p.GroupSetting=fl,p.HeaderBar=An,p.HintText=Ct,p.Indicator=kl,p.InfiniteLoading=Tl,p.InputItem=Kn,p.InputNumberItem=Zn,p.Item=Se,p.Mapping=kt,p.MoneyItem=Xn,p.MoreButton=Il,p.OverLay=rn,p.Page=Fn,p.Popup=wl,p.Price=nn,p.PriorityPolicy=Me,p.PullRefresh=Nl,p.RadioItem=al,p.RateItem=sl,p.RollingProvider=Ml,p.RowItem=Hn,p.SearchBar=xl,p.SelectItem=Wn,p.SlotItem=zn,p.StepsBar=bl,p.SwitchItem=ul,p.TableItem=rl,p.TableMappingColumn=tl,p.TableRadioColumn=nl,p.TableSetting=on,p.TabsBar=hl,p.TabsContainer=gl,p.TabsPane=ml,p.Text=El,p.TimeItem=Gn,p.TimeSelectItem=Un,p.Toast=Sl,p.Tour=Ol,p.TreeSelectItem=cl,p.UniqueID=Do,p.ValidateSchema=ho,p.ValidateSchemaKey=qe,p.cancelRaf=Ur,p.clearNonNumber=ia,p.clone=$n,p.compareTo=wn,p.createBroadcast=_t,p.createValidateSchema=Pt,p.debounce=xt,p.debounceRef=wa,p.decimalLength=ro,p.default=yh,p.defineBroadcast=fa,p.defineConfigDomain=po,p.defineDataItem=bo,p.defineDomain=In,p.defineItem=xe,p.definePageState=wo,p.defineSimpleItem=vo,p.deleteGlobalValidator=pa,p.disabledProperty=Ve,p.divide=vn,p.excludeProps=Ne,p.extend=nt,p.floatData=ca,p.getGlobalValidateCheckEvents=uo,p.getGlobalValidateResetEvents=fo,p.getPageContentAreaHeight=Wt,p.getPageContentAreaWidth=Yt,p.getPageFooterAreaHeight=$t,p.getPageHeaderAreaHeight=Tt,p.getRootDomain=ut,p.hasSymbol=Jl,p.includeProps=io,p.indexOf=sa,p.installRules=yo,p.integerLength=oo,p.isArray=Zr,p.isArrayLike=eo,p.isBrowser=lt,p.isDate=ea,p.isESModule=na,p.isEmptyString=me,p.isEqual=Ye,p.isFunction=xn,p.isHidden=Bt,p.isInnerPage=Ta,p.isMap=Jr,p.isNil=Nn,p.isNumberString=lo,p.isObject=We,p.isPlainObject=Tn,p.isPromise=Xl,p.isRegExp=no,p.isSet=Qr,p.isString=Ul,p.isSubPage=$a,p.isSymbol=ta,p.isTouch=$l,p.isWindow=Ql,p.lastIndexOf=ua,p.makeArray=aa,p.merge=to,p.multiply=Wl,p.negate=Yl,p.nextTick=oa,p.numberFormat=At,p.objectToString=Zl,p.once=Sa,p.overrideGlobalValidateHandler=ga,p.property=Ie,p.raf=Sn,p.readonlyProperty=Oe,p.setGlobalValidateCheckEvents=ya,p.setGlobalValidateHandler=ha,p.setGlobalValidateMessages=va,p.setGlobalValidateResetEvents=ba,p.setGlobalValidator=ma,p.throttle=mo,p.toBoolean=ue,p.toNumber=ve,p.toPadding=ze,p.toPx=he,p.toPxDesc=ke,p.toTypeString=Lt,p.toValue=ge,p.tryTimes=zt,p.typeOf=Mt,p.unNumberFormat=Gl,p.updatePageState=On,p.useBroadcast=vt,p.useDomain=Ge,p.useExpose=Te,p.useInnerSize=Rn,p.usePageState=Kt,p.usePosition=Io,p.useRawTouch=Cl,p.useRect=Ar,p.useSize=Ut,p.useTouch=ad,p.valueLength=bt,Object.defineProperties(p,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(m,l){typeof exports=="object"&&typeof module<"u"?l(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"],l):(m=typeof globalThis<"u"?globalThis:m||self,l(m.FoxUI={},m.Vue,m.FoxValidator,m.ElementPlus,m.ElementPlusIconsVue,m.FoxI18n))})(this,function(m,l,at,b,Ne,Be){"use strict";/*!
2
+ * @fox-js/foxui-desktop v4.0.0 Mon Dec 09 2024 09:24:03 GMT+0800 (中国标准时间)
3
+ */const _t=window,ea=typeof window<"u";function ta(){return typeof _t<"u"?_t.requestAnimationFrame||_t.webkitRequestAnimationFrame||function(e){_t.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function na(e){ea?cancelAnimationFrame(e):clearTimeout(e)}const Yl=ta();/*!
4
+ * @fox-js/big-decimal v4.0.1-6 Sat Aug 24 2024 07:04:11 GMT+0800 (中国标准时间)
5
+ */function qt(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=Ee(e),t=Ee(t),[e,t]=bn(Ee(e),Ee(t)),o==1&&(n==1?e=yn(e):t=yn(t));let r=Gl(e,t);return o?o==2?"-"+Ee(r):e.length<r.length?Ee(r.substring(1)):"-"+Ee(yn(r)):Ee(r)}function yn(e){let t="",o=e.length,n=e.split(".")[1],r=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 a=r>0?"0."+new Array(r).join("0")+"1":"1";return Gl(t,a)}function Ee(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 bn(e,t){let o=e.split("."),n=t.split("."),r=o[0].length,a=n[0].length;return r>a?n[0]=new Array(Math.abs(r-a)+1).join("0")+(n[0]?n[0]:""):o[0]=new Array(Math.abs(r-a)+1).join("0")+(o[0]?o[0]:""),r=o[1]?o[1].length:0,a=n[1]?n[1].length:0,(r||a)&&(r>a?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(r-a)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(r-a)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function Gl(e,t){[e,t]=bn(e,t);let o="",n=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){o="."+o;continue}let a=parseInt(e[r])+parseInt(t[r])+n;o=a%10+o,n=Math.floor(a/10)}return n?n.toString()+o:o}var ye=(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))(ye||{});function xt(e,t=0,o=ye.HALF_EVEN){if(o===ye.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 r=e.split("."),a=r[0],i=r[1];if(t<0){if(t=-t,a.length<=t)return"0";{let u=a.substr(0,a.length-t);return e=u+"."+a.substr(a.length-t)+i,u=xt(e,0,o),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return a.length,Ul(r[1],a,n,o)?(n?"-":"")+vn(a):(n?"-":"")+a;if(r[1]){if(r[1].length<t)return(n?"-":"")+a+"."+r[1]+new Array(t-r[1].length+1).join("0")}else return(n?"-":"")+a+"."+new Array(t+1).join("0");i=r[1].substring(0,t);let s=r[1].substring(t);return s&&Ul(s,i,n,o)&&(i=vn(i),i.length>t)?(n?"-":"")+vn(a,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+a+"."+i}function Ul(e,t,o,n){if(!e||e===new Array(e.length+1).join("0")||n===ye.DOWN||!o&&n===ye.FLOOR||o&&n===ye.CEILING)return!1;if(n===ye.UP||o&&n===ye.FLOOR||!o&&n===ye.CEILING)return!0;let r="5"+new Array(e.length).join("0");if(e>r)return!0;if(e<r)return!1;switch(n){case ye.HALF_DOWN:return!1;case ye.HALF_UP:return!0;case ye.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function vn(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let o=e.length-1,n="";for(let r=o;r>=0;r--){let a=parseInt(e[r])+t;a==10?(t=1,a=0):t=0,n+=a}return t&&(n+=t),n.split("").reverse().join("")}function wn(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=Tt(e),t=Tt(t);let n=0,r=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(r=t.length-t.indexOf(".")-1);let a=n+r;if(e=Tt(e.replace(".","")),t=Tt(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=[],f=i-1,c="";for(let d=0;d<i;d++)u[d]=e.length-1;for(let d=0;d<2*e.length;d++){let v=0;for(let V=t.length-1;V>=f&&V>=0;V--)u[V]>-1&&u[V]<e.length&&(v+=parseInt(e[u[V]--])*parseInt(t[V]));v+=s,s=Math.floor(v/10),c=v%10+c,f--}return c=Tt(la(c,a)),o==1&&(c="-"+c),c}function la(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 Tt(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 Sn(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 r=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=Ee(t.replace(".","")),r>=0){let f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=Ee(e+new Array(r+1).join("0"));else if(r>f)e=e.replace(".",""),e=Ee(e+new Array(r-f+1).join("0"));else if(r<f){e=e.replace(".","");let c=e.length-f+r;e=Ee(e.substring(0,c)+"."+e.substring(c))}else r==f&&(e=Ee(e.replace(".","")))}let a=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 f=u.length-u.indexOf(".")-1;u=u.replace(".",""),i>u.length&&(f+=i-u.length,u=u+new Array(i-u.length+1).join("0")),a=f,s="0."+new Array(f).join("0")}for(o=o+2;a<=o;){let f=0;for(;parseInt(u)>=parseInt(t);)u=qt(u,"-"+t),f++;s+=f,e?(e[0]=="."&&(s+=".",a++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(a||(s+="."),a++,u=u+"0")}return(n==1?"-":"")+Ee(xt(s,o-2))}function xn(e,t){return e=e.toString(),t=t.toString(),t=Tn(t),qt(e,t)}function Tn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Xl(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),Zl(e),Zl(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=xn(e,wn(t,xt(Sn(e,t),0,ye.FLOOR)));return o+n}function Zl(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Jl(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]=bn(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 ce{value;static RoundingModes=ye;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=Ee(o);let r="";o[0]=="-"&&(r="-",o=o.substring(1)),o.indexOf(".")>=0?(n=parseInt(n)+o.indexOf("."),o=o.replace(".","")):n=parseInt(n)+o.length,o.length<n?t=r+o+new Array(n-o.length+1).join("0"):o.length>=n&&n>0?t=r+Ee(o.substring(0,n))+(o.length>n?"."+o.substring(n):""):t=r+"0."+new Array(-n+1).join("0")+o}return t}constructor(t="0"){this.value=ce.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=ce.validate(t);let r=t.charAt(0)=="-";r&&(t=t.substring(1));var a=t.indexOf(".");a=a>0?a:t.length;for(var i="",s=a;s>0;)s<o?(o=s,s=0):s-=o,i=t.substring(s,s+o)+(s<a-o&&s>=0?n:"")+i;return(r?"-":"")+i+t.substring(a)}getPrettyValue(t,o){return ce.getPrettyValue(this.value,t,o)}static round(t,o=0,n=ye.HALF_EVEN){if(t=ce.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return xt(t,o,n)}round(t=0,o=ye.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new ce(xt(this.value,t,o))}static floor(t){return t=ce.validate(t),t.indexOf(".")===-1?t:ce.round(t,0,ye.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,ye.FLOOR)}static ceil(t){return t=ce.validate(t),t.indexOf(".")===-1?t:ce.round(t,0,ye.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,ye.CEILING)}static add(t,o){return t=ce.validate(t),o=ce.validate(o),qt(t,o)}add(t){return new ce(qt(this.value,t.getValue()))}static subtract(t,o){return t=ce.validate(t),o=ce.validate(o),xn(t,o)}subtract(t){return new ce(xn(this.value,t.getValue()))}static multiply(t,o){return t=ce.validate(t),o=ce.validate(o),wn(t,o)}multiply(t){return new ce(wn(this.value,t.getValue()))}static divide(t,o,n){return t=ce.validate(t),o=ce.validate(o),Sn(t,o,n)}divide(t,o){return new ce(Sn(this.value,t.getValue(),o))}static modulus(t,o){return t=ce.validate(t),o=ce.validate(o),Xl(t,o)}modulus(t){return new ce(Xl(this.value,t.getValue()))}static compareTo(t,o){return t=ce.validate(t),o=ce.validate(o),Jl(t,o)}compareTo(t){return Jl(this.value,t.getValue())}static negate(t){return t=ce.validate(t),Tn(t)}negate(){return new ce(Tn(this.value))}}function Ql(e,t){return ce.multiply(`${e}`,`${t}`)}function $n(e,t,o=8){return ce.divide(`${e}`,`${t}`,o)}function Cn(e,t){return e=`${e}`,t=`${t}`,ce.compareTo(e,t)}function eo(e){return ce.negate(e)}function Pt(e,t=-1,o=!1,n=3,r=","){let a=`${e}`;if(a.length==0||a==="-")return"";let i=a.charAt(0);i=="-"?a=a.substring(1):i="";let s=a,u="",f=a.indexOf(".");f!=-1&&(s=a.substring(0,f),u=a.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="",v=s.split("").reverse();for(let V=0;V<v.length;V++)d+=v[V]+((V+1)%n==0&&V+1!=v.length?r:"");u.length==0?c=`${i}${d.split("").reverse().join("")}`:c=`${i}${d.split("").reverse().join("")}.${u}`}else u.length==0?c=`${i}${s}`:c=`${i}${s}.${u}`;return c}function to(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const Nn=Yl,oa=Array.isArray,ra=e=>jt(e)==="[object Map]",aa=e=>jt(e)==="[object Set]",ia=e=>e instanceof Date,En=e=>typeof e=="function",no=e=>typeof e=="string",sa=e=>typeof e=="symbol",Xe=e=>e!==null&&typeof e=="object",lo=e=>Xe(e)&&En(e.then)&&En(e.catch),oo=Object.prototype.toString,jt=e=>oo.call(e),kn=e=>jt(e)==="[object Object]",ro=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function ua(e){return e.__esModule||ro&&e[Symbol.toStringTag]==="Module"}const ca=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function it(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,n=e.length,r=!1;for(typeof t=="boolean"&&(r=t,t=e[o]??{},o++),typeof t!="object"&&(t={});o<n;o++)if(e[o]!==null&&e[o]!==void 0){let a=e[o];for(let i in a){let s=t[i],u=a[i];if(s!==u)if(r===!0&&u&&typeof u=="object"){let f;Array.isArray(u)?f=s&&Array.isArray(s)?s:[]:f=s&&typeof s=="object"?s:{},t[i]=it(r,f,u)}else u!==void 0&&(t[i]=u)}}return t}function In(e,t,o=!1){if(!o)it(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let r in t){let a=e[r],i=t[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!kn(i))continue;a=In(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}const n=Object.getOwnPropertySymbols(t);for(let r of n){let a=e[r],i=t[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!kn(i))continue;a=In(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const On=ca?Promise.resolve():null;function fa(e,...t){On!==null?t&&t.length>0?On.then(()=>{e(t)}):On.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function se(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function Se(e){return typeof e=="number"?e:Number(e)}const da={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function zt(e){let o=Object.prototype.toString.call(e);return e==null?String(e):da[o]||"object"}function ao(e){return e&&typeof e=="object"&&"setInterval"in e}function Ht(e){if(!e)return!0;const{display:t}=window.getComputedStyle(e);return t==="none"}function io(e){let t=!!e&&"length"in e&&e.length,o=zt(e);return o==="function"||ao(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function so(e,t){let o=+t.length,n=0,r=e.length;for(;n<o;n++)e[r++]=t[n];return e.length=r,e}function ha(e,t=[]){let o=t;return e!=null&&(io(Object(e))?so(o,typeof e=="string"?[e]:e):o.push(e)),o}function Ze(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=zt(e),n=zt(t);if(o!==n)return!1;if(o==="object"){let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let i=0;i<r.length;i++){let s=r[i],u=e[s],f=t[s];if(!Ze(u,f))return!1}return!0}else if(o==="array"){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let a=e[r],i=t[r];if(!Ze(a,i))return!1}return!0}return!1}const st=typeof window<"u";function Vn(e){return e==null}function uo(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const pe=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function co(e){return pe(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),pe(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function fo(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 ho(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 go(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 ga(e,t=!0,o=!0){t?e=go(e,".",/\./g):e=e.replace(/\./g,""),o?e=go(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function ma(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(Ze(e,o))return!0}):t.indexOf(e)}function pa(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(n=>{if(Ze(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function $t(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function mo(e,...t){const o={};return t.forEach(n=>{for(const r in n)o[r]=e[r]}),o}function ke(e,...t){const o=[];t.forEach(r=>{Reflect.apply([].push,o,Reflect.ownKeys(r))});const n={};for(const r in e)o.includes(r)||(n[r]=e[r]);return n}const ya=(e,t,o)=>{const n=Object.assign({},e),r=Object.assign({},o);return Object.keys(t).length>0?(Object.keys(n).forEach(a=>{r.hasOwnProperty(a)?typeof r[a]=="string"&&(n[a]=t[r[a]]):t[a]&&(n[a]=t[a])}),n):e},be=Symbol.for("BroadcastKey");class Fn{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 r=!1;!t.name||t.name==="*"?r=!0:!t.name||t.name==="+"?(r=!1,t.name="*"):uo(t.name)&&this.name&&t.name.test(this.name)?r=!0:typeof t.name=="function"?r=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(r=!0);const a=[];if(r){const i=this.callbacks.get(o);if(typeof i=="function"){const u=Reflect.apply(i,this.proxy,[...n]);u!=null&&a.push(u)}const s=this.proxy??{};if(typeof s[o]=="function"){const u=Reflect.apply(s[o],s,[...n]);u!=null&&a.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,a,[...s])}),a}emitToChildren(t,o,...n){const r=[];return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...t},o,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}on(t,o){this.callbacks.set(t,o)}}function Kt(e,t,o,n){const r=new Fn(t,e,o);if(n&&typeof n=="object")for(const a in n)r.on(a,n[a]);return r}function ba(e,t,o){const n=o;if(n[be])return n[be];const r=l.inject(be,null),a=new Fn(r,o,e);if(t&&typeof t=="object")for(const i in t)a.on(i,t[i]);return n[be]=a,l.provide(be,a),l.onUnmounted(()=>{a.destroy(),n[be]=void 0}),a}function Ct(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[be]??l.inject(be,null):l.inject(be,null)}const ut=e=>e.default??e;class va{error(t,o){const n=o,r=o||l.hasInjectionContext()?Ct(o):null;r?r.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const o=t,n=t||l.hasInjectionContext()?Ct(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=t||l.hasInjectionContext()?Ct(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(t,o,n){Array.isArray(t)||(t=[t]);const r=n,a=n||l.hasInjectionContext()?Ct(n):null,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?a?a.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0):i&&!s&&(a?a.emit({name:"*"},"setRequired",!1):typeof r.setRequired=="function"&&r.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let Nt=new va;function wa(e){Nt=e}function Sa(e){Nt?Object.assign(Nt,e):Nt=e}function xa(e,t){ut(at).setValidator(e,t)}function Ta(e){ut(at).deleteValidator(e)}let po=["blur","clear"];function $a(e){po=e}function yo(){return po}let bo=["focus","change","setValue"];function Ca(e){bo=e}function vo(){return bo}function Na(e){ut(at).messages(e)}function Et(...e){const t=[];return e.forEach(o=>{o.forEach(n=>{const r=t.findIndex(a=>a.type===n.type);r!==-1&&t.splice(r,1),t.push(n)})}),t}function Wt(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 ze=Symbol("ValidateSchemaKey");class wo{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,o,n){this.parent=t,this.descriptor=o,this.proxy=n,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;t&&(this.scope=l.effectScope(!0),this.scope.run(()=>{l.watchEffect(()=>{const o=Wt(Et(this.attrRules,this.rules)),n=[];for(let a in t){let i=t[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let u={type:a};i!==null&&typeof i=="object"&&Object.assign(u,i),n.push(u);continue}let s=this.getValidator(a);if(s!==null){let u={type:a,validator:s};n.push(u)}}this.attrRules=Wt(n);const r=Et(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(r,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(t,...o){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...o]);const r=Nt;return r&&typeof r[t]=="function"?Reflect.apply(r[t],r,[...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?ut(at).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?ut(at).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return ut(at).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=Et(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Wt(t):this.rules=Wt([t]);const n=Et(this.attrRules,this.rules);l.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=Et(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(o.length>0){const r={[`${n}`]:o},a=this.getValue(),i={[`${n}`]:a},s=ut(at),u=new s(r),f=this.proxy??i;return u.validate(i,{context:f}).then(d=>{if(d.pass)this.success();else{let v="error";Array.isArray(d.errors)&&d.errors.length>0&&(v=d.errors[0].message??v,d.errors=[d.errors[0]],d.errors[0].ref=f),this.error(v)}return d}).catch(d=>{const v=d.message??`${d}`;return this.error(v),d})}}return Promise.resolve({pass:!0})}}function Yt(e,t,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const r=o.valueName;o.validateHandler={getValue(a){return a[r]}}}return new wo(t,o,e)}const Gt=Symbol.for("EventEmitterKey");class So{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 r=n.findIndex(a=>a===o);r!==-1&&n.splice(r,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(r=>{try{Reflect.apply(r,null,[t,...o])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...o])}}function kt(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function xo(e,t){let o=0;return function(...n){const r=new Date().getTime();r-o<t||(o=r,Reflect.apply(e,null,[...n]))}}function Ea(e,t){const o=kt((n,r)=>{e=n,r()},t);return l.customRef((n,r)=>({get(){return n(),e},set(a){o(a,r)}}))}function ka(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function Ut(e,t,o,n=0,r=!0,a){let i=t,s=0;if(r){const f=e();if(s++,f){typeof a=="function"&&a(!0);return}if(s>o){typeof a=="function"&&a(!1);return}}const u=()=>{const f=e();if(s++,f){typeof a=="function"&&a(!0);return}if(s>o){typeof a=="function"&&a(!1);return}i+=n,setTimeout(u,i)};setTimeout(u,i)}const Me=Symbol("DomainKey"),gt=Symbol("DataItemsKey");class Xt{_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=l.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 r=t[n];o.length>0&&o.indexOf(r)!==-1||(this._props[n]=r)}}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 r=n._props[t];o.push(r)}n=n._parent}return o}}const Ia=new Xt;function mt(){return Ia}function Je(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[Me]??l.inject(Me,null):l.inject(Me,null)}const Dn=Symbol("OriginalDateKey");function Rn(e,t,o=[],n){const r=l.getCurrentInstance();let a=r?.proxy,i=l.inject(Me,null);i===null&&(i=mt());const s=e||t.prop||t.name;let u=new Xt(s);u.parent=i;const f=V=>{a[Dn]||v(V),u?.set("modelValue",V)},c=()=>u?.getForSelf("modelValue")??null,d=()=>a[Dn]??null,v=V=>{const p={};it(!0,p,l.toRaw(V)),a[Dn]=p};if(l.isReactive(t)||typeof t=="function"?l.watch(t,V=>{u?.merge(V,o)},{immediate:!0}):u.merge(t,o),t.modelValue&&v(t.modelValue),a[Me]=u,l.provide(Me,u),r!==null){const V=l.inject(be,null),p=Kt(a,V,s,n);u.broadcast=p,a[be]=p,l.provide(be,p),a.broadcast=(T,w,...N)=>Reflect.apply(p.emit,p,[T,w,...N]);const h=l.inject(ze,null),g=Yt(a,h,{componentName:""});u.validateSchema=g,a[ze]=g,l.provide(ze,g),a[gt]=new Map,a.validate=(T=!0)=>{const w=[];let N=null;const z={deep:!1};if(T===!0)N={name:"*"};else if(Array.isArray(T)&&T.length>0){const B=T;N={name:_=>_?B.indexOf(_)!==-1:!1}}else if(T!=null&&typeof T=="object"){const B=T;if(Object.assign(z,B),Array.isArray(B.include)&&B.include.length>0){const _=B.include;N={name:F=>F?_.indexOf(F)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const _=B.exclude;N={name:F=>F?_.indexOf(F)===-1:!1}}else N={name:"*"}}if(N){const B=p?.emitToChildren(N,"validate",z);B&&Reflect.apply([].push,w,B)}return w.length==1?w[0]:w.length>1?Promise.all(w).then(B=>{let _=[];return B.forEach(F=>{F.pass===!1&&Array.isArray(F.errors)&&(_=[..._,...F.errors])}),_.length>0?{pass:!1,errors:_}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(T,w=!0,N=!1)=>{if(N===!0){Reflect.ownKeys(T).forEach(B=>{let _=String(B);const F={componentName:"",fieldName:_,pureDataValidate:!0};if(u){const L=Co(u,_,F,p,g);a[gt].set(_,L);const E=T[_];E&&L.validateSchema.setRule(E)}});return}if(w){const z=Reflect.ownKeys(T),B={name:_=>z.includes(_)};p?.emitToChildren(B,"setNameValidateRules",T,!1)}},a.clearValidate=(T=!0)=>{let w=null;if(T===!0)w={name:"*"};else if(Array.isArray(T)&&T.length>0){const N=T;w={name:z=>z?N.indexOf(z)!==-1:!1}}else if(T!=null&&typeof T=="object"){const N=T;if(Array.isArray(N.include)&&N.include.length>0){const z=N.include;w={name:B=>B?z.indexOf(B)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const z=N.exclude;w={name:B=>B?z.indexOf(B)===-1:!1}}else w={name:"*"}}w&&p?.emitToChildren(w,"clearValidate",!1)},a.resetFields=T=>{const w=c();if(!w)return;const N={};if(it(!0,N,d()??{}),Array.isArray(T))T.forEach(z=>{w[z]=N[z]});else if(T&&Array.isArray(T.include))(T.include??[]).forEach(B=>{w[B]=N[B]});else if(T&&Array.isArray(T.exclude)){let z=T.exclude??[];Reflect.ownKeys(N).forEach(B=>{z.includes(B)||(w[B]=N[B])})}else Object.assign(w,N);a.clearValidate(T)},a.setModelValue=(T,w)=>{!w||w===s?f(T):p?.emitToChildren({name:w},"setModelValue",T)},a.getModelValue=()=>c()}return l.onUnmounted(function(){u?.validateSchema&&(u.validateSchema.destroy(),a[ze]=void 0,l.provide(ze,null)),u?.broadcast&&(u?.broadcast?.destroy(),a[be]=void 0,l.provide(be,null)),u?.destroy(),a[Me]=void 0,l.provide(Me,null),a[gt]&&(a[gt].clear(),a[gt]=void 0),a.broadcast=null,a.validate=null,a.setNameValidateRules=null,a.clearValidate=null,a.resetFields=null,a.setModelValue=null,a.getModelValue=null,u=null,a=null}),u}function To(e,t,o=[]){let r=l.getCurrentInstance()?.proxy,a=l.inject(Me,null);a===null&&(a=mt());const i=e||t.prop||t.name;let s=new Xt(i);return s.parent=a,l.isReactive(t)||typeof t=="function"?l.watch(t,u=>{s?.merge(u,o)},{immediate:!0}):s.merge(t,o),r[Me]=s,l.provide(Me,s),l.onUnmounted(()=>{s?.destroy(),r[Me]=void 0,l.provide(Me,null),s=null,r=null}),s}function $o(e,t,o){const r=Je(e)?.get("rules");if(!r)return;let a=r[o];a&&(Array.isArray(a)||(a=[a]),t.setRule(a))}function $e(e,t,o){const r=l.getCurrentInstance()?.proxy,a=t??"",i=l.inject(be,null);let s=Kt(r,i,a,o);r[be]=s,l.provide(be,s),r.broadcast=(p,h,...g)=>s?Reflect.apply(s.emit,s,[p,h,...g]):null;const u=l.inject(ze,null);e.fieldName=e.fieldName??a;let f=Yt(r,u,e);r[ze]=f,l.provide(ze,f),$o(r,f,a),r.validate=(p=null)=>{if(!f)return Promise.resolve({pass:!0});const h=[];let g=!1,T=!1;if(Array.isArray(p)&&p.indexOf(a)!==-1)T=!0,g=!0;else if(p&&typeof p=="object"){const w=p,N=w.ignoreDisabled??!0,z=w.ignoreReadonly??!0,B=w.ignoreHidden??!0;N===!0&&e.disabled===!0||z===!0&&e.readonly===!0||B===!0&&Ht(r.$el)?T=!1:(Array.isArray(w.include)&&w.include.indexOf(a)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(a),T=!0),g=w.deep??!1}else typeof p=="boolean"&&(g=p),T=!0;if(T){const w=f?.validate();h.push(w)}if(g){let w=null;const N={deep:!1};if(p===!0)w={name:"*"};else if(Array.isArray(p)&&p.length>0){const z=p;w={name:B=>B?z.indexOf(B)!==-1:!1}}else if(p!=null&&typeof p=="object"){const z=p;if(Object.assign(N,z),Array.isArray(z.include)&&z.include.length>0){const B=z.include;w={name:_=>_?B.indexOf(_)!==-1:!1}}else if(Array.isArray(z.exclude)&&z.exclude.length>0){const B=z.exclude;w={name:_=>_?B.indexOf(_)===-1:!1}}else w={name:"*"}}if(w&&s){const z=s.emitToChildren(w,"validate",N);Reflect.apply([].push,h,z)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(w=>{let N=[];return w.forEach(z=>{z.pass===!1&&Array.isArray(z.errors)&&(N=[...N,...z.errors])}),N.length>0?{pass:!1,errors:N}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=p=>f?.setRule(p),r.setNameValidateRules=(p,h=!1)=>{const g=p[a];if(g&&f?.setRule(g),h&&s){const T={name:w=>Reflect.ownKeys(p).includes(w)};s.emitToChildren(T,"setNameValidateRules",p,!1)}},r.clearValidate=(p=null)=>{(!Array.isArray(p)||p.indexOf(t??"")!==-1)&&f?.clear();let h=null;if(p===!0)h={name:"*"};else if(Array.isArray(p)&&p.length>0){const g=p;h={name:T=>T?g.indexOf(T)!==-1:!1}}else if(p!=null&&typeof p=="object"){const g=p;if(Array.isArray(g.include)&&g.include.length>0){const T=g.include;h={name:w=>w?T.indexOf(w)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const T=g.exclude;h={name:w=>w?T.indexOf(w)===-1:!1}}else h={name:"*"}}h&&s&&s.emitToChildren(h,"clearValidate",!1)};let c=new So(r);r[Gt]=c;const d=kt((p="validate")=>{f&&(p==="reset"?f.clear():f.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:yo()).forEach(p=>{c&&c.on(p,h=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:vo()).forEach(p=>{c&&c.on(p,h=>{d("reset")})}),l.onUnmounted(()=>{s?.destroy(),r[be]=void 0,l.provide(be,null),s=null,f?.destroy(),r[ze]=void 0,l.provide(ze,null),f=null,c?.destroy(),r[Gt]=void 0,c=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:s,validateSchema:f,emitEvent:(p,...h)=>{c&&Reflect.apply(c.emit,c,[p,...h])},onEvent:(p,h)=>{c&&Reflect.apply(c.on,c,[h])},offEvent:(p,h)=>{c&&Reflect.apply(c.off,c,[h])}}}function Co(e,t,o,n,r){const a={},i=t??"",s={getValue(){const c=e.getForSelf("modelValue");return c?c[i]:null},isExist(){const c=e.getForSelf("modelValue");return c?Reflect.has(c,i):!1}};o.fieldName=i,o.validateHandler={getValue(c){return s.getValue()}};let u=Yt({},r,o);a.validate=(c=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const d=[];let v=!1,V=!1;if(Array.isArray(c)&&c.indexOf(i)!==-1)V=!0,v=!0;else if(c&&typeof c=="object"){const p=c;Array.isArray(p.include)&&p.include.indexOf(i)!==-1||Array.isArray(p.exclude)&&p.exclude.indexOf(i),V=!0,v=p.deep??!1}else typeof c=="boolean"&&(v=c),V=!0;if(V&&u){const p=u.validate();d.push(p)}if(v){let p=null;const h={deep:!1};if(c===!0)p={name:"*"};else if(Array.isArray(c)&&c.length>0){const g=c;p={name:T=>T?g.indexOf(T)!==-1:!1}}else if(c!=null&&typeof c=="object"){const g=c;if(Object.assign(h,g),Array.isArray(g.include)&&g.include.length>0){const T=g.include;p={name:w=>w?T.indexOf(w)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const T=g.exclude;p={name:w=>w?T.indexOf(w)===-1:!1}}else p={name:"*"}}if(p&&f){const g=f.emitToChildren(p,"validate",h);Reflect.apply([].push,d,g)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(p=>{let h=[];return p.forEach(g=>{g.pass===!1&&Array.isArray(g.errors)&&(h=[...h,...g.errors])}),h.length>0?{pass:!1,errors:h}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=c=>u?.setRule(c),a.setNameValidateRules=c=>{const d=c[i];d&&u?.setRule(d)};let f=Kt(null,n,i,a);return l.onUnmounted(()=>{u=null,f=null}),{broadcast:f,validateSchema:u}}function No(){let t=l.getCurrentInstance()?.proxy,o=new So(t);return t[Gt]=o,l.onUnmounted(()=>{o?.destroy(),t[Gt]=void 0,o=null,t=null}),{emitEvent:(n,...r)=>{o&&Reflect.apply(o.emit,o,[n,...r])},onEvent:(n,r)=>{o&&Reflect.apply(o.on,o,[r])},offEvent:(n,r)=>{o&&Reflect.apply(o.off,o,[r])}}}const Ie=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${he(e,t)}px`:"";function he(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 r=Number(e.substring(0,o)),a=1;if(st){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(a=Number(i.substring(0,s)))}return r*=a,r}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*t;const n=Number(e);return isNaN(n)?0:n}const nt="PageStateKey";function We(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=he(e.top)),e.left!==null&&e.left!==void 0&&(t.left=he(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=he(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=he(e.right))),t}function An(e,t,o={},n=!0,r=-1,a=-1,i=0,s=0){if(e.headerHeight=he(o.headerHeight??t.headerHeight??-1),e.headerPadding=We(o.headerPadding??t.headerPadding),e.footerHeight=he(o.footerHeight??t.footerHeight??-1),e.footerPadding=We(o.footerPadding??t.footerPadding),e.contentPadding=We(o.contentPadding??t.contentPadding),n){const u=o.height??t.height;u?e.height=he(u,a):e.height=he(a)-he(i,a)-he(s,a),e.width=he(o.width??t.width??0,r)}}function Eo(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},r=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});r&&(n.safeAreaTop=he(r.top),n.safeAreaBottom=he(r.bottom),n.safeAreaLeft=he(r.left),n.safeAreaRight=he(r.right));const a=e.get("pageLayout");if(!a)return null;const i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,f=e.get("footerBarHeight")??0;An(n,a,t,!0,i,s,u,f);const c=l.reactive(n),d=e.getForParent(nt);d&&(n.height=Jt(e,d),n.width=Qt(e,d),l.watch([()=>Jt(e,d),()=>Qt(e,d)],([V,p])=>{c.height=V,c.width=p}));const v=!d;return l.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([V,p,h=-1,g=-1,T=0,w=0])=>{An(c,p,t,v,h,g,T,w)}),e.set(nt,c),c}function Zt(e){return e.get(nt)}function It(e,t){if(t=t??e.get(nt),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function Ot(e,t){if(t=t??e.get(nt),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function Jt(e,t){if(t=t??e.get(nt),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=It(e,t),n=Ot(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function Qt(e,t){return t=t??e.get(nt),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Oa(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function Va(e){return!!e.getForParent(nt)}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 Ve(e,t,o=1,n){const r=Je();return r==null?e:o===0?l.computed(()=>{const a=r.getAll(t);for(let s=a.length-1;s>=0;s--){const u=a[s];if(Ln(u,n))return u}const i=e.value;return Ln(i,n)?i:null}):l.computed(()=>{const a=e.value;return Ln(a,n)?a:r?.get(t)})}function Fe(e){return Ve(e,"readonly",0,function(o){return se(o)})}function De(e){return Ve(e,"disabled",0,function(o){return se(o)})}function ge(e,t="modelValue",o=null,n){const r=l.toRef(e,t);let a=r.value;typeof o=="function"&&(a=o(r.value));const i=l.ref(a);return l.watch(r,s=>{if(typeof o=="function"){const u=o(s);u!==i.value&&(i.value=u,n&&n("setValue",u))}else s!==i.value&&(i.value=s,n&&n("setValue",s))}),i}const ko=new Map,en=new Map;let Mn=null;function Fa(e){Mn=e}function Io(e,t,o){if(o){let n=en.get(o);n||(n=new Map,en.set(o,n)),n.set(e,t)}else ko.set(e,t)}function He(e,t,o){!o&&Mn&&(o=Mn(e)??void 0);let n=null;if(o){let r=en.get(o);r&&(n=r.get(t))}return n||(n=ko.get(t)),n}function Da(e,t){for(let o in e){const n=e[o];Io(o,n,t)}}function Ra(e){en.delete(e)}function Aa(){return{top:0,left:0,bottom:0,right:0}}function La(e=0,t=0){if(st){const o=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,r={width:o,height:n-he(e,n)-he(t,n)};return{rootWidth:o,rootHeight:n,pageLayout:r}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}function Ma(e,t){if(t.componentPrefix){const o=e.indexOf("-");return`${t.componentPrefix}${e.slice(o)}`}return e}class Ba{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(a=>{if(a.install)t.use(a);else if(a.name){const i=Ma(a.name,o);t.component(i,a)}}),this.installers.forEach(a=>{a(t,o)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=mt();if(this.initPageLayout(o,r),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=xo(()=>{const s={...o},u=document.documentElement.clientWidth||document.body.clientWidth,f=document.documentElement.clientHeight||document.body.clientHeight;s.width=u,s.height=f,this.initPageLayout(s,r)},150);new window.ResizeObserver(a).observe(window.document.body)}for(const a in o)n.indexOf(a)===-1&&r.set(a,o[a])}initPageLayout(t,o){const n=t.headerBarHeight??0,r=t.footerBarHeight??0,a=it({},Aa(),t.safeAreaInset),i=La(n,r),s=it({},i.pageLayout,t.pageLayout);o=o??mt(),o.set("safeAreaInset",a),o.set("headerBarHeight",n),o.set("footerBarHeight",r),o.set("pageLayout",s),o.set("rootWidth",i.rootWidth),o.set("rootHeight",i.rootHeight)}setScopeGetter(t){Fa(t)}setAPI(t,o,n){Io(t,o,n)}getAPI(t,o,n){return He(t,o,n)}batchSetAPI(t,o){Da(t,o)}clearScopeAPI(t){Ra(t)}getRootDomain(){return mt()}}const _a=[b.ElAffix,b.ElAlert,b.ElAutocomplete,b.ElAutoResizer,b.ElAvatar,b.ElBacktop,b.ElBadge,b.ElBreadcrumb,b.ElBreadcrumbItem,b.ElButton,b.ElButtonGroup,b.ElCalendar,b.ElCard,b.ElCarousel,b.ElCarouselItem,b.ElCascader,b.ElCascaderPanel,b.ElCheckTag,b.ElCheckbox,b.ElCheckboxButton,b.ElCheckboxGroup,b.ElCol,b.ElCollapse,b.ElCollapseItem,b.ElCollapseTransition,b.ElColorPicker,b.ElConfigProvider,b.ElContainer,b.ElAside,b.ElFooter,b.ElHeader,b.ElMain,b.ElDatePicker,b.ElDescriptions,b.ElDescriptionsItem,b.ElDialog,b.ElDivider,b.ElDrawer,b.ElDropdown,b.ElDropdownItem,b.ElDropdownMenu,b.ElEmpty,b.ElForm,b.ElFormItem,b.ElIcon,b.ElImage,b.ElImageViewer,b.ElInput,b.ElInputNumber,b.ElLink,b.ElMenu,b.ElSubMenu,b.ElMenuItem,b.ElMenuItemGroup,b.ElPageHeader,b.ElPagination,b.ElPopconfirm,b.ElPopover,b.ElPopper,b.ElProgress,b.ElRadio,b.ElRadioButton,b.ElRadioGroup,b.ElRate,b.ElResult,b.ElRow,b.ElScrollbar,b.ElSelect,b.ElOption,b.ElOptionGroup,b.ElSelectV2,b.ElSkeleton,b.ElSkeletonItem,b.ElSlider,b.ElSpace,b.ElSteps,b.ElStep,b.ElSwitch,b.ElTable,b.ElTableColumn,b.ElTableV2,b.ElTabs,b.ElTabPane,b.ElTag,b.ElTimePicker,b.ElTimeSelect,b.ElTimeline,b.ElTimelineItem,b.ElTooltip,b.ElTransfer,b.ElTree,b.ElTreeSelect,b.ElTreeV2,b.ElUpload],qa=[b.ElInfiniteScroll,b.ElLoading,b.ElMessage,b.ElMessageBox,b.ElNotification,b.ElPopoverDirective],Pa=(e,t={})=>{const o=t.componentPrefix??"fox",n=o[0].toUpperCase()+o.slice(1);_a.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${n}${a.slice(2)}`,e.component(a,r)):e.use(r)}),qa.forEach(r=>{e.use(r)})};function ie(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)},l.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,l.defineComponent(o)}}}function Ce(e,t=null){if(t||(t=l.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const xe={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},textAlign:{type:[String],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},Oe={prop:{type:String,required:!1},label:{type:String,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}},Oo={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}},Vo={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{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},collapsePosition:{type:[String],requried:!1,default:"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:!0}},Fo=[];for(const e in Vo)Fo.push(e);const ja=Symbol.for("InnerPageScopeKey"),za={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},pureDataRules:{type:[Object],required:!1}},Ha=(e,t)=>({inheritAttrs:!0,props:{...xe,...Oo,...za},setup(o,{slots:n}){const r=Rn(o.name,o),a=l.inject(ja,!1);if(r){const c=Eo(r,o);Ce({getPageContentHeight:()=>Jt(r,c),getPageContentWidth:()=>Qt(r,c),getPageHeaderHeight:()=>It(r,c),getPageFooterHeight:()=>Ot(r,c)}),c&&a&&(c.contentHeight="100%")}const i=l.computed(()=>({[e]:!0})),s=l.computed(()=>({})),u=l.getCurrentInstance(),f=(c,d=!1)=>{const v=u?.proxy;v&&typeof v.setNameValidateRules=="function"&&v.setNameValidateRules(c,!0,d)};return l.watch([()=>o.rules,()=>o.pureDataRules],([c,d],[v,V])=>{if(c&&v){const p=l.toRaw(v),h=l.toRaw(c),g=h?Reflect.ownKeys(h):[];(p?Reflect.ownKeys(p):[]).forEach(w=>{g.includes(w)||(h[w]=[])}),f(h)}if(d&&V){const p=l.toRaw(V),h=l.toRaw(d),g=h?Reflect.ownKeys(h):[];(p?Reflect.ownKeys(p):[]).forEach(w=>{g.includes(w)||(h[w]=[])}),f(h,!0)}},{deep:!0}),l.onMounted(()=>{if(o.rules){const c=l.toRaw(o.rules);f(c)}if(o.pureDataRules){const c=l.toRaw(o.pureDataRules);f(c,!0)}}),()=>{const c={class:i.value,style:s.value};return l.h("div",c,[n?.default?.()])}}}),{componentName:Ka,create:Wa,scope:kh}=ie("page"),Bn=Wa(Ha(Ka));function tn(e){const t=l.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function _n(e){const t=l.unref(e),o=window.getComputedStyle(t,null),n=parseFloat(o.getPropertyValue("padding-left")),r=parseFloat(o.getPropertyValue("padding-right")),a=parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-r,height:t.clientHeight-a-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},align:{type:[String],default:"center"},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},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(r,a){const i=Je(),s=i?Zt(i):null;s&&(s.headerMounted=!0);const u=e,f=l.computed(()=>({[u]:!0,[`${u}--border`]:r.border,[`${u}--fixed`]:r.fixed,[`${u}--safe-area-inset-top`]:r.safeAreaInsetTop})),c=l.computed(()=>({[`${u}__inner`]:!0,[`${u}__inner--${r.align}`]:!0})),d=r.height!==null&&r.height!==void 0?he(r.height):null,v=l.computed(()=>{const k={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const x=We(r.padding??s.headerPadding);return Object.assign(k,x),d&&(s.headerHeight=d),s.headerHeight>0&&(k.height=s.headerHeight),k.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,k.safeAreaTop>0&&(k.top=k.safeAreaTop+(x.top??0),k.height&&k.height>0&&(k.height=k.height+k.safeAreaTop)),k}if(d&&(k.height=d),r.padding){const x=We(r.padding);Object.assign(k,x)}return k}),V=l.ref(null),p=()=>{if(s&&V.value&&!Ht(V.value)){if(!n){const k=tn(V.value);s.headerAllHeight=k.height}return s.headerMounted=!0,!0}return!1};let h=null;l.onMounted(()=>{s&&(Ut(p,50,5,50,!0),window.ResizeObserver&&V.value&&(h=new window.ResizeObserver(()=>{p()}),h.observe(V.value)))}),l.onUnmounted(()=>{s&&(s.headerMounted=!1,h&&(h.disconnect(),h=null))});const g=l.computed(()=>{const k={};return v.value.height!==null&&v.value.height!==void 0&&(k.height=`${v.value.height}px`),v.value.top!==null&&v.value.top!==void 0&&(k.paddingTop=`${v.value.top}px`),v.value.left!==null&&v.value.left!==void 0&&(k.paddingLeft=`${v.value.left}px`),v.value.right!==null&&v.value.right!==void 0&&(k.paddingRight=`${v.value.right}px`),v.value.bottom!==null&&v.value.bottom!==void 0&&(k.paddingBottom=`${v.value.bottom}px`),k}),T=l.computed(()=>!(v.value.height!==null&&v.value.height!==void 0&&v.value.height<=0));function w(){a.emit("back")}function N(){a.emit("click-title")}function z(){a.emit("click-right")}function B(){a.emit("click-right-text")}const _=()=>{if(!r.leftShow)return null;const k=[];if(a.slots.left)k.push(a.slots.left());else{if(a.slots.leftIcon){const x=l.h("view",{class:"left-icon",onClick:w},[a.slots.leftIcon()]);k.push(x)}else if(r.leftIcon){const x=l.h("view",{class:"left-icon",onClick:w},[l.h(r.leftIcon)]);k.push(x)}if(r.leftText){const x=l.h("view",{class:"left-text",onClick:w},[r.leftText]);k.push(x)}}return k.length===0?null:l.h("view",{class:"fox-header-bar__left"},k)},F=()=>{if(!r.rightShow)return null;const k=[];if(a.slots.right)k.push(a.slots.right());else{if(r.rightText){const x=l.h("view",{class:"right-text",onClick:B},[r.rightText]);k.push(x)}if(a.slots.rightIcon){const x=l.h("view",{class:"right-icon",onClick:z},[a.slots.rightIcon()]);k.push(x)}else if(r.rightIcon){const x=l.h("view",{class:"right-icon",onClick:z},[l.h(r.rightIcon)]);k.push(x)}}return k.length===0?null:l.h("view",{class:"fox-header-bar__right"},k)},L=()=>{if(!r.titleShow)return null;const k=[],x=a.slots.default?a.slots.default():null;if(x)k.push(x);else{if(r.title){const j=l.h("view",{class:"title-text"},[r.title]);k.push(j)}if(a.slots.titleIcon){const j=l.h("view",{class:"title-icon",onClick:N},[a.slots.titleIcon()]);k.push(j)}else if(r.titleIcon){const j=l.h("view",{class:"title-icon",onClick:N},[l.h(r.titleIcon)]);k.push(j)}}return k.length===0?null:l.h("view",{class:"fox-header-bar__title"},k)},E=()=>{const k=[],x=a.slots.bottom?a.slots.bottom():null;return x&&k.push(x),k.length===0?null:l.h("view",{class:"fox-header-bar__bottom"},k)};return()=>{if(!T.value)return null;const k=[];if(a.slots.all)k.push(a.slots.all());else{const j=[],C=_();C&&j.push(C);const I=L();I&&j.push(I);const R=F();if(R&&j.push(R),j.length>0){const Y=l.h("view",{class:c.value},j);k.push(Y)}const G=E();G&&k.push(G)}if(k.length===0)return null;const x={class:f.value,style:g.value,ref:V};return l.h("view",x,k)}}}),{componentName:Ga,create:Ua,scope:Xa}=ie("header-bar"),qn=Ua(Ya(Ga,Xa,Ne.ArrowLeft));function Za(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,r){const a=Je(),i=a?Zt(a):null,s=l.computed(()=>{const p=e;return{[p]:!0,[`${p}--${n.align}`]:!0,[`${p}--border`]:n.border,[`${p}--fixed`]:n.fixed,[`${p}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?he(n.height):null,f=l.computed(()=>{const p={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const h=We(n.padding??i.footerPadding);return Object.assign(p,h),u&&(i.footerHeight=u),i.footerHeight>0&&(p.height=i.footerHeight),p.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,p.safeAreaBottom>0&&(p.bottom=p.safeAreaBottom+(h.bottom??0),p.height&&p.height>0&&(p.height=p.height+p.safeAreaBottom)),p}if(u&&(p.height=u),n.padding){const h=We(n.padding);Object.assign(p,h)}return p}),c=l.ref(null),d=()=>{if(i&&c.value&&!Ht(c.value)){if(!o){const p=tn(c.value);i.footerAllHeight=p.height}return i.footerMounted=!0,!0}return!1};let v=null;l.onMounted(()=>{i&&(Ut(d,50,5,50,!0),window.ResizeObserver&&(v=new window.ResizeObserver(()=>{d()}),v.observe(c.value)))}),l.onUnmounted(()=>{i&&(i.footerMounted=!1,v&&(v.disconnect(),v=null))});const V=l.computed(()=>{const p={};return f.value.height!==null&&f.value.height!==void 0&&(p.height=Ie(f.value.height)),f.value.top!==null&&f.value.top!==void 0&&(p.paddingTop=Ie(f.value.top)),f.value.left!==null&&f.value.left!==void 0&&(p.paddingLeft=Ie(f.value.left)),f.value.right!==null&&f.value.right!==void 0&&(p.paddingRight=Ie(f.value.right)),f.value.bottom!==null&&f.value.bottom!==void 0&&(p.paddingBottom=Ie(f.value.bottom)),p});return()=>{const p=r.slots.default?r.slots.default():[],h={ref:c,class:s.value,style:V.value};return l.h("view",h,p)}}}}const{componentName:Ja,create:Qa,scope:Ih}=ie("footer-bar"),Pn=Qa(Za(Ja));function ei(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const n=Je(),r=l.computed(()=>({[e]:!0})),a=n?Zt(n):null,i=l.computed(()=>{const f={};if(n&&a){if(o.padding){const V=We(o.padding);Object.assign(a.contentPadding,V)}const c=It(n,a),d=Ot(n,a);let v="";if(a.contentHeight?v=`${a.contentHeight}`:v=`${a.height}px`,a.contentPadding,f.height=v,a.contentPadding.top||c>0){const V=(a&&a.contentPadding&&a.contentPadding.top)??0;f.paddingTop=`${c+V}px`}if(a.contentPadding.bottom||d>0){const V=(a&&a.contentPadding&&a.contentPadding.bottom)??0;f.paddingBottom=`${d+V}px`}return a.contentPadding.left&&(f.paddingLeft=`${a.contentPadding.left}px`),a.contentPadding.right&&(f.paddingRight=`${a.contentPadding.right}px`),f}if(o.padding){const c=We(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}),s=l.ref(null),u=()=>{if(a&&s.value){const f=_n(s.value);a.contentInnerHeight=f.height,a.contentInnerWidth=f.width}};return l.onMounted(()=>{u()}),n&&a&&l.watch([()=>It(n),()=>Ot(n)],([])=>{u()}),{contentRef:s,classes:r,styles:i}}}}const{componentName:ti,create:ni,scope:Oh}=ie("content"),li=ni(ei(ti));function oi(e,t,o,n,r,a){return l.openBlock(),l.createElementBlock("div",{ref:"contentRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.renderSlot(e.$slots,"default")],6)}const je=(e,t)=>{const o=e.__vccOpts||e;for(const[n,r]of t)o[n]=r;return o},jn=je(li,[["render",oi]]),pt="GroupStateKey",Do=Symbol.for("GroupScopeKey");function nn(){return l.inject(Do,!1)}function ln(e=!0){l.provide(Do,e)}function ri(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const r=t[n];Vn(r)||(e[n]=r)})}function ai(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};ri(n,t);const r=l.shallowRef(n),a=l.markRaw({layout:r,passport:0,order:{index:0}});return e.set(pt,a),a}function zn(e,t,o=-1,n=-1,r=!1,a,i,s){const u=e.get(pt);if(!u)return;const f=e.get("groupLayout")??{};o===-1&&(o=f.column??1),n===-1&&(n=f.gutter??0),a||(a=f.minItemWidth??-1),i||(i=f.maxItemWidth??-1);const c=he(a),d=he(i);s||(s=f.type??"grid");const v=()=>{const V=t===""||t===-1,p=he(t);let h=Se(o);const g=he(n);if(!V){let N=(p-(h-1)*g)/h;for(;d!==-1&&N>d;)h++,N=(p-(h-1)*g)/h;for(;c!==-1&&h>1&&N<c;)h--,N=(p-(h-1)*g)/h}let T=!1;const w=u.layout;w.value.width=t,w.value.column!==h&&(w.value.column=h,T=!0),w.value.gutter!==g&&(w.value.gutter=g,T=!0),w.value.type!==s&&(w.value.type=s,T=!0),T&&l.triggerRef(w)};if(r)v();else{const V=++u.passport;setTimeout(()=>{V===u.passport&&v()},50)}}function on(e,t=!1){let o;return t?o=e.getForParent(pt):o=e.get(pt),o.layout}function rn(e,t=!1){let o;return t?o=e.getForParent(pt):o=e.get(pt),o.order}function Ro(e,t=1){if(t==="stretch")return-1;const o=Se(t);return o===-1?100:100*o/e}function an(e,t,o=1,n=0,r){const a={};let i=0;r?i=he(r):i=Ro(t.column,o),i>0&&(a.width=`${i}%`);const s=Ro(t.column,n);s>0&&(a["margin-left"]=`${s}%`);const u=t.gutter/2;return u>0&&(a["padding-left"]=`${u}px`,a["padding-right"]=`${u}px`),a}function sn(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 r=Se(o);if(r===-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(r>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 a=Se(n)%t.column;let i=(e.index+a)%t.column,s=i+r;return s>t.column?(i=0,s=i+r,e.index=e.index+(t.column-i)+r):e.index=e.index+a+r,a>0?{"grid-column":`${i+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}const Ao=Symbol("RollingStateKey");function ii(e){l.provide(Ao,e)}function si(){return l.inject(Ao,null)}function Hn(e){let t=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const r=parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("padding-bottom"));t=e.clientHeight-r-a}else t=e.offsetHeight;return t}function ui(e){let t=Hn(e);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=Hn(o),document.body.removeChild(o)}return t}function ci(e,t,o){if(e<=0)return"1fr";const n=(e-(t-1)*o)/t;return n>0?`${n}px`:"1fr"}const fi={...xe,...Oo,...Vo};function di(e,t,o){return{props:fi,emits:["update:collapse","header-click"],setup(n,r){const a=Rn(n.name,n,Fo),i=ai(a,{type:n.type}),s=nn();ln(!0);const u=n.rollingDisplay?si():null,f=l.ref(null),c=l.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),d=l.computed(()=>s&&a?on(a,!0).value:null),v=l.getCurrentInstance(),V=(H,J=!1)=>{const ne=v?.proxy;ne&&typeof ne.setNameValidateRules=="function"&&ne.setNameValidateRules(H,!0,J)};l.watch([()=>n.rules,()=>n.pureDataRules],([H,J],[ne,$])=>{if(H&&ne){const W=l.toRaw(ne),ee=l.toRaw(H),le=ee?Reflect.ownKeys(ee):[];(W?Reflect.ownKeys(W):[]).forEach(fe=>{le.includes(fe)||(ee[fe]=[])}),V(ee)}if(J&&$){const W=l.toRaw($),ee=l.toRaw(J),le=ee?Reflect.ownKeys(ee):[];(W?Reflect.ownKeys(W):[]).forEach(fe=>{le.includes(fe)||(ee[fe]=[])}),V(ee,!0)}},{deep:!0});const p=e,h=l.computed(()=>{const H={};H.height=R.value;const J=s?rn(a,!0):null;if(d.value&&J){if(d.value.type==="grid"){const ne=sn(J,d.value,n.span,n.offset);Object.assign(H,ne)}else if(d.value.type==="flow"){const ne=an(J,d.value,n.span,n.offset,n.width);Object.assign(H,ne)}}else if(n.width){const ne=Ie(n.width);H.width=ne}return H}),g=l.computed(()=>{const H=i.layout.value.type;return H==="grid"||H==="flow"?{[`${p}--${H}`]:!0,[`${p}--${H}-justify-${n.justify}`]:!0,[`${p}--${H}-align-${n.align}`]:!0,[`${p}--gutter`]:!0}:{[`${p}--${H}`]:!0,[`${p}--gutter`]:!0}}),T=l.computed(()=>{if(i.layout.value.type==="grid"){let J="";if(n.columnWidth)J=`repeat(auto-fill, ${n.columnWidth})`;else{const ne=ci(L.value,i.layout.value.column,i.layout.value.gutter);J=`repeat(${i.layout.value.column}, ${ne})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":J}}}),w=l.toRef(n,"gutter"),N=l.toRef(n,"column"),z=l.computed(()=>s||c.value?!0:se(n.isWrap)),B=[],_=H=>{B.push(H)},F=()=>{let H=B.length;B.splice(0,H)},L=l.ref(-1),E=H=>{const J=_n(H).width;J>0&&J!==L.value&&(L.value=J)};zn(a,L.value,N.value,w.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&l.watch([L,N,w],([H,J,ne])=>{i.order.index=0,zn(a,H,J,ne,!1,n.minItemWidth,n.maxItemWidth,n.type)});const k=l.computed(()=>G.value?n.expandText??"":n.collapseText??""),x=l.computed(()=>({[`${e}__header-collapse-text`]:!0})),j=l.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!G.value,"is-collapse":G.value})),C=l.ref(),I=l.ref(),R=l.computed(()=>Y.value||Ie(n.height)||""),G=l.ref(!1),Y=l.ref(""),Z=l.ref(!1);let X=-1;const te=(H,J=!0)=>{const ne=C.value;if(ne&&G.value!==H){if(X=X===-1?ui(ne):X,Z.value=!0,J)if(ne.style["will-change"]="height",ne.ontransitionend=function(){ne.ontransitionend=null,this.style["will-change"]="auto",H||(Y.value="",Z.value=!1)},H){let $=0;n.collapseHeight?$=n.collapseHeight:I.value&&I.value.classList.contains(`${e}__header`)&&($=I.value.offsetHeight),Y.value=`${X}px`,l.nextTick(()=>{Y.value=`${$}px`})}else Y.value=`${X}px`;else if(H){let $=0;n.collapseHeight?$=n.collapseHeight:I.value&&I.value.classList.contains(`${e}__header`)&&($=I.value.offsetHeight),Y.value=`${$}px`}else Z.value=!1,Y.value=`${X}px`;G.value=H,r.emit("update:collapse",H)}};l.watch(()=>n.collapse,H=>{te(H)});const oe=H=>{r.emit("header-click",H)},O=()=>{S()},S=H=>{H=H??!G.value,te(H)};Ce({toggleCollapse:S,doLayout:()=>{B[0]&&(E(B[0]),zn(a,L.value,N.value,w.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let D=null,y=!0;const K=H=>{if(n.rules){const J=l.toRaw(n.rules);V(J)}if(n.pureDataRules){const J=l.toRaw(n.pureDataRules);V(J,!0)}if(st&&(H&&te(se(n.collapse),!1),n.autoLayout&&Array.isArray(B)&&B.length>0)){const J=B[0];E(J),window.ResizeObserver&&(D=new window.ResizeObserver(()=>{E(J)}),D.observe(J))}},P=()=>{D?.disconnect(),D=null},q=!c.value||u?.acquire();q&&(f.value=c.value?!0:null),l.onMounted(()=>{if(q&&(K(y),y=!1),c.value&&u){let H=null,J=u.initialHeight;u.observe(C.value,ne=>{if(ne!==f.value)if(ne)f.value=!0,G.value||(Y.value=""),H=setTimeout(()=>{H=null,f.value!==!1&&(K(y),y=!1)},100);else{if(H!==null&&clearTimeout(H),f.value=!1,!G.value)if(y)Y.value=u.initialHeight;else{let $=Hn(C.value);$<=0?Y.value=J:(Y.value=`${$}px`,J=Y.value)}y||P()}})}}),l.onUnmounted(()=>{D?.disconnect(),u&&u.unobserve(C.value)});const M=(H="right")=>{const J=[];if(k.value){const W={class:x.value},ee=l.h("span",W,[k.value]);J.push(ee)}const ne={class:j.value},$=o(n.collapseIcon,ne);return $&&J.push($),J.length>0?l.h("div",{class:{[`${p}__header-collapse`]:!0,[`is-${H}`]:!0},onClick:O},J):null},U=(H,J,ne,$)=>{const W={...g.value};return J===0&&(W[`${p}__first`]=!0),ne>=$-1&&(W[`${p}__last`]=!0),l.h("div",{ref:_,key:`${J}`,class:W,style:T.value},H)};return()=>{if(c.value&&f.value!==!0){const W=n.tag||"div";return l.h(W,{ref:C,prop:n.name,class:{[`${p}`]:!0,"is-collapse":Z.value},style:h.value},[])}i.order.index=0;const H=[];let J=0;if(r.slots.header){const W={key:`${J++}`,ref:I,class:{[`${p}__header`]:!0,[`${p}__first`]:!0},onClick:oe},ee=l.h("div",W,[r.slots.header()]);H.push(ee)}else{const W=[],ee=n.collapsePosition==="left";if(ee&&n.showCollapse){const le=M("left");le&&W.push(le)}if(n.title||r.slots.title){if(n.showMark){const le={class:{[`${p}__header-mark`]:!0}};n.markColor&&(le.style={background:n.markColor});const de=l.h("div",le);W.push(de)}if(r.slots.title){const le=l.h("div",{class:{[`${p}__header-title`]:!0}},[r.slots.title()]);W.push(le)}else if(n.title){const le=l.h("div",{class:{[`${p}__header-title`]:!0}},[n.title]);W.push(le)}}if(r.slots.toolbar&&W.push(r.slots.toolbar()),!ee&&n.showCollapse){const le=M("right");le&&W.push(le)}if(W.length>0){const le={key:`${J++}`,ref:I,class:{[`${p}__header`]:!0,[`${p}__first`]:!0},onClick:oe},de=l.h("div",le,W);H.push(de)}}F();const ne=r.slots.default?r.slots.default():[],$=i.layout.value.type;if($==="grid"){const W=U(ne,J++,0,ne.length);H.push(W)}else if($==="flow"){const W=U(ne,J++,0,ne.length);H.push(W)}else for(let W=0;W<ne.length;W++){const ee=ne[W],le=U([ee],J++,W,ne.length);H.push(le)}if(z.value){const W=n.tag||"div";return l.h(W,{ref:C,prop:n.name,class:{[`${p}`]:!0,"is-collapse":Z.value},style:h.value},[H])}else return H}}}}const{componentName:hi,create:gi,scope:mi}=ie("group"),Kn=gi(di(hi,mi,(e,t)=>(e=e??Ne.ArrowUp,l.h(b.ElIcon,t,{default:()=>[l.h(e)]}))));function pi(e){return e===window}const yi=/matrix\((.+)\)/,Lo=e=>{const t=l.unref(e);if(!t)return{x:0,y:0};if(pi(t))return{x:0,y:0};let o=0,n=0,r=t;for(;r!==null;)o+=r.offsetLeft,n+=r.offsetTop,r=r.offsetParent;let a=0,i=0,s=0,u=0;for(r=t;r!==document;){i+=r.scrollTop,a+=r.scrollLeft;const{transform:f}=window.getComputedStyle(r);if(f){const c=yi.exec(f);if(c){let v=c[1].split(/\s*,\s*/);v.length==6&&(s+=Number(v[4]),u+=Number(v[5]))}}r=r.parentNode}return o-=a,n-=i,o+=s,n+=u,{x:o,y:n}};class bi{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 vi{monitorRegister=new WeakMap;watch(t,o){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a||(a=new bi,n.addEventListener("scroll",a.listen),n===document.body&&n.addEventListener("resize",a.listen),this.monitorRegister.set(n,a)),a.add(o),n=n.parentNode}}unwatch(t,o){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a&&(a.remove(o),a.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",a.listen),n===document.body&&n.removeEventListener("resize",a.listen))),n=n.parentNode}}}const Mo=new vi,Bo={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:wi,create:Si}=ie("price"),xi=Si({props:{...Bo},setup(e){const t=l.computed(()=>({[wi]:!0})),o=l.computed(()=>e.needSymbol?e.symbol:""),n=l.computed(()=>$t(e.price)==0?"":Pt(e.price,e.decimalLength,!0,Se(e.digits),e.separator)),r=l.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),a=l.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:r,decimalText:a}}}),Ti=["innerHTML"],$i=["innerHTML"];function Ci(e,t,o,n,r,a){return l.openBlock(),l.createElementBlock("view",{class:l.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Ti)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--${e.size}`)},l.toDisplayString(e.intText),3),e.decimalText.length!=0?(l.openBlock(),l.createElementBlock("view",{key:1,class:l.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--decimal-${e.size}`)},l.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(l.openBlock(),l.createElementBlock("view",{key:2,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,$i)):l.createCommentVNode("",!0)],2)}const un=je(xi,[["render",Ci]]),{componentName:Wn,create:Ni}=ie("hint-text"),Ei=Ni({components:{Price:un},props:{...Bo,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,t){const o=l.ref({top:null,right:null,bottom:null,left:null}),n=l.ref({x:0,y:0}),r=l.ref(0),a=l.ref(0),i=l.ref(e.placement),s=l.ref(!1),u=l.ref(null),f=(x,j,C,I,R,G)=>{const Y=document.documentElement.clientWidth||document.body.clientWidth,Z=document.documentElement.clientHeight||document.body.clientHeight,X=x.split("-");let te=[];X[0]==="top"?te=["top","bottom","right","left"]:X[0]==="bottom"?te=["bottom","top","right","left"]:X[0]==="left"?te=["left","top","bottom","right"]:X[0]==="right"&&(te=["right","top","bottom","left"]);const oe={top:null,right:null,bottom:null,left:null},O=[];for(let S=0;S<te.length;S++){const A=te[S];if(O[0]=A,X[1]&&(O[1]=X[1]),A==="top"){const D=j.y-G-e.arrowSize-e.offset;if(D>=0){oe.top=D;let y=0;X[1]==="start"?y=j.x:X[1]==="end"?y=j.x+C-R:y=j.x+C/2-R/2;const K=Y-y-R;K<0?(y+=K,d.value=-K):d.value=0,oe.left=y<0?0:y;break}}else if(A==="bottom"){const D=j.y+I+e.arrowSize+e.offset;if(D+G<=Z){oe.top=D;let y=0;X[1]==="start"?y=j.x:X[1]==="end"?y=j.x+C-R:y=j.x+C/2-R/2;const K=Y-y-R;K<0?(y+=K,d.value=-K):d.value=0,oe.left=y<0?0:y;break}}else if(A==="left"){const D=j.x-R-e.arrowSize-e.offset;if(D>=0){oe.left=D;let y=0;X[1]==="start"?y=j.y:X[1]==="end"?y=j.y+I-G:y=j.y+I/2-G/2,oe.top=y<0?0:y;break}}else if(A==="right"){const D=j.x+C+e.arrowSize+e.offset;if(D+R<=Y){oe.left=D;let y=0;X[1]==="start"?y=j.y:X[1]==="end"?y=j.y+I-G:y=j.y+I/2-G/2,oe.top=y<0?0:y;break}}}return{bestPlacement:O.join("-"),bestInsetRect:oe}},c=(x,j,C=10)=>{if(!st||j===!1||!x)return;n.value=Lo(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const I=u.value.offsetHeight,R=u.value.offsetWidth,{bestPlacement:G,bestInsetRect:Y}=f(e.placement,n.value,r.value,a.value,R,I);i.value=G,o.value=Y,s.value=!0},d=l.ref(0),v=kt(()=>{c(e.message,e.visible)},10),V=l.ref(e.visible);l.watch(()=>e.visible,x=>{V.value=x});const p=l.computed(()=>V.value&&h.value),h=l.ref(!0),g=kt(x=>{const j=x[0];j&&(h.value=j.isIntersecting)},10),T=new IntersectionObserver(g);l.watch([()=>e.message,()=>e.visible],([x,j])=>{setTimeout(()=>{c(e.message,e.visible)},0)}),l.onMounted(()=>{setTimeout(()=>{c(e.message,e.visible)},0),Mo.watch(e.reference,v),T.observe(e.reference)}),l.onBeforeMount(()=>{Mo.unwatch(e.reference,v),T.unobserve(e.reference),T.disconnect()});const w=l.computed(()=>{const x={[Wn]:!0};return i.value.startsWith("top")?x["is-top"]=!0:i.value.startsWith("right")?x["is-right"]=!0:i.value.startsWith("bottom")?x["is-bottom"]=!0:i.value.startsWith("right")&&(x["is-right"]=!0),e.size==="small"?x["is-small"]=!0:e.size==="large"&&(x["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(x[`${e.customClass}`]=!0),x}),N=l.computed(()=>{const x={};o.value.top!==null&&(x.top=`${o.value.top}px`),o.value.right!==null&&(x.right=`${o.value.right}px`),o.value.bottom!==null&&(x.bottom=`${o.value.bottom}px`),o.value.left!==null&&(x.left=`${o.value.left}px`),e.autoFit&&(x["min-width"]=`${r.value}px`);const j=document.documentElement.clientWidth||document.body.clientWidth;return x["max-width"]=`${j}px`,s.value&&(x.opacity="1"),e.transition||(x.transition="none"),e.zIndex&&(x["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(x,e.customStyle),x}),z=l.computed(()=>{const x=[`${Wn}__content`];return e.customTextClass&&x.push(e.customTextClass),x}),B=l.computed(()=>{const x={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(x,e.customTextStyle),x}),_=l.computed(()=>({[`${Wn}__arrow`]:!0})),F=l.computed(()=>{const x={};return e.showArrow?(x.width=`${e.arrowSize}px`,x.height=`${e.arrowSize}px`,i.value==="top"?(x.left="50%",x.bottom=`-${e.arrowSize}px`,x.transform=" translate(-50%, 0%)"):i.value==="top-start"?(x.left=`${e.arrowOffset+d.value}px`,x.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(x.right=`${e.arrowOffset-d.value}px`,x.bottom=`-${e.arrowSize}px`):i.value==="right"?(x.left=`-${e.arrowSize}px`,x.top="50%",x.transform=" translate(0%, -50%)"):i.value==="right-start"?(x.left=`-${e.arrowSize}px`,x.top=`${e.arrowOffset}px`):i.value==="right-end"?(x.left=`-${e.arrowSize}px`,x.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(x.left="50%",x.top=`-${e.arrowSize}px`,x.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(x.left=`${e.arrowOffset+d.value}px`,x.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(x.right=`${e.arrowOffset-d.value}px`,x.top=`-${e.arrowSize}px`):i.value==="left"?(x.right=`-${e.arrowSize}px`,x.top="50%",x.transform=" translate(0%, -50%)"):i.value==="left-start"?(x.right=`-${e.arrowSize}px`,x.top=`${e.arrowOffset}px`):i.value==="left-end"&&(x.right=`-${e.arrowSize}px`,x.bottom=`-${e.arrowOffset}px`),x):{display:"none"}}),L=l.computed(()=>p.value&&e.closeOnClick),E=l.computed(()=>{const x={};return e.zIndex&&(x["z-index"]=`${e.zIndex}`),x});return{show:p,tipRef:u,classes:w,styles:N,textClasses:z,textStyles:B,arrowClasses:_,arrowStyles:F,overlayShow:L,overlayStyle:E,onClickOverlay:()=>{V.value=!1,t.emit("update:visible",!1)}}}}),ki=["innerHTML"];function Ii(e,t,o,n,r,a){const i=l.resolveComponent("Price");return l.openBlock(),l.createElementBlock(l.Fragment,null,[e.overlayShow?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:l.normalizeStyle(e.overlayStyle),onClick:t[0]||(t[0]=(...s)=>e.onClickOverlay&&e.onClickOverlay(...s))},null,4)):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",{ref:"tipRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.createElementVNode("div",{class:l.normalizeClass(e.textClasses),style:l.normalizeStyle(e.textStyles)},[e.type=="number"?(l.openBlock(),l.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(l.openBlock(),l.createElementBlock("span",{key:1,innerHTML:e.message},null,8,ki))],6),l.createElementVNode("div",{class:l.normalizeClass(e.arrowClasses),style:l.normalizeStyle(e.arrowStyles)},null,6)],6),[[l.vShow,e.show]])],64)}const Vt=je(Ei,[["render",Ii]]);class _o{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 Yn={},Oi=new _o,yt=new Map,cn=e=>{if(e){const t=document.getElementById(e);yt.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of yt.keys()){const o=document.getElementById(t);o&&o.parentNode?.removeChild(o)}yt.clear()}},Vi=e=>{e.unmount=cn;const t=document.getElementById(e.id);if(t){const o=yt.get(e.id);o?e={...Yn,...o,...e}:e={...Yn,...e},e.transition=!1;const n=l.createVNode(Vt,e);return l.render(n,t),e.id}},Fi=e=>{e.unmount=cn;let t=e.id??`hinttext_${Oi.get()}`;e={...Yn,...e},e.id=t,yt.set(t,e);const o=document.createElement("div");o.id=e.id;const n=l.createVNode(Vt,e);return l.render(n,o),document.body.appendChild(o),t},Di=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Re={show(e,t,o={},n=!0){Di(t);const r=o.id;return r&&yt.has(r)?Vi({...o,message:t,reference:e}):(n&&cn(),Fi({...o,message:t,reference:e}))},hide(e){cn(e)},install(e){e.config.globalProperties.$hintText=Re}};function Ri(e,t,o,n=!1){return{inheritAttrs:!0,props:{...xe,...Oe},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;$e({componentName:e,validate:!1},i);const s=Je(),u=nn();ln(!1);const f=l.computed(()=>u&&s?on(s,!1).value:null),c=e,d=l.ref(null),v=l.computed(()=>{const $={[c]:!0,[`${c}__gutter`]:f.value&&f.value.type!=="flow",[`${c}__stretch`]:r.span==="stretch",[`${c}__input--border`]:se(r.hasBorder)};if($[r.errorMarkClass]=!!G.value,$[r.warnMarkClass]=!!I.value,$[r.infoMarkClass]=!!j.value,typeof d.value=="function"){const W=d.value(i);$[W]=!0}else if(typeof d.value=="string"){const W=d.value;$[W]=!0}return $}),V=l.ref(null),p=l.computed(()=>{const $={};if(r.width)r.width!=="auto"&&($.width=Ie(r.width));else{const W=u&&s?rn(s,!1):null;if(f.value&&W){if(f.value.type==="grid"){const ee=sn(W,f.value,r.span,r.offset);Object.assign($,ee)}else if(f.value.type==="flow"){const ee=an(W,f.value,r.span,r.offset,r.width);Object.assign($,ee)}}}if(typeof V.value=="function"){const W=V.value(i);W&&Object.assign($,W)}else if(V.value&&typeof V.value=="object"){const W=V.value;Object.assign($,W)}return $}),h=l.ref(null),g=l.computed({get:()=>h.value??se(r.isRequired),set:$=>{h.value=$}}),T=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",w=Ve(l.toRef(r,"labelPosition"),"labelPosition",_e.Near),N=l.computed(()=>w&&w.value==="top"?"top":w&&w.value==="right"?"right":"left"),z=l.computed(()=>({[`${c}__main`]:!0,[`${c}__main--${N.value}`]:!0})),B=l.computed(()=>({label:!0,[`label--${N.value}`]:!0})),_=Ve(l.toRef(r,"labelWidth"),"labelWidth",_e.Near),F=l.computed(()=>_&&_.value?{width:Ie(_.value)}:{}),L=l.computed(()=>({"label--string":!0,"label--required":g.value})),E=l.computed(()=>({content:!0,[r.contentClass]:!0})),k=l.computed(()=>({...r.contentStyle})),x=l.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Ce({setRequired($){g.value=$},setErrorTip($){x.errorTip=$},setErrorIcon($){x.errorIcon=$},setWarnTip($){x.warnTip=$},setWarnIcon($){x.warnIcon=$},setInfoTip($){x.infoTip=$},setInfoIcon($){x.infoIcon=$},setCustomClassName($){d.value=$},setCustomStyle($){V.value=$}});const j=l.computed(()=>r.infoTip||x.infoTip),C=l.computed(()=>r.infoIcon||x.infoIcon),I=l.computed(()=>r.warnTip||x.warnTip),R=l.computed(()=>r.warnIcon||x.warnIcon),G=l.computed(()=>r.errorTip||x.errorTip),Y=l.computed(()=>r.errorIcon||x.errorIcon),Z=l.computed(()=>G.value?"error":I.value?"warn":j.value?"info":""),X=()=>Z.value.length>0,te=l.computed(()=>Z.value==="error"?G.value:Z.value==="warn"?I.value:Z.value==="info"?j.value:""),oe=l.computed(()=>Z.value==="error"?Y.value:Z.value==="warn"?R.value:Z.value==="info"?C.value:null),O=l.computed(()=>{const $={[`${c}__tip`]:!0,[`${c}__tip--${Z.value}`]:!0,[`${c}--animate`]:!0};return Z.value==="error"&&r.errorClass?$[`${r.errorClass}`]=!0:Z.value==="warn"&&r.warnClass?$[`${r.warnClass}`]=!0:Z.value==="info"&&r.infoClass&&($[`${r.infoClass}`]=!0),$}),S=l.computed(()=>{const $={};return w&&w.value==="top"||!T()?$["padding-left"]="0px":_&&_.value&&($["padding-left"]=Ie(_.value)),$}),A=l.ref();let D="";l.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([$,W,ee,le])=>{A.value&&($&&!pe(W)?D?o.show(A.value,W,{...le,id:D,type:ee},!0):D=o.show(A.value,W,{...le,type:ee},!0):o.hide(D))});let y=null;const K=()=>{y||!A.value||(y=new IntersectionObserver($=>{let W=!1;for(let ee of $)if(ee.intersectionRatio>0){W=!0,W&&a.emit("appear",ee);break}W||a.emit("disappear")}),y.observe(A.value))},P=()=>{!y||!A.value||(y.unobserve(A.value),y=null)};l.watch(()=>se(r.appearListen),$=>{$?K():P()}),l.onMounted(()=>{se(r.appearListen)&&K()}),l.onUnmounted(P);const q=()=>{if(!T())return null;const $=[],W=a.slots?.label?.()??r.label,ee={class:L.value},le=l.h("div",ee,[W]);if($.push(le),a.slots.fixedPreTip){const fe=a.slots.fixedPreTip();$.push(fe)}const de={class:B.value,style:F.value};return l.h("div",de,$)},M=()=>{const $=[];if(a.slots.prepend){const ee=a.slots.prepend();$.push(ee)}if(a.slots.default){const ee=a.slots.default();$.push(ee)}if(a.slots.append){const ee=a.slots.append();$.push(ee)}if(a.slots.fixedTip){const ee={class:[`${c}__fixed-tip`]},le=l.h("div",ee,[a.slots.fixedTip()]);$.push(le)}const W={ref:A,class:E.value,style:k.value};return l.h("div",W,$)},U=()=>{const $=oe.value;return $?typeof $=="function"?l.h("div",{class:"fox-item__tip--icon"},[$()]):l.h("div",{class:"fox-item__tip--icon"},[l.h($)]):null},H=()=>{const $=te.value;return $?typeof $=="function"?l.h("div",{class:"fox-item__tip--text"},[$()]):l.h("div",{class:"fox-item__tip--text"},[$]):null},J=()=>{if(!X())return null;const $=[],W=U();W&&$.push(W);const ee=H();ee&&$.push(ee);const le={class:O.value,style:S.value};return l.h("div",le,$)},ne=()=>a.slots?.hide?.()??null;return()=>{const $=[],W=[],ee=q();ee&&W.push(ee);const le=M();le&&W.push(le);const de={class:z.value},fe=l.h("div",de,W);$.push(fe);const ve=J();ve&&$.push(ve);const Ue=ne();Ue&&$.push(Ue);const Pe={class:v.value,style:p.value,prop:r.prop};return l.h("div",Pe,$)}}}}const{componentName:Ai,create:Li,scope:Mi}=ie("item"),Te=Li(Ri(Ai,Mi,Re,!1));function Bi(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(o,n){const r=Je(),a=nn();ln(!1);const i=l.computed(()=>a&&r?on(r,!1).value:null),s=e,u=l.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:o.span==="stretch"})),f=l.computed(()=>{const c={},d=a&&r?rn(r,!1):null;if(i.value&&d)if(i.value.type==="grid"){const v=sn(d,i.value,o.span,o.offset);Object.assign(c,v)}else if(i.value.type==="flow"){const v=an(d,i.value,o.span,o.offset,o.width);Object.assign(c,v)}else return o.width&&(c.width=Ie(o.width)),c;else o.width&&(c.width=Ie(o.width));return c});return()=>{const c={class:u.value,style:f.value};return n.slots&&typeof n.slots.default=="function"?l.h("div",c,n.slots.default()):l.h("div",c)}}}}const{componentName:_i,create:qi,scope:Fh}=ie("slot-item"),Gn=qi(Bi(_i));function Pi(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,String],required:!1,default:!1}},setup(o,n){const r=e,a=l.computed(()=>({[r]:!0,[`${r}__stretch`]:o.span==="stretch",[`${r}__${o.align}`]:!0})),i=Je(),s=nn();ln(!1);const u=l.computed(()=>{const f={};if(s&&i){const c=on(i,!1),d=rn(i,!1);if(c.value&&d)if(c.value.type==="grid"){const v=sn(d,c.value,o.span,o.offset);Object.assign(f,v)}else if(c.value.type==="flow"){const v=an(d,c.value,o.span,o.offset,o.width);Object.assign(f,v)}else o.width&&(f.width=Ie(o.width))}else o.width&&(f.width=Ie(o.width));return f});return()=>{const f=[];if(n.slots.default){const d=n.slots.default();if(o.divide)for(let v=0;v<d.length;v++){if(v>0){const V=l.h("div",{class:{[`${r}__divide`]:!0}});f.push(V)}f.push(d[v])}else Reflect.apply([].push,f,d)}const c={class:a.value,style:u.value};return l.h("div",c,f)}}}}const{componentName:ji,create:zi,scope:Dh}=ie("row-item"),Un=zi(Pi(ji)),Ye=(e={})=>{if(!e)return{};const t={};return Reflect.ownKeys(e).forEach(n=>{typeof n=="string"&&n.indexOf("data-fox")!==0&&(t[n]=e[n])}),t},qo={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 Hi(e,t,o){return{props:{...xe,...Oe,...qo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=ge(n,"modelValue",null,s),v=e,V=l.computed(()=>({[v]:!0,[`${v}__disabled`]:a.value,[`${v}__readonly`]:i.value})),p=C=>{d.value=C,s("update:modelValue",C),s("input",C)},h=C=>{s("change",C)};let g=ge(n,"hintText"),T=l.ref(!1);const w=C=>{let R=C.target.value;c.value=!0,pe(g.value)||(T.value=!0),s("focus",R,C)},N=C=>{setTimeout(()=>{T.value&&(T.value=!1),c.value=!1},0);let R=C.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),s("blur",R,C)},z=()=>{s("clear","")},B=l.ref(!1);let _=null;const F=()=>{n.showTooltip&&B.value===!1&&(_&&clearTimeout(_),_=setTimeout(()=>{B.value=!0},150))},L=()=>{_&&(clearTimeout(_),B.value=!1,_=null)},E=l.computed(()=>B.value||T.value),k=l.computed(()=>B.value?d.value:g.value),x=l.computed(()=>$t(n.unit)>0),j=l.ref();return Ce({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()},select:()=>{j?.value.select()}}),()=>{const I={...Ye(r.attrs),ref:j,class:V.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:z,onChange:h,onInput:p,onFocus:w,onBlur:N,onMouseover:F,onMouseleave:L},R={};r.slots.prepend&&(R.prepend=r.slots.prepend),r.slots.append&&(R.append=r.slots.append),r.slots.prefix&&(R.prefix=r.slots.prefix),r.slots.suffix?R.suffix=r.slots.suffix:x.value&&(R.suffix=()=>[n.unit]);const G=[],Y=l.h(b.ElInput,I,R);G.push(Y);const Z={default:()=>G};r.slots.default&&(Z.label=r.slots.default),r.slots.default&&(Z.fixedTip=r.slots.fixedTip);const te={...ke(n,qo),hintText:k.value,hintVisible:E.value,prop:`${n.prop}_item`};return l.h(o,te,Z)}}}}const{componentName:Ki,create:Wi,scope:Yi}=ie("input-item"),Xn=Wi(Hi(Ki,Yi,Te));function lt(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 Po(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function Gi(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Ui=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 r=He(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Xe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Xi(){const e=l.getCurrentInstance();return new Ui(e.proxy)}function jo(e,t,o){const n=lt(e,t),r=lt(e,o);if(n!==r)return!1;const a=Ft(e,t),i=Ft(e,o);return a===i}function zo(e,t,o,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of n){const s=Po(e,i);if(Array.isArray(s)&&s.length>0){const u=zo(e,a,o,s)??[];Reflect.apply([].push,r,u)}else{let u=!1;if(o==="text")u=lt(e,i)===a;else if(o==="item")u=jo(e,i,a);else{let f=Ft(e,i);f==null&&(f=lt(e,i)),u=f===a}if(u){r.push(i);break}}}}),r}function Zi(e){return{text:e,value:e}}const Ho={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],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},appearLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function Ji(e,t,o){return{props:{...xe,...Oe,...Ho},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(null),d=l.ref([]),v=l.computed(()=>d.value?d.value.map(U=>lt(n,U)).join(" "):""),V=(M,U,H,J=!0)=>{const ne=zo(n,M,U,H);if(ne===null){if(d.value===null||d.value.length===0)return;c.value=null,d.value=[],J&&(s("update:modelValue",null),s("update:text",null),s("change",null));return}let $=!0;if(ne.length!==d.value.length)$=!1;else for(let W=0;W<ne.length;W++){const ee=ne[W],le=d.value[W];if(!jo(n,ee,le)){$=!1;break}}if(!$){d.value=ne;let W=[],ee=[],le=[];ne.forEach(Ue=>{const Pe=Ft(n,Ue),dt=lt(n,Ue);W.push(Pe),le.push(dt),n.valueType==="text"?ee.push(dt):n.valueType==="item"?ee.push(Ue):ee.push(Pe)});let de,fe,ve;se(n.multiple)?(c.value=W,de=l.toRaw(ee),fe=le,ve=l.toRaw(ne)):(c.value=W[0]??"",de=l.toRaw(ee[0]??""),fe=le[0]??"",ve=l.toRaw(ne[0])),J&&(s("update:modelValue",de),s("change",de,ve)),s("update:text",fe)}},p=l.ref(null),h=l.ref(null),g=l.computed(()=>h.value??p.value??[]),T=Ve(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,M=>se(M)),w=Xi(),N=async(M,U)=>{if(M){const H=await w.load("select",M,U);if(H.length>0)if(typeof H[0]=="string"){let $=H.map(W=>Zi(W));p.value=$}else p.value=H;else p.value=null}};l.watch([()=>n.source,()=>n.params],([M,U])=>{h.value=null,N(M,U)},{immediate:!T.value});let z=!1;const B=()=>{z||(z=!0,N(n.source,n.params))};l.watch([()=>p.value,()=>n.modelValue],([M,U])=>{if(E()&&se(n.multiple)){Ze(U,c.value)||(c.value=U);return}V(U,n.valueType,g.value,!1),s("setValue",U)});let _=null,F=l.ref(!1);typeof n.remoteMethod=="function"&&(_=async M=>{if(M==null){h.value=null;return}F.value=!0;try{const U=await n.remoteMethod(M);U&&(h.value=U)}catch(U){h.value=null,console.error(U)}F.value=!1});let L=null;typeof n.filterMethod=="function"&&(L=async M=>{if(M==null){h.value=null;return}F.value=!0;try{const U=await n.filterMethod(M,p.value);U&&(h.value=U)}catch(U){h.value=null,console.error(U)}F.value=!1});const E=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",k=l.ref(!1),x=e,j=l.computed(()=>({[x]:!0})),C=M=>{n.allowCreate||E()&&se(n.multiple)?(s("update:modelValue",M),s("change",M),s("update:text",M),c.value=M):V(M,"value",g.value,!0)};let I=ge(n,"hintText"),R=l.ref(!1);const G=M=>{let H=M.target.value;k.value=!0,pe(I.value)||(R.value=!0),s("focus",H,M)},Y=M=>{setTimeout(()=>{R.value&&(R.value=!1),k.value=!1},0);let H=M.target.value;n.maxLength&&H.length>Number(n.maxLength)&&(H=H.slice(0,Number(n.maxLength))),D.value||s("blur",H,M)},Z=()=>{s("clear","")},X=l.ref(!1);let te=null;const oe=()=>{n.showTooltip&&X.value===!1&&(te&&clearTimeout(te),te=setTimeout(()=>{X.value=!0},150))},O=()=>{te&&(clearTimeout(te),X.value=!1,te=null)},S=l.computed(()=>X.value||R.value),A=l.computed(()=>X.value?v.value:I.value),D=l.ref(!1),y=M=>{D.value=M,s("visible-change",M),M||s("selected")},K=M=>{s("remove-tag",M)},P=(M,U)=>{const H=[];return M.forEach((J,ne)=>{const $=Po(n,J);if(Array.isArray($)&&$.length>0){const W=P($,U),ee=lt(n,J),de={key:`${ee}_${ne}`,label:ee};H.push(l.h(b.ElOptionGroup,de,{default:()=>W}))}else{const W=Ft(n,J),ee=lt(n,J),le=Gi(n,J),fe={key:`${W}_${ne}`,label:ee,disabled:le,value:W};if(typeof U=="function")H.push(l.h(b.ElOption,fe,{default:()=>U(J)}));else if(n.optionType==="item"){const ve={class:{"fox-select-item__option-left":!0}},Ue=l.h("span",ve,[W]),Pe={class:{"fox-select-item__option-right":!0}},dt=l.h("span",Pe,[ee]),Hl=l.h("div",{class:{"fox-select-item__option":!0}},[Ue,dt]);H.push(l.h(b.ElOption,fe,{default:()=>Hl}))}else n.optionType==="value"?H.push(l.h(b.ElOption,fe,{default:()=>[W]})):H.push(l.h(b.ElOption,fe))}}),H},q=l.ref();return Ce({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()}}),()=>{const U={...Ye(r.attrs),ref:q,class:j.value,clearable:n.clearable,multiple:n.multiple,placeholder:f.placeholder.value,disabled:a.value||i.value,modelValue:c.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:Z,onChange:C,onFocus:G,onBlur:Y,onVisibleChange:y,onRemoveTag:K};typeof _=="function"&&(U["remote-method"]=_,U.loading=F.value),typeof L=="function"&&(U["filter-method"]=L,U.loading=F.value);const H={};r.slots.prefix&&(H.prefix=r.slots.prefix),r.slots.empty&&(H.empty=r.slots.empty),r.slots.options?H.default=r.slots.options:H.default=()=>P(g.value,r.slots.option);const J=[],ne=l.h(b.ElSelect,U,H);J.push(ne);const $={default:()=>J};r.slots.default&&($.label=r.slots.default),r.slots.fixedTip&&($.fixedTip=r.slots.fixedTip);const ee={...ke(n,Ho),hintText:A.value,hintVisible:S.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:oe,onMouseleave:O};return T.value&&(ee["appear-listen"]=!0,ee.onAppear=B),l.h(o,ee,$)}}}}const{componentName:Qi,create:es,scope:ts}=ie("select-item"),Zn=es(Ji(Qi,ts,Te));var Qe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function et(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ko={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,function(){var o=1e3,n=6e4,r=36e5,a="millisecond",i="second",s="minute",u="hour",f="day",c="week",d="month",v="quarter",V="year",p="date",h="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|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,w={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("_")},N=function(C,I,R){var G=String(C);return!G||G.length>=I?C:""+Array(I+1-G.length).join(R)+C},z={s:N,z:function(C){var I=-C.utcOffset(),R=Math.abs(I),G=Math.floor(R/60),Y=R%60;return(I<=0?"+":"-")+N(G,2,"0")+":"+N(Y,2,"0")},m:function C(I,R){if(I.date()<R.date())return-C(R,I);var G=12*(R.year()-I.year())+(R.month()-I.month()),Y=I.clone().add(G,d),Z=R-Y<0,X=I.clone().add(G+(Z?-1:1),d);return+(-(G+(R-Y)/(Z?Y-X:X-Y))||0)},a:function(C){return C<0?Math.ceil(C)||0:Math.floor(C)},p:function(C){return{M:d,y:V,w:c,d:f,D:p,h:u,m:s,s:i,ms:a,Q:v}[C]||String(C||"").toLowerCase().replace(/s$/,"")},u:function(C){return C===void 0}},B="en",_={};_[B]=w;var F=function(C){return C instanceof x},L=function C(I,R,G){var Y;if(!I)return B;if(typeof I=="string"){var Z=I.toLowerCase();_[Z]&&(Y=Z),R&&(_[Z]=R,Y=Z);var X=I.split("-");if(!Y&&X.length>1)return C(X[0])}else{var te=I.name;_[te]=I,Y=te}return!G&&Y&&(B=Y),Y||!G&&B},E=function(C,I){if(F(C))return C.clone();var R=typeof I=="object"?I:{};return R.date=C,R.args=arguments,new x(R)},k=z;k.l=L,k.i=F,k.w=function(C,I){return E(C,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var x=function(){function C(R){this.$L=L(R.locale,null,!0),this.parse(R)}var I=C.prototype;return I.parse=function(R){this.$d=function(G){var Y=G.date,Z=G.utc;if(Y===null)return new Date(NaN);if(k.u(Y))return new Date;if(Y instanceof Date)return new Date(Y);if(typeof Y=="string"&&!/Z$/i.test(Y)){var X=Y.match(g);if(X){var te=X[2]-1||0,oe=(X[7]||"0").substring(0,3);return Z?new Date(Date.UTC(X[1],te,X[3]||1,X[4]||0,X[5]||0,X[6]||0,oe)):new Date(X[1],te,X[3]||1,X[4]||0,X[5]||0,X[6]||0,oe)}}return new Date(Y)}(R),this.$x=R.x||{},this.init()},I.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},I.$utils=function(){return k},I.isValid=function(){return this.$d.toString()!==h},I.isSame=function(R,G){var Y=E(R);return this.startOf(G)<=Y&&Y<=this.endOf(G)},I.isAfter=function(R,G){return E(R)<this.startOf(G)},I.isBefore=function(R,G){return this.endOf(G)<E(R)},I.$g=function(R,G,Y){return k.u(R)?this[G]:this.set(Y,R)},I.unix=function(){return Math.floor(this.valueOf()/1e3)},I.valueOf=function(){return this.$d.getTime()},I.startOf=function(R,G){var Y=this,Z=!!k.u(G)||G,X=k.p(R),te=function(P,q){var M=k.w(Y.$u?Date.UTC(Y.$y,q,P):new Date(Y.$y,q,P),Y);return Z?M:M.endOf(f)},oe=function(P,q){return k.w(Y.toDate()[P].apply(Y.toDate("s"),(Z?[0,0,0,0]:[23,59,59,999]).slice(q)),Y)},O=this.$W,S=this.$M,A=this.$D,D="set"+(this.$u?"UTC":"");switch(X){case V:return Z?te(1,0):te(31,11);case d:return Z?te(1,S):te(0,S+1);case c:var y=this.$locale().weekStart||0,K=(O<y?O+7:O)-y;return te(Z?A-K:A+(6-K),S);case f:case p:return oe(D+"Hours",0);case u:return oe(D+"Minutes",1);case s:return oe(D+"Seconds",2);case i:return oe(D+"Milliseconds",3);default:return this.clone()}},I.endOf=function(R){return this.startOf(R,!1)},I.$set=function(R,G){var Y,Z=k.p(R),X="set"+(this.$u?"UTC":""),te=(Y={},Y[f]=X+"Date",Y[p]=X+"Date",Y[d]=X+"Month",Y[V]=X+"FullYear",Y[u]=X+"Hours",Y[s]=X+"Minutes",Y[i]=X+"Seconds",Y[a]=X+"Milliseconds",Y)[Z],oe=Z===f?this.$D+(G-this.$W):G;if(Z===d||Z===V){var O=this.clone().set(p,1);O.$d[te](oe),O.init(),this.$d=O.set(p,Math.min(this.$D,O.daysInMonth())).$d}else te&&this.$d[te](oe);return this.init(),this},I.set=function(R,G){return this.clone().$set(R,G)},I.get=function(R){return this[k.p(R)]()},I.add=function(R,G){var Y,Z=this;R=Number(R);var X=k.p(G),te=function(S){var A=E(Z);return k.w(A.date(A.date()+Math.round(S*R)),Z)};if(X===d)return this.set(d,this.$M+R);if(X===V)return this.set(V,this.$y+R);if(X===f)return te(1);if(X===c)return te(7);var oe=(Y={},Y[s]=n,Y[u]=r,Y[i]=o,Y)[X]||1,O=this.$d.getTime()+R*oe;return k.w(O,this)},I.subtract=function(R,G){return this.add(-1*R,G)},I.format=function(R){var G=this,Y=this.$locale();if(!this.isValid())return Y.invalidDate||h;var Z=R||"YYYY-MM-DDTHH:mm:ssZ",X=k.z(this),te=this.$H,oe=this.$m,O=this.$M,S=Y.weekdays,A=Y.months,D=function(q,M,U,H){return q&&(q[M]||q(G,Z))||U[M].slice(0,H)},y=function(q){return k.s(te%12||12,q,"0")},K=Y.meridiem||function(q,M,U){var H=q<12?"AM":"PM";return U?H.toLowerCase():H},P={YY:String(this.$y).slice(-2),YYYY:this.$y,M:O+1,MM:k.s(O+1,2,"0"),MMM:D(Y.monthsShort,O,A,3),MMMM:D(A,O),D:this.$D,DD:k.s(this.$D,2,"0"),d:String(this.$W),dd:D(Y.weekdaysMin,this.$W,S,2),ddd:D(Y.weekdaysShort,this.$W,S,3),dddd:S[this.$W],H:String(te),HH:k.s(te,2,"0"),h:y(1),hh:y(2),a:K(te,oe,!0),A:K(te,oe,!1),m:String(oe),mm:k.s(oe,2,"0"),s:String(this.$s),ss:k.s(this.$s,2,"0"),SSS:k.s(this.$ms,3,"0"),Z:X};return Z.replace(T,function(q,M){return M||P[q]||X.replace(":","")})},I.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},I.diff=function(R,G,Y){var Z,X=k.p(G),te=E(R),oe=(te.utcOffset()-this.utcOffset())*n,O=this-te,S=k.m(this,te);return S=(Z={},Z[V]=S/12,Z[d]=S,Z[v]=S/3,Z[c]=(O-oe)/6048e5,Z[f]=(O-oe)/864e5,Z[u]=O/r,Z[s]=O/n,Z[i]=O/o,Z)[X]||O,Y?S:k.a(S)},I.daysInMonth=function(){return this.endOf(d).$D},I.$locale=function(){return _[this.$L]},I.locale=function(R,G){if(!R)return this.$L;var Y=this.clone(),Z=L(R,G,!0);return Z&&(Y.$L=Z),Y},I.clone=function(){return k.w(this.$d,this)},I.toDate=function(){return new Date(this.valueOf())},I.toJSON=function(){return this.isValid()?this.toISOString():null},I.toISOString=function(){return this.$d.toISOString()},I.toString=function(){return this.$d.toUTCString()},C}(),j=x.prototype;return E.prototype=j,[["$ms",a],["$s",i],["$m",s],["$H",u],["$W",f],["$M",d],["$y",V],["$D",p]].forEach(function(C){j[C[1]]=function(I){return this.$g(I,C[0],C[1])}}),E.extend=function(C,I){return C.$i||(C(I,x,E),C.$i=!0),E},E.locale=L,E.isDayjs=F,E.unix=function(C){return E(1e3*C)},E.en=_[B],E.Ls=_,E.p={},E})})(Ko);var ns=Ko.exports;const Ge=et(ns);var Wo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,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,r=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},u=function(h){return(h=+h)+(h>68?1900:2e3)},f=function(h){return function(g){this[h]=+g}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var T=g.match(/([+-]|\d\d)/g),w=60*T[1]+(+T[2]||0);return w===0?0:T[0]==="+"?-w:w}(h)}],d=function(h){var g=s[h];return g&&(g.indexOf?g:g.s.concat(g.f))},v=function(h,g){var T,w=s.meridiem;if(w){for(var N=1;N<=24;N+=1)if(h.indexOf(w(N,0,g))>-1){T=N>12;break}}else T=h===(g?"pm":"PM");return T},V={A:[i,function(h){this.afternoon=v(h,!1)}],a:[i,function(h){this.afternoon=v(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[r,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[a,f("seconds")],ss:[a,f("seconds")],m:[a,f("minutes")],mm:[a,f("minutes")],H:[a,f("hours")],h:[a,f("hours")],HH:[a,f("hours")],hh:[a,f("hours")],D:[a,f("day")],DD:[r,f("day")],Do:[i,function(h){var g=s.ordinal,T=h.match(/\d+/);if(this.day=T[0],g)for(var w=1;w<=31;w+=1)g(w).replace(/\[|\]/g,"")===h&&(this.day=w)}],M:[a,f("month")],MM:[r,f("month")],MMM:[i,function(h){var g=d("months"),T=(d("monthsShort")||g.map(function(w){return w.slice(0,3)})).indexOf(h)+1;if(T<1)throw new Error;this.month=T%12||T}],MMMM:[i,function(h){var g=d("months").indexOf(h)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,f("year")],YY:[r,function(h){this.year=u(h)}],YYYY:[/\d{4}/,f("year")],Z:c,ZZ:c};function p(h){var g,T;g=h,T=s&&s.formats;for(var w=(h=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(E,k,x){var j=x&&x.toUpperCase();return k||T[x]||o[x]||T[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(C,I,R){return I||R.slice(1)})})).match(n),N=w.length,z=0;z<N;z+=1){var B=w[z],_=V[B],F=_&&_[0],L=_&&_[1];w[z]=L?{regex:F,parser:L}:B.replace(/^\[|\]$/g,"")}return function(E){for(var k={},x=0,j=0;x<N;x+=1){var C=w[x];if(typeof C=="string")j+=C.length;else{var I=C.regex,R=C.parser,G=E.slice(j),Y=I.exec(G)[0];R.call(k,Y),E=E.replace(Y,"")}}return function(Z){var X=Z.afternoon;if(X!==void 0){var te=Z.hours;X?te<12&&(Z.hours+=12):te===12&&(Z.hours=0),delete Z.afternoon}}(k),k}}return function(h,g,T){T.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var w=g.prototype,N=w.parse;w.parse=function(z){var B=z.date,_=z.utc,F=z.args;this.$u=_;var L=F[1];if(typeof L=="string"){var E=F[2]===!0,k=F[3]===!0,x=E||k,j=F[2];k&&(j=F[2]),s=this.$locale(),!E&&j&&(s=T.Ls[j]),this.$d=function(G,Y,Z){try{if(["x","X"].indexOf(Y)>-1)return new Date((Y==="X"?1e3:1)*G);var X=p(Y)(G),te=X.year,oe=X.month,O=X.day,S=X.hours,A=X.minutes,D=X.seconds,y=X.milliseconds,K=X.zone,P=new Date,q=O||(te||oe?1:P.getDate()),M=te||P.getFullYear(),U=0;te&&!oe||(U=oe>0?oe-1:P.getMonth());var H=S||0,J=A||0,ne=D||0,$=y||0;return K?new Date(Date.UTC(M,U,q,H,J,ne,$+60*K.offset*1e3)):Z?new Date(Date.UTC(M,U,q,H,J,ne,$)):new Date(M,U,q,H,J,ne,$)}catch{return new Date("")}}(B,L,_),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),x&&B!=this.format(L)&&(this.$d=new Date("")),s={}}else if(L instanceof Array)for(var C=L.length,I=1;I<=C;I+=1){F[1]=L[I-1];var R=T.apply(this,F);if(R.isValid()){this.$d=R.$d,this.$L=R.$L,this.init();break}I===C&&(this.$d=new Date(""))}else N.call(this,z)}}})})(Wo);var ls=Wo.exports;const os=et(ls);var Yo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,function(){return function(o,n,r){var a=n.prototype,i=a.format;r.en.ordinal=function(s){var u=["th","st","nd","rd"],f=s%100;return"["+s+(u[(f-20)%10]||u[f]||u[0])+"]"},a.format=function(s){var u=this,f=this.$locale();if(!this.isValid())return i.bind(this)(s);var c=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(v){switch(v){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(),v==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),v==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),v==="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 v}});return i.bind(this)(d)}}})})(Yo);var rs=Yo.exports;const as=et(rs);var Go={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,function(){return function(o,n,r){var a=n.prototype,i=function(d){return d&&(d.indexOf?d:d.s)},s=function(d,v,V,p,h){var g=d.name?d:d.$locale(),T=i(g[v]),w=i(g[V]),N=T||w.map(function(B){return B.slice(0,p)});if(!h)return N;var z=g.weekStart;return N.map(function(B,_){return N[(_+(z||0))%7]})},u=function(){return r.Ls[r.locale()]},f=function(d,v){return d.formats[v]||function(V){return V.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(p,h,g){return h||g.slice(1)})}(d.formats[v.toUpperCase()])},c=function(){var d=this;return{months:function(v){return v?v.format("MMMM"):s(d,"months")},monthsShort:function(v){return v?v.format("MMM"):s(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(v){return v?v.format("dddd"):s(d,"weekdays")},weekdaysMin:function(v){return v?v.format("dd"):s(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(v){return v?v.format("ddd"):s(d,"weekdaysShort","weekdays",3)},longDateFormat:function(v){return f(d.$locale(),v)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return c.bind(this)()},r.localeData=function(){var d=u();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(v){return f(d,v)},meridiem:d.meridiem,ordinal:d.ordinal}},r.months=function(){return s(u(),"months")},r.monthsShort=function(){return s(u(),"monthsShort","months",3)},r.weekdays=function(d){return s(u(),"weekdays",null,null,d)},r.weekdaysShort=function(d){return s(u(),"weekdaysShort","weekdays",3,d)},r.weekdaysMin=function(d){return s(u(),"weekdaysMin","weekdays",2,d)}}})})(Go);var is=Go.exports;const ss=et(is);var Uo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,function(){var o="week",n="year";return function(r,a,i){var s=a.prototype;s.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=i(this).startOf(n).add(1,n).date(f),d=i(this).endOf(o);if(c.isBefore(d))return 1}var v=i(this).startOf(n).date(f).startOf(o).subtract(1,"millisecond"),V=this.diff(v,o,!0);return V<0?i(this).startOf("week").week():Math.ceil(V)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(Uo);var us=Uo.exports;const cs=et(us);var Xo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,function(){return function(o,n){n.prototype.weekYear=function(){var r=this.month(),a=this.week(),i=this.year();return a===1&&r===11?i+1:r===0&&a>=52?i-1:i}}})})(Xo);var fs=Xo.exports;const ds=et(fs);var Zo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,function(){return function(o,n,r){n.prototype.dayOfYear=function(a){var i=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return a==null?i:this.add(a-i,"day")}}})})(Zo);var hs=Zo.exports;const gs=et(hs);var Jo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,function(){return function(o,n){n.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})})(Jo);var ms=Jo.exports;const ps=et(ms);var Qo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,function(){return function(o,n){n.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})})(Qo);var ys=Qo.exports;const bs=et(ys);Ge.extend(ss),Ge.extend(as),Ge.extend(os),Ge.extend(cs),Ge.extend(ds),Ge.extend(gs),Ge.extend(ps),Ge.extend(bs);const qe={format(e,t){return Ge(e).format(t)},parser(e,t){return Ge(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,o){const r=new Date(e+"/"+t+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][r]},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),r=this.getNumTwoBit(e.getDate());return[o,n,r].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 r=new Date(Number(e),parseInt(t)-1,Number(o));let a=r.getDay(),i=r.getDate(),s=6-a;return n!==0&&(a=a==0?7:a,s=7-a),Math.ceil((i+s)/7)},getYearWeek:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=new Date(Number(e),0,1),i=Math.round((r.valueOf()-a.valueOf())/864e5);let s=r.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 r=new Date(Number(e),parseInt(t)-1,Number(o)),a=r.getTime();let i=r.getDay();if(n===0){const u=a-i*864e5,f=a+(6-i)*864e5,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}else{i=i==0?7:i;const s=24*60*60*1e3,u=a-(i-1)*s,f=a+(7-i)*s,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]=qe.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=qe.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,o){const n=new Date(new Date(t).setDate(t.getDate()+o)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i},inScope4Month(e,t,o){const n=new Date(new Date(t).setMonth(t.getMonth()+o)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i}},er={type:{type:[String],required:!1},modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},valueFormat:{type:[String],required:!1},format:{type:[String],required:!1,default:"YYYY-MM-DD"},flashFill:{type:[Boolean],required:!1,default:!0},flashFillThreshold:{type:[Function,Number],required:!1,default:8},flashFillFormat:{type:[Function,String],required:!1,default:"YYYYMMDD"}},tr={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTermActionLabel:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1},compatibleLongTermValue:{type:[Date,Number,String,Array],required:!1}};function vs(e,t,o){return{props:{...xe,...Oe,...er,...tr},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=ge(n,"modelValue",null,s),v=l.computed(()=>R.value&&Array.isArray(d.value)&&d.value.length==2?d.value[0]:d.value),V=l.computed(()=>R.value?"longTermKey":"normalKey"),p=q=>{if(R.value&&n.type==="daterange"){const M=[...d.value];M[0]=q,d.value=M}else d.value=q;s("update:modelValue",d.value),s("change",d.value)},h=l.computed(()=>R.value&&n.type==="daterange"?"date":n.type),g=e,T=l.computed(()=>({[`${g}`]:!0,"is-long":R.value,"is-readonly":i.value,"is-disabled":a.value}));let w=ge(n,"hintText"),N=l.ref(!1);const z=q=>{let U=q.target.value;c.value=!0,pe(w.value)||(N.value=!0),s("focus",U,q)},B=q=>{setTimeout(()=>{N.value&&(N.value=!1),c.value=!1},0);let U=q.target.value;n.maxLength&&U.length>Number(n.maxLength)&&(U=U.slice(0,Number(n.maxLength))),s("blur",U,q)},_=()=>{s("clear","")},F=q=>{s("calendar-change",q)},L=(q,M,U)=>{s("panel-change",q,M,U)},E=q=>{s("visible-change",q)},k=Ve(l.computed(()=>n.longTermText),"longTermText",_e.Near),x=Ve(l.computed(()=>n.longTermActionLabel),"longTermActionLabel",_e.Near),j=Ve(l.computed(()=>n.longTermValue),"longTermValue",_e.Near),C=Ve(l.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",_e.Near);let I=null;const R=l.ref(se(n.longTerm)),G=q=>{if(R.value=q,s("update:longTerm",q),q){if(I=d.value,n.type==="daterange"){const M=[];Array.isArray(j.value)?(M[0]=d.value?d.value[0]??j.value[0]:null,M[1]=j.value[1]??j.value[0]):(M[0]=d.value?d.value[0]??j.value:null,M[1]=R.value),M[0]||(M[0]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),M[1]||(M[1]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),d.value=M}else Array.isArray(j.value)?d.value=j.value[1]??j.value[0]:d.value=j.value,d.value||(d.value=n.valueFormat?qe.format(new Date,n.valueFormat):new Date);s("update:modelValue",d.value)}else{if(n.type==="daterange"){const M=[];M[0]=Array.isArray(d.value)?d.value[0]:d.value,Array.isArray(I)?M[1]=I[1]:M[1]=I,M[0]||(M[0]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),M[1]||(M[1]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),d.value=M}else d.value=I;s("update:modelValue",d.value),setTimeout(()=>{K()},100)}},Y=se(n.isLongTerm);if(Y){const q=()=>{if(R.value===!0){if(I=d.value,n.type==="daterange"){const M=[d.value[0]];Array.isArray(j.value)?M[1]=j.value[1]??j.value[0]:M[1]=R.value,M[0]||(M[0]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),M[1]||(M[1]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),d.value=M}else d.value=j.value;s("update:modelValue",d.value)}else Ze(j.value,d.value)&&(R.value=!0)};q(),l.watch([()=>n.longTerm],([M])=>{R.value!==M&&q()}),l.watch([()=>d.value],([M])=>{let U=!1;if(n.type==="daterange"&&Array.isArray(M))try{let H=M[1];if(!H)return;typeof H!="string"&&n.valueFormat&&(H=qe.format(H,n.valueFormat));let J=Array.isArray(j.value)?j.value[1]:j.value;(H===J||Array.isArray(C.value)&&C.value.findIndex($=>H==$)!==-1)&&(U=!0)}catch(H){console.error(H)}R.value!==U&&(R.value=U)},{immediate:!0})}const Z=l.computed(()=>({"fox-date-item__long":!0,"is-active":c.value})),X=l.ref(),te=l.ref(),oe=/^\d+$/,O=(q,M)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(q,M):oe.test(q)&&q.length===n.flashFillThreshold,S=(q,M)=>{let U;if(typeof n.flashFillFormat=="function")U=n.flashFillFormat(q,M);else{const J=n.flashFillFormat??"YYYYMMDD";U=qe.parser(q,J)}const H=n.valueFormat??"YYYY-MM-DD";return qe.format(U,H)},A=q=>q?q.endsWith("range"):!1,D=q=>{if(!q.target)return;const M=q.target.value??"";if(O(M,n.type)){const U=S(M,n.type);if(A(n.type)){const H=Array.isArray(d.value)?[...d.value]:[];H[0]=U,p(H)}else p(U)}},y=q=>{if(!q.target)return;const M=q.target.value??"";if(O(M,n.type)){const U=S(M,n.type);if(A(n.type)){const H=Array.isArray(d.value)?[...d.value]:[];H[1]=U,p(H)}else p(U)}},K=()=>{if(n.flashFill&&X.value&&X.value.$el)if(A(n.type)){const q=X.value.$el.querySelectorAll("input.el-range-input");q[0]&&q[0].addEventListener("input",D),q[1]&&q[1].addEventListener("input",y)}else{const q=X.value.$el.querySelector("input.el-input__inner");q&&q.addEventListener("input",D)}},P=()=>{if(n.flashFill&&X.value&&X.value.$el)if(A(n.type)){const q=X.value.$el.querySelectorAll("input.el-range-input");q[0]&&q[0].removeEventListener("input",D),q[1]&&q[1].removeEventListener("input",y)}else{const q=X.value.$el.querySelector("input.el-input__inner");q&&q.removeEventListener("input",D)}};return l.onMounted(K),l.onBeforeUnmount(P),Ce({focus:()=>{te?.value.focus()},blur:()=>{te?.value.blur()},handleOpen:()=>{te?.value.handleOpen()},handleClose:()=>{te?.value.handleClose()}}),()=>{const M={...r.attrs,key:V.value,type:h.value,ref:te,class:T.value,placeholder:f.placeholder.value,disabled:a.value,readonly:i.value,modelValue:v.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":p,onClear:_,onFocus:z,onBlur:B,onCalendarChange:F,onPanelChange:L,onVisibleChange:E},U={};r.slots["range-separator"]&&(U["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(U.default=r.slots.cell);const H=[],J=l.h(b.ElDatePicker,M,U);H.push(J);const ne={default:()=>H};if(r.slots.default&&(ne.label=r.slots.default),r.slots.fixedTip&&(ne.fixedTip=r.slots.fixedTip),Y){if(R.value){const le=l.h("span",{class:["fox-date-item__long-splitor"]},["-"]),de=l.h("input",{class:["fox-date-item__long-text"],value:k.value,readonly:!0}),fe={class:Z.value},ve=l.h("div",fe,{default:()=>[le,de]});H.push(ve)}if(!i.value&&!a.value){const le={label:x.value||k.value,disabled:i.value||a.value,modelValue:R.value,"onUpdate:modelValue":G},de=l.h(b.ElCheckbox,le),fe=l.h("div",{class:{[`${g}__append`]:!0}},[de]);ne.append=()=>fe}}const W={...ke(n,er,tr),ref:X,class:{[`${g}__wrapper`]:!0,"has-append":Y},hintText:w.value,hintVisible:N.value,prop:`${n.prop}_item`};return l.h(o,W,ne)}}}}const{componentName:ws,create:Ss,scope:xs}=ie("date-item"),Jn=Ss(vs(ws,xs,Te)),nr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Ts(e,t,o){return{props:{...xe,...Oe,...nr},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=ge(n,"modelValue",null,s),v=e,V=l.computed(()=>({[v]:!0})),p=_=>{d.value=_,s("update:modelValue",_),s("change",_)};let h=ge(n,"hintText"),g=l.ref(!1);const T=_=>{let L=_.target.value;c.value=!0,pe(h.value)||(g.value=!0),s("focus",L,_)},w=_=>{setTimeout(()=>{g.value&&(g.value=!1),c.value=!1},0);let L=_.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),s("blur",L,_)},N=()=>{s("clear","")},z=_=>{s("visible-change",_)},B=l.ref();return Ce({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},handleOpen:()=>{B?.value.handleOpen()},handleClose:()=>{B?.value.handleClose()}}),()=>{const F={...r.attrs,ref:B,class:V.value,placeholder:f.placeholder.value,disabled:a.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":p,onClear:N,onFocus:T,onBlur:w,onVisibleChange:z},L={},E=[],k=l.h(b.ElTimePicker,F,L);E.push(k);const x={default:()=>E};r.slots.default&&(x.label=r.slots.default),r.slots.fixedTip&&(x.fixedTip=r.slots.fixedTip);const C={...ke(n,nr),hintText:h.value,hintVisible:g.value,prop:`${n.prop}_item`};return l.h(o,C,x)}}}}const{componentName:$s,create:Cs,scope:Ns}=ie("time-item"),Qn=Cs(Ts($s,Ns,Te)),lr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Es(e,t,o){return{props:{...xe,...Oe,...lr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=ge(n,"modelValue",null,s),v=e,V=l.computed(()=>({[v]:!0})),p=B=>{d.value=B,s("update:modelValue",B),s("change",B)};let h=ge(n,"hintText"),g=l.ref(!1);const T=B=>{let F=B.target.value;c.value=!0,pe(h.value)||(g.value=!0),s("focus",F,B)},w=B=>{setTimeout(()=>{g.value&&(g.value=!1),c.value=!1},0);let F=B.target.value;n.maxLength&&F.length>Number(n.maxLength)&&(F=F.slice(0,Number(n.maxLength))),s("blur",F,B)},N=()=>{s("clear","")},z=l.ref();return Ce({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},handleOpen:()=>{z?.value.handleOpen()},handleClose:()=>{z?.value.handleClose()}}),()=>{const _={...r.attrs,ref:z,class:V.value,placeholder:f.placeholder.value,disabled:a.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":p,onClear:N,onFocus:T,onBlur:w},F={},L=[],E=l.h(b.ElTimeSelect,_,F);L.push(E);const k={default:()=>L};r.slots.default&&(k.label=r.slots.default),r.slots.fixedTip&&(k.fixedTip=r.slots.fixedTip);const j={...ke(n,lr),hintText:h.value,hintVisible:g.value,prop:`${n.prop}_item`};return l.h(o,j,k)}}}}const{componentName:ks,create:Is,scope:Os}=ie("time-select-item"),el=Is(Es(ks,Os,Te));function or(e,t=0){let o=`${e}`,n=o.indexOf(".");if(n==-1)return o;let r=n;for(let a=o.length-1;a>=n;a--)if(o.charAt(a)!="0"){r=a;break}return r-n<t?r=n+t+1:r!=n&&(r+=1),r>o.length?o=o.padEnd(r,"0"):o=o.substring(0,r),o}function rr(e,t,o=20){if(typeof t=="string"&&(t=Se(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=Ql(`${e}`,`${t}`);return or(n)}else{let n=$n(`${e}`,eo(`${t}`),20);return or(n)}}function Vs(e,t=-1,o=!1,n=3,r=","){return Pt(e,t,o,n,r)}function ar(e,t,o,n,r=!0){if(e==="")return"";if(e=to(e),t=Se(t),t==1)return e;if(n)e=rr(e,t),o&&(e=="0"&&r?e=`${e}.`.padEnd(Se(o)+2,"0"):e=$n(e,1,Se(o)));else{let a=-1*t;e=rr(e,a)}return e}function ir(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=se(t.minInclude),r=Cn(e,t.min);if(n&&r==-1||!n&&(r==0||r==-1)){let a="请输入不小于 {0} 的数值";o.message=a.replace("{0}",t.min),o.minValid=!1}}if(t.max!=null){let n=se(t.maxInclude),r=Cn(e,t.max);(n&&r==1||!n&&(r==0||r==1))&&(o.maxValid=!1)}return o}const sr={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 Fs(e,t,o){return{props:{...xe,...Oe,...sr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(!1),f=ge(n,"modelValue",null,s),c=l.ref("");l.watch([()=>f.value,()=>n.rates,()=>n.precision],([C,I,R])=>{if(pe(C)){c.value="";return}const G=ar(C,I,R,!1);c.value!==G&&(c.value=G)},{immediate:!0});const d=l.computed(()=>{let C="";return u.value&&(C=c.value),C}),{t:v}=Be.useFoxI18n(t),V=l.computed(()=>{let C=n.placeholder??"";return!u.value&&!pe(c.value)?C=Vs(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):C=v(["placeholder",C]),C}),p=e,h=l.computed(()=>({[p]:!0,[`${p}__disabled`]:a.value,[`${p}__placeholder`]:c.value.length>0})),g=Ve(l.computed(()=>n.textAlign),"textAlign");l.computed(()=>u.value?{textAlign:"left"}:{textAlign:g.value??"right"});const T=l.ref(""),w=l.computed(()=>{let C=T.value;return pe(C)&&(C=n.errorTip??""),C}),N=l.ref(""),z=l.ref(!1),B=(C,I)=>{if(C=`${C}`,pe(C)){c.value="",f.value="",I.forEach(R=>{s(R,"")}),se(n.showTip)&&z.value&&(z.value=!1);return}if(C.length>=2){let R=C;if(R.charAt(0)=="-"&&(R=R.substring(1)),R.length>=2&&R.charAt(0)=="0"&&R.charAt(1)!="."){l.triggerRef(c);return}}if(C!="-"){if(!co(C)){l.triggerRef(c);return}if(n.integerLength!=-1&&fo(C)>Number(n.integerLength)){l.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&ho(C)>Number(n.decimalLength)){l.triggerRef(c);return}let R=ir(C,n);if(R.maxValid===!1){T.value=R.message,l.triggerRef(c);return}}else if(n.min!=null&&Se(n.min)>=0){l.triggerRef(c);return}N.value=C,se(n.showTip)&&(z.value=C.length>0),c.value=C,f.value=ar(C,n.rates,n.precision,!0),I.forEach(R=>{s(R,f.value)})},_=C=>{B(C,["update:modelValue","input"])},F=C=>{B(C,["update:modelValue","change"])},L=C=>{if(u.value=!0,se(n.showTip)){let I=c.value;pe(I)&&(I=n.hintText),pe(I)||(N.value=I,z.value=!0)}T.value="",s("focus",f.value,C)},E=C=>{if(setTimeout(()=>{u.value=!1,se(n.showTip)&&z.value===!0&&(z.value=!1)},0),!pe(c.value)){let I=ir(c.value,n);if(I.minValid===!1||I.maxValid===!1){T.value=I.message;return}}s("update:modelValue",f.value,C),s("blur",f.value,C)},k=()=>{s("clear","")},x=l.computed(()=>$t(n.unit)>0),j=l.ref();return Ce({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()},select:()=>{j?.value.select()}}),()=>{const I={...Ye(r.attrs),ref:j,class:h.value,type:"digit",maxlength:n.maxLength,placeholder:V.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:k,onInput:_,onChange:F,onFocus:L,onBlur:E},R={};r.slots.prepend&&(R.prepend=r.slots.prepend),r.slots.append&&(R.append=r.slots.append),r.slots.prefix&&(R.prefix=r.slots.prefix),r.slots.suffix?R.suffix=r.slots.suffix:x.value&&(R.suffix=()=>[n.unit]);const G=[],Y=l.h(b.ElInput,I,R);G.push(Y);const Z={default:()=>G};r.slots.default&&(Z.label=r.slots.default),r.slots.fixedTip&&(Z.fixedTip=r.slots.fixedTip);const te={...ke(n,sr),errorTip:w.value,hintText:N.value,hintVisible:z.value,hintType:"number",prop:`${n.prop}_item`};return l.h(o,te,Z)}}}}const{componentName:Ds,create:Rs,scope:As}=ie("money-item"),tl=Rs(Fs(Ds,As,Te)),ur={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 Ls(e,t,o){return{props:{...xe,...Oe,...ur},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=ge(n,"modelValue",null,s),v=e,V=l.computed(()=>({[v]:!0,[`${v}__append`]:_.value})),p=l.computed(()=>({[`${v}__unit`]:!0})),h=L=>{d.value=L,s("update:modelValue",L),s("input",L)},g=L=>{s("change",L)};let T=ge(n,"hintText"),w=l.ref(!1);const N=L=>{let k=L.target.value;c.value=!0,pe(T.value)||(w.value=!0),s("focus",k,L)},z=L=>{setTimeout(()=>{w.value&&(w.value=!1),c.value=!1},0);let k=L.target.value;n.maxLength&&k.length>Number(n.maxLength)&&(k=k.slice(0,Number(n.maxLength))),s("blur",k,L)},B=()=>{s("clear","")},_=l.computed(()=>$t(n.unit)>0),F=l.ref();return Ce({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()}}),()=>{const E={...Ye(r.attrs),ref:F,class:V.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:B,onChange:g,onInput:h,onFocus:N,onBlur:z},k={},x=[],j=l.h(b.ElInputNumber,E,k);x.push(j);const C={default:()=>x};r.slots.default&&(C.label=r.slots.default),r.slots.fixedTip&&(C.fixedTip=r.slots.fixedTip);const R={...ke(n,ur),hintText:T.value,hintVisible:w.value,prop:`${n.prop}_item`};if(r.slots.append)C.append=r.slots.append;else if(_.value){const Y={class:p.value},Z=l.h("div",Y,[n.unit]);C.append=()=>Z}return l.h(o,R,C)}}}}const{componentName:Ms,create:Bs,scope:_s}=ie("input-number-item"),nl=Bs(Ls(Ms,_s,Te));function tt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ct(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function qs(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let Ps=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,r){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n,r);const a=He(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Xe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(o,n,r))}};function js(){const e=l.getCurrentInstance();return new Ps(e.proxy)}function ll(e,t,o){const n=tt(e,t),r=tt(e,o);if(n!==r)return!1;const a=ct(e,t),i=ct(e,o);return a===i}function cr(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];let a=n;for(let i=0;Array.isArray(a)&&i<t.length;i++){const s=t[i];if(Array.isArray(s)){const u=cr(e,s,o,n);r.push(u)}else{let u=!1;for(let f of a){if(o==="text")u=tt(e,f)===s;else if(o==="item")u=ll(e,f,s);else{let c=ct(e,f);c==null&&(c=tt(e,f)),u=c===s}if(u){r.push(f),a=qs(e,f);break}}if(!u)break}}return r}function zs(e){return{text:e,value:e}}const fr={modelValue:{type:[Array,String],required:!1},pathNodes:{type:[Array],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},appearLoad:{type:[Boolean],default:!1},lazy:{type:[Boolean],default:!1},lazyLoad:{type:[Function]},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function Hs(e,t,o){return{props:{...xe,...Oe,...fr},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(null),d=l.ref([]),v=l.computed(()=>d.value?d.value.map(q=>Array.isArray(q)?q.map(U=>tt(n,U)).join(" "):tt(n,q)).join(" "):""),V=(P,q,M,U=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(c.value===P)return;c.value=P;const $=l.toRaw(P);if(U){const W=K?.value.getCheckedNodes();if(W)if(n.multiple){const ee=[];W.forEach(le=>{const fe=(le.pathNodes??[]).map(ve=>ve.data);ee.push(fe)}),s("update:pathNodes",ee)}else{const le=(W[0]?.pathNodes??[]).map(de=>de.data);s("update:pathNodes",le)}s("update:modelValue",$),s("change",$)}return}const H=cr(n,P,q,M);if(H===null){if(d.value.length===0||d.value===null)return;d.value=[],c.value=null,U&&(s("update:pathNodes",[]),s("update:modelValue",null),s("change",null));return}const J=H[H.length-1];if(k.value.checkStrictly!==!0&&J&&!Array.isArray(J)&&Array.isArray(J.children)&&J.children.length>0){const $=[];H.forEach(W=>{const ee=`${tt(n,W)}`;$.push(ee)}),$.length>0&&(L.value=$.join(n.separator))}else L.value=null;let ne=!0;if(H.length!==d.value.length)ne=!1;else for(let $=0;$<H.length;$++){const W=H[$],ee=d.value[$];if(Array.isArray(W)){if(!Array.isArray(ee)||W.length!==ee.length)ne=!1;else for(let le=0;le<W.length;le++)if(!ll(n,W[le],ee[le])){ne=!1;break}}else ll(n,W,ee)||(ne=!1);if(!ne)break}if(!ne){d.value=H;let $=[],W=[];H.forEach(le=>{if(Array.isArray(le)){let de=[],fe=[];for(let ve of le)de.push(ct(n,ve)),n.valueType==="text"?fe.push(tt(n,ve)):n.valueType==="item"?fe.push(ve):fe.push(ct(n,ve));$.push(de),W.push(fe)}else $.push(ct(n,le)),n.valueType==="text"?W.push(tt(n,le)):n.valueType==="item"?W.push(le):W.push(ct(n,le))}),c.value=$;const ee=l.toRaw(W);U&&(s("update:pathNodes",H),s("update:modelValue",ee),s("change",ee))}},p=l.ref([]),h=Ve(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,P=>se(P)),g=js(),T=async(P,q)=>{if(P){const M=await g.load("cascader",P,q);if(M.length>0)if(typeof M[0]=="string"){let J=M.map(ne=>zs(ne));p.value=J}else p.value=M}};l.watch([()=>n.source,()=>n.params],async([P,q])=>{T(P,q)},{immediate:!(h.value||n.lazy)});let w=!1;const N=()=>{w||(w=!0,T(n.source,n.params))};l.watch([()=>p.value,()=>n.modelValue],([P,q])=>{V(q,n.valueType,P,!1),s("setValue",q)}),n.lazy&&V(n.modelValue,"value",[],!1);let z=null,B=l.ref(!1);typeof n.remoteMethod=="function"&&(z=async P=>{if(P!=null){B.value=!0;try{const q=await n.remoteMethod(P);p.value=q}catch(q){console.error(q)}B.value=!1}});const _=l.ref(!1),F=e,L=l.ref(null),E=l.computed(()=>({[F]:!0,"is-incomplete":L.value&&L.value.length>0})),k=l.computed(()=>{let P={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(P.multiple=!0),n.props&&Object.assign(P,n.props),n.lazy&&(P.lazy=!0,typeof n.lazyLoad=="function"?P.lazyLoad=n.lazyLoad:P.lazyLoad=async(q,M)=>{const U=await g.load("cascader",n.source,q,!0);if(q?.config?.checkStrictly!==!0&&Array.isArray(c.value)&&c.value.length===q.level){const H=q.pathLabels??[];let J=[];H.forEach(ne=>{ne&&J.push(ne)}),J.length>0&&(L.value=J.join(n.separator))}else L.value=null;M(U)}),P}),x=P=>{n.allowCreate?(s("update:modelValue",P),s("change",P),c.value=P):V(P,"value",p.value,!0)};let j=ge(n,"hintText"),C=l.ref(!1);const I=P=>{let M=P.target.value;_.value=!0,pe(j.value)||(C.value=!0),s("focus",M,P)},R=P=>{setTimeout(()=>{C.value&&(C.value=!1),_.value=!1},0);let M=P.target.value;n.maxLength&&M.length>Number(n.maxLength)&&(M=M.slice(0,Number(n.maxLength))),S.value||s("blur",M,P)},G=()=>{s("clear","")},Y=l.ref(!1);let Z=null;const X=()=>{n.showTooltip&&Y.value===!1&&(Z&&clearTimeout(Z),Z=setTimeout(()=>{Y.value=!0},150))},te=()=>{Z&&(clearTimeout(Z),Y.value=!1,Z=null)},oe=l.computed(()=>Y.value||C.value),O=l.computed(()=>Y.value?v.value:j.value),S=l.ref(!1),A=P=>{S.value=P,s("visible-change",P),P||s("selected")},D=P=>{s("remove-tag",P)},y=P=>{s("expand-change",P)},K=l.ref();return Ce({focus:()=>{K?.value.focus()},blur:()=>{K?.value.blur()},getCheckedNodes:()=>K?.value.getCheckedNodes()}),()=>{const q={...r.attrs,ref:K,class:E.value,props:k.value,clearable:n.clearable,placeholder:L.value||f.placeholder.value,disabled:a.value||i.value,options:p.value,modelValue:c.value,separator:n.separator,onClear:G,onChange:x,onFocus:I,onBlur:R,onVisibleChange:A,onRemoveTag:D,expandChange:y};typeof z=="function"&&(q["remote-method"]=z,q.loading=B.value);const M={};r.slots.option&&(M.default=r.slots.option),r.slots.empty&&(M.empty=r.slots.empty);const U=[],H=l.h(b.ElCascader,q,M);U.push(H);const J={default:()=>U};r.slots.default&&(J.label=r.slots.default),r.slots.fixedTip&&(J.fixedTip=r.slots.fixedTip);const $={...ke(n,fr),hintText:O.value,hintVisible:oe.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:X,onMouseleave:te};return h.value&&!n.lazy&&($["appear-listen"]=!0,$.onAppear=N),l.h(o,$,J)}}}}const{componentName:Ks,create:Ws,scope:Ys}=ie("cascader-item"),ol=Ws(Hs(Ks,Ys,Te)),dr={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Gs(e,t,o){return{props:{...xe,...Oe,...dr},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=ge(n,"modelValue",null,s),v=e,V=l.computed(()=>({[v]:!0})),p=F=>{d.value=F,s("update:modelValue",F),s("input",F)},h=F=>{s("change",F)},g=F=>{s("select",F)};let T=ge(n,"hintText"),w=l.ref(!1);const N=F=>{let E=F.target.value;c.value=!0,pe(T.value)||(w.value=!0),s("focus",E,F)},z=F=>{setTimeout(()=>{w.value&&(w.value=!1),c.value=!1},0);let E=F.target.value;n.maxLength&&E.length>Number(n.maxLength)&&(E=E.slice(0,Number(n.maxLength))),s("blur",E,F)},B=()=>{s("clear","")},_=l.ref();return Ce({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},select:()=>{_?.value.select()}}),()=>{const L={...r.attrs,ref:_,class:V.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,onClear:B,onChange:h,onInput:p,onFocus:N,onBlur:z,onSelect:g},E={};r.slots.prepend&&(E.prepend=r.slots.prepend),r.slots.append&&(E.append=r.slots.append),r.slots.prefix&&(E.prefix=r.slots.prefix),r.slots.suffix&&(E.suffix=r.slots.suffix),r.slots.option&&(E.default=r.slots.option);const k=[],x=l.h(b.ElAutocomplete,L,E);k.push(x);const j={default:()=>k};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const I={...ke(n,dr),hintText:T.value,hintVisible:w.value,prop:`${n.prop}_item`};return l.h(o,I,j)}}}}const{componentName:Us,create:Xs,scope:Zs}=ie("autocomplete-item"),rl=Xs(Gs(Us,Zs,Te));function Js(e,t,o,n,r){let a=[];Array.isArray(e)?a=e:a=[e];const i=[],s=t[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[r]){let u=t;for(let f=0;u&&f<a.length;f++){let c=a[f],d=u.find(v=>v[n]===c);if(!d)break;i.push(d[o])}return i}if(Array.isArray(s))for(let u=0;u<t.length&&u<a.length;u++){let f=t[u],c=a[u];const d=f.find(v=>v[n]===c);if(!d)break;i.push(d[o])}else{let u=t;for(let f=0;u&&f<a.length;f++){let c=a[f],d=u.find(v=>v[n]===c);if(!d)break;i.push(d[o]),u=d[r]}}return i}let Qs=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 r=He(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Xe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function eu(){const e=l.getCurrentInstance();return new Qs(e.proxy)}const hr={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1},emptyTag:{type:[String],required:!1,default:"span"},emptyClass:{type:[String],required:!1}};function tu(e,t){return{props:{...hr},setup(o,{attrs:n,slots:r}){const a=eu(),i=l.ref([]);l.watch([()=>o.source,()=>o.params],async([f,c])=>{i.value=await a.load(o.sourceType,f,c)},{immediate:!0});const s=l.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let f=Js(o.modelValue,i.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?l.resolveComponent(o.tag):o.tag;return()=>{const f={...n};return r.default?r.default({text:s.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===s.value?l.h(o.emptyTag??"span",{...n,class:o.emptyClass},s.value):l.h(u,f,{default:()=>s.value}):l.h(u,f,s.value)}}}}const{componentName:Rh,create:nu,scope:Ah}=ie("mapping"),Dt=nu(tu());function lu(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let f=a.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=a.substring(0,s);n=n[d][c]}else n=n[c];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function ou(e,t){return{props:{...hr},setup(o,{attrs:n,slots:r}){return()=>{const a={default:i=>{const s=lu(i.row,i.column.property);return r.default?l.h(Dt,{...o,modelValue:s},{default:r.default}):l.h(Dt,{...o,modelValue:s})}};for(let i in r)i!=="default"&&(a[i]=r[i]);return l.h(b.ElTableColumn,{...n},a)}}}}const{componentName:Lh,create:ru,scope:Mh}=ie("table-mapping-column"),al=ru(ou()),au=Symbol.for("TableStateKey");function gr(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let f=a.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=a.substring(0,s);n=n[d][c]}else n=n[c];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function iu(e,t){return{props:{},setup(o,{attrs:n}){const r=l.inject(au,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:s=>{const u=gr(s.row,s.column.property),f=a?gr(a,s.column.property):null,c=u===f,d={class:{"el-radio__input":!0,"is-checked":c}},v=l.h("span",d,[l.h("span",{class:{"el-radio__inner":!0}})]),V={class:{"el-radio":!0,"is-checked":c}};return l.h("label",V,[v])}};return l.h(b.ElTableColumn,{...n},i)}}}}const{componentName:Bh,create:su,scope:_h}=ie("table-radio-column"),il=su(iu()),uu={},cu={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"},fu=[l.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 du(e,t){return l.openBlock(),l.createElementBlock("svg",cu,fu)}const hu=je(uu,[["render",du]]),{componentName:Ph,create:gu,scope:jh}=ie("table-setting"),mu={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:"不固定"}},pu=gu({components:{FoxPopover:b.ElPopover,FoxCheckbox:b.ElCheckbox,FoxCheckboxGroup:b.ElCheckboxGroup,FoxButton:b.ElButton,FoxIcon:b.ElIcon,DragIcon:hu,Download:Ne.Download,RefreshLeft:Ne.RefreshLeft},props:{...mu},setup(e,{emit:t,attrs:o}){let n=[];const r=l.ref([]),a=l.computed(()=>r.value.filter(y=>y.label===""||y.type?!1:y.fixed===""||y.fixed===!0||y.fixed==="left")),i=l.computed(()=>r.value.filter(y=>y.label===""||y.type?!1:y.fixed==="right")),s=l.computed(()=>r.value.filter(y=>!(y.label===""||y.type||y.fixed!==void 0))),u=l.computed(()=>(a.value.length>0||i.value.length>0)&&s.value.length>0),f=l.computed(()=>a.value.length>0),c=l.computed(()=>i.value.length>0),d=y=>y.length>1,v=(y,K)=>{Array.isArray(y)&&Array.isArray(K)&&y.forEach(M=>{K.some(U=>U.prop===M.prop?(M.label=U.label,!0):!1)});const P=[];r.value=y.map((M,U)=>(!(M.label===""||M.type)&&M.visible!==!1&&P.push(M.prop),{...M,sortIndex:U})),s.value.length+a.value.length+i.value.length===P.length?w.value=!0:P.length>0&&(N.value=!0),_.value=P},V=y=>y?y.type?y.type:y.label?y.prop:"":"",p=(y,K)=>{if(y.length!==K.length)return!1;const P=y.map(q=>V(q));for(let q of K){const M=V(q);if(P.indexOf(M)===-1)return!1}return!0},h=y=>{if(!y){const K=e.tableRef.getColumnSetting(),P=K.srcColumnPropertyList;n=P.map((q,M)=>({...q,sortIndex:M})),y=K.columnPropertyList,y&&y.length>0&&p(P,y)||(y=P)}v(y,n)},g=()=>{e.tableRef.setColumnSetting(r.value)},T=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),w=l.ref(!1),N=l.ref(!1),z=y=>{const K=[];r.value.forEach(q=>{y&&!(q.label===""||q.type)&&K.push(q.prop),q.visible=y}),w.value=!1,N.value=!1,s.value.length+a.value.length+i.value.length===K.length?w.value=!0:K.length>0&&(N.value=!0),_.value=K,g()},B=()=>{h(n),g()},_=l.ref([]),F=y=>{r.value.forEach(P=>{if(P.label===""||P.type)return;const q=y.indexOf(P.prop)!==-1;P.visible=q}),w.value=!1,N.value=!1;const K=s.value.length+a.value.length+i.value.length;y.length===K?w.value=!0:y.length>0&&(N.value=!0),g()},L=()=>{h()};l.onMounted(()=>{setTimeout(()=>{h()},50)});const E={currentRow:null,index:null,roleType:null},k=y=>y?y.dataset&&y.dataset.role==="row"?y:y.tagName.toLowerCase()!=="body"?(y=y.parentElement,k(y)):null:null,x=y=>{const K=y.currentTarget;K&&K.dataset&&(E.roleType=K.dataset.roleType,E.index=K.dataset.index)},j=y=>{E.currentRow&&(E.currentRow.classList.remove("is-dragover"),E.currentRow=null),E.index=null,E.roleType=null},C=y=>{const K=y.currentTarget;y.relatedTarget;const P=k(K);if(!P)return;const q=P.dataset&&P.dataset.roleType;E.roleType===q&&(y.preventDefault(),E.currentRow&&E.currentRow!==P&&E.currentRow.classList.remove("is-dragover"),P.classList.add("is-dragover"),E.currentRow=P)},I=y=>{y.preventDefault(),E.currentRow&&(E.currentRow.classList.remove("is-dragover"),E.currentRow=null)},R=y=>{const K=y.currentTarget,P=k(K);if(!P)return;const q=P.dataset&&P.dataset.roleType;if(E.roleType!==q)return;y.preventDefault();const M=Number(E.index),U=Number(P.dataset.index);if(M!==U){if(M<U){const H=r.value[M];r.value.splice(M,1),r.value.splice(U,0,H)}else{const H=r.value[M];r.value.splice(M,1),r.value.splice(U+1,0,H)}v(r.value,n),g()}},G=y=>{const K=r.value[y];K.fixed="left",g()},Y=y=>{const K=r.value[y];K.fixed="right",g()},Z=y=>{const K=r.value[y];K.fixed=void 0,g()},X=new Map;let te=null;function oe(y){const K=document.createRange();return K.setStart(y,0),K.setEnd(y,y.childNodes.length),K.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:u,isShowLeftFixedTitle:f,isShowRightFixedTitle:c,isDraggble:d,isCheckAll:w,isIndeterminate:N,handleCheckAllChange:z,handleReset:B,checkedValue:_,handleCheckChange:F,onShow:L,onDragStart:x,onDragEnd:j,onDragOver:C,onDragLeave:I,onDrop:R,toLeftFixed:G,toRightFixed:Y,toUnFixed:Z,checkboxLabelStyle:T,onMouseOverForOverflowText:(y,K,P)=>{const q=y.currentTarget;if(q){const M=Math.floor(q.offsetWidth);if(Math.floor(oe(q))>M){let H=X.get(K);if(H){if(H===te)return;Re.hide(H)}H=Re.show(q,P,{type:"text",placement:"top",closeOnClick:!1}),X.set(K,H),te=H}}},onMouseLeaveForOverflowText:(y,K)=>{const P=X.get(K);P&&(Re.hide(P),P===te&&(te=null))},onMouseOverForTip:(y,K)=>{const P=y.currentTarget;P&&(te&&Re.hide(te),te=Re.show(P,K,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:y=>{te&&(Re.hide(te),te=null)}}}}),yu={class:"fox-table-setting"},bu={class:"fox-table-setting__header"},vu={class:"fox-table-setting__body"},wu={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Su={key:0,class:"fox-table-setting__body-title"},xu=["data-index","draggable"],Tu=["onMouseover","onMouseleave"],$u={class:"tools-item"},Cu={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},Nu={key:0,class:"fox-table-setting__body-title"},Eu=["data-index","draggable"],ku=["onMouseover","onMouseleave"],Iu={class:"tools-item"},Ou={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Vu={key:0,class:"fox-table-setting__body-title"},Fu=["data-index","draggable"],Du=["onMouseover","onMouseleave"],Ru={class:"tools-item"};function Au(e,t,o,n,r,a){const i=l.resolveComponent("FoxCheckbox"),s=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),f=l.resolveComponent("RefreshLeft"),c=l.resolveComponent("FoxIcon"),d=l.resolveComponent("Download"),v=l.resolveComponent("fox-checkbox"),V=l.resolveComponent("FoxCheckboxGroup"),p=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(p,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",yu,[l.createElementVNode("div",bu,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=h=>e.isCheckAll=h),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",vu,[l.createVNode(V,{modelValue:e.checkedValue,"onUpdate:modelValue":t[28]||(t[28]=h=>e.checkedValue=h),onChange:e.handleCheckChange},{default:l.withCtx(()=>[e.leftFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",wu,[e.isShowLeftFixedTitle?(l.openBlock(),l.createElementBlock("div",Su,l.toDisplayString(e.leftFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.leftFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[5]||(t[5]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[6]||(t[6]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[7]||(t[7]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[8]||(t[8]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[9]||(t[9]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.leftFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,h.prop,h.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Tu)]),_:2},1032,["label"]),l.createElementVNode("div",$u,[l.createVNode(c,{onClick:g=>e.toUnFixed(h.sortIndex),onMouseover:t[1]||(t[1]=g=>e.onMouseOverForTip(g,e.unFixedText)),onMouseleave:t[2]||(t[2]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(f)]),_:2},1032,["onClick"]),l.createVNode(c,{onClick:g=>e.toRightFixed(h.sortIndex),onMouseover:t[3]||(t[3]=g=>e.onMouseOverForTip(g,e.fixedRightText)),onMouseleave:t[4]||(t[4]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,xu))),128))])):l.createCommentVNode("",!0),e.unFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Cu,[e.isShowNotFixedTitle?(l.openBlock(),l.createElementBlock("div",Nu,l.toDisplayString(e.unFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.unFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[14]||(t[14]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[15]||(t[15]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[16]||(t[16]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[17]||(t[17]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[18]||(t[18]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.unFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,h.prop,h.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,ku)]),_:2},1032,["label"]),l.createElementVNode("div",Iu,[l.createVNode(c,{onClick:g=>e.toLeftFixed(h.sortIndex),onMouseover:t[10]||(t[10]=g=>e.onMouseOverForTip(g,e.fixedLeftText)),onMouseleave:t[11]||(t[11]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"]),l.createVNode(c,{onClick:g=>e.toRightFixed(h.sortIndex),onMouseover:t[12]||(t[12]=g=>e.onMouseOverForTip(g,e.fixedRightText)),onMouseleave:t[13]||(t[13]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Eu))),128))])):l.createCommentVNode("",!0),e.rightFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Ou,[e.isShowRightFixedTitle?(l.openBlock(),l.createElementBlock("div",Vu,l.toDisplayString(e.rightFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.rightFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[23]||(t[23]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[24]||(t[24]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[25]||(t[25]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[26]||(t[26]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[27]||(t[27]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.rightFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(v,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,h.prop,h.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Du)]),_:2},1032,["label"]),l.createElementVNode("div",Ru,[l.createVNode(c,{onClick:g=>e.toUnFixed(h.sortIndex),onMouseover:t[19]||(t[19]=g=>e.onMouseOverForTip(g,e.unFixedText)),onMouseleave:t[20]||(t[20]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(f)]),_:2},1032,["onClick"]),l.createVNode(c,{onClick:g=>e.toLeftFixed(h.sortIndex),onMouseover:t[21]||(t[21]=g=>e.onMouseOverForTip(g,e.fixedLeftText)),onMouseleave:t[22]||(t[22]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Fu))),128))])):l.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const fn=je(pu,[["render",Au]]);let Lu=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,r,a,i,s){if(Array.isArray(o)){let f=(n-1)*r,c=f+r;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,r,a,i,s]);const u=He(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(Xe(a)&&l.isReactive(a)&&(a=l.toRaw(a)),await Reflect.apply(u,null,[o,n,r,a,i,s]))}};function Mu(){const e=l.getCurrentInstance();return new Lu(e.proxy)}class Bu{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const n=He(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=He(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=He(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function mr(){const e=l.getCurrentInstance();return new Bu(e.proxy)}const _u=Symbol.for("TableStateKey"),pr={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},appearLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]},cellClassName:{type:Function},rowClickSelectable:{type:[String,Boolean],required:!1,default:!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:!1},showSetting:{type:[Boolean],required:!1,default:!1},footerAlign:{type:[String],required:!1,default:"right"}},yr={pageIndex:{type:[Number],required:!1,default:1},pageSize:{type:[Number],required:!1,default:10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:"right"},paginationBackground:{type:[Boolean],required:!1,default:!1},paginationSmall:{type:[Boolean],required:!1,default:!0},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},sl={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:"不固定"}},qu={infiniteLoad:{type:Boolean,default:!1},loadText:{type:String,default:"加载中..."},loadMoreText:{type:String,default:"无更多数据"}};function Pu(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let f=a.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=a.substring(0,s);n=n[d][c]}else n=n[c];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function ul(e,t){return e.filter(n=>{for(let r in t){const a=t[r],i=Pu(n,r);if(a!==i)return!1}return!0})}function ju(e,t,o){return{inheritAttrs:!1,props:{...xe,...Oe,...pr,...yr,...sl,...qu},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,r){const{locale:a}=Be.useFoxI18n(t),{emitEvent:i,broadcast:s}=$e({componentName:e,validateHandler:{getValue(...Q){return F.value}}},n.prop??r.attrs.name),u=e,f=l.computed(()=>({[u]:!0})),c=l.computed(()=>({[`${u}__setting`]:!0})),d=l.computed(()=>({[`${u}__footer`]:!0,[`${u}__footer__${n.footerAlign}`]:!0})),v=l.computed(()=>({[`${u}__pagination`]:!0,[`${u}__pagination__${n.paginationAlign}`]:!0})),V=l.shallowRef({}),p=l.computed(()=>({...V.value,...n.params??{},...n.baseParams??{}})),h=l.ref(n.infiniteLoad===!0?0:n.pageIndex),g=l.ref(n.pageSize),T=se(n.infiniteLoad);T||(l.watch(()=>n.pageIndex,Q=>{h.value=Q}),l.watch(()=>n.pageSize,Q=>{g.value=Q}),l.watch([h,g],([Q,re],[ae,ue])=>{re!==ue&&(h.value=1,Q=1),x(n.data,Q,re,p.value)}));const w=()=>Array.isArray(n.data)?!0:se(n.autoLoad);w()&&l.watch([()=>n.data,p],async([Q,re],[ae,ue])=>{w()&&(Q!==ae&&(E=!0),!(!Array.isArray(Q)&&Ze(Q,ae)&&Ze(re,ue))&&(T?(h.value=0,B.value=!0,F.value=[],C()):h.value===1?x(Q,h.value,g.value,re):h.value=1))},{deep:!0});const N=Q=>{h.value=Q,i("page-index-change",Q)},z=Q=>{g.value=Q,i("page-size-change",Q)},B=l.ref(!0),_=l.ref(0),F=l.ref(),L=Mu();let E=!0;const k=Ve(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,Q=>se(Q)),x=async(Q,re,ae,ue,Le)=>{E=!1;try{if(Le===!0){if(!B.value)return!1;const me=await L.load("table",Q,re,ae,ue,E,a.value);return _.value=me.totalSize,!me.page||!Array.isArray(me.page)||(Reflect.apply([].push,F.value,me.page),setTimeout(()=>{i("loaded-data")},250),(F.value?.length??0)>=_.value)||me.page.length<ae?(B.value=!1,!1):!0}else{const me=await L.load("table",Q,re,ae,ue,E,a.value);return _.value=me.totalSize,F.value=me.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(me){console.error("[FoxUI] Load Table Data Fail",me),_.value=0,F.value=[]}return!1};let j=!1;const C=async()=>{if(!j){if(j=!0,!B.value){j=!1;return}h.value+=1,await x(n.data,h.value,g.value,p.value,!0),j=!1}},I=(Q={},re=!1)=>new Promise(async ae=>{V.value={...l.toRaw(Q??{})},re||(h.value=n.pageIndex??1),T===!0?(h.value=0,F.value=[],B.value=!0,await C()):await x(n.data,h.value,g.value,p.value),ae()}),R=()=>{_.value=0,F.value=[],T===!0&&(h.value=0,B.value=!0)};let G=!1;const Y=()=>{G||(G=!0,I())},Z=l.ref(null);if(T===!0){let Q=null;const re=()=>{Z.value&&(Q=new IntersectionObserver(ue=>{let Le=!1;for(let me of ue)if(me.intersectionRatio>0){Le=!0;break}Le&&C()}),Q.observe(Z.value))},ae=()=>{!Q||!Z.value||(Q.unobserve(Z.value),Q=null)};l.onMounted(re),l.onBeforeUnmount(ae)}w()&&!k.value&&I();const X=l.ref(null);l.provide(_u,{currentRow:X});const te=(Q,re)=>{X.value=Q,i("current-change",Q,re)},oe=(Q,re,ae)=>{i("row-click",Q,re,ae),se(n.rowClickSelectable)===!0&&we?.value.toggleRowSelection(Q)},O=[],S=(Q,re)=>{if(i("expand-change",Q,re),se(n.uniqueExpansion))if(Array.isArray(re)&&re.length==0){const ae=O.length;O.splice(0,ae)}else{O.forEach(ue=>{ue!==Q&&we?.value.toggleRowExpansion(ue,!1)});const ae=O.length;O.splice(0,ae,Q)}setTimeout(fe,0)},A=r.attrs.id??n.prop??r.attrs.name,D=mr(),y=l.ref([]);let K=[];const P=()=>({srcColumnPropertyList:K.map(re=>({...re})),columnPropertyList:y.value}),q=Q=>{y.value=[...Q],U()},M=async()=>{const Q=await D.load(A);Q&&(y.value=Q)},U=()=>{D.save(A,y.value)},H=()=>{D.remove(A)};M();const J=Q=>Q?Q.type?Q.type:Q.label?Q.prop:"":"",ne=()=>typeof r.slots.default=="function"?r.slots.default():[],$=(Q,re)=>{for(let ae in re){const ue=re[ae];typeof ue!="function"&&(Q[ae]=ue)}},W=l.computed(()=>{const Q=ne(),re=new Map;if(K=[],Q.forEach(ae=>{const ue=ae;if(!ue.props)return;const Le=J(ue.props);re.set(Le,ae);const me={label:"",prop:""};$(me,ue.props),K.push(me)}),y.value.length===K.length){const ae=[];for(let ue of y.value){const Le=J(ue),me=re.get(Le);if(!me)return Q;if(ue.visible===!1)continue;const rt=me;rt.props.fixed=ue.fixed,ae.push(rt)}return ae}return Q}),ee=l.shallowRef(new Map),le=({row:Q,column:re,rowIndex:ae,columnIndex:ue})=>{const Le=`${ae}_${re.property}`,me=`${ae}_${ue}`;let rt=ee.value.get(Le);return rt||(rt=ee.value.get(me)),rt??""},de=Q=>typeof Q=="function"?re=>{const ae=[];let ue=le(re);return ue&&ae.push(ue),ue=Q(re),ue&&ae.push(ue),ae.length===0?"":ae.join(" ")}:le,fe=()=>{ee.value.entries().forEach(([Q,re])=>{const ae=`${Q}_item`;s.emitToChildren({name:ae},"setCustomClassName",re)})},ve=(Q,re,ae)=>{const ue=`${Q}_${re}`;ae?ee.value.set(ue,ae):ee.value.delete(ue),l.triggerRef(ee)},Ue=()=>{ee.value.clear(),l.triggerRef(ee)},Pe=l.shallowRef(new Map),dt=({rowIndex:Q})=>{const re=`${Q}`;return Pe.value.get(re)??""},Hl=Q=>typeof Q=="function"?re=>{const ae=[];let ue=dt(re);return ue&&ae.push(ue),ue=Q(re),ue&&ae.push(ue),ae.length===0?"":ae.join(" ")}:dt,Ch=(Q,re)=>{const ae=`${Q}`;re?Pe.value.set(ae,re):Pe.value.delete(ae),l.triggerRef(Pe)},Nh=()=>{Pe.value.clear(),l.triggerRef(Pe)},we=l.ref();return Ce({clearSelection:()=>we?.value.clearSelection(),getSelectionRows:()=>we?.value.getSelectionRows(),toggleRowSelection:(Q,re)=>{we?.value.toggleRowSelection(Q,re)},toggleRowSelectionByProp:(Q,re)=>{if(!F.value)return;const ae=ul(F.value,Q);ae.length!==0&&ae.forEach(ue=>{we?.value.toggleRowSelection(ue,re)})},toggleAllSelection:()=>{we?.value.toggleAllSelection()},toggleRowExpansion:(Q,re)=>{we?.value.toggleRowExpansion(Q,re)},toggleRowExpansionByProp:(Q,re)=>{if(!F.value)return;const ae=ul(F.value,Q);ae.length!==0&&ae.forEach(ue=>{we?.value.toggleRowExpansion(ue,re)})},setCurrentRow:Q=>{we?.value.setCurrentRow(Q)},setCurrentRowByProp:Q=>{if(!F.value)return;const re=ul(F.value,Q);re.length!==0&&we?.value.setCurrentRow(re[0])},getCurrentRow:()=>X.value,clearSort:()=>{we?.value.clearSort()},clearFilter:Q=>{we?.value.clearFilter(Q)},doLayout:()=>{we?.value.doLayout()},sort:(Q,re)=>{we?.value.sort(Q,re)},scrollTo:(Q,re)=>{we?.value.scrollTo(Q,re)},setScrollTop:Q=>{we?.value.setScrollTop(Q)},setScrollLeft:Q=>{we?.value.setScrollLeft(Q)},loadData:I,clearData:R,getData(){return F.value},getTotalSize(){return _.value},getPageIndex(){return h.value},getPageSize(){return g.value},getColumnSetting:P,setColumnSetting:q,removeColumnSetting:H,setCellClassName:ve,clearCellClassName:Ue,setRowClassName:Ch,clearRowClassName:Nh}),()=>{const re={...Ye(r.attrs),onCurrentChange:te,onRowClick:oe,onExpandChange:S,data:F.value,ref:we,class:f.value,"cell-class-name":de(n.cellClassName),"row-class-name":Hl(n.rowClassName)},ae={};if(r.slots.default&&(ae.default=()=>W.value),r.slots.append&&(ae.append=r.slots.append),r.slots.empty&&(ae.empty=r.slots.empty),T===!0){const Ke=[];if(B.value){const Bt=l.h(Ne.Loading,{class:`${u}__infinite-icon`});Ke.push(Bt);const Wl=l.h("span",{class:`${u}__infinite-text`},[n.loadText]);Ke.push(Wl)}else{const Bt=l.h("span",{class:`${u}__infinite-text`},[n.loadMoreText]);Ke.push(Bt)}const ht={ref:Z,class:`${u}__infinite`},Kl=l.h("div",ht,Ke);ae.append=()=>Kl}const ue=l.h(b.ElTable,re,ae),Le=[];if(Le.push(ue),!T){let Ke=null;if(typeof r.slots.pagination=="function")Ke=r.slots.pagination();else if(n.showPagination){const ht={class:v.value,total:_.value,pageSize:g.value,"onUpdate:pageSize":z,pageSizes:n.pageSizes,currentPage:h.value,"onUpdate:currentPage":N,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,samll:n.paginationSmall,background:n.paginationBackground};Ke=l.h(b.ElPagination,ht)}if(n.showSetting){const ht=[];Ke&&ht.push(Ke);const Kl=l.h(b.ElIcon,{class:c.value},{default:()=>l.h(Ne.Setting)}),Bt=mo(n,sl),Wl=l.h(fn,{...Bt,tableRef:{getColumnSetting:P,setColumnSetting:q,removeColumnSetting:H}},{default:()=>Kl});ht.push(Wl);const Eh=l.h("div",{class:d.value},ht);Le.push(Eh)}else Ke&&Le.push(Ke)}const me={default:()=>Le},Mt={...ke(n,pr,yr,sl),prop:`${n.prop}_item`};return Mt.contentClass=`${u}__wrap`,Mt.errorMarkClass="is-table-error",k.value&&w()&&(Mt["appear-listen"]=!0,Mt.onAppear=Y),l.h(o,Mt,me)}}}}const{componentName:zu,create:Hu,scope:Ku}=ie("table-item"),cl=Hu(ju(zu,Ku,Te));function bt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Rt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Wu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Yu=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 r=He(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Xe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Gu(){const e=l.getCurrentInstance();return new Yu(e.proxy)}function br(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=bt(e,t),r=bt(e,o);if(n!==r)return!1;const a=Rt(e,t),i=Rt(e,o);return a===i}function Uu(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;let r=null;for(let a of n){let i=!1;if(o==="text")i=bt(e,a)===t;else if(o==="item")i=br(e,a,t);else{let s=Rt(e,a);s==null&&(s=bt(e,a)),i=s===t}if(i){r=a;break}}return r}function Xu(e){return{text:e,value:e}}function Zu(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const vr={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"},appearLoad:{type:[Boolean,String],default:!1}};function Ju(e,t,o){return{inheritAttrs:!0,props:{...xe,...Oe,...vr},emits:["change","update:modelValue","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(null),f=l.ref(null),c=(F,L,E,k=!0)=>{const x=Uu(n,F,L,E);if(x===null){if(f.value===null)return;f.value=null,u.value=null,k&&(s("update:modelValue",null),s("change",null));return}if(!br(n,x,f.value)){u.value=F;const C=l.toRaw(x);f.value=C;let I=null;n.valueType==="text"?I=bt(n,C):n.valueType==="item"?I=C:I=Rt(n,C),k&&(s("update:modelValue",I),s("change",I))}},d=l.ref([]),v=Ve(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,F=>se(F)),V=Gu(),p=async(F,L)=>{if(F){const E=await V.load("radio",F,L);if(E.length>0)if(typeof E[0]=="string"){let j=E.map(C=>Xu(C));d.value=j}else d.value=E}};l.watch([()=>n.source,()=>n.params],async([F,L])=>{p(F,L)},{immediate:!v.value});let h=!1;const g=()=>{h||(h=!0,p(n.source,n.params))};l.watch([()=>d.value,()=>n.modelValue],([F,L])=>{c(L,n.valueType,F,!1),s("setValue",L)});const T=e,w=l.computed(()=>({[T]:!0,[`is-${n.direction}`]:!0})),N=F=>{c(F,"value",d.value,!0)};let z=ge(n,"hintText"),B=ge(n,"hintVisible");const _=(F,L)=>{const E=[];return F.forEach((k,x)=>{const j=Rt(n,k),C=bt(n,k);let I=Wu(n,k);a.value===!0&&(I=a.value),i.value===!0&&(I=i.value);const R=Zu(n,k,x)??{},G=`${j}_${x}`,Y={...R,key:G,label:j,size:n.size,border:se(n.border)};I&&(Y.disabled=I),n.itemType==="button"?E.push(l.h(b.ElRadioButton,Y,{default:()=>[C]})):typeof L=="function"?E.push(l.h(b.ElRadio,Y,{default:()=>L(k)})):E.push(l.h(b.ElRadio,Y,{default:()=>[C]}))}),E};return()=>{const L={...Ye(r.attrs),class:w.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:N},E=[],k={};r.slots.options?k.default=r.slots.options:k.default=()=>_(d.value,r.slots.text);const x=l.h(b.ElRadioGroup,L,k);E.push(x);const j={default:()=>E};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const I={...ke(n,vr),hintText:z.value,hintVisible:B.value,prop:`${n.prop??r.attrs.name}_item`};return v.value&&(I["appear-listen"]=!0,I.onAppear=g),l.h(o,I,j)}}}}const{componentName:Qu,create:ec,scope:tc}=ie("radio-item"),fl=ec(Ju(Qu,tc,Te));function vt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function wt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function nc(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let lc=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 r=He(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Xe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function oc(){const e=l.getCurrentInstance();return new lc(e.proxy)}function wr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=vt(e,t),r=vt(e,o);if(n!==r)return!1;const a=wt(e,t),i=wt(e,o);return a===i}function rc(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of n){let s=!1;if(o==="text")s=vt(e,i)===a;else if(o==="item")s=wr(e,i,a);else{let u=wt(e,i);u==null&&(u=vt(e,i)),s=u===a}if(s){r.push(i);break}}}),r}function ac(e){return{text:e,value:e}}function ic(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const Sr={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"},appearLoad:{type:[Boolean,String],default:!1}};function sc(e,t,o){return{inheritAttrs:!0,props:{...xe,...Oe,...Sr},emits:["change","update:modelValue","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref([]),f=l.ref([]),c=(F,L,E,k=!0)=>{const x=rc(n,F,L,E);if(x===null){if(f.value===null||f.value.length===0)return;u.value=[],f.value=[],k&&(s("update:modelValue",[]),s("change",[]));return}let j=!0;if(x.length!==f.value.length)j=!1;else for(let C=0;C<x.length;C++){const I=x[C],R=f.value[C];if(!wr(n,I,R)){j=!1;break}}if(!j){f.value=x;let C=[],I=[];x.forEach(G=>{C.push(wt(n,G)),n.valueType==="text"?I.push(vt(n,G)):n.valueType==="item"?I.push(G):I.push(wt(n,G))}),u.value=C;const R=l.toRaw(I);k&&(s("update:modelValue",R),s("change",R))}},d=l.ref([]),v=Ve(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,F=>se(F)),V=oc(),p=async(F,L)=>{if(F){const E=await V.load("checkbox",F,L);if(E.length>0)if(typeof E[0]=="string"){let j=E.map(C=>ac(C));d.value=j}else d.value=E}};l.watch([()=>n.source,()=>n.params],async([F,L])=>{p(F,L)},{immediate:!v.value});let h=!1;const g=()=>{h||(h=!0,p(n.source,n.params))};l.watch([()=>d.value,()=>n.modelValue],([F,L])=>{c(L,n.valueType,F,!1),s("setValue",L)});const T=e,w=l.computed(()=>({[T]:!0,[`is-${n.direction}`]:!0})),N=F=>{c(F,"value",d.value,!0)};let z=ge(n,"hintText"),B=ge(n,"hintVisible");const _=(F,L)=>{const E=[];return F.forEach((k,x)=>{const j=wt(n,k),C=vt(n,k);let I=nc(n,k);a.value===!0&&(I=a.value),i.value===!0&&(I=i.value);const R=ic(n,k,x)??{},G=`${j}_${x}`,Y={...R,key:G,class:n.itemClass,label:j,size:n.size,border:se(n.border)};I&&(Y.disabled=I),n.itemType==="button"?E.push(l.h(b.ElCheckboxButton,Y,{default:()=>[C]})):typeof L=="function"?E.push(l.h(b.ElCheckbox,Y,{default:()=>L(k)})):E.push(l.h(b.ElCheckbox,Y,{default:()=>[C]}))}),E};return()=>{const L={...Ye(r.attrs),class:w.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:Se(n.max),min:Se(n.min),onChange:N},E=[],k={};r.slots.options?k.default=r.slots.options:k.default=()=>_(d.value,r.slots.text);const x=l.h(b.ElCheckboxGroup,L,k);E.push(x);const j={default:()=>E};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const I={...ke(n,Sr),hintText:z.value,hintVisible:B.value,prop:`${n.prop??r.attrs.name}_item`};return v.value&&(I["appear-listen"]=!0,I.onAppear=g),l.h(o,I,j)}}}}const{componentName:uc,create:cc,scope:fc}=ie("checkbox-item"),dl=cc(sc(uc,fc,Te)),xr={modelValue:{type:[Number,String],required:!1}};function dc(e,t,o){return{props:{...xe,...Oe,...xr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=ge(n,"modelValue",h=>Se(h),s),f=e,c=l.computed(()=>({[f]:!0})),d=h=>{s("update:modelValue",h),s("change",h)};let v=ge(n,"hintText"),V=l.ref(!1);const p=l.ref();return Ce({}),()=>{const g={...Ye(r.attrs),ref:p,class:c.value,readonly:i.value||a.value,modelValue:u.value,onChange:d},T={},w=[],N=l.h(b.ElRate,g,T);w.push(N);const z={default:()=>w};r.slots.default&&(z.label=r.slots.default),r.slots.fixedTip&&(z.fixedTip=r.slots.fixedTip);const _={...ke(n,xr),hintText:v.value,hintVisible:V.value,prop:`${n.prop}_item`};return l.h(o,_,z)}}}}const{componentName:hc,create:gc,scope:mc}=ie("rate-item"),hl=gc(dc(hc,mc,Te)),Tr={modelValue:{type:[Boolean,String,Number],required:!1}};function pc(e,t,o){return{props:{...xe,...Oe,...Tr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=ge(n,"modelValue",null,s),f=e,c=l.computed(()=>({[f]:!0})),d=h=>{s("update:modelValue",h),s("change",h)};let v=ge(n,"hintText"),V=ge(n,"hintVisible");const p=l.ref();return Ce({}),()=>{const g={...Ye(r.attrs),ref:p,class:c.value,readonly:i.value,disabled:a.value,modelValue:u.value,onChange:d},T={},w=[],N=l.h(b.ElSwitch,g,T);w.push(N);const z={default:()=>w};r.slots.default&&(z.label=r.slots.default),r.slots.fixedTip&&(z.fixedTip=r.slots.fixedTip);const _={...ke(n,Tr),hintText:v.value,hintVisible:V.value,prop:`${n.prop}_item`};return l.h(o,_,z)}}}}const{componentName:yc,create:bc,scope:vc}=ie("switch-item"),gl=bc(pc(yc,vc,Te)),$r={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function wc(e,t,o){return{props:{...xe,...Oe,...$r},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),s=l.ref(!1),{emitEvent:u}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),f=ge(n,"modelValue",null,u),c=e,d=l.computed(()=>({[c]:!0})),v=B=>{u("update:modelValue",B),u("change",B)};let V=ge(n,"hintText"),p=l.ref(!1);const h=B=>{let F=B.target.value;s.value=!0,pe(V.value)||(p.value=!0),u("focus",F,B)},g=B=>{setTimeout(()=>{p.value&&(p.value=!1),s.value=!1},0);let F=B.target.value;n.maxLength&&F.length>Number(n.maxLength)&&(F=F.slice(0,Number(n.maxLength))),w.value||u("blur",F,B)},T=()=>{u("clear","")},w=l.ref(!1),N=B=>{w.value=B,u("visible-change",B),B||u("selected")},z=l.ref();return Ce({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()}}),()=>{const _={...Ye(r.attrs),ref:z,class:d.value,disabled:a.value||i.value,modelValue:f.value,"onUpdate:modelValue":v,onClear:T,onFocus:h,onBlur:g,onVisibleChange:N},F={};r.slots.option&&(F.default=r.slots.option);const L=[],E=l.h(b.ElTreeSelect,_,F);L.push(E);const k={default:()=>L};r.slots.default&&(k.label=r.slots.default),r.slots.fixedTip&&(k.fixedTip=r.slots.fixedTip);const j={...ke(n,$r),hintText:V.value,hintVisible:p.value,prop:`${n.prop}_item`};return l.h(o,j,k)}}}}const{componentName:Sc,create:xc,scope:Tc}=ie("tree-select-item"),ml=xc(wc(Sc,Tc,Te)),$c={},Cc={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"},Nc=[l.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 Ec(e,t){return l.openBlock(),l.createElementBlock("svg",Cc,Nc)}const kc=je($c,[["render",Ec]]),{componentName:Hh,create:Ic,scope:Kh}=ie("group-setting"),Oc={groupProp:{type:[String]},groupRef:{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:"重置"},initDelay:{type:[Number],required:!1,default:50},toTopText:{type:[String],required:!1,default:"到顶部"},toBottomText:{type:[String],required:!1,default:"到底部"}},Vc=Ic({components:{FoxPopover:b.ElPopover,FoxCheckbox:b.ElCheckbox,FoxCheckboxGroup:b.ElCheckboxGroup,FoxButton:b.ElButton,FoxIcon:b.ElIcon,DragIcon:kc,Download:Ne.Download,RefreshLeft:Ne.RefreshLeft},props:{...Oc},emits:["change"],setup(e,{emit:t,attrs:o,expose:n}){let r=null;const a=l.ref([]),i=mr(),s=O=>O.length>1,u=()=>{const O=[],S=[...a.value];a.value=S.map((D,y)=>(D.visible!==!1&&O.push(D.prop),{...D,sortIndex:y})),a.value.length===O.length?h.value=!0:O.length>0&&(g.value=!0),N.value=O},f=O=>{let S=null;if(typeof O=="string")S=document.querySelectorAll(`.fox-group[prop="${O}"] > div > .fox-item[prop]`);else if(O&&typeof O=="object"){const D=O.$el??O;typeof D.querySelectorAll=="function"&&(S=D.querySelectorAll(".fox-item[prop]"))}if(!S)return[];const A=[];return S.forEach(D=>{const y=D.querySelector(".label--string");let K="";y&&(K=y.textContent??"");const P=D.getAttribute("prop")??"",M=window.getComputedStyle(D,null).getPropertyValue("display");A.push({label:K,prop:P,sortIndex:0,visible:M!=="none"})}),A},c=()=>{if(!r){const O=f(e.groupRef??e.groupProp);if(O.length===0)return!1;r=O}return!0},d=async(O=!1)=>{const S=await i.load(e.groupProp),A=D=>{if(!D||!r)return;const y=r.map(K=>({...K}));Array.isArray(S)&&S.forEach(K=>{y.some(P=>{if(P.prop===K.prop){const q=P.label;return Object.assign(P,K),P.label=q,!0}return!1})}),a.value=y.sort((K,P)=>K.sortIndex-P.sortIndex),u(),O&&V(!1)};r?A(!0):Ut(c,e.initDelay,5,50,!1,A)},v=()=>{const O=r??[];a.value=O.map(S=>({...S})),u(),V()},V=(O=!0)=>{O&&i.save(e.groupProp,a.value);const S=a.value.map(A=>({...A}));t("change",S)},p=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),h=l.ref(!1),g=l.ref(!1),T=O=>{const S=[];a.value.forEach(D=>{O&&S.push(D.prop),D.visible=O}),h.value=!1,g.value=!1,a.value.length===S.length?h.value=!0:S.length>0&&(g.value=!0),N.value=S,V()},w=()=>{v()},N=l.ref([]),z=O=>{a.value.forEach(A=>{const D=O.indexOf(A.prop)!==-1;A.visible=D}),h.value=!1,g.value=!1;const S=a.value.length;O.length===S?h.value=!0:O.length>0&&(g.value=!0),V()},B=()=>{d()};l.onMounted(()=>{d(!0)});const _={currentRow:null,index:null},F=O=>O?O.dataset&&O.dataset.role==="row"?O:O.tagName.toLowerCase()!=="body"?(O=O.parentElement,F(O)):null:null,L=O=>{const S=O.currentTarget;S&&S.dataset&&(_.index=S.dataset.index)},E=O=>{_.currentRow&&(_.currentRow.classList.remove("is-dragover"),_.currentRow=null),_.index=null},k=O=>{const S=O.currentTarget;O.relatedTarget;const A=F(S);A&&(O.preventDefault(),_.currentRow&&_.currentRow!==A&&_.currentRow.classList.remove("is-dragover"),A.classList.add("is-dragover"),_.currentRow=A)},x=O=>{O.preventDefault(),_.currentRow&&(_.currentRow.classList.remove("is-dragover"),_.currentRow=null)},j=O=>{const S=O.currentTarget,A=F(S);if(!A)return;O.preventDefault();const D=Number(_.index),y=Number(A.dataset.index);if(D!==y){if(D<y){const K=a.value[D];a.value.splice(D,1),a.value.splice(y,0,K)}else{const K=a.value[D];a.value.splice(D,1),a.value.splice(y+1,0,K)}u(),V()}},C=O=>{const S=a.value[O];a.value.splice(O,1),a.value.splice(0,0,S),u(),V()},I=O=>{const S=a.value[O];a.value.splice(O,1),a.value.push(S),u(),V()};n({refresh:()=>{r=null,d(!1)}});const R=new Map;let G=null;function Y(O){const S=document.createRange();return S.setStart(O,0),S.setEnd(O,O.childNodes.length),S.getBoundingClientRect().width}return{attrs:o,itemPropertyList:a,isDraggble:s,isCheckAll:h,isIndeterminate:g,handleCheckAllChange:T,handleReset:w,checkedValue:N,handleCheckChange:z,onShow:B,onDragStart:L,onDragEnd:E,onDragOver:k,onDragLeave:x,onDrop:j,checkboxLabelStyle:p,toTop:C,toBottom:I,onMouseOverForOverflowText:(O,S,A)=>{const D=O.currentTarget;if(D){const y=Math.floor(D.offsetWidth);if(Math.floor(Y(D))>y){let P=R.get(S);if(P){if(P===G)return;Re.hide(P)}P=Re.show(D,A,{type:"text",placement:"top",closeOnClick:!1}),R.set(S,P),G=P}}},onMouseLeaveForOverflowText:(O,S)=>{const A=R.get(S);A&&(Re.hide(A),A===G&&(G=null))},onMouseOverForTip:(O,S)=>{const A=O.currentTarget;A&&(G&&Re.hide(G),G=Re.show(A,S,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:O=>{G&&(Re.hide(G),G=null)}}}}),Fc={class:"fox-group-setting"},Dc={class:"fox-group-setting__header"},Rc={class:"fox-group-setting__body"},Ac={class:"fox-group-setting__body-list","data-role":"container"},Lc=["data-index","draggable"],Mc=["onMouseover","onMouseleave"],Bc={class:"tools-item"};function _c(e,t,o,n,r,a){const i=l.resolveComponent("FoxCheckbox"),s=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),f=l.resolveComponent("Download"),c=l.resolveComponent("FoxIcon"),d=l.resolveComponent("FoxCheckboxGroup"),v=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(v,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",Fc,[l.createElementVNode("div",Dc,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=V=>e.isCheckAll=V),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",Rc,[l.createVNode(d,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=V=>e.checkedValue=V),onChange:e.handleCheckChange},{default:l.withCtx(()=>[l.createElementVNode("div",Ac,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.itemPropertyList,V=>(l.openBlock(),l.createElementBlock("div",{key:V.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":V.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:t[5]||(t[5]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[6]||(t[6]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[7]||(t[7]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[8]||(t[8]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[9]||(t[9]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.itemPropertyList)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:V.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:p=>e.onMouseOverForOverflowText(p,V.prop,V.label),onMouseleave:p=>e.onMouseLeaveForOverflowText(p,V.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(V.label),45,Mc)]),_:2},1032,["label"]),l.createElementVNode("div",Bc,[l.createVNode(c,{onClick:p=>e.toTop(V.sortIndex),onMouseover:t[1]||(t[1]=p=>e.onMouseOverForTip(p,e.toTopText)),onMouseleave:t[2]||(t[2]=p=>e.onMouseLeaveForTip(p)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(f)]),_:2},1032,["onClick"]),l.createVNode(c,{onClick:p=>e.toBottom(V.sortIndex),onMouseover:t[3]||(t[3]=p=>e.onMouseOverForTip(p,e.toBottomText)),onMouseleave:t[4]||(t[4]=p=>e.onMouseLeaveForTip(p))},{default:l.withCtx(()=>[l.createVNode(f)]),_:2},1032,["onClick"])])],40,Lc))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const pl=je(Vc,[["render",_c]]),qc=["aria-labelledby"],Pc=l.createElementVNode("path",{d:"M834.7 920.1h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43zm0-729.2h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43s-19.3 43-43 43zm0 354.6h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43z",fill:"currentColor","fill-opacity":"0.9"},null,-1),jc=[Pc],zc=l.defineComponent({__name:"MoreH",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=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,f)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},jc,14,qc))}}),Hc=["aria-labelledby"],Kc=l.createElementVNode("path",{d:"M784 902.4c9.6 19.2 6.4 41.6-12.8 54.4-19.2 9.6-41.6 3.2-51.2-12.8-9.6-19.2-6.4-41.6 12.8-54.4 16-12.8 38.4-8 51.2 12.8zM550.4 984c0 22.4-16 38.4-38.4 38.4s-38.4-16-38.4-38.4v-24c0-22.4 19.2-38.4 41.6-38.4 19.2 0 35.2 16 38.4 38.4v25.6h-3.2zm-240-43.2c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-16-51.2l28.8-51.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 12.8 54.4l-25.6 48zM121.6 784c-19.2 9.6-41.6 3.2-54.4-16-9.6-19.2-6.4-41.6 12.8-54.4l76.8-44.8c19.2-9.6 41.6-3.2 54.4 16 9.6 19.2 3.2 41.6-16 54.4L121.6 784zM38.4 552C16 552 0 536 0 513.6s16-38.4 38.4-38.4H160c22.4 0 38.4 19.2 38.4 38.4 0 22.4-16 38.4-38.4 38.4H38.4zm44.8-241.6c-19.2-9.6-25.6-35.2-16-51.2 9.6-19.2 35.2-25.6 54.4-16L256 320c19.2 9.6 25.6 35.2 16 54.4s-35.2 25.6-54.4 16l-134.4-80zm160-185.6 92.8 160c9.6 19.2 35.2 25.6 54.4 12.8s25.6-35.2 12.8-54.4l-92.8-160C297.6 64 275.2 60.8 256 70.4c-16 12.8-22.4 33.6-12.8 54.4zM473.6 40c0-22.4 16-38.4 38.4-38.4s38.4 19.2 38.4 38.4v184c0 22.4-19.2 38.4-38.4 38.4-22.4 0-38.4-19.2-38.4-38.4V40zm240 43.2c9.6-19.2 35.2-25.6 54.4-16 19.2 9.6 25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-12.8-54.4l89.6-156.8zm188.8 160-160 92.8c-19.2 9.6-25.6 35.2-16 54.4 12.8 19.2 35.2 25.6 54.4 12.8l160-92.8c19.2-9.6 25.6-35.2 12.8-54.4-9.6-16-32-25.6-51.2-12.8zM985.6 472c22.4 0 38.4 16 38.4 38.4s-16 38.4-38.4 38.4H800c-22.4 0-38.4-19.2-38.4-38.4 0-22.4 19.2-38.4 38.4-38.4h185.6z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Wc=[Kc],yl=l.defineComponent({__name:"Loading",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=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,f)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Wc,14,Hc))}}),Yc=["aria-labelledby"],Gc=l.createElementVNode("path",{d:"M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Uc=[Gc],Xc=l.defineComponent({__name:"Close",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=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,f)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},Uc,14,Yc))}}),Zc=["aria-labelledby"],Jc=l.createElementVNode("path",{d:"M159.289 500.622c62.578 0 125.155 17.067 221.867 102.4 8.533 5.69 19.91 5.69 25.6 0 48.355-54.044 238.933-261.689 455.11-329.955 0 0 28.445-5.69 42.667 19.91 8.534 17.067 19.911 34.134-5.689 54.045-22.755 17.067-264.533 179.2-440.888 440.89l-2.845 2.844c-11.378 8.533-68.267 51.2-119.467-14.223-56.888-71.11-85.333-139.377-196.266-196.266-2.845 0-2.845-2.845-5.69-5.69-11.377-11.377-54.044-73.955 25.6-73.955z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Qc=[Jc],ef=l.defineComponent({__name:"Checklist",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=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,f)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Qc,14,Zc))}}),tf=["aria-labelledby"],nf=l.createElementVNode("path",{d:"m387.547 980.846 305.006-397.532a117.102 117.102 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.538 27.538 0 0 1 0 33.572L316.489 926.318a44.8 44.8 0 0 0 71.058 54.564",fill:"currentColor","fill-opacity":"0.9"},null,-1),lf=[nf],of=l.defineComponent({__name:"ArrowRight",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=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,f)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},lf,14,tf))}}),rf={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:Object},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},Cr=(e,t)=>t[e.textKey],At=(e,t)=>t[e.valueKey],af=(e,t)=>t[e.visibleKey],Nr=(e,t)=>t[e.disabledKey],sf=(e,t)=>{const o=t[e.doitKey];return se(o)},uf=(e,t)=>{const o=t[e.numKey];return o==null?null:Se(t[o])},Er=(e,t,o)=>{const n=e.itemOptions;return typeof n=="function"?n(t,o):n||null};function cf(e,t,o,n=!1){return{props:{...rf},emits:["update:modelValue","change"],setup(r,{slots:a,emit:i}){const s=l.computed(()=>{const O={};return O[`${e}`]=!0,O}),u=l.computed(()=>{const O={};return O[`${e}__titles`]=!0,O[`${r.direction}`]=!0,r.align==="left"&&(O.left=!0),r.scroll===!0&&(O.scrollable=!0),r.shape&&(O[`${r.shape}`]=!0),O}),f=l.computed(()=>({})),c=l.computed(()=>{if(!r.gutter)return 0;const O=he(r.gutter);return O<=0?0:O}),d=l.ref(r.modelValue);l.watch(()=>r.modelValue,O=>{d.value!==O&&(d.value=O,Y(!1))});const v=l.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),V=l.computed(()=>{const O={};return h.value||(O.display="none"),O}),p=l.ref(),h=l.ref(!1),g=()=>{const O=!h.value;T(O)},T=O=>{const S=O;S?(h.value=S,setTimeout(()=>{v.value["fox-tabs-bar__popup--show"]=!0,v.value["fox-tabs-bar__popup--hide"]=!1},0)):(v.value["fox-tabs-bar__popup--show"]=!1,v.value["fox-tabs-bar__popup--hide"]=!0,p.value?p.value.addEventListener("transitionend",()=>{h.value=!1},{once:!0}):setTimeout(()=>{h.value=!1},0))},w=l.ref(),N=l.ref([]),z=(O,S)=>{N.value[S]=O},B=O=>S=>{z(S,O)},_=(O,S)=>{const A=w.value,D=N.value;if(!A||!D||!D[O])return;const y=D[O];let K=0;r.direction==="vertical"?K=y.offsetTop-(A.offsetHeight-y.offsetHeight)/2:K=y.offsetLeft-(A.offsetWidth-y.offsetWidth)/2,F(A,K,S?0:.3,r.direction)},F=(O,S,A,D)=>{let y=0;const K=D==="horizontal"?O.scrollLeft:O.scrollTop,P=A===0?1:Math.round(A*1e3/16);function q(){D==="horizontal"?O.scrollLeft+=(S-K)/P:O.scrollTop+=(S-K)/P,++y<P&&Nn(q)}q()},L=(O,S)=>{const A=At(r,O),D={};return D[`${e}__titles-item`]=!0,D.disabled=Nr(r,O),D.active=A===d.value,r.shape&&(D[`${r.shape}`]=!0),r.ellipsis&&(D.ellipsis=!0),S&&(S.class&&(D[`${S.class}`]=!0),S.disabled===!0&&(D.disabled=S.disabled)),D},E=(O,S)=>{const A={};if(c.value>0){const D=Math.abs(c.value/2);r.direction==="vertical"?(A["margin-top"]=`${D}px`,A["margin-bottom"]=`${D}px`):(A["margin-left"]=`${D}px`,A["margin-right"]=`${D}px`)}return S&&S.style&&Object.assign(A,S.style),A},k=(O,S)=>`${At(r,O)??S}`,x=(O,S)=>{const A=At(r,O),D={};D[`${e}__popup-item`]=!0,D.disabled=Nr(r,O),D.active=A===d.value,r.shape&&(D[`${r.shape}`]=!0);const y=Er(r,O,S);return y&&y.disabled===!0&&(D.disabled=y.disabled),D},j=l.computed(()=>(r.data??[]).filter(S=>af(r,S)!==!1)),C=(O,S)=>{const A=At(r,O);if(d.value==A)return;const D=()=>{d.value=A,r.scroll&&_(S,!1),i("update:modelValue",A),i("change",O,S)};if(typeof r.beforeChange=="function"){const y=r.beforeChange(O,S);lo(y)?y.then(K=>{K!==!1&&D()}).catch(()=>{D()}):y!==!1&&D()}else D()},I=(O,S)=>function(){C(O,S)},R=(O,S)=>{C(O,S),T(!1)},G=(O,S)=>function(){R(O,S)},Y=O=>{if(!Array.isArray(r.data)||!r.scroll)return;const S=r.data.findIndex(A=>At(r,A)===d.value);S!==-1&&_(S,O)};l.watch(()=>r.data,()=>{setTimeout(Y,0)}),l.onMounted(()=>{Y(!0)});const Z=(O,S)=>{if(a.item)return a.item({item:O,index:S});const A=Er(r,O,S),D=[];if(a.text){const q=a.text({item:O,index:S});D.push(q)}else{const q=[];if(A?.doit===!0||sf(r,O)){const J={class:[`${e}__titles-item-tip`,"doit"]},ne=l.h("view",J);q.push(ne)}const M=A?.num??uf(r,O);if(M){let J="";const ne=Se(M);ne>=100?J="99+":J=`${ne}`;const $={class:[`${e}__titles-item-tip`,"num"]},W=l.h("view",$,[J]);q.push(W)}const U={class:`${e}__titles-item-text`};q.push(Cr(r,O));const H=l.h("view",U,q);D.push(H)}const y={class:`${e}__titles-item-line`},K=l.h("view",y);D.push(K);const P={ref:B(S),class:L(O,A),style:E(O,A),key:k(O,S),onClick:I(O,S)};return l.h("view",P,D)},X=()=>{const O=a.default?a.default():[];if(O.length===0)for(let A=0;A<j.value.length;A++){const D=j.value[A],y=Z(D,A);O.push(y)}const S={ref:w,class:u.value,style:f.value};return l.h("view",S,O)},te=()=>{let O=null;a.navigation?O=a.navigation():O=l.h(o);const S={class:`${e}__navigation`,onClick:g};return l.h("view",S,[O])},oe=()=>{const O=[];for(let A=0;A<j.value.length;A++){const D=j.value[A];let y=null;a.popupItem?y=a.popupItem({item:D,index:A}):y=Cr(r,D);const K={class:x(D,A),key:k(D,A),onClick:G(D,A)},P=l.h("view",K,[y]);O.push(P)}const S={class:v.value,style:V.value};return l.h("view",S,O)};return()=>{const O=[],S=X();if(O.push(S),r.showQuickNavigation){const D=te();O.push(D);const y=oe();O.push(y)}const A={class:s.value};return l.h("view",A,O)}}}}const{create:ff,componentName:df,scope:hf}=ie("tabs-bar"),bl=ff(cf(df,hf,zc,!1)),kr=Symbol("TabsStatesKey"),gf={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function mf(e,t,o=!1){return{props:{...gf},emits:["update:modelValue","change"],setup(n,{emit:r,slots:a}){const i=l.shallowRef([]),s={current:l.ref(n.modelValue??""),direction:l.ref(n.direction),tabWidth:l.ref(-1),tabHeight:l.ref(-1),add:h=>{const g={name:h};s.current.value===h&&(g.loaded=!0),i.value.push(g),l.triggerRef(i)},remove:h=>{const g=i.value.findIndex(T=>T.name===h);g!==-1&&i.value.splice(g,1)},isLoaded:h=>{if(!n.lazy)return!0;const g=i.value.findIndex(T=>T.name===h);return g!==-1?s.current.value?i.value[g].loaded??!1:g===0:!1}};l.provide(kr,s);const u=h=>{const g=i.value.findIndex(T=>T.name===h);g!==-1&&(i.value[g].loaded=!0,l.triggerRef(i))};l.watch([()=>n.modelValue,()=>n.direction],([h,g])=>{s.current.value!==h&&(s.current.value=h??"",u(h??"")),s.direction.value!==g&&(s.direction.value=g)});const f=l.ref(null),c=l.ref(null),d=l.computed(()=>({[e]:!0,[`${n.direction}`]:!0}));let v=!0;const V=l.computed(()=>{const h={},g=i.value.length;if(g<=0)return h;const T=i.value.findIndex(w=>w.name===s.current.value);return s.direction.value==="vertical"?s.tabHeight.value>0&&(h.height=`${g*s.tabHeight.value}px`,T!==-1&&(h.transform=`translate(0, -${T*s.tabHeight.value}px)`)):s.tabWidth.value>0&&(h.width=`${g*s.tabWidth.value}px`,T!==-1&&(h.transform=`translate(-${T*s.tabWidth.value}px, 0)`)),v&&(v=!1,h.transition="transform 0s ease"),h});let p=null;return l.onMounted(()=>{if(!f.value)return;const h=()=>{const g=tn(f.value);s.tabWidth.value=g.width,s.tabHeight.value=g.height};window.ResizeObserver&&(p=new window.ResizeObserver(h),p.observe(f.value)),h()}),l.onBeforeUnmount(()=>{p&&(p.disconnect(),p=null)}),()=>{const h={class:`${e}__panes`,style:V.value,ref:c},g=l.h("view",h,[a?.default?.()]),T={class:d.value,ref:f};return l.h("view",T,[g])}}}}const{create:pf,componentName:yf,scope:bf}=ie("tabs-container"),vl=pf(mf(yf,bf,!1)),vf={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function wf(e,t,o){return{props:{...vf},setup(n,{emit:r,slots:a}){const i=l.inject(kr);l.onMounted(()=>{i.add(n.paneKey)}),l.onBeforeUnmount(()=>{i.remove(n.paneKey)});const s=l.computed(()=>{const f={};return i.direction.value==="vertical"&&i.tabHeight.value>0?f.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(f.width=`${i.tabWidth.value}px`),f}),u=l.computed(()=>n.loaded!=null?se(n.loaded):i.isLoaded(n.paneKey));return()=>{let f=[];if(u.value)f=a?.default?.()??[];else if(a.empty)f=a.empty();else{const d={class:`${e}__empty-icon`},v=n.emptyIcon??o,V=l.h(v,d),p={class:`${e}__empty-text`},h=n.emptyText??"Loading",g=l.h("view",p,[h]),T={class:`${e}__empty`},w=l.h("view",T,[V,g]);f.push(w)}const c={class:`${e}`,style:s.value};return l.h("view",c,f)}}}}const{create:Sf,componentName:xf,scope:Tf}=ie("tabs-pane"),wl=Sf(wf(xf,Tf,yl)),$f={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[String]},iconSize:{type:[String,Number]},markIcon:{type:[String]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function Cf(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ir(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Or(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function Nf(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function Sl(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function Vr(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function Fr(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function xl(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}class Ef{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await Reflect.apply(o,null,[n]);const r=He(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Xe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await Reflect.apply(r,null,[o,n]))}}function kf(){const e=l.getCurrentInstance();return new Ef(e.proxy)}function If(e,t,o,n){return{props:{...$f},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:i}){const s=e,u=kf(),f=l.ref([]),c=l.computed(()=>f.value.filter(S=>Nf(r,S)!==!1)),d=l.ref(-1),v=()=>{const S=r.modelValue,A=c.value.findIndex(D=>Ir(r,D)===S);d.value!==A&&(d.value=A,r.scroll&&oe(A,!1))};l.watch([()=>r.modelValue,c],()=>{v()});const V=S=>d.value===S,p=S=>{if(S<0&&S>=c.value.length)return!1;const A=c.value[S],y=(xl(r,A,S)??{}).status??Sl(r,A);return V(S)||y},h=l.computed(()=>{const S={[s]:!0};return r.mode?S[`is-${r.mode}`]=!0:r.direction&&(S[`is-${r.direction}`]=!0),r.scroll&&(S["is-scroll"]=!0),S}),g=l.computed(()=>({})),T=(S,A,D,y,K)=>{const P={[`${s}__step`]:!0};return K&&(P[`${K}`]=!0),P[`${w.value}`]=!0,y&&(P["is-doit"]=!0),S===d.value?P["is-active"]=!0:A==="done"?P["is-done"]=!0:A==="error"?P["is-error"]=!0:A==="half"?P["is-half"]=!0:D?P["is-disabled"]=!0:P["is-normal"]=!0,P},w=l.computed(()=>{if(r.mode==="simple")return"start";let S=r.align;return S||(r.direction==="vertical"?S="start":S="center"),S}),N=(S,A={})=>{const D={...A};return w.value==="start"&&S===c.value.length-1?D.flex="0 0 auto":r.step?r.direction==="vertical"?D.height=r.step:D.width=r.step:D.flex="1 1 100%",D},z=(S,A)=>{let D={};if(A<c.value.length-1){const y=A+1;p(A)&&p(y)?r.direction==="vertical"?D.height="100%":D.width="100%":D.opacity="0"}return D},B=S=>c.value.length-1===S,_=(S,A)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&A>d.value||d.value===A)return;const D=d.value,y=A;d.value=A,r.scroll&&oe(A,!1);const K=Ir(r,S);i("update:modelValue",K);const P={fromIndex:D,currentIndex:y,item:S,items:c.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",K,P)},F=l.ref(!0),L=async(S,A)=>{try{const D=await u.load("stesbar",S,A);Array.isArray(D)&&(f.value=D),F.value=!1}catch(D){console.error("[FoxUI] Load StepsBar Data Fail",D),f.value=[]}setTimeout(()=>{i("loaded-data")},250)};l.watch([()=>r.data,()=>r.params],async([S,A])=>{S&&L(S,A)},{immediate:!0});const E=(S,A,D,y,K)=>{let P=null;if(a.icon)P=a.icon({item:S,index:A,status:y});else if(y==="done"){const M={};r.iconSize&&(M.width=r.iconSize,M.height=r.iconSize);const U=r.icon??o;P=l.h(U,M)}else{const M=D??`${A+1}`;P=l.h("span",{},[M])}const q={class:"fox-steps-bar__icon",onClick:()=>{K||_(S,A)}};return l.h("view",q,[P])},k=(S,A,D)=>{const y=l.h("i",{class:"fox-steps-bar__line-inner",style:z(S,A)});return l.h("view",{class:"fox-steps-bar__line"},[y])},x=()=>{let S=null;if(a.markIcon)S=a.markIcon();else{const D={};r.iconSize&&(D.width=r.markIconSize,D.height=r.markIconSize);const y=r.markIcon??n;S=l.h(y,D)}return l.h("view",{class:"fox-steps-bar__mark"},[S])},j=(S,A,D,y,K)=>{const P=[];if(!B(A)){const U=k(S,A);P.push(U)}const q=E(S,A,D,y,K);P.push(q);const M={class:"fox-steps-bar__head"};return l.h("view",M,P)},C=(S,A,D,y)=>{let K=null;a.main?K=a.main({item:S,index:A,status:D}):K=Cf(r,S);const P={class:"fox-steps-bar__main",onClick:()=>{y||_(S,A)}};return l.h("view",P,[K])},I=(S,A,D)=>{let y=null;if(a.sub){y=a.sub({item:S,index:A,status:D});const K={class:"fox-steps-bar__sub"};return l.h("view",K,[y])}return null},R=(S,A)=>{const D=xl(r,S,A)??{},y=D.status??Sl(r,S);let K=Or(r,S);D.disabled===!0&&(K=!0),r.disabled===!0&&(K=!0);const P=D.label??Fr(r,S),q=[],M=E(S,A,P,y,K);M&&q.push(M);const U=C(S,A,y,K);if(U&&q.push(U),!B(A)){const ee=k(S,A);ee&&q.push(ee)}const H=l.h("view",{class:"fox-steps-bar__head"},q),J=D.class,ne=D.style??{};let $=Vr(r,S);D.doit===!0&&($=!0);const W={ref:te(A),class:T(A,y,K,$,J),style:N(A,ne)};return l.h("view",W,[H])},G=(S,A)=>{const D=xl(r,S,A)??{},y=D.status??Sl(r,S);let K=Or(r,S);D.disabled===!0&&(K=!0),r.disabled===!0&&(K=!0);const P=D.label??Fr(r,S),q=[],M=r.layout;for(let $ of M)if($==="head"){const W=j(S,A,P,y,K);q.push(W)}else if($==="main"){const W=C(S,A,y,K);q.push(W)}else if($==="sub"){const W=I(S,A,y);q.push(W)}else if($==="mark"){const W=x();q.push(W)}const U=D.class,H=D.style??{};let J=Vr(r,S);D.doit===!0&&(J=!0);const ne={ref:te(A),class:T(A,y,K,J,U),style:N(A,H)};return l.h("view",ne,q)},Y=l.ref(),Z=l.ref([]),X=(S,A)=>{Z.value[A]=S},te=S=>A=>{X(A,S)},oe=(S,A)=>{const D=Y.value,y=Z.value;if(!D||!y||!y[S])return;const K=y[S];let P=0;r.direction==="vertical"?P=K.offsetTop-(D.offsetHeight-K.offsetHeight)/2:P=K.offsetLeft-(D.offsetWidth-K.offsetWidth)/2,O(D,P,A?0:.3,r.direction)},O=(S,A,D,y)=>{let K=0;const P=y==="horizontal"?S.scrollLeft:S.scrollTop,q=D===0?1:Math.round(D*1e3/16);function M(){y==="horizontal"?S.scrollLeft+=(A-P)/q:S.scrollTop+=(A-P)/q,++K<q&&Nn(M)}M()};return()=>{const S=[];if(r.mode==="simple")for(let D=0;D<c.value.length;D++){const y=c.value[D],K=R(y,D);S.push(K)}else for(let D=0;D<c.value.length;D++){const y=c.value[D],K=G(y,D);S.push(K)}const A={ref:Y,class:h.value,style:g.value};return l.h("view",A,S)}}}}const{componentName:Of,create:Vf,scope:Ff}=ie("steps-bar"),Tl=Vf(If(Of,Ff,ef,of)),Df=Symbol.for("InnerPageScopeKey"),Rf=Symbol.for("PageWrapperKey");function Af(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){l.provide(Df,!0);const r={};l.provide(Rf,r);const a=u=>{typeof r.beforeClose=="function"&&r.beforeClose()},i=l.ref(!0),s=u=>{i.value=u};return()=>{const f={...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":a},c={};if(typeof n.slots.default=="function"){const d=n.slots.default();c.default=()=>d}return l.h(b.ElDialog,f,c)}}}}const{componentName:Wh,create:Lf,scope:Yh}=ie("dialog-item"),$l=Lf(Af());let Lt=0;const Dr="fox-overflow-hidden",Rr=()=>st?document.body:{classList:[]},Mf=e=>[()=>{if(e())try{!Lt&&Rr().classList.add(Dr),Lt++}catch{}},()=>{if(e()&&Lt)try{Lt--,!Lt&&Rr().classList.remove(Dr)}catch{}}],Bf={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},{componentName:_f,create:qf}=ie("overlay"),Pf=qf({props:{...Bf},emits:["click","update:visible"],setup(e,{emit:t}){const[o,n]=Mf(()=>e.lockScroll),r=l.computed(()=>({[_f]:!0,[e.overlayClass]:!0})),a=l.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return l.watch(()=>e.visible,s=>{s?o():n()}),{classes:r,style:a,onClick:s=>{t("click",s),e.closeOnClickOverlay&&t("update:visible",!1)}}}});function jf(e,t,o,n,r,a){return l.openBlock(),l.createBlock(l.Transition,{name:"overlay-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.classes),onClick:t[0]||(t[0]=l.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:l.normalizeStyle(e.style)},[l.renderSlot(e.$slots,"default")],6),[[l.vShow,e.visible]])]),_:3})}const dn=je(Pf,[["render",jf]]),zf={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:String,default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},Ar=2e3;let Lr=Ar;const Hf=(e,t)=>({components:t,props:{...zf},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:n}){const r=l.reactive({zIndex:o.zIndex,showSlot:!0,closed:o.closeable}),a=l.computed(()=>({[e]:!0,round:o.round,[`fox-popup--${o.position}`]:!0,[`fox-popup--${o.position}--safebottom`]:o.position==="bottom"&&o.safeAreaInsetBottom,[o.popClass]:!0})),i=l.computed(()=>({zIndex:r.zIndex,transitionDuration:`${o.duration}s`,...o.style})),s=l.computed(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),u=()=>{o.zIndex!==Ar&&(Lr=Number(o.zIndex)),n("update:visible",!0),r.zIndex=++Lr,o.destroyOnClose&&(r.showSlot=!0),n("open")},f=()=>{n("update:visible",!1),n("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},c=h=>{n("click-pop",h)},d=h=>{h.stopPropagation(),n("click-close-icon",h),n("update:visible",!1)},v=h=>{n("click-overlay",h),o.closeOnClickOverlay&&n("update:visible",!1)},V=h=>{n("opend",h)},p=h=>{n("closed",h)};return l.watch(()=>o.visible,h=>{o.visible?u():f()}),l.watch(()=>o.closeable,h=>{r.closed=h}),{...l.toRefs(r),popStyle:i,transitionName:s,classes:a,onClick:c,onClickCloseIcon:d,onClickOverlay:v,onOpened:V,onClosed:p}}}),{componentName:Kf,create:Wf}=ie("popup"),Yf=Wf(Hf(Kf,{FoxOverLay:dn,Close:Xc}));function Gf(e,t,o,n,r,a){const i=l.resolveComponent("FoxOverLay"),s=l.resolveComponent("Close");return l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(l.openBlock(),l.createBlock(i,l.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):l.createCommentVNode("",!0),l.createVNode(l.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.popStyle),onClick:t[1]||(t[1]=(...u)=>e.onClick&&e.onClick(...u))},[e.showSlot?l.renderSlot(e.$slots,"default",{key:0}):l.createCommentVNode("",!0),e.closed?(l.openBlock(),l.createElementBlock("view",{key:1,onClick:t[0]||(t[0]=(...u)=>e.onClickCloseIcon&&e.onClickCloseIcon(...u)),class:l.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[l.renderSlot(e.$slots,"close-icon",{},()=>[l.createVNode(s)])],2)):l.createCommentVNode("",!0)],6),[[l.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const Cl=je(Yf,[["render",Gf]]),{create:Uf}=ie("toast"),Xf=Uf({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){let o=null;const n=l.reactive({mounted:!1});l.onMounted(()=>{n.mounted=!0});const r=()=>{o&&(clearTimeout(o),o=null)},a=()=>{n.mounted=!1},i=()=>{r(),e.duration&&(o=setTimeout(()=>{a()},e.duration))},s=()=>{e.closeOnClickOverlay&&(a(),t("close"))};e.duration&&i(),l.watch(()=>e.duration,V=>{V&&i()});const u=l.computed(()=>e.type!=="text"?!0:!!e.icon),f=()=>{const V=he(e.iconSize);return l.h(e.icon,{width:V,height:V,color:e.iconColor})},c=l.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":u.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),d=l.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:n,hide:a,clickCover:s,renderIcon:f,hasIcon:u,toastBodyClass:c,toastIconWrapperClass:d,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Zf={key:1,class:"fox-toast-title"},Jf=["innerHTML"];function Qf(e,t,o,n,r,a){return l.openBlock(),l.createBlock(l.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.toastBodyClass),style:l.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:t[0]||(t[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[l.createElementVNode("view",{class:"fox-toast-inner",style:l.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(e.toastIconWrapperClass)},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.renderIcon())))],2)):l.createCommentVNode("",!0),e.title?(l.openBlock(),l.createElementBlock("div",Zf,l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Jf)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Nl=je(Xf,[["render",Qf]]),ed={modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},td=(e,t,o)=>({props:{...ed},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(n,{slots:r}){const{emitEvent:a}=No(),{toLocaleRefs:i}=Be.useFoxI18n(t),s=i(n,["placeholder"]),u=l.reactive({active:!1}),f=l.computed(()=>({background:n.background})),c=l.computed(()=>({background:n.inputBackground})),d=E=>{let x=E.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),a("update:modelValue",x,E),a("change",x,E)},v=l.ref({}),V=E=>{let x=E.target.value;u.active=!0,v.value=n.focusStyle,a("focus",x,E)},p=E=>{setTimeout(()=>{u.active=!1},0);let x=E.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),v.value={},a("blur",x,E)},h=E=>{a("update:modelValue","",E),a("change","",E),a("clear","")},g=l.computed(()=>String(n.modelValue).length>0),T=l.computed(()=>{const E={};return g.value||(E.display="none"),E}),w=()=>{a("search",n.modelValue)},N=E=>{a("keyup-input",E),E.key.toLocaleUpperCase()==="ENTER"&&w()},z=E=>{a("click-input",E)},B=E=>{a("click-left-icon",n.modelValue,E)},_=l.computed(()=>({textAlign:n.inputAlign})),F=l.ref(null);l.onMounted(()=>{n.autofocus&&F.value.focus()});const L=()=>{const E=[];if(r.leftin){const I={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:B},R=l.h("view",I,[r.leftin()]);E.push(R)}const k={ref:F,class:[`${e}__input-inner`],style:_.value,type:n.inputType,maxlengt:n.maxLength,placeholder:s.placeholder.value,value:n.modelValue,disabled:n.disabled,readonly:n.readonly,onClick:z,onInput:d,onFocus:V,onBlur:p,onkeyup:N},x=l.h("input",k);E.push(x);const j=[];if(n.clearable){const I={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:T.value,onClick:h},R=r?.clear?.()??n.clearIcon??o,G=l.h("view",I,[l.h(R)]);j.push(G)}if(r.rightin){const I={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},R=l.h("view",I,[r.rightin()]);j.push(R)}if(j.length>0){const I={class:`${e}__input-inner-right`},R=l.h("view",I,j);E.push(R)}const C={class:[`${e}__search-input`,`${n.shape}`],style:{...c.value,...v.value}};return l.h("view",C,E)};return()=>{const E=[];if(n.label){const j={class:`${e}__search-label`},C=l.h("span",j,[n.label]);E.push(C)}if(r.leftout){const j={class:[`${e}__search-icon`,`${e}__left-search-icon`]},C=l.h("view",j,[r.leftout()]);E.push(C)}const k=L();if(E.push(k),r.rightout){const j={class:[`${e}__search-icon`,`${e}__right-search-icon`]},C=l.h("view",j,[r.rightout()]);E.push(C)}const x={class:`${e}`,style:f.value};return l.h("view",x,E)}}}),{componentName:nd,create:ld,scope:od}=ie("searchbar"),El=ld(td(nd,od,Ne.CircleClose)),rd=/scroll|auto|overlay/i,Mr=window;function ad(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function id(e,t=Mr){let o=e;for(;o&&o!==t&&ad(o);){const{overflowY:n}=window.getComputedStyle(o);if(rd.test(n))return o;o=o.parentNode}return t}function Br(e,t=Mr){const o=l.ref();return l.onMounted(()=>{e.value&&(o.value=id(e.value,t))}),o}const _r=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,sd={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},loadMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function ud(e,t,o){return{props:{...sd},emits:["scroll-change","load-more","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=Be.useFoxI18n(t),s=i(n,["pullText","loadText","loadMoreText"]),u=l.ref(),f=Br(u),c=l.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),d=l.computed(()=>({[e]:!0})),v=w=>w?w.offsetTop+v(w.offsetParent):0,V=()=>{let w=0,N=0,z="down";if(f.value==window){const B=_r();u.value&&(w=v(u.value)+u.value.offsetHeight-B-window.innerHeight),N=B}else{const{scrollHeight:B,clientHeight:_,scrollTop:F}=f.value;w=B-_-F,N=F}return c.beforeScrollTop>N?z="up":z="down",c.beforeScrollTop=N,r("scroll-change",N),w<=n.threshold&&z=="down"},p=()=>{Yl(()=>{if(!V()||!n.hasMore||c.isInfiniting)return!1;c.isInfiniting=!0,r("update:modelValue",!0),l.nextTick(()=>r("load-more"))})},h=()=>{f.value&&f.value.addEventListener("scroll",p,n.useCapture)},g=()=>{f.value&&f.value.removeEventListener("scroll",p,n.useCapture)};l.onMounted(()=>{h(),n.immediate&&p()}),l.onUnmounted(()=>{g()});const T=l.ref(!1);return l.onActivated(()=>{T.value&&(T.value=!1,h())}),l.onDeactivated(()=>{T.value=!0,g()}),l.watch(()=>n.modelValue,w=>{w||(c.isInfiniting=!1)}),()=>{const w={class:"fox-infinite__container"},N=l.h("view",w,[a?.default?.()]),z=[];if(c.isInfiniting){let L=a?.loading?.()??null;if(!L){let x=a?.loadingIcon?.()??null;if(!x){const I={class:["fox-infinite__bottom-box__img"]};x=l.h(o,I)}const j={class:"fox-infinite__bottom-box__text"},C=l.h("view",j,[s.loadText.value]);L=[x,C]}const E={class:"fox-infinite__bottom-box"},k=l.h("view",E,L);z.push(k)}else if(!n.hasMore){let L=a?.finished?.()??null;if(!L){const E={class:"fox-infinite__bottom-tips"};L=l.h("view",E,[s.loadMoreText.value]),z.push(L)}}const B={class:"fox-infinite__bottom"},_=l.h("view",B,z),F={class:d.value,ref:u};return l.h("view",F,[N,_])}}}}const{componentName:cd,create:fd,scope:dd}=ie("infinite-loading"),kl=fd(ud(cd,dd,yl)),qr=10;function Pr(e,t){return e>t&&e>qr?"horizontal":t>e&&t>qr?"vertical":""}function Il(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Ol(){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 f=i.touches[0];e.deltaX=f.clientX-e.startX,e.deltaY=f.clientY-e.startY,e.moveX=f.clientX,e.moveY=f.clientY}else{const u=i;e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Pr(e.offsetX,e.offsetY))},start:i=>{if(n(),i.touches){const f=i.touches[0];e.startX=f.clientX,e.startY=f.clientY}else{const u=i;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:o,state:e}}function hd(){const e=l.ref(0),t=l.ref(0),o=l.ref(0),n=l.ref(0),r=l.ref(0),a=l.ref(0),i=l.ref(0),s=l.ref(0),u=l.ref(0),f=l.ref(0),c=l.ref(""),d=()=>c.value==="vertical",v=()=>c.value==="horizontal",V=()=>{i.value=0,s.value=0,u.value=0,f.value=0,c.value="",o.value=0};return{move:g=>{if(g.touches){const N=g.touches[0];i.value=N.clientX-e.value,s.value=N.clientY-t.value,r.value=N.clientX,a.value=N.clientY}else{const w=g;i.value=w.clientX-e.value,s.value=w.clientY-t.value,r.value=w.clientX,a.value=w.clientY}u.value=Math.abs(i.value),f.value=Math.abs(s.value),n.value=Date.now()-o.value,c.value||(c.value=Pr(u.value,f.value))},start:g=>{if(V(),g.touches){const N=g.touches[0];e.value=N.clientX,t.value=N.clientY}else{const w=g;e.value=w.clientX,t.value=w.clientY}o.value=Date.now()},reset:V,startX:e,startY:t,startTime:o,duration:n,moveX:r,moveY:a,deltaX:i,deltaY:s,offsetX:u,offsetY:f,direction:c,isVertical:d,isHorizontal:v}}const gd={modelValue:{type:[Boolean],default:!1},pullingText:{type:[String]},loosingText:{type:[String]},loadingText:{type:[String]},headHeight:{type:[String,Number],default:50},pullDistance:{type:[String,Number],default:50},duration:{type:[String,Number],default:.3}},md=(e,t,o)=>({props:{...gd},emits:["change","refresh","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=Be.useFoxI18n(t),s=i(n,["pullingText","loosingText","loadingText"]),u=Ol(),f=l.ref(),c=Br(f),d=l.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),v=l.computed(()=>({[e]:!0})),V=l.computed(()=>{switch(d.status){case"pulling":return a.pulling?"":s.pullingText.value;case"loosing":return a.loosing?"":s.loosingText.value;case"loading":return a.loading?"":s.loadingText.value;default:return""}}),p=l.computed(()=>({transitionDuration:`${n.duration}s`,transform:d.distance?`translate3d(0,${d.distance}px, 0)`:""})),h=l.computed(()=>{const F={};return n.headHeight!=50&&(F.height=Ie(n.headHeight)),F}),g=F=>{const L=+(n.pullDistance||n.headHeight);let E=F;return F>L&&(F<L*2?E=(F+L)/2:E=L+F/4),Math.round(E)},T=(F,L)=>{const E=+(n.pullDistance||n.headHeight);d.distance=F,L?d.status="loading":F===0?d.status="normal":F<E?d.status="pulling":d.status="loosing",r("change",{status:d.status,distance:F})},w=()=>d.status!=="loading"&&d.status!=="complete",N=()=>c.value==window?_r()==0:c.value&&c.value.scrollTop==0,z=F=>{w()&&(N()?(u.start(F),d.isPullRefresh=!0,d.moving=!0):(d.distance=0,d.isPullRefresh=!1))},B=F=>{w()&&d.moving&&(u.move(F),u.isVertical()&&u.state.deltaY>0&&d.isPullRefresh&&(F.cancelable&&F.preventDefault(),T(g(u.state.deltaY))))},_=()=>{d.moving=!1,d.isPullRefresh&&w()&&u.state.deltaY&&(d.status==="loosing"?(T(+n.headHeight,!0),r("update:modelValue",!0),l.nextTick(()=>r("refresh"))):T(0)),setTimeout(()=>{u.reset()},0)};return l.watch(()=>n.modelValue,F=>{F?T(+n.headHeight,!0):T(0)}),()=>{const F=[];let L=null;if(d.status==="loading"){if(L=a?.loading?.()??null,!L){const G={class:["fox-pull-refresh-container-topbox-icon"]};L=l.h(o,G)}}else d.status==="pulling"?L=a?.pulling?.()??null:d.status==="loosing"&&(L=a?.loosing?.()??null);L&&F.push(L);const E={class:["fox-pull-refresh-container-topbox-text"]},k=l.h("dive",E,[V.value]);F.push(k);const x={class:["fox-pull-refresh-container-topbox"],style:h.value},j=l.h("div",x,F),C={class:"fox-pull-refresh-container",style:p.value},I=l.h("div",C,[j,a?.default?.()]),R={ref:f,class:v.value};return Il()?Object.assign(R,{onTouchstart:z,onTouchmove:B,onTouchend:_}):Object.assign(R,{onMousedown:z,onMousemove:B,onMouseup:_}),l.h("div",R,[I])}}}),{componentName:pd,create:yd,scope:bd}=ie("pull-refresh"),Vl=yd(md(pd,bd,yl));function vd(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 r=e,a=l.computed(()=>({[r]:!0})),i=l.computed(()=>o.icon?{[`${r}__icon`]:!0,[`${r}__icon-${o.type}`]:!0}:{[`${r}__mark`]:!0,[`${r}__mark-${o.type}`]:!0}),s=l.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),u=l.computed(()=>{const c={[`${r}__text`]:!0,[`${r}__text-${o.type}`]:!0};return o.textPosition==="left"?c["is-left"]=!0:c["is-right"]=!0,c}),f=l.computed(()=>o.color?{color:o.color}:null);return()=>{let c=null;if(n.mark)c=n.mark()[0];else{const h={class:i.value,style:s.value};c=l.h(o.icon??"div",h)}const d={class:u.value,style:f.value},v=n.default?n.default():[],V=l.h("div",d,v),p={class:a.value};return o.textPosition==="right"?l.h("div",p,[c,V]):l.h("div",p,[V,c])}}}}const{componentName:wd,create:Sd,scope:Gh}=ie("indicator"),Fl=Sd(vd(wd));function xd(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 r=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(r)},500)}const Td={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],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},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function $d(e,t,o,n=!1){return{props:{...Td},emits:["click"],setup(r,a){const i=l.ref(null),s=l.computed(()=>{const N={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(N[`${e}--${r.type??"default"}`]=!0),r.size&&(N[`${e}--${r.size}`]=!0),N}),u=l.computed(()=>{const N={},z=r.textColor??r.color;return z&&(N.color=z),N}),f=(N,z)=>{let B=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const _=r.highlightFilter;if(N.indexOf(_)!==-1){const L=N.replace(new RegExp(_,"g"),`<span>${_}</span>`);z.innerHTML=L,z.class["is-highlight"]=!0,B=l.h(r.tag,z)}}else if(typeof r.highlightFilter=="function"){const _=r.highlightFilter(N);_&&(z.innerHTML=_,z.class["is-highlight"]=!0,B=l.h(r.tag,z))}return B},c=N=>{a.emit("click",N)};let d="";const v=()=>{const N=i.value;if(!N)return;const z=N.clientWidth;xd(N,B=>{const _=N.innerHTML??"";pe(_)||B<z||(d?o?.show(N,_,{type:"text",id:d,showArrow:r.showArrow},!0):d=o?.show(N,_,{type:"text",showArrow:r.showArrow},!0)??"")})},V=()=>{d&&o?.hide(d)};let p=null;const h=N=>{p||(p=setTimeout(()=>{v(),p=null},r.showAfter??0))},g=N=>{p&&(clearTimeout(p),p=null),setTimeout(()=>{V()},r.hideAfter??0)},T=()=>{const N=i.value;N&&(N.addEventListener("mouseover",h),N.addEventListener("mouseleave",g))},w=()=>{const N=i.value;N&&(N.removeEventListener("mouseover",h),N.removeEventListener("mouseleave",g))};return l.onMounted(()=>{!se(r.showOverflowTooltip)||!o||T()}),l.onBeforeUnmount(()=>{!se(r.showOverflowTooltip)||!o||w()}),()=>{const N={onClick:c,class:s.value,style:u.value,ref:i};let z=null;if(se(r.numberFormat)&&typeof a.slots.default=="function"){const L=a.slots.default();if(Array.isArray(L)&&L.length===1){const E=L[0].type.toString();if(E==="Symbol(Text)"||E==="Symbol(v-txt)"){const k=Se(r.digits),x=Se(r.decimalLength),j=se(r.autoPadding);let C=`${L[0].children}`,I=C.split("").reverse().join("");I=Pt(I,x,j,k,r.separator),C=I.split("").reverse().join(""),r.highlightFilter!==void 0&&(z=f(C,N)),z||(N.innerHTML=C,z=l.h(r.tag,N))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const L=a.slots.default();if(Array.isArray(L)&&L.length===1){const E=L[0].type.toString();if(E==="Symbol(Text)"||E==="Symbol(v-txt)"){const k=`${L[0].children}`;z=f(k,N),z||(N.innerHTML=k,z=l.h(r.tag,N))}}}z||(z=l.h(r.tag,N,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return z;let _=null;if(r.icon){const L={[`${e}__mark-wrap`]:!0};r.type&&(L[`${e}__mark-wrap--${r.type}`]=!0);const E={},k=r.color;k&&(E.color=k);const x={class:L,style:E};_=l.h("view",x,l.h(r.icon))}else if(a.slots.mark){const L={[`${e}__mark-wrap`]:!0};r.type&&(L[`${e}__mark-wrap--${r.type}`]=!0);const E={},k=r.color;k&&(E.color=k);const x={class:L,style:E};_=l.h("view",x,{default:a.slots.mark})}else{const L={[`${e}__mark`]:!0};r.type&&(L[`${e}__mark--${r.type??"default"}`]=!0);const E={},k=r.color;k&&(E["background-color"]=k);const x={class:L,style:E};_=l.h("view",x)}const F={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return l.h("view",F,[_,z])}}}}const{componentName:Cd,create:Nd,scope:Ed}=ie("text"),Dl=Nd($d(Cd,Ed,Re,!1)),kd={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:Ne.ArrowUp}};function Id(e,t,o){return{props:{...kd},emits:["click","update:modelValue"],setup(n,{emit:r}){const a=l.computed(()=>{const d={[`${e}`]:!0};return n.disabled?d[`${e}__disabled`]=!0:d[`${e}__${n.type}`]=!0,d}),i=ge(n,"modelValue"),s=l.computed(()=>i.value?n.expandText??"":n.collapseText??""),u=l.computed(()=>({[`${e}__text`]:!0})),f=l.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),c=()=>{r("update:modelValue",!i.value)};return()=>{const d=[];if(s.value){const h={class:u.value},g=l.h("span",h,[s.value]);d.push(g)}const v={class:f.value},V=o(n.icon,v);return V&&d.push(V),l.h("div",{class:a.value,onClick:c},d)}}}}const{componentName:Od,create:Vd,scope:Fd}=ie("more-button"),Rl=Vd(Id(Od,Fd,(e,t)=>(e=e??Ne.ArrowUp,l.h(b.ElIcon,t,{default:()=>[l.h(e)]}))));function Dd(e){return e===window}const jr=e=>{const t=l.unref(e);if(Dd(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}},{componentName:Rd,create:Ad,scope:Xh}=ie("tour"),Ld=Ad({components:{Close:Ne.Close,ElPopover:b.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=Rd,n=l.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=l.ref({}),a=l.computed(()=>`${o}`),i=l.computed(()=>{const{offset:p,maskWidth:h,maskHeight:g}=e,{width:T,height:w,left:N,top:z}=r.value,B=e.steps[n.active].offset??p,_=[N+T/2,z+w/2],F=Number(h||T),L=Number(g||w);return{width:`${F+ +B.left+B.right}px`,height:`${L+B.top+B.bottom}px`,top:`${_[1]-L/2-+B.top}px`,left:`${_[0]-F/2-+B.left}px`}}),s=p=>{p=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,l.nextTick(()=>{n.showPopup=!0,c()}),t("change",n.active)},u=p=>p.popoverWidth??e.width,f=p=>p.location??e.location,c=()=>{const p=document.querySelector(`${e.steps[n.active].target}`),h=jr(p);r.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)},v=()=>{e.closeOnClickOverlay&&d()},V=(p,h=0)=>{p&&c(),e.steps,n.active=h,n.showTour=p,n.showPopup=p};return l.onMounted(()=>{V(e.modelValue,e.current)}),l.watch(()=>e.modelValue,p=>{V(p)}),{...l.toRefs(n),classes:a,maskStyle:i,changeStep:s,popoverWidth:u,popoverLocation:f,close:d,handleClickMask:v}}}),Md={key:0,class:"fox-tour__content"},Bd={key:0,class:"fox-tour__content-top"},_d={class:"fox-tour__content-inner"},qd={class:"fox-tour__content-bottom"},Pd={class:"fox-tour__content-bottom-init"},jd={class:"fox-tour__content-bottom-operate"},zd={key:1,class:"fox-tour__content fox-tour__content-tile"},Hd={class:"fox-tour__content-inner"};function Kd(e,t,o,n,r,a){const i=l.resolveComponent("Close"),s=l.resolveComponent("fox-button"),u=l.resolveComponent("ElPopover");return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(e.classes)},[l.withDirectives(l.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...f)=>e.handleClickMask&&e.handleClickMask(...f))},null,512),[[l.vShow,e.showTour]]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(f,c)=>(l.openBlock(),l.createElementBlock("div",{key:c,style:{height:"0"}},[c==e.active?(l.openBlock(),l.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(f),width:e.popoverWidth(f)},{reference:l.withCtx(()=>[e.showTour?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:l.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(l.openBlock(),l.createElementBlock("div",Md,[e.showTitleBar?(l.openBlock(),l.createElementBlock("div",Bd,[l.createElementVNode("div",{onClick:t[1]||(t[1]=(...d)=>e.close&&e.close(...d))},[l.createVNode(i,{class:"fox-tour__content-top-close"})])])):l.createCommentVNode("",!0),l.createElementVNode("div",_d,l.toDisplayString(f.content),1),l.createElementVNode("div",qd,[l.createElementVNode("div",Pd,l.toDisplayString(e.active+1)+"/"+l.toDisplayString(e.steps.length),1),l.createElementVNode("div",jd,[l.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(l.openBlock(),l.createBlock(s,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=d=>e.changeStep("prev"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.prevStepText),1)]),_:1})):l.createCommentVNode("",!0)]),e.steps.length-1==e.active?(l.openBlock(),l.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(l.openBlock(),l.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=d=>e.changeStep("next"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.nextStepText),1)]),_:1})):l.createCommentVNode("",!0)])])])])):l.createCommentVNode("",!0),e.type=="tile"?(l.openBlock(),l.createElementBlock("div",zd,[l.createElementVNode("div",Hd,l.toDisplayString(f.content),1)])):l.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):l.createCommentVNode("",!0)]))),128))],2)}const Al=je(Ld,[["render",Kd]]),Ae=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,ft=e=>e==null;class Wd{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,o){this.startMove=t,this.updateMove=o,this.isTouch=Il()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const o=Ol(),n=(r,a,i,s)=>{this.updateMove({x:r,y:a})};this.touchstart=r=>{this.moving||(o.start(r),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=r=>{this.moving&&(o.move(r),n(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{n(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},this.els.forEach(r=>{this.touchstart&&r.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(t=>{this.touchstart&&t.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function zr(e,t){return new Wd(e,t)}var Hr;const Ll=typeof window<"u";Ll&&((Hr=window?.navigator)!=null&&Hr.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let St=[];const Kr=e=>{const t=e;t.key==="Escape"&&St.forEach(o=>o(t))},Yd=e=>{l.onMounted(()=>{St.length===0&&document.addEventListener("keydown",Kr),Ll&&St.push(e)}),l.onBeforeUnmount(()=>{St=St.filter(t=>t!==e),St.length===0&&Ll&&document.removeEventListener("keydown",Kr)})},Ml="fox-focus-trap.focus-after-trapped",Bl="fox-focus-trap.focus-after-released",Gd="fox-focus-trap.focusout-prevented",Wr={cancelable:!0,bubbles:!1},Ud={cancelable:!0,bubbles:!1},Yr="foxFocusAfterTrapped",Gr="foxFocusAfterReleased",Xd=Symbol("foxFocusTrap"),_l=l.ref(),hn=l.ref(0),ql=l.ref(0);let gn=0;const Ur=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const r=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||r?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},Zd=(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},Xr=(e,t)=>{for(const o of e)if(!Zd(o,t))return o},Jd=e=>{const t=Ur(e),o=Xr(t,e),n=Xr(t.reverse(),e);return[o,n]},Qd=e=>e instanceof HTMLInputElement&&"select"in e,ot=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),ql.value=window.performance.now(),e!==o&&Qd(e)&&t&&e.select()}};function Zr(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const eh=()=>{let e=[];return{push:n=>{const r=e[0];r&&n!==r&&r.pause(),e=Zr(e,n),e.unshift(n)},remove:n=>{e=Zr(e,n),e[0]?.resume?.()}}},th=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(ot(n,t),document.activeElement!==o)return},Jr=eh(),nh=()=>hn.value>ql.value,mn=()=>{_l.value="pointer",hn.value=window.performance.now()},Qr=()=>{_l.value="keyboard",hn.value=window.performance.now()},lh=()=>(l.onMounted(()=>{gn===0&&(document.addEventListener("mousedown",mn),document.addEventListener("touchstart",mn),document.addEventListener("keydown",Qr)),gn++}),l.onBeforeUnmount(()=>{gn--,gn<=0&&(document.removeEventListener("mousedown",mn),document.removeEventListener("touchstart",mn),document.removeEventListener("keydown",Qr))}),{focusReason:_l,lastUserFocusTimestamp:hn,lastAutomatedFocusTimestamp:ql}),pn=e=>new CustomEvent(Gd,{...Ud,detail:e}),{componentName:Zh,create:oh,scope:Jh}=ie("focus-trap"),rh=oh({props:{loop:{type:[Boolean]},trapped:{type:[Boolean,String],required:!1,default:!1},escape:{type:[Boolean],required:!1,default:!1},focusTrapEl:{type:Object},focusStartEl:{type:[Object,String],default:"first"}},emits:[Yr,Gr,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=l.ref();let r,a;const{focusReason:i}=lh();Yd(h=>{se(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&&!se(e.trapped)||s.paused)return;const{key:g,altKey:T,ctrlKey:w,metaKey:N,currentTarget:z,shiftKey:B}=h,{loop:_}=e,F=g==="Tab"&&!T&&!w&&!N,L=document.activeElement;if(F&&L){const E=z,[k,x]=Jd(E);if(k&&x){if(!B&&L===x){const C=pn({focusReason:i.value});o("focusout-prevented",C),C.defaultPrevented||(h.preventDefault(),_&&ot(k,!0))}else if(B&&[k,E].includes(L)){const C=pn({focusReason:i.value});o("focusout-prevented",C),C.defaultPrevented||(h.preventDefault(),_&&ot(x,!0))}}else if(L===E){const C=pn({focusReason:i.value});o("focusout-prevented",C),C.defaultPrevented||h.preventDefault()}}};l.provide(Xd,{focusTrapRef:n,onKeydown:u}),l.watch(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),l.watch([n],([h],[g])=>{h&&(h.addEventListener("keydown",u),h.addEventListener("focusin",d),h.addEventListener("focusout",v)),g&&(g.removeEventListener("keydown",u),g.removeEventListener("focusin",d),g.removeEventListener("focusout",v))});const f=h=>{o(Yr,h)},c=h=>o(Gr,h),d=h=>{const g=l.unref(n);if(!g)return;const T=h.target,w=h.relatedTarget,N=T&&g.contains(T);se(e.trapped)||w&&g.contains(w)||(r=w),N&&o("focusin",h),!s.paused&&se(e.trapped)&&(N?a=T:ot(a,!0))},v=h=>{const g=l.unref(n);if(!(s.paused||!g))if(!e.escape&&se(e.trapped)){const T=h.relatedTarget;!Vn(T)&&!g.contains(T)&&setTimeout(()=>{if(!s.paused&&se(e.trapped)){const w=pn({focusReason:i.value});o("focusout-prevented",w),w.defaultPrevented||ot(a,!0)}},0)}else{const T=h.target;T&&g.contains(T)||o("focusout",h)}};async function V(){await l.nextTick();const h=l.unref(n);if(h){Jr.push(s);const g=h.contains(document.activeElement)?r:document.activeElement;if(r=g,!h.contains(g)){const w=new Event(Ml,Wr);h.addEventListener(Ml,f),h.dispatchEvent(w),w.defaultPrevented||l.nextTick(()=>{let N=e.focusStartEl;no(N)||(ot(N),document.activeElement!==N&&(N="first")),N==="first"&&th(Ur(h),!0),(document.activeElement===g||N==="container")&&ot(h)})}}}function p(){const h=l.unref(n);if(h){h.removeEventListener(Ml,f);const g=new CustomEvent(Bl,{...Wr,detail:{focusReason:i.value}});h.addEventListener(Bl,c),h.dispatchEvent(g),!g.defaultPrevented&&(i.value=="keyboard"||!nh())&&ot(r??document.body,!0),h.removeEventListener(Bl,f),Jr.remove(s)}}return l.onMounted(()=>{se(e.trapped)&&V(),l.watch(()=>e.trapped,h=>{se(h)?V():p()})}),l.onBeforeUnmount(()=>{se(e.trapped)&&p()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:ah,create:ih,scope:eg}=ie("floating-window"),sh=Symbol.for("InnerPageScopeKey"),uh=Symbol.for("PageWrapperKey"),ch={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},teleport:{type:[String,Element],default:"body"},fixedNavTeleport:{type:[String,Element]},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},footerDraggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},fh=ih({inheritAttrs:!1,components:{FoxIcon:b.ElIcon,FocusTrap:rh},props:{...ch},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=ah,n=l.ref(e.modelValue),r=l.computed(()=>!e.teleport);l.watch(()=>e.modelValue,$=>{n.value=$});const a=l.computed(()=>n.value===!1?!1:!L.value),i=l.ref(e.left),s=l.ref(e.top),u=l.ref(e.right),f=l.ref(e.bottom),c=l.computed(()=>{const $=["fox-floating-window"];return e.customClass&&$.push(e.customClass),$}),d=l.computed(()=>{const $={};return ft(i.value)?$.left="auto":$.left=Ae(i.value),ft(s.value)?$.top="auto":$.top=Ae(s.value),ft(u.value)?$.right="auto":$.right=Ae(u.value),ft(f.value)?$.bottom="auto":$.bottom=Ae(f.value),ft(e.zIndex)||($["z-index"]=Ae(e.zIndex)),ft(_.value)||($.height=_.value),ft(F.value)||($.width=F.value),$}),v=l.computed(()=>e.closeIcon??Ne.Close),V=l.computed(()=>e.collapseIcon??Ne.ArrowUp),p=l.computed(()=>e.collapseText??""),h=l.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ne.ArrowRight:e.expandIcon??Ne.ArrowLeft),g=l.computed(()=>e.expandText??e.title??"展开"),T=l.computed(()=>({[`${o}__collapse-text`]:!0})),w=l.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!L.value,"is-collapse":L.value})),N=l.ref(),z=l.ref(null),B=l.ref(null),_=l.computed(()=>Ae(e.height)||""),F=l.computed(()=>Ae(e.width)||""),L=l.ref(se(e.collapse)),E=($,W=!0)=>{L.value!==$&&(L.value=$,$?S():A(),t("update:collapse",$),$&&typeof j.onHide=="function"?j.onHide():!$&&typeof j.onShow=="function"&&j.onShow())};l.watch(()=>e.collapse,$=>{E($)});const k=()=>{x()},x=$=>{$=$??!L.value,E($)};l.provide(sh,!0);const j={setCollapse:E,setFixedNavVisible:$=>{te.value=$}};l.provide(uh,j);const C=()=>{typeof j.beforeClose=="function"?j.beforeClose(()=>{n.value=!1}):n.value=!1},I=l.ref(null),R=l.computed(()=>!e.fixedNavTeleport),G=l.computed(()=>{const $=["fox-floating-window__fixednav"];return e.expandClass&&$.push(e.expandClass),e.collapsePosition==="left"?$.push("is-left"):e.collapsePosition==="right"&&$.push("is-right"),$}),Y=l.ref(""),Z=l.computed(()=>{const $={};return Y.value?$.top=Y.value:e.collapseTop&&($.top=e.collapseTop),$}),X=l.ref(L.value),te=l.computed({set:$=>{X.value=$},get:()=>n.value===!1?!1:X.value});let oe=null;const O=()=>{typeof oe=="function"&&(oe(),oe=null)},S=()=>{I.value&&I.value.classList.add("slide-in"),te.value=!0,oe=()=>{I.value&&I.value.classList.remove("slide-in")}},A=()=>{I.value&&I.value.classList.add("slide-out"),oe=()=>{I.value&&I.value.classList.remove("slide-out"),te.value=!1}},D=()=>{i.value=null,s.value=null,u.value=null,f.value=null},y={x:0,y:0},q=zr($=>{if(!N.value)return;const W=N.value;if(D(),e.origin==="left-top")i.value=W.offsetLeft,s.value=W.offsetTop,y.x=i.value,y.y=s.value;else if(e.origin==="left-bottom"){const ee=document.documentElement.clientHeight||document.body.clientHeight;i.value=W.offsetLeft,f.value=ee-(W.offsetTop+W.offsetHeight),y.x=i.value,y.y=f.value}else if(e.origin==="right-bottom"){const ee=document.documentElement.clientWidth||document.body.clientWidth,le=document.documentElement.clientHeight||document.body.clientHeight;u.value=ee-(W.offsetLeft+W.offsetWidth),f.value=le-(W.offsetTop+W.offsetHeight),y.x=u.value,y.y=f.value}else{const ee=document.documentElement.clientWidth||document.body.clientWidth;u.value=ee-(W.offsetLeft+W.offsetWidth),s.value=W.offsetTop,y.x=u.value,y.y=s.value}},$=>{if(!N.value)return;const W=N.value;D(),e.origin==="left-top"?(i.value=y.x+$.x,s.value=y.y+$.y,W.style.left=Ae(i.value),W.style.top=Ae(s.value)):e.origin==="left-bottom"?(i.value=y.x+$.x,f.value=y.y-$.y,W.style.left=Ae(i.value),W.style.bottom=Ae(f.value)):e.origin==="right-bottom"?(u.value=y.x-$.x,f.value=y.y-$.y,W.style.right=Ae(u.value),W.style.bottom=Ae(f.value)):(u.value=y.x-$.x,s.value=y.y+$.y,W.style.right=Ae(u.value),W.style.top=Ae(s.value))}),M={x:0,y:0},J=zr($=>{I.value&&(M.x=I.value.offsetLeft,M.y=I.value.offsetTop)},$=>{if(!I.value)return;const W=M.y+$.y;Y.value=`${W}px`}),ne=()=>{if(N.value){const $=N.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");B.value=$}};return l.onMounted(()=>{if(e.draggable&&N.value){const $=[];z.value&&$.push(z.value),e.footerDraggable&&(ne(),B.value&&$.push(B.value)),q.open($)}e.collapse===!0&&E(e.collapse,!1),I.value&&J.open(I.value)}),l.onBeforeUnmount(()=>{e.draggable&&z.value&&q.close(),I.value&&J.close()}),{classes:c,styles:d,isShow:a,closeIcon:v,onClose:C,dialogRef:N,headerRef:z,onClickToggle:k,collapseIcon:V,collapseText:p,collapseTextClasses:T,collapseIconClasses:w,expandIcon:h,expandText:g,isShowFixedNav:te,fixedNavRef:I,fixedNavClasses:G,fixedNavStyles:Z,onAnimationEnd:O,teleportDisabled:r,fixedNavTeleportDisabled:R}}}),dh={ref:"headerRef",class:"fox-floating-window__header"},hh={class:"fox-floating-window__title"},gh={class:"fox-floating-window__tools"},mh={class:"fox-floating-window__body"},ph={class:"fox-floating-window__fixednav__text"};function yh(e,t,o,n,r,a){const i=l.resolveComponent("FoxIcon"),s=l.resolveComponent("FocusTrap");return l.openBlock(),l.createElementBlock(l.Fragment,null,[(l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[l.createVNode(l.Transition,{name:"fox-floating-window-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("div",{ref:"dialogRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles),tabindex:"-1"},[l.createVNode(s,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:l.withCtx(()=>[l.createElementVNode("div",dh,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("span",hh,l.toDisplayString(e.title),1),l.createElementVNode("div",gh,[e.showCollapse?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[l.createElementVNode("span",{class:l.normalizeClass(e.collapseTextClasses)},l.toDisplayString(e.collapseText),3),l.createVNode(i,{class:l.normalizeClass(e.collapseIconClasses)},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):l.createCommentVNode("",!0),e.showClose?(l.openBlock(),l.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):l.createCommentVNode("",!0)])])],512),l.createElementVNode("div",mh,[l.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[l.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(l.openBlock(),l.createBlock(l.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[l.withDirectives(l.createElementVNode("div",{ref:"fixedNavRef",class:l.normalizeClass(e.fixedNavClasses),style:l.normalizeStyle(e.fixedNavStyles),onAnimationend:t[2]||(t[2]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[l.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:t[1]||(t[1]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[l.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.expandIcon)))]),_:1}),l.createElementVNode("div",ph,l.toDisplayString(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const Pl=je(fh,[["render",yh]]);function bh(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return To(o.name,()=>o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:tg,create:vh,scope:ng}=ie("domain-provider"),jl=vh(bh()),wh={initialVisibleObserverSize:{type:[Number],required:!1},initialInvisibleObserverHeight:{type:[String],required:!1,default:"250px"},disabled:{type:[Boolean],required:!1},loadPolicy:{type:[String],required:!1,default:"rolling"},rootMargin:{type:[String],required:!1,default:"250px 0px 250px 0px"},threshold:{type:[Array],required:!1,default:[0,.25]},root:{type:[Object,String]}};function Sh(e,t){return{inheritAttrs:!1,props:wh,setup(o,{slots:n}){if(st&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(v,V)=>{if(c===null){a.set(v,{visible:null,callback:V});return}r.has(v)&&c.unobserve(v),r.set(v,{visible:null,callback:V}),c.observe(v)},s=v=>{if(c===null){a.delete(v);return}r.has(v)&&(r.delete(v),c.unobserve(v))};let u=o.initialVisibleObserverSize;ii({acquire:()=>{const v=u>0;return u--,v},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:s});let c=null;const d=(v,V,p)=>{c=new IntersectionObserver(h=>{for(let g of h){let T=!1;g.intersectionRatio>0&&(T=!0);const w=r.get(g.target);if(w)try{if(o.loadPolicy==="lazy"&&!T&&w.visible!==null)return;w.visible=T,w.callback(T)}catch(N){console.error(N)}}},{root:v,rootMargin:V,threshold:p}),a.forEach((h,g)=>{r.set(g,h),c?.observe(g)}),a.clear()};l.watch([()=>o.root,()=>o.disabled],([v,V])=>{if(V||!v||c)return;let p=null;typeof v=="string"?p=document.querySelector(v):p=v,p&&d(p,o.rootMargin,o.threshold)},{immediate:!0}),l.onUnmounted(()=>{c&&(c.disconnect(),c=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:lg,create:xh,scope:og}=ie("rolling-provider"),zl=xh(Sh()),Th=[Bn,qn,Pn,jn,Kn,Te,Gn,Un,Vt,Xn,Zn,Jn,Qn,el,tl,nl,ol,rl,al,il,fn,cl,fl,dl,hl,gl,ml,pl,bl,vl,wl,Tl,$l,dn,Cl,Nl,El,kl,Vl,Dt,un,Fl,Dl,Rl,Al,Pl,jl,zl],$h=new Ba(Th,[Pa],"4.0.0");Object.defineProperty(m,"FoxAffix",{enumerable:!0,get:()=>b.ElAffix}),Object.defineProperty(m,"FoxAlert",{enumerable:!0,get:()=>b.ElAlert}),Object.defineProperty(m,"FoxAside",{enumerable:!0,get:()=>b.ElAside}),Object.defineProperty(m,"FoxAutoResizer",{enumerable:!0,get:()=>b.ElAutoResizer}),Object.defineProperty(m,"FoxAutocomplete",{enumerable:!0,get:()=>b.ElAutocomplete}),Object.defineProperty(m,"FoxAvatar",{enumerable:!0,get:()=>b.ElAvatar}),Object.defineProperty(m,"FoxBacktop",{enumerable:!0,get:()=>b.ElBacktop}),Object.defineProperty(m,"FoxBadge",{enumerable:!0,get:()=>b.ElBadge}),Object.defineProperty(m,"FoxBreadcrumb",{enumerable:!0,get:()=>b.ElBreadcrumb}),Object.defineProperty(m,"FoxBreadcrumbItem",{enumerable:!0,get:()=>b.ElBreadcrumbItem}),Object.defineProperty(m,"FoxButton",{enumerable:!0,get:()=>b.ElButton}),Object.defineProperty(m,"FoxButtonGroup",{enumerable:!0,get:()=>b.ElButtonGroup}),Object.defineProperty(m,"FoxCalendar",{enumerable:!0,get:()=>b.ElCalendar}),Object.defineProperty(m,"FoxCard",{enumerable:!0,get:()=>b.ElCard}),Object.defineProperty(m,"FoxCarousel",{enumerable:!0,get:()=>b.ElCarousel}),Object.defineProperty(m,"FoxCarouselItem",{enumerable:!0,get:()=>b.ElCarouselItem}),Object.defineProperty(m,"FoxCascader",{enumerable:!0,get:()=>b.ElCascader}),Object.defineProperty(m,"FoxCascaderPanel",{enumerable:!0,get:()=>b.ElCascaderPanel}),Object.defineProperty(m,"FoxCheckTag",{enumerable:!0,get:()=>b.ElCheckTag}),Object.defineProperty(m,"FoxCheckbox",{enumerable:!0,get:()=>b.ElCheckbox}),Object.defineProperty(m,"FoxCheckboxButton",{enumerable:!0,get:()=>b.ElCheckboxButton}),Object.defineProperty(m,"FoxCheckboxGroup",{enumerable:!0,get:()=>b.ElCheckboxGroup}),Object.defineProperty(m,"FoxCol",{enumerable:!0,get:()=>b.ElCol}),Object.defineProperty(m,"FoxCollapse",{enumerable:!0,get:()=>b.ElCollapse}),Object.defineProperty(m,"FoxCollapseItem",{enumerable:!0,get:()=>b.ElCollapseItem}),Object.defineProperty(m,"FoxCollapseTransition",{enumerable:!0,get:()=>b.ElCollapseTransition}),Object.defineProperty(m,"FoxColorPicker",{enumerable:!0,get:()=>b.ElColorPicker}),Object.defineProperty(m,"FoxConfigProvider",{enumerable:!0,get:()=>b.ElConfigProvider}),Object.defineProperty(m,"FoxContainer",{enumerable:!0,get:()=>b.ElContainer}),Object.defineProperty(m,"FoxDatePicker",{enumerable:!0,get:()=>b.ElDatePicker}),Object.defineProperty(m,"FoxDescriptions",{enumerable:!0,get:()=>b.ElDescriptions}),Object.defineProperty(m,"FoxDescriptionsItem",{enumerable:!0,get:()=>b.ElDescriptionsItem}),Object.defineProperty(m,"FoxDialog",{enumerable:!0,get:()=>b.ElDialog}),Object.defineProperty(m,"FoxDivider",{enumerable:!0,get:()=>b.ElDivider}),Object.defineProperty(m,"FoxDrawer",{enumerable:!0,get:()=>b.ElDrawer}),Object.defineProperty(m,"FoxDropdown",{enumerable:!0,get:()=>b.ElDropdown}),Object.defineProperty(m,"FoxDropdownItem",{enumerable:!0,get:()=>b.ElDropdownItem}),Object.defineProperty(m,"FoxDropdownMenu",{enumerable:!0,get:()=>b.ElDropdownMenu}),Object.defineProperty(m,"FoxEmpty",{enumerable:!0,get:()=>b.ElEmpty}),Object.defineProperty(m,"FoxFooter",{enumerable:!0,get:()=>b.ElFooter}),Object.defineProperty(m,"FoxForm",{enumerable:!0,get:()=>b.ElForm}),Object.defineProperty(m,"FoxFormItem",{enumerable:!0,get:()=>b.ElFormItem}),Object.defineProperty(m,"FoxHeader",{enumerable:!0,get:()=>b.ElHeader}),Object.defineProperty(m,"FoxIcon",{enumerable:!0,get:()=>b.ElIcon}),Object.defineProperty(m,"FoxImage",{enumerable:!0,get:()=>b.ElImage}),Object.defineProperty(m,"FoxImageViewer",{enumerable:!0,get:()=>b.ElImageViewer}),Object.defineProperty(m,"FoxInput",{enumerable:!0,get:()=>b.ElInput}),Object.defineProperty(m,"FoxInputNumber",{enumerable:!0,get:()=>b.ElInputNumber}),Object.defineProperty(m,"FoxLink",{enumerable:!0,get:()=>b.ElLink}),Object.defineProperty(m,"FoxMain",{enumerable:!0,get:()=>b.ElMain}),Object.defineProperty(m,"FoxMenu",{enumerable:!0,get:()=>b.ElMenu}),Object.defineProperty(m,"FoxMenuItem",{enumerable:!0,get:()=>b.ElMenuItem}),Object.defineProperty(m,"FoxMenuItemGroup",{enumerable:!0,get:()=>b.ElMenuItemGroup}),Object.defineProperty(m,"FoxOption",{enumerable:!0,get:()=>b.ElOption}),Object.defineProperty(m,"FoxOptionGroup",{enumerable:!0,get:()=>b.ElOptionGroup}),Object.defineProperty(m,"FoxPageHeader",{enumerable:!0,get:()=>b.ElPageHeader}),Object.defineProperty(m,"FoxPagination",{enumerable:!0,get:()=>b.ElPagination}),Object.defineProperty(m,"FoxPopconfirm",{enumerable:!0,get:()=>b.ElPopconfirm}),Object.defineProperty(m,"FoxPopover",{enumerable:!0,get:()=>b.ElPopover}),Object.defineProperty(m,"FoxPopper",{enumerable:!0,get:()=>b.ElPopper}),Object.defineProperty(m,"FoxProgress",{enumerable:!0,get:()=>b.ElProgress}),Object.defineProperty(m,"FoxRadio",{enumerable:!0,get:()=>b.ElRadio}),Object.defineProperty(m,"FoxRadioButton",{enumerable:!0,get:()=>b.ElRadioButton}),Object.defineProperty(m,"FoxRadioGroup",{enumerable:!0,get:()=>b.ElRadioGroup}),Object.defineProperty(m,"FoxRate",{enumerable:!0,get:()=>b.ElRate}),Object.defineProperty(m,"FoxResult",{enumerable:!0,get:()=>b.ElResult}),Object.defineProperty(m,"FoxRow",{enumerable:!0,get:()=>b.ElRow}),Object.defineProperty(m,"FoxScrollbar",{enumerable:!0,get:()=>b.ElScrollbar}),Object.defineProperty(m,"FoxSelect",{enumerable:!0,get:()=>b.ElSelect}),Object.defineProperty(m,"FoxSelectV2",{enumerable:!0,get:()=>b.ElSelectV2}),Object.defineProperty(m,"FoxSkeleton",{enumerable:!0,get:()=>b.ElSkeleton}),Object.defineProperty(m,"FoxSkeletonItem",{enumerable:!0,get:()=>b.ElSkeletonItem}),Object.defineProperty(m,"FoxSlider",{enumerable:!0,get:()=>b.ElSlider}),Object.defineProperty(m,"FoxSpace",{enumerable:!0,get:()=>b.ElSpace}),Object.defineProperty(m,"FoxStep",{enumerable:!0,get:()=>b.ElStep}),Object.defineProperty(m,"FoxSteps",{enumerable:!0,get:()=>b.ElSteps}),Object.defineProperty(m,"FoxSubMenu",{enumerable:!0,get:()=>b.ElSubMenu}),Object.defineProperty(m,"FoxSwitch",{enumerable:!0,get:()=>b.ElSwitch}),Object.defineProperty(m,"FoxTabPane",{enumerable:!0,get:()=>b.ElTabPane}),Object.defineProperty(m,"FoxTable",{enumerable:!0,get:()=>b.ElTable}),Object.defineProperty(m,"FoxTableColumn",{enumerable:!0,get:()=>b.ElTableColumn}),Object.defineProperty(m,"FoxTableV2",{enumerable:!0,get:()=>b.ElTableV2}),Object.defineProperty(m,"FoxTabs",{enumerable:!0,get:()=>b.ElTabs}),Object.defineProperty(m,"FoxTag",{enumerable:!0,get:()=>b.ElTag}),Object.defineProperty(m,"FoxTimePicker",{enumerable:!0,get:()=>b.ElTimePicker}),Object.defineProperty(m,"FoxTimeSelect",{enumerable:!0,get:()=>b.ElTimeSelect}),Object.defineProperty(m,"FoxTimeline",{enumerable:!0,get:()=>b.ElTimeline}),Object.defineProperty(m,"FoxTimelineItem",{enumerable:!0,get:()=>b.ElTimelineItem}),Object.defineProperty(m,"FoxTooltip",{enumerable:!0,get:()=>b.ElTooltip}),Object.defineProperty(m,"FoxTransfer",{enumerable:!0,get:()=>b.ElTransfer}),Object.defineProperty(m,"FoxTree",{enumerable:!0,get:()=>b.ElTree}),Object.defineProperty(m,"FoxTreeSelect",{enumerable:!0,get:()=>b.ElTreeSelect}),Object.defineProperty(m,"FoxTreeV2",{enumerable:!0,get:()=>b.ElTreeV2}),Object.defineProperty(m,"FoxUpload",{enumerable:!0,get:()=>b.ElUpload}),m.AutocompleteItem=rl,m.Broadcast=Fn,m.BroadcastKey=be,m.CascaderItem=ol,m.CheckboxItem=dl,m.Content=jn,m.DataItemsKey=gt,m.DateItem=Jn,m.DateUtils=qe,m.DialogItem=$l,m.Domain=Xt,m.DomainKey=Me,m.DomainProvider=jl,m.FloatingWindow=Pl,m.FooterBar=Pn,m.FoxAutocompleteItem=rl,m.FoxCascaderItem=ol,m.FoxCheckboxItem=dl,m.FoxContent=jn,m.FoxDateItem=Jn,m.FoxDialogItem=$l,m.FoxDomainProvider=jl,m.FoxFloatingWindow=Pl,m.FoxFooterBar=Pn,m.FoxGroup=Kn,m.FoxGroupSetting=pl,m.FoxHeaderBar=qn,m.FoxHintText=Vt,m.FoxIndicator=Fl,m.FoxInfiniteLoading=kl,m.FoxInputItem=Xn,m.FoxInputNumberItem=nl,m.FoxItem=Te,m.FoxMapping=Dt,m.FoxMoneyItem=tl,m.FoxMoreButton=Rl,m.FoxOverLay=dn,m.FoxPage=Bn,m.FoxPopup=Cl,m.FoxPrice=un,m.FoxPullRefresh=Vl,m.FoxRadioItem=fl,m.FoxRateItem=hl,m.FoxRollingProvider=zl,m.FoxRowItem=Un,m.FoxSearchBar=El,m.FoxSelectItem=Zn,m.FoxSlotItem=Gn,m.FoxStepsBar=Tl,m.FoxSwitchItem=gl,m.FoxTableItem=cl,m.FoxTableMappingColumn=al,m.FoxTableRadioColumn=il,m.FoxTableSetting=fn,m.FoxTabsBar=bl,m.FoxTabsContainer=vl,m.FoxTabsPane=wl,m.FoxText=Dl,m.FoxTimeItem=Qn,m.FoxTimeSelectItem=el,m.FoxToast=Nl,m.FoxTour=Al,m.FoxTreeSelectItem=ml,m.Group=Kn,m.GroupSetting=pl,m.HeaderBar=qn,m.HintText=Vt,m.Indicator=Fl,m.InfiniteLoading=kl,m.InputItem=Xn,m.InputNumberItem=nl,m.Item=Te,m.Mapping=Dt,m.MoneyItem=tl,m.MoreButton=Rl,m.OverLay=dn,m.Page=Bn,m.Popup=Cl,m.Price=un,m.PriorityPolicy=_e,m.PullRefresh=Vl,m.RadioItem=fl,m.RateItem=hl,m.RollingProvider=zl,m.RowItem=Un,m.SearchBar=El,m.SelectItem=Zn,m.SlotItem=Gn,m.StepsBar=Tl,m.SwitchItem=gl,m.TableItem=cl,m.TableMappingColumn=al,m.TableRadioColumn=il,m.TableSetting=fn,m.TabsBar=bl,m.TabsContainer=vl,m.TabsPane=wl,m.Text=Dl,m.TimeItem=Qn,m.TimeSelectItem=el,m.Toast=Nl,m.Tour=Al,m.TreeSelectItem=ml,m.UniqueID=_o,m.ValidateSchema=wo,m.ValidateSchemaKey=ze,m.cancelRaf=na,m.clearNonNumber=ga,m.clone=In,m.compareTo=Cn,m.createBroadcast=Kt,m.createValidateSchema=Yt,m.debounce=kt,m.debounceRef=Ea,m.decimalLength=ho,m.default=$h,m.defineBroadcast=ba,m.defineConfigDomain=To,m.defineDataItem=Co,m.defineDomain=Rn,m.defineItem=$e,m.definePageState=Eo,m.defineSimpleItem=No,m.deleteGlobalValidator=Ta,m.disabledProperty=De,m.divide=$n,m.excludeProps=ke,m.extend=it,m.floatData=ya,m.getGlobalValidateCheckEvents=yo,m.getGlobalValidateResetEvents=vo,m.getPageContentAreaHeight=Jt,m.getPageContentAreaWidth=Qt,m.getPageFooterAreaHeight=Ot,m.getPageHeaderAreaHeight=It,m.getRootDomain=mt,m.hasSymbol=ro,m.includeProps=mo,m.indexOf=ma,m.installRules=$o,m.integerLength=fo,m.isArray=oa,m.isArrayLike=io,m.isBrowser=st,m.isDate=ia,m.isESModule=ua,m.isEmptyString=pe,m.isEqual=Ze,m.isFunction=En,m.isHidden=Ht,m.isInnerPage=Oa,m.isMap=ra,m.isNil=Vn,m.isNumberString=co,m.isObject=Xe,m.isPlainObject=kn,m.isPromise=lo,m.isRegExp=uo,m.isSet=aa,m.isString=no,m.isSubPage=Va,m.isSymbol=sa,m.isTouch=Il,m.isWindow=ao,m.lastIndexOf=pa,m.makeArray=ha,m.merge=so,m.multiply=Ql,m.negate=eo,m.nextTick=fa,m.numberFormat=Pt,m.objectToString=oo,m.once=ka,m.overrideGlobalValidateHandler=Sa,m.property=Ve,m.raf=Nn,m.readonlyProperty=Fe,m.setGlobalValidateCheckEvents=$a,m.setGlobalValidateHandler=wa,m.setGlobalValidateMessages=Na,m.setGlobalValidateResetEvents=Ca,m.setGlobalValidator=xa,m.throttle=xo,m.toBoolean=se,m.toNumber=Se,m.toPadding=We,m.toPx=he,m.toPxDesc=Ie,m.toTypeString=jt,m.toValue=ge,m.tryTimes=Ut,m.typeOf=zt,m.unNumberFormat=to,m.updatePageState=An,m.useBroadcast=Ct,m.useDomain=Je,m.useExpose=Ce,m.useInnerSize=_n,m.usePageState=Zt,m.usePosition=Lo,m.useRawTouch=Ol,m.useRect=jr,m.useSize=tn,m.useTouch=hd,m.valueLength=$t,Object.defineProperties(m,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});