@fox-js/foxui-pc 4.1.1-2 → 4.1.1-21

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 @@
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,tt,y,Ce,Le){"use strict";/*!
2
- * @fox-js/foxui-desktop v4.0.0 Tue Sep 24 2024 17:20:30 GMT+0800 (中国标准时间)
3
- */const Rt=window,Yr=typeof window<"u";function Gr(){return typeof Rt<"u"?Rt.requestAnimationFrame||Rt.webkitRequestAnimationFrame||function(e){Rt.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 Sat Aug 24 2024 07:04:11 GMT+0800 (中国标准时间)
5
- */function At(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]=hn(Ee(e),Ee(t)),o==1&&(n==1?e=dn(e):t=dn(t));let r=Pl(e,t);return o?o==2?"-"+Ee(r):e.length<r.length?Ee(r.substring(1)):"-"+Ee(dn(r)):Ee(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 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 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 bt(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=bt(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=vt(e),t=vt(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=vt(e.replace(".","")),t=vt(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=[],h=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 w=0;for(let F=t.length-1;F>=h&&F>=0;F--)u[F]>-1&&u[F]<e.length&&(w+=parseInt(e[u[F]--])*parseInt(t[F]));w+=i,i=Math.floor(w/10),f=w%10+f,h--}return f=vt(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 vt(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=Ee(t.replace(".","")),r>=0){let h=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(h==-1)e=Ee(e+new Array(r+1).join("0"));else if(r>h)e=e.replace(".",""),e=Ee(e+new Array(r-h+1).join("0"));else if(r<h){e=e.replace(".","");let f=e.length-h+r;e=Ee(e.substring(0,f)+"."+e.substring(f))}else r==h&&(e=Ee(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 h=u.length-u.indexOf(".")-1;u=u.replace(".",""),s>u.length&&(h+=s-u.length,u=u+new Array(s-u.length+1).join("0")),a=h,i="0."+new Array(h).join("0")}for(o=o+2;a<=o;){let h=0;for(;parseInt(u)>=parseInt(t);)u=At(u,"-"+t),h++;i+=h,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?"-":"")+Ee(bt(i,o-2))}function yn(e,t){return e=e.toString(),t=t.toString(),t=bn(t),At(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,bt(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=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=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 bt(t,o,n)}round(t=0,o=pe.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new fe(bt(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),At(t,o)}add(t){return new fe(At(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 Lt(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="",h=a.indexOf(".");h!=-1&&(i=a.substring(0,h),u=a.substring(h+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="",w=i.split("").reverse();for(let F=0;F<w.length;F++)c+=w[F]+((F+1)%n==0&&F+1!=w.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=>Mt(e)==="[object Map]",Qr=e=>Mt(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,Mt=e=>Zl.call(e),Tn=e=>Mt(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 h;Array.isArray(u)?h=i&&Array.isArray(i)?i:[]:h=i&&typeof i=="object"?i:{},t[s]=nt(r,h,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 Bt(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 _t(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=Bt(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=Bt(e),n=Bt(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],h=t[i];if(!Ye(u,h))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 En(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 wt(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 Nn{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 qt(e,t,o,n){const r=new Nn(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 Nn(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 St(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()?St(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()?St(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=t||l.hasInjectionContext()?St(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()?St(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 xt=new da;function ha(e){xt=e}function ga(e){xt?Object.assign(xt,e):xt=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 Tt(...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 Pt(e){return e.forEach(t=>{t.type==="required"&&(t.required===null||t.required===void 0)&&(t.required=!0),!t.type&&(t.required===!0||t.required===!1)&&(t.type="required")}),e}const 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=Pt(Tt(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=Pt(n);const r=Tt(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=xt;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=Tt(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Pt(t):this.rules=Pt([t]);const n=Tt(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=Tt(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),h=this.proxy??s;return u.validate(s,{context:h}).then(c=>{if(c.pass)this.success();else{let w="error";Array.isArray(c.errors)&&c.errors.length>0&&(w=c.errors[0].message??w,c.errors=[c.errors[0]],c.errors[0].ref=h),this.error(w)}return c}).catch(c=>{const w=c.message??`${c}`;return this.error(w),c})}}return Promise.resolve({pass:!0})}}function jt(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 zt=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 $t(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=$t((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 Ht(e,t,o,n=0,r=!0,a){let s=t,i=0;if(r){const h=e();if(i++,h){typeof a=="function"&&a(!0);return}if(i>o){typeof a=="function"&&a(!1);return}}const u=()=>{const h=e();if(i++,h){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"),ut=Symbol("DataItemsKey");class Kt{_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 Kt;function ct(){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 kn=Symbol("OriginalDateKey");function In(e,t,o=[],n){const r=l.getCurrentInstance();let a=r?.proxy,s=l.inject(Ae,null);s===null&&(s=ct());const i=e||t.prop||t.name;let u=new Kt(i);u.parent=s;const h=d=>{a[kn]||w(d),u?.set("modelValue",d)},f=()=>u?.getForSelf("modelValue")??null,c=()=>a[kn]??null,w=d=>{const g={};nt(!0,g,l.toRaw(d)),a[kn]=g};l.isReactive(t)||typeof t=="function"?l.watch(t,d=>{u?.merge(d,o)},{immediate:!0}):u.merge(t,o),t.modelValue&&w(t.modelValue);const F=(d,g)=>{u?.set(d,g)},p=d=>u?.getForSelf(d)??null;if(a[Ae]=u,l.provide(Ae,u),r!==null){const d=l.inject(ye,null),g=qt(a,d,i,n);u.broadcast=g,a[ye]=g,l.provide(ye,g),a.broadcast=(x,M,..._)=>Reflect.apply(g.emit,g,[x,M,..._]);const B=l.inject(qe,null),$=jt(a,B,{componentName:""});u.validateSchema=$,a[qe]=$,l.provide(qe,$),a[ut]=new Map,a.validate=(x=!0)=>{const M=[];let _=null;const L={deep:!1};if(x===!0)_={name:"*"};else if(Array.isArray(x)&&x.length>0){const E=x;_={name:I=>I?E.indexOf(I)!==-1:!1}}else if(x!=null&&typeof x=="object"){const E=x;if(Object.assign(L,E),Array.isArray(E.include)&&E.include.length>0){const I=E.include;_={name:k=>k?I.indexOf(k)!==-1:!1}}else if(Array.isArray(E.exclude)&&E.exclude.length>0){const I=E.exclude;_={name:k=>k?I.indexOf(k)===-1:!1}}else _={name:"*"}}if(_){const E=g?.emitToChildren(_,"validate",L);E&&Reflect.apply([].push,M,E)}return M.length==1?M[0]:M.length>1?Promise.all(M).then(E=>{let I=[];return E.forEach(k=>{k.pass===!1&&Array.isArray(k.errors)&&(I=[...I,...k.errors])}),I.length>0?{pass:!1,errors:I}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(x,M=!0,_=!1)=>{if(_===!0){Reflect.ownKeys(x).forEach(E=>{let I=String(E);const k={componentName:"",fieldName:I,pureDataValidate:!0};if(u){const N=bo(u,I,k,g,$);a[ut].set(I,N);const b=x[I];b&&N.validateSchema.setRule(b)}});return}if(M){const L=Reflect.ownKeys(x),E={name:I=>L.includes(I)};g?.emitToChildren(E,"setNameValidateRules",x,!1)}},a.clearValidate=(x=!0)=>{let M=null;if(x===!0)M={name:"*"};else if(Array.isArray(x)&&x.length>0){const _=x;M={name:L=>L?_.indexOf(L)!==-1:!1}}else if(x!=null&&typeof x=="object"){const _=x;if(Array.isArray(_.include)&&_.include.length>0){const L=_.include;M={name:E=>E?L.indexOf(E)!==-1:!1}}else if(Array.isArray(_.exclude)&&_.exclude.length>0){const L=_.exclude;M={name:E=>E?L.indexOf(E)===-1:!1}}else M={name:"*"}}M&&g?.emitToChildren(M,"clearValidate",!1)},a.resetFields=x=>{const M=f();if(!M)return;const _={};if(nt(!0,_,c()??{}),Array.isArray(x))x.forEach(L=>{M[L]=_[L]});else if(x&&Array.isArray(x.include))(x.include??[]).forEach(E=>{M[E]=_[E]});else if(x&&Array.isArray(x.exclude)){let L=x.exclude??[];Reflect.ownKeys(_).forEach(E=>{L.includes(E)||(M[E]=_[E])})}else Object.assign(M,_);a.clearValidate(x)},a.setModelValue=(x,M)=>{!M||M===i?h(x):g?.emitToChildren({name:M},"setModelValue",x)},a.getModelValue=()=>f(),a.setDomainProperty=(x,M)=>{F(x,M)},a.getDomainProperty=x=>p(x)}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[ut]&&(a[ut].clear(),a[ut]=void 0),a.broadcast=null,a.validate=null,a.setNameValidateRules=null,a.clearValidate=null,a.resetFields=null,a.setModelValue=null,a.getModelValue=null,a.setDomainProperty=null,a.getDomainProperty=null,u=null,a=null}),u}function po(e,t,o=[]){let r=l.getCurrentInstance()?.proxy,a=l.inject(Ae,null);a===null&&(a=ct());const s=e||t.prop||t.name;let i=new Kt(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 Te(e,t,o){const r=l.getCurrentInstance()?.proxy,a=t??"",s=l.inject(ye,null);let i=qt(r,s,a,o);r[ye]=i,l.provide(ye,i),r.broadcast=(p,d,...g)=>i?Reflect.apply(i.emit,i,[p,d,...g]):null;const u=l.inject(qe,null);e.fieldName=e.fieldName??a;let h=jt(r,u,e);r[qe]=h,l.provide(qe,h),yo(r,h,a),r.validate=(p=null)=>{if(!h)return Promise.resolve({pass:!0});const d=[];let g=!1,B=!1;if(Array.isArray(p)&&p.indexOf(a)!==-1)B=!0,g=!0;else if(p&&typeof p=="object"){const $=p,x=$.ignoreDisabled??!0,M=$.ignoreReadonly??!0,_=$.ignoreHidden??!0;x===!0&&e.disabled===!0||M===!0&&e.readonly===!0||_===!0&&_t(r.$el)?B=!1:(Array.isArray($.include)&&$.include.indexOf(a)!==-1||Array.isArray($.exclude)&&$.exclude.indexOf(a),B=!0),g=$.deep??!1}else typeof p=="boolean"&&(g=p),B=!0;if(B){const $=h?.validate();d.push($)}if(g){let $=null;const x={deep:!1};if(p===!0)$={name:"*"};else if(Array.isArray(p)&&p.length>0){const M=p;$={name:_=>_?M.indexOf(_)!==-1:!1}}else if(p!=null&&typeof p=="object"){const M=p;if(Object.assign(x,M),Array.isArray(M.include)&&M.include.length>0){const _=M.include;$={name:L=>L?_.indexOf(L)!==-1:!1}}else if(Array.isArray(M.exclude)&&M.exclude.length>0){const _=M.exclude;$={name:L=>L?_.indexOf(L)===-1:!1}}else $={name:"*"}}if($&&i){const M=i.emitToChildren($,"validate",x);Reflect.apply([].push,d,M)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then($=>{let x=[];return $.forEach(M=>{M.pass===!1&&Array.isArray(M.errors)&&(x=[...x,...M.errors])}),x.length>0?{pass:!1,errors:x}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=p=>h?.setRule(p),r.setNameValidateRules=(p,d=!1)=>{const g=p[a];if(g&&h?.setRule(g),d&&i){const B={name:$=>Reflect.ownKeys(p).includes($)};i.emitToChildren(B,"setNameValidateRules",p,!1)}},r.clearValidate=(p=null)=>{(!Array.isArray(p)||p.indexOf(t??"")!==-1)&&h?.clear();let d=null;if(p===!0)d={name:"*"};else if(Array.isArray(p)&&p.length>0){const g=p;d={name:B=>B?g.indexOf(B)!==-1:!1}}else if(p!=null&&typeof p=="object"){const g=p;if(Array.isArray(g.include)&&g.include.length>0){const B=g.include;d={name:$=>$?B.indexOf($)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const B=g.exclude;d={name:$=>$?B.indexOf($)===-1:!1}}else d={name:"*"}}d&&i&&i.emitToChildren(d,"clearValidate",!1)};let f=new go(r);r[zt]=f;const c=$t((p="validate")=>{h&&(p==="reset"?h.clear():h.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:uo()).forEach(p=>{f&&f.on(p,d=>{c("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:fo()).forEach(p=>{f&&f.on(p,d=>{c("reset")})}),l.onUnmounted(()=>{i?.destroy(),r[ye]=void 0,l.provide(ye,null),i=null,h?.destroy(),r[qe]=void 0,l.provide(qe,null),h=null,f?.destroy(),r[zt]=void 0,f=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:i,validateSchema:h,emitEvent:(p,...d)=>{f&&Reflect.apply(f.emit,f,[p,...d])},onEvent:(p,d)=>{f&&Reflect.apply(f.on,f,[d])},offEvent:(p,d)=>{f&&Reflect.apply(f.off,f,[d])}}}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=jt({},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 w=!1,F=!1;if(Array.isArray(f)&&f.indexOf(s)!==-1)F=!0,w=!0;else if(f&&typeof f=="object"){const p=f;Array.isArray(p.include)&&p.include.indexOf(s)!==-1||Array.isArray(p.exclude)&&p.exclude.indexOf(s),F=!0,w=p.deep??!1}else typeof f=="boolean"&&(w=f),F=!0;if(F&&u){const p=u.validate();c.push(p)}if(w){let p=null;const d={deep:!1};if(f===!0)p={name:"*"};else if(Array.isArray(f)&&f.length>0){const g=f;p={name:B=>B?g.indexOf(B)!==-1:!1}}else if(f!=null&&typeof f=="object"){const g=f;if(Object.assign(d,g),Array.isArray(g.include)&&g.include.length>0){const B=g.include;p={name:$=>$?B.indexOf($)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const B=g.exclude;p={name:$=>$?B.indexOf($)===-1:!1}}else p={name:"*"}}if(p&&h){const g=h.emitToChildren(p,"validate",d);Reflect.apply([].push,c,g)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(p=>{let d=[];return p.forEach(g=>{g.pass===!1&&Array.isArray(g.errors)&&(d=[...d,...g.errors])}),d.length>0?{pass:!1,errors:d}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=f=>u?.setRule(f),a.setNameValidateRules=f=>{const c=f[s];c&&u?.setRule(c)};let h=qt(null,n,s,a);return l.onUnmounted(()=>{u=null,h=null}),{broadcast:h,validateSchema:u}}function vo(){let t=l.getCurrentInstance()?.proxy,o=new go(t);return t[zt]=o,l.onUnmounted(()=>{o?.destroy(),t[zt]=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(e==null)return 0;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,h=e.get("footerBarHeight")??0;On(n,a,t,!0,s,i,u,h);const f=l.reactive(n),c=e.getForParent(Je);c&&(n.height=Yt(e,c),n.width=Gt(e,c),l.watch([()=>Yt(e,c),()=>Gt(e,c)],([F,p])=>{f.height=F,f.width=p}));const w=!c;return l.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([F,p,d=-1,g=-1,B=0,$=0])=>{On(f,p,t,w,d,g,B,$)}),e.set(Je,f),f}function Wt(e){return e.get(Je)}function Ct(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 Et(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 Yt(e,t){if(t=t??e.get(Je),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=Ct(e,t),n=Et(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function Gt(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 Oe(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 Ve(e){return Oe(e,"readonly",0,function(o){return ue(o)})}function Fe(e){return Oe(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,Ut=new Map;let Fn=null;function Ca(e){Fn=e}function xo(e,t,o){if(o){let n=Ut.get(o);n||(n=new Map,Ut.set(o,n)),n.set(e,t)}else So.set(e,t)}function Pe(e,t,o){!o&&Fn&&(o=Fn(e)??void 0);let n=null;if(o){let r=Ut.get(o);r&&(n=r.get(t))}return n||(n=So.get(t)),n}function Ea(e,t){for(let o in e){const n=e[o];xo(o,n,t)}}function Na(e){Ut.delete(e)}function ka(){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=ct();if(this.initPageLayout(o,r),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=mo(()=>{const i={...o},u=document.documentElement.clientWidth||document.body.clientWidth,h=document.documentElement.clientHeight||document.body.clientHeight;i.width=u,i.height=h,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({},ka(),t.safeAreaInset),s=Ia(n,r),i=nt({},s.pageLayout,t.pageLayout);o=o??ct(),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){Ea(t,o)}clearScopeAPI(t){Na(t)}getRootDomain(){return ct()}}const Fa=[y.ElAffix,y.ElAlert,y.ElAutocomplete,y.ElAutoResizer,y.ElAvatar,y.ElBacktop,y.ElBadge,y.ElBreadcrumb,y.ElBreadcrumbItem,y.ElButton,y.ElButtonGroup,y.ElCalendar,y.ElCard,y.ElCarousel,y.ElCarouselItem,y.ElCascader,y.ElCascaderPanel,y.ElCheckTag,y.ElCheckbox,y.ElCheckboxButton,y.ElCheckboxGroup,y.ElCol,y.ElCollapse,y.ElCollapseItem,y.ElCollapseTransition,y.ElColorPicker,y.ElConfigProvider,y.ElContainer,y.ElAside,y.ElFooter,y.ElHeader,y.ElMain,y.ElDatePicker,y.ElDescriptions,y.ElDescriptionsItem,y.ElDialog,y.ElDivider,y.ElDrawer,y.ElDropdown,y.ElDropdownItem,y.ElDropdownMenu,y.ElEmpty,y.ElForm,y.ElFormItem,y.ElIcon,y.ElImage,y.ElImageViewer,y.ElInput,y.ElInputNumber,y.ElLink,y.ElMenu,y.ElSubMenu,y.ElMenuItem,y.ElMenuItemGroup,y.ElPageHeader,y.ElPagination,y.ElPopconfirm,y.ElPopover,y.ElPopper,y.ElProgress,y.ElRadio,y.ElRadioButton,y.ElRadioGroup,y.ElRate,y.ElResult,y.ElRow,y.ElScrollbar,y.ElSelect,y.ElOption,y.ElOptionGroup,y.ElSelectV2,y.ElSkeleton,y.ElSkeletonItem,y.ElSlider,y.ElSpace,y.ElSteps,y.ElStep,y.ElSwitch,y.ElTable,y.ElTableColumn,y.ElTableV2,y.ElTabs,y.ElTabPane,y.ElTag,y.ElTimePicker,y.ElTimeSelect,y.ElTimeline,y.ElTimelineItem,y.ElTooltip,y.ElTransfer,y.ElTree,y.ElTreeSelect,y.ElTreeV2,y.ElUpload,y.ElStatistic,y.ElCountdown,y.ElSegmented,y.ElAnchor,y.ElAnchorLink,y.ElWatermark,y.ElMessageBox,y.ElMessage,y.ElNotification],Da=[y.ElInfiniteScroll,y.ElLoading,y.ElMessage,y.ElMessageBox,y.ElNotification,y.ElPopoverDirective],Ra=(e,t={})=>{const o=t.componentPrefix??"fox",n=o[0].toUpperCase()+o.slice(1);Fa.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${n}${a.slice(2)}`,e.component(a,r)):e.use(r)}),Da.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 $e(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}},Ie={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},prop:{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);$e({getPageContentHeight:()=>Yt(r,f),getPageContentWidth:()=>Gt(r,f),getPageHeaderHeight:()=>Ct(r,f),getPageFooterHeight:()=>Et(r,f)}),f&&a&&(f.contentHeight="100%")}const s=l.computed(()=>({[e]:!0})),i=l.computed(()=>({})),u=l.getCurrentInstance(),h=(f,c=!1)=>{const w=u?.proxy;w&&typeof w.setNameValidateRules=="function"&&w.setNameValidateRules(f,!0,c)};return l.watch([()=>o.rules,()=>o.pureDataRules],([f,c],[w,F])=>{if(f&&w){const p=l.toRaw(w),d=l.toRaw(f),g=d?Reflect.ownKeys(d):[];(p?Reflect.ownKeys(p):[]).forEach($=>{g.includes($)||(d[$]=[])}),h(d)}if(c&&F){const p=l.toRaw(F),d=l.toRaw(c),g=d?Reflect.ownKeys(d):[];(p?Reflect.ownKeys(p):[]).forEach($=>{g.includes($)||(d[$]=[])}),h(d,!0)}},{deep:!0}),l.onMounted(()=>{if(o.rules){const f=l.toRaw(o.rules);h(f)}if(o.pureDataRules){const f=l.toRaw(o.pureDataRules);h(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"),Dn=_a(Ma(Ba));function Xt(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?Wt(s):null;i&&(i.headerMounted=!0);const u=e,h=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,w=l.computed(()=>{const N={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const b=ze(r.padding??i.headerPadding);return Object.assign(N,b),c&&(i.headerHeight=c),i.headerHeight>0&&(N.height=i.headerHeight),N.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,N.safeAreaTop>0&&(N.top=N.safeAreaTop+(b.top??0),N.height&&N.height>0&&(N.height=N.height+N.safeAreaTop)),N}if(c&&(N.height=c),r.padding){const b=ze(r.padding);Object.assign(N,b)}return N}),F=l.ref(null),p=()=>{if(i&&F.value&&!_t(F.value)){if(!n){const N=Xt(F.value);i.headerAllHeight=N.height}return i.headerMounted=!0,!0}return!1};let d=null;l.onMounted(()=>{i&&(Ht(p,50,5,50,!0),window.ResizeObserver&&F.value&&(d=new window.ResizeObserver(()=>{p()}),d.observe(F.value)))}),l.onUnmounted(()=>{i&&(i.headerMounted=!1,d&&(d.disconnect(),d=null))});const g=l.computed(()=>{const N={};return w.value.height!==null&&w.value.height!==void 0&&(N.height=`${w.value.height}px`),w.value.top!==null&&w.value.top!==void 0&&(N.paddingTop=`${w.value.top}px`),w.value.left!==null&&w.value.left!==void 0&&(N.paddingLeft=`${w.value.left}px`),w.value.right!==null&&w.value.right!==void 0&&(N.paddingRight=`${w.value.right}px`),w.value.bottom!==null&&w.value.bottom!==void 0&&(N.paddingBottom=`${w.value.bottom}px`),N}),B=l.computed(()=>!(w.value.height!==null&&w.value.height!==void 0&&w.value.height<=0));function $(){a.emit("back")}function x(){a.emit("click-title")}function M(){a.emit("click-right")}function _(){a.emit("click-right-text")}const L=()=>{if(!r.leftShow)return null;const N=[];if(a.slots.left)N.push(a.slots.left());else{if(a.slots.leftIcon){const b=l.h("view",{class:"left-icon",onClick:$},[a.slots.leftIcon()]);N.push(b)}else if(r.leftIcon){const b=l.h("view",{class:"left-icon",onClick:$},[l.h(r.leftIcon)]);N.push(b)}if(r.leftText){const b=l.h("view",{class:"left-text",onClick:$},[r.leftText]);N.push(b)}}return N.length===0?null:l.h("view",{class:"fox-header-bar__left"},N)},E=()=>{if(!r.rightShow)return null;const N=[];if(a.slots.right)N.push(a.slots.right());else{if(r.rightText){const b=l.h("view",{class:"right-text",onClick:_},[r.rightText]);N.push(b)}if(a.slots.rightIcon){const b=l.h("view",{class:"right-icon",onClick:M},[a.slots.rightIcon()]);N.push(b)}else if(r.rightIcon){const b=l.h("view",{class:"right-icon",onClick:M},[l.h(r.rightIcon)]);N.push(b)}}return N.length===0?null:l.h("view",{class:"fox-header-bar__right"},N)},I=()=>{if(!r.titleShow)return null;const N=[],b=a.slots.default?a.slots.default():null;if(b)N.push(b);else{if(r.title){const P=l.h("view",{class:"title-text"},[r.title]);N.push(P)}if(a.slots.titleIcon){const P=l.h("view",{class:"title-icon",onClick:x},[a.slots.titleIcon()]);N.push(P)}else if(r.titleIcon){const P=l.h("view",{class:"title-icon",onClick:x},[l.h(r.titleIcon)]);N.push(P)}}return N.length===0?null:l.h("view",{class:"fox-header-bar__title"},N)},k=()=>{const N=[],b=a.slots.bottom?a.slots.bottom():null;return b&&N.push(b),N.length===0?null:l.h("view",{class:"fox-header-bar__bottom"},N)};return()=>{if(!B.value)return null;const N=[];if(a.slots.all)N.push(a.slots.all());else{const P=[],q=L();q&&P.push(q);const R=I();R&&P.push(R);const D=E();if(D&&P.push(D),P.length>0){const G=l.h("view",{class:f.value},P);N.push(G)}const K=k();K&&N.push(K)}if(N.length===0)return null;const b={class:h.value,style:g.value,ref:F};return l.h("view",b,N)}}}),{componentName:Pa,create:ja,scope:za}=ie("header-bar"),An=ja(qa(Pa,za,Ce.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?Wt(a):null,i=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,h=l.computed(()=>{const p={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&s){const d=ze(n.padding??s.footerPadding);return Object.assign(p,d),u&&(s.footerHeight=u),s.footerHeight>0&&(p.height=s.footerHeight),p.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,p.safeAreaBottom>0&&(p.bottom=p.safeAreaBottom+(d.bottom??0),p.height&&p.height>0&&(p.height=p.height+p.safeAreaBottom)),p}if(u&&(p.height=u),n.padding){const d=ze(n.padding);Object.assign(p,d)}return p}),f=l.ref(null),c=()=>{if(s&&f.value&&!_t(f.value)){if(!o){const p=Xt(f.value);s.footerAllHeight=p.height}return s.footerMounted=!0,!0}return!1};let w=null;l.onMounted(()=>{s&&(Ht(c,50,5,50,!0),window.ResizeObserver&&(w=new window.ResizeObserver(()=>{c()}),w.observe(f.value)))}),l.onUnmounted(()=>{s&&(s.footerMounted=!1,w&&(w.disconnect(),w=null))});const F=l.computed(()=>{const p={};return h.value.height!==null&&h.value.height!==void 0&&(p.height=ke(h.value.height)),h.value.top!==null&&h.value.top!==void 0&&(p.paddingTop=ke(h.value.top)),h.value.left!==null&&h.value.left!==void 0&&(p.paddingLeft=ke(h.value.left)),h.value.right!==null&&h.value.right!==void 0&&(p.paddingRight=ke(h.value.right)),h.value.bottom!==null&&h.value.bottom!==void 0&&(p.paddingBottom=ke(h.value.bottom)),p});return()=>{const p=r.slots.default?r.slots.default():[],d={ref:f,class:i.value,style:F.value};return l.h("view",d,p)}}}}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?Wt(n):null,s=l.computed(()=>{const h={};if(n&&a){if(o.padding){const F=ze(o.padding);Object.assign(a.contentPadding,F)}const f=Ct(n,a),c=Et(n,a);let w="";if(a.contentHeight?w=`${a.contentHeight}`:w=`${a.height}px`,a.contentPadding,h.height=w,a.contentPadding.top||f>0){const F=(a&&a.contentPadding&&a.contentPadding.top)??0;h.paddingTop=`${f+F}px`}if(a.contentPadding.bottom||c>0){const F=(a&&a.contentPadding&&a.contentPadding.bottom)??0;h.paddingBottom=`${c+F}px`}return a.contentPadding.left&&(h.paddingLeft=`${a.contentPadding.left}px`),a.contentPadding.right&&(h.paddingRight=`${a.contentPadding.right}px`),h}if(o.padding){const f=ze(o.padding);f.left&&(h.paddingLeft=`${f.left}px`),f.top&&(h.paddingTop=`${f.top}px`),f.right&&(h.paddingRight=`${f.right}px`),f.bottom&&(h.paddingBottom=`${f.bottom}px`)}return h}),i=l.ref(null),u=()=>{if(a&&i.value){const h=Rn(i.value);a.contentInnerHeight=h.height,a.contentInnerWidth=h.width}};return l.onMounted(()=>{u()}),n&&a&&l.watch([()=>Ct(n),()=>Et(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]]),ft="GroupStateKey",Eo=Symbol.for("GroupScopeKey");function Zt(){return l.inject(Eo,!1)}function Jt(e=!0){l.provide(Eo,e)}function Ja(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const r=t[n];En(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(ft,a),a}function Bn(e,t,o=-1,n=-1,r=!1,a,s,i){const u=e.get(ft);if(!u)return;const h=e.get("groupLayout")??{};o===-1&&(o=h.column??1),n===-1&&(n=h.gutter??0),a||(a=h.minItemWidth??-1),s||(s=h.maxItemWidth??-1);const f=he(a),c=he(s);i||(i=h.type??"grid");const w=()=>{const F=t===""||t===-1,p=he(t);let d=ve(o);const g=he(n);if(!F){let x=(p-(d-1)*g)/d;for(;c!==-1&&x>c;)d++,x=(p-(d-1)*g)/d;for(;f!==-1&&d>1&&x<f;)d--,x=(p-(d-1)*g)/d}let B=!1;const $=u.layout;$.value.width=t,$.value.column!==d&&($.value.column=d,B=!0),$.value.gutter!==g&&($.value.gutter=g,B=!0),$.value.type!==i&&($.value.type=i,B=!0),B&&l.triggerRef($)};if(r)w();else{const F=++u.passport;setTimeout(()=>{F===u.passport&&w()},50)}}function Qt(e,t=!1){let o;return t?o=e.getForParent(ft):o=e.get(ft),o.layout}function en(e,t=!1){let o;return t?o=e.getForParent(ft):o=e.get(ft),o.order}function No(e,t=1){if(t==="stretch")return-1;const o=ve(t);return o===-1?100:100*o/e}function tn(e,t,o=1,n=0,r){const a={};let s=0;r?s=he(r):s=No(t.column,o),s>0&&(a.width=`${s}%`);const i=No(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 nn(e,t,o=1,n=0){if(o==="stretch"){const u=e.index%t.column,h=u+(t.column-u);return e.index=e.index+(h-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 ko=Symbol("RollingStateKey");function ei(e){l.provide(ko,e)}function ti(){return l.inject(ko,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.prop??n.name,n,Co),s=Qa(a,{type:n.type}),i=Zt();Jt(!0);const u=n.rollingDisplay?ti():null,h=l.ref(null),f=l.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),c=l.computed(()=>i&&a?Qt(a,!0).value:null),w=l.getCurrentInstance(),F=(H,J=!1)=>{const te=w?.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]=[])}),F(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]=[])}),F(ne,!0)}},{deep:!0});const p=e,d=l.computed(()=>{const H={};H.height=D.value;const J=i?en(a,!0):null;if(c.value&&J){if(c.value.type==="grid"){const te=nn(J,c.value,n.span,n.offset);Object.assign(H,te)}else if(c.value.type==="flow"){const te=tn(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}),g=l.computed(()=>{const H=s.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}}),B=l.computed(()=>{if(s.layout.value.type==="grid"){let J="";if(n.columnWidth)J=`repeat(auto-fill, ${n.columnWidth})`;else{const te=li(I.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}}}),$=l.toRef(n,"gutter"),x=l.toRef(n,"column"),M=l.computed(()=>i||f.value?!0:ue(n.isWrap)),_=[],L=H=>{_.push(H)},E=()=>{let H=_.length;_.splice(0,H)},I=l.ref(-1),k=H=>{const J=Rn(H).width;J>0&&J!==I.value&&(I.value=J)};Bn(a,I.value,x.value,$.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&l.watch([I,x,$],([H,J,te])=>{s.order.index=0,Bn(a,H,J,te,!1,n.minItemWidth,n.maxItemWidth,n.type)});const N=l.computed(()=>K.value?n.expandText??"":n.collapseText??""),b=l.computed(()=>({[`${e}__header-collapse-text`]:!0})),P=l.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!K.value,"is-collapse":K.value})),q=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=q.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=()=>{S()},S=H=>{H=H??!K.value,ee(H)};$e({toggleCollapse:S,doLayout:()=>{_[0]&&(k(_[0]),Bn(a,I.value,x.value,$.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let C=null,v=!0;const Y=H=>{if(n.rules){const J=l.toRaw(n.rules);F(J)}if(n.pureDataRules){const J=l.toRaw(n.pureDataRules);F(J,!0)}if(lt&&(H&&ee(ue(n.collapse),!1),n.autoLayout&&Array.isArray(_)&&_.length>0)){const J=_[0];k(J),window.ResizeObserver&&(C=new window.ResizeObserver(()=>{k(J)}),C.observe(J))}},j=()=>{C?.disconnect(),C=null},z=!f.value||u?.acquire();z&&(h.value=f.value?!0:null),l.onMounted(()=>{if(z&&(Y(v),v=!1),f.value&&u){let H=null,J=u.initialHeight;u.observe(q.value,te=>{if(te!==h.value)if(te)h.value=!0,K.value||(G.value=""),H=setTimeout(()=>{H=null,h.value!==!1&&(Y(v),v=!1)},100);else{if(H!==null&&clearTimeout(H),h.value=!1,!K.value)if(v)G.value=u.initialHeight;else{let T=_n(q.value);T<=0?G.value=J:(G.value=`${T}px`,J=G.value)}v||j()}})}}),l.onUnmounted(()=>{C?.disconnect(),u&&u.unobserve(q.value)});const A=(H="right")=>{const J=[];if(N.value){const W={class:b.value},ne=l.h("span",W,[N.value]);J.push(ne)}const te={class:P.value},T=o(n.collapseIcon,te);return T&&J.push(T),J.length>0?l.h("div",{class:{[`${p}__header-collapse`]:!0,[`is-${H}`]:!0},onClick:O},J):null},X=(H,J,te,T)=>{const W={...g.value};return J===0&&(W[`${p}__first`]=!0),te>=T-1&&(W[`${p}__last`]=!0),l.h("div",{ref:L,key:`${J}`,class:W,style:B.value},H)};return()=>{if(f.value&&h.value!==!0){const W=n.tag||"div";return l.h(W,{ref:q,prop:n.name,class:{[`${p}`]:!0,"is-collapse":U.value},style:d.value},[])}s.order.index=0;const H=[];let J=0;if(r.slots.header){const W={key:`${J++}`,ref:R,class:{[`${p}__header`]:!0,[`${p}__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=A("left");oe&&W.push(oe)}if(n.title||r.slots.title){if(n.showMark){const oe={class:{[`${p}__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:{[`${p}__header-title`]:!0}},[r.slots.title()]);W.push(oe)}else if(n.title){const oe=l.h("div",{class:{[`${p}__header-title`]:!0}},[n.title]);W.push(oe)}}if(r.slots.toolbar&&W.push(r.slots.toolbar()),!ne&&n.showCollapse){const oe=A("right");oe&&W.push(oe)}if(W.length>0){const oe={key:`${J++}`,ref:R,class:{[`${p}__header`]:!0,[`${p}__first`]:!0},onClick:le},de=l.h("div",oe,W);H.push(de)}}E();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(M.value){const W=n.tag||"div";return l.h(W,{ref:q,prop:n.name,class:{[`${p}`]:!0,"is-collapse":U.value},style:d.value},[H])}else return H}}}}const{componentName:ai,create:ii,scope:si}=ie("group"),qn=ii(ri(ai,si,(e,t)=>(e=e??Ce.ArrowUp,l.h(y.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:h}=window.getComputedStyle(r);if(h){const f=ci.exec(h);if(f){let w=f[1].split(/\s*,\s*/);w.length==6&&(i+=Number(w[4]),u+=Number(w[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(()=>wt(e.price)==0?"":Lt(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 ln=_e(mi,[["render",bi]]),{componentName:Pn,create:vi}=ie("hint-text"),wi=vi({components:{Price:ln},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),h=(b,P,q,R,D,K)=>{const G=document.documentElement.clientWidth||document.body.clientWidth,U=document.documentElement.clientHeight||document.body.clientHeight,Z=b.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 S=0;S<ee.length;S++){const V=ee[S];if(O[0]=V,Z[1]&&(O[1]=Z[1]),V==="top"){const C=P.y-K-e.arrowSize-e.offset;if(C>=0){le.top=C;let v=0;Z[1]==="start"?v=P.x:Z[1]==="end"?v=P.x+q-D:v=P.x+q/2-D/2;const Y=G-v-D;Y<0?(v+=Y,c.value=-Y):c.value=0,le.left=v<0?0:v;break}}else if(V==="bottom"){const C=P.y+R+e.arrowSize+e.offset;if(C+K<=U){le.top=C;let v=0;Z[1]==="start"?v=P.x:Z[1]==="end"?v=P.x+q-D:v=P.x+q/2-D/2;const Y=G-v-D;Y<0?(v+=Y,c.value=-Y):c.value=0,le.left=v<0?0:v;break}}else if(V==="left"){const C=P.x-D-e.arrowSize-e.offset;if(C>=0){le.left=C;let v=0;Z[1]==="start"?v=P.y:Z[1]==="end"?v=P.y+R-K:v=P.y+R/2-K/2,le.top=v<0?0:v;break}}else if(V==="right"){const C=P.x+q+e.arrowSize+e.offset;if(C+D<=G){le.left=C;let v=0;Z[1]==="start"?v=P.y:Z[1]==="end"?v=P.y+R-K:v=P.y+R/2-K/2,le.top=v<0?0:v;break}}}return{bestPlacement:O.join("-"),bestInsetRect:le}},f=(b,P,q=10)=>{if(!lt||P===!1||!b)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}=h(e.placement,n.value,r.value,a.value,D,R);s.value=K,o.value=G,i.value=!0},c=l.ref(0),w=$t(()=>{f(e.message,e.visible)},10),F=l.ref(e.visible);l.watch(()=>e.visible,b=>{F.value=b});const p=l.computed(()=>F.value&&d.value),d=l.ref(!0),g=$t(b=>{const P=b[0];P&&(d.value=P.isIntersecting)},10),B=new IntersectionObserver(g);l.watch([()=>e.message,()=>e.visible],([b,P])=>{setTimeout(()=>{f(e.message,e.visible)},0)}),l.onMounted(()=>{setTimeout(()=>{f(e.message,e.visible)},0),Oo.watch(e.reference,w),B.observe(e.reference)}),l.onBeforeMount(()=>{Oo.unwatch(e.reference,w),B.unobserve(e.reference),B.disconnect()});const $=l.computed(()=>{const b={[Pn]:!0};return s.value.startsWith("top")?b["is-top"]=!0:s.value.startsWith("right")?b["is-right"]=!0:s.value.startsWith("bottom")?b["is-bottom"]=!0:s.value.startsWith("right")&&(b["is-right"]=!0),e.size==="small"?b["is-small"]=!0:e.size==="large"&&(b["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(b[`${e.customClass}`]=!0),b}),x=l.computed(()=>{const b={};o.value.top!==null&&(b.top=`${o.value.top}px`),o.value.right!==null&&(b.right=`${o.value.right}px`),o.value.bottom!==null&&(b.bottom=`${o.value.bottom}px`),o.value.left!==null&&(b.left=`${o.value.left}px`),e.autoFit&&(b["min-width"]=`${r.value}px`);const P=document.documentElement.clientWidth||document.body.clientWidth;return b["max-width"]=`${P}px`,i.value&&(b.opacity="1"),e.transition||(b.transition="none"),e.zIndex&&(b["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(b,e.customStyle),b}),M=l.computed(()=>{const b=[`${Pn}__content`];return e.customTextClass&&b.push(e.customTextClass),b}),_=l.computed(()=>{const b={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(b,e.customTextStyle),b}),L=l.computed(()=>({[`${Pn}__arrow`]:!0})),E=l.computed(()=>{const b={};return e.showArrow?(b.width=`${e.arrowSize}px`,b.height=`${e.arrowSize}px`,s.value==="top"?(b.left="50%",b.bottom=`-${e.arrowSize}px`,b.transform=" translate(-50%, 0%)"):s.value==="top-start"?(b.left=`${e.arrowOffset+c.value}px`,b.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(b.right=`${e.arrowOffset-c.value}px`,b.bottom=`-${e.arrowSize}px`):s.value==="right"?(b.left=`-${e.arrowSize}px`,b.top="50%",b.transform=" translate(0%, -50%)"):s.value==="right-start"?(b.left=`-${e.arrowSize}px`,b.top=`${e.arrowOffset}px`):s.value==="right-end"?(b.left=`-${e.arrowSize}px`,b.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(b.left="50%",b.top=`-${e.arrowSize}px`,b.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(b.left=`${e.arrowOffset+c.value}px`,b.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(b.right=`${e.arrowOffset-c.value}px`,b.top=`-${e.arrowSize}px`):s.value==="left"?(b.right=`-${e.arrowSize}px`,b.top="50%",b.transform=" translate(0%, -50%)"):s.value==="left-start"?(b.right=`-${e.arrowSize}px`,b.top=`${e.arrowOffset}px`):s.value==="left-end"&&(b.right=`-${e.arrowSize}px`,b.bottom=`-${e.arrowOffset}px`),b):{display:"none"}}),I=l.computed(()=>p.value&&e.closeOnClick),k=l.computed(()=>{const b={};return e.zIndex&&(b["z-index"]=`${e.zIndex}`),b});return{show:p,tipRef:u,classes:$,styles:x,textClasses:M,textStyles:_,arrowClasses:L,arrowStyles:E,overlayShow:I,overlayStyle:k,onClickOverlay:()=>{F.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 Nt=_e(wi,[["render",xi]]);class Fo{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 Fo,dt=new Map,on=e=>{if(e){const t=document.getElementById(e);dt.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of dt.keys()){const o=document.getElementById(t);o&&o.parentNode?.removeChild(o)}dt.clear()}},$i=e=>{e.unmount=on;const t=document.getElementById(e.id);if(t){const o=dt.get(e.id);o?e={...jn,...o,...e}:e={...jn,...e},e.transition=!1;const n=l.createVNode(Nt,e);l.render(n,t)}return e.id},Ci=e=>{e.unmount=on;let t=e.id??`hinttext_${Ti.get()}`;e={...jn,...e},e.id=t,dt.set(t,e);const o=document.createElement("div");o.id=e.id;const n=l.createVNode(Nt,e);return l.render(n,o),document.body.appendChild(o),t},Ei=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},De={show(e,t,o={},n=!0){Ei(t);const r=o.id;return r&&dt.has(r)?$i({...o,message:t,reference:e}):(n&&on(),Ci({...o,message:t,reference:e}))},hide(e){on(e)},install(e){e.config.globalProperties.$hintText=De}};function Ni(e,t,o,n=!1){return{inheritAttrs:!0,props:{...we,...Ie},emits:["appear","disappear"],setup(r,a){const s=r.prop??a.attrs.name;Te({componentName:e,validate:!1},s);const i=Ge(),u=Zt();Jt(!1);const h=l.computed(()=>u&&i?Qt(i,!1).value:null),f=e,c=l.ref(null),w=l.computed(()=>{const T={[f]:!0,[`${f}__gutter`]:h.value&&h.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]=!!P.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}),F=l.ref(null),p=l.computed(()=>{const T={};if(r.width)r.width!=="auto"&&(T.width=ke(r.width));else{const W=u&&i?en(i,!1):null;if(h.value&&W){if(h.value.type==="grid"){const ne=nn(W,h.value,r.span,r.offset);Object.assign(T,ne)}else if(h.value.type==="flow"){const ne=tn(W,h.value,r.span,r.offset,r.width);Object.assign(T,ne)}}}if(typeof F.value=="function"){const W=F.value(s);W&&Object.assign(T,W)}else if(F.value&&typeof F.value=="object"){const W=F.value;Object.assign(T,W)}return T}),d=l.ref(null),g=l.computed({get:()=>d.value??ue(r.isRequired),set:T=>{d.value=T}}),B=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",$=Oe(l.toRef(r,"labelPosition"),"labelPosition",Me.Near),x=l.computed(()=>$&&$.value==="top"?"top":$&&$.value==="right"?"right":"left"),M=l.computed(()=>({[`${f}__main`]:!0,[`${f}__main--${x.value}`]:!0})),_=l.computed(()=>({label:!0,[`label--${x.value}`]:!0})),L=Oe(l.toRef(r,"labelWidth"),"labelWidth",Me.Near),E=l.computed(()=>L&&L.value?{width:ke(L.value)}:{}),I=l.computed(()=>({"label--string":!0,"label--required":g.value})),k=l.computed(()=>({content:!0,[r.contentClass]:!0})),N=l.computed(()=>({...r.contentStyle})),b=l.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});$e({setRequired(T){g.value=T},setErrorTip(T){b.errorTip=T},setErrorIcon(T){b.errorIcon=T},setWarnTip(T){b.warnTip=T},setWarnIcon(T){b.warnIcon=T},setInfoTip(T){b.infoTip=T},setInfoIcon(T){b.infoIcon=T},setCustomClassName(T){c.value=T},setCustomStyle(T){F.value=T}});const P=l.computed(()=>r.infoTip||b.infoTip),q=l.computed(()=>r.infoIcon||b.infoIcon),R=l.computed(()=>r.warnTip||b.warnTip),D=l.computed(()=>r.warnIcon||b.warnIcon),K=l.computed(()=>r.errorTip||b.errorTip),G=l.computed(()=>r.errorIcon||b.errorIcon),U=l.computed(()=>K.value?"error":R.value?"warn":P.value?"info":""),Z=()=>U.value.length>0,ee=l.computed(()=>U.value==="error"?K.value:U.value==="warn"?R.value:U.value==="info"?P.value:""),le=l.computed(()=>U.value==="error"?G.value:U.value==="warn"?D.value:U.value==="info"?q.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}),S=l.computed(()=>{const T={};return $&&$.value==="top"||!B()?T["padding-left"]="0px":L&&L.value&&(T["padding-left"]=ke(L.value)),T}),V=l.ref();let C="";l.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([T,W,ne,oe])=>{V.value&&(T&&!me(W)?C?o.show(V.value,W,{...oe,id:C,type:ne},!0):C=o.show(V.value,W,{...oe,type:ne},!0):o.hide(C))});let v=null;const Y=()=>{v||!V.value||(v=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")}),v.observe(V.value))},j=()=>{!v||!V.value||(v.unobserve(V.value),v=null)};l.watch(()=>ue(r.appearListen),T=>{T?Y():j()}),l.onMounted(()=>{ue(r.appearListen)&&Y()}),l.onUnmounted(j);const z=()=>{if(!B())return null;const T=[],W=a.slots?.label?.()??r.label,ne={class:I.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:_.value,style:E.value};return l.h("div",de,T)},A=()=>{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:V,class:k.value,style:N.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:S.value};return l.h("div",oe,T)},te=()=>a.slots?.hide?.()??null;return()=>{const T=[],W=[],ne=z();ne&&W.push(ne);const oe=A();oe&&W.push(oe);const de={class:M.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:w.value,style:p.value,prop:r.prop};return l.h("div",ae,T)}}}}const{componentName:ki,create:Ii,scope:Oi}=ie("item"),Se=Ii(Ni(ki,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=Zt();Jt(!1);const s=l.computed(()=>a&&r?Qt(r,!1).value:null),i=e,u=l.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:o.span==="stretch"})),h=l.computed(()=>{const f={},c=a&&r?en(r,!1):null;if(s.value&&c)if(s.value.type==="grid"){const w=nn(c,s.value,o.span,o.offset);Object.assign(f,w)}else if(s.value.type==="flow"){const w=tn(c,s.value,o.span,o.offset,o.width);Object.assign(f,w)}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:h.value};return n.slots&&typeof n.slots.default=="function"?l.h("div",f,n.slots.default()):l.h("div",f)}}}}const{componentName:Fi,create:Di,scope:Th}=ie("slot-item"),zn=Di(Vi(Fi));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=Zt();Jt(!1);const u=l.computed(()=>{const h={};if(i&&s){const f=Qt(s,!1),c=en(s,!1);if(f.value&&c)if(f.value.type==="grid"){const w=nn(c,f.value,o.span,o.offset);Object.assign(h,w)}else if(f.value.type==="flow"){const w=tn(c,f.value,o.span,o.offset,o.width);Object.assign(h,w)}else o.width&&(h.width=ke(o.width))}else o.width&&(h.width=ke(o.width));return h});return()=>{const h=[];if(n.slots.default){const c=n.slots.default();if(o.divide)for(let w=0;w<c.length;w++){if(w>0){const F=l.h("div",{class:{[`${r}__divide`]:!0}});h.push(F)}h.push(c[w])}else Reflect.apply([].push,h,c)}const f={class:a.value,style:u.value};return l.h("div",f,h)}}}}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},Do={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,...Ie,...Do},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),{emitEvent:i}=Te({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),h=u(n,["placeholder"]),f=l.ref(!1),c=ge(n,"modelValue",null,i),w=e,F=l.computed(()=>({[w]:!0,[`${w}__disabled`]:a.value,[`${w}__readonly`]:s.value})),p=q=>{c.value=q,i("update:modelValue",q),i("input",q)},d=q=>{i("change",q)};let g=ge(n,"hintText"),B=l.ref(!1);const $=q=>{let D=q.target.value;f.value=!0,me(g.value)||(B.value=!0),i("focus",D,q)},x=q=>{setTimeout(()=>{B.value&&(B.value=!1),f.value=!1},0);let D=q.target.value;n.maxLength&&D.length>Number(n.maxLength)&&(D=D.slice(0,Number(n.maxLength))),i("blur",D,q)},M=()=>{i("clear","")},_=l.ref(!1);let L=null;const E=()=>{n.showTooltip&&_.value===!1&&(L&&clearTimeout(L),L=setTimeout(()=>{_.value=!0},150))},I=()=>{L&&(clearTimeout(L),_.value=!1,L=null)},k=l.computed(()=>_.value||B.value),N=l.computed(()=>_.value?c.value:g.value),b=l.computed(()=>wt(n.unit)>0),P=l.ref();return $e({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()},select:()=>{P?.value.select()}}),()=>{const R={...He(r.attrs),ref:P,class:F.value,placeholder:h.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:s.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:M,onChange:d,onInput:p,onFocus:$,onBlur:x,onMouseover:E,onMouseleave:I},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:b.value&&(D.suffix=()=>[n.unit]);const K=[],G=l.h(y.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,Do),hintText:N.value,hintVisible:k.value};return n.prop&&(ee.prop=`${n.prop}_item`),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 kt(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=kt(e,t),s=kt(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 h=kt(e,s);h==null&&(h=Qe(e,s)),u=h===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,...Ie,...Mo},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),{emitEvent:i}=Te({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),h=u(n,["placeholder"]),f=l.ref(null),c=l.ref([]),w=l.computed(()=>c.value?c.value.map(X=>Qe(n,X)).join(" "):""),F=(A,X,H,J=!0)=>{const te=Lo(n,A,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=kt(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)}},p=l.ref(null),d=l.ref(null),g=l.computed(()=>d.value??p.value??[]),B=Oe(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,A=>ue(A)),$=zi(),x=async(A,X)=>{if(A){const H=await $.load("select",A,X);if(H.length>0)if(typeof H[0]=="string"){let T=H.map(W=>Hi(W));p.value=T}else p.value=H;else p.value=null}};l.watch([()=>n.source,()=>n.params],([A,X])=>{d.value=null,x(A,X)},{immediate:!B.value});let M=!1;const _=()=>{M||(M=!0,x(n.source,n.params))};l.watch([()=>p.value,()=>n.modelValue],([A,X])=>{if(k()&&ue(n.multiple)){Ye(X,f.value)||(f.value=X);return}F(X,n.valueType,g.value,!1),i("setValue",X)});let L=null,E=l.ref(!1);typeof n.remoteMethod=="function"&&(L=async A=>{if(A==null){d.value=null;return}E.value=!0;try{const X=await n.remoteMethod(A);X&&(d.value=X)}catch(X){d.value=null,console.error(X)}E.value=!1});let I=null;typeof n.filterMethod=="function"&&(I=async A=>{if(A==null){d.value=null;return}E.value=!0;try{const X=await n.filterMethod(A,p.value);X&&(d.value=X)}catch(X){d.value=null,console.error(X)}E.value=!1});const k=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",N=l.ref(!1),b=e,P=l.computed(()=>({[b]:!0})),q=A=>{n.allowCreate||k()&&ue(n.multiple)?(i("update:modelValue",A),i("change",A),i("update:text",A),f.value=A):F(A,"value",g.value,!0)};let R=ge(n,"hintText"),D=l.ref(!1);const K=A=>{let H=A.target.value;N.value=!0,me(R.value)||(D.value=!0),i("focus",H,A)},G=A=>{setTimeout(()=>{D.value&&(D.value=!1),N.value=!1},0);let H=A.target.value;n.maxLength&&H.length>Number(n.maxLength)&&(H=H.slice(0,Number(n.maxLength))),C.value||i("blur",H,A)},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)},S=l.computed(()=>Z.value||D.value),V=l.computed(()=>Z.value?w.value:R.value),C=l.ref(!1),v=A=>{C.value=A,i("visible-change",A),A||i("selected")},Y=A=>{i("remove-tag",A)},j=(A,X)=>{const H=[];return A.forEach((J,te)=>{const T=Ro(n,J);if(Array.isArray(T)&&T.length>0){const W=j(T,X),ne=Qe(n,J),de={key:`${ne}_${te}`,label:ne};H.push(l.h(y.ElOptionGroup,de,{default:()=>W}))}else{const W=kt(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(y.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]),xe=l.h("div",{class:{"fox-select-item__option":!0}},[re,ce]);H.push(l.h(y.ElOption,se,{default:()=>xe}))}else n.optionType==="value"?H.push(l.h(y.ElOption,se,{default:()=>[W]})):H.push(l.h(y.ElOption,se))}}),H},z=l.ref();return $e({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()}}),()=>{const X={...He(r.attrs),ref:z,class:P.value,clearable:n.clearable,multiple:n.multiple,placeholder:h.placeholder.value,disabled:a.value||s.value,modelValue:f.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:U,onChange:q,onFocus:K,onBlur:G,onVisibleChange:v,onRemoveTag:Y};typeof L=="function"&&(X["remote-method"]=L,X.loading=E.value),typeof I=="function"&&(X["filter-method"]=I,X.loading=E.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=()=>j(g.value,r.slots.option);const J=[],te=l.h(y.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:V.value,hintVisible:S.value,onMouseover:le,onMouseleave:O};return n.prop&&(ne.prop=`${n.prop}_item`),B.value&&(ne["appear-listen"]=!0,ne.onAppear=_),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",h="day",f="week",c="month",w="quarter",F="year",p="date",d="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,B=/\[([^\]]+)]|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,$={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])+"]"}},x=function(R,D,K){var G=String(R);return!G||G.length>=D?R:""+Array(D+1-G.length).join(K)+R},M={s:x,z:function(R){var D=-R.utcOffset(),K=Math.abs(D),G=Math.floor(K/60),U=K%60;return(D<=0?"+":"-")+x(G,2,"0")+":"+x(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:F,w:f,d:h,D:p,h:u,m:i,s,ms:a,Q:w}[R]||String(R||"").toLowerCase().replace(/s$/,"")},u:function(R){return R===void 0}},_="en",L={};L[_]=$;var E="$isDayjsObject",I=function(R){return R instanceof P||!(!R||!R[E])},k=function R(D,K,G){var U;if(!D)return _;if(typeof D=="string"){var Z=D.toLowerCase();L[Z]&&(U=Z),K&&(L[Z]=K,U=Z);var ee=D.split("-");if(!U&&ee.length>1)return R(ee[0])}else{var le=D.name;L[le]=D,U=le}return!G&&U&&(_=U),U||!G&&_},N=function(R,D){if(I(R))return R.clone();var K=typeof D=="object"?D:{};return K.date=R,K.args=arguments,new P(K)},b=M;b.l=k,b.i=I,b.w=function(R,D){return N(R,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var P=function(){function R(K){this.$L=k(K.locale,null,!0),this.parse(K),this.$x=this.$x||K.x||{},this[E]=!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(b.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(g);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 b},D.isValid=function(){return this.$d.toString()!==d},D.isSame=function(K,G){var U=N(K);return this.startOf(G)<=U&&U<=this.endOf(G)},D.isAfter=function(K,G){return N(K)<this.startOf(G)},D.isBefore=function(K,G){return this.endOf(G)<N(K)},D.$g=function(K,G,U){return b.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=!!b.u(G)||G,ee=b.p(K),le=function(z,A){var X=b.w(U.$u?Date.UTC(U.$y,A,z):new Date(U.$y,A,z),U);return Z?X:X.endOf(h)},O=function(z,A){return b.w(U.toDate()[z].apply(U.toDate("s"),(Z?[0,0,0,0]:[23,59,59,999]).slice(A)),U)},S=this.$W,V=this.$M,C=this.$D,v="set"+(this.$u?"UTC":"");switch(ee){case F:return Z?le(1,0):le(31,11);case c:return Z?le(1,V):le(0,V+1);case f:var Y=this.$locale().weekStart||0,j=(S<Y?S+7:S)-Y;return le(Z?C-j:C+(6-j),V);case h:case p:return O(v+"Hours",0);case u:return O(v+"Minutes",1);case i:return O(v+"Seconds",2);case s:return O(v+"Milliseconds",3);default:return this.clone()}},D.endOf=function(K){return this.startOf(K,!1)},D.$set=function(K,G){var U,Z=b.p(K),ee="set"+(this.$u?"UTC":""),le=(U={},U[h]=ee+"Date",U[p]=ee+"Date",U[c]=ee+"Month",U[F]=ee+"FullYear",U[u]=ee+"Hours",U[i]=ee+"Minutes",U[s]=ee+"Seconds",U[a]=ee+"Milliseconds",U)[Z],O=Z===h?this.$D+(G-this.$W):G;if(Z===c||Z===F){var S=this.clone().set(p,1);S.$d[le](O),S.init(),this.$d=S.set(p,Math.min(this.$D,S.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[b.p(K)]()},D.add=function(K,G){var U,Z=this;K=Number(K);var ee=b.p(G),le=function(V){var C=N(Z);return b.w(C.date(C.date()+Math.round(V*K)),Z)};if(ee===c)return this.set(c,this.$M+K);if(ee===F)return this.set(F,this.$y+K);if(ee===h)return le(1);if(ee===f)return le(7);var O=(U={},U[i]=n,U[u]=r,U[s]=o,U)[ee]||1,S=this.$d.getTime()+K*O;return b.w(S,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||d;var Z=K||"YYYY-MM-DDTHH:mm:ssZ",ee=b.z(this),le=this.$H,O=this.$m,S=this.$M,V=U.weekdays,C=U.months,v=U.meridiem,Y=function(A,X,H,J){return A&&(A[X]||A(G,Z))||H[X].slice(0,J)},j=function(A){return b.s(le%12||12,A,"0")},z=v||function(A,X,H){var J=A<12?"AM":"PM";return H?J.toLowerCase():J};return Z.replace(B,function(A,X){return X||function(H){switch(H){case"YY":return String(G.$y).slice(-2);case"YYYY":return b.s(G.$y,4,"0");case"M":return S+1;case"MM":return b.s(S+1,2,"0");case"MMM":return Y(U.monthsShort,S,C,3);case"MMMM":return Y(C,S);case"D":return G.$D;case"DD":return b.s(G.$D,2,"0");case"d":return String(G.$W);case"dd":return Y(U.weekdaysMin,G.$W,V,2);case"ddd":return Y(U.weekdaysShort,G.$W,V,3);case"dddd":return V[G.$W];case"H":return String(le);case"HH":return b.s(le,2,"0");case"h":return j(1);case"hh":return j(2);case"a":return z(le,O,!0);case"A":return z(le,O,!1);case"m":return String(O);case"mm":return b.s(O,2,"0");case"s":return String(G.$s);case"ss":return b.s(G.$s,2,"0");case"SSS":return b.s(G.$ms,3,"0");case"Z":return ee}return null}(A)||ee.replace(":","")})},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(K,G,U){var Z,ee=this,le=b.p(G),O=N(K),S=(O.utcOffset()-this.utcOffset())*n,V=this-O,C=function(){return b.m(ee,O)};switch(le){case F:Z=C()/12;break;case c:Z=C();break;case w:Z=C()/3;break;case f:Z=(V-S)/6048e5;break;case h:Z=(V-S)/864e5;break;case u:Z=V/r;break;case i:Z=V/n;break;case s:Z=V/o;break;default:Z=V}return U?Z:b.a(Z)},D.daysInMonth=function(){return this.endOf(c).$D},D.$locale=function(){return L[this.$L]},D.locale=function(K,G){if(!K)return this.$L;var U=this.clone(),Z=k(K,G,!0);return Z&&(U.$L=Z),U},D.clone=function(){return b.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}(),q=P.prototype;return N.prototype=q,[["$ms",a],["$s",s],["$m",i],["$H",u],["$W",h],["$M",c],["$y",F],["$D",p]].forEach(function(R){q[R[1]]=function(D){return this.$g(D,R[0],R[1])}}),N.extend=function(R,D){return R.$i||(R(D,P,N),R.$i=!0),N},N.locale=k,N.isDayjs=I,N.unix=function(R){return N(1e3*R)},N.en=L[_],N.Ls=L,N.p={},N})})(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(d){return(d=+d)+(d>68?1900:2e3)},h=function(d){return function(g){this[d]=+g}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(d){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var B=g.match(/([+-]|\d\d)/g),$=60*B[1]+(+B[2]||0);return $===0?0:B[0]==="+"?-$:$}(d)}],c=function(d){var g=i[d];return g&&(g.indexOf?g:g.s.concat(g.f))},w=function(d,g){var B,$=i.meridiem;if($){for(var x=1;x<=24;x+=1)if(d.indexOf($(x,0,g))>-1){B=x>12;break}}else B=d===(g?"pm":"PM");return B},F={A:[s,function(d){this.afternoon=w(d,!1)}],a:[s,function(d){this.afternoon=w(d,!0)}],S:[/\d/,function(d){this.milliseconds=100*+d}],SS:[r,function(d){this.milliseconds=10*+d}],SSS:[/\d{3}/,function(d){this.milliseconds=+d}],s:[a,h("seconds")],ss:[a,h("seconds")],m:[a,h("minutes")],mm:[a,h("minutes")],H:[a,h("hours")],h:[a,h("hours")],HH:[a,h("hours")],hh:[a,h("hours")],D:[a,h("day")],DD:[r,h("day")],Do:[s,function(d){var g=i.ordinal,B=d.match(/\d+/);if(this.day=B[0],g)for(var $=1;$<=31;$+=1)g($).replace(/\[|\]/g,"")===d&&(this.day=$)}],M:[a,h("month")],MM:[r,h("month")],MMM:[s,function(d){var g=c("months"),B=(c("monthsShort")||g.map(function($){return $.slice(0,3)})).indexOf(d)+1;if(B<1)throw new Error;this.month=B%12||B}],MMMM:[s,function(d){var g=c("months").indexOf(d)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,h("year")],YY:[r,function(d){this.year=u(d)}],YYYY:[/\d{4}/,h("year")],Z:f,ZZ:f};function p(d){var g,B;g=d,B=i&&i.formats;for(var $=(d=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(k,N,b){var P=b&&b.toUpperCase();return N||B[b]||o[b]||B[P].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(q,R,D){return R||D.slice(1)})})).match(n),x=$.length,M=0;M<x;M+=1){var _=$[M],L=F[_],E=L&&L[0],I=L&&L[1];$[M]=I?{regex:E,parser:I}:_.replace(/^\[|\]$/g,"")}return function(k){for(var N={},b=0,P=0;b<x;b+=1){var q=$[b];if(typeof q=="string")P+=q.length;else{var R=q.regex,D=q.parser,K=k.slice(P),G=R.exec(K)[0];D.call(N,G),k=k.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}}(N),N}}return function(d,g,B){B.p.customParseFormat=!0,d&&d.parseTwoDigitYear&&(u=d.parseTwoDigitYear);var $=g.prototype,x=$.parse;$.parse=function(M){var _=M.date,L=M.utc,E=M.args;this.$u=L;var I=E[1];if(typeof I=="string"){var k=E[2]===!0,N=E[3]===!0,b=k||N,P=E[2];N&&(P=E[2]),i=this.$locale(),!k&&P&&(i=B.Ls[P]),this.$d=function(K,G,U){try{if(["x","X"].indexOf(G)>-1)return new Date((G==="X"?1e3:1)*K);var Z=p(G)(K),ee=Z.year,le=Z.month,O=Z.day,S=Z.hours,V=Z.minutes,C=Z.seconds,v=Z.milliseconds,Y=Z.zone,j=new Date,z=O||(ee||le?1:j.getDate()),A=ee||j.getFullYear(),X=0;ee&&!le||(X=le>0?le-1:j.getMonth());var H=S||0,J=V||0,te=C||0,T=v||0;return Y?new Date(Date.UTC(A,X,z,H,J,te,T+60*Y.offset*1e3)):U?new Date(Date.UTC(A,X,z,H,J,te,T)):new Date(A,X,z,H,J,te,T)}catch{return new Date("")}}(_,I,L),this.init(),P&&P!==!0&&(this.$L=this.locale(P).$L),b&&_!=this.format(I)&&(this.$d=new Date("")),i={}}else if(I instanceof Array)for(var q=I.length,R=1;R<=q;R+=1){E[1]=I[R-1];var D=B.apply(this,E);if(D.isValid()){this.$d=D.$d,this.$L=D.$L,this.init();break}R===q&&(this.$d=new Date(""))}else x.call(this,M)}}})})(_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 h=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 h.s(i.week(),c==="w"?1:2,"0");case"W":case"WW":return h.s(i.isoWeek(),c==="W"?1:2,"0");case"k":case"kk":return h.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,w,F,p,d){var g=c.name?c:c.$locale(),B=s(g[w]),$=s(g[F]),x=B||$.map(function(_){return _.slice(0,p)});if(!d)return x;var M=g.weekStart;return x.map(function(_,L){return x[(L+(M||0))%7]})},u=function(){return r.Ls[r.locale()]},h=function(c,w){return c.formats[w]||function(F){return F.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(p,d,g){return d||g.slice(1)})}(c.formats[w.toUpperCase()])},f=function(){var c=this;return{months:function(w){return w?w.format("MMMM"):i(c,"months")},monthsShort:function(w){return w?w.format("MMM"):i(c,"monthsShort","months",3)},firstDayOfWeek:function(){return c.$locale().weekStart||0},weekdays:function(w){return w?w.format("dddd"):i(c,"weekdays")},weekdaysMin:function(w){return w?w.format("dd"):i(c,"weekdaysMin","weekdays",2)},weekdaysShort:function(w){return w?w.format("ddd"):i(c,"weekdaysShort","weekdays",3)},longDateFormat:function(w){return h(c.$locale(),w)},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(w){return h(c,w)},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 h=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=s(this).startOf(n).add(1,n).date(h),c=s(this).endOf(o);if(f.isBefore(c))return 1}var w=s(this).startOf(n).date(h).startOf(o).subtract(1,"millisecond"),F=this.diff(w,o,!0);return F<0?s(this).startOf("week").week():Math.ceil(F)},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,h=a+(6-s)*864e5,f=this.date2Str(new Date(u)),c=this.date2Str(new Date(h));return[f,c]}else{s=s==0?7:s;const i=24*60*60*1e3,u=a-(s-1)*i,h=a+(7-s)*i,f=this.date2Str(new Date(u)),c=this.date2Str(new Date(h));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,...Ie,...Yo,...Go},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),{emitEvent:i}=Te({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),h=u(n,["placeholder"]),f=l.ref(!1),c=ge(n,"modelValue",null,i),w=l.computed(()=>D.value&&Array.isArray(c.value)&&c.value.length==2?c.value[0]:c.value),F=l.computed(()=>D.value?"longTermKey":"normalKey"),p=z=>{if(D.value&&n.type==="daterange"){const A=[...c.value];A[0]=z,c.value=A}else c.value=z;i("update:modelValue",c.value),i("change",c.value)},d=l.computed(()=>D.value&&n.type==="daterange"?"date":n.type),g=e,B=l.computed(()=>({[`${g}`]:!0,"is-long":D.value,"is-readonly":s.value,"is-disabled":a.value}));let $=ge(n,"hintText"),x=l.ref(!1);const M=z=>{let X=z.target.value;f.value=!0,me($.value)||(x.value=!0),i("focus",X,z)},_=z=>{setTimeout(()=>{x.value&&(x.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)},L=()=>{i("clear","")},E=z=>{i("calendar-change",z)},I=(z,A,X)=>{i("panel-change",z,A,X)},k=z=>{i("visible-change",z)},N=Oe(l.computed(()=>n.longTermText),"longTermText",Me.Near),b=Oe(l.computed(()=>n.longTermActionLabel),"longTermActionLabel",Me.Near),P=Oe(l.computed(()=>n.longTermValue),"longTermValue",Me.Near),q=Oe(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 A=[];Array.isArray(P.value)?(A[0]=c.value?c.value[0]??P.value[0]:null,A[1]=P.value[1]??P.value[0]):(A[0]=c.value?c.value[0]??P.value:null,A[1]=D.value),A[0]||(A[0]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),A[1]||(A[1]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),c.value=A}else Array.isArray(P.value)?c.value=P.value[1]??P.value[0]:c.value=P.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 A=[];A[0]=Array.isArray(c.value)?c.value[0]:c.value,Array.isArray(R)?A[1]=R[1]:A[1]=R,A[0]||(A[0]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),A[1]||(A[1]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),c.value=A}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 A=[c.value[0]];Array.isArray(P.value)?A[1]=P.value[1]??P.value[0]:A[1]=D.value,A[0]||(A[0]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),A[1]||(A[1]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),c.value=A}else c.value=P.value;i("update:modelValue",c.value)}else Ye(P.value,c.value)&&(D.value=!0)};z(),l.watch([()=>n.longTerm],([A])=>{D.value!==A&&z()}),l.watch([()=>c.value],([A])=>{let X=!1;if(n.type==="daterange"&&Array.isArray(A))try{let H=A[1];if(!H)return;typeof H!="string"&&n.valueFormat&&(H=Be.format(H,n.valueFormat));let J=Array.isArray(P.value)?P.value[1]:P.value;(H===J||Array.isArray(q.value)&&q.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,A)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(z,A):le.test(z)&&z.length===n.flashFillThreshold,S=(z,A)=>{let X;if(typeof n.flashFillFormat=="function")X=n.flashFillFormat(z,A);else{const J=n.flashFillFormat??"YYYYMMDD";X=Be.parser(z,J)}const H=n.valueFormat??"YYYY-MM-DD";return Be.format(X,H)},V=z=>z?z.endsWith("range"):!1,C=z=>{if(!z.target)return;const A=z.target.value??"";if(O(A,n.type)){const X=S(A,n.type);if(V(n.type)){const H=Array.isArray(c.value)?[...c.value]:[];H[0]=X,p(H)}else p(X)}},v=z=>{if(!z.target)return;const A=z.target.value??"";if(O(A,n.type)){const X=S(A,n.type);if(V(n.type)){const H=Array.isArray(c.value)?[...c.value]:[];H[1]=X,p(H)}else p(X)}},Y=()=>{if(n.flashFill&&Z.value&&Z.value.$el)if(V(n.type)){const z=Z.value.$el.querySelectorAll("input.el-range-input");z[0]&&z[0].addEventListener("input",C),z[1]&&z[1].addEventListener("input",v)}else{const z=Z.value.$el.querySelector("input.el-input__inner");z&&z.addEventListener("input",C)}},j=()=>{if(n.flashFill&&Z.value&&Z.value.$el)if(V(n.type)){const z=Z.value.$el.querySelectorAll("input.el-range-input");z[0]&&z[0].removeEventListener("input",C),z[1]&&z[1].removeEventListener("input",v)}else{const z=Z.value.$el.querySelector("input.el-input__inner");z&&z.removeEventListener("input",C)}};return l.onMounted(Y),l.onBeforeUnmount(j),$e({focus:()=>{ee?.value.focus()},blur:()=>{ee?.value.blur()},handleOpen:()=>{ee?.value.handleOpen()},handleClose:()=>{ee?.value.handleClose()}}),()=>{const A={...r.attrs,key:F.value,type:d.value,ref:ee,class:B.value,placeholder:h.placeholder.value,disabled:a.value,readonly:s.value,modelValue:w.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":p,onClear:L,onFocus:M,onBlur:_,onCalendarChange:E,onPanelChange:I,onVisibleChange:k},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(y.ElDatePicker,A,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:N.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:b.value||N.value,disabled:s.value||a.value,modelValue:D.value,"onUpdate:modelValue":K},de=l.h(y.ElCheckbox,oe),se=l.h("div",{class:{[`${g}__append`]:!0}},[de]);te.append=()=>se}}const W={...Ne(n,Yo,Go),ref:Z,class:{[`${g}__wrapper`]:!0,"has-append":G},hintText:$.value,hintVisible:x.value};return n.prop&&(W.prop=`${n.prop}_item`),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,...Ie,...Uo},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),{emitEvent:i}=Te({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),h=u(n,["placeholder"]),f=l.ref(!1),c=ge(n,"modelValue",null,i),w=e,F=l.computed(()=>({[w]:!0})),p=L=>{c.value=L,i("update:modelValue",L),i("change",L)};let d=ge(n,"hintText"),g=l.ref(!1);const B=L=>{let I=L.target.value;f.value=!0,me(d.value)||(g.value=!0),i("focus",I,L)},$=L=>{setTimeout(()=>{g.value&&(g.value=!1),f.value=!1},0);let I=L.target.value;n.maxLength&&I.length>Number(n.maxLength)&&(I=I.slice(0,Number(n.maxLength))),i("blur",I,L)},x=()=>{i("clear","")},M=L=>{i("visible-change",L)},_=l.ref();return $e({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},handleOpen:()=>{_?.value.handleOpen()},handleClose:()=>{_?.value.handleClose()}}),()=>{const E={...r.attrs,ref:_,class:F.value,placeholder:h.placeholder.value,disabled:a.value,readonly:s.value,modelValue:c.value,"onUpdate:modelValue":p,onClear:x,onFocus:B,onBlur:$,onVisibleChange:M},I={},k=[],N=l.h(y.ElTimePicker,E,I);k.push(N);const b={default:()=>k};r.slots.default&&(b.label=r.slots.default),r.slots.fixedTip&&(b.fixedTip=r.slots.fixedTip);const q={...Ne(n,Uo),hintText:d.value,hintVisible:g.value};return n.prop&&(q.prop=`${n.prop}_item`),l.h(o,q,b)}}}}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,...Ie,...Xo},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),{emitEvent:i}=Te({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),h=u(n,["placeholder"]),f=l.ref(!1),c=ge(n,"modelValue",null,i),w=e,F=l.computed(()=>({[w]:!0})),p=_=>{c.value=_,i("update:modelValue",_),i("change",_)};let d=ge(n,"hintText"),g=l.ref(!1);const B=_=>{let E=_.target.value;f.value=!0,me(d.value)||(g.value=!0),i("focus",E,_)},$=_=>{setTimeout(()=>{g.value&&(g.value=!1),f.value=!1},0);let E=_.target.value;n.maxLength&&E.length>Number(n.maxLength)&&(E=E.slice(0,Number(n.maxLength))),i("blur",E,_)},x=()=>{i("clear","")},M=l.ref();return $e({focus:()=>{M?.value.focus()},blur:()=>{M?.value.blur()},handleOpen:()=>{M?.value.handleOpen()},handleClose:()=>{M?.value.handleClose()}}),()=>{const L={...r.attrs,ref:M,class:F.value,placeholder:h.placeholder.value,disabled:a.value,readonly:s.value,modelValue:c.value,"onUpdate:modelValue":p,onClear:x,onFocus:B,onBlur:$},E={},I=[],k=l.h(y.ElTimeSelect,L,E);I.push(k);const N={default:()=>I};r.slots.default&&(N.label=r.slots.default),r.slots.fixedTip&&(N.fixedTip=r.slots.fixedTip);const P={...Ne(n,Xo),hintText:d.value,hintVisible:g.value};return n.prop&&(P.prop=`${n.prop}_item`),l.h(o,P,N)}}}}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 Lt(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,...Ie,...tr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),{emitEvent:i}=Te({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(!1),h=ge(n,"modelValue",null,i),f=l.ref("");l.watch([()=>h.value,()=>n.rates,()=>n.precision],([q,R,D])=>{if(me(q)){f.value="";return}const K=Qo(q,R,D,!1);f.value!==K&&(f.value=K)},{immediate:!0});const c=l.computed(()=>{let q="";return u.value&&(q=f.value),q}),{t:w}=Le.useFoxI18n(t),F=l.computed(()=>{let q=n.placeholder??"";return!u.value&&!me(f.value)?q=$s(f.value,n.decimalLength,n.autoPadding,n.digits,n.separator):q=w(["placeholder",q]),q}),p=e,d=l.computed(()=>({[p]:!0,[`${p}__disabled`]:a.value,[`${p}__placeholder`]:f.value.length>0})),g=Oe(l.computed(()=>n.textAlign),"textAlign");l.computed(()=>u.value?{textAlign:"left"}:{textAlign:g.value??"right"});const B=l.ref(""),$=l.computed(()=>{let q=B.value;return me(q)&&(q=n.errorTip??""),q}),x=l.ref(""),M=l.ref(!1),_=(q,R)=>{if(q=`${q}`,me(q)){f.value="",h.value="",R.forEach(D=>{i(D,"")}),ue(n.showTip)&&M.value&&(M.value=!1);return}if(q.length>=2){let D=q;if(D.charAt(0)=="-"&&(D=D.substring(1)),D.length>=2&&D.charAt(0)=="0"&&D.charAt(1)!="."){l.triggerRef(f);return}}if(q!="-"){if(!lo(q)){l.triggerRef(f);return}if(n.integerLength!=-1&&oo(q)>Number(n.integerLength)){l.triggerRef(f);return}if(n.decimalLength&&n.decimalLength!=-1&&ro(q)>Number(n.decimalLength)){l.triggerRef(f);return}let D=er(q,n);if(D.maxValid===!1){B.value=D.message,l.triggerRef(f);return}}else if(n.min!=null&&ve(n.min)>=0){l.triggerRef(f);return}x.value=q,ue(n.showTip)&&(M.value=q.length>0),f.value=q,h.value=Qo(q,n.rates,n.precision,!0),R.forEach(D=>{i(D,h.value)})},L=q=>{_(q,["update:modelValue","input"])},E=q=>{_(q,["update:modelValue","change"])},I=q=>{if(u.value=!0,ue(n.showTip)){let R=f.value;me(R)&&(R=n.hintText),me(R)||(x.value=R,M.value=!0)}B.value="",i("focus",h.value,q)},k=q=>{if(setTimeout(()=>{u.value=!1,ue(n.showTip)&&M.value===!0&&(M.value=!1)},0),!me(f.value)){let R=er(f.value,n);if(R.minValid===!1||R.maxValid===!1){B.value=R.message;return}}i("update:modelValue",h.value,q),i("blur",h.value,q)},N=()=>{i("clear","")},b=l.computed(()=>wt(n.unit)>0),P=l.ref();return $e({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()},select:()=>{P?.value.select()}}),()=>{const R={...He(r.attrs),ref:P,class:d.value,type:"digit",maxlength:n.maxLength,placeholder:F.value,clearable:n.clearable,disabled:a.value,readonly:s.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:N,onInput:L,onChange:E,onFocus:I,onBlur:k},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:b.value&&(D.suffix=()=>[n.unit]);const K=[],G=l.h(y.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:$.value,hintText:x.value,hintVisible:M.value,hintType:"number"};return n.prop&&(ee.prop=`${n.prop}_item`),l.h(o,ee,U)}}}}const{componentName:Es,create:Ns,scope:ks}=ie("money-item"),Xn=Ns(Cs(Es,ks,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,...Ie,...nr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),{emitEvent:i}=Te({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),h=u(n,["placeholder"]),f=l.ref(!1),c=ge(n,"modelValue",null,i),w=e,F=l.computed(()=>({[w]:!0,[`${w}__append`]:L.value})),p=l.computed(()=>({[`${w}__unit`]:!0})),d=I=>{c.value=I,i("update:modelValue",I),i("input",I)},g=I=>{i("change",I)};let B=ge(n,"hintText"),$=l.ref(!1);const x=I=>{let N=I.target.value;f.value=!0,me(B.value)||($.value=!0),i("focus",N,I)},M=I=>{setTimeout(()=>{$.value&&($.value=!1),f.value=!1},0);let N=I.target.value;n.maxLength&&N.length>Number(n.maxLength)&&(N=N.slice(0,Number(n.maxLength))),i("blur",N,I)},_=()=>{i("clear","")},L=l.computed(()=>wt(n.unit)>0),E=l.ref();return $e({focus:()=>{E?.value.focus()},blur:()=>{E?.value.blur()}}),()=>{const k={...He(r.attrs),ref:E,class:F.value,placeholder:h.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:s.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:_,onChange:g,onInput:d,onFocus:x,onBlur:M},N={},b=[],P=l.h(y.ElInputNumber,k,N);b.push(P);const q={default:()=>b};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const D={...Ne(n,nr),hintText:B.value,hintVisible:$.value};if(n.prop&&(D.prop=`${n.prop}_item`),r.slots.append)q.append=r.slots.append;else if(L.value){const G={class:p.value},U=l.h("div",G,[n.unit]);q.append=()=>U}return l.h(o,D,q)}}}}const{componentName:Os,create:Vs,scope:Fs}=ie("input-number-item"),Zn=Vs(Is(Os,Fs,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 Ds(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 h of a){if(o==="text")u=Ze(e,h)===i;else if(o==="item")u=Jn(e,h,i);else{let f=rt(e,h);f==null&&(f=Ze(e,h)),u=f===i}if(u){r.push(h),a=Ds(e,h);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,...Ie,...or},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),{emitEvent:i}=Te({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),h=u(n,["placeholder"]),f=l.ref(null),c=l.ref([]),w=l.computed(()=>c.value?c.value.map(z=>Array.isArray(z)?z.map(X=>Ze(n,X)).join(" "):Ze(n,z)).join(" "):""),F=(j,z,A,X=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(f.value===j)return;f.value=j;const T=l.toRaw(j);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,j,z,A);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(N.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&&(I.value=T.join(n.separator))}else I.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))}},p=l.ref([]),d=Oe(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,j=>ue(j)),g=As(),B=async(j,z)=>{if(j){const A=await g.load("cascader",j,z);if(A.length>0)if(typeof A[0]=="string"){let J=A.map(te=>Ls(te));p.value=J}else p.value=A}};l.watch([()=>n.source,()=>n.params],async([j,z])=>{B(j,z)},{immediate:!(d.value||n.lazy)});let $=!1;const x=()=>{$||($=!0,B(n.source,n.params))};l.watch([()=>p.value,()=>n.modelValue],([j,z])=>{F(z,n.valueType,j,!1),i("setValue",z)}),n.lazy&&F(n.modelValue,"value",[],!1);let M=null,_=l.ref(!1);typeof n.remoteMethod=="function"&&(M=async j=>{if(j!=null){_.value=!0;try{const z=await n.remoteMethod(j);p.value=z}catch(z){console.error(z)}_.value=!1}});const L=l.ref(!1),E=e,I=l.ref(null),k=l.computed(()=>({[E]:!0,"is-incomplete":I.value&&I.value.length>0})),N=l.computed(()=>{let j={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(j.multiple=!0),n.props&&Object.assign(j,n.props),n.lazy&&(j.lazy=!0,typeof n.lazyLoad=="function"?j.lazyLoad=n.lazyLoad:j.lazyLoad=async(z,A)=>{const X=await g.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&&(I.value=J.join(n.separator))}else I.value=null;A(X)}),j}),b=j=>{n.allowCreate?(i("update:modelValue",j),i("change",j),f.value=j):F(j,"value",p.value,!0)};let P=ge(n,"hintText"),q=l.ref(!1);const R=j=>{let A=j.target.value;L.value=!0,me(P.value)||(q.value=!0),i("focus",A,j)},D=j=>{setTimeout(()=>{q.value&&(q.value=!1),L.value=!1},0);let A=j.target.value;n.maxLength&&A.length>Number(n.maxLength)&&(A=A.slice(0,Number(n.maxLength))),S.value||i("blur",A,j)},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||q.value),O=l.computed(()=>G.value?w.value:P.value),S=l.ref(!1),V=j=>{S.value=j,i("visible-change",j),j||i("selected")},C=j=>{i("remove-tag",j)},v=j=>{i("expand-change",j)},Y=l.ref();return $e({focus:()=>{Y?.value.focus()},blur:()=>{Y?.value.blur()},getCheckedNodes:()=>Y?.value.getCheckedNodes()}),()=>{const z={...r.attrs,ref:Y,class:k.value,props:N.value,clearable:n.clearable,placeholder:I.value||h.placeholder.value,disabled:a.value||s.value,options:p.value,modelValue:f.value,separator:n.separator,onClear:K,onChange:b,onFocus:R,onBlur:D,onVisibleChange:V,onRemoveTag:C,expandChange:v};typeof M=="function"&&(z["remote-method"]=M,z.loading=_.value);const A={};r.slots.option&&(A.default=r.slots.option),r.slots.empty&&(A.empty=r.slots.empty);const X=[],H=l.h(y.ElCascader,z,A);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,onMouseover:Z,onMouseleave:ee};return n.prop&&(T.prop=`${n.prop}_item`),d.value&&!n.lazy&&(T["appear-listen"]=!0,T.onAppear=x),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,...Ie,...rr},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),{emitEvent:i}=Te({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),h=u(n,["placeholder"]),f=l.ref(!1),c=ge(n,"modelValue",null,i),w=e,F=l.computed(()=>({[w]:!0})),p=E=>{c.value=E,i("update:modelValue",E),i("input",E)},d=E=>{i("change",E)},g=E=>{i("select",E)};let B=ge(n,"hintText"),$=l.ref(!1);const x=E=>{let k=E.target.value;f.value=!0,me(B.value)||($.value=!0),i("focus",k,E)},M=E=>{setTimeout(()=>{$.value&&($.value=!1),f.value=!1},0);let k=E.target.value;n.maxLength&&k.length>Number(n.maxLength)&&(k=k.slice(0,Number(n.maxLength))),i("blur",k,E)},_=()=>{i("clear","")},L=l.ref();return $e({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()},select:()=>{L?.value.select()}}),()=>{const I={...r.attrs,ref:L,class:F.value,placeholder:h.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:s.value,modelValue:c.value,onClear:_,onChange:d,onInput:p,onFocus:x,onBlur:M,onSelect:g},k={};r.slots.prepend&&(k.prepend=r.slots.prepend),r.slots.append&&(k.append=r.slots.append),r.slots.prefix&&(k.prefix=r.slots.prefix),r.slots.suffix&&(k.suffix=r.slots.suffix),r.slots.option&&(k.default=r.slots.option);const N=[],b=l.h(y.ElAutocomplete,I,k);N.push(b);const P={default:()=>N};r.slots.default&&(P.label=r.slots.default),r.slots.fixedTip&&(P.fixedTip=r.slots.fixedTip);const R={...Ne(n,rr),hintText:B.value,hintVisible:$.value};return n.prop&&(R.prop=`${n.prop}_item`),l.h(o,R,P)}}}}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 h=0;u&&h<a.length;h++){let f=a[h],c=u.find(w=>w[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 h=t[u],f=a[u];const c=h.find(w=>w[n]===f);if(!c)break;s.push(c[o])}else{let u=t;for(let h=0;u&&h<a.length;h++){let f=a[h],c=u.find(w=>w[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([h,f])=>{s.value=await a.load(o.sourceType,h,f)},{immediate:!0});const i=l.computed(()=>{if(!Array.isArray(s.value)||s.value.length===0)return"";let h=Ks(o.modelValue,s.value,o.textKey,o.valueKey,o.childrenKey);return h.length==0?o.emptyText??"":h.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${h[0]}`:h[0]:h.join(o.separator)}),u=o.resolveTag?l.resolveComponent(o.tag):o.tag;return()=>{const h={...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,h,{default:()=>i.value}):l.h(u,h,i.value)}}}}const{componentName:Ch,create:Us,scope:Eh}=ie("mapping"),It=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 h=a.substring(i+1,u);if(/^\d+$/.test(h)){let f=parseInt(h);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(It,{...o,modelValue:i},{default:r.default}):l.h(It,{...o,modelValue:i})}};for(let s in r)s!=="default"&&(a[s]=r[s]);return l.h(y.ElTableColumn,{...n},a)}}}}const{componentName:Nh,create:Js,scope:kh}=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 h=a.substring(i+1,u);if(/^\d+$/.test(h)){let f=parseInt(h);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),h=a?ir(a,i.column.property):null,f=u===h,c={class:{"el-radio__input":!0,"is-checked":f}},w=l.h("span",c,[l.h("span",{class:{"el-radio__inner":!0}})]),F={class:{"el-radio":!0,"is-checked":f}};return l.h("label",F,[w])}};return l.h(y.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:Fh,create:iu,scope:Dh}=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:y.ElPopover,FoxCheckbox:y.ElCheckbox,FoxCheckboxGroup:y.ElCheckboxGroup,FoxButton:y.ElButton,FoxIcon:y.ElIcon,DragIcon:au,Download:Ce.Download,RefreshLeft:Ce.RefreshLeft},props:{...su},setup(e,{emit:t,attrs:o}){let n=[];const r=l.ref([]),a=l.computed(()=>r.value.filter(v=>v.label===""||v.type?!1:v.fixed===""||v.fixed===!0||v.fixed==="left")),s=l.computed(()=>r.value.filter(v=>v.label===""||v.type?!1:v.fixed==="right")),i=l.computed(()=>r.value.filter(v=>!(v.label===""||v.type||v.fixed!==void 0))),u=l.computed(()=>(a.value.length>0||s.value.length>0)&&i.value.length>0),h=l.computed(()=>a.value.length>0),f=l.computed(()=>s.value.length>0),c=v=>v.length>1,w=(v,Y)=>{Array.isArray(v)&&Array.isArray(Y)&&v.forEach(A=>{Y.some(X=>X.prop===A.prop?(A.label=X.label,!0):!1)});const j=[];r.value=v.map((A,X)=>(!(A.label===""||A.type)&&A.visible!==!1&&j.push(A.prop),{...A,sortIndex:X})),i.value.length+a.value.length+s.value.length===j.length?$.value=!0:j.length>0&&(x.value=!0),L.value=j},F=v=>v?v.type?v.type:v.label?v.prop:"":"",p=(v,Y)=>{if(v.length!==Y.length)return!1;const j=v.map(z=>F(z));for(let z of Y){const A=F(z);if(j.indexOf(A)===-1)return!1}return!0},d=v=>{if(!v){const Y=e.tableRef.getColumnSetting(),j=Y.srcColumnPropertyList;n=j.map((z,A)=>({...z,sortIndex:A})),v=Y.columnPropertyList,v&&v.length>0&&p(j,v)||(v=j)}w(v,n)},g=()=>{e.tableRef.setColumnSetting(r.value)},B=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),$=l.ref(!1),x=l.ref(!1),M=v=>{const Y=[];r.value.forEach(z=>{v&&!(z.label===""||z.type)&&Y.push(z.prop),z.visible=v}),$.value=!1,x.value=!1,i.value.length+a.value.length+s.value.length===Y.length?$.value=!0:Y.length>0&&(x.value=!0),L.value=Y,g()},_=()=>{d(n),g()},L=l.ref([]),E=v=>{r.value.forEach(j=>{if(j.label===""||j.type)return;const z=v.indexOf(j.prop)!==-1;j.visible=z}),$.value=!1,x.value=!1;const Y=i.value.length+a.value.length+s.value.length;v.length===Y?$.value=!0:v.length>0&&(x.value=!0),g()},I=()=>{d()};l.onMounted(()=>{setTimeout(()=>{d()},50)});const k={currentRow:null,index:null,roleType:null},N=v=>v?v.dataset&&v.dataset.role==="row"?v:v.tagName.toLowerCase()!=="body"?(v=v.parentElement,N(v)):null:null,b=v=>{const Y=v.currentTarget;Y&&Y.dataset&&(k.roleType=Y.dataset.roleType,k.index=Y.dataset.index)},P=v=>{k.currentRow&&(k.currentRow.classList.remove("is-dragover"),k.currentRow=null),k.index=null,k.roleType=null},q=v=>{const Y=v.currentTarget;v.relatedTarget;const j=N(Y);if(!j)return;const z=j.dataset&&j.dataset.roleType;k.roleType===z&&(v.preventDefault(),k.currentRow&&k.currentRow!==j&&k.currentRow.classList.remove("is-dragover"),j.classList.add("is-dragover"),k.currentRow=j)},R=v=>{v.preventDefault(),k.currentRow&&(k.currentRow.classList.remove("is-dragover"),k.currentRow=null)},D=v=>{const Y=v.currentTarget,j=N(Y);if(!j)return;const z=j.dataset&&j.dataset.roleType;if(k.roleType!==z)return;v.preventDefault();const A=Number(k.index),X=Number(j.dataset.index);if(A!==X){if(A<X){const H=r.value[A];r.value.splice(A,1),r.value.splice(X,0,H)}else{const H=r.value[A];r.value.splice(A,1),r.value.splice(X+1,0,H)}w(r.value,n),g()}},K=v=>{const Y=r.value[v];Y.fixed="left",g()},G=v=>{const Y=r.value[v];Y.fixed="right",g()},U=v=>{const Y=r.value[v];Y.fixed=void 0,g()},Z=new Map;let ee=null;function le(v){const Y=document.createRange();return Y.setStart(v,0),Y.setEnd(v,v.childNodes.length),Y.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:s,unFixedColumns:i,isShowNotFixedTitle:u,isShowLeftFixedTitle:h,isShowRightFixedTitle:f,isDraggble:c,isCheckAll:$,isIndeterminate:x,handleCheckAllChange:M,handleReset:_,checkedValue:L,handleCheckChange:E,onShow:I,onDragStart:b,onDragEnd:P,onDragOver:q,onDragLeave:R,onDrop:D,toLeftFixed:K,toRightFixed:G,toUnFixed:U,checkboxLabelStyle:B,onMouseOverForOverflowText:(v,Y,j)=>{const z=v.currentTarget;if(z){const A=Math.floor(z.offsetWidth);if(Math.floor(le(z))>A){let H=Z.get(Y);if(H){if(H===ee)return;De.hide(H)}H=De.show(z,j,{type:"text",placement:"top",closeOnClick:!1}),H&&(Z.set(Y,H),ee=H)}}},onMouseLeaveForOverflowText:(v,Y)=>{const j=Z.get(Y);j&&(De.hide(j),j===ee&&(ee=null))},onMouseOverForTip:(v,Y)=>{const j=v.currentTarget;j&&(ee&&De.hide(ee),ee=De.show(j,Y,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:v=>{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"],Eu=["onMouseover","onMouseleave"],Nu={class:"tools-item"};function ku(e,t,o,n,r,a){const s=l.resolveComponent("FoxCheckbox"),i=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),h=l.resolveComponent("RefreshLeft"),f=l.resolveComponent("FoxIcon"),c=l.resolveComponent("Download"),w=l.resolveComponent("fox-checkbox"),F=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",cu,[l.createElementVNode("div",fu,[l.createVNode(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=d=>e.isCheckAll=d),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(F,{modelValue:e.checkedValue,"onUpdate:modelValue":t[28]||(t[28]=d=>e.checkedValue=d),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,d=>(l.openBlock(),l.createElementBlock("div",{key:d.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":d.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(s,{class:"checkbox-item",value:d.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,d.prop,d.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,d.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(d.label),45,pu)]),_:2},1032,["value"]),l.createElementVNode("div",yu,[l.createVNode(f,{onClick:g=>e.toUnFixed(d.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(h)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:g=>e.toRightFixed(d.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(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,d=>(l.openBlock(),l.createElementBlock("div",{key:d.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":d.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(s,{class:"checkbox-item",value:d.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,d.prop,d.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,d.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(d.label),45,Su)]),_:2},1032,["value"]),l.createElementVNode("div",xu,[l.createVNode(f,{onClick:g=>e.toLeftFixed(d.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(c)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:g=>e.toRightFixed(d.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(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,d=>(l.openBlock(),l.createElementBlock("div",{key:d.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":d.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(w,{class:"checkbox-item",label:d.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,d.prop,d.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,d.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(d.label),45,Eu)]),_:2},1032,["label"]),l.createElementVNode("div",Nu,[l.createVNode(f,{onClick:g=>e.toUnFixed(d.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(h)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:g=>e.toLeftFixed(d.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(c)]),_:2},1032,["onClick"])])],40,Cu))),128))])):l.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const rn=_e(uu,[["render",ku]]);let Iu=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,r,a,s,i){if(Array.isArray(o)){let h=(n-1)*r,f=h+r;f>o.length&&(f=o.length);const c=o.slice(h,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 Fu=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:"不固定"}},Du={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 h=a.substring(i+1,u);if(/^\d+$/.test(h)){let f=parseInt(h);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,...Ie,...ur,...cr,...ll,...Du},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}=Te({componentName:e,validateHandler:{getValue(...Q){return L.value}}},n.prop??r.attrs.name),i=e,u=l.computed(()=>({[i]:!0})),h=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})),w=l.shallowRef({}),F=l.computed(()=>({...w.value,...n.params??{},...n.baseParams??{}})),p=l.ref(n.infiniteLoad===!0?0:n.pageIndex),d=l.ref(n.pageSize),g=ue(n.infiniteLoad);g||(l.watch(()=>n.pageIndex,Q=>{p.value=Q}),l.watch(()=>n.pageSize,Q=>{d.value=Q}),l.watch([p,d],([Q,re],[ae,ce])=>{re!==ce&&(p.value=1,Q=1),N(n.data,Q,re,F.value)}));const B=()=>Array.isArray(n.data)?!0:ue(n.autoLoad);B()&&l.watch([()=>n.data,F],async([Q,re],[ae,ce])=>{B()&&(Q!==ae&&(I=!0),!(!Array.isArray(Q)&&Ye(Q,ae)&&Ye(re,ce))&&(g?(p.value=0,M.value=!0,L.value=[],P()):p.value===1?N(Q,p.value,d.value,re):p.value=1))},{deep:!0});const $=Q=>{p.value=Q,s("page-index-change",Q)},x=Q=>{d.value=Q,s("page-size-change",Q)},M=l.ref(!0),_=l.ref(0),L=l.ref(),E=Ou();let I=!0;const k=Oe(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,Q=>ue(Q)),N=async(Q,re,ae,ce,xe)=>{I=!1;try{if(xe===!0){if(!M.value)return!1;const be=await E.load("table",Q,re,ae,ce,I,a.value);return _.value=be.totalSize,!be.page||!Array.isArray(be.page)||(Reflect.apply([].push,L.value,be.page),setTimeout(()=>{s("loaded-data")},250),(L.value?.length??0)>=_.value)||be.page.length<ae?(M.value=!1,!1):!0}else{const be=await E.load("table",Q,re,ae,ce,I,a.value);return _.value=be.totalSize,L.value=be.page??[],setTimeout(()=>{s("loaded-data")},250),!0}}catch(be){console.error("[FoxUI] Load Table Data Fail",be),_.value=0,L.value=[]}return!1};let b=!1;const P=async()=>{if(!b){if(b=!0,!M.value){b=!1;return}p.value+=1,await N(n.data,p.value,d.value,F.value,!0),b=!1}},q=(Q={},re=!1)=>new Promise(async ae=>{w.value={...l.toRaw(Q??{})},re||(p.value=n.pageIndex??1),g===!0?(p.value=0,L.value=[],M.value=!0,await P()):await N(n.data,p.value,d.value,F.value),ae()}),R=()=>{_.value=0,L.value=[],g===!0&&(p.value=0,M.value=!0)};let D=!1;const K=()=>{D||(D=!0,q())},G=l.ref(null);if(g===!0){let Q=null;const re=()=>{G.value&&(Q=new IntersectionObserver(ce=>{let xe=!1;for(let be of ce)if(be.intersectionRatio>0){xe=!0;break}xe&&P()}),Q.observe(G.value))},ae=()=>{!Q||!G.value||(Q.unobserve(G.value),Q=null)};l.onMounted(re),l.onBeforeUnmount(ae)}B()&&!k.value&&q();const U=l.ref(null);l.provide(Fu,{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)}},S=r.attrs.id??n.prop??r.attrs.name,V=sr(),C=l.ref([]);let v=[];const Y=()=>({srcColumnPropertyList:v.map(re=>({...re})),columnPropertyList:C.value}),j=Q=>{C.value=[...Q],A()},z=async()=>{const Q=await V.load(S);Q&&(C.value=Q)},A=()=>{V.save(S,C.value)},X=()=>{V.remove(S)};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(v=[],Q.forEach(ae=>{const xe=ae;if(!xe.props)return;const be=H(xe.props);re.set(be,xe);const it={label:"",prop:""};te(it,xe.props),v.push(it)}),C.value.length===v.length){const ae=[];for(let ce of C.value){const xe=H(ce),be=re.get(xe);if(!be)return Q;if(ce.visible===!1)continue;const it=be;it.props.fixed=ce.fixed,ae.push(it)}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 $e({clearSelection:()=>se?.value.clearSelection(),getSelectionRows:()=>se?.value.getSelectionRows(),toggleRowSelection:(Q,re)=>{se?.value.toggleRowSelection(Q,re)},toggleRowSelectionByProp:(Q,re)=>{if(!L.value)return;const ae=ol(L.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(!L.value)return;const ae=ol(L.value,Q);ae.length!==0&&ae.forEach(ce=>{se?.value.toggleRowExpansion(ce,re)})},setCurrentRow:Q=>{se?.value.setCurrentRow(Q)},setCurrentRowByProp:Q=>{if(!L.value)return;const re=ol(L.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:q,clearData:R,getData(){return L.value},getTotalSize(){return _.value},getPageIndex(){return p.value},getPageSize(){return d.value},getColumnSetting:Y,setColumnSetting:j,removeColumnSetting:X,setCellClassName:de}),()=>{const re={...He(r.attrs),onCurrentChange:Z,onRowClick:ee,onExpandChange:O,data:L.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),g===!0){const je=[];if(M.value){const Dt=l.h(Ce.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 st={ref:G,class:`${i}__infinite`},Bl=l.h("div",st,je);ae.append=()=>Bl}const ce=l.h(y.ElTable,re,ae),xe=[];if(xe.push(ce),!g){let je=null;if(typeof r.slots.pagination=="function")je=r.slots.pagination();else if(n.showPagination){const st={class:c.value,total:_.value,pageSize:d.value,"onUpdate:pageSize":x,pageSizes:n.pageSizes,currentPage:p.value,"onUpdate:currentPage":$,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,samll:n.paginationSmall,background:n.paginationBackground};je=l.h(y.ElPagination,st)}if(n.showSetting){const st=[];je&&st.push(je);const Bl=l.h(y.ElIcon,{class:h.value},{default:()=>l.h(Ce.Setting)}),Dt=io(n,ll),_l=l.h(rn,{...Dt,tableRef:{getColumnSetting:Y,setColumnSetting:j,removeColumnSetting:X}},{default:()=>Bl});st.push(_l);const bh=l.h("div",{class:f.value},st);xe.push(bh)}else je&&xe.push(je)}const be={default:()=>xe},yt={...Ne(n,ur,cr,ll)};return n.prop&&(yt.prop=`${n.prop}_item`),yt.contentClass=`${i}__wrap`,yt.errorMarkClass="is-table-error",k.value&&B()&&(yt["appear-listen"]=!0,yt.onAppear=K),l.h(o,yt,be)}}}}const{componentName:Lu,create:Mu,scope:Bu}=ie("table-item"),rl=Mu(Au(Lu,Bu,Se));function ht(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ot(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=ht(e,t),r=ht(e,o);if(n!==r)return!1;const a=Ot(e,t),s=Ot(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=ht(e,a)===t;else if(o==="item")s=fr(e,a,t);else{let i=Ot(e,a);i==null&&(i=ht(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,...Ie,...dr},emits:["change","update:modelValue","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),{emitEvent:i}=Te({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),h=l.ref(null),f=(E,I,k,N=!0)=>{const b=ju(n,E,I,k);if(b===null){if(h.value===null)return;h.value=null,u.value=null,N&&(i("update:modelValue",null),i("change",null));return}if(!fr(n,b,h.value)){u.value=E;const q=l.toRaw(b);h.value=q;let R=null;n.valueType==="text"?R=ht(n,q):n.valueType==="item"?R=q:R=Ot(n,q),N&&(i("update:modelValue",R),i("change",R))}},c=l.ref([]),w=Oe(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,E=>ue(E)),F=Pu(),p=async(E,I)=>{if(E){const k=await F.load("radio",E,I);if(k.length>0)if(typeof k[0]=="string"){let P=k.map(q=>zu(q));c.value=P}else c.value=k}};l.watch([()=>n.source,()=>n.params],async([E,I])=>{p(E,I)},{immediate:!w.value});let d=!1;const g=()=>{d||(d=!0,p(n.source,n.params))};l.watch([()=>c.value,()=>n.modelValue],([E,I])=>{f(I,n.valueType,E,!1),i("setValue",I)});const B=e,$=l.computed(()=>({[B]:!0,[`is-${n.direction}`]:!0})),x=E=>{f(E,"value",c.value,!0)};let M=ge(n,"hintText"),_=ge(n,"hintVisible");const L=(E,I)=>{const k=[];return E.forEach((N,b)=>{const P=Ot(n,N),q=ht(n,N);let R=_u(n,N);a.value===!0&&(R=a.value),s.value===!0&&(R=s.value);const D=Hu(n,N,b)??{},K=`${P}_${b}`,G={...D,key:K,value:P,size:n.size,border:ue(n.border)};R&&(G.disabled=R),n.itemType==="button"?k.push(l.h(y.ElRadioButton,G,{default:()=>[q]})):typeof I=="function"?k.push(l.h(y.ElRadio,G,{default:()=>I(N)})):k.push(l.h(y.ElRadio,G,{default:()=>[q]}))}),k};return()=>{const I={...He(r.attrs),class:$.value,disabled:a.value||s.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:x},k=[],N={};r.slots.options?N.default=r.slots.options:N.default=()=>L(c.value,r.slots.text);const b=l.h(y.ElRadioGroup,I,N);k.push(b);const P={default:()=>k};r.slots.default&&(P.label=r.slots.default),r.slots.fixedTip&&(P.fixedTip=r.slots.fixedTip);const R={...Ne(n,dr),hintText:M.value,hintVisible:_.value};return n.prop&&(R.prop=`${n.prop}_item`),w.value&&(R["appear-listen"]=!0,R.onAppear=g),l.h(o,R,P)}}}}const{componentName:Wu,create:Yu,scope:Gu}=ie("radio-item"),al=Yu(Ku(Wu,Gu,Se));function gt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function mt(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=gt(e,t),r=gt(e,o);if(n!==r)return!1;const a=mt(e,t),s=mt(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=gt(e,s)===a;else if(o==="item")i=hr(e,s,a);else{let u=mt(e,s);u==null&&(u=gt(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,...Ie,...gr},emits:["change","update:modelValue","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),{emitEvent:i}=Te({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([]),h=l.ref([]),f=(E,I,k,N=!0)=>{const b=Ju(n,E,I,k);if(b===null){if(h.value===null||h.value.length===0)return;u.value=[],h.value=[],N&&(i("update:modelValue",[]),i("change",[]));return}let P=!0;if(b.length!==h.value.length)P=!1;else for(let q=0;q<b.length;q++){const R=b[q],D=h.value[q];if(!hr(n,R,D)){P=!1;break}}if(!P){h.value=b;let q=[],R=[];b.forEach(K=>{q.push(mt(n,K)),n.valueType==="text"?R.push(gt(n,K)):n.valueType==="item"?R.push(K):R.push(mt(n,K))}),u.value=q;const D=l.toRaw(R);N&&(i("update:modelValue",D),i("change",D))}},c=l.ref([]),w=Oe(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,E=>ue(E)),F=Zu(),p=async(E,I)=>{if(E){const k=await F.load("checkbox",E,I);if(k.length>0)if(typeof k[0]=="string"){let P=k.map(q=>Qu(q));c.value=P}else c.value=k}};l.watch([()=>n.source,()=>n.params],async([E,I])=>{p(E,I)},{immediate:!w.value});let d=!1;const g=()=>{d||(d=!0,p(n.source,n.params))};l.watch([()=>c.value,()=>n.modelValue],([E,I])=>{f(I,n.valueType,E,!1),i("setValue",I)});const B=e,$=l.computed(()=>({[B]:!0,[`is-${n.direction}`]:!0})),x=E=>{f(E,"value",c.value,!0)};let M=ge(n,"hintText"),_=ge(n,"hintVisible");const L=(E,I)=>{const k=[];return E.forEach((N,b)=>{const P=mt(n,N),q=gt(n,N);let R=Uu(n,N);a.value===!0&&(R=a.value),s.value===!0&&(R=s.value);const D=ec(n,N,b)??{},K=`${P}_${b}`,G={...D,key:K,class:n.itemClass,value:P,size:n.size,border:ue(n.border)};R&&(G.disabled=R),n.itemType==="button"?k.push(l.h(y.ElCheckboxButton,G,{default:()=>[q]})):typeof I=="function"?k.push(l.h(y.ElCheckbox,G,{default:()=>I(N)})):k.push(l.h(y.ElCheckbox,G,{default:()=>[q]}))}),k};return()=>{const I={...He(r.attrs),class:$.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:x},k=[],N={};r.slots.options?N.default=r.slots.options:N.default=()=>L(c.value,r.slots.text);const b=l.h(y.ElCheckboxGroup,I,N);k.push(b);const P={default:()=>k};r.slots.default&&(P.label=r.slots.default),r.slots.fixedTip&&(P.fixedTip=r.slots.fixedTip);const R={...Ne(n,gr),hintText:M.value,hintVisible:_.value};return n.prop&&(R.prop=`${n.prop}_item`),w.value&&(R["appear-listen"]=!0,R.onAppear=g),l.h(o,R,P)}}}}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,...Ie,...mr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),{emitEvent:i}=Te({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",d=>ve(d),i),h=e,f=l.computed(()=>({[h]:!0})),c=d=>{i("update:modelValue",d),i("change",d)};let w=ge(n,"hintText"),F=l.ref(!1);const p=l.ref();return $e({}),()=>{const g={...He(r.attrs),ref:p,class:f.value,readonly:s.value||a.value,modelValue:u.value,onChange:c},B={},$=[],x=l.h(y.ElRate,g,B);$.push(x);const M={default:()=>$};r.slots.default&&(M.label=r.slots.default),r.slots.fixedTip&&(M.fixedTip=r.slots.fixedTip);const L={...Ne(n,mr),hintText:w.value,hintVisible:F.value};return n.prop&&(L.prop=`${n.prop}_item`),l.h(o,L,M)}}}}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,...Ie,...pr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),{emitEvent:i}=Te({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),h=e,f=l.computed(()=>({[h]:!0})),c=d=>{i("update:modelValue",d),i("change",d)};let w=ge(n,"hintText"),F=ge(n,"hintVisible");const p=l.ref();return $e({}),()=>{const g={...He(r.attrs),ref:p,class:f.value,readonly:s.value,disabled:a.value,modelValue:u.value,onChange:c},B={},$=[],x=l.h(y.ElSwitch,g,B);$.push(x);const M={default:()=>$};r.slots.default&&(M.label=r.slots.default),r.slots.fixedTip&&(M.fixedTip=r.slots.fixedTip);const L={...Ne(n,pr),hintText:w.value,hintVisible:F.value};return n.prop&&(L.prop=`${n.prop}_item`),l.h(o,L,M)}}}}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,...Ie,...yr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),i=l.ref(!1),{emitEvent:u}=Te({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),h=ge(n,"modelValue",null,u),f=e,c=l.computed(()=>({[f]:!0})),w=_=>{u("update:modelValue",_),u("change",_)};let F=ge(n,"hintText"),p=l.ref(!1);const d=_=>{let E=_.target.value;i.value=!0,me(F.value)||(p.value=!0),u("focus",E,_)},g=_=>{setTimeout(()=>{p.value&&(p.value=!1),i.value=!1},0);let E=_.target.value;n.maxLength&&E.length>Number(n.maxLength)&&(E=E.slice(0,Number(n.maxLength))),$.value||u("blur",E,_)},B=()=>{u("clear","")},$=l.ref(!1),x=_=>{$.value=_,u("visible-change",_),_||u("selected")},M=l.ref();return $e({focus:()=>{M?.value.focus()},blur:()=>{M?.value.blur()}}),()=>{const L={...He(r.attrs),ref:M,class:c.value,disabled:a.value||s.value,modelValue:h.value,"onUpdate:modelValue":w,onClear:B,onFocus:d,onBlur:g,onVisibleChange:x},E={};r.slots.option&&(E.default=r.slots.option);const I=[],k=l.h(y.ElTreeSelect,L,E);I.push(k);const N={default:()=>I};r.slots.default&&(N.label=r.slots.default),r.slots.fixedTip&&(N.fixedTip=r.slots.fixedTip);const P={...Ne(n,yr),hintText:F.value,hintVisible:p.value};return n.prop&&(P.prop=`${n.prop}_item`),l.h(o,P,N)}}}}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:y.ElPopover,FoxCheckbox:y.ElCheckbox,FoxCheckboxGroup:y.ElCheckboxGroup,FoxButton:y.ElButton,FoxIcon:y.ElIcon,DragIcon:Sc,Download:Ce.Download,RefreshLeft:Ce.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=[],S=[...a.value];a.value=S.map((C,v)=>(C.visible!==!1&&O.push(C.prop),{...C,sortIndex:v})),a.value.length===O.length?d.value=!0:O.length>0&&(g.value=!0),x.value=O},h=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 C=O.$el??O;typeof C.querySelectorAll=="function"&&(S=C.querySelectorAll(".fox-item[prop]"))}if(!S)return[];const V=[];return S.forEach(C=>{const v=C.querySelector(".label--string");let Y="";v&&(Y=v.textContent??"");const j=C.getAttribute("prop")??"",A=window.getComputedStyle(C,null).getPropertyValue("display");V.push({label:Y,prop:j,sortIndex:0,visible:A!=="none"})}),V},f=()=>{if(!r){const O=h(e.groupRef??e.groupProp);if(O.length===0)return!1;r=O}return!0},c=async(O=!1)=>{const S=await s.load(e.groupProp),V=C=>{if(!C||!r)return;const v=r.map(Y=>({...Y}));Array.isArray(S)&&S.forEach(Y=>{v.some(j=>{if(j.prop===Y.prop){const z=j.label;return Object.assign(j,Y),j.label=z,!0}return!1})}),a.value=v.sort((Y,j)=>Y.sortIndex-j.sortIndex),u(),O&&F(!1)};r?V(!0):Ht(f,e.initDelay,5,50,!1,V)},w=()=>{const O=r??[];a.value=O.map(S=>({...S})),u(),F()},F=(O=!0)=>{O&&s.save(e.groupProp,a.value);const S=a.value.map(V=>({...V}));t("change",S)},p=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),d=l.ref(!1),g=l.ref(!1),B=O=>{const S=[];a.value.forEach(C=>{O&&S.push(C.prop),C.visible=O}),d.value=!1,g.value=!1,a.value.length===S.length?d.value=!0:S.length>0&&(g.value=!0),x.value=S,F()},$=()=>{w()},x=l.ref([]),M=O=>{a.value.forEach(V=>{const C=O.indexOf(V.prop)!==-1;V.visible=C}),d.value=!1,g.value=!1;const S=a.value.length;O.length===S?d.value=!0:O.length>0&&(g.value=!0),F()},_=()=>{c()};l.onMounted(()=>{c(!0)});const L={currentRow:null,index:null},E=O=>O?O.dataset&&O.dataset.role==="row"?O:O.tagName.toLowerCase()!=="body"?(O=O.parentElement,E(O)):null:null,I=O=>{const S=O.currentTarget;S&&S.dataset&&(L.index=S.dataset.index)},k=O=>{L.currentRow&&(L.currentRow.classList.remove("is-dragover"),L.currentRow=null),L.index=null},N=O=>{const S=O.currentTarget;O.relatedTarget;const V=E(S);V&&(O.preventDefault(),L.currentRow&&L.currentRow!==V&&L.currentRow.classList.remove("is-dragover"),V.classList.add("is-dragover"),L.currentRow=V)},b=O=>{O.preventDefault(),L.currentRow&&(L.currentRow.classList.remove("is-dragover"),L.currentRow=null)},P=O=>{const S=O.currentTarget,V=E(S);if(!V)return;O.preventDefault();const C=Number(L.index),v=Number(V.dataset.index);if(C!==v){if(C<v){const Y=a.value[C];a.value.splice(C,1),a.value.splice(v,0,Y)}else{const Y=a.value[C];a.value.splice(C,1),a.value.splice(v+1,0,Y)}u(),F()}},q=O=>{const S=a.value[O];a.value.splice(O,1),a.value.splice(0,0,S),u(),F()},R=O=>{const S=a.value[O];a.value.splice(O,1),a.value.push(S),u(),F()};n({refresh:()=>{r=null,c(!1)}});const D=new Map;let K=null;function G(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:i,isCheckAll:d,isIndeterminate:g,handleCheckAllChange:B,handleReset:$,checkedValue:x,handleCheckChange:M,onShow:_,onDragStart:I,onDragEnd:k,onDragOver:N,onDragLeave:b,onDrop:P,checkboxLabelStyle:p,toTop:q,toBottom:R,onMouseOverForOverflowText:(O,S,V)=>{const C=O.currentTarget;if(C){const v=Math.floor(C.offsetWidth);if(Math.floor(G(C))>v){let j=D.get(S);if(j){if(j===K)return;De.hide(j)}j=De.show(C,V,{type:"text",placement:"top",closeOnClick:!1}),D.set(S,j),K=j}}},onMouseLeaveForOverflowText:(O,S)=>{const V=D.get(S);V&&(De.hide(V),V===K&&(K=null))},onMouseOverForTip:(O,S)=>{const V=O.currentTarget;V&&(K&&De.hide(K),K=De.show(V,S,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:O=>{K&&(De.hide(K),K=null)}}}}),Cc={class:"fox-group-setting"},Ec={class:"fox-group-setting__header"},Nc={class:"fox-group-setting__body"},kc={class:"fox-group-setting__body-list","data-role":"container"},Ic=["data-index","draggable"],Oc=["onMouseover","onMouseleave"],Vc={class:"tools-item"};function Fc(e,t,o,n,r,a){const s=l.resolveComponent("FoxCheckbox"),i=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),h=l.resolveComponent("Download"),f=l.resolveComponent("FoxIcon"),c=l.resolveComponent("FoxCheckboxGroup"),w=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(w,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",Ec,[l.createVNode(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=F=>e.isCheckAll=F),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",Nc,[l.createVNode(c,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=F=>e.checkedValue=F),onChange:e.handleCheckChange},{default:l.withCtx(()=>[l.createElementVNode("div",kc,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.itemPropertyList,F=>(l.openBlock(),l.createElementBlock("div",{key:F.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":F.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(s,{class:"checkbox-item",label:F.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:p=>e.onMouseOverForOverflowText(p,F.prop,F.label),onMouseleave:p=>e.onMouseLeaveForOverflowText(p,F.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(F.label),45,Oc)]),_:2},1032,["label"]),l.createElementVNode("div",Vc,[l.createVNode(f,{onClick:p=>e.toTop(F.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(h)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:p=>e.toBottom(F.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(h)]),_:2},1032,["onClick"])])],40,Ic))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const fl=_e($c,[["render",Fc]]),Dc=["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,h)=>(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,Dc))}}),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,h)=>(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,h)=>(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,h)=>(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,h)=>(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],Vt=(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}),h=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 w=l.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),F=l.computed(()=>{const O={};return d.value||(O.display="none"),O}),p=l.ref(),d=l.ref(!1),g=()=>{const O=!d.value;B(O)},B=O=>{const S=O;S?(d.value=S,setTimeout(()=>{w.value["fox-tabs-bar__popup--show"]=!0,w.value["fox-tabs-bar__popup--hide"]=!1},0)):(w.value["fox-tabs-bar__popup--show"]=!1,w.value["fox-tabs-bar__popup--hide"]=!0,p.value?p.value.addEventListener("transitionend",()=>{d.value=!1},{once:!0}):setTimeout(()=>{d.value=!1},0))},$=l.ref(),x=l.ref([]),M=(O,S)=>{x.value[S]=O},_=O=>S=>{M(S,O)},L=(O,S)=>{const V=$.value,C=x.value;if(!V||!C||!C[O])return;const v=C[O];let Y=0;r.direction==="vertical"?Y=v.offsetTop-(V.offsetHeight-v.offsetHeight)/2:Y=v.offsetLeft-(V.offsetWidth-v.offsetWidth)/2,E(V,Y,S?0:.3,r.direction)},E=(O,S,V,C)=>{let v=0;const Y=C==="horizontal"?O.scrollLeft:O.scrollTop,j=V===0?1:Math.round(V*1e3/16);function z(){C==="horizontal"?O.scrollLeft+=(S-Y)/j:O.scrollTop+=(S-Y)/j,++v<j&&Sn(z)}z()},I=(O,S)=>{const V=Vt(r,O),C={};return C[`${e}__titles-item`]=!0,C.disabled=vr(r,O),C.active=V===c.value,r.shape&&(C[`${r.shape}`]=!0),r.ellipsis&&(C.ellipsis=!0),S&&(S.class&&(C[`${S.class}`]=!0),S.disabled===!0&&(C.disabled=S.disabled)),C},k=(O,S)=>{const V={};if(f.value>0){const C=Math.abs(f.value/2);r.direction==="vertical"?(V["margin-top"]=`${C}px`,V["margin-bottom"]=`${C}px`):(V["margin-left"]=`${C}px`,V["margin-right"]=`${C}px`)}return S&&S.style&&Object.assign(V,S.style),V},N=(O,S)=>`${Vt(r,O)??S}`,b=(O,S)=>{const V=Vt(r,O),C={};C[`${e}__popup-item`]=!0,C.disabled=vr(r,O),C.active=V===c.value,r.shape&&(C[`${r.shape}`]=!0);const v=wr(r,O,S);return v&&v.disabled===!0&&(C.disabled=v.disabled),C},P=l.computed(()=>(r.data??[]).filter(S=>Qc(r,S)!==!1)),q=(O,S)=>{const V=Vt(r,O);if(c.value==V)return;const C=()=>{c.value=V,r.scroll&&L(S,!1),s("update:modelValue",V),s("change",O,S)};if(typeof r.beforeChange=="function"){const v=r.beforeChange(O,S);Xl(v)?v.then(Y=>{Y!==!1&&C()}).catch(()=>{C()}):v!==!1&&C()}else C()},R=(O,S)=>function(){q(O,S)},D=(O,S)=>{q(O,S),B(!1)},K=(O,S)=>function(){D(O,S)},G=O=>{if(!Array.isArray(r.data)||!r.scroll)return;const S=r.data.findIndex(V=>Vt(r,V)===c.value);S!==-1&&L(S,O)};l.watch(()=>r.data,()=>{setTimeout(G,0)}),l.onMounted(()=>{G(!0)});const U=(O,S)=>{if(a.item)return a.item({item:O,index:S});const V=wr(r,O,S),C=[];if(a.text){const z=a.text({item:O,index:S});C.push(z)}else{const z=[];if(V?.doit===!0||ef(r,O)){const J={class:[`${e}__titles-item-tip`,"doit"]},te=l.h("view",J);z.push(te)}const A=V?.num??tf(r,O);if(A){let J="";const te=ve(A);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);C.push(H)}const v={class:`${e}__titles-item-line`},Y=l.h("view",v);C.push(Y);const j={ref:_(S),class:I(O,V),style:k(O,V),key:N(O,S),onClick:R(O,S)};return l.h("view",j,C)},Z=()=>{const O=a.default?a.default():[];if(O.length===0)for(let V=0;V<P.value.length;V++){const C=P.value[V],v=U(C,V);O.push(v)}const S={ref:$,class:u.value,style:h.value};return l.h("view",S,O)},ee=()=>{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])},le=()=>{const O=[];for(let V=0;V<P.value.length;V++){const C=P.value[V];let v=null;a.popupItem?v=a.popupItem({item:C,index:V}):v=br(r,C);const Y={class:b(C,V),key:N(C,V),onClick:K(C,V)},j=l.h("view",Y,[v]);O.push(j)}const S={class:w.value,style:F.value};return l.h("view",S,O)};return()=>{const O=[],S=Z();if(O.push(S),r.showQuickNavigation){const C=ee();O.push(C);const v=le();O.push(v)}const V={class:i.value};return l.h("view",V,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:d=>{const g={name:d};i.current.value===d&&(g.loaded=!0),s.value.push(g),l.triggerRef(s)},remove:d=>{const g=s.value.findIndex(B=>B.name===d);g!==-1&&s.value.splice(g,1)},isLoaded:d=>{if(!n.lazy)return!0;const g=s.value.findIndex(B=>B.name===d);return g!==-1?i.current.value?s.value[g].loaded??!1:g===0:!1}};l.provide(Sr,i);const u=d=>{const g=s.value.findIndex(B=>B.name===d);g!==-1&&(s.value[g].loaded=!0,l.triggerRef(s))};l.watch([()=>n.modelValue,()=>n.direction],([d,g])=>{i.current.value!==d&&(i.current.value=d??"",u(d??"")),i.direction.value!==g&&(i.direction.value=g)});const h=l.ref(null),f=l.ref(null),c=l.computed(()=>({[e]:!0,[`${n.direction}`]:!0}));let w=!0;const F=l.computed(()=>{const d={},g=s.value.length;if(g<=0)return d;const B=s.value.findIndex($=>$.name===i.current.value);return i.direction.value==="vertical"?i.tabHeight.value>0&&(d.height=`${g*i.tabHeight.value}px`,B!==-1&&(d.transform=`translate(0, -${B*i.tabHeight.value}px)`)):i.tabWidth.value>0&&(d.width=`${g*i.tabWidth.value}px`,B!==-1&&(d.transform=`translate(-${B*i.tabWidth.value}px, 0)`)),w&&(w=!1,d.transition="transform 0s ease"),d});let p=null;return l.onMounted(()=>{if(!h.value)return;const d=()=>{const g=Xt(h.value);i.tabWidth.value=g.width,i.tabHeight.value=g.height};window.ResizeObserver&&(p=new window.ResizeObserver(d),p.observe(h.value)),d()}),l.onBeforeUnmount(()=>{p&&(p.disconnect(),p=null)}),()=>{const d={class:`${e}__panes`,style:F.value,ref:f},g=l.h("view",d,[a?.default?.()]),B={class:c.value,ref:h};return l.h("view",B,[g])}}}}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 h={};return s.direction.value==="vertical"&&s.tabHeight.value>0?h.height=`${s.tabHeight.value}px`:s.tabWidth.value>0&&(h.width=`${s.tabWidth.value}px`),h}),u=l.computed(()=>n.loaded!=null?ue(n.loaded):s.isLoaded(n.paneKey));return()=>{let h=[];if(u.value)h=a?.default?.()??[];else if(a.empty)h=a.empty();else{const c={class:`${e}__empty-icon`},w=n.emptyIcon??o,F=l.h(w,c),p={class:`${e}__empty-text`},d=n.emptyText??"Loading",g=l.h("view",p,[d]),B={class:`${e}__empty`},$=l.h("view",B,[F,g]);h.push($)}const f={class:`${e}`,style:i.value};return l.h("view",f,h)}}}}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(),h=l.ref([]),f=l.computed(()=>h.value.filter(S=>vf(r,S)!==!1)),c=l.ref(-1),w=()=>{const S=r.modelValue,V=f.value.findIndex(C=>xr(r,C)===S);c.value!==V&&(c.value=V,r.scroll&&le(V))};l.watch([()=>r.modelValue,f],()=>{w()});const F=S=>c.value===S,p=S=>{if(S<0&&S>=f.value.length)return!1;const V=f.value[S],v=(yl(r,V,S)??{}).status??pl(r,V);return F(S)||v},d=l.computed(()=>{const S={[i]:!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(()=>({})),B=(S,V,C,v,Y)=>{const j={[`${i}__step`]:!0};return Y&&(j[`${Y}`]=!0),j[`${$.value}`]=!0,v&&(j["is-doit"]=!0),S===c.value?j["is-active"]=!0:V==="done"?j["is-done"]=!0:V==="error"?j["is-error"]=!0:V==="half"?j["is-half"]=!0:C?j["is-disabled"]=!0:j["is-normal"]=!0,j},$=l.computed(()=>{if(r.mode==="simple")return"start";let S=r.align;return S||(r.direction==="vertical"?S="start":S="center"),S}),x=(S,V={})=>{const C={...V};return $.value==="start"&&S===f.value.length-1?C.flex="0 0 auto":r.step?r.direction==="vertical"?C.height=r.step:C.width=r.step:C.flex="1 1 100%",C},M=(S,V)=>{let C={};if(V<f.value.length-1){const v=V+1;p(V)&&p(v)?r.direction==="vertical"?C.height="100%":C.width="100%":C.opacity="0"}return C},_=S=>f.value.length-1===S,L=(S,V)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&V>c.value||c.value===V)return;const C=c.value,v=V;c.value=V,r.scroll&&le(V);const Y=xr(r,S);s("update:modelValue",Y);const j={fromIndex:C,currentIndex:v,item:S,items:f.value,clickNavigatePolicy:r.clickNavigatePolicy};s("change",Y,j)},E=l.ref(!0),I=async(S,V)=>{try{const C=await u.load("stesbar",S,V);Array.isArray(C)&&(h.value=C),E.value=!1}catch(C){console.error("[FoxUI] Load StepsBar Data Fail",C),h.value=[]}setTimeout(()=>{s("loaded-data")},250)};l.watch([()=>r.data,()=>r.params],async([S,V])=>{S&&I(S,V)},{immediate:!0});const k=(S,V,C,v,Y)=>{let j=null;if(a.icon)j=a.icon({item:S,index:V,status:v});else if(v==="done"){const A={};r.iconSize&&(A.width=r.iconSize,A.height=r.iconSize);const X=r.icon??o;j=l.h(X,A)}else{const A=C??`${V+1}`;j=l.h("span",{},[A])}const z={class:"fox-steps-bar__icon",onClick:()=>{Y||L(S,V)}};return l.h("view",z,[j])},N=(S,V,C)=>{const v=l.h("i",{class:"fox-steps-bar__line-inner",style:M(S,V)});return l.h("view",{class:"fox-steps-bar__line"},[v])},b=()=>{let S=null;if(a.markIcon)S=a.markIcon();else{const C={};r.iconSize&&(C.width=r.markIconSize,C.height=r.markIconSize);const v=r.markIcon??n;S=l.h(v,C)}return l.h("view",{class:"fox-steps-bar__mark"},[S])},P=(S,V,C,v,Y)=>{const j=[];if(!_(V)){const X=N(S,V);j.push(X)}const z=k(S,V,C,v,Y);j.push(z);const A={class:"fox-steps-bar__head"};return l.h("view",A,j)},q=(S,V,C,v)=>{let Y=null;a.main?Y=a.main({item:S,index:V,status:C}):Y=bf(r,S);const j={class:"fox-steps-bar__main",onClick:()=>{v||L(S,V)}};return l.h("view",j,[Y])},R=(S,V,C)=>{let v=null;if(a.sub){v=a.sub({item:S,index:V,status:C});const Y={class:"fox-steps-bar__sub"};return l.h("view",Y,[v])}return null},D=(S,V)=>{const C=yl(r,S,V)??{},v=C.status??pl(r,S);let Y=Tr(r,S);C.disabled===!0&&(Y=!0),r.disabled===!0&&(Y=!0);const j=C.label??Cr(r,S),z=[],A=k(S,V,j,v,Y);A&&z.push(A);const X=q(S,V,v,Y);if(X&&z.push(X),!_(V)){const ne=N(S,V);ne&&z.push(ne)}const H=l.h("view",{class:"fox-steps-bar__head"},z),J=C.class,te=C.style??{};let T=$r(r,S);C.doit===!0&&(T=!0);const W={ref:ee(V),class:B(V,v,Y,T,J),style:x(V,te)};return l.h("view",W,[H])},K=(S,V)=>{const C=yl(r,S,V)??{},v=C.status??pl(r,S);let Y=Tr(r,S);C.disabled===!0&&(Y=!0),r.disabled===!0&&(Y=!0);const j=C.label??Cr(r,S),z=[],A=r.layout;for(let T of A)if(T==="head"){const W=P(S,V,j,v,Y);z.push(W)}else if(T==="main"){const W=q(S,V,v,Y);z.push(W)}else if(T==="sub"){const W=R(S,V,v);z.push(W)}else if(T==="mark"){const W=b();z.push(W)}const X=C.class,H=C.style??{};let J=$r(r,S);C.doit===!0&&(J=!0);const te={ref:ee(V),class:B(V,v,Y,J,X),style:x(V,H)};return l.h("view",te,z)},G=l.ref(),U=l.ref([]),Z=(S,V)=>{U.value[V]=S},ee=S=>V=>{Z(V,S)},le=(S,V)=>{const C=G.value,v=U.value;if(!C||!v||!v[S])return;const Y=v[S];let j=0;r.direction==="vertical"?j=Y.offsetTop-(C.offsetHeight-Y.offsetHeight)/2:j=Y.offsetLeft-(C.offsetWidth-Y.offsetWidth)/2,O(C,j,.3,r.direction)},O=(S,V,C,v)=>{let Y=0;const j=v==="horizontal"?S.scrollLeft:S.scrollTop,z=Math.round(C*1e3/16);function A(){v==="horizontal"?S.scrollLeft+=(V-j)/z:S.scrollTop+=(V-j)/z,++Y<z&&Sn(A)}A()};return()=>{const S=[];if(r.mode==="simple")for(let C=0;C<f.value.length;C++){const v=f.value[C],Y=D(v,C);S.push(Y)}else for(let C=0;C<f.value.length;C++){const v=f.value[C],Y=K(v,C);S.push(Y)}const V={ref:G,class:d.value,style:g.value};return l.h("view",V,S)}}}}const{componentName:Tf,create:$f,scope:Cf}=ie("steps-bar"),bl=$f(xf(Tf,Cf,Yc,Zc)),Ef=Symbol.for("InnerPageScopeKey"),Nf=Symbol.for("PageWrapperKey");function kf(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(Ef,!0);const r={};l.provide(Nf,r);const a=u=>{typeof r.beforeClose=="function"&&r.beforeClose()},s=l.ref(!0),i=u=>{s.value=u};return()=>{const h={...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(y.ElDialog,h,f)}}}}const{componentName:Mh,create:If,scope:Bh}=ie("dialog-item"),vl=If(kf());let Ft=0;const Er="fox-overflow-hidden",Nr=()=>lt?document.body:{classList:[]},Of=e=>[()=>{if(e())try{!Ft&&Nr().classList.add(Er),Ft++}catch{}},()=>{if(e()&&Ft)try{Ft--,!Ft&&Nr().classList.remove(Er)}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:Ff,create:Df}=ie("overlay"),Rf=Df({props:{...Vf},emits:["click","update:visible"],setup(e,{emit:t}){const[o,n]=Of(()=>e.lockScroll),r=l.computed(()=>({[Ff]:!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 an=_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:{}}},kr=2e3;let Ir=kr;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!==kr&&(Ir=Number(o.zIndex)),n("update:visible",!0),r.zIndex=++Ir,o.destroyOnClose&&(r.showSlot=!0),n("open")},h=()=>{n("update:visible",!1),n("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},f=d=>{n("click-pop",d)},c=d=>{d.stopPropagation(),n("click-close-icon",d),n("update:visible",!1)},w=d=>{n("click-overlay",d),o.closeOnClickOverlay&&n("update:visible",!1)},F=d=>{n("opend",d)},p=d=>{n("closed",d)};return l.watch(()=>o.visible,d=>{o.visible?u():h()}),l.watch(()=>o.closeable,d=>{r.closed=d}),{...l.toRefs(r),popStyle:s,transitionName:i,classes:a,onClick:f,onClickCloseIcon:c,onClickOverlay:w,onOpened:F,onClosed:p}}}),{componentName:Bf,create:_f}=ie("popup"),qf=_f(Mf(Bf,{FoxOverLay:an,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,F=>{F&&s()});const u=l.computed(()=>e.type!=="text"?!0:!!e.icon),h=()=>{const F=he(e.iconSize);return l.h(e.icon,{width:F,height:F,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:h,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}),h=l.computed(()=>({background:n.background})),f=l.computed(()=>({background:n.inputBackground})),c=k=>{let b=k.target.value;n.maxLength&&b.length>Number(n.maxLength)&&(b=b.slice(0,Number(n.maxLength))),a("update:modelValue",b,k),a("change",b,k)},w=l.ref({}),F=k=>{let b=k.target.value;u.active=!0,w.value=n.focusStyle,a("focus",b,k)},p=k=>{setTimeout(()=>{u.active=!1},0);let b=k.target.value;n.maxLength&&b.length>Number(n.maxLength)&&(b=b.slice(0,Number(n.maxLength))),w.value={},a("blur",b,k)},d=k=>{a("update:modelValue","",k),a("change","",k),a("clear","")},g=l.computed(()=>String(n.modelValue).length>0),B=l.computed(()=>{const k={};return g.value||(k.display="none"),k}),$=()=>{a("search",n.modelValue)},x=k=>{a("keyup-input",k),k.key.toLocaleUpperCase()==="ENTER"&&$()},M=k=>{a("click-input",k)},_=k=>{a("click-left-icon",n.modelValue,k)},L=l.computed(()=>({textAlign:n.inputAlign})),E=l.ref(null);l.onMounted(()=>{n.autofocus&&E.value.focus()});const I=()=>{const k=[];if(r.leftin){const R={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:_},D=l.h("view",R,[r.leftin()]);k.push(D)}const N={ref:E,class:[`${e}__input-inner`],style:L.value,type:n.inputType,maxlengt:n.maxLength,placeholder:i.placeholder.value,value:n.modelValue,disabled:n.disabled,readonly:n.readonly,onClick:M,onInput:c,onFocus:F,onBlur:p,onkeyup:x},b=l.h("input",N);k.push(b);const P=[];if(n.clearable){const R={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:B.value,onClick:d},D=r?.clear?.()??n.clearIcon??o,K=l.h("view",R,[l.h(D)]);P.push(K)}if(r.rightin){const R={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},D=l.h("view",R,[r.rightin()]);P.push(D)}if(P.length>0){const R={class:`${e}__input-inner-right`},D=l.h("view",R,P);k.push(D)}const q={class:[`${e}__search-input`,`${n.shape}`],style:{...f.value,...w.value}};return l.h("view",q,k)};return()=>{const k=[];if(n.label){const P={class:`${e}__search-label`},q=l.h("span",P,[n.label]);k.push(q)}if(r.leftout){const P={class:[`${e}__search-icon`,`${e}__left-search-icon`]},q=l.h("view",P,[r.leftout()]);k.push(q)}const N=I();if(k.push(N),r.rightout){const P={class:[`${e}__search-icon`,`${e}__right-search-icon`]},q=l.h("view",P,[r.rightout()]);k.push(q)}const b={class:`${e}`,style:h.value};return l.h("view",b,k)}}}),{componentName:Uf,create:Xf,scope:Zf}=ie("searchbar"),xl=Xf(Gf(Uf,Zf,Ce.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 Fr=()=>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(),h=Vr(u),f=l.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=l.computed(()=>({[e]:!0})),w=$=>$?$.offsetTop+w($.offsetParent):0,F=()=>{let $=0,x=0,M="down";if(h.value==window){const _=Fr();u.value&&($=w(u.value)+u.value.offsetHeight-_-window.innerHeight),x=_}else{const{scrollHeight:_,clientHeight:L,scrollTop:E}=h.value;$=_-L-E,x=E}return f.beforeScrollTop>x?M="up":M="down",f.beforeScrollTop=x,r("scroll-change",x),$<=n.threshold&&M=="down"},p=()=>{ql(()=>{if(!F()||!n.hasMore||f.isInfiniting)return!1;f.isInfiniting=!0,r("update:modelValue",!0),l.nextTick(()=>r("load-more"))})},d=()=>{h.value&&h.value.addEventListener("scroll",p,n.useCapture)},g=()=>{h.value&&h.value.removeEventListener("scroll",p,n.useCapture)};l.onMounted(()=>{d(),n.immediate&&p()}),l.onUnmounted(()=>{g()});const B=l.ref(!1);return l.onActivated(()=>{B.value&&(B.value=!1,d())}),l.onDeactivated(()=>{B.value=!0,g()}),l.watch(()=>n.modelValue,$=>{$||(f.isInfiniting=!1)}),()=>{const $={class:"fox-infinite__container"},x=l.h("view",$,[a?.default?.()]),M=[];if(f.isInfiniting){let I=a?.loading?.()??null;if(!I){let b=a?.loadingIcon?.()??null;if(!b){const R={class:["fox-infinite__bottom-box__img"]};b=l.h(o,R)}const P={class:"fox-infinite__bottom-box__text"},q=l.h("view",P,[i.loadText.value]);I=[b,q]}const k={class:"fox-infinite__bottom-box"},N=l.h("view",k,I);M.push(N)}else if(!n.hasMore){let I=a?.finished?.()??null;if(!I){const k={class:"fox-infinite__bottom-tips"};I=l.h("view",k,[i.loadMoreText.value]),M.push(I)}}const _={class:"fox-infinite__bottom"},L=l.h("view",_,M),E={class:c.value,ref:u};return l.h("view",E,[x,L])}}}}const{componentName:ld,create:od,scope:rd}=ie("infinite-loading"),Tl=od(nd(ld,rd,dl)),Dr=10;function Rr(e,t){return e>t&&e>Dr?"horizontal":t>e&&t>Dr?"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 h=s.touches[0];e.deltaX=h.clientX-e.startX,e.deltaY=h.clientY-e.startY,e.moveX=h.clientX,e.moveY=h.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 h=s.touches[0];e.startX=h.clientX,e.startY=h.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),h=l.ref(0),f=l.ref(""),c=()=>f.value==="vertical",w=()=>f.value==="horizontal",F=()=>{s.value=0,i.value=0,u.value=0,h.value=0,f.value="",o.value=0};return{move:g=>{if(g.touches){const x=g.touches[0];s.value=x.clientX-e.value,i.value=x.clientY-t.value,r.value=x.clientX,a.value=x.clientY}else{const $=g;s.value=$.clientX-e.value,i.value=$.clientY-t.value,r.value=$.clientX,a.value=$.clientY}u.value=Math.abs(s.value),h.value=Math.abs(i.value),n.value=Date.now()-o.value,f.value||(f.value=Rr(u.value,h.value))},start:g=>{if(F(),g.touches){const x=g.touches[0];e.value=x.clientX,t.value=x.clientY}else{const $=g;e.value=$.clientX,t.value=$.clientY}o.value=Date.now()},reset:F,startX:e,startY:t,startTime:o,duration:n,moveX:r,moveY:a,deltaX:s,deltaY:i,offsetX:u,offsetY:h,direction:f,isVertical:c,isHorizontal:w}}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(),h=l.ref(),f=Vr(h),c=l.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),w=l.computed(()=>({[e]:!0})),F=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""}}),p=l.computed(()=>({transitionDuration:`${n.duration}s`,transform:c.distance?`translate3d(0,${c.distance}px, 0)`:""})),d=l.computed(()=>{const E={};return n.headHeight!=50&&(E.height=ke(n.headHeight)),E}),g=E=>{const I=+(n.pullDistance||n.headHeight);let k=E;return E>I&&(E<I*2?k=(E+I)/2:k=I+E/4),Math.round(k)},B=(E,I)=>{const k=+(n.pullDistance||n.headHeight);c.distance=E,I?c.status="loading":E===0?c.status="normal":E<k?c.status="pulling":c.status="loosing",r("change",{status:c.status,distance:E})},$=()=>c.status!=="loading"&&c.status!=="complete",x=()=>f.value==window?Fr()==0:f.value&&f.value.scrollTop==0,M=E=>{$()&&(x()?(u.start(E),c.isPullRefresh=!0,c.moving=!0):(c.distance=0,c.isPullRefresh=!1))},_=E=>{$()&&c.moving&&(u.move(E),u.isVertical()&&u.state.deltaY>0&&c.isPullRefresh&&(E.cancelable&&E.preventDefault(),B(g(u.state.deltaY))))},L=()=>{c.moving=!1,c.isPullRefresh&&$()&&u.state.deltaY&&(c.status==="loosing"?(B(+n.headHeight,!0),r("update:modelValue",!0),l.nextTick(()=>r("refresh"))):B(0)),setTimeout(()=>{u.reset()},0)};return l.watch(()=>n.modelValue,E=>{E?B(+n.headHeight,!0):B(0)}),()=>{const E=[];let I=null;if(c.status==="loading"){if(I=a?.loading?.()??null,!I){const K={class:["fox-pull-refresh-container-topbox-icon"]};I=l.h(o,K)}}else c.status==="pulling"?I=a?.pulling?.()??null:c.status==="loosing"&&(I=a?.loosing?.()??null);I&&E.push(I);const k={class:["fox-pull-refresh-container-topbox-text"]},N=l.h("dive",k,[F.value]);E.push(N);const b={class:["fox-pull-refresh-container-topbox"],style:d.value},P=l.h("div",b,E),q={class:"fox-pull-refresh-container",style:p.value},R=l.h("div",q,[P,a?.default?.()]),D={ref:h,class:w.value};return $l()?Object.assign(D,{onTouchstart:M,onTouchmove:_,onTouchend:L}):Object.assign(D,{onMousedown:M,onMousemove:_,onMouseup:L}),l.h("div",D,[R])}}}),{componentName:ud,create:cd,scope:fd}=ie("pull-refresh"),El=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}),h=l.computed(()=>o.color?{color:o.color}:null);return()=>{let f=null;if(n.mark)f=n.mark()[0];else{const d={class:s.value,style:i.value};f=l.h(o.icon??"div",d)}const c={class:u.value,style:h.value},w=n.default?n.default():[],F=l.h("div",c,w),p={class:a.value};return o.textPosition==="right"?l.h("div",p,[f,F]):l.h("div",p,[F,f])}}}}const{componentName:hd,create:gd,scope:_h}=ie("indicator"),Nl=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 x={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(x[`${e}--${r.type??"default"}`]=!0),r.size&&(x[`${e}--${r.size}`]=!0),x}),u=l.computed(()=>{const x={},M=r.textColor??r.color;return M&&(x.color=M),x}),h=(x,M)=>{let _=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const L=r.highlightFilter;if(x.indexOf(L)!==-1){const I=x.replace(new RegExp(L,"g"),`<span>${L}</span>`);M.innerHTML=I,M.class["is-highlight"]=!0,_=l.h(r.tag,M)}}else if(typeof r.highlightFilter=="function"){const L=r.highlightFilter(x);L&&(M.innerHTML=L,M.class["is-highlight"]=!0,_=l.h(r.tag,M))}return _},f=x=>{a.emit("click",x)};let c="";const w=()=>{const x=s.value;if(!x)return;const M=x.clientWidth;md(x,_=>{const L=x.innerHTML??"";me(L)||_<M||(c?o?.show(x,L,{type:"text",id:c,showArrow:r.showArrow},!0):c=o?.show(x,L,{type:"text",showArrow:r.showArrow},!0)??"")})},F=()=>{c&&o?.hide(c)};let p=null;const d=x=>{p||(p=setTimeout(()=>{w(),p=null},r.showAfter??0))},g=x=>{p&&(clearTimeout(p),p=null),setTimeout(()=>{F()},r.hideAfter??0)},B=()=>{const x=s.value;x&&(x.addEventListener("mouseover",d),x.addEventListener("mouseleave",g))},$=()=>{const x=s.value;x&&(x.removeEventListener("mouseover",d),x.removeEventListener("mouseleave",g))};return l.onMounted(()=>{!ue(r.showOverflowTooltip)||!o||B()}),l.onBeforeUnmount(()=>{!ue(r.showOverflowTooltip)||!o||$()}),()=>{const x={onClick:f,class:i.value,style:u.value,ref:s};let M=null;if(ue(r.numberFormat)&&typeof a.slots.default=="function"){const I=a.slots.default();if(Array.isArray(I)&&I.length===1){const k=I[0].type.toString();if(k==="Symbol(Text)"||k==="Symbol(v-txt)"){const N=ve(r.digits),b=ve(r.decimalLength),P=ue(r.autoPadding);let q=`${I[0].children}`,R=q.split("").reverse().join("");R=Lt(R,b,P,N,r.separator),q=R.split("").reverse().join(""),r.highlightFilter!==void 0&&(M=h(q,x)),M||(x.innerHTML=q,M=l.h(r.tag,x))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const I=a.slots.default();if(Array.isArray(I)&&I.length===1){const k=I[0].type.toString();if(k==="Symbol(Text)"||k==="Symbol(v-txt)"){const N=`${I[0].children}`;M=h(N,x),M||(x.innerHTML=N,M=l.h(r.tag,x))}}}M||(M=l.h(r.tag,x,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return M;let L=null;if(r.icon){const I={[`${e}__mark-wrap`]:!0};r.type&&(I[`${e}__mark-wrap--${r.type}`]=!0);const k={},N=r.color;N&&(k.color=N);const b={class:I,style:k};L=l.h("view",b,l.h(r.icon))}else if(a.slots.mark){const I={[`${e}__mark-wrap`]:!0};r.type&&(I[`${e}__mark-wrap--${r.type}`]=!0);const k={},N=r.color;N&&(k.color=N);const b={class:I,style:k};L=l.h("view",b,{default:a.slots.mark})}else{const I={[`${e}__mark`]:!0};r.type&&(I[`${e}__mark--${r.type??"default"}`]=!0);const k={},N=r.color;N&&(k["background-color"]=N);const b={class:I,style:k};L=l.h("view",b)}const E={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return l.h("view",E,[L,M])}}}}const{componentName:bd,create:vd,scope:wd}=ie("text"),kl=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:Ce.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})),h=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 d={class:u.value},g=l.h("span",d,[i.value]);c.push(g)}const w={class:h.value},F=o(n.icon,w);return F&&c.push(F),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??Ce.ArrowUp,l.h(y.ElIcon,t,{default:()=>[l.h(e)]}))));function Ed(e){return e===window}const Ar=e=>{const t=l.unref(e);if(Ed(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:Nd,create:kd,scope:Ph}=ie("tour"),Id=kd({components:{Close:Ce.Close,ElPopover:y.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=Nd,n=l.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=l.ref({}),a=l.computed(()=>`${o}`),s=l.computed(()=>{const{offset:p,maskWidth:d,maskHeight:g}=e,{width:B,height:$,left:x,top:M}=r.value,_=e.steps[n.active].offset??p,L=[x+B/2,M+$/2],E=Number(d||B),I=Number(g||$);return{width:`${E+ +_.left+_.right}px`,height:`${I+_.top+_.bottom}px`,top:`${L[1]-I/2-+_.top}px`,left:`${L[0]-E/2-+_.left}px`}}),i=p=>{p=="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=p=>p.popoverWidth??e.width,h=p=>p.location??e.location,f=()=>{const p=document.querySelector(`${e.steps[n.active].target}`),d=Ar(p);r.value={x:d.left,y:d.top,top:d.top,left:d.left,width:d.width,height:d.height}},c=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},w=()=>{e.closeOnClickOverlay&&c()},F=(p,d=0)=>{p&&f(),e.steps,n.active=d,n.showTour=p,n.showPopup=p};return l.onMounted(()=>{F(e.modelValue,e.current)}),l.watch(()=>e.modelValue,p=>{F(p)}),{...l.toRefs(n),classes:a,maskStyle:s,changeStep:i,popoverWidth:u,popoverLocation:h,close:c,handleClickMask:w}}}),Od={key:0,class:"fox-tour__content"},Vd={key:0,class:"fox-tour__content-top"},Fd={class:"fox-tour__content-inner"},Dd={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]=(...h)=>e.handleClickMask&&e.handleClickMask(...h))},null,512),[[l.vShow,e.showTour]]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(h,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(h),width:e.popoverWidth(h)},{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",Fd,l.toDisplayString(h.content),1),l.createElementVNode("div",Dd,[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(h.content),1)])):l.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):l.createCommentVNode("",!0)]))),128))],2)}const Ol=_e(Id,[["render",Bd]]),Re=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 pt=[];const Br=e=>{const t=e;t.key==="Escape"&&pt.forEach(o=>o(t))},qd=e=>{l.onMounted(()=>{pt.length===0&&document.addEventListener("keydown",Br),Mr&&pt.push(e)}),l.onBeforeUnmount(()=>{pt=pt.filter(t=>t!==e),pt.length===0&&Mr&&document.removeEventListener("keydown",Br)})},Vl="fox-focus-trap.focus-after-trapped",Fl="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"),Dl=l.ref(),sn=l.ref(0),Rl=l.ref(0);let un=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=()=>sn.value>Rl.value,cn=()=>{Dl.value="pointer",sn.value=window.performance.now()},Wr=()=>{Dl.value="keyboard",sn.value=window.performance.now()},Xd=()=>(l.onMounted(()=>{un===0&&(document.addEventListener("mousedown",cn),document.addEventListener("touchstart",cn),document.addEventListener("keydown",Wr)),un++}),l.onBeforeUnmount(()=>{un--,un<=0&&(document.removeEventListener("mousedown",cn),document.removeEventListener("touchstart",cn),document.removeEventListener("keydown",Wr))}),{focusReason:Dl,lastUserFocusTimestamp:sn,lastAutomatedFocusTimestamp:Rl}),fn=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(d=>{ue(e.trapped)&&!i.paused&&o("release-requested",d)});const i={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=d=>{if(!e.loop&&!ue(e.trapped)||i.paused)return;const{key:g,altKey:B,ctrlKey:$,metaKey:x,currentTarget:M,shiftKey:_}=d,{loop:L}=e,E=g==="Tab"&&!B&&!$&&!x,I=document.activeElement;if(E&&I){const k=M,[N,b]=Kd(k);if(N&&b){if(!_&&I===b){const q=fn({focusReason:s.value});o("focusout-prevented",q),q.defaultPrevented||(d.preventDefault(),L&&et(N,!0))}else if(_&&[N,k].includes(I)){const q=fn({focusReason:s.value});o("focusout-prevented",q),q.defaultPrevented||(d.preventDefault(),L&&et(b,!0))}}else if(I===k){const q=fn({focusReason:s.value});o("focusout-prevented",q),q.defaultPrevented||d.preventDefault()}}};l.provide(zd,{focusTrapRef:n,onKeydown:u}),l.watch(()=>e.focusTrapEl,d=>{d&&(n.value=d)},{immediate:!0}),l.watch([n],([d],[g])=>{d&&(d.addEventListener("keydown",u),d.addEventListener("focusin",c),d.addEventListener("focusout",w)),g&&(g.removeEventListener("keydown",u),g.removeEventListener("focusin",c),g.removeEventListener("focusout",w))});const h=d=>{o(qr,d)},f=d=>o(Pr,d),c=d=>{const g=l.unref(n);if(!g)return;const B=d.target,$=d.relatedTarget,x=B&&g.contains(B);ue(e.trapped)||$&&g.contains($)||(r=$),x&&o("focusin",d),!i.paused&&ue(e.trapped)&&(x?a=B:et(a,!0))},w=d=>{const g=l.unref(n);if(!(i.paused||!g))if(!e.escape&&ue(e.trapped)){const B=d.relatedTarget;!En(B)&&!g.contains(B)&&setTimeout(()=>{if(!i.paused&&ue(e.trapped)){const $=fn({focusReason:s.value});o("focusout-prevented",$),$.defaultPrevented||et(a,!0)}},0)}else{const B=d.target;B&&g.contains(B)||o("focusout",d)}};async function F(){await l.nextTick();const d=l.unref(n);if(d){Kr.push(i);const g=d.contains(document.activeElement)?r:document.activeElement;if(r=g,!d.contains(g)){const $=new Event(Vl,_r);d.addEventListener(Vl,h),d.dispatchEvent($),$.defaultPrevented||l.nextTick(()=>{let x=e.focusStartEl;Ul(x)||(et(x),document.activeElement!==x&&(x="first")),x==="first"&&Gd(jr(d),!0),(document.activeElement===g||x==="container")&&et(d)})}}}function p(){const d=l.unref(n);if(d){d.removeEventListener(Vl,h);const g=new CustomEvent(Fl,{..._r,detail:{focusReason:s.value}});d.addEventListener(Fl,f),d.dispatchEvent(g),!g.defaultPrevented&&(s.value=="keyboard"||!Ud())&&et(r??document.body,!0),d.removeEventListener(Fl,h),Kr.remove(i)}}return l.onMounted(()=>{ue(e.trapped)&&F(),l.watch(()=>e.trapped,d=>{ue(d)?F():p()})}),l.onBeforeUnmount(()=>{ue(e.trapped)&&p()}),()=>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},height:{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:y.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:!I.value),s=l.ref(e.left),i=l.ref(e.top),u=l.ref(e.right),h=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=Re(s.value),at(i.value)?T.top="auto":T.top=Re(i.value),at(u.value)?T.right="auto":T.right=Re(u.value),at(h.value)?T.bottom="auto":T.bottom=Re(h.value),at(e.zIndex)||(T["z-index"]=Re(e.zIndex)),at(L.value)||(T.height=L.value),at(E.value)||(T.width=E.value),T}),w=l.computed(()=>e.closeIcon??Ce.Close),F=l.computed(()=>e.collapseIcon??Ce.ArrowUp),p=l.computed(()=>e.collapseText??""),d=l.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ce.ArrowRight:e.expandIcon??Ce.ArrowLeft),g=l.computed(()=>e.expandText??e.title??"展开"),B=l.computed(()=>({[`${o}__collapse-text`]:!0})),$=l.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!I.value,"is-collapse":I.value})),x=l.ref(),M=l.ref(null),_=l.ref(null),L=l.computed(()=>Re(e.height)||""),E=l.computed(()=>Re(e.width)||""),I=l.ref(ue(e.collapse)),k=(T,W=!0)=>{I.value!==T&&(I.value=T,T?S():V(),t("update:collapse",T),T&&typeof P.onHide=="function"?P.onHide():!T&&typeof P.onShow=="function"&&P.onShow())};l.watch(()=>e.collapse,T=>{k(T)});const N=()=>{b()},b=T=>{T=T??!I.value,k(T)};l.provide(th,!0);const P={setCollapse:k,setFixedNavVisible:T=>{ee.value=T}};l.provide(nh,P);const q=()=>{typeof P.beforeClose=="function"?P.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(I.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)},S=()=>{R.value&&R.value.classList.add("slide-in"),ee.value=!0,le=()=>{R.value&&R.value.classList.remove("slide-in")}},V=()=>{R.value&&R.value.classList.add("slide-out"),le=()=>{R.value&&R.value.classList.remove("slide-out"),ee.value=!1}},C=()=>{s.value=null,i.value=null,u.value=null,h.value=null},v={x:0,y:0},z=Lr(T=>{if(!x.value)return;const W=x.value;if(C(),e.origin==="left-top")s.value=W.offsetLeft,i.value=W.offsetTop,v.x=s.value,v.y=i.value;else if(e.origin==="left-bottom"){const ne=document.documentElement.clientHeight||document.body.clientHeight;s.value=W.offsetLeft,h.value=ne-(W.offsetTop+W.offsetHeight),v.x=s.value,v.y=h.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),h.value=oe-(W.offsetTop+W.offsetHeight),v.x=u.value,v.y=h.value}else{const ne=document.documentElement.clientWidth||document.body.clientWidth;u.value=ne-(W.offsetLeft+W.offsetWidth),i.value=W.offsetTop,v.x=u.value,v.y=i.value}},T=>{if(!x.value)return;const W=x.value;C(),e.origin==="left-top"?(s.value=v.x+T.x,i.value=v.y+T.y,W.style.left=Re(s.value),W.style.top=Re(i.value)):e.origin==="left-bottom"?(s.value=v.x+T.x,h.value=v.y-T.y,W.style.left=Re(s.value),W.style.bottom=Re(h.value)):e.origin==="right-bottom"?(u.value=v.x-T.x,h.value=v.y-T.y,W.style.right=Re(u.value),W.style.bottom=Re(h.value)):(u.value=v.x-T.x,i.value=v.y+T.y,W.style.right=Re(u.value),W.style.top=Re(i.value))}),A={x:0,y:0},J=Lr(T=>{R.value&&(A.x=R.value.offsetLeft,A.y=R.value.offsetTop)},T=>{if(!R.value)return;const W=A.y+T.y;G.value=`${W}px`}),te=()=>{if(x.value){const T=x.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");_.value=T}};return l.onMounted(()=>{if(e.draggable&&x.value){const T=[];M.value&&T.push(M.value),e.footerDraggable&&(te(),_.value&&T.push(_.value)),z.open(T)}e.collapse===!0&&k(e.collapse,!1),R.value&&J.open(R.value)}),l.onBeforeUnmount(()=>{e.draggable&&M.value&&z.close(),R.value&&J.close()}),{classes:f,styles:c,isShow:a,closeIcon:w,onClose:q,dialogRef:x,headerRef:M,onClickToggle:N,collapseIcon:F,collapseText:p,collapseTextClasses:B,collapseIconClasses:$,expandIcon:d,expandText:g,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=(w,F)=>{if(f===null){a.set(w,{visible:null,callback:F});return}r.has(w)&&f.unobserve(w),r.set(w,{visible:null,callback:F}),f.observe(w)},i=w=>{if(f===null){a.delete(w);return}r.has(w)&&(r.delete(w),f.unobserve(w))};let u=o.initialVisibleObserverSize;ei({acquire:()=>{const w=u>0;return u--,w},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:s,unobserve:i});let f=null;const c=(w,F,p)=>{f=new IntersectionObserver(d=>{for(let g of d){let B=!1;g.intersectionRatio>0&&(B=!0);const $=r.get(g.target);if($)try{if(o.loadPolicy==="lazy"&&!B&&$.visible!==null)return;$.visible=B,$.callback(B)}catch(x){console.error(x)}}},{root:w,rootMargin:F,threshold:p}),a.forEach((d,g)=>{r.set(g,d),f?.observe(g)}),a.clear()};l.watch([()=>o.root,()=>o.disabled],([w,F])=>{if(F||!w||f)return;let p=null;typeof w=="string"?p=document.querySelector(w):p=w,p&&c(p,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=[Dn,An,Ln,Mn,qn,Se,zn,Hn,Nt,Kn,Wn,Yn,Gn,Un,Xn,Zn,Qn,el,tl,nl,rn,rl,al,il,sl,ul,cl,fl,hl,gl,ml,bl,vl,an,wl,Sl,xl,Tl,El,It,ln,Nl,kl,Il,Ol,Al,Ll,Ml],yh=new Va(ph,[Ra],"4.0.0");Object.defineProperty(m,"FoxAffix",{enumerable:!0,get:()=>y.ElAffix}),Object.defineProperty(m,"FoxAlert",{enumerable:!0,get:()=>y.ElAlert}),Object.defineProperty(m,"FoxAnchor",{enumerable:!0,get:()=>y.ElAnchor}),Object.defineProperty(m,"FoxAnchorLink",{enumerable:!0,get:()=>y.ElAnchorLink}),Object.defineProperty(m,"FoxAside",{enumerable:!0,get:()=>y.ElAside}),Object.defineProperty(m,"FoxAutoResizer",{enumerable:!0,get:()=>y.ElAutoResizer}),Object.defineProperty(m,"FoxAutocomplete",{enumerable:!0,get:()=>y.ElAutocomplete}),Object.defineProperty(m,"FoxAvatar",{enumerable:!0,get:()=>y.ElAvatar}),Object.defineProperty(m,"FoxBacktop",{enumerable:!0,get:()=>y.ElBacktop}),Object.defineProperty(m,"FoxBadge",{enumerable:!0,get:()=>y.ElBadge}),Object.defineProperty(m,"FoxBreadcrumb",{enumerable:!0,get:()=>y.ElBreadcrumb}),Object.defineProperty(m,"FoxBreadcrumbItem",{enumerable:!0,get:()=>y.ElBreadcrumbItem}),Object.defineProperty(m,"FoxButton",{enumerable:!0,get:()=>y.ElButton}),Object.defineProperty(m,"FoxButtonGroup",{enumerable:!0,get:()=>y.ElButtonGroup}),Object.defineProperty(m,"FoxCalendar",{enumerable:!0,get:()=>y.ElCalendar}),Object.defineProperty(m,"FoxCard",{enumerable:!0,get:()=>y.ElCard}),Object.defineProperty(m,"FoxCarousel",{enumerable:!0,get:()=>y.ElCarousel}),Object.defineProperty(m,"FoxCarouselItem",{enumerable:!0,get:()=>y.ElCarouselItem}),Object.defineProperty(m,"FoxCascader",{enumerable:!0,get:()=>y.ElCascader}),Object.defineProperty(m,"FoxCascaderPanel",{enumerable:!0,get:()=>y.ElCascaderPanel}),Object.defineProperty(m,"FoxCheckTag",{enumerable:!0,get:()=>y.ElCheckTag}),Object.defineProperty(m,"FoxCheckbox",{enumerable:!0,get:()=>y.ElCheckbox}),Object.defineProperty(m,"FoxCheckboxButton",{enumerable:!0,get:()=>y.ElCheckboxButton}),Object.defineProperty(m,"FoxCheckboxGroup",{enumerable:!0,get:()=>y.ElCheckboxGroup}),Object.defineProperty(m,"FoxCol",{enumerable:!0,get:()=>y.ElCol}),Object.defineProperty(m,"FoxCollapse",{enumerable:!0,get:()=>y.ElCollapse}),Object.defineProperty(m,"FoxCollapseItem",{enumerable:!0,get:()=>y.ElCollapseItem}),Object.defineProperty(m,"FoxCollapseTransition",{enumerable:!0,get:()=>y.ElCollapseTransition}),Object.defineProperty(m,"FoxColorPicker",{enumerable:!0,get:()=>y.ElColorPicker}),Object.defineProperty(m,"FoxConfigProvider",{enumerable:!0,get:()=>y.ElConfigProvider}),Object.defineProperty(m,"FoxContainer",{enumerable:!0,get:()=>y.ElContainer}),Object.defineProperty(m,"FoxCountdown",{enumerable:!0,get:()=>y.ElCountdown}),Object.defineProperty(m,"FoxDatePicker",{enumerable:!0,get:()=>y.ElDatePicker}),Object.defineProperty(m,"FoxDescriptions",{enumerable:!0,get:()=>y.ElDescriptions}),Object.defineProperty(m,"FoxDescriptionsItem",{enumerable:!0,get:()=>y.ElDescriptionsItem}),Object.defineProperty(m,"FoxDialog",{enumerable:!0,get:()=>y.ElDialog}),Object.defineProperty(m,"FoxDivider",{enumerable:!0,get:()=>y.ElDivider}),Object.defineProperty(m,"FoxDrawer",{enumerable:!0,get:()=>y.ElDrawer}),Object.defineProperty(m,"FoxDropdown",{enumerable:!0,get:()=>y.ElDropdown}),Object.defineProperty(m,"FoxDropdownItem",{enumerable:!0,get:()=>y.ElDropdownItem}),Object.defineProperty(m,"FoxDropdownMenu",{enumerable:!0,get:()=>y.ElDropdownMenu}),Object.defineProperty(m,"FoxEmpty",{enumerable:!0,get:()=>y.ElEmpty}),Object.defineProperty(m,"FoxFooter",{enumerable:!0,get:()=>y.ElFooter}),Object.defineProperty(m,"FoxForm",{enumerable:!0,get:()=>y.ElForm}),Object.defineProperty(m,"FoxFormItem",{enumerable:!0,get:()=>y.ElFormItem}),Object.defineProperty(m,"FoxHeader",{enumerable:!0,get:()=>y.ElHeader}),Object.defineProperty(m,"FoxIcon",{enumerable:!0,get:()=>y.ElIcon}),Object.defineProperty(m,"FoxImage",{enumerable:!0,get:()=>y.ElImage}),Object.defineProperty(m,"FoxImageViewer",{enumerable:!0,get:()=>y.ElImageViewer}),Object.defineProperty(m,"FoxInput",{enumerable:!0,get:()=>y.ElInput}),Object.defineProperty(m,"FoxInputNumber",{enumerable:!0,get:()=>y.ElInputNumber}),Object.defineProperty(m,"FoxLink",{enumerable:!0,get:()=>y.ElLink}),Object.defineProperty(m,"FoxMain",{enumerable:!0,get:()=>y.ElMain}),Object.defineProperty(m,"FoxMenu",{enumerable:!0,get:()=>y.ElMenu}),Object.defineProperty(m,"FoxMenuItem",{enumerable:!0,get:()=>y.ElMenuItem}),Object.defineProperty(m,"FoxMenuItemGroup",{enumerable:!0,get:()=>y.ElMenuItemGroup}),Object.defineProperty(m,"FoxMessage",{enumerable:!0,get:()=>y.ElMessage}),Object.defineProperty(m,"FoxMessageBox",{enumerable:!0,get:()=>y.ElMessageBox}),Object.defineProperty(m,"FoxNotification",{enumerable:!0,get:()=>y.ElNotification}),Object.defineProperty(m,"FoxOption",{enumerable:!0,get:()=>y.ElOption}),Object.defineProperty(m,"FoxOptionGroup",{enumerable:!0,get:()=>y.ElOptionGroup}),Object.defineProperty(m,"FoxPageHeader",{enumerable:!0,get:()=>y.ElPageHeader}),Object.defineProperty(m,"FoxPagination",{enumerable:!0,get:()=>y.ElPagination}),Object.defineProperty(m,"FoxPopconfirm",{enumerable:!0,get:()=>y.ElPopconfirm}),Object.defineProperty(m,"FoxPopover",{enumerable:!0,get:()=>y.ElPopover}),Object.defineProperty(m,"FoxPopper",{enumerable:!0,get:()=>y.ElPopper}),Object.defineProperty(m,"FoxProgress",{enumerable:!0,get:()=>y.ElProgress}),Object.defineProperty(m,"FoxRadio",{enumerable:!0,get:()=>y.ElRadio}),Object.defineProperty(m,"FoxRadioButton",{enumerable:!0,get:()=>y.ElRadioButton}),Object.defineProperty(m,"FoxRadioGroup",{enumerable:!0,get:()=>y.ElRadioGroup}),Object.defineProperty(m,"FoxRate",{enumerable:!0,get:()=>y.ElRate}),Object.defineProperty(m,"FoxResult",{enumerable:!0,get:()=>y.ElResult}),Object.defineProperty(m,"FoxRow",{enumerable:!0,get:()=>y.ElRow}),Object.defineProperty(m,"FoxScrollbar",{enumerable:!0,get:()=>y.ElScrollbar}),Object.defineProperty(m,"FoxSegmented",{enumerable:!0,get:()=>y.ElSegmented}),Object.defineProperty(m,"FoxSelect",{enumerable:!0,get:()=>y.ElSelect}),Object.defineProperty(m,"FoxSelectV2",{enumerable:!0,get:()=>y.ElSelectV2}),Object.defineProperty(m,"FoxSkeleton",{enumerable:!0,get:()=>y.ElSkeleton}),Object.defineProperty(m,"FoxSkeletonItem",{enumerable:!0,get:()=>y.ElSkeletonItem}),Object.defineProperty(m,"FoxSlider",{enumerable:!0,get:()=>y.ElSlider}),Object.defineProperty(m,"FoxSpace",{enumerable:!0,get:()=>y.ElSpace}),Object.defineProperty(m,"FoxStatistic",{enumerable:!0,get:()=>y.ElStatistic}),Object.defineProperty(m,"FoxStep",{enumerable:!0,get:()=>y.ElStep}),Object.defineProperty(m,"FoxSteps",{enumerable:!0,get:()=>y.ElSteps}),Object.defineProperty(m,"FoxSubMenu",{enumerable:!0,get:()=>y.ElSubMenu}),Object.defineProperty(m,"FoxSwitch",{enumerable:!0,get:()=>y.ElSwitch}),Object.defineProperty(m,"FoxTabPane",{enumerable:!0,get:()=>y.ElTabPane}),Object.defineProperty(m,"FoxTable",{enumerable:!0,get:()=>y.ElTable}),Object.defineProperty(m,"FoxTableColumn",{enumerable:!0,get:()=>y.ElTableColumn}),Object.defineProperty(m,"FoxTableV2",{enumerable:!0,get:()=>y.ElTableV2}),Object.defineProperty(m,"FoxTabs",{enumerable:!0,get:()=>y.ElTabs}),Object.defineProperty(m,"FoxTag",{enumerable:!0,get:()=>y.ElTag}),Object.defineProperty(m,"FoxTimePicker",{enumerable:!0,get:()=>y.ElTimePicker}),Object.defineProperty(m,"FoxTimeSelect",{enumerable:!0,get:()=>y.ElTimeSelect}),Object.defineProperty(m,"FoxTimeline",{enumerable:!0,get:()=>y.ElTimeline}),Object.defineProperty(m,"FoxTimelineItem",{enumerable:!0,get:()=>y.ElTimelineItem}),Object.defineProperty(m,"FoxTooltip",{enumerable:!0,get:()=>y.ElTooltip}),Object.defineProperty(m,"FoxTransfer",{enumerable:!0,get:()=>y.ElTransfer}),Object.defineProperty(m,"FoxTree",{enumerable:!0,get:()=>y.ElTree}),Object.defineProperty(m,"FoxTreeSelect",{enumerable:!0,get:()=>y.ElTreeSelect}),Object.defineProperty(m,"FoxTreeV2",{enumerable:!0,get:()=>y.ElTreeV2}),Object.defineProperty(m,"FoxUpload",{enumerable:!0,get:()=>y.ElUpload}),Object.defineProperty(m,"FoxWatermark",{enumerable:!0,get:()=>y.ElWatermark}),m.AutocompleteItem=el,m.Broadcast=Nn,m.BroadcastKey=ye,m.CascaderItem=Qn,m.CheckboxItem=il,m.Content=Mn,m.DataItemsKey=ut,m.DateItem=Yn,m.DateUtils=Be,m.DialogItem=vl,m.Domain=Kt,m.DomainKey=Ae,m.DomainProvider=Ll,m.FloatingWindow=Al,m.FooterBar=Ln,m.FoxAutocompleteItem=el,m.FoxCascaderItem=Qn,m.FoxCheckboxItem=il,m.FoxContent=Mn,m.FoxDateItem=Yn,m.FoxDialogItem=vl,m.FoxDomainProvider=Ll,m.FoxFloatingWindow=Al,m.FoxFooterBar=Ln,m.FoxGroup=qn,m.FoxGroupSetting=fl,m.FoxHeaderBar=An,m.FoxHintText=Nt,m.FoxIndicator=Nl,m.FoxInfiniteLoading=Tl,m.FoxInputItem=Kn,m.FoxInputNumberItem=Zn,m.FoxItem=Se,m.FoxMapping=It,m.FoxMoneyItem=Xn,m.FoxMoreButton=Il,m.FoxOverLay=an,m.FoxPage=Dn,m.FoxPopup=wl,m.FoxPrice=ln,m.FoxPullRefresh=El,m.FoxRadioItem=al,m.FoxRateItem=sl,m.FoxRollingProvider=Ml,m.FoxRowItem=Hn,m.FoxSearchBar=xl,m.FoxSelectItem=Wn,m.FoxSlotItem=zn,m.FoxStepsBar=bl,m.FoxSwitchItem=ul,m.FoxTableItem=rl,m.FoxTableMappingColumn=tl,m.FoxTableRadioColumn=nl,m.FoxTableSetting=rn,m.FoxTabsBar=hl,m.FoxTabsContainer=gl,m.FoxTabsPane=ml,m.FoxText=kl,m.FoxTimeItem=Gn,m.FoxTimeSelectItem=Un,m.FoxToast=Sl,m.FoxTour=Ol,m.FoxTreeSelectItem=cl,m.Group=qn,m.GroupSetting=fl,m.HeaderBar=An,m.HintText=Nt,m.Indicator=Nl,m.InfiniteLoading=Tl,m.InputItem=Kn,m.InputNumberItem=Zn,m.Item=Se,m.Mapping=It,m.MoneyItem=Xn,m.MoreButton=Il,m.OverLay=an,m.Page=Dn,m.Popup=wl,m.Price=ln,m.PriorityPolicy=Me,m.PullRefresh=El,m.RadioItem=al,m.RateItem=sl,m.RollingProvider=Ml,m.RowItem=Hn,m.SearchBar=xl,m.SelectItem=Wn,m.SlotItem=zn,m.StepsBar=bl,m.SwitchItem=ul,m.TableItem=rl,m.TableMappingColumn=tl,m.TableRadioColumn=nl,m.TableSetting=rn,m.TabsBar=hl,m.TabsContainer=gl,m.TabsPane=ml,m.Text=kl,m.TimeItem=Gn,m.TimeSelectItem=Un,m.Toast=Sl,m.Tour=Ol,m.TreeSelectItem=cl,m.UniqueID=Fo,m.ValidateSchema=ho,m.ValidateSchemaKey=qe,m.cancelRaf=Ur,m.clearNonNumber=ia,m.clone=$n,m.compareTo=wn,m.createBroadcast=qt,m.createValidateSchema=jt,m.debounce=$t,m.debounceRef=wa,m.decimalLength=ro,m.default=yh,m.defineBroadcast=fa,m.defineConfigDomain=po,m.defineDataItem=bo,m.defineDomain=In,m.defineItem=Te,m.definePageState=wo,m.defineSimpleItem=vo,m.deleteGlobalValidator=pa,m.disabledProperty=Fe,m.divide=vn,m.excludeProps=Ne,m.extend=nt,m.floatData=ca,m.getGlobalValidateCheckEvents=uo,m.getGlobalValidateResetEvents=fo,m.getPageContentAreaHeight=Yt,m.getPageContentAreaWidth=Gt,m.getPageFooterAreaHeight=Et,m.getPageHeaderAreaHeight=Ct,m.getRootDomain=ct,m.hasSymbol=Jl,m.includeProps=io,m.indexOf=sa,m.installRules=yo,m.integerLength=oo,m.isArray=Zr,m.isArrayLike=eo,m.isBrowser=lt,m.isDate=ea,m.isESModule=na,m.isEmptyString=me,m.isEqual=Ye,m.isFunction=xn,m.isHidden=_t,m.isInnerPage=Ta,m.isMap=Jr,m.isNil=En,m.isNumberString=lo,m.isObject=We,m.isPlainObject=Tn,m.isPromise=Xl,m.isRegExp=no,m.isSet=Qr,m.isString=Ul,m.isSubPage=$a,m.isSymbol=ta,m.isTouch=$l,m.isWindow=Ql,m.lastIndexOf=ua,m.makeArray=aa,m.merge=to,m.multiply=Wl,m.negate=Yl,m.nextTick=oa,m.numberFormat=Lt,m.objectToString=Zl,m.once=Sa,m.overrideGlobalValidateHandler=ga,m.property=Oe,m.raf=Sn,m.readonlyProperty=Ve,m.setGlobalValidateCheckEvents=ya,m.setGlobalValidateHandler=ha,m.setGlobalValidateMessages=va,m.setGlobalValidateResetEvents=ba,m.setGlobalValidator=ma,m.throttle=mo,m.toBoolean=ue,m.toNumber=ve,m.toPadding=ze,m.toPx=he,m.toPxDesc=ke,m.toTypeString=Mt,m.toValue=ge,m.tryTimes=Ht,m.typeOf=Bt,m.unNumberFormat=Gl,m.updatePageState=On,m.useBroadcast=St,m.useDomain=Ge,m.useExpose=$e,m.useInnerSize=Rn,m.usePageState=Wt,m.usePosition=Io,m.useRawTouch=Cl,m.useRect=Ar,m.useSize=Xt,m.useTouch=ad,m.valueLength=wt,Object.defineProperties(m,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(g,o){typeof exports=="object"&&typeof module<"u"?o(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"],o):(g=typeof globalThis<"u"?globalThis:g||self,o(g.FoxUI={},g.Vue,g.FoxValidator,g.ElementPlus,g.ElementPlusIconsVue,g.FoxI18n))})(this,(function(g,o,ut,T,Ie,Fe){"use strict";const _t=window,va=typeof window<"u";function wa(){return typeof _t<"u"?_t.requestAnimationFrame||_t.webkitRequestAnimationFrame||function(e){_t.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Sa(e){va?cancelAnimationFrame(e):clearTimeout(e)}const gl=wa();function jt(e,n="0"){let l=0,t=-1;e[0]=="-"&&(l++,t=1,e=e.substring(1),e.length),n[0]=="-"&&(l++,t=2,n=n.substring(1),n.length),e=Oe(e),n=Oe(n),[e,n]=qn(Oe(e),Oe(n)),l==1&&(t==1?e=Bn(e):n=Bn(n));let r=ml(e,n);return l?l==2?"-"+Oe(r):e.length<r.length?Oe(r.substring(1)):"-"+Oe(Bn(r)):Oe(r)}function Bn(e){let n="",l=e.length,t=e.split(".")[1],r=t?t.length:0;for(let i=0;i<l;i++)e[i]>="0"&&e[i]<="9"?n+=9-parseInt(e[i]):n+=e[i];let a=r>0?"0."+new Array(r).join("0")+"1":"1";return ml(n,a)}function Oe(e){let n=e.split(".");for(n[0]||(n[0]="0");n[0][0]=="0"&&n[0].length>1;)n[0]=n[0].substring(1);return n[0]+(n[1]?"."+n[1]:"")}function qn(e,n){let l=e.split("."),t=n.split("."),r=l[0].length,a=t[0].length;return r>a?t[0]=new Array(Math.abs(r-a)+1).join("0")+(t[0]?t[0]:""):l[0]=new Array(Math.abs(r-a)+1).join("0")+(l[0]?l[0]:""),r=l[1]?l[1].length:0,a=t[1]?t[1].length:0,(r||a)&&(r>a?t[1]=(t[1]?t[1]:"")+new Array(Math.abs(r-a)+1).join("0"):l[1]=(l[1]?l[1]:"")+new Array(Math.abs(r-a)+1).join("0")),e=l[0]+(l[1]?"."+l[1]:""),n=t[0]+(t[1]?"."+t[1]:""),[e,n]}function ml(e,n){[e,n]=qn(e,n);let l="",t=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){l="."+l;continue}let a=parseInt(e[r])+parseInt(n[r])+t;l=a%10+l,t=Math.floor(a/10)}return t?t.toString()+l:l}var we=(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))(we||{});function $t(e,n=0,l=we.HALF_EVEN){if(l===we.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let t=!1;e[0]==="-"&&(t=!0,e=e.substring(1));let r=e.split("."),a=r[0],i=r[1];if(n<0){if(n=-n,a.length<=n)return"0";{let s=a.substr(0,a.length-n);return e=s+"."+a.substr(a.length-n)+i,s=$t(e,0,l),(t?"-":"")+s+new Array(n+1).join("0")}}if(n==0)return a.length,yl(r[1],a,t,l)?(t?"-":"")+Pn(a):(t?"-":"")+a;if(r[1]){if(r[1].length<n)return(t?"-":"")+a+"."+r[1]+new Array(n-r[1].length+1).join("0")}else return(t?"-":"")+a+"."+new Array(n+1).join("0");i=r[1].substring(0,n);let u=r[1].substring(n);return u&&yl(u,i,t,l)&&(i=Pn(i),i.length>n)?(t?"-":"")+Pn(a,parseInt(i[0]))+"."+i.substring(1):(t?"-":"")+a+"."+i}function yl(e,n,l,t){if(!e||e===new Array(e.length+1).join("0")||t===we.DOWN||!l&&t===we.FLOOR||l&&t===we.CEILING)return!1;if(t===we.UP||l&&t===we.FLOOR||!l&&t===we.CEILING)return!0;let r="5"+new Array(e.length).join("0");if(e>r)return!0;if(e<r)return!1;switch(t){case we.HALF_DOWN:return!1;case we.HALF_UP:return!0;case we.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function Pn(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let l=e.length-1,t="";for(let r=l;r>=0;r--){let a=parseInt(e[r])+n;a==10?(n=1,a=0):n=0,t+=a}return n&&(t+=n),t.split("").reverse().join("")}function _n(e,n){e=e.toString(),n=n.toString();let l=0;e[0]=="-"&&(l++,e=e.substr(1)),n[0]=="-"&&(l++,n=n.substr(1)),e=Nt(e),n=Nt(n);let t=0,r=0;e.indexOf(".")!=-1&&(t=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(r=n.length-n.indexOf(".")-1);let a=t+r;if(e=Nt(e.replace(".","")),n=Nt(n.replace(".","")),e.length<n.length){let m=e;e=n,n=m}if(n=="0")return"0";let i=n.length,u=0,s=[],c=i-1,f="";for(let m=0;m<i;m++)s[m]=e.length-1;for(let m=0;m<2*e.length;m++){let p=0;for(let w=n.length-1;w>=c&&w>=0;w--)s[w]>-1&&s[w]<e.length&&(p+=parseInt(e[s[w]--])*parseInt(n[w]));p+=u,u=Math.floor(p/10),f=p%10+f,c--}return f=Nt(xa(f,a)),l==1&&(f="-"+f),f}function xa(e,n){return n==0?e:(e=n>=e.length?new Array(n-e.length+1).join("0")+e:e,e.substr(0,e.length-n)+"."+e.substr(e.length-n,n))}function Nt(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function jn(e,n,l=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let t=0;n[0]=="-"&&(n=n.substring(1),t++),e[0]=="-"&&(e=e.substring(1),t++);var r=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Oe(n.replace(".","")),r>=0){let c=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(c==-1)e=Oe(e+new Array(r+1).join("0"));else if(r>c)e=e.replace(".",""),e=Oe(e+new Array(r-c+1).join("0"));else if(r<c){e=e.replace(".","");let f=e.length-c+r;e=Oe(e.substring(0,f)+"."+e.substring(f))}else r==c&&(e=Oe(e.replace(".","")))}let a=0,i=n.length,u="",s=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),s.indexOf(".")>-1){let c=s.length-s.indexOf(".")-1;s=s.replace(".",""),i>s.length&&(c+=i-s.length,s=s+new Array(i-s.length+1).join("0")),a=c,u="0."+new Array(c).join("0")}for(l=l+2;a<=l;){let c=0;for(;parseInt(s)>=parseInt(n);)s=jt(s,"-"+n),c++;u+=c,e?(e[0]=="."&&(u+=".",a++,e=e.substring(1)),s=s+e.substring(0,1),e=e.substring(1)):(a||(u+="."),a++,s=s+"0")}return(t==1?"-":"")+Oe($t(u,l-2))}function zn(e,n){return e=e.toString(),n=n.toString(),n=Hn(n),jt(e,n)}function Hn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function pl(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),bl(e),bl(n);let l="";e[0]=="-"&&(l="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let t=zn(e,_n(n,$t(jn(e,n),0,we.FLOOR)));return l+t}function bl(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function vl(e,n){let l=!1;if(e[0]=="-"&&n[0]!="-")return-1;if(e[0]!="-"&&n[0]=="-")return 1;if(e[0]=="-"&&n[0]=="-"&&(e=e.substr(1),n=n.substr(1),l=!0),[e,n]=qn(e,n),e.localeCompare(n)==0)return 0;for(let t=0;t<e.length;t++)if(e[t]!=n[t])return e[t]>n[t]?l?-1:1:l?1:-1;return 0}class de{value;static RoundingModes=we;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[l,t]=n.split(/[eE]/);l=Oe(l);let r="";l[0]=="-"&&(r="-",l=l.substring(1)),l.indexOf(".")>=0?(t=parseInt(t)+l.indexOf("."),l=l.replace(".","")):t=parseInt(t)+l.length,l.length<t?n=r+l+new Array(t-l.length+1).join("0"):l.length>=t&&t>0?n=r+Oe(l.substring(0,t))+(l.length>t?"."+l.substring(t):""):n=r+"0."+new Array(-t+1).join("0")+l}return n}constructor(n="0"){this.value=de.validate(n)}getValue(){return this.value}static getPrettyValue(n,l,t){if(!(l||t))l=3,t=",";else if(!(l&&t))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=de.validate(n);let r=n.charAt(0)=="-";r&&(n=n.substring(1));var a=n.indexOf(".");a=a>0?a:n.length;for(var i="",u=a;u>0;)u<l?(l=u,u=0):u-=l,i=n.substring(u,u+l)+(u<a-l&&u>=0?t:"")+i;return(r?"-":"")+i+n.substring(a)}getPrettyValue(n,l){return de.getPrettyValue(this.value,n,l)}static round(n,l=0,t=we.HALF_EVEN){if(n=de.validate(n),isNaN(l))throw Error("Precision is not a number: "+l);return $t(n,l,t)}round(n=0,l=we.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new de($t(this.value,n,l))}static floor(n){return n=de.validate(n),n.indexOf(".")===-1?n:de.round(n,0,we.FLOOR)}floor(){return this.value.indexOf(".")===-1?new de(this.value):new de(this.value).round(0,we.FLOOR)}static ceil(n){return n=de.validate(n),n.indexOf(".")===-1?n:de.round(n,0,we.CEILING)}ceil(){return this.value.indexOf(".")===-1?new de(this.value):new de(this.value).round(0,we.CEILING)}static add(n,l){return n=de.validate(n),l=de.validate(l),jt(n,l)}add(n){return new de(jt(this.value,n.getValue()))}static subtract(n,l){return n=de.validate(n),l=de.validate(l),zn(n,l)}subtract(n){return new de(zn(this.value,n.getValue()))}static multiply(n,l){return n=de.validate(n),l=de.validate(l),_n(n,l)}multiply(n){return new de(_n(this.value,n.getValue()))}static divide(n,l,t){return n=de.validate(n),l=de.validate(l),jn(n,l,t)}divide(n,l){return new de(jn(this.value,n.getValue(),l))}static modulus(n,l){return n=de.validate(n),l=de.validate(l),pl(n,l)}modulus(n){return new de(pl(this.value,n.getValue()))}static compareTo(n,l){return n=de.validate(n),l=de.validate(l),vl(n,l)}compareTo(n){return vl(this.value,n.getValue())}static negate(n){return n=de.validate(n),Hn(n)}negate(){return new de(Hn(this.value))}}function wl(e,n){return de.multiply(`${e}`,`${n}`)}function Kn(e,n,l=8){return de.divide(`${e}`,`${n}`,l)}function Wn(e,n){return e=`${e}`,n=`${n}`,de.compareTo(e,n)}function Sl(e){return de.negate(e)}function zt(e,n=-1,l=!1,t=3,r=","){let a=`${e}`;if(a.length==0||a==="-")return"";let i=a.charAt(0);i=="-"?a=a.substring(1):i="";let u=a,s="",c=a.indexOf(".");c!=-1&&(u=a.substring(0,c),s=a.substring(c+1)),n!=-1&&(n<s.length?s=s.substring(0,n):l&&n>s.length&&(s=s.padEnd(n,"0")));let f;if(t>0){let m="",p=u.split("").reverse();for(let w=0;w<p.length;w++)m+=p[w]+((w+1)%t==0&&w+1!=p.length?r:"");s.length==0?f=`${i}${m.split("").reverse().join("")}`:f=`${i}${m.split("").reverse().join("")}.${s}`}else s.length==0?f=`${i}${u}`:f=`${i}${u}.${s}`;return f}function xl(e){let n=`${e}`,l=n.charAt(0);l=="-"?n=n.substring(1):l="";let t=n.replace(/[^\d\.-]/g,"");return`${l}${t}`}const Yn=gl,Ta=Array.isArray,Ca=e=>Ht(e)==="[object Map]",$a=e=>Ht(e)==="[object Set]",Na=e=>e instanceof Date,Un=e=>typeof e=="function",Tl=e=>typeof e=="string",ka=e=>typeof e=="symbol",We=e=>e!==null&&typeof e=="object",Cl=e=>We(e)&&Un(e.then)&&Un(e.catch),$l=Object.prototype.toString,Ht=e=>$l.call(e),Gn=e=>Ht(e)==="[object Object]",Nl=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Ea(e){return e.__esModule||Nl&&e[Symbol.toStringTag]==="Module"}const Ia=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function ct(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},l=1,t=e.length,r=!1;for(typeof n=="boolean"&&(r=n,n=e[l]??{},l++),typeof n!="object"&&(n={});l<t;l++)if(e[l]!==null&&e[l]!==void 0){let a=e[l];for(let i in a){let u=n[i],s=a[i];if(u!==s)if(r===!0&&s&&typeof s=="object"){let c;Array.isArray(s)?c=u&&Array.isArray(u)?u:[]:c=u&&typeof u=="object"?u:{},n[i]=ct(r,c,s)}else s!==void 0&&(n[i]=s)}}return n}function Xn(e,n,l=!1){if(!l)ct(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let r in n){let a=e[r],i=n[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Gn(i))continue;a=Xn(a,i,l),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}const t=Object.getOwnPropertySymbols(n);for(let r of t){let a=e[r],i=n[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Gn(i))continue;a=Xn(a,i,l),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const Zn=Ia?Promise.resolve():null;function Oa(e,...n){Zn!==null?n&&n.length>0?Zn.then(()=>{e(n)}):Zn.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function ce(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function Ce(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 Kt(e){let l=Object.prototype.toString.call(e);return e==null?String(e):Da[l]||"object"}function kl(e){return e&&typeof e=="object"&&"setInterval"in e}function El(e){if(!e||e.nodeType!==1)return!0;let n=e;for(;n;){if(n.hidden)return!0;const l=window.getComputedStyle(n);if(l.display==="none"||l.visibility==="hidden"||l.visibility==="collapse")return!0;n=n.parentElement}return!1}function Il(e){let n=!!e&&"length"in e&&e.length,l=Kt(e);return l==="function"||kl(e)?!1:l==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function Ol(e,n){let l=+n.length,t=0,r=e.length;for(;t<l;t++)e[r++]=n[t];return e.length=r,e}function Va(e,n=[]){let l=n;return e!=null&&(Il(Object(e))?Ol(l,typeof e=="string"?[e]:e):l.push(e)),l}function tt(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let l=Kt(e),t=Kt(n);if(l!==t)return!1;if(l==="object"){let r=Object.keys(e),a=Object.keys(n);if(r.length!==a.length)return!1;for(let i=0;i<r.length;i++){let u=r[i],s=e[u],c=n[u];if(!tt(s,c))return!1}return!0}else if(l==="array"){if(e.length!==n.length)return!1;for(let r=0;r<e.length;r++){let a=e[r],i=n[r];if(!tt(a,i))return!1}return!0}return!1}const lt=typeof window<"u";function Wt(e){return e==null}function Qn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const he=e=>e==null||typeof e!="string"?!1:e.length===0;function Dl(e){return he(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),he(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Vl(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const l=n.indexOf(".");return l==-1?n.length:l}function Rl(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const l=n.indexOf(".");return l==-1?0:n.length-(l+1)}function Fl(e,n,l){const t=e.indexOf(n);return t===-1?e:n==="-"&&t!==0?e.slice(0,t):e.slice(0,t+1)+e.slice(t).replace(l,"")}function Ra(e,n=!0,l=!0){n?e=Fl(e,".",/\./g):e=e.replace(/\./g,""),l?e=Fl(e,"-",/-/g):e=e.replace(/-/,"");const t=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(t,"")}function Fa(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(l=>{if(tt(e,l))return!0}):n.indexOf(e)}function Aa(e,n){if(typeof e=="object"||Array.isArray(e)){let l=n.reverse().findIndex(t=>{if(tt(e,t))return!0});return l!==-1&&(l=n.length-1-l),l}return n.lastIndexOf(e)}function kt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function mt(e,...n){const l={};return n.forEach(t=>{for(const r in t)l[r]=e[r]}),l}function De(e,...n){const l=[];n.forEach(r=>{Reflect.apply([].push,l,Reflect.ownKeys(r))});const t={};for(const r in e)l.includes(r)||(t[r]=e[r]);return t}const Ma=(e,n,l)=>{const t=Object.assign({},e),r=Object.assign({},l);return Object.keys(n).length>0?(Object.keys(t).forEach(a=>{r.hasOwnProperty(a)?typeof r[a]=="string"&&(t[a]=n[r[a]]):n[a]&&(t[a]=n[a])}),t):e},Se=Symbol.for("BroadcastKey");class Jn{parent;children=[];callbacks=new Map;proxy=null;name;persistantMessages=new Map;constructor(n,l,t){this.parent=n,this.proxy=l,this.name=t,n!==null&&n.addChild(this)}addChild(n){this.children.push(n)}removeChild(n){const l=this.children.findIndex(t=>n===t);l!==-1&&this.children.splice(l,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.parent=null,this.proxy=null}setPersistantMessage(n,l,t){if(!n.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const r=n.uniqueId,a={matched:n,action:l,args:t};return this.persistantMessages.set(r,a),!0}deletePersistantMessage(n){this.persistantMessages.delete(n)}getPersistantMessages(){const n=[];return this.persistantMessages.forEach(l=>{n.push(l)}),n}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(n,l){if(!l||l.messagingPolicy==="Once"&&l.resolved===!0)return!1;let t=!1;return!l.name||l.name==="*"||l.name==="+"||Qn(l.name)&&n&&l.name.test(n)?t=!0:typeof l.name=="function"?t=Reflect.apply(l.name,null,[n]):l.name===n&&(t=!0),t}trigger(n,l,t){let r=null;const a=this.callbacks.get(l);typeof a=="function"&&(r=Reflect.apply(a,this.proxy,[...t]));const i=this.proxy??{};typeof i[l]=="function"&&(r=Reflect.apply(i[l],i,[...t])),n.resolved=!0,typeof n.resolve=="function"&&n.resolve(r)}pull(){let n=this.parent;for(;n;){const l=n.getPersistantMessages();Array.isArray(l)&&l.length>0&&l.forEach(t=>{if(this.isMatched(this.name,t.matched))try{this.trigger(t.matched,t.action,t.args)}catch(r){console.error(r)}}),n=n.parent}}emit(n,l,...t){if(n.messagingPolicy==="Once"&&n.resolved===!0)return[];if(n.cachePolicy==="Persistant")this.setPersistantMessage(n,l,t),n.cachePolicy="None";else if(n.cachePolicy==="Unresolved"){if(this.setPersistantMessage(n,l,t)){const i=n.resolve,u=n.uniqueId??"",s=(...c)=>{this.deletePersistantMessage(u),typeof i=="function"&&i(...c)};n.resolve=s}n.cachePolicy="None"}let r=!1;!n.name||n.name==="*"?r=!0:n.name==="+"?(r=!1,n.name="*"):Qn(n.name)&&this.name&&n.name.test(this.name)?r=!0:typeof n.name=="function"?r=Reflect.apply(n.name,null,[this.name]):n.name===this.name&&(r=!0);const a=[];if(r){const i=this.callbacks.get(l);if(typeof i=="function"){const s=Reflect.apply(i,this.proxy,[...t]);s!=null&&a.push(s)}const u=this.proxy??{};if(typeof u[l]=="function"){const s=Reflect.apply(u[l],u,[...t]);s!=null&&a.push(s)}if(n.resolved=!0,typeof n.resolve=="function"&&n.resolve(...a),n.messagingPolicy==="Once")return a}return this.children.forEach(i=>{const u=Reflect.apply(i.emit,i,[{...n},l,...t]);u!=null&&Array.isArray(u)&&Reflect.apply([].push,a,[...u])}),a}emitToChildren(n,l,...t){if(n.cachePolicy==="Persistant")this.setPersistantMessage(n,l,t),n.cachePolicy="None";else if(n.cachePolicy==="Unresolved"){if(this.setPersistantMessage(n,l,t)){const a=n.resolve,i=n.uniqueId??"",u=(...s)=>{this.deletePersistantMessage(i),typeof a=="function"&&a(...s)};n.resolve=u}n.cachePolicy="None"}const r=[];return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...n},l,...t]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}on(n,l){this.callbacks.set(n,l)}}function Yt(e,n,l,t){const r=new Jn(n,e,l);if(t&&typeof t=="object")for(const a in t)r.on(a,t[a]);return r}function La(e,n,l){const t=l;if(t[Se])return t[Se];const r=o.inject(Se,null),a=new Jn(r,l,e);if(n&&typeof n=="object")for(const i in n)a.on(i,n[i]);return t[Se]=a,o.provide(Se,a),o.onUnmounted(()=>{a.destroy(),t[Se]=void 0}),a}function Et(e=null){return e||(e=o.getCurrentInstance()?.proxy??null),e?e[Se]??o.inject(Se,null):o.inject(Se,null)}class Ba{error(n,l){const t=l,r=l||o.hasInjectionContext()?Et(l):null;r?r.emit({name:"*"},"setErrorTip",n):typeof t.setErrorTip=="function"&&t.setErrorTip(n)}reset(n){const l=n,t=n||o.hasInjectionContext()?Et(n):null;t?t.emit({name:"*"},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}success(n){const l=n,t=n||o.hasInjectionContext()?Et(n):null;t?t.emit({name:"*"},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}decorate(n,l,t){Array.isArray(n)||(n=[n]);const r=t,a=t||o.hasInjectionContext()?Et(t):null,i=l.find(s=>s.required===!0||s.type==="required"&&s.required!==!1),u=n.find(s=>s.required===!0||s.type==="required"&&s.required!==!1);!i&&u?a?a.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0):i&&!u&&(a?a.emit({name:"*"},"setRequired",!1):typeof r.setRequired=="function"&&r.setRequired(!1),this.reset(t))}getValue(n){return n.modelValue}}let It=new Ba;function qa(e){It=e}function Pa(e){It?Object.assign(It,e):It=e}function _a(e,n){ut.Schema.setValidator(e,n)}function ja(e){ut.Schema.deleteValidator(e)}let Al=["blur","clear"];function za(e){Al=e}function Ml(){return Al}let Ll=["focus","change","setValue"];function Ha(e){Ll=e}function Bl(){return Ll}function Ka(e){ut.Schema.messages(e)}function Ot(...e){const n=[];return e.forEach(l=>{l.forEach(t=>{const r=n.findIndex(a=>a.type===t.type);r!==-1&&n.splice(r,1),n.push(t)})}),n}function Ut(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}const Ye=Symbol("ValidateSchemaKey");class ql{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(n,l,t){this.parent=n,this.descriptor=l,this.proxy=t,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let n=this.proxy.$attrs;n&&(this.scope=o.effectScope(!0),this.scope.run(()=>{o.watchEffect(()=>{const l=Ut(Ot(this.attrRules,this.rules)),t=[];for(let a in n){let i=n[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let s={type:a};i!==null&&typeof i=="object"&&Object.assign(s,i),t.push(s);continue}let u=this.getValidator(a);if(u!==null){let s={type:a,validator:u};t.push(s)}}this.attrRules=Ut(t);const r=Ot(this.attrRules,this.rules);o.nextTick(()=>{this.decorate(r,l)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(n,...l){const t=this.descriptor.validateHandler;if(t&&typeof t[n]=="function")return Reflect.apply(t[n],t,[...l]);const r=It;return r&&typeof r[n]=="function"?Reflect.apply(r[n],r,[...l]):null}decorate(n,l){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",n,l,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(n){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",n,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(n,l,t=!1){t?ut.Schema.setValidator(n,l):this.validators[n]=l}getValidator(n){let l=this.validators[n]??null;return l||(l=this.parent?.getValidator(n)??null),l}deleteValidator(n,l=!1){l?ut.Schema.deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,l=!1){if(l)return ut.Schema.hasValidator(n);{let t=Reflect.has(this.validators,n);return!t&&this.parent!==null&&(t=this.parent.hasValidator(n,!1)),t}}setRule(n){const l=Ot(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=Ut(n):this.rules=Ut([n]);const t=Ot(this.attrRules,this.rules);o.nextTick(()=>{this.decorate(t,l)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let l=Ot(this.attrRules,this.rules);const t=this.descriptor.fieldName??"value";if(l.length>0){const r={[`${t}`]:l},a=this.getValue(),i={[`${t}`]:a},u=new ut.Schema(r),s=this.proxy??i;return u.validate(i,{context:s}).then(f=>{if(f.pass)this.success();else{let m="error";Array.isArray(f.errors)&&f.errors.length>0&&(m=f.errors[0].message??m,f.errors=[f.errors[0]],f.errors[0].ref=s),this.error(m)}return f}).catch(f=>{const m=f.message??`${f}`;return this.error(m),f})}}return Promise.resolve({pass:!0})}}function Gt(e,n,l){if(l.valueName=l.valueName??"modelValue",l.valueType=l.valueType??"string",!l.validateHandler&&l.valueName!=="modelValue"){const r=l.valueName;l.validateHandler={getValue(a){return a[r]}}}return new ql(n,l,e)}const Xt=Symbol.for("EventEmitterKey");class Pl{register=new Map;proxy;constructor(n){this.proxy=n}destroy(){this.proxy=null,this.register.clear()}off(n,l){let t=this.register.get(n);if(t&&Array.isArray(t)){let r=t.findIndex(a=>a===l);r!==-1&&t.splice(r,1)}}on(n,l){let t=this.register.get(n);t||(t=new Array,this.register.set(n,t)),t.push(l)}emit(n,...l){const t=this.register.get(n);t&&t.forEach(r=>{try{Reflect.apply(r,null,[n,...l])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[n,...l])}}function He(e,n){let l=null;return function(...t){l&&clearTimeout(l),l=setTimeout(()=>{l=null,Reflect.apply(e,null,[...t])},n)}}function _l(e,n){let l=0;return function(...t){const r=new Date().getTime();r-l<n||(l=r,Reflect.apply(e,null,[...t]))}}function Wa(e,n){const l=He((t,r)=>{e=t,r()},n);return o.customRef((t,r)=>({get(){return t(),e},set(a){l(a,r)}}))}function Ya(e){let n=!1;return function(...l){n||(n=!0,Reflect.apply(e,null,[...l]))}}function Zt(e,n,l,t=0,r=!0,a){let i=n,u=0;if(r){const c=e();if(u++,c){typeof a=="function"&&a(!0);return}if(u>l){typeof a=="function"&&a(!1);return}}const s=()=>{const c=e();if(u++,c){typeof a=="function"&&a(!0);return}if(u>l){typeof a=="function"&&a(!1);return}i+=t,setTimeout(s,i)};setTimeout(s,i)}const Pe=Symbol("DomainKey"),yt=Symbol("DataItemsKey");class Qt{_parent=null;get parent(){return this._parent}set parent(n){this._parent=n}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(n){this._broadcast=n}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(n){this._validateSchema=n}_props=o.reactive({});constructor(n=null){this._name=n}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(n,l=[]){for(const t in n){const r=n[t];l.length>0&&l.indexOf(r)!==-1||(this._props[t]=r)}}has(n){if(Reflect.has(this._props,n)){const l=this._props[n];if(l!=null)return!0}return this.parent==null?!1:this.parent.has(n)}delete(n){Reflect.deleteProperty(this._props,n)}set(n,l){this._props[n]=l}get(n,l){if(Reflect.has(this._props,n)){const t=this._props[n];if(t!=null)return t}return this.parent==null?l:this.parent.get(n,l)}getForParent(n,l){return this.parent==null?l:this.parent.get(n,l)}getForSelf(n){return this._props[n]}getAll(n){const l=[];let t=this;for(;t!=null;){if(Reflect.has(t._props,n)){const r=t._props[n];l.push(r)}t=t._parent}return l}}const Ua=new Qt;function pt(){return Ua}function rt(e=null){return e||(e=o.getCurrentInstance()?.proxy??null),e?e[Pe]??o.inject(Pe,null):o.inject(Pe,null)}const eo=Symbol("OriginalDateKey");function to(e,n,l=[],t){const r=o.getCurrentInstance();let a=r?.proxy,i=o.inject(Pe,null);i===null&&(i=pt());const u=e||n.prop||n.name;let s=new Qt(u);s.parent=i;const c=d=>{a[eo]||p(d),s?.set("modelValue",d)},f=()=>s?.getForSelf("modelValue")??null,m=()=>a[eo]??null,p=d=>{const h={};ct(!0,h,o.toRaw(d)),a[eo]=h};o.isReactive(n)||typeof n=="function"?o.watch(n,d=>{s?.merge(d,l)},{immediate:!0}):s.merge(n,l),n.modelValue&&p(n.modelValue);const w=(d,h)=>{s?.set(d,h)},S=d=>s?.getForSelf(d)??null;if(a[Pe]=s,o.provide(Pe,s),r!==null){const d=o.inject(Se,null),h=Yt(a,d,u,t);s.broadcast=h,a[Se]=h,o.provide(Se,h),a.broadcast=(b,q,..._)=>Reflect.apply(h.emit,h,[b,q,..._]);const O=o.inject(Ye,null),x=Gt(a,O,{componentName:""});s.validateSchema=x,a[Ye]=x,o.provide(Ye,x),a[yt]=new Map,a.validate=(b=!0)=>{const q=[];let _=null;const B={deep:!1};if(b===!0)_={name:"*"};else if(Array.isArray(b)&&b.length>0){const D=b;_={name:N=>N?D.indexOf(N)!==-1:!1}}else if(b!=null&&typeof b=="object"){const D=b;if(Object.assign(B,D),Array.isArray(D.include)&&D.include.length>0){const N=D.include;_={name:v=>v?N.indexOf(v)!==-1:!1}}else if(Array.isArray(D.exclude)&&D.exclude.length>0){const N=D.exclude;_={name:v=>v?N.indexOf(v)===-1:!1}}else _={name:"*"}}if(_){const D=h?.emitToChildren(_,"validate",B);D&&Reflect.apply([].push,q,D)}return q.length==1?q[0]:q.length>1?Promise.all(q).then(D=>{let N=[];return D.forEach(v=>{v.pass===!1&&Array.isArray(v.errors)&&(N=[...N,...v.errors])}),N.length>0?{pass:!1,errors:N}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(b,q=!0,_=!1)=>{if(_===!0){Reflect.ownKeys(b).forEach(D=>{let N=String(D);const v={componentName:"",fieldName:N,pureDataValidate:!0};if(s){const j=zl(s,N,v,h,x);a[yt].set(N,j);const y=b[N];y&&j.validateSchema.setRule(y)}});return}if(q){const B=Reflect.ownKeys(b),D={name:N=>B.includes(N),cachePolicy:"Persistant",uniqueId:"validateRules"};h?.emitToChildren(D,"setNameValidateRules",b,!1)}},a.clearValidate=(b=!0)=>{let q=null;if(b===!0)q={name:"*"};else if(Array.isArray(b)&&b.length>0){const _=b;q={name:B=>B?_.indexOf(B)!==-1:!1}}else if(b!=null&&typeof b=="object"){const _=b;if(Array.isArray(_.include)&&_.include.length>0){const B=_.include;q={name:D=>D?B.indexOf(D)!==-1:!1}}else if(Array.isArray(_.exclude)&&_.exclude.length>0){const B=_.exclude;q={name:D=>D?B.indexOf(D)===-1:!1}}else q={name:"*"}}q&&h?.emitToChildren(q,"clearValidate",!1)},a.resetFields=b=>{const q=f();if(!q)return;const _={};if(ct(!0,_,m()??{}),Array.isArray(b))b.forEach(B=>{q[B]=_[B]});else if(b&&Array.isArray(b.include))(b.include??[]).forEach(D=>{q[D]=_[D]});else if(b&&Array.isArray(b.exclude)){let B=b.exclude??[];Reflect.ownKeys(_).forEach(D=>{B.includes(D)||(q[D]=_[D])})}else Object.assign(q,_);a.clearValidate(b)},a.setModelValue=(b,q)=>{if(!q||q===u)c(b);else{const _={name:q,messagingPolicy:"Once"};h?.emitToChildren(_,"setModelValue",b)}},a.getModelValue=()=>f(),a.setDomainProperty=(b,q)=>{w(b,q)},a.getDomainProperty=b=>S(b),setTimeout(function(){h?.pull()},0)}return o.onUnmounted(function(){s?.validateSchema&&(s.validateSchema.destroy(),a[Ye]=void 0,o.provide(Ye,null)),s?.broadcast&&(s?.broadcast?.destroy(),a[Se]=void 0,o.provide(Se,null)),s?.destroy(),a[Pe]=void 0,o.provide(Pe,null),a[yt]&&(a[yt].clear(),a[yt]=void 0),a.broadcast=null,a.validate=null,a.setNameValidateRules=null,a.clearValidate=null,a.resetFields=null,a.setModelValue=null,a.getModelValue=null,a.setDomainProperty=null,a.getDomainProperty=null,s=null,a=null}),s}function jl(e,n,l=[]){let r=o.getCurrentInstance()?.proxy,a=o.inject(Pe,null);a===null&&(a=pt());const i=e||n.prop||n.name;let u=new Qt(i);return u.parent=a,o.isReactive(n)||typeof n=="function"?o.watch(n,s=>{u?.merge(s,l)},{immediate:!0}):u.merge(n,l),r[Pe]=u,o.provide(Pe,u),o.onUnmounted(()=>{u?.destroy(),r[Pe]=void 0,o.provide(Pe,null),u=null,r=null}),u}function Ee(e,n,l){const r=o.getCurrentInstance()?.proxy,a=n??"",i=o.inject(Se,null);let u=Yt(r,i,a,l);r[Se]=u,o.provide(Se,u),r.broadcast=(S,d,...h)=>u?Reflect.apply(u.emit,u,[S,d,...h]):null;const s=o.inject(Ye,null);e.fieldName=e.fieldName??a;let c=Gt(r,s,e);r[Ye]=c,o.provide(Ye,c),r.validate=(S=null)=>{if(!c)return Promise.resolve({pass:!0});const d=[];let h=!1,O=!1;if(Array.isArray(S)&&S.indexOf(a)!==-1)O=!0,h=!0;else if(S&&typeof S=="object"){const x=S,b=x.ignoreDisabled??!0,q=x.ignoreReadonly??!0,_=x.ignoreHidden??!0;b===!0&&e.disabled===!0||q===!0&&e.readonly===!0||_===!0&&El(r.$el)?O=!1:(Array.isArray(x.include)&&x.include.indexOf(a)!==-1||Array.isArray(x.exclude)&&x.exclude.indexOf(a),O=!0),h=x.deep??!1}else typeof S=="boolean"&&(h=S),O=!0;if(O){const x=c?.validate();d.push(x)}if(h){let x=null;const b={deep:!1};if(S===!0)x={name:"*"};else if(Array.isArray(S)&&S.length>0){const q=S;x={name:_=>_?q.indexOf(_)!==-1:!1}}else if(S!=null&&typeof S=="object"){const q=S;if(Object.assign(b,q),Array.isArray(q.include)&&q.include.length>0){const _=q.include;x={name:B=>B?_.indexOf(B)!==-1:!1}}else if(Array.isArray(q.exclude)&&q.exclude.length>0){const _=q.exclude;x={name:B=>B?_.indexOf(B)===-1:!1}}else x={name:"*"}}if(x&&u){const q=u.emitToChildren(x,"validate",b);Reflect.apply([].push,d,q)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(x=>{let b=[];return x.forEach(q=>{q.pass===!1&&Array.isArray(q.errors)&&(b=[...b,...q.errors])}),b.length>0?{pass:!1,errors:b}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=S=>c?.setRule(S),r.setNameValidateRules=(S,d=!1)=>{const h=S[a];if(h&&c?.setRule(h),d&&u){const O={name:x=>Reflect.ownKeys(S).includes(x)};u.emitToChildren(O,"setNameValidateRules",S,!1)}},r.clearValidate=(S=null)=>{(!Array.isArray(S)||S.indexOf(n??"")!==-1)&&c?.clear();let d=null;if(S===!0)d={name:"*"};else if(Array.isArray(S)&&S.length>0){const h=S;d={name:O=>O?h.indexOf(O)!==-1:!1}}else if(S!=null&&typeof S=="object"){const h=S;if(Array.isArray(h.include)&&h.include.length>0){const O=h.include;d={name:x=>x?O.indexOf(x)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const O=h.exclude;d={name:x=>x?O.indexOf(x)===-1:!1}}else d={name:"*"}}d&&u&&u.emitToChildren(d,"clearValidate",!1)};let f=new Pl(r);r[Xt]=f;const m=He((S="validate")=>{c&&(S==="reset"?c.clear():c.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Ml()).forEach(S=>{f&&f.on(S,d=>{m("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Bl()).forEach(S=>{f&&f.on(S,d=>{m("reset")})}),setTimeout(function(){u?.pull()},0),o.onUnmounted(()=>{u?.destroy(),r[Se]=void 0,o.provide(Se,null),u=null,c?.destroy(),r[Ye]=void 0,o.provide(Ye,null),c=null,f?.destroy(),r[Xt]=void 0,f=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:u,validateSchema:c,emitEvent:(S,...d)=>{f&&Reflect.apply(f.emit,f,[S,...d])},onEvent:(S,d)=>{f&&Reflect.apply(f.on,f,[d])},offEvent:(S,d)=>{f&&Reflect.apply(f.off,f,[d])}}}function zl(e,n,l,t,r){const a={},i=n??"",u={getValue(){const f=e.getForSelf("modelValue");return f?f[i]:null},isExist(){const f=e.getForSelf("modelValue");return f?Reflect.has(f,i):!1}};l.fieldName=i,l.validateHandler={getValue(f){return u.getValue()}};let s=Gt({},r,l);a.validate=(f=null)=>{if(!u.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const m=[];let p=!1,w=!1;if(Array.isArray(f)&&f.indexOf(i)!==-1)w=!0,p=!0;else if(f&&typeof f=="object"){const S=f;Array.isArray(S.include)&&S.include.indexOf(i)!==-1||Array.isArray(S.exclude)&&S.exclude.indexOf(i),w=!0,p=S.deep??!1}else typeof f=="boolean"&&(p=f),w=!0;if(w&&s){const S=s.validate();m.push(S)}if(p){let S=null;const d={deep:!1};if(f===!0)S={name:"*"};else if(Array.isArray(f)&&f.length>0){const h=f;S={name:O=>O?h.indexOf(O)!==-1:!1}}else if(f!=null&&typeof f=="object"){const h=f;if(Object.assign(d,h),Array.isArray(h.include)&&h.include.length>0){const O=h.include;S={name:x=>x?O.indexOf(x)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const O=h.exclude;S={name:x=>x?O.indexOf(x)===-1:!1}}else S={name:"*"}}if(S&&c){const h=c.emitToChildren(S,"validate",d);Reflect.apply([].push,m,h)}}return m.length==1?m[0]:m.length>1?Promise.all(m).then(S=>{let d=[];return S.forEach(h=>{h.pass===!1&&Array.isArray(h.errors)&&(d=[...d,...h.errors])}),d.length>0?{pass:!1,errors:d}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=f=>s?.setRule(f),a.setNameValidateRules=f=>{const m=f[i];m&&s?.setRule(m)};let c=Yt(null,t,i,a);return o.onUnmounted(()=>{s=null,c=null}),{broadcast:c,validateSchema:s}}function Hl(){let n=o.getCurrentInstance()?.proxy,l=new Pl(n);return n[Xt]=l,o.onUnmounted(()=>{l?.destroy(),n[Xt]=void 0,l=null,n=null}),{emitEvent:(t,...r)=>{l&&Reflect.apply(l.emit,l,[t,...r])},onEvent:(t,r)=>{l&&Reflect.apply(l.on,l,[r])},offEvent:(t,r)=>{l&&Reflect.apply(l.off,l,[r])}}}const be=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${me(e,n)}px`:"",Ga=be;function me(e,n=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let l=e.indexOf("px");if(l!==-1)return Number(e.substring(0,l));if(l=e.indexOf("rem"),l!==-1){let r=Number(e.substring(0,l)),a=1;if(lt){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),u=i.indexOf("px");u>0&&(a=Number(i.substring(0,u)))}return r*=a,r}if(l=e.indexOf("%"),l!==-1)return Number(e.substring(0,l))/100*n;const t=Number(e);return isNaN(t)?0:t}const at="PageStateKey";function Je(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=me(e.top)),e.left!==null&&e.left!==void 0&&(n.left=me(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=me(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=me(e.right))),n}function no(e,n,l={},t=!0,r=-1,a=-1,i=0,u=0){if(e.headerHeight=me(l.headerHeight??n.headerHeight??-1),e.headerPadding=Je(l.headerPadding??n.headerPadding),e.footerHeight=me(l.footerHeight??n.footerHeight??-1),e.footerPadding=Je(l.footerPadding??n.footerPadding),e.contentPadding=Je(l.contentPadding??n.contentPadding),t){const s=l.height??n.height;s?e.height=me(s,a):e.height=me(a)-me(i,a)-me(u,a),e.width=me(l.width??n.width??0,r)}}function Kl(e,n={}){const l={top:null,bottom:null,right:null,left:null},t={width:0,height:0,headerHeight:0,headerPadding:{...l},footerHeight:0,footerPadding:{...l},contentPadding:{...l},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},r=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});r&&(t.safeAreaTop=me(r.top),t.safeAreaBottom=me(r.bottom),t.safeAreaLeft=me(r.left),t.safeAreaRight=me(r.right));const a=e.get("pageLayout");if(!a)return null;const i=e.get("rootWidth")??-1,u=e.get("rootHeight")??-1,s=e.get("headerBarHeight")??0,c=e.get("footerBarHeight")??0;no(t,a,n,!0,i,u,s,c);const f=o.reactive(t),m=e.getForParent(at);m&&(t.height=nn(e,m),t.width=on(e,m),o.watch([()=>nn(e,m),()=>on(e,m)],([w,S])=>{f.height=w,f.width=S}));const p=!m;return o.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([w,S,d=-1,h=-1,O=0,x=0])=>{no(f,S,n,p,d,h,O,x)}),e.set(at,f),f}function Jt(e){return e.get(at)}function en(e,n){if(n=n??e.get(at),n&&n.headerMounted){const l=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+l}return 0}function tn(e,n){if(n=n??e.get(at),n&&n.footerMounted){const l=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+l}return 0}function nn(e,n){if(n=n??e.get(at),n){if(n.contentInnerHeight)return n.contentInnerHeight;const l=en(e,n),t=tn(e,n);return n.height-l-t-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function on(e,n){return n=n??e.get(at),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function Xa(e,n){const l=e.get("isInnerPage");return typeof l=="function"?Reflect.apply(l,{},[n,e]):!1}function Za(e){return!!e.getForParent(at)}var _e=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(_e||{});function ln(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ae(e,n,l=1,t){const r=rt();return r==null?e:l===0?o.computed(()=>{const a=r.getAll(n);for(let u=a.length-1;u>=0;u--){const s=a[u];if(ln(s,t))return s}const i=e.value;return ln(i,t)?i:null}):o.computed(()=>{const a=e.value;if(ln(a,t))return a;const i=r.getAll(n);for(let u=0;u<i.length;u++){const s=i[u];if(ln(s,t))return s}return null})}function Me(e){return Ae(e,"readonly",1)}function Le(e){return Ae(e,"disabled",1)}function ge(e,n="modelValue",l=null,t){const r=o.toRef(e,n);let a=r.value;typeof l=="function"&&(a=l(r.value));const i=o.ref(a);return o.watch(r,u=>{if(typeof l=="function"){const s=l(u);s!==i.value&&(i.value=s,t&&t("setValue",s))}else u!==i.value&&(i.value=u,t&&t("setValue",u))}),i}const Wl=new Map,rn=new Map;let oo=null;function Qa(e){oo=e}function Yl(e,n,l){if(l){let t=rn.get(l);t||(t=new Map,rn.set(l,t)),t.set(e,n)}else Wl.set(e,n)}function je(e,n,l){!l&&oo&&(l=oo(e)??void 0);let t=null;if(l){let r=rn.get(l);r&&(t=r.get(n))}return t||(t=Wl.get(n)),t}function Ja(e,n){for(let l in e){const t=e[l];Yl(l,t,n)}}function ei(e){rn.delete(e)}function ti(){return{top:0,left:0,bottom:0,right:0}}function ni(){if(lt){const e=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight;return{rootWidth:e,rootHeight:n,pageLayout:{}}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{}}}function oi(e,n){if(n.componentPrefix){const l=e.indexOf("-");return`${n.componentPrefix}${e.slice(l)}`}return e}class li{packages;installers;_version;get version(){return this._version}constructor(n,l,t){this.packages=n,this.installers=l,this._version=t}install(n,l={}){l?.install!==!1&&(this.packages.forEach(r=>{if(r.install)n.use(r);else if(r.name){const a=oi(r.name,l);n.component(a,r)}}),this.installers.forEach(r=>{r(n,l)}));const t=pt();if(l.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r={...l},a=He(()=>{const u={...r};this.updateLayout(u,t)},120);new window.ResizeObserver(a).observe(window.document.body)}this.updateLayout(l,t)}updateLayout(n,l){const t=n.headerBarHeight??0,r=n.footerBarHeight??0,a=ct({},ti(),n.safeAreaInset),i=ni(),u=ct({},i.pageLayout,n.pageLayout);l=l??pt(),l.set("safeAreaInset",a),l.set("headerBarHeight",t),l.set("footerBarHeight",r),l.set("pageLayout",u),l.set("rootWidth",i.rootWidth),l.set("rootHeight",i.rootHeight);const s=["install","componentPrefix","safeAreaInset","headerBarHeight","footerBarHeight","pageLayout","rootWidth","rootHeight"];for(const c in n)s.indexOf(c)===-1&&l.set(c,n[c])}setScopeGetter(n){Qa(n)}setAPI(n,l,t){Yl(n,l,t)}getAPI(n,l,t){return je(n,l,t)}batchSetAPI(n,l){Ja(n,l)}clearScopeAPI(n){ei(n)}getRootDomain(){return pt()}}const ri=[T.ElAffix,T.ElAlert,T.ElAutocomplete,T.ElAutoResizer,T.ElAvatar,T.ElBacktop,T.ElBadge,T.ElBreadcrumb,T.ElBreadcrumbItem,T.ElButton,T.ElButtonGroup,T.ElCalendar,T.ElCard,T.ElCarousel,T.ElCarouselItem,T.ElCascader,T.ElCascaderPanel,T.ElCheckTag,T.ElCheckbox,T.ElCheckboxButton,T.ElCheckboxGroup,T.ElCol,T.ElCollapse,T.ElCollapseItem,T.ElCollapseTransition,T.ElColorPicker,T.ElConfigProvider,T.ElContainer,T.ElAside,T.ElFooter,T.ElHeader,T.ElMain,T.ElDatePicker,T.ElDescriptions,T.ElDescriptionsItem,T.ElDialog,T.ElDivider,T.ElDrawer,T.ElDropdown,T.ElDropdownItem,T.ElDropdownMenu,T.ElEmpty,T.ElForm,T.ElFormItem,T.ElIcon,T.ElImage,T.ElImageViewer,T.ElInput,T.ElInputNumber,T.ElLink,T.ElMenu,T.ElSubMenu,T.ElMenuItem,T.ElMenuItemGroup,T.ElPageHeader,T.ElPagination,T.ElPopconfirm,T.ElPopover,T.ElPopper,T.ElProgress,T.ElRadio,T.ElRadioButton,T.ElRadioGroup,T.ElRate,T.ElResult,T.ElRow,T.ElScrollbar,T.ElSelect,T.ElOption,T.ElOptionGroup,T.ElSelectV2,T.ElSkeleton,T.ElSkeletonItem,T.ElSlider,T.ElSpace,T.ElSteps,T.ElStep,T.ElSwitch,T.ElTable,T.ElTableColumn,T.ElTableV2,T.ElTabs,T.ElTabPane,T.ElTag,T.ElTimePicker,T.ElTimeSelect,T.ElTimeline,T.ElTimelineItem,T.ElTooltip,T.ElTransfer,T.ElTree,T.ElTreeSelect,T.ElTreeV2,T.ElUpload,T.ElStatistic,T.ElCountdown,T.ElSegmented,T.ElAnchor,T.ElAnchorLink,T.ElWatermark,T.ElMessageBox,T.ElMessage,T.ElNotification],ai=[T.ElInfiniteScroll,T.ElLoading,T.ElMessage,T.ElMessageBox,T.ElNotification,T.ElPopoverDirective],ii=(e,n={})=>{const l=n.componentPrefix??"fox",t=l[0].toUpperCase()+l.slice(1);ri.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${t}${a.slice(2)}`,e.component(a,r)):e.use(r)}),ai.forEach(r=>{e.use(r)})};function ie(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(l){return l.baseName=e,l.name=n,l.install=t=>{t.component(l.name,l)},o.defineComponent(l)},createDemo(l){return l.baseName=e,l.name="demo-"+e,o.defineComponent(l)}}}function xe(e,n=null){if(n||(n=o.getCurrentInstance()),n&&n.proxy){let l=n.proxy;Object.assign(l,e)}}const $e={disabled:{type:[Boolean,String],required:!1,default:()=>null},readonly:{type:[Boolean,String],required:!1,default:()=>null},labelPosition:{type:String,required:!1,default:()=>null},labelWidth:{type:[String,Number],required:!1,default:()=>null},textAlign:{type:[String],required:!1,default:()=>null},hasBorder:{type:Boolean,required:!1,default:()=>!0}},Ve={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}},Ul={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}},Gl={name:{type:String,required:!1},prop:{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}},Xl=[];for(const e in Gl)Xl.push(e);const Zl=Symbol.for("InnerPageScopeKey"),si={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}},ui=(e,n)=>({inheritAttrs:!0,props:{...$e,...Ul,...si},setup(l,{slots:t}){const r=to(l.name,l),a=o.inject(Zl,!1);if(r){const f=Kl(r,l);xe({getPageContentHeight:()=>nn(r,f),getPageContentWidth:()=>on(r,f),getPageHeaderHeight:()=>en(r,f),getPageFooterHeight:()=>tn(r,f)}),f&&a&&(f.contentHeight="100%")}const i=o.computed(()=>({[e]:!0})),u=o.computed(()=>({})),s=o.getCurrentInstance(),c=(f,m=!1)=>{const p=s?.proxy;p&&typeof p.setNameValidateRules=="function"&&p.setNameValidateRules(f,!0,m)};return o.watch([()=>l.rules,()=>l.pureDataRules],([f,m],[p,w])=>{if(f&&p){const S=o.toRaw(p),d=o.toRaw(f),h=d?Reflect.ownKeys(d):[];(S?Reflect.ownKeys(S):[]).forEach(x=>{h.includes(x)||(d[x]=[])}),c(d)}if(m&&w){const S=o.toRaw(w),d=o.toRaw(m),h=d?Reflect.ownKeys(d):[];(S?Reflect.ownKeys(S):[]).forEach(x=>{h.includes(x)||(d[x]=[])}),c(d,!0)}},{deep:!0}),o.onMounted(()=>{if(l.rules){const f=o.toRaw(l.rules);c(f)}if(l.pureDataRules){const f=o.toRaw(l.pureDataRules);c(f,!0)}}),()=>{const f={class:i.value,style:u.value};return o.h("div",f,[t?.default?.()])}}}),{componentName:ci,create:fi}=ie("page"),lo=fi(ui(ci));function ro(e){const n=o.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function an(e){const n=o.unref(e),l=window.getComputedStyle(n,null),t=parseFloat(l.getPropertyValue("padding-left")),r=parseFloat(l.getPropertyValue("padding-right")),a=parseFloat(l.getPropertyValue("padding-top")),i=parseFloat(l.getPropertyValue("padding-bottom"));return{width:n.clientWidth-t-r,height:n.clientHeight-a-i}}const di=(e,n,l,t=!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:l},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=rt(),u=i?Jt(i):null;u&&(u.headerMounted=!0);const s=e,c=o.computed(()=>({[s]:!0,[`${s}--border`]:r.border,[`${s}--fixed`]:r.fixed,[`${s}--safe-area-inset-top`]:r.safeAreaInsetTop})),f=o.computed(()=>({[`${s}__inner`]:!0,[`${s}__inner--${r.align}`]:!0})),m=r.height!==null&&r.height!==void 0?me(r.height):null,p=o.computed(()=>{const y={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&u){const L=Je(r.padding??u.headerPadding);return Object.assign(y,L),m&&(u.headerHeight=m),u.headerHeight>0&&(y.height=u.headerHeight),y.safeAreaTop=u.safeAreaTop===-1?0:u.safeAreaTop,y.safeAreaTop>0&&(y.top=y.safeAreaTop+(L.top??0),y.height&&y.height>0&&(y.height=y.height+y.safeAreaTop)),y}if(m&&(y.height=m),r.padding){const L=Je(r.padding);Object.assign(y,L)}return y}),w=o.ref(null),S=()=>{if(u&&w.value&&w.value.offsetParent!==null){if(!t){const y=ro(w.value);u.headerAllHeight=y.height}return u.headerMounted=!0,!0}return!1},d=He(S,120);let h=null;o.onMounted(()=>{u&&(Zt(S,50,5,50,!0),window.ResizeObserver&&w.value&&(h=new window.ResizeObserver(d),h.observe(w.value)))}),o.onUnmounted(()=>{u&&(u.headerMounted=!1,h&&(h.disconnect(),h=null))});const O=o.computed(()=>{const y={};return p.value.height!==null&&p.value.height!==void 0&&(y.height=`${p.value.height}px`),p.value.top!==null&&p.value.top!==void 0&&(y.paddingTop=`${p.value.top}px`),p.value.left!==null&&p.value.left!==void 0&&(y.paddingLeft=`${p.value.left}px`),p.value.right!==null&&p.value.right!==void 0&&(y.paddingRight=`${p.value.right}px`),p.value.bottom!==null&&p.value.bottom!==void 0&&(y.paddingBottom=`${p.value.bottom}px`),y}),x=o.computed(()=>!(p.value.height!==null&&p.value.height!==void 0&&p.value.height<=0));function b(){a.emit("back")}function q(){a.emit("click-title")}function _(){a.emit("click-right")}function B(){a.emit("click-right-text")}const D=()=>{if(!r.leftShow)return null;const y=[];if(a.slots.left)y.push(a.slots.left());else{if(a.slots.leftIcon){const L=o.h("view",{class:"left-icon",onClick:b},[a.slots.leftIcon()]);y.push(L)}else if(r.leftIcon){const L=o.h("view",{class:"left-icon",onClick:b},[o.h(r.leftIcon)]);y.push(L)}if(r.leftText){const L=o.h("view",{class:"left-text",onClick:b},[r.leftText]);y.push(L)}}return y.length===0?null:o.h("view",{class:"fox-header-bar__left"},y)},N=()=>{if(!r.rightShow)return null;const y=[];if(a.slots.right)y.push(a.slots.right());else{if(r.rightText){const L=o.h("view",{class:"right-text",onClick:B},[r.rightText]);y.push(L)}if(a.slots.rightIcon){const L=o.h("view",{class:"right-icon",onClick:_},[a.slots.rightIcon()]);y.push(L)}else if(r.rightIcon){const L=o.h("view",{class:"right-icon",onClick:_},[o.h(r.rightIcon)]);y.push(L)}}return y.length===0?null:o.h("view",{class:"fox-header-bar__right"},y)},v=()=>{if(!r.titleShow)return null;const y=[],L=a.slots.default?a.slots.default():null;if(L)y.push(L);else{if(r.title){const Y=o.h("view",{class:"title-text"},[r.title]);y.push(Y)}if(a.slots.titleIcon){const Y=o.h("view",{class:"title-icon",onClick:q},[a.slots.titleIcon()]);y.push(Y)}else if(r.titleIcon){const Y=o.h("view",{class:"title-icon",onClick:q},[o.h(r.titleIcon)]);y.push(Y)}}return y.length===0?null:o.h("view",{class:"fox-header-bar__title"},y)},j=()=>{const y=[],L=a.slots.bottom?a.slots.bottom():null;return L&&y.push(L),y.length===0?null:o.h("view",{class:"fox-header-bar__bottom"},y)};return()=>{if(!x.value)return null;const y=[];if(a.slots.all)y.push(a.slots.all());else{const Y=[],R=D();R&&Y.push(R);const k=v();k&&Y.push(k);const F=N();if(F&&Y.push(F),Y.length>0){const X=o.h("view",{class:f.value},Y);y.push(X)}const z=j();z&&y.push(z)}if(y.length===0)return null;const L={class:c.value,style:O.value,ref:w};return o.h("view",L,y)}}}),{componentName:hi,create:gi,scope:mi}=ie("header-bar"),ao=gi(di(hi,mi,Ie.ArrowLeft));function yi(e,n,l=!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(t,r){const a=rt(),i=a?Jt(a):null,u=o.computed(()=>{const d=e;return{[d]:!0,[`${d}--${t.align}`]:!0,[`${d}--border`]:t.border,[`${d}--fixed`]:t.fixed,[`${d}--safe-area-inset-bottom`]:t.safeAreaInsetBottom}}),s=t.height!==null&&t.height!==void 0?me(t.height):null,c=o.computed(()=>{const d={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const h=Je(t.padding??i.footerPadding);return Object.assign(d,h),s&&(i.footerHeight=s),i.footerHeight>0&&(d.height=i.footerHeight),d.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,d.safeAreaBottom>0&&(d.bottom=d.safeAreaBottom+(h.bottom??0),d.height&&d.height>0&&(d.height=d.height+d.safeAreaBottom)),d}if(s&&(d.height=s),t.padding){const h=Je(t.padding);Object.assign(d,h)}return d}),f=o.ref(null),m=()=>{if(i&&f.value&&f.value.offsetParent!==null){if(!l){const d=ro(f.value);i.footerAllHeight=d.height}return i.footerMounted=!0,!0}return!1},p=He(m,120);let w=null;o.onMounted(()=>{i&&(Zt(m,50,5,50,!0),window.ResizeObserver&&(w=new window.ResizeObserver(p),w.observe(f.value)))}),o.onUnmounted(()=>{i&&(i.footerMounted=!1,w&&(w.disconnect(),w=null))});const S=o.computed(()=>{const d={};return c.value.height!==null&&c.value.height!==void 0&&(d.height=be(c.value.height)),c.value.top!==null&&c.value.top!==void 0&&(d.paddingTop=be(c.value.top)),c.value.left!==null&&c.value.left!==void 0&&(d.paddingLeft=be(c.value.left)),c.value.right!==null&&c.value.right!==void 0&&(d.paddingRight=be(c.value.right)),c.value.bottom!==null&&c.value.bottom!==void 0&&(d.paddingBottom=be(c.value.bottom)),d});return()=>{const d=r.slots.default?r.slots.default():[],h={ref:f,class:u.value,style:S.value};return o.h("view",h,d)}}}}const{componentName:pi,create:bi}=ie("footer-bar"),io=bi(yi(pi));function vi(e,n){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(l,{slots:t,attrs:r}){const a=rt(),i=o.computed(()=>({[e]:!0})),u=a?Jt(a):null,s=o.computed(()=>{const w={};if(a&&u){if(l.padding){const _=Je(l.padding);Object.assign(u.contentPadding,_)}const S=en(a,u),d=tn(a,u);let h="";u.contentHeight?h=`${u.contentHeight}`:h=`${u.height}px`,w.height=h;let O=(u&&u.contentPadding&&u.contentPadding.top)??-1;(O>=0||S>0)&&(O=O<0?0:O,w.paddingTop=`${S+O}px`);let x=(u&&u.contentPadding&&u.contentPadding.bottom)??-1;(x>=0||d>0)&&(x=x<0?0:x,w.paddingBottom=`${d+x}px`);const b=(u&&u.contentPadding&&u.contentPadding.left)??-1;b>=0&&(w.paddingLeft=`${b}px`);const q=(u&&u.contentPadding&&u.contentPadding.right)??-1;return q>=0&&(w.paddingRight=`${q}px`),w}if(l.padding){const S=Je(l.padding);S.left&&(w.paddingLeft=`${S.left}px`),S.top&&(w.paddingTop=`${S.top}px`),S.right&&(w.paddingRight=`${S.right}px`),S.bottom&&(w.paddingBottom=`${S.bottom}px`)}return w}),c=o.ref(null),f=()=>{if(u&&c.value){const w=an(c.value);u.contentInnerHeight=w.height,u.contentInnerWidth=w.width}},m=He(f,120);let p=null;return o.onMounted(()=>{requestAnimationFrame(f),window.ResizeObserver&&c.value&&(p=new window.ResizeObserver(m),p.observe(c.value))}),o.onUnmounted(()=>{p&&(p.disconnect(),p=null)}),()=>{const w=l.tag??"view",S={...r,ref:c,class:i.value,style:s.value};return o.h(w,S,t)}}}}const{componentName:wi,create:Si}=ie("content"),so=Si(vi(wi)),bt="GroupStateKey",Ql=Symbol.for("GroupScopeKey");function sn(){return o.inject(Ql,!1)}function un(e=!0){o.provide(Ql,e)}function xi(e,n={}){Reflect.ownKeys(n).forEach(t=>{if(typeof t!="string")return;const r=n[t];Wt(r)||(e[t]=r)})}function Ti(e,n={}){const t={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};xi(t,n);const r=o.shallowRef(t),a=o.markRaw({layout:r,passport:0,order:{index:0}});return e.set(bt,a),a}function uo(e,n,l=-1,t=-1,r=!1,a,i,u){const s=e.get(bt);if(!s)return;const c=e.get("groupLayout")??{};l===-1&&(l=c.column??1),t===-1&&(t=c.gutter??0),a||(a=c.minItemWidth??-1),i||(i=c.maxItemWidth??-1);const f=me(a),m=me(i);u||(u=c.type??"grid");const p=()=>{const w=n===""||n===-1,S=me(n);let d=Ce(l);const h=me(t);if(!w){let b=(S-(d-1)*h)/d;for(;m!==-1&&b>m;)d++,b=(S-(d-1)*h)/d;for(;f!==-1&&d>1&&b<f;)d--,b=(S-(d-1)*h)/d}let O=!1;const x=s.layout;x.value.width=n,x.value.column!==d&&(x.value.column=d,O=!0),x.value.gutter!==h&&(x.value.gutter=h,O=!0),x.value.type!==u&&(x.value.type=u,O=!0),O&&o.triggerRef(x)};if(r)p();else{const w=++s.passport;setTimeout(()=>{w===s.passport&&p()},50)}}function cn(e,n=!1){let l;return n?l=e.getForParent(bt):l=e.get(bt),l.layout}function fn(e,n=!1){let l;return n?l=e.getForParent(bt):l=e.get(bt),l.order}function Jl(e,n=1){if(n==="stretch")return-1;const l=Ce(n);return l===-1?100:100*l/e}function dn(e,n,l=1,t=0,r){const a={};let i=0;r?i=me(r):i=Jl(n.column,l),i>0&&(a.width=`${i}%`);const u=Jl(n.column,t);u>0&&(a["margin-left"]=`${u}%`);const s=n.gutter/2;return s>0&&(a["padding-left"]=`${s}px`,a["padding-right"]=`${s}px`),a}function hn(e,n,l=1,t=0){if(l==="stretch"){const s=e.index%n.column,c=s+(n.column-s);return e.index=e.index+(c-s),{"grid-column":`${s+1} / -1`}}let r=Ce(l);if(r===-1){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}if(r>n.column){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}const a=Ce(t)%n.column;let i=(e.index+a)%n.column,u=i+r;return u>n.column?(i=0,u=i+r,e.index=e.index+(n.column-i)+r):e.index=e.index+a+r,a>0?{"grid-column":`${i+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}const er=Symbol("RollingStateKey");function Ci(e){o.provide(er,e)}function $i(){return o.inject(er,null)}function co(e){let n=0;const l=window.getComputedStyle(e,null);if(l.getPropertyValue("box-sizing")==="content-box"){const r=parseFloat(l.getPropertyValue("padding-top")),a=parseFloat(l.getPropertyValue("padding-bottom"));n=e.clientHeight-r-a}else n=e.offsetHeight;return n}function Ni(e){let n=co(e);if(n<=0){const l=e.cloneNode(!0),t=e.offsetWidth;l.style=`width: ${t}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(l),n=co(l),document.body.removeChild(l)}return n}function ki(e,n,l){const t=typeof e=="number"?e:parseInt(e),r=typeof n=="number"?n:parseInt(n),a=typeof l=="number"?l:parseInt(l);if(t<=0)return"1fr";const i=(t-(r-1)*a)/r;return i>0?`${i}px`:"1fr"}const Ei={...$e,...Ul,...Gl};function Ii(e,n,l){return{props:Ei,emits:["update:collapse","header-click"],setup(t,r){const a=to(t.prop??t.name,t,Xl),i=Ti(a,{type:t.type}),u=sn();un(!0);const s=t.rollingDisplay?$i():null,c=o.ref(null),f=o.computed(()=>t.rollingDisplay?s&&!s.disabled:!1),m=o.computed(()=>u&&a?cn(a,!0).value:null),p=o.getCurrentInstance(),w=(I,W=!1)=>{const J=p?.proxy;J&&typeof J.setNameValidateRules=="function"&&J.setNameValidateRules(I,!0,W)};o.watch([()=>t.rules,()=>t.pureDataRules],([I,W],[J,V])=>{if(I&&J){const H=o.toRaw(J),Q=o.toRaw(I),oe=Q?Reflect.ownKeys(Q):[];(H?Reflect.ownKeys(H):[]).forEach(fe=>{oe.includes(fe)||(Q[fe]=[])}),w(Q)}if(W&&V){const H=o.toRaw(V),Q=o.toRaw(W),oe=Q?Reflect.ownKeys(Q):[];(H?Reflect.ownKeys(H):[]).forEach(fe=>{oe.includes(fe)||(Q[fe]=[])}),w(Q,!0)}},{deep:!0});const S=e,d=o.computed(()=>{const I={};I.height=k.value;const W=u?fn(a,!0):null;if(m.value&&W){if(m.value.type==="grid"){const J=hn(W,m.value,t.span,t.offset);Object.assign(I,J)}else if(m.value.type==="flow"){const J=dn(W,m.value,t.span,t.offset,t.width);Object.assign(I,J)}}else if(t.width){const J=be(t.width);I.width=J}return I}),h=o.computed(()=>{const I=i.layout.value.type;return I==="grid"||I==="flow"?{[`${S}--${I}`]:!0,[`${S}--${I}-justify-${t.justify}`]:!0,[`${S}--${I}-align-${t.align}`]:!0,[`${S}--gutter`]:!0}:{[`${S}--${I}`]:!0,[`${S}--gutter`]:!0}}),O=o.computed(()=>{if(i.layout.value.type==="grid"){let W="";if(t.columnWidth)W=`repeat(auto-fill, ${t.columnWidth})`;else{const J=ki(N.value,i.layout.value.column,i.layout.value.gutter);W=`repeat(${i.layout.value.column}, ${J})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":W}}}),x=o.toRef(t,"gutter"),b=o.toRef(t,"column"),q=o.computed(()=>u||f.value?!0:ce(t.isWrap)),_=[],B=I=>{_.push(I)},D=()=>{let I=_.length;_.splice(0,I)},N=o.ref(-1),v=I=>{const W=an(I).width;W>0&&W!==N.value&&(N.value=W)};uo(a,N.value,b.value,x.value,!0,t.minItemWidth,t.maxItemWidth,t.type),t.autoLayout&&o.watch([N,b,x],([I,W,J])=>{i.order.index=0,uo(a,I,W,J,!1,t.minItemWidth,t.maxItemWidth,t.type)});const j=o.computed(()=>F.value?t.expandText??"":t.collapseText??""),y=o.computed(()=>({[`${e}__header-collapse-text`]:!0})),L=o.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!F.value,"is-collapse":F.value})),Y=o.ref(),R=o.ref(),k=o.computed(()=>z.value||be(t.height)||""),F=o.ref(!1),z=o.ref(""),X=o.ref(!1);let ee=-1;const P=(I,W=!0)=>{const J=Y.value;if(J&&F.value!==I){if(ee=ee===-1?Ni(J):ee,X.value=!0,W)if(J.style["will-change"]="height",J.ontransitionend=function(){J.ontransitionend=null,this.style["will-change"]="auto",I||(z.value="",X.value=!1)},I){let V=0;t.collapseHeight?V=t.collapseHeight:R.value&&R.value.classList.contains(`${e}__header`)&&(V=R.value.offsetHeight),z.value=`${ee}px`,o.nextTick(()=>{z.value=`${V}px`})}else z.value=`${ee}px`;else if(I){let V=0;t.collapseHeight?V=t.collapseHeight:R.value&&R.value.classList.contains(`${e}__header`)&&(V=R.value.offsetHeight),z.value=`${V}px`}else X.value=!1,z.value=`${ee}px`;F.value=I,r.emit("update:collapse",I)}};o.watch(()=>t.collapse,I=>{P(I)});const te=I=>{r.emit("header-click",I)},E=()=>{$()},$=I=>{I=I??!F.value,P(I)};xe({toggleCollapse:$,doLayout:()=>{_[0]&&(v(_[0]),uo(a,N.value,b.value,x.value,!0,t.minItemWidth,t.maxItemWidth,t.type))}});let A=null,C=!0;const K=I=>{if(t.rules){const W=o.toRaw(t.rules);w(W)}if(t.pureDataRules){const W=o.toRaw(t.pureDataRules);w(W,!0)}if(lt&&(I&&P(ce(t.collapse),!1),t.autoLayout&&Array.isArray(_)&&_.length>0)){const W=_[0];if(v(W),window.ResizeObserver){const J=He(()=>v(W),120);A=new window.ResizeObserver(J),A.observe(W)}}},Z=()=>{A?.disconnect(),A=null},le=!f.value||s?.acquire();le&&(c.value=f.value?!0:null),o.onMounted(()=>{if(le&&(K(C),C=!1),f.value&&s){let I=null,W=s.initialHeight;s.observe(Y.value,J=>{if(J!==c.value)if(J)c.value=!0,F.value||(z.value=""),I=setTimeout(()=>{I=null,c.value!==!1&&(K(C),C=!1)},100);else{if(I!==null&&clearTimeout(I),c.value=!1,!F.value)if(C)z.value=s.initialHeight;else{let V=co(Y.value);V<=0?z.value=W:(z.value=`${V}px`,W=z.value)}C||Z()}})}}),o.onUnmounted(()=>{A?.disconnect(),s&&s.unobserve(Y.value)});const G=(I="right")=>{const W=[];if(j.value){const H={class:y.value},Q=o.h("span",H,[j.value]);W.push(Q)}const J={class:L.value},V=l(t.collapseIcon,J);return V&&W.push(V),W.length>0?o.h("div",{class:{[`${S}__header-collapse`]:!0,[`is-${I}`]:!0},onClick:E},W):null},U=(I,W,J,V)=>{const H={...h.value};if(W===0&&(H[`${S}__first`]=!0),J>=V-1&&(H[`${S}__last`]=!0),q.value===!1){const Q=r.attrs.class;Q&&(H[`${Q}`]=!0)}return o.h("div",{ref:B,key:`${W}`,class:H,style:O.value},I)};return()=>{if(f.value&&c.value!==!0){const H=t.tag||"div";return o.h(H,{ref:Y,prop:t.name,class:{[`${S}`]:!0,"is-collapse":X.value},style:d.value},[])}i.order.index=0;const I=[];let W=0;if(r.slots.header){const H={key:`${W++}`,ref:R,class:{[`${S}__header`]:!0,[`${S}__first`]:!0},onClick:te},Q=o.h("div",H,[r.slots.header()]);I.push(Q)}else{const H=[],Q=t.collapsePosition==="left";if(Q&&t.showCollapse){const oe=G("left");oe&&H.push(oe)}if(t.title||r.slots.title){if(t.showMark){const oe={class:{[`${S}__header-mark`]:!0}};t.markColor&&(oe.style={background:t.markColor});const se=o.h("div",oe);H.push(se)}if(r.slots.title){const oe=o.h("div",{class:{[`${S}__header-title`]:!0}},[r.slots.title()]);H.push(oe)}else if(t.title){const oe=o.h("div",{class:{[`${S}__header-title`]:!0}},[t.title]);H.push(oe)}}if(r.slots.toolbar&&H.push(r.slots.toolbar()),!Q&&t.showCollapse){const oe=G("right");oe&&H.push(oe)}if(H.length>0){const oe={key:`${W++}`,ref:R,class:{[`${S}__header`]:!0,[`${S}__first`]:!0},onClick:te},se=o.h("div",oe,H);I.push(se)}}D();const J=r.slots.default?r.slots.default():[],V=i.layout.value.type;if(V==="grid"){const H=U(J,W++,0,J.length);I.push(H)}else if(V==="flow"){const H=U(J,W++,0,J.length);I.push(H)}else for(let H=0;H<J.length;H++){const Q=J[H],oe=U([Q],W++,H,J.length);I.push(oe)}if(q.value){const H=t.tag||"div";return o.h(H,{ref:Y,prop:t.name,class:{[`${S}`]:!0,"is-collapse":X.value},style:d.value},[I])}else return I}}}}const{componentName:Oi,create:Di,scope:Vi}=ie("group"),fo=Di(Ii(Oi,Vi,(e,n)=>(e=e??Ie.ArrowUp,o.h(T.ElIcon,n,{default:()=>[o.h(e)]}))));function Ri(e){return e===window}const Fi=/matrix\((.+)\)/,ho=e=>{const n=o.unref(e);if(!n)return{x:0,y:0};if(Ri(n))return{x:0,y:0};let l=0,t=0,r=n;for(;r!==null;)l+=r.offsetLeft,t+=r.offsetTop,r=r.offsetParent;let a=0,i=0,u=0,s=0;for(r=n;r!==document;){i+=r.scrollTop,a+=r.scrollLeft;const{transform:c}=window.getComputedStyle(r);if(c){const f=Fi.exec(c);if(f){let p=f[1].split(/\s*,\s*/);p.length==6&&(u+=Number(p[4]),s+=Number(p[5]))}}r=r.parentNode}return l-=a,t-=i,l+=u,t+=s,{x:l,y:t}};class Ai{watchedListeners=[];add(n){this.watchedListeners.push(n)}remove(n){const l=this.watchedListeners.indexOf(n);l!==-1&&this.watchedListeners.splice(l,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(n=>{try{n()}catch{}})}}class Mi{monitorRegister=new WeakMap;watch(n,l){let t=n.parentNode;const r=document.body.parentNode;for(;t&&t!==r;){let a=this.monitorRegister.get(t);a||(a=new Ai,t.addEventListener("scroll",a.listen),t===document.body&&t.addEventListener("resize",a.listen),this.monitorRegister.set(t,a)),a.add(l),t=t.parentNode}}unwatch(n,l){let t=n.parentNode;const r=document.body.parentNode;for(;t&&t!==r;){let a=this.monitorRegister.get(t);a&&(a.remove(l),a.size()===0&&(this.monitorRegister.delete(t),t.removeEventListener("scroll",a.listen),t===document.body&&t.removeEventListener("resize",a.listen))),t=t.parentNode}}}const Dt=new Mi,tr={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:Li,create:Bi}=ie("price"),qi=Bi({props:{...tr},setup(e){const n=o.computed(()=>({[Li]:!0})),l=o.computed(()=>e.needSymbol?e.symbol:""),t=o.computed(()=>kt(e.price)==0?"":zt(e.price,e.decimalLength,!0,Ce(e.digits),e.separator)),r=o.computed(()=>{let i=t.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(0,u)}),a=o.computed(()=>{let i=t.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(u+1)});return{classes:n,showSymbol:l,intText:r,decimalText:a}}}),Ue=(e,n)=>{const l=e.__vccOpts||e;for(const[t,r]of n)l[t]=r;return l},Pi=["innerHTML"],_i=["innerHTML"];function ji(e,n,l,t,r,a){return o.openBlock(),o.createElementBlock("view",{class:o.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(o.openBlock(),o.createElementBlock("view",{key:0,class:o.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Pi)):o.createCommentVNode("",!0),o.createElementVNode("view",{class:o.normalizeClass(`fox-price--${e.size}`)},o.toDisplayString(e.intText),3),e.decimalText.length!=0?(o.openBlock(),o.createElementBlock("view",{key:1,class:o.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):o.createCommentVNode("",!0),o.createElementVNode("view",{class:o.normalizeClass(`fox-price--decimal-${e.size}`)},o.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(o.openBlock(),o.createElementBlock("view",{key:2,class:o.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,_i)):o.createCommentVNode("",!0)],2)}const gn=Ue(qi,[["render",ji]]),{componentName:go,create:zi}=ie("hint-text"),Hi=zi({components:{Price:gn},props:{...tr,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,n){const l=o.ref({top:null,right:null,bottom:null,left:null}),t=o.ref({x:0,y:0}),r=o.ref(0),a=o.ref(0),i=o.ref(e.placement),u=o.ref(!1),s=o.ref(null),c=(y,L,Y,R,k,F)=>{const z=document.documentElement.clientWidth||document.body.clientWidth,X=document.documentElement.clientHeight||document.body.clientHeight,ee=y.split("-");let P=[];ee[0]==="top"?P=["top","bottom","right","left"]:ee[0]==="bottom"?P=["bottom","top","right","left"]:ee[0]==="left"?P=["left","top","bottom","right"]:ee[0]==="right"&&(P=["right","top","bottom","left"]);const te={top:null,right:null,bottom:null,left:null},E=[];for(let $=0;$<P.length;$++){const M=P[$];if(E[0]=M,ee[1]&&(E[1]=ee[1]),M==="top"){const A=L.y-F-e.arrowSize-e.offset;if(A>=0){te.top=A;let C=0;ee[1]==="start"?C=L.x:ee[1]==="end"?C=L.x+Y-k:C=L.x+Y/2-k/2;const K=z-C-k;K<0?(C+=K,m.value=-K):m.value=0,te.left=C<0?0:C;break}}else if(M==="bottom"){const A=L.y+R+e.arrowSize+e.offset;if(A+F<=X){te.top=A;let C=0;ee[1]==="start"?C=L.x:ee[1]==="end"?C=L.x+Y-k:C=L.x+Y/2-k/2;const K=z-C-k;K<0?(C+=K,m.value=-K):m.value=0,te.left=C<0?0:C;break}}else if(M==="left"){const A=L.x-k-e.arrowSize-e.offset;if(A>=0){te.left=A;let C=0;ee[1]==="start"?C=L.y:ee[1]==="end"?C=L.y+R-F:C=L.y+R/2-F/2,te.top=C<0?0:C;break}}else if(M==="right"){const A=L.x+Y+e.arrowSize+e.offset;if(A+k<=z){te.left=A;let C=0;ee[1]==="start"?C=L.y:ee[1]==="end"?C=L.y+R-F:C=L.y+R/2-F/2,te.top=C<0?0:C;break}}}return{bestPlacement:E.join("-"),bestInsetRect:te}},f=(y,L,Y=10)=>{if(!lt||L===!1||!y)return;t.value=ho(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const R=s.value.offsetHeight,k=s.value.offsetWidth,{bestPlacement:F,bestInsetRect:z}=c(e.placement,t.value,r.value,a.value,k,R);i.value=F,l.value=z,u.value=!0},m=o.ref(0),p=He(()=>{f(e.message,e.visible)},10),w=o.ref(e.visible);o.watch(()=>e.visible,y=>{w.value=y});const S=o.computed(()=>w.value&&d.value),d=o.ref(!0),h=He(y=>{const L=y[0];L&&(d.value=L.isIntersecting)},10),O=new IntersectionObserver(h);o.watch([()=>e.message,()=>e.visible],([y,L])=>{setTimeout(()=>{f(e.message,e.visible)},0)}),o.onMounted(()=>{setTimeout(()=>{f(e.message,e.visible)},0),Dt.watch(e.reference,p),O.observe(e.reference)}),o.onBeforeUnmount(()=>{Dt.unwatch(e.reference,p),O.unobserve(e.reference),O.disconnect()});const x=o.computed(()=>{const y={[go]:!0};return i.value.startsWith("top")?y["is-top"]=!0:i.value.startsWith("right")?y["is-right"]=!0:i.value.startsWith("bottom")?y["is-bottom"]=!0:i.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}),b=o.computed(()=>{const y={};l.value.top!==null&&(y.top=`${l.value.top}px`),l.value.right!==null&&(y.right=`${l.value.right}px`),l.value.bottom!==null&&(y.bottom=`${l.value.bottom}px`),l.value.left!==null&&(y.left=`${l.value.left}px`),e.autoFit&&(y["min-width"]=`${r.value}px`);const L=document.documentElement.clientWidth||document.body.clientWidth;return y["max-width"]=`${L}px`,u.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=o.computed(()=>{const y=[`${go}__content`];return e.customTextClass&&y.push(e.customTextClass),y}),_=o.computed(()=>{const y={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(y,e.customTextStyle),y}),B=o.computed(()=>({[`${go}__arrow`]:!0})),D=o.computed(()=>{const y={};return e.showArrow?(y.width=`${e.arrowSize}px`,y.height=`${e.arrowSize}px`,i.value==="top"?(y.left="50%",y.bottom=`-${e.arrowSize}px`,y.transform=" translate(-50%, 0%)"):i.value==="top-start"?(y.left=`${e.arrowOffset+m.value}px`,y.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(y.right=`${e.arrowOffset-m.value}px`,y.bottom=`-${e.arrowSize}px`):i.value==="right"?(y.left=`-${e.arrowSize}px`,y.top="50%",y.transform=" translate(0%, -50%)"):i.value==="right-start"?(y.left=`-${e.arrowSize}px`,y.top=`${e.arrowOffset}px`):i.value==="right-end"?(y.left=`-${e.arrowSize}px`,y.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(y.left="50%",y.top=`-${e.arrowSize}px`,y.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(y.left=`${e.arrowOffset+m.value}px`,y.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(y.right=`${e.arrowOffset-m.value}px`,y.top=`-${e.arrowSize}px`):i.value==="left"?(y.right=`-${e.arrowSize}px`,y.top="50%",y.transform=" translate(0%, -50%)"):i.value==="left-start"?(y.right=`-${e.arrowSize}px`,y.top=`${e.arrowOffset}px`):i.value==="left-end"&&(y.right=`-${e.arrowSize}px`,y.bottom=`-${e.arrowOffset}px`),y):{display:"none"}}),N=o.computed(()=>S.value&&e.closeOnClick),v=o.computed(()=>{const y={};return e.zIndex&&(y["z-index"]=`${e.zIndex}`),y});return{show:S,tipRef:s,classes:x,styles:b,textClasses:q,textStyles:_,arrowClasses:B,arrowStyles:D,overlayShow:N,overlayStyle:v,onClickOverlay:()=>{w.value=!1,n.emit("update:visible",!1)}}}}),Ki=["innerHTML"];function Wi(e,n,l,t,r,a){const i=o.resolveComponent("Price");return o.openBlock(),o.createElementBlock(o.Fragment,null,[e.overlayShow?(o.openBlock(),o.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:o.normalizeStyle(e.overlayStyle),onClick:n[0]||(n[0]=(...u)=>e.onClickOverlay&&e.onClickOverlay(...u))},null,4)):o.createCommentVNode("",!0),o.withDirectives(o.createElementVNode("div",{ref:"tipRef",class:o.normalizeClass(e.classes),style:o.normalizeStyle(e.styles)},[o.createElementVNode("div",{class:o.normalizeClass(e.textClasses),style:o.normalizeStyle(e.textStyles)},[e.type=="number"?(o.openBlock(),o.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(o.openBlock(),o.createElementBlock("span",{key:1,innerHTML:e.message},null,8,Ki))],6),o.createElementVNode("div",{class:o.normalizeClass(e.arrowClasses),style:o.normalizeStyle(e.arrowStyles)},null,6)],6),[[o.vShow,e.show]])],64)}const Vt=Ue(Hi,[["render",Wi]]);class nr{seed=new Date().getTime();constructor(n){this.seed=n??new Date().getTime()}get(){let n=this.seed++;return this.seed<0&&(this.seed=0),n}}const mo={},Yi=new nr,vt=new Map,mn=e=>{if(e){const n=document.getElementById(e);vt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of vt.keys()){const l=document.getElementById(n);l&&l.parentNode?.removeChild(l)}vt.clear()}},Ui=e=>{e.unmount=mn;const n=document.getElementById(e.id);if(n){const l=vt.get(e.id);l?e={...mo,...l,...e}:e={...mo,...e},e.transition=!1;const t=o.createVNode(Vt,e);o.render(t,n)}return e.id},Gi=e=>{e.unmount=mn;let n=e.id??`hinttext_${Yi.get()}`;e={...mo,...e},e.id=n,vt.set(n,e);const l=document.createElement("div");l.id=e.id;const t=o.createVNode(Vt,e);return o.render(t,l),document.body.appendChild(l),n},Xi=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Be={show(e,n,l={},t=!0){Xi(n);const r=l.id;return r&&vt.has(r)?Ui({...l,message:n,reference:e}):(t&&mn(),Gi({...l,message:n,reference:e}))},hide(e){mn(e)},install(e){e.config.globalProperties.$hintText=Be}};function Zi(e,n,l,t=!1){return{inheritAttrs:!0,props:{...$e,...Ve},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;Ee({componentName:e,validate:!1},i);const u=rt(),s=sn();un(!1);const c=o.computed(()=>s&&u?cn(u,!1).value:null),f=e,m=o.ref(null),p=o.computed(()=>{const V={[f]:!0,[`${f}__gutter`]:c.value&&c.value.type!=="flow",[`${f}__stretch`]:r.span==="stretch",[`${f}__input--border`]:ce(r.hasBorder)};if(V[r.errorMarkClass]=!!F.value,V[r.warnMarkClass]=!!R.value,V[r.infoMarkClass]=!!L.value,typeof m.value=="function"){const H=m.value(i);V[H]=!0}else if(typeof m.value=="string"){const H=m.value;V[H]=!0}return V}),w=o.ref(null),S=o.computed(()=>{const V={};if(r.width)r.width!=="auto"&&(V.width=be(r.width));else{const H=s&&u?fn(u,!1):null;if(c.value&&H){if(c.value.type==="grid"){const Q=hn(H,c.value,r.span,r.offset);Object.assign(V,Q)}else if(c.value.type==="flow"){const Q=dn(H,c.value,r.span,r.offset,r.width);Object.assign(V,Q)}}}if(typeof w.value=="function"){const H=w.value(i);H&&Object.assign(V,H)}else if(w.value&&typeof w.value=="object"){const H=w.value;Object.assign(V,H)}return V}),d=o.ref(null),h=o.computed({get:()=>d.value??ce(r.isRequired),set:V=>{d.value=V}}),O=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",x=Ae(o.toRef(r,"labelPosition"),"labelPosition",_e.Near),b=o.computed(()=>x&&x.value==="top"?"top":x&&x.value==="right"?"right":"left"),q=o.computed(()=>({[`${f}__main`]:!0,[`${f}__main--${b.value}`]:!0})),_=o.computed(()=>({label:!0,[`label--${b.value}`]:!0})),B=Ae(o.toRef(r,"labelWidth"),"labelWidth",_e.Near),D=o.computed(()=>B&&B.value?{width:be(B.value)}:{}),N=o.computed(()=>({"label--string":!0,"label--required":h.value})),v=o.computed(()=>({content:!0,[r.contentClass]:!0})),j=o.computed(()=>({...r.contentStyle})),y=o.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});xe({setRequired(V){h.value=V},setErrorTip(V){y.errorTip=V},setErrorIcon(V){y.errorIcon=V},setWarnTip(V){y.warnTip=V},setWarnIcon(V){y.warnIcon=V},setInfoTip(V){y.infoTip=V},setInfoIcon(V){y.infoIcon=V},setCustomClassName(V){m.value=V},setCustomStyle(V){w.value=V}});const L=o.computed(()=>r.infoTip||y.infoTip),Y=o.computed(()=>r.infoIcon||y.infoIcon),R=o.computed(()=>r.warnTip||y.warnTip),k=o.computed(()=>r.warnIcon||y.warnIcon),F=o.computed(()=>r.errorTip||y.errorTip),z=o.computed(()=>r.errorIcon||y.errorIcon),X=o.computed(()=>F.value?"error":R.value?"warn":L.value?"info":""),ee=()=>X.value.length>0,P=o.computed(()=>X.value==="error"?F.value:X.value==="warn"?R.value:X.value==="info"?L.value:""),te=o.computed(()=>X.value==="error"?z.value:X.value==="warn"?k.value:X.value==="info"?Y.value:null),E=o.computed(()=>{const V={[`${f}__tip`]:!0,[`${f}__tip--${X.value}`]:!0,[`${f}--animate`]:!0};return X.value==="error"&&r.errorClass?V[`${r.errorClass}`]=!0:X.value==="warn"&&r.warnClass?V[`${r.warnClass}`]=!0:X.value==="info"&&r.infoClass&&(V[`${r.infoClass}`]=!0),V}),$=o.computed(()=>{const V={};return x&&x.value==="top"||!O()?V["padding-left"]="0px":B&&B.value&&(V["padding-left"]=be(B.value)),V}),M=o.ref();let A="";o.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([V,H,Q,oe])=>{M.value&&(V&&!he(H)?A?l.show(M.value,H,{...oe,id:A,type:Q},!0):A=l.show(M.value,H,{...oe,type:Q},!0):l.hide(A))});let C=null;const K=()=>{C||!M.value||(C=new IntersectionObserver(V=>{let H=!1;for(let Q of V)if(Q.intersectionRatio>0){H=!0,H&&a.emit("appear",Q);break}H||a.emit("disappear")}),C.observe(M.value))},Z=()=>{!C||!M.value||(C.unobserve(M.value),C=null)};o.watch(()=>ce(r.appearListen),V=>{V?K():Z()}),o.onMounted(()=>{ce(r.appearListen)&&K()}),o.onUnmounted(Z);const le=()=>{if(!O())return null;const V=[],H=a.slots?.label?.()??r.label,Q={class:N.value},oe=o.h("div",Q,[H]);if(V.push(oe),a.slots.fixedPreTip){const fe=a.slots.fixedPreTip();V.push(fe)}const se={class:_.value,style:D.value};return o.h("div",se,V)},G=()=>{const V=[];if(a.slots.prepend){const Q=a.slots.prepend();V.push(Q)}if(a.slots.default){const Q=a.slots.default();V.push(Q)}if(a.slots.append){const Q=a.slots.append();V.push(Q)}if(a.slots.fixedTip){const Q={class:[`${f}__fixed-tip`]},oe=o.h("div",Q,[a.slots.fixedTip()]);V.push(oe)}const H={ref:M,class:v.value,style:j.value};return o.h("div",H,V)},U=()=>{const V=te.value;return V?typeof V=="function"?o.h("div",{class:"fox-item__tip--icon"},[V()]):o.h("div",{class:"fox-item__tip--icon"},[o.h(V)]):null},I=()=>{const V=P.value;return V?typeof V=="function"?o.h("div",{class:"fox-item__tip--text"},[V()]):o.h("div",{class:"fox-item__tip--text"},[V]):null},W=()=>{if(!ee())return null;const V=[],H=U();H&&V.push(H);const Q=I();Q&&V.push(Q);const oe={class:E.value,style:$.value};return o.h("div",oe,V)},J=()=>a.slots?.hide?.()??null;return()=>{const V=[],H=[],Q=le();Q&&H.push(Q);const oe=G();oe&&H.push(oe);const se={class:q.value},fe=o.h("div",se,H);V.push(fe);const pe=W();pe&&V.push(pe);const ye=J();ye&&V.push(ye);const ke={class:p.value,style:S.value,prop:r.prop};return o.h("div",ke,V)}}}}const{componentName:Qi,create:Ji,scope:es}=ie("item"),Ne=Ji(Zi(Qi,es,Be,!1)),yo={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function ts(e,n){return{props:{...yo},setup(l,t){const r=rt(),a=sn();un(!1);const i=o.computed(()=>a&&r?cn(r,!1).value:null),u=e,s=o.computed(()=>({[u]:!0,[`${u}__gutter`]:i.value&&i.value.type!=="flow",[`${u}__stretch`]:l.span==="stretch"})),c=o.computed(()=>{const f={};if(l.width)l.width!=="auto"&&(f.width=be(l.width));else{const m=a&&r?fn(r,!1):null;if(i.value&&m)if(i.value.type==="grid"){const p=hn(m,i.value,l.span,l.offset);Object.assign(f,p)}else if(i.value.type==="flow"){const p=dn(m,i.value,l.span,l.offset,l.width);Object.assign(f,p)}else return l.width&&(f.width=be(l.width)),f}return f});return()=>{const f={class:s.value,style:c.value};return t.slots&&typeof t.slots.default=="function"?o.h("div",f,t.slots.default()):o.h("div",f)}}}}const{componentName:ns,create:os}=ie("slot-item"),yn=os(ts(ns)),po={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"},divide:{type:[Boolean,String],required:!1,default:!1},gutter:{type:[String,Number],required:!1}};function ls(e,n){return{props:{...po},setup(l,t){const r=e,a=o.computed(()=>({[r]:!0,[`${r}__stretch`]:l.span==="stretch",[`${r}__${l.align}`]:!0})),i=rt(),u=sn();un(!1);const s=o.computed(()=>{const c={};if(l.width)l.width!=="auto"&&(c.width=be(l.width));else if(u&&i){const f=cn(i,!1),m=fn(i,!1);if(f.value&&m)if(f.value.type==="grid"){const p=hn(m,f.value,l.span,l.offset);Object.assign(c,p)}else if(f.value.type==="flow"){const p=dn(m,f.value,l.span,l.offset,l.width);Object.assign(c,p)}else l.width&&(c.width=be(l.width))}return l.gutter&&(c.gap=be(l.gutter)),c});return()=>{const c=[];if(t.slots.default){const m=t.slots.default();if(l.divide)for(let p=0;p<m.length;p++){if(p>0){const w=o.h("div",{class:{[`${r}__divide`]:!0}});c.push(w)}c.push(m[p])}else Reflect.apply([].push,c,m)}const f={class:a.value,style:s.value};return o.h("div",f,c)}}}}const{componentName:rs,create:as}=ie("row-item"),pn=as(ls(rs));function is(e,n){const l=document.createRange();l.setStart(e,0),l.setEnd(e,e.childNodes.length);const t=l.getBoundingClientRect().width;if(t>0){n(t);return}e.classList.add("is-selectable"),setTimeout(()=>{l.setStart(e,0),l.setEnd(e,e.childNodes.length);const r=l.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(r)},500)}const ss={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 us(e,n,l,t=!1){return{props:{...ss},emits:["click"],setup(r,a){const i=o.ref(null),u=o.computed(()=>{const b={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(b[`${e}--${r.type??"default"}`]=!0),r.size&&(b[`${e}--${r.size}`]=!0),b}),s=o.computed(()=>{const b={},q=r.textColor??r.color;return q&&(b.color=q),b}),c=(b,q)=>{let _=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const B=r.highlightFilter;if(b.indexOf(B)!==-1){const N=b.replace(new RegExp(B,"g"),`<span>${B}</span>`);q.innerHTML=N,q.class["is-highlight"]=!0,_=o.h(r.tag,q)}}else if(typeof r.highlightFilter=="function"){const B=r.highlightFilter(b);B&&(q.innerHTML=B,q.class["is-highlight"]=!0,_=o.h(r.tag,q))}return _},f=b=>{a.emit("click",b)};let m="";const p=()=>{const b=i.value;if(!b)return;const q=b.clientWidth;is(b,_=>{const B=b.innerHTML??"";he(B)||_<q||(m?l?.show(b,B,{type:"text",id:m,showArrow:r.showArrow},!0):m=l?.show(b,B,{type:"text",showArrow:r.showArrow},!0)??"")})},w=()=>{m&&l?.hide(m)};let S=null;const d=b=>{S||(S=setTimeout(()=>{p(),S=null},r.showAfter??0))},h=b=>{S&&(clearTimeout(S),S=null),setTimeout(()=>{w()},r.hideAfter??0)},O=()=>{const b=i.value;b&&(b.addEventListener("mouseover",d),b.addEventListener("mouseleave",h))},x=()=>{const b=i.value;b&&(b.removeEventListener("mouseover",d),b.removeEventListener("mouseleave",h))};return o.onMounted(()=>{!ce(r.showOverflowTooltip)||!l||O()}),o.onBeforeUnmount(()=>{!ce(r.showOverflowTooltip)||!l||x()}),()=>{const b={onClick:f,class:u.value,style:s.value,ref:i};let q=null;if(ce(r.numberFormat)&&typeof a.slots.default=="function"){const N=a.slots.default();if(Array.isArray(N)&&N.length===1){const v=N[0].type.toString();if(v==="Symbol(Text)"||v==="Symbol(v-txt)"){const j=Ce(r.digits),y=Ce(r.decimalLength),L=ce(r.autoPadding);let Y=`${N[0].children}`,R=Y.split("").reverse().join("");R=zt(R,y,L,j,r.separator),Y=R.split("").reverse().join(""),r.highlightFilter!==void 0&&(q=c(Y,b)),q||(b.innerHTML=Y,q=o.h(r.tag,b))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const N=a.slots.default();if(Array.isArray(N)&&N.length===1){const v=N[0].type.toString();if(v==="Symbol(Text)"||v==="Symbol(v-txt)"){const j=`${N[0].children}`;q=c(j,b),q||(b.innerHTML=j,q=o.h(r.tag,b))}}}q||(q=o.h(r.tag,b,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return q;let B=null;if(r.icon){const N={[`${e}__mark-wrap`]:!0};r.type&&(N[`${e}__mark-wrap--${r.type}`]=!0);const v={},j=r.color;j&&(v.color=j);const y={onClick:f,class:N,style:v};B=o.h("view",y,o.h(r.icon))}else if(a.slots.mark){const N={[`${e}__mark-wrap`]:!0};r.type&&(N[`${e}__mark-wrap--${r.type}`]=!0);const v={},j=r.color;j&&(v.color=j);const y={onClick:f,class:N,style:v};B=o.h("view",y,{default:a.slots.mark})}else{const N={[`${e}__mark`]:!0};r.type&&(N[`${e}__mark--${r.type??"default"}`]=!0);const v={},j=r.color;j&&(v["background-color"]=j);const y={onClick:f,class:N,style:v};B=o.h("view",y)}const D={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return o.h("view",D,[B,q])}}}}const{componentName:cs,create:fs,scope:ds}=ie("text"),bn=fs(us(cs,ds,Be,!1)),hs={visible:{type:Boolean},reference:{type:Object},referenceInset:{type:Object},width:{type:String},offset:{type:Number,default:()=>6},placement:{type:String,default:()=>"top-start"},autoFit:{type:Boolean,default:()=>!0},title:{type:String},effect:{type:String,default:()=>"light"},showArrow:{type:Boolean,default:()=>!0},arrowSize:{type:Number,default:()=>14},arrowOffset:{type:Number,default:()=>20},showOverlay:{type:Boolean,default:()=>!0},closeOnClick:{type:Boolean,default:()=>!0},zIndex:{type:[String,Number]},customClass:{type:[String]},customStyle:{type:[Object]},leaveHide:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},teleportDisable:{type:Boolean,default:()=>!1}};function gs(e,n,l=!1){return{props:{...hs},emits:["update:visible"],setup(t,{emit:r,slots:a,expose:i}){const u=o.ref({top:null,right:null,bottom:null,left:null}),s=o.ref(0),c=o.ref(0),f=o.ref(0),m=o.ref(0),p=o.ref(t.placement),w=o.ref(!1),S=o.ref(!1),d=o.ref(null),h=()=>typeof t.reference=="string"?document.querySelector(t.reference):t.reference,O=(P,te,E,$,M,A,C,K=!0)=>{const Z=document.documentElement.clientWidth||document.body.clientWidth,le=document.documentElement.clientHeight||document.body.clientHeight,G=P.split("-");let U=[];K?G[0]==="top"?U=["top","bottom","right","left"]:G[0]==="bottom"?U=["bottom","top","right","left"]:G[0]==="left"?U=["left","top","bottom","right"]:G[0]==="right"&&(U=["right","top","bottom","left"]):U=[P[0]];const I={top:null,right:null,bottom:null,left:null},W=[];for(let J=0;J<U.length;J++){const V=U[J];if(W[0]=V,G[1]&&(W[1]=G[1]),V==="top"){const H=E-C-t.arrowSize/2-t.offset;if(H>=0){I.top=H;let Q=0;G[1]==="start"?Q=te:G[1]==="end"?Q=te+$-A:Q=te+$/2-A/2;const oe=Z-Q-A;oe<0?(Q+=oe,b.value=-oe):b.value=0,I.left=Q<0?0:Q;break}}else if(V==="bottom"){const H=E+M+t.arrowSize/2+t.offset;if(H+C<=le){I.top=H;let Q=0;G[1]==="start"?Q=te:G[1]==="end"?Q=te+$-A:Q=te+$/2-A/2;const oe=Z-Q-A;oe<0?(Q+=oe,b.value=-oe):b.value=0,I.left=Q<0?0:Q;break}}else if(V==="left"){const H=te-A-t.arrowSize/2-t.offset;if(H>=0){I.left=H;let Q=0;G[1]==="start"?Q=E:G[1]==="end"?Q=E+M-C:Q=E+M/2-C/2,I.top=Q<0?0:Q;break}}else if(V==="right"){const H=te+$+t.arrowSize/2+t.offset;if(H+A<=Z){I.left=H;let Q=0;G[1]==="start"?Q=E:G[1]==="end"?Q=E+M-C:Q=E+M/2-C/2,I.top=Q<0?0:Q;break}}}return{bestPlacement:W.join("-"),bestInsetRect:I}},x=()=>{const P=t.visible,te=t.autoFit;if(!lt||P===!1)return;if(t.reference){const C=h(),K=ho(C);s.value=K.x,c.value=K.y,f.value=C.offsetWidth,m.value=C.offsetHeight}else t.referenceInset&&(s.value=t.referenceInset.left,c.value=t.referenceInset.top,f.value=t.referenceInset.right-t.referenceInset.left,m.value=t.referenceInset.bottom-t.referenceInset.top);const E=d.value.offsetWidth,$=d.value.offsetHeight,{bestPlacement:M,bestInsetRect:A}=O(t.placement,s.value,c.value,f.value,m.value,E,$,te);p.value=M,u.value=A},b=o.ref(0),q=He(()=>{x()},10),_=o.ref(t.visible);o.watch([()=>t.visible],([P])=>{_.value=P,P?(w.value=P,setTimeout(()=>{x(),S.value=!0},0)):S.value=!1});const B=o.computed(()=>_.value&&D.value),D=o.ref(!0),N=He(P=>{const te=P[0];te&&(D.value=te.isIntersecting)},10),v=new IntersectionObserver(N);o.watch([()=>t.reference,()=>t.referenceInset],([P,te],[E,$])=>{!P&&!te||(setTimeout(()=>{x()},0),t.autoFit&&(E&&(Dt.unwatch(E,q),v.unobserve(E)),P&&(Dt.watch(P,q),v.observe(P))))},{immediate:!0}),o.onBeforeUnmount(()=>{t.reference&&(Dt.unwatch(t.reference,q),v.unobserve(t.reference),v.disconnect())});const j=o.computed(()=>{const P={[e]:!0};return p.value.startsWith("top")?P["is-top"]=!0:p.value.startsWith("right")?P["is-right"]=!0:p.value.startsWith("bottom")?P["is-bottom"]=!0:p.value.startsWith("left")&&(P["is-left"]=!0),P[`is-${t.effect}`]=!0,!S.value&&B.value&&(P["is-opacity"]=!0),S.value&&B.value&&(P["is-show"]=!0),B.value||(P["is-hide"]=!0),t.customClass&&typeof t.customClass=="string"&&(P[`${t.customClass}`]=!0),P}),y=o.computed(()=>{const P={};return u.value.top!==null&&(P.top=`${u.value.top}px`),u.value.right!==null&&(P.right=`${u.value.right}px`),u.value.bottom!==null&&(P.bottom=`${u.value.bottom}px`),u.value.left!==null&&(P.left=`${u.value.left}px`),t.width&&(P.width=t.width),t.zIndex&&(P["z-index"]=`${t.zIndex}`),t.customStyle&&typeof t.customStyle=="object"&&Object.assign(P,t.customStyle),P}),L=()=>{_.value=!1,r("update:visible",!1)},Y=()=>{if(!t.showOverlay)return null;const P={class:`${e}__overlay`,onClick:L};return o.h("div",P)},R=()=>{let P=null;return a.title?P=o.h("div",{class:`${e}__title`},{default:a.title}):t.title&&(P=o.h("div",{class:`${e}__title`},[t.title])),P},k=o.computed(()=>({[`${e}__arrow`]:!0})),F=o.computed(()=>{const P={};return t.showArrow?(P.width=`${t.arrowSize}px`,P.height=`${t.arrowSize}px`,p.value==="top"?(P.left="50%",P.bottom="0",P.transform="translate(-50%, 50%)"):p.value==="top-start"?(P.left=`${t.arrowOffset+b.value}px`,P.bottom="0",P.transform="translate(-50%, 50%)"):p.value==="top-end"?(P.right=`${t.arrowOffset-b.value}px`,P.bottom="0",P.transform="translate(-50%, 50%)"):p.value==="right"?(P.left="0",P.top="50%",P.transform="translate(-50%, -50%)"):p.value==="right-start"?(P.left="0",P.top=`${t.arrowOffset}px`,P.transform="translate(-50%, 50%)"):p.value==="right-end"?(P.left="0",P.bottom=`-${t.arrowOffset}px`,P.transform="translate(-50%, 50%)"):p.value==="bottom"?(P.left="50%",P.top="0",P.transform="translate(-50%, -50%)"):p.value==="bottom-start"?(P.left=`${t.arrowOffset+b.value}px`,P.top="0",P.transform="translate(-50%, -50%)"):p.value==="bottom-end"?(P.right=`${t.arrowOffset-b.value}px`,P.top="0",P.transform="translate(-50%, -50%)"):p.value==="left"?(P.right="0",P.top="50%",P.transform="translate(50%, -50%)"):p.value==="left-start"?(P.right="0",P.top=`${t.arrowOffset}px`,P.transform="translate(50%, -50%)"):p.value==="left-end"&&(P.right="0",P.bottom=`-${t.arrowOffset}px`,P.transform="translate(50%, -50%)"),P):{display:"none"}}),z=()=>{const P={class:k.value,style:F.value};return o.h("div",P)},X=()=>{_.value===!1&&(w.value=!1)},ee=P=>{if(!d.value||_.value===!1)return;const{relatedTarget:te}=P;d.value.contains(te)||(_.value=!1,r("update:visible",!1))};return i({doLayout:x}),()=>{if(!w.value)return null;const P=[],te=Y();te&&P.push(te);const E=[],$=R();if($&&E.push($),a.default){const Z=a.default();E.push(Z)}const M=z();M&&E.push(M);const A={ref:d,class:j.value,style:y.value,onAnimationend:X};t.leaveHide&&(A.onMouseleave=ee);const C=o.h("div",A,{default:()=>E});return P.push(C),o.h(o.Teleport,{to:t.teleport,disabled:t.teleportDisable},{default:()=>P})}}}}const{componentName:ms,create:ys,scope:ps}=ie("popover-dialog"),vn=ys(gs(ms,ps,!1)),bs={type:{type:[String],required:!1,default:()=>"primary"},dropdownPlacement:{type:[String],required:!1,default:()=>"bottom"},maxDisplayCount:{type:[Number],required:!1},moreText:{type:[String],required:!1},moreIcon:{type:[Object],required:!1}};function vs(e,n,l){return{props:{...po,...bs},emits:["click"],setup(t,{slots:r,attrs:a}){const{toLocaleRefs:i}=Fe.useFoxI18n(n),u=i(t,["moreText"]),s=e,c=o.computed(()=>({[s]:!0}));function f(B){return B.props||{}}function m(B){return!!f(B).disabled}function p(B){return B.children??[]}const w=o.ref(),S=o.computed(()=>w.value?.$el??null),d=o.ref(!1),h=B=>{d.value=B},O=()=>{d.value=!d.value};function x(B,D){return()=>{if(D)return;d.value=!1,f(B)?.onClick?.()}}function b(B,D){const N=p(B),v=m(B),j=x(B,v),y=[`${s}__dropdown-item`];v&&y.push("is-disabled");const L={class:y,onClick:j};return o.h("span",L,N)}const q=B=>{const D=t.maxDisplayCount??B.length;if(D>=B.length)return B;const N=[],v=D-1;for(let F=0;F<v;F++)N.push(B[F]);const j=(r.moreIcon&&r.moreIcon())??(t.moreIcon&&o.h(t.moreIcon))??o.h(l),y={ref:F=>w.value=F,class:`${s}__dropdown-link`,"text-position":"left","show-overflow-tooltip":!1,type:t.type,onClick:O},L=o.h(bn,y,{default:()=>u.moreText.value,mark:()=>j});N.push(L);const Y=[];for(let F=v;F<B.length;F++){const z=b(B[F]);Y.push(z)}const R={placement:t.dropdownPlacement,"onUpdate:visible":h,visible:d.value,reference:S.value,"custom-class":`${s}__popover`},k=o.h(vn,R,{default:()=>Y});return N.push(k),N},_=()=>(r.default?.()||[]).filter(D=>D.type!==Comment);return()=>{const B=_(),D=q(B),N=mt(t,po);return Object.assign(N,a??{}),N.class=c.value,o.h(pn,N,{default:()=>D})}}}}const{componentName:ws,create:Ss,scope:xs}=ie("buttons-item"),bo=Ss(vs(ws,xs,Ie.ArrowDown)),Ge=(e={})=>{if(!e)return{};const n={};return Reflect.ownKeys(e).forEach(t=>{typeof t=="string"&&t.indexOf("data-fox")!==0&&(n[t]=e[t])}),n},or={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 Ts(e,n,l){return{props:{...$e,...Ve,...or},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=o.ref(null),i=Le(o.computed(()=>a.value??t.disabled)),u=o.ref(null),s=Me(o.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),{toLocaleRefs:f}=Fe.useFoxI18n(n),m=f(t,["placeholder"]),p=o.ref(!1),w=ge(t,"modelValue",null,c),S=e,d=o.computed(()=>({[S]:!0,[`${S}__disabled`]:i.value,[`${S}__readonly`]:s.value})),h=k=>{w.value=k,c("update:modelValue",k),c("input",k)},O=k=>{c("change",k)};let x=ge(t,"hintText"),b=o.ref(!1);const q=k=>{let z=k.target.value;p.value=!0,he(x.value)||(b.value=!0),c("focus",z,k)},_=k=>{setTimeout(()=>{b.value&&(b.value=!1),p.value=!1},0);let z=k.target.value;t.maxLength&&z.length>Number(t.maxLength)&&(z=z.slice(0,Number(t.maxLength))),c("blur",z,k)},B=()=>{c("clear","")},D=o.ref(!1);let N=null;const v=()=>{t.showTooltip&&D.value===!1&&(N&&clearTimeout(N),N=setTimeout(()=>{D.value=!0},150))},j=()=>{N&&(clearTimeout(N),D.value=!1,N=null)},y=o.computed(()=>D.value||b.value),L=o.computed(()=>D.value?w.value:x.value),Y=o.computed(()=>kt(t.unit)>0),R=o.ref();return xe({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()},select:()=>{R?.value.select()},setDisabled:k=>{a.value=k},setReadonly:k=>{u.value=k}}),()=>{const F={...Ge(r.attrs),ref:R,class:d.value,placeholder:m.placeholder.value,clearable:t.clearable,disabled:i.value,readonly:s.value,modelValue:w.value,"adjust-position":t.adjustPosition,"always-system":t.alwaysSystem,onClear:B,onChange:O,onInput:h,onFocus:q,onBlur:_,onMouseover:v,onMouseleave:j},z={};r.slots.prepend&&(z.prepend=r.slots.prepend),r.slots.append&&(z.append=r.slots.append),r.slots.prefix&&(z.prefix=r.slots.prefix),r.slots.suffix?z.suffix=r.slots.suffix:Y.value&&(z.suffix=()=>[t.unit]);const X=[],ee=o.h(T.ElInput,F,z);X.push(ee);const P={default:()=>X};P.label=r.slots.default,P.fixedPreTip=r.slots.fixedPreTip,P.fixedTip=r.slots.fixedTip;const E={...De(t,or),hintText:L.value,hintVisible:y.value};return t.prop&&(E.prop=`${t.prop}_item`),o.h(l,E,P)}}}}const{componentName:Cs,create:$s,scope:Ns}=ie("input-item"),vo=$s(Ts(Cs,Ns,Ne));function it(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Rt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function lr(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}function ks(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Es=class{proxy;constructor(n){this.proxy=n}async load(n,l,t){if(Array.isArray(l))return l;if(typeof l=="function")return await l(t);const r=je(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(We(t)&&o.isReactive(t)&&(t=o.toRaw(t)),await r(l,t))}};function Is(){const e=o.getCurrentInstance();return new Es(e.proxy)}function rr(e,n,l){const t=it(e,n),r=it(e,l);if(t!==r)return!1;const a=Rt(e,n),i=Rt(e,l);return a===i}function ar(e,n,l,t){if(t.length===0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const r=[];return n.forEach(a=>{for(let i of t){const u=lr(e,i);if(Array.isArray(u)&&u.length>0){const s=ar(e,a,l,u)??[];Reflect.apply([].push,r,s)}else{let s=!1;if(l==="text")s=it(e,i)===a;else if(l==="item")s=rr(e,i,a);else{let c=Rt(e,i);c==null&&(c=it(e,i)),s=c===a}if(s){r.push(i);break}}}}),r}function Os(e){return{text:e,value:e}}const ir={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String]},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 Ds(e,n,l){return{props:{...$e,...Ve,...ir},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(t,r){const a=o.ref(null),i=Le(o.computed(()=>a.value??t.disabled)),u=o.ref(null),s=Me(o.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),{toLocaleRefs:f}=Fe.useFoxI18n(n),m=f(t,["placeholder"]),p=o.ref(null),w=o.ref([]),S=o.computed(()=>w.value?w.value.map(W=>it(t,W)).join(" "):""),d=(I,W,J,V=!0)=>{if(!J||J.length==0){p.value=I,V&&(c("update:modelValue",I),c("change",I));return}const H=ar(t,I,W,J);if(H===null){if(w.value===null||w.value.length===0)return;p.value=null,w.value=[],V&&(c("update:modelValue",null),c("update:text",null),c("change",null));return}let Q=!0;if(H.length!==w.value.length)Q=!1;else for(let oe=0;oe<H.length;oe++){const se=H[oe],fe=w.value[oe];if(!rr(t,se,fe)){Q=!1;break}}if(!Q){w.value=H;let oe=[],se=[],fe=[];H.forEach(ht=>{const Ct=Rt(t,ht),Xe=it(t,ht);oe.push(Ct),fe.push(Xe),t.valueType==="text"?se.push(Xe):t.valueType==="item"?se.push(ht):se.push(Ct)});let pe,ye,ke;ce(t.multiple)?(p.value=oe,pe=o.toRaw(se),ye=fe,ke=o.toRaw(H)):(p.value=oe[0]??"",pe=o.toRaw(se[0]??""),ye=fe[0]??"",ke=o.toRaw(H[0])),V&&(c("update:modelValue",pe),c("change",pe,ke)),c("update:text",ye)}},h=o.ref(null),O=o.ref(null),x=o.computed(()=>O.value??h.value??[]),b=Ae(o.computed(()=>t.appearLoad),"appearLoad",_e.Near,I=>ce(I)),q=Is(),_=async(I,W)=>{if(I){const J=await q.load("select",I,W);if(J.length>0)if(typeof J[0]=="string"){let Q=J.map(oe=>Os(oe));h.value=Q}else h.value=J;else h.value=null}};o.watch([()=>t.source,()=>t.params],([I,W])=>{O.value=null,_(I,W)},{immediate:!b.value});let B=!1;const D=()=>{B||(B=!0,_(t.source,t.params))};o.watch([()=>h.value,()=>t.modelValue],([I,W])=>{if(y()&&ce(t.multiple)){tt(W,p.value)||(p.value=W);return}d(W,t.valueType,x.value,!1),c("setValue",W)}),t.source||(p.value=t.modelValue);let N=null,v=o.ref(!1);typeof t.remoteMethod=="function"&&(N=async I=>{if(I==null){O.value=null;return}v.value=!0;try{const W=await t.remoteMethod(I);W&&(O.value=W)}catch(W){O.value=null,console.error(W)}v.value=!1});let j=null;typeof t.filterMethod=="function"&&(j=async I=>{if(I==null){O.value=null;return}v.value=!0;try{const W=await t.filterMethod(I,h.value);W&&(O.value=W)}catch(W){O.value=null,console.error(W)}v.value=!1});const y=()=>typeof t.remoteMethod=="function"||typeof t.filterMethod=="function",L=o.ref(!1),Y=e,R=o.computed(()=>({[Y]:!0})),k=I=>{t.allowCreate||y()&&ce(t.multiple)?(c("update:modelValue",I),c("change",I),c("update:text",I),p.value=I):d(I,"value",x.value,!0)};let F=ge(t,"hintText"),z=o.ref(!1);const X=I=>{let J=I.target.value;L.value=!0,he(F.value)||(z.value=!0),c("focus",J,I)},ee=I=>{setTimeout(()=>{z.value&&(z.value=!1),L.value=!1},0);let J=I.target.value;t.maxLength&&J.length>Number(t.maxLength)&&(J=J.slice(0,Number(t.maxLength))),K.value||c("blur",J,I)},P=()=>{c("clear","")},te=o.ref(!1);let E=null;const $=()=>{t.showTooltip&&te.value===!1&&(E&&clearTimeout(E),E=setTimeout(()=>{te.value=!0},150))},M=()=>{E&&(clearTimeout(E),te.value=!1,E=null)},A=o.computed(()=>te.value||z.value),C=o.computed(()=>te.value?S.value:F.value),K=o.ref(!1),Z=I=>{K.value=I,c("visible-change",I),I||c("selected")},le=I=>{c("remove-tag",I)},G=(I,W)=>{const J=[];return I.forEach((V,H)=>{const Q=lr(t,V);if(Array.isArray(Q)&&Q.length>0){const oe=G(Q,W),se=it(t,V),pe={key:`${se}_${H}`,label:se};J.push(o.h(T.ElOptionGroup,pe,{default:()=>oe}))}else{const oe=Rt(t,V),se=it(t,V),fe=ks(t,V),ye={key:`${oe}_${H}`,label:se,disabled:fe,value:oe};if(typeof W=="function")J.push(o.h(T.ElOption,ye,{default:()=>W(V)}));else if(t.optionType==="item"){const ke={class:{"fox-select-item__option-left":!0}},ht=o.h("span",ke,[oe]),Ct={class:{"fox-select-item__option-right":!0}},Xe=o.h("span",Ct,[se]),Ln=o.h("div",{class:{"fox-select-item__option":!0}},[ht,Xe]);J.push(o.h(T.ElOption,ye,{default:()=>Ln}))}else t.optionType==="value"?J.push(o.h(T.ElOption,ye,{default:()=>[oe]})):J.push(o.h(T.ElOption,ye))}}),J},U=o.ref();return xe({focus:()=>{U?.value.focus()},blur:()=>{U?.value.blur()},setDisabled:I=>{a.value=I},setReadonly:I=>{u.value=I}}),()=>{const W={...Ge(r.attrs),ref:U,class:R.value,clearable:t.clearable,multiple:t.multiple,placeholder:m.placeholder.value,disabled:i.value||s.value,modelValue:p.value,"value-key":t.valueKey,"allow-create":t.allowCreate,onClear:P,onChange:k,onFocus:X,onBlur:ee,onVisibleChange:Z,onRemoveTag:le};typeof N=="function"&&(W["remote-method"]=N,W.loading=v.value),typeof j=="function"&&(W["filter-method"]=j,W.loading=v.value);const J={};r.slots.prefix&&(J.prefix=r.slots.prefix),r.slots.empty&&(J.empty=r.slots.empty),r.slots.options?J.default=r.slots.options:J.default=()=>G(x.value,r.slots.option);const V=[],H=o.h(T.ElSelect,W,J);V.push(H);const Q={default:()=>V};Q.label=r.slots.default,Q.fixedPreTip=r.slots.fixedPreTip,Q.fixedTip=r.slots.fixedTip;const se={...De(t,ir),hintText:C.value,hintVisible:A.value,onMouseover:$,onMouseleave:M};return t.prop&&(se.prop=`${t.prop}_item`),b.value&&(se["appear-listen"]=!0,se.onAppear=D),o.h(l,se,Q)}}}}const{componentName:Vs,create:Rs,scope:Fs}=ie("select-item"),wo=Rs(Ds(Vs,Fs,Ne));function nt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wn={exports:{}},As=wn.exports,sr;function Ms(){return sr||(sr=1,(function(e,n){(function(l,t){e.exports=t()})(As,(function(){var l=1e3,t=6e4,r=36e5,a="millisecond",i="second",u="minute",s="hour",c="day",f="week",m="month",p="quarter",w="year",S="date",d="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,O=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(R){var k=["th","st","nd","rd"],F=R%100;return"["+R+(k[(F-20)%10]||k[F]||k[0])+"]"}},b=function(R,k,F){var z=String(R);return!z||z.length>=k?R:""+Array(k+1-z.length).join(F)+R},q={s:b,z:function(R){var k=-R.utcOffset(),F=Math.abs(k),z=Math.floor(F/60),X=F%60;return(k<=0?"+":"-")+b(z,2,"0")+":"+b(X,2,"0")},m:function R(k,F){if(k.date()<F.date())return-R(F,k);var z=12*(F.year()-k.year())+(F.month()-k.month()),X=k.clone().add(z,m),ee=F-X<0,P=k.clone().add(z+(ee?-1:1),m);return+(-(z+(F-X)/(ee?X-P:P-X))||0)},a:function(R){return R<0?Math.ceil(R)||0:Math.floor(R)},p:function(R){return{M:m,y:w,w:f,d:c,D:S,h:s,m:u,s:i,ms:a,Q:p}[R]||String(R||"").toLowerCase().replace(/s$/,"")},u:function(R){return R===void 0}},_="en",B={};B[_]=x;var D="$isDayjsObject",N=function(R){return R instanceof L||!(!R||!R[D])},v=function R(k,F,z){var X;if(!k)return _;if(typeof k=="string"){var ee=k.toLowerCase();B[ee]&&(X=ee),F&&(B[ee]=F,X=ee);var P=k.split("-");if(!X&&P.length>1)return R(P[0])}else{var te=k.name;B[te]=k,X=te}return!z&&X&&(_=X),X||!z&&_},j=function(R,k){if(N(R))return R.clone();var F=typeof k=="object"?k:{};return F.date=R,F.args=arguments,new L(F)},y=q;y.l=v,y.i=N,y.w=function(R,k){return j(R,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var L=(function(){function R(F){this.$L=v(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[D]=!0}var k=R.prototype;return k.parse=function(F){this.$d=(function(z){var X=z.date,ee=z.utc;if(X===null)return new Date(NaN);if(y.u(X))return new Date;if(X instanceof Date)return new Date(X);if(typeof X=="string"&&!/Z$/i.test(X)){var P=X.match(h);if(P){var te=P[2]-1||0,E=(P[7]||"0").substring(0,3);return ee?new Date(Date.UTC(P[1],te,P[3]||1,P[4]||0,P[5]||0,P[6]||0,E)):new Date(P[1],te,P[3]||1,P[4]||0,P[5]||0,P[6]||0,E)}}return new Date(X)})(F),this.init()},k.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},k.$utils=function(){return y},k.isValid=function(){return this.$d.toString()!==d},k.isSame=function(F,z){var X=j(F);return this.startOf(z)<=X&&X<=this.endOf(z)},k.isAfter=function(F,z){return j(F)<this.startOf(z)},k.isBefore=function(F,z){return this.endOf(z)<j(F)},k.$g=function(F,z,X){return y.u(F)?this[z]:this.set(X,F)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(F,z){var X=this,ee=!!y.u(z)||z,P=y.p(F),te=function(le,G){var U=y.w(X.$u?Date.UTC(X.$y,G,le):new Date(X.$y,G,le),X);return ee?U:U.endOf(c)},E=function(le,G){return y.w(X.toDate()[le].apply(X.toDate("s"),(ee?[0,0,0,0]:[23,59,59,999]).slice(G)),X)},$=this.$W,M=this.$M,A=this.$D,C="set"+(this.$u?"UTC":"");switch(P){case w:return ee?te(1,0):te(31,11);case m:return ee?te(1,M):te(0,M+1);case f:var K=this.$locale().weekStart||0,Z=($<K?$+7:$)-K;return te(ee?A-Z:A+(6-Z),M);case c:case S:return E(C+"Hours",0);case s:return E(C+"Minutes",1);case u:return E(C+"Seconds",2);case i:return E(C+"Milliseconds",3);default:return this.clone()}},k.endOf=function(F){return this.startOf(F,!1)},k.$set=function(F,z){var X,ee=y.p(F),P="set"+(this.$u?"UTC":""),te=(X={},X[c]=P+"Date",X[S]=P+"Date",X[m]=P+"Month",X[w]=P+"FullYear",X[s]=P+"Hours",X[u]=P+"Minutes",X[i]=P+"Seconds",X[a]=P+"Milliseconds",X)[ee],E=ee===c?this.$D+(z-this.$W):z;if(ee===m||ee===w){var $=this.clone().set(S,1);$.$d[te](E),$.init(),this.$d=$.set(S,Math.min(this.$D,$.daysInMonth())).$d}else te&&this.$d[te](E);return this.init(),this},k.set=function(F,z){return this.clone().$set(F,z)},k.get=function(F){return this[y.p(F)]()},k.add=function(F,z){var X,ee=this;F=Number(F);var P=y.p(z),te=function(M){var A=j(ee);return y.w(A.date(A.date()+Math.round(M*F)),ee)};if(P===m)return this.set(m,this.$M+F);if(P===w)return this.set(w,this.$y+F);if(P===c)return te(1);if(P===f)return te(7);var E=(X={},X[u]=t,X[s]=r,X[i]=l,X)[P]||1,$=this.$d.getTime()+F*E;return y.w($,this)},k.subtract=function(F,z){return this.add(-1*F,z)},k.format=function(F){var z=this,X=this.$locale();if(!this.isValid())return X.invalidDate||d;var ee=F||"YYYY-MM-DDTHH:mm:ssZ",P=y.z(this),te=this.$H,E=this.$m,$=this.$M,M=X.weekdays,A=X.months,C=X.meridiem,K=function(G,U,I,W){return G&&(G[U]||G(z,ee))||I[U].slice(0,W)},Z=function(G){return y.s(te%12||12,G,"0")},le=C||function(G,U,I){var W=G<12?"AM":"PM";return I?W.toLowerCase():W};return ee.replace(O,(function(G,U){return U||(function(I){switch(I){case"YY":return String(z.$y).slice(-2);case"YYYY":return y.s(z.$y,4,"0");case"M":return $+1;case"MM":return y.s($+1,2,"0");case"MMM":return K(X.monthsShort,$,A,3);case"MMMM":return K(A,$);case"D":return z.$D;case"DD":return y.s(z.$D,2,"0");case"d":return String(z.$W);case"dd":return K(X.weekdaysMin,z.$W,M,2);case"ddd":return K(X.weekdaysShort,z.$W,M,3);case"dddd":return M[z.$W];case"H":return String(te);case"HH":return y.s(te,2,"0");case"h":return Z(1);case"hh":return Z(2);case"a":return le(te,E,!0);case"A":return le(te,E,!1);case"m":return String(E);case"mm":return y.s(E,2,"0");case"s":return String(z.$s);case"ss":return y.s(z.$s,2,"0");case"SSS":return y.s(z.$ms,3,"0");case"Z":return P}return null})(G)||P.replace(":","")}))},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(F,z,X){var ee,P=this,te=y.p(z),E=j(F),$=(E.utcOffset()-this.utcOffset())*t,M=this-E,A=function(){return y.m(P,E)};switch(te){case w:ee=A()/12;break;case m:ee=A();break;case p:ee=A()/3;break;case f:ee=(M-$)/6048e5;break;case c:ee=(M-$)/864e5;break;case s:ee=M/r;break;case u:ee=M/t;break;case i:ee=M/l;break;default:ee=M}return X?ee:y.a(ee)},k.daysInMonth=function(){return this.endOf(m).$D},k.$locale=function(){return B[this.$L]},k.locale=function(F,z){if(!F)return this.$L;var X=this.clone(),ee=v(F,z,!0);return ee&&(X.$L=ee),X},k.clone=function(){return y.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},R})(),Y=L.prototype;return j.prototype=Y,[["$ms",a],["$s",i],["$m",u],["$H",s],["$W",c],["$M",m],["$y",w],["$D",S]].forEach((function(R){Y[R[1]]=function(k){return this.$g(k,R[0],R[1])}})),j.extend=function(R,k){return R.$i||(R(k,L,j),R.$i=!0),j},j.locale=v,j.isDayjs=N,j.unix=function(R){return j(1e3*R)},j.en=B[_],j.Ls=B,j.p={},j}))})(wn)),wn.exports}var Ls=Ms();const et=nt(Ls);var Sn={exports:{}},Bs=Sn.exports,ur;function qs(){return ur||(ur=1,(function(e,n){(function(l,t){e.exports=t()})(Bs,(function(){var l={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"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,a=/\d\d/,i=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,s={},c=function(h){return(h=+h)+(h>68?1900:2e3)},f=function(h){return function(O){this[h]=+O}},m=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=(function(O){if(!O||O==="Z")return 0;var x=O.match(/([+-]|\d\d)/g),b=60*x[1]+(+x[2]||0);return b===0?0:x[0]==="+"?-b:b})(h)}],p=function(h){var O=s[h];return O&&(O.indexOf?O:O.s.concat(O.f))},w=function(h,O){var x,b=s.meridiem;if(b){for(var q=1;q<=24;q+=1)if(h.indexOf(b(q,0,O))>-1){x=q>12;break}}else x=h===(O?"pm":"PM");return x},S={A:[u,function(h){this.afternoon=w(h,!1)}],a:[u,function(h){this.afternoon=w(h,!0)}],Q:[r,function(h){this.month=3*(h-1)+1}],S:[r,function(h){this.milliseconds=100*+h}],SS:[a,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[i,f("seconds")],ss:[i,f("seconds")],m:[i,f("minutes")],mm:[i,f("minutes")],H:[i,f("hours")],h:[i,f("hours")],HH:[i,f("hours")],hh:[i,f("hours")],D:[i,f("day")],DD:[a,f("day")],Do:[u,function(h){var O=s.ordinal,x=h.match(/\d+/);if(this.day=x[0],O)for(var b=1;b<=31;b+=1)O(b).replace(/\[|\]/g,"")===h&&(this.day=b)}],w:[i,f("week")],ww:[a,f("week")],M:[i,f("month")],MM:[a,f("month")],MMM:[u,function(h){var O=p("months"),x=(p("monthsShort")||O.map((function(b){return b.slice(0,3)}))).indexOf(h)+1;if(x<1)throw new Error;this.month=x%12||x}],MMMM:[u,function(h){var O=p("months").indexOf(h)+1;if(O<1)throw new Error;this.month=O%12||O}],Y:[/[+-]?\d+/,f("year")],YY:[a,function(h){this.year=c(h)}],YYYY:[/\d{4}/,f("year")],Z:m,ZZ:m};function d(h){var O,x;O=h,x=s&&s.formats;for(var b=(h=O.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(j,y,L){var Y=L&&L.toUpperCase();return y||x[L]||l[L]||x[Y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(R,k,F){return k||F.slice(1)}))}))).match(t),q=b.length,_=0;_<q;_+=1){var B=b[_],D=S[B],N=D&&D[0],v=D&&D[1];b[_]=v?{regex:N,parser:v}:B.replace(/^\[|\]$/g,"")}return function(j){for(var y={},L=0,Y=0;L<q;L+=1){var R=b[L];if(typeof R=="string")Y+=R.length;else{var k=R.regex,F=R.parser,z=j.slice(Y),X=k.exec(z)[0];F.call(y,X),j=j.replace(X,"")}}return(function(ee){var P=ee.afternoon;if(P!==void 0){var te=ee.hours;P?te<12&&(ee.hours+=12):te===12&&(ee.hours=0),delete ee.afternoon}})(y),y}}return function(h,O,x){x.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(c=h.parseTwoDigitYear);var b=O.prototype,q=b.parse;b.parse=function(_){var B=_.date,D=_.utc,N=_.args;this.$u=D;var v=N[1];if(typeof v=="string"){var j=N[2]===!0,y=N[3]===!0,L=j||y,Y=N[2];y&&(Y=N[2]),s=this.$locale(),!j&&Y&&(s=x.Ls[Y]),this.$d=(function(z,X,ee,P){try{if(["x","X"].indexOf(X)>-1)return new Date((X==="X"?1e3:1)*z);var te=d(X)(z),E=te.year,$=te.month,M=te.day,A=te.hours,C=te.minutes,K=te.seconds,Z=te.milliseconds,le=te.zone,G=te.week,U=new Date,I=M||(E||$?1:U.getDate()),W=E||U.getFullYear(),J=0;E&&!$||(J=$>0?$-1:U.getMonth());var V,H=A||0,Q=C||0,oe=K||0,se=Z||0;return le?new Date(Date.UTC(W,J,I,H,Q,oe,se+60*le.offset*1e3)):ee?new Date(Date.UTC(W,J,I,H,Q,oe,se)):(V=new Date(W,J,I,H,Q,oe,se),G&&(V=P(V).week(G).toDate()),V)}catch{return new Date("")}})(B,v,D,x),this.init(),Y&&Y!==!0&&(this.$L=this.locale(Y).$L),L&&B!=this.format(v)&&(this.$d=new Date("")),s={}}else if(v instanceof Array)for(var R=v.length,k=1;k<=R;k+=1){N[1]=v[k-1];var F=x.apply(this,N);if(F.isValid()){this.$d=F.$d,this.$L=F.$L,this.init();break}k===R&&(this.$d=new Date(""))}else q.call(this,_)}}}))})(Sn)),Sn.exports}var Ps=qs();const _s=nt(Ps);var xn={exports:{}},js=xn.exports,cr;function zs(){return cr||(cr=1,(function(e,n){(function(l,t){e.exports=t()})(js,(function(){return function(l,t){var r=t.prototype,a=r.format;r.format=function(i){var u=this,s=this.$locale();if(!this.isValid())return a.bind(this)(i);var c=this.$utils(),f=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(m){switch(m){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return s.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return s.ordinal(u.week(),"W");case"w":case"ww":return c.s(u.week(),m==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),m==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),m==="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 m}}));return a.bind(this)(f)}}}))})(xn)),xn.exports}var Hs=zs();const Ks=nt(Hs);var Tn={exports:{}},Ws=Tn.exports,fr;function Ys(){return fr||(fr=1,(function(e,n){(function(l,t){e.exports=t()})(Ws,(function(){return function(l,t,r){var a=t.prototype,i=function(m){return m&&(m.indexOf?m:m.s)},u=function(m,p,w,S,d){var h=m.name?m:m.$locale(),O=i(h[p]),x=i(h[w]),b=O||x.map((function(_){return _.slice(0,S)}));if(!d)return b;var q=h.weekStart;return b.map((function(_,B){return b[(B+(q||0))%7]}))},s=function(){return r.Ls[r.locale()]},c=function(m,p){return m.formats[p]||(function(w){return w.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(S,d,h){return d||h.slice(1)}))})(m.formats[p.toUpperCase()])},f=function(){var m=this;return{months:function(p){return p?p.format("MMMM"):u(m,"months")},monthsShort:function(p){return p?p.format("MMM"):u(m,"monthsShort","months",3)},firstDayOfWeek:function(){return m.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):u(m,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):u(m,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):u(m,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return c(m.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return f.bind(this)()},r.localeData=function(){var m=s();return{firstDayOfWeek:function(){return m.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(p){return c(m,p)},meridiem:m.meridiem,ordinal:m.ordinal}},r.months=function(){return u(s(),"months")},r.monthsShort=function(){return u(s(),"monthsShort","months",3)},r.weekdays=function(m){return u(s(),"weekdays",null,null,m)},r.weekdaysShort=function(m){return u(s(),"weekdaysShort","weekdays",3,m)},r.weekdaysMin=function(m){return u(s(),"weekdaysMin","weekdays",2,m)}}}))})(Tn)),Tn.exports}var Us=Ys();const Gs=nt(Us);var Cn={exports:{}},Xs=Cn.exports,dr;function Zs(){return dr||(dr=1,(function(e,n){(function(l,t){e.exports=t()})(Xs,(function(){var l="week",t="year";return function(r,a,i){var u=a.prototype;u.week=function(s){if(s===void 0&&(s=null),s!==null)return this.add(7*(s-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=i(this).startOf(t).add(1,t).date(c),m=i(this).endOf(l);if(f.isBefore(m))return 1}var p=i(this).startOf(t).date(c).startOf(l).subtract(1,"millisecond"),w=this.diff(p,l,!0);return w<0?i(this).startOf("week").week():Math.ceil(w)},u.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}}))})(Cn)),Cn.exports}var Qs=Zs();const Js=nt(Qs);var $n={exports:{}},eu=$n.exports,hr;function tu(){return hr||(hr=1,(function(e,n){(function(l,t){e.exports=t()})(eu,(function(){return function(l,t){t.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}}}))})($n)),$n.exports}var nu=tu();const ou=nt(nu);var Nn={exports:{}},lu=Nn.exports,gr;function ru(){return gr||(gr=1,(function(e,n){(function(l,t){e.exports=t()})(lu,(function(){return function(l,t,r){t.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")}}}))})(Nn)),Nn.exports}var au=ru();const iu=nt(au);var kn={exports:{}},su=kn.exports,mr;function uu(){return mr||(mr=1,(function(e,n){(function(l,t){e.exports=t()})(su,(function(){return function(l,t){t.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}}))})(kn)),kn.exports}var cu=uu();const fu=nt(cu);var En={exports:{}},du=En.exports,yr;function hu(){return yr||(yr=1,(function(e,n){(function(l,t){e.exports=t()})(du,(function(){return function(l,t){t.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}}))})(En)),En.exports}var gu=hu();const mu=nt(gu);et.extend(Gs),et.extend(Ks),et.extend(_s),et.extend(Js),et.extend(ou),et.extend(iu),et.extend(fu),et.extend(mu);const ze={format(e,n){return et(e).format(n)},parser(e,n){return et(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,l){const r=new Date(e+"/"+n+"/"+l).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][r]},getMonthPreDay(e,n){let t=new Date(e+"/"+n+"/01").getDay();return t==0&&(t=7),t},getMonthDays(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){n=n||"-";const l=e.getFullYear(),t=this.getNumTwoBit(e.getMonth()+1),r=this.getNumTwoBit(e.getDate());return[l,t,r].join(n)},getDay(e,n,l){e=e||0;let t=n??new Date;const r=e*(1e3*60*60*24);return t=new Date(t.getTime()+r),l=l??"YYYY-MM-DD",this.format(t,l)},compareDate(e,n){let l;typeof e=="string"?l=new Date(e.replace("-","/").replace("-","/")):l=e;let t;return typeof n=="string"?t=new Date(n.replace("-","/").replace("-","/")):t=n,!(l>=t)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let l;typeof e=="string"?l=new Date(e).getTime():l=e;let t;return typeof n=="string"?t=new Date(n).getTime():t=n,l==t},getMonthWeek:function(e,n,l,t=0){const r=new Date(Number(e),parseInt(n)-1,Number(l));let a=r.getDay(),i=r.getDate(),u=6-a;return t!==0&&(a=a==0?7:a,u=7-a),Math.ceil((i+u)/7)},getYearWeek:function(e,n,l,t=0){const r=new Date(Number(e),parseInt(n)-1,Number(l)),a=new Date(Number(e),0,1),i=Math.round((r.valueOf()-a.valueOf())/864e5);let u=r.getDay(),s=6-u;return t!==0&&(u=u==0?7:u,s=7-u),Math.ceil((i+s)/7)},getWeekDate:function(e,n,l,t=0){const r=new Date(Number(e),parseInt(n)-1,Number(l)),a=r.getTime();let i=r.getDay();if(t===0){const s=a-i*864e5,c=a+(6-i)*864e5,f=this.date2Str(new Date(s)),m=this.date2Str(new Date(c));return[f,m]}else{i=i==0?7:i;const u=1440*60*1e3,s=a-(i-1)*u,c=a+(7-i)*u,f=this.date2Str(new Date(s)),m=this.date2Str(new Date(c));return[f,m]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=ze.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=ze.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,l){const t=new Date(new Date(n).setDate(n.getDate()+l)),r=e.getTime(),a=t.getTime(),i=n.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i},inScope4Month(e,n,l){const t=new Date(new Date(n).setMonth(n.getMonth()+l)),r=e.getTime(),a=t.getTime(),i=n.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i}},pr={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"}},br={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 yu(e,n,l){return{props:{...$e,...Ve,...pr,...br},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(t,r){const a=o.ref(null),i=Le(o.computed(()=>a.value??t.disabled)),u=o.ref(null),s=Me(o.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),{toLocaleRefs:f}=Fe.useFoxI18n(n),m=f(t,["placeholder"]),p=o.ref(!1),w=ge(t,"modelValue",null,c),S=o.computed(()=>z.value&&Array.isArray(w.value)&&w.value.length==2?w.value[0]:w.value),d=o.computed(()=>z.value?"longTermKey":"normalKey"),h=U=>{if(z.value&&t.type==="daterange"){const I=[...w.value];I[0]=U,w.value=I}else w.value=U;c("update:modelValue",w.value),c("change",w.value)},O=o.computed(()=>z.value&&t.type==="daterange"?"date":t.type),x=e,b=o.computed(()=>({[`${x}`]:!0,"is-long":z.value,"is-readonly":s.value,"is-disabled":i.value}));let q=ge(t,"hintText"),_=o.ref(!1);const B=U=>{let W=U.target.value;p.value=!0,he(q.value)||(_.value=!0),c("focus",W,U)},D=U=>{setTimeout(()=>{_.value&&(_.value=!1),p.value=!1},0);let W=U.target.value;t.maxLength&&W.length>Number(t.maxLength)&&(W=W.slice(0,Number(t.maxLength))),c("blur",W,U)},N=()=>{c("clear","")},v=U=>{c("calendar-change",U)},j=(U,I,W)=>{c("panel-change",U,I,W)},y=U=>{c("visible-change",U)},L=Ae(o.computed(()=>t.longTermText),"longTermText",_e.Near),Y=Ae(o.computed(()=>t.longTermActionLabel),"longTermActionLabel",_e.Near),R=Ae(o.computed(()=>t.longTermValue),"longTermValue",_e.Near),k=Ae(o.computed(()=>t.compatibleLongTermValue),"compatibleLongTermValue",_e.Near);let F=null;const z=o.ref(ce(t.longTerm)),X=U=>{if(z.value=U,c("update:longTerm",U),U){if(F=w.value,t.type==="daterange"){const I=[];Array.isArray(R.value)?(I[0]=w.value?w.value[0]??R.value[0]:null,I[1]=R.value[1]??R.value[0]):(I[0]=w.value?w.value[0]??R.value:null,I[1]=z.value),I[0]||(I[0]=t.valueFormat?ze.format(new Date,t.valueFormat):new Date),I[1]||(I[1]=t.valueFormat?ze.format(new Date,t.valueFormat):new Date),w.value=I}else Array.isArray(R.value)?w.value=R.value[1]??R.value[0]:w.value=R.value,w.value||(w.value=t.valueFormat?ze.format(new Date,t.valueFormat):new Date);c("update:modelValue",w.value)}else{if(t.type==="daterange"){const I=[];I[0]=Array.isArray(w.value)?w.value[0]:w.value,Array.isArray(F)?I[1]=F[1]:I[1]=F,I[0]||(I[0]=t.valueFormat?ze.format(new Date,t.valueFormat):new Date),I[1]||(I[1]=t.valueFormat?ze.format(new Date,t.valueFormat):new Date),w.value=I}else w.value=F;c("update:modelValue",w.value),setTimeout(()=>{le()},100)}},ee=ce(t.isLongTerm);if(ee){const U=()=>{if(z.value===!0){if(F=w.value,t.type==="daterange"){const I=[w.value[0]];Array.isArray(R.value)?I[1]=R.value[1]??R.value[0]:I[1]=z.value,I[0]||(I[0]=t.valueFormat?ze.format(new Date,t.valueFormat):new Date),I[1]||(I[1]=t.valueFormat?ze.format(new Date,t.valueFormat):new Date),w.value=I}else w.value=R.value;c("update:modelValue",w.value)}else tt(R.value,w.value)&&(z.value=!0)};U(),o.watch([()=>t.longTerm],([I])=>{z.value!==I&&U()}),o.watch([()=>w.value],([I])=>{let W=!1;if(t.type==="daterange"&&Array.isArray(I))try{let J=I[1];if(!J)return;if(I[0]==null){c("update:modelValue",[]);return}typeof J!="string"&&t.valueFormat&&(J=ze.format(J,t.valueFormat));let V=Array.isArray(R.value)?R.value[1]:R.value;(J===V||Array.isArray(k.value)&&k.value.findIndex(Q=>J==Q)!==-1)&&(W=!0)}catch(J){console.error(J)}z.value!==W&&(z.value=W)},{immediate:!0})}const P=o.computed(()=>({"fox-date-item__long":!0,"is-active":p.value})),te=o.ref(),E=o.ref(),$=/^\d+$/,M=(U,I)=>typeof t.flashFillThreshold=="function"?t.flashFillThreshold(U,I):$.test(U)&&U.length===t.flashFillThreshold,A=(U,I)=>{let W;if(typeof t.flashFillFormat=="function")W=t.flashFillFormat(U,I);else{const V=t.flashFillFormat??"YYYYMMDD";W=ze.parser(U,V)}const J=t.valueFormat??"YYYY-MM-DD";return ze.format(W,J)},C=U=>U?U.endsWith("range"):!1,K=U=>{if(!U.target)return;const I=U.target.value??"";if(M(I,t.type)){const W=A(I,t.type);if(C(t.type)){const J=Array.isArray(w.value)?[...w.value]:[];J[0]=W,h(J)}else h(W)}},Z=U=>{if(!U.target)return;const I=U.target.value??"";if(M(I,t.type)){const W=A(I,t.type);if(C(t.type)){const J=Array.isArray(w.value)?[...w.value]:[];J[1]=W,h(J)}else h(W)}},le=()=>{if(t.flashFill&&te.value&&te.value.$el)if(C(t.type)){const U=te.value.$el.querySelectorAll("input.el-range-input");U[0]&&U[0].addEventListener("input",K),U[1]&&U[1].addEventListener("input",Z)}else{const U=te.value.$el.querySelector("input.el-input__inner");U&&U.addEventListener("input",K)}},G=()=>{if(t.flashFill&&te.value&&te.value.$el)if(C(t.type)){const U=te.value.$el.querySelectorAll("input.el-range-input");U[0]&&U[0].removeEventListener("input",K),U[1]&&U[1].removeEventListener("input",Z)}else{const U=te.value.$el.querySelector("input.el-input__inner");U&&U.removeEventListener("input",K)}};return o.onMounted(le),o.onBeforeUnmount(G),xe({focus:()=>{E?.value.focus()},blur:()=>{E?.value.blur()},handleOpen:()=>{E?.value.handleOpen()},handleClose:()=>{E?.value.handleClose()},setDisabled:U=>{a.value=U},setReadonly:U=>{u.value=U}}),()=>{const I={...r.attrs,key:d.value,type:O.value,ref:E,class:b.value,placeholder:m.placeholder.value,disabled:i.value,readonly:s.value,modelValue:S.value,valueFormat:t.valueFormat,format:t.format,"onUpdate:modelValue":h,onClear:N,onFocus:B,onBlur:D,onCalendarChange:v,onPanelChange:j,onVisibleChange:y},W={};r.slots["range-separator"]&&(W["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(W.default=r.slots.cell);const J=[],V=o.h(T.ElDatePicker,I,W);J.push(V);const H={default:()=>J};if(H.label=r.slots.default,H.fixedPreTip=r.slots.fixedPreTip,H.fixedTip=r.slots.fixedTip,ee){if(z.value){const fe=o.h("span",{class:["fox-date-item__long-splitor"]},["-"]),pe=o.h("input",{class:["fox-date-item__long-text"],value:L.value,readonly:!0}),ye={class:P.value},ke=o.h("div",ye,{default:()=>[fe,pe]});J.push(ke)}if(!s.value&&!i.value){const fe={label:Y.value||L.value,disabled:s.value||i.value,modelValue:z.value,"onUpdate:modelValue":X},pe=o.h(T.ElCheckbox,fe),ye=o.h("div",{class:{[`${x}__append`]:!0}},[pe]);H.append=()=>ye}}const oe={...De(t,pr,br),ref:te,class:{[`${x}__wrapper`]:!0,"has-append":ee},hintText:q.value,hintVisible:_.value};return t.prop&&(oe.prop=`${t.prop}_item`),o.h(l,oe,H)}}}}const{componentName:pu,create:bu,scope:vu}=ie("date-item"),So=bu(yu(pu,vu,Ne)),vr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function wu(e,n,l){return{props:{...$e,...Ve,...vr},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(t,r){const a=o.ref(null),i=Le(o.computed(()=>a.value??t.disabled)),u=o.ref(null),s=Me(o.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),{toLocaleRefs:f}=Fe.useFoxI18n(n),m=f(t,["placeholder"]),p=o.ref(!1),w=ge(t,"modelValue",null,c),S=e,d=o.computed(()=>({[S]:!0})),h=N=>{w.value=N,c("update:modelValue",N),c("change",N)};let O=ge(t,"hintText"),x=o.ref(!1);const b=N=>{let j=N.target.value;p.value=!0,he(O.value)||(x.value=!0),c("focus",j,N)},q=N=>{setTimeout(()=>{x.value&&(x.value=!1),p.value=!1},0);let j=N.target.value;t.maxLength&&j.length>Number(t.maxLength)&&(j=j.slice(0,Number(t.maxLength))),c("blur",j,N)},_=()=>{c("clear","")},B=N=>{c("visible-change",N)},D=o.ref();return xe({focus:()=>{D?.value.focus()},blur:()=>{D?.value.blur()},handleOpen:()=>{D?.value.handleOpen()},handleClose:()=>{D?.value.handleClose()},setDisabled:N=>{a.value=N},setReadonly:N=>{u.value=N}}),()=>{const v={...r.attrs,ref:D,class:d.value,placeholder:m.placeholder.value,disabled:i.value,readonly:s.value,modelValue:w.value,"onUpdate:modelValue":h,onClear:_,onFocus:b,onBlur:q,onVisibleChange:B},j={},y=[],L=o.h(T.ElTimePicker,v,j);y.push(L);const Y={default:()=>y};Y.label=r.slots.default,Y.fixedPreTip=r.slots.fixedPreTip,Y.fixedTip=r.slots.fixedTip;const k={...De(t,vr),hintText:O.value,hintVisible:x.value};return t.prop&&(k.prop=`${t.prop}_item`),o.h(l,k,Y)}}}}const{componentName:Su,create:xu,scope:Tu}=ie("time-item"),xo=xu(wu(Su,Tu,Ne)),wr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Cu(e,n,l){return{props:{...$e,...Ve,...wr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(t,r){const a=o.ref(null),i=Le(o.computed(()=>a.value??t.disabled)),u=o.ref(null),s=Me(o.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),{toLocaleRefs:f}=Fe.useFoxI18n(n),m=f(t,["placeholder"]),p=o.ref(!1),w=ge(t,"modelValue",null,c),S=e,d=o.computed(()=>({[S]:!0})),h=D=>{w.value=D,c("update:modelValue",D),c("change",D)};let O=ge(t,"hintText"),x=o.ref(!1);const b=D=>{let v=D.target.value;p.value=!0,he(O.value)||(x.value=!0),c("focus",v,D)},q=D=>{setTimeout(()=>{x.value&&(x.value=!1),p.value=!1},0);let v=D.target.value;t.maxLength&&v.length>Number(t.maxLength)&&(v=v.slice(0,Number(t.maxLength))),c("blur",v,D)},_=()=>{c("clear","")},B=o.ref();return xe({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},handleOpen:()=>{B?.value.handleOpen()},handleClose:()=>{B?.value.handleClose()},setDisabled:D=>{a.value=D},setReadonly:D=>{u.value=D}}),()=>{const N={...r.attrs,ref:B,class:d.value,placeholder:m.placeholder.value,disabled:i.value,readonly:s.value,modelValue:w.value,"onUpdate:modelValue":h,onClear:_,onFocus:b,onBlur:q},v={},j=[],y=o.h(T.ElTimeSelect,N,v);j.push(y);const L={default:()=>j};L.label=r.slots.default,L.fixedPreTip=r.slots.fixedPreTip,L.fixedTip=r.slots.fixedTip;const R={...De(t,wr),hintText:O.value,hintVisible:x.value};return t.prop&&(R.prop=`${t.prop}_item`),o.h(l,R,L)}}}}const{componentName:$u,create:Nu,scope:ku}=ie("time-select-item"),To=Nu(Cu($u,ku,Ne));function Sr(e,n=0){let l=`${e}`,t=l.indexOf(".");if(t==-1)return l;let r=t;for(let a=l.length-1;a>=t;a--)if(l.charAt(a)!="0"){r=a;break}return r-t<n?r=t+n+1:r!=t&&(r+=1),r>l.length?l=l.padEnd(r,"0"):l=l.substring(0,r),l}function xr(e,n,l=20){if(typeof n=="string"&&(n=Ce(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let t=wl(`${e}`,`${n}`);return Sr(t)}else{let t=Kn(`${e}`,Sl(`${n}`),20);return Sr(t)}}function Eu(e,n=-1,l=!1,t=3,r=","){return zt(e,n,l,t,r)}function Tr(e,n,l,t,r=!0){if(e==="")return"";if(e=xl(e),n=Ce(n),n==1)return e;if(t)e=xr(e,n),l&&(e=="0"&&r?e=`${e}.`.padEnd(Ce(l)+2,"0"):e=Kn(e,1,Ce(l)));else{let a=-1*n;e=xr(e,a)}return e}function Cr(e,n){let l={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let t=ce(n.minInclude),r=Wn(e,n.min);if(t&&r==-1||!t&&(r==0||r==-1)){let a="请输入不小于 {0} 的数值";l.message=a.replace("{0}",n.min),l.minValid=!1}}if(n.max!=null){let t=ce(n.maxInclude),r=Wn(e,n.max);(t&&r==1||!t&&(r==0||r==1))&&(l.maxValid=!1)}return l}const $r={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 Iu(e,n,l){return{props:{...$e,...Ve,...$r},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=o.ref(null),i=Le(o.computed(()=>a.value??t.disabled)),u=o.ref(null),s=Me(o.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),f=o.ref(!1),m=ge(t,"modelValue",null,c),p=o.ref("");o.watch([()=>m.value,()=>t.rates,()=>t.precision],([k,F,z])=>{if(he(k)){p.value="";return}const X=Tr(k,F,z,!1);p.value!==X&&(p.value=X)},{immediate:!0});const w=o.computed(()=>{let k="";return f.value&&(k=p.value),k}),{t:S}=Fe.useFoxI18n(n),d=o.computed(()=>{let k=t.placeholder??"";return!f.value&&!he(p.value)?k=Eu(p.value,t.decimalLength,t.autoPadding,t.digits,t.separator):k=S(["placeholder",k]),k}),h=e,O=o.computed(()=>({[h]:!0,[`${h}__disabled`]:i.value,[`${h}__placeholder`]:p.value.length>0})),x=Ae(o.computed(()=>t.textAlign),"textAlign");o.computed(()=>f.value?{textAlign:"left"}:{textAlign:x.value??"right"});const b=o.ref(""),q=o.computed(()=>{let k=b.value;return he(k)&&(k=t.errorTip??""),k}),_=o.ref(""),B=o.ref(!1),D=(k,F)=>{if(k=`${k}`,he(k)){p.value="",m.value="",F.forEach(z=>{c(z,"")}),ce(t.showTip)&&B.value&&(B.value=!1);return}if(k.length>=2){let z=k;if(z.charAt(0)=="-"&&(z=z.substring(1)),z.length>=2&&z.charAt(0)=="0"&&z.charAt(1)!="."){o.triggerRef(p);return}}if(k!="-"){if(!Dl(k)){o.triggerRef(p);return}if(t.integerLength!=-1&&Vl(k)>Number(t.integerLength)){o.triggerRef(p);return}if(t.decimalLength&&t.decimalLength!=-1&&Rl(k)>Number(t.decimalLength)){o.triggerRef(p);return}let z=Cr(k,t);if(z.maxValid===!1){b.value=z.message,o.triggerRef(p);return}}else if(t.min!=null&&Ce(t.min)>=0){o.triggerRef(p);return}_.value=k,ce(t.showTip)&&(B.value=k.length>0),p.value=k,m.value=Tr(k,t.rates,t.precision,!0),F.forEach(z=>{c(z,m.value)})},N=k=>{D(k,["update:modelValue","input"])},v=k=>{D(k,["update:modelValue","change"])},j=k=>{if(f.value=!0,ce(t.showTip)){let F=p.value;he(F)&&(F=t.hintText),he(F)||(_.value=F,B.value=!0)}b.value="",c("focus",m.value,k)},y=k=>{if(setTimeout(()=>{f.value=!1,ce(t.showTip)&&B.value===!0&&(B.value=!1)},0),!he(p.value)){let F=Cr(p.value,t);if(F.minValid===!1||F.maxValid===!1){b.value=F.message;return}}c("update:modelValue",m.value,k),c("blur",m.value,k)},L=()=>{c("clear","")},Y=o.computed(()=>kt(t.unit)>0),R=o.ref();return xe({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()},select:()=>{R?.value.select()},setDisabled:k=>{a.value=k},setReadonly:k=>{u.value=k}}),()=>{const F={...Ge(r.attrs),ref:R,class:O.value,type:"digit",maxlength:t.maxLength,placeholder:d.value,clearable:t.clearable,disabled:i.value,readonly:s.value,modelValue:w.value,"adjust-position":t.adjustPosition,"always-system":t.alwaysSystem,onClear:L,onInput:N,onChange:v,onFocus:j,onBlur:y},z={};r.slots.prepend&&(z.prepend=r.slots.prepend),r.slots.append&&(z.append=r.slots.append),r.slots.prefix&&(z.prefix=r.slots.prefix),r.slots.suffix?z.suffix=r.slots.suffix:Y.value&&(z.suffix=()=>[t.unit]);const X=[],ee=o.h(T.ElInput,F,z);X.push(ee);const P={default:()=>X};P.label=r.slots.default,P.fixedPreTip=r.slots.fixedPreTip,P.fixedTip=r.slots.fixedTip;const E={...De(t,$r),errorTip:q.value,hintText:_.value,hintVisible:B.value,hintType:"number"};return t.prop&&(E.prop=`${t.prop}_item`),o.h(l,E,P)}}}}const{componentName:Ou,create:Du,scope:Vu}=ie("money-item"),Co=Du(Iu(Ou,Vu,Ne)),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 Ru(e,n,l){return{props:{...$e,...Ve,...Nr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=o.ref(null),i=Le(o.computed(()=>a.value??t.disabled)),u=o.ref(null),s=Me(o.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),{toLocaleRefs:f}=Fe.useFoxI18n(n),m=f(t,["placeholder"]),p=o.ref(!1),w=ge(t,"modelValue",null,c),S=e,d=o.computed(()=>({[S]:!0,[`${S}__append`]:N.value})),h=o.computed(()=>({[`${S}__unit`]:!0})),O=j=>{w.value=j,c("update:modelValue",j),c("input",j)},x=j=>{c("change",j)};let b=ge(t,"hintText"),q=o.ref(!1);const _=j=>{let L=j.target.value;p.value=!0,he(b.value)||(q.value=!0),c("focus",L,j)},B=j=>{setTimeout(()=>{q.value&&(q.value=!1),p.value=!1},0);let L=j.target.value;t.maxLength&&L.length>Number(t.maxLength)&&(L=L.slice(0,Number(t.maxLength))),c("blur",L,j)},D=()=>{c("clear","")},N=o.computed(()=>kt(t.unit)>0),v=o.ref();return xe({focus:()=>{v?.value.focus()},blur:()=>{v?.value.blur()},setDisabled:j=>{a.value=j},setReadonly:j=>{u.value=j}}),()=>{const y={...Ge(r.attrs),ref:v,class:d.value,placeholder:m.placeholder.value,clearable:t.clearable,disabled:i.value,readonly:s.value,modelValue:w.value,"adjust-position":t.adjustPosition,"always-system":t.alwaysSystem,onClear:D,onChange:x,onInput:O,onFocus:_,onBlur:B},L={},Y=[],R=o.h(T.ElInputNumber,y,L);Y.push(R);const k={default:()=>Y};k.label=r.slots.default,k.fixedPreTip=r.slots.fixedPreTip,k.fixedTip=r.slots.fixedTip;const z={...De(t,Nr),hintText:b.value,hintVisible:q.value};if(t.prop&&(z.prop=`${t.prop}_item`),r.slots.append)k.append=r.slots.append;else if(N.value){const ee={class:h.value},P=o.h("div",ee,[t.unit]);k.append=()=>P}return o.h(l,z,k)}}}}const{componentName:Fu,create:Au,scope:Mu}=ie("input-number-item"),$o=Au(Ru(Fu,Mu,Ne));function ot(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function ft(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Lu(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}let Bu=class{proxy;constructor(n){this.proxy=n}async load(n,l,t,r){if(Array.isArray(l))return l;if(typeof l=="function")return await l(t,r);const a=je(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(We(t)&&o.isReactive(t)&&(t=o.toRaw(t)),await a(l,t,r))}};function qu(){const e=o.getCurrentInstance();return new Bu(e.proxy)}function No(e,n,l){const t=ot(e,n),r=ot(e,l);if(t!==r)return!1;const a=ft(e,n),i=ft(e,l);return a===i}function kr(e,n,l,t){if(t.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const r=[];let a=t;for(let i=0;Array.isArray(a)&&i<n.length;i++){const u=n[i];if(Array.isArray(u)){const s=kr(e,u,l,t);r.push(s)}else{let s=!1;for(let c of a){if(l==="text")s=ot(e,c)===u;else if(l==="item")s=No(e,c,u);else{let f=ft(e,c);f==null&&(f=ot(e,c)),s=f===u}if(s){r.push(c),a=Lu(e,c);break}}if(!s)break}}return r}function Pu(e){return{text:e,value:e}}const Er={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 _u(e,n,l){return{props:{...$e,...Ve,...Er},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(t,r){const a=o.ref(null),i=Le(o.computed(()=>a.value??t.disabled)),u=o.ref(null),s=Me(o.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),{toLocaleRefs:f}=Fe.useFoxI18n(n),m=f(t,["placeholder"]),p=o.ref(null),w=o.ref([]),S=o.computed(()=>w.value?w.value.map(U=>Array.isArray(U)?U.map(W=>ot(t,W)).join(" "):ot(t,U)).join(" "):""),d=(G,U,I,W=!0)=>{if(t.props&&t.props.lazy===!0||t.lazy===!0){if(p.value===G)return;p.value=G;const Q=o.toRaw(G);if(W){const oe=le?.value.getCheckedNodes();if(oe)if(t.multiple){const se=[];oe.forEach(fe=>{const ye=(fe.pathNodes??[]).map(ke=>ke.data);se.push(ye)}),c("update:pathNodes",se)}else{const fe=(oe[0]?.pathNodes??[]).map(pe=>pe.data);c("update:pathNodes",fe)}c("update:modelValue",Q),c("change",Q)}return}const J=kr(t,G,U,I);if(J===null){if(w.value.length===0||w.value===null)return;w.value=[],p.value=null,W&&(c("update:pathNodes",[]),c("update:modelValue",null),c("change",null));return}const V=J[J.length-1];if(L.value.checkStrictly!==!0&&V&&!Array.isArray(V)&&Array.isArray(V.children)&&V.children.length>0){const Q=[];J.forEach(oe=>{const se=`${ot(t,oe)}`;Q.push(se)}),Q.length>0&&(j.value=Q.join(t.separator))}else j.value=null;let H=!0;if(J.length!==w.value.length)H=!1;else for(let Q=0;Q<J.length;Q++){const oe=J[Q],se=w.value[Q];if(Array.isArray(oe)){if(!Array.isArray(se)||oe.length!==se.length)H=!1;else for(let fe=0;fe<oe.length;fe++)if(!No(t,oe[fe],se[fe])){H=!1;break}}else No(t,oe,se)||(H=!1);if(!H)break}if(!H){w.value=J;let Q=[],oe=[];J.forEach(fe=>{if(Array.isArray(fe)){let pe=[],ye=[];for(let ke of fe)pe.push(ft(t,ke)),t.valueType==="text"?ye.push(ot(t,ke)):t.valueType==="item"?ye.push(ke):ye.push(ft(t,ke));Q.push(pe),oe.push(ye)}else Q.push(ft(t,fe)),t.valueType==="text"?oe.push(ot(t,fe)):t.valueType==="item"?oe.push(fe):oe.push(ft(t,fe))}),p.value=Q;const se=o.toRaw(oe);W&&(c("update:pathNodes",J),c("update:modelValue",se),c("change",se))}},h=o.ref([]),O=Ae(o.computed(()=>t.appearLoad),"appearLoad",_e.Near,G=>ce(G)),x=qu(),b=async(G,U)=>{if(G){const I=await x.load("cascader",G,U);if(I.length>0)if(typeof I[0]=="string"){let V=I.map(H=>Pu(H));h.value=V}else h.value=I}};o.watch([()=>t.source,()=>t.params],async([G,U])=>{b(G,U)},{immediate:!(O.value||t.lazy)});let q=!1;const _=()=>{q||(q=!0,b(t.source,t.params))};o.watch([()=>h.value,()=>t.modelValue],([G,U])=>{d(U,t.valueType,G,!1),c("setValue",U)}),t.lazy&&d(t.modelValue,"value",[],!1);let B=null,D=o.ref(!1);typeof t.remoteMethod=="function"&&(B=async G=>{if(G!=null){D.value=!0;try{const U=await t.remoteMethod(G);h.value=U}catch(U){console.error(U)}D.value=!1}});const N=o.ref(!1),v=e,j=o.ref(null),y=o.computed(()=>({[v]:!0,"is-incomplete":j.value&&j.value.length>0})),L=o.computed(()=>{let G={label:t.textKey,value:t.valueKey,children:t.childrenKey};return t.multiple===!0&&(G.multiple=!0),t.props&&Object.assign(G,t.props),t.lazy&&(G.lazy=!0,typeof t.lazyLoad=="function"?G.lazyLoad=t.lazyLoad:G.lazyLoad=async(U,I)=>{let W={};t.params&&Object.assign(W,t.params),U&&Object.assign(W,U);const J=await x.load("cascader",t.source,W,!0);if(U?.config?.checkStrictly!==!0&&Array.isArray(p.value)&&p.value.length===U.level){const V=U.pathLabels??[];let H=[];V.forEach(Q=>{Q&&H.push(Q)}),H.length>0&&(j.value=H.join(t.separator))}else j.value=null;I(J)}),G}),Y=G=>{t.allowCreate?(c("update:modelValue",G),c("change",G),p.value=G):d(G,"value",h.value,!0)};let R=ge(t,"hintText"),k=o.ref(!1);const F=G=>{let I=G.target.value;N.value=!0,he(R.value)||(k.value=!0),c("focus",I,G)},z=G=>{setTimeout(()=>{k.value&&(k.value=!1),N.value=!1},0);let I=G.target.value;t.maxLength&&I.length>Number(t.maxLength)&&(I=I.slice(0,Number(t.maxLength))),A.value||c("blur",I,G)},X=()=>{c("clear","")},ee=o.ref(!1);let P=null;const te=()=>{t.showTooltip&&ee.value===!1&&(P&&clearTimeout(P),P=setTimeout(()=>{ee.value=!0},150))},E=()=>{P&&(clearTimeout(P),ee.value=!1,P=null)},$=o.computed(()=>ee.value||k.value),M=o.computed(()=>ee.value?S.value:R.value),A=o.ref(!1),C=G=>{A.value=G,c("visible-change",G),G||c("selected")},K=G=>{c("remove-tag",G)},Z=G=>{c("expand-change",G)},le=o.ref();return xe({focus:()=>{le?.value.focus()},blur:()=>{le?.value.blur()},getCheckedNodes:()=>le?.value.getCheckedNodes(),setDisabled:G=>{a.value=G},setReadonly:G=>{u.value=G}}),()=>{const U={...r.attrs,ref:le,class:y.value,props:L.value,clearable:t.clearable,placeholder:j.value||m.placeholder.value,disabled:i.value||s.value,options:h.value,modelValue:p.value,separator:t.separator,onClear:X,onChange:Y,onFocus:F,onBlur:z,onVisibleChange:C,onRemoveTag:K,expandChange:Z};typeof B=="function"&&(U["remote-method"]=B,U.loading=D.value);const I={};r.slots.option&&(I.default=r.slots.option),r.slots.empty&&(I.empty=r.slots.empty);const W=[],J=o.h(T.ElCascader,U,I);W.push(J);const V={default:()=>W};V.label=r.slots.default,V.fixedPreTip=r.slots.fixedPreTip,V.fixedTip=r.slots.fixedTip;const Q={...De(t,Er),hintText:M.value,hintVisible:$.value,onMouseover:te,onMouseleave:E};return t.prop&&(Q.prop=`${t.prop}_item`),O.value&&!t.lazy&&(Q["appear-listen"]=!0,Q.onAppear=_),o.h(l,Q,V)}}}}const{componentName:ju,create:zu,scope:Hu}=ie("cascader-item"),ko=zu(_u(ju,Hu,Ne)),Ir={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Ku(e,n,l){return{props:{...$e,...Ve,...Ir},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(t,r){const a=o.ref(null),i=Le(o.computed(()=>a.value??t.disabled)),u=o.ref(null),s=Me(o.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),{toLocaleRefs:f}=Fe.useFoxI18n(n),m=f(t,["placeholder"]),p=o.ref(!1),w=ge(t,"modelValue",null,c),S=e,d=o.computed(()=>({[S]:!0})),h=v=>{w.value=v,c("update:modelValue",v),c("input",v)},O=v=>{c("change",v)},x=v=>{c("select",v)};let b=ge(t,"hintText"),q=o.ref(!1);const _=v=>{let y=v.target.value;p.value=!0,he(b.value)||(q.value=!0),c("focus",y,v)},B=v=>{setTimeout(()=>{q.value&&(q.value=!1),p.value=!1},0);let y=v.target.value;t.maxLength&&y.length>Number(t.maxLength)&&(y=y.slice(0,Number(t.maxLength))),c("blur",y,v)},D=()=>{c("clear","")},N=o.ref();return xe({focus:()=>{N?.value.focus()},blur:()=>{N?.value.blur()},select:()=>{N?.value.select()},setDisabled:v=>{a.value=v},setReadonly:v=>{u.value=v}}),()=>{const j={...r.attrs,ref:N,class:d.value,placeholder:m.placeholder.value,clearable:t.clearable,disabled:i.value,readonly:s.value,modelValue:w.value,onClear:D,onChange:O,onInput:h,onFocus:_,onBlur:B,onSelect:x},y={};r.slots.prepend&&(y.prepend=r.slots.prepend),r.slots.append&&(y.append=r.slots.append),r.slots.prefix&&(y.prefix=r.slots.prefix),r.slots.suffix&&(y.suffix=r.slots.suffix),r.slots.option&&(y.default=r.slots.option);const L=[],Y=o.h(T.ElAutocomplete,j,y);L.push(Y);const R={default:()=>L};R.label=r.slots.default,R.fixedPreTip=r.slots.fixedPreTip,R.fixedTip=r.slots.fixedTip;const F={...De(t,Ir),hintText:b.value,hintVisible:q.value};return t.prop&&(F.prop=`${t.prop}_item`),o.h(l,F,R)}}}}const{componentName:Wu,create:Yu,scope:Uu}=ie("autocomplete-item"),Eo=Yu(Ku(Wu,Uu,Ne));function Gu(e,n,l,t,r){let a=[];Array.isArray(e)?a=e:a=[e];const i=[],u=n[0];if(Array.isArray(e)&&!Array.isArray(u)&&!u[r]){let s=n;for(let c=0;s&&c<a.length;c++){let f=a[c],m=s.find(p=>p[t]===f);if(!m)break;i.push(m[l])}return i}if(Array.isArray(u))for(let s=0;s<n.length&&s<a.length;s++){let c=n[s],f=a[s];const m=c.find(p=>p[t]===f);if(!m)break;i.push(m[l])}else{let s=n;for(let c=0;s&&c<a.length;c++){let f=a[c],m=s.find(p=>p[t]===f);if(!m)break;i.push(m[l]),s=m[r]}}return i}let Xu=class{proxy;constructor(n){this.proxy=n}async load(n,l,t){if(Array.isArray(l))return l;if(typeof l=="function")return await l(t);const r=je(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(We(t)&&o.isReactive(t)&&(t=o.toRaw(t)),await r(l,t))}};function Zu(){const e=o.getCurrentInstance();return new Xu(e.proxy)}const Or={tag:{type:[String,Object],required:!1,default:"span"},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}};function Qu(e,n){return{props:{...Or},setup(l,{attrs:t,slots:r}){const a=Zu(),i=o.ref([]);o.watch([()=>l.source,()=>l.params],async([s,c])=>{i.value=await a.load(l.sourceType,s,c)},{immediate:!0});const u=o.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return l.emptyText;let s=Gu(l.modelValue,i.value,l.textKey,l.valueKey,l.childrenKey);return s.length==0?l.emptyText??"":s.length===1?l.optionType=="item"?`${l.modelValue}${l.separator}${s[0]}`:s[0]:s.join(l.separator)});return()=>{const s={...t};if(r.default)return r.default({text:u.value,value:l.modelValue});const c=l.tag??"span";return typeof c=="object"?o.h(c,s,{default:()=>u.value}):o.h(c,s,[u.value])}}}}const{create:Ju}=ie("mapping"),Ft=Ju(Qu());function ec(e,n){let l=n.split("."),t=e;for(let r=0;r<l.length;r++){let a=l[r],i=0,u=a.indexOf("["),s=u==-1?-1:a.indexOf("]",u);for(;u!==-1&&s!==-1;){let c=a.substring(u+1,s);if(/^\d+$/.test(c)){let f=parseInt(c);if(i==0){let m=a.substring(0,u);t=t[m][f]}else t=t[f];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(t=t[a])}return t}function tc(e,n){return{props:{...Or},setup(l,{attrs:t,slots:r}){return()=>{const a={default:i=>{const u=ec(i.row,i.column.property);return r.default?o.h(Ft,{...l,modelValue:u},{default:r.default}):o.h(Ft,{...l,modelValue:u})}};for(let i in r)i!=="default"&&(a[i]=r[i]);return o.h(T.ElTableColumn,{...t},a)}}}}const{create:nc}=ie("table-mapping-column"),Io=nc(tc()),oc=Symbol.for("TableStateKey");function Dr(e,n){let l=n.split("."),t=e;for(let r=0;r<l.length;r++){let a=l[r],i=0,u=a.indexOf("["),s=u==-1?-1:a.indexOf("]",u);for(;u!==-1&&s!==-1;){let c=a.substring(u+1,s);if(/^\d+$/.test(c)){let f=parseInt(c);if(i==0){let m=a.substring(0,u);t=t[m][f]}else t=t[f];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(t=t[a])}return t}function lc(e,n){return{props:{},setup(l,{attrs:t}){const r=o.inject(oc,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:u=>{const s=Dr(u.row,u.column.property),c=a?Dr(a,u.column.property):null,f=s===c,m={class:{"el-radio__input":!0,"is-checked":f}},p=o.h("span",m,[o.h("span",{class:{"el-radio__inner":!0}})]),w={class:{"el-radio":!0,"is-checked":f}};return o.h("label",w,[p])}};return o.h(T.ElTableColumn,{...t},i)}}}}const{create:rc}=ie("table-radio-column"),Oo=rc(lc()),ac={},ic={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"};function sc(e,n){return o.openBlock(),o.createElementBlock("svg",ic,[...n[0]||(n[0]=[o.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)])])}const uc=Ue(ac,[["render",sc]]),{create:cc}=ie("table-setting"),fc={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:"不固定"}},dc=cc({components:{FoxPopover:T.ElPopover,FoxCheckbox:T.ElCheckbox,FoxCheckboxGroup:T.ElCheckboxGroup,FoxButton:T.ElButton,FoxIcon:T.ElIcon,DragIcon:uc,Download:Ie.Download,RefreshLeft:Ie.RefreshLeft},props:{...fc},setup(e,{emit:n,attrs:l}){let t=[];const r=o.ref([]),a=o.computed(()=>r.value.filter(C=>C.label===""||C.type?!1:C.fixed===""||C.fixed===!0||C.fixed==="left")),i=o.computed(()=>r.value.filter(C=>C.label===""||C.type?!1:C.fixed==="right")),u=o.computed(()=>r.value.filter(C=>!(C.label===""||C.type||C.fixed!==void 0))),s=o.computed(()=>(a.value.length>0||i.value.length>0)&&u.value.length>0),c=o.computed(()=>a.value.length>0),f=o.computed(()=>i.value.length>0),m=C=>C.length>1,p=(C,K)=>{Array.isArray(C)&&Array.isArray(K)&&C.forEach(G=>{K.some(U=>U.prop===G.prop?(G.label=U.label,!0):!1)});const Z=[];r.value=C.map((G,U)=>(!(G.label===""||G.type)&&G.visible!==!1&&Z.push(G.prop),{...G,sortIndex:U})),u.value.length+a.value.length+i.value.length===Z.length?x.value=!0:Z.length>0&&(b.value=!0),B.value=Z},w=C=>C?C.type?C.type:C.label?C.prop:"":"",S=(C,K)=>{if(C.length!==K.length)return!1;const Z=C.map(le=>w(le));for(let le of K){const G=w(le);if(Z.indexOf(G)===-1)return!1}return!0},d=C=>{if(!C){const K=e.tableRef.getColumnSetting(),Z=K.srcColumnPropertyList;t=Z.map((le,G)=>({...le,sortIndex:G})),C=K.columnPropertyList,C&&C.length>0&&S(Z,C)||(C=Z)}p(C,t)},h=()=>{e.tableRef.setColumnSetting(r.value)},O=o.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),x=o.ref(!1),b=o.ref(!1),q=C=>{const K=[];r.value.forEach(le=>{C&&!(le.label===""||le.type)&&K.push(le.prop),le.visible=C}),x.value=!1,b.value=!1,u.value.length+a.value.length+i.value.length===K.length?x.value=!0:K.length>0&&(b.value=!0),B.value=K,h()},_=()=>{d(t),h()},B=o.ref([]),D=C=>{r.value.forEach(Z=>{if(Z.label===""||Z.type)return;const le=C.indexOf(Z.prop)!==-1;Z.visible=le}),x.value=!1,b.value=!1;const K=u.value.length+a.value.length+i.value.length;C.length===K?x.value=!0:C.length>0&&(b.value=!0),h()},N=()=>{d()};o.onMounted(()=>{setTimeout(()=>{d()},50)});const v={currentRow:null,index:null,roleType:null},j=C=>C?C.dataset&&C.dataset.role==="row"?C:C.tagName.toLowerCase()!=="body"?(C=C.parentElement,j(C)):null:null,y=C=>{const K=C.currentTarget;K&&K.dataset&&(v.roleType=K.dataset.roleType,v.index=K.dataset.index)},L=C=>{v.currentRow&&(v.currentRow.classList.remove("is-dragover"),v.currentRow=null),v.index=null,v.roleType=null},Y=C=>{const K=C.currentTarget;C.relatedTarget;const Z=j(K);if(!Z)return;const le=Z.dataset&&Z.dataset.roleType;v.roleType===le&&(C.preventDefault(),v.currentRow&&v.currentRow!==Z&&v.currentRow.classList.remove("is-dragover"),Z.classList.add("is-dragover"),v.currentRow=Z)},R=C=>{C.preventDefault(),v.currentRow&&(v.currentRow.classList.remove("is-dragover"),v.currentRow=null)},k=C=>{const K=C.currentTarget,Z=j(K);if(!Z)return;const le=Z.dataset&&Z.dataset.roleType;if(v.roleType!==le)return;C.preventDefault();const G=Number(v.index),U=Number(Z.dataset.index);if(G!==U){if(G<U){const I=r.value[G];r.value.splice(G,1),r.value.splice(U,0,I)}else{const I=r.value[G];r.value.splice(G,1),r.value.splice(U+1,0,I)}p(r.value,t),h()}},F=C=>{const K=r.value[C];K.fixed="left",h()},z=C=>{const K=r.value[C];K.fixed="right",h()},X=C=>{const K=r.value[C];K.fixed=void 0,h()},ee=new Map;let P=null;function te(C){const K=document.createRange();return K.setStart(C,0),K.setEnd(C,C.childNodes.length),K.getBoundingClientRect().width}return{attrs:l,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:u,isShowNotFixedTitle:s,isShowLeftFixedTitle:c,isShowRightFixedTitle:f,isDraggble:m,isCheckAll:x,isIndeterminate:b,handleCheckAllChange:q,handleReset:_,checkedValue:B,handleCheckChange:D,onShow:N,onDragStart:y,onDragEnd:L,onDragOver:Y,onDragLeave:R,onDrop:k,toLeftFixed:F,toRightFixed:z,toUnFixed:X,checkboxLabelStyle:O,onMouseOverForOverflowText:(C,K,Z)=>{const le=C.currentTarget;if(le){const G=Math.floor(le.offsetWidth);if(Math.floor(te(le))>G){let I=ee.get(K);if(I){if(I===P)return;Be.hide(I)}I=Be.show(le,Z,{type:"text",placement:"top",closeOnClick:!1}),I&&(ee.set(K,I),P=I)}}},onMouseLeaveForOverflowText:(C,K)=>{const Z=ee.get(K);Z&&(Be.hide(Z),Z===P&&(P=null))},onMouseOverForTip:(C,K)=>{const Z=C.currentTarget;Z&&(P&&Be.hide(P),P=Be.show(Z,K,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:C=>{P&&(Be.hide(P),P=null)}}}}),hc={class:"fox-table-setting"},gc={class:"fox-table-setting__header"},mc={class:"fox-table-setting__body"},yc={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},pc={key:0,class:"fox-table-setting__body-title"},bc=["data-index","draggable"],vc=["onMouseover","onMouseleave"],wc={class:"tools-item"},Sc={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},xc={key:0,class:"fox-table-setting__body-title"},Tc=["data-index","draggable"],Cc=["onMouseover","onMouseleave"],$c={class:"tools-item"},Nc={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},kc={key:0,class:"fox-table-setting__body-title"},Ec=["data-index","draggable"],Ic=["onMouseover","onMouseleave"],Oc={class:"tools-item"};function Dc(e,n,l,t,r,a){const i=o.resolveComponent("FoxCheckbox"),u=o.resolveComponent("FoxButton"),s=o.resolveComponent("DragIcon"),c=o.resolveComponent("RefreshLeft"),f=o.resolveComponent("FoxIcon"),m=o.resolveComponent("Download"),p=o.resolveComponent("fox-checkbox"),w=o.resolveComponent("FoxCheckboxGroup"),S=o.resolveComponent("FoxPopover");return o.openBlock(),o.createBlock(S,o.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),default:o.withCtx(()=>[o.createElementVNode("div",hc,[o.createElementVNode("div",gc,[o.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=d=>e.isCheckAll=d),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),o.createVNode(u,{onClick:e.handleReset,link:"",type:"primary"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),o.createElementVNode("div",mc,[o.createVNode(w,{modelValue:e.checkedValue,"onUpdate:modelValue":n[28]||(n[28]=d=>e.checkedValue=d),onChange:e.handleCheckChange},{default:o.withCtx(()=>[e.leftFixedColumns.length>0?(o.openBlock(),o.createElementBlock("div",yc,[e.isShowLeftFixedTitle?(o.openBlock(),o.createElementBlock("div",pc,o.toDisplayString(e.leftFixedTitle),1)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.leftFixedColumns,d=>(o.openBlock(),o.createElementBlock("div",{key:d.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":d.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:n[5]||(n[5]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:n[6]||(n[6]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:n[7]||(n[7]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:n[8]||(n[8]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:n[9]||(n[9]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.leftFixedColumns)?(o.openBlock(),o.createBlock(s,{key:0,class:"icon-item"})):o.createCommentVNode("",!0),o.createVNode(i,{class:"checkbox-item",value:d.prop},{default:o.withCtx(()=>[o.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,d.prop,d.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,d.prop),class:"checkbox-item__label",style:o.normalizeStyle(e.checkboxLabelStyle)},o.toDisplayString(d.label),45,vc)]),_:2},1032,["value"]),o.createElementVNode("div",wc,[o.createVNode(f,{onClick:h=>e.toUnFixed(d.sortIndex),onMouseover:n[1]||(n[1]=h=>e.onMouseOverForTip(h,e.unFixedText)),onMouseleave:n[2]||(n[2]=h=>e.onMouseLeaveForTip(h))},{default:o.withCtx(()=>[o.createVNode(c)]),_:1},8,["onClick"]),o.createVNode(f,{onClick:h=>e.toRightFixed(d.sortIndex),onMouseover:n[3]||(n[3]=h=>e.onMouseOverForTip(h,e.fixedRightText)),onMouseleave:n[4]||(n[4]=h=>e.onMouseLeaveForTip(h))},{default:o.withCtx(()=>[o.createVNode(m)]),_:1},8,["onClick"])])],40,bc))),128))])):o.createCommentVNode("",!0),e.unFixedColumns.length>0?(o.openBlock(),o.createElementBlock("div",Sc,[e.isShowNotFixedTitle?(o.openBlock(),o.createElementBlock("div",xc,o.toDisplayString(e.unFixedTitle),1)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.unFixedColumns,d=>(o.openBlock(),o.createElementBlock("div",{key:d.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":d.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:n[14]||(n[14]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:n[15]||(n[15]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:n[16]||(n[16]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:n[17]||(n[17]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:n[18]||(n[18]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.unFixedColumns)?(o.openBlock(),o.createBlock(s,{key:0,class:"icon-item"})):o.createCommentVNode("",!0),o.createVNode(i,{class:"checkbox-item",value:d.prop},{default:o.withCtx(()=>[o.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,d.prop,d.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,d.prop),class:"checkbox-item__label",style:o.normalizeStyle(e.checkboxLabelStyle)},o.toDisplayString(d.label),45,Cc)]),_:2},1032,["value"]),o.createElementVNode("div",$c,[o.createVNode(f,{onClick:h=>e.toLeftFixed(d.sortIndex),onMouseover:n[10]||(n[10]=h=>e.onMouseOverForTip(h,e.fixedLeftText)),onMouseleave:n[11]||(n[11]=h=>e.onMouseLeaveForTip(h)),class:"is-reverse"},{default:o.withCtx(()=>[o.createVNode(m)]),_:1},8,["onClick"]),o.createVNode(f,{onClick:h=>e.toRightFixed(d.sortIndex),onMouseover:n[12]||(n[12]=h=>e.onMouseOverForTip(h,e.fixedRightText)),onMouseleave:n[13]||(n[13]=h=>e.onMouseLeaveForTip(h))},{default:o.withCtx(()=>[o.createVNode(m)]),_:1},8,["onClick"])])],40,Tc))),128))])):o.createCommentVNode("",!0),e.rightFixedColumns.length>0?(o.openBlock(),o.createElementBlock("div",Nc,[e.isShowRightFixedTitle?(o.openBlock(),o.createElementBlock("div",kc,o.toDisplayString(e.rightFixedTitle),1)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.rightFixedColumns,d=>(o.openBlock(),o.createElementBlock("div",{key:d.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":d.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:n[23]||(n[23]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:n[24]||(n[24]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:n[25]||(n[25]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:n[26]||(n[26]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:n[27]||(n[27]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.rightFixedColumns)?(o.openBlock(),o.createBlock(s,{key:0,class:"icon-item"})):o.createCommentVNode("",!0),o.createVNode(p,{class:"checkbox-item",label:d.prop},{default:o.withCtx(()=>[o.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,d.prop,d.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,d.prop),class:"checkbox-item__label",style:o.normalizeStyle(e.checkboxLabelStyle)},o.toDisplayString(d.label),45,Ic)]),_:2},1032,["label"]),o.createElementVNode("div",Oc,[o.createVNode(f,{onClick:h=>e.toUnFixed(d.sortIndex),onMouseover:n[19]||(n[19]=h=>e.onMouseOverForTip(h,e.unFixedText)),onMouseleave:n[20]||(n[20]=h=>e.onMouseLeaveForTip(h))},{default:o.withCtx(()=>[o.createVNode(c)]),_:1},8,["onClick"]),o.createVNode(f,{onClick:h=>e.toLeftFixed(d.sortIndex),onMouseover:n[21]||(n[21]=h=>e.onMouseOverForTip(h,e.fixedLeftText)),onMouseleave:n[22]||(n[22]=h=>e.onMouseLeaveForTip(h)),class:"is-reverse"},{default:o.withCtx(()=>[o.createVNode(m)]),_:1},8,["onClick"])])],40,Ec))),128))])):o.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const In=Ue(dc,[["render",Dc]]);let Vc=class{proxy;constructor(n){this.proxy=n}async load(n,l,t,r,a,i,u){if(Array.isArray(l)){let c=(t-1)*r,f=c+r;f>l.length&&(f=l.length);const m=l.slice(c,f);return{totalSize:l.length,page:m}}if(typeof l=="function")return await Reflect.apply(l,null,[t,r,a,i,u]);const s=je(this.proxy,n);return s===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(We(a)&&o.isReactive(a)&&(a=o.toRaw(a)),await Reflect.apply(s,null,[l,t,r,a,i,u]))}};function Rc(){const e=o.getCurrentInstance();return new Vc(e.proxy)}class Fc{proxy;constructor(n){this.proxy=n}async load(n){let l=null;const t=je(this.proxy,"tableSetting");return typeof t=="function"&&(l=await Reflect.apply(t,null,["load",n])),l}save(n,l){const t=je(this.proxy,"tableSetting");typeof t=="function"&&Reflect.apply(t,null,["save",n,l])}remove(n){const l=je(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["remove",n])}}function Vr(){const e=o.getCurrentInstance();return new Fc(e.proxy)}const Ac=Symbol.for("TableStateKey"),Rr={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]},rowClassName:{type:[Function,String]},cellClassName:{type:[Function,String]},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"}},Fr={showPagination:{type:[Boolean],required:!1,default:()=>!0},pageIndex:{type:[Number],required:!1,default:()=>1},hideOnSinglePage:{type:[Boolean],required:!1,default:()=>!0},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},paginationSize:{type:[String],required:!1,default:()=>"default"},paginationAppendSizeTo:{type:[String],required:!1},paginationTeleported:{type:[Boolean],required:!1,default:()=>!0},paginationPopperClass:{type:[String],required:!1},paginationpPrevText:{type:[String],required:!1},paginationPrevIcon:{type:[Object,String],required:!1},paginationNextText:{type:[String],required:!1},paginationNextIcon:{type:[Object,String],required:!1},paginationDisabled:{type:[Boolean],required:!1}},Do={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:()=>"不固定"}},Mc={infiniteLoad:{type:Boolean,default:()=>!1},loadText:{type:String},noMoreText:{type:String}};function Lc(e,n){let l=n.split("."),t=e;for(let r=0;r<l.length;r++){let a=l[r],i=0,u=a.indexOf("["),s=u==-1?-1:a.indexOf("]",u);for(;u!==-1&&s!==-1;){let c=a.substring(u+1,s);if(/^\d+$/.test(c)){let f=parseInt(c);if(i==0){let m=a.substring(0,u);t=t[m][f]}else t=t[f];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(t=t[a])}return t}function Vo(e,n){return e.filter(t=>{for(let r in n){const a=n[r],i=Lc(t,r);if(a!==i)return!1}return!0})}function Bc(e,n,l){return{props:{...$e,...Ve,...Rr,...Fr,...Do,...Mc},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(t,r){const{locale:a,toLocaleRefs:i}=Fe.useFoxI18n(n),u=i(t,["loadText","noMoreText"]),{emitEvent:s,broadcast:c}=Ee({componentName:e,validateHandler:{getValue(...ne){return v.value}}},t.prop??r.attrs.name),f=e,m=o.computed(()=>({[f]:!0})),p=o.computed(()=>({[`${f}__setting`]:!0})),w=o.computed(()=>({[`${f}__footer`]:!0,[`${f}__footer__${t.footerAlign}`]:!0})),S=o.computed(()=>({[`${f}__pagination`]:!0,[`${f}__pagination__${t.paginationAlign}`]:!0})),d=o.shallowRef({}),h=o.computed(()=>({...d.value,...t.params??{},...t.baseParams??{}})),O=o.ref(t.infiniteLoad===!0?0:t.pageIndex),x=o.ref(t.pageSize),b=ce(t.infiniteLoad);b||(o.watch(()=>t.pageIndex,ne=>{O.value=ne}),o.watch(()=>t.pageSize,ne=>{x.value=ne}),o.watch([O,x],([ne,re],[ae,ue])=>{re!==ue&&(O.value=1,ne=1),Y(t.data,ne,re,h.value)}));const q=()=>Array.isArray(t.data)?!0:ce(t.autoLoad);q()&&o.watch([()=>t.data,h],async([ne,re],[ae,ue])=>{q()&&(ne!==ae&&(y=!0),!(!Array.isArray(ne)&&tt(ne,ae)&&tt(re,ue))&&(b?(O.value=0,D.value=!0,v.value=[],k()):O.value===1?Y(ne,O.value,x.value,re):O.value=1))},{deep:!0});const _=ne=>{O.value=ne,s("page-index-change",ne)},B=ne=>{x.value=ne,s("page-size-change",ne)},D=o.ref(!0),N=o.ref(0),v=o.ref(),j=Rc();let y=!0;const L=Ae(o.computed(()=>t.appearLoad),"appearLoad",_e.Near,ne=>ce(ne)),Y=async(ne,re,ae,ue,Re)=>{y=!1;try{if(Re===!0){if(!D.value)return!1;const ve=await j.load("table",ne,re,ae,ue,y,a.value);return N.value=ve.totalSize,!ve.page||!Array.isArray(ve.page)||(Reflect.apply([].push,v.value,ve.page),setTimeout(()=>{s("loaded-data")},250),(v.value?.length??0)>=N.value)||ve.page.length<ae?(D.value=!1,!1):!0}else{const ve=await j.load("table",ne,re,ae,ue,y,a.value);return N.value=ve.totalSize,v.value=ve.page??[],setTimeout(()=>{s("loaded-data")},250),!0}}catch(ve){console.error("[FoxUI] Load Table Data Fail",ve),N.value=0,v.value=[]}return!1};let R=!1;const k=async()=>{if(!R){if(R=!0,!D.value){R=!1;return}O.value+=1,await Y(t.data,O.value,x.value,h.value,!0),R=!1}},F=(ne={},re=!1)=>new Promise(async ae=>{d.value={...o.toRaw(ne??{})},re||(O.value=t.pageIndex??1),b===!0?(O.value=0,v.value=[],D.value=!0,await k()):await Y(t.data,O.value,x.value,h.value),ae()}),z=()=>{N.value=0,v.value=[],b===!0&&(O.value=0,D.value=!0)};let X=!1;const ee=()=>{X||(X=!0,F())},P=o.ref(null);if(b===!0){let ne=null;const re=()=>{P.value&&(ne=new IntersectionObserver(ue=>{let Re=!1;for(let ve of ue)if(ve.intersectionRatio>0){Re=!0;break}Re&&k()}),ne.observe(P.value))},ae=()=>{!ne||!P.value||(ne.unobserve(P.value),ne=null)};o.onMounted(re),o.onBeforeUnmount(ae)}q()&&!L.value&&F();const te=o.ref(null);o.provide(Ac,{currentRow:te});const E=(ne,re)=>{te.value=ne,s("current-change",ne,re)},$=(ne,re,ae)=>{s("row-click",ne,re,ae),ce(t.rowClickSelectable)===!0&&Te?.value.toggleRowSelection(ne)},M=[],A=(ne,re)=>{if(s("expand-change",ne,re),ce(t.uniqueExpansion))if(Array.isArray(re)&&re.length==0){const ae=M.length;M.splice(0,ae)}else{M.forEach(ue=>{ue!==ne&&Te?.value.toggleRowExpansion(ue,!1)});const ae=M.length;M.splice(0,ae,ne)}},C=r.attrs.id??t.prop??r.attrs.name,K=Vr(),Z=o.ref([]);let le=[];const G=()=>({srcColumnPropertyList:le.map(re=>({...re})),columnPropertyList:Z.value}),U=ne=>{Z.value=[...ne],W()},I=async()=>{const ne=await K.load(C);ne&&(Z.value=ne)},W=()=>{K.save(C,Z.value)},J=()=>{K.remove(C)};I();const V=ne=>ne?ne.type?ne.type:ne.label?ne.prop:"":"",H=(ne,re={})=>{for(let ae in re){const ue=re[ae];typeof ue!="function"&&(ne[ae]=ue)}},Q=ne=>{const re=ne?ne():[],ae=new Map;if(le=[],re.forEach(ue=>{const ve=ue;if(!ve.props)return;const Ze=V(ve.props);ae.set(Ze,ve);const Ke={label:"",prop:""};H(Ke,ve.props),le.push(Ke)}),Z.value.length===le.length){const ue=[];for(let Re of Z.value){const ve=V(Re),Ze=ae.get(ve);if(!Ze)return re;if(Re.visible===!1)continue;const Ke=Ze;Ke.props.fixed=Re.fixed,ue.push(Ke)}return ue}return re},oe=o.shallowRef(new Map),se=({row:ne,column:re,rowIndex:ae,columnIndex:ue})=>{const Re=`${ae}_${re.property}`,ve=`${ae}_${ue}`;let Ze=oe.value.get(Re);return Ze||(Ze=oe.value.get(ve)),typeof Ze=="string"?Ze:""},fe=ne=>ne?re=>{const ae=[];let ue=se(re);return ue&&ae.push(ue),ue=ue=typeof ne=="function"?ne(re):ne,ue&&ae.push(ue),ae.length===0?"":ae.join(" ")}:se,pe=(ne=!1)=>{oe.value.forEach((re,ae)=>{ye(ae,re,ne)})},ye=(ne,re,ae=!1)=>{const ue=`${ne}_item`;ae?(c.clearPersistantMessage(),Array.isArray(re)?c.emitToChildren({name:ne},"setCellClassNames",[]):c.emitToChildren({name:ue},"setCustomClassName","")):Array.isArray(re)?c.emitToChildren({name:ne,cachePolicy:"Persistant",uniqueId:ue},"setCellClassNames",re):c.emitToChildren({name:ue,cachePolicy:"Persistant",uniqueId:ue},"setCustomClassName",re)},ke=(ne,re,ae)=>{const ue=`${ne}_${re}`;ae?(oe.value.set(ue,ae),ye(ue,ae)):(oe.value.delete(ue),ye(ue,"",!0)),o.triggerRef(oe)},ht=ne=>{pe(!0),oe.value.clear(),ne.forEach(re=>{const ae=`${re.rowIndex}_${re.column}`;Array.isArray(re.children)?oe.value.set(ae,re.children):typeof re.cellClassName=="string"&&oe.value.set(ae,re.cellClassName)}),pe(),o.triggerRef(oe)},Ct=()=>{pe(),oe.value.clear(),o.triggerRef(oe)},Xe=o.shallowRef(new Map),Ln=({rowIndex:ne})=>{const re=`${ne}`;return Xe.value.get(re)??""},zg=ne=>ne?re=>{const ae=[];let ue=Ln(re);return ue&&ae.push(ue),ue=typeof ne=="function"?ne(re):ne,ue&&ae.push(ue),ae.length===0?"":ae.join(" ")}:Ln,Hg=(ne,re)=>{const ae=`${ne}`;re?Xe.value.set(ae,re):Xe.value.delete(ae),o.triggerRef(Xe)},Kg=()=>{Xe.value.clear(),o.triggerRef(Xe)},Te=o.ref();return xe({clearSelection:()=>Te?.value.clearSelection(),getSelectionRows:()=>Te?.value.getSelectionRows(),toggleRowSelection:(ne,re)=>{Te?.value.toggleRowSelection(ne,re)},toggleRowSelectionByProp:(ne,re)=>{if(!v.value)return;const ae=Vo(v.value,ne);ae.length!==0&&ae.forEach(ue=>{Te?.value.toggleRowSelection(ue,re)})},toggleAllSelection:()=>{Te?.value.toggleAllSelection()},toggleRowExpansion:(ne,re)=>{Te?.value.toggleRowExpansion(ne,re)},toggleRowExpansionByProp:(ne,re)=>{if(!v.value)return;const ae=Vo(v.value,ne);ae.length!==0&&ae.forEach(ue=>{Te?.value.toggleRowExpansion(ue,re)})},setCurrentRow:ne=>{Te?.value.setCurrentRow(ne)},setCurrentRowByProp:ne=>{if(!v.value)return;const re=Vo(v.value,ne);re.length!==0&&Te?.value.setCurrentRow(re[0])},getCurrentRow:()=>te.value,clearSort:()=>{Te?.value.clearSort()},clearFilter:ne=>{Te?.value.clearFilter(ne)},doLayout:()=>{Te?.value.doLayout()},sort:(ne,re)=>{Te?.value.sort(ne,re)},scrollTo:(ne,re)=>{Te?.value.scrollTo(ne,re)},setScrollTop:ne=>{Te?.value.setScrollTop(ne)},setScrollLeft:ne=>{Te?.value.setScrollLeft(ne)},loadData:F,clearData:z,getData(){return v.value},getTotalSize(){return N.value},getPageIndex(){return O.value},getPageSize(){return x.value},getColumnSetting:G,setColumnSetting:U,removeColumnSetting:J,setCellClassName:ke,setCellClassNames:ht,clearCellClassName:Ct,setRowClassName:Hg,clearRowClassName:Kg}),()=>{const re={...Ge(r.attrs),onCurrentChange:E,onRowClick:$,onExpandChange:A,data:v.value,ref:Te,class:m.value,"cell-class-name":fe(t.cellClassName),"row-class-name":zg(t.rowClassName)},ae={};if(r.slots.default&&(ae.default=()=>Q(r.slots.default)),r.slots.append&&(ae.append=r.slots.append),r.slots.empty&&(ae.empty=r.slots.empty),b===!0){const Qe=[];if(D.value){const Pt=o.h(Ie.Loading,{class:`${f}__infinite-icon`});Qe.push(Pt);const hl=o.h("span",{class:`${f}__infinite-text`},[u.loadText.value]);Qe.push(hl)}else{const Pt=o.h("span",{class:`${f}__infinite-text`},[u.noMoreText.value]);Qe.push(Pt)}const gt={ref:P,class:`${f}__infinite`},dl=o.h("div",gt,Qe);ae.append=()=>dl}const ue=o.h(T.ElTable,re,ae),Re=[];if(Re.push(ue),!b){let Qe=null;if(typeof r.slots.pagination=="function")Qe=r.slots.pagination();else if(t.showPagination){const gt={class:S.value,total:N.value,pageSize:x.value,"onUpdate:pageSize":B,pageSizes:t.pageSizes,currentPage:O.value,"onUpdate:currentPage":_,hideOnSinglePage:t.hideOnSinglePage,layout:t.paginationLayout,size:t.paginationSize,background:t.paginationBackground,appendSizeTo:t.paginationAppendSizeTo,teleported:t.paginationTeleported,popperClass:t.paginationPopperClass,prevText:t.paginationpPrevText,prevIcos:t.paginationPrevIcon,nextText:t.paginationNextText,pnextIcon:t.paginationNextIcon,disabled:t.paginationDisabled};Qe=o.h(T.ElPagination,gt)}if(t.showSetting){const gt=[];Qe&&gt.push(Qe);const dl=o.h(T.ElIcon,{class:p.value},{default:()=>o.h(Ie.Setting)}),Pt=mt(t,Do),hl=o.h(In,{...Pt,tableRef:{getColumnSetting:G,setColumnSetting:U,removeColumnSetting:J}},{default:()=>dl});gt.push(hl);const Wg=o.h("div",{class:w.value},gt);Re.push(Wg)}else Qe&&Re.push(Qe)}const ve={default:()=>Re},Ke={...De(t,Rr,Fr,Do)};return t.prop&&(Ke.prop=`${t.prop}_item`),Ke.contentClass=`${f}__wrap`,Ke.errorMarkClass="is-table-error",L.value&&q()&&(Ke["appear-listen"]=!0,Ke.onAppear=ee),o.h(l,Ke,ve)}}}}const{componentName:qc,create:Pc,scope:_c}=ie("table-item"),Ro=Pc(Bc(qc,_c,Ne));function wt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function At(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function jc(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let zc=class{proxy;constructor(n){this.proxy=n}async load(n,l,t){if(Array.isArray(l))return l;if(typeof l=="function")return await l(t);const r=je(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(We(t)&&o.isReactive(t)&&(t=o.toRaw(t)),await r(l,t))}};function Hc(){const e=o.getCurrentInstance();return new zc(e.proxy)}function Ar(e,n,l){if(n===l)return!0;if(n===null||l===null)return!1;const t=wt(e,n),r=wt(e,l);if(t!==r)return!1;const a=At(e,n),i=At(e,l);return a===i}function Kc(e,n,l,t){if(t.length==0||n===""||n===null||n===void 0)return null;let r=null;for(let a of t){let i=!1;if(l==="text")i=wt(e,a)===n;else if(l==="item")i=Ar(e,a,n);else{let u=At(e,a);u==null&&(u=wt(e,a)),i=u===n}if(i){r=a;break}}return r}function Wc(e){return{text:e,value:e}}function Yc(e,n,l){return typeof e.itemOptions=="function"?e.itemOptions(n,l):e.itemOptions}const Mr={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 Uc(e,n,l){return{inheritAttrs:!0,props:{...$e,...Ve,...Mr},emits:["change","update:modelValue","setValue"],setup(t,r){const a=o.ref(null),i=Le(o.computed(()=>a.value??t.disabled)),u=o.ref(null),s=Me(o.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),f=o.ref(null),m=o.ref(null),p=(v,j,y,L=!0)=>{const Y=Kc(t,v,j,y);if(Y===null){if(m.value===null)return;m.value=null,f.value=null,L&&(c("update:modelValue",null),c("change",null));return}if(!Ar(t,Y,m.value)){f.value=v;const k=o.toRaw(Y);m.value=k;let F=null;t.valueType==="text"?F=wt(t,k):t.valueType==="item"?F=k:F=At(t,k),L&&(c("update:modelValue",F),c("change",F))}},w=o.ref([]),S=Ae(o.computed(()=>t.appearLoad),"appearLoad",_e.Near,v=>ce(v)),d=Hc(),h=async(v,j)=>{if(v){const y=await d.load("radio",v,j);if(y.length>0)if(typeof y[0]=="string"){let R=y.map(k=>Wc(k));w.value=R}else w.value=y}};o.watch([()=>t.source,()=>t.params],async([v,j])=>{h(v,j)},{immediate:!S.value});let O=!1;const x=()=>{O||(O=!0,h(t.source,t.params))};o.watch([()=>w.value,()=>t.modelValue],([v,j])=>{p(j,t.valueType,v,!1),c("setValue",j)});const b=e,q=o.computed(()=>({[b]:!0,[`is-${t.direction}`]:!0})),_=v=>{p(v,"value",w.value,!0)};let B=ge(t,"hintText"),D=ge(t,"hintVisible");const N=(v,j)=>{const y=[];return v.forEach((L,Y)=>{const R=At(t,L),k=wt(t,L);let F=jc(t,L);i.value===!0&&(F=i.value),s.value===!0&&(F=s.value);const z=Yc(t,L,Y)??{},X=`${R}_${Y}`,ee={...z,key:X,value:R,size:t.size,border:ce(t.border)};F&&(ee.disabled=F),t.itemType==="button"?y.push(o.h(T.ElRadioButton,ee,{default:()=>[k]})):typeof j=="function"?y.push(o.h(T.ElRadio,ee,{default:()=>j(L)})):y.push(o.h(T.ElRadio,ee,{default:()=>[k]}))}),y};return xe({setDisabled:v=>{a.value=v},setReadonly:v=>{u.value=v}}),()=>{const j={...Ge(r.attrs),class:q.value,disabled:i.value||s.value,modelValue:f.value,"text-color":t.textColor,fill:t.fill,onChange:_},y=[],L={};r.slots.options?L.default=r.slots.options:L.default=()=>N(w.value,r.slots.text);const Y=o.h(T.ElRadioGroup,j,L);y.push(Y);const R={default:()=>y};R.label=r.slots.default,R.fixedPreTip=r.slots.fixedPreTip,R.fixedTip=r.slots.fixedTip;const F={...De(t,Mr),hintText:B.value,hintVisible:D.value};return t.prop&&(F.prop=`${t.prop}_item`),S.value&&(F["appear-listen"]=!0,F.onAppear=x),o.h(l,F,R)}}}}const{componentName:Gc,create:Xc,scope:Zc}=ie("radio-item"),Fo=Xc(Uc(Gc,Zc,Ne));function St(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function xt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Qc(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Jc=class{proxy;constructor(n){this.proxy=n}async load(n,l,t){if(Array.isArray(l))return l;if(typeof l=="function")return await l(t);const r=je(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(We(t)&&o.isReactive(t)&&(t=o.toRaw(t)),await r(l,t))}};function ef(){const e=o.getCurrentInstance();return new Jc(e.proxy)}function Lr(e,n,l){if(n===l)return!0;if(n===null||l===null)return!1;const t=St(e,n),r=St(e,l);if(t!==r)return!1;const a=xt(e,n),i=xt(e,l);return a===i}function tf(e,n,l,t){if(t.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const r=[];return n.forEach(a=>{for(let i of t){let u=!1;if(l==="text")u=St(e,i)===a;else if(l==="item")u=Lr(e,i,a);else{let s=xt(e,i);s==null&&(s=St(e,i)),u=s===a}if(u){r.push(i);break}}}),r}function nf(e){return{text:e,value:e}}function of(e,n,l){return typeof e.itemOptions=="function"?e.itemOptions(n,l):e.itemOptions}const Br={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 lf(e,n,l){return{inheritAttrs:!0,props:{...$e,...Ve,...Br},emits:["change","update:modelValue","setValue"],setup(t,r){const a=o.ref(null),i=Le(o.computed(()=>a.value??t.disabled)),u=o.ref(null),s=Me(o.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),f=o.ref([]),m=o.ref([]),p=(v,j,y,L=!0)=>{const Y=tf(t,v,j,y);if(Y===null){if(m.value===null||m.value.length===0)return;f.value=[],m.value=[],L&&(c("update:modelValue",[]),c("change",[]));return}let R=!0;if(Y.length!==m.value.length)R=!1;else for(let k=0;k<Y.length;k++){const F=Y[k],z=m.value[k];if(!Lr(t,F,z)){R=!1;break}}if(!R){m.value=Y;let k=[],F=[];Y.forEach(X=>{k.push(xt(t,X)),t.valueType==="text"?F.push(St(t,X)):t.valueType==="item"?F.push(X):F.push(xt(t,X))}),f.value=k;const z=o.toRaw(F);L&&(c("update:modelValue",z),c("change",z))}},w=o.ref([]),S=Ae(o.computed(()=>t.appearLoad),"appearLoad",_e.Near,v=>ce(v)),d=ef(),h=async(v,j)=>{if(v){const y=await d.load("checkbox",v,j);if(y.length>0)if(typeof y[0]=="string"){let R=y.map(k=>nf(k));w.value=R}else w.value=y}};o.watch([()=>t.source,()=>t.params],async([v,j])=>{h(v,j)},{immediate:!S.value});let O=!1;const x=()=>{O||(O=!0,h(t.source,t.params))};o.watch([()=>w.value,()=>t.modelValue],([v,j])=>{p(j,t.valueType,v,!1),c("setValue",j)});const b=e,q=o.computed(()=>({[b]:!0,[`is-${t.direction}`]:!0})),_=v=>{p(v,"value",w.value,!0)};let B=ge(t,"hintText"),D=ge(t,"hintVisible");const N=(v,j)=>{const y=[];return v.forEach((L,Y)=>{const R=xt(t,L),k=St(t,L);let F=Qc(t,L);i.value===!0&&(F=i.value),s.value===!0&&(F=s.value);const z=of(t,L,Y)??{},X=`${R}_${Y}`,ee={...z,key:X,class:t.itemClass,value:R,size:t.size,border:ce(t.border)};F&&(ee.disabled=F),t.itemType==="button"?y.push(o.h(T.ElCheckboxButton,ee,{default:()=>[k]})):typeof j=="function"?y.push(o.h(T.ElCheckbox,ee,{default:()=>j(L)})):y.push(o.h(T.ElCheckbox,ee,{default:()=>[k]}))}),y};return xe({setDisabled:v=>{a.value=v},setReadonly:v=>{u.value=v}}),()=>{const j={...Ge(r.attrs),class:q.value,disabled:i.value||s.value,modelValue:f.value,"text-color":t.textColor,fill:t.fill,max:Ce(t.max),min:Ce(t.min),onChange:_},y=[],L={};r.slots.options?L.default=r.slots.options:L.default=()=>N(w.value,r.slots.text);const Y=o.h(T.ElCheckboxGroup,j,L);y.push(Y);const R={default:()=>y};R.label=r.slots.default,R.fixedPreTip=r.slots.fixedPreTip,R.fixedTip=r.slots.fixedTip;const F={...De(t,Br),hintText:B.value,hintVisible:D.value};return t.prop&&(F.prop=`${t.prop}_item`),S.value&&(F["appear-listen"]=!0,F.onAppear=x),o.h(l,F,R)}}}}const{componentName:rf,create:af,scope:sf}=ie("checkbox-item"),Ao=af(lf(rf,sf,Ne)),qr={modelValue:{type:[Number,String],required:!1}};function uf(e,n,l){return{props:{...$e,...Ve,...qr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=o.ref(null),i=Le(o.computed(()=>a.value??t.disabled)),u=o.ref(null),s=Me(o.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),f=ge(t,"modelValue",O=>Ce(O),c),m=e,p=o.computed(()=>({[m]:!0})),w=O=>{c("update:modelValue",O),c("change",O)};let S=ge(t,"hintText"),d=o.ref(!1);const h=o.ref();return xe({setDisabled:O=>{a.value=O},setReadonly:O=>{u.value=O}}),()=>{const x={...Ge(r.attrs),ref:h,class:p.value,readonly:s.value||i.value,modelValue:f.value,onChange:w},b={},q=[],_=o.h(T.ElRate,x,b);q.push(_);const B={default:()=>q};B.label=r.slots.default,B.fixedPreTip=r.slots.fixedPreTip,B.fixedTip=r.slots.fixedTip;const N={...De(t,qr),hintText:S.value,hintVisible:d.value};return t.prop&&(N.prop=`${t.prop}_item`),o.h(l,N,B)}}}}const{componentName:cf,create:ff,scope:df}=ie("rate-item"),Mo=ff(uf(cf,df,Ne)),Pr={modelValue:{type:[Boolean,String,Number],required:!1}};function hf(e,n,l){return{props:{...$e,...Ve,...Pr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=o.ref(null),i=Le(o.computed(()=>a.value??t.disabled)),u=o.ref(null),s=Me(o.computed(()=>u.value??t.readonly)),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),f=ge(t,"modelValue",null,c),m=e,p=o.computed(()=>({[m]:!0})),w=O=>{c("update:modelValue",O),c("change",O)};let S=ge(t,"hintText"),d=ge(t,"hintVisible");const h=o.ref();return xe({setDisabled:O=>{a.value=O},setReadonly:O=>{u.value=O}}),()=>{const x={...Ge(r.attrs),ref:h,class:p.value,readonly:s.value,disabled:i.value,modelValue:f.value,onChange:w},b={},q=[],_=o.h(T.ElSwitch,x,b);q.push(_);const B={default:()=>q};B.label=r.slots.default,B.fixedPreTip=r.slots.fixedPreTip,B.fixedTip=r.slots.fixedTip;const N={...De(t,Pr),hintText:S.value,hintVisible:d.value};return t.prop&&(N.prop=`${t.prop}_item`),o.h(l,N,B)}}}}const{componentName:gf,create:mf,scope:yf}=ie("switch-item"),Lo=mf(hf(gf,yf,Ne)),_r={modelValue:{type:[String,Number,Boolean,Object]},data:{type:[String,Function,Array],required:!0},params:{type:[Object],required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},leafKey:{type:[String],required:!1,default:"leaf"},classKey:{type:[String],required:!1,default:"class"},lazy:{type:[Boolean],required:!1},load:{type:[Function],required:!1}};let pf=class{proxy;constructor(n){this.proxy=n}async load(n,l,t,r,a){if(Array.isArray(l))return l;if(typeof l=="function")return await l(t,r);const i=je(this.proxy,n);return i===null?(console.error(`${n} component not found api function`),[]):(We(t)&&o.isReactive(t)&&(t=o.toRaw(t)),await i(l,t,r))}};function bf(){const e=o.getCurrentInstance();return new pf(e.proxy)}const jr={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function vf(e,n,l){return{props:{...$e,...Ve,...jr,..._r},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=o.ref(null),i=Le(o.computed(()=>a.value??t.disabled)),u=o.ref(null),s=Me(o.computed(()=>u.value??t.readonly)),c=o.ref(!1),{emitEvent:f}=Ee({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},t.prop??r.attrs.name),m=ge(t,"modelValue",null,f),p=e,w=o.computed(()=>({[p]:!0})),S=L=>{m.value=L,f("update:modelValue",L),f("change",L)};let d=ge(t,"hintText"),h=o.ref(!1);const O=L=>{let R=L.target.value;c.value=!0,he(d.value)||(h.value=!0),f("focus",R,L)},x=L=>{setTimeout(()=>{h.value&&(h.value=!1),c.value=!1},0);let R=L.target.value;t.maxLength&&R.length>Number(t.maxLength)&&(R=R.slice(0,Number(t.maxLength))),q.value||f("blur",R,L)},b=()=>{f("clear","")},q=o.ref(!1),_=L=>{q.value=L,f("visible-change",L),L||f("selected")},B=o.ref([]),D=bf(),N=async(L,Y)=>{try{const R=await D.load("treeselect",L,Y);B.value=R}catch(R){console.error(R)}};o.watch([()=>t.data,()=>t.params,()=>t.lazy],([L,Y,R])=>{!L||R||N(L,Y)},{immediate:!0});let v=null;t.lazy&&(typeof t.load=="function"?v=t.load:v=async(L,Y)=>{debugger;let R={};t.params&&Object.assign(R,t.params),L&&Object.assign(R,L);const k=await D.load("treeselect",t.data,R,!0);Y(k)});let j={label:t.textKey,value:t.valueKey,children:t.childrenKey,isLeaf:t.leafKey,class:t.classKey};const y=o.ref();return xe({focus:()=>{y?.value.focus()},blur:()=>{y?.value.blur()},setDisabled:L=>{a.value=L},setReadonly:L=>{u.value=L}}),()=>{const Y={...Ge(r.attrs),ref:y,class:w.value,disabled:i.value||s.value,modelValue:m.value,"onUpdate:modelValue":S,lazy:t.lazy,props:j,onClear:b,onFocus:O,onBlur:x,onVisibleChange:_};v?Y.load=v:Y.data=B.value;const R={};r.slots.option&&(R.default=r.slots.option);const k=[],F=o.h(T.ElTreeSelect,Y,R);k.push(F);const z={default:()=>k};z.label=r.slots.default,z.fixedPreTip=r.slots.fixedPreTip,z.fixedTip=r.slots.fixedTip;const ee={...De(t,jr,_r),hintText:d.value,hintVisible:h.value};return t.prop&&(ee.prop=`${t.prop}_item`),o.h(l,ee,z)}}}}const{componentName:wf,create:Sf,scope:xf}=ie("tree-select-item"),Bo=Sf(vf(wf,xf,Ne)),Tf={},Cf={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"};function $f(e,n){return o.openBlock(),o.createElementBlock("svg",Cf,[...n[0]||(n[0]=[o.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)])])}const Nf=Ue(Tf,[["render",$f]]),{create:kf}=ie("group-setting"),Ef={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:"到底部"}},If=kf({components:{FoxPopover:T.ElPopover,FoxCheckbox:T.ElCheckbox,FoxCheckboxGroup:T.ElCheckboxGroup,FoxButton:T.ElButton,FoxIcon:T.ElIcon,DragIcon:Nf,Download:Ie.Download,RefreshLeft:Ie.RefreshLeft},props:{...Ef},emits:["change"],setup(e,{emit:n,attrs:l,expose:t}){let r=null;const a=o.ref([]),i=Vr(),u=E=>E.length>1,s=()=>{const E=[],$=[...a.value];a.value=$.map((A,C)=>(A.visible!==!1&&E.push(A.prop),{...A,sortIndex:C})),a.value.length===E.length?d.value=!0:E.length>0&&(h.value=!0),b.value=E},c=E=>{let $=null;if(typeof E=="string")$=document.querySelectorAll(`.fox-group[prop="${E}"] > div > .fox-item[prop]`);else if(E&&typeof E=="object"){const A=E.$el??E;typeof A.querySelectorAll=="function"&&($=A.querySelectorAll(".fox-item[prop]"))}if(!$)return[];const M=[];return $.forEach(A=>{const C=A.querySelector(".label--string");let K="";C&&(K=C.textContent??"");const Z=A.getAttribute("prop")??"",G=window.getComputedStyle(A,null).getPropertyValue("display");M.push({label:K,prop:Z,sortIndex:0,visible:G!=="none"})}),M},f=()=>{if(!r){const E=c(e.groupRef??e.groupProp);if(E.length===0)return!1;r=E}return!0},m=async(E=!1)=>{const $=await i.load(e.groupProp),M=A=>{if(!A||!r)return;const C=r.map(K=>({...K}));Array.isArray($)&&$.forEach(K=>{C.some(Z=>{if(Z.prop===K.prop){const le=Z.label;return Object.assign(Z,K),Z.label=le,!0}return!1})}),a.value=C.sort((K,Z)=>K.sortIndex-Z.sortIndex),s(),E&&w(!1)};r?M(!0):Zt(f,e.initDelay,5,50,!1,M)},p=()=>{const E=r??[];a.value=E.map($=>({...$})),s(),w()},w=(E=!0)=>{E&&i.save(e.groupProp,a.value);const $=a.value.map(M=>({...M}));n("change",$)},S=o.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),d=o.ref(!1),h=o.ref(!1),O=E=>{const $=[];a.value.forEach(A=>{E&&$.push(A.prop),A.visible=E}),d.value=!1,h.value=!1,a.value.length===$.length?d.value=!0:$.length>0&&(h.value=!0),b.value=$,w()},x=()=>{p()},b=o.ref([]),q=E=>{a.value.forEach(M=>{const A=E.indexOf(M.prop)!==-1;M.visible=A}),d.value=!1,h.value=!1;const $=a.value.length;E.length===$?d.value=!0:E.length>0&&(h.value=!0),w()},_=()=>{m()};o.onMounted(()=>{m(!0)});const B={currentRow:null,index:null},D=E=>E?E.dataset&&E.dataset.role==="row"?E:E.tagName.toLowerCase()!=="body"?(E=E.parentElement,D(E)):null:null,N=E=>{const $=E.currentTarget;$&&$.dataset&&(B.index=$.dataset.index)},v=E=>{B.currentRow&&(B.currentRow.classList.remove("is-dragover"),B.currentRow=null),B.index=null},j=E=>{const $=E.currentTarget;E.relatedTarget;const M=D($);M&&(E.preventDefault(),B.currentRow&&B.currentRow!==M&&B.currentRow.classList.remove("is-dragover"),M.classList.add("is-dragover"),B.currentRow=M)},y=E=>{E.preventDefault(),B.currentRow&&(B.currentRow.classList.remove("is-dragover"),B.currentRow=null)},L=E=>{const $=E.currentTarget,M=D($);if(!M)return;E.preventDefault();const A=Number(B.index),C=Number(M.dataset.index);if(A!==C){if(A<C){const K=a.value[A];a.value.splice(A,1),a.value.splice(C,0,K)}else{const K=a.value[A];a.value.splice(A,1),a.value.splice(C+1,0,K)}s(),w()}},Y=E=>{const $=a.value[E];a.value.splice(E,1),a.value.splice(0,0,$),s(),w()},R=E=>{const $=a.value[E];a.value.splice(E,1),a.value.push($),s(),w()};t({refresh:()=>{r=null,m(!1)}});const k=new Map;let F=null;function z(E){const $=document.createRange();return $.setStart(E,0),$.setEnd(E,E.childNodes.length),$.getBoundingClientRect().width}return{attrs:l,itemPropertyList:a,isDraggble:u,isCheckAll:d,isIndeterminate:h,handleCheckAllChange:O,handleReset:x,checkedValue:b,handleCheckChange:q,onShow:_,onDragStart:N,onDragEnd:v,onDragOver:j,onDragLeave:y,onDrop:L,checkboxLabelStyle:S,toTop:Y,toBottom:R,onMouseOverForOverflowText:(E,$,M)=>{const A=E.currentTarget;if(A){const C=Math.floor(A.offsetWidth);if(Math.floor(z(A))>C){let Z=k.get($);if(Z){if(Z===F)return;Be.hide(Z)}Z=Be.show(A,M,{type:"text",placement:"top",closeOnClick:!1}),k.set($,Z),F=Z}}},onMouseLeaveForOverflowText:(E,$)=>{const M=k.get($);M&&(Be.hide(M),M===F&&(F=null))},onMouseOverForTip:(E,$)=>{const M=E.currentTarget;M&&(F&&Be.hide(F),F=Be.show(M,$,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:E=>{F&&(Be.hide(F),F=null)}}}}),Of={class:"fox-group-setting"},Df={class:"fox-group-setting__header"},Vf={class:"fox-group-setting__body"},Rf={class:"fox-group-setting__body-list","data-role":"container"},Ff=["data-index","draggable"],Af=["onMouseover","onMouseleave"],Mf={class:"tools-item"};function Lf(e,n,l,t,r,a){const i=o.resolveComponent("FoxCheckbox"),u=o.resolveComponent("FoxButton"),s=o.resolveComponent("DragIcon"),c=o.resolveComponent("Download"),f=o.resolveComponent("FoxIcon"),m=o.resolveComponent("FoxCheckboxGroup"),p=o.resolveComponent("FoxPopover");return o.openBlock(),o.createBlock(p,o.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),default:o.withCtx(()=>[o.createElementVNode("div",Of,[o.createElementVNode("div",Df,[o.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=w=>e.isCheckAll=w),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),o.createVNode(u,{onClick:e.handleReset,link:"",type:"primary"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),o.createElementVNode("div",Vf,[o.createVNode(m,{modelValue:e.checkedValue,"onUpdate:modelValue":n[10]||(n[10]=w=>e.checkedValue=w),onChange:e.handleCheckChange},{default:o.withCtx(()=>[o.createElementVNode("div",Rf,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.itemPropertyList,w=>(o.openBlock(),o.createElementBlock("div",{key:w.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":w.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:n[5]||(n[5]=(...S)=>e.onDragStart&&e.onDragStart(...S)),onDragend:n[6]||(n[6]=(...S)=>e.onDragEnd&&e.onDragEnd(...S)),onDrop:n[7]||(n[7]=(...S)=>e.onDrop&&e.onDrop(...S)),onDragover:n[8]||(n[8]=(...S)=>e.onDragOver&&e.onDragOver(...S)),onDragleave:n[9]||(n[9]=(...S)=>e.onDragLeave&&e.onDragLeave(...S))},[e.isDraggble(e.itemPropertyList)?(o.openBlock(),o.createBlock(s,{key:0,class:"icon-item"})):o.createCommentVNode("",!0),o.createVNode(i,{class:"checkbox-item",label:w.prop},{default:o.withCtx(()=>[o.createElementVNode("span",{onMouseover:S=>e.onMouseOverForOverflowText(S,w.prop,w.label),onMouseleave:S=>e.onMouseLeaveForOverflowText(S,w.prop),class:"checkbox-item__label",style:o.normalizeStyle(e.checkboxLabelStyle)},o.toDisplayString(w.label),45,Af)]),_:2},1032,["label"]),o.createElementVNode("div",Mf,[o.createVNode(f,{onClick:S=>e.toTop(w.sortIndex),onMouseover:n[1]||(n[1]=S=>e.onMouseOverForTip(S,e.toTopText)),onMouseleave:n[2]||(n[2]=S=>e.onMouseLeaveForTip(S)),class:"is-reverse"},{default:o.withCtx(()=>[o.createVNode(c)]),_:1},8,["onClick"]),o.createVNode(f,{onClick:S=>e.toBottom(w.sortIndex),onMouseover:n[3]||(n[3]=S=>e.onMouseOverForTip(S,e.toBottomText)),onMouseleave:n[4]||(n[4]=S=>e.onMouseLeaveForTip(S))},{default:o.withCtx(()=>[o.createVNode(c)]),_:1},8,["onClick"])])],40,Ff))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const qo=Ue(If,[["render",Lf]]),Bf={data:{type:[String,Function,Array],required:!1},params:{type:[Object],required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},leafKey:{type:[String],required:!1,default:"leaf"},disabledKey:{type:[String],required:!1,default:"disabled"},classKey:{type:[String],required:!1,default:"class"},autoLoad:{type:[Boolean],required:!1,default:()=>!0},props:{type:[Object],required:!1},filterKeyword:{type:[String,Boolean,Number,Object],required:!1},filterNodeMethod:{type:[Function],required:!1},lazy:{type:[Boolean],required:!1},load:{type:[Function],required:!1}};let qf=class{proxy;constructor(n){this.proxy=n}async load(n,l,t,r,a){if(Array.isArray(l))return l;if(typeof l=="function")return await l(t,r);const i=je(this.proxy,n);return i===null?(console.error(`${n} component not found api function`),[]):(We(t)&&o.isReactive(t)&&(t=o.toRaw(t)),await i(l,t,r))}};function Pf(){const e=o.getCurrentInstance();return new qf(e.proxy)}function _f(e,n,l){return{props:{...yo,...Bf},setup(t,r){const a=e,i=o.computed(()=>({[a]:!0})),u=o.ref([]),s=Pf(),c=async(b,q)=>{try{const _=await s.load("tree",b,q);u.value=_}catch(_){console.error(_)}},f=o.shallowRef({}),m=o.computed(()=>({...f.value,...t.params??{}}));(Array.isArray(t.data)?!0:t.lazy?!1:ce(t.autoLoad))&&o.watch([()=>t.data,()=>m.value],([b,q])=>{b&&c(b,q)},{immediate:!0,deep:!0});let w=null;t.lazy&&(typeof t.load=="function"?w=t.load:w=async(b,q)=>{let _={};t.params&&Object.assign(_,t.params),b&&Object.assign(_,b);const B=await s.load("treeselect",t.data,_,!0);q(B)});const S={label:t.textKey,value:t.valueKey,children:t.childrenKey,isLeaf:t.leafKey,class:t.classKey,disabled:t.disabedKey,...t.props??{}},d=(b={})=>new Promise(async q=>{f.value={...o.toRaw(b??{})},await c(t.data,m.value),q()}),h=function(b,q){if(typeof t.filterNodeMethod=="function")return t.filterNodeMethod(b,q);if(!t.filterKeyword)return!0;const _=`${q[S.label]}`,B=`${b}`;return _.includes(B)},O=o.ref();o.watch(()=>t.filterKeyword,b=>{O.value.filter(b)});const x=b=>(...q)=>{const _=O.value[b];return Reflect.apply(_,O.value,[...q])};return r.expose({loadData:d,filter:x("filter"),updateKeyChildren:x("updateKeyChildren"),getCheckedNodes:x("getCheckedNodes"),setCheckedNodes:x("setCheckedNodes"),getCheckedKeys:x("getCheckedKeys"),setCheckedKeys:x("setCheckedKeys"),setChecked:x("setChecked"),getHalfCheckedNodes:x("getHalfCheckedNodes"),getHalfCheckedKeys:x("getHalfCheckedKeys"),getCurrentKey:x("getCurrentKey"),getCurrentNode:x("getCurrentNode"),setCurrentKey:x("setCurrentKey"),setCurrentNode:x("setCurrentNode"),getNode:x("getNode"),remove:x("remove"),append:x("append"),insertBefore:x("insertBefore"),insertAfter:x("insertAfter")}),()=>{const q={...Ge(r.attrs),class:i.value,lazy:t.lazy,props:S,ref:y=>O.value=y};w?q.load=w:q.data=u.value,q["filter-node-method"]=h;const _=[],B=o.h(T.ElTree,q,r.slots);_.push(B);const D={default:()=>_},v={...mt(t,yo)};return o.h(l,v,D)}}}}const{componentName:jf,create:zf,scope:Hf}=ie("tree-item"),Po=zf(_f(jf,Hf,yn)),Kf=["aria-labelledby"],Wf=o.createElementVNode("path",{d:"M960 572.8H64c-25.6 0-48-22.4-48-48s22.4-48 48-48h896c25.6 0 48 22.4 48 48s-22.4 48-48 48zm-448 448c-25.6 0-48-22.4-48-48v-896c0-25.6 22.4-48 48-48s48 22.4 48 48v896c0 25.6-22.4 48-48 48z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Yf=[Wf],Uf=o.defineComponent({__name:"Uploader",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:n}){const l=e,t=n,r=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=o.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+l.name]:l.name,[l.class]:!!l.class}}),u=o.computed(()=>{const s={};return s.height=a(l.height)??a(l.size),s.width=a(l.width)??a(l.size),s.color=l.color,s});return(s,c)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Yf,14,Kf))}}),Gf=["aria-labelledby"],Xf=o.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),Zf=[Xf],Qf=o.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:n}){const l=e,t=n,r=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=o.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+l.name]:l.name,[l.class]:!!l.class}}),u=o.computed(()=>{const s={};return s.height=a(l.height)??a(l.size),s.width=a(l.width)??a(l.size),s.color=l.color,s});return(s,c)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Zf,14,Gf))}}),Jf=["aria-labelledby"],ed=o.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),td=[ed],_o=o.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:n}){const l=e,t=n,r=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=o.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+l.name]:l.name,[l.class]:!!l.class}}),u=o.computed(()=>{const s={};return s.height=a(l.height)??a(l.size),s.width=a(l.width)??a(l.size),s.color=l.color,s});return(s,c)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},td,14,Jf))}}),nd=["aria-labelledby"],od=o.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),ld=[od],rd=o.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:n}){const l=e,t=n,r=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=o.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+l.name]:l.name,[l.class]:!!l.class}}),u=o.computed(()=>{const s={};return s.height=a(l.height)??a(l.size),s.width=a(l.width)??a(l.size),s.color=l.color,s});return(s,c)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},ld,14,nd))}}),ad=["aria-labelledby"],id=o.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),sd=[id],ud=o.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:n}){const l=e,t=n,r=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=o.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+l.name]:l.name,[l.class]:!!l.class}}),u=o.computed(()=>{const s={};return s.height=a(l.height)??a(l.size),s.width=a(l.width)??a(l.size),s.color=l.color,s});return(s,c)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},sd,14,ad))}}),cd=["aria-labelledby"],fd=o.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),dd=[fd],hd=o.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:n}){const l=e,t=n,r=s=>{t("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=o.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+l.name]:l.name,[l.class]:!!l.class}}),u=o.computed(()=>{const s={};return s.height=a(l.height)??a(l.size),s.width=a(l.width)??a(l.size),s.color=l.color,s});return(s,c)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},dd,14,cd))}}),jo={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,Function]},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},zr=(e,n)=>n[e.textKey],Mt=(e,n)=>n[e.valueKey],gd=(e,n)=>n[e.visibleKey],Hr=(e,n)=>n[e.disabledKey],md=(e,n)=>{const l=n[e.doitKey];return ce(l)},yd=(e,n)=>{const l=n[e.numKey];return l==null?null:Ce(n[l])},Kr=(e,n,l)=>{const t=e.itemOptions;return typeof t=="function"?t(n,l):t||null};function pd(e,n,l,t=!1){return{props:{...jo},emits:["update:modelValue","change"],setup(r,{slots:a,emit:i}){const u=o.computed(()=>{const E={};return E[`${e}`]=!0,E}),s=o.computed(()=>{const E={};return E[`${e}__titles`]=!0,E[`${r.direction}`]=!0,r.align==="left"&&(E.left=!0),r.scroll===!0&&(E.scrollable=!0),r.shape&&(E[`${r.shape}`]=!0),E}),c=o.computed(()=>({})),f=o.computed(()=>{if(!r.gutter)return 0;const E=me(r.gutter);return E<=0?0:E}),m=o.ref(r.modelValue);o.watch(()=>r.modelValue,E=>{m.value!==E&&(m.value=E,z(!1))});const p=o.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),w=o.computed(()=>{const E={};return d.value||(E.display="none"),E}),S=o.ref(),d=o.ref(!1),h=()=>{const E=!d.value;O(E)},O=E=>{const $=E;$?(d.value=$,setTimeout(()=>{p.value["fox-tabs-bar__popup--show"]=!0,p.value["fox-tabs-bar__popup--hide"]=!1},0)):(p.value["fox-tabs-bar__popup--show"]=!1,p.value["fox-tabs-bar__popup--hide"]=!0,S.value?S.value.addEventListener("transitionend",()=>{d.value=!1},{once:!0}):setTimeout(()=>{d.value=!1},0))},x=o.ref(),b=o.ref([]),q=(E,$)=>{b.value[$]=E},_=E=>$=>{q($,E)},B=(E,$)=>{const M=x.value,A=b.value;if(!M||!A||!A[E])return;const C=A[E];let K=0;r.direction==="vertical"?K=C.offsetTop-(M.offsetHeight-C.offsetHeight)/2:K=C.offsetLeft-(M.offsetWidth-C.offsetWidth)/2,D(M,K,$?0:.3,r.direction)},D=(E,$,M,A)=>{let C=0;const K=A==="horizontal"?E.scrollLeft:E.scrollTop,Z=M===0?1:Math.round(M*1e3/16);function le(){A==="horizontal"?E.scrollLeft+=($-K)/Z:E.scrollTop+=($-K)/Z,++C<Z&&Yn(le)}le()},N=(E,$)=>{const M=Mt(r,E),A={};return A[`${e}__titles-item`]=!0,A.disabled=Hr(r,E),A.active=M===m.value,r.shape&&(A[`${r.shape}`]=!0),r.ellipsis&&(A.ellipsis=!0),$&&($.class&&(A[`${$.class}`]=!0),$.disabled===!0&&(A.disabled=$.disabled)),A},v=(E,$)=>{const M={};if(f.value>0){const A=Math.abs(f.value/2);r.direction==="vertical"?(M["margin-top"]=`${A}px`,M["margin-bottom"]=`${A}px`):(M["margin-left"]=`${A}px`,M["margin-right"]=`${A}px`)}return $&&$.style&&Object.assign(M,$.style),M},j=(E,$)=>`${Mt(r,E)??$}`,y=(E,$)=>{const M=Mt(r,E),A={};A[`${e}__popup-item`]=!0,A.disabled=Hr(r,E),A.active=M===m.value,r.shape&&(A[`${r.shape}`]=!0);const C=Kr(r,E,$);return C&&C.disabled===!0&&(A.disabled=C.disabled),A},L=o.computed(()=>(r.data??[]).filter($=>gd(r,$)!==!1)),Y=(E,$)=>{const M=Mt(r,E);if(m.value==M)return;const A=()=>{m.value=M,r.scroll&&B($,!1),i("update:modelValue",M),i("change",E,$)};if(typeof r.beforeChange=="function"){const C=r.beforeChange(E,$);Cl(C)?C.then(K=>{K!==!1&&A()}).catch(()=>{A()}):C!==!1&&A()}else A()},R=(E,$)=>function(){Y(E,$)},k=(E,$)=>{Y(E,$),O(!1)},F=(E,$)=>function(){k(E,$)},z=E=>{if(!Array.isArray(r.data)||!r.scroll)return;const $=r.data.findIndex(M=>Mt(r,M)===m.value);$!==-1&&B($,E)};o.watch(()=>r.data,()=>{setTimeout(z,0)}),o.onMounted(()=>{z(!0)});const X=(E,$)=>{if(a.item)return a.item({item:E,index:$});const M=Kr(r,E,$),A=[];if(a.text){const le=a.text({item:E,index:$});A.push(le)}else{const le=[];if(M?.doit===!0||md(r,E)){const W={class:[`${e}__titles-item-tip`,"doit"]},J=o.h("view",W);le.push(J)}const G=M?.num??yd(r,E);if(G){let W="";const J=Ce(G);J>=100?W="99+":W=`${J}`;const V={class:[`${e}__titles-item-tip`,"num"]},H=o.h("view",V,[W]);le.push(H)}const U={class:`${e}__titles-item-text`};le.push(zr(r,E));const I=o.h("view",U,le);A.push(I)}const C={class:`${e}__titles-item-line`},K=o.h("view",C);A.push(K);const Z={ref:_($),class:N(E,M),style:v(E,M),key:j(E,$),onClick:R(E,$)};return o.h("view",Z,A)},ee=()=>{const E=a.default?a.default():[];if(E.length===0)for(let M=0;M<L.value.length;M++){const A=L.value[M],C=X(A,M);E.push(C)}const $={ref:x,class:s.value,style:c.value};return o.h("view",$,E)},P=()=>{let E=null;a.navigation?E=a.navigation():E=o.h(l);const $={class:`${e}__navigation`,onClick:h};return o.h("view",$,[E])},te=()=>{const E=[];for(let M=0;M<L.value.length;M++){const A=L.value[M];let C=null;a.popupItem?C=a.popupItem({item:A,index:M}):C=zr(r,A);const K={class:y(A,M),key:j(A,M),onClick:F(A,M)},Z=o.h("view",K,[C]);E.push(Z)}const $={class:p.value,style:w.value};return o.h("view",$,E)};return()=>{const E=[],$=ee();if(E.push($),r.showQuickNavigation){const A=P();E.push(A);const C=te();E.push(C)}const M={class:u.value};return o.h("view",M,E)}}}}const{create:bd,componentName:vd,scope:wd}=ie("tabs-bar"),On=bd(pd(vd,wd,Qf,!1)),Wr=Symbol("TabsStatesKey"),zo={modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1},height:{type:[String,Number]},width:{type:[String,Number]}},Yr=10;function Ur(e,n){return e>n&&e>Yr?"horizontal":n>e&&n>Yr?"vertical":""}function Lt(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Bt(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",l=()=>e.direction==="horizontal",t=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:(i=>{if(i.touches){const c=i.touches[0];e.deltaX=c.clientX-e.startX,e.deltaY=c.clientY-e.startY,e.moveX=c.clientX,e.moveY=c.clientY}else{const s=i;e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Ur(e.offsetX,e.offsetY))}),start:(i=>{if(t(),i.touches){const c=i.touches[0];e.startX=c.clientX,e.startY=c.clientY}else{const s=i;e.startX=s.clientX,e.startY=s.clientY}e.startTime=Date.now()}),reset:t,isVertical:n,isHorizontal:l,state:e}}function Sd(){const e=o.ref(0),n=o.ref(0),l=o.ref(0),t=o.ref(0),r=o.ref(0),a=o.ref(0),i=o.ref(0),u=o.ref(0),s=o.ref(0),c=o.ref(0),f=o.ref(""),m=()=>f.value==="vertical",p=()=>f.value==="horizontal",w=()=>{i.value=0,u.value=0,s.value=0,c.value=0,f.value="",l.value=0};return{move:(h=>{if(h.touches){const b=h.touches[0];i.value=b.clientX-e.value,u.value=b.clientY-n.value,r.value=b.clientX,a.value=b.clientY}else{const x=h;i.value=x.clientX-e.value,u.value=x.clientY-n.value,r.value=x.clientX,a.value=x.clientY}s.value=Math.abs(i.value),c.value=Math.abs(u.value),t.value=Date.now()-l.value,f.value||(f.value=Ur(s.value,c.value))}),start:(h=>{if(w(),h.touches){const b=h.touches[0];e.value=b.clientX,n.value=b.clientY}else{const x=h;e.value=x.clientX,n.value=x.clientY}l.value=Date.now()}),reset:w,startX:e,startY:n,startTime:l,duration:t,moveX:r,moveY:a,deltaX:i,deltaY:u,offsetX:s,offsetY:c,direction:f,isVertical:m,isHorizontal:p}}const xd=15,Td=300,Cd=200;function $d(e,n,l=1){return e=Math.abs(e/n)/.003*(e<0?-1:1),e*l}function Gr(e,n=0,l,t,r=Cd){l==="end"?e.style.transition=`transform ${r}ms linear`:e.style.transition="transform 0ms linear",t==="horizontal"?e.style.transform=`translate3d(${n}px, 0, 0)`:e.style.transform=`translate3d(0, ${n}px, 0)`}let Nd=class{el=null;direction="horizontal";transitionEndTrigger=null;moving=!1;isTouch=!1;triggerAutoMoveRatio=.3;momentumReduceRatio=1;transitionend=null;touchstart=null;touchmove=null;touchend=null;touchcancel=null;onStart;onMove;onEnd;constructor(n,l,t,r=1){this.onStart=n,this.onMove=l,this.onEnd=t,this.momentumReduceRatio=r,this.isTouch=Lt()}open(n){this.el=n;const l=Bt(),t=(r,a,i)=>{const u={delta:r,direction:a,type:i};this.onMove(u)};this.transitionend=()=>{this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=r=>{if(this.moving)return;l.start(r),this.transitionEndTrigger=()=>{n.removeEventListener("transitionend",this.transitionend),this.moving=!1,this.onEnd()},this.moving=!0,n.removeEventListener("transitionend",this.transitionend),n.addEventListener("transitionend",this.transitionend),n.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),n.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&n.addEventListener("touchcancel",this.touchend);const a={delta:0,type:"start",direction:this.direction};this.onStart(a)},this.touchmove=r=>{if(!this.moving)return;l.move(r);let a=0;if(this.direction==="horizontal"){if(l.isVertical())return;a=l.state.deltaX}else{if(l.isHorizontal())return;a=l.state.deltaY}t(a,this.direction,"move")},this.touchend=()=>{if(!this.moving)return;n.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),n.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&n.removeEventListener("touchcancel",this.touchend);let r=0;if(this.direction==="horizontal"){if(l.isVertical()){this.moving=!1;return}r=l.state.deltaX}else{if(l.isHorizontal()){this.moving=!1;return}r=l.state.deltaY}const a=l.state.duration;a<Td&&Math.abs(r)>xd?(r=$d(r,a,this.momentumReduceRatio),t(r,this.direction,"end")):t(r,this.direction,"end")},n.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const n=this.el;this.transitionend&&n.addEventListener("transitionend",this.transitionend),this.touchstart&&n.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.touchmove&&n.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&n.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.touchcancel&&this.isTouch&&n.addEventListener("touchcancel",this.touchcancel),this.el=null}};function kd(e,n,l,t=1){return new Nd(e,n,l,t)}function Ed(e,n,l=!1){return{props:{...zo},emits:["update:modelValue","change"],setup(t,{emit:r,slots:a}){const i=o.shallowRef([]),u={current:o.ref(t.modelValue??""),direction:o.ref(t.direction),tabWidth:o.ref(-1),tabHeight:o.ref(-1),add:D=>{const N={name:D};u.current.value===D&&(N.loaded=!0),i.value.push(N),o.triggerRef(i)},remove:D=>{const N=i.value.findIndex(v=>v.name===D);N!==-1&&i.value.splice(N,1)},isLoaded:D=>{if(!t.lazy)return!0;const N=i.value.findIndex(v=>v.name===D);return N!==-1?u.current.value?i.value[N].loaded??!1:N===0:!1}};o.provide(Wr,u);const s=D=>{const N=i.value.findIndex(v=>v.name===D);N!==-1&&(i.value[N].loaded=!0,o.triggerRef(i))};o.watch([()=>t.modelValue,()=>t.direction],([D,N])=>{u.current.value!==D&&(u.current.value=D??"",s(D??"")),u.direction.value!==N&&(u.direction.value=N)});const c=o.ref(null),f=o.ref(null),m=o.computed(()=>({[e]:!0,[`${t.direction}`]:!0})),p=o.computed(()=>{const D={};if(t.width){const N=be(t.width);N&&(D.width=N)}if(t.height){const N=be(t.height);N&&(D.height=N)}return D});let w=!0;const S=o.computed(()=>{const D={},N=i.value.length;if(N<=0)return D;const v=i.value.findIndex(j=>j.name===u.current.value);return u.direction.value==="vertical"?u.tabHeight.value>0&&(D.height=`${N*u.tabHeight.value}px`,v!==-1&&(D.transform=`translate(0, -${v*u.tabHeight.value}px)`)):u.tabWidth.value>0&&(D.width=`${N*u.tabWidth.value}px`,v!==-1&&(D.transform=`translate(-${v*u.tabWidth.value}px, 0)`)),w&&(w=!1,D.transition="transform 0s ease"),D}),d={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},h=D=>{const N=i.value.length,v=i.value.findIndex(j=>j.name===u.current.value);d.moved=0,D.direction==="vertical"?(d.min=-1*(u.tabHeight.value*(N-1)+u.tabHeight.value/4),d.max=u.tabHeight.value/4,d.start=-v*u.tabHeight.value,d.itemDistance=u.tabHeight.value):(d.min=-1*(u.tabWidth.value*(N-1)+u.tabWidth.value/4),d.max=u.tabWidth.value/4,d.start=-v*u.tabWidth.value,d.itemDistance=u.tabWidth.value)},O=D=>{const N=f.value;if(!N)return;let v=d.start+D.delta;if(v>d.max?v=d.max:v<d.min&&(v=d.min),D.type==="move")Gr(N,v,"move",D.direction,300);else if(D.type==="end"){let j=Math.floor(Math.abs(v)*1/d.itemDistance);const y=Math.abs(v)%d.itemDistance;d.start>v?y>=d.itemDistance*d.triggerAutoMoveRatio&&(j+=1):y>d.itemDistance-d.itemDistance*d.triggerAutoMoveRatio&&(j+=1),v=-1*j*d.itemDistance,Gr(N,v,"end",D.direction,300),d.moved=v;const L=i.value[j].name;u.current.value=L??"",s(L??""),r("update:modelValue",L)}},x=()=>{},b=()=>{if(!c.value)return;const D=an(c.value);u.tabWidth.value=D.width,u.tabHeight.value=D.height},q=_l(b,250);let _=null,B=null;return o.onMounted(()=>{c.value&&(b(),window.ResizeObserver&&(B=new window.ResizeObserver(q),B.observe(c.value)),t.draggle&&(_=kd(h,O,x),_.open(f.value)))}),o.onBeforeUnmount(()=>{B&&(B.disconnect(),B=null),_&&_.close()}),()=>{const D={class:`${e}__panes`,style:S.value,ref:f},N=o.h("view",D,[a?.default?.()]),v={class:m.value,style:p.value,ref:c};return o.h("view",v,[N])}}}}const{create:Id,componentName:Od,scope:Dd}=ie("tabs-container"),Dn=Id(Ed(Od,Dd,!1)),Vd={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1},label:{type:[String],required:!1}};function Rd(e,n,l){return{props:{...Vd},setup(t,{emit:r,slots:a}){const i=o.inject(Wr);o.onMounted(()=>{i.add(t.paneKey)}),o.onBeforeUnmount(()=>{i.remove(t.paneKey)});const u=o.computed(()=>{const c={};return i.direction.value==="vertical"&&i.tabHeight.value>0?c.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(c.width=`${i.tabWidth.value}px`),c}),s=o.computed(()=>t.loaded!=null?ce(t.loaded):i.isLoaded(t.paneKey));return()=>{let c=[];if(s.value)c=a?.default?.()??[];else if(a.empty)c=a.empty();else{const m={class:`${e}__empty-icon`},p=t.emptyIcon??l,w=o.h(p,m),S={class:`${e}__empty-text`},d=t.emptyText??"Loading",h=o.h("view",S,[d]),O={class:`${e}__empty`},x=o.h("view",O,[w,h]);c.push(x)}const f={class:`${e}`,style:u.value};return o.h("view",f,c)}}}}const{create:Fd,componentName:Ad,scope:Md}=ie("tabs-pane"),Ho=Fd(Rd(Ad,Md,_o));function Ld(e,n,l,t){return{props:{...jo,...zo,modelValue:{type:[String,Number],default:0},direction:{type:[String]},height:{type:[String,Number]},width:{type:[String]}},emits:["update:modelValue","change"],setup(r,{emit:a,slots:i}){const u=e,s=o.computed(()=>{const d=[`${u}`];return r.direction==="vertical"?d.push("vertical-tabbar"):d.push("horizontal-tabbar"),d}),c=o.computed(()=>{const d={};if(r.width){const h=be(r.width);h&&(d.width=h)}if(r.height){const h=be(r.height);h&&(d.height=h)}return d}),f=o.computed(()=>[`${u}__bars`]),m=o.computed(()=>[`${u}__container`]),p=o.ref(r.modelValue);o.watch(()=>r.modelValue,d=>{p.value!==d&&(p.value=d)});const w=d=>{a("change",d)},S=d=>{p.value!==d&&(p.value=d,a("update:modelValue",d))};return()=>{const d=i.default?.()??[],h=[];if(Array.isArray(r.data))h.push(...r.data);else for(let N=0;N<d.length;N++){const v=d[N].props??{},j={text:v.label??"",value:v["pane-key"]??v.paneKey??""};h.push(j)}const O={};for(let N in i)N!=="default"&&(O[N]=i[N]);const x=mt(r,jo);Object.assign(x,{data:h,class:f.value,modelValue:p.value,direction:r.direction,onChange:w,"onUpdate:modelValue":S});const b=o.h(l,x,O),q={default:i.default},_=mt(r,zo);Object.assign(_,{class:m.value,modelValue:p.value,onChange:w,"onUpdate:modelValue":S});const B=o.h(t,_,q),D={class:s.value,style:c.value};return o.h("view",D,[b,B])}}}}const{create:Bd,componentName:qd,scope:Pd}=ie("tabs-frame"),Ko=Bd(Ld(qd,Pd,On,Dn)),_d={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:[Object]},iconSize:{type:[String,Number]},markIcon:{type:[Object]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function jd(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Xr(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Zr(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function zd(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function Wo(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function Qr(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function Jr(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function Yo(e,n,l){return typeof e.itemOptions=="function"?e.itemOptions(n,l):e.itemOptions}class Hd{proxy;constructor(n){this.proxy=n}async load(n,l,t){if(Array.isArray(l))return l;if(typeof l=="function")return await Reflect.apply(l,null,[t]);const r=je(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(We(t)&&o.isReactive(t)&&(t=o.toRaw(t)),await Reflect.apply(r,null,[l,t]))}}function Kd(){const e=o.getCurrentInstance();return new Hd(e.proxy)}function Wd(e,n,l,t){return{props:{..._d},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:i}){const u=e,s=Kd(),c=o.ref([]),f=o.computed(()=>c.value.filter($=>zd(r,$)!==!1)),m=o.ref(-1),p=()=>{const $=r.modelValue,M=f.value.findIndex(A=>Xr(r,A)===$);m.value!==M&&(m.value=M,r.scroll&&te(M))};o.watch([()=>r.modelValue,f],()=>{p()});const w=$=>m.value===$,S=$=>{if($<0&&$>=f.value.length)return!1;const M=f.value[$],C=(Yo(r,M,$)??{}).status??Wo(r,M);return w($)||C},d=o.computed(()=>{const $={[u]:!0};return r.mode?$[`is-${r.mode}`]=!0:r.direction&&($[`is-${r.direction}`]=!0),r.scroll&&($["is-scroll"]=!0),$}),h=o.computed(()=>({})),O=($,M,A,C,K)=>{const Z={[`${u}__step`]:!0};return K&&(Z[`${K}`]=!0),Z[`${x.value}`]=!0,C&&(Z["is-doit"]=!0),$===m.value?Z["is-active"]=!0:M==="done"?Z["is-done"]=!0:M==="error"?Z["is-error"]=!0:M==="half"?Z["is-half"]=!0:A?Z["is-disabled"]=!0:Z["is-normal"]=!0,Z},x=o.computed(()=>{if(r.mode==="simple")return"start";let $=r.align;return $||(r.direction==="vertical"?$="start":$="center"),$}),b=($,M={})=>{const A={...M};return x.value==="start"&&$===f.value.length-1?A.flex="0 0 auto":r.step?r.direction==="vertical"?A.height=r.step:A.width=r.step:A.flex="1 1 100%",A},q=($,M)=>{let A={};if(M<f.value.length-1){const C=M+1;S(M)&&S(C)?r.direction==="vertical"?A.height="100%":A.width="100%":A.opacity="0"}return A},_=$=>f.value.length-1===$,B=($,M)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&M>m.value||m.value===M)return;const A=m.value,C=M;m.value=M,r.scroll&&te(M);const K=Xr(r,$);i("update:modelValue",K);const Z={fromIndex:A,currentIndex:C,item:$,items:f.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",K,Z)},D=o.ref(!0),N=async($,M)=>{try{const A=await s.load("stesbar",$,M);Array.isArray(A)&&(c.value=A),D.value=!1}catch(A){console.error("[FoxUI] Load StepsBar Data Fail",A),c.value=[]}setTimeout(()=>{i("loaded-data")},250)};o.watch([()=>r.data,()=>r.params],async([$,M])=>{$&&N($,M)},{immediate:!0});const v=($,M,A,C,K)=>{let Z=null;if(a.icon)Z=a.icon({item:$,index:M,status:C});else if(C==="done"){const G={};r.iconSize&&(G.width=r.iconSize,G.height=r.iconSize);const U=r.icon??l;Z=o.h(U,G)}else{const G=A??`${M+1}`;Z=o.h("span",{},[G])}const le={class:"fox-steps-bar__icon",onClick:()=>{K||B($,M)}};return o.h("view",le,[Z])},j=($,M,A)=>{const C=o.h("i",{class:"fox-steps-bar__line-inner",style:q($,M)});return o.h("view",{class:"fox-steps-bar__line"},[C])},y=()=>{let $=null;if(a.markIcon)$=a.markIcon();else{const A={};r.iconSize&&(A.width=r.markIconSize,A.height=r.markIconSize);const C=r.markIcon??t;$=o.h(C,A)}return o.h("view",{class:"fox-steps-bar__mark"},[$])},L=($,M,A,C,K)=>{const Z=[];if(!_(M)){const U=j($,M);Z.push(U)}const le=v($,M,A,C,K);Z.push(le);const G={class:"fox-steps-bar__head"};return o.h("view",G,Z)},Y=($,M,A,C)=>{let K=null;a.main?K=a.main({item:$,index:M,status:A}):K=jd(r,$);const Z={class:"fox-steps-bar__main",onClick:()=>{C||B($,M)}};return o.h("view",Z,[K])},R=($,M,A)=>{let C=null;if(a.sub){C=a.sub({item:$,index:M,status:A});const K={class:"fox-steps-bar__sub"};return o.h("view",K,[C])}return null},k=($,M)=>{const A=Yo(r,$,M)??{},C=A.status??Wo(r,$);let K=Zr(r,$);A.disabled===!0&&(K=!0),r.disabled===!0&&(K=!0);const Z=A.label??Jr(r,$),le=[],G=v($,M,Z,C,K);G&&le.push(G);const U=Y($,M,C,K);if(U&&le.push(U),!_(M)){const Q=j($,M);Q&&le.push(Q)}const I=o.h("view",{class:"fox-steps-bar__head"},le),W=A.class,J=A.style??{};let V=Qr(r,$);A.doit===!0&&(V=!0);const H={ref:P(M),class:O(M,C,K,V,W),style:b(M,J)};return o.h("view",H,[I])},F=($,M)=>{const A=Yo(r,$,M)??{},C=A.status??Wo(r,$);let K=Zr(r,$);A.disabled===!0&&(K=!0),r.disabled===!0&&(K=!0);const Z=A.label??Jr(r,$),le=[],G=r.layout;for(let V of G)if(V==="head"){const H=L($,M,Z,C,K);le.push(H)}else if(V==="main"){const H=Y($,M,C,K);le.push(H)}else if(V==="sub"){const H=R($,M,C);le.push(H)}else if(V==="mark"){const H=y();le.push(H)}const U=A.class,I=A.style??{};let W=Qr(r,$);A.doit===!0&&(W=!0);const J={ref:P(M),class:O(M,C,K,W,U),style:b(M,I)};return o.h("view",J,le)},z=o.ref(),X=o.ref([]),ee=($,M)=>{X.value[M]=$},P=$=>M=>{ee(M,$)},te=($,M)=>{const A=z.value,C=X.value;if(!A||!C||!C[$])return;const K=C[$];let Z=0;r.direction==="vertical"?Z=K.offsetTop-(A.offsetHeight-K.offsetHeight)/2:Z=K.offsetLeft-(A.offsetWidth-K.offsetWidth)/2,E(A,Z,.3,r.direction)},E=($,M,A,C)=>{let K=0;const Z=C==="horizontal"?$.scrollLeft:$.scrollTop,le=Math.round(A*1e3/16);function G(){C==="horizontal"?$.scrollLeft+=(M-Z)/le:$.scrollTop+=(M-Z)/le,++K<le&&Yn(G)}G()};return()=>{const $=[];if(r.mode==="simple")for(let A=0;A<f.value.length;A++){const C=f.value[A],K=k(C,A);$.push(K)}else for(let A=0;A<f.value.length;A++){const C=f.value[A],K=F(C,A);$.push(K)}const M={ref:z,class:d.value,style:h.value};return o.h("view",M,$)}}}}const{componentName:Yd,create:Ud,scope:Gd}=ie("steps-bar"),Uo=Ud(Wd(Yd,Gd,ud,hd)),Xd=Symbol.for("InnerPageScopeKey"),Zd=Symbol.for("PageWrapperKey");function Qd(e,n){return{props:{class:{type:[String]},title:{type:[String]},height:{type:[String,Number]},hideHeader:{type:[Boolean]},draggable:{type:[Boolean],default:()=>!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:()=>!1},closeOnPressEscape:{type:[Boolean],default:()=>!0}},setup(l,t){o.provide(Xd,!0);const r={};o.provide(Zd,r);const a=c=>{typeof r.beforeClose=="function"&&r.beforeClose()},i=o.ref(!0),u=c=>{i.value=c},s=o.computed(()=>{const c={};return l.height&&(c["--fox-dialog-item-body-height"]=be(l.height)),c});return()=>{const f={...t.attrs,style:s.value,title:l.title,draggable:l.draggable,modelValue:i.value,"onUpdate:modelValue":u,"append-to-body":l.appendToBody,"close-on-click-modal":l.closeOnClickModal,"close-on-press-escape":l.closeOnPressEscape,"before-close":a},m=["fox-dialog-item "];l.hideHeader&&m.push("hide-header"),l.class&&m.push(l.class),f.class=m.join(" ");const p={};return typeof t.slots.default=="function"&&(p.default=t.slots.default),o.h(T.ElDialog,f,p)}}}}const{create:Jd}=ie("dialog-item"),Go=Jd(Qd());let qt=0;const ea="fox-overflow-hidden",ta=()=>lt?document.body:{classList:[]},eh=e=>[()=>{if(e())try{!qt&&ta().classList.add(ea),qt++}catch{}},()=>{if(e()&&qt)try{qt--,!qt&&ta().classList.remove(ea)}catch{}}],th={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:nh,create:oh}=ie("overlay"),lh=oh({props:{...th},emits:["click","update:visible"],setup(e,{emit:n}){const[l,t]=eh(()=>e.lockScroll),r=o.computed(()=>({[nh]:!0,[e.overlayClass]:!0})),a=o.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return o.watch(()=>e.visible,u=>{u?l():t()}),{classes:r,style:a,onClick:u=>{n("click",u),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function rh(e,n,l,t,r,a){return o.openBlock(),o.createBlock(o.Transition,{name:"overlay-fade"},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("view",{class:o.normalizeClass(e.classes),onClick:n[0]||(n[0]=o.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:o.normalizeStyle(e.style)},[o.renderSlot(e.$slots,"default")],6),[[o.vShow,e.visible]])]),_:3})}const Vn=Ue(lh,[["render",rh]]),ah={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:{}}},na=2e3;let oa=na;const ih=(e,n)=>({components:n,props:{...ah},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(l,{emit:t}){const r=o.reactive({zIndex:l.zIndex,showSlot:!0,closed:l.closeable}),a=o.computed(()=>({[e]:!0,round:l.round,[`fox-popup--${l.position}`]:!0,[`fox-popup--${l.position}--safebottom`]:l.position==="bottom"&&l.safeAreaInsetBottom,[l.popClass]:!0})),i=o.computed(()=>({zIndex:r.zIndex,transitionDuration:`${l.duration}s`,...l.style})),u=o.computed(()=>l.transition?l.transition:`fox-popup-slide-${l.position}`),s=()=>{l.zIndex!==na&&(oa=Number(l.zIndex)),t("update:visible",!0),r.zIndex=++oa,l.destroyOnClose&&(r.showSlot=!0),t("open")},c=()=>{t("update:visible",!1),t("close"),l.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+l.duration*1e3)},f=d=>{t("click-pop",d)},m=d=>{d.stopPropagation(),t("click-close-icon",d),t("update:visible",!1)},p=d=>{t("click-overlay",d),l.closeOnClickOverlay&&t("update:visible",!1)},w=d=>{t("opend",d)},S=d=>{t("closed",d)};return o.watch(()=>l.visible,d=>{l.visible?s():c()}),o.watch(()=>l.closeable,d=>{r.closed=d}),{...o.toRefs(r),popStyle:i,transitionName:u,classes:a,onClick:f,onClickCloseIcon:m,onClickOverlay:p,onOpened:w,onClosed:S}}}),{componentName:sh,create:uh}=ie("popup"),ch=uh(ih(sh,{FoxOverLay:Vn,Close:rd}));function fh(e,n,l,t,r,a){const i=o.resolveComponent("FoxOverLay"),u=o.resolveComponent("Close");return o.openBlock(),o.createBlock(o.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(o.openBlock(),o.createBlock(i,o.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"])):o.createCommentVNode("",!0),o.createVNode(o.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("view",{class:o.normalizeClass(e.classes),style:o.normalizeStyle(e.popStyle),onClick:n[1]||(n[1]=(...s)=>e.onClick&&e.onClick(...s))},[e.showSlot?o.renderSlot(e.$slots,"default",{key:0}):o.createCommentVNode("",!0),e.closed?(o.openBlock(),o.createElementBlock("view",{key:1,onClick:n[0]||(n[0]=(...s)=>e.onClickCloseIcon&&e.onClickCloseIcon(...s)),class:o.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[o.renderSlot(e.$slots,"close-icon",{},()=>[o.createVNode(u)])],2)):o.createCommentVNode("",!0)],6),[[o.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const Xo=Ue(ch,[["render",fh]]),{create:dh}=ie("toast"),hh=dh({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:n}){let l=null;const t=o.reactive({mounted:!1});o.onMounted(()=>{t.mounted=!0});const r=()=>{l&&(clearTimeout(l),l=null)},a=()=>{t.mounted=!1},i=()=>{r(),e.duration&&(l=setTimeout(()=>{a()},e.duration))},u=()=>{e.closeOnClickOverlay&&(a(),n("close"))};e.duration&&i(),o.watch(()=>e.duration,w=>{w&&i()});const s=o.computed(()=>e.type!=="text"?!0:!!e.icon),c=()=>{const w=me(e.iconSize);return o.h(e.icon,{width:w,height:w,color:e.iconColor})},f=o.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":s.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),m=o.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:t,hide:a,clickCover:u,renderIcon:c,hasIcon:s,toastBodyClass:f,toastIconWrapperClass:m,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),gh={key:1,class:"fox-toast-title"},mh=["innerHTML"];function yh(e,n,l,t,r,a){return o.openBlock(),o.createBlock(o.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("view",{class:o.normalizeClass(e.toastBodyClass),style:o.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:n[0]||(n[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[o.createElementVNode("view",{class:"fox-toast-inner",style:o.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(o.openBlock(),o.createElementBlock("view",{key:0,class:o.normalizeClass(e.toastIconWrapperClass)},[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.renderIcon())))],2)):o.createCommentVNode("",!0),e.title?(o.openBlock(),o.createElementBlock("div",gh,o.toDisplayString(e.title),1)):o.createCommentVNode("",!0),o.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,mh)],4)],6),[[o.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Zo=Ue(hh,[["render",yh]]),ph={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"}},bh=(e,n,l)=>({props:{...ph},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(t,{slots:r}){const{emitEvent:a}=Hl(),{toLocaleRefs:i}=Fe.useFoxI18n(n),u=i(t,["placeholder"]),s=o.reactive({active:!1}),c=o.computed(()=>({background:t.background})),f=o.computed(()=>({background:t.inputBackground})),m=v=>{let y=v.target.value;t.maxLength&&y.length>Number(t.maxLength)&&(y=y.slice(0,Number(t.maxLength))),a("update:modelValue",y,v),a("change",y,v)},p=o.ref({}),w=v=>{let y=v.target.value;s.active=!0,p.value=t.focusStyle,a("focus",y,v)},S=v=>{setTimeout(()=>{s.active=!1},0);let y=v.target.value;t.maxLength&&y.length>Number(t.maxLength)&&(y=y.slice(0,Number(t.maxLength))),p.value={},a("blur",y,v)},d=v=>{a("update:modelValue","",v),a("change","",v),a("clear","")},h=o.computed(()=>String(t.modelValue).length>0),O=o.computed(()=>{const v={};return h.value||(v.display="none"),v}),x=()=>{a("search",t.modelValue)},b=v=>{a("keyup-input",v),v.key.toLocaleUpperCase()==="ENTER"&&x()},q=v=>{a("click-input",v)},_=v=>{a("click-left-icon",t.modelValue,v)},B=o.computed(()=>({textAlign:t.inputAlign})),D=o.ref(null);o.onMounted(()=>{t.autofocus&&D.value.focus()});const N=()=>{const v=[];if(r.leftin){const R={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:_},k=o.h("view",R,[r.leftin()]);v.push(k)}const j={ref:D,class:[`${e}__input-inner`],style:B.value,type:t.inputType,maxlengt:t.maxLength,placeholder:u.placeholder.value,value:t.modelValue,disabled:t.disabled,readonly:t.readonly,onClick:q,onInput:m,onFocus:w,onBlur:S,onkeyup:b},y=o.h("input",j);v.push(y);const L=[];if(t.clearable){const R={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:O.value,onClick:d},k=r?.clear?.()??t.clearIcon??l,F=o.h("view",R,[o.h(k)]);L.push(F)}if(r.rightin){const R={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},k=o.h("view",R,[r.rightin()]);L.push(k)}if(L.length>0){const R={class:`${e}__input-inner-right`},k=o.h("view",R,L);v.push(k)}const Y={class:[`${e}__search-input`,`${t.shape}`],style:{...f.value,...p.value}};return o.h("view",Y,v)};return()=>{const v=[];if(t.label){const L={class:`${e}__search-label`},Y=o.h("span",L,[t.label]);v.push(Y)}if(r.leftout){const L={class:[`${e}__search-icon`,`${e}__left-search-icon`]},Y=o.h("view",L,[r.leftout()]);v.push(Y)}const j=N();if(v.push(j),r.rightout){const L={class:[`${e}__search-icon`,`${e}__right-search-icon`]},Y=o.h("view",L,[r.rightout()]);v.push(Y)}const y={class:`${e}`,style:c.value};return o.h("view",y,v)}}}),{componentName:vh,create:wh,scope:Sh}=ie("searchbar"),Qo=wh(bh(vh,Sh,Ie.CircleClose)),xh=/scroll|auto|overlay/i,la=window;function Th(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Ch(e,n=la){let l=e;for(;l&&l!==n&&Th(l);){const{overflowY:t}=window.getComputedStyle(l);if(xh.test(t))return l;l=l.parentNode}return n}function ra(e,n=la){const l=o.ref();return o.onMounted(()=>{e.value&&(l.value=Ch(e.value,n))}),l}const aa=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,$h={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},noMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function Nh(e,n,l){return{props:{...$h},emits:["scroll-change","load-more","update:modelValue"],setup(t,{emit:r,slots:a}){const{toLocaleRefs:i}=Fe.useFoxI18n(n),u=i(t,["pullText","loadText","noMoreText"]),s=o.ref(),c=ra(s),f=o.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),m=o.computed(()=>({[e]:!0})),p=x=>x?x.offsetTop+p(x.offsetParent):0,w=()=>{let x=0,b=0,q="down";if(c.value==window){const _=aa();s.value&&(x=p(s.value)+s.value.offsetHeight-_-window.innerHeight),b=_}else{const{scrollHeight:_,clientHeight:B,scrollTop:D}=c.value;x=_-B-D,b=D}return f.beforeScrollTop>b?q="up":q="down",f.beforeScrollTop=b,r("scroll-change",b),x<=t.threshold&&q=="down"},S=()=>{gl(()=>{if(!w()||!t.hasMore||f.isInfiniting)return!1;f.isInfiniting=!0,r("update:modelValue",!0),o.nextTick(()=>r("load-more"))})},d=()=>{c.value&&c.value.addEventListener("scroll",S,t.useCapture)},h=()=>{c.value&&c.value.removeEventListener("scroll",S,t.useCapture)};o.onMounted(()=>{d(),t.immediate&&S()}),o.onUnmounted(()=>{h()});const O=o.ref(!1);return o.onActivated(()=>{O.value&&(O.value=!1,d())}),o.onDeactivated(()=>{O.value=!0,h()}),o.watch(()=>t.modelValue,x=>{x||(f.isInfiniting=!1)}),()=>{const x={class:"fox-infinite__container"},b=o.h("view",x,[a?.default?.()]),q=[];if(f.isInfiniting){let N=a?.loading?.()??null;if(!N){let y=a?.loadingIcon?.()??null;if(!y){const R={class:["fox-infinite__bottom-box__img"]};y=o.h(l,R)}const L={class:"fox-infinite__bottom-box__text"},Y=o.h("view",L,[u.loadText.value]);N=[y,Y]}const v={class:"fox-infinite__bottom-box"},j=o.h("view",v,N);q.push(j)}else if(!t.hasMore){let N=a?.finished?.()??null;if(!N){const v={class:"fox-infinite__bottom-tips"};N=o.h("view",v,[u.noMoreText.value]),q.push(N)}}const _={class:"fox-infinite__bottom"},B=o.h("view",_,q),D={class:m.value,ref:s};return o.h("view",D,[b,B])}}}}const{componentName:kh,create:Eh,scope:Ih}=ie("infinite-loading"),Jo=Eh(Nh(kh,Ih,_o)),Oh={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}},Dh=(e,n,l)=>({props:{...Oh},emits:["change","refresh","update:modelValue"],setup(t,{emit:r,slots:a}){const{toLocaleRefs:i}=Fe.useFoxI18n(n),u=i(t,["pullingText","loosingText","loadingText"]),s=Bt(),c=o.ref(),f=ra(c),m=o.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),p=o.computed(()=>({[e]:!0})),w=o.computed(()=>{switch(m.status){case"pulling":return a.pulling?"":u.pullingText.value;case"loosing":return a.loosing?"":u.loosingText.value;case"loading":return a.loading?"":u.loadingText.value;default:return""}}),S=o.computed(()=>({transitionDuration:`${t.duration}s`,transform:m.distance?`translate3d(0,${m.distance}px, 0)`:""})),d=o.computed(()=>{const D={};return t.headHeight!=50&&(D.height=be(t.headHeight)),D}),h=D=>{const N=+(t.pullDistance||t.headHeight);let v=D;return D>N&&(D<N*2?v=(D+N)/2:v=N+D/4),Math.round(v)},O=(D,N)=>{const v=+(t.pullDistance||t.headHeight);m.distance=D,N?m.status="loading":D===0?m.status="normal":D<v?m.status="pulling":m.status="loosing",r("change",{status:m.status,distance:D})},x=()=>m.status!=="loading"&&m.status!=="complete",b=()=>f.value==window?aa()==0:f.value&&f.value.scrollTop==0,q=D=>{x()&&(b()?(s.start(D),m.isPullRefresh=!0,m.moving=!0):(m.distance=0,m.isPullRefresh=!1))},_=D=>{x()&&m.moving&&(s.move(D),s.isVertical()&&s.state.deltaY>0&&m.isPullRefresh&&(D.cancelable&&D.preventDefault(),O(h(s.state.deltaY))))},B=()=>{m.moving=!1,m.isPullRefresh&&x()&&s.state.deltaY&&(m.status==="loosing"?(O(+t.headHeight,!0),r("update:modelValue",!0),o.nextTick(()=>r("refresh"))):O(0)),setTimeout(()=>{s.reset()},0)};return o.watch(()=>t.modelValue,D=>{D?O(+t.headHeight,!0):O(0)}),()=>{const D=[];let N=null;if(m.status==="loading"){if(N=a?.loading?.()??null,!N){const F={class:["fox-pull-refresh-container-topbox-icon"]};N=o.h(l,F)}}else m.status==="pulling"?N=a?.pulling?.()??null:m.status==="loosing"&&(N=a?.loosing?.()??null);N&&D.push(N);const v={class:["fox-pull-refresh-container-topbox-text"]},j=o.h("dive",v,[w.value]);D.push(j);const y={class:["fox-pull-refresh-container-topbox"],style:d.value},L=o.h("div",y,D),Y={class:"fox-pull-refresh-container",style:S.value},R=o.h("div",Y,[L,a?.default?.()]),k={ref:c,class:p.value};return Lt()?Object.assign(k,{onTouchstart:q,onTouchmove:_,onTouchend:B}):Object.assign(k,{onMousedown:q,onMousemove:_,onMouseup:B}),o.h("div",k,[R])}}}),{componentName:Vh,create:Rh,scope:Fh}=ie("pull-refresh"),el=Rh(Dh(Vh,Fh,_o)),Ah={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},textPosition:{type:[String],requried:!1},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},icon:{type:[Object],requried:!1}};function Mh(e,n,l){return{props:{...Ah},emits:["click","update:modelValue"],setup(t,{emit:r,slots:a}){const{toLocaleRefs:i}=Fe.useFoxI18n(n),u=i(t,["collapseText","expandText"]),s=o.computed(()=>{const S={[`${e}`]:!0};return t.disabled?S[`${e}--disabled`]=!0:S[`${e}--${t.type}`]=!0,S}),c=ge(t,"modelValue"),f=o.computed(()=>c.value?u.expandText.value??"":u.collapseText.value??""),m=o.computed(()=>({[`${e}__text`]:!0})),p=o.computed(()=>({[`${e}__icon`]:!0,"is-expand":!c.value,"is-collapse":c.value})),w=()=>{r("update:modelValue",!c.value)};return()=>{const S=[];if(f.value){const x={class:m.value},b=o.h("span",x,[f.value]);S.push(b)}const d={class:p.value},h=(a.icon&&a.icon())??(t.icon&&o.h(t.icon))??o.h(l);if(h){const x=o.h("div",d,[h]);S.push(x)}return t.textPosition==="right"&&S.reverse(),o.h("div",{class:s.value,onClick:w},S)}}}}const{componentName:Lh,create:Bh,scope:qh}=ie("more-button"),tl=Bh(Mh(Lh,qh,Ie.ArrowUp));function Ph(e){e.stopPropagation()}let _h=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,l){this.startMove=n,this.updateMove=l,this.isTouch=Lt()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const l=Bt(),t=(r,a,i,u)=>{this.updateMove({x:r,y:a})};this.touchstart=r=>{this.moving||(l.start(r),this.startMove({x:l.state.startX,y:l.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&&(l.move(r),Ph(r),t(l.state.deltaX,l.state.deltaY))},this.touchend=()=>{t(l.state.deltaX,l.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),l.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(n=>{this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}};function jh(e,n){return new _h(e,n)}const zh={customClass:{type:[String]},top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},borderRadius:{type:[String]},draggable:{type:[Boolean]},zIndex:{type:[String]}},Hh=(e,n,l,t=!1)=>({props:{...zh},emits:["click"],setup(r,{slots:a,emit:i}){const u=o.reactive({top:r.top,right:r.right,bottom:r.bottom,left:r.left}),s=o.computed(()=>{const x=[`${e}`];return r.customClass&&x.push(r.customClass),x}),c=o.computed(()=>{const x={};return he(u.top)||(x.top=u.top),he(u.right)||(x.right=u.right),he(u.bottom)||(x.bottom=u.bottom),he(u.left)||(x.left=u.left),he(r.width)||(x.width=r.width),he(r.height)||(x.height=r.height),he(r.color)||(x.color=r.color),he(r.background)||(x.background=r.background),he(r.borderRadius)||(x["border-radius"]=r.borderRadius),he(r.zIndex)||(x["z-index"]=r.zIndex),x}),f=o.computed(()=>({[`${e}__icon`]:!0})),m=()=>{i("click")},p=o.ref(null),w=()=>{u.top=null,u.right=null,u.bottom=null,u.left=null},S={x:0,y:0},O=jh(x=>{if(!p.value)return;const b=p.value;w(),u.left=b.offsetLeft,u.top=b.offsetTop,b.style.left=`${u.left}px`,b.style.top=`${u.top}px`,b.style.right=null,b.style.bottom=null,S.x=u.left,S.y=u.top},x=>{if(!p.value)return;const b=p.value;w(),u.left=S.x+x.x,u.top=S.y+x.y,b.style.left=`${u.left}px`,b.style.top=`${u.top}px`});return o.onMounted(()=>{if(r.draggable&&p.value){const x=[p.value];O.open(x)}}),o.onBeforeUnmount(()=>{r.draggable&&p.value&&O.close()}),()=>{let x=[];const b=typeof a.default=="function"?a.default():[];if(b&&b.length>0)x=b;else{const _=o.h(l,{class:f.value});x.push(_)}const q={ref:_=>{p.value=_},class:s.value,style:c.value,onClick:m};return o.h("view",q,x)}}}),{componentName:Kh,create:Wh,scope:Yh}=ie("floating-button"),nl=Wh(Hh(Kh,Yh,Uf,!1)),qe=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,dt=e=>e==null;class Uh{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,l){this.startMove=n,this.updateMove=l,this.isTouch=Lt()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const l=Bt(),t=(r,a,i,u)=>{this.updateMove({x:r,y:a})};this.touchstart=r=>{this.moving||(l.start(r),this.startMove({x:l.state.startX,y:l.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&&(l.move(r),t(l.state.deltaX,l.state.deltaY))},this.touchend=()=>{t(l.state.deltaX,l.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),l.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(n=>{this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function ia(e,n){return new Uh(e,n)}const sa=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;let Tt=[];const ua=e=>{const n=e;n.key==="Escape"&&Tt.forEach(l=>l(n))},Gh=e=>{o.onMounted(()=>{Tt.length===0&&document.addEventListener("keydown",ua),sa&&Tt.push(e)}),o.onBeforeUnmount(()=>{Tt=Tt.filter(n=>n!==e),Tt.length===0&&sa&&document.removeEventListener("keydown",ua)})},ol="fox-focus-trap.focus-after-trapped",ll="fox-focus-trap.focus-after-released",Xh="fox-focus-trap.focusout-prevented",ca={cancelable:!0,bubbles:!1},Zh={cancelable:!0,bubbles:!1},fa="foxFocusAfterTrapped",da="foxFocusAfterReleased",Qh=Symbol("foxFocusTrap"),rl=o.ref(),Rn=o.ref(0),al=o.ref(0);let Fn=0;const ha=e=>{const n=[],l=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>{const r=t.tagName==="INPUT"&&t.type==="hidden";return t.disabled||t.hidden||r?NodeFilter.FILTER_SKIP:t.tabIndex>=0||t===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;l.nextNode();)n.push(l.currentNode);return n},Jh=(e,n)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},ga=(e,n)=>{for(const l of e)if(!Jh(l,n))return l},eg=e=>{const n=ha(e),l=ga(n,e),t=ga(n.reverse(),e);return[l,t]},tg=e=>e instanceof HTMLInputElement&&"select"in e,st=(e,n)=>{if(e&&e.focus){const l=document.activeElement;e.focus({preventScroll:!0}),al.value=window.performance.now(),e!==l&&tg(e)&&n&&e.select()}};function ma(e,n){const l=[...e],t=e.indexOf(n);return t!==-1&&l.splice(t,1),l}const ng=()=>{let e=[];return{push:t=>{const r=e[0];r&&t!==r&&r.pause(),e=ma(e,t),e.unshift(t)},remove:t=>{e=ma(e,t),e[0]?.resume?.()}}},og=(e,n=!1)=>{const l=document.activeElement;for(const t of e)if(st(t,n),document.activeElement!==l)return},ya=ng(),lg=()=>Rn.value>al.value,An=()=>{rl.value="pointer",Rn.value=window.performance.now()},pa=()=>{rl.value="keyboard",Rn.value=window.performance.now()},rg=()=>(o.onMounted(()=>{Fn===0&&(document.addEventListener("mousedown",An),document.addEventListener("touchstart",An),document.addEventListener("keydown",pa)),Fn++}),o.onBeforeUnmount(()=>{Fn--,Fn<=0&&(document.removeEventListener("mousedown",An),document.removeEventListener("touchstart",An),document.removeEventListener("keydown",pa))}),{focusReason:rl,lastUserFocusTimestamp:Rn,lastAutomatedFocusTimestamp:al}),Mn=e=>new CustomEvent(Xh,{...Zh,detail:e}),{create:ag}=ie("focus-trap"),ig=ag({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:[fa,da,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:n,emit:l}){const t=o.ref();let r,a;const{focusReason:i}=rg();Gh(d=>{ce(e.trapped)&&!u.paused&&l("release-requested",d)});const u={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=d=>{if(!e.loop&&!ce(e.trapped)||u.paused)return;const{key:h,altKey:O,ctrlKey:x,metaKey:b,currentTarget:q,shiftKey:_}=d,{loop:B}=e,D=h==="Tab"&&!O&&!x&&!b,N=document.activeElement;if(D&&N){const v=q,[j,y]=eg(v);if(j&&y){if(!_&&N===y){const Y=Mn({focusReason:i.value});l("focusout-prevented",Y),Y.defaultPrevented||(d.preventDefault(),B&&st(j,!0))}else if(_&&[j,v].includes(N)){const Y=Mn({focusReason:i.value});l("focusout-prevented",Y),Y.defaultPrevented||(d.preventDefault(),B&&st(y,!0))}}else if(N===v){const Y=Mn({focusReason:i.value});l("focusout-prevented",Y),Y.defaultPrevented||d.preventDefault()}}};o.provide(Qh,{focusTrapRef:t,onKeydown:s}),o.watch(()=>e.focusTrapEl,d=>{d&&(t.value=d)},{immediate:!0}),o.watch([t],([d],[h])=>{d&&(d.addEventListener("keydown",s),d.addEventListener("focusin",m),d.addEventListener("focusout",p)),h&&(h.removeEventListener("keydown",s),h.removeEventListener("focusin",m),h.removeEventListener("focusout",p))});const c=d=>{l(fa,d)},f=d=>l(da,d),m=d=>{const h=o.unref(t);if(!h)return;const O=d.target,x=d.relatedTarget,b=O&&h.contains(O);ce(e.trapped)||x&&h.contains(x)||(r=x),b&&l("focusin",d),!u.paused&&ce(e.trapped)&&(b?a=O:st(a,!0))},p=d=>{const h=o.unref(t);if(!(u.paused||!h))if(!e.escape&&ce(e.trapped)){const O=d.relatedTarget;!Wt(O)&&!h.contains(O)&&setTimeout(()=>{if(!u.paused&&ce(e.trapped)){const x=Mn({focusReason:i.value});l("focusout-prevented",x),x.defaultPrevented||st(a,!0)}},0)}else{const O=d.target;O&&h.contains(O)||l("focusout",d)}};async function w(){await o.nextTick();const d=o.unref(t);if(d){ya.push(u);const h=d.contains(document.activeElement)?r:document.activeElement;if(r=h,!d.contains(h)){const x=new Event(ol,ca);d.addEventListener(ol,c),d.dispatchEvent(x),x.defaultPrevented||o.nextTick(()=>{let b=e.focusStartEl;Tl(b)||(st(b),document.activeElement!==b&&(b="first")),b==="first"&&og(ha(d),!0),(document.activeElement===h||b==="container")&&st(d)})}}}function S(){const d=o.unref(t);if(d){d.removeEventListener(ol,c);const h=new CustomEvent(ll,{...ca,detail:{focusReason:i.value}});d.addEventListener(ll,f),d.dispatchEvent(h),!h.defaultPrevented&&(i.value=="keyboard"||!lg())&&st(r??document.body,!0),d.removeEventListener(ll,c),ya.remove(u)}}return o.onMounted(()=>{ce(e.trapped)&&w(),o.watch(()=>e.trapped,d=>{ce(d)?w():S()})}),o.onBeforeUnmount(()=>{ce(e.trapped)&&S()}),()=>typeof n.default=="function"?n.default({"handle-keydown":s}):null}}),{componentName:sg,create:ug}=ie("floating-window"),cg=Symbol.for("InnerPageScopeKey"),fg=Symbol.for("PageWrapperKey"),dg={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},height:{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}},hg=ug({inheritAttrs:!1,components:{FoxIcon:T.ElIcon,FocusTrap:ig},props:{...dg},emits:["update:modelValue","update:collapse"],setup(e,{emit:n}){const l=sg,t=o.ref(e.modelValue),r=o.computed(()=>!e.teleport);o.watch(()=>e.modelValue,V=>{t.value=V});const a=o.computed(()=>t.value===!1?!1:!N.value),i=o.ref(e.left),u=o.ref(e.top),s=o.ref(e.right),c=o.ref(e.bottom),f=o.computed(()=>{const V=["fox-floating-window"];return e.customClass&&V.push(e.customClass),V}),m=o.computed(()=>{const V={};return dt(i.value)?V.left="auto":V.left=qe(i.value),dt(u.value)?V.top="auto":V.top=qe(u.value),dt(s.value)?V.right="auto":V.right=qe(s.value),dt(c.value)?V.bottom="auto":V.bottom=qe(c.value),dt(e.zIndex)||(V["z-index"]=qe(e.zIndex)),dt(B.value)||(V.height=B.value),dt(D.value)||(V.width=D.value),V}),p=o.computed(()=>e.closeIcon??Ie.Close),w=o.computed(()=>e.collapseIcon??Ie.ArrowUp),S=o.computed(()=>e.collapseText??""),d=o.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ie.ArrowRight:e.expandIcon??Ie.ArrowLeft),h=o.computed(()=>e.expandText??e.title??"展开"),O=o.computed(()=>({[`${l}__collapse-text`]:!0})),x=o.computed(()=>({[`${l}__collapse-icon`]:!0,"is-expand":!N.value,"is-collapse":N.value})),b=o.ref(),q=o.ref(null),_=o.ref(null),B=o.computed(()=>qe(e.height)||""),D=o.computed(()=>qe(e.width)||""),N=o.ref(ce(e.collapse)),v=(V,H=!0)=>{N.value!==V&&(N.value=V,V?$():M(),n("update:collapse",V),V&&typeof L.onHide=="function"?L.onHide():!V&&typeof L.onShow=="function"&&L.onShow())};o.watch(()=>e.collapse,V=>{v(V)});const j=()=>{y()},y=V=>{V=V??!N.value,v(V)};o.provide(cg,!0);const L={setCollapse:v,setFixedNavVisible:V=>{P.value=V}};o.provide(fg,L);const Y=()=>{typeof L.beforeClose=="function"?L.beforeClose(()=>{t.value=!1}):t.value=!1},R=o.ref(null),k=o.computed(()=>!e.fixedNavTeleport),F=o.computed(()=>{const V=["fox-floating-window__fixednav"];return e.expandClass&&V.push(e.expandClass),e.collapsePosition==="left"?V.push("is-left"):e.collapsePosition==="right"&&V.push("is-right"),V}),z=o.ref(""),X=o.computed(()=>{const V={};return z.value?V.top=z.value:e.collapseTop&&(V.top=e.collapseTop),V}),ee=o.ref(N.value),P=o.computed({set:V=>{ee.value=V},get:()=>t.value===!1?!1:ee.value});let te=null;const E=()=>{typeof te=="function"&&(te(),te=null)},$=()=>{R.value&&R.value.classList.add("slide-in"),P.value=!0,te=()=>{R.value&&R.value.classList.remove("slide-in")}},M=()=>{R.value&&R.value.classList.add("slide-out"),te=()=>{R.value&&R.value.classList.remove("slide-out"),P.value=!1}},A=()=>{i.value=null,u.value=null,s.value=null,c.value=null},C={x:0,y:0},le=ia(V=>{if(!b.value)return;const H=b.value;if(A(),e.origin==="left-top")i.value=H.offsetLeft,u.value=H.offsetTop,C.x=i.value,C.y=u.value;else if(e.origin==="left-bottom"){const Q=document.documentElement.clientHeight||document.body.clientHeight;i.value=H.offsetLeft,c.value=Q-(H.offsetTop+H.offsetHeight),C.x=i.value,C.y=c.value}else if(e.origin==="right-bottom"){const Q=document.documentElement.clientWidth||document.body.clientWidth,oe=document.documentElement.clientHeight||document.body.clientHeight;s.value=Q-(H.offsetLeft+H.offsetWidth),c.value=oe-(H.offsetTop+H.offsetHeight),C.x=s.value,C.y=c.value}else{const Q=document.documentElement.clientWidth||document.body.clientWidth;s.value=Q-(H.offsetLeft+H.offsetWidth),u.value=H.offsetTop,C.x=s.value,C.y=u.value}},V=>{if(!b.value)return;const H=b.value;A(),e.origin==="left-top"?(i.value=C.x+V.x,u.value=C.y+V.y,H.style.left=qe(i.value),H.style.top=qe(u.value)):e.origin==="left-bottom"?(i.value=C.x+V.x,c.value=C.y-V.y,H.style.left=qe(i.value),H.style.bottom=qe(c.value)):e.origin==="right-bottom"?(s.value=C.x-V.x,c.value=C.y-V.y,H.style.right=qe(s.value),H.style.bottom=qe(c.value)):(s.value=C.x-V.x,u.value=C.y+V.y,H.style.right=qe(s.value),H.style.top=qe(u.value))}),G={x:0,y:0},W=ia(V=>{R.value&&(G.x=R.value.offsetLeft,G.y=R.value.offsetTop)},V=>{if(!R.value)return;const H=G.y+V.y;z.value=`${H}px`}),J=()=>{if(b.value){const V=b.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");_.value=V}};return o.onMounted(()=>{if(e.draggable&&b.value){const V=[];q.value&&V.push(q.value),e.footerDraggable&&(J(),_.value&&V.push(_.value)),le.open(V)}e.collapse===!0&&v(e.collapse,!1),R.value&&W.open(R.value)}),o.onBeforeUnmount(()=>{e.draggable&&q.value&&le.close(),R.value&&W.close()}),{classes:f,styles:m,isShow:a,closeIcon:p,onClose:Y,dialogRef:b,headerRef:q,onClickToggle:j,collapseIcon:w,collapseText:S,collapseTextClasses:O,collapseIconClasses:x,expandIcon:d,expandText:h,isShowFixedNav:P,fixedNavRef:R,fixedNavClasses:F,fixedNavStyles:X,onAnimationEnd:E,teleportDisabled:r,fixedNavTeleportDisabled:k}}}),gg={ref:"headerRef",class:"fox-floating-window__header"},mg={class:"fox-floating-window__title"},yg={class:"fox-floating-window__tools"},pg={class:"fox-floating-window__body"},bg={class:"fox-floating-window__fixednav__text"};function vg(e,n,l,t,r,a){const i=o.resolveComponent("FoxIcon"),u=o.resolveComponent("FocusTrap");return o.openBlock(),o.createElementBlock(o.Fragment,null,[(o.openBlock(),o.createBlock(o.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[o.createVNode(o.Transition,{name:"fox-floating-window-fade"},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",{ref:"dialogRef",class:o.normalizeClass(e.classes),style:o.normalizeStyle(e.styles),tabindex:"-1"},[o.createVNode(u,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:o.withCtx(()=>[o.createElementVNode("div",gg,[o.renderSlot(e.$slots,"header",{},()=>[o.createElementVNode("span",mg,o.toDisplayString(e.title),1),o.createElementVNode("div",yg,[e.showCollapse?(o.openBlock(),o.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:n[0]||(n[0]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[o.createElementVNode("span",{class:o.normalizeClass(e.collapseTextClasses)},o.toDisplayString(e.collapseText),3),o.createVNode(i,{class:o.normalizeClass(e.collapseIconClasses)},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):o.createCommentVNode("",!0),e.showClose?(o.openBlock(),o.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):o.createCommentVNode("",!0)])])],512),o.createElementVNode("div",pg,[o.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[o.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(o.openBlock(),o.createBlock(o.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[o.withDirectives(o.createElementVNode("div",{ref:"fixedNavRef",class:o.normalizeClass(e.fixedNavClasses),style:o.normalizeStyle(e.fixedNavStyles),onAnimationend:n[2]||(n[2]=(...s)=>e.onAnimationEnd&&e.onAnimationEnd(...s))},[o.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:n[1]||(n[1]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[o.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.expandIcon)))]),_:1}),o.createElementVNode("div",bg,o.toDisplayString(e.expandText),1)])],38),[[o.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const il=Ue(hg,[["render",vg]]);function wg(e,n){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(l,{slots:t}){const r=e,a=o.computed(()=>({[r]:!0})),i=o.computed(()=>l.icon?{[`${r}__icon`]:!0,[`${r}__icon-${l.type}`]:!0}:{[`${r}__mark`]:!0,[`${r}__mark-${l.type}`]:!0}),u=o.computed(()=>l.color?l.icon?{color:l.color}:{background:l.color}:null),s=o.computed(()=>{const f={[`${r}__text`]:!0,[`${r}__text-${l.type}`]:!0};return l.textPosition==="left"?f["is-left"]=!0:f["is-right"]=!0,f}),c=o.computed(()=>l.color?{color:l.color}:null);return()=>{let f=null;if(t.mark)f=t.mark()[0];else{const d={class:i.value,style:u.value};f=o.h(l.icon??"div",d)}const m={class:s.value,style:c.value},p=t.default?t.default():[],w=o.h("div",m,p),S={class:a.value};return l.textPosition==="right"?o.h("div",S,[f,w]):o.h("div",S,[w,f])}}}}const{componentName:Sg,create:xg}=ie("indicator"),sl=xg(wg(Sg));function Tg(e){return e===window}const ba=e=>{const n=o.unref(e);if(Tg(n)){const l=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:l,bottom:t,width:l,height:t}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:Cg,create:$g}=ie("tour"),Ng=$g({components:{Close:Ie.Close,ElPopover:T.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:n}){const l=Cg,t=o.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=o.ref({}),a=o.computed(()=>`${l}`),i=o.computed(()=>{const{offset:S,maskWidth:d,maskHeight:h}=e,{width:O,height:x,left:b,top:q}=r.value,_=e.steps[t.active].offset??S,B=[b+O/2,q+x/2],D=Number(d||O),N=Number(h||x);return{width:`${D+ +_.left+_.right}px`,height:`${N+_.top+_.bottom}px`,top:`${B[1]-N/2-+_.top}px`,left:`${B[0]-D/2-+_.left}px`}}),u=S=>{S=="next"?t.active=t.active+1:t.active=t.active-1,t.showPopup=!1,o.nextTick(()=>{t.showPopup=!0,f()}),n("change",t.active)},s=S=>S.popoverWidth??e.width,c=S=>S.location??e.location,f=()=>{const S=document.querySelector(`${e.steps[t.active].target}`),d=ba(S);r.value={x:d.left,y:d.top,top:d.top,left:d.left,width:d.width,height:d.height}},m=()=>{t.showTour=!1,t.showPopup=!1,n("close",t.active),n("update:modelValue",!1)},p=()=>{e.closeOnClickOverlay&&m()},w=(S,d=0)=>{S&&f(),e.steps,t.active=d,t.showTour=S,t.showPopup=S};return o.onMounted(()=>{w(e.modelValue,e.current)}),o.watch(()=>e.modelValue,S=>{w(S)}),{...o.toRefs(t),classes:a,maskStyle:i,changeStep:u,popoverWidth:s,popoverLocation:c,close:m,handleClickMask:p}}}),kg={key:0,class:"fox-tour__content"},Eg={key:0,class:"fox-tour__content-top"},Ig={class:"fox-tour__content-inner"},Og={class:"fox-tour__content-bottom"},Dg={class:"fox-tour__content-bottom-init"},Vg={class:"fox-tour__content-bottom-operate"},Rg={key:1,class:"fox-tour__content fox-tour__content-tile"},Fg={class:"fox-tour__content-inner"};function Ag(e,n,l,t,r,a){const i=o.resolveComponent("Close"),u=o.resolveComponent("fox-button"),s=o.resolveComponent("ElPopover");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(e.classes)},[o.withDirectives(o.createElementVNode("div",{class:"fox-tour__masked",onClick:n[0]||(n[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[o.vShow,e.showTour]]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.steps,(c,f)=>(o.openBlock(),o.createElementBlock("div",{key:f,style:{height:"0"}},[f==e.active?(o.openBlock(),o.createBlock(s,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(c),width:e.popoverWidth(c)},{reference:o.withCtx(()=>[e.showTour?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:o.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):o.createCommentVNode("",!0)]),default:o.withCtx(()=>[o.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(o.openBlock(),o.createElementBlock("div",kg,[e.showTitleBar?(o.openBlock(),o.createElementBlock("div",Eg,[o.createElementVNode("div",{onClick:n[1]||(n[1]=(...m)=>e.close&&e.close(...m))},[o.createVNode(i,{class:"fox-tour__content-top-close"})])])):o.createCommentVNode("",!0),o.createElementVNode("div",Ig,o.toDisplayString(c.content),1),o.createElementVNode("div",Og,[o.createElementVNode("div",Dg,o.toDisplayString(e.active+1)+"/"+o.toDisplayString(e.steps.length),1),o.createElementVNode("div",Vg,[o.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(o.openBlock(),o.createBlock(u,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[2]||(n[2]=m=>e.changeStep("prev"))},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.prevStepText),1)]),_:1})):o.createCommentVNode("",!0)]),e.steps.length-1==e.active?(o.openBlock(),o.createBlock(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):o.createCommentVNode("",!0),o.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(o.openBlock(),o.createBlock(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[3]||(n[3]=m=>e.changeStep("next"))},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.nextStepText),1)]),_:1})):o.createCommentVNode("",!0)])])])])):o.createCommentVNode("",!0),e.type=="tile"?(o.openBlock(),o.createElementBlock("div",Rg,[o.createElementVNode("div",Fg,o.toDisplayString(c.content),1)])):o.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):o.createCommentVNode("",!0)]))),128))],2)}const ul=Ue(Ng,[["render",Ag]]);function Mg(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:()=>{}},innerPageScope:{type:[Boolean],required:!1}},setup(l,{slots:t}){return jl(l.name,()=>l.config),Wt(l.innerPageScope)||o.provide(Zl,l.innerPageScope),()=>typeof t.default=="function"?t.default():null}}}const{create:Lg}=ie("domain-provider"),cl=Lg(Mg()),Bg={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 qg(e,n){return{inheritAttrs:!1,props:Bg,setup(l,{slots:t}){if(lt&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(p,w)=>{if(f===null){a.set(p,{visible:null,callback:w});return}r.has(p)&&f.unobserve(p),r.set(p,{visible:null,callback:w}),f.observe(p)},u=p=>{if(f===null){a.delete(p);return}r.has(p)&&(r.delete(p),f.unobserve(p))};let s=l.initialVisibleObserverSize;Ci({acquire:()=>{const p=s>0;return s--,p},get disabled(){return l.disabled},get initialHeight(){return l.initialInvisibleObserverHeight},observe:i,unobserve:u});let f=null;const m=(p,w,S)=>{f=new IntersectionObserver(d=>{for(let h of d){let O=!1;h.intersectionRatio>0&&(O=!0);const x=r.get(h.target);if(x)try{if(l.loadPolicy==="lazy"&&!O&&x.visible!==null)return;x.visible=O,x.callback(O)}catch(b){console.error(b)}}},{root:p,rootMargin:w,threshold:S}),a.forEach((d,h)=>{r.set(h,d),f?.observe(h)}),a.clear()};o.watch([()=>l.root,()=>l.disabled],([p,w])=>{if(w||!p||f)return;let S=null;typeof p=="string"?S=document.querySelector(p):S=p,S&&m(S,l.rootMargin,l.threshold)},{immediate:!0}),o.onUnmounted(()=>{f&&(f.disconnect(),f=null)})}return()=>typeof t.default=="function"?t.default():null}}}const{create:Pg}=ie("rolling-provider"),fl=Pg(qg()),_g=[lo,ao,io,so,fo,Ne,yn,pn,bo,Vt,vo,wo,So,xo,To,Co,$o,ko,Eo,Io,Oo,In,Ro,Fo,Ao,Mo,Lo,Bo,qo,Po,On,Dn,Ho,Ko,Uo,Go,Vn,Xo,Zo,Qo,Jo,el,tl,nl,il,vn,Ft,gn,sl,bn,ul,cl,fl],jg=new li(_g,[ii],"4.0.0");Object.defineProperty(g,"FoxAffix",{enumerable:!0,get:()=>T.ElAffix}),Object.defineProperty(g,"FoxAlert",{enumerable:!0,get:()=>T.ElAlert}),Object.defineProperty(g,"FoxAnchor",{enumerable:!0,get:()=>T.ElAnchor}),Object.defineProperty(g,"FoxAnchorLink",{enumerable:!0,get:()=>T.ElAnchorLink}),Object.defineProperty(g,"FoxAside",{enumerable:!0,get:()=>T.ElAside}),Object.defineProperty(g,"FoxAutoResizer",{enumerable:!0,get:()=>T.ElAutoResizer}),Object.defineProperty(g,"FoxAutocomplete",{enumerable:!0,get:()=>T.ElAutocomplete}),Object.defineProperty(g,"FoxAvatar",{enumerable:!0,get:()=>T.ElAvatar}),Object.defineProperty(g,"FoxBacktop",{enumerable:!0,get:()=>T.ElBacktop}),Object.defineProperty(g,"FoxBadge",{enumerable:!0,get:()=>T.ElBadge}),Object.defineProperty(g,"FoxBreadcrumb",{enumerable:!0,get:()=>T.ElBreadcrumb}),Object.defineProperty(g,"FoxBreadcrumbItem",{enumerable:!0,get:()=>T.ElBreadcrumbItem}),Object.defineProperty(g,"FoxButton",{enumerable:!0,get:()=>T.ElButton}),Object.defineProperty(g,"FoxButtonGroup",{enumerable:!0,get:()=>T.ElButtonGroup}),Object.defineProperty(g,"FoxCalendar",{enumerable:!0,get:()=>T.ElCalendar}),Object.defineProperty(g,"FoxCard",{enumerable:!0,get:()=>T.ElCard}),Object.defineProperty(g,"FoxCarousel",{enumerable:!0,get:()=>T.ElCarousel}),Object.defineProperty(g,"FoxCarouselItem",{enumerable:!0,get:()=>T.ElCarouselItem}),Object.defineProperty(g,"FoxCascader",{enumerable:!0,get:()=>T.ElCascader}),Object.defineProperty(g,"FoxCascaderPanel",{enumerable:!0,get:()=>T.ElCascaderPanel}),Object.defineProperty(g,"FoxCheckTag",{enumerable:!0,get:()=>T.ElCheckTag}),Object.defineProperty(g,"FoxCheckbox",{enumerable:!0,get:()=>T.ElCheckbox}),Object.defineProperty(g,"FoxCheckboxButton",{enumerable:!0,get:()=>T.ElCheckboxButton}),Object.defineProperty(g,"FoxCheckboxGroup",{enumerable:!0,get:()=>T.ElCheckboxGroup}),Object.defineProperty(g,"FoxCol",{enumerable:!0,get:()=>T.ElCol}),Object.defineProperty(g,"FoxCollapse",{enumerable:!0,get:()=>T.ElCollapse}),Object.defineProperty(g,"FoxCollapseItem",{enumerable:!0,get:()=>T.ElCollapseItem}),Object.defineProperty(g,"FoxCollapseTransition",{enumerable:!0,get:()=>T.ElCollapseTransition}),Object.defineProperty(g,"FoxColorPicker",{enumerable:!0,get:()=>T.ElColorPicker}),Object.defineProperty(g,"FoxConfigProvider",{enumerable:!0,get:()=>T.ElConfigProvider}),Object.defineProperty(g,"FoxContainer",{enumerable:!0,get:()=>T.ElContainer}),Object.defineProperty(g,"FoxCountdown",{enumerable:!0,get:()=>T.ElCountdown}),Object.defineProperty(g,"FoxDatePicker",{enumerable:!0,get:()=>T.ElDatePicker}),Object.defineProperty(g,"FoxDescriptions",{enumerable:!0,get:()=>T.ElDescriptions}),Object.defineProperty(g,"FoxDescriptionsItem",{enumerable:!0,get:()=>T.ElDescriptionsItem}),Object.defineProperty(g,"FoxDialog",{enumerable:!0,get:()=>T.ElDialog}),Object.defineProperty(g,"FoxDivider",{enumerable:!0,get:()=>T.ElDivider}),Object.defineProperty(g,"FoxDrawer",{enumerable:!0,get:()=>T.ElDrawer}),Object.defineProperty(g,"FoxDropdown",{enumerable:!0,get:()=>T.ElDropdown}),Object.defineProperty(g,"FoxDropdownItem",{enumerable:!0,get:()=>T.ElDropdownItem}),Object.defineProperty(g,"FoxDropdownMenu",{enumerable:!0,get:()=>T.ElDropdownMenu}),Object.defineProperty(g,"FoxEmpty",{enumerable:!0,get:()=>T.ElEmpty}),Object.defineProperty(g,"FoxFooter",{enumerable:!0,get:()=>T.ElFooter}),Object.defineProperty(g,"FoxForm",{enumerable:!0,get:()=>T.ElForm}),Object.defineProperty(g,"FoxFormItem",{enumerable:!0,get:()=>T.ElFormItem}),Object.defineProperty(g,"FoxHeader",{enumerable:!0,get:()=>T.ElHeader}),Object.defineProperty(g,"FoxIcon",{enumerable:!0,get:()=>T.ElIcon}),Object.defineProperty(g,"FoxImage",{enumerable:!0,get:()=>T.ElImage}),Object.defineProperty(g,"FoxImageViewer",{enumerable:!0,get:()=>T.ElImageViewer}),Object.defineProperty(g,"FoxInput",{enumerable:!0,get:()=>T.ElInput}),Object.defineProperty(g,"FoxInputNumber",{enumerable:!0,get:()=>T.ElInputNumber}),Object.defineProperty(g,"FoxInputTag",{enumerable:!0,get:()=>T.ElInputTag}),Object.defineProperty(g,"FoxLink",{enumerable:!0,get:()=>T.ElLink}),Object.defineProperty(g,"FoxMain",{enumerable:!0,get:()=>T.ElMain}),Object.defineProperty(g,"FoxMention",{enumerable:!0,get:()=>T.ElMention}),Object.defineProperty(g,"FoxMenu",{enumerable:!0,get:()=>T.ElMenu}),Object.defineProperty(g,"FoxMenuItem",{enumerable:!0,get:()=>T.ElMenuItem}),Object.defineProperty(g,"FoxMenuItemGroup",{enumerable:!0,get:()=>T.ElMenuItemGroup}),Object.defineProperty(g,"FoxMessage",{enumerable:!0,get:()=>T.ElMessage}),Object.defineProperty(g,"FoxMessageBox",{enumerable:!0,get:()=>T.ElMessageBox}),Object.defineProperty(g,"FoxNotification",{enumerable:!0,get:()=>T.ElNotification}),Object.defineProperty(g,"FoxOption",{enumerable:!0,get:()=>T.ElOption}),Object.defineProperty(g,"FoxOptionGroup",{enumerable:!0,get:()=>T.ElOptionGroup}),Object.defineProperty(g,"FoxPageHeader",{enumerable:!0,get:()=>T.ElPageHeader}),Object.defineProperty(g,"FoxPagination",{enumerable:!0,get:()=>T.ElPagination}),Object.defineProperty(g,"FoxPopconfirm",{enumerable:!0,get:()=>T.ElPopconfirm}),Object.defineProperty(g,"FoxPopover",{enumerable:!0,get:()=>T.ElPopover}),Object.defineProperty(g,"FoxPopper",{enumerable:!0,get:()=>T.ElPopper}),Object.defineProperty(g,"FoxProgress",{enumerable:!0,get:()=>T.ElProgress}),Object.defineProperty(g,"FoxRadio",{enumerable:!0,get:()=>T.ElRadio}),Object.defineProperty(g,"FoxRadioButton",{enumerable:!0,get:()=>T.ElRadioButton}),Object.defineProperty(g,"FoxRadioGroup",{enumerable:!0,get:()=>T.ElRadioGroup}),Object.defineProperty(g,"FoxRate",{enumerable:!0,get:()=>T.ElRate}),Object.defineProperty(g,"FoxResult",{enumerable:!0,get:()=>T.ElResult}),Object.defineProperty(g,"FoxRow",{enumerable:!0,get:()=>T.ElRow}),Object.defineProperty(g,"FoxScrollbar",{enumerable:!0,get:()=>T.ElScrollbar}),Object.defineProperty(g,"FoxSegmented",{enumerable:!0,get:()=>T.ElSegmented}),Object.defineProperty(g,"FoxSelect",{enumerable:!0,get:()=>T.ElSelect}),Object.defineProperty(g,"FoxSelectV2",{enumerable:!0,get:()=>T.ElSelectV2}),Object.defineProperty(g,"FoxSkeleton",{enumerable:!0,get:()=>T.ElSkeleton}),Object.defineProperty(g,"FoxSkeletonItem",{enumerable:!0,get:()=>T.ElSkeletonItem}),Object.defineProperty(g,"FoxSlider",{enumerable:!0,get:()=>T.ElSlider}),Object.defineProperty(g,"FoxSpace",{enumerable:!0,get:()=>T.ElSpace}),Object.defineProperty(g,"FoxStatistic",{enumerable:!0,get:()=>T.ElStatistic}),Object.defineProperty(g,"FoxStep",{enumerable:!0,get:()=>T.ElStep}),Object.defineProperty(g,"FoxSteps",{enumerable:!0,get:()=>T.ElSteps}),Object.defineProperty(g,"FoxSubMenu",{enumerable:!0,get:()=>T.ElSubMenu}),Object.defineProperty(g,"FoxSwitch",{enumerable:!0,get:()=>T.ElSwitch}),Object.defineProperty(g,"FoxTabPane",{enumerable:!0,get:()=>T.ElTabPane}),Object.defineProperty(g,"FoxTable",{enumerable:!0,get:()=>T.ElTable}),Object.defineProperty(g,"FoxTableColumn",{enumerable:!0,get:()=>T.ElTableColumn}),Object.defineProperty(g,"FoxTableV2",{enumerable:!0,get:()=>T.ElTableV2}),Object.defineProperty(g,"FoxTabs",{enumerable:!0,get:()=>T.ElTabs}),Object.defineProperty(g,"FoxTag",{enumerable:!0,get:()=>T.ElTag}),Object.defineProperty(g,"FoxTimePicker",{enumerable:!0,get:()=>T.ElTimePicker}),Object.defineProperty(g,"FoxTimeSelect",{enumerable:!0,get:()=>T.ElTimeSelect}),Object.defineProperty(g,"FoxTimeline",{enumerable:!0,get:()=>T.ElTimeline}),Object.defineProperty(g,"FoxTimelineItem",{enumerable:!0,get:()=>T.ElTimelineItem}),Object.defineProperty(g,"FoxTooltip",{enumerable:!0,get:()=>T.ElTooltip}),Object.defineProperty(g,"FoxTransfer",{enumerable:!0,get:()=>T.ElTransfer}),Object.defineProperty(g,"FoxTree",{enumerable:!0,get:()=>T.ElTree}),Object.defineProperty(g,"FoxTreeSelect",{enumerable:!0,get:()=>T.ElTreeSelect}),Object.defineProperty(g,"FoxTreeV2",{enumerable:!0,get:()=>T.ElTreeV2}),Object.defineProperty(g,"FoxUpload",{enumerable:!0,get:()=>T.ElUpload}),Object.defineProperty(g,"FoxWatermark",{enumerable:!0,get:()=>T.ElWatermark}),g.AutocompleteItem=Eo,g.Broadcast=Jn,g.BroadcastKey=Se,g.ButtonsItem=bo,g.CascaderItem=ko,g.CheckboxItem=Ao,g.Content=so,g.DataItemsKey=yt,g.DateItem=So,g.DateUtils=ze,g.DialogItem=Go,g.Domain=Qt,g.DomainKey=Pe,g.DomainProvider=cl,g.FloatingButton=nl,g.FloatingWindow=il,g.FooterBar=io,g.FoxAutocompleteItem=Eo,g.FoxButtonsItem=bo,g.FoxCascaderItem=ko,g.FoxCheckboxItem=Ao,g.FoxContent=so,g.FoxDateItem=So,g.FoxDialogItem=Go,g.FoxDomainProvider=cl,g.FoxFloatingButton=nl,g.FoxFloatingWindow=il,g.FoxFooterBar=io,g.FoxGroup=fo,g.FoxGroupSetting=qo,g.FoxHeaderBar=ao,g.FoxHintText=Vt,g.FoxIndicator=sl,g.FoxInfiniteLoading=Jo,g.FoxInputItem=vo,g.FoxInputNumberItem=$o,g.FoxItem=Ne,g.FoxMapping=Ft,g.FoxMoneyItem=Co,g.FoxMoreButton=tl,g.FoxOverLay=Vn,g.FoxPage=lo,g.FoxPopoverDialog=vn,g.FoxPopup=Xo,g.FoxPrice=gn,g.FoxPullRefresh=el,g.FoxRadioItem=Fo,g.FoxRateItem=Mo,g.FoxRollingProvider=fl,g.FoxRowItem=pn,g.FoxSearchBar=Qo,g.FoxSelectItem=wo,g.FoxSlotItem=yn,g.FoxStepsBar=Uo,g.FoxSwitchItem=Lo,g.FoxTableItem=Ro,g.FoxTableMappingColumn=Io,g.FoxTableRadioColumn=Oo,g.FoxTableSetting=In,g.FoxTabsBar=On,g.FoxTabsContainer=Dn,g.FoxTabsFrame=Ko,g.FoxTabsPane=Ho,g.FoxText=bn,g.FoxTimeItem=xo,g.FoxTimeSelectItem=To,g.FoxToast=Zo,g.FoxTour=ul,g.FoxTreeItem=Po,g.FoxTreeSelectItem=Bo,g.Group=fo,g.GroupSetting=qo,g.HeaderBar=ao,g.HintText=Vt,g.Indicator=sl,g.InfiniteLoading=Jo,g.InputItem=vo,g.InputNumberItem=$o,g.Item=Ne,g.Mapping=Ft,g.MoneyItem=Co,g.MoreButton=tl,g.OverLay=Vn,g.Page=lo,g.PopoverDialog=vn,g.Popup=Xo,g.Price=gn,g.PriorityPolicy=_e,g.PullRefresh=el,g.RadioItem=Fo,g.RateItem=Mo,g.RollingProvider=fl,g.RowItem=pn,g.SearchBar=Qo,g.SelectItem=wo,g.SlotItem=yn,g.StepsBar=Uo,g.SwitchItem=Lo,g.TableItem=Ro,g.TableMappingColumn=Io,g.TableRadioColumn=Oo,g.TableSetting=In,g.TabsBar=On,g.TabsContainer=Dn,g.TabsFrame=Ko,g.TabsPane=Ho,g.Text=bn,g.TimeItem=xo,g.TimeSelectItem=To,g.Toast=Zo,g.Tour=ul,g.TreeItem=Po,g.TreeSelectItem=Bo,g.UniqueID=nr,g.ValidateSchema=ql,g.ValidateSchemaKey=Ye,g.cancelRaf=Sa,g.clearNonNumber=Ra,g.clone=Xn,g.compareTo=Wn,g.createBroadcast=Yt,g.createValidateSchema=Gt,g.debounce=He,g.debounceRef=Wa,g.decimalLength=Rl,g.default=jg,g.defineBroadcast=La,g.defineConfigDomain=jl,g.defineDataItem=zl,g.defineDomain=to,g.defineItem=Ee,g.definePageState=Kl,g.defineSimpleItem=Hl,g.deleteGlobalValidator=ja,g.disabledProperty=Le,g.divide=Kn,g.excludeProps=De,g.extend=ct,g.floatData=Ma,g.getGlobalValidateCheckEvents=Ml,g.getGlobalValidateResetEvents=Bl,g.getPageContentAreaHeight=nn,g.getPageContentAreaWidth=on,g.getPageFooterAreaHeight=tn,g.getPageHeaderAreaHeight=en,g.getRootDomain=pt,g.hasSymbol=Nl,g.includeProps=mt,g.indexOf=Fa,g.integerLength=Vl,g.isArray=Ta,g.isArrayLike=Il,g.isBrowser=lt,g.isDate=Na,g.isESModule=Ea,g.isEmptyString=he,g.isEqual=tt,g.isFunction=Un,g.isHidden=El,g.isInnerPage=Xa,g.isMap=Ca,g.isNil=Wt,g.isNumberString=Dl,g.isObject=We,g.isPlainObject=Gn,g.isPromise=Cl,g.isRegExp=Qn,g.isSet=$a,g.isString=Tl,g.isSubPage=Za,g.isSymbol=ka,g.isTouch=Lt,g.isWindow=kl,g.lastIndexOf=Aa,g.makeArray=Va,g.merge=Ol,g.multiply=wl,g.negate=Sl,g.nextTick=Oa,g.numberFormat=zt,g.objectToString=$l,g.once=Ya,g.overrideGlobalValidateHandler=Pa,g.property=Ae,g.raf=Yn,g.readonlyProperty=Me,g.setGlobalValidateCheckEvents=za,g.setGlobalValidateHandler=qa,g.setGlobalValidateMessages=Ka,g.setGlobalValidateResetEvents=Ha,g.setGlobalValidator=_a,g.throttle=_l,g.toBoolean=ce,g.toNumber=Ce,g.toPadding=Je,g.toPx=me,g.toPxDesc=Ga,g.toPxString=be,g.toTypeString=Ht,g.toValue=ge,g.tryTimes=Zt,g.typeOf=Kt,g.unNumberFormat=xl,g.updatePageState=no,g.useBroadcast=Et,g.useDomain=rt,g.useExpose=xe,g.useInnerSize=an,g.usePageState=Jt,g.usePosition=ho,g.useRawTouch=Bt,g.useRect=ba,g.useSize=ro,g.useTouch=Sd,g.valueLength=kt,Object.defineProperties(g,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));