@fox-js/foxui-pc 4.1.1-1 → 4.1.1-11
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.cjs.js +3 -3
- package/dist/index.esm.js +7337 -6313
- package/dist/index.umd.js +4 -4
- package/dist/style.css +1 -1
- package/dist/style.esm.js +1 -1
- package/dist/types/index.d.ts +107 -21
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(m,
|
|
2
|
-
* @fox-js/foxui-desktop v4.0.0
|
|
3
|
-
*/const
|
|
1
|
+
(function(m,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):(m=typeof globalThis<"u"?globalThis:m||self,o(m.FoxUI={},m.Vue,m.FoxValidator,m.ElementPlus,m.ElementPlusIconsVue,m.FoxI18n))})(this,function(m,o,st,S,Ie,qe){"use strict";/*!
|
|
2
|
+
* @fox-js/foxui-desktop v4.0.0 Sat Dec 28 2024 15:33:16 GMT+0800 (中国标准时间)
|
|
3
|
+
*/const Pt=window,fa=typeof window<"u";function da(){return typeof Pt<"u"?Pt.requestAnimationFrame||Pt.webkitRequestAnimationFrame||function(e){Pt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function ha(e){fa?cancelAnimationFrame(e):clearTimeout(e)}const sl=da();/*!
|
|
4
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=[],d=s-1,f="";for(let c=0;c<s;c++)u[c]=e.length-1;for(let c=0;c<2*e.length;c++){let S=0;for(let N=t.length-1;N>=d&&N>=0;N--)u[N]>-1&&u[N]<e.length&&(S+=parseInt(e[u[N]--])*parseInt(t[N]));S+=i,i=Math.floor(S/10),f=S%10+f,d--}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 d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Ee(e+new Array(r+1).join("0"));else if(r>d)e=e.replace(".",""),e=Ee(e+new Array(r-d+1).join("0"));else if(r<d){e=e.replace(".","");let f=e.length-d+r;e=Ee(e.substring(0,f)+"."+e.substring(f))}else r==d&&(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 d=u.length-u.indexOf(".")-1;u=u.replace(".",""),s>u.length&&(d+=s-u.length,u=u+new Array(s-u.length+1).join("0")),a=d,i="0."+new Array(d).join("0")}for(o=o+2;a<=o;){let d=0;for(;parseInt(u)>=parseInt(t);)u=At(u,"-"+t),d++;i+=d,e?(e[0]=="."&&(i+=".",a++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(a||(i+="."),a++,u=u+"0")}return(n==1?"-":"")+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="",d=a.indexOf(".");d!=-1&&(i=a.substring(0,d),u=a.substring(d+1)),t!=-1&&(t<u.length?u=u.substring(0,t):o&&t>u.length&&(u=u.padEnd(t,"0")));let f;if(n>0){let c="",S=i.split("").reverse();for(let N=0;N<S.length;N++)c+=S[N]+((N+1)%n==0&&N+1!=S.length?r:"");u.length==0?f=`${s}${c.split("").reverse().join("")}`:f=`${s}${c.split("").reverse().join("")}.${u}`}else u.length==0?f=`${s}${i}`:f=`${s}${i}.${u}`;return f}function Gl(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const Sn=ql,Zr=Array.isArray,Jr=e=>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 d;Array.isArray(u)?d=i&&Array.isArray(i)?i:[]:d=i&&typeof i=="object"?i:{},t[s]=nt(r,d,u)}else u!==void 0&&(t[s]=u)}}return t}function $n(e,t,o=!1){if(!o)nt(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let r in t){let a=e[r],s=t[r];if(a!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!Tn(s))continue;a=$n(a,s,o),e[r]=a}else{if(typeof s=="function")continue;e[r]=s}}const n=Object.getOwnPropertySymbols(t);for(let r of n){let a=e[r],s=t[r];if(a!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!Tn(s))continue;a=$n(a,s,o),e[r]=a}else{if(typeof s=="function")continue;e[r]=s}}}return e}const Cn=la?Promise.resolve():null;function oa(e,...t){Cn!==null?t&&t.length>0?Cn.then(()=>{e(t)}):Cn.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function ue(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function ve(e){return typeof e=="number"?e:Number(e)}const ra={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function 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],d=t[i];if(!Ye(u,d))return!1}return!0}else if(o==="array"){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let a=e[r],s=t[r];if(!Ye(a,s))return!1}return!0}return!1}const lt=typeof window<"u";function 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),d=this.proxy??s;return u.validate(s,{context:d}).then(c=>{if(c.pass)this.success();else{let S="error";Array.isArray(c.errors)&&c.errors.length>0&&(S=c.errors[0].message??S,c.errors=[c.errors[0]],c.errors[0].ref=d),this.error(S)}return c}).catch(c=>{const S=c.message??`${c}`;return this.error(S),c})}}return Promise.resolve({pass:!0})}}function 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 d=e();if(i++,d){typeof a=="function"&&a(!0);return}if(i>o){typeof a=="function"&&a(!1);return}}const u=()=>{const d=e();if(i++,d){typeof a=="function"&&a(!0);return}if(i>o){typeof a=="function"&&a(!1);return}s+=n,setTimeout(u,s)};setTimeout(u,s)}const Ae=Symbol("DomainKey"),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 d=N=>{a[kn]||S(N),u?.set("modelValue",N)},f=()=>u?.getForSelf("modelValue")??null,c=()=>a[kn]??null,S=N=>{const g={};nt(!0,g,l.toRaw(N)),a[kn]=g};if(l.isReactive(t)||typeof t=="function"?l.watch(t,N=>{u?.merge(N,o)},{immediate:!0}):u.merge(t,o),t.modelValue&&S(t.modelValue),a[Ae]=u,l.provide(Ae,u),r!==null){const N=l.inject(ye,null),g=qt(a,N,i,n);u.broadcast=g,a[ye]=g,l.provide(ye,g),a.broadcast=($,w,...C)=>Reflect.apply(g.emit,g,[$,w,...C]);const h=l.inject(qe,null),p=jt(a,h,{componentName:""});u.validateSchema=p,a[qe]=p,l.provide(qe,p),a[ut]=new Map,a.validate=($=!0)=>{const w=[];let C=null;const q={deep:!1};if($===!0)C={name:"*"};else if(Array.isArray($)&&$.length>0){const B=$;C={name:A=>A?B.indexOf(A)!==-1:!1}}else if($!=null&&typeof $=="object"){const B=$;if(Object.assign(q,B),Array.isArray(B.include)&&B.include.length>0){const A=B.include;C={name:L=>L?A.indexOf(L)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const A=B.exclude;C={name:L=>L?A.indexOf(L)===-1:!1}}else C={name:"*"}}if(C){const B=g?.emitToChildren(C,"validate",q);B&&Reflect.apply([].push,w,B)}return w.length==1?w[0]:w.length>1?Promise.all(w).then(B=>{let A=[];return B.forEach(L=>{L.pass===!1&&Array.isArray(L.errors)&&(A=[...A,...L.errors])}),A.length>0?{pass:!1,errors:A}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=($,w=!0,C=!1)=>{if(C===!0){Reflect.ownKeys($).forEach(B=>{let A=String(B);const L={componentName:"",fieldName:A,pureDataValidate:!0};if(u){const M=bo(u,A,L,g,p);a[ut].set(A,M);const V=$[A];V&&M.validateSchema.setRule(V)}});return}if(w){const q=Reflect.ownKeys($),B={name:A=>q.includes(A)};g?.emitToChildren(B,"setNameValidateRules",$,!1)}},a.clearValidate=($=!0)=>{let w=null;if($===!0)w={name:"*"};else if(Array.isArray($)&&$.length>0){const C=$;w={name:q=>q?C.indexOf(q)!==-1:!1}}else if($!=null&&typeof $=="object"){const C=$;if(Array.isArray(C.include)&&C.include.length>0){const q=C.include;w={name:B=>B?q.indexOf(B)!==-1:!1}}else if(Array.isArray(C.exclude)&&C.exclude.length>0){const q=C.exclude;w={name:B=>B?q.indexOf(B)===-1:!1}}else w={name:"*"}}w&&g?.emitToChildren(w,"clearValidate",!1)},a.resetFields=$=>{const w=f();if(!w)return;const C={};if(nt(!0,C,c()??{}),Array.isArray($))$.forEach(q=>{w[q]=C[q]});else if($&&Array.isArray($.include))($.include??[]).forEach(B=>{w[B]=C[B]});else if($&&Array.isArray($.exclude)){let q=$.exclude??[];Reflect.ownKeys(C).forEach(B=>{q.includes(B)||(w[B]=C[B])})}else Object.assign(w,C);a.clearValidate($)},a.setModelValue=($,w)=>{!w||w===i?d($):g?.emitToChildren({name:w},"setModelValue",$)},a.getModelValue=()=>f()}return l.onUnmounted(function(){u?.validateSchema&&(u.validateSchema.destroy(),a[qe]=void 0,l.provide(qe,null)),u?.broadcast&&(u?.broadcast?.destroy(),a[ye]=void 0,l.provide(ye,null)),u?.destroy(),a[Ae]=void 0,l.provide(Ae,null),a[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,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=(g,h,...p)=>i?Reflect.apply(i.emit,i,[g,h,...p]):null;const u=l.inject(qe,null);e.fieldName=e.fieldName??a;let d=jt(r,u,e);r[qe]=d,l.provide(qe,d),yo(r,d,a),r.validate=(g=null)=>{if(!d)return Promise.resolve({pass:!0});const h=[];let p=!1,$=!1;if(Array.isArray(g)&&g.indexOf(a)!==-1)$=!0,p=!0;else if(g&&typeof g=="object"){const w=g,C=w.ignoreDisabled??!0,q=w.ignoreReadonly??!0,B=w.ignoreHidden??!0;C===!0&&e.disabled===!0||q===!0&&e.readonly===!0||B===!0&&_t(r.$el)?$=!1:(Array.isArray(w.include)&&w.include.indexOf(a)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(a),$=!0),p=w.deep??!1}else typeof g=="boolean"&&(p=g),$=!0;if($){const w=d?.validate();h.push(w)}if(p){let w=null;const C={deep:!1};if(g===!0)w={name:"*"};else if(Array.isArray(g)&&g.length>0){const q=g;w={name:B=>B?q.indexOf(B)!==-1:!1}}else if(g!=null&&typeof g=="object"){const q=g;if(Object.assign(C,q),Array.isArray(q.include)&&q.include.length>0){const B=q.include;w={name:A=>A?B.indexOf(A)!==-1:!1}}else if(Array.isArray(q.exclude)&&q.exclude.length>0){const B=q.exclude;w={name:A=>A?B.indexOf(A)===-1:!1}}else w={name:"*"}}if(w&&i){const q=i.emitToChildren(w,"validate",C);Reflect.apply([].push,h,q)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(w=>{let C=[];return w.forEach(q=>{q.pass===!1&&Array.isArray(q.errors)&&(C=[...C,...q.errors])}),C.length>0?{pass:!1,errors:C}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=g=>d?.setRule(g),r.setNameValidateRules=(g,h=!1)=>{const p=g[a];if(p&&d?.setRule(p),h&&i){const $={name:w=>Reflect.ownKeys(g).includes(w)};i.emitToChildren($,"setNameValidateRules",g,!1)}},r.clearValidate=(g=null)=>{(!Array.isArray(g)||g.indexOf(t??"")!==-1)&&d?.clear();let h=null;if(g===!0)h={name:"*"};else if(Array.isArray(g)&&g.length>0){const p=g;h={name:$=>$?p.indexOf($)!==-1:!1}}else if(g!=null&&typeof g=="object"){const p=g;if(Array.isArray(p.include)&&p.include.length>0){const $=p.include;h={name:w=>w?$.indexOf(w)!==-1:!1}}else if(Array.isArray(p.exclude)&&p.exclude.length>0){const $=p.exclude;h={name:w=>w?$.indexOf(w)===-1:!1}}else h={name:"*"}}h&&i&&i.emitToChildren(h,"clearValidate",!1)};let f=new go(r);r[zt]=f;const c=$t((g="validate")=>{d&&(g==="reset"?d.clear():d.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:uo()).forEach(g=>{f&&f.on(g,h=>{c("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:fo()).forEach(g=>{f&&f.on(g,h=>{c("reset")})}),l.onUnmounted(()=>{i?.destroy(),r[ye]=void 0,l.provide(ye,null),i=null,d?.destroy(),r[qe]=void 0,l.provide(qe,null),d=null,f?.destroy(),r[zt]=void 0,f=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:i,validateSchema:d,emitEvent:(g,...h)=>{f&&Reflect.apply(f.emit,f,[g,...h])},onEvent:(g,h)=>{f&&Reflect.apply(f.on,f,[h])},offEvent:(g,h)=>{f&&Reflect.apply(f.off,f,[h])}}}function bo(e,t,o,n,r){const a={},s=t??"",i={getValue(){const f=e.getForSelf("modelValue");return f?f[s]:null},isExist(){const f=e.getForSelf("modelValue");return f?Reflect.has(f,s):!1}};o.fieldName=s,o.validateHandler={getValue(f){return i.getValue()}};let u=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 S=!1,N=!1;if(Array.isArray(f)&&f.indexOf(s)!==-1)N=!0,S=!0;else if(f&&typeof f=="object"){const g=f;Array.isArray(g.include)&&g.include.indexOf(s)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(s),N=!0,S=g.deep??!1}else typeof f=="boolean"&&(S=f),N=!0;if(N&&u){const g=u.validate();c.push(g)}if(S){let g=null;const h={deep:!1};if(f===!0)g={name:"*"};else if(Array.isArray(f)&&f.length>0){const p=f;g={name:$=>$?p.indexOf($)!==-1:!1}}else if(f!=null&&typeof f=="object"){const p=f;if(Object.assign(h,p),Array.isArray(p.include)&&p.include.length>0){const $=p.include;g={name:w=>w?$.indexOf(w)!==-1:!1}}else if(Array.isArray(p.exclude)&&p.exclude.length>0){const $=p.exclude;g={name:w=>w?$.indexOf(w)===-1:!1}}else g={name:"*"}}if(g&&d){const p=d.emitToChildren(g,"validate",h);Reflect.apply([].push,c,p)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(g=>{let h=[];return g.forEach(p=>{p.pass===!1&&Array.isArray(p.errors)&&(h=[...h,...p.errors])}),h.length>0?{pass:!1,errors:h}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=f=>u?.setRule(f),a.setNameValidateRules=f=>{const c=f[s];c&&u?.setRule(c)};let d=qt(null,n,s,a);return l.onUnmounted(()=>{u=null,d=null}),{broadcast:d,validateSchema:u}}function vo(){let t=l.getCurrentInstance()?.proxy,o=new go(t);return t[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,d=e.get("footerBarHeight")??0;On(n,a,t,!0,s,i,u,d);const f=l.reactive(n),c=e.getForParent(Je);c&&(n.height=Yt(e,c),n.width=Gt(e,c),l.watch([()=>Yt(e,c),()=>Gt(e,c)],([N,g])=>{f.height=N,f.width=g}));const S=!c;return l.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([N,g,h=-1,p=-1,$=0,w=0])=>{On(f,g,t,S,h,p,$,w)}),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,d=document.documentElement.clientHeight||document.body.clientHeight;i.width=u,i.height=d,this.initPageLayout(i,r)},150);new window.ResizeObserver(a).observe(window.document.body)}for(const a in o)n.indexOf(a)===-1&&r.set(a,o[a])}initPageLayout(t,o){const n=t.headerBarHeight??0,r=t.footerBarHeight??0,a=nt({},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},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(),d=(f,c=!1)=>{const S=u?.proxy;S&&typeof S.setNameValidateRules=="function"&&S.setNameValidateRules(f,!0,c)};return l.watch([()=>o.rules,()=>o.pureDataRules],([f,c],[S,N])=>{if(f&&S){const g=l.toRaw(S),h=l.toRaw(f),p=h?Reflect.ownKeys(h):[];(g?Reflect.ownKeys(g):[]).forEach(w=>{p.includes(w)||(h[w]=[])}),d(h)}if(c&&N){const g=l.toRaw(N),h=l.toRaw(c),p=h?Reflect.ownKeys(h):[];(g?Reflect.ownKeys(g):[]).forEach(w=>{p.includes(w)||(h[w]=[])}),d(h,!0)}},{deep:!0}),l.onMounted(()=>{if(o.rules){const f=l.toRaw(o.rules);d(f)}if(o.pureDataRules){const f=l.toRaw(o.pureDataRules);d(f,!0)}}),()=>{const f={class:s.value,style:i.value};return l.h("div",f,[n?.default?.()])}}}),{componentName:Ba,create:_a,scope:vh}=ie("page"),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,d=l.computed(()=>({[u]:!0,[`${u}--border`]:r.border,[`${u}--fixed`]:r.fixed,[`${u}--safe-area-inset-top`]:r.safeAreaInsetTop})),f=l.computed(()=>({[`${u}__inner`]:!0,[`${u}__inner--${r.align}`]:!0})),c=r.height!==null&&r.height!==void 0?he(r.height):null,S=l.computed(()=>{const k={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(k,b),c&&(i.headerHeight=c),i.headerHeight>0&&(k.height=i.headerHeight),k.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,k.safeAreaTop>0&&(k.top=k.safeAreaTop+(b.top??0),k.height&&k.height>0&&(k.height=k.height+k.safeAreaTop)),k}if(c&&(k.height=c),r.padding){const b=ze(r.padding);Object.assign(k,b)}return k}),N=l.ref(null),g=()=>{if(i&&N.value&&!_t(N.value)){if(!n){const k=Xt(N.value);i.headerAllHeight=k.height}return i.headerMounted=!0,!0}return!1};let h=null;l.onMounted(()=>{i&&(Ht(g,50,5,50,!0),window.ResizeObserver&&N.value&&(h=new window.ResizeObserver(()=>{g()}),h.observe(N.value)))}),l.onUnmounted(()=>{i&&(i.headerMounted=!1,h&&(h.disconnect(),h=null))});const p=l.computed(()=>{const k={};return S.value.height!==null&&S.value.height!==void 0&&(k.height=`${S.value.height}px`),S.value.top!==null&&S.value.top!==void 0&&(k.paddingTop=`${S.value.top}px`),S.value.left!==null&&S.value.left!==void 0&&(k.paddingLeft=`${S.value.left}px`),S.value.right!==null&&S.value.right!==void 0&&(k.paddingRight=`${S.value.right}px`),S.value.bottom!==null&&S.value.bottom!==void 0&&(k.paddingBottom=`${S.value.bottom}px`),k}),$=l.computed(()=>!(S.value.height!==null&&S.value.height!==void 0&&S.value.height<=0));function w(){a.emit("back")}function C(){a.emit("click-title")}function q(){a.emit("click-right")}function B(){a.emit("click-right-text")}const A=()=>{if(!r.leftShow)return null;const k=[];if(a.slots.left)k.push(a.slots.left());else{if(a.slots.leftIcon){const b=l.h("view",{class:"left-icon",onClick:w},[a.slots.leftIcon()]);k.push(b)}else if(r.leftIcon){const b=l.h("view",{class:"left-icon",onClick:w},[l.h(r.leftIcon)]);k.push(b)}if(r.leftText){const b=l.h("view",{class:"left-text",onClick:w},[r.leftText]);k.push(b)}}return k.length===0?null:l.h("view",{class:"fox-header-bar__left"},k)},L=()=>{if(!r.rightShow)return null;const k=[];if(a.slots.right)k.push(a.slots.right());else{if(r.rightText){const b=l.h("view",{class:"right-text",onClick:B},[r.rightText]);k.push(b)}if(a.slots.rightIcon){const b=l.h("view",{class:"right-icon",onClick:q},[a.slots.rightIcon()]);k.push(b)}else if(r.rightIcon){const b=l.h("view",{class:"right-icon",onClick:q},[l.h(r.rightIcon)]);k.push(b)}}return k.length===0?null:l.h("view",{class:"fox-header-bar__right"},k)},M=()=>{if(!r.titleShow)return null;const k=[],b=a.slots.default?a.slots.default():null;if(b)k.push(b);else{if(r.title){const P=l.h("view",{class:"title-text"},[r.title]);k.push(P)}if(a.slots.titleIcon){const P=l.h("view",{class:"title-icon",onClick:C},[a.slots.titleIcon()]);k.push(P)}else if(r.titleIcon){const P=l.h("view",{class:"title-icon",onClick:C},[l.h(r.titleIcon)]);k.push(P)}}return k.length===0?null:l.h("view",{class:"fox-header-bar__title"},k)},V=()=>{const k=[],b=a.slots.bottom?a.slots.bottom():null;return b&&k.push(b),k.length===0?null:l.h("view",{class:"fox-header-bar__bottom"},k)};return()=>{if(!$.value)return null;const k=[];if(a.slots.all)k.push(a.slots.all());else{const P=[],_=A();_&&P.push(_);const D=M();D&&P.push(D);const F=L();if(F&&P.push(F),P.length>0){const G=l.h("view",{class:f.value},P);k.push(G)}const K=V();K&&k.push(K)}if(k.length===0)return null;const b={class:d.value,style:p.value,ref:N};return l.h("view",b,k)}}}),{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 g=e;return{[g]:!0,[`${g}--${n.align}`]:!0,[`${g}--border`]:n.border,[`${g}--fixed`]:n.fixed,[`${g}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?he(n.height):null,d=l.computed(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&s){const h=ze(n.padding??s.footerPadding);return Object.assign(g,h),u&&(s.footerHeight=u),s.footerHeight>0&&(g.height=s.footerHeight),g.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,g.safeAreaBottom>0&&(g.bottom=g.safeAreaBottom+(h.bottom??0),g.height&&g.height>0&&(g.height=g.height+g.safeAreaBottom)),g}if(u&&(g.height=u),n.padding){const h=ze(n.padding);Object.assign(g,h)}return g}),f=l.ref(null),c=()=>{if(s&&f.value&&!_t(f.value)){if(!o){const g=Xt(f.value);s.footerAllHeight=g.height}return s.footerMounted=!0,!0}return!1};let S=null;l.onMounted(()=>{s&&(Ht(c,50,5,50,!0),window.ResizeObserver&&(S=new window.ResizeObserver(()=>{c()}),S.observe(f.value)))}),l.onUnmounted(()=>{s&&(s.footerMounted=!1,S&&(S.disconnect(),S=null))});const N=l.computed(()=>{const g={};return d.value.height!==null&&d.value.height!==void 0&&(g.height=ke(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(g.paddingTop=ke(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(g.paddingLeft=ke(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(g.paddingRight=ke(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(g.paddingBottom=ke(d.value.bottom)),g});return()=>{const g=r.slots.default?r.slots.default():[],h={ref:f,class:i.value,style:N.value};return l.h("view",h,g)}}}}const{componentName:Ka,create:Wa,scope:wh}=ie("footer-bar"),Ln=Wa(Ha(Ka));function Ya(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const n=Ge(),r=l.computed(()=>({[e]:!0})),a=n?Wt(n):null,s=l.computed(()=>{const d={};if(n&&a){if(o.padding){const N=ze(o.padding);Object.assign(a.contentPadding,N)}const f=Ct(n,a),c=Et(n,a);let S="";if(a.contentHeight?S=`${a.contentHeight}`:S=`${a.height}px`,a.contentPadding,d.height=S,a.contentPadding.top||f>0){const N=(a&&a.contentPadding&&a.contentPadding.top)??0;d.paddingTop=`${f+N}px`}if(a.contentPadding.bottom||c>0){const N=(a&&a.contentPadding&&a.contentPadding.bottom)??0;d.paddingBottom=`${c+N}px`}return a.contentPadding.left&&(d.paddingLeft=`${a.contentPadding.left}px`),a.contentPadding.right&&(d.paddingRight=`${a.contentPadding.right}px`),d}if(o.padding){const f=ze(o.padding);f.left&&(d.paddingLeft=`${f.left}px`),f.top&&(d.paddingTop=`${f.top}px`),f.right&&(d.paddingRight=`${f.right}px`),f.bottom&&(d.paddingBottom=`${f.bottom}px`)}return d}),i=l.ref(null),u=()=>{if(a&&i.value){const d=Rn(i.value);a.contentInnerHeight=d.height,a.contentInnerWidth=d.width}};return l.onMounted(()=>{u()}),n&&a&&l.watch([()=>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 d=e.get("groupLayout")??{};o===-1&&(o=d.column??1),n===-1&&(n=d.gutter??0),a||(a=d.minItemWidth??-1),s||(s=d.maxItemWidth??-1);const f=he(a),c=he(s);i||(i=d.type??"grid");const S=()=>{const N=t===""||t===-1,g=he(t);let h=ve(o);const p=he(n);if(!N){let C=(g-(h-1)*p)/h;for(;c!==-1&&C>c;)h++,C=(g-(h-1)*p)/h;for(;f!==-1&&h>1&&C<f;)h--,C=(g-(h-1)*p)/h}let $=!1;const w=u.layout;w.value.width=t,w.value.column!==h&&(w.value.column=h,$=!0),w.value.gutter!==p&&(w.value.gutter=p,$=!0),w.value.type!==i&&(w.value.type=i,$=!0),$&&l.triggerRef(w)};if(r)S();else{const N=++u.passport;setTimeout(()=>{N===u.passport&&S()},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,d=u+(t.column-u);return e.index=e.index+(d-u),{"grid-column":`${u+1} / -1`}}let r=ve(o);if(r===-1){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}if(r>t.column){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}const a=ve(n)%t.column;let s=(e.index+a)%t.column,i=s+r;return i>t.column?(s=0,i=s+r,e.index=e.index+(t.column-s)+r):e.index=e.index+a+r,a>0?{"grid-column":`${s+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}const 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.name,n,Co),s=Qa(a,{type:n.type}),i=Zt();Jt(!0);const u=n.rollingDisplay?ti():null,d=l.ref(null),f=l.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),c=l.computed(()=>i&&a?Qt(a,!0).value:null),S=l.getCurrentInstance(),N=(H,J=!1)=>{const te=S?.proxy;te&&typeof te.setNameValidateRules=="function"&&te.setNameValidateRules(H,!0,J)};l.watch([()=>n.rules,()=>n.pureDataRules],([H,J],[te,T])=>{if(H&&te){const W=l.toRaw(te),ne=l.toRaw(H),oe=ne?Reflect.ownKeys(ne):[];(W?Reflect.ownKeys(W):[]).forEach(se=>{oe.includes(se)||(ne[se]=[])}),N(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]=[])}),N(ne,!0)}},{deep:!0});const g=e,h=l.computed(()=>{const H={};H.height=F.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}),p=l.computed(()=>{const H=s.layout.value.type;return H==="grid"||H==="flow"?{[`${g}--${H}`]:!0,[`${g}--${H}-justify-${n.justify}`]:!0,[`${g}--${H}-align-${n.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${H}`]:!0,[`${g}--gutter`]:!0}}),$=l.computed(()=>{if(s.layout.value.type==="grid"){let J="";if(n.columnWidth)J=`repeat(auto-fill, ${n.columnWidth})`;else{const te=li(M.value,s.layout.value.column,s.layout.value.gutter);J=`repeat(${s.layout.value.column}, ${te})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":J}}}),w=l.toRef(n,"gutter"),C=l.toRef(n,"column"),q=l.computed(()=>i||f.value?!0:ue(n.isWrap)),B=[],A=H=>{B.push(H)},L=()=>{let H=B.length;B.splice(0,H)},M=l.ref(-1),V=H=>{const J=Rn(H).width;J>0&&J!==M.value&&(M.value=J)};Bn(a,M.value,C.value,w.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&l.watch([M,C,w],([H,J,te])=>{s.order.index=0,Bn(a,H,J,te,!1,n.minItemWidth,n.maxItemWidth,n.type)});const k=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})),_=l.ref(),D=l.ref(),F=l.computed(()=>G.value||ke(n.height)||""),K=l.ref(!1),G=l.ref(""),U=l.ref(!1);let Z=-1;const ee=(H,J=!0)=>{const te=_.value;if(te&&K.value!==H){if(Z=Z===-1?ni(te):Z,U.value=!0,J)if(te.style["will-change"]="height",te.ontransitionend=function(){te.ontransitionend=null,this.style["will-change"]="auto",H||(G.value="",U.value=!1)},H){let T=0;n.collapseHeight?T=n.collapseHeight:D.value&&D.value.classList.contains(`${e}__header`)&&(T=D.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:D.value&&D.value.classList.contains(`${e}__header`)&&(T=D.value.offsetHeight),G.value=`${T}px`}else U.value=!1,G.value=`${Z}px`;K.value=H,r.emit("update:collapse",H)}};l.watch(()=>n.collapse,H=>{ee(H)});const le=H=>{r.emit("header-click",H)},O=()=>{x()},x=H=>{H=H??!K.value,ee(H)};$e({toggleCollapse:x,doLayout:()=>{B[0]&&(V(B[0]),Bn(a,M.value,C.value,w.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let E=null,v=!0;const Y=H=>{if(n.rules){const J=l.toRaw(n.rules);N(J)}if(n.pureDataRules){const J=l.toRaw(n.pureDataRules);N(J,!0)}if(lt&&(H&&ee(ue(n.collapse),!1),n.autoLayout&&Array.isArray(B)&&B.length>0)){const J=B[0];V(J),window.ResizeObserver&&(E=new window.ResizeObserver(()=>{V(J)}),E.observe(J))}},j=()=>{E?.disconnect(),E=null},z=!f.value||u?.acquire();z&&(d.value=f.value?!0:null),l.onMounted(()=>{if(z&&(Y(v),v=!1),f.value&&u){let H=null,J=u.initialHeight;u.observe(_.value,te=>{if(te!==d.value)if(te)d.value=!0,K.value||(G.value=""),H=setTimeout(()=>{H=null,d.value!==!1&&(Y(v),v=!1)},100);else{if(H!==null&&clearTimeout(H),d.value=!1,!K.value)if(v)G.value=u.initialHeight;else{let T=_n(_.value);T<=0?G.value=J:(G.value=`${T}px`,J=G.value)}v||j()}})}}),l.onUnmounted(()=>{E?.disconnect(),u&&u.unobserve(_.value)});const R=(H="right")=>{const J=[];if(k.value){const W={class:b.value},ne=l.h("span",W,[k.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:{[`${g}__header-collapse`]:!0,[`is-${H}`]:!0},onClick:O},J):null},X=(H,J,te,T)=>{const W={...p.value};return J===0&&(W[`${g}__first`]=!0),te>=T-1&&(W[`${g}__last`]=!0),l.h("div",{ref:A,key:`${J}`,class:W,style:$.value},H)};return()=>{if(f.value&&d.value!==!0){const W=n.tag||"div";return l.h(W,{ref:_,prop:n.name,class:{[`${g}`]:!0,"is-collapse":U.value},style:h.value},[])}s.order.index=0;const H=[];let J=0;if(r.slots.header){const W={key:`${J++}`,ref:D,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:le},ne=l.h("div",W,[r.slots.header()]);H.push(ne)}else{const W=[],ne=n.collapsePosition==="left";if(ne&&n.showCollapse){const oe=R("left");oe&&W.push(oe)}if(n.title||r.slots.title){if(n.showMark){const oe={class:{[`${g}__header-mark`]:!0}};n.markColor&&(oe.style={background:n.markColor});const de=l.h("div",oe);W.push(de)}if(r.slots.title){const oe=l.h("div",{class:{[`${g}__header-title`]:!0}},[r.slots.title()]);W.push(oe)}else if(n.title){const oe=l.h("div",{class:{[`${g}__header-title`]:!0}},[n.title]);W.push(oe)}}if(r.slots.toolbar&&W.push(r.slots.toolbar()),!ne&&n.showCollapse){const oe=R("right");oe&&W.push(oe)}if(W.length>0){const oe={key:`${J++}`,ref:D,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:le},de=l.h("div",oe,W);H.push(de)}}L();const te=r.slots.default?r.slots.default():[],T=s.layout.value.type;if(T==="grid"){const W=X(te,J++,0,te.length);H.push(W)}else if(T==="flow"){const W=X(te,J++,0,te.length);H.push(W)}else for(let W=0;W<te.length;W++){const ne=te[W],oe=X([ne],J++,W,te.length);H.push(oe)}if(q.value){const W=n.tag||"div";return l.h(W,{ref:_,prop:n.name,class:{[`${g}`]:!0,"is-collapse":U.value},style:h.value},[H])}else return H}}}}const{componentName:ai,create:ii,scope:si}=ie("group"),qn=ii(ri(ai,si,(e,t)=>(e=e??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:d}=window.getComputedStyle(r);if(d){const f=ci.exec(d);if(f){let S=f[1].split(/\s*,\s*/);S.length==6&&(i+=Number(S[4]),u+=Number(S[5]))}}r=r.parentNode}return o-=a,n-=s,o+=i,n+=u,{x:o,y:n}};class fi{watchedListeners=[];add(t){this.watchedListeners.push(t)}remove(t){const o=this.watchedListeners.indexOf(t);o!==-1&&this.watchedListeners.splice(o,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(t=>{try{t()}catch{}})}}class di{monitorRegister=new WeakMap;watch(t,o){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a||(a=new fi,n.addEventListener("scroll",a.listen),n===document.body&&n.addEventListener("resize",a.listen),this.monitorRegister.set(n,a)),a.add(o),n=n.parentNode}}unwatch(t,o){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a&&(a.remove(o),a.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",a.listen),n===document.body&&n.removeEventListener("resize",a.listen))),n=n.parentNode}}}const Oo=new di,Vo={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},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),d=(b,P,_,D,F,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 x=0;x<ee.length;x++){const I=ee[x];if(O[0]=I,Z[1]&&(O[1]=Z[1]),I==="top"){const E=P.y-K-e.arrowSize-e.offset;if(E>=0){le.top=E;let v=0;Z[1]==="start"?v=P.x:Z[1]==="end"?v=P.x+_-F:v=P.x+_/2-F/2;const Y=G-v-F;Y<0?(v+=Y,c.value=-Y):c.value=0,le.left=v<0?0:v;break}}else if(I==="bottom"){const E=P.y+D+e.arrowSize+e.offset;if(E+K<=U){le.top=E;let v=0;Z[1]==="start"?v=P.x:Z[1]==="end"?v=P.x+_-F:v=P.x+_/2-F/2;const Y=G-v-F;Y<0?(v+=Y,c.value=-Y):c.value=0,le.left=v<0?0:v;break}}else if(I==="left"){const E=P.x-F-e.arrowSize-e.offset;if(E>=0){le.left=E;let v=0;Z[1]==="start"?v=P.y:Z[1]==="end"?v=P.y+D-K:v=P.y+D/2-K/2,le.top=v<0?0:v;break}}else if(I==="right"){const E=P.x+_+e.arrowSize+e.offset;if(E+F<=G){le.left=E;let v=0;Z[1]==="start"?v=P.y:Z[1]==="end"?v=P.y+D-K:v=P.y+D/2-K/2,le.top=v<0?0:v;break}}}return{bestPlacement:O.join("-"),bestInsetRect:le}},f=(b,P,_=10)=>{if(!lt||P===!1||!b)return;n.value=Io(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const D=u.value.offsetHeight,F=u.value.offsetWidth,{bestPlacement:K,bestInsetRect:G}=d(e.placement,n.value,r.value,a.value,F,D);s.value=K,o.value=G,i.value=!0},c=l.ref(0),S=$t(()=>{f(e.message,e.visible)},10),N=l.ref(e.visible);l.watch(()=>e.visible,b=>{N.value=b});const g=l.computed(()=>N.value&&h.value),h=l.ref(!0),p=$t(b=>{const P=b[0];P&&(h.value=P.isIntersecting)},10),$=new IntersectionObserver(p);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,S),$.observe(e.reference)}),l.onBeforeMount(()=>{Oo.unwatch(e.reference,S),$.unobserve(e.reference),$.disconnect()});const w=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}),C=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}),q=l.computed(()=>{const b=[`${Pn}__content`];return e.customTextClass&&b.push(e.customTextClass),b}),B=l.computed(()=>{const b={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(b,e.customTextStyle),b}),A=l.computed(()=>({[`${Pn}__arrow`]:!0})),L=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"}}),M=l.computed(()=>g.value&&e.closeOnClick),V=l.computed(()=>{const b={};return e.zIndex&&(b["z-index"]=`${e.zIndex}`),b});return{show:g,tipRef:u,classes:w,styles:C,textClasses:q,textStyles:B,arrowClasses:A,arrowStyles:L,overlayShow:M,overlayStyle:V,onClickOverlay:()=>{N.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 d=l.computed(()=>u&&i?Qt(i,!1).value:null),f=e,c=l.ref(null),S=l.computed(()=>{const T={[f]:!0,[`${f}__gutter`]:d.value&&d.value.type!=="flow",[`${f}__stretch`]:r.span==="stretch",[`${f}__input--border`]:ue(r.hasBorder)};if(T[r.errorMarkClass]=!!K.value,T[r.warnMarkClass]=!!D.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}),N=l.ref(null),g=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(d.value&&W){if(d.value.type==="grid"){const ne=nn(W,d.value,r.span,r.offset);Object.assign(T,ne)}else if(d.value.type==="flow"){const ne=tn(W,d.value,r.span,r.offset,r.width);Object.assign(T,ne)}}}if(typeof N.value=="function"){const W=N.value(s);W&&Object.assign(T,W)}else if(N.value&&typeof N.value=="object"){const W=N.value;Object.assign(T,W)}return T}),h=l.ref(null),p=l.computed({get:()=>h.value??ue(r.isRequired),set:T=>{h.value=T}}),$=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",w=Oe(l.toRef(r,"labelPosition"),"labelPosition",Me.Near),C=l.computed(()=>w&&w.value==="top"?"top":w&&w.value==="right"?"right":"left"),q=l.computed(()=>({[`${f}__main`]:!0,[`${f}__main--${C.value}`]:!0})),B=l.computed(()=>({label:!0,[`label--${C.value}`]:!0})),A=Oe(l.toRef(r,"labelWidth"),"labelWidth",Me.Near),L=l.computed(()=>A&&A.value?{width:ke(A.value)}:{}),M=l.computed(()=>({"label--string":!0,"label--required":p.value})),V=l.computed(()=>({content:!0,[r.contentClass]:!0})),k=l.computed(()=>({...r.contentStyle})),b=l.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});$e({setRequired(T){p.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){N.value=T}});const P=l.computed(()=>r.infoTip||b.infoTip),_=l.computed(()=>r.infoIcon||b.infoIcon),D=l.computed(()=>r.warnTip||b.warnTip),F=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":D.value?"warn":P.value?"info":""),Z=()=>U.value.length>0,ee=l.computed(()=>U.value==="error"?K.value:U.value==="warn"?D.value:U.value==="info"?P.value:""),le=l.computed(()=>U.value==="error"?G.value:U.value==="warn"?F.value:U.value==="info"?_.value:null),O=l.computed(()=>{const T={[`${f}__tip`]:!0,[`${f}__tip--${U.value}`]:!0,[`${f}--animate`]:!0};return U.value==="error"&&r.errorClass?T[`${r.errorClass}`]=!0:U.value==="warn"&&r.warnClass?T[`${r.warnClass}`]=!0:U.value==="info"&&r.infoClass&&(T[`${r.infoClass}`]=!0),T}),x=l.computed(()=>{const T={};return w&&w.value==="top"||!$()?T["padding-left"]="0px":A&&A.value&&(T["padding-left"]=ke(A.value)),T}),I=l.ref();let E="";l.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([T,W,ne,oe])=>{I.value&&(T&&!me(W)?E?o.show(I.value,W,{...oe,id:E,type:ne},!0):E=o.show(I.value,W,{...oe,type:ne},!0):o.hide(E))});let v=null;const Y=()=>{v||!I.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(I.value))},j=()=>{!v||!I.value||(v.unobserve(I.value),v=null)};l.watch(()=>ue(r.appearListen),T=>{T?Y():j()}),l.onMounted(()=>{ue(r.appearListen)&&Y()}),l.onUnmounted(j);const z=()=>{if(!$())return null;const T=[],W=a.slots?.label?.()??r.label,ne={class:M.value},oe=l.h("div",ne,[W]);if(T.push(oe),a.slots.fixedPreTip){const se=a.slots.fixedPreTip();T.push(se)}const de={class:B.value,style:L.value};return l.h("div",de,T)},R=()=>{const T=[];if(a.slots.prepend){const ne=a.slots.prepend();T.push(ne)}if(a.slots.default){const ne=a.slots.default();T.push(ne)}if(a.slots.append){const ne=a.slots.append();T.push(ne)}if(a.slots.fixedTip){const ne={class:[`${f}__fixed-tip`]},oe=l.h("div",ne,[a.slots.fixedTip()]);T.push(oe)}const W={ref:I,class:V.value,style:k.value};return l.h("div",W,T)},X=()=>{const T=le.value;return T?typeof T=="function"?l.h("div",{class:"fox-item__tip--icon"},[T()]):l.h("div",{class:"fox-item__tip--icon"},[l.h(T)]):null},H=()=>{const T=ee.value;return T?typeof T=="function"?l.h("div",{class:"fox-item__tip--text"},[T()]):l.h("div",{class:"fox-item__tip--text"},[T]):null},J=()=>{if(!Z())return null;const T=[],W=X();W&&T.push(W);const ne=H();ne&&T.push(ne);const oe={class:O.value,style:x.value};return l.h("div",oe,T)},te=()=>a.slots?.hide?.()??null;return()=>{const T=[],W=[],ne=z();ne&&W.push(ne);const oe=R();oe&&W.push(oe);const de={class:q.value},se=l.h("div",de,W);T.push(se);const Q=J();Q&&T.push(Q);const re=te();re&&T.push(re);const ae={class:S.value,style:g.value,prop:r.prop};return l.h("div",ae,T)}}}}const{componentName: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"})),d=l.computed(()=>{const f={},c=a&&r?en(r,!1):null;if(s.value&&c)if(s.value.type==="grid"){const S=nn(c,s.value,o.span,o.offset);Object.assign(f,S)}else if(s.value.type==="flow"){const S=tn(c,s.value,o.span,o.offset,o.width);Object.assign(f,S)}else return o.width&&(f.width=ke(o.width)),f;else o.width&&(f.width=ke(o.width));return f});return()=>{const f={class:u.value,style:d.value};return n.slots&&typeof n.slots.default=="function"?l.h("div",f,n.slots.default()):l.h("div",f)}}}}const{componentName: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 d={};if(i&&s){const f=Qt(s,!1),c=en(s,!1);if(f.value&&c)if(f.value.type==="grid"){const S=nn(c,f.value,o.span,o.offset);Object.assign(d,S)}else if(f.value.type==="flow"){const S=tn(c,f.value,o.span,o.offset,o.width);Object.assign(d,S)}else o.width&&(d.width=ke(o.width))}else o.width&&(d.width=ke(o.width));return d});return()=>{const d=[];if(n.slots.default){const c=n.slots.default();if(o.divide)for(let S=0;S<c.length;S++){if(S>0){const N=l.h("div",{class:{[`${r}__divide`]:!0}});d.push(N)}d.push(c[S])}else Reflect.apply([].push,d,c)}const f={class:a.value,style:u.value};return l.h("div",f,d)}}}}const{componentName:Ai,create:Li,scope:$h}=ie("row-item"),Hn=Li(Ri(Ai)),He=(e={})=>{if(!e)return{};const t={};return Reflect.ownKeys(e).forEach(n=>{typeof n=="string"&&n.indexOf("data-fox")!==0&&(t[n]=e[n])}),t},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),d=u(n,["placeholder"]),f=l.ref(!1),c=ge(n,"modelValue",null,i),S=e,N=l.computed(()=>({[S]:!0,[`${S}__disabled`]:a.value,[`${S}__readonly`]:s.value})),g=_=>{c.value=_,i("update:modelValue",_),i("input",_)},h=_=>{i("change",_)};let p=ge(n,"hintText"),$=l.ref(!1);const w=_=>{let F=_.target.value;f.value=!0,me(p.value)||($.value=!0),i("focus",F,_)},C=_=>{setTimeout(()=>{$.value&&($.value=!1),f.value=!1},0);let F=_.target.value;n.maxLength&&F.length>Number(n.maxLength)&&(F=F.slice(0,Number(n.maxLength))),i("blur",F,_)},q=()=>{i("clear","")},B=l.ref(!1);let A=null;const L=()=>{n.showTooltip&&B.value===!1&&(A&&clearTimeout(A),A=setTimeout(()=>{B.value=!0},150))},M=()=>{A&&(clearTimeout(A),B.value=!1,A=null)},V=l.computed(()=>B.value||$.value),k=l.computed(()=>B.value?c.value:p.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 D={...He(r.attrs),ref:P,class:N.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:s.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:q,onChange:h,onInput:g,onFocus:w,onBlur:C,onMouseover:L,onMouseleave:M},F={};r.slots.prepend&&(F.prepend=r.slots.prepend),r.slots.append&&(F.append=r.slots.append),r.slots.prefix&&(F.prefix=r.slots.prefix),r.slots.suffix?F.suffix=r.slots.suffix:b.value&&(F.suffix=()=>[n.unit]);const K=[],G=l.h(y.ElInput,D,F);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:k.value,hintVisible:V.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 d=kt(e,s);d==null&&(d=Qe(e,s)),u=d===a}if(u){r.push(s);break}}}}),r}function Hi(e){return{text:e,value:e}}const Mo={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},appearLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function Ki(e,t,o){return{props:{...we,...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),d=u(n,["placeholder"]),f=l.ref(null),c=l.ref([]),S=l.computed(()=>c.value?c.value.map(X=>Qe(n,X)).join(" "):""),N=(R,X,H,J=!0)=>{const te=Lo(n,R,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)}},g=l.ref(null),h=l.ref(null),p=l.computed(()=>h.value??g.value??[]),$=Oe(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,R=>ue(R)),w=zi(),C=async(R,X)=>{if(R){const H=await w.load("select",R,X);if(H.length>0)if(typeof H[0]=="string"){let T=H.map(W=>Hi(W));g.value=T}else g.value=H;else g.value=null}};l.watch([()=>n.source,()=>n.params],([R,X])=>{h.value=null,C(R,X)},{immediate:!$.value});let q=!1;const B=()=>{q||(q=!0,C(n.source,n.params))};l.watch([()=>g.value,()=>n.modelValue],([R,X])=>{if(V()&&ue(n.multiple)){Ye(X,f.value)||(f.value=X);return}N(X,n.valueType,p.value,!1),i("setValue",X)});let A=null,L=l.ref(!1);typeof n.remoteMethod=="function"&&(A=async R=>{if(R==null){h.value=null;return}L.value=!0;try{const X=await n.remoteMethod(R);X&&(h.value=X)}catch(X){h.value=null,console.error(X)}L.value=!1});let M=null;typeof n.filterMethod=="function"&&(M=async R=>{if(R==null){h.value=null;return}L.value=!0;try{const X=await n.filterMethod(R,g.value);X&&(h.value=X)}catch(X){h.value=null,console.error(X)}L.value=!1});const V=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",k=l.ref(!1),b=e,P=l.computed(()=>({[b]:!0})),_=R=>{n.allowCreate||V()&&ue(n.multiple)?(i("update:modelValue",R),i("change",R),i("update:text",R),f.value=R):N(R,"value",p.value,!0)};let D=ge(n,"hintText"),F=l.ref(!1);const K=R=>{let H=R.target.value;k.value=!0,me(D.value)||(F.value=!0),i("focus",H,R)},G=R=>{setTimeout(()=>{F.value&&(F.value=!1),k.value=!1},0);let H=R.target.value;n.maxLength&&H.length>Number(n.maxLength)&&(H=H.slice(0,Number(n.maxLength))),E.value||i("blur",H,R)},U=()=>{i("clear","")},Z=l.ref(!1);let ee=null;const le=()=>{n.showTooltip&&Z.value===!1&&(ee&&clearTimeout(ee),ee=setTimeout(()=>{Z.value=!0},150))},O=()=>{ee&&(clearTimeout(ee),Z.value=!1,ee=null)},x=l.computed(()=>Z.value||F.value),I=l.computed(()=>Z.value?S.value:D.value),E=l.ref(!1),v=R=>{E.value=R,i("visible-change",R),R||i("selected")},Y=R=>{i("remove-tag",R)},j=(R,X)=>{const H=[];return R.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:d.placeholder.value,disabled:a.value||s.value,modelValue:f.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:U,onChange:_,onFocus:K,onBlur:G,onVisibleChange:v,onRemoveTag:Y};typeof A=="function"&&(X["remote-method"]=A,X.loading=L.value),typeof M=="function"&&(X["filter-method"]=M,X.loading=L.value);const H={};r.slots.prefix&&(H.prefix=r.slots.prefix),r.slots.empty&&(H.empty=r.slots.empty),r.slots.options?H.default=r.slots.options:H.default=()=>j(p.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:I.value,hintVisible:x.value,onMouseover:le,onMouseleave:O};return n.prop&&(ne.prop=`${n.prop}_item`),$.value&&(ne["appear-listen"]=!0,ne.onAppear=B),l.h(o,ne,T)}}}}const{componentName:Wi,create:Yi,scope:Gi}=ie("select-item"),Wn=Yi(Ki(Wi,Gi,Se));var Ue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){var o=1e3,n=6e4,r=36e5,a="millisecond",s="second",i="minute",u="hour",d="day",f="week",c="month",S="quarter",N="year",g="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,$=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(D){var F=["th","st","nd","rd"],K=D%100;return"["+D+(F[(K-20)%10]||F[K]||F[0])+"]"}},C=function(D,F,K){var G=String(D);return!G||G.length>=F?D:""+Array(F+1-G.length).join(K)+D},q={s:C,z:function(D){var F=-D.utcOffset(),K=Math.abs(F),G=Math.floor(K/60),U=K%60;return(F<=0?"+":"-")+C(G,2,"0")+":"+C(U,2,"0")},m:function D(F,K){if(F.date()<K.date())return-D(K,F);var G=12*(K.year()-F.year())+(K.month()-F.month()),U=F.clone().add(G,c),Z=K-U<0,ee=F.clone().add(G+(Z?-1:1),c);return+(-(G+(K-U)/(Z?U-ee:ee-U))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:c,y:N,w:f,d,D:g,h:u,m:i,s,ms:a,Q:S}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},B="en",A={};A[B]=w;var L="$isDayjsObject",M=function(D){return D instanceof P||!(!D||!D[L])},V=function D(F,K,G){var U;if(!F)return B;if(typeof F=="string"){var Z=F.toLowerCase();A[Z]&&(U=Z),K&&(A[Z]=K,U=Z);var ee=F.split("-");if(!U&&ee.length>1)return D(ee[0])}else{var le=F.name;A[le]=F,U=le}return!G&&U&&(B=U),U||!G&&B},k=function(D,F){if(M(D))return D.clone();var K=typeof F=="object"?F:{};return K.date=D,K.args=arguments,new P(K)},b=q;b.l=V,b.i=M,b.w=function(D,F){return k(D,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var P=function(){function D(K){this.$L=V(K.locale,null,!0),this.parse(K),this.$x=this.$x||K.x||{},this[L]=!0}var F=D.prototype;return F.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(p);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()},F.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()},F.$utils=function(){return b},F.isValid=function(){return this.$d.toString()!==h},F.isSame=function(K,G){var U=k(K);return this.startOf(G)<=U&&U<=this.endOf(G)},F.isAfter=function(K,G){return k(K)<this.startOf(G)},F.isBefore=function(K,G){return this.endOf(G)<k(K)},F.$g=function(K,G,U){return b.u(K)?this[G]:this.set(U,K)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(K,G){var U=this,Z=!!b.u(G)||G,ee=b.p(K),le=function(z,R){var X=b.w(U.$u?Date.UTC(U.$y,R,z):new Date(U.$y,R,z),U);return Z?X:X.endOf(d)},O=function(z,R){return b.w(U.toDate()[z].apply(U.toDate("s"),(Z?[0,0,0,0]:[23,59,59,999]).slice(R)),U)},x=this.$W,I=this.$M,E=this.$D,v="set"+(this.$u?"UTC":"");switch(ee){case N:return Z?le(1,0):le(31,11);case c:return Z?le(1,I):le(0,I+1);case f:var Y=this.$locale().weekStart||0,j=(x<Y?x+7:x)-Y;return le(Z?E-j:E+(6-j),I);case d:case g: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()}},F.endOf=function(K){return this.startOf(K,!1)},F.$set=function(K,G){var U,Z=b.p(K),ee="set"+(this.$u?"UTC":""),le=(U={},U[d]=ee+"Date",U[g]=ee+"Date",U[c]=ee+"Month",U[N]=ee+"FullYear",U[u]=ee+"Hours",U[i]=ee+"Minutes",U[s]=ee+"Seconds",U[a]=ee+"Milliseconds",U)[Z],O=Z===d?this.$D+(G-this.$W):G;if(Z===c||Z===N){var x=this.clone().set(g,1);x.$d[le](O),x.init(),this.$d=x.set(g,Math.min(this.$D,x.daysInMonth())).$d}else le&&this.$d[le](O);return this.init(),this},F.set=function(K,G){return this.clone().$set(K,G)},F.get=function(K){return this[b.p(K)]()},F.add=function(K,G){var U,Z=this;K=Number(K);var ee=b.p(G),le=function(I){var E=k(Z);return b.w(E.date(E.date()+Math.round(I*K)),Z)};if(ee===c)return this.set(c,this.$M+K);if(ee===N)return this.set(N,this.$y+K);if(ee===d)return le(1);if(ee===f)return le(7);var O=(U={},U[i]=n,U[u]=r,U[s]=o,U)[ee]||1,x=this.$d.getTime()+K*O;return b.w(x,this)},F.subtract=function(K,G){return this.add(-1*K,G)},F.format=function(K){var G=this,U=this.$locale();if(!this.isValid())return U.invalidDate||h;var Z=K||"YYYY-MM-DDTHH:mm:ssZ",ee=b.z(this),le=this.$H,O=this.$m,x=this.$M,I=U.weekdays,E=U.months,v=U.meridiem,Y=function(R,X,H,J){return R&&(R[X]||R(G,Z))||H[X].slice(0,J)},j=function(R){return b.s(le%12||12,R,"0")},z=v||function(R,X,H){var J=R<12?"AM":"PM";return H?J.toLowerCase():J};return Z.replace($,function(R,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 x+1;case"MM":return b.s(x+1,2,"0");case"MMM":return Y(U.monthsShort,x,E,3);case"MMMM":return Y(E,x);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,I,2);case"ddd":return Y(U.weekdaysShort,G.$W,I,3);case"dddd":return I[G.$W];case"H":return String(le);case"HH":return 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}(R)||ee.replace(":","")})},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(K,G,U){var Z,ee=this,le=b.p(G),O=k(K),x=(O.utcOffset()-this.utcOffset())*n,I=this-O,E=function(){return b.m(ee,O)};switch(le){case N:Z=E()/12;break;case c:Z=E();break;case S:Z=E()/3;break;case f:Z=(I-x)/6048e5;break;case d:Z=(I-x)/864e5;break;case u:Z=I/r;break;case i:Z=I/n;break;case s:Z=I/o;break;default:Z=I}return U?Z:b.a(Z)},F.daysInMonth=function(){return this.endOf(c).$D},F.$locale=function(){return A[this.$L]},F.locale=function(K,G){if(!K)return this.$L;var U=this.clone(),Z=V(K,G,!0);return Z&&(U.$L=Z),U},F.clone=function(){return b.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},D}(),_=P.prototype;return k.prototype=_,[["$ms",a],["$s",s],["$m",i],["$H",u],["$W",d],["$M",c],["$y",N],["$D",g]].forEach(function(D){_[D[1]]=function(F){return this.$g(F,D[0],D[1])}}),k.extend=function(D,F){return D.$i||(D(F,P,k),D.$i=!0),k},k.locale=V,k.isDayjs=M,k.unix=function(D){return k(1e3*D)},k.en=A[B],k.Ls=A,k.p={},k})})(Bo);var Ui=Bo.exports;const Ke=Xe(Ui);var _o={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,a=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},u=function(h){return(h=+h)+(h>68?1900:2e3)},d=function(h){return function(p){this[h]=+p}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(p){if(!p||p==="Z")return 0;var $=p.match(/([+-]|\d\d)/g),w=60*$[1]+(+$[2]||0);return w===0?0:$[0]==="+"?-w:w}(h)}],c=function(h){var p=i[h];return p&&(p.indexOf?p:p.s.concat(p.f))},S=function(h,p){var $,w=i.meridiem;if(w){for(var C=1;C<=24;C+=1)if(h.indexOf(w(C,0,p))>-1){$=C>12;break}}else $=h===(p?"pm":"PM");return $},N={A:[s,function(h){this.afternoon=S(h,!1)}],a:[s,function(h){this.afternoon=S(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[r,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[a,d("seconds")],ss:[a,d("seconds")],m:[a,d("minutes")],mm:[a,d("minutes")],H:[a,d("hours")],h:[a,d("hours")],HH:[a,d("hours")],hh:[a,d("hours")],D:[a,d("day")],DD:[r,d("day")],Do:[s,function(h){var p=i.ordinal,$=h.match(/\d+/);if(this.day=$[0],p)for(var w=1;w<=31;w+=1)p(w).replace(/\[|\]/g,"")===h&&(this.day=w)}],M:[a,d("month")],MM:[r,d("month")],MMM:[s,function(h){var p=c("months"),$=(c("monthsShort")||p.map(function(w){return w.slice(0,3)})).indexOf(h)+1;if($<1)throw new Error;this.month=$%12||$}],MMMM:[s,function(h){var p=c("months").indexOf(h)+1;if(p<1)throw new Error;this.month=p%12||p}],Y:[/[+-]?\d+/,d("year")],YY:[r,function(h){this.year=u(h)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function g(h){var p,$;p=h,$=i&&i.formats;for(var w=(h=p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(V,k,b){var P=b&&b.toUpperCase();return k||$[b]||o[b]||$[P].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(_,D,F){return D||F.slice(1)})})).match(n),C=w.length,q=0;q<C;q+=1){var B=w[q],A=N[B],L=A&&A[0],M=A&&A[1];w[q]=M?{regex:L,parser:M}:B.replace(/^\[|\]$/g,"")}return function(V){for(var k={},b=0,P=0;b<C;b+=1){var _=w[b];if(typeof _=="string")P+=_.length;else{var D=_.regex,F=_.parser,K=V.slice(P),G=D.exec(K)[0];F.call(k,G),V=V.replace(G,"")}}return function(U){var Z=U.afternoon;if(Z!==void 0){var ee=U.hours;Z?ee<12&&(U.hours+=12):ee===12&&(U.hours=0),delete U.afternoon}}(k),k}}return function(h,p,$){$.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var w=p.prototype,C=w.parse;w.parse=function(q){var B=q.date,A=q.utc,L=q.args;this.$u=A;var M=L[1];if(typeof M=="string"){var V=L[2]===!0,k=L[3]===!0,b=V||k,P=L[2];k&&(P=L[2]),i=this.$locale(),!V&&P&&(i=$.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=g(G)(K),ee=Z.year,le=Z.month,O=Z.day,x=Z.hours,I=Z.minutes,E=Z.seconds,v=Z.milliseconds,Y=Z.zone,j=new Date,z=O||(ee||le?1:j.getDate()),R=ee||j.getFullYear(),X=0;ee&&!le||(X=le>0?le-1:j.getMonth());var H=x||0,J=I||0,te=E||0,T=v||0;return Y?new Date(Date.UTC(R,X,z,H,J,te,T+60*Y.offset*1e3)):U?new Date(Date.UTC(R,X,z,H,J,te,T)):new Date(R,X,z,H,J,te,T)}catch{return new Date("")}}(B,M,A),this.init(),P&&P!==!0&&(this.$L=this.locale(P).$L),b&&B!=this.format(M)&&(this.$d=new Date("")),i={}}else if(M instanceof Array)for(var _=M.length,D=1;D<=_;D+=1){L[1]=M[D-1];var F=$.apply(this,L);if(F.isValid()){this.$d=F.$d,this.$L=F.$L,this.init();break}D===_&&(this.$d=new Date(""))}else C.call(this,q)}}})})(_o);var Xi=_o.exports;const Zi=Xe(Xi);var qo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){return function(o,n){var r=n.prototype,a=r.format;r.format=function(s){var i=this,u=this.$locale();if(!this.isValid())return a.bind(this)(s);var d=this.$utils(),f=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(c){switch(c){case"Q":return Math.ceil((i.$M+1)/3);case"Do":return u.ordinal(i.$D);case"gggg":return i.weekYear();case"GGGG":return i.isoWeekYear();case"wo":return u.ordinal(i.week(),"W");case"w":case"ww":return d.s(i.week(),c==="w"?1:2,"0");case"W":case"WW":return d.s(i.isoWeek(),c==="W"?1:2,"0");case"k":case"kk":return d.s(String(i.$H===0?24:i.$H),c==="k"?1:2,"0");case"X":return Math.floor(i.$d.getTime()/1e3);case"x":return i.$d.getTime();case"z":return"["+i.offsetName()+"]";case"zzz":return"["+i.offsetName("long")+"]";default:return c}});return a.bind(this)(f)}}})})(qo);var Ji=qo.exports;const Qi=Xe(Ji);var Po={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){return function(o,n,r){var a=n.prototype,s=function(c){return c&&(c.indexOf?c:c.s)},i=function(c,S,N,g,h){var p=c.name?c:c.$locale(),$=s(p[S]),w=s(p[N]),C=$||w.map(function(B){return B.slice(0,g)});if(!h)return C;var q=p.weekStart;return C.map(function(B,A){return C[(A+(q||0))%7]})},u=function(){return r.Ls[r.locale()]},d=function(c,S){return c.formats[S]||function(N){return N.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,h,p){return h||p.slice(1)})}(c.formats[S.toUpperCase()])},f=function(){var c=this;return{months:function(S){return S?S.format("MMMM"):i(c,"months")},monthsShort:function(S){return S?S.format("MMM"):i(c,"monthsShort","months",3)},firstDayOfWeek:function(){return c.$locale().weekStart||0},weekdays:function(S){return S?S.format("dddd"):i(c,"weekdays")},weekdaysMin:function(S){return S?S.format("dd"):i(c,"weekdaysMin","weekdays",2)},weekdaysShort:function(S){return S?S.format("ddd"):i(c,"weekdaysShort","weekdays",3)},longDateFormat:function(S){return d(c.$locale(),S)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return f.bind(this)()},r.localeData=function(){var c=u();return{firstDayOfWeek:function(){return c.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(S){return d(c,S)},meridiem:c.meridiem,ordinal:c.ordinal}},r.months=function(){return i(u(),"months")},r.monthsShort=function(){return i(u(),"monthsShort","months",3)},r.weekdays=function(c){return i(u(),"weekdays",null,null,c)},r.weekdaysShort=function(c){return i(u(),"weekdaysShort","weekdays",3,c)},r.weekdaysMin=function(c){return i(u(),"weekdaysMin","weekdays",2,c)}}})})(Po);var es=Po.exports;const ts=Xe(es);var jo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){var o="week",n="year";return function(r,a,s){var i=a.prototype;i.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=s(this).startOf(n).add(1,n).date(d),c=s(this).endOf(o);if(f.isBefore(c))return 1}var S=s(this).startOf(n).date(d).startOf(o).subtract(1,"millisecond"),N=this.diff(S,o,!0);return N<0?s(this).startOf("week").week():Math.ceil(N)},i.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(jo);var ns=jo.exports;const ls=Xe(ns);var zo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){return function(o,n){n.prototype.weekYear=function(){var r=this.month(),a=this.week(),s=this.year();return a===1&&r===11?s+1:r===0&&a>=52?s-1:s}}})})(zo);var os=zo.exports;const rs=Xe(os);var Ho={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){return function(o,n,r){n.prototype.dayOfYear=function(a){var s=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return a==null?s:this.add(a-s,"day")}}})})(Ho);var as=Ho.exports;const is=Xe(as);var Ko={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){return function(o,n){n.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})})(Ko);var ss=Ko.exports;const us=Xe(ss);var Wo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){return function(o,n){n.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})})(Wo);var cs=Wo.exports;const fs=Xe(cs);Ke.extend(ts),Ke.extend(Qi),Ke.extend(Zi),Ke.extend(ls),Ke.extend(rs),Ke.extend(is),Ke.extend(us),Ke.extend(fs);const Be={format(e,t){return Ke(e).format(t)},parser(e,t){return Ke(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,o){const r=new Date(e+"/"+t+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][r]},getMonthPreDay(e,t){let n=new Date(e+"/"+t+"/01").getDay();return n==0&&(n=7),n},getMonthDays(e,t){return/^0/.test(t)&&(t=t.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][t]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,t){t=t||"-";const o=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),r=this.getNumTwoBit(e.getDate());return[o,n,r].join(t)},getDay(e,t){e=e||0;let o=t??new Date;const n=e*(1e3*60*60*24);return o=new Date(o.getTime()+n),this.date2Str(o)},compareDate(e,t){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let n;return typeof t=="string"?n=new Date(t.replace("-","/").replace("-","/")):n=t,!(o>=n)},isEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e;let n;return typeof t=="string"?n=new Date(t).getTime():n=t,o==n},getMonthWeek:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o));let a=r.getDay(),s=r.getDate(),i=6-a;return n!==0&&(a=a==0?7:a,i=7-a),Math.ceil((s+i)/7)},getYearWeek:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=new Date(Number(e),0,1),s=Math.round((r.valueOf()-a.valueOf())/864e5);let i=r.getDay(),u=6-i;return n!==0&&(i=i==0?7:i,u=7-i),Math.ceil((s+u)/7)},getWeekDate:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=r.getTime();let s=r.getDay();if(n===0){const u=a-s*864e5,d=a+(6-s)*864e5,f=this.date2Str(new Date(u)),c=this.date2Str(new Date(d));return[f,c]}else{s=s==0?7:s;const i=24*60*60*1e3,u=a-(s-1)*i,d=a+(7-s)*i,f=this.date2Str(new Date(u)),c=this.date2Str(new Date(d));return[f,c]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=Be.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=Be.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,o){const n=new Date(new Date(t).setDate(t.getDate()+o)),r=e.getTime(),a=n.getTime(),s=t.getTime();return a>s?r>=s&&r<=a:r>=a&&r<=s},inScope4Month(e,t,o){const n=new Date(new Date(t).setMonth(t.getMonth()+o)),r=e.getTime(),a=n.getTime(),s=t.getTime();return a>s?r>=s&&r<=a:r>=a&&r<=s}},Yo={type:{type:[String],required:!1},modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},valueFormat:{type:[String],required:!1},format:{type:[String],required:!1,default:"YYYY-MM-DD"},flashFill:{type:[Boolean],required:!1,default:!0},flashFillThreshold:{type:[Function,Number],required:!1,default:8},flashFillFormat:{type:[Function,String],required:!1,default:"YYYYMMDD"}},Go={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTermActionLabel:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1},compatibleLongTermValue:{type:[Date,Number,String,Array],required:!1}};function ds(e,t,o){return{props:{...we,...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),d=u(n,["placeholder"]),f=l.ref(!1),c=ge(n,"modelValue",null,i),S=l.computed(()=>F.value&&Array.isArray(c.value)&&c.value.length==2?c.value[0]:c.value),N=l.computed(()=>F.value?"longTermKey":"normalKey"),g=z=>{if(F.value&&n.type==="daterange"){const R=[...c.value];R[0]=z,c.value=R}else c.value=z;i("update:modelValue",c.value),i("change",c.value)},h=l.computed(()=>F.value&&n.type==="daterange"?"date":n.type),p=e,$=l.computed(()=>({[`${p}`]:!0,"is-long":F.value,"is-readonly":s.value,"is-disabled":a.value}));let w=ge(n,"hintText"),C=l.ref(!1);const q=z=>{let X=z.target.value;f.value=!0,me(w.value)||(C.value=!0),i("focus",X,z)},B=z=>{setTimeout(()=>{C.value&&(C.value=!1),f.value=!1},0);let X=z.target.value;n.maxLength&&X.length>Number(n.maxLength)&&(X=X.slice(0,Number(n.maxLength))),i("blur",X,z)},A=()=>{i("clear","")},L=z=>{i("calendar-change",z)},M=(z,R,X)=>{i("panel-change",z,R,X)},V=z=>{i("visible-change",z)},k=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),_=Oe(l.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",Me.Near);let D=null;const F=l.ref(ue(n.longTerm)),K=z=>{if(F.value=z,i("update:longTerm",z),z){if(D=c.value,n.type==="daterange"){const R=[];Array.isArray(P.value)?(R[0]=c.value?c.value[0]??P.value[0]:null,R[1]=P.value[1]??P.value[0]):(R[0]=c.value?c.value[0]??P.value:null,R[1]=F.value),R[0]||(R[0]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),R[1]||(R[1]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),c.value=R}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 R=[];R[0]=Array.isArray(c.value)?c.value[0]:c.value,Array.isArray(D)?R[1]=D[1]:R[1]=D,R[0]||(R[0]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),R[1]||(R[1]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),c.value=R}else c.value=D;i("update:modelValue",c.value),setTimeout(()=>{Y()},100)}},G=ue(n.isLongTerm);if(G){const z=()=>{if(F.value===!0){if(D=c.value,n.type==="daterange"){const R=[c.value[0]];Array.isArray(P.value)?R[1]=P.value[1]??P.value[0]:R[1]=F.value,R[0]||(R[0]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),R[1]||(R[1]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),c.value=R}else c.value=P.value;i("update:modelValue",c.value)}else Ye(P.value,c.value)&&(F.value=!0)};z(),l.watch([()=>n.longTerm],([R])=>{F.value!==R&&z()}),l.watch([()=>c.value],([R])=>{let X=!1;if(n.type==="daterange"&&Array.isArray(R))try{let H=R[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(_.value)&&_.value.findIndex(T=>H==T)!==-1)&&(X=!0)}catch(H){console.error(H)}F.value!==X&&(F.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,R)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(z,R):le.test(z)&&z.length===n.flashFillThreshold,x=(z,R)=>{let X;if(typeof n.flashFillFormat=="function")X=n.flashFillFormat(z,R);else{const J=n.flashFillFormat??"YYYYMMDD";X=Be.parser(z,J)}const H=n.valueFormat??"YYYY-MM-DD";return Be.format(X,H)},I=z=>z?z.endsWith("range"):!1,E=z=>{if(!z.target)return;const R=z.target.value??"";if(O(R,n.type)){const X=x(R,n.type);if(I(n.type)){const H=Array.isArray(c.value)?[...c.value]:[];H[0]=X,g(H)}else g(X)}},v=z=>{if(!z.target)return;const R=z.target.value??"";if(O(R,n.type)){const X=x(R,n.type);if(I(n.type)){const H=Array.isArray(c.value)?[...c.value]:[];H[1]=X,g(H)}else g(X)}},Y=()=>{if(n.flashFill&&Z.value&&Z.value.$el)if(I(n.type)){const z=Z.value.$el.querySelectorAll("input.el-range-input");z[0]&&z[0].addEventListener("input",E),z[1]&&z[1].addEventListener("input",v)}else{const z=Z.value.$el.querySelector("input.el-input__inner");z&&z.addEventListener("input",E)}},j=()=>{if(n.flashFill&&Z.value&&Z.value.$el)if(I(n.type)){const z=Z.value.$el.querySelectorAll("input.el-range-input");z[0]&&z[0].removeEventListener("input",E),z[1]&&z[1].removeEventListener("input",v)}else{const z=Z.value.$el.querySelector("input.el-input__inner");z&&z.removeEventListener("input",E)}};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 R={...r.attrs,key:N.value,type:h.value,ref:ee,class:$.value,placeholder:d.placeholder.value,disabled:a.value,readonly:s.value,modelValue:S.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":g,onClear:A,onFocus:q,onBlur:B,onCalendarChange:L,onPanelChange:M,onVisibleChange:V},X={};r.slots["range-separator"]&&(X["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(X.default=r.slots.cell);const H=[],J=l.h(y.ElDatePicker,R,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(F.value){const oe=l.h("span",{class:["fox-date-item__long-splitor"]},["-"]),de=l.h("input",{class:["fox-date-item__long-text"],value:k.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||k.value,disabled:s.value||a.value,modelValue:F.value,"onUpdate:modelValue":K},de=l.h(y.ElCheckbox,oe),se=l.h("div",{class:{[`${p}__append`]:!0}},[de]);te.append=()=>se}}const W={...Ne(n,Yo,Go),ref:Z,class:{[`${p}__wrapper`]:!0,"has-append":G},hintText:w.value,hintVisible:C.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),d=u(n,["placeholder"]),f=l.ref(!1),c=ge(n,"modelValue",null,i),S=e,N=l.computed(()=>({[S]:!0})),g=A=>{c.value=A,i("update:modelValue",A),i("change",A)};let h=ge(n,"hintText"),p=l.ref(!1);const $=A=>{let M=A.target.value;f.value=!0,me(h.value)||(p.value=!0),i("focus",M,A)},w=A=>{setTimeout(()=>{p.value&&(p.value=!1),f.value=!1},0);let M=A.target.value;n.maxLength&&M.length>Number(n.maxLength)&&(M=M.slice(0,Number(n.maxLength))),i("blur",M,A)},C=()=>{i("clear","")},q=A=>{i("visible-change",A)},B=l.ref();return $e({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},handleOpen:()=>{B?.value.handleOpen()},handleClose:()=>{B?.value.handleClose()}}),()=>{const L={...r.attrs,ref:B,class:N.value,placeholder:d.placeholder.value,disabled:a.value,readonly:s.value,modelValue:c.value,"onUpdate:modelValue":g,onClear:C,onFocus:$,onBlur:w,onVisibleChange:q},M={},V=[],k=l.h(y.ElTimePicker,L,M);V.push(k);const b={default:()=>V};r.slots.default&&(b.label=r.slots.default),r.slots.fixedTip&&(b.fixedTip=r.slots.fixedTip);const _={...Ne(n,Uo),hintText:h.value,hintVisible:p.value};return n.prop&&(_.prop=`${n.prop}_item`),l.h(o,_,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),d=u(n,["placeholder"]),f=l.ref(!1),c=ge(n,"modelValue",null,i),S=e,N=l.computed(()=>({[S]:!0})),g=B=>{c.value=B,i("update:modelValue",B),i("change",B)};let h=ge(n,"hintText"),p=l.ref(!1);const $=B=>{let L=B.target.value;f.value=!0,me(h.value)||(p.value=!0),i("focus",L,B)},w=B=>{setTimeout(()=>{p.value&&(p.value=!1),f.value=!1},0);let L=B.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),i("blur",L,B)},C=()=>{i("clear","")},q=l.ref();return $e({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},handleOpen:()=>{q?.value.handleOpen()},handleClose:()=>{q?.value.handleClose()}}),()=>{const A={...r.attrs,ref:q,class:N.value,placeholder:d.placeholder.value,disabled:a.value,readonly:s.value,modelValue:c.value,"onUpdate:modelValue":g,onClear:C,onFocus:$,onBlur:w},L={},M=[],V=l.h(y.ElTimeSelect,A,L);M.push(V);const k={default:()=>M};r.slots.default&&(k.label=r.slots.default),r.slots.fixedTip&&(k.fixedTip=r.slots.fixedTip);const P={...Ne(n,Xo),hintText:h.value,hintVisible:p.value};return n.prop&&(P.prop=`${n.prop}_item`),l.h(o,P,k)}}}}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),d=ge(n,"modelValue",null,i),f=l.ref("");l.watch([()=>d.value,()=>n.rates,()=>n.precision],([_,D,F])=>{if(me(_)){f.value="";return}const K=Qo(_,D,F,!1);f.value!==K&&(f.value=K)},{immediate:!0});const c=l.computed(()=>{let _="";return u.value&&(_=f.value),_}),{t:S}=Le.useFoxI18n(t),N=l.computed(()=>{let _=n.placeholder??"";return!u.value&&!me(f.value)?_=$s(f.value,n.decimalLength,n.autoPadding,n.digits,n.separator):_=S(["placeholder",_]),_}),g=e,h=l.computed(()=>({[g]:!0,[`${g}__disabled`]:a.value,[`${g}__placeholder`]:f.value.length>0})),p=Oe(l.computed(()=>n.textAlign),"textAlign");l.computed(()=>u.value?{textAlign:"left"}:{textAlign:p.value??"right"});const $=l.ref(""),w=l.computed(()=>{let _=$.value;return me(_)&&(_=n.errorTip??""),_}),C=l.ref(""),q=l.ref(!1),B=(_,D)=>{if(_=`${_}`,me(_)){f.value="",d.value="",D.forEach(F=>{i(F,"")}),ue(n.showTip)&&q.value&&(q.value=!1);return}if(_.length>=2){let F=_;if(F.charAt(0)=="-"&&(F=F.substring(1)),F.length>=2&&F.charAt(0)=="0"&&F.charAt(1)!="."){l.triggerRef(f);return}}if(_!="-"){if(!lo(_)){l.triggerRef(f);return}if(n.integerLength!=-1&&oo(_)>Number(n.integerLength)){l.triggerRef(f);return}if(n.decimalLength&&n.decimalLength!=-1&&ro(_)>Number(n.decimalLength)){l.triggerRef(f);return}let F=er(_,n);if(F.maxValid===!1){$.value=F.message,l.triggerRef(f);return}}else if(n.min!=null&&ve(n.min)>=0){l.triggerRef(f);return}C.value=_,ue(n.showTip)&&(q.value=_.length>0),f.value=_,d.value=Qo(_,n.rates,n.precision,!0),D.forEach(F=>{i(F,d.value)})},A=_=>{B(_,["update:modelValue","input"])},L=_=>{B(_,["update:modelValue","change"])},M=_=>{if(u.value=!0,ue(n.showTip)){let D=f.value;me(D)&&(D=n.hintText),me(D)||(C.value=D,q.value=!0)}$.value="",i("focus",d.value,_)},V=_=>{if(setTimeout(()=>{u.value=!1,ue(n.showTip)&&q.value===!0&&(q.value=!1)},0),!me(f.value)){let D=er(f.value,n);if(D.minValid===!1||D.maxValid===!1){$.value=D.message;return}}i("update:modelValue",d.value,_),i("blur",d.value,_)},k=()=>{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 D={...He(r.attrs),ref:P,class:h.value,type:"digit",maxlength:n.maxLength,placeholder:N.value,clearable:n.clearable,disabled:a.value,readonly:s.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:k,onInput:A,onChange:L,onFocus:M,onBlur:V},F={};r.slots.prepend&&(F.prepend=r.slots.prepend),r.slots.append&&(F.append=r.slots.append),r.slots.prefix&&(F.prefix=r.slots.prefix),r.slots.suffix?F.suffix=r.slots.suffix:b.value&&(F.suffix=()=>[n.unit]);const K=[],G=l.h(y.ElInput,D,F);K.push(G);const U={default:()=>K};r.slots.default&&(U.label=r.slots.default),r.slots.fixedTip&&(U.fixedTip=r.slots.fixedTip);const ee={...Ne(n,tr),errorTip:w.value,hintText:C.value,hintVisible:q.value,hintType:"number"};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),d=u(n,["placeholder"]),f=l.ref(!1),c=ge(n,"modelValue",null,i),S=e,N=l.computed(()=>({[S]:!0,[`${S}__append`]:A.value})),g=l.computed(()=>({[`${S}__unit`]:!0})),h=M=>{c.value=M,i("update:modelValue",M),i("input",M)},p=M=>{i("change",M)};let $=ge(n,"hintText"),w=l.ref(!1);const C=M=>{let k=M.target.value;f.value=!0,me($.value)||(w.value=!0),i("focus",k,M)},q=M=>{setTimeout(()=>{w.value&&(w.value=!1),f.value=!1},0);let k=M.target.value;n.maxLength&&k.length>Number(n.maxLength)&&(k=k.slice(0,Number(n.maxLength))),i("blur",k,M)},B=()=>{i("clear","")},A=l.computed(()=>wt(n.unit)>0),L=l.ref();return $e({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()}}),()=>{const V={...He(r.attrs),ref:L,class:N.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:s.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:B,onChange:p,onInput:h,onFocus:C,onBlur:q},k={},b=[],P=l.h(y.ElInputNumber,V,k);b.push(P);const _={default:()=>b};r.slots.default&&(_.label=r.slots.default),r.slots.fixedTip&&(_.fixedTip=r.slots.fixedTip);const F={...Ne(n,nr),hintText:$.value,hintVisible:w.value};if(n.prop&&(F.prop=`${n.prop}_item`),r.slots.append)_.append=r.slots.append;else if(A.value){const G={class:g.value},U=l.h("div",G,[n.unit]);_.append=()=>U}return l.h(o,F,_)}}}}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 d of a){if(o==="text")u=Ze(e,d)===i;else if(o==="item")u=Jn(e,d,i);else{let f=rt(e,d);f==null&&(f=Ze(e,d)),u=f===i}if(u){r.push(d),a=Ds(e,d);break}}if(!u)break}}return r}function Ls(e){return{text:e,value:e}}const or={modelValue:{type:[Array,String],required:!1},pathNodes:{type:[Array],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},appearLoad:{type:[Boolean],default:!1},lazy:{type:[Boolean],default:!1},lazyLoad:{type:[Function]},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function Ms(e,t,o){return{props:{...we,...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),d=u(n,["placeholder"]),f=l.ref(null),c=l.ref([]),S=l.computed(()=>c.value?c.value.map(z=>Array.isArray(z)?z.map(X=>Ze(n,X)).join(" "):Ze(n,z)).join(" "):""),N=(j,z,R,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,R);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(k.value.checkStrictly!==!0&&J&&!Array.isArray(J)&&Array.isArray(J.children)&&J.children.length>0){const T=[];H.forEach(W=>{const ne=`${Ze(n,W)}`;T.push(ne)}),T.length>0&&(M.value=T.join(n.separator))}else M.value=null;let te=!0;if(H.length!==c.value.length)te=!1;else for(let T=0;T<H.length;T++){const W=H[T],ne=c.value[T];if(Array.isArray(W)){if(!Array.isArray(ne)||W.length!==ne.length)te=!1;else for(let oe=0;oe<W.length;oe++)if(!Jn(n,W[oe],ne[oe])){te=!1;break}}else Jn(n,W,ne)||(te=!1);if(!te)break}if(!te){c.value=H;let T=[],W=[];H.forEach(oe=>{if(Array.isArray(oe)){let de=[],se=[];for(let Q of oe)de.push(rt(n,Q)),n.valueType==="text"?se.push(Ze(n,Q)):n.valueType==="item"?se.push(Q):se.push(rt(n,Q));T.push(de),W.push(se)}else T.push(rt(n,oe)),n.valueType==="text"?W.push(Ze(n,oe)):n.valueType==="item"?W.push(oe):W.push(rt(n,oe))}),f.value=T;const ne=l.toRaw(W);X&&(i("update:pathNodes",H),i("update:modelValue",ne),i("change",ne))}},g=l.ref([]),h=Oe(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,j=>ue(j)),p=As(),$=async(j,z)=>{if(j){const R=await p.load("cascader",j,z);if(R.length>0)if(typeof R[0]=="string"){let J=R.map(te=>Ls(te));g.value=J}else g.value=R}};l.watch([()=>n.source,()=>n.params],async([j,z])=>{$(j,z)},{immediate:!(h.value||n.lazy)});let w=!1;const C=()=>{w||(w=!0,$(n.source,n.params))};l.watch([()=>g.value,()=>n.modelValue],([j,z])=>{N(z,n.valueType,j,!1),i("setValue",z)}),n.lazy&&N(n.modelValue,"value",[],!1);let q=null,B=l.ref(!1);typeof n.remoteMethod=="function"&&(q=async j=>{if(j!=null){B.value=!0;try{const z=await n.remoteMethod(j);g.value=z}catch(z){console.error(z)}B.value=!1}});const A=l.ref(!1),L=e,M=l.ref(null),V=l.computed(()=>({[L]:!0,"is-incomplete":M.value&&M.value.length>0})),k=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,R)=>{const X=await p.load("cascader",n.source,z,!0);if(z?.config?.checkStrictly!==!0&&Array.isArray(f.value)&&f.value.length===z.level){const H=z.pathLabels??[];let J=[];H.forEach(te=>{te&&J.push(te)}),J.length>0&&(M.value=J.join(n.separator))}else M.value=null;R(X)}),j}),b=j=>{n.allowCreate?(i("update:modelValue",j),i("change",j),f.value=j):N(j,"value",g.value,!0)};let P=ge(n,"hintText"),_=l.ref(!1);const D=j=>{let R=j.target.value;A.value=!0,me(P.value)||(_.value=!0),i("focus",R,j)},F=j=>{setTimeout(()=>{_.value&&(_.value=!1),A.value=!1},0);let R=j.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),x.value||i("blur",R,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||_.value),O=l.computed(()=>G.value?S.value:P.value),x=l.ref(!1),I=j=>{x.value=j,i("visible-change",j),j||i("selected")},E=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:V.value,props:k.value,clearable:n.clearable,placeholder:M.value||d.placeholder.value,disabled:a.value||s.value,options:g.value,modelValue:f.value,separator:n.separator,onClear:K,onChange:b,onFocus:D,onBlur:F,onVisibleChange:I,onRemoveTag:E,expandChange:v};typeof q=="function"&&(z["remote-method"]=q,z.loading=B.value);const R={};r.slots.option&&(R.default=r.slots.option),r.slots.empty&&(R.empty=r.slots.empty);const X=[],H=l.h(y.ElCascader,z,R);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`),h.value&&!n.lazy&&(T["appear-listen"]=!0,T.onAppear=C),l.h(o,T,J)}}}}const{componentName:Bs,create:_s,scope:qs}=ie("cascader-item"),Qn=_s(Ms(Bs,qs,Se)),rr={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Ps(e,t,o){return{props:{...we,...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),d=u(n,["placeholder"]),f=l.ref(!1),c=ge(n,"modelValue",null,i),S=e,N=l.computed(()=>({[S]:!0})),g=L=>{c.value=L,i("update:modelValue",L),i("input",L)},h=L=>{i("change",L)},p=L=>{i("select",L)};let $=ge(n,"hintText"),w=l.ref(!1);const C=L=>{let V=L.target.value;f.value=!0,me($.value)||(w.value=!0),i("focus",V,L)},q=L=>{setTimeout(()=>{w.value&&(w.value=!1),f.value=!1},0);let V=L.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),i("blur",V,L)},B=()=>{i("clear","")},A=l.ref();return $e({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()},select:()=>{A?.value.select()}}),()=>{const M={...r.attrs,ref:A,class:N.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:s.value,modelValue:c.value,onClear:B,onChange:h,onInput:g,onFocus:C,onBlur:q,onSelect:p},V={};r.slots.prepend&&(V.prepend=r.slots.prepend),r.slots.append&&(V.append=r.slots.append),r.slots.prefix&&(V.prefix=r.slots.prefix),r.slots.suffix&&(V.suffix=r.slots.suffix),r.slots.option&&(V.default=r.slots.option);const k=[],b=l.h(y.ElAutocomplete,M,V);k.push(b);const P={default:()=>k};r.slots.default&&(P.label=r.slots.default),r.slots.fixedTip&&(P.fixedTip=r.slots.fixedTip);const D={...Ne(n,rr),hintText:$.value,hintVisible:w.value};return n.prop&&(D.prop=`${n.prop}_item`),l.h(o,D,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 d=0;u&&d<a.length;d++){let f=a[d],c=u.find(S=>S[n]===f);if(!c)break;s.push(c[o])}return s}if(Array.isArray(i))for(let u=0;u<t.length&&u<a.length;u++){let d=t[u],f=a[u];const c=d.find(S=>S[n]===f);if(!c)break;s.push(c[o])}else{let u=t;for(let d=0;u&&d<a.length;d++){let f=a[d],c=u.find(S=>S[n]===f);if(!c)break;s.push(c[o]),u=c[r]}}return s}let Ws=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=Pe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(We(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Ys(){const e=l.getCurrentInstance();return new Ws(e.proxy)}const ar={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1},emptyTag:{type:[String],required:!1,default:"span"},emptyClass:{type:[String],required:!1}};function Gs(e,t){return{props:{...ar},setup(o,{attrs:n,slots:r}){const a=Ys(),s=l.ref([]);l.watch([()=>o.source,()=>o.params],async([d,f])=>{s.value=await a.load(o.sourceType,d,f)},{immediate:!0});const i=l.computed(()=>{if(!Array.isArray(s.value)||s.value.length===0)return"";let d=Ks(o.modelValue,s.value,o.textKey,o.valueKey,o.childrenKey);return d.length==0?o.emptyText??"":d.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${d[0]}`:d[0]:d.join(o.separator)}),u=o.resolveTag?l.resolveComponent(o.tag):o.tag;return()=>{const d={...n};return r.default?r.default({text:i.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===i.value?l.h(o.emptyTag??"span",{...n,class:o.emptyClass},i.value):l.h(u,d,{default:()=>i.value}):l.h(u,d,i.value)}}}}const{componentName:Ch,create:Us,scope: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 d=a.substring(i+1,u);if(/^\d+$/.test(d)){let f=parseInt(d);if(s==0){let c=a.substring(0,i);n=n[c][f]}else n=n[f];s++}i=a.indexOf("[",u),u=i==-1?-1:a.indexOf("]",i)}s===0&&(n=n[a])}return n}function Zs(e,t){return{props:{...ar},setup(o,{attrs:n,slots:r}){return()=>{const a={default:s=>{const i=Xs(s.row,s.column.property);return r.default?l.h(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 d=a.substring(i+1,u);if(/^\d+$/.test(d)){let f=parseInt(d);if(s==0){let c=a.substring(0,i);n=n[c][f]}else n=n[f];s++}i=a.indexOf("[",u),u=i==-1?-1:a.indexOf("]",i)}s===0&&(n=n[a])}return n}function eu(e,t){return{props:{},setup(o,{attrs:n}){const r=l.inject(Qs,{});return()=>{const a=r.currentRow?r.currentRow.value:null,s={default:i=>{const u=ir(i.row,i.column.property),d=a?ir(a,i.column.property):null,f=u===d,c={class:{"el-radio__input":!0,"is-checked":f}},S=l.h("span",c,[l.h("span",{class:{"el-radio__inner":!0}})]),N={class:{"el-radio":!0,"is-checked":f}};return l.h("label",N,[S])}};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),d=l.computed(()=>a.value.length>0),f=l.computed(()=>s.value.length>0),c=v=>v.length>1,S=(v,Y)=>{Array.isArray(v)&&Array.isArray(Y)&&v.forEach(R=>{Y.some(X=>X.prop===R.prop?(R.label=X.label,!0):!1)});const j=[];r.value=v.map((R,X)=>(!(R.label===""||R.type)&&R.visible!==!1&&j.push(R.prop),{...R,sortIndex:X})),i.value.length+a.value.length+s.value.length===j.length?w.value=!0:j.length>0&&(C.value=!0),A.value=j},N=v=>v?v.type?v.type:v.label?v.prop:"":"",g=(v,Y)=>{if(v.length!==Y.length)return!1;const j=v.map(z=>N(z));for(let z of Y){const R=N(z);if(j.indexOf(R)===-1)return!1}return!0},h=v=>{if(!v){const Y=e.tableRef.getColumnSetting(),j=Y.srcColumnPropertyList;n=j.map((z,R)=>({...z,sortIndex:R})),v=Y.columnPropertyList,v&&v.length>0&&g(j,v)||(v=j)}S(v,n)},p=()=>{e.tableRef.setColumnSetting(r.value)},$=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),w=l.ref(!1),C=l.ref(!1),q=v=>{const Y=[];r.value.forEach(z=>{v&&!(z.label===""||z.type)&&Y.push(z.prop),z.visible=v}),w.value=!1,C.value=!1,i.value.length+a.value.length+s.value.length===Y.length?w.value=!0:Y.length>0&&(C.value=!0),A.value=Y,p()},B=()=>{h(n),p()},A=l.ref([]),L=v=>{r.value.forEach(j=>{if(j.label===""||j.type)return;const z=v.indexOf(j.prop)!==-1;j.visible=z}),w.value=!1,C.value=!1;const Y=i.value.length+a.value.length+s.value.length;v.length===Y?w.value=!0:v.length>0&&(C.value=!0),p()},M=()=>{h()};l.onMounted(()=>{setTimeout(()=>{h()},50)});const V={currentRow:null,index:null,roleType:null},k=v=>v?v.dataset&&v.dataset.role==="row"?v:v.tagName.toLowerCase()!=="body"?(v=v.parentElement,k(v)):null:null,b=v=>{const Y=v.currentTarget;Y&&Y.dataset&&(V.roleType=Y.dataset.roleType,V.index=Y.dataset.index)},P=v=>{V.currentRow&&(V.currentRow.classList.remove("is-dragover"),V.currentRow=null),V.index=null,V.roleType=null},_=v=>{const Y=v.currentTarget;v.relatedTarget;const j=k(Y);if(!j)return;const z=j.dataset&&j.dataset.roleType;V.roleType===z&&(v.preventDefault(),V.currentRow&&V.currentRow!==j&&V.currentRow.classList.remove("is-dragover"),j.classList.add("is-dragover"),V.currentRow=j)},D=v=>{v.preventDefault(),V.currentRow&&(V.currentRow.classList.remove("is-dragover"),V.currentRow=null)},F=v=>{const Y=v.currentTarget,j=k(Y);if(!j)return;const z=j.dataset&&j.dataset.roleType;if(V.roleType!==z)return;v.preventDefault();const R=Number(V.index),X=Number(j.dataset.index);if(R!==X){if(R<X){const H=r.value[R];r.value.splice(R,1),r.value.splice(X,0,H)}else{const H=r.value[R];r.value.splice(R,1),r.value.splice(X+1,0,H)}S(r.value,n),p()}},K=v=>{const Y=r.value[v];Y.fixed="left",p()},G=v=>{const Y=r.value[v];Y.fixed="right",p()},U=v=>{const Y=r.value[v];Y.fixed=void 0,p()},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:d,isShowRightFixedTitle:f,isDraggble:c,isCheckAll:w,isIndeterminate:C,handleCheckAllChange:q,handleReset:B,checkedValue:A,handleCheckChange:L,onShow:M,onDragStart:b,onDragEnd:P,onDragOver:_,onDragLeave:D,onDrop:F,toLeftFixed:K,toRightFixed:G,toUnFixed:U,checkboxLabelStyle:$,onMouseOverForOverflowText:(v,Y,j)=>{const z=v.currentTarget;if(z){const R=Math.floor(z.offsetWidth);if(Math.floor(le(z))>R){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"),d=l.resolveComponent("RefreshLeft"),f=l.resolveComponent("FoxIcon"),c=l.resolveComponent("Download"),S=l.resolveComponent("fox-checkbox"),N=l.resolveComponent("FoxCheckboxGroup"),g=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(g,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",cu,[l.createElementVNode("div",fu,[l.createVNode(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=h=>e.isCheckAll=h),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(i,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",du,[l.createVNode(N,{modelValue:e.checkedValue,"onUpdate:modelValue":t[28]||(t[28]=h=>e.checkedValue=h),onChange:e.handleCheckChange},{default:l.withCtx(()=>[e.leftFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",hu,[e.isShowLeftFixedTitle?(l.openBlock(),l.createElementBlock("div",gu,l.toDisplayString(e.leftFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.leftFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[5]||(t[5]=(...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.leftFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(s,{class:"checkbox-item",value:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:p=>e.onMouseOverForOverflowText(p,h.prop,h.label),onMouseleave:p=>e.onMouseLeaveForOverflowText(p,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,pu)]),_:2},1032,["value"]),l.createElementVNode("div",yu,[l.createVNode(f,{onClick:p=>e.toUnFixed(h.sortIndex),onMouseover:t[1]||(t[1]=p=>e.onMouseOverForTip(p,e.unFixedText)),onMouseleave:t[2]||(t[2]=p=>e.onMouseLeaveForTip(p))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:p=>e.toRightFixed(h.sortIndex),onMouseover:t[3]||(t[3]=p=>e.onMouseOverForTip(p,e.fixedRightText)),onMouseleave:t[4]||(t[4]=p=>e.onMouseLeaveForTip(p))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"])])],40,mu))),128))])):l.createCommentVNode("",!0),e.unFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",bu,[e.isShowNotFixedTitle?(l.openBlock(),l.createElementBlock("div",vu,l.toDisplayString(e.unFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.unFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[14]||(t[14]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[15]||(t[15]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[16]||(t[16]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[17]||(t[17]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[18]||(t[18]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.unFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(s,{class:"checkbox-item",value:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:p=>e.onMouseOverForOverflowText(p,h.prop,h.label),onMouseleave:p=>e.onMouseLeaveForOverflowText(p,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Su)]),_:2},1032,["value"]),l.createElementVNode("div",xu,[l.createVNode(f,{onClick:p=>e.toLeftFixed(h.sortIndex),onMouseover:t[10]||(t[10]=p=>e.onMouseOverForTip(p,e.fixedLeftText)),onMouseleave:t[11]||(t[11]=p=>e.onMouseLeaveForTip(p)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:p=>e.toRightFixed(h.sortIndex),onMouseover:t[12]||(t[12]=p=>e.onMouseOverForTip(p,e.fixedRightText)),onMouseleave:t[13]||(t[13]=p=>e.onMouseLeaveForTip(p))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"])])],40,wu))),128))])):l.createCommentVNode("",!0),e.rightFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Tu,[e.isShowRightFixedTitle?(l.openBlock(),l.createElementBlock("div",$u,l.toDisplayString(e.rightFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.rightFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[23]||(t[23]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[24]||(t[24]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[25]||(t[25]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[26]||(t[26]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[27]||(t[27]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.rightFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(S,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:p=>e.onMouseOverForOverflowText(p,h.prop,h.label),onMouseleave:p=>e.onMouseLeaveForOverflowText(p,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Eu)]),_:2},1032,["label"]),l.createElementVNode("div",Nu,[l.createVNode(f,{onClick:p=>e.toUnFixed(h.sortIndex),onMouseover:t[19]||(t[19]=p=>e.onMouseOverForTip(p,e.unFixedText)),onMouseleave:t[20]||(t[20]=p=>e.onMouseLeaveForTip(p))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:p=>e.toLeftFixed(h.sortIndex),onMouseover:t[21]||(t[21]=p=>e.onMouseOverForTip(p,e.fixedLeftText)),onMouseleave:t[22]||(t[22]=p=>e.onMouseLeaveForTip(p)),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 d=(n-1)*r,f=d+r;f>o.length&&(f=o.length);const c=o.slice(d,f);return{totalSize:o.length,page:c}}if(typeof o=="function")return await Reflect.apply(o,null,[n,r,a,s,i]);const u=Pe(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(We(a)&&l.isReactive(a)&&(a=l.toRaw(a)),await Reflect.apply(u,null,[o,n,r,a,s,i]))}};function Ou(){const e=l.getCurrentInstance();return new Iu(e.proxy)}class Vu{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const n=Pe(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=Pe(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=Pe(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function sr(){const e=l.getCurrentInstance();return new Vu(e.proxy)}const 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 d=a.substring(i+1,u);if(/^\d+$/.test(d)){let f=parseInt(d);if(s==0){let c=a.substring(0,i);n=n[c][f]}else n=n[f];s++}i=a.indexOf("[",u),u=i==-1?-1:a.indexOf("]",i)}s===0&&(n=n[a])}return n}function ol(e,t){return e.filter(n=>{for(let r in t){const a=t[r],s=Ru(n,r);if(a!==s)return!1}return!0})}function Au(e,t,o){return{inheritAttrs:!1,props:{...we,...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 A.value}}},n.prop??r.attrs.name),i=e,u=l.computed(()=>({[i]:!0})),d=l.computed(()=>({[`${i}__setting`]:!0})),f=l.computed(()=>({[`${i}__footer`]:!0,[`${i}__footer__${n.footerAlign}`]:!0})),c=l.computed(()=>({[`${i}__pagination`]:!0,[`${i}__pagination__${n.paginationAlign}`]:!0})),S=l.shallowRef({}),N=l.computed(()=>({...S.value,...n.params??{},...n.baseParams??{}})),g=l.ref(n.infiniteLoad===!0?0:n.pageIndex),h=l.ref(n.pageSize),p=ue(n.infiniteLoad);p||(l.watch(()=>n.pageIndex,Q=>{g.value=Q}),l.watch(()=>n.pageSize,Q=>{h.value=Q}),l.watch([g,h],([Q,re],[ae,ce])=>{re!==ce&&(g.value=1,Q=1),k(n.data,Q,re,N.value)}));const $=()=>Array.isArray(n.data)?!0:ue(n.autoLoad);$()&&l.watch([()=>n.data,N],async([Q,re],[ae,ce])=>{$()&&(Q!==ae&&(M=!0),!(!Array.isArray(Q)&&Ye(Q,ae)&&Ye(re,ce))&&(p?(g.value=0,q.value=!0,A.value=[],P()):g.value===1?k(Q,g.value,h.value,re):g.value=1))},{deep:!0});const w=Q=>{g.value=Q,s("page-index-change",Q)},C=Q=>{h.value=Q,s("page-size-change",Q)},q=l.ref(!0),B=l.ref(0),A=l.ref(),L=Ou();let M=!0;const V=Oe(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,Q=>ue(Q)),k=async(Q,re,ae,ce,xe)=>{M=!1;try{if(xe===!0){if(!q.value)return!1;const be=await L.load("table",Q,re,ae,ce,M,a.value);return B.value=be.totalSize,!be.page||!Array.isArray(be.page)||(Reflect.apply([].push,A.value,be.page),setTimeout(()=>{s("loaded-data")},250),(A.value?.length??0)>=B.value)||be.page.length<ae?(q.value=!1,!1):!0}else{const be=await L.load("table",Q,re,ae,ce,M,a.value);return B.value=be.totalSize,A.value=be.page??[],setTimeout(()=>{s("loaded-data")},250),!0}}catch(be){console.error("[FoxUI] Load Table Data Fail",be),B.value=0,A.value=[]}return!1};let b=!1;const P=async()=>{if(!b){if(b=!0,!q.value){b=!1;return}g.value+=1,await k(n.data,g.value,h.value,N.value,!0),b=!1}},_=(Q={},re=!1)=>new Promise(async ae=>{S.value={...l.toRaw(Q??{})},re||(g.value=n.pageIndex??1),p===!0?(g.value=0,A.value=[],q.value=!0,await P()):await k(n.data,g.value,h.value,N.value),ae()}),D=()=>{B.value=0,A.value=[],p===!0&&(g.value=0,q.value=!0)};let F=!1;const K=()=>{F||(F=!0,_())},G=l.ref(null);if(p===!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)}$()&&!V.value&&_();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)}},x=r.attrs.id??n.prop??r.attrs.name,I=sr(),E=l.ref([]);let v=[];const Y=()=>({srcColumnPropertyList:v.map(re=>({...re})),columnPropertyList:E.value}),j=Q=>{E.value=[...Q],R()},z=async()=>{const Q=await I.load(x);Q&&(E.value=Q)},R=()=>{I.save(x,E.value)},X=()=>{I.remove(x)};z();const H=Q=>Q?Q.type?Q.type:Q.label?Q.prop:"":"",J=()=>typeof r.slots.default=="function"?r.slots.default():[],te=(Q,re={})=>{for(let ae in re){const ce=re[ae];typeof ce!="function"&&(Q[ae]=ce)}},T=l.computed(()=>{const Q=J(),re=new Map;if(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)}),E.value.length===v.length){const ae=[];for(let ce of E.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(!A.value)return;const ae=ol(A.value,Q);ae.length!==0&&ae.forEach(ce=>{se?.value.toggleRowSelection(ce,re)})},toggleAllSelection:()=>{se?.value.toggleAllSelection()},toggleRowExpansion:(Q,re)=>{se?.value.toggleRowExpansion(Q,re)},toggleRowExpansionByProp:(Q,re)=>{if(!A.value)return;const ae=ol(A.value,Q);ae.length!==0&&ae.forEach(ce=>{se?.value.toggleRowExpansion(ce,re)})},setCurrentRow:Q=>{se?.value.setCurrentRow(Q)},setCurrentRowByProp:Q=>{if(!A.value)return;const re=ol(A.value,Q);re.length!==0&&se?.value.setCurrentRow(re[0])},getCurrentRow:()=>U.value,clearSort:()=>{se?.value.clearSort()},clearFilter:Q=>{se?.value.clearFilter(Q)},doLayout:()=>{se?.value.doLayout()},sort:(Q,re)=>{se?.value.sort(Q,re)},scrollTo:(Q,re)=>{se?.value.scrollTo(Q,re)},setScrollTop:Q=>{se?.value.setScrollTop(Q)},setScrollLeft:Q=>{se?.value.setScrollLeft(Q)},loadData:_,clearData:D,getData(){return A.value},getTotalSize(){return B.value},getPageIndex(){return g.value},getPageSize(){return h.value},getColumnSetting:Y,setColumnSetting:j,removeColumnSetting:X,setCellClassName:de}),()=>{const re={...He(r.attrs),onCurrentChange:Z,onRowClick:ee,onExpandChange:O,data:A.value,ref:se,class:u.value,"cell-class-name":oe(n.cellClassName)},ae={};if(r.slots.default&&(ae.default=()=>T.value),r.slots.append&&(ae.append=r.slots.append),r.slots.empty&&(ae.empty=r.slots.empty),p===!0){const je=[];if(q.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),!p){let je=null;if(typeof r.slots.pagination=="function")je=r.slots.pagination();else if(n.showPagination){const st={class:c.value,total:B.value,pageSize:h.value,"onUpdate:pageSize":C,pageSizes:n.pageSizes,currentPage:g.value,"onUpdate:currentPage":w,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,samll:n.paginationSmall,background:n.paginationBackground};je=l.h(y.ElPagination,st)}if(n.showSetting){const st=[];je&&st.push(je);const Bl=l.h(y.ElIcon,{class:d.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",V.value&&$()&&(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),d=l.ref(null),f=(L,M,V,k=!0)=>{const b=ju(n,L,M,V);if(b===null){if(d.value===null)return;d.value=null,u.value=null,k&&(i("update:modelValue",null),i("change",null));return}if(!fr(n,b,d.value)){u.value=L;const _=l.toRaw(b);d.value=_;let D=null;n.valueType==="text"?D=ht(n,_):n.valueType==="item"?D=_:D=Ot(n,_),k&&(i("update:modelValue",D),i("change",D))}},c=l.ref([]),S=Oe(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,L=>ue(L)),N=Pu(),g=async(L,M)=>{if(L){const V=await N.load("radio",L,M);if(V.length>0)if(typeof V[0]=="string"){let P=V.map(_=>zu(_));c.value=P}else c.value=V}};l.watch([()=>n.source,()=>n.params],async([L,M])=>{g(L,M)},{immediate:!S.value});let h=!1;const p=()=>{h||(h=!0,g(n.source,n.params))};l.watch([()=>c.value,()=>n.modelValue],([L,M])=>{f(M,n.valueType,L,!1),i("setValue",M)});const $=e,w=l.computed(()=>({[$]:!0,[`is-${n.direction}`]:!0})),C=L=>{f(L,"value",c.value,!0)};let q=ge(n,"hintText"),B=ge(n,"hintVisible");const A=(L,M)=>{const V=[];return L.forEach((k,b)=>{const P=Ot(n,k),_=ht(n,k);let D=_u(n,k);a.value===!0&&(D=a.value),s.value===!0&&(D=s.value);const F=Hu(n,k,b)??{},K=`${P}_${b}`,G={...F,key:K,value:P,size:n.size,border:ue(n.border)};D&&(G.disabled=D),n.itemType==="button"?V.push(l.h(y.ElRadioButton,G,{default:()=>[_]})):typeof M=="function"?V.push(l.h(y.ElRadio,G,{default:()=>M(k)})):V.push(l.h(y.ElRadio,G,{default:()=>[_]}))}),V};return()=>{const M={...He(r.attrs),class:w.value,disabled:a.value||s.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:C},V=[],k={};r.slots.options?k.default=r.slots.options:k.default=()=>A(c.value,r.slots.text);const b=l.h(y.ElRadioGroup,M,k);V.push(b);const P={default:()=>V};r.slots.default&&(P.label=r.slots.default),r.slots.fixedTip&&(P.fixedTip=r.slots.fixedTip);const D={...Ne(n,dr),hintText:q.value,hintVisible:B.value};return n.prop&&(D.prop=`${n.prop}_item`),S.value&&(D["appear-listen"]=!0,D.onAppear=p),l.h(o,D,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([]),d=l.ref([]),f=(L,M,V,k=!0)=>{const b=Ju(n,L,M,V);if(b===null){if(d.value===null||d.value.length===0)return;u.value=[],d.value=[],k&&(i("update:modelValue",[]),i("change",[]));return}let P=!0;if(b.length!==d.value.length)P=!1;else for(let _=0;_<b.length;_++){const D=b[_],F=d.value[_];if(!hr(n,D,F)){P=!1;break}}if(!P){d.value=b;let _=[],D=[];b.forEach(K=>{_.push(mt(n,K)),n.valueType==="text"?D.push(gt(n,K)):n.valueType==="item"?D.push(K):D.push(mt(n,K))}),u.value=_;const F=l.toRaw(D);k&&(i("update:modelValue",F),i("change",F))}},c=l.ref([]),S=Oe(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,L=>ue(L)),N=Zu(),g=async(L,M)=>{if(L){const V=await N.load("checkbox",L,M);if(V.length>0)if(typeof V[0]=="string"){let P=V.map(_=>Qu(_));c.value=P}else c.value=V}};l.watch([()=>n.source,()=>n.params],async([L,M])=>{g(L,M)},{immediate:!S.value});let h=!1;const p=()=>{h||(h=!0,g(n.source,n.params))};l.watch([()=>c.value,()=>n.modelValue],([L,M])=>{f(M,n.valueType,L,!1),i("setValue",M)});const $=e,w=l.computed(()=>({[$]:!0,[`is-${n.direction}`]:!0})),C=L=>{f(L,"value",c.value,!0)};let q=ge(n,"hintText"),B=ge(n,"hintVisible");const A=(L,M)=>{const V=[];return L.forEach((k,b)=>{const P=mt(n,k),_=gt(n,k);let D=Uu(n,k);a.value===!0&&(D=a.value),s.value===!0&&(D=s.value);const F=ec(n,k,b)??{},K=`${P}_${b}`,G={...F,key:K,class:n.itemClass,value:P,size:n.size,border:ue(n.border)};D&&(G.disabled=D),n.itemType==="button"?V.push(l.h(y.ElCheckboxButton,G,{default:()=>[_]})):typeof M=="function"?V.push(l.h(y.ElCheckbox,G,{default:()=>M(k)})):V.push(l.h(y.ElCheckbox,G,{default:()=>[_]}))}),V};return()=>{const M={...He(r.attrs),class:w.value,disabled:a.value||s.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:ve(n.max),min:ve(n.min),onChange:C},V=[],k={};r.slots.options?k.default=r.slots.options:k.default=()=>A(c.value,r.slots.text);const b=l.h(y.ElCheckboxGroup,M,k);V.push(b);const P={default:()=>V};r.slots.default&&(P.label=r.slots.default),r.slots.fixedTip&&(P.fixedTip=r.slots.fixedTip);const D={...Ne(n,gr),hintText:q.value,hintVisible:B.value};return n.prop&&(D.prop=`${n.prop}_item`),S.value&&(D["appear-listen"]=!0,D.onAppear=p),l.h(o,D,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",h=>ve(h),i),d=e,f=l.computed(()=>({[d]:!0})),c=h=>{i("update:modelValue",h),i("change",h)};let S=ge(n,"hintText"),N=l.ref(!1);const g=l.ref();return $e({}),()=>{const p={...He(r.attrs),ref:g,class:f.value,readonly:s.value||a.value,modelValue:u.value,onChange:c},$={},w=[],C=l.h(y.ElRate,p,$);w.push(C);const q={default:()=>w};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const A={...Ne(n,mr),hintText:S.value,hintVisible:N.value};return n.prop&&(A.prop=`${n.prop}_item`),l.h(o,A,q)}}}}const{componentName:ac,create:ic,scope:sc}=ie("rate-item"),sl=ic(rc(ac,sc,Se)),pr={modelValue:{type:[Boolean,String,Number],required:!1}};function uc(e,t,o){return{props:{...we,...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),d=e,f=l.computed(()=>({[d]:!0})),c=h=>{i("update:modelValue",h),i("change",h)};let S=ge(n,"hintText"),N=ge(n,"hintVisible");const g=l.ref();return $e({}),()=>{const p={...He(r.attrs),ref:g,class:f.value,readonly:s.value,disabled:a.value,modelValue:u.value,onChange:c},$={},w=[],C=l.h(y.ElSwitch,p,$);w.push(C);const q={default:()=>w};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const A={...Ne(n,pr),hintText:S.value,hintVisible:N.value};return n.prop&&(A.prop=`${n.prop}_item`),l.h(o,A,q)}}}}const{componentName:cc,create:fc,scope:dc}=ie("switch-item"),ul=fc(uc(cc,dc,Se)),yr={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function hc(e,t,o){return{props:{...we,...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),d=ge(n,"modelValue",null,u),f=e,c=l.computed(()=>({[f]:!0})),S=B=>{u("update:modelValue",B),u("change",B)};let N=ge(n,"hintText"),g=l.ref(!1);const h=B=>{let L=B.target.value;i.value=!0,me(N.value)||(g.value=!0),u("focus",L,B)},p=B=>{setTimeout(()=>{g.value&&(g.value=!1),i.value=!1},0);let L=B.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),w.value||u("blur",L,B)},$=()=>{u("clear","")},w=l.ref(!1),C=B=>{w.value=B,u("visible-change",B),B||u("selected")},q=l.ref();return $e({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()}}),()=>{const A={...He(r.attrs),ref:q,class:c.value,disabled:a.value||s.value,modelValue:d.value,"onUpdate:modelValue":S,onClear:$,onFocus:h,onBlur:p,onVisibleChange:C},L={};r.slots.option&&(L.default=r.slots.option);const M=[],V=l.h(y.ElTreeSelect,A,L);M.push(V);const k={default:()=>M};r.slots.default&&(k.label=r.slots.default),r.slots.fixedTip&&(k.fixedTip=r.slots.fixedTip);const P={...Ne(n,yr),hintText:N.value,hintVisible:g.value};return n.prop&&(P.prop=`${n.prop}_item`),l.h(o,P,k)}}}}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=[],x=[...a.value];a.value=x.map((E,v)=>(E.visible!==!1&&O.push(E.prop),{...E,sortIndex:v})),a.value.length===O.length?h.value=!0:O.length>0&&(p.value=!0),C.value=O},d=O=>{let x=null;if(typeof O=="string")x=document.querySelectorAll(`.fox-group[prop="${O}"] > div > .fox-item[prop]`);else if(O&&typeof O=="object"){const E=O.$el??O;typeof E.querySelectorAll=="function"&&(x=E.querySelectorAll(".fox-item[prop]"))}if(!x)return[];const I=[];return x.forEach(E=>{const v=E.querySelector(".label--string");let Y="";v&&(Y=v.textContent??"");const j=E.getAttribute("prop")??"",R=window.getComputedStyle(E,null).getPropertyValue("display");I.push({label:Y,prop:j,sortIndex:0,visible:R!=="none"})}),I},f=()=>{if(!r){const O=d(e.groupRef??e.groupProp);if(O.length===0)return!1;r=O}return!0},c=async(O=!1)=>{const x=await s.load(e.groupProp),I=E=>{if(!E||!r)return;const v=r.map(Y=>({...Y}));Array.isArray(x)&&x.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&&N(!1)};r?I(!0):Ht(f,e.initDelay,5,50,!1,I)},S=()=>{const O=r??[];a.value=O.map(x=>({...x})),u(),N()},N=(O=!0)=>{O&&s.save(e.groupProp,a.value);const x=a.value.map(I=>({...I}));t("change",x)},g=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),h=l.ref(!1),p=l.ref(!1),$=O=>{const x=[];a.value.forEach(E=>{O&&x.push(E.prop),E.visible=O}),h.value=!1,p.value=!1,a.value.length===x.length?h.value=!0:x.length>0&&(p.value=!0),C.value=x,N()},w=()=>{S()},C=l.ref([]),q=O=>{a.value.forEach(I=>{const E=O.indexOf(I.prop)!==-1;I.visible=E}),h.value=!1,p.value=!1;const x=a.value.length;O.length===x?h.value=!0:O.length>0&&(p.value=!0),N()},B=()=>{c()};l.onMounted(()=>{c(!0)});const A={currentRow:null,index:null},L=O=>O?O.dataset&&O.dataset.role==="row"?O:O.tagName.toLowerCase()!=="body"?(O=O.parentElement,L(O)):null:null,M=O=>{const x=O.currentTarget;x&&x.dataset&&(A.index=x.dataset.index)},V=O=>{A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null),A.index=null},k=O=>{const x=O.currentTarget;O.relatedTarget;const I=L(x);I&&(O.preventDefault(),A.currentRow&&A.currentRow!==I&&A.currentRow.classList.remove("is-dragover"),I.classList.add("is-dragover"),A.currentRow=I)},b=O=>{O.preventDefault(),A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null)},P=O=>{const x=O.currentTarget,I=L(x);if(!I)return;O.preventDefault();const E=Number(A.index),v=Number(I.dataset.index);if(E!==v){if(E<v){const Y=a.value[E];a.value.splice(E,1),a.value.splice(v,0,Y)}else{const Y=a.value[E];a.value.splice(E,1),a.value.splice(v+1,0,Y)}u(),N()}},_=O=>{const x=a.value[O];a.value.splice(O,1),a.value.splice(0,0,x),u(),N()},D=O=>{const x=a.value[O];a.value.splice(O,1),a.value.push(x),u(),N()};n({refresh:()=>{r=null,c(!1)}});const F=new Map;let K=null;function G(O){const x=document.createRange();return x.setStart(O,0),x.setEnd(O,O.childNodes.length),x.getBoundingClientRect().width}return{attrs:o,itemPropertyList:a,isDraggble:i,isCheckAll:h,isIndeterminate:p,handleCheckAllChange:$,handleReset:w,checkedValue:C,handleCheckChange:q,onShow:B,onDragStart:M,onDragEnd:V,onDragOver:k,onDragLeave:b,onDrop:P,checkboxLabelStyle:g,toTop:_,toBottom:D,onMouseOverForOverflowText:(O,x,I)=>{const E=O.currentTarget;if(E){const v=Math.floor(E.offsetWidth);if(Math.floor(G(E))>v){let j=F.get(x);if(j){if(j===K)return;De.hide(j)}j=De.show(E,I,{type:"text",placement:"top",closeOnClick:!1}),F.set(x,j),K=j}}},onMouseLeaveForOverflowText:(O,x)=>{const I=F.get(x);I&&(De.hide(I),I===K&&(K=null))},onMouseOverForTip:(O,x)=>{const I=O.currentTarget;I&&(K&&De.hide(K),K=De.show(I,x,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:O=>{K&&(De.hide(K),K=null)}}}}),Cc={class:"fox-group-setting"},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"),d=l.resolveComponent("Download"),f=l.resolveComponent("FoxIcon"),c=l.resolveComponent("FoxCheckboxGroup"),S=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(S,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",Cc,[l.createElementVNode("div",Ec,[l.createVNode(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=N=>e.isCheckAll=N),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]=N=>e.checkedValue=N),onChange:e.handleCheckChange},{default:l.withCtx(()=>[l.createElementVNode("div",kc,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.itemPropertyList,N=>(l.openBlock(),l.createElementBlock("div",{key:N.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":N.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:t[5]||(t[5]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[6]||(t[6]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[7]||(t[7]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[8]||(t[8]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[9]||(t[9]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.itemPropertyList)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(s,{class:"checkbox-item",label:N.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,N.prop,N.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,N.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(N.label),45,Oc)]),_:2},1032,["label"]),l.createElementVNode("div",Vc,[l.createVNode(f,{onClick:g=>e.toTop(N.sortIndex),onMouseover:t[1]||(t[1]=g=>e.onMouseOverForTip(g,e.toTopText)),onMouseleave:t[2]||(t[2]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:g=>e.toBottom(N.sortIndex),onMouseover:t[3]||(t[3]=g=>e.onMouseOverForTip(g,e.toBottomText)),onMouseleave:t[4]||(t[4]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Ic))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const fl=_e($c,[["render",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,d)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(s.value),style:l.normalizeStyle(i.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Ac,14,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,d)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(s.value),style:l.normalizeStyle(i.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},_c,14,Mc))}}),qc=["aria-labelledby"],Pc=l.createElementVNode("path",{d:"M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024z",fill:"currentColor","fill-opacity":"0.9"},null,-1),jc=[Pc],zc=l.defineComponent({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},s=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),i=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,d)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(s.value),style:l.normalizeStyle(i.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},jc,14,qc))}}),Hc=["aria-labelledby"],Kc=l.createElementVNode("path",{d:"M159.289 500.622c62.578 0 125.155 17.067 221.867 102.4 8.533 5.69 19.91 5.69 25.6 0 48.355-54.044 238.933-261.689 455.11-329.955 0 0 28.445-5.69 42.667 19.91 8.534 17.067 19.911 34.134-5.689 54.045-22.755 17.067-264.533 179.2-440.888 440.89l-2.845 2.844c-11.378 8.533-68.267 51.2-119.467-14.223-56.888-71.11-85.333-139.377-196.266-196.266-2.845 0-2.845-2.845-5.69-5.69-11.377-11.377-54.044-73.955 25.6-73.955z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Wc=[Kc],Yc=l.defineComponent({__name:"Checklist",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},s=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),i=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,d)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(s.value),style:l.normalizeStyle(i.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Wc,14,Hc))}}),Gc=["aria-labelledby"],Uc=l.createElementVNode("path",{d:"m387.547 980.846 305.006-397.532a117.102 117.102 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.538 27.538 0 0 1 0 33.572L316.489 926.318a44.8 44.8 0 0 0 71.058 54.564",fill:"currentColor","fill-opacity":"0.9"},null,-1),Xc=[Uc],Zc=l.defineComponent({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},s=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),i=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,d)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(s.value),style:l.normalizeStyle(i.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Xc,14,Gc))}}),Jc={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:Object},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},br=(e,t)=>t[e.textKey],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}),d=l.computed(()=>({})),f=l.computed(()=>{if(!r.gutter)return 0;const O=he(r.gutter);return O<=0?0:O}),c=l.ref(r.modelValue);l.watch(()=>r.modelValue,O=>{c.value!==O&&(c.value=O,G(!1))});const S=l.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),N=l.computed(()=>{const O={};return h.value||(O.display="none"),O}),g=l.ref(),h=l.ref(!1),p=()=>{const O=!h.value;$(O)},$=O=>{const x=O;x?(h.value=x,setTimeout(()=>{S.value["fox-tabs-bar__popup--show"]=!0,S.value["fox-tabs-bar__popup--hide"]=!1},0)):(S.value["fox-tabs-bar__popup--show"]=!1,S.value["fox-tabs-bar__popup--hide"]=!0,g.value?g.value.addEventListener("transitionend",()=>{h.value=!1},{once:!0}):setTimeout(()=>{h.value=!1},0))},w=l.ref(),C=l.ref([]),q=(O,x)=>{C.value[x]=O},B=O=>x=>{q(x,O)},A=(O,x)=>{const I=w.value,E=C.value;if(!I||!E||!E[O])return;const v=E[O];let Y=0;r.direction==="vertical"?Y=v.offsetTop-(I.offsetHeight-v.offsetHeight)/2:Y=v.offsetLeft-(I.offsetWidth-v.offsetWidth)/2,L(I,Y,x?0:.3,r.direction)},L=(O,x,I,E)=>{let v=0;const Y=E==="horizontal"?O.scrollLeft:O.scrollTop,j=I===0?1:Math.round(I*1e3/16);function z(){E==="horizontal"?O.scrollLeft+=(x-Y)/j:O.scrollTop+=(x-Y)/j,++v<j&&Sn(z)}z()},M=(O,x)=>{const I=Vt(r,O),E={};return E[`${e}__titles-item`]=!0,E.disabled=vr(r,O),E.active=I===c.value,r.shape&&(E[`${r.shape}`]=!0),r.ellipsis&&(E.ellipsis=!0),x&&(x.class&&(E[`${x.class}`]=!0),x.disabled===!0&&(E.disabled=x.disabled)),E},V=(O,x)=>{const I={};if(f.value>0){const E=Math.abs(f.value/2);r.direction==="vertical"?(I["margin-top"]=`${E}px`,I["margin-bottom"]=`${E}px`):(I["margin-left"]=`${E}px`,I["margin-right"]=`${E}px`)}return x&&x.style&&Object.assign(I,x.style),I},k=(O,x)=>`${Vt(r,O)??x}`,b=(O,x)=>{const I=Vt(r,O),E={};E[`${e}__popup-item`]=!0,E.disabled=vr(r,O),E.active=I===c.value,r.shape&&(E[`${r.shape}`]=!0);const v=wr(r,O,x);return v&&v.disabled===!0&&(E.disabled=v.disabled),E},P=l.computed(()=>(r.data??[]).filter(x=>Qc(r,x)!==!1)),_=(O,x)=>{const I=Vt(r,O);if(c.value==I)return;const E=()=>{c.value=I,r.scroll&&A(x,!1),s("update:modelValue",I),s("change",O,x)};if(typeof r.beforeChange=="function"){const v=r.beforeChange(O,x);Xl(v)?v.then(Y=>{Y!==!1&&E()}).catch(()=>{E()}):v!==!1&&E()}else E()},D=(O,x)=>function(){_(O,x)},F=(O,x)=>{_(O,x),$(!1)},K=(O,x)=>function(){F(O,x)},G=O=>{if(!Array.isArray(r.data)||!r.scroll)return;const x=r.data.findIndex(I=>Vt(r,I)===c.value);x!==-1&&A(x,O)};l.watch(()=>r.data,()=>{setTimeout(G,0)}),l.onMounted(()=>{G(!0)});const U=(O,x)=>{if(a.item)return a.item({item:O,index:x});const I=wr(r,O,x),E=[];if(a.text){const z=a.text({item:O,index:x});E.push(z)}else{const z=[];if(I?.doit===!0||ef(r,O)){const J={class:[`${e}__titles-item-tip`,"doit"]},te=l.h("view",J);z.push(te)}const R=I?.num??tf(r,O);if(R){let J="";const te=ve(R);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);E.push(H)}const v={class:`${e}__titles-item-line`},Y=l.h("view",v);E.push(Y);const j={ref:B(x),class:M(O,I),style:V(O,I),key:k(O,x),onClick:D(O,x)};return l.h("view",j,E)},Z=()=>{const O=a.default?a.default():[];if(O.length===0)for(let I=0;I<P.value.length;I++){const E=P.value[I],v=U(E,I);O.push(v)}const x={ref:w,class:u.value,style:d.value};return l.h("view",x,O)},ee=()=>{let O=null;a.navigation?O=a.navigation():O=l.h(o);const x={class:`${e}__navigation`,onClick:p};return l.h("view",x,[O])},le=()=>{const O=[];for(let I=0;I<P.value.length;I++){const E=P.value[I];let v=null;a.popupItem?v=a.popupItem({item:E,index:I}):v=br(r,E);const Y={class:b(E,I),key:k(E,I),onClick:K(E,I)},j=l.h("view",Y,[v]);O.push(j)}const x={class:S.value,style:N.value};return l.h("view",x,O)};return()=>{const O=[],x=Z();if(O.push(x),r.showQuickNavigation){const E=ee();O.push(E);const v=le();O.push(v)}const I={class:i.value};return l.h("view",I,O)}}}}const{create:lf,componentName:of,scope:rf}=ie("tabs-bar"),hl=lf(nf(of,rf,Lc,!1)),Sr=Symbol("TabsStatesKey"),af={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function sf(e,t,o=!1){return{props:{...af},emits:["update:modelValue","change"],setup(n,{emit:r,slots:a}){const s=l.shallowRef([]),i={current:l.ref(n.modelValue??""),direction:l.ref(n.direction),tabWidth:l.ref(-1),tabHeight:l.ref(-1),add:h=>{const p={name:h};i.current.value===h&&(p.loaded=!0),s.value.push(p),l.triggerRef(s)},remove:h=>{const p=s.value.findIndex($=>$.name===h);p!==-1&&s.value.splice(p,1)},isLoaded:h=>{if(!n.lazy)return!0;const p=s.value.findIndex($=>$.name===h);return p!==-1?i.current.value?s.value[p].loaded??!1:p===0:!1}};l.provide(Sr,i);const u=h=>{const p=s.value.findIndex($=>$.name===h);p!==-1&&(s.value[p].loaded=!0,l.triggerRef(s))};l.watch([()=>n.modelValue,()=>n.direction],([h,p])=>{i.current.value!==h&&(i.current.value=h??"",u(h??"")),i.direction.value!==p&&(i.direction.value=p)});const d=l.ref(null),f=l.ref(null),c=l.computed(()=>({[e]:!0,[`${n.direction}`]:!0}));let S=!0;const N=l.computed(()=>{const h={},p=s.value.length;if(p<=0)return h;const $=s.value.findIndex(w=>w.name===i.current.value);return i.direction.value==="vertical"?i.tabHeight.value>0&&(h.height=`${p*i.tabHeight.value}px`,$!==-1&&(h.transform=`translate(0, -${$*i.tabHeight.value}px)`)):i.tabWidth.value>0&&(h.width=`${p*i.tabWidth.value}px`,$!==-1&&(h.transform=`translate(-${$*i.tabWidth.value}px, 0)`)),S&&(S=!1,h.transition="transform 0s ease"),h});let g=null;return l.onMounted(()=>{if(!d.value)return;const h=()=>{const p=Xt(d.value);i.tabWidth.value=p.width,i.tabHeight.value=p.height};window.ResizeObserver&&(g=new window.ResizeObserver(h),g.observe(d.value)),h()}),l.onBeforeUnmount(()=>{g&&(g.disconnect(),g=null)}),()=>{const h={class:`${e}__panes`,style:N.value,ref:f},p=l.h("view",h,[a?.default?.()]),$={class:c.value,ref:d};return l.h("view",$,[p])}}}}const{create:uf,componentName:cf,scope:ff}=ie("tabs-container"),gl=uf(sf(cf,ff,!1)),df={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function hf(e,t,o){return{props:{...df},setup(n,{emit:r,slots:a}){const s=l.inject(Sr);l.onMounted(()=>{s.add(n.paneKey)}),l.onBeforeUnmount(()=>{s.remove(n.paneKey)});const i=l.computed(()=>{const d={};return s.direction.value==="vertical"&&s.tabHeight.value>0?d.height=`${s.tabHeight.value}px`:s.tabWidth.value>0&&(d.width=`${s.tabWidth.value}px`),d}),u=l.computed(()=>n.loaded!=null?ue(n.loaded):s.isLoaded(n.paneKey));return()=>{let d=[];if(u.value)d=a?.default?.()??[];else if(a.empty)d=a.empty();else{const c={class:`${e}__empty-icon`},S=n.emptyIcon??o,N=l.h(S,c),g={class:`${e}__empty-text`},h=n.emptyText??"Loading",p=l.h("view",g,[h]),$={class:`${e}__empty`},w=l.h("view",$,[N,p]);d.push(w)}const f={class:`${e}`,style:i.value};return l.h("view",f,d)}}}}const{create:gf,componentName:mf,scope:pf}=ie("tabs-pane"),ml=gf(hf(mf,pf,dl)),yf={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[String]},iconSize:{type:[String,Number]},markIcon:{type:[String]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function bf(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function xr(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Tr(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function vf(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function pl(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function $r(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function Cr(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function yl(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}class wf{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await Reflect.apply(o,null,[n]);const r=Pe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(We(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await Reflect.apply(r,null,[o,n]))}}function Sf(){const e=l.getCurrentInstance();return new wf(e.proxy)}function xf(e,t,o,n){return{props:{...yf},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:s}){const i=e,u=Sf(),d=l.ref([]),f=l.computed(()=>d.value.filter(x=>vf(r,x)!==!1)),c=l.ref(-1),S=()=>{const x=r.modelValue,I=f.value.findIndex(E=>xr(r,E)===x);c.value!==I&&(c.value=I,r.scroll&&le(I,!1))};l.watch([()=>r.modelValue,f],()=>{S()});const N=x=>c.value===x,g=x=>{if(x<0&&x>=f.value.length)return!1;const I=f.value[x],v=(yl(r,I,x)??{}).status??pl(r,I);return N(x)||v},h=l.computed(()=>{const x={[i]:!0};return r.mode?x[`is-${r.mode}`]=!0:r.direction&&(x[`is-${r.direction}`]=!0),r.scroll&&(x["is-scroll"]=!0),x}),p=l.computed(()=>({})),$=(x,I,E,v,Y)=>{const j={[`${i}__step`]:!0};return Y&&(j[`${Y}`]=!0),j[`${w.value}`]=!0,v&&(j["is-doit"]=!0),x===c.value?j["is-active"]=!0:I==="done"?j["is-done"]=!0:I==="error"?j["is-error"]=!0:I==="half"?j["is-half"]=!0:E?j["is-disabled"]=!0:j["is-normal"]=!0,j},w=l.computed(()=>{if(r.mode==="simple")return"start";let x=r.align;return x||(r.direction==="vertical"?x="start":x="center"),x}),C=(x,I={})=>{const E={...I};return w.value==="start"&&x===f.value.length-1?E.flex="0 0 auto":r.step?r.direction==="vertical"?E.height=r.step:E.width=r.step:E.flex="1 1 100%",E},q=(x,I)=>{let E={};if(I<f.value.length-1){const v=I+1;g(I)&&g(v)?r.direction==="vertical"?E.height="100%":E.width="100%":E.opacity="0"}return E},B=x=>f.value.length-1===x,A=(x,I)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&I>c.value||c.value===I)return;const E=c.value,v=I;c.value=I,r.scroll&&le(I,!1);const Y=xr(r,x);s("update:modelValue",Y);const j={fromIndex:E,currentIndex:v,item:x,items:f.value,clickNavigatePolicy:r.clickNavigatePolicy};s("change",Y,j)},L=l.ref(!0),M=async(x,I)=>{try{const E=await u.load("stesbar",x,I);Array.isArray(E)&&(d.value=E),L.value=!1}catch(E){console.error("[FoxUI] Load StepsBar Data Fail",E),d.value=[]}setTimeout(()=>{s("loaded-data")},250)};l.watch([()=>r.data,()=>r.params],async([x,I])=>{x&&M(x,I)},{immediate:!0});const V=(x,I,E,v,Y)=>{let j=null;if(a.icon)j=a.icon({item:x,index:I,status:v});else if(v==="done"){const R={};r.iconSize&&(R.width=r.iconSize,R.height=r.iconSize);const X=r.icon??o;j=l.h(X,R)}else{const R=E??`${I+1}`;j=l.h("span",{},[R])}const z={class:"fox-steps-bar__icon",onClick:()=>{Y||A(x,I)}};return l.h("view",z,[j])},k=(x,I,E)=>{const v=l.h("i",{class:"fox-steps-bar__line-inner",style:q(x,I)});return l.h("view",{class:"fox-steps-bar__line"},[v])},b=()=>{let x=null;if(a.markIcon)x=a.markIcon();else{const E={};r.iconSize&&(E.width=r.markIconSize,E.height=r.markIconSize);const v=r.markIcon??n;x=l.h(v,E)}return l.h("view",{class:"fox-steps-bar__mark"},[x])},P=(x,I,E,v,Y)=>{const j=[];if(!B(I)){const X=k(x,I);j.push(X)}const z=V(x,I,E,v,Y);j.push(z);const R={class:"fox-steps-bar__head"};return l.h("view",R,j)},_=(x,I,E,v)=>{let Y=null;a.main?Y=a.main({item:x,index:I,status:E}):Y=bf(r,x);const j={class:"fox-steps-bar__main",onClick:()=>{v||A(x,I)}};return l.h("view",j,[Y])},D=(x,I,E)=>{let v=null;if(a.sub){v=a.sub({item:x,index:I,status:E});const Y={class:"fox-steps-bar__sub"};return l.h("view",Y,[v])}return null},F=(x,I)=>{const E=yl(r,x,I)??{},v=E.status??pl(r,x);let Y=Tr(r,x);E.disabled===!0&&(Y=!0),r.disabled===!0&&(Y=!0);const j=E.label??Cr(r,x),z=[],R=V(x,I,j,v,Y);R&&z.push(R);const X=_(x,I,v,Y);if(X&&z.push(X),!B(I)){const ne=k(x,I);ne&&z.push(ne)}const H=l.h("view",{class:"fox-steps-bar__head"},z),J=E.class,te=E.style??{};let T=$r(r,x);E.doit===!0&&(T=!0);const W={ref:ee(I),class:$(I,v,Y,T,J),style:C(I,te)};return l.h("view",W,[H])},K=(x,I)=>{const E=yl(r,x,I)??{},v=E.status??pl(r,x);let Y=Tr(r,x);E.disabled===!0&&(Y=!0),r.disabled===!0&&(Y=!0);const j=E.label??Cr(r,x),z=[],R=r.layout;for(let T of R)if(T==="head"){const W=P(x,I,j,v,Y);z.push(W)}else if(T==="main"){const W=_(x,I,v,Y);z.push(W)}else if(T==="sub"){const W=D(x,I,v);z.push(W)}else if(T==="mark"){const W=b();z.push(W)}const X=E.class,H=E.style??{};let J=$r(r,x);E.doit===!0&&(J=!0);const te={ref:ee(I),class:$(I,v,Y,J,X),style:C(I,H)};return l.h("view",te,z)},G=l.ref(),U=l.ref([]),Z=(x,I)=>{U.value[I]=x},ee=x=>I=>{Z(I,x)},le=(x,I)=>{const E=G.value,v=U.value;if(!E||!v||!v[x])return;const Y=v[x];let j=0;r.direction==="vertical"?j=Y.offsetTop-(E.offsetHeight-Y.offsetHeight)/2:j=Y.offsetLeft-(E.offsetWidth-Y.offsetWidth)/2,O(E,j,I?0:.3,r.direction)},O=(x,I,E,v)=>{let Y=0;const j=v==="horizontal"?x.scrollLeft:x.scrollTop,z=E===0?1:Math.round(E*1e3/16);function R(){v==="horizontal"?x.scrollLeft+=(I-j)/z:x.scrollTop+=(I-j)/z,++Y<z&&Sn(R)}R()};return()=>{const x=[];if(r.mode==="simple")for(let E=0;E<f.value.length;E++){const v=f.value[E],Y=F(v,E);x.push(Y)}else for(let E=0;E<f.value.length;E++){const v=f.value[E],Y=K(v,E);x.push(Y)}const I={ref:G,class:h.value,style:p.value};return l.h("view",I,x)}}}}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 d={...n.attrs,title:o.title,draggable:o.draggable,modelValue:s.value,"onUpdate:modelValue":i,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":a},f={};if(typeof n.slots.default=="function"){const c=n.slots.default();f.default=()=>c}return l.h(y.ElDialog,d,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")},d=()=>{n("update:visible",!1),n("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},f=h=>{n("click-pop",h)},c=h=>{h.stopPropagation(),n("click-close-icon",h),n("update:visible",!1)},S=h=>{n("click-overlay",h),o.closeOnClickOverlay&&n("update:visible",!1)},N=h=>{n("opend",h)},g=h=>{n("closed",h)};return l.watch(()=>o.visible,h=>{o.visible?u():d()}),l.watch(()=>o.closeable,h=>{r.closed=h}),{...l.toRefs(r),popStyle:s,transitionName:i,classes:a,onClick:f,onClickCloseIcon:c,onClickOverlay:S,onOpened:N,onClosed:g}}}),{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,N=>{N&&s()});const u=l.computed(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const N=he(e.iconSize);return l.h(e.icon,{width:N,height:N,color:e.iconColor})},f=l.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":u.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),c=l.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:n,hide:a,clickCover:i,renderIcon:d,hasIcon:u,toastBodyClass:f,toastIconWrapperClass:c,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Hf={key:1,class:"fox-toast-title"},Kf=["innerHTML"];function Wf(e,t,o,n,r,a){return l.openBlock(),l.createBlock(l.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.toastBodyClass),style:l.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:t[0]||(t[0]=(...s)=>e.clickCover&&e.clickCover(...s))},[l.createElementVNode("view",{class:"fox-toast-inner",style:l.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(e.toastIconWrapperClass)},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.renderIcon())))],2)):l.createCommentVNode("",!0),e.title?(l.openBlock(),l.createElementBlock("div",Hf,l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Kf)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Sl=_e(zf,[["render",Wf]]),Yf={modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},Gf=(e,t,o)=>({props:{...Yf},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(n,{slots:r}){const{emitEvent:a}=vo(),{toLocaleRefs:s}=Le.useFoxI18n(t),i=s(n,["placeholder"]),u=l.reactive({active:!1}),d=l.computed(()=>({background:n.background})),f=l.computed(()=>({background:n.inputBackground})),c=V=>{let b=V.target.value;n.maxLength&&b.length>Number(n.maxLength)&&(b=b.slice(0,Number(n.maxLength))),a("update:modelValue",b,V),a("change",b,V)},S=l.ref({}),N=V=>{let b=V.target.value;u.active=!0,S.value=n.focusStyle,a("focus",b,V)},g=V=>{setTimeout(()=>{u.active=!1},0);let b=V.target.value;n.maxLength&&b.length>Number(n.maxLength)&&(b=b.slice(0,Number(n.maxLength))),S.value={},a("blur",b,V)},h=V=>{a("update:modelValue","",V),a("change","",V),a("clear","")},p=l.computed(()=>String(n.modelValue).length>0),$=l.computed(()=>{const V={};return p.value||(V.display="none"),V}),w=()=>{a("search",n.modelValue)},C=V=>{a("keyup-input",V),V.key.toLocaleUpperCase()==="ENTER"&&w()},q=V=>{a("click-input",V)},B=V=>{a("click-left-icon",n.modelValue,V)},A=l.computed(()=>({textAlign:n.inputAlign})),L=l.ref(null);l.onMounted(()=>{n.autofocus&&L.value.focus()});const M=()=>{const V=[];if(r.leftin){const D={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:B},F=l.h("view",D,[r.leftin()]);V.push(F)}const k={ref:L,class:[`${e}__input-inner`],style:A.value,type:n.inputType,maxlengt:n.maxLength,placeholder:i.placeholder.value,value:n.modelValue,disabled:n.disabled,readonly:n.readonly,onClick:q,onInput:c,onFocus:N,onBlur:g,onkeyup:C},b=l.h("input",k);V.push(b);const P=[];if(n.clearable){const D={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:$.value,onClick:h},F=r?.clear?.()??n.clearIcon??o,K=l.h("view",D,[l.h(F)]);P.push(K)}if(r.rightin){const D={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},F=l.h("view",D,[r.rightin()]);P.push(F)}if(P.length>0){const D={class:`${e}__input-inner-right`},F=l.h("view",D,P);V.push(F)}const _={class:[`${e}__search-input`,`${n.shape}`],style:{...f.value,...S.value}};return l.h("view",_,V)};return()=>{const V=[];if(n.label){const P={class:`${e}__search-label`},_=l.h("span",P,[n.label]);V.push(_)}if(r.leftout){const P={class:[`${e}__search-icon`,`${e}__left-search-icon`]},_=l.h("view",P,[r.leftout()]);V.push(_)}const k=M();if(V.push(k),r.rightout){const P={class:[`${e}__search-icon`,`${e}__right-search-icon`]},_=l.h("view",P,[r.rightout()]);V.push(_)}const b={class:`${e}`,style:d.value};return l.h("view",b,V)}}}),{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(),d=Vr(u),f=l.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=l.computed(()=>({[e]:!0})),S=w=>w?w.offsetTop+S(w.offsetParent):0,N=()=>{let w=0,C=0,q="down";if(d.value==window){const B=Fr();u.value&&(w=S(u.value)+u.value.offsetHeight-B-window.innerHeight),C=B}else{const{scrollHeight:B,clientHeight:A,scrollTop:L}=d.value;w=B-A-L,C=L}return f.beforeScrollTop>C?q="up":q="down",f.beforeScrollTop=C,r("scroll-change",C),w<=n.threshold&&q=="down"},g=()=>{ql(()=>{if(!N()||!n.hasMore||f.isInfiniting)return!1;f.isInfiniting=!0,r("update:modelValue",!0),l.nextTick(()=>r("load-more"))})},h=()=>{d.value&&d.value.addEventListener("scroll",g,n.useCapture)},p=()=>{d.value&&d.value.removeEventListener("scroll",g,n.useCapture)};l.onMounted(()=>{h(),n.immediate&&g()}),l.onUnmounted(()=>{p()});const $=l.ref(!1);return l.onActivated(()=>{$.value&&($.value=!1,h())}),l.onDeactivated(()=>{$.value=!0,p()}),l.watch(()=>n.modelValue,w=>{w||(f.isInfiniting=!1)}),()=>{const w={class:"fox-infinite__container"},C=l.h("view",w,[a?.default?.()]),q=[];if(f.isInfiniting){let M=a?.loading?.()??null;if(!M){let b=a?.loadingIcon?.()??null;if(!b){const D={class:["fox-infinite__bottom-box__img"]};b=l.h(o,D)}const P={class:"fox-infinite__bottom-box__text"},_=l.h("view",P,[i.loadText.value]);M=[b,_]}const V={class:"fox-infinite__bottom-box"},k=l.h("view",V,M);q.push(k)}else if(!n.hasMore){let M=a?.finished?.()??null;if(!M){const V={class:"fox-infinite__bottom-tips"};M=l.h("view",V,[i.loadMoreText.value]),q.push(M)}}const B={class:"fox-infinite__bottom"},A=l.h("view",B,q),L={class:c.value,ref:u};return l.h("view",L,[C,A])}}}}const{componentName:ld,create:od,scope:rd}=ie("infinite-loading"),Tl=od(nd(ld,rd,dl)),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 d=s.touches[0];e.deltaX=d.clientX-e.startX,e.deltaY=d.clientY-e.startY,e.moveX=d.clientX,e.moveY=d.clientY}else{const u=s;e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Rr(e.offsetX,e.offsetY))},start:s=>{if(n(),s.touches){const d=s.touches[0];e.startX=d.clientX,e.startY=d.clientY}else{const u=s;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:o,state:e}}function ad(){const e=l.ref(0),t=l.ref(0),o=l.ref(0),n=l.ref(0),r=l.ref(0),a=l.ref(0),s=l.ref(0),i=l.ref(0),u=l.ref(0),d=l.ref(0),f=l.ref(""),c=()=>f.value==="vertical",S=()=>f.value==="horizontal",N=()=>{s.value=0,i.value=0,u.value=0,d.value=0,f.value="",o.value=0};return{move:p=>{if(p.touches){const C=p.touches[0];s.value=C.clientX-e.value,i.value=C.clientY-t.value,r.value=C.clientX,a.value=C.clientY}else{const w=p;s.value=w.clientX-e.value,i.value=w.clientY-t.value,r.value=w.clientX,a.value=w.clientY}u.value=Math.abs(s.value),d.value=Math.abs(i.value),n.value=Date.now()-o.value,f.value||(f.value=Rr(u.value,d.value))},start:p=>{if(N(),p.touches){const C=p.touches[0];e.value=C.clientX,t.value=C.clientY}else{const w=p;e.value=w.clientX,t.value=w.clientY}o.value=Date.now()},reset:N,startX:e,startY:t,startTime:o,duration:n,moveX:r,moveY:a,deltaX:s,deltaY:i,offsetX:u,offsetY:d,direction:f,isVertical:c,isHorizontal:S}}const id={modelValue:{type:[Boolean],default:!1},pullingText:{type:[String]},loosingText:{type:[String]},loadingText:{type:[String]},headHeight:{type:[String,Number],default:50},pullDistance:{type:[String,Number],default:50},duration:{type:[String,Number],default:.3}},sd=(e,t,o)=>({props:{...id},emits:["change","refresh","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:s}=Le.useFoxI18n(t),i=s(n,["pullingText","loosingText","loadingText"]),u=Cl(),d=l.ref(),f=Vr(d),c=l.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),S=l.computed(()=>({[e]:!0})),N=l.computed(()=>{switch(c.status){case"pulling":return a.pulling?"":i.pullingText.value;case"loosing":return a.loosing?"":i.loosingText.value;case"loading":return a.loading?"":i.loadingText.value;default:return""}}),g=l.computed(()=>({transitionDuration:`${n.duration}s`,transform:c.distance?`translate3d(0,${c.distance}px, 0)`:""})),h=l.computed(()=>{const L={};return n.headHeight!=50&&(L.height=ke(n.headHeight)),L}),p=L=>{const M=+(n.pullDistance||n.headHeight);let V=L;return L>M&&(L<M*2?V=(L+M)/2:V=M+L/4),Math.round(V)},$=(L,M)=>{const V=+(n.pullDistance||n.headHeight);c.distance=L,M?c.status="loading":L===0?c.status="normal":L<V?c.status="pulling":c.status="loosing",r("change",{status:c.status,distance:L})},w=()=>c.status!=="loading"&&c.status!=="complete",C=()=>f.value==window?Fr()==0:f.value&&f.value.scrollTop==0,q=L=>{w()&&(C()?(u.start(L),c.isPullRefresh=!0,c.moving=!0):(c.distance=0,c.isPullRefresh=!1))},B=L=>{w()&&c.moving&&(u.move(L),u.isVertical()&&u.state.deltaY>0&&c.isPullRefresh&&(L.cancelable&&L.preventDefault(),$(p(u.state.deltaY))))},A=()=>{c.moving=!1,c.isPullRefresh&&w()&&u.state.deltaY&&(c.status==="loosing"?($(+n.headHeight,!0),r("update:modelValue",!0),l.nextTick(()=>r("refresh"))):$(0)),setTimeout(()=>{u.reset()},0)};return l.watch(()=>n.modelValue,L=>{L?$(+n.headHeight,!0):$(0)}),()=>{const L=[];let M=null;if(c.status==="loading"){if(M=a?.loading?.()??null,!M){const K={class:["fox-pull-refresh-container-topbox-icon"]};M=l.h(o,K)}}else c.status==="pulling"?M=a?.pulling?.()??null:c.status==="loosing"&&(M=a?.loosing?.()??null);M&&L.push(M);const V={class:["fox-pull-refresh-container-topbox-text"]},k=l.h("dive",V,[N.value]);L.push(k);const b={class:["fox-pull-refresh-container-topbox"],style:h.value},P=l.h("div",b,L),_={class:"fox-pull-refresh-container",style:g.value},D=l.h("div",_,[P,a?.default?.()]),F={ref:d,class:S.value};return $l()?Object.assign(F,{onTouchstart:q,onTouchmove:B,onTouchend:A}):Object.assign(F,{onMousedown:q,onMousemove:B,onMouseup:A}),l.h("div",F,[D])}}}),{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}),d=l.computed(()=>o.color?{color:o.color}:null);return()=>{let f=null;if(n.mark)f=n.mark()[0];else{const h={class:s.value,style:i.value};f=l.h(o.icon??"div",h)}const c={class:u.value,style:d.value},S=n.default?n.default():[],N=l.h("div",c,S),g={class:a.value};return o.textPosition==="right"?l.h("div",g,[f,N]):l.h("div",g,[N,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 C={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(C[`${e}--${r.type??"default"}`]=!0),r.size&&(C[`${e}--${r.size}`]=!0),C}),u=l.computed(()=>{const C={},q=r.textColor??r.color;return q&&(C.color=q),C}),d=(C,q)=>{let B=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const A=r.highlightFilter;if(C.indexOf(A)!==-1){const M=C.replace(new RegExp(A,"g"),`<span>${A}</span>`);q.innerHTML=M,q.class["is-highlight"]=!0,B=l.h(r.tag,q)}}else if(typeof r.highlightFilter=="function"){const A=r.highlightFilter(C);A&&(q.innerHTML=A,q.class["is-highlight"]=!0,B=l.h(r.tag,q))}return B},f=C=>{a.emit("click",C)};let c="";const S=()=>{const C=s.value;if(!C)return;const q=C.clientWidth;md(C,B=>{const A=C.innerHTML??"";me(A)||B<q||(c?o?.show(C,A,{type:"text",id:c,showArrow:r.showArrow},!0):c=o?.show(C,A,{type:"text",showArrow:r.showArrow},!0)??"")})},N=()=>{c&&o?.hide(c)};let g=null;const h=C=>{g||(g=setTimeout(()=>{S(),g=null},r.showAfter??0))},p=C=>{g&&(clearTimeout(g),g=null),setTimeout(()=>{N()},r.hideAfter??0)},$=()=>{const C=s.value;C&&(C.addEventListener("mouseover",h),C.addEventListener("mouseleave",p))},w=()=>{const C=s.value;C&&(C.removeEventListener("mouseover",h),C.removeEventListener("mouseleave",p))};return l.onMounted(()=>{!ue(r.showOverflowTooltip)||!o||$()}),l.onBeforeUnmount(()=>{!ue(r.showOverflowTooltip)||!o||w()}),()=>{const C={onClick:f,class:i.value,style:u.value,ref:s};let q=null;if(ue(r.numberFormat)&&typeof a.slots.default=="function"){const M=a.slots.default();if(Array.isArray(M)&&M.length===1){const V=M[0].type.toString();if(V==="Symbol(Text)"||V==="Symbol(v-txt)"){const k=ve(r.digits),b=ve(r.decimalLength),P=ue(r.autoPadding);let _=`${M[0].children}`,D=_.split("").reverse().join("");D=Lt(D,b,P,k,r.separator),_=D.split("").reverse().join(""),r.highlightFilter!==void 0&&(q=d(_,C)),q||(C.innerHTML=_,q=l.h(r.tag,C))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const M=a.slots.default();if(Array.isArray(M)&&M.length===1){const V=M[0].type.toString();if(V==="Symbol(Text)"||V==="Symbol(v-txt)"){const k=`${M[0].children}`;q=d(k,C),q||(C.innerHTML=k,q=l.h(r.tag,C))}}}q||(q=l.h(r.tag,C,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return q;let A=null;if(r.icon){const M={[`${e}__mark-wrap`]:!0};r.type&&(M[`${e}__mark-wrap--${r.type}`]=!0);const V={},k=r.color;k&&(V.color=k);const b={class:M,style:V};A=l.h("view",b,l.h(r.icon))}else if(a.slots.mark){const M={[`${e}__mark-wrap`]:!0};r.type&&(M[`${e}__mark-wrap--${r.type}`]=!0);const V={},k=r.color;k&&(V.color=k);const b={class:M,style:V};A=l.h("view",b,{default:a.slots.mark})}else{const M={[`${e}__mark`]:!0};r.type&&(M[`${e}__mark--${r.type??"default"}`]=!0);const V={},k=r.color;k&&(V["background-color"]=k);const b={class:M,style:V};A=l.h("view",b)}const L={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return l.h("view",L,[A,q])}}}}const{componentName:bd,create:vd,scope:wd}=ie("text"),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})),d=l.computed(()=>({[`${e}__icon`]:!0,"is-expand":!s.value,"is-collapse":s.value})),f=()=>{r("update:modelValue",!s.value)};return()=>{const c=[];if(i.value){const h={class:u.value},p=l.h("span",h,[i.value]);c.push(p)}const S={class:d.value},N=o(n.icon,S);return N&&c.push(N),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:g,maskWidth:h,maskHeight:p}=e,{width:$,height:w,left:C,top:q}=r.value,B=e.steps[n.active].offset??g,A=[C+$/2,q+w/2],L=Number(h||$),M=Number(p||w);return{width:`${L+ +B.left+B.right}px`,height:`${M+B.top+B.bottom}px`,top:`${A[1]-M/2-+B.top}px`,left:`${A[0]-L/2-+B.left}px`}}),i=g=>{g=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,l.nextTick(()=>{n.showPopup=!0,f()}),t("change",n.active)},u=g=>g.popoverWidth??e.width,d=g=>g.location??e.location,f=()=>{const g=document.querySelector(`${e.steps[n.active].target}`),h=Ar(g);r.value={x:h.left,y:h.top,top:h.top,left:h.left,width:h.width,height:h.height}},c=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},S=()=>{e.closeOnClickOverlay&&c()},N=(g,h=0)=>{g&&f(),e.steps,n.active=h,n.showTour=g,n.showPopup=g};return l.onMounted(()=>{N(e.modelValue,e.current)}),l.watch(()=>e.modelValue,g=>{N(g)}),{...l.toRefs(n),classes:a,maskStyle:s,changeStep:i,popoverWidth:u,popoverLocation:d,close:c,handleClickMask:S}}}),Od={key:0,class:"fox-tour__content"},Vd={key:0,class:"fox-tour__content-top"},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]=(...d)=>e.handleClickMask&&e.handleClickMask(...d))},null,512),[[l.vShow,e.showTour]]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(d,f)=>(l.openBlock(),l.createElementBlock("div",{key:f,style:{height:"0"}},[f==e.active?(l.openBlock(),l.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(d),width:e.popoverWidth(d)},{reference:l.withCtx(()=>[e.showTour?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:l.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(l.openBlock(),l.createElementBlock("div",Od,[e.showTitleBar?(l.openBlock(),l.createElementBlock("div",Vd,[l.createElementVNode("div",{onClick:t[1]||(t[1]=(...c)=>e.close&&e.close(...c))},[l.createVNode(s,{class:"fox-tour__content-top-close"})])])):l.createCommentVNode("",!0),l.createElementVNode("div",Fd,l.toDisplayString(d.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(d.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(h=>{ue(e.trapped)&&!i.paused&&o("release-requested",h)});const i={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=h=>{if(!e.loop&&!ue(e.trapped)||i.paused)return;const{key:p,altKey:$,ctrlKey:w,metaKey:C,currentTarget:q,shiftKey:B}=h,{loop:A}=e,L=p==="Tab"&&!$&&!w&&!C,M=document.activeElement;if(L&&M){const V=q,[k,b]=Kd(V);if(k&&b){if(!B&&M===b){const _=fn({focusReason:s.value});o("focusout-prevented",_),_.defaultPrevented||(h.preventDefault(),A&&et(k,!0))}else if(B&&[k,V].includes(M)){const _=fn({focusReason:s.value});o("focusout-prevented",_),_.defaultPrevented||(h.preventDefault(),A&&et(b,!0))}}else if(M===V){const _=fn({focusReason:s.value});o("focusout-prevented",_),_.defaultPrevented||h.preventDefault()}}};l.provide(zd,{focusTrapRef:n,onKeydown:u}),l.watch(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),l.watch([n],([h],[p])=>{h&&(h.addEventListener("keydown",u),h.addEventListener("focusin",c),h.addEventListener("focusout",S)),p&&(p.removeEventListener("keydown",u),p.removeEventListener("focusin",c),p.removeEventListener("focusout",S))});const d=h=>{o(qr,h)},f=h=>o(Pr,h),c=h=>{const p=l.unref(n);if(!p)return;const $=h.target,w=h.relatedTarget,C=$&&p.contains($);ue(e.trapped)||w&&p.contains(w)||(r=w),C&&o("focusin",h),!i.paused&&ue(e.trapped)&&(C?a=$:et(a,!0))},S=h=>{const p=l.unref(n);if(!(i.paused||!p))if(!e.escape&&ue(e.trapped)){const $=h.relatedTarget;!En($)&&!p.contains($)&&setTimeout(()=>{if(!i.paused&&ue(e.trapped)){const w=fn({focusReason:s.value});o("focusout-prevented",w),w.defaultPrevented||et(a,!0)}},0)}else{const $=h.target;$&&p.contains($)||o("focusout",h)}};async function N(){await l.nextTick();const h=l.unref(n);if(h){Kr.push(i);const p=h.contains(document.activeElement)?r:document.activeElement;if(r=p,!h.contains(p)){const w=new Event(Vl,_r);h.addEventListener(Vl,d),h.dispatchEvent(w),w.defaultPrevented||l.nextTick(()=>{let C=e.focusStartEl;Ul(C)||(et(C),document.activeElement!==C&&(C="first")),C==="first"&&Gd(jr(h),!0),(document.activeElement===p||C==="container")&&et(h)})}}}function g(){const h=l.unref(n);if(h){h.removeEventListener(Vl,d);const p=new CustomEvent(Fl,{..._r,detail:{focusReason:s.value}});h.addEventListener(Fl,f),h.dispatchEvent(p),!p.defaultPrevented&&(s.value=="keyboard"||!Ud())&&et(r??document.body,!0),h.removeEventListener(Fl,d),Kr.remove(i)}}return l.onMounted(()=>{ue(e.trapped)&&N(),l.watch(()=>e.trapped,h=>{ue(h)?N():g()})}),l.onBeforeUnmount(()=>{ue(e.trapped)&&g()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:Qd,create:eh,scope:Kh}=ie("floating-window"),th=Symbol.for("InnerPageScopeKey"),nh=Symbol.for("PageWrapperKey"),lh={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},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:!M.value),s=l.ref(e.left),i=l.ref(e.top),u=l.ref(e.right),d=l.ref(e.bottom),f=l.computed(()=>{const T=["fox-floating-window"];return e.customClass&&T.push(e.customClass),T}),c=l.computed(()=>{const T={};return at(s.value)?T.left="auto":T.left=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(d.value)?T.bottom="auto":T.bottom=Re(d.value),at(e.zIndex)||(T["z-index"]=Re(e.zIndex)),at(A.value)||(T.height=A.value),at(L.value)||(T.width=L.value),T}),S=l.computed(()=>e.closeIcon??Ce.Close),N=l.computed(()=>e.collapseIcon??Ce.ArrowUp),g=l.computed(()=>e.collapseText??""),h=l.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ce.ArrowRight:e.expandIcon??Ce.ArrowLeft),p=l.computed(()=>e.expandText??e.title??"展开"),$=l.computed(()=>({[`${o}__collapse-text`]:!0})),w=l.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!M.value,"is-collapse":M.value})),C=l.ref(),q=l.ref(null),B=l.ref(null),A=l.computed(()=>Re(e.height)||""),L=l.computed(()=>Re(e.width)||""),M=l.ref(ue(e.collapse)),V=(T,W=!0)=>{M.value!==T&&(M.value=T,T?x():I(),t("update:collapse",T),T&&typeof P.onHide=="function"?P.onHide():!T&&typeof P.onShow=="function"&&P.onShow())};l.watch(()=>e.collapse,T=>{V(T)});const k=()=>{b()},b=T=>{T=T??!M.value,V(T)};l.provide(th,!0);const P={setCollapse:V,setFixedNavVisible:T=>{ee.value=T}};l.provide(nh,P);const _=()=>{typeof P.beforeClose=="function"?P.beforeClose(()=>{n.value=!1}):n.value=!1},D=l.ref(null),F=l.computed(()=>!e.fixedNavTeleport),K=l.computed(()=>{const T=["fox-floating-window__fixednav"];return e.expandClass&&T.push(e.expandClass),e.collapsePosition==="left"?T.push("is-left"):e.collapsePosition==="right"&&T.push("is-right"),T}),G=l.ref(""),U=l.computed(()=>{const T={};return G.value?T.top=G.value:e.collapseTop&&(T.top=e.collapseTop),T}),Z=l.ref(M.value),ee=l.computed({set:T=>{Z.value=T},get:()=>n.value===!1?!1:Z.value});let le=null;const O=()=>{typeof le=="function"&&(le(),le=null)},x=()=>{D.value&&D.value.classList.add("slide-in"),ee.value=!0,le=()=>{D.value&&D.value.classList.remove("slide-in")}},I=()=>{D.value&&D.value.classList.add("slide-out"),le=()=>{D.value&&D.value.classList.remove("slide-out"),ee.value=!1}},E=()=>{s.value=null,i.value=null,u.value=null,d.value=null},v={x:0,y:0},z=Lr(T=>{if(!C.value)return;const W=C.value;if(E(),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,d.value=ne-(W.offsetTop+W.offsetHeight),v.x=s.value,v.y=d.value}else if(e.origin==="right-bottom"){const ne=document.documentElement.clientWidth||document.body.clientWidth,oe=document.documentElement.clientHeight||document.body.clientHeight;u.value=ne-(W.offsetLeft+W.offsetWidth),d.value=oe-(W.offsetTop+W.offsetHeight),v.x=u.value,v.y=d.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(!C.value)return;const W=C.value;E(),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,d.value=v.y-T.y,W.style.left=Re(s.value),W.style.bottom=Re(d.value)):e.origin==="right-bottom"?(u.value=v.x-T.x,d.value=v.y-T.y,W.style.right=Re(u.value),W.style.bottom=Re(d.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))}),R={x:0,y:0},J=Lr(T=>{D.value&&(R.x=D.value.offsetLeft,R.y=D.value.offsetTop)},T=>{if(!D.value)return;const W=R.y+T.y;G.value=`${W}px`}),te=()=>{if(C.value){const T=C.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");B.value=T}};return l.onMounted(()=>{if(e.draggable&&C.value){const T=[];q.value&&T.push(q.value),e.footerDraggable&&(te(),B.value&&T.push(B.value)),z.open(T)}e.collapse===!0&&V(e.collapse,!1),D.value&&J.open(D.value)}),l.onBeforeUnmount(()=>{e.draggable&&q.value&&z.close(),D.value&&J.close()}),{classes:f,styles:c,isShow:a,closeIcon:S,onClose:_,dialogRef:C,headerRef:q,onClickToggle:k,collapseIcon:N,collapseText:g,collapseTextClasses:$,collapseIconClasses:w,expandIcon:h,expandText:p,isShowFixedNav:ee,fixedNavRef:D,fixedNavClasses:K,fixedNavStyles:U,onAnimationEnd:O,teleportDisabled:r,fixedNavTeleportDisabled:F}}}),rh={ref:"headerRef",class:"fox-floating-window__header"},ah={class:"fox-floating-window__title"},ih={class:"fox-floating-window__tools"},sh={class:"fox-floating-window__body"},uh={class:"fox-floating-window__fixednav__text"};function ch(e,t,o,n,r,a){const s=l.resolveComponent("FoxIcon"),i=l.resolveComponent("FocusTrap");return l.openBlock(),l.createElementBlock(l.Fragment,null,[(l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[l.createVNode(l.Transition,{name:"fox-floating-window-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("div",{ref:"dialogRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles),tabindex:"-1"},[l.createVNode(i,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:l.withCtx(()=>[l.createElementVNode("div",rh,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("span",ah,l.toDisplayString(e.title),1),l.createElementVNode("div",ih,[e.showCollapse?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[l.createElementVNode("span",{class:l.normalizeClass(e.collapseTextClasses)},l.toDisplayString(e.collapseText),3),l.createVNode(s,{class:l.normalizeClass(e.collapseIconClasses)},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):l.createCommentVNode("",!0),e.showClose?(l.openBlock(),l.createBlock(s,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):l.createCommentVNode("",!0)])])],512),l.createElementVNode("div",sh,[l.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[l.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(l.openBlock(),l.createBlock(l.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[l.withDirectives(l.createElementVNode("div",{ref:"fixedNavRef",class:l.normalizeClass(e.fixedNavClasses),style:l.normalizeStyle(e.fixedNavStyles),onAnimationend:t[2]||(t[2]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[l.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:t[1]||(t[1]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[l.createVNode(s,{class:"fox-floating-window__fixednav__icon"},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.expandIcon)))]),_:1}),l.createElementVNode("div",uh,l.toDisplayString(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const Al=_e(oh,[["render",ch]]);function fh(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return po(o.name,()=>o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:Wh,create:dh,scope:Yh}=ie("domain-provider"),Ll=dh(fh()),hh={initialVisibleObserverSize:{type:[Number],required:!1},initialInvisibleObserverHeight:{type:[String],required:!1,default:"250px"},disabled:{type:[Boolean],required:!1},loadPolicy:{type:[String],required:!1,default:"rolling"},rootMargin:{type:[String],required:!1,default:"250px 0px 250px 0px"},threshold:{type:[Array],required:!1,default:[0,.25]},root:{type:[Object,String]}};function gh(e,t){return{inheritAttrs:!1,props:hh,setup(o,{slots:n}){if(lt&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const s=(S,N)=>{if(f===null){a.set(S,{visible:null,callback:N});return}r.has(S)&&f.unobserve(S),r.set(S,{visible:null,callback:N}),f.observe(S)},i=S=>{if(f===null){a.delete(S);return}r.has(S)&&(r.delete(S),f.unobserve(S))};let u=o.initialVisibleObserverSize;ei({acquire:()=>{const S=u>0;return u--,S},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:s,unobserve:i});let f=null;const c=(S,N,g)=>{f=new IntersectionObserver(h=>{for(let p of h){let $=!1;p.intersectionRatio>0&&($=!0);const w=r.get(p.target);if(w)try{if(o.loadPolicy==="lazy"&&!$&&w.visible!==null)return;w.visible=$,w.callback($)}catch(C){console.error(C)}}},{root:S,rootMargin:N,threshold:g}),a.forEach((h,p)=>{r.set(p,h),f?.observe(p)}),a.clear()};l.watch([()=>o.root,()=>o.disabled],([S,N])=>{if(N||!S||f)return;let g=null;typeof S=="string"?g=document.querySelector(S):g=S,g&&c(g,o.rootMargin,o.threshold)},{immediate:!0}),l.onUnmounted(()=>{f&&(f.disconnect(),f=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:Gh,create:mh,scope:Uh}=ie("rolling-provider"),Ml=mh(gh()),ph=[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"}})});
|
|
5
|
+
*/function jt(e,t="0"){let l=0,n=-1;e[0]=="-"&&(l++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(l++,n=2,t=t.substring(1),t.length),e=Oe(e),t=Oe(t),[e,t]=Vn(Oe(e),Oe(t)),l==1&&(n==1?e=Dn(e):t=Dn(t));let r=ul(e,t);return l?l==2?"-"+Oe(r):e.length<r.length?Oe(r.substring(1)):"-"+Oe(Dn(r)):Oe(r)}function Dn(e){let t="",l=e.length,n=e.split(".")[1],r=n?n.length:0;for(let i=0;i<l;i++)e[i]>="0"&&e[i]<="9"?t+=9-parseInt(e[i]):t+=e[i];let a=r>0?"0."+new Array(r).join("0")+"1":"1";return ul(t,a)}function Oe(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 Vn(e,t){let l=e.split("."),n=t.split("."),r=l[0].length,a=n[0].length;return r>a?n[0]=new Array(Math.abs(r-a)+1).join("0")+(n[0]?n[0]:""):l[0]=new Array(Math.abs(r-a)+1).join("0")+(l[0]?l[0]:""),r=l[1]?l[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"):l[1]=(l[1]?l[1]:"")+new Array(Math.abs(r-a)+1).join("0")),e=l[0]+(l[1]?"."+l[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function ul(e,t){[e,t]=Vn(e,t);let l="",n=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){l="."+l;continue}let a=parseInt(e[r])+parseInt(t[r])+n;l=a%10+l,n=Math.floor(a/10)}return n?n.toString()+l:l}var ve=(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))(ve||{});function Ct(e,t=0,l=ve.HALF_EVEN){if(l===ve.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let r=e.split("."),a=r[0],i=r[1];if(t<0){if(t=-t,a.length<=t)return"0";{let s=a.substr(0,a.length-t);return e=s+"."+a.substr(a.length-t)+i,s=Ct(e,0,l),(n?"-":"")+s+new Array(t+1).join("0")}}if(t==0)return a.length,cl(r[1],a,n,l)?(n?"-":"")+Rn(a):(n?"-":"")+a;if(r[1]){if(r[1].length<t)return(n?"-":"")+a+"."+r[1]+new Array(t-r[1].length+1).join("0")}else return(n?"-":"")+a+"."+new Array(t+1).join("0");i=r[1].substring(0,t);let u=r[1].substring(t);return u&&cl(u,i,n,l)&&(i=Rn(i),i.length>t)?(n?"-":"")+Rn(a,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+a+"."+i}function cl(e,t,l,n){if(!e||e===new Array(e.length+1).join("0")||n===ve.DOWN||!l&&n===ve.FLOOR||l&&n===ve.CEILING)return!1;if(n===ve.UP||l&&n===ve.FLOOR||!l&&n===ve.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 ve.HALF_DOWN:return!1;case ve.HALF_UP:return!0;case ve.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function Rn(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let l=e.length-1,n="";for(let r=l;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 Fn(e,t){e=e.toString(),t=t.toString();let l=0;e[0]=="-"&&(l++,e=e.substr(1)),t[0]=="-"&&(l++,t=t.substr(1)),e=Et(e),t=Et(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=Et(e.replace(".","")),t=Et(t.replace(".","")),e.length<t.length){let h=e;e=t,t=h}if(t=="0")return"0";let i=t.length,u=0,s=[],c=i-1,d="";for(let h=0;h<i;h++)s[h]=e.length-1;for(let h=0;h<2*e.length;h++){let p=0;for(let v=t.length-1;v>=c&&v>=0;v--)s[v]>-1&&s[v]<e.length&&(p+=parseInt(e[s[v]--])*parseInt(t[v]));p+=u,u=Math.floor(p/10),d=p%10+d,c--}return d=Et(ga(d,a)),l==1&&(d="-"+d),d}function ga(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 Et(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 An(e,t,l=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=Oe(t.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 d=e.length-c+r;e=Oe(e.substring(0,d)+"."+e.substring(d))}else r==c&&(e=Oe(e.replace(".","")))}let a=0,i=t.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(t);)s=jt(s,"-"+t),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(n==1?"-":"")+Oe(Ct(u,l-2))}function Mn(e,t){return e=e.toString(),t=t.toString(),t=Ln(t),jt(e,t)}function Ln(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function fl(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),dl(e),dl(t);let l="";e[0]=="-"&&(l="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=Mn(e,Fn(t,Ct(An(e,t),0,ve.FLOOR)));return l+n}function dl(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function hl(e,t){let l=!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),l=!0),[e,t]=Vn(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]?l?-1:1:l?1:-1;return 0}class de{value;static RoundingModes=ve;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[l,n]=t.split(/[eE]/);l=Oe(l);let r="";l[0]=="-"&&(r="-",l=l.substring(1)),l.indexOf(".")>=0?(n=parseInt(n)+l.indexOf("."),l=l.replace(".","")):n=parseInt(n)+l.length,l.length<n?t=r+l+new Array(n-l.length+1).join("0"):l.length>=n&&n>0?t=r+Oe(l.substring(0,n))+(l.length>n?"."+l.substring(n):""):t=r+"0."+new Array(-n+1).join("0")+l}return t}constructor(t="0"){this.value=de.validate(t)}getValue(){return this.value}static getPrettyValue(t,l,n){if(!(l||n))l=3,n=",";else if(!(l&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=de.validate(t);let r=t.charAt(0)=="-";r&&(t=t.substring(1));var a=t.indexOf(".");a=a>0?a:t.length;for(var i="",u=a;u>0;)u<l?(l=u,u=0):u-=l,i=t.substring(u,u+l)+(u<a-l&&u>=0?n:"")+i;return(r?"-":"")+i+t.substring(a)}getPrettyValue(t,l){return de.getPrettyValue(this.value,t,l)}static round(t,l=0,n=ve.HALF_EVEN){if(t=de.validate(t),isNaN(l))throw Error("Precision is not a number: "+l);return Ct(t,l,n)}round(t=0,l=ve.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new de(Ct(this.value,t,l))}static floor(t){return t=de.validate(t),t.indexOf(".")===-1?t:de.round(t,0,ve.FLOOR)}floor(){return this.value.indexOf(".")===-1?new de(this.value):new de(this.value).round(0,ve.FLOOR)}static ceil(t){return t=de.validate(t),t.indexOf(".")===-1?t:de.round(t,0,ve.CEILING)}ceil(){return this.value.indexOf(".")===-1?new de(this.value):new de(this.value).round(0,ve.CEILING)}static add(t,l){return t=de.validate(t),l=de.validate(l),jt(t,l)}add(t){return new de(jt(this.value,t.getValue()))}static subtract(t,l){return t=de.validate(t),l=de.validate(l),Mn(t,l)}subtract(t){return new de(Mn(this.value,t.getValue()))}static multiply(t,l){return t=de.validate(t),l=de.validate(l),Fn(t,l)}multiply(t){return new de(Fn(this.value,t.getValue()))}static divide(t,l,n){return t=de.validate(t),l=de.validate(l),An(t,l,n)}divide(t,l){return new de(An(this.value,t.getValue(),l))}static modulus(t,l){return t=de.validate(t),l=de.validate(l),fl(t,l)}modulus(t){return new de(fl(this.value,t.getValue()))}static compareTo(t,l){return t=de.validate(t),l=de.validate(l),hl(t,l)}compareTo(t){return hl(this.value,t.getValue())}static negate(t){return t=de.validate(t),Ln(t)}negate(){return new de(Ln(this.value))}}function gl(e,t){return de.multiply(`${e}`,`${t}`)}function Bn(e,t,l=8){return de.divide(`${e}`,`${t}`,l)}function _n(e,t){return e=`${e}`,t=`${t}`,de.compareTo(e,t)}function ml(e){return de.negate(e)}function zt(e,t=-1,l=!1,n=3,r=","){let a=`${e}`;if(a.length==0||a==="-")return"";let i=a.charAt(0);i=="-"?a=a.substring(1):i="";let u=a,s="",c=a.indexOf(".");c!=-1&&(u=a.substring(0,c),s=a.substring(c+1)),t!=-1&&(t<s.length?s=s.substring(0,t):l&&t>s.length&&(s=s.padEnd(t,"0")));let d;if(n>0){let h="",p=u.split("").reverse();for(let v=0;v<p.length;v++)h+=p[v]+((v+1)%n==0&&v+1!=p.length?r:"");s.length==0?d=`${i}${h.split("").reverse().join("")}`:d=`${i}${h.split("").reverse().join("")}.${s}`}else s.length==0?d=`${i}${u}`:d=`${i}${u}.${s}`;return d}function yl(e){let t=`${e}`,l=t.charAt(0);l=="-"?t=t.substring(1):l="";let n=t.replace(/[^\d\.-]/g,"");return`${l}${n}`}const qn=sl,ma=Array.isArray,ya=e=>Ht(e)==="[object Map]",pa=e=>Ht(e)==="[object Set]",ba=e=>e instanceof Date,Pn=e=>typeof e=="function",pl=e=>typeof e=="string",va=e=>typeof e=="symbol",Je=e=>e!==null&&typeof e=="object",bl=e=>Je(e)&&Pn(e.then)&&Pn(e.catch),vl=Object.prototype.toString,Ht=e=>vl.call(e),jn=e=>Ht(e)==="[object Object]",wl=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function wa(e){return e.__esModule||wl&&e[Symbol.toStringTag]==="Module"}const Sa=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function ut(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},l=1,n=e.length,r=!1;for(typeof t=="boolean"&&(r=t,t=e[l]??{},l++),typeof t!="object"&&(t={});l<n;l++)if(e[l]!==null&&e[l]!==void 0){let a=e[l];for(let i in a){let u=t[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:{},t[i]=ut(r,c,s)}else s!==void 0&&(t[i]=s)}}return t}function zn(e,t,l=!1){if(!l)ut(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let r in t){let a=e[r],i=t[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!jn(i))continue;a=zn(a,i,l),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}const n=Object.getOwnPropertySymbols(t);for(let r of n){let a=e[r],i=t[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!jn(i))continue;a=zn(a,i,l),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const Hn=Sa?Promise.resolve():null;function xa(e,...t){Hn!==null?t&&t.length>0?Hn.then(()=>{e(t)}):Hn.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 Te(e){return typeof e=="number"?e:Number(e)}const Ta={"[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):Ta[l]||"object"}function Sl(e){return e&&typeof e=="object"&&"setInterval"in e}function Wt(e){if(!e)return!0;const{display:t}=window.getComputedStyle(e);return t==="none"}function xl(e){let t=!!e&&"length"in e&&e.length,l=Kt(e);return l==="function"||Sl(e)?!1:l==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function Tl(e,t){let l=+t.length,n=0,r=e.length;for(;n<l;n++)e[r++]=t[n];return e.length=r,e}function $a(e,t=[]){let l=t;return e!=null&&(xl(Object(e))?Tl(l,typeof e=="string"?[e]:e):l.push(e)),l}function Qe(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let l=Kt(e),n=Kt(t);if(l!==n)return!1;if(l==="object"){let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let i=0;i<r.length;i++){let u=r[i],s=e[u],c=t[u];if(!Qe(s,c))return!1}return!0}else if(l==="array"){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let a=e[r],i=t[r];if(!Qe(a,i))return!1}return!0}return!1}const nt=typeof window<"u";function Kn(e){return e==null}function Wn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const he=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function $l(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 Cl(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 l=t.indexOf(".");return l==-1?t.length:l}function El(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const l=t.indexOf(".");return l==-1?0:t.length-(l+1)}function Nl(e,t,l){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(l,"")}function Ca(e,t=!0,l=!0){t?e=Nl(e,".",/\./g):e=e.replace(/\./g,""),l?e=Nl(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function Ea(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(l=>{if(Qe(e,l))return!0}):t.indexOf(e)}function Na(e,t){if(typeof e=="object"||Array.isArray(e)){let l=t.reverse().findIndex(n=>{if(Qe(e,n))return!0});return l!==-1&&(l=t.length-1-l),l}return t.lastIndexOf(e)}function Nt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function kl(e,...t){const l={};return t.forEach(n=>{for(const r in n)l[r]=e[r]}),l}function De(e,...t){const l=[];t.forEach(r=>{Reflect.apply([].push,l,Reflect.ownKeys(r))});const n={};for(const r in e)l.includes(r)||(n[r]=e[r]);return n}const ka=(e,t,l)=>{const n=Object.assign({},e),r=Object.assign({},l);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},we=Symbol.for("BroadcastKey");class Yn{parent;children=[];callbacks=new Map;proxy=null;name;persistantMessages=new Map;constructor(t,l,n){this.parent=t,this.proxy=l,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const l=this.children.findIndex(n=>t===n);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(t,l,n){if(!t.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const r=t.uniqueId,a={matched:t,action:l,args:n};return this.persistantMessages.set(r,a),!0}deletePersistantMessage(t){this.persistantMessages.delete(t)}getPersistantMessages(){const t=[];return this.persistantMessages.forEach(l=>{t.push(l)}),t}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(t,l){if(!l||l.messagingPolicy==="Once"&&l.resolved===!0)return!1;let n=!1;return!l.name||l.name==="*"||l.name==="+"||Wn(l.name)&&t&&l.name.test(t)?n=!0:typeof l.name=="function"?n=Reflect.apply(l.name,null,[t]):l.name===t&&(n=!0),n}trigger(t,l,n){let r=null;const a=this.callbacks.get(l);typeof a=="function"&&(r=Reflect.apply(a,this.proxy,[...n]));const i=this.proxy??{};typeof i[l]=="function"&&(r=Reflect.apply(i[l],i,[...n])),t.resolved=!0,typeof t.resolve=="function"&&t.resolve(r)}pull(){let t=this.parent;for(;t;){const l=t.getPersistantMessages();Array.isArray(l)&&l.length>0&&l.forEach(n=>{if(this.isMatched(this.name,n.matched))try{this.trigger(n.matched,n.action,n.args)}catch(r){console.error(r)}}),t=t.parent}}emit(t,l,...n){if(t.messagingPolicy==="Once"&&t.resolved===!0)return[];if(t.cachePolicy==="Persistant")this.setPersistantMessage(t,l,n),t.cachePolicy="None";else if(t.cachePolicy==="Unresolved"){if(this.setPersistantMessage(t,l,n)){const i=t.resolve,u=t.uniqueId??"",s=(...c)=>{this.deletePersistantMessage(u),typeof i=="function"&&i(...c)};t.resolve=s}t.cachePolicy="None"}let r=!1;!t.name||t.name==="*"?r=!0:t.name==="+"?(r=!1,t.name="*"):Wn(t.name)&&this.name&&t.name.test(this.name)?r=!0:typeof t.name=="function"?r=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(r=!0);const a=[];if(r){const i=this.callbacks.get(l);if(typeof i=="function"){const s=Reflect.apply(i,this.proxy,[...n]);s!=null&&a.push(s)}const u=this.proxy??{};if(typeof u[l]=="function"){const s=Reflect.apply(u[l],u,[...n]);s!=null&&a.push(s)}if(t.resolved=!0,typeof t.resolve=="function"&&t.resolve(...a),t.messagingPolicy==="Once")return a}return this.children.forEach(i=>{const u=Reflect.apply(i.emit,i,[{...t},l,...n]);u!=null&&Array.isArray(u)&&Reflect.apply([].push,a,[...u])}),a}emitToChildren(t,l,...n){if(t.cachePolicy==="Persistant")this.setPersistantMessage(t,l,n),t.cachePolicy="None";else if(t.cachePolicy==="Unresolved"){if(this.setPersistantMessage(t,l,n)){const a=t.resolve,i=t.uniqueId??"",u=(...s)=>{this.deletePersistantMessage(i),typeof a=="function"&&a(...s)};t.resolve=u}t.cachePolicy="None"}const r=[];return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...t},l,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}on(t,l){this.callbacks.set(t,l)}}function Yt(e,t,l,n){const r=new Yn(t,e,l);if(n&&typeof n=="object")for(const a in n)r.on(a,n[a]);return r}function Ia(e,t,l){const n=l;if(n[we])return n[we];const r=o.inject(we,null),a=new Yn(r,l,e);if(t&&typeof t=="object")for(const i in t)a.on(i,t[i]);return n[we]=a,o.provide(we,a),o.onUnmounted(()=>{a.destroy(),n[we]=void 0}),a}function kt(e=null){return e||(e=o.getCurrentInstance()?.proxy??null),e?e[we]??o.inject(we,null):o.inject(we,null)}const ct=e=>e.default??e;class Oa{error(t,l){const n=l,r=l||o.hasInjectionContext()?kt(l):null;r?r.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const l=t,n=t||o.hasInjectionContext()?kt(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}success(t){const l=t,n=t||o.hasInjectionContext()?kt(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}decorate(t,l,n){Array.isArray(t)||(t=[t]);const r=n,a=n||o.hasInjectionContext()?kt(n):null,i=l.find(s=>s.required===!0||s.type==="required"&&s.required!==!1),u=t.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(n))}getValue(t){return t.modelValue}}let It=new Oa;function Da(e){It=e}function Va(e){It?Object.assign(It,e):It=e}function Ra(e,t){ct(st).setValidator(e,t)}function Fa(e){ct(st).deleteValidator(e)}let Il=["blur","clear"];function Aa(e){Il=e}function Ol(){return Il}let Dl=["focus","change","setValue"];function Ma(e){Dl=e}function Vl(){return Dl}function La(e){ct(st).messages(e)}function Ot(...e){const t=[];return e.forEach(l=>{l.forEach(n=>{const r=t.findIndex(a=>a.type===n.type);r!==-1&&t.splice(r,1),t.push(n)})}),t}function Ut(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 He=Symbol("ValidateSchemaKey");class Rl{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,l,n){this.parent=t,this.descriptor=l,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=o.effectScope(!0),this.scope.run(()=>{o.watchEffect(()=>{const l=Ut(Ot(this.attrRules,this.rules)),n=[];for(let a in t){let i=t[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let s={type:a};i!==null&&typeof i=="object"&&Object.assign(s,i),n.push(s);continue}let u=this.getValidator(a);if(u!==null){let s={type:a,validator:u};n.push(s)}}this.attrRules=Ut(n);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(t,...l){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...l]);const r=It;return r&&typeof r[t]=="function"?Reflect.apply(r[t],r,[...l]):null}decorate(t,l){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,l,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,l,n=!1){n?ct(st).setValidator(t,l):this.validators[t]=l}getValidator(t){let l=this.validators[t]??null;return l||(l=this.parent?.getValidator(t)??null),l}deleteValidator(t,l=!1){l?ct(st).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,l=!1){if(l)return ct(st).hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const l=Ot(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Ut(t):this.rules=Ut([t]);const n=Ot(this.attrRules,this.rules);o.nextTick(()=>{this.decorate(n,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 n=this.descriptor.fieldName??"value";if(l.length>0){const r={[`${n}`]:l},a=this.getValue(),i={[`${n}`]:a},u=ct(st),s=new u(r),c=this.proxy??i;return s.validate(i,{context:c}).then(h=>{if(h.pass)this.success();else{let p="error";Array.isArray(h.errors)&&h.errors.length>0&&(p=h.errors[0].message??p,h.errors=[h.errors[0]],h.errors[0].ref=c),this.error(p)}return h}).catch(h=>{const p=h.message??`${h}`;return this.error(p),h})}}return Promise.resolve({pass:!0})}}function Gt(e,t,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 Rl(t,l,e)}const Xt=Symbol.for("EventEmitterKey");class Fl{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,l){let n=this.register.get(t);if(n&&Array.isArray(n)){let r=n.findIndex(a=>a===l);r!==-1&&n.splice(r,1)}}on(t,l){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(l)}emit(t,...l){const n=this.register.get(t);n&&n.forEach(r=>{try{Reflect.apply(r,null,[t,...l])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...l])}}function ot(e,t){let l=null;return function(...n){l&&clearTimeout(l),l=setTimeout(()=>{l=null,Reflect.apply(e,null,[...n])},t)}}function Al(e,t){let l=0;return function(...n){const r=new Date().getTime();r-l<t||(l=r,Reflect.apply(e,null,[...n]))}}function Ba(e,t){const l=ot((n,r)=>{e=n,r()},t);return o.customRef((n,r)=>({get(){return n(),e},set(a){l(a,r)}}))}function _a(e){let t=!1;return function(...l){t||(t=!0,Reflect.apply(e,null,[...l]))}}function Zt(e,t,l,n=0,r=!0,a){let i=t,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+=n,setTimeout(s,i)};setTimeout(s,i)}const _e=Symbol("DomainKey"),yt=Symbol("DataItemsKey");class Jt{_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=o.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,l=[]){for(const n in t){const r=t[n];l.length>0&&l.indexOf(r)!==-1||(this._props[n]=r)}}has(t){if(Reflect.has(this._props,t)){const l=this._props[t];if(l!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,l){this._props[t]=l}get(t,l){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?l:this.parent.get(t,l)}getForParent(t,l){return this.parent==null?l:this.parent.get(t,l)}getForSelf(t){return this._props[t]}getAll(t){const l=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const r=n._props[t];l.push(r)}n=n._parent}return l}}const qa=new Jt;function pt(){return qa}function lt(e=null){return e||(e=o.getCurrentInstance()?.proxy??null),e?e[_e]??o.inject(_e,null):o.inject(_e,null)}const Un=Symbol("OriginalDateKey");function Gn(e,t,l=[],n){const r=o.getCurrentInstance();let a=r?.proxy,i=o.inject(_e,null);i===null&&(i=pt());const u=e||t.prop||t.name;let s=new Jt(u);s.parent=i;const c=f=>{a[Un]||p(f),s?.set("modelValue",f)},d=()=>s?.getForSelf("modelValue")??null,h=()=>a[Un]??null,p=f=>{const g={};ut(!0,g,o.toRaw(f)),a[Un]=g};o.isReactive(t)||typeof t=="function"?o.watch(t,f=>{s?.merge(f,l)},{immediate:!0}):s.merge(t,l),t.modelValue&&p(t.modelValue);const v=(f,g)=>{s?.set(f,g)},y=f=>s?.getForSelf(f)??null;if(a[_e]=s,o.provide(_e,s),r!==null){const f=o.inject(we,null),g=Yt(a,f,u,n);s.broadcast=g,a[we]=g,o.provide(we,g),a.broadcast=(x,V,..._)=>Reflect.apply(g.emit,g,[x,V,..._]);const M=o.inject(He,null),T=Gt(a,M,{componentName:""});s.validateSchema=T,a[He]=T,o.provide(He,T),a[yt]=new Map,a.validate=(x=!0)=>{const V=[];let _=null;const A={deep:!1};if(x===!0)_={name:"*"};else if(Array.isArray(x)&&x.length>0){const F=x;_={name:P=>P?F.indexOf(P)!==-1:!1}}else if(x!=null&&typeof x=="object"){const F=x;if(Object.assign(A,F),Array.isArray(F.include)&&F.include.length>0){const P=F.include;_={name:$=>$?P.indexOf($)!==-1:!1}}else if(Array.isArray(F.exclude)&&F.exclude.length>0){const P=F.exclude;_={name:$=>$?P.indexOf($)===-1:!1}}else _={name:"*"}}if(_){const F=g?.emitToChildren(_,"validate",A);F&&Reflect.apply([].push,V,F)}return V.length==1?V[0]:V.length>1?Promise.all(V).then(F=>{let P=[];return F.forEach($=>{$.pass===!1&&Array.isArray($.errors)&&(P=[...P,...$.errors])}),P.length>0?{pass:!1,errors:P}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(x,V=!0,_=!1)=>{if(_===!0){Reflect.ownKeys(x).forEach(F=>{let P=String(F);const $={componentName:"",fieldName:P,pureDataValidate:!0};if(s){const I=Ll(s,P,$,g,T);a[yt].set(P,I);const b=x[P];b&&I.validateSchema.setRule(b)}});return}if(V){const A=Reflect.ownKeys(x),F={name:P=>A.includes(P),cachePolicy:"Persistant",uniqueId:"validateRules"};g?.emitToChildren(F,"setNameValidateRules",x,!1)}},a.clearValidate=(x=!0)=>{let V=null;if(x===!0)V={name:"*"};else if(Array.isArray(x)&&x.length>0){const _=x;V={name:A=>A?_.indexOf(A)!==-1:!1}}else if(x!=null&&typeof x=="object"){const _=x;if(Array.isArray(_.include)&&_.include.length>0){const A=_.include;V={name:F=>F?A.indexOf(F)!==-1:!1}}else if(Array.isArray(_.exclude)&&_.exclude.length>0){const A=_.exclude;V={name:F=>F?A.indexOf(F)===-1:!1}}else V={name:"*"}}V&&g?.emitToChildren(V,"clearValidate",!1)},a.resetFields=x=>{const V=d();if(!V)return;const _={};if(ut(!0,_,h()??{}),Array.isArray(x))x.forEach(A=>{V[A]=_[A]});else if(x&&Array.isArray(x.include))(x.include??[]).forEach(F=>{V[F]=_[F]});else if(x&&Array.isArray(x.exclude)){let A=x.exclude??[];Reflect.ownKeys(_).forEach(F=>{A.includes(F)||(V[F]=_[F])})}else Object.assign(V,_);a.clearValidate(x)},a.setModelValue=(x,V)=>{if(!V||V===u)c(x);else{const _={name:V,messagingPolicy:"Once"};g?.emitToChildren(_,"setModelValue",x)}},a.getModelValue=()=>d(),a.setDomainProperty=(x,V)=>{v(x,V)},a.getDomainProperty=x=>y(x),setTimeout(function(){g?.pull()},0)}return o.onUnmounted(function(){s?.validateSchema&&(s.validateSchema.destroy(),a[He]=void 0,o.provide(He,null)),s?.broadcast&&(s?.broadcast?.destroy(),a[we]=void 0,o.provide(we,null)),s?.destroy(),a[_e]=void 0,o.provide(_e,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 Ml(e,t,l=[]){let r=o.getCurrentInstance()?.proxy,a=o.inject(_e,null);a===null&&(a=pt());const i=e||t.prop||t.name;let u=new Jt(i);return u.parent=a,o.isReactive(t)||typeof t=="function"?o.watch(t,s=>{u?.merge(s,l)},{immediate:!0}):u.merge(t,l),r[_e]=u,o.provide(_e,u),o.onUnmounted(()=>{u?.destroy(),r[_e]=void 0,o.provide(_e,null),u=null,r=null}),u}function ke(e,t,l){const r=o.getCurrentInstance()?.proxy,a=t??"",i=o.inject(we,null);let u=Yt(r,i,a,l);r[we]=u,o.provide(we,u),r.broadcast=(y,f,...g)=>u?Reflect.apply(u.emit,u,[y,f,...g]):null;const s=o.inject(He,null);e.fieldName=e.fieldName??a;let c=Gt(r,s,e);r[He]=c,o.provide(He,c),r.validate=(y=null)=>{if(!c)return Promise.resolve({pass:!0});const f=[];let g=!1,M=!1;if(Array.isArray(y)&&y.indexOf(a)!==-1)M=!0,g=!0;else if(y&&typeof y=="object"){const T=y,x=T.ignoreDisabled??!0,V=T.ignoreReadonly??!0,_=T.ignoreHidden??!0;x===!0&&e.disabled===!0||V===!0&&e.readonly===!0||_===!0&&Wt(r.$el)?M=!1:(Array.isArray(T.include)&&T.include.indexOf(a)!==-1||Array.isArray(T.exclude)&&T.exclude.indexOf(a),M=!0),g=T.deep??!1}else typeof y=="boolean"&&(g=y),M=!0;if(M){const T=c?.validate();f.push(T)}if(g){let T=null;const x={deep:!1};if(y===!0)T={name:"*"};else if(Array.isArray(y)&&y.length>0){const V=y;T={name:_=>_?V.indexOf(_)!==-1:!1}}else if(y!=null&&typeof y=="object"){const V=y;if(Object.assign(x,V),Array.isArray(V.include)&&V.include.length>0){const _=V.include;T={name:A=>A?_.indexOf(A)!==-1:!1}}else if(Array.isArray(V.exclude)&&V.exclude.length>0){const _=V.exclude;T={name:A=>A?_.indexOf(A)===-1:!1}}else T={name:"*"}}if(T&&u){const V=u.emitToChildren(T,"validate",x);Reflect.apply([].push,f,V)}}return f.length==1?f[0]:f.length>1?Promise.all(f).then(T=>{let x=[];return T.forEach(V=>{V.pass===!1&&Array.isArray(V.errors)&&(x=[...x,...V.errors])}),x.length>0?{pass:!1,errors:x}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=y=>c?.setRule(y),r.setNameValidateRules=(y,f=!1)=>{const g=y[a];if(g&&c?.setRule(g),f&&u){const M={name:T=>Reflect.ownKeys(y).includes(T)};u.emitToChildren(M,"setNameValidateRules",y,!1)}},r.clearValidate=(y=null)=>{(!Array.isArray(y)||y.indexOf(t??"")!==-1)&&c?.clear();let f=null;if(y===!0)f={name:"*"};else if(Array.isArray(y)&&y.length>0){const g=y;f={name:M=>M?g.indexOf(M)!==-1:!1}}else if(y!=null&&typeof y=="object"){const g=y;if(Array.isArray(g.include)&&g.include.length>0){const M=g.include;f={name:T=>T?M.indexOf(T)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const M=g.exclude;f={name:T=>T?M.indexOf(T)===-1:!1}}else f={name:"*"}}f&&u&&u.emitToChildren(f,"clearValidate",!1)};let d=new Fl(r);r[Xt]=d;const h=ot((y="validate")=>{c&&(y==="reset"?c.clear():c.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Ol()).forEach(y=>{d&&d.on(y,f=>{h("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Vl()).forEach(y=>{d&&d.on(y,f=>{h("reset")})}),setTimeout(function(){u?.pull()},0),o.onUnmounted(()=>{u?.destroy(),r[we]=void 0,o.provide(we,null),u=null,c?.destroy(),r[He]=void 0,o.provide(He,null),c=null,d?.destroy(),r[Xt]=void 0,d=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:u,validateSchema:c,emitEvent:(y,...f)=>{d&&Reflect.apply(d.emit,d,[y,...f])},onEvent:(y,f)=>{d&&Reflect.apply(d.on,d,[f])},offEvent:(y,f)=>{d&&Reflect.apply(d.off,d,[f])}}}function Ll(e,t,l,n,r){const a={},i=t??"",u={getValue(){const d=e.getForSelf("modelValue");return d?d[i]:null},isExist(){const d=e.getForSelf("modelValue");return d?Reflect.has(d,i):!1}};l.fieldName=i,l.validateHandler={getValue(d){return u.getValue()}};let s=Gt({},r,l);a.validate=(d=null)=>{if(!u.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const h=[];let p=!1,v=!1;if(Array.isArray(d)&&d.indexOf(i)!==-1)v=!0,p=!0;else if(d&&typeof d=="object"){const y=d;Array.isArray(y.include)&&y.include.indexOf(i)!==-1||Array.isArray(y.exclude)&&y.exclude.indexOf(i),v=!0,p=y.deep??!1}else typeof d=="boolean"&&(p=d),v=!0;if(v&&s){const y=s.validate();h.push(y)}if(p){let y=null;const f={deep:!1};if(d===!0)y={name:"*"};else if(Array.isArray(d)&&d.length>0){const g=d;y={name:M=>M?g.indexOf(M)!==-1:!1}}else if(d!=null&&typeof d=="object"){const g=d;if(Object.assign(f,g),Array.isArray(g.include)&&g.include.length>0){const M=g.include;y={name:T=>T?M.indexOf(T)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const M=g.exclude;y={name:T=>T?M.indexOf(T)===-1:!1}}else y={name:"*"}}if(y&&c){const g=c.emitToChildren(y,"validate",f);Reflect.apply([].push,h,g)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(y=>{let f=[];return y.forEach(g=>{g.pass===!1&&Array.isArray(g.errors)&&(f=[...f,...g.errors])}),f.length>0?{pass:!1,errors:f}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=d=>s?.setRule(d),a.setNameValidateRules=d=>{const h=d[i];h&&s?.setRule(h)};let c=Yt(null,n,i,a);return o.onUnmounted(()=>{s=null,c=null}),{broadcast:c,validateSchema:s}}function Bl(){let t=o.getCurrentInstance()?.proxy,l=new Fl(t);return t[Xt]=l,o.onUnmounted(()=>{l?.destroy(),t[Xt]=void 0,l=null,t=null}),{emitEvent:(n,...r)=>{l&&Reflect.apply(l.emit,l,[n,...r])},onEvent:(n,r)=>{l&&Reflect.apply(l.on,l,[r])},offEvent:(n,r)=>{l&&Reflect.apply(l.off,l,[r])}}}const Ve=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${me(e,t)}px`:"";function me(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 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(nt){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*t;const n=Number(e);return isNaN(n)?0:n}const rt="PageStateKey";function Ge(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=me(e.top)),e.left!==null&&e.left!==void 0&&(t.left=me(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=me(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=me(e.right))),t}function Xn(e,t,l={},n=!0,r=-1,a=-1,i=0,u=0){if(e.headerHeight=me(l.headerHeight??t.headerHeight??-1),e.headerPadding=Ge(l.headerPadding??t.headerPadding),e.footerHeight=me(l.footerHeight??t.footerHeight??-1),e.footerPadding=Ge(l.footerPadding??t.footerPadding),e.contentPadding=Ge(l.contentPadding??t.contentPadding),n){const s=l.height??t.height;s?e.height=me(s,a):e.height=me(a)-me(i,a)-me(u,a),e.width=me(l.width??t.width??0,r)}}function _l(e,t={}){const l={top:null,bottom:null,right:null,left:null},n={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")??{},t.safeAreaInset??{});r&&(n.safeAreaTop=me(r.top),n.safeAreaBottom=me(r.bottom),n.safeAreaLeft=me(r.left),n.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;Xn(n,a,t,!0,i,u,s,c);const d=o.reactive(n),h=e.getForParent(rt);h&&(n.height=nn(e,h),n.width=on(e,h),o.watch([()=>nn(e,h),()=>on(e,h)],([v,y])=>{d.height=v,d.width=y}));const p=!h;return o.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([v,y,f=-1,g=-1,M=0,T=0])=>{Xn(d,y,t,p,f,g,M,T)}),e.set(rt,d),d}function Qt(e){return e.get(rt)}function en(e,t){if(t=t??e.get(rt),t&&t.headerMounted){const l=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+l}return 0}function tn(e,t){if(t=t??e.get(rt),t&&t.footerMounted){const l=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+l}return 0}function nn(e,t){if(t=t??e.get(rt),t){if(t.contentInnerHeight)return t.contentInnerHeight;const l=en(e,t),n=tn(e,t);return t.height-l-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function on(e,t){return t=t??e.get(rt),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Pa(e,t){const l=e.get("isInnerPage");return typeof l=="function"?Reflect.apply(l,{},[t,e]):!1}function ja(e){return!!e.getForParent(rt)}var Pe=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Pe||{});function ln(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Fe(e,t,l=1,n){const r=lt();return r==null?e:l===0?o.computed(()=>{const a=r.getAll(t);for(let u=a.length-1;u>=0;u--){const s=a[u];if(ln(s,n))return s}const i=e.value;return ln(i,n)?i:null}):o.computed(()=>{const a=e.value;if(ln(a,n))return a;const i=r.getAll(t);for(let u=0;u<i.length;u++){const s=i[u];if(ln(s,n))return s}return null})}function Ae(e){return Fe(e,"readonly",1)}function Me(e){return Fe(e,"disabled",1)}function ge(e,t="modelValue",l=null,n){const r=o.toRef(e,t);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,n&&n("setValue",s))}else u!==i.value&&(i.value=u,n&&n("setValue",u))}),i}const ql=new Map,rn=new Map;let Zn=null;function za(e){Zn=e}function Pl(e,t,l){if(l){let n=rn.get(l);n||(n=new Map,rn.set(l,n)),n.set(e,t)}else ql.set(e,t)}function Ke(e,t,l){!l&&Zn&&(l=Zn(e)??void 0);let n=null;if(l){let r=rn.get(l);r&&(n=r.get(t))}return n||(n=ql.get(t)),n}function Ha(e,t){for(let l in e){const n=e[l];Pl(l,n,t)}}function Ka(e){rn.delete(e)}function Wa(){return{top:0,left:0,bottom:0,right:0}}function Ya(){if(nt){const e=document.documentElement.clientWidth||document.body.clientWidth,t=document.documentElement.clientHeight||document.body.clientHeight;return{rootWidth:e,rootHeight:t,pageLayout:{}}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{}}}function Ua(e,t){if(t.componentPrefix){const l=e.indexOf("-");return`${t.componentPrefix}${e.slice(l)}`}return e}class Ga{packages;installers;_version;get version(){return this._version}constructor(t,l,n){this.packages=t,this.installers=l,this._version=n}install(t,l={}){l?.install!==!1&&(this.packages.forEach(a=>{if(a.install)t.use(a);else if(a.name){const i=Ua(a.name,l);t.component(i,a)}}),this.installers.forEach(a=>{a(t,l)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=pt();if(this.initPageLayout(l,r),l.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=Al(()=>{const u={...l},s=document.documentElement.clientWidth||document.body.clientWidth,c=document.documentElement.clientHeight||document.body.clientHeight;u.width=s,u.height=c,this.initPageLayout(u,r)},150);new window.ResizeObserver(a).observe(window.document.body)}for(const a in l)n.indexOf(a)===-1&&r.set(a,l[a])}initPageLayout(t,l){const n=t.headerBarHeight??0,r=t.footerBarHeight??0,a=ut({},Wa(),t.safeAreaInset),i=Ya(),u=ut({},i.pageLayout,t.pageLayout);l=l??pt(),l.set("safeAreaInset",a),l.set("headerBarHeight",n),l.set("footerBarHeight",r),l.set("pageLayout",u),l.set("rootWidth",i.rootWidth),l.set("rootHeight",i.rootHeight)}setScopeGetter(t){za(t)}setAPI(t,l,n){Pl(t,l,n)}getAPI(t,l,n){return Ke(t,l,n)}batchSetAPI(t,l){Ha(t,l)}clearScopeAPI(t){Ka(t)}getRootDomain(){return pt()}}const Xa=[S.ElAffix,S.ElAlert,S.ElAutocomplete,S.ElAutoResizer,S.ElAvatar,S.ElBacktop,S.ElBadge,S.ElBreadcrumb,S.ElBreadcrumbItem,S.ElButton,S.ElButtonGroup,S.ElCalendar,S.ElCard,S.ElCarousel,S.ElCarouselItem,S.ElCascader,S.ElCascaderPanel,S.ElCheckTag,S.ElCheckbox,S.ElCheckboxButton,S.ElCheckboxGroup,S.ElCol,S.ElCollapse,S.ElCollapseItem,S.ElCollapseTransition,S.ElColorPicker,S.ElConfigProvider,S.ElContainer,S.ElAside,S.ElFooter,S.ElHeader,S.ElMain,S.ElDatePicker,S.ElDescriptions,S.ElDescriptionsItem,S.ElDialog,S.ElDivider,S.ElDrawer,S.ElDropdown,S.ElDropdownItem,S.ElDropdownMenu,S.ElEmpty,S.ElForm,S.ElFormItem,S.ElIcon,S.ElImage,S.ElImageViewer,S.ElInput,S.ElInputNumber,S.ElLink,S.ElMenu,S.ElSubMenu,S.ElMenuItem,S.ElMenuItemGroup,S.ElPageHeader,S.ElPagination,S.ElPopconfirm,S.ElPopover,S.ElPopper,S.ElProgress,S.ElRadio,S.ElRadioButton,S.ElRadioGroup,S.ElRate,S.ElResult,S.ElRow,S.ElScrollbar,S.ElSelect,S.ElOption,S.ElOptionGroup,S.ElSelectV2,S.ElSkeleton,S.ElSkeletonItem,S.ElSlider,S.ElSpace,S.ElSteps,S.ElStep,S.ElSwitch,S.ElTable,S.ElTableColumn,S.ElTableV2,S.ElTabs,S.ElTabPane,S.ElTag,S.ElTimePicker,S.ElTimeSelect,S.ElTimeline,S.ElTimelineItem,S.ElTooltip,S.ElTransfer,S.ElTree,S.ElTreeSelect,S.ElTreeV2,S.ElUpload,S.ElStatistic,S.ElCountdown,S.ElSegmented,S.ElAnchor,S.ElAnchorLink,S.ElWatermark,S.ElMessageBox,S.ElMessage,S.ElNotification],Za=[S.ElInfiniteScroll,S.ElLoading,S.ElMessage,S.ElMessageBox,S.ElNotification,S.ElPopoverDirective],Ja=(e,t={})=>{const l=t.componentPrefix??"fox",n=l[0].toUpperCase()+l.slice(1);Xa.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${n}${a.slice(2)}`,e.component(a,r)):e.use(r)}),Za.forEach(r=>{e.use(r)})};function ie(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(l){return l.baseName=e,l.name=t,l.install=n=>{n.component(l.name,l)},o.defineComponent(l)},createDemo(l){return l.baseName=e,l.name="demo-"+e,o.defineComponent(l)}}}function Se(e,t=null){if(t||(t=o.getCurrentInstance()),t&&t.proxy){let l=t.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}},Re={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}},jl={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}},zl={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}},Hl=[];for(const e in zl)Hl.push(e);const Qa=Symbol.for("InnerPageScopeKey"),ei={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}},ti=(e,t)=>({inheritAttrs:!0,props:{...$e,...jl,...ei},setup(l,{slots:n}){const r=Gn(l.name,l),a=o.inject(Qa,!1);if(r){const d=_l(r,l);Se({getPageContentHeight:()=>nn(r,d),getPageContentWidth:()=>on(r,d),getPageHeaderHeight:()=>en(r,d),getPageFooterHeight:()=>tn(r,d)}),d&&a&&(d.contentHeight="100%")}const i=o.computed(()=>({[e]:!0})),u=o.computed(()=>({})),s=o.getCurrentInstance(),c=(d,h=!1)=>{const p=s?.proxy;p&&typeof p.setNameValidateRules=="function"&&p.setNameValidateRules(d,!0,h)};return o.watch([()=>l.rules,()=>l.pureDataRules],([d,h],[p,v])=>{if(d&&p){const y=o.toRaw(p),f=o.toRaw(d),g=f?Reflect.ownKeys(f):[];(y?Reflect.ownKeys(y):[]).forEach(T=>{g.includes(T)||(f[T]=[])}),c(f)}if(h&&v){const y=o.toRaw(v),f=o.toRaw(h),g=f?Reflect.ownKeys(f):[];(y?Reflect.ownKeys(y):[]).forEach(T=>{g.includes(T)||(f[T]=[])}),c(f,!0)}},{deep:!0}),o.onMounted(()=>{if(l.rules){const d=o.toRaw(l.rules);c(d)}if(l.pureDataRules){const d=o.toRaw(l.pureDataRules);c(d,!0)}}),()=>{const d={class:i.value,style:u.value};return o.h("div",d,[n?.default?.()])}}}),{componentName:ni,create:oi,scope:xg}=ie("page"),Jn=oi(ti(ni));function Qn(e){const t=o.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function an(e){const t=o.unref(e),l=window.getComputedStyle(t,null),n=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:t.clientWidth-n-r,height:t.clientHeight-a-i}}const li=(e,t,l,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: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=lt(),u=i?Qt(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})),d=o.computed(()=>({[`${s}__inner`]:!0,[`${s}__inner--${r.align}`]:!0})),h=r.height!==null&&r.height!==void 0?me(r.height):null,p=o.computed(()=>{const I={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&u){const b=Ge(r.padding??u.headerPadding);return Object.assign(I,b),h&&(u.headerHeight=h),u.headerHeight>0&&(I.height=u.headerHeight),I.safeAreaTop=u.safeAreaTop===-1?0:u.safeAreaTop,I.safeAreaTop>0&&(I.top=I.safeAreaTop+(b.top??0),I.height&&I.height>0&&(I.height=I.height+I.safeAreaTop)),I}if(h&&(I.height=h),r.padding){const b=Ge(r.padding);Object.assign(I,b)}return I}),v=o.ref(null),y=()=>{if(u&&v.value&&!Wt(v.value)){if(!n){const I=Qn(v.value);u.headerAllHeight=I.height}return u.headerMounted=!0,!0}return!1};let f=null;o.onMounted(()=>{u&&(Zt(y,50,5,50,!0),window.ResizeObserver&&v.value&&(f=new window.ResizeObserver(()=>{y()}),f.observe(v.value)))}),o.onUnmounted(()=>{u&&(u.headerMounted=!1,f&&(f.disconnect(),f=null))});const g=o.computed(()=>{const I={};return p.value.height!==null&&p.value.height!==void 0&&(I.height=`${p.value.height}px`),p.value.top!==null&&p.value.top!==void 0&&(I.paddingTop=`${p.value.top}px`),p.value.left!==null&&p.value.left!==void 0&&(I.paddingLeft=`${p.value.left}px`),p.value.right!==null&&p.value.right!==void 0&&(I.paddingRight=`${p.value.right}px`),p.value.bottom!==null&&p.value.bottom!==void 0&&(I.paddingBottom=`${p.value.bottom}px`),I}),M=o.computed(()=>!(p.value.height!==null&&p.value.height!==void 0&&p.value.height<=0));function T(){a.emit("back")}function x(){a.emit("click-title")}function V(){a.emit("click-right")}function _(){a.emit("click-right-text")}const A=()=>{if(!r.leftShow)return null;const I=[];if(a.slots.left)I.push(a.slots.left());else{if(a.slots.leftIcon){const b=o.h("view",{class:"left-icon",onClick:T},[a.slots.leftIcon()]);I.push(b)}else if(r.leftIcon){const b=o.h("view",{class:"left-icon",onClick:T},[o.h(r.leftIcon)]);I.push(b)}if(r.leftText){const b=o.h("view",{class:"left-text",onClick:T},[r.leftText]);I.push(b)}}return I.length===0?null:o.h("view",{class:"fox-header-bar__left"},I)},F=()=>{if(!r.rightShow)return null;const I=[];if(a.slots.right)I.push(a.slots.right());else{if(r.rightText){const b=o.h("view",{class:"right-text",onClick:_},[r.rightText]);I.push(b)}if(a.slots.rightIcon){const b=o.h("view",{class:"right-icon",onClick:V},[a.slots.rightIcon()]);I.push(b)}else if(r.rightIcon){const b=o.h("view",{class:"right-icon",onClick:V},[o.h(r.rightIcon)]);I.push(b)}}return I.length===0?null:o.h("view",{class:"fox-header-bar__right"},I)},P=()=>{if(!r.titleShow)return null;const I=[],b=a.slots.default?a.slots.default():null;if(b)I.push(b);else{if(r.title){const z=o.h("view",{class:"title-text"},[r.title]);I.push(z)}if(a.slots.titleIcon){const z=o.h("view",{class:"title-icon",onClick:x},[a.slots.titleIcon()]);I.push(z)}else if(r.titleIcon){const z=o.h("view",{class:"title-icon",onClick:x},[o.h(r.titleIcon)]);I.push(z)}}return I.length===0?null:o.h("view",{class:"fox-header-bar__title"},I)},$=()=>{const I=[],b=a.slots.bottom?a.slots.bottom():null;return b&&I.push(b),I.length===0?null:o.h("view",{class:"fox-header-bar__bottom"},I)};return()=>{if(!M.value)return null;const I=[];if(a.slots.all)I.push(a.slots.all());else{const z=[],ee=A();ee&&z.push(ee);const q=P();q&&z.push(q);const N=F();if(N&&z.push(N),z.length>0){const j=o.h("view",{class:d.value},z);I.push(j)}const L=$();L&&I.push(L)}if(I.length===0)return null;const b={class:c.value,style:g.value,ref:v};return o.h("view",b,I)}}}),{componentName:ri,create:ai,scope:ii}=ie("header-bar"),eo=ai(li(ri,ii,Ie.ArrowLeft));function si(e,t,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(n,r){const a=lt(),i=a?Qt(a):null,u=o.computed(()=>{const y=e;return{[y]:!0,[`${y}--${n.align}`]:!0,[`${y}--border`]:n.border,[`${y}--fixed`]:n.fixed,[`${y}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),s=n.height!==null&&n.height!==void 0?me(n.height):null,c=o.computed(()=>{const y={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const f=Ge(n.padding??i.footerPadding);return Object.assign(y,f),s&&(i.footerHeight=s),i.footerHeight>0&&(y.height=i.footerHeight),y.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,y.safeAreaBottom>0&&(y.bottom=y.safeAreaBottom+(f.bottom??0),y.height&&y.height>0&&(y.height=y.height+y.safeAreaBottom)),y}if(s&&(y.height=s),n.padding){const f=Ge(n.padding);Object.assign(y,f)}return y}),d=o.ref(null),h=()=>{if(i&&d.value&&!Wt(d.value)){if(!l){const y=Qn(d.value);i.footerAllHeight=y.height}return i.footerMounted=!0,!0}return!1};let p=null;o.onMounted(()=>{i&&(Zt(h,50,5,50,!0),window.ResizeObserver&&(p=new window.ResizeObserver(()=>{h()}),p.observe(d.value)))}),o.onUnmounted(()=>{i&&(i.footerMounted=!1,p&&(p.disconnect(),p=null))});const v=o.computed(()=>{const y={};return c.value.height!==null&&c.value.height!==void 0&&(y.height=Ve(c.value.height)),c.value.top!==null&&c.value.top!==void 0&&(y.paddingTop=Ve(c.value.top)),c.value.left!==null&&c.value.left!==void 0&&(y.paddingLeft=Ve(c.value.left)),c.value.right!==null&&c.value.right!==void 0&&(y.paddingRight=Ve(c.value.right)),c.value.bottom!==null&&c.value.bottom!==void 0&&(y.paddingBottom=Ve(c.value.bottom)),y});return()=>{const y=r.slots.default?r.slots.default():[],f={ref:d,class:u.value,style:v.value};return o.h("view",f,y)}}}}const{componentName:ui,create:ci,scope:Tg}=ie("footer-bar"),to=ci(si(ui));function fi(e,t){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(l,{slots:n,attrs:r}){const a=lt(),i=o.computed(()=>({[e]:!0})),u=a?Qt(a):null,s=o.computed(()=>{const p={};if(a&&u){if(l.padding){const V=Ge(l.padding);Object.assign(u.contentPadding,V)}const v=en(a,u),y=tn(a,u);let f="";u.contentHeight?f=`${u.contentHeight}`:f=`${u.height}px`,p.height=f;let g=(u&&u.contentPadding&&u.contentPadding.top)??-1;(g>=0||v>0)&&(g=g<0?0:g,p.paddingTop=`${v+g}px`);let M=(u&&u.contentPadding&&u.contentPadding.bottom)??-1;(M>=0||y>0)&&(M=M<0?0:M,p.paddingBottom=`${y+M}px`);const T=(u&&u.contentPadding&&u.contentPadding.left)??-1;T>=0&&(p.paddingLeft=`${T}px`);const x=(u&&u.contentPadding&&u.contentPadding.right)??-1;return x>=0&&(p.paddingRight=`${x}px`),p}if(l.padding){const v=Ge(l.padding);v.left&&(p.paddingLeft=`${v.left}px`),v.top&&(p.paddingTop=`${v.top}px`),v.right&&(p.paddingRight=`${v.right}px`),v.bottom&&(p.paddingBottom=`${v.bottom}px`)}return p}),c=o.ref(null),d=ot(()=>{if(u&&c.value){const p=an(c.value);u.contentInnerHeight=p.height,u.contentInnerWidth=p.width}},0);let h=null;return o.onMounted(()=>{d(),window.ResizeObserver&&c.value&&(h=new window.ResizeObserver(()=>{d()}),h.observe(c.value))}),o.onUnmounted(()=>{h&&(h.disconnect(),h=null)}),()=>{const p=l.tag??"view",v={...r,ref:c,class:i.value,style:s.value};return o.h(p,v,n)}}}}const{componentName:di,create:hi,scope:$g}=ie("content"),no=hi(fi(di)),bt="GroupStateKey",Kl=Symbol.for("GroupScopeKey");function sn(){return o.inject(Kl,!1)}function un(e=!0){o.provide(Kl,e)}function gi(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const r=t[n];Kn(r)||(e[n]=r)})}function mi(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};gi(n,t);const r=o.shallowRef(n),a=o.markRaw({layout:r,passport:0,order:{index:0}});return e.set(bt,a),a}function oo(e,t,l=-1,n=-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),n===-1&&(n=c.gutter??0),a||(a=c.minItemWidth??-1),i||(i=c.maxItemWidth??-1);const d=me(a),h=me(i);u||(u=c.type??"grid");const p=()=>{const v=t===""||t===-1,y=me(t);let f=Te(l);const g=me(n);if(!v){let x=(y-(f-1)*g)/f;for(;h!==-1&&x>h;)f++,x=(y-(f-1)*g)/f;for(;d!==-1&&f>1&&x<d;)f--,x=(y-(f-1)*g)/f}let M=!1;const T=s.layout;T.value.width=t,T.value.column!==f&&(T.value.column=f,M=!0),T.value.gutter!==g&&(T.value.gutter=g,M=!0),T.value.type!==u&&(T.value.type=u,M=!0),M&&o.triggerRef(T)};if(r)p();else{const v=++s.passport;setTimeout(()=>{v===s.passport&&p()},50)}}function cn(e,t=!1){let l;return t?l=e.getForParent(bt):l=e.get(bt),l.layout}function fn(e,t=!1){let l;return t?l=e.getForParent(bt):l=e.get(bt),l.order}function Wl(e,t=1){if(t==="stretch")return-1;const l=Te(t);return l===-1?100:100*l/e}function dn(e,t,l=1,n=0,r){const a={};let i=0;r?i=me(r):i=Wl(t.column,l),i>0&&(a.width=`${i}%`);const u=Wl(t.column,n);u>0&&(a["margin-left"]=`${u}%`);const s=t.gutter/2;return s>0&&(a["padding-left"]=`${s}px`,a["padding-right"]=`${s}px`),a}function hn(e,t,l=1,n=0){if(l==="stretch"){const s=e.index%t.column,c=s+(t.column-s);return e.index=e.index+(c-s),{"grid-column":`${s+1} / -1`}}let r=Te(l);if(r===-1){const s=e.index%t.column;return t.column,s==0?e.index=e.index+t.column:e.index=e.index+(t.column-s)+t.column,{"grid-column":"1 / -1"}}if(r>t.column){const s=e.index%t.column;return t.column,s==0?e.index=e.index+t.column:e.index=e.index+(t.column-s)+t.column,{"grid-column":"1 / -1"}}const a=Te(n)%t.column;let i=(e.index+a)%t.column,u=i+r;return u>t.column?(i=0,u=i+r,e.index=e.index+(t.column-i)+r):e.index=e.index+a+r,a>0?{"grid-column":`${i+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}const Yl=Symbol("RollingStateKey");function yi(e){o.provide(Yl,e)}function pi(){return o.inject(Yl,null)}function lo(e){let t=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"));t=e.clientHeight-r-a}else t=e.offsetHeight;return t}function bi(e){let t=lo(e);if(t<=0){const l=e.cloneNode(!0),n=e.offsetWidth;l.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(l),t=lo(l),document.body.removeChild(l)}return t}function vi(e,t,l){if(e<=0)return"1fr";const n=(e-(t-1)*l)/t;return n>0?`${n}px`:"1fr"}const wi={...$e,...jl,...zl};function Si(e,t,l){return{props:wi,emits:["update:collapse","header-click"],setup(n,r){const a=Gn(n.prop??n.name,n,Hl),i=mi(a,{type:n.type}),u=sn();un(!0);const s=n.rollingDisplay?pi():null,c=o.ref(null),d=o.computed(()=>n.rollingDisplay?s&&!s.disabled:!1),h=o.computed(()=>u&&a?cn(a,!0).value:null),p=o.getCurrentInstance(),v=(k,W=!1)=>{const J=p?.proxy;J&&typeof J.setNameValidateRules=="function"&&J.setNameValidateRules(k,!0,W)};o.watch([()=>n.rules,()=>n.pureDataRules],([k,W],[J,O])=>{if(k&&J){const K=o.toRaw(J),X=o.toRaw(k),le=X?Reflect.ownKeys(X):[];(K?Reflect.ownKeys(K):[]).forEach(fe=>{le.includes(fe)||(X[fe]=[])}),v(X)}if(W&&O){const K=o.toRaw(O),X=o.toRaw(W),le=X?Reflect.ownKeys(X):[];(K?Reflect.ownKeys(K):[]).forEach(fe=>{le.includes(fe)||(X[fe]=[])}),v(X,!0)}},{deep:!0});const y=e,f=o.computed(()=>{const k={};k.height=N.value;const W=u?fn(a,!0):null;if(h.value&&W){if(h.value.type==="grid"){const J=hn(W,h.value,n.span,n.offset);Object.assign(k,J)}else if(h.value.type==="flow"){const J=dn(W,h.value,n.span,n.offset,n.width);Object.assign(k,J)}}else if(n.width){const J=Ve(n.width);k.width=J}return k}),g=o.computed(()=>{const k=i.layout.value.type;return k==="grid"||k==="flow"?{[`${y}--${k}`]:!0,[`${y}--${k}-justify-${n.justify}`]:!0,[`${y}--${k}-align-${n.align}`]:!0,[`${y}--gutter`]:!0}:{[`${y}--${k}`]:!0,[`${y}--gutter`]:!0}}),M=o.computed(()=>{if(i.layout.value.type==="grid"){let W="";if(n.columnWidth)W=`repeat(auto-fill, ${n.columnWidth})`;else{const J=vi(P.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}}}),T=o.toRef(n,"gutter"),x=o.toRef(n,"column"),V=o.computed(()=>u||d.value?!0:ue(n.isWrap)),_=[],A=k=>{_.push(k)},F=()=>{let k=_.length;_.splice(0,k)},P=o.ref(-1),$=k=>{const W=an(k).width;W>0&&W!==P.value&&(P.value=W)};oo(a,P.value,x.value,T.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&o.watch([P,x,T],([k,W,J])=>{i.order.index=0,oo(a,k,W,J,!1,n.minItemWidth,n.maxItemWidth,n.type)});const I=o.computed(()=>L.value?n.expandText??"":n.collapseText??""),b=o.computed(()=>({[`${e}__header-collapse-text`]:!0})),z=o.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!L.value,"is-collapse":L.value})),ee=o.ref(),q=o.ref(),N=o.computed(()=>j.value||Ve(n.height)||""),L=o.ref(!1),j=o.ref(""),G=o.ref(!1);let Q=-1;const B=(k,W=!0)=>{const J=ee.value;if(J&&L.value!==k){if(Q=Q===-1?bi(J):Q,G.value=!0,W)if(J.style["will-change"]="height",J.ontransitionend=function(){J.ontransitionend=null,this.style["will-change"]="auto",k||(j.value="",G.value=!1)},k){let O=0;n.collapseHeight?O=n.collapseHeight:q.value&&q.value.classList.contains(`${e}__header`)&&(O=q.value.offsetHeight),j.value=`${Q}px`,o.nextTick(()=>{j.value=`${O}px`})}else j.value=`${Q}px`;else if(k){let O=0;n.collapseHeight?O=n.collapseHeight:q.value&&q.value.classList.contains(`${e}__header`)&&(O=q.value.offsetHeight),j.value=`${O}px`}else G.value=!1,j.value=`${Q}px`;L.value=k,r.emit("update:collapse",k)}};o.watch(()=>n.collapse,k=>{B(k)});const te=k=>{r.emit("header-click",k)},E=()=>{C()},C=k=>{k=k??!L.value,B(k)};Se({toggleCollapse:C,doLayout:()=>{_[0]&&($(_[0]),oo(a,P.value,x.value,T.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let D=null,w=!0;const H=k=>{if(n.rules){const W=o.toRaw(n.rules);v(W)}if(n.pureDataRules){const W=o.toRaw(n.pureDataRules);v(W,!0)}if(nt&&(k&&B(ue(n.collapse),!1),n.autoLayout&&Array.isArray(_)&&_.length>0)){const W=_[0];$(W),window.ResizeObserver&&(D=new window.ResizeObserver(()=>{$(W)}),D.observe(W))}},Z=()=>{D?.disconnect(),D=null},oe=!d.value||s?.acquire();oe&&(c.value=d.value?!0:null),o.onMounted(()=>{if(oe&&(H(w),w=!1),d.value&&s){let k=null,W=s.initialHeight;s.observe(ee.value,J=>{if(J!==c.value)if(J)c.value=!0,L.value||(j.value=""),k=setTimeout(()=>{k=null,c.value!==!1&&(H(w),w=!1)},100);else{if(k!==null&&clearTimeout(k),c.value=!1,!L.value)if(w)j.value=s.initialHeight;else{let O=lo(ee.value);O<=0?j.value=W:(j.value=`${O}px`,W=j.value)}w||Z()}})}}),o.onUnmounted(()=>{D?.disconnect(),s&&s.unobserve(ee.value)});const U=(k="right")=>{const W=[];if(I.value){const K={class:b.value},X=o.h("span",K,[I.value]);W.push(X)}const J={class:z.value},O=l(n.collapseIcon,J);return O&&W.push(O),W.length>0?o.h("div",{class:{[`${y}__header-collapse`]:!0,[`is-${k}`]:!0},onClick:E},W):null},Y=(k,W,J,O)=>{const K={...g.value};return W===0&&(K[`${y}__first`]=!0),J>=O-1&&(K[`${y}__last`]=!0),o.h("div",{ref:A,key:`${W}`,class:K,style:M.value},k)};return()=>{if(d.value&&c.value!==!0){const K=n.tag||"div";return o.h(K,{ref:ee,prop:n.name,class:{[`${y}`]:!0,"is-collapse":G.value},style:f.value},[])}i.order.index=0;const k=[];let W=0;if(r.slots.header){const K={key:`${W++}`,ref:q,class:{[`${y}__header`]:!0,[`${y}__first`]:!0},onClick:te},X=o.h("div",K,[r.slots.header()]);k.push(X)}else{const K=[],X=n.collapsePosition==="left";if(X&&n.showCollapse){const le=U("left");le&&K.push(le)}if(n.title||r.slots.title){if(n.showMark){const le={class:{[`${y}__header-mark`]:!0}};n.markColor&&(le.style={background:n.markColor});const ce=o.h("div",le);K.push(ce)}if(r.slots.title){const le=o.h("div",{class:{[`${y}__header-title`]:!0}},[r.slots.title()]);K.push(le)}else if(n.title){const le=o.h("div",{class:{[`${y}__header-title`]:!0}},[n.title]);K.push(le)}}if(r.slots.toolbar&&K.push(r.slots.toolbar()),!X&&n.showCollapse){const le=U("right");le&&K.push(le)}if(K.length>0){const le={key:`${W++}`,ref:q,class:{[`${y}__header`]:!0,[`${y}__first`]:!0},onClick:te},ce=o.h("div",le,K);k.push(ce)}}F();const J=r.slots.default?r.slots.default():[],O=i.layout.value.type;if(O==="grid"){const K=Y(J,W++,0,J.length);k.push(K)}else if(O==="flow"){const K=Y(J,W++,0,J.length);k.push(K)}else for(let K=0;K<J.length;K++){const X=J[K],le=Y([X],W++,K,J.length);k.push(le)}if(V.value){const K=n.tag||"div";return o.h(K,{ref:ee,prop:n.name,class:{[`${y}`]:!0,"is-collapse":G.value},style:f.value},[k])}else return k}}}}const{componentName:xi,create:Ti,scope:$i}=ie("group"),ro=Ti(Si(xi,$i,(e,t)=>(e=e??Ie.ArrowUp,o.h(S.ElIcon,t,{default:()=>[o.h(e)]}))));function Ci(e){return e===window}const Ei=/matrix\((.+)\)/,ao=e=>{const t=o.unref(e);if(!t)return{x:0,y:0};if(Ci(t))return{x:0,y:0};let l=0,n=0,r=t;for(;r!==null;)l+=r.offsetLeft,n+=r.offsetTop,r=r.offsetParent;let a=0,i=0,u=0,s=0;for(r=t;r!==document;){i+=r.scrollTop,a+=r.scrollLeft;const{transform:c}=window.getComputedStyle(r);if(c){const d=Ei.exec(c);if(d){let p=d[1].split(/\s*,\s*/);p.length==6&&(u+=Number(p[4]),s+=Number(p[5]))}}r=r.parentNode}return l-=a,n-=i,l+=u,n+=s,{x:l,y:n}};class Ni{watchedListeners=[];add(t){this.watchedListeners.push(t)}remove(t){const l=this.watchedListeners.indexOf(t);l!==-1&&this.watchedListeners.splice(l,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(t=>{try{t()}catch{}})}}class ki{monitorRegister=new WeakMap;watch(t,l){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a||(a=new Ni,n.addEventListener("scroll",a.listen),n===document.body&&n.addEventListener("resize",a.listen),this.monitorRegister.set(n,a)),a.add(l),n=n.parentNode}}unwatch(t,l){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a&&(a.remove(l),a.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",a.listen),n===document.body&&n.removeEventListener("resize",a.listen))),n=n.parentNode}}}const Dt=new ki,Ul={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},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:Ii,create:Oi}=ie("price"),Di=Oi({props:{...Ul},setup(e){const t=o.computed(()=>({[Ii]:!0})),l=o.computed(()=>e.needSymbol?e.symbol:""),n=o.computed(()=>Nt(e.price)==0?"":zt(e.price,e.decimalLength,!0,Te(e.digits),e.separator)),r=o.computed(()=>{let i=n.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(0,u)}),a=o.computed(()=>{let i=n.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(u+1)});return{classes:t,showSymbol:l,intText:r,decimalText:a}}}),We=(e,t)=>{const l=e.__vccOpts||e;for(const[n,r]of t)l[n]=r;return l},Vi=["innerHTML"],Ri=["innerHTML"];function Fi(e,t,l,n,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,Vi)):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,Ri)):o.createCommentVNode("",!0)],2)}const gn=We(Di,[["render",Fi]]),{componentName:io,create:Ai}=ie("hint-text"),Mi=Ai({components:{Price:gn},props:{...Ul,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 l=o.ref({top:null,right:null,bottom:null,left:null}),n=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=(b,z,ee,q,N,L)=>{const j=document.documentElement.clientWidth||document.body.clientWidth,G=document.documentElement.clientHeight||document.body.clientHeight,Q=b.split("-");let B=[];Q[0]==="top"?B=["top","bottom","right","left"]:Q[0]==="bottom"?B=["bottom","top","right","left"]:Q[0]==="left"?B=["left","top","bottom","right"]:Q[0]==="right"&&(B=["right","top","bottom","left"]);const te={top:null,right:null,bottom:null,left:null},E=[];for(let C=0;C<B.length;C++){const R=B[C];if(E[0]=R,Q[1]&&(E[1]=Q[1]),R==="top"){const D=z.y-L-e.arrowSize-e.offset;if(D>=0){te.top=D;let w=0;Q[1]==="start"?w=z.x:Q[1]==="end"?w=z.x+ee-N:w=z.x+ee/2-N/2;const H=j-w-N;H<0?(w+=H,h.value=-H):h.value=0,te.left=w<0?0:w;break}}else if(R==="bottom"){const D=z.y+q+e.arrowSize+e.offset;if(D+L<=G){te.top=D;let w=0;Q[1]==="start"?w=z.x:Q[1]==="end"?w=z.x+ee-N:w=z.x+ee/2-N/2;const H=j-w-N;H<0?(w+=H,h.value=-H):h.value=0,te.left=w<0?0:w;break}}else if(R==="left"){const D=z.x-N-e.arrowSize-e.offset;if(D>=0){te.left=D;let w=0;Q[1]==="start"?w=z.y:Q[1]==="end"?w=z.y+q-L:w=z.y+q/2-L/2,te.top=w<0?0:w;break}}else if(R==="right"){const D=z.x+ee+e.arrowSize+e.offset;if(D+N<=j){te.left=D;let w=0;Q[1]==="start"?w=z.y:Q[1]==="end"?w=z.y+q-L:w=z.y+q/2-L/2,te.top=w<0?0:w;break}}}return{bestPlacement:E.join("-"),bestInsetRect:te}},d=(b,z,ee=10)=>{if(!nt||z===!1||!b)return;n.value=ao(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const q=s.value.offsetHeight,N=s.value.offsetWidth,{bestPlacement:L,bestInsetRect:j}=c(e.placement,n.value,r.value,a.value,N,q);i.value=L,l.value=j,u.value=!0},h=o.ref(0),p=ot(()=>{d(e.message,e.visible)},10),v=o.ref(e.visible);o.watch(()=>e.visible,b=>{v.value=b});const y=o.computed(()=>v.value&&f.value),f=o.ref(!0),g=ot(b=>{const z=b[0];z&&(f.value=z.isIntersecting)},10),M=new IntersectionObserver(g);o.watch([()=>e.message,()=>e.visible],([b,z])=>{setTimeout(()=>{d(e.message,e.visible)},0)}),o.onMounted(()=>{setTimeout(()=>{d(e.message,e.visible)},0),Dt.watch(e.reference,p),M.observe(e.reference)}),o.onBeforeUnmount(()=>{Dt.unwatch(e.reference,p),M.unobserve(e.reference),M.disconnect()});const T=o.computed(()=>{const b={[io]:!0};return i.value.startsWith("top")?b["is-top"]=!0:i.value.startsWith("right")?b["is-right"]=!0:i.value.startsWith("bottom")?b["is-bottom"]=!0:i.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=o.computed(()=>{const b={};l.value.top!==null&&(b.top=`${l.value.top}px`),l.value.right!==null&&(b.right=`${l.value.right}px`),l.value.bottom!==null&&(b.bottom=`${l.value.bottom}px`),l.value.left!==null&&(b.left=`${l.value.left}px`),e.autoFit&&(b["min-width"]=`${r.value}px`);const z=document.documentElement.clientWidth||document.body.clientWidth;return b["max-width"]=`${z}px`,u.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}),V=o.computed(()=>{const b=[`${io}__content`];return e.customTextClass&&b.push(e.customTextClass),b}),_=o.computed(()=>{const b={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(b,e.customTextStyle),b}),A=o.computed(()=>({[`${io}__arrow`]:!0})),F=o.computed(()=>{const b={};return e.showArrow?(b.width=`${e.arrowSize}px`,b.height=`${e.arrowSize}px`,i.value==="top"?(b.left="50%",b.bottom=`-${e.arrowSize}px`,b.transform=" translate(-50%, 0%)"):i.value==="top-start"?(b.left=`${e.arrowOffset+h.value}px`,b.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(b.right=`${e.arrowOffset-h.value}px`,b.bottom=`-${e.arrowSize}px`):i.value==="right"?(b.left=`-${e.arrowSize}px`,b.top="50%",b.transform=" translate(0%, -50%)"):i.value==="right-start"?(b.left=`-${e.arrowSize}px`,b.top=`${e.arrowOffset}px`):i.value==="right-end"?(b.left=`-${e.arrowSize}px`,b.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(b.left="50%",b.top=`-${e.arrowSize}px`,b.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(b.left=`${e.arrowOffset+h.value}px`,b.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(b.right=`${e.arrowOffset-h.value}px`,b.top=`-${e.arrowSize}px`):i.value==="left"?(b.right=`-${e.arrowSize}px`,b.top="50%",b.transform=" translate(0%, -50%)"):i.value==="left-start"?(b.right=`-${e.arrowSize}px`,b.top=`${e.arrowOffset}px`):i.value==="left-end"&&(b.right=`-${e.arrowSize}px`,b.bottom=`-${e.arrowOffset}px`),b):{display:"none"}}),P=o.computed(()=>y.value&&e.closeOnClick),$=o.computed(()=>{const b={};return e.zIndex&&(b["z-index"]=`${e.zIndex}`),b});return{show:y,tipRef:s,classes:T,styles:x,textClasses:V,textStyles:_,arrowClasses:A,arrowStyles:F,overlayShow:P,overlayStyle:$,onClickOverlay:()=>{v.value=!1,t.emit("update:visible",!1)}}}}),Li=["innerHTML"];function Bi(e,t,l,n,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:t[0]||(t[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,Li))],6),o.createElementVNode("div",{class:o.normalizeClass(e.arrowClasses),style:o.normalizeStyle(e.arrowStyles)},null,6)],6),[[o.vShow,e.show]])],64)}const Vt=We(Mi,[["render",Bi]]);class Gl{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 so={},_i=new Gl,vt=new Map,mn=e=>{if(e){const t=document.getElementById(e);vt.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of vt.keys()){const l=document.getElementById(t);l&&l.parentNode?.removeChild(l)}vt.clear()}},qi=e=>{e.unmount=mn;const t=document.getElementById(e.id);if(t){const l=vt.get(e.id);l?e={...so,...l,...e}:e={...so,...e},e.transition=!1;const n=o.createVNode(Vt,e);o.render(n,t)}return e.id},Pi=e=>{e.unmount=mn;let t=e.id??`hinttext_${_i.get()}`;e={...so,...e},e.id=t,vt.set(t,e);const l=document.createElement("div");l.id=e.id;const n=o.createVNode(Vt,e);return o.render(n,l),document.body.appendChild(l),t},ji=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Le={show(e,t,l={},n=!0){ji(t);const r=l.id;return r&&vt.has(r)?qi({...l,message:t,reference:e}):(n&&mn(),Pi({...l,message:t,reference:e}))},hide(e){mn(e)},install(e){e.config.globalProperties.$hintText=Le}};function zi(e,t,l,n=!1){return{inheritAttrs:!0,props:{...$e,...Re},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;ke({componentName:e,validate:!1},i);const u=lt(),s=sn();un(!1);const c=o.computed(()=>s&&u?cn(u,!1).value:null),d=e,h=o.ref(null),p=o.computed(()=>{const O={[d]:!0,[`${d}__gutter`]:c.value&&c.value.type!=="flow",[`${d}__stretch`]:r.span==="stretch",[`${d}__input--border`]:ue(r.hasBorder)};if(O[r.errorMarkClass]=!!L.value,O[r.warnMarkClass]=!!q.value,O[r.infoMarkClass]=!!z.value,typeof h.value=="function"){const K=h.value(i);O[K]=!0}else if(typeof h.value=="string"){const K=h.value;O[K]=!0}return O}),v=o.ref(null),y=o.computed(()=>{const O={};if(r.width)r.width!=="auto"&&(O.width=Ve(r.width));else{const K=s&&u?fn(u,!1):null;if(c.value&&K){if(c.value.type==="grid"){const X=hn(K,c.value,r.span,r.offset);Object.assign(O,X)}else if(c.value.type==="flow"){const X=dn(K,c.value,r.span,r.offset,r.width);Object.assign(O,X)}}}if(typeof v.value=="function"){const K=v.value(i);K&&Object.assign(O,K)}else if(v.value&&typeof v.value=="object"){const K=v.value;Object.assign(O,K)}return O}),f=o.ref(null),g=o.computed({get:()=>f.value??ue(r.isRequired),set:O=>{f.value=O}}),M=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",T=Fe(o.toRef(r,"labelPosition"),"labelPosition",Pe.Near),x=o.computed(()=>T&&T.value==="top"?"top":T&&T.value==="right"?"right":"left"),V=o.computed(()=>({[`${d}__main`]:!0,[`${d}__main--${x.value}`]:!0})),_=o.computed(()=>({label:!0,[`label--${x.value}`]:!0})),A=Fe(o.toRef(r,"labelWidth"),"labelWidth",Pe.Near),F=o.computed(()=>A&&A.value?{width:Ve(A.value)}:{}),P=o.computed(()=>({"label--string":!0,"label--required":g.value})),$=o.computed(()=>({content:!0,[r.contentClass]:!0})),I=o.computed(()=>({...r.contentStyle})),b=o.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Se({setRequired(O){g.value=O},setErrorTip(O){b.errorTip=O},setErrorIcon(O){b.errorIcon=O},setWarnTip(O){b.warnTip=O},setWarnIcon(O){b.warnIcon=O},setInfoTip(O){b.infoTip=O},setInfoIcon(O){b.infoIcon=O},setCustomClassName(O){h.value=O},setCustomStyle(O){v.value=O}});const z=o.computed(()=>r.infoTip||b.infoTip),ee=o.computed(()=>r.infoIcon||b.infoIcon),q=o.computed(()=>r.warnTip||b.warnTip),N=o.computed(()=>r.warnIcon||b.warnIcon),L=o.computed(()=>r.errorTip||b.errorTip),j=o.computed(()=>r.errorIcon||b.errorIcon),G=o.computed(()=>L.value?"error":q.value?"warn":z.value?"info":""),Q=()=>G.value.length>0,B=o.computed(()=>G.value==="error"?L.value:G.value==="warn"?q.value:G.value==="info"?z.value:""),te=o.computed(()=>G.value==="error"?j.value:G.value==="warn"?N.value:G.value==="info"?ee.value:null),E=o.computed(()=>{const O={[`${d}__tip`]:!0,[`${d}__tip--${G.value}`]:!0,[`${d}--animate`]:!0};return G.value==="error"&&r.errorClass?O[`${r.errorClass}`]=!0:G.value==="warn"&&r.warnClass?O[`${r.warnClass}`]=!0:G.value==="info"&&r.infoClass&&(O[`${r.infoClass}`]=!0),O}),C=o.computed(()=>{const O={};return T&&T.value==="top"||!M()?O["padding-left"]="0px":A&&A.value&&(O["padding-left"]=Ve(A.value)),O}),R=o.ref();let D="";o.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([O,K,X,le])=>{R.value&&(O&&!he(K)?D?l.show(R.value,K,{...le,id:D,type:X},!0):D=l.show(R.value,K,{...le,type:X},!0):l.hide(D))});let w=null;const H=()=>{w||!R.value||(w=new IntersectionObserver(O=>{let K=!1;for(let X of O)if(X.intersectionRatio>0){K=!0,K&&a.emit("appear",X);break}K||a.emit("disappear")}),w.observe(R.value))},Z=()=>{!w||!R.value||(w.unobserve(R.value),w=null)};o.watch(()=>ue(r.appearListen),O=>{O?H():Z()}),o.onMounted(()=>{ue(r.appearListen)&&H()}),o.onUnmounted(Z);const oe=()=>{if(!M())return null;const O=[],K=a.slots?.label?.()??r.label,X={class:P.value},le=o.h("div",X,[K]);if(O.push(le),a.slots.fixedPreTip){const fe=a.slots.fixedPreTip();O.push(fe)}const ce={class:_.value,style:F.value};return o.h("div",ce,O)},U=()=>{const O=[];if(a.slots.prepend){const X=a.slots.prepend();O.push(X)}if(a.slots.default){const X=a.slots.default();O.push(X)}if(a.slots.append){const X=a.slots.append();O.push(X)}if(a.slots.fixedTip){const X={class:[`${d}__fixed-tip`]},le=o.h("div",X,[a.slots.fixedTip()]);O.push(le)}const K={ref:R,class:$.value,style:I.value};return o.h("div",K,O)},Y=()=>{const O=te.value;return O?typeof O=="function"?o.h("div",{class:"fox-item__tip--icon"},[O()]):o.h("div",{class:"fox-item__tip--icon"},[o.h(O)]):null},k=()=>{const O=B.value;return O?typeof O=="function"?o.h("div",{class:"fox-item__tip--text"},[O()]):o.h("div",{class:"fox-item__tip--text"},[O]):null},W=()=>{if(!Q())return null;const O=[],K=Y();K&&O.push(K);const X=k();X&&O.push(X);const le={class:E.value,style:C.value};return o.h("div",le,O)},J=()=>a.slots?.hide?.()??null;return()=>{const O=[],K=[],X=oe();X&&K.push(X);const le=U();le&&K.push(le);const ce={class:V.value},fe=o.h("div",ce,K);O.push(fe);const ye=W();ye&&O.push(ye);const pe=J();pe&&O.push(pe);const Ee={class:p.value,style:y.value,prop:r.prop};return o.h("div",Ee,O)}}}}const{componentName:Hi,create:Ki,scope:Wi}=ie("item"),Ce=Ki(zi(Hi,Wi,Le,!1));function Yi(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(l,n){const r=lt(),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 d={};if(l.width)l.width!=="auto"&&(d.width=Ve(l.width));else{const h=a&&r?fn(r,!1):null;if(i.value&&h)if(i.value.type==="grid"){const p=hn(h,i.value,l.span,l.offset);Object.assign(d,p)}else if(i.value.type==="flow"){const p=dn(h,i.value,l.span,l.offset,l.width);Object.assign(d,p)}else return l.width&&(d.width=Ve(l.width)),d}return d});return()=>{const d={class:s.value,style:c.value};return n.slots&&typeof n.slots.default=="function"?o.h("div",d,n.slots.default()):o.h("div",d)}}}}const{componentName:Ui,create:Gi,scope:Eg}=ie("slot-item"),uo=Gi(Yi(Ui));function Xi(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(l,n){const r=e,a=o.computed(()=>({[r]:!0,[`${r}__stretch`]:l.span==="stretch",[`${r}__${l.align}`]:!0})),i=lt(),u=sn();un(!1);const s=o.computed(()=>{const c={};if(u&&i){const d=cn(i,!1),h=fn(i,!1);if(d.value&&h)if(d.value.type==="grid"){const p=hn(h,d.value,l.span,l.offset);Object.assign(c,p)}else if(d.value.type==="flow"){const p=dn(h,d.value,l.span,l.offset,l.width);Object.assign(c,p)}else l.width&&(c.width=Ve(l.width))}else l.width&&(c.width=Ve(l.width));return c});return()=>{const c=[];if(n.slots.default){const h=n.slots.default();if(l.divide)for(let p=0;p<h.length;p++){if(p>0){const v=o.h("div",{class:{[`${r}__divide`]:!0}});c.push(v)}c.push(h[p])}else Reflect.apply([].push,c,h)}const d={class:a.value,style:s.value};return o.h("div",d,c)}}}}const{componentName:Zi,create:Ji,scope:Ng}=ie("row-item"),co=Ji(Xi(Zi)),Xe=(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},Xl={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 Qi(e,t,l){return{props:{...$e,...Re,...Xl},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),{toLocaleRefs:d}=qe.useFoxI18n(t),h=d(n,["placeholder"]),p=o.ref(!1),v=ge(n,"modelValue",null,c),y=e,f=o.computed(()=>({[y]:!0,[`${y}__disabled`]:i.value,[`${y}__readonly`]:s.value})),g=N=>{v.value=N,c("update:modelValue",N),c("input",N)},M=N=>{c("change",N)};let T=ge(n,"hintText"),x=o.ref(!1);const V=N=>{let j=N.target.value;p.value=!0,he(T.value)||(x.value=!0),c("focus",j,N)},_=N=>{setTimeout(()=>{x.value&&(x.value=!1),p.value=!1},0);let j=N.target.value;n.maxLength&&j.length>Number(n.maxLength)&&(j=j.slice(0,Number(n.maxLength))),c("blur",j,N)},A=()=>{c("clear","")},F=o.ref(!1);let P=null;const $=()=>{n.showTooltip&&F.value===!1&&(P&&clearTimeout(P),P=setTimeout(()=>{F.value=!0},150))},I=()=>{P&&(clearTimeout(P),F.value=!1,P=null)},b=o.computed(()=>F.value||x.value),z=o.computed(()=>F.value?v.value:T.value),ee=o.computed(()=>Nt(n.unit)>0),q=o.ref();return Se({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()},setDisabled:N=>{a.value=N},setReadonly:N=>{u.value=N}}),()=>{const L={...Xe(r.attrs),ref:q,class:f.value,placeholder:h.placeholder.value,clearable:n.clearable,disabled:i.value,readonly:s.value,modelValue:v.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:A,onChange:M,onInput:g,onFocus:V,onBlur:_,onMouseover:$,onMouseleave:I},j={};r.slots.prepend&&(j.prepend=r.slots.prepend),r.slots.append&&(j.append=r.slots.append),r.slots.prefix&&(j.prefix=r.slots.prefix),r.slots.suffix?j.suffix=r.slots.suffix:ee.value&&(j.suffix=()=>[n.unit]);const G=[],Q=o.h(S.ElInput,L,j);G.push(Q);const B={default:()=>G};B.label=r.slots.default,B.fixedPreTip=r.slots.fixedPreTip,B.fixedTip=r.slots.fixedTip;const E={...De(n,Xl),hintText:z.value,hintVisible:b.value};return n.prop&&(E.prop=`${n.prop}_item`),o.h(l,E,B)}}}}const{componentName:es,create:ts,scope:ns}=ie("input-item"),fo=ts(Qi(es,ns,Ce));function at(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 Zl(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function os(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let ls=class{proxy;constructor(t){this.proxy=t}async load(t,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const r=Ke(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Je(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await r(l,n))}};function rs(){const e=o.getCurrentInstance();return new ls(e.proxy)}function Jl(e,t,l){const n=at(e,t),r=at(e,l);if(n!==r)return!1;const a=Rt(e,t),i=Rt(e,l);return a===i}function Ql(e,t,l,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of n){const u=Zl(e,i);if(Array.isArray(u)&&u.length>0){const s=Ql(e,a,l,u)??[];Reflect.apply([].push,r,s)}else{let s=!1;if(l==="text")s=at(e,i)===a;else if(l==="item")s=Jl(e,i,a);else{let c=Rt(e,i);c==null&&(c=at(e,i)),s=c===a}if(s){r.push(i);break}}}}),r}function as(e){return{text:e,value:e}}const er={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 is(e,t,l){return{props:{...$e,...Re,...er},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),{toLocaleRefs:d}=qe.useFoxI18n(t),h=d(n,["placeholder"]),p=o.ref(null),v=o.ref([]),y=o.computed(()=>v.value?v.value.map(W=>at(n,W)).join(" "):""),f=(k,W,J,O=!0)=>{const K=Ql(n,k,W,J);if(K===null){if(v.value===null||v.value.length===0)return;p.value=null,v.value=[],O&&(c("update:modelValue",null),c("update:text",null),c("change",null));return}let X=!0;if(K.length!==v.value.length)X=!1;else for(let le=0;le<K.length;le++){const ce=K[le],fe=v.value[le];if(!Jl(n,ce,fe)){X=!1;break}}if(!X){v.value=K;let le=[],ce=[],fe=[];K.forEach(ht=>{const Ye=Rt(n,ht),gt=at(n,ht);le.push(Ye),fe.push(gt),n.valueType==="text"?ce.push(gt):n.valueType==="item"?ce.push(ht):ce.push(Ye)});let ye,pe,Ee;ue(n.multiple)?(p.value=le,ye=o.toRaw(ce),pe=fe,Ee=o.toRaw(K)):(p.value=le[0]??"",ye=o.toRaw(ce[0]??""),pe=fe[0]??"",Ee=o.toRaw(K[0])),O&&(c("update:modelValue",ye),c("change",ye,Ee)),c("update:text",pe)}},g=o.ref(null),M=o.ref(null),T=o.computed(()=>M.value??g.value??[]),x=Fe(o.computed(()=>n.appearLoad),"appearLoad",Pe.Near,k=>ue(k)),V=rs(),_=async(k,W)=>{if(k){const J=await V.load("select",k,W);if(J.length>0)if(typeof J[0]=="string"){let X=J.map(le=>as(le));g.value=X}else g.value=J;else g.value=null}};o.watch([()=>n.source,()=>n.params],([k,W])=>{M.value=null,_(k,W)},{immediate:!x.value});let A=!1;const F=()=>{A||(A=!0,_(n.source,n.params))};o.watch([()=>g.value,()=>n.modelValue],([k,W])=>{if(b()&&ue(n.multiple)){Qe(W,p.value)||(p.value=W);return}f(W,n.valueType,T.value,!1),c("setValue",W)});let P=null,$=o.ref(!1);typeof n.remoteMethod=="function"&&(P=async k=>{if(k==null){M.value=null;return}$.value=!0;try{const W=await n.remoteMethod(k);W&&(M.value=W)}catch(W){M.value=null,console.error(W)}$.value=!1});let I=null;typeof n.filterMethod=="function"&&(I=async k=>{if(k==null){M.value=null;return}$.value=!0;try{const W=await n.filterMethod(k,g.value);W&&(M.value=W)}catch(W){M.value=null,console.error(W)}$.value=!1});const b=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",z=o.ref(!1),ee=e,q=o.computed(()=>({[ee]:!0})),N=k=>{n.allowCreate||b()&&ue(n.multiple)?(c("update:modelValue",k),c("change",k),c("update:text",k),p.value=k):f(k,"value",T.value,!0)};let L=ge(n,"hintText"),j=o.ref(!1);const G=k=>{let J=k.target.value;z.value=!0,he(L.value)||(j.value=!0),c("focus",J,k)},Q=k=>{setTimeout(()=>{j.value&&(j.value=!1),z.value=!1},0);let J=k.target.value;n.maxLength&&J.length>Number(n.maxLength)&&(J=J.slice(0,Number(n.maxLength))),H.value||c("blur",J,k)},B=()=>{c("clear","")},te=o.ref(!1);let E=null;const C=()=>{n.showTooltip&&te.value===!1&&(E&&clearTimeout(E),E=setTimeout(()=>{te.value=!0},150))},R=()=>{E&&(clearTimeout(E),te.value=!1,E=null)},D=o.computed(()=>te.value||j.value),w=o.computed(()=>te.value?y.value:L.value),H=o.ref(!1),Z=k=>{H.value=k,c("visible-change",k),k||c("selected")},oe=k=>{c("remove-tag",k)},U=(k,W)=>{const J=[];return k.forEach((O,K)=>{const X=Zl(n,O);if(Array.isArray(X)&&X.length>0){const le=U(X,W),ce=at(n,O),ye={key:`${ce}_${K}`,label:ce};J.push(o.h(S.ElOptionGroup,ye,{default:()=>le}))}else{const le=Rt(n,O),ce=at(n,O),fe=os(n,O),pe={key:`${le}_${K}`,label:ce,disabled:fe,value:le};if(typeof W=="function")J.push(o.h(S.ElOption,pe,{default:()=>W(O)}));else if(n.optionType==="item"){const Ee={class:{"fox-select-item__option-left":!0}},ht=o.h("span",Ee,[le]),Ye={class:{"fox-select-item__option-right":!0}},gt=o.h("span",Ye,[ce]),rl=o.h("div",{class:{"fox-select-item__option":!0}},[ht,gt]);J.push(o.h(S.ElOption,pe,{default:()=>rl}))}else n.optionType==="value"?J.push(o.h(S.ElOption,pe,{default:()=>[le]})):J.push(o.h(S.ElOption,pe))}}),J},Y=o.ref();return Se({focus:()=>{Y?.value.focus()},blur:()=>{Y?.value.blur()},setDisabled:k=>{a.value=k},setReadonly:k=>{u.value=k}}),()=>{const W={...Xe(r.attrs),ref:Y,class:q.value,clearable:n.clearable,multiple:n.multiple,placeholder:h.placeholder.value,disabled:i.value||s.value,modelValue:p.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:B,onChange:N,onFocus:G,onBlur:Q,onVisibleChange:Z,onRemoveTag:oe};typeof P=="function"&&(W["remote-method"]=P,W.loading=$.value),typeof I=="function"&&(W["filter-method"]=I,W.loading=$.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=()=>U(T.value,r.slots.option);const O=[],K=o.h(S.ElSelect,W,J);O.push(K);const X={default:()=>O};X.label=r.slots.default,X.fixedPreTip=r.slots.fixedPreTip,X.fixedTip=r.slots.fixedTip;const ce={...De(n,er),hintText:w.value,hintVisible:D.value,onMouseover:C,onMouseleave:R};return n.prop&&(ce.prop=`${n.prop}_item`),x.value&&(ce["appear-listen"]=!0,ce.onAppear=F),o.h(l,ce,X)}}}}const{componentName:ss,create:us,scope:cs}=ie("select-item"),ho=us(is(ss,cs,Ce));function et(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yn={exports:{}},fs=yn.exports,tr;function ds(){return tr||(tr=1,function(e,t){(function(l,n){e.exports=n()})(fs,function(){var l=1e3,n=6e4,r=36e5,a="millisecond",i="second",u="minute",s="hour",c="day",d="week",h="month",p="quarter",v="year",y="date",f="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,M=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,T={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(q){var N=["th","st","nd","rd"],L=q%100;return"["+q+(N[(L-20)%10]||N[L]||N[0])+"]"}},x=function(q,N,L){var j=String(q);return!j||j.length>=N?q:""+Array(N+1-j.length).join(L)+q},V={s:x,z:function(q){var N=-q.utcOffset(),L=Math.abs(N),j=Math.floor(L/60),G=L%60;return(N<=0?"+":"-")+x(j,2,"0")+":"+x(G,2,"0")},m:function q(N,L){if(N.date()<L.date())return-q(L,N);var j=12*(L.year()-N.year())+(L.month()-N.month()),G=N.clone().add(j,h),Q=L-G<0,B=N.clone().add(j+(Q?-1:1),h);return+(-(j+(L-G)/(Q?G-B:B-G))||0)},a:function(q){return q<0?Math.ceil(q)||0:Math.floor(q)},p:function(q){return{M:h,y:v,w:d,d:c,D:y,h:s,m:u,s:i,ms:a,Q:p}[q]||String(q||"").toLowerCase().replace(/s$/,"")},u:function(q){return q===void 0}},_="en",A={};A[_]=T;var F="$isDayjsObject",P=function(q){return q instanceof z||!(!q||!q[F])},$=function q(N,L,j){var G;if(!N)return _;if(typeof N=="string"){var Q=N.toLowerCase();A[Q]&&(G=Q),L&&(A[Q]=L,G=Q);var B=N.split("-");if(!G&&B.length>1)return q(B[0])}else{var te=N.name;A[te]=N,G=te}return!j&&G&&(_=G),G||!j&&_},I=function(q,N){if(P(q))return q.clone();var L=typeof N=="object"?N:{};return L.date=q,L.args=arguments,new z(L)},b=V;b.l=$,b.i=P,b.w=function(q,N){return I(q,{locale:N.$L,utc:N.$u,x:N.$x,$offset:N.$offset})};var z=function(){function q(L){this.$L=$(L.locale,null,!0),this.parse(L),this.$x=this.$x||L.x||{},this[F]=!0}var N=q.prototype;return N.parse=function(L){this.$d=function(j){var G=j.date,Q=j.utc;if(G===null)return new Date(NaN);if(b.u(G))return new Date;if(G instanceof Date)return new Date(G);if(typeof G=="string"&&!/Z$/i.test(G)){var B=G.match(g);if(B){var te=B[2]-1||0,E=(B[7]||"0").substring(0,3);return Q?new Date(Date.UTC(B[1],te,B[3]||1,B[4]||0,B[5]||0,B[6]||0,E)):new Date(B[1],te,B[3]||1,B[4]||0,B[5]||0,B[6]||0,E)}}return new Date(G)}(L),this.init()},N.init=function(){var L=this.$d;this.$y=L.getFullYear(),this.$M=L.getMonth(),this.$D=L.getDate(),this.$W=L.getDay(),this.$H=L.getHours(),this.$m=L.getMinutes(),this.$s=L.getSeconds(),this.$ms=L.getMilliseconds()},N.$utils=function(){return b},N.isValid=function(){return this.$d.toString()!==f},N.isSame=function(L,j){var G=I(L);return this.startOf(j)<=G&&G<=this.endOf(j)},N.isAfter=function(L,j){return I(L)<this.startOf(j)},N.isBefore=function(L,j){return this.endOf(j)<I(L)},N.$g=function(L,j,G){return b.u(L)?this[j]:this.set(G,L)},N.unix=function(){return Math.floor(this.valueOf()/1e3)},N.valueOf=function(){return this.$d.getTime()},N.startOf=function(L,j){var G=this,Q=!!b.u(j)||j,B=b.p(L),te=function(oe,U){var Y=b.w(G.$u?Date.UTC(G.$y,U,oe):new Date(G.$y,U,oe),G);return Q?Y:Y.endOf(c)},E=function(oe,U){return b.w(G.toDate()[oe].apply(G.toDate("s"),(Q?[0,0,0,0]:[23,59,59,999]).slice(U)),G)},C=this.$W,R=this.$M,D=this.$D,w="set"+(this.$u?"UTC":"");switch(B){case v:return Q?te(1,0):te(31,11);case h:return Q?te(1,R):te(0,R+1);case d:var H=this.$locale().weekStart||0,Z=(C<H?C+7:C)-H;return te(Q?D-Z:D+(6-Z),R);case c:case y:return E(w+"Hours",0);case s:return E(w+"Minutes",1);case u:return E(w+"Seconds",2);case i:return E(w+"Milliseconds",3);default:return this.clone()}},N.endOf=function(L){return this.startOf(L,!1)},N.$set=function(L,j){var G,Q=b.p(L),B="set"+(this.$u?"UTC":""),te=(G={},G[c]=B+"Date",G[y]=B+"Date",G[h]=B+"Month",G[v]=B+"FullYear",G[s]=B+"Hours",G[u]=B+"Minutes",G[i]=B+"Seconds",G[a]=B+"Milliseconds",G)[Q],E=Q===c?this.$D+(j-this.$W):j;if(Q===h||Q===v){var C=this.clone().set(y,1);C.$d[te](E),C.init(),this.$d=C.set(y,Math.min(this.$D,C.daysInMonth())).$d}else te&&this.$d[te](E);return this.init(),this},N.set=function(L,j){return this.clone().$set(L,j)},N.get=function(L){return this[b.p(L)]()},N.add=function(L,j){var G,Q=this;L=Number(L);var B=b.p(j),te=function(R){var D=I(Q);return b.w(D.date(D.date()+Math.round(R*L)),Q)};if(B===h)return this.set(h,this.$M+L);if(B===v)return this.set(v,this.$y+L);if(B===c)return te(1);if(B===d)return te(7);var E=(G={},G[u]=n,G[s]=r,G[i]=l,G)[B]||1,C=this.$d.getTime()+L*E;return b.w(C,this)},N.subtract=function(L,j){return this.add(-1*L,j)},N.format=function(L){var j=this,G=this.$locale();if(!this.isValid())return G.invalidDate||f;var Q=L||"YYYY-MM-DDTHH:mm:ssZ",B=b.z(this),te=this.$H,E=this.$m,C=this.$M,R=G.weekdays,D=G.months,w=G.meridiem,H=function(U,Y,k,W){return U&&(U[Y]||U(j,Q))||k[Y].slice(0,W)},Z=function(U){return b.s(te%12||12,U,"0")},oe=w||function(U,Y,k){var W=U<12?"AM":"PM";return k?W.toLowerCase():W};return Q.replace(M,function(U,Y){return Y||function(k){switch(k){case"YY":return String(j.$y).slice(-2);case"YYYY":return b.s(j.$y,4,"0");case"M":return C+1;case"MM":return b.s(C+1,2,"0");case"MMM":return H(G.monthsShort,C,D,3);case"MMMM":return H(D,C);case"D":return j.$D;case"DD":return b.s(j.$D,2,"0");case"d":return String(j.$W);case"dd":return H(G.weekdaysMin,j.$W,R,2);case"ddd":return H(G.weekdaysShort,j.$W,R,3);case"dddd":return R[j.$W];case"H":return String(te);case"HH":return b.s(te,2,"0");case"h":return Z(1);case"hh":return Z(2);case"a":return oe(te,E,!0);case"A":return oe(te,E,!1);case"m":return String(E);case"mm":return b.s(E,2,"0");case"s":return String(j.$s);case"ss":return b.s(j.$s,2,"0");case"SSS":return b.s(j.$ms,3,"0");case"Z":return B}return null}(U)||B.replace(":","")})},N.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},N.diff=function(L,j,G){var Q,B=this,te=b.p(j),E=I(L),C=(E.utcOffset()-this.utcOffset())*n,R=this-E,D=function(){return b.m(B,E)};switch(te){case v:Q=D()/12;break;case h:Q=D();break;case p:Q=D()/3;break;case d:Q=(R-C)/6048e5;break;case c:Q=(R-C)/864e5;break;case s:Q=R/r;break;case u:Q=R/n;break;case i:Q=R/l;break;default:Q=R}return G?Q:b.a(Q)},N.daysInMonth=function(){return this.endOf(h).$D},N.$locale=function(){return A[this.$L]},N.locale=function(L,j){if(!L)return this.$L;var G=this.clone(),Q=$(L,j,!0);return Q&&(G.$L=Q),G},N.clone=function(){return b.w(this.$d,this)},N.toDate=function(){return new Date(this.valueOf())},N.toJSON=function(){return this.isValid()?this.toISOString():null},N.toISOString=function(){return this.$d.toISOString()},N.toString=function(){return this.$d.toUTCString()},q}(),ee=z.prototype;return I.prototype=ee,[["$ms",a],["$s",i],["$m",u],["$H",s],["$W",c],["$M",h],["$y",v],["$D",y]].forEach(function(q){ee[q[1]]=function(N){return this.$g(N,q[0],q[1])}}),I.extend=function(q,N){return q.$i||(q(N,z,I),q.$i=!0),I},I.locale=$,I.isDayjs=P,I.unix=function(q){return I(1e3*q)},I.en=A[_],I.Ls=A,I.p={},I})}(yn)),yn.exports}var hs=ds();const Ze=et(hs);var pn={exports:{}},gs=pn.exports,nr;function ms(){return nr||(nr=1,function(e,t){(function(l,n){e.exports=n()})(gs,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"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,u={},s=function(f){return(f=+f)+(f>68?1900:2e3)},c=function(f){return function(g){this[f]=+g}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(f){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var M=g.match(/([+-]|\d\d)/g),T=60*M[1]+(+M[2]||0);return T===0?0:M[0]==="+"?-T:T}(f)}],h=function(f){var g=u[f];return g&&(g.indexOf?g:g.s.concat(g.f))},p=function(f,g){var M,T=u.meridiem;if(T){for(var x=1;x<=24;x+=1)if(f.indexOf(T(x,0,g))>-1){M=x>12;break}}else M=f===(g?"pm":"PM");return M},v={A:[i,function(f){this.afternoon=p(f,!1)}],a:[i,function(f){this.afternoon=p(f,!0)}],S:[/\d/,function(f){this.milliseconds=100*+f}],SS:[r,function(f){this.milliseconds=10*+f}],SSS:[/\d{3}/,function(f){this.milliseconds=+f}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[r,c("day")],Do:[i,function(f){var g=u.ordinal,M=f.match(/\d+/);if(this.day=M[0],g)for(var T=1;T<=31;T+=1)g(T).replace(/\[|\]/g,"")===f&&(this.day=T)}],M:[a,c("month")],MM:[r,c("month")],MMM:[i,function(f){var g=h("months"),M=(h("monthsShort")||g.map(function(T){return T.slice(0,3)})).indexOf(f)+1;if(M<1)throw new Error;this.month=M%12||M}],MMMM:[i,function(f){var g=h("months").indexOf(f)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,c("year")],YY:[r,function(f){this.year=s(f)}],YYYY:[/\d{4}/,c("year")],Z:d,ZZ:d};function y(f){var g,M;g=f,M=u&&u.formats;for(var T=(f=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function($,I,b){var z=b&&b.toUpperCase();return I||M[b]||l[b]||M[z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(ee,q,N){return q||N.slice(1)})})).match(n),x=T.length,V=0;V<x;V+=1){var _=T[V],A=v[_],F=A&&A[0],P=A&&A[1];T[V]=P?{regex:F,parser:P}:_.replace(/^\[|\]$/g,"")}return function($){for(var I={},b=0,z=0;b<x;b+=1){var ee=T[b];if(typeof ee=="string")z+=ee.length;else{var q=ee.regex,N=ee.parser,L=$.slice(z),j=q.exec(L)[0];N.call(I,j),$=$.replace(j,"")}}return function(G){var Q=G.afternoon;if(Q!==void 0){var B=G.hours;Q?B<12&&(G.hours+=12):B===12&&(G.hours=0),delete G.afternoon}}(I),I}}return function(f,g,M){M.p.customParseFormat=!0,f&&f.parseTwoDigitYear&&(s=f.parseTwoDigitYear);var T=g.prototype,x=T.parse;T.parse=function(V){var _=V.date,A=V.utc,F=V.args;this.$u=A;var P=F[1];if(typeof P=="string"){var $=F[2]===!0,I=F[3]===!0,b=$||I,z=F[2];I&&(z=F[2]),u=this.$locale(),!$&&z&&(u=M.Ls[z]),this.$d=function(L,j,G){try{if(["x","X"].indexOf(j)>-1)return new Date((j==="X"?1e3:1)*L);var Q=y(j)(L),B=Q.year,te=Q.month,E=Q.day,C=Q.hours,R=Q.minutes,D=Q.seconds,w=Q.milliseconds,H=Q.zone,Z=new Date,oe=E||(B||te?1:Z.getDate()),U=B||Z.getFullYear(),Y=0;B&&!te||(Y=te>0?te-1:Z.getMonth());var k=C||0,W=R||0,J=D||0,O=w||0;return H?new Date(Date.UTC(U,Y,oe,k,W,J,O+60*H.offset*1e3)):G?new Date(Date.UTC(U,Y,oe,k,W,J,O)):new Date(U,Y,oe,k,W,J,O)}catch{return new Date("")}}(_,P,A),this.init(),z&&z!==!0&&(this.$L=this.locale(z).$L),b&&_!=this.format(P)&&(this.$d=new Date("")),u={}}else if(P instanceof Array)for(var ee=P.length,q=1;q<=ee;q+=1){F[1]=P[q-1];var N=M.apply(this,F);if(N.isValid()){this.$d=N.$d,this.$L=N.$L,this.init();break}q===ee&&(this.$d=new Date(""))}else x.call(this,V)}}})}(pn)),pn.exports}var ys=ms();const ps=et(ys);var bn={exports:{}},bs=bn.exports,or;function vs(){return or||(or=1,function(e,t){(function(l,n){e.exports=n()})(bs,function(){return function(l,n){var r=n.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(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(h){switch(h){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(),h==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),h==="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 h}});return a.bind(this)(d)}}})}(bn)),bn.exports}var ws=vs();const Ss=et(ws);var vn={exports:{}},xs=vn.exports,lr;function Ts(){return lr||(lr=1,function(e,t){(function(l,n){e.exports=n()})(xs,function(){return function(l,n,r){var a=n.prototype,i=function(h){return h&&(h.indexOf?h:h.s)},u=function(h,p,v,y,f){var g=h.name?h:h.$locale(),M=i(g[p]),T=i(g[v]),x=M||T.map(function(_){return _.slice(0,y)});if(!f)return x;var V=g.weekStart;return x.map(function(_,A){return x[(A+(V||0))%7]})},s=function(){return r.Ls[r.locale()]},c=function(h,p){return h.formats[p]||function(v){return v.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(y,f,g){return f||g.slice(1)})}(h.formats[p.toUpperCase()])},d=function(){var h=this;return{months:function(p){return p?p.format("MMMM"):u(h,"months")},monthsShort:function(p){return p?p.format("MMM"):u(h,"monthsShort","months",3)},firstDayOfWeek:function(){return h.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):u(h,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):u(h,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):u(h,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return c(h.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return d.bind(this)()},r.localeData=function(){var h=s();return{firstDayOfWeek:function(){return h.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(h,p)},meridiem:h.meridiem,ordinal:h.ordinal}},r.months=function(){return u(s(),"months")},r.monthsShort=function(){return u(s(),"monthsShort","months",3)},r.weekdays=function(h){return u(s(),"weekdays",null,null,h)},r.weekdaysShort=function(h){return u(s(),"weekdaysShort","weekdays",3,h)},r.weekdaysMin=function(h){return u(s(),"weekdaysMin","weekdays",2,h)}}})}(vn)),vn.exports}var $s=Ts();const Cs=et($s);var wn={exports:{}},Es=wn.exports,rr;function Ns(){return rr||(rr=1,function(e,t){(function(l,n){e.exports=n()})(Es,function(){var l="week",n="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 d=i(this).startOf(n).add(1,n).date(c),h=i(this).endOf(l);if(d.isBefore(h))return 1}var p=i(this).startOf(n).date(c).startOf(l).subtract(1,"millisecond"),v=this.diff(p,l,!0);return v<0?i(this).startOf("week").week():Math.ceil(v)},u.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}})}(wn)),wn.exports}var ks=Ns();const Is=et(ks);var Sn={exports:{}},Os=Sn.exports,ar;function Ds(){return ar||(ar=1,function(e,t){(function(l,n){e.exports=n()})(Os,function(){return function(l,n){n.prototype.weekYear=function(){var r=this.month(),a=this.week(),i=this.year();return a===1&&r===11?i+1:r===0&&a>=52?i-1:i}}})}(Sn)),Sn.exports}var Vs=Ds();const Rs=et(Vs);var xn={exports:{}},Fs=xn.exports,ir;function As(){return ir||(ir=1,function(e,t){(function(l,n){e.exports=n()})(Fs,function(){return function(l,n,r){n.prototype.dayOfYear=function(a){var i=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return a==null?i:this.add(a-i,"day")}}})}(xn)),xn.exports}var Ms=As();const Ls=et(Ms);var Tn={exports:{}},Bs=Tn.exports,sr;function _s(){return sr||(sr=1,function(e,t){(function(l,n){e.exports=n()})(Bs,function(){return function(l,n){n.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})}(Tn)),Tn.exports}var qs=_s();const Ps=et(qs);var $n={exports:{}},js=$n.exports,ur;function zs(){return ur||(ur=1,function(e,t){(function(l,n){e.exports=n()})(js,function(){return function(l,n){n.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})}($n)),$n.exports}var Hs=zs();const Ks=et(Hs);Ze.extend(Cs),Ze.extend(Ss),Ze.extend(ps),Ze.extend(Is),Ze.extend(Rs),Ze.extend(Ls),Ze.extend(Ps),Ze.extend(Ks);const je={format(e,t){return Ze(e).format(t)},parser(e,t){return Ze(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,l){const r=new Date(e+"/"+t+"/"+l).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 l=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),r=this.getNumTwoBit(e.getDate());return[l,n,r].join(t)},getDay(e,t,l){e=e||0;let n=t??new Date;const r=e*(1e3*60*60*24);return n=new Date(n.getTime()+r),l=l??"YYYY-MM-DD",this.format(n,l)},compareDate(e,t){let l;typeof e=="string"?l=new Date(e.replace("-","/").replace("-","/")):l=e;let n;return typeof t=="string"?n=new Date(t.replace("-","/").replace("-","/")):n=t,!(l>=n)},isEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;let l;typeof e=="string"?l=new Date(e).getTime():l=e;let n;return typeof t=="string"?n=new Date(t).getTime():n=t,l==n},getMonthWeek:function(e,t,l,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(l));let a=r.getDay(),i=r.getDate(),u=6-a;return n!==0&&(a=a==0?7:a,u=7-a),Math.ceil((i+u)/7)},getYearWeek:function(e,t,l,n=0){const r=new Date(Number(e),parseInt(t)-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 n!==0&&(u=u==0?7:u,s=7-u),Math.ceil((i+s)/7)},getWeekDate:function(e,t,l,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(l)),a=r.getTime();let i=r.getDay();if(n===0){const s=a-i*864e5,c=a+(6-i)*864e5,d=this.date2Str(new Date(s)),h=this.date2Str(new Date(c));return[d,h]}else{i=i==0?7:i;const u=24*60*60*1e3,s=a-(i-1)*u,c=a+(7-i)*u,d=this.date2Str(new Date(s)),h=this.date2Str(new Date(c));return[d,h]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=je.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=je.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,l){const n=new Date(new Date(t).setDate(t.getDate()+l)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i},inScope4Month(e,t,l){const n=new Date(new Date(t).setMonth(t.getMonth()+l)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i}},cr={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"}},fr={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 Ws(e,t,l){return{props:{...$e,...Re,...cr,...fr},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),{toLocaleRefs:d}=qe.useFoxI18n(t),h=d(n,["placeholder"]),p=o.ref(!1),v=ge(n,"modelValue",null,c),y=o.computed(()=>j.value&&Array.isArray(v.value)&&v.value.length==2?v.value[0]:v.value),f=o.computed(()=>j.value?"longTermKey":"normalKey"),g=Y=>{if(j.value&&n.type==="daterange"){const k=[...v.value];k[0]=Y,v.value=k}else v.value=Y;c("update:modelValue",v.value),c("change",v.value)},M=o.computed(()=>j.value&&n.type==="daterange"?"date":n.type),T=e,x=o.computed(()=>({[`${T}`]:!0,"is-long":j.value,"is-readonly":s.value,"is-disabled":i.value}));let V=ge(n,"hintText"),_=o.ref(!1);const A=Y=>{let W=Y.target.value;p.value=!0,he(V.value)||(_.value=!0),c("focus",W,Y)},F=Y=>{setTimeout(()=>{_.value&&(_.value=!1),p.value=!1},0);let W=Y.target.value;n.maxLength&&W.length>Number(n.maxLength)&&(W=W.slice(0,Number(n.maxLength))),c("blur",W,Y)},P=()=>{c("clear","")},$=Y=>{c("calendar-change",Y)},I=(Y,k,W)=>{c("panel-change",Y,k,W)},b=Y=>{c("visible-change",Y)},z=Fe(o.computed(()=>n.longTermText),"longTermText",Pe.Near),ee=Fe(o.computed(()=>n.longTermActionLabel),"longTermActionLabel",Pe.Near),q=Fe(o.computed(()=>n.longTermValue),"longTermValue",Pe.Near),N=Fe(o.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",Pe.Near);let L=null;const j=o.ref(ue(n.longTerm)),G=Y=>{if(j.value=Y,c("update:longTerm",Y),Y){if(L=v.value,n.type==="daterange"){const k=[];Array.isArray(q.value)?(k[0]=v.value?v.value[0]??q.value[0]:null,k[1]=q.value[1]??q.value[0]):(k[0]=v.value?v.value[0]??q.value:null,k[1]=j.value),k[0]||(k[0]=n.valueFormat?je.format(new Date,n.valueFormat):new Date),k[1]||(k[1]=n.valueFormat?je.format(new Date,n.valueFormat):new Date),v.value=k}else Array.isArray(q.value)?v.value=q.value[1]??q.value[0]:v.value=q.value,v.value||(v.value=n.valueFormat?je.format(new Date,n.valueFormat):new Date);c("update:modelValue",v.value)}else{if(n.type==="daterange"){const k=[];k[0]=Array.isArray(v.value)?v.value[0]:v.value,Array.isArray(L)?k[1]=L[1]:k[1]=L,k[0]||(k[0]=n.valueFormat?je.format(new Date,n.valueFormat):new Date),k[1]||(k[1]=n.valueFormat?je.format(new Date,n.valueFormat):new Date),v.value=k}else v.value=L;c("update:modelValue",v.value),setTimeout(()=>{oe()},100)}},Q=ue(n.isLongTerm);if(Q){const Y=()=>{if(j.value===!0){if(L=v.value,n.type==="daterange"){const k=[v.value[0]];Array.isArray(q.value)?k[1]=q.value[1]??q.value[0]:k[1]=j.value,k[0]||(k[0]=n.valueFormat?je.format(new Date,n.valueFormat):new Date),k[1]||(k[1]=n.valueFormat?je.format(new Date,n.valueFormat):new Date),v.value=k}else v.value=q.value;c("update:modelValue",v.value)}else Qe(q.value,v.value)&&(j.value=!0)};Y(),o.watch([()=>n.longTerm],([k])=>{j.value!==k&&Y()}),o.watch([()=>v.value],([k])=>{let W=!1;if(n.type==="daterange"&&Array.isArray(k))try{let J=k[1];if(!J)return;if(k[0]==null){c("update:modelValue",[]);return}typeof J!="string"&&n.valueFormat&&(J=je.format(J,n.valueFormat));let O=Array.isArray(q.value)?q.value[1]:q.value;(J===O||Array.isArray(N.value)&&N.value.findIndex(X=>J==X)!==-1)&&(W=!0)}catch(J){console.error(J)}j.value!==W&&(j.value=W)},{immediate:!0})}const B=o.computed(()=>({"fox-date-item__long":!0,"is-active":p.value})),te=o.ref(),E=o.ref(),C=/^\d+$/,R=(Y,k)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(Y,k):C.test(Y)&&Y.length===n.flashFillThreshold,D=(Y,k)=>{let W;if(typeof n.flashFillFormat=="function")W=n.flashFillFormat(Y,k);else{const O=n.flashFillFormat??"YYYYMMDD";W=je.parser(Y,O)}const J=n.valueFormat??"YYYY-MM-DD";return je.format(W,J)},w=Y=>Y?Y.endsWith("range"):!1,H=Y=>{if(!Y.target)return;const k=Y.target.value??"";if(R(k,n.type)){const W=D(k,n.type);if(w(n.type)){const J=Array.isArray(v.value)?[...v.value]:[];J[0]=W,g(J)}else g(W)}},Z=Y=>{if(!Y.target)return;const k=Y.target.value??"";if(R(k,n.type)){const W=D(k,n.type);if(w(n.type)){const J=Array.isArray(v.value)?[...v.value]:[];J[1]=W,g(J)}else g(W)}},oe=()=>{if(n.flashFill&&te.value&&te.value.$el)if(w(n.type)){const Y=te.value.$el.querySelectorAll("input.el-range-input");Y[0]&&Y[0].addEventListener("input",H),Y[1]&&Y[1].addEventListener("input",Z)}else{const Y=te.value.$el.querySelector("input.el-input__inner");Y&&Y.addEventListener("input",H)}},U=()=>{if(n.flashFill&&te.value&&te.value.$el)if(w(n.type)){const Y=te.value.$el.querySelectorAll("input.el-range-input");Y[0]&&Y[0].removeEventListener("input",H),Y[1]&&Y[1].removeEventListener("input",Z)}else{const Y=te.value.$el.querySelector("input.el-input__inner");Y&&Y.removeEventListener("input",H)}};return o.onMounted(oe),o.onBeforeUnmount(U),Se({focus:()=>{E?.value.focus()},blur:()=>{E?.value.blur()},handleOpen:()=>{E?.value.handleOpen()},handleClose:()=>{E?.value.handleClose()},setDisabled:Y=>{a.value=Y},setReadonly:Y=>{u.value=Y}}),()=>{const k={...r.attrs,key:f.value,type:M.value,ref:E,class:x.value,placeholder:h.placeholder.value,disabled:i.value,readonly:s.value,modelValue:y.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":g,onClear:P,onFocus:A,onBlur:F,onCalendarChange:$,onPanelChange:I,onVisibleChange:b},W={};r.slots["range-separator"]&&(W["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(W.default=r.slots.cell);const J=[],O=o.h(S.ElDatePicker,k,W);J.push(O);const K={default:()=>J};if(K.label=r.slots.default,K.fixedPreTip=r.slots.fixedPreTip,K.fixedTip=r.slots.fixedTip,Q){if(j.value){const fe=o.h("span",{class:["fox-date-item__long-splitor"]},["-"]),ye=o.h("input",{class:["fox-date-item__long-text"],value:z.value,readonly:!0}),pe={class:B.value},Ee=o.h("div",pe,{default:()=>[fe,ye]});J.push(Ee)}if(!s.value&&!i.value){const fe={label:ee.value||z.value,disabled:s.value||i.value,modelValue:j.value,"onUpdate:modelValue":G},ye=o.h(S.ElCheckbox,fe),pe=o.h("div",{class:{[`${T}__append`]:!0}},[ye]);K.append=()=>pe}}const le={...De(n,cr,fr),ref:te,class:{[`${T}__wrapper`]:!0,"has-append":Q},hintText:V.value,hintVisible:_.value};return n.prop&&(le.prop=`${n.prop}_item`),o.h(l,le,K)}}}}const{componentName:Ys,create:Us,scope:Gs}=ie("date-item"),go=Us(Ws(Ys,Gs,Ce)),dr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Xs(e,t,l){return{props:{...$e,...Re,...dr},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),{toLocaleRefs:d}=qe.useFoxI18n(t),h=d(n,["placeholder"]),p=o.ref(!1),v=ge(n,"modelValue",null,c),y=e,f=o.computed(()=>({[y]:!0})),g=P=>{v.value=P,c("update:modelValue",P),c("change",P)};let M=ge(n,"hintText"),T=o.ref(!1);const x=P=>{let I=P.target.value;p.value=!0,he(M.value)||(T.value=!0),c("focus",I,P)},V=P=>{setTimeout(()=>{T.value&&(T.value=!1),p.value=!1},0);let I=P.target.value;n.maxLength&&I.length>Number(n.maxLength)&&(I=I.slice(0,Number(n.maxLength))),c("blur",I,P)},_=()=>{c("clear","")},A=P=>{c("visible-change",P)},F=o.ref();return Se({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()},handleOpen:()=>{F?.value.handleOpen()},handleClose:()=>{F?.value.handleClose()},setDisabled:P=>{a.value=P},setReadonly:P=>{u.value=P}}),()=>{const $={...r.attrs,ref:F,class:f.value,placeholder:h.placeholder.value,disabled:i.value,readonly:s.value,modelValue:v.value,"onUpdate:modelValue":g,onClear:_,onFocus:x,onBlur:V,onVisibleChange:A},I={},b=[],z=o.h(S.ElTimePicker,$,I);b.push(z);const ee={default:()=>b};ee.label=r.slots.default,ee.fixedPreTip=r.slots.fixedPreTip,ee.fixedTip=r.slots.fixedTip;const N={...De(n,dr),hintText:M.value,hintVisible:T.value};return n.prop&&(N.prop=`${n.prop}_item`),o.h(l,N,ee)}}}}const{componentName:Zs,create:Js,scope:Qs}=ie("time-item"),mo=Js(Xs(Zs,Qs,Ce)),hr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function eu(e,t,l){return{props:{...$e,...Re,...hr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),{toLocaleRefs:d}=qe.useFoxI18n(t),h=d(n,["placeholder"]),p=o.ref(!1),v=ge(n,"modelValue",null,c),y=e,f=o.computed(()=>({[y]:!0})),g=F=>{v.value=F,c("update:modelValue",F),c("change",F)};let M=ge(n,"hintText"),T=o.ref(!1);const x=F=>{let $=F.target.value;p.value=!0,he(M.value)||(T.value=!0),c("focus",$,F)},V=F=>{setTimeout(()=>{T.value&&(T.value=!1),p.value=!1},0);let $=F.target.value;n.maxLength&&$.length>Number(n.maxLength)&&($=$.slice(0,Number(n.maxLength))),c("blur",$,F)},_=()=>{c("clear","")},A=o.ref();return Se({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()},handleOpen:()=>{A?.value.handleOpen()},handleClose:()=>{A?.value.handleClose()},setDisabled:F=>{a.value=F},setReadonly:F=>{u.value=F}}),()=>{const P={...r.attrs,ref:A,class:f.value,placeholder:h.placeholder.value,disabled:i.value,readonly:s.value,modelValue:v.value,"onUpdate:modelValue":g,onClear:_,onFocus:x,onBlur:V},$={},I=[],b=o.h(S.ElTimeSelect,P,$);I.push(b);const z={default:()=>I};z.label=r.slots.default,z.fixedPreTip=r.slots.fixedPreTip,z.fixedTip=r.slots.fixedTip;const q={...De(n,hr),hintText:M.value,hintVisible:T.value};return n.prop&&(q.prop=`${n.prop}_item`),o.h(l,q,z)}}}}const{componentName:tu,create:nu,scope:ou}=ie("time-select-item"),yo=nu(eu(tu,ou,Ce));function gr(e,t=0){let l=`${e}`,n=l.indexOf(".");if(n==-1)return l;let r=n;for(let a=l.length-1;a>=n;a--)if(l.charAt(a)!="0"){r=a;break}return r-n<t?r=n+t+1:r!=n&&(r+=1),r>l.length?l=l.padEnd(r,"0"):l=l.substring(0,r),l}function mr(e,t,l=20){if(typeof t=="string"&&(t=Te(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=gl(`${e}`,`${t}`);return gr(n)}else{let n=Bn(`${e}`,ml(`${t}`),20);return gr(n)}}function lu(e,t=-1,l=!1,n=3,r=","){return zt(e,t,l,n,r)}function yr(e,t,l,n,r=!0){if(e==="")return"";if(e=yl(e),t=Te(t),t==1)return e;if(n)e=mr(e,t),l&&(e=="0"&&r?e=`${e}.`.padEnd(Te(l)+2,"0"):e=Bn(e,1,Te(l)));else{let a=-1*t;e=mr(e,a)}return e}function pr(e,t){let l={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=ue(t.minInclude),r=_n(e,t.min);if(n&&r==-1||!n&&(r==0||r==-1)){let a="请输入不小于 {0} 的数值";l.message=a.replace("{0}",t.min),l.minValid=!1}}if(t.max!=null){let n=ue(t.maxInclude),r=_n(e,t.max);(n&&r==1||!n&&(r==0||r==1))&&(l.maxValid=!1)}return l}const br={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 ru(e,t,l){return{props:{...$e,...Re,...br},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),d=o.ref(!1),h=ge(n,"modelValue",null,c),p=o.ref("");o.watch([()=>h.value,()=>n.rates,()=>n.precision],([N,L,j])=>{if(he(N)){p.value="";return}const G=yr(N,L,j,!1);p.value!==G&&(p.value=G)},{immediate:!0});const v=o.computed(()=>{let N="";return d.value&&(N=p.value),N}),{t:y}=qe.useFoxI18n(t),f=o.computed(()=>{let N=n.placeholder??"";return!d.value&&!he(p.value)?N=lu(p.value,n.decimalLength,n.autoPadding,n.digits,n.separator):N=y(["placeholder",N]),N}),g=e,M=o.computed(()=>({[g]:!0,[`${g}__disabled`]:i.value,[`${g}__placeholder`]:p.value.length>0})),T=Fe(o.computed(()=>n.textAlign),"textAlign");o.computed(()=>d.value?{textAlign:"left"}:{textAlign:T.value??"right"});const x=o.ref(""),V=o.computed(()=>{let N=x.value;return he(N)&&(N=n.errorTip??""),N}),_=o.ref(""),A=o.ref(!1),F=(N,L)=>{if(N=`${N}`,he(N)){p.value="",h.value="",L.forEach(j=>{c(j,"")}),ue(n.showTip)&&A.value&&(A.value=!1);return}if(N.length>=2){let j=N;if(j.charAt(0)=="-"&&(j=j.substring(1)),j.length>=2&&j.charAt(0)=="0"&&j.charAt(1)!="."){o.triggerRef(p);return}}if(N!="-"){if(!$l(N)){o.triggerRef(p);return}if(n.integerLength!=-1&&Cl(N)>Number(n.integerLength)){o.triggerRef(p);return}if(n.decimalLength&&n.decimalLength!=-1&&El(N)>Number(n.decimalLength)){o.triggerRef(p);return}let j=pr(N,n);if(j.maxValid===!1){x.value=j.message,o.triggerRef(p);return}}else if(n.min!=null&&Te(n.min)>=0){o.triggerRef(p);return}_.value=N,ue(n.showTip)&&(A.value=N.length>0),p.value=N,h.value=yr(N,n.rates,n.precision,!0),L.forEach(j=>{c(j,h.value)})},P=N=>{F(N,["update:modelValue","input"])},$=N=>{F(N,["update:modelValue","change"])},I=N=>{if(d.value=!0,ue(n.showTip)){let L=p.value;he(L)&&(L=n.hintText),he(L)||(_.value=L,A.value=!0)}x.value="",c("focus",h.value,N)},b=N=>{if(setTimeout(()=>{d.value=!1,ue(n.showTip)&&A.value===!0&&(A.value=!1)},0),!he(p.value)){let L=pr(p.value,n);if(L.minValid===!1||L.maxValid===!1){x.value=L.message;return}}c("update:modelValue",h.value,N),c("blur",h.value,N)},z=()=>{c("clear","")},ee=o.computed(()=>Nt(n.unit)>0),q=o.ref();return Se({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()},setDisabled:N=>{a.value=N},setReadonly:N=>{u.value=N}}),()=>{const L={...Xe(r.attrs),ref:q,class:M.value,type:"digit",maxlength:n.maxLength,placeholder:f.value,clearable:n.clearable,disabled:i.value,readonly:s.value,modelValue:v.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:z,onInput:P,onChange:$,onFocus:I,onBlur:b},j={};r.slots.prepend&&(j.prepend=r.slots.prepend),r.slots.append&&(j.append=r.slots.append),r.slots.prefix&&(j.prefix=r.slots.prefix),r.slots.suffix?j.suffix=r.slots.suffix:ee.value&&(j.suffix=()=>[n.unit]);const G=[],Q=o.h(S.ElInput,L,j);G.push(Q);const B={default:()=>G};B.label=r.slots.default,B.fixedPreTip=r.slots.fixedPreTip,B.fixedTip=r.slots.fixedTip;const E={...De(n,br),errorTip:V.value,hintText:_.value,hintVisible:A.value,hintType:"number"};return n.prop&&(E.prop=`${n.prop}_item`),o.h(l,E,B)}}}}const{componentName:au,create:iu,scope:su}=ie("money-item"),po=iu(ru(au,su,Ce)),vr={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 uu(e,t,l){return{props:{...$e,...Re,...vr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),{toLocaleRefs:d}=qe.useFoxI18n(t),h=d(n,["placeholder"]),p=o.ref(!1),v=ge(n,"modelValue",null,c),y=e,f=o.computed(()=>({[y]:!0,[`${y}__append`]:P.value})),g=o.computed(()=>({[`${y}__unit`]:!0})),M=I=>{v.value=I,c("update:modelValue",I),c("input",I)},T=I=>{c("change",I)};let x=ge(n,"hintText"),V=o.ref(!1);const _=I=>{let z=I.target.value;p.value=!0,he(x.value)||(V.value=!0),c("focus",z,I)},A=I=>{setTimeout(()=>{V.value&&(V.value=!1),p.value=!1},0);let z=I.target.value;n.maxLength&&z.length>Number(n.maxLength)&&(z=z.slice(0,Number(n.maxLength))),c("blur",z,I)},F=()=>{c("clear","")},P=o.computed(()=>Nt(n.unit)>0),$=o.ref();return Se({focus:()=>{$?.value.focus()},blur:()=>{$?.value.blur()},setDisabled:I=>{a.value=I},setReadonly:I=>{u.value=I}}),()=>{const b={...Xe(r.attrs),ref:$,class:f.value,placeholder:h.placeholder.value,clearable:n.clearable,disabled:i.value,readonly:s.value,modelValue:v.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:F,onChange:T,onInput:M,onFocus:_,onBlur:A},z={},ee=[],q=o.h(S.ElInputNumber,b,z);ee.push(q);const N={default:()=>ee};N.label=r.slots.default,N.fixedPreTip=r.slots.fixedPreTip,N.fixedTip=r.slots.fixedTip;const j={...De(n,vr),hintText:x.value,hintVisible:V.value};if(n.prop&&(j.prop=`${n.prop}_item`),r.slots.append)N.append=r.slots.append;else if(P.value){const Q={class:g.value},B=o.h("div",Q,[n.unit]);N.append=()=>B}return o.h(l,j,N)}}}}const{componentName:cu,create:fu,scope:du}=ie("input-number-item"),bo=fu(uu(cu,du,Ce));function tt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ft(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function hu(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let gu=class{proxy;constructor(t){this.proxy=t}async load(t,l,n,r){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n,r);const a=Ke(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Je(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await a(l,n,r))}};function mu(){const e=o.getCurrentInstance();return new gu(e.proxy)}function vo(e,t,l){const n=tt(e,t),r=tt(e,l);if(n!==r)return!1;const a=ft(e,t),i=ft(e,l);return a===i}function wr(e,t,l,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];let a=n;for(let i=0;Array.isArray(a)&&i<t.length;i++){const u=t[i];if(Array.isArray(u)){const s=wr(e,u,l,n);r.push(s)}else{let s=!1;for(let c of a){if(l==="text")s=tt(e,c)===u;else if(l==="item")s=vo(e,c,u);else{let d=ft(e,c);d==null&&(d=tt(e,c)),s=d===u}if(s){r.push(c),a=hu(e,c);break}}if(!s)break}}return r}function yu(e){return{text:e,value:e}}const Sr={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 pu(e,t,l){return{props:{...$e,...Re,...Sr},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),{toLocaleRefs:d}=qe.useFoxI18n(t),h=d(n,["placeholder"]),p=o.ref(null),v=o.ref([]),y=o.computed(()=>v.value?v.value.map(Y=>Array.isArray(Y)?Y.map(W=>tt(n,W)).join(" "):tt(n,Y)).join(" "):""),f=(U,Y,k,W=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(p.value===U)return;p.value=U;const X=o.toRaw(U);if(W){const le=oe?.value.getCheckedNodes();if(le)if(n.multiple){const ce=[];le.forEach(fe=>{const pe=(fe.pathNodes??[]).map(Ee=>Ee.data);ce.push(pe)}),c("update:pathNodes",ce)}else{const fe=(le[0]?.pathNodes??[]).map(ye=>ye.data);c("update:pathNodes",fe)}c("update:modelValue",X),c("change",X)}return}const J=wr(n,U,Y,k);if(J===null){if(v.value.length===0||v.value===null)return;v.value=[],p.value=null,W&&(c("update:pathNodes",[]),c("update:modelValue",null),c("change",null));return}const O=J[J.length-1];if(z.value.checkStrictly!==!0&&O&&!Array.isArray(O)&&Array.isArray(O.children)&&O.children.length>0){const X=[];J.forEach(le=>{const ce=`${tt(n,le)}`;X.push(ce)}),X.length>0&&(I.value=X.join(n.separator))}else I.value=null;let K=!0;if(J.length!==v.value.length)K=!1;else for(let X=0;X<J.length;X++){const le=J[X],ce=v.value[X];if(Array.isArray(le)){if(!Array.isArray(ce)||le.length!==ce.length)K=!1;else for(let fe=0;fe<le.length;fe++)if(!vo(n,le[fe],ce[fe])){K=!1;break}}else vo(n,le,ce)||(K=!1);if(!K)break}if(!K){v.value=J;let X=[],le=[];J.forEach(fe=>{if(Array.isArray(fe)){let ye=[],pe=[];for(let Ee of fe)ye.push(ft(n,Ee)),n.valueType==="text"?pe.push(tt(n,Ee)):n.valueType==="item"?pe.push(Ee):pe.push(ft(n,Ee));X.push(ye),le.push(pe)}else X.push(ft(n,fe)),n.valueType==="text"?le.push(tt(n,fe)):n.valueType==="item"?le.push(fe):le.push(ft(n,fe))}),p.value=X;const ce=o.toRaw(le);W&&(c("update:pathNodes",J),c("update:modelValue",ce),c("change",ce))}},g=o.ref([]),M=Fe(o.computed(()=>n.appearLoad),"appearLoad",Pe.Near,U=>ue(U)),T=mu(),x=async(U,Y)=>{if(U){const k=await T.load("cascader",U,Y);if(k.length>0)if(typeof k[0]=="string"){let O=k.map(K=>yu(K));g.value=O}else g.value=k}};o.watch([()=>n.source,()=>n.params],async([U,Y])=>{x(U,Y)},{immediate:!(M.value||n.lazy)});let V=!1;const _=()=>{V||(V=!0,x(n.source,n.params))};o.watch([()=>g.value,()=>n.modelValue],([U,Y])=>{f(Y,n.valueType,U,!1),c("setValue",Y)}),n.lazy&&f(n.modelValue,"value",[],!1);let A=null,F=o.ref(!1);typeof n.remoteMethod=="function"&&(A=async U=>{if(U!=null){F.value=!0;try{const Y=await n.remoteMethod(U);g.value=Y}catch(Y){console.error(Y)}F.value=!1}});const P=o.ref(!1),$=e,I=o.ref(null),b=o.computed(()=>({[$]:!0,"is-incomplete":I.value&&I.value.length>0})),z=o.computed(()=>{let U={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(U.multiple=!0),n.props&&Object.assign(U,n.props),n.lazy&&(U.lazy=!0,typeof n.lazyLoad=="function"?U.lazyLoad=n.lazyLoad:U.lazyLoad=async(Y,k)=>{const W=await T.load("cascader",n.source,Y,!0);if(Y?.config?.checkStrictly!==!0&&Array.isArray(p.value)&&p.value.length===Y.level){const J=Y.pathLabels??[];let O=[];J.forEach(K=>{K&&O.push(K)}),O.length>0&&(I.value=O.join(n.separator))}else I.value=null;k(W)}),U}),ee=U=>{n.allowCreate?(c("update:modelValue",U),c("change",U),p.value=U):f(U,"value",g.value,!0)};let q=ge(n,"hintText"),N=o.ref(!1);const L=U=>{let k=U.target.value;P.value=!0,he(q.value)||(N.value=!0),c("focus",k,U)},j=U=>{setTimeout(()=>{N.value&&(N.value=!1),P.value=!1},0);let k=U.target.value;n.maxLength&&k.length>Number(n.maxLength)&&(k=k.slice(0,Number(n.maxLength))),D.value||c("blur",k,U)},G=()=>{c("clear","")},Q=o.ref(!1);let B=null;const te=()=>{n.showTooltip&&Q.value===!1&&(B&&clearTimeout(B),B=setTimeout(()=>{Q.value=!0},150))},E=()=>{B&&(clearTimeout(B),Q.value=!1,B=null)},C=o.computed(()=>Q.value||N.value),R=o.computed(()=>Q.value?y.value:q.value),D=o.ref(!1),w=U=>{D.value=U,c("visible-change",U),U||c("selected")},H=U=>{c("remove-tag",U)},Z=U=>{c("expand-change",U)},oe=o.ref();return Se({focus:()=>{oe?.value.focus()},blur:()=>{oe?.value.blur()},getCheckedNodes:()=>oe?.value.getCheckedNodes(),setDisabled:U=>{a.value=U},setReadonly:U=>{u.value=U}}),()=>{const Y={...r.attrs,ref:oe,class:b.value,props:z.value,clearable:n.clearable,placeholder:I.value||h.placeholder.value,disabled:i.value||s.value,options:g.value,modelValue:p.value,separator:n.separator,onClear:G,onChange:ee,onFocus:L,onBlur:j,onVisibleChange:w,onRemoveTag:H,expandChange:Z};typeof A=="function"&&(Y["remote-method"]=A,Y.loading=F.value);const k={};r.slots.option&&(k.default=r.slots.option),r.slots.empty&&(k.empty=r.slots.empty);const W=[],J=o.h(S.ElCascader,Y,k);W.push(J);const O={default:()=>W};O.label=r.slots.default,O.fixedPreTip=r.slots.fixedPreTip,O.fixedTip=r.slots.fixedTip;const X={...De(n,Sr),hintText:R.value,hintVisible:C.value,onMouseover:te,onMouseleave:E};return n.prop&&(X.prop=`${n.prop}_item`),M.value&&!n.lazy&&(X["appear-listen"]=!0,X.onAppear=_),o.h(l,X,O)}}}}const{componentName:bu,create:vu,scope:wu}=ie("cascader-item"),wo=vu(pu(bu,wu,Ce)),xr={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Su(e,t,l){return{props:{...$e,...Re,...xr},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),{toLocaleRefs:d}=qe.useFoxI18n(t),h=d(n,["placeholder"]),p=o.ref(!1),v=ge(n,"modelValue",null,c),y=e,f=o.computed(()=>({[y]:!0})),g=$=>{v.value=$,c("update:modelValue",$),c("input",$)},M=$=>{c("change",$)},T=$=>{c("select",$)};let x=ge(n,"hintText"),V=o.ref(!1);const _=$=>{let b=$.target.value;p.value=!0,he(x.value)||(V.value=!0),c("focus",b,$)},A=$=>{setTimeout(()=>{V.value&&(V.value=!1),p.value=!1},0);let b=$.target.value;n.maxLength&&b.length>Number(n.maxLength)&&(b=b.slice(0,Number(n.maxLength))),c("blur",b,$)},F=()=>{c("clear","")},P=o.ref();return Se({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()},select:()=>{P?.value.select()},setDisabled:$=>{a.value=$},setReadonly:$=>{u.value=$}}),()=>{const I={...r.attrs,ref:P,class:f.value,placeholder:h.placeholder.value,clearable:n.clearable,disabled:i.value,readonly:s.value,modelValue:v.value,onClear:F,onChange:M,onInput:g,onFocus:_,onBlur:A,onSelect:T},b={};r.slots.prepend&&(b.prepend=r.slots.prepend),r.slots.append&&(b.append=r.slots.append),r.slots.prefix&&(b.prefix=r.slots.prefix),r.slots.suffix&&(b.suffix=r.slots.suffix),r.slots.option&&(b.default=r.slots.option);const z=[],ee=o.h(S.ElAutocomplete,I,b);z.push(ee);const q={default:()=>z};q.label=r.slots.default,q.fixedPreTip=r.slots.fixedPreTip,q.fixedTip=r.slots.fixedTip;const L={...De(n,xr),hintText:x.value,hintVisible:V.value};return n.prop&&(L.prop=`${n.prop}_item`),o.h(l,L,q)}}}}const{componentName:xu,create:Tu,scope:$u}=ie("autocomplete-item"),So=Tu(Su(xu,$u,Ce));function Cu(e,t,l,n,r){let a=[];Array.isArray(e)?a=e:a=[e];const i=[],u=t[0];if(Array.isArray(e)&&!Array.isArray(u)&&!u[r]){let s=t;for(let c=0;s&&c<a.length;c++){let d=a[c],h=s.find(p=>p[n]===d);if(!h)break;i.push(h[l])}return i}if(Array.isArray(u))for(let s=0;s<t.length&&s<a.length;s++){let c=t[s],d=a[s];const h=c.find(p=>p[n]===d);if(!h)break;i.push(h[l])}else{let s=t;for(let c=0;s&&c<a.length;c++){let d=a[c],h=s.find(p=>p[n]===d);if(!h)break;i.push(h[l]),s=h[r]}}return i}let Eu=class{proxy;constructor(t){this.proxy=t}async load(t,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const r=Ke(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Je(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await r(l,n))}};function Nu(){const e=o.getCurrentInstance();return new Eu(e.proxy)}const Tr={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 ku(e,t){return{props:{...Tr},setup(l,{attrs:n,slots:r}){const a=Nu(),i=o.ref([]);o.watch([()=>l.source,()=>l.params],async([c,d])=>{i.value=await a.load(l.sourceType,c,d)},{immediate:!0});const u=o.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let c=Cu(l.modelValue,i.value,l.textKey,l.valueKey,l.childrenKey);return c.length==0?l.emptyText??"":c.length===1?l.optionType=="item"?`${l.modelValue}${l.separator}${c[0]}`:c[0]:c.join(l.separator)}),s=l.resolveTag?o.resolveComponent(l.tag):l.tag;return()=>{const c={...n};return r.default?r.default({text:u.value,value:l.modelValue}):l.resolveTag?l.emptyText!==void 0&&l.emptyText===u.value?o.h(l.emptyTag??"span",{...n,class:l.emptyClass},u.value):o.h(s,c,{default:()=>u.value}):o.h(s,c,u.value)}}}}const{componentName:kg,create:Iu,scope:Ig}=ie("mapping"),Ft=Iu(ku());function Ou(e,t){let l=t.split("."),n=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 d=parseInt(c);if(i==0){let h=a.substring(0,u);n=n[h][d]}else n=n[d];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(n=n[a])}return n}function Du(e,t){return{props:{...Tr},setup(l,{attrs:n,slots:r}){return()=>{const a={default:i=>{const u=Ou(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(S.ElTableColumn,{...n},a)}}}}const{componentName:Og,create:Vu,scope:Dg}=ie("table-mapping-column"),xo=Vu(Du()),Ru=Symbol.for("TableStateKey");function $r(e,t){let l=t.split("."),n=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 d=parseInt(c);if(i==0){let h=a.substring(0,u);n=n[h][d]}else n=n[d];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(n=n[a])}return n}function Fu(e,t){return{props:{},setup(l,{attrs:n}){const r=o.inject(Ru,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:u=>{const s=$r(u.row,u.column.property),c=a?$r(a,u.column.property):null,d=s===c,h={class:{"el-radio__input":!0,"is-checked":d}},p=o.h("span",h,[o.h("span",{class:{"el-radio__inner":!0}})]),v={class:{"el-radio":!0,"is-checked":d}};return o.h("label",v,[p])}};return o.h(S.ElTableColumn,{...n},i)}}}}const{componentName:Vg,create:Au,scope:Rg}=ie("table-radio-column"),To=Au(Fu()),Mu={},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"};function Bu(e,t){return o.openBlock(),o.createElementBlock("svg",Lu,t[0]||(t[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 _u=We(Mu,[["render",Bu]]),{componentName:Fg,create:qu,scope:Ag}=ie("table-setting"),Pu={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:"不固定"}},ju=qu({components:{FoxPopover:S.ElPopover,FoxCheckbox:S.ElCheckbox,FoxCheckboxGroup:S.ElCheckboxGroup,FoxButton:S.ElButton,FoxIcon:S.ElIcon,DragIcon:_u,Download:Ie.Download,RefreshLeft:Ie.RefreshLeft},props:{...Pu},setup(e,{emit:t,attrs:l}){let n=[];const r=o.ref([]),a=o.computed(()=>r.value.filter(w=>w.label===""||w.type?!1:w.fixed===""||w.fixed===!0||w.fixed==="left")),i=o.computed(()=>r.value.filter(w=>w.label===""||w.type?!1:w.fixed==="right")),u=o.computed(()=>r.value.filter(w=>!(w.label===""||w.type||w.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),d=o.computed(()=>i.value.length>0),h=w=>w.length>1,p=(w,H)=>{Array.isArray(w)&&Array.isArray(H)&&w.forEach(U=>{H.some(Y=>Y.prop===U.prop?(U.label=Y.label,!0):!1)});const Z=[];r.value=w.map((U,Y)=>(!(U.label===""||U.type)&&U.visible!==!1&&Z.push(U.prop),{...U,sortIndex:Y})),u.value.length+a.value.length+i.value.length===Z.length?T.value=!0:Z.length>0&&(x.value=!0),A.value=Z},v=w=>w?w.type?w.type:w.label?w.prop:"":"",y=(w,H)=>{if(w.length!==H.length)return!1;const Z=w.map(oe=>v(oe));for(let oe of H){const U=v(oe);if(Z.indexOf(U)===-1)return!1}return!0},f=w=>{if(!w){const H=e.tableRef.getColumnSetting(),Z=H.srcColumnPropertyList;n=Z.map((oe,U)=>({...oe,sortIndex:U})),w=H.columnPropertyList,w&&w.length>0&&y(Z,w)||(w=Z)}p(w,n)},g=()=>{e.tableRef.setColumnSetting(r.value)},M=o.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),T=o.ref(!1),x=o.ref(!1),V=w=>{const H=[];r.value.forEach(oe=>{w&&!(oe.label===""||oe.type)&&H.push(oe.prop),oe.visible=w}),T.value=!1,x.value=!1,u.value.length+a.value.length+i.value.length===H.length?T.value=!0:H.length>0&&(x.value=!0),A.value=H,g()},_=()=>{f(n),g()},A=o.ref([]),F=w=>{r.value.forEach(Z=>{if(Z.label===""||Z.type)return;const oe=w.indexOf(Z.prop)!==-1;Z.visible=oe}),T.value=!1,x.value=!1;const H=u.value.length+a.value.length+i.value.length;w.length===H?T.value=!0:w.length>0&&(x.value=!0),g()},P=()=>{f()};o.onMounted(()=>{setTimeout(()=>{f()},50)});const $={currentRow:null,index:null,roleType:null},I=w=>w?w.dataset&&w.dataset.role==="row"?w:w.tagName.toLowerCase()!=="body"?(w=w.parentElement,I(w)):null:null,b=w=>{const H=w.currentTarget;H&&H.dataset&&($.roleType=H.dataset.roleType,$.index=H.dataset.index)},z=w=>{$.currentRow&&($.currentRow.classList.remove("is-dragover"),$.currentRow=null),$.index=null,$.roleType=null},ee=w=>{const H=w.currentTarget;w.relatedTarget;const Z=I(H);if(!Z)return;const oe=Z.dataset&&Z.dataset.roleType;$.roleType===oe&&(w.preventDefault(),$.currentRow&&$.currentRow!==Z&&$.currentRow.classList.remove("is-dragover"),Z.classList.add("is-dragover"),$.currentRow=Z)},q=w=>{w.preventDefault(),$.currentRow&&($.currentRow.classList.remove("is-dragover"),$.currentRow=null)},N=w=>{const H=w.currentTarget,Z=I(H);if(!Z)return;const oe=Z.dataset&&Z.dataset.roleType;if($.roleType!==oe)return;w.preventDefault();const U=Number($.index),Y=Number(Z.dataset.index);if(U!==Y){if(U<Y){const k=r.value[U];r.value.splice(U,1),r.value.splice(Y,0,k)}else{const k=r.value[U];r.value.splice(U,1),r.value.splice(Y+1,0,k)}p(r.value,n),g()}},L=w=>{const H=r.value[w];H.fixed="left",g()},j=w=>{const H=r.value[w];H.fixed="right",g()},G=w=>{const H=r.value[w];H.fixed=void 0,g()},Q=new Map;let B=null;function te(w){const H=document.createRange();return H.setStart(w,0),H.setEnd(w,w.childNodes.length),H.getBoundingClientRect().width}return{attrs:l,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:u,isShowNotFixedTitle:s,isShowLeftFixedTitle:c,isShowRightFixedTitle:d,isDraggble:h,isCheckAll:T,isIndeterminate:x,handleCheckAllChange:V,handleReset:_,checkedValue:A,handleCheckChange:F,onShow:P,onDragStart:b,onDragEnd:z,onDragOver:ee,onDragLeave:q,onDrop:N,toLeftFixed:L,toRightFixed:j,toUnFixed:G,checkboxLabelStyle:M,onMouseOverForOverflowText:(w,H,Z)=>{const oe=w.currentTarget;if(oe){const U=Math.floor(oe.offsetWidth);if(Math.floor(te(oe))>U){let k=Q.get(H);if(k){if(k===B)return;Le.hide(k)}k=Le.show(oe,Z,{type:"text",placement:"top",closeOnClick:!1}),k&&(Q.set(H,k),B=k)}}},onMouseLeaveForOverflowText:(w,H)=>{const Z=Q.get(H);Z&&(Le.hide(Z),Z===B&&(B=null))},onMouseOverForTip:(w,H)=>{const Z=w.currentTarget;Z&&(B&&Le.hide(B),B=Le.show(Z,H,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:w=>{B&&(Le.hide(B),B=null)}}}}),zu={class:"fox-table-setting"},Hu={class:"fox-table-setting__header"},Ku={class:"fox-table-setting__body"},Wu={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Yu={key:0,class:"fox-table-setting__body-title"},Uu=["data-index","draggable"],Gu=["onMouseover","onMouseleave"],Xu={class:"tools-item"},Zu={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},Ju={key:0,class:"fox-table-setting__body-title"},Qu=["data-index","draggable"],ec=["onMouseover","onMouseleave"],tc={class:"tools-item"},nc={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},oc={key:0,class:"fox-table-setting__body-title"},lc=["data-index","draggable"],rc=["onMouseover","onMouseleave"],ac={class:"tools-item"};function ic(e,t,l,n,r,a){const i=o.resolveComponent("FoxCheckbox"),u=o.resolveComponent("FoxButton"),s=o.resolveComponent("DragIcon"),c=o.resolveComponent("RefreshLeft"),d=o.resolveComponent("FoxIcon"),h=o.resolveComponent("Download"),p=o.resolveComponent("fox-checkbox"),v=o.resolveComponent("FoxCheckboxGroup"),y=o.resolveComponent("FoxPopover");return o.openBlock(),o.createBlock(y,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",zu,[o.createElementVNode("div",Hu,[o.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=f=>e.isCheckAll=f),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",Ku,[o.createVNode(v,{modelValue:e.checkedValue,"onUpdate:modelValue":t[28]||(t[28]=f=>e.checkedValue=f),onChange:e.handleCheckChange},{default:o.withCtx(()=>[e.leftFixedColumns.length>0?(o.openBlock(),o.createElementBlock("div",Wu,[e.isShowLeftFixedTitle?(o.openBlock(),o.createElementBlock("div",Yu,o.toDisplayString(e.leftFixedTitle),1)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.leftFixedColumns,f=>(o.openBlock(),o.createElementBlock("div",{key:f.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":f.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)?(o.openBlock(),o.createBlock(s,{key:0,class:"icon-item"})):o.createCommentVNode("",!0),o.createVNode(i,{class:"checkbox-item",value:f.prop},{default:o.withCtx(()=>[o.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,f.prop,f.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,f.prop),class:"checkbox-item__label",style:o.normalizeStyle(e.checkboxLabelStyle)},o.toDisplayString(f.label),45,Gu)]),_:2},1032,["value"]),o.createElementVNode("div",Xu,[o.createVNode(d,{onClick:g=>e.toUnFixed(f.sortIndex),onMouseover:t[1]||(t[1]=g=>e.onMouseOverForTip(g,e.unFixedText)),onMouseleave:t[2]||(t[2]=g=>e.onMouseLeaveForTip(g))},{default:o.withCtx(()=>[o.createVNode(c)]),_:2},1032,["onClick"]),o.createVNode(d,{onClick:g=>e.toRightFixed(f.sortIndex),onMouseover:t[3]||(t[3]=g=>e.onMouseOverForTip(g,e.fixedRightText)),onMouseleave:t[4]||(t[4]=g=>e.onMouseLeaveForTip(g))},{default:o.withCtx(()=>[o.createVNode(h)]),_:2},1032,["onClick"])])],40,Uu))),128))])):o.createCommentVNode("",!0),e.unFixedColumns.length>0?(o.openBlock(),o.createElementBlock("div",Zu,[e.isShowNotFixedTitle?(o.openBlock(),o.createElementBlock("div",Ju,o.toDisplayString(e.unFixedTitle),1)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.unFixedColumns,f=>(o.openBlock(),o.createElementBlock("div",{key:f.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":f.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)?(o.openBlock(),o.createBlock(s,{key:0,class:"icon-item"})):o.createCommentVNode("",!0),o.createVNode(i,{class:"checkbox-item",value:f.prop},{default:o.withCtx(()=>[o.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,f.prop,f.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,f.prop),class:"checkbox-item__label",style:o.normalizeStyle(e.checkboxLabelStyle)},o.toDisplayString(f.label),45,ec)]),_:2},1032,["value"]),o.createElementVNode("div",tc,[o.createVNode(d,{onClick:g=>e.toLeftFixed(f.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:o.withCtx(()=>[o.createVNode(h)]),_:2},1032,["onClick"]),o.createVNode(d,{onClick:g=>e.toRightFixed(f.sortIndex),onMouseover:t[12]||(t[12]=g=>e.onMouseOverForTip(g,e.fixedRightText)),onMouseleave:t[13]||(t[13]=g=>e.onMouseLeaveForTip(g))},{default:o.withCtx(()=>[o.createVNode(h)]),_:2},1032,["onClick"])])],40,Qu))),128))])):o.createCommentVNode("",!0),e.rightFixedColumns.length>0?(o.openBlock(),o.createElementBlock("div",nc,[e.isShowRightFixedTitle?(o.openBlock(),o.createElementBlock("div",oc,o.toDisplayString(e.rightFixedTitle),1)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.rightFixedColumns,f=>(o.openBlock(),o.createElementBlock("div",{key:f.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":f.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)?(o.openBlock(),o.createBlock(s,{key:0,class:"icon-item"})):o.createCommentVNode("",!0),o.createVNode(p,{class:"checkbox-item",label:f.prop},{default:o.withCtx(()=>[o.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,f.prop,f.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,f.prop),class:"checkbox-item__label",style:o.normalizeStyle(e.checkboxLabelStyle)},o.toDisplayString(f.label),45,rc)]),_:2},1032,["label"]),o.createElementVNode("div",ac,[o.createVNode(d,{onClick:g=>e.toUnFixed(f.sortIndex),onMouseover:t[19]||(t[19]=g=>e.onMouseOverForTip(g,e.unFixedText)),onMouseleave:t[20]||(t[20]=g=>e.onMouseLeaveForTip(g))},{default:o.withCtx(()=>[o.createVNode(c)]),_:2},1032,["onClick"]),o.createVNode(d,{onClick:g=>e.toLeftFixed(f.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:o.withCtx(()=>[o.createVNode(h)]),_:2},1032,["onClick"])])],40,lc))),128))])):o.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Cn=We(ju,[["render",ic]]);let sc=class{proxy;constructor(t){this.proxy=t}async load(t,l,n,r,a,i,u){if(Array.isArray(l)){let c=(n-1)*r,d=c+r;d>l.length&&(d=l.length);const h=l.slice(c,d);return{totalSize:l.length,page:h}}if(typeof l=="function")return await Reflect.apply(l,null,[n,r,a,i,u]);const s=Ke(this.proxy,t);return s===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(Je(a)&&o.isReactive(a)&&(a=o.toRaw(a)),await Reflect.apply(s,null,[l,n,r,a,i,u]))}};function uc(){const e=o.getCurrentInstance();return new sc(e.proxy)}class cc{proxy;constructor(t){this.proxy=t}async load(t){let l=null;const n=Ke(this.proxy,"tableSetting");return typeof n=="function"&&(l=await Reflect.apply(n,null,["load",t])),l}save(t,l){const n=Ke(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,l])}remove(t){const l=Ke(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["remove",t])}}function Cr(){const e=o.getCurrentInstance();return new cc(e.proxy)}const fc=Symbol.for("TableStateKey"),Er={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},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"}},Nr={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}},$o={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:()=>"不固定"}},dc={infiniteLoad:{type:Boolean,default:()=>!1},loadText:{type:String,default:()=>"加载中..."},loadMoreText:{type:String,default:()=>"无更多数据"}};function hc(e,t){let l=t.split("."),n=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 d=parseInt(c);if(i==0){let h=a.substring(0,u);n=n[h][d]}else n=n[d];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(n=n[a])}return n}function Co(e,t){return e.filter(n=>{for(let r in t){const a=t[r],i=hc(n,r);if(a!==i)return!1}return!0})}function gc(e,t,l){return{inheritAttrs:!1,props:{...$e,...Re,...Er,...Nr,...$o,...dc},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,r){const{locale:a}=qe.useFoxI18n(t),{emitEvent:i,broadcast:u}=ke({componentName:e,validateHandler:{getValue(...ne){return F.value}}},n.prop??r.attrs.name),s=e,c=o.computed(()=>({[s]:!0})),d=o.computed(()=>({[`${s}__setting`]:!0})),h=o.computed(()=>({[`${s}__footer`]:!0,[`${s}__footer__${n.footerAlign}`]:!0})),p=o.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${n.paginationAlign}`]:!0})),v=o.shallowRef({}),y=o.computed(()=>({...v.value,...n.params??{},...n.baseParams??{}})),f=o.ref(n.infiniteLoad===!0?0:n.pageIndex),g=o.ref(n.pageSize),M=ue(n.infiniteLoad);M||(o.watch(()=>n.pageIndex,ne=>{f.value=ne}),o.watch(()=>n.pageSize,ne=>{g.value=ne}),o.watch([f,g],([ne,re],[ae,se])=>{re!==se&&(f.value=1,ne=1),b(n.data,ne,re,y.value)}));const T=()=>Array.isArray(n.data)?!0:ue(n.autoLoad);T()&&o.watch([()=>n.data,y],async([ne,re],[ae,se])=>{T()&&(ne!==ae&&($=!0),!(!Array.isArray(ne)&&Qe(ne,ae)&&Qe(re,se))&&(M?(f.value=0,_.value=!0,F.value=[],ee()):f.value===1?b(ne,f.value,g.value,re):f.value=1))},{deep:!0});const x=ne=>{f.value=ne,i("page-index-change",ne)},V=ne=>{g.value=ne,i("page-size-change",ne)},_=o.ref(!0),A=o.ref(0),F=o.ref(),P=uc();let $=!0;const I=Fe(o.computed(()=>n.appearLoad),"appearLoad",Pe.Near,ne=>ue(ne)),b=async(ne,re,ae,se,Ne)=>{$=!1;try{if(Ne===!0){if(!_.value)return!1;const be=await P.load("table",ne,re,ae,se,$,a.value);return A.value=be.totalSize,!be.page||!Array.isArray(be.page)||(Reflect.apply([].push,F.value,be.page),setTimeout(()=>{i("loaded-data")},250),(F.value?.length??0)>=A.value)||be.page.length<ae?(_.value=!1,!1):!0}else{const be=await P.load("table",ne,re,ae,se,$,a.value);return A.value=be.totalSize,F.value=be.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(be){console.error("[FoxUI] Load Table Data Fail",be),A.value=0,F.value=[]}return!1};let z=!1;const ee=async()=>{if(!z){if(z=!0,!_.value){z=!1;return}f.value+=1,await b(n.data,f.value,g.value,y.value,!0),z=!1}},q=(ne={},re=!1)=>new Promise(async ae=>{v.value={...o.toRaw(ne??{})},re||(f.value=n.pageIndex??1),M===!0?(f.value=0,F.value=[],_.value=!0,await ee()):await b(n.data,f.value,g.value,y.value),ae()}),N=()=>{A.value=0,F.value=[],M===!0&&(f.value=0,_.value=!0)};let L=!1;const j=()=>{L||(L=!0,q())},G=o.ref(null);if(M===!0){let ne=null;const re=()=>{G.value&&(ne=new IntersectionObserver(se=>{let Ne=!1;for(let be of se)if(be.intersectionRatio>0){Ne=!0;break}Ne&&ee()}),ne.observe(G.value))},ae=()=>{!ne||!G.value||(ne.unobserve(G.value),ne=null)};o.onMounted(re),o.onBeforeUnmount(ae)}T()&&!I.value&&q();const Q=o.ref(null);o.provide(fc,{currentRow:Q});const B=(ne,re)=>{Q.value=ne,i("current-change",ne,re)},te=(ne,re,ae)=>{i("row-click",ne,re,ae),ue(n.rowClickSelectable)===!0&&xe?.value.toggleRowSelection(ne)},E=[],C=(ne,re)=>{if(i("expand-change",ne,re),ue(n.uniqueExpansion))if(Array.isArray(re)&&re.length==0){const ae=E.length;E.splice(0,ae)}else{E.forEach(se=>{se!==ne&&xe?.value.toggleRowExpansion(se,!1)});const ae=E.length;E.splice(0,ae,ne)}},R=r.attrs.id??n.prop??r.attrs.name,D=Cr(),w=o.ref([]);let H=[];const Z=()=>({srcColumnPropertyList:H.map(re=>({...re})),columnPropertyList:w.value}),oe=ne=>{w.value=[...ne],Y()},U=async()=>{const ne=await D.load(R);ne&&(w.value=ne)},Y=()=>{D.save(R,w.value)},k=()=>{D.remove(R)};U();const W=ne=>ne?ne.type?ne.type:ne.label?ne.prop:"":"",J=()=>typeof r.slots.default=="function"?r.slots.default():[],O=(ne,re={})=>{for(let ae in re){const se=re[ae];typeof se!="function"&&(ne[ae]=se)}},K=o.computed(()=>{const ne=J(),re=new Map;if(H=[],ne.forEach(ae=>{const Ne=ae;if(!Ne.props)return;const be=W(Ne.props);re.set(be,Ne);const ze={label:"",prop:""};O(ze,Ne.props),H.push(ze)}),w.value.length===H.length){const ae=[];for(let se of w.value){const Ne=W(se),be=re.get(Ne);if(!be)return ne;if(se.visible===!1)continue;const ze=be;ze.props.fixed=se.fixed,ae.push(ze)}return ae}return ne}),X=o.shallowRef(new Map),le=({row:ne,column:re,rowIndex:ae,columnIndex:se})=>{const Ne=`${ae}_${re.property}`,be=`${ae}_${se}`;let ze=X.value.get(Ne);return ze||(ze=X.value.get(be)),typeof ze=="string"?ze:""},ce=ne=>typeof ne=="function"?re=>{const ae=[];let se=le(re);return se&&ae.push(se),se=ne(re),se&&ae.push(se),ae.length===0?"":ae.join(" ")}:le,fe=(ne=!1)=>{X.value.forEach((re,ae)=>{ye(ae,re,ne)})},ye=(ne,re,ae=!1)=>{const se=`${ne}_item`;ae?(u.clearPersistantMessage(),Array.isArray(re)?u.emitToChildren({name:ne},"setCellClassNames",[]):u.emitToChildren({name:se},"setCustomClassName","")):Array.isArray(re)?u.emitToChildren({name:ne,cachePolicy:"Persistant",uniqueId:se},"setCellClassNames",re):u.emitToChildren({name:se,cachePolicy:"Persistant",uniqueId:se},"setCustomClassName",re)},pe=(ne,re,ae)=>{const se=`${ne}_${re}`;ae?(X.value.set(se,ae),ye(se,ae)):(X.value.delete(se),ye(se,"",!0)),o.triggerRef(X)},Ee=ne=>{fe(!0),X.value.clear(),ne.forEach(re=>{const ae=`${re.rowIndex}_${re.column}`;Array.isArray(re.children)?X.value.set(ae,re.children):typeof re.cellClassName=="string"&&X.value.set(ae,re.cellClassName)}),fe(),o.triggerRef(X)},ht=()=>{fe(),X.value.clear(),o.triggerRef(X)},Ye=o.shallowRef(new Map),gt=({rowIndex:ne})=>{const re=`${ne}`;return Ye.value.get(re)??""},rl=ne=>typeof ne=="function"?re=>{const ae=[];let se=gt(re);return se&&ae.push(se),se=ne(re),se&&ae.push(se),ae.length===0?"":ae.join(" ")}:gt,vg=(ne,re)=>{const ae=`${ne}`;re?Ye.value.set(ae,re):Ye.value.delete(ae),o.triggerRef(Ye)},wg=()=>{Ye.value.clear(),o.triggerRef(Ye)},xe=o.ref();return Se({clearSelection:()=>xe?.value.clearSelection(),getSelectionRows:()=>xe?.value.getSelectionRows(),toggleRowSelection:(ne,re)=>{xe?.value.toggleRowSelection(ne,re)},toggleRowSelectionByProp:(ne,re)=>{if(!F.value)return;const ae=Co(F.value,ne);ae.length!==0&&ae.forEach(se=>{xe?.value.toggleRowSelection(se,re)})},toggleAllSelection:()=>{xe?.value.toggleAllSelection()},toggleRowExpansion:(ne,re)=>{xe?.value.toggleRowExpansion(ne,re)},toggleRowExpansionByProp:(ne,re)=>{if(!F.value)return;const ae=Co(F.value,ne);ae.length!==0&&ae.forEach(se=>{xe?.value.toggleRowExpansion(se,re)})},setCurrentRow:ne=>{xe?.value.setCurrentRow(ne)},setCurrentRowByProp:ne=>{if(!F.value)return;const re=Co(F.value,ne);re.length!==0&&xe?.value.setCurrentRow(re[0])},getCurrentRow:()=>Q.value,clearSort:()=>{xe?.value.clearSort()},clearFilter:ne=>{xe?.value.clearFilter(ne)},doLayout:()=>{xe?.value.doLayout()},sort:(ne,re)=>{xe?.value.sort(ne,re)},scrollTo:(ne,re)=>{xe?.value.scrollTo(ne,re)},setScrollTop:ne=>{xe?.value.setScrollTop(ne)},setScrollLeft:ne=>{xe?.value.setScrollLeft(ne)},loadData:q,clearData:N,getData(){return F.value},getTotalSize(){return A.value},getPageIndex(){return f.value},getPageSize(){return g.value},getColumnSetting:Z,setColumnSetting:oe,removeColumnSetting:k,setCellClassName:pe,setCellClassNames:Ee,clearCellClassName:ht,setRowClassName:vg,clearRowClassName:wg}),()=>{const re={...Xe(r.attrs),onCurrentChange:B,onRowClick:te,onExpandChange:C,data:F.value,ref:xe,class:c.value,"cell-class-name":ce(n.cellClassName),"row-class-name":rl(n.rowClassName)},ae={};if(r.slots.default&&(ae.default=()=>K.value),r.slots.append&&(ae.append=r.slots.append),r.slots.empty&&(ae.empty=r.slots.empty),M===!0){const Ue=[];if(_.value){const qt=o.h(Ie.Loading,{class:`${s}__infinite-icon`});Ue.push(qt);const il=o.h("span",{class:`${s}__infinite-text`},[n.loadText]);Ue.push(il)}else{const qt=o.h("span",{class:`${s}__infinite-text`},[n.loadMoreText]);Ue.push(qt)}const mt={ref:G,class:`${s}__infinite`},al=o.h("div",mt,Ue);ae.append=()=>al}const se=o.h(S.ElTable,re,ae),Ne=[];if(Ne.push(se),!M){let Ue=null;if(typeof r.slots.pagination=="function")Ue=r.slots.pagination();else if(n.showPagination){const mt={class:p.value,total:A.value,pageSize:g.value,"onUpdate:pageSize":V,pageSizes:n.pageSizes,currentPage:f.value,"onUpdate:currentPage":x,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,samll:n.paginationSmall,background:n.paginationBackground};Ue=o.h(S.ElPagination,mt)}if(n.showSetting){const mt=[];Ue&&mt.push(Ue);const al=o.h(S.ElIcon,{class:d.value},{default:()=>o.h(Ie.Setting)}),qt=kl(n,$o),il=o.h(Cn,{...qt,tableRef:{getColumnSetting:Z,setColumnSetting:oe,removeColumnSetting:k}},{default:()=>al});mt.push(il);const Sg=o.h("div",{class:h.value},mt);Ne.push(Sg)}else Ue&&Ne.push(Ue)}const be={default:()=>Ne},$t={...De(n,Er,Nr,$o)};return n.prop&&($t.prop=`${n.prop}_item`),$t.contentClass=`${s}__wrap`,$t.errorMarkClass="is-table-error",I.value&&T()&&($t["appear-listen"]=!0,$t.onAppear=j),o.h(l,$t,be)}}}}const{componentName:mc,create:yc,scope:pc}=ie("table-item"),Eo=yc(gc(mc,pc,Ce));function wt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function At(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function bc(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let vc=class{proxy;constructor(t){this.proxy=t}async load(t,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const r=Ke(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Je(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await r(l,n))}};function wc(){const e=o.getCurrentInstance();return new vc(e.proxy)}function kr(e,t,l){if(t===l)return!0;if(t===null||l===null)return!1;const n=wt(e,t),r=wt(e,l);if(n!==r)return!1;const a=At(e,t),i=At(e,l);return a===i}function Sc(e,t,l,n){if(n.length==0||t===""||t===null||t===void 0)return null;let r=null;for(let a of n){let i=!1;if(l==="text")i=wt(e,a)===t;else if(l==="item")i=kr(e,a,t);else{let u=At(e,a);u==null&&(u=wt(e,a)),i=u===t}if(i){r=a;break}}return r}function xc(e){return{text:e,value:e}}function Tc(e,t,l){return typeof e.itemOptions=="function"?e.itemOptions(t,l):e.itemOptions}const Ir={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 $c(e,t,l){return{inheritAttrs:!0,props:{...$e,...Re,...Ir},emits:["change","update:modelValue","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),d=o.ref(null),h=o.ref(null),p=($,I,b,z=!0)=>{const ee=Sc(n,$,I,b);if(ee===null){if(h.value===null)return;h.value=null,d.value=null,z&&(c("update:modelValue",null),c("change",null));return}if(!kr(n,ee,h.value)){d.value=$;const N=o.toRaw(ee);h.value=N;let L=null;n.valueType==="text"?L=wt(n,N):n.valueType==="item"?L=N:L=At(n,N),z&&(c("update:modelValue",L),c("change",L))}},v=o.ref([]),y=Fe(o.computed(()=>n.appearLoad),"appearLoad",Pe.Near,$=>ue($)),f=wc(),g=async($,I)=>{if($){const b=await f.load("radio",$,I);if(b.length>0)if(typeof b[0]=="string"){let q=b.map(N=>xc(N));v.value=q}else v.value=b}};o.watch([()=>n.source,()=>n.params],async([$,I])=>{g($,I)},{immediate:!y.value});let M=!1;const T=()=>{M||(M=!0,g(n.source,n.params))};o.watch([()=>v.value,()=>n.modelValue],([$,I])=>{p(I,n.valueType,$,!1),c("setValue",I)});const x=e,V=o.computed(()=>({[x]:!0,[`is-${n.direction}`]:!0})),_=$=>{p($,"value",v.value,!0)};let A=ge(n,"hintText"),F=ge(n,"hintVisible");const P=($,I)=>{const b=[];return $.forEach((z,ee)=>{const q=At(n,z),N=wt(n,z);let L=bc(n,z);i.value===!0&&(L=i.value),s.value===!0&&(L=s.value);const j=Tc(n,z,ee)??{},G=`${q}_${ee}`,Q={...j,key:G,value:q,size:n.size,border:ue(n.border)};L&&(Q.disabled=L),n.itemType==="button"?b.push(o.h(S.ElRadioButton,Q,{default:()=>[N]})):typeof I=="function"?b.push(o.h(S.ElRadio,Q,{default:()=>I(z)})):b.push(o.h(S.ElRadio,Q,{default:()=>[N]}))}),b};return Se({setDisabled:$=>{a.value=$},setReadonly:$=>{u.value=$}}),()=>{const I={...Xe(r.attrs),class:V.value,disabled:i.value||s.value,modelValue:d.value,"text-color":n.textColor,fill:n.fill,onChange:_},b=[],z={};r.slots.options?z.default=r.slots.options:z.default=()=>P(v.value,r.slots.text);const ee=o.h(S.ElRadioGroup,I,z);b.push(ee);const q={default:()=>b};q.label=r.slots.default,q.fixedPreTip=r.slots.fixedPreTip,q.fixedTip=r.slots.fixedTip;const L={...De(n,Ir),hintText:A.value,hintVisible:F.value};return n.prop&&(L.prop=`${n.prop}_item`),y.value&&(L["appear-listen"]=!0,L.onAppear=T),o.h(l,L,q)}}}}const{componentName:Cc,create:Ec,scope:Nc}=ie("radio-item"),No=Ec($c(Cc,Nc,Ce));function St(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function xt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function kc(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Ic=class{proxy;constructor(t){this.proxy=t}async load(t,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const r=Ke(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Je(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await r(l,n))}};function Oc(){const e=o.getCurrentInstance();return new Ic(e.proxy)}function Or(e,t,l){if(t===l)return!0;if(t===null||l===null)return!1;const n=St(e,t),r=St(e,l);if(n!==r)return!1;const a=xt(e,t),i=xt(e,l);return a===i}function Dc(e,t,l,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of n){let u=!1;if(l==="text")u=St(e,i)===a;else if(l==="item")u=Or(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 Vc(e){return{text:e,value:e}}function Rc(e,t,l){return typeof e.itemOptions=="function"?e.itemOptions(t,l):e.itemOptions}const Dr={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 Fc(e,t,l){return{inheritAttrs:!0,props:{...$e,...Re,...Dr},emits:["change","update:modelValue","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),d=o.ref([]),h=o.ref([]),p=($,I,b,z=!0)=>{const ee=Dc(n,$,I,b);if(ee===null){if(h.value===null||h.value.length===0)return;d.value=[],h.value=[],z&&(c("update:modelValue",[]),c("change",[]));return}let q=!0;if(ee.length!==h.value.length)q=!1;else for(let N=0;N<ee.length;N++){const L=ee[N],j=h.value[N];if(!Or(n,L,j)){q=!1;break}}if(!q){h.value=ee;let N=[],L=[];ee.forEach(G=>{N.push(xt(n,G)),n.valueType==="text"?L.push(St(n,G)):n.valueType==="item"?L.push(G):L.push(xt(n,G))}),d.value=N;const j=o.toRaw(L);z&&(c("update:modelValue",j),c("change",j))}},v=o.ref([]),y=Fe(o.computed(()=>n.appearLoad),"appearLoad",Pe.Near,$=>ue($)),f=Oc(),g=async($,I)=>{if($){const b=await f.load("checkbox",$,I);if(b.length>0)if(typeof b[0]=="string"){let q=b.map(N=>Vc(N));v.value=q}else v.value=b}};o.watch([()=>n.source,()=>n.params],async([$,I])=>{g($,I)},{immediate:!y.value});let M=!1;const T=()=>{M||(M=!0,g(n.source,n.params))};o.watch([()=>v.value,()=>n.modelValue],([$,I])=>{p(I,n.valueType,$,!1),c("setValue",I)});const x=e,V=o.computed(()=>({[x]:!0,[`is-${n.direction}`]:!0})),_=$=>{p($,"value",v.value,!0)};let A=ge(n,"hintText"),F=ge(n,"hintVisible");const P=($,I)=>{const b=[];return $.forEach((z,ee)=>{const q=xt(n,z),N=St(n,z);let L=kc(n,z);i.value===!0&&(L=i.value),s.value===!0&&(L=s.value);const j=Rc(n,z,ee)??{},G=`${q}_${ee}`,Q={...j,key:G,class:n.itemClass,value:q,size:n.size,border:ue(n.border)};L&&(Q.disabled=L),n.itemType==="button"?b.push(o.h(S.ElCheckboxButton,Q,{default:()=>[N]})):typeof I=="function"?b.push(o.h(S.ElCheckbox,Q,{default:()=>I(z)})):b.push(o.h(S.ElCheckbox,Q,{default:()=>[N]}))}),b};return Se({setDisabled:$=>{a.value=$},setReadonly:$=>{u.value=$}}),()=>{const I={...Xe(r.attrs),class:V.value,disabled:i.value||s.value,modelValue:d.value,"text-color":n.textColor,fill:n.fill,max:Te(n.max),min:Te(n.min),onChange:_},b=[],z={};r.slots.options?z.default=r.slots.options:z.default=()=>P(v.value,r.slots.text);const ee=o.h(S.ElCheckboxGroup,I,z);b.push(ee);const q={default:()=>b};q.label=r.slots.default,q.fixedPreTip=r.slots.fixedPreTip,q.fixedTip=r.slots.fixedTip;const L={...De(n,Dr),hintText:A.value,hintVisible:F.value};return n.prop&&(L.prop=`${n.prop}_item`),y.value&&(L["appear-listen"]=!0,L.onAppear=T),o.h(l,L,q)}}}}const{componentName:Ac,create:Mc,scope:Lc}=ie("checkbox-item"),ko=Mc(Fc(Ac,Lc,Ce)),Vr={modelValue:{type:[Number,String],required:!1}};function Bc(e,t,l){return{props:{...$e,...Re,...Vr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),d=ge(n,"modelValue",M=>Te(M),c),h=e,p=o.computed(()=>({[h]:!0})),v=M=>{c("update:modelValue",M),c("change",M)};let y=ge(n,"hintText"),f=o.ref(!1);const g=o.ref();return Se({setDisabled:M=>{a.value=M},setReadonly:M=>{u.value=M}}),()=>{const T={...Xe(r.attrs),ref:g,class:p.value,readonly:s.value||i.value,modelValue:d.value,onChange:v},x={},V=[],_=o.h(S.ElRate,T,x);V.push(_);const A={default:()=>V};A.label=r.slots.default,A.fixedPreTip=r.slots.fixedPreTip,A.fixedTip=r.slots.fixedTip;const P={...De(n,Vr),hintText:y.value,hintVisible:f.value};return n.prop&&(P.prop=`${n.prop}_item`),o.h(l,P,A)}}}}const{componentName:_c,create:qc,scope:Pc}=ie("rate-item"),Io=qc(Bc(_c,Pc,Ce)),Rr={modelValue:{type:[Boolean,String,Number],required:!1}};function jc(e,t,l){return{props:{...$e,...Re,...Rr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),d=ge(n,"modelValue",null,c),h=e,p=o.computed(()=>({[h]:!0})),v=M=>{c("update:modelValue",M),c("change",M)};let y=ge(n,"hintText"),f=ge(n,"hintVisible");const g=o.ref();return Se({setDisabled:M=>{a.value=M},setReadonly:M=>{u.value=M}}),()=>{const T={...Xe(r.attrs),ref:g,class:p.value,readonly:s.value,disabled:i.value,modelValue:d.value,onChange:v},x={},V=[],_=o.h(S.ElSwitch,T,x);V.push(_);const A={default:()=>V};A.label=r.slots.default,A.fixedPreTip=r.slots.fixedPreTip,A.fixedTip=r.slots.fixedTip;const P={...De(n,Rr),hintText:y.value,hintVisible:f.value};return n.prop&&(P.prop=`${n.prop}_item`),o.h(l,P,A)}}}}const{componentName:zc,create:Hc,scope:Kc}=ie("switch-item"),Oo=Hc(jc(zc,Kc,Ce)),Fr={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function Wc(e,t,l){return{props:{...$e,...Re,...Fr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),c=o.ref(!1),{emitEvent:d}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),h=ge(n,"modelValue",null,d),p=e,v=o.computed(()=>({[p]:!0})),y=F=>{d("update:modelValue",F),d("change",F)};let f=ge(n,"hintText"),g=o.ref(!1);const M=F=>{let $=F.target.value;c.value=!0,he(f.value)||(g.value=!0),d("focus",$,F)},T=F=>{setTimeout(()=>{g.value&&(g.value=!1),c.value=!1},0);let $=F.target.value;n.maxLength&&$.length>Number(n.maxLength)&&($=$.slice(0,Number(n.maxLength))),V.value||d("blur",$,F)},x=()=>{d("clear","")},V=o.ref(!1),_=F=>{V.value=F,d("visible-change",F),F||d("selected")},A=o.ref();return Se({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()},setDisabled:F=>{a.value=F},setReadonly:F=>{u.value=F}}),()=>{const P={...Xe(r.attrs),ref:A,class:v.value,disabled:i.value||s.value,modelValue:h.value,"onUpdate:modelValue":y,onClear:x,onFocus:M,onBlur:T,onVisibleChange:_},$={};r.slots.option&&($.default=r.slots.option);const I=[],b=o.h(S.ElTreeSelect,P,$);I.push(b);const z={default:()=>I};z.label=r.slots.default,z.fixedPreTip=r.slots.fixedPreTip,z.fixedTip=r.slots.fixedTip;const q={...De(n,Fr),hintText:f.value,hintVisible:g.value};return n.prop&&(q.prop=`${n.prop}_item`),o.h(l,q,z)}}}}const{componentName:Yc,create:Uc,scope:Gc}=ie("tree-select-item"),Do=Uc(Wc(Yc,Gc,Ce)),Xc={},Zc={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 Jc(e,t){return o.openBlock(),o.createElementBlock("svg",Zc,t[0]||(t[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 Qc=We(Xc,[["render",Jc]]),{componentName:Mg,create:ef,scope:Lg}=ie("group-setting"),tf={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:"到底部"}},nf=ef({components:{FoxPopover:S.ElPopover,FoxCheckbox:S.ElCheckbox,FoxCheckboxGroup:S.ElCheckboxGroup,FoxButton:S.ElButton,FoxIcon:S.ElIcon,DragIcon:Qc,Download:Ie.Download,RefreshLeft:Ie.RefreshLeft},props:{...tf},emits:["change"],setup(e,{emit:t,attrs:l,expose:n}){let r=null;const a=o.ref([]),i=Cr(),u=E=>E.length>1,s=()=>{const E=[],C=[...a.value];a.value=C.map((D,w)=>(D.visible!==!1&&E.push(D.prop),{...D,sortIndex:w})),a.value.length===E.length?f.value=!0:E.length>0&&(g.value=!0),x.value=E},c=E=>{let C=null;if(typeof E=="string")C=document.querySelectorAll(`.fox-group[prop="${E}"] > div > .fox-item[prop]`);else if(E&&typeof E=="object"){const D=E.$el??E;typeof D.querySelectorAll=="function"&&(C=D.querySelectorAll(".fox-item[prop]"))}if(!C)return[];const R=[];return C.forEach(D=>{const w=D.querySelector(".label--string");let H="";w&&(H=w.textContent??"");const Z=D.getAttribute("prop")??"",U=window.getComputedStyle(D,null).getPropertyValue("display");R.push({label:H,prop:Z,sortIndex:0,visible:U!=="none"})}),R},d=()=>{if(!r){const E=c(e.groupRef??e.groupProp);if(E.length===0)return!1;r=E}return!0},h=async(E=!1)=>{const C=await i.load(e.groupProp),R=D=>{if(!D||!r)return;const w=r.map(H=>({...H}));Array.isArray(C)&&C.forEach(H=>{w.some(Z=>{if(Z.prop===H.prop){const oe=Z.label;return Object.assign(Z,H),Z.label=oe,!0}return!1})}),a.value=w.sort((H,Z)=>H.sortIndex-Z.sortIndex),s(),E&&v(!1)};r?R(!0):Zt(d,e.initDelay,5,50,!1,R)},p=()=>{const E=r??[];a.value=E.map(C=>({...C})),s(),v()},v=(E=!0)=>{E&&i.save(e.groupProp,a.value);const C=a.value.map(R=>({...R}));t("change",C)},y=o.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),f=o.ref(!1),g=o.ref(!1),M=E=>{const C=[];a.value.forEach(D=>{E&&C.push(D.prop),D.visible=E}),f.value=!1,g.value=!1,a.value.length===C.length?f.value=!0:C.length>0&&(g.value=!0),x.value=C,v()},T=()=>{p()},x=o.ref([]),V=E=>{a.value.forEach(R=>{const D=E.indexOf(R.prop)!==-1;R.visible=D}),f.value=!1,g.value=!1;const C=a.value.length;E.length===C?f.value=!0:E.length>0&&(g.value=!0),v()},_=()=>{h()};o.onMounted(()=>{h(!0)});const A={currentRow:null,index:null},F=E=>E?E.dataset&&E.dataset.role==="row"?E:E.tagName.toLowerCase()!=="body"?(E=E.parentElement,F(E)):null:null,P=E=>{const C=E.currentTarget;C&&C.dataset&&(A.index=C.dataset.index)},$=E=>{A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null),A.index=null},I=E=>{const C=E.currentTarget;E.relatedTarget;const R=F(C);R&&(E.preventDefault(),A.currentRow&&A.currentRow!==R&&A.currentRow.classList.remove("is-dragover"),R.classList.add("is-dragover"),A.currentRow=R)},b=E=>{E.preventDefault(),A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null)},z=E=>{const C=E.currentTarget,R=F(C);if(!R)return;E.preventDefault();const D=Number(A.index),w=Number(R.dataset.index);if(D!==w){if(D<w){const H=a.value[D];a.value.splice(D,1),a.value.splice(w,0,H)}else{const H=a.value[D];a.value.splice(D,1),a.value.splice(w+1,0,H)}s(),v()}},ee=E=>{const C=a.value[E];a.value.splice(E,1),a.value.splice(0,0,C),s(),v()},q=E=>{const C=a.value[E];a.value.splice(E,1),a.value.push(C),s(),v()};n({refresh:()=>{r=null,h(!1)}});const N=new Map;let L=null;function j(E){const C=document.createRange();return C.setStart(E,0),C.setEnd(E,E.childNodes.length),C.getBoundingClientRect().width}return{attrs:l,itemPropertyList:a,isDraggble:u,isCheckAll:f,isIndeterminate:g,handleCheckAllChange:M,handleReset:T,checkedValue:x,handleCheckChange:V,onShow:_,onDragStart:P,onDragEnd:$,onDragOver:I,onDragLeave:b,onDrop:z,checkboxLabelStyle:y,toTop:ee,toBottom:q,onMouseOverForOverflowText:(E,C,R)=>{const D=E.currentTarget;if(D){const w=Math.floor(D.offsetWidth);if(Math.floor(j(D))>w){let Z=N.get(C);if(Z){if(Z===L)return;Le.hide(Z)}Z=Le.show(D,R,{type:"text",placement:"top",closeOnClick:!1}),N.set(C,Z),L=Z}}},onMouseLeaveForOverflowText:(E,C)=>{const R=N.get(C);R&&(Le.hide(R),R===L&&(L=null))},onMouseOverForTip:(E,C)=>{const R=E.currentTarget;R&&(L&&Le.hide(L),L=Le.show(R,C,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:E=>{L&&(Le.hide(L),L=null)}}}}),of={class:"fox-group-setting"},lf={class:"fox-group-setting__header"},rf={class:"fox-group-setting__body"},af={class:"fox-group-setting__body-list","data-role":"container"},sf=["data-index","draggable"],uf=["onMouseover","onMouseleave"],cf={class:"tools-item"};function ff(e,t,l,n,r,a){const i=o.resolveComponent("FoxCheckbox"),u=o.resolveComponent("FoxButton"),s=o.resolveComponent("DragIcon"),c=o.resolveComponent("Download"),d=o.resolveComponent("FoxIcon"),h=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",lf,[o.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=v=>e.isCheckAll=v),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",rf,[o.createVNode(h,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=v=>e.checkedValue=v),onChange:e.handleCheckChange},{default:o.withCtx(()=>[o.createElementVNode("div",af,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.itemPropertyList,v=>(o.openBlock(),o.createElementBlock("div",{key:v.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":v.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:t[5]||(t[5]=(...y)=>e.onDragStart&&e.onDragStart(...y)),onDragend:t[6]||(t[6]=(...y)=>e.onDragEnd&&e.onDragEnd(...y)),onDrop:t[7]||(t[7]=(...y)=>e.onDrop&&e.onDrop(...y)),onDragover:t[8]||(t[8]=(...y)=>e.onDragOver&&e.onDragOver(...y)),onDragleave:t[9]||(t[9]=(...y)=>e.onDragLeave&&e.onDragLeave(...y))},[e.isDraggble(e.itemPropertyList)?(o.openBlock(),o.createBlock(s,{key:0,class:"icon-item"})):o.createCommentVNode("",!0),o.createVNode(i,{class:"checkbox-item",label:v.prop},{default:o.withCtx(()=>[o.createElementVNode("span",{onMouseover:y=>e.onMouseOverForOverflowText(y,v.prop,v.label),onMouseleave:y=>e.onMouseLeaveForOverflowText(y,v.prop),class:"checkbox-item__label",style:o.normalizeStyle(e.checkboxLabelStyle)},o.toDisplayString(v.label),45,uf)]),_:2},1032,["label"]),o.createElementVNode("div",cf,[o.createVNode(d,{onClick:y=>e.toTop(v.sortIndex),onMouseover:t[1]||(t[1]=y=>e.onMouseOverForTip(y,e.toTopText)),onMouseleave:t[2]||(t[2]=y=>e.onMouseLeaveForTip(y)),class:"is-reverse"},{default:o.withCtx(()=>[o.createVNode(c)]),_:2},1032,["onClick"]),o.createVNode(d,{onClick:y=>e.toBottom(v.sortIndex),onMouseover:t[3]||(t[3]=y=>e.onMouseOverForTip(y,e.toBottomText)),onMouseleave:t[4]||(t[4]=y=>e.onMouseLeaveForTip(y))},{default:o.withCtx(()=>[o.createVNode(c)]),_:2},1032,["onClick"])])],40,sf))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Vo=We(nf,[["render",ff]]),df=["aria-labelledby"],hf=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),gf=[hf],mf=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:t}){const l=e,n=t,r=s=>{n("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"},gf,14,df))}}),yf=["aria-labelledby"],pf=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),bf=[pf],vf=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:t}){const l=e,n=t,r=s=>{n("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"},bf,14,yf))}}),wf=["aria-labelledby"],Sf=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),xf=[Sf],Ro=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:t}){const l=e,n=t,r=s=>{n("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"},xf,14,wf))}}),Tf=["aria-labelledby"],$f=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),Cf=[$f],Ef=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:t}){const l=e,n=t,r=s=>{n("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"},Cf,14,Tf))}}),Nf=["aria-labelledby"],kf=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),If=[kf],Of=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:t}){const l=e,n=t,r=s=>{n("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"},If,14,Nf))}}),Df=["aria-labelledby"],Vf=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),Rf=[Vf],Ff=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:t}){const l=e,n=t,r=s=>{n("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"},Rf,14,Df))}}),Af={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}},Ar=(e,t)=>t[e.textKey],Mt=(e,t)=>t[e.valueKey],Mf=(e,t)=>t[e.visibleKey],Mr=(e,t)=>t[e.disabledKey],Lf=(e,t)=>{const l=t[e.doitKey];return ue(l)},Bf=(e,t)=>{const l=t[e.numKey];return l==null?null:Te(t[l])},Lr=(e,t,l)=>{const n=e.itemOptions;return typeof n=="function"?n(t,l):n||null};function _f(e,t,l,n=!1){return{props:{...Af},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(()=>({})),d=o.computed(()=>{if(!r.gutter)return 0;const E=me(r.gutter);return E<=0?0:E}),h=o.ref(r.modelValue);o.watch(()=>r.modelValue,E=>{h.value!==E&&(h.value=E,j(!1))});const p=o.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),v=o.computed(()=>{const E={};return f.value||(E.display="none"),E}),y=o.ref(),f=o.ref(!1),g=()=>{const E=!f.value;M(E)},M=E=>{const C=E;C?(f.value=C,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,y.value?y.value.addEventListener("transitionend",()=>{f.value=!1},{once:!0}):setTimeout(()=>{f.value=!1},0))},T=o.ref(),x=o.ref([]),V=(E,C)=>{x.value[C]=E},_=E=>C=>{V(C,E)},A=(E,C)=>{const R=T.value,D=x.value;if(!R||!D||!D[E])return;const w=D[E];let H=0;r.direction==="vertical"?H=w.offsetTop-(R.offsetHeight-w.offsetHeight)/2:H=w.offsetLeft-(R.offsetWidth-w.offsetWidth)/2,F(R,H,C?0:.3,r.direction)},F=(E,C,R,D)=>{let w=0;const H=D==="horizontal"?E.scrollLeft:E.scrollTop,Z=R===0?1:Math.round(R*1e3/16);function oe(){D==="horizontal"?E.scrollLeft+=(C-H)/Z:E.scrollTop+=(C-H)/Z,++w<Z&&qn(oe)}oe()},P=(E,C)=>{const R=Mt(r,E),D={};return D[`${e}__titles-item`]=!0,D.disabled=Mr(r,E),D.active=R===h.value,r.shape&&(D[`${r.shape}`]=!0),r.ellipsis&&(D.ellipsis=!0),C&&(C.class&&(D[`${C.class}`]=!0),C.disabled===!0&&(D.disabled=C.disabled)),D},$=(E,C)=>{const R={};if(d.value>0){const D=Math.abs(d.value/2);r.direction==="vertical"?(R["margin-top"]=`${D}px`,R["margin-bottom"]=`${D}px`):(R["margin-left"]=`${D}px`,R["margin-right"]=`${D}px`)}return C&&C.style&&Object.assign(R,C.style),R},I=(E,C)=>`${Mt(r,E)??C}`,b=(E,C)=>{const R=Mt(r,E),D={};D[`${e}__popup-item`]=!0,D.disabled=Mr(r,E),D.active=R===h.value,r.shape&&(D[`${r.shape}`]=!0);const w=Lr(r,E,C);return w&&w.disabled===!0&&(D.disabled=w.disabled),D},z=o.computed(()=>(r.data??[]).filter(C=>Mf(r,C)!==!1)),ee=(E,C)=>{const R=Mt(r,E);if(h.value==R)return;const D=()=>{h.value=R,r.scroll&&A(C,!1),i("update:modelValue",R),i("change",E,C)};if(typeof r.beforeChange=="function"){const w=r.beforeChange(E,C);bl(w)?w.then(H=>{H!==!1&&D()}).catch(()=>{D()}):w!==!1&&D()}else D()},q=(E,C)=>function(){ee(E,C)},N=(E,C)=>{ee(E,C),M(!1)},L=(E,C)=>function(){N(E,C)},j=E=>{if(!Array.isArray(r.data)||!r.scroll)return;const C=r.data.findIndex(R=>Mt(r,R)===h.value);C!==-1&&A(C,E)};o.watch(()=>r.data,()=>{setTimeout(j,0)}),o.onMounted(()=>{j(!0)});const G=(E,C)=>{if(a.item)return a.item({item:E,index:C});const R=Lr(r,E,C),D=[];if(a.text){const oe=a.text({item:E,index:C});D.push(oe)}else{const oe=[];if(R?.doit===!0||Lf(r,E)){const W={class:[`${e}__titles-item-tip`,"doit"]},J=o.h("view",W);oe.push(J)}const U=R?.num??Bf(r,E);if(U){let W="";const J=Te(U);J>=100?W="99+":W=`${J}`;const O={class:[`${e}__titles-item-tip`,"num"]},K=o.h("view",O,[W]);oe.push(K)}const Y={class:`${e}__titles-item-text`};oe.push(Ar(r,E));const k=o.h("view",Y,oe);D.push(k)}const w={class:`${e}__titles-item-line`},H=o.h("view",w);D.push(H);const Z={ref:_(C),class:P(E,R),style:$(E,R),key:I(E,C),onClick:q(E,C)};return o.h("view",Z,D)},Q=()=>{const E=a.default?a.default():[];if(E.length===0)for(let R=0;R<z.value.length;R++){const D=z.value[R],w=G(D,R);E.push(w)}const C={ref:T,class:s.value,style:c.value};return o.h("view",C,E)},B=()=>{let E=null;a.navigation?E=a.navigation():E=o.h(l);const C={class:`${e}__navigation`,onClick:g};return o.h("view",C,[E])},te=()=>{const E=[];for(let R=0;R<z.value.length;R++){const D=z.value[R];let w=null;a.popupItem?w=a.popupItem({item:D,index:R}):w=Ar(r,D);const H={class:b(D,R),key:I(D,R),onClick:L(D,R)},Z=o.h("view",H,[w]);E.push(Z)}const C={class:p.value,style:v.value};return o.h("view",C,E)};return()=>{const E=[],C=Q();if(E.push(C),r.showQuickNavigation){const D=B();E.push(D);const w=te();E.push(w)}const R={class:u.value};return o.h("view",R,E)}}}}const{create:qf,componentName:Pf,scope:jf}=ie("tabs-bar"),Fo=qf(_f(Pf,jf,vf,!1)),Br=Symbol("TabsStatesKey"),zf={modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1}},_r=10;function qr(e,t){return e>t&&e>_r?"horizontal":t>e&&t>_r?"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:""},t=()=>e.direction==="vertical",l=()=>e.direction==="horizontal",n=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const 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=qr(e.offsetX,e.offsetY))},start:i=>{if(n(),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:n,isVertical:t,isHorizontal:l,state:e}}function Hf(){const e=o.ref(0),t=o.ref(0),l=o.ref(0),n=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),d=o.ref(""),h=()=>d.value==="vertical",p=()=>d.value==="horizontal",v=()=>{i.value=0,u.value=0,s.value=0,c.value=0,d.value="",l.value=0};return{move:g=>{if(g.touches){const x=g.touches[0];i.value=x.clientX-e.value,u.value=x.clientY-t.value,r.value=x.clientX,a.value=x.clientY}else{const T=g;i.value=T.clientX-e.value,u.value=T.clientY-t.value,r.value=T.clientX,a.value=T.clientY}s.value=Math.abs(i.value),c.value=Math.abs(u.value),n.value=Date.now()-l.value,d.value||(d.value=qr(s.value,c.value))},start:g=>{if(v(),g.touches){const x=g.touches[0];e.value=x.clientX,t.value=x.clientY}else{const T=g;e.value=T.clientX,t.value=T.clientY}l.value=Date.now()},reset:v,startX:e,startY:t,startTime:l,duration:n,moveX:r,moveY:a,deltaX:i,deltaY:u,offsetX:s,offsetY:c,direction:d,isVertical:h,isHorizontal:p}}const Kf=15,Wf=300,Yf=200;function Uf(e,t,l=1){return e=Math.abs(e/t)/.003*(e<0?-1:1),e*l}function Pr(e,t=0,l,n,r=Yf){l==="end"?e.style.transition=`transform ${r}ms linear`:e.style.transition="transform 0ms linear",n==="horizontal"?e.style.transform=`translate3d(${t}px, 0, 0)`:e.style.transform=`translate3d(0, ${t}px, 0)`}let Gf=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(t,l,n,r=1){this.onStart=t,this.onMove=l,this.onEnd=n,this.momentumReduceRatio=r,this.isTouch=Lt()}open(t){this.el=t;const l=Bt(),n=(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=()=>{t.removeEventListener("transitionend",this.transitionend),this.moving=!1,this.onEnd()},this.moving=!0,t.removeEventListener("transitionend",this.transitionend),t.addEventListener("transitionend",this.transitionend),t.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),t.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&t.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}n(a,this.direction,"move")},this.touchend=()=>{if(!this.moving)return;t.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),t.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&t.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<Wf&&Math.abs(r)>Kf?(r=Uf(r,a,this.momentumReduceRatio),n(r,this.direction,"end")):n(r,this.direction,"end")},t.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const t=this.el;this.transitionend&&t.addEventListener("transitionend",this.transitionend),this.touchstart&&t.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.touchmove&&t.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&t.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.touchcancel&&this.isTouch&&t.addEventListener("touchcancel",this.touchcancel),this.el=null}};function Xf(e,t,l,n=1){return new Gf(e,t,l,n)}function Zf(e,t,l=!1){return{props:{...zf},emits:["update:modelValue","change"],setup(n,{emit:r,slots:a}){const i=o.shallowRef([]),u={current:o.ref(n.modelValue??""),direction:o.ref(n.direction),tabWidth:o.ref(-1),tabHeight:o.ref(-1),add:V=>{const _={name:V};u.current.value===V&&(_.loaded=!0),i.value.push(_),o.triggerRef(i)},remove:V=>{const _=i.value.findIndex(A=>A.name===V);_!==-1&&i.value.splice(_,1)},isLoaded:V=>{if(!n.lazy)return!0;const _=i.value.findIndex(A=>A.name===V);return _!==-1?u.current.value?i.value[_].loaded??!1:_===0:!1}};o.provide(Br,u);const s=V=>{const _=i.value.findIndex(A=>A.name===V);_!==-1&&(i.value[_].loaded=!0,o.triggerRef(i))};o.watch([()=>n.modelValue,()=>n.direction],([V,_])=>{u.current.value!==V&&(u.current.value=V??"",s(V??"")),u.direction.value!==_&&(u.direction.value=_)});const c=o.ref(null),d=o.ref(null),h=o.computed(()=>({[e]:!0,[`${n.direction}`]:!0}));let p=!0;const v=o.computed(()=>{const V={},_=i.value.length;if(_<=0)return V;const A=i.value.findIndex(F=>F.name===u.current.value);return u.direction.value==="vertical"?u.tabHeight.value>0&&(V.height=`${_*u.tabHeight.value}px`,A!==-1&&(V.transform=`translate(0, -${A*u.tabHeight.value}px)`)):u.tabWidth.value>0&&(V.width=`${_*u.tabWidth.value}px`,A!==-1&&(V.transform=`translate(-${A*u.tabWidth.value}px, 0)`)),p&&(p=!1,V.transition="transform 0s ease"),V}),y={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},f=V=>{const _=i.value.length,A=i.value.findIndex(F=>F.name===u.current.value);y.moved=0,V.direction==="vertical"?(y.min=-1*(u.tabHeight.value*(_-1)+u.tabHeight.value/4),y.max=u.tabHeight.value/4,y.start=-A*u.tabHeight.value,y.itemDistance=u.tabHeight.value):(y.min=-1*(u.tabWidth.value*(_-1)+u.tabWidth.value/4),y.max=u.tabWidth.value/4,y.start=-A*u.tabWidth.value,y.itemDistance=u.tabWidth.value)},g=V=>{const _=d.value;if(!_)return;let A=y.start+V.delta;if(A>y.max?A=y.max:A<y.min&&(A=y.min),V.type==="move")Pr(_,A,"move",V.direction,300);else if(V.type==="end"){let F=Math.floor(Math.abs(A)*1/y.itemDistance);const P=Math.abs(A)%y.itemDistance;y.start>A?P>=y.itemDistance*y.triggerAutoMoveRatio&&(F+=1):P>y.itemDistance-y.itemDistance*y.triggerAutoMoveRatio&&(F+=1),A=-1*F*y.itemDistance,Pr(_,A,"end",V.direction,300),y.moved=A;const $=i.value[F].name;u.current.value=$??"",s($??""),r("update:modelValue",$)}},M=()=>{};let T=null,x=null;return o.onMounted(()=>{if(!c.value)return;const V=()=>{const _=an(c.value);u.tabWidth.value=_.width,u.tabHeight.value=_.height};window.ResizeObserver&&(x=new window.ResizeObserver(V),x.observe(c.value)),V(),n.draggle&&(T=Xf(f,g,M),T.open(d.value))}),o.onBeforeUnmount(()=>{x&&(x.disconnect(),x=null),T&&T.close()}),()=>{const V={class:`${e}__panes`,style:v.value,ref:d},_=o.h("view",V,[a?.default?.()]),A={class:h.value,ref:c};return o.h("view",A,[_])}}}}const{create:Jf,componentName:Qf,scope:ed}=ie("tabs-container"),Ao=Jf(Zf(Qf,ed,!1)),td={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function nd(e,t,l){return{props:{...td},setup(n,{emit:r,slots:a}){const i=o.inject(Br);o.onMounted(()=>{i.add(n.paneKey)}),o.onBeforeUnmount(()=>{i.remove(n.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(()=>n.loaded!=null?ue(n.loaded):i.isLoaded(n.paneKey));return()=>{let c=[];if(s.value)c=a?.default?.()??[];else if(a.empty)c=a.empty();else{const h={class:`${e}__empty-icon`},p=n.emptyIcon??l,v=o.h(p,h),y={class:`${e}__empty-text`},f=n.emptyText??"Loading",g=o.h("view",y,[f]),M={class:`${e}__empty`},T=o.h("view",M,[v,g]);c.push(T)}const d={class:`${e}`,style:u.value};return o.h("view",d,c)}}}}const{create:od,componentName:ld,scope:rd}=ie("tabs-pane"),Mo=od(nd(ld,rd,Ro)),ad={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 id(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function jr(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function zr(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function sd(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function Lo(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function Hr(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function Kr(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function Bo(e,t,l){return typeof e.itemOptions=="function"?e.itemOptions(t,l):e.itemOptions}class ud{proxy;constructor(t){this.proxy=t}async load(t,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await Reflect.apply(l,null,[n]);const r=Ke(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Je(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await Reflect.apply(r,null,[l,n]))}}function cd(){const e=o.getCurrentInstance();return new ud(e.proxy)}function fd(e,t,l,n){return{props:{...ad},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:i}){const u=e,s=cd(),c=o.ref([]),d=o.computed(()=>c.value.filter(C=>sd(r,C)!==!1)),h=o.ref(-1),p=()=>{const C=r.modelValue,R=d.value.findIndex(D=>jr(r,D)===C);h.value!==R&&(h.value=R,r.scroll&&te(R))};o.watch([()=>r.modelValue,d],()=>{p()});const v=C=>h.value===C,y=C=>{if(C<0&&C>=d.value.length)return!1;const R=d.value[C],w=(Bo(r,R,C)??{}).status??Lo(r,R);return v(C)||w},f=o.computed(()=>{const C={[u]:!0};return r.mode?C[`is-${r.mode}`]=!0:r.direction&&(C[`is-${r.direction}`]=!0),r.scroll&&(C["is-scroll"]=!0),C}),g=o.computed(()=>({})),M=(C,R,D,w,H)=>{const Z={[`${u}__step`]:!0};return H&&(Z[`${H}`]=!0),Z[`${T.value}`]=!0,w&&(Z["is-doit"]=!0),C===h.value?Z["is-active"]=!0:R==="done"?Z["is-done"]=!0:R==="error"?Z["is-error"]=!0:R==="half"?Z["is-half"]=!0:D?Z["is-disabled"]=!0:Z["is-normal"]=!0,Z},T=o.computed(()=>{if(r.mode==="simple")return"start";let C=r.align;return C||(r.direction==="vertical"?C="start":C="center"),C}),x=(C,R={})=>{const D={...R};return T.value==="start"&&C===d.value.length-1?D.flex="0 0 auto":r.step?r.direction==="vertical"?D.height=r.step:D.width=r.step:D.flex="1 1 100%",D},V=(C,R)=>{let D={};if(R<d.value.length-1){const w=R+1;y(R)&&y(w)?r.direction==="vertical"?D.height="100%":D.width="100%":D.opacity="0"}return D},_=C=>d.value.length-1===C,A=(C,R)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&R>h.value||h.value===R)return;const D=h.value,w=R;h.value=R,r.scroll&&te(R);const H=jr(r,C);i("update:modelValue",H);const Z={fromIndex:D,currentIndex:w,item:C,items:d.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",H,Z)},F=o.ref(!0),P=async(C,R)=>{try{const D=await s.load("stesbar",C,R);Array.isArray(D)&&(c.value=D),F.value=!1}catch(D){console.error("[FoxUI] Load StepsBar Data Fail",D),c.value=[]}setTimeout(()=>{i("loaded-data")},250)};o.watch([()=>r.data,()=>r.params],async([C,R])=>{C&&P(C,R)},{immediate:!0});const $=(C,R,D,w,H)=>{let Z=null;if(a.icon)Z=a.icon({item:C,index:R,status:w});else if(w==="done"){const U={};r.iconSize&&(U.width=r.iconSize,U.height=r.iconSize);const Y=r.icon??l;Z=o.h(Y,U)}else{const U=D??`${R+1}`;Z=o.h("span",{},[U])}const oe={class:"fox-steps-bar__icon",onClick:()=>{H||A(C,R)}};return o.h("view",oe,[Z])},I=(C,R,D)=>{const w=o.h("i",{class:"fox-steps-bar__line-inner",style:V(C,R)});return o.h("view",{class:"fox-steps-bar__line"},[w])},b=()=>{let C=null;if(a.markIcon)C=a.markIcon();else{const D={};r.iconSize&&(D.width=r.markIconSize,D.height=r.markIconSize);const w=r.markIcon??n;C=o.h(w,D)}return o.h("view",{class:"fox-steps-bar__mark"},[C])},z=(C,R,D,w,H)=>{const Z=[];if(!_(R)){const Y=I(C,R);Z.push(Y)}const oe=$(C,R,D,w,H);Z.push(oe);const U={class:"fox-steps-bar__head"};return o.h("view",U,Z)},ee=(C,R,D,w)=>{let H=null;a.main?H=a.main({item:C,index:R,status:D}):H=id(r,C);const Z={class:"fox-steps-bar__main",onClick:()=>{w||A(C,R)}};return o.h("view",Z,[H])},q=(C,R,D)=>{let w=null;if(a.sub){w=a.sub({item:C,index:R,status:D});const H={class:"fox-steps-bar__sub"};return o.h("view",H,[w])}return null},N=(C,R)=>{const D=Bo(r,C,R)??{},w=D.status??Lo(r,C);let H=zr(r,C);D.disabled===!0&&(H=!0),r.disabled===!0&&(H=!0);const Z=D.label??Kr(r,C),oe=[],U=$(C,R,Z,w,H);U&&oe.push(U);const Y=ee(C,R,w,H);if(Y&&oe.push(Y),!_(R)){const X=I(C,R);X&&oe.push(X)}const k=o.h("view",{class:"fox-steps-bar__head"},oe),W=D.class,J=D.style??{};let O=Hr(r,C);D.doit===!0&&(O=!0);const K={ref:B(R),class:M(R,w,H,O,W),style:x(R,J)};return o.h("view",K,[k])},L=(C,R)=>{const D=Bo(r,C,R)??{},w=D.status??Lo(r,C);let H=zr(r,C);D.disabled===!0&&(H=!0),r.disabled===!0&&(H=!0);const Z=D.label??Kr(r,C),oe=[],U=r.layout;for(let O of U)if(O==="head"){const K=z(C,R,Z,w,H);oe.push(K)}else if(O==="main"){const K=ee(C,R,w,H);oe.push(K)}else if(O==="sub"){const K=q(C,R,w);oe.push(K)}else if(O==="mark"){const K=b();oe.push(K)}const Y=D.class,k=D.style??{};let W=Hr(r,C);D.doit===!0&&(W=!0);const J={ref:B(R),class:M(R,w,H,W,Y),style:x(R,k)};return o.h("view",J,oe)},j=o.ref(),G=o.ref([]),Q=(C,R)=>{G.value[R]=C},B=C=>R=>{Q(R,C)},te=(C,R)=>{const D=j.value,w=G.value;if(!D||!w||!w[C])return;const H=w[C];let Z=0;r.direction==="vertical"?Z=H.offsetTop-(D.offsetHeight-H.offsetHeight)/2:Z=H.offsetLeft-(D.offsetWidth-H.offsetWidth)/2,E(D,Z,.3,r.direction)},E=(C,R,D,w)=>{let H=0;const Z=w==="horizontal"?C.scrollLeft:C.scrollTop,oe=Math.round(D*1e3/16);function U(){w==="horizontal"?C.scrollLeft+=(R-Z)/oe:C.scrollTop+=(R-Z)/oe,++H<oe&&qn(U)}U()};return()=>{const C=[];if(r.mode==="simple")for(let D=0;D<d.value.length;D++){const w=d.value[D],H=N(w,D);C.push(H)}else for(let D=0;D<d.value.length;D++){const w=d.value[D],H=L(w,D);C.push(H)}const R={ref:j,class:f.value,style:g.value};return o.h("view",R,C)}}}}const{componentName:dd,create:hd,scope:gd}=ie("steps-bar"),_o=hd(fd(dd,gd,Of,Ff)),md=Symbol.for("InnerPageScopeKey"),yd=Symbol.for("PageWrapperKey");function pd(e,t){return{props:{class:{type:[String]},title:{type:[String]},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,n){o.provide(md,!0);const r={};o.provide(yd,r);const a=s=>{typeof r.beforeClose=="function"&&r.beforeClose()},i=o.ref(!0),u=s=>{i.value=s};return()=>{const c={...n.attrs,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},d=["fox-dialog-item "];l.hideHeader&&d.push("hide-header"),l.class&&d.push(l.class),c.class=d.join(" ");const h={};return typeof n.slots.default=="function"&&(h.default=n.slots.default),o.h(S.ElDialog,c,h)}}}}const{componentName:Bg,create:bd,scope:_g}=ie("dialog-item"),qo=bd(pd());let _t=0;const Wr="fox-overflow-hidden",Yr=()=>nt?document.body:{classList:[]},vd=e=>[()=>{if(e())try{!_t&&Yr().classList.add(Wr),_t++}catch{}},()=>{if(e()&&_t)try{_t--,!_t&&Yr().classList.remove(Wr)}catch{}}],wd={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:Sd,create:xd}=ie("overlay"),Td=xd({props:{...wd},emits:["click","update:visible"],setup(e,{emit:t}){const[l,n]=vd(()=>e.lockScroll),r=o.computed(()=>({[Sd]:!0,[e.overlayClass]:!0})),a=o.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return o.watch(()=>e.visible,u=>{u?l():n()}),{classes:r,style:a,onClick:u=>{t("click",u),e.closeOnClickOverlay&&t("update:visible",!1)}}}});function $d(e,t,l,n,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:t[0]||(t[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 En=We(Td,[["render",$d]]),Cd={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:{}}},Ur=2e3;let Gr=Ur;const Ed=(e,t)=>({components:t,props:{...Cd},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(l,{emit:n}){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!==Ur&&(Gr=Number(l.zIndex)),n("update:visible",!0),r.zIndex=++Gr,l.destroyOnClose&&(r.showSlot=!0),n("open")},c=()=>{n("update:visible",!1),n("close"),l.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+l.duration*1e3)},d=f=>{n("click-pop",f)},h=f=>{f.stopPropagation(),n("click-close-icon",f),n("update:visible",!1)},p=f=>{n("click-overlay",f),l.closeOnClickOverlay&&n("update:visible",!1)},v=f=>{n("opend",f)},y=f=>{n("closed",f)};return o.watch(()=>l.visible,f=>{l.visible?s():c()}),o.watch(()=>l.closeable,f=>{r.closed=f}),{...o.toRefs(r),popStyle:i,transitionName:u,classes:a,onClick:d,onClickCloseIcon:h,onClickOverlay:p,onOpened:v,onClosed:y}}}),{componentName:Nd,create:kd}=ie("popup"),Id=kd(Ed(Nd,{FoxOverLay:En,Close:Ef}));function Od(e,t,l,n,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:t[1]||(t[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:t[0]||(t[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 Po=We(Id,[["render",Od]]),{create:Dd}=ie("toast"),Vd=Dd({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 l=null;const n=o.reactive({mounted:!1});o.onMounted(()=>{n.mounted=!0});const r=()=>{l&&(clearTimeout(l),l=null)},a=()=>{n.mounted=!1},i=()=>{r(),e.duration&&(l=setTimeout(()=>{a()},e.duration))},u=()=>{e.closeOnClickOverlay&&(a(),t("close"))};e.duration&&i(),o.watch(()=>e.duration,v=>{v&&i()});const s=o.computed(()=>e.type!=="text"?!0:!!e.icon),c=()=>{const v=me(e.iconSize);return o.h(e.icon,{width:v,height:v,color:e.iconColor})},d=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]),h=o.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:n,hide:a,clickCover:u,renderIcon:c,hasIcon:s,toastBodyClass:d,toastIconWrapperClass:h,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Rd={key:1,class:"fox-toast-title"},Fd=["innerHTML"];function Ad(e,t,l,n,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:t[0]||(t[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",Rd,o.toDisplayString(e.title),1)):o.createCommentVNode("",!0),o.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Fd)],4)],6),[[o.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const jo=We(Vd,[["render",Ad]]),Md={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"}},Ld=(e,t,l)=>({props:{...Md},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}=Bl(),{toLocaleRefs:i}=qe.useFoxI18n(t),u=i(n,["placeholder"]),s=o.reactive({active:!1}),c=o.computed(()=>({background:n.background})),d=o.computed(()=>({background:n.inputBackground})),h=$=>{let b=$.target.value;n.maxLength&&b.length>Number(n.maxLength)&&(b=b.slice(0,Number(n.maxLength))),a("update:modelValue",b,$),a("change",b,$)},p=o.ref({}),v=$=>{let b=$.target.value;s.active=!0,p.value=n.focusStyle,a("focus",b,$)},y=$=>{setTimeout(()=>{s.active=!1},0);let b=$.target.value;n.maxLength&&b.length>Number(n.maxLength)&&(b=b.slice(0,Number(n.maxLength))),p.value={},a("blur",b,$)},f=$=>{a("update:modelValue","",$),a("change","",$),a("clear","")},g=o.computed(()=>String(n.modelValue).length>0),M=o.computed(()=>{const $={};return g.value||($.display="none"),$}),T=()=>{a("search",n.modelValue)},x=$=>{a("keyup-input",$),$.key.toLocaleUpperCase()==="ENTER"&&T()},V=$=>{a("click-input",$)},_=$=>{a("click-left-icon",n.modelValue,$)},A=o.computed(()=>({textAlign:n.inputAlign})),F=o.ref(null);o.onMounted(()=>{n.autofocus&&F.value.focus()});const P=()=>{const $=[];if(r.leftin){const q={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:_},N=o.h("view",q,[r.leftin()]);$.push(N)}const I={ref:F,class:[`${e}__input-inner`],style:A.value,type:n.inputType,maxlengt:n.maxLength,placeholder:u.placeholder.value,value:n.modelValue,disabled:n.disabled,readonly:n.readonly,onClick:V,onInput:h,onFocus:v,onBlur:y,onkeyup:x},b=o.h("input",I);$.push(b);const z=[];if(n.clearable){const q={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:M.value,onClick:f},N=r?.clear?.()??n.clearIcon??l,L=o.h("view",q,[o.h(N)]);z.push(L)}if(r.rightin){const q={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},N=o.h("view",q,[r.rightin()]);z.push(N)}if(z.length>0){const q={class:`${e}__input-inner-right`},N=o.h("view",q,z);$.push(N)}const ee={class:[`${e}__search-input`,`${n.shape}`],style:{...d.value,...p.value}};return o.h("view",ee,$)};return()=>{const $=[];if(n.label){const z={class:`${e}__search-label`},ee=o.h("span",z,[n.label]);$.push(ee)}if(r.leftout){const z={class:[`${e}__search-icon`,`${e}__left-search-icon`]},ee=o.h("view",z,[r.leftout()]);$.push(ee)}const I=P();if($.push(I),r.rightout){const z={class:[`${e}__search-icon`,`${e}__right-search-icon`]},ee=o.h("view",z,[r.rightout()]);$.push(ee)}const b={class:`${e}`,style:c.value};return o.h("view",b,$)}}}),{componentName:Bd,create:_d,scope:qd}=ie("searchbar"),zo=_d(Ld(Bd,qd,Ie.CircleClose)),Pd=/scroll|auto|overlay/i,Xr=window;function jd(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function zd(e,t=Xr){let l=e;for(;l&&l!==t&&jd(l);){const{overflowY:n}=window.getComputedStyle(l);if(Pd.test(n))return l;l=l.parentNode}return t}function Zr(e,t=Xr){const l=o.ref();return o.onMounted(()=>{e.value&&(l.value=zd(e.value,t))}),l}const Jr=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Hd={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 Kd(e,t,l){return{props:{...Hd},emits:["scroll-change","load-more","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=qe.useFoxI18n(t),u=i(n,["pullText","loadText","loadMoreText"]),s=o.ref(),c=Zr(s),d=o.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),h=o.computed(()=>({[e]:!0})),p=T=>T?T.offsetTop+p(T.offsetParent):0,v=()=>{let T=0,x=0,V="down";if(c.value==window){const _=Jr();s.value&&(T=p(s.value)+s.value.offsetHeight-_-window.innerHeight),x=_}else{const{scrollHeight:_,clientHeight:A,scrollTop:F}=c.value;T=_-A-F,x=F}return d.beforeScrollTop>x?V="up":V="down",d.beforeScrollTop=x,r("scroll-change",x),T<=n.threshold&&V=="down"},y=()=>{sl(()=>{if(!v()||!n.hasMore||d.isInfiniting)return!1;d.isInfiniting=!0,r("update:modelValue",!0),o.nextTick(()=>r("load-more"))})},f=()=>{c.value&&c.value.addEventListener("scroll",y,n.useCapture)},g=()=>{c.value&&c.value.removeEventListener("scroll",y,n.useCapture)};o.onMounted(()=>{f(),n.immediate&&y()}),o.onUnmounted(()=>{g()});const M=o.ref(!1);return o.onActivated(()=>{M.value&&(M.value=!1,f())}),o.onDeactivated(()=>{M.value=!0,g()}),o.watch(()=>n.modelValue,T=>{T||(d.isInfiniting=!1)}),()=>{const T={class:"fox-infinite__container"},x=o.h("view",T,[a?.default?.()]),V=[];if(d.isInfiniting){let P=a?.loading?.()??null;if(!P){let b=a?.loadingIcon?.()??null;if(!b){const q={class:["fox-infinite__bottom-box__img"]};b=o.h(l,q)}const z={class:"fox-infinite__bottom-box__text"},ee=o.h("view",z,[u.loadText.value]);P=[b,ee]}const $={class:"fox-infinite__bottom-box"},I=o.h("view",$,P);V.push(I)}else if(!n.hasMore){let P=a?.finished?.()??null;if(!P){const $={class:"fox-infinite__bottom-tips"};P=o.h("view",$,[u.loadMoreText.value]),V.push(P)}}const _={class:"fox-infinite__bottom"},A=o.h("view",_,V),F={class:h.value,ref:s};return o.h("view",F,[x,A])}}}}const{componentName:Wd,create:Yd,scope:Ud}=ie("infinite-loading"),Ho=Yd(Kd(Wd,Ud,Ro)),Gd={modelValue:{type:[Boolean],default:!1},pullingText:{type:[String]},loosingText:{type:[String]},loadingText:{type:[String]},headHeight:{type:[String,Number],default:50},pullDistance:{type:[String,Number],default:50},duration:{type:[String,Number],default:.3}},Xd=(e,t,l)=>({props:{...Gd},emits:["change","refresh","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=qe.useFoxI18n(t),u=i(n,["pullingText","loosingText","loadingText"]),s=Bt(),c=o.ref(),d=Zr(c),h=o.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),p=o.computed(()=>({[e]:!0})),v=o.computed(()=>{switch(h.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""}}),y=o.computed(()=>({transitionDuration:`${n.duration}s`,transform:h.distance?`translate3d(0,${h.distance}px, 0)`:""})),f=o.computed(()=>{const F={};return n.headHeight!=50&&(F.height=Ve(n.headHeight)),F}),g=F=>{const P=+(n.pullDistance||n.headHeight);let $=F;return F>P&&(F<P*2?$=(F+P)/2:$=P+F/4),Math.round($)},M=(F,P)=>{const $=+(n.pullDistance||n.headHeight);h.distance=F,P?h.status="loading":F===0?h.status="normal":F<$?h.status="pulling":h.status="loosing",r("change",{status:h.status,distance:F})},T=()=>h.status!=="loading"&&h.status!=="complete",x=()=>d.value==window?Jr()==0:d.value&&d.value.scrollTop==0,V=F=>{T()&&(x()?(s.start(F),h.isPullRefresh=!0,h.moving=!0):(h.distance=0,h.isPullRefresh=!1))},_=F=>{T()&&h.moving&&(s.move(F),s.isVertical()&&s.state.deltaY>0&&h.isPullRefresh&&(F.cancelable&&F.preventDefault(),M(g(s.state.deltaY))))},A=()=>{h.moving=!1,h.isPullRefresh&&T()&&s.state.deltaY&&(h.status==="loosing"?(M(+n.headHeight,!0),r("update:modelValue",!0),o.nextTick(()=>r("refresh"))):M(0)),setTimeout(()=>{s.reset()},0)};return o.watch(()=>n.modelValue,F=>{F?M(+n.headHeight,!0):M(0)}),()=>{const F=[];let P=null;if(h.status==="loading"){if(P=a?.loading?.()??null,!P){const L={class:["fox-pull-refresh-container-topbox-icon"]};P=o.h(l,L)}}else h.status==="pulling"?P=a?.pulling?.()??null:h.status==="loosing"&&(P=a?.loosing?.()??null);P&&F.push(P);const $={class:["fox-pull-refresh-container-topbox-text"]},I=o.h("dive",$,[v.value]);F.push(I);const b={class:["fox-pull-refresh-container-topbox"],style:f.value},z=o.h("div",b,F),ee={class:"fox-pull-refresh-container",style:y.value},q=o.h("div",ee,[z,a?.default?.()]),N={ref:c,class:p.value};return Lt()?Object.assign(N,{onTouchstart:V,onTouchmove:_,onTouchend:A}):Object.assign(N,{onMousedown:V,onMousemove:_,onMouseup:A}),o.h("div",N,[q])}}}),{componentName:Zd,create:Jd,scope:Qd}=ie("pull-refresh"),Ko=Jd(Xd(Zd,Qd,Ro));function eh(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(l,{slots:n}){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 d={[`${r}__text`]:!0,[`${r}__text-${l.type}`]:!0};return l.textPosition==="left"?d["is-left"]=!0:d["is-right"]=!0,d}),c=o.computed(()=>l.color?{color:l.color}:null);return()=>{let d=null;if(n.mark)d=n.mark()[0];else{const f={class:i.value,style:u.value};d=o.h(l.icon??"div",f)}const h={class:s.value,style:c.value},p=n.default?n.default():[],v=o.h("div",h,p),y={class:a.value};return l.textPosition==="right"?o.h("div",y,[d,v]):o.h("div",y,[v,d])}}}}const{componentName:th,create:nh,scope:qg}=ie("indicator"),Wo=nh(eh(th));function oh(e,t){const l=document.createRange();l.setStart(e,0),l.setEnd(e,e.childNodes.length);const n=l.getBoundingClientRect().width;if(n>0){t(n);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"),t(r)},500)}const lh={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 rh(e,t,l,n=!1){return{props:{...lh},emits:["click"],setup(r,a){const i=o.ref(null),u=o.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}),s=o.computed(()=>{const x={},V=r.textColor??r.color;return V&&(x.color=V),x}),c=(x,V)=>{let _=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const A=r.highlightFilter;if(x.indexOf(A)!==-1){const P=x.replace(new RegExp(A,"g"),`<span>${A}</span>`);V.innerHTML=P,V.class["is-highlight"]=!0,_=o.h(r.tag,V)}}else if(typeof r.highlightFilter=="function"){const A=r.highlightFilter(x);A&&(V.innerHTML=A,V.class["is-highlight"]=!0,_=o.h(r.tag,V))}return _},d=x=>{a.emit("click",x)};let h="";const p=()=>{const x=i.value;if(!x)return;const V=x.clientWidth;oh(x,_=>{const A=x.innerHTML??"";he(A)||_<V||(h?l?.show(x,A,{type:"text",id:h,showArrow:r.showArrow},!0):h=l?.show(x,A,{type:"text",showArrow:r.showArrow},!0)??"")})},v=()=>{h&&l?.hide(h)};let y=null;const f=x=>{y||(y=setTimeout(()=>{p(),y=null},r.showAfter??0))},g=x=>{y&&(clearTimeout(y),y=null),setTimeout(()=>{v()},r.hideAfter??0)},M=()=>{const x=i.value;x&&(x.addEventListener("mouseover",f),x.addEventListener("mouseleave",g))},T=()=>{const x=i.value;x&&(x.removeEventListener("mouseover",f),x.removeEventListener("mouseleave",g))};return o.onMounted(()=>{!ue(r.showOverflowTooltip)||!l||M()}),o.onBeforeUnmount(()=>{!ue(r.showOverflowTooltip)||!l||T()}),()=>{const x={onClick:d,class:u.value,style:s.value,ref:i};let V=null;if(ue(r.numberFormat)&&typeof a.slots.default=="function"){const P=a.slots.default();if(Array.isArray(P)&&P.length===1){const $=P[0].type.toString();if($==="Symbol(Text)"||$==="Symbol(v-txt)"){const I=Te(r.digits),b=Te(r.decimalLength),z=ue(r.autoPadding);let ee=`${P[0].children}`,q=ee.split("").reverse().join("");q=zt(q,b,z,I,r.separator),ee=q.split("").reverse().join(""),r.highlightFilter!==void 0&&(V=c(ee,x)),V||(x.innerHTML=ee,V=o.h(r.tag,x))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const P=a.slots.default();if(Array.isArray(P)&&P.length===1){const $=P[0].type.toString();if($==="Symbol(Text)"||$==="Symbol(v-txt)"){const I=`${P[0].children}`;V=c(I,x),V||(x.innerHTML=I,V=o.h(r.tag,x))}}}V||(V=o.h(r.tag,x,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return V;let A=null;if(r.icon){const P={[`${e}__mark-wrap`]:!0};r.type&&(P[`${e}__mark-wrap--${r.type}`]=!0);const $={},I=r.color;I&&($.color=I);const b={class:P,style:$};A=o.h("view",b,o.h(r.icon))}else if(a.slots.mark){const P={[`${e}__mark-wrap`]:!0};r.type&&(P[`${e}__mark-wrap--${r.type}`]=!0);const $={},I=r.color;I&&($.color=I);const b={class:P,style:$};A=o.h("view",b,{default:a.slots.mark})}else{const P={[`${e}__mark`]:!0};r.type&&(P[`${e}__mark--${r.type??"default"}`]=!0);const $={},I=r.color;I&&($["background-color"]=I);const b={class:P,style:$};A=o.h("view",b)}const F={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return o.h("view",F,[A,V])}}}}const{componentName:ah,create:ih,scope:sh}=ie("text"),Yo=ih(rh(ah,sh,Le,!1)),uh={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:Ie.ArrowUp}};function ch(e,t,l){return{props:{...uh},emits:["click","update:modelValue"],setup(n,{emit:r}){const a=o.computed(()=>{const h={[`${e}`]:!0};return n.disabled?h[`${e}__disabled`]=!0:h[`${e}__${n.type}`]=!0,h}),i=ge(n,"modelValue"),u=o.computed(()=>i.value?n.expandText??"":n.collapseText??""),s=o.computed(()=>({[`${e}__text`]:!0})),c=o.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),d=()=>{r("update:modelValue",!i.value)};return()=>{const h=[];if(u.value){const f={class:s.value},g=o.h("span",f,[u.value]);h.push(g)}const p={class:c.value},v=l(n.icon,p);return v&&h.push(v),o.h("div",{class:a.value,onClick:d},h)}}}}const{componentName:fh,create:dh,scope:hh}=ie("more-button"),Uo=dh(ch(fh,hh,(e,t)=>(e=e??Ie.ArrowUp,o.h(S.ElIcon,t,{default:()=>[o.h(e)]}))));function gh(e){e.stopPropagation()}let mh=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,l){this.startMove=t,this.updateMove=l,this.isTouch=Lt()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const l=Bt(),n=(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),gh(r),n(l.state.deltaX,l.state.deltaY))},this.touchend=()=>{n(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(t=>{this.touchstart&&t.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}};function yh(e,t){return new mh(e,t)}const ph={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]}},bh=(e,t,l,n=!1)=>({props:{...ph},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 T=[`${e}`];return r.customClass&&T.push(r.customClass),T}),c=o.computed(()=>{const T={};return he(u.top)||(T.top=u.top),he(u.right)||(T.right=u.right),he(u.bottom)||(T.bottom=u.bottom),he(u.left)||(T.left=u.left),he(r.width)||(T.width=r.width),he(r.height)||(T.height=r.height),he(r.color)||(T.color=r.color),he(r.background)||(T.background=r.background),he(r.borderRadius)||(T["border-radius"]=r.borderRadius),he(r.zIndex)||(T["z-index"]=r.zIndex),T}),d=o.computed(()=>({[`${e}__icon`]:!0})),h=()=>{i("click")},p=o.ref(null),v=()=>{u.top=null,u.right=null,u.bottom=null,u.left=null},y={x:0,y:0},M=yh(T=>{if(!p.value)return;const x=p.value;v(),u.left=x.offsetLeft,u.top=x.offsetTop,x.style.left=`${u.left}px`,x.style.top=`${u.top}px`,x.style.right=null,x.style.bottom=null,y.x=u.left,y.y=u.top},T=>{if(!p.value)return;const x=p.value;v(),u.left=y.x+T.x,u.top=y.y+T.y,x.style.left=`${u.left}px`,x.style.top=`${u.top}px`});return o.onMounted(()=>{if(r.draggable&&p.value){const T=[p.value];M.open(T)}}),o.onBeforeUnmount(()=>{r.draggable&&p.value&&M.close()}),()=>{let T=[];const x=typeof a.default=="function"?a.default():[];if(x&&x.length>0)T=x;else{const _=o.h(l,{class:d.value});T.push(_)}const V={ref:_=>{p.value=_},class:s.value,style:c.value,onClick:h};return o.h("view",V,T)}}}),{componentName:vh,create:wh,scope:Sh}=ie("floating-button"),Go=wh(bh(vh,Sh,mf,!1));function xh(e){return e===window}const Qr=e=>{const t=o.unref(e);if(xh(t)){const l=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:l,bottom:n,width:l,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:Th,create:$h,scope:jg}=ie("tour"),Ch=$h({components:{Close:Ie.Close,ElPopover:S.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 l=Th,n=o.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=o.ref({}),a=o.computed(()=>`${l}`),i=o.computed(()=>{const{offset:y,maskWidth:f,maskHeight:g}=e,{width:M,height:T,left:x,top:V}=r.value,_=e.steps[n.active].offset??y,A=[x+M/2,V+T/2],F=Number(f||M),P=Number(g||T);return{width:`${F+ +_.left+_.right}px`,height:`${P+_.top+_.bottom}px`,top:`${A[1]-P/2-+_.top}px`,left:`${A[0]-F/2-+_.left}px`}}),u=y=>{y=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,o.nextTick(()=>{n.showPopup=!0,d()}),t("change",n.active)},s=y=>y.popoverWidth??e.width,c=y=>y.location??e.location,d=()=>{const y=document.querySelector(`${e.steps[n.active].target}`),f=Qr(y);r.value={x:f.left,y:f.top,top:f.top,left:f.left,width:f.width,height:f.height}},h=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},p=()=>{e.closeOnClickOverlay&&h()},v=(y,f=0)=>{y&&d(),e.steps,n.active=f,n.showTour=y,n.showPopup=y};return o.onMounted(()=>{v(e.modelValue,e.current)}),o.watch(()=>e.modelValue,y=>{v(y)}),{...o.toRefs(n),classes:a,maskStyle:i,changeStep:u,popoverWidth:s,popoverLocation:c,close:h,handleClickMask:p}}}),Eh={key:0,class:"fox-tour__content"},Nh={key:0,class:"fox-tour__content-top"},kh={class:"fox-tour__content-inner"},Ih={class:"fox-tour__content-bottom"},Oh={class:"fox-tour__content-bottom-init"},Dh={class:"fox-tour__content-bottom-operate"},Vh={key:1,class:"fox-tour__content fox-tour__content-tile"},Rh={class:"fox-tour__content-inner"};function Fh(e,t,l,n,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:t[0]||(t[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,d)=>(o.openBlock(),o.createElementBlock("div",{key:d,style:{height:"0"}},[d==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",Eh,[e.showTitleBar?(o.openBlock(),o.createElementBlock("div",Nh,[o.createElementVNode("div",{onClick:t[1]||(t[1]=(...h)=>e.close&&e.close(...h))},[o.createVNode(i,{class:"fox-tour__content-top-close"})])])):o.createCommentVNode("",!0),o.createElementVNode("div",kh,o.toDisplayString(c.content),1),o.createElementVNode("div",Ih,[o.createElementVNode("div",Oh,o.toDisplayString(e.active+1)+"/"+o.toDisplayString(e.steps.length),1),o.createElementVNode("div",Dh,[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:t[2]||(t[2]=h=>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:t[3]||(t[3]=h=>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",Vh,[o.createElementVNode("div",Rh,o.toDisplayString(c.content),1)])):o.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):o.createCommentVNode("",!0)]))),128))],2)}const Xo=We(Ch,[["render",Fh]]),Be=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,dt=e=>e==null;class Ah{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,l){this.startMove=t,this.updateMove=l,this.isTouch=Lt()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const l=Bt(),n=(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),n(l.state.deltaX,l.state.deltaY))},this.touchend=()=>{n(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(t=>{this.touchstart&&t.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function ea(e,t){return new Ah(e,t)}const ta=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;let Tt=[];const na=e=>{const t=e;t.key==="Escape"&&Tt.forEach(l=>l(t))},Mh=e=>{o.onMounted(()=>{Tt.length===0&&document.addEventListener("keydown",na),ta&&Tt.push(e)}),o.onBeforeUnmount(()=>{Tt=Tt.filter(t=>t!==e),Tt.length===0&&ta&&document.removeEventListener("keydown",na)})},Zo="fox-focus-trap.focus-after-trapped",Jo="fox-focus-trap.focus-after-released",Lh="fox-focus-trap.focusout-prevented",oa={cancelable:!0,bubbles:!1},Bh={cancelable:!0,bubbles:!1},la="foxFocusAfterTrapped",ra="foxFocusAfterReleased",_h=Symbol("foxFocusTrap"),Qo=o.ref(),Nn=o.ref(0),el=o.ref(0);let kn=0;const aa=e=>{const t=[],l=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(;l.nextNode();)t.push(l.currentNode);return t},qh=(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},ia=(e,t)=>{for(const l of e)if(!qh(l,t))return l},Ph=e=>{const t=aa(e),l=ia(t,e),n=ia(t.reverse(),e);return[l,n]},jh=e=>e instanceof HTMLInputElement&&"select"in e,it=(e,t)=>{if(e&&e.focus){const l=document.activeElement;e.focus({preventScroll:!0}),el.value=window.performance.now(),e!==l&&jh(e)&&t&&e.select()}};function sa(e,t){const l=[...e],n=e.indexOf(t);return n!==-1&&l.splice(n,1),l}const zh=()=>{let e=[];return{push:n=>{const r=e[0];r&&n!==r&&r.pause(),e=sa(e,n),e.unshift(n)},remove:n=>{e=sa(e,n),e[0]?.resume?.()}}},Hh=(e,t=!1)=>{const l=document.activeElement;for(const n of e)if(it(n,t),document.activeElement!==l)return},ua=zh(),Kh=()=>Nn.value>el.value,In=()=>{Qo.value="pointer",Nn.value=window.performance.now()},ca=()=>{Qo.value="keyboard",Nn.value=window.performance.now()},Wh=()=>(o.onMounted(()=>{kn===0&&(document.addEventListener("mousedown",In),document.addEventListener("touchstart",In),document.addEventListener("keydown",ca)),kn++}),o.onBeforeUnmount(()=>{kn--,kn<=0&&(document.removeEventListener("mousedown",In),document.removeEventListener("touchstart",In),document.removeEventListener("keydown",ca))}),{focusReason:Qo,lastUserFocusTimestamp:Nn,lastAutomatedFocusTimestamp:el}),On=e=>new CustomEvent(Lh,{...Bh,detail:e}),{componentName:zg,create:Yh,scope:Hg}=ie("focus-trap"),Uh=Yh({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:[la,ra,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:l}){const n=o.ref();let r,a;const{focusReason:i}=Wh();Mh(f=>{ue(e.trapped)&&!u.paused&&l("release-requested",f)});const u={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=f=>{if(!e.loop&&!ue(e.trapped)||u.paused)return;const{key:g,altKey:M,ctrlKey:T,metaKey:x,currentTarget:V,shiftKey:_}=f,{loop:A}=e,F=g==="Tab"&&!M&&!T&&!x,P=document.activeElement;if(F&&P){const $=V,[I,b]=Ph($);if(I&&b){if(!_&&P===b){const ee=On({focusReason:i.value});l("focusout-prevented",ee),ee.defaultPrevented||(f.preventDefault(),A&&it(I,!0))}else if(_&&[I,$].includes(P)){const ee=On({focusReason:i.value});l("focusout-prevented",ee),ee.defaultPrevented||(f.preventDefault(),A&&it(b,!0))}}else if(P===$){const ee=On({focusReason:i.value});l("focusout-prevented",ee),ee.defaultPrevented||f.preventDefault()}}};o.provide(_h,{focusTrapRef:n,onKeydown:s}),o.watch(()=>e.focusTrapEl,f=>{f&&(n.value=f)},{immediate:!0}),o.watch([n],([f],[g])=>{f&&(f.addEventListener("keydown",s),f.addEventListener("focusin",h),f.addEventListener("focusout",p)),g&&(g.removeEventListener("keydown",s),g.removeEventListener("focusin",h),g.removeEventListener("focusout",p))});const c=f=>{l(la,f)},d=f=>l(ra,f),h=f=>{const g=o.unref(n);if(!g)return;const M=f.target,T=f.relatedTarget,x=M&&g.contains(M);ue(e.trapped)||T&&g.contains(T)||(r=T),x&&l("focusin",f),!u.paused&&ue(e.trapped)&&(x?a=M:it(a,!0))},p=f=>{const g=o.unref(n);if(!(u.paused||!g))if(!e.escape&&ue(e.trapped)){const M=f.relatedTarget;!Kn(M)&&!g.contains(M)&&setTimeout(()=>{if(!u.paused&&ue(e.trapped)){const T=On({focusReason:i.value});l("focusout-prevented",T),T.defaultPrevented||it(a,!0)}},0)}else{const M=f.target;M&&g.contains(M)||l("focusout",f)}};async function v(){await o.nextTick();const f=o.unref(n);if(f){ua.push(u);const g=f.contains(document.activeElement)?r:document.activeElement;if(r=g,!f.contains(g)){const T=new Event(Zo,oa);f.addEventListener(Zo,c),f.dispatchEvent(T),T.defaultPrevented||o.nextTick(()=>{let x=e.focusStartEl;pl(x)||(it(x),document.activeElement!==x&&(x="first")),x==="first"&&Hh(aa(f),!0),(document.activeElement===g||x==="container")&&it(f)})}}}function y(){const f=o.unref(n);if(f){f.removeEventListener(Zo,c);const g=new CustomEvent(Jo,{...oa,detail:{focusReason:i.value}});f.addEventListener(Jo,d),f.dispatchEvent(g),!g.defaultPrevented&&(i.value=="keyboard"||!Kh())&&it(r??document.body,!0),f.removeEventListener(Jo,c),ua.remove(u)}}return o.onMounted(()=>{ue(e.trapped)&&v(),o.watch(()=>e.trapped,f=>{ue(f)?v():y()})}),o.onBeforeUnmount(()=>{ue(e.trapped)&&y()}),()=>typeof t.default=="function"?t.default({"handle-keydown":s}):null}}),{componentName:Gh,create:Xh,scope:Wg}=ie("floating-window"),Zh=Symbol.for("InnerPageScopeKey"),Jh=Symbol.for("PageWrapperKey"),Qh={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}},eg=Xh({inheritAttrs:!1,components:{FoxIcon:S.ElIcon,FocusTrap:Uh},props:{...Qh},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const l=Gh,n=o.ref(e.modelValue),r=o.computed(()=>!e.teleport);o.watch(()=>e.modelValue,O=>{n.value=O});const a=o.computed(()=>n.value===!1?!1:!P.value),i=o.ref(e.left),u=o.ref(e.top),s=o.ref(e.right),c=o.ref(e.bottom),d=o.computed(()=>{const O=["fox-floating-window"];return e.customClass&&O.push(e.customClass),O}),h=o.computed(()=>{const O={};return dt(i.value)?O.left="auto":O.left=Be(i.value),dt(u.value)?O.top="auto":O.top=Be(u.value),dt(s.value)?O.right="auto":O.right=Be(s.value),dt(c.value)?O.bottom="auto":O.bottom=Be(c.value),dt(e.zIndex)||(O["z-index"]=Be(e.zIndex)),dt(A.value)||(O.height=A.value),dt(F.value)||(O.width=F.value),O}),p=o.computed(()=>e.closeIcon??Ie.Close),v=o.computed(()=>e.collapseIcon??Ie.ArrowUp),y=o.computed(()=>e.collapseText??""),f=o.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ie.ArrowRight:e.expandIcon??Ie.ArrowLeft),g=o.computed(()=>e.expandText??e.title??"展开"),M=o.computed(()=>({[`${l}__collapse-text`]:!0})),T=o.computed(()=>({[`${l}__collapse-icon`]:!0,"is-expand":!P.value,"is-collapse":P.value})),x=o.ref(),V=o.ref(null),_=o.ref(null),A=o.computed(()=>Be(e.height)||""),F=o.computed(()=>Be(e.width)||""),P=o.ref(ue(e.collapse)),$=(O,K=!0)=>{P.value!==O&&(P.value=O,O?C():R(),t("update:collapse",O),O&&typeof z.onHide=="function"?z.onHide():!O&&typeof z.onShow=="function"&&z.onShow())};o.watch(()=>e.collapse,O=>{$(O)});const I=()=>{b()},b=O=>{O=O??!P.value,$(O)};o.provide(Zh,!0);const z={setCollapse:$,setFixedNavVisible:O=>{B.value=O}};o.provide(Jh,z);const ee=()=>{typeof z.beforeClose=="function"?z.beforeClose(()=>{n.value=!1}):n.value=!1},q=o.ref(null),N=o.computed(()=>!e.fixedNavTeleport),L=o.computed(()=>{const O=["fox-floating-window__fixednav"];return e.expandClass&&O.push(e.expandClass),e.collapsePosition==="left"?O.push("is-left"):e.collapsePosition==="right"&&O.push("is-right"),O}),j=o.ref(""),G=o.computed(()=>{const O={};return j.value?O.top=j.value:e.collapseTop&&(O.top=e.collapseTop),O}),Q=o.ref(P.value),B=o.computed({set:O=>{Q.value=O},get:()=>n.value===!1?!1:Q.value});let te=null;const E=()=>{typeof te=="function"&&(te(),te=null)},C=()=>{q.value&&q.value.classList.add("slide-in"),B.value=!0,te=()=>{q.value&&q.value.classList.remove("slide-in")}},R=()=>{q.value&&q.value.classList.add("slide-out"),te=()=>{q.value&&q.value.classList.remove("slide-out"),B.value=!1}},D=()=>{i.value=null,u.value=null,s.value=null,c.value=null},w={x:0,y:0},oe=ea(O=>{if(!x.value)return;const K=x.value;if(D(),e.origin==="left-top")i.value=K.offsetLeft,u.value=K.offsetTop,w.x=i.value,w.y=u.value;else if(e.origin==="left-bottom"){const X=document.documentElement.clientHeight||document.body.clientHeight;i.value=K.offsetLeft,c.value=X-(K.offsetTop+K.offsetHeight),w.x=i.value,w.y=c.value}else if(e.origin==="right-bottom"){const X=document.documentElement.clientWidth||document.body.clientWidth,le=document.documentElement.clientHeight||document.body.clientHeight;s.value=X-(K.offsetLeft+K.offsetWidth),c.value=le-(K.offsetTop+K.offsetHeight),w.x=s.value,w.y=c.value}else{const X=document.documentElement.clientWidth||document.body.clientWidth;s.value=X-(K.offsetLeft+K.offsetWidth),u.value=K.offsetTop,w.x=s.value,w.y=u.value}},O=>{if(!x.value)return;const K=x.value;D(),e.origin==="left-top"?(i.value=w.x+O.x,u.value=w.y+O.y,K.style.left=Be(i.value),K.style.top=Be(u.value)):e.origin==="left-bottom"?(i.value=w.x+O.x,c.value=w.y-O.y,K.style.left=Be(i.value),K.style.bottom=Be(c.value)):e.origin==="right-bottom"?(s.value=w.x-O.x,c.value=w.y-O.y,K.style.right=Be(s.value),K.style.bottom=Be(c.value)):(s.value=w.x-O.x,u.value=w.y+O.y,K.style.right=Be(s.value),K.style.top=Be(u.value))}),U={x:0,y:0},W=ea(O=>{q.value&&(U.x=q.value.offsetLeft,U.y=q.value.offsetTop)},O=>{if(!q.value)return;const K=U.y+O.y;j.value=`${K}px`}),J=()=>{if(x.value){const O=x.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");_.value=O}};return o.onMounted(()=>{if(e.draggable&&x.value){const O=[];V.value&&O.push(V.value),e.footerDraggable&&(J(),_.value&&O.push(_.value)),oe.open(O)}e.collapse===!0&&$(e.collapse,!1),q.value&&W.open(q.value)}),o.onBeforeUnmount(()=>{e.draggable&&V.value&&oe.close(),q.value&&W.close()}),{classes:d,styles:h,isShow:a,closeIcon:p,onClose:ee,dialogRef:x,headerRef:V,onClickToggle:I,collapseIcon:v,collapseText:y,collapseTextClasses:M,collapseIconClasses:T,expandIcon:f,expandText:g,isShowFixedNav:B,fixedNavRef:q,fixedNavClasses:L,fixedNavStyles:G,onAnimationEnd:E,teleportDisabled:r,fixedNavTeleportDisabled:N}}}),tg={ref:"headerRef",class:"fox-floating-window__header"},ng={class:"fox-floating-window__title"},og={class:"fox-floating-window__tools"},lg={class:"fox-floating-window__body"},rg={class:"fox-floating-window__fixednav__text"};function ag(e,t,l,n,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",tg,[o.renderSlot(e.$slots,"header",{},()=>[o.createElementVNode("span",ng,o.toDisplayString(e.title),1),o.createElementVNode("div",og,[e.showCollapse?(o.openBlock(),o.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[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",lg,[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:t[2]||(t[2]=(...s)=>e.onAnimationEnd&&e.onAnimationEnd(...s))},[o.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:t[1]||(t[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",rg,o.toDisplayString(e.expandText),1)])],38),[[o.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const tl=We(eg,[["render",ag]]),ig={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]}};function sg(e,t,l=!1){return{props:{...ig},emits:["update:visible"],setup(n,{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),d=o.ref(0),h=o.ref(0),p=o.ref(n.placement),v=o.ref(!1),y=o.ref(!1),f=o.ref(null),g=()=>typeof n.reference=="string"?document.querySelector(n.reference):n.reference,M=(B,te,E,C,R,D,w,H=!0)=>{const Z=document.documentElement.clientWidth||document.body.clientWidth,oe=document.documentElement.clientHeight||document.body.clientHeight,U=B.split("-");let Y=[];H?U[0]==="top"?Y=["top","bottom","right","left"]:U[0]==="bottom"?Y=["bottom","top","right","left"]:U[0]==="left"?Y=["left","top","bottom","right"]:U[0]==="right"&&(Y=["right","top","bottom","left"]):Y=[B[0]];const k={top:null,right:null,bottom:null,left:null},W=[];for(let J=0;J<Y.length;J++){const O=Y[J];if(W[0]=O,U[1]&&(W[1]=U[1]),O==="top"){const K=E-w-n.arrowSize/2-n.offset;if(K>=0){k.top=K;let X=0;U[1]==="start"?X=te:U[1]==="end"?X=te+C-D:X=te+C/2-D/2;const le=Z-X-D;le<0?(X+=le,x.value=-le):x.value=0,k.left=X<0?0:X;break}}else if(O==="bottom"){const K=E+R+n.arrowSize/2+n.offset;if(K+w<=oe){k.top=K;let X=0;U[1]==="start"?X=te:U[1]==="end"?X=te+C-D:X=te+C/2-D/2;const le=Z-X-D;le<0?(X+=le,x.value=-le):x.value=0,k.left=X<0?0:X;break}}else if(O==="left"){const K=te-D-n.arrowSize/2-n.offset;if(K>=0){k.left=K;let X=0;U[1]==="start"?X=E:U[1]==="end"?X=E+R-w:X=E+R/2-w/2,k.top=X<0?0:X;break}}else if(O==="right"){const K=te+C+n.arrowSize/2+n.offset;if(K+D<=Z){k.left=K;let X=0;U[1]==="start"?X=E:U[1]==="end"?X=E+R-w:X=E+R/2-w/2,k.top=X<0?0:X;break}}}return{bestPlacement:W.join("-"),bestInsetRect:k}},T=()=>{const B=n.visible,te=n.autoFit;if(!nt||B===!1)return;if(n.reference){const w=g(),H=ao(w);s.value=H.x,c.value=H.y,d.value=w.offsetWidth,h.value=w.offsetHeight}else n.referenceInset&&(s.value=n.referenceInset.left,c.value=n.referenceInset.top,d.value=n.referenceInset.right-n.referenceInset.left,h.value=n.referenceInset.bottom-n.referenceInset.top);const E=f.value.offsetWidth,C=f.value.offsetHeight,{bestPlacement:R,bestInsetRect:D}=M(n.placement,s.value,c.value,d.value,h.value,E,C,te);p.value=R,u.value=D},x=o.ref(0),V=ot(()=>{T()},10),_=o.ref(n.visible);o.watch([()=>n.visible],([B])=>{_.value=B,B?(v.value=B,setTimeout(()=>{T(),y.value=!0},0)):y.value=!1});const A=o.computed(()=>_.value&&F.value),F=o.ref(!0),P=ot(B=>{const te=B[0];te&&(F.value=te.isIntersecting)},10),$=new IntersectionObserver(P);o.watch([()=>n.reference,()=>n.referenceInset],([B,te],[E,C])=>{!B&&!te||(setTimeout(()=>{T()},0),n.autoFit&&(E&&(Dt.unwatch(E,V),$.unobserve(E)),B&&(Dt.watch(B,V),$.observe(B))))},{immediate:!0}),o.onBeforeUnmount(()=>{n.reference&&(Dt.unwatch(n.reference,V),$.unobserve(n.reference),$.disconnect())});const I=o.computed(()=>{const B={[e]:!0};return p.value.startsWith("top")?B["is-top"]=!0:p.value.startsWith("right")?B["is-right"]=!0:p.value.startsWith("bottom")?B["is-bottom"]=!0:p.value.startsWith("left")&&(B["is-left"]=!0),B[`is-${n.effect}`]=!0,!y.value&&A.value&&(B["is-opacity"]=!0),y.value&&A.value&&(B["is-show"]=!0),A.value||(B["is-hide"]=!0),n.customClass&&typeof n.customClass=="string"&&(B[`${n.customClass}`]=!0),B}),b=o.computed(()=>{const B={};return u.value.top!==null&&(B.top=`${u.value.top}px`),u.value.right!==null&&(B.right=`${u.value.right}px`),u.value.bottom!==null&&(B.bottom=`${u.value.bottom}px`),u.value.left!==null&&(B.left=`${u.value.left}px`),n.width&&(B.width=n.width),n.zIndex&&(B["z-index"]=`${n.zIndex}`),n.customStyle&&typeof n.customStyle=="object"&&Object.assign(B,n.customStyle),B}),z=()=>{_.value=!1,r("update:visible",!1)},ee=()=>{if(!n.showOverlay)return null;const B={class:`${e}__overlay`,onClick:z};return o.h("div",B)},q=()=>{let B=null;return a.title?B=o.h("div",{class:`${e}__title`},{default:a.title}):n.title&&(B=o.h("div",{class:`${e}__title`},[n.title])),B},N=o.computed(()=>({[`${e}__arrow`]:!0})),L=o.computed(()=>{const B={};return n.showArrow?(B.width=`${n.arrowSize}px`,B.height=`${n.arrowSize}px`,p.value==="top"?(B.left="50%",B.bottom="0",B.transform="translate(-50%, 50%)"):p.value==="top-start"?(B.left=`${n.arrowOffset+x.value}px`,B.bottom="0",B.transform="translate(-50%, 50%)"):p.value==="top-end"?(B.right=`${n.arrowOffset-x.value}px`,B.bottom="0",B.transform="translate(-50%, 50%)"):p.value==="right"?(B.left="0",B.top="50%",B.transform="translate(-50%, -50%)"):p.value==="right-start"?(B.left="0",B.top=`${n.arrowOffset}px`,B.transform="translate(-50%, 50%)"):p.value==="right-end"?(B.left="0",B.bottom=`-${n.arrowOffset}px`,B.transform="translate(-50%, 50%)"):p.value==="bottom"?(B.left="50%",B.top="0",B.transform="translate(-50%, -50%)"):p.value==="bottom-start"?(B.left=`${n.arrowOffset+x.value}px`,B.top="0",B.transform="translate(-50%, -50%)"):p.value==="bottom-end"?(B.right=`${n.arrowOffset-x.value}px`,B.top="0",B.transform="translate(-50%, -50%)"):p.value==="left"?(B.right="0",B.top="50%",B.transform="translate(50%, -50%)"):p.value==="left-start"?(B.right="0",B.top=`${n.arrowOffset}px`,B.transform="translate(50%, -50%)"):p.value==="left-end"&&(B.right="0",B.bottom=`-${n.arrowOffset}px`,B.transform="translate(50%, -50%)"),B):{display:"none"}}),j=()=>{const B={class:N.value,style:L.value};return o.h("div",B)},G=()=>{_.value===!1&&(v.value=!1)},Q=B=>{if(!f.value||_.value===!1)return;const{relatedTarget:te}=B;f.value.contains(te)||(_.value=!1,r("update:visible",!1))};return i({doLayout:T}),()=>{if(!v.value)return null;const B=[],te=ee();te&&B.push(te);const E=[],C=q();if(C&&E.push(C),a.default){const H=a.default();E.push(H)}const R=j();R&&E.push(R);const D={ref:f,class:I.value,style:b.value,onAnimationend:G};n.leaveHide&&(D.onMouseleave=Q);const w=o.h("div",D,{default:()=>E});return B.push(w),B}}}}const{componentName:ug,create:cg,scope:fg}=ie("popover-dialog"),nl=cg(sg(ug,fg,!1));function dg(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(l,{slots:n}){return Ml(l.name,()=>l.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:Yg,create:hg,scope:Ug}=ie("domain-provider"),ol=hg(dg()),gg={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 mg(e,t){return{inheritAttrs:!1,props:gg,setup(l,{slots:n}){if(nt&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(p,v)=>{if(d===null){a.set(p,{visible:null,callback:v});return}r.has(p)&&d.unobserve(p),r.set(p,{visible:null,callback:v}),d.observe(p)},u=p=>{if(d===null){a.delete(p);return}r.has(p)&&(r.delete(p),d.unobserve(p))};let s=l.initialVisibleObserverSize;yi({acquire:()=>{const p=s>0;return s--,p},get disabled(){return l.disabled},get initialHeight(){return l.initialInvisibleObserverHeight},observe:i,unobserve:u});let d=null;const h=(p,v,y)=>{d=new IntersectionObserver(f=>{for(let g of f){let M=!1;g.intersectionRatio>0&&(M=!0);const T=r.get(g.target);if(T)try{if(l.loadPolicy==="lazy"&&!M&&T.visible!==null)return;T.visible=M,T.callback(M)}catch(x){console.error(x)}}},{root:p,rootMargin:v,threshold:y}),a.forEach((f,g)=>{r.set(g,f),d?.observe(g)}),a.clear()};o.watch([()=>l.root,()=>l.disabled],([p,v])=>{if(v||!p||d)return;let y=null;typeof p=="string"?y=document.querySelector(p):y=p,y&&h(y,l.rootMargin,l.threshold)},{immediate:!0}),o.onUnmounted(()=>{d&&(d.disconnect(),d=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:Gg,create:yg,scope:Xg}=ie("rolling-provider"),ll=yg(mg()),pg=[Jn,eo,to,no,ro,Ce,uo,co,Vt,fo,ho,go,mo,yo,po,bo,wo,So,xo,To,Cn,Eo,No,ko,Io,Oo,Do,Vo,Fo,Ao,Mo,_o,qo,En,Po,jo,zo,Ho,Ko,Ft,gn,Wo,Yo,Uo,Go,Xo,tl,nl,ol,ll],bg=new Ga(pg,[Ja],"4.0.0");Object.defineProperty(m,"FoxAffix",{enumerable:!0,get:()=>S.ElAffix}),Object.defineProperty(m,"FoxAlert",{enumerable:!0,get:()=>S.ElAlert}),Object.defineProperty(m,"FoxAnchor",{enumerable:!0,get:()=>S.ElAnchor}),Object.defineProperty(m,"FoxAnchorLink",{enumerable:!0,get:()=>S.ElAnchorLink}),Object.defineProperty(m,"FoxAside",{enumerable:!0,get:()=>S.ElAside}),Object.defineProperty(m,"FoxAutoResizer",{enumerable:!0,get:()=>S.ElAutoResizer}),Object.defineProperty(m,"FoxAutocomplete",{enumerable:!0,get:()=>S.ElAutocomplete}),Object.defineProperty(m,"FoxAvatar",{enumerable:!0,get:()=>S.ElAvatar}),Object.defineProperty(m,"FoxBacktop",{enumerable:!0,get:()=>S.ElBacktop}),Object.defineProperty(m,"FoxBadge",{enumerable:!0,get:()=>S.ElBadge}),Object.defineProperty(m,"FoxBreadcrumb",{enumerable:!0,get:()=>S.ElBreadcrumb}),Object.defineProperty(m,"FoxBreadcrumbItem",{enumerable:!0,get:()=>S.ElBreadcrumbItem}),Object.defineProperty(m,"FoxButton",{enumerable:!0,get:()=>S.ElButton}),Object.defineProperty(m,"FoxButtonGroup",{enumerable:!0,get:()=>S.ElButtonGroup}),Object.defineProperty(m,"FoxCalendar",{enumerable:!0,get:()=>S.ElCalendar}),Object.defineProperty(m,"FoxCard",{enumerable:!0,get:()=>S.ElCard}),Object.defineProperty(m,"FoxCarousel",{enumerable:!0,get:()=>S.ElCarousel}),Object.defineProperty(m,"FoxCarouselItem",{enumerable:!0,get:()=>S.ElCarouselItem}),Object.defineProperty(m,"FoxCascader",{enumerable:!0,get:()=>S.ElCascader}),Object.defineProperty(m,"FoxCascaderPanel",{enumerable:!0,get:()=>S.ElCascaderPanel}),Object.defineProperty(m,"FoxCheckTag",{enumerable:!0,get:()=>S.ElCheckTag}),Object.defineProperty(m,"FoxCheckbox",{enumerable:!0,get:()=>S.ElCheckbox}),Object.defineProperty(m,"FoxCheckboxButton",{enumerable:!0,get:()=>S.ElCheckboxButton}),Object.defineProperty(m,"FoxCheckboxGroup",{enumerable:!0,get:()=>S.ElCheckboxGroup}),Object.defineProperty(m,"FoxCol",{enumerable:!0,get:()=>S.ElCol}),Object.defineProperty(m,"FoxCollapse",{enumerable:!0,get:()=>S.ElCollapse}),Object.defineProperty(m,"FoxCollapseItem",{enumerable:!0,get:()=>S.ElCollapseItem}),Object.defineProperty(m,"FoxCollapseTransition",{enumerable:!0,get:()=>S.ElCollapseTransition}),Object.defineProperty(m,"FoxColorPicker",{enumerable:!0,get:()=>S.ElColorPicker}),Object.defineProperty(m,"FoxConfigProvider",{enumerable:!0,get:()=>S.ElConfigProvider}),Object.defineProperty(m,"FoxContainer",{enumerable:!0,get:()=>S.ElContainer}),Object.defineProperty(m,"FoxCountdown",{enumerable:!0,get:()=>S.ElCountdown}),Object.defineProperty(m,"FoxDatePicker",{enumerable:!0,get:()=>S.ElDatePicker}),Object.defineProperty(m,"FoxDescriptions",{enumerable:!0,get:()=>S.ElDescriptions}),Object.defineProperty(m,"FoxDescriptionsItem",{enumerable:!0,get:()=>S.ElDescriptionsItem}),Object.defineProperty(m,"FoxDialog",{enumerable:!0,get:()=>S.ElDialog}),Object.defineProperty(m,"FoxDivider",{enumerable:!0,get:()=>S.ElDivider}),Object.defineProperty(m,"FoxDrawer",{enumerable:!0,get:()=>S.ElDrawer}),Object.defineProperty(m,"FoxDropdown",{enumerable:!0,get:()=>S.ElDropdown}),Object.defineProperty(m,"FoxDropdownItem",{enumerable:!0,get:()=>S.ElDropdownItem}),Object.defineProperty(m,"FoxDropdownMenu",{enumerable:!0,get:()=>S.ElDropdownMenu}),Object.defineProperty(m,"FoxEmpty",{enumerable:!0,get:()=>S.ElEmpty}),Object.defineProperty(m,"FoxFooter",{enumerable:!0,get:()=>S.ElFooter}),Object.defineProperty(m,"FoxForm",{enumerable:!0,get:()=>S.ElForm}),Object.defineProperty(m,"FoxFormItem",{enumerable:!0,get:()=>S.ElFormItem}),Object.defineProperty(m,"FoxHeader",{enumerable:!0,get:()=>S.ElHeader}),Object.defineProperty(m,"FoxIcon",{enumerable:!0,get:()=>S.ElIcon}),Object.defineProperty(m,"FoxImage",{enumerable:!0,get:()=>S.ElImage}),Object.defineProperty(m,"FoxImageViewer",{enumerable:!0,get:()=>S.ElImageViewer}),Object.defineProperty(m,"FoxInput",{enumerable:!0,get:()=>S.ElInput}),Object.defineProperty(m,"FoxInputNumber",{enumerable:!0,get:()=>S.ElInputNumber}),Object.defineProperty(m,"FoxInputTag",{enumerable:!0,get:()=>S.ElInputTag}),Object.defineProperty(m,"FoxLink",{enumerable:!0,get:()=>S.ElLink}),Object.defineProperty(m,"FoxMain",{enumerable:!0,get:()=>S.ElMain}),Object.defineProperty(m,"FoxMention",{enumerable:!0,get:()=>S.ElMention}),Object.defineProperty(m,"FoxMenu",{enumerable:!0,get:()=>S.ElMenu}),Object.defineProperty(m,"FoxMenuItem",{enumerable:!0,get:()=>S.ElMenuItem}),Object.defineProperty(m,"FoxMenuItemGroup",{enumerable:!0,get:()=>S.ElMenuItemGroup}),Object.defineProperty(m,"FoxMessage",{enumerable:!0,get:()=>S.ElMessage}),Object.defineProperty(m,"FoxMessageBox",{enumerable:!0,get:()=>S.ElMessageBox}),Object.defineProperty(m,"FoxNotification",{enumerable:!0,get:()=>S.ElNotification}),Object.defineProperty(m,"FoxOption",{enumerable:!0,get:()=>S.ElOption}),Object.defineProperty(m,"FoxOptionGroup",{enumerable:!0,get:()=>S.ElOptionGroup}),Object.defineProperty(m,"FoxPageHeader",{enumerable:!0,get:()=>S.ElPageHeader}),Object.defineProperty(m,"FoxPagination",{enumerable:!0,get:()=>S.ElPagination}),Object.defineProperty(m,"FoxPopconfirm",{enumerable:!0,get:()=>S.ElPopconfirm}),Object.defineProperty(m,"FoxPopover",{enumerable:!0,get:()=>S.ElPopover}),Object.defineProperty(m,"FoxPopper",{enumerable:!0,get:()=>S.ElPopper}),Object.defineProperty(m,"FoxProgress",{enumerable:!0,get:()=>S.ElProgress}),Object.defineProperty(m,"FoxRadio",{enumerable:!0,get:()=>S.ElRadio}),Object.defineProperty(m,"FoxRadioButton",{enumerable:!0,get:()=>S.ElRadioButton}),Object.defineProperty(m,"FoxRadioGroup",{enumerable:!0,get:()=>S.ElRadioGroup}),Object.defineProperty(m,"FoxRate",{enumerable:!0,get:()=>S.ElRate}),Object.defineProperty(m,"FoxResult",{enumerable:!0,get:()=>S.ElResult}),Object.defineProperty(m,"FoxRow",{enumerable:!0,get:()=>S.ElRow}),Object.defineProperty(m,"FoxScrollbar",{enumerable:!0,get:()=>S.ElScrollbar}),Object.defineProperty(m,"FoxSegmented",{enumerable:!0,get:()=>S.ElSegmented}),Object.defineProperty(m,"FoxSelect",{enumerable:!0,get:()=>S.ElSelect}),Object.defineProperty(m,"FoxSelectV2",{enumerable:!0,get:()=>S.ElSelectV2}),Object.defineProperty(m,"FoxSkeleton",{enumerable:!0,get:()=>S.ElSkeleton}),Object.defineProperty(m,"FoxSkeletonItem",{enumerable:!0,get:()=>S.ElSkeletonItem}),Object.defineProperty(m,"FoxSlider",{enumerable:!0,get:()=>S.ElSlider}),Object.defineProperty(m,"FoxSpace",{enumerable:!0,get:()=>S.ElSpace}),Object.defineProperty(m,"FoxStatistic",{enumerable:!0,get:()=>S.ElStatistic}),Object.defineProperty(m,"FoxStep",{enumerable:!0,get:()=>S.ElStep}),Object.defineProperty(m,"FoxSteps",{enumerable:!0,get:()=>S.ElSteps}),Object.defineProperty(m,"FoxSubMenu",{enumerable:!0,get:()=>S.ElSubMenu}),Object.defineProperty(m,"FoxSwitch",{enumerable:!0,get:()=>S.ElSwitch}),Object.defineProperty(m,"FoxTabPane",{enumerable:!0,get:()=>S.ElTabPane}),Object.defineProperty(m,"FoxTable",{enumerable:!0,get:()=>S.ElTable}),Object.defineProperty(m,"FoxTableColumn",{enumerable:!0,get:()=>S.ElTableColumn}),Object.defineProperty(m,"FoxTableV2",{enumerable:!0,get:()=>S.ElTableV2}),Object.defineProperty(m,"FoxTabs",{enumerable:!0,get:()=>S.ElTabs}),Object.defineProperty(m,"FoxTag",{enumerable:!0,get:()=>S.ElTag}),Object.defineProperty(m,"FoxTimePicker",{enumerable:!0,get:()=>S.ElTimePicker}),Object.defineProperty(m,"FoxTimeSelect",{enumerable:!0,get:()=>S.ElTimeSelect}),Object.defineProperty(m,"FoxTimeline",{enumerable:!0,get:()=>S.ElTimeline}),Object.defineProperty(m,"FoxTimelineItem",{enumerable:!0,get:()=>S.ElTimelineItem}),Object.defineProperty(m,"FoxTooltip",{enumerable:!0,get:()=>S.ElTooltip}),Object.defineProperty(m,"FoxTransfer",{enumerable:!0,get:()=>S.ElTransfer}),Object.defineProperty(m,"FoxTree",{enumerable:!0,get:()=>S.ElTree}),Object.defineProperty(m,"FoxTreeSelect",{enumerable:!0,get:()=>S.ElTreeSelect}),Object.defineProperty(m,"FoxTreeV2",{enumerable:!0,get:()=>S.ElTreeV2}),Object.defineProperty(m,"FoxUpload",{enumerable:!0,get:()=>S.ElUpload}),Object.defineProperty(m,"FoxWatermark",{enumerable:!0,get:()=>S.ElWatermark}),m.AutocompleteItem=So,m.Broadcast=Yn,m.BroadcastKey=we,m.CascaderItem=wo,m.CheckboxItem=ko,m.Content=no,m.DataItemsKey=yt,m.DateItem=go,m.DateUtils=je,m.DialogItem=qo,m.Domain=Jt,m.DomainKey=_e,m.DomainProvider=ol,m.FloatingButton=Go,m.FloatingWindow=tl,m.FooterBar=to,m.FoxAutocompleteItem=So,m.FoxCascaderItem=wo,m.FoxCheckboxItem=ko,m.FoxContent=no,m.FoxDateItem=go,m.FoxDialogItem=qo,m.FoxDomainProvider=ol,m.FoxFloatingButton=Go,m.FoxFloatingWindow=tl,m.FoxFooterBar=to,m.FoxGroup=ro,m.FoxGroupSetting=Vo,m.FoxHeaderBar=eo,m.FoxHintText=Vt,m.FoxIndicator=Wo,m.FoxInfiniteLoading=Ho,m.FoxInputItem=fo,m.FoxInputNumberItem=bo,m.FoxItem=Ce,m.FoxMapping=Ft,m.FoxMoneyItem=po,m.FoxMoreButton=Uo,m.FoxOverLay=En,m.FoxPage=Jn,m.FoxPopoverDialog=nl,m.FoxPopup=Po,m.FoxPrice=gn,m.FoxPullRefresh=Ko,m.FoxRadioItem=No,m.FoxRateItem=Io,m.FoxRollingProvider=ll,m.FoxRowItem=co,m.FoxSearchBar=zo,m.FoxSelectItem=ho,m.FoxSlotItem=uo,m.FoxStepsBar=_o,m.FoxSwitchItem=Oo,m.FoxTableItem=Eo,m.FoxTableMappingColumn=xo,m.FoxTableRadioColumn=To,m.FoxTableSetting=Cn,m.FoxTabsBar=Fo,m.FoxTabsContainer=Ao,m.FoxTabsPane=Mo,m.FoxText=Yo,m.FoxTimeItem=mo,m.FoxTimeSelectItem=yo,m.FoxToast=jo,m.FoxTour=Xo,m.FoxTreeSelectItem=Do,m.Group=ro,m.GroupSetting=Vo,m.HeaderBar=eo,m.HintText=Vt,m.Indicator=Wo,m.InfiniteLoading=Ho,m.InputItem=fo,m.InputNumberItem=bo,m.Item=Ce,m.Mapping=Ft,m.MoneyItem=po,m.MoreButton=Uo,m.OverLay=En,m.Page=Jn,m.PopoverDialog=nl,m.Popup=Po,m.Price=gn,m.PriorityPolicy=Pe,m.PullRefresh=Ko,m.RadioItem=No,m.RateItem=Io,m.RollingProvider=ll,m.RowItem=co,m.SearchBar=zo,m.SelectItem=ho,m.SlotItem=uo,m.StepsBar=_o,m.SwitchItem=Oo,m.TableItem=Eo,m.TableMappingColumn=xo,m.TableRadioColumn=To,m.TableSetting=Cn,m.TabsBar=Fo,m.TabsContainer=Ao,m.TabsPane=Mo,m.Text=Yo,m.TimeItem=mo,m.TimeSelectItem=yo,m.Toast=jo,m.Tour=Xo,m.TreeSelectItem=Do,m.UniqueID=Gl,m.ValidateSchema=Rl,m.ValidateSchemaKey=He,m.cancelRaf=ha,m.clearNonNumber=Ca,m.clone=zn,m.compareTo=_n,m.createBroadcast=Yt,m.createValidateSchema=Gt,m.debounce=ot,m.debounceRef=Ba,m.decimalLength=El,m.default=bg,m.defineBroadcast=Ia,m.defineConfigDomain=Ml,m.defineDataItem=Ll,m.defineDomain=Gn,m.defineItem=ke,m.definePageState=_l,m.defineSimpleItem=Bl,m.deleteGlobalValidator=Fa,m.disabledProperty=Me,m.divide=Bn,m.excludeProps=De,m.extend=ut,m.floatData=ka,m.getGlobalValidateCheckEvents=Ol,m.getGlobalValidateResetEvents=Vl,m.getPageContentAreaHeight=nn,m.getPageContentAreaWidth=on,m.getPageFooterAreaHeight=tn,m.getPageHeaderAreaHeight=en,m.getRootDomain=pt,m.hasSymbol=wl,m.includeProps=kl,m.indexOf=Ea,m.integerLength=Cl,m.isArray=ma,m.isArrayLike=xl,m.isBrowser=nt,m.isDate=ba,m.isESModule=wa,m.isEmptyString=he,m.isEqual=Qe,m.isFunction=Pn,m.isHidden=Wt,m.isInnerPage=Pa,m.isMap=ya,m.isNil=Kn,m.isNumberString=$l,m.isObject=Je,m.isPlainObject=jn,m.isPromise=bl,m.isRegExp=Wn,m.isSet=pa,m.isString=pl,m.isSubPage=ja,m.isSymbol=va,m.isTouch=Lt,m.isWindow=Sl,m.lastIndexOf=Na,m.makeArray=$a,m.merge=Tl,m.multiply=gl,m.negate=ml,m.nextTick=xa,m.numberFormat=zt,m.objectToString=vl,m.once=_a,m.overrideGlobalValidateHandler=Va,m.property=Fe,m.raf=qn,m.readonlyProperty=Ae,m.setGlobalValidateCheckEvents=Aa,m.setGlobalValidateHandler=Da,m.setGlobalValidateMessages=La,m.setGlobalValidateResetEvents=Ma,m.setGlobalValidator=Ra,m.throttle=Al,m.toBoolean=ue,m.toNumber=Te,m.toPadding=Ge,m.toPx=me,m.toPxDesc=Ve,m.toTypeString=Ht,m.toValue=ge,m.tryTimes=Zt,m.typeOf=Kt,m.unNumberFormat=yl,m.updatePageState=Xn,m.useBroadcast=kt,m.useDomain=lt,m.useExpose=Se,m.useInnerSize=an,m.usePageState=Qt,m.usePosition=ao,m.useRawTouch=Bt,m.useRect=Qr,m.useSize=Qn,m.useTouch=Hf,m.valueLength=Nt,Object.defineProperties(m,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|