@fox-js/foxui-pc 4.1.1-4 → 4.1.1-6
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 +2936 -2707
- package/dist/index.umd.js +4 -4
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +14 -10
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(m,t){typeof exports=="object"&&typeof module<"u"?t(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"],t):(m=typeof globalThis<"u"?globalThis:m||self,t(m.FoxUI={},m.Vue,m.FoxValidator,m.ElementPlus,m.ElementPlusIconsVue,m.FoxI18n))})(this,function(m,t,nt,
|
|
2
|
-
* @fox-js/foxui-desktop v4.0.0
|
|
3
|
-
*/const Rt=window,
|
|
1
|
+
(function(m,t){typeof exports=="object"&&typeof module<"u"?t(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"],t):(m=typeof globalThis<"u"?globalThis:m||self,t(m.FoxUI={},m.Vue,m.FoxValidator,m.ElementPlus,m.ElementPlusIconsVue,m.FoxI18n))})(this,function(m,t,nt,w,Ce,Me){"use strict";/*!
|
|
2
|
+
* @fox-js/foxui-desktop v4.0.0 Thu Nov 07 2024 20:41:26 GMT+0800 (中国标准时间)
|
|
3
|
+
*/const Rt=window,Gr=typeof window<"u";function Ur(){return typeof Rt<"u"?Rt.requestAnimationFrame||Rt.webkitRequestAnimationFrame||function(e){Rt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Xr(e){Gr?cancelAnimationFrame(e):clearTimeout(e)}const Pl=Ur();/*!
|
|
4
4
|
* @fox-js/big-decimal v4.0.1-6 Sat Aug 24 2024 07:04:11 GMT+0800 (中国标准时间)
|
|
5
|
-
*/function At(e,n="0"){let o=0,l=-1;e[0]=="-"&&(o++,l=1,e=e.substring(1),e.length),n[0]=="-"&&(o++,l=2,n=n.substring(1),n.length),e=Ee(e),n=Ee(n),[e,n]=gn(Ee(e),Ee(n)),o==1&&(l==1?e=hn(e):n=hn(n));let r=Pl(e,n);return o?o==2?"-"+Ee(r):e.length<r.length?Ee(r.substring(1)):"-"+Ee(hn(r)):Ee(r)}function hn(e){let n="",o=e.length,l=e.split(".")[1],r=l?l.length:0;for(let i=0;i<o;i++)e[i]>="0"&&e[i]<="9"?n+=9-parseInt(e[i]):n+=e[i];let a=r>0?"0."+new Array(r).join("0")+"1":"1";return Pl(n,a)}function Ee(e){let n=e.split(".");for(n[0]||(n[0]="0");n[0][0]=="0"&&n[0].length>1;)n[0]=n[0].substring(1);return n[0]+(n[1]?"."+n[1]:"")}function gn(e,n){let o=e.split("."),l=n.split("."),r=o[0].length,a=l[0].length;return r>a?l[0]=new Array(Math.abs(r-a)+1).join("0")+(l[0]?l[0]:""):o[0]=new Array(Math.abs(r-a)+1).join("0")+(o[0]?o[0]:""),r=o[1]?o[1].length:0,a=l[1]?l[1].length:0,(r||a)&&(r>a?l[1]=(l[1]?l[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]:""),n=l[0]+(l[1]?"."+l[1]:""),[e,n]}function Pl(e,n){[e,n]=gn(e,n);let o="",l=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){o="."+o;continue}let a=parseInt(e[r])+parseInt(n[r])+l;o=a%10+o,l=Math.floor(a/10)}return l?l.toString()+o:o}var be=(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))(be||{});function bt(e,n=0,o=be.HALF_EVEN){if(o===be.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let l=!1;e[0]==="-"&&(l=!0,e=e.substring(1));let r=e.split("."),a=r[0],i=r[1];if(n<0){if(n=-n,a.length<=n)return"0";{let s=a.substr(0,a.length-n);return e=s+"."+a.substr(a.length-n)+i,s=bt(e,0,o),(l?"-":"")+s+new Array(n+1).join("0")}}if(n==0)return a.length,jl(r[1],a,l,o)?(l?"-":"")+mn(a):(l?"-":"")+a;if(r[1]){if(r[1].length<n)return(l?"-":"")+a+"."+r[1]+new Array(n-r[1].length+1).join("0")}else return(l?"-":"")+a+"."+new Array(n+1).join("0");i=r[1].substring(0,n);let u=r[1].substring(n);return u&&jl(u,i,l,o)&&(i=mn(i),i.length>n)?(l?"-":"")+mn(a,parseInt(i[0]))+"."+i.substring(1):(l?"-":"")+a+"."+i}function jl(e,n,o,l){if(!e||e===new Array(e.length+1).join("0")||l===be.DOWN||!o&&l===be.FLOOR||o&&l===be.CEILING)return!1;if(l===be.UP||o&&l===be.FLOOR||!o&&l===be.CEILING)return!0;let r="5"+new Array(e.length).join("0");if(e>r)return!0;if(e<r)return!1;switch(l){case be.HALF_DOWN:return!1;case be.HALF_UP:return!0;case be.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function mn(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let o=e.length-1,l="";for(let r=o;r>=0;r--){let a=parseInt(e[r])+n;a==10?(n=1,a=0):n=0,l+=a}return n&&(l+=n),l.split("").reverse().join("")}function pn(e,n){e=e.toString(),n=n.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),n[0]=="-"&&(o++,n=n.substr(1)),e=vt(e),n=vt(n);let l=0,r=0;e.indexOf(".")!=-1&&(l=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(r=n.length-n.indexOf(".")-1);let a=l+r;if(e=vt(e.replace(".","")),n=vt(n.replace(".","")),e.length<n.length){let g=e;e=n,n=g}if(n=="0")return"0";let i=n.length,u=0,s=[],c=i-1,d="";for(let g=0;g<i;g++)s[g]=e.length-1;for(let g=0;g<2*e.length;g++){let b=0;for(let w=n.length-1;w>=c&&w>=0;w--)s[w]>-1&&s[w]<e.length&&(b+=parseInt(e[s[w]--])*parseInt(n[w]));b+=u,u=Math.floor(b/10),d=b%10+d,c--}return d=vt(Xr(d,a)),o==1&&(d="-"+d),d}function Xr(e,n){return n==0?e:(e=n>=e.length?new Array(n-e.length+1).join("0")+e:e,e.substr(0,e.length-n)+"."+e.substr(e.length-n,n))}function 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 yn(e,n,o=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let l=0;n[0]=="-"&&(n=n.substring(1),l++),e[0]=="-"&&(e=e.substring(1),l++);var r=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Ee(n.replace(".","")),r>=0){let c=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(c==-1)e=Ee(e+new Array(r+1).join("0"));else if(r>c)e=e.replace(".",""),e=Ee(e+new Array(r-c+1).join("0"));else if(r<c){e=e.replace(".","");let d=e.length-c+r;e=Ee(e.substring(0,d)+"."+e.substring(d))}else r==c&&(e=Ee(e.replace(".","")))}let a=0,i=n.length,u="",s=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),s.indexOf(".")>-1){let c=s.length-s.indexOf(".")-1;s=s.replace(".",""),i>s.length&&(c+=i-s.length,s=s+new Array(i-s.length+1).join("0")),a=c,u="0."+new Array(c).join("0")}for(o=o+2;a<=o;){let c=0;for(;parseInt(s)>=parseInt(n);)s=At(s,"-"+n),c++;u+=c,e?(e[0]=="."&&(u+=".",a++,e=e.substring(1)),s=s+e.substring(0,1),e=e.substring(1)):(a||(u+="."),a++,s=s+"0")}return(l==1?"-":"")+Ee(bt(u,o-2))}function bn(e,n){return e=e.toString(),n=n.toString(),n=vn(n),At(e,n)}function vn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function zl(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),Hl(e),Hl(n);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let l=bn(e,pn(n,bt(yn(e,n),0,be.FLOOR)));return o+l}function Hl(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Kl(e,n){let o=!1;if(e[0]=="-"&&n[0]!="-")return-1;if(e[0]!="-"&&n[0]=="-")return 1;if(e[0]=="-"&&n[0]=="-"&&(e=e.substr(1),n=n.substr(1),o=!0),[e,n]=gn(e,n),e.localeCompare(n)==0)return 0;for(let l=0;l<e.length;l++)if(e[l]!=n[l])return e[l]>n[l]?o?-1:1:o?1:-1;return 0}class de{value;static RoundingModes=be;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[o,l]=n.split(/[eE]/);o=Ee(o);let r="";o[0]=="-"&&(r="-",o=o.substring(1)),o.indexOf(".")>=0?(l=parseInt(l)+o.indexOf("."),o=o.replace(".","")):l=parseInt(l)+o.length,o.length<l?n=r+o+new Array(l-o.length+1).join("0"):o.length>=l&&l>0?n=r+Ee(o.substring(0,l))+(o.length>l?"."+o.substring(l):""):n=r+"0."+new Array(-l+1).join("0")+o}return n}constructor(n="0"){this.value=de.validate(n)}getValue(){return this.value}static getPrettyValue(n,o,l){if(!(o||l))o=3,l=",";else if(!(o&&l))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=de.validate(n);let r=n.charAt(0)=="-";r&&(n=n.substring(1));var a=n.indexOf(".");a=a>0?a:n.length;for(var i="",u=a;u>0;)u<o?(o=u,u=0):u-=o,i=n.substring(u,u+o)+(u<a-o&&u>=0?l:"")+i;return(r?"-":"")+i+n.substring(a)}getPrettyValue(n,o){return de.getPrettyValue(this.value,n,o)}static round(n,o=0,l=be.HALF_EVEN){if(n=de.validate(n),isNaN(o))throw Error("Precision is not a number: "+o);return bt(n,o,l)}round(n=0,o=be.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new de(bt(this.value,n,o))}static floor(n){return n=de.validate(n),n.indexOf(".")===-1?n:de.round(n,0,be.FLOOR)}floor(){return this.value.indexOf(".")===-1?new de(this.value):new de(this.value).round(0,be.FLOOR)}static ceil(n){return n=de.validate(n),n.indexOf(".")===-1?n:de.round(n,0,be.CEILING)}ceil(){return this.value.indexOf(".")===-1?new de(this.value):new de(this.value).round(0,be.CEILING)}static add(n,o){return n=de.validate(n),o=de.validate(o),At(n,o)}add(n){return new de(At(this.value,n.getValue()))}static subtract(n,o){return n=de.validate(n),o=de.validate(o),bn(n,o)}subtract(n){return new de(bn(this.value,n.getValue()))}static multiply(n,o){return n=de.validate(n),o=de.validate(o),pn(n,o)}multiply(n){return new de(pn(this.value,n.getValue()))}static divide(n,o,l){return n=de.validate(n),o=de.validate(o),yn(n,o,l)}divide(n,o){return new de(yn(this.value,n.getValue(),o))}static modulus(n,o){return n=de.validate(n),o=de.validate(o),zl(n,o)}modulus(n){return new de(zl(this.value,n.getValue()))}static compareTo(n,o){return n=de.validate(n),o=de.validate(o),Kl(n,o)}compareTo(n){return Kl(this.value,n.getValue())}static negate(n){return n=de.validate(n),vn(n)}negate(){return new de(vn(this.value))}}function Wl(e,n){return de.multiply(`${e}`,`${n}`)}function wn(e,n,o=8){return de.divide(`${e}`,`${n}`,o)}function Sn(e,n){return e=`${e}`,n=`${n}`,de.compareTo(e,n)}function Yl(e){return de.negate(e)}function Lt(e,n=-1,o=!1,l=3,r=","){let a=`${e}`;if(a.length==0||a==="-")return"";let i=a.charAt(0);i=="-"?a=a.substring(1):i="";let u=a,s="",c=a.indexOf(".");c!=-1&&(u=a.substring(0,c),s=a.substring(c+1)),n!=-1&&(n<s.length?s=s.substring(0,n):o&&n>s.length&&(s=s.padEnd(n,"0")));let d;if(l>0){let g="",b=u.split("").reverse();for(let w=0;w<b.length;w++)g+=b[w]+((w+1)%l==0&&w+1!=b.length?r:"");s.length==0?d=`${i}${g.split("").reverse().join("")}`:d=`${i}${g.split("").reverse().join("")}.${s}`}else s.length==0?d=`${i}${u}`:d=`${i}${u}.${s}`;return d}function Gl(e){let n=`${e}`,o=n.charAt(0);o=="-"?n=n.substring(1):o="";let l=n.replace(/[^\d\.-]/g,"");return`${o}${l}`}const xn=ql,Zr=Array.isArray,Jr=e=>Mt(e)==="[object Map]",Qr=e=>Mt(e)==="[object Set]",ea=e=>e instanceof Date,Tn=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)&&Tn(e.then)&&Tn(e.catch),Zl=Object.prototype.toString,Mt=e=>Zl.call(e),$n=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 lt(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,l=e.length,r=!1;for(typeof n=="boolean"&&(r=n,n=e[o]??{},o++),typeof n!="object"&&(n={});o<l;o++)if(e[o]!==null&&e[o]!==void 0){let a=e[o];for(let i in a){let u=n[i],s=a[i];if(u!==s)if(r===!0&&s&&typeof s=="object"){let c;Array.isArray(s)?c=u&&Array.isArray(u)?u:[]:c=u&&typeof u=="object"?u:{},n[i]=lt(r,c,s)}else s!==void 0&&(n[i]=s)}}return n}function Cn(e,n,o=!1){if(!o)lt(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let r in n){let a=e[r],i=n[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!$n(i))continue;a=Cn(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}const l=Object.getOwnPropertySymbols(n);for(let r of l){let a=e[r],i=n[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!$n(i))continue;a=Cn(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const En=la?Promise.resolve():null;function oa(e,...n){En!==null?n&&n.length>0?En.then(()=>{e(n)}):En.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function ue(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function Se(e){return typeof e=="number"?e:Number(e)}const 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:n}=window.getComputedStyle(e);return n==="none"}function eo(e){let n=!!e&&"length"in e&&e.length,o=Bt(e);return o==="function"||Ql(e)?!1:o==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function to(e,n){let o=+n.length,l=0,r=e.length;for(;l<o;l++)e[r++]=n[l];return e.length=r,e}function aa(e,n=[]){let o=n;return e!=null&&(eo(Object(e))?to(o,typeof e=="string"?[e]:e):o.push(e)),o}function Ye(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let o=Bt(e),l=Bt(n);if(o!==l)return!1;if(o==="object"){let r=Object.keys(e),a=Object.keys(n);if(r.length!==a.length)return!1;for(let i=0;i<r.length;i++){let u=r[i],s=e[u],c=n[u];if(!Ye(s,c))return!1}return!0}else if(o==="array"){if(e.length!==n.length)return!1;for(let r=0;r<e.length;r++){let a=e[r],i=n[r];if(!Ye(a,i))return!1}return!0}return!1}const ot=typeof window<"u";function Nn(e){return e==null}function no(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const pe=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function lo(e){return pe(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),pe(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function oo(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const o=n.indexOf(".");return o==-1?n.length:o}function ro(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const o=n.indexOf(".");return o==-1?0:n.length-(o+1)}function ao(e,n,o){const l=e.indexOf(n);return l===-1?e:n==="-"&&l!==0?e.slice(0,l):e.slice(0,l+1)+e.slice(l).replace(o,"")}function ia(e,n=!0,o=!0){n?e=ao(e,".",/\./g):e=e.replace(/\./g,""),o?e=ao(e,"-",/-/g):e=e.replace(/-/,"");const l=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(l,"")}function sa(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(o=>{if(Ye(e,o))return!0}):n.indexOf(e)}function ua(e,n){if(typeof e=="object"||Array.isArray(e)){let o=n.reverse().findIndex(l=>{if(Ye(e,l))return!0});return o!==-1&&(o=n.length-1-o),o}return n.lastIndexOf(e)}function wt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function io(e,...n){const o={};return n.forEach(l=>{for(const r in l)o[r]=e[r]}),o}function Ne(e,...n){const o=[];n.forEach(r=>{Reflect.apply([].push,o,Reflect.ownKeys(r))});const l={};for(const r in e)o.includes(r)||(l[r]=e[r]);return l}const ca=(e,n,o)=>{const l=Object.assign({},e),r=Object.assign({},o);return Object.keys(n).length>0?(Object.keys(l).forEach(a=>{r.hasOwnProperty(a)?typeof r[a]=="string"&&(l[a]=n[r[a]]):n[a]&&(l[a]=n[a])}),l):e},ve=Symbol.for("BroadcastKey");class kn{parent;children=[];callbacks=new Map;proxy=null;name;constructor(n,o,l){this.parent=n,this.proxy=o,this.name=l,n!==null&&n.addChild(this)}addChild(n){this.children.push(n)}removeChild(n){const o=this.children.findIndex(l=>n===l);o!==-1&&this.children.splice(o,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(n,o,...l){if(n.maxLevel!==void 0&&n.maxLevel!==null&&n.maxLevel>0){if(n.level=n.level??0,n.level>n.maxLevel)return[];n.level++}let r=!1;!n.name||n.name==="*"?r=!0:!n.name||n.name==="+"?(r=!1,n.name="*"):no(n.name)&&this.name&&n.name.test(this.name)?r=!0:typeof n.name=="function"?r=Reflect.apply(n.name,null,[this.name]):n.name===this.name&&(r=!0);const a=[];if(r){const i=this.callbacks.get(o);if(typeof i=="function"){const s=Reflect.apply(i,this.proxy,[...l]);s!=null&&a.push(s)}const u=this.proxy??{};if(typeof u[o]=="function"){const s=Reflect.apply(u[o],u,[...l]);s!=null&&a.push(s)}}return this.children.forEach(i=>{const u=Reflect.apply(i.emit,i,[{...n},o,...l]);u!=null&&Array.isArray(u)&&Reflect.apply([].push,a,[...u])}),a}emitToChildren(n,o,...l){const r=[];return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...n},o,...l]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}on(n,o){this.callbacks.set(n,o)}}function qt(e,n,o,l){const r=new kn(n,e,o);if(l&&typeof l=="object")for(const a in l)r.on(a,l[a]);return r}function fa(e,n,o){const l=o;if(l[ve])return l[ve];const r=t.inject(ve,null),a=new kn(r,o,e);if(n&&typeof n=="object")for(const i in n)a.on(i,n[i]);return l[ve]=a,t.provide(ve,a),t.onUnmounted(()=>{a.destroy(),l[ve]=void 0}),a}function St(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[ve]??t.inject(ve,null):t.inject(ve,null)}const rt=e=>e.default??e;class da{error(n,o){const l=o,r=o||t.hasInjectionContext()?St(o):null;r?r.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof l.setErrorTip=="function"&&l.setErrorTip(n)}reset(n){const o=n,l=n||t.hasInjectionContext()?St(n):null;l?l.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(n){const o=n,l=n||t.hasInjectionContext()?St(n):null;l?l.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(n,o,l){Array.isArray(n)||(n=[n]);const r=l,a=l||t.hasInjectionContext()?St(l):null,i=o.find(s=>s.required===!0||s.type==="required"&&s.required!==!1),u=n.find(s=>s.required===!0||s.type==="required"&&s.required!==!1);!i&&u?a?a.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0):i&&!u&&(a?a.emit({name:"*"},"setRequired",!1):typeof r.setRequired=="function"&&r.setRequired(!1),this.reset(l))}getValue(n){return n.modelValue}}let xt=new da;function ha(e){xt=e}function ga(e){xt?Object.assign(xt,e):xt=e}function ma(e,n){rt(nt).setValidator(e,n)}function pa(e){rt(nt).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){rt(nt).messages(e)}function Tt(...e){const n=[];return e.forEach(o=>{o.forEach(l=>{const r=n.findIndex(a=>a.type===l.type);r!==-1&&n.splice(r,1),n.push(l)})}),n}function Pt(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}const qe=Symbol("ValidateSchemaKey");class ho{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(n,o,l){this.parent=n,this.descriptor=o,this.proxy=l,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let n=this.proxy.$attrs;n&&(this.scope=t.effectScope(!0),this.scope.run(()=>{t.watchEffect(()=>{const o=Pt(Tt(this.attrRules,this.rules)),l=[];for(let a in n){let i=n[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let s={type:a};i!==null&&typeof i=="object"&&Object.assign(s,i),l.push(s);continue}let u=this.getValidator(a);if(u!==null){let s={type:a,validator:u};l.push(s)}}this.attrRules=Pt(l);const r=Tt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(r,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(n,...o){const l=this.descriptor.validateHandler;if(l&&typeof l[n]=="function")return Reflect.apply(l[n],l,[...o]);const r=xt;return r&&typeof r[n]=="function"?Reflect.apply(r[n],r,[...o]):null}decorate(n,o){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",n,o,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(n){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",n,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(n,o,l=!1){l?rt(nt).setValidator(n,o):this.validators[n]=o}getValidator(n){let o=this.validators[n]??null;return o||(o=this.parent?.getValidator(n)??null),o}deleteValidator(n,o=!1){o?rt(nt).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,o=!1){if(o)return rt(nt).hasValidator(n);{let l=Reflect.has(this.validators,n);return!l&&this.parent!==null&&(l=this.parent.hasValidator(n,!1)),l}}setRule(n){const o=Tt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=Pt(n):this.rules=Pt([n]);const l=Tt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(l,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 l=this.descriptor.fieldName??"value";if(o.length>0){const r={[`${l}`]:o},a=this.getValue(),i={[`${l}`]:a},u=rt(nt),s=new u(r),c=this.proxy??i;return s.validate(i,{context:c}).then(g=>{if(g.pass)this.success();else{let b="error";Array.isArray(g.errors)&&g.errors.length>0&&(b=g.errors[0].message??b,g.errors=[g.errors[0]],g.errors[0].ref=c),this.error(b)}return g}).catch(g=>{const b=g.message??`${g}`;return this.error(b),g})}}return Promise.resolve({pass:!0})}}function jt(e,n,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(n,o,e)}const zt=Symbol.for("EventEmitterKey");class go{register=new Map;proxy;constructor(n){this.proxy=n}destroy(){this.proxy=null,this.register.clear()}off(n,o){let l=this.register.get(n);if(l&&Array.isArray(l)){let r=l.findIndex(a=>a===o);r!==-1&&l.splice(r,1)}}on(n,o){let l=this.register.get(n);l||(l=new Array,this.register.set(n,l)),l.push(o)}emit(n,...o){const l=this.register.get(n);l&&l.forEach(r=>{try{Reflect.apply(r,null,[n,...o])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[n,...o])}}function $t(e,n){let o=null;return function(...l){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...l])},n)}}function mo(e,n){let o=0;return function(...l){const r=new Date().getTime();r-o<n||(o=r,Reflect.apply(e,null,[...l]))}}function wa(e,n){const o=$t((l,r)=>{e=l,r()},n);return t.customRef((l,r)=>({get(){return l(),e},set(a){o(a,r)}}))}function Sa(e){let n=!1;return function(...o){n||(n=!0,Reflect.apply(e,null,[...o]))}}function Ht(e,n,o,l=0,r=!0,a){let i=n,u=0;if(r){const c=e();if(u++,c){typeof a=="function"&&a(!0);return}if(u>o){typeof a=="function"&&a(!1);return}}const s=()=>{const c=e();if(u++,c){typeof a=="function"&&a(!0);return}if(u>o){typeof a=="function"&&a(!1);return}i+=l,setTimeout(s,i)};setTimeout(s,i)}const Ae=Symbol("DomainKey"),ut=Symbol("DataItemsKey");class Kt{_parent=null;get parent(){return this._parent}set parent(n){this._parent=n}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(n){this._broadcast=n}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(n){this._validateSchema=n}_props=t.reactive({});constructor(n=null){this._name=n}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(n,o=[]){for(const l in n){const r=n[l];o.length>0&&o.indexOf(r)!==-1||(this._props[l]=r)}}has(n){if(Reflect.has(this._props,n)){const o=this._props[n];if(o!=null)return!0}return this.parent==null?!1:this.parent.has(n)}delete(n){Reflect.deleteProperty(this._props,n)}set(n,o){this._props[n]=o}get(n,o){if(Reflect.has(this._props,n)){const l=this._props[n];if(l!=null)return l}return this.parent==null?o:this.parent.get(n,o)}getForParent(n,o){return this.parent==null?o:this.parent.get(n,o)}getForSelf(n){return this._props[n]}getAll(n){const o=[];let l=this;for(;l!=null;){if(Reflect.has(l._props,n)){const r=l._props[n];o.push(r)}l=l._parent}return o}}const xa=new Kt;function ct(){return xa}function Ge(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ae]??t.inject(Ae,null):t.inject(Ae,null)}const In=Symbol("OriginalDateKey");function On(e,n,o=[],l){const r=t.getCurrentInstance();let a=r?.proxy,i=t.inject(Ae,null);i===null&&(i=ct());const u=e||n.prop||n.name;let s=new Kt(u);s.parent=i;const c=f=>{a[In]||b(f),s?.set("modelValue",f)},d=()=>s?.getForSelf("modelValue")??null,g=()=>a[In]??null,b=f=>{const h={};lt(!0,h,t.toRaw(f)),a[In]=h};t.isReactive(n)||typeof n=="function"?t.watch(n,f=>{s?.merge(f,o)},{immediate:!0}):s.merge(n,o),n.modelValue&&b(n.modelValue);const w=(f,h)=>{s?.set(f,h)},p=f=>s?.getForSelf(f)??null;if(a[Ae]=s,t.provide(Ae,s),r!==null){const f=t.inject(ve,null),h=qt(a,f,u,l);s.broadcast=h,a[ve]=h,t.provide(ve,h),a.broadcast=(C,q,...j)=>Reflect.apply(h.emit,h,[C,q,...j]);const D=t.inject(qe,null),I=jt(a,D,{componentName:""});s.validateSchema=I,a[qe]=I,t.provide(qe,I),a[ut]=new Map,a.validate=(C=!0)=>{const q=[];let j=null;const B={deep:!1};if(C===!0)j={name:"*"};else if(Array.isArray(C)&&C.length>0){const _=C;j={name:L=>L?_.indexOf(L)!==-1:!1}}else if(C!=null&&typeof C=="object"){const _=C;if(Object.assign(B,_),Array.isArray(_.include)&&_.include.length>0){const L=_.include;j={name:x=>x?L.indexOf(x)!==-1:!1}}else if(Array.isArray(_.exclude)&&_.exclude.length>0){const L=_.exclude;j={name:x=>x?L.indexOf(x)===-1:!1}}else j={name:"*"}}if(j){const _=h?.emitToChildren(j,"validate",B);_&&Reflect.apply([].push,q,_)}return q.length==1?q[0]:q.length>1?Promise.all(q).then(_=>{let L=[];return _.forEach(x=>{x.pass===!1&&Array.isArray(x.errors)&&(L=[...L,...x.errors])}),L.length>0?{pass:!1,errors:L}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(C,q=!0,j=!1)=>{if(j===!0){Reflect.ownKeys(C).forEach(_=>{let L=String(_);const x={componentName:"",fieldName:L,pureDataValidate:!0};if(s){const E=bo(s,L,x,h,I);a[ut].set(L,E);const y=C[L];y&&E.validateSchema.setRule(y)}});return}if(q){const B=Reflect.ownKeys(C),_={name:L=>B.includes(L)};h?.emitToChildren(_,"setNameValidateRules",C,!1)}},a.clearValidate=(C=!0)=>{let q=null;if(C===!0)q={name:"*"};else if(Array.isArray(C)&&C.length>0){const j=C;q={name:B=>B?j.indexOf(B)!==-1:!1}}else if(C!=null&&typeof C=="object"){const j=C;if(Array.isArray(j.include)&&j.include.length>0){const B=j.include;q={name:_=>_?B.indexOf(_)!==-1:!1}}else if(Array.isArray(j.exclude)&&j.exclude.length>0){const B=j.exclude;q={name:_=>_?B.indexOf(_)===-1:!1}}else q={name:"*"}}q&&h?.emitToChildren(q,"clearValidate",!1)},a.resetFields=C=>{const q=d();if(!q)return;const j={};if(lt(!0,j,g()??{}),Array.isArray(C))C.forEach(B=>{q[B]=j[B]});else if(C&&Array.isArray(C.include))(C.include??[]).forEach(_=>{q[_]=j[_]});else if(C&&Array.isArray(C.exclude)){let B=C.exclude??[];Reflect.ownKeys(j).forEach(_=>{B.includes(_)||(q[_]=j[_])})}else Object.assign(q,j);a.clearValidate(C)},a.setModelValue=(C,q)=>{!q||q===u?c(C):h?.emitToChildren({name:q},"setModelValue",C)},a.getModelValue=()=>d(),a.setDomainProperty=(C,q)=>{w(C,q)},a.getDomainProperty=C=>p(C)}return t.onUnmounted(function(){s?.validateSchema&&(s.validateSchema.destroy(),a[qe]=void 0,t.provide(qe,null)),s?.broadcast&&(s?.broadcast?.destroy(),a[ve]=void 0,t.provide(ve,null)),s?.destroy(),a[Ae]=void 0,t.provide(Ae,null),a[ut]&&(a[ut].clear(),a[ut]=void 0),a.broadcast=null,a.validate=null,a.setNameValidateRules=null,a.clearValidate=null,a.resetFields=null,a.setModelValue=null,a.getModelValue=null,a.setDomainProperty=null,a.getDomainProperty=null,s=null,a=null}),s}function po(e,n,o=[]){let r=t.getCurrentInstance()?.proxy,a=t.inject(Ae,null);a===null&&(a=ct());const i=e||n.prop||n.name;let u=new Kt(i);return u.parent=a,t.isReactive(n)||typeof n=="function"?t.watch(n,s=>{u?.merge(s,o)},{immediate:!0}):u.merge(n,o),r[Ae]=u,t.provide(Ae,u),t.onUnmounted(()=>{u?.destroy(),r[Ae]=void 0,t.provide(Ae,null),u=null,r=null}),u}function yo(e,n,o){const r=Ge(e)?.get("rules");if(!r)return;let a=r[o];a&&(Array.isArray(a)||(a=[a]),n.setRule(a))}function $e(e,n,o){const r=t.getCurrentInstance()?.proxy,a=n??"",i=t.inject(ve,null);let u=qt(r,i,a,o);r[ve]=u,t.provide(ve,u),r.broadcast=(p,f,...h)=>u?Reflect.apply(u.emit,u,[p,f,...h]):null;const s=t.inject(qe,null);e.fieldName=e.fieldName??a;let c=jt(r,s,e);r[qe]=c,t.provide(qe,c),yo(r,c,a),r.validate=(p=null)=>{if(!c)return Promise.resolve({pass:!0});const f=[];let h=!1,D=!1;if(Array.isArray(p)&&p.indexOf(a)!==-1)D=!0,h=!0;else if(p&&typeof p=="object"){const I=p,C=I.ignoreDisabled??!0,q=I.ignoreReadonly??!0,j=I.ignoreHidden??!0;C===!0&&e.disabled===!0||q===!0&&e.readonly===!0||j===!0&&_t(r.$el)?D=!1:(Array.isArray(I.include)&&I.include.indexOf(a)!==-1||Array.isArray(I.exclude)&&I.exclude.indexOf(a),D=!0),h=I.deep??!1}else typeof p=="boolean"&&(h=p),D=!0;if(D){const I=c?.validate();f.push(I)}if(h){let I=null;const C={deep:!1};if(p===!0)I={name:"*"};else if(Array.isArray(p)&&p.length>0){const q=p;I={name:j=>j?q.indexOf(j)!==-1:!1}}else if(p!=null&&typeof p=="object"){const q=p;if(Object.assign(C,q),Array.isArray(q.include)&&q.include.length>0){const j=q.include;I={name:B=>B?j.indexOf(B)!==-1:!1}}else if(Array.isArray(q.exclude)&&q.exclude.length>0){const j=q.exclude;I={name:B=>B?j.indexOf(B)===-1:!1}}else I={name:"*"}}if(I&&u){const q=u.emitToChildren(I,"validate",C);Reflect.apply([].push,f,q)}}return f.length==1?f[0]:f.length>1?Promise.all(f).then(I=>{let C=[];return I.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=p=>c?.setRule(p),r.setNameValidateRules=(p,f=!1)=>{const h=p[a];if(h&&c?.setRule(h),f&&u){const D={name:I=>Reflect.ownKeys(p).includes(I)};u.emitToChildren(D,"setNameValidateRules",p,!1)}},r.clearValidate=(p=null)=>{(!Array.isArray(p)||p.indexOf(n??"")!==-1)&&c?.clear();let f=null;if(p===!0)f={name:"*"};else if(Array.isArray(p)&&p.length>0){const h=p;f={name:D=>D?h.indexOf(D)!==-1:!1}}else if(p!=null&&typeof p=="object"){const h=p;if(Array.isArray(h.include)&&h.include.length>0){const D=h.include;f={name:I=>I?D.indexOf(I)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const D=h.exclude;f={name:I=>I?D.indexOf(I)===-1:!1}}else f={name:"*"}}f&&u&&u.emitToChildren(f,"clearValidate",!1)};let d=new go(r);r[zt]=d;const g=$t((p="validate")=>{c&&(p==="reset"?c.clear():c.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:uo()).forEach(p=>{d&&d.on(p,f=>{g("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:fo()).forEach(p=>{d&&d.on(p,f=>{g("reset")})}),t.onUnmounted(()=>{u?.destroy(),r[ve]=void 0,t.provide(ve,null),u=null,c?.destroy(),r[qe]=void 0,t.provide(qe,null),c=null,d?.destroy(),r[zt]=void 0,d=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:u,validateSchema:c,emitEvent:(p,...f)=>{d&&Reflect.apply(d.emit,d,[p,...f])},onEvent:(p,f)=>{d&&Reflect.apply(d.on,d,[f])},offEvent:(p,f)=>{d&&Reflect.apply(d.off,d,[f])}}}function bo(e,n,o,l,r){const a={},i=n??"",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}};o.fieldName=i,o.validateHandler={getValue(d){return u.getValue()}};let s=jt({},r,o);a.validate=(d=null)=>{if(!u.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const g=[];let b=!1,w=!1;if(Array.isArray(d)&&d.indexOf(i)!==-1)w=!0,b=!0;else if(d&&typeof d=="object"){const p=d;Array.isArray(p.include)&&p.include.indexOf(i)!==-1||Array.isArray(p.exclude)&&p.exclude.indexOf(i),w=!0,b=p.deep??!1}else typeof d=="boolean"&&(b=d),w=!0;if(w&&s){const p=s.validate();g.push(p)}if(b){let p=null;const f={deep:!1};if(d===!0)p={name:"*"};else if(Array.isArray(d)&&d.length>0){const h=d;p={name:D=>D?h.indexOf(D)!==-1:!1}}else if(d!=null&&typeof d=="object"){const h=d;if(Object.assign(f,h),Array.isArray(h.include)&&h.include.length>0){const D=h.include;p={name:I=>I?D.indexOf(I)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const D=h.exclude;p={name:I=>I?D.indexOf(I)===-1:!1}}else p={name:"*"}}if(p&&c){const h=c.emitToChildren(p,"validate",f);Reflect.apply([].push,g,h)}}return g.length==1?g[0]:g.length>1?Promise.all(g).then(p=>{let f=[];return p.forEach(h=>{h.pass===!1&&Array.isArray(h.errors)&&(f=[...f,...h.errors])}),f.length>0?{pass:!1,errors:f}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=d=>s?.setRule(d),a.setNameValidateRules=d=>{const g=d[i];g&&s?.setRule(g)};let c=qt(null,l,i,a);return t.onUnmounted(()=>{s=null,c=null}),{broadcast:c,validateSchema:s}}function vo(){let n=t.getCurrentInstance()?.proxy,o=new go(n);return n[zt]=o,t.onUnmounted(()=>{o?.destroy(),n[zt]=void 0,o=null,n=null}),{emitEvent:(l,...r)=>{o&&Reflect.apply(o.emit,o,[l,...r])},onEvent:(l,r)=>{o&&Reflect.apply(o.on,o,[r])},offEvent:(l,r)=>{o&&Reflect.apply(o.off,o,[r])}}}const ke=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${he(e,n)}px`:"";function he(e,n=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let 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(ot){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(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*n;const l=Number(e);return isNaN(l)?0:l}const Qe="PageStateKey";function ze(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=he(e.top)),e.left!==null&&e.left!==void 0&&(n.left=he(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=he(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=he(e.right))),n}function Vn(e,n,o={},l=!0,r=-1,a=-1,i=0,u=0){if(e.headerHeight=he(o.headerHeight??n.headerHeight??-1),e.headerPadding=ze(o.headerPadding??n.headerPadding),e.footerHeight=he(o.footerHeight??n.footerHeight??-1),e.footerPadding=ze(o.footerPadding??n.footerPadding),e.contentPadding=ze(o.contentPadding??n.contentPadding),l){const s=o.height??n.height;s?e.height=he(s,a):e.height=he(a)-he(i,a)-he(u,a),e.width=he(o.width??n.width??0,r)}}function wo(e,n={}){const o={top:null,left:null,bottom:null,right:null},l={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")??{},n.safeAreaInset??{});r&&(l.safeAreaTop=he(r.top),l.safeAreaBottom=he(r.bottom),l.safeAreaLeft=he(r.left),l.safeAreaRight=he(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;Vn(l,a,n,!0,i,u,s,c);const d=t.reactive(l),g=e.getForParent(Qe);g&&(l.height=Yt(e,g),l.width=Gt(e,g),t.watch([()=>Yt(e,g),()=>Gt(e,g)],([w,p])=>{d.height=w,d.width=p}));const b=!g;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([w,p,f=-1,h=-1,D=0,I=0])=>{Vn(d,p,n,b,f,h,D,I)}),e.set(Qe,d),d}function Wt(e){return e.get(Qe)}function Ct(e,n){if(n=n??e.get(Qe),n&&n.headerMounted){const o=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+o}return 0}function Et(e,n){if(n=n??e.get(Qe),n&&n.footerMounted){const o=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+o}return 0}function Yt(e,n){if(n=n??e.get(Qe),n){if(n.contentInnerHeight)return n.contentInnerHeight;const o=Ct(e,n),l=Et(e,n);return n.height-o-l-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function Gt(e,n){return n=n??e.get(Qe),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function Ta(e,n){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[n,e]):!1}function $a(e){return!!e.getForParent(Qe)}var Me=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Me||{});function Ut(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Oe(e,n,o=1,l){const r=Ge();return r==null?e:o===0?t.computed(()=>{const a=r.getAll(n);for(let u=a.length-1;u>=0;u--){const s=a[u];if(Ut(s,l))return s}const i=e.value;return Ut(i,l)?i:null}):t.computed(()=>{const a=e.value;if(Ut(a,l))return a;const i=r.getAll(n);for(let u=0;u<i.length;u++){const s=i[u];if(Ut(s,l))return s}return null})}function Ve(e){return Oe(e,"readonly",1)}function De(e){return Oe(e,"disabled",1)}function ge(e,n="modelValue",o=null,l){const r=t.toRef(e,n);let a=r.value;typeof o=="function"&&(a=o(r.value));const i=t.ref(a);return t.watch(r,u=>{if(typeof o=="function"){const s=o(u);s!==i.value&&(i.value=s,l&&l("setValue",s))}else u!==i.value&&(i.value=u,l&&l("setValue",u))}),i}const So=new Map,Xt=new Map;let Dn=null;function Ca(e){Dn=e}function xo(e,n,o){if(o){let l=Xt.get(o);l||(l=new Map,Xt.set(o,l)),l.set(e,n)}else So.set(e,n)}function Pe(e,n,o){!o&&Dn&&(o=Dn(e)??void 0);let l=null;if(o){let r=Xt.get(o);r&&(l=r.get(n))}return l||(l=So.get(n)),l}function Ea(e,n){for(let o in e){const l=e[o];xo(o,l,n)}}function Na(e){Xt.delete(e)}function ka(){return{top:0,left:0,bottom:0,right:0}}function Ia(e=0,n=0){if(ot){const o=document.documentElement.clientWidth||document.body.clientWidth,l=document.documentElement.clientHeight||document.body.clientHeight,r={width:o,height:l-he(e,l)-he(n,l)};return{rootWidth:o,rootHeight:l,pageLayout:r}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}function Oa(e,n){if(n.componentPrefix){const o=e.indexOf("-");return`${n.componentPrefix}${e.slice(o)}`}return e}class Va{packages;installers;_version;get version(){return this._version}constructor(n,o,l){this.packages=n,this.installers=o,this._version=l}install(n,o={}){o?.install!==!1&&(this.packages.forEach(a=>{if(a.install)n.use(a);else if(a.name){const i=Oa(a.name,o);n.component(i,a)}}),this.installers.forEach(a=>{a(n,o)}));const l=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=ct();if(this.initPageLayout(o,r),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=mo(()=>{const u={...o},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 o)l.indexOf(a)===-1&&r.set(a,o[a])}initPageLayout(n,o){const l=n.headerBarHeight??0,r=n.footerBarHeight??0,a=lt({},ka(),n.safeAreaInset),i=Ia(l,r),u=lt({},i.pageLayout,n.pageLayout);o=o??ct(),o.set("safeAreaInset",a),o.set("headerBarHeight",l),o.set("footerBarHeight",r),o.set("pageLayout",u),o.set("rootWidth",i.rootWidth),o.set("rootHeight",i.rootHeight)}setScopeGetter(n){Ca(n)}setAPI(n,o,l){xo(n,o,l)}getAPI(n,o,l){return Pe(n,o,l)}batchSetAPI(n,o){Ea(n,o)}clearScopeAPI(n){Na(n)}getRootDomain(){return ct()}}const Da=[v.ElAffix,v.ElAlert,v.ElAutocomplete,v.ElAutoResizer,v.ElAvatar,v.ElBacktop,v.ElBadge,v.ElBreadcrumb,v.ElBreadcrumbItem,v.ElButton,v.ElButtonGroup,v.ElCalendar,v.ElCard,v.ElCarousel,v.ElCarouselItem,v.ElCascader,v.ElCascaderPanel,v.ElCheckTag,v.ElCheckbox,v.ElCheckboxButton,v.ElCheckboxGroup,v.ElCol,v.ElCollapse,v.ElCollapseItem,v.ElCollapseTransition,v.ElColorPicker,v.ElConfigProvider,v.ElContainer,v.ElAside,v.ElFooter,v.ElHeader,v.ElMain,v.ElDatePicker,v.ElDescriptions,v.ElDescriptionsItem,v.ElDialog,v.ElDivider,v.ElDrawer,v.ElDropdown,v.ElDropdownItem,v.ElDropdownMenu,v.ElEmpty,v.ElForm,v.ElFormItem,v.ElIcon,v.ElImage,v.ElImageViewer,v.ElInput,v.ElInputNumber,v.ElLink,v.ElMenu,v.ElSubMenu,v.ElMenuItem,v.ElMenuItemGroup,v.ElPageHeader,v.ElPagination,v.ElPopconfirm,v.ElPopover,v.ElPopper,v.ElProgress,v.ElRadio,v.ElRadioButton,v.ElRadioGroup,v.ElRate,v.ElResult,v.ElRow,v.ElScrollbar,v.ElSelect,v.ElOption,v.ElOptionGroup,v.ElSelectV2,v.ElSkeleton,v.ElSkeletonItem,v.ElSlider,v.ElSpace,v.ElSteps,v.ElStep,v.ElSwitch,v.ElTable,v.ElTableColumn,v.ElTableV2,v.ElTabs,v.ElTabPane,v.ElTag,v.ElTimePicker,v.ElTimeSelect,v.ElTimeline,v.ElTimelineItem,v.ElTooltip,v.ElTransfer,v.ElTree,v.ElTreeSelect,v.ElTreeV2,v.ElUpload,v.ElStatistic,v.ElCountdown,v.ElSegmented,v.ElAnchor,v.ElAnchorLink,v.ElWatermark,v.ElMessageBox,v.ElMessage,v.ElNotification],Fa=[v.ElInfiniteScroll,v.ElLoading,v.ElMessage,v.ElMessageBox,v.ElNotification,v.ElPopoverDirective],Ra=(e,n={})=>{const o=n.componentPrefix??"fox",l=o[0].toUpperCase()+o.slice(1);Da.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${l}${a.slice(2)}`,e.component(a,r)):e.use(r)}),Fa.forEach(r=>{e.use(r)})};function se(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=n,o.install=l=>{l.component(o.name,o)},t.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,t.defineComponent(o)}}}function we(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let o=n.proxy;Object.assign(o,e)}}const xe={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}},Ie={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:()=>!1},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number,String],default:()=>0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:()=>"is-info"},warnMarkClass:{type:String,required:!1,default:()=>"is-warn"},errorMarkClass:{type:String,required:!1,default:()=>"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:()=>"content--default"},contentStyle:{type:Object,required:!1,default:()=>{}},hintType:{type:String,required:!1,default:()=>"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:()=>!0},hintProps:{type:Object,required:!1,default:()=>{}},appearListen:{type:[Boolean,String],required:!1,default:()=>!1}},To={column:{type:[String,Number],required:!1},columnWidth:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},maxItemWidth:{type:[String,Number],required:!1}},$o={name:{type:String,required:!1},prop:{type:String,required:!1},tag:{type:String,required:!1,default:()=>"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:()=>"stretch"},align:{type:[String],required:!1,default:()=>"start"},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number],default:()=>0},autoLayout:{type:[Boolean],required:!1,default:()=>!0},isWrap:{type:[Boolean,String],required:!1,default:()=>!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:()=>!0},markColor:{type:[String],required:!1},title:{type:String,default:()=>""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:()=>!1},collapsePosition:{type:[String],requried:!1,default:()=>"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:()=>!0}},Co=[];for(const e in $o)Co.push(e);const Aa=Symbol.for("InnerPageScopeKey"),La={name:{type:String,required:!1,default:()=>""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1}},Ma=(e,n)=>({inheritAttrs:!0,props:{...xe,...To,...La},setup(o,{slots:l}){const r=On(o.name,o),a=t.inject(Aa,!1);if(r){const d=wo(r,o);we({getPageContentHeight:()=>Yt(r,d),getPageContentWidth:()=>Gt(r,d),getPageHeaderHeight:()=>Ct(r,d),getPageFooterHeight:()=>Et(r,d)}),d&&a&&(d.contentHeight="100%")}const i=t.computed(()=>({[e]:!0})),u=t.computed(()=>({})),s=t.getCurrentInstance(),c=(d,g=!1)=>{const b=s?.proxy;b&&typeof b.setNameValidateRules=="function"&&b.setNameValidateRules(d,!0,g)};return t.watch([()=>o.rules,()=>o.pureDataRules],([d,g],[b,w])=>{if(d&&b){const p=t.toRaw(b),f=t.toRaw(d),h=f?Reflect.ownKeys(f):[];(p?Reflect.ownKeys(p):[]).forEach(I=>{h.includes(I)||(f[I]=[])}),c(f)}if(g&&w){const p=t.toRaw(w),f=t.toRaw(g),h=f?Reflect.ownKeys(f):[];(p?Reflect.ownKeys(p):[]).forEach(I=>{h.includes(I)||(f[I]=[])}),c(f,!0)}},{deep:!0}),t.onMounted(()=>{if(o.rules){const d=t.toRaw(o.rules);c(d)}if(o.pureDataRules){const d=t.toRaw(o.pureDataRules);c(d,!0)}}),()=>{const d={class:i.value,style:u.value};return t.h("div",d,[l?.default?.()])}}}),{componentName:Ba,create:_a,scope:vh}=se("page"),Fn=_a(Ma(Ba));function Zt(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Rn(e){const n=t.unref(e),o=window.getComputedStyle(n,null),l=parseFloat(o.getPropertyValue("padding-left")),r=parseFloat(o.getPropertyValue("padding-right")),a=parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("padding-bottom"));return{width:n.clientWidth-l-r,height:n.clientHeight-a-i}}const qa=(e,n,o,l=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:o},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(r,a){const i=Ge(),u=i?Wt(i):null;u&&(u.headerMounted=!0);const s=e,c=t.computed(()=>({[s]:!0,[`${s}--border`]:r.border,[`${s}--fixed`]:r.fixed,[`${s}--safe-area-inset-top`]:r.safeAreaInsetTop})),d=t.computed(()=>({[`${s}__inner`]:!0,[`${s}__inner--${r.align}`]:!0})),g=r.height!==null&&r.height!==void 0?he(r.height):null,b=t.computed(()=>{const E={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&u){const y=ze(r.padding??u.headerPadding);return Object.assign(E,y),g&&(u.headerHeight=g),u.headerHeight>0&&(E.height=u.headerHeight),E.safeAreaTop=u.safeAreaTop===-1?0:u.safeAreaTop,E.safeAreaTop>0&&(E.top=E.safeAreaTop+(y.top??0),E.height&&E.height>0&&(E.height=E.height+E.safeAreaTop)),E}if(g&&(E.height=g),r.padding){const y=ze(r.padding);Object.assign(E,y)}return E}),w=t.ref(null),p=()=>{if(u&&w.value&&!_t(w.value)){if(!l){const E=Zt(w.value);u.headerAllHeight=E.height}return u.headerMounted=!0,!0}return!1};let f=null;t.onMounted(()=>{u&&(Ht(p,50,5,50,!0),window.ResizeObserver&&w.value&&(f=new window.ResizeObserver(()=>{p()}),f.observe(w.value)))}),t.onUnmounted(()=>{u&&(u.headerMounted=!1,f&&(f.disconnect(),f=null))});const h=t.computed(()=>{const E={};return b.value.height!==null&&b.value.height!==void 0&&(E.height=`${b.value.height}px`),b.value.top!==null&&b.value.top!==void 0&&(E.paddingTop=`${b.value.top}px`),b.value.left!==null&&b.value.left!==void 0&&(E.paddingLeft=`${b.value.left}px`),b.value.right!==null&&b.value.right!==void 0&&(E.paddingRight=`${b.value.right}px`),b.value.bottom!==null&&b.value.bottom!==void 0&&(E.paddingBottom=`${b.value.bottom}px`),E}),D=t.computed(()=>!(b.value.height!==null&&b.value.height!==void 0&&b.value.height<=0));function I(){a.emit("back")}function C(){a.emit("click-title")}function q(){a.emit("click-right")}function j(){a.emit("click-right-text")}const B=()=>{if(!r.leftShow)return null;const E=[];if(a.slots.left)E.push(a.slots.left());else{if(a.slots.leftIcon){const y=t.h("view",{class:"left-icon",onClick:I},[a.slots.leftIcon()]);E.push(y)}else if(r.leftIcon){const y=t.h("view",{class:"left-icon",onClick:I},[t.h(r.leftIcon)]);E.push(y)}if(r.leftText){const y=t.h("view",{class:"left-text",onClick:I},[r.leftText]);E.push(y)}}return E.length===0?null:t.h("view",{class:"fox-header-bar__left"},E)},_=()=>{if(!r.rightShow)return null;const E=[];if(a.slots.right)E.push(a.slots.right());else{if(r.rightText){const y=t.h("view",{class:"right-text",onClick:j},[r.rightText]);E.push(y)}if(a.slots.rightIcon){const y=t.h("view",{class:"right-icon",onClick:q},[a.slots.rightIcon()]);E.push(y)}else if(r.rightIcon){const y=t.h("view",{class:"right-icon",onClick:q},[t.h(r.rightIcon)]);E.push(y)}}return E.length===0?null:t.h("view",{class:"fox-header-bar__right"},E)},L=()=>{if(!r.titleShow)return null;const E=[],y=a.slots.default?a.slots.default():null;if(y)E.push(y);else{if(r.title){const P=t.h("view",{class:"title-text"},[r.title]);E.push(P)}if(a.slots.titleIcon){const P=t.h("view",{class:"title-icon",onClick:C},[a.slots.titleIcon()]);E.push(P)}else if(r.titleIcon){const P=t.h("view",{class:"title-icon",onClick:C},[t.h(r.titleIcon)]);E.push(P)}}return E.length===0?null:t.h("view",{class:"fox-header-bar__title"},E)},x=()=>{const E=[],y=a.slots.bottom?a.slots.bottom():null;return y&&E.push(y),E.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},E)};return()=>{if(!D.value)return null;const E=[];if(a.slots.all)E.push(a.slots.all());else{const P=[],J=B();J&&P.push(J);const A=L();A&&P.push(A);const $=_();if($&&P.push($),P.length>0){const M=t.h("view",{class:d.value},P);E.push(M)}const F=x();F&&E.push(F)}if(E.length===0)return null;const y={class:c.value,style:h.value,ref:w};return t.h("view",y,E)}}}),{componentName:Pa,create:ja,scope:za}=se("header-bar"),An=ja(qa(Pa,za,Ce.ArrowLeft));function Ha(e,n,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(l,r){const a=Ge(),i=a?Wt(a):null,u=t.computed(()=>{const p=e;return{[p]:!0,[`${p}--${l.align}`]:!0,[`${p}--border`]:l.border,[`${p}--fixed`]:l.fixed,[`${p}--safe-area-inset-bottom`]:l.safeAreaInsetBottom}}),s=l.height!==null&&l.height!==void 0?he(l.height):null,c=t.computed(()=>{const p={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const f=ze(l.padding??i.footerPadding);return Object.assign(p,f),s&&(i.footerHeight=s),i.footerHeight>0&&(p.height=i.footerHeight),p.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,p.safeAreaBottom>0&&(p.bottom=p.safeAreaBottom+(f.bottom??0),p.height&&p.height>0&&(p.height=p.height+p.safeAreaBottom)),p}if(s&&(p.height=s),l.padding){const f=ze(l.padding);Object.assign(p,f)}return p}),d=t.ref(null),g=()=>{if(i&&d.value&&!_t(d.value)){if(!o){const p=Zt(d.value);i.footerAllHeight=p.height}return i.footerMounted=!0,!0}return!1};let b=null;t.onMounted(()=>{i&&(Ht(g,50,5,50,!0),window.ResizeObserver&&(b=new window.ResizeObserver(()=>{g()}),b.observe(d.value)))}),t.onUnmounted(()=>{i&&(i.footerMounted=!1,b&&(b.disconnect(),b=null))});const w=t.computed(()=>{const p={};return c.value.height!==null&&c.value.height!==void 0&&(p.height=ke(c.value.height)),c.value.top!==null&&c.value.top!==void 0&&(p.paddingTop=ke(c.value.top)),c.value.left!==null&&c.value.left!==void 0&&(p.paddingLeft=ke(c.value.left)),c.value.right!==null&&c.value.right!==void 0&&(p.paddingRight=ke(c.value.right)),c.value.bottom!==null&&c.value.bottom!==void 0&&(p.paddingBottom=ke(c.value.bottom)),p});return()=>{const p=r.slots.default?r.slots.default():[],f={ref:d,class:u.value,style:w.value};return t.h("view",f,p)}}}}const{componentName:Ka,create:Wa,scope:wh}=se("footer-bar"),Ln=Wa(Ha(Ka));function Ya(e,n){return{props:{padding:{type:[Object],required:!1}},setup(o){const l=Ge(),r=t.computed(()=>({[e]:!0})),a=l?Wt(l):null,i=t.computed(()=>{const c={};if(l&&a){if(o.padding){const w=ze(o.padding);Object.assign(a.contentPadding,w)}const d=Ct(l,a),g=Et(l,a);let b="";if(a.contentHeight?b=`${a.contentHeight}`:b=`${a.height}px`,a.contentPadding,c.height=b,a.contentPadding.top||d>0){const w=(a&&a.contentPadding&&a.contentPadding.top)??0;c.paddingTop=`${d+w}px`}if(a.contentPadding.bottom||g>0){const w=(a&&a.contentPadding&&a.contentPadding.bottom)??0;c.paddingBottom=`${g+w}px`}return a.contentPadding.left&&(c.paddingLeft=`${a.contentPadding.left}px`),a.contentPadding.right&&(c.paddingRight=`${a.contentPadding.right}px`),c}if(o.padding){const d=ze(o.padding);d.left&&(c.paddingLeft=`${d.left}px`),d.top&&(c.paddingTop=`${d.top}px`),d.right&&(c.paddingRight=`${d.right}px`),d.bottom&&(c.paddingBottom=`${d.bottom}px`)}return c}),u=t.ref(null),s=()=>{if(a&&u.value){const c=Rn(u.value);a.contentInnerHeight=c.height,a.contentInnerWidth=c.width}};return t.onMounted(()=>{s()}),l&&a&&t.watch([()=>Ct(l),()=>Et(l)],([])=>{s()}),{contentRef:u,classes:r,styles:i}}}}const{componentName:Ga,create:Ua,scope:Sh}=se("content"),Xa=Ua(Ya(Ga));function Za(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("div",{ref:"contentRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const _e=(e,n)=>{const o=e.__vccOpts||e;for(const[l,r]of n)o[l]=r;return o},Mn=_e(Xa,[["render",Za]]),ft="GroupStateKey",Eo=Symbol.for("GroupScopeKey");function Jt(){return t.inject(Eo,!1)}function Qt(e=!0){t.provide(Eo,e)}function Ja(e,n={}){Reflect.ownKeys(n).forEach(l=>{if(typeof l!="string")return;const r=n[l];Nn(r)||(e[l]=r)})}function Qa(e,n={}){const l={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Ja(l,n);const r=t.shallowRef(l),a=t.markRaw({layout:r,passport:0,order:{index:0}});return e.set(ft,a),a}function Bn(e,n,o=-1,l=-1,r=!1,a,i,u){const s=e.get(ft);if(!s)return;const c=e.get("groupLayout")??{};o===-1&&(o=c.column??1),l===-1&&(l=c.gutter??0),a||(a=c.minItemWidth??-1),i||(i=c.maxItemWidth??-1);const d=he(a),g=he(i);u||(u=c.type??"grid");const b=()=>{const w=n===""||n===-1,p=he(n);let f=Se(o);const h=he(l);if(!w){let C=(p-(f-1)*h)/f;for(;g!==-1&&C>g;)f++,C=(p-(f-1)*h)/f;for(;d!==-1&&f>1&&C<d;)f--,C=(p-(f-1)*h)/f}let D=!1;const I=s.layout;I.value.width=n,I.value.column!==f&&(I.value.column=f,D=!0),I.value.gutter!==h&&(I.value.gutter=h,D=!0),I.value.type!==u&&(I.value.type=u,D=!0),D&&t.triggerRef(I)};if(r)b();else{const w=++s.passport;setTimeout(()=>{w===s.passport&&b()},50)}}function en(e,n=!1){let o;return n?o=e.getForParent(ft):o=e.get(ft),o.layout}function tn(e,n=!1){let o;return n?o=e.getForParent(ft):o=e.get(ft),o.order}function No(e,n=1){if(n==="stretch")return-1;const o=Se(n);return o===-1?100:100*o/e}function nn(e,n,o=1,l=0,r){const a={};let i=0;r?i=he(r):i=No(n.column,o),i>0&&(a.width=`${i}%`);const u=No(n.column,l);u>0&&(a["margin-left"]=`${u}%`);const s=n.gutter/2;return s>0&&(a["padding-left"]=`${s}px`,a["padding-right"]=`${s}px`),a}function ln(e,n,o=1,l=0){if(o==="stretch"){const s=e.index%n.column,c=s+(n.column-s);return e.index=e.index+(c-s),{"grid-column":`${s+1} / -1`}}let r=Se(o);if(r===-1){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}if(r>n.column){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}const a=Se(l)%n.column;let i=(e.index+a)%n.column,u=i+r;return u>n.column?(i=0,u=i+r,e.index=e.index+(n.column-i)+r):e.index=e.index+a+r,a>0?{"grid-column":`${i+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}const ko=Symbol("RollingStateKey");function ei(e){t.provide(ko,e)}function ti(){return t.inject(ko,null)}function _n(e){let n=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"));n=e.clientHeight-r-a}else n=e.offsetHeight;return n}function ni(e){let n=_n(e);if(n<=0){const o=e.cloneNode(!0),l=e.offsetWidth;o.style=`width: ${l}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),n=_n(o),document.body.removeChild(o)}return n}function li(e,n,o){if(e<=0)return"1fr";const l=(e-(n-1)*o)/n;return l>0?`${l}px`:"1fr"}const oi={...xe,...To,...$o};function ri(e,n,o){return{props:oi,emits:["update:collapse","header-click"],setup(l,r){const a=On(l.prop??l.name,l,Co),i=Qa(a,{type:l.type}),u=Jt();Qt(!0);const s=l.rollingDisplay?ti():null,c=t.ref(null),d=t.computed(()=>l.rollingDisplay?s&&!s.disabled:!1),g=t.computed(()=>u&&a?en(a,!0).value:null),b=t.getCurrentInstance(),w=(N,H=!1)=>{const X=b?.proxy;X&&typeof X.setNameValidateRules=="function"&&X.setNameValidateRules(N,!0,H)};t.watch([()=>l.rules,()=>l.pureDataRules],([N,H],[X,k])=>{if(N&&X){const K=t.toRaw(X),te=t.toRaw(N),oe=te?Reflect.ownKeys(te):[];(K?Reflect.ownKeys(K):[]).forEach(ie=>{oe.includes(ie)||(te[ie]=[])}),w(te)}if(H&&k){const K=t.toRaw(k),te=t.toRaw(H),oe=te?Reflect.ownKeys(te):[];(K?Reflect.ownKeys(K):[]).forEach(ie=>{oe.includes(ie)||(te[ie]=[])}),w(te,!0)}},{deep:!0});const p=e,f=t.computed(()=>{const N={};N.height=$.value;const H=u?tn(a,!0):null;if(g.value&&H){if(g.value.type==="grid"){const X=ln(H,g.value,l.span,l.offset);Object.assign(N,X)}else if(g.value.type==="flow"){const X=nn(H,g.value,l.span,l.offset,l.width);Object.assign(N,X)}}else if(l.width){const X=ke(l.width);N.width=X}return N}),h=t.computed(()=>{const N=i.layout.value.type;return N==="grid"||N==="flow"?{[`${p}--${N}`]:!0,[`${p}--${N}-justify-${l.justify}`]:!0,[`${p}--${N}-align-${l.align}`]:!0,[`${p}--gutter`]:!0}:{[`${p}--${N}`]:!0,[`${p}--gutter`]:!0}}),D=t.computed(()=>{if(i.layout.value.type==="grid"){let H="";if(l.columnWidth)H=`repeat(auto-fill, ${l.columnWidth})`;else{const X=li(L.value,i.layout.value.column,i.layout.value.gutter);H=`repeat(${i.layout.value.column}, ${X})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":H}}}),I=t.toRef(l,"gutter"),C=t.toRef(l,"column"),q=t.computed(()=>u||d.value?!0:ue(l.isWrap)),j=[],B=N=>{j.push(N)},_=()=>{let N=j.length;j.splice(0,N)},L=t.ref(-1),x=N=>{const H=Rn(N).width;H>0&&H!==L.value&&(L.value=H)};Bn(a,L.value,C.value,I.value,!0,l.minItemWidth,l.maxItemWidth,l.type),l.autoLayout&&t.watch([L,C,I],([N,H,X])=>{i.order.index=0,Bn(a,N,H,X,!1,l.minItemWidth,l.maxItemWidth,l.type)});const E=t.computed(()=>F.value?l.expandText??"":l.collapseText??""),y=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),P=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!F.value,"is-collapse":F.value})),J=t.ref(),A=t.ref(),$=t.computed(()=>M.value||ke(l.height)||""),F=t.ref(!1),M=t.ref(""),Y=t.ref(!1);let Z=-1;const ee=(N,H=!0)=>{const X=J.value;if(X&&F.value!==N){if(Z=Z===-1?ni(X):Z,Y.value=!0,H)if(X.style["will-change"]="height",X.ontransitionend=function(){X.ontransitionend=null,this.style["will-change"]="auto",N||(M.value="",Y.value=!1)},N){let k=0;l.collapseHeight?k=l.collapseHeight:A.value&&A.value.classList.contains(`${e}__header`)&&(k=A.value.offsetHeight),M.value=`${Z}px`,t.nextTick(()=>{M.value=`${k}px`})}else M.value=`${Z}px`;else if(N){let k=0;l.collapseHeight?k=l.collapseHeight:A.value&&A.value.classList.contains(`${e}__header`)&&(k=A.value.offsetHeight),M.value=`${k}px`}else Y.value=!1,M.value=`${Z}px`;F.value=N,r.emit("update:collapse",N)}};t.watch(()=>l.collapse,N=>{ee(N)});const le=N=>{r.emit("header-click",N)},O=()=>{T()},T=N=>{N=N??!F.value,ee(N)};we({toggleCollapse:T,doLayout:()=>{j[0]&&(x(j[0]),Bn(a,L.value,C.value,I.value,!0,l.minItemWidth,l.maxItemWidth,l.type))}});let V=null,S=!0;const z=N=>{if(l.rules){const H=t.toRaw(l.rules);w(H)}if(l.pureDataRules){const H=t.toRaw(l.pureDataRules);w(H,!0)}if(ot&&(N&&ee(ue(l.collapse),!1),l.autoLayout&&Array.isArray(j)&&j.length>0)){const H=j[0];x(H),window.ResizeObserver&&(V=new window.ResizeObserver(()=>{x(H)}),V.observe(H))}},U=()=>{V?.disconnect(),V=null},ne=!d.value||s?.acquire();ne&&(c.value=d.value?!0:null),t.onMounted(()=>{if(ne&&(z(S),S=!1),d.value&&s){let N=null,H=s.initialHeight;s.observe(J.value,X=>{if(X!==c.value)if(X)c.value=!0,F.value||(M.value=""),N=setTimeout(()=>{N=null,c.value!==!1&&(z(S),S=!1)},100);else{if(N!==null&&clearTimeout(N),c.value=!1,!F.value)if(S)M.value=s.initialHeight;else{let k=_n(J.value);k<=0?M.value=H:(M.value=`${k}px`,H=M.value)}S||U()}})}}),t.onUnmounted(()=>{V?.disconnect(),s&&s.unobserve(J.value)});const G=(N="right")=>{const H=[];if(E.value){const K={class:y.value},te=t.h("span",K,[E.value]);H.push(te)}const X={class:P.value},k=o(l.collapseIcon,X);return k&&H.push(k),H.length>0?t.h("div",{class:{[`${p}__header-collapse`]:!0,[`is-${N}`]:!0},onClick:O},H):null},W=(N,H,X,k)=>{const K={...h.value};return H===0&&(K[`${p}__first`]=!0),X>=k-1&&(K[`${p}__last`]=!0),t.h("div",{ref:B,key:`${H}`,class:K,style:D.value},N)};return()=>{if(d.value&&c.value!==!0){const K=l.tag||"div";return t.h(K,{ref:J,prop:l.name,class:{[`${p}`]:!0,"is-collapse":Y.value},style:f.value},[])}i.order.index=0;const N=[];let H=0;if(r.slots.header){const K={key:`${H++}`,ref:A,class:{[`${p}__header`]:!0,[`${p}__first`]:!0},onClick:le},te=t.h("div",K,[r.slots.header()]);N.push(te)}else{const K=[],te=l.collapsePosition==="left";if(te&&l.showCollapse){const oe=G("left");oe&&K.push(oe)}if(l.title||r.slots.title){if(l.showMark){const oe={class:{[`${p}__header-mark`]:!0}};l.markColor&&(oe.style={background:l.markColor});const ce=t.h("div",oe);K.push(ce)}if(r.slots.title){const oe=t.h("div",{class:{[`${p}__header-title`]:!0}},[r.slots.title()]);K.push(oe)}else if(l.title){const oe=t.h("div",{class:{[`${p}__header-title`]:!0}},[l.title]);K.push(oe)}}if(r.slots.toolbar&&K.push(r.slots.toolbar()),!te&&l.showCollapse){const oe=G("right");oe&&K.push(oe)}if(K.length>0){const oe={key:`${H++}`,ref:A,class:{[`${p}__header`]:!0,[`${p}__first`]:!0},onClick:le},ce=t.h("div",oe,K);N.push(ce)}}_();const X=r.slots.default?r.slots.default():[],k=i.layout.value.type;if(k==="grid"){const K=W(X,H++,0,X.length);N.push(K)}else if(k==="flow"){const K=W(X,H++,0,X.length);N.push(K)}else for(let K=0;K<X.length;K++){const te=X[K],oe=W([te],H++,K,X.length);N.push(oe)}if(q.value){const K=l.tag||"div";return t.h(K,{ref:J,prop:l.name,class:{[`${p}`]:!0,"is-collapse":Y.value},style:f.value},[N])}else return N}}}}const{componentName:ai,create:ii,scope:si}=se("group"),qn=ii(ri(ai,si,(e,n)=>(e=e??Ce.ArrowUp,t.h(v.ElIcon,n,{default:()=>[t.h(e)]}))));function ui(e){return e===window}const ci=/matrix\((.+)\)/,Io=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(ui(n))return{x:0,y:0};let o=0,l=0,r=n;for(;r!==null;)o+=r.offsetLeft,l+=r.offsetTop,r=r.offsetParent;let a=0,i=0,u=0,s=0;for(r=n;r!==document;){i+=r.scrollTop,a+=r.scrollLeft;const{transform:c}=window.getComputedStyle(r);if(c){const d=ci.exec(c);if(d){let b=d[1].split(/\s*,\s*/);b.length==6&&(u+=Number(b[4]),s+=Number(b[5]))}}r=r.parentNode}return o-=a,l-=i,o+=u,l+=s,{x:o,y:l}};class fi{watchedListeners=[];add(n){this.watchedListeners.push(n)}remove(n){const o=this.watchedListeners.indexOf(n);o!==-1&&this.watchedListeners.splice(o,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(n=>{try{n()}catch{}})}}class di{monitorRegister=new WeakMap;watch(n,o){let l=n.parentNode;const r=document.body.parentNode;for(;l&&l!==r;){let a=this.monitorRegister.get(l);a||(a=new fi,l.addEventListener("scroll",a.listen),l===document.body&&l.addEventListener("resize",a.listen),this.monitorRegister.set(l,a)),a.add(o),l=l.parentNode}}unwatch(n,o){let l=n.parentNode;const r=document.body.parentNode;for(;l&&l!==r;){let a=this.monitorRegister.get(l);a&&(a.remove(o),a.size()===0&&(this.monitorRegister.delete(l),l.removeEventListener("scroll",a.listen),l===document.body&&l.removeEventListener("resize",a.listen))),l=l.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}=se("price"),mi=gi({props:{...Vo},setup(e){const n=t.computed(()=>({[hi]:!0})),o=t.computed(()=>e.needSymbol?e.symbol:""),l=t.computed(()=>wt(e.price)==0?"":Lt(e.price,e.decimalLength,!0,Se(e.digits),e.separator)),r=t.computed(()=>{let i=l.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(0,u)}),a=t.computed(()=>{let i=l.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(u+1)});return{classes:n,showSymbol:o,intText:r,decimalText:a}}}),pi=["innerHTML"],yi=["innerHTML"];function bi(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,pi)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--${e.size}`)},t.toDisplayString(e.intText),3),e.decimalText.length!=0?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--decimal-${e.size}`)},t.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,yi)):t.createCommentVNode("",!0)],2)}const on=_e(mi,[["render",bi]]),{componentName:Pn,create:vi}=se("hint-text"),wi=vi({components:{Price:on},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,n){const o=t.ref({top:null,right:null,bottom:null,left:null}),l=t.ref({x:0,y:0}),r=t.ref(0),a=t.ref(0),i=t.ref(e.placement),u=t.ref(!1),s=t.ref(null),c=(y,P,J,A,$,F)=>{const M=document.documentElement.clientWidth||document.body.clientWidth,Y=document.documentElement.clientHeight||document.body.clientHeight,Z=y.split("-");let ee=[];Z[0]==="top"?ee=["top","bottom","right","left"]:Z[0]==="bottom"?ee=["bottom","top","right","left"]:Z[0]==="left"?ee=["left","top","bottom","right"]:Z[0]==="right"&&(ee=["right","top","bottom","left"]);const le={top:null,right:null,bottom:null,left:null},O=[];for(let T=0;T<ee.length;T++){const R=ee[T];if(O[0]=R,Z[1]&&(O[1]=Z[1]),R==="top"){const V=P.y-F-e.arrowSize-e.offset;if(V>=0){le.top=V;let S=0;Z[1]==="start"?S=P.x:Z[1]==="end"?S=P.x+J-$:S=P.x+J/2-$/2;const z=M-S-$;z<0?(S+=z,g.value=-z):g.value=0,le.left=S<0?0:S;break}}else if(R==="bottom"){const V=P.y+A+e.arrowSize+e.offset;if(V+F<=Y){le.top=V;let S=0;Z[1]==="start"?S=P.x:Z[1]==="end"?S=P.x+J-$:S=P.x+J/2-$/2;const z=M-S-$;z<0?(S+=z,g.value=-z):g.value=0,le.left=S<0?0:S;break}}else if(R==="left"){const V=P.x-$-e.arrowSize-e.offset;if(V>=0){le.left=V;let S=0;Z[1]==="start"?S=P.y:Z[1]==="end"?S=P.y+A-F:S=P.y+A/2-F/2,le.top=S<0?0:S;break}}else if(R==="right"){const V=P.x+J+e.arrowSize+e.offset;if(V+$<=M){le.left=V;let S=0;Z[1]==="start"?S=P.y:Z[1]==="end"?S=P.y+A-F:S=P.y+A/2-F/2,le.top=S<0?0:S;break}}}return{bestPlacement:O.join("-"),bestInsetRect:le}},d=(y,P,J=10)=>{if(!ot||P===!1||!y)return;l.value=Io(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const A=s.value.offsetHeight,$=s.value.offsetWidth,{bestPlacement:F,bestInsetRect:M}=c(e.placement,l.value,r.value,a.value,$,A);i.value=F,o.value=M,u.value=!0},g=t.ref(0),b=$t(()=>{d(e.message,e.visible)},10),w=t.ref(e.visible);t.watch(()=>e.visible,y=>{w.value=y});const p=t.computed(()=>w.value&&f.value),f=t.ref(!0),h=$t(y=>{const P=y[0];P&&(f.value=P.isIntersecting)},10),D=new IntersectionObserver(h);t.watch([()=>e.message,()=>e.visible],([y,P])=>{setTimeout(()=>{d(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{d(e.message,e.visible)},0),Oo.watch(e.reference,b),D.observe(e.reference)}),t.onBeforeMount(()=>{Oo.unwatch(e.reference,b),D.unobserve(e.reference),D.disconnect()});const I=t.computed(()=>{const y={[Pn]:!0};return i.value.startsWith("top")?y["is-top"]=!0:i.value.startsWith("right")?y["is-right"]=!0:i.value.startsWith("bottom")?y["is-bottom"]=!0:i.value.startsWith("right")&&(y["is-right"]=!0),e.size==="small"?y["is-small"]=!0:e.size==="large"&&(y["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(y[`${e.customClass}`]=!0),y}),C=t.computed(()=>{const y={};o.value.top!==null&&(y.top=`${o.value.top}px`),o.value.right!==null&&(y.right=`${o.value.right}px`),o.value.bottom!==null&&(y.bottom=`${o.value.bottom}px`),o.value.left!==null&&(y.left=`${o.value.left}px`),e.autoFit&&(y["min-width"]=`${r.value}px`);const P=document.documentElement.clientWidth||document.body.clientWidth;return y["max-width"]=`${P}px`,u.value&&(y.opacity="1"),e.transition||(y.transition="none"),e.zIndex&&(y["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(y,e.customStyle),y}),q=t.computed(()=>{const y=[`${Pn}__content`];return e.customTextClass&&y.push(e.customTextClass),y}),j=t.computed(()=>{const y={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(y,e.customTextStyle),y}),B=t.computed(()=>({[`${Pn}__arrow`]:!0})),_=t.computed(()=>{const y={};return e.showArrow?(y.width=`${e.arrowSize}px`,y.height=`${e.arrowSize}px`,i.value==="top"?(y.left="50%",y.bottom=`-${e.arrowSize}px`,y.transform=" translate(-50%, 0%)"):i.value==="top-start"?(y.left=`${e.arrowOffset+g.value}px`,y.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(y.right=`${e.arrowOffset-g.value}px`,y.bottom=`-${e.arrowSize}px`):i.value==="right"?(y.left=`-${e.arrowSize}px`,y.top="50%",y.transform=" translate(0%, -50%)"):i.value==="right-start"?(y.left=`-${e.arrowSize}px`,y.top=`${e.arrowOffset}px`):i.value==="right-end"?(y.left=`-${e.arrowSize}px`,y.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(y.left="50%",y.top=`-${e.arrowSize}px`,y.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(y.left=`${e.arrowOffset+g.value}px`,y.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(y.right=`${e.arrowOffset-g.value}px`,y.top=`-${e.arrowSize}px`):i.value==="left"?(y.right=`-${e.arrowSize}px`,y.top="50%",y.transform=" translate(0%, -50%)"):i.value==="left-start"?(y.right=`-${e.arrowSize}px`,y.top=`${e.arrowOffset}px`):i.value==="left-end"&&(y.right=`-${e.arrowSize}px`,y.bottom=`-${e.arrowOffset}px`),y):{display:"none"}}),L=t.computed(()=>p.value&&e.closeOnClick),x=t.computed(()=>{const y={};return e.zIndex&&(y["z-index"]=`${e.zIndex}`),y});return{show:p,tipRef:s,classes:I,styles:C,textClasses:q,textStyles:j,arrowClasses:B,arrowStyles:_,overlayShow:L,overlayStyle:x,onClickOverlay:()=>{w.value=!1,n.emit("update:visible",!1)}}}}),Si=["innerHTML"];function xi(e,n,o,l,r,a){const i=t.resolveComponent("Price");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.overlayShow?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:t.normalizeStyle(e.overlayStyle),onClick:n[0]||(n[0]=(...u)=>e.onClickOverlay&&e.onClickOverlay(...u))},null,4)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{ref:"tipRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("div",{class:t.normalizeClass(e.textClasses),style:t.normalizeStyle(e.textStyles)},[e.type=="number"?(t.openBlock(),t.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(t.openBlock(),t.createElementBlock("span",{key:1,innerHTML:e.message},null,8,Si))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const Nt=_e(wi,[["render",xi]]);class Do{seed=new Date().getTime();constructor(n){this.seed=n??new Date().getTime()}get(){let n=this.seed++;return this.seed<0&&(this.seed=0),n}}const jn={},Ti=new Do,dt=new Map,rn=e=>{if(e){const n=document.getElementById(e);dt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of dt.keys()){const o=document.getElementById(n);o&&o.parentNode?.removeChild(o)}dt.clear()}},$i=e=>{e.unmount=rn;const n=document.getElementById(e.id);if(n){const o=dt.get(e.id);o?e={...jn,...o,...e}:e={...jn,...e},e.transition=!1;const l=t.createVNode(Nt,e);t.render(l,n)}return e.id},Ci=e=>{e.unmount=rn;let n=e.id??`hinttext_${Ti.get()}`;e={...jn,...e},e.id=n,dt.set(n,e);const o=document.createElement("div");o.id=e.id;const l=t.createVNode(Nt,e);return t.render(l,o),document.body.appendChild(o),n},Ei=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Fe={show(e,n,o={},l=!0){Ei(n);const r=o.id;return r&&dt.has(r)?$i({...o,message:n,reference:e}):(l&&rn(),Ci({...o,message:n,reference:e}))},hide(e){rn(e)},install(e){e.config.globalProperties.$hintText=Fe}};function Ni(e,n,o,l=!1){return{inheritAttrs:!0,props:{...xe,...Ie},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;$e({componentName:e,validate:!1},i);const u=Ge(),s=Jt();Qt(!1);const c=t.computed(()=>s&&u?en(u,!1).value:null),d=e,g=t.ref(null),b=t.computed(()=>{const k={[d]:!0,[`${d}__gutter`]:c.value&&c.value.type!=="flow",[`${d}__stretch`]:r.span==="stretch",[`${d}__input--border`]:ue(r.hasBorder)};if(k[r.errorMarkClass]=!!F.value,k[r.warnMarkClass]=!!A.value,k[r.infoMarkClass]=!!P.value,typeof g.value=="function"){const K=g.value(i);k[K]=!0}else if(typeof g.value=="string"){const K=g.value;k[K]=!0}return k}),w=t.ref(null),p=t.computed(()=>{const k={};if(r.width)r.width!=="auto"&&(k.width=ke(r.width));else{const K=s&&u?tn(u,!1):null;if(c.value&&K){if(c.value.type==="grid"){const te=ln(K,c.value,r.span,r.offset);Object.assign(k,te)}else if(c.value.type==="flow"){const te=nn(K,c.value,r.span,r.offset,r.width);Object.assign(k,te)}}}if(typeof w.value=="function"){const K=w.value(i);K&&Object.assign(k,K)}else if(w.value&&typeof w.value=="object"){const K=w.value;Object.assign(k,K)}return k}),f=t.ref(null),h=t.computed({get:()=>f.value??ue(r.isRequired),set:k=>{f.value=k}}),D=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",I=Oe(t.toRef(r,"labelPosition"),"labelPosition",Me.Near),C=t.computed(()=>I&&I.value==="top"?"top":I&&I.value==="right"?"right":"left"),q=t.computed(()=>({[`${d}__main`]:!0,[`${d}__main--${C.value}`]:!0})),j=t.computed(()=>({label:!0,[`label--${C.value}`]:!0})),B=Oe(t.toRef(r,"labelWidth"),"labelWidth",Me.Near),_=t.computed(()=>B&&B.value?{width:ke(B.value)}:{}),L=t.computed(()=>({"label--string":!0,"label--required":h.value})),x=t.computed(()=>({content:!0,[r.contentClass]:!0})),E=t.computed(()=>({...r.contentStyle})),y=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});we({setRequired(k){h.value=k},setErrorTip(k){y.errorTip=k},setErrorIcon(k){y.errorIcon=k},setWarnTip(k){y.warnTip=k},setWarnIcon(k){y.warnIcon=k},setInfoTip(k){y.infoTip=k},setInfoIcon(k){y.infoIcon=k},setCustomClassName(k){g.value=k},setCustomStyle(k){w.value=k}});const P=t.computed(()=>r.infoTip||y.infoTip),J=t.computed(()=>r.infoIcon||y.infoIcon),A=t.computed(()=>r.warnTip||y.warnTip),$=t.computed(()=>r.warnIcon||y.warnIcon),F=t.computed(()=>r.errorTip||y.errorTip),M=t.computed(()=>r.errorIcon||y.errorIcon),Y=t.computed(()=>F.value?"error":A.value?"warn":P.value?"info":""),Z=()=>Y.value.length>0,ee=t.computed(()=>Y.value==="error"?F.value:Y.value==="warn"?A.value:Y.value==="info"?P.value:""),le=t.computed(()=>Y.value==="error"?M.value:Y.value==="warn"?$.value:Y.value==="info"?J.value:null),O=t.computed(()=>{const k={[`${d}__tip`]:!0,[`${d}__tip--${Y.value}`]:!0,[`${d}--animate`]:!0};return Y.value==="error"&&r.errorClass?k[`${r.errorClass}`]=!0:Y.value==="warn"&&r.warnClass?k[`${r.warnClass}`]=!0:Y.value==="info"&&r.infoClass&&(k[`${r.infoClass}`]=!0),k}),T=t.computed(()=>{const k={};return I&&I.value==="top"||!D()?k["padding-left"]="0px":B&&B.value&&(k["padding-left"]=ke(B.value)),k}),R=t.ref();let V="";t.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([k,K,te,oe])=>{R.value&&(k&&!pe(K)?V?o.show(R.value,K,{...oe,id:V,type:te},!0):V=o.show(R.value,K,{...oe,type:te},!0):o.hide(V))});let S=null;const z=()=>{S||!R.value||(S=new IntersectionObserver(k=>{let K=!1;for(let te of k)if(te.intersectionRatio>0){K=!0,K&&a.emit("appear",te);break}K||a.emit("disappear")}),S.observe(R.value))},U=()=>{!S||!R.value||(S.unobserve(R.value),S=null)};t.watch(()=>ue(r.appearListen),k=>{k?z():U()}),t.onMounted(()=>{ue(r.appearListen)&&z()}),t.onUnmounted(U);const ne=()=>{if(!D())return null;const k=[],K=a.slots?.label?.()??r.label,te={class:L.value},oe=t.h("div",te,[K]);if(k.push(oe),a.slots.fixedPreTip){const ie=a.slots.fixedPreTip();k.push(ie)}const ce={class:j.value,style:_.value};return t.h("div",ce,k)},G=()=>{const k=[];if(a.slots.prepend){const te=a.slots.prepend();k.push(te)}if(a.slots.default){const te=a.slots.default();k.push(te)}if(a.slots.append){const te=a.slots.append();k.push(te)}if(a.slots.fixedTip){const te={class:[`${d}__fixed-tip`]},oe=t.h("div",te,[a.slots.fixedTip()]);k.push(oe)}const K={ref:R,class:x.value,style:E.value};return t.h("div",K,k)},W=()=>{const k=le.value;return k?typeof k=="function"?t.h("div",{class:"fox-item__tip--icon"},[k()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(k)]):null},N=()=>{const k=ee.value;return k?typeof k=="function"?t.h("div",{class:"fox-item__tip--text"},[k()]):t.h("div",{class:"fox-item__tip--text"},[k]):null},H=()=>{if(!Z())return null;const k=[],K=W();K&&k.push(K);const te=N();te&&k.push(te);const oe={class:O.value,style:T.value};return t.h("div",oe,k)},X=()=>a.slots?.hide?.()??null;return()=>{const k=[],K=[],te=ne();te&&K.push(te);const oe=G();oe&&K.push(oe);const ce={class:q.value},ie=t.h("div",ce,K);k.push(ie);const Q=H();Q&&k.push(Q);const re=X();re&&k.push(re);const ae={class:b.value,style:p.value,prop:r.prop};return t.h("div",ae,k)}}}}const{componentName:ki,create:Ii,scope:Oi}=se("item"),Te=Ii(Ni(ki,Oi,Fe,!1));function Vi(e,n){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(o,l){const r=Ge(),a=Jt();Qt(!1);const i=t.computed(()=>a&&r?en(r,!1).value:null),u=e,s=t.computed(()=>({[u]:!0,[`${u}__gutter`]:i.value&&i.value.type!=="flow",[`${u}__stretch`]:o.span==="stretch"})),c=t.computed(()=>{const d={},g=a&&r?tn(r,!1):null;if(i.value&&g)if(i.value.type==="grid"){const b=ln(g,i.value,o.span,o.offset);Object.assign(d,b)}else if(i.value.type==="flow"){const b=nn(g,i.value,o.span,o.offset,o.width);Object.assign(d,b)}else return o.width&&(d.width=ke(o.width)),d;else o.width&&(d.width=ke(o.width));return d});return()=>{const d={class:s.value,style:c.value};return l.slots&&typeof l.slots.default=="function"?t.h("div",d,l.slots.default()):t.h("div",d)}}}}const{componentName:Di,create:Fi,scope:Th}=se("slot-item"),zn=Fi(Vi(Di));function Ri(e,n){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,l){const r=e,a=t.computed(()=>({[r]:!0,[`${r}__stretch`]:o.span==="stretch",[`${r}__${o.align}`]:!0})),i=Ge(),u=Jt();Qt(!1);const s=t.computed(()=>{const c={};if(u&&i){const d=en(i,!1),g=tn(i,!1);if(d.value&&g)if(d.value.type==="grid"){const b=ln(g,d.value,o.span,o.offset);Object.assign(c,b)}else if(d.value.type==="flow"){const b=nn(g,d.value,o.span,o.offset,o.width);Object.assign(c,b)}else o.width&&(c.width=ke(o.width))}else o.width&&(c.width=ke(o.width));return c});return()=>{const c=[];if(l.slots.default){const g=l.slots.default();if(o.divide)for(let b=0;b<g.length;b++){if(b>0){const w=t.h("div",{class:{[`${r}__divide`]:!0}});c.push(w)}c.push(g[b])}else Reflect.apply([].push,c,g)}const d={class:a.value,style:s.value};return t.h("div",d,c)}}}}const{componentName:Ai,create:Li,scope:$h}=se("row-item"),Hn=Li(Ri(Ai)),He=(e={})=>{if(!e)return{};const n={};return Reflect.ownKeys(e).forEach(l=>{typeof l=="string"&&l.indexOf("data-fox")!==0&&(n[l]=e[l])}),n},Fo={modelValue:{type:[String,Boolean,Number,Object],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!1}};function Mi(e,n,o){return{props:{...xe,...Ie,...Fo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=Le.useFoxI18n(n),g=d(l,["placeholder"]),b=t.ref(!1),w=ge(l,"modelValue",null,c),p=e,f=t.computed(()=>({[p]:!0,[`${p}__disabled`]:i.value,[`${p}__readonly`]:s.value})),h=$=>{w.value=$,c("update:modelValue",$),c("input",$)},D=$=>{c("change",$)};let I=ge(l,"hintText"),C=t.ref(!1);const q=$=>{let M=$.target.value;b.value=!0,pe(I.value)||(C.value=!0),c("focus",M,$)},j=$=>{setTimeout(()=>{C.value&&(C.value=!1),b.value=!1},0);let M=$.target.value;l.maxLength&&M.length>Number(l.maxLength)&&(M=M.slice(0,Number(l.maxLength))),c("blur",M,$)},B=()=>{c("clear","")},_=t.ref(!1);let L=null;const x=()=>{l.showTooltip&&_.value===!1&&(L&&clearTimeout(L),L=setTimeout(()=>{_.value=!0},150))},E=()=>{L&&(clearTimeout(L),_.value=!1,L=null)},y=t.computed(()=>_.value||C.value),P=t.computed(()=>_.value?w.value:I.value),J=t.computed(()=>wt(l.unit)>0),A=t.ref();return we({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()},select:()=>{A?.value.select()},setDisabled:$=>{a.value=$},setReadonly:$=>{u.value=$}}),()=>{const F={...He(r.attrs),ref:A,class:f.value,placeholder:g.placeholder.value,clearable:l.clearable,disabled:i.value,readonly:s.value,modelValue:w.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:B,onChange:D,onInput:h,onFocus:q,onBlur:j,onMouseover:x,onMouseleave:E},M={};r.slots.prepend&&(M.prepend=r.slots.prepend),r.slots.append&&(M.append=r.slots.append),r.slots.prefix&&(M.prefix=r.slots.prefix),r.slots.suffix?M.suffix=r.slots.suffix:J.value&&(M.suffix=()=>[l.unit]);const Y=[],Z=t.h(v.ElInput,F,M);Y.push(Z);const ee={default:()=>Y};r.slots.default&&(ee.label=r.slots.default),r.slots.default&&(ee.fixedTip=r.slots.fixedTip);const O={...Ne(l,Fo),hintText:P.value,hintVisible:y.value};return l.prop&&(O.prop=`${l.prop}_item`),t.h(o,O,ee)}}}}const{componentName:Bi,create:_i,scope:qi}=se("input-item"),Kn=_i(Mi(Bi,qi,Te));function et(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function kt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Ro(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}function Pi(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let ji=class{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const r=Pe(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(We(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await r(o,l))}};function zi(){const e=t.getCurrentInstance();return new ji(e.proxy)}function Ao(e,n,o){const l=et(e,n),r=et(e,o);if(l!==r)return!1;const a=kt(e,n),i=kt(e,o);return a===i}function Lo(e,n,o,l){if(l.length===0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const r=[];return n.forEach(a=>{for(let i of l){const u=Ro(e,i);if(Array.isArray(u)&&u.length>0){const s=Lo(e,a,o,u)??[];Reflect.apply([].push,r,s)}else{let s=!1;if(o==="text")s=et(e,i)===a;else if(o==="item")s=Ao(e,i,a);else{let c=kt(e,i);c==null&&(c=et(e,i)),s=c===a}if(s){r.push(i);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,n,o){return{props:{...xe,...Ie,...Mo},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=Le.useFoxI18n(n),g=d(l,["placeholder"]),b=t.ref(null),w=t.ref([]),p=t.computed(()=>w.value?w.value.map(H=>et(l,H)).join(" "):""),f=(N,H,X,k=!0)=>{const K=Lo(l,N,H,X);if(K===null){if(w.value===null||w.value.length===0)return;b.value=null,w.value=[],k&&(c("update:modelValue",null),c("update:text",null),c("change",null));return}let te=!0;if(K.length!==w.value.length)te=!1;else for(let oe=0;oe<K.length;oe++){const ce=K[oe],ie=w.value[oe];if(!Ao(l,ce,ie)){te=!1;break}}if(!te){w.value=K;let oe=[],ce=[],ie=[];K.forEach(fe=>{const ye=kt(l,fe),me=et(l,fe);oe.push(ye),ie.push(me),l.valueType==="text"?ce.push(me):l.valueType==="item"?ce.push(fe):ce.push(ye)});let Q,re,ae;ue(l.multiple)?(b.value=oe,Q=t.toRaw(ce),re=ie,ae=t.toRaw(K)):(b.value=oe[0]??"",Q=t.toRaw(ce[0]??""),re=ie[0]??"",ae=t.toRaw(K[0])),k&&(c("update:modelValue",Q),c("change",Q,ae)),c("update:text",re)}},h=t.ref(null),D=t.ref(null),I=t.computed(()=>D.value??h.value??[]),C=Oe(t.computed(()=>l.appearLoad),"appearLoad",Me.Near,N=>ue(N)),q=zi(),j=async(N,H)=>{if(N){const X=await q.load("select",N,H);if(X.length>0)if(typeof X[0]=="string"){let te=X.map(oe=>Hi(oe));h.value=te}else h.value=X;else h.value=null}};t.watch([()=>l.source,()=>l.params],([N,H])=>{D.value=null,j(N,H)},{immediate:!C.value});let B=!1;const _=()=>{B||(B=!0,j(l.source,l.params))};t.watch([()=>h.value,()=>l.modelValue],([N,H])=>{if(y()&&ue(l.multiple)){Ye(H,b.value)||(b.value=H);return}f(H,l.valueType,I.value,!1),c("setValue",H)});let L=null,x=t.ref(!1);typeof l.remoteMethod=="function"&&(L=async N=>{if(N==null){D.value=null;return}x.value=!0;try{const H=await l.remoteMethod(N);H&&(D.value=H)}catch(H){D.value=null,console.error(H)}x.value=!1});let E=null;typeof l.filterMethod=="function"&&(E=async N=>{if(N==null){D.value=null;return}x.value=!0;try{const H=await l.filterMethod(N,h.value);H&&(D.value=H)}catch(H){D.value=null,console.error(H)}x.value=!1});const y=()=>typeof l.remoteMethod=="function"||typeof l.filterMethod=="function",P=t.ref(!1),J=e,A=t.computed(()=>({[J]:!0})),$=N=>{l.allowCreate||y()&&ue(l.multiple)?(c("update:modelValue",N),c("change",N),c("update:text",N),b.value=N):f(N,"value",I.value,!0)};let F=ge(l,"hintText"),M=t.ref(!1);const Y=N=>{let X=N.target.value;P.value=!0,pe(F.value)||(M.value=!0),c("focus",X,N)},Z=N=>{setTimeout(()=>{M.value&&(M.value=!1),P.value=!1},0);let X=N.target.value;l.maxLength&&X.length>Number(l.maxLength)&&(X=X.slice(0,Number(l.maxLength))),z.value||c("blur",X,N)},ee=()=>{c("clear","")},le=t.ref(!1);let O=null;const T=()=>{l.showTooltip&&le.value===!1&&(O&&clearTimeout(O),O=setTimeout(()=>{le.value=!0},150))},R=()=>{O&&(clearTimeout(O),le.value=!1,O=null)},V=t.computed(()=>le.value||M.value),S=t.computed(()=>le.value?p.value:F.value),z=t.ref(!1),U=N=>{z.value=N,c("visible-change",N),N||c("selected")},ne=N=>{c("remove-tag",N)},G=(N,H)=>{const X=[];return N.forEach((k,K)=>{const te=Ro(l,k);if(Array.isArray(te)&&te.length>0){const oe=G(te,H),ce=et(l,k),Q={key:`${ce}_${K}`,label:ce};X.push(t.h(v.ElOptionGroup,Q,{default:()=>oe}))}else{const oe=kt(l,k),ce=et(l,k),ie=Pi(l,k),re={key:`${oe}_${K}`,label:ce,disabled:ie,value:oe};if(typeof H=="function")X.push(t.h(v.ElOption,re,{default:()=>H(k)}));else if(l.optionType==="item"){const ae={class:{"fox-select-item__option-left":!0}},fe=t.h("span",ae,[oe]),ye={class:{"fox-select-item__option-right":!0}},me=t.h("span",ye,[ce]),Je=t.h("div",{class:{"fox-select-item__option":!0}},[fe,me]);X.push(t.h(v.ElOption,re,{default:()=>Je}))}else l.optionType==="value"?X.push(t.h(v.ElOption,re,{default:()=>[oe]})):X.push(t.h(v.ElOption,re))}}),X},W=t.ref();return we({focus:()=>{W?.value.focus()},blur:()=>{W?.value.blur()},setDisabled:N=>{a.value=N},setReadonly:N=>{u.value=N}}),()=>{const H={...He(r.attrs),ref:W,class:A.value,clearable:l.clearable,multiple:l.multiple,placeholder:g.placeholder.value,disabled:i.value||s.value,modelValue:b.value,"value-key":l.valueKey,"allow-create":l.allowCreate,onClear:ee,onChange:$,onFocus:Y,onBlur:Z,onVisibleChange:U,onRemoveTag:ne};typeof L=="function"&&(H["remote-method"]=L,H.loading=x.value),typeof E=="function"&&(H["filter-method"]=E,H.loading=x.value);const X={};r.slots.prefix&&(X.prefix=r.slots.prefix),r.slots.empty&&(X.empty=r.slots.empty),r.slots.options?X.default=r.slots.options:X.default=()=>G(I.value,r.slots.option);const k=[],K=t.h(v.ElSelect,H,X);k.push(K);const te={default:()=>k};r.slots.default&&(te.label=r.slots.default),r.slots.fixedTip&&(te.fixedTip=r.slots.fixedTip);const ce={...Ne(l,Mo),hintText:S.value,hintVisible:V.value,onMouseover:T,onMouseleave:R};return l.prop&&(ce.prop=`${l.prop}_item`),C.value&&(ce["appear-listen"]=!0,ce.onAppear=_),t.h(o,ce,te)}}}}const{componentName:Wi,create:Yi,scope:Gi}=se("select-item"),Wn=Yi(Ki(Wi,Gi,Te));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,n){(function(o,l){e.exports=l()})(Ue,function(){var o=1e3,l=6e4,r=36e5,a="millisecond",i="second",u="minute",s="hour",c="day",d="week",g="month",b="quarter",w="year",p="date",f="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,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,I={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(A){var $=["th","st","nd","rd"],F=A%100;return"["+A+($[(F-20)%10]||$[F]||$[0])+"]"}},C=function(A,$,F){var M=String(A);return!M||M.length>=$?A:""+Array($+1-M.length).join(F)+A},q={s:C,z:function(A){var $=-A.utcOffset(),F=Math.abs($),M=Math.floor(F/60),Y=F%60;return($<=0?"+":"-")+C(M,2,"0")+":"+C(Y,2,"0")},m:function A($,F){if($.date()<F.date())return-A(F,$);var M=12*(F.year()-$.year())+(F.month()-$.month()),Y=$.clone().add(M,g),Z=F-Y<0,ee=$.clone().add(M+(Z?-1:1),g);return+(-(M+(F-Y)/(Z?Y-ee:ee-Y))||0)},a:function(A){return A<0?Math.ceil(A)||0:Math.floor(A)},p:function(A){return{M:g,y:w,w:d,d:c,D:p,h:s,m:u,s:i,ms:a,Q:b}[A]||String(A||"").toLowerCase().replace(/s$/,"")},u:function(A){return A===void 0}},j="en",B={};B[j]=I;var _="$isDayjsObject",L=function(A){return A instanceof P||!(!A||!A[_])},x=function A($,F,M){var Y;if(!$)return j;if(typeof $=="string"){var Z=$.toLowerCase();B[Z]&&(Y=Z),F&&(B[Z]=F,Y=Z);var ee=$.split("-");if(!Y&&ee.length>1)return A(ee[0])}else{var le=$.name;B[le]=$,Y=le}return!M&&Y&&(j=Y),Y||!M&&j},E=function(A,$){if(L(A))return A.clone();var F=typeof $=="object"?$:{};return F.date=A,F.args=arguments,new P(F)},y=q;y.l=x,y.i=L,y.w=function(A,$){return E(A,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var P=function(){function A(F){this.$L=x(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[_]=!0}var $=A.prototype;return $.parse=function(F){this.$d=function(M){var Y=M.date,Z=M.utc;if(Y===null)return new Date(NaN);if(y.u(Y))return new Date;if(Y instanceof Date)return new Date(Y);if(typeof Y=="string"&&!/Z$/i.test(Y)){var ee=Y.match(h);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(Y)}(F),this.init()},$.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},$.$utils=function(){return y},$.isValid=function(){return this.$d.toString()!==f},$.isSame=function(F,M){var Y=E(F);return this.startOf(M)<=Y&&Y<=this.endOf(M)},$.isAfter=function(F,M){return E(F)<this.startOf(M)},$.isBefore=function(F,M){return this.endOf(M)<E(F)},$.$g=function(F,M,Y){return y.u(F)?this[M]:this.set(Y,F)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(F,M){var Y=this,Z=!!y.u(M)||M,ee=y.p(F),le=function(ne,G){var W=y.w(Y.$u?Date.UTC(Y.$y,G,ne):new Date(Y.$y,G,ne),Y);return Z?W:W.endOf(c)},O=function(ne,G){return y.w(Y.toDate()[ne].apply(Y.toDate("s"),(Z?[0,0,0,0]:[23,59,59,999]).slice(G)),Y)},T=this.$W,R=this.$M,V=this.$D,S="set"+(this.$u?"UTC":"");switch(ee){case w:return Z?le(1,0):le(31,11);case g:return Z?le(1,R):le(0,R+1);case d:var z=this.$locale().weekStart||0,U=(T<z?T+7:T)-z;return le(Z?V-U:V+(6-U),R);case c:case p:return O(S+"Hours",0);case s:return O(S+"Minutes",1);case u:return O(S+"Seconds",2);case i:return O(S+"Milliseconds",3);default:return this.clone()}},$.endOf=function(F){return this.startOf(F,!1)},$.$set=function(F,M){var Y,Z=y.p(F),ee="set"+(this.$u?"UTC":""),le=(Y={},Y[c]=ee+"Date",Y[p]=ee+"Date",Y[g]=ee+"Month",Y[w]=ee+"FullYear",Y[s]=ee+"Hours",Y[u]=ee+"Minutes",Y[i]=ee+"Seconds",Y[a]=ee+"Milliseconds",Y)[Z],O=Z===c?this.$D+(M-this.$W):M;if(Z===g||Z===w){var T=this.clone().set(p,1);T.$d[le](O),T.init(),this.$d=T.set(p,Math.min(this.$D,T.daysInMonth())).$d}else le&&this.$d[le](O);return this.init(),this},$.set=function(F,M){return this.clone().$set(F,M)},$.get=function(F){return this[y.p(F)]()},$.add=function(F,M){var Y,Z=this;F=Number(F);var ee=y.p(M),le=function(R){var V=E(Z);return y.w(V.date(V.date()+Math.round(R*F)),Z)};if(ee===g)return this.set(g,this.$M+F);if(ee===w)return this.set(w,this.$y+F);if(ee===c)return le(1);if(ee===d)return le(7);var O=(Y={},Y[u]=l,Y[s]=r,Y[i]=o,Y)[ee]||1,T=this.$d.getTime()+F*O;return y.w(T,this)},$.subtract=function(F,M){return this.add(-1*F,M)},$.format=function(F){var M=this,Y=this.$locale();if(!this.isValid())return Y.invalidDate||f;var Z=F||"YYYY-MM-DDTHH:mm:ssZ",ee=y.z(this),le=this.$H,O=this.$m,T=this.$M,R=Y.weekdays,V=Y.months,S=Y.meridiem,z=function(G,W,N,H){return G&&(G[W]||G(M,Z))||N[W].slice(0,H)},U=function(G){return y.s(le%12||12,G,"0")},ne=S||function(G,W,N){var H=G<12?"AM":"PM";return N?H.toLowerCase():H};return Z.replace(D,function(G,W){return W||function(N){switch(N){case"YY":return String(M.$y).slice(-2);case"YYYY":return y.s(M.$y,4,"0");case"M":return T+1;case"MM":return y.s(T+1,2,"0");case"MMM":return z(Y.monthsShort,T,V,3);case"MMMM":return z(V,T);case"D":return M.$D;case"DD":return y.s(M.$D,2,"0");case"d":return String(M.$W);case"dd":return z(Y.weekdaysMin,M.$W,R,2);case"ddd":return z(Y.weekdaysShort,M.$W,R,3);case"dddd":return R[M.$W];case"H":return String(le);case"HH":return y.s(le,2,"0");case"h":return U(1);case"hh":return U(2);case"a":return ne(le,O,!0);case"A":return ne(le,O,!1);case"m":return String(O);case"mm":return y.s(O,2,"0");case"s":return String(M.$s);case"ss":return y.s(M.$s,2,"0");case"SSS":return y.s(M.$ms,3,"0");case"Z":return ee}return null}(G)||ee.replace(":","")})},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(F,M,Y){var Z,ee=this,le=y.p(M),O=E(F),T=(O.utcOffset()-this.utcOffset())*l,R=this-O,V=function(){return y.m(ee,O)};switch(le){case w:Z=V()/12;break;case g:Z=V();break;case b:Z=V()/3;break;case d:Z=(R-T)/6048e5;break;case c:Z=(R-T)/864e5;break;case s:Z=R/r;break;case u:Z=R/l;break;case i:Z=R/o;break;default:Z=R}return Y?Z:y.a(Z)},$.daysInMonth=function(){return this.endOf(g).$D},$.$locale=function(){return B[this.$L]},$.locale=function(F,M){if(!F)return this.$L;var Y=this.clone(),Z=x(F,M,!0);return Z&&(Y.$L=Z),Y},$.clone=function(){return y.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},A}(),J=P.prototype;return E.prototype=J,[["$ms",a],["$s",i],["$m",u],["$H",s],["$W",c],["$M",g],["$y",w],["$D",p]].forEach(function(A){J[A[1]]=function($){return this.$g($,A[0],A[1])}}),E.extend=function(A,$){return A.$i||(A($,P,E),A.$i=!0),E},E.locale=x,E.isDayjs=L,E.unix=function(A){return E(1e3*A)},E.en=B[j],E.Ls=B,E.p={},E})})(Bo);var Ui=Bo.exports;const Ke=Xe(Ui);var _o={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(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"},l=/(\[[^[]*\])|([-_:/.,()\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(h){this[f]=+h}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(f){(this.zone||(this.zone={})).offset=function(h){if(!h||h==="Z")return 0;var D=h.match(/([+-]|\d\d)/g),I=60*D[1]+(+D[2]||0);return I===0?0:D[0]==="+"?-I:I}(f)}],g=function(f){var h=u[f];return h&&(h.indexOf?h:h.s.concat(h.f))},b=function(f,h){var D,I=u.meridiem;if(I){for(var C=1;C<=24;C+=1)if(f.indexOf(I(C,0,h))>-1){D=C>12;break}}else D=f===(h?"pm":"PM");return D},w={A:[i,function(f){this.afternoon=b(f,!1)}],a:[i,function(f){this.afternoon=b(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 h=u.ordinal,D=f.match(/\d+/);if(this.day=D[0],h)for(var I=1;I<=31;I+=1)h(I).replace(/\[|\]/g,"")===f&&(this.day=I)}],M:[a,c("month")],MM:[r,c("month")],MMM:[i,function(f){var h=g("months"),D=(g("monthsShort")||h.map(function(I){return I.slice(0,3)})).indexOf(f)+1;if(D<1)throw new Error;this.month=D%12||D}],MMMM:[i,function(f){var h=g("months").indexOf(f)+1;if(h<1)throw new Error;this.month=h%12||h}],Y:[/[+-]?\d+/,c("year")],YY:[r,function(f){this.year=s(f)}],YYYY:[/\d{4}/,c("year")],Z:d,ZZ:d};function p(f){var h,D;h=f,D=u&&u.formats;for(var I=(f=h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(x,E,y){var P=y&&y.toUpperCase();return E||D[y]||o[y]||D[P].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(J,A,$){return A||$.slice(1)})})).match(l),C=I.length,q=0;q<C;q+=1){var j=I[q],B=w[j],_=B&&B[0],L=B&&B[1];I[q]=L?{regex:_,parser:L}:j.replace(/^\[|\]$/g,"")}return function(x){for(var E={},y=0,P=0;y<C;y+=1){var J=I[y];if(typeof J=="string")P+=J.length;else{var A=J.regex,$=J.parser,F=x.slice(P),M=A.exec(F)[0];$.call(E,M),x=x.replace(M,"")}}return function(Y){var Z=Y.afternoon;if(Z!==void 0){var ee=Y.hours;Z?ee<12&&(Y.hours+=12):ee===12&&(Y.hours=0),delete Y.afternoon}}(E),E}}return function(f,h,D){D.p.customParseFormat=!0,f&&f.parseTwoDigitYear&&(s=f.parseTwoDigitYear);var I=h.prototype,C=I.parse;I.parse=function(q){var j=q.date,B=q.utc,_=q.args;this.$u=B;var L=_[1];if(typeof L=="string"){var x=_[2]===!0,E=_[3]===!0,y=x||E,P=_[2];E&&(P=_[2]),u=this.$locale(),!x&&P&&(u=D.Ls[P]),this.$d=function(F,M,Y){try{if(["x","X"].indexOf(M)>-1)return new Date((M==="X"?1e3:1)*F);var Z=p(M)(F),ee=Z.year,le=Z.month,O=Z.day,T=Z.hours,R=Z.minutes,V=Z.seconds,S=Z.milliseconds,z=Z.zone,U=new Date,ne=O||(ee||le?1:U.getDate()),G=ee||U.getFullYear(),W=0;ee&&!le||(W=le>0?le-1:U.getMonth());var N=T||0,H=R||0,X=V||0,k=S||0;return z?new Date(Date.UTC(G,W,ne,N,H,X,k+60*z.offset*1e3)):Y?new Date(Date.UTC(G,W,ne,N,H,X,k)):new Date(G,W,ne,N,H,X,k)}catch{return new Date("")}}(j,L,B),this.init(),P&&P!==!0&&(this.$L=this.locale(P).$L),y&&j!=this.format(L)&&(this.$d=new Date("")),u={}}else if(L instanceof Array)for(var J=L.length,A=1;A<=J;A+=1){_[1]=L[A-1];var $=D.apply(this,_);if($.isValid()){this.$d=$.$d,this.$L=$.$L,this.init();break}A===J&&(this.$d=new Date(""))}else C.call(this,q)}}})})(_o);var Xi=_o.exports;const Zi=Xe(Xi);var qo={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ue,function(){return function(o,l){var r=l.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(g){switch(g){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(),g==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),g==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),g==="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 g}});return a.bind(this)(d)}}})})(qo);var Ji=qo.exports;const Qi=Xe(Ji);var Po={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ue,function(){return function(o,l,r){var a=l.prototype,i=function(g){return g&&(g.indexOf?g:g.s)},u=function(g,b,w,p,f){var h=g.name?g:g.$locale(),D=i(h[b]),I=i(h[w]),C=D||I.map(function(j){return j.slice(0,p)});if(!f)return C;var q=h.weekStart;return C.map(function(j,B){return C[(B+(q||0))%7]})},s=function(){return r.Ls[r.locale()]},c=function(g,b){return g.formats[b]||function(w){return w.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(p,f,h){return f||h.slice(1)})}(g.formats[b.toUpperCase()])},d=function(){var g=this;return{months:function(b){return b?b.format("MMMM"):u(g,"months")},monthsShort:function(b){return b?b.format("MMM"):u(g,"monthsShort","months",3)},firstDayOfWeek:function(){return g.$locale().weekStart||0},weekdays:function(b){return b?b.format("dddd"):u(g,"weekdays")},weekdaysMin:function(b){return b?b.format("dd"):u(g,"weekdaysMin","weekdays",2)},weekdaysShort:function(b){return b?b.format("ddd"):u(g,"weekdaysShort","weekdays",3)},longDateFormat:function(b){return c(g.$locale(),b)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return d.bind(this)()},r.localeData=function(){var g=s();return{firstDayOfWeek:function(){return g.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(b){return c(g,b)},meridiem:g.meridiem,ordinal:g.ordinal}},r.months=function(){return u(s(),"months")},r.monthsShort=function(){return u(s(),"monthsShort","months",3)},r.weekdays=function(g){return u(s(),"weekdays",null,null,g)},r.weekdaysShort=function(g){return u(s(),"weekdaysShort","weekdays",3,g)},r.weekdaysMin=function(g){return u(s(),"weekdaysMin","weekdays",2,g)}}})})(Po);var es=Po.exports;const ts=Xe(es);var jo={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ue,function(){var o="week",l="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(l).add(1,l).date(c),g=i(this).endOf(o);if(d.isBefore(g))return 1}var b=i(this).startOf(l).date(c).startOf(o).subtract(1,"millisecond"),w=this.diff(b,o,!0);return w<0?i(this).startOf("week").week():Math.ceil(w)},u.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}})})(jo);var ns=jo.exports;const ls=Xe(ns);var zo={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ue,function(){return function(o,l){l.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}}})})(zo);var os=zo.exports;const rs=Xe(os);var Ho={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ue,function(){return function(o,l,r){l.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")}}})})(Ho);var as=Ho.exports;const is=Xe(as);var Ko={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ue,function(){return function(o,l){l.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,n){(function(o,l){e.exports=l()})(Ue,function(){return function(o,l){l.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,n){return Ke(e).format(n)},parser(e,n){return Ke(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,o){const r=new Date(e+"/"+n+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][r]},getMonthPreDay(e,n){let l=new Date(e+"/"+n+"/01").getDay();return l==0&&(l=7),l},getMonthDays(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){n=n||"-";const o=e.getFullYear(),l=this.getNumTwoBit(e.getMonth()+1),r=this.getNumTwoBit(e.getDate());return[o,l,r].join(n)},getDay(e,n){e=e||0;let o=n??new Date;const l=e*(1e3*60*60*24);return o=new Date(o.getTime()+l),this.date2Str(o)},compareDate(e,n){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let l;return typeof n=="string"?l=new Date(n.replace("-","/").replace("-","/")):l=n,!(o>=l)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e;let l;return typeof n=="string"?l=new Date(n).getTime():l=n,o==l},getMonthWeek:function(e,n,o,l=0){const r=new Date(Number(e),parseInt(n)-1,Number(o));let a=r.getDay(),i=r.getDate(),u=6-a;return l!==0&&(a=a==0?7:a,u=7-a),Math.ceil((i+u)/7)},getYearWeek:function(e,n,o,l=0){const r=new Date(Number(e),parseInt(n)-1,Number(o)),a=new Date(Number(e),0,1),i=Math.round((r.valueOf()-a.valueOf())/864e5);let u=r.getDay(),s=6-u;return l!==0&&(u=u==0?7:u,s=7-u),Math.ceil((i+s)/7)},getWeekDate:function(e,n,o,l=0){const r=new Date(Number(e),parseInt(n)-1,Number(o)),a=r.getTime();let i=r.getDay();if(l===0){const s=a-i*864e5,c=a+(6-i)*864e5,d=this.date2Str(new Date(s)),g=this.date2Str(new Date(c));return[d,g]}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)),g=this.date2Str(new Date(c));return[d,g]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=Be.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=Be.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,o){const l=new Date(new Date(n).setDate(n.getDate()+o)),r=e.getTime(),a=l.getTime(),i=n.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i},inScope4Month(e,n,o){const l=new Date(new Date(n).setMonth(n.getMonth()+o)),r=e.getTime(),a=l.getTime(),i=n.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i}},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,n,o){return{props:{...xe,...Ie,...Yo,...Go},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=Le.useFoxI18n(n),g=d(l,["placeholder"]),b=t.ref(!1),w=ge(l,"modelValue",null,c),p=t.computed(()=>M.value&&Array.isArray(w.value)&&w.value.length==2?w.value[0]:w.value),f=t.computed(()=>M.value?"longTermKey":"normalKey"),h=W=>{if(M.value&&l.type==="daterange"){const N=[...w.value];N[0]=W,w.value=N}else w.value=W;c("update:modelValue",w.value),c("change",w.value)},D=t.computed(()=>M.value&&l.type==="daterange"?"date":l.type),I=e,C=t.computed(()=>({[`${I}`]:!0,"is-long":M.value,"is-readonly":s.value,"is-disabled":i.value}));let q=ge(l,"hintText"),j=t.ref(!1);const B=W=>{let H=W.target.value;b.value=!0,pe(q.value)||(j.value=!0),c("focus",H,W)},_=W=>{setTimeout(()=>{j.value&&(j.value=!1),b.value=!1},0);let H=W.target.value;l.maxLength&&H.length>Number(l.maxLength)&&(H=H.slice(0,Number(l.maxLength))),c("blur",H,W)},L=()=>{c("clear","")},x=W=>{c("calendar-change",W)},E=(W,N,H)=>{c("panel-change",W,N,H)},y=W=>{c("visible-change",W)},P=Oe(t.computed(()=>l.longTermText),"longTermText",Me.Near),J=Oe(t.computed(()=>l.longTermActionLabel),"longTermActionLabel",Me.Near),A=Oe(t.computed(()=>l.longTermValue),"longTermValue",Me.Near),$=Oe(t.computed(()=>l.compatibleLongTermValue),"compatibleLongTermValue",Me.Near);let F=null;const M=t.ref(ue(l.longTerm)),Y=W=>{if(M.value=W,c("update:longTerm",W),W){if(F=w.value,l.type==="daterange"){const N=[];Array.isArray(A.value)?(N[0]=w.value?w.value[0]??A.value[0]:null,N[1]=A.value[1]??A.value[0]):(N[0]=w.value?w.value[0]??A.value:null,N[1]=M.value),N[0]||(N[0]=l.valueFormat?Be.format(new Date,l.valueFormat):new Date),N[1]||(N[1]=l.valueFormat?Be.format(new Date,l.valueFormat):new Date),w.value=N}else Array.isArray(A.value)?w.value=A.value[1]??A.value[0]:w.value=A.value,w.value||(w.value=l.valueFormat?Be.format(new Date,l.valueFormat):new Date);c("update:modelValue",w.value)}else{if(l.type==="daterange"){const N=[];N[0]=Array.isArray(w.value)?w.value[0]:w.value,Array.isArray(F)?N[1]=F[1]:N[1]=F,N[0]||(N[0]=l.valueFormat?Be.format(new Date,l.valueFormat):new Date),N[1]||(N[1]=l.valueFormat?Be.format(new Date,l.valueFormat):new Date),w.value=N}else w.value=F;c("update:modelValue",w.value),setTimeout(()=>{ne()},100)}},Z=ue(l.isLongTerm);if(Z){const W=()=>{if(M.value===!0){if(F=w.value,l.type==="daterange"){const N=[w.value[0]];Array.isArray(A.value)?N[1]=A.value[1]??A.value[0]:N[1]=M.value,N[0]||(N[0]=l.valueFormat?Be.format(new Date,l.valueFormat):new Date),N[1]||(N[1]=l.valueFormat?Be.format(new Date,l.valueFormat):new Date),w.value=N}else w.value=A.value;c("update:modelValue",w.value)}else Ye(A.value,w.value)&&(M.value=!0)};W(),t.watch([()=>l.longTerm],([N])=>{M.value!==N&&W()}),t.watch([()=>w.value],([N])=>{let H=!1;if(l.type==="daterange"&&Array.isArray(N))try{let X=N[1];if(!X)return;typeof X!="string"&&l.valueFormat&&(X=Be.format(X,l.valueFormat));let k=Array.isArray(A.value)?A.value[1]:A.value;(X===k||Array.isArray($.value)&&$.value.findIndex(te=>X==te)!==-1)&&(H=!0)}catch(X){console.error(X)}M.value!==H&&(M.value=H)},{immediate:!0})}const ee=t.computed(()=>({"fox-date-item__long":!0,"is-active":b.value})),le=t.ref(),O=t.ref(),T=/^\d+$/,R=(W,N)=>typeof l.flashFillThreshold=="function"?l.flashFillThreshold(W,N):T.test(W)&&W.length===l.flashFillThreshold,V=(W,N)=>{let H;if(typeof l.flashFillFormat=="function")H=l.flashFillFormat(W,N);else{const k=l.flashFillFormat??"YYYYMMDD";H=Be.parser(W,k)}const X=l.valueFormat??"YYYY-MM-DD";return Be.format(H,X)},S=W=>W?W.endsWith("range"):!1,z=W=>{if(!W.target)return;const N=W.target.value??"";if(R(N,l.type)){const H=V(N,l.type);if(S(l.type)){const X=Array.isArray(w.value)?[...w.value]:[];X[0]=H,h(X)}else h(H)}},U=W=>{if(!W.target)return;const N=W.target.value??"";if(R(N,l.type)){const H=V(N,l.type);if(S(l.type)){const X=Array.isArray(w.value)?[...w.value]:[];X[1]=H,h(X)}else h(H)}},ne=()=>{if(l.flashFill&&le.value&&le.value.$el)if(S(l.type)){const W=le.value.$el.querySelectorAll("input.el-range-input");W[0]&&W[0].addEventListener("input",z),W[1]&&W[1].addEventListener("input",U)}else{const W=le.value.$el.querySelector("input.el-input__inner");W&&W.addEventListener("input",z)}},G=()=>{if(l.flashFill&&le.value&&le.value.$el)if(S(l.type)){const W=le.value.$el.querySelectorAll("input.el-range-input");W[0]&&W[0].removeEventListener("input",z),W[1]&&W[1].removeEventListener("input",U)}else{const W=le.value.$el.querySelector("input.el-input__inner");W&&W.removeEventListener("input",z)}};return t.onMounted(ne),t.onBeforeUnmount(G),we({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()},handleOpen:()=>{O?.value.handleOpen()},handleClose:()=>{O?.value.handleClose()},setDisabled:W=>{a.value=W},setReadonly:W=>{u.value=W}}),()=>{const N={...r.attrs,key:f.value,type:D.value,ref:O,class:C.value,placeholder:g.placeholder.value,disabled:i.value,readonly:s.value,modelValue:p.value,valueFormat:l.valueFormat,format:l.format,"onUpdate:modelValue":h,onClear:L,onFocus:B,onBlur:_,onCalendarChange:x,onPanelChange:E,onVisibleChange:y},H={};r.slots["range-separator"]&&(H["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(H.default=r.slots.cell);const X=[],k=t.h(v.ElDatePicker,N,H);X.push(k);const K={default:()=>X};if(r.slots.default&&(K.label=r.slots.default),r.slots.fixedTip&&(K.fixedTip=r.slots.fixedTip),Z){if(M.value){const ie=t.h("span",{class:["fox-date-item__long-splitor"]},["-"]),Q=t.h("input",{class:["fox-date-item__long-text"],value:P.value,readonly:!0}),re={class:ee.value},ae=t.h("div",re,{default:()=>[ie,Q]});X.push(ae)}if(!s.value&&!i.value){const ie={label:J.value||P.value,disabled:s.value||i.value,modelValue:M.value,"onUpdate:modelValue":Y},Q=t.h(v.ElCheckbox,ie),re=t.h("div",{class:{[`${I}__append`]:!0}},[Q]);K.append=()=>re}}const oe={...Ne(l,Yo,Go),ref:le,class:{[`${I}__wrapper`]:!0,"has-append":Z},hintText:q.value,hintVisible:j.value};return l.prop&&(oe.prop=`${l.prop}_item`),t.h(o,oe,K)}}}}const{componentName:hs,create:gs,scope:ms}=se("date-item"),Yn=gs(ds(hs,ms,Te)),Uo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ps(e,n,o){return{props:{...xe,...Ie,...Uo},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=Le.useFoxI18n(n),g=d(l,["placeholder"]),b=t.ref(!1),w=ge(l,"modelValue",null,c),p=e,f=t.computed(()=>({[p]:!0})),h=L=>{w.value=L,c("update:modelValue",L),c("change",L)};let D=ge(l,"hintText"),I=t.ref(!1);const C=L=>{let E=L.target.value;b.value=!0,pe(D.value)||(I.value=!0),c("focus",E,L)},q=L=>{setTimeout(()=>{I.value&&(I.value=!1),b.value=!1},0);let E=L.target.value;l.maxLength&&E.length>Number(l.maxLength)&&(E=E.slice(0,Number(l.maxLength))),c("blur",E,L)},j=()=>{c("clear","")},B=L=>{c("visible-change",L)},_=t.ref();return we({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},handleOpen:()=>{_?.value.handleOpen()},handleClose:()=>{_?.value.handleClose()},setDisabled:L=>{a.value=L},setReadonly:L=>{u.value=L}}),()=>{const x={...r.attrs,ref:_,class:f.value,placeholder:g.placeholder.value,disabled:i.value,readonly:s.value,modelValue:w.value,"onUpdate:modelValue":h,onClear:j,onFocus:C,onBlur:q,onVisibleChange:B},E={},y=[],P=t.h(v.ElTimePicker,x,E);y.push(P);const J={default:()=>y};r.slots.default&&(J.label=r.slots.default),r.slots.fixedTip&&(J.fixedTip=r.slots.fixedTip);const $={...Ne(l,Uo),hintText:D.value,hintVisible:I.value};return l.prop&&($.prop=`${l.prop}_item`),t.h(o,$,J)}}}}const{componentName:ys,create:bs,scope:vs}=se("time-item"),Gn=bs(ps(ys,vs,Te)),Xo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ws(e,n,o){return{props:{...xe,...Ie,...Xo},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=Le.useFoxI18n(n),g=d(l,["placeholder"]),b=t.ref(!1),w=ge(l,"modelValue",null,c),p=e,f=t.computed(()=>({[p]:!0})),h=_=>{w.value=_,c("update:modelValue",_),c("change",_)};let D=ge(l,"hintText"),I=t.ref(!1);const C=_=>{let x=_.target.value;b.value=!0,pe(D.value)||(I.value=!0),c("focus",x,_)},q=_=>{setTimeout(()=>{I.value&&(I.value=!1),b.value=!1},0);let x=_.target.value;l.maxLength&&x.length>Number(l.maxLength)&&(x=x.slice(0,Number(l.maxLength))),c("blur",x,_)},j=()=>{c("clear","")},B=t.ref();return we({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},handleOpen:()=>{B?.value.handleOpen()},handleClose:()=>{B?.value.handleClose()},setDisabled:_=>{a.value=_},setReadonly:_=>{u.value=_}}),()=>{const L={...r.attrs,ref:B,class:f.value,placeholder:g.placeholder.value,disabled:i.value,readonly:s.value,modelValue:w.value,"onUpdate:modelValue":h,onClear:j,onFocus:C,onBlur:q},x={},E=[],y=t.h(v.ElTimeSelect,L,x);E.push(y);const P={default:()=>E};r.slots.default&&(P.label=r.slots.default),r.slots.fixedTip&&(P.fixedTip=r.slots.fixedTip);const A={...Ne(l,Xo),hintText:D.value,hintVisible:I.value};return l.prop&&(A.prop=`${l.prop}_item`),t.h(o,A,P)}}}}const{componentName:Ss,create:xs,scope:Ts}=se("time-select-item"),Un=xs(ws(Ss,Ts,Te));function Zo(e,n=0){let o=`${e}`,l=o.indexOf(".");if(l==-1)return o;let r=l;for(let a=o.length-1;a>=l;a--)if(o.charAt(a)!="0"){r=a;break}return r-l<n?r=l+n+1:r!=l&&(r+=1),r>o.length?o=o.padEnd(r,"0"):o=o.substring(0,r),o}function Jo(e,n,o=20){if(typeof n=="string"&&(n=Se(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let l=Wl(`${e}`,`${n}`);return Zo(l)}else{let l=wn(`${e}`,Yl(`${n}`),20);return Zo(l)}}function $s(e,n=-1,o=!1,l=3,r=","){return Lt(e,n,o,l,r)}function Qo(e,n,o,l,r=!0){if(e==="")return"";if(e=Gl(e),n=Se(n),n==1)return e;if(l)e=Jo(e,n),o&&(e=="0"&&r?e=`${e}.`.padEnd(Se(o)+2,"0"):e=wn(e,1,Se(o)));else{let a=-1*n;e=Jo(e,a)}return e}function er(e,n){let o={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let l=ue(n.minInclude),r=Sn(e,n.min);if(l&&r==-1||!l&&(r==0||r==-1)){let a="请输入不小于 {0} 的数值";o.message=a.replace("{0}",n.min),o.minValid=!1}}if(n.max!=null){let l=ue(n.maxInclude),r=Sn(e,n.max);(l&&r==1||!l&&(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,n,o){return{props:{...xe,...Ie,...tr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),d=t.ref(!1),g=ge(l,"modelValue",null,c),b=t.ref("");t.watch([()=>g.value,()=>l.rates,()=>l.precision],([$,F,M])=>{if(pe($)){b.value="";return}const Y=Qo($,F,M,!1);b.value!==Y&&(b.value=Y)},{immediate:!0});const w=t.computed(()=>{let $="";return d.value&&($=b.value),$}),{t:p}=Le.useFoxI18n(n),f=t.computed(()=>{let $=l.placeholder??"";return!d.value&&!pe(b.value)?$=$s(b.value,l.decimalLength,l.autoPadding,l.digits,l.separator):$=p(["placeholder",$]),$}),h=e,D=t.computed(()=>({[h]:!0,[`${h}__disabled`]:i.value,[`${h}__placeholder`]:b.value.length>0})),I=Oe(t.computed(()=>l.textAlign),"textAlign");t.computed(()=>d.value?{textAlign:"left"}:{textAlign:I.value??"right"});const C=t.ref(""),q=t.computed(()=>{let $=C.value;return pe($)&&($=l.errorTip??""),$}),j=t.ref(""),B=t.ref(!1),_=($,F)=>{if($=`${$}`,pe($)){b.value="",g.value="",F.forEach(M=>{c(M,"")}),ue(l.showTip)&&B.value&&(B.value=!1);return}if($.length>=2){let M=$;if(M.charAt(0)=="-"&&(M=M.substring(1)),M.length>=2&&M.charAt(0)=="0"&&M.charAt(1)!="."){t.triggerRef(b);return}}if($!="-"){if(!lo($)){t.triggerRef(b);return}if(l.integerLength!=-1&&oo($)>Number(l.integerLength)){t.triggerRef(b);return}if(l.decimalLength&&l.decimalLength!=-1&&ro($)>Number(l.decimalLength)){t.triggerRef(b);return}let M=er($,l);if(M.maxValid===!1){C.value=M.message,t.triggerRef(b);return}}else if(l.min!=null&&Se(l.min)>=0){t.triggerRef(b);return}j.value=$,ue(l.showTip)&&(B.value=$.length>0),b.value=$,g.value=Qo($,l.rates,l.precision,!0),F.forEach(M=>{c(M,g.value)})},L=$=>{_($,["update:modelValue","input"])},x=$=>{_($,["update:modelValue","change"])},E=$=>{if(d.value=!0,ue(l.showTip)){let F=b.value;pe(F)&&(F=l.hintText),pe(F)||(j.value=F,B.value=!0)}C.value="",c("focus",g.value,$)},y=$=>{if(setTimeout(()=>{d.value=!1,ue(l.showTip)&&B.value===!0&&(B.value=!1)},0),!pe(b.value)){let F=er(b.value,l);if(F.minValid===!1||F.maxValid===!1){C.value=F.message;return}}c("update:modelValue",g.value,$),c("blur",g.value,$)},P=()=>{c("clear","")},J=t.computed(()=>wt(l.unit)>0),A=t.ref();return we({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()},select:()=>{A?.value.select()},setDisabled:$=>{a.value=$},setReadonly:$=>{u.value=$}}),()=>{const F={...He(r.attrs),ref:A,class:D.value,type:"digit",maxlength:l.maxLength,placeholder:f.value,clearable:l.clearable,disabled:i.value,readonly:s.value,modelValue:w.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:P,onInput:L,onChange:x,onFocus:E,onBlur:y},M={};r.slots.prepend&&(M.prepend=r.slots.prepend),r.slots.append&&(M.append=r.slots.append),r.slots.prefix&&(M.prefix=r.slots.prefix),r.slots.suffix?M.suffix=r.slots.suffix:J.value&&(M.suffix=()=>[l.unit]);const Y=[],Z=t.h(v.ElInput,F,M);Y.push(Z);const ee={default:()=>Y};r.slots.default&&(ee.label=r.slots.default),r.slots.fixedTip&&(ee.fixedTip=r.slots.fixedTip);const O={...Ne(l,tr),errorTip:q.value,hintText:j.value,hintVisible:B.value,hintType:"number"};return l.prop&&(O.prop=`${l.prop}_item`),t.h(o,O,ee)}}}}const{componentName:Es,create:Ns,scope:ks}=se("money-item"),Xn=Ns(Cs(Es,ks,Te)),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,n,o){return{props:{...xe,...Ie,...nr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=Le.useFoxI18n(n),g=d(l,["placeholder"]),b=t.ref(!1),w=ge(l,"modelValue",null,c),p=e,f=t.computed(()=>({[p]:!0,[`${p}__append`]:L.value})),h=t.computed(()=>({[`${p}__unit`]:!0})),D=E=>{w.value=E,c("update:modelValue",E),c("input",E)},I=E=>{c("change",E)};let C=ge(l,"hintText"),q=t.ref(!1);const j=E=>{let P=E.target.value;b.value=!0,pe(C.value)||(q.value=!0),c("focus",P,E)},B=E=>{setTimeout(()=>{q.value&&(q.value=!1),b.value=!1},0);let P=E.target.value;l.maxLength&&P.length>Number(l.maxLength)&&(P=P.slice(0,Number(l.maxLength))),c("blur",P,E)},_=()=>{c("clear","")},L=t.computed(()=>wt(l.unit)>0),x=t.ref();return we({focus:()=>{x?.value.focus()},blur:()=>{x?.value.blur()},setDisabled:E=>{a.value=E},setReadonly:E=>{u.value=E}}),()=>{const y={...He(r.attrs),ref:x,class:f.value,placeholder:g.placeholder.value,clearable:l.clearable,disabled:i.value,readonly:s.value,modelValue:w.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:_,onChange:I,onInput:D,onFocus:j,onBlur:B},P={},J=[],A=t.h(v.ElInputNumber,y,P);J.push(A);const $={default:()=>J};r.slots.default&&($.label=r.slots.default),r.slots.fixedTip&&($.fixedTip=r.slots.fixedTip);const M={...Ne(l,nr),hintText:C.value,hintVisible:q.value};if(l.prop&&(M.prop=`${l.prop}_item`),r.slots.append)$.append=r.slots.append;else if(L.value){const Z={class:h.value},ee=t.h("div",Z,[l.unit]);$.append=()=>ee}return t.h(o,M,$)}}}}const{componentName:Os,create:Vs,scope:Ds}=se("input-number-item"),Zn=Vs(Is(Os,Ds,Te));function Ze(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function at(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Fs(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}let Rs=class{proxy;constructor(n){this.proxy=n}async load(n,o,l,r){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l,r);const a=Pe(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(We(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l,r))}};function As(){const e=t.getCurrentInstance();return new Rs(e.proxy)}function Jn(e,n,o){const l=Ze(e,n),r=Ze(e,o);if(l!==r)return!1;const a=at(e,n),i=at(e,o);return a===i}function lr(e,n,o,l){if(l.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const r=[];let a=l;for(let i=0;Array.isArray(a)&&i<n.length;i++){const u=n[i];if(Array.isArray(u)){const s=lr(e,u,o,l);r.push(s)}else{let s=!1;for(let c of a){if(o==="text")s=Ze(e,c)===u;else if(o==="item")s=Jn(e,c,u);else{let d=at(e,c);d==null&&(d=Ze(e,c)),s=d===u}if(s){r.push(c),a=Fs(e,c);break}}if(!s)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,n,o){return{props:{...xe,...Ie,...or},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=Le.useFoxI18n(n),g=d(l,["placeholder"]),b=t.ref(null),w=t.ref([]),p=t.computed(()=>w.value?w.value.map(W=>Array.isArray(W)?W.map(H=>Ze(l,H)).join(" "):Ze(l,W)).join(" "):""),f=(G,W,N,H=!0)=>{if(l.props&&l.props.lazy===!0||l.lazy===!0){if(b.value===G)return;b.value=G;const te=t.toRaw(G);if(H){const oe=ne?.value.getCheckedNodes();if(oe)if(l.multiple){const ce=[];oe.forEach(ie=>{const re=(ie.pathNodes??[]).map(ae=>ae.data);ce.push(re)}),c("update:pathNodes",ce)}else{const ie=(oe[0]?.pathNodes??[]).map(Q=>Q.data);c("update:pathNodes",ie)}c("update:modelValue",te),c("change",te)}return}const X=lr(l,G,W,N);if(X===null){if(w.value.length===0||w.value===null)return;w.value=[],b.value=null,H&&(c("update:pathNodes",[]),c("update:modelValue",null),c("change",null));return}const k=X[X.length-1];if(P.value.checkStrictly!==!0&&k&&!Array.isArray(k)&&Array.isArray(k.children)&&k.children.length>0){const te=[];X.forEach(oe=>{const ce=`${Ze(l,oe)}`;te.push(ce)}),te.length>0&&(E.value=te.join(l.separator))}else E.value=null;let K=!0;if(X.length!==w.value.length)K=!1;else for(let te=0;te<X.length;te++){const oe=X[te],ce=w.value[te];if(Array.isArray(oe)){if(!Array.isArray(ce)||oe.length!==ce.length)K=!1;else for(let ie=0;ie<oe.length;ie++)if(!Jn(l,oe[ie],ce[ie])){K=!1;break}}else Jn(l,oe,ce)||(K=!1);if(!K)break}if(!K){w.value=X;let te=[],oe=[];X.forEach(ie=>{if(Array.isArray(ie)){let Q=[],re=[];for(let ae of ie)Q.push(at(l,ae)),l.valueType==="text"?re.push(Ze(l,ae)):l.valueType==="item"?re.push(ae):re.push(at(l,ae));te.push(Q),oe.push(re)}else te.push(at(l,ie)),l.valueType==="text"?oe.push(Ze(l,ie)):l.valueType==="item"?oe.push(ie):oe.push(at(l,ie))}),b.value=te;const ce=t.toRaw(oe);H&&(c("update:pathNodes",X),c("update:modelValue",ce),c("change",ce))}},h=t.ref([]),D=Oe(t.computed(()=>l.appearLoad),"appearLoad",Me.Near,G=>ue(G)),I=As(),C=async(G,W)=>{if(G){const N=await I.load("cascader",G,W);if(N.length>0)if(typeof N[0]=="string"){let k=N.map(K=>Ls(K));h.value=k}else h.value=N}};t.watch([()=>l.source,()=>l.params],async([G,W])=>{C(G,W)},{immediate:!(D.value||l.lazy)});let q=!1;const j=()=>{q||(q=!0,C(l.source,l.params))};t.watch([()=>h.value,()=>l.modelValue],([G,W])=>{f(W,l.valueType,G,!1),c("setValue",W)}),l.lazy&&f(l.modelValue,"value",[],!1);let B=null,_=t.ref(!1);typeof l.remoteMethod=="function"&&(B=async G=>{if(G!=null){_.value=!0;try{const W=await l.remoteMethod(G);h.value=W}catch(W){console.error(W)}_.value=!1}});const L=t.ref(!1),x=e,E=t.ref(null),y=t.computed(()=>({[x]:!0,"is-incomplete":E.value&&E.value.length>0})),P=t.computed(()=>{let G={label:l.textKey,value:l.valueKey,children:l.childrenKey};return l.multiple===!0&&(G.multiple=!0),l.props&&Object.assign(G,l.props),l.lazy&&(G.lazy=!0,typeof l.lazyLoad=="function"?G.lazyLoad=l.lazyLoad:G.lazyLoad=async(W,N)=>{const H=await I.load("cascader",l.source,W,!0);if(W?.config?.checkStrictly!==!0&&Array.isArray(b.value)&&b.value.length===W.level){const X=W.pathLabels??[];let k=[];X.forEach(K=>{K&&k.push(K)}),k.length>0&&(E.value=k.join(l.separator))}else E.value=null;N(H)}),G}),J=G=>{l.allowCreate?(c("update:modelValue",G),c("change",G),b.value=G):f(G,"value",h.value,!0)};let A=ge(l,"hintText"),$=t.ref(!1);const F=G=>{let N=G.target.value;L.value=!0,pe(A.value)||($.value=!0),c("focus",N,G)},M=G=>{setTimeout(()=>{$.value&&($.value=!1),L.value=!1},0);let N=G.target.value;l.maxLength&&N.length>Number(l.maxLength)&&(N=N.slice(0,Number(l.maxLength))),V.value||c("blur",N,G)},Y=()=>{c("clear","")},Z=t.ref(!1);let ee=null;const le=()=>{l.showTooltip&&Z.value===!1&&(ee&&clearTimeout(ee),ee=setTimeout(()=>{Z.value=!0},150))},O=()=>{ee&&(clearTimeout(ee),Z.value=!1,ee=null)},T=t.computed(()=>Z.value||$.value),R=t.computed(()=>Z.value?p.value:A.value),V=t.ref(!1),S=G=>{V.value=G,c("visible-change",G),G||c("selected")},z=G=>{c("remove-tag",G)},U=G=>{c("expand-change",G)},ne=t.ref();return we({focus:()=>{ne?.value.focus()},blur:()=>{ne?.value.blur()},getCheckedNodes:()=>ne?.value.getCheckedNodes(),setDisabled:G=>{a.value=G},setReadonly:G=>{u.value=G}}),()=>{const W={...r.attrs,ref:ne,class:y.value,props:P.value,clearable:l.clearable,placeholder:E.value||g.placeholder.value,disabled:i.value||s.value,options:h.value,modelValue:b.value,separator:l.separator,onClear:Y,onChange:J,onFocus:F,onBlur:M,onVisibleChange:S,onRemoveTag:z,expandChange:U};typeof B=="function"&&(W["remote-method"]=B,W.loading=_.value);const N={};r.slots.option&&(N.default=r.slots.option),r.slots.empty&&(N.empty=r.slots.empty);const H=[],X=t.h(v.ElCascader,W,N);H.push(X);const k={default:()=>H};r.slots.default&&(k.label=r.slots.default),r.slots.fixedTip&&(k.fixedTip=r.slots.fixedTip);const te={...Ne(l,or),hintText:R.value,hintVisible:T.value,onMouseover:le,onMouseleave:O};return l.prop&&(te.prop=`${l.prop}_item`),D.value&&!l.lazy&&(te["appear-listen"]=!0,te.onAppear=j),t.h(o,te,k)}}}}const{componentName:Bs,create:_s,scope:qs}=se("cascader-item"),Qn=_s(Ms(Bs,qs,Te)),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,n,o){return{props:{...xe,...Ie,...rr},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=Le.useFoxI18n(n),g=d(l,["placeholder"]),b=t.ref(!1),w=ge(l,"modelValue",null,c),p=e,f=t.computed(()=>({[p]:!0})),h=x=>{w.value=x,c("update:modelValue",x),c("input",x)},D=x=>{c("change",x)},I=x=>{c("select",x)};let C=ge(l,"hintText"),q=t.ref(!1);const j=x=>{let y=x.target.value;b.value=!0,pe(C.value)||(q.value=!0),c("focus",y,x)},B=x=>{setTimeout(()=>{q.value&&(q.value=!1),b.value=!1},0);let y=x.target.value;l.maxLength&&y.length>Number(l.maxLength)&&(y=y.slice(0,Number(l.maxLength))),c("blur",y,x)},_=()=>{c("clear","")},L=t.ref();return we({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()},select:()=>{L?.value.select()},setDisabled:x=>{a.value=x},setReadonly:x=>{u.value=x}}),()=>{const E={...r.attrs,ref:L,class:f.value,placeholder:g.placeholder.value,clearable:l.clearable,disabled:i.value,readonly:s.value,modelValue:w.value,onClear:_,onChange:D,onInput:h,onFocus:j,onBlur:B,onSelect:I},y={};r.slots.prepend&&(y.prepend=r.slots.prepend),r.slots.append&&(y.append=r.slots.append),r.slots.prefix&&(y.prefix=r.slots.prefix),r.slots.suffix&&(y.suffix=r.slots.suffix),r.slots.option&&(y.default=r.slots.option);const P=[],J=t.h(v.ElAutocomplete,E,y);P.push(J);const A={default:()=>P};r.slots.default&&(A.label=r.slots.default),r.slots.fixedTip&&(A.fixedTip=r.slots.fixedTip);const F={...Ne(l,rr),hintText:C.value,hintVisible:q.value};return l.prop&&(F.prop=`${l.prop}_item`),t.h(o,F,A)}}}}const{componentName:js,create:zs,scope:Hs}=se("autocomplete-item"),el=zs(Ps(js,Hs,Te));function Ks(e,n,o,l,r){let a=[];Array.isArray(e)?a=e:a=[e];const i=[],u=n[0];if(Array.isArray(e)&&!Array.isArray(u)&&!u[r]){let s=n;for(let c=0;s&&c<a.length;c++){let d=a[c],g=s.find(b=>b[l]===d);if(!g)break;i.push(g[o])}return i}if(Array.isArray(u))for(let s=0;s<n.length&&s<a.length;s++){let c=n[s],d=a[s];const g=c.find(b=>b[l]===d);if(!g)break;i.push(g[o])}else{let s=n;for(let c=0;s&&c<a.length;c++){let d=a[c],g=s.find(b=>b[l]===d);if(!g)break;i.push(g[o]),s=g[r]}}return i}let Ws=class{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const r=Pe(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(We(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await r(o,l))}};function Ys(){const e=t.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,n){return{props:{...ar},setup(o,{attrs:l,slots:r}){const a=Ys(),i=t.ref([]);t.watch([()=>o.source,()=>o.params],async([c,d])=>{i.value=await a.load(o.sourceType,c,d)},{immediate:!0});const u=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let c=Ks(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return c.length==0?o.emptyText??"":c.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${c[0]}`:c[0]:c.join(o.separator)}),s=o.resolveTag?t.resolveComponent(o.tag):o.tag;return()=>{const c={...l};return r.default?r.default({text:u.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===u.value?t.h(o.emptyTag??"span",{...l,class:o.emptyClass},u.value):t.h(s,c,{default:()=>u.value}):t.h(s,c,u.value)}}}}const{componentName:Ch,create:Us,scope:Eh}=se("mapping"),It=Us(Gs());function Xs(e,n){let o=n.split("."),l=e;for(let r=0;r<o.length;r++){let a=o[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 g=a.substring(0,u);l=l[g][d]}else l=l[d];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(l=l[a])}return l}function Zs(e,n){return{props:{...ar},setup(o,{attrs:l,slots:r}){return()=>{const a={default:i=>{const u=Xs(i.row,i.column.property);return r.default?t.h(It,{...o,modelValue:u},{default:r.default}):t.h(It,{...o,modelValue:u})}};for(let i in r)i!=="default"&&(a[i]=r[i]);return t.h(v.ElTableColumn,{...l},a)}}}}const{componentName:Nh,create:Js,scope:kh}=se("table-mapping-column"),tl=Js(Zs()),Qs=Symbol.for("TableStateKey");function ir(e,n){let o=n.split("."),l=e;for(let r=0;r<o.length;r++){let a=o[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 g=a.substring(0,u);l=l[g][d]}else l=l[d];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(l=l[a])}return l}function eu(e,n){return{props:{},setup(o,{attrs:l}){const r=t.inject(Qs,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:u=>{const s=ir(u.row,u.column.property),c=a?ir(a,u.column.property):null,d=s===c,g={class:{"el-radio__input":!0,"is-checked":d}},b=t.h("span",g,[t.h("span",{class:{"el-radio__inner":!0}})]),w={class:{"el-radio":!0,"is-checked":d}};return t.h("label",w,[b])}};return t.h(v.ElTableColumn,{...l},i)}}}}const{componentName:Ih,create:tu,scope:Oh}=se("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=[t.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,n){return t.openBlock(),t.createElementBlock("svg",lu,ou)}const au=_e(nu,[["render",ru]]),{componentName:Dh,create:iu,scope:Fh}=se("table-setting"),su={tableRef:{type:Object},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}},uu=iu({components:{FoxPopover:v.ElPopover,FoxCheckbox:v.ElCheckbox,FoxCheckboxGroup:v.ElCheckboxGroup,FoxButton:v.ElButton,FoxIcon:v.ElIcon,DragIcon:au,Download:Ce.Download,RefreshLeft:Ce.RefreshLeft},props:{...su},setup(e,{emit:n,attrs:o}){let l=[];const r=t.ref([]),a=t.computed(()=>r.value.filter(S=>S.label===""||S.type?!1:S.fixed===""||S.fixed===!0||S.fixed==="left")),i=t.computed(()=>r.value.filter(S=>S.label===""||S.type?!1:S.fixed==="right")),u=t.computed(()=>r.value.filter(S=>!(S.label===""||S.type||S.fixed!==void 0))),s=t.computed(()=>(a.value.length>0||i.value.length>0)&&u.value.length>0),c=t.computed(()=>a.value.length>0),d=t.computed(()=>i.value.length>0),g=S=>S.length>1,b=(S,z)=>{Array.isArray(S)&&Array.isArray(z)&&S.forEach(G=>{z.some(W=>W.prop===G.prop?(G.label=W.label,!0):!1)});const U=[];r.value=S.map((G,W)=>(!(G.label===""||G.type)&&G.visible!==!1&&U.push(G.prop),{...G,sortIndex:W})),u.value.length+a.value.length+i.value.length===U.length?I.value=!0:U.length>0&&(C.value=!0),B.value=U},w=S=>S?S.type?S.type:S.label?S.prop:"":"",p=(S,z)=>{if(S.length!==z.length)return!1;const U=S.map(ne=>w(ne));for(let ne of z){const G=w(ne);if(U.indexOf(G)===-1)return!1}return!0},f=S=>{if(!S){const z=e.tableRef.getColumnSetting(),U=z.srcColumnPropertyList;l=U.map((ne,G)=>({...ne,sortIndex:G})),S=z.columnPropertyList,S&&S.length>0&&p(U,S)||(S=U)}b(S,l)},h=()=>{e.tableRef.setColumnSetting(r.value)},D=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),I=t.ref(!1),C=t.ref(!1),q=S=>{const z=[];r.value.forEach(ne=>{S&&!(ne.label===""||ne.type)&&z.push(ne.prop),ne.visible=S}),I.value=!1,C.value=!1,u.value.length+a.value.length+i.value.length===z.length?I.value=!0:z.length>0&&(C.value=!0),B.value=z,h()},j=()=>{f(l),h()},B=t.ref([]),_=S=>{r.value.forEach(U=>{if(U.label===""||U.type)return;const ne=S.indexOf(U.prop)!==-1;U.visible=ne}),I.value=!1,C.value=!1;const z=u.value.length+a.value.length+i.value.length;S.length===z?I.value=!0:S.length>0&&(C.value=!0),h()},L=()=>{f()};t.onMounted(()=>{setTimeout(()=>{f()},50)});const x={currentRow:null,index:null,roleType:null},E=S=>S?S.dataset&&S.dataset.role==="row"?S:S.tagName.toLowerCase()!=="body"?(S=S.parentElement,E(S)):null:null,y=S=>{const z=S.currentTarget;z&&z.dataset&&(x.roleType=z.dataset.roleType,x.index=z.dataset.index)},P=S=>{x.currentRow&&(x.currentRow.classList.remove("is-dragover"),x.currentRow=null),x.index=null,x.roleType=null},J=S=>{const z=S.currentTarget;S.relatedTarget;const U=E(z);if(!U)return;const ne=U.dataset&&U.dataset.roleType;x.roleType===ne&&(S.preventDefault(),x.currentRow&&x.currentRow!==U&&x.currentRow.classList.remove("is-dragover"),U.classList.add("is-dragover"),x.currentRow=U)},A=S=>{S.preventDefault(),x.currentRow&&(x.currentRow.classList.remove("is-dragover"),x.currentRow=null)},$=S=>{const z=S.currentTarget,U=E(z);if(!U)return;const ne=U.dataset&&U.dataset.roleType;if(x.roleType!==ne)return;S.preventDefault();const G=Number(x.index),W=Number(U.dataset.index);if(G!==W){if(G<W){const N=r.value[G];r.value.splice(G,1),r.value.splice(W,0,N)}else{const N=r.value[G];r.value.splice(G,1),r.value.splice(W+1,0,N)}b(r.value,l),h()}},F=S=>{const z=r.value[S];z.fixed="left",h()},M=S=>{const z=r.value[S];z.fixed="right",h()},Y=S=>{const z=r.value[S];z.fixed=void 0,h()},Z=new Map;let ee=null;function le(S){const z=document.createRange();return z.setStart(S,0),z.setEnd(S,S.childNodes.length),z.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:u,isShowNotFixedTitle:s,isShowLeftFixedTitle:c,isShowRightFixedTitle:d,isDraggble:g,isCheckAll:I,isIndeterminate:C,handleCheckAllChange:q,handleReset:j,checkedValue:B,handleCheckChange:_,onShow:L,onDragStart:y,onDragEnd:P,onDragOver:J,onDragLeave:A,onDrop:$,toLeftFixed:F,toRightFixed:M,toUnFixed:Y,checkboxLabelStyle:D,onMouseOverForOverflowText:(S,z,U)=>{const ne=S.currentTarget;if(ne){const G=Math.floor(ne.offsetWidth);if(Math.floor(le(ne))>G){let N=Z.get(z);if(N){if(N===ee)return;Fe.hide(N)}N=Fe.show(ne,U,{type:"text",placement:"top",closeOnClick:!1}),N&&(Z.set(z,N),ee=N)}}},onMouseLeaveForOverflowText:(S,z)=>{const U=Z.get(z);U&&(Fe.hide(U),U===ee&&(ee=null))},onMouseOverForTip:(S,z)=>{const U=S.currentTarget;U&&(ee&&Fe.hide(ee),ee=Fe.show(U,z,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:S=>{ee&&(Fe.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,n,o,l,r,a){const i=t.resolveComponent("FoxCheckbox"),u=t.resolveComponent("FoxButton"),s=t.resolveComponent("DragIcon"),c=t.resolveComponent("RefreshLeft"),d=t.resolveComponent("FoxIcon"),g=t.resolveComponent("Download"),b=t.resolveComponent("fox-checkbox"),w=t.resolveComponent("FoxCheckboxGroup"),p=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(p,t.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),default:t.withCtx(()=>[t.createElementVNode("div",cu,[t.createElementVNode("div",fu,[t.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=f=>e.isCheckAll=f),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),t.createVNode(u,{onClick:e.handleReset,link:"",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),t.createElementVNode("div",du,[t.createVNode(w,{modelValue:e.checkedValue,"onUpdate:modelValue":n[28]||(n[28]=f=>e.checkedValue=f),onChange:e.handleCheckChange},{default:t.withCtx(()=>[e.leftFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",hu,[e.isShowLeftFixedTitle?(t.openBlock(),t.createElementBlock("div",gu,t.toDisplayString(e.leftFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.leftFixedColumns,f=>(t.openBlock(),t.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:n[5]||(n[5]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:n[6]||(n[6]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:n[7]||(n[7]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:n[8]||(n[8]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:n[9]||(n[9]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.leftFixedColumns)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",value:f.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,f.prop,f.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,f.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(f.label),45,pu)]),_:2},1032,["value"]),t.createElementVNode("div",yu,[t.createVNode(d,{onClick:h=>e.toUnFixed(f.sortIndex),onMouseover:n[1]||(n[1]=h=>e.onMouseOverForTip(h,e.unFixedText)),onMouseleave:n[2]||(n[2]=h=>e.onMouseLeaveForTip(h))},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"]),t.createVNode(d,{onClick:h=>e.toRightFixed(f.sortIndex),onMouseover:n[3]||(n[3]=h=>e.onMouseOverForTip(h,e.fixedRightText)),onMouseleave:n[4]||(n[4]=h=>e.onMouseLeaveForTip(h))},{default:t.withCtx(()=>[t.createVNode(g)]),_:2},1032,["onClick"])])],40,mu))),128))])):t.createCommentVNode("",!0),e.unFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",bu,[e.isShowNotFixedTitle?(t.openBlock(),t.createElementBlock("div",vu,t.toDisplayString(e.unFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.unFixedColumns,f=>(t.openBlock(),t.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:n[14]||(n[14]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:n[15]||(n[15]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:n[16]||(n[16]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:n[17]||(n[17]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:n[18]||(n[18]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.unFixedColumns)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",value:f.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,f.prop,f.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,f.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(f.label),45,Su)]),_:2},1032,["value"]),t.createElementVNode("div",xu,[t.createVNode(d,{onClick:h=>e.toLeftFixed(f.sortIndex),onMouseover:n[10]||(n[10]=h=>e.onMouseOverForTip(h,e.fixedLeftText)),onMouseleave:n[11]||(n[11]=h=>e.onMouseLeaveForTip(h)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(g)]),_:2},1032,["onClick"]),t.createVNode(d,{onClick:h=>e.toRightFixed(f.sortIndex),onMouseover:n[12]||(n[12]=h=>e.onMouseOverForTip(h,e.fixedRightText)),onMouseleave:n[13]||(n[13]=h=>e.onMouseLeaveForTip(h))},{default:t.withCtx(()=>[t.createVNode(g)]),_:2},1032,["onClick"])])],40,wu))),128))])):t.createCommentVNode("",!0),e.rightFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",Tu,[e.isShowRightFixedTitle?(t.openBlock(),t.createElementBlock("div",$u,t.toDisplayString(e.rightFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.rightFixedColumns,f=>(t.openBlock(),t.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:n[23]||(n[23]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:n[24]||(n[24]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:n[25]||(n[25]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:n[26]||(n[26]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:n[27]||(n[27]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.rightFixedColumns)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(b,{class:"checkbox-item",label:f.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,f.prop,f.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,f.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(f.label),45,Eu)]),_:2},1032,["label"]),t.createElementVNode("div",Nu,[t.createVNode(d,{onClick:h=>e.toUnFixed(f.sortIndex),onMouseover:n[19]||(n[19]=h=>e.onMouseOverForTip(h,e.unFixedText)),onMouseleave:n[20]||(n[20]=h=>e.onMouseLeaveForTip(h))},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"]),t.createVNode(d,{onClick:h=>e.toLeftFixed(f.sortIndex),onMouseover:n[21]||(n[21]=h=>e.onMouseOverForTip(h,e.fixedLeftText)),onMouseleave:n[22]||(n[22]=h=>e.onMouseLeaveForTip(h)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(g)]),_:2},1032,["onClick"])])],40,Cu))),128))])):t.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const an=_e(uu,[["render",ku]]);let Iu=class{proxy;constructor(n){this.proxy=n}async load(n,o,l,r,a,i,u){if(Array.isArray(o)){let c=(l-1)*r,d=c+r;d>o.length&&(d=o.length);const g=o.slice(c,d);return{totalSize:o.length,page:g}}if(typeof o=="function")return await Reflect.apply(o,null,[l,r,a,i,u]);const s=Pe(this.proxy,n);return s===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(We(a)&&t.isReactive(a)&&(a=t.toRaw(a)),await Reflect.apply(s,null,[o,l,r,a,i,u]))}};function Ou(){const e=t.getCurrentInstance();return new Iu(e.proxy)}class Vu{proxy;constructor(n){this.proxy=n}async load(n){let o=null;const l=Pe(this.proxy,"tableSetting");return typeof l=="function"&&(o=await Reflect.apply(l,null,["load",n])),o}save(n,o){const l=Pe(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["save",n,o])}remove(n){const o=Pe(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",n])}}function sr(){const e=t.getCurrentInstance();return new Vu(e.proxy)}const Du=Symbol.for("TableStateKey"),ur={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},appearLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]},cellClassName:{type:Function},rowClickSelectable:{type:[String,Boolean],required:!1,default:!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:!1},showSetting:{type:[Boolean],required:!1,default:!1},footerAlign:{type:[String],required:!1,default:"right"}},cr={pageIndex:{type:[Number],required:!1,default:1},pageSize:{type:[Number],required:!1,default:10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:"right"},paginationBackground:{type:[Boolean],required:!1,default:!1},paginationSmall:{type:[Boolean],required:!1,default:!0},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},ll={popoverWidth:{type:[String,Number],required:!1,default:280},popoverPlacement:{type:[String],required:!1,default:"top-start"},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}},Fu={infiniteLoad:{type:Boolean,default:!1},loadText:{type:String,default:"加载中..."},loadMoreText:{type:String,default:"无更多数据"}};function Ru(e,n){let o=n.split("."),l=e;for(let r=0;r<o.length;r++){let a=o[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 g=a.substring(0,u);l=l[g][d]}else l=l[d];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(l=l[a])}return l}function ol(e,n){return e.filter(l=>{for(let r in n){const a=n[r],i=Ru(l,r);if(a!==i)return!1}return!0})}function Au(e,n,o){return{inheritAttrs:!1,props:{...xe,...Ie,...ur,...cr,...ll,...Fu},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(l,r){const{locale:a}=Le.useFoxI18n(n),{emitEvent:i}=$e({componentName:e,validateHandler:{getValue(...Q){return B.value}}},l.prop??r.attrs.name),u=e,s=t.computed(()=>({[u]:!0})),c=t.computed(()=>({[`${u}__setting`]:!0})),d=t.computed(()=>({[`${u}__footer`]:!0,[`${u}__footer__${l.footerAlign}`]:!0})),g=t.computed(()=>({[`${u}__pagination`]:!0,[`${u}__pagination__${l.paginationAlign}`]:!0})),b=t.shallowRef({}),w=t.computed(()=>({...b.value,...l.params??{},...l.baseParams??{}})),p=t.ref(l.infiniteLoad===!0?0:l.pageIndex),f=t.ref(l.pageSize),h=ue(l.infiniteLoad);h||(t.watch(()=>l.pageIndex,Q=>{p.value=Q}),t.watch(()=>l.pageSize,Q=>{f.value=Q}),t.watch([p,f],([Q,re],[ae,fe])=>{re!==fe&&(p.value=1,Q=1),E(l.data,Q,re,w.value)}));const D=()=>Array.isArray(l.data)?!0:ue(l.autoLoad);D()&&t.watch([()=>l.data,w],async([Q,re],[ae,fe])=>{D()&&(Q!==ae&&(L=!0),!(!Array.isArray(Q)&&Ye(Q,ae)&&Ye(re,fe))&&(h?(p.value=0,q.value=!0,B.value=[],P()):p.value===1?E(Q,p.value,f.value,re):p.value=1))},{deep:!0});const I=Q=>{p.value=Q,i("page-index-change",Q)},C=Q=>{f.value=Q,i("page-size-change",Q)},q=t.ref(!0),j=t.ref(0),B=t.ref(),_=Ou();let L=!0;const x=Oe(t.computed(()=>l.appearLoad),"appearLoad",Me.Near,Q=>ue(Q)),E=async(Q,re,ae,fe,ye)=>{L=!1;try{if(ye===!0){if(!q.value)return!1;const me=await _.load("table",Q,re,ae,fe,L,a.value);return j.value=me.totalSize,!me.page||!Array.isArray(me.page)||(Reflect.apply([].push,B.value,me.page),setTimeout(()=>{i("loaded-data")},250),(B.value?.length??0)>=j.value)||me.page.length<ae?(q.value=!1,!1):!0}else{const me=await _.load("table",Q,re,ae,fe,L,a.value);return j.value=me.totalSize,B.value=me.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(me){console.error("[FoxUI] Load Table Data Fail",me),j.value=0,B.value=[]}return!1};let y=!1;const P=async()=>{if(!y){if(y=!0,!q.value){y=!1;return}p.value+=1,await E(l.data,p.value,f.value,w.value,!0),y=!1}},J=(Q={},re=!1)=>new Promise(async ae=>{b.value={...t.toRaw(Q??{})},re||(p.value=l.pageIndex??1),h===!0?(p.value=0,B.value=[],q.value=!0,await P()):await E(l.data,p.value,f.value,w.value),ae()}),A=()=>{j.value=0,B.value=[],h===!0&&(p.value=0,q.value=!0)};let $=!1;const F=()=>{$||($=!0,J())},M=t.ref(null);if(h===!0){let Q=null;const re=()=>{M.value&&(Q=new IntersectionObserver(fe=>{let ye=!1;for(let me of fe)if(me.intersectionRatio>0){ye=!0;break}ye&&P()}),Q.observe(M.value))},ae=()=>{!Q||!M.value||(Q.unobserve(M.value),Q=null)};t.onMounted(re),t.onBeforeUnmount(ae)}D()&&!x.value&&J();const Y=t.ref(null);t.provide(Du,{currentRow:Y});const Z=(Q,re)=>{Y.value=Q,i("current-change",Q,re)},ee=(Q,re,ae)=>{i("row-click",Q,re,ae),ue(l.rowClickSelectable)===!0&&ie?.value.toggleRowSelection(Q)},le=[],O=(Q,re)=>{if(i("expand-change",Q,re),ue(l.uniqueExpansion))if(Array.isArray(re)&&re.length==0){const ae=le.length;le.splice(0,ae)}else{le.forEach(fe=>{fe!==Q&&ie?.value.toggleRowExpansion(fe,!1)});const ae=le.length;le.splice(0,ae,Q)}},T=r.attrs.id??l.prop??r.attrs.name,R=sr(),V=t.ref([]);let S=[];const z=()=>({srcColumnPropertyList:S.map(re=>({...re})),columnPropertyList:V.value}),U=Q=>{V.value=[...Q],G()},ne=async()=>{const Q=await R.load(T);Q&&(V.value=Q)},G=()=>{R.save(T,V.value)},W=()=>{R.remove(T)};ne();const N=Q=>Q?Q.type?Q.type:Q.label?Q.prop:"":"",H=()=>typeof r.slots.default=="function"?r.slots.default():[],X=(Q,re={})=>{for(let ae in re){const fe=re[ae];typeof fe!="function"&&(Q[ae]=fe)}},k=t.computed(()=>{const Q=H(),re=new Map;if(S=[],Q.forEach(ae=>{const ye=ae;if(!ye.props)return;const me=N(ye.props);re.set(me,ye);const Je={label:"",prop:""};X(Je,ye.props),S.push(Je)}),V.value.length===S.length){const ae=[];for(let fe of V.value){const ye=N(fe),me=re.get(ye);if(!me)return Q;if(fe.visible===!1)continue;const Je=me;Je.props.fixed=fe.fixed,ae.push(Je)}return ae}return Q}),K=t.shallowRef(new Map),te=({column:Q,rowIndex:re})=>{const ae=`${re}_${Q.property}`;return K.value.get(ae)??""},oe=Q=>typeof Q=="function"?re=>{const ae=[];let fe=te(re);return fe&&ae.push(fe),fe=Q(re),fe&&ae.push(fe),ae.length===0?"":ae.join(" ")}:te,ce=(Q,re,ae)=>{const fe=`${Q}_${re}`;ae?K.value.set(fe,ae):K.value.delete(fe),t.triggerRef(K)},ie=t.ref();return we({clearSelection:()=>ie?.value.clearSelection(),getSelectionRows:()=>ie?.value.getSelectionRows(),toggleRowSelection:(Q,re)=>{ie?.value.toggleRowSelection(Q,re)},toggleRowSelectionByProp:(Q,re)=>{if(!B.value)return;const ae=ol(B.value,Q);ae.length!==0&&ae.forEach(fe=>{ie?.value.toggleRowSelection(fe,re)})},toggleAllSelection:()=>{ie?.value.toggleAllSelection()},toggleRowExpansion:(Q,re)=>{ie?.value.toggleRowExpansion(Q,re)},toggleRowExpansionByProp:(Q,re)=>{if(!B.value)return;const ae=ol(B.value,Q);ae.length!==0&&ae.forEach(fe=>{ie?.value.toggleRowExpansion(fe,re)})},setCurrentRow:Q=>{ie?.value.setCurrentRow(Q)},setCurrentRowByProp:Q=>{if(!B.value)return;const re=ol(B.value,Q);re.length!==0&&ie?.value.setCurrentRow(re[0])},getCurrentRow:()=>Y.value,clearSort:()=>{ie?.value.clearSort()},clearFilter:Q=>{ie?.value.clearFilter(Q)},doLayout:()=>{ie?.value.doLayout()},sort:(Q,re)=>{ie?.value.sort(Q,re)},scrollTo:(Q,re)=>{ie?.value.scrollTo(Q,re)},setScrollTop:Q=>{ie?.value.setScrollTop(Q)},setScrollLeft:Q=>{ie?.value.setScrollLeft(Q)},loadData:J,clearData:A,getData(){return B.value},getTotalSize(){return j.value},getPageIndex(){return p.value},getPageSize(){return f.value},getColumnSetting:z,setColumnSetting:U,removeColumnSetting:W,setCellClassName:ce}),()=>{const re={...He(r.attrs),onCurrentChange:Z,onRowClick:ee,onExpandChange:O,data:B.value,ref:ie,class:s.value,"cell-class-name":oe(l.cellClassName)},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),h===!0){const je=[];if(q.value){const Ft=t.h(Ce.Loading,{class:`${u}__infinite-icon`});je.push(Ft);const _l=t.h("span",{class:`${u}__infinite-text`},[l.loadText]);je.push(_l)}else{const Ft=t.h("span",{class:`${u}__infinite-text`},[l.loadMoreText]);je.push(Ft)}const st={ref:M,class:`${u}__infinite`},Bl=t.h("div",st,je);ae.append=()=>Bl}const fe=t.h(v.ElTable,re,ae),ye=[];if(ye.push(fe),!h){let je=null;if(typeof r.slots.pagination=="function")je=r.slots.pagination();else if(l.showPagination){const st={class:g.value,total:j.value,pageSize:f.value,"onUpdate:pageSize":C,pageSizes:l.pageSizes,currentPage:p.value,"onUpdate:currentPage":I,hideOnSinglePage:l.hideOnSinglePage,layout:l.paginationLayout,samll:l.paginationSmall,background:l.paginationBackground};je=t.h(v.ElPagination,st)}if(l.showSetting){const st=[];je&&st.push(je);const Bl=t.h(v.ElIcon,{class:c.value},{default:()=>t.h(Ce.Setting)}),Ft=io(l,ll),_l=t.h(an,{...Ft,tableRef:{getColumnSetting:z,setColumnSetting:U,removeColumnSetting:W}},{default:()=>Bl});st.push(_l);const bh=t.h("div",{class:d.value},st);ye.push(bh)}else je&&ye.push(je)}const me={default:()=>ye},yt={...Ne(l,ur,cr,ll)};return l.prop&&(yt.prop=`${l.prop}_item`),yt.contentClass=`${u}__wrap`,yt.errorMarkClass="is-table-error",x.value&&D()&&(yt["appear-listen"]=!0,yt.onAppear=F),t.h(o,yt,me)}}}}const{componentName:Lu,create:Mu,scope:Bu}=se("table-item"),rl=Mu(Au(Lu,Bu,Te));function ht(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ot(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function _u(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let qu=class{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const r=Pe(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(We(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await r(o,l))}};function Pu(){const e=t.getCurrentInstance();return new qu(e.proxy)}function fr(e,n,o){if(n===o)return!0;if(n===null||o===null)return!1;const l=ht(e,n),r=ht(e,o);if(l!==r)return!1;const a=Ot(e,n),i=Ot(e,o);return a===i}function ju(e,n,o,l){if(l.length==0||n===""||n===null||n===void 0)return null;let r=null;for(let a of l){let i=!1;if(o==="text")i=ht(e,a)===n;else if(o==="item")i=fr(e,a,n);else{let u=Ot(e,a);u==null&&(u=ht(e,a)),i=u===n}if(i){r=a;break}}return r}function zu(e){return{text:e,value:e}}function Hu(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,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,n,o){return{inheritAttrs:!0,props:{...xe,...Ie,...dr},emits:["change","update:modelValue","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),d=t.ref(null),g=t.ref(null),b=(x,E,y,P=!0)=>{const J=ju(l,x,E,y);if(J===null){if(g.value===null)return;g.value=null,d.value=null,P&&(c("update:modelValue",null),c("change",null));return}if(!fr(l,J,g.value)){d.value=x;const $=t.toRaw(J);g.value=$;let F=null;l.valueType==="text"?F=ht(l,$):l.valueType==="item"?F=$:F=Ot(l,$),P&&(c("update:modelValue",F),c("change",F))}},w=t.ref([]),p=Oe(t.computed(()=>l.appearLoad),"appearLoad",Me.Near,x=>ue(x)),f=Pu(),h=async(x,E)=>{if(x){const y=await f.load("radio",x,E);if(y.length>0)if(typeof y[0]=="string"){let A=y.map($=>zu($));w.value=A}else w.value=y}};t.watch([()=>l.source,()=>l.params],async([x,E])=>{h(x,E)},{immediate:!p.value});let D=!1;const I=()=>{D||(D=!0,h(l.source,l.params))};t.watch([()=>w.value,()=>l.modelValue],([x,E])=>{b(E,l.valueType,x,!1),c("setValue",E)});const C=e,q=t.computed(()=>({[C]:!0,[`is-${l.direction}`]:!0})),j=x=>{b(x,"value",w.value,!0)};let B=ge(l,"hintText"),_=ge(l,"hintVisible");const L=(x,E)=>{const y=[];return x.forEach((P,J)=>{const A=Ot(l,P),$=ht(l,P);let F=_u(l,P);i.value===!0&&(F=i.value),s.value===!0&&(F=s.value);const M=Hu(l,P,J)??{},Y=`${A}_${J}`,Z={...M,key:Y,value:A,size:l.size,border:ue(l.border)};F&&(Z.disabled=F),l.itemType==="button"?y.push(t.h(v.ElRadioButton,Z,{default:()=>[$]})):typeof E=="function"?y.push(t.h(v.ElRadio,Z,{default:()=>E(P)})):y.push(t.h(v.ElRadio,Z,{default:()=>[$]}))}),y};return we({setDisabled:x=>{a.value=x},setReadonly:x=>{u.value=x}}),()=>{const E={...He(r.attrs),class:q.value,disabled:i.value||s.value,modelValue:d.value,"text-color":l.textColor,fill:l.fill,onChange:j},y=[],P={};r.slots.options?P.default=r.slots.options:P.default=()=>L(w.value,r.slots.text);const J=t.h(v.ElRadioGroup,E,P);y.push(J);const A={default:()=>y};r.slots.default&&(A.label=r.slots.default),r.slots.fixedTip&&(A.fixedTip=r.slots.fixedTip);const F={...Ne(l,dr),hintText:B.value,hintVisible:_.value};return l.prop&&(F.prop=`${l.prop}_item`),p.value&&(F["appear-listen"]=!0,F.onAppear=I),t.h(o,F,A)}}}}const{componentName:Wu,create:Yu,scope:Gu}=se("radio-item"),al=Yu(Ku(Wu,Gu,Te));function gt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function mt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Uu(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Xu=class{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const r=Pe(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(We(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await r(o,l))}};function Zu(){const e=t.getCurrentInstance();return new Xu(e.proxy)}function hr(e,n,o){if(n===o)return!0;if(n===null||o===null)return!1;const l=gt(e,n),r=gt(e,o);if(l!==r)return!1;const a=mt(e,n),i=mt(e,o);return a===i}function Ju(e,n,o,l){if(l.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const r=[];return n.forEach(a=>{for(let i of l){let u=!1;if(o==="text")u=gt(e,i)===a;else if(o==="item")u=hr(e,i,a);else{let s=mt(e,i);s==null&&(s=gt(e,i)),u=s===a}if(u){r.push(i);break}}}),r}function Qu(e){return{text:e,value:e}}function ec(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,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,n,o){return{inheritAttrs:!0,props:{...xe,...Ie,...gr},emits:["change","update:modelValue","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),d=t.ref([]),g=t.ref([]),b=(x,E,y,P=!0)=>{const J=Ju(l,x,E,y);if(J===null){if(g.value===null||g.value.length===0)return;d.value=[],g.value=[],P&&(c("update:modelValue",[]),c("change",[]));return}let A=!0;if(J.length!==g.value.length)A=!1;else for(let $=0;$<J.length;$++){const F=J[$],M=g.value[$];if(!hr(l,F,M)){A=!1;break}}if(!A){g.value=J;let $=[],F=[];J.forEach(Y=>{$.push(mt(l,Y)),l.valueType==="text"?F.push(gt(l,Y)):l.valueType==="item"?F.push(Y):F.push(mt(l,Y))}),d.value=$;const M=t.toRaw(F);P&&(c("update:modelValue",M),c("change",M))}},w=t.ref([]),p=Oe(t.computed(()=>l.appearLoad),"appearLoad",Me.Near,x=>ue(x)),f=Zu(),h=async(x,E)=>{if(x){const y=await f.load("checkbox",x,E);if(y.length>0)if(typeof y[0]=="string"){let A=y.map($=>Qu($));w.value=A}else w.value=y}};t.watch([()=>l.source,()=>l.params],async([x,E])=>{h(x,E)},{immediate:!p.value});let D=!1;const I=()=>{D||(D=!0,h(l.source,l.params))};t.watch([()=>w.value,()=>l.modelValue],([x,E])=>{b(E,l.valueType,x,!1),c("setValue",E)});const C=e,q=t.computed(()=>({[C]:!0,[`is-${l.direction}`]:!0})),j=x=>{b(x,"value",w.value,!0)};let B=ge(l,"hintText"),_=ge(l,"hintVisible");const L=(x,E)=>{const y=[];return x.forEach((P,J)=>{const A=mt(l,P),$=gt(l,P);let F=Uu(l,P);i.value===!0&&(F=i.value),s.value===!0&&(F=s.value);const M=ec(l,P,J)??{},Y=`${A}_${J}`,Z={...M,key:Y,class:l.itemClass,value:A,size:l.size,border:ue(l.border)};F&&(Z.disabled=F),l.itemType==="button"?y.push(t.h(v.ElCheckboxButton,Z,{default:()=>[$]})):typeof E=="function"?y.push(t.h(v.ElCheckbox,Z,{default:()=>E(P)})):y.push(t.h(v.ElCheckbox,Z,{default:()=>[$]}))}),y};return we({setDisabled:x=>{a.value=x},setReadonly:x=>{u.value=x}}),()=>{const E={...He(r.attrs),class:q.value,disabled:i.value||s.value,modelValue:d.value,"text-color":l.textColor,fill:l.fill,max:Se(l.max),min:Se(l.min),onChange:j},y=[],P={};r.slots.options?P.default=r.slots.options:P.default=()=>L(w.value,r.slots.text);const J=t.h(v.ElCheckboxGroup,E,P);y.push(J);const A={default:()=>y};r.slots.default&&(A.label=r.slots.default),r.slots.fixedTip&&(A.fixedTip=r.slots.fixedTip);const F={...Ne(l,gr),hintText:B.value,hintVisible:_.value};return l.prop&&(F.prop=`${l.prop}_item`),p.value&&(F["appear-listen"]=!0,F.onAppear=I),t.h(o,F,A)}}}}const{componentName:nc,create:lc,scope:oc}=se("checkbox-item"),il=lc(tc(nc,oc,Te)),mr={modelValue:{type:[Number,String],required:!1}};function rc(e,n,o){return{props:{...xe,...Ie,...mr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),d=ge(l,"modelValue",D=>Se(D),c),g=e,b=t.computed(()=>({[g]:!0})),w=D=>{c("update:modelValue",D),c("change",D)};let p=ge(l,"hintText"),f=t.ref(!1);const h=t.ref();return we({setDisabled:D=>{a.value=D},setReadonly:D=>{u.value=D}}),()=>{const I={...He(r.attrs),ref:h,class:b.value,readonly:s.value||i.value,modelValue:d.value,onChange:w},C={},q=[],j=t.h(v.ElRate,I,C);q.push(j);const B={default:()=>q};r.slots.default&&(B.label=r.slots.default),r.slots.fixedTip&&(B.fixedTip=r.slots.fixedTip);const L={...Ne(l,mr),hintText:p.value,hintVisible:f.value};return l.prop&&(L.prop=`${l.prop}_item`),t.h(o,L,B)}}}}const{componentName:ac,create:ic,scope:sc}=se("rate-item"),sl=ic(rc(ac,sc,Te)),pr={modelValue:{type:[Boolean,String,Number],required:!1}};function uc(e,n,o){return{props:{...xe,...Ie,...pr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),d=ge(l,"modelValue",null,c),g=e,b=t.computed(()=>({[g]:!0})),w=D=>{c("update:modelValue",D),c("change",D)};let p=ge(l,"hintText"),f=ge(l,"hintVisible");const h=t.ref();return we({setDisabled:D=>{a.value=D},setReadonly:D=>{u.value=D}}),()=>{const I={...He(r.attrs),ref:h,class:b.value,readonly:s.value,disabled:i.value,modelValue:d.value,onChange:w},C={},q=[],j=t.h(v.ElSwitch,I,C);q.push(j);const B={default:()=>q};r.slots.default&&(B.label=r.slots.default),r.slots.fixedTip&&(B.fixedTip=r.slots.fixedTip);const L={...Ne(l,pr),hintText:p.value,hintVisible:f.value};return l.prop&&(L.prop=`${l.prop}_item`),t.h(o,L,B)}}}}const{componentName:cc,create:fc,scope:dc}=se("switch-item"),ul=fc(uc(cc,dc,Te)),yr={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function hc(e,n,o){return{props:{...xe,...Ie,...yr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),c=t.ref(!1),{emitEvent:d}=$e({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),g=ge(l,"modelValue",null,d),b=e,w=t.computed(()=>({[b]:!0})),p=_=>{d("update:modelValue",_),d("change",_)};let f=ge(l,"hintText"),h=t.ref(!1);const D=_=>{let x=_.target.value;c.value=!0,pe(f.value)||(h.value=!0),d("focus",x,_)},I=_=>{setTimeout(()=>{h.value&&(h.value=!1),c.value=!1},0);let x=_.target.value;l.maxLength&&x.length>Number(l.maxLength)&&(x=x.slice(0,Number(l.maxLength))),q.value||d("blur",x,_)},C=()=>{d("clear","")},q=t.ref(!1),j=_=>{q.value=_,d("visible-change",_),_||d("selected")},B=t.ref();return we({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},setDisabled:_=>{a.value=_},setReadonly:_=>{u.value=_}}),()=>{const L={...He(r.attrs),ref:B,class:w.value,disabled:i.value||s.value,modelValue:g.value,"onUpdate:modelValue":p,onClear:C,onFocus:D,onBlur:I,onVisibleChange:j},x={};r.slots.option&&(x.default=r.slots.option);const E=[],y=t.h(v.ElTreeSelect,L,x);E.push(y);const P={default:()=>E};r.slots.default&&(P.label=r.slots.default),r.slots.fixedTip&&(P.fixedTip=r.slots.fixedTip);const A={...Ne(l,yr),hintText:f.value,hintVisible:h.value};return l.prop&&(A.prop=`${l.prop}_item`),t.h(o,A,P)}}}}const{componentName:gc,create:mc,scope:pc}=se("tree-select-item"),cl=mc(hc(gc,pc,Te)),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=[t.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,n){return t.openBlock(),t.createElementBlock("svg",bc,vc)}const Sc=_e(yc,[["render",wc]]),{componentName:Ah,create:xc,scope:Lh}=se("group-setting"),Tc={groupProp:{type:[String]},groupRef:{type:[Object]},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"条件筛选"},resetText:{type:[String],required:!1,default:"重置"},initDelay:{type:[Number],required:!1,default:50},toTopText:{type:[String],required:!1,default:"到顶部"},toBottomText:{type:[String],required:!1,default:"到底部"}},$c=xc({components:{FoxPopover:v.ElPopover,FoxCheckbox:v.ElCheckbox,FoxCheckboxGroup:v.ElCheckboxGroup,FoxButton:v.ElButton,FoxIcon:v.ElIcon,DragIcon:Sc,Download:Ce.Download,RefreshLeft:Ce.RefreshLeft},props:{...Tc},emits:["change"],setup(e,{emit:n,attrs:o,expose:l}){let r=null;const a=t.ref([]),i=sr(),u=O=>O.length>1,s=()=>{const O=[],T=[...a.value];a.value=T.map((V,S)=>(V.visible!==!1&&O.push(V.prop),{...V,sortIndex:S})),a.value.length===O.length?f.value=!0:O.length>0&&(h.value=!0),C.value=O},c=O=>{let T=null;if(typeof O=="string")T=document.querySelectorAll(`.fox-group[prop="${O}"] > div > .fox-item[prop]`);else if(O&&typeof O=="object"){const V=O.$el??O;typeof V.querySelectorAll=="function"&&(T=V.querySelectorAll(".fox-item[prop]"))}if(!T)return[];const R=[];return T.forEach(V=>{const S=V.querySelector(".label--string");let z="";S&&(z=S.textContent??"");const U=V.getAttribute("prop")??"",G=window.getComputedStyle(V,null).getPropertyValue("display");R.push({label:z,prop:U,sortIndex:0,visible:G!=="none"})}),R},d=()=>{if(!r){const O=c(e.groupRef??e.groupProp);if(O.length===0)return!1;r=O}return!0},g=async(O=!1)=>{const T=await i.load(e.groupProp),R=V=>{if(!V||!r)return;const S=r.map(z=>({...z}));Array.isArray(T)&&T.forEach(z=>{S.some(U=>{if(U.prop===z.prop){const ne=U.label;return Object.assign(U,z),U.label=ne,!0}return!1})}),a.value=S.sort((z,U)=>z.sortIndex-U.sortIndex),s(),O&&w(!1)};r?R(!0):Ht(d,e.initDelay,5,50,!1,R)},b=()=>{const O=r??[];a.value=O.map(T=>({...T})),s(),w()},w=(O=!0)=>{O&&i.save(e.groupProp,a.value);const T=a.value.map(R=>({...R}));n("change",T)},p=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),f=t.ref(!1),h=t.ref(!1),D=O=>{const T=[];a.value.forEach(V=>{O&&T.push(V.prop),V.visible=O}),f.value=!1,h.value=!1,a.value.length===T.length?f.value=!0:T.length>0&&(h.value=!0),C.value=T,w()},I=()=>{b()},C=t.ref([]),q=O=>{a.value.forEach(R=>{const V=O.indexOf(R.prop)!==-1;R.visible=V}),f.value=!1,h.value=!1;const T=a.value.length;O.length===T?f.value=!0:O.length>0&&(h.value=!0),w()},j=()=>{g()};t.onMounted(()=>{g(!0)});const B={currentRow:null,index:null},_=O=>O?O.dataset&&O.dataset.role==="row"?O:O.tagName.toLowerCase()!=="body"?(O=O.parentElement,_(O)):null:null,L=O=>{const T=O.currentTarget;T&&T.dataset&&(B.index=T.dataset.index)},x=O=>{B.currentRow&&(B.currentRow.classList.remove("is-dragover"),B.currentRow=null),B.index=null},E=O=>{const T=O.currentTarget;O.relatedTarget;const R=_(T);R&&(O.preventDefault(),B.currentRow&&B.currentRow!==R&&B.currentRow.classList.remove("is-dragover"),R.classList.add("is-dragover"),B.currentRow=R)},y=O=>{O.preventDefault(),B.currentRow&&(B.currentRow.classList.remove("is-dragover"),B.currentRow=null)},P=O=>{const T=O.currentTarget,R=_(T);if(!R)return;O.preventDefault();const V=Number(B.index),S=Number(R.dataset.index);if(V!==S){if(V<S){const z=a.value[V];a.value.splice(V,1),a.value.splice(S,0,z)}else{const z=a.value[V];a.value.splice(V,1),a.value.splice(S+1,0,z)}s(),w()}},J=O=>{const T=a.value[O];a.value.splice(O,1),a.value.splice(0,0,T),s(),w()},A=O=>{const T=a.value[O];a.value.splice(O,1),a.value.push(T),s(),w()};l({refresh:()=>{r=null,g(!1)}});const $=new Map;let F=null;function M(O){const T=document.createRange();return T.setStart(O,0),T.setEnd(O,O.childNodes.length),T.getBoundingClientRect().width}return{attrs:o,itemPropertyList:a,isDraggble:u,isCheckAll:f,isIndeterminate:h,handleCheckAllChange:D,handleReset:I,checkedValue:C,handleCheckChange:q,onShow:j,onDragStart:L,onDragEnd:x,onDragOver:E,onDragLeave:y,onDrop:P,checkboxLabelStyle:p,toTop:J,toBottom:A,onMouseOverForOverflowText:(O,T,R)=>{const V=O.currentTarget;if(V){const S=Math.floor(V.offsetWidth);if(Math.floor(M(V))>S){let U=$.get(T);if(U){if(U===F)return;Fe.hide(U)}U=Fe.show(V,R,{type:"text",placement:"top",closeOnClick:!1}),$.set(T,U),F=U}}},onMouseLeaveForOverflowText:(O,T)=>{const R=$.get(T);R&&(Fe.hide(R),R===F&&(F=null))},onMouseOverForTip:(O,T)=>{const R=O.currentTarget;R&&(F&&Fe.hide(F),F=Fe.show(R,T,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:O=>{F&&(Fe.hide(F),F=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 Dc(e,n,o,l,r,a){const i=t.resolveComponent("FoxCheckbox"),u=t.resolveComponent("FoxButton"),s=t.resolveComponent("DragIcon"),c=t.resolveComponent("Download"),d=t.resolveComponent("FoxIcon"),g=t.resolveComponent("FoxCheckboxGroup"),b=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(b,t.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),default:t.withCtx(()=>[t.createElementVNode("div",Cc,[t.createElementVNode("div",Ec,[t.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=w=>e.isCheckAll=w),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),t.createVNode(u,{onClick:e.handleReset,link:"",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),t.createElementVNode("div",Nc,[t.createVNode(g,{modelValue:e.checkedValue,"onUpdate:modelValue":n[10]||(n[10]=w=>e.checkedValue=w),onChange:e.handleCheckChange},{default:t.withCtx(()=>[t.createElementVNode("div",kc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.itemPropertyList,w=>(t.openBlock(),t.createElementBlock("div",{key:w.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":w.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:n[5]||(n[5]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:n[6]||(n[6]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:n[7]||(n[7]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:n[8]||(n[8]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:n[9]||(n[9]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.itemPropertyList)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:w.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:p=>e.onMouseOverForOverflowText(p,w.prop,w.label),onMouseleave:p=>e.onMouseLeaveForOverflowText(p,w.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(w.label),45,Oc)]),_:2},1032,["label"]),t.createElementVNode("div",Vc,[t.createVNode(d,{onClick:p=>e.toTop(w.sortIndex),onMouseover:n[1]||(n[1]=p=>e.onMouseOverForTip(p,e.toTopText)),onMouseleave:n[2]||(n[2]=p=>e.onMouseLeaveForTip(p)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"]),t.createVNode(d,{onClick:p=>e.toBottom(w.sortIndex),onMouseover:n[3]||(n[3]=p=>e.onMouseOverForTip(p,e.toBottomText)),onMouseleave:n[4]||(n[4]=p=>e.onMouseLeaveForTip(p))},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"])])],40,Ic))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const fl=_e($c,[["render",Dc]]),Fc=["aria-labelledby"],Rc=t.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=t.defineComponent({__name:"MoreH",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,l=n,r=s=>{l("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Ac,14,Fc))}}),Mc=["aria-labelledby"],Bc=t.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=t.defineComponent({__name:"Loading",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,l=n,r=s=>{l("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.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=t.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=t.defineComponent({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,l=n,r=s=>{l("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.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=t.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=t.defineComponent({__name:"Checklist",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,l=n,r=s=>{l("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.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=t.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=t.defineComponent({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,l=n,r=s=>{l("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.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,n)=>n[e.textKey],Vt=(e,n)=>n[e.valueKey],Qc=(e,n)=>n[e.visibleKey],vr=(e,n)=>n[e.disabledKey],ef=(e,n)=>{const o=n[e.doitKey];return ue(o)},tf=(e,n)=>{const o=n[e.numKey];return o==null?null:Se(n[o])},wr=(e,n,o)=>{const l=e.itemOptions;return typeof l=="function"?l(n,o):l||null};function nf(e,n,o,l=!1){return{props:{...Jc},emits:["update:modelValue","change"],setup(r,{slots:a,emit:i}){const u=t.computed(()=>{const O={};return O[`${e}`]=!0,O}),s=t.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}),c=t.computed(()=>({})),d=t.computed(()=>{if(!r.gutter)return 0;const O=he(r.gutter);return O<=0?0:O}),g=t.ref(r.modelValue);t.watch(()=>r.modelValue,O=>{g.value!==O&&(g.value=O,M(!1))});const b=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),w=t.computed(()=>{const O={};return f.value||(O.display="none"),O}),p=t.ref(),f=t.ref(!1),h=()=>{const O=!f.value;D(O)},D=O=>{const T=O;T?(f.value=T,setTimeout(()=>{b.value["fox-tabs-bar__popup--show"]=!0,b.value["fox-tabs-bar__popup--hide"]=!1},0)):(b.value["fox-tabs-bar__popup--show"]=!1,b.value["fox-tabs-bar__popup--hide"]=!0,p.value?p.value.addEventListener("transitionend",()=>{f.value=!1},{once:!0}):setTimeout(()=>{f.value=!1},0))},I=t.ref(),C=t.ref([]),q=(O,T)=>{C.value[T]=O},j=O=>T=>{q(T,O)},B=(O,T)=>{const R=I.value,V=C.value;if(!R||!V||!V[O])return;const S=V[O];let z=0;r.direction==="vertical"?z=S.offsetTop-(R.offsetHeight-S.offsetHeight)/2:z=S.offsetLeft-(R.offsetWidth-S.offsetWidth)/2,_(R,z,T?0:.3,r.direction)},_=(O,T,R,V)=>{let S=0;const z=V==="horizontal"?O.scrollLeft:O.scrollTop,U=R===0?1:Math.round(R*1e3/16);function ne(){V==="horizontal"?O.scrollLeft+=(T-z)/U:O.scrollTop+=(T-z)/U,++S<U&&xn(ne)}ne()},L=(O,T)=>{const R=Vt(r,O),V={};return V[`${e}__titles-item`]=!0,V.disabled=vr(r,O),V.active=R===g.value,r.shape&&(V[`${r.shape}`]=!0),r.ellipsis&&(V.ellipsis=!0),T&&(T.class&&(V[`${T.class}`]=!0),T.disabled===!0&&(V.disabled=T.disabled)),V},x=(O,T)=>{const R={};if(d.value>0){const V=Math.abs(d.value/2);r.direction==="vertical"?(R["margin-top"]=`${V}px`,R["margin-bottom"]=`${V}px`):(R["margin-left"]=`${V}px`,R["margin-right"]=`${V}px`)}return T&&T.style&&Object.assign(R,T.style),R},E=(O,T)=>`${Vt(r,O)??T}`,y=(O,T)=>{const R=Vt(r,O),V={};V[`${e}__popup-item`]=!0,V.disabled=vr(r,O),V.active=R===g.value,r.shape&&(V[`${r.shape}`]=!0);const S=wr(r,O,T);return S&&S.disabled===!0&&(V.disabled=S.disabled),V},P=t.computed(()=>(r.data??[]).filter(T=>Qc(r,T)!==!1)),J=(O,T)=>{const R=Vt(r,O);if(g.value==R)return;const V=()=>{g.value=R,r.scroll&&B(T,!1),i("update:modelValue",R),i("change",O,T)};if(typeof r.beforeChange=="function"){const S=r.beforeChange(O,T);Xl(S)?S.then(z=>{z!==!1&&V()}).catch(()=>{V()}):S!==!1&&V()}else V()},A=(O,T)=>function(){J(O,T)},$=(O,T)=>{J(O,T),D(!1)},F=(O,T)=>function(){$(O,T)},M=O=>{if(!Array.isArray(r.data)||!r.scroll)return;const T=r.data.findIndex(R=>Vt(r,R)===g.value);T!==-1&&B(T,O)};t.watch(()=>r.data,()=>{setTimeout(M,0)}),t.onMounted(()=>{M(!0)});const Y=(O,T)=>{if(a.item)return a.item({item:O,index:T});const R=wr(r,O,T),V=[];if(a.text){const ne=a.text({item:O,index:T});V.push(ne)}else{const ne=[];if(R?.doit===!0||ef(r,O)){const H={class:[`${e}__titles-item-tip`,"doit"]},X=t.h("view",H);ne.push(X)}const G=R?.num??tf(r,O);if(G){let H="";const X=Se(G);X>=100?H="99+":H=`${X}`;const k={class:[`${e}__titles-item-tip`,"num"]},K=t.h("view",k,[H]);ne.push(K)}const W={class:`${e}__titles-item-text`};ne.push(br(r,O));const N=t.h("view",W,ne);V.push(N)}const S={class:`${e}__titles-item-line`},z=t.h("view",S);V.push(z);const U={ref:j(T),class:L(O,R),style:x(O,R),key:E(O,T),onClick:A(O,T)};return t.h("view",U,V)},Z=()=>{const O=a.default?a.default():[];if(O.length===0)for(let R=0;R<P.value.length;R++){const V=P.value[R],S=Y(V,R);O.push(S)}const T={ref:I,class:s.value,style:c.value};return t.h("view",T,O)},ee=()=>{let O=null;a.navigation?O=a.navigation():O=t.h(o);const T={class:`${e}__navigation`,onClick:h};return t.h("view",T,[O])},le=()=>{const O=[];for(let R=0;R<P.value.length;R++){const V=P.value[R];let S=null;a.popupItem?S=a.popupItem({item:V,index:R}):S=br(r,V);const z={class:y(V,R),key:E(V,R),onClick:F(V,R)},U=t.h("view",z,[S]);O.push(U)}const T={class:b.value,style:w.value};return t.h("view",T,O)};return()=>{const O=[],T=Z();if(O.push(T),r.showQuickNavigation){const V=ee();O.push(V);const S=le();O.push(S)}const R={class:u.value};return t.h("view",R,O)}}}}const{create:lf,componentName:of,scope:rf}=se("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,n,o=!1){return{props:{...af},emits:["update:modelValue","change"],setup(l,{emit:r,slots:a}){const i=t.shallowRef([]),u={current:t.ref(l.modelValue??""),direction:t.ref(l.direction),tabWidth:t.ref(-1),tabHeight:t.ref(-1),add:f=>{const h={name:f};u.current.value===f&&(h.loaded=!0),i.value.push(h),t.triggerRef(i)},remove:f=>{const h=i.value.findIndex(D=>D.name===f);h!==-1&&i.value.splice(h,1)},isLoaded:f=>{if(!l.lazy)return!0;const h=i.value.findIndex(D=>D.name===f);return h!==-1?u.current.value?i.value[h].loaded??!1:h===0:!1}};t.provide(Sr,u);const s=f=>{const h=i.value.findIndex(D=>D.name===f);h!==-1&&(i.value[h].loaded=!0,t.triggerRef(i))};t.watch([()=>l.modelValue,()=>l.direction],([f,h])=>{u.current.value!==f&&(u.current.value=f??"",s(f??"")),u.direction.value!==h&&(u.direction.value=h)});const c=t.ref(null),d=t.ref(null),g=t.computed(()=>({[e]:!0,[`${l.direction}`]:!0}));let b=!0;const w=t.computed(()=>{const f={},h=i.value.length;if(h<=0)return f;const D=i.value.findIndex(I=>I.name===u.current.value);return u.direction.value==="vertical"?u.tabHeight.value>0&&(f.height=`${h*u.tabHeight.value}px`,D!==-1&&(f.transform=`translate(0, -${D*u.tabHeight.value}px)`)):u.tabWidth.value>0&&(f.width=`${h*u.tabWidth.value}px`,D!==-1&&(f.transform=`translate(-${D*u.tabWidth.value}px, 0)`)),b&&(b=!1,f.transition="transform 0s ease"),f});let p=null;return t.onMounted(()=>{if(!c.value)return;const f=()=>{const h=Zt(c.value);u.tabWidth.value=h.width,u.tabHeight.value=h.height};window.ResizeObserver&&(p=new window.ResizeObserver(f),p.observe(c.value)),f()}),t.onBeforeUnmount(()=>{p&&(p.disconnect(),p=null)}),()=>{const f={class:`${e}__panes`,style:w.value,ref:d},h=t.h("view",f,[a?.default?.()]),D={class:g.value,ref:c};return t.h("view",D,[h])}}}}const{create:uf,componentName:cf,scope:ff}=se("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,n,o){return{props:{...df},setup(l,{emit:r,slots:a}){const i=t.inject(Sr);t.onMounted(()=>{i.add(l.paneKey)}),t.onBeforeUnmount(()=>{i.remove(l.paneKey)});const u=t.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=t.computed(()=>l.loaded!=null?ue(l.loaded):i.isLoaded(l.paneKey));return()=>{let c=[];if(s.value)c=a?.default?.()??[];else if(a.empty)c=a.empty();else{const g={class:`${e}__empty-icon`},b=l.emptyIcon??o,w=t.h(b,g),p={class:`${e}__empty-text`},f=l.emptyText??"Loading",h=t.h("view",p,[f]),D={class:`${e}__empty`},I=t.h("view",D,[w,h]);c.push(I)}const d={class:`${e}`,style:u.value};return t.h("view",d,c)}}}}const{create:gf,componentName:mf,scope:pf}=se("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,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function xr(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Tr(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function vf(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function pl(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function $r(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function Cr(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function yl(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}class wf{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await Reflect.apply(o,null,[l]);const r=Pe(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(We(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await Reflect.apply(r,null,[o,l]))}}function Sf(){const e=t.getCurrentInstance();return new wf(e.proxy)}function xf(e,n,o,l){return{props:{...yf},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:i}){const u=e,s=Sf(),c=t.ref([]),d=t.computed(()=>c.value.filter(T=>vf(r,T)!==!1)),g=t.ref(-1),b=()=>{const T=r.modelValue,R=d.value.findIndex(V=>xr(r,V)===T);g.value!==R&&(g.value=R,r.scroll&&le(R))};t.watch([()=>r.modelValue,d],()=>{b()});const w=T=>g.value===T,p=T=>{if(T<0&&T>=d.value.length)return!1;const R=d.value[T],S=(yl(r,R,T)??{}).status??pl(r,R);return w(T)||S},f=t.computed(()=>{const T={[u]:!0};return r.mode?T[`is-${r.mode}`]=!0:r.direction&&(T[`is-${r.direction}`]=!0),r.scroll&&(T["is-scroll"]=!0),T}),h=t.computed(()=>({})),D=(T,R,V,S,z)=>{const U={[`${u}__step`]:!0};return z&&(U[`${z}`]=!0),U[`${I.value}`]=!0,S&&(U["is-doit"]=!0),T===g.value?U["is-active"]=!0:R==="done"?U["is-done"]=!0:R==="error"?U["is-error"]=!0:R==="half"?U["is-half"]=!0:V?U["is-disabled"]=!0:U["is-normal"]=!0,U},I=t.computed(()=>{if(r.mode==="simple")return"start";let T=r.align;return T||(r.direction==="vertical"?T="start":T="center"),T}),C=(T,R={})=>{const V={...R};return I.value==="start"&&T===d.value.length-1?V.flex="0 0 auto":r.step?r.direction==="vertical"?V.height=r.step:V.width=r.step:V.flex="1 1 100%",V},q=(T,R)=>{let V={};if(R<d.value.length-1){const S=R+1;p(R)&&p(S)?r.direction==="vertical"?V.height="100%":V.width="100%":V.opacity="0"}return V},j=T=>d.value.length-1===T,B=(T,R)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&R>g.value||g.value===R)return;const V=g.value,S=R;g.value=R,r.scroll&&le(R);const z=xr(r,T);i("update:modelValue",z);const U={fromIndex:V,currentIndex:S,item:T,items:d.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",z,U)},_=t.ref(!0),L=async(T,R)=>{try{const V=await s.load("stesbar",T,R);Array.isArray(V)&&(c.value=V),_.value=!1}catch(V){console.error("[FoxUI] Load StepsBar Data Fail",V),c.value=[]}setTimeout(()=>{i("loaded-data")},250)};t.watch([()=>r.data,()=>r.params],async([T,R])=>{T&&L(T,R)},{immediate:!0});const x=(T,R,V,S,z)=>{let U=null;if(a.icon)U=a.icon({item:T,index:R,status:S});else if(S==="done"){const G={};r.iconSize&&(G.width=r.iconSize,G.height=r.iconSize);const W=r.icon??o;U=t.h(W,G)}else{const G=V??`${R+1}`;U=t.h("span",{},[G])}const ne={class:"fox-steps-bar__icon",onClick:()=>{z||B(T,R)}};return t.h("view",ne,[U])},E=(T,R,V)=>{const S=t.h("i",{class:"fox-steps-bar__line-inner",style:q(T,R)});return t.h("view",{class:"fox-steps-bar__line"},[S])},y=()=>{let T=null;if(a.markIcon)T=a.markIcon();else{const V={};r.iconSize&&(V.width=r.markIconSize,V.height=r.markIconSize);const S=r.markIcon??l;T=t.h(S,V)}return t.h("view",{class:"fox-steps-bar__mark"},[T])},P=(T,R,V,S,z)=>{const U=[];if(!j(R)){const W=E(T,R);U.push(W)}const ne=x(T,R,V,S,z);U.push(ne);const G={class:"fox-steps-bar__head"};return t.h("view",G,U)},J=(T,R,V,S)=>{let z=null;a.main?z=a.main({item:T,index:R,status:V}):z=bf(r,T);const U={class:"fox-steps-bar__main",onClick:()=>{S||B(T,R)}};return t.h("view",U,[z])},A=(T,R,V)=>{let S=null;if(a.sub){S=a.sub({item:T,index:R,status:V});const z={class:"fox-steps-bar__sub"};return t.h("view",z,[S])}return null},$=(T,R)=>{const V=yl(r,T,R)??{},S=V.status??pl(r,T);let z=Tr(r,T);V.disabled===!0&&(z=!0),r.disabled===!0&&(z=!0);const U=V.label??Cr(r,T),ne=[],G=x(T,R,U,S,z);G&&ne.push(G);const W=J(T,R,S,z);if(W&&ne.push(W),!j(R)){const te=E(T,R);te&&ne.push(te)}const N=t.h("view",{class:"fox-steps-bar__head"},ne),H=V.class,X=V.style??{};let k=$r(r,T);V.doit===!0&&(k=!0);const K={ref:ee(R),class:D(R,S,z,k,H),style:C(R,X)};return t.h("view",K,[N])},F=(T,R)=>{const V=yl(r,T,R)??{},S=V.status??pl(r,T);let z=Tr(r,T);V.disabled===!0&&(z=!0),r.disabled===!0&&(z=!0);const U=V.label??Cr(r,T),ne=[],G=r.layout;for(let k of G)if(k==="head"){const K=P(T,R,U,S,z);ne.push(K)}else if(k==="main"){const K=J(T,R,S,z);ne.push(K)}else if(k==="sub"){const K=A(T,R,S);ne.push(K)}else if(k==="mark"){const K=y();ne.push(K)}const W=V.class,N=V.style??{};let H=$r(r,T);V.doit===!0&&(H=!0);const X={ref:ee(R),class:D(R,S,z,H,W),style:C(R,N)};return t.h("view",X,ne)},M=t.ref(),Y=t.ref([]),Z=(T,R)=>{Y.value[R]=T},ee=T=>R=>{Z(R,T)},le=(T,R)=>{const V=M.value,S=Y.value;if(!V||!S||!S[T])return;const z=S[T];let U=0;r.direction==="vertical"?U=z.offsetTop-(V.offsetHeight-z.offsetHeight)/2:U=z.offsetLeft-(V.offsetWidth-z.offsetWidth)/2,O(V,U,.3,r.direction)},O=(T,R,V,S)=>{let z=0;const U=S==="horizontal"?T.scrollLeft:T.scrollTop,ne=Math.round(V*1e3/16);function G(){S==="horizontal"?T.scrollLeft+=(R-U)/ne:T.scrollTop+=(R-U)/ne,++z<ne&&xn(G)}G()};return()=>{const T=[];if(r.mode==="simple")for(let V=0;V<d.value.length;V++){const S=d.value[V],z=$(S,V);T.push(z)}else for(let V=0;V<d.value.length;V++){const S=d.value[V],z=F(S,V);T.push(z)}const R={ref:M,class:f.value,style:h.value};return t.h("view",R,T)}}}}const{componentName:Tf,create:$f,scope:Cf}=se("steps-bar"),bl=$f(xf(Tf,Cf,Yc,Zc)),Ef=Symbol.for("InnerPageScopeKey"),Nf=Symbol.for("PageWrapperKey");function kf(e,n){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,l){t.provide(Ef,!0);const r={};t.provide(Nf,r);const a=s=>{typeof r.beforeClose=="function"&&r.beforeClose()},i=t.ref(!0),u=s=>{i.value=s};return()=>{const c={...l.attrs,title:o.title,draggable:o.draggable,modelValue:i.value,"onUpdate:modelValue":u,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":a},d={};if(typeof l.slots.default=="function"){const g=l.slots.default();d.default=()=>g}return t.h(v.ElDialog,c,d)}}}}const{componentName:Mh,create:If,scope:Bh}=se("dialog-item"),vl=If(kf());let Dt=0;const Er="fox-overflow-hidden",Nr=()=>ot?document.body:{classList:[]},Of=e=>[()=>{if(e())try{!Dt&&Nr().classList.add(Er),Dt++}catch{}},()=>{if(e()&&Dt)try{Dt--,!Dt&&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:Df,create:Ff}=se("overlay"),Rf=Ff({props:{...Vf},emits:["click","update:visible"],setup(e,{emit:n}){const[o,l]=Of(()=>e.lockScroll),r=t.computed(()=>({[Df]:!0,[e.overlayClass]:!0})),a=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watch(()=>e.visible,u=>{u?o():l()}),{classes:r,style:a,onClick:u=>{n("click",u),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function Af(e,n,o,l,r,a){return t.openBlock(),t.createBlock(t.Transition,{name:"overlay-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=t.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}const sn=_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,n)=>({components:n,props:{...Lf},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:l}){const r=t.reactive({zIndex:o.zIndex,showSlot:!0,closed:o.closeable}),a=t.computed(()=>({[e]:!0,round:o.round,[`fox-popup--${o.position}`]:!0,[`fox-popup--${o.position}--safebottom`]:o.position==="bottom"&&o.safeAreaInsetBottom,[o.popClass]:!0})),i=t.computed(()=>({zIndex:r.zIndex,transitionDuration:`${o.duration}s`,...o.style})),u=t.computed(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),s=()=>{o.zIndex!==kr&&(Ir=Number(o.zIndex)),l("update:visible",!0),r.zIndex=++Ir,o.destroyOnClose&&(r.showSlot=!0),l("open")},c=()=>{l("update:visible",!1),l("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},d=f=>{l("click-pop",f)},g=f=>{f.stopPropagation(),l("click-close-icon",f),l("update:visible",!1)},b=f=>{l("click-overlay",f),o.closeOnClickOverlay&&l("update:visible",!1)},w=f=>{l("opend",f)},p=f=>{l("closed",f)};return t.watch(()=>o.visible,f=>{o.visible?s():c()}),t.watch(()=>o.closeable,f=>{r.closed=f}),{...t.toRefs(r),popStyle:i,transitionName:u,classes:a,onClick:d,onClickCloseIcon:g,onClickOverlay:b,onOpened:w,onClosed:p}}}),{componentName:Bf,create:_f}=se("popup"),qf=_f(Mf(Bf,{FoxOverLay:sn,Close:zc}));function Pf(e,n,o,l,r,a){const i=t.resolveComponent("FoxOverLay"),u=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(i,t.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"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick:n[1]||(n[1]=(...s)=>e.onClick&&e.onClick(...s))},[e.showSlot?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.closed?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[0]||(n[0]=(...s)=>e.onClickCloseIcon&&e.onClickCloseIcon(...s)),class:t.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(u)])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const wl=_e(qf,[["render",Pf]]),{create:jf}=se("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:n}){let o=null;const l=t.reactive({mounted:!1});t.onMounted(()=>{l.mounted=!0});const r=()=>{o&&(clearTimeout(o),o=null)},a=()=>{l.mounted=!1},i=()=>{r(),e.duration&&(o=setTimeout(()=>{a()},e.duration))},u=()=>{e.closeOnClickOverlay&&(a(),n("close"))};e.duration&&i(),t.watch(()=>e.duration,w=>{w&&i()});const s=t.computed(()=>e.type!=="text"?!0:!!e.icon),c=()=>{const w=he(e.iconSize);return t.h(e.icon,{width:w,height:w,color:e.iconColor})},d=t.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]),g=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:l,hide:a,clickCover:u,renderIcon:c,hasIcon:s,toastBodyClass:d,toastIconWrapperClass:g,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Hf={key:1,class:"fox-toast-title"},Kf=["innerHTML"];function Wf(e,n,o,l,r,a){return t.openBlock(),t.createBlock(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.toastBodyClass),style:t.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:n[0]||(n[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[t.createElementVNode("view",{class:"fox-toast-inner",style:t.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.toastIconWrapperClass)},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon())))],2)):t.createCommentVNode("",!0),e.title?(t.openBlock(),t.createElementBlock("div",Hf,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Kf)],4)],6),[[t.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,n,o)=>({props:{...Yf},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(l,{slots:r}){const{emitEvent:a}=vo(),{toLocaleRefs:i}=Le.useFoxI18n(n),u=i(l,["placeholder"]),s=t.reactive({active:!1}),c=t.computed(()=>({background:l.background})),d=t.computed(()=>({background:l.inputBackground})),g=x=>{let y=x.target.value;l.maxLength&&y.length>Number(l.maxLength)&&(y=y.slice(0,Number(l.maxLength))),a("update:modelValue",y,x),a("change",y,x)},b=t.ref({}),w=x=>{let y=x.target.value;s.active=!0,b.value=l.focusStyle,a("focus",y,x)},p=x=>{setTimeout(()=>{s.active=!1},0);let y=x.target.value;l.maxLength&&y.length>Number(l.maxLength)&&(y=y.slice(0,Number(l.maxLength))),b.value={},a("blur",y,x)},f=x=>{a("update:modelValue","",x),a("change","",x),a("clear","")},h=t.computed(()=>String(l.modelValue).length>0),D=t.computed(()=>{const x={};return h.value||(x.display="none"),x}),I=()=>{a("search",l.modelValue)},C=x=>{a("keyup-input",x),x.key.toLocaleUpperCase()==="ENTER"&&I()},q=x=>{a("click-input",x)},j=x=>{a("click-left-icon",l.modelValue,x)},B=t.computed(()=>({textAlign:l.inputAlign})),_=t.ref(null);t.onMounted(()=>{l.autofocus&&_.value.focus()});const L=()=>{const x=[];if(r.leftin){const A={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:j},$=t.h("view",A,[r.leftin()]);x.push($)}const E={ref:_,class:[`${e}__input-inner`],style:B.value,type:l.inputType,maxlengt:l.maxLength,placeholder:u.placeholder.value,value:l.modelValue,disabled:l.disabled,readonly:l.readonly,onClick:q,onInput:g,onFocus:w,onBlur:p,onkeyup:C},y=t.h("input",E);x.push(y);const P=[];if(l.clearable){const A={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:D.value,onClick:f},$=r?.clear?.()??l.clearIcon??o,F=t.h("view",A,[t.h($)]);P.push(F)}if(r.rightin){const A={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},$=t.h("view",A,[r.rightin()]);P.push($)}if(P.length>0){const A={class:`${e}__input-inner-right`},$=t.h("view",A,P);x.push($)}const J={class:[`${e}__search-input`,`${l.shape}`],style:{...d.value,...b.value}};return t.h("view",J,x)};return()=>{const x=[];if(l.label){const P={class:`${e}__search-label`},J=t.h("span",P,[l.label]);x.push(J)}if(r.leftout){const P={class:[`${e}__search-icon`,`${e}__left-search-icon`]},J=t.h("view",P,[r.leftout()]);x.push(J)}const E=L();if(x.push(E),r.rightout){const P={class:[`${e}__search-icon`,`${e}__right-search-icon`]},J=t.h("view",P,[r.rightout()]);x.push(J)}const y={class:`${e}`,style:c.value};return t.h("view",y,x)}}}),{componentName:Uf,create:Xf,scope:Zf}=se("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,n=Or){let o=e;for(;o&&o!==n&&Qf(o);){const{overflowY:l}=window.getComputedStyle(o);if(Jf.test(l))return o;o=o.parentNode}return n}function Vr(e,n=Or){const o=t.ref();return t.onMounted(()=>{e.value&&(o.value=ed(e.value,n))}),o}const Dr=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,td={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},loadMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function nd(e,n,o){return{props:{...td},emits:["scroll-change","load-more","update:modelValue"],setup(l,{emit:r,slots:a}){const{toLocaleRefs:i}=Le.useFoxI18n(n),u=i(l,["pullText","loadText","loadMoreText"]),s=t.ref(),c=Vr(s),d=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),g=t.computed(()=>({[e]:!0})),b=I=>I?I.offsetTop+b(I.offsetParent):0,w=()=>{let I=0,C=0,q="down";if(c.value==window){const j=Dr();s.value&&(I=b(s.value)+s.value.offsetHeight-j-window.innerHeight),C=j}else{const{scrollHeight:j,clientHeight:B,scrollTop:_}=c.value;I=j-B-_,C=_}return d.beforeScrollTop>C?q="up":q="down",d.beforeScrollTop=C,r("scroll-change",C),I<=l.threshold&&q=="down"},p=()=>{ql(()=>{if(!w()||!l.hasMore||d.isInfiniting)return!1;d.isInfiniting=!0,r("update:modelValue",!0),t.nextTick(()=>r("load-more"))})},f=()=>{c.value&&c.value.addEventListener("scroll",p,l.useCapture)},h=()=>{c.value&&c.value.removeEventListener("scroll",p,l.useCapture)};t.onMounted(()=>{f(),l.immediate&&p()}),t.onUnmounted(()=>{h()});const D=t.ref(!1);return t.onActivated(()=>{D.value&&(D.value=!1,f())}),t.onDeactivated(()=>{D.value=!0,h()}),t.watch(()=>l.modelValue,I=>{I||(d.isInfiniting=!1)}),()=>{const I={class:"fox-infinite__container"},C=t.h("view",I,[a?.default?.()]),q=[];if(d.isInfiniting){let L=a?.loading?.()??null;if(!L){let y=a?.loadingIcon?.()??null;if(!y){const A={class:["fox-infinite__bottom-box__img"]};y=t.h(o,A)}const P={class:"fox-infinite__bottom-box__text"},J=t.h("view",P,[u.loadText.value]);L=[y,J]}const x={class:"fox-infinite__bottom-box"},E=t.h("view",x,L);q.push(E)}else if(!l.hasMore){let L=a?.finished?.()??null;if(!L){const x={class:"fox-infinite__bottom-tips"};L=t.h("view",x,[u.loadMoreText.value]),q.push(L)}}const j={class:"fox-infinite__bottom"},B=t.h("view",j,q),_={class:g.value,ref:s};return t.h("view",_,[C,B])}}}}const{componentName:ld,create:od,scope:rd}=se("infinite-loading"),Tl=od(nd(ld,rd,dl)),Fr=10;function Rr(e,n){return e>n&&e>Fr?"horizontal":n>e&&n>Fr?"vertical":""}function $l(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Cl(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",o=()=>e.direction==="horizontal",l=()=>{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=Rr(e.offsetX,e.offsetY))},start:i=>{if(l(),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:l,isVertical:n,isHorizontal:o,state:e}}function ad(){const e=t.ref(0),n=t.ref(0),o=t.ref(0),l=t.ref(0),r=t.ref(0),a=t.ref(0),i=t.ref(0),u=t.ref(0),s=t.ref(0),c=t.ref(0),d=t.ref(""),g=()=>d.value==="vertical",b=()=>d.value==="horizontal",w=()=>{i.value=0,u.value=0,s.value=0,c.value=0,d.value="",o.value=0};return{move:h=>{if(h.touches){const C=h.touches[0];i.value=C.clientX-e.value,u.value=C.clientY-n.value,r.value=C.clientX,a.value=C.clientY}else{const I=h;i.value=I.clientX-e.value,u.value=I.clientY-n.value,r.value=I.clientX,a.value=I.clientY}s.value=Math.abs(i.value),c.value=Math.abs(u.value),l.value=Date.now()-o.value,d.value||(d.value=Rr(s.value,c.value))},start:h=>{if(w(),h.touches){const C=h.touches[0];e.value=C.clientX,n.value=C.clientY}else{const I=h;e.value=I.clientX,n.value=I.clientY}o.value=Date.now()},reset:w,startX:e,startY:n,startTime:o,duration:l,moveX:r,moveY:a,deltaX:i,deltaY:u,offsetX:s,offsetY:c,direction:d,isVertical:g,isHorizontal:b}}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,n,o)=>({props:{...id},emits:["change","refresh","update:modelValue"],setup(l,{emit:r,slots:a}){const{toLocaleRefs:i}=Le.useFoxI18n(n),u=i(l,["pullingText","loosingText","loadingText"]),s=Cl(),c=t.ref(),d=Vr(c),g=t.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),b=t.computed(()=>({[e]:!0})),w=t.computed(()=>{switch(g.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""}}),p=t.computed(()=>({transitionDuration:`${l.duration}s`,transform:g.distance?`translate3d(0,${g.distance}px, 0)`:""})),f=t.computed(()=>{const _={};return l.headHeight!=50&&(_.height=ke(l.headHeight)),_}),h=_=>{const L=+(l.pullDistance||l.headHeight);let x=_;return _>L&&(_<L*2?x=(_+L)/2:x=L+_/4),Math.round(x)},D=(_,L)=>{const x=+(l.pullDistance||l.headHeight);g.distance=_,L?g.status="loading":_===0?g.status="normal":_<x?g.status="pulling":g.status="loosing",r("change",{status:g.status,distance:_})},I=()=>g.status!=="loading"&&g.status!=="complete",C=()=>d.value==window?Dr()==0:d.value&&d.value.scrollTop==0,q=_=>{I()&&(C()?(s.start(_),g.isPullRefresh=!0,g.moving=!0):(g.distance=0,g.isPullRefresh=!1))},j=_=>{I()&&g.moving&&(s.move(_),s.isVertical()&&s.state.deltaY>0&&g.isPullRefresh&&(_.cancelable&&_.preventDefault(),D(h(s.state.deltaY))))},B=()=>{g.moving=!1,g.isPullRefresh&&I()&&s.state.deltaY&&(g.status==="loosing"?(D(+l.headHeight,!0),r("update:modelValue",!0),t.nextTick(()=>r("refresh"))):D(0)),setTimeout(()=>{s.reset()},0)};return t.watch(()=>l.modelValue,_=>{_?D(+l.headHeight,!0):D(0)}),()=>{const _=[];let L=null;if(g.status==="loading"){if(L=a?.loading?.()??null,!L){const F={class:["fox-pull-refresh-container-topbox-icon"]};L=t.h(o,F)}}else g.status==="pulling"?L=a?.pulling?.()??null:g.status==="loosing"&&(L=a?.loosing?.()??null);L&&_.push(L);const x={class:["fox-pull-refresh-container-topbox-text"]},E=t.h("dive",x,[w.value]);_.push(E);const y={class:["fox-pull-refresh-container-topbox"],style:f.value},P=t.h("div",y,_),J={class:"fox-pull-refresh-container",style:p.value},A=t.h("div",J,[P,a?.default?.()]),$={ref:c,class:b.value};return $l()?Object.assign($,{onTouchstart:q,onTouchmove:j,onTouchend:B}):Object.assign($,{onMousedown:q,onMousemove:j,onMouseup:B}),t.h("div",$,[A])}}}),{componentName:ud,create:cd,scope:fd}=se("pull-refresh"),El=cd(sd(ud,fd,dl));function dd(e,n){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(o,{slots:l}){const r=e,a=t.computed(()=>({[r]:!0})),i=t.computed(()=>o.icon?{[`${r}__icon`]:!0,[`${r}__icon-${o.type}`]:!0}:{[`${r}__mark`]:!0,[`${r}__mark-${o.type}`]:!0}),u=t.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),s=t.computed(()=>{const d={[`${r}__text`]:!0,[`${r}__text-${o.type}`]:!0};return o.textPosition==="left"?d["is-left"]=!0:d["is-right"]=!0,d}),c=t.computed(()=>o.color?{color:o.color}:null);return()=>{let d=null;if(l.mark)d=l.mark()[0];else{const f={class:i.value,style:u.value};d=t.h(o.icon??"div",f)}const g={class:s.value,style:c.value},b=l.default?l.default():[],w=t.h("div",g,b),p={class:a.value};return o.textPosition==="right"?t.h("div",p,[d,w]):t.h("div",p,[w,d])}}}}const{componentName:hd,create:gd,scope:_h}=se("indicator"),Nl=gd(dd(hd));function md(e,n){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const l=o.getBoundingClientRect().width;if(l>0){n(l);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"),n(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,n,o,l=!1){return{props:{...pd},emits:["click"],setup(r,a){const i=t.ref(null),u=t.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}),s=t.computed(()=>{const C={},q=r.textColor??r.color;return q&&(C.color=q),C}),c=(C,q)=>{let j=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const B=r.highlightFilter;if(C.indexOf(B)!==-1){const L=C.replace(new RegExp(B,"g"),`<span>${B}</span>`);q.innerHTML=L,q.class["is-highlight"]=!0,j=t.h(r.tag,q)}}else if(typeof r.highlightFilter=="function"){const B=r.highlightFilter(C);B&&(q.innerHTML=B,q.class["is-highlight"]=!0,j=t.h(r.tag,q))}return j},d=C=>{a.emit("click",C)};let g="";const b=()=>{const C=i.value;if(!C)return;const q=C.clientWidth;md(C,j=>{const B=C.innerHTML??"";pe(B)||j<q||(g?o?.show(C,B,{type:"text",id:g,showArrow:r.showArrow},!0):g=o?.show(C,B,{type:"text",showArrow:r.showArrow},!0)??"")})},w=()=>{g&&o?.hide(g)};let p=null;const f=C=>{p||(p=setTimeout(()=>{b(),p=null},r.showAfter??0))},h=C=>{p&&(clearTimeout(p),p=null),setTimeout(()=>{w()},r.hideAfter??0)},D=()=>{const C=i.value;C&&(C.addEventListener("mouseover",f),C.addEventListener("mouseleave",h))},I=()=>{const C=i.value;C&&(C.removeEventListener("mouseover",f),C.removeEventListener("mouseleave",h))};return t.onMounted(()=>{!ue(r.showOverflowTooltip)||!o||D()}),t.onBeforeUnmount(()=>{!ue(r.showOverflowTooltip)||!o||I()}),()=>{const C={onClick:d,class:u.value,style:s.value,ref:i};let q=null;if(ue(r.numberFormat)&&typeof a.slots.default=="function"){const L=a.slots.default();if(Array.isArray(L)&&L.length===1){const x=L[0].type.toString();if(x==="Symbol(Text)"||x==="Symbol(v-txt)"){const E=Se(r.digits),y=Se(r.decimalLength),P=ue(r.autoPadding);let J=`${L[0].children}`,A=J.split("").reverse().join("");A=Lt(A,y,P,E,r.separator),J=A.split("").reverse().join(""),r.highlightFilter!==void 0&&(q=c(J,C)),q||(C.innerHTML=J,q=t.h(r.tag,C))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const L=a.slots.default();if(Array.isArray(L)&&L.length===1){const x=L[0].type.toString();if(x==="Symbol(Text)"||x==="Symbol(v-txt)"){const E=`${L[0].children}`;q=c(E,C),q||(C.innerHTML=E,q=t.h(r.tag,C))}}}q||(q=t.h(r.tag,C,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return q;let B=null;if(r.icon){const L={[`${e}__mark-wrap`]:!0};r.type&&(L[`${e}__mark-wrap--${r.type}`]=!0);const x={},E=r.color;E&&(x.color=E);const y={class:L,style:x};B=t.h("view",y,t.h(r.icon))}else if(a.slots.mark){const L={[`${e}__mark-wrap`]:!0};r.type&&(L[`${e}__mark-wrap--${r.type}`]=!0);const x={},E=r.color;E&&(x.color=E);const y={class:L,style:x};B=t.h("view",y,{default:a.slots.mark})}else{const L={[`${e}__mark`]:!0};r.type&&(L[`${e}__mark--${r.type??"default"}`]=!0);const x={},E=r.color;E&&(x["background-color"]=E);const y={class:L,style:x};B=t.h("view",y)}const _={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return t.h("view",_,[B,q])}}}}const{componentName:bd,create:vd,scope:wd}=se("text"),kl=vd(yd(bd,wd,Fe,!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,n,o){return{props:{...Sd},emits:["click","update:modelValue"],setup(l,{emit:r}){const a=t.computed(()=>{const g={[`${e}`]:!0};return l.disabled?g[`${e}__disabled`]=!0:g[`${e}__${l.type}`]=!0,g}),i=ge(l,"modelValue"),u=t.computed(()=>i.value?l.expandText??"":l.collapseText??""),s=t.computed(()=>({[`${e}__text`]:!0})),c=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),d=()=>{r("update:modelValue",!i.value)};return()=>{const g=[];if(u.value){const f={class:s.value},h=t.h("span",f,[u.value]);g.push(h)}const b={class:c.value},w=o(l.icon,b);return w&&g.push(w),t.h("div",{class:a.value,onClick:d},g)}}}}const{componentName:Td,create:$d,scope:Cd}=se("more-button"),Il=$d(xd(Td,Cd,(e,n)=>(e=e??Ce.ArrowUp,t.h(v.ElIcon,n,{default:()=>[t.h(e)]}))));function Ed(e){return e===window}const Ar=e=>{const n=t.unref(e);if(Ed(n)){const o=n.innerWidth,l=n.innerHeight;return{top:0,left:0,right:o,bottom:l,width:o,height:l}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:Nd,create:kd,scope:Ph}=se("tour"),Id=kd({components:{Close:Ce.Close,ElPopover:v.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const o=Nd,l=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=t.ref({}),a=t.computed(()=>`${o}`),i=t.computed(()=>{const{offset:p,maskWidth:f,maskHeight:h}=e,{width:D,height:I,left:C,top:q}=r.value,j=e.steps[l.active].offset??p,B=[C+D/2,q+I/2],_=Number(f||D),L=Number(h||I);return{width:`${_+ +j.left+j.right}px`,height:`${L+j.top+j.bottom}px`,top:`${B[1]-L/2-+j.top}px`,left:`${B[0]-_/2-+j.left}px`}}),u=p=>{p=="next"?l.active=l.active+1:l.active=l.active-1,l.showPopup=!1,t.nextTick(()=>{l.showPopup=!0,d()}),n("change",l.active)},s=p=>p.popoverWidth??e.width,c=p=>p.location??e.location,d=()=>{const p=document.querySelector(`${e.steps[l.active].target}`),f=Ar(p);r.value={x:f.left,y:f.top,top:f.top,left:f.left,width:f.width,height:f.height}},g=()=>{l.showTour=!1,l.showPopup=!1,n("close",l.active),n("update:modelValue",!1)},b=()=>{e.closeOnClickOverlay&&g()},w=(p,f=0)=>{p&&d(),e.steps,l.active=f,l.showTour=p,l.showPopup=p};return t.onMounted(()=>{w(e.modelValue,e.current)}),t.watch(()=>e.modelValue,p=>{w(p)}),{...t.toRefs(l),classes:a,maskStyle:i,changeStep:u,popoverWidth:s,popoverLocation:c,close:g,handleClickMask:b}}}),Od={key:0,class:"fox-tour__content"},Vd={key:0,class:"fox-tour__content-top"},Dd={class:"fox-tour__content-inner"},Fd={class:"fox-tour__content-bottom"},Rd={class:"fox-tour__content-bottom-init"},Ad={class:"fox-tour__content-bottom-operate"},Ld={key:1,class:"fox-tour__content fox-tour__content-tile"},Md={class:"fox-tour__content-inner"};function Bd(e,n,o,l,r,a){const i=t.resolveComponent("Close"),u=t.resolveComponent("fox-button"),s=t.resolveComponent("ElPopover");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{class:"fox-tour__masked",onClick:n[0]||(n[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[t.vShow,e.showTour]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.steps,(c,d)=>(t.openBlock(),t.createElementBlock("div",{key:d,style:{height:"0"}},[d==e.active?(t.openBlock(),t.createBlock(s,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(c),width:e.popoverWidth(c)},{reference:t.withCtx(()=>[e.showTour?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:t.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):t.createCommentVNode("",!0)]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(t.openBlock(),t.createElementBlock("div",Od,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",Vd,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...g)=>e.close&&e.close(...g))},[t.createVNode(i,{class:"fox-tour__content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",Dd,t.toDisplayString(c.content),1),t.createElementVNode("div",Fd,[t.createElementVNode("div",Rd,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",Ad,[t.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(t.openBlock(),t.createBlock(u,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[2]||(n[2]=g=>e.changeStep("prev"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.prevStepText),1)]),_:1})):t.createCommentVNode("",!0)]),e.steps.length-1==e.active?(t.openBlock(),t.createBlock(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(t.openBlock(),t.createBlock(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[3]||(n[3]=g=>e.changeStep("next"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.nextStepText),1)]),_:1})):t.createCommentVNode("",!0)])])])])):t.createCommentVNode("",!0),e.type=="tile"?(t.openBlock(),t.createElementBlock("div",Ld,[t.createElementVNode("div",Md,t.toDisplayString(c.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):t.createCommentVNode("",!0)]))),128))],2)}const Ol=_e(Id,[["render",Bd]]),Re=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,it=e=>e==null;class _d{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,o){this.startMove=n,this.updateMove=o,this.isTouch=$l()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const o=Cl(),l=(r,a,i,u)=>{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),l(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{l(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(n=>{this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Lr(e,n){return new _d(e,n)}const Mr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;let pt=[];const Br=e=>{const n=e;n.key==="Escape"&&pt.forEach(o=>o(n))},qd=e=>{t.onMounted(()=>{pt.length===0&&document.addEventListener("keydown",Br),Mr&&pt.push(e)}),t.onBeforeUnmount(()=>{pt=pt.filter(n=>n!==e),pt.length===0&&Mr&&document.removeEventListener("keydown",Br)})},Vl="fox-focus-trap.focus-after-trapped",Dl="fox-focus-trap.focus-after-released",Pd="fox-focus-trap.focusout-prevented",_r={cancelable:!0,bubbles:!1},jd={cancelable:!0,bubbles:!1},qr="foxFocusAfterTrapped",Pr="foxFocusAfterReleased",zd=Symbol("foxFocusTrap"),Fl=t.ref(),un=t.ref(0),Rl=t.ref(0);let cn=0;const jr=e=>{const n=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const r=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||r?NodeFilter.FILTER_SKIP:l.tabIndex>=0||l===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)n.push(o.currentNode);return n},Hd=(e,n)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},zr=(e,n)=>{for(const o of e)if(!Hd(o,n))return o},Kd=e=>{const n=jr(e),o=zr(n,e),l=zr(n.reverse(),e);return[o,l]},Wd=e=>e instanceof HTMLInputElement&&"select"in e,tt=(e,n)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),Rl.value=window.performance.now(),e!==o&&Wd(e)&&n&&e.select()}};function Hr(e,n){const o=[...e],l=e.indexOf(n);return l!==-1&&o.splice(l,1),o}const Yd=()=>{let e=[];return{push:l=>{const r=e[0];r&&l!==r&&r.pause(),e=Hr(e,l),e.unshift(l)},remove:l=>{e=Hr(e,l),e[0]?.resume?.()}}},Gd=(e,n=!1)=>{const o=document.activeElement;for(const l of e)if(tt(l,n),document.activeElement!==o)return},Kr=Yd(),Ud=()=>un.value>Rl.value,fn=()=>{Fl.value="pointer",un.value=window.performance.now()},Wr=()=>{Fl.value="keyboard",un.value=window.performance.now()},Xd=()=>(t.onMounted(()=>{cn===0&&(document.addEventListener("mousedown",fn),document.addEventListener("touchstart",fn),document.addEventListener("keydown",Wr)),cn++}),t.onBeforeUnmount(()=>{cn--,cn<=0&&(document.removeEventListener("mousedown",fn),document.removeEventListener("touchstart",fn),document.removeEventListener("keydown",Wr))}),{focusReason:Fl,lastUserFocusTimestamp:un,lastAutomatedFocusTimestamp:Rl}),dn=e=>new CustomEvent(Pd,{...jd,detail:e}),{componentName:jh,create:Zd,scope:zh}=se("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:n,emit:o}){const l=t.ref();let r,a;const{focusReason:i}=Xd();qd(f=>{ue(e.trapped)&&!u.paused&&o("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:h,altKey:D,ctrlKey:I,metaKey:C,currentTarget:q,shiftKey:j}=f,{loop:B}=e,_=h==="Tab"&&!D&&!I&&!C,L=document.activeElement;if(_&&L){const x=q,[E,y]=Kd(x);if(E&&y){if(!j&&L===y){const J=dn({focusReason:i.value});o("focusout-prevented",J),J.defaultPrevented||(f.preventDefault(),B&&tt(E,!0))}else if(j&&[E,x].includes(L)){const J=dn({focusReason:i.value});o("focusout-prevented",J),J.defaultPrevented||(f.preventDefault(),B&&tt(y,!0))}}else if(L===x){const J=dn({focusReason:i.value});o("focusout-prevented",J),J.defaultPrevented||f.preventDefault()}}};t.provide(zd,{focusTrapRef:l,onKeydown:s}),t.watch(()=>e.focusTrapEl,f=>{f&&(l.value=f)},{immediate:!0}),t.watch([l],([f],[h])=>{f&&(f.addEventListener("keydown",s),f.addEventListener("focusin",g),f.addEventListener("focusout",b)),h&&(h.removeEventListener("keydown",s),h.removeEventListener("focusin",g),h.removeEventListener("focusout",b))});const c=f=>{o(qr,f)},d=f=>o(Pr,f),g=f=>{const h=t.unref(l);if(!h)return;const D=f.target,I=f.relatedTarget,C=D&&h.contains(D);ue(e.trapped)||I&&h.contains(I)||(r=I),C&&o("focusin",f),!u.paused&&ue(e.trapped)&&(C?a=D:tt(a,!0))},b=f=>{const h=t.unref(l);if(!(u.paused||!h))if(!e.escape&&ue(e.trapped)){const D=f.relatedTarget;!Nn(D)&&!h.contains(D)&&setTimeout(()=>{if(!u.paused&&ue(e.trapped)){const I=dn({focusReason:i.value});o("focusout-prevented",I),I.defaultPrevented||tt(a,!0)}},0)}else{const D=f.target;D&&h.contains(D)||o("focusout",f)}};async function w(){await t.nextTick();const f=t.unref(l);if(f){Kr.push(u);const h=f.contains(document.activeElement)?r:document.activeElement;if(r=h,!f.contains(h)){const I=new Event(Vl,_r);f.addEventListener(Vl,c),f.dispatchEvent(I),I.defaultPrevented||t.nextTick(()=>{let C=e.focusStartEl;Ul(C)||(tt(C),document.activeElement!==C&&(C="first")),C==="first"&&Gd(jr(f),!0),(document.activeElement===h||C==="container")&&tt(f)})}}}function p(){const f=t.unref(l);if(f){f.removeEventListener(Vl,c);const h=new CustomEvent(Dl,{..._r,detail:{focusReason:i.value}});f.addEventListener(Dl,d),f.dispatchEvent(h),!h.defaultPrevented&&(i.value=="keyboard"||!Ud())&&tt(r??document.body,!0),f.removeEventListener(Dl,c),Kr.remove(u)}}return t.onMounted(()=>{ue(e.trapped)&&w(),t.watch(()=>e.trapped,f=>{ue(f)?w():p()})}),t.onBeforeUnmount(()=>{ue(e.trapped)&&p()}),()=>typeof n.default=="function"?n.default({"handle-keydown":s}):null}}),{componentName:Qd,create:eh,scope:Kh}=se("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:v.ElIcon,FocusTrap:Jd},props:{...lh},emits:["update:modelValue","update:collapse"],setup(e,{emit:n}){const o=Qd,l=t.ref(e.modelValue),r=t.computed(()=>!e.teleport);t.watch(()=>e.modelValue,k=>{l.value=k});const a=t.computed(()=>l.value===!1?!1:!L.value),i=t.ref(e.left),u=t.ref(e.top),s=t.ref(e.right),c=t.ref(e.bottom),d=t.computed(()=>{const k=["fox-floating-window"];return e.customClass&&k.push(e.customClass),k}),g=t.computed(()=>{const k={};return it(i.value)?k.left="auto":k.left=Re(i.value),it(u.value)?k.top="auto":k.top=Re(u.value),it(s.value)?k.right="auto":k.right=Re(s.value),it(c.value)?k.bottom="auto":k.bottom=Re(c.value),it(e.zIndex)||(k["z-index"]=Re(e.zIndex)),it(B.value)||(k.height=B.value),it(_.value)||(k.width=_.value),k}),b=t.computed(()=>e.closeIcon??Ce.Close),w=t.computed(()=>e.collapseIcon??Ce.ArrowUp),p=t.computed(()=>e.collapseText??""),f=t.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ce.ArrowRight:e.expandIcon??Ce.ArrowLeft),h=t.computed(()=>e.expandText??e.title??"展开"),D=t.computed(()=>({[`${o}__collapse-text`]:!0})),I=t.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!L.value,"is-collapse":L.value})),C=t.ref(),q=t.ref(null),j=t.ref(null),B=t.computed(()=>Re(e.height)||""),_=t.computed(()=>Re(e.width)||""),L=t.ref(ue(e.collapse)),x=(k,K=!0)=>{L.value!==k&&(L.value=k,k?T():R(),n("update:collapse",k),k&&typeof P.onHide=="function"?P.onHide():!k&&typeof P.onShow=="function"&&P.onShow())};t.watch(()=>e.collapse,k=>{x(k)});const E=()=>{y()},y=k=>{k=k??!L.value,x(k)};t.provide(th,!0);const P={setCollapse:x,setFixedNavVisible:k=>{ee.value=k}};t.provide(nh,P);const J=()=>{typeof P.beforeClose=="function"?P.beforeClose(()=>{l.value=!1}):l.value=!1},A=t.ref(null),$=t.computed(()=>!e.fixedNavTeleport),F=t.computed(()=>{const k=["fox-floating-window__fixednav"];return e.expandClass&&k.push(e.expandClass),e.collapsePosition==="left"?k.push("is-left"):e.collapsePosition==="right"&&k.push("is-right"),k}),M=t.ref(""),Y=t.computed(()=>{const k={};return M.value?k.top=M.value:e.collapseTop&&(k.top=e.collapseTop),k}),Z=t.ref(L.value),ee=t.computed({set:k=>{Z.value=k},get:()=>l.value===!1?!1:Z.value});let le=null;const O=()=>{typeof le=="function"&&(le(),le=null)},T=()=>{A.value&&A.value.classList.add("slide-in"),ee.value=!0,le=()=>{A.value&&A.value.classList.remove("slide-in")}},R=()=>{A.value&&A.value.classList.add("slide-out"),le=()=>{A.value&&A.value.classList.remove("slide-out"),ee.value=!1}},V=()=>{i.value=null,u.value=null,s.value=null,c.value=null},S={x:0,y:0},ne=Lr(k=>{if(!C.value)return;const K=C.value;if(V(),e.origin==="left-top")i.value=K.offsetLeft,u.value=K.offsetTop,S.x=i.value,S.y=u.value;else if(e.origin==="left-bottom"){const te=document.documentElement.clientHeight||document.body.clientHeight;i.value=K.offsetLeft,c.value=te-(K.offsetTop+K.offsetHeight),S.x=i.value,S.y=c.value}else if(e.origin==="right-bottom"){const te=document.documentElement.clientWidth||document.body.clientWidth,oe=document.documentElement.clientHeight||document.body.clientHeight;s.value=te-(K.offsetLeft+K.offsetWidth),c.value=oe-(K.offsetTop+K.offsetHeight),S.x=s.value,S.y=c.value}else{const te=document.documentElement.clientWidth||document.body.clientWidth;s.value=te-(K.offsetLeft+K.offsetWidth),u.value=K.offsetTop,S.x=s.value,S.y=u.value}},k=>{if(!C.value)return;const K=C.value;V(),e.origin==="left-top"?(i.value=S.x+k.x,u.value=S.y+k.y,K.style.left=Re(i.value),K.style.top=Re(u.value)):e.origin==="left-bottom"?(i.value=S.x+k.x,c.value=S.y-k.y,K.style.left=Re(i.value),K.style.bottom=Re(c.value)):e.origin==="right-bottom"?(s.value=S.x-k.x,c.value=S.y-k.y,K.style.right=Re(s.value),K.style.bottom=Re(c.value)):(s.value=S.x-k.x,u.value=S.y+k.y,K.style.right=Re(s.value),K.style.top=Re(u.value))}),G={x:0,y:0},H=Lr(k=>{A.value&&(G.x=A.value.offsetLeft,G.y=A.value.offsetTop)},k=>{if(!A.value)return;const K=G.y+k.y;M.value=`${K}px`}),X=()=>{if(C.value){const k=C.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");j.value=k}};return t.onMounted(()=>{if(e.draggable&&C.value){const k=[];q.value&&k.push(q.value),e.footerDraggable&&(X(),j.value&&k.push(j.value)),ne.open(k)}e.collapse===!0&&x(e.collapse,!1),A.value&&H.open(A.value)}),t.onBeforeUnmount(()=>{e.draggable&&q.value&&ne.close(),A.value&&H.close()}),{classes:d,styles:g,isShow:a,closeIcon:b,onClose:J,dialogRef:C,headerRef:q,onClickToggle:E,collapseIcon:w,collapseText:p,collapseTextClasses:D,collapseIconClasses:I,expandIcon:f,expandText:h,isShowFixedNav:ee,fixedNavRef:A,fixedNavClasses:F,fixedNavStyles:Y,onAnimationEnd:O,teleportDisabled:r,fixedNavTeleportDisabled:$}}}),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,n,o,l,r,a){const i=t.resolveComponent("FoxIcon"),u=t.resolveComponent("FocusTrap");return t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[t.createVNode(t.Transition,{name:"fox-floating-window-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{ref:"dialogRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),tabindex:"-1"},[t.createVNode(u,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:t.withCtx(()=>[t.createElementVNode("div",rh,[t.renderSlot(e.$slots,"header",{},()=>[t.createElementVNode("span",ah,t.toDisplayString(e.title),1),t.createElementVNode("div",ih,[e.showCollapse?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:n[0]||(n[0]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[t.createElementVNode("span",{class:t.normalizeClass(e.collapseTextClasses)},t.toDisplayString(e.collapseText),3),t.createVNode(i,{class:t.normalizeClass(e.collapseIconClasses)},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):t.createCommentVNode("",!0),e.showClose?(t.openBlock(),t.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):t.createCommentVNode("",!0)])])],512),t.createElementVNode("div",sh,[t.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[t.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(t.openBlock(),t.createBlock(t.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[t.withDirectives(t.createElementVNode("div",{ref:"fixedNavRef",class:t.normalizeClass(e.fixedNavClasses),style:t.normalizeStyle(e.fixedNavStyles),onAnimationend:n[2]||(n[2]=(...s)=>e.onAnimationEnd&&e.onAnimationEnd(...s))},[t.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:n[1]||(n[1]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[t.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.expandIcon)))]),_:1}),t.createElementVNode("div",uh,t.toDisplayString(e.expandText),1)])],38),[[t.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const Al=_e(oh,[["render",ch]]);function fh(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:l}){return po(o.name,()=>o.config),()=>typeof l.default=="function"?l.default():null}}}const{componentName:Wh,create:dh,scope:Yh}=se("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,n){return{inheritAttrs:!1,props:hh,setup(o,{slots:l}){if(ot&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(b,w)=>{if(d===null){a.set(b,{visible:null,callback:w});return}r.has(b)&&d.unobserve(b),r.set(b,{visible:null,callback:w}),d.observe(b)},u=b=>{if(d===null){a.delete(b);return}r.has(b)&&(r.delete(b),d.unobserve(b))};let s=o.initialVisibleObserverSize;ei({acquire:()=>{const b=s>0;return s--,b},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:u});let d=null;const g=(b,w,p)=>{d=new IntersectionObserver(f=>{for(let h of f){let D=!1;h.intersectionRatio>0&&(D=!0);const I=r.get(h.target);if(I)try{if(o.loadPolicy==="lazy"&&!D&&I.visible!==null)return;I.visible=D,I.callback(D)}catch(C){console.error(C)}}},{root:b,rootMargin:w,threshold:p}),a.forEach((f,h)=>{r.set(h,f),d?.observe(h)}),a.clear()};t.watch([()=>o.root,()=>o.disabled],([b,w])=>{if(w||!b||d)return;let p=null;typeof b=="string"?p=document.querySelector(b):p=b,p&&g(p,o.rootMargin,o.threshold)},{immediate:!0}),t.onUnmounted(()=>{d&&(d.disconnect(),d=null)})}return()=>typeof l.default=="function"?l.default():null}}}const{componentName:Gh,create:mh,scope:Uh}=se("rolling-provider"),Ml=mh(gh()),ph=[Fn,An,Ln,Mn,qn,Te,zn,Hn,Nt,Kn,Wn,Yn,Gn,Un,Xn,Zn,Qn,el,tl,nl,an,rl,al,il,sl,ul,cl,fl,hl,gl,ml,bl,vl,sn,wl,Sl,xl,Tl,El,It,on,Nl,kl,Il,Ol,Al,Ll,Ml],yh=new Va(ph,[Ra],"4.0.0");Object.defineProperty(m,"FoxAffix",{enumerable:!0,get:()=>v.ElAffix}),Object.defineProperty(m,"FoxAlert",{enumerable:!0,get:()=>v.ElAlert}),Object.defineProperty(m,"FoxAnchor",{enumerable:!0,get:()=>v.ElAnchor}),Object.defineProperty(m,"FoxAnchorLink",{enumerable:!0,get:()=>v.ElAnchorLink}),Object.defineProperty(m,"FoxAside",{enumerable:!0,get:()=>v.ElAside}),Object.defineProperty(m,"FoxAutoResizer",{enumerable:!0,get:()=>v.ElAutoResizer}),Object.defineProperty(m,"FoxAutocomplete",{enumerable:!0,get:()=>v.ElAutocomplete}),Object.defineProperty(m,"FoxAvatar",{enumerable:!0,get:()=>v.ElAvatar}),Object.defineProperty(m,"FoxBacktop",{enumerable:!0,get:()=>v.ElBacktop}),Object.defineProperty(m,"FoxBadge",{enumerable:!0,get:()=>v.ElBadge}),Object.defineProperty(m,"FoxBreadcrumb",{enumerable:!0,get:()=>v.ElBreadcrumb}),Object.defineProperty(m,"FoxBreadcrumbItem",{enumerable:!0,get:()=>v.ElBreadcrumbItem}),Object.defineProperty(m,"FoxButton",{enumerable:!0,get:()=>v.ElButton}),Object.defineProperty(m,"FoxButtonGroup",{enumerable:!0,get:()=>v.ElButtonGroup}),Object.defineProperty(m,"FoxCalendar",{enumerable:!0,get:()=>v.ElCalendar}),Object.defineProperty(m,"FoxCard",{enumerable:!0,get:()=>v.ElCard}),Object.defineProperty(m,"FoxCarousel",{enumerable:!0,get:()=>v.ElCarousel}),Object.defineProperty(m,"FoxCarouselItem",{enumerable:!0,get:()=>v.ElCarouselItem}),Object.defineProperty(m,"FoxCascader",{enumerable:!0,get:()=>v.ElCascader}),Object.defineProperty(m,"FoxCascaderPanel",{enumerable:!0,get:()=>v.ElCascaderPanel}),Object.defineProperty(m,"FoxCheckTag",{enumerable:!0,get:()=>v.ElCheckTag}),Object.defineProperty(m,"FoxCheckbox",{enumerable:!0,get:()=>v.ElCheckbox}),Object.defineProperty(m,"FoxCheckboxButton",{enumerable:!0,get:()=>v.ElCheckboxButton}),Object.defineProperty(m,"FoxCheckboxGroup",{enumerable:!0,get:()=>v.ElCheckboxGroup}),Object.defineProperty(m,"FoxCol",{enumerable:!0,get:()=>v.ElCol}),Object.defineProperty(m,"FoxCollapse",{enumerable:!0,get:()=>v.ElCollapse}),Object.defineProperty(m,"FoxCollapseItem",{enumerable:!0,get:()=>v.ElCollapseItem}),Object.defineProperty(m,"FoxCollapseTransition",{enumerable:!0,get:()=>v.ElCollapseTransition}),Object.defineProperty(m,"FoxColorPicker",{enumerable:!0,get:()=>v.ElColorPicker}),Object.defineProperty(m,"FoxConfigProvider",{enumerable:!0,get:()=>v.ElConfigProvider}),Object.defineProperty(m,"FoxContainer",{enumerable:!0,get:()=>v.ElContainer}),Object.defineProperty(m,"FoxCountdown",{enumerable:!0,get:()=>v.ElCountdown}),Object.defineProperty(m,"FoxDatePicker",{enumerable:!0,get:()=>v.ElDatePicker}),Object.defineProperty(m,"FoxDescriptions",{enumerable:!0,get:()=>v.ElDescriptions}),Object.defineProperty(m,"FoxDescriptionsItem",{enumerable:!0,get:()=>v.ElDescriptionsItem}),Object.defineProperty(m,"FoxDialog",{enumerable:!0,get:()=>v.ElDialog}),Object.defineProperty(m,"FoxDivider",{enumerable:!0,get:()=>v.ElDivider}),Object.defineProperty(m,"FoxDrawer",{enumerable:!0,get:()=>v.ElDrawer}),Object.defineProperty(m,"FoxDropdown",{enumerable:!0,get:()=>v.ElDropdown}),Object.defineProperty(m,"FoxDropdownItem",{enumerable:!0,get:()=>v.ElDropdownItem}),Object.defineProperty(m,"FoxDropdownMenu",{enumerable:!0,get:()=>v.ElDropdownMenu}),Object.defineProperty(m,"FoxEmpty",{enumerable:!0,get:()=>v.ElEmpty}),Object.defineProperty(m,"FoxFooter",{enumerable:!0,get:()=>v.ElFooter}),Object.defineProperty(m,"FoxForm",{enumerable:!0,get:()=>v.ElForm}),Object.defineProperty(m,"FoxFormItem",{enumerable:!0,get:()=>v.ElFormItem}),Object.defineProperty(m,"FoxHeader",{enumerable:!0,get:()=>v.ElHeader}),Object.defineProperty(m,"FoxIcon",{enumerable:!0,get:()=>v.ElIcon}),Object.defineProperty(m,"FoxImage",{enumerable:!0,get:()=>v.ElImage}),Object.defineProperty(m,"FoxImageViewer",{enumerable:!0,get:()=>v.ElImageViewer}),Object.defineProperty(m,"FoxInput",{enumerable:!0,get:()=>v.ElInput}),Object.defineProperty(m,"FoxInputNumber",{enumerable:!0,get:()=>v.ElInputNumber}),Object.defineProperty(m,"FoxLink",{enumerable:!0,get:()=>v.ElLink}),Object.defineProperty(m,"FoxMain",{enumerable:!0,get:()=>v.ElMain}),Object.defineProperty(m,"FoxMenu",{enumerable:!0,get:()=>v.ElMenu}),Object.defineProperty(m,"FoxMenuItem",{enumerable:!0,get:()=>v.ElMenuItem}),Object.defineProperty(m,"FoxMenuItemGroup",{enumerable:!0,get:()=>v.ElMenuItemGroup}),Object.defineProperty(m,"FoxMessage",{enumerable:!0,get:()=>v.ElMessage}),Object.defineProperty(m,"FoxMessageBox",{enumerable:!0,get:()=>v.ElMessageBox}),Object.defineProperty(m,"FoxNotification",{enumerable:!0,get:()=>v.ElNotification}),Object.defineProperty(m,"FoxOption",{enumerable:!0,get:()=>v.ElOption}),Object.defineProperty(m,"FoxOptionGroup",{enumerable:!0,get:()=>v.ElOptionGroup}),Object.defineProperty(m,"FoxPageHeader",{enumerable:!0,get:()=>v.ElPageHeader}),Object.defineProperty(m,"FoxPagination",{enumerable:!0,get:()=>v.ElPagination}),Object.defineProperty(m,"FoxPopconfirm",{enumerable:!0,get:()=>v.ElPopconfirm}),Object.defineProperty(m,"FoxPopover",{enumerable:!0,get:()=>v.ElPopover}),Object.defineProperty(m,"FoxPopper",{enumerable:!0,get:()=>v.ElPopper}),Object.defineProperty(m,"FoxProgress",{enumerable:!0,get:()=>v.ElProgress}),Object.defineProperty(m,"FoxRadio",{enumerable:!0,get:()=>v.ElRadio}),Object.defineProperty(m,"FoxRadioButton",{enumerable:!0,get:()=>v.ElRadioButton}),Object.defineProperty(m,"FoxRadioGroup",{enumerable:!0,get:()=>v.ElRadioGroup}),Object.defineProperty(m,"FoxRate",{enumerable:!0,get:()=>v.ElRate}),Object.defineProperty(m,"FoxResult",{enumerable:!0,get:()=>v.ElResult}),Object.defineProperty(m,"FoxRow",{enumerable:!0,get:()=>v.ElRow}),Object.defineProperty(m,"FoxScrollbar",{enumerable:!0,get:()=>v.ElScrollbar}),Object.defineProperty(m,"FoxSegmented",{enumerable:!0,get:()=>v.ElSegmented}),Object.defineProperty(m,"FoxSelect",{enumerable:!0,get:()=>v.ElSelect}),Object.defineProperty(m,"FoxSelectV2",{enumerable:!0,get:()=>v.ElSelectV2}),Object.defineProperty(m,"FoxSkeleton",{enumerable:!0,get:()=>v.ElSkeleton}),Object.defineProperty(m,"FoxSkeletonItem",{enumerable:!0,get:()=>v.ElSkeletonItem}),Object.defineProperty(m,"FoxSlider",{enumerable:!0,get:()=>v.ElSlider}),Object.defineProperty(m,"FoxSpace",{enumerable:!0,get:()=>v.ElSpace}),Object.defineProperty(m,"FoxStatistic",{enumerable:!0,get:()=>v.ElStatistic}),Object.defineProperty(m,"FoxStep",{enumerable:!0,get:()=>v.ElStep}),Object.defineProperty(m,"FoxSteps",{enumerable:!0,get:()=>v.ElSteps}),Object.defineProperty(m,"FoxSubMenu",{enumerable:!0,get:()=>v.ElSubMenu}),Object.defineProperty(m,"FoxSwitch",{enumerable:!0,get:()=>v.ElSwitch}),Object.defineProperty(m,"FoxTabPane",{enumerable:!0,get:()=>v.ElTabPane}),Object.defineProperty(m,"FoxTable",{enumerable:!0,get:()=>v.ElTable}),Object.defineProperty(m,"FoxTableColumn",{enumerable:!0,get:()=>v.ElTableColumn}),Object.defineProperty(m,"FoxTableV2",{enumerable:!0,get:()=>v.ElTableV2}),Object.defineProperty(m,"FoxTabs",{enumerable:!0,get:()=>v.ElTabs}),Object.defineProperty(m,"FoxTag",{enumerable:!0,get:()=>v.ElTag}),Object.defineProperty(m,"FoxTimePicker",{enumerable:!0,get:()=>v.ElTimePicker}),Object.defineProperty(m,"FoxTimeSelect",{enumerable:!0,get:()=>v.ElTimeSelect}),Object.defineProperty(m,"FoxTimeline",{enumerable:!0,get:()=>v.ElTimeline}),Object.defineProperty(m,"FoxTimelineItem",{enumerable:!0,get:()=>v.ElTimelineItem}),Object.defineProperty(m,"FoxTooltip",{enumerable:!0,get:()=>v.ElTooltip}),Object.defineProperty(m,"FoxTransfer",{enumerable:!0,get:()=>v.ElTransfer}),Object.defineProperty(m,"FoxTree",{enumerable:!0,get:()=>v.ElTree}),Object.defineProperty(m,"FoxTreeSelect",{enumerable:!0,get:()=>v.ElTreeSelect}),Object.defineProperty(m,"FoxTreeV2",{enumerable:!0,get:()=>v.ElTreeV2}),Object.defineProperty(m,"FoxUpload",{enumerable:!0,get:()=>v.ElUpload}),Object.defineProperty(m,"FoxWatermark",{enumerable:!0,get:()=>v.ElWatermark}),m.AutocompleteItem=el,m.Broadcast=kn,m.BroadcastKey=ve,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=Te,m.FoxMapping=It,m.FoxMoneyItem=Xn,m.FoxMoreButton=Il,m.FoxOverLay=sn,m.FoxPage=Fn,m.FoxPopup=wl,m.FoxPrice=on,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=an,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=Te,m.Mapping=It,m.MoneyItem=Xn,m.MoreButton=Il,m.OverLay=sn,m.Page=Fn,m.Popup=wl,m.Price=on,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=an,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=Do,m.ValidateSchema=ho,m.ValidateSchemaKey=qe,m.cancelRaf=Ur,m.clearNonNumber=ia,m.clone=Cn,m.compareTo=Sn,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=On,m.defineItem=$e,m.definePageState=wo,m.defineSimpleItem=vo,m.deleteGlobalValidator=pa,m.disabledProperty=De,m.divide=wn,m.excludeProps=Ne,m.extend=lt,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=ot,m.isDate=ea,m.isESModule=na,m.isEmptyString=pe,m.isEqual=Ye,m.isFunction=Tn,m.isHidden=_t,m.isInnerPage=Ta,m.isMap=Jr,m.isNil=Nn,m.isNumberString=lo,m.isObject=We,m.isPlainObject=$n,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=xn,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=Se,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=Vn,m.useBroadcast=St,m.useDomain=Ge,m.useExpose=we,m.useInnerSize=Rn,m.usePageState=Wt,m.usePosition=Io,m.useRawTouch=Cl,m.useRect=Ar,m.useSize=Zt,m.useTouch=ad,m.valueLength=wt,Object.defineProperties(m,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
5
|
+
*/function At(e,n="0"){let o=0,l=-1;e[0]=="-"&&(o++,l=1,e=e.substring(1),e.length),n[0]=="-"&&(o++,l=2,n=n.substring(1),n.length),e=Ee(e),n=Ee(n),[e,n]=pn(Ee(e),Ee(n)),o==1&&(l==1?e=mn(e):n=mn(n));let r=jl(e,n);return o?o==2?"-"+Ee(r):e.length<r.length?Ee(r.substring(1)):"-"+Ee(mn(r)):Ee(r)}function mn(e){let n="",o=e.length,l=e.split(".")[1],r=l?l.length:0;for(let i=0;i<o;i++)e[i]>="0"&&e[i]<="9"?n+=9-parseInt(e[i]):n+=e[i];let a=r>0?"0."+new Array(r).join("0")+"1":"1";return jl(n,a)}function Ee(e){let n=e.split(".");for(n[0]||(n[0]="0");n[0][0]=="0"&&n[0].length>1;)n[0]=n[0].substring(1);return n[0]+(n[1]?"."+n[1]:"")}function pn(e,n){let o=e.split("."),l=n.split("."),r=o[0].length,a=l[0].length;return r>a?l[0]=new Array(Math.abs(r-a)+1).join("0")+(l[0]?l[0]:""):o[0]=new Array(Math.abs(r-a)+1).join("0")+(o[0]?o[0]:""),r=o[1]?o[1].length:0,a=l[1]?l[1].length:0,(r||a)&&(r>a?l[1]=(l[1]?l[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]:""),n=l[0]+(l[1]?"."+l[1]:""),[e,n]}function jl(e,n){[e,n]=pn(e,n);let o="",l=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){o="."+o;continue}let a=parseInt(e[r])+parseInt(n[r])+l;o=a%10+o,l=Math.floor(a/10)}return l?l.toString()+o:o}var be=(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))(be||{});function bt(e,n=0,o=be.HALF_EVEN){if(o===be.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let l=!1;e[0]==="-"&&(l=!0,e=e.substring(1));let r=e.split("."),a=r[0],i=r[1];if(n<0){if(n=-n,a.length<=n)return"0";{let s=a.substr(0,a.length-n);return e=s+"."+a.substr(a.length-n)+i,s=bt(e,0,o),(l?"-":"")+s+new Array(n+1).join("0")}}if(n==0)return a.length,zl(r[1],a,l,o)?(l?"-":"")+yn(a):(l?"-":"")+a;if(r[1]){if(r[1].length<n)return(l?"-":"")+a+"."+r[1]+new Array(n-r[1].length+1).join("0")}else return(l?"-":"")+a+"."+new Array(n+1).join("0");i=r[1].substring(0,n);let u=r[1].substring(n);return u&&zl(u,i,l,o)&&(i=yn(i),i.length>n)?(l?"-":"")+yn(a,parseInt(i[0]))+"."+i.substring(1):(l?"-":"")+a+"."+i}function zl(e,n,o,l){if(!e||e===new Array(e.length+1).join("0")||l===be.DOWN||!o&&l===be.FLOOR||o&&l===be.CEILING)return!1;if(l===be.UP||o&&l===be.FLOOR||!o&&l===be.CEILING)return!0;let r="5"+new Array(e.length).join("0");if(e>r)return!0;if(e<r)return!1;switch(l){case be.HALF_DOWN:return!1;case be.HALF_UP:return!0;case be.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function yn(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let o=e.length-1,l="";for(let r=o;r>=0;r--){let a=parseInt(e[r])+n;a==10?(n=1,a=0):n=0,l+=a}return n&&(l+=n),l.split("").reverse().join("")}function bn(e,n){e=e.toString(),n=n.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),n[0]=="-"&&(o++,n=n.substr(1)),e=vt(e),n=vt(n);let l=0,r=0;e.indexOf(".")!=-1&&(l=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(r=n.length-n.indexOf(".")-1);let a=l+r;if(e=vt(e.replace(".","")),n=vt(n.replace(".","")),e.length<n.length){let g=e;e=n,n=g}if(n=="0")return"0";let i=n.length,u=0,s=[],c=i-1,d="";for(let g=0;g<i;g++)s[g]=e.length-1;for(let g=0;g<2*e.length;g++){let y=0;for(let v=n.length-1;v>=c&&v>=0;v--)s[v]>-1&&s[v]<e.length&&(y+=parseInt(e[s[v]--])*parseInt(n[v]));y+=u,u=Math.floor(y/10),d=y%10+d,c--}return d=vt(Zr(d,a)),o==1&&(d="-"+d),d}function Zr(e,n){return n==0?e:(e=n>=e.length?new Array(n-e.length+1).join("0")+e:e,e.substr(0,e.length-n)+"."+e.substr(e.length-n,n))}function 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 vn(e,n,o=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let l=0;n[0]=="-"&&(n=n.substring(1),l++),e[0]=="-"&&(e=e.substring(1),l++);var r=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Ee(n.replace(".","")),r>=0){let c=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(c==-1)e=Ee(e+new Array(r+1).join("0"));else if(r>c)e=e.replace(".",""),e=Ee(e+new Array(r-c+1).join("0"));else if(r<c){e=e.replace(".","");let d=e.length-c+r;e=Ee(e.substring(0,d)+"."+e.substring(d))}else r==c&&(e=Ee(e.replace(".","")))}let a=0,i=n.length,u="",s=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),s.indexOf(".")>-1){let c=s.length-s.indexOf(".")-1;s=s.replace(".",""),i>s.length&&(c+=i-s.length,s=s+new Array(i-s.length+1).join("0")),a=c,u="0."+new Array(c).join("0")}for(o=o+2;a<=o;){let c=0;for(;parseInt(s)>=parseInt(n);)s=At(s,"-"+n),c++;u+=c,e?(e[0]=="."&&(u+=".",a++,e=e.substring(1)),s=s+e.substring(0,1),e=e.substring(1)):(a||(u+="."),a++,s=s+"0")}return(l==1?"-":"")+Ee(bt(u,o-2))}function wn(e,n){return e=e.toString(),n=n.toString(),n=Sn(n),At(e,n)}function Sn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Hl(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),Kl(e),Kl(n);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let l=wn(e,bn(n,bt(vn(e,n),0,be.FLOOR)));return o+l}function Kl(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Wl(e,n){let o=!1;if(e[0]=="-"&&n[0]!="-")return-1;if(e[0]!="-"&&n[0]=="-")return 1;if(e[0]=="-"&&n[0]=="-"&&(e=e.substr(1),n=n.substr(1),o=!0),[e,n]=pn(e,n),e.localeCompare(n)==0)return 0;for(let l=0;l<e.length;l++)if(e[l]!=n[l])return e[l]>n[l]?o?-1:1:o?1:-1;return 0}class de{value;static RoundingModes=be;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[o,l]=n.split(/[eE]/);o=Ee(o);let r="";o[0]=="-"&&(r="-",o=o.substring(1)),o.indexOf(".")>=0?(l=parseInt(l)+o.indexOf("."),o=o.replace(".","")):l=parseInt(l)+o.length,o.length<l?n=r+o+new Array(l-o.length+1).join("0"):o.length>=l&&l>0?n=r+Ee(o.substring(0,l))+(o.length>l?"."+o.substring(l):""):n=r+"0."+new Array(-l+1).join("0")+o}return n}constructor(n="0"){this.value=de.validate(n)}getValue(){return this.value}static getPrettyValue(n,o,l){if(!(o||l))o=3,l=",";else if(!(o&&l))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=de.validate(n);let r=n.charAt(0)=="-";r&&(n=n.substring(1));var a=n.indexOf(".");a=a>0?a:n.length;for(var i="",u=a;u>0;)u<o?(o=u,u=0):u-=o,i=n.substring(u,u+o)+(u<a-o&&u>=0?l:"")+i;return(r?"-":"")+i+n.substring(a)}getPrettyValue(n,o){return de.getPrettyValue(this.value,n,o)}static round(n,o=0,l=be.HALF_EVEN){if(n=de.validate(n),isNaN(o))throw Error("Precision is not a number: "+o);return bt(n,o,l)}round(n=0,o=be.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new de(bt(this.value,n,o))}static floor(n){return n=de.validate(n),n.indexOf(".")===-1?n:de.round(n,0,be.FLOOR)}floor(){return this.value.indexOf(".")===-1?new de(this.value):new de(this.value).round(0,be.FLOOR)}static ceil(n){return n=de.validate(n),n.indexOf(".")===-1?n:de.round(n,0,be.CEILING)}ceil(){return this.value.indexOf(".")===-1?new de(this.value):new de(this.value).round(0,be.CEILING)}static add(n,o){return n=de.validate(n),o=de.validate(o),At(n,o)}add(n){return new de(At(this.value,n.getValue()))}static subtract(n,o){return n=de.validate(n),o=de.validate(o),wn(n,o)}subtract(n){return new de(wn(this.value,n.getValue()))}static multiply(n,o){return n=de.validate(n),o=de.validate(o),bn(n,o)}multiply(n){return new de(bn(this.value,n.getValue()))}static divide(n,o,l){return n=de.validate(n),o=de.validate(o),vn(n,o,l)}divide(n,o){return new de(vn(this.value,n.getValue(),o))}static modulus(n,o){return n=de.validate(n),o=de.validate(o),Hl(n,o)}modulus(n){return new de(Hl(this.value,n.getValue()))}static compareTo(n,o){return n=de.validate(n),o=de.validate(o),Wl(n,o)}compareTo(n){return Wl(this.value,n.getValue())}static negate(n){return n=de.validate(n),Sn(n)}negate(){return new de(Sn(this.value))}}function Yl(e,n){return de.multiply(`${e}`,`${n}`)}function xn(e,n,o=8){return de.divide(`${e}`,`${n}`,o)}function Tn(e,n){return e=`${e}`,n=`${n}`,de.compareTo(e,n)}function Gl(e){return de.negate(e)}function Mt(e,n=-1,o=!1,l=3,r=","){let a=`${e}`;if(a.length==0||a==="-")return"";let i=a.charAt(0);i=="-"?a=a.substring(1):i="";let u=a,s="",c=a.indexOf(".");c!=-1&&(u=a.substring(0,c),s=a.substring(c+1)),n!=-1&&(n<s.length?s=s.substring(0,n):o&&n>s.length&&(s=s.padEnd(n,"0")));let d;if(l>0){let g="",y=u.split("").reverse();for(let v=0;v<y.length;v++)g+=y[v]+((v+1)%l==0&&v+1!=y.length?r:"");s.length==0?d=`${i}${g.split("").reverse().join("")}`:d=`${i}${g.split("").reverse().join("")}.${s}`}else s.length==0?d=`${i}${u}`:d=`${i}${u}.${s}`;return d}function Ul(e){let n=`${e}`,o=n.charAt(0);o=="-"?n=n.substring(1):o="";let l=n.replace(/[^\d\.-]/g,"");return`${o}${l}`}const $n=Pl,Jr=Array.isArray,Qr=e=>Lt(e)==="[object Map]",ea=e=>Lt(e)==="[object Set]",ta=e=>e instanceof Date,Cn=e=>typeof e=="function",Xl=e=>typeof e=="string",na=e=>typeof e=="symbol",We=e=>e!==null&&typeof e=="object",Zl=e=>We(e)&&Cn(e.then)&&Cn(e.catch),Jl=Object.prototype.toString,Lt=e=>Jl.call(e),En=e=>Lt(e)==="[object Object]",Ql=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function la(e){return e.__esModule||Ql&&e[Symbol.toStringTag]==="Module"}const oa=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function lt(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,l=e.length,r=!1;for(typeof n=="boolean"&&(r=n,n=e[o]??{},o++),typeof n!="object"&&(n={});o<l;o++)if(e[o]!==null&&e[o]!==void 0){let a=e[o];for(let i in a){let u=n[i],s=a[i];if(u!==s)if(r===!0&&s&&typeof s=="object"){let c;Array.isArray(s)?c=u&&Array.isArray(u)?u:[]:c=u&&typeof u=="object"?u:{},n[i]=lt(r,c,s)}else s!==void 0&&(n[i]=s)}}return n}function Nn(e,n,o=!1){if(!o)lt(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let r in n){let a=e[r],i=n[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!En(i))continue;a=Nn(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}const l=Object.getOwnPropertySymbols(n);for(let r of l){let a=e[r],i=n[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!En(i))continue;a=Nn(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const kn=oa?Promise.resolve():null;function ra(e,...n){kn!==null?n&&n.length>0?kn.then(()=>{e(n)}):kn.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function ue(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function Se(e){return typeof e=="number"?e:Number(e)}const aa={"[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):aa[o]||"object"}function eo(e){return e&&typeof e=="object"&&"setInterval"in e}function _t(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function to(e){let n=!!e&&"length"in e&&e.length,o=Bt(e);return o==="function"||eo(e)?!1:o==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function no(e,n){let o=+n.length,l=0,r=e.length;for(;l<o;l++)e[r++]=n[l];return e.length=r,e}function ia(e,n=[]){let o=n;return e!=null&&(to(Object(e))?no(o,typeof e=="string"?[e]:e):o.push(e)),o}function Ye(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let o=Bt(e),l=Bt(n);if(o!==l)return!1;if(o==="object"){let r=Object.keys(e),a=Object.keys(n);if(r.length!==a.length)return!1;for(let i=0;i<r.length;i++){let u=r[i],s=e[u],c=n[u];if(!Ye(s,c))return!1}return!0}else if(o==="array"){if(e.length!==n.length)return!1;for(let r=0;r<e.length;r++){let a=e[r],i=n[r];if(!Ye(a,i))return!1}return!0}return!1}const ot=typeof window<"u";function In(e){return e==null}function lo(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const he=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function oo(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 ro(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const o=n.indexOf(".");return o==-1?n.length:o}function ao(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const o=n.indexOf(".");return o==-1?0:n.length-(o+1)}function io(e,n,o){const l=e.indexOf(n);return l===-1?e:n==="-"&&l!==0?e.slice(0,l):e.slice(0,l+1)+e.slice(l).replace(o,"")}function sa(e,n=!0,o=!0){n?e=io(e,".",/\./g):e=e.replace(/\./g,""),o?e=io(e,"-",/-/g):e=e.replace(/-/,"");const l=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(l,"")}function ua(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(o=>{if(Ye(e,o))return!0}):n.indexOf(e)}function ca(e,n){if(typeof e=="object"||Array.isArray(e)){let o=n.reverse().findIndex(l=>{if(Ye(e,l))return!0});return o!==-1&&(o=n.length-1-o),o}return n.lastIndexOf(e)}function wt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function so(e,...n){const o={};return n.forEach(l=>{for(const r in l)o[r]=e[r]}),o}function Ne(e,...n){const o=[];n.forEach(r=>{Reflect.apply([].push,o,Reflect.ownKeys(r))});const l={};for(const r in e)o.includes(r)||(l[r]=e[r]);return l}const fa=(e,n,o)=>{const l=Object.assign({},e),r=Object.assign({},o);return Object.keys(n).length>0?(Object.keys(l).forEach(a=>{r.hasOwnProperty(a)?typeof r[a]=="string"&&(l[a]=n[r[a]]):n[a]&&(l[a]=n[a])}),l):e},ve=Symbol.for("BroadcastKey");class On{parent;children=[];callbacks=new Map;proxy=null;name;constructor(n,o,l){this.parent=n,this.proxy=o,this.name=l,n!==null&&n.addChild(this)}addChild(n){this.children.push(n)}removeChild(n){const o=this.children.findIndex(l=>n===l);o!==-1&&this.children.splice(o,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(n,o,...l){if(n.maxLevel!==void 0&&n.maxLevel!==null&&n.maxLevel>0){if(n.level=n.level??0,n.level>n.maxLevel)return[];n.level++}let r=!1;!n.name||n.name==="*"?r=!0:!n.name||n.name==="+"?(r=!1,n.name="*"):lo(n.name)&&this.name&&n.name.test(this.name)?r=!0:typeof n.name=="function"?r=Reflect.apply(n.name,null,[this.name]):n.name===this.name&&(r=!0);const a=[];if(r){const i=this.callbacks.get(o);if(typeof i=="function"){const s=Reflect.apply(i,this.proxy,[...l]);s!=null&&a.push(s)}const u=this.proxy??{};if(typeof u[o]=="function"){const s=Reflect.apply(u[o],u,[...l]);s!=null&&a.push(s)}}return this.children.forEach(i=>{const u=Reflect.apply(i.emit,i,[{...n},o,...l]);u!=null&&Array.isArray(u)&&Reflect.apply([].push,a,[...u])}),a}emitToChildren(n,o,...l){const r=[];return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...n},o,...l]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}on(n,o){this.callbacks.set(n,o)}}function qt(e,n,o,l){const r=new On(n,e,o);if(l&&typeof l=="object")for(const a in l)r.on(a,l[a]);return r}function da(e,n,o){const l=o;if(l[ve])return l[ve];const r=t.inject(ve,null),a=new On(r,o,e);if(n&&typeof n=="object")for(const i in n)a.on(i,n[i]);return l[ve]=a,t.provide(ve,a),t.onUnmounted(()=>{a.destroy(),l[ve]=void 0}),a}function St(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[ve]??t.inject(ve,null):t.inject(ve,null)}const rt=e=>e.default??e;class ha{error(n,o){const l=o,r=o||t.hasInjectionContext()?St(o):null;r?r.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof l.setErrorTip=="function"&&l.setErrorTip(n)}reset(n){const o=n,l=n||t.hasInjectionContext()?St(n):null;l?l.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(n){const o=n,l=n||t.hasInjectionContext()?St(n):null;l?l.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(n,o,l){Array.isArray(n)||(n=[n]);const r=l,a=l||t.hasInjectionContext()?St(l):null,i=o.find(s=>s.required===!0||s.type==="required"&&s.required!==!1),u=n.find(s=>s.required===!0||s.type==="required"&&s.required!==!1);!i&&u?a?a.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0):i&&!u&&(a?a.emit({name:"*"},"setRequired",!1):typeof r.setRequired=="function"&&r.setRequired(!1),this.reset(l))}getValue(n){return n.modelValue}}let xt=new ha;function ga(e){xt=e}function ma(e){xt?Object.assign(xt,e):xt=e}function pa(e,n){rt(nt).setValidator(e,n)}function ya(e){rt(nt).deleteValidator(e)}let uo=["blur","clear"];function ba(e){uo=e}function co(){return uo}let fo=["focus","change","setValue"];function va(e){fo=e}function ho(){return fo}function wa(e){rt(nt).messages(e)}function Tt(...e){const n=[];return e.forEach(o=>{o.forEach(l=>{const r=n.findIndex(a=>a.type===l.type);r!==-1&&n.splice(r,1),n.push(l)})}),n}function Pt(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}const qe=Symbol("ValidateSchemaKey");class go{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(n,o,l){this.parent=n,this.descriptor=o,this.proxy=l,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let n=this.proxy.$attrs;n&&(this.scope=t.effectScope(!0),this.scope.run(()=>{t.watchEffect(()=>{const o=Pt(Tt(this.attrRules,this.rules)),l=[];for(let a in n){let i=n[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let s={type:a};i!==null&&typeof i=="object"&&Object.assign(s,i),l.push(s);continue}let u=this.getValidator(a);if(u!==null){let s={type:a,validator:u};l.push(s)}}this.attrRules=Pt(l);const r=Tt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(r,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(n,...o){const l=this.descriptor.validateHandler;if(l&&typeof l[n]=="function")return Reflect.apply(l[n],l,[...o]);const r=xt;return r&&typeof r[n]=="function"?Reflect.apply(r[n],r,[...o]):null}decorate(n,o){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",n,o,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(n){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",n,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(n,o,l=!1){l?rt(nt).setValidator(n,o):this.validators[n]=o}getValidator(n){let o=this.validators[n]??null;return o||(o=this.parent?.getValidator(n)??null),o}deleteValidator(n,o=!1){o?rt(nt).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,o=!1){if(o)return rt(nt).hasValidator(n);{let l=Reflect.has(this.validators,n);return!l&&this.parent!==null&&(l=this.parent.hasValidator(n,!1)),l}}setRule(n){const o=Tt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=Pt(n):this.rules=Pt([n]);const l=Tt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(l,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 l=this.descriptor.fieldName??"value";if(o.length>0){const r={[`${l}`]:o},a=this.getValue(),i={[`${l}`]:a},u=rt(nt),s=new u(r),c=this.proxy??i;return s.validate(i,{context:c}).then(g=>{if(g.pass)this.success();else{let y="error";Array.isArray(g.errors)&&g.errors.length>0&&(y=g.errors[0].message??y,g.errors=[g.errors[0]],g.errors[0].ref=c),this.error(y)}return g}).catch(g=>{const y=g.message??`${g}`;return this.error(y),g})}}return Promise.resolve({pass:!0})}}function jt(e,n,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 go(n,o,e)}const zt=Symbol.for("EventEmitterKey");class mo{register=new Map;proxy;constructor(n){this.proxy=n}destroy(){this.proxy=null,this.register.clear()}off(n,o){let l=this.register.get(n);if(l&&Array.isArray(l)){let r=l.findIndex(a=>a===o);r!==-1&&l.splice(r,1)}}on(n,o){let l=this.register.get(n);l||(l=new Array,this.register.set(n,l)),l.push(o)}emit(n,...o){const l=this.register.get(n);l&&l.forEach(r=>{try{Reflect.apply(r,null,[n,...o])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[n,...o])}}function $t(e,n){let o=null;return function(...l){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...l])},n)}}function po(e,n){let o=0;return function(...l){const r=new Date().getTime();r-o<n||(o=r,Reflect.apply(e,null,[...l]))}}function Sa(e,n){const o=$t((l,r)=>{e=l,r()},n);return t.customRef((l,r)=>({get(){return l(),e},set(a){o(a,r)}}))}function xa(e){let n=!1;return function(...o){n||(n=!0,Reflect.apply(e,null,[...o]))}}function Ht(e,n,o,l=0,r=!0,a){let i=n,u=0;if(r){const c=e();if(u++,c){typeof a=="function"&&a(!0);return}if(u>o){typeof a=="function"&&a(!1);return}}const s=()=>{const c=e();if(u++,c){typeof a=="function"&&a(!0);return}if(u>o){typeof a=="function"&&a(!1);return}i+=l,setTimeout(s,i)};setTimeout(s,i)}const Ae=Symbol("DomainKey"),ut=Symbol("DataItemsKey");class Kt{_parent=null;get parent(){return this._parent}set parent(n){this._parent=n}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(n){this._broadcast=n}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(n){this._validateSchema=n}_props=t.reactive({});constructor(n=null){this._name=n}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(n,o=[]){for(const l in n){const r=n[l];o.length>0&&o.indexOf(r)!==-1||(this._props[l]=r)}}has(n){if(Reflect.has(this._props,n)){const o=this._props[n];if(o!=null)return!0}return this.parent==null?!1:this.parent.has(n)}delete(n){Reflect.deleteProperty(this._props,n)}set(n,o){this._props[n]=o}get(n,o){if(Reflect.has(this._props,n)){const l=this._props[n];if(l!=null)return l}return this.parent==null?o:this.parent.get(n,o)}getForParent(n,o){return this.parent==null?o:this.parent.get(n,o)}getForSelf(n){return this._props[n]}getAll(n){const o=[];let l=this;for(;l!=null;){if(Reflect.has(l._props,n)){const r=l._props[n];o.push(r)}l=l._parent}return o}}const Ta=new Kt;function ct(){return Ta}function Ge(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ae]??t.inject(Ae,null):t.inject(Ae,null)}const Vn=Symbol("OriginalDateKey");function Dn(e,n,o=[],l){const r=t.getCurrentInstance();let a=r?.proxy,i=t.inject(Ae,null);i===null&&(i=ct());const u=e||n.prop||n.name;let s=new Kt(u);s.parent=i;const c=f=>{a[Vn]||y(f),s?.set("modelValue",f)},d=()=>s?.getForSelf("modelValue")??null,g=()=>a[Vn]??null,y=f=>{const h={};lt(!0,h,t.toRaw(f)),a[Vn]=h};t.isReactive(n)||typeof n=="function"?t.watch(n,f=>{s?.merge(f,o)},{immediate:!0}):s.merge(n,o),n.modelValue&&y(n.modelValue);const v=(f,h)=>{s?.set(f,h)},p=f=>s?.getForSelf(f)??null;if(a[Ae]=s,t.provide(Ae,s),r!==null){const f=t.inject(ve,null),h=qt(a,f,u,l);s.broadcast=h,a[ve]=h,t.provide(ve,h),a.broadcast=($,q,...j)=>Reflect.apply(h.emit,h,[$,q,...j]);const D=t.inject(qe,null),T=jt(a,D,{componentName:""});s.validateSchema=T,a[qe]=T,t.provide(qe,T),a[ut]=new Map,a.validate=($=!0)=>{const q=[];let j=null;const B={deep:!1};if($===!0)j={name:"*"};else if(Array.isArray($)&&$.length>0){const _=$;j={name:M=>M?_.indexOf(M)!==-1:!1}}else if($!=null&&typeof $=="object"){const _=$;if(Object.assign(B,_),Array.isArray(_.include)&&_.include.length>0){const M=_.include;j={name:x=>x?M.indexOf(x)!==-1:!1}}else if(Array.isArray(_.exclude)&&_.exclude.length>0){const M=_.exclude;j={name:x=>x?M.indexOf(x)===-1:!1}}else j={name:"*"}}if(j){const _=h?.emitToChildren(j,"validate",B);_&&Reflect.apply([].push,q,_)}return q.length==1?q[0]:q.length>1?Promise.all(q).then(_=>{let M=[];return _.forEach(x=>{x.pass===!1&&Array.isArray(x.errors)&&(M=[...M,...x.errors])}),M.length>0?{pass:!1,errors:M}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=($,q=!0,j=!1)=>{if(j===!0){Reflect.ownKeys($).forEach(_=>{let M=String(_);const x={componentName:"",fieldName:M,pureDataValidate:!0};if(s){const N=vo(s,M,x,h,T);a[ut].set(M,N);const b=$[M];b&&N.validateSchema.setRule(b)}});return}if(q){const B=Reflect.ownKeys($),_={name:M=>B.includes(M)};h?.emitToChildren(_,"setNameValidateRules",$,!1)}},a.clearValidate=($=!0)=>{let q=null;if($===!0)q={name:"*"};else if(Array.isArray($)&&$.length>0){const j=$;q={name:B=>B?j.indexOf(B)!==-1:!1}}else if($!=null&&typeof $=="object"){const j=$;if(Array.isArray(j.include)&&j.include.length>0){const B=j.include;q={name:_=>_?B.indexOf(_)!==-1:!1}}else if(Array.isArray(j.exclude)&&j.exclude.length>0){const B=j.exclude;q={name:_=>_?B.indexOf(_)===-1:!1}}else q={name:"*"}}q&&h?.emitToChildren(q,"clearValidate",!1)},a.resetFields=$=>{const q=d();if(!q)return;const j={};if(lt(!0,j,g()??{}),Array.isArray($))$.forEach(B=>{q[B]=j[B]});else if($&&Array.isArray($.include))($.include??[]).forEach(_=>{q[_]=j[_]});else if($&&Array.isArray($.exclude)){let B=$.exclude??[];Reflect.ownKeys(j).forEach(_=>{B.includes(_)||(q[_]=j[_])})}else Object.assign(q,j);a.clearValidate($)},a.setModelValue=($,q)=>{!q||q===u?c($):h?.emitToChildren({name:q},"setModelValue",$)},a.getModelValue=()=>d(),a.setDomainProperty=($,q)=>{v($,q)},a.getDomainProperty=$=>p($)}return t.onUnmounted(function(){s?.validateSchema&&(s.validateSchema.destroy(),a[qe]=void 0,t.provide(qe,null)),s?.broadcast&&(s?.broadcast?.destroy(),a[ve]=void 0,t.provide(ve,null)),s?.destroy(),a[Ae]=void 0,t.provide(Ae,null),a[ut]&&(a[ut].clear(),a[ut]=void 0),a.broadcast=null,a.validate=null,a.setNameValidateRules=null,a.clearValidate=null,a.resetFields=null,a.setModelValue=null,a.getModelValue=null,a.setDomainProperty=null,a.getDomainProperty=null,s=null,a=null}),s}function yo(e,n,o=[]){let r=t.getCurrentInstance()?.proxy,a=t.inject(Ae,null);a===null&&(a=ct());const i=e||n.prop||n.name;let u=new Kt(i);return u.parent=a,t.isReactive(n)||typeof n=="function"?t.watch(n,s=>{u?.merge(s,o)},{immediate:!0}):u.merge(n,o),r[Ae]=u,t.provide(Ae,u),t.onUnmounted(()=>{u?.destroy(),r[Ae]=void 0,t.provide(Ae,null),u=null,r=null}),u}function bo(e,n,o){const r=Ge(e)?.get("rules");if(!r)return;let a=r[o];a&&(Array.isArray(a)||(a=[a]),n.setRule(a))}function $e(e,n,o){const r=t.getCurrentInstance()?.proxy,a=n??"",i=t.inject(ve,null);let u=qt(r,i,a,o);r[ve]=u,t.provide(ve,u),r.broadcast=(p,f,...h)=>u?Reflect.apply(u.emit,u,[p,f,...h]):null;const s=t.inject(qe,null);e.fieldName=e.fieldName??a;let c=jt(r,s,e);r[qe]=c,t.provide(qe,c),bo(r,c,a),r.validate=(p=null)=>{if(!c)return Promise.resolve({pass:!0});const f=[];let h=!1,D=!1;if(Array.isArray(p)&&p.indexOf(a)!==-1)D=!0,h=!0;else if(p&&typeof p=="object"){const T=p,$=T.ignoreDisabled??!0,q=T.ignoreReadonly??!0,j=T.ignoreHidden??!0;$===!0&&e.disabled===!0||q===!0&&e.readonly===!0||j===!0&&_t(r.$el)?D=!1:(Array.isArray(T.include)&&T.include.indexOf(a)!==-1||Array.isArray(T.exclude)&&T.exclude.indexOf(a),D=!0),h=T.deep??!1}else typeof p=="boolean"&&(h=p),D=!0;if(D){const T=c?.validate();f.push(T)}if(h){let T=null;const $={deep:!1};if(p===!0)T={name:"*"};else if(Array.isArray(p)&&p.length>0){const q=p;T={name:j=>j?q.indexOf(j)!==-1:!1}}else if(p!=null&&typeof p=="object"){const q=p;if(Object.assign($,q),Array.isArray(q.include)&&q.include.length>0){const j=q.include;T={name:B=>B?j.indexOf(B)!==-1:!1}}else if(Array.isArray(q.exclude)&&q.exclude.length>0){const j=q.exclude;T={name:B=>B?j.indexOf(B)===-1:!1}}else T={name:"*"}}if(T&&u){const q=u.emitToChildren(T,"validate",$);Reflect.apply([].push,f,q)}}return f.length==1?f[0]:f.length>1?Promise.all(f).then(T=>{let $=[];return T.forEach(q=>{q.pass===!1&&Array.isArray(q.errors)&&($=[...$,...q.errors])}),$.length>0?{pass:!1,errors:$}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=p=>c?.setRule(p),r.setNameValidateRules=(p,f=!1)=>{const h=p[a];if(h&&c?.setRule(h),f&&u){const D={name:T=>Reflect.ownKeys(p).includes(T)};u.emitToChildren(D,"setNameValidateRules",p,!1)}},r.clearValidate=(p=null)=>{(!Array.isArray(p)||p.indexOf(n??"")!==-1)&&c?.clear();let f=null;if(p===!0)f={name:"*"};else if(Array.isArray(p)&&p.length>0){const h=p;f={name:D=>D?h.indexOf(D)!==-1:!1}}else if(p!=null&&typeof p=="object"){const h=p;if(Array.isArray(h.include)&&h.include.length>0){const D=h.include;f={name:T=>T?D.indexOf(T)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const D=h.exclude;f={name:T=>T?D.indexOf(T)===-1:!1}}else f={name:"*"}}f&&u&&u.emitToChildren(f,"clearValidate",!1)};let d=new mo(r);r[zt]=d;const g=$t((p="validate")=>{c&&(p==="reset"?c.clear():c.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:co()).forEach(p=>{d&&d.on(p,f=>{g("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:ho()).forEach(p=>{d&&d.on(p,f=>{g("reset")})}),t.onUnmounted(()=>{u?.destroy(),r[ve]=void 0,t.provide(ve,null),u=null,c?.destroy(),r[qe]=void 0,t.provide(qe,null),c=null,d?.destroy(),r[zt]=void 0,d=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:u,validateSchema:c,emitEvent:(p,...f)=>{d&&Reflect.apply(d.emit,d,[p,...f])},onEvent:(p,f)=>{d&&Reflect.apply(d.on,d,[f])},offEvent:(p,f)=>{d&&Reflect.apply(d.off,d,[f])}}}function vo(e,n,o,l,r){const a={},i=n??"",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}};o.fieldName=i,o.validateHandler={getValue(d){return u.getValue()}};let s=jt({},r,o);a.validate=(d=null)=>{if(!u.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const g=[];let y=!1,v=!1;if(Array.isArray(d)&&d.indexOf(i)!==-1)v=!0,y=!0;else if(d&&typeof d=="object"){const p=d;Array.isArray(p.include)&&p.include.indexOf(i)!==-1||Array.isArray(p.exclude)&&p.exclude.indexOf(i),v=!0,y=p.deep??!1}else typeof d=="boolean"&&(y=d),v=!0;if(v&&s){const p=s.validate();g.push(p)}if(y){let p=null;const f={deep:!1};if(d===!0)p={name:"*"};else if(Array.isArray(d)&&d.length>0){const h=d;p={name:D=>D?h.indexOf(D)!==-1:!1}}else if(d!=null&&typeof d=="object"){const h=d;if(Object.assign(f,h),Array.isArray(h.include)&&h.include.length>0){const D=h.include;p={name:T=>T?D.indexOf(T)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const D=h.exclude;p={name:T=>T?D.indexOf(T)===-1:!1}}else p={name:"*"}}if(p&&c){const h=c.emitToChildren(p,"validate",f);Reflect.apply([].push,g,h)}}return g.length==1?g[0]:g.length>1?Promise.all(g).then(p=>{let f=[];return p.forEach(h=>{h.pass===!1&&Array.isArray(h.errors)&&(f=[...f,...h.errors])}),f.length>0?{pass:!1,errors:f}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=d=>s?.setRule(d),a.setNameValidateRules=d=>{const g=d[i];g&&s?.setRule(g)};let c=qt(null,l,i,a);return t.onUnmounted(()=>{s=null,c=null}),{broadcast:c,validateSchema:s}}function wo(){let n=t.getCurrentInstance()?.proxy,o=new mo(n);return n[zt]=o,t.onUnmounted(()=>{o?.destroy(),n[zt]=void 0,o=null,n=null}),{emitEvent:(l,...r)=>{o&&Reflect.apply(o.emit,o,[l,...r])},onEvent:(l,r)=>{o&&Reflect.apply(o.on,o,[r])},offEvent:(l,r)=>{o&&Reflect.apply(o.off,o,[r])}}}const ke=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${me(e,n)}px`:"";function me(e,n=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let 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(ot){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(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*n;const l=Number(e);return isNaN(l)?0:l}const Qe="PageStateKey";function ze(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=me(e.top)),e.left!==null&&e.left!==void 0&&(n.left=me(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=me(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=me(e.right))),n}function Fn(e,n,o={},l=!0,r=-1,a=-1,i=0,u=0){if(e.headerHeight=me(o.headerHeight??n.headerHeight??-1),e.headerPadding=ze(o.headerPadding??n.headerPadding),e.footerHeight=me(o.footerHeight??n.footerHeight??-1),e.footerPadding=ze(o.footerPadding??n.footerPadding),e.contentPadding=ze(o.contentPadding??n.contentPadding),l){const s=o.height??n.height;s?e.height=me(s,a):e.height=me(a)-me(i,a)-me(u,a),e.width=me(o.width??n.width??0,r)}}function So(e,n={}){const o={top:null,left:null,bottom:null,right:null},l={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")??{},n.safeAreaInset??{});r&&(l.safeAreaTop=me(r.top),l.safeAreaBottom=me(r.bottom),l.safeAreaLeft=me(r.left),l.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;Fn(l,a,n,!0,i,u,s,c);const d=t.reactive(l),g=e.getForParent(Qe);g&&(l.height=Yt(e,g),l.width=Gt(e,g),t.watch([()=>Yt(e,g),()=>Gt(e,g)],([v,p])=>{d.height=v,d.width=p}));const y=!g;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([v,p,f=-1,h=-1,D=0,T=0])=>{Fn(d,p,n,y,f,h,D,T)}),e.set(Qe,d),d}function Wt(e){return e.get(Qe)}function Ct(e,n){if(n=n??e.get(Qe),n&&n.headerMounted){const o=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+o}return 0}function Et(e,n){if(n=n??e.get(Qe),n&&n.footerMounted){const o=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+o}return 0}function Yt(e,n){if(n=n??e.get(Qe),n){if(n.contentInnerHeight)return n.contentInnerHeight;const o=Ct(e,n),l=Et(e,n);return n.height-o-l-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function Gt(e,n){return n=n??e.get(Qe),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function $a(e,n){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[n,e]):!1}function Ca(e){return!!e.getForParent(Qe)}var Le=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Le||{});function Ut(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Oe(e,n,o=1,l){const r=Ge();return r==null?e:o===0?t.computed(()=>{const a=r.getAll(n);for(let u=a.length-1;u>=0;u--){const s=a[u];if(Ut(s,l))return s}const i=e.value;return Ut(i,l)?i:null}):t.computed(()=>{const a=e.value;if(Ut(a,l))return a;const i=r.getAll(n);for(let u=0;u<i.length;u++){const s=i[u];if(Ut(s,l))return s}return null})}function Ve(e){return Oe(e,"readonly",1)}function De(e){return Oe(e,"disabled",1)}function ge(e,n="modelValue",o=null,l){const r=t.toRef(e,n);let a=r.value;typeof o=="function"&&(a=o(r.value));const i=t.ref(a);return t.watch(r,u=>{if(typeof o=="function"){const s=o(u);s!==i.value&&(i.value=s,l&&l("setValue",s))}else u!==i.value&&(i.value=u,l&&l("setValue",u))}),i}const xo=new Map,Xt=new Map;let Rn=null;function Ea(e){Rn=e}function To(e,n,o){if(o){let l=Xt.get(o);l||(l=new Map,Xt.set(o,l)),l.set(e,n)}else xo.set(e,n)}function Pe(e,n,o){!o&&Rn&&(o=Rn(e)??void 0);let l=null;if(o){let r=Xt.get(o);r&&(l=r.get(n))}return l||(l=xo.get(n)),l}function Na(e,n){for(let o in e){const l=e[o];To(o,l,n)}}function ka(e){Xt.delete(e)}function Ia(){return{top:0,left:0,bottom:0,right:0}}function Oa(){if(ot){const e=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight;return{rootWidth:e,rootHeight:n,pageLayout:{}}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{}}}function Va(e,n){if(n.componentPrefix){const o=e.indexOf("-");return`${n.componentPrefix}${e.slice(o)}`}return e}class Da{packages;installers;_version;get version(){return this._version}constructor(n,o,l){this.packages=n,this.installers=o,this._version=l}install(n,o={}){o?.install!==!1&&(this.packages.forEach(a=>{if(a.install)n.use(a);else if(a.name){const i=Va(a.name,o);n.component(i,a)}}),this.installers.forEach(a=>{a(n,o)}));const l=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=ct();if(this.initPageLayout(o,r),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=po(()=>{const u={...o},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 o)l.indexOf(a)===-1&&r.set(a,o[a])}initPageLayout(n,o){const l=n.headerBarHeight??0,r=n.footerBarHeight??0,a=lt({},Ia(),n.safeAreaInset),i=Oa(),u=lt({},i.pageLayout,n.pageLayout);o=o??ct(),o.set("safeAreaInset",a),o.set("headerBarHeight",l),o.set("footerBarHeight",r),o.set("pageLayout",u),o.set("rootWidth",i.rootWidth),o.set("rootHeight",i.rootHeight)}setScopeGetter(n){Ea(n)}setAPI(n,o,l){To(n,o,l)}getAPI(n,o,l){return Pe(n,o,l)}batchSetAPI(n,o){Na(n,o)}clearScopeAPI(n){ka(n)}getRootDomain(){return ct()}}const Fa=[w.ElAffix,w.ElAlert,w.ElAutocomplete,w.ElAutoResizer,w.ElAvatar,w.ElBacktop,w.ElBadge,w.ElBreadcrumb,w.ElBreadcrumbItem,w.ElButton,w.ElButtonGroup,w.ElCalendar,w.ElCard,w.ElCarousel,w.ElCarouselItem,w.ElCascader,w.ElCascaderPanel,w.ElCheckTag,w.ElCheckbox,w.ElCheckboxButton,w.ElCheckboxGroup,w.ElCol,w.ElCollapse,w.ElCollapseItem,w.ElCollapseTransition,w.ElColorPicker,w.ElConfigProvider,w.ElContainer,w.ElAside,w.ElFooter,w.ElHeader,w.ElMain,w.ElDatePicker,w.ElDescriptions,w.ElDescriptionsItem,w.ElDialog,w.ElDivider,w.ElDrawer,w.ElDropdown,w.ElDropdownItem,w.ElDropdownMenu,w.ElEmpty,w.ElForm,w.ElFormItem,w.ElIcon,w.ElImage,w.ElImageViewer,w.ElInput,w.ElInputNumber,w.ElLink,w.ElMenu,w.ElSubMenu,w.ElMenuItem,w.ElMenuItemGroup,w.ElPageHeader,w.ElPagination,w.ElPopconfirm,w.ElPopover,w.ElPopper,w.ElProgress,w.ElRadio,w.ElRadioButton,w.ElRadioGroup,w.ElRate,w.ElResult,w.ElRow,w.ElScrollbar,w.ElSelect,w.ElOption,w.ElOptionGroup,w.ElSelectV2,w.ElSkeleton,w.ElSkeletonItem,w.ElSlider,w.ElSpace,w.ElSteps,w.ElStep,w.ElSwitch,w.ElTable,w.ElTableColumn,w.ElTableV2,w.ElTabs,w.ElTabPane,w.ElTag,w.ElTimePicker,w.ElTimeSelect,w.ElTimeline,w.ElTimelineItem,w.ElTooltip,w.ElTransfer,w.ElTree,w.ElTreeSelect,w.ElTreeV2,w.ElUpload,w.ElStatistic,w.ElCountdown,w.ElSegmented,w.ElAnchor,w.ElAnchorLink,w.ElWatermark,w.ElMessageBox,w.ElMessage,w.ElNotification],Ra=[w.ElInfiniteScroll,w.ElLoading,w.ElMessage,w.ElMessageBox,w.ElNotification,w.ElPopoverDirective],Aa=(e,n={})=>{const o=n.componentPrefix??"fox",l=o[0].toUpperCase()+o.slice(1);Fa.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${l}${a.slice(2)}`,e.component(a,r)):e.use(r)}),Ra.forEach(r=>{e.use(r)})};function se(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=n,o.install=l=>{l.component(o.name,o)},t.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,t.defineComponent(o)}}}function we(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let o=n.proxy;Object.assign(o,e)}}const xe={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}},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}},$o={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}},Co={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}},Eo=[];for(const e in Co)Eo.push(e);const Ma=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}},Ba=(e,n)=>({inheritAttrs:!0,props:{...xe,...$o,...La},setup(o,{slots:l}){const r=Dn(o.name,o),a=t.inject(Ma,!1);if(r){const d=So(r,o);we({getPageContentHeight:()=>Yt(r,d),getPageContentWidth:()=>Gt(r,d),getPageHeaderHeight:()=>Ct(r,d),getPageFooterHeight:()=>Et(r,d)}),d&&a&&(d.contentHeight="100%")}const i=t.computed(()=>({[e]:!0})),u=t.computed(()=>({})),s=t.getCurrentInstance(),c=(d,g=!1)=>{const y=s?.proxy;y&&typeof y.setNameValidateRules=="function"&&y.setNameValidateRules(d,!0,g)};return t.watch([()=>o.rules,()=>o.pureDataRules],([d,g],[y,v])=>{if(d&&y){const p=t.toRaw(y),f=t.toRaw(d),h=f?Reflect.ownKeys(f):[];(p?Reflect.ownKeys(p):[]).forEach(T=>{h.includes(T)||(f[T]=[])}),c(f)}if(g&&v){const p=t.toRaw(v),f=t.toRaw(g),h=f?Reflect.ownKeys(f):[];(p?Reflect.ownKeys(p):[]).forEach(T=>{h.includes(T)||(f[T]=[])}),c(f,!0)}},{deep:!0}),t.onMounted(()=>{if(o.rules){const d=t.toRaw(o.rules);c(d)}if(o.pureDataRules){const d=t.toRaw(o.pureDataRules);c(d,!0)}}),()=>{const d={class:i.value,style:u.value};return t.h("div",d,[l?.default?.()])}}}),{componentName:_a,create:qa,scope:Oh}=se("page"),An=qa(Ba(_a));function Zt(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Mn(e){const n=t.unref(e),o=window.getComputedStyle(n,null),l=parseFloat(o.getPropertyValue("padding-left")),r=parseFloat(o.getPropertyValue("padding-right")),a=parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("padding-bottom"));return{width:n.clientWidth-l-r,height:n.clientHeight-a-i}}const Pa=(e,n,o,l=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:o},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(r,a){const i=Ge(),u=i?Wt(i):null;u&&(u.headerMounted=!0);const s=e,c=t.computed(()=>({[s]:!0,[`${s}--border`]:r.border,[`${s}--fixed`]:r.fixed,[`${s}--safe-area-inset-top`]:r.safeAreaInsetTop})),d=t.computed(()=>({[`${s}__inner`]:!0,[`${s}__inner--${r.align}`]:!0})),g=r.height!==null&&r.height!==void 0?me(r.height):null,y=t.computed(()=>{const N={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&u){const b=ze(r.padding??u.headerPadding);return Object.assign(N,b),g&&(u.headerHeight=g),u.headerHeight>0&&(N.height=u.headerHeight),N.safeAreaTop=u.safeAreaTop===-1?0:u.safeAreaTop,N.safeAreaTop>0&&(N.top=N.safeAreaTop+(b.top??0),N.height&&N.height>0&&(N.height=N.height+N.safeAreaTop)),N}if(g&&(N.height=g),r.padding){const b=ze(r.padding);Object.assign(N,b)}return N}),v=t.ref(null),p=()=>{if(u&&v.value&&!_t(v.value)){if(!l){const N=Zt(v.value);u.headerAllHeight=N.height}return u.headerMounted=!0,!0}return!1};let f=null;t.onMounted(()=>{u&&(Ht(p,50,5,50,!0),window.ResizeObserver&&v.value&&(f=new window.ResizeObserver(()=>{p()}),f.observe(v.value)))}),t.onUnmounted(()=>{u&&(u.headerMounted=!1,f&&(f.disconnect(),f=null))});const h=t.computed(()=>{const N={};return y.value.height!==null&&y.value.height!==void 0&&(N.height=`${y.value.height}px`),y.value.top!==null&&y.value.top!==void 0&&(N.paddingTop=`${y.value.top}px`),y.value.left!==null&&y.value.left!==void 0&&(N.paddingLeft=`${y.value.left}px`),y.value.right!==null&&y.value.right!==void 0&&(N.paddingRight=`${y.value.right}px`),y.value.bottom!==null&&y.value.bottom!==void 0&&(N.paddingBottom=`${y.value.bottom}px`),N}),D=t.computed(()=>!(y.value.height!==null&&y.value.height!==void 0&&y.value.height<=0));function T(){a.emit("back")}function $(){a.emit("click-title")}function q(){a.emit("click-right")}function j(){a.emit("click-right-text")}const B=()=>{if(!r.leftShow)return null;const N=[];if(a.slots.left)N.push(a.slots.left());else{if(a.slots.leftIcon){const b=t.h("view",{class:"left-icon",onClick:T},[a.slots.leftIcon()]);N.push(b)}else if(r.leftIcon){const b=t.h("view",{class:"left-icon",onClick:T},[t.h(r.leftIcon)]);N.push(b)}if(r.leftText){const b=t.h("view",{class:"left-text",onClick:T},[r.leftText]);N.push(b)}}return N.length===0?null:t.h("view",{class:"fox-header-bar__left"},N)},_=()=>{if(!r.rightShow)return null;const N=[];if(a.slots.right)N.push(a.slots.right());else{if(r.rightText){const b=t.h("view",{class:"right-text",onClick:j},[r.rightText]);N.push(b)}if(a.slots.rightIcon){const b=t.h("view",{class:"right-icon",onClick:q},[a.slots.rightIcon()]);N.push(b)}else if(r.rightIcon){const b=t.h("view",{class:"right-icon",onClick:q},[t.h(r.rightIcon)]);N.push(b)}}return N.length===0?null:t.h("view",{class:"fox-header-bar__right"},N)},M=()=>{if(!r.titleShow)return null;const N=[],b=a.slots.default?a.slots.default():null;if(b)N.push(b);else{if(r.title){const P=t.h("view",{class:"title-text"},[r.title]);N.push(P)}if(a.slots.titleIcon){const P=t.h("view",{class:"title-icon",onClick:$},[a.slots.titleIcon()]);N.push(P)}else if(r.titleIcon){const P=t.h("view",{class:"title-icon",onClick:$},[t.h(r.titleIcon)]);N.push(P)}}return N.length===0?null:t.h("view",{class:"fox-header-bar__title"},N)},x=()=>{const N=[],b=a.slots.bottom?a.slots.bottom():null;return b&&N.push(b),N.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},N)};return()=>{if(!D.value)return null;const N=[];if(a.slots.all)N.push(a.slots.all());else{const P=[],J=B();J&&P.push(J);const A=M();A&&P.push(A);const E=_();if(E&&P.push(E),P.length>0){const L=t.h("view",{class:d.value},P);N.push(L)}const F=x();F&&N.push(F)}if(N.length===0)return null;const b={class:c.value,style:h.value,ref:v};return t.h("view",b,N)}}}),{componentName:ja,create:za,scope:Ha}=se("header-bar"),Ln=za(Pa(ja,Ha,Ce.ArrowLeft));function Ka(e,n,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(l,r){const a=Ge(),i=a?Wt(a):null,u=t.computed(()=>{const p=e;return{[p]:!0,[`${p}--${l.align}`]:!0,[`${p}--border`]:l.border,[`${p}--fixed`]:l.fixed,[`${p}--safe-area-inset-bottom`]:l.safeAreaInsetBottom}}),s=l.height!==null&&l.height!==void 0?me(l.height):null,c=t.computed(()=>{const p={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const f=ze(l.padding??i.footerPadding);return Object.assign(p,f),s&&(i.footerHeight=s),i.footerHeight>0&&(p.height=i.footerHeight),p.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,p.safeAreaBottom>0&&(p.bottom=p.safeAreaBottom+(f.bottom??0),p.height&&p.height>0&&(p.height=p.height+p.safeAreaBottom)),p}if(s&&(p.height=s),l.padding){const f=ze(l.padding);Object.assign(p,f)}return p}),d=t.ref(null),g=()=>{if(i&&d.value&&!_t(d.value)){if(!o){const p=Zt(d.value);i.footerAllHeight=p.height}return i.footerMounted=!0,!0}return!1};let y=null;t.onMounted(()=>{i&&(Ht(g,50,5,50,!0),window.ResizeObserver&&(y=new window.ResizeObserver(()=>{g()}),y.observe(d.value)))}),t.onUnmounted(()=>{i&&(i.footerMounted=!1,y&&(y.disconnect(),y=null))});const v=t.computed(()=>{const p={};return c.value.height!==null&&c.value.height!==void 0&&(p.height=ke(c.value.height)),c.value.top!==null&&c.value.top!==void 0&&(p.paddingTop=ke(c.value.top)),c.value.left!==null&&c.value.left!==void 0&&(p.paddingLeft=ke(c.value.left)),c.value.right!==null&&c.value.right!==void 0&&(p.paddingRight=ke(c.value.right)),c.value.bottom!==null&&c.value.bottom!==void 0&&(p.paddingBottom=ke(c.value.bottom)),p});return()=>{const p=r.slots.default?r.slots.default():[],f={ref:d,class:u.value,style:v.value};return t.h("view",f,p)}}}}const{componentName:Wa,create:Ya,scope:Vh}=se("footer-bar"),Bn=Ya(Ka(Wa));function Ga(e,n){return{props:{padding:{type:[Object],required:!1}},setup(o){const l=Ge(),r=t.computed(()=>({[e]:!0})),a=l?Wt(l):null,i=t.computed(()=>{const c={};if(l&&a){if(o.padding){const v=ze(o.padding);Object.assign(a.contentPadding,v)}const d=Ct(l,a),g=Et(l,a);let y="";if(a.contentHeight?y=`${a.contentHeight}`:y=`${a.height}px`,a.contentPadding,c.height=y,a.contentPadding.top||d>0){const v=(a&&a.contentPadding&&a.contentPadding.top)??0;c.paddingTop=`${d+v}px`}if(a.contentPadding.bottom||g>0){const v=(a&&a.contentPadding&&a.contentPadding.bottom)??0;c.paddingBottom=`${g+v}px`}return a.contentPadding.left&&(c.paddingLeft=`${a.contentPadding.left}px`),a.contentPadding.right&&(c.paddingRight=`${a.contentPadding.right}px`),c}if(o.padding){const d=ze(o.padding);d.left&&(c.paddingLeft=`${d.left}px`),d.top&&(c.paddingTop=`${d.top}px`),d.right&&(c.paddingRight=`${d.right}px`),d.bottom&&(c.paddingBottom=`${d.bottom}px`)}return c}),u=t.ref(null),s=()=>{if(a&&u.value){const c=Mn(u.value);a.contentInnerHeight=c.height,a.contentInnerWidth=c.width}};return t.onMounted(()=>{s()}),l&&a&&t.watch([()=>Ct(l),()=>Et(l)],([])=>{s()}),{contentRef:u,classes:r,styles:i}}}}const{componentName:Ua,create:Xa,scope:Dh}=se("content"),Za=Xa(Ga(Ua));function Ja(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("div",{ref:"contentRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const _e=(e,n)=>{const o=e.__vccOpts||e;for(const[l,r]of n)o[l]=r;return o},_n=_e(Za,[["render",Ja]]),ft="GroupStateKey",No=Symbol.for("GroupScopeKey");function Jt(){return t.inject(No,!1)}function Qt(e=!0){t.provide(No,e)}function Qa(e,n={}){Reflect.ownKeys(n).forEach(l=>{if(typeof l!="string")return;const r=n[l];In(r)||(e[l]=r)})}function ei(e,n={}){const l={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Qa(l,n);const r=t.shallowRef(l),a=t.markRaw({layout:r,passport:0,order:{index:0}});return e.set(ft,a),a}function qn(e,n,o=-1,l=-1,r=!1,a,i,u){const s=e.get(ft);if(!s)return;const c=e.get("groupLayout")??{};o===-1&&(o=c.column??1),l===-1&&(l=c.gutter??0),a||(a=c.minItemWidth??-1),i||(i=c.maxItemWidth??-1);const d=me(a),g=me(i);u||(u=c.type??"grid");const y=()=>{const v=n===""||n===-1,p=me(n);let f=Se(o);const h=me(l);if(!v){let $=(p-(f-1)*h)/f;for(;g!==-1&&$>g;)f++,$=(p-(f-1)*h)/f;for(;d!==-1&&f>1&&$<d;)f--,$=(p-(f-1)*h)/f}let D=!1;const T=s.layout;T.value.width=n,T.value.column!==f&&(T.value.column=f,D=!0),T.value.gutter!==h&&(T.value.gutter=h,D=!0),T.value.type!==u&&(T.value.type=u,D=!0),D&&t.triggerRef(T)};if(r)y();else{const v=++s.passport;setTimeout(()=>{v===s.passport&&y()},50)}}function en(e,n=!1){let o;return n?o=e.getForParent(ft):o=e.get(ft),o.layout}function tn(e,n=!1){let o;return n?o=e.getForParent(ft):o=e.get(ft),o.order}function ko(e,n=1){if(n==="stretch")return-1;const o=Se(n);return o===-1?100:100*o/e}function nn(e,n,o=1,l=0,r){const a={};let i=0;r?i=me(r):i=ko(n.column,o),i>0&&(a.width=`${i}%`);const u=ko(n.column,l);u>0&&(a["margin-left"]=`${u}%`);const s=n.gutter/2;return s>0&&(a["padding-left"]=`${s}px`,a["padding-right"]=`${s}px`),a}function ln(e,n,o=1,l=0){if(o==="stretch"){const s=e.index%n.column,c=s+(n.column-s);return e.index=e.index+(c-s),{"grid-column":`${s+1} / -1`}}let r=Se(o);if(r===-1){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}if(r>n.column){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}const a=Se(l)%n.column;let i=(e.index+a)%n.column,u=i+r;return u>n.column?(i=0,u=i+r,e.index=e.index+(n.column-i)+r):e.index=e.index+a+r,a>0?{"grid-column":`${i+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}const Io=Symbol("RollingStateKey");function ti(e){t.provide(Io,e)}function ni(){return t.inject(Io,null)}function Pn(e){let n=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"));n=e.clientHeight-r-a}else n=e.offsetHeight;return n}function li(e){let n=Pn(e);if(n<=0){const o=e.cloneNode(!0),l=e.offsetWidth;o.style=`width: ${l}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),n=Pn(o),document.body.removeChild(o)}return n}function oi(e,n,o){if(e<=0)return"1fr";const l=(e-(n-1)*o)/n;return l>0?`${l}px`:"1fr"}const ri={...xe,...$o,...Co};function ai(e,n,o){return{props:ri,emits:["update:collapse","header-click"],setup(l,r){const a=Dn(l.prop??l.name,l,Eo),i=ei(a,{type:l.type}),u=Jt();Qt(!0);const s=l.rollingDisplay?ni():null,c=t.ref(null),d=t.computed(()=>l.rollingDisplay?s&&!s.disabled:!1),g=t.computed(()=>u&&a?en(a,!0).value:null),y=t.getCurrentInstance(),v=(k,H=!1)=>{const X=y?.proxy;X&&typeof X.setNameValidateRules=="function"&&X.setNameValidateRules(k,!0,H)};t.watch([()=>l.rules,()=>l.pureDataRules],([k,H],[X,I])=>{if(k&&X){const K=t.toRaw(X),te=t.toRaw(k),oe=te?Reflect.ownKeys(te):[];(K?Reflect.ownKeys(K):[]).forEach(ie=>{oe.includes(ie)||(te[ie]=[])}),v(te)}if(H&&I){const K=t.toRaw(I),te=t.toRaw(H),oe=te?Reflect.ownKeys(te):[];(K?Reflect.ownKeys(K):[]).forEach(ie=>{oe.includes(ie)||(te[ie]=[])}),v(te,!0)}},{deep:!0});const p=e,f=t.computed(()=>{const k={};k.height=E.value;const H=u?tn(a,!0):null;if(g.value&&H){if(g.value.type==="grid"){const X=ln(H,g.value,l.span,l.offset);Object.assign(k,X)}else if(g.value.type==="flow"){const X=nn(H,g.value,l.span,l.offset,l.width);Object.assign(k,X)}}else if(l.width){const X=ke(l.width);k.width=X}return k}),h=t.computed(()=>{const k=i.layout.value.type;return k==="grid"||k==="flow"?{[`${p}--${k}`]:!0,[`${p}--${k}-justify-${l.justify}`]:!0,[`${p}--${k}-align-${l.align}`]:!0,[`${p}--gutter`]:!0}:{[`${p}--${k}`]:!0,[`${p}--gutter`]:!0}}),D=t.computed(()=>{if(i.layout.value.type==="grid"){let H="";if(l.columnWidth)H=`repeat(auto-fill, ${l.columnWidth})`;else{const X=oi(M.value,i.layout.value.column,i.layout.value.gutter);H=`repeat(${i.layout.value.column}, ${X})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":H}}}),T=t.toRef(l,"gutter"),$=t.toRef(l,"column"),q=t.computed(()=>u||d.value?!0:ue(l.isWrap)),j=[],B=k=>{j.push(k)},_=()=>{let k=j.length;j.splice(0,k)},M=t.ref(-1),x=k=>{const H=Mn(k).width;H>0&&H!==M.value&&(M.value=H)};qn(a,M.value,$.value,T.value,!0,l.minItemWidth,l.maxItemWidth,l.type),l.autoLayout&&t.watch([M,$,T],([k,H,X])=>{i.order.index=0,qn(a,k,H,X,!1,l.minItemWidth,l.maxItemWidth,l.type)});const N=t.computed(()=>F.value?l.expandText??"":l.collapseText??""),b=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),P=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!F.value,"is-collapse":F.value})),J=t.ref(),A=t.ref(),E=t.computed(()=>L.value||ke(l.height)||""),F=t.ref(!1),L=t.ref(""),Y=t.ref(!1);let Z=-1;const ee=(k,H=!0)=>{const X=J.value;if(X&&F.value!==k){if(Z=Z===-1?li(X):Z,Y.value=!0,H)if(X.style["will-change"]="height",X.ontransitionend=function(){X.ontransitionend=null,this.style["will-change"]="auto",k||(L.value="",Y.value=!1)},k){let I=0;l.collapseHeight?I=l.collapseHeight:A.value&&A.value.classList.contains(`${e}__header`)&&(I=A.value.offsetHeight),L.value=`${Z}px`,t.nextTick(()=>{L.value=`${I}px`})}else L.value=`${Z}px`;else if(k){let I=0;l.collapseHeight?I=l.collapseHeight:A.value&&A.value.classList.contains(`${e}__header`)&&(I=A.value.offsetHeight),L.value=`${I}px`}else Y.value=!1,L.value=`${Z}px`;F.value=k,r.emit("update:collapse",k)}};t.watch(()=>l.collapse,k=>{ee(k)});const le=k=>{r.emit("header-click",k)},O=()=>{C()},C=k=>{k=k??!F.value,ee(k)};we({toggleCollapse:C,doLayout:()=>{j[0]&&(x(j[0]),qn(a,M.value,$.value,T.value,!0,l.minItemWidth,l.maxItemWidth,l.type))}});let V=null,S=!0;const z=k=>{if(l.rules){const H=t.toRaw(l.rules);v(H)}if(l.pureDataRules){const H=t.toRaw(l.pureDataRules);v(H,!0)}if(ot&&(k&&ee(ue(l.collapse),!1),l.autoLayout&&Array.isArray(j)&&j.length>0)){const H=j[0];x(H),window.ResizeObserver&&(V=new window.ResizeObserver(()=>{x(H)}),V.observe(H))}},U=()=>{V?.disconnect(),V=null},ne=!d.value||s?.acquire();ne&&(c.value=d.value?!0:null),t.onMounted(()=>{if(ne&&(z(S),S=!1),d.value&&s){let k=null,H=s.initialHeight;s.observe(J.value,X=>{if(X!==c.value)if(X)c.value=!0,F.value||(L.value=""),k=setTimeout(()=>{k=null,c.value!==!1&&(z(S),S=!1)},100);else{if(k!==null&&clearTimeout(k),c.value=!1,!F.value)if(S)L.value=s.initialHeight;else{let I=Pn(J.value);I<=0?L.value=H:(L.value=`${I}px`,H=L.value)}S||U()}})}}),t.onUnmounted(()=>{V?.disconnect(),s&&s.unobserve(J.value)});const G=(k="right")=>{const H=[];if(N.value){const K={class:b.value},te=t.h("span",K,[N.value]);H.push(te)}const X={class:P.value},I=o(l.collapseIcon,X);return I&&H.push(I),H.length>0?t.h("div",{class:{[`${p}__header-collapse`]:!0,[`is-${k}`]:!0},onClick:O},H):null},W=(k,H,X,I)=>{const K={...h.value};return H===0&&(K[`${p}__first`]=!0),X>=I-1&&(K[`${p}__last`]=!0),t.h("div",{ref:B,key:`${H}`,class:K,style:D.value},k)};return()=>{if(d.value&&c.value!==!0){const K=l.tag||"div";return t.h(K,{ref:J,prop:l.name,class:{[`${p}`]:!0,"is-collapse":Y.value},style:f.value},[])}i.order.index=0;const k=[];let H=0;if(r.slots.header){const K={key:`${H++}`,ref:A,class:{[`${p}__header`]:!0,[`${p}__first`]:!0},onClick:le},te=t.h("div",K,[r.slots.header()]);k.push(te)}else{const K=[],te=l.collapsePosition==="left";if(te&&l.showCollapse){const oe=G("left");oe&&K.push(oe)}if(l.title||r.slots.title){if(l.showMark){const oe={class:{[`${p}__header-mark`]:!0}};l.markColor&&(oe.style={background:l.markColor});const ce=t.h("div",oe);K.push(ce)}if(r.slots.title){const oe=t.h("div",{class:{[`${p}__header-title`]:!0}},[r.slots.title()]);K.push(oe)}else if(l.title){const oe=t.h("div",{class:{[`${p}__header-title`]:!0}},[l.title]);K.push(oe)}}if(r.slots.toolbar&&K.push(r.slots.toolbar()),!te&&l.showCollapse){const oe=G("right");oe&&K.push(oe)}if(K.length>0){const oe={key:`${H++}`,ref:A,class:{[`${p}__header`]:!0,[`${p}__first`]:!0},onClick:le},ce=t.h("div",oe,K);k.push(ce)}}_();const X=r.slots.default?r.slots.default():[],I=i.layout.value.type;if(I==="grid"){const K=W(X,H++,0,X.length);k.push(K)}else if(I==="flow"){const K=W(X,H++,0,X.length);k.push(K)}else for(let K=0;K<X.length;K++){const te=X[K],oe=W([te],H++,K,X.length);k.push(oe)}if(q.value){const K=l.tag||"div";return t.h(K,{ref:J,prop:l.name,class:{[`${p}`]:!0,"is-collapse":Y.value},style:f.value},[k])}else return k}}}}const{componentName:ii,create:si,scope:ui}=se("group"),jn=si(ai(ii,ui,(e,n)=>(e=e??Ce.ArrowUp,t.h(w.ElIcon,n,{default:()=>[t.h(e)]}))));function ci(e){return e===window}const fi=/matrix\((.+)\)/,Oo=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(ci(n))return{x:0,y:0};let o=0,l=0,r=n;for(;r!==null;)o+=r.offsetLeft,l+=r.offsetTop,r=r.offsetParent;let a=0,i=0,u=0,s=0;for(r=n;r!==document;){i+=r.scrollTop,a+=r.scrollLeft;const{transform:c}=window.getComputedStyle(r);if(c){const d=fi.exec(c);if(d){let y=d[1].split(/\s*,\s*/);y.length==6&&(u+=Number(y[4]),s+=Number(y[5]))}}r=r.parentNode}return o-=a,l-=i,o+=u,l+=s,{x:o,y:l}};class di{watchedListeners=[];add(n){this.watchedListeners.push(n)}remove(n){const o=this.watchedListeners.indexOf(n);o!==-1&&this.watchedListeners.splice(o,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(n=>{try{n()}catch{}})}}class hi{monitorRegister=new WeakMap;watch(n,o){let l=n.parentNode;const r=document.body.parentNode;for(;l&&l!==r;){let a=this.monitorRegister.get(l);a||(a=new di,l.addEventListener("scroll",a.listen),l===document.body&&l.addEventListener("resize",a.listen),this.monitorRegister.set(l,a)),a.add(o),l=l.parentNode}}unwatch(n,o){let l=n.parentNode;const r=document.body.parentNode;for(;l&&l!==r;){let a=this.monitorRegister.get(l);a&&(a.remove(o),a.size()===0&&(this.monitorRegister.delete(l),l.removeEventListener("scroll",a.listen),l===document.body&&l.removeEventListener("resize",a.listen))),l=l.parentNode}}}const Vo=new hi,Do={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:gi,create:mi}=se("price"),pi=mi({props:{...Do},setup(e){const n=t.computed(()=>({[gi]:!0})),o=t.computed(()=>e.needSymbol?e.symbol:""),l=t.computed(()=>wt(e.price)==0?"":Mt(e.price,e.decimalLength,!0,Se(e.digits),e.separator)),r=t.computed(()=>{let i=l.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(0,u)}),a=t.computed(()=>{let i=l.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(u+1)});return{classes:n,showSymbol:o,intText:r,decimalText:a}}}),yi=["innerHTML"],bi=["innerHTML"];function vi(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,yi)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--${e.size}`)},t.toDisplayString(e.intText),3),e.decimalText.length!=0?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--decimal-${e.size}`)},t.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,bi)):t.createCommentVNode("",!0)],2)}const on=_e(pi,[["render",vi]]),{componentName:zn,create:wi}=se("hint-text"),Si=wi({components:{Price:on},props:{...Do,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,n){const o=t.ref({top:null,right:null,bottom:null,left:null}),l=t.ref({x:0,y:0}),r=t.ref(0),a=t.ref(0),i=t.ref(e.placement),u=t.ref(!1),s=t.ref(null),c=(b,P,J,A,E,F)=>{const L=document.documentElement.clientWidth||document.body.clientWidth,Y=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 C=0;C<ee.length;C++){const R=ee[C];if(O[0]=R,Z[1]&&(O[1]=Z[1]),R==="top"){const V=P.y-F-e.arrowSize-e.offset;if(V>=0){le.top=V;let S=0;Z[1]==="start"?S=P.x:Z[1]==="end"?S=P.x+J-E:S=P.x+J/2-E/2;const z=L-S-E;z<0?(S+=z,g.value=-z):g.value=0,le.left=S<0?0:S;break}}else if(R==="bottom"){const V=P.y+A+e.arrowSize+e.offset;if(V+F<=Y){le.top=V;let S=0;Z[1]==="start"?S=P.x:Z[1]==="end"?S=P.x+J-E:S=P.x+J/2-E/2;const z=L-S-E;z<0?(S+=z,g.value=-z):g.value=0,le.left=S<0?0:S;break}}else if(R==="left"){const V=P.x-E-e.arrowSize-e.offset;if(V>=0){le.left=V;let S=0;Z[1]==="start"?S=P.y:Z[1]==="end"?S=P.y+A-F:S=P.y+A/2-F/2,le.top=S<0?0:S;break}}else if(R==="right"){const V=P.x+J+e.arrowSize+e.offset;if(V+E<=L){le.left=V;let S=0;Z[1]==="start"?S=P.y:Z[1]==="end"?S=P.y+A-F:S=P.y+A/2-F/2,le.top=S<0?0:S;break}}}return{bestPlacement:O.join("-"),bestInsetRect:le}},d=(b,P,J=10)=>{if(!ot||P===!1||!b)return;l.value=Oo(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const A=s.value.offsetHeight,E=s.value.offsetWidth,{bestPlacement:F,bestInsetRect:L}=c(e.placement,l.value,r.value,a.value,E,A);i.value=F,o.value=L,u.value=!0},g=t.ref(0),y=$t(()=>{d(e.message,e.visible)},10),v=t.ref(e.visible);t.watch(()=>e.visible,b=>{v.value=b});const p=t.computed(()=>v.value&&f.value),f=t.ref(!0),h=$t(b=>{const P=b[0];P&&(f.value=P.isIntersecting)},10),D=new IntersectionObserver(h);t.watch([()=>e.message,()=>e.visible],([b,P])=>{setTimeout(()=>{d(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{d(e.message,e.visible)},0),Vo.watch(e.reference,y),D.observe(e.reference)}),t.onBeforeMount(()=>{Vo.unwatch(e.reference,y),D.unobserve(e.reference),D.disconnect()});const T=t.computed(()=>{const b={[zn]:!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}),$=t.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`,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}),q=t.computed(()=>{const b=[`${zn}__content`];return e.customTextClass&&b.push(e.customTextClass),b}),j=t.computed(()=>{const b={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(b,e.customTextStyle),b}),B=t.computed(()=>({[`${zn}__arrow`]:!0})),_=t.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+g.value}px`,b.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(b.right=`${e.arrowOffset-g.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+g.value}px`,b.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(b.right=`${e.arrowOffset-g.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"}}),M=t.computed(()=>p.value&&e.closeOnClick),x=t.computed(()=>{const b={};return e.zIndex&&(b["z-index"]=`${e.zIndex}`),b});return{show:p,tipRef:s,classes:T,styles:$,textClasses:q,textStyles:j,arrowClasses:B,arrowStyles:_,overlayShow:M,overlayStyle:x,onClickOverlay:()=>{v.value=!1,n.emit("update:visible",!1)}}}}),xi=["innerHTML"];function Ti(e,n,o,l,r,a){const i=t.resolveComponent("Price");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.overlayShow?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:t.normalizeStyle(e.overlayStyle),onClick:n[0]||(n[0]=(...u)=>e.onClickOverlay&&e.onClickOverlay(...u))},null,4)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{ref:"tipRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("div",{class:t.normalizeClass(e.textClasses),style:t.normalizeStyle(e.textStyles)},[e.type=="number"?(t.openBlock(),t.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(t.openBlock(),t.createElementBlock("span",{key:1,innerHTML:e.message},null,8,xi))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const Nt=_e(Si,[["render",Ti]]);class Fo{seed=new Date().getTime();constructor(n){this.seed=n??new Date().getTime()}get(){let n=this.seed++;return this.seed<0&&(this.seed=0),n}}const Hn={},$i=new Fo,dt=new Map,rn=e=>{if(e){const n=document.getElementById(e);dt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of dt.keys()){const o=document.getElementById(n);o&&o.parentNode?.removeChild(o)}dt.clear()}},Ci=e=>{e.unmount=rn;const n=document.getElementById(e.id);if(n){const o=dt.get(e.id);o?e={...Hn,...o,...e}:e={...Hn,...e},e.transition=!1;const l=t.createVNode(Nt,e);t.render(l,n)}return e.id},Ei=e=>{e.unmount=rn;let n=e.id??`hinttext_${$i.get()}`;e={...Hn,...e},e.id=n,dt.set(n,e);const o=document.createElement("div");o.id=e.id;const l=t.createVNode(Nt,e);return t.render(l,o),document.body.appendChild(o),n},Ni=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Fe={show(e,n,o={},l=!0){Ni(n);const r=o.id;return r&&dt.has(r)?Ci({...o,message:n,reference:e}):(l&&rn(),Ei({...o,message:n,reference:e}))},hide(e){rn(e)},install(e){e.config.globalProperties.$hintText=Fe}};function ki(e,n,o,l=!1){return{inheritAttrs:!0,props:{...xe,...Ie},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;$e({componentName:e,validate:!1},i);const u=Ge(),s=Jt();Qt(!1);const c=t.computed(()=>s&&u?en(u,!1).value:null),d=e,g=t.ref(null),y=t.computed(()=>{const I={[d]:!0,[`${d}__gutter`]:c.value&&c.value.type!=="flow",[`${d}__stretch`]:r.span==="stretch",[`${d}__input--border`]:ue(r.hasBorder)};if(I[r.errorMarkClass]=!!F.value,I[r.warnMarkClass]=!!A.value,I[r.infoMarkClass]=!!P.value,typeof g.value=="function"){const K=g.value(i);I[K]=!0}else if(typeof g.value=="string"){const K=g.value;I[K]=!0}return I}),v=t.ref(null),p=t.computed(()=>{const I={};if(r.width)r.width!=="auto"&&(I.width=ke(r.width));else{const K=s&&u?tn(u,!1):null;if(c.value&&K){if(c.value.type==="grid"){const te=ln(K,c.value,r.span,r.offset);Object.assign(I,te)}else if(c.value.type==="flow"){const te=nn(K,c.value,r.span,r.offset,r.width);Object.assign(I,te)}}}if(typeof v.value=="function"){const K=v.value(i);K&&Object.assign(I,K)}else if(v.value&&typeof v.value=="object"){const K=v.value;Object.assign(I,K)}return I}),f=t.ref(null),h=t.computed({get:()=>f.value??ue(r.isRequired),set:I=>{f.value=I}}),D=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",T=Oe(t.toRef(r,"labelPosition"),"labelPosition",Le.Near),$=t.computed(()=>T&&T.value==="top"?"top":T&&T.value==="right"?"right":"left"),q=t.computed(()=>({[`${d}__main`]:!0,[`${d}__main--${$.value}`]:!0})),j=t.computed(()=>({label:!0,[`label--${$.value}`]:!0})),B=Oe(t.toRef(r,"labelWidth"),"labelWidth",Le.Near),_=t.computed(()=>B&&B.value?{width:ke(B.value)}:{}),M=t.computed(()=>({"label--string":!0,"label--required":h.value})),x=t.computed(()=>({content:!0,[r.contentClass]:!0})),N=t.computed(()=>({...r.contentStyle})),b=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});we({setRequired(I){h.value=I},setErrorTip(I){b.errorTip=I},setErrorIcon(I){b.errorIcon=I},setWarnTip(I){b.warnTip=I},setWarnIcon(I){b.warnIcon=I},setInfoTip(I){b.infoTip=I},setInfoIcon(I){b.infoIcon=I},setCustomClassName(I){g.value=I},setCustomStyle(I){v.value=I}});const P=t.computed(()=>r.infoTip||b.infoTip),J=t.computed(()=>r.infoIcon||b.infoIcon),A=t.computed(()=>r.warnTip||b.warnTip),E=t.computed(()=>r.warnIcon||b.warnIcon),F=t.computed(()=>r.errorTip||b.errorTip),L=t.computed(()=>r.errorIcon||b.errorIcon),Y=t.computed(()=>F.value?"error":A.value?"warn":P.value?"info":""),Z=()=>Y.value.length>0,ee=t.computed(()=>Y.value==="error"?F.value:Y.value==="warn"?A.value:Y.value==="info"?P.value:""),le=t.computed(()=>Y.value==="error"?L.value:Y.value==="warn"?E.value:Y.value==="info"?J.value:null),O=t.computed(()=>{const I={[`${d}__tip`]:!0,[`${d}__tip--${Y.value}`]:!0,[`${d}--animate`]:!0};return Y.value==="error"&&r.errorClass?I[`${r.errorClass}`]=!0:Y.value==="warn"&&r.warnClass?I[`${r.warnClass}`]=!0:Y.value==="info"&&r.infoClass&&(I[`${r.infoClass}`]=!0),I}),C=t.computed(()=>{const I={};return T&&T.value==="top"||!D()?I["padding-left"]="0px":B&&B.value&&(I["padding-left"]=ke(B.value)),I}),R=t.ref();let V="";t.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([I,K,te,oe])=>{R.value&&(I&&!he(K)?V?o.show(R.value,K,{...oe,id:V,type:te},!0):V=o.show(R.value,K,{...oe,type:te},!0):o.hide(V))});let S=null;const z=()=>{S||!R.value||(S=new IntersectionObserver(I=>{let K=!1;for(let te of I)if(te.intersectionRatio>0){K=!0,K&&a.emit("appear",te);break}K||a.emit("disappear")}),S.observe(R.value))},U=()=>{!S||!R.value||(S.unobserve(R.value),S=null)};t.watch(()=>ue(r.appearListen),I=>{I?z():U()}),t.onMounted(()=>{ue(r.appearListen)&&z()}),t.onUnmounted(U);const ne=()=>{if(!D())return null;const I=[],K=a.slots?.label?.()??r.label,te={class:M.value},oe=t.h("div",te,[K]);if(I.push(oe),a.slots.fixedPreTip){const ie=a.slots.fixedPreTip();I.push(ie)}const ce={class:j.value,style:_.value};return t.h("div",ce,I)},G=()=>{const I=[];if(a.slots.prepend){const te=a.slots.prepend();I.push(te)}if(a.slots.default){const te=a.slots.default();I.push(te)}if(a.slots.append){const te=a.slots.append();I.push(te)}if(a.slots.fixedTip){const te={class:[`${d}__fixed-tip`]},oe=t.h("div",te,[a.slots.fixedTip()]);I.push(oe)}const K={ref:R,class:x.value,style:N.value};return t.h("div",K,I)},W=()=>{const I=le.value;return I?typeof I=="function"?t.h("div",{class:"fox-item__tip--icon"},[I()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(I)]):null},k=()=>{const I=ee.value;return I?typeof I=="function"?t.h("div",{class:"fox-item__tip--text"},[I()]):t.h("div",{class:"fox-item__tip--text"},[I]):null},H=()=>{if(!Z())return null;const I=[],K=W();K&&I.push(K);const te=k();te&&I.push(te);const oe={class:O.value,style:C.value};return t.h("div",oe,I)},X=()=>a.slots?.hide?.()??null;return()=>{const I=[],K=[],te=ne();te&&K.push(te);const oe=G();oe&&K.push(oe);const ce={class:q.value},ie=t.h("div",ce,K);I.push(ie);const Q=H();Q&&I.push(Q);const re=X();re&&I.push(re);const ae={class:y.value,style:p.value,prop:r.prop};return t.h("div",ae,I)}}}}const{componentName:Ii,create:Oi,scope:Vi}=se("item"),Te=Oi(ki(Ii,Vi,Fe,!1));function Di(e,n){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(o,l){const r=Ge(),a=Jt();Qt(!1);const i=t.computed(()=>a&&r?en(r,!1).value:null),u=e,s=t.computed(()=>({[u]:!0,[`${u}__gutter`]:i.value&&i.value.type!=="flow",[`${u}__stretch`]:o.span==="stretch"})),c=t.computed(()=>{const d={},g=a&&r?tn(r,!1):null;if(i.value&&g)if(i.value.type==="grid"){const y=ln(g,i.value,o.span,o.offset);Object.assign(d,y)}else if(i.value.type==="flow"){const y=nn(g,i.value,o.span,o.offset,o.width);Object.assign(d,y)}else return o.width&&(d.width=ke(o.width)),d;else o.width&&(d.width=ke(o.width));return d});return()=>{const d={class:s.value,style:c.value};return l.slots&&typeof l.slots.default=="function"?t.h("div",d,l.slots.default()):t.h("div",d)}}}}const{componentName:Fi,create:Ri,scope:Rh}=se("slot-item"),Kn=Ri(Di(Fi));function Ai(e,n){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,l){const r=e,a=t.computed(()=>({[r]:!0,[`${r}__stretch`]:o.span==="stretch",[`${r}__${o.align}`]:!0})),i=Ge(),u=Jt();Qt(!1);const s=t.computed(()=>{const c={};if(u&&i){const d=en(i,!1),g=tn(i,!1);if(d.value&&g)if(d.value.type==="grid"){const y=ln(g,d.value,o.span,o.offset);Object.assign(c,y)}else if(d.value.type==="flow"){const y=nn(g,d.value,o.span,o.offset,o.width);Object.assign(c,y)}else o.width&&(c.width=ke(o.width))}else o.width&&(c.width=ke(o.width));return c});return()=>{const c=[];if(l.slots.default){const g=l.slots.default();if(o.divide)for(let y=0;y<g.length;y++){if(y>0){const v=t.h("div",{class:{[`${r}__divide`]:!0}});c.push(v)}c.push(g[y])}else Reflect.apply([].push,c,g)}const d={class:a.value,style:s.value};return t.h("div",d,c)}}}}const{componentName:Mi,create:Li,scope:Ah}=se("row-item"),Wn=Li(Ai(Mi)),He=(e={})=>{if(!e)return{};const n={};return Reflect.ownKeys(e).forEach(l=>{typeof l=="string"&&l.indexOf("data-fox")!==0&&(n[l]=e[l])}),n},Ro={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 Bi(e,n,o){return{props:{...xe,...Ie,...Ro},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=Me.useFoxI18n(n),g=d(l,["placeholder"]),y=t.ref(!1),v=ge(l,"modelValue",null,c),p=e,f=t.computed(()=>({[p]:!0,[`${p}__disabled`]:i.value,[`${p}__readonly`]:s.value})),h=E=>{v.value=E,c("update:modelValue",E),c("input",E)},D=E=>{c("change",E)};let T=ge(l,"hintText"),$=t.ref(!1);const q=E=>{let L=E.target.value;y.value=!0,he(T.value)||($.value=!0),c("focus",L,E)},j=E=>{setTimeout(()=>{$.value&&($.value=!1),y.value=!1},0);let L=E.target.value;l.maxLength&&L.length>Number(l.maxLength)&&(L=L.slice(0,Number(l.maxLength))),c("blur",L,E)},B=()=>{c("clear","")},_=t.ref(!1);let M=null;const x=()=>{l.showTooltip&&_.value===!1&&(M&&clearTimeout(M),M=setTimeout(()=>{_.value=!0},150))},N=()=>{M&&(clearTimeout(M),_.value=!1,M=null)},b=t.computed(()=>_.value||$.value),P=t.computed(()=>_.value?v.value:T.value),J=t.computed(()=>wt(l.unit)>0),A=t.ref();return we({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()},select:()=>{A?.value.select()},setDisabled:E=>{a.value=E},setReadonly:E=>{u.value=E}}),()=>{const F={...He(r.attrs),ref:A,class:f.value,placeholder:g.placeholder.value,clearable:l.clearable,disabled:i.value,readonly:s.value,modelValue:v.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:B,onChange:D,onInput:h,onFocus:q,onBlur:j,onMouseover:x,onMouseleave:N},L={};r.slots.prepend&&(L.prepend=r.slots.prepend),r.slots.append&&(L.append=r.slots.append),r.slots.prefix&&(L.prefix=r.slots.prefix),r.slots.suffix?L.suffix=r.slots.suffix:J.value&&(L.suffix=()=>[l.unit]);const Y=[],Z=t.h(w.ElInput,F,L);Y.push(Z);const ee={default:()=>Y};r.slots.default&&(ee.label=r.slots.default),r.slots.default&&(ee.fixedTip=r.slots.fixedTip);const O={...Ne(l,Ro),hintText:P.value,hintVisible:b.value};return l.prop&&(O.prop=`${l.prop}_item`),t.h(o,O,ee)}}}}const{componentName:_i,create:qi,scope:Pi}=se("input-item"),Yn=qi(Bi(_i,Pi,Te));function et(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function kt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Ao(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}function ji(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let zi=class{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const r=Pe(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(We(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await r(o,l))}};function Hi(){const e=t.getCurrentInstance();return new zi(e.proxy)}function Mo(e,n,o){const l=et(e,n),r=et(e,o);if(l!==r)return!1;const a=kt(e,n),i=kt(e,o);return a===i}function Lo(e,n,o,l){if(l.length===0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const r=[];return n.forEach(a=>{for(let i of l){const u=Ao(e,i);if(Array.isArray(u)&&u.length>0){const s=Lo(e,a,o,u)??[];Reflect.apply([].push,r,s)}else{let s=!1;if(o==="text")s=et(e,i)===a;else if(o==="item")s=Mo(e,i,a);else{let c=kt(e,i);c==null&&(c=et(e,i)),s=c===a}if(s){r.push(i);break}}}}),r}function Ki(e){return{text:e,value:e}}const Bo={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 Wi(e,n,o){return{props:{...xe,...Ie,...Bo},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=Me.useFoxI18n(n),g=d(l,["placeholder"]),y=t.ref(null),v=t.ref([]),p=t.computed(()=>v.value?v.value.map(H=>et(l,H)).join(" "):""),f=(k,H,X,I=!0)=>{const K=Lo(l,k,H,X);if(K===null){if(v.value===null||v.value.length===0)return;y.value=null,v.value=[],I&&(c("update:modelValue",null),c("update:text",null),c("change",null));return}let te=!0;if(K.length!==v.value.length)te=!1;else for(let oe=0;oe<K.length;oe++){const ce=K[oe],ie=v.value[oe];if(!Mo(l,ce,ie)){te=!1;break}}if(!te){v.value=K;let oe=[],ce=[],ie=[];K.forEach(fe=>{const ye=kt(l,fe),pe=et(l,fe);oe.push(ye),ie.push(pe),l.valueType==="text"?ce.push(pe):l.valueType==="item"?ce.push(fe):ce.push(ye)});let Q,re,ae;ue(l.multiple)?(y.value=oe,Q=t.toRaw(ce),re=ie,ae=t.toRaw(K)):(y.value=oe[0]??"",Q=t.toRaw(ce[0]??""),re=ie[0]??"",ae=t.toRaw(K[0])),I&&(c("update:modelValue",Q),c("change",Q,ae)),c("update:text",re)}},h=t.ref(null),D=t.ref(null),T=t.computed(()=>D.value??h.value??[]),$=Oe(t.computed(()=>l.appearLoad),"appearLoad",Le.Near,k=>ue(k)),q=Hi(),j=async(k,H)=>{if(k){const X=await q.load("select",k,H);if(X.length>0)if(typeof X[0]=="string"){let te=X.map(oe=>Ki(oe));h.value=te}else h.value=X;else h.value=null}};t.watch([()=>l.source,()=>l.params],([k,H])=>{D.value=null,j(k,H)},{immediate:!$.value});let B=!1;const _=()=>{B||(B=!0,j(l.source,l.params))};t.watch([()=>h.value,()=>l.modelValue],([k,H])=>{if(b()&&ue(l.multiple)){Ye(H,y.value)||(y.value=H);return}f(H,l.valueType,T.value,!1),c("setValue",H)});let M=null,x=t.ref(!1);typeof l.remoteMethod=="function"&&(M=async k=>{if(k==null){D.value=null;return}x.value=!0;try{const H=await l.remoteMethod(k);H&&(D.value=H)}catch(H){D.value=null,console.error(H)}x.value=!1});let N=null;typeof l.filterMethod=="function"&&(N=async k=>{if(k==null){D.value=null;return}x.value=!0;try{const H=await l.filterMethod(k,h.value);H&&(D.value=H)}catch(H){D.value=null,console.error(H)}x.value=!1});const b=()=>typeof l.remoteMethod=="function"||typeof l.filterMethod=="function",P=t.ref(!1),J=e,A=t.computed(()=>({[J]:!0})),E=k=>{l.allowCreate||b()&&ue(l.multiple)?(c("update:modelValue",k),c("change",k),c("update:text",k),y.value=k):f(k,"value",T.value,!0)};let F=ge(l,"hintText"),L=t.ref(!1);const Y=k=>{let X=k.target.value;P.value=!0,he(F.value)||(L.value=!0),c("focus",X,k)},Z=k=>{setTimeout(()=>{L.value&&(L.value=!1),P.value=!1},0);let X=k.target.value;l.maxLength&&X.length>Number(l.maxLength)&&(X=X.slice(0,Number(l.maxLength))),z.value||c("blur",X,k)},ee=()=>{c("clear","")},le=t.ref(!1);let O=null;const C=()=>{l.showTooltip&&le.value===!1&&(O&&clearTimeout(O),O=setTimeout(()=>{le.value=!0},150))},R=()=>{O&&(clearTimeout(O),le.value=!1,O=null)},V=t.computed(()=>le.value||L.value),S=t.computed(()=>le.value?p.value:F.value),z=t.ref(!1),U=k=>{z.value=k,c("visible-change",k),k||c("selected")},ne=k=>{c("remove-tag",k)},G=(k,H)=>{const X=[];return k.forEach((I,K)=>{const te=Ao(l,I);if(Array.isArray(te)&&te.length>0){const oe=G(te,H),ce=et(l,I),Q={key:`${ce}_${K}`,label:ce};X.push(t.h(w.ElOptionGroup,Q,{default:()=>oe}))}else{const oe=kt(l,I),ce=et(l,I),ie=ji(l,I),re={key:`${oe}_${K}`,label:ce,disabled:ie,value:oe};if(typeof H=="function")X.push(t.h(w.ElOption,re,{default:()=>H(I)}));else if(l.optionType==="item"){const ae={class:{"fox-select-item__option-left":!0}},fe=t.h("span",ae,[oe]),ye={class:{"fox-select-item__option-right":!0}},pe=t.h("span",ye,[ce]),Je=t.h("div",{class:{"fox-select-item__option":!0}},[fe,pe]);X.push(t.h(w.ElOption,re,{default:()=>Je}))}else l.optionType==="value"?X.push(t.h(w.ElOption,re,{default:()=>[oe]})):X.push(t.h(w.ElOption,re))}}),X},W=t.ref();return we({focus:()=>{W?.value.focus()},blur:()=>{W?.value.blur()},setDisabled:k=>{a.value=k},setReadonly:k=>{u.value=k}}),()=>{const H={...He(r.attrs),ref:W,class:A.value,clearable:l.clearable,multiple:l.multiple,placeholder:g.placeholder.value,disabled:i.value||s.value,modelValue:y.value,"value-key":l.valueKey,"allow-create":l.allowCreate,onClear:ee,onChange:E,onFocus:Y,onBlur:Z,onVisibleChange:U,onRemoveTag:ne};typeof M=="function"&&(H["remote-method"]=M,H.loading=x.value),typeof N=="function"&&(H["filter-method"]=N,H.loading=x.value);const X={};r.slots.prefix&&(X.prefix=r.slots.prefix),r.slots.empty&&(X.empty=r.slots.empty),r.slots.options?X.default=r.slots.options:X.default=()=>G(T.value,r.slots.option);const I=[],K=t.h(w.ElSelect,H,X);I.push(K);const te={default:()=>I};r.slots.default&&(te.label=r.slots.default),r.slots.fixedTip&&(te.fixedTip=r.slots.fixedTip);const ce={...Ne(l,Bo),hintText:S.value,hintVisible:V.value,onMouseover:C,onMouseleave:R};return l.prop&&(ce.prop=`${l.prop}_item`),$.value&&(ce["appear-listen"]=!0,ce.onAppear=_),t.h(o,ce,te)}}}}const{componentName:Yi,create:Gi,scope:Ui}=se("select-item"),Gn=Gi(Wi(Yi,Ui,Te));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 _o={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ue,function(){var o=1e3,l=6e4,r=36e5,a="millisecond",i="second",u="minute",s="hour",c="day",d="week",g="month",y="quarter",v="year",p="date",f="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,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,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(A){var E=["th","st","nd","rd"],F=A%100;return"["+A+(E[(F-20)%10]||E[F]||E[0])+"]"}},$=function(A,E,F){var L=String(A);return!L||L.length>=E?A:""+Array(E+1-L.length).join(F)+A},q={s:$,z:function(A){var E=-A.utcOffset(),F=Math.abs(E),L=Math.floor(F/60),Y=F%60;return(E<=0?"+":"-")+$(L,2,"0")+":"+$(Y,2,"0")},m:function A(E,F){if(E.date()<F.date())return-A(F,E);var L=12*(F.year()-E.year())+(F.month()-E.month()),Y=E.clone().add(L,g),Z=F-Y<0,ee=E.clone().add(L+(Z?-1:1),g);return+(-(L+(F-Y)/(Z?Y-ee:ee-Y))||0)},a:function(A){return A<0?Math.ceil(A)||0:Math.floor(A)},p:function(A){return{M:g,y:v,w:d,d:c,D:p,h:s,m:u,s:i,ms:a,Q:y}[A]||String(A||"").toLowerCase().replace(/s$/,"")},u:function(A){return A===void 0}},j="en",B={};B[j]=T;var _="$isDayjsObject",M=function(A){return A instanceof P||!(!A||!A[_])},x=function A(E,F,L){var Y;if(!E)return j;if(typeof E=="string"){var Z=E.toLowerCase();B[Z]&&(Y=Z),F&&(B[Z]=F,Y=Z);var ee=E.split("-");if(!Y&&ee.length>1)return A(ee[0])}else{var le=E.name;B[le]=E,Y=le}return!L&&Y&&(j=Y),Y||!L&&j},N=function(A,E){if(M(A))return A.clone();var F=typeof E=="object"?E:{};return F.date=A,F.args=arguments,new P(F)},b=q;b.l=x,b.i=M,b.w=function(A,E){return N(A,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var P=function(){function A(F){this.$L=x(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[_]=!0}var E=A.prototype;return E.parse=function(F){this.$d=function(L){var Y=L.date,Z=L.utc;if(Y===null)return new Date(NaN);if(b.u(Y))return new Date;if(Y instanceof Date)return new Date(Y);if(typeof Y=="string"&&!/Z$/i.test(Y)){var ee=Y.match(h);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(Y)}(F),this.init()},E.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},E.$utils=function(){return b},E.isValid=function(){return this.$d.toString()!==f},E.isSame=function(F,L){var Y=N(F);return this.startOf(L)<=Y&&Y<=this.endOf(L)},E.isAfter=function(F,L){return N(F)<this.startOf(L)},E.isBefore=function(F,L){return this.endOf(L)<N(F)},E.$g=function(F,L,Y){return b.u(F)?this[L]:this.set(Y,F)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function(F,L){var Y=this,Z=!!b.u(L)||L,ee=b.p(F),le=function(ne,G){var W=b.w(Y.$u?Date.UTC(Y.$y,G,ne):new Date(Y.$y,G,ne),Y);return Z?W:W.endOf(c)},O=function(ne,G){return b.w(Y.toDate()[ne].apply(Y.toDate("s"),(Z?[0,0,0,0]:[23,59,59,999]).slice(G)),Y)},C=this.$W,R=this.$M,V=this.$D,S="set"+(this.$u?"UTC":"");switch(ee){case v:return Z?le(1,0):le(31,11);case g:return Z?le(1,R):le(0,R+1);case d:var z=this.$locale().weekStart||0,U=(C<z?C+7:C)-z;return le(Z?V-U:V+(6-U),R);case c:case p:return O(S+"Hours",0);case s:return O(S+"Minutes",1);case u:return O(S+"Seconds",2);case i:return O(S+"Milliseconds",3);default:return this.clone()}},E.endOf=function(F){return this.startOf(F,!1)},E.$set=function(F,L){var Y,Z=b.p(F),ee="set"+(this.$u?"UTC":""),le=(Y={},Y[c]=ee+"Date",Y[p]=ee+"Date",Y[g]=ee+"Month",Y[v]=ee+"FullYear",Y[s]=ee+"Hours",Y[u]=ee+"Minutes",Y[i]=ee+"Seconds",Y[a]=ee+"Milliseconds",Y)[Z],O=Z===c?this.$D+(L-this.$W):L;if(Z===g||Z===v){var C=this.clone().set(p,1);C.$d[le](O),C.init(),this.$d=C.set(p,Math.min(this.$D,C.daysInMonth())).$d}else le&&this.$d[le](O);return this.init(),this},E.set=function(F,L){return this.clone().$set(F,L)},E.get=function(F){return this[b.p(F)]()},E.add=function(F,L){var Y,Z=this;F=Number(F);var ee=b.p(L),le=function(R){var V=N(Z);return b.w(V.date(V.date()+Math.round(R*F)),Z)};if(ee===g)return this.set(g,this.$M+F);if(ee===v)return this.set(v,this.$y+F);if(ee===c)return le(1);if(ee===d)return le(7);var O=(Y={},Y[u]=l,Y[s]=r,Y[i]=o,Y)[ee]||1,C=this.$d.getTime()+F*O;return b.w(C,this)},E.subtract=function(F,L){return this.add(-1*F,L)},E.format=function(F){var L=this,Y=this.$locale();if(!this.isValid())return Y.invalidDate||f;var Z=F||"YYYY-MM-DDTHH:mm:ssZ",ee=b.z(this),le=this.$H,O=this.$m,C=this.$M,R=Y.weekdays,V=Y.months,S=Y.meridiem,z=function(G,W,k,H){return G&&(G[W]||G(L,Z))||k[W].slice(0,H)},U=function(G){return b.s(le%12||12,G,"0")},ne=S||function(G,W,k){var H=G<12?"AM":"PM";return k?H.toLowerCase():H};return Z.replace(D,function(G,W){return W||function(k){switch(k){case"YY":return String(L.$y).slice(-2);case"YYYY":return b.s(L.$y,4,"0");case"M":return C+1;case"MM":return b.s(C+1,2,"0");case"MMM":return z(Y.monthsShort,C,V,3);case"MMMM":return z(V,C);case"D":return L.$D;case"DD":return b.s(L.$D,2,"0");case"d":return String(L.$W);case"dd":return z(Y.weekdaysMin,L.$W,R,2);case"ddd":return z(Y.weekdaysShort,L.$W,R,3);case"dddd":return R[L.$W];case"H":return String(le);case"HH":return b.s(le,2,"0");case"h":return U(1);case"hh":return U(2);case"a":return ne(le,O,!0);case"A":return ne(le,O,!1);case"m":return String(O);case"mm":return b.s(O,2,"0");case"s":return String(L.$s);case"ss":return b.s(L.$s,2,"0");case"SSS":return b.s(L.$ms,3,"0");case"Z":return ee}return null}(G)||ee.replace(":","")})},E.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},E.diff=function(F,L,Y){var Z,ee=this,le=b.p(L),O=N(F),C=(O.utcOffset()-this.utcOffset())*l,R=this-O,V=function(){return b.m(ee,O)};switch(le){case v:Z=V()/12;break;case g:Z=V();break;case y:Z=V()/3;break;case d:Z=(R-C)/6048e5;break;case c:Z=(R-C)/864e5;break;case s:Z=R/r;break;case u:Z=R/l;break;case i:Z=R/o;break;default:Z=R}return Y?Z:b.a(Z)},E.daysInMonth=function(){return this.endOf(g).$D},E.$locale=function(){return B[this.$L]},E.locale=function(F,L){if(!F)return this.$L;var Y=this.clone(),Z=x(F,L,!0);return Z&&(Y.$L=Z),Y},E.clone=function(){return b.w(this.$d,this)},E.toDate=function(){return new Date(this.valueOf())},E.toJSON=function(){return this.isValid()?this.toISOString():null},E.toISOString=function(){return this.$d.toISOString()},E.toString=function(){return this.$d.toUTCString()},A}(),J=P.prototype;return N.prototype=J,[["$ms",a],["$s",i],["$m",u],["$H",s],["$W",c],["$M",g],["$y",v],["$D",p]].forEach(function(A){J[A[1]]=function(E){return this.$g(E,A[0],A[1])}}),N.extend=function(A,E){return A.$i||(A(E,P,N),A.$i=!0),N},N.locale=x,N.isDayjs=M,N.unix=function(A){return N(1e3*A)},N.en=B[j],N.Ls=B,N.p={},N})})(_o);var Xi=_o.exports;const Ke=Xe(Xi);var qo={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(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"},l=/(\[[^[]*\])|([-_:/.,()\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(h){this[f]=+h}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(f){(this.zone||(this.zone={})).offset=function(h){if(!h||h==="Z")return 0;var D=h.match(/([+-]|\d\d)/g),T=60*D[1]+(+D[2]||0);return T===0?0:D[0]==="+"?-T:T}(f)}],g=function(f){var h=u[f];return h&&(h.indexOf?h:h.s.concat(h.f))},y=function(f,h){var D,T=u.meridiem;if(T){for(var $=1;$<=24;$+=1)if(f.indexOf(T($,0,h))>-1){D=$>12;break}}else D=f===(h?"pm":"PM");return D},v={A:[i,function(f){this.afternoon=y(f,!1)}],a:[i,function(f){this.afternoon=y(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 h=u.ordinal,D=f.match(/\d+/);if(this.day=D[0],h)for(var T=1;T<=31;T+=1)h(T).replace(/\[|\]/g,"")===f&&(this.day=T)}],M:[a,c("month")],MM:[r,c("month")],MMM:[i,function(f){var h=g("months"),D=(g("monthsShort")||h.map(function(T){return T.slice(0,3)})).indexOf(f)+1;if(D<1)throw new Error;this.month=D%12||D}],MMMM:[i,function(f){var h=g("months").indexOf(f)+1;if(h<1)throw new Error;this.month=h%12||h}],Y:[/[+-]?\d+/,c("year")],YY:[r,function(f){this.year=s(f)}],YYYY:[/\d{4}/,c("year")],Z:d,ZZ:d};function p(f){var h,D;h=f,D=u&&u.formats;for(var T=(f=h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(x,N,b){var P=b&&b.toUpperCase();return N||D[b]||o[b]||D[P].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(J,A,E){return A||E.slice(1)})})).match(l),$=T.length,q=0;q<$;q+=1){var j=T[q],B=v[j],_=B&&B[0],M=B&&B[1];T[q]=M?{regex:_,parser:M}:j.replace(/^\[|\]$/g,"")}return function(x){for(var N={},b=0,P=0;b<$;b+=1){var J=T[b];if(typeof J=="string")P+=J.length;else{var A=J.regex,E=J.parser,F=x.slice(P),L=A.exec(F)[0];E.call(N,L),x=x.replace(L,"")}}return function(Y){var Z=Y.afternoon;if(Z!==void 0){var ee=Y.hours;Z?ee<12&&(Y.hours+=12):ee===12&&(Y.hours=0),delete Y.afternoon}}(N),N}}return function(f,h,D){D.p.customParseFormat=!0,f&&f.parseTwoDigitYear&&(s=f.parseTwoDigitYear);var T=h.prototype,$=T.parse;T.parse=function(q){var j=q.date,B=q.utc,_=q.args;this.$u=B;var M=_[1];if(typeof M=="string"){var x=_[2]===!0,N=_[3]===!0,b=x||N,P=_[2];N&&(P=_[2]),u=this.$locale(),!x&&P&&(u=D.Ls[P]),this.$d=function(F,L,Y){try{if(["x","X"].indexOf(L)>-1)return new Date((L==="X"?1e3:1)*F);var Z=p(L)(F),ee=Z.year,le=Z.month,O=Z.day,C=Z.hours,R=Z.minutes,V=Z.seconds,S=Z.milliseconds,z=Z.zone,U=new Date,ne=O||(ee||le?1:U.getDate()),G=ee||U.getFullYear(),W=0;ee&&!le||(W=le>0?le-1:U.getMonth());var k=C||0,H=R||0,X=V||0,I=S||0;return z?new Date(Date.UTC(G,W,ne,k,H,X,I+60*z.offset*1e3)):Y?new Date(Date.UTC(G,W,ne,k,H,X,I)):new Date(G,W,ne,k,H,X,I)}catch{return new Date("")}}(j,M,B),this.init(),P&&P!==!0&&(this.$L=this.locale(P).$L),b&&j!=this.format(M)&&(this.$d=new Date("")),u={}}else if(M instanceof Array)for(var J=M.length,A=1;A<=J;A+=1){_[1]=M[A-1];var E=D.apply(this,_);if(E.isValid()){this.$d=E.$d,this.$L=E.$L,this.init();break}A===J&&(this.$d=new Date(""))}else $.call(this,q)}}})})(qo);var Zi=qo.exports;const Ji=Xe(Zi);var Po={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ue,function(){return function(o,l){var r=l.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(g){switch(g){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(),g==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),g==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),g==="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 g}});return a.bind(this)(d)}}})})(Po);var Qi=Po.exports;const es=Xe(Qi);var jo={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ue,function(){return function(o,l,r){var a=l.prototype,i=function(g){return g&&(g.indexOf?g:g.s)},u=function(g,y,v,p,f){var h=g.name?g:g.$locale(),D=i(h[y]),T=i(h[v]),$=D||T.map(function(j){return j.slice(0,p)});if(!f)return $;var q=h.weekStart;return $.map(function(j,B){return $[(B+(q||0))%7]})},s=function(){return r.Ls[r.locale()]},c=function(g,y){return g.formats[y]||function(v){return v.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(p,f,h){return f||h.slice(1)})}(g.formats[y.toUpperCase()])},d=function(){var g=this;return{months:function(y){return y?y.format("MMMM"):u(g,"months")},monthsShort:function(y){return y?y.format("MMM"):u(g,"monthsShort","months",3)},firstDayOfWeek:function(){return g.$locale().weekStart||0},weekdays:function(y){return y?y.format("dddd"):u(g,"weekdays")},weekdaysMin:function(y){return y?y.format("dd"):u(g,"weekdaysMin","weekdays",2)},weekdaysShort:function(y){return y?y.format("ddd"):u(g,"weekdaysShort","weekdays",3)},longDateFormat:function(y){return c(g.$locale(),y)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return d.bind(this)()},r.localeData=function(){var g=s();return{firstDayOfWeek:function(){return g.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(y){return c(g,y)},meridiem:g.meridiem,ordinal:g.ordinal}},r.months=function(){return u(s(),"months")},r.monthsShort=function(){return u(s(),"monthsShort","months",3)},r.weekdays=function(g){return u(s(),"weekdays",null,null,g)},r.weekdaysShort=function(g){return u(s(),"weekdaysShort","weekdays",3,g)},r.weekdaysMin=function(g){return u(s(),"weekdaysMin","weekdays",2,g)}}})})(jo);var ts=jo.exports;const ns=Xe(ts);var zo={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ue,function(){var o="week",l="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(l).add(1,l).date(c),g=i(this).endOf(o);if(d.isBefore(g))return 1}var y=i(this).startOf(l).date(c).startOf(o).subtract(1,"millisecond"),v=this.diff(y,o,!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)}}})})(zo);var ls=zo.exports;const os=Xe(ls);var Ho={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ue,function(){return function(o,l){l.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}}})})(Ho);var rs=Ho.exports;const as=Xe(rs);var Ko={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ue,function(){return function(o,l,r){l.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")}}})})(Ko);var is=Ko.exports;const ss=Xe(is);var Wo={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ue,function(){return function(o,l){l.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})})(Wo);var us=Wo.exports;const cs=Xe(us);var Yo={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ue,function(){return function(o,l){l.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})})(Yo);var fs=Yo.exports;const ds=Xe(fs);Ke.extend(ns),Ke.extend(es),Ke.extend(Ji),Ke.extend(os),Ke.extend(as),Ke.extend(ss),Ke.extend(cs),Ke.extend(ds);const Be={format(e,n){return Ke(e).format(n)},parser(e,n){return Ke(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,o){const r=new Date(e+"/"+n+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][r]},getMonthPreDay(e,n){let l=new Date(e+"/"+n+"/01").getDay();return l==0&&(l=7),l},getMonthDays(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){n=n||"-";const o=e.getFullYear(),l=this.getNumTwoBit(e.getMonth()+1),r=this.getNumTwoBit(e.getDate());return[o,l,r].join(n)},getDay(e,n){e=e||0;let o=n??new Date;const l=e*(1e3*60*60*24);return o=new Date(o.getTime()+l),this.date2Str(o)},compareDate(e,n){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let l;return typeof n=="string"?l=new Date(n.replace("-","/").replace("-","/")):l=n,!(o>=l)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e;let l;return typeof n=="string"?l=new Date(n).getTime():l=n,o==l},getMonthWeek:function(e,n,o,l=0){const r=new Date(Number(e),parseInt(n)-1,Number(o));let a=r.getDay(),i=r.getDate(),u=6-a;return l!==0&&(a=a==0?7:a,u=7-a),Math.ceil((i+u)/7)},getYearWeek:function(e,n,o,l=0){const r=new Date(Number(e),parseInt(n)-1,Number(o)),a=new Date(Number(e),0,1),i=Math.round((r.valueOf()-a.valueOf())/864e5);let u=r.getDay(),s=6-u;return l!==0&&(u=u==0?7:u,s=7-u),Math.ceil((i+s)/7)},getWeekDate:function(e,n,o,l=0){const r=new Date(Number(e),parseInt(n)-1,Number(o)),a=r.getTime();let i=r.getDay();if(l===0){const s=a-i*864e5,c=a+(6-i)*864e5,d=this.date2Str(new Date(s)),g=this.date2Str(new Date(c));return[d,g]}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)),g=this.date2Str(new Date(c));return[d,g]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=Be.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=Be.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,o){const l=new Date(new Date(n).setDate(n.getDate()+o)),r=e.getTime(),a=l.getTime(),i=n.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i},inScope4Month(e,n,o){const l=new Date(new Date(n).setMonth(n.getMonth()+o)),r=e.getTime(),a=l.getTime(),i=n.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i}},Go={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"}},Uo={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 hs(e,n,o){return{props:{...xe,...Ie,...Go,...Uo},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=Me.useFoxI18n(n),g=d(l,["placeholder"]),y=t.ref(!1),v=ge(l,"modelValue",null,c),p=t.computed(()=>L.value&&Array.isArray(v.value)&&v.value.length==2?v.value[0]:v.value),f=t.computed(()=>L.value?"longTermKey":"normalKey"),h=W=>{if(L.value&&l.type==="daterange"){const k=[...v.value];k[0]=W,v.value=k}else v.value=W;c("update:modelValue",v.value),c("change",v.value)},D=t.computed(()=>L.value&&l.type==="daterange"?"date":l.type),T=e,$=t.computed(()=>({[`${T}`]:!0,"is-long":L.value,"is-readonly":s.value,"is-disabled":i.value}));let q=ge(l,"hintText"),j=t.ref(!1);const B=W=>{let H=W.target.value;y.value=!0,he(q.value)||(j.value=!0),c("focus",H,W)},_=W=>{setTimeout(()=>{j.value&&(j.value=!1),y.value=!1},0);let H=W.target.value;l.maxLength&&H.length>Number(l.maxLength)&&(H=H.slice(0,Number(l.maxLength))),c("blur",H,W)},M=()=>{c("clear","")},x=W=>{c("calendar-change",W)},N=(W,k,H)=>{c("panel-change",W,k,H)},b=W=>{c("visible-change",W)},P=Oe(t.computed(()=>l.longTermText),"longTermText",Le.Near),J=Oe(t.computed(()=>l.longTermActionLabel),"longTermActionLabel",Le.Near),A=Oe(t.computed(()=>l.longTermValue),"longTermValue",Le.Near),E=Oe(t.computed(()=>l.compatibleLongTermValue),"compatibleLongTermValue",Le.Near);let F=null;const L=t.ref(ue(l.longTerm)),Y=W=>{if(L.value=W,c("update:longTerm",W),W){if(F=v.value,l.type==="daterange"){const k=[];Array.isArray(A.value)?(k[0]=v.value?v.value[0]??A.value[0]:null,k[1]=A.value[1]??A.value[0]):(k[0]=v.value?v.value[0]??A.value:null,k[1]=L.value),k[0]||(k[0]=l.valueFormat?Be.format(new Date,l.valueFormat):new Date),k[1]||(k[1]=l.valueFormat?Be.format(new Date,l.valueFormat):new Date),v.value=k}else Array.isArray(A.value)?v.value=A.value[1]??A.value[0]:v.value=A.value,v.value||(v.value=l.valueFormat?Be.format(new Date,l.valueFormat):new Date);c("update:modelValue",v.value)}else{if(l.type==="daterange"){const k=[];k[0]=Array.isArray(v.value)?v.value[0]:v.value,Array.isArray(F)?k[1]=F[1]:k[1]=F,k[0]||(k[0]=l.valueFormat?Be.format(new Date,l.valueFormat):new Date),k[1]||(k[1]=l.valueFormat?Be.format(new Date,l.valueFormat):new Date),v.value=k}else v.value=F;c("update:modelValue",v.value),setTimeout(()=>{ne()},100)}},Z=ue(l.isLongTerm);if(Z){const W=()=>{if(L.value===!0){if(F=v.value,l.type==="daterange"){const k=[v.value[0]];Array.isArray(A.value)?k[1]=A.value[1]??A.value[0]:k[1]=L.value,k[0]||(k[0]=l.valueFormat?Be.format(new Date,l.valueFormat):new Date),k[1]||(k[1]=l.valueFormat?Be.format(new Date,l.valueFormat):new Date),v.value=k}else v.value=A.value;c("update:modelValue",v.value)}else Ye(A.value,v.value)&&(L.value=!0)};W(),t.watch([()=>l.longTerm],([k])=>{L.value!==k&&W()}),t.watch([()=>v.value],([k])=>{let H=!1;if(l.type==="daterange"&&Array.isArray(k))try{let X=k[1];if(!X)return;if(k[0]==null){c("update:modelValue",[]);return}typeof X!="string"&&l.valueFormat&&(X=Be.format(X,l.valueFormat));let I=Array.isArray(A.value)?A.value[1]:A.value;(X===I||Array.isArray(E.value)&&E.value.findIndex(te=>X==te)!==-1)&&(H=!0)}catch(X){console.error(X)}L.value!==H&&(L.value=H)},{immediate:!0})}const ee=t.computed(()=>({"fox-date-item__long":!0,"is-active":y.value})),le=t.ref(),O=t.ref(),C=/^\d+$/,R=(W,k)=>typeof l.flashFillThreshold=="function"?l.flashFillThreshold(W,k):C.test(W)&&W.length===l.flashFillThreshold,V=(W,k)=>{let H;if(typeof l.flashFillFormat=="function")H=l.flashFillFormat(W,k);else{const I=l.flashFillFormat??"YYYYMMDD";H=Be.parser(W,I)}const X=l.valueFormat??"YYYY-MM-DD";return Be.format(H,X)},S=W=>W?W.endsWith("range"):!1,z=W=>{if(!W.target)return;const k=W.target.value??"";if(R(k,l.type)){const H=V(k,l.type);if(S(l.type)){const X=Array.isArray(v.value)?[...v.value]:[];X[0]=H,h(X)}else h(H)}},U=W=>{if(!W.target)return;const k=W.target.value??"";if(R(k,l.type)){const H=V(k,l.type);if(S(l.type)){const X=Array.isArray(v.value)?[...v.value]:[];X[1]=H,h(X)}else h(H)}},ne=()=>{if(l.flashFill&&le.value&&le.value.$el)if(S(l.type)){const W=le.value.$el.querySelectorAll("input.el-range-input");W[0]&&W[0].addEventListener("input",z),W[1]&&W[1].addEventListener("input",U)}else{const W=le.value.$el.querySelector("input.el-input__inner");W&&W.addEventListener("input",z)}},G=()=>{if(l.flashFill&&le.value&&le.value.$el)if(S(l.type)){const W=le.value.$el.querySelectorAll("input.el-range-input");W[0]&&W[0].removeEventListener("input",z),W[1]&&W[1].removeEventListener("input",U)}else{const W=le.value.$el.querySelector("input.el-input__inner");W&&W.removeEventListener("input",z)}};return t.onMounted(ne),t.onBeforeUnmount(G),we({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()},handleOpen:()=>{O?.value.handleOpen()},handleClose:()=>{O?.value.handleClose()},setDisabled:W=>{a.value=W},setReadonly:W=>{u.value=W}}),()=>{const k={...r.attrs,key:f.value,type:D.value,ref:O,class:$.value,placeholder:g.placeholder.value,disabled:i.value,readonly:s.value,modelValue:p.value,valueFormat:l.valueFormat,format:l.format,"onUpdate:modelValue":h,onClear:M,onFocus:B,onBlur:_,onCalendarChange:x,onPanelChange:N,onVisibleChange:b},H={};r.slots["range-separator"]&&(H["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(H.default=r.slots.cell);const X=[],I=t.h(w.ElDatePicker,k,H);X.push(I);const K={default:()=>X};if(r.slots.default&&(K.label=r.slots.default),r.slots.fixedTip&&(K.fixedTip=r.slots.fixedTip),Z){if(L.value){const ie=t.h("span",{class:["fox-date-item__long-splitor"]},["-"]),Q=t.h("input",{class:["fox-date-item__long-text"],value:P.value,readonly:!0}),re={class:ee.value},ae=t.h("div",re,{default:()=>[ie,Q]});X.push(ae)}if(!s.value&&!i.value){const ie={label:J.value||P.value,disabled:s.value||i.value,modelValue:L.value,"onUpdate:modelValue":Y},Q=t.h(w.ElCheckbox,ie),re=t.h("div",{class:{[`${T}__append`]:!0}},[Q]);K.append=()=>re}}const oe={...Ne(l,Go,Uo),ref:le,class:{[`${T}__wrapper`]:!0,"has-append":Z},hintText:q.value,hintVisible:j.value};return l.prop&&(oe.prop=`${l.prop}_item`),t.h(o,oe,K)}}}}const{componentName:gs,create:ms,scope:ps}=se("date-item"),Un=ms(hs(gs,ps,Te)),Xo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ys(e,n,o){return{props:{...xe,...Ie,...Xo},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=Me.useFoxI18n(n),g=d(l,["placeholder"]),y=t.ref(!1),v=ge(l,"modelValue",null,c),p=e,f=t.computed(()=>({[p]:!0})),h=M=>{v.value=M,c("update:modelValue",M),c("change",M)};let D=ge(l,"hintText"),T=t.ref(!1);const $=M=>{let N=M.target.value;y.value=!0,he(D.value)||(T.value=!0),c("focus",N,M)},q=M=>{setTimeout(()=>{T.value&&(T.value=!1),y.value=!1},0);let N=M.target.value;l.maxLength&&N.length>Number(l.maxLength)&&(N=N.slice(0,Number(l.maxLength))),c("blur",N,M)},j=()=>{c("clear","")},B=M=>{c("visible-change",M)},_=t.ref();return we({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},handleOpen:()=>{_?.value.handleOpen()},handleClose:()=>{_?.value.handleClose()},setDisabled:M=>{a.value=M},setReadonly:M=>{u.value=M}}),()=>{const x={...r.attrs,ref:_,class:f.value,placeholder:g.placeholder.value,disabled:i.value,readonly:s.value,modelValue:v.value,"onUpdate:modelValue":h,onClear:j,onFocus:$,onBlur:q,onVisibleChange:B},N={},b=[],P=t.h(w.ElTimePicker,x,N);b.push(P);const J={default:()=>b};r.slots.default&&(J.label=r.slots.default),r.slots.fixedTip&&(J.fixedTip=r.slots.fixedTip);const E={...Ne(l,Xo),hintText:D.value,hintVisible:T.value};return l.prop&&(E.prop=`${l.prop}_item`),t.h(o,E,J)}}}}const{componentName:bs,create:vs,scope:ws}=se("time-item"),Xn=vs(ys(bs,ws,Te)),Zo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Ss(e,n,o){return{props:{...xe,...Ie,...Zo},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=Me.useFoxI18n(n),g=d(l,["placeholder"]),y=t.ref(!1),v=ge(l,"modelValue",null,c),p=e,f=t.computed(()=>({[p]:!0})),h=_=>{v.value=_,c("update:modelValue",_),c("change",_)};let D=ge(l,"hintText"),T=t.ref(!1);const $=_=>{let x=_.target.value;y.value=!0,he(D.value)||(T.value=!0),c("focus",x,_)},q=_=>{setTimeout(()=>{T.value&&(T.value=!1),y.value=!1},0);let x=_.target.value;l.maxLength&&x.length>Number(l.maxLength)&&(x=x.slice(0,Number(l.maxLength))),c("blur",x,_)},j=()=>{c("clear","")},B=t.ref();return we({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},handleOpen:()=>{B?.value.handleOpen()},handleClose:()=>{B?.value.handleClose()},setDisabled:_=>{a.value=_},setReadonly:_=>{u.value=_}}),()=>{const M={...r.attrs,ref:B,class:f.value,placeholder:g.placeholder.value,disabled:i.value,readonly:s.value,modelValue:v.value,"onUpdate:modelValue":h,onClear:j,onFocus:$,onBlur:q},x={},N=[],b=t.h(w.ElTimeSelect,M,x);N.push(b);const P={default:()=>N};r.slots.default&&(P.label=r.slots.default),r.slots.fixedTip&&(P.fixedTip=r.slots.fixedTip);const A={...Ne(l,Zo),hintText:D.value,hintVisible:T.value};return l.prop&&(A.prop=`${l.prop}_item`),t.h(o,A,P)}}}}const{componentName:xs,create:Ts,scope:$s}=se("time-select-item"),Zn=Ts(Ss(xs,$s,Te));function Jo(e,n=0){let o=`${e}`,l=o.indexOf(".");if(l==-1)return o;let r=l;for(let a=o.length-1;a>=l;a--)if(o.charAt(a)!="0"){r=a;break}return r-l<n?r=l+n+1:r!=l&&(r+=1),r>o.length?o=o.padEnd(r,"0"):o=o.substring(0,r),o}function Qo(e,n,o=20){if(typeof n=="string"&&(n=Se(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let l=Yl(`${e}`,`${n}`);return Jo(l)}else{let l=xn(`${e}`,Gl(`${n}`),20);return Jo(l)}}function Cs(e,n=-1,o=!1,l=3,r=","){return Mt(e,n,o,l,r)}function er(e,n,o,l,r=!0){if(e==="")return"";if(e=Ul(e),n=Se(n),n==1)return e;if(l)e=Qo(e,n),o&&(e=="0"&&r?e=`${e}.`.padEnd(Se(o)+2,"0"):e=xn(e,1,Se(o)));else{let a=-1*n;e=Qo(e,a)}return e}function tr(e,n){let o={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let l=ue(n.minInclude),r=Tn(e,n.min);if(l&&r==-1||!l&&(r==0||r==-1)){let a="请输入不小于 {0} 的数值";o.message=a.replace("{0}",n.min),o.minValid=!1}}if(n.max!=null){let l=ue(n.maxInclude),r=Tn(e,n.max);(l&&r==1||!l&&(r==0||r==1))&&(o.maxValid=!1)}return o}const nr={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 Es(e,n,o){return{props:{...xe,...Ie,...nr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),d=t.ref(!1),g=ge(l,"modelValue",null,c),y=t.ref("");t.watch([()=>g.value,()=>l.rates,()=>l.precision],([E,F,L])=>{if(he(E)){y.value="";return}const Y=er(E,F,L,!1);y.value!==Y&&(y.value=Y)},{immediate:!0});const v=t.computed(()=>{let E="";return d.value&&(E=y.value),E}),{t:p}=Me.useFoxI18n(n),f=t.computed(()=>{let E=l.placeholder??"";return!d.value&&!he(y.value)?E=Cs(y.value,l.decimalLength,l.autoPadding,l.digits,l.separator):E=p(["placeholder",E]),E}),h=e,D=t.computed(()=>({[h]:!0,[`${h}__disabled`]:i.value,[`${h}__placeholder`]:y.value.length>0})),T=Oe(t.computed(()=>l.textAlign),"textAlign");t.computed(()=>d.value?{textAlign:"left"}:{textAlign:T.value??"right"});const $=t.ref(""),q=t.computed(()=>{let E=$.value;return he(E)&&(E=l.errorTip??""),E}),j=t.ref(""),B=t.ref(!1),_=(E,F)=>{if(E=`${E}`,he(E)){y.value="",g.value="",F.forEach(L=>{c(L,"")}),ue(l.showTip)&&B.value&&(B.value=!1);return}if(E.length>=2){let L=E;if(L.charAt(0)=="-"&&(L=L.substring(1)),L.length>=2&&L.charAt(0)=="0"&&L.charAt(1)!="."){t.triggerRef(y);return}}if(E!="-"){if(!oo(E)){t.triggerRef(y);return}if(l.integerLength!=-1&&ro(E)>Number(l.integerLength)){t.triggerRef(y);return}if(l.decimalLength&&l.decimalLength!=-1&&ao(E)>Number(l.decimalLength)){t.triggerRef(y);return}let L=tr(E,l);if(L.maxValid===!1){$.value=L.message,t.triggerRef(y);return}}else if(l.min!=null&&Se(l.min)>=0){t.triggerRef(y);return}j.value=E,ue(l.showTip)&&(B.value=E.length>0),y.value=E,g.value=er(E,l.rates,l.precision,!0),F.forEach(L=>{c(L,g.value)})},M=E=>{_(E,["update:modelValue","input"])},x=E=>{_(E,["update:modelValue","change"])},N=E=>{if(d.value=!0,ue(l.showTip)){let F=y.value;he(F)&&(F=l.hintText),he(F)||(j.value=F,B.value=!0)}$.value="",c("focus",g.value,E)},b=E=>{if(setTimeout(()=>{d.value=!1,ue(l.showTip)&&B.value===!0&&(B.value=!1)},0),!he(y.value)){let F=tr(y.value,l);if(F.minValid===!1||F.maxValid===!1){$.value=F.message;return}}c("update:modelValue",g.value,E),c("blur",g.value,E)},P=()=>{c("clear","")},J=t.computed(()=>wt(l.unit)>0),A=t.ref();return we({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()},select:()=>{A?.value.select()},setDisabled:E=>{a.value=E},setReadonly:E=>{u.value=E}}),()=>{const F={...He(r.attrs),ref:A,class:D.value,type:"digit",maxlength:l.maxLength,placeholder:f.value,clearable:l.clearable,disabled:i.value,readonly:s.value,modelValue:v.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:P,onInput:M,onChange:x,onFocus:N,onBlur:b},L={};r.slots.prepend&&(L.prepend=r.slots.prepend),r.slots.append&&(L.append=r.slots.append),r.slots.prefix&&(L.prefix=r.slots.prefix),r.slots.suffix?L.suffix=r.slots.suffix:J.value&&(L.suffix=()=>[l.unit]);const Y=[],Z=t.h(w.ElInput,F,L);Y.push(Z);const ee={default:()=>Y};r.slots.default&&(ee.label=r.slots.default),r.slots.fixedTip&&(ee.fixedTip=r.slots.fixedTip);const O={...Ne(l,nr),errorTip:q.value,hintText:j.value,hintVisible:B.value,hintType:"number"};return l.prop&&(O.prop=`${l.prop}_item`),t.h(o,O,ee)}}}}const{componentName:Ns,create:ks,scope:Is}=se("money-item"),Jn=ks(Es(Ns,Is,Te)),lr={modelValue:{type:[String,Number],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Os(e,n,o){return{props:{...xe,...Ie,...lr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=Me.useFoxI18n(n),g=d(l,["placeholder"]),y=t.ref(!1),v=ge(l,"modelValue",null,c),p=e,f=t.computed(()=>({[p]:!0,[`${p}__append`]:M.value})),h=t.computed(()=>({[`${p}__unit`]:!0})),D=N=>{v.value=N,c("update:modelValue",N),c("input",N)},T=N=>{c("change",N)};let $=ge(l,"hintText"),q=t.ref(!1);const j=N=>{let P=N.target.value;y.value=!0,he($.value)||(q.value=!0),c("focus",P,N)},B=N=>{setTimeout(()=>{q.value&&(q.value=!1),y.value=!1},0);let P=N.target.value;l.maxLength&&P.length>Number(l.maxLength)&&(P=P.slice(0,Number(l.maxLength))),c("blur",P,N)},_=()=>{c("clear","")},M=t.computed(()=>wt(l.unit)>0),x=t.ref();return we({focus:()=>{x?.value.focus()},blur:()=>{x?.value.blur()},setDisabled:N=>{a.value=N},setReadonly:N=>{u.value=N}}),()=>{const b={...He(r.attrs),ref:x,class:f.value,placeholder:g.placeholder.value,clearable:l.clearable,disabled:i.value,readonly:s.value,modelValue:v.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:_,onChange:T,onInput:D,onFocus:j,onBlur:B},P={},J=[],A=t.h(w.ElInputNumber,b,P);J.push(A);const E={default:()=>J};r.slots.default&&(E.label=r.slots.default),r.slots.fixedTip&&(E.fixedTip=r.slots.fixedTip);const L={...Ne(l,lr),hintText:$.value,hintVisible:q.value};if(l.prop&&(L.prop=`${l.prop}_item`),r.slots.append)E.append=r.slots.append;else if(M.value){const Z={class:h.value},ee=t.h("div",Z,[l.unit]);E.append=()=>ee}return t.h(o,L,E)}}}}const{componentName:Vs,create:Ds,scope:Fs}=se("input-number-item"),Qn=Ds(Os(Vs,Fs,Te));function Ze(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function at(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Rs(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}let As=class{proxy;constructor(n){this.proxy=n}async load(n,o,l,r){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l,r);const a=Pe(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(We(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l,r))}};function Ms(){const e=t.getCurrentInstance();return new As(e.proxy)}function el(e,n,o){const l=Ze(e,n),r=Ze(e,o);if(l!==r)return!1;const a=at(e,n),i=at(e,o);return a===i}function or(e,n,o,l){if(l.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const r=[];let a=l;for(let i=0;Array.isArray(a)&&i<n.length;i++){const u=n[i];if(Array.isArray(u)){const s=or(e,u,o,l);r.push(s)}else{let s=!1;for(let c of a){if(o==="text")s=Ze(e,c)===u;else if(o==="item")s=el(e,c,u);else{let d=at(e,c);d==null&&(d=Ze(e,c)),s=d===u}if(s){r.push(c),a=Rs(e,c);break}}if(!s)break}}return r}function Ls(e){return{text:e,value:e}}const rr={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 Bs(e,n,o){return{props:{...xe,...Ie,...rr},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=Me.useFoxI18n(n),g=d(l,["placeholder"]),y=t.ref(null),v=t.ref([]),p=t.computed(()=>v.value?v.value.map(W=>Array.isArray(W)?W.map(H=>Ze(l,H)).join(" "):Ze(l,W)).join(" "):""),f=(G,W,k,H=!0)=>{if(l.props&&l.props.lazy===!0||l.lazy===!0){if(y.value===G)return;y.value=G;const te=t.toRaw(G);if(H){const oe=ne?.value.getCheckedNodes();if(oe)if(l.multiple){const ce=[];oe.forEach(ie=>{const re=(ie.pathNodes??[]).map(ae=>ae.data);ce.push(re)}),c("update:pathNodes",ce)}else{const ie=(oe[0]?.pathNodes??[]).map(Q=>Q.data);c("update:pathNodes",ie)}c("update:modelValue",te),c("change",te)}return}const X=or(l,G,W,k);if(X===null){if(v.value.length===0||v.value===null)return;v.value=[],y.value=null,H&&(c("update:pathNodes",[]),c("update:modelValue",null),c("change",null));return}const I=X[X.length-1];if(P.value.checkStrictly!==!0&&I&&!Array.isArray(I)&&Array.isArray(I.children)&&I.children.length>0){const te=[];X.forEach(oe=>{const ce=`${Ze(l,oe)}`;te.push(ce)}),te.length>0&&(N.value=te.join(l.separator))}else N.value=null;let K=!0;if(X.length!==v.value.length)K=!1;else for(let te=0;te<X.length;te++){const oe=X[te],ce=v.value[te];if(Array.isArray(oe)){if(!Array.isArray(ce)||oe.length!==ce.length)K=!1;else for(let ie=0;ie<oe.length;ie++)if(!el(l,oe[ie],ce[ie])){K=!1;break}}else el(l,oe,ce)||(K=!1);if(!K)break}if(!K){v.value=X;let te=[],oe=[];X.forEach(ie=>{if(Array.isArray(ie)){let Q=[],re=[];for(let ae of ie)Q.push(at(l,ae)),l.valueType==="text"?re.push(Ze(l,ae)):l.valueType==="item"?re.push(ae):re.push(at(l,ae));te.push(Q),oe.push(re)}else te.push(at(l,ie)),l.valueType==="text"?oe.push(Ze(l,ie)):l.valueType==="item"?oe.push(ie):oe.push(at(l,ie))}),y.value=te;const ce=t.toRaw(oe);H&&(c("update:pathNodes",X),c("update:modelValue",ce),c("change",ce))}},h=t.ref([]),D=Oe(t.computed(()=>l.appearLoad),"appearLoad",Le.Near,G=>ue(G)),T=Ms(),$=async(G,W)=>{if(G){const k=await T.load("cascader",G,W);if(k.length>0)if(typeof k[0]=="string"){let I=k.map(K=>Ls(K));h.value=I}else h.value=k}};t.watch([()=>l.source,()=>l.params],async([G,W])=>{$(G,W)},{immediate:!(D.value||l.lazy)});let q=!1;const j=()=>{q||(q=!0,$(l.source,l.params))};t.watch([()=>h.value,()=>l.modelValue],([G,W])=>{f(W,l.valueType,G,!1),c("setValue",W)}),l.lazy&&f(l.modelValue,"value",[],!1);let B=null,_=t.ref(!1);typeof l.remoteMethod=="function"&&(B=async G=>{if(G!=null){_.value=!0;try{const W=await l.remoteMethod(G);h.value=W}catch(W){console.error(W)}_.value=!1}});const M=t.ref(!1),x=e,N=t.ref(null),b=t.computed(()=>({[x]:!0,"is-incomplete":N.value&&N.value.length>0})),P=t.computed(()=>{let G={label:l.textKey,value:l.valueKey,children:l.childrenKey};return l.multiple===!0&&(G.multiple=!0),l.props&&Object.assign(G,l.props),l.lazy&&(G.lazy=!0,typeof l.lazyLoad=="function"?G.lazyLoad=l.lazyLoad:G.lazyLoad=async(W,k)=>{const H=await T.load("cascader",l.source,W,!0);if(W?.config?.checkStrictly!==!0&&Array.isArray(y.value)&&y.value.length===W.level){const X=W.pathLabels??[];let I=[];X.forEach(K=>{K&&I.push(K)}),I.length>0&&(N.value=I.join(l.separator))}else N.value=null;k(H)}),G}),J=G=>{l.allowCreate?(c("update:modelValue",G),c("change",G),y.value=G):f(G,"value",h.value,!0)};let A=ge(l,"hintText"),E=t.ref(!1);const F=G=>{let k=G.target.value;M.value=!0,he(A.value)||(E.value=!0),c("focus",k,G)},L=G=>{setTimeout(()=>{E.value&&(E.value=!1),M.value=!1},0);let k=G.target.value;l.maxLength&&k.length>Number(l.maxLength)&&(k=k.slice(0,Number(l.maxLength))),V.value||c("blur",k,G)},Y=()=>{c("clear","")},Z=t.ref(!1);let ee=null;const le=()=>{l.showTooltip&&Z.value===!1&&(ee&&clearTimeout(ee),ee=setTimeout(()=>{Z.value=!0},150))},O=()=>{ee&&(clearTimeout(ee),Z.value=!1,ee=null)},C=t.computed(()=>Z.value||E.value),R=t.computed(()=>Z.value?p.value:A.value),V=t.ref(!1),S=G=>{V.value=G,c("visible-change",G),G||c("selected")},z=G=>{c("remove-tag",G)},U=G=>{c("expand-change",G)},ne=t.ref();return we({focus:()=>{ne?.value.focus()},blur:()=>{ne?.value.blur()},getCheckedNodes:()=>ne?.value.getCheckedNodes(),setDisabled:G=>{a.value=G},setReadonly:G=>{u.value=G}}),()=>{const W={...r.attrs,ref:ne,class:b.value,props:P.value,clearable:l.clearable,placeholder:N.value||g.placeholder.value,disabled:i.value||s.value,options:h.value,modelValue:y.value,separator:l.separator,onClear:Y,onChange:J,onFocus:F,onBlur:L,onVisibleChange:S,onRemoveTag:z,expandChange:U};typeof B=="function"&&(W["remote-method"]=B,W.loading=_.value);const k={};r.slots.option&&(k.default=r.slots.option),r.slots.empty&&(k.empty=r.slots.empty);const H=[],X=t.h(w.ElCascader,W,k);H.push(X);const I={default:()=>H};r.slots.default&&(I.label=r.slots.default),r.slots.fixedTip&&(I.fixedTip=r.slots.fixedTip);const te={...Ne(l,rr),hintText:R.value,hintVisible:C.value,onMouseover:le,onMouseleave:O};return l.prop&&(te.prop=`${l.prop}_item`),D.value&&!l.lazy&&(te["appear-listen"]=!0,te.onAppear=j),t.h(o,te,I)}}}}const{componentName:_s,create:qs,scope:Ps}=se("cascader-item"),tl=qs(Bs(_s,Ps,Te)),ar={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function js(e,n,o){return{props:{...xe,...Ie,...ar},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=Me.useFoxI18n(n),g=d(l,["placeholder"]),y=t.ref(!1),v=ge(l,"modelValue",null,c),p=e,f=t.computed(()=>({[p]:!0})),h=x=>{v.value=x,c("update:modelValue",x),c("input",x)},D=x=>{c("change",x)},T=x=>{c("select",x)};let $=ge(l,"hintText"),q=t.ref(!1);const j=x=>{let b=x.target.value;y.value=!0,he($.value)||(q.value=!0),c("focus",b,x)},B=x=>{setTimeout(()=>{q.value&&(q.value=!1),y.value=!1},0);let b=x.target.value;l.maxLength&&b.length>Number(l.maxLength)&&(b=b.slice(0,Number(l.maxLength))),c("blur",b,x)},_=()=>{c("clear","")},M=t.ref();return we({focus:()=>{M?.value.focus()},blur:()=>{M?.value.blur()},select:()=>{M?.value.select()},setDisabled:x=>{a.value=x},setReadonly:x=>{u.value=x}}),()=>{const N={...r.attrs,ref:M,class:f.value,placeholder:g.placeholder.value,clearable:l.clearable,disabled:i.value,readonly:s.value,modelValue:v.value,onClear:_,onChange:D,onInput:h,onFocus:j,onBlur:B,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 P=[],J=t.h(w.ElAutocomplete,N,b);P.push(J);const A={default:()=>P};r.slots.default&&(A.label=r.slots.default),r.slots.fixedTip&&(A.fixedTip=r.slots.fixedTip);const F={...Ne(l,ar),hintText:$.value,hintVisible:q.value};return l.prop&&(F.prop=`${l.prop}_item`),t.h(o,F,A)}}}}const{componentName:zs,create:Hs,scope:Ks}=se("autocomplete-item"),nl=Hs(js(zs,Ks,Te));function Ws(e,n,o,l,r){let a=[];Array.isArray(e)?a=e:a=[e];const i=[],u=n[0];if(Array.isArray(e)&&!Array.isArray(u)&&!u[r]){let s=n;for(let c=0;s&&c<a.length;c++){let d=a[c],g=s.find(y=>y[l]===d);if(!g)break;i.push(g[o])}return i}if(Array.isArray(u))for(let s=0;s<n.length&&s<a.length;s++){let c=n[s],d=a[s];const g=c.find(y=>y[l]===d);if(!g)break;i.push(g[o])}else{let s=n;for(let c=0;s&&c<a.length;c++){let d=a[c],g=s.find(y=>y[l]===d);if(!g)break;i.push(g[o]),s=g[r]}}return i}let Ys=class{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const r=Pe(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(We(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await r(o,l))}};function Gs(){const e=t.getCurrentInstance();return new Ys(e.proxy)}const ir={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 Us(e,n){return{props:{...ir},setup(o,{attrs:l,slots:r}){const a=Gs(),i=t.ref([]);t.watch([()=>o.source,()=>o.params],async([c,d])=>{i.value=await a.load(o.sourceType,c,d)},{immediate:!0});const u=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let c=Ws(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return c.length==0?o.emptyText??"":c.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${c[0]}`:c[0]:c.join(o.separator)}),s=o.resolveTag?t.resolveComponent(o.tag):o.tag;return()=>{const c={...l};return r.default?r.default({text:u.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===u.value?t.h(o.emptyTag??"span",{...l,class:o.emptyClass},u.value):t.h(s,c,{default:()=>u.value}):t.h(s,c,u.value)}}}}const{componentName:Mh,create:Xs,scope:Lh}=se("mapping"),It=Xs(Us());function Zs(e,n){let o=n.split("."),l=e;for(let r=0;r<o.length;r++){let a=o[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 g=a.substring(0,u);l=l[g][d]}else l=l[d];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(l=l[a])}return l}function Js(e,n){return{props:{...ir},setup(o,{attrs:l,slots:r}){return()=>{const a={default:i=>{const u=Zs(i.row,i.column.property);return r.default?t.h(It,{...o,modelValue:u},{default:r.default}):t.h(It,{...o,modelValue:u})}};for(let i in r)i!=="default"&&(a[i]=r[i]);return t.h(w.ElTableColumn,{...l},a)}}}}const{componentName:Bh,create:Qs,scope:_h}=se("table-mapping-column"),ll=Qs(Js()),eu=Symbol.for("TableStateKey");function sr(e,n){let o=n.split("."),l=e;for(let r=0;r<o.length;r++){let a=o[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 g=a.substring(0,u);l=l[g][d]}else l=l[d];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(l=l[a])}return l}function tu(e,n){return{props:{},setup(o,{attrs:l}){const r=t.inject(eu,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:u=>{const s=sr(u.row,u.column.property),c=a?sr(a,u.column.property):null,d=s===c,g={class:{"el-radio__input":!0,"is-checked":d}},y=t.h("span",g,[t.h("span",{class:{"el-radio__inner":!0}})]),v={class:{"el-radio":!0,"is-checked":d}};return t.h("label",v,[y])}};return t.h(w.ElTableColumn,{...l},i)}}}}const{componentName:qh,create:nu,scope:Ph}=se("table-radio-column"),ol=nu(tu()),lu={},ou={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 ru(e,n){return t.openBlock(),t.createElementBlock("svg",ou,n[0]||(n[0]=[t.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 au=_e(lu,[["render",ru]]),{componentName:jh,create:iu,scope:zh}=se("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:w.ElPopover,FoxCheckbox:w.ElCheckbox,FoxCheckboxGroup:w.ElCheckboxGroup,FoxButton:w.ElButton,FoxIcon:w.ElIcon,DragIcon:au,Download:Ce.Download,RefreshLeft:Ce.RefreshLeft},props:{...su},setup(e,{emit:n,attrs:o}){let l=[];const r=t.ref([]),a=t.computed(()=>r.value.filter(S=>S.label===""||S.type?!1:S.fixed===""||S.fixed===!0||S.fixed==="left")),i=t.computed(()=>r.value.filter(S=>S.label===""||S.type?!1:S.fixed==="right")),u=t.computed(()=>r.value.filter(S=>!(S.label===""||S.type||S.fixed!==void 0))),s=t.computed(()=>(a.value.length>0||i.value.length>0)&&u.value.length>0),c=t.computed(()=>a.value.length>0),d=t.computed(()=>i.value.length>0),g=S=>S.length>1,y=(S,z)=>{Array.isArray(S)&&Array.isArray(z)&&S.forEach(G=>{z.some(W=>W.prop===G.prop?(G.label=W.label,!0):!1)});const U=[];r.value=S.map((G,W)=>(!(G.label===""||G.type)&&G.visible!==!1&&U.push(G.prop),{...G,sortIndex:W})),u.value.length+a.value.length+i.value.length===U.length?T.value=!0:U.length>0&&($.value=!0),B.value=U},v=S=>S?S.type?S.type:S.label?S.prop:"":"",p=(S,z)=>{if(S.length!==z.length)return!1;const U=S.map(ne=>v(ne));for(let ne of z){const G=v(ne);if(U.indexOf(G)===-1)return!1}return!0},f=S=>{if(!S){const z=e.tableRef.getColumnSetting(),U=z.srcColumnPropertyList;l=U.map((ne,G)=>({...ne,sortIndex:G})),S=z.columnPropertyList,S&&S.length>0&&p(U,S)||(S=U)}y(S,l)},h=()=>{e.tableRef.setColumnSetting(r.value)},D=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),T=t.ref(!1),$=t.ref(!1),q=S=>{const z=[];r.value.forEach(ne=>{S&&!(ne.label===""||ne.type)&&z.push(ne.prop),ne.visible=S}),T.value=!1,$.value=!1,u.value.length+a.value.length+i.value.length===z.length?T.value=!0:z.length>0&&($.value=!0),B.value=z,h()},j=()=>{f(l),h()},B=t.ref([]),_=S=>{r.value.forEach(U=>{if(U.label===""||U.type)return;const ne=S.indexOf(U.prop)!==-1;U.visible=ne}),T.value=!1,$.value=!1;const z=u.value.length+a.value.length+i.value.length;S.length===z?T.value=!0:S.length>0&&($.value=!0),h()},M=()=>{f()};t.onMounted(()=>{setTimeout(()=>{f()},50)});const x={currentRow:null,index:null,roleType:null},N=S=>S?S.dataset&&S.dataset.role==="row"?S:S.tagName.toLowerCase()!=="body"?(S=S.parentElement,N(S)):null:null,b=S=>{const z=S.currentTarget;z&&z.dataset&&(x.roleType=z.dataset.roleType,x.index=z.dataset.index)},P=S=>{x.currentRow&&(x.currentRow.classList.remove("is-dragover"),x.currentRow=null),x.index=null,x.roleType=null},J=S=>{const z=S.currentTarget;S.relatedTarget;const U=N(z);if(!U)return;const ne=U.dataset&&U.dataset.roleType;x.roleType===ne&&(S.preventDefault(),x.currentRow&&x.currentRow!==U&&x.currentRow.classList.remove("is-dragover"),U.classList.add("is-dragover"),x.currentRow=U)},A=S=>{S.preventDefault(),x.currentRow&&(x.currentRow.classList.remove("is-dragover"),x.currentRow=null)},E=S=>{const z=S.currentTarget,U=N(z);if(!U)return;const ne=U.dataset&&U.dataset.roleType;if(x.roleType!==ne)return;S.preventDefault();const G=Number(x.index),W=Number(U.dataset.index);if(G!==W){if(G<W){const k=r.value[G];r.value.splice(G,1),r.value.splice(W,0,k)}else{const k=r.value[G];r.value.splice(G,1),r.value.splice(W+1,0,k)}y(r.value,l),h()}},F=S=>{const z=r.value[S];z.fixed="left",h()},L=S=>{const z=r.value[S];z.fixed="right",h()},Y=S=>{const z=r.value[S];z.fixed=void 0,h()},Z=new Map;let ee=null;function le(S){const z=document.createRange();return z.setStart(S,0),z.setEnd(S,S.childNodes.length),z.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:u,isShowNotFixedTitle:s,isShowLeftFixedTitle:c,isShowRightFixedTitle:d,isDraggble:g,isCheckAll:T,isIndeterminate:$,handleCheckAllChange:q,handleReset:j,checkedValue:B,handleCheckChange:_,onShow:M,onDragStart:b,onDragEnd:P,onDragOver:J,onDragLeave:A,onDrop:E,toLeftFixed:F,toRightFixed:L,toUnFixed:Y,checkboxLabelStyle:D,onMouseOverForOverflowText:(S,z,U)=>{const ne=S.currentTarget;if(ne){const G=Math.floor(ne.offsetWidth);if(Math.floor(le(ne))>G){let k=Z.get(z);if(k){if(k===ee)return;Fe.hide(k)}k=Fe.show(ne,U,{type:"text",placement:"top",closeOnClick:!1}),k&&(Z.set(z,k),ee=k)}}},onMouseLeaveForOverflowText:(S,z)=>{const U=Z.get(z);U&&(Fe.hide(U),U===ee&&(ee=null))},onMouseOverForTip:(S,z)=>{const U=S.currentTarget;U&&(ee&&Fe.hide(ee),ee=Fe.show(U,z,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:S=>{ee&&(Fe.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,n,o,l,r,a){const i=t.resolveComponent("FoxCheckbox"),u=t.resolveComponent("FoxButton"),s=t.resolveComponent("DragIcon"),c=t.resolveComponent("RefreshLeft"),d=t.resolveComponent("FoxIcon"),g=t.resolveComponent("Download"),y=t.resolveComponent("fox-checkbox"),v=t.resolveComponent("FoxCheckboxGroup"),p=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(p,t.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),default:t.withCtx(()=>[t.createElementVNode("div",cu,[t.createElementVNode("div",fu,[t.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=f=>e.isCheckAll=f),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),t.createVNode(u,{onClick:e.handleReset,link:"",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),t.createElementVNode("div",du,[t.createVNode(v,{modelValue:e.checkedValue,"onUpdate:modelValue":n[28]||(n[28]=f=>e.checkedValue=f),onChange:e.handleCheckChange},{default:t.withCtx(()=>[e.leftFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",hu,[e.isShowLeftFixedTitle?(t.openBlock(),t.createElementBlock("div",gu,t.toDisplayString(e.leftFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.leftFixedColumns,f=>(t.openBlock(),t.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:n[5]||(n[5]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:n[6]||(n[6]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:n[7]||(n[7]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:n[8]||(n[8]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:n[9]||(n[9]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.leftFixedColumns)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",value:f.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,f.prop,f.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,f.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(f.label),45,pu)]),_:2},1032,["value"]),t.createElementVNode("div",yu,[t.createVNode(d,{onClick:h=>e.toUnFixed(f.sortIndex),onMouseover:n[1]||(n[1]=h=>e.onMouseOverForTip(h,e.unFixedText)),onMouseleave:n[2]||(n[2]=h=>e.onMouseLeaveForTip(h))},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"]),t.createVNode(d,{onClick:h=>e.toRightFixed(f.sortIndex),onMouseover:n[3]||(n[3]=h=>e.onMouseOverForTip(h,e.fixedRightText)),onMouseleave:n[4]||(n[4]=h=>e.onMouseLeaveForTip(h))},{default:t.withCtx(()=>[t.createVNode(g)]),_:2},1032,["onClick"])])],40,mu))),128))])):t.createCommentVNode("",!0),e.unFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",bu,[e.isShowNotFixedTitle?(t.openBlock(),t.createElementBlock("div",vu,t.toDisplayString(e.unFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.unFixedColumns,f=>(t.openBlock(),t.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:n[14]||(n[14]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:n[15]||(n[15]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:n[16]||(n[16]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:n[17]||(n[17]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:n[18]||(n[18]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.unFixedColumns)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",value:f.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,f.prop,f.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,f.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(f.label),45,Su)]),_:2},1032,["value"]),t.createElementVNode("div",xu,[t.createVNode(d,{onClick:h=>e.toLeftFixed(f.sortIndex),onMouseover:n[10]||(n[10]=h=>e.onMouseOverForTip(h,e.fixedLeftText)),onMouseleave:n[11]||(n[11]=h=>e.onMouseLeaveForTip(h)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(g)]),_:2},1032,["onClick"]),t.createVNode(d,{onClick:h=>e.toRightFixed(f.sortIndex),onMouseover:n[12]||(n[12]=h=>e.onMouseOverForTip(h,e.fixedRightText)),onMouseleave:n[13]||(n[13]=h=>e.onMouseLeaveForTip(h))},{default:t.withCtx(()=>[t.createVNode(g)]),_:2},1032,["onClick"])])],40,wu))),128))])):t.createCommentVNode("",!0),e.rightFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",Tu,[e.isShowRightFixedTitle?(t.openBlock(),t.createElementBlock("div",$u,t.toDisplayString(e.rightFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.rightFixedColumns,f=>(t.openBlock(),t.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:n[23]||(n[23]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:n[24]||(n[24]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:n[25]||(n[25]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:n[26]||(n[26]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:n[27]||(n[27]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.rightFixedColumns)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(y,{class:"checkbox-item",label:f.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,f.prop,f.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,f.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(f.label),45,Eu)]),_:2},1032,["label"]),t.createElementVNode("div",Nu,[t.createVNode(d,{onClick:h=>e.toUnFixed(f.sortIndex),onMouseover:n[19]||(n[19]=h=>e.onMouseOverForTip(h,e.unFixedText)),onMouseleave:n[20]||(n[20]=h=>e.onMouseLeaveForTip(h))},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"]),t.createVNode(d,{onClick:h=>e.toLeftFixed(f.sortIndex),onMouseover:n[21]||(n[21]=h=>e.onMouseOverForTip(h,e.fixedLeftText)),onMouseleave:n[22]||(n[22]=h=>e.onMouseLeaveForTip(h)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(g)]),_:2},1032,["onClick"])])],40,Cu))),128))])):t.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const an=_e(uu,[["render",ku]]);let Iu=class{proxy;constructor(n){this.proxy=n}async load(n,o,l,r,a,i,u){if(Array.isArray(o)){let c=(l-1)*r,d=c+r;d>o.length&&(d=o.length);const g=o.slice(c,d);return{totalSize:o.length,page:g}}if(typeof o=="function")return await Reflect.apply(o,null,[l,r,a,i,u]);const s=Pe(this.proxy,n);return s===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(We(a)&&t.isReactive(a)&&(a=t.toRaw(a)),await Reflect.apply(s,null,[o,l,r,a,i,u]))}};function Ou(){const e=t.getCurrentInstance();return new Iu(e.proxy)}class Vu{proxy;constructor(n){this.proxy=n}async load(n){let o=null;const l=Pe(this.proxy,"tableSetting");return typeof l=="function"&&(o=await Reflect.apply(l,null,["load",n])),o}save(n,o){const l=Pe(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["save",n,o])}remove(n){const o=Pe(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",n])}}function ur(){const e=t.getCurrentInstance();return new Vu(e.proxy)}const Du=Symbol.for("TableStateKey"),cr={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"}},fr={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}},rl={popoverWidth:{type:[String,Number],required:!1,default:280},popoverPlacement:{type:[String],required:!1,default:"top-start"},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}},Fu={infiniteLoad:{type:Boolean,default:!1},loadText:{type:String,default:"加载中..."},loadMoreText:{type:String,default:"无更多数据"}};function Ru(e,n){let o=n.split("."),l=e;for(let r=0;r<o.length;r++){let a=o[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 g=a.substring(0,u);l=l[g][d]}else l=l[d];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(l=l[a])}return l}function al(e,n){return e.filter(l=>{for(let r in n){const a=n[r],i=Ru(l,r);if(a!==i)return!1}return!0})}function Au(e,n,o){return{inheritAttrs:!1,props:{...xe,...Ie,...cr,...fr,...rl,...Fu},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(l,r){const{locale:a}=Me.useFoxI18n(n),{emitEvent:i}=$e({componentName:e,validateHandler:{getValue(...Q){return B.value}}},l.prop??r.attrs.name),u=e,s=t.computed(()=>({[u]:!0})),c=t.computed(()=>({[`${u}__setting`]:!0})),d=t.computed(()=>({[`${u}__footer`]:!0,[`${u}__footer__${l.footerAlign}`]:!0})),g=t.computed(()=>({[`${u}__pagination`]:!0,[`${u}__pagination__${l.paginationAlign}`]:!0})),y=t.shallowRef({}),v=t.computed(()=>({...y.value,...l.params??{},...l.baseParams??{}})),p=t.ref(l.infiniteLoad===!0?0:l.pageIndex),f=t.ref(l.pageSize),h=ue(l.infiniteLoad);h||(t.watch(()=>l.pageIndex,Q=>{p.value=Q}),t.watch(()=>l.pageSize,Q=>{f.value=Q}),t.watch([p,f],([Q,re],[ae,fe])=>{re!==fe&&(p.value=1,Q=1),N(l.data,Q,re,v.value)}));const D=()=>Array.isArray(l.data)?!0:ue(l.autoLoad);D()&&t.watch([()=>l.data,v],async([Q,re],[ae,fe])=>{D()&&(Q!==ae&&(M=!0),!(!Array.isArray(Q)&&Ye(Q,ae)&&Ye(re,fe))&&(h?(p.value=0,q.value=!0,B.value=[],P()):p.value===1?N(Q,p.value,f.value,re):p.value=1))},{deep:!0});const T=Q=>{p.value=Q,i("page-index-change",Q)},$=Q=>{f.value=Q,i("page-size-change",Q)},q=t.ref(!0),j=t.ref(0),B=t.ref(),_=Ou();let M=!0;const x=Oe(t.computed(()=>l.appearLoad),"appearLoad",Le.Near,Q=>ue(Q)),N=async(Q,re,ae,fe,ye)=>{M=!1;try{if(ye===!0){if(!q.value)return!1;const pe=await _.load("table",Q,re,ae,fe,M,a.value);return j.value=pe.totalSize,!pe.page||!Array.isArray(pe.page)||(Reflect.apply([].push,B.value,pe.page),setTimeout(()=>{i("loaded-data")},250),(B.value?.length??0)>=j.value)||pe.page.length<ae?(q.value=!1,!1):!0}else{const pe=await _.load("table",Q,re,ae,fe,M,a.value);return j.value=pe.totalSize,B.value=pe.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(pe){console.error("[FoxUI] Load Table Data Fail",pe),j.value=0,B.value=[]}return!1};let b=!1;const P=async()=>{if(!b){if(b=!0,!q.value){b=!1;return}p.value+=1,await N(l.data,p.value,f.value,v.value,!0),b=!1}},J=(Q={},re=!1)=>new Promise(async ae=>{y.value={...t.toRaw(Q??{})},re||(p.value=l.pageIndex??1),h===!0?(p.value=0,B.value=[],q.value=!0,await P()):await N(l.data,p.value,f.value,v.value),ae()}),A=()=>{j.value=0,B.value=[],h===!0&&(p.value=0,q.value=!0)};let E=!1;const F=()=>{E||(E=!0,J())},L=t.ref(null);if(h===!0){let Q=null;const re=()=>{L.value&&(Q=new IntersectionObserver(fe=>{let ye=!1;for(let pe of fe)if(pe.intersectionRatio>0){ye=!0;break}ye&&P()}),Q.observe(L.value))},ae=()=>{!Q||!L.value||(Q.unobserve(L.value),Q=null)};t.onMounted(re),t.onBeforeUnmount(ae)}D()&&!x.value&&J();const Y=t.ref(null);t.provide(Du,{currentRow:Y});const Z=(Q,re)=>{Y.value=Q,i("current-change",Q,re)},ee=(Q,re,ae)=>{i("row-click",Q,re,ae),ue(l.rowClickSelectable)===!0&&ie?.value.toggleRowSelection(Q)},le=[],O=(Q,re)=>{if(i("expand-change",Q,re),ue(l.uniqueExpansion))if(Array.isArray(re)&&re.length==0){const ae=le.length;le.splice(0,ae)}else{le.forEach(fe=>{fe!==Q&&ie?.value.toggleRowExpansion(fe,!1)});const ae=le.length;le.splice(0,ae,Q)}},C=r.attrs.id??l.prop??r.attrs.name,R=ur(),V=t.ref([]);let S=[];const z=()=>({srcColumnPropertyList:S.map(re=>({...re})),columnPropertyList:V.value}),U=Q=>{V.value=[...Q],G()},ne=async()=>{const Q=await R.load(C);Q&&(V.value=Q)},G=()=>{R.save(C,V.value)},W=()=>{R.remove(C)};ne();const k=Q=>Q?Q.type?Q.type:Q.label?Q.prop:"":"",H=()=>typeof r.slots.default=="function"?r.slots.default():[],X=(Q,re={})=>{for(let ae in re){const fe=re[ae];typeof fe!="function"&&(Q[ae]=fe)}},I=t.computed(()=>{const Q=H(),re=new Map;if(S=[],Q.forEach(ae=>{const ye=ae;if(!ye.props)return;const pe=k(ye.props);re.set(pe,ye);const Je={label:"",prop:""};X(Je,ye.props),S.push(Je)}),V.value.length===S.length){const ae=[];for(let fe of V.value){const ye=k(fe),pe=re.get(ye);if(!pe)return Q;if(fe.visible===!1)continue;const Je=pe;Je.props.fixed=fe.fixed,ae.push(Je)}return ae}return Q}),K=t.shallowRef(new Map),te=({column:Q,rowIndex:re})=>{const ae=`${re}_${Q.property}`;return K.value.get(ae)??""},oe=Q=>typeof Q=="function"?re=>{const ae=[];let fe=te(re);return fe&&ae.push(fe),fe=Q(re),fe&&ae.push(fe),ae.length===0?"":ae.join(" ")}:te,ce=(Q,re,ae)=>{const fe=`${Q}_${re}`;ae?K.value.set(fe,ae):K.value.delete(fe),t.triggerRef(K)},ie=t.ref();return we({clearSelection:()=>ie?.value.clearSelection(),getSelectionRows:()=>ie?.value.getSelectionRows(),toggleRowSelection:(Q,re)=>{ie?.value.toggleRowSelection(Q,re)},toggleRowSelectionByProp:(Q,re)=>{if(!B.value)return;const ae=al(B.value,Q);ae.length!==0&&ae.forEach(fe=>{ie?.value.toggleRowSelection(fe,re)})},toggleAllSelection:()=>{ie?.value.toggleAllSelection()},toggleRowExpansion:(Q,re)=>{ie?.value.toggleRowExpansion(Q,re)},toggleRowExpansionByProp:(Q,re)=>{if(!B.value)return;const ae=al(B.value,Q);ae.length!==0&&ae.forEach(fe=>{ie?.value.toggleRowExpansion(fe,re)})},setCurrentRow:Q=>{ie?.value.setCurrentRow(Q)},setCurrentRowByProp:Q=>{if(!B.value)return;const re=al(B.value,Q);re.length!==0&&ie?.value.setCurrentRow(re[0])},getCurrentRow:()=>Y.value,clearSort:()=>{ie?.value.clearSort()},clearFilter:Q=>{ie?.value.clearFilter(Q)},doLayout:()=>{ie?.value.doLayout()},sort:(Q,re)=>{ie?.value.sort(Q,re)},scrollTo:(Q,re)=>{ie?.value.scrollTo(Q,re)},setScrollTop:Q=>{ie?.value.setScrollTop(Q)},setScrollLeft:Q=>{ie?.value.setScrollLeft(Q)},loadData:J,clearData:A,getData(){return B.value},getTotalSize(){return j.value},getPageIndex(){return p.value},getPageSize(){return f.value},getColumnSetting:z,setColumnSetting:U,removeColumnSetting:W,setCellClassName:ce}),()=>{const re={...He(r.attrs),onCurrentChange:Z,onRowClick:ee,onExpandChange:O,data:B.value,ref:ie,class:s.value,"cell-class-name":oe(l.cellClassName)},ae={};if(r.slots.default&&(ae.default=()=>I.value),r.slots.append&&(ae.append=r.slots.append),r.slots.empty&&(ae.empty=r.slots.empty),h===!0){const je=[];if(q.value){const Ft=t.h(Ce.Loading,{class:`${u}__infinite-icon`});je.push(Ft);const ql=t.h("span",{class:`${u}__infinite-text`},[l.loadText]);je.push(ql)}else{const Ft=t.h("span",{class:`${u}__infinite-text`},[l.loadMoreText]);je.push(Ft)}const st={ref:L,class:`${u}__infinite`},_l=t.h("div",st,je);ae.append=()=>_l}const fe=t.h(w.ElTable,re,ae),ye=[];if(ye.push(fe),!h){let je=null;if(typeof r.slots.pagination=="function")je=r.slots.pagination();else if(l.showPagination){const st={class:g.value,total:j.value,pageSize:f.value,"onUpdate:pageSize":$,pageSizes:l.pageSizes,currentPage:p.value,"onUpdate:currentPage":T,hideOnSinglePage:l.hideOnSinglePage,layout:l.paginationLayout,samll:l.paginationSmall,background:l.paginationBackground};je=t.h(w.ElPagination,st)}if(l.showSetting){const st=[];je&&st.push(je);const _l=t.h(w.ElIcon,{class:c.value},{default:()=>t.h(Ce.Setting)}),Ft=so(l,rl),ql=t.h(an,{...Ft,tableRef:{getColumnSetting:z,setColumnSetting:U,removeColumnSetting:W}},{default:()=>_l});st.push(ql);const Ih=t.h("div",{class:d.value},st);ye.push(Ih)}else je&&ye.push(je)}const pe={default:()=>ye},yt={...Ne(l,cr,fr,rl)};return l.prop&&(yt.prop=`${l.prop}_item`),yt.contentClass=`${u}__wrap`,yt.errorMarkClass="is-table-error",x.value&&D()&&(yt["appear-listen"]=!0,yt.onAppear=F),t.h(o,yt,pe)}}}}const{componentName:Mu,create:Lu,scope:Bu}=se("table-item"),il=Lu(Au(Mu,Bu,Te));function ht(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ot(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function _u(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let qu=class{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const r=Pe(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(We(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await r(o,l))}};function Pu(){const e=t.getCurrentInstance();return new qu(e.proxy)}function dr(e,n,o){if(n===o)return!0;if(n===null||o===null)return!1;const l=ht(e,n),r=ht(e,o);if(l!==r)return!1;const a=Ot(e,n),i=Ot(e,o);return a===i}function ju(e,n,o,l){if(l.length==0||n===""||n===null||n===void 0)return null;let r=null;for(let a of l){let i=!1;if(o==="text")i=ht(e,a)===n;else if(o==="item")i=dr(e,a,n);else{let u=Ot(e,a);u==null&&(u=ht(e,a)),i=u===n}if(i){r=a;break}}return r}function zu(e){return{text:e,value:e}}function Hu(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}const hr={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,n,o){return{inheritAttrs:!0,props:{...xe,...Ie,...hr},emits:["change","update:modelValue","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),d=t.ref(null),g=t.ref(null),y=(x,N,b,P=!0)=>{const J=ju(l,x,N,b);if(J===null){if(g.value===null)return;g.value=null,d.value=null,P&&(c("update:modelValue",null),c("change",null));return}if(!dr(l,J,g.value)){d.value=x;const E=t.toRaw(J);g.value=E;let F=null;l.valueType==="text"?F=ht(l,E):l.valueType==="item"?F=E:F=Ot(l,E),P&&(c("update:modelValue",F),c("change",F))}},v=t.ref([]),p=Oe(t.computed(()=>l.appearLoad),"appearLoad",Le.Near,x=>ue(x)),f=Pu(),h=async(x,N)=>{if(x){const b=await f.load("radio",x,N);if(b.length>0)if(typeof b[0]=="string"){let A=b.map(E=>zu(E));v.value=A}else v.value=b}};t.watch([()=>l.source,()=>l.params],async([x,N])=>{h(x,N)},{immediate:!p.value});let D=!1;const T=()=>{D||(D=!0,h(l.source,l.params))};t.watch([()=>v.value,()=>l.modelValue],([x,N])=>{y(N,l.valueType,x,!1),c("setValue",N)});const $=e,q=t.computed(()=>({[$]:!0,[`is-${l.direction}`]:!0})),j=x=>{y(x,"value",v.value,!0)};let B=ge(l,"hintText"),_=ge(l,"hintVisible");const M=(x,N)=>{const b=[];return x.forEach((P,J)=>{const A=Ot(l,P),E=ht(l,P);let F=_u(l,P);i.value===!0&&(F=i.value),s.value===!0&&(F=s.value);const L=Hu(l,P,J)??{},Y=`${A}_${J}`,Z={...L,key:Y,value:A,size:l.size,border:ue(l.border)};F&&(Z.disabled=F),l.itemType==="button"?b.push(t.h(w.ElRadioButton,Z,{default:()=>[E]})):typeof N=="function"?b.push(t.h(w.ElRadio,Z,{default:()=>N(P)})):b.push(t.h(w.ElRadio,Z,{default:()=>[E]}))}),b};return we({setDisabled:x=>{a.value=x},setReadonly:x=>{u.value=x}}),()=>{const N={...He(r.attrs),class:q.value,disabled:i.value||s.value,modelValue:d.value,"text-color":l.textColor,fill:l.fill,onChange:j},b=[],P={};r.slots.options?P.default=r.slots.options:P.default=()=>M(v.value,r.slots.text);const J=t.h(w.ElRadioGroup,N,P);b.push(J);const A={default:()=>b};r.slots.default&&(A.label=r.slots.default),r.slots.fixedTip&&(A.fixedTip=r.slots.fixedTip);const F={...Ne(l,hr),hintText:B.value,hintVisible:_.value};return l.prop&&(F.prop=`${l.prop}_item`),p.value&&(F["appear-listen"]=!0,F.onAppear=T),t.h(o,F,A)}}}}const{componentName:Wu,create:Yu,scope:Gu}=se("radio-item"),sl=Yu(Ku(Wu,Gu,Te));function gt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function mt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Uu(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Xu=class{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const r=Pe(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(We(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await r(o,l))}};function Zu(){const e=t.getCurrentInstance();return new Xu(e.proxy)}function gr(e,n,o){if(n===o)return!0;if(n===null||o===null)return!1;const l=gt(e,n),r=gt(e,o);if(l!==r)return!1;const a=mt(e,n),i=mt(e,o);return a===i}function Ju(e,n,o,l){if(l.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const r=[];return n.forEach(a=>{for(let i of l){let u=!1;if(o==="text")u=gt(e,i)===a;else if(o==="item")u=gr(e,i,a);else{let s=mt(e,i);s==null&&(s=gt(e,i)),u=s===a}if(u){r.push(i);break}}}),r}function Qu(e){return{text:e,value:e}}function ec(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}const mr={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,n,o){return{inheritAttrs:!0,props:{...xe,...Ie,...mr},emits:["change","update:modelValue","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),d=t.ref([]),g=t.ref([]),y=(x,N,b,P=!0)=>{const J=Ju(l,x,N,b);if(J===null){if(g.value===null||g.value.length===0)return;d.value=[],g.value=[],P&&(c("update:modelValue",[]),c("change",[]));return}let A=!0;if(J.length!==g.value.length)A=!1;else for(let E=0;E<J.length;E++){const F=J[E],L=g.value[E];if(!gr(l,F,L)){A=!1;break}}if(!A){g.value=J;let E=[],F=[];J.forEach(Y=>{E.push(mt(l,Y)),l.valueType==="text"?F.push(gt(l,Y)):l.valueType==="item"?F.push(Y):F.push(mt(l,Y))}),d.value=E;const L=t.toRaw(F);P&&(c("update:modelValue",L),c("change",L))}},v=t.ref([]),p=Oe(t.computed(()=>l.appearLoad),"appearLoad",Le.Near,x=>ue(x)),f=Zu(),h=async(x,N)=>{if(x){const b=await f.load("checkbox",x,N);if(b.length>0)if(typeof b[0]=="string"){let A=b.map(E=>Qu(E));v.value=A}else v.value=b}};t.watch([()=>l.source,()=>l.params],async([x,N])=>{h(x,N)},{immediate:!p.value});let D=!1;const T=()=>{D||(D=!0,h(l.source,l.params))};t.watch([()=>v.value,()=>l.modelValue],([x,N])=>{y(N,l.valueType,x,!1),c("setValue",N)});const $=e,q=t.computed(()=>({[$]:!0,[`is-${l.direction}`]:!0})),j=x=>{y(x,"value",v.value,!0)};let B=ge(l,"hintText"),_=ge(l,"hintVisible");const M=(x,N)=>{const b=[];return x.forEach((P,J)=>{const A=mt(l,P),E=gt(l,P);let F=Uu(l,P);i.value===!0&&(F=i.value),s.value===!0&&(F=s.value);const L=ec(l,P,J)??{},Y=`${A}_${J}`,Z={...L,key:Y,class:l.itemClass,value:A,size:l.size,border:ue(l.border)};F&&(Z.disabled=F),l.itemType==="button"?b.push(t.h(w.ElCheckboxButton,Z,{default:()=>[E]})):typeof N=="function"?b.push(t.h(w.ElCheckbox,Z,{default:()=>N(P)})):b.push(t.h(w.ElCheckbox,Z,{default:()=>[E]}))}),b};return we({setDisabled:x=>{a.value=x},setReadonly:x=>{u.value=x}}),()=>{const N={...He(r.attrs),class:q.value,disabled:i.value||s.value,modelValue:d.value,"text-color":l.textColor,fill:l.fill,max:Se(l.max),min:Se(l.min),onChange:j},b=[],P={};r.slots.options?P.default=r.slots.options:P.default=()=>M(v.value,r.slots.text);const J=t.h(w.ElCheckboxGroup,N,P);b.push(J);const A={default:()=>b};r.slots.default&&(A.label=r.slots.default),r.slots.fixedTip&&(A.fixedTip=r.slots.fixedTip);const F={...Ne(l,mr),hintText:B.value,hintVisible:_.value};return l.prop&&(F.prop=`${l.prop}_item`),p.value&&(F["appear-listen"]=!0,F.onAppear=T),t.h(o,F,A)}}}}const{componentName:nc,create:lc,scope:oc}=se("checkbox-item"),ul=lc(tc(nc,oc,Te)),pr={modelValue:{type:[Number,String],required:!1}};function rc(e,n,o){return{props:{...xe,...Ie,...pr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),d=ge(l,"modelValue",D=>Se(D),c),g=e,y=t.computed(()=>({[g]:!0})),v=D=>{c("update:modelValue",D),c("change",D)};let p=ge(l,"hintText"),f=t.ref(!1);const h=t.ref();return we({setDisabled:D=>{a.value=D},setReadonly:D=>{u.value=D}}),()=>{const T={...He(r.attrs),ref:h,class:y.value,readonly:s.value||i.value,modelValue:d.value,onChange:v},$={},q=[],j=t.h(w.ElRate,T,$);q.push(j);const B={default:()=>q};r.slots.default&&(B.label=r.slots.default),r.slots.fixedTip&&(B.fixedTip=r.slots.fixedTip);const M={...Ne(l,pr),hintText:p.value,hintVisible:f.value};return l.prop&&(M.prop=`${l.prop}_item`),t.h(o,M,B)}}}}const{componentName:ac,create:ic,scope:sc}=se("rate-item"),cl=ic(rc(ac,sc,Te)),yr={modelValue:{type:[Boolean,String,Number],required:!1}};function uc(e,n,o){return{props:{...xe,...Ie,...yr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),d=ge(l,"modelValue",null,c),g=e,y=t.computed(()=>({[g]:!0})),v=D=>{c("update:modelValue",D),c("change",D)};let p=ge(l,"hintText"),f=ge(l,"hintVisible");const h=t.ref();return we({setDisabled:D=>{a.value=D},setReadonly:D=>{u.value=D}}),()=>{const T={...He(r.attrs),ref:h,class:y.value,readonly:s.value,disabled:i.value,modelValue:d.value,onChange:v},$={},q=[],j=t.h(w.ElSwitch,T,$);q.push(j);const B={default:()=>q};r.slots.default&&(B.label=r.slots.default),r.slots.fixedTip&&(B.fixedTip=r.slots.fixedTip);const M={...Ne(l,yr),hintText:p.value,hintVisible:f.value};return l.prop&&(M.prop=`${l.prop}_item`),t.h(o,M,B)}}}}const{componentName:cc,create:fc,scope:dc}=se("switch-item"),fl=fc(uc(cc,dc,Te)),br={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function hc(e,n,o){return{props:{...xe,...Ie,...br},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),c=t.ref(!1),{emitEvent:d}=$e({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),g=ge(l,"modelValue",null,d),y=e,v=t.computed(()=>({[y]:!0})),p=_=>{d("update:modelValue",_),d("change",_)};let f=ge(l,"hintText"),h=t.ref(!1);const D=_=>{let x=_.target.value;c.value=!0,he(f.value)||(h.value=!0),d("focus",x,_)},T=_=>{setTimeout(()=>{h.value&&(h.value=!1),c.value=!1},0);let x=_.target.value;l.maxLength&&x.length>Number(l.maxLength)&&(x=x.slice(0,Number(l.maxLength))),q.value||d("blur",x,_)},$=()=>{d("clear","")},q=t.ref(!1),j=_=>{q.value=_,d("visible-change",_),_||d("selected")},B=t.ref();return we({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},setDisabled:_=>{a.value=_},setReadonly:_=>{u.value=_}}),()=>{const M={...He(r.attrs),ref:B,class:v.value,disabled:i.value||s.value,modelValue:g.value,"onUpdate:modelValue":p,onClear:$,onFocus:D,onBlur:T,onVisibleChange:j},x={};r.slots.option&&(x.default=r.slots.option);const N=[],b=t.h(w.ElTreeSelect,M,x);N.push(b);const P={default:()=>N};r.slots.default&&(P.label=r.slots.default),r.slots.fixedTip&&(P.fixedTip=r.slots.fixedTip);const A={...Ne(l,br),hintText:f.value,hintVisible:h.value};return l.prop&&(A.prop=`${l.prop}_item`),t.h(o,A,P)}}}}const{componentName:gc,create:mc,scope:pc}=se("tree-select-item"),dl=mc(hc(gc,pc,Te)),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"};function vc(e,n){return t.openBlock(),t.createElementBlock("svg",bc,n[0]||(n[0]=[t.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 wc=_e(yc,[["render",vc]]),{componentName:Hh,create:Sc,scope:Kh}=se("group-setting"),xc={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:"到底部"}},Tc=Sc({components:{FoxPopover:w.ElPopover,FoxCheckbox:w.ElCheckbox,FoxCheckboxGroup:w.ElCheckboxGroup,FoxButton:w.ElButton,FoxIcon:w.ElIcon,DragIcon:wc,Download:Ce.Download,RefreshLeft:Ce.RefreshLeft},props:{...xc},emits:["change"],setup(e,{emit:n,attrs:o,expose:l}){let r=null;const a=t.ref([]),i=ur(),u=O=>O.length>1,s=()=>{const O=[],C=[...a.value];a.value=C.map((V,S)=>(V.visible!==!1&&O.push(V.prop),{...V,sortIndex:S})),a.value.length===O.length?f.value=!0:O.length>0&&(h.value=!0),$.value=O},c=O=>{let C=null;if(typeof O=="string")C=document.querySelectorAll(`.fox-group[prop="${O}"] > div > .fox-item[prop]`);else if(O&&typeof O=="object"){const V=O.$el??O;typeof V.querySelectorAll=="function"&&(C=V.querySelectorAll(".fox-item[prop]"))}if(!C)return[];const R=[];return C.forEach(V=>{const S=V.querySelector(".label--string");let z="";S&&(z=S.textContent??"");const U=V.getAttribute("prop")??"",G=window.getComputedStyle(V,null).getPropertyValue("display");R.push({label:z,prop:U,sortIndex:0,visible:G!=="none"})}),R},d=()=>{if(!r){const O=c(e.groupRef??e.groupProp);if(O.length===0)return!1;r=O}return!0},g=async(O=!1)=>{const C=await i.load(e.groupProp),R=V=>{if(!V||!r)return;const S=r.map(z=>({...z}));Array.isArray(C)&&C.forEach(z=>{S.some(U=>{if(U.prop===z.prop){const ne=U.label;return Object.assign(U,z),U.label=ne,!0}return!1})}),a.value=S.sort((z,U)=>z.sortIndex-U.sortIndex),s(),O&&v(!1)};r?R(!0):Ht(d,e.initDelay,5,50,!1,R)},y=()=>{const O=r??[];a.value=O.map(C=>({...C})),s(),v()},v=(O=!0)=>{O&&i.save(e.groupProp,a.value);const C=a.value.map(R=>({...R}));n("change",C)},p=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),f=t.ref(!1),h=t.ref(!1),D=O=>{const C=[];a.value.forEach(V=>{O&&C.push(V.prop),V.visible=O}),f.value=!1,h.value=!1,a.value.length===C.length?f.value=!0:C.length>0&&(h.value=!0),$.value=C,v()},T=()=>{y()},$=t.ref([]),q=O=>{a.value.forEach(R=>{const V=O.indexOf(R.prop)!==-1;R.visible=V}),f.value=!1,h.value=!1;const C=a.value.length;O.length===C?f.value=!0:O.length>0&&(h.value=!0),v()},j=()=>{g()};t.onMounted(()=>{g(!0)});const B={currentRow:null,index:null},_=O=>O?O.dataset&&O.dataset.role==="row"?O:O.tagName.toLowerCase()!=="body"?(O=O.parentElement,_(O)):null:null,M=O=>{const C=O.currentTarget;C&&C.dataset&&(B.index=C.dataset.index)},x=O=>{B.currentRow&&(B.currentRow.classList.remove("is-dragover"),B.currentRow=null),B.index=null},N=O=>{const C=O.currentTarget;O.relatedTarget;const R=_(C);R&&(O.preventDefault(),B.currentRow&&B.currentRow!==R&&B.currentRow.classList.remove("is-dragover"),R.classList.add("is-dragover"),B.currentRow=R)},b=O=>{O.preventDefault(),B.currentRow&&(B.currentRow.classList.remove("is-dragover"),B.currentRow=null)},P=O=>{const C=O.currentTarget,R=_(C);if(!R)return;O.preventDefault();const V=Number(B.index),S=Number(R.dataset.index);if(V!==S){if(V<S){const z=a.value[V];a.value.splice(V,1),a.value.splice(S,0,z)}else{const z=a.value[V];a.value.splice(V,1),a.value.splice(S+1,0,z)}s(),v()}},J=O=>{const C=a.value[O];a.value.splice(O,1),a.value.splice(0,0,C),s(),v()},A=O=>{const C=a.value[O];a.value.splice(O,1),a.value.push(C),s(),v()};l({refresh:()=>{r=null,g(!1)}});const E=new Map;let F=null;function L(O){const C=document.createRange();return C.setStart(O,0),C.setEnd(O,O.childNodes.length),C.getBoundingClientRect().width}return{attrs:o,itemPropertyList:a,isDraggble:u,isCheckAll:f,isIndeterminate:h,handleCheckAllChange:D,handleReset:T,checkedValue:$,handleCheckChange:q,onShow:j,onDragStart:M,onDragEnd:x,onDragOver:N,onDragLeave:b,onDrop:P,checkboxLabelStyle:p,toTop:J,toBottom:A,onMouseOverForOverflowText:(O,C,R)=>{const V=O.currentTarget;if(V){const S=Math.floor(V.offsetWidth);if(Math.floor(L(V))>S){let U=E.get(C);if(U){if(U===F)return;Fe.hide(U)}U=Fe.show(V,R,{type:"text",placement:"top",closeOnClick:!1}),E.set(C,U),F=U}}},onMouseLeaveForOverflowText:(O,C)=>{const R=E.get(C);R&&(Fe.hide(R),R===F&&(F=null))},onMouseOverForTip:(O,C)=>{const R=O.currentTarget;R&&(F&&Fe.hide(F),F=Fe.show(R,C,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:O=>{F&&(Fe.hide(F),F=null)}}}}),$c={class:"fox-group-setting"},Cc={class:"fox-group-setting__header"},Ec={class:"fox-group-setting__body"},Nc={class:"fox-group-setting__body-list","data-role":"container"},kc=["data-index","draggable"],Ic=["onMouseover","onMouseleave"],Oc={class:"tools-item"};function Vc(e,n,o,l,r,a){const i=t.resolveComponent("FoxCheckbox"),u=t.resolveComponent("FoxButton"),s=t.resolveComponent("DragIcon"),c=t.resolveComponent("Download"),d=t.resolveComponent("FoxIcon"),g=t.resolveComponent("FoxCheckboxGroup"),y=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(y,t.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),default:t.withCtx(()=>[t.createElementVNode("div",$c,[t.createElementVNode("div",Cc,[t.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=v=>e.isCheckAll=v),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),t.createVNode(u,{onClick:e.handleReset,link:"",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),t.createElementVNode("div",Ec,[t.createVNode(g,{modelValue:e.checkedValue,"onUpdate:modelValue":n[10]||(n[10]=v=>e.checkedValue=v),onChange:e.handleCheckChange},{default:t.withCtx(()=>[t.createElementVNode("div",Nc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.itemPropertyList,v=>(t.openBlock(),t.createElementBlock("div",{key:v.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":v.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:n[5]||(n[5]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:n[6]||(n[6]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:n[7]||(n[7]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:n[8]||(n[8]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:n[9]||(n[9]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.itemPropertyList)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:v.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:p=>e.onMouseOverForOverflowText(p,v.prop,v.label),onMouseleave:p=>e.onMouseLeaveForOverflowText(p,v.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(v.label),45,Ic)]),_:2},1032,["label"]),t.createElementVNode("div",Oc,[t.createVNode(d,{onClick:p=>e.toTop(v.sortIndex),onMouseover:n[1]||(n[1]=p=>e.onMouseOverForTip(p,e.toTopText)),onMouseleave:n[2]||(n[2]=p=>e.onMouseLeaveForTip(p)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"]),t.createVNode(d,{onClick:p=>e.toBottom(v.sortIndex),onMouseover:n[3]||(n[3]=p=>e.onMouseOverForTip(p,e.toBottomText)),onMouseleave:n[4]||(n[4]=p=>e.onMouseLeaveForTip(p))},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"])])],40,kc))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const hl=_e(Tc,[["render",Vc]]),Dc=["aria-labelledby"],Fc=t.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),Rc=[Fc],Ac=t.defineComponent({__name:"Uploader",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,l=n,r=s=>{l("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Rc,14,Dc))}}),Mc=["aria-labelledby"],Lc=t.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),Bc=[Lc],_c=t.defineComponent({__name:"MoreH",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,l=n,r=s=>{l("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Bc,14,Mc))}}),qc=["aria-labelledby"],Pc=t.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),jc=[Pc],gl=t.defineComponent({__name:"Loading",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,l=n,r=s=>{l("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},jc,14,qc))}}),zc=["aria-labelledby"],Hc=t.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),Kc=[Hc],Wc=t.defineComponent({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,l=n,r=s=>{l("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},Kc,14,zc))}}),Yc=["aria-labelledby"],Gc=t.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),Uc=[Gc],Xc=t.defineComponent({__name:"Checklist",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,l=n,r=s=>{l("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Uc,14,Yc))}}),Zc=["aria-labelledby"],Jc=t.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),Qc=[Jc],ef=t.defineComponent({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,l=n,r=s=>{l("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Qc,14,Zc))}}),tf={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}},vr=(e,n)=>n[e.textKey],Vt=(e,n)=>n[e.valueKey],nf=(e,n)=>n[e.visibleKey],wr=(e,n)=>n[e.disabledKey],lf=(e,n)=>{const o=n[e.doitKey];return ue(o)},of=(e,n)=>{const o=n[e.numKey];return o==null?null:Se(n[o])},Sr=(e,n,o)=>{const l=e.itemOptions;return typeof l=="function"?l(n,o):l||null};function rf(e,n,o,l=!1){return{props:{...tf},emits:["update:modelValue","change"],setup(r,{slots:a,emit:i}){const u=t.computed(()=>{const O={};return O[`${e}`]=!0,O}),s=t.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}),c=t.computed(()=>({})),d=t.computed(()=>{if(!r.gutter)return 0;const O=me(r.gutter);return O<=0?0:O}),g=t.ref(r.modelValue);t.watch(()=>r.modelValue,O=>{g.value!==O&&(g.value=O,L(!1))});const y=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),v=t.computed(()=>{const O={};return f.value||(O.display="none"),O}),p=t.ref(),f=t.ref(!1),h=()=>{const O=!f.value;D(O)},D=O=>{const C=O;C?(f.value=C,setTimeout(()=>{y.value["fox-tabs-bar__popup--show"]=!0,y.value["fox-tabs-bar__popup--hide"]=!1},0)):(y.value["fox-tabs-bar__popup--show"]=!1,y.value["fox-tabs-bar__popup--hide"]=!0,p.value?p.value.addEventListener("transitionend",()=>{f.value=!1},{once:!0}):setTimeout(()=>{f.value=!1},0))},T=t.ref(),$=t.ref([]),q=(O,C)=>{$.value[C]=O},j=O=>C=>{q(C,O)},B=(O,C)=>{const R=T.value,V=$.value;if(!R||!V||!V[O])return;const S=V[O];let z=0;r.direction==="vertical"?z=S.offsetTop-(R.offsetHeight-S.offsetHeight)/2:z=S.offsetLeft-(R.offsetWidth-S.offsetWidth)/2,_(R,z,C?0:.3,r.direction)},_=(O,C,R,V)=>{let S=0;const z=V==="horizontal"?O.scrollLeft:O.scrollTop,U=R===0?1:Math.round(R*1e3/16);function ne(){V==="horizontal"?O.scrollLeft+=(C-z)/U:O.scrollTop+=(C-z)/U,++S<U&&$n(ne)}ne()},M=(O,C)=>{const R=Vt(r,O),V={};return V[`${e}__titles-item`]=!0,V.disabled=wr(r,O),V.active=R===g.value,r.shape&&(V[`${r.shape}`]=!0),r.ellipsis&&(V.ellipsis=!0),C&&(C.class&&(V[`${C.class}`]=!0),C.disabled===!0&&(V.disabled=C.disabled)),V},x=(O,C)=>{const R={};if(d.value>0){const V=Math.abs(d.value/2);r.direction==="vertical"?(R["margin-top"]=`${V}px`,R["margin-bottom"]=`${V}px`):(R["margin-left"]=`${V}px`,R["margin-right"]=`${V}px`)}return C&&C.style&&Object.assign(R,C.style),R},N=(O,C)=>`${Vt(r,O)??C}`,b=(O,C)=>{const R=Vt(r,O),V={};V[`${e}__popup-item`]=!0,V.disabled=wr(r,O),V.active=R===g.value,r.shape&&(V[`${r.shape}`]=!0);const S=Sr(r,O,C);return S&&S.disabled===!0&&(V.disabled=S.disabled),V},P=t.computed(()=>(r.data??[]).filter(C=>nf(r,C)!==!1)),J=(O,C)=>{const R=Vt(r,O);if(g.value==R)return;const V=()=>{g.value=R,r.scroll&&B(C,!1),i("update:modelValue",R),i("change",O,C)};if(typeof r.beforeChange=="function"){const S=r.beforeChange(O,C);Zl(S)?S.then(z=>{z!==!1&&V()}).catch(()=>{V()}):S!==!1&&V()}else V()},A=(O,C)=>function(){J(O,C)},E=(O,C)=>{J(O,C),D(!1)},F=(O,C)=>function(){E(O,C)},L=O=>{if(!Array.isArray(r.data)||!r.scroll)return;const C=r.data.findIndex(R=>Vt(r,R)===g.value);C!==-1&&B(C,O)};t.watch(()=>r.data,()=>{setTimeout(L,0)}),t.onMounted(()=>{L(!0)});const Y=(O,C)=>{if(a.item)return a.item({item:O,index:C});const R=Sr(r,O,C),V=[];if(a.text){const ne=a.text({item:O,index:C});V.push(ne)}else{const ne=[];if(R?.doit===!0||lf(r,O)){const H={class:[`${e}__titles-item-tip`,"doit"]},X=t.h("view",H);ne.push(X)}const G=R?.num??of(r,O);if(G){let H="";const X=Se(G);X>=100?H="99+":H=`${X}`;const I={class:[`${e}__titles-item-tip`,"num"]},K=t.h("view",I,[H]);ne.push(K)}const W={class:`${e}__titles-item-text`};ne.push(vr(r,O));const k=t.h("view",W,ne);V.push(k)}const S={class:`${e}__titles-item-line`},z=t.h("view",S);V.push(z);const U={ref:j(C),class:M(O,R),style:x(O,R),key:N(O,C),onClick:A(O,C)};return t.h("view",U,V)},Z=()=>{const O=a.default?a.default():[];if(O.length===0)for(let R=0;R<P.value.length;R++){const V=P.value[R],S=Y(V,R);O.push(S)}const C={ref:T,class:s.value,style:c.value};return t.h("view",C,O)},ee=()=>{let O=null;a.navigation?O=a.navigation():O=t.h(o);const C={class:`${e}__navigation`,onClick:h};return t.h("view",C,[O])},le=()=>{const O=[];for(let R=0;R<P.value.length;R++){const V=P.value[R];let S=null;a.popupItem?S=a.popupItem({item:V,index:R}):S=vr(r,V);const z={class:b(V,R),key:N(V,R),onClick:F(V,R)},U=t.h("view",z,[S]);O.push(U)}const C={class:y.value,style:v.value};return t.h("view",C,O)};return()=>{const O=[],C=Z();if(O.push(C),r.showQuickNavigation){const V=ee();O.push(V);const S=le();O.push(S)}const R={class:u.value};return t.h("view",R,O)}}}}const{create:af,componentName:sf,scope:uf}=se("tabs-bar"),ml=af(rf(sf,uf,_c,!1)),xr=Symbol("TabsStatesKey"),cf={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function ff(e,n,o=!1){return{props:{...cf},emits:["update:modelValue","change"],setup(l,{emit:r,slots:a}){const i=t.shallowRef([]),u={current:t.ref(l.modelValue??""),direction:t.ref(l.direction),tabWidth:t.ref(-1),tabHeight:t.ref(-1),add:f=>{const h={name:f};u.current.value===f&&(h.loaded=!0),i.value.push(h),t.triggerRef(i)},remove:f=>{const h=i.value.findIndex(D=>D.name===f);h!==-1&&i.value.splice(h,1)},isLoaded:f=>{if(!l.lazy)return!0;const h=i.value.findIndex(D=>D.name===f);return h!==-1?u.current.value?i.value[h].loaded??!1:h===0:!1}};t.provide(xr,u);const s=f=>{const h=i.value.findIndex(D=>D.name===f);h!==-1&&(i.value[h].loaded=!0,t.triggerRef(i))};t.watch([()=>l.modelValue,()=>l.direction],([f,h])=>{u.current.value!==f&&(u.current.value=f??"",s(f??"")),u.direction.value!==h&&(u.direction.value=h)});const c=t.ref(null),d=t.ref(null),g=t.computed(()=>({[e]:!0,[`${l.direction}`]:!0}));let y=!0;const v=t.computed(()=>{const f={},h=i.value.length;if(h<=0)return f;const D=i.value.findIndex(T=>T.name===u.current.value);return u.direction.value==="vertical"?u.tabHeight.value>0&&(f.height=`${h*u.tabHeight.value}px`,D!==-1&&(f.transform=`translate(0, -${D*u.tabHeight.value}px)`)):u.tabWidth.value>0&&(f.width=`${h*u.tabWidth.value}px`,D!==-1&&(f.transform=`translate(-${D*u.tabWidth.value}px, 0)`)),y&&(y=!1,f.transition="transform 0s ease"),f});let p=null;return t.onMounted(()=>{if(!c.value)return;const f=()=>{const h=Zt(c.value);u.tabWidth.value=h.width,u.tabHeight.value=h.height};window.ResizeObserver&&(p=new window.ResizeObserver(f),p.observe(c.value)),f()}),t.onBeforeUnmount(()=>{p&&(p.disconnect(),p=null)}),()=>{const f={class:`${e}__panes`,style:v.value,ref:d},h=t.h("view",f,[a?.default?.()]),D={class:g.value,ref:c};return t.h("view",D,[h])}}}}const{create:df,componentName:hf,scope:gf}=se("tabs-container"),pl=df(ff(hf,gf,!1)),mf={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function pf(e,n,o){return{props:{...mf},setup(l,{emit:r,slots:a}){const i=t.inject(xr);t.onMounted(()=>{i.add(l.paneKey)}),t.onBeforeUnmount(()=>{i.remove(l.paneKey)});const u=t.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=t.computed(()=>l.loaded!=null?ue(l.loaded):i.isLoaded(l.paneKey));return()=>{let c=[];if(s.value)c=a?.default?.()??[];else if(a.empty)c=a.empty();else{const g={class:`${e}__empty-icon`},y=l.emptyIcon??o,v=t.h(y,g),p={class:`${e}__empty-text`},f=l.emptyText??"Loading",h=t.h("view",p,[f]),D={class:`${e}__empty`},T=t.h("view",D,[v,h]);c.push(T)}const d={class:`${e}`,style:u.value};return t.h("view",d,c)}}}}const{create:yf,componentName:bf,scope:vf}=se("tabs-pane"),yl=yf(pf(bf,vf,gl)),wf={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 Sf(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Tr(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function $r(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function xf(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function bl(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function Cr(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function Er(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function vl(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}class Tf{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await Reflect.apply(o,null,[l]);const r=Pe(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(We(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await Reflect.apply(r,null,[o,l]))}}function $f(){const e=t.getCurrentInstance();return new Tf(e.proxy)}function Cf(e,n,o,l){return{props:{...wf},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:i}){const u=e,s=$f(),c=t.ref([]),d=t.computed(()=>c.value.filter(C=>xf(r,C)!==!1)),g=t.ref(-1),y=()=>{const C=r.modelValue,R=d.value.findIndex(V=>Tr(r,V)===C);g.value!==R&&(g.value=R,r.scroll&&le(R))};t.watch([()=>r.modelValue,d],()=>{y()});const v=C=>g.value===C,p=C=>{if(C<0&&C>=d.value.length)return!1;const R=d.value[C],S=(vl(r,R,C)??{}).status??bl(r,R);return v(C)||S},f=t.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}),h=t.computed(()=>({})),D=(C,R,V,S,z)=>{const U={[`${u}__step`]:!0};return z&&(U[`${z}`]=!0),U[`${T.value}`]=!0,S&&(U["is-doit"]=!0),C===g.value?U["is-active"]=!0:R==="done"?U["is-done"]=!0:R==="error"?U["is-error"]=!0:R==="half"?U["is-half"]=!0:V?U["is-disabled"]=!0:U["is-normal"]=!0,U},T=t.computed(()=>{if(r.mode==="simple")return"start";let C=r.align;return C||(r.direction==="vertical"?C="start":C="center"),C}),$=(C,R={})=>{const V={...R};return T.value==="start"&&C===d.value.length-1?V.flex="0 0 auto":r.step?r.direction==="vertical"?V.height=r.step:V.width=r.step:V.flex="1 1 100%",V},q=(C,R)=>{let V={};if(R<d.value.length-1){const S=R+1;p(R)&&p(S)?r.direction==="vertical"?V.height="100%":V.width="100%":V.opacity="0"}return V},j=C=>d.value.length-1===C,B=(C,R)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&R>g.value||g.value===R)return;const V=g.value,S=R;g.value=R,r.scroll&&le(R);const z=Tr(r,C);i("update:modelValue",z);const U={fromIndex:V,currentIndex:S,item:C,items:d.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",z,U)},_=t.ref(!0),M=async(C,R)=>{try{const V=await s.load("stesbar",C,R);Array.isArray(V)&&(c.value=V),_.value=!1}catch(V){console.error("[FoxUI] Load StepsBar Data Fail",V),c.value=[]}setTimeout(()=>{i("loaded-data")},250)};t.watch([()=>r.data,()=>r.params],async([C,R])=>{C&&M(C,R)},{immediate:!0});const x=(C,R,V,S,z)=>{let U=null;if(a.icon)U=a.icon({item:C,index:R,status:S});else if(S==="done"){const G={};r.iconSize&&(G.width=r.iconSize,G.height=r.iconSize);const W=r.icon??o;U=t.h(W,G)}else{const G=V??`${R+1}`;U=t.h("span",{},[G])}const ne={class:"fox-steps-bar__icon",onClick:()=>{z||B(C,R)}};return t.h("view",ne,[U])},N=(C,R,V)=>{const S=t.h("i",{class:"fox-steps-bar__line-inner",style:q(C,R)});return t.h("view",{class:"fox-steps-bar__line"},[S])},b=()=>{let C=null;if(a.markIcon)C=a.markIcon();else{const V={};r.iconSize&&(V.width=r.markIconSize,V.height=r.markIconSize);const S=r.markIcon??l;C=t.h(S,V)}return t.h("view",{class:"fox-steps-bar__mark"},[C])},P=(C,R,V,S,z)=>{const U=[];if(!j(R)){const W=N(C,R);U.push(W)}const ne=x(C,R,V,S,z);U.push(ne);const G={class:"fox-steps-bar__head"};return t.h("view",G,U)},J=(C,R,V,S)=>{let z=null;a.main?z=a.main({item:C,index:R,status:V}):z=Sf(r,C);const U={class:"fox-steps-bar__main",onClick:()=>{S||B(C,R)}};return t.h("view",U,[z])},A=(C,R,V)=>{let S=null;if(a.sub){S=a.sub({item:C,index:R,status:V});const z={class:"fox-steps-bar__sub"};return t.h("view",z,[S])}return null},E=(C,R)=>{const V=vl(r,C,R)??{},S=V.status??bl(r,C);let z=$r(r,C);V.disabled===!0&&(z=!0),r.disabled===!0&&(z=!0);const U=V.label??Er(r,C),ne=[],G=x(C,R,U,S,z);G&&ne.push(G);const W=J(C,R,S,z);if(W&&ne.push(W),!j(R)){const te=N(C,R);te&&ne.push(te)}const k=t.h("view",{class:"fox-steps-bar__head"},ne),H=V.class,X=V.style??{};let I=Cr(r,C);V.doit===!0&&(I=!0);const K={ref:ee(R),class:D(R,S,z,I,H),style:$(R,X)};return t.h("view",K,[k])},F=(C,R)=>{const V=vl(r,C,R)??{},S=V.status??bl(r,C);let z=$r(r,C);V.disabled===!0&&(z=!0),r.disabled===!0&&(z=!0);const U=V.label??Er(r,C),ne=[],G=r.layout;for(let I of G)if(I==="head"){const K=P(C,R,U,S,z);ne.push(K)}else if(I==="main"){const K=J(C,R,S,z);ne.push(K)}else if(I==="sub"){const K=A(C,R,S);ne.push(K)}else if(I==="mark"){const K=b();ne.push(K)}const W=V.class,k=V.style??{};let H=Cr(r,C);V.doit===!0&&(H=!0);const X={ref:ee(R),class:D(R,S,z,H,W),style:$(R,k)};return t.h("view",X,ne)},L=t.ref(),Y=t.ref([]),Z=(C,R)=>{Y.value[R]=C},ee=C=>R=>{Z(R,C)},le=(C,R)=>{const V=L.value,S=Y.value;if(!V||!S||!S[C])return;const z=S[C];let U=0;r.direction==="vertical"?U=z.offsetTop-(V.offsetHeight-z.offsetHeight)/2:U=z.offsetLeft-(V.offsetWidth-z.offsetWidth)/2,O(V,U,.3,r.direction)},O=(C,R,V,S)=>{let z=0;const U=S==="horizontal"?C.scrollLeft:C.scrollTop,ne=Math.round(V*1e3/16);function G(){S==="horizontal"?C.scrollLeft+=(R-U)/ne:C.scrollTop+=(R-U)/ne,++z<ne&&$n(G)}G()};return()=>{const C=[];if(r.mode==="simple")for(let V=0;V<d.value.length;V++){const S=d.value[V],z=E(S,V);C.push(z)}else for(let V=0;V<d.value.length;V++){const S=d.value[V],z=F(S,V);C.push(z)}const R={ref:L,class:f.value,style:h.value};return t.h("view",R,C)}}}}const{componentName:Ef,create:Nf,scope:kf}=se("steps-bar"),wl=Nf(Cf(Ef,kf,Xc,ef)),If=Symbol.for("InnerPageScopeKey"),Of=Symbol.for("PageWrapperKey");function Vf(e,n){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,l){t.provide(If,!0);const r={};t.provide(Of,r);const a=s=>{typeof r.beforeClose=="function"&&r.beforeClose()},i=t.ref(!0),u=s=>{i.value=s};return()=>{const c={...l.attrs,title:o.title,draggable:o.draggable,modelValue:i.value,"onUpdate:modelValue":u,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":a},d={};if(typeof l.slots.default=="function"){const g=l.slots.default();d.default=()=>g}return t.h(w.ElDialog,c,d)}}}}const{componentName:Wh,create:Df,scope:Yh}=se("dialog-item"),Sl=Df(Vf());let Dt=0;const Nr="fox-overflow-hidden",kr=()=>ot?document.body:{classList:[]},Ff=e=>[()=>{if(e())try{!Dt&&kr().classList.add(Nr),Dt++}catch{}},()=>{if(e()&&Dt)try{Dt--,!Dt&&kr().classList.remove(Nr)}catch{}}],Rf={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:Af,create:Mf}=se("overlay"),Lf=Mf({props:{...Rf},emits:["click","update:visible"],setup(e,{emit:n}){const[o,l]=Ff(()=>e.lockScroll),r=t.computed(()=>({[Af]:!0,[e.overlayClass]:!0})),a=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watch(()=>e.visible,u=>{u?o():l()}),{classes:r,style:a,onClick:u=>{n("click",u),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function Bf(e,n,o,l,r,a){return t.openBlock(),t.createBlock(t.Transition,{name:"overlay-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=t.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}const sn=_e(Lf,[["render",Bf]]),_f={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:{}}},Ir=2e3;let Or=Ir;const qf=(e,n)=>({components:n,props:{..._f},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:l}){const r=t.reactive({zIndex:o.zIndex,showSlot:!0,closed:o.closeable}),a=t.computed(()=>({[e]:!0,round:o.round,[`fox-popup--${o.position}`]:!0,[`fox-popup--${o.position}--safebottom`]:o.position==="bottom"&&o.safeAreaInsetBottom,[o.popClass]:!0})),i=t.computed(()=>({zIndex:r.zIndex,transitionDuration:`${o.duration}s`,...o.style})),u=t.computed(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),s=()=>{o.zIndex!==Ir&&(Or=Number(o.zIndex)),l("update:visible",!0),r.zIndex=++Or,o.destroyOnClose&&(r.showSlot=!0),l("open")},c=()=>{l("update:visible",!1),l("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},d=f=>{l("click-pop",f)},g=f=>{f.stopPropagation(),l("click-close-icon",f),l("update:visible",!1)},y=f=>{l("click-overlay",f),o.closeOnClickOverlay&&l("update:visible",!1)},v=f=>{l("opend",f)},p=f=>{l("closed",f)};return t.watch(()=>o.visible,f=>{o.visible?s():c()}),t.watch(()=>o.closeable,f=>{r.closed=f}),{...t.toRefs(r),popStyle:i,transitionName:u,classes:a,onClick:d,onClickCloseIcon:g,onClickOverlay:y,onOpened:v,onClosed:p}}}),{componentName:Pf,create:jf}=se("popup"),zf=jf(qf(Pf,{FoxOverLay:sn,Close:Wc}));function Hf(e,n,o,l,r,a){const i=t.resolveComponent("FoxOverLay"),u=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(i,t.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"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick:n[1]||(n[1]=(...s)=>e.onClick&&e.onClick(...s))},[e.showSlot?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.closed?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[0]||(n[0]=(...s)=>e.onClickCloseIcon&&e.onClickCloseIcon(...s)),class:t.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(u)])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const xl=_e(zf,[["render",Hf]]),{create:Kf}=se("toast"),Wf=Kf({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:n}){let o=null;const l=t.reactive({mounted:!1});t.onMounted(()=>{l.mounted=!0});const r=()=>{o&&(clearTimeout(o),o=null)},a=()=>{l.mounted=!1},i=()=>{r(),e.duration&&(o=setTimeout(()=>{a()},e.duration))},u=()=>{e.closeOnClickOverlay&&(a(),n("close"))};e.duration&&i(),t.watch(()=>e.duration,v=>{v&&i()});const s=t.computed(()=>e.type!=="text"?!0:!!e.icon),c=()=>{const v=me(e.iconSize);return t.h(e.icon,{width:v,height:v,color:e.iconColor})},d=t.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]),g=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:l,hide:a,clickCover:u,renderIcon:c,hasIcon:s,toastBodyClass:d,toastIconWrapperClass:g,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Yf={key:1,class:"fox-toast-title"},Gf=["innerHTML"];function Uf(e,n,o,l,r,a){return t.openBlock(),t.createBlock(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.toastBodyClass),style:t.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:n[0]||(n[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[t.createElementVNode("view",{class:"fox-toast-inner",style:t.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.toastIconWrapperClass)},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon())))],2)):t.createCommentVNode("",!0),e.title?(t.openBlock(),t.createElementBlock("div",Yf,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Gf)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Tl=_e(Wf,[["render",Uf]]),Xf={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"}},Zf=(e,n,o)=>({props:{...Xf},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(l,{slots:r}){const{emitEvent:a}=wo(),{toLocaleRefs:i}=Me.useFoxI18n(n),u=i(l,["placeholder"]),s=t.reactive({active:!1}),c=t.computed(()=>({background:l.background})),d=t.computed(()=>({background:l.inputBackground})),g=x=>{let b=x.target.value;l.maxLength&&b.length>Number(l.maxLength)&&(b=b.slice(0,Number(l.maxLength))),a("update:modelValue",b,x),a("change",b,x)},y=t.ref({}),v=x=>{let b=x.target.value;s.active=!0,y.value=l.focusStyle,a("focus",b,x)},p=x=>{setTimeout(()=>{s.active=!1},0);let b=x.target.value;l.maxLength&&b.length>Number(l.maxLength)&&(b=b.slice(0,Number(l.maxLength))),y.value={},a("blur",b,x)},f=x=>{a("update:modelValue","",x),a("change","",x),a("clear","")},h=t.computed(()=>String(l.modelValue).length>0),D=t.computed(()=>{const x={};return h.value||(x.display="none"),x}),T=()=>{a("search",l.modelValue)},$=x=>{a("keyup-input",x),x.key.toLocaleUpperCase()==="ENTER"&&T()},q=x=>{a("click-input",x)},j=x=>{a("click-left-icon",l.modelValue,x)},B=t.computed(()=>({textAlign:l.inputAlign})),_=t.ref(null);t.onMounted(()=>{l.autofocus&&_.value.focus()});const M=()=>{const x=[];if(r.leftin){const A={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:j},E=t.h("view",A,[r.leftin()]);x.push(E)}const N={ref:_,class:[`${e}__input-inner`],style:B.value,type:l.inputType,maxlengt:l.maxLength,placeholder:u.placeholder.value,value:l.modelValue,disabled:l.disabled,readonly:l.readonly,onClick:q,onInput:g,onFocus:v,onBlur:p,onkeyup:$},b=t.h("input",N);x.push(b);const P=[];if(l.clearable){const A={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:D.value,onClick:f},E=r?.clear?.()??l.clearIcon??o,F=t.h("view",A,[t.h(E)]);P.push(F)}if(r.rightin){const A={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},E=t.h("view",A,[r.rightin()]);P.push(E)}if(P.length>0){const A={class:`${e}__input-inner-right`},E=t.h("view",A,P);x.push(E)}const J={class:[`${e}__search-input`,`${l.shape}`],style:{...d.value,...y.value}};return t.h("view",J,x)};return()=>{const x=[];if(l.label){const P={class:`${e}__search-label`},J=t.h("span",P,[l.label]);x.push(J)}if(r.leftout){const P={class:[`${e}__search-icon`,`${e}__left-search-icon`]},J=t.h("view",P,[r.leftout()]);x.push(J)}const N=M();if(x.push(N),r.rightout){const P={class:[`${e}__search-icon`,`${e}__right-search-icon`]},J=t.h("view",P,[r.rightout()]);x.push(J)}const b={class:`${e}`,style:c.value};return t.h("view",b,x)}}}),{componentName:Jf,create:Qf,scope:ed}=se("searchbar"),$l=Qf(Zf(Jf,ed,Ce.CircleClose)),td=/scroll|auto|overlay/i,Vr=window;function nd(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function ld(e,n=Vr){let o=e;for(;o&&o!==n&&nd(o);){const{overflowY:l}=window.getComputedStyle(o);if(td.test(l))return o;o=o.parentNode}return n}function Dr(e,n=Vr){const o=t.ref();return t.onMounted(()=>{e.value&&(o.value=ld(e.value,n))}),o}const Fr=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,od={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 rd(e,n,o){return{props:{...od},emits:["scroll-change","load-more","update:modelValue"],setup(l,{emit:r,slots:a}){const{toLocaleRefs:i}=Me.useFoxI18n(n),u=i(l,["pullText","loadText","loadMoreText"]),s=t.ref(),c=Dr(s),d=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),g=t.computed(()=>({[e]:!0})),y=T=>T?T.offsetTop+y(T.offsetParent):0,v=()=>{let T=0,$=0,q="down";if(c.value==window){const j=Fr();s.value&&(T=y(s.value)+s.value.offsetHeight-j-window.innerHeight),$=j}else{const{scrollHeight:j,clientHeight:B,scrollTop:_}=c.value;T=j-B-_,$=_}return d.beforeScrollTop>$?q="up":q="down",d.beforeScrollTop=$,r("scroll-change",$),T<=l.threshold&&q=="down"},p=()=>{Pl(()=>{if(!v()||!l.hasMore||d.isInfiniting)return!1;d.isInfiniting=!0,r("update:modelValue",!0),t.nextTick(()=>r("load-more"))})},f=()=>{c.value&&c.value.addEventListener("scroll",p,l.useCapture)},h=()=>{c.value&&c.value.removeEventListener("scroll",p,l.useCapture)};t.onMounted(()=>{f(),l.immediate&&p()}),t.onUnmounted(()=>{h()});const D=t.ref(!1);return t.onActivated(()=>{D.value&&(D.value=!1,f())}),t.onDeactivated(()=>{D.value=!0,h()}),t.watch(()=>l.modelValue,T=>{T||(d.isInfiniting=!1)}),()=>{const T={class:"fox-infinite__container"},$=t.h("view",T,[a?.default?.()]),q=[];if(d.isInfiniting){let M=a?.loading?.()??null;if(!M){let b=a?.loadingIcon?.()??null;if(!b){const A={class:["fox-infinite__bottom-box__img"]};b=t.h(o,A)}const P={class:"fox-infinite__bottom-box__text"},J=t.h("view",P,[u.loadText.value]);M=[b,J]}const x={class:"fox-infinite__bottom-box"},N=t.h("view",x,M);q.push(N)}else if(!l.hasMore){let M=a?.finished?.()??null;if(!M){const x={class:"fox-infinite__bottom-tips"};M=t.h("view",x,[u.loadMoreText.value]),q.push(M)}}const j={class:"fox-infinite__bottom"},B=t.h("view",j,q),_={class:g.value,ref:s};return t.h("view",_,[$,B])}}}}const{componentName:ad,create:id,scope:sd}=se("infinite-loading"),Cl=id(rd(ad,sd,gl)),Rr=10;function Ar(e,n){return e>n&&e>Rr?"horizontal":n>e&&n>Rr?"vertical":""}function un(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function cn(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",o=()=>e.direction==="horizontal",l=()=>{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=Ar(e.offsetX,e.offsetY))},start:i=>{if(l(),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:l,isVertical:n,isHorizontal:o,state:e}}function ud(){const e=t.ref(0),n=t.ref(0),o=t.ref(0),l=t.ref(0),r=t.ref(0),a=t.ref(0),i=t.ref(0),u=t.ref(0),s=t.ref(0),c=t.ref(0),d=t.ref(""),g=()=>d.value==="vertical",y=()=>d.value==="horizontal",v=()=>{i.value=0,u.value=0,s.value=0,c.value=0,d.value="",o.value=0};return{move:h=>{if(h.touches){const $=h.touches[0];i.value=$.clientX-e.value,u.value=$.clientY-n.value,r.value=$.clientX,a.value=$.clientY}else{const T=h;i.value=T.clientX-e.value,u.value=T.clientY-n.value,r.value=T.clientX,a.value=T.clientY}s.value=Math.abs(i.value),c.value=Math.abs(u.value),l.value=Date.now()-o.value,d.value||(d.value=Ar(s.value,c.value))},start:h=>{if(v(),h.touches){const $=h.touches[0];e.value=$.clientX,n.value=$.clientY}else{const T=h;e.value=T.clientX,n.value=T.clientY}o.value=Date.now()},reset:v,startX:e,startY:n,startTime:o,duration:l,moveX:r,moveY:a,deltaX:i,deltaY:u,offsetX:s,offsetY:c,direction:d,isVertical:g,isHorizontal:y}}const cd={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}},fd=(e,n,o)=>({props:{...cd},emits:["change","refresh","update:modelValue"],setup(l,{emit:r,slots:a}){const{toLocaleRefs:i}=Me.useFoxI18n(n),u=i(l,["pullingText","loosingText","loadingText"]),s=cn(),c=t.ref(),d=Dr(c),g=t.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),y=t.computed(()=>({[e]:!0})),v=t.computed(()=>{switch(g.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""}}),p=t.computed(()=>({transitionDuration:`${l.duration}s`,transform:g.distance?`translate3d(0,${g.distance}px, 0)`:""})),f=t.computed(()=>{const _={};return l.headHeight!=50&&(_.height=ke(l.headHeight)),_}),h=_=>{const M=+(l.pullDistance||l.headHeight);let x=_;return _>M&&(_<M*2?x=(_+M)/2:x=M+_/4),Math.round(x)},D=(_,M)=>{const x=+(l.pullDistance||l.headHeight);g.distance=_,M?g.status="loading":_===0?g.status="normal":_<x?g.status="pulling":g.status="loosing",r("change",{status:g.status,distance:_})},T=()=>g.status!=="loading"&&g.status!=="complete",$=()=>d.value==window?Fr()==0:d.value&&d.value.scrollTop==0,q=_=>{T()&&($()?(s.start(_),g.isPullRefresh=!0,g.moving=!0):(g.distance=0,g.isPullRefresh=!1))},j=_=>{T()&&g.moving&&(s.move(_),s.isVertical()&&s.state.deltaY>0&&g.isPullRefresh&&(_.cancelable&&_.preventDefault(),D(h(s.state.deltaY))))},B=()=>{g.moving=!1,g.isPullRefresh&&T()&&s.state.deltaY&&(g.status==="loosing"?(D(+l.headHeight,!0),r("update:modelValue",!0),t.nextTick(()=>r("refresh"))):D(0)),setTimeout(()=>{s.reset()},0)};return t.watch(()=>l.modelValue,_=>{_?D(+l.headHeight,!0):D(0)}),()=>{const _=[];let M=null;if(g.status==="loading"){if(M=a?.loading?.()??null,!M){const F={class:["fox-pull-refresh-container-topbox-icon"]};M=t.h(o,F)}}else g.status==="pulling"?M=a?.pulling?.()??null:g.status==="loosing"&&(M=a?.loosing?.()??null);M&&_.push(M);const x={class:["fox-pull-refresh-container-topbox-text"]},N=t.h("dive",x,[v.value]);_.push(N);const b={class:["fox-pull-refresh-container-topbox"],style:f.value},P=t.h("div",b,_),J={class:"fox-pull-refresh-container",style:p.value},A=t.h("div",J,[P,a?.default?.()]),E={ref:c,class:y.value};return un()?Object.assign(E,{onTouchstart:q,onTouchmove:j,onTouchend:B}):Object.assign(E,{onMousedown:q,onMousemove:j,onMouseup:B}),t.h("div",E,[A])}}}),{componentName:dd,create:hd,scope:gd}=se("pull-refresh"),El=hd(fd(dd,gd,gl));function md(e,n){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(o,{slots:l}){const r=e,a=t.computed(()=>({[r]:!0})),i=t.computed(()=>o.icon?{[`${r}__icon`]:!0,[`${r}__icon-${o.type}`]:!0}:{[`${r}__mark`]:!0,[`${r}__mark-${o.type}`]:!0}),u=t.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),s=t.computed(()=>{const d={[`${r}__text`]:!0,[`${r}__text-${o.type}`]:!0};return o.textPosition==="left"?d["is-left"]=!0:d["is-right"]=!0,d}),c=t.computed(()=>o.color?{color:o.color}:null);return()=>{let d=null;if(l.mark)d=l.mark()[0];else{const f={class:i.value,style:u.value};d=t.h(o.icon??"div",f)}const g={class:s.value,style:c.value},y=l.default?l.default():[],v=t.h("div",g,y),p={class:a.value};return o.textPosition==="right"?t.h("div",p,[d,v]):t.h("div",p,[v,d])}}}}const{componentName:pd,create:yd,scope:Gh}=se("indicator"),Nl=yd(md(pd));function bd(e,n){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const l=o.getBoundingClientRect().width;if(l>0){n(l);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"),n(r)},500)}const vd={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 wd(e,n,o,l=!1){return{props:{...vd},emits:["click"],setup(r,a){const i=t.ref(null),u=t.computed(()=>{const $={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&($[`${e}--${r.type??"default"}`]=!0),r.size&&($[`${e}--${r.size}`]=!0),$}),s=t.computed(()=>{const $={},q=r.textColor??r.color;return q&&($.color=q),$}),c=($,q)=>{let j=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const B=r.highlightFilter;if($.indexOf(B)!==-1){const M=$.replace(new RegExp(B,"g"),`<span>${B}</span>`);q.innerHTML=M,q.class["is-highlight"]=!0,j=t.h(r.tag,q)}}else if(typeof r.highlightFilter=="function"){const B=r.highlightFilter($);B&&(q.innerHTML=B,q.class["is-highlight"]=!0,j=t.h(r.tag,q))}return j},d=$=>{a.emit("click",$)};let g="";const y=()=>{const $=i.value;if(!$)return;const q=$.clientWidth;bd($,j=>{const B=$.innerHTML??"";he(B)||j<q||(g?o?.show($,B,{type:"text",id:g,showArrow:r.showArrow},!0):g=o?.show($,B,{type:"text",showArrow:r.showArrow},!0)??"")})},v=()=>{g&&o?.hide(g)};let p=null;const f=$=>{p||(p=setTimeout(()=>{y(),p=null},r.showAfter??0))},h=$=>{p&&(clearTimeout(p),p=null),setTimeout(()=>{v()},r.hideAfter??0)},D=()=>{const $=i.value;$&&($.addEventListener("mouseover",f),$.addEventListener("mouseleave",h))},T=()=>{const $=i.value;$&&($.removeEventListener("mouseover",f),$.removeEventListener("mouseleave",h))};return t.onMounted(()=>{!ue(r.showOverflowTooltip)||!o||D()}),t.onBeforeUnmount(()=>{!ue(r.showOverflowTooltip)||!o||T()}),()=>{const $={onClick:d,class:u.value,style:s.value,ref:i};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 x=M[0].type.toString();if(x==="Symbol(Text)"||x==="Symbol(v-txt)"){const N=Se(r.digits),b=Se(r.decimalLength),P=ue(r.autoPadding);let J=`${M[0].children}`,A=J.split("").reverse().join("");A=Mt(A,b,P,N,r.separator),J=A.split("").reverse().join(""),r.highlightFilter!==void 0&&(q=c(J,$)),q||($.innerHTML=J,q=t.h(r.tag,$))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const M=a.slots.default();if(Array.isArray(M)&&M.length===1){const x=M[0].type.toString();if(x==="Symbol(Text)"||x==="Symbol(v-txt)"){const N=`${M[0].children}`;q=c(N,$),q||($.innerHTML=N,q=t.h(r.tag,$))}}}q||(q=t.h(r.tag,$,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return q;let B=null;if(r.icon){const M={[`${e}__mark-wrap`]:!0};r.type&&(M[`${e}__mark-wrap--${r.type}`]=!0);const x={},N=r.color;N&&(x.color=N);const b={class:M,style:x};B=t.h("view",b,t.h(r.icon))}else if(a.slots.mark){const M={[`${e}__mark-wrap`]:!0};r.type&&(M[`${e}__mark-wrap--${r.type}`]=!0);const x={},N=r.color;N&&(x.color=N);const b={class:M,style:x};B=t.h("view",b,{default:a.slots.mark})}else{const M={[`${e}__mark`]:!0};r.type&&(M[`${e}__mark--${r.type??"default"}`]=!0);const x={},N=r.color;N&&(x["background-color"]=N);const b={class:M,style:x};B=t.h("view",b)}const _={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return t.h("view",_,[B,q])}}}}const{componentName:Sd,create:xd,scope:Td}=se("text"),kl=xd(wd(Sd,Td,Fe,!1)),$d={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 Cd(e,n,o){return{props:{...$d},emits:["click","update:modelValue"],setup(l,{emit:r}){const a=t.computed(()=>{const g={[`${e}`]:!0};return l.disabled?g[`${e}__disabled`]=!0:g[`${e}__${l.type}`]=!0,g}),i=ge(l,"modelValue"),u=t.computed(()=>i.value?l.expandText??"":l.collapseText??""),s=t.computed(()=>({[`${e}__text`]:!0})),c=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),d=()=>{r("update:modelValue",!i.value)};return()=>{const g=[];if(u.value){const f={class:s.value},h=t.h("span",f,[u.value]);g.push(h)}const y={class:c.value},v=o(l.icon,y);return v&&g.push(v),t.h("div",{class:a.value,onClick:d},g)}}}}const{componentName:Ed,create:Nd,scope:kd}=se("more-button"),Il=Nd(Cd(Ed,kd,(e,n)=>(e=e??Ce.ArrowUp,t.h(w.ElIcon,n,{default:()=>[t.h(e)]}))));function Id(e){e.stopPropagation()}let Od=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,o){this.startMove=n,this.updateMove=o,this.isTouch=un()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const o=cn(),l=(r,a,i,u)=>{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),Id(r),l(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{l(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(n=>{this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}};function Vd(e,n){return new Od(e,n)}const Dd={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]}},Fd=(e,n,o,l=!1)=>({props:{...Dd},emits:["click"],setup(r,{slots:a,emit:i}){const u=t.reactive({top:r.top,right:r.right,bottom:r.bottom,left:r.left}),s=t.computed(()=>{const T=[`${e}`];return r.customClass&&T.push(r.customClass),T}),c=t.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),T}),d=t.computed(()=>({[`${e}__icon`]:!0})),g=()=>{i("click")},y=t.ref(null),v=()=>{u.top=null,u.right=null,u.bottom=null,u.left=null},p={x:0,y:0},D=Vd(T=>{if(!y.value)return;const $=y.value;v(),u.left=$.offsetLeft,u.top=$.offsetTop,$.style.left=`${u.left}px`,$.style.top=`${u.top}px`,$.style.right=null,$.style.bottom=null,p.x=u.left,p.y=u.top},T=>{if(!y.value)return;const $=y.value;v(),u.left=p.x+T.x,u.top=p.y+T.y,$.style.left=`${u.left}px`,$.style.top=`${u.top}px`});return t.onMounted(()=>{if(r.draggable&&y.value){const T=[y.value];D.open(T)}}),t.onBeforeUnmount(()=>{r.draggable&&y.value&&D.close()}),()=>{let T=[];const $=typeof a.default=="function"?a.default():[];if($&&$.length>0)T=$;else{const j=t.h(o,{class:d.value});T.push(j)}const q={ref:j=>{y.value=j},class:s.value,style:c.value,onClick:g};return t.h("view",q,T)}}}),{componentName:Rd,create:Ad,scope:Md}=se("floating-button"),Ol=Ad(Fd(Rd,Md,Ac,!1));function Ld(e){return e===window}const Mr=e=>{const n=t.unref(e);if(Ld(n)){const o=n.innerWidth,l=n.innerHeight;return{top:0,left:0,right:o,bottom:l,width:o,height:l}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:Bd,create:_d,scope:Xh}=se("tour"),qd=_d({components:{Close:Ce.Close,ElPopover:w.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const o=Bd,l=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=t.ref({}),a=t.computed(()=>`${o}`),i=t.computed(()=>{const{offset:p,maskWidth:f,maskHeight:h}=e,{width:D,height:T,left:$,top:q}=r.value,j=e.steps[l.active].offset??p,B=[$+D/2,q+T/2],_=Number(f||D),M=Number(h||T);return{width:`${_+ +j.left+j.right}px`,height:`${M+j.top+j.bottom}px`,top:`${B[1]-M/2-+j.top}px`,left:`${B[0]-_/2-+j.left}px`}}),u=p=>{p=="next"?l.active=l.active+1:l.active=l.active-1,l.showPopup=!1,t.nextTick(()=>{l.showPopup=!0,d()}),n("change",l.active)},s=p=>p.popoverWidth??e.width,c=p=>p.location??e.location,d=()=>{const p=document.querySelector(`${e.steps[l.active].target}`),f=Mr(p);r.value={x:f.left,y:f.top,top:f.top,left:f.left,width:f.width,height:f.height}},g=()=>{l.showTour=!1,l.showPopup=!1,n("close",l.active),n("update:modelValue",!1)},y=()=>{e.closeOnClickOverlay&&g()},v=(p,f=0)=>{p&&d(),e.steps,l.active=f,l.showTour=p,l.showPopup=p};return t.onMounted(()=>{v(e.modelValue,e.current)}),t.watch(()=>e.modelValue,p=>{v(p)}),{...t.toRefs(l),classes:a,maskStyle:i,changeStep:u,popoverWidth:s,popoverLocation:c,close:g,handleClickMask:y}}}),Pd={key:0,class:"fox-tour__content"},jd={key:0,class:"fox-tour__content-top"},zd={class:"fox-tour__content-inner"},Hd={class:"fox-tour__content-bottom"},Kd={class:"fox-tour__content-bottom-init"},Wd={class:"fox-tour__content-bottom-operate"},Yd={key:1,class:"fox-tour__content fox-tour__content-tile"},Gd={class:"fox-tour__content-inner"};function Ud(e,n,o,l,r,a){const i=t.resolveComponent("Close"),u=t.resolveComponent("fox-button"),s=t.resolveComponent("ElPopover");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{class:"fox-tour__masked",onClick:n[0]||(n[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[t.vShow,e.showTour]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.steps,(c,d)=>(t.openBlock(),t.createElementBlock("div",{key:d,style:{height:"0"}},[d==e.active?(t.openBlock(),t.createBlock(s,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(c),width:e.popoverWidth(c)},{reference:t.withCtx(()=>[e.showTour?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:t.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):t.createCommentVNode("",!0)]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(t.openBlock(),t.createElementBlock("div",Pd,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",jd,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...g)=>e.close&&e.close(...g))},[t.createVNode(i,{class:"fox-tour__content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",zd,t.toDisplayString(c.content),1),t.createElementVNode("div",Hd,[t.createElementVNode("div",Kd,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",Wd,[t.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(t.openBlock(),t.createBlock(u,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[2]||(n[2]=g=>e.changeStep("prev"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.prevStepText),1)]),_:1})):t.createCommentVNode("",!0)]),e.steps.length-1==e.active?(t.openBlock(),t.createBlock(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(t.openBlock(),t.createBlock(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[3]||(n[3]=g=>e.changeStep("next"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.nextStepText),1)]),_:1})):t.createCommentVNode("",!0)])])])])):t.createCommentVNode("",!0),e.type=="tile"?(t.openBlock(),t.createElementBlock("div",Yd,[t.createElementVNode("div",Gd,t.toDisplayString(c.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):t.createCommentVNode("",!0)]))),128))],2)}const Vl=_e(qd,[["render",Ud]]),Re=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,it=e=>e==null;class Xd{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,o){this.startMove=n,this.updateMove=o,this.isTouch=un()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const o=cn(),l=(r,a,i,u)=>{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),l(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{l(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(n=>{this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Lr(e,n){return new Xd(e,n)}const Br=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;let pt=[];const _r=e=>{const n=e;n.key==="Escape"&&pt.forEach(o=>o(n))},Zd=e=>{t.onMounted(()=>{pt.length===0&&document.addEventListener("keydown",_r),Br&&pt.push(e)}),t.onBeforeUnmount(()=>{pt=pt.filter(n=>n!==e),pt.length===0&&Br&&document.removeEventListener("keydown",_r)})},Dl="fox-focus-trap.focus-after-trapped",Fl="fox-focus-trap.focus-after-released",Jd="fox-focus-trap.focusout-prevented",qr={cancelable:!0,bubbles:!1},Qd={cancelable:!0,bubbles:!1},Pr="foxFocusAfterTrapped",jr="foxFocusAfterReleased",eh=Symbol("foxFocusTrap"),Rl=t.ref(),fn=t.ref(0),Al=t.ref(0);let dn=0;const zr=e=>{const n=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const r=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||r?NodeFilter.FILTER_SKIP:l.tabIndex>=0||l===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)n.push(o.currentNode);return n},th=(e,n)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},Hr=(e,n)=>{for(const o of e)if(!th(o,n))return o},nh=e=>{const n=zr(e),o=Hr(n,e),l=Hr(n.reverse(),e);return[o,l]},lh=e=>e instanceof HTMLInputElement&&"select"in e,tt=(e,n)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),Al.value=window.performance.now(),e!==o&&lh(e)&&n&&e.select()}};function Kr(e,n){const o=[...e],l=e.indexOf(n);return l!==-1&&o.splice(l,1),o}const oh=()=>{let e=[];return{push:l=>{const r=e[0];r&&l!==r&&r.pause(),e=Kr(e,l),e.unshift(l)},remove:l=>{e=Kr(e,l),e[0]?.resume?.()}}},rh=(e,n=!1)=>{const o=document.activeElement;for(const l of e)if(tt(l,n),document.activeElement!==o)return},Wr=oh(),ah=()=>fn.value>Al.value,hn=()=>{Rl.value="pointer",fn.value=window.performance.now()},Yr=()=>{Rl.value="keyboard",fn.value=window.performance.now()},ih=()=>(t.onMounted(()=>{dn===0&&(document.addEventListener("mousedown",hn),document.addEventListener("touchstart",hn),document.addEventListener("keydown",Yr)),dn++}),t.onBeforeUnmount(()=>{dn--,dn<=0&&(document.removeEventListener("mousedown",hn),document.removeEventListener("touchstart",hn),document.removeEventListener("keydown",Yr))}),{focusReason:Rl,lastUserFocusTimestamp:fn,lastAutomatedFocusTimestamp:Al}),gn=e=>new CustomEvent(Jd,{...Qd,detail:e}),{componentName:Zh,create:sh,scope:Jh}=se("focus-trap"),uh=sh({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:[Pr,jr,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:n,emit:o}){const l=t.ref();let r,a;const{focusReason:i}=ih();Zd(f=>{ue(e.trapped)&&!u.paused&&o("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:h,altKey:D,ctrlKey:T,metaKey:$,currentTarget:q,shiftKey:j}=f,{loop:B}=e,_=h==="Tab"&&!D&&!T&&!$,M=document.activeElement;if(_&&M){const x=q,[N,b]=nh(x);if(N&&b){if(!j&&M===b){const J=gn({focusReason:i.value});o("focusout-prevented",J),J.defaultPrevented||(f.preventDefault(),B&&tt(N,!0))}else if(j&&[N,x].includes(M)){const J=gn({focusReason:i.value});o("focusout-prevented",J),J.defaultPrevented||(f.preventDefault(),B&&tt(b,!0))}}else if(M===x){const J=gn({focusReason:i.value});o("focusout-prevented",J),J.defaultPrevented||f.preventDefault()}}};t.provide(eh,{focusTrapRef:l,onKeydown:s}),t.watch(()=>e.focusTrapEl,f=>{f&&(l.value=f)},{immediate:!0}),t.watch([l],([f],[h])=>{f&&(f.addEventListener("keydown",s),f.addEventListener("focusin",g),f.addEventListener("focusout",y)),h&&(h.removeEventListener("keydown",s),h.removeEventListener("focusin",g),h.removeEventListener("focusout",y))});const c=f=>{o(Pr,f)},d=f=>o(jr,f),g=f=>{const h=t.unref(l);if(!h)return;const D=f.target,T=f.relatedTarget,$=D&&h.contains(D);ue(e.trapped)||T&&h.contains(T)||(r=T),$&&o("focusin",f),!u.paused&&ue(e.trapped)&&($?a=D:tt(a,!0))},y=f=>{const h=t.unref(l);if(!(u.paused||!h))if(!e.escape&&ue(e.trapped)){const D=f.relatedTarget;!In(D)&&!h.contains(D)&&setTimeout(()=>{if(!u.paused&&ue(e.trapped)){const T=gn({focusReason:i.value});o("focusout-prevented",T),T.defaultPrevented||tt(a,!0)}},0)}else{const D=f.target;D&&h.contains(D)||o("focusout",f)}};async function v(){await t.nextTick();const f=t.unref(l);if(f){Wr.push(u);const h=f.contains(document.activeElement)?r:document.activeElement;if(r=h,!f.contains(h)){const T=new Event(Dl,qr);f.addEventListener(Dl,c),f.dispatchEvent(T),T.defaultPrevented||t.nextTick(()=>{let $=e.focusStartEl;Xl($)||(tt($),document.activeElement!==$&&($="first")),$==="first"&&rh(zr(f),!0),(document.activeElement===h||$==="container")&&tt(f)})}}}function p(){const f=t.unref(l);if(f){f.removeEventListener(Dl,c);const h=new CustomEvent(Fl,{...qr,detail:{focusReason:i.value}});f.addEventListener(Fl,d),f.dispatchEvent(h),!h.defaultPrevented&&(i.value=="keyboard"||!ah())&&tt(r??document.body,!0),f.removeEventListener(Fl,c),Wr.remove(u)}}return t.onMounted(()=>{ue(e.trapped)&&v(),t.watch(()=>e.trapped,f=>{ue(f)?v():p()})}),t.onBeforeUnmount(()=>{ue(e.trapped)&&p()}),()=>typeof n.default=="function"?n.default({"handle-keydown":s}):null}}),{componentName:ch,create:fh,scope:eg}=se("floating-window"),dh=Symbol.for("InnerPageScopeKey"),hh=Symbol.for("PageWrapperKey"),gh={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}},mh=fh({inheritAttrs:!1,components:{FoxIcon:w.ElIcon,FocusTrap:uh},props:{...gh},emits:["update:modelValue","update:collapse"],setup(e,{emit:n}){const o=ch,l=t.ref(e.modelValue),r=t.computed(()=>!e.teleport);t.watch(()=>e.modelValue,I=>{l.value=I});const a=t.computed(()=>l.value===!1?!1:!M.value),i=t.ref(e.left),u=t.ref(e.top),s=t.ref(e.right),c=t.ref(e.bottom),d=t.computed(()=>{const I=["fox-floating-window"];return e.customClass&&I.push(e.customClass),I}),g=t.computed(()=>{const I={};return it(i.value)?I.left="auto":I.left=Re(i.value),it(u.value)?I.top="auto":I.top=Re(u.value),it(s.value)?I.right="auto":I.right=Re(s.value),it(c.value)?I.bottom="auto":I.bottom=Re(c.value),it(e.zIndex)||(I["z-index"]=Re(e.zIndex)),it(B.value)||(I.height=B.value),it(_.value)||(I.width=_.value),I}),y=t.computed(()=>e.closeIcon??Ce.Close),v=t.computed(()=>e.collapseIcon??Ce.ArrowUp),p=t.computed(()=>e.collapseText??""),f=t.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ce.ArrowRight:e.expandIcon??Ce.ArrowLeft),h=t.computed(()=>e.expandText??e.title??"展开"),D=t.computed(()=>({[`${o}__collapse-text`]:!0})),T=t.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!M.value,"is-collapse":M.value})),$=t.ref(),q=t.ref(null),j=t.ref(null),B=t.computed(()=>Re(e.height)||""),_=t.computed(()=>Re(e.width)||""),M=t.ref(ue(e.collapse)),x=(I,K=!0)=>{M.value!==I&&(M.value=I,I?C():R(),n("update:collapse",I),I&&typeof P.onHide=="function"?P.onHide():!I&&typeof P.onShow=="function"&&P.onShow())};t.watch(()=>e.collapse,I=>{x(I)});const N=()=>{b()},b=I=>{I=I??!M.value,x(I)};t.provide(dh,!0);const P={setCollapse:x,setFixedNavVisible:I=>{ee.value=I}};t.provide(hh,P);const J=()=>{typeof P.beforeClose=="function"?P.beforeClose(()=>{l.value=!1}):l.value=!1},A=t.ref(null),E=t.computed(()=>!e.fixedNavTeleport),F=t.computed(()=>{const I=["fox-floating-window__fixednav"];return e.expandClass&&I.push(e.expandClass),e.collapsePosition==="left"?I.push("is-left"):e.collapsePosition==="right"&&I.push("is-right"),I}),L=t.ref(""),Y=t.computed(()=>{const I={};return L.value?I.top=L.value:e.collapseTop&&(I.top=e.collapseTop),I}),Z=t.ref(M.value),ee=t.computed({set:I=>{Z.value=I},get:()=>l.value===!1?!1:Z.value});let le=null;const O=()=>{typeof le=="function"&&(le(),le=null)},C=()=>{A.value&&A.value.classList.add("slide-in"),ee.value=!0,le=()=>{A.value&&A.value.classList.remove("slide-in")}},R=()=>{A.value&&A.value.classList.add("slide-out"),le=()=>{A.value&&A.value.classList.remove("slide-out"),ee.value=!1}},V=()=>{i.value=null,u.value=null,s.value=null,c.value=null},S={x:0,y:0},ne=Lr(I=>{if(!$.value)return;const K=$.value;if(V(),e.origin==="left-top")i.value=K.offsetLeft,u.value=K.offsetTop,S.x=i.value,S.y=u.value;else if(e.origin==="left-bottom"){const te=document.documentElement.clientHeight||document.body.clientHeight;i.value=K.offsetLeft,c.value=te-(K.offsetTop+K.offsetHeight),S.x=i.value,S.y=c.value}else if(e.origin==="right-bottom"){const te=document.documentElement.clientWidth||document.body.clientWidth,oe=document.documentElement.clientHeight||document.body.clientHeight;s.value=te-(K.offsetLeft+K.offsetWidth),c.value=oe-(K.offsetTop+K.offsetHeight),S.x=s.value,S.y=c.value}else{const te=document.documentElement.clientWidth||document.body.clientWidth;s.value=te-(K.offsetLeft+K.offsetWidth),u.value=K.offsetTop,S.x=s.value,S.y=u.value}},I=>{if(!$.value)return;const K=$.value;V(),e.origin==="left-top"?(i.value=S.x+I.x,u.value=S.y+I.y,K.style.left=Re(i.value),K.style.top=Re(u.value)):e.origin==="left-bottom"?(i.value=S.x+I.x,c.value=S.y-I.y,K.style.left=Re(i.value),K.style.bottom=Re(c.value)):e.origin==="right-bottom"?(s.value=S.x-I.x,c.value=S.y-I.y,K.style.right=Re(s.value),K.style.bottom=Re(c.value)):(s.value=S.x-I.x,u.value=S.y+I.y,K.style.right=Re(s.value),K.style.top=Re(u.value))}),G={x:0,y:0},H=Lr(I=>{A.value&&(G.x=A.value.offsetLeft,G.y=A.value.offsetTop)},I=>{if(!A.value)return;const K=G.y+I.y;L.value=`${K}px`}),X=()=>{if($.value){const I=$.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");j.value=I}};return t.onMounted(()=>{if(e.draggable&&$.value){const I=[];q.value&&I.push(q.value),e.footerDraggable&&(X(),j.value&&I.push(j.value)),ne.open(I)}e.collapse===!0&&x(e.collapse,!1),A.value&&H.open(A.value)}),t.onBeforeUnmount(()=>{e.draggable&&q.value&&ne.close(),A.value&&H.close()}),{classes:d,styles:g,isShow:a,closeIcon:y,onClose:J,dialogRef:$,headerRef:q,onClickToggle:N,collapseIcon:v,collapseText:p,collapseTextClasses:D,collapseIconClasses:T,expandIcon:f,expandText:h,isShowFixedNav:ee,fixedNavRef:A,fixedNavClasses:F,fixedNavStyles:Y,onAnimationEnd:O,teleportDisabled:r,fixedNavTeleportDisabled:E}}}),ph={ref:"headerRef",class:"fox-floating-window__header"},yh={class:"fox-floating-window__title"},bh={class:"fox-floating-window__tools"},vh={class:"fox-floating-window__body"},wh={class:"fox-floating-window__fixednav__text"};function Sh(e,n,o,l,r,a){const i=t.resolveComponent("FoxIcon"),u=t.resolveComponent("FocusTrap");return t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[t.createVNode(t.Transition,{name:"fox-floating-window-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{ref:"dialogRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),tabindex:"-1"},[t.createVNode(u,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:t.withCtx(()=>[t.createElementVNode("div",ph,[t.renderSlot(e.$slots,"header",{},()=>[t.createElementVNode("span",yh,t.toDisplayString(e.title),1),t.createElementVNode("div",bh,[e.showCollapse?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:n[0]||(n[0]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[t.createElementVNode("span",{class:t.normalizeClass(e.collapseTextClasses)},t.toDisplayString(e.collapseText),3),t.createVNode(i,{class:t.normalizeClass(e.collapseIconClasses)},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):t.createCommentVNode("",!0),e.showClose?(t.openBlock(),t.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):t.createCommentVNode("",!0)])])],512),t.createElementVNode("div",vh,[t.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[t.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(t.openBlock(),t.createBlock(t.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[t.withDirectives(t.createElementVNode("div",{ref:"fixedNavRef",class:t.normalizeClass(e.fixedNavClasses),style:t.normalizeStyle(e.fixedNavStyles),onAnimationend:n[2]||(n[2]=(...s)=>e.onAnimationEnd&&e.onAnimationEnd(...s))},[t.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:n[1]||(n[1]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[t.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.expandIcon)))]),_:1}),t.createElementVNode("div",wh,t.toDisplayString(e.expandText),1)])],38),[[t.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const Ml=_e(mh,[["render",Sh]]);function xh(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:l}){return yo(o.name,()=>o.config),()=>typeof l.default=="function"?l.default():null}}}const{componentName:tg,create:Th,scope:ng}=se("domain-provider"),Ll=Th(xh()),$h={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 Ch(e,n){return{inheritAttrs:!1,props:$h,setup(o,{slots:l}){if(ot&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(y,v)=>{if(d===null){a.set(y,{visible:null,callback:v});return}r.has(y)&&d.unobserve(y),r.set(y,{visible:null,callback:v}),d.observe(y)},u=y=>{if(d===null){a.delete(y);return}r.has(y)&&(r.delete(y),d.unobserve(y))};let s=o.initialVisibleObserverSize;ti({acquire:()=>{const y=s>0;return s--,y},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:u});let d=null;const g=(y,v,p)=>{d=new IntersectionObserver(f=>{for(let h of f){let D=!1;h.intersectionRatio>0&&(D=!0);const T=r.get(h.target);if(T)try{if(o.loadPolicy==="lazy"&&!D&&T.visible!==null)return;T.visible=D,T.callback(D)}catch($){console.error($)}}},{root:y,rootMargin:v,threshold:p}),a.forEach((f,h)=>{r.set(h,f),d?.observe(h)}),a.clear()};t.watch([()=>o.root,()=>o.disabled],([y,v])=>{if(v||!y||d)return;let p=null;typeof y=="string"?p=document.querySelector(y):p=y,p&&g(p,o.rootMargin,o.threshold)},{immediate:!0}),t.onUnmounted(()=>{d&&(d.disconnect(),d=null)})}return()=>typeof l.default=="function"?l.default():null}}}const{componentName:lg,create:Eh,scope:og}=se("rolling-provider"),Bl=Eh(Ch()),Nh=[An,Ln,Bn,_n,jn,Te,Kn,Wn,Nt,Yn,Gn,Un,Xn,Zn,Jn,Qn,tl,nl,ll,ol,an,il,sl,ul,cl,fl,dl,hl,ml,pl,yl,wl,Sl,sn,xl,Tl,$l,Cl,El,It,on,Nl,kl,Il,Ol,Vl,Ml,Ll,Bl],kh=new Da(Nh,[Aa],"4.0.0");Object.defineProperty(m,"FoxAffix",{enumerable:!0,get:()=>w.ElAffix}),Object.defineProperty(m,"FoxAlert",{enumerable:!0,get:()=>w.ElAlert}),Object.defineProperty(m,"FoxAnchor",{enumerable:!0,get:()=>w.ElAnchor}),Object.defineProperty(m,"FoxAnchorLink",{enumerable:!0,get:()=>w.ElAnchorLink}),Object.defineProperty(m,"FoxAside",{enumerable:!0,get:()=>w.ElAside}),Object.defineProperty(m,"FoxAutoResizer",{enumerable:!0,get:()=>w.ElAutoResizer}),Object.defineProperty(m,"FoxAutocomplete",{enumerable:!0,get:()=>w.ElAutocomplete}),Object.defineProperty(m,"FoxAvatar",{enumerable:!0,get:()=>w.ElAvatar}),Object.defineProperty(m,"FoxBacktop",{enumerable:!0,get:()=>w.ElBacktop}),Object.defineProperty(m,"FoxBadge",{enumerable:!0,get:()=>w.ElBadge}),Object.defineProperty(m,"FoxBreadcrumb",{enumerable:!0,get:()=>w.ElBreadcrumb}),Object.defineProperty(m,"FoxBreadcrumbItem",{enumerable:!0,get:()=>w.ElBreadcrumbItem}),Object.defineProperty(m,"FoxButton",{enumerable:!0,get:()=>w.ElButton}),Object.defineProperty(m,"FoxButtonGroup",{enumerable:!0,get:()=>w.ElButtonGroup}),Object.defineProperty(m,"FoxCalendar",{enumerable:!0,get:()=>w.ElCalendar}),Object.defineProperty(m,"FoxCard",{enumerable:!0,get:()=>w.ElCard}),Object.defineProperty(m,"FoxCarousel",{enumerable:!0,get:()=>w.ElCarousel}),Object.defineProperty(m,"FoxCarouselItem",{enumerable:!0,get:()=>w.ElCarouselItem}),Object.defineProperty(m,"FoxCascader",{enumerable:!0,get:()=>w.ElCascader}),Object.defineProperty(m,"FoxCascaderPanel",{enumerable:!0,get:()=>w.ElCascaderPanel}),Object.defineProperty(m,"FoxCheckTag",{enumerable:!0,get:()=>w.ElCheckTag}),Object.defineProperty(m,"FoxCheckbox",{enumerable:!0,get:()=>w.ElCheckbox}),Object.defineProperty(m,"FoxCheckboxButton",{enumerable:!0,get:()=>w.ElCheckboxButton}),Object.defineProperty(m,"FoxCheckboxGroup",{enumerable:!0,get:()=>w.ElCheckboxGroup}),Object.defineProperty(m,"FoxCol",{enumerable:!0,get:()=>w.ElCol}),Object.defineProperty(m,"FoxCollapse",{enumerable:!0,get:()=>w.ElCollapse}),Object.defineProperty(m,"FoxCollapseItem",{enumerable:!0,get:()=>w.ElCollapseItem}),Object.defineProperty(m,"FoxCollapseTransition",{enumerable:!0,get:()=>w.ElCollapseTransition}),Object.defineProperty(m,"FoxColorPicker",{enumerable:!0,get:()=>w.ElColorPicker}),Object.defineProperty(m,"FoxConfigProvider",{enumerable:!0,get:()=>w.ElConfigProvider}),Object.defineProperty(m,"FoxContainer",{enumerable:!0,get:()=>w.ElContainer}),Object.defineProperty(m,"FoxCountdown",{enumerable:!0,get:()=>w.ElCountdown}),Object.defineProperty(m,"FoxDatePicker",{enumerable:!0,get:()=>w.ElDatePicker}),Object.defineProperty(m,"FoxDescriptions",{enumerable:!0,get:()=>w.ElDescriptions}),Object.defineProperty(m,"FoxDescriptionsItem",{enumerable:!0,get:()=>w.ElDescriptionsItem}),Object.defineProperty(m,"FoxDialog",{enumerable:!0,get:()=>w.ElDialog}),Object.defineProperty(m,"FoxDivider",{enumerable:!0,get:()=>w.ElDivider}),Object.defineProperty(m,"FoxDrawer",{enumerable:!0,get:()=>w.ElDrawer}),Object.defineProperty(m,"FoxDropdown",{enumerable:!0,get:()=>w.ElDropdown}),Object.defineProperty(m,"FoxDropdownItem",{enumerable:!0,get:()=>w.ElDropdownItem}),Object.defineProperty(m,"FoxDropdownMenu",{enumerable:!0,get:()=>w.ElDropdownMenu}),Object.defineProperty(m,"FoxEmpty",{enumerable:!0,get:()=>w.ElEmpty}),Object.defineProperty(m,"FoxFooter",{enumerable:!0,get:()=>w.ElFooter}),Object.defineProperty(m,"FoxForm",{enumerable:!0,get:()=>w.ElForm}),Object.defineProperty(m,"FoxFormItem",{enumerable:!0,get:()=>w.ElFormItem}),Object.defineProperty(m,"FoxHeader",{enumerable:!0,get:()=>w.ElHeader}),Object.defineProperty(m,"FoxIcon",{enumerable:!0,get:()=>w.ElIcon}),Object.defineProperty(m,"FoxImage",{enumerable:!0,get:()=>w.ElImage}),Object.defineProperty(m,"FoxImageViewer",{enumerable:!0,get:()=>w.ElImageViewer}),Object.defineProperty(m,"FoxInput",{enumerable:!0,get:()=>w.ElInput}),Object.defineProperty(m,"FoxInputNumber",{enumerable:!0,get:()=>w.ElInputNumber}),Object.defineProperty(m,"FoxLink",{enumerable:!0,get:()=>w.ElLink}),Object.defineProperty(m,"FoxMain",{enumerable:!0,get:()=>w.ElMain}),Object.defineProperty(m,"FoxMenu",{enumerable:!0,get:()=>w.ElMenu}),Object.defineProperty(m,"FoxMenuItem",{enumerable:!0,get:()=>w.ElMenuItem}),Object.defineProperty(m,"FoxMenuItemGroup",{enumerable:!0,get:()=>w.ElMenuItemGroup}),Object.defineProperty(m,"FoxMessage",{enumerable:!0,get:()=>w.ElMessage}),Object.defineProperty(m,"FoxMessageBox",{enumerable:!0,get:()=>w.ElMessageBox}),Object.defineProperty(m,"FoxNotification",{enumerable:!0,get:()=>w.ElNotification}),Object.defineProperty(m,"FoxOption",{enumerable:!0,get:()=>w.ElOption}),Object.defineProperty(m,"FoxOptionGroup",{enumerable:!0,get:()=>w.ElOptionGroup}),Object.defineProperty(m,"FoxPageHeader",{enumerable:!0,get:()=>w.ElPageHeader}),Object.defineProperty(m,"FoxPagination",{enumerable:!0,get:()=>w.ElPagination}),Object.defineProperty(m,"FoxPopconfirm",{enumerable:!0,get:()=>w.ElPopconfirm}),Object.defineProperty(m,"FoxPopover",{enumerable:!0,get:()=>w.ElPopover}),Object.defineProperty(m,"FoxPopper",{enumerable:!0,get:()=>w.ElPopper}),Object.defineProperty(m,"FoxProgress",{enumerable:!0,get:()=>w.ElProgress}),Object.defineProperty(m,"FoxRadio",{enumerable:!0,get:()=>w.ElRadio}),Object.defineProperty(m,"FoxRadioButton",{enumerable:!0,get:()=>w.ElRadioButton}),Object.defineProperty(m,"FoxRadioGroup",{enumerable:!0,get:()=>w.ElRadioGroup}),Object.defineProperty(m,"FoxRate",{enumerable:!0,get:()=>w.ElRate}),Object.defineProperty(m,"FoxResult",{enumerable:!0,get:()=>w.ElResult}),Object.defineProperty(m,"FoxRow",{enumerable:!0,get:()=>w.ElRow}),Object.defineProperty(m,"FoxScrollbar",{enumerable:!0,get:()=>w.ElScrollbar}),Object.defineProperty(m,"FoxSegmented",{enumerable:!0,get:()=>w.ElSegmented}),Object.defineProperty(m,"FoxSelect",{enumerable:!0,get:()=>w.ElSelect}),Object.defineProperty(m,"FoxSelectV2",{enumerable:!0,get:()=>w.ElSelectV2}),Object.defineProperty(m,"FoxSkeleton",{enumerable:!0,get:()=>w.ElSkeleton}),Object.defineProperty(m,"FoxSkeletonItem",{enumerable:!0,get:()=>w.ElSkeletonItem}),Object.defineProperty(m,"FoxSlider",{enumerable:!0,get:()=>w.ElSlider}),Object.defineProperty(m,"FoxSpace",{enumerable:!0,get:()=>w.ElSpace}),Object.defineProperty(m,"FoxStatistic",{enumerable:!0,get:()=>w.ElStatistic}),Object.defineProperty(m,"FoxStep",{enumerable:!0,get:()=>w.ElStep}),Object.defineProperty(m,"FoxSteps",{enumerable:!0,get:()=>w.ElSteps}),Object.defineProperty(m,"FoxSubMenu",{enumerable:!0,get:()=>w.ElSubMenu}),Object.defineProperty(m,"FoxSwitch",{enumerable:!0,get:()=>w.ElSwitch}),Object.defineProperty(m,"FoxTabPane",{enumerable:!0,get:()=>w.ElTabPane}),Object.defineProperty(m,"FoxTable",{enumerable:!0,get:()=>w.ElTable}),Object.defineProperty(m,"FoxTableColumn",{enumerable:!0,get:()=>w.ElTableColumn}),Object.defineProperty(m,"FoxTableV2",{enumerable:!0,get:()=>w.ElTableV2}),Object.defineProperty(m,"FoxTabs",{enumerable:!0,get:()=>w.ElTabs}),Object.defineProperty(m,"FoxTag",{enumerable:!0,get:()=>w.ElTag}),Object.defineProperty(m,"FoxTimePicker",{enumerable:!0,get:()=>w.ElTimePicker}),Object.defineProperty(m,"FoxTimeSelect",{enumerable:!0,get:()=>w.ElTimeSelect}),Object.defineProperty(m,"FoxTimeline",{enumerable:!0,get:()=>w.ElTimeline}),Object.defineProperty(m,"FoxTimelineItem",{enumerable:!0,get:()=>w.ElTimelineItem}),Object.defineProperty(m,"FoxTooltip",{enumerable:!0,get:()=>w.ElTooltip}),Object.defineProperty(m,"FoxTransfer",{enumerable:!0,get:()=>w.ElTransfer}),Object.defineProperty(m,"FoxTree",{enumerable:!0,get:()=>w.ElTree}),Object.defineProperty(m,"FoxTreeSelect",{enumerable:!0,get:()=>w.ElTreeSelect}),Object.defineProperty(m,"FoxTreeV2",{enumerable:!0,get:()=>w.ElTreeV2}),Object.defineProperty(m,"FoxUpload",{enumerable:!0,get:()=>w.ElUpload}),Object.defineProperty(m,"FoxWatermark",{enumerable:!0,get:()=>w.ElWatermark}),m.AutocompleteItem=nl,m.Broadcast=On,m.BroadcastKey=ve,m.CascaderItem=tl,m.CheckboxItem=ul,m.Content=_n,m.DataItemsKey=ut,m.DateItem=Un,m.DateUtils=Be,m.DialogItem=Sl,m.Domain=Kt,m.DomainKey=Ae,m.DomainProvider=Ll,m.FloatingButton=Ol,m.FloatingWindow=Ml,m.FooterBar=Bn,m.FoxAutocompleteItem=nl,m.FoxCascaderItem=tl,m.FoxCheckboxItem=ul,m.FoxContent=_n,m.FoxDateItem=Un,m.FoxDialogItem=Sl,m.FoxDomainProvider=Ll,m.FoxFloatingButton=Ol,m.FoxFloatingWindow=Ml,m.FoxFooterBar=Bn,m.FoxGroup=jn,m.FoxGroupSetting=hl,m.FoxHeaderBar=Ln,m.FoxHintText=Nt,m.FoxIndicator=Nl,m.FoxInfiniteLoading=Cl,m.FoxInputItem=Yn,m.FoxInputNumberItem=Qn,m.FoxItem=Te,m.FoxMapping=It,m.FoxMoneyItem=Jn,m.FoxMoreButton=Il,m.FoxOverLay=sn,m.FoxPage=An,m.FoxPopup=xl,m.FoxPrice=on,m.FoxPullRefresh=El,m.FoxRadioItem=sl,m.FoxRateItem=cl,m.FoxRollingProvider=Bl,m.FoxRowItem=Wn,m.FoxSearchBar=$l,m.FoxSelectItem=Gn,m.FoxSlotItem=Kn,m.FoxStepsBar=wl,m.FoxSwitchItem=fl,m.FoxTableItem=il,m.FoxTableMappingColumn=ll,m.FoxTableRadioColumn=ol,m.FoxTableSetting=an,m.FoxTabsBar=ml,m.FoxTabsContainer=pl,m.FoxTabsPane=yl,m.FoxText=kl,m.FoxTimeItem=Xn,m.FoxTimeSelectItem=Zn,m.FoxToast=Tl,m.FoxTour=Vl,m.FoxTreeSelectItem=dl,m.Group=jn,m.GroupSetting=hl,m.HeaderBar=Ln,m.HintText=Nt,m.Indicator=Nl,m.InfiniteLoading=Cl,m.InputItem=Yn,m.InputNumberItem=Qn,m.Item=Te,m.Mapping=It,m.MoneyItem=Jn,m.MoreButton=Il,m.OverLay=sn,m.Page=An,m.Popup=xl,m.Price=on,m.PriorityPolicy=Le,m.PullRefresh=El,m.RadioItem=sl,m.RateItem=cl,m.RollingProvider=Bl,m.RowItem=Wn,m.SearchBar=$l,m.SelectItem=Gn,m.SlotItem=Kn,m.StepsBar=wl,m.SwitchItem=fl,m.TableItem=il,m.TableMappingColumn=ll,m.TableRadioColumn=ol,m.TableSetting=an,m.TabsBar=ml,m.TabsContainer=pl,m.TabsPane=yl,m.Text=kl,m.TimeItem=Xn,m.TimeSelectItem=Zn,m.Toast=Tl,m.Tour=Vl,m.TreeSelectItem=dl,m.UniqueID=Fo,m.ValidateSchema=go,m.ValidateSchemaKey=qe,m.cancelRaf=Xr,m.clearNonNumber=sa,m.clone=Nn,m.compareTo=Tn,m.createBroadcast=qt,m.createValidateSchema=jt,m.debounce=$t,m.debounceRef=Sa,m.decimalLength=ao,m.default=kh,m.defineBroadcast=da,m.defineConfigDomain=yo,m.defineDataItem=vo,m.defineDomain=Dn,m.defineItem=$e,m.definePageState=So,m.defineSimpleItem=wo,m.deleteGlobalValidator=ya,m.disabledProperty=De,m.divide=xn,m.excludeProps=Ne,m.extend=lt,m.floatData=fa,m.getGlobalValidateCheckEvents=co,m.getGlobalValidateResetEvents=ho,m.getPageContentAreaHeight=Yt,m.getPageContentAreaWidth=Gt,m.getPageFooterAreaHeight=Et,m.getPageHeaderAreaHeight=Ct,m.getRootDomain=ct,m.hasSymbol=Ql,m.includeProps=so,m.indexOf=ua,m.installRules=bo,m.integerLength=ro,m.isArray=Jr,m.isArrayLike=to,m.isBrowser=ot,m.isDate=ta,m.isESModule=la,m.isEmptyString=he,m.isEqual=Ye,m.isFunction=Cn,m.isHidden=_t,m.isInnerPage=$a,m.isMap=Qr,m.isNil=In,m.isNumberString=oo,m.isObject=We,m.isPlainObject=En,m.isPromise=Zl,m.isRegExp=lo,m.isSet=ea,m.isString=Xl,m.isSubPage=Ca,m.isSymbol=na,m.isTouch=un,m.isWindow=eo,m.lastIndexOf=ca,m.makeArray=ia,m.merge=no,m.multiply=Yl,m.negate=Gl,m.nextTick=ra,m.numberFormat=Mt,m.objectToString=Jl,m.once=xa,m.overrideGlobalValidateHandler=ma,m.property=Oe,m.raf=$n,m.readonlyProperty=Ve,m.setGlobalValidateCheckEvents=ba,m.setGlobalValidateHandler=ga,m.setGlobalValidateMessages=wa,m.setGlobalValidateResetEvents=va,m.setGlobalValidator=pa,m.throttle=po,m.toBoolean=ue,m.toNumber=Se,m.toPadding=ze,m.toPx=me,m.toPxDesc=ke,m.toTypeString=Lt,m.toValue=ge,m.tryTimes=Ht,m.typeOf=Bt,m.unNumberFormat=Ul,m.updatePageState=Fn,m.useBroadcast=St,m.useDomain=Ge,m.useExpose=we,m.useInnerSize=Mn,m.usePageState=Wt,m.usePosition=Oo,m.useRawTouch=cn,m.useRect=Mr,m.useSize=Zt,m.useTouch=ud,m.valueLength=wt,Object.defineProperties(m,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|